@iota-uz/sdk 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-BXaSLD9I.js → CascadePanel-mCYxPyo6.js} +57 -56
  4. package/dist/lens/{ChartDataEquivalent-Uo4RCCqz.js → ChartDataEquivalent-C_xsesoH.js} +1 -1
  5. package/dist/lens/{ChartPanel-BYIblvtO.js → ChartPanel-PKIJcbXq.js} +4 -4
  6. package/dist/lens/{CoveragePanel-CBxW7l_N.js → CoveragePanel-CAXz9e00.js} +14 -13
  7. package/dist/lens/DashboardPanels.d.ts.map +1 -1
  8. package/dist/lens/{GaugePanel-Gm3y4QBi.js → GaugePanel-COpgt8DC.js} +12 -10
  9. package/dist/lens/LensDashboard.d.ts +2 -0
  10. package/dist/lens/LensDashboard.d.ts.map +1 -1
  11. package/dist/lens/{MapPanel-Fr67rBRo.js → MapPanel-a664hFjP.js} +49 -48
  12. package/dist/lens/{MetricFlowPanel-DFGBh3hI.js → MetricFlowPanel-CN1t5062.js} +17 -16
  13. package/dist/lens/{MetricHierarchyPanel-DKiQ8e3m.js → MetricHierarchyPanel-EYiIYD3R.js} +7 -6
  14. package/dist/lens/{MetricRelationshipPanel-YC3Cg9Id.js → MetricRelationshipPanel-PD-bwlkT.js} +18 -17
  15. package/dist/lens/{PrintReport-BPI_jNyw.js → PrintReport-DwUf3TgB.js} +628 -597
  16. package/dist/lens/{TablePanel-Bh8dWK4d.js → TablePanel-CYTWohAp.js} +111 -110
  17. package/dist/lens/{adapter-DIzUDxuh.js → adapter-D8Ng5AlN.js} +7 -7
  18. package/dist/lens/contract/schemas.d.ts +13 -0
  19. package/dist/lens/contract/schemas.d.ts.map +1 -1
  20. package/dist/lens/contract/types.d.ts +83 -0
  21. package/dist/lens/contract/types.d.ts.map +1 -1
  22. package/dist/lens/controls/FacetFilterMenu.d.ts +1 -0
  23. package/dist/lens/controls/FacetFilterMenu.d.ts.map +1 -1
  24. package/dist/lens/controls/FilterBar.d.ts.map +1 -1
  25. package/dist/lens/controls/PeriodFilterControl.d.ts +3 -1
  26. package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -1
  27. package/dist/lens/controls/ScopedFilterControls.d.ts +23 -0
  28. package/dist/lens/controls/ScopedFilterControls.d.ts.map +1 -0
  29. package/dist/lens/{index-DW4iQi93.js → index-CWus23Z0.js} +5615 -4978
  30. package/dist/lens/{index-2qUA4koZ.js → index-D14bsvyH.js} +1 -1
  31. package/dist/lens/index.d.ts +4 -0
  32. package/dist/lens/index.d.ts.map +1 -1
  33. package/dist/lens/index.js +25 -18
  34. package/dist/lens/{install-Czhlaw4u.js → install-5D312Ff-.js} +1 -1
  35. package/dist/lens/{install-C-b2Bm4Y.js → install-BP8dW4Kl.js} +1 -1
  36. package/dist/lens/{install-Ce8R_Bl2.js → install-BviBdh8O.js} +1 -1
  37. package/dist/lens/{install-C7rGzRvO.js → install-DP5BAWun.js} +1 -1
  38. package/dist/lens/{keys-BC7G1vyT.js → keys-BCN1Yl0b.js} +12 -11
  39. package/dist/lens/{metricViews-DSoDe0GU.js → metricViews-UrjJRBia.js} +18 -17
  40. package/dist/lens/{prefetch-Caqfl7sC.js → prefetch-7DFbnsf7.js} +2 -2
  41. package/dist/lens/{prefetchPanels-B-09akeK.js → prefetchPanels-DkDn5UpH.js} +5 -5
  42. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  43. package/dist/lens/print/outline.d.ts +2 -0
  44. package/dist/lens/print/outline.d.ts.map +1 -1
  45. package/dist/lens/{print-CcDZyjFC.js → print-V-2WkLg4.js} +1 -1
  46. package/dist/lens/reports/contract/schemas.d.ts +7 -0
  47. package/dist/lens/reports/contract/schemas.d.ts.map +1 -1
  48. package/dist/lens/reports/contract/types.d.ts +42 -0
  49. package/dist/lens/reports/contract/types.d.ts.map +1 -1
  50. package/dist/lens/reports/filterDraft.d.ts +22 -0
  51. package/dist/lens/reports/filterDraft.d.ts.map +1 -0
  52. package/dist/lens/reports/filterHost.d.ts +13 -0
  53. package/dist/lens/reports/filterHost.d.ts.map +1 -0
  54. package/dist/lens/reports/placement.d.ts +6 -0
  55. package/dist/lens/reports/placement.d.ts.map +1 -0
  56. package/dist/lens/runtime/filters.d.ts.map +1 -1
  57. package/dist/lens/runtime/provider.d.ts.map +1 -1
  58. package/dist/lens/{scales-DOCY7Afr.js → scales-C_jp88QJ.js} +53 -53
  59. package/dist/lens/style.css +1 -1
  60. package/dist/sdk-identity.cjs +3 -3
  61. package/dist/sdk-identity.js +3 -3
  62. package/dist/sdk-identity.json +2 -2
  63. package/package.json +1 -1
@@ -1,16 +1,17 @@
1
- import { createComponent as d, insert as r, effect as I, setAttribute as R, template as g, memo as E, style as _e, Portal as je, setStyleProperty as ee, className as oe } from "solid-js/web";
2
- import { Show as y, createMemo as j, For as L, createContext as Be, useContext as Ee } from "solid-js";
3
- import { W as Oe, b as Ue, a as We } from "./CascadePanel-BXaSLD9I.js";
4
- import { C as ze, m as le, f as He } from "./keys-BC7G1vyT.js";
5
- import { u as q, r as Ge, f as K, b as Qe, a as Je, c as Ye, d as we, e as ye, g as ke, h as xe, i as Ce, j as Xe } from "./index-DW4iQi93.js";
6
- import { r as Y, a as pe, c as Ze, b as et, f as me, d as tt, h as nt } from "./metricViews-DSoDe0GU.js";
7
- import { relationshipSentence as rt } from "./MetricRelationshipPanel-YC3Cg9Id.js";
8
- var lt = /* @__PURE__ */ g("<span class=lens-print-chip>");
9
- function it(e, t) {
1
+ import { createComponent as u, insert as r, effect as V, setAttribute as R, template as b, memo as B, style as _e, Portal as qe, setStyleProperty as ee, className as oe } from "solid-js/web";
2
+ import { Show as w, createMemo as q, For as L, createContext as je, useContext as Be } from "solid-js";
3
+ import { u as I, r as Oe, f as K, b as Ue, a as We, c as ze, F as He, d as we, e as ye, g as xe, h as ke, i as Ce, j as Ge } from "./index-CWus23Z0.js";
4
+ import { W as Qe, b as Je, a as Ye } from "./CascadePanel-mCYxPyo6.js";
5
+ import { C as Xe, m as le, f as Ze } from "./keys-BCN1Yl0b.js";
6
+ import "solid-js/store";
7
+ import { r as Y, a as pe, c as et, b as tt, f as me, d as nt, h as rt } from "./metricViews-UrjJRBia.js";
8
+ import { relationshipSentence as lt } from "./MetricRelationshipPanel-PD-bwlkT.js";
9
+ var it = /* @__PURE__ */ b("<span class=lens-print-chip>");
10
+ function at(e, t) {
10
11
  const l = Y(e);
11
12
  return l ? t(l.meta.labelKey, l.meta.fallback) : void 0;
12
13
  }
13
- function at(e, t) {
14
+ function st(e, t) {
14
15
  const l = Y(e);
15
16
  if (l) {
16
17
  if (l.axis === "availability")
@@ -50,36 +51,36 @@ const ge = {
50
51
  labelKey: "print.defUnavailable",
51
52
  fallback: "Unavailable — the figure could not be produced, and is shown as a dash rather than as a zero."
52
53
  }
53
- }, st = /* @__PURE__ */ new Set(["config_required", "empty_source", "unavailable"]);
54
- function ot(e, t) {
54
+ }, ot = /* @__PURE__ */ new Set(["config_required", "empty_source", "unavailable"]);
55
+ function ct(e, t) {
55
56
  const l = /* @__PURE__ */ new Set(), i = Object.keys(ge);
56
57
  for (const n of e) {
57
58
  const a = Y(n);
58
59
  a && l.add(a.value);
59
60
  }
60
61
  return i.filter((n) => l.has(n)).map((n) => {
61
- const a = ge[n], c = st.has(n) ? {
62
+ const a = ge[n], c = ot.has(n) ? {
62
63
  availability: n
63
64
  } : {
64
65
  confidence: n
65
66
  };
66
67
  return {
67
68
  value: n,
68
- label: it(c, t) ?? n,
69
+ label: at(c, t) ?? n,
69
70
  definition: t(a.labelKey, a.fallback)
70
71
  };
71
72
  });
72
73
  }
73
74
  function X(e) {
74
- const t = q(), l = Y({
75
+ const t = I(), l = Y({
75
76
  confidence: e.confidence,
76
77
  availability: e.availability
77
78
  });
78
- return d(y, {
79
+ return u(w, {
79
80
  when: l,
80
81
  children: (i) => (() => {
81
- var n = lt();
82
- return r(n, () => t(i().meta.labelKey, i().meta.fallback)), I(() => R(n, "data-quality", i().value)), n;
82
+ var n = it();
83
+ return r(n, () => t(i().meta.labelKey, i().meta.fallback)), V(() => R(n, "data-quality", i().value)), n;
83
84
  })()
84
85
  });
85
86
  }
@@ -97,7 +98,7 @@ function W(e) {
97
98
  function A(e, t) {
98
99
  return t ? e.columns.findIndex(({ name: l }) => l === t) : -1;
99
100
  }
100
- function ct(e, t) {
101
+ function ut(e, t) {
101
102
  const l = { ...e.format };
102
103
  for (const [i, n] of Object.entries(t)) {
103
104
  const a = e.encoding[i];
@@ -105,35 +106,35 @@ function ct(e, t) {
105
106
  }
106
107
  return l;
107
108
  }
108
- function ut(e, t) {
109
+ function dt(e, t) {
109
110
  return e === "partition" ? ["pie", "donut", "bar", "hbar"].includes(t) ? t : "donut" : e === "reconciliation" ? "cascade" : e === "series" ? "line" : "table";
110
111
  }
111
- function V(e) {
112
+ function E(e) {
112
113
  var a;
113
- const t = ((a = e.perspective) == null ? void 0 : a.semantics) ?? e.panel.semantics, l = e.level.encoding ?? e.panel.encoding, n = e.root || e.path.length === 0 ? e.panel.kind : e.level.view ?? ut(t, e.panel.kind);
114
+ const t = ((a = e.perspective) == null ? void 0 : a.semantics) ?? e.panel.semantics, l = e.level.encoding ?? e.panel.encoding, n = e.root || e.path.length === 0 ? e.panel.kind : e.level.view ?? dt(t, e.panel.kind);
114
115
  return {
115
- ...Ge(e.panel, n),
116
+ ...Oe(e.panel, n),
116
117
  title: e.level.label.trim() || e.panel.title,
117
118
  semantics: t,
118
119
  encoding: l,
119
- format: ct(e.panel, l),
120
+ format: ut(e.panel, l),
120
121
  presentation: e.level.presentation ?? e.panel.presentation
121
122
  };
122
123
  }
123
- function dt(e) {
124
+ function ht(e) {
124
125
  if (!(!e || e.rows.length === 0))
125
126
  return JSON.stringify([e.columns.map(({ name: t }) => t), e.rows]);
126
127
  }
127
- function ht(e) {
128
+ function ft(e) {
128
129
  var i, n;
129
- const t = V(e.section), l = [t];
130
+ const t = E(e.section), l = [t];
130
131
  for (const a of ((i = t.metricFlow) == null ? void 0 : i.stages) ?? []) l.push(a);
131
132
  for (const a of ((n = t.metricHierarchy) == null ? void 0 : n.rows) ?? []) l.push(a);
132
133
  return t.metricRelationship && l.push(t.metricRelationship.source, t.metricRelationship.target), l;
133
134
  }
134
- function ft(e) {
135
+ function pt(e) {
135
136
  var n;
136
- const t = V(e.section), l = e.section.frame;
137
+ const t = E(e.section), l = e.section.frame;
137
138
  if (!l || !((n = t.columns) != null && n.length)) return [];
138
139
  const i = [];
139
140
  for (const a of t.columns) {
@@ -146,17 +147,17 @@ function ft(e) {
146
147
  }
147
148
  return i;
148
149
  }
149
- function pt(e, t) {
150
+ function mt(e, t) {
150
151
  var n;
151
152
  const l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
152
153
  for (const a of e) {
153
- const c = V(a.section), s = [], o = (n = c.info) == null ? void 0 : n.trim();
154
+ const c = E(a.section), s = [], o = (n = c.info) == null ? void 0 : n.trim();
154
155
  o && s.push(o);
155
- for (const f of ht(a)) {
156
- const p = at(f, t);
156
+ for (const f of ft(a)) {
157
+ const p = st(f, t);
157
158
  p && s.push(p);
158
159
  }
159
- s.push(...ft(a));
160
+ s.push(...pt(a));
160
161
  const h = { markers: [], notes: [] };
161
162
  for (const f of s) {
162
163
  const p = l.get(f);
@@ -171,18 +172,18 @@ function pt(e, t) {
171
172
  }
172
173
  return i;
173
174
  }
174
- const mt = 1e4, gt = [1e9, 1e6, 1e3];
175
+ const gt = 1e4, bt = [1e9, 1e6, 1e3];
175
176
  function ie(e, t) {
176
177
  if (e == null || e === "") return;
177
178
  const l = typeof e == "number" ? e : Number(e);
178
179
  if (Number.isFinite(l))
179
180
  return t.minorUnits && t.kind === "money" ? l / 100 : l;
180
181
  }
181
- function bt(e, t) {
182
+ function vt(e, t) {
182
183
  var n;
183
184
  return ((n = new Intl.NumberFormat(t, { notation: "compact", compactDisplay: "short" }).formatToParts(e).find((a) => a.type === "compact")) == null ? void 0 : n.value.trim()) || void 0;
184
185
  }
185
- function vt(e, t, l, i) {
186
+ function $t(e, t, l, i) {
186
187
  return K(e, {
187
188
  ...l,
188
189
  kind: "number",
@@ -198,12 +199,12 @@ function ne(e, t, l) {
198
199
  if (!t || t.kind !== "money" && t.kind !== "number") return i;
199
200
  const n = e.map((p) => ie(p, t)).filter((p) => p !== void 0 && p !== 0);
200
201
  if (n.length === 0) return i;
201
- const a = t.kind === "money" ? (t.currency ?? "").trim() : "", c = n.map((p) => Math.abs(p)), s = Math.max(...c), o = Math.min(...c), h = s / o <= mt ? gt.find((p) => s >= p) : void 0, f = h ? bt(h, l) : void 0;
202
+ const a = t.kind === "money" ? (t.currency ?? "").trim() : "", c = n.map((p) => Math.abs(p)), s = Math.max(...c), o = Math.min(...c), h = s / o <= gt ? bt.find((p) => s >= p) : void 0, f = h ? vt(h, l) : void 0;
202
203
  return h && f ? {
203
204
  note: [f, a].filter(Boolean).join(" "),
204
205
  format: (p) => {
205
206
  const m = ie(p, t);
206
- return m === void 0 ? K(p, t, l) : vt(m / h, l, t, 2);
207
+ return m === void 0 ? K(p, t, l) : $t(m / h, l, t, 2);
207
208
  }
208
209
  } : a ? {
209
210
  note: a,
@@ -219,12 +220,12 @@ function ne(e, t, l) {
219
220
  }
220
221
  } : i;
221
222
  }
222
- var $t = /* @__PURE__ */ g("<p class=lens-print-formula-unit>"), _t = /* @__PURE__ */ g("<p class=lens-print-formula-note>"), wt = /* @__PURE__ */ g("<div class=lens-print-formula><ol class=lens-print-flow>"), Me = /* @__PURE__ */ g("<small>"), yt = /* @__PURE__ */ g("<li class=lens-print-flow-stage><span class=lens-print-flow-op></span><span class=lens-print-flow-label></span><span class=lens-print-flow-value>"), kt = /* @__PURE__ */ g("<div class=lens-print-formula><ul class=lens-print-hierarchy>"), xt = /* @__PURE__ */ g("<em>"), Ct = /* @__PURE__ */ g("<span class=lens-print-hierarchy-reconcile>"), St = /* @__PURE__ */ g("<li class=lens-print-hierarchy-row><span class=lens-print-hierarchy-label></span><span class=lens-print-hierarchy-value></span><span class=lens-print-hierarchy-share>"), Ft = /* @__PURE__ */ g('<div class="lens-print-formula lens-print-relationship"><p class=lens-print-relationship-claim></p><div class=lens-print-relationship-ends></div><p class=lens-print-formula-note>'), Mt = /* @__PURE__ */ g("<span aria-hidden=true class=lens-print-relationship-glyph>"), Dt = /* @__PURE__ */ g("<div class=lens-print-relationship-end><span class=lens-print-relationship-label></span><span class=lens-print-relationship-value>");
223
- function Pt(e, t) {
224
- const l = q();
225
- return j(() => {
223
+ var _t = /* @__PURE__ */ b("<p class=lens-print-formula-unit>"), wt = /* @__PURE__ */ b("<p class=lens-print-formula-note>"), yt = /* @__PURE__ */ b("<div class=lens-print-formula><ol class=lens-print-flow>"), Me = /* @__PURE__ */ b("<small>"), xt = /* @__PURE__ */ b("<li class=lens-print-flow-stage><span class=lens-print-flow-op></span><span class=lens-print-flow-label></span><span class=lens-print-flow-value>"), kt = /* @__PURE__ */ b("<div class=lens-print-formula><ul class=lens-print-hierarchy>"), Ct = /* @__PURE__ */ b("<em>"), St = /* @__PURE__ */ b("<span class=lens-print-hierarchy-reconcile>"), Ft = /* @__PURE__ */ b("<li class=lens-print-hierarchy-row><span class=lens-print-hierarchy-label></span><span class=lens-print-hierarchy-value></span><span class=lens-print-hierarchy-share>"), Mt = /* @__PURE__ */ b('<div class="lens-print-formula lens-print-relationship"><p class=lens-print-relationship-claim></p><div class=lens-print-relationship-ends></div><p class=lens-print-formula-note>'), Pt = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-relationship-glyph>"), Dt = /* @__PURE__ */ b("<div class=lens-print-relationship-end><span class=lens-print-relationship-label></span><span class=lens-print-relationship-value>");
224
+ function Tt(e, t) {
225
+ const l = I();
226
+ return q(() => {
226
227
  if (t.frame)
227
- return Qe(e, t.frame, {
228
+ return Ue(e, t.frame, {
228
229
  missingColumn: (i) => l("panel.missingColumn", "Panel data is missing the “{column}” column.", {
229
230
  column: i
230
231
  }),
@@ -238,57 +239,57 @@ function te(e, t, l = "value") {
238
239
  const i = e.encoding[l];
239
240
  return (n) => K(n, i ? e.format[i] : void 0, t);
240
241
  }
241
- function Tt(e) {
242
- const t = q(), l = te(e.panel, e.locale), i = j(() => {
242
+ function At(e) {
243
+ const t = I(), l = te(e.panel, e.locale), i = q(() => {
243
244
  const c = [];
244
245
  return me(e.panel, e.join, (s) => (c.push(s), "")), ne(c, e.panel.encoding.value ? e.panel.format[e.panel.encoding.value] : void 0, e.locale);
245
- }), n = j(() => me(e.panel, e.join, (c) => i().format(c))), a = j(() => tt(e.panel, e.join));
246
- return d(y, {
246
+ }), n = q(() => me(e.panel, e.join, (c) => i().format(c))), a = q(() => nt(e.panel, e.join));
247
+ return u(w, {
247
248
  get when() {
248
249
  return n().length > 0;
249
250
  },
250
251
  get children() {
251
- var c = wt(), s = c.firstChild;
252
- return r(c, d(y, {
252
+ var c = yt(), s = c.firstChild;
253
+ return r(c, u(w, {
253
254
  get when() {
254
255
  return i().note;
255
256
  },
256
257
  get children() {
257
- var o = $t();
258
+ var o = _t();
258
259
  return r(o, () => i().note), o;
259
260
  }
260
- }), s), r(s, d(L, {
261
+ }), s), r(s, u(L, {
261
262
  get each() {
262
263
  return n();
263
264
  },
264
265
  children: (o) => (() => {
265
- var h = yt(), f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
266
- return r(f, () => o.operator), r(p, () => o.stage.label, null), r(p, d(y, {
266
+ var h = xt(), f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
267
+ return r(f, () => o.operator), r(p, () => o.stage.label, null), r(p, u(w, {
267
268
  get when() {
268
269
  return o.stage.caption;
269
270
  },
270
271
  get children() {
271
- var $ = Me();
272
- return r($, () => o.stage.caption), $;
272
+ var x = Me();
273
+ return r(x, () => o.stage.caption), x;
273
274
  }
274
275
  }), null), r(m, (() => {
275
- var $ = E(() => !!o.showDash);
276
- return () => $() ? "—" : o.text;
277
- })(), null), r(m, d(X, {
276
+ var x = B(() => !!o.showDash);
277
+ return () => x() ? "—" : o.text;
278
+ })(), null), r(m, u(X, {
278
279
  get confidence() {
279
280
  return o.confidence;
280
281
  },
281
282
  get availability() {
282
283
  return o.availability;
283
284
  }
284
- }), null), I(() => R(h, "data-result", o.role === "result" || void 0)), h;
285
+ }), null), V(() => R(h, "data-result", o.role === "result" || void 0)), h;
285
286
  })()
286
- })), r(c, d(y, {
287
+ })), r(c, u(w, {
287
288
  get when() {
288
289
  return a() !== void 0;
289
290
  },
290
291
  get children() {
291
- var o = _t();
292
+ var o = wt();
292
293
  return r(o, () => t("flow.difference", "Difference: {delta}", {
293
294
  delta: l(a())
294
295
  })), o;
@@ -297,29 +298,29 @@ function Tt(e) {
297
298
  }
298
299
  });
299
300
  }
300
- function At(e) {
301
- const t = q(), l = te(e.panel, e.locale), i = te(e.panel, e.locale, "share"), n = j(() => nt(e.panel, e.join, l, i));
302
- return d(y, {
301
+ function Kt(e) {
302
+ const t = I(), l = te(e.panel, e.locale), i = te(e.panel, e.locale, "share"), n = q(() => rt(e.panel, e.join, l, i));
303
+ return u(w, {
303
304
  get when() {
304
305
  return n().length > 0;
305
306
  },
306
307
  get children() {
307
308
  var a = kt(), c = a.firstChild;
308
- return r(c, d(L, {
309
+ return r(c, u(L, {
309
310
  get each() {
310
311
  return n();
311
312
  },
312
313
  children: (s) => (() => {
313
- var o = St(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
314
- return r(h, () => s.row.label, null), r(h, d(y, {
314
+ var o = Ft(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
315
+ return r(h, () => s.row.label, null), r(h, u(w, {
315
316
  get when() {
316
317
  return s.row.unallocated;
317
318
  },
318
319
  get children() {
319
- var m = xt();
320
+ var m = Ct();
320
321
  return r(m, () => t("hierarchy.unallocated", "Unallocated")), m;
321
322
  }
322
- }), null), r(h, d(y, {
323
+ }), null), r(h, u(w, {
323
324
  get when() {
324
325
  return s.row.description;
325
326
  },
@@ -328,33 +329,33 @@ function At(e) {
328
329
  return r(m, () => s.row.description), m;
329
330
  }
330
331
  }), null), r(f, (() => {
331
- var m = E(() => !!s.showDash);
332
+ var m = B(() => !!s.showDash);
332
333
  return () => m() ? "—" : s.valueText;
333
- })(), null), r(f, d(X, {
334
+ })(), null), r(f, u(X, {
334
335
  get confidence() {
335
336
  return s.confidence;
336
337
  },
337
338
  get availability() {
338
339
  return s.availability;
339
340
  }
340
- }), null), r(p, () => s.shareText ?? ""), r(o, d(y, {
341
+ }), null), r(p, () => s.shareText ?? ""), r(o, u(w, {
341
342
  get when() {
342
343
  return s.reconcile;
343
344
  },
344
345
  get children() {
345
- var m = Ct();
346
+ var m = St();
346
347
  return r(m, (() => {
347
- var $ = E(() => !!s.reconcile.balanced);
348
- return () => $() ? t("hierarchy.allocated", "Allocated 100%") : t("hierarchy.difference", "Difference: {delta}", {
348
+ var x = B(() => !!s.reconcile.balanced);
349
+ return () => x() ? t("hierarchy.allocated", "Allocated 100%") : t("hierarchy.difference", "Difference: {delta}", {
349
350
  delta: l(s.reconcile.delta)
350
351
  });
351
352
  })()), m;
352
353
  }
353
- }), null), I((m) => {
354
- var $ = s.isParent || void 0, b = {
354
+ }), null), V((m) => {
355
+ var x = s.isParent || void 0, v = {
355
356
  "--lens-depth": s.depth
356
357
  };
357
- return $ !== m.e && R(o, "data-parent", m.e = $), m.t = _e(o, b, m.t), m;
358
+ return x !== m.e && R(o, "data-parent", m.e = x), m.t = _e(o, v, m.t), m;
358
359
  }, {
359
360
  e: void 0,
360
361
  t: void 0
@@ -364,61 +365,61 @@ function At(e) {
364
365
  }
365
366
  });
366
367
  }
367
- function Kt(e) {
368
- const t = q(), l = te(e.panel, e.locale), i = e.panel.metricRelationship;
369
- return d(y, {
368
+ function Nt(e) {
369
+ const t = I(), l = te(e.panel, e.locale), i = e.panel.metricRelationship;
370
+ return u(w, {
370
371
  when: i,
371
372
  children: (n) => {
372
- const a = pe(e.panel, e.join, n().source, l), c = pe(e.panel, e.join, n().target, l), s = Ze(n()).horizontal;
373
+ const a = pe(e.panel, e.join, n().source, l), c = pe(e.panel, e.join, n().target, l), s = et(n()).horizontal;
373
374
  return (() => {
374
- var o = Ft(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
375
- return r(h, () => rt(t, n(), (a == null ? void 0 : a.end.label) ?? "", (c == null ? void 0 : c.end.label) ?? "")), r(f, d(L, {
375
+ var o = Mt(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
376
+ return r(h, () => lt(t, n(), (a == null ? void 0 : a.end.label) ?? "", (c == null ? void 0 : c.end.label) ?? "")), r(f, u(L, {
376
377
  each: [a, c],
377
- children: (m, $) => (() => {
378
- var b = Dt(), x = b.firstChild, v = x.nextSibling;
379
- return r(x, () => (m == null ? void 0 : m.end.label) ?? "—"), r(v, (() => {
380
- var _ = E(() => !!(!m || m.showDash));
378
+ children: (m, x) => (() => {
379
+ var v = Dt(), y = v.firstChild, g = y.nextSibling;
380
+ return r(y, () => (m == null ? void 0 : m.end.label) ?? "—"), r(g, (() => {
381
+ var _ = B(() => !!(!m || m.showDash));
381
382
  return () => _() ? "—" : m.valueText;
382
- })(), null), r(v, d(X, {
383
+ })(), null), r(g, u(X, {
383
384
  get confidence() {
384
385
  return m == null ? void 0 : m.confidence;
385
386
  },
386
387
  get availability() {
387
388
  return m == null ? void 0 : m.availability;
388
389
  }
389
- }), null), r(b, d(y, {
390
+ }), null), r(v, u(w, {
390
391
  get when() {
391
- return $() === 0;
392
+ return x() === 0;
392
393
  },
393
394
  get children() {
394
- var _ = Mt();
395
+ var _ = Pt();
395
396
  return r(_, s), _;
396
397
  }
397
- }), null), b;
398
+ }), null), v;
398
399
  })()
399
- })), r(p, () => t(`relationship.type.${n().type}`, et[n().type]), null), r(p, (() => {
400
- var m = E(() => !!n().note);
400
+ })), r(p, () => t(`relationship.type.${n().type}`, tt[n().type]), null), r(p, (() => {
401
+ var m = B(() => !!n().note);
401
402
  return () => m() ? ` · ${n().note}` : "";
402
403
  })(), null), o;
403
404
  })();
404
405
  }
405
406
  });
406
407
  }
407
- function De(e) {
408
- const t = j(() => V(e.section)), l = Pt(t(), e.section), i = e.section.document.meta.locale;
409
- return t().kind === "metric_relationship" ? d(Kt, {
408
+ function Pe(e) {
409
+ const t = q(() => E(e.section)), l = Tt(t(), e.section), i = e.section.document.meta.locale;
410
+ return t().kind === "metric_relationship" ? u(Nt, {
410
411
  join: l,
411
412
  locale: i,
412
413
  get panel() {
413
414
  return t();
414
415
  }
415
- }) : !l || l.kind !== "ok" ? null : t().kind === "metric_flow" ? d(Tt, {
416
+ }) : !l || l.kind !== "ok" ? null : t().kind === "metric_flow" ? u(At, {
416
417
  join: l,
417
418
  locale: i,
418
419
  get panel() {
419
420
  return t();
420
421
  }
421
- }) : t().kind === "metric_hierarchy" ? d(At, {
422
+ }) : t().kind === "metric_hierarchy" ? u(Kt, {
422
423
  join: l,
423
424
  locale: i,
424
425
  get panel() {
@@ -448,7 +449,7 @@ function G(e, t) {
448
449
  maximumFractionDigits: 1
449
450
  }).format(t);
450
451
  }
451
- function Nt(e, t, l) {
452
+ function Rt(e, t, l) {
452
453
  const i = Z(e, t, l).filter(({ value: f }) => f > 0);
453
454
  if (i.length < 2) return;
454
455
  const n = [...i].sort((f, p) => p.value - f.value)[0], a = i.filter(({ group: f }) => f === n.group);
@@ -485,7 +486,7 @@ function Nt(e, t, l) {
485
486
  }
486
487
  };
487
488
  }
488
- function Rt(e, t, l) {
489
+ function Lt(e, t, l) {
489
490
  var s;
490
491
  const i = (s = e.radial) == null ? void 0 : s.max;
491
492
  if (!i || i <= 0) return;
@@ -502,7 +503,7 @@ function Rt(e, t, l) {
502
503
  }
503
504
  };
504
505
  }
505
- function Lt(e, t, l) {
506
+ function Et(e, t, l) {
506
507
  const i = Z(e, t, l);
507
508
  if (i.length < 2) return;
508
509
  const n = A(t, e.encoding.final), a = i[0], c = i.find(({ row: h }) => {
@@ -531,7 +532,7 @@ function Lt(e, t, l) {
531
532
  vars: { ...o, share: G(l, Math.abs(s.value) / a.value) }
532
533
  };
533
534
  }
534
- function Vt(e, t, l) {
535
+ function It(e, t, l) {
535
536
  const i = Z(e, t, l);
536
537
  if (i.length < 2) return;
537
538
  const n = i[0], a = i[i.length - 1], c = [...i].sort((h, f) => f.value - h.value)[0], s = {
@@ -555,7 +556,7 @@ function Vt(e, t, l) {
555
556
  vars: { ...s, change: `${o >= 0 ? "+" : "−"}${G(l, Math.abs(o))}` }
556
557
  };
557
558
  }
558
- function qt(e, t, l) {
559
+ function Vt(e, t, l) {
559
560
  if (t.rows.length < 2) return;
560
561
  const n = [...Z(e, t, l)].sort((a, c) => c.value - a.value)[0];
561
562
  return n ? {
@@ -568,7 +569,7 @@ function qt(e, t, l) {
568
569
  vars: { rows: t.rows.length }
569
570
  };
570
571
  }
571
- function It(e, t, l = 4) {
572
+ function qt(e, t, l = 4) {
572
573
  var n;
573
574
  const i = [];
574
575
  for (const a of e) {
@@ -581,7 +582,7 @@ function It(e, t, l = 4) {
581
582
  function jt(e, t, l) {
582
583
  var i;
583
584
  if (!(!t || t.rows.length === 0))
584
- return ((i = e.radial) == null ? void 0 : i.mode) === "progress" ? Rt(e, t, l) : e.semantics === "partition" ? Nt(e, t, l) : e.semantics === "reconciliation" ? Lt(e, t, l) : e.semantics === "series" && (e.kind === "line" || e.kind === "area") ? Vt(e, t, l) : qt(e, t, l);
585
+ return ((i = e.radial) == null ? void 0 : i.mode) === "progress" ? Lt(e, t, l) : e.semantics === "partition" ? Rt(e, t, l) : e.semantics === "reconciliation" ? Et(e, t, l) : e.semantics === "series" && (e.kind === "line" || e.kind === "area") ? It(e, t, l) : Vt(e, t, l);
585
586
  }
586
587
  function Bt(e) {
587
588
  var l, i;
@@ -594,122 +595,124 @@ function Bt(e) {
594
595
  }
595
596
  return t;
596
597
  }
597
- const Et = /* @__PURE__ */ new Set(["stat", "metric_relationship"]);
598
- function Ot(e) {
598
+ const Ot = /* @__PURE__ */ new Set(["stat", "metric_relationship"]);
599
+ function Ut(e) {
599
600
  return e.kind === "stat" || e.kind === "metric_relationship" || e.kind === "pie" || e.kind === "donut" || e.kind === "radial" ? "half" : "full";
600
601
  }
601
- function Ut(e) {
602
- return [...e.groups ?? []].reverse().find((t) => t.label || t.caption);
602
+ function Wt(e) {
603
+ var n;
604
+ const t = [...e.groups ?? []].reverse(), l = t.find((a) => a.label || a.caption) ?? t.find((a) => a.filterContext), i = (n = t.find((a) => a.filterContext)) == null ? void 0 : n.filterContext;
605
+ return l ? { ...l, ...i ? { filterContext: i } : {} } : void 0;
603
606
  }
604
- function Wt(e, t, l) {
607
+ function zt(e, t, l) {
605
608
  const i = t == null ? void 0 : t.trim();
606
609
  return i || (e === 0 ? l : "");
607
610
  }
608
- function zt(e, t, l) {
611
+ function Ht(e, t, l) {
609
612
  const i = e.document, n = [], a = [], c = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
610
613
  let o = 0;
611
614
  const h = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
612
- for (const u of e.sections) {
613
- if (u.owner) {
614
- const F = p.get(u.owner) ?? [];
615
- F.push(u), p.set(u.owner, F);
615
+ for (const d of e.sections) {
616
+ if (d.owner) {
617
+ const M = p.get(d.owner) ?? [];
618
+ M.push(d), p.set(d.owner, M);
616
619
  continue;
617
620
  }
618
- const w = u.root ? h : f, k = w.get(u.panel.id) ?? [];
619
- k.push(u), w.set(u.panel.id, k);
621
+ const $ = d.root ? h : f, k = $.get(d.panel.id) ?? [];
622
+ k.push(d), $.set(d.panel.id, k);
620
623
  }
621
- const m = (u, w) => {
622
- const k = V(u), F = dt(u.frame);
623
- if (!F)
624
+ const m = (d, $) => {
625
+ const k = E(d), M = ht(d.frame);
626
+ if (!M)
624
627
  return a.push(k.title), !1;
625
- if (w === "owned") return !0;
626
- const C = c.get(F);
627
- return C !== void 0 && (w === "detail" || C === u.panel.id) ? !1 : (C === void 0 && c.set(F, u.panel.id), !0);
628
- }, $ = (u, w) => {
628
+ if ($ === "owned") return !0;
629
+ const S = c.get(M);
630
+ return S !== void 0 && ($ === "detail" || S === d.panel.id) ? !1 : (S === void 0 && c.set(M, d.panel.id), !0);
631
+ }, x = (d, $) => {
629
632
  const k = n[n.length - 1];
630
- if (!u && k) return k;
631
- if (k && k.title === u)
632
- return !k.caption && w && (k.caption = w), k;
633
- const F = {
633
+ if (!d && k) return k;
634
+ if (k && k.title === d)
635
+ return !k.caption && $ && (k.caption = $), k;
636
+ const M = {
634
637
  id: `chapter-${n.length + 1}`,
635
638
  number: n.length + 1,
636
- title: u,
637
- ...w ? { caption: w } : {},
639
+ title: d,
640
+ ...$ ? { caption: $ } : {},
638
641
  figures: [],
639
642
  details: []
640
643
  };
641
- return n.push(F), F;
642
- }, b = (u, w, k) => {
644
+ return n.push(M), M;
645
+ }, v = (d, $, k) => {
643
646
  var T;
644
- if (!m(w, "figure")) return;
645
- const F = V(w), C = (((T = w.frame) == null ? void 0 : T.rows.length) ?? 0) <= 1, P = (p.get(w.panel.id) ?? []).filter((N) => m(N, "owned") ? (s.add(N), !0) : !1);
646
- u.figures.push({
647
- section: w,
648
- number: `${u.number}.${u.figures.length + 1}`,
649
- chart: Se.has(F.kind) && !C,
650
- metric: C,
647
+ if (!m($, "figure")) return;
648
+ const M = E($), S = (((T = $.frame) == null ? void 0 : T.rows.length) ?? 0) <= 1, D = (p.get($.panel.id) ?? []).filter((N) => m(N, "owned") ? (s.add(N), !0) : !1);
649
+ d.figures.push({
650
+ section: $,
651
+ number: `${d.number}.${d.figures.length + 1}`,
652
+ chart: Se.has(M.kind) && !S,
653
+ metric: S,
651
654
  // A reading that prints its calculation needs the width to hold it; half
652
655
  // a page beside another figure is where the two collide.
653
- width: P.length > 0 ? "full" : C ? "half" : Ot(F),
654
- ...k && (k.label || k.caption) ? { group: { id: k.id, ...k.label ? { label: k.label } : {}, ...k.caption ? { caption: k.caption } : {} } } : {},
656
+ width: D.length > 0 ? "full" : S ? "half" : Ut(M),
657
+ ...k && (k.label || k.caption || k.filterContext) ? { group: { id: k.id, ...k.filterContext ? { filterContext: k.filterContext } : {}, ...k.label ? { label: k.label } : {}, ...k.caption ? { caption: k.caption } : {} } } : {},
655
658
  // The opening chapter's single-value readings are the dashboard's
656
659
  // headline; the cover carries them so page one is already informative.
657
- kpi: u.number === 1 && C && Et.has(F.kind) && o++ < 6,
658
- breakdown: P
660
+ kpi: d.number === 1 && S && Ot.has(M.kind) && o++ < 6,
661
+ breakdown: D
659
662
  });
660
- }, x = (u, w) => {
661
- m(w, "detail") && u.details.push({
662
- section: w,
663
- number: `A${u.number}.${u.details.length + 1}`,
663
+ }, y = (d, $) => {
664
+ m($, "detail") && d.details.push({
665
+ section: $,
666
+ number: `A${d.number}.${d.details.length + 1}`,
664
667
  // The first segments of the trail repeat the appendix group's own title
665
668
  // on every one of its nine details. What locates a detail is where it
666
669
  // ends, not the path it shares with its neighbours.
667
- trail: w.breadcrumb.filter((k, F, C) => k && k !== C[F - 1]).slice(-2).join(" › ")
670
+ trail: $.breadcrumb.filter((k, M, S) => k && k !== S[M - 1]).slice(-2).join(" › ")
668
671
  });
669
- }, v = (u, w, k) => {
670
- for (const F of h.get(w) ?? [])
671
- s.add(F), b(u, F, k);
672
- for (const F of f.get(w) ?? [])
673
- s.add(F), x(u, F);
672
+ }, g = (d, $, k) => {
673
+ for (const M of h.get($) ?? [])
674
+ s.add(M), v(d, M, k);
675
+ for (const M of f.get($) ?? [])
676
+ s.add(M), y(d, M);
674
677
  };
675
- for (const u of i.layout.rows) {
676
- const w = Wt(n.length, u.heading, t), k = u.panels.flatMap((C) => C.groups ?? []).map((C) => {
677
- var P;
678
- return (P = C.caption) == null ? void 0 : P.trim();
679
- }).find((C) => !!C), F = $(w, k);
680
- for (const C of u.panels) v(F, C.panelId, Ut(C));
678
+ for (const d of i.layout.rows) {
679
+ const $ = zt(n.length, d.heading, t), k = d.panels.flatMap((S) => S.groups ?? []).map((S) => {
680
+ var D;
681
+ return (D = S.caption) == null ? void 0 : D.trim();
682
+ }).find((S) => !!S), M = x($, k);
683
+ for (const S of d.panels) g(M, S.panelId, Wt(S));
681
684
  }
682
- const _ = e.sections.filter((u) => !s.has(u));
685
+ const _ = e.sections.filter((d) => !s.has(d));
683
686
  if (_.length > 0) {
684
- const u = $(l, void 0);
685
- for (const w of _)
686
- w.root ? b(u, w) : x(u, w);
687
+ const d = x(l, void 0);
688
+ for (const $ of _)
689
+ $.root ? v(d, $) : y(d, $);
687
690
  }
688
- const S = n.flatMap((u) => u.figures.filter(({ kpi: w }) => w)), M = n.map((u) => ({ ...u, figures: u.figures.filter(({ kpi: w }) => !w) })).filter((u) => u.figures.length > 0 || u.details.length > 0);
689
- M.forEach((u, w) => {
690
- u.number = w + 1, u.figures.forEach((k, F) => {
691
- k.number = `${u.number}.${F + 1}`;
692
- }), u.details.forEach((k, F) => {
693
- k.number = `A${u.number}.${F + 1}`;
691
+ const C = n.flatMap((d) => d.figures.filter(({ kpi: $ }) => $)), F = n.map((d) => ({ ...d, figures: d.figures.filter(({ kpi: $ }) => !$) })).filter((d) => d.figures.length > 0 || d.details.length > 0);
692
+ F.forEach((d, $) => {
693
+ d.number = $ + 1, d.figures.forEach((k, M) => {
694
+ k.number = `${d.number}.${M + 1}`;
695
+ }), d.details.forEach((k, M) => {
696
+ k.number = `A${d.number}.${M + 1}`;
694
697
  });
695
698
  });
696
- const D = [...S, ...M.flatMap((u) => u.figures)].filter(({ section: u }) => {
697
- const w = V(u), k = Y(w);
699
+ const P = [...C, ...F.flatMap((d) => d.figures)].filter(({ section: d }) => {
700
+ const $ = E(d), k = Y($);
698
701
  return k !== void 0 && k.value !== "verified";
699
702
  });
700
703
  return {
701
- chapters: M,
702
- appendix: M.filter((u) => u.details.length > 0),
703
- kpis: S,
704
- notes: Ht(i),
704
+ chapters: F,
705
+ appendix: F.filter((d) => d.details.length > 0),
706
+ kpis: C,
707
+ notes: Gt(i),
705
708
  missing: a,
706
- estimated: D.length,
709
+ estimated: P.length,
707
710
  qualities: Bt(i),
708
- figureCount: M.reduce((u, w) => u + w.figures.length, 0),
709
- detailCount: M.reduce((u, w) => u + w.details.length, 0)
711
+ figureCount: F.reduce((d, $) => d + $.figures.length, 0),
712
+ detailCount: F.reduce((d, $) => d + $.details.length, 0)
710
713
  };
711
714
  }
712
- function Ht(e) {
715
+ function Gt(e) {
713
716
  var n, a, c;
714
717
  const t = [], l = /* @__PURE__ */ new Set(), i = (s, o) => {
715
718
  const h = `${s}::${o ?? ""}`;
@@ -722,12 +725,12 @@ function Ht(e) {
722
725
  }
723
726
  return t;
724
727
  }
725
- function Gt(e) {
728
+ function Qt(e) {
726
729
  const t = e.document.theme, l = Object.values(t.palette).filter((a) => a.trim() !== ""), i = /* @__PURE__ */ new Map();
727
730
  if (l.length === 0) return i;
728
731
  let n = 0;
729
732
  for (const a of e.sections)
730
- for (const c of Qt(a)) {
733
+ for (const c of Jt(a)) {
731
734
  if (!c || i.has(c)) continue;
732
735
  const s = t.series[c];
733
736
  if (s) {
@@ -738,13 +741,13 @@ function Gt(e) {
738
741
  }
739
742
  return i;
740
743
  }
741
- function Qt(e) {
744
+ function Jt(e) {
742
745
  const t = e.frame;
743
746
  if (!t) return [];
744
- const l = V(e), i = A(t, l.encoding.label ?? l.encoding.category ?? l.encoding.id);
747
+ const l = E(e), i = A(t, l.encoding.label ?? l.encoding.category ?? l.encoding.id);
745
748
  return i < 0 ? [] : t.rows.map((n) => W(n[i]).trim());
746
749
  }
747
- function Jt(e, t) {
750
+ function Yt(e, t) {
748
751
  if (t.size === 0) return e;
749
752
  const l = {};
750
753
  for (const [i, n] of Object.entries(e.series))
@@ -752,62 +755,62 @@ function Jt(e, t) {
752
755
  for (const [i, n] of t) l[i] = n;
753
756
  return { ...e, series: l };
754
757
  }
755
- var Yt = /* @__PURE__ */ g("<div class=lens-print-chart>"), Xt = /* @__PURE__ */ g("<p class=lens-print-tone-key>"), Zt = /* @__PURE__ */ g('<div class="lens-print-chart lens-print-chart-waterfall">'), en = /* @__PURE__ */ g("<span><i aria-hidden=true>"), tn = /* @__PURE__ */ g("<table class=lens-print-data><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), J = /* @__PURE__ */ g("<small>"), nn = /* @__PURE__ */ g("<tr><td></td><td data-align=right>"), rn = /* @__PURE__ */ g("<tr data-role=split><td></td><td data-align=right>"), ln = /* @__PURE__ */ g("<p class=lens-print-empty>"), an = /* @__PURE__ */ g('<table class="lens-print-data lens-print-data-wide"><thead><tr></tr></thead><tbody>'), sn = /* @__PURE__ */ g("<th>"), on = /* @__PURE__ */ g("<tr>"), cn = /* @__PURE__ */ g("<em class=lens-print-cell-secondary>"), un = /* @__PURE__ */ g("<span aria-hidden=true class=lens-print-cell-bar>"), dn = /* @__PURE__ */ g("<td>"), hn = /* @__PURE__ */ g("<th data-align=right>"), fn = /* @__PURE__ */ g("<table><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), pn = /* @__PURE__ */ g("<span class=lens-print-series> · "), mn = /* @__PURE__ */ g("<span aria-hidden=true class=lens-print-share-bar>"), gn = /* @__PURE__ */ g("<td class=lens-print-share data-align=right><span>"), bn = /* @__PURE__ */ g("<tr><td><span class=lens-print-swatch></span></td><td data-align=right>"), Pe = /* @__PURE__ */ g("<p class=lens-print-truncated>"), vn = /* @__PURE__ */ g("<span class=lens-print-figure-authored>"), $n = /* @__PURE__ */ g("<span>"), _n = /* @__PURE__ */ g("<p class=lens-print-figure-note>"), wn = /* @__PURE__ */ g("<sup class=lens-print-footnote-marker>"), yn = /* @__PURE__ */ g("<ol class=lens-print-footnotes>"), kn = /* @__PURE__ */ g("<li><span class=lens-print-footnote-index>"), xn = /* @__PURE__ */ g("<div class=lens-print-breakdown><p class=lens-print-breakdown-head>"), Cn = /* @__PURE__ */ g("<p class=lens-print-breakdown-term><span></span><span>"), Sn = /* @__PURE__ */ g("<p class=lens-print-breakdown-title>"), Fn = /* @__PURE__ */ g("<div class=lens-print-breakdown-part>"), Mn = /* @__PURE__ */ g("<figure>"), Te = /* @__PURE__ */ g("<span class=lens-print-chip>"), Dn = /* @__PURE__ */ g("<span class=lens-print-chip data-tone=neutral>: "), Pn = /* @__PURE__ */ g("<span class=lens-print-figure-total>: "), Tn = /* @__PURE__ */ g("<figure><figcaption class=lens-print-figure-head><div class=lens-print-figure-title><span class=lens-print-figure-number></span><h3></h3></div><p class=lens-print-figure-meta>"), An = /* @__PURE__ */ g('<svg aria-hidden=true class=lens-print-sparkline preserveAspectRatio=none viewBox="0 0 100 26"><polyline fill=none stroke-linecap=round stroke-linejoin=round>'), Kn = /* @__PURE__ */ g("<span class=lens-print-figure-number>"), Nn = /* @__PURE__ */ g("<span class=lens-print-kpi-delta>"), Rn = /* @__PURE__ */ g("<p class=lens-print-kpi-trend>"), Ln = /* @__PURE__ */ g("<p class=lens-print-kpi-target>: "), Vn = /* @__PURE__ */ g("<p class=lens-print-kpi-caption>"), qn = /* @__PURE__ */ g("<div class=lens-print-kpi><p class=lens-print-kpi-label></p><p class=lens-print-kpi-value></p><p class=lens-print-kpi-chips>"), In = /* @__PURE__ */ g("<p class=lens-print-cover-subtitle>"), ce = /* @__PURE__ */ g("<div><dt></dt><dd>"), jn = /* @__PURE__ */ g("<div class=lens-print-kpis>"), Bn = /* @__PURE__ */ g("<p class=lens-print-cover-flag>"), En = /* @__PURE__ */ g("<header class=lens-print-cover><div class=lens-print-cover-head><p class=lens-print-kicker></p><h1></h1></div><dl class=lens-print-cover-meta><div><dt></dt><dd></dd></div><div><dt></dt><dd>"), On = /* @__PURE__ */ g("<li><span class=lens-print-contents-number>A</span><span class=lens-print-contents-title>"), Un = /* @__PURE__ */ g("<section class=lens-print-contents><h2></h2><ol><li><span class=lens-print-contents-number>B</span><span class=lens-print-contents-title></span></li></ol><p class=lens-print-contents-note>"), Wn = /* @__PURE__ */ g("<span class=lens-print-contents-caption>"), zn = /* @__PURE__ */ g("<li><span class=lens-print-contents-number></span><span class=lens-print-contents-title>"), Hn = /* @__PURE__ */ g("<div class=lens-print-lead-group>"), Gn = /* @__PURE__ */ g("<div class=lens-print-pair>"), Qn = /* @__PURE__ */ g("<h3>"), Jn = /* @__PURE__ */ g("<p>"), Yn = /* @__PURE__ */ g("<div class=lens-print-strip>"), Xn = /* @__PURE__ */ g("<p class=lens-print-lead>"), Zn = /* @__PURE__ */ g("<p class=lens-print-chapter-headline>"), er = /* @__PURE__ */ g("<section class=lens-print-chapter><header class=lens-print-chapter-head><p class=lens-print-runninghead> · <!>. </p><h2><span class=lens-print-chapter-number></span></h2></header><div class=lens-print-grid>"), tr = /* @__PURE__ */ g("<span><span class=lens-print-chapter-headline-label>"), nr = /* @__PURE__ */ g("<p class=lens-print-detail-note>"), rr = /* @__PURE__ */ g("<article class=lens-print-detail><header><span class=lens-print-detail-number></span><h4></h4><p class=lens-print-detail-trail>"), lr = /* @__PURE__ */ g("<section class=lens-print-appendix><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>A</span></h2><p class=lens-print-lead>"), ir = /* @__PURE__ */ g('<div class=lens-print-appendix-chapter><h3>A<!>. </h3><div class="lens-print-grid lens-print-grid-dense">'), ar = /* @__PURE__ */ g("<div class=lens-print-glossary><h3></h3><dl>"), sr = /* @__PURE__ */ g("<dl class=lens-print-notes>"), ae = /* @__PURE__ */ g("<li>"), or = /* @__PURE__ */ g("<div class=lens-print-limits><h3></h3><p></p><ul>"), cr = /* @__PURE__ */ g("<section class=lens-print-method><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>B</span></h2></header><p class=lens-print-provenance>: <!> · <!> · "), ur = /* @__PURE__ */ g("<div><dt><span class=lens-print-chip></span></dt><dd>"), dr = /* @__PURE__ */ g("<article class=lens-print-report>");
756
- const Ae = Be(/* @__PURE__ */ new Map());
758
+ var Xt = /* @__PURE__ */ b("<div class=lens-print-chart>"), Zt = /* @__PURE__ */ b("<p class=lens-print-tone-key>"), en = /* @__PURE__ */ b('<div class="lens-print-chart lens-print-chart-waterfall">'), tn = /* @__PURE__ */ b("<span><i aria-hidden=true>"), nn = /* @__PURE__ */ b("<table class=lens-print-data><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), J = /* @__PURE__ */ b("<small>"), rn = /* @__PURE__ */ b("<tr><td></td><td data-align=right>"), ln = /* @__PURE__ */ b("<tr data-role=split><td></td><td data-align=right>"), an = /* @__PURE__ */ b("<p class=lens-print-empty>"), sn = /* @__PURE__ */ b('<table class="lens-print-data lens-print-data-wide"><thead><tr></tr></thead><tbody>'), on = /* @__PURE__ */ b("<th>"), cn = /* @__PURE__ */ b("<tr>"), un = /* @__PURE__ */ b("<em class=lens-print-cell-secondary>"), dn = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-cell-bar>"), hn = /* @__PURE__ */ b("<td>"), fn = /* @__PURE__ */ b("<th data-align=right>"), pn = /* @__PURE__ */ b("<table><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), mn = /* @__PURE__ */ b("<span class=lens-print-series> · "), gn = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-share-bar>"), bn = /* @__PURE__ */ b("<td class=lens-print-share data-align=right><span>"), vn = /* @__PURE__ */ b("<tr><td><span class=lens-print-swatch></span></td><td data-align=right>"), De = /* @__PURE__ */ b("<p class=lens-print-truncated>"), $n = /* @__PURE__ */ b("<span class=lens-print-figure-authored>"), _n = /* @__PURE__ */ b("<span>"), wn = /* @__PURE__ */ b("<p class=lens-print-figure-note>"), yn = /* @__PURE__ */ b("<sup class=lens-print-footnote-marker>"), xn = /* @__PURE__ */ b("<ol class=lens-print-footnotes>"), kn = /* @__PURE__ */ b("<li><span class=lens-print-footnote-index>"), Cn = /* @__PURE__ */ b("<div class=lens-print-breakdown><p class=lens-print-breakdown-head>"), Sn = /* @__PURE__ */ b("<p class=lens-print-breakdown-term><span></span><span>"), Fn = /* @__PURE__ */ b("<p class=lens-print-breakdown-title>"), Mn = /* @__PURE__ */ b("<div class=lens-print-breakdown-part>"), Pn = /* @__PURE__ */ b("<figure>"), Te = /* @__PURE__ */ b("<span class=lens-print-chip>"), Dn = /* @__PURE__ */ b("<span class=lens-print-chip data-tone=neutral>: "), Tn = /* @__PURE__ */ b("<span class=lens-print-figure-total>: "), An = /* @__PURE__ */ b("<figure><figcaption class=lens-print-figure-head><div class=lens-print-figure-title><span class=lens-print-figure-number></span><h3></h3></div><p class=lens-print-figure-meta>"), Kn = /* @__PURE__ */ b('<svg aria-hidden=true class=lens-print-sparkline preserveAspectRatio=none viewBox="0 0 100 26"><polyline fill=none stroke-linecap=round stroke-linejoin=round>'), Nn = /* @__PURE__ */ b("<span class=lens-print-figure-number>"), Rn = /* @__PURE__ */ b("<span class=lens-print-kpi-delta>"), Ln = /* @__PURE__ */ b("<p class=lens-print-kpi-trend>"), En = /* @__PURE__ */ b("<p class=lens-print-kpi-target>: "), In = /* @__PURE__ */ b("<p class=lens-print-kpi-caption>"), Vn = /* @__PURE__ */ b("<div class=lens-print-kpi><p class=lens-print-kpi-label></p><p class=lens-print-kpi-value></p><p class=lens-print-kpi-chips>"), qn = /* @__PURE__ */ b("<p class=lens-print-cover-subtitle>"), ce = /* @__PURE__ */ b("<div><dt></dt><dd>"), jn = /* @__PURE__ */ b("<div class=lens-print-kpis>"), Bn = /* @__PURE__ */ b("<p class=lens-print-cover-flag>"), On = /* @__PURE__ */ b("<header class=lens-print-cover><div class=lens-print-cover-head><p class=lens-print-kicker></p><h1></h1></div><dl class=lens-print-cover-meta><div><dt></dt><dd></dd></div><div><dt></dt><dd>"), Un = /* @__PURE__ */ b("<li><span class=lens-print-contents-number>A</span><span class=lens-print-contents-title>"), Wn = /* @__PURE__ */ b("<section class=lens-print-contents><h2></h2><ol><li><span class=lens-print-contents-number>B</span><span class=lens-print-contents-title></span></li></ol><p class=lens-print-contents-note>"), zn = /* @__PURE__ */ b("<span class=lens-print-contents-caption>"), Hn = /* @__PURE__ */ b("<li><span class=lens-print-contents-number></span><span class=lens-print-contents-title>"), Gn = /* @__PURE__ */ b("<div class=lens-print-lead-group>"), Qn = /* @__PURE__ */ b("<div class=lens-print-pair>"), Jn = /* @__PURE__ */ b("<h3>"), Yn = /* @__PURE__ */ b("<p>"), Xn = /* @__PURE__ */ b("<div class=lens-print-strip>"), Zn = /* @__PURE__ */ b("<p class=lens-print-lead>"), er = /* @__PURE__ */ b("<p class=lens-print-chapter-headline>"), tr = /* @__PURE__ */ b("<section class=lens-print-chapter><header class=lens-print-chapter-head><p class=lens-print-runninghead> · <!>. </p><h2><span class=lens-print-chapter-number></span></h2></header><div class=lens-print-grid>"), nr = /* @__PURE__ */ b("<span><span class=lens-print-chapter-headline-label>"), rr = /* @__PURE__ */ b("<p class=lens-print-detail-note>"), lr = /* @__PURE__ */ b("<article class=lens-print-detail><header><span class=lens-print-detail-number></span><h4></h4><p class=lens-print-detail-trail>"), ir = /* @__PURE__ */ b("<section class=lens-print-appendix><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>A</span></h2><p class=lens-print-lead>"), ar = /* @__PURE__ */ b('<div class=lens-print-appendix-chapter><h3>A<!>. </h3><div class="lens-print-grid lens-print-grid-dense">'), sr = /* @__PURE__ */ b("<div class=lens-print-glossary><h3></h3><dl>"), or = /* @__PURE__ */ b("<dl class=lens-print-notes>"), ae = /* @__PURE__ */ b("<li>"), cr = /* @__PURE__ */ b("<div class=lens-print-limits><h3></h3><p></p><ul>"), ur = /* @__PURE__ */ b("<section class=lens-print-method><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>B</span></h2></header><p class=lens-print-provenance>: <!> · <!> · "), dr = /* @__PURE__ */ b("<div><dt><span class=lens-print-chip></span></dt><dd>"), hr = /* @__PURE__ */ b("<article class=lens-print-report>");
759
+ const Ae = je(/* @__PURE__ */ new Map());
757
760
  function Ke(e) {
758
- const t = Ee(Ae);
759
- return j(() => Jt(e.document.theme, t))();
761
+ const t = Be(Ae);
762
+ return q(() => Yt(e.document.theme, t))();
760
763
  }
761
- function hr(e, t, l) {
762
- var F;
764
+ function fr(e, t, l) {
765
+ var M;
763
766
  const i = e.frame;
764
767
  if (!i) return {
765
768
  rows: []
766
769
  };
767
- const n = V(e), a = A(i, n.encoding.label ?? n.encoding.category ?? n.encoding.id), c = A(i, n.encoding.value), s = A(i, n.encoding.series), o = A(i, n.encoding.id), h = n.encoding.value, f = h ? n.format[h] : void 0, p = i.rows.map((C) => Q(C[c])), m = /* @__PURE__ */ new Map(), $ = n.encoding.series ? n.format[n.encoding.series] : void 0;
768
- i.rows.forEach((C, P) => {
769
- const T = s >= 0 ? W(C[s]) : "", N = p[P];
770
+ const n = E(e), a = A(i, n.encoding.label ?? n.encoding.category ?? n.encoding.id), c = A(i, n.encoding.value), s = A(i, n.encoding.series), o = A(i, n.encoding.id), h = n.encoding.value, f = h ? n.format[h] : void 0, p = i.rows.map((S) => Q(S[c])), m = /* @__PURE__ */ new Map(), x = n.encoding.series ? n.format[n.encoding.series] : void 0;
771
+ i.rows.forEach((S, D) => {
772
+ const T = s >= 0 ? W(S[s]) : "", N = p[D];
770
773
  N !== void 0 && N >= 0 && m.set(T, (m.get(T) ?? 0) + N);
771
774
  });
772
- for (const C of ((F = n.radial) == null ? void 0 : F.mode) === "partition" ? n.radial.rings ?? [] : [])
773
- m.has(C.key) && m.set(C.key, C.total);
774
- const b = n.semantics === "reconciliation" && A(i, n.encoding.cut) >= 0, x = A(i, n.encoding.final), v = (C, P) => {
775
- const T = c >= 0 ? C[c] : void 0;
776
- if (!b || P === 0 || x >= 0 && C[x] === !0) return T;
777
- const N = p[P], B = p[P - 1];
778
- return N === void 0 || B === void 0 ? T : N - B;
779
- }, _ = A(i, n.encoding.category), S = n.kind === "pie" || n.kind === "donut" || n.kind === "radial", M = i.rows.map((C) => {
780
- var B;
781
- const P = le(C[_ >= 0 ? _ : a]), T = o >= 0 ? le(C[o]) : "", N = s >= 0 ? le(C[s]) : "";
775
+ for (const S of ((M = n.radial) == null ? void 0 : M.mode) === "partition" ? n.radial.rings ?? [] : [])
776
+ m.has(S.key) && m.set(S.key, S.total);
777
+ const v = n.semantics === "reconciliation" && A(i, n.encoding.cut) >= 0, y = A(i, n.encoding.final), g = (S, D) => {
778
+ const T = c >= 0 ? S[c] : void 0;
779
+ if (!v || D === 0 || y >= 0 && S[y] === !0) return T;
780
+ const N = p[D], j = p[D - 1];
781
+ return N === void 0 || j === void 0 ? T : N - j;
782
+ }, _ = A(i, n.encoding.category), C = n.kind === "pie" || n.kind === "donut" || n.kind === "radial", F = i.rows.map((S) => {
783
+ var j;
784
+ const D = le(S[_ >= 0 ? _ : a]), T = o >= 0 ? le(S[o]) : "", N = s >= 0 ? le(S[s]) : "";
782
785
  return {
783
- category: P,
784
- nodeKey: T || He(P, ((B = n.radial) == null ? void 0 : B.mode) === "partition" ? "" : N)
786
+ category: D,
787
+ nodeKey: T || Ze(D, ((j = n.radial) == null ? void 0 : j.mode) === "partition" ? "" : N)
785
788
  };
786
- }), D = /* @__PURE__ */ new Map();
787
- M.forEach(({
788
- nodeKey: C,
789
- category: P
789
+ }), P = /* @__PURE__ */ new Map();
790
+ F.forEach(({
791
+ nodeKey: S,
792
+ category: D
790
793
  }) => {
791
- const T = C ?? P;
792
- D.has(T) || D.set(T, D.size);
794
+ const T = S ?? D;
795
+ P.has(T) || P.set(T, P.size);
793
796
  });
794
- const u = xe(l, n, i, e.root), w = ye(l, n, {
797
+ const d = ke(l, n, i, e.root), $ = ye(l, n, {
795
798
  colors: i.colors,
796
799
  positional: e.root,
797
- labels: ke(i, n)
798
- }), k = ne(i.rows.map((C, P) => v(C, P)), f, t);
800
+ labels: xe(i, n)
801
+ }), k = ne(i.rows.map((S, D) => g(S, D)), f, t);
799
802
  return {
800
803
  unit: k.note,
801
- rows: i.rows.map((C, P) => {
804
+ rows: i.rows.map((S, D) => {
802
805
  var de, he, fe;
803
- const T = v(C, P), N = p[P], B = s >= 0 ? W(C[s]) : "", H = ((de = n.radial) == null ? void 0 : de.mode) === "progress" ? n.radial.max : m.get(B), z = (n.semantics === "partition" || ((he = n.radial) == null ? void 0 : he.mode) === "progress") && N !== void 0 && N >= 0 && H && H > 0 ? N / H : void 0, U = a >= 0 ? W(C[a]) : W(C[o]), {
806
+ const T = g(S, D), N = p[D], j = s >= 0 ? W(S[s]) : "", H = ((de = n.radial) == null ? void 0 : de.mode) === "progress" ? n.radial.max : m.get(j), z = (n.semantics === "partition" || ((he = n.radial) == null ? void 0 : he.mode) === "progress") && N !== void 0 && N >= 0 && H && H > 0 ? N / H : void 0, U = a >= 0 ? W(S[a]) : W(S[o]), {
804
807
  category: O,
805
808
  nodeKey: re
806
- } = M[P], Ie = ((fe = n.radial) == null ? void 0 : fe.mode) === "partition" ? D.get(re ?? O) : P;
809
+ } = F[D], Ve = ((fe = n.radial) == null ? void 0 : fe.mode) === "partition" ? P.get(re ?? O) : D;
807
810
  return {
808
- key: `${B}:${o >= 0 ? W(C[o]) : P}`,
809
- ...B && $ ? {
810
- series: K(C[s], $, t)
811
+ key: `${j}:${o >= 0 ? W(S[o]) : D}`,
812
+ ...j && x ? {
813
+ series: K(S[s], x, t)
811
814
  } : {},
812
815
  label: U,
813
816
  value: c >= 0 ? k.format(T) : "—",
@@ -825,14 +828,14 @@ function hr(e, t, l) {
825
828
  maximumFractionDigits: 1
826
829
  }).format(z)
827
830
  },
828
- color: S ? w(O, Ie, re) : s >= 0 ? u(B, P) : w(U, P)
831
+ color: C ? $(O, Ve, re) : s >= 0 ? d(j, D) : $(U, D)
829
832
  };
830
833
  })
831
834
  };
832
835
  }
833
836
  function Ne(e) {
834
837
  var s;
835
- const t = j(() => V(e.section))(), l = Ke(e.section), i = (o, h) => K(h, t.format[o], e.section.document.meta.locale), n = (o, h) => Xe(h, t.format[o], e.section.document.meta.locale), a = e.section;
838
+ const t = q(() => E(e.section))(), l = Ke(e.section), i = (o, h) => K(h, t.format[o], e.section.document.meta.locale), n = (o, h) => Ge(h, t.format[o], e.section.document.meta.locale), a = e.section;
836
839
  if (!a.frame || a.frame.rows.length <= 1 || !Se.has(t.kind)) return null;
837
840
  const c = t.kind === "pie" || t.kind === "donut" || t.kind === "radial" ? {
838
841
  ...t.presentation,
@@ -842,18 +845,18 @@ function Ne(e) {
842
845
  fill: !0
843
846
  } : t.presentation;
844
847
  return (() => {
845
- var o = Yt();
846
- return r(o, d(ze, {
848
+ var o = Xt();
849
+ return r(o, u(Xe, {
847
850
  get input() {
848
851
  return {
849
852
  kind: t.kind,
850
853
  frame: a.frame,
851
854
  encoding: t.encoding,
852
- seriesColor: xe(l, t, a.frame, a.root),
855
+ seriesColor: ke(l, t, a.frame, a.root),
853
856
  rowColor: ye(l, t, {
854
857
  colors: a.frame.colors,
855
858
  positional: a.root,
856
- labels: ke(a.frame, t)
859
+ labels: xe(a.frame, t)
857
860
  }),
858
861
  labels: {
859
862
  noData: a.document.i18n["panel.empty"] ?? "No data",
@@ -874,19 +877,19 @@ function Ne(e) {
874
877
  get panelId() {
875
878
  return `print:${a.id}`;
876
879
  }
877
- })), I((h) => ee(o, "height", `${e.height}px`)), o;
880
+ })), V((h) => ee(o, "height", `${e.height}px`)), o;
878
881
  })();
879
882
  }
880
883
  function Re(e) {
881
- const t = V(e), l = e.document.meta.locale;
882
- return j(() => {
884
+ const t = E(e), l = e.document.meta.locale;
885
+ return q(() => {
883
886
  if (!e.frame) return;
884
887
  const i = t.encoding.value ?? "value", n = t.encoding.cut ?? "cut", a = (s) => K(s, t.format[i], l), c = (s) => K(s, t.format[n] ?? t.format[i], l);
885
- return Ue(We(t, e.frame, a, c), a);
888
+ return Je(Ye(t, e.frame, a, c), a);
886
889
  })();
887
890
  }
888
- function fr(e) {
889
- const t = q(), l = V(e.section), i = Re(e.section), n = e.section.document.meta.locale, a = j(() => {
891
+ function pr(e) {
892
+ const t = I(), l = E(e.section), i = Re(e.section), n = e.section.document.meta.locale, a = q(() => {
890
893
  if (!i) return;
891
894
  const s = i.ticks.length > 5 ? i.ticks.filter((h, f) => f % 2 === 0) : i.ticks, o = new Intl.NumberFormat(n, {
892
895
  notation: "compact",
@@ -899,17 +902,17 @@ function fr(e) {
899
902
  label: o.format(h.value)
900
903
  })
901
904
  };
902
- }), c = j(() => {
905
+ }), c = q(() => {
903
906
  var s;
904
907
  return Array.from(new Set((((s = a()) == null ? void 0 : s.items) ?? []).map((o) => o.tone).filter(Boolean)));
905
908
  });
906
- return d(y, {
909
+ return u(w, {
907
910
  get when() {
908
- return E(() => !!a())() && a().items.length > 0;
911
+ return B(() => !!a())() && a().items.length > 0;
909
912
  },
910
913
  get children() {
911
- var s = Zt();
912
- return r(s, d(Oe, {
914
+ var s = en();
915
+ return r(s, u(Qe, {
913
916
  get label() {
914
917
  return l.title;
915
918
  },
@@ -917,18 +920,18 @@ function fr(e) {
917
920
  return a();
918
921
  },
919
922
  splitCallout: "always"
920
- }), null), r(s, d(y, {
923
+ }), null), r(s, u(w, {
921
924
  get when() {
922
925
  return c().length > 1;
923
926
  },
924
927
  get children() {
925
- var o = Xt();
926
- return r(o, d(L, {
928
+ var o = Zt();
929
+ return r(o, u(L, {
927
930
  get each() {
928
931
  return c();
929
932
  },
930
933
  children: (h) => (() => {
931
- var f = en(), p = f.firstChild;
934
+ var f = tn(), p = f.firstChild;
932
935
  return R(p, "data-tone", h), r(f, () => h === "positive" ? t("print.toneFavourable", "favourable") : h === "negative" ? t("print.toneAdverse", "adverse") : t("print.toneNeutral", "neutral"), null), f;
933
936
  })()
934
937
  })), o;
@@ -937,246 +940,246 @@ function fr(e) {
937
940
  }
938
941
  });
939
942
  }
940
- function pr(e) {
941
- const t = q(), l = V(e.section), i = Re(e.section), n = j(() => ne(((i == null ? void 0 : i.items) ?? []).map((a) => a.value), l.encoding.value ? l.format[l.encoding.value] : void 0, e.section.document.meta.locale));
942
- return d(y, {
943
+ function mr(e) {
944
+ const t = I(), l = E(e.section), i = Re(e.section), n = q(() => ne(((i == null ? void 0 : i.items) ?? []).map((a) => a.value), l.encoding.value ? l.format[l.encoding.value] : void 0, e.section.document.meta.locale));
945
+ return u(w, {
943
946
  get when() {
944
947
  return i && i.items.length > 0;
945
948
  },
946
949
  get children() {
947
- var a = tn(), c = a.firstChild, s = c.firstChild, o = s.firstChild, h = o.nextSibling, f = c.nextSibling;
950
+ var a = nn(), c = a.firstChild, s = c.firstChild, o = s.firstChild, h = o.nextSibling, f = c.nextSibling;
948
951
  return r(o, () => t("print.stage", "Stage")), r(h, () => t("print.value", "Value"), null), r(h, (() => {
949
- var p = E(() => !!n().note);
952
+ var p = B(() => !!n().note);
950
953
  return () => p() && (() => {
951
954
  var m = J();
952
955
  return r(m, () => n().note), m;
953
956
  })();
954
- })(), null), r(f, d(L, {
957
+ })(), null), r(f, u(L, {
955
958
  get each() {
956
959
  return i.items;
957
960
  },
958
961
  children: (p) => [(() => {
959
- var m = nn(), $ = m.firstChild, b = $.nextSibling;
960
- return r($, () => p.label), r(b, () => n().format(p.value)), I(() => R(m, "data-role", p.kind)), m;
961
- })(), d(y, {
962
+ var m = rn(), x = m.firstChild, v = x.nextSibling;
963
+ return r(x, () => p.label), r(v, () => n().format(p.value)), V(() => R(m, "data-role", p.kind)), m;
964
+ })(), u(w, {
962
965
  get when() {
963
966
  return p.formattedSplit;
964
967
  },
965
968
  get children() {
966
- var m = rn(), $ = m.firstChild, b = $.nextSibling;
967
- return r($, () => p.splitLabel || t("print.splitPart", "of which")), r(b, () => p.formattedSplit), m;
969
+ var m = ln(), x = m.firstChild, v = x.nextSibling;
970
+ return r(x, () => p.splitLabel || t("print.splitPart", "of which")), r(v, () => p.formattedSplit), m;
968
971
  }
969
972
  })]
970
973
  })), a;
971
974
  }
972
975
  });
973
976
  }
974
- function mr(e, t) {
977
+ function gr(e, t) {
975
978
  return e.kind === "cascade" && !!t.frame && A(t.frame, e.encoding.cut) >= 0;
976
979
  }
977
980
  function ue(e) {
978
981
  var h;
979
- const t = q(), l = Ke(e.section), i = e.section, n = e.exact, a = j(() => hr(i, i.document.meta.locale, l));
982
+ const t = I(), l = Ke(e.section), i = e.section, n = e.exact, a = q(() => fr(i, i.document.meta.locale, l));
980
983
  if (!i.frame) return (() => {
981
- var f = ln();
984
+ var f = an();
982
985
  return r(f, () => t("print.noData", "No data")), f;
983
986
  })();
984
- const c = V(i), s = i.frame;
987
+ const c = E(i), s = i.frame;
985
988
  if (c.kind === "table" && ((h = c.columns) != null && h.length)) {
986
989
  const f = c.columns, p = f.map(({
987
- field: v
988
- }) => A(s, v)), m = i.document.meta.locale, $ = f.map((v, _) => {
989
- const S = p[_];
990
- return ne(S >= 0 ? s.rows.map((M) => M[S]) : [], c.format[v.field], m);
991
- }), b = f.map((v) => {
992
- var S;
993
- if (v.align) return v.align;
994
- const _ = (S = c.format[v.field]) == null ? void 0 : S.kind;
990
+ field: g
991
+ }) => A(s, g)), m = i.document.meta.locale, x = f.map((g, _) => {
992
+ const C = p[_];
993
+ return ne(C >= 0 ? s.rows.map((F) => F[C]) : [], c.format[g.field], m);
994
+ }), v = f.map((g) => {
995
+ var C;
996
+ if (g.align) return g.align;
997
+ const _ = (C = c.format[g.field]) == null ? void 0 : C.kind;
995
998
  return _ === "money" || _ === "number" || _ === "percent" ? "right" : "left";
996
- }), x = /* @__PURE__ */ new Map();
997
- return f.forEach((v, _) => {
998
- if (v.cell.kind !== "bar") return;
999
- const S = p[_];
1000
- S < 0 || x.set(v.field, s.rows.reduce((M, D) => {
1001
- const u = Q(D[S]);
1002
- return u === void 0 ? M : Math.max(M, Math.abs(u));
999
+ }), y = /* @__PURE__ */ new Map();
1000
+ return f.forEach((g, _) => {
1001
+ if (g.cell.kind !== "bar") return;
1002
+ const C = p[_];
1003
+ C < 0 || y.set(g.field, s.rows.reduce((F, P) => {
1004
+ const d = Q(P[C]);
1005
+ return d === void 0 ? F : Math.max(F, Math.abs(d));
1003
1006
  }, 0));
1004
1007
  }), (() => {
1005
- var v = an(), _ = v.firstChild, S = _.firstChild, M = _.nextSibling;
1006
- return r(S, d(L, {
1008
+ var g = sn(), _ = g.firstChild, C = _.firstChild, F = _.nextSibling;
1009
+ return r(C, u(L, {
1007
1010
  each: f,
1008
- children: (D, u) => (() => {
1009
- var w = sn();
1010
- return r(w, () => D.label, null), r(w, d(y, {
1011
+ children: (P, d) => (() => {
1012
+ var $ = on();
1013
+ return r($, () => P.label, null), r($, u(w, {
1011
1014
  get when() {
1012
1015
  var k;
1013
- return (k = $[u()]) == null ? void 0 : k.note;
1016
+ return (k = x[d()]) == null ? void 0 : k.note;
1014
1017
  },
1015
1018
  get children() {
1016
1019
  var k = J();
1017
1020
  return r(k, () => {
1018
- var F;
1019
- return (F = $[u()]) == null ? void 0 : F.note;
1021
+ var M;
1022
+ return (M = x[d()]) == null ? void 0 : M.note;
1020
1023
  }), k;
1021
1024
  }
1022
- }), null), I(() => R(w, "data-align", b[u()])), w;
1025
+ }), null), V(() => R($, "data-align", v[d()])), $;
1023
1026
  })()
1024
- })), r(M, d(L, {
1027
+ })), r(F, u(L, {
1025
1028
  get each() {
1026
1029
  return s.rows;
1027
1030
  },
1028
- children: (D) => (() => {
1029
- var u = on();
1030
- return r(u, d(L, {
1031
+ children: (P) => (() => {
1032
+ var d = cn();
1033
+ return r(d, u(L, {
1031
1034
  each: f,
1032
- children: (w, k) => {
1033
- const F = p[k()] >= 0 ? D[p[k()]] : void 0, C = $[k()].format(F), P = n ? Ce(F, c.format[w.field], m) : void 0, T = Q(F), N = W(D[A(s, w.cell.toneField)]), B = x.get(w.field), H = A(s, w.cell.secondaryField), z = H >= 0 ? Q(D[H]) : void 0;
1035
+ children: ($, k) => {
1036
+ const M = p[k()] >= 0 ? P[p[k()]] : void 0, S = x[k()].format(M), D = n ? Ce(M, c.format[$.field], m) : void 0, T = Q(M), N = W(P[A(s, $.cell.toneField)]), j = y.get($.field), H = A(s, $.cell.secondaryField), z = H >= 0 ? Q(P[H]) : void 0;
1034
1037
  return (() => {
1035
- var U = dn();
1036
- return R(U, "data-negative", T !== void 0 && T < 0 ? "" : void 0), R(U, "data-tone", N === "pos" || N === "warn" || N === "neg" ? N : void 0), r(U, C, null), r(U, d(y, {
1038
+ var U = hn();
1039
+ return R(U, "data-negative", T !== void 0 && T < 0 ? "" : void 0), R(U, "data-tone", N === "pos" || N === "warn" || N === "neg" ? N : void 0), r(U, S, null), r(U, u(w, {
1037
1040
  when: z !== void 0,
1038
1041
  get children() {
1039
- var O = cn();
1040
- return R(O, "data-negative", z < 0 ? "" : void 0), r(O, () => we(z) ?? `${z > 0 ? "+" : ""}${K(D[H], w.cell.secondaryField ? c.format[w.cell.secondaryField] : void 0, m)}`), O;
1042
+ var O = un();
1043
+ return R(O, "data-negative", z < 0 ? "" : void 0), r(O, () => we(z) ?? `${z > 0 ? "+" : ""}${K(P[H], $.cell.secondaryField ? c.format[$.cell.secondaryField] : void 0, m)}`), O;
1041
1044
  }
1042
- }), null), r(U, d(y, {
1043
- when: B !== void 0 && B > 0 && T !== void 0,
1045
+ }), null), r(U, u(w, {
1046
+ when: j !== void 0 && j > 0 && T !== void 0,
1044
1047
  get children() {
1045
- var O = un();
1046
- return R(O, "data-negative", T < 0 ? "" : void 0), I((re) => ee(O, "width", `${Math.min(100, Math.round(Math.abs(T) / B * 100))}%`)), O;
1048
+ var O = dn();
1049
+ return R(O, "data-negative", T < 0 ? "" : void 0), V((re) => ee(O, "width", `${Math.min(100, Math.round(Math.abs(T) / j * 100))}%`)), O;
1047
1050
  }
1048
- }), null), r(U, d(y, {
1049
- when: P && P !== C,
1051
+ }), null), r(U, u(w, {
1052
+ when: D && D !== S,
1050
1053
  get children() {
1051
1054
  var O = J();
1052
- return r(O, P), O;
1055
+ return r(O, D), O;
1053
1056
  }
1054
- }), null), I(() => R(U, "data-align", b[k()])), U;
1057
+ }), null), V(() => R(U, "data-align", v[k()])), U;
1055
1058
  })();
1056
1059
  }
1057
- })), u;
1060
+ })), d;
1058
1061
  })()
1059
- })), v;
1062
+ })), g;
1060
1063
  })();
1061
1064
  }
1062
1065
  const o = a().rows.some(({
1063
1066
  share: f
1064
1067
  }) => f !== void 0);
1065
1068
  return (() => {
1066
- var f = fn(), p = f.firstChild, m = p.firstChild, $ = m.firstChild, b = $.nextSibling, x = p.nextSibling;
1067
- return r($, () => t("print.category", "Category")), r(b, () => t("print.value", "Value"), null), r(b, d(y, {
1069
+ var f = pn(), p = f.firstChild, m = p.firstChild, x = m.firstChild, v = x.nextSibling, y = p.nextSibling;
1070
+ return r(x, () => t("print.category", "Category")), r(v, () => t("print.value", "Value"), null), r(v, u(w, {
1068
1071
  get when() {
1069
1072
  return a().unit;
1070
1073
  },
1071
1074
  get children() {
1072
- var v = J();
1073
- return r(v, () => a().unit), v;
1075
+ var g = J();
1076
+ return r(g, () => a().unit), g;
1074
1077
  }
1075
- }), null), r(m, d(y, {
1078
+ }), null), r(m, u(w, {
1076
1079
  when: o,
1077
1080
  get children() {
1078
- var v = hn();
1079
- return r(v, () => t("print.share", "Share")), v;
1081
+ var g = fn();
1082
+ return r(g, () => t("print.share", "Share")), g;
1080
1083
  }
1081
- }), null), r(x, d(L, {
1084
+ }), null), r(y, u(L, {
1082
1085
  get each() {
1083
1086
  return a().rows;
1084
1087
  },
1085
- children: (v) => (() => {
1086
- var _ = bn(), S = _.firstChild, M = S.firstChild, D = S.nextSibling;
1087
- return r(S, d(y, {
1088
+ children: (g) => (() => {
1089
+ var _ = vn(), C = _.firstChild, F = C.firstChild, P = C.nextSibling;
1090
+ return r(C, u(w, {
1088
1091
  get when() {
1089
- return v.series;
1092
+ return g.series;
1090
1093
  },
1091
1094
  get children() {
1092
- var u = pn(), w = u.firstChild;
1093
- return r(u, () => v.series, w), u;
1095
+ var d = mn(), $ = d.firstChild;
1096
+ return r(d, () => g.series, $), d;
1094
1097
  }
1095
- }), null), r(S, () => v.label, null), r(D, () => v.value, null), r(D, d(y, {
1098
+ }), null), r(C, () => g.label, null), r(P, () => g.value, null), r(P, u(w, {
1096
1099
  get when() {
1097
- return E(() => !!(n && v.exact))() && v.exact !== v.value;
1100
+ return B(() => !!(n && g.exact))() && g.exact !== g.value;
1098
1101
  },
1099
1102
  get children() {
1100
- var u = J();
1101
- return r(u, () => v.exact), u;
1103
+ var d = J();
1104
+ return r(d, () => g.exact), d;
1102
1105
  }
1103
- }), null), r(_, d(y, {
1106
+ }), null), r(_, u(w, {
1104
1107
  when: o,
1105
1108
  get children() {
1106
- var u = gn(), w = u.firstChild;
1107
- return r(u, d(y, {
1109
+ var d = bn(), $ = d.firstChild;
1110
+ return r(d, u(w, {
1108
1111
  get when() {
1109
- return v.ratio !== void 0;
1112
+ return g.ratio !== void 0;
1110
1113
  },
1111
1114
  get children() {
1112
- var k = mn();
1113
- return I((F) => ee(k, "width", `${Math.min(100, Math.round(v.ratio * 100))}%`)), k;
1115
+ var k = gn();
1116
+ return V((M) => ee(k, "width", `${Math.min(100, Math.round(g.ratio * 100))}%`)), k;
1114
1117
  }
1115
- }), w), r(w, () => v.share ?? "—"), u;
1118
+ }), $), r($, () => g.share ?? "—"), d;
1116
1119
  }
1117
- }), null), I((u) => ee(M, "background-color", v.color)), _;
1120
+ }), null), V((d) => ee(F, "background-color", g.color)), _;
1118
1121
  })()
1119
- })), I(() => oe(f, `lens-print-data${e.dense ? " lens-print-data-dense" : ""}`)), f;
1122
+ })), V(() => oe(f, `lens-print-data${e.dense ? " lens-print-data-dense" : ""}`)), f;
1120
1123
  })();
1121
1124
  }
1122
1125
  function Le(e) {
1123
- const t = q();
1124
- return d(y, {
1126
+ const t = I();
1127
+ return u(w, {
1125
1128
  get when() {
1126
- return E(() => !!e.section.hasMore)() && e.section.frame;
1129
+ return B(() => !!e.section.hasMore)() && e.section.frame;
1127
1130
  },
1128
1131
  get children() {
1129
- var l = Pe();
1132
+ var l = De();
1130
1133
  return r(l, () => t("print.truncated", "First {rows} rows shown; the level continues in the dashboard.", {
1131
1134
  rows: e.section.frame.rows.length
1132
1135
  })), l;
1133
1136
  }
1134
1137
  });
1135
1138
  }
1136
- function gr(e) {
1139
+ function br(e) {
1137
1140
  var a;
1138
- const t = q(), l = V(e.section), i = (a = l.caption) == null ? void 0 : a.trim(), n = j(() => jt(l, e.section.frame, e.section.document.meta.locale))();
1139
- return d(y, {
1141
+ const t = I(), l = E(e.section), i = (a = l.caption) == null ? void 0 : a.trim(), n = q(() => jt(l, e.section.frame, e.section.document.meta.locale))();
1142
+ return u(w, {
1140
1143
  get when() {
1141
1144
  return !!i || !!n;
1142
1145
  },
1143
1146
  get children() {
1144
- var c = _n();
1145
- return r(c, d(y, {
1147
+ var c = wn();
1148
+ return r(c, u(w, {
1146
1149
  when: i,
1147
1150
  get children() {
1148
- var s = vn();
1151
+ var s = $n();
1149
1152
  return r(s, i), s;
1150
1153
  }
1151
- }), null), r(c, d(y, {
1154
+ }), null), r(c, u(w, {
1152
1155
  when: n,
1153
1156
  get children() {
1154
- var s = $n();
1157
+ var s = _n();
1155
1158
  return r(s, () => t(n.labelKey, n.fallback, n.vars)), s;
1156
1159
  }
1157
1160
  }), null), c;
1158
1161
  }
1159
1162
  });
1160
1163
  }
1161
- function Ve(e) {
1162
- return d(y, {
1164
+ function Ee(e) {
1165
+ return u(w, {
1163
1166
  get when() {
1164
- return E(() => !!e.footnotes)() && e.footnotes.markers.length > 0;
1167
+ return B(() => !!e.footnotes)() && e.footnotes.markers.length > 0;
1165
1168
  },
1166
1169
  get children() {
1167
- var t = wn();
1170
+ var t = yn();
1168
1171
  return r(t, () => e.footnotes.markers.join(", ")), t;
1169
1172
  }
1170
1173
  });
1171
1174
  }
1172
1175
  function be(e) {
1173
- return d(y, {
1176
+ return u(w, {
1174
1177
  get when() {
1175
- return E(() => !!e.footnotes)() && e.footnotes.notes.length > 0;
1178
+ return B(() => !!e.footnotes)() && e.footnotes.notes.length > 0;
1176
1179
  },
1177
1180
  get children() {
1178
- var t = yn();
1179
- return r(t, d(L, {
1181
+ var t = xn();
1182
+ return r(t, u(L, {
1180
1183
  get each() {
1181
1184
  return e.footnotes.notes;
1182
1185
  },
@@ -1186,7 +1189,7 @@ function be(e) {
1186
1189
  // can tie back to its figure is a note nobody reads.
1187
1190
  (() => {
1188
1191
  var i = kn(), n = i.firstChild;
1189
- return r(n, () => l.number), r(i, () => l.text, null), I(() => i.value = l.number), i;
1192
+ return r(n, () => l.number), r(i, () => l.text, null), V(() => i.value = l.number), i;
1190
1193
  })()
1191
1194
  )
1192
1195
  })), t;
@@ -1195,33 +1198,33 @@ function be(e) {
1195
1198
  }
1196
1199
  const se = 8;
1197
1200
  function ve(e) {
1198
- const t = q();
1199
- return d(y, {
1201
+ const t = I();
1202
+ return u(w, {
1200
1203
  get when() {
1201
1204
  return e.sections.length > 0;
1202
1205
  },
1203
1206
  get children() {
1204
- var l = xn(), i = l.firstChild;
1205
- return r(i, () => t("print.breakdown", "How it is calculated")), r(l, d(L, {
1207
+ var l = Cn(), i = l.firstChild;
1208
+ return r(i, () => t("print.breakdown", "How it is calculated")), r(l, u(L, {
1206
1209
  get each() {
1207
1210
  return e.sections;
1208
1211
  },
1209
1212
  children: (n) => {
1210
- var $, b, x, v, _;
1211
- const a = V(n), c = n.frame, s = a.kind === "table" && (($ = a.columns) != null && $.length) ? a.columns.length : (c == null ? void 0 : c.columns.length) ?? 0;
1213
+ var x, v, y, g, _;
1214
+ const a = E(n), c = n.frame, s = a.kind === "table" && ((x = a.columns) != null && x.length) ? a.columns.length : (c == null ? void 0 : c.columns.length) ?? 0;
1212
1215
  if (c && s <= 1) return null;
1213
1216
  if (Fe.has(a.kind))
1214
- return d(De, {
1217
+ return u(Pe, {
1215
1218
  section: n
1216
1219
  });
1217
1220
  const o = c ? A(c, a.encoding.value) : -1;
1218
1221
  if (c && c.rows.length === 1 && o >= 0)
1219
1222
  return (() => {
1220
- var S = Cn(), M = S.firstChild, D = M.nextSibling;
1221
- return r(M, () => a.title), r(D, () => {
1222
- var u;
1223
- return K((u = c.rows[0]) == null ? void 0 : u[o], a.encoding.value ? a.format[a.encoding.value] : void 0, n.document.meta.locale);
1224
- }), S;
1223
+ var C = Sn(), F = C.firstChild, P = F.nextSibling;
1224
+ return r(F, () => a.title), r(P, () => {
1225
+ var d;
1226
+ return K((d = c.rows[0]) == null ? void 0 : d[o], a.encoding.value ? a.format[a.encoding.value] : void 0, n.document.meta.locale);
1227
+ }), C;
1225
1228
  })();
1226
1229
  const h = !!(c && c.rows.length > se), f = h && c ? {
1227
1230
  ...n,
@@ -1229,207 +1232,207 @@ function ve(e) {
1229
1232
  ...c,
1230
1233
  rows: c.rows.slice(0, se)
1231
1234
  }
1232
- } : n, p = ((b = n.perspective) == null ? void 0 : b.label.trim()) || a.title, m = ((_ = (v = (x = a.columns) == null ? void 0 : x[0]) == null ? void 0 : v.label) == null ? void 0 : _.trim().toLowerCase()) === p.trim().toLowerCase();
1235
+ } : n, p = ((v = n.perspective) == null ? void 0 : v.label.trim()) || a.title, m = ((_ = (g = (y = a.columns) == null ? void 0 : y[0]) == null ? void 0 : g.label) == null ? void 0 : _.trim().toLowerCase()) === p.trim().toLowerCase();
1233
1236
  return (() => {
1234
- var S = Fn();
1235
- return r(S, d(y, {
1237
+ var C = Mn();
1238
+ return r(C, u(w, {
1236
1239
  when: !m,
1237
1240
  get children() {
1238
- var M = Sn();
1239
- return r(M, p), M;
1241
+ var F = Fn();
1242
+ return r(F, p), F;
1240
1243
  }
1241
- }), null), r(S, d(ue, {
1244
+ }), null), r(C, u(ue, {
1242
1245
  dense: !0,
1243
1246
  section: f
1244
- }), null), r(S, d(y, {
1247
+ }), null), r(C, u(w, {
1245
1248
  when: h && c,
1246
1249
  get children() {
1247
- var M = Pe();
1248
- return r(M, () => t("print.truncatedOf", "{rows} of {total} rows shown.", {
1250
+ var F = De();
1251
+ return r(F, () => t("print.truncatedOf", "{rows} of {total} rows shown.", {
1249
1252
  rows: se,
1250
1253
  total: c.rows.length
1251
- })), M;
1254
+ })), F;
1252
1255
  }
1253
- }), null), S;
1256
+ }), null), C;
1254
1257
  })();
1255
1258
  }
1256
1259
  }), null), l;
1257
1260
  }
1258
1261
  });
1259
1262
  }
1260
- function br(e) {
1261
- const t = q(), l = e.figure, i = l.section, n = V(i), a = mr(n, i), c = Fe.has(n.kind);
1263
+ function vr(e) {
1264
+ const t = I(), l = e.figure, i = l.section, n = E(i), a = gr(n, i), c = Fe.has(n.kind);
1262
1265
  if (l.metric)
1263
1266
  return (() => {
1264
- var o = Mn();
1265
- return r(o, d(qe, {
1267
+ var o = Pn();
1268
+ return r(o, u(Ie, {
1266
1269
  figure: l,
1267
1270
  get footnotes() {
1268
1271
  return e.footnotes;
1269
1272
  },
1270
1273
  numbered: !0
1271
- }), null), r(o, d(ve, {
1274
+ }), null), r(o, u(ve, {
1272
1275
  get sections() {
1273
1276
  return l.breakdown;
1274
1277
  }
1275
- }), null), r(o, d(be, {
1278
+ }), null), r(o, u(be, {
1276
1279
  get footnotes() {
1277
1280
  return e.footnotes;
1278
1281
  }
1279
- }), null), I(() => oe(o, `lens-print-figure lens-print-figure-${l.width} lens-print-figure-metric`)), o;
1282
+ }), null), V(() => oe(o, `lens-print-figure lens-print-figure-${l.width} lens-print-figure-metric`)), o;
1280
1283
  })();
1281
1284
  const s = n.total !== void 0 && n.encoding.value ? K(n.total, n.format[n.encoding.value], i.document.meta.locale) : void 0;
1282
1285
  return (() => {
1283
- var o = Tn(), h = o.firstChild, f = h.firstChild, p = f.firstChild, m = p.nextSibling, $ = f.nextSibling;
1286
+ var o = An(), h = o.firstChild, f = h.firstChild, p = f.firstChild, m = p.nextSibling, x = f.nextSibling;
1284
1287
  return r(p, () => t("print.figure", "Fig. {number}", {
1285
1288
  number: l.number
1286
- })), r(m, () => n.title, null), r(m, d(Ve, {
1289
+ })), r(m, () => n.title, null), r(m, u(Ee, {
1287
1290
  get footnotes() {
1288
1291
  return e.footnotes;
1289
1292
  }
1290
- }), null), r($, d(y, {
1293
+ }), null), r(x, u(w, {
1291
1294
  get when() {
1292
- var b;
1293
- return (b = n.status) == null ? void 0 : b.label;
1295
+ var v;
1296
+ return (v = n.status) == null ? void 0 : v.label;
1294
1297
  },
1295
1298
  get children() {
1296
- var b = Te();
1297
- return r(b, () => n.status.label), I(() => R(b, "data-tone", n.status.tone ?? "neutral")), b;
1299
+ var v = Te();
1300
+ return r(v, () => n.status.label), V(() => R(v, "data-tone", n.status.tone ?? "neutral")), v;
1298
1301
  }
1299
- }), null), r($, d(X, {
1302
+ }), null), r(x, u(X, {
1300
1303
  get availability() {
1301
1304
  return n.availability;
1302
1305
  },
1303
1306
  get confidence() {
1304
1307
  return n.confidence;
1305
1308
  }
1306
- }), null), r($, d(y, {
1309
+ }), null), r(x, u(w, {
1307
1310
  get when() {
1308
1311
  return i.perspective;
1309
1312
  },
1310
1313
  get children() {
1311
- var b = Dn(), x = b.firstChild;
1312
- return r(b, () => t("print.view", "View"), x), r(b, () => i.perspective.label, null), b;
1314
+ var v = Dn(), y = v.firstChild;
1315
+ return r(v, () => t("print.view", "View"), y), r(v, () => i.perspective.label, null), v;
1313
1316
  }
1314
- }), null), r($, d(y, {
1317
+ }), null), r(x, u(w, {
1315
1318
  when: s,
1316
1319
  get children() {
1317
- var b = Pn(), x = b.firstChild;
1318
- return r(b, () => t("print.total", "Total"), x), r(b, s, null), b;
1320
+ var v = Tn(), y = v.firstChild;
1321
+ return r(v, () => t("print.total", "Total"), y), r(v, s, null), v;
1319
1322
  }
1320
- }), null), r(o, () => c ? d(De, {
1323
+ }), null), r(o, () => c ? u(Pe, {
1321
1324
  section: i
1322
- }) : a ? d(fr, {
1325
+ }) : a ? u(pr, {
1323
1326
  section: i
1324
- }) : l.chart && d(Ne, {
1327
+ }) : l.chart && u(Ne, {
1325
1328
  get height() {
1326
1329
  return l.width === "half" ? 225 : 235;
1327
1330
  },
1328
1331
  section: i
1329
- }), null), r(o, d(gr, {
1332
+ }), null), r(o, u(br, {
1330
1333
  section: i
1331
- }), null), r(o, !c && (a ? d(pr, {
1334
+ }), null), r(o, !c && (a ? u(mr, {
1332
1335
  section: i
1333
- }) : d(ue, {
1336
+ }) : u(ue, {
1334
1337
  section: i
1335
- })), null), r(o, d(Le, {
1338
+ })), null), r(o, u(Le, {
1336
1339
  section: i
1337
- }), null), r(o, d(ve, {
1340
+ }), null), r(o, u(ve, {
1338
1341
  get sections() {
1339
1342
  return l.breakdown;
1340
1343
  }
1341
- }), null), r(o, d(be, {
1344
+ }), null), r(o, u(be, {
1342
1345
  get footnotes() {
1343
1346
  return e.footnotes;
1344
1347
  }
1345
- }), null), I(() => oe(o, `lens-print-figure lens-print-figure-${a || c ? "full" : l.width}`)), o;
1348
+ }), null), V(() => oe(o, `lens-print-figure lens-print-figure-${a || c ? "full" : l.width}`)), o;
1346
1349
  })();
1347
1350
  }
1348
- function vr(e) {
1351
+ function $r(e) {
1349
1352
  const t = e.values.filter((s) => Number.isFinite(s));
1350
1353
  if (t.length < 2) return null;
1351
1354
  const l = Math.min(...t), n = Math.max(...t) - l || 1, a = 100 / (t.length - 1), c = t.map((s, o) => `${(o * a).toFixed(2)},${(24 - (s - l) / n * 22).toFixed(2)}`).join(" ");
1352
1355
  return (() => {
1353
- var s = An(), o = s.firstChild;
1356
+ var s = Kn(), o = s.firstChild;
1354
1357
  return R(o, "points", c), s;
1355
1358
  })();
1356
1359
  }
1357
- function qe(e) {
1358
- var x, v;
1359
- const t = q(), l = e.figure, i = l.section, n = V(i), a = i.document.meta.locale, c = i.frame, s = c ? A(c, n.encoding.value) : -1, o = c && s >= 0 ? (x = c.rows[0]) == null ? void 0 : x[s] : void 0, h = n.encoding.value ? n.format[n.encoding.value] : void 0, f = c ? A(c, n.encoding.final) : -1, p = c && f >= 0 ? (v = c.rows[0]) == null ? void 0 : v[f] : void 0, m = Q(p), $ = n.encoding.final ? n.format[n.encoding.final] : h, b = n.target;
1360
+ function Ie(e) {
1361
+ var y, g;
1362
+ const t = I(), l = e.figure, i = l.section, n = E(i), a = i.document.meta.locale, c = i.frame, s = c ? A(c, n.encoding.value) : -1, o = c && s >= 0 ? (y = c.rows[0]) == null ? void 0 : y[s] : void 0, h = n.encoding.value ? n.format[n.encoding.value] : void 0, f = c ? A(c, n.encoding.final) : -1, p = c && f >= 0 ? (g = c.rows[0]) == null ? void 0 : g[f] : void 0, m = Q(p), x = n.encoding.final ? n.format[n.encoding.final] : h, v = n.target;
1360
1363
  return (() => {
1361
- var _ = qn(), S = _.firstChild, M = S.nextSibling, D = M.nextSibling;
1362
- return r(S, d(y, {
1364
+ var _ = Vn(), C = _.firstChild, F = C.nextSibling, P = F.nextSibling;
1365
+ return r(C, u(w, {
1363
1366
  get when() {
1364
1367
  return e.numbered;
1365
1368
  },
1366
1369
  get children() {
1367
- var u = Kn();
1368
- return r(u, () => t("print.figure", "Fig. {number}", {
1370
+ var d = Nn();
1371
+ return r(d, () => t("print.figure", "Fig. {number}", {
1369
1372
  number: l.number
1370
- })), u;
1373
+ })), d;
1371
1374
  }
1372
- }), null), r(S, () => n.title, null), r(S, d(Ve, {
1375
+ }), null), r(C, () => n.title, null), r(C, u(Ee, {
1373
1376
  get footnotes() {
1374
1377
  return e.footnotes;
1375
1378
  }
1376
- }), null), r(M, () => K(o, h, a), null), r(M, d(y, {
1379
+ }), null), r(F, () => K(o, h, a), null), r(F, u(w, {
1377
1380
  when: m !== void 0,
1378
1381
  get children() {
1379
- var u = Nn();
1380
- return R(u, "data-negative", m < 0 ? "" : void 0), r(u, m > 0 ? "+" : "", null), r(u, () => K(p, $, a), null), u;
1382
+ var d = Rn();
1383
+ return R(d, "data-negative", m < 0 ? "" : void 0), r(d, m > 0 ? "+" : "", null), r(d, () => K(p, x, a), null), d;
1381
1384
  }
1382
- }), null), r(_, d(y, {
1385
+ }), null), r(_, u(w, {
1383
1386
  get when() {
1384
1387
  return n.sparkline;
1385
1388
  },
1386
1389
  get children() {
1387
- return d(vr, {
1390
+ return u($r, {
1388
1391
  get values() {
1389
1392
  return n.sparkline.values;
1390
1393
  }
1391
1394
  });
1392
1395
  }
1393
- }), D), r(_, d(y, {
1396
+ }), P), r(_, u(w, {
1394
1397
  get when() {
1395
1398
  return n.trend;
1396
1399
  },
1397
1400
  get children() {
1398
- var u = Rn();
1399
- return r(u, () => n.trend.percent > 0 ? "+" : "", null), r(u, () => we(n.trend.percent) ?? `${new Intl.NumberFormat(a, {
1401
+ var d = Ln();
1402
+ return r(d, () => n.trend.percent > 0 ? "+" : "", null), r(d, () => we(n.trend.percent) ?? `${new Intl.NumberFormat(a, {
1400
1403
  maximumFractionDigits: 1
1401
- }).format(n.trend.percent)}%`, null), r(u, (() => {
1402
- var w = E(() => !!n.trend.label);
1403
- return () => w() ? ` ${n.trend.label}` : "";
1404
- })(), null), I(() => R(u, "data-negative", n.trend.percent < 0 ? "" : void 0)), u;
1404
+ }).format(n.trend.percent)}%`, null), r(d, (() => {
1405
+ var $ = B(() => !!n.trend.label);
1406
+ return () => $() ? ` ${n.trend.label}` : "";
1407
+ })(), null), V(() => R(d, "data-negative", n.trend.percent < 0 ? "" : void 0)), d;
1405
1408
  }
1406
- }), D), r(_, d(y, {
1407
- when: b,
1409
+ }), P), r(_, u(w, {
1410
+ when: v,
1408
1411
  get children() {
1409
- var u = Ln(), w = u.firstChild;
1410
- return r(u, () => t("print.target", "Target"), w), r(u, () => K(b.value, h, a), null), r(u, (() => {
1411
- var k = E(() => !!b.label);
1412
- return () => k() ? ` · ${b.label}` : "";
1413
- })(), null), u;
1412
+ var d = En(), $ = d.firstChild;
1413
+ return r(d, () => t("print.target", "Target"), $), r(d, () => K(v.value, h, a), null), r(d, (() => {
1414
+ var k = B(() => !!v.label);
1415
+ return () => k() ? ` · ${v.label}` : "";
1416
+ })(), null), d;
1414
1417
  }
1415
- }), D), r(_, d(y, {
1418
+ }), P), r(_, u(w, {
1416
1419
  get when() {
1417
1420
  return n.caption;
1418
1421
  },
1419
1422
  get children() {
1420
- var u = Vn();
1421
- return r(u, () => n.caption), u;
1423
+ var d = In();
1424
+ return r(d, () => n.caption), d;
1422
1425
  }
1423
- }), D), r(D, d(y, {
1426
+ }), P), r(P, u(w, {
1424
1427
  get when() {
1425
- var u;
1426
- return (u = n.status) == null ? void 0 : u.label;
1428
+ var d;
1429
+ return (d = n.status) == null ? void 0 : d.label;
1427
1430
  },
1428
1431
  get children() {
1429
- var u = Te();
1430
- return r(u, () => n.status.label), I(() => R(u, "data-tone", n.status.tone ?? "neutral")), u;
1432
+ var d = Te();
1433
+ return r(d, () => n.status.label), V(() => R(d, "data-tone", n.status.tone ?? "neutral")), d;
1431
1434
  }
1432
- }), null), r(D, d(X, {
1435
+ }), null), r(P, u(X, {
1433
1436
  get availability() {
1434
1437
  return n.availability;
1435
1438
  },
@@ -1439,8 +1442,14 @@ function qe(e) {
1439
1442
  }), null), _;
1440
1443
  })();
1441
1444
  }
1442
- function $r(e, t) {
1445
+ function _r(e, t) {
1443
1446
  var c, s;
1447
+ if (e.contextEditor) {
1448
+ const o = new Set(e.layout.rows.flatMap((f) => f.panels.flatMap((p) => p.groups ?? [])).flatMap((f) => f.filterContext ? [`${f.filterContext.period.start ?? ""} – ${f.filterContext.period.end ?? ""}`] : []));
1449
+ if (o.size > 1) return e.i18n["filter.context.reportPeriods"] || "Report periods";
1450
+ const h = [...o][0];
1451
+ if (h) return h.trim() === "–" ? t : h;
1452
+ }
1444
1453
  const l = (s = (c = e.filters) == null ? void 0 : c.find((o) => o.kind === "period")) == null ? void 0 : s.period;
1445
1454
  if (!l) return;
1446
1455
  const {
@@ -1456,204 +1465,226 @@ function $r(e, t) {
1456
1465
  };
1457
1466
  return i && n ? `${a(i)} — ${a(n)}` : a(i || n);
1458
1467
  }
1459
- function _r(e) {
1460
- const t = q(), l = e.outline.kpis, i = e.document, n = $r(i, t("filter.period.allTime", "All time"));
1468
+ function wr(e) {
1469
+ const t = I(), l = e.outline.kpis, i = e.document, n = _r(i, t("filter.period.allTime", "All time"));
1461
1470
  return (() => {
1462
- var a = En(), c = a.firstChild, s = c.firstChild, o = s.nextSibling, h = c.nextSibling, f = h.firstChild, p = f.firstChild, m = p.nextSibling, $ = f.nextSibling, b = $.firstChild, x = b.nextSibling;
1471
+ var a = On(), c = a.firstChild, s = c.firstChild, o = s.nextSibling, h = c.nextSibling, f = h.firstChild, p = f.firstChild, m = p.nextSibling, x = f.nextSibling, v = x.firstChild, y = v.nextSibling;
1463
1472
  return r(s, () => t("print.kicker", "Management audit report")), r(o, () => {
1464
- var v;
1465
- return ((v = i.header) == null ? void 0 : v.title) || i.meta.title;
1466
- }), r(c, d(y, {
1473
+ var g;
1474
+ return ((g = i.header) == null ? void 0 : g.title) || i.meta.title;
1475
+ }), r(c, u(w, {
1467
1476
  get when() {
1468
- var v;
1469
- return (v = i.header) == null ? void 0 : v.subtitle;
1477
+ var g;
1478
+ return (g = i.header) == null ? void 0 : g.subtitle;
1470
1479
  },
1471
1480
  get children() {
1472
- var v = In();
1473
- return r(v, () => {
1481
+ var g = qn();
1482
+ return r(g, () => {
1474
1483
  var _;
1475
1484
  return (_ = i.header) == null ? void 0 : _.subtitle;
1476
- }), v;
1485
+ }), g;
1477
1486
  }
1478
- }), null), r(h, d(y, {
1487
+ }), null), r(h, u(w, {
1479
1488
  when: n,
1480
1489
  get children() {
1481
- var v = ce(), _ = v.firstChild, S = _.nextSibling;
1482
- return r(_, () => t("print.period", "Period")), r(S, n), v;
1490
+ var g = ce(), _ = g.firstChild, C = _.nextSibling;
1491
+ return r(_, () => t("print.period", "Period")), r(C, n), g;
1483
1492
  }
1484
1493
  }), f), r(p, () => t("print.generated", "Generated")), r(m, () => new Intl.DateTimeFormat(i.meta.locale, {
1485
1494
  dateStyle: "long",
1486
1495
  timeStyle: "short"
1487
- }).format(new Date(i.meta.generatedAt))), r(b, () => t("print.sections", "Detailed views")), r(x, () => e.outline.figureCount + e.outline.detailCount), r(h, d(y, {
1496
+ }).format(new Date(i.meta.generatedAt))), r(v, () => t("print.sections", "Detailed views")), r(y, () => e.outline.figureCount + e.outline.detailCount), r(h, u(w, {
1488
1497
  get when() {
1489
1498
  return e.outline.estimated > 0 || e.outline.missing.length > 0;
1490
1499
  },
1491
1500
  get children() {
1492
- var v = ce(), _ = v.firstChild, S = _.nextSibling;
1493
- return r(_, () => t("print.quality", "Data quality")), r(S, () => t("print.qualityCount", "{estimated} estimated · {missing} not calculated", {
1501
+ var g = ce(), _ = g.firstChild, C = _.nextSibling;
1502
+ return r(_, () => t("print.quality", "Data quality")), r(C, () => t("print.qualityCount", "{estimated} estimated · {missing} not calculated", {
1494
1503
  estimated: e.outline.estimated,
1495
1504
  missing: e.outline.missing.length
1496
- })), v;
1505
+ })), g;
1497
1506
  }
1498
- }), null), r(a, d(y, {
1507
+ }), null), r(a, u(w, {
1499
1508
  get when() {
1500
1509
  return l.length > 0;
1501
1510
  },
1502
1511
  get children() {
1503
- var v = jn();
1504
- return r(v, d(L, {
1512
+ var g = jn();
1513
+ return r(g, u(L, {
1505
1514
  each: l,
1506
- children: (_) => d(qe, {
1515
+ children: (_) => u(Ie, {
1507
1516
  figure: _
1508
1517
  })
1509
- })), v;
1518
+ })), g;
1510
1519
  }
1511
- }), null), r(a, d(y, {
1520
+ }), null), r(a, u(w, {
1512
1521
  get when() {
1513
1522
  return e.report.truncated || e.report.warnings.length > 0 || e.outline.missing.length > 0;
1514
1523
  },
1515
1524
  get children() {
1516
- var v = Bn();
1517
- return r(v, () => t("print.limitationsFlag", "This report discloses gaps in its data; see the closing appendix.")), v;
1525
+ var g = Bn();
1526
+ return r(g, () => t("print.limitationsFlag", "This report discloses gaps in its data; see the closing appendix.")), g;
1518
1527
  }
1519
1528
  }), null), a;
1520
1529
  })();
1521
1530
  }
1522
- function wr(e) {
1523
- const t = q();
1531
+ function yr(e) {
1532
+ const t = I();
1524
1533
  return (() => {
1525
- var l = Un(), i = l.firstChild, n = i.nextSibling, a = n.firstChild, c = a.firstChild, s = c.nextSibling, o = n.nextSibling;
1526
- return r(i, () => t("print.contents", "Contents")), r(n, d(L, {
1534
+ var l = Wn(), i = l.firstChild, n = i.nextSibling, a = n.firstChild, c = a.firstChild, s = c.nextSibling, o = n.nextSibling;
1535
+ return r(i, () => t("print.contents", "Contents")), r(n, u(L, {
1527
1536
  get each() {
1528
1537
  return e.outline.chapters.filter(({
1529
1538
  figures: h
1530
1539
  }) => h.length > 0);
1531
1540
  },
1532
1541
  children: (h) => (() => {
1533
- var f = zn(), p = f.firstChild, m = p.nextSibling;
1534
- return r(p, () => h.number), r(m, () => h.title), r(f, d(y, {
1542
+ var f = Hn(), p = f.firstChild, m = p.nextSibling;
1543
+ return r(p, () => h.number), r(m, () => h.title), r(f, u(w, {
1535
1544
  get when() {
1536
1545
  return h.caption;
1537
1546
  },
1538
1547
  get children() {
1539
- var $ = Wn();
1540
- return r($, () => h.caption), $;
1548
+ var x = zn();
1549
+ return r(x, () => h.caption), x;
1541
1550
  }
1542
1551
  }), null), f;
1543
1552
  })()
1544
- }), a), r(n, d(y, {
1553
+ }), a), r(n, u(w, {
1545
1554
  get when() {
1546
1555
  return e.outline.appendix.length > 0;
1547
1556
  },
1548
1557
  get children() {
1549
- var h = On(), f = h.firstChild, p = f.nextSibling;
1558
+ var h = Un(), f = h.firstChild, p = f.nextSibling;
1550
1559
  return r(p, () => t("print.appendix", "Appendix A. Detailed breakdowns")), h;
1551
1560
  }
1552
1561
  }), a), r(s, () => t("print.method", "Appendix B. Sources and definitions")), r(o, () => t("print.note", "Every interactive view is expanded below. Values and shares accompany each chart so the report remains self-contained on paper.")), l;
1553
1562
  })();
1554
1563
  }
1555
- function yr(e) {
1556
- const t = q(), l = e.chapter, i = j(() => {
1557
- var $;
1558
- return It(l.figures.map((b) => ({
1559
- id: b.section.id,
1560
- panel: V(b.section),
1561
- frame: b.section.frame
1562
- })), (($ = l.figures[0]) == null ? void 0 : $.section.document.meta.locale) ?? "en");
1563
- }), n = pt(l.figures, t);
1564
+ function xr(e) {
1565
+ var x;
1566
+ const t = I(), l = e.chapter, i = q(() => {
1567
+ var v;
1568
+ return qt(l.figures.map((y) => ({
1569
+ id: y.section.id,
1570
+ panel: E(y.section),
1571
+ frame: y.section.frame
1572
+ })), ((v = l.figures[0]) == null ? void 0 : v.section.document.meta.locale) ?? "en");
1573
+ }), n = mt(l.figures, t);
1564
1574
  if (l.figures.length === 0) return null;
1565
1575
  const a = /* @__PURE__ */ new Set([l.caption ?? ""]), c = [];
1566
1576
  let s, o;
1567
- const h = ($) => d(br, {
1568
- figure: $,
1577
+ const h = (v) => u(vr, {
1578
+ figure: v,
1569
1579
  get footnotes() {
1570
- return n.get($.section.id);
1580
+ return n.get(v.section.id);
1571
1581
  }
1572
- }), f = ($) => {
1582
+ }), f = (v) => {
1573
1583
  if (!o) {
1574
- c.push($);
1584
+ c.push(v);
1575
1585
  return;
1576
1586
  }
1577
- const b = o;
1587
+ const y = o;
1578
1588
  o = void 0, c.push((() => {
1579
- var x = Hn();
1580
- return r(x, b, null), r(x, $, null), x;
1589
+ var g = Gn();
1590
+ return r(g, y, null), r(g, v, null), g;
1581
1591
  })());
1582
1592
  }, p = () => {
1583
1593
  s && (f(h(s)), s = void 0);
1584
- }, m = ($) => {
1585
- if ($.width !== "half") {
1586
- p(), f(h($));
1594
+ }, m = (v) => {
1595
+ if (v.width !== "half") {
1596
+ p(), f(h(v));
1587
1597
  return;
1588
1598
  }
1589
1599
  if (!s) {
1590
- s = $;
1600
+ s = v;
1591
1601
  return;
1592
1602
  }
1593
- const b = s;
1603
+ const y = s;
1594
1604
  s = void 0, f((() => {
1595
- var x = Gn();
1596
- return r(x, () => h(b), null), r(x, () => h($), null), x;
1605
+ var g = Qn();
1606
+ return r(g, () => h(y), null), r(g, () => h(v), null), g;
1597
1607
  })());
1598
1608
  };
1599
- for (const $ of l.figures) {
1600
- const b = $.group, x = `${(b == null ? void 0 : b.label) ?? ""}::${(b == null ? void 0 : b.caption) ?? ""}`;
1601
- b && !a.has(x) && (a.add(x), p(), o = (() => {
1602
- var v = Yn();
1603
- return r(v, d(y, {
1609
+ for (const v of l.figures) {
1610
+ const y = v.group, g = `${(y == null ? void 0 : y.label) ?? ""}::${(y == null ? void 0 : y.caption) ?? ""}::${((x = y == null ? void 0 : y.filterContext) == null ? void 0 : x.identity) ?? ""}`;
1611
+ y && !a.has(g) && (a.add(g), p(), o = (() => {
1612
+ var _ = Xn();
1613
+ return r(_, u(w, {
1604
1614
  get when() {
1605
- return b.label;
1615
+ return y.label;
1606
1616
  },
1607
1617
  get children() {
1608
- var _ = Qn();
1609
- return r(_, () => b.label), _;
1618
+ var C = Jn();
1619
+ return r(C, () => y.label), C;
1610
1620
  }
1611
- }), null), r(v, d(y, {
1621
+ }), null), r(_, u(w, {
1612
1622
  get when() {
1613
- return E(() => !!b.caption)() && b.caption !== l.caption;
1623
+ return B(() => !!y.caption)() && y.caption !== l.caption;
1614
1624
  },
1615
1625
  get children() {
1616
- var _ = Jn();
1617
- return r(_, () => b.caption), _;
1626
+ var C = Yn();
1627
+ return r(C, () => y.caption), C;
1618
1628
  }
1619
- }), null), v;
1620
- })()), m($);
1629
+ }), null), r(_, u(w, {
1630
+ get when() {
1631
+ return y.filterContext;
1632
+ },
1633
+ children: (C) => u(He, {
1634
+ get context() {
1635
+ return C();
1636
+ },
1637
+ get labels() {
1638
+ var F;
1639
+ return (F = v.section.document.contextEditor) == null ? void 0 : F.dimensionLabels;
1640
+ },
1641
+ get origins() {
1642
+ var F;
1643
+ return (F = v.section.document.contextEditor) == null ? void 0 : F.originLabels;
1644
+ },
1645
+ get values() {
1646
+ var F;
1647
+ return (F = v.section.document.contextEditor) == null ? void 0 : F.valueLabels;
1648
+ }
1649
+ })
1650
+ }), null), _;
1651
+ })()), m(v);
1621
1652
  }
1622
1653
  return p(), o && c.push(o), (() => {
1623
- var $ = er(), b = $.firstChild, x = b.firstChild, v = x.firstChild, _ = v.nextSibling;
1624
- _.nextSibling;
1625
- var S = x.nextSibling, M = S.firstChild, D = b.nextSibling;
1626
- return r(x, () => e.title, v), r(x, () => l.number, _), r(x, () => l.title, null), r(M, () => l.number), r(S, () => l.title, null), r(b, d(y, {
1654
+ var v = tr(), y = v.firstChild, g = y.firstChild, _ = g.firstChild, C = _.nextSibling;
1655
+ C.nextSibling;
1656
+ var F = g.nextSibling, P = F.firstChild, d = y.nextSibling;
1657
+ return r(g, () => e.title, _), r(g, () => l.number, C), r(g, () => l.title, null), r(P, () => l.number), r(F, () => l.title, null), r(y, u(w, {
1627
1658
  get when() {
1628
1659
  return l.caption;
1629
1660
  },
1630
1661
  get children() {
1631
- var u = Xn();
1632
- return r(u, () => l.caption), u;
1662
+ var $ = Zn();
1663
+ return r($, () => l.caption), $;
1633
1664
  }
1634
- }), null), r(b, d(y, {
1665
+ }), null), r(y, u(w, {
1635
1666
  get when() {
1636
1667
  return i().length > 0;
1637
1668
  },
1638
1669
  get children() {
1639
- var u = Zn();
1640
- return r(u, d(L, {
1670
+ var $ = er();
1671
+ return r($, u(L, {
1641
1672
  get each() {
1642
1673
  return i();
1643
1674
  },
1644
- children: (w) => (() => {
1645
- var k = tr(), F = k.firstChild;
1646
- return r(F, () => w.label), r(k, () => w.value, null), k;
1675
+ children: (k) => (() => {
1676
+ var M = nr(), S = M.firstChild;
1677
+ return r(S, () => k.label), r(M, () => k.value, null), M;
1647
1678
  })()
1648
- })), u;
1679
+ })), $;
1649
1680
  }
1650
- }), null), r(D, c), $;
1681
+ }), null), r(d, c), v;
1651
1682
  })();
1652
1683
  }
1653
1684
  const kr = 12, $e = 8;
1654
- function xr(e) {
1685
+ function Cr(e) {
1655
1686
  var s;
1656
- const t = q(), l = e.detail, i = V(l.section), n = ((s = l.section.frame) == null ? void 0 : s.rows.length) ?? 0, a = i.semantics === "series" && n > kr, c = a && l.section.frame ? {
1687
+ const t = I(), l = e.detail, i = E(l.section), n = ((s = l.section.frame) == null ? void 0 : s.rows.length) ?? 0, a = i.semantics === "series" && n > kr, c = a && l.section.frame ? {
1657
1688
  ...l.section,
1658
1689
  frame: {
1659
1690
  ...l.section.frame,
@@ -1661,61 +1692,61 @@ function xr(e) {
1661
1692
  }
1662
1693
  } : l.section;
1663
1694
  return (() => {
1664
- var o = rr(), h = o.firstChild, f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
1665
- return r(f, () => l.number), r(p, () => i.title), r(m, () => l.trail), r(o, d(y, {
1695
+ var o = lr(), h = o.firstChild, f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
1696
+ return r(f, () => l.number), r(p, () => i.title), r(m, () => l.trail), r(o, u(w, {
1666
1697
  when: a,
1667
1698
  get children() {
1668
- return d(Ne, {
1699
+ return u(Ne, {
1669
1700
  height: 110,
1670
1701
  get section() {
1671
1702
  return l.section;
1672
1703
  }
1673
1704
  });
1674
1705
  }
1675
- }), null), r(o, d(ue, {
1706
+ }), null), r(o, u(ue, {
1676
1707
  dense: !0,
1677
1708
  exact: !0,
1678
1709
  section: c
1679
- }), null), r(o, d(Le, {
1710
+ }), null), r(o, u(Le, {
1680
1711
  get section() {
1681
1712
  return l.section;
1682
1713
  }
1683
- }), null), r(o, d(y, {
1714
+ }), null), r(o, u(w, {
1684
1715
  when: a,
1685
1716
  get children() {
1686
- var $ = nr();
1687
- return r($, () => t("print.seriesTail", "The chart carries all {rows} periods; the table keeps the most recent {kept}.", {
1717
+ var x = rr();
1718
+ return r(x, () => t("print.seriesTail", "The chart carries all {rows} periods; the table keeps the most recent {kept}.", {
1688
1719
  rows: n,
1689
1720
  kept: $e
1690
- })), $;
1721
+ })), x;
1691
1722
  }
1692
1723
  }), null), o;
1693
1724
  })();
1694
1725
  }
1695
- function Cr(e) {
1696
- const t = q();
1697
- return d(y, {
1726
+ function Sr(e) {
1727
+ const t = I();
1728
+ return u(w, {
1698
1729
  get when() {
1699
1730
  return e.outline.appendix.length > 0;
1700
1731
  },
1701
1732
  get children() {
1702
- var l = lr(), i = l.firstChild, n = i.firstChild, a = n.firstChild, c = n.nextSibling;
1733
+ var l = ir(), i = l.firstChild, n = i.firstChild, a = n.firstChild, c = n.nextSibling;
1703
1734
  c.firstChild;
1704
1735
  var s = c.nextSibling;
1705
- return r(n, () => e.title, a), r(n, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(c, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(s, () => t("print.appendixNote", "Each reading below is one step of the drill path printed above it, kept for verification rather than for reading in order.")), r(l, d(L, {
1736
+ return r(n, () => e.title, a), r(n, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(c, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(s, () => t("print.appendixNote", "Each reading below is one step of the drill path printed above it, kept for verification rather than for reading in order.")), r(l, u(L, {
1706
1737
  get each() {
1707
1738
  return e.outline.appendix;
1708
1739
  },
1709
1740
  children: (o) => (() => {
1710
- var h = ir(), f = h.firstChild, p = f.firstChild, m = p.nextSibling;
1741
+ var h = ar(), f = h.firstChild, p = f.firstChild, m = p.nextSibling;
1711
1742
  m.nextSibling;
1712
- var $ = f.nextSibling;
1713
- return r(f, () => o.number, m), r(f, () => o.title, null), r($, d(L, {
1743
+ var x = f.nextSibling;
1744
+ return r(f, () => o.number, m), r(f, () => o.title, null), r(x, u(L, {
1714
1745
  get each() {
1715
1746
  return o.details;
1716
1747
  },
1717
- children: (b) => d(xr, {
1718
- detail: b
1748
+ children: (v) => u(Cr, {
1749
+ detail: v
1719
1750
  })
1720
1751
  })), h;
1721
1752
  })()
@@ -1723,51 +1754,51 @@ function Cr(e) {
1723
1754
  }
1724
1755
  });
1725
1756
  }
1726
- function Sr(e) {
1727
- const t = q(), l = j(() => ot(e.outline.qualities, t));
1757
+ function Fr(e) {
1758
+ const t = I(), l = q(() => ct(e.outline.qualities, t));
1728
1759
  return (() => {
1729
- var i = cr(), n = i.firstChild, a = n.firstChild, c = a.firstChild, s = a.nextSibling;
1760
+ var i = ur(), n = i.firstChild, a = n.firstChild, c = a.firstChild, s = a.nextSibling;
1730
1761
  s.firstChild;
1731
1762
  var o = n.nextSibling, h = o.firstChild, f = h.nextSibling, p = f.nextSibling, m = p.nextSibling;
1732
- return m.nextSibling, r(a, () => e.title, c), r(a, () => t("print.method", "Appendix B. Sources and definitions"), null), r(s, () => t("print.method", "Appendix B. Sources and definitions"), null), r(i, d(y, {
1763
+ return m.nextSibling, r(a, () => e.title, c), r(a, () => t("print.method", "Appendix B. Sources and definitions"), null), r(s, () => t("print.method", "Appendix B. Sources and definitions"), null), r(i, u(w, {
1733
1764
  get when() {
1734
1765
  return l().length > 0;
1735
1766
  },
1736
1767
  get children() {
1737
- var $ = ar(), b = $.firstChild, x = b.nextSibling;
1738
- return r(b, () => t("print.qualityTerms", "What the quality marks mean")), r(x, d(L, {
1768
+ var x = sr(), v = x.firstChild, y = v.nextSibling;
1769
+ return r(v, () => t("print.qualityTerms", "What the quality marks mean")), r(y, u(L, {
1739
1770
  get each() {
1740
1771
  return l();
1741
1772
  },
1742
- children: (v) => (() => {
1743
- var _ = ur(), S = _.firstChild, M = S.firstChild, D = S.nextSibling;
1744
- return r(M, () => v.label), r(D, () => v.definition), I(() => R(M, "data-quality", v.value)), _;
1773
+ children: (g) => (() => {
1774
+ var _ = dr(), C = _.firstChild, F = C.firstChild, P = C.nextSibling;
1775
+ return r(F, () => g.label), r(P, () => g.definition), V(() => R(F, "data-quality", g.value)), _;
1745
1776
  })()
1746
- })), $;
1777
+ })), x;
1747
1778
  }
1748
- }), o), r(i, d(y, {
1779
+ }), o), r(i, u(w, {
1749
1780
  get when() {
1750
1781
  return e.outline.notes.length > 0;
1751
1782
  },
1752
1783
  get children() {
1753
- var $ = sr();
1754
- return r($, d(L, {
1784
+ var x = or();
1785
+ return r(x, u(L, {
1755
1786
  get each() {
1756
1787
  return e.outline.notes;
1757
1788
  },
1758
- children: (b) => (() => {
1759
- var x = ce(), v = x.firstChild, _ = v.nextSibling;
1760
- return r(v, () => b.label), r(_, () => b.detail), x;
1789
+ children: (v) => (() => {
1790
+ var y = ce(), g = y.firstChild, _ = g.nextSibling;
1791
+ return r(g, () => v.label), r(_, () => v.detail), y;
1761
1792
  })()
1762
- })), $;
1793
+ })), x;
1763
1794
  }
1764
- }), o), r(i, d(y, {
1795
+ }), o), r(i, u(w, {
1765
1796
  get when() {
1766
1797
  return e.outline.missing.length > 0 || e.report.truncated || e.report.warnings.length > 0;
1767
1798
  },
1768
1799
  get children() {
1769
- var $ = or(), b = $.firstChild, x = b.nextSibling, v = x.nextSibling;
1770
- return r(b, () => t("print.limitations", "Data limitations")), r(x, () => t("print.limitationsNote", "The report remains usable, but the following detail views could not be calculated and are explicitly disclosed:")), r(v, d(y, {
1800
+ var x = cr(), v = x.firstChild, y = v.nextSibling, g = y.nextSibling;
1801
+ return r(v, () => t("print.limitations", "Data limitations")), r(y, () => t("print.limitationsNote", "The report remains usable, but the following detail views could not be calculated and are explicitly disclosed:")), r(g, u(w, {
1771
1802
  get when() {
1772
1803
  return e.outline.missing.length > 0;
1773
1804
  },
@@ -1777,7 +1808,7 @@ function Sr(e) {
1777
1808
  names: e.outline.missing.join(", ")
1778
1809
  })), _;
1779
1810
  }
1780
- }), null), r(v, d(y, {
1811
+ }), null), r(g, u(w, {
1781
1812
  get when() {
1782
1813
  return e.report.truncated;
1783
1814
  },
@@ -1785,45 +1816,45 @@ function Sr(e) {
1785
1816
  var _ = ae();
1786
1817
  return r(_, () => t("print.timeLimit", "Further detail was stopped at the preparation time limit; all sections calculated by then are included.")), _;
1787
1818
  }
1788
- }), null), r(v, d(L, {
1819
+ }), null), r(g, u(L, {
1789
1820
  get each() {
1790
1821
  return e.report.warnings;
1791
1822
  },
1792
1823
  children: (_) => (() => {
1793
- var S = ae();
1794
- return r(S, _), S;
1824
+ var C = ae();
1825
+ return r(C, _), C;
1795
1826
  })()
1796
- }), null), $;
1827
+ }), null), x;
1797
1828
  }
1798
1829
  }), o), r(o, () => t("print.snapshot", "Snapshot"), h), r(o, () => e.document.snapshotId, f), r(o, () => e.document.meta.dashboardId, m), r(o, () => e.document.meta.locale, null), i;
1799
1830
  })();
1800
1831
  }
1801
- function Fr(e) {
1832
+ function Mr(e) {
1802
1833
  var c;
1803
- const t = q(), l = e.report.document, i = ((c = l.header) == null ? void 0 : c.title) || l.meta.title, n = j(() => Gt(e.report))(), a = j(() => zt(e.report, t("print.summary", "Summary"), t("print.other", "Other readings")))();
1804
- return d(Ae.Provider, {
1834
+ const t = I(), l = e.report.document, i = ((c = l.header) == null ? void 0 : c.title) || l.meta.title, n = q(() => Qt(e.report))(), a = q(() => Ht(e.report, t("print.summary", "Summary"), t("print.other", "Other readings")))();
1835
+ return u(Ae.Provider, {
1805
1836
  value: n,
1806
1837
  get children() {
1807
- return [d(_r, {
1838
+ return [u(wr, {
1808
1839
  document: l,
1809
1840
  outline: a,
1810
1841
  get report() {
1811
1842
  return e.report;
1812
1843
  }
1813
- }), d(wr, {
1844
+ }), u(yr, {
1814
1845
  outline: a
1815
- }), d(L, {
1846
+ }), u(L, {
1816
1847
  get each() {
1817
1848
  return a.chapters;
1818
1849
  },
1819
- children: (s) => d(yr, {
1850
+ children: (s) => u(xr, {
1820
1851
  chapter: s,
1821
1852
  title: i
1822
1853
  })
1823
- }), d(Cr, {
1854
+ }), u(Sr, {
1824
1855
  outline: a,
1825
1856
  title: i
1826
- }), d(Sr, {
1857
+ }), u(Fr, {
1827
1858
  document: l,
1828
1859
  outline: a,
1829
1860
  get report() {
@@ -1834,27 +1865,27 @@ function Fr(e) {
1834
1865
  }
1835
1866
  });
1836
1867
  }
1837
- function Rr() {
1868
+ function Er() {
1838
1869
  const {
1839
1870
  document: e
1840
- } = Je(), t = Ye();
1841
- return typeof globalThis.document > "u" ? null : d(y, {
1871
+ } = We(), t = ze();
1872
+ return typeof globalThis.document > "u" ? null : u(w, {
1842
1873
  get when() {
1843
1874
  return t.report;
1844
1875
  },
1845
1876
  children: (l) => {
1846
1877
  const i = e.theme.palette.accent ?? e.theme.palette.primary;
1847
- return d(je, {
1878
+ return u(qe, {
1848
1879
  get mount() {
1849
1880
  return globalThis.document.body;
1850
1881
  },
1851
1882
  get children() {
1852
- var n = dr();
1853
- return r(n, d(Fr, {
1883
+ var n = hr();
1884
+ return r(n, u(Mr, {
1854
1885
  get report() {
1855
1886
  return l();
1856
1887
  }
1857
- })), I((a) => {
1888
+ })), V((a) => {
1858
1889
  var c = !t.active, s = t.preview ? "true" : void 0, o = e.meta.locale, h = i ? {
1859
1890
  "--lens-accent-500": i
1860
1891
  } : void 0;
@@ -1871,6 +1902,6 @@ function Rr() {
1871
1902
  });
1872
1903
  }
1873
1904
  export {
1874
- Rr as PrintReport,
1875
- Fr as PrintReportView
1905
+ Er as PrintReport,
1906
+ Mr as PrintReportView
1876
1907
  };