@umriss-ui/table 0.3.1 → 0.3.2

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/table.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./table.css";
2
2
  var Jt = Object.defineProperty;
3
3
  var Xt = (e, t, n) => t in e ? Jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var B = (e, t, n) => Xt(e, typeof t != "symbol" ? t + "" : t, n);
5
- import { useState as H, useCallback as X, useMemo as $, useRef as re, useId as se, useContext as Ue, useSyncExternalStore as Le, createContext as yt, useLayoutEffect as W } from "react";
6
- import { DEFAULT_FORMATS as Ct, useVirtual as Qt, useFormats as ue, useWording as U, Checkbox as Se, DateRangePicker as Zt, FormField as rt, NumberInput as st, Popover as St, Button as ee, TagGroup as Nt, Tag as xt, Menu as At, MenuItem as Fe, MenuSeparator as en, VisuallyHidden as Re, useDensityFor as Tt, assess as tn, verdictWeight as Ee, Select as nn, Input as on, DEFAULT_WORDING as rn, Badge as Ie, useFreshness as sn } from "@umriss-ui/core";
4
+ var P = (e, t, n) => Xt(e, typeof t != "symbol" ? t + "" : t, n);
5
+ import { useState as j, useCallback as X, useMemo as $, useRef as re, useId as se, useContext as Ue, useSyncExternalStore as Re, createContext as kt, useLayoutEffect as W } from "react";
6
+ import { DEFAULT_FORMATS as St, useVirtual as Qt, useFormats as ue, useWording as U, Checkbox as Ce, DateRangePicker as Zt, FormField as rt, NumberInput as st, Popover as Ct, Button as ee, TagGroup as Nt, Tag as xt, Menu as At, MenuItem as Fe, MenuSeparator as en, VisuallyHidden as Le, useDensityFor as Tt, AngleGlyph as tn, assess as nn, verdictWeight as Ee, Select as on, Input as rn, DEFAULT_WORDING as sn, Badge as Ie, useFreshness as an } from "@umriss-ui/core";
7
7
  import { jsx as l, jsxs as O, Fragment as Q } from "react/jsx-runtime";
8
- import { createPortal as an } from "react-dom";
9
- function ln(e) {
10
- const [t, n] = H(/* @__PURE__ */ new Set()), o = X((u) => t.has(u), [t]), r = X((u) => {
8
+ import { createPortal as ln } from "react-dom";
9
+ function cn(e) {
10
+ const [t, n] = j(/* @__PURE__ */ new Set()), o = X((u) => t.has(u), [t]), r = X((u) => {
11
11
  n((h) => {
12
12
  const d = new Set(h);
13
13
  return d.has(u) ? d.delete(u) : d.add(u), d;
@@ -38,7 +38,7 @@ function Ft(e, t) {
38
38
  return "empty";
39
39
  }
40
40
  const Ot = (e, t) => t ?? e === "number";
41
- function _e(e, t, n, o) {
41
+ function ye(e, t, n, o) {
42
42
  switch (Me(e)) {
43
43
  case "text":
44
44
  return e;
@@ -73,10 +73,10 @@ function ze(e, t) {
73
73
  }
74
74
  }
75
75
  }
76
- const cn = "ja", un = "nein";
77
- function Lt(e, t) {
76
+ const un = "ja", dn = "nein";
77
+ function Rt(e, t) {
78
78
  if (!Y(e)) {
79
- if (t) return Lt(t(e));
79
+ if (t) return Rt(t(e));
80
80
  switch (Me(e)) {
81
81
  case "text":
82
82
  return e;
@@ -85,7 +85,7 @@ function Lt(e, t) {
85
85
  case "date":
86
86
  return e.toISOString();
87
87
  case "boolean":
88
- return e ? cn : un;
88
+ return e ? un : dn;
89
89
  default:
90
90
  return;
91
91
  }
@@ -113,54 +113,54 @@ function Xe(e, t) {
113
113
  return [a(Math.min(...s)), a(Math.max(...s))];
114
114
  }
115
115
  }
116
- const Qe = 3, Ce = (e) => {
116
+ const Qe = 3, Se = (e) => {
117
117
  if (!Y(e))
118
118
  return e instanceof Date ? e.getTime() : typeof e == "boolean" ? e ? 1 : 0 : typeof e == "number" ? e : String(e);
119
119
  };
120
- function Be(e, t, n) {
121
- const o = Ce(e), r = Ce(t);
120
+ function Pe(e, t, n) {
121
+ const o = Se(e), r = Se(t);
122
122
  return o === void 0 || r === void 0 ? o === r ? 0 : o === void 0 ? 1 : -1 : typeof o == "number" && typeof r == "number" ? o - r : n(String(o), String(r));
123
123
  }
124
- function dn(e, t) {
125
- const n = t.compareText ?? Ct.compareText, o = (r, s, i) => {
124
+ function fn(e, t) {
125
+ const n = t.compareText ?? St.compareText, o = (r, s, i) => {
126
126
  var b;
127
127
  const a = /* @__PURE__ */ new Map(), c = t.levels[s];
128
128
  if (!c) return [];
129
129
  const u = /* @__PURE__ */ new Map();
130
130
  for (const g of r) {
131
- const _ = c.value(g), C = ge(_);
132
- let S = u.get(C);
133
- S || (S = {
134
- path: JSON.stringify([...i, C]),
135
- value: Y(_) ? void 0 : _,
131
+ const y = c.value(g), S = ge(y);
132
+ let C = u.get(S);
133
+ C || (C = {
134
+ path: JSON.stringify([...i, S]),
135
+ value: Y(y) ? void 0 : y,
136
136
  level: s,
137
137
  rows: [],
138
138
  groups: [],
139
139
  aggregates: {}
140
- }, u.set(C, S), a.set(S, [...i, C])), S.rows.push(g);
140
+ }, u.set(S, C), a.set(C, [...i, S])), C.rows.push(g);
141
141
  }
142
142
  for (const g of u.values())
143
- for (const _ of t.aggregates ?? []) g.aggregates[_.id] = Xe(_, g.rows);
143
+ for (const y of t.aggregates ?? []) g.aggregates[y.id] = Xe(y, g.rows);
144
144
  const h = (b = t.sort) == null ? void 0 : b.find(
145
145
  (g) => {
146
- var _;
147
- return g.column === c.id || ((_ = t.aggregates) == null ? void 0 : _.some((C) => C.id === g.column));
146
+ var y;
147
+ return g.column === c.id || ((y = t.aggregates) == null ? void 0 : y.some((S) => S.id === g.column));
148
148
  }
149
149
  ), d = (h == null ? void 0 : h.direction) === "desc" ? -1 : 1, m = h !== void 0 && h.column !== c.id ? h.column : void 0, w = (g) => {
150
- let _;
151
- for (const C of g.rows) {
152
- const S = c.order(C);
153
- Ce(S) !== void 0 && (_ === void 0 || Be(S, _, n) < 0) && (_ = S);
150
+ let y;
151
+ for (const S of g.rows) {
152
+ const C = c.order(S);
153
+ Se(C) !== void 0 && (y === void 0 || Pe(C, y, n) < 0) && (y = C);
154
154
  }
155
- return _;
156
- }, k = (g) => {
155
+ return y;
156
+ }, v = (g) => {
157
157
  if (m === void 0) return c.order ? w(g) : g.value;
158
- const _ = g.aggregates[m];
159
- return Array.isArray(_) ? _[0] : _;
160
- }, p = [...u.values()].sort((g, _) => {
161
- if (g.value === void 0 || _.value === void 0) return Be(g.value, _.value, n);
162
- const C = k(g), S = k(_), I = Be(C, S, n);
163
- return Ce(C) === void 0 || Ce(S) === void 0 ? I : I * d;
158
+ const y = g.aggregates[m];
159
+ return Array.isArray(y) ? y[0] : y;
160
+ }, p = [...u.values()].sort((g, y) => {
161
+ if (g.value === void 0 || y.value === void 0) return Pe(g.value, y.value, n);
162
+ const S = v(g), C = v(y), I = Pe(S, C, n);
163
+ return Se(S) === void 0 || Se(C) === void 0 ? I : I * d;
164
164
  });
165
165
  for (const g of p)
166
166
  g.groups = o(g.rows, s + 1, a.get(g));
@@ -168,32 +168,32 @@ function dn(e, t) {
168
168
  };
169
169
  return o(e, 0, []);
170
170
  }
171
- function fn(e, t) {
171
+ function hn(e, t) {
172
172
  const n = /* @__PURE__ */ new Set(), o = (r) => {
173
173
  for (const s of r)
174
174
  n.add(s.path), o(s.groups);
175
175
  };
176
176
  return o(e), t.filter((r) => n.has(r));
177
177
  }
178
- const hn = (e) => (t) => {
178
+ const gn = (e) => (t) => {
179
179
  if (!(t instanceof Date) || Number.isNaN(t.getTime())) return;
180
180
  const n = t.getFullYear(), o = t.getMonth(), r = t.getDate();
181
181
  return e === "year" ? new Date(n, 0, 1) : e === "month" ? new Date(n, o, 1) : e === "week" ? new Date(n, o, r - (t.getDay() + 6) % 7) : new Date(n, o, r);
182
182
  };
183
- function gn(e) {
183
+ function pn(e) {
184
184
  const t = new Date(e.getFullYear(), e.getMonth(), e.getDate() + 3 - (e.getDay() + 6) % 7), n = new Date(t.getFullYear(), 0, 4);
185
185
  return { week: 1 + Math.round((t.getTime() - n.getTime()) / 864e5 / 7 - ((n.getDay() + 6) % 7 - 3) / 7), year: t.getFullYear() };
186
186
  }
187
- function pn(e, t, n, o) {
187
+ function mn(e, t, n, o) {
188
188
  if (e === "year") return String(t.getFullYear());
189
189
  if (e === "month") return n.month(t);
190
190
  if (e === "week") {
191
- const { week: r, year: s } = gn(t);
191
+ const { week: r, year: s } = pn(t);
192
192
  return o.calendarWeek(r, s);
193
193
  }
194
194
  return n.date(t);
195
195
  }
196
- function mn(e, t) {
196
+ function wn(e, t) {
197
197
  const n = [], o = (r, s) => {
198
198
  for (const i of r) {
199
199
  const a = t.has(i.path);
@@ -205,12 +205,12 @@ function mn(e, t) {
205
205
  };
206
206
  return o(e, []), n;
207
207
  }
208
- function wn(e, t, n) {
208
+ function bn(e, t, n) {
209
209
  const o = n > 0 ? n : e.length || 1, r = Math.max(1, Math.ceil(e.length / o)), s = Math.min(Math.max(1, t), r), i = e.slice((s - 1) * o, s * o);
210
- return { lines: Rt(i), page: s, pageCount: r };
210
+ return { lines: Lt(i), page: s, pageCount: r };
211
211
  }
212
212
  const Ze = (e) => e.flatMap((t) => t.kind === "row" ? [t.row] : []);
213
- function Rt(e) {
213
+ function Lt(e) {
214
214
  const t = e[0];
215
215
  if (!t) return [...e];
216
216
  const n = t.parents.map((r, s) => ({
@@ -227,7 +227,7 @@ function et(e, t) {
227
227
  ...e.filter((n) => !t.includes(n.id))
228
228
  ] : e;
229
229
  }
230
- const ke = (e) => e == null || typeof e == "number" && Number.isNaN(e), bn = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : Ct.compareText(String(e), String(t));
230
+ const ve = (e) => e == null || typeof e == "number" && Number.isNaN(e), vn = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : St.compareText(String(e), String(t));
231
231
  function tt(e, t, n) {
232
232
  var x;
233
233
  const {
@@ -238,85 +238,85 @@ function tt(e, t, n) {
238
238
  pageSize: a,
239
239
  hidden: c,
240
240
  order: u
241
- } = n, h = et(t, u), d = c != null && c.length ? h.filter((A) => A.hideable === !1 || !c.includes(A.id)) : h, m = o.trim().toLowerCase(), w = t.filter((A) => A.searchable && A.value), k = (A) => !m || w.some((v) => {
242
- const F = v.value(A);
243
- return !ke(F) && String(F).toLowerCase().includes(m);
244
- }), p = e.filter((A) => k(A) && (r ? r(A) : !0)), b = Array.isArray(s) ? s : s ? [s] : [], g = b.map((A) => {
245
- const v = t.find((V) => V.id === A.column);
246
- if (!v || !v.compare && !v.value) return null;
247
- const F = A.direction === "asc" ? 1 : -1, L = v.compare, N = v.value;
241
+ } = n, h = et(t, u), d = c != null && c.length ? h.filter((A) => A.hideable === !1 || !c.includes(A.id)) : h, m = o.trim().toLowerCase(), w = t.filter((A) => A.searchable && A.value), v = (A) => !m || w.some((_) => {
242
+ const F = _.value(A);
243
+ return !ve(F) && String(F).toLowerCase().includes(m);
244
+ }), p = e.filter((A) => v(A) && (r ? r(A) : !0)), b = Array.isArray(s) ? s : s ? [s] : [], g = b.map((A) => {
245
+ const _ = t.find((V) => V.id === A.column);
246
+ if (!_ || !_.compare && !_.value) return null;
247
+ const F = A.direction === "asc" ? 1 : -1, R = _.compare, N = _.value;
248
248
  return N ? (V, z) => {
249
- const P = N(V), q = N(z);
250
- return ke(P) || ke(q) ? ke(P) === ke(q) ? 0 : ke(P) ? 1 : -1 : (L ? L(V, z) : bn(P, q)) * F;
251
- } : (V, z) => L(V, z) * F;
249
+ const B = N(V), q = N(z);
250
+ return ve(B) || ve(q) ? ve(B) === ve(q) ? 0 : ve(B) ? 1 : -1 : (R ? R(V, z) : vn(B, q)) * F;
251
+ } : (V, z) => R(V, z) * F;
252
252
  }).filter((A) => A !== null);
253
- if (g.length > 0 && p.sort((A, v) => {
253
+ if (g.length > 0 && p.sort((A, _) => {
254
254
  for (const F of g) {
255
- const L = F(A, v);
256
- if (L !== 0) return L;
255
+ const R = F(A, _);
256
+ if (R !== 0) return R;
257
257
  }
258
258
  return 0;
259
259
  }), (x = n.grouping) != null && x.levels.length) {
260
- const { folded: A, ...v } = n.grouping, F = dn(p, { ...v, sort: b }), L = mn(F, A), N = wn(L, i, a ?? 0);
260
+ const { folded: A, ..._ } = n.grouping, F = fn(p, { ..._, sort: b }), R = wn(F, A), N = bn(R, i, a ?? 0);
261
261
  return {
262
262
  columns: d,
263
263
  filtered: p,
264
264
  visible: Ze(N.lines),
265
265
  groups: F,
266
- lines: L,
266
+ lines: R,
267
267
  visibleLines: N.lines,
268
268
  page: N.page,
269
269
  pageCount: N.pageCount,
270
270
  columnCount: d.length
271
271
  };
272
272
  }
273
- const _ = a && a > 0 ? a : p.length || 1, C = Math.max(1, Math.ceil(p.length / _)), S = Math.min(Math.max(1, i), C), I = p.slice((S - 1) * _, S * _);
273
+ const y = a && a > 0 ? a : p.length || 1, S = Math.max(1, Math.ceil(p.length / y)), C = Math.min(Math.max(1, i), S), I = p.slice((C - 1) * y, C * y);
274
274
  return {
275
275
  columns: d,
276
276
  filtered: p,
277
277
  visible: I,
278
- page: S,
279
- pageCount: C,
278
+ page: C,
279
+ pageCount: S,
280
280
  columnCount: d.length
281
281
  };
282
282
  }
283
- function kn(e, t, n) {
284
- const { rowKey: o, filter: r, defaultSort: s = null, initialView: i, virtual: a, grouping: c } = n, [u, h] = H((i == null ? void 0 : i.search) ?? ""), [d, m] = H(() => {
283
+ function _n(e, t, n) {
284
+ const { rowKey: o, filter: r, defaultSort: s = null, initialView: i, virtual: a, grouping: c } = n, [u, h] = j((i == null ? void 0 : i.search) ?? ""), [d, m] = j(() => {
285
285
  var T;
286
286
  return (T = i == null ? void 0 : i.sort) != null && T.length ? [...i.sort] : s ? Array.isArray(s) ? [...s] : [s] : [];
287
- }), [w, k] = H((i == null ? void 0 : i.page) ?? 1), [p, b] = H(
287
+ }), [w, v] = j((i == null ? void 0 : i.page) ?? 1), [p, b] = j(
288
288
  (i == null ? void 0 : i.pageSize) ?? n.pageSize ?? 10
289
- ), [g, _] = H([]), [C, S] = H((i == null ? void 0 : i.hidden) ?? []), [I, x] = H((i == null ? void 0 : i.order) ?? []), [A, v] = H(() => {
289
+ ), [g, y] = j([]), [S, C] = j((i == null ? void 0 : i.hidden) ?? []), [I, x] = j((i == null ? void 0 : i.order) ?? []), [A, _] = j(() => {
290
290
  if (i != null && i.widths) return { ...i.widths };
291
291
  const T = {};
292
292
  for (const D of t)
293
293
  D.width !== void 0 && (T[D.id] = D.width);
294
294
  return T;
295
- }), F = a ? 0 : p, L = $(
295
+ }), F = a ? 0 : p, R = $(
296
296
  () => tt(e, t, {
297
297
  search: u,
298
298
  filter: r,
299
299
  sort: d,
300
300
  page: w,
301
301
  pageSize: F,
302
- hidden: C,
302
+ hidden: S,
303
303
  order: I,
304
304
  grouping: c
305
305
  }),
306
- [e, t, u, r, d, w, F, C, I, c]
307
- ), N = Qt(a ? (L.lines ?? L.filtered).length : 0, {
306
+ [e, t, u, r, d, w, F, S, I, c]
307
+ ), N = Qt(a ? (R.lines ?? R.filtered).length : 0, {
308
308
  rowHeight: (a == null ? void 0 : a.rowHeight) ?? 0,
309
309
  overscan: a == null ? void 0 : a.overscan
310
310
  }), V = $(
311
- () => a && L.lines ? L.lines.slice(N.from, N.to) : L.visibleLines,
312
- [a, L.lines, L.visibleLines, N.from, N.to]
311
+ () => a && R.lines ? R.lines.slice(N.from, N.to) : R.visibleLines,
312
+ [a, R.lines, R.visibleLines, N.from, N.to]
313
313
  ), z = $(
314
- () => a ? V ? Ze(V) : L.filtered.slice(N.from, N.to) : L.visible,
315
- [a, V, L.filtered, L.visible, N.from, N.to]
316
- ), P = $(() => L.filtered.map(o), [L.filtered, o]), q = ln(P), ie = X((T) => {
317
- h(T), k(1);
314
+ () => a ? V ? Ze(V) : R.filtered.slice(N.from, N.to) : R.visible,
315
+ [a, V, R.filtered, R.visible, N.from, N.to]
316
+ ), B = $(() => R.filtered.map(o), [R.filtered, o]), q = cn(B), ie = X((T) => {
317
+ h(T), v(1);
318
318
  }, []), ae = X((T) => {
319
- b(T), k(1);
319
+ b(T), v(1);
320
320
  }, []), de = X((T, D = !1) => {
321
321
  m((E) => {
322
322
  const ne = E.find((he) => he.column === T);
@@ -327,20 +327,20 @@ function kn(e, t, n) {
327
327
  return ne ? ne.direction === "asc" ? E.map(
328
328
  (he) => he.column === T ? { column: T, direction: "desc" } : he
329
329
  ) : E.filter((he) => he.column !== T) : [...E, { column: T, direction: "asc" }];
330
- }), k(1);
330
+ }), v(1);
331
331
  }, []), fe = X((T) => {
332
- _(
332
+ y(
333
333
  (D) => D.includes(T) ? D.filter((E) => E !== T) : [...D, T]
334
334
  );
335
335
  }, []), we = X(
336
336
  (T) => g.includes(T),
337
337
  [g]
338
338
  ), be = X((T) => {
339
- S(
339
+ C(
340
340
  (D) => D.includes(T) ? D.filter((E) => E !== T) : [...D, T]
341
341
  );
342
- }, []), ye = X((T, D) => {
343
- v((E) => {
342
+ }, []), ke = X((T, D) => {
343
+ _((E) => {
344
344
  if (D === void 0) {
345
345
  if (!(T in E)) return E;
346
346
  const ne = { ...E };
@@ -361,15 +361,15 @@ function kn(e, t, n) {
361
361
  return D === -1 ? void 0 : D + 1;
362
362
  },
363
363
  [d]
364
- ), y = $(
365
- () => et(t, I).filter((T) => T.label !== void 0 && T.hideable !== !1).map((T) => ({ id: T.id, label: T.label, visible: !C.includes(T.id) })),
366
- [t, I, C]
367
- ), R = n.pageSize ?? 10, K = $(() => {
364
+ ), k = $(
365
+ () => et(t, I).filter((T) => T.label !== void 0 && T.hideable !== !1).map((T) => ({ id: T.id, label: T.label, visible: !S.includes(T.id) })),
366
+ [t, I, S]
367
+ ), L = n.pageSize ?? 10, K = $(() => {
368
368
  const T = {};
369
369
  for (const D of t)
370
370
  D.width !== void 0 && (T[D.id] = D.width);
371
371
  return T;
372
- }, [t]), j = $(() => {
372
+ }, [t]), H = $(() => {
373
373
  const T = {};
374
374
  for (const [D, E] of Object.entries(A))
375
375
  K[D] !== E && (T[D] = E);
@@ -389,27 +389,27 @@ function kn(e, t, n) {
389
389
  /* Without paging there is no page a view could carry - a page three in
390
390
  the view of a virtualised table would be a promise nobody redeems on
391
391
  opening. */
392
- ...!a && L.page > 1 ? { page: L.page } : {},
393
- ...!a && p !== R ? { pageSize: p } : {},
394
- ...C.length ? { hidden: C } : {},
392
+ ...!a && R.page > 1 ? { page: R.page } : {},
393
+ ...!a && p !== L ? { pageSize: p } : {},
394
+ ...S.length ? { hidden: S } : {},
395
395
  ...I.length ? { order: I } : {},
396
- ...Object.keys(j).length ? { widths: j } : {}
396
+ ...Object.keys(H).length ? { widths: H } : {}
397
397
  }),
398
398
  [
399
399
  a,
400
400
  u,
401
401
  d,
402
402
  J,
403
- L.page,
403
+ R.page,
404
404
  p,
405
- R,
406
- C,
405
+ L,
406
+ S,
407
407
  I,
408
- j
408
+ H
409
409
  ]
410
410
  );
411
411
  return {
412
- ...L,
412
+ ...R,
413
413
  visible: z,
414
414
  visibleLines: V,
415
415
  virtual: a ? N : void 0,
@@ -420,140 +420,140 @@ function kn(e, t, n) {
420
420
  toggleSort: de,
421
421
  sortDirectionOf: le,
422
422
  sortRankOf: te,
423
- setPage: k,
423
+ setPage: v,
424
424
  pageSize: p,
425
425
  setPageSize: ae,
426
426
  expanded: g,
427
427
  toggleRow: fe,
428
428
  isExpanded: we,
429
- hidden: C,
429
+ hidden: S,
430
430
  toggleColumn: be,
431
- columnChoices: y,
431
+ columnChoices: k,
432
432
  order: I,
433
433
  setOrder: x,
434
434
  widths: A,
435
- setWidth: ye,
435
+ setWidth: ke,
436
436
  selection: q
437
437
  };
438
438
  }
439
- function vn() {
439
+ function yn() {
440
440
  var t;
441
441
  const e = import.meta;
442
442
  return typeof ((t = e.env) == null ? void 0 : t.DEV) == "boolean" ? e.env.DEV : typeof process < "u" && (process != null && process.env) ? process.env.NODE_ENV !== "production" : !1;
443
443
  }
444
- const Mt = vn(), at = /* @__PURE__ */ new Set();
444
+ const Mt = yn(), at = /* @__PURE__ */ new Set();
445
445
  function pe(e, t) {
446
446
  !Mt || at.has(e) || (at.add(e), console.warn(`@umriss-ui/table: ${t}`));
447
447
  }
448
- const _n = "_frame_1wkkr_11 _text_1hv7a_23", yn = "_children_1wkkr_23", Cn = "_scroll_1wkkr_29 _scroll_1hv7a_40", Sn = "_footerTarget_1wkkr_36", Nn = "_table_1wkkr_40", xn = "_th_1wkkr_48 _ring_1hv7a_65", An = "_sticky_1wkkr_63", Tn = "_td_1wkkr_71", Fn = "_rowHeader_1wkkr_83", On = "_compact_1wkkr_99", Ln = "_numeric_1wkkr_114", Rn = "_absent_1wkkr_126", Mn = "_striped_1wkkr_130", Vn = "_stickyCell_1wkkr_154", Dn = "_sortButton_1wkkr_166 _ring_1hv7a_65", In = "_sortIndicator_1wkkr_191", Bn = "_sortArrow_1wkkr_198", Pn = "_sortArrowDesc_1wkkr_202", Gn = "_sortActive_1wkkr_210", En = "_sortRank_1wkkr_216", zn = "_thFlex_1wkkr_224", jn = "_footerKind_1wkkr_245", Hn = "_emptyCell_1wkkr_253", $n = "_empty_1wkkr_253", Kn = "_emptyTitle_1wkkr_269", Wn = "_skeleton_1wkkr_276", qn = "_toolbar_1wkkr_304 _text_1hv7a_23", Yn = "_toolbarGroup_1wkkr_318", Un = "_toolbarInfo_1wkkr_335", Jn = "_pagination_1wkkr_341 _text_1hv7a_23", Xn = "_paginationControls_1wkkr_354", Qn = "_pageSize_1wkkr_361", Zn = "_paginationStatus_1wkkr_373", eo = "_filterButton_1wkkr_382 _ring_1hv7a_65", to = "_filterActive_1wkkr_405", no = "_filterPanel_1wkkr_410", oo = "_filterContent_1wkkr_423 _scroll_1hv7a_40", ro = "_filterFooter_1wkkr_434", so = "_filterLabel_1wkkr_448", io = "_filterValue_1wkkr_458", ao = "_filteredCount_1wkkr_464", lo = "_rangeFields_1wkkr_475", co = "_rangePeriod_1wkkr_485", uo = "_conditions_1wkkr_491", fo = "_conditionButton_1wkkr_497", ho = "_condition_1wkkr_491", go = "_columnsPanel_1wkkr_521", po = "_columnsList_1wkkr_529", mo = "_columnsEntry_1wkkr_538", wo = "_move_1wkkr_550", bo = "_groupingChoice_1wkkr_585", ko = "_groupingHeading_1wkkr_591", vo = "_groupingOptions_1wkkr_600", _o = "_groupingOption_1wkkr_600 _ring_1hv7a_65", yo = "_groupingLevel_1wkkr_639", Co = "_groupingTag_1wkkr_644", So = "_groupingTrigger_1wkkr_651", No = "_groupingPrefix_1wkkr_656", xo = "_groupingPath_1wkkr_661", Ao = "_groupingSeparator_1wkkr_665", To = "_groupHeader_1wkkr_682", Fo = "_spanCell_1wkkr_723", Oo = "_groupFolded_1wkkr_772", Lo = "_spanValue_1wkkr_776", Ro = "_groupLabel_1wkkr_777", Mo = "_spanText_1wkkr_789", Vo = "_groupValue_1wkkr_790", Do = "_groupCount_1wkkr_797", Io = "_continued_1wkkr_811", Bo = "_spanSelect_1wkkr_842", Po = "_fold_1wkkr_856", Go = "_foldClosed_1wkkr_888", Eo = "_foldedCount_1wkkr_898", zo = "_shareHost_1wkkr_906", jo = "_shareBar_1wkkr_913", Ho = "_expander_1wkkr_925", $o = "_expanderOpen_1wkkr_956", Ko = "_detailRow_1wkkr_960", Wo = "_detailCell_1wkkr_960", qo = "_actionsCell_1wkkr_968", Yo = "_actions_1wkkr_968", Uo = "_grip_1wkkr_996", Jo = "_virtualBody_1wkkr_1037", Xo = "_virtualRow_1wkkr_1045", Qo = "_fillerRow_1wkkr_1050", Zo = "_control_1wkkr_145", f = {
449
- frame: _n,
450
- children: yn,
448
+ const kn = "_frame_19w57_11 _text_1hv7a_23", Sn = "_children_19w57_23", Cn = "_scroll_19w57_29 _scroll_1hv7a_40", Nn = "_footerTarget_19w57_36", xn = "_table_19w57_40", An = "_th_19w57_48 _ring_1hv7a_65", Tn = "_sticky_19w57_63", Fn = "_td_19w57_71", On = "_rowHeader_19w57_83", Rn = "_compact_19w57_99", Ln = "_numeric_19w57_114", Mn = "_absent_19w57_126", Vn = "_striped_19w57_130", Dn = "_stickyCell_19w57_154", In = "_sortButton_19w57_166 _ring_1hv7a_65", Pn = "_sortIndicator_19w57_194", Bn = "_sortArrow_19w57_201", Gn = "_sortArrowDesc_19w57_205", En = "_sortActive_19w57_213", zn = "_sortRank_19w57_219", Hn = "_thFlex_19w57_227", jn = "_footerKind_19w57_248", $n = "_emptyCell_19w57_256", Kn = "_empty_19w57_256", Wn = "_emptyTitle_19w57_272", qn = "_skeleton_19w57_279", Yn = "_toolbar_19w57_307 _text_1hv7a_23", Un = "_toolbarGroup_19w57_321", Jn = "_toolbarInfo_19w57_338", Xn = "_pagination_19w57_344 _text_1hv7a_23", Qn = "_paginationControls_19w57_357", Zn = "_pageSize_19w57_364", eo = "_paginationStatus_19w57_376", to = "_filterButton_19w57_385 _ring_1hv7a_65", no = "_filterActive_19w57_412", oo = "_filterPanel_19w57_417", ro = "_filterContent_19w57_430 _scroll_1hv7a_40", so = "_filterFooter_19w57_441", io = "_filterLabel_19w57_455", ao = "_filterValue_19w57_465", lo = "_filteredCount_19w57_471", co = "_rangeFields_19w57_482", uo = "_rangePeriod_19w57_492", fo = "_conditions_19w57_498", ho = "_conditionButton_19w57_504", go = "_condition_19w57_498", po = "_columnsPanel_19w57_528", mo = "_columnsList_19w57_536", wo = "_columnsEntry_19w57_545", bo = "_move_19w57_557", vo = "_groupingChoice_19w57_595", _o = "_groupingHeading_19w57_601", yo = "_groupingOptions_19w57_610", ko = "_groupingOption_19w57_610 _ring_1hv7a_65", So = "_groupingLevel_19w57_653", Co = "_groupingTag_19w57_658", No = "_groupingTrigger_19w57_665", xo = "_groupingPrefix_19w57_670", Ao = "_groupingPath_19w57_675", To = "_groupingSeparator_19w57_679", Fo = "_groupHeader_19w57_696", Oo = "_spanCell_19w57_737", Ro = "_groupFolded_19w57_786", Lo = "_spanValue_19w57_790", Mo = "_groupLabel_19w57_791", Vo = "_spanText_19w57_803", Do = "_groupValue_19w57_804", Io = "_groupCount_19w57_811", Po = "_continued_19w57_825", Bo = "_spanSelect_19w57_856", Go = "_fold_19w57_870", Eo = "_foldClosed_19w57_906", zo = "_foldedCount_19w57_916", Ho = "_shareHost_19w57_924", jo = "_shareBar_19w57_931", $o = "_expander_19w57_943", Ko = "_expanderOpen_19w57_978", Wo = "_detailRow_19w57_982", qo = "_detailCell_19w57_982", Yo = "_actionsCell_19w57_990", Uo = "_actions_19w57_990", Jo = "_grip_19w57_1018", Xo = "_virtualBody_19w57_1059", Qo = "_virtualRow_19w57_1071", Zo = "_fillerRow_19w57_1076", er = "_control_19w57_145", f = {
449
+ frame: kn,
450
+ children: Sn,
451
451
  scroll: Cn,
452
- footerTarget: Sn,
453
- table: Nn,
454
- th: xn,
455
- sticky: An,
456
- td: Tn,
457
- rowHeader: Fn,
458
- compact: On,
452
+ footerTarget: Nn,
453
+ table: xn,
454
+ th: An,
455
+ sticky: Tn,
456
+ td: Fn,
457
+ rowHeader: On,
458
+ compact: Rn,
459
459
  numeric: Ln,
460
- absent: Rn,
461
- striped: Mn,
462
- stickyCell: Vn,
463
- sortButton: Dn,
464
- sortIndicator: In,
460
+ absent: Mn,
461
+ striped: Vn,
462
+ stickyCell: Dn,
463
+ sortButton: In,
464
+ sortIndicator: Pn,
465
465
  sortArrow: Bn,
466
- sortArrowDesc: Pn,
467
- sortActive: Gn,
468
- sortRank: En,
469
- thFlex: zn,
466
+ sortArrowDesc: Gn,
467
+ sortActive: En,
468
+ sortRank: zn,
469
+ thFlex: Hn,
470
470
  footerKind: jn,
471
- emptyCell: Hn,
472
- empty: $n,
473
- emptyTitle: Kn,
474
- skeleton: Wn,
475
- toolbar: qn,
476
- toolbarGroup: Yn,
477
- toolbarInfo: Un,
478
- pagination: Jn,
479
- paginationControls: Xn,
480
- pageSize: Qn,
481
- paginationStatus: Zn,
482
- filterButton: eo,
483
- filterActive: to,
484
- filterPanel: no,
485
- filterContent: oo,
486
- filterFooter: ro,
487
- filterLabel: so,
488
- filterValue: io,
489
- filteredCount: ao,
490
- rangeFields: lo,
491
- rangePeriod: co,
492
- conditions: uo,
493
- conditionButton: fo,
494
- condition: ho,
495
- columnsPanel: go,
496
- columnsList: po,
497
- columnsEntry: mo,
498
- move: wo,
499
- groupingChoice: bo,
500
- groupingHeading: ko,
501
- groupingOptions: vo,
502
- groupingOption: _o,
503
- groupingLevel: yo,
471
+ emptyCell: $n,
472
+ empty: Kn,
473
+ emptyTitle: Wn,
474
+ skeleton: qn,
475
+ toolbar: Yn,
476
+ toolbarGroup: Un,
477
+ toolbarInfo: Jn,
478
+ pagination: Xn,
479
+ paginationControls: Qn,
480
+ pageSize: Zn,
481
+ paginationStatus: eo,
482
+ filterButton: to,
483
+ filterActive: no,
484
+ filterPanel: oo,
485
+ filterContent: ro,
486
+ filterFooter: so,
487
+ filterLabel: io,
488
+ filterValue: ao,
489
+ filteredCount: lo,
490
+ rangeFields: co,
491
+ rangePeriod: uo,
492
+ conditions: fo,
493
+ conditionButton: ho,
494
+ condition: go,
495
+ columnsPanel: po,
496
+ columnsList: mo,
497
+ columnsEntry: wo,
498
+ move: bo,
499
+ groupingChoice: vo,
500
+ groupingHeading: _o,
501
+ groupingOptions: yo,
502
+ groupingOption: ko,
503
+ groupingLevel: So,
504
504
  groupingTag: Co,
505
- groupingTrigger: So,
506
- groupingPrefix: No,
507
- groupingPath: xo,
508
- groupingSeparator: Ao,
509
- groupHeader: To,
510
- spanCell: Fo,
511
- groupFolded: Oo,
505
+ groupingTrigger: No,
506
+ groupingPrefix: xo,
507
+ groupingPath: Ao,
508
+ groupingSeparator: To,
509
+ groupHeader: Fo,
510
+ spanCell: Oo,
511
+ groupFolded: Ro,
512
512
  spanValue: Lo,
513
- groupLabel: Ro,
514
- spanText: Mo,
515
- groupValue: Vo,
516
- groupCount: Do,
517
- continued: Io,
513
+ groupLabel: Mo,
514
+ spanText: Vo,
515
+ groupValue: Do,
516
+ groupCount: Io,
517
+ continued: Po,
518
518
  spanSelect: Bo,
519
- fold: Po,
520
- foldClosed: Go,
521
- foldedCount: Eo,
522
- shareHost: zo,
519
+ fold: Go,
520
+ foldClosed: Eo,
521
+ foldedCount: zo,
522
+ shareHost: Ho,
523
523
  shareBar: jo,
524
- expander: Ho,
525
- expanderOpen: $o,
526
- detailRow: Ko,
527
- detailCell: Wo,
528
- actionsCell: qo,
529
- actions: Yo,
530
- grip: Uo,
531
- virtualBody: Jo,
532
- virtualRow: Xo,
533
- fillerRow: Qo,
534
- control: Zo
524
+ expander: $o,
525
+ expanderOpen: Ko,
526
+ detailRow: Wo,
527
+ detailCell: qo,
528
+ actionsCell: Yo,
529
+ actions: Uo,
530
+ grip: Jo,
531
+ virtualBody: Xo,
532
+ virtualRow: Qo,
533
+ fillerRow: Zo,
534
+ control: er
535
535
  };
536
- function Js(e) {
536
+ function Xs(e) {
537
537
  return e;
538
538
  }
539
539
  const Ne = /* @__PURE__ */ new WeakMap();
540
540
  function Vt(e, t) {
541
541
  return Ne.set(e, t), e;
542
542
  }
543
- const er = (e) => Ne.has(e);
543
+ const tr = (e) => Ne.has(e);
544
544
  function me(e) {
545
- return e === "list" ? sr : e === "range" ? hr : typeof e == "object" && e !== null ? e : void 0;
545
+ return e === "list" ? ir : e === "range" ? gr : typeof e == "object" && e !== null ? e : void 0;
546
546
  }
547
547
  function Dt(e, t) {
548
548
  if (t == null) return "empty";
549
549
  const n = Ne.get(e);
550
550
  return n ? n.isCondition(t) ? n.isEmpty(t) ? "empty" : "effective" : "foreign" : "effective";
551
551
  }
552
- function tr(e, t, n) {
552
+ function nr(e, t, n) {
553
553
  var o;
554
554
  return Y(t) ? ((o = Ne.get(e)) == null ? void 0 : o.absentMatches(n)) ?? !1 : e.matches(t, n);
555
555
  }
556
- function nr(e, t, n) {
556
+ function or(e, t, n) {
557
557
  const o = Ne.get(e);
558
558
  return o ? o.describeIn(t, n) : e.describe(t);
559
559
  }
@@ -561,7 +561,7 @@ const lt = (e) => e instanceof Date ? e.getTime() : typeof e == "number" ? e : v
561
561
  const o = lt(t.value), r = lt(n.value);
562
562
  return o !== void 0 && r !== void 0 ? o - r : e.compareText(t.text, n.text);
563
563
  };
564
- function or(e, t, n) {
564
+ function rr(e, t, n) {
565
565
  const o = /* @__PURE__ */ new Map();
566
566
  let r = !1;
567
567
  for (const i of e) {
@@ -576,12 +576,12 @@ function or(e, t, n) {
576
576
  return { values: [...o.values()].map((i) => ({ value: i, text: String(i) })).sort(It(n)).map(({ value: i }) => i), absent: r };
577
577
  }
578
578
  const ct = /* @__PURE__ */ new WeakMap();
579
- function je(e) {
579
+ function He(e) {
580
580
  let t = ct.get(e);
581
581
  return t || (t = new Set(e.map(ge)), ct.set(e, t)), t;
582
582
  }
583
- const He = (e, t) => Y(e) ? t.wording.cellAbsentValue : _e(e, t.format, t.formats, t.wording) ?? String(e);
584
- function rr({
583
+ const je = (e, t) => Y(e) ? t.wording.cellAbsentValue : ye(e, t.format, t.formats, t.wording) ?? String(e);
584
+ function sr({
585
585
  condition: e,
586
586
  setCondition: t,
587
587
  values: n,
@@ -589,16 +589,16 @@ function rr({
589
589
  format: r
590
590
  }) {
591
591
  const s = ue(), i = U(), a = $(() => e ?? [], [e]), c = $(() => {
592
- const d = { formats: s, wording: i, format: r }, m = n.map((b) => ({ key: ge(b), text: He(b, d), value: b }));
592
+ const d = { formats: s, wording: i, format: r }, m = n.map((b) => ({ key: ge(b), text: je(b, d), value: b }));
593
593
  m.sort(It(s));
594
- const w = new Set(m.map((b) => b.key)), k = a.filter((b) => !Y(b) && !w.has(ge(b))).map((b) => ({ key: ge(b), text: He(b, d), value: b })), p = o || a.some(Y) ? [{ key: Je, text: i.cellAbsentValue, value: null }] : [];
595
- return [...m, ...k, ...p];
596
- }, [n, a, o, r, s, i]), u = je(a), h = (d) => {
594
+ const w = new Set(m.map((b) => b.key)), v = a.filter((b) => !Y(b) && !w.has(ge(b))).map((b) => ({ key: ge(b), text: je(b, d), value: b })), p = o || a.some(Y) ? [{ key: Je, text: i.cellAbsentValue, value: null }] : [];
595
+ return [...m, ...v, ...p];
596
+ }, [n, a, o, r, s, i]), u = He(a), h = (d) => {
597
597
  const m = u.has(d.key) ? a.filter((w) => ge(w) !== d.key) : [...a, d.value];
598
598
  t(m.length > 0 ? m : null);
599
599
  };
600
600
  return /* @__PURE__ */ l("div", { className: f.filterContent, children: c.map((d) => /* @__PURE__ */ l(
601
- Se,
601
+ Ce,
602
602
  {
603
603
  label: d.text,
604
604
  checked: u.has(d.key),
@@ -607,28 +607,28 @@ function rr({
607
607
  d.key
608
608
  )) });
609
609
  }
610
- const sr = Vt(
610
+ const ir = Vt(
611
611
  {
612
- matches: (e, t) => je(t).has(ge(e)),
613
- Input: rr,
612
+ matches: (e, t) => He(t).has(ge(e)),
613
+ Input: sr,
614
614
  describe: (e) => e.map((t) => Y(t) ? "–" : String(t)).join(", ")
615
615
  },
616
616
  {
617
617
  isCondition: (e) => Array.isArray(e),
618
618
  isEmpty: (e) => e.length === 0,
619
- absentMatches: (e) => je(e).has(Je),
619
+ absentMatches: (e) => He(e).has(Je),
620
620
  /* From three values on the first two and how many more: a condition is one
621
621
  line in the table toolbar, not a list. */
622
622
  describeIn: (e, t) => {
623
- const n = e.map((r) => He(r, t));
623
+ const n = e.map((r) => je(r, t));
624
624
  if (n.length <= 2) return n.join(", ");
625
625
  const o = n.length - 2;
626
626
  return `${n.slice(0, 2).join(", ")} ${t.wording.moreValues(o, t.formats.count(o))}`;
627
627
  }
628
628
  }
629
- ), ir = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), ar = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime(), ve = (e) => typeof e == "number" && Number.isFinite(e), ce = (e) => e instanceof Date && !Number.isNaN(e.getTime()), lr = (e) => ce(e) ? ir(e) : ve(e) ? e : void 0, cr = (e) => ce(e) ? { value: ar(e), open: !0 } : ve(e) ? { value: e, open: !1 } : void 0, Ae = (e, t) => ce(e) ? t.formats.date(e) : _e(e, t.format, t.formats, t.wording) ?? String(e);
630
- function ur({ condition: e, setCondition: t }) {
631
- const n = U(), [o, r] = H(null), s = o !== null, i = o ? o.from : ve(e == null ? void 0 : e.from) ? e.from : null, a = o ? o.to : ve(e == null ? void 0 : e.to) ? e.to : null, c = (u, h) => {
629
+ ), ar = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), lr = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime(), _e = (e) => typeof e == "number" && Number.isFinite(e), ce = (e) => e instanceof Date && !Number.isNaN(e.getTime()), cr = (e) => ce(e) ? ar(e) : _e(e) ? e : void 0, ur = (e) => ce(e) ? { value: lr(e), open: !0 } : _e(e) ? { value: e, open: !1 } : void 0, Ae = (e, t) => ce(e) ? t.formats.date(e) : ye(e, t.format, t.formats, t.wording) ?? String(e);
630
+ function dr({ condition: e, setCondition: t }) {
631
+ const n = U(), [o, r] = j(null), s = o !== null, i = o ? o.from : _e(e == null ? void 0 : e.from) ? e.from : null, a = o ? o.to : _e(e == null ? void 0 : e.to) ? e.to : null, c = (u, h) => {
632
632
  const d = { from: i, to: a, [u]: h };
633
633
  if (d.from !== null && d.to !== null && d.from > d.to) {
634
634
  r(d);
@@ -648,7 +648,7 @@ function ur({ condition: e, setCondition: t }) {
648
648
  /* @__PURE__ */ l(rt, { label: n.filterTo, error: s ? n.rangeInvalid : void 0, children: /* @__PURE__ */ l(st, { size: "sm", value: a, onChange: (u) => c("to", u) }) })
649
649
  ] });
650
650
  }
651
- function dr({ condition: e, setCondition: t }) {
651
+ function fr({ condition: e, setCondition: t }) {
652
652
  const n = ce(e == null ? void 0 : e.from) && ce(e == null ? void 0 : e.to) ? { from: e.from, to: e.to } : null;
653
653
  return /* @__PURE__ */ l("div", { className: f.rangePeriod, children: /* @__PURE__ */ l(
654
654
  Zt,
@@ -660,23 +660,23 @@ function dr({ condition: e, setCondition: t }) {
660
660
  }
661
661
  ) });
662
662
  }
663
- function fr(e) {
664
- return e.kind === "date" ? /* @__PURE__ */ l(dr, { ...e }) : /* @__PURE__ */ l(ur, { ...e });
663
+ function hr(e) {
664
+ return e.kind === "date" ? /* @__PURE__ */ l(fr, { ...e }) : /* @__PURE__ */ l(dr, { ...e });
665
665
  }
666
- const hr = Vt(
666
+ const gr = Vt(
667
667
  {
668
668
  matches: (e, t) => {
669
- const n = ce(e) ? e.getTime() : ve(e) ? e : void 0;
669
+ const n = ce(e) ? e.getTime() : _e(e) ? e : void 0;
670
670
  if (n === void 0) return !1;
671
- const o = lr(t.from), r = cr(t.to);
671
+ const o = cr(t.from), r = ur(t.to);
672
672
  return !(o !== void 0 && n < o || r !== void 0 && (r.open ? n >= r.value : n > r.value));
673
673
  },
674
- Input: fr,
674
+ Input: hr,
675
675
  describe: (e) => [e.from, e.to].map((t) => t === void 0 ? "" : String(t)).join("–")
676
676
  },
677
677
  {
678
678
  isCondition: (e) => typeof e != "object" || e === null || Array.isArray(e) || e instanceof Date ? !1 : Object.entries(e).every(
679
- ([n, o]) => (n === "from" || n === "to") && (o === void 0 || ve(o) || ce(o))
679
+ ([n, o]) => (n === "from" || n === "to") && (o === void 0 || _e(o) || ce(o))
680
680
  ),
681
681
  isEmpty: (e) => e.from === void 0 && e.to === void 0,
682
682
  absentMatches: () => !1,
@@ -693,13 +693,13 @@ const hr = Vt(
693
693
  }
694
694
  }
695
695
  );
696
- class Pe {
696
+ class Be {
697
697
  constructor(t) {
698
- B(this, "entries", /* @__PURE__ */ new Map());
698
+ P(this, "entries", /* @__PURE__ */ new Map());
699
699
  /** Keys in the order of the running pass. */
700
- B(this, "pass", []);
700
+ P(this, "pass", []);
701
701
  /** Order from the markers in the DOM, after the last commit. */
702
- B(this, "dom", []);
702
+ P(this, "dom", []);
703
703
  this.markerAttribute = t;
704
704
  }
705
705
  note(t) {
@@ -743,58 +743,58 @@ const ut = (e) => JSON.stringify([
743
743
  e.group,
744
744
  e.groupable
745
745
  ]), dt = (e, t) => e == null ? void 0 : e[t];
746
- class gr {
746
+ class pr {
747
747
  constructor() {
748
- B(this, "columns", new Pe("data-umriss-column"));
749
- B(this, "actions", new Pe("data-umriss-action"));
748
+ P(this, "columns", new Be("data-umriss-column"));
749
+ P(this, "actions", new Be("data-umriss-action"));
750
750
  /** The group keys: values to group by that are no column. */
751
- B(this, "groupKeys", new Pe("data-umriss-groupkey"));
752
- B(this, "signatures", /* @__PURE__ */ new Map());
751
+ P(this, "groupKeys", new Be("data-umriss-groupkey"));
752
+ P(this, "signatures", /* @__PURE__ */ new Map());
753
753
  /** The row detail: the presentation of the `RowDetail` that registered last. */
754
- B(this, "detail", null);
754
+ P(this, "detail", null);
755
755
  /** How many `RowActions` stand right now. */
756
- B(this, "actionGroups", /* @__PURE__ */ new Set());
756
+ P(this, "actionGroups", /* @__PURE__ */ new Set());
757
757
  /** Whether the row header column sticks - it then stands first, on screen, in
758
758
  the column menu and in the export alike. */
759
- B(this, "stickyRowHeader", !1);
759
+ P(this, "stickyRowHeader", !1);
760
760
  /* Without a pagination bar the table does not page: one that stops quietly at
761
761
  the tenth row because nobody put one there is a trap (found at the alarm
762
762
  list, umriss-table 13). Without a table toolbar, but with a search or a
763
763
  column filter, the table puts one there itself (table-filters 04):
764
764
  conditions and the ratio need a place, and a place that came into being
765
765
  only with the first condition would shift the table. */
766
- B(this, "parts", /* @__PURE__ */ new Map());
766
+ P(this, "parts", /* @__PURE__ */ new Map());
767
767
  /** The element the table's children stand in - for the markers. */
768
- B(this, "children", null);
769
- B(this, "hook", null);
770
- B(this, "structure", 0);
771
- B(this, "values", 0);
772
- B(this, "presentation", 0);
773
- B(this, "hookVersion", 0);
774
- B(this, "reported", "");
775
- B(this, "listeners", /* @__PURE__ */ new Set());
768
+ P(this, "children", null);
769
+ P(this, "hook", null);
770
+ P(this, "structure", 0);
771
+ P(this, "values", 0);
772
+ P(this, "presentation", 0);
773
+ P(this, "hookVersion", 0);
774
+ P(this, "reported", "");
775
+ P(this, "listeners", /* @__PURE__ */ new Set());
776
776
  /* --- Subscription ------------------------------------------------------------- */
777
- B(this, "subscribe", (t) => (this.listeners.add(t), () => {
777
+ P(this, "subscribe", (t) => (this.listeners.add(t), () => {
778
778
  this.listeners.delete(t);
779
779
  }));
780
780
  /** What the hook reads. */
781
- B(this, "structureVersion", () => this.structure);
781
+ P(this, "structureVersion", () => this.structure);
782
782
  /** What body and unbound parts read. Every counter only rises, so the sum
783
783
  rises exactly when one of them rises. */
784
- B(this, "bodyVersion", () => this.structure + this.values + this.presentation + this.hookVersion);
784
+ P(this, "bodyVersion", () => this.structure + this.values + this.presentation + this.hookVersion);
785
785
  /** The focus a fold may hide: the focused element of a grouped line, the
786
786
  group that line stands in, and its table - noted before the fold, since
787
787
  afterwards the element may be gone and the focus lost. */
788
- B(this, "focusBeforeFold", null);
788
+ P(this, "focusBeforeFold", null);
789
789
  /** Whether the table lets itself be grouped at all (`<Table groupable>`). */
790
- B(this, "tableGroupable", !0);
791
- B(this, "groupingCache", null);
790
+ P(this, "tableGroupable", !0);
791
+ P(this, "groupingCache", null);
792
792
  /* --- The kind of a column ------------------------------------------------------- */
793
- B(this, "kinds", /* @__PURE__ */ new Map());
793
+ P(this, "kinds", /* @__PURE__ */ new Map());
794
794
  /* --- The model ------------------------------------------------------------------ */
795
- B(this, "modelCache", null);
796
- B(this, "projectionCache", null);
797
- B(this, "unpaged", null);
795
+ P(this, "modelCache", null);
796
+ P(this, "projectionCache", null);
797
+ P(this, "unpaged", null);
798
798
  }
799
799
  /** Reports from a layout effect what has changed since the last report.
800
800
  Without a change nothing happens. */
@@ -943,7 +943,7 @@ class gr {
943
943
  const h = c.read(u);
944
944
  if (h == null) return;
945
945
  const { ownGroupValue: d, group: m } = c.spec;
946
- return d ? d(h) : m ? hn(m)(h) : h;
946
+ return d ? d(h) : m ? gn(m)(h) : h;
947
947
  },
948
948
  /* A value of one's own is a name; its groups stand by what they hold. */
949
949
  order: c.spec.ownGroupValue ? (u) => ze(c.read(u), c.spec.ownSortValue) : void 0
@@ -997,7 +997,7 @@ class gr {
997
997
  value: h || d ? m : void 0,
998
998
  /* Text sorts with the provider's comparison, not with the built-in
999
999
  German one (spec, the table of defaults). */
1000
- compare: u === "text" && !c.ownSortValue ? (w, k) => n.compareText(String(m(w)), String(m(k))) : void 0,
1000
+ compare: u === "text" && !c.ownSortValue ? (w, v) => n.compareText(String(m(w)), String(m(v))) : void 0,
1001
1001
  searchable: d,
1002
1002
  hideable: !c.rowHeader,
1003
1003
  resizable: c.resizable,
@@ -1033,7 +1033,7 @@ class gr {
1033
1033
  hidden: o.hidden,
1034
1034
  order: o.order,
1035
1035
  grouping: this.groupingFor(t)
1036
- }, s = tt(t.admitted, n, r), i = o.virtual ? pr(s, o.virtual.from, o.virtual.to) : s;
1036
+ }, s = tt(t.admitted, n, r), i = o.virtual ? mr(s, o.virtual.from, o.virtual.to) : s;
1037
1037
  return this.projectionCache = { hook: t, columns: n, projection: i }, i;
1038
1038
  }
1039
1039
  /* --- The hook's snapshot ---------------------------------------------------------- */
@@ -1104,15 +1104,15 @@ class gr {
1104
1104
  this.actions.entries.delete(t) && this.structure++;
1105
1105
  }
1106
1106
  }
1107
- function pr(e, t, n) {
1107
+ function mr(e, t, n) {
1108
1108
  if (!e.lines) return { ...e, visible: e.filtered.slice(t, n) };
1109
1109
  const o = e.lines.slice(t, n);
1110
1110
  return { ...e, visibleLines: o, visible: Ze(o) };
1111
1111
  }
1112
- const Bt = /* @__PURE__ */ new WeakMap(), mr = (e, t) => {
1113
- Bt.set(e, t);
1114
- }, wr = (e) => typeof e == "function" || typeof e == "object" && e !== null ? Bt.get(e) : void 0, G = (...e) => e.filter(Boolean).join(" ");
1115
- function Pt({
1112
+ const Pt = /* @__PURE__ */ new WeakMap(), wr = (e, t) => {
1113
+ Pt.set(e, t);
1114
+ }, br = (e) => typeof e == "function" || typeof e == "object" && e !== null ? Pt.get(e) : void 0, G = (...e) => e.filter(Boolean).join(" ");
1115
+ function Bt({
1116
1116
  entry: e,
1117
1117
  registry: t,
1118
1118
  hook: n,
@@ -1122,14 +1122,14 @@ function Pt({
1122
1122
  setOpen: i,
1123
1123
  panelId: a
1124
1124
  }) {
1125
- const c = U(), u = ue(), { id: h, label: d, format: m } = e.spec, { values: w, absent: k } = $(() => or(n.admitted, e.read, u), [n.admitted, e, u]), p = me(e.spec.filter);
1125
+ const c = U(), u = ue(), { id: h, label: d, format: m } = e.spec, { values: w, absent: v } = $(() => rr(n.admitted, e.read, u), [n.admitted, e, u]), p = me(e.spec.filter);
1126
1126
  if (!p) return null;
1127
- const b = n.publicSnapshot, g = p.Input, _ = er(p) ? { absentOccurs: k, format: m, kind: t.kindOf(e, n.rows) } : {}, C = () => {
1128
- var S;
1129
- i(!1), (S = (r ?? o).current) == null || S.focus();
1127
+ const b = n.publicSnapshot, g = p.Input, y = tr(p) ? { absentOccurs: v, format: m, kind: t.kindOf(e, n.rows) } : {}, S = () => {
1128
+ var C;
1129
+ i(!1), (C = (r ?? o).current) == null || C.focus();
1130
1130
  };
1131
1131
  return /* @__PURE__ */ O(
1132
- St,
1132
+ Ct,
1133
1133
  {
1134
1134
  open: s,
1135
1135
  onOpenChange: i,
@@ -1144,26 +1144,26 @@ function Pt({
1144
1144
  g,
1145
1145
  {
1146
1146
  condition: b.filter[h] ?? null,
1147
- setCondition: (S) => b.setFilter(h, S),
1147
+ setCondition: (C) => b.setFilter(h, C),
1148
1148
  values: w,
1149
1149
  column: { id: h, label: d },
1150
- ..._
1150
+ ...y
1151
1151
  }
1152
1152
  ),
1153
1153
  /* @__PURE__ */ O("div", { className: f.filterFooter, children: [
1154
1154
  /* @__PURE__ */ l(ee, { size: "sm", variant: "ghost", onClick: () => b.setFilter(h, null), children: c.filterReset }),
1155
- /* @__PURE__ */ l(ee, { size: "sm", onClick: C, children: c.filterDone })
1155
+ /* @__PURE__ */ l(ee, { size: "sm", onClick: S, children: c.filterDone })
1156
1156
  ] })
1157
1157
  ]
1158
1158
  }
1159
1159
  );
1160
1160
  }
1161
- function br({
1161
+ function vr({
1162
1162
  entry: e,
1163
1163
  registry: t,
1164
1164
  hook: n
1165
1165
  }) {
1166
- const o = U(), [r, s] = H(!1), i = re(null), a = se(), { id: c, label: u } = e.spec, h = c in n.publicSnapshot.filter;
1166
+ const o = U(), [r, s] = j(!1), i = re(null), a = se(), { id: c, label: u } = e.spec, h = c in n.publicSnapshot.filter;
1167
1167
  return /* @__PURE__ */ O(Q, { children: [
1168
1168
  /* @__PURE__ */ l(
1169
1169
  "button",
@@ -1190,7 +1190,7 @@ function br({
1190
1190
  }
1191
1191
  ),
1192
1192
  /* @__PURE__ */ l(
1193
- Pt,
1193
+ Bt,
1194
1194
  {
1195
1195
  entry: e,
1196
1196
  registry: t,
@@ -1203,22 +1203,22 @@ function br({
1203
1203
  )
1204
1204
  ] });
1205
1205
  }
1206
- function kr({ registry: e, hook: t }) {
1206
+ function _r({ registry: e, hook: t }) {
1207
1207
  const n = U(), o = ue(), r = Object.entries(t.publicSnapshot.filter).flatMap(([s, i]) => {
1208
1208
  const a = e.columnById(s), c = a ? me(a.spec.filter) : void 0;
1209
1209
  if (!a || !c) return [];
1210
1210
  const u = { formats: o, wording: n, format: a.spec.format, kind: e.kindOf(a, t.rows) };
1211
- return [{ entry: a, text: nr(c, i, u) }];
1211
+ return [{ entry: a, text: or(c, i, u) }];
1212
1212
  });
1213
- return r.length === 0 ? null : /* @__PURE__ */ l(Nt, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: s, text: i }) => /* @__PURE__ */ l(vr, { entry: s, text: i, registry: e, hook: t }, s.spec.id)) });
1213
+ return r.length === 0 ? null : /* @__PURE__ */ l(Nt, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: s, text: i }) => /* @__PURE__ */ l(yr, { entry: s, text: i, registry: e, hook: t }, s.spec.id)) });
1214
1214
  }
1215
- function vr({
1215
+ function yr({
1216
1216
  entry: e,
1217
1217
  text: t,
1218
1218
  registry: n,
1219
1219
  hook: o
1220
1220
  }) {
1221
- const r = U(), [s, i] = H(!1), a = re(null), c = re(null), u = se(), { id: h, label: d } = e.spec;
1221
+ const r = U(), [s, i] = j(!1), a = re(null), c = re(null), u = se(), { id: h, label: d } = e.spec;
1222
1222
  return /* @__PURE__ */ O(Q, { children: [
1223
1223
  /* @__PURE__ */ l(
1224
1224
  xt,
@@ -1247,7 +1247,7 @@ function vr({
1247
1247
  }
1248
1248
  ),
1249
1249
  /* @__PURE__ */ l(
1250
- Pt,
1250
+ Bt,
1251
1251
  {
1252
1252
  entry: e,
1253
1253
  registry: n,
@@ -1261,15 +1261,15 @@ function vr({
1261
1261
  )
1262
1262
  ] });
1263
1263
  }
1264
- const ft = ";", _r = `\r
1265
- `, yr = "\uFEFF", Cr = (e) => String(e).replace(".", ","), Gt = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, Sr = (e, t) => {
1264
+ const ft = ";", kr = `\r
1265
+ `, Sr = "\uFEFF", Cr = (e) => String(e).replace(".", ","), Gt = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, Nr = (e, t) => {
1266
1266
  var o;
1267
1267
  const n = (o = t.value) == null ? void 0 : o.call(t, e);
1268
1268
  return n == null ? "" : Gt(typeof n == "number" ? Cr(n) : String(n));
1269
1269
  };
1270
- function Nr(e, t) {
1271
- const n = t.map((r) => Gt(r.label ?? r.id)).join(ft), o = e.map((r) => t.map((s) => Sr(r, s)).join(ft));
1272
- return yr + [n, ...o].join(_r);
1270
+ function xr(e, t) {
1271
+ const n = t.map((r) => Gt(r.label ?? r.id)).join(ft), o = e.map((r) => t.map((s) => Nr(r, s)).join(ft));
1272
+ return Sr + [n, ...o].join(kr);
1273
1273
  }
1274
1274
  function Et(e) {
1275
1275
  const t = new Map(e.orderedColumns().map((o) => [o.spec.id, o])), n = e.projection().columns.map((o) => t.get(o.id)).filter((o) => o !== void 0);
@@ -1279,23 +1279,23 @@ function zt(e) {
1279
1279
  e.setSearch("");
1280
1280
  for (const t of Object.keys(e.filter)) e.setFilter(t, null);
1281
1281
  }
1282
- function xr(e) {
1282
+ function Ar(e) {
1283
1283
  const t = e.hook;
1284
1284
  if (!t) return "";
1285
1285
  const n = Et(e).filter((o) => e.kindOf(o, t.rows) !== "other" || o.spec.ownExportValue).map(
1286
1286
  (o) => ({
1287
1287
  id: o.spec.id,
1288
1288
  label: o.spec.label,
1289
- value: (r) => Lt(o.read(r), o.spec.ownExportValue)
1289
+ value: (r) => Rt(o.read(r), o.spec.ownExportValue)
1290
1290
  })
1291
1291
  );
1292
- return Nr(e.projection().filtered, n);
1292
+ return xr(e.projection().filtered, n);
1293
1293
  }
1294
- const Ar = (e, t, n) => {
1294
+ const Tr = (e, t, n) => {
1295
1295
  var o;
1296
1296
  return ((o = e.groupingEntries(t.rows).find((r) => r.spec.id === n)) == null ? void 0 : o.spec.label) ?? n;
1297
1297
  };
1298
- function Tr({ registry: e, hook: t }) {
1298
+ function Fr({ registry: e, hook: t }) {
1299
1299
  const n = U(), o = e.groupingEntries(t.rows);
1300
1300
  if (o.length === 0) return null;
1301
1301
  const { grouping: r, setGrouping: s } = t.publicSnapshot;
@@ -1322,10 +1322,10 @@ function Tr({ registry: e, hook: t }) {
1322
1322
  }) })
1323
1323
  ] });
1324
1324
  }
1325
- function Fr({ registry: e, hook: t }) {
1325
+ function Or({ registry: e, hook: t }) {
1326
1326
  const n = U(), o = t.publicSnapshot, { grouping: r } = o;
1327
1327
  if (r.length === 0) return null;
1328
- const s = r.map((i) => Ar(e, t, i));
1328
+ const s = r.map((i) => Tr(e, t, i));
1329
1329
  return (
1330
1330
  /* In a tag group, as the conditions stand: the tag is one stop, its button
1331
1331
  the thing one tabs to, and the ring stands on the tag. */
@@ -1349,7 +1349,7 @@ function Fr({ registry: e, hook: t }) {
1349
1349
  ) }) })
1350
1350
  );
1351
1351
  }
1352
- function jt({
1352
+ function Ht({
1353
1353
  registry: e,
1354
1354
  className: t,
1355
1355
  children: n,
@@ -1360,20 +1360,20 @@ function jt({
1360
1360
  if (e && i) {
1361
1361
  const u = i.publicSnapshot, h = u.search !== "" || Object.keys(u.filter).length > 0, d = o ? [] : u.filtered.filter((w) => u.selection.isSelected(i.rowKey(w))), m = e.hasRowActions() ? e.actions.ordered().filter((w) => w.spec.bulk) : [];
1362
1362
  a = /* @__PURE__ */ O(Q, { children: [
1363
- /* @__PURE__ */ l(Fr, { registry: e, hook: i }),
1364
- /* @__PURE__ */ l(kr, { registry: e, hook: i })
1363
+ /* @__PURE__ */ l(Or, { registry: e, hook: i }),
1364
+ /* @__PURE__ */ l(_r, { registry: e, hook: i })
1365
1365
  ] }), c = /* @__PURE__ */ O("div", { className: f.toolbarGroup, children: [
1366
1366
  /* @__PURE__ */ l("span", { role: "status", className: f.filteredCount, children: h ? r.filteredOfTotal(s.count(u.filtered.length), s.count(i.admitted.length)) : "" }),
1367
1367
  h && /* @__PURE__ */ l(ee, { size: "sm", variant: "ghost", onClick: () => zt(u), children: r.resetAll }),
1368
1368
  d.length > 0 && /* @__PURE__ */ O(Q, { children: [
1369
1369
  /* @__PURE__ */ l("span", { className: f.toolbarInfo, children: r.selectedCount(d.length, s.count(d.length)) }),
1370
- m.map(({ key: w, spec: k }) => /* @__PURE__ */ l(
1370
+ m.map(({ key: w, spec: v }) => /* @__PURE__ */ l(
1371
1371
  ee,
1372
1372
  {
1373
1373
  size: "sm",
1374
- variant: k.tone === "danger" ? "danger" : "secondary",
1375
- onClick: () => k.onSelect(d),
1376
- children: k.label
1374
+ variant: v.tone === "danger" ? "danger" : "secondary",
1375
+ onClick: () => v.onSelect(d),
1376
+ children: v.label
1377
1377
  },
1378
1378
  w
1379
1379
  ))
@@ -1388,26 +1388,26 @@ function jt({
1388
1388
  c
1389
1389
  ] });
1390
1390
  }
1391
- const $e = yt(null), Or = () => () => {
1391
+ const $e = kt(null), Rr = () => () => {
1392
1392
  }, ht = () => 0;
1393
1393
  function xe(e) {
1394
1394
  var r;
1395
- const t = Ue($e), n = e ? wr(e.Table) ?? null : (t == null ? void 0 : t.registry) ?? null;
1396
- Le(
1397
- n ? n.subscribe : Or,
1395
+ const t = Ue($e), n = e ? br(e.Table) ?? null : (t == null ? void 0 : t.registry) ?? null;
1396
+ Re(
1397
+ n ? n.subscribe : Rr,
1398
1398
  n ? n.bodyVersion : ht,
1399
1399
  n ? n.bodyVersion : ht
1400
1400
  );
1401
1401
  const o = (r = n == null ? void 0 : n.hook) == null ? void 0 : r.publicSnapshot;
1402
1402
  return !n || !o ? null : { registry: n, snapshot: o, inside: !e && t !== null, footerTarget: e ? null : (t == null ? void 0 : t.footerTarget) ?? null };
1403
1403
  }
1404
- function Ht({ wording: e }) {
1404
+ function jt({ wording: e }) {
1405
1405
  return /* @__PURE__ */ O(Q, { children: [
1406
1406
  /* @__PURE__ */ l("span", { "aria-hidden": "true", className: f.absent, children: "—" }),
1407
- /* @__PURE__ */ l(Re, { children: e.cellAbsentValue })
1407
+ /* @__PURE__ */ l(Le, { children: e.cellAbsentValue })
1408
1408
  ] });
1409
1409
  }
1410
- const Lr = { sum: "Σ", avg: "⌀", min: "min", max: "max" }, Rr = (e, t) => ({
1410
+ const Lr = { sum: "Σ", avg: "⌀", min: "min", max: "max" }, Mr = (e, t) => ({
1411
1411
  sum: t.footerSum,
1412
1412
  avg: t.footerAverage,
1413
1413
  min: t.footerMinimum,
@@ -1425,33 +1425,33 @@ function Ke({
1425
1425
  }) {
1426
1426
  const { aggregate: s, format: i, presentation: a } = e.spec;
1427
1427
  if (!s) return null;
1428
- const c = typeof s == "function" ? "own" : s, u = Xe({ id: e.spec.id, read: e.read, aggregate: s }, t), h = (w) => _e(w, i, n, o);
1428
+ const c = typeof s == "function" ? "own" : s, u = Xe({ id: e.spec.id, read: e.read, aggregate: s }, t), h = (w) => ye(w, i, n, o);
1429
1429
  let d;
1430
- if (Y(u)) d = /* @__PURE__ */ l(Ht, { wording: o });
1431
- else if (c === "range" && i === "date" && Mr(u)) {
1432
- const [w, k] = u;
1433
- d = w.getTime() === k.getTime() ? n.date(w) : o.rangeFromTo(n.dateShort(w), n.dateShort(k));
1430
+ if (Y(u)) d = /* @__PURE__ */ l(jt, { wording: o });
1431
+ else if (c === "range" && i === "date" && Vr(u)) {
1432
+ const [w, v] = u;
1433
+ d = w.getTime() === v.getTime() ? n.date(w) : o.rangeFromTo(n.dateShort(w), n.dateShort(v));
1434
1434
  } else if (c === "count" || c === "distinct") d = n.count(u);
1435
1435
  else if (c === "range") {
1436
- const [w, k] = u;
1437
- d = h(w) === h(k) ? h(w) : o.rangeFromTo(h(w) ?? "", h(k) ?? "");
1436
+ const [w, v] = u;
1437
+ d = h(w) === h(v) ? h(w) : o.rangeFromTo(h(w) ?? "", h(v) ?? "");
1438
1438
  } else c === "own" && a ? d = a(u, t[0]) : d = h(u);
1439
1439
  const m = Lr[c];
1440
1440
  return /* @__PURE__ */ O(Q, { children: [
1441
1441
  r && m && /* @__PURE__ */ l("span", { "aria-hidden": "true", className: f.footerKind, children: m }),
1442
- r && /* @__PURE__ */ O(Re, { children: [
1443
- Rr(c, o),
1442
+ r && /* @__PURE__ */ O(Le, { children: [
1443
+ Mr(c, o),
1444
1444
  " "
1445
1445
  ] }),
1446
1446
  d
1447
1447
  ] });
1448
1448
  }
1449
- const Mr = ([e, t]) => e instanceof Date && t instanceof Date && e.getFullYear() === t.getFullYear();
1449
+ const Vr = ([e, t]) => e instanceof Date && t instanceof Date && e.getFullYear() === t.getFullYear();
1450
1450
  function $t(e, t) {
1451
1451
  const n = e.spec.aggregate;
1452
1452
  return n === "count" || n === "distinct" ? !0 : e.spec.rightAligned !== void 0 ? e.spec.rightAligned : Ft(t, e.read) === "number";
1453
1453
  }
1454
- function Vr(e, t) {
1454
+ function Dr(e, t) {
1455
1455
  const n = /* @__PURE__ */ new Map();
1456
1456
  for (const [o, r] of t) {
1457
1457
  const s = e.get(o);
@@ -1463,22 +1463,22 @@ function Kt(e, t) {
1463
1463
  const n = getComputedStyle(e).getPropertyValue(t).trim(), o = Number.parseFloat(n);
1464
1464
  return Number.isFinite(o) ? n.endsWith("ms") ? o : o * 1e3 : 0;
1465
1465
  }
1466
- const Dr = (e) => {
1466
+ const Ir = (e) => {
1467
1467
  const t = /* @__PURE__ */ new Map(), n = e.getBoundingClientRect().top;
1468
1468
  for (const o of Array.from(e.querySelectorAll("tbody > tr[data-motion]")))
1469
1469
  t.set(o.dataset.motion, o.getBoundingClientRect().top - n);
1470
1470
  return t;
1471
1471
  };
1472
- function Ir(e, t) {
1472
+ function Pr(e, t) {
1473
1473
  const n = re(null);
1474
1474
  W(() => {
1475
1475
  const o = e.current;
1476
1476
  if (!o) return;
1477
- const r = Dr(o), s = n.current;
1477
+ const r = Ir(o), s = n.current;
1478
1478
  if (n.current = { trigger: t, positions: r }, !s || s.trigger === t) return;
1479
1479
  const i = Kt(o, "--u-duration-medium");
1480
1480
  if (i === 0 || typeof o.animate != "function") return;
1481
- const a = getComputedStyle(o).getPropertyValue("--u-ease-out").trim() || "ease-out", c = Vr(s.positions, r);
1481
+ const a = getComputedStyle(o).getPropertyValue("--u-ease-out").trim() || "ease-out", c = Dr(s.positions, r);
1482
1482
  for (const u of Array.from(o.querySelectorAll("tbody > tr[data-motion]"))) {
1483
1483
  const h = u.dataset.motion, d = c.get(h);
1484
1484
  d !== void 0 ? u.animate([{ transform: `translateY(${d}px)` }, { transform: "none" }], { duration: i, easing: a }) : s.positions.has(h) || u.animate([{ opacity: 0, transform: "translateY(-4px)" }, { opacity: 1, transform: "none" }], { duration: i, easing: a });
@@ -1505,9 +1505,9 @@ function Br(e, t, n) {
1505
1505
  function Ve(e, t, n, o) {
1506
1506
  if (t === void 0) return o.groupNoValue;
1507
1507
  const r = e == null ? void 0 : e.spec;
1508
- if (r != null && r.group && t instanceof Date) return pn(r.group, t, n, o);
1508
+ if (r != null && r.group && t instanceof Date) return mn(r.group, t, n, o);
1509
1509
  const s = r != null && r.ownGroupValue || r == null ? void 0 : r.format;
1510
- return _e(t, s, n, o) ?? String(t);
1510
+ return ye(t, s, n, o) ?? String(t);
1511
1511
  }
1512
1512
  function We({ entry: e, group: t, formats: n, wording: o }) {
1513
1513
  const r = e == null ? void 0 : e.spec;
@@ -1533,7 +1533,7 @@ function qe({
1533
1533
  if (d.preventDefault(), o) u();
1534
1534
  else if (t) {
1535
1535
  const m = d.currentTarget.closest("table"), w = Array.from((m == null ? void 0 : m.querySelectorAll("[data-fold-path]")) ?? []).find(
1536
- (k) => k.dataset.foldPath === t.path
1536
+ (v) => v.dataset.foldPath === t.path
1537
1537
  );
1538
1538
  w == null || w.focus();
1539
1539
  }
@@ -1552,18 +1552,18 @@ function qe({
1552
1552
  if (!d.altKey) return u();
1553
1553
  gt(e, o, r);
1554
1554
  },
1555
- children: /* @__PURE__ */ l("svg", { viewBox: "0 0 12 12", width: "12", height: "12", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M3 4.5 6 7.5 9 4.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
1555
+ children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "12", height: "12", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2.5 3.75 5 6.25 7.5 3.75", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
1556
1556
  }
1557
1557
  );
1558
1558
  }
1559
- function Pr({ value: e, formats: t }) {
1559
+ function Gr({ value: e, formats: t }) {
1560
1560
  const n = re(null);
1561
1561
  return Br(n, e, t.count), /* @__PURE__ */ l("span", { ref: n, className: f.groupCount, children: t.count(e) });
1562
1562
  }
1563
1563
  function Ye({ group: e, entry: t, hook: n, formats: o, wording: r }) {
1564
1564
  const { selection: s } = n.publicSnapshot, i = e.rows.map(n.rowKey), a = i.filter((u) => s.isSelected(u)).length, c = a === i.length;
1565
1565
  return /* @__PURE__ */ l(
1566
- Se,
1566
+ Ce,
1567
1567
  {
1568
1568
  "aria-label": r.selectGroup(Ve(t, e.value, o, r)),
1569
1569
  checked: c,
@@ -1583,7 +1583,7 @@ function gt(e, t, n) {
1583
1583
  for (const i of r)
1584
1584
  o.folded.includes(i.path) !== t && o.toggleFold(i.path);
1585
1585
  }
1586
- function Gr({
1586
+ function Er({
1587
1587
  line: e,
1588
1588
  entry: t,
1589
1589
  selectable: n,
@@ -1617,13 +1617,13 @@ function pt({
1617
1617
  depth: d,
1618
1618
  hook: m,
1619
1619
  formats: w,
1620
- wording: k
1620
+ wording: v
1621
1621
  }) {
1622
- const { group: p } = e, b = e.kind === "header", g = b && !m.publicSnapshot.folded.includes(p.path), _ = s.findIndex((v) => v.spec.aggregate !== void 0), C = _ === -1 ? s.length : _, S = s.slice(C), I = s.find((v) => v.spec.aggregate === "sum" && v.spec.share !== !1), x = n !== void 0, A = /* @__PURE__ */ O("span", { className: f.groupLabel, children: [
1623
- /* @__PURE__ */ l(qe, { group: p, parent: e.parents.at(-1), entry: r, open: g, hook: m, formats: w, wording: k }),
1624
- /* @__PURE__ */ l("span", { className: f.groupValue, children: /* @__PURE__ */ l(We, { entry: r, group: p, formats: w, wording: k }) }),
1625
- /* @__PURE__ */ l(Pr, { value: p.rows.length, formats: w }),
1626
- b && e.continued && /* @__PURE__ */ l("span", { className: f.continued, children: k.groupContinued })
1622
+ const { group: p } = e, b = e.kind === "header", g = b && !m.publicSnapshot.folded.includes(p.path), y = s.findIndex((_) => _.spec.aggregate !== void 0), S = y === -1 ? s.length : y, C = s.slice(S), I = s.find((_) => _.spec.aggregate === "sum" && _.spec.share !== !1), x = n !== void 0, A = /* @__PURE__ */ O("span", { className: f.groupLabel, children: [
1623
+ /* @__PURE__ */ l(qe, { group: p, parent: e.parents.at(-1), entry: r, open: g, hook: m, formats: w, wording: v }),
1624
+ /* @__PURE__ */ l("span", { className: f.groupValue, children: /* @__PURE__ */ l(We, { entry: r, group: p, formats: w, wording: v }) }),
1625
+ /* @__PURE__ */ l(Gr, { value: p.rows.length, formats: w }),
1626
+ b && e.continued && /* @__PURE__ */ l("span", { className: f.continued, children: v.groupContinued })
1627
1627
  ] });
1628
1628
  return /* @__PURE__ */ O(
1629
1629
  "tr",
@@ -1644,34 +1644,34 @@ function pt({
1644
1644
  "aria-posinset": h.indexOf(p) + 1 || void 0,
1645
1645
  "aria-setsize": h.length || void 0,
1646
1646
  children: [
1647
- Array.from({ length: i }, (v, F) => /* @__PURE__ */ l("td", { className: G(f.td, f.control), children: F === 0 && a && b && /* @__PURE__ */ l(Ye, { group: p, entry: r, hook: m, formats: w, wording: k }) }, `c${F}`)),
1648
- b ? /* @__PURE__ */ l("td", { className: f.td, colSpan: (o ? 1 : 0) + C, style: { paddingLeft: `calc(var(--u-space-3) + ${p.level * 20}px)` }, children: A }) : /* @__PURE__ */ O(Q, { children: [
1647
+ Array.from({ length: i }, (_, F) => /* @__PURE__ */ l("td", { className: G(f.td, f.control), children: F === 0 && a && b && /* @__PURE__ */ l(Ye, { group: p, entry: r, hook: m, formats: w, wording: v }) }, `c${F}`)),
1648
+ b ? /* @__PURE__ */ l("td", { className: f.td, colSpan: (o ? 1 : 0) + S, style: { paddingLeft: `calc(var(--u-space-3) + ${p.level * 20}px)` }, children: A }) : /* @__PURE__ */ O(Q, { children: [
1649
1649
  /* @__PURE__ */ l("td", { className: G(f.td, f.spanCell), children: /* @__PURE__ */ O("span", { className: f.spanValue, children: [
1650
- a && /* @__PURE__ */ l("span", { className: f.spanSelect, children: /* @__PURE__ */ l(Ye, { group: p, entry: o, hook: m, formats: w, wording: k }) }),
1651
- /* @__PURE__ */ l(qe, { group: p, parent: e.parents.at(-1), entry: o, open: !1, hook: m, formats: w, wording: k }),
1652
- /* @__PURE__ */ l("span", { className: f.spanText, children: /* @__PURE__ */ l(We, { entry: o, group: p, formats: w, wording: k }) }),
1650
+ a && /* @__PURE__ */ l("span", { className: f.spanSelect, children: /* @__PURE__ */ l(Ye, { group: p, entry: o, hook: m, formats: w, wording: v }) }),
1651
+ /* @__PURE__ */ l(qe, { group: p, parent: e.parents.at(-1), entry: o, open: !1, hook: m, formats: w, wording: v }),
1652
+ /* @__PURE__ */ l("span", { className: f.spanText, children: /* @__PURE__ */ l(We, { entry: o, group: p, formats: w, wording: v }) }),
1653
1653
  /* @__PURE__ */ l("span", { className: f.groupCount, children: w.count(p.rows.length) })
1654
1654
  ] }) }),
1655
- C > 0 && /* @__PURE__ */ l("td", { className: G(f.td, f.foldedCount), colSpan: C, children: k.entries(p.rows.length, w.count(p.rows.length)) })
1655
+ S > 0 && /* @__PURE__ */ l("td", { className: G(f.td, f.foldedCount), colSpan: S, children: v.entries(p.rows.length, w.count(p.rows.length)) })
1656
1656
  ] }),
1657
- S.map((v) => /* @__PURE__ */ l(
1658
- Er,
1657
+ C.map((_) => /* @__PURE__ */ l(
1658
+ zr,
1659
1659
  {
1660
- entry: v,
1660
+ entry: _,
1661
1661
  group: p,
1662
- share: b && v === I,
1662
+ share: b && _ === I,
1663
1663
  total: u,
1664
1664
  formats: w,
1665
- wording: k
1665
+ wording: v
1666
1666
  },
1667
- v.key
1667
+ _.key
1668
1668
  )),
1669
1669
  c && /* @__PURE__ */ l("td", { className: f.td })
1670
1670
  ]
1671
1671
  }
1672
1672
  );
1673
1673
  }
1674
- function Er({
1674
+ function zr({
1675
1675
  entry: e,
1676
1676
  group: t,
1677
1677
  share: n,
@@ -1694,7 +1694,7 @@ function Er({
1694
1694
  a
1695
1695
  ] }) : /* @__PURE__ */ l(Ke, { entry: e, rows: t.rows, formats: r, wording: s }) });
1696
1696
  }
1697
- function zr(e) {
1697
+ function Hr(e) {
1698
1698
  const t = typeof e.value == "string" ? e.value : void 0;
1699
1699
  let n = e.id ?? t;
1700
1700
  return n === void 0 && (pe(`without-id:${e.label}`, `The column "${e.label}" has a computed value but no id. Its label serves as the id.`), n = e.label), e.footer !== void 0 && pe(`footer:${n}`, `The column "${n}" uses \`footer\`, which is called \`aggregate\` now. The old name goes with the next minor version.`), e.children !== void 0 && typeof e.children != "function" && pe(`children:${n}`, `The children of the column "${n}" are not a function and are passed over.`), {
@@ -1722,12 +1722,12 @@ function zr(e) {
1722
1722
  function jr(e, t, n, o, r) {
1723
1723
  if (!t) return n.rowKey(e);
1724
1724
  const s = t.read(e);
1725
- return Y(s) ? r.cellAbsentValue : _e(s, t.spec.format, o, r) ?? n.rowKey(e);
1725
+ return Y(s) ? r.cellAbsentValue : ye(s, t.spec.format, o, r) ?? n.rowKey(e);
1726
1726
  }
1727
1727
  const Oe = 34;
1728
- function Hr(e) {
1728
+ function $r(e) {
1729
1729
  function t(c) {
1730
- const u = se(), h = Ue($e), d = zr(c);
1730
+ const u = se(), h = Ue($e), d = Hr(c);
1731
1731
  return e.registerColumn(u, d), W(
1732
1732
  () => () => {
1733
1733
  e.removeColumn(u), e.commit();
@@ -1800,25 +1800,25 @@ function Hr(e) {
1800
1800
  }
1801
1801
  function i(c) {
1802
1802
  e.beginPass(), e.setStickyRowHeader(c.stickyRowHeader === !0), e.setTableGroupable(c.groupable !== !1);
1803
- const u = re(null), [h, d] = H(null);
1803
+ const u = re(null), [h, d] = j(null);
1804
1804
  W(() => {
1805
1805
  e.children = u.current, e.checkOrder(), e.commit();
1806
1806
  });
1807
1807
  const m = $(() => ({ registry: e, footerTarget: h }), [h]);
1808
1808
  return /* @__PURE__ */ l($e.Provider, { value: m, children: /* @__PURE__ */ O("div", { className: G(f.frame, c.className), children: [
1809
1809
  /* @__PURE__ */ l("div", { ref: u, className: f.children, children: c.children }),
1810
- /* @__PURE__ */ l($r, { registry: e }),
1811
- /* @__PURE__ */ l(Kr, { registry: e, props: c }),
1810
+ /* @__PURE__ */ l(Kr, { registry: e }),
1811
+ /* @__PURE__ */ l(Wr, { registry: e, props: c }),
1812
1812
  /* @__PURE__ */ l("div", { ref: d, className: f.footerTarget })
1813
1813
  ] }) });
1814
1814
  }
1815
1815
  const a = { Table: i, Column: t, RowDetail: n, RowActions: o, Action: r, GroupBy: s };
1816
- return mr(i, e), a;
1816
+ return wr(i, e), a;
1817
1817
  }
1818
- function $r({ registry: e }) {
1819
- return Le(e.subscribe, e.bodyVersion, e.bodyVersion), !e.hook || !e.needsOwnToolbar() ? null : /* @__PURE__ */ l(jt, { registry: e, own: !0 });
1818
+ function Kr({ registry: e }) {
1819
+ return Re(e.subscribe, e.bodyVersion, e.bodyVersion), !e.hook || !e.needsOwnToolbar() ? null : /* @__PURE__ */ l(Ht, { registry: e, own: !0 });
1820
1820
  }
1821
- function Kr({ registry: e, props: t }) {
1821
+ function Wr({ registry: e, props: t }) {
1822
1822
  const {
1823
1823
  selectable: n = !1,
1824
1824
  stickyHeader: o = !1,
@@ -1831,41 +1831,41 @@ function Kr({ registry: e, props: t }) {
1831
1831
  rowProps: h,
1832
1832
  ariaLabel: d
1833
1833
  } = t;
1834
- Le(e.subscribe, e.bodyVersion, e.bodyVersion);
1835
- const m = U(), w = ue(), k = Tt(i, "regular"), p = se(), b = re(null);
1834
+ Re(e.subscribe, e.bodyVersion, e.bodyVersion);
1835
+ const m = U(), w = ue(), v = Tt(i, "regular"), p = se(), b = re(null);
1836
1836
  W(() => {
1837
- var j, M;
1838
- const y = b.current;
1839
- if (!y || !o) return;
1840
- const R = ((j = y.tHead) == null ? void 0 : j.getBoundingClientRect().height) ?? 0, K = ((M = y.querySelector("tr[data-line='header']")) == null ? void 0 : M.getBoundingClientRect().height) ?? 0;
1841
- y.style.setProperty("--u-table-head", `${R}px`), y.style.setProperty("--u-table-group-header", `${K}px`), y.parentElement && mt(y.parentElement);
1837
+ var H, M;
1838
+ const k = b.current;
1839
+ if (!k || !o) return;
1840
+ const L = ((H = k.tHead) == null ? void 0 : H.getBoundingClientRect().height) ?? 0, K = ((M = k.querySelector("tr[data-line='header']")) == null ? void 0 : M.getBoundingClientRect().height) ?? 0;
1841
+ k.style.setProperty("--u-table-head", `${L}px`), k.style.setProperty("--u-table-group-header", `${K}px`), k.parentElement && mt(k.parentElement);
1842
1842
  }), W(() => {
1843
- const y = e.takeFocusBeforeFold(), R = b.current;
1844
- if (!y || !R || y.table !== R || y.element.isConnected) return;
1845
- const K = Array.from(R.querySelectorAll("[data-fold-path]")), j = JSON.parse(y.group);
1846
- for (let M = j.length; M > 0; M--) {
1847
- const J = JSON.stringify(j.slice(0, M)), Z = K.find((T) => T.dataset.foldPath === J);
1843
+ const k = e.takeFocusBeforeFold(), L = b.current;
1844
+ if (!k || !L || k.table !== L || k.element.isConnected) return;
1845
+ const K = Array.from(L.querySelectorAll("[data-fold-path]")), H = JSON.parse(k.group);
1846
+ for (let M = H.length; M > 0; M--) {
1847
+ const J = JSON.stringify(H.slice(0, M)), Z = K.find((T) => T.dataset.foldPath === J);
1848
1848
  if (Z) return Z.focus();
1849
1849
  }
1850
1850
  });
1851
1851
  const g = e.hook && !e.hook.companion.virtual ? e.hook.publicSnapshot : null;
1852
- Ir(b, g ? `${g.grouping.join("|")}#${g.folded.join("|")}` : "");
1853
- const _ = e.hook;
1854
- if (!_) return null;
1855
- const C = _.publicSnapshot, S = e.projection(), I = e.rowHeader(), x = Et(e), A = e.detail, v = e.hasRowActions() ? e.actions.ordered() : [], F = _.companion.virtual, L = C.grouping, N = L.length > 0 ? S.visibleLines : void 0, V = N ? e.groupingEntries(_.rows) : [], z = (y) => V.find((R) => R.spec.id === y), P = N && L.length > 1 ? z(L.at(-1)) : void 0, q = N ? x.filter((y) => !L.includes(y.spec.id)) : x, ie = (n ? 1 : 0) + (A ? 1 : 0), ae = ie + (P ? 1 : 0) + q.length + (v.length > 0 ? 1 : 0), de = ie * Oe, fe = (y) => r && y === I, we = S.visible, be = !u && q.some((y) => y.spec.aggregate), ye = C.search !== "" || Object.keys(C.filter).length > 0, le = (y, R, K, j) => /* @__PURE__ */ l(
1856
- Wr,
1852
+ Pr(b, g ? `${g.grouping.join("|")}#${g.folded.join("|")}` : "");
1853
+ const y = e.hook;
1854
+ if (!y) return null;
1855
+ const S = y.publicSnapshot, C = e.projection(), I = e.rowHeader(), x = Et(e), A = e.detail, _ = e.hasRowActions() ? e.actions.ordered() : [], F = y.companion.virtual, R = S.grouping, N = R.length > 0 ? C.visibleLines : void 0, V = N ? e.groupingEntries(y.rows) : [], z = (k) => V.find((L) => L.spec.id === k), B = N && R.length > 1 ? z(R.at(-1)) : void 0, q = N ? x.filter((k) => !R.includes(k.spec.id)) : x, ie = (n ? 1 : 0) + (A ? 1 : 0), ae = ie + (B ? 1 : 0) + q.length + (_.length > 0 ? 1 : 0), de = ie * Oe, fe = (k) => r && k === I, we = C.visible, be = !u && q.some((k) => k.spec.aggregate), ke = S.search !== "" || Object.keys(S.filter).length > 0, le = (k, L, K, H) => /* @__PURE__ */ l(
1856
+ qr,
1857
1857
  {
1858
- row: y,
1859
- index: R,
1858
+ row: k,
1859
+ index: L,
1860
1860
  absolute: F ? K : void 0,
1861
1861
  registry: e,
1862
- hook: _,
1862
+ hook: y,
1863
1863
  columns: q,
1864
- line: j,
1865
- spanEntry: P,
1864
+ line: H,
1865
+ spanEntry: B,
1866
1866
  header: I,
1867
1867
  selectable: n,
1868
- actions: v,
1868
+ actions: _,
1869
1869
  stickyRowHeader: r,
1870
1870
  rowHeaderLeft: de,
1871
1871
  columnCount: ae,
@@ -1874,36 +1874,36 @@ function Kr({ registry: e, props: t }) {
1874
1874
  formats: w,
1875
1875
  wording: m
1876
1876
  },
1877
- _.rowKey(y)
1877
+ y.rowKey(k)
1878
1878
  );
1879
1879
  let te;
1880
1880
  if (u)
1881
- te = /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l(Xr, { columns: ae }) });
1882
- else if (S.filtered.length === 0)
1883
- te = /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: ae, className: f.emptyCell, children: /* @__PURE__ */ l("div", { className: f.empty, children: _.admitted.length > 0 && ye ? /* @__PURE__ */ O(Q, { children: [
1881
+ te = /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l(Qr, { columns: ae }) });
1882
+ else if (C.filtered.length === 0)
1883
+ te = /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: ae, className: f.emptyCell, children: /* @__PURE__ */ l("div", { className: f.empty, children: y.admitted.length > 0 && ke ? /* @__PURE__ */ O(Q, { children: [
1884
1884
  /* @__PURE__ */ l("p", { className: f.emptyTitle, children: m.nothingMatchesFilters }),
1885
- /* @__PURE__ */ l(ee, { size: "sm", variant: "ghost", onClick: () => zt(C), children: m.resetAll })
1885
+ /* @__PURE__ */ l(ee, { size: "sm", variant: "ghost", onClick: () => zt(S), children: m.resetAll })
1886
1886
  ] }) : c ?? /* @__PURE__ */ l("p", { className: f.emptyTitle, children: m.noEntries }) }) }) }) });
1887
1887
  else if (N) {
1888
- const y = F ? Rt(N).map((M) => M.kind === "folded" || !M.continued ? M : { ...M, continued: !1 }) : N, R = y.length - N.length, K = F && F.from > 0 ? F.fillerBefore / F.from : 0, j = (M, J) => {
1888
+ const k = F ? Lt(N).map((M) => M.kind === "folded" || !M.continued ? M : { ...M, continued: !1 }) : N, L = k.length - N.length, K = F && F.from > 0 ? F.fillerBefore / F.from : 0, H = (M, J) => {
1889
1889
  var D, E;
1890
- const Z = J - R, T = F ? F.from + Z : Z;
1890
+ const Z = J - L, T = F ? F.from + Z : Z;
1891
1891
  return Z < 0 ? M.kind === "row" ? null : /* @__PURE__ */ l(
1892
1892
  pt,
1893
1893
  {
1894
1894
  line: M,
1895
1895
  index: J,
1896
1896
  absolute: void 0,
1897
- spanEntry: P,
1898
- levelEntry: z(L[M.group.level]),
1897
+ spanEntry: B,
1898
+ levelEntry: z(R[M.group.level]),
1899
1899
  columns: q,
1900
1900
  controlColumns: ie,
1901
1901
  selectable: n,
1902
- hasActions: v.length > 0,
1903
- total: S.filtered,
1904
- siblings: ((D = M.parents.at(-1)) == null ? void 0 : D.groups) ?? S.groups ?? [],
1905
- depth: L.length,
1906
- hook: _,
1902
+ hasActions: _.length > 0,
1903
+ total: C.filtered,
1904
+ siblings: ((D = M.parents.at(-1)) == null ? void 0 : D.groups) ?? C.groups ?? [],
1905
+ depth: R.length,
1906
+ hook: y,
1907
1907
  formats: w,
1908
1908
  wording: m
1909
1909
  },
@@ -1914,16 +1914,16 @@ function Kr({ registry: e, props: t }) {
1914
1914
  line: M,
1915
1915
  index: Z,
1916
1916
  absolute: F ? T : void 0,
1917
- spanEntry: P,
1918
- levelEntry: z(L[M.group.level]),
1917
+ spanEntry: B,
1918
+ levelEntry: z(R[M.group.level]),
1919
1919
  columns: q,
1920
1920
  controlColumns: ie,
1921
1921
  selectable: n,
1922
- hasActions: v.length > 0,
1923
- total: S.filtered,
1924
- siblings: ((E = M.parents.at(-1)) == null ? void 0 : E.groups) ?? S.groups ?? [],
1925
- depth: L.length,
1926
- hook: _,
1922
+ hasActions: _.length > 0,
1923
+ total: C.filtered,
1924
+ siblings: ((E = M.parents.at(-1)) == null ? void 0 : E.groups) ?? C.groups ?? [],
1925
+ depth: R.length,
1926
+ hook: y,
1927
1927
  formats: w,
1928
1928
  wording: m
1929
1929
  },
@@ -1931,20 +1931,20 @@ function Kr({ registry: e, props: t }) {
1931
1931
  );
1932
1932
  };
1933
1933
  te = F ? /* @__PURE__ */ l(
1934
- kt,
1934
+ vt,
1935
1935
  {
1936
- virtual: { ...F, fillerBefore: Math.max(0, F.fillerBefore - R * K) },
1936
+ virtual: { ...F, fillerBefore: Math.max(0, F.fillerBefore - L * K) },
1937
1937
  colSpan: ae,
1938
- children: y.map(j)
1938
+ children: k.map(H)
1939
1939
  }
1940
- ) : /* @__PURE__ */ l("tbody", { children: N.map(j) });
1941
- } else F ? te = /* @__PURE__ */ l(kt, { virtual: F, colSpan: ae, children: we.map((y, R) => le(y, R, F.from + R)) }) : te = /* @__PURE__ */ l("tbody", { children: we.map((y, R) => le(y, R, R)) });
1940
+ ) : /* @__PURE__ */ l("tbody", { children: N.map(H) });
1941
+ } else F ? te = /* @__PURE__ */ l(vt, { virtual: F, colSpan: ae, children: we.map((k, L) => le(k, L, F.from + L)) }) : te = /* @__PURE__ */ l("tbody", { children: we.map((k, L) => le(k, L, L)) });
1942
1942
  return /* @__PURE__ */ l(
1943
1943
  "div",
1944
1944
  {
1945
1945
  ref: F == null ? void 0 : F.scrollRef,
1946
- onScroll: (y) => {
1947
- F == null || F.onScroll(), N && o && mt(y.currentTarget);
1946
+ onScroll: (k) => {
1947
+ F == null || F.onScroll(), N && o && mt(k.currentTarget);
1948
1948
  },
1949
1949
  className: f.scroll,
1950
1950
  style: a ? { maxHeight: a } : void 0,
@@ -1953,14 +1953,14 @@ function Kr({ registry: e, props: t }) {
1953
1953
  {
1954
1954
  ref: b,
1955
1955
  role: N ? "treegrid" : void 0,
1956
- "data-depth": N ? L.length : void 0,
1957
- style: N ? { "--u-header-levels": L.length - 1 } : void 0,
1956
+ "data-depth": N ? R.length : void 0,
1957
+ style: N ? { "--u-header-levels": R.length - 1 } : void 0,
1958
1958
  "aria-label": d,
1959
- "aria-rowcount": F ? (S.lines ?? S.filtered).length + 1 + (be ? 1 : 0) : void 0,
1959
+ "aria-rowcount": F ? (C.lines ?? C.filtered).length + 1 + (be ? 1 : 0) : void 0,
1960
1960
  "aria-busy": u || void 0,
1961
1961
  className: G(
1962
1962
  f.table,
1963
- k === "compact" && f.compact,
1963
+ v === "compact" && f.compact,
1964
1964
  o && f.sticky,
1965
1965
  s && f.striped
1966
1966
  ),
@@ -1973,12 +1973,12 @@ function Kr({ registry: e, props: t }) {
1973
1973
  className: G(f.th, f.control, r && f.stickyCell),
1974
1974
  style: r ? { left: 0 } : void 0,
1975
1975
  children: /* @__PURE__ */ l(
1976
- Se,
1976
+ Ce,
1977
1977
  {
1978
1978
  "aria-label": m.selectAllRows,
1979
- checked: C.selection.allSelected,
1980
- indeterminate: C.selection.someSelected,
1981
- onChange: C.selection.toggleAll
1979
+ checked: S.selection.allSelected,
1980
+ indeterminate: S.selection.someSelected,
1981
+ onChange: S.selection.toggleAll
1982
1982
  }
1983
1983
  )
1984
1984
  }
@@ -1990,44 +1990,44 @@ function Kr({ registry: e, props: t }) {
1990
1990
  style: r ? { left: (n ? 1 : 0) * Oe } : void 0
1991
1991
  }
1992
1992
  ),
1993
- P && (e.columnById(P.spec.id) === P ? /* @__PURE__ */ l(wt, { entry: P, registry: e, hook: _, sticky: !1, left: de }) : /* @__PURE__ */ l("th", { scope: "col", className: f.th, children: P.spec.label })),
1994
- q.map((y) => /* @__PURE__ */ l(
1993
+ B && (e.columnById(B.spec.id) === B ? /* @__PURE__ */ l(wt, { entry: B, registry: e, hook: y, sticky: !1, left: de }) : /* @__PURE__ */ l("th", { scope: "col", className: f.th, children: B.spec.label })),
1994
+ q.map((k) => /* @__PURE__ */ l(
1995
1995
  wt,
1996
1996
  {
1997
- entry: y,
1997
+ entry: k,
1998
1998
  registry: e,
1999
- hook: _,
2000
- sticky: fe(y),
1999
+ hook: y,
2000
+ sticky: fe(k),
2001
2001
  left: de
2002
2002
  },
2003
- y.key
2003
+ k.key
2004
2004
  )),
2005
- v.length > 0 && /* @__PURE__ */ l("th", { scope: "col", className: G(f.th, f.actionsCell), children: /* @__PURE__ */ l(Re, { children: m.rowActions }) })
2005
+ _.length > 0 && /* @__PURE__ */ l("th", { scope: "col", className: G(f.th, f.actionsCell), children: /* @__PURE__ */ l(Le, { children: m.rowActions }) })
2006
2006
  ] }) }),
2007
2007
  te,
2008
- be && /* @__PURE__ */ l("tfoot", { children: /* @__PURE__ */ O("tr", { "aria-rowindex": F ? (S.lines ?? S.filtered).length + 2 : void 0, children: [
2009
- Array.from({ length: ie }, (y, R) => /* @__PURE__ */ l(
2008
+ be && /* @__PURE__ */ l("tfoot", { children: /* @__PURE__ */ O("tr", { "aria-rowindex": F ? (C.lines ?? C.filtered).length + 2 : void 0, children: [
2009
+ Array.from({ length: ie }, (k, L) => /* @__PURE__ */ l(
2010
2010
  "td",
2011
2011
  {
2012
2012
  className: G(f.td, f.control, r && f.stickyCell),
2013
- style: r ? { left: R * Oe } : void 0
2013
+ style: r ? { left: L * Oe } : void 0
2014
2014
  },
2015
- R
2015
+ L
2016
2016
  )),
2017
- P && /* @__PURE__ */ l("td", { className: f.td }),
2018
- q.map((y) => /* @__PURE__ */ l(
2019
- Yr,
2017
+ B && /* @__PURE__ */ l("td", { className: f.td }),
2018
+ q.map((k) => /* @__PURE__ */ l(
2019
+ Ur,
2020
2020
  {
2021
- entry: y,
2022
- rows: S.filtered,
2021
+ entry: k,
2022
+ rows: C.filtered,
2023
2023
  formats: w,
2024
2024
  wording: m,
2025
- sticky: fe(y),
2025
+ sticky: fe(k),
2026
2026
  left: de
2027
2027
  },
2028
- y.key
2028
+ k.key
2029
2029
  )),
2030
- v.length > 0 && /* @__PURE__ */ l("td", { className: f.td })
2030
+ _.length > 0 && /* @__PURE__ */ l("td", { className: f.td })
2031
2031
  ] }) })
2032
2032
  ]
2033
2033
  }
@@ -2048,43 +2048,43 @@ function wt({
2048
2048
  sticky: o,
2049
2049
  left: r
2050
2050
  }) {
2051
- const { spec: s } = e, i = n.publicSnapshot, a = t.kindOf(e, n.rows), c = Ot(a, s.rightAligned), u = t.isSortable(e, n.rows), h = s.id, d = i.sort.findIndex((x) => x.column === h), m = d === -1 ? void 0 : i.sort[d].direction, w = i.sort.length > 1 && d !== -1 ? d + 1 : void 0, k = i.widths[h], p = 48, b = (x) => {
2051
+ const { spec: s } = e, i = n.publicSnapshot, a = t.kindOf(e, n.rows), c = Ot(a, s.rightAligned), u = t.isSortable(e, n.rows), h = s.id, d = i.sort.findIndex((x) => x.column === h), m = d === -1 ? void 0 : i.sort[d].direction, w = i.sort.length > 1 && d !== -1 ? d + 1 : void 0, v = i.widths[h], p = 48, b = (x) => {
2052
2052
  x.stopPropagation(), x.preventDefault();
2053
- const A = x.currentTarget, v = A.closest("th");
2054
- if (!v) return;
2055
- const F = x.clientX, L = v.getBoundingClientRect().width, N = x.pointerId;
2053
+ const A = x.currentTarget, _ = A.closest("th");
2054
+ if (!_) return;
2055
+ const F = x.clientX, R = _.getBoundingClientRect().width, N = x.pointerId;
2056
2056
  A.setPointerCapture(N);
2057
- const V = (P) => {
2058
- P.pointerId === N && i.setWidth(h, Math.max(p, L + (P.clientX - F)));
2059
- }, z = (P) => {
2060
- P.pointerId === N && (A.removeEventListener("pointermove", V), A.removeEventListener("pointerup", z), A.removeEventListener("pointercancel", z), A.hasPointerCapture(N) && A.releasePointerCapture(N));
2057
+ const V = (B) => {
2058
+ B.pointerId === N && i.setWidth(h, Math.max(p, R + (B.clientX - F)));
2059
+ }, z = (B) => {
2060
+ B.pointerId === N && (A.removeEventListener("pointermove", V), A.removeEventListener("pointerup", z), A.removeEventListener("pointercancel", z), A.hasPointerCapture(N) && A.releasePointerCapture(N));
2061
2061
  };
2062
2062
  A.addEventListener("pointermove", V), A.addEventListener("pointerup", z), A.addEventListener("pointercancel", z);
2063
2063
  }, g = (x) => {
2064
- const A = x == null ? void 0 : x.parentElement, v = x == null ? void 0 : x.closest("table");
2065
- if (!x || !A || !v) return;
2066
- const F = Array.from(A.children).indexOf(x), L = A.children.length, N = { cell: x.style.width, table: v.style.width };
2067
- x.style.width = "", v.style.width = "auto";
2064
+ const A = x == null ? void 0 : x.parentElement, _ = x == null ? void 0 : x.closest("table");
2065
+ if (!x || !A || !_) return;
2066
+ const F = Array.from(A.children).indexOf(x), R = A.children.length, N = { cell: x.style.width, table: _.style.width };
2067
+ x.style.width = "", _.style.width = "auto";
2068
2068
  let V = 0;
2069
- for (const z of Array.from(v.rows)) {
2070
- if (z.cells.length !== L) continue;
2071
- const P = z.cells[F];
2072
- P && (V = Math.max(V, P.scrollWidth));
2069
+ for (const z of Array.from(_.rows)) {
2070
+ if (z.cells.length !== R) continue;
2071
+ const B = z.cells[F];
2072
+ B && (V = Math.max(V, B.scrollWidth));
2073
2073
  }
2074
- x.style.width = N.cell, v.style.width = N.table, V > 0 && i.setWidth(h, Math.max(p, V + 1));
2075
- }, _ = (x) => {
2074
+ x.style.width = N.cell, _.style.width = N.table, V > 0 && i.setWidth(h, Math.max(p, V + 1));
2075
+ }, y = (x) => {
2076
2076
  if (!s.resizable || !x.altKey) return;
2077
- const A = x.key === "ArrowRight", v = x.key === "ArrowLeft", F = x.key === "Home";
2078
- if (!A && !v && !F) return;
2077
+ const A = x.key === "ArrowRight", _ = x.key === "ArrowLeft", F = x.key === "Home";
2078
+ if (!A && !_ && !F) return;
2079
2079
  x.preventDefault();
2080
- const L = x.currentTarget;
2080
+ const R = x.currentTarget;
2081
2081
  if (F) {
2082
- g(L);
2082
+ g(R);
2083
2083
  return;
2084
2084
  }
2085
- const N = L.getBoundingClientRect().width, V = x.shiftKey ? 32 : 8;
2085
+ const N = R.getBoundingClientRect().width, V = x.shiftKey ? 32 : 8;
2086
2086
  i.setWidth(h, Math.max(p, N + (A ? V : -V)));
2087
- }, C = u ? /* @__PURE__ */ O(
2087
+ }, S = u ? /* @__PURE__ */ O(
2088
2088
  "button",
2089
2089
  {
2090
2090
  type: "button",
@@ -2093,31 +2093,32 @@ function wt({
2093
2093
  children: [
2094
2094
  /* @__PURE__ */ l("span", { children: s.label }),
2095
2095
  w !== void 0 && /* @__PURE__ */ l("span", { className: f.sortRank, "aria-hidden": "true", children: w }),
2096
- /* @__PURE__ */ l("span", { className: G(f.sortIndicator, m && f.sortActive), "aria-hidden": "true", children: m ? /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", className: G(f.sortArrow, m === "desc" && f.sortArrowDesc), children: /* @__PURE__ */ l("path", { d: "M2.2 6.2 5 3.4l2.8 2.8", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ O("svg", { viewBox: "0 0 10 12", width: "10", height: "12", children: [
2097
- /* @__PURE__ */ l("path", { d: "M2.4 4.4 5 1.8l2.6 2.6", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
2098
- /* @__PURE__ */ l("path", { d: "M2.4 7.6 5 10.2l2.6-2.6", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
2099
- ] }) })
2096
+ /* @__PURE__ */ l("span", { className: G(f.sortIndicator, m && f.sortActive), "aria-hidden": "true", children: m ? /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", className: G(f.sortArrow, m === "desc" && f.sortArrowDesc), children: /* @__PURE__ */ l("path", { d: "M2.2 6.2 5 3.4l2.8 2.8", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) : (
2097
+ /* Drawn in the nominal box and set in the 12 pixels the indicator
2098
+ has always taken, so that the head does not move. */
2099
+ /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "12", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2.8 3.7 5 1.5l2.2 2.2M2.8 6.3 5 8.5l2.2-2.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
2100
+ ) })
2100
2101
  ]
2101
2102
  }
2102
- ) : s.label, S = m === "asc" ? "ascending" : m === "desc" ? "descending" : "none", I = me(s.filter) !== void 0 && !(s.filter === "list" && a === "other");
2103
+ ) : s.label, C = m === "asc" ? "ascending" : m === "desc" ? "descending" : "none", I = me(s.filter) !== void 0 && !(s.filter === "list" && a === "other");
2103
2104
  return /* @__PURE__ */ O(
2104
2105
  "th",
2105
2106
  {
2106
2107
  scope: "col",
2107
2108
  "data-column": h,
2108
- "aria-sort": u ? S : void 0,
2109
+ "aria-sort": u ? C : void 0,
2109
2110
  tabIndex: s.resizable && !u ? 0 : void 0,
2110
- onKeyDown: _,
2111
+ onKeyDown: y,
2111
2112
  className: G(f.th, c && f.numeric, o && f.stickyCell),
2112
2113
  style: {
2113
- ...k !== void 0 ? { width: k } : {},
2114
+ ...v !== void 0 ? { width: v } : {},
2114
2115
  ...o ? { left: r } : {}
2115
2116
  },
2116
2117
  children: [
2117
2118
  I ? /* @__PURE__ */ O("span", { className: f.thFlex, children: [
2118
- C,
2119
- /* @__PURE__ */ l(br, { entry: e, registry: t, hook: n })
2120
- ] }) : C,
2119
+ S,
2120
+ /* @__PURE__ */ l(vr, { entry: e, registry: t, hook: n })
2121
+ ] }) : S,
2121
2122
  s.resizable && /* @__PURE__ */ l(
2122
2123
  "span",
2123
2124
  {
@@ -2134,7 +2135,7 @@ function wt({
2134
2135
  }
2135
2136
  );
2136
2137
  }
2137
- function Wr({
2138
+ function qr({
2138
2139
  row: e,
2139
2140
  index: t,
2140
2141
  absolute: n,
@@ -2149,27 +2150,27 @@ function Wr({
2149
2150
  columnCount: d,
2150
2151
  rowProps: m,
2151
2152
  baseId: w,
2152
- formats: k,
2153
+ formats: v,
2153
2154
  wording: p,
2154
2155
  line: b,
2155
2156
  spanEntry: g
2156
2157
  }) {
2157
- const _ = Ue(Wt), C = r.publicSnapshot, S = r.rowKey(e), I = jr(e, i, r, k, p), x = o.detail, A = x !== null && C.expanded.includes(S), v = `${w}-detail-${t}`, { className: F, ...L } = (m == null ? void 0 : m(e)) ?? {}, N = n !== void 0, V = b ? b.span ?? b.parents.at(-1) : void 0;
2158
+ const y = Ue(Wt), S = r.publicSnapshot, C = r.rowKey(e), I = jr(e, i, r, v, p), x = o.detail, A = x !== null && S.expanded.includes(C), _ = `${w}-detail-${t}`, { className: F, ...R } = (m == null ? void 0 : m(e)) ?? {}, N = n !== void 0, V = b ? b.span ?? b.parents.at(-1) : void 0;
2158
2159
  return /* @__PURE__ */ O(Q, { children: [
2159
2160
  /* @__PURE__ */ O(
2160
2161
  "tr",
2161
2162
  {
2162
- ...L,
2163
+ ...R,
2163
2164
  className: G(F, N && f.virtualRow),
2164
2165
  "data-row": N ? n : void 0,
2165
2166
  "data-line": b ? "row" : void 0,
2166
- "data-motion": S,
2167
+ "data-motion": C,
2167
2168
  "data-group-first": b != null && b.first ? "" : void 0,
2168
2169
  "data-group": V == null ? void 0 : V.path,
2169
2170
  "aria-level": b ? b.parents.length + 1 : void 0,
2170
2171
  "aria-posinset": V ? V.rows.indexOf(e) + 1 : void 0,
2171
2172
  "aria-setsize": V == null ? void 0 : V.rows.length,
2172
- tabIndex: N ? n === _ ? 0 : -1 : void 0,
2173
+ tabIndex: N ? n === y ? 0 : -1 : void 0,
2173
2174
  "data-even": N && n % 2 === 1 ? "" : void 0,
2174
2175
  "aria-rowindex": N ? n + 2 : void 0,
2175
2176
  children: [
@@ -2179,11 +2180,11 @@ function Wr({
2179
2180
  className: G(f.td, f.control, u && f.stickyCell),
2180
2181
  style: u ? { left: 0 } : void 0,
2181
2182
  children: /* @__PURE__ */ l(
2182
- Se,
2183
+ Ce,
2183
2184
  {
2184
2185
  "aria-label": p.selectRow(I),
2185
- checked: C.selection.isSelected(S),
2186
- onChange: () => C.selection.toggle(S)
2186
+ checked: S.selection.isSelected(C),
2187
+ onChange: () => S.selection.toggle(C)
2187
2188
  }
2188
2189
  )
2189
2190
  }
@@ -2198,37 +2199,37 @@ function Wr({
2198
2199
  {
2199
2200
  type: "button",
2200
2201
  "aria-expanded": A,
2201
- "aria-controls": A ? v : void 0,
2202
+ "aria-controls": A ? _ : void 0,
2202
2203
  "aria-label": A ? p.collapseRowNamed(I) : p.expandRowNamed(I),
2203
2204
  className: G(f.expander, A && f.expanderOpen),
2204
- onClick: () => C.toggleRow(S),
2205
- children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M3.5 1.5 7 5l-3.5 3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
2205
+ onClick: () => S.toggleRow(C),
2206
+ children: /* @__PURE__ */ l(tn, {})
2206
2207
  }
2207
2208
  )
2208
2209
  }
2209
2210
  ),
2210
- b && b.span && /* @__PURE__ */ l(Gr, { line: { ...b, span: b.span }, entry: g, selectable: a, hook: r, formats: k, wording: p }),
2211
+ b && b.span && /* @__PURE__ */ l(Er, { line: { ...b, span: b.span }, entry: g, selectable: a, hook: r, formats: v, wording: p }),
2211
2212
  s.map((z) => /* @__PURE__ */ l(
2212
- qr,
2213
+ Yr,
2213
2214
  {
2214
2215
  entry: z,
2215
2216
  row: e,
2216
2217
  kind: o.kindOf(z, r.rows),
2217
2218
  sticky: u && z === i,
2218
2219
  left: h,
2219
- formats: k,
2220
+ formats: v,
2220
2221
  wording: p
2221
2222
  },
2222
2223
  z.key
2223
2224
  )),
2224
- c.length > 0 && /* @__PURE__ */ l("td", { className: G(f.td, f.actionsCell), children: /* @__PURE__ */ l(Jr, { actions: c, row: e, name: I, wording: p }) })
2225
+ c.length > 0 && /* @__PURE__ */ l("td", { className: G(f.td, f.actionsCell), children: /* @__PURE__ */ l(Xr, { actions: c, row: e, name: I, wording: p }) })
2225
2226
  ]
2226
2227
  }
2227
2228
  ),
2228
- A && x && /* @__PURE__ */ l("tr", { id: v, className: f.detailRow, "data-group": V == null ? void 0 : V.path, children: /* @__PURE__ */ l("td", { colSpan: d, className: f.detailCell, children: x.presentation(e) }) })
2229
+ A && x && /* @__PURE__ */ l("tr", { id: _, className: f.detailRow, "data-group": V == null ? void 0 : V.path, children: /* @__PURE__ */ l("td", { colSpan: d, className: f.detailCell, children: x.presentation(e) }) })
2229
2230
  ] });
2230
2231
  }
2231
- function qr({
2232
+ function Yr({
2232
2233
  entry: e,
2233
2234
  row: t,
2234
2235
  kind: n,
@@ -2239,7 +2240,7 @@ function qr({
2239
2240
  }) {
2240
2241
  const { spec: a } = e, c = e.read(t), u = Ot(n, a.rightAligned);
2241
2242
  let h;
2242
- Y(c) ? h = /* @__PURE__ */ l(Ht, { wording: i }) : a.presentation ? h = a.presentation(c, t) : h = _e(c, a.format, s, i);
2243
+ Y(c) ? h = /* @__PURE__ */ l(jt, { wording: i }) : a.presentation ? h = a.presentation(c, t) : h = ye(c, a.format, s, i);
2243
2244
  const d = a.rowHeader ? "th" : "td";
2244
2245
  return /* @__PURE__ */ l(
2245
2246
  d,
@@ -2251,7 +2252,7 @@ function qr({
2251
2252
  }
2252
2253
  );
2253
2254
  }
2254
- function Yr({
2255
+ function Ur({
2255
2256
  entry: e,
2256
2257
  rows: t,
2257
2258
  formats: n,
@@ -2264,8 +2265,8 @@ function Yr({
2264
2265
  const a = typeof e.spec.aggregate == "function" ? "own" : e.spec.aggregate;
2265
2266
  return /* @__PURE__ */ l("td", { className: G(f.td, $t(e, t) && f.numeric, r && f.stickyCell), style: i, "data-footer": a, children: /* @__PURE__ */ l(Ke, { entry: e, rows: t, formats: n, wording: o, signed: !0 }) });
2266
2267
  }
2267
- const Ur = 2;
2268
- function Jr({
2268
+ const Jr = 2;
2269
+ function Xr({
2269
2270
  actions: e,
2270
2271
  row: t,
2271
2272
  name: n,
@@ -2275,7 +2276,7 @@ function Jr({
2275
2276
  const i = s.onSelect;
2276
2277
  i(s.bulk ? [t] : t);
2277
2278
  };
2278
- return e.length <= Ur ? /* @__PURE__ */ l("div", { className: f.actions, children: e.map(({ key: s, spec: i }) => /* @__PURE__ */ l(
2279
+ return e.length <= Jr ? /* @__PURE__ */ l("div", { className: f.actions, children: e.map(({ key: s, spec: i }) => /* @__PURE__ */ l(
2279
2280
  ee,
2280
2281
  {
2281
2282
  size: "sm",
@@ -2294,28 +2295,28 @@ function Jr({
2294
2295
  }
2295
2296
  ) });
2296
2297
  }
2297
- function Xr({ columns: e, rows: t = 4 }) {
2298
+ function Qr({ columns: e, rows: t = 4 }) {
2298
2299
  const n = [72, 48, 60, 40, 56, 64];
2299
2300
  return /* @__PURE__ */ l(Q, { children: Array.from({ length: t }, (o, r) => /* @__PURE__ */ l("tr", { "aria-hidden": "true", children: Array.from({ length: e }, (s, i) => /* @__PURE__ */ l("td", { className: f.td, children: /* @__PURE__ */ l("span", { className: f.skeleton, style: { width: `${n[(r + i) % n.length]}%` } }) }, i)) }, r)) });
2300
2301
  }
2301
- const Wt = yt(0);
2302
+ const Wt = kt(0);
2302
2303
  function bt({ height: e, colSpan: t }) {
2303
2304
  return e <= 0 ? null : /* @__PURE__ */ l("tr", { "aria-hidden": "true", "data-filler": "", className: f.fillerRow, children: /* @__PURE__ */ l("td", { colSpan: t, style: { height: e } }) });
2304
2305
  }
2305
- function kt({
2306
+ function vt({
2306
2307
  virtual: e,
2307
2308
  colSpan: t,
2308
2309
  children: n
2309
2310
  }) {
2310
- const { count: o, fillerBefore: r, fillerAfter: s, showRow: i } = e, a = re(null), [c, u] = H(0), h = (w, k) => {
2311
- a.current = k, u(k), i(k), requestAnimationFrame(() => {
2311
+ const { count: o, fillerBefore: r, fillerAfter: s, showRow: i } = e, a = re(null), [c, u] = j(0), h = (w, v) => {
2312
+ a.current = v, u(v), i(v), requestAnimationFrame(() => {
2312
2313
  var p;
2313
- (p = w.querySelector(`[data-row="${k}"]`)) == null || p.focus();
2314
+ (p = w.querySelector(`[data-row="${v}"]`)) == null || p.focus();
2314
2315
  });
2315
2316
  }, d = c >= e.from && c < e.to ? c : e.from, m = (w) => {
2316
2317
  if (w.defaultPrevented || o === 0) return;
2317
- const k = w.target, p = k.closest("[data-row]");
2318
- if (p && k !== p) return;
2318
+ const v = w.target, p = v.closest("[data-row]");
2319
+ if (p && v !== p) return;
2319
2320
  const b = p ? Number(p.dataset.row) : a.current ?? -1;
2320
2321
  let g = null;
2321
2322
  w.key === "ArrowDown" ? g = Math.min(o - 1, b + 1) : w.key === "ArrowUp" ? g = Math.max(0, b - 1) : w.key === "Home" ? g = 0 : w.key === "End" && (g = o - 1), !(g === null || g === b) && (w.preventDefault(), h(w.currentTarget, g));
@@ -2326,8 +2327,8 @@ function kt({
2326
2327
  className: f.virtualBody,
2327
2328
  onKeyDown: m,
2328
2329
  onFocus: (w) => {
2329
- const k = w.target.closest("[data-row]");
2330
- k && u(Number(k.dataset.row));
2330
+ const v = w.target.closest("[data-row]");
2331
+ v && u(Number(v.dataset.row));
2331
2332
  },
2332
2333
  children: /* @__PURE__ */ O(Wt.Provider, { value: d, children: [
2333
2334
  /* @__PURE__ */ l(bt, { height: r, colSpan: t }),
@@ -2337,46 +2338,46 @@ function kt({
2337
2338
  }
2338
2339
  );
2339
2340
  }
2340
- const Qr = "_verdict_yxa4g_6", Zr = "_glyph_yxa4g_13", es = "_value_yxa4g_23", ts = "_excess_yxa4g_28", Te = {
2341
- verdict: Qr,
2342
- glyph: Zr,
2343
- value: es,
2344
- excess: ts
2345
- }, vt = (e, t, n) => t === "percent" ? n.percent(e) : t === "count" ? n.count(e) : n.number(e, typeof t == "object" ? t.decimals : void 0), ns = (e, t) => e === "alarm" ? t.verdictAlarm : e === "warning" ? t.verdictWarning : e === "unknown" ? t.verdictUnknown : t.verdictOk, os = {
2341
+ const Zr = "_verdict_1mxfd_6", es = "_glyph_1mxfd_13", ts = "_value_1mxfd_23", ns = "_excess_1mxfd_28", Te = {
2342
+ verdict: Zr,
2343
+ glyph: es,
2344
+ value: ts,
2345
+ excess: ns
2346
+ }, _t = (e, t, n) => t === "percent" ? n.percent(e) : t === "count" ? n.count(e) : n.number(e, typeof t == "object" ? t.decimals : void 0), os = (e, t) => e === "alarm" ? t.verdictAlarm : e === "warning" ? t.verdictWarning : e === "unknown" ? t.verdictUnknown : t.verdictOk, rs = {
2346
2347
  ok: "✓",
2347
2348
  unknown: "?",
2348
2349
  warning: "▲",
2349
2350
  alarm: "■"
2350
2351
  };
2351
- function rs({ reading: e, format: t }) {
2352
- const n = ue(), o = U(), { measured: r, assessment: s } = e, i = ns(s.verdict, o);
2352
+ function ss({ reading: e, format: t }) {
2353
+ const n = ue(), o = U(), { measured: r, assessment: s } = e, i = os(s.verdict, o);
2353
2354
  return /* @__PURE__ */ O("span", { className: Te.verdict, "data-verdict": s.verdict, title: i, children: [
2354
- /* @__PURE__ */ l("span", { "aria-hidden": "true", className: Te.glyph, children: os[s.verdict] }),
2355
- /* @__PURE__ */ l("span", { className: Te.value, children: r === null ? o.statAbsentValue : vt(r, t, n) }),
2355
+ /* @__PURE__ */ l("span", { "aria-hidden": "true", className: Te.glyph, children: rs[s.verdict] }),
2356
+ /* @__PURE__ */ l("span", { className: Te.value, children: r === null ? o.statAbsentValue : _t(r, t, n) }),
2356
2357
  s.excess !== void 0 && /* @__PURE__ */ O("span", { className: Te.excess, children: [
2357
2358
  "+",
2358
- vt(s.excess, t, n)
2359
+ _t(s.excess, t, n)
2359
2360
  ] }),
2360
- /* @__PURE__ */ l(Re, { children: i })
2361
+ /* @__PURE__ */ l(Le, { children: i })
2361
2362
  ] });
2362
2363
  }
2363
- const ss = (e) => e.measured, is = (e) => e.reduce(
2364
+ const is = (e) => e.measured, as = (e) => e.reduce(
2364
2365
  (t, n) => !t || Ee(n.assessment.verdict) > Ee(t.assessment.verdict) ? n : t,
2365
2366
  void 0
2366
2367
  );
2367
- function as(e) {
2368
+ function ls(e) {
2368
2369
  return function({ id: n, value: o, label: r, limits: s, format: i, sortBy: a = "verdict", width: c, resizable: u, aggregate: h }) {
2369
2370
  const d = JSON.stringify(s), m = $(() => {
2370
- const k = JSON.parse(d);
2371
+ const v = JSON.parse(d);
2371
2372
  return (p) => {
2372
2373
  const b = typeof o == "string" ? p == null ? void 0 : p[o] : o(p);
2373
2374
  return {
2374
2375
  measured: typeof b == "number" && Number.isFinite(b) ? b : null,
2375
- assessment: tn(b, k)
2376
+ assessment: nn(b, v)
2376
2377
  };
2377
2378
  };
2378
2379
  }, [o, d]), w = X(
2379
- (k) => a === "value" ? k.measured : Ee(k.assessment.verdict),
2380
+ (v) => a === "value" ? v.measured : Ee(v.assessment.verdict),
2380
2381
  [a]
2381
2382
  );
2382
2383
  return /* @__PURE__ */ l(
@@ -2389,9 +2390,9 @@ function as(e) {
2389
2390
  resizable: u,
2390
2391
  value: m,
2391
2392
  sortValue: w,
2392
- exportValue: ss,
2393
- aggregate: h === "worst" ? is : void 0,
2394
- children: (k) => /* @__PURE__ */ l(rs, { reading: k, format: i })
2393
+ exportValue: is,
2394
+ aggregate: h === "worst" ? as : void 0,
2395
+ children: (v) => /* @__PURE__ */ l(ss, { reading: v, format: i })
2395
2396
  }
2396
2397
  );
2397
2398
  };
@@ -2406,7 +2407,7 @@ function Yt(e, t, n) {
2406
2407
  const s = Dt(r, n);
2407
2408
  return s === "foreign" && qt(t), s === "effective";
2408
2409
  }
2409
- function ls(e, t) {
2410
+ function cs(e, t) {
2410
2411
  if (e.length === 0) return;
2411
2412
  let n = -1, o = [];
2412
2413
  return (r) => {
@@ -2419,17 +2420,17 @@ function ls(e, t) {
2419
2420
  }
2420
2421
  return o.every(({ entry: s, condition: i }) => {
2421
2422
  const a = me(s.spec.filter);
2422
- return !a || tr(a, s.read(r), i);
2423
+ return !a || nr(a, s.read(r), i);
2423
2424
  });
2424
2425
  };
2425
2426
  }
2426
- function cs(e, t) {
2427
- const n = $(() => t ? e.filter((i) => t(i)) : e, [e, t]), [o, r] = H(() => ({ source: e, result: n }));
2427
+ function us(e, t) {
2428
+ const n = $(() => t ? e.filter((i) => t(i)) : e, [e, t]), [o, r] = j(() => ({ source: e, result: n }));
2428
2429
  if (!t) return e;
2429
2430
  const s = o.source === e && (o.result === n || o.result.length === n.length && o.result.every((i, a) => i === n[a]));
2430
2431
  return s || r({ source: e, result: n }), s ? o.result : n;
2431
2432
  }
2432
- function us(e, t) {
2433
+ function ds(e, t) {
2433
2434
  var a, c, u, h, d, m;
2434
2435
  if (t.size === 0) return e;
2435
2436
  const n = (a = e.sort) == null ? void 0 : a.filter((w) => t.has(w.column)), o = (c = e.hidden) == null ? void 0 : c.filter((w) => t.has(w)), r = (u = e.order) == null ? void 0 : u.filter((w) => t.has(w)), s = e.widths ? Object.fromEntries(Object.entries(e.widths).filter(([w]) => t.has(w))) : void 0;
@@ -2443,33 +2444,33 @@ function us(e, t) {
2443
2444
  ...s && Object.keys(s).length ? { widths: s } : {}
2444
2445
  };
2445
2446
  }
2446
- const Ge = (e) => e === void 0 ? [] : typeof e == "string" ? [e] : [...e], ds = (e, t) => e.length === t.length && e.every((n, o) => n === t[o]);
2447
- function _t(e) {
2447
+ const Ge = (e) => e === void 0 ? [] : typeof e == "string" ? [e] : [...e], fs = (e, t) => e.length === t.length && e.every((n, o) => n === t[o]);
2448
+ function yt(e) {
2448
2449
  const t = [], n = (o) => {
2449
2450
  for (const r of o)
2450
2451
  t.push(r.path), n(r.groups);
2451
2452
  };
2452
2453
  return n(e ?? []), t;
2453
2454
  }
2454
- const fs = (e, t) => e.size === t.size && [...e].every((n) => t.has(n));
2455
- function hs(e, t) {
2455
+ const hs = (e, t) => e.size === t.size && [...e].every((n) => t.has(n));
2456
+ function gs(e, t) {
2456
2457
  const n = {};
2457
2458
  for (const o of e) o.width !== void 0 && (n[o.id] = o.width);
2458
2459
  return { ...n, ...t };
2459
2460
  }
2460
- function gs(e, t) {
2461
- const [n] = H(() => new gr()), [o] = H(() => {
2462
- const y = Hr(n);
2463
- return { ...y, VerdictColumn: as(y.Column) };
2461
+ function ps(e, t) {
2462
+ const [n] = j(() => new pr()), [o] = j(() => {
2463
+ const k = $r(n);
2464
+ return { ...k, VerdictColumn: ls(k.Column) };
2464
2465
  });
2465
- Le(n.subscribe, n.structureVersion, n.structureVersion);
2466
- const r = ue(), s = e, i = n.modelColumns(s, r), [a] = H(() => t.initialView), [c, u] = H(() => Object.entries((a == null ? void 0 : a.conditions) ?? {})), h = $(() => ls(c, n), [c, n]), d = t.preFilter ?? t.filter, m = cs(s, d), [w, k] = H(
2466
+ Re(n.subscribe, n.structureVersion, n.structureVersion);
2467
+ const r = ue(), s = e, i = n.modelColumns(s, r), [a] = j(() => t.initialView), [c, u] = j(() => Object.entries((a == null ? void 0 : a.conditions) ?? {})), h = $(() => cs(c, n), [c, n]), d = t.preFilter ?? t.filter, m = us(s, d), [w, v] = j(
2467
2468
  () => a != null && a.grouping ? [...a.grouping] : Ge(t.defaultGrouping)
2468
- ), [p, b] = H(() => (a == null ? void 0 : a.folded) ?? []), g = n.orderedColumns().length + n.groupKeys.entries.size > 0, _ = g ? n.effectiveGrouping(w, s) : w.slice(0, Qe), C = _.join("|"), S = $(() => new Set(p), [p]), I = _.length ? n.groupingModel(_, s) : null, x = $(
2469
- () => I && I.levels.length ? { ...I, folded: S, compareText: r.compareText } : void 0,
2469
+ ), [p, b] = j(() => (a == null ? void 0 : a.folded) ?? []), g = n.orderedColumns().length + n.groupKeys.entries.size > 0, y = g ? n.effectiveGrouping(w, s) : w.slice(0, Qe), S = y.join("|"), C = $(() => new Set(p), [p]), I = y.length ? n.groupingModel(y, s) : null, x = $(
2470
+ () => I && I.levels.length ? { ...I, folded: C, compareText: r.compareText } : void 0,
2470
2471
  // eslint-disable-next-line react-hooks/exhaustive-deps -- the model's identity carries the ids and the columns
2471
- [I, S, r.compareText, C]
2472
- ), A = t.rowKey, v = kn(m, i, {
2472
+ [I, C, r.compareText, S]
2473
+ ), A = t.rowKey, _ = _n(m, i, {
2473
2474
  rowKey: A,
2474
2475
  pageSize: t.pageSize,
2475
2476
  defaultSort: t.defaultSort,
@@ -2477,96 +2478,96 @@ function gs(e, t) {
2477
2478
  initialView: a,
2478
2479
  virtual: t.virtual,
2479
2480
  grouping: x
2480
- }), { setPage: F } = v, L = X(
2481
- (y, R) => {
2482
- let K = R == null;
2481
+ }), { setPage: F } = _, R = X(
2482
+ (k, L) => {
2483
+ let K = L == null;
2483
2484
  if (!K && n.orderedColumns().length > 0) {
2484
- const j = n.columnById(y), M = j ? me(j.spec.filter) : void 0;
2485
+ const H = n.columnById(k), M = H ? me(H.spec.filter) : void 0;
2485
2486
  if (!M) {
2486
2487
  pe(
2487
- `condition-without-filter:${y}`,
2488
- j ? `The column "${y}" has no filter; its condition is passed over.` : `No column is called "${y}"; its condition is passed over.`
2488
+ `condition-without-filter:${k}`,
2489
+ H ? `The column "${k}" has no filter; its condition is passed over.` : `No column is called "${k}"; its condition is passed over.`
2489
2490
  );
2490
2491
  return;
2491
2492
  }
2492
- const J = Dt(M, R);
2493
+ const J = Dt(M, L);
2493
2494
  if (J === "foreign") {
2494
- qt(y);
2495
+ qt(k);
2495
2496
  return;
2496
2497
  }
2497
2498
  K = J === "empty";
2498
2499
  }
2499
- u((j) => {
2500
- const M = j.findIndex(([J]) => J === y);
2501
- return K ? M === -1 ? j : j.filter((J, Z) => Z !== M) : M === -1 ? [...j, [y, R]] : j.map((J, Z) => Z === M ? [y, R] : J);
2500
+ u((H) => {
2501
+ const M = H.findIndex(([J]) => J === k);
2502
+ return K ? M === -1 ? H : H.filter((J, Z) => Z !== M) : M === -1 ? [...H, [k, L]] : H.map((J, Z) => Z === M ? [k, L] : J);
2502
2503
  }), F(1);
2503
2504
  },
2504
2505
  [n, F]
2505
- ), N = new Set(n.orderedColumns().map((y) => y.spec.id)), [V, z] = H(() => /* @__PURE__ */ new Set());
2506
- if (!fs(V, N)) {
2507
- const y = new Set([...V].filter((R) => !N.has(R)));
2508
- z(N), c.some(([R]) => y.has(R)) && u((R) => R.filter(([K]) => !y.has(K)));
2506
+ ), N = new Set(n.orderedColumns().map((k) => k.spec.id)), [V, z] = j(() => /* @__PURE__ */ new Set());
2507
+ if (!hs(V, N)) {
2508
+ const k = new Set([...V].filter((L) => !N.has(L)));
2509
+ z(N), c.some(([L]) => k.has(L)) && u((L) => L.filter(([K]) => !k.has(K)));
2509
2510
  }
2510
- const P = N.size === 0 ? c : c.filter(([y, R]) => Yt(n, y, R)), q = us(v.view, N), ie = P.length > 0 ? { ...q, conditions: Object.fromEntries(P) } : q, ae = N.size === 0 ? v.sort : v.sort.filter((y) => N.has(y.column)), de = g ? n.effectiveGrouping(Ge(t.defaultGrouping), s) : Ge(t.defaultGrouping), fe = v.groups ? fn(v.groups, p) : g ? [] : [...p], we = {
2511
+ const B = N.size === 0 ? c : c.filter(([k, L]) => Yt(n, k, L)), q = ds(_.view, N), ie = B.length > 0 ? { ...q, conditions: Object.fromEntries(B) } : q, ae = N.size === 0 ? _.sort : _.sort.filter((k) => N.has(k.column)), de = g ? n.effectiveGrouping(Ge(t.defaultGrouping), s) : Ge(t.defaultGrouping), fe = _.groups ? hn(_.groups, p) : g ? [] : [...p], we = {
2511
2512
  ...ie,
2512
- ...ds(_, de) ? {} : { grouping: _ },
2513
+ ...fs(y, de) ? {} : { grouping: y },
2513
2514
  ...fe.length ? { folded: fe } : {}
2514
- }, be = (y) => {
2515
- k([...y]), F(1);
2516
- }, ye = (y) => {
2517
- _t(v.groups).includes(y) && (n.noteFocusBeforeFold(), b((R) => R.includes(y) ? R.filter((K) => K !== y) : [...R, y]));
2515
+ }, be = (k) => {
2516
+ v([...k]), F(1);
2517
+ }, ke = (k) => {
2518
+ yt(_.groups).includes(k) && (n.noteFocusBeforeFold(), b((L) => L.includes(k) ? L.filter((K) => K !== k) : [...L, k]));
2518
2519
  }, le = n.paginates() || t.virtual !== void 0, te = {
2519
2520
  rows: e,
2520
- filtered: v.filtered,
2521
- visible: le ? v.visible : v.filtered,
2522
- page: le ? v.page : 1,
2523
- pageCount: le ? v.pageCount : 1,
2524
- pageSize: v.pageSize,
2525
- setPage: v.setPage,
2526
- setPageSize: v.setPageSize,
2527
- search: v.search,
2528
- setSearch: v.setSearch,
2521
+ filtered: _.filtered,
2522
+ visible: le ? _.visible : _.filtered,
2523
+ page: le ? _.page : 1,
2524
+ pageCount: le ? _.pageCount : 1,
2525
+ pageSize: _.pageSize,
2526
+ setPage: _.setPage,
2527
+ setPageSize: _.setPageSize,
2528
+ search: _.search,
2529
+ setSearch: _.setSearch,
2529
2530
  sort: ae,
2530
- toggleSort: v.toggleSort,
2531
- hidden: v.hidden,
2532
- toggleColumn: v.toggleColumn,
2533
- order: v.order,
2534
- setOrder: v.setOrder,
2535
- widths: hs(i, v.widths),
2536
- setWidth: v.setWidth,
2537
- expanded: v.expanded,
2538
- toggleRow: v.toggleRow,
2539
- filter: Object.fromEntries(P),
2540
- setFilter: L,
2541
- selection: t.selection ?? v.selection,
2531
+ toggleSort: _.toggleSort,
2532
+ hidden: _.hidden,
2533
+ toggleColumn: _.toggleColumn,
2534
+ order: _.order,
2535
+ setOrder: _.setOrder,
2536
+ widths: gs(i, _.widths),
2537
+ setWidth: _.setWidth,
2538
+ expanded: _.expanded,
2539
+ toggleRow: _.toggleRow,
2540
+ filter: Object.fromEntries(B),
2541
+ setFilter: R,
2542
+ selection: t.selection ?? _.selection,
2542
2543
  view: we,
2543
- grouping: _,
2544
+ grouping: y,
2544
2545
  setGrouping: be,
2545
2546
  folded: fe,
2546
- toggleFold: ye,
2547
+ toggleFold: ke,
2547
2548
  foldAll: () => {
2548
- n.noteFocusBeforeFold(), b(_t(v.groups));
2549
+ n.noteFocusBeforeFold(), b(yt(_.groups));
2549
2550
  },
2550
2551
  unfoldAll: () => {
2551
2552
  n.noteFocusBeforeFold(), b([]);
2552
2553
  },
2553
- asCsv: () => xr(n),
2554
+ asCsv: () => Ar(n),
2554
2555
  virtual: t.virtual !== void 0
2555
2556
  };
2556
2557
  return n.setHook({
2557
2558
  rows: s,
2558
2559
  admitted: m,
2559
2560
  modelColumns: i,
2560
- companion: v,
2561
+ companion: _,
2561
2562
  filter: h,
2562
2563
  grouping: x,
2563
- folded: S,
2564
+ folded: C,
2564
2565
  publicSnapshot: te,
2565
2566
  rowKey: A,
2566
2567
  formats: r
2567
2568
  }), { ...te, ...o };
2568
2569
  }
2569
- function Xs(e) {
2570
+ function Qs(e) {
2570
2571
  return e;
2571
2572
  }
2572
2573
  function nt(e, t) {
@@ -2578,18 +2579,18 @@ function nt(e, t) {
2578
2579
  };
2579
2580
  }, [e, t, n]);
2580
2581
  }
2581
- function Qs({ children: e, className: t, of: n }) {
2582
+ function Zs({ children: e, className: t, of: n }) {
2582
2583
  const o = xe(n);
2583
2584
  nt(o == null ? void 0 : o.registry, "toolbar");
2584
2585
  const r = o == null ? void 0 : o.registry;
2585
- return /* @__PURE__ */ l(jt, { registry: r ?? null, className: t, children: e });
2586
+ return /* @__PURE__ */ l(Ht, { registry: r ?? null, className: t, children: e });
2586
2587
  }
2587
- function Zs({ placeholder: e, "aria-label": t, className: n, of: o }) {
2588
+ function ei({ placeholder: e, "aria-label": t, className: n, of: o }) {
2588
2589
  const r = xe(o), s = U();
2589
2590
  if (nt(r == null ? void 0 : r.registry, "search"), !r) return null;
2590
2591
  const { snapshot: i } = r;
2591
2592
  return /* @__PURE__ */ l(
2592
- on,
2593
+ rn,
2593
2594
  {
2594
2595
  size: "sm",
2595
2596
  type: "search",
@@ -2603,24 +2604,24 @@ function Zs({ placeholder: e, "aria-label": t, className: n, of: o }) {
2603
2604
  }
2604
2605
  );
2605
2606
  }
2606
- function ei({ of: e }) {
2607
+ function ti({ of: e }) {
2607
2608
  var b;
2608
- const t = xe(e), n = U(), [o, r] = H(!1), s = re(null), i = re(null), a = se(), [c, u] = H(null);
2609
+ const t = xe(e), n = U(), [o, r] = j(!1), s = re(null), i = re(null), a = se(), [c, u] = j(null);
2609
2610
  if (W(() => {
2610
- var S;
2611
+ var C;
2611
2612
  if (!c || !i.current) return;
2612
2613
  const g = Array.from(i.current.children).find(
2613
2614
  (I) => I.dataset.column === c.id
2614
- ), _ = g == null ? void 0 : g.querySelector(`[data-direction="${c.direction}"]`), C = g == null ? void 0 : g.querySelector(
2615
+ ), y = g == null ? void 0 : g.querySelector(`[data-direction="${c.direction}"]`), S = g == null ? void 0 : g.querySelector(
2615
2616
  `[data-direction="${c.direction === "forward" ? "backward" : "forward"}"]`
2616
2617
  );
2617
- (S = _ && !_.disabled ? _ : C) == null || S.focus();
2618
+ (C = y && !y.disabled ? y : S) == null || C.focus();
2618
2619
  }, [c]), !t) return null;
2619
2620
  const { registry: h, snapshot: d } = t, m = h.hook, w = h.withStickyHeaderFirst(
2620
2621
  et(h.modelColumns(m.rows, m.formats), d.order)
2621
- ), k = h.stickyRowHeader ? ((b = w[0]) == null ? void 0 : b.hideable) === !1 : !1, p = (g, _) => {
2622
- const C = w.map((I) => I.id), S = g + _;
2623
- S < 0 || S >= C.length || ([C[g], C[S]] = [C[S], C[g]], d.setOrder(C), u({ id: w[g].id, direction: _ < 0 ? "forward" : "backward" }));
2622
+ ), v = h.stickyRowHeader ? ((b = w[0]) == null ? void 0 : b.hideable) === !1 : !1, p = (g, y) => {
2623
+ const S = w.map((I) => I.id), C = g + y;
2624
+ C < 0 || C >= S.length || ([S[g], S[C]] = [S[C], S[g]], d.setOrder(S), u({ id: w[g].id, direction: y < 0 ? "forward" : "backward" }));
2624
2625
  };
2625
2626
  return /* @__PURE__ */ O(Q, { children: [
2626
2627
  /* @__PURE__ */ l(
@@ -2636,7 +2637,7 @@ function ei({ of: e }) {
2636
2637
  }
2637
2638
  ),
2638
2639
  /* @__PURE__ */ O(
2639
- St,
2640
+ Ct,
2640
2641
  {
2641
2642
  open: o,
2642
2643
  onOpenChange: r,
@@ -2647,13 +2648,13 @@ function ei({ of: e }) {
2647
2648
  id: a,
2648
2649
  className: f.columnsPanel,
2649
2650
  children: [
2650
- /* @__PURE__ */ l("ul", { ref: i, className: f.columnsList, "aria-label": n.arrangeColumns, children: w.map((g, _) => {
2651
- const C = g.label ?? g.id;
2651
+ /* @__PURE__ */ l("ul", { ref: i, className: f.columnsList, "aria-label": n.arrangeColumns, children: w.map((g, y) => {
2652
+ const S = g.label ?? g.id;
2652
2653
  return /* @__PURE__ */ O("li", { className: f.columnsEntry, "data-column": g.id, children: [
2653
2654
  /* @__PURE__ */ l(
2654
- Se,
2655
+ Ce,
2655
2656
  {
2656
- label: C,
2657
+ label: S,
2657
2658
  checked: !d.hidden.includes(g.id),
2658
2659
  disabled: g.hideable === !1,
2659
2660
  onChange: () => d.toggleColumn(g.id)
@@ -2665,10 +2666,10 @@ function ei({ of: e }) {
2665
2666
  type: "button",
2666
2667
  className: f.move,
2667
2668
  "data-direction": "forward",
2668
- "aria-label": n.columnForward(C),
2669
- disabled: _ === 0 || k && _ <= 1,
2670
- onClick: () => p(_, -1),
2671
- children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2 6.5 5 3.5l3 3", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
2669
+ "aria-label": n.columnForward(S),
2670
+ disabled: y === 0 || v && y <= 1,
2671
+ onClick: () => p(y, -1),
2672
+ children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2 6.5 5 3.5l3 3", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
2672
2673
  }
2673
2674
  ),
2674
2675
  /* @__PURE__ */ l(
@@ -2677,21 +2678,21 @@ function ei({ of: e }) {
2677
2678
  type: "button",
2678
2679
  className: f.move,
2679
2680
  "data-direction": "backward",
2680
- "aria-label": n.columnBackward(C),
2681
- disabled: _ === w.length - 1 || k && _ === 0,
2682
- onClick: () => p(_, 1),
2683
- children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2 3.5 5 6.5l3-3", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
2681
+ "aria-label": n.columnBackward(S),
2682
+ disabled: y === w.length - 1 || v && y === 0,
2683
+ onClick: () => p(y, 1),
2684
+ children: /* @__PURE__ */ l("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M2 3.5 5 6.5l3-3", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
2684
2685
  }
2685
2686
  )
2686
2687
  ] }, g.id);
2687
2688
  }) }),
2688
- /* @__PURE__ */ l(Tr, { registry: h, hook: m })
2689
+ /* @__PURE__ */ l(Fr, { registry: h, hook: m })
2689
2690
  ]
2690
2691
  }
2691
2692
  )
2692
2693
  ] });
2693
2694
  }
2694
- function ti({ filename: e, onExport: t, of: n }) {
2695
+ function ni({ filename: e, onExport: t, of: n }) {
2695
2696
  const o = xe(n), r = U();
2696
2697
  if (!o) return null;
2697
2698
  const { snapshot: s } = o;
@@ -2705,7 +2706,7 @@ function ti({ filename: e, onExport: t, of: n }) {
2705
2706
  u.href = c, u.download = e ?? r.exportFileName, u.click(), setTimeout(() => URL.revokeObjectURL(c), 1e4);
2706
2707
  }, children: r.exportLabel });
2707
2708
  }
2708
- function ni({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
2709
+ function oi({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
2709
2710
  const o = xe(n), r = U(), s = ue();
2710
2711
  if (nt(o == null ? void 0 : o.registry, "pagination"), !o || o.snapshot.virtual) return null;
2711
2712
  const { snapshot: i } = o, a = i.filtered.length, c = e.includes(i.pageSize) ? e : [...e, i.pageSize].sort((h, d) => h - d), u = /* @__PURE__ */ O("nav", { "aria-label": r.pagination, className: G(f.pagination, t), children: [
@@ -2714,7 +2715,7 @@ function ni({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
2714
2715
  /* @__PURE__ */ O("label", { className: f.pageSize, children: [
2715
2716
  r.rows,
2716
2717
  /* @__PURE__ */ l(
2717
- nn,
2718
+ on,
2718
2719
  {
2719
2720
  selectSize: "sm",
2720
2721
  value: i.pageSize,
@@ -2729,32 +2730,32 @@ function ni({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
2729
2730
  /* @__PURE__ */ l(ee, { size: "sm", disabled: i.page >= i.pageCount, onClick: () => i.setPage(i.page + 1), children: r.nextPage })
2730
2731
  ] })
2731
2732
  ] });
2732
- return o.inside ? o.footerTarget ? an(u, o.footerTarget) : null : u;
2733
+ return o.inside ? o.footerTarget ? ln(u, o.footerTarget) : null : u;
2733
2734
  }
2734
- const ps = ["high", "medium", "low"], ms = (e) => ps.indexOf(e), ws = (e) => e === "standing-unacknowledged" || e === "standing-acknowledged", De = (e) => e === "standing-acknowledged" || e === "cleared-acknowledged", bs = (e) => e === "cleared-acknowledged";
2735
- function ks(e, t) {
2735
+ const ms = ["high", "medium", "low"], ws = (e) => ms.indexOf(e), bs = (e) => e === "standing-unacknowledged" || e === "standing-acknowledged", De = (e) => e === "standing-acknowledged" || e === "cleared-acknowledged", vs = (e) => e === "cleared-acknowledged";
2736
+ function _s(e, t) {
2736
2737
  switch (t) {
2737
2738
  case "raised":
2738
2739
  return "standing-unacknowledged";
2739
2740
  case "acknowledged":
2740
- return ws(e) ? "standing-acknowledged" : "cleared-acknowledged";
2741
+ return bs(e) ? "standing-acknowledged" : "cleared-acknowledged";
2741
2742
  case "cleared":
2742
2743
  return De(e) ? "cleared-acknowledged" : "cleared-unacknowledged";
2743
2744
  }
2744
2745
  }
2745
- const oi = (e, t) => e.direction === "obere" ? t <= e.returnTo : t >= e.returnTo, ot = (e, t, n) => e > n - t && e <= n, ri = (e, t, n) => e.reduce((o, r) => o + (ot(r, t, n) ? 1 : 0), 0);
2746
- function vs(e, t, n) {
2746
+ const ri = (e, t) => e.direction === "obere" ? t <= e.returnTo : t >= e.returnTo, ot = (e, t, n) => e > n - t && e <= n, si = (e, t, n) => e.reduce((o, r) => o + (ot(r, t, n) ? 1 : 0), 0);
2747
+ function ys(e, t, n) {
2747
2748
  const o = /* @__PURE__ */ new Map();
2748
2749
  for (const r of e)
2749
2750
  ot(r.raised, t, n) && o.set(r.type, (o.get(r.type) ?? 0) + 1);
2750
2751
  return o;
2751
2752
  }
2752
- function _s(e) {
2753
+ function ks(e) {
2753
2754
  let t = Number.POSITIVE_INFINITY;
2754
2755
  for (const n of e) n < t && (t = n);
2755
2756
  return t;
2756
2757
  }
2757
- function ys(e) {
2758
+ function Ss(e) {
2758
2759
  let t = Number.NEGATIVE_INFINITY;
2759
2760
  for (const n of e) n > t && (t = n);
2760
2761
  return t;
@@ -2766,25 +2767,25 @@ function Cs(e, t, n) {
2766
2767
  return {
2767
2768
  // No spread: a flood is the case with many elements, and an argument list
2768
2769
  // of that size blows the call stack at some point. A loop cannot.
2769
- from: _s(r),
2770
- to: ys(r),
2770
+ from: ks(r),
2771
+ to: Ss(r),
2771
2772
  count: o.length,
2772
2773
  alarms: o.map((s) => s.id)
2773
2774
  };
2774
2775
  }
2775
- function Ss(e, t) {
2776
+ function Ns(e, t) {
2776
2777
  const n = new Set(t);
2777
2778
  return e.reduce(
2778
2779
  (o, r) => o + (n.has(r.id) && !De(r.lifecycle) ? 1 : 0),
2779
2780
  0
2780
2781
  );
2781
2782
  }
2782
- function si(e, t, n) {
2783
+ function ii(e, t, n) {
2783
2784
  const o = new Set(t);
2784
2785
  let r = 0;
2785
- return { alarms: e.map((i) => !o.has(i.id) || De(i.lifecycle) ? i : (r += 1, { ...i, lifecycle: ks(i.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
2786
+ return { alarms: e.map((i) => !o.has(i.id) || De(i.lifecycle) ? i : (r += 1, { ...i, lifecycle: _s(i.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
2786
2787
  }
2787
- const Ns = (e) => [
2788
+ const xs = (e) => [
2788
2789
  {
2789
2790
  id: "type",
2790
2791
  label: e.columnAlarm,
@@ -2802,16 +2803,16 @@ const Ns = (e) => [
2802
2803
  { id: "raised", label: e.columnRaised, value: (t) => t.alarm.raised },
2803
2804
  { id: "age", label: e.columnAge, value: (t) => t.age },
2804
2805
  { id: "frequency", label: e.columnFrequency, value: (t) => t.frequency }
2805
- ], xs = Ns(rn), As = [
2806
+ ], As = xs(sn), Ts = [
2806
2807
  { column: "priority", direction: "asc" },
2807
2808
  { column: "acknowledgement", direction: "asc" },
2808
2809
  { column: "raised", direction: "desc" }
2809
- ], Ts = (e) => ({
2810
+ ], Fs = (e) => ({
2810
2811
  id: e,
2811
2812
  label: e,
2812
2813
  priority: "high"
2813
2814
  });
2814
- function ii(e, t = {}) {
2815
+ function ai(e, t = {}) {
2815
2816
  const {
2816
2817
  alarms: n,
2817
2818
  types: o,
@@ -2819,49 +2820,49 @@ function ii(e, t = {}) {
2819
2820
  chatter: s,
2820
2821
  flood: i,
2821
2822
  keepDone: a = !1,
2822
- columns: c = xs
2823
- } = e, u = new Map(o.map((p) => [p.id, p])), h = vs(n, (s == null ? void 0 : s.windowMs) ?? 1 / 0, r), d = i ? Cs(n, i, r) : null, m = new Set((d == null ? void 0 : d.alarms) ?? []), w = n.filter((p) => a || !bs(p.lifecycle)).map((p) => {
2824
- const b = u.get(p.type) ?? Ts(p.type), g = h.get(p.type) ?? 0;
2823
+ columns: c = As
2824
+ } = e, u = new Map(o.map((p) => [p.id, p])), h = ys(n, (s == null ? void 0 : s.windowMs) ?? 1 / 0, r), d = i ? Cs(n, i, r) : null, m = new Set((d == null ? void 0 : d.alarms) ?? []), w = n.filter((p) => a || !vs(p.lifecycle)).map((p) => {
2825
+ const b = u.get(p.type) ?? Fs(p.type), g = h.get(p.type) ?? 0;
2825
2826
  return {
2826
2827
  id: p.id,
2827
2828
  alarm: p,
2828
2829
  type: b,
2829
2830
  lifecycle: p.lifecycle,
2830
2831
  priority: b.priority,
2831
- rank: ms(b.priority),
2832
+ rank: ws(b.priority),
2832
2833
  age: r - p.raised,
2833
2834
  duration: (p.cleared ?? r) - p.raised,
2834
2835
  frequency: g,
2835
2836
  chatters: s !== void 0 && g >= s.atLeast,
2836
2837
  inFlood: m.has(p.id)
2837
2838
  };
2838
- }), k = tt(w, c, {
2839
+ }), v = tt(w, c, {
2839
2840
  ...t,
2840
- sort: t.sort === void 0 ? As : t.sort
2841
+ sort: t.sort === void 0 ? Ts : t.sort
2841
2842
  });
2842
2843
  return {
2843
- ...k,
2844
+ ...v,
2844
2845
  flood: d,
2845
- standingUnacknowledged: k.filtered.reduce(
2846
+ standingUnacknowledged: v.filtered.reduce(
2846
2847
  (p, b) => p + (b.lifecycle === "standing-unacknowledged" ? 1 : 0),
2847
2848
  0
2848
2849
  )
2849
2850
  };
2850
2851
  }
2851
- const Fs = "_list_17f0w_4 _text_1hv7a_23", Os = "_bar_17f0w_12", Ls = "_heading_17f0w_19", Rs = "_filler_17f0w_25", Ms = "_asOf_17f0w_29", Vs = "_live_17f0w_46", Ds = "_label_17f0w_51", Is = "_counter_17f0w_55", Bs = "_lifecycle_17f0w_59", Ps = "_empty_17f0w_63", Gs = "_row_17f0w_70", oe = {
2852
- list: Fs,
2853
- bar: Os,
2852
+ const Os = "_list_17f0w_4 _text_1hv7a_23", Rs = "_bar_17f0w_12", Ls = "_heading_17f0w_19", Ms = "_filler_17f0w_25", Vs = "_asOf_17f0w_29", Ds = "_live_17f0w_46", Is = "_label_17f0w_51", Ps = "_counter_17f0w_55", Bs = "_lifecycle_17f0w_59", Gs = "_empty_17f0w_63", Es = "_row_17f0w_70", oe = {
2853
+ list: Os,
2854
+ bar: Rs,
2854
2855
  heading: Ls,
2855
- filler: Rs,
2856
- asOf: Ms,
2857
- live: Vs,
2858
- label: Ds,
2859
- counter: Is,
2856
+ filler: Ms,
2857
+ asOf: Vs,
2858
+ live: Ds,
2859
+ label: Is,
2860
+ counter: Ps,
2860
2861
  lifecycle: Bs,
2861
- empty: Ps,
2862
- row: Gs
2862
+ empty: Gs,
2863
+ row: Es
2863
2864
  };
2864
- function Es(e, t) {
2865
+ function zs(e, t) {
2865
2866
  switch (e) {
2866
2867
  case "standing-unacknowledged":
2867
2868
  return t.lifecycleStandingUnacknowledged;
@@ -2873,26 +2874,26 @@ function Es(e, t) {
2873
2874
  return t.lifecycleClearedAcknowledged;
2874
2875
  }
2875
2876
  }
2876
- function zs(e, t) {
2877
+ function Hs(e, t) {
2877
2878
  return e === "high" ? t.priorityHigh : e === "medium" ? t.priorityMedium : t.priorityLow;
2878
2879
  }
2879
2880
  function js(e) {
2880
2881
  return e === "high" ? "danger" : e === "medium" ? "warning" : "neutral";
2881
2882
  }
2882
- function Hs(e, t) {
2883
+ function $s(e, t) {
2883
2884
  const n = Math.max(0, Math.floor(e / 6e4)), o = Math.floor(n / 60), r = n % 60, s = [];
2884
2885
  return o > 0 && s.push(t.hoursShort(o)), (o === 0 || r > 0) && s.push(t.minutesShort(r)), s.join(" ");
2885
2886
  }
2886
- function ai(e) {
2887
+ function li(e) {
2887
2888
  const { asOf: t, freshness: n, ...o } = e;
2888
- return t === void 0 || n === void 0 ? /* @__PURE__ */ l(Ut, { ...o, freshness: null }) : /* @__PURE__ */ l($s, { ...o, asOf: t, ages: n });
2889
+ return t === void 0 || n === void 0 ? /* @__PURE__ */ l(Ut, { ...o, freshness: null }) : /* @__PURE__ */ l(Ks, { ...o, asOf: t, ages: n });
2889
2890
  }
2890
- function $s({
2891
+ function Ks({
2891
2892
  asOf: e,
2892
2893
  ages: t,
2893
2894
  ...n
2894
2895
  }) {
2895
- const o = sn(e, t);
2896
+ const o = an(e, t);
2896
2897
  return /* @__PURE__ */ l(Ut, { ...n, freshness: o });
2897
2898
  }
2898
2899
  function Ut({
@@ -2904,7 +2905,7 @@ function Ut({
2904
2905
  freshness: s,
2905
2906
  ...i
2906
2907
  }) {
2907
- const a = U(), c = ue(), u = s !== null, h = (s == null ? void 0 : s.freshness) === "lost", { Table: d, Column: m } = gs(e.visible, { rowKey: (g) => g.id, selection: t }), w = $(() => e.filtered.map((g) => g.alarm), [e.filtered]), k = $(() => t === void 0 ? [] : e.filtered.map((g) => g.id).filter((g) => t.selected.has(g)), [e.filtered, t]), p = $(() => Ss(w, k), [w, k]), b = Tt(o, "compact");
2908
+ const a = U(), c = ue(), u = s !== null, h = (s == null ? void 0 : s.freshness) === "lost", { Table: d, Column: m } = ps(e.visible, { rowKey: (g) => g.id, selection: t }), w = $(() => e.filtered.map((g) => g.alarm), [e.filtered]), v = $(() => t === void 0 ? [] : e.filtered.map((g) => g.id).filter((g) => t.selected.has(g)), [e.filtered, t]), p = $(() => Ns(w, v), [w, v]), b = Tt(o, "compact");
2908
2909
  return /* @__PURE__ */ O("div", { className: [oe.list, r].filter(Boolean).join(" "), ...i, children: [
2909
2910
  /* @__PURE__ */ O("div", { className: oe.bar, children: [
2910
2911
  /* @__PURE__ */ l("span", { className: oe.heading, children: a.alarms }),
@@ -2914,7 +2915,7 @@ function Ut({
2914
2915
  s.age !== null && ` · ${c.relative(s.age)}`
2915
2916
  ] }),
2916
2917
  /* @__PURE__ */ l("span", { className: oe.filler }),
2917
- t !== void 0 && n !== void 0 && /* @__PURE__ */ l(ee, { variant: "primary", size: "sm", disabled: p === 0, onClick: () => n(k), children: p === 0 ? a.acknowledgeAlarm : a.acknowledgeAlarms(p) })
2918
+ t !== void 0 && n !== void 0 && /* @__PURE__ */ l(ee, { variant: "primary", size: "sm", disabled: p === 0, onClick: () => n(v), children: p === 0 ? a.acknowledgeAlarm : a.acknowledgeAlarms(p) })
2918
2919
  ] }),
2919
2920
  /* @__PURE__ */ l("div", { "aria-live": "polite", "aria-atomic": "true", className: oe.live, children: a.standingUnacknowledged(e.standingUnacknowledged) }),
2920
2921
  /* @__PURE__ */ O(
@@ -2927,12 +2928,12 @@ function Ut({
2927
2928
  rowProps: (g) => ({ className: oe.row, "data-lifecycle": g.lifecycle, "data-priority": g.priority }),
2928
2929
  empty: /* @__PURE__ */ l("span", { className: oe.empty, children: h ? a.noAlarmsDisconnected : a.noAlarms }),
2929
2930
  children: [
2930
- /* @__PURE__ */ l(m, { id: "type", label: a.columnAlarm, value: (g) => g.type.label, rowHeader: !0, sortable: !1, children: (g, _) => /* @__PURE__ */ O(Q, { children: [
2931
+ /* @__PURE__ */ l(m, { id: "type", label: a.columnAlarm, value: (g) => g.type.label, rowHeader: !0, sortable: !1, children: (g, y) => /* @__PURE__ */ O(Q, { children: [
2931
2932
  /* @__PURE__ */ l("span", { className: oe.label, children: g }),
2932
- _.chatters && /* @__PURE__ */ l(Ie, { tone: "warning", pill: !0, className: oe.counter, children: a.chatterHint(_.frequency) })
2933
+ y.chatters && /* @__PURE__ */ l(Ie, { tone: "warning", pill: !0, className: oe.counter, children: a.chatterHint(y.frequency) })
2933
2934
  ] }) }),
2934
- /* @__PURE__ */ l(m, { value: "lifecycle", label: a.columnLifecycleState, sortable: !1, children: (g) => /* @__PURE__ */ l("span", { className: oe.lifecycle, children: Es(g, a) }) }),
2935
- /* @__PURE__ */ l(m, { value: "priority", label: a.columnPriority, sortable: !1, children: (g) => /* @__PURE__ */ l(Ie, { tone: js(g), children: zs(g, a) }) }),
2935
+ /* @__PURE__ */ l(m, { value: "lifecycle", label: a.columnLifecycleState, sortable: !1, children: (g) => /* @__PURE__ */ l("span", { className: oe.lifecycle, children: zs(g, a) }) }),
2936
+ /* @__PURE__ */ l(m, { value: "priority", label: a.columnPriority, sortable: !1, children: (g) => /* @__PURE__ */ l(Ie, { tone: js(g), children: Hs(g, a) }) }),
2936
2937
  /* @__PURE__ */ l(
2937
2938
  m,
2938
2939
  {
@@ -2943,7 +2944,7 @@ function Ut({
2943
2944
  sortable: !1
2944
2945
  }
2945
2946
  ),
2946
- /* @__PURE__ */ l(m, { value: "duration", label: a.columnDuration, sortable: !1, children: (g) => Hs(g, a) }),
2947
+ /* @__PURE__ */ l(m, { value: "duration", label: a.columnDuration, sortable: !1, children: (g) => $s(g, a) }),
2947
2948
  /* @__PURE__ */ l(m, { value: "frequency", label: a.columnFrequency, format: "count", sortable: !1 })
2948
2949
  ]
2949
2950
  }
@@ -2951,30 +2952,30 @@ function Ut({
2951
2952
  ] });
2952
2953
  }
2953
2954
  export {
2954
- xs as ALARM_COLUMNS,
2955
- ai as AlarmList,
2956
- ei as ColumnMenu,
2957
- As as DEFAULT_ORDER,
2958
- ti as Export,
2959
- ps as PRIORITIES,
2960
- ni as Pagination,
2961
- Zs as Search,
2962
- Qs as Toolbar,
2963
- si as acknowledge,
2964
- Ns as alarmColumns,
2965
- ii as alarmModel,
2966
- Xs as column,
2967
- Js as columnFilter,
2968
- Ss as countAcknowledgeable,
2969
- ri as countInWindow,
2955
+ As as ALARM_COLUMNS,
2956
+ li as AlarmList,
2957
+ ti as ColumnMenu,
2958
+ Ts as DEFAULT_ORDER,
2959
+ ni as Export,
2960
+ ms as PRIORITIES,
2961
+ oi as Pagination,
2962
+ ei as Search,
2963
+ Zs as Toolbar,
2964
+ ii as acknowledge,
2965
+ xs as alarmColumns,
2966
+ ai as alarmModel,
2967
+ Qs as column,
2968
+ Xs as columnFilter,
2969
+ Ns as countAcknowledgeable,
2970
+ si as countInWindow,
2970
2971
  Cs as detectFlood,
2971
- vs as frequencyByType,
2972
- oi as hasReturned,
2972
+ ys as frequencyByType,
2973
+ ri as hasReturned,
2973
2974
  De as isAcknowledged,
2974
- bs as isDone,
2975
- ws as isStanding,
2976
- ks as nextLifecycleState,
2977
- ms as priorityRank,
2978
- gs as useTable,
2979
- ln as useTableSelection
2975
+ vs as isDone,
2976
+ bs as isStanding,
2977
+ _s as nextLifecycleState,
2978
+ ws as priorityRank,
2979
+ ps as useTable,
2980
+ cn as useTableSelection
2980
2981
  };