@monospaced/set-core 0.14.2 → 0.16.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const Bt = /* @__PURE__ */ new Set([
1
+ const Pt = /* @__PURE__ */ new Set([
2
2
  "area",
3
3
  "base",
4
4
  "br",
@@ -13,38 +13,38 @@ const Bt = /* @__PURE__ */ new Set([
13
13
  "track",
14
14
  "wbr"
15
15
  ]);
16
- function yt(t) {
16
+ function wt(t) {
17
17
  return t.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
18
18
  }
19
- function Ot(t) {
20
- return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${yt(String(e))}"`]).join(" ");
19
+ function Rt(t) {
20
+ return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${wt(String(e))}"`]).join(" ");
21
21
  }
22
22
  function m(t) {
23
- if (t.kind === "text") return yt(t.value);
23
+ if (t.kind === "text") return wt(t.value);
24
24
  if (t.kind === "raw") return t.html;
25
- const n = Ot(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
26
- if (Bt.has(t.tag)) return e;
25
+ const n = Rt(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
26
+ if (Pt.has(t.tag)) return e;
27
27
  const i = t.children.map(m).join("");
28
28
  return `${e}${i}</${t.tag}>`;
29
29
  }
30
- function V(t) {
30
+ function H(t) {
31
31
  return /^[A-Za-z][\w:-]*$/.test(t);
32
32
  }
33
33
  function v(t) {
34
34
  if (t === void 0) return;
35
35
  const n = t.trim();
36
36
  if (n) {
37
- if (!V(n))
37
+ if (!H(n))
38
38
  throw new Error(
39
39
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
40
40
  );
41
41
  return n;
42
42
  }
43
43
  }
44
- function O(t) {
44
+ function P(t) {
45
45
  return t == null ? void 0 : t.trim().replace(/\s+/g, " ") || void 0;
46
46
  }
47
- const wt = {
47
+ const St = {
48
48
  adjustment: [
49
49
  {
50
50
  tag: "g",
@@ -775,16 +775,16 @@ const wt = {
775
775
  ]
776
776
  }
777
777
  ]
778
- }, si = Object.keys(wt);
779
- function St(t) {
778
+ }, ui = Object.keys(St);
779
+ function xt(t) {
780
780
  return t.map((n) => ({
781
781
  kind: "element",
782
782
  tag: n.tag,
783
783
  attrs: n.attrs,
784
- children: n.children ? St(n.children) : []
784
+ children: n.children ? xt(n.children) : []
785
785
  }));
786
786
  }
787
- function P({
787
+ function R({
788
788
  ariaHidden: t = !0,
789
789
  id: n,
790
790
  mirrored: e,
@@ -792,21 +792,21 @@ function P({
792
792
  size: r = "md",
793
793
  title: a
794
794
  }) {
795
- const o = wt[i];
795
+ const o = St[i];
796
796
  if (!o)
797
797
  throw new Error(`Unknown icon name: ${i}`);
798
- const d = v(n), s = a?.trim();
799
- if (!t && !s)
798
+ const d = v(n), l = a?.trim();
799
+ if (!t && !l)
800
800
  throw new Error("title must be non-empty when ariaHidden is false.");
801
801
  if (!t && !d)
802
802
  throw new Error("id must be provided when ariaHidden is false.");
803
- const p = t ? void 0 : `${d}-title`, l = [];
804
- return t || l.push({
803
+ const p = t ? void 0 : `${d}-title`, s = [];
804
+ return t || s.push({
805
805
  kind: "element",
806
806
  tag: "title",
807
807
  attrs: { id: p },
808
- children: [{ kind: "text", value: s }]
809
- }), l.push(...St(o)), {
808
+ children: [{ kind: "text", value: l }]
809
+ }), s.push(...xt(o)), {
810
810
  kind: "element",
811
811
  tag: "svg",
812
812
  attrs: {
@@ -824,13 +824,13 @@ function P({
824
824
  viewBox: "0 0 24 24",
825
825
  xmlns: "http://www.w3.org/2000/svg"
826
826
  },
827
- children: l
827
+ children: s
828
828
  };
829
829
  }
830
- function Pt(t) {
831
- return m(P(t));
830
+ function Wt(t) {
831
+ return m(R(t));
832
832
  }
833
- const li = {
833
+ const hi = {
834
834
  name: "icon",
835
835
  description: "Use `icon` to render a Set icon.",
836
836
  output: { element: "svg", class: "set-icon" },
@@ -944,80 +944,241 @@ const li = {
944
944
  ]
945
945
  }
946
946
  };
947
+ function Ut({
948
+ id: t,
949
+ label: n,
950
+ size: e = "md",
951
+ tone: i = "default"
952
+ } = {}) {
953
+ const r = v(t), o = [
954
+ {
955
+ kind: "element",
956
+ tag: "svg",
957
+ attrs: {
958
+ "aria-hidden": "true",
959
+ xmlns: "http://www.w3.org/2000/svg",
960
+ viewBox: "0 0 600 1200",
961
+ fill: "currentColor"
962
+ },
963
+ children: [
964
+ [60, 60],
965
+ [60, 360],
966
+ [60, 660],
967
+ [60, 960],
968
+ [360, 960],
969
+ [360, 660],
970
+ [360, 360],
971
+ [360, 60]
972
+ ].map(([d, l]) => ({
973
+ kind: "element",
974
+ tag: "rect",
975
+ attrs: {
976
+ class: "cell",
977
+ x: String(d),
978
+ y: String(l),
979
+ width: "180",
980
+ height: "180"
981
+ },
982
+ children: []
983
+ }))
984
+ }
985
+ ];
986
+ return n && o.push({
987
+ kind: "element",
988
+ tag: "span",
989
+ attrs: { class: "visually-hidden" },
990
+ children: [{ kind: "text", value: n }]
991
+ }), {
992
+ kind: "element",
993
+ tag: "span",
994
+ attrs: {
995
+ class: "set-spinner",
996
+ "data-size": e,
997
+ "data-tone": i === "brand" ? "brand" : void 0,
998
+ id: r,
999
+ role: n ? "status" : void 0
1000
+ },
1001
+ children: o
1002
+ };
1003
+ }
1004
+ function bt(t = {}) {
1005
+ return m(Ut(t));
1006
+ }
1007
+ const mi = {
1008
+ name: "spinner",
1009
+ description: "Use `spinner` to indicate loading or in-progress state.",
1010
+ output: { element: "span", class: "set-spinner" },
1011
+ content: { kind: "text", prop: "label" },
1012
+ props: {
1013
+ id: {
1014
+ description: "DOM id.",
1015
+ type: { kind: "string" }
1016
+ },
1017
+ label: {
1018
+ description: "Accessible status label announced to assistive tech.",
1019
+ type: { kind: "string" }
1020
+ },
1021
+ size: {
1022
+ default: "md",
1023
+ description: "Size variant.",
1024
+ type: {
1025
+ kind: "enum",
1026
+ values: ["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "fill"]
1027
+ }
1028
+ },
1029
+ tone: {
1030
+ default: "default",
1031
+ description: "Semantic tone.",
1032
+ type: { kind: "enum", values: ["default", "brand"] }
1033
+ }
1034
+ },
1035
+ events: {},
1036
+ rules: {
1037
+ attributes: [
1038
+ {
1039
+ target: { on: "host" },
1040
+ attribute: "data-size",
1041
+ condition: { kind: "always" },
1042
+ value: { kind: "prop", prop: "size" }
1043
+ },
1044
+ {
1045
+ target: { on: "host" },
1046
+ attribute: "data-tone",
1047
+ condition: { kind: "when-equals", prop: "tone", to: "brand" },
1048
+ value: { kind: "literal", text: "brand" }
1049
+ },
1050
+ {
1051
+ target: { on: "host" },
1052
+ attribute: "role",
1053
+ condition: { kind: "when-non-empty", prop: "label" },
1054
+ value: { kind: "literal", text: "status" }
1055
+ },
1056
+ {
1057
+ target: { on: "host" },
1058
+ attribute: "id",
1059
+ condition: { kind: "when-non-empty", prop: "id" },
1060
+ value: { kind: "prop", prop: "id" }
1061
+ }
1062
+ ]
1063
+ }
1064
+ }, $t = {
1065
+ sm: "xs",
1066
+ md: "sm",
1067
+ lg: "md"
1068
+ };
1069
+ function Et(t) {
1070
+ return {
1071
+ "aria-disabled": t === "busy" ? "true" : void 0,
1072
+ "data-activity": t || void 0
1073
+ };
1074
+ }
947
1075
  function ht(t) {
948
1076
  const {
949
- appearance: n = "outline",
950
- controls: e,
951
- disabled: i,
952
- disclosure: r,
953
- form: a,
954
- haspopup: o,
955
- id: d,
956
- icon: s,
957
- iconMirrored: p,
958
- iconPlacement: l = "start",
959
- label: c,
960
- labelVisibility: h = "visible",
961
- name: b,
962
- size: S = "md",
963
- tone: f = "default",
964
- type: E,
965
- value: q
966
- } = t, w = s || void 0, k = !!w;
967
- if (h !== "visible" && !k)
1077
+ activity: n,
1078
+ appearance: e = "outline",
1079
+ controls: i,
1080
+ disabled: r,
1081
+ disclosure: a,
1082
+ form: o,
1083
+ haspopup: d,
1084
+ id: l,
1085
+ icon: p,
1086
+ iconMirrored: s,
1087
+ iconPlacement: c = "start",
1088
+ label: h,
1089
+ labelVisibility: b = "visible",
1090
+ name: w,
1091
+ size: f = "md",
1092
+ tone: z = "default",
1093
+ type: q,
1094
+ value: x
1095
+ } = t, k = p || void 0, C = !!k;
1096
+ if (b !== "visible" && !C)
968
1097
  throw new Error("labelVisibility requires icon when label is not visible.");
969
- const C = k && w ? {
1098
+ const E = C && k ? {
970
1099
  kind: "element",
971
1100
  tag: "span",
972
1101
  attrs: { class: "icon-wrapper" },
973
1102
  children: [
974
1103
  {
975
1104
  kind: "raw",
976
- html: Pt({
1105
+ html: Wt({
977
1106
  ariaHidden: !0,
978
- mirrored: p,
979
- name: w,
1107
+ mirrored: s,
1108
+ name: k,
980
1109
  size: "fill"
981
1110
  })
982
- }
1111
+ },
1112
+ ...n ? [
1113
+ {
1114
+ kind: "raw",
1115
+ html: bt({ size: "fill" })
1116
+ }
1117
+ ] : []
983
1118
  ]
984
- } : null, x = {
1119
+ } : null, S = {
985
1120
  kind: "element",
986
1121
  tag: "span",
987
1122
  attrs: { class: "label" },
988
- children: [{ kind: "text", value: c }]
989
- };
1123
+ children: [{ kind: "text", value: h }]
1124
+ }, I = n ? {
1125
+ kind: "element",
1126
+ tag: "span",
1127
+ attrs: { class: "status" },
1128
+ children: [{ kind: "text", value: ", busy" }]
1129
+ } : null, A = n && !C ? {
1130
+ kind: "element",
1131
+ tag: "span",
1132
+ attrs: { class: "spinner-overlay" },
1133
+ children: [
1134
+ {
1135
+ kind: "raw",
1136
+ html: bt({ size: $t[f] })
1137
+ }
1138
+ ]
1139
+ } : null, V = E ? c === "end" ? [S, E] : [E, S] : A ? [A, S] : [S], M = I ? [...V, I] : V, N = Et(n);
990
1140
  return {
991
1141
  kind: "element",
992
1142
  tag: "button",
993
1143
  attrs: {
994
- "aria-controls": r && e || void 0,
995
- "aria-expanded": r ? "false" : void 0,
996
- "aria-haspopup": o || void 0,
1144
+ "aria-controls": a && i || void 0,
1145
+ "aria-disabled": N["aria-disabled"],
1146
+ "aria-expanded": a ? "false" : void 0,
1147
+ "aria-haspopup": d || void 0,
997
1148
  class: "set-button",
998
- "data-appearance": n,
999
- "data-label-visibility": h === "visible" ? void 0 : h,
1000
- "data-size": S,
1001
- "data-tone": f === "neutral" ? "neutral" : void 0,
1002
- disabled: !!i,
1003
- form: a || void 0,
1004
- id: d || void 0,
1005
- name: b || void 0,
1006
- type: E || "button",
1007
- value: q || void 0
1008
- },
1009
- children: C ? l === "end" ? [x, C] : [C, x] : [x]
1149
+ "data-activity": N["data-activity"],
1150
+ "data-appearance": e,
1151
+ "data-label-visibility": b === "visible" ? void 0 : b,
1152
+ "data-size": f,
1153
+ "data-tone": z === "neutral" ? "neutral" : void 0,
1154
+ disabled: !!r,
1155
+ form: o || void 0,
1156
+ id: l || void 0,
1157
+ name: w || void 0,
1158
+ type: q || "button",
1159
+ value: x || void 0
1160
+ },
1161
+ children: M
1010
1162
  };
1011
1163
  }
1012
1164
  function mt(t) {
1013
1165
  return m(ht(t));
1014
1166
  }
1015
- const pi = {
1167
+ function Gt(t, n) {
1168
+ const e = Et(n ?? void 0);
1169
+ for (const [i, r] of Object.entries(e))
1170
+ r == null ? t.removeAttribute(i) : t.setAttribute(i, r);
1171
+ }
1172
+ const ki = {
1016
1173
  name: "button",
1017
1174
  description: "Use `button` to let users trigger actions.",
1018
1175
  output: { element: "button", class: "set-button" },
1019
1176
  content: { kind: "text", prop: "label" },
1020
1177
  props: {
1178
+ activity: {
1179
+ description: 'Opts into the activity indicator and sets its state. `idle` primes it — the spinner and a hidden ", busy" status are rendered but not shown; `busy` reveals the spinner and appends ", busy" to the accessible name. The button stays visually at rest (`aria-disabled` is emitted but not styled as disabled), so guarding activation and any live-region announcement are the consumer\'s responsibility.',
1180
+ type: { kind: "enum", values: ["idle", "busy"] }
1181
+ },
1021
1182
  appearance: {
1022
1183
  default: "outline",
1023
1184
  description: "Visual appearance.",
@@ -1145,6 +1306,18 @@ const pi = {
1145
1306
  attribute: "disabled",
1146
1307
  condition: { kind: "when-truthy", prop: "disabled" }
1147
1308
  },
1309
+ {
1310
+ target: { on: "host" },
1311
+ attribute: "aria-disabled",
1312
+ condition: { kind: "when-equals", prop: "activity", to: "busy" },
1313
+ value: { kind: "literal", text: "true" }
1314
+ },
1315
+ {
1316
+ target: { on: "host" },
1317
+ attribute: "data-activity",
1318
+ condition: { kind: "when-provided", prop: "activity" },
1319
+ value: { kind: "prop", prop: "activity" }
1320
+ },
1148
1321
  {
1149
1322
  target: { on: "host" },
1150
1323
  attribute: "aria-expanded",
@@ -1195,8 +1368,8 @@ const pi = {
1195
1368
  }
1196
1369
  ]
1197
1370
  }
1198
- }, Z = "set-alert", xt = "set-alert-before-dismiss", Et = "set-alert-dismiss", W = "Dismiss alert";
1199
- function Rt(t, n) {
1371
+ }, Z = "set-alert", zt = "set-alert-before-dismiss", Lt = "set-alert-dismiss", U = "Dismiss alert";
1372
+ function Zt(t, n) {
1200
1373
  const e = n.createElement("div");
1201
1374
  return e.setAttribute("data-part", "close"), e.innerHTML = mt({
1202
1375
  appearance: "text",
@@ -1207,7 +1380,7 @@ function Rt(t, n) {
1207
1380
  tone: "neutral"
1208
1381
  }), e;
1209
1382
  }
1210
- function Wt(t) {
1383
+ function Ft(t) {
1211
1384
  switch (t) {
1212
1385
  case "success":
1213
1386
  return "check-circle";
@@ -1221,12 +1394,12 @@ function Wt(t) {
1221
1394
  return "sticky-note";
1222
1395
  }
1223
1396
  }
1224
- function Ut(t) {
1397
+ function jt(t) {
1225
1398
  return t === "warning" || t === "error" ? "alert" : "status";
1226
1399
  }
1227
- function $t({
1400
+ function Kt({
1228
1401
  dismissible: t,
1229
- dismissibleLabel: n = W,
1402
+ dismissibleLabel: n = U,
1230
1403
  id: e,
1231
1404
  inlineSize: i = "full",
1232
1405
  message: r,
@@ -1234,13 +1407,13 @@ function $t({
1234
1407
  tone: o,
1235
1408
  title: d
1236
1409
  }) {
1237
- const s = v(e), p = n.trim() === "" ? W : n, l = [];
1238
- return d && l.push({
1410
+ const l = v(e), p = n.trim() === "" ? U : n, s = [];
1411
+ return d && s.push({
1239
1412
  kind: "element",
1240
1413
  tag: "p",
1241
1414
  attrs: { class: "title" },
1242
1415
  children: [{ kind: "text", value: d }]
1243
- }), l.push({
1416
+ }), s.push({
1244
1417
  kind: "element",
1245
1418
  tag: "p",
1246
1419
  attrs: { class: "message" },
@@ -1255,8 +1428,8 @@ function $t({
1255
1428
  "data-inline-size": i === "fit" ? "fit" : void 0,
1256
1429
  "data-size": a,
1257
1430
  "data-tone": o || void 0,
1258
- id: s,
1259
- role: Ut(o)
1431
+ id: l,
1432
+ role: jt(o)
1260
1433
  },
1261
1434
  children: [
1262
1435
  {
@@ -1264,9 +1437,9 @@ function $t({
1264
1437
  tag: "div",
1265
1438
  attrs: { class: "icon-wrapper" },
1266
1439
  children: [
1267
- P({
1440
+ R({
1268
1441
  ariaHidden: !0,
1269
- name: Wt(o),
1442
+ name: Ft(o),
1270
1443
  size: a
1271
1444
  })
1272
1445
  ]
@@ -1275,29 +1448,29 @@ function $t({
1275
1448
  kind: "element",
1276
1449
  tag: "div",
1277
1450
  attrs: { class: "content" },
1278
- children: l
1451
+ children: s
1279
1452
  }
1280
1453
  ]
1281
1454
  };
1282
1455
  }
1283
- function ci(t) {
1284
- return m($t(t));
1456
+ function gi(t) {
1457
+ return m(Kt(t));
1285
1458
  }
1286
- function Gt() {
1459
+ function Xt() {
1287
1460
  if (customElements.get(Z)) return;
1288
1461
  class t extends HTMLElement {
1289
1462
  #t = (e) => {
1290
1463
  const i = e.target;
1291
1464
  if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
1292
1465
  const r = new CustomEvent(
1293
- xt,
1466
+ zt,
1294
1467
  {
1295
1468
  bubbles: !0,
1296
1469
  cancelable: !0
1297
1470
  }
1298
1471
  );
1299
1472
  this.dispatchEvent(r) && (this.dispatchEvent(
1300
- new CustomEvent(Et, {
1473
+ new CustomEvent(Lt, {
1301
1474
  bubbles: !0
1302
1475
  })
1303
1476
  ), this.remove());
@@ -1310,8 +1483,8 @@ function Gt() {
1310
1483
  }
1311
1484
  #e() {
1312
1485
  this.querySelector('[data-part="close"]') || this.append(
1313
- Rt(
1314
- this.getAttribute("data-dismissible-label") ?? W,
1486
+ Zt(
1487
+ this.getAttribute("data-dismissible-label") ?? U,
1315
1488
  this.ownerDocument
1316
1489
  )
1317
1490
  );
@@ -1319,7 +1492,7 @@ function Gt() {
1319
1492
  }
1320
1493
  customElements.define(Z, t);
1321
1494
  }
1322
- const ui = {
1495
+ const bi = {
1323
1496
  name: "alert",
1324
1497
  description: "Use `alert` to surface short, important messages.",
1325
1498
  output: {
@@ -1340,7 +1513,7 @@ const ui = {
1340
1513
  type: { kind: "boolean" }
1341
1514
  },
1342
1515
  dismissibleLabel: {
1343
- default: W,
1516
+ default: U,
1344
1517
  description: "Accessible label for the dismiss control.",
1345
1518
  ignoredWhen: "`dismissible` is false",
1346
1519
  type: { kind: "string" }
@@ -1374,12 +1547,12 @@ const ui = {
1374
1547
  }
1375
1548
  },
1376
1549
  events: {
1377
- [xt]: {
1550
+ [zt]: {
1378
1551
  bubbles: !0,
1379
1552
  cancelable: !0,
1380
1553
  description: "Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."
1381
1554
  },
1382
- [Et]: {
1555
+ [Lt]: {
1383
1556
  bubbles: !0,
1384
1557
  description: "Fired after the alert has been removed by an allowed dismiss action."
1385
1558
  }
@@ -1445,7 +1618,7 @@ const ui = {
1445
1618
  }
1446
1619
  ]
1447
1620
  },
1448
- value: { kind: "literal", text: W }
1621
+ value: { kind: "literal", text: U }
1449
1622
  },
1450
1623
  {
1451
1624
  target: { on: "host" },
@@ -1468,11 +1641,11 @@ const ui = {
1468
1641
  ]
1469
1642
  }
1470
1643
  };
1471
- function Zt(t) {
1644
+ function Qt(t) {
1472
1645
  if (t)
1473
1646
  return t === !0 ? !0 : t;
1474
1647
  }
1475
- function zt(t) {
1648
+ function Ct(t) {
1476
1649
  const {
1477
1650
  appearance: n = "text",
1478
1651
  current: e,
@@ -1481,26 +1654,26 @@ function zt(t) {
1481
1654
  id: a,
1482
1655
  icon: o,
1483
1656
  iconPlacement: d = "start",
1484
- label: s,
1657
+ label: l,
1485
1658
  labelVisibility: p = "visible",
1486
- rel: l,
1659
+ rel: s,
1487
1660
  size: c = "md",
1488
1661
  target: h,
1489
1662
  tone: b = "default",
1490
- underline: S
1491
- } = t, f = v(a), E = o?.trim() || void 0;
1492
- if (p !== "visible" && !!!E)
1663
+ underline: w
1664
+ } = t, f = v(a), z = o?.trim() || void 0;
1665
+ if (p !== "visible" && !!!z)
1493
1666
  throw new Error("labelVisibility requires icon when label is not visible.");
1494
- const w = Zt(i), k = E ? {
1667
+ const x = Qt(i), k = z ? {
1495
1668
  kind: "element",
1496
1669
  tag: "span",
1497
1670
  attrs: { class: "icon-wrapper" },
1498
- children: [{ kind: "raw", html: E }]
1671
+ children: [{ kind: "raw", html: z }]
1499
1672
  } : null, C = {
1500
1673
  kind: "element",
1501
1674
  tag: "span",
1502
1675
  attrs: { class: "label" },
1503
- children: [{ kind: "text", value: s }]
1676
+ children: [{ kind: "text", value: l }]
1504
1677
  };
1505
1678
  return {
1506
1679
  kind: "element",
@@ -1512,20 +1685,20 @@ function zt(t) {
1512
1685
  "data-label-visibility": p === "visible" ? void 0 : p,
1513
1686
  "data-size": c,
1514
1687
  "data-tone": b === "neutral" ? "neutral" : void 0,
1515
- "data-underline": S && n === "text" ? !0 : void 0,
1516
- download: w,
1688
+ "data-underline": w && n === "text" ? !0 : void 0,
1689
+ download: x,
1517
1690
  href: r,
1518
1691
  id: f,
1519
- rel: w ? void 0 : l || void 0,
1520
- target: w ? void 0 : h || void 0
1692
+ rel: x ? void 0 : s || void 0,
1693
+ target: x ? void 0 : h || void 0
1521
1694
  },
1522
1695
  children: k ? d === "end" ? [C, k] : [k, C] : [C]
1523
1696
  };
1524
1697
  }
1525
- function hi(t) {
1526
- return m(zt(t));
1698
+ function vi(t) {
1699
+ return m(Ct(t));
1527
1700
  }
1528
- const mi = {
1701
+ const fi = {
1529
1702
  name: "link",
1530
1703
  description: "Use `link` to navigate to another page or resource.",
1531
1704
  output: { element: "a", class: "set-link" },
@@ -1712,8 +1885,8 @@ const mi = {
1712
1885
  }
1713
1886
  ]
1714
1887
  }
1715
- }, F = "set-banner", Lt = "set-banner-before-dismiss", Ct = "set-banner-dismiss", j = "Dismiss banner";
1716
- function Ft(t, n) {
1888
+ }, F = "set-banner", Mt = "set-banner-before-dismiss", qt = "set-banner-dismiss", j = "Dismiss banner";
1889
+ function Yt(t, n) {
1717
1890
  const e = n.createElement("div");
1718
1891
  return e.setAttribute("data-part", "close"), e.innerHTML = mt({
1719
1892
  appearance: "text",
@@ -1724,7 +1897,7 @@ function Ft(t, n) {
1724
1897
  tone: "neutral"
1725
1898
  }), e;
1726
1899
  }
1727
- function jt({
1900
+ function Jt({
1728
1901
  actionHref: t,
1729
1902
  actionLabel: n,
1730
1903
  dismissible: e = !0,
@@ -1735,9 +1908,9 @@ function jt({
1735
1908
  }) {
1736
1909
  if (!!t != !!n)
1737
1910
  throw new Error("actionHref and actionLabel must be provided together.");
1738
- const d = v(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
1911
+ const d = v(r), l = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
1739
1912
  return t && n && (p.push({ kind: "text", value: " " }), p.push(
1740
- zt({
1913
+ Ct({
1741
1914
  href: t,
1742
1915
  label: n,
1743
1916
  underline: !0
@@ -1750,7 +1923,7 @@ function jt({
1750
1923
  "data-set-content-theme": "dark",
1751
1924
  "data-set-surface": "default",
1752
1925
  "data-dismissible": e,
1753
- "data-dismissible-label": e ? s : void 0,
1926
+ "data-dismissible-label": e ? l : void 0,
1754
1927
  "data-tone": o || void 0,
1755
1928
  id: d
1756
1929
  },
@@ -1764,24 +1937,24 @@ function jt({
1764
1937
  ]
1765
1938
  };
1766
1939
  }
1767
- function ki(t) {
1768
- return m(jt(t));
1940
+ function yi(t) {
1941
+ return m(Jt(t));
1769
1942
  }
1770
- function Kt() {
1943
+ function te() {
1771
1944
  if (customElements.get(F)) return;
1772
1945
  class t extends HTMLElement {
1773
1946
  #t = (e) => {
1774
1947
  const i = e.target;
1775
1948
  if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
1776
1949
  const r = new CustomEvent(
1777
- Lt,
1950
+ Mt,
1778
1951
  {
1779
1952
  bubbles: !0,
1780
1953
  cancelable: !0
1781
1954
  }
1782
1955
  );
1783
1956
  this.dispatchEvent(r) && (this.dispatchEvent(
1784
- new CustomEvent(Ct, {
1957
+ new CustomEvent(qt, {
1785
1958
  bubbles: !0
1786
1959
  })
1787
1960
  ), this.remove());
@@ -1794,7 +1967,7 @@ function Kt() {
1794
1967
  }
1795
1968
  #e() {
1796
1969
  this.querySelector('[data-part="close"]') || this.append(
1797
- Ft(
1970
+ Yt(
1798
1971
  this.getAttribute("data-dismissible-label") ?? j,
1799
1972
  this.ownerDocument
1800
1973
  )
@@ -1803,7 +1976,7 @@ function Kt() {
1803
1976
  }
1804
1977
  customElements.define(F, t);
1805
1978
  }
1806
- const gi = {
1979
+ const wi = {
1807
1980
  name: "banner",
1808
1981
  description: "Use `banner` to display a prominent site-wide message.",
1809
1982
  output: { element: F, class: "set-banner" },
@@ -1848,12 +2021,12 @@ const gi = {
1848
2021
  }
1849
2022
  },
1850
2023
  events: {
1851
- [Lt]: {
2024
+ [Mt]: {
1852
2025
  bubbles: !0,
1853
2026
  cancelable: !0,
1854
2027
  description: "Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."
1855
2028
  },
1856
- [Ct]: {
2029
+ [qt]: {
1857
2030
  bubbles: !0,
1858
2031
  description: "Fired after the banner has been removed by an allowed dismiss action."
1859
2032
  }
@@ -1892,7 +2065,7 @@ const gi = {
1892
2065
  ]
1893
2066
  }
1894
2067
  }, K = "set-image";
1895
- function Xt({
2068
+ function ee({
1896
2069
  adaptive: t,
1897
2070
  animated: n,
1898
2071
  alt: e = "",
@@ -1901,49 +2074,49 @@ function Xt({
1901
2074
  gravity: a = "C",
1902
2075
  height: o,
1903
2076
  id: d,
1904
- lazy: s,
2077
+ lazy: l,
1905
2078
  leadSrc: p,
1906
- priority: l,
2079
+ priority: s,
1907
2080
  radius: c,
1908
2081
  shadow: h,
1909
2082
  sizes: b,
1910
- sources: S,
2083
+ sources: w,
1911
2084
  src: f,
1912
- srcSet: E,
2085
+ srcSet: z,
1913
2086
  still: q,
1914
- width: w
2087
+ width: x
1915
2088
  }) {
1916
- const k = r === "cover", C = v(d), x = f.trim(), z = E?.trim(), _ = p?.trim(), D = q?.trim(), N = b?.trim(), M = S?.map((u, L) => {
1917
- const I = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Vt = u.sizes?.trim(), Ht = u.leadSrc?.trim(), Nt = u.still?.trim();
1918
- if (!I)
2089
+ const k = r === "cover", C = v(d), E = f.trim(), S = z?.trim(), I = p?.trim(), A = q?.trim(), V = b?.trim(), M = w?.map((u, L) => {
2090
+ const T = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Nt = u.sizes?.trim(), Bt = u.leadSrc?.trim(), Ot = u.still?.trim();
2091
+ if (!T)
1919
2092
  throw new Error(`sources[${L}].srcSet must be non-empty.`);
1920
2093
  return {
1921
2094
  height: u.height,
1922
- leadSrc: Ht || void 0,
2095
+ leadSrc: Bt || void 0,
1923
2096
  media: y || void 0,
1924
- sizes: Vt || void 0,
1925
- srcSet: I,
1926
- still: Nt || void 0,
2097
+ sizes: Nt || void 0,
2098
+ srcSet: T,
2099
+ still: Ot || void 0,
1927
2100
  type: g || void 0,
1928
2101
  width: u.width
1929
2102
  };
1930
2103
  }) || [];
1931
- if (!x)
2104
+ if (!E)
1932
2105
  throw new Error("src must be a non-empty string.");
1933
2106
  if (t && [
1934
- x,
1935
- z,
2107
+ E,
2108
+ S,
1936
2109
  ...M.map((u) => u.srcSet)
1937
2110
  ].some((u) => u?.includes("#")))
1938
2111
  throw new Error("adaptive sources must not contain URL fragments.");
1939
- const U = !!(n && t), nt = !!(n && _), $ = !!_ || M.some((u) => u.leadSrc);
2112
+ const N = !!(n && t), nt = !!(n && I), $ = !!I || M.some((u) => u.leadSrc);
1940
2113
  if (!n && $)
1941
2114
  throw new Error("leadSrc requires animated.");
1942
2115
  if (n) {
1943
2116
  const u = [
1944
- x,
1945
- z,
1946
- _,
2117
+ E,
2118
+ S,
2119
+ I,
1947
2120
  ...M.flatMap((y) => [y.srcSet, y.leadSrc])
1948
2121
  ].filter((y) => !!y), L = u.filter((y) => y.includes("{scheme}"));
1949
2122
  if (t && L.length !== u.length)
@@ -1954,16 +2127,16 @@ function Xt({
1954
2127
  throw new Error(
1955
2128
  "the {scheme} placeholder requires adaptive to enable light/dark."
1956
2129
  );
1957
- if (!D)
2130
+ if (!A)
1958
2131
  throw new Error("animated requires a still.");
1959
2132
  if ([
1960
- D,
2133
+ A,
1961
2134
  ...M.map((y) => y.still)
1962
2135
  ].filter((y) => !!y).some((y) => y.includes("#")))
1963
2136
  throw new Error("animated still must not contain URL fragments.");
1964
2137
  }
1965
- const kt = (u, L) => u.split(/,\s+/).map((I) => {
1966
- const [y, ...g] = I.trim().split(/\s+/);
2138
+ const kt = (u, L) => u.split(/,\s+/).map((T) => {
2139
+ const [y, ...g] = T.trim().split(/\s+/);
1967
2140
  if (!y || g.length > 1)
1968
2141
  throw new Error(
1969
2142
  "adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
@@ -1977,19 +2150,19 @@ function Xt({
1977
2150
  alt: e,
1978
2151
  class: "img",
1979
2152
  "data-scheme": u && M.length === 0 ? u : void 0,
1980
- fetchpriority: l ? "high" : void 0,
2153
+ fetchpriority: s ? "high" : void 0,
1981
2154
  height: k ? void 0 : o ? String(o) : void 0,
1982
- loading: s && !l ? "lazy" : void 0,
1983
- sizes: M.length > 0 ? void 0 : N || void 0,
1984
- src: u ? `${x}#${u}` : x,
1985
- srcset: z && u ? kt(z, u) : z || void 0,
1986
- width: k ? void 0 : w ? String(w) : void 0
2155
+ loading: l && !s ? "lazy" : void 0,
2156
+ sizes: M.length > 0 ? void 0 : V || void 0,
2157
+ src: u ? `${E}#${u}` : E,
2158
+ srcset: S && u ? kt(S, u) : S || void 0,
2159
+ width: k ? void 0 : x ? String(x) : void 0
1987
2160
  },
1988
2161
  children: []
1989
2162
  };
1990
2163
  if (M.length === 0)
1991
2164
  return L;
1992
- const I = M.map((y) => ({
2165
+ const T = M.map((y) => ({
1993
2166
  kind: "element",
1994
2167
  tag: "source",
1995
2168
  attrs: {
@@ -2006,9 +2179,9 @@ function Xt({
2006
2179
  kind: "element",
2007
2180
  tag: "picture",
2008
2181
  attrs: { "data-scheme": u },
2009
- children: [...I, L]
2182
+ children: [...T, L]
2010
2183
  };
2011
- }, at = "(prefers-reduced-motion: reduce)", R = (u, L) => L ? u.replaceAll("{scheme}", L) : u, ot = (u, L) => L ? `${u}#${L}` : u, gt = (u) => {
2184
+ }, at = "(prefers-reduced-motion: reduce)", W = (u, L) => L ? u.replaceAll("{scheme}", L) : u, ot = (u, L) => L ? `${u}#${L}` : u, gt = (u) => {
2012
2185
  const L = M.filter((g) => g.still).map((g) => ({
2013
2186
  kind: "element",
2014
2187
  tag: "source",
@@ -2025,18 +2198,18 @@ function Xt({
2025
2198
  tag: "source",
2026
2199
  attrs: {
2027
2200
  media: at,
2028
- srcset: ot(D, u)
2201
+ srcset: ot(A, u)
2029
2202
  },
2030
2203
  children: []
2031
2204
  });
2032
- const I = M.map((g) => ({
2205
+ const T = M.map((g) => ({
2033
2206
  kind: "element",
2034
2207
  tag: "source",
2035
2208
  attrs: {
2036
2209
  height: g.height ? String(g.height) : void 0,
2037
2210
  media: g.media,
2038
2211
  sizes: g.sizes,
2039
- srcset: R(g.srcSet, u),
2212
+ srcset: W(g.srcSet, u),
2040
2213
  type: g.type,
2041
2214
  width: g.width ? String(g.width) : void 0
2042
2215
  },
@@ -2047,13 +2220,13 @@ function Xt({
2047
2220
  attrs: {
2048
2221
  alt: e,
2049
2222
  class: "img",
2050
- fetchpriority: l ? "high" : void 0,
2223
+ fetchpriority: s ? "high" : void 0,
2051
2224
  height: k ? void 0 : o ? String(o) : void 0,
2052
- loading: s && !l ? "lazy" : void 0,
2053
- sizes: M.length > 0 ? void 0 : N || void 0,
2054
- src: R(x, u),
2055
- srcset: z ? R(z, u) : void 0,
2056
- width: k ? void 0 : w ? String(w) : void 0
2225
+ loading: l && !s ? "lazy" : void 0,
2226
+ sizes: M.length > 0 ? void 0 : V || void 0,
2227
+ src: W(E, u),
2228
+ srcset: S ? W(S, u) : void 0,
2229
+ width: k ? void 0 : x ? String(x) : void 0
2057
2230
  },
2058
2231
  children: []
2059
2232
  };
@@ -2061,10 +2234,10 @@ function Xt({
2061
2234
  kind: "element",
2062
2235
  tag: "picture",
2063
2236
  attrs: { "data-scheme": u },
2064
- children: [...L, ...I, y]
2237
+ children: [...L, ...T, y]
2065
2238
  };
2066
- }, _t = (u) => {
2067
- const L = "(prefers-reduced-motion: no-preference)", I = M.map((g) => {
2239
+ }, Vt = (u) => {
2240
+ const L = "(prefers-reduced-motion: no-preference)", T = M.map((g) => {
2068
2241
  if (g.leadSrc)
2069
2242
  return {
2070
2243
  kind: "element",
@@ -2073,20 +2246,20 @@ function Xt({
2073
2246
  height: g.height ? String(g.height) : void 0,
2074
2247
  media: g.media ? `${L} and ${g.media}` : L,
2075
2248
  sizes: g.sizes,
2076
- srcset: R(g.leadSrc, u),
2249
+ srcset: W(g.leadSrc, u),
2077
2250
  type: g.type,
2078
2251
  width: g.width ? String(g.width) : void 0
2079
2252
  },
2080
2253
  children: []
2081
2254
  };
2082
2255
  }).filter((g) => !!g);
2083
- I.push({
2256
+ T.push({
2084
2257
  kind: "element",
2085
2258
  tag: "source",
2086
2259
  attrs: {
2087
2260
  media: L,
2088
- sizes: M.length > 0 ? void 0 : N || void 0,
2089
- srcset: R(_, u)
2261
+ sizes: M.length > 0 ? void 0 : V || void 0,
2262
+ srcset: W(I, u)
2090
2263
  },
2091
2264
  children: []
2092
2265
  });
@@ -2097,8 +2270,8 @@ function Xt({
2097
2270
  alt: "",
2098
2271
  class: "img",
2099
2272
  height: k ? void 0 : o ? String(o) : void 0,
2100
- src: ot(D, u),
2101
- width: k ? void 0 : w ? String(w) : void 0
2273
+ src: ot(A, u),
2274
+ width: k ? void 0 : x ? String(x) : void 0
2102
2275
  },
2103
2276
  children: []
2104
2277
  };
@@ -2106,10 +2279,10 @@ function Xt({
2106
2279
  kind: "element",
2107
2280
  tag: "picture",
2108
2281
  attrs: { "data-scheme": u, "data-layer": "lead" },
2109
- children: [...I, y]
2282
+ children: [...T, y]
2110
2283
  };
2111
- }, dt = (u) => nt ? [gt(u), _t(u)] : [gt(u)], Dt = n ? U ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
2112
- return o && G.push(`--set-image-block-size: ${o / 16}rem`), w && G.push(`--set-image-inline-size: ${w / 16}rem`), {
2284
+ }, dt = (u) => nt ? [gt(u), Vt(u)] : [gt(u)], Ht = n ? N ? [...dt("light"), ...dt("dark")] : dt() : t ? [rt("light"), rt("dark")] : [rt()], G = [];
2285
+ return o && G.push(`--set-image-block-size: ${o / 16}rem`), x && G.push(`--set-image-inline-size: ${x / 16}rem`), {
2113
2286
  kind: "element",
2114
2287
  tag: K,
2115
2288
  attrs: {
@@ -2126,13 +2299,13 @@ function Xt({
2126
2299
  id: C,
2127
2300
  style: G.length > 0 ? G.join("; ") : void 0
2128
2301
  },
2129
- children: Dt
2302
+ children: Ht
2130
2303
  };
2131
2304
  }
2132
- function Qt(t) {
2133
- return m(Xt(t));
2305
+ function ie(t) {
2306
+ return m(ee(t));
2134
2307
  }
2135
- function Yt() {
2308
+ function ne() {
2136
2309
  if (customElements.get(K)) return;
2137
2310
  const t = "(prefers-reduced-motion: reduce)";
2138
2311
  class n extends HTMLElement {
@@ -2155,7 +2328,7 @@ function Yt() {
2155
2328
  }
2156
2329
  customElements.define(K, n);
2157
2330
  }
2158
- const bi = {
2331
+ const Si = {
2159
2332
  name: "image",
2160
2333
  description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
2161
2334
  output: { element: K, class: "set-image" },
@@ -2384,14 +2557,14 @@ const bi = {
2384
2557
  }
2385
2558
  ]
2386
2559
  }
2387
- }, X = "set-lightswitch", Mt = "set-lightswitch-change", st = "set-theme", lt = "Switch to dark theme", pt = "Switch to light theme";
2388
- function Jt(t) {
2560
+ }, X = "set-lightswitch", It = "set-lightswitch-change", st = "set-theme", lt = "Switch to dark theme", pt = "Switch to light theme";
2561
+ function re(t) {
2389
2562
  return t === "dark" ? "light" : "dark";
2390
2563
  }
2391
- function te(t) {
2564
+ function ae(t) {
2392
2565
  return t === "dark" ? "moon" : "sunny";
2393
2566
  }
2394
- function bt(t, n) {
2567
+ function vt(t, n) {
2395
2568
  return {
2396
2569
  kind: "element",
2397
2570
  tag: "span",
@@ -2402,9 +2575,9 @@ function bt(t, n) {
2402
2575
  tag: "span",
2403
2576
  attrs: { class: "icon-wrapper" },
2404
2577
  children: [
2405
- P({
2578
+ R({
2406
2579
  ariaHidden: !0,
2407
- name: te(t),
2580
+ name: ae(t),
2408
2581
  size: "fill"
2409
2582
  })
2410
2583
  ]
@@ -2418,7 +2591,7 @@ function bt(t, n) {
2418
2591
  ]
2419
2592
  };
2420
2593
  }
2421
- function ee({
2594
+ function oe({
2422
2595
  appearance: t = "text",
2423
2596
  id: n,
2424
2597
  labelDark: e = lt,
@@ -2444,32 +2617,32 @@ function ee({
2444
2617
  type: "button"
2445
2618
  },
2446
2619
  children: [
2447
- bt("dark", o),
2448
- bt("light", d)
2620
+ vt("dark", o),
2621
+ vt("light", d)
2449
2622
  ]
2450
2623
  }
2451
2624
  ]
2452
2625
  };
2453
2626
  }
2454
- function vi(t) {
2455
- return m(ee(t));
2627
+ function xi(t) {
2628
+ return m(oe(t));
2456
2629
  }
2457
- function ie() {
2630
+ function de() {
2458
2631
  if (customElements.get(X)) return;
2459
2632
  class t extends HTMLElement {
2460
2633
  #t = (e) => {
2461
2634
  const i = e.target;
2462
2635
  if (!(i instanceof Element) || !i.closest("button")) return;
2463
- const r = Jt(this.#u());
2464
- r === this.#r() ? this.#d() : this.#n(r), this.#a(), this.dispatchEvent(
2465
- new CustomEvent(Mt, {
2636
+ const r = re(this.#u());
2637
+ r === this.#a() ? this.#r() : this.#n(r), this.#o(), this.dispatchEvent(
2638
+ new CustomEvent(It, {
2466
2639
  bubbles: !0,
2467
2640
  detail: { stored: !!this.#i(), theme: r }
2468
2641
  })
2469
2642
  );
2470
2643
  };
2471
2644
  connectedCallback() {
2472
- this.removeEventListener("click", this.#t), this.addEventListener("click", this.#t), this.#i() && this.#a();
2645
+ this.removeEventListener("click", this.#t), this.addEventListener("click", this.#t), this.#i() && this.#o();
2473
2646
  }
2474
2647
  disconnectedCallback() {
2475
2648
  this.removeEventListener("click", this.#t);
@@ -2495,13 +2668,13 @@ function ie() {
2495
2668
  } catch {
2496
2669
  }
2497
2670
  }
2498
- #d() {
2671
+ #r() {
2499
2672
  try {
2500
2673
  this.#e()?.removeItem(st);
2501
2674
  } catch {
2502
2675
  }
2503
2676
  }
2504
- #r() {
2677
+ #a() {
2505
2678
  const e = this.ownerDocument.defaultView;
2506
2679
  return !e || typeof e.matchMedia != "function" ? "light" : e.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2507
2680
  }
@@ -2513,9 +2686,9 @@ function ie() {
2513
2686
  return e === "light" || e === "dark" ? e : void 0;
2514
2687
  }
2515
2688
  #u() {
2516
- return this.#i() ?? this.#s() ?? this.#r();
2689
+ return this.#i() ?? this.#s() ?? this.#a();
2517
2690
  }
2518
- #a() {
2691
+ #o() {
2519
2692
  const e = this.#c();
2520
2693
  if (!e) return;
2521
2694
  const i = this.#i();
@@ -2524,7 +2697,7 @@ function ie() {
2524
2697
  }
2525
2698
  customElements.define(X, t);
2526
2699
  }
2527
- const fi = {
2700
+ const Ei = {
2528
2701
  name: "lightswitch",
2529
2702
  description: "Use `lightswitch` to let users toggle between light and dark themes.",
2530
2703
  output: { element: X, class: "set-lightswitch" },
@@ -2556,7 +2729,7 @@ const fi = {
2556
2729
  }
2557
2730
  },
2558
2731
  events: {
2559
- [Mt]: {
2732
+ [It]: {
2560
2733
  bubbles: !0,
2561
2734
  description: "Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."
2562
2735
  }
@@ -2595,38 +2768,39 @@ const fi = {
2595
2768
  }
2596
2769
  ]
2597
2770
  }
2598
- }, Q = "set-menu", qt = "set-menu-choose";
2599
- function ne({
2771
+ }, Q = "set-menu", At = "set-menu-choose";
2772
+ function se({
2600
2773
  align: t = "start",
2601
2774
  id: n,
2602
2775
  items: e,
2603
2776
  size: i = "md",
2604
- triggerIcon: r,
2605
- triggerIconMirrored: a,
2606
- triggerIconPlacement: o,
2607
- triggerLabel: d,
2608
- triggerLabelVisibility: s
2777
+ triggerActivity: r,
2778
+ triggerIcon: a,
2779
+ triggerIconMirrored: o,
2780
+ triggerIconPlacement: d,
2781
+ triggerLabel: l,
2782
+ triggerLabelVisibility: p
2609
2783
  }) {
2610
- const p = n.trim();
2611
- if (!p)
2784
+ const s = n.trim();
2785
+ if (!s)
2612
2786
  throw new Error("id must be a non-empty string.");
2613
- if (!V(p))
2787
+ if (!H(s))
2614
2788
  throw new Error(
2615
2789
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
2616
2790
  );
2617
2791
  if (!Array.isArray(e))
2618
2792
  throw new Error("items must be an array.");
2619
- const l = `${p}-button`, c = `${p}-popup`, h = e.map((b) => ({
2793
+ const c = `${s}-button`, h = `${s}-popup`, b = e.map((w) => ({
2620
2794
  kind: "element",
2621
2795
  tag: "button",
2622
2796
  attrs: {
2623
- "aria-disabled": b.disabled ? "true" : void 0,
2624
- "data-item-id": b.id || void 0,
2797
+ "aria-disabled": w.disabled ? "true" : void 0,
2798
+ "data-item-id": w.id || void 0,
2625
2799
  role: "menuitem",
2626
2800
  tabindex: "-1",
2627
2801
  type: "button"
2628
2802
  },
2629
- children: [{ kind: "text", value: b.label }]
2803
+ children: [{ kind: "text", value: w.label }]
2630
2804
  }));
2631
2805
  return {
2632
2806
  kind: "element",
@@ -2635,7 +2809,7 @@ function ne({
2635
2809
  class: "set-menu",
2636
2810
  "data-align": t === "start" ? void 0 : t,
2637
2811
  "data-size": i,
2638
- id: p
2812
+ id: s
2639
2813
  },
2640
2814
  children: [
2641
2815
  {
@@ -2644,16 +2818,17 @@ function ne({
2644
2818
  attrs: { "data-part": "trigger" },
2645
2819
  children: [
2646
2820
  ht({
2821
+ activity: r,
2647
2822
  appearance: "outline",
2648
- controls: c,
2823
+ controls: h,
2649
2824
  disclosure: !0,
2650
2825
  haspopup: "menu",
2651
- icon: r,
2652
- iconMirrored: a,
2653
- iconPlacement: o,
2654
- id: l,
2655
- label: d,
2656
- labelVisibility: s,
2826
+ icon: a,
2827
+ iconMirrored: o,
2828
+ iconPlacement: d,
2829
+ id: c,
2830
+ label: l,
2831
+ labelVisibility: p,
2657
2832
  size: i,
2658
2833
  tone: "neutral",
2659
2834
  type: "button"
@@ -2664,39 +2839,54 @@ function ne({
2664
2839
  kind: "element",
2665
2840
  tag: "div",
2666
2841
  attrs: {
2667
- "aria-labelledby": l,
2842
+ "aria-labelledby": c,
2668
2843
  class: "popup",
2669
2844
  hidden: !0,
2670
- id: c,
2845
+ id: h,
2671
2846
  role: "menu"
2672
2847
  },
2673
- children: h
2848
+ children: b
2674
2849
  }
2675
2850
  ]
2676
2851
  };
2677
2852
  }
2678
- function yi(t) {
2679
- return m(ne(t));
2853
+ function zi(t) {
2854
+ return m(se(t));
2680
2855
  }
2681
- function re() {
2856
+ function le() {
2682
2857
  if (customElements.get(Q)) return;
2683
2858
  class t extends HTMLElement {
2684
2859
  #t;
2685
2860
  #e;
2686
2861
  #i;
2687
2862
  #n;
2863
+ /**
2864
+ * Reactive mirror of the `triggerActivity` render prop. Toggles the busy
2865
+ * affordance on the trigger button at runtime; `null` clears it. Requires
2866
+ * the menu to be rendered primed (`triggerActivity: "idle"`) for the
2867
+ * spinner to appear.
2868
+ */
2869
+ get triggerActivity() {
2870
+ return this.#r()?.getAttribute(
2871
+ "data-activity"
2872
+ );
2873
+ }
2874
+ set triggerActivity(e) {
2875
+ const i = this.#r();
2876
+ i && Gt(i, e);
2877
+ }
2688
2878
  connectedCallback() {
2689
- this.#p(), this.#o(!1), this.#k();
2879
+ this.#p(), this.#d(!1), this.#k();
2690
2880
  }
2691
2881
  disconnectedCallback() {
2692
2882
  this.#p();
2693
2883
  }
2694
- #d() {
2884
+ #r() {
2695
2885
  return this.querySelector(
2696
2886
  '[data-part="trigger"] .set-button'
2697
2887
  );
2698
2888
  }
2699
- #r() {
2889
+ #a() {
2700
2890
  return this.querySelector('[role="menu"]');
2701
2891
  }
2702
2892
  #c() {
@@ -2710,18 +2900,18 @@ function re() {
2710
2900
  #u() {
2711
2901
  return this.hasAttribute("data-open");
2712
2902
  }
2713
- #a(e) {
2903
+ #o(e) {
2714
2904
  const i = this.#c();
2715
2905
  if (i.length === 0) return;
2716
2906
  const r = (e % i.length + i.length) % i.length;
2717
2907
  i[r]?.focus();
2718
2908
  }
2719
2909
  #l(e = 0) {
2720
- const i = this.#r(), r = this.#d();
2721
- !i || !r || (i.hidden = !1, this.setAttribute("data-open", ""), r.setAttribute("aria-expanded", "true"), this.#a(e));
2910
+ const i = this.#a(), r = this.#r();
2911
+ !i || !r || (i.hidden = !1, this.setAttribute("data-open", ""), r.setAttribute("aria-expanded", "true"), this.#o(e));
2722
2912
  }
2723
- #o(e = !1) {
2724
- const i = this.#r(), r = this.#d();
2913
+ #d(e = !1) {
2914
+ const i = this.#a(), r = this.#r();
2725
2915
  !i || !r || (i.hidden = !0, this.removeAttribute("data-open"), r.setAttribute("aria-expanded", "false"), e && r.focus());
2726
2916
  }
2727
2917
  #h(e) {
@@ -2729,7 +2919,7 @@ function re() {
2729
2919
  this.querySelectorAll('[role="menuitem"]')
2730
2920
  ).indexOf(e);
2731
2921
  this.dispatchEvent(
2732
- new CustomEvent(qt, {
2922
+ new CustomEvent(At, {
2733
2923
  bubbles: !0,
2734
2924
  detail: {
2735
2925
  id: e.getAttribute("data-item-id") || void 0,
@@ -2745,7 +2935,7 @@ function re() {
2745
2935
  if (!(i instanceof Element)) return;
2746
2936
  if (i.closest('[data-part="trigger"] .set-button')) {
2747
2937
  if (this.#u()) {
2748
- this.#o();
2938
+ this.#d();
2749
2939
  return;
2750
2940
  }
2751
2941
  this.#l(0);
@@ -2753,17 +2943,17 @@ function re() {
2753
2943
  }
2754
2944
  const r = i.closest('[role="menuitem"]');
2755
2945
  if (r && this.contains(r)) {
2756
- this.#s(r) || (this.#h(r), this.#o(!0));
2946
+ this.#s(r) || (this.#h(r), this.#d(!0));
2757
2947
  return;
2758
2948
  }
2759
2949
  }, this.#e = (e) => {
2760
2950
  const i = e.target;
2761
- i instanceof Node && this.#u() && !this.contains(i) && this.#o();
2951
+ i instanceof Node && this.#u() && !this.contains(i) && this.#d();
2762
2952
  }, this.#n = (e) => {
2763
- const i = this.#d(), r = this.#r();
2953
+ const i = this.#r(), r = this.#a();
2764
2954
  if (!i || !r) return;
2765
2955
  if ((e.key === "Escape" || e.key === "Esc") && this.#u()) {
2766
- e.preventDefault(), this.#o(!0);
2956
+ e.preventDefault(), this.#d(!0);
2767
2957
  return;
2768
2958
  }
2769
2959
  const a = this.ownerDocument.activeElement, o = this.#c(), d = o.indexOf(a);
@@ -2773,18 +2963,18 @@ function re() {
2773
2963
  }
2774
2964
  if (r.contains(a)) {
2775
2965
  if (a instanceof HTMLButtonElement && (e.key === "Enter" || e.key === " ")) {
2776
- e.preventDefault(), this.#s(a) || (this.#h(a), this.#o(!0));
2966
+ e.preventDefault(), this.#s(a) || (this.#h(a), this.#d(!0));
2777
2967
  return;
2778
2968
  }
2779
- e.key === "ArrowDown" && (e.preventDefault(), this.#a(d + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#a(d - 1)), e.key === "Home" && (e.preventDefault(), this.#a(0)), e.key === "End" && (e.preventDefault(), this.#a(o.length - 1)), e.key === "Tab" && this.#o(!1);
2969
+ e.key === "ArrowDown" && (e.preventDefault(), this.#o(d + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#o(d - 1)), e.key === "Home" && (e.preventDefault(), this.#o(0)), e.key === "End" && (e.preventDefault(), this.#o(o.length - 1)), e.key === "Tab" && this.#d(!1);
2780
2970
  }
2781
2971
  }, this.#i = (e) => {
2782
2972
  const i = e.relatedTarget;
2783
2973
  if (!(i instanceof Node)) {
2784
- this.#o();
2974
+ this.#d();
2785
2975
  return;
2786
2976
  }
2787
- this.contains(i) || this.#o();
2977
+ this.contains(i) || this.#d();
2788
2978
  }, this.addEventListener("click", this.#t), this.addEventListener("keydown", this.#n), this.addEventListener("focusout", this.#i), this.ownerDocument.addEventListener("click", this.#e);
2789
2979
  }
2790
2980
  #p() {
@@ -2793,7 +2983,7 @@ function re() {
2793
2983
  }
2794
2984
  customElements.define(Q, t);
2795
2985
  }
2796
- const wi = {
2986
+ const Li = {
2797
2987
  name: "menu",
2798
2988
  description: "Use `menu` to show a list of actions from a trigger button.",
2799
2989
  output: {
@@ -2843,6 +3033,10 @@ const wi = {
2843
3033
  description: "Size variant.",
2844
3034
  type: { kind: "enum", values: ["sm", "md"] }
2845
3035
  },
3036
+ triggerActivity: {
3037
+ description: "Activity-indicator state for the trigger button.",
3038
+ type: { kind: "enum", values: ["idle", "busy"] }
3039
+ },
2846
3040
  triggerIcon: {
2847
3041
  description: "Icon name for the trigger button.",
2848
3042
  type: { kind: "iconName" }
@@ -2871,7 +3065,7 @@ const wi = {
2871
3065
  }
2872
3066
  },
2873
3067
  events: {
2874
- [qt]: {
3068
+ [At]: {
2875
3069
  bubbles: !0,
2876
3070
  description: "Fired when a menu item is activated.",
2877
3071
  detail: "{ id?: string; index: number; label: string }"
@@ -2932,7 +3126,7 @@ const wi = {
2932
3126
  ]
2933
3127
  }
2934
3128
  }, ct = "Menu";
2935
- function ae({
3129
+ function pe({
2936
3130
  controlsId: t,
2937
3131
  expanded: n,
2938
3132
  id: e,
@@ -2974,10 +3168,10 @@ function ae({
2974
3168
  ]
2975
3169
  };
2976
3170
  }
2977
- function oe(t = {}) {
2978
- return m(ae(t));
3171
+ function ce(t = {}) {
3172
+ return m(pe(t));
2979
3173
  }
2980
- const Si = {
3174
+ const Ci = {
2981
3175
  name: "expander",
2982
3176
  description: "Use `expander` as a toggle for disclosure regions such as menus.",
2983
3177
  output: { element: "button", class: "set-expander" },
@@ -3042,8 +3236,8 @@ const Si = {
3042
3236
  }
3043
3237
  ]
3044
3238
  }
3045
- }, Y = "set-nav", vt = "data-set-scroll-locked";
3046
- function de({
3239
+ }, Y = "set-nav", ft = "data-set-scroll-locked";
3240
+ function ue({
3047
3241
  collapsible: t,
3048
3242
  contentId: n,
3049
3243
  expanderLabel: e,
@@ -3053,12 +3247,12 @@ function de({
3053
3247
  label: o,
3054
3248
  size: d = "md"
3055
3249
  }) {
3056
- const s = v(r), p = e?.trim() || void 0, l = n?.trim();
3057
- if (t && !l)
3250
+ const l = v(r), p = e?.trim() || void 0, s = n?.trim();
3251
+ if (t && !s)
3058
3252
  throw new Error(
3059
3253
  "contentId must be a non-empty string when collapsible is set."
3060
3254
  );
3061
- if (l && !V(l))
3255
+ if (s && !H(s))
3062
3256
  throw new Error(
3063
3257
  "contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
3064
3258
  );
@@ -3088,7 +3282,7 @@ function de({
3088
3282
  "data-expander-label": t && p ? p : void 0,
3089
3283
  "data-expander-position": t ? i : void 0,
3090
3284
  "data-size": d,
3091
- id: s
3285
+ id: l
3092
3286
  },
3093
3287
  children: [
3094
3288
  {
@@ -3104,7 +3298,7 @@ function de({
3104
3298
  tag: "div",
3105
3299
  attrs: {
3106
3300
  class: "content",
3107
- id: l
3301
+ id: s
3108
3302
  },
3109
3303
  children: [
3110
3304
  {
@@ -3120,10 +3314,10 @@ function de({
3120
3314
  ]
3121
3315
  };
3122
3316
  }
3123
- function xi(t) {
3124
- return m(de(t));
3317
+ function Mi(t) {
3318
+ return m(ue(t));
3125
3319
  }
3126
- function se() {
3320
+ function he() {
3127
3321
  if (customElements.get(Y)) return;
3128
3322
  class t extends HTMLElement {
3129
3323
  #t;
@@ -3131,26 +3325,26 @@ function se() {
3131
3325
  #i;
3132
3326
  #n;
3133
3327
  connectedCallback() {
3134
- this.#o(), this.#h(), this.#c(), this.#u(), this.#a();
3328
+ this.#d(), this.#h(), this.#c(), this.#u(), this.#o();
3135
3329
  }
3136
3330
  disconnectedCallback() {
3137
- this.#s(!1), this.#o(), this.#h();
3331
+ this.#s(!1), this.#d(), this.#h();
3138
3332
  }
3139
- #d() {
3333
+ #r() {
3140
3334
  return this.hasAttribute("data-collapsible") ? this.querySelector(".nav") : null;
3141
3335
  }
3142
- #r() {
3336
+ #a() {
3143
3337
  return this.querySelector(
3144
3338
  '[data-part="expander"] .set-expander'
3145
3339
  );
3146
3340
  }
3147
3341
  #c() {
3148
- const e = this.#d();
3342
+ const e = this.#r();
3149
3343
  if (!e || e.querySelector('[data-part="expander"]')) return;
3150
3344
  const i = e.querySelector(".content");
3151
3345
  i && e.insertAdjacentHTML(
3152
3346
  "afterbegin",
3153
- `<div data-part="expander">${oe({
3347
+ `<div data-part="expander">${ce({
3154
3348
  controlsId: i.id || void 0,
3155
3349
  label: this.getAttribute("data-expander-label") || void 0,
3156
3350
  size: this.getAttribute("data-size") === "sm" ? "md" : "lg"
@@ -3158,19 +3352,19 @@ function se() {
3158
3352
  );
3159
3353
  }
3160
3354
  #s(e) {
3161
- const i = this.#r();
3355
+ const i = this.#a();
3162
3356
  !i || i.getAttribute("aria-expanded") === "true" === e || (i.setAttribute("aria-expanded", e ? "true" : "false"), this.#l(e));
3163
3357
  }
3164
3358
  #u() {
3165
3359
  this.#t = (e) => {
3166
3360
  const i = e.target;
3167
3361
  if (!(i instanceof Element) || !i.closest('[data-part="expander"] .set-expander')) return;
3168
- const r = this.#r();
3362
+ const r = this.#a();
3169
3363
  r && this.#s(r.getAttribute("aria-expanded") !== "true");
3170
3364
  }, this.addEventListener("click", this.#t);
3171
3365
  }
3172
- #a() {
3173
- const e = this.#d(), i = this.ownerDocument.defaultView;
3366
+ #o() {
3367
+ const e = this.#r(), i = this.ownerDocument.defaultView;
3174
3368
  if (!e || !i || (this.#i = (a) => {
3175
3369
  a.key !== "Escape" && a.key !== "Esc" || this.#s(!1);
3176
3370
  }, i.addEventListener("keydown", this.#i), this.getAttribute("data-collapsible") !== "belowTablet") || typeof i.matchMedia != "function") return;
@@ -3183,13 +3377,13 @@ function se() {
3183
3377
  const i = this.ownerDocument.documentElement;
3184
3378
  if (i) {
3185
3379
  if (e) {
3186
- i.setAttribute(vt, "");
3380
+ i.setAttribute(ft, "");
3187
3381
  return;
3188
3382
  }
3189
- i.removeAttribute(vt);
3383
+ i.removeAttribute(ft);
3190
3384
  }
3191
3385
  }
3192
- #o() {
3386
+ #d() {
3193
3387
  this.#t && (this.removeEventListener("click", this.#t), this.#t = void 0);
3194
3388
  }
3195
3389
  #h() {
@@ -3202,7 +3396,7 @@ function se() {
3202
3396
  }
3203
3397
  customElements.define(Y, t);
3204
3398
  }
3205
- const Ei = {
3399
+ const qi = {
3206
3400
  name: "nav",
3207
3401
  description: "Use `nav` to render a primary navigation list.",
3208
3402
  output: { element: Y, class: "set-nav" },
@@ -3318,7 +3512,7 @@ const Ei = {
3318
3512
  ]
3319
3513
  }
3320
3514
  }, J = "set-range";
3321
- function le({
3515
+ function me({
3322
3516
  description: t,
3323
3517
  disabled: n,
3324
3518
  id: e,
@@ -3327,18 +3521,18 @@ function le({
3327
3521
  max: a,
3328
3522
  min: o,
3329
3523
  name: d,
3330
- size: s = "md",
3524
+ size: l = "md",
3331
3525
  step: p,
3332
- value: l
3526
+ value: s
3333
3527
  }) {
3334
3528
  const c = e.trim(), h = t?.trim(), b = d?.trim();
3335
3529
  if (!c)
3336
3530
  throw new Error("id must be a non-empty string.");
3337
- if (!V(c))
3531
+ if (!H(c))
3338
3532
  throw new Error(
3339
3533
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
3340
3534
  );
3341
- const S = h ? `${c}-description` : void 0, f = [
3535
+ const w = h ? `${c}-description` : void 0, f = [
3342
3536
  {
3343
3537
  kind: "element",
3344
3538
  tag: "div",
@@ -3354,7 +3548,7 @@ function le({
3354
3548
  kind: "element",
3355
3549
  tag: "output",
3356
3550
  attrs: { class: "output", for: c },
3357
- children: l != null ? [{ kind: "text", value: String(l) }] : []
3551
+ children: s != null ? [{ kind: "text", value: String(s) }] : []
3358
3552
  }
3359
3553
  ]
3360
3554
  },
@@ -3362,7 +3556,7 @@ function le({
3362
3556
  kind: "element",
3363
3557
  tag: "input",
3364
3558
  attrs: {
3365
- "aria-describedby": S,
3559
+ "aria-describedby": w,
3366
3560
  class: "range",
3367
3561
  disabled: !!n,
3368
3562
  id: c,
@@ -3371,7 +3565,7 @@ function le({
3371
3565
  name: b || void 0,
3372
3566
  step: p != null ? String(p) : void 0,
3373
3567
  type: "range",
3374
- value: l != null ? String(l) : void 0
3568
+ value: s != null ? String(s) : void 0
3375
3569
  },
3376
3570
  children: []
3377
3571
  }
@@ -3379,7 +3573,7 @@ function le({
3379
3573
  return h && f.push({
3380
3574
  kind: "element",
3381
3575
  tag: "p",
3382
- attrs: { class: "description", id: S },
3576
+ attrs: { class: "description", id: w },
3383
3577
  children: [{ kind: "text", value: h }]
3384
3578
  }), {
3385
3579
  kind: "element",
@@ -3387,15 +3581,15 @@ function le({
3387
3581
  attrs: {
3388
3582
  class: "set-range",
3389
3583
  "data-inline-size": i === "fit" ? "fit" : void 0,
3390
- "data-size": s
3584
+ "data-size": l
3391
3585
  },
3392
3586
  children: f
3393
3587
  };
3394
3588
  }
3395
- function zi(t) {
3396
- return m(le(t));
3589
+ function Ii(t) {
3590
+ return m(me(t));
3397
3591
  }
3398
- function pe() {
3592
+ function ke() {
3399
3593
  if (customElements.get(J)) return;
3400
3594
  class t extends HTMLElement {
3401
3595
  #t;
@@ -3404,10 +3598,10 @@ function pe() {
3404
3598
  i instanceof HTMLInputElement && i.matches(".range") && this.#i();
3405
3599
  };
3406
3600
  connectedCallback() {
3407
- this.removeEventListener("input", this.#e), this.#d(), this.#i(), this.addEventListener("input", this.#e);
3601
+ this.removeEventListener("input", this.#e), this.#r(), this.#i(), this.addEventListener("input", this.#e);
3408
3602
  }
3409
3603
  disconnectedCallback() {
3410
- this.removeEventListener("input", this.#e), this.#r();
3604
+ this.removeEventListener("input", this.#e), this.#a();
3411
3605
  }
3412
3606
  #i() {
3413
3607
  const e = this.querySelector(".range"), i = this.querySelector(".output");
@@ -3425,10 +3619,10 @@ function pe() {
3425
3619
  // not fire an `input` event, so the output wouldn't track it. Override
3426
3620
  // the instance's `value` accessor to sync the output on set, restoring
3427
3621
  // the prototype behaviour on disconnect.
3428
- #d() {
3622
+ #r() {
3429
3623
  const e = this.querySelector(".range");
3430
3624
  if (!e || e === this.#t) return;
3431
- this.#r();
3625
+ this.#a();
3432
3626
  const i = Object.getOwnPropertyDescriptor(
3433
3627
  HTMLInputElement.prototype,
3434
3628
  "value"
@@ -3446,13 +3640,13 @@ function pe() {
3446
3640
  }
3447
3641
  }), this.#t = e;
3448
3642
  }
3449
- #r() {
3643
+ #a() {
3450
3644
  this.#t && (delete this.#t.value, this.#t = void 0);
3451
3645
  }
3452
3646
  }
3453
3647
  customElements.define(J, t);
3454
3648
  }
3455
- const Li = {
3649
+ const Ai = {
3456
3650
  name: "range",
3457
3651
  description: "Use `range` to let users pick a numeric value along a scale.",
3458
3652
  output: { element: J, class: "set-range" },
@@ -3584,8 +3778,8 @@ const Li = {
3584
3778
  }
3585
3779
  ]
3586
3780
  }
3587
- }, tt = "set-sidebar", ce = "(min-width: 68em)", B = "Collapse sidebar", ut = "Open sidebar";
3588
- function ue(t, n) {
3781
+ }, tt = "set-sidebar", ge = "(min-width: 68em)", O = "Collapse sidebar", ut = "Open sidebar";
3782
+ function be(t, n) {
3589
3783
  return `<div data-part="close">${mt({
3590
3784
  appearance: "text",
3591
3785
  icon: "panel-left",
@@ -3597,21 +3791,21 @@ function ue(t, n) {
3597
3791
  type: "button"
3598
3792
  })}</div>`;
3599
3793
  }
3600
- function he({
3794
+ function ve({
3601
3795
  aboveNotebook: t = "persistent",
3602
3796
  buttonSize: n = "md",
3603
3797
  children: e,
3604
- collapseLabel: i = B,
3798
+ collapseLabel: i = O,
3605
3799
  footer: r,
3606
3800
  header: a,
3607
3801
  id: o,
3608
3802
  surface: d,
3609
- triggerLabel: s = ut
3803
+ triggerLabel: l = ut
3610
3804
  }) {
3611
- const p = o.trim(), l = i.trim() || B, c = s.trim() || ut;
3805
+ const p = o.trim(), s = i.trim() || O, c = l.trim() || ut;
3612
3806
  if (!p)
3613
3807
  throw new Error("id must be a non-empty string.");
3614
- if (!V(p))
3808
+ if (!H(p))
3615
3809
  throw new Error(
3616
3810
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
3617
3811
  );
@@ -3642,7 +3836,7 @@ function he({
3642
3836
  attrs: {
3643
3837
  class: "set-sidebar",
3644
3838
  "data-above-notebook": t,
3645
- "data-collapse-label": l !== B ? l : void 0,
3839
+ "data-collapse-label": s !== O ? s : void 0,
3646
3840
  "data-button-size": n,
3647
3841
  id: p
3648
3842
  },
@@ -3686,10 +3880,10 @@ function he({
3686
3880
  ]
3687
3881
  };
3688
3882
  }
3689
- function Ci(t) {
3690
- return m(he(t));
3883
+ function Ti(t) {
3884
+ return m(ve(t));
3691
3885
  }
3692
- function me() {
3886
+ function fe() {
3693
3887
  if (customElements.get(tt)) return;
3694
3888
  class t extends HTMLElement {
3695
3889
  #t;
@@ -3708,10 +3902,10 @@ function me() {
3708
3902
  close() {
3709
3903
  this.#b(!1);
3710
3904
  }
3711
- #d() {
3905
+ #r() {
3712
3906
  return this.querySelector(".sidebar");
3713
3907
  }
3714
- #r() {
3908
+ #a() {
3715
3909
  return this.querySelector(
3716
3910
  '[data-part="close"] .set-button'
3717
3911
  );
@@ -3727,29 +3921,29 @@ function me() {
3727
3921
  #u() {
3728
3922
  return this.hasAttribute("data-collapsed");
3729
3923
  }
3730
- #a() {
3924
+ #o() {
3731
3925
  const e = this.getAttribute("data-above-notebook");
3732
3926
  return e === "collapsible" || e === "overlay" ? e : "persistent";
3733
3927
  }
3734
3928
  #l() {
3735
- const e = this.#d();
3929
+ const e = this.#r();
3736
3930
  if (!e || e.querySelector('[data-part="close"]')) return;
3737
- const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") || B, a = this.getAttribute("data-button-size") ?? "md";
3931
+ const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") || O, a = this.getAttribute("data-button-size") ?? "md";
3738
3932
  i?.insertAdjacentHTML(
3739
3933
  "beforeend",
3740
- ue(r, a)
3934
+ be(r, a)
3741
3935
  );
3742
3936
  }
3743
- #o() {
3937
+ #d() {
3744
3938
  this.querySelector('[data-part="close"]')?.remove();
3745
3939
  }
3746
3940
  #h() {
3747
- const e = this.#r();
3941
+ const e = this.#a();
3748
3942
  if (e) {
3749
3943
  e.focus();
3750
3944
  return;
3751
3945
  }
3752
- this.#d()?.focus();
3946
+ this.#r()?.focus();
3753
3947
  }
3754
3948
  #k() {
3755
3949
  return this.#t?.matches ?? !1;
@@ -3762,7 +3956,7 @@ function me() {
3762
3956
  this.toggleAttribute("data-open", i), this.toggleAttribute("data-collapsed", e), r?.setAttribute("aria-expanded", i ? "true" : "false");
3763
3957
  }
3764
3958
  #g() {
3765
- const e = this.#a();
3959
+ const e = this.#o();
3766
3960
  if (this.#k()) {
3767
3961
  if (e === "overlay") {
3768
3962
  this.#l(), this.#p({ collapsed: !1, open: !1 }), this.#m(!1);
@@ -3775,13 +3969,13 @@ function me() {
3775
3969
  }), this.#m(!1);
3776
3970
  return;
3777
3971
  }
3778
- this.#o(), this.#p({ collapsed: !1, open: !0 }), this.#m(!1);
3972
+ this.#d(), this.#p({ collapsed: !1, open: !0 }), this.#m(!1);
3779
3973
  return;
3780
3974
  }
3781
3975
  this.#l(), this.#p({ collapsed: !1, open: !1 }), this.#m(!1);
3782
3976
  }
3783
3977
  #b(e) {
3784
- const i = this.#a();
3978
+ const i = this.#o();
3785
3979
  if (this.#k()) {
3786
3980
  if (i === "persistent") {
3787
3981
  this.#p({ collapsed: !1, open: !0 }), this.#m(!1);
@@ -3812,7 +4006,7 @@ function me() {
3812
4006
  }
3813
4007
  #f() {
3814
4008
  const e = this.ownerDocument.defaultView;
3815
- e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(ce), this.#n = () => {
4009
+ e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(ge), this.#n = () => {
3816
4010
  this.#g();
3817
4011
  }, this.#t.addEventListener("change", this.#n), this.#g()), this.#e = (i) => {
3818
4012
  const r = i.target;
@@ -3822,7 +4016,7 @@ function me() {
3822
4016
  return;
3823
4017
  }
3824
4018
  if (r.closest('[data-part="close"] .set-button')) {
3825
- if (this.#k() && this.#a() === "collapsible") {
4019
+ if (this.#k() && this.#o() === "collapsible") {
3826
4020
  this.#b(this.#u());
3827
4021
  return;
3828
4022
  }
@@ -3841,7 +4035,7 @@ function me() {
3841
4035
  }
3842
4036
  customElements.define(tt, t);
3843
4037
  }
3844
- const Mi = {
4038
+ const _i = {
3845
4039
  name: "sidebar",
3846
4040
  description: "Use `sidebar` for a side panel alongside main content.",
3847
4041
  output: {
@@ -3875,7 +4069,7 @@ const Mi = {
3875
4069
  type: { kind: "html" }
3876
4070
  },
3877
4071
  collapseLabel: {
3878
- default: B,
4072
+ default: O,
3879
4073
  description: "Accessible label for the collapse button.",
3880
4074
  type: { kind: "string" }
3881
4075
  },
@@ -3932,7 +4126,7 @@ const Mi = {
3932
4126
  of: {
3933
4127
  kind: "when-equals",
3934
4128
  prop: "collapseLabel",
3935
- to: B
4129
+ to: O
3936
4130
  }
3937
4131
  }
3938
4132
  ]
@@ -3966,7 +4160,7 @@ const Mi = {
3966
4160
  ]
3967
4161
  }
3968
4162
  }, et = "set-video";
3969
- function ke({
4163
+ function ye({
3970
4164
  autoPlay: t,
3971
4165
  controls: n,
3972
4166
  fit: e = "intrinsic",
@@ -3975,12 +4169,12 @@ function ke({
3975
4169
  loop: a,
3976
4170
  muted: o,
3977
4171
  playsInline: d,
3978
- poster: s,
4172
+ poster: l,
3979
4173
  preload: p,
3980
- src: l,
4174
+ src: s,
3981
4175
  width: c
3982
4176
  }) {
3983
- const h = v(r), b = l.trim(), S = s?.trim();
4177
+ const h = v(r), b = s.trim(), w = l?.trim();
3984
4178
  if (!b)
3985
4179
  throw new Error("src must be a non-empty string.");
3986
4180
  const f = {
@@ -3994,7 +4188,7 @@ function ke({
3994
4188
  loop: !!a,
3995
4189
  muted: !!o,
3996
4190
  playsinline: !!d,
3997
- poster: S || void 0,
4191
+ poster: w || void 0,
3998
4192
  preload: p,
3999
4193
  src: b,
4000
4194
  width: c ? String(c) : void 0
@@ -4012,11 +4206,11 @@ function ke({
4012
4206
  children: [f]
4013
4207
  };
4014
4208
  }
4015
- function qi(t) {
4016
- return m(ke(t));
4209
+ function Di(t) {
4210
+ return m(ye(t));
4017
4211
  }
4018
- const ge = "(prefers-reduced-motion: reduce)";
4019
- function be() {
4212
+ const we = "(prefers-reduced-motion: reduce)";
4213
+ function Se() {
4020
4214
  if (customElements.get(et)) return;
4021
4215
  class t extends HTMLElement {
4022
4216
  #t = !1;
@@ -4026,7 +4220,7 @@ function be() {
4026
4220
  const e = this.querySelector("video");
4027
4221
  if (!e || (this.#t ||= e.hasAttribute("autoplay"), !this.#t)) return;
4028
4222
  const i = this.ownerDocument.defaultView;
4029
- !i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(ge), this.#i = () => {
4223
+ !i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(we), this.#i = () => {
4030
4224
  this.#n();
4031
4225
  }, this.#e.addEventListener("change", this.#i), this.#n());
4032
4226
  }
@@ -4041,7 +4235,7 @@ function be() {
4041
4235
  }
4042
4236
  customElements.define(et, t);
4043
4237
  }
4044
- const Ii = {
4238
+ const Vi = {
4045
4239
  name: "video",
4046
4240
  description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
4047
4241
  output: { element: et, class: "set-video" },
@@ -4169,54 +4363,54 @@ const Ii = {
4169
4363
  ]
4170
4364
  }
4171
4365
  };
4172
- function ve(t) {
4366
+ function xe(t) {
4173
4367
  return t ? /[A-Za-z]/.test(t) : !1;
4174
4368
  }
4175
- function fe(t) {
4369
+ function Ee(t) {
4176
4370
  return /^[a-z]/.test(t);
4177
4371
  }
4178
- function H(t) {
4372
+ function B(t) {
4179
4373
  const n = t.charAt(0);
4180
- return ve(n) ? n : void 0;
4374
+ return xe(n) ? n : void 0;
4181
4375
  }
4182
- function ye(t) {
4183
- const n = O(t);
4376
+ function ze(t) {
4377
+ const n = P(t);
4184
4378
  if (!n) return;
4185
- const e = n.split(" "), i = H(e[0]);
4379
+ const e = n.split(" "), i = B(e[0]);
4186
4380
  if (!i) return;
4187
4381
  const r = [i.toUpperCase()];
4188
4382
  if (e.length === 1)
4189
4383
  return r[0];
4190
- const a = e.slice(1).find(fe);
4384
+ const a = e.slice(1).find(Ee);
4191
4385
  if (a) {
4192
- const d = H(a);
4386
+ const d = B(a);
4193
4387
  return d ? `${r[0]}${d}` : void 0;
4194
4388
  }
4195
4389
  if (e.length === 2) {
4196
- const d = H(e[1]);
4390
+ const d = B(e[1]);
4197
4391
  if (!d) return;
4198
4392
  r.push(d);
4199
- const s = e[1].split("-").filter(Boolean);
4200
- if (s.length === 2) {
4201
- const p = H(s[1]);
4393
+ const l = e[1].split("-").filter(Boolean);
4394
+ if (l.length === 2) {
4395
+ const p = B(l[1]);
4202
4396
  p && r.push(p);
4203
4397
  }
4204
4398
  return r.slice(0, 3).join("");
4205
4399
  }
4206
4400
  if (e.length === 3) {
4207
- const d = H(e[1]), s = H(e[2]);
4208
- return !d || !s ? void 0 : (r.push(d, s), r.slice(0, 3).join(""));
4401
+ const d = B(e[1]), l = B(e[2]);
4402
+ return !d || !l ? void 0 : (r.push(d, l), r.slice(0, 3).join(""));
4209
4403
  }
4210
- const o = H(e.at(-1) || "");
4404
+ const o = B(e.at(-1) || "");
4211
4405
  if (o)
4212
4406
  return r.push(o), r.slice(0, 3).join("");
4213
4407
  }
4214
- const we = {
4408
+ const Le = {
4215
4409
  bot: "robot-1",
4216
4410
  organization: "city-6",
4217
4411
  person: "user-1",
4218
4412
  team: "member"
4219
- }, ft = [
4413
+ }, yt = [
4220
4414
  "01",
4221
4415
  "02",
4222
4416
  "03",
@@ -4227,15 +4421,15 @@ const we = {
4227
4421
  "08",
4228
4422
  "09"
4229
4423
  ];
4230
- function Se(t) {
4424
+ function Ce(t) {
4231
4425
  let n = 5381;
4232
4426
  for (const e of t)
4233
4427
  n = n * 33 ^ e.charCodeAt(0);
4234
4428
  return n >>> 0;
4235
4429
  }
4236
- function xe(t) {
4430
+ function Me(t) {
4237
4431
  if (t == null) return;
4238
- const n = O(t);
4432
+ const n = P(t);
4239
4433
  if (n) {
4240
4434
  if (n.length > 3)
4241
4435
  throw new Error("initials must normalize to 3 characters or fewer.");
@@ -4244,26 +4438,26 @@ function xe(t) {
4244
4438
  return n;
4245
4439
  }
4246
4440
  }
4247
- function Ee({
4441
+ function qe({
4248
4442
  alt: t,
4249
4443
  ariaHidden: n,
4250
4444
  name: e
4251
4445
  }) {
4252
4446
  if (!n)
4253
- return O(t) || O(e) || "Avatar";
4447
+ return P(t) || P(e) || "Avatar";
4254
4448
  }
4255
- function ze({
4449
+ function Ie({
4256
4450
  color: t,
4257
4451
  name: n
4258
4452
  }) {
4259
4453
  if (t) return t;
4260
4454
  if (n) {
4261
- const e = Se(n) % ft.length;
4262
- return ft[e];
4455
+ const e = Ce(n) % yt.length;
4456
+ return yt[e];
4263
4457
  }
4264
4458
  return "neutral";
4265
4459
  }
4266
- function Le({
4460
+ function Ae({
4267
4461
  alt: t,
4268
4462
  ariaHidden: n,
4269
4463
  color: e,
@@ -4272,27 +4466,27 @@ function Le({
4272
4466
  initials: a,
4273
4467
  name: o,
4274
4468
  size: d = "md",
4275
- src: s
4469
+ src: l
4276
4470
  }) {
4277
- const p = v(r), l = xe(a), c = O(o), h = O(s), b = Ee({
4471
+ const p = v(r), s = Me(a), c = P(o), h = P(l), b = qe({
4278
4472
  alt: t,
4279
4473
  ariaHidden: n,
4280
4474
  name: c
4281
- }), S = l || ye(c), f = !!h, E = ze({
4475
+ }), w = s || ze(c), f = !!h, z = Ie({
4282
4476
  color: e,
4283
4477
  name: c
4284
4478
  }), q = {
4285
4479
  "aria-hidden": n ? "true" : void 0,
4286
4480
  "aria-label": !n && !f ? b : void 0,
4287
4481
  class: "set-avatar",
4288
- "data-color": E === "neutral" ? void 0 : E,
4482
+ "data-color": z === "neutral" ? void 0 : z,
4289
4483
  "data-entity": i === "person" ? void 0 : i,
4290
4484
  "data-size": d,
4291
4485
  id: p,
4292
4486
  role: !n && !f ? "img" : void 0
4293
4487
  };
4294
- let w;
4295
- return f ? w = {
4488
+ let x;
4489
+ return f ? x = {
4296
4490
  kind: "element",
4297
4491
  tag: "img",
4298
4492
  attrs: {
@@ -4301,19 +4495,19 @@ function Le({
4301
4495
  src: h
4302
4496
  },
4303
4497
  children: []
4304
- } : S ? w = {
4498
+ } : w ? x = {
4305
4499
  kind: "element",
4306
4500
  tag: "span",
4307
4501
  attrs: { class: "initials" },
4308
- children: [{ kind: "text", value: S }]
4309
- } : w = {
4502
+ children: [{ kind: "text", value: w }]
4503
+ } : x = {
4310
4504
  kind: "element",
4311
4505
  tag: "span",
4312
4506
  attrs: { class: "icon-wrapper" },
4313
4507
  children: [
4314
- P({
4508
+ R({
4315
4509
  ariaHidden: !0,
4316
- name: we[i],
4510
+ name: Le[i],
4317
4511
  size: "fill"
4318
4512
  })
4319
4513
  ]
@@ -4321,13 +4515,13 @@ function Le({
4321
4515
  kind: "element",
4322
4516
  tag: "span",
4323
4517
  attrs: q,
4324
- children: [w]
4518
+ children: [x]
4325
4519
  };
4326
4520
  }
4327
- function Ti(t) {
4328
- return m(Le(t));
4521
+ function Hi(t) {
4522
+ return m(Ae(t));
4329
4523
  }
4330
- const Ai = {
4524
+ const Ni = {
4331
4525
  name: "avatar",
4332
4526
  description: "Use `avatar` to visually represent a person, team, or entity.",
4333
4527
  output: { element: "span", class: "set-avatar" },
@@ -4434,7 +4628,7 @@ const Ai = {
4434
4628
  ]
4435
4629
  }
4436
4630
  };
4437
- function Ce({
4631
+ function Te({
4438
4632
  floating: t,
4439
4633
  id: n,
4440
4634
  label: e,
@@ -4455,10 +4649,10 @@ function Ce({
4455
4649
  children: [{ kind: "text", value: e }]
4456
4650
  };
4457
4651
  }
4458
- function _i(t) {
4459
- return m(Ce(t));
4652
+ function Bi(t) {
4653
+ return m(Te(t));
4460
4654
  }
4461
- const Di = {
4655
+ const Oi = {
4462
4656
  name: "badge",
4463
4657
  description: "Use `badge` to annotate content with a short label.",
4464
4658
  output: { element: "span", class: "set-badge" },
@@ -4536,10 +4730,10 @@ function it({
4536
4730
  measured: a,
4537
4731
  monospaced: o,
4538
4732
  responsive: d,
4539
- size: s = "md",
4733
+ size: l = "md",
4540
4734
  tone: p = "default"
4541
4735
  }) {
4542
- const l = v(i), c = n === "p" ? "p" : "span", h = c === "p", b = h ? t ?? "start" : void 0;
4736
+ const s = v(i), c = n === "p" ? "p" : "span", h = c === "p", b = h ? t ?? "start" : void 0;
4543
4737
  return {
4544
4738
  kind: "element",
4545
4739
  tag: c,
@@ -4550,17 +4744,17 @@ function it({
4550
4744
  "data-measured": h ? a ?? !0 : void 0,
4551
4745
  "data-monospaced": o,
4552
4746
  "data-responsive": d,
4553
- "data-size": s,
4747
+ "data-size": l,
4554
4748
  "data-tone": p === "muted" ? "muted" : void 0,
4555
- id: l
4749
+ id: s
4556
4750
  },
4557
4751
  children: [{ kind: "raw", html: e }]
4558
4752
  };
4559
4753
  }
4560
- function Vi(t) {
4754
+ function Pi(t) {
4561
4755
  return m(it(t));
4562
4756
  }
4563
- const Hi = {
4757
+ const Ri = {
4564
4758
  name: "text",
4565
4759
  description: "Use `text` for inline or paragraph body copy.",
4566
4760
  output: {
@@ -4684,7 +4878,7 @@ const Hi = {
4684
4878
  ]
4685
4879
  }
4686
4880
  };
4687
- function Me({
4881
+ function _e({
4688
4882
  align: t = "start",
4689
4883
  attribution: n,
4690
4884
  id: e,
@@ -4734,10 +4928,10 @@ function Me({
4734
4928
  ]
4735
4929
  };
4736
4930
  }
4737
- function Ni(t) {
4738
- return m(Me(t));
4931
+ function Wi(t) {
4932
+ return m(_e(t));
4739
4933
  }
4740
- const Bi = {
4934
+ const Ui = {
4741
4935
  name: "blockquote",
4742
4936
  description: "Use `blockquote` to display a quote with attribution.",
4743
4937
  output: { element: "figure", class: "set-blockquote" },
@@ -4806,7 +5000,7 @@ const Bi = {
4806
5000
  ]
4807
5001
  }
4808
5002
  };
4809
- function qe({
5003
+ function De({
4810
5004
  background: t = "default",
4811
5005
  border: n,
4812
5006
  children: e,
@@ -4815,7 +5009,7 @@ function qe({
4815
5009
  paddingInline: a = "md",
4816
5010
  radius: o,
4817
5011
  responsive: d,
4818
- surface: s
5012
+ surface: l
4819
5013
  }) {
4820
5014
  const p = v(i);
4821
5015
  return {
@@ -4825,7 +5019,7 @@ function qe({
4825
5019
  class: "set-box",
4826
5020
  "data-background": t === "default" ? void 0 : t,
4827
5021
  "data-border": n,
4828
- "data-set-surface": s,
5022
+ "data-set-surface": l,
4829
5023
  "data-padding-block": r,
4830
5024
  "data-padding-inline": a,
4831
5025
  "data-radius": o,
@@ -4835,10 +5029,10 @@ function qe({
4835
5029
  children: e ? [{ kind: "raw", html: e }] : []
4836
5030
  };
4837
5031
  }
4838
- function Oi(t) {
4839
- return m(qe(t));
5032
+ function $i(t) {
5033
+ return m(De(t));
4840
5034
  }
4841
- const Pi = {
5035
+ const Gi = {
4842
5036
  name: "box",
4843
5037
  description: "Use `box` to inset content.",
4844
5038
  output: { element: "div", class: "set-box" },
@@ -4951,7 +5145,7 @@ const Pi = {
4951
5145
  ]
4952
5146
  }
4953
5147
  };
4954
- function Ie({
5148
+ function Ve({
4955
5149
  description: t,
4956
5150
  headingLevel: n,
4957
5151
  href: e,
@@ -4960,20 +5154,20 @@ function Ie({
4960
5154
  surface: a,
4961
5155
  title: o
4962
5156
  }) {
4963
- const d = v(i), s = n ? `h${n}` : "div", p = e ? [
5157
+ const d = v(i), l = n ? `h${n}` : "div", p = e ? [
4964
5158
  {
4965
5159
  kind: "element",
4966
5160
  tag: "a",
4967
5161
  attrs: { href: e },
4968
5162
  children: [{ kind: "text", value: o }]
4969
5163
  }
4970
- ] : [{ kind: "text", value: o }], l = r ? [{ kind: "raw", html: r }] : [];
4971
- r && e && l.push({
5164
+ ] : [{ kind: "text", value: o }], s = r ? [{ kind: "raw", html: r }] : [];
5165
+ r && e && s.push({
4972
5166
  kind: "element",
4973
5167
  tag: "span",
4974
5168
  attrs: { class: "icon-wrapper" },
4975
5169
  children: [
4976
- P({
5170
+ R({
4977
5171
  ariaHidden: !0,
4978
5172
  mirrored: "rtl",
4979
5173
  name: "arrow-right",
@@ -4990,7 +5184,7 @@ function Ie({
4990
5184
  },
4991
5185
  {
4992
5186
  kind: "element",
4993
- tag: s,
5187
+ tag: l,
4994
5188
  attrs: { class: "title" },
4995
5189
  children: p
4996
5190
  },
@@ -5005,7 +5199,7 @@ function Ie({
5005
5199
  kind: "element",
5006
5200
  tag: "p",
5007
5201
  attrs: { class: "note" },
5008
- children: l
5202
+ children: s
5009
5203
  }), {
5010
5204
  kind: "element",
5011
5205
  tag: "div",
@@ -5017,10 +5211,10 @@ function Ie({
5017
5211
  children: c
5018
5212
  };
5019
5213
  }
5020
- function Ri(t) {
5021
- return m(Ie(t));
5214
+ function Zi(t) {
5215
+ return m(Ve(t));
5022
5216
  }
5023
- const Wi = {
5217
+ const Fi = {
5024
5218
  name: "card",
5025
5219
  description: "Use `card` to display a summary for a single topic.",
5026
5220
  output: {
@@ -5088,7 +5282,7 @@ const Wi = {
5088
5282
  ]
5089
5283
  }
5090
5284
  };
5091
- function Te({
5285
+ function He({
5092
5286
  checked: t,
5093
5287
  description: n,
5094
5288
  disabled: e,
@@ -5097,13 +5291,13 @@ function Te({
5097
5291
  label: a,
5098
5292
  name: o,
5099
5293
  required: d,
5100
- size: s = "md",
5294
+ size: l = "md",
5101
5295
  value: p
5102
5296
  }) {
5103
- const l = v(i), c = n?.trim();
5104
- if (c && !l)
5297
+ const s = v(i), c = n?.trim();
5298
+ if (c && !s)
5105
5299
  throw new Error("id must be provided when description is provided.");
5106
- const h = c ? `${l}-description` : void 0, b = !!e, f = [
5300
+ const h = c ? `${s}-description` : void 0, b = !!e, f = [
5107
5301
  {
5108
5302
  kind: "element",
5109
5303
  tag: "label",
@@ -5118,7 +5312,7 @@ function Te({
5118
5312
  checked: !!t,
5119
5313
  class: "checkbox",
5120
5314
  disabled: b,
5121
- id: l,
5315
+ id: s,
5122
5316
  name: o || void 0,
5123
5317
  required: !!d,
5124
5318
  type: "checkbox",
@@ -5143,14 +5337,14 @@ function Te({
5143
5337
  }), {
5144
5338
  kind: "element",
5145
5339
  tag: "div",
5146
- attrs: { class: "set-checkbox", "data-size": s },
5340
+ attrs: { class: "set-checkbox", "data-size": l },
5147
5341
  children: f
5148
5342
  };
5149
5343
  }
5150
- function Ui(t) {
5151
- return m(Te(t));
5344
+ function ji(t) {
5345
+ return m(He(t));
5152
5346
  }
5153
- const $i = {
5347
+ const Ki = {
5154
5348
  name: "checkbox",
5155
5349
  description: "Use `checkbox` to let users toggle a single option on or off.",
5156
5350
  output: { element: "div", class: "set-checkbox" },
@@ -5280,7 +5474,7 @@ const $i = {
5280
5474
  ]
5281
5475
  }
5282
5476
  };
5283
- function Ae({
5477
+ function Ne({
5284
5478
  children: t,
5285
5479
  gutter: n = "default",
5286
5480
  id: e,
@@ -5299,10 +5493,10 @@ function Ae({
5299
5493
  children: t ? [{ kind: "raw", html: t }] : []
5300
5494
  };
5301
5495
  }
5302
- function Gi(t) {
5303
- return m(Ae(t));
5496
+ function Xi(t) {
5497
+ return m(Ne(t));
5304
5498
  }
5305
- const Zi = {
5499
+ const Qi = {
5306
5500
  name: "container",
5307
5501
  description: "Use `container` to wrap page-level content.",
5308
5502
  output: { element: "div", class: "set-container" },
@@ -5359,7 +5553,7 @@ const Zi = {
5359
5553
  ]
5360
5554
  }
5361
5555
  };
5362
- function _e({
5556
+ function Be({
5363
5557
  children: t,
5364
5558
  id: n,
5365
5559
  open: e,
@@ -5387,7 +5581,7 @@ function _e({
5387
5581
  tag: "span",
5388
5582
  attrs: { class: "marker" },
5389
5583
  children: [
5390
- P({
5584
+ R({
5391
5585
  ariaHidden: !0,
5392
5586
  name: "chevron-right",
5393
5587
  size: "sm"
@@ -5411,10 +5605,10 @@ function _e({
5411
5605
  ]
5412
5606
  };
5413
5607
  }
5414
- function Fi(t) {
5415
- return m(_e(t));
5608
+ function Yi(t) {
5609
+ return m(Be(t));
5416
5610
  }
5417
- const ji = {
5611
+ const Ji = {
5418
5612
  name: "details",
5419
5613
  description: "Use `details` to let users expand and collapse a section of content.",
5420
5614
  output: { element: "details", class: "set-details" },
@@ -5473,7 +5667,7 @@ const ji = {
5473
5667
  ]
5474
5668
  }
5475
5669
  };
5476
- function De({
5670
+ function Oe({
5477
5671
  id: t,
5478
5672
  orientation: n = "horizontal",
5479
5673
  tone: e = "default"
@@ -5492,10 +5686,10 @@ function De({
5492
5686
  children: []
5493
5687
  };
5494
5688
  }
5495
- function Ki(t = {}) {
5496
- return m(De(t));
5689
+ function tn(t = {}) {
5690
+ return m(Oe(t));
5497
5691
  }
5498
- const Xi = {
5692
+ const en = {
5499
5693
  name: "divider",
5500
5694
  description: "Use `divider` to separate sections with a rule.",
5501
5695
  output: {
@@ -5557,7 +5751,7 @@ const Xi = {
5557
5751
  ]
5558
5752
  }
5559
5753
  };
5560
- function It({
5754
+ function Tt({
5561
5755
  children: t,
5562
5756
  description: n,
5563
5757
  disabled: e,
@@ -5566,14 +5760,14 @@ function It({
5566
5760
  legend: a,
5567
5761
  inlineSize: o = "full"
5568
5762
  }) {
5569
- const d = n?.trim(), s = i.trim();
5570
- if (!s)
5763
+ const d = n?.trim(), l = i.trim();
5764
+ if (!l)
5571
5765
  throw new Error("id must be a non-empty string.");
5572
- if (!V(s))
5766
+ if (!H(l))
5573
5767
  throw new Error(
5574
5768
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
5575
5769
  );
5576
- const p = d ? `${s}-description` : void 0, l = !!e, c = !l && !!r, h = [
5770
+ const p = d ? `${l}-description` : void 0, s = !!e, c = !s && !!r, h = [
5577
5771
  {
5578
5772
  kind: "element",
5579
5773
  tag: "legend",
@@ -5594,16 +5788,16 @@ function It({
5594
5788
  "aria-invalid": c ? "true" : void 0,
5595
5789
  class: "set-fieldset",
5596
5790
  "data-inline-size": o === "fit" ? "fit" : void 0,
5597
- disabled: l,
5598
- id: s
5791
+ disabled: s,
5792
+ id: l
5599
5793
  },
5600
5794
  children: h
5601
5795
  };
5602
5796
  }
5603
- function Qi(t) {
5604
- return m(It(t));
5797
+ function nn(t) {
5798
+ return m(Tt(t));
5605
5799
  }
5606
- const Yi = {
5800
+ const rn = {
5607
5801
  name: "fieldset",
5608
5802
  description: "Use `fieldset` to group related form controls under a legend.",
5609
5803
  output: { element: "fieldset", class: "set-fieldset" },
@@ -5691,7 +5885,7 @@ const Yi = {
5691
5885
  ]
5692
5886
  }
5693
5887
  };
5694
- function Ve({
5888
+ function Pe({
5695
5889
  align: t = "start",
5696
5890
  caption: n,
5697
5891
  children: e,
@@ -5727,10 +5921,10 @@ function Ve({
5727
5921
  ]
5728
5922
  };
5729
5923
  }
5730
- function Ji(t) {
5731
- return m(Ve(t));
5924
+ function an(t) {
5925
+ return m(Pe(t));
5732
5926
  }
5733
- const tn = {
5927
+ const on = {
5734
5928
  name: "figure",
5735
5929
  description: "Use `figure` to present media with a caption.",
5736
5930
  output: { element: "figure", class: "set-figure" },
@@ -5799,11 +5993,11 @@ const tn = {
5799
5993
  }
5800
5994
  ]
5801
5995
  }
5802
- }, T = (t) => {
5996
+ }, _ = (t) => {
5803
5997
  if (t !== void 0)
5804
5998
  return String(t);
5805
5999
  };
5806
- function He({
6000
+ function Re({
5807
6001
  children: t,
5808
6002
  gap: n = "default",
5809
6003
  id: e
@@ -5827,10 +6021,10 @@ function He({
5827
6021
  ]
5828
6022
  };
5829
6023
  }
5830
- function en(t) {
5831
- return m(He(t));
6024
+ function dn(t) {
6025
+ return m(Re(t));
5832
6026
  }
5833
- function Ne({
6027
+ function We({
5834
6028
  align: t,
5835
6029
  children: n,
5836
6030
  colSpan: e,
@@ -5839,16 +6033,16 @@ function Ne({
5839
6033
  colStart: a,
5840
6034
  colStartNarrow: o,
5841
6035
  colStartWide: d,
5842
- id: s,
6036
+ id: l,
5843
6037
  justify: p,
5844
- rowSpan: l,
6038
+ rowSpan: s,
5845
6039
  rowSpanNarrow: c,
5846
6040
  rowSpanWide: h,
5847
6041
  rowStart: b,
5848
- rowStartNarrow: S,
6042
+ rowStartNarrow: w,
5849
6043
  rowStartWide: f
5850
6044
  }) {
5851
- const E = v(s);
6045
+ const z = v(l);
5852
6046
  return {
5853
6047
  kind: "element",
5854
6048
  tag: "div",
@@ -5856,27 +6050,27 @@ function Ne({
5856
6050
  class: "set-grid-item",
5857
6051
  "data-align": t,
5858
6052
  "data-justify": p,
5859
- "data-col-span-narrow": T(i),
5860
- "data-col-start-narrow": T(o),
5861
- "data-col-span": T(e),
5862
- "data-col-start": T(a),
5863
- "data-col-span-wide": T(r),
5864
- "data-col-start-wide": T(d),
5865
- "data-row-span-narrow": T(c),
5866
- "data-row-start-narrow": T(S),
5867
- "data-row-span": T(l),
5868
- "data-row-start": T(b),
5869
- "data-row-span-wide": T(h),
5870
- "data-row-start-wide": T(f),
5871
- id: E
6053
+ "data-col-span-narrow": _(i),
6054
+ "data-col-start-narrow": _(o),
6055
+ "data-col-span": _(e),
6056
+ "data-col-start": _(a),
6057
+ "data-col-span-wide": _(r),
6058
+ "data-col-start-wide": _(d),
6059
+ "data-row-span-narrow": _(c),
6060
+ "data-row-start-narrow": _(w),
6061
+ "data-row-span": _(s),
6062
+ "data-row-start": _(b),
6063
+ "data-row-span-wide": _(h),
6064
+ "data-row-start-wide": _(f),
6065
+ id: z
5872
6066
  },
5873
6067
  children: n ? [{ kind: "raw", html: n }] : []
5874
6068
  };
5875
6069
  }
5876
- function nn(t) {
5877
- return m(Ne(t));
6070
+ function sn(t) {
6071
+ return m(We(t));
5878
6072
  }
5879
- const rn = {
6073
+ const ln = {
5880
6074
  name: "grid",
5881
6075
  description: "Use `grid` to lay out content in a 12-column responsive grid.",
5882
6076
  output: { element: "div", class: "set-grid" },
@@ -5917,12 +6111,12 @@ const rn = {
5917
6111
  }
5918
6112
  ]
5919
6113
  }
5920
- }, A = {
6114
+ }, D = {
5921
6115
  kind: "number",
5922
6116
  min: 1,
5923
6117
  max: 12,
5924
6118
  integer: !0
5925
- }, an = {
6119
+ }, pn = {
5926
6120
  name: "grid-item",
5927
6121
  description: "Use `grid-item` to place content within a `grid` layout.",
5928
6122
  output: { element: "div", class: "set-grid-item" },
@@ -5942,11 +6136,11 @@ const rn = {
5942
6136
  },
5943
6137
  colSpan: {
5944
6138
  description: "Columns spanned at the default breakpoint.",
5945
- type: A
6139
+ type: D
5946
6140
  },
5947
6141
  colStart: {
5948
6142
  description: "Starting column at the default breakpoint.",
5949
- type: A
6143
+ type: D
5950
6144
  },
5951
6145
  id: {
5952
6146
  description: "DOM id.",
@@ -5954,43 +6148,43 @@ const rn = {
5954
6148
  },
5955
6149
  rowSpan: {
5956
6150
  description: "Rows spanned at the default breakpoint.",
5957
- type: A
6151
+ type: D
5958
6152
  },
5959
6153
  rowSpanNarrow: {
5960
6154
  description: "Rows spanned at the narrow breakpoint.",
5961
- type: A
6155
+ type: D
5962
6156
  },
5963
6157
  rowSpanWide: {
5964
6158
  description: "Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
5965
- type: A
6159
+ type: D
5966
6160
  },
5967
6161
  rowStart: {
5968
6162
  description: "Starting row at the default breakpoint.",
5969
- type: A
6163
+ type: D
5970
6164
  },
5971
6165
  rowStartNarrow: {
5972
6166
  description: "Starting row at the narrow breakpoint.",
5973
- type: A
6167
+ type: D
5974
6168
  },
5975
6169
  rowStartWide: {
5976
6170
  description: "Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",
5977
- type: A
6171
+ type: D
5978
6172
  },
5979
6173
  colSpanNarrow: {
5980
6174
  description: "Columns spanned at the narrow breakpoint.",
5981
- type: A
6175
+ type: D
5982
6176
  },
5983
6177
  colStartNarrow: {
5984
6178
  description: "Starting column at the narrow breakpoint.",
5985
- type: A
6179
+ type: D
5986
6180
  },
5987
6181
  colSpanWide: {
5988
6182
  description: "Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
5989
- type: A
6183
+ type: D
5990
6184
  },
5991
6185
  colStartWide: {
5992
6186
  description: "Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",
5993
- type: A
6187
+ type: D
5994
6188
  }
5995
6189
  },
5996
6190
  events: {},
@@ -6089,7 +6283,7 @@ const rn = {
6089
6283
  ]
6090
6284
  }
6091
6285
  };
6092
- function Be({
6286
+ function Ue({
6093
6287
  align: t = "start",
6094
6288
  id: n,
6095
6289
  level: e,
@@ -6113,10 +6307,10 @@ function Be({
6113
6307
  children: [{ kind: "text", value: o }]
6114
6308
  };
6115
6309
  }
6116
- function on(t) {
6117
- return m(Be(t));
6310
+ function cn(t) {
6311
+ return m(Ue(t));
6118
6312
  }
6119
- const dn = {
6313
+ const un = {
6120
6314
  name: "heading",
6121
6315
  description: "Use `heading` to render heading text with consistent type.",
6122
6316
  output: {
@@ -6211,7 +6405,7 @@ const dn = {
6211
6405
  ]
6212
6406
  }
6213
6407
  };
6214
- function Oe({
6408
+ function $e({
6215
6409
  align: t = "center",
6216
6410
  as: n = "div",
6217
6411
  children: e,
@@ -6235,10 +6429,10 @@ function Oe({
6235
6429
  children: e ? [{ kind: "raw", html: e }] : []
6236
6430
  };
6237
6431
  }
6238
- function sn(t) {
6239
- return m(Oe(t));
6432
+ function hn(t) {
6433
+ return m($e(t));
6240
6434
  }
6241
- const ln = {
6435
+ const mn = {
6242
6436
  name: "inline",
6243
6437
  description: "Use `inline` to lay out content in a horizontal row.",
6244
6438
  output: {
@@ -6323,7 +6517,7 @@ const ln = {
6323
6517
  ]
6324
6518
  }
6325
6519
  };
6326
- function Pe({
6520
+ function Ge({
6327
6521
  autocomplete: t,
6328
6522
  description: n,
6329
6523
  disabled: e,
@@ -6332,22 +6526,22 @@ function Pe({
6332
6526
  label: a,
6333
6527
  name: o,
6334
6528
  pattern: d,
6335
- readOnly: s,
6529
+ readOnly: l,
6336
6530
  required: p,
6337
- size: l = "md",
6531
+ size: s = "md",
6338
6532
  spellcheck: c,
6339
6533
  type: h = "text",
6340
6534
  value: b,
6341
- inlineSize: S = "full"
6535
+ inlineSize: w = "full"
6342
6536
  }) {
6343
- const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = d?.trim(), C = b;
6537
+ const f = i.trim(), z = n?.trim(), q = t === !1 ? !1 : t?.trim(), x = o?.trim(), k = d?.trim(), C = b;
6344
6538
  if (!f)
6345
6539
  throw new Error("id must be a non-empty string.");
6346
- if (!V(f))
6540
+ if (!H(f))
6347
6541
  throw new Error(
6348
6542
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
6349
6543
  );
6350
- const x = E ? `${f}-description` : void 0, z = h === "numeric", _ = z ? "text" : h, D = k || (z ? "^[0-9]*$" : void 0), N = c === void 0 && z ? !1 : c, M = !!e, U = !M && !!s, $ = [
6544
+ const E = z ? `${f}-description` : void 0, S = h === "numeric", I = S ? "text" : h, A = k || (S ? "^[0-9]*$" : void 0), V = c === void 0 && S ? !1 : c, M = !!e, N = !M && !!l, $ = [
6351
6545
  {
6352
6546
  kind: "element",
6353
6547
  tag: "label",
@@ -6358,44 +6552,44 @@ function Pe({
6358
6552
  kind: "element",
6359
6553
  tag: "input",
6360
6554
  attrs: {
6361
- "aria-describedby": x,
6362
- "aria-invalid": !M && !U && !!r ? "true" : void 0,
6555
+ "aria-describedby": E,
6556
+ "aria-invalid": !M && !N && !!r ? "true" : void 0,
6363
6557
  autocomplete: q === !1 ? "off" : q || void 0,
6364
6558
  class: "input",
6365
6559
  disabled: M,
6366
6560
  id: f,
6367
- inputmode: z ? "numeric" : void 0,
6368
- name: w || void 0,
6369
- pattern: D,
6370
- readonly: U,
6561
+ inputmode: S ? "numeric" : void 0,
6562
+ name: x || void 0,
6563
+ pattern: A,
6564
+ readonly: N,
6371
6565
  required: !!p,
6372
- spellcheck: N === void 0 ? void 0 : String(N),
6373
- type: _,
6566
+ spellcheck: V === void 0 ? void 0 : String(V),
6567
+ type: I,
6374
6568
  value: C
6375
6569
  },
6376
6570
  children: []
6377
6571
  }
6378
6572
  ];
6379
- return E && $.push({
6573
+ return z && $.push({
6380
6574
  kind: "element",
6381
6575
  tag: "p",
6382
- attrs: { class: "description", id: x },
6383
- children: [{ kind: "text", value: E }]
6576
+ attrs: { class: "description", id: E },
6577
+ children: [{ kind: "text", value: z }]
6384
6578
  }), {
6385
6579
  kind: "element",
6386
6580
  tag: "div",
6387
6581
  attrs: {
6388
6582
  class: "set-input",
6389
- "data-size": l,
6390
- "data-inline-size": S === "fit" ? "fit" : void 0
6583
+ "data-size": s,
6584
+ "data-inline-size": w === "fit" ? "fit" : void 0
6391
6585
  },
6392
6586
  children: $
6393
6587
  };
6394
6588
  }
6395
- function pn(t) {
6396
- return m(Pe(t));
6589
+ function kn(t) {
6590
+ return m(Ge(t));
6397
6591
  }
6398
- const cn = {
6592
+ const gn = {
6399
6593
  name: "input",
6400
6594
  description: "Use `input` to collect a single line of text from users.",
6401
6595
  output: { element: "div", class: "set-input" },
@@ -6590,7 +6784,7 @@ const cn = {
6590
6784
  }
6591
6785
  ]
6592
6786
  }
6593
- }, Re = "0 0 6714.6 1200", We = "0 0 600 1200", Ue = [
6787
+ }, Ze = "0 0 6714.6 1200", Fe = "0 0 600 1200", je = [
6594
6788
  { x: 0, y: 0 },
6595
6789
  { x: 300, y: 0 },
6596
6790
  { x: 150, y: 300 },
@@ -6599,11 +6793,11 @@ const cn = {
6599
6793
  { x: 300, y: 600 },
6600
6794
  { x: 150, y: 900 },
6601
6795
  { x: 450, y: 900 }
6602
- ], $e = "M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180", Ge = 1163, Tt = () => ({
6796
+ ], Ke = "M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180", Xe = 1163, _t = () => ({
6603
6797
  kind: "element",
6604
6798
  tag: "g",
6605
6799
  attrs: { class: "mark" },
6606
- children: Ue.map(({ x: t, y: n }) => ({
6800
+ children: je.map(({ x: t, y: n }) => ({
6607
6801
  kind: "element",
6608
6802
  tag: "rect",
6609
6803
  attrs: {
@@ -6614,19 +6808,19 @@ const cn = {
6614
6808
  },
6615
6809
  children: []
6616
6810
  }))
6617
- }), Ze = () => ({
6811
+ }), Qe = () => ({
6618
6812
  kind: "element",
6619
6813
  tag: "g",
6620
- attrs: { class: "word", transform: `translate(${Ge} 0)` },
6814
+ attrs: { class: "word", transform: `translate(${Xe} 0)` },
6621
6815
  children: [
6622
6816
  {
6623
6817
  kind: "element",
6624
6818
  tag: "path",
6625
- attrs: { d: $e },
6819
+ attrs: { d: Ke },
6626
6820
  children: []
6627
6821
  }
6628
6822
  ]
6629
- }), At = (t, n) => ({
6823
+ }), Dt = (t, n) => ({
6630
6824
  kind: "element",
6631
6825
  tag: "svg",
6632
6826
  attrs: {
@@ -6636,13 +6830,13 @@ const cn = {
6636
6830
  },
6637
6831
  children: n
6638
6832
  });
6639
- function Fe() {
6640
- return At(Re, [Tt(), Ze()]);
6833
+ function Ye() {
6834
+ return Dt(Ze, [_t(), Qe()]);
6641
6835
  }
6642
- function je() {
6643
- return At(We, [Tt()]);
6836
+ function Je() {
6837
+ return Dt(Fe, [_t()]);
6644
6838
  }
6645
- function Ke({
6839
+ function ti({
6646
6840
  animated: t,
6647
6841
  id: n,
6648
6842
  label: e,
@@ -6650,7 +6844,7 @@ function Ke({
6650
6844
  tone: r = "default",
6651
6845
  variant: a = "primary"
6652
6846
  }) {
6653
- const o = v(n), d = !!t && (a === "primary" || a === "graphic"), s = [
6847
+ const o = v(n), d = !!t && (a === "primary" || a === "graphic"), l = [
6654
6848
  {
6655
6849
  kind: "element",
6656
6850
  tag: "span",
@@ -6658,8 +6852,8 @@ function Ke({
6658
6852
  children: [{ kind: "text", value: e }]
6659
6853
  }
6660
6854
  ];
6661
- return d && s.push(
6662
- a === "graphic" ? je() : Fe()
6855
+ return d && l.push(
6856
+ a === "graphic" ? Je() : Ye()
6663
6857
  ), {
6664
6858
  kind: "element",
6665
6859
  tag: "div",
@@ -6671,13 +6865,13 @@ function Ke({
6671
6865
  "data-variant": a === "primary" ? void 0 : a,
6672
6866
  id: o
6673
6867
  },
6674
- children: s
6868
+ children: l
6675
6869
  };
6676
6870
  }
6677
- function un(t) {
6678
- return m(Ke(t));
6871
+ function bn(t) {
6872
+ return m(ti(t));
6679
6873
  }
6680
- const hn = {
6874
+ const vn = {
6681
6875
  name: "logo",
6682
6876
  description: "Use `logo` to display the brand mark.",
6683
6877
  output: { element: "div", class: "set-logo" },
@@ -6765,7 +6959,7 @@ const hn = {
6765
6959
  ]
6766
6960
  }
6767
6961
  };
6768
- function Xe({
6962
+ function ei({
6769
6963
  banner: t,
6770
6964
  centerMain: n,
6771
6965
  children: e,
@@ -6774,20 +6968,20 @@ function Xe({
6774
6968
  headerBorder: a,
6775
6969
  headerSize: o = "md",
6776
6970
  id: d,
6777
- stickyHeader: s
6971
+ stickyHeader: l
6778
6972
  }) {
6779
- const p = v(d), l = [];
6780
- return t && l.push({ kind: "raw", html: t }), l.push({
6973
+ const p = v(d), s = [];
6974
+ return t && s.push({ kind: "raw", html: t }), s.push({
6781
6975
  kind: "element",
6782
6976
  tag: "header",
6783
6977
  attrs: { class: "header" },
6784
6978
  children: [{ kind: "raw", html: r }]
6785
- }), l.push({
6979
+ }), s.push({
6786
6980
  kind: "element",
6787
6981
  tag: "main",
6788
6982
  attrs: { class: "main" },
6789
6983
  children: e ? [{ kind: "raw", html: e }] : []
6790
- }), l.push({
6984
+ }), s.push({
6791
6985
  kind: "element",
6792
6986
  tag: "footer",
6793
6987
  attrs: { class: "footer" },
@@ -6800,16 +6994,16 @@ function Xe({
6800
6994
  "data-center-main": n,
6801
6995
  "data-header-border": a,
6802
6996
  "data-header-size": o,
6803
- "data-sticky-header": s,
6997
+ "data-sticky-header": l,
6804
6998
  id: p
6805
6999
  },
6806
- children: l
7000
+ children: s
6807
7001
  };
6808
7002
  }
6809
- function mn(t) {
6810
- return m(Xe(t));
7003
+ function fn(t) {
7004
+ return m(ei(t));
6811
7005
  }
6812
- const kn = {
7006
+ const yn = {
6813
7007
  name: "page",
6814
7008
  description: "Use `page` as the primary layout for header, main, and footer regions.",
6815
7009
  output: { element: "div", class: "set-page" },
@@ -6899,7 +7093,7 @@ const kn = {
6899
7093
  ]
6900
7094
  }
6901
7095
  };
6902
- function Qe({
7096
+ function ii({
6903
7097
  children: t,
6904
7098
  id: n,
6905
7099
  padding: e = "md",
@@ -6918,10 +7112,10 @@ function Qe({
6918
7112
  children: t ? [{ kind: "raw", html: t }] : []
6919
7113
  };
6920
7114
  }
6921
- function gn(t) {
6922
- return m(Qe(t));
7115
+ function wn(t) {
7116
+ return m(ii(t));
6923
7117
  }
6924
- const bn = {
7118
+ const Sn = {
6925
7119
  name: "panel",
6926
7120
  description: "Use `panel` to group related content in a contained region.",
6927
7121
  output: { element: "div", class: "set-panel" },
@@ -6972,7 +7166,7 @@ const bn = {
6972
7166
  ]
6973
7167
  }
6974
7168
  };
6975
- function Ye({
7169
+ function ni({
6976
7170
  children: t,
6977
7171
  id: n,
6978
7172
  size: e = "md",
@@ -6993,10 +7187,10 @@ function Ye({
6993
7187
  children: t ? [{ kind: "raw", html: t }] : []
6994
7188
  };
6995
7189
  }
6996
- function vn(t = {}) {
6997
- return m(Ye(t));
7190
+ function xn(t = {}) {
7191
+ return m(ni(t));
6998
7192
  }
6999
- const fn = {
7193
+ const En = {
7000
7194
  name: "pattern",
7001
7195
  description: "Use `pattern` to render repeated visual language components behind content.",
7002
7196
  output: { element: "div", class: "set-pattern" },
@@ -7063,15 +7257,15 @@ const fn = {
7063
7257
  ]
7064
7258
  }
7065
7259
  };
7066
- function yn(t) {
7067
- return Qt({
7260
+ function zn(t) {
7261
+ return ie({
7068
7262
  ...t,
7069
7263
  alt: "",
7070
7264
  fit: "cover",
7071
7265
  priority: !0
7072
7266
  });
7073
7267
  }
7074
- function Je({
7268
+ function ri({
7075
7269
  children: t,
7076
7270
  contentTheme: n,
7077
7271
  id: e,
@@ -7103,10 +7297,10 @@ function Je({
7103
7297
  children: d
7104
7298
  };
7105
7299
  }
7106
- function wn(t) {
7107
- return m(Je(t));
7300
+ function Ln(t) {
7301
+ return m(ri(t));
7108
7302
  }
7109
- const Sn = {
7303
+ const Cn = {
7110
7304
  name: "poster",
7111
7305
  description: "Use `poster` to layer content over background media.",
7112
7306
  output: { element: "div", class: "set-poster" },
@@ -7177,7 +7371,7 @@ const Sn = {
7177
7371
  ]
7178
7372
  }
7179
7373
  };
7180
- function ti({
7374
+ function ai({
7181
7375
  align: t = "start",
7182
7376
  children: n,
7183
7377
  hangingPunctuation: e,
@@ -7187,7 +7381,7 @@ function ti({
7187
7381
  monospaced: o,
7188
7382
  responsive: d
7189
7383
  }) {
7190
- const s = v(i);
7384
+ const l = v(i);
7191
7385
  return {
7192
7386
  kind: "element",
7193
7387
  tag: "div",
@@ -7199,15 +7393,15 @@ function ti({
7199
7393
  "data-measured": a,
7200
7394
  "data-monospaced": o,
7201
7395
  "data-responsive": d,
7202
- id: s
7396
+ id: l
7203
7397
  },
7204
7398
  children: [{ kind: "raw", html: n }]
7205
7399
  };
7206
7400
  }
7207
- function xn(t) {
7208
- return m(ti(t));
7401
+ function Mn(t) {
7402
+ return m(ai(t));
7209
7403
  }
7210
- const En = {
7404
+ const qn = {
7211
7405
  name: "prose",
7212
7406
  description: "Use `prose` to style rich-text markup.",
7213
7407
  output: { element: "div", class: "set-prose" },
@@ -7301,7 +7495,7 @@ const En = {
7301
7495
  ]
7302
7496
  }
7303
7497
  };
7304
- function ei({
7498
+ function oi({
7305
7499
  description: t,
7306
7500
  disabled: n,
7307
7501
  id: e,
@@ -7310,14 +7504,14 @@ function ei({
7310
7504
  legend: a,
7311
7505
  name: o,
7312
7506
  orientation: d = "vertical",
7313
- required: s,
7507
+ required: l,
7314
7508
  size: p = "md",
7315
- value: l
7509
+ value: s
7316
7510
  }) {
7317
- const c = e.trim(), h = o.trim(), b = l?.trim();
7511
+ const c = e.trim(), h = o.trim(), b = s?.trim();
7318
7512
  if (!c)
7319
7513
  throw new Error("id must be a non-empty string.");
7320
- if (!V(c))
7514
+ if (!H(c))
7321
7515
  throw new Error(
7322
7516
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
7323
7517
  );
@@ -7325,23 +7519,23 @@ function ei({
7325
7519
  throw new Error("name must be a non-empty string.");
7326
7520
  if (r.length < 2)
7327
7521
  throw new Error("radios must include at least 2 options.");
7328
- const S = r.map((k, C) => {
7329
- const x = k.value.trim(), z = k.label.trim(), _ = k.description?.trim();
7330
- if (!x)
7522
+ const w = r.map((k, C) => {
7523
+ const E = k.value.trim(), S = k.label.trim(), I = k.description?.trim();
7524
+ if (!E)
7331
7525
  throw new Error(`radios[${C}].value must be non-empty.`);
7332
- if (!z)
7526
+ if (!S)
7333
7527
  throw new Error(`radios[${C}].label must be non-empty.`);
7334
7528
  return {
7335
- description: _,
7529
+ description: I,
7336
7530
  disabled: !!k.disabled,
7337
- label: z,
7338
- value: x
7531
+ label: S,
7532
+ value: E
7339
7533
  };
7340
7534
  });
7341
- if (new Set(S.map((k) => k.value)).size !== S.length)
7535
+ if (new Set(w.map((k) => k.value)).size !== w.length)
7342
7536
  throw new Error("radios values must be unique.");
7343
- const E = !!n, q = S.map((k) => {
7344
- const C = !!k.disabled, x = k.description ? `${c}-${k.value}-description` : void 0, z = [
7537
+ const z = !!n, q = w.map((k) => {
7538
+ const C = !!k.disabled, E = k.description ? `${c}-${k.value}-description` : void 0, S = [
7345
7539
  {
7346
7540
  kind: "element",
7347
7541
  tag: "label",
@@ -7351,12 +7545,12 @@ function ei({
7351
7545
  kind: "element",
7352
7546
  tag: "input",
7353
7547
  attrs: {
7354
- "aria-describedby": x,
7548
+ "aria-describedby": E,
7355
7549
  checked: b === k.value,
7356
7550
  class: "radio",
7357
7551
  disabled: C,
7358
7552
  name: h,
7359
- required: !!s && !E && !C,
7553
+ required: !!l && !z && !C,
7360
7554
  type: "radio",
7361
7555
  value: k.value
7362
7556
  },
@@ -7371,19 +7565,19 @@ function ei({
7371
7565
  ]
7372
7566
  }
7373
7567
  ];
7374
- return k.description && z.push({
7568
+ return k.description && S.push({
7375
7569
  kind: "element",
7376
7570
  tag: "p",
7377
- attrs: { class: "radio-description", id: x },
7571
+ attrs: { class: "radio-description", id: E },
7378
7572
  children: [{ kind: "text", value: k.description }]
7379
7573
  }), {
7380
7574
  kind: "element",
7381
7575
  tag: "div",
7382
7576
  attrs: { class: "radio-field" },
7383
- children: z
7577
+ children: S
7384
7578
  };
7385
7579
  });
7386
- return It({
7580
+ return Tt({
7387
7581
  children: m({
7388
7582
  kind: "element",
7389
7583
  tag: "div",
@@ -7395,16 +7589,16 @@ function ei({
7395
7589
  children: q
7396
7590
  }),
7397
7591
  description: t,
7398
- disabled: E,
7592
+ disabled: z,
7399
7593
  id: c,
7400
7594
  invalid: i,
7401
7595
  legend: a
7402
7596
  });
7403
7597
  }
7404
- function zn(t) {
7405
- return m(ei(t));
7598
+ function In(t) {
7599
+ return m(oi(t));
7406
7600
  }
7407
- const Ln = {
7601
+ const An = {
7408
7602
  name: "radios",
7409
7603
  description: "Use `radios` to let users select one option from a short list.",
7410
7604
  output: { element: "fieldset", class: "set-fieldset" },
@@ -7553,7 +7747,7 @@ const Ln = {
7553
7747
  ]
7554
7748
  }
7555
7749
  };
7556
- function ii({
7750
+ function di({
7557
7751
  appOverscrollBehavior: t,
7558
7752
  appRoot: n,
7559
7753
  brand: e = "mnsp",
@@ -7563,7 +7757,7 @@ function ii({
7563
7757
  lang: o,
7564
7758
  theme: d
7565
7759
  }) {
7566
- const s = v(a);
7760
+ const l = v(a);
7567
7761
  return {
7568
7762
  kind: "element",
7569
7763
  tag: "div",
@@ -7573,17 +7767,17 @@ function ii({
7573
7767
  "data-app-overscroll-behavior": t === "none" ? "none" : void 0,
7574
7768
  "data-set-brand": e,
7575
7769
  "data-set-theme": d,
7576
- id: s,
7770
+ id: l,
7577
7771
  lang: o === "" ? void 0 : o,
7578
7772
  dir: r
7579
7773
  },
7580
7774
  children: i ? [{ kind: "raw", html: i }] : []
7581
7775
  };
7582
7776
  }
7583
- function Cn(t) {
7584
- return m(ii(t));
7777
+ function Tn(t) {
7778
+ return m(di(t));
7585
7779
  }
7586
- const Mn = {
7780
+ const _n = {
7587
7781
  name: "root",
7588
7782
  description: "Mandatory top-level `root` wrapper for the Set system.",
7589
7783
  output: { element: "div", class: "set" },
@@ -7676,125 +7870,7 @@ const Mn = {
7676
7870
  ]
7677
7871
  }
7678
7872
  };
7679
- function ni({
7680
- id: t,
7681
- label: n,
7682
- size: e = "md",
7683
- tone: i = "default"
7684
- } = {}) {
7685
- const r = v(t), o = [
7686
- {
7687
- kind: "element",
7688
- tag: "svg",
7689
- attrs: {
7690
- "aria-hidden": "true",
7691
- xmlns: "http://www.w3.org/2000/svg",
7692
- viewBox: "0 0 600 1200",
7693
- fill: "currentColor"
7694
- },
7695
- children: [
7696
- [60, 60],
7697
- [60, 360],
7698
- [60, 660],
7699
- [60, 960],
7700
- [360, 960],
7701
- [360, 660],
7702
- [360, 360],
7703
- [360, 60]
7704
- ].map(([d, s]) => ({
7705
- kind: "element",
7706
- tag: "rect",
7707
- attrs: {
7708
- class: "cell",
7709
- x: String(d),
7710
- y: String(s),
7711
- width: "180",
7712
- height: "180"
7713
- },
7714
- children: []
7715
- }))
7716
- }
7717
- ];
7718
- return n && o.push({
7719
- kind: "element",
7720
- tag: "span",
7721
- attrs: { class: "visually-hidden" },
7722
- children: [{ kind: "text", value: n }]
7723
- }), {
7724
- kind: "element",
7725
- tag: "span",
7726
- attrs: {
7727
- class: "set-spinner",
7728
- "data-size": e,
7729
- "data-tone": i === "brand" ? "brand" : void 0,
7730
- id: r,
7731
- role: n ? "status" : void 0
7732
- },
7733
- children: o
7734
- };
7735
- }
7736
- function qn(t = {}) {
7737
- return m(ni(t));
7738
- }
7739
- const In = {
7740
- name: "spinner",
7741
- description: "Use `spinner` to indicate loading or in-progress state.",
7742
- output: { element: "span", class: "set-spinner" },
7743
- content: { kind: "text", prop: "label" },
7744
- props: {
7745
- id: {
7746
- description: "DOM id.",
7747
- type: { kind: "string" }
7748
- },
7749
- label: {
7750
- description: "Accessible status label announced to assistive tech.",
7751
- type: { kind: "string" }
7752
- },
7753
- size: {
7754
- default: "md",
7755
- description: "Size variant.",
7756
- type: {
7757
- kind: "enum",
7758
- values: ["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "fill"]
7759
- }
7760
- },
7761
- tone: {
7762
- default: "default",
7763
- description: "Semantic tone.",
7764
- type: { kind: "enum", values: ["default", "brand"] }
7765
- }
7766
- },
7767
- events: {},
7768
- rules: {
7769
- attributes: [
7770
- {
7771
- target: { on: "host" },
7772
- attribute: "data-size",
7773
- condition: { kind: "always" },
7774
- value: { kind: "prop", prop: "size" }
7775
- },
7776
- {
7777
- target: { on: "host" },
7778
- attribute: "data-tone",
7779
- condition: { kind: "when-equals", prop: "tone", to: "brand" },
7780
- value: { kind: "literal", text: "brand" }
7781
- },
7782
- {
7783
- target: { on: "host" },
7784
- attribute: "role",
7785
- condition: { kind: "when-non-empty", prop: "label" },
7786
- value: { kind: "literal", text: "status" }
7787
- },
7788
- {
7789
- target: { on: "host" },
7790
- attribute: "id",
7791
- condition: { kind: "when-non-empty", prop: "id" },
7792
- value: { kind: "prop", prop: "id" }
7793
- }
7794
- ]
7795
- }
7796
- };
7797
- function ri({
7873
+ function si({
7798
7874
  align: t = "stretch",
7799
7875
  as: n = "div",
7800
7876
  children: e,
@@ -7816,10 +7892,10 @@ function ri({
7816
7892
  children: e ? [{ kind: "raw", html: e }] : []
7817
7893
  };
7818
7894
  }
7819
- function Tn(t) {
7820
- return m(ri(t));
7895
+ function Dn(t) {
7896
+ return m(si(t));
7821
7897
  }
7822
- const An = {
7898
+ const Vn = {
7823
7899
  name: "stack",
7824
7900
  description: "Use `stack` to lay out content in a vertical column.",
7825
7901
  output: {
@@ -7890,7 +7966,7 @@ const An = {
7890
7966
  ]
7891
7967
  }
7892
7968
  };
7893
- function ai({
7969
+ function li({
7894
7970
  children: t,
7895
7971
  contentTheme: n,
7896
7972
  id: e,
@@ -7909,10 +7985,10 @@ function ai({
7909
7985
  children: [{ kind: "raw", html: t }]
7910
7986
  };
7911
7987
  }
7912
- function _n(t) {
7913
- return m(ai(t));
7988
+ function Hn(t) {
7989
+ return m(li(t));
7914
7990
  }
7915
- const Dn = {
7991
+ const Nn = {
7916
7992
  name: "surface",
7917
7993
  description: "Use `surface` to set a colour context for nested content.",
7918
7994
  output: { element: "div", class: "set-surface" },
@@ -7964,7 +8040,7 @@ const Dn = {
7964
8040
  ]
7965
8041
  }
7966
8042
  };
7967
- function oi({
8043
+ function pi({
7968
8044
  checked: t,
7969
8045
  description: n,
7970
8046
  disabled: e,
@@ -7974,10 +8050,10 @@ function oi({
7974
8050
  size: o = "md",
7975
8051
  value: d
7976
8052
  }) {
7977
- const s = v(i), p = n?.trim();
7978
- if (p && !s)
8053
+ const l = v(i), p = n?.trim();
8054
+ if (p && !l)
7979
8055
  throw new Error("id must be provided when description is provided.");
7980
- const l = p ? `${s}-description` : void 0, c = [
8056
+ const s = p ? `${l}-description` : void 0, c = [
7981
8057
  {
7982
8058
  kind: "element",
7983
8059
  tag: "label",
@@ -7987,11 +8063,11 @@ function oi({
7987
8063
  kind: "element",
7988
8064
  tag: "input",
7989
8065
  attrs: {
7990
- "aria-describedby": l,
8066
+ "aria-describedby": s,
7991
8067
  checked: !!t,
7992
8068
  class: "switch",
7993
8069
  disabled: !!e,
7994
- id: s,
8070
+ id: l,
7995
8071
  name: a || void 0,
7996
8072
  role: "switch",
7997
8073
  type: "checkbox",
@@ -8011,7 +8087,7 @@ function oi({
8011
8087
  return p && c.push({
8012
8088
  kind: "element",
8013
8089
  tag: "p",
8014
- attrs: { class: "description", id: l },
8090
+ attrs: { class: "description", id: s },
8015
8091
  children: [{ kind: "text", value: p }]
8016
8092
  }), {
8017
8093
  kind: "element",
@@ -8020,10 +8096,10 @@ function oi({
8020
8096
  children: c
8021
8097
  };
8022
8098
  }
8023
- function Vn(t) {
8024
- return m(oi(t));
8099
+ function Bn(t) {
8100
+ return m(pi(t));
8025
8101
  }
8026
- const Hn = {
8102
+ const On = {
8027
8103
  name: "switch",
8028
8104
  description: "Use `switch` to let users instantly toggle a setting on or off.",
8029
8105
  output: { element: "div", class: "set-switch" },
@@ -8131,7 +8207,7 @@ const Hn = {
8131
8207
  ]
8132
8208
  }
8133
8209
  };
8134
- function di({
8210
+ function ci({
8135
8211
  autocomplete: t,
8136
8212
  description: n,
8137
8213
  disabled: e,
@@ -8140,24 +8216,24 @@ function di({
8140
8216
  label: a,
8141
8217
  name: o,
8142
8218
  readOnly: d,
8143
- required: s,
8219
+ required: l,
8144
8220
  resize: p = "vertical",
8145
- rows: l = 2,
8221
+ rows: s = 2,
8146
8222
  size: c = "md",
8147
8223
  spellcheck: h,
8148
8224
  value: b,
8149
- inlineSize: S = "full"
8225
+ inlineSize: w = "full"
8150
8226
  }) {
8151
- const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = b;
8227
+ const f = i.trim(), z = n?.trim(), q = t === !1 ? !1 : t?.trim(), x = o?.trim(), k = b;
8152
8228
  if (!f)
8153
8229
  throw new Error("id must be a non-empty string.");
8154
- if (!V(f))
8230
+ if (!H(f))
8155
8231
  throw new Error(
8156
8232
  "id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
8157
8233
  );
8158
- if (!Number.isInteger(l) || l < 2)
8234
+ if (!Number.isInteger(s) || s < 2)
8159
8235
  throw new Error("rows must be an integer greater than or equal to 2.");
8160
- const C = E ? `${f}-description` : void 0, x = !!e, z = !x && !!d, D = [
8236
+ const C = z ? `${f}-description` : void 0, E = !!e, S = !E && !!d, A = [
8161
8237
  {
8162
8238
  kind: "element",
8163
8239
  tag: "label",
@@ -8169,25 +8245,25 @@ function di({
8169
8245
  tag: "textarea",
8170
8246
  attrs: {
8171
8247
  "aria-describedby": C,
8172
- "aria-invalid": !x && !z && !!r ? "true" : void 0,
8248
+ "aria-invalid": !E && !S && !!r ? "true" : void 0,
8173
8249
  autocomplete: q === !1 ? "off" : q || void 0,
8174
8250
  class: "textarea",
8175
- disabled: x,
8251
+ disabled: E,
8176
8252
  id: f,
8177
- name: w || void 0,
8178
- readonly: z,
8179
- required: !!s,
8180
- rows: String(l),
8253
+ name: x || void 0,
8254
+ readonly: S,
8255
+ required: !!l,
8256
+ rows: String(s),
8181
8257
  spellcheck: h === void 0 ? void 0 : String(h)
8182
8258
  },
8183
8259
  children: [{ kind: "text", value: k || "" }]
8184
8260
  }
8185
8261
  ];
8186
- return E && D.push({
8262
+ return z && A.push({
8187
8263
  kind: "element",
8188
8264
  tag: "p",
8189
8265
  attrs: { class: "description", id: C },
8190
- children: [{ kind: "text", value: E }]
8266
+ children: [{ kind: "text", value: z }]
8191
8267
  }), {
8192
8268
  kind: "element",
8193
8269
  tag: "div",
@@ -8195,15 +8271,15 @@ function di({
8195
8271
  class: "set-textarea",
8196
8272
  "data-resize": p === "none" ? "none" : void 0,
8197
8273
  "data-size": c,
8198
- "data-inline-size": S === "fit" ? "fit" : void 0
8274
+ "data-inline-size": w === "fit" ? "fit" : void 0
8199
8275
  },
8200
- children: D
8276
+ children: A
8201
8277
  };
8202
8278
  }
8203
- function Nn(t) {
8204
- return m(di(t));
8279
+ function Pn(t) {
8280
+ return m(ci(t));
8205
8281
  }
8206
- const Bn = {
8282
+ const Rn = {
8207
8283
  name: "textarea",
8208
8284
  description: "Use `textarea` to collect multiple lines of text from users.",
8209
8285
  output: { element: "div", class: "set-textarea" },
@@ -8392,168 +8468,169 @@ const Bn = {
8392
8468
  ]
8393
8469
  }
8394
8470
  };
8395
- function On() {
8396
- Gt(), Kt(), Yt(), ie(), re(), se(), pe(), me(), be();
8471
+ function Wn() {
8472
+ Xt(), te(), ne(), de(), le(), he(), ke(), fe(), Se();
8397
8473
  }
8398
8474
  export {
8399
- xt as SET_ALERT_EVENT_BEFORE_DISMISS,
8400
- Et as SET_ALERT_EVENT_DISMISS,
8401
- ui as SET_ALERT_SPEC,
8475
+ zt as SET_ALERT_EVENT_BEFORE_DISMISS,
8476
+ Lt as SET_ALERT_EVENT_DISMISS,
8477
+ bi as SET_ALERT_SPEC,
8402
8478
  Z as SET_ALERT_TAG_NAME,
8403
- Ai as SET_AVATAR_SPEC,
8404
- Di as SET_BADGE_SPEC,
8405
- Lt as SET_BANNER_EVENT_BEFORE_DISMISS,
8406
- Ct as SET_BANNER_EVENT_DISMISS,
8407
- gi as SET_BANNER_SPEC,
8479
+ Ni as SET_AVATAR_SPEC,
8480
+ Oi as SET_BADGE_SPEC,
8481
+ Mt as SET_BANNER_EVENT_BEFORE_DISMISS,
8482
+ qt as SET_BANNER_EVENT_DISMISS,
8483
+ wi as SET_BANNER_SPEC,
8408
8484
  F as SET_BANNER_TAG_NAME,
8409
- Bi as SET_BLOCKQUOTE_SPEC,
8410
- Pi as SET_BOX_SPEC,
8411
- pi as SET_BUTTON_SPEC,
8412
- Wi as SET_CARD_SPEC,
8413
- $i as SET_CHECKBOX_SPEC,
8414
- Zi as SET_CONTAINER_SPEC,
8415
- ji as SET_DETAILS_SPEC,
8416
- Xi as SET_DIVIDER_SPEC,
8417
- Si as SET_EXPANDER_SPEC,
8418
- Yi as SET_FIELDSET_SPEC,
8419
- tn as SET_FIGURE_SPEC,
8420
- an as SET_GRID_ITEM_SPEC,
8421
- rn as SET_GRID_SPEC,
8422
- dn as SET_HEADING_SPEC,
8423
- si as SET_ICON_NAMES,
8424
- li as SET_ICON_SPEC,
8425
- bi as SET_IMAGE_SPEC,
8485
+ Ui as SET_BLOCKQUOTE_SPEC,
8486
+ Gi as SET_BOX_SPEC,
8487
+ ki as SET_BUTTON_SPEC,
8488
+ Fi as SET_CARD_SPEC,
8489
+ Ki as SET_CHECKBOX_SPEC,
8490
+ Qi as SET_CONTAINER_SPEC,
8491
+ Ji as SET_DETAILS_SPEC,
8492
+ en as SET_DIVIDER_SPEC,
8493
+ Ci as SET_EXPANDER_SPEC,
8494
+ rn as SET_FIELDSET_SPEC,
8495
+ on as SET_FIGURE_SPEC,
8496
+ pn as SET_GRID_ITEM_SPEC,
8497
+ ln as SET_GRID_SPEC,
8498
+ un as SET_HEADING_SPEC,
8499
+ ui as SET_ICON_NAMES,
8500
+ hi as SET_ICON_SPEC,
8501
+ Si as SET_IMAGE_SPEC,
8426
8502
  K as SET_IMAGE_TAG_NAME,
8427
- ln as SET_INLINE_SPEC,
8428
- cn as SET_INPUT_SPEC,
8429
- Mt as SET_LIGHTSWITCH_EVENT_CHANGE,
8430
- fi as SET_LIGHTSWITCH_SPEC,
8503
+ mn as SET_INLINE_SPEC,
8504
+ gn as SET_INPUT_SPEC,
8505
+ It as SET_LIGHTSWITCH_EVENT_CHANGE,
8506
+ Ei as SET_LIGHTSWITCH_SPEC,
8431
8507
  st as SET_LIGHTSWITCH_STORAGE_KEY,
8432
8508
  X as SET_LIGHTSWITCH_TAG_NAME,
8433
- mi as SET_LINK_SPEC,
8434
- hn as SET_LOGO_SPEC,
8435
- qt as SET_MENU_EVENT_CHOOSE,
8436
- wi as SET_MENU_SPEC,
8509
+ fi as SET_LINK_SPEC,
8510
+ vn as SET_LOGO_SPEC,
8511
+ At as SET_MENU_EVENT_CHOOSE,
8512
+ Li as SET_MENU_SPEC,
8437
8513
  Q as SET_MENU_TAG_NAME,
8438
- Ei as SET_NAV_SPEC,
8514
+ qi as SET_NAV_SPEC,
8439
8515
  Y as SET_NAV_TAG_NAME,
8440
- kn as SET_PAGE_SPEC,
8441
- bn as SET_PANEL_SPEC,
8442
- fn as SET_PATTERN_SPEC,
8443
- Sn as SET_POSTER_SPEC,
8444
- En as SET_PROSE_SPEC,
8445
- Ln as SET_RADIOS_SPEC,
8446
- Li as SET_RANGE_SPEC,
8516
+ yn as SET_PAGE_SPEC,
8517
+ Sn as SET_PANEL_SPEC,
8518
+ En as SET_PATTERN_SPEC,
8519
+ Cn as SET_POSTER_SPEC,
8520
+ qn as SET_PROSE_SPEC,
8521
+ An as SET_RADIOS_SPEC,
8522
+ Ai as SET_RANGE_SPEC,
8447
8523
  J as SET_RANGE_TAG_NAME,
8448
- Mn as SET_ROOT_SPEC,
8449
- Mi as SET_SIDEBAR_SPEC,
8524
+ _n as SET_ROOT_SPEC,
8525
+ _i as SET_SIDEBAR_SPEC,
8450
8526
  tt as SET_SIDEBAR_TAG_NAME,
8451
- In as SET_SPINNER_SPEC,
8452
- An as SET_STACK_SPEC,
8453
- Dn as SET_SURFACE_SPEC,
8454
- Hn as SET_SWITCH_SPEC,
8455
- Bn as SET_TEXTAREA_SPEC,
8456
- Hi as SET_TEXT_SPEC,
8457
- Ii as SET_VIDEO_SPEC,
8527
+ mi as SET_SPINNER_SPEC,
8528
+ Vn as SET_STACK_SPEC,
8529
+ Nn as SET_SURFACE_SPEC,
8530
+ On as SET_SWITCH_SPEC,
8531
+ Rn as SET_TEXTAREA_SPEC,
8532
+ Ri as SET_TEXT_SPEC,
8533
+ Vi as SET_VIDEO_SPEC,
8458
8534
  et as SET_VIDEO_TAG_NAME,
8459
- $t as buildSetAlert,
8460
- Le as buildSetAvatar,
8461
- Ce as buildSetBadge,
8462
- jt as buildSetBanner,
8463
- Me as buildSetBlockquote,
8464
- qe as buildSetBox,
8535
+ Gt as applySetButtonActivity,
8536
+ Kt as buildSetAlert,
8537
+ Ae as buildSetAvatar,
8538
+ Te as buildSetBadge,
8539
+ Jt as buildSetBanner,
8540
+ _e as buildSetBlockquote,
8541
+ De as buildSetBox,
8465
8542
  ht as buildSetButton,
8466
- Ie as buildSetCard,
8467
- Te as buildSetCheckbox,
8468
- Ae as buildSetContainer,
8469
- _e as buildSetDetails,
8470
- De as buildSetDivider,
8471
- ae as buildSetExpander,
8472
- It as buildSetFieldset,
8473
- Ve as buildSetFigure,
8474
- He as buildSetGrid,
8475
- Ne as buildSetGridItem,
8476
- Be as buildSetHeading,
8477
- P as buildSetIcon,
8478
- Xt as buildSetImage,
8479
- Oe as buildSetInline,
8480
- Pe as buildSetInput,
8481
- ee as buildSetLightswitch,
8482
- zt as buildSetLink,
8483
- Ke as buildSetLogo,
8484
- ne as buildSetMenu,
8485
- de as buildSetNav,
8486
- Xe as buildSetPage,
8487
- Qe as buildSetPanel,
8488
- Ye as buildSetPattern,
8489
- Je as buildSetPoster,
8490
- ti as buildSetProse,
8491
- ei as buildSetRadios,
8492
- le as buildSetRange,
8493
- ii as buildSetRoot,
8494
- he as buildSetSidebar,
8495
- ni as buildSetSpinner,
8496
- ri as buildSetStack,
8497
- ai as buildSetSurface,
8498
- oi as buildSetSwitch,
8543
+ Ve as buildSetCard,
8544
+ He as buildSetCheckbox,
8545
+ Ne as buildSetContainer,
8546
+ Be as buildSetDetails,
8547
+ Oe as buildSetDivider,
8548
+ pe as buildSetExpander,
8549
+ Tt as buildSetFieldset,
8550
+ Pe as buildSetFigure,
8551
+ Re as buildSetGrid,
8552
+ We as buildSetGridItem,
8553
+ Ue as buildSetHeading,
8554
+ R as buildSetIcon,
8555
+ ee as buildSetImage,
8556
+ $e as buildSetInline,
8557
+ Ge as buildSetInput,
8558
+ oe as buildSetLightswitch,
8559
+ Ct as buildSetLink,
8560
+ ti as buildSetLogo,
8561
+ se as buildSetMenu,
8562
+ ue as buildSetNav,
8563
+ ei as buildSetPage,
8564
+ ii as buildSetPanel,
8565
+ ni as buildSetPattern,
8566
+ ri as buildSetPoster,
8567
+ ai as buildSetProse,
8568
+ oi as buildSetRadios,
8569
+ me as buildSetRange,
8570
+ di as buildSetRoot,
8571
+ ve as buildSetSidebar,
8572
+ Ut as buildSetSpinner,
8573
+ si as buildSetStack,
8574
+ li as buildSetSurface,
8575
+ pi as buildSetSwitch,
8499
8576
  it as buildSetText,
8500
- di as buildSetTextarea,
8501
- ke as buildSetVideo,
8502
- Gt as defineSetAlert,
8503
- Kt as defineSetBanner,
8504
- On as defineSetComponents,
8505
- Yt as defineSetImage,
8506
- ie as defineSetLightswitch,
8507
- re as defineSetMenu,
8508
- se as defineSetNav,
8509
- pe as defineSetRange,
8510
- me as defineSetSidebar,
8511
- be as defineSetVideo,
8512
- ye as getSetInitials,
8513
- ci as renderSetAlert,
8514
- Ti as renderSetAvatar,
8515
- _i as renderSetBadge,
8516
- ki as renderSetBanner,
8517
- Ni as renderSetBlockquote,
8518
- Oi as renderSetBox,
8577
+ ci as buildSetTextarea,
8578
+ ye as buildSetVideo,
8579
+ Xt as defineSetAlert,
8580
+ te as defineSetBanner,
8581
+ Wn as defineSetComponents,
8582
+ ne as defineSetImage,
8583
+ de as defineSetLightswitch,
8584
+ le as defineSetMenu,
8585
+ he as defineSetNav,
8586
+ ke as defineSetRange,
8587
+ fe as defineSetSidebar,
8588
+ Se as defineSetVideo,
8589
+ ze as getSetInitials,
8590
+ gi as renderSetAlert,
8591
+ Hi as renderSetAvatar,
8592
+ Bi as renderSetBadge,
8593
+ yi as renderSetBanner,
8594
+ Wi as renderSetBlockquote,
8595
+ $i as renderSetBox,
8519
8596
  mt as renderSetButton,
8520
- Ri as renderSetCard,
8521
- Ui as renderSetCheckbox,
8522
- Gi as renderSetContainer,
8523
- Fi as renderSetDetails,
8524
- Ki as renderSetDivider,
8525
- oe as renderSetExpander,
8526
- Qi as renderSetFieldset,
8527
- Ji as renderSetFigure,
8528
- en as renderSetGrid,
8529
- nn as renderSetGridItem,
8530
- on as renderSetHeading,
8531
- Pt as renderSetIcon,
8532
- Qt as renderSetImage,
8533
- sn as renderSetInline,
8534
- pn as renderSetInput,
8535
- vi as renderSetLightswitch,
8536
- hi as renderSetLink,
8537
- un as renderSetLogo,
8538
- yi as renderSetMenu,
8539
- xi as renderSetNav,
8540
- mn as renderSetPage,
8541
- gn as renderSetPanel,
8542
- vn as renderSetPattern,
8543
- wn as renderSetPoster,
8544
- yn as renderSetPosterImage,
8545
- xn as renderSetProse,
8546
- zn as renderSetRadios,
8547
- zi as renderSetRange,
8548
- Cn as renderSetRoot,
8549
- Ci as renderSetSidebar,
8550
- qn as renderSetSpinner,
8551
- Tn as renderSetStack,
8552
- _n as renderSetSurface,
8553
- Vn as renderSetSwitch,
8554
- Vi as renderSetText,
8555
- Nn as renderSetTextarea,
8556
- qi as renderSetVideo,
8597
+ Zi as renderSetCard,
8598
+ ji as renderSetCheckbox,
8599
+ Xi as renderSetContainer,
8600
+ Yi as renderSetDetails,
8601
+ tn as renderSetDivider,
8602
+ ce as renderSetExpander,
8603
+ nn as renderSetFieldset,
8604
+ an as renderSetFigure,
8605
+ dn as renderSetGrid,
8606
+ sn as renderSetGridItem,
8607
+ cn as renderSetHeading,
8608
+ Wt as renderSetIcon,
8609
+ ie as renderSetImage,
8610
+ hn as renderSetInline,
8611
+ kn as renderSetInput,
8612
+ xi as renderSetLightswitch,
8613
+ vi as renderSetLink,
8614
+ bn as renderSetLogo,
8615
+ zi as renderSetMenu,
8616
+ Mi as renderSetNav,
8617
+ fn as renderSetPage,
8618
+ wn as renderSetPanel,
8619
+ xn as renderSetPattern,
8620
+ Ln as renderSetPoster,
8621
+ zn as renderSetPosterImage,
8622
+ Mn as renderSetProse,
8623
+ In as renderSetRadios,
8624
+ Ii as renderSetRange,
8625
+ Tn as renderSetRoot,
8626
+ Ti as renderSetSidebar,
8627
+ bt as renderSetSpinner,
8628
+ Dn as renderSetStack,
8629
+ Hn as renderSetSurface,
8630
+ Bn as renderSetSwitch,
8631
+ Pi as renderSetText,
8632
+ Pn as renderSetTextarea,
8633
+ Di as renderSetVideo,
8557
8634
  m as serializeSetNode
8558
8635
  };
8559
8636
  //# sourceMappingURL=index.js.map