@ksp-gonogo/ui-kit 1.0.0-rc.38 → 1.0.0-rc.40

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.
@@ -6058,16 +6058,299 @@ function ContributionsAggregation({
6058
6058
  ] });
6059
6059
  }
6060
6060
 
6061
- // src/FilterChip.tsx
6061
+ // src/Dial.tsx
6062
+ import { bandIn as bandIn2 } from "@ksp-gonogo/sitrep-sdk";
6062
6063
  import styled17 from "styled-components";
6063
- import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
6064
+ import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
6065
+ var TRACK_THICKNESS = 6;
6066
+ var HUB_RADIUS = 3;
6067
+ var RAISED = { track: 8, hub: 4, needle: 0.92 };
6068
+ var READOUT = {
6069
+ regular: { size: 16, drop: 18 },
6070
+ large: { size: 24, drop: 32 }
6071
+ };
6072
+ function pointAt(cx, cy, r, angleDeg) {
6073
+ const a = angleDeg * Math.PI / 180;
6074
+ return { x: cx + r * Math.sin(a), y: cy - r * Math.cos(a) };
6075
+ }
6076
+ function arcPath(cx, cy, r, a0, a1) {
6077
+ const p0 = pointAt(cx, cy, r, a0);
6078
+ const p1 = pointAt(cx, cy, r, a1);
6079
+ const delta = a1 - a0;
6080
+ const largeArc = Math.abs(delta) > 180 ? 1 : 0;
6081
+ const sweepFlag = delta >= 0 ? 1 : 0;
6082
+ return `M ${p0.x.toFixed(2)} ${p0.y.toFixed(2)} A ${r} ${r} 0 ${largeArc} ${sweepFlag} ${p1.x.toFixed(2)} ${p1.y.toFixed(2)}`;
6083
+ }
6084
+ function Dial({
6085
+ value: value3,
6086
+ min,
6087
+ max,
6088
+ width = 120,
6089
+ height = 120,
6090
+ startAngle = 0,
6091
+ sweep = 360,
6092
+ wrap = false,
6093
+ zones,
6094
+ ticks,
6095
+ valueLabel,
6096
+ readout,
6097
+ format: format2,
6098
+ needleColor = "var(--color-text-primary)",
6099
+ trackColor = "var(--color-border-subtle)",
6100
+ "aria-label": ariaLabel
6101
+ }) {
6102
+ const resolved = resolveCurrency(value3);
6103
+ const { shown, held, caption, band } = resolved;
6104
+ const { anchor, tip } = useTooltip(caption);
6105
+ const current = shown?.magnitude ?? Number.NaN;
6106
+ const finite = Number.isFinite(current) ? shown : null;
6107
+ const axisMin = min.magnitude;
6108
+ const axisMax = max.magnitude;
6109
+ const span = axisMax - axisMin;
6110
+ const safe = Number.isFinite(current) ? current : axisMin;
6111
+ const display = span > 0 ? wrap ? axisMin + ((safe - axisMin) % span + span) % span : Math.max(axisMin, Math.min(axisMax, safe)) : axisMin;
6112
+ const hasFigure = finite != null;
6113
+ const face = finite == null ? null : { magnitude: wrap ? display : current, unit: finite.unit };
6114
+ const centreLabel = valueLabel ?? (face === null ? null : writeQuantity(face, { format: format2 }));
6115
+ const spoken = face === null ? NULL_DISPLAY : speakQuantity(face, { format: format2 });
6116
+ const interval = finite == null || band === null ? null : bandIn2(band, finite.unit) ?? null;
6117
+ const raised = readout !== void 0 && sweep <= 180;
6118
+ const trackThickness = raised ? RAISED.track : TRACK_THICKNESS;
6119
+ const hubRadius = raised ? RAISED.hub : HUB_RADIUS;
6120
+ const figure = readout === void 0 ? null : READOUT[readout];
6121
+ const cx = width / 2;
6122
+ const r = raised && figure !== null ? Math.min(
6123
+ (width - trackThickness) / 2,
6124
+ height - trackThickness - figure.drop
6125
+ ) : Math.min(width, height) / 2 - trackThickness - 2;
6126
+ const cy = raised ? r + trackThickness / 2 : height / 2;
6127
+ const angleOf = (v) => {
6128
+ const t = span > 0 ? (v - axisMin) / span : 0;
6129
+ return startAngle + t * sweep;
6130
+ };
6131
+ const onAxis = (q) => q.max(min).min(max);
6132
+ const onFace = (q) => angleOf(q.magnitude);
6133
+ const onSweep = (angle) => sweep !== 0 ? (angle - startAngle) / sweep : 0;
6134
+ const drawnInterval = interval !== null && standsApart(
6135
+ onSweep(angleOf(display)),
6136
+ [
6137
+ onSweep(onFace(onAxis(interval.lo))),
6138
+ onSweep(onFace(onAxis(interval.hi)))
6139
+ ],
6140
+ placedOnScale({ wraps: wrap })
6141
+ ) ? interval : null;
6142
+ const isFullCircle = sweep >= 360;
6143
+ const needle = pointAt(
6144
+ cx,
6145
+ cy,
6146
+ r * (raised ? RAISED.needle : 0.88),
6147
+ angleOf(display)
6148
+ );
6149
+ return /* @__PURE__ */ jsxs12(
6150
+ Dial__Meter,
6151
+ {
6152
+ ...figureAttributes(resolved),
6153
+ ...anchor,
6154
+ ...hasFigure ? {
6155
+ role: "meter",
6156
+ "aria-label": sayHeld(ariaLabel, caption),
6157
+ ...heldNameMarker(caption),
6158
+ "aria-valuenow": display,
6159
+ "aria-valuemin": axisMin,
6160
+ "aria-valuemax": axisMax,
6161
+ "aria-valuetext": spoken
6162
+ } : {
6163
+ /* With no value to state, the face is an image rather than a meter at its minimum. */
6164
+ role: "img",
6165
+ "aria-label": sayHeld(`${ariaLabel}: ${spoken}`, caption),
6166
+ ...heldNameMarker(caption)
6167
+ },
6168
+ children: [
6169
+ /* @__PURE__ */ jsxs12(
6170
+ "svg",
6171
+ {
6172
+ width,
6173
+ height,
6174
+ viewBox: `0 0 ${width} ${height}`,
6175
+ "aria-hidden": "true",
6176
+ style: {
6177
+ display: "block",
6178
+ fontFamily: "var(--font-family-mono)",
6179
+ maxWidth: "100%",
6180
+ height: "auto",
6181
+ // The raised figure's line box runs a few pixels past the viewBox; its glyphs sit inside it.
6182
+ overflow: raised ? "visible" : void 0
6183
+ },
6184
+ children: [
6185
+ r > 0 && (isFullCircle ? /* @__PURE__ */ jsx29(
6186
+ "circle",
6187
+ {
6188
+ cx,
6189
+ cy,
6190
+ r,
6191
+ fill: "none",
6192
+ stroke: trackColor,
6193
+ strokeWidth: trackThickness
6194
+ }
6195
+ ) : /* @__PURE__ */ jsx29(
6196
+ "path",
6197
+ {
6198
+ d: arcPath(cx, cy, r, startAngle, startAngle + sweep),
6199
+ fill: "none",
6200
+ stroke: trackColor,
6201
+ strokeWidth: trackThickness,
6202
+ strokeLinecap: "round"
6203
+ }
6204
+ )),
6205
+ r > 0 && !isFullCircle && zones?.flatMap((z) => {
6206
+ const lo = onAxis(z.from.min(z.to));
6207
+ const hi = onAxis(z.from.max(z.to));
6208
+ if (!hi.greaterThan(lo)) return [];
6209
+ return [
6210
+ // Clamped onto the axis already, so "not past the end" is "at the end".
6211
+ lo.greaterThan(min) ? null : startAngle,
6212
+ max.greaterThan(hi) ? null : startAngle + sweep
6213
+ ].flatMap((angle) => {
6214
+ if (angle === null) return [];
6215
+ const end = pointAt(cx, cy, r, angle);
6216
+ return [
6217
+ /* @__PURE__ */ jsx29(
6218
+ "circle",
6219
+ {
6220
+ "data-dial-cap": "",
6221
+ cx: end.x,
6222
+ cy: end.y,
6223
+ r: trackThickness / 2,
6224
+ fill: z.color
6225
+ },
6226
+ `cap-${z.color}-${angle}`
6227
+ )
6228
+ ];
6229
+ });
6230
+ }),
6231
+ r > 0 && zones?.map((z) => {
6232
+ const lo = onAxis(z.from.min(z.to));
6233
+ const hi = onAxis(z.from.max(z.to));
6234
+ if (!hi.greaterThan(lo)) return null;
6235
+ return /* @__PURE__ */ jsx29(
6236
+ "path",
6237
+ {
6238
+ d: arcPath(cx, cy, r, onFace(lo), onFace(hi)),
6239
+ fill: "none",
6240
+ stroke: z.color,
6241
+ strokeWidth: trackThickness,
6242
+ strokeLinecap: "butt"
6243
+ },
6244
+ `zone-${z.color}-${onFace(lo)}-${onFace(hi)}`
6245
+ );
6246
+ }),
6247
+ r > 0 && ticks?.map((tk) => {
6248
+ const at = tk.value.magnitude;
6249
+ const a = angleOf(at);
6250
+ const outer = pointAt(cx, cy, r, a);
6251
+ const inner = pointAt(cx, cy, r - trackThickness, a);
6252
+ const labelPt = pointAt(cx, cy, r - trackThickness - 8, a);
6253
+ return /* @__PURE__ */ jsxs12("g", { children: [
6254
+ /* @__PURE__ */ jsx29(
6255
+ "line",
6256
+ {
6257
+ x1: inner.x,
6258
+ y1: inner.y,
6259
+ x2: outer.x,
6260
+ y2: outer.y,
6261
+ stroke: "var(--color-text-faint)",
6262
+ strokeWidth: 1
6263
+ }
6264
+ ),
6265
+ tk.label && /* @__PURE__ */ jsx29(
6266
+ "text",
6267
+ {
6268
+ x: labelPt.x,
6269
+ y: labelPt.y,
6270
+ textAnchor: "middle",
6271
+ dominantBaseline: "middle",
6272
+ fontSize: 9,
6273
+ fill: "var(--color-text-faint)",
6274
+ children: tk.label
6275
+ }
6276
+ )
6277
+ ] }, `tick-${at}-${tk.label ?? ""}`);
6278
+ }),
6279
+ r > 0 && drawnInterval !== null && ["lo", "hi"].map((end) => {
6280
+ const a = onFace(onAxis(drawnInterval[end]));
6281
+ const inner = pointAt(cx, cy, r - trackThickness / 2, a);
6282
+ const outer = pointAt(cx, cy, r + trackThickness / 2, a);
6283
+ return /* @__PURE__ */ jsx29(
6284
+ InstrumentBound,
6285
+ {
6286
+ end,
6287
+ x1: inner.x,
6288
+ y1: inner.y,
6289
+ x2: outer.x,
6290
+ y2: outer.y
6291
+ },
6292
+ end
6293
+ );
6294
+ }),
6295
+ r > 0 && hasFigure && /* @__PURE__ */ jsxs12(Fragment10, { children: [
6296
+ /* @__PURE__ */ jsx29(
6297
+ "line",
6298
+ {
6299
+ x1: cx,
6300
+ y1: cy,
6301
+ x2: needle.x,
6302
+ y2: needle.y,
6303
+ stroke: needleColor,
6304
+ strokeWidth: 2,
6305
+ strokeLinecap: "round"
6306
+ }
6307
+ ),
6308
+ /* @__PURE__ */ jsx29("circle", { cx, cy, r: hubRadius, fill: needleColor })
6309
+ ] }),
6310
+ /* @__PURE__ */ jsxs12(
6311
+ "text",
6312
+ {
6313
+ x: cx,
6314
+ y: raised && figure !== null ? cy + figure.drop : cy + r * 0.55,
6315
+ textAnchor: "middle",
6316
+ fontSize: raised && figure !== null ? figure.size : 13,
6317
+ fontWeight: raised ? void 0 : "bold",
6318
+ fill: centreLabel === null ? "var(--color-text-muted)" : "var(--color-text-primary)",
6319
+ children: [
6320
+ centreLabel ?? NULL_DISPLAY,
6321
+ held && centreLabel !== null && /* @__PURE__ */ jsx29(
6322
+ InstrumentHeldMark,
6323
+ {
6324
+ size: raised ? 7 : 6,
6325
+ figureSize: raised && figure !== null ? figure.size : 13
6326
+ }
6327
+ )
6328
+ ]
6329
+ }
6330
+ )
6331
+ ]
6332
+ }
6333
+ ),
6334
+ tip
6335
+ ]
6336
+ }
6337
+ );
6338
+ }
6339
+ var Dial__Meter = styled17.div`
6340
+ display: block;
6341
+ max-width: 100%;
6342
+ `;
6343
+
6344
+ // src/FilterChip.tsx
6345
+ import styled18 from "styled-components";
6346
+ import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
6064
6347
  function FilterChip({
6065
6348
  label,
6066
6349
  selected,
6067
6350
  count,
6068
6351
  onToggle
6069
6352
  }) {
6070
- return /* @__PURE__ */ jsxs12(
6353
+ return /* @__PURE__ */ jsxs13(
6071
6354
  ChipButton,
6072
6355
  {
6073
6356
  type: "button",
@@ -6075,13 +6358,13 @@ function FilterChip({
6075
6358
  onClick: onToggle,
6076
6359
  "aria-pressed": selected,
6077
6360
  children: [
6078
- /* @__PURE__ */ jsx29("span", { children: label }),
6079
- count !== void 0 && /* @__PURE__ */ jsx29(Count, { children: count })
6361
+ /* @__PURE__ */ jsx30("span", { children: label }),
6362
+ count !== void 0 && /* @__PURE__ */ jsx30(Count, { children: count })
6080
6363
  ]
6081
6364
  }
6082
6365
  );
6083
6366
  }
6084
- var ChipButton = styled17.button`
6367
+ var ChipButton = styled18.button`
6085
6368
  ${fitBox("chip")}
6086
6369
  display: inline-flex;
6087
6370
  align-items: center;
@@ -6110,7 +6393,7 @@ var ChipButton = styled17.button`
6110
6393
 
6111
6394
  ${focusRing}
6112
6395
  `;
6113
- var Count = styled17.span`
6396
+ var Count = styled18.span`
6114
6397
  font-variant-numeric: tabular-nums;
6115
6398
  font-size: var(--font-size-caption);
6116
6399
  opacity: 0.75;
@@ -6118,8 +6401,8 @@ var Count = styled17.span`
6118
6401
 
6119
6402
  // src/SearchBox.tsx
6120
6403
  import { useRef as useRef6 } from "react";
6121
- import styled18 from "styled-components";
6122
- import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
6404
+ import styled19 from "styled-components";
6405
+ import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
6123
6406
  function SearchBox({
6124
6407
  value: value3,
6125
6408
  onChange,
@@ -6128,8 +6411,8 @@ function SearchBox({
6128
6411
  ...rest
6129
6412
  }) {
6130
6413
  const field = useRef6(null);
6131
- return /* @__PURE__ */ jsxs13(SearchBox__Root, { className, children: [
6132
- /* @__PURE__ */ jsx30(
6414
+ return /* @__PURE__ */ jsxs14(SearchBox__Root, { className, children: [
6415
+ /* @__PURE__ */ jsx31(
6133
6416
  SearchBox__Field,
6134
6417
  {
6135
6418
  ...rest,
@@ -6139,7 +6422,7 @@ function SearchBox({
6139
6422
  onChange: (event) => onChange(event.target.value)
6140
6423
  }
6141
6424
  ),
6142
- value3 !== "" && /* @__PURE__ */ jsx30(
6425
+ value3 !== "" && /* @__PURE__ */ jsx31(
6143
6426
  SearchBox__Clear,
6144
6427
  {
6145
6428
  type: "button",
@@ -6148,22 +6431,22 @@ function SearchBox({
6148
6431
  onChange("");
6149
6432
  field.current?.focus();
6150
6433
  },
6151
- children: /* @__PURE__ */ jsx30(CloseIcon, { size: "var(--icon-size-control)" })
6434
+ children: /* @__PURE__ */ jsx31(CloseIcon, { size: "var(--icon-size-control)" })
6152
6435
  }
6153
6436
  )
6154
6437
  ] });
6155
6438
  }
6156
- var SearchBox__Root = styled18.div`
6439
+ var SearchBox__Root = styled19.div`
6157
6440
  position: relative;
6158
6441
  display: flex;
6159
6442
  align-items: center;
6160
6443
  `;
6161
- var SearchBox__Field = styled18(Input)`
6444
+ var SearchBox__Field = styled19(Input)`
6162
6445
  && {
6163
6446
  padding-right: var(--inset-field-clearable-end);
6164
6447
  }
6165
6448
  `;
6166
- var SearchBox__Clear = styled18(IconButton)`
6449
+ var SearchBox__Clear = styled19(IconButton)`
6167
6450
  position: absolute;
6168
6451
  right: 0;
6169
6452
  display: inline-flex;
@@ -6173,7 +6456,7 @@ var SearchBox__Clear = styled18(IconButton)`
6173
6456
 
6174
6457
  // src/useRowFilter.tsx
6175
6458
  import { useId as useId4, useState as useState5 } from "react";
6176
- import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
6459
+ import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
6177
6460
  function useRowFilter({
6178
6461
  segment = "filters",
6179
6462
  label = "Search",
@@ -6195,10 +6478,10 @@ function useRowFilter({
6195
6478
  });
6196
6479
  };
6197
6480
  const needles = [...selected, typed].filter((s) => s.length > 0).map((s) => s.toLowerCase());
6198
- const control = /* @__PURE__ */ jsxs14(Stack, { gap: "related-packed", children: [
6199
- /* @__PURE__ */ jsxs14(Field, { children: [
6200
- /* @__PURE__ */ jsx31(FieldLabel, { htmlFor: searchId, children: label }),
6201
- /* @__PURE__ */ jsx31(
6481
+ const control = /* @__PURE__ */ jsxs15(Stack, { gap: "related-packed", children: [
6482
+ /* @__PURE__ */ jsxs15(Field, { children: [
6483
+ /* @__PURE__ */ jsx32(FieldLabel, { htmlFor: searchId, children: label }),
6484
+ /* @__PURE__ */ jsx32(
6202
6485
  SearchBox,
6203
6486
  {
6204
6487
  id: searchId,
@@ -6208,7 +6491,7 @@ function useRowFilter({
6208
6491
  }
6209
6492
  )
6210
6493
  ] }),
6211
- uniqueTerms.length > 0 && /* @__PURE__ */ jsx31(
6494
+ uniqueTerms.length > 0 && /* @__PURE__ */ jsx32(
6212
6495
  Cluster,
6213
6496
  {
6214
6497
  justify: "start",
@@ -6216,7 +6499,7 @@ function useRowFilter({
6216
6499
  wrap: true,
6217
6500
  role: "group",
6218
6501
  "aria-label": "Filters",
6219
- children: uniqueTerms.map((term) => /* @__PURE__ */ jsx31(
6502
+ children: uniqueTerms.map((term) => /* @__PURE__ */ jsx32(
6220
6503
  FilterChip,
6221
6504
  {
6222
6505
  label: term,
@@ -6247,15 +6530,15 @@ function FilterRegion({
6247
6530
  children,
6248
6531
  fill = false
6249
6532
  }) {
6250
- return /* @__PURE__ */ jsxs14(Stack, { gap: "related-dense", fill, children: [
6533
+ return /* @__PURE__ */ jsxs15(Stack, { gap: "related-dense", fill, children: [
6251
6534
  filterControlOf(filter),
6252
6535
  children
6253
6536
  ] });
6254
6537
  }
6255
6538
 
6256
6539
  // src/FramedDisplay.tsx
6257
- import styled19 from "styled-components";
6258
- import { Fragment as Fragment10, jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
6540
+ import styled20 from "styled-components";
6541
+ import { Fragment as Fragment11, jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
6259
6542
  var STRIP_MIN_PX = 24;
6260
6543
  var STRIP_MAX_PX = 96;
6261
6544
  function FramedDisplay({
@@ -6267,24 +6550,24 @@ function FramedDisplay({
6267
6550
  ...rest
6268
6551
  }) {
6269
6552
  const hasStrip = strip !== void 0 && strip !== null && strip !== false;
6270
- return /* @__PURE__ */ jsxs15(
6553
+ return /* @__PURE__ */ jsxs16(
6271
6554
  FramedDisplay__Box,
6272
6555
  {
6273
6556
  $padded: padded && !hasStrip,
6274
6557
  $stacked: hasStrip,
6275
6558
  ...rest,
6276
6559
  children: [
6277
- hasStrip ? /* @__PURE__ */ jsxs15(Fragment10, { children: [
6278
- /* @__PURE__ */ jsx32(FramedDisplay__Main, { $padded: padded, children }),
6279
- /* @__PURE__ */ jsx32(FramedDisplay__Strip, { "data-framed-display-strip": "", children: strip })
6560
+ hasStrip ? /* @__PURE__ */ jsxs16(Fragment11, { children: [
6561
+ /* @__PURE__ */ jsx33(FramedDisplay__Main, { $padded: padded, children }),
6562
+ /* @__PURE__ */ jsx33(FramedDisplay__Strip, { "data-framed-display-strip": "", children: strip })
6280
6563
  ] }) : children,
6281
- caption !== void 0 && caption !== null && /* @__PURE__ */ jsx32(FramedDisplay__Caption, { children: caption }),
6282
- footer !== void 0 && footer !== null && /* @__PURE__ */ jsx32(FramedDisplay__Footer, { children: footer })
6564
+ caption !== void 0 && caption !== null && /* @__PURE__ */ jsx33(FramedDisplay__Caption, { children: caption }),
6565
+ footer !== void 0 && footer !== null && /* @__PURE__ */ jsx33(FramedDisplay__Footer, { children: footer })
6283
6566
  ]
6284
6567
  }
6285
6568
  );
6286
6569
  }
6287
- var FramedDisplay__Box = styled19.div`
6570
+ var FramedDisplay__Box = styled20.div`
6288
6571
  position: relative;
6289
6572
  display: flex;
6290
6573
  flex-direction: ${({ $stacked }) => $stacked ? "column" : "row"};
@@ -6306,7 +6589,7 @@ var FramedDisplay__Box = styled19.div`
6306
6589
  height: 100%;
6307
6590
  }
6308
6591
  `;
6309
- var FramedDisplay__Main = styled19.div`
6592
+ var FramedDisplay__Main = styled20.div`
6310
6593
  flex: 7 1 0;
6311
6594
  display: flex;
6312
6595
  min-height: 0;
@@ -6320,7 +6603,7 @@ var FramedDisplay__Main = styled19.div`
6320
6603
  height: 100%;
6321
6604
  }
6322
6605
  `;
6323
- var FramedDisplay__Strip = styled19.div`
6606
+ var FramedDisplay__Strip = styled20.div`
6324
6607
  flex: 3 1 0;
6325
6608
  display: flex;
6326
6609
  min-height: ${STRIP_MIN_PX}px;
@@ -6328,7 +6611,7 @@ var FramedDisplay__Strip = styled19.div`
6328
6611
  min-width: 0;
6329
6612
  overflow: hidden;
6330
6613
  `;
6331
- var FramedDisplay__Caption = styled19.div`
6614
+ var FramedDisplay__Caption = styled20.div`
6332
6615
  position: absolute;
6333
6616
  top: var(--offset-frame-caption-top);
6334
6617
  left: var(--offset-frame-caption-left);
@@ -6342,15 +6625,15 @@ var FramedDisplay__Caption = styled19.div`
6342
6625
  background: var(--color-surface-sunken);
6343
6626
  pointer-events: none;
6344
6627
  `;
6345
- var FramedDisplay__Footer = styled19(FramedDisplay__Caption)`
6628
+ var FramedDisplay__Footer = styled20(FramedDisplay__Caption)`
6346
6629
  top: auto;
6347
6630
  bottom: var(--offset-frame-footer-bottom);
6348
6631
  left: var(--offset-frame-footer-left);
6349
6632
  `;
6350
6633
 
6351
6634
  // src/GraphNotice.tsx
6352
- import styled20, { css as css11 } from "styled-components";
6353
- import { jsx as jsx33 } from "react/jsx-runtime";
6635
+ import styled21, { css as css11 } from "styled-components";
6636
+ import { jsx as jsx34 } from "react/jsx-runtime";
6354
6637
  var OVERLAY_MIN = { width: 160, height: 72 };
6355
6638
  var BESIDE_ASPECT = 2.5;
6356
6639
  var BESIDE_MIN_WIDTH = 420;
@@ -6399,9 +6682,9 @@ function GraphNotice({
6399
6682
  children,
6400
6683
  ...rest
6401
6684
  }) {
6402
- return /* @__PURE__ */ jsx33(GraphNotice__Root, { $placement: placement, role, ...rest, children });
6685
+ return /* @__PURE__ */ jsx34(GraphNotice__Root, { $placement: placement, role, ...rest, children });
6403
6686
  }
6404
- var GraphNotice__Root = styled20.div`
6687
+ var GraphNotice__Root = styled21.div`
6405
6688
  font-size: var(--font-size-compact);
6406
6689
  color: var(--color-text-faint);
6407
6690
  /* No surface token is translucent, so this scrim stays a raw value. */
@@ -6415,13 +6698,13 @@ var GraphNotice__Root = styled20.div`
6415
6698
 
6416
6699
  // src/PanelBadges.tsx
6417
6700
  import { createContext as createContext6, useContext as useContext6 } from "react";
6418
- import { jsx as jsx34 } from "react/jsx-runtime";
6701
+ import { jsx as jsx35 } from "react/jsx-runtime";
6419
6702
  var PanelBadgesCtx = createContext6(null);
6420
6703
  function PanelBadgesProvider({
6421
6704
  badges,
6422
6705
  children
6423
6706
  }) {
6424
- return /* @__PURE__ */ jsx34(PanelBadgesCtx.Provider, { value: badges, children });
6707
+ return /* @__PURE__ */ jsx35(PanelBadgesCtx.Provider, { value: badges, children });
6425
6708
  }
6426
6709
  function usePanelBadgesContext() {
6427
6710
  return useContext6(PanelBadgesCtx);
@@ -6597,7 +6880,7 @@ function usePanelAsideSize() {
6597
6880
  import {
6598
6881
  Children as Children2,
6599
6882
  createContext as createContext8,
6600
- Fragment as Fragment11,
6883
+ Fragment as Fragment12,
6601
6884
  forwardRef as forwardRef7,
6602
6885
  isValidElement as isValidElement2,
6603
6886
  useCallback as useCallback6,
@@ -6610,11 +6893,11 @@ import {
6610
6893
  useRef as useRef10,
6611
6894
  useState as useState10
6612
6895
  } from "react";
6613
- import styled23, { css as css14 } from "styled-components";
6896
+ import styled24, { css as css14 } from "styled-components";
6614
6897
 
6615
6898
  // src/CommandDelay/PanelDelayRail.tsx
6616
6899
  import { useEffect as useEffect7, useId as useId5, useState as useState7 } from "react";
6617
- import styled21, { css as css12 } from "styled-components";
6900
+ import styled22, { css as css12 } from "styled-components";
6618
6901
 
6619
6902
  // src/CommandDelay/railAnnouncer.ts
6620
6903
  import { useSyncExternalStore as useSyncExternalStore9 } from "react";
@@ -6648,7 +6931,7 @@ function useRailAnnounces() {
6648
6931
  }
6649
6932
 
6650
6933
  // src/CommandDelay/PanelDelayRail.tsx
6651
- import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
6934
+ import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
6652
6935
  function handleHasContent(handle) {
6653
6936
  if (railMark(handle.tags) === "ribbon") {
6654
6937
  const delay = handle.effectiveDelaySeconds;
@@ -6718,21 +7001,21 @@ function PanelDelayRail({ tiny } = {}) {
6718
7001
  const dismissFound = canDismissFound ? (id) => handles.find((h) => h.founds?.some((f) => f.id === id))?.dismiss?.(id) : void 0;
6719
7002
  return (
6720
7003
  // An EMPTY band carries only its own marker, since every widget renders it.
6721
- /* @__PURE__ */ jsxs16(
7004
+ /* @__PURE__ */ jsxs17(
6722
7005
  PanelDelayRail__Frame,
6723
7006
  {
6724
7007
  "data-panel-rail-frame": "",
6725
7008
  $tiny: tiny,
6726
7009
  $hasContent: hasContent,
6727
7010
  children: [
6728
- handles.length > 0 && /* @__PURE__ */ jsxs16(LiveRegion, { visuallyHidden: true, additionsOnly: true, children: [
6729
- refusals.map((r) => /* @__PURE__ */ jsx35("span", { children: commandRefusalSentence(r) }, `refusal:${r.id}`)),
6730
- losses.map((l) => /* @__PURE__ */ jsx35("span", { children: commandLossSentence(l) }, `loss:${l.id}`)),
6731
- undelivered.map((u) => /* @__PURE__ */ jsx35("span", { children: commandUndeliveredSentence(u) }, `undelivered:${u.id}`)),
6732
- failures.map((f) => /* @__PURE__ */ jsx35("span", { children: commandFailedSentence(f) }, `failure:${f.id}`)),
6733
- founds.map((f) => /* @__PURE__ */ jsx35("span", { children: commandFoundSentence(f) }, `found:${f.id}`))
7011
+ handles.length > 0 && /* @__PURE__ */ jsxs17(LiveRegion, { visuallyHidden: true, additionsOnly: true, children: [
7012
+ refusals.map((r) => /* @__PURE__ */ jsx36("span", { children: commandRefusalSentence(r) }, `refusal:${r.id}`)),
7013
+ losses.map((l) => /* @__PURE__ */ jsx36("span", { children: commandLossSentence(l) }, `loss:${l.id}`)),
7014
+ undelivered.map((u) => /* @__PURE__ */ jsx36("span", { children: commandUndeliveredSentence(u) }, `undelivered:${u.id}`)),
7015
+ failures.map((f) => /* @__PURE__ */ jsx36("span", { children: commandFailedSentence(f) }, `failure:${f.id}`)),
7016
+ founds.map((f) => /* @__PURE__ */ jsx36("span", { children: commandFoundSentence(f) }, `found:${f.id}`))
6734
7017
  ] }),
6735
- !hasContent ? null : /* @__PURE__ */ jsxs16(
7018
+ !hasContent ? null : /* @__PURE__ */ jsxs17(
6736
7019
  PanelDelayRail__Rail,
6737
7020
  {
6738
7021
  "data-panel-rail": "",
@@ -6752,7 +7035,7 @@ function PanelDelayRail({ tiny } = {}) {
6752
7035
  }
6753
7036
  },
6754
7037
  children: [
6755
- /* @__PURE__ */ jsx35(
7038
+ /* @__PURE__ */ jsx36(
6756
7039
  PanelDelayRail__Toggle,
6757
7040
  {
6758
7041
  type: "button",
@@ -6766,11 +7049,11 @@ function PanelDelayRail({ tiny } = {}) {
6766
7049
  return next;
6767
7050
  });
6768
7051
  },
6769
- children: /* @__PURE__ */ jsx35(PanelDelayRail__CollapseHint, { "aria-hidden": "true", hidden: !grown, children: "\u25B2" })
7052
+ children: /* @__PURE__ */ jsx36(PanelDelayRail__CollapseHint, { "aria-hidden": "true", hidden: !grown, children: "\u25B2" })
6770
7053
  }
6771
7054
  ),
6772
- /* @__PURE__ */ jsxs16(PanelDelayRail__Detail, { id: detailId, "data-panel-rail-detail": "", children: [
6773
- ordered.map((h) => /* @__PURE__ */ jsx35(
7055
+ /* @__PURE__ */ jsxs17(PanelDelayRail__Detail, { id: detailId, "data-panel-rail-detail": "", children: [
7056
+ ordered.map((h) => /* @__PURE__ */ jsx36(
6774
7057
  CommandDelay,
6775
7058
  {
6776
7059
  handle: h,
@@ -6780,16 +7063,16 @@ function PanelDelayRail({ tiny } = {}) {
6780
7063
  h.id
6781
7064
  )),
6782
7065
  !grown && (failedCount > 0 || losses.length > 0 || founds.length > 0) && // One run for every count, since they share the band's single grid cell.
6783
- /* @__PURE__ */ jsxs16(PanelDelayRail__Summaries, { children: [
6784
- failedCount > 0 && /* @__PURE__ */ jsx35(PanelDelayRail__WarnSummary, { children: failedCount === 1 ? "1 command failed" : `${failedCount} commands failed` }),
6785
- losses.length > 0 && /* @__PURE__ */ jsx35(PanelDelayRail__WarnSummary, { children: losses.length === 1 ? "1 command unconfirmed" : `${losses.length} commands unconfirmed` }),
6786
- founds.length > 0 && /* @__PURE__ */ jsx35(PanelDelayRail__FoundSummary, { children: founds.length === 1 ? "1 unconfirmed command answered" : `${founds.length} unconfirmed commands answered` })
7066
+ /* @__PURE__ */ jsxs17(PanelDelayRail__Summaries, { children: [
7067
+ failedCount > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__WarnSummary, { children: failedCount === 1 ? "1 command failed" : `${failedCount} commands failed` }),
7068
+ losses.length > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__WarnSummary, { children: losses.length === 1 ? "1 command unconfirmed" : `${losses.length} commands unconfirmed` }),
7069
+ founds.length > 0 && /* @__PURE__ */ jsx36(PanelDelayRail__FoundSummary, { children: founds.length === 1 ? "1 unconfirmed command answered" : `${founds.length} unconfirmed commands answered` })
6787
7070
  ] })
6788
7071
  ] })
6789
7072
  ]
6790
7073
  }
6791
7074
  ),
6792
- grown && refusals.length > 0 && /* @__PURE__ */ jsx35(
7075
+ grown && refusals.length > 0 && /* @__PURE__ */ jsx36(
6793
7076
  CommandList,
6794
7077
  {
6795
7078
  kind: "refused",
@@ -6798,7 +7081,7 @@ function PanelDelayRail({ tiny } = {}) {
6798
7081
  live: false
6799
7082
  }
6800
7083
  ),
6801
- grown && losses.length > 0 && /* @__PURE__ */ jsx35(
7084
+ grown && losses.length > 0 && /* @__PURE__ */ jsx36(
6802
7085
  CommandList,
6803
7086
  {
6804
7087
  kind: "lost",
@@ -6807,7 +7090,7 @@ function PanelDelayRail({ tiny } = {}) {
6807
7090
  live: false
6808
7091
  }
6809
7092
  ),
6810
- grown && undelivered.length > 0 && /* @__PURE__ */ jsx35(
7093
+ grown && undelivered.length > 0 && /* @__PURE__ */ jsx36(
6811
7094
  CommandList,
6812
7095
  {
6813
7096
  kind: "undelivered",
@@ -6816,7 +7099,7 @@ function PanelDelayRail({ tiny } = {}) {
6816
7099
  live: false
6817
7100
  }
6818
7101
  ),
6819
- grown && failures.length > 0 && /* @__PURE__ */ jsx35(
7102
+ grown && failures.length > 0 && /* @__PURE__ */ jsx36(
6820
7103
  CommandList,
6821
7104
  {
6822
7105
  kind: "failed",
@@ -6825,7 +7108,7 @@ function PanelDelayRail({ tiny } = {}) {
6825
7108
  live: false
6826
7109
  }
6827
7110
  ),
6828
- grown && founds.length > 0 && /* @__PURE__ */ jsx35(
7111
+ grown && founds.length > 0 && /* @__PURE__ */ jsx36(
6829
7112
  CommandList,
6830
7113
  {
6831
7114
  kind: "found",
@@ -6839,7 +7122,7 @@ function PanelDelayRail({ tiny } = {}) {
6839
7122
  )
6840
7123
  );
6841
7124
  }
6842
- var PanelDelayRail__Frame = styled21.div`
7125
+ var PanelDelayRail__Frame = styled22.div`
6843
7126
  /* Never shrinks below its content: the grown rail keeps its full height and the body gives up the difference. */
6844
7127
  flex: 0 0 auto;
6845
7128
  /* Fully opaque so content scrolling under the rail never ghosts through: except a tiny panel's empty band, which paints nothing so the panel's own focus ring stays visible behind it. */
@@ -6862,7 +7145,7 @@ var grownRail = css12`
6862
7145
  grid-area: auto;
6863
7146
  }
6864
7147
  `;
6865
- var PanelDelayRail__Rail = styled21.div`
7148
+ var PanelDelayRail__Rail = styled22.div`
6866
7149
  width: 100%;
6867
7150
  margin: 0;
6868
7151
  padding: 0;
@@ -6894,7 +7177,7 @@ var PanelDelayRail__Rail = styled21.div`
6894
7177
  ${grownRail}
6895
7178
  }
6896
7179
  `;
6897
- var PanelDelayRail__Toggle = styled21.button`
7180
+ var PanelDelayRail__Toggle = styled22.button`
6898
7181
  appearance: none;
6899
7182
  position: absolute;
6900
7183
  inset: 0;
@@ -6913,13 +7196,13 @@ var PanelDelayRail__Toggle = styled21.button`
6913
7196
  }
6914
7197
 
6915
7198
  `;
6916
- var PanelDelayRail__Detail = styled21.div`
7199
+ var PanelDelayRail__Detail = styled22.div`
6917
7200
  display: contents;
6918
7201
  `;
6919
- var PanelDelayRail__WarnSummary = styled21.span`
7202
+ var PanelDelayRail__WarnSummary = styled22.span`
6920
7203
  color: ${TONE_TEXT.warn};
6921
7204
  `;
6922
- var PanelDelayRail__Summaries = styled21.span`
7205
+ var PanelDelayRail__Summaries = styled22.span`
6923
7206
  align-self: center;
6924
7207
  justify-self: end;
6925
7208
  display: flex;
@@ -6933,10 +7216,10 @@ var PanelDelayRail__Summaries = styled21.span`
6933
7216
  white-space: nowrap;
6934
7217
  pointer-events: none;
6935
7218
  `;
6936
- var PanelDelayRail__FoundSummary = styled21.span`
7219
+ var PanelDelayRail__FoundSummary = styled22.span`
6937
7220
  color: var(--color-info-text);
6938
7221
  `;
6939
- var PanelDelayRail__CollapseHint = styled21.span`
7222
+ var PanelDelayRail__CollapseHint = styled22.span`
6940
7223
  position: absolute;
6941
7224
  top: var(--offset-rail-hint);
6942
7225
  right: var(--gutter-panel);
@@ -6956,11 +7239,11 @@ var PanelDelayRail__CollapseHint = styled21.span`
6956
7239
  `;
6957
7240
 
6958
7241
  // src/status/PanelStatusDot.tsx
6959
- import styled22 from "styled-components";
6960
- import { jsx as jsx36 } from "react/jsx-runtime";
7242
+ import styled23 from "styled-components";
7243
+ import { jsx as jsx37 } from "react/jsx-runtime";
6961
7244
  function PanelStatusDot({ severity, count = 1 }) {
6962
7245
  const withCount = count > 1;
6963
- return /* @__PURE__ */ jsx36(
7246
+ return /* @__PURE__ */ jsx37(
6964
7247
  PanelStatusDot__Root,
6965
7248
  {
6966
7249
  "data-panel-status-dot": "",
@@ -6969,7 +7252,7 @@ function PanelStatusDot({ severity, count = 1 }) {
6969
7252
  "aria-label": withCount ? `${count} ${TONE_LABEL[severity]}` : TONE_LABEL[severity],
6970
7253
  $mark: TONE_MARK[severity],
6971
7254
  $digits: withCount ? String(count).length : 1,
6972
- children: withCount && /* @__PURE__ */ jsx36(
7255
+ children: withCount && /* @__PURE__ */ jsx37(
6973
7256
  PanelStatusDot__Count,
6974
7257
  {
6975
7258
  $fill: TONE_STATUS[severity],
@@ -6981,7 +7264,7 @@ function PanelStatusDot({ severity, count = 1 }) {
6981
7264
  );
6982
7265
  }
6983
7266
  var DOT_DIAMETER = "8px";
6984
- var PanelStatusDot__Root = styled22.span`
7267
+ var PanelStatusDot__Root = styled23.span`
6985
7268
  position: relative;
6986
7269
  flex: 0 0 auto;
6987
7270
  display: inline-flex;
@@ -7000,7 +7283,7 @@ var PanelStatusDot__Root = styled22.span`
7000
7283
  0 0 0 1px color-mix(in srgb, ${({ $mark }) => $mark} 78%, white),
7001
7284
  0 0 4px 1px ${({ $mark }) => $mark};
7002
7285
  `;
7003
- var PanelStatusDot__Count = styled22.span`
7286
+ var PanelStatusDot__Count = styled23.span`
7004
7287
  /* Out of flow, centred over the fixed parent box with no say over its size. */
7005
7288
  position: absolute;
7006
7289
  inset: 0;
@@ -7142,7 +7425,7 @@ function useKeyboardScrollable(el) {
7142
7425
  }
7143
7426
 
7144
7427
  // src/Panel.tsx
7145
- import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
7428
+ import { Fragment as Fragment13, jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
7146
7429
  var PanelCtx = createContext8(null);
7147
7430
  function PanelContextProvider({ children }) {
7148
7431
  const [scroller, setScroller] = useState10(null);
@@ -7150,10 +7433,10 @@ function PanelContextProvider({ children }) {
7150
7433
  () => ({ scroller, registerScroller: setScroller }),
7151
7434
  [scroller]
7152
7435
  );
7153
- return /* @__PURE__ */ jsx37(PanelCtx.Provider, { value: value3, children });
7436
+ return /* @__PURE__ */ jsx38(PanelCtx.Provider, { value: value3, children });
7154
7437
  }
7155
7438
  function PanelProviders({ children }) {
7156
- return /* @__PURE__ */ jsx37(PanelContextProvider, { children });
7439
+ return /* @__PURE__ */ jsx38(PanelContextProvider, { children });
7157
7440
  }
7158
7441
  var SECTION_FILL_RULE = `
7159
7442
  & > [${SECTION_FILL_ATTR}] {
@@ -7161,7 +7444,7 @@ var SECTION_FILL_RULE = `
7161
7444
  min-height: var(--size-section-fill-floor);
7162
7445
  }
7163
7446
  `;
7164
- var PanelContainer = styled23.div`
7447
+ var PanelContainer = styled24.div`
7165
7448
  /* Chrome only: border, surface and clip. The inset is Panel.Body's and the glow is Panel.Glow's. */
7166
7449
  background: var(--color-surface-panel);
7167
7450
  /* A size container, so the popped-open aside sizes itself in cqw against the panel's width. */
@@ -7184,7 +7467,7 @@ var PanelContainer = styled23.div`
7184
7467
  /* A hand-composed panel can put sections straight in here, so this box owns the leftover height. */
7185
7468
  ${SECTION_FILL_RULE}
7186
7469
  `;
7187
- var PanelTitle__Box = styled23.h3`
7470
+ var PanelTitle__Box = styled24.h3`
7188
7471
  margin: 0;
7189
7472
  /* No top inset: PanelHeader__Row carries it, so the header pays for it once. */
7190
7473
  padding: var(--inset-panel-header);
@@ -7202,7 +7485,7 @@ var PanelTitle = forwardRef7(
7202
7485
  const full = typeof children === "string" ? children : "";
7203
7486
  const forms = compact2 === void 0 || full === "" ? EMPTY_COMPACT : typeof compact2 === "string" ? [compact2] : compact2;
7204
7487
  const { index, compacted } = useFittedTitle(own, full, forms);
7205
- return /* @__PURE__ */ jsx37(Tooltip, { text: compacted ? full : void 0, children: /* @__PURE__ */ jsx37(
7488
+ return /* @__PURE__ */ jsx38(Tooltip, { text: compacted ? full : void 0, children: /* @__PURE__ */ jsx38(
7206
7489
  PanelTitle__Box,
7207
7490
  {
7208
7491
  ...rest,
@@ -7221,7 +7504,7 @@ var PanelTitle = forwardRef7(
7221
7504
  }
7222
7505
  );
7223
7506
  var EMPTY_COMPACT = [];
7224
- var PanelHeader__Row = styled23.div`
7507
+ var PanelHeader__Row = styled24.div`
7225
7508
  padding-top: var(--inset-panel-header-top);
7226
7509
  display: flex;
7227
7510
  /* Centred, which levels the collapsed dots and chevron on the single-line title. */
@@ -7234,7 +7517,7 @@ var PanelHeader__Row = styled23.div`
7234
7517
  /* Never shrink, or a short tile's body would overprint the title. */
7235
7518
  flex-shrink: 0;
7236
7519
  `;
7237
- var PanelHeader__Titles = styled23.div`
7520
+ var PanelHeader__Titles = styled24.div`
7238
7521
  min-width: 0;
7239
7522
  /* A zero basis, so a long title shrinks beside the aside instead of wrapping it onto a second line; useFittedTitle measures the room this leaves. */
7240
7523
  flex-grow: 1;
@@ -7247,7 +7530,7 @@ var PanelHeader__Titles = styled23.div`
7247
7530
  min-width: 0;
7248
7531
  }
7249
7532
  `;
7250
- var PanelHeader__Strut = styled23.span`
7533
+ var PanelHeader__Strut = styled24.span`
7251
7534
  display: flex;
7252
7535
  flex: 0 0 0;
7253
7536
  width: 0;
@@ -7257,7 +7540,7 @@ var PanelHeader__Strut = styled23.span`
7257
7540
  content: "\\00a0";
7258
7541
  }
7259
7542
  `;
7260
- var PanelHeader__Aside = styled23.div`
7543
+ var PanelHeader__Aside = styled24.div`
7261
7544
  display: flex;
7262
7545
  align-items: center;
7263
7546
  gap: var(--gap-panel-aside);
@@ -7267,7 +7550,7 @@ var PanelHeader__Aside = styled23.div`
7267
7550
  /* Mirrors PanelTitle's inset so the badges line up with the title. */
7268
7551
  padding: var(--inset-panel-header);
7269
7552
  `;
7270
- var PanelAsideExpand = styled23.details`
7553
+ var PanelAsideExpand = styled24.details`
7271
7554
  position: relative;
7272
7555
  margin: 0;
7273
7556
  display: flex;
@@ -7432,12 +7715,12 @@ function PanelHeader({
7432
7715
  );
7433
7716
  return (
7434
7717
  /* `data-panel-header` is a stable targeting hook. */
7435
- /* @__PURE__ */ jsxs17(PanelHeader__Row, { ref: rowRef, "data-panel-header": "", ...rest, children: [
7436
- /* @__PURE__ */ jsxs17(PanelHeader__Titles, { children: [
7437
- title !== void 0 && /* @__PURE__ */ jsx37(PanelTitle, { ref: titleRef, compact: compactTitle, children: title }),
7438
- /* @__PURE__ */ jsx37(PanelHeader__Strut, { "aria-hidden": "true", children: /* @__PURE__ */ jsx37(Badge, { children: null }) })
7718
+ /* @__PURE__ */ jsxs18(PanelHeader__Row, { ref: rowRef, "data-panel-header": "", ...rest, children: [
7719
+ /* @__PURE__ */ jsxs18(PanelHeader__Titles, { children: [
7720
+ title !== void 0 && /* @__PURE__ */ jsx38(PanelTitle, { ref: titleRef, compact: compactTitle, children: title }),
7721
+ /* @__PURE__ */ jsx38(PanelHeader__Strut, { "aria-hidden": "true", children: /* @__PURE__ */ jsx38(Badge, { children: null }) })
7439
7722
  ] }),
7440
- aside !== void 0 && /* @__PURE__ */ jsx37(PanelHeader__Aside, { children: /* @__PURE__ */ jsxs17(
7723
+ aside !== void 0 && /* @__PURE__ */ jsx38(PanelHeader__Aside, { children: /* @__PURE__ */ jsxs18(
7441
7724
  PanelAsideExpand,
7442
7725
  {
7443
7726
  ref: expandRef,
@@ -7464,7 +7747,7 @@ function PanelHeader({
7464
7747
  }, MENU_CROSSING_MS);
7465
7748
  },
7466
7749
  children: [
7467
- /* @__PURE__ */ jsxs17(
7750
+ /* @__PURE__ */ jsxs18(
7468
7751
  "summary",
7469
7752
  {
7470
7753
  ref: summaryRef,
@@ -7476,7 +7759,7 @@ function PanelHeader({
7476
7759
  "aria-description": description ?? void 0,
7477
7760
  "aria-label": breakdown.length === 0 ? "Panel status and controls" : `${breakdown.map((e) => `${e.count} ${TONE_LABEL[e.severity]}`).join(", ")}. Panel status and controls`,
7478
7761
  children: [
7479
- breakdown.map((e) => /* @__PURE__ */ jsx37(
7762
+ breakdown.map((e) => /* @__PURE__ */ jsx38(
7480
7763
  PanelStatusDot,
7481
7764
  {
7482
7765
  severity: e.severity,
@@ -7484,20 +7767,20 @@ function PanelHeader({
7484
7767
  },
7485
7768
  e.severity
7486
7769
  )),
7487
- /* @__PURE__ */ jsx37("span", { "data-panel-aside-chevron": "", "aria-hidden": "true" })
7770
+ /* @__PURE__ */ jsx38("span", { "data-panel-aside-chevron": "", "aria-hidden": "true" })
7488
7771
  ]
7489
7772
  }
7490
7773
  ),
7491
7774
  summaryTipBody,
7492
- /* @__PURE__ */ jsx37(PanelAsideSizeProvider, { value: collapsed ? "collapsed" : "full", children: /* @__PURE__ */ jsx37("div", { "data-panel-aside-full": "", ref: asideFullRef, children: aside }) })
7775
+ /* @__PURE__ */ jsx38(PanelAsideSizeProvider, { value: collapsed ? "collapsed" : "full", children: /* @__PURE__ */ jsx38("div", { "data-panel-aside-full": "", ref: asideFullRef, children: aside }) })
7493
7776
  ]
7494
7777
  }
7495
7778
  ) }),
7496
- toolbar !== void 0 && /* @__PURE__ */ jsx37(PanelToolbar, { children: toolbar })
7779
+ toolbar !== void 0 && /* @__PURE__ */ jsx38(PanelToolbar, { children: toolbar })
7497
7780
  ] })
7498
7781
  );
7499
7782
  }
7500
- var PanelToolbar = styled23.div`
7783
+ var PanelToolbar = styled24.div`
7501
7784
  ${fitBox("panel-toolbar")}
7502
7785
  display: flex;
7503
7786
  align-items: center;
@@ -7513,7 +7796,7 @@ var PanelToolbar = styled23.div`
7513
7796
  /* Opaque: the sticky header's scroll glow only masks its top strip, so a tall toolbar would let scrolled rows draw through it. */
7514
7797
  background: var(--color-surface-panel);
7515
7798
  `;
7516
- var PanelBody__Box = styled23.div`
7799
+ var PanelBody__Box = styled24.div`
7517
7800
  --gap-related: var(--gap-related-comfortable);
7518
7801
  --gap-section: var(--gap-section-comfortable);
7519
7802
  --bleed-inline: var(--gutter-panel);
@@ -7580,7 +7863,7 @@ function PanelBody({
7580
7863
  const tabIndex = useKeyboardScrollable(scroller);
7581
7864
  return (
7582
7865
  /* `data-panel-body` is a stable targeting hook for the scroller's visible height. */
7583
- /* @__PURE__ */ jsx37(
7866
+ /* @__PURE__ */ jsx38(
7584
7867
  PanelBody__Box,
7585
7868
  {
7586
7869
  ref,
@@ -7597,7 +7880,7 @@ function PanelBody({
7597
7880
  );
7598
7881
  }
7599
7882
  var DEFAULT_SECTION_MIN_WIDTH = "13rem";
7600
- var PanelSections__Grid = styled23.div`
7883
+ var PanelSections__Grid = styled24.div`
7601
7884
  display: grid;
7602
7885
  grid-template-columns: repeat(
7603
7886
  auto-fit,
@@ -7616,6 +7899,10 @@ var PanelSections__Grid = styled23.div`
7616
7899
  & > [${SECTION_FULL_ATTR}] {
7617
7900
  grid-column: 1 / -1;
7618
7901
  }
7902
+ /* A grid opened only to carry the augment slot, with nothing bound, takes no gap above it: a filling section reaches the body's bottom inset. */
7903
+ &:empty {
7904
+ display: none;
7905
+ }
7619
7906
  `;
7620
7907
  function PanelFitBody({
7621
7908
  children,
@@ -7624,7 +7911,7 @@ function PanelFitBody({
7624
7911
  const outerRef = useRef10(null);
7625
7912
  const innerRef = useRef10(null);
7626
7913
  const fits = useContentFits(outerRef, innerRef);
7627
- return /* @__PURE__ */ jsx37(PanelBody__FitOuter, { ref: outerRef, $fits: fits, "data-panel-fit-body": "", children: /* @__PURE__ */ jsx37(
7914
+ return /* @__PURE__ */ jsx38(PanelBody__FitOuter, { ref: outerRef, $fits: fits, "data-panel-fit-body": "", children: /* @__PURE__ */ jsx38(
7628
7915
  PanelBody__FitContent,
7629
7916
  {
7630
7917
  ref: innerRef,
@@ -7634,7 +7921,7 @@ function PanelFitBody({
7634
7921
  }
7635
7922
  ) });
7636
7923
  }
7637
- var PanelBody__FitOuter = styled23.div`
7924
+ var PanelBody__FitOuter = styled24.div`
7638
7925
  flex: 1;
7639
7926
  min-height: 0;
7640
7927
  /* Takes back the body's gap above and its bottom inset, so the box is all the room a tiny tile has and centring is measured against it. Reads the body's own custom property rather than the raw token, so a stepped-down bottom inset (loneFrame, hoverTitle) is taken back by exactly as much. */
@@ -7645,7 +7932,7 @@ var PanelBody__FitOuter = styled23.div`
7645
7932
  /* Never clips: the body owns the real boundary. */
7646
7933
  ${({ $fits }) => $fits ? "justify-content: center;" : "justify-content: flex-start;"}
7647
7934
  `;
7648
- var PanelBody__FitContent = styled23.div`
7935
+ var PanelBody__FitContent = styled24.div`
7649
7936
  display: flex;
7650
7937
  flex-direction: column;
7651
7938
  align-items: center;
@@ -7713,7 +8000,7 @@ function contentExtent(content) {
7713
8000
  function contentFits(content, box) {
7714
8001
  return content <= box;
7715
8002
  }
7716
- var ScrollAreaRoot = styled23.div`
8003
+ var ScrollAreaRoot = styled24.div`
7717
8004
  position: relative;
7718
8005
  display: flex;
7719
8006
  flex-direction: column;
@@ -7723,7 +8010,7 @@ var ScrollAreaRoot = styled23.div`
7723
8010
  /* Out to the panel's edges, its content back on the column, so a strip inside that bleeds is not clipped by this scroller. */
7724
8011
  margin-inline: calc(-1 * var(--bleed-inline));
7725
8012
  `;
7726
- var ScrollAreaInner = styled23.div`
8013
+ var ScrollAreaInner = styled24.div`
7727
8014
  flex: 1;
7728
8015
  min-height: 0;
7729
8016
  overflow: auto;
@@ -7738,7 +8025,7 @@ var ScrollAreaInner = styled23.div`
7738
8025
  display: none;
7739
8026
  }
7740
8027
  `;
7741
- var ScrollOverflowGlow = styled23.div`
8028
+ var ScrollOverflowGlow = styled24.div`
7742
8029
  position: absolute;
7743
8030
  /* Flush with the scroller's edges: the body's inset is inside the scroller, so nothing pads this. */
7744
8031
  left: 0;
@@ -7790,8 +8077,8 @@ var ScrollArea = forwardRef7(function ScrollArea2({ children, ...rest }, ref) {
7790
8077
  NO_OVERFLOW
7791
8078
  );
7792
8079
  const innerTabIndex = useKeyboardScrollable(inner);
7793
- return /* @__PURE__ */ jsxs17(ScrollAreaRoot, { ...rest, children: [
7794
- /* @__PURE__ */ jsx37(
8080
+ return /* @__PURE__ */ jsxs18(ScrollAreaRoot, { ...rest, children: [
8081
+ /* @__PURE__ */ jsx38(
7795
8082
  ScrollAreaInner,
7796
8083
  {
7797
8084
  ref: attachInner,
@@ -7800,8 +8087,8 @@ var ScrollArea = forwardRef7(function ScrollArea2({ children, ...rest }, ref) {
7800
8087
  children
7801
8088
  }
7802
8089
  ),
7803
- /* @__PURE__ */ jsx37(ScrollOverflowGlow, { $position: "top", $visible: overflow.top }),
7804
- /* @__PURE__ */ jsx37(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
8090
+ /* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "top", $visible: overflow.top }),
8091
+ /* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
7805
8092
  ] });
7806
8093
  });
7807
8094
  function resolveCssLength(value3) {
@@ -7823,7 +8110,7 @@ var SIDEBAR_BLOCK_SIZE = `min(${gridToPixels(1, SIDEBAR_BLOCK_ROWS).pxH}px, ${SI
7823
8110
  function sidebarTracks(side, size) {
7824
8111
  return side === "start" ? `minmax(0, ${size}) minmax(0, 1fr)` : `minmax(0, 1fr) minmax(0, ${size})`;
7825
8112
  }
7826
- var PanelSplit__Box = styled23.div`
8113
+ var PanelSplit__Box = styled24.div`
7827
8114
  flex: 1;
7828
8115
  min-height: 0;
7829
8116
  min-width: 0;
@@ -7873,7 +8160,7 @@ function PanelSplit({
7873
8160
  const resolvedSize = size ?? (axis === "inline" ? SIDEBAR_INLINE_SIZE : SIDEBAR_BLOCK_SIZE);
7874
8161
  return (
7875
8162
  /* `data-panel-split` is a stable targeting hook carrying the resolved axis. */
7876
- /* @__PURE__ */ jsx37(
8163
+ /* @__PURE__ */ jsx38(
7877
8164
  PanelSplit__Box,
7878
8165
  {
7879
8166
  ref,
@@ -7888,7 +8175,7 @@ function PanelSplit({
7888
8175
  )
7889
8176
  );
7890
8177
  }
7891
- var PanelSidebar__Scroll = styled23(ScrollArea)`
8178
+ var PanelSidebar__Scroll = styled24(ScrollArea)`
7892
8179
  /* Longhands, because jsdom drops a shorthand made of var() calls. */
7893
8180
  & > [data-scroll-area-inner] {
7894
8181
  padding-top: var(--inset-panel-top);
@@ -7897,7 +8184,7 @@ var PanelSidebar__Scroll = styled23(ScrollArea)`
7897
8184
  padding-left: var(--gutter-panel);
7898
8185
  }
7899
8186
  `;
7900
- var PanelSidebar__Box = styled23.div`
8187
+ var PanelSidebar__Box = styled24.div`
7901
8188
  display: flex;
7902
8189
  flex-direction: column;
7903
8190
  /* Grid items floor at min-content, which would let the ScrollArea grow the track instead of scrolling. */
@@ -7908,7 +8195,7 @@ function PanelSidebar({
7908
8195
  children,
7909
8196
  ...rest
7910
8197
  }) {
7911
- return /* @__PURE__ */ jsx37(PanelSidebar__Box, { "data-panel-sidebar": "", ...rest, children: /* @__PURE__ */ jsx37(PanelSidebar__Scroll, { children }) });
8198
+ return /* @__PURE__ */ jsx38(PanelSidebar__Box, { "data-panel-sidebar": "", ...rest, children: /* @__PURE__ */ jsx38(PanelSidebar__Scroll, { children }) });
7912
8199
  }
7913
8200
  var NO_OVERFLOW = { top: false, bottom: false };
7914
8201
  function scrollOverflow(el) {
@@ -7920,7 +8207,7 @@ function scrollOverflow(el) {
7920
8207
  function sameOverflow(a, b) {
7921
8208
  return a.top === b.top && a.bottom === b.bottom;
7922
8209
  }
7923
- var PanelGlow__Root = styled23.div`
8210
+ var PanelGlow__Root = styled24.div`
7924
8211
  position: relative;
7925
8212
  display: flex;
7926
8213
  flex-direction: column;
@@ -7947,9 +8234,9 @@ function PanelGlow({
7947
8234
  sameOverflow,
7948
8235
  NO_OVERFLOW
7949
8236
  );
7950
- return /* @__PURE__ */ jsxs17(PanelGlow__Root, { ...rest, children: [
8237
+ return /* @__PURE__ */ jsxs18(PanelGlow__Root, { ...rest, children: [
7951
8238
  children,
7952
- /* @__PURE__ */ jsx37(
8239
+ /* @__PURE__ */ jsx38(
7953
8240
  ScrollOverflowGlow,
7954
8241
  {
7955
8242
  $position: "top",
@@ -7957,7 +8244,7 @@ function PanelGlow({
7957
8244
  $topOffset: railBandAbove ? "var(--panel-rail-band)" : void 0
7958
8245
  }
7959
8246
  ),
7960
- /* @__PURE__ */ jsx37(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
8247
+ /* @__PURE__ */ jsx38(ScrollOverflowGlow, { $position: "bottom", $visible: overflow.bottom })
7961
8248
  ] });
7962
8249
  }
7963
8250
  function mergeBadges(own, contributed) {
@@ -7978,9 +8265,9 @@ function PanelSummaryBadge({ summary }) {
7978
8265
  }
7979
8266
  }, [summary.severity]);
7980
8267
  const description = describeBreakdown(useStatusBreakdown());
7981
- return /* @__PURE__ */ jsx37(PanelSummaryBadge__Pulse, { $pulse: pulseCount, children: /* @__PURE__ */ jsx37(Tooltip, { text: description, focusable: true, children: /* @__PURE__ */ jsx37(Badge, { tone: summary.severity, size: "sm", children: summary.label }) }) });
8268
+ return /* @__PURE__ */ jsx38(PanelSummaryBadge__Pulse, { $pulse: pulseCount, children: /* @__PURE__ */ jsx38(Tooltip, { text: description, focusable: true, children: /* @__PURE__ */ jsx38(Badge, { tone: summary.severity, size: "sm", children: summary.label }) }) });
7982
8269
  }
7983
- var PanelSummaryBadge__Pulse = styled23.span`
8270
+ var PanelSummaryBadge__Pulse = styled24.span`
7984
8271
  display: inline-flex;
7985
8272
  ${({ $pulse }) => $pulse > 0 && css14`
7986
8273
  @media (prefers-reduced-motion: no-preference) {
@@ -8011,13 +8298,13 @@ var PanelSummaryBadge__Pulse = styled23.span`
8011
8298
  }
8012
8299
  }
8013
8300
  `;
8014
- var PanelFooter = styled23.div`
8301
+ var PanelFooter = styled24.div`
8015
8302
  flex-shrink: 0;
8016
8303
  border-top: 1px solid var(--color-border-subtle);
8017
8304
  padding: var(--inset-panel-footer);
8018
8305
  background: var(--color-surface-panel);
8019
8306
  `;
8020
- var PanelStickyTop = styled23.div`
8307
+ var PanelStickyTop = styled24.div`
8021
8308
  position: sticky;
8022
8309
  /* Reach the scroller's true top edge, cancelling the body's own top inset. */
8023
8310
  top: calc(-1 * var(--inset-panel-top));
@@ -8039,19 +8326,19 @@ function PanelTrend({
8039
8326
  render
8040
8327
  }) {
8041
8328
  const { ref, size } = useElementSize({ w: 0, h: 0 });
8042
- return /* @__PURE__ */ jsx37(PanelTrend__Strip, { ref, "data-panel-trend": "", children: size.w > 0 && size.h > 0 && render(size) });
8329
+ return /* @__PURE__ */ jsx38(PanelTrend__Strip, { ref, "data-panel-trend": "", children: size.w > 0 && size.h > 0 && render(size) });
8043
8330
  }
8044
- var PanelTrend__Strip = styled23.div`
8331
+ var PanelTrend__Strip = styled24.div`
8045
8332
  flex: 0 0 var(--size-panel-trend);
8046
8333
  height: var(--size-panel-trend);
8047
8334
  min-width: 0;
8048
8335
  overflow: hidden;
8049
8336
  `;
8050
- var PanelFilterSlot = styled23.div`
8337
+ var PanelFilterSlot = styled24.div`
8051
8338
  flex: 1 1 100%;
8052
8339
  min-width: 0;
8053
8340
  `;
8054
- var PanelStickyHeader = styled23(PanelHeader)`
8341
+ var PanelStickyHeader = styled24(PanelHeader)`
8055
8342
  /* Transparent: the panel glow under it is its backing. */
8056
8343
  /* The rail band above is this header's top inset. */
8057
8344
  padding-top: 0;
@@ -8064,7 +8351,7 @@ var PanelStickyHeader = styled23(PanelHeader)`
8064
8351
  );
8065
8352
  }
8066
8353
  `;
8067
- var PanelHoverTop = styled23.div`
8354
+ var PanelHoverTop = styled24.div`
8068
8355
  position: absolute;
8069
8356
  top: var(--inset-tiny);
8070
8357
  left: var(--inset-tiny);
@@ -8076,7 +8363,7 @@ var PanelHoverTop = styled23.div`
8076
8363
  gap: var(--gap-panel-aside);
8077
8364
  pointer-events: none;
8078
8365
  `;
8079
- var PanelHoverTitlePill = styled23(VisuallyHidden)`
8366
+ var PanelHoverTitlePill = styled24(VisuallyHidden)`
8080
8367
  margin: 0;
8081
8368
  ${titleText}
8082
8369
  font-size: var(--font-size-caption);
@@ -8107,7 +8394,7 @@ function worstBadge(badges) {
8107
8394
  return worst;
8108
8395
  }
8109
8396
  function PanelBadgeReports({ badges }) {
8110
- return /* @__PURE__ */ jsx37(Fragment12, { children: badges.map((b) => /* @__PURE__ */ jsx37(PanelBadgeReport, { entry: b }, b.id)) });
8397
+ return /* @__PURE__ */ jsx38(Fragment13, { children: badges.map((b) => /* @__PURE__ */ jsx38(PanelBadgeReport, { entry: b }, b.id)) });
8111
8398
  }
8112
8399
  function PanelBadgeReport({ entry }) {
8113
8400
  const { label, tone } = badgeFace(entry);
@@ -8120,17 +8407,17 @@ function PanelHoverStatus({
8120
8407
  summary,
8121
8408
  announcement
8122
8409
  }) {
8123
- return /* @__PURE__ */ jsxs17(Fragment12, { children: [
8124
- /* @__PURE__ */ jsx37(Tooltip, { text: summary.label, focusable: true, children: /* @__PURE__ */ jsx37(PanelHoverStatus__Hit, { children: /* @__PURE__ */ jsx37(PanelStatusDot, { severity: summary.severity }) }) }),
8125
- /* @__PURE__ */ jsx37(LiveRegion, { visuallyHidden: true, assertive: true, children: announcement })
8410
+ return /* @__PURE__ */ jsxs18(Fragment13, { children: [
8411
+ /* @__PURE__ */ jsx38(Tooltip, { text: summary.label, focusable: true, children: /* @__PURE__ */ jsx38(PanelHoverStatus__Hit, { children: /* @__PURE__ */ jsx38(PanelStatusDot, { severity: summary.severity }) }) }),
8412
+ /* @__PURE__ */ jsx38(LiveRegion, { visuallyHidden: true, assertive: true, children: announcement })
8126
8413
  ] });
8127
8414
  }
8128
- var PanelHoverStatus__Hit = styled23.span`
8415
+ var PanelHoverStatus__Hit = styled24.span`
8129
8416
  display: inline-flex;
8130
8417
  align-items: center;
8131
8418
  padding: var(--inset-chip);
8132
8419
  `;
8133
- var PanelHoverAside = styled23.div`
8420
+ var PanelHoverAside = styled24.div`
8134
8421
  margin-left: auto;
8135
8422
  display: flex;
8136
8423
  align-items: center;
@@ -8138,11 +8425,11 @@ var PanelHoverAside = styled23.div`
8138
8425
  pointer-events: auto;
8139
8426
  `;
8140
8427
  function PanelRoot(props) {
8141
- return props.hoverTitle ? /* @__PURE__ */ jsx37(PanelRootWithHoverTitle, { ...props }) : /* @__PURE__ */ jsx37(PanelRootImpl, { ...props, hoverTitleId: void 0 });
8428
+ return props.hoverTitle ? /* @__PURE__ */ jsx38(PanelRootWithHoverTitle, { ...props }) : /* @__PURE__ */ jsx38(PanelRootImpl, { ...props, hoverTitleId: void 0 });
8142
8429
  }
8143
8430
  function PanelRootWithHoverTitle(props) {
8144
8431
  const hoverTitleId = useId6();
8145
- return /* @__PURE__ */ jsx37(PanelRootImpl, { ...props, hoverTitleId });
8432
+ return /* @__PURE__ */ jsx38(PanelRootImpl, { ...props, hoverTitleId });
8146
8433
  }
8147
8434
  function PanelRootImpl({
8148
8435
  panelTitle,
@@ -8172,7 +8459,7 @@ function PanelRootImpl({
8172
8459
  const badges = mergeBadges(panelBadges, contextBadges);
8173
8460
  const badgePills = badges.length === 0 ? null : badges.map((b) => {
8174
8461
  const { label, tone, title } = badgeFace(b);
8175
- return /* @__PURE__ */ jsx37(Tooltip, { text: title, focusable: true, children: /* @__PURE__ */ jsx37(
8462
+ return /* @__PURE__ */ jsx38(Tooltip, { text: title, focusable: true, children: /* @__PURE__ */ jsx38(
8176
8463
  Badge,
8177
8464
  {
8178
8465
  tone,
@@ -8181,9 +8468,9 @@ function PanelRootImpl({
8181
8468
  }
8182
8469
  ) }, b.id);
8183
8470
  });
8184
- const toolbar = panelFilter === void 0 ? panelToolbar : /* @__PURE__ */ jsxs17(Fragment12, { children: [
8471
+ const toolbar = panelFilter === void 0 ? panelToolbar : /* @__PURE__ */ jsxs18(Fragment13, { children: [
8185
8472
  panelToolbar,
8186
- /* @__PURE__ */ jsx37(PanelFilterSlot, { children: filterControlOf(panelFilter) })
8473
+ /* @__PURE__ */ jsx38(PanelFilterSlot, { children: filterControlOf(panelFilter) })
8187
8474
  ] });
8188
8475
  const status = panelStatus ?? null;
8189
8476
  const streamStatus = status !== null && status !== "none" && status !== "live" ? status : null;
@@ -8197,12 +8484,12 @@ function PanelRootImpl({
8197
8484
  const summary = useStatusSummary();
8198
8485
  const summaryDuplicatesABadgePill = summary !== null && badges.some((b) => b.id === summary.id);
8199
8486
  const streamLabel = streamStatus === null ? null : formatStreamStatus(streamStatus);
8200
- const statusBadge = summaryDuplicatesABadgePill ? null : summary !== null ? /* @__PURE__ */ jsx37(PanelSummaryBadge, { summary }) : streamStatus === null || streamLabel === null ? null : /* @__PURE__ */ jsx37(Tooltip, { text: `Telemetry stream: ${streamLabel}`, focusable: true, children: /* @__PURE__ */ jsx37(Badge, { tone: severityFromStreamStatus(streamStatus), size: "sm", children: streamLabel }) });
8487
+ const statusBadge = summaryDuplicatesABadgePill ? null : summary !== null ? /* @__PURE__ */ jsx38(PanelSummaryBadge, { summary }) : streamStatus === null || streamLabel === null ? null : /* @__PURE__ */ jsx38(Tooltip, { text: `Telemetry stream: ${streamLabel}`, focusable: true, children: /* @__PURE__ */ jsx38(Badge, { tone: severityFromStreamStatus(streamStatus), size: "sm", children: streamLabel }) });
8201
8488
  const statusLabel = summary?.label ?? streamLabel;
8202
8489
  const statusAnnouncement = statusLabel === null || statusLabel === "" ? "" : typeof panelTitle === "string" ? `${panelTitle}: ${statusLabel}` : `Status: ${statusLabel}`;
8203
- const aside = panelAside === void 0 && statusBadge === null && badgePills === null && !hasActionAugments ? void 0 : /* @__PURE__ */ jsxs17(Fragment12, { children: [
8490
+ const aside = panelAside === void 0 && statusBadge === null && badgePills === null && !hasActionAugments ? void 0 : /* @__PURE__ */ jsxs18(Fragment13, { children: [
8204
8491
  panelAside,
8205
- hasActionAugments && /* @__PURE__ */ jsx37(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
8492
+ hasActionAugments && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
8206
8493
  badgePills,
8207
8494
  statusBadge
8208
8495
  ] });
@@ -8211,11 +8498,11 @@ function PanelRootImpl({
8211
8498
  label: streamLabel
8212
8499
  });
8213
8500
  const tinyAnnouncement = tinySummary?.severity !== "nogo" ? void 0 : typeof panelTitle === "string" ? `${panelTitle}: ${tinySummary.label}` : `Status: ${tinySummary.label}`;
8214
- const tinyAside = panelAside === void 0 && tinySummary === null && !hasActionAugments ? badges.length === 0 ? void 0 : /* @__PURE__ */ jsx37(PanelBadgeReports, { badges }) : /* @__PURE__ */ jsxs17(Fragment12, { children: [
8501
+ const tinyAside = panelAside === void 0 && tinySummary === null && !hasActionAugments ? badges.length === 0 ? void 0 : /* @__PURE__ */ jsx38(PanelBadgeReports, { badges }) : /* @__PURE__ */ jsxs18(Fragment13, { children: [
8215
8502
  panelAside,
8216
- hasActionAugments && /* @__PURE__ */ jsx37(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
8217
- /* @__PURE__ */ jsx37(PanelBadgeReports, { badges }),
8218
- tinySummary !== null && /* @__PURE__ */ jsx37(
8503
+ hasActionAugments && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "actions", props: NO_SEGMENT_PROPS }),
8504
+ /* @__PURE__ */ jsx38(PanelBadgeReports, { badges }),
8505
+ tinySummary !== null && /* @__PURE__ */ jsx38(
8219
8506
  PanelHoverStatus,
8220
8507
  {
8221
8508
  summary: tinySummary,
@@ -8252,34 +8539,34 @@ function PanelRootImpl({
8252
8539
  continue;
8253
8540
  }
8254
8541
  sectionRuns.push(
8255
- /* @__PURE__ */ jsxs17(
8542
+ /* @__PURE__ */ jsxs18(
8256
8543
  PanelSections__Grid,
8257
8544
  {
8258
8545
  $min: sectionMinWidth,
8259
8546
  $columns: flowingIn(run.nodes),
8260
8547
  children: [
8261
8548
  run.nodes,
8262
- index === augmentRun && /* @__PURE__ */ jsx37(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
8549
+ index === augmentRun && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
8263
8550
  ]
8264
8551
  },
8265
8552
  `sections-${index}`
8266
8553
  )
8267
8554
  );
8268
8555
  }
8269
- const content = isInactive ? /* @__PURE__ */ jsx37(InactiveNotice, { reason: inactive }) : !hasSections ? children : /* @__PURE__ */ jsxs17(Fragment12, { children: [
8556
+ const content = isInactive ? /* @__PURE__ */ jsx38(InactiveNotice, { reason: inactive }) : !hasSections ? children : /* @__PURE__ */ jsxs18(Fragment13, { children: [
8270
8557
  children,
8271
8558
  sectionRuns
8272
8559
  ] });
8273
- const body = /* @__PURE__ */ jsxs17(
8560
+ const body = /* @__PURE__ */ jsxs18(
8274
8561
  PanelBody,
8275
8562
  {
8276
8563
  fitToSize,
8277
8564
  loneFrame,
8278
8565
  hoverTitle,
8279
8566
  children: [
8280
- /* @__PURE__ */ jsxs17(PanelStickyTop, { "data-panel-sticky-top": "", children: [
8281
- /* @__PURE__ */ jsx37(PanelDelayRail, { tiny: hoverTitle }),
8282
- !hoverTitle && /* @__PURE__ */ jsx37(
8567
+ /* @__PURE__ */ jsxs18(PanelStickyTop, { "data-panel-sticky-top": "", children: [
8568
+ /* @__PURE__ */ jsx38(PanelDelayRail, { tiny: hoverTitle }),
8569
+ !hoverTitle && /* @__PURE__ */ jsx38(
8283
8570
  PanelStickyHeader,
8284
8571
  {
8285
8572
  title: panelTitle,
@@ -8289,12 +8576,12 @@ function PanelRootImpl({
8289
8576
  }
8290
8577
  )
8291
8578
  ] }),
8292
- fitToSize ? /* @__PURE__ */ jsx37(PanelFitBody, { hoverTitle, children: content }) : content,
8293
- !hasSections && !isInactive && /* @__PURE__ */ jsx37(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
8579
+ fitToSize ? /* @__PURE__ */ jsx38(PanelFitBody, { hoverTitle, children: content }) : content,
8580
+ !hasSections && !isInactive && /* @__PURE__ */ jsx38(AugmentSlot, { segment: "sections", props: NO_SEGMENT_PROPS })
8294
8581
  ]
8295
8582
  }
8296
8583
  );
8297
- return /* @__PURE__ */ jsx37(PanelProviders, { children: /* @__PURE__ */ jsxs17(
8584
+ return /* @__PURE__ */ jsx38(PanelProviders, { children: /* @__PURE__ */ jsxs18(
8298
8585
  PanelContainer,
8299
8586
  {
8300
8587
  $railTravels: true,
@@ -8307,17 +8594,17 @@ function PanelRootImpl({
8307
8594
  } : {},
8308
8595
  ...rest,
8309
8596
  children: [
8310
- /* @__PURE__ */ jsx37(PanelGlow, { railBandAbove: true, children: panelSidebar === void 0 || isInactive ? body : /* @__PURE__ */ jsxs17(PanelSplit, { side: sidebarSide, size: sidebarSize, railBand: true, children: [
8597
+ /* @__PURE__ */ jsx38(PanelGlow, { railBandAbove: true, children: panelSidebar === void 0 || isInactive ? body : /* @__PURE__ */ jsxs18(PanelSplit, { side: sidebarSide, size: sidebarSize, railBand: true, children: [
8311
8598
  body,
8312
- /* @__PURE__ */ jsx37(PanelSidebar, { children: panelSidebar })
8599
+ /* @__PURE__ */ jsx38(PanelSidebar, { children: panelSidebar })
8313
8600
  ] }) }),
8314
- !isInactive && panelTrend !== void 0 && /* @__PURE__ */ jsx37(PanelTrend, { render: panelTrend }),
8315
- !isInactive && panelFooter !== void 0 && /* @__PURE__ */ jsx37(PanelFooter, { children: panelFooter }),
8316
- hoverTitle && /* @__PURE__ */ jsxs17(PanelHoverTop, { "data-panel-hover-title": "", children: [
8317
- /* @__PURE__ */ jsx37(PanelHoverTitlePill, { as: "h3", id: hoverTitleId, children: panelTitle }),
8318
- tinyAside !== void 0 && /* @__PURE__ */ jsx37(PanelHoverAside, { children: tinyAside })
8601
+ !isInactive && panelTrend !== void 0 && /* @__PURE__ */ jsx38(PanelTrend, { render: panelTrend }),
8602
+ !isInactive && panelFooter !== void 0 && /* @__PURE__ */ jsx38(PanelFooter, { children: panelFooter }),
8603
+ hoverTitle && /* @__PURE__ */ jsxs18(PanelHoverTop, { "data-panel-hover-title": "", children: [
8604
+ /* @__PURE__ */ jsx38(PanelHoverTitlePill, { as: "h3", id: hoverTitleId, children: panelTitle }),
8605
+ tinyAside !== void 0 && /* @__PURE__ */ jsx38(PanelHoverAside, { children: tinyAside })
8319
8606
  ] }),
8320
- /* @__PURE__ */ jsx37(LiveRegion, { visuallyHidden: true, children: hoverTitle && tinyAnnouncement !== void 0 ? "" : statusAnnouncement })
8607
+ /* @__PURE__ */ jsx38(LiveRegion, { visuallyHidden: true, children: hoverTitle && tinyAnnouncement !== void 0 ? "" : statusAnnouncement })
8321
8608
  ]
8322
8609
  }
8323
8610
  ) });
@@ -8336,7 +8623,7 @@ function holdsOnlyAFrame(section) {
8336
8623
  const [child] = only;
8337
8624
  if (!isValidElement2(child)) return false;
8338
8625
  if (child.type === FramedDisplay) return true;
8339
- if (child.type !== Fragment11 && typeof child.type !== "string") return false;
8626
+ if (child.type !== Fragment12 && typeof child.type !== "string") return false;
8340
8627
  node = child.props.children;
8341
8628
  }
8342
8629
  }
@@ -8355,8 +8642,8 @@ var Panel = Object.assign(PanelRoot, {
8355
8642
  });
8356
8643
 
8357
8644
  // src/LevelBars.tsx
8358
- import styled24 from "styled-components";
8359
- import { jsx as jsx38 } from "react/jsx-runtime";
8645
+ import styled25 from "styled-components";
8646
+ import { jsx as jsx39 } from "react/jsx-runtime";
8360
8647
  function LevelBars({
8361
8648
  lit,
8362
8649
  of,
@@ -8364,13 +8651,13 @@ function LevelBars({
8364
8651
  label
8365
8652
  }) {
8366
8653
  const count = lit === null ? "unknown" : `${lit} of ${of}`;
8367
- return /* @__PURE__ */ jsx38(
8654
+ return /* @__PURE__ */ jsx39(
8368
8655
  LevelBars__Root,
8369
8656
  {
8370
8657
  role: "img",
8371
8658
  "aria-label": label === void 0 ? count : `${label} ${count}`,
8372
8659
  "data-level-bars": "",
8373
- children: Array.from({ length: of }, (_, index) => /* @__PURE__ */ jsx38(
8660
+ children: Array.from({ length: of }, (_, index) => /* @__PURE__ */ jsx39(
8374
8661
  LevelBars__Bar,
8375
8662
  {
8376
8663
  $fill: lit !== null && index < lit ? TONE_MARK[tone] : null,
@@ -8381,14 +8668,14 @@ function LevelBars({
8381
8668
  }
8382
8669
  );
8383
8670
  }
8384
- var LevelBars__Root = styled24.span`
8671
+ var LevelBars__Root = styled25.span`
8385
8672
  display: inline-flex;
8386
8673
  align-items: flex-end;
8387
8674
  gap: var(--gap-signal-bars);
8388
8675
  height: 0.8em;
8389
8676
  flex: none;
8390
8677
  `;
8391
- var LevelBars__Bar = styled24.span`
8678
+ var LevelBars__Bar = styled25.span`
8392
8679
  width: 0.22em;
8393
8680
  height: ${({ $height }) => `${Math.round($height * 100)}%`};
8394
8681
  background: ${({ $fill }) => $fill ?? "transparent"};
@@ -8397,7 +8684,7 @@ var LevelBars__Bar = styled24.span`
8397
8684
 
8398
8685
  // src/Sparkline.tsx
8399
8686
  import { useId as useId7, useMemo as useMemo5 } from "react";
8400
- import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
8687
+ import { jsx as jsx40, jsxs as jsxs19 } from "react/jsx-runtime";
8401
8688
  function makeScale(domainMin, domainMax, rangeMin, rangeMax) {
8402
8689
  const span = domainMax - domainMin;
8403
8690
  if (span === 0) {
@@ -8443,7 +8730,7 @@ function Sparkline({
8443
8730
  return [min, max];
8444
8731
  }, [yDomain, finite]);
8445
8732
  if (width <= 0 || height <= 0 || finite.length < 2) {
8446
- return /* @__PURE__ */ jsx39(
8733
+ return /* @__PURE__ */ jsx40(
8447
8734
  "svg",
8448
8735
  {
8449
8736
  width: Math.max(0, width),
@@ -8451,7 +8738,7 @@ function Sparkline({
8451
8738
  role: "img",
8452
8739
  "aria-label": ariaLabel,
8453
8740
  style: { display: "block" },
8454
- children: /* @__PURE__ */ jsx39("title", { children: ariaLabel })
8741
+ children: /* @__PURE__ */ jsx40("title", { children: ariaLabel })
8455
8742
  }
8456
8743
  );
8457
8744
  }
@@ -8463,7 +8750,7 @@ function Sparkline({
8463
8750
  const dFill = `${d} L ${width},${height} L 0,${height} Z`;
8464
8751
  const showBaseline = showZeroBaseline && domain[0] <= 0 && domain[1] >= 0;
8465
8752
  const zeroY = showBaseline ? scaleY(0) : null;
8466
- return /* @__PURE__ */ jsxs18(
8753
+ return /* @__PURE__ */ jsxs19(
8467
8754
  "svg",
8468
8755
  {
8469
8756
  width,
@@ -8472,12 +8759,12 @@ function Sparkline({
8472
8759
  "aria-label": ariaLabel,
8473
8760
  style: { display: "block" },
8474
8761
  children: [
8475
- /* @__PURE__ */ jsx39("title", { children: ariaLabel }),
8476
- background && /* @__PURE__ */ jsx39("defs", { children: /* @__PURE__ */ jsxs18("linearGradient", { id: fillId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
8477
- /* @__PURE__ */ jsx39("stop", { offset: "0%", stopColor: color, stopOpacity: "0.25" }),
8478
- /* @__PURE__ */ jsx39("stop", { offset: "100%", stopColor: color, stopOpacity: "0.02" })
8762
+ /* @__PURE__ */ jsx40("title", { children: ariaLabel }),
8763
+ background && /* @__PURE__ */ jsx40("defs", { children: /* @__PURE__ */ jsxs19("linearGradient", { id: fillId, x1: "0", y1: "0", x2: "0", y2: "1", children: [
8764
+ /* @__PURE__ */ jsx40("stop", { offset: "0%", stopColor: color, stopOpacity: "0.25" }),
8765
+ /* @__PURE__ */ jsx40("stop", { offset: "100%", stopColor: color, stopOpacity: "0.02" })
8479
8766
  ] }) }),
8480
- showBaseline && zeroY !== null && /* @__PURE__ */ jsx39(
8767
+ showBaseline && zeroY !== null && /* @__PURE__ */ jsx40(
8481
8768
  "line",
8482
8769
  {
8483
8770
  x1: 0,
@@ -8488,8 +8775,8 @@ function Sparkline({
8488
8775
  strokeWidth: 1
8489
8776
  }
8490
8777
  ),
8491
- background && /* @__PURE__ */ jsx39("path", { d: dFill, fill: `url(#${fillId})`, stroke: "none" }),
8492
- /* @__PURE__ */ jsx39(
8778
+ background && /* @__PURE__ */ jsx40("path", { d: dFill, fill: `url(#${fillId})`, stroke: "none" }),
8779
+ /* @__PURE__ */ jsx40(
8493
8780
  "path",
8494
8781
  {
8495
8782
  d,
@@ -8507,7 +8794,7 @@ function Sparkline({
8507
8794
 
8508
8795
  // src/ToggleButton.tsx
8509
8796
  import { forwardRef as forwardRef8 } from "react";
8510
- import { jsx as jsx40 } from "react/jsx-runtime";
8797
+ import { jsx as jsx41 } from "react/jsx-runtime";
8511
8798
  var ToggleButton = forwardRef8(
8512
8799
  function ToggleButton2({
8513
8800
  pressed = false,
@@ -8517,7 +8804,7 @@ var ToggleButton = forwardRef8(
8517
8804
  "aria-pressed": ariaPressed,
8518
8805
  ...rest
8519
8806
  }, ref) {
8520
- return /* @__PURE__ */ jsx40(
8807
+ return /* @__PURE__ */ jsx41(
8521
8808
  Button,
8522
8809
  {
8523
8810
  ref,
@@ -8561,8 +8848,8 @@ function getWidgetShape(w, h) {
8561
8848
  }
8562
8849
 
8563
8850
  // src/TinyEssentials.tsx
8564
- import { Fragment as Fragment13, useLayoutEffect as useLayoutEffect5, useRef as useRef11, useState as useState11 } from "react";
8565
- import styled25, { css as css15 } from "styled-components";
8851
+ import { Fragment as Fragment14, useLayoutEffect as useLayoutEffect5, useRef as useRef11, useState as useState11 } from "react";
8852
+ import styled26, { css as css15 } from "styled-components";
8566
8853
 
8567
8854
  // src/fillQuantity.ts
8568
8855
  function fillFraction(pair) {
@@ -8572,7 +8859,7 @@ function fillFraction(pair) {
8572
8859
  }
8573
8860
 
8574
8861
  // src/TinyEssentials.tsx
8575
- import { Fragment as Fragment14, jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
8862
+ import { Fragment as Fragment15, jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
8576
8863
  function TinyEssentials({
8577
8864
  title,
8578
8865
  essentials,
@@ -8583,13 +8870,15 @@ function TinyEssentials({
8583
8870
  const { rowsRef, drawn } = useRowsThatFit(rest);
8584
8871
  const mayInterrupt = essentials.some((e) => e.urgent !== void 0);
8585
8872
  const heroNamedByTitle = hero !== void 0 && rest.length === 0 && hero.label.toUpperCase() === title.toUpperCase();
8586
- return /* @__PURE__ */ jsx41(
8873
+ const arcGauge = hero?.value != null && hero.gauge?.style === "arc" ? hero.gauge : void 0;
8874
+ const arcHero = arcGauge !== void 0;
8875
+ return /* @__PURE__ */ jsx42(
8587
8876
  Panel,
8588
8877
  {
8589
8878
  panelTitle: title,
8590
8879
  fitToSize: true,
8591
8880
  hoverTitle: true,
8592
- panelTrend: hero?.trend === void 0 ? void 0 : ({ w, h }) => /* @__PURE__ */ jsx41(
8881
+ panelTrend: hero?.trend === void 0 ? void 0 : ({ w, h }) => /* @__PURE__ */ jsx42(
8593
8882
  Sparkline,
8594
8883
  {
8595
8884
  values: hero.trend ?? [],
@@ -8598,38 +8887,38 @@ function TinyEssentials({
8598
8887
  "aria-label": `${hero.label} trend`
8599
8888
  }
8600
8889
  ),
8601
- sections: /* @__PURE__ */ jsxs19(Section, { full: true, children: [
8602
- /* @__PURE__ */ jsx41(LiveRegion, { visuallyHidden: true, children: spokenWords(essentials.filter((e) => e.urgent !== true)) }),
8603
- mayInterrupt && /* @__PURE__ */ jsx41(LiveRegion, { visuallyHidden: true, assertive: true, additionsOnly: true, children: urgentWords(essentials).map((said2) => /* @__PURE__ */ jsx41(Fragment13, { children: `${said2}. ` }, said2)) }),
8604
- hero !== void 0 && /* @__PURE__ */ jsxs19(TinyEssentials__Hero, { "data-tiny-essential": "", children: [
8605
- heroNamedByTitle ? /* @__PURE__ */ jsx41(VisuallyHidden, { as: "dt", children: hero.label }) : /* @__PURE__ */ jsx41(TinyEssentials__Label, { children: hero.label }),
8606
- hero.gauge === void 0 ? /* @__PURE__ */ jsx41(TinyEssentials__HeroFigure, { $tone: hero.tone ?? "neutral", children: /* @__PURE__ */ jsx41(EssentialFigure, { essential: hero }) }) : /* @__PURE__ */ jsxs19(TinyEssentials__GaugedFigure, { $tone: hero.tone ?? "neutral", children: [
8607
- /* @__PURE__ */ jsx41(TinyEssentials__FigureLine, { children: /* @__PURE__ */ jsx41(EssentialFigure, { essential: hero }) }),
8608
- /* @__PURE__ */ jsx41(CompactGauge, { essential: hero, gauge: hero.gauge })
8890
+ sections: /* @__PURE__ */ jsxs20(Section, { full: true, children: [
8891
+ /* @__PURE__ */ jsx42(LiveRegion, { visuallyHidden: true, children: spokenWords(essentials.filter((e) => e.urgent !== true)) }),
8892
+ mayInterrupt && /* @__PURE__ */ jsx42(LiveRegion, { visuallyHidden: true, assertive: true, additionsOnly: true, children: urgentWords(essentials).map((said2) => /* @__PURE__ */ jsx42(Fragment14, { children: `${said2}. ` }, said2)) }),
8893
+ hero !== void 0 && /* @__PURE__ */ jsxs20(TinyEssentials__Hero, { "data-tiny-essential": "", children: [
8894
+ heroNamedByTitle || arcHero ? /* @__PURE__ */ jsx42(VisuallyHidden, { as: "dt", children: hero.label }) : /* @__PURE__ */ jsx42(TinyEssentials__Label, { children: hero.label }),
8895
+ hero.value != null && arcGauge !== void 0 ? /* @__PURE__ */ jsx42(ArcGauge, { essential: hero, gauge: arcGauge }) : hero.gauge === void 0 ? /* @__PURE__ */ jsx42(TinyEssentials__HeroFigure, { $tone: hero.tone ?? "neutral", children: /* @__PURE__ */ jsx42(EssentialFigure, { essential: hero }) }) : /* @__PURE__ */ jsxs20(TinyEssentials__GaugedFigure, { $tone: hero.tone ?? "neutral", children: [
8896
+ /* @__PURE__ */ jsx42(TinyEssentials__FigureLine, { children: /* @__PURE__ */ jsx42(EssentialFigure, { essential: hero }) }),
8897
+ /* @__PURE__ */ jsx42(CompactGauge, { essential: hero, gauge: hero.gauge })
8609
8898
  ] })
8610
8899
  ] }),
8611
- rest.length > 0 && /* @__PURE__ */ jsxs19(TinyEssentials__Rows, { ref: rowsRef, $equal: equalRows, children: [
8612
- rest.slice(0, drawn).map((essential) => /* @__PURE__ */ jsxs19(
8900
+ rest.length > 0 && /* @__PURE__ */ jsxs20(TinyEssentials__Rows, { ref: rowsRef, $equal: equalRows, children: [
8901
+ rest.slice(0, drawn).map((essential) => /* @__PURE__ */ jsxs20(
8613
8902
  TinyEssentials__Row,
8614
8903
  {
8615
8904
  "data-tiny-essential": "",
8616
8905
  $equal: equalRows,
8617
8906
  children: [
8618
- /* @__PURE__ */ jsx41(TinyEssentials__Label, { children: essential.label }),
8619
- /* @__PURE__ */ jsx41(
8907
+ /* @__PURE__ */ jsx42(TinyEssentials__Label, { children: essential.label }),
8908
+ /* @__PURE__ */ jsx42(
8620
8909
  TinyEssentials__RowFigure,
8621
8910
  {
8622
8911
  $tone: essential.tone ?? "neutral",
8623
- children: /* @__PURE__ */ jsx41(EssentialFigure, { essential })
8912
+ children: /* @__PURE__ */ jsx42(EssentialFigure, { essential })
8624
8913
  }
8625
8914
  )
8626
8915
  ]
8627
8916
  },
8628
8917
  essential.label
8629
8918
  )),
8630
- rest.slice(drawn).map((essential) => /* @__PURE__ */ jsxs19(VisuallyHidden, { as: "div", children: [
8631
- /* @__PURE__ */ jsx41("dt", { children: essential.label }),
8632
- /* @__PURE__ */ jsx41("dd", { children: essential.control === void 0 ? /* @__PURE__ */ jsx41(EssentialFigure, { essential }) : essential.control.label })
8919
+ rest.slice(drawn).map((essential) => /* @__PURE__ */ jsxs20(VisuallyHidden, { as: "div", children: [
8920
+ /* @__PURE__ */ jsx42("dt", { children: essential.label }),
8921
+ /* @__PURE__ */ jsx42("dd", { children: essential.control === void 0 ? /* @__PURE__ */ jsx42(EssentialFigure, { essential }) : essential.control.label })
8633
8922
  ] }, essential.label))
8634
8923
  ] })
8635
8924
  ] })
@@ -8687,7 +8976,7 @@ function extentOf(content) {
8687
8976
  function EssentialFigure({ essential }) {
8688
8977
  const { control } = essential;
8689
8978
  if (control !== void 0) {
8690
- return /* @__PURE__ */ jsx41(Tooltip, { text: control.hint ?? control.title, children: /* @__PURE__ */ jsx41(
8979
+ return /* @__PURE__ */ jsx42(Tooltip, { text: control.hint ?? control.title, children: /* @__PURE__ */ jsx42(
8691
8980
  ToggleButton,
8692
8981
  {
8693
8982
  size: "sm",
@@ -8699,8 +8988,8 @@ function EssentialFigure({ essential }) {
8699
8988
  }
8700
8989
  ) });
8701
8990
  }
8702
- return /* @__PURE__ */ jsxs19(Fragment14, { children: [
8703
- essential.level !== void 0 && /* @__PURE__ */ jsx41(
8991
+ return /* @__PURE__ */ jsxs20(Fragment15, { children: [
8992
+ essential.level !== void 0 && /* @__PURE__ */ jsx42(
8704
8993
  LevelBars,
8705
8994
  {
8706
8995
  lit: essential.level.lit,
@@ -8709,7 +8998,7 @@ function EssentialFigure({ essential }) {
8709
8998
  label: essential.label
8710
8999
  }
8711
9000
  ),
8712
- essential.word !== void 0 ? essential.word : /* @__PURE__ */ jsx41(MarkedFigure, { essential })
9001
+ essential.word !== void 0 ? essential.word : /* @__PURE__ */ jsx42(MarkedFigure, { essential })
8713
9002
  ] });
8714
9003
  }
8715
9004
  function asZero(value3, shown) {
@@ -8725,9 +9014,9 @@ function MarkedFigure({ essential }) {
8725
9014
  const roundsToZero = finite && decimals !== void 0 && Math.abs(shown.valueOf()) < 0.5 * 10 ** -decimals;
8726
9015
  const plus = finite && (roundsToZero || !shown.isNegative()) ? "+" : "";
8727
9016
  const drawn = roundsToZero ? asZero(value3, shown) : value3;
8728
- const figure = /* @__PURE__ */ jsxs19(Fragment14, { children: [
9017
+ const figure = /* @__PURE__ */ jsxs20(Fragment15, { children: [
8729
9018
  plus,
8730
- /* @__PURE__ */ jsx41(
9019
+ /* @__PURE__ */ jsx42(
8731
9020
  Unit,
8732
9021
  {
8733
9022
  value: drawn,
@@ -8738,7 +9027,7 @@ function MarkedFigure({ essential }) {
8738
9027
  )
8739
9028
  ] });
8740
9029
  if (mark === void 0 || held || mark.kind === void 0) return figure;
8741
- return /* @__PURE__ */ jsx41(
9030
+ return /* @__PURE__ */ jsx42(
8742
9031
  HeldFigure,
8743
9032
  {
8744
9033
  kind: mark.kind,
@@ -8758,7 +9047,7 @@ function CompactGauge({
8758
9047
  capacity: gauge.max.minus(gauge.min)
8759
9048
  }) ?? 0;
8760
9049
  const share = shown == null ? null : at(shown);
8761
- return /* @__PURE__ */ jsxs19(
9050
+ return /* @__PURE__ */ jsxs20(
8762
9051
  TinyEssentials__Gauge,
8763
9052
  {
8764
9053
  "aria-hidden": "true",
@@ -8767,7 +9056,7 @@ function CompactGauge({
8767
9056
  viewBox: "0 0 100 1",
8768
9057
  preserveAspectRatio: "none",
8769
9058
  children: [
8770
- (gauge.bands ?? []).map((band) => /* @__PURE__ */ jsx41(
9059
+ (gauge.bands ?? []).map((band) => /* @__PURE__ */ jsx42(
8771
9060
  "rect",
8772
9061
  {
8773
9062
  x: at(band.from) * 100,
@@ -8779,7 +9068,7 @@ function CompactGauge({
8779
9068
  },
8780
9069
  `${at(band.from)}-${at(band.to)}`
8781
9070
  )),
8782
- share !== null && /* @__PURE__ */ jsx41(
9071
+ share !== null && /* @__PURE__ */ jsx42(
8783
9072
  "rect",
8784
9073
  {
8785
9074
  "data-tiny-gauge-fill": "",
@@ -8795,22 +9084,69 @@ function CompactGauge({
8795
9084
  }
8796
9085
  );
8797
9086
  }
9087
+ function ArcGauge({
9088
+ essential,
9089
+ gauge
9090
+ }) {
9091
+ const { ref, room } = useFitRoom();
9092
+ const width = Math.min(room.w, ARC_MAX_W);
9093
+ const height = Math.min(
9094
+ room.h - ARC_EDGE_CLEARANCE,
9095
+ Math.round(width / 2) + ARC_FIGURE_H
9096
+ );
9097
+ const shown = essential.value;
9098
+ if (shown == null) return null;
9099
+ const spoken = resolveCurrency(shown).shown;
9100
+ return /* @__PURE__ */ jsx42(TinyEssentials__ArcBox, { ref, children: /* @__PURE__ */ jsx42(
9101
+ Dial,
9102
+ {
9103
+ startAngle: -90,
9104
+ sweep: 180,
9105
+ value: shown,
9106
+ min: gauge.min,
9107
+ max: gauge.max,
9108
+ zones: (gauge.bands ?? []).map((band) => ({
9109
+ from: band.from,
9110
+ to: band.to,
9111
+ color: TONE_MARK[band.tone]
9112
+ })),
9113
+ width,
9114
+ height,
9115
+ readout: "large",
9116
+ "aria-label": spoken == null ? essential.label : `${essential.label} ${writeQuantity(spoken)}`
9117
+ }
9118
+ ) });
9119
+ }
9120
+ function useFitRoom() {
9121
+ const ref = useRef11(null);
9122
+ const [room, setRoom] = useState11({ w: 200, h: 110 });
9123
+ useLayoutEffect5(() => {
9124
+ const fit = ref.current?.closest("[data-panel-fit-body]");
9125
+ const body = fit?.closest("[data-panel-body]");
9126
+ if (!fit || !body || typeof ResizeObserver === "undefined") return;
9127
+ const measure = () => {
9128
+ const box = getComputedStyle(body);
9129
+ const taken = getComputedStyle(fit);
9130
+ const w = body.clientWidth - Number.parseFloat(box.paddingLeft) - Number.parseFloat(box.paddingRight);
9131
+ const h = body.clientHeight - Number.parseFloat(box.paddingTop) - Number.parseFloat(box.paddingBottom) - Number.parseFloat(taken.marginTop) - Number.parseFloat(taken.marginBottom);
9132
+ if (w > 0 && h > 0) setRoom({ w: Math.floor(w), h: Math.floor(h) });
9133
+ };
9134
+ measure();
9135
+ const observer = new ResizeObserver(measure);
9136
+ observer.observe(body);
9137
+ return () => observer.disconnect();
9138
+ }, []);
9139
+ return { ref, room };
9140
+ }
9141
+ var ARC_MAX_W = 280;
9142
+ var ARC_EDGE_CLEARANCE = 16;
9143
+ var ARC_FIGURE_H = 40;
8798
9144
  function spokenWords(essentials) {
8799
9145
  return essentials.filter((e) => e.word !== void 0).map((e) => `${e.label} ${e.word}`).join(", ");
8800
9146
  }
8801
9147
  function urgentWords(essentials) {
8802
9148
  return essentials.filter((e) => e.urgent === true && e.word !== void 0).map((e) => `${e.label} ${e.word}`);
8803
9149
  }
8804
- function WidgetBody({
8805
- def,
8806
- ...props
8807
- }) {
8808
- if (def.tiny !== void 0 && showsTiny(def, props.w, props.h)) {
8809
- return /* @__PURE__ */ jsx41(TinyBody, { tiny: def.tiny, props });
8810
- }
8811
- const Widget = def.component;
8812
- return /* @__PURE__ */ jsx41(Widget, { ...props });
8813
- }
8814
9150
  function showsTiny(def, w, h) {
8815
9151
  if (def.tiny === void 0 || w === void 0 || h === void 0) {
8816
9152
  return false;
@@ -8821,18 +9157,7 @@ function showsTiny(def, w, h) {
8821
9157
  function gridFloor(def) {
8822
9158
  return def.tiny !== void 0 ? TINY_SIZE : def.minSize;
8823
9159
  }
8824
- function TinyBody({ tiny, props }) {
8825
- const essentials = tiny.useEssentials(props);
8826
- return /* @__PURE__ */ jsx41(
8827
- TinyEssentials,
8828
- {
8829
- title: tiny.title,
8830
- essentials,
8831
- equalRows: tiny.equalRows
8832
- }
8833
- );
8834
- }
8835
- var TinyEssentials__Hero = styled25.dl`
9160
+ var TinyEssentials__Hero = styled26.dl`
8836
9161
  display: flex;
8837
9162
  flex-direction: column-reverse;
8838
9163
  align-items: center;
@@ -8840,7 +9165,7 @@ var TinyEssentials__Hero = styled25.dl`
8840
9165
  margin: 0;
8841
9166
  min-width: 0;
8842
9167
  `;
8843
- var TinyEssentials__HeroFigure = styled25.dd`
9168
+ var TinyEssentials__HeroFigure = styled26.dd`
8844
9169
  display: inline-flex;
8845
9170
  align-items: baseline;
8846
9171
  gap: var(--gap-figure-parts);
@@ -8857,31 +9182,37 @@ var TinyEssentials__HeroFigure = styled25.dd`
8857
9182
  white-space: nowrap;
8858
9183
  color: ${({ $tone }) => TONE_TEXT[$tone]};
8859
9184
  `;
8860
- var TinyEssentials__GaugedFigure = styled25(TinyEssentials__HeroFigure)`
9185
+ var TinyEssentials__GaugedFigure = styled26(TinyEssentials__HeroFigure)`
8861
9186
  flex-direction: column;
8862
9187
  align-items: stretch;
8863
9188
  gap: var(--gap-caption);
8864
9189
  line-height: var(--line-height-flush);
8865
9190
  `;
8866
- var TinyEssentials__FigureLine = styled25.span`
9191
+ var TinyEssentials__FigureLine = styled26.span`
8867
9192
  display: inline-flex;
8868
9193
  align-items: baseline;
8869
9194
  justify-content: center;
8870
9195
  gap: var(--gap-figure-parts);
8871
9196
  `;
8872
- var TinyEssentials__Gauge = styled25.svg`
9197
+ var TinyEssentials__ArcBox = styled26.dd`
9198
+ display: flex;
9199
+ align-items: center;
9200
+ justify-content: center;
9201
+ margin: 0;
9202
+ `;
9203
+ var TinyEssentials__Gauge = styled26.svg`
8873
9204
  display: block;
8874
9205
  width: 100%;
8875
9206
  height: var(--size-tiny-gauge);
8876
9207
  `;
8877
- var TinyEssentials__Label = styled25.dt`
9208
+ var TinyEssentials__Label = styled26.dt`
8878
9209
  font-size: var(--font-size-caption);
8879
9210
  letter-spacing: 0.1em;
8880
9211
  text-transform: uppercase;
8881
9212
  color: var(--color-text-muted);
8882
9213
  white-space: nowrap;
8883
9214
  `;
8884
- var TinyEssentials__Rows = styled25.dl`
9215
+ var TinyEssentials__Rows = styled26.dl`
8885
9216
  ${({ $equal }) => $equal ? css15`
8886
9217
  display: grid;
8887
9218
  grid-template-columns: auto auto;
@@ -8900,7 +9231,7 @@ var TinyEssentials__Rows = styled25.dl`
8900
9231
  margin: 0;
8901
9232
  max-width: 100%;
8902
9233
  `;
8903
- var TinyEssentials__Row = styled25.div`
9234
+ var TinyEssentials__Row = styled26.div`
8904
9235
  ${({ $equal }) => $equal ? css15`
8905
9236
  display: grid;
8906
9237
  grid-template-columns: subgrid;
@@ -8916,7 +9247,7 @@ var TinyEssentials__Row = styled25.div`
8916
9247
  `}
8917
9248
  max-width: 100%;
8918
9249
  `;
8919
- var TinyEssentials__RowFigure = styled25.dd`
9250
+ var TinyEssentials__RowFigure = styled26.dd`
8920
9251
  display: inline-flex;
8921
9252
  justify-content: flex-end;
8922
9253
  align-items: baseline;
@@ -9126,6 +9457,7 @@ export {
9126
9457
  useContributions,
9127
9458
  ContributionsProvider,
9128
9459
  useKeyboardScrollable,
9460
+ Dial,
9129
9461
  FilterChip,
9130
9462
  SearchBox,
9131
9463
  useRowFilter,
@@ -9149,7 +9481,6 @@ export {
9149
9481
  getWidgetShape,
9150
9482
  TINY_SIZE,
9151
9483
  TinyEssentials,
9152
- WidgetBody,
9153
9484
  showsTiny,
9154
9485
  gridFloor,
9155
9486
  useWidgetBadges
@@ -9216,4 +9547,4 @@ lucide-react/dist/esm/lucide-react.mjs:
9216
9547
  * See the LICENSE file in the root directory of this source tree.
9217
9548
  *)
9218
9549
  */
9219
- //# sourceMappingURL=chunk-YPSVSCHQ.js.map
9550
+ //# sourceMappingURL=chunk-HTFRRLIQ.js.map