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