@agile-team/mach-report 2.24.0 → 2.25.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 (130) hide show
  1. package/README.md +4 -4
  2. package/dist/{ExcelBindingWizard-BV12hGiK.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
  3. package/dist/{ExcelBindingWizard-Cy_lPjWV.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
  4. package/dist/{ParamEditor-DenKjvKu.cjs → ParamEditor-DEP38mBp.cjs} +1 -1
  5. package/dist/{ParamEditor-PyOqHzzw.js → ParamEditor-Z-3yodp5.js} +2 -2
  6. package/dist/{ReportBatchPanel-pQ6d0yqJ.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
  7. package/dist/{ReportBatchPanel-8EFtMrKk.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
  8. package/dist/{ReportLabelStudio-HUeo2TsU.js → ReportLabelStudio-BZp23_hA.js} +3 -3
  9. package/dist/{ReportLabelStudio-B_KF3Zc_.cjs → ReportLabelStudio-Bz-xAayk.cjs} +1 -1
  10. package/dist/{ReportParamPanel-8xR85nz-.cjs → ReportParamPanel-B27IGJjk.cjs} +1 -1
  11. package/dist/{ReportParamPanel-DA-YpkvC.js → ReportParamPanel-DGXzBzl2.js} +1 -1
  12. package/dist/{ReportPreview-_wTJnsG1.js → ReportPreview-CilFAS9U.js} +2392 -2342
  13. package/dist/ReportPreview-dOOzPts2.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-DH8jl9IF.js → ReportTemplateLibrary-DpSGgvFa.js} +1 -1
  15. package/dist/{ReportTemplateLibrary-CjArKxRG.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
  16. package/dist/{RuleEditor-GDydlEHz.js → RuleEditor-BONALh1Q.js} +2 -3
  17. package/dist/{RuleEditor-Bmj98oC4.cjs → RuleEditor-bLXiRcxL.cjs} +1 -1
  18. package/dist/{TemplateOutlinePanel-B554_qk1.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
  19. package/dist/{TemplateOutlinePanel-DjPqzU9h.js → TemplateOutlinePanel-JGBKeF3e.js} +2 -2
  20. package/dist/{TemplateReusePanel-D0628OYc.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
  21. package/dist/{TemplateReusePanel-DtYbCN7U.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
  22. package/dist/{TemplateReviewPanel-CSwvCz3f.cjs → TemplateReviewPanel-5RWFUUEf.cjs} +1 -1
  23. package/dist/{TemplateReviewPanel-D_FR4ISq.js → TemplateReviewPanel-DhL7Hapy.js} +1 -1
  24. package/dist/analytics.d.cts +1 -1
  25. package/dist/analytics.d.ts +1 -1
  26. package/dist/artifact-integrity.json +98 -98
  27. package/dist/{assets-B4AJIOTB.cjs → assets-BYdpkTIt.cjs} +1 -1
  28. package/dist/{assets-D0FbszhB.js → assets-C4MIvzQ4.js} +2 -2
  29. package/dist/{auto-C3mGqzJ8.cjs → auto-D-eDZa_V.cjs} +1 -1
  30. package/dist/{auto-BksreoKc.js → auto-umW_ozwr.js} +10 -10
  31. package/dist/{capabilities-lqDEZSq5.js → capabilities-CN_kSVjO.js} +7 -7
  32. package/dist/{capabilities-CTwlcl8q.cjs → capabilities-D4nfhcvB.cjs} +1 -1
  33. package/dist/cell-style-B6Qffrx8.js +37 -0
  34. package/dist/cell-style-y_uh1pZp.cjs +1 -0
  35. package/dist/{data-bar-BnGtnJ82.js → data-bar-Bfh54sT4.js} +1 -1
  36. package/dist/{data-bar-2NLRzOCQ.cjs → data-bar-DzceAVeR.cjs} +1 -1
  37. package/dist/{designer-BNf7NWd6.js → designer-CCyj5WYS.js} +2254 -2248
  38. package/dist/designer-Cj7fn4Hh.cjs +2 -0
  39. package/dist/designer.cjs +1 -1
  40. package/dist/designer.d.cts +6 -6
  41. package/dist/designer.d.ts +6 -6
  42. package/dist/designer.js +1 -1
  43. package/dist/diagnostic-collector-gB07PHy2.js +392 -0
  44. package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
  45. package/dist/dom-CXWMmwh-.cjs +1 -0
  46. package/dist/{dom-C90cTM6Y.js → dom-DxdCMLzs.js} +185 -185
  47. package/dist/{encoding-DSc9zv2F.js → encoding-CEkBtlUP.js} +2 -2
  48. package/dist/{encoding-CkziAnZI.cjs → encoding-Cipno7dq.cjs} +1 -1
  49. package/dist/{font-loader-i7lZbqH_.js → font-loader-D4NLIKJL.js} +1 -1
  50. package/dist/{font-loader-D-znWNWS.cjs → font-loader-p_SyTvqt.cjs} +1 -1
  51. package/dist/{grid-strokes-BPiV1WHe.js → grid-strokes-DkZEZvcI.js} +1 -1
  52. package/dist/{grid-strokes-DYf-6DMl.cjs → grid-strokes-RFMR91jn.cjs} +1 -1
  53. package/dist/index.cjs +2 -2
  54. package/dist/index.d.cts +2 -2
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.js +137 -137
  57. package/dist/json-snapshot-DQdkA_At.cjs +2 -0
  58. package/dist/{json-snapshot-BJWZNryO.js → json-snapshot-x0JpllWL.js} +8 -8
  59. package/dist/{pdf-DWuq6uxx.cjs → pdf-C060D5UY.cjs} +2 -2
  60. package/dist/{pdf-0_5XiTCx.js → pdf-DU8HelKd.js} +17 -17
  61. package/dist/pdf.cjs +1 -1
  62. package/dist/pdf.js +2 -2
  63. package/dist/{plugin-BQBz2vLG.cjs → plugin-B_k23hut.cjs} +1 -1
  64. package/dist/{plugin-B1ydqEmS.js → plugin-CttO46hc.js} +1 -1
  65. package/dist/{prefill-Cuzh1wxf.js → prefill-BkF9Fw_p.js} +2 -2
  66. package/dist/{prefill-2p9wrpn9.cjs → prefill-BvkuwooY.cjs} +1 -1
  67. package/dist/{prepared-DAwe8Il2.cjs → prepared-CSywIEAZ.cjs} +1 -1
  68. package/dist/{prepared-CVbgO9KR.js → prepared-Cyuh61fJ.js} +2 -2
  69. package/dist/protocol-BwbJNVZl.cjs +1 -0
  70. package/dist/protocol-DwtxjXzO.js +96 -0
  71. package/dist/record-bindings-B7djSjNs.cjs +1 -0
  72. package/dist/{record-bindings-fhav-NLG.js → record-bindings-Cv7lFiof.js} +47 -47
  73. package/dist/{region-binding-workflow-DWCUgjZl.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
  74. package/dist/{region-binding-workflow-Cm4mqhih.js → region-binding-workflow-D8I4QWRh.js} +2 -2
  75. package/dist/report-encoding-worker.cjs +1 -1
  76. package/dist/report-encoding-worker.js +1 -1
  77. package/dist/{rich-text-layout-YJHtCWQI.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
  78. package/dist/{rich-text-layout-X9YOz1JD.cjs → rich-text-layout-yJGuThtC.cjs} +1 -1
  79. package/dist/runtime-BE30icyB.js +227 -0
  80. package/dist/runtime-DRSuy_SQ.cjs +1 -0
  81. package/dist/sbom.cdx.json +1 -1
  82. package/dist/server-node.cjs +5 -5
  83. package/dist/server-node.js +1695 -1661
  84. package/dist/server.cjs +1 -1
  85. package/dist/server.d.cts +4 -4
  86. package/dist/server.d.ts +4 -4
  87. package/dist/server.js +8 -8
  88. package/dist/style.css +1 -1
  89. package/dist/{template-catalog--yBX169M.cjs → template-catalog-C0riwrx7.cjs} +1 -1
  90. package/dist/{template-catalog-Bu7s7ReF.js → template-catalog-D_gl93va.js} +3 -3
  91. package/dist/{template-fragments-5EzVn7bm.cjs → template-fragments-CgzPdFKB.cjs} +1 -1
  92. package/dist/{template-fragments-Di2vDFnx.js → template-fragments-D94ZZmPc.js} +2 -2
  93. package/dist/{template-registry-Bnh5aEYf.cjs → template-registry-BMScUmM4.cjs} +1 -1
  94. package/dist/{template-registry-BCBF2b8j.js → template-registry-DZOtRY7t.js} +10 -10
  95. package/dist/{textwrap-CmVkhMhx.js → textwrap-BywMBMXM.js} +1 -1
  96. package/dist/{textwrap-BPFxhpOw.cjs → textwrap-LhJkHWb1.cjs} +1 -1
  97. package/dist/vue/async.d.cts +4 -4
  98. package/dist/vue/async.d.ts +4 -4
  99. package/dist/vue/index.d.cts +6 -6
  100. package/dist/vue/index.d.ts +6 -6
  101. package/dist/vue-async.cjs +1 -1
  102. package/dist/vue-async.js +3 -3
  103. package/dist/vue.cjs +1 -1
  104. package/dist/vue.js +7 -7
  105. package/dist/{workbook-session-BnPK3T58.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
  106. package/dist/{workbook-session-B6P_-5a4.js → workbook-session-SzfILBJJ.js} +106 -107
  107. package/dist/worker.cjs +1 -1
  108. package/dist/worker.js +4 -4
  109. package/dist/xlsx/node.d.cts +30 -1
  110. package/dist/xlsx/node.d.ts +30 -1
  111. package/dist/xlsx-node.cjs +42 -42
  112. package/dist/xlsx-node.js +3908 -3889
  113. package/dist/xlsx.cjs +2 -2
  114. package/dist/xlsx.d.cts +2 -2
  115. package/dist/xlsx.d.ts +2 -2
  116. package/dist/xlsx.js +151 -151
  117. package/package.json +1 -1
  118. package/dist/ReportPreview-CyUXJSVX.cjs +0 -6
  119. package/dist/designer-DWnZZ_ej.cjs +0 -2
  120. package/dist/diagnostic-collector-1sqd7DQP.js +0 -355
  121. package/dist/diagnostic-collector-D3rlvxm3.cjs +0 -1
  122. package/dist/dom-CxOkm_Sy.cjs +0 -1
  123. package/dist/json-snapshot-C7QZrRBf.cjs +0 -2
  124. package/dist/progress-BXzlVbIp.js +0 -29
  125. package/dist/progress-DJBd9Rb9.cjs +0 -1
  126. package/dist/protocol-BOri9qJL.js +0 -105
  127. package/dist/protocol-DD5dHSz-.cjs +0 -1
  128. package/dist/record-bindings-CAyM5tGg.cjs +0 -1
  129. package/dist/runtime-BpSAgOw1.js +0 -201
  130. package/dist/runtime-Cd2UTnwe.cjs +0 -1
@@ -1,9 +1,9 @@
1
- import { s as S, d as j, c as U, a as H } from "./prepared-CVbgO9KR.js";
2
- import { H as I } from "./json-snapshot-BJWZNryO.js";
3
- import { b as W, R as C, v as $, c as N } from "./protocol-BOri9qJL.js";
4
- import { x as G } from "./diagnostic-collector-1sqd7DQP.js";
5
- import { c as K, e as X } from "./runtime-BpSAgOw1.js";
6
- import { D as z, R as O, t as R, v as J, c as D, b as M } from "./sha256-BDQ1Qk7A.js";
1
+ import { s as S, d as j, c as U, a as H } from "./prepared-Cyuh61fJ.js";
2
+ import { H as I } from "./json-snapshot-x0JpllWL.js";
3
+ import { b as W, R as z, v as $, c as N } from "./protocol-DwtxjXzO.js";
4
+ import { z as G } from "./diagnostic-collector-gB07PHy2.js";
5
+ import { c as K, e as X } from "./runtime-BE30icyB.js";
6
+ import { D as C, R as O, t as R, v as J, c as D, b as M } from "./sha256-BDQ1Qk7A.js";
7
7
  class T extends Error {
8
8
  constructor(r) {
9
9
  super("报表 Worker 无法启动"), this.cause = r, this.name = "ReportWorkerStartError";
@@ -17,7 +17,7 @@ function F(e) {
17
17
  function V(e, r) {
18
18
  if (!e || typeof e != "object") return;
19
19
  const t = e;
20
- return t.protocol === C && t.id === r ? t : void 0;
20
+ return t.protocol === z && t.id === r ? t : void 0;
21
21
  }
22
22
  function Y(e, r = {}) {
23
23
  const t = r.timeoutMs ?? 12e4;
@@ -65,7 +65,7 @@ function Y(e, r = {}) {
65
65
  if (a?.addEventListener("abort", k, { once: !0 }), y = setTimeout(() => l(new W({ name: "ReportRuntimeError", code: "timeout", message: `报表 Worker 执行超过 ${t}ms` })), t), a?.aborted) k();
66
66
  else {
67
67
  const { onEvent: f, signal: c, ...g } = s, x = Z(g);
68
- b.postMessage({ protocol: C, id: E, operation: o, input: g, ...r.budget ? { budget: r.budget } : {} }, x);
68
+ b.postMessage({ protocol: z, id: E, operation: o, input: g, ...r.budget ? { budget: r.budget } : {} }, x);
69
69
  }
70
70
  } catch (f) {
71
71
  l(f);
@@ -183,12 +183,12 @@ function B(e, r, t) {
183
183
  M(t, "maxRows", e.stats.rows), M(t, "maxPages", e.stats.pages), M(t, "maxCells", e.stats.cells), M(t, "maxOutputBytes", e.bytes.byteLength), j({ ...r, prepared: { ...r.prepared, stats: e.stats } }, t);
184
184
  }
185
185
  function ae(e, r) {
186
- const t = { ...z, ...r.budget }, n = U(e.prepared, t.maxPreparedBytes, e.signal), o = { ...e, prepared: n.prepared, pdf: S(e.pdf), xlsx: H(e.xlsx) };
186
+ const t = { ...C, ...r.budget }, n = U(e.prepared, t.maxPreparedBytes, e.signal), o = { ...e, prepared: n.prepared, pdf: S(e.pdf), xlsx: H(e.xlsx) };
187
187
  return { request: o, forward: () => ({ ...o, prepared: n.forward() }) };
188
188
  }
189
189
  function ie(e, r) {
190
190
  ne(e);
191
- const t = { ...e, thresholds: { ...e.thresholds }, budget: { ...z, ...e.budget } }, n = t.timeoutMs ?? t.budget.maxDurationMs ?? 12e4, o = K({ reports: {}, budget: { ...t.budget, maxDurationMs: n } }), s = /* @__PURE__ */ new Set();
191
+ const t = { ...e, thresholds: { ...e.thresholds }, budget: { ...C, ...e.budget } }, n = t.timeoutMs ?? t.budget.maxDurationMs ?? 12e4, o = K({ reports: {}, budget: { ...t.budget, maxDurationMs: n } }), s = /* @__PURE__ */ new Set();
192
192
  let a = !1;
193
193
  const u = t.mode !== "worker" && t.fallback !== "error";
194
194
  async function v(i, b) {
@@ -1,4 +1,4 @@
1
- import { y as f, x as E, E as k, u as M, I as $, i as O, A as L, r as C } from "./diagnostic-collector-1sqd7DQP.js";
1
+ import { A as f, z as E, G as k, x as M, N as $, i as O, E as L, r as C } from "./diagnostic-collector-gB07PHy2.js";
2
2
  function X(e, t) {
3
3
  f(t.signal), E(() => t.onDiagnostic?.(e)), f(t.signal);
4
4
  }
@@ -55,24 +55,24 @@ function D(e, t, i, n, s, o, a) {
55
55
  const u = new Set(a).add(e), r = P(e, t);
56
56
  r && o.push({ ...g(e, t, i, n, r), componentPath: s });
57
57
  const d = h(e.style, t);
58
- d && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: d }), componentPath: s }), w(e, t, i, n, o, s), N(e, t, i, n, s, o, u);
58
+ d && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: d }), componentPath: s }), w(e, t, i, n, o, s), T(e, t, i, n, s, o, u);
59
59
  }
60
- function R(e, t, i) {
60
+ function N(e, t, i) {
61
61
  if (e.grid) return { code: "nested-components-omitted", message: "XLSX cannot place a nested grid inside a single cell; the nested grid is omitted." };
62
62
  const n = A(e);
63
63
  if (n) return n;
64
64
  if (O(e) && (e.leftMm < 0 || e.topMm < 0 || e.leftMm + e.widthMm > t + 1e-3 || e.topMm + e.heightMm > i + 1e-3)) return { code: "unsupported-style", message: "XLSX cannot clip a child image to a cell; it retains the original image dimensions." };
65
65
  }
66
- function T(e) {
66
+ function R(e) {
67
67
  let t;
68
68
  return (i, n, s, o) => {
69
69
  t ??= new Map(C(e.grid, e.widthMm, e.heightMm).cells.map((r) => [`${r.ri}:${r.ci}`, r]));
70
70
  const a = t.get(`${n}:${s}`), u = 2 * (e.grid?.paddingMm ?? 0.5);
71
- return R(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
71
+ return N(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
72
72
  };
73
73
  }
74
- function N(e, t, i, n, s, o, a) {
75
- const u = T(e);
74
+ function T(e, t, i, n, s, o, a) {
75
+ const u = R(e);
76
76
  for (const [r, d] of (e.grid?.cells ?? []).entries()) for (const [c, l] of d.entries()) {
77
77
  l?.dataBar !== void 0 && !L(l.dataBar) && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: "Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors." }), componentPath: [...s, r, c] });
78
78
  const v = h(l?.style, t);
@@ -1 +1 @@
1
- "use strict";const c=require("./diagnostic-collector-D3rlvxm3.cjs");function D(e,t){c.assertOutputActive(t.signal),c.observeOutput(()=>t.onDiagnostic?.(e)),c.assertOutputActive(t.signal)}class M extends Error{constructor(t,i){super(`Output contains ${i?.total??t.length} known fidelity issue(s): ${t[0]?.code??Object.keys(i?.counts??{})[0]??"unknown"}`),this.diagnostics=t,this.diagnosticSummary=i,this.code="output-fidelity",this.name="OutputFidelityError"}}const C=new Set(["text","rect","line","ellipse"]),k=new Set(["image","chart","barcode","qrcode"]);function $(e,t){if(!e.grid){if(c.isImageBackedComponent(e))return(t==="pdf"||t==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(e.imageData)?{code:"unsupported-image-format",message:`${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if(k.has(e.kind))return{code:"missing-image",message:`${e.kind} requires imageData or a renderer adapter before output.`};if(!C.has(e.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${e.kind}.`};if(t==="xlsx"&&e.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${e.kind} geometry.`}}}function p(e,t,i,n,s){const o=Object.getOwnPropertyDescriptor(e,"meta")?.value,a=o&&Object.getOwnPropertyDescriptor(o,"componentExtension")?.value,u=a&&Object.getOwnPropertyDescriptor(a,"id")?.value,r=a&&Object.getOwnPropertyDescriptor(a,"version")?.value,d=typeof u=="string"&&u.length<=128&&typeof r=="string"&&r.length<=64?{id:u,version:r}:void 0;return{...s,severity:"warning",format:t,pageIndex:i,componentIndex:n,kind:e.kind,nid:e.nid,...d?{extension:d}:{}}}function h(e,t){if(!e||t==="dom")return;const i=[];return e.rotateDeg&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&i.push("opacity"),t!=="xlsx"&&e.align==="justify"&&i.push("justify"),t==="xlsx"&&e.letterSpacing&&i.push("letterSpacing"),i.length?`${t} does not preserve these styles: ${i.join(", ")}.`:void 0}function S(e){if(!e)return;const t=["backgroundColor","align","verticalAlign","lineHeight","borderTop","borderRight","borderBottom","borderLeft","borderColor","lineColor","lineWidthPt"].filter(i=>e[i]!==void 0);return t.length?`XLSX rich text does not retain independent run styles: ${t.join(", ")}.`:void 0}function L(e){if(e.kind!=="text")return;const t=S(e.style);if(e.leftMm||e.topMm||t)return{code:"unsupported-style",message:`Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t?` ${t}`:""}`}}function m(e,t,i,n,s,o){const a=u=>{s.push({...p(e,t,i,n,{code:"unsupported-style",message:u}),componentPath:o})};for(const u of e.richParagraphs??[]){t==="xlsx"&&(u.spaceBeforeMm||u.spaceAfterMm||u.indentMm||u.align||u.lineHeight)&&a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");const r=h({align:u.align},t);r&&a(r);for(const d of u.segments){const l=h(d.style,t)??(t==="xlsx"?S(d.style):void 0);l&&a(l)}}}function w(e,t,i,n,s,o,a){if(a.has(e))return;const u=new Set(a).add(e),r=$(e,t);r&&o.push({...p(e,t,i,n,r),componentPath:s});const d=h(e.style,t);d&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:d}),componentPath:s}),m(e,t,i,n,o,s),B(e,t,i,n,s,o,u)}function X(e,t,i){if(e.grid)return{code:"nested-components-omitted",message:"XLSX cannot place a nested grid inside a single cell; the nested grid is omitted."};const n=L(e);if(n)return n;if(c.isImageBackedComponent(e)&&(e.leftMm<0||e.topMm<0||e.leftMm+e.widthMm>t+.001||e.topMm+e.heightMm>i+.001))return{code:"unsupported-style",message:"XLSX cannot clip a child image to a cell; it retains the original image dimensions."}}function j(e){let t;return(i,n,s,o)=>{t??=new Map(c.resolveGridLayout(e.grid,e.widthMm,e.heightMm).cells.map(r=>[`${r.ri}:${r.ci}`,r]));const a=t.get(`${n}:${s}`),u=2*(e.grid?.paddingMm??.5);return X(i,(a?.widthMm??0)-u-(o?.indentMm??0),(a?.heightMm??0)-u)}}function B(e,t,i,n,s,o,a){const u=j(e);for(const[r,d]of(e.grid?.cells??[]).entries())for(const[l,g]of d.entries()){g?.dataBar!==void 0&&!c.validDataBar(g.dataBar)&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:"Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors."}),componentPath:[...s,r,l]});const v=h(g?.style,t);v&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:v}),componentPath:[...s,r,l]}),g?.richParagraphs?.length&&m({...e,richParagraphs:g.richParagraphs},t,i,n,o,[...s,r,l]);for(const[E,f]of(g?.children??[]).entries()){const O=[...s,r,l,E];if(t==="xlsx"){const b=u(f,r,l,g);if(b&&o.push({...p(f,t,i,n,b),componentPath:O}),f.grid)continue}w(f,t,i,n,O,o,a)}}}function y(e,t,i){c.assertBoundedRenderTree(e),e.pages.forEach((n,s)=>n.components.forEach((o,a)=>w(o,t,s,a,[],i,new Set)))}function A(e,t){const i=[];return y(e,t,i),i}function G(e,t,i=c.DEFAULT_DIAGNOSTIC_LIMIT){const n=c.createDiagnosticCollector(i);return y(e,t,n),n.snapshot()}function x(e,t,i,n){c.assertOutputActive(i.signal);const s=c.createDiagnosticCollector(i.diagnosticLimit);n?.diagnosticSummary?s.merge(n.diagnosticSummary):n?.diagnostics.forEach(r=>s.push(r));const o=s.entries.length,a=i.diagnosticLimit===void 0?void 0:new Set(s.entries);if(y(e,t,{push:r=>{c.assertOutputActive(i.signal),s.push(r)}}),(a?s.entries.filter(r=>!a.has(r)):s.entries.slice(o)).forEach(r=>D(r,i)),i.fidelity==="strict"&&s.total)throw new M(s.entries,i.diagnosticLimit===void 0?void 0:s.snapshot());return s}function P(e,t,i){return x(e,t,i).entries}exports.OutputFidelityError=M;exports.collectOutputDiagnostics=x;exports.inspectOutputCapabilities=A;exports.inspectOutputCapabilitiesSummary=G;exports.notifyOutputDiagnostic=D;exports.reportOutputDiagnostics=P;
1
+ "use strict";const c=require("./diagnostic-collector-wASg6Fzs.cjs");function D(e,t){c.assertOutputActive(t.signal),c.observeOutput(()=>t.onDiagnostic?.(e)),c.assertOutputActive(t.signal)}class M extends Error{constructor(t,i){super(`Output contains ${i?.total??t.length} known fidelity issue(s): ${t[0]?.code??Object.keys(i?.counts??{})[0]??"unknown"}`),this.diagnostics=t,this.diagnosticSummary=i,this.code="output-fidelity",this.name="OutputFidelityError"}}const C=new Set(["text","rect","line","ellipse"]),k=new Set(["image","chart","barcode","qrcode"]);function $(e,t){if(!e.grid){if(c.isImageBackedComponent(e))return(t==="pdf"||t==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(e.imageData)?{code:"unsupported-image-format",message:`${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if(k.has(e.kind))return{code:"missing-image",message:`${e.kind} requires imageData or a renderer adapter before output.`};if(!C.has(e.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${e.kind}.`};if(t==="xlsx"&&e.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${e.kind} geometry.`}}}function p(e,t,i,n,s){const o=Object.getOwnPropertyDescriptor(e,"meta")?.value,a=o&&Object.getOwnPropertyDescriptor(o,"componentExtension")?.value,u=a&&Object.getOwnPropertyDescriptor(a,"id")?.value,r=a&&Object.getOwnPropertyDescriptor(a,"version")?.value,d=typeof u=="string"&&u.length<=128&&typeof r=="string"&&r.length<=64?{id:u,version:r}:void 0;return{...s,severity:"warning",format:t,pageIndex:i,componentIndex:n,kind:e.kind,nid:e.nid,...d?{extension:d}:{}}}function h(e,t){if(!e||t==="dom")return;const i=[];return e.rotateDeg&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&i.push("opacity"),t!=="xlsx"&&e.align==="justify"&&i.push("justify"),t==="xlsx"&&e.letterSpacing&&i.push("letterSpacing"),i.length?`${t} does not preserve these styles: ${i.join(", ")}.`:void 0}function S(e){if(!e)return;const t=["backgroundColor","align","verticalAlign","lineHeight","borderTop","borderRight","borderBottom","borderLeft","borderColor","lineColor","lineWidthPt"].filter(i=>e[i]!==void 0);return t.length?`XLSX rich text does not retain independent run styles: ${t.join(", ")}.`:void 0}function L(e){if(e.kind!=="text")return;const t=S(e.style);if(e.leftMm||e.topMm||t)return{code:"unsupported-style",message:`Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t?` ${t}`:""}`}}function m(e,t,i,n,s,o){const a=u=>{s.push({...p(e,t,i,n,{code:"unsupported-style",message:u}),componentPath:o})};for(const u of e.richParagraphs??[]){t==="xlsx"&&(u.spaceBeforeMm||u.spaceAfterMm||u.indentMm||u.align||u.lineHeight)&&a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");const r=h({align:u.align},t);r&&a(r);for(const d of u.segments){const l=h(d.style,t)??(t==="xlsx"?S(d.style):void 0);l&&a(l)}}}function w(e,t,i,n,s,o,a){if(a.has(e))return;const u=new Set(a).add(e),r=$(e,t);r&&o.push({...p(e,t,i,n,r),componentPath:s});const d=h(e.style,t);d&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:d}),componentPath:s}),m(e,t,i,n,o,s),B(e,t,i,n,s,o,u)}function X(e,t,i){if(e.grid)return{code:"nested-components-omitted",message:"XLSX cannot place a nested grid inside a single cell; the nested grid is omitted."};const n=L(e);if(n)return n;if(c.isImageBackedComponent(e)&&(e.leftMm<0||e.topMm<0||e.leftMm+e.widthMm>t+.001||e.topMm+e.heightMm>i+.001))return{code:"unsupported-style",message:"XLSX cannot clip a child image to a cell; it retains the original image dimensions."}}function j(e){let t;return(i,n,s,o)=>{t??=new Map(c.resolveGridLayout(e.grid,e.widthMm,e.heightMm).cells.map(r=>[`${r.ri}:${r.ci}`,r]));const a=t.get(`${n}:${s}`),u=2*(e.grid?.paddingMm??.5);return X(i,(a?.widthMm??0)-u-(o?.indentMm??0),(a?.heightMm??0)-u)}}function B(e,t,i,n,s,o,a){const u=j(e);for(const[r,d]of(e.grid?.cells??[]).entries())for(const[l,g]of d.entries()){g?.dataBar!==void 0&&!c.validDataBar(g.dataBar)&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:"Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors."}),componentPath:[...s,r,l]});const v=h(g?.style,t);v&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:v}),componentPath:[...s,r,l]}),g?.richParagraphs?.length&&m({...e,richParagraphs:g.richParagraphs},t,i,n,o,[...s,r,l]);for(const[E,f]of(g?.children??[]).entries()){const O=[...s,r,l,E];if(t==="xlsx"){const b=u(f,r,l,g);if(b&&o.push({...p(f,t,i,n,b),componentPath:O}),f.grid)continue}w(f,t,i,n,O,o,a)}}}function y(e,t,i){c.assertBoundedRenderTree(e),e.pages.forEach((n,s)=>n.components.forEach((o,a)=>w(o,t,s,a,[],i,new Set)))}function A(e,t){const i=[];return y(e,t,i),i}function G(e,t,i=c.DEFAULT_DIAGNOSTIC_LIMIT){const n=c.createDiagnosticCollector(i);return y(e,t,n),n.snapshot()}function x(e,t,i,n){c.assertOutputActive(i.signal);const s=c.createDiagnosticCollector(i.diagnosticLimit);n?.diagnosticSummary?s.merge(n.diagnosticSummary):n?.diagnostics.forEach(r=>s.push(r));const o=s.entries.length,a=i.diagnosticLimit===void 0?void 0:new Set(s.entries);if(y(e,t,{push:r=>{c.assertOutputActive(i.signal),s.push(r)}}),(a?s.entries.filter(r=>!a.has(r)):s.entries.slice(o)).forEach(r=>D(r,i)),i.fidelity==="strict"&&s.total)throw new M(s.entries,i.diagnosticLimit===void 0?void 0:s.snapshot());return s}function P(e,t,i){return x(e,t,i).entries}exports.OutputFidelityError=M;exports.collectOutputDiagnostics=x;exports.inspectOutputCapabilities=A;exports.inspectOutputCapabilitiesSummary=G;exports.notifyOutputDiagnostic=D;exports.reportOutputDiagnostics=P;
@@ -0,0 +1,37 @@
1
+ function s(e) {
2
+ if (e?.aborted) throw e.reason ?? new DOMException("The operation was aborted.", "AbortError");
3
+ }
4
+ function u(e) {
5
+ try {
6
+ Promise.resolve(e()).catch(() => {
7
+ });
8
+ } catch {
9
+ }
10
+ }
11
+ function b(e, t) {
12
+ const o = Promise.resolve(e);
13
+ return t?.aborted ? (o.catch(() => {
14
+ }), Promise.reject(t.reason ?? new DOMException("The operation was aborted.", "AbortError"))) : t ? new Promise((c, i) => {
15
+ const r = () => t.removeEventListener("abort", n), n = () => {
16
+ r(), i(t.reason ?? new DOMException("The operation was aborted.", "AbortError"));
17
+ };
18
+ t.addEventListener("abort", n, { once: !0 }), o.then((a) => {
19
+ r(), c(a);
20
+ }, (a) => {
21
+ r(), i(a);
22
+ }), t.aborted && n();
23
+ }) : o;
24
+ }
25
+ function p(e, t = !1) {
26
+ return t || typeof e == "boolean" || e instanceof Date || typeof e == "number" && Number.isFinite(e) ? "center" : "left";
27
+ }
28
+ function f(e) {
29
+ return e !== void 0 && /[0#?]/.test(e.replace(/"[^"]*"|\\.|\[[^\]]*\]/g, ""));
30
+ }
31
+ export {
32
+ p as a,
33
+ s as b,
34
+ f as h,
35
+ u as o,
36
+ b as w
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";function u(t){if(t?.aborted)throw t.reason??new DOMException("The operation was aborted.","AbortError")}function s(t){try{Promise.resolve(t()).catch(()=>{})}catch{}}function b(t,e){const r=Promise.resolve(t);return e?.aborted?(r.catch(()=>{}),Promise.reject(e.reason??new DOMException("The operation was aborted.","AbortError"))):e?new Promise((a,c)=>{const o=()=>e.removeEventListener("abort",n),n=()=>{o(),c(e.reason??new DOMException("The operation was aborted.","AbortError"))};e.addEventListener("abort",n,{once:!0}),r.then(i=>{o(),a(i)},i=>{o(),c(i)}),e.aborted&&n()}):r}function p(t,e=!1){return e||typeof t=="boolean"||t instanceof Date||typeof t=="number"&&Number.isFinite(t)?"center":"left"}function m(t){return t!==void 0&&/[0#?]/.test(t.replace(/"[^"]*"|\\.|\[[^\]]*\]/g,""))}exports.assertOutputActive=u;exports.automaticCellAlignment=p;exports.hasNumericCellFormat=m;exports.observeOutput=s;exports.waitForOutput=b;
@@ -1,4 +1,4 @@
1
- import { A as n } from "./diagnostic-collector-1sqd7DQP.js";
1
+ import { E as n } from "./diagnostic-collector-gB07PHy2.js";
2
2
  function i(t, r, d, o) {
3
3
  if (!n(t) || t.start === t.end) return;
4
4
  const a = Math.max(0, r - 2 * o);
@@ -1 +1 @@
1
- "use strict";const d=require("./diagnostic-collector-D3rlvxm3.cjs");function i(t,r,c,o){if(!d.validDataBar(t)||t.start===t.end)return;const a=Math.max(0,r-2*o);return{x:o+a*t.start,y:o,width:a*(t.end-t.start),height:Math.max(0,c-2*o),color:t.color}}exports.dataBarBox=i;
1
+ "use strict";const d=require("./diagnostic-collector-wASg6Fzs.cjs");function i(t,r,c,o){if(!d.validDataBar(t)||t.start===t.end)return;const a=Math.max(0,r-2*o);return{x:o+a*t.start,y:o,width:a*(t.end-t.start),height:Math.max(0,c-2*o),color:t.color}}exports.dataBarBox=i;