@monospaced/set-core 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/image/image.d.ts +5 -7
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/poster/poster.d.ts +5 -1
- package/dist/components/poster/poster.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +504 -511
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function m(t) {
|
|
|
30
30
|
function H(t) {
|
|
31
31
|
return /^[A-Za-z][\w:-]*$/.test(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function b(t) {
|
|
34
34
|
if (t === void 0) return;
|
|
35
35
|
const n = t.trim();
|
|
36
36
|
if (n) {
|
|
@@ -792,21 +792,21 @@ function R({
|
|
|
792
792
|
size: r = "md",
|
|
793
793
|
title: a
|
|
794
794
|
}) {
|
|
795
|
-
const
|
|
796
|
-
if (!
|
|
795
|
+
const d = St[i];
|
|
796
|
+
if (!d)
|
|
797
797
|
throw new Error(`Unknown icon name: ${i}`);
|
|
798
|
-
const
|
|
799
|
-
if (!t && !
|
|
798
|
+
const o = b(n), s = a?.trim();
|
|
799
|
+
if (!t && !s)
|
|
800
800
|
throw new Error("title must be non-empty when ariaHidden is false.");
|
|
801
|
-
if (!t && !
|
|
801
|
+
if (!t && !o)
|
|
802
802
|
throw new Error("id must be provided when ariaHidden is false.");
|
|
803
|
-
const p = t ? void 0 : `${
|
|
804
|
-
return t ||
|
|
803
|
+
const p = t ? void 0 : `${o}-title`, l = [];
|
|
804
|
+
return t || l.push({
|
|
805
805
|
kind: "element",
|
|
806
806
|
tag: "title",
|
|
807
807
|
attrs: { id: p },
|
|
808
|
-
children: [{ kind: "text", value:
|
|
809
|
-
}),
|
|
808
|
+
children: [{ kind: "text", value: s }]
|
|
809
|
+
}), l.push(...xt(d)), {
|
|
810
810
|
kind: "element",
|
|
811
811
|
tag: "svg",
|
|
812
812
|
attrs: {
|
|
@@ -817,14 +817,14 @@ function R({
|
|
|
817
817
|
"data-size": r,
|
|
818
818
|
fill: "none",
|
|
819
819
|
height: "24",
|
|
820
|
-
id:
|
|
820
|
+
id: o,
|
|
821
821
|
role: t ? void 0 : "img",
|
|
822
822
|
stroke: "currentColor",
|
|
823
823
|
"stroke-width": "1.75",
|
|
824
824
|
viewBox: "0 0 24 24",
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg"
|
|
826
826
|
},
|
|
827
|
-
children:
|
|
827
|
+
children: l
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
function Wt(t) {
|
|
@@ -950,7 +950,7 @@ function Ut({
|
|
|
950
950
|
size: e = "md",
|
|
951
951
|
tone: i = "default"
|
|
952
952
|
} = {}) {
|
|
953
|
-
const r =
|
|
953
|
+
const r = b(t), d = [
|
|
954
954
|
{
|
|
955
955
|
kind: "element",
|
|
956
956
|
tag: "svg",
|
|
@@ -969,13 +969,13 @@ function Ut({
|
|
|
969
969
|
[360, 660],
|
|
970
970
|
[360, 360],
|
|
971
971
|
[360, 60]
|
|
972
|
-
].map(([
|
|
972
|
+
].map(([o, s]) => ({
|
|
973
973
|
kind: "element",
|
|
974
974
|
tag: "rect",
|
|
975
975
|
attrs: {
|
|
976
976
|
class: "cell",
|
|
977
|
-
x: String(
|
|
978
|
-
y: String(
|
|
977
|
+
x: String(o),
|
|
978
|
+
y: String(s),
|
|
979
979
|
width: "180",
|
|
980
980
|
height: "180"
|
|
981
981
|
},
|
|
@@ -983,7 +983,7 @@ function Ut({
|
|
|
983
983
|
}))
|
|
984
984
|
}
|
|
985
985
|
];
|
|
986
|
-
return n &&
|
|
986
|
+
return n && d.push({
|
|
987
987
|
kind: "element",
|
|
988
988
|
tag: "span",
|
|
989
989
|
attrs: { class: "visually-hidden" },
|
|
@@ -998,7 +998,7 @@ function Ut({
|
|
|
998
998
|
id: r,
|
|
999
999
|
role: n ? "status" : void 0
|
|
1000
1000
|
},
|
|
1001
|
-
children:
|
|
1001
|
+
children: d
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function bt(t = {}) {
|
|
@@ -1079,23 +1079,23 @@ function ht(t) {
|
|
|
1079
1079
|
controls: i,
|
|
1080
1080
|
disabled: r,
|
|
1081
1081
|
disclosure: a,
|
|
1082
|
-
form:
|
|
1083
|
-
haspopup:
|
|
1084
|
-
id:
|
|
1082
|
+
form: d,
|
|
1083
|
+
haspopup: o,
|
|
1084
|
+
id: s,
|
|
1085
1085
|
icon: p,
|
|
1086
|
-
iconMirrored:
|
|
1086
|
+
iconMirrored: l,
|
|
1087
1087
|
iconPlacement: c = "start",
|
|
1088
1088
|
label: h,
|
|
1089
|
-
labelVisibility:
|
|
1090
|
-
name:
|
|
1091
|
-
size:
|
|
1089
|
+
labelVisibility: g = "visible",
|
|
1090
|
+
name: y,
|
|
1091
|
+
size: v = "md",
|
|
1092
1092
|
tone: z = "default",
|
|
1093
|
-
type:
|
|
1094
|
-
value:
|
|
1095
|
-
} = t,
|
|
1096
|
-
if (
|
|
1093
|
+
type: M,
|
|
1094
|
+
value: S
|
|
1095
|
+
} = t, w = p || void 0, x = !!w;
|
|
1096
|
+
if (g !== "visible" && !x)
|
|
1097
1097
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1098
|
-
const E =
|
|
1098
|
+
const E = x && w ? {
|
|
1099
1099
|
kind: "element",
|
|
1100
1100
|
tag: "span",
|
|
1101
1101
|
attrs: { class: "icon-wrapper" },
|
|
@@ -1104,8 +1104,8 @@ function ht(t) {
|
|
|
1104
1104
|
kind: "raw",
|
|
1105
1105
|
html: Wt({
|
|
1106
1106
|
ariaHidden: !0,
|
|
1107
|
-
mirrored:
|
|
1108
|
-
name:
|
|
1107
|
+
mirrored: l,
|
|
1108
|
+
name: w,
|
|
1109
1109
|
size: "fill"
|
|
1110
1110
|
})
|
|
1111
1111
|
},
|
|
@@ -1116,27 +1116,27 @@ function ht(t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
] : []
|
|
1118
1118
|
]
|
|
1119
|
-
} : null,
|
|
1119
|
+
} : null, L = {
|
|
1120
1120
|
kind: "element",
|
|
1121
1121
|
tag: "span",
|
|
1122
1122
|
attrs: { class: "label" },
|
|
1123
1123
|
children: [{ kind: "text", value: h }]
|
|
1124
|
-
},
|
|
1124
|
+
}, A = n ? {
|
|
1125
1125
|
kind: "element",
|
|
1126
1126
|
tag: "span",
|
|
1127
1127
|
attrs: { class: "status" },
|
|
1128
1128
|
children: [{ kind: "text", value: ", busy" }]
|
|
1129
|
-
} : null,
|
|
1129
|
+
} : null, V = n && !x ? {
|
|
1130
1130
|
kind: "element",
|
|
1131
1131
|
tag: "span",
|
|
1132
1132
|
attrs: { class: "spinner-overlay" },
|
|
1133
1133
|
children: [
|
|
1134
1134
|
{
|
|
1135
1135
|
kind: "raw",
|
|
1136
|
-
html: bt({ size: $t[
|
|
1136
|
+
html: bt({ size: $t[v] })
|
|
1137
1137
|
}
|
|
1138
1138
|
]
|
|
1139
|
-
} : null,
|
|
1139
|
+
} : null, q = E ? c === "end" ? [L, E] : [E, L] : V ? [V, L] : [L], I = A ? [...q, A] : q, N = Et(n);
|
|
1140
1140
|
return {
|
|
1141
1141
|
kind: "element",
|
|
1142
1142
|
tag: "button",
|
|
@@ -1144,21 +1144,21 @@ function ht(t) {
|
|
|
1144
1144
|
"aria-controls": a && i || void 0,
|
|
1145
1145
|
"aria-disabled": N["aria-disabled"],
|
|
1146
1146
|
"aria-expanded": a ? "false" : void 0,
|
|
1147
|
-
"aria-haspopup":
|
|
1147
|
+
"aria-haspopup": o || void 0,
|
|
1148
1148
|
class: "set-button",
|
|
1149
1149
|
"data-activity": N["data-activity"],
|
|
1150
1150
|
"data-appearance": e,
|
|
1151
|
-
"data-label-visibility":
|
|
1152
|
-
"data-size":
|
|
1151
|
+
"data-label-visibility": g === "visible" ? void 0 : g,
|
|
1152
|
+
"data-size": v,
|
|
1153
1153
|
"data-tone": z === "neutral" ? "neutral" : void 0,
|
|
1154
1154
|
disabled: !!r,
|
|
1155
|
-
form:
|
|
1156
|
-
id:
|
|
1157
|
-
name:
|
|
1158
|
-
type:
|
|
1159
|
-
value:
|
|
1155
|
+
form: d || void 0,
|
|
1156
|
+
id: s || void 0,
|
|
1157
|
+
name: y || void 0,
|
|
1158
|
+
type: M || "button",
|
|
1159
|
+
value: S || void 0
|
|
1160
1160
|
},
|
|
1161
|
-
children:
|
|
1161
|
+
children: I
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
1164
|
function mt(t) {
|
|
@@ -1404,16 +1404,16 @@ function Kt({
|
|
|
1404
1404
|
inlineSize: i = "full",
|
|
1405
1405
|
message: r,
|
|
1406
1406
|
size: a = "md",
|
|
1407
|
-
tone:
|
|
1408
|
-
title:
|
|
1407
|
+
tone: d,
|
|
1408
|
+
title: o
|
|
1409
1409
|
}) {
|
|
1410
|
-
const
|
|
1411
|
-
return
|
|
1410
|
+
const s = b(e), p = n.trim() === "" ? U : n, l = [];
|
|
1411
|
+
return o && l.push({
|
|
1412
1412
|
kind: "element",
|
|
1413
1413
|
tag: "p",
|
|
1414
1414
|
attrs: { class: "title" },
|
|
1415
|
-
children: [{ kind: "text", value:
|
|
1416
|
-
}),
|
|
1415
|
+
children: [{ kind: "text", value: o }]
|
|
1416
|
+
}), l.push({
|
|
1417
1417
|
kind: "element",
|
|
1418
1418
|
tag: "p",
|
|
1419
1419
|
attrs: { class: "message" },
|
|
@@ -1427,9 +1427,9 @@ function Kt({
|
|
|
1427
1427
|
"data-dismissible-label": t ? p : void 0,
|
|
1428
1428
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
1429
1429
|
"data-size": a,
|
|
1430
|
-
"data-tone":
|
|
1431
|
-
id:
|
|
1432
|
-
role: jt(
|
|
1430
|
+
"data-tone": d || void 0,
|
|
1431
|
+
id: s,
|
|
1432
|
+
role: jt(d)
|
|
1433
1433
|
},
|
|
1434
1434
|
children: [
|
|
1435
1435
|
{
|
|
@@ -1439,7 +1439,7 @@ function Kt({
|
|
|
1439
1439
|
children: [
|
|
1440
1440
|
R({
|
|
1441
1441
|
ariaHidden: !0,
|
|
1442
|
-
name: Ft(
|
|
1442
|
+
name: Ft(d),
|
|
1443
1443
|
size: a
|
|
1444
1444
|
})
|
|
1445
1445
|
]
|
|
@@ -1448,7 +1448,7 @@ function Kt({
|
|
|
1448
1448
|
kind: "element",
|
|
1449
1449
|
tag: "div",
|
|
1450
1450
|
attrs: { class: "content" },
|
|
1451
|
-
children:
|
|
1451
|
+
children: l
|
|
1452
1452
|
}
|
|
1453
1453
|
]
|
|
1454
1454
|
};
|
|
@@ -1652,28 +1652,28 @@ function Ct(t) {
|
|
|
1652
1652
|
download: i,
|
|
1653
1653
|
href: r,
|
|
1654
1654
|
id: a,
|
|
1655
|
-
icon:
|
|
1656
|
-
iconPlacement:
|
|
1657
|
-
label:
|
|
1655
|
+
icon: d,
|
|
1656
|
+
iconPlacement: o = "start",
|
|
1657
|
+
label: s,
|
|
1658
1658
|
labelVisibility: p = "visible",
|
|
1659
|
-
rel:
|
|
1659
|
+
rel: l,
|
|
1660
1660
|
size: c = "md",
|
|
1661
1661
|
target: h,
|
|
1662
|
-
tone:
|
|
1663
|
-
underline:
|
|
1664
|
-
} = t,
|
|
1662
|
+
tone: g = "default",
|
|
1663
|
+
underline: y
|
|
1664
|
+
} = t, v = b(a), z = d?.trim() || void 0;
|
|
1665
1665
|
if (p !== "visible" && !!!z)
|
|
1666
1666
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1667
|
-
const
|
|
1667
|
+
const S = Qt(i), w = z ? {
|
|
1668
1668
|
kind: "element",
|
|
1669
1669
|
tag: "span",
|
|
1670
1670
|
attrs: { class: "icon-wrapper" },
|
|
1671
1671
|
children: [{ kind: "raw", html: z }]
|
|
1672
|
-
} : null,
|
|
1672
|
+
} : null, x = {
|
|
1673
1673
|
kind: "element",
|
|
1674
1674
|
tag: "span",
|
|
1675
1675
|
attrs: { class: "label" },
|
|
1676
|
-
children: [{ kind: "text", value:
|
|
1676
|
+
children: [{ kind: "text", value: s }]
|
|
1677
1677
|
};
|
|
1678
1678
|
return {
|
|
1679
1679
|
kind: "element",
|
|
@@ -1684,15 +1684,15 @@ function Ct(t) {
|
|
|
1684
1684
|
"data-appearance": n === "text" ? void 0 : n,
|
|
1685
1685
|
"data-label-visibility": p === "visible" ? void 0 : p,
|
|
1686
1686
|
"data-size": c,
|
|
1687
|
-
"data-tone":
|
|
1688
|
-
"data-underline":
|
|
1689
|
-
download:
|
|
1687
|
+
"data-tone": g === "neutral" ? "neutral" : void 0,
|
|
1688
|
+
"data-underline": y && n === "text" ? !0 : void 0,
|
|
1689
|
+
download: S,
|
|
1690
1690
|
href: r,
|
|
1691
|
-
id:
|
|
1692
|
-
rel:
|
|
1693
|
-
target:
|
|
1691
|
+
id: v,
|
|
1692
|
+
rel: S ? void 0 : l || void 0,
|
|
1693
|
+
target: S ? void 0 : h || void 0
|
|
1694
1694
|
},
|
|
1695
|
-
children:
|
|
1695
|
+
children: w ? o === "end" ? [x, w] : [w, x] : [x]
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
function vi(t) {
|
|
@@ -1904,11 +1904,11 @@ function Jt({
|
|
|
1904
1904
|
dismissibleLabel: i = j,
|
|
1905
1905
|
id: r,
|
|
1906
1906
|
message: a,
|
|
1907
|
-
tone:
|
|
1907
|
+
tone: d
|
|
1908
1908
|
}) {
|
|
1909
1909
|
if (!!t != !!n)
|
|
1910
1910
|
throw new Error("actionHref and actionLabel must be provided together.");
|
|
1911
|
-
const
|
|
1911
|
+
const o = b(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
|
|
1912
1912
|
return t && n && (p.push({ kind: "text", value: " " }), p.push(
|
|
1913
1913
|
Ct({
|
|
1914
1914
|
href: t,
|
|
@@ -1923,9 +1923,9 @@ function Jt({
|
|
|
1923
1923
|
"data-set-content-theme": "dark",
|
|
1924
1924
|
"data-set-surface": "default",
|
|
1925
1925
|
"data-dismissible": e,
|
|
1926
|
-
"data-dismissible-label": e ?
|
|
1927
|
-
"data-tone":
|
|
1928
|
-
id:
|
|
1926
|
+
"data-dismissible-label": e ? s : void 0,
|
|
1927
|
+
"data-tone": d || void 0,
|
|
1928
|
+
id: o
|
|
1929
1929
|
},
|
|
1930
1930
|
children: [
|
|
1931
1931
|
{
|
|
@@ -2067,111 +2067,110 @@ const wi = {
|
|
|
2067
2067
|
}, K = "set-image";
|
|
2068
2068
|
function ee({
|
|
2069
2069
|
adaptive: t,
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
height: o,
|
|
2070
|
+
alt: n = "",
|
|
2071
|
+
aspectRatio: e,
|
|
2072
|
+
fit: i = "intrinsic",
|
|
2073
|
+
gravity: r = "C",
|
|
2074
|
+
height: a,
|
|
2076
2075
|
id: d,
|
|
2077
|
-
lazy:
|
|
2078
|
-
leadSrc:
|
|
2079
|
-
priority:
|
|
2080
|
-
radius:
|
|
2081
|
-
shadow:
|
|
2082
|
-
sizes:
|
|
2083
|
-
sources:
|
|
2084
|
-
src:
|
|
2085
|
-
srcSet:
|
|
2086
|
-
|
|
2087
|
-
width:
|
|
2076
|
+
lazy: o,
|
|
2077
|
+
leadSrc: s,
|
|
2078
|
+
priority: p,
|
|
2079
|
+
radius: l,
|
|
2080
|
+
shadow: c,
|
|
2081
|
+
sizes: h,
|
|
2082
|
+
sources: g,
|
|
2083
|
+
src: y,
|
|
2084
|
+
srcSet: v,
|
|
2085
|
+
stillSrc: z,
|
|
2086
|
+
width: M
|
|
2088
2087
|
}) {
|
|
2089
|
-
const
|
|
2090
|
-
const T = u.srcSet.trim(),
|
|
2088
|
+
const S = i === "cover", w = b(d), x = y.trim(), E = v?.trim(), L = s?.trim(), A = z?.trim(), V = h?.trim(), q = g?.map((u, C) => {
|
|
2089
|
+
const T = u.srcSet.trim(), f = u.media?.trim(), k = u.type?.trim(), Nt = u.sizes?.trim(), Bt = u.leadSrc?.trim(), Ot = u.stillSrc?.trim();
|
|
2091
2090
|
if (!T)
|
|
2092
|
-
throw new Error(`sources[${
|
|
2091
|
+
throw new Error(`sources[${C}].srcSet must be non-empty.`);
|
|
2093
2092
|
return {
|
|
2094
2093
|
height: u.height,
|
|
2095
2094
|
leadSrc: Bt || void 0,
|
|
2096
|
-
media:
|
|
2095
|
+
media: f || void 0,
|
|
2097
2096
|
sizes: Nt || void 0,
|
|
2098
2097
|
srcSet: T,
|
|
2099
|
-
|
|
2100
|
-
type:
|
|
2098
|
+
stillSrc: Ot || void 0,
|
|
2099
|
+
type: k || void 0,
|
|
2101
2100
|
width: u.width
|
|
2102
2101
|
};
|
|
2103
2102
|
}) || [];
|
|
2104
|
-
if (!
|
|
2103
|
+
if (!x)
|
|
2105
2104
|
throw new Error("src must be a non-empty string.");
|
|
2106
2105
|
if (t && [
|
|
2106
|
+
x,
|
|
2107
2107
|
E,
|
|
2108
|
-
|
|
2109
|
-
...M.map((u) => u.srcSet)
|
|
2108
|
+
...q.map((u) => u.srcSet)
|
|
2110
2109
|
].some((u) => u?.includes("#")))
|
|
2111
2110
|
throw new Error("adaptive sources must not contain URL fragments.");
|
|
2112
|
-
const N = !!(
|
|
2113
|
-
if (!
|
|
2114
|
-
throw new Error("leadSrc requires
|
|
2115
|
-
if (
|
|
2111
|
+
const I = !!A, N = !!(I && t), nt = !!(I && L), $ = !!L || q.some((u) => u.leadSrc);
|
|
2112
|
+
if (!I && $)
|
|
2113
|
+
throw new Error("leadSrc requires a stillSrc.");
|
|
2114
|
+
if (!I && q.some((u) => u.stillSrc))
|
|
2115
|
+
throw new Error("sources stillSrc requires a top-level stillSrc.");
|
|
2116
|
+
if (I) {
|
|
2116
2117
|
const u = [
|
|
2118
|
+
x,
|
|
2117
2119
|
E,
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
if (t && L.length !== u.length)
|
|
2120
|
+
L,
|
|
2121
|
+
...q.flatMap((f) => [f.srcSet, f.leadSrc])
|
|
2122
|
+
].filter((f) => !!f), C = u.filter((f) => f.includes("{scheme}"));
|
|
2123
|
+
if (t && C.length !== u.length)
|
|
2123
2124
|
throw new Error(
|
|
2124
2125
|
"adaptive animated sources must contain a {scheme} placeholder."
|
|
2125
2126
|
);
|
|
2126
|
-
if (!t &&
|
|
2127
|
+
if (!t && C.length > 0)
|
|
2127
2128
|
throw new Error(
|
|
2128
2129
|
"the {scheme} placeholder requires adaptive to enable light/dark."
|
|
2129
2130
|
);
|
|
2130
|
-
if (!A)
|
|
2131
|
-
throw new Error("animated requires a still.");
|
|
2132
2131
|
if ([
|
|
2133
2132
|
A,
|
|
2134
|
-
...
|
|
2135
|
-
].filter((
|
|
2136
|
-
throw new Error("
|
|
2133
|
+
...q.map((f) => f.stillSrc)
|
|
2134
|
+
].filter((f) => !!f).some((f) => f.includes("#")))
|
|
2135
|
+
throw new Error("stillSrc must not contain URL fragments.");
|
|
2137
2136
|
}
|
|
2138
|
-
const kt = (u,
|
|
2139
|
-
const [
|
|
2140
|
-
if (!
|
|
2137
|
+
const kt = (u, C) => u.split(/,\s+/).map((T) => {
|
|
2138
|
+
const [f, ...k] = T.trim().split(/\s+/);
|
|
2139
|
+
if (!f || k.length > 1)
|
|
2141
2140
|
throw new Error(
|
|
2142
2141
|
"adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
|
|
2143
2142
|
);
|
|
2144
|
-
return [`${
|
|
2143
|
+
return [`${f}#${C}`, ...k].join(" ");
|
|
2145
2144
|
}).join(", "), rt = (u) => {
|
|
2146
|
-
const
|
|
2145
|
+
const C = {
|
|
2147
2146
|
kind: "element",
|
|
2148
2147
|
tag: "img",
|
|
2149
2148
|
attrs: {
|
|
2150
|
-
alt:
|
|
2149
|
+
alt: n,
|
|
2151
2150
|
class: "img",
|
|
2152
|
-
"data-scheme": u &&
|
|
2153
|
-
fetchpriority:
|
|
2154
|
-
height:
|
|
2155
|
-
loading:
|
|
2156
|
-
sizes:
|
|
2157
|
-
src: u ? `${
|
|
2158
|
-
srcset:
|
|
2159
|
-
width:
|
|
2151
|
+
"data-scheme": u && q.length === 0 ? u : void 0,
|
|
2152
|
+
fetchpriority: p ? "high" : void 0,
|
|
2153
|
+
height: S ? void 0 : a ? String(a) : void 0,
|
|
2154
|
+
loading: o && !p ? "lazy" : void 0,
|
|
2155
|
+
sizes: q.length > 0 ? void 0 : V || void 0,
|
|
2156
|
+
src: u ? `${x}#${u}` : x,
|
|
2157
|
+
srcset: E && u ? kt(E, u) : E || void 0,
|
|
2158
|
+
width: S ? void 0 : M ? String(M) : void 0
|
|
2160
2159
|
},
|
|
2161
2160
|
children: []
|
|
2162
2161
|
};
|
|
2163
|
-
if (
|
|
2164
|
-
return
|
|
2165
|
-
const T =
|
|
2162
|
+
if (q.length === 0)
|
|
2163
|
+
return C;
|
|
2164
|
+
const T = q.map((f) => ({
|
|
2166
2165
|
kind: "element",
|
|
2167
2166
|
tag: "source",
|
|
2168
2167
|
attrs: {
|
|
2169
|
-
height:
|
|
2170
|
-
media:
|
|
2171
|
-
sizes:
|
|
2172
|
-
srcset: u ? kt(
|
|
2173
|
-
type:
|
|
2174
|
-
width:
|
|
2168
|
+
height: f.height ? String(f.height) : void 0,
|
|
2169
|
+
media: f.media,
|
|
2170
|
+
sizes: f.sizes,
|
|
2171
|
+
srcset: u ? kt(f.srcSet, u) : f.srcSet,
|
|
2172
|
+
type: f.type,
|
|
2173
|
+
width: f.width ? String(f.width) : void 0
|
|
2175
2174
|
},
|
|
2176
2175
|
children: []
|
|
2177
2176
|
}));
|
|
@@ -2179,21 +2178,21 @@ function ee({
|
|
|
2179
2178
|
kind: "element",
|
|
2180
2179
|
tag: "picture",
|
|
2181
2180
|
attrs: { "data-scheme": u },
|
|
2182
|
-
children: [...T,
|
|
2181
|
+
children: [...T, C]
|
|
2183
2182
|
};
|
|
2184
|
-
}, at = "(prefers-reduced-motion: reduce)", W = (u,
|
|
2185
|
-
const
|
|
2183
|
+
}, at = "(prefers-reduced-motion: reduce)", W = (u, C) => C ? u.replaceAll("{scheme}", C) : u, ot = (u, C) => C ? `${u}#${C}` : u, gt = (u) => {
|
|
2184
|
+
const C = q.filter((k) => k.stillSrc).map((k) => ({
|
|
2186
2185
|
kind: "element",
|
|
2187
2186
|
tag: "source",
|
|
2188
2187
|
attrs: {
|
|
2189
|
-
height:
|
|
2190
|
-
media:
|
|
2191
|
-
srcset: ot(
|
|
2192
|
-
width:
|
|
2188
|
+
height: k.height ? String(k.height) : void 0,
|
|
2189
|
+
media: k.media ? `${at} and ${k.media}` : at,
|
|
2190
|
+
srcset: ot(k.stillSrc, u),
|
|
2191
|
+
width: k.width ? String(k.width) : void 0
|
|
2193
2192
|
},
|
|
2194
2193
|
children: []
|
|
2195
2194
|
}));
|
|
2196
|
-
|
|
2195
|
+
C.push({
|
|
2197
2196
|
kind: "element",
|
|
2198
2197
|
tag: "source",
|
|
2199
2198
|
attrs: {
|
|
@@ -2202,31 +2201,31 @@ function ee({
|
|
|
2202
2201
|
},
|
|
2203
2202
|
children: []
|
|
2204
2203
|
});
|
|
2205
|
-
const T =
|
|
2204
|
+
const T = q.map((k) => ({
|
|
2206
2205
|
kind: "element",
|
|
2207
2206
|
tag: "source",
|
|
2208
2207
|
attrs: {
|
|
2209
|
-
height:
|
|
2210
|
-
media:
|
|
2211
|
-
sizes:
|
|
2212
|
-
srcset: W(
|
|
2213
|
-
type:
|
|
2214
|
-
width:
|
|
2208
|
+
height: k.height ? String(k.height) : void 0,
|
|
2209
|
+
media: k.media,
|
|
2210
|
+
sizes: k.sizes,
|
|
2211
|
+
srcset: W(k.srcSet, u),
|
|
2212
|
+
type: k.type,
|
|
2213
|
+
width: k.width ? String(k.width) : void 0
|
|
2215
2214
|
},
|
|
2216
2215
|
children: []
|
|
2217
|
-
})),
|
|
2216
|
+
})), f = {
|
|
2218
2217
|
kind: "element",
|
|
2219
2218
|
tag: "img",
|
|
2220
2219
|
attrs: {
|
|
2221
|
-
alt:
|
|
2220
|
+
alt: n,
|
|
2222
2221
|
class: "img",
|
|
2223
|
-
fetchpriority:
|
|
2224
|
-
height:
|
|
2225
|
-
loading:
|
|
2226
|
-
sizes:
|
|
2227
|
-
src: W(
|
|
2228
|
-
srcset:
|
|
2229
|
-
width:
|
|
2222
|
+
fetchpriority: p ? "high" : void 0,
|
|
2223
|
+
height: S ? void 0 : a ? String(a) : void 0,
|
|
2224
|
+
loading: o && !p ? "lazy" : void 0,
|
|
2225
|
+
sizes: q.length > 0 ? void 0 : V || void 0,
|
|
2226
|
+
src: W(x, u),
|
|
2227
|
+
srcset: E ? W(E, u) : void 0,
|
|
2228
|
+
width: S ? void 0 : M ? String(M) : void 0
|
|
2230
2229
|
},
|
|
2231
2230
|
children: []
|
|
2232
2231
|
};
|
|
@@ -2234,44 +2233,44 @@ function ee({
|
|
|
2234
2233
|
kind: "element",
|
|
2235
2234
|
tag: "picture",
|
|
2236
2235
|
attrs: { "data-scheme": u },
|
|
2237
|
-
children: [...
|
|
2236
|
+
children: [...C, ...T, f]
|
|
2238
2237
|
};
|
|
2239
2238
|
}, Vt = (u) => {
|
|
2240
|
-
const
|
|
2241
|
-
if (
|
|
2239
|
+
const C = "(prefers-reduced-motion: no-preference)", T = q.map((k) => {
|
|
2240
|
+
if (k.leadSrc)
|
|
2242
2241
|
return {
|
|
2243
2242
|
kind: "element",
|
|
2244
2243
|
tag: "source",
|
|
2245
2244
|
attrs: {
|
|
2246
|
-
height:
|
|
2247
|
-
media:
|
|
2248
|
-
sizes:
|
|
2249
|
-
srcset: W(
|
|
2250
|
-
type:
|
|
2251
|
-
width:
|
|
2245
|
+
height: k.height ? String(k.height) : void 0,
|
|
2246
|
+
media: k.media ? `${C} and ${k.media}` : C,
|
|
2247
|
+
sizes: k.sizes,
|
|
2248
|
+
srcset: W(k.leadSrc, u),
|
|
2249
|
+
type: k.type,
|
|
2250
|
+
width: k.width ? String(k.width) : void 0
|
|
2252
2251
|
},
|
|
2253
2252
|
children: []
|
|
2254
2253
|
};
|
|
2255
|
-
}).filter((
|
|
2254
|
+
}).filter((k) => !!k);
|
|
2256
2255
|
T.push({
|
|
2257
2256
|
kind: "element",
|
|
2258
2257
|
tag: "source",
|
|
2259
2258
|
attrs: {
|
|
2260
|
-
media:
|
|
2261
|
-
sizes:
|
|
2262
|
-
srcset: W(
|
|
2259
|
+
media: C,
|
|
2260
|
+
sizes: q.length > 0 ? void 0 : V || void 0,
|
|
2261
|
+
srcset: W(L, u)
|
|
2263
2262
|
},
|
|
2264
2263
|
children: []
|
|
2265
2264
|
});
|
|
2266
|
-
const
|
|
2265
|
+
const f = {
|
|
2267
2266
|
kind: "element",
|
|
2268
2267
|
tag: "img",
|
|
2269
2268
|
attrs: {
|
|
2270
2269
|
alt: "",
|
|
2271
2270
|
class: "img",
|
|
2272
|
-
height:
|
|
2271
|
+
height: S ? void 0 : a ? String(a) : void 0,
|
|
2273
2272
|
src: ot(A, u),
|
|
2274
|
-
width:
|
|
2273
|
+
width: S ? void 0 : M ? String(M) : void 0
|
|
2275
2274
|
},
|
|
2276
2275
|
children: []
|
|
2277
2276
|
};
|
|
@@ -2279,24 +2278,24 @@ function ee({
|
|
|
2279
2278
|
kind: "element",
|
|
2280
2279
|
tag: "picture",
|
|
2281
2280
|
attrs: { "data-scheme": u, "data-layer": "lead" },
|
|
2282
|
-
children: [...T,
|
|
2281
|
+
children: [...T, f]
|
|
2283
2282
|
};
|
|
2284
|
-
}, dt = (u) => nt ? [gt(u), Vt(u)] : [gt(u)], Ht =
|
|
2285
|
-
return
|
|
2283
|
+
}, dt = (u) => nt ? [gt(u), Vt(u)] : [gt(u)], Ht = I ? N ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
|
|
2284
|
+
return a && G.push(`--set-image-block-size: ${a / 16}rem`), M && G.push(`--set-image-inline-size: ${M / 16}rem`), {
|
|
2286
2285
|
kind: "element",
|
|
2287
2286
|
tag: K,
|
|
2288
2287
|
attrs: {
|
|
2289
2288
|
class: "set-image",
|
|
2290
2289
|
"data-adaptive": !!t,
|
|
2291
|
-
"data-animated": !!
|
|
2290
|
+
"data-animated": !!I,
|
|
2292
2291
|
"data-sequenced": nt,
|
|
2293
|
-
"data-aspect-ratio":
|
|
2294
|
-
"data-fluid":
|
|
2295
|
-
"data-gravity":
|
|
2296
|
-
"data-shadow": !!
|
|
2297
|
-
"data-object-fit":
|
|
2298
|
-
"data-radius": !!
|
|
2299
|
-
id:
|
|
2292
|
+
"data-aspect-ratio": S && !a ? e : void 0,
|
|
2293
|
+
"data-fluid": i === "fluid",
|
|
2294
|
+
"data-gravity": S && r !== "C" ? r : void 0,
|
|
2295
|
+
"data-shadow": !!c,
|
|
2296
|
+
"data-object-fit": S ? "cover" : void 0,
|
|
2297
|
+
"data-radius": !!l,
|
|
2298
|
+
id: w,
|
|
2300
2299
|
style: G.length > 0 ? G.join("; ") : void 0
|
|
2301
2300
|
},
|
|
2302
2301
|
children: Ht
|
|
@@ -2336,12 +2335,7 @@ const Si = {
|
|
|
2336
2335
|
props: {
|
|
2337
2336
|
adaptive: {
|
|
2338
2337
|
default: !1,
|
|
2339
|
-
description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With
|
|
2340
|
-
type: { kind: "boolean" }
|
|
2341
|
-
},
|
|
2342
|
-
animated: {
|
|
2343
|
-
default: !1,
|
|
2344
|
-
description: "Renders an animated image (e.g. `webp`) with a required `still` shown when the user prefers reduced motion. Combine with `adaptive` for light/dark theming: the `src`/`srcSet`/`sources` URLs then carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair. The `still` gets `#light`/`#dark` appended. Without `adaptive`, renders a single, unthemed animated asset. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",
|
|
2338
|
+
description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With an animated image (opted in by `stillSrc`), it pairs light/dark webp instead, via a `{scheme}` placeholder in the URLs.",
|
|
2345
2339
|
type: { kind: "boolean" }
|
|
2346
2340
|
},
|
|
2347
2341
|
alt: {
|
|
@@ -2427,11 +2421,11 @@ const Si = {
|
|
|
2427
2421
|
type: { kind: "string" }
|
|
2428
2422
|
},
|
|
2429
2423
|
leadSrc: {
|
|
2430
|
-
description: "Intro overlay for this source in an
|
|
2424
|
+
description: "Intro overlay for this source in an animated sequence.",
|
|
2431
2425
|
type: { kind: "string" }
|
|
2432
2426
|
},
|
|
2433
|
-
|
|
2434
|
-
description: "Reduced-motion still for this source
|
|
2427
|
+
stillSrc: {
|
|
2428
|
+
description: "Reduced-motion still for this source's animated asset. For a light/dark still, use an adaptive SVG.",
|
|
2435
2429
|
type: { kind: "string" }
|
|
2436
2430
|
},
|
|
2437
2431
|
type: {
|
|
@@ -2450,12 +2444,11 @@ const Si = {
|
|
|
2450
2444
|
type: { kind: "string" }
|
|
2451
2445
|
},
|
|
2452
2446
|
leadSrc: {
|
|
2453
|
-
description: "An intro overlay that sequences an
|
|
2447
|
+
description: "An intro overlay that sequences an animated image (requires `stillSrc`): `leadSrc` plays once, then the component reveals `src` after a fixed hold. Follows the same `{scheme}` rules as animated sources (see `stillSrc`).",
|
|
2454
2448
|
type: { kind: "string" }
|
|
2455
2449
|
},
|
|
2456
|
-
|
|
2457
|
-
description: "Reduced-motion still
|
|
2458
|
-
requiredWhen: "`animated` is set",
|
|
2450
|
+
stillSrc: {
|
|
2451
|
+
description: "Reduced-motion still; providing it marks the image as animated (e.g. an animated `webp` in `src`). The still is shown when the user prefers reduced motion. Any image works; for a light/dark still use an adaptive SVG exported from Screen, which the component selects with `#light`/`#dark` when combined with `adaptive`. With `adaptive`, the animated `src`/`srcSet`/`sources` URLs carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair; without it, a single unthemed animated asset renders. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",
|
|
2459
2452
|
type: { kind: "string" }
|
|
2460
2453
|
},
|
|
2461
2454
|
src: {
|
|
@@ -2479,7 +2472,7 @@ const Si = {
|
|
|
2479
2472
|
{
|
|
2480
2473
|
target: { on: "host" },
|
|
2481
2474
|
attribute: "data-animated",
|
|
2482
|
-
condition: { kind: "when-
|
|
2475
|
+
condition: { kind: "when-non-empty", prop: "stillSrc" }
|
|
2483
2476
|
},
|
|
2484
2477
|
{
|
|
2485
2478
|
target: { on: "host" },
|
|
@@ -2598,7 +2591,7 @@ function oe({
|
|
|
2598
2591
|
labelLight: i = pt,
|
|
2599
2592
|
size: r = "md"
|
|
2600
2593
|
}) {
|
|
2601
|
-
const a =
|
|
2594
|
+
const a = b(n), d = e.trim() === "" ? lt : e, o = i.trim() === "" ? pt : i;
|
|
2602
2595
|
return {
|
|
2603
2596
|
kind: "element",
|
|
2604
2597
|
tag: X,
|
|
@@ -2617,8 +2610,8 @@ function oe({
|
|
|
2617
2610
|
type: "button"
|
|
2618
2611
|
},
|
|
2619
2612
|
children: [
|
|
2620
|
-
vt("dark",
|
|
2621
|
-
vt("light",
|
|
2613
|
+
vt("dark", d),
|
|
2614
|
+
vt("light", o)
|
|
2622
2615
|
]
|
|
2623
2616
|
}
|
|
2624
2617
|
]
|
|
@@ -2776,31 +2769,31 @@ function se({
|
|
|
2776
2769
|
size: i = "md",
|
|
2777
2770
|
triggerActivity: r,
|
|
2778
2771
|
triggerIcon: a,
|
|
2779
|
-
triggerIconMirrored:
|
|
2780
|
-
triggerIconPlacement:
|
|
2781
|
-
triggerLabel:
|
|
2772
|
+
triggerIconMirrored: d,
|
|
2773
|
+
triggerIconPlacement: o,
|
|
2774
|
+
triggerLabel: s,
|
|
2782
2775
|
triggerLabelVisibility: p
|
|
2783
2776
|
}) {
|
|
2784
|
-
const
|
|
2785
|
-
if (!
|
|
2777
|
+
const l = n.trim();
|
|
2778
|
+
if (!l)
|
|
2786
2779
|
throw new Error("id must be a non-empty string.");
|
|
2787
|
-
if (!H(
|
|
2780
|
+
if (!H(l))
|
|
2788
2781
|
throw new Error(
|
|
2789
2782
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2790
2783
|
);
|
|
2791
2784
|
if (!Array.isArray(e))
|
|
2792
2785
|
throw new Error("items must be an array.");
|
|
2793
|
-
const c = `${
|
|
2786
|
+
const c = `${l}-button`, h = `${l}-popup`, g = e.map((y) => ({
|
|
2794
2787
|
kind: "element",
|
|
2795
2788
|
tag: "button",
|
|
2796
2789
|
attrs: {
|
|
2797
|
-
"aria-disabled":
|
|
2798
|
-
"data-item-id":
|
|
2790
|
+
"aria-disabled": y.disabled ? "true" : void 0,
|
|
2791
|
+
"data-item-id": y.id || void 0,
|
|
2799
2792
|
role: "menuitem",
|
|
2800
2793
|
tabindex: "-1",
|
|
2801
2794
|
type: "button"
|
|
2802
2795
|
},
|
|
2803
|
-
children: [{ kind: "text", value:
|
|
2796
|
+
children: [{ kind: "text", value: y.label }]
|
|
2804
2797
|
}));
|
|
2805
2798
|
return {
|
|
2806
2799
|
kind: "element",
|
|
@@ -2809,7 +2802,7 @@ function se({
|
|
|
2809
2802
|
class: "set-menu",
|
|
2810
2803
|
"data-align": t === "start" ? void 0 : t,
|
|
2811
2804
|
"data-size": i,
|
|
2812
|
-
id:
|
|
2805
|
+
id: l
|
|
2813
2806
|
},
|
|
2814
2807
|
children: [
|
|
2815
2808
|
{
|
|
@@ -2824,10 +2817,10 @@ function se({
|
|
|
2824
2817
|
disclosure: !0,
|
|
2825
2818
|
haspopup: "menu",
|
|
2826
2819
|
icon: a,
|
|
2827
|
-
iconMirrored:
|
|
2828
|
-
iconPlacement:
|
|
2820
|
+
iconMirrored: d,
|
|
2821
|
+
iconPlacement: o,
|
|
2829
2822
|
id: c,
|
|
2830
|
-
label:
|
|
2823
|
+
label: s,
|
|
2831
2824
|
labelVisibility: p,
|
|
2832
2825
|
size: i,
|
|
2833
2826
|
tone: "neutral",
|
|
@@ -2845,7 +2838,7 @@ function se({
|
|
|
2845
2838
|
id: h,
|
|
2846
2839
|
role: "menu"
|
|
2847
2840
|
},
|
|
2848
|
-
children:
|
|
2841
|
+
children: g
|
|
2849
2842
|
}
|
|
2850
2843
|
]
|
|
2851
2844
|
};
|
|
@@ -2956,9 +2949,9 @@ function le() {
|
|
|
2956
2949
|
e.preventDefault(), this.#d(!0);
|
|
2957
2950
|
return;
|
|
2958
2951
|
}
|
|
2959
|
-
const a = this.ownerDocument.activeElement,
|
|
2952
|
+
const a = this.ownerDocument.activeElement, d = this.#c(), o = d.indexOf(a);
|
|
2960
2953
|
if (a === i) {
|
|
2961
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(
|
|
2954
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(d.length - 1));
|
|
2962
2955
|
return;
|
|
2963
2956
|
}
|
|
2964
2957
|
if (r.contains(a)) {
|
|
@@ -2966,7 +2959,7 @@ function le() {
|
|
|
2966
2959
|
e.preventDefault(), this.#s(a) || (this.#h(a), this.#d(!0));
|
|
2967
2960
|
return;
|
|
2968
2961
|
}
|
|
2969
|
-
e.key === "ArrowDown" && (e.preventDefault(), this.#o(
|
|
2962
|
+
e.key === "ArrowDown" && (e.preventDefault(), this.#o(o + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#o(o - 1)), e.key === "Home" && (e.preventDefault(), this.#o(0)), e.key === "End" && (e.preventDefault(), this.#o(d.length - 1)), e.key === "Tab" && this.#d(!1);
|
|
2970
2963
|
}
|
|
2971
2964
|
}, this.#i = (e) => {
|
|
2972
2965
|
const i = e.relatedTarget;
|
|
@@ -3133,7 +3126,7 @@ function pe({
|
|
|
3133
3126
|
label: i = ct,
|
|
3134
3127
|
size: r = "md"
|
|
3135
3128
|
} = {}) {
|
|
3136
|
-
const a =
|
|
3129
|
+
const a = b(e), d = i.trim() === "" ? ct : i;
|
|
3137
3130
|
return {
|
|
3138
3131
|
kind: "element",
|
|
3139
3132
|
tag: "button",
|
|
@@ -3161,7 +3154,7 @@ function pe({
|
|
|
3161
3154
|
kind: "element",
|
|
3162
3155
|
tag: "span",
|
|
3163
3156
|
attrs: { class: "visually-hidden" },
|
|
3164
|
-
children: [{ kind: "text", value:
|
|
3157
|
+
children: [{ kind: "text", value: d }]
|
|
3165
3158
|
}
|
|
3166
3159
|
]
|
|
3167
3160
|
}
|
|
@@ -3244,15 +3237,15 @@ function ue({
|
|
|
3244
3237
|
expanderPosition: i = "start",
|
|
3245
3238
|
id: r,
|
|
3246
3239
|
items: a,
|
|
3247
|
-
label:
|
|
3248
|
-
size:
|
|
3240
|
+
label: d,
|
|
3241
|
+
size: o = "md"
|
|
3249
3242
|
}) {
|
|
3250
|
-
const
|
|
3251
|
-
if (t && !
|
|
3243
|
+
const s = b(r), p = e?.trim() || void 0, l = n?.trim();
|
|
3244
|
+
if (t && !l)
|
|
3252
3245
|
throw new Error(
|
|
3253
3246
|
"contentId must be a non-empty string when collapsible is set."
|
|
3254
3247
|
);
|
|
3255
|
-
if (
|
|
3248
|
+
if (l && !H(l))
|
|
3256
3249
|
throw new Error(
|
|
3257
3250
|
"contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
3258
3251
|
);
|
|
@@ -3281,15 +3274,15 @@ function ue({
|
|
|
3281
3274
|
"data-collapsible": t,
|
|
3282
3275
|
"data-expander-label": t && p ? p : void 0,
|
|
3283
3276
|
"data-expander-position": t ? i : void 0,
|
|
3284
|
-
"data-size":
|
|
3285
|
-
id:
|
|
3277
|
+
"data-size": o,
|
|
3278
|
+
id: s
|
|
3286
3279
|
},
|
|
3287
3280
|
children: [
|
|
3288
3281
|
{
|
|
3289
3282
|
kind: "element",
|
|
3290
3283
|
tag: "nav",
|
|
3291
3284
|
attrs: {
|
|
3292
|
-
"aria-label":
|
|
3285
|
+
"aria-label": d || void 0,
|
|
3293
3286
|
class: "nav"
|
|
3294
3287
|
},
|
|
3295
3288
|
children: [
|
|
@@ -3298,7 +3291,7 @@ function ue({
|
|
|
3298
3291
|
tag: "div",
|
|
3299
3292
|
attrs: {
|
|
3300
3293
|
class: "content",
|
|
3301
|
-
id:
|
|
3294
|
+
id: l
|
|
3302
3295
|
},
|
|
3303
3296
|
children: [
|
|
3304
3297
|
{
|
|
@@ -3519,20 +3512,20 @@ function me({
|
|
|
3519
3512
|
inlineSize: i = "full",
|
|
3520
3513
|
label: r,
|
|
3521
3514
|
max: a,
|
|
3522
|
-
min:
|
|
3523
|
-
name:
|
|
3524
|
-
size:
|
|
3515
|
+
min: d,
|
|
3516
|
+
name: o,
|
|
3517
|
+
size: s = "md",
|
|
3525
3518
|
step: p,
|
|
3526
|
-
value:
|
|
3519
|
+
value: l
|
|
3527
3520
|
}) {
|
|
3528
|
-
const c = e.trim(), h = t?.trim(),
|
|
3521
|
+
const c = e.trim(), h = t?.trim(), g = o?.trim();
|
|
3529
3522
|
if (!c)
|
|
3530
3523
|
throw new Error("id must be a non-empty string.");
|
|
3531
3524
|
if (!H(c))
|
|
3532
3525
|
throw new Error(
|
|
3533
3526
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
3534
3527
|
);
|
|
3535
|
-
const
|
|
3528
|
+
const y = h ? `${c}-description` : void 0, v = [
|
|
3536
3529
|
{
|
|
3537
3530
|
kind: "element",
|
|
3538
3531
|
tag: "div",
|
|
@@ -3548,7 +3541,7 @@ function me({
|
|
|
3548
3541
|
kind: "element",
|
|
3549
3542
|
tag: "output",
|
|
3550
3543
|
attrs: { class: "output", for: c },
|
|
3551
|
-
children:
|
|
3544
|
+
children: l != null ? [{ kind: "text", value: String(l) }] : []
|
|
3552
3545
|
}
|
|
3553
3546
|
]
|
|
3554
3547
|
},
|
|
@@ -3556,24 +3549,24 @@ function me({
|
|
|
3556
3549
|
kind: "element",
|
|
3557
3550
|
tag: "input",
|
|
3558
3551
|
attrs: {
|
|
3559
|
-
"aria-describedby":
|
|
3552
|
+
"aria-describedby": y,
|
|
3560
3553
|
class: "range",
|
|
3561
3554
|
disabled: !!n,
|
|
3562
3555
|
id: c,
|
|
3563
3556
|
max: a != null ? String(a) : void 0,
|
|
3564
|
-
min:
|
|
3565
|
-
name:
|
|
3557
|
+
min: d != null ? String(d) : void 0,
|
|
3558
|
+
name: g || void 0,
|
|
3566
3559
|
step: p != null ? String(p) : void 0,
|
|
3567
3560
|
type: "range",
|
|
3568
|
-
value:
|
|
3561
|
+
value: l != null ? String(l) : void 0
|
|
3569
3562
|
},
|
|
3570
3563
|
children: []
|
|
3571
3564
|
}
|
|
3572
3565
|
];
|
|
3573
|
-
return h &&
|
|
3566
|
+
return h && v.push({
|
|
3574
3567
|
kind: "element",
|
|
3575
3568
|
tag: "p",
|
|
3576
|
-
attrs: { class: "description", id:
|
|
3569
|
+
attrs: { class: "description", id: y },
|
|
3577
3570
|
children: [{ kind: "text", value: h }]
|
|
3578
3571
|
}), {
|
|
3579
3572
|
kind: "element",
|
|
@@ -3581,9 +3574,9 @@ function me({
|
|
|
3581
3574
|
attrs: {
|
|
3582
3575
|
class: "set-range",
|
|
3583
3576
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
3584
|
-
"data-size":
|
|
3577
|
+
"data-size": s
|
|
3585
3578
|
},
|
|
3586
|
-
children:
|
|
3579
|
+
children: v
|
|
3587
3580
|
};
|
|
3588
3581
|
}
|
|
3589
3582
|
function Ii(t) {
|
|
@@ -3628,15 +3621,15 @@ function ke() {
|
|
|
3628
3621
|
"value"
|
|
3629
3622
|
);
|
|
3630
3623
|
if (!i?.get || !i.set) return;
|
|
3631
|
-
const r = i.get, a = i.set,
|
|
3624
|
+
const r = i.get, a = i.set, d = () => this.#i();
|
|
3632
3625
|
Object.defineProperty(e, "value", {
|
|
3633
3626
|
configurable: !0,
|
|
3634
3627
|
enumerable: i.enumerable,
|
|
3635
3628
|
get() {
|
|
3636
3629
|
return r.call(this);
|
|
3637
3630
|
},
|
|
3638
|
-
set(
|
|
3639
|
-
a.call(this,
|
|
3631
|
+
set(o) {
|
|
3632
|
+
a.call(this, o), d();
|
|
3640
3633
|
}
|
|
3641
3634
|
}), this.#t = e;
|
|
3642
3635
|
}
|
|
@@ -3798,11 +3791,11 @@ function ve({
|
|
|
3798
3791
|
collapseLabel: i = O,
|
|
3799
3792
|
footer: r,
|
|
3800
3793
|
header: a,
|
|
3801
|
-
id:
|
|
3802
|
-
surface:
|
|
3803
|
-
triggerLabel:
|
|
3794
|
+
id: d,
|
|
3795
|
+
surface: o,
|
|
3796
|
+
triggerLabel: s = ut
|
|
3804
3797
|
}) {
|
|
3805
|
-
const p =
|
|
3798
|
+
const p = d.trim(), l = i.trim() || O, c = s.trim() || ut;
|
|
3806
3799
|
if (!p)
|
|
3807
3800
|
throw new Error("id must be a non-empty string.");
|
|
3808
3801
|
if (!H(p))
|
|
@@ -3829,14 +3822,14 @@ function ve({
|
|
|
3829
3822
|
attrs: { class: "footer" },
|
|
3830
3823
|
children: [{ kind: "raw", html: r }]
|
|
3831
3824
|
});
|
|
3832
|
-
const
|
|
3825
|
+
const g = `${p}-panel`;
|
|
3833
3826
|
return {
|
|
3834
3827
|
kind: "element",
|
|
3835
3828
|
tag: tt,
|
|
3836
3829
|
attrs: {
|
|
3837
3830
|
class: "set-sidebar",
|
|
3838
3831
|
"data-above-notebook": t,
|
|
3839
|
-
"data-collapse-label":
|
|
3832
|
+
"data-collapse-label": l !== O ? l : void 0,
|
|
3840
3833
|
"data-button-size": n,
|
|
3841
3834
|
id: p
|
|
3842
3835
|
},
|
|
@@ -3848,7 +3841,7 @@ function ve({
|
|
|
3848
3841
|
children: [
|
|
3849
3842
|
ht({
|
|
3850
3843
|
appearance: "text",
|
|
3851
|
-
controls:
|
|
3844
|
+
controls: g,
|
|
3852
3845
|
disclosure: !0,
|
|
3853
3846
|
icon: "panel-left",
|
|
3854
3847
|
iconMirrored: "rtl",
|
|
@@ -3865,8 +3858,8 @@ function ve({
|
|
|
3865
3858
|
tag: "div",
|
|
3866
3859
|
attrs: {
|
|
3867
3860
|
class: "sidebar",
|
|
3868
|
-
"data-set-surface":
|
|
3869
|
-
id:
|
|
3861
|
+
"data-set-surface": o,
|
|
3862
|
+
id: g,
|
|
3870
3863
|
tabindex: "-1"
|
|
3871
3864
|
},
|
|
3872
3865
|
children: h
|
|
@@ -4167,17 +4160,17 @@ function ye({
|
|
|
4167
4160
|
height: i,
|
|
4168
4161
|
id: r,
|
|
4169
4162
|
loop: a,
|
|
4170
|
-
muted:
|
|
4171
|
-
playsInline:
|
|
4172
|
-
poster:
|
|
4163
|
+
muted: d,
|
|
4164
|
+
playsInline: o,
|
|
4165
|
+
poster: s,
|
|
4173
4166
|
preload: p,
|
|
4174
|
-
src:
|
|
4167
|
+
src: l,
|
|
4175
4168
|
width: c
|
|
4176
4169
|
}) {
|
|
4177
|
-
const h =
|
|
4178
|
-
if (!
|
|
4170
|
+
const h = b(r), g = l.trim(), y = s?.trim();
|
|
4171
|
+
if (!g)
|
|
4179
4172
|
throw new Error("src must be a non-empty string.");
|
|
4180
|
-
const
|
|
4173
|
+
const v = {
|
|
4181
4174
|
kind: "element",
|
|
4182
4175
|
tag: "video",
|
|
4183
4176
|
attrs: {
|
|
@@ -4186,11 +4179,11 @@ function ye({
|
|
|
4186
4179
|
controls: !!n,
|
|
4187
4180
|
height: i ? String(i) : void 0,
|
|
4188
4181
|
loop: !!a,
|
|
4189
|
-
muted: !!
|
|
4190
|
-
playsinline: !!
|
|
4191
|
-
poster:
|
|
4182
|
+
muted: !!d,
|
|
4183
|
+
playsinline: !!o,
|
|
4184
|
+
poster: y || void 0,
|
|
4192
4185
|
preload: p,
|
|
4193
|
-
src:
|
|
4186
|
+
src: g,
|
|
4194
4187
|
width: c ? String(c) : void 0
|
|
4195
4188
|
},
|
|
4196
4189
|
children: []
|
|
@@ -4203,7 +4196,7 @@ function ye({
|
|
|
4203
4196
|
"data-fluid": e === "fluid",
|
|
4204
4197
|
id: h
|
|
4205
4198
|
},
|
|
4206
|
-
children: [
|
|
4199
|
+
children: [v]
|
|
4207
4200
|
};
|
|
4208
4201
|
}
|
|
4209
4202
|
function Di(t) {
|
|
@@ -4383,27 +4376,27 @@ function ze(t) {
|
|
|
4383
4376
|
return r[0];
|
|
4384
4377
|
const a = e.slice(1).find(Ee);
|
|
4385
4378
|
if (a) {
|
|
4386
|
-
const
|
|
4387
|
-
return
|
|
4379
|
+
const o = B(a);
|
|
4380
|
+
return o ? `${r[0]}${o}` : void 0;
|
|
4388
4381
|
}
|
|
4389
4382
|
if (e.length === 2) {
|
|
4390
|
-
const
|
|
4391
|
-
if (!
|
|
4392
|
-
r.push(
|
|
4393
|
-
const
|
|
4394
|
-
if (
|
|
4395
|
-
const p = B(
|
|
4383
|
+
const o = B(e[1]);
|
|
4384
|
+
if (!o) return;
|
|
4385
|
+
r.push(o);
|
|
4386
|
+
const s = e[1].split("-").filter(Boolean);
|
|
4387
|
+
if (s.length === 2) {
|
|
4388
|
+
const p = B(s[1]);
|
|
4396
4389
|
p && r.push(p);
|
|
4397
4390
|
}
|
|
4398
4391
|
return r.slice(0, 3).join("");
|
|
4399
4392
|
}
|
|
4400
4393
|
if (e.length === 3) {
|
|
4401
|
-
const
|
|
4402
|
-
return !
|
|
4394
|
+
const o = B(e[1]), s = B(e[2]);
|
|
4395
|
+
return !o || !s ? void 0 : (r.push(o, s), r.slice(0, 3).join(""));
|
|
4403
4396
|
}
|
|
4404
|
-
const
|
|
4405
|
-
if (
|
|
4406
|
-
return r.push(
|
|
4397
|
+
const d = B(e.at(-1) || "");
|
|
4398
|
+
if (d)
|
|
4399
|
+
return r.push(d), r.slice(0, 3).join("");
|
|
4407
4400
|
}
|
|
4408
4401
|
const Le = {
|
|
4409
4402
|
bot: "robot-1",
|
|
@@ -4464,43 +4457,43 @@ function Ae({
|
|
|
4464
4457
|
entity: i = "person",
|
|
4465
4458
|
id: r,
|
|
4466
4459
|
initials: a,
|
|
4467
|
-
name:
|
|
4468
|
-
size:
|
|
4469
|
-
src:
|
|
4460
|
+
name: d,
|
|
4461
|
+
size: o = "md",
|
|
4462
|
+
src: s
|
|
4470
4463
|
}) {
|
|
4471
|
-
const p =
|
|
4464
|
+
const p = b(r), l = Me(a), c = P(d), h = P(s), g = qe({
|
|
4472
4465
|
alt: t,
|
|
4473
4466
|
ariaHidden: n,
|
|
4474
4467
|
name: c
|
|
4475
|
-
}),
|
|
4468
|
+
}), y = l || ze(c), v = !!h, z = Ie({
|
|
4476
4469
|
color: e,
|
|
4477
4470
|
name: c
|
|
4478
|
-
}),
|
|
4471
|
+
}), M = {
|
|
4479
4472
|
"aria-hidden": n ? "true" : void 0,
|
|
4480
|
-
"aria-label": !n && !
|
|
4473
|
+
"aria-label": !n && !v ? g : void 0,
|
|
4481
4474
|
class: "set-avatar",
|
|
4482
4475
|
"data-color": z === "neutral" ? void 0 : z,
|
|
4483
4476
|
"data-entity": i === "person" ? void 0 : i,
|
|
4484
|
-
"data-size":
|
|
4477
|
+
"data-size": o,
|
|
4485
4478
|
id: p,
|
|
4486
|
-
role: !n && !
|
|
4479
|
+
role: !n && !v ? "img" : void 0
|
|
4487
4480
|
};
|
|
4488
|
-
let
|
|
4489
|
-
return
|
|
4481
|
+
let S;
|
|
4482
|
+
return v ? S = {
|
|
4490
4483
|
kind: "element",
|
|
4491
4484
|
tag: "img",
|
|
4492
4485
|
attrs: {
|
|
4493
|
-
alt: n ? "" :
|
|
4486
|
+
alt: n ? "" : g || "",
|
|
4494
4487
|
class: "img",
|
|
4495
4488
|
src: h
|
|
4496
4489
|
},
|
|
4497
4490
|
children: []
|
|
4498
|
-
} :
|
|
4491
|
+
} : y ? S = {
|
|
4499
4492
|
kind: "element",
|
|
4500
4493
|
tag: "span",
|
|
4501
4494
|
attrs: { class: "initials" },
|
|
4502
|
-
children: [{ kind: "text", value:
|
|
4503
|
-
} :
|
|
4495
|
+
children: [{ kind: "text", value: y }]
|
|
4496
|
+
} : S = {
|
|
4504
4497
|
kind: "element",
|
|
4505
4498
|
tag: "span",
|
|
4506
4499
|
attrs: { class: "icon-wrapper" },
|
|
@@ -4514,8 +4507,8 @@ function Ae({
|
|
|
4514
4507
|
}, {
|
|
4515
4508
|
kind: "element",
|
|
4516
4509
|
tag: "span",
|
|
4517
|
-
attrs:
|
|
4518
|
-
children: [
|
|
4510
|
+
attrs: M,
|
|
4511
|
+
children: [S]
|
|
4519
4512
|
};
|
|
4520
4513
|
}
|
|
4521
4514
|
function Hi(t) {
|
|
@@ -4635,7 +4628,7 @@ function Te({
|
|
|
4635
4628
|
size: i = "md",
|
|
4636
4629
|
tone: r
|
|
4637
4630
|
}) {
|
|
4638
|
-
const a =
|
|
4631
|
+
const a = b(n);
|
|
4639
4632
|
return {
|
|
4640
4633
|
kind: "element",
|
|
4641
4634
|
tag: "span",
|
|
@@ -4728,25 +4721,25 @@ function it({
|
|
|
4728
4721
|
id: i,
|
|
4729
4722
|
linkVisited: r = !0,
|
|
4730
4723
|
measured: a,
|
|
4731
|
-
monospaced:
|
|
4732
|
-
responsive:
|
|
4733
|
-
size:
|
|
4724
|
+
monospaced: d,
|
|
4725
|
+
responsive: o,
|
|
4726
|
+
size: s = "md",
|
|
4734
4727
|
tone: p = "default"
|
|
4735
4728
|
}) {
|
|
4736
|
-
const
|
|
4729
|
+
const l = b(i), c = n === "p" ? "p" : "span", h = c === "p", g = h ? t ?? "start" : void 0;
|
|
4737
4730
|
return {
|
|
4738
4731
|
kind: "element",
|
|
4739
4732
|
tag: c,
|
|
4740
4733
|
attrs: {
|
|
4741
4734
|
class: "set-text",
|
|
4742
|
-
"data-align":
|
|
4735
|
+
"data-align": g && g !== "start" ? g : void 0,
|
|
4743
4736
|
"data-link-visited": r ? void 0 : "off",
|
|
4744
4737
|
"data-measured": h ? a ?? !0 : void 0,
|
|
4745
|
-
"data-monospaced":
|
|
4746
|
-
"data-responsive":
|
|
4747
|
-
"data-size":
|
|
4738
|
+
"data-monospaced": d,
|
|
4739
|
+
"data-responsive": o,
|
|
4740
|
+
"data-size": s,
|
|
4748
4741
|
"data-tone": p === "muted" ? "muted" : void 0,
|
|
4749
|
-
id:
|
|
4742
|
+
id: l
|
|
4750
4743
|
},
|
|
4751
4744
|
children: [{ kind: "raw", html: e }]
|
|
4752
4745
|
};
|
|
@@ -4885,16 +4878,16 @@ function _e({
|
|
|
4885
4878
|
measured: i = !0,
|
|
4886
4879
|
quote: r,
|
|
4887
4880
|
responsive: a = !1,
|
|
4888
|
-
size:
|
|
4881
|
+
size: d = "md"
|
|
4889
4882
|
}) {
|
|
4890
|
-
const
|
|
4883
|
+
const o = b(e);
|
|
4891
4884
|
return {
|
|
4892
4885
|
kind: "element",
|
|
4893
4886
|
tag: "figure",
|
|
4894
4887
|
attrs: {
|
|
4895
4888
|
class: "set-blockquote",
|
|
4896
4889
|
"data-align": t === "start" ? void 0 : t,
|
|
4897
|
-
id:
|
|
4890
|
+
id: o
|
|
4898
4891
|
},
|
|
4899
4892
|
children: [
|
|
4900
4893
|
{
|
|
@@ -4908,7 +4901,7 @@ function _e({
|
|
|
4908
4901
|
children: r,
|
|
4909
4902
|
measured: i,
|
|
4910
4903
|
responsive: a,
|
|
4911
|
-
size:
|
|
4904
|
+
size: d
|
|
4912
4905
|
})
|
|
4913
4906
|
]
|
|
4914
4907
|
},
|
|
@@ -5007,11 +5000,11 @@ function De({
|
|
|
5007
5000
|
id: i,
|
|
5008
5001
|
paddingBlock: r = "md",
|
|
5009
5002
|
paddingInline: a = "md",
|
|
5010
|
-
radius:
|
|
5011
|
-
responsive:
|
|
5012
|
-
surface:
|
|
5003
|
+
radius: d,
|
|
5004
|
+
responsive: o,
|
|
5005
|
+
surface: s
|
|
5013
5006
|
}) {
|
|
5014
|
-
const p =
|
|
5007
|
+
const p = b(i);
|
|
5015
5008
|
return {
|
|
5016
5009
|
kind: "element",
|
|
5017
5010
|
tag: "div",
|
|
@@ -5019,11 +5012,11 @@ function De({
|
|
|
5019
5012
|
class: "set-box",
|
|
5020
5013
|
"data-background": t === "default" ? void 0 : t,
|
|
5021
5014
|
"data-border": n,
|
|
5022
|
-
"data-set-surface":
|
|
5015
|
+
"data-set-surface": s,
|
|
5023
5016
|
"data-padding-block": r,
|
|
5024
5017
|
"data-padding-inline": a,
|
|
5025
|
-
"data-radius":
|
|
5026
|
-
"data-responsive":
|
|
5018
|
+
"data-radius": d,
|
|
5019
|
+
"data-responsive": o,
|
|
5027
5020
|
id: p
|
|
5028
5021
|
},
|
|
5029
5022
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
@@ -5152,17 +5145,17 @@ function Ve({
|
|
|
5152
5145
|
id: i,
|
|
5153
5146
|
note: r,
|
|
5154
5147
|
surface: a,
|
|
5155
|
-
title:
|
|
5148
|
+
title: d
|
|
5156
5149
|
}) {
|
|
5157
|
-
const
|
|
5150
|
+
const o = b(i), s = n ? `h${n}` : "div", p = e ? [
|
|
5158
5151
|
{
|
|
5159
5152
|
kind: "element",
|
|
5160
5153
|
tag: "a",
|
|
5161
5154
|
attrs: { href: e },
|
|
5162
|
-
children: [{ kind: "text", value:
|
|
5155
|
+
children: [{ kind: "text", value: d }]
|
|
5163
5156
|
}
|
|
5164
|
-
] : [{ kind: "text", value:
|
|
5165
|
-
r && e &&
|
|
5157
|
+
] : [{ kind: "text", value: d }], l = r ? [{ kind: "raw", html: r }] : [];
|
|
5158
|
+
r && e && l.push({
|
|
5166
5159
|
kind: "element",
|
|
5167
5160
|
tag: "span",
|
|
5168
5161
|
attrs: { class: "icon-wrapper" },
|
|
@@ -5184,7 +5177,7 @@ function Ve({
|
|
|
5184
5177
|
},
|
|
5185
5178
|
{
|
|
5186
5179
|
kind: "element",
|
|
5187
|
-
tag:
|
|
5180
|
+
tag: s,
|
|
5188
5181
|
attrs: { class: "title" },
|
|
5189
5182
|
children: p
|
|
5190
5183
|
},
|
|
@@ -5199,14 +5192,14 @@ function Ve({
|
|
|
5199
5192
|
kind: "element",
|
|
5200
5193
|
tag: "p",
|
|
5201
5194
|
attrs: { class: "note" },
|
|
5202
|
-
children:
|
|
5195
|
+
children: l
|
|
5203
5196
|
}), {
|
|
5204
5197
|
kind: "element",
|
|
5205
5198
|
tag: "div",
|
|
5206
5199
|
attrs: {
|
|
5207
5200
|
class: "set-card",
|
|
5208
5201
|
"data-set-surface": a,
|
|
5209
|
-
id:
|
|
5202
|
+
id: o
|
|
5210
5203
|
},
|
|
5211
5204
|
children: c
|
|
5212
5205
|
};
|
|
@@ -5289,15 +5282,15 @@ function He({
|
|
|
5289
5282
|
id: i,
|
|
5290
5283
|
invalid: r,
|
|
5291
5284
|
label: a,
|
|
5292
|
-
name:
|
|
5293
|
-
required:
|
|
5294
|
-
size:
|
|
5285
|
+
name: d,
|
|
5286
|
+
required: o,
|
|
5287
|
+
size: s = "md",
|
|
5295
5288
|
value: p
|
|
5296
5289
|
}) {
|
|
5297
|
-
const
|
|
5298
|
-
if (c && !
|
|
5290
|
+
const l = b(i), c = n?.trim();
|
|
5291
|
+
if (c && !l)
|
|
5299
5292
|
throw new Error("id must be provided when description is provided.");
|
|
5300
|
-
const h = c ? `${
|
|
5293
|
+
const h = c ? `${l}-description` : void 0, g = !!e, v = [
|
|
5301
5294
|
{
|
|
5302
5295
|
kind: "element",
|
|
5303
5296
|
tag: "label",
|
|
@@ -5308,13 +5301,13 @@ function He({
|
|
|
5308
5301
|
tag: "input",
|
|
5309
5302
|
attrs: {
|
|
5310
5303
|
"aria-describedby": h,
|
|
5311
|
-
"aria-invalid": !
|
|
5304
|
+
"aria-invalid": !g && !!r ? "true" : void 0,
|
|
5312
5305
|
checked: !!t,
|
|
5313
5306
|
class: "checkbox",
|
|
5314
|
-
disabled:
|
|
5315
|
-
id:
|
|
5316
|
-
name:
|
|
5317
|
-
required: !!
|
|
5307
|
+
disabled: g,
|
|
5308
|
+
id: l,
|
|
5309
|
+
name: d || void 0,
|
|
5310
|
+
required: !!o,
|
|
5318
5311
|
type: "checkbox",
|
|
5319
5312
|
value: p || void 0
|
|
5320
5313
|
},
|
|
@@ -5329,7 +5322,7 @@ function He({
|
|
|
5329
5322
|
]
|
|
5330
5323
|
}
|
|
5331
5324
|
];
|
|
5332
|
-
return c &&
|
|
5325
|
+
return c && v.push({
|
|
5333
5326
|
kind: "element",
|
|
5334
5327
|
tag: "p",
|
|
5335
5328
|
attrs: { class: "description", id: h },
|
|
@@ -5337,8 +5330,8 @@ function He({
|
|
|
5337
5330
|
}), {
|
|
5338
5331
|
kind: "element",
|
|
5339
5332
|
tag: "div",
|
|
5340
|
-
attrs: { class: "set-checkbox", "data-size":
|
|
5341
|
-
children:
|
|
5333
|
+
attrs: { class: "set-checkbox", "data-size": s },
|
|
5334
|
+
children: v
|
|
5342
5335
|
};
|
|
5343
5336
|
}
|
|
5344
5337
|
function ji(t) {
|
|
@@ -5480,7 +5473,7 @@ function Ne({
|
|
|
5480
5473
|
id: e,
|
|
5481
5474
|
maxInlineSize: i = "default"
|
|
5482
5475
|
}) {
|
|
5483
|
-
const r =
|
|
5476
|
+
const r = b(e);
|
|
5484
5477
|
return {
|
|
5485
5478
|
kind: "element",
|
|
5486
5479
|
tag: "div",
|
|
@@ -5560,7 +5553,7 @@ function Be({
|
|
|
5560
5553
|
summary: i,
|
|
5561
5554
|
inlineSize: r = "full"
|
|
5562
5555
|
}) {
|
|
5563
|
-
const a =
|
|
5556
|
+
const a = b(n);
|
|
5564
5557
|
return {
|
|
5565
5558
|
kind: "element",
|
|
5566
5559
|
tag: "details",
|
|
@@ -5672,7 +5665,7 @@ function Oe({
|
|
|
5672
5665
|
orientation: n = "horizontal",
|
|
5673
5666
|
tone: e = "default"
|
|
5674
5667
|
} = {}) {
|
|
5675
|
-
const i =
|
|
5668
|
+
const i = b(t);
|
|
5676
5669
|
return {
|
|
5677
5670
|
kind: "element",
|
|
5678
5671
|
tag: n === "horizontal" ? "hr" : "span",
|
|
@@ -5758,16 +5751,16 @@ function Tt({
|
|
|
5758
5751
|
id: i,
|
|
5759
5752
|
invalid: r,
|
|
5760
5753
|
legend: a,
|
|
5761
|
-
inlineSize:
|
|
5754
|
+
inlineSize: d = "full"
|
|
5762
5755
|
}) {
|
|
5763
|
-
const
|
|
5764
|
-
if (!
|
|
5756
|
+
const o = n?.trim(), s = i.trim();
|
|
5757
|
+
if (!s)
|
|
5765
5758
|
throw new Error("id must be a non-empty string.");
|
|
5766
|
-
if (!H(
|
|
5759
|
+
if (!H(s))
|
|
5767
5760
|
throw new Error(
|
|
5768
5761
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
5769
5762
|
);
|
|
5770
|
-
const p =
|
|
5763
|
+
const p = o ? `${s}-description` : void 0, l = !!e, c = !l && !!r, h = [
|
|
5771
5764
|
{
|
|
5772
5765
|
kind: "element",
|
|
5773
5766
|
tag: "legend",
|
|
@@ -5775,21 +5768,21 @@ function Tt({
|
|
|
5775
5768
|
children: [{ kind: "text", value: a }]
|
|
5776
5769
|
}
|
|
5777
5770
|
];
|
|
5778
|
-
return
|
|
5771
|
+
return o && h.push({
|
|
5779
5772
|
kind: "element",
|
|
5780
5773
|
tag: "p",
|
|
5781
5774
|
attrs: { class: "description", id: p },
|
|
5782
|
-
children: [{ kind: "text", value:
|
|
5775
|
+
children: [{ kind: "text", value: o }]
|
|
5783
5776
|
}), t && h.push({ kind: "raw", html: t }), {
|
|
5784
5777
|
kind: "element",
|
|
5785
5778
|
tag: "fieldset",
|
|
5786
5779
|
attrs: {
|
|
5787
|
-
"aria-describedby":
|
|
5780
|
+
"aria-describedby": o ? p : void 0,
|
|
5788
5781
|
"aria-invalid": c ? "true" : void 0,
|
|
5789
5782
|
class: "set-fieldset",
|
|
5790
|
-
"data-inline-size":
|
|
5791
|
-
disabled:
|
|
5792
|
-
id:
|
|
5783
|
+
"data-inline-size": d === "fit" ? "fit" : void 0,
|
|
5784
|
+
disabled: l,
|
|
5785
|
+
id: s
|
|
5793
5786
|
},
|
|
5794
5787
|
children: h
|
|
5795
5788
|
};
|
|
@@ -5893,7 +5886,7 @@ function Pe({
|
|
|
5893
5886
|
inlineSize: r = "full",
|
|
5894
5887
|
responsive: a = !1
|
|
5895
5888
|
}) {
|
|
5896
|
-
const
|
|
5889
|
+
const d = b(i);
|
|
5897
5890
|
return {
|
|
5898
5891
|
kind: "element",
|
|
5899
5892
|
tag: "figure",
|
|
@@ -5901,7 +5894,7 @@ function Pe({
|
|
|
5901
5894
|
class: "set-figure",
|
|
5902
5895
|
"data-align": t === "start" ? void 0 : t,
|
|
5903
5896
|
"data-inline-size": r === "full" ? void 0 : r,
|
|
5904
|
-
id:
|
|
5897
|
+
id: d
|
|
5905
5898
|
},
|
|
5906
5899
|
children: [
|
|
5907
5900
|
{ kind: "raw", html: e },
|
|
@@ -6002,7 +5995,7 @@ function Re({
|
|
|
6002
5995
|
gap: n = "default",
|
|
6003
5996
|
id: e
|
|
6004
5997
|
}) {
|
|
6005
|
-
const i =
|
|
5998
|
+
const i = b(e);
|
|
6006
5999
|
return {
|
|
6007
6000
|
kind: "element",
|
|
6008
6001
|
tag: "div",
|
|
@@ -6031,18 +6024,18 @@ function We({
|
|
|
6031
6024
|
colSpanNarrow: i,
|
|
6032
6025
|
colSpanWide: r,
|
|
6033
6026
|
colStart: a,
|
|
6034
|
-
colStartNarrow:
|
|
6035
|
-
colStartWide:
|
|
6036
|
-
id:
|
|
6027
|
+
colStartNarrow: d,
|
|
6028
|
+
colStartWide: o,
|
|
6029
|
+
id: s,
|
|
6037
6030
|
justify: p,
|
|
6038
|
-
rowSpan:
|
|
6031
|
+
rowSpan: l,
|
|
6039
6032
|
rowSpanNarrow: c,
|
|
6040
6033
|
rowSpanWide: h,
|
|
6041
|
-
rowStart:
|
|
6042
|
-
rowStartNarrow:
|
|
6043
|
-
rowStartWide:
|
|
6034
|
+
rowStart: g,
|
|
6035
|
+
rowStartNarrow: y,
|
|
6036
|
+
rowStartWide: v
|
|
6044
6037
|
}) {
|
|
6045
|
-
const z =
|
|
6038
|
+
const z = b(s);
|
|
6046
6039
|
return {
|
|
6047
6040
|
kind: "element",
|
|
6048
6041
|
tag: "div",
|
|
@@ -6051,17 +6044,17 @@ function We({
|
|
|
6051
6044
|
"data-align": t,
|
|
6052
6045
|
"data-justify": p,
|
|
6053
6046
|
"data-col-span-narrow": _(i),
|
|
6054
|
-
"data-col-start-narrow": _(
|
|
6047
|
+
"data-col-start-narrow": _(d),
|
|
6055
6048
|
"data-col-span": _(e),
|
|
6056
6049
|
"data-col-start": _(a),
|
|
6057
6050
|
"data-col-span-wide": _(r),
|
|
6058
|
-
"data-col-start-wide": _(
|
|
6051
|
+
"data-col-start-wide": _(o),
|
|
6059
6052
|
"data-row-span-narrow": _(c),
|
|
6060
|
-
"data-row-start-narrow": _(
|
|
6061
|
-
"data-row-span": _(
|
|
6062
|
-
"data-row-start": _(
|
|
6053
|
+
"data-row-start-narrow": _(y),
|
|
6054
|
+
"data-row-span": _(l),
|
|
6055
|
+
"data-row-start": _(g),
|
|
6063
6056
|
"data-row-span-wide": _(h),
|
|
6064
|
-
"data-row-start-wide": _(
|
|
6057
|
+
"data-row-start-wide": _(v),
|
|
6065
6058
|
id: z
|
|
6066
6059
|
},
|
|
6067
6060
|
children: n ? [{ kind: "raw", html: n }] : []
|
|
@@ -6290,9 +6283,9 @@ function Ue({
|
|
|
6290
6283
|
opticalAlign: i,
|
|
6291
6284
|
responsive: r,
|
|
6292
6285
|
size: a = "md",
|
|
6293
|
-
text:
|
|
6286
|
+
text: d
|
|
6294
6287
|
}) {
|
|
6295
|
-
const
|
|
6288
|
+
const o = b(n);
|
|
6296
6289
|
return {
|
|
6297
6290
|
kind: "element",
|
|
6298
6291
|
tag: e ? `h${e}` : "span",
|
|
@@ -6302,9 +6295,9 @@ function Ue({
|
|
|
6302
6295
|
"data-optical-align": i,
|
|
6303
6296
|
"data-responsive": r,
|
|
6304
6297
|
"data-size": a,
|
|
6305
|
-
id:
|
|
6298
|
+
id: o
|
|
6306
6299
|
},
|
|
6307
|
-
children: [{ kind: "text", value:
|
|
6300
|
+
children: [{ kind: "text", value: d }]
|
|
6308
6301
|
};
|
|
6309
6302
|
}
|
|
6310
6303
|
function cn(t) {
|
|
@@ -6412,9 +6405,9 @@ function $e({
|
|
|
6412
6405
|
gap: i = "md",
|
|
6413
6406
|
id: r,
|
|
6414
6407
|
justify: a = "start",
|
|
6415
|
-
nowrap:
|
|
6408
|
+
nowrap: d
|
|
6416
6409
|
}) {
|
|
6417
|
-
const
|
|
6410
|
+
const o = b(r);
|
|
6418
6411
|
return {
|
|
6419
6412
|
kind: "element",
|
|
6420
6413
|
tag: n,
|
|
@@ -6423,8 +6416,8 @@ function $e({
|
|
|
6423
6416
|
"data-align": t === "center" ? void 0 : t,
|
|
6424
6417
|
"data-gap": i,
|
|
6425
6418
|
"data-justify": a === "start" ? void 0 : a,
|
|
6426
|
-
"data-nowrap":
|
|
6427
|
-
id:
|
|
6419
|
+
"data-nowrap": d,
|
|
6420
|
+
id: o
|
|
6428
6421
|
},
|
|
6429
6422
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6430
6423
|
};
|
|
@@ -6524,28 +6517,28 @@ function Ge({
|
|
|
6524
6517
|
id: i,
|
|
6525
6518
|
invalid: r,
|
|
6526
6519
|
label: a,
|
|
6527
|
-
name:
|
|
6528
|
-
pattern:
|
|
6529
|
-
readOnly:
|
|
6520
|
+
name: d,
|
|
6521
|
+
pattern: o,
|
|
6522
|
+
readOnly: s,
|
|
6530
6523
|
required: p,
|
|
6531
|
-
size:
|
|
6524
|
+
size: l = "md",
|
|
6532
6525
|
spellcheck: c,
|
|
6533
6526
|
type: h = "text",
|
|
6534
|
-
value:
|
|
6535
|
-
inlineSize:
|
|
6527
|
+
value: g,
|
|
6528
|
+
inlineSize: y = "full"
|
|
6536
6529
|
}) {
|
|
6537
|
-
const
|
|
6538
|
-
if (!
|
|
6530
|
+
const v = i.trim(), z = n?.trim(), M = t === !1 ? !1 : t?.trim(), S = d?.trim(), w = o?.trim(), x = g;
|
|
6531
|
+
if (!v)
|
|
6539
6532
|
throw new Error("id must be a non-empty string.");
|
|
6540
|
-
if (!H(
|
|
6533
|
+
if (!H(v))
|
|
6541
6534
|
throw new Error(
|
|
6542
6535
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
6543
6536
|
);
|
|
6544
|
-
const E = z ? `${
|
|
6537
|
+
const E = z ? `${v}-description` : void 0, L = h === "numeric", A = L ? "text" : h, V = w || (L ? "^[0-9]*$" : void 0), q = c === void 0 && L ? !1 : c, I = !!e, N = !I && !!s, $ = [
|
|
6545
6538
|
{
|
|
6546
6539
|
kind: "element",
|
|
6547
6540
|
tag: "label",
|
|
6548
|
-
attrs: { class: "label", for:
|
|
6541
|
+
attrs: { class: "label", for: v },
|
|
6549
6542
|
children: [{ kind: "text", value: a }]
|
|
6550
6543
|
},
|
|
6551
6544
|
{
|
|
@@ -6553,19 +6546,19 @@ function Ge({
|
|
|
6553
6546
|
tag: "input",
|
|
6554
6547
|
attrs: {
|
|
6555
6548
|
"aria-describedby": E,
|
|
6556
|
-
"aria-invalid": !
|
|
6557
|
-
autocomplete:
|
|
6549
|
+
"aria-invalid": !I && !N && !!r ? "true" : void 0,
|
|
6550
|
+
autocomplete: M === !1 ? "off" : M || void 0,
|
|
6558
6551
|
class: "input",
|
|
6559
|
-
disabled:
|
|
6560
|
-
id:
|
|
6561
|
-
inputmode:
|
|
6562
|
-
name:
|
|
6563
|
-
pattern:
|
|
6552
|
+
disabled: I,
|
|
6553
|
+
id: v,
|
|
6554
|
+
inputmode: L ? "numeric" : void 0,
|
|
6555
|
+
name: S || void 0,
|
|
6556
|
+
pattern: V,
|
|
6564
6557
|
readonly: N,
|
|
6565
6558
|
required: !!p,
|
|
6566
|
-
spellcheck:
|
|
6567
|
-
type:
|
|
6568
|
-
value:
|
|
6559
|
+
spellcheck: q === void 0 ? void 0 : String(q),
|
|
6560
|
+
type: A,
|
|
6561
|
+
value: x
|
|
6569
6562
|
},
|
|
6570
6563
|
children: []
|
|
6571
6564
|
}
|
|
@@ -6580,8 +6573,8 @@ function Ge({
|
|
|
6580
6573
|
tag: "div",
|
|
6581
6574
|
attrs: {
|
|
6582
6575
|
class: "set-input",
|
|
6583
|
-
"data-size":
|
|
6584
|
-
"data-inline-size":
|
|
6576
|
+
"data-size": l,
|
|
6577
|
+
"data-inline-size": y === "fit" ? "fit" : void 0
|
|
6585
6578
|
},
|
|
6586
6579
|
children: $
|
|
6587
6580
|
};
|
|
@@ -6844,7 +6837,7 @@ function ti({
|
|
|
6844
6837
|
tone: r = "default",
|
|
6845
6838
|
variant: a = "primary"
|
|
6846
6839
|
}) {
|
|
6847
|
-
const
|
|
6840
|
+
const d = b(n), o = !!t && (a === "primary" || a === "graphic"), s = [
|
|
6848
6841
|
{
|
|
6849
6842
|
kind: "element",
|
|
6850
6843
|
tag: "span",
|
|
@@ -6852,20 +6845,20 @@ function ti({
|
|
|
6852
6845
|
children: [{ kind: "text", value: e }]
|
|
6853
6846
|
}
|
|
6854
6847
|
];
|
|
6855
|
-
return
|
|
6848
|
+
return o && s.push(
|
|
6856
6849
|
a === "graphic" ? Je() : Ye()
|
|
6857
6850
|
), {
|
|
6858
6851
|
kind: "element",
|
|
6859
6852
|
tag: "div",
|
|
6860
6853
|
attrs: {
|
|
6861
6854
|
class: "set-logo",
|
|
6862
|
-
"data-animated":
|
|
6855
|
+
"data-animated": o,
|
|
6863
6856
|
"data-size": i,
|
|
6864
6857
|
"data-tone": r === "neutral" ? "neutral" : void 0,
|
|
6865
6858
|
"data-variant": a === "primary" ? void 0 : a,
|
|
6866
|
-
id:
|
|
6859
|
+
id: d
|
|
6867
6860
|
},
|
|
6868
|
-
children:
|
|
6861
|
+
children: s
|
|
6869
6862
|
};
|
|
6870
6863
|
}
|
|
6871
6864
|
function bn(t) {
|
|
@@ -6966,22 +6959,22 @@ function ei({
|
|
|
6966
6959
|
footer: i,
|
|
6967
6960
|
header: r,
|
|
6968
6961
|
headerBorder: a,
|
|
6969
|
-
headerSize:
|
|
6970
|
-
id:
|
|
6971
|
-
stickyHeader:
|
|
6962
|
+
headerSize: d = "md",
|
|
6963
|
+
id: o,
|
|
6964
|
+
stickyHeader: s
|
|
6972
6965
|
}) {
|
|
6973
|
-
const p =
|
|
6974
|
-
return t &&
|
|
6966
|
+
const p = b(o), l = [];
|
|
6967
|
+
return t && l.push({ kind: "raw", html: t }), l.push({
|
|
6975
6968
|
kind: "element",
|
|
6976
6969
|
tag: "header",
|
|
6977
6970
|
attrs: { class: "header" },
|
|
6978
6971
|
children: [{ kind: "raw", html: r }]
|
|
6979
|
-
}),
|
|
6972
|
+
}), l.push({
|
|
6980
6973
|
kind: "element",
|
|
6981
6974
|
tag: "main",
|
|
6982
6975
|
attrs: { class: "main" },
|
|
6983
6976
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6984
|
-
}),
|
|
6977
|
+
}), l.push({
|
|
6985
6978
|
kind: "element",
|
|
6986
6979
|
tag: "footer",
|
|
6987
6980
|
attrs: { class: "footer" },
|
|
@@ -6993,11 +6986,11 @@ function ei({
|
|
|
6993
6986
|
class: "set-page",
|
|
6994
6987
|
"data-center-main": n,
|
|
6995
6988
|
"data-header-border": a,
|
|
6996
|
-
"data-header-size":
|
|
6997
|
-
"data-sticky-header":
|
|
6989
|
+
"data-header-size": d,
|
|
6990
|
+
"data-sticky-header": s,
|
|
6998
6991
|
id: p
|
|
6999
6992
|
},
|
|
7000
|
-
children:
|
|
6993
|
+
children: l
|
|
7001
6994
|
};
|
|
7002
6995
|
}
|
|
7003
6996
|
function fn(t) {
|
|
@@ -7099,7 +7092,7 @@ function ii({
|
|
|
7099
7092
|
padding: e = "md",
|
|
7100
7093
|
surface: i
|
|
7101
7094
|
}) {
|
|
7102
|
-
const r =
|
|
7095
|
+
const r = b(n);
|
|
7103
7096
|
return {
|
|
7104
7097
|
kind: "element",
|
|
7105
7098
|
tag: "div",
|
|
@@ -7173,7 +7166,7 @@ function ni({
|
|
|
7173
7166
|
tone: i = "default",
|
|
7174
7167
|
variant: r = "tile"
|
|
7175
7168
|
} = {}) {
|
|
7176
|
-
const a =
|
|
7169
|
+
const a = b(n);
|
|
7177
7170
|
return {
|
|
7178
7171
|
kind: "element",
|
|
7179
7172
|
tag: "div",
|
|
@@ -7272,7 +7265,7 @@ function ri({
|
|
|
7272
7265
|
media: i,
|
|
7273
7266
|
surface: r
|
|
7274
7267
|
}) {
|
|
7275
|
-
const a =
|
|
7268
|
+
const a = b(e), d = n ? r ?? "default" : r, o = [
|
|
7276
7269
|
{
|
|
7277
7270
|
kind: "element",
|
|
7278
7271
|
tag: "div",
|
|
@@ -7280,7 +7273,7 @@ function ri({
|
|
|
7280
7273
|
children: [{ kind: "raw", html: i }]
|
|
7281
7274
|
}
|
|
7282
7275
|
];
|
|
7283
|
-
return t &&
|
|
7276
|
+
return t && o.push({
|
|
7284
7277
|
kind: "element",
|
|
7285
7278
|
tag: "div",
|
|
7286
7279
|
attrs: { class: "content" },
|
|
@@ -7291,10 +7284,10 @@ function ri({
|
|
|
7291
7284
|
attrs: {
|
|
7292
7285
|
class: "set-poster",
|
|
7293
7286
|
"data-set-content-theme": n,
|
|
7294
|
-
"data-set-surface":
|
|
7287
|
+
"data-set-surface": d,
|
|
7295
7288
|
id: a
|
|
7296
7289
|
},
|
|
7297
|
-
children:
|
|
7290
|
+
children: o
|
|
7298
7291
|
};
|
|
7299
7292
|
}
|
|
7300
7293
|
function Ln(t) {
|
|
@@ -7378,10 +7371,10 @@ function ai({
|
|
|
7378
7371
|
id: i,
|
|
7379
7372
|
linkVisited: r = !0,
|
|
7380
7373
|
measured: a = !0,
|
|
7381
|
-
monospaced:
|
|
7382
|
-
responsive:
|
|
7374
|
+
monospaced: d,
|
|
7375
|
+
responsive: o
|
|
7383
7376
|
}) {
|
|
7384
|
-
const
|
|
7377
|
+
const s = b(i);
|
|
7385
7378
|
return {
|
|
7386
7379
|
kind: "element",
|
|
7387
7380
|
tag: "div",
|
|
@@ -7391,9 +7384,9 @@ function ai({
|
|
|
7391
7384
|
"data-hanging-punctuation": e,
|
|
7392
7385
|
"data-link-visited": r ? void 0 : "off",
|
|
7393
7386
|
"data-measured": a,
|
|
7394
|
-
"data-monospaced":
|
|
7395
|
-
"data-responsive":
|
|
7396
|
-
id:
|
|
7387
|
+
"data-monospaced": d,
|
|
7388
|
+
"data-responsive": o,
|
|
7389
|
+
id: s
|
|
7397
7390
|
},
|
|
7398
7391
|
children: [{ kind: "raw", html: n }]
|
|
7399
7392
|
};
|
|
@@ -7502,13 +7495,13 @@ function oi({
|
|
|
7502
7495
|
invalid: i,
|
|
7503
7496
|
radios: r,
|
|
7504
7497
|
legend: a,
|
|
7505
|
-
name:
|
|
7506
|
-
orientation:
|
|
7507
|
-
required:
|
|
7498
|
+
name: d,
|
|
7499
|
+
orientation: o = "vertical",
|
|
7500
|
+
required: s,
|
|
7508
7501
|
size: p = "md",
|
|
7509
|
-
value:
|
|
7502
|
+
value: l
|
|
7510
7503
|
}) {
|
|
7511
|
-
const c = e.trim(), h =
|
|
7504
|
+
const c = e.trim(), h = d.trim(), g = l?.trim();
|
|
7512
7505
|
if (!c)
|
|
7513
7506
|
throw new Error("id must be a non-empty string.");
|
|
7514
7507
|
if (!H(c))
|
|
@@ -7519,23 +7512,23 @@ function oi({
|
|
|
7519
7512
|
throw new Error("name must be a non-empty string.");
|
|
7520
7513
|
if (r.length < 2)
|
|
7521
7514
|
throw new Error("radios must include at least 2 options.");
|
|
7522
|
-
const
|
|
7523
|
-
const E =
|
|
7515
|
+
const y = r.map((w, x) => {
|
|
7516
|
+
const E = w.value.trim(), L = w.label.trim(), A = w.description?.trim();
|
|
7524
7517
|
if (!E)
|
|
7525
|
-
throw new Error(`radios[${
|
|
7526
|
-
if (!
|
|
7527
|
-
throw new Error(`radios[${
|
|
7518
|
+
throw new Error(`radios[${x}].value must be non-empty.`);
|
|
7519
|
+
if (!L)
|
|
7520
|
+
throw new Error(`radios[${x}].label must be non-empty.`);
|
|
7528
7521
|
return {
|
|
7529
|
-
description:
|
|
7530
|
-
disabled: !!
|
|
7531
|
-
label:
|
|
7522
|
+
description: A,
|
|
7523
|
+
disabled: !!w.disabled,
|
|
7524
|
+
label: L,
|
|
7532
7525
|
value: E
|
|
7533
7526
|
};
|
|
7534
7527
|
});
|
|
7535
|
-
if (new Set(
|
|
7528
|
+
if (new Set(y.map((w) => w.value)).size !== y.length)
|
|
7536
7529
|
throw new Error("radios values must be unique.");
|
|
7537
|
-
const z = !!n,
|
|
7538
|
-
const
|
|
7530
|
+
const z = !!n, M = y.map((w) => {
|
|
7531
|
+
const x = !!w.disabled, E = w.description ? `${c}-${w.value}-description` : void 0, L = [
|
|
7539
7532
|
{
|
|
7540
7533
|
kind: "element",
|
|
7541
7534
|
tag: "label",
|
|
@@ -7546,13 +7539,13 @@ function oi({
|
|
|
7546
7539
|
tag: "input",
|
|
7547
7540
|
attrs: {
|
|
7548
7541
|
"aria-describedby": E,
|
|
7549
|
-
checked:
|
|
7542
|
+
checked: g === w.value,
|
|
7550
7543
|
class: "radio",
|
|
7551
|
-
disabled:
|
|
7544
|
+
disabled: x,
|
|
7552
7545
|
name: h,
|
|
7553
|
-
required: !!
|
|
7546
|
+
required: !!s && !z && !x,
|
|
7554
7547
|
type: "radio",
|
|
7555
|
-
value:
|
|
7548
|
+
value: w.value
|
|
7556
7549
|
},
|
|
7557
7550
|
children: []
|
|
7558
7551
|
},
|
|
@@ -7560,21 +7553,21 @@ function oi({
|
|
|
7560
7553
|
kind: "element",
|
|
7561
7554
|
tag: "span",
|
|
7562
7555
|
attrs: {},
|
|
7563
|
-
children: [{ kind: "text", value:
|
|
7556
|
+
children: [{ kind: "text", value: w.label }]
|
|
7564
7557
|
}
|
|
7565
7558
|
]
|
|
7566
7559
|
}
|
|
7567
7560
|
];
|
|
7568
|
-
return
|
|
7561
|
+
return w.description && L.push({
|
|
7569
7562
|
kind: "element",
|
|
7570
7563
|
tag: "p",
|
|
7571
7564
|
attrs: { class: "radio-description", id: E },
|
|
7572
|
-
children: [{ kind: "text", value:
|
|
7565
|
+
children: [{ kind: "text", value: w.description }]
|
|
7573
7566
|
}), {
|
|
7574
7567
|
kind: "element",
|
|
7575
7568
|
tag: "div",
|
|
7576
7569
|
attrs: { class: "radio-field" },
|
|
7577
|
-
children:
|
|
7570
|
+
children: L
|
|
7578
7571
|
};
|
|
7579
7572
|
});
|
|
7580
7573
|
return Tt({
|
|
@@ -7583,10 +7576,10 @@ function oi({
|
|
|
7583
7576
|
tag: "div",
|
|
7584
7577
|
attrs: {
|
|
7585
7578
|
class: "set-radios",
|
|
7586
|
-
"data-orientation":
|
|
7579
|
+
"data-orientation": o,
|
|
7587
7580
|
"data-size": p
|
|
7588
7581
|
},
|
|
7589
|
-
children:
|
|
7582
|
+
children: M
|
|
7590
7583
|
}),
|
|
7591
7584
|
description: t,
|
|
7592
7585
|
disabled: z,
|
|
@@ -7754,10 +7747,10 @@ function di({
|
|
|
7754
7747
|
children: i,
|
|
7755
7748
|
dir: r,
|
|
7756
7749
|
id: a,
|
|
7757
|
-
lang:
|
|
7758
|
-
theme:
|
|
7750
|
+
lang: d,
|
|
7751
|
+
theme: o
|
|
7759
7752
|
}) {
|
|
7760
|
-
const
|
|
7753
|
+
const s = b(a);
|
|
7761
7754
|
return {
|
|
7762
7755
|
kind: "element",
|
|
7763
7756
|
tag: "div",
|
|
@@ -7766,9 +7759,9 @@ function di({
|
|
|
7766
7759
|
"data-app-root": n,
|
|
7767
7760
|
"data-app-overscroll-behavior": t === "none" ? "none" : void 0,
|
|
7768
7761
|
"data-set-brand": e,
|
|
7769
|
-
"data-set-theme":
|
|
7770
|
-
id:
|
|
7771
|
-
lang:
|
|
7762
|
+
"data-set-theme": o,
|
|
7763
|
+
id: s,
|
|
7764
|
+
lang: d === "" ? void 0 : d,
|
|
7772
7765
|
dir: r
|
|
7773
7766
|
},
|
|
7774
7767
|
children: i ? [{ kind: "raw", html: i }] : []
|
|
@@ -7878,7 +7871,7 @@ function si({
|
|
|
7878
7871
|
id: r,
|
|
7879
7872
|
responsive: a
|
|
7880
7873
|
}) {
|
|
7881
|
-
const
|
|
7874
|
+
const d = b(r);
|
|
7882
7875
|
return {
|
|
7883
7876
|
kind: "element",
|
|
7884
7877
|
tag: n,
|
|
@@ -7887,7 +7880,7 @@ function si({
|
|
|
7887
7880
|
"data-align": t === "stretch" ? void 0 : t,
|
|
7888
7881
|
"data-gap": i,
|
|
7889
7882
|
"data-responsive": a,
|
|
7890
|
-
id:
|
|
7883
|
+
id: d
|
|
7891
7884
|
},
|
|
7892
7885
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
7893
7886
|
};
|
|
@@ -7972,7 +7965,7 @@ function li({
|
|
|
7972
7965
|
id: e,
|
|
7973
7966
|
variant: i = "default"
|
|
7974
7967
|
}) {
|
|
7975
|
-
const r =
|
|
7968
|
+
const r = b(e);
|
|
7976
7969
|
return {
|
|
7977
7970
|
kind: "element",
|
|
7978
7971
|
tag: "div",
|
|
@@ -8047,13 +8040,13 @@ function pi({
|
|
|
8047
8040
|
id: i,
|
|
8048
8041
|
label: r,
|
|
8049
8042
|
name: a,
|
|
8050
|
-
size:
|
|
8051
|
-
value:
|
|
8043
|
+
size: d = "md",
|
|
8044
|
+
value: o
|
|
8052
8045
|
}) {
|
|
8053
|
-
const
|
|
8054
|
-
if (p && !
|
|
8046
|
+
const s = b(i), p = n?.trim();
|
|
8047
|
+
if (p && !s)
|
|
8055
8048
|
throw new Error("id must be provided when description is provided.");
|
|
8056
|
-
const
|
|
8049
|
+
const l = p ? `${s}-description` : void 0, c = [
|
|
8057
8050
|
{
|
|
8058
8051
|
kind: "element",
|
|
8059
8052
|
tag: "label",
|
|
@@ -8063,15 +8056,15 @@ function pi({
|
|
|
8063
8056
|
kind: "element",
|
|
8064
8057
|
tag: "input",
|
|
8065
8058
|
attrs: {
|
|
8066
|
-
"aria-describedby":
|
|
8059
|
+
"aria-describedby": l,
|
|
8067
8060
|
checked: !!t,
|
|
8068
8061
|
class: "switch",
|
|
8069
8062
|
disabled: !!e,
|
|
8070
|
-
id:
|
|
8063
|
+
id: s,
|
|
8071
8064
|
name: a || void 0,
|
|
8072
8065
|
role: "switch",
|
|
8073
8066
|
type: "checkbox",
|
|
8074
|
-
value:
|
|
8067
|
+
value: o || void 0
|
|
8075
8068
|
},
|
|
8076
8069
|
children: []
|
|
8077
8070
|
},
|
|
@@ -8087,12 +8080,12 @@ function pi({
|
|
|
8087
8080
|
return p && c.push({
|
|
8088
8081
|
kind: "element",
|
|
8089
8082
|
tag: "p",
|
|
8090
|
-
attrs: { class: "description", id:
|
|
8083
|
+
attrs: { class: "description", id: l },
|
|
8091
8084
|
children: [{ kind: "text", value: p }]
|
|
8092
8085
|
}), {
|
|
8093
8086
|
kind: "element",
|
|
8094
8087
|
tag: "div",
|
|
8095
|
-
attrs: { class: "set-switch", "data-size":
|
|
8088
|
+
attrs: { class: "set-switch", "data-size": d },
|
|
8096
8089
|
children: c
|
|
8097
8090
|
};
|
|
8098
8091
|
}
|
|
@@ -8214,55 +8207,55 @@ function ci({
|
|
|
8214
8207
|
id: i,
|
|
8215
8208
|
invalid: r,
|
|
8216
8209
|
label: a,
|
|
8217
|
-
name:
|
|
8218
|
-
readOnly:
|
|
8219
|
-
required:
|
|
8210
|
+
name: d,
|
|
8211
|
+
readOnly: o,
|
|
8212
|
+
required: s,
|
|
8220
8213
|
resize: p = "vertical",
|
|
8221
|
-
rows:
|
|
8214
|
+
rows: l = 2,
|
|
8222
8215
|
size: c = "md",
|
|
8223
8216
|
spellcheck: h,
|
|
8224
|
-
value:
|
|
8225
|
-
inlineSize:
|
|
8217
|
+
value: g,
|
|
8218
|
+
inlineSize: y = "full"
|
|
8226
8219
|
}) {
|
|
8227
|
-
const
|
|
8228
|
-
if (!
|
|
8220
|
+
const v = i.trim(), z = n?.trim(), M = t === !1 ? !1 : t?.trim(), S = d?.trim(), w = g;
|
|
8221
|
+
if (!v)
|
|
8229
8222
|
throw new Error("id must be a non-empty string.");
|
|
8230
|
-
if (!H(
|
|
8223
|
+
if (!H(v))
|
|
8231
8224
|
throw new Error(
|
|
8232
8225
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
8233
8226
|
);
|
|
8234
|
-
if (!Number.isInteger(
|
|
8227
|
+
if (!Number.isInteger(l) || l < 2)
|
|
8235
8228
|
throw new Error("rows must be an integer greater than or equal to 2.");
|
|
8236
|
-
const
|
|
8229
|
+
const x = z ? `${v}-description` : void 0, E = !!e, L = !E && !!o, V = [
|
|
8237
8230
|
{
|
|
8238
8231
|
kind: "element",
|
|
8239
8232
|
tag: "label",
|
|
8240
|
-
attrs: { class: "label", for:
|
|
8233
|
+
attrs: { class: "label", for: v },
|
|
8241
8234
|
children: [{ kind: "text", value: a }]
|
|
8242
8235
|
},
|
|
8243
8236
|
{
|
|
8244
8237
|
kind: "element",
|
|
8245
8238
|
tag: "textarea",
|
|
8246
8239
|
attrs: {
|
|
8247
|
-
"aria-describedby":
|
|
8248
|
-
"aria-invalid": !E && !
|
|
8249
|
-
autocomplete:
|
|
8240
|
+
"aria-describedby": x,
|
|
8241
|
+
"aria-invalid": !E && !L && !!r ? "true" : void 0,
|
|
8242
|
+
autocomplete: M === !1 ? "off" : M || void 0,
|
|
8250
8243
|
class: "textarea",
|
|
8251
8244
|
disabled: E,
|
|
8252
|
-
id:
|
|
8253
|
-
name:
|
|
8254
|
-
readonly:
|
|
8255
|
-
required: !!
|
|
8256
|
-
rows: String(
|
|
8245
|
+
id: v,
|
|
8246
|
+
name: S || void 0,
|
|
8247
|
+
readonly: L,
|
|
8248
|
+
required: !!s,
|
|
8249
|
+
rows: String(l),
|
|
8257
8250
|
spellcheck: h === void 0 ? void 0 : String(h)
|
|
8258
8251
|
},
|
|
8259
|
-
children: [{ kind: "text", value:
|
|
8252
|
+
children: [{ kind: "text", value: w || "" }]
|
|
8260
8253
|
}
|
|
8261
8254
|
];
|
|
8262
|
-
return z &&
|
|
8255
|
+
return z && V.push({
|
|
8263
8256
|
kind: "element",
|
|
8264
8257
|
tag: "p",
|
|
8265
|
-
attrs: { class: "description", id:
|
|
8258
|
+
attrs: { class: "description", id: x },
|
|
8266
8259
|
children: [{ kind: "text", value: z }]
|
|
8267
8260
|
}), {
|
|
8268
8261
|
kind: "element",
|
|
@@ -8271,9 +8264,9 @@ function ci({
|
|
|
8271
8264
|
class: "set-textarea",
|
|
8272
8265
|
"data-resize": p === "none" ? "none" : void 0,
|
|
8273
8266
|
"data-size": c,
|
|
8274
|
-
"data-inline-size":
|
|
8267
|
+
"data-inline-size": y === "fit" ? "fit" : void 0
|
|
8275
8268
|
},
|
|
8276
|
-
children:
|
|
8269
|
+
children: V
|
|
8277
8270
|
};
|
|
8278
8271
|
}
|
|
8279
8272
|
function Pn(t) {
|