@agile-team/mach-report 2.14.0 → 2.16.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 (282) hide show
  1. package/README.md +26 -16
  2. package/THIRD_PARTY_NOTICES.md +3 -1
  3. package/dist/{ExcelBindingWizard-CLT2p7P3.cjs → ExcelBindingWizard-CP6h2x1f.cjs} +1 -1
  4. package/dist/{ExcelBindingWizard-CvsWR8Ga.js → ExcelBindingWizard-HhB3hAJE.js} +3 -3
  5. package/dist/ParamEditor-CUQLgoxa.cjs +1 -0
  6. package/dist/ParamEditor-OKesP_nO.js +594 -0
  7. package/dist/{ReportBatchPanel-DkxTzBkD.cjs → ReportBatchPanel-cZCAMAwH.cjs} +1 -1
  8. package/dist/{ReportBatchPanel-LqVgiqp7.js → ReportBatchPanel-ruxcbfY6.js} +39 -39
  9. package/dist/ReportPreview-BcDKCLiK.js +4834 -0
  10. package/dist/ReportPreview-Bk9nLfO9.cjs +6 -0
  11. package/dist/{ReportTemplateLibrary-cQ1sqNYo.cjs → ReportTemplateLibrary-BDlNT8JN.cjs} +1 -1
  12. package/dist/{ReportTemplateLibrary-MjWEtc7X.js → ReportTemplateLibrary-DcwrH-63.js} +1 -1
  13. package/dist/{RuleEditor-BaR6xUiI.cjs → RuleEditor-BX5S8RSF.cjs} +1 -1
  14. package/dist/{RuleEditor-ChuXMlei.js → RuleEditor-CGl9XY2s.js} +5 -5
  15. package/dist/{TemplateOutlinePanel-BHKP89Xz.cjs → TemplateOutlinePanel-CGrT5DFN.cjs} +1 -1
  16. package/dist/{TemplateOutlinePanel-Dci6aRn1.js → TemplateOutlinePanel-SXCjaPKR.js} +2 -2
  17. package/dist/{TemplateReusePanel-CY5eO2Sh.cjs → TemplateReusePanel-6Z3wRFz8.cjs} +1 -1
  18. package/dist/{TemplateReusePanel-B7Gmyc1z.js → TemplateReusePanel-lHLOS9Wn.js} +2 -2
  19. package/dist/{TemplateReviewPanel-DjlX3xpt.js → TemplateReviewPanel-CJ9PLc48.js} +2 -2
  20. package/dist/{TemplateReviewPanel-JvZe9_4G.cjs → TemplateReviewPanel-Dpk7sLcF.cjs} +1 -1
  21. package/dist/analytics.cjs +1 -1
  22. package/dist/analytics.d.cts +5 -1
  23. package/dist/analytics.d.ts +5 -1
  24. package/dist/analytics.js +154 -60
  25. package/dist/artifact-integrity.json +143 -0
  26. package/dist/assets-CqIbfbTr.js +126 -0
  27. package/dist/assets-e4YSke8n.cjs +1 -0
  28. package/dist/auto-YR7a4BtF.js +240 -0
  29. package/dist/auto-uVBjX1j5.cjs +1 -0
  30. package/dist/batch-WzDIXJAt.js +220 -0
  31. package/dist/batch-z6Aw5GEY.cjs +1 -0
  32. package/dist/capabilities-DDwXr_cA.js +103 -0
  33. package/dist/capabilities-DNLyZdNw.cjs +1 -0
  34. package/dist/codes.d.cts +4 -0
  35. package/dist/codes.d.ts +4 -0
  36. package/dist/component-tree-Ca6YYfHq.js +61 -0
  37. package/dist/component-tree-DkGLEfZC.cjs +1 -0
  38. package/dist/{computed-Bvk0W15F.js → computed-C-4C2S5h.js} +3 -3
  39. package/dist/config-Dg_o8e7m.cjs +1 -0
  40. package/dist/config-XQ4qrQ7Q.js +844 -0
  41. package/dist/designer-BfQSahxq.js +5163 -0
  42. package/dist/designer-CPPdeM5_.cjs +2 -0
  43. package/dist/designer.cjs +1 -1
  44. package/dist/designer.d.cts +197 -16
  45. package/dist/designer.d.ts +197 -16
  46. package/dist/designer.js +1 -1
  47. package/dist/diagnostic-notification-B9K9We3h.cjs +1 -0
  48. package/dist/diagnostic-notification-qGAYZdkB.js +7 -0
  49. package/dist/drill-CsdjgkRM.cjs +1 -0
  50. package/dist/drill-DIGsZfyB.js +145 -0
  51. package/dist/encoding-BOGq4qYL.js +21 -0
  52. package/dist/encoding-BYF9ZTl9.cjs +1 -0
  53. package/dist/{font-loader-DHto6Lra.js → font-loader-CzI1GuBc.js} +1 -1
  54. package/dist/{font-loader-vhCT8znW.cjs → font-loader-EKLzOJxf.cjs} +1 -1
  55. package/dist/index.cjs +8 -9
  56. package/dist/index.d.cts +84 -4
  57. package/dist/index.d.ts +84 -4
  58. package/dist/index.js +829 -833
  59. package/dist/json-snapshot-D6ioHth9.js +1702 -0
  60. package/dist/json-snapshot-DknkjvxP.cjs +2 -0
  61. package/dist/licenses/_bwip-js_generic-4.11.4.txt +24 -0
  62. package/dist/licenses/_fast-csv_format-4.3.5.txt +22 -0
  63. package/dist/licenses/_fast-csv_parse-4.3.6.txt +22 -0
  64. package/dist/licenses/_pdf-lib_fontkit-1.1.1.txt +326 -0
  65. package/dist/licenses/_pdf-lib_standard-fonts-1.0.0.txt +22 -0
  66. package/dist/licenses/_pdf-lib_upng-1.0.1.txt +22 -0
  67. package/dist/licenses/_types_node-14.18.63.txt +22 -0
  68. package/dist/licenses/_types_pako-2.0.3.txt +22 -0
  69. package/dist/licenses/_types_pegjs-0.10.6.txt +22 -0
  70. package/dist/licenses/archiver-5.3.2.txt +23 -0
  71. package/dist/licenses/archiver-utils-2.1.0.txt +23 -0
  72. package/dist/licenses/archiver-utils-3.0.4.txt +23 -0
  73. package/dist/licenses/async-3.2.6.txt +20 -0
  74. package/dist/licenses/balanced-match-1.0.2.txt +22 -0
  75. package/dist/licenses/base64-js-1.5.1.txt +22 -0
  76. package/dist/licenses/big-integer-1.6.52.txt +25 -0
  77. package/dist/licenses/binary-0.3.0.txt +178 -0
  78. package/dist/licenses/bl-4.1.0.txt +14 -0
  79. package/dist/licenses/bluebird-3.4.7.txt +22 -0
  80. package/dist/licenses/brace-expansion-1.1.21.txt +22 -0
  81. package/dist/licenses/brace-expansion-2.1.7.txt +22 -0
  82. package/dist/licenses/buffer-5.7.1.txt +22 -0
  83. package/dist/licenses/buffer-crc32-0.2.13.txt +20 -0
  84. package/dist/licenses/buffer-indexof-polyfill-1.0.2.txt +23 -0
  85. package/dist/licenses/buffers-0.1.1.txt +140 -0
  86. package/dist/licenses/chainsaw-0.1.0.txt +184 -0
  87. package/dist/licenses/compress-commons-4.1.2.txt +23 -0
  88. package/dist/licenses/concat-map-0.0.1.txt +19 -0
  89. package/dist/licenses/core-util-is-1.0.3.txt +20 -0
  90. package/dist/licenses/crc-32-1.2.2.txt +202 -0
  91. package/dist/licenses/crc32-stream-4.0.3.txt +23 -0
  92. package/dist/licenses/dayjs-1.11.23.txt +22 -0
  93. package/dist/licenses/duplexer2-0.1.4.txt +27 -0
  94. package/dist/licenses/end-of-stream-1.4.5.txt +22 -0
  95. package/dist/licenses/exceljs-4.4.0.txt +23 -0
  96. package/dist/licenses/fast-csv-4.3.6.txt +22 -0
  97. package/dist/licenses/fast-png-6.4.0.txt +22 -0
  98. package/dist/licenses/fs-constants-1.0.0.txt +22 -0
  99. package/dist/licenses/fs.realpath-1.0.0.txt +44 -0
  100. package/dist/licenses/fstream-1.0.12.txt +16 -0
  101. package/dist/licenses/glob-7.2.3.txt +22 -0
  102. package/dist/licenses/graceful-fs-4.2.11.txt +16 -0
  103. package/dist/licenses/ieee754-1.2.1.txt +12 -0
  104. package/dist/licenses/immediate-3.0.6.txt +21 -0
  105. package/dist/licenses/inflight-1.0.6.txt +16 -0
  106. package/dist/licenses/inherits-2.0.4.txt +17 -0
  107. package/dist/licenses/iobuffer-5.4.0.txt +23 -0
  108. package/dist/licenses/isarray-1.0.0.txt +61 -0
  109. package/dist/licenses/jszip-3.10.2.txt +652 -0
  110. package/dist/licenses/lazystream-1.0.1.txt +24 -0
  111. package/dist/licenses/lie-3.3.0.txt +8 -0
  112. package/dist/licenses/listenercount-1.0.1.txt +6 -0
  113. package/dist/licenses/lodash.defaults-4.2.0.txt +48 -0
  114. package/dist/licenses/lodash.difference-4.5.0.txt +48 -0
  115. package/dist/licenses/lodash.escaperegexp-4.1.2.txt +48 -0
  116. package/dist/licenses/lodash.flatten-4.4.0.txt +48 -0
  117. package/dist/licenses/lodash.groupby-4.6.0.txt +48 -0
  118. package/dist/licenses/lodash.isboolean-3.0.3.txt +23 -0
  119. package/dist/licenses/lodash.isequal-4.5.0.txt +48 -0
  120. package/dist/licenses/lodash.isfunction-3.0.9.txt +48 -0
  121. package/dist/licenses/lodash.isnil-4.0.0.txt +23 -0
  122. package/dist/licenses/lodash.isplainobject-4.0.6.txt +48 -0
  123. package/dist/licenses/lodash.isundefined-3.0.1.txt +23 -0
  124. package/dist/licenses/lodash.union-4.6.0.txt +48 -0
  125. package/dist/licenses/lodash.uniq-4.5.0.txt +48 -0
  126. package/dist/licenses/minimatch-3.1.5.txt +16 -0
  127. package/dist/licenses/minimatch-5.1.9.txt +16 -0
  128. package/dist/licenses/minimist-1.2.8.txt +19 -0
  129. package/dist/licenses/mkdirp-0.5.6.txt +22 -0
  130. package/dist/licenses/node-sql-parser-5.4.0.txt +202 -0
  131. package/dist/licenses/normalize-path-3.0.0.txt +22 -0
  132. package/dist/licenses/once-1.4.0.txt +16 -0
  133. package/dist/licenses/pako-1.0.11.txt +22 -0
  134. package/dist/licenses/pako-2.2.0.txt +22 -0
  135. package/dist/licenses/path-is-absolute-1.0.1.txt +22 -0
  136. package/dist/licenses/pdf-lib-1.17.1.txt +22 -0
  137. package/dist/licenses/process-nextick-args-2.0.1.txt +20 -0
  138. package/dist/licenses/readable-stream-2.3.8.txt +48 -0
  139. package/dist/licenses/readable-stream-3.6.2.txt +48 -0
  140. package/dist/licenses/readdir-glob-1.1.3.txt +202 -0
  141. package/dist/licenses/rimraf-2.7.1.txt +16 -0
  142. package/dist/licenses/safe-buffer-5.1.2.txt +22 -0
  143. package/dist/licenses/safe-buffer-5.2.1.txt +22 -0
  144. package/dist/licenses/saxes-5.0.1.txt +397 -0
  145. package/dist/licenses/setimmediate-1.0.5.txt +21 -0
  146. package/dist/licenses/string_decoder-1.1.1.txt +49 -0
  147. package/dist/licenses/string_decoder-1.3.0.txt +49 -0
  148. package/dist/licenses/tar-stream-2.2.0.txt +22 -0
  149. package/dist/licenses/tmp-0.2.7.txt +22 -0
  150. package/dist/licenses/traverse-0.3.9.txt +25 -0
  151. package/dist/licenses/tslib-1.14.1.txt +13 -0
  152. package/dist/licenses/unzipper-0.10.14.txt +26 -0
  153. package/dist/licenses/util-deprecate-1.0.2.txt +25 -0
  154. package/dist/licenses/uuid-11.1.1.txt +10 -0
  155. package/dist/licenses/wrappy-1.0.2.txt +16 -0
  156. package/dist/licenses/xmlchars-2.2.0.txt +19 -0
  157. package/dist/licenses/zip-stream-4.1.1.txt +23 -0
  158. package/dist/matrix-CGRGkn5s.js +112 -0
  159. package/dist/matrix-gEO7ZM_u.cjs +1 -0
  160. package/dist/media-B7vnpD8k.cjs +1 -0
  161. package/dist/media-Y90dHK9z.js +70 -0
  162. package/dist/param-validation-C3HlcLLO.cjs +1 -0
  163. package/dist/param-validation-Do7Eg8Zv.js +181 -0
  164. package/dist/{pdf-AyJGb22z.cjs → pdf-ByVCb1i6.cjs} +49 -49
  165. package/dist/{pdf-8UPQebOE.js → pdf-DJ5S6ukC.js} +4924 -4872
  166. package/dist/pdf.cjs +1 -1
  167. package/dist/pdf.d.cts +20 -3
  168. package/dist/pdf.d.ts +20 -3
  169. package/dist/pdf.js +2 -2
  170. package/dist/{plugin-BGKf-Tqg.js → plugin-C2j5_mhx.js} +2 -2
  171. package/dist/{plugin-CktLH_Iy.cjs → plugin-Dr39GBRG.cjs} +1 -1
  172. package/dist/prepared-DdrjLC7L.cjs +1 -0
  173. package/dist/prepared-DqtpvRTn.js +87 -0
  174. package/dist/progress-B0ctFpKf.cjs +1 -0
  175. package/dist/progress-BXzlVbIp.js +29 -0
  176. package/dist/progress-DJBd9Rb9.cjs +1 -0
  177. package/dist/progress-Hc2vxoCs.js +52 -0
  178. package/dist/protocol-BzwMP4Vw.cjs +1 -0
  179. package/dist/protocol-kt4Iy6-3.js +90 -0
  180. package/dist/record-bindings-CZWBJ1fU.js +195 -0
  181. package/dist/record-bindings-DUX1VMlR.cjs +1 -0
  182. package/dist/{region-binding-workflow-DEJbhpCv.js → region-binding-workflow-CWNvIjkV.js} +1 -1
  183. package/dist/{region-binding-workflow-BzfbxRiR.cjs → region-binding-workflow-CqSMxQ4p.cjs} +1 -1
  184. package/dist/report-encoding-worker.cjs +1 -0
  185. package/dist/report-encoding-worker.d.ts +1 -0
  186. package/dist/report-encoding-worker.js +2 -0
  187. package/dist/{report-params-B44imUd4.js → report-params-B1RzkhJj.js} +1 -1
  188. package/dist/{report-params-SJfhKgaX.cjs → report-params-WDGrA4oP.cjs} +1 -1
  189. package/dist/rich-text-layout-ALlMoYOG.cjs +3 -0
  190. package/dist/rich-text-layout-Ct5WrY1g.js +102 -0
  191. package/dist/runtime-BjKBI530.js +168 -0
  192. package/dist/runtime-CBFEPKEs.cjs +1 -0
  193. package/dist/sbom.cdx.json +3982 -0
  194. package/dist/server/node.d.cts +106 -2
  195. package/dist/server/node.d.ts +106 -2
  196. package/dist/server-node.cjs +5 -1
  197. package/dist/server-node.js +4634 -539
  198. package/dist/server.cjs +1 -1
  199. package/dist/server.d.cts +780 -5
  200. package/dist/server.d.ts +780 -5
  201. package/dist/server.js +773 -691
  202. package/dist/sha256-BshdOkCC.cjs +1 -0
  203. package/dist/sha256-DTG-Gq8i.js +157 -0
  204. package/dist/style-67OqfNed.js +73 -0
  205. package/dist/style-C22Pbv3T.cjs +1 -0
  206. package/dist/style.css +1 -1
  207. package/dist/template-bindings-C2SpvsMU.js +58 -0
  208. package/dist/template-bindings-CEtWyiLX.cjs +1 -0
  209. package/dist/template-catalog-BtR2JmCL.js +414 -0
  210. package/dist/template-catalog-C2NLdrwB.cjs +1 -0
  211. package/dist/{template-fragments-DFUpq5QM.cjs → template-fragments-BVsbxs4a.cjs} +1 -1
  212. package/dist/{template-fragments-CLkGo6To.js → template-fragments-By0aZC1D.js} +21 -21
  213. package/dist/{template-outline-B3xVkzSv.cjs → template-outline-BwRV_eRo.cjs} +1 -1
  214. package/dist/{template-outline-CFenM1PV.js → template-outline-cnWfT_LK.js} +3 -3
  215. package/dist/template-registry-C62vpv4a.cjs +1 -0
  216. package/dist/template-registry-Cw3vRTX2.js +801 -0
  217. package/dist/textwrap-BEIg2w8y.js +110 -0
  218. package/dist/textwrap-BI-yJ6Wt.cjs +4 -0
  219. package/dist/{tree-CqcQ99NM.js → tree-CjVZLRw7.js} +1 -1
  220. package/dist/vue/async.d.cts +189 -14
  221. package/dist/vue/async.d.ts +189 -14
  222. package/dist/vue/index.d.cts +246 -22
  223. package/dist/vue/index.d.ts +246 -22
  224. package/dist/vue-async.cjs +1 -1
  225. package/dist/vue-async.js +3 -3
  226. package/dist/vue.cjs +1 -1
  227. package/dist/vue.js +80 -78
  228. package/dist/{workbook-session-BfK1yHOO.js → workbook-session-BeSO8PFB.js} +5460 -5295
  229. package/dist/{workbook-session-DNa2RHNG.cjs → workbook-session-Cbts-22R.cjs} +19 -19
  230. package/dist/worker.cjs +1 -1
  231. package/dist/worker.d.cts +104 -2
  232. package/dist/worker.d.ts +104 -2
  233. package/dist/worker.js +12 -156
  234. package/dist/xlsx-node.cjs +35 -35
  235. package/dist/xlsx-node.js +2138 -2137
  236. package/dist/xlsx.cjs +4 -4
  237. package/dist/xlsx.d.cts +24 -10
  238. package/dist/xlsx.d.ts +24 -10
  239. package/dist/xlsx.js +303 -277
  240. package/package.json +7 -4
  241. package/dist/ParamEditor-CflQV3eQ.js +0 -526
  242. package/dist/ParamEditor-vIDzvpPV.cjs +0 -1
  243. package/dist/ReportPreview-CvbqLUzM.cjs +0 -6
  244. package/dist/ReportPreview-D_ywJ_-H.js +0 -4533
  245. package/dist/assets-C2U-e-Sz.cjs +0 -4
  246. package/dist/assets-Q0wUwNrV.js +0 -217
  247. package/dist/batch-DzaTNLWI.js +0 -371
  248. package/dist/batch-xMkqYiTr.cjs +0 -1
  249. package/dist/capabilities-CK_7hizc.js +0 -63
  250. package/dist/capabilities-CsZ-pNHR.cjs +0 -1
  251. package/dist/config-0UIohTS7.cjs +0 -1
  252. package/dist/config-Dt9NtCPl.js +0 -566
  253. package/dist/data-explanation-BktvER5B.cjs +0 -1
  254. package/dist/data-explanation-C_J6jYNi.js +0 -16
  255. package/dist/defaults-DXhiM1ZD.js +0 -10
  256. package/dist/defaults-xhmcLLrf.cjs +0 -1
  257. package/dist/designer-Ci1LizA9.js +0 -5020
  258. package/dist/designer-rtmVIIdN.cjs +0 -2
  259. package/dist/grid-strokes-Cr7DwUux.cjs +0 -1
  260. package/dist/grid-strokes-DyyG1q_o.js +0 -53
  261. package/dist/json-snapshot-BeFT3Tso.js +0 -1952
  262. package/dist/json-snapshot-D1NTP2oI.cjs +0 -2
  263. package/dist/matrix-DVyWiYsd.cjs +0 -1
  264. package/dist/matrix-yZsGnldA.js +0 -227
  265. package/dist/page-window-index-CIuT4BAv.js +0 -43
  266. package/dist/page-window-index-DEjnM6IB.cjs +0 -1
  267. package/dist/param-validation-BlHHXs6u.js +0 -153
  268. package/dist/param-validation-DCK039V1.cjs +0 -1
  269. package/dist/progress-7OSZbFok.js +0 -39
  270. package/dist/progress-BnLiS5eH.cjs +0 -1
  271. package/dist/render-plan-7xpGrCEl.cjs +0 -1
  272. package/dist/render-plan-Ck6koX9L.js +0 -13
  273. package/dist/style-CQ1PK8ZB.js +0 -67
  274. package/dist/style-UgIJSA1F.cjs +0 -1
  275. package/dist/task-events-DQ276fn2.cjs +0 -1
  276. package/dist/task-events-Dpsvf_t2.js +0 -47
  277. package/dist/template-bindings-BJR4k7qZ.cjs +0 -1
  278. package/dist/template-bindings-Daui7hLF.js +0 -252
  279. package/dist/template-registry-COXDEJEM.js +0 -570
  280. package/dist/template-registry-D3SjENi6.cjs +0 -1
  281. package/dist/validate-BJ5HIWY8.cjs +0 -1
  282. package/dist/validate-CkQBWCeg.js +0 -163
package/dist/xlsx.js CHANGED
@@ -1,32 +1,35 @@
1
- import { a as x, o as z } from "./progress-7OSZbFok.js";
2
- import { e as P, E as B, m as C } from "./workbook-session-BfK1yHOO.js";
3
- import { i as ke, a as We, o as Ae } from "./workbook-session-BfK1yHOO.js";
4
- import { i as $ } from "./render-plan-Ck6koX9L.js";
5
- import { r as k } from "./grid-geometry-BNptEcMm.js";
6
- import { e as W, r as N } from "./style-CQ1PK8ZB.js";
7
- import { r as G } from "./capabilities-CK_7hizc.js";
8
- import { b as Fe, c as Re, a as Te, d as ze, e as Pe, f as Be, g as Ne, h as Ge, p as Le, i as Oe, v as je, j as De, k as _e, l as He, m as Ke, n as Xe } from "./region-binding-workflow-DEJbhpCv.js";
9
- function y(e, t) {
10
- const r = e ?? t;
11
- if (!Number.isSafeInteger(r) || r <= 0) throw new Error("Excel 图片字节预算应为正安全整数");
12
- return r;
13
- }
14
- function L(e, t) {
15
- const r = e.imageData;
16
- if (!r || !/^data:image\/(png|jpe?g);base64,/i.test(r)) return;
17
- if (r.length > Math.ceil(t / 3) * 4 + 64) throw new Error("Excel 单张图片超过字节预算");
18
- const n = r.indexOf(","), i = r.slice(n + 1);
19
- if (!/^[A-Za-z0-9+/]+={0,2}$/.test(i) || i.length % 4 !== 0) throw new Error("Excel 图片不是有效的 base64 数据");
20
- const o = i.length / 4 * 3 - (i.endsWith("==") ? 2 : i.endsWith("=") ? 1 : 0);
21
- if (o > t) throw new Error("Excel 单张图片超过字节预算");
22
- const s = /^data:image\/png;/i.test(r) ? "png" : "jpeg", a = atob(i.slice(0, 12));
23
- if (s === "png" ? !a.startsWith(`‰PNG\r
24
- 
25
- `) : !a.startsWith("ÿØÿ")) throw new Error("Excel 图片内容与 PNG/JPEG 类型不一致");
26
- return { base64: `data:image/${s};base64,${i}`, key: `${s}:${i}`, extension: s, bytes: o };
27
- }
28
- function O(e, t, r) {
29
- let n = r * 72 / 25.4;
1
+ import { f as w, r as k } from "./style-67OqfNed.js";
2
+ import { b as E, o as B, c as N } from "./progress-Hc2vxoCs.js";
3
+ import { e as O, E as L, m as $, i as j } from "./workbook-session-BeSO8PFB.js";
4
+ import { a as Ie, b as Pe, o as ze } from "./workbook-session-BeSO8PFB.js";
5
+ import { i as S } from "./component-tree-Ca6YYfHq.js";
6
+ import { c as G } from "./media-Y90dHK9z.js";
7
+ import { r as A } from "./grid-geometry-BNptEcMm.js";
8
+ import { r as H } from "./capabilities-DDwXr_cA.js";
9
+ import { b as Ne, c as Oe, a as Le, d as je, e as Ge, f as He, g as _e, h as De, p as Ue, i as Ke, v as Xe, j as Je, k as Ve, l as qe, m as Qe, n as Ye } from "./region-binding-workflow-CWNvIjkV.js";
10
+ function F(e, t) {
11
+ return { richText: e.flatMap((o, n) => [
12
+ ...n ? [{ text: `
13
+ ` }] : [],
14
+ ...o.segments.map((i) => {
15
+ const a = w(t, i.style), r = a.color?.replace(/^#/, "");
16
+ return { text: i.kind === "field" ? i.field ?? "" : i.text ?? "", font: { name: a.fontFamily, bold: a.bold, italic: a.italic, underline: a.underline, size: k(a).fontSizePt, .../^[a-f\d]{6}$/i.test(r ?? "") ? { color: { argb: `FF${r.toUpperCase()}` } } : {} } };
17
+ })
18
+ ]) };
19
+ }
20
+ function _(e, t) {
21
+ const o = e.children?.filter((a) => a.kind === "text" && !a.grid) ?? [];
22
+ if (!e.richParagraphs?.length && !o.length) return;
23
+ const n = w(t, e.style), i = e.richParagraphs?.length ? [...e.richParagraphs] : e.text ? [{ segments: [{ text: e.text }] }] : [];
24
+ for (const a of o) {
25
+ const r = w(n, a.style), s = a.richParagraphs?.length ? a.richParagraphs : [{ segments: [{ text: a.lines?.join(`
26
+ `) ?? a.text ?? "" }] }];
27
+ for (const l of s) i.push({ ...l, segments: l.segments.map((c) => ({ ...c, style: w(r, c.style) })) });
28
+ }
29
+ return F(i, n);
30
+ }
31
+ function D(e, t, o) {
32
+ let n = o * 72 / 25.4;
30
33
  if (!Number.isFinite(n) || t + Math.ceil(n / 409) - 1 > 1048576) throw new Error("Excel 图片占位超过工作表行数上限");
31
34
  for (; n > 0; ) {
32
35
  if (t > 1048576) throw new Error("Excel 图片占位超过工作表行数上限");
@@ -35,388 +38,411 @@ function O(e, t, r) {
35
38
  }
36
39
  return t;
37
40
  }
38
- function j(e, t, r) {
41
+ function U(e, t, o) {
39
42
  let n = Math.round(t * 36e3), i = 0;
40
43
  if (!Number.isSafeInteger(n)) throw new Error("Excel 图片锚点超出安全坐标范围");
41
44
  for (e.properties.defaultColWidth ??= 8.43; i < 16384; ) {
42
- const o = e.getColumn(i + 1).width ?? e.properties.defaultColWidth, s = Math.round(P(o) * 36e3);
43
- if (!Number.isSafeInteger(s) || s <= 0) throw new Error("Excel 图片锚点所在列宽无效");
44
- if (n < s) return { col: i + n / s, row: r - 1, nativeCol: i, nativeColOff: n, nativeRow: r - 1, nativeRowOff: 0 };
45
- n -= s, i++;
45
+ const a = e.getColumn(i + 1).width ?? e.properties.defaultColWidth, r = Math.round(O(a) * 36e3);
46
+ if (!Number.isSafeInteger(r) || r <= 0) throw new Error("Excel 图片锚点所在列宽无效");
47
+ if (n < r) return { col: i + n / r, row: o - 1, nativeCol: i, nativeColOff: n, nativeRow: o - 1, nativeRowOff: 0 };
48
+ n -= r, i++;
46
49
  }
47
50
  throw new Error("Excel 图片锚点超过16384列上限");
48
51
  }
49
- function D(e, t, r) {
50
- const n = y(t.maxImageBytes, 16777216), i = y(t.maxTotalImageBytes, 32 * 1024 * 1024), o = y(t.maxImages, 1e3), s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
51
- let l = 0;
52
- return { write(h, c, d) {
53
- if (![c.widthMm, c.heightMm, c.leftMm].every(Number.isFinite) || c.widthMm < 0 || c.heightMm < 0 || c.leftMm < 0) throw new Error("Excel 图片尺寸无效");
54
- if (!c.widthMm || !c.heightMm) return d;
55
- const f = a.get(c.imageData) ?? L(c, n);
56
- if (f && a.set(c.imageData, f), !f)
57
- return r.push(`${c.nid ?? c.kind}: Excel 图片仅支持 PNG/JPEG data URI,已跳过`), d;
58
- let g = s.get(f.key);
59
- if (g === void 0) {
60
- if (s.size >= o) throw new Error("Excel 唯一图片数量超过预算");
61
- if (l + f.bytes > i) throw new Error("Excel 图片总字节数超过预算");
62
- g = e.addImage({ base64: f.base64, extension: f.extension }), s.set(f.key, g), l += f.bytes;
63
- }
64
- const u = O(h, d, c.heightMm);
65
- return h.addImage(g, {
66
- tl: j(h, c.leftMm, d),
67
- ext: { width: c.widthMm * 96 / 25.4, height: c.heightMm * 96 / 25.4 },
52
+ function K(e, t, o) {
53
+ let n = o * 72 / 25.4;
54
+ if (!Number.isFinite(n) || Math.abs(n) > 1048576 * 409) throw new Error("Excel 图片纵向偏移超过工作表范围");
55
+ const i = (a) => {
56
+ const r = e.getRow(a).height ?? e.properties.defaultRowHeight ?? 15;
57
+ if (!Number.isFinite(r) || r <= 0) throw new Error("Excel 图片锚点所在行高无效");
58
+ return r;
59
+ };
60
+ for (; n < 0 && t > 1; ) n += i(--t);
61
+ for (; t <= 1048576 && n >= i(t); ) n -= i(t++);
62
+ if (t > 1048576 || n < 0) throw new Error("Excel 图片移动到工作表边界之外");
63
+ return { nativeRow: t - 1, nativeRowOff: Math.round(n * 25.4 / 72 * 36e3) };
64
+ }
65
+ function X(e, t, o) {
66
+ const n = G(t), i = /* @__PURE__ */ new Map();
67
+ return { write(a, r, s, l) {
68
+ if (![r.widthMm, r.heightMm, r.leftMm].every(Number.isFinite) || r.widthMm < 0 || r.heightMm < 0 || r.leftMm < 0) throw new Error("Excel 图片尺寸无效");
69
+ if (!r.widthMm || !r.heightMm) return s;
70
+ if (!r.imageData || !/^data:image\/(png|jpe?g);base64,/i.test(r.imageData))
71
+ return o.push(`${r.nid ?? r.kind}: Excel 图片仅支持 PNG/JPEG data URI,已跳过`), s;
72
+ const c = n(r.imageData);
73
+ let h = i.get(c.dataUrl);
74
+ h === void 0 && (h = e.addImage({ base64: c.dataUrl, extension: c.extension }), i.set(c.dataUrl, h));
75
+ const f = l ? s : D(a, s, r.heightMm);
76
+ return a.addImage(h, {
77
+ tl: { ...U(a, l?.leftMm ?? r.leftMm, s), ...l ? K(a, s, l.offsetMm) : {} },
78
+ ext: { width: r.widthMm * 96 / 25.4, height: r.heightMm * 96 / 25.4 },
68
79
  editAs: "oneCell"
69
- }), u;
80
+ }), f;
70
81
  } };
71
82
  }
72
- function A(e) {
83
+ function R(e) {
73
84
  return !!e && typeof e == "object" && !Array.isArray(e);
74
85
  }
75
- function I(e, t) {
76
- const r = e.meta?.xlsxFlow;
77
- if (r === void 0) return;
78
- if (!A(r) || r.version !== "1.0" || !Number.isSafeInteger(r.columnStart) || Number(r.columnStart) < 0) throw new Error("Excel 多区域几何标记无效,不能按列序猜测输出");
86
+ function T(e, t) {
87
+ const o = e.meta?.xlsxFlow;
88
+ if (o === void 0) return;
89
+ if (!R(o) || o.version !== "1.0" || !Number.isSafeInteger(o.columnStart) || Number(o.columnStart) < 0) throw new Error("Excel 多区域几何标记无效,不能按列序猜测输出");
79
90
  if (!e.grid) throw new Error("Excel 多区域输出只接受显式网格组件");
80
- const n = r, i = e.grid.colWidthsMm;
81
- if (!i?.length || n.columnStart + i.length > t.length || i.some((o, s) => Math.abs(o - t[n.columnStart + s]) > 1e-3)) throw new Error("Excel 多区域列位置与网格列宽不一致");
91
+ const n = o, i = e.grid.colWidthsMm;
92
+ if (!i?.length || n.columnStart + i.length > t.length || i.some((a, r) => Math.abs(a - t[n.columnStart + r]) > 1e-3)) throw new Error("Excel 多区域列位置与网格列宽不一致");
82
93
  return n;
83
94
  }
84
- function F(e) {
95
+ function W(e) {
85
96
  const t = e.meta?.xlsxFlow;
86
97
  if (t === void 0) {
87
98
  if (e.components.some((n) => n.meta?.xlsxFlow !== void 0)) throw new Error("Excel 多区域页面缺少完整列几何标记");
88
99
  return;
89
100
  }
90
- const r = _(t, e.meta?.reportScope);
101
+ const o = J(t, e.meta?.reportScope);
91
102
  for (const n of e.components) {
92
- const i = I(n, r.widths);
103
+ const i = T(n, o.widths);
93
104
  if (!i) throw new Error("Excel 多区域页面混入没有区域几何的组件,请使用独立页面模板");
94
- const o = r.widths.slice(0, i.columnStart).reduce((a, l) => a + l, e.marginLeftMm ?? 0), s = n.grid.colWidthsMm.reduce((a, l) => a + l, 0);
95
- if (Math.abs(o - n.leftMm) > 0.01 || Math.abs(s - n.widthMm) > 0.01) throw new Error("Excel 多区域标记与真实横向位置不一致");
105
+ const a = o.widths.slice(0, i.columnStart).reduce((s, l) => s + l, e.marginLeftMm ?? 0), r = n.grid.colWidthsMm.reduce((s, l) => s + l, 0);
106
+ if (Math.abs(a - n.leftMm) > 0.01 || Math.abs(r - n.widthMm) > 0.01) throw new Error("Excel 多区域标记与真实横向位置不一致");
96
107
  }
97
- return r;
108
+ return o;
98
109
  }
99
- function _(e, t) {
100
- if (!A(e) || e.version !== "1.0" || typeof e.sheet != "string" || !e.sheet.trim() || typeof e.templateId != "string" || !e.templateId.trim()) throw new Error("Excel 多区域工作表标识无效");
101
- if (!Array.isArray(e.fullWidthsMm) || !e.fullWidthsMm.length || e.fullWidthsMm.length > 16384 || e.fullWidthsMm.some((r) => typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > 2e3)) throw new Error("Excel 多区域完整列宽无效");
110
+ function J(e, t) {
111
+ if (!R(e) || e.version !== "1.0" || typeof e.sheet != "string" || !e.sheet.trim() || typeof e.templateId != "string" || !e.templateId.trim()) throw new Error("Excel 多区域工作表标识无效");
112
+ if (!Array.isArray(e.fullWidthsMm) || !e.fullWidthsMm.length || e.fullWidthsMm.length > 16384 || e.fullWidthsMm.some((o) => typeof o != "number" || !Number.isFinite(o) || o <= 0 || o > 2e3)) throw new Error("Excel 多区域完整列宽无效");
102
113
  if (t !== void 0 && (typeof t != "string" || !t.trim())) throw new Error("Excel 多区域报表命名空间无效");
103
114
  return { key: JSON.stringify([t ?? e.templateId, e.sheet]), sheet: e.sheet, widths: e.fullWidthsMm };
104
115
  }
105
- function b(e) {
116
+ function y(e) {
106
117
  return Math.round(e * 1e6) / 1e6;
107
118
  }
108
- function H(e, t, r, n, i) {
109
- return e.components.filter((o) => n ? o.pageAnchor === "header" ? t === 0 : o.pageAnchor === "footer" ? t === r - 1 : o.table?.role !== "header" ? !0 : i.has(o.table.id) ? !1 : (i.add(o.table.id), !0) : !0);
119
+ function V(e, t, o, n, i) {
120
+ return e.components.filter((a) => n ? a.pageAnchor === "header" ? t === 0 : a.pageAnchor === "footer" ? t === o - 1 : a.table?.role !== "header" ? !0 : i.has(a.table.id) ? !1 : (i.add(a.table.id), !0) : !0);
110
121
  }
111
- function K(e, t, r, n) {
112
- const i = e.components.filter((s) => !t.includes(s) && s.table?.role === "header"), o = t.filter((s) => !s.pageAnchor).reduce((s, a) => Math.max(s, a.topMm + a.heightMm), e.marginTopMm ?? 0);
113
- return t.map((s) => {
114
- let a = s.topMm;
115
- return r && s.pageAnchor === "footer" && (a = o), a -= i.filter((l) => l.topMm + l.heightMm <= a + 1e-3).reduce((l, h) => l + h.heightMm, 0), { component: s, layout: k(s.grid, s.widthMm, s.heightMm), top: a, column: I(s, n).columnStart };
122
+ function q(e, t, o, n) {
123
+ const i = e.components.filter((r) => !t.includes(r) && r.table?.role === "header"), a = t.filter((r) => !r.pageAnchor).reduce((r, s) => Math.max(r, s.topMm + s.heightMm), e.marginTopMm ?? 0);
124
+ return t.map((r) => {
125
+ let s = r.topMm;
126
+ return o && r.pageAnchor === "footer" && (s = a), s -= i.filter((l) => l.topMm + l.heightMm <= s + 1e-3).reduce((l, c) => l + c.heightMm, 0), { component: r, layout: A(r.grid, r.widthMm, r.heightMm), top: s, column: T(r, n).columnStart };
116
127
  });
117
128
  }
118
- function X(e, t, r) {
129
+ function Q(e, t, o) {
119
130
  const n = t.length - 1;
120
- if (n * r.length > 1e6) throw new Error("Excel 多区域单页超过 100 万几何单元格,请减小预览分页高度或列数");
121
- const i = new Map(t.map((a, l) => [a, l])), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
122
- for (const a of e) for (const l of a.layout.cells) {
131
+ if (n * o.length > 1e6) throw new Error("Excel 多区域单页超过 100 万几何单元格,请减小预览分页高度或列数");
132
+ const i = new Map(t.map((s, l) => [s, l])), a = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
133
+ for (const s of e) for (const l of s.layout.cells) {
123
134
  if (!Object.keys(l.cell).length) continue;
124
- const h = i.get(b(a.top + l.yMm)), c = i.get(b(a.top + l.yMm + l.heightMm)), d = a.column + l.ci, f = d + (l.cell.colSpan ?? 1), g = `${h}:${d}`;
125
- for (let u = h; u < c; u++) for (let m = d; m < f; m++) {
126
- const p = `${u}:${m}`;
127
- if (s.has(p)) throw new Error("Excel 多区域实际单元格互相覆盖,已终止输出,未覆盖已有内容");
128
- s.set(p, g);
135
+ const c = i.get(y(s.top + l.yMm)), h = i.get(y(s.top + l.yMm + l.heightMm)), f = s.column + l.ci, d = f + (l.cell.colSpan ?? 1), u = `${c}:${f}`;
136
+ for (let g = c; g < h; g++) for (let m = f; m < d; m++) {
137
+ const M = `${g}:${m}`;
138
+ if (r.has(M)) throw new Error("Excel 多区域实际单元格互相覆盖,已终止输出,未覆盖已有内容");
139
+ r.set(M, u);
129
140
  }
130
- o.set(g, { ...l.cell, style: W(a.component.style, l.cell.style), rowSpan: c - h, colSpan: f - d });
141
+ a.set(u, { ...l.cell, style: w(s.component.style, l.cell.style), rowSpan: h - c, colSpan: d - f });
131
142
  }
132
- return Array.from({ length: n }, (a, l) => {
133
- const h = [];
134
- for (let c = 0; c < r.length; c++) {
135
- const d = `${l}:${c}`, f = o.get(d);
136
- f ? (h.push(f), c += (f.colSpan ?? 1) - 1) : s.has(d) || h.push(null);
143
+ return Array.from({ length: n }, (s, l) => {
144
+ const c = [];
145
+ for (let h = 0; h < o.length; h++) {
146
+ const f = `${l}:${h}`, d = a.get(f);
147
+ d ? (c.push(d), h += (d.colSpan ?? 1) - 1) : r.has(f) || c.push(null);
137
148
  }
138
- return h;
149
+ return c;
139
150
  });
140
151
  }
141
- function J(e, t) {
142
- const r = /* @__PURE__ */ new Set(), n = [];
152
+ function Y(e, t) {
153
+ const o = /* @__PURE__ */ new Set(), n = [];
143
154
  let i;
144
- for (const [o, { page: s }] of e.entries()) {
145
- const a = F(s);
146
- if (i && (a.key !== i.key || a.widths.length !== i.widths.length || a.widths.some((g, u) => Math.abs(g - i.widths[u]) > 1e-3))) throw new Error("Excel 多区域分页的工作表或列结构不一致");
147
- i ??= a;
148
- const l = H(s, o, e.length, t, r), h = K(s, l, t, a.widths);
149
- if (!h.length) continue;
150
- const c = [...new Set(h.flatMap((g) => [...g.layout.rows.map((u) => b(g.top + u.pos)), b(g.top + g.component.heightMm)]))].sort((g, u) => g - u), d = X(h, c, a.widths), f = c.slice(1).map((g, u) => g - c[u]);
151
- n.push({ kind: "rect", leftMm: 0, topMm: 0, widthMm: a.widths.reduce((g, u) => g + u, 0), heightMm: f.reduce((g, u) => g + u, 0), grid: { cells: d, colWidthsMm: a.widths, rowHeightsMm: f } });
155
+ for (const [a, { page: r }] of e.entries()) {
156
+ const s = W(r);
157
+ if (i && (s.key !== i.key || s.widths.length !== i.widths.length || s.widths.some((u, g) => Math.abs(u - i.widths[g]) > 1e-3))) throw new Error("Excel 多区域分页的工作表或列结构不一致");
158
+ i ??= s;
159
+ const l = V(r, a, e.length, t, o), c = q(r, l, t, s.widths);
160
+ if (!c.length) continue;
161
+ const h = [...new Set(c.flatMap((u) => [...u.layout.rows.map((g) => y(u.top + g.pos)), y(u.top + u.component.heightMm)]))].sort((u, g) => u - g), f = Q(c, h, s.widths), d = h.slice(1).map((u, g) => u - h[g]);
162
+ n.push({ kind: "rect", leftMm: 0, topMm: 0, widthMm: s.widths.reduce((u, g) => u + g, 0), heightMm: d.reduce((u, g) => u + g, 0), grid: { cells: f, colWidthsMm: s.widths, rowHeightsMm: d } });
152
163
  }
153
164
  return n;
154
165
  }
155
- const R = 72 / 25.4, U = 32767, V = 253;
156
- function E(e, t) {
166
+ const I = 72 / 25.4, Z = 32767, ee = 253;
167
+ function p(e, t) {
157
168
  if (typeof e != "string") return;
158
- if (e.length > U)
169
+ if (e.length > Z)
159
170
  throw new Error(`Excel 单元格 ${t} 最多支持 32767 个字符,无法无损导出;内容未裁剪`);
160
- let r = 0;
171
+ let o = 0;
161
172
  for (let n = 0; n < e.length; n++)
162
- if (e.charCodeAt(n) === 10 && ++r > V)
173
+ if (e.charCodeAt(n) === 10 && ++o > ee)
163
174
  throw new Error(`Excel 单元格 ${t} 最多支持 253 个换行,无法无损导出;内容未改写`);
164
175
  }
165
- function w(e) {
176
+ function x(e) {
166
177
  if (!e) return;
167
178
  const t = e.replace("#", "");
168
179
  return /^[0-9a-fA-F]{6}$/.test(t) ? `FF${t.toUpperCase()}` : void 0;
169
180
  }
170
- function T(e, t = {}) {
181
+ function P(e, t = {}) {
171
182
  e.font = {
172
183
  name: t.fontFamily,
173
184
  bold: t.bold === !0,
174
185
  italic: t.italic === !0,
175
186
  underline: t.underline === !0,
176
- size: N(t).fontSizePt,
177
- color: w(t.color) ? { argb: w(t.color) } : void 0
187
+ size: k(t).fontSizePt,
188
+ color: x(t.color) ? { argb: x(t.color) } : void 0
178
189
  };
179
190
  }
180
- const M = {
191
+ const b = {
181
192
  a3: { width: 297, height: 420, code: 8 },
182
193
  a4: { width: 210, height: 297, code: 9 },
183
194
  a5: { width: 148, height: 210, code: 11 }
184
195
  };
185
- function Z(e, t, r, n) {
186
- if (t && t !== "auto") return M[t].code;
187
- const i = Math.min(e.pageWidthMm, e.pageHeightMm), o = Math.max(e.pageWidthMm, e.pageHeightMm), s = Object.values(M).find((a) => Math.abs(i - a.width) <= 1 && Math.abs(o - a.height) <= 1);
188
- return s ? s.code : (n.push(`page ${r + 1}: 自定义纸张 ${e.pageWidthMm}×${e.pageHeightMm}mm 无对应 Excel 纸型,打印设置回退 A4;可显式配置 paperSize`), M.a4.code);
196
+ function te(e, t, o, n) {
197
+ if (t && t !== "auto") return b[t].code;
198
+ const i = Math.min(e.pageWidthMm, e.pageHeightMm), a = Math.max(e.pageWidthMm, e.pageHeightMm), r = Object.values(b).find((s) => Math.abs(i - s.width) <= 1 && Math.abs(a - s.height) <= 1);
199
+ return r ? r.code : (n.push(`page ${o + 1}: 自定义纸张 ${e.pageWidthMm}×${e.pageHeightMm}mm 无对应 Excel 纸型,打印设置回退 A4;可显式配置 paperSize`), b.a4.code);
189
200
  }
190
- function q(e, t, r, n) {
201
+ function ne(e, t, o, n) {
191
202
  const i = typeof t.text == "string" ? t.text : "";
192
- if (r !== "raw" || !Object.prototype.hasOwnProperty.call(t, "value")) {
193
- E(i, e.address), e.value = i;
203
+ if (o !== "raw" || !Object.prototype.hasOwnProperty.call(t, "value")) {
204
+ p(i, e.address), e.value = i;
194
205
  return;
195
206
  }
196
- const o = t.value;
197
- if (o === null || typeof o == "string" || typeof o == "boolean" || typeof o == "number" && Number.isFinite(o)) {
198
- E(o, e.address), e.value = o, t.numberFormat && (e.numFmt = t.numberFormat);
207
+ const a = t.value;
208
+ if (a === null || typeof a == "string" || typeof a == "boolean" || typeof a == "number" && Number.isFinite(a)) {
209
+ p(a, e.address), e.value = a, t.numberFormat && (e.numFmt = t.numberFormat);
199
210
  return;
200
211
  }
201
- E(i, e.address), e.value = i, n.push(`原始单元格值无效,已保留显示文本:${e.address}`);
212
+ p(i, e.address), e.value = i, n.push(`原始单元格值无效,已保留显示文本:${e.address}`);
202
213
  }
203
- function Q(e) {
204
- const t = F(e);
205
- return t ? { id: `xlsx-flow:${t.key}`, title: t.sheet, wide: !0, flow: !0 } : Y(e);
214
+ function ie(e) {
215
+ const t = W(e);
216
+ return t ? { id: `xlsx-flow:${t.key}`, title: t.sheet, wide: !0, flow: !0 } : re(e);
206
217
  }
207
- function Y(e) {
208
- const r = e.components.filter((n) => n.table !== void 0)[0]?.table;
209
- if (!(!r || typeof r.id != "string" || !r.id.trim() || !Array.isArray(r.columnKeys) || !r.columnKeys.length)) {
218
+ function re(e) {
219
+ const o = e.components.filter((n) => n.table !== void 0)[0]?.table;
220
+ if (!(!o || typeof o.id != "string" || !o.id.trim() || !Array.isArray(o.columnKeys) || !o.columnKeys.length)) {
210
221
  for (const n of e.components) {
211
222
  if (n.table) {
212
- if (!n.grid || n.table.id !== r.id) return;
223
+ if (!n.grid || n.table.id !== o.id) return;
213
224
  continue;
214
225
  }
215
- if (n.grid || n.kind !== "text" && !$(n) || n.richParagraphs?.length && !n.text && !n.lines?.length) return;
226
+ if (n.grid || n.kind !== "text" && !S(n)) return;
216
227
  }
217
- return { id: r.id, title: r.title, wide: r.layout === "wide" || e.layout === "wide" };
228
+ return { id: o.id, title: o.title, wide: o.layout === "wide" || e.layout === "wide" };
218
229
  }
219
230
  }
220
- function ee(e, t) {
221
- const r = /* @__PURE__ */ new Set();
231
+ function oe(e, t) {
232
+ const o = /* @__PURE__ */ new Set();
222
233
  for (const [n, i] of e.pages.entries())
223
234
  if (!t[n])
224
- for (const o of i.components)
225
- typeof o.table?.id == "string" && r.add(o.table.id);
226
- return r;
235
+ for (const a of i.components)
236
+ typeof a.table?.id == "string" && o.add(a.table.id);
237
+ return o;
227
238
  }
228
- function S(e) {
239
+ function v(e) {
229
240
  return e.layout === "wide" || e.components.some((t) => t.table?.layout === "wide");
230
241
  }
231
- function te(e, t, r) {
232
- const n = [], i = e.pages.map(Q), o = ee(e, i);
233
- for (const [s, a] of e.pages.entries()) {
234
- const l = i[s], h = l && !o.has(l.id), c = t === "pages" || !h ? void 0 : l;
235
- if (t === "continuous" && !c)
236
- throw new Error(`page ${s + 1}: continuous Excel 需要完整、单一的逻辑表来源;自由布局请使用 sheetMode: 'pages'`);
237
- const d = c !== void 0 && (t === "continuous" || c.wide);
238
- !d && t !== "pages" && S(a) && r.push(`page ${s + 1}: 混合或缺少逻辑表来源,已保留独立 Sheet,未猜测合并内容`);
239
- const f = n[n.length - 1];
240
- d && f?.continuous && f.tableId === c.id ? f.pages.push({ page: a, index: s }) : n.push({ pages: [{ page: a, index: s }], continuous: d, ...d ? { tableId: c.id, title: c.title } : {}, ...l?.flow ? { flow: !0, title: l.title } : {} });
242
+ function ae(e, t, o) {
243
+ const n = [], i = e.pages.map(ie), a = oe(e, i);
244
+ for (const [r, s] of e.pages.entries()) {
245
+ const l = i[r], c = l && !a.has(l.id), h = t === "pages" || !c ? void 0 : l;
246
+ if (t === "continuous" && !h)
247
+ throw new Error(`page ${r + 1}: continuous Excel 需要完整、单一的逻辑表来源;自由布局请使用 sheetMode: 'pages'`);
248
+ const f = h !== void 0 && (t === "continuous" || h.wide);
249
+ !f && t !== "pages" && v(s) && o.push(`page ${r + 1}: 混合或缺少逻辑表来源,已保留独立 Sheet,未猜测合并内容`);
250
+ const d = n[n.length - 1];
251
+ f && d?.continuous && d.tableId === h.id ? d.pages.push({ page: s, index: r }) : n.push({ pages: [{ page: s, index: r }], continuous: f, ...f ? { tableId: h.id, title: h.title } : {}, ...l?.flow ? { flow: !0, title: l.title } : {} });
241
252
  }
242
253
  return n;
243
254
  }
244
- function v(e, t, r) {
245
- return !e || e.length === t.length && e.every((n, i) => r(n, t[i]));
255
+ function C(e, t, o) {
256
+ return !e || e.length === t.length && e.every((n, i) => o(n, t[i]));
246
257
  }
247
- function ne(e, t, r, n) {
248
- const i = e.table, o = t.columns.map((l) => l.size), s = v(n.keys, i.columnKeys, (l, h) => l === h), a = v(n.widths, o, (l, h) => Math.abs(l - h) <= 1e-3);
249
- if (i.columnKeys.length !== o.length || !s || !a)
250
- throw new Error(`page ${r + 1}: 连续 Excel 逻辑表 ${i.id} 的列结构或列宽不一致`);
251
- if (n.keys ??= i.columnKeys, n.widths ??= o, i.role === "header") {
252
- if (i.rowIndex !== -1) throw new Error(`page ${r + 1}: 连续 Excel 表头 rowIndex 必须为 -1`);
258
+ function se(e, t, o, n) {
259
+ const i = e.table, a = t.columns.map((l) => l.size), r = C(n.keys, i.columnKeys, (l, c) => l === c), s = C(n.widths, a, (l, c) => Math.abs(l - c) <= 1e-3);
260
+ if (i.columnKeys.length !== a.length || !r || !s)
261
+ throw new Error(`page ${o + 1}: 连续 Excel 逻辑表 ${i.id} 的列结构或列宽不一致`);
262
+ if (n.keys ??= i.columnKeys, n.widths ??= a, i.role === "header") {
263
+ if (i.rowIndex !== -1) throw new Error(`page ${o + 1}: 连续 Excel 表头 rowIndex 必须为 -1`);
253
264
  n.headerSeen = !0;
254
265
  } else {
255
266
  if (!["body", "group-header", "subtotal", "grand-total"].includes(i.role) || i.rowIndex !== n.expectedRow)
256
- throw new Error(`page ${r + 1}: 连续 Excel 逻辑行来源不连续或重复(期望 ${n.expectedRow})`);
267
+ throw new Error(`page ${o + 1}: 连续 Excel 逻辑行来源不连续或重复(期望 ${n.expectedRow})`);
257
268
  n.expectedRow += t.rows.length;
258
269
  }
259
- if (t.cells.some((l) => l.cell.children?.length))
260
- throw new Error(`page ${r + 1}: 连续 Excel 暂不支持嵌套组件;请使用独立 Sheet 导出并检查告警`);
261
270
  }
262
- function re(e, t) {
263
- const r = { expectedRow: 0, headerSeen: !1 };
271
+ function le(e, t) {
272
+ const o = { expectedRow: 0, headerSeen: !1 };
264
273
  for (const { page: n, index: i } of e.pages)
265
- for (const o of n.components) {
266
- const s = t.get(o);
267
- o.table && s && ne(o, s, i, r);
274
+ for (const a of n.components) {
275
+ const r = t.get(a);
276
+ a.table && r && se(a, r, i, o);
268
277
  }
269
- if (!r.headerSeen) throw new Error("连续 Excel 逻辑表缺少明确表头来源");
278
+ if (!o.headerSeen) throw new Error("连续 Excel 逻辑表缺少明确表头来源");
270
279
  }
271
- function ie(e, t, r) {
280
+ function ce(e, t, o) {
272
281
  let n = (e?.replace(/[\\/*?:[\]]/g, " ").replace(/\s+/g, " ").trim() || `Sheet${t + 1}`).slice(0, 31).replace(/^'+|'+$/g, "").trim() || `Sheet${t + 1}`;
273
282
  n.toLowerCase() === "history" && (n += " 报表");
274
- let i = n, o = 1;
275
- for (; r.has(i.toLowerCase()); ) {
276
- const s = ` (${++o})`;
277
- i = n.slice(0, 31 - s.length) + s;
283
+ let i = n, a = 1;
284
+ for (; o.has(i.toLowerCase()); ) {
285
+ const r = ` (${++a})`;
286
+ i = n.slice(0, 31 - r.length) + r;
278
287
  }
279
- return r.add(i.toLowerCase()), i;
288
+ return o.add(i.toLowerCase()), i;
280
289
  }
281
- function oe(e) {
290
+ function he(e) {
282
291
  const t = /* @__PURE__ */ new Set();
283
- function r(n, i, o, s) {
284
- return n <= i ? n : (t.has(o) || (e.push(s), t.add(o)), i);
292
+ function o(n, i, a, r) {
293
+ return n <= i ? n : (t.has(a) || (e.push(r), t.add(a)), i);
285
294
  }
286
295
  return {
287
- column: (n) => r(n, 255, "column", "Excel 单列宽度上限为 255 字符,超宽列已收敛至 255;单元格值完整保留,显示范围可能受限"),
288
- row: (n) => r(n, 409, "row", "Excel 行高上限为 409pt,超高行已收敛至 409pt;单元格值完整保留,显示范围可能受限")
296
+ column: (n) => o(n, 255, "column", "Excel 单列宽度上限为 255 字符,超宽列已收敛至 255;单元格值完整保留,显示范围可能受限"),
297
+ row: (n) => o(n, 409, "row", "Excel 行高上限为 409pt,超高行已收敛至 409pt;单元格值完整保留,显示范围可能受限")
289
298
  };
290
299
  }
291
- function se(e) {
292
- const t = e.flow ? J(e.pages, e.continuous).map((o) => ({ comp: o, pageIndex: e.pages[0].index })) : e.pages.flatMap(({ page: o, index: s }, a) => o.components.filter((l) => !e.continuous || (l.pageAnchor !== "header" || a === 0) && (l.pageAnchor !== "footer" || a === e.pages.length - 1)).map((l) => ({ comp: l, pageIndex: s }))), r = /* @__PURE__ */ new Map();
293
- let n = 1, i = 0;
294
- for (const { comp: o } of t)
295
- if (o.grid) {
296
- const s = k(o.grid, o.widthMm, o.heightMm);
297
- r.set(o, s), n = Math.max(n, s.columns.length);
298
- } else o.kind === "text" && (i = Math.max(i, o.widthMm));
299
- if (n > 16384) throw new Error("Excel 最多支持 16384 列,无法无损导出此报表");
300
- return { components: t, grids: r, columnCount: n, textWidthMm: i };
301
- }
302
- function ae(e, t, r) {
303
- const { page: n, index: i } = e.pages[0], o = t !== void 0 && t !== "auto";
304
- return (e.continuous || S(n)) && !o ? {} : { pageSetup: {
305
- paperSize: Z(n, t, i, r),
300
+ async function de(e, t) {
301
+ const o = e.flow ? Y(e.pages, e.continuous).map((r) => ({ comp: r, pageIndex: e.pages[0].index })) : e.pages.flatMap(({ page: r, index: s }, l) => r.components.filter((c) => !e.continuous || (c.pageAnchor !== "header" || l === 0) && (c.pageAnchor !== "footer" || l === e.pages.length - 1)).map((c) => ({ comp: c, pageIndex: s }))), n = /* @__PURE__ */ new Map();
302
+ let i = 1, a = 0;
303
+ for (const { comp: r } of o)
304
+ if (r.grid) {
305
+ const s = A(r.grid, r.widthMm, r.heightMm);
306
+ n.set(r, s), i = Math.max(i, s.columns.length);
307
+ const l = t(s.cells.length);
308
+ l && await l;
309
+ } else r.kind === "text" && (a = Math.max(a, r.widthMm));
310
+ if (i > 16384) throw new Error("Excel 最多支持 16384 列,无法无损导出此报表");
311
+ return { components: o, grids: n, columnCount: i, textWidthMm: a };
312
+ }
313
+ function fe(e, t, o) {
314
+ const { page: n, index: i } = e.pages[0], a = t !== void 0 && t !== "auto";
315
+ return (e.continuous || v(n)) && !a ? {} : { pageSetup: {
316
+ paperSize: te(n, t, i, o),
306
317
  orientation: n.pageWidthMm > n.pageHeightMm ? "landscape" : "portrait",
307
318
  fitToPage: !0,
308
319
  ...e.continuous ? { fitToWidth: 1, fitToHeight: 0 } : {}
309
320
  } };
310
321
  }
311
- function le(e) {
312
- const t = w(e.borderColor ?? e.lineColor), r = { style: "thin", ...t ? { color: { argb: t } } : {} };
322
+ function ue(e) {
323
+ const t = x(e.borderColor ?? e.lineColor), o = { style: "thin", ...t ? { color: { argb: t } } : {} };
313
324
  return {
314
- ...e.borderTop !== !1 ? { top: r } : {},
315
- ...e.borderLeft !== !1 ? { left: r } : {},
316
- ...e.borderBottom !== !1 ? { bottom: r } : {},
317
- ...e.borderRight !== !1 ? { right: r } : {}
325
+ ...e.borderTop !== !1 ? { top: o } : {},
326
+ ...e.borderLeft !== !1 ? { left: o } : {},
327
+ ...e.borderBottom !== !1 ? { bottom: o } : {},
328
+ ...e.borderRight !== !1 ? { right: o } : {}
318
329
  };
319
330
  }
320
- function ce(e, t) {
331
+ function ge(e, t) {
321
332
  e.alignment = { horizontal: t.align ?? "left", vertical: t.verticalAlign ?? "middle", wrapText: !0 };
322
- const r = w(t.backgroundColor);
323
- r && (e.fill = { type: "pattern", pattern: "solid", fgColor: { argb: r } }), e.border = le(t), T(e, t);
333
+ const o = x(t.backgroundColor);
334
+ o && (e.fill = { type: "pattern", pattern: "solid", fgColor: { argb: o } }), e.border = ue(t), P(e, t);
324
335
  }
325
- function he(e, t) {
326
- for (const [r, n] of t.columns.entries()) {
327
- const i = e.sheet.getColumn(r + 1), o = e.limits.column(C(n.size));
328
- (i.width == null || i.width < o) && (i.width = o);
336
+ function me(e, t) {
337
+ for (const [o, n] of t.columns.entries()) {
338
+ const i = e.sheet.getColumn(o + 1), a = e.limits.column($(n.size));
339
+ (i.width == null || i.width < a) && (i.width = a);
329
340
  }
330
341
  }
331
- function de(e, t, r) {
342
+ function we(e, t, o) {
332
343
  for (const [n, i] of t.rows.entries()) {
333
- const o = e.sheet.getRow(r + n), s = e.limits.row(i.size * R);
334
- (o.height == null || o.height < s) && (o.height = s);
344
+ const a = e.sheet.getRow(o + n), r = e.limits.row(i.size * I);
345
+ (a.height == null || a.height < r) && (a.height = r);
335
346
  }
336
347
  }
337
- function fe(e, t, r, n) {
338
- const i = Math.max(1, Math.min(t.cell.colSpan ?? 1, r.columns.length - t.ci)), o = Math.max(1, Math.min(t.cell.rowSpan ?? 1, r.rows.length - t.ri));
339
- (i > 1 || o > 1) && e.mergeCells(n + t.ri, t.ci + 1, n + t.ri + o - 1, t.ci + i);
340
- }
341
- function ge(e, t, r, n, i) {
342
- if (n + r.rows.length - 1 > 1048576) throw new Error("Excel 最多支持 1048576 行,无法无损导出此报表");
343
- de(e, r, n);
344
- for (const o of r.cells) {
345
- const s = e.sheet.getCell(n + o.ri, o.ci + 1);
346
- q(s, o.cell, e.valueMode, e.warnings), o.cell.children?.length && e.warnings.push(`page ${i + 1} ${t.nid ?? t.kind} cell ${o.ri + 1}:${o.ci + 1}: 嵌套组件内容暂不支持 xlsx 导出,已跳过`), ce(s, W(t.style, o.cell.style)), o.cell.indentMm && (s.alignment = { ...s.alignment, indent: Math.min(250, Math.max(1, Math.round(o.cell.indentMm / 2.5))) }), fe(e.sheet, o, r, n);
348
+ function pe(e, t, o, n) {
349
+ const i = Math.max(1, Math.min(t.cell.colSpan ?? 1, o.columns.length - t.ci)), a = Math.max(1, Math.min(t.cell.rowSpan ?? 1, o.rows.length - t.ri));
350
+ (i > 1 || a > 1) && e.mergeCells(n + t.ri, t.ci + 1, n + t.ri + a - 1, t.ci + i);
351
+ }
352
+ async function xe(e, t, o, n) {
353
+ if (n + o.rows.length - 1 > 1048576) throw new Error("Excel 最多支持 1048576 行,无法无损导出此报表");
354
+ we(e, o, n);
355
+ for (const i of o.cells) {
356
+ const a = e.sheet.getCell(n + i.ri, i.ci + 1);
357
+ ne(a, i.cell, e.valueMode, e.warnings);
358
+ const r = _(i.cell, t.style);
359
+ r && (p(r.richText.map((c) => c.text).join(""), a.address), a.value = r);
360
+ const s = t.grid?.paddingMm ?? 0.5;
361
+ for (const c of i.cell.children ?? [])
362
+ S(c) && !c.grid && e.images.write(e.sheet, c, n + i.ri, { leftMm: i.xMm + s + (i.cell.indentMm ?? 0) + c.leftMm, offsetMm: s + c.topMm });
363
+ ge(a, w(t.style, i.cell.style)), i.cell.indentMm && (a.alignment = { ...a.alignment, indent: Math.min(250, Math.max(1, Math.round(i.cell.indentMm / 2.5))) }), pe(e.sheet, i, o, n);
364
+ const l = e.schedule();
365
+ l && await l;
347
366
  }
348
- return n + r.rows.length;
349
- }
350
- function ue(e, t, r, n, i) {
351
- const o = Array.isArray(t.lines) && t.lines.length > 0 ? t.lines.join(`
352
- `) : t.text ?? "";
353
- if (t.richParagraphs?.length) {
354
- const h = o.length === 0 ? "富文本内容暂不支持 xlsx 导出,已跳过" : "富文本按已有文本回退导出,内联样式未保留";
355
- e.warnings.push(`page ${i + 1} ${t.nid ?? t.kind}: ${h}`);
356
- }
357
- const s = e.sheet.getRow(r), a = s.getCell(1);
358
- E(o, a.address), a.value = o, a.alignment = { horizontal: t.style?.align ?? "left", vertical: t.style?.verticalAlign ?? "middle", wrapText: !0 };
359
- const l = w(t.style?.backgroundColor);
360
- return l && (a.fill = { type: "pattern", pattern: "solid", fgColor: { argb: l } }), T(a, t.style), n > 1 && e.sheet.mergeCells(r, 1, r, n), s.height = e.limits.row(t.heightMm * R), r + 1;
367
+ return n + o.rows.length;
368
+ }
369
+ function Me(e, t, o, n) {
370
+ const i = Array.isArray(t.lines) && t.lines.length > 0 ? t.lines.join(`
371
+ `) : t.text ?? "", a = e.sheet.getRow(o), r = a.getCell(1);
372
+ t.richParagraphs?.length || p(i, r.address), r.value = t.richParagraphs?.length ? F(t.richParagraphs, t.style) : i, typeof r.value == "object" && r.value && "richText" in r.value && p(r.value.richText.map((l) => l.text).join(""), r.address), r.alignment = { horizontal: t.style?.align ?? "left", vertical: t.style?.verticalAlign ?? "middle", wrapText: !0 };
373
+ const s = x(t.style?.backgroundColor);
374
+ return s && (r.fill = { type: "pattern", pattern: "solid", fgColor: { argb: s } }), P(r, t.style), n > 1 && e.sheet.mergeCells(o, 1, o, n), a.height = e.limits.row(t.heightMm * I), o + 1;
361
375
  }
362
- function me(e, t, r) {
363
- const n = t + r - 1;
376
+ function Ee(e, t, o) {
377
+ const n = t + o - 1;
364
378
  e.views = [{ state: "frozen", ySplit: n, xSplit: 0 }], e.pageSetup.printTitlesRow = `1:${n}`;
365
379
  }
366
- function we(e, t, r, n) {
367
- !t.grids.size && t.textWidthMm > 0 && (e.sheet.getColumn(1).width = e.limits.column(C(t.textWidthMm)));
368
- for (const s of t.grids.values()) he(e, s);
369
- let i = 1, o = !1;
370
- for (const { comp: s, pageIndex: a } of t.components) {
371
- const l = r && s.table?.role === "header";
372
- if (l && o) continue;
380
+ async function be(e, t, o, n) {
381
+ !t.grids.size && t.textWidthMm > 0 && (e.sheet.getColumn(1).width = e.limits.column($(t.textWidthMm)));
382
+ for (const r of t.grids.values()) {
383
+ me(e, r);
384
+ const s = e.schedule(r.columns.length);
385
+ s && await s;
386
+ }
387
+ let i = 1, a = !1;
388
+ for (const { comp: r, pageIndex: s } of t.components) {
389
+ const l = o && r.table?.role === "header";
390
+ if (l && a) continue;
373
391
  if (i > 1048576) throw new Error("Excel 最多支持 1048576 行,无法无损导出此报表");
374
- const h = t.grids.get(s);
375
- h ? (l && (me(e.sheet, i, h.rows.length), o = !0), i = ge(e, s, h, i, a)) : s.kind === "text" ? i = ue(e, s, i, t.columnCount, a) : $(s) ? i = n.write(e.sheet, s, i) : e.warnings.push(`page ${a + 1} ${s.nid ?? s.kind}: 组件类型 ${s.kind} 暂不支持 xlsx 导出,已跳过`);
392
+ const c = t.grids.get(r);
393
+ if (c)
394
+ l && (Ee(e.sheet, i, c.rows.length), a = !0), i = await xe(e, r, c, i);
395
+ else if (r.kind === "text")
396
+ i = Me(e, r, i, t.columnCount);
397
+ else if (S(r)) {
398
+ const h = j(r, o), f = n.write(e.sheet, r, h?.row ?? i, h);
399
+ h || (i = f);
400
+ } else
401
+ e.warnings.push(`page ${s + 1} ${r.nid ?? r.kind}: 组件类型 ${r.kind} 暂不支持 xlsx 导出,已跳过`);
376
402
  }
377
403
  }
378
- function pe(e) {
404
+ function ye(e) {
379
405
  if (e.valueMode !== void 0 && e.valueMode !== "text" && e.valueMode !== "raw")
380
406
  throw new Error("xlsx valueMode 必须是 text 或 raw");
381
- if (e.paperSize !== void 0 && e.paperSize !== "auto" && !Object.prototype.hasOwnProperty.call(M, e.paperSize))
407
+ if (e.paperSize !== void 0 && e.paperSize !== "auto" && !Object.prototype.hasOwnProperty.call(b, e.paperSize))
382
408
  throw new Error("xlsx paperSize 必须是 auto、a3、a4 或 a5");
383
409
  if (e.sheetMode !== void 0 && !["auto", "pages", "continuous"].includes(e.sheetMode))
384
410
  throw new Error("xlsx sheetMode 必须是 auto、pages 或 continuous");
385
411
  }
386
- async function ve(e, t = {}) {
387
- pe(t), x(t.signal);
388
- const r = G(e, "xlsx", t), n = new B.Workbook(), i = [], o = D(n, t, i), s = oe(i), a = te(e, t.sheetMode, i), l = /* @__PURE__ */ new Set();
389
- for (const [c, d] of a.entries()) {
390
- const f = se(d);
391
- d.continuous && !d.flow && re(d, f.grids);
392
- const g = d.pages[0].page, u = t.sheetName?.(c) ?? ie(d.title, c, l);
393
- l.add(u.toLowerCase());
394
- const m = n.addWorksheet(u, ae(d, t.paperSize, i)), p = t.valueMode ?? (S(g) || d.continuous || d.flow ? "raw" : "text");
395
- x(t.signal), we({ sheet: m, warnings: i, limits: s, valueMode: p }, f, d.continuous, o), await z(t, c + 1, a.length);
412
+ async function Re(e, t = {}) {
413
+ ye(t), E(t.signal);
414
+ const o = H(e, "xlsx", t), n = new L.Workbook(), i = [], a = X(n, t, i), r = he(i), s = ae(e, t.sheetMode, i), l = /* @__PURE__ */ new Set(), c = N(t);
415
+ for (const [f, d] of s.entries()) {
416
+ const u = await de(d, c);
417
+ d.continuous && !d.flow && le(d, u.grids);
418
+ const g = d.pages[0].page, m = t.sheetName?.(f) ?? ce(d.title, f, l);
419
+ l.add(m.toLowerCase());
420
+ const M = n.addWorksheet(m, fe(d, t.paperSize, i)), z = t.valueMode ?? (v(g) || d.continuous || d.flow ? "raw" : "text");
421
+ E(t.signal), await be({ sheet: M, warnings: i, limits: r, valueMode: z, schedule: c, images: a }, u, d.continuous, a), await B(t, f + 1, s.length);
396
422
  }
397
- x(t.signal);
423
+ E(t.signal);
398
424
  const h = await n.xlsx.writeBuffer();
399
- return x(t.signal), { workbook: n, buffer: h, warnings: i, diagnostics: r };
425
+ return E(t.signal), { workbook: n, buffer: h, warnings: i, diagnostics: o };
400
426
  }
401
427
  export {
402
- Fe as bindExcelTemplate,
403
- Re as createExcelBindingDocument,
404
- Te as createExcelBindingSession,
405
- ze as createExcelRegionBindingDocument,
406
- Pe as createExcelRegionBindingSession,
407
- Be as excelBindingCellRange,
408
- Ne as excelBindingRowRange,
409
- Ge as getExcelSheetWindow,
410
- ke as importExcelTemplate,
411
- We as inspectExcelWorkbook,
412
- Ae as openExcelWorkbook,
413
- Le as parseExcelBindingSession,
414
- Oe as parseExcelRegionBindingSession,
415
- ve as renderPlanToXlsx,
416
- je as validateExcelBindingFields,
417
- De as validateExcelBindingRecipe,
418
- _e as validateExcelBindingRegions,
419
- He as validateExcelRegionBindings,
420
- Ke as validateExcelRegionFields,
421
- Xe as validateExcelRegionGeometry
428
+ Ne as bindExcelTemplate,
429
+ Oe as createExcelBindingDocument,
430
+ Le as createExcelBindingSession,
431
+ je as createExcelRegionBindingDocument,
432
+ Ge as createExcelRegionBindingSession,
433
+ He as excelBindingCellRange,
434
+ _e as excelBindingRowRange,
435
+ De as getExcelSheetWindow,
436
+ Ie as importExcelTemplate,
437
+ Pe as inspectExcelWorkbook,
438
+ ze as openExcelWorkbook,
439
+ Ue as parseExcelBindingSession,
440
+ Ke as parseExcelRegionBindingSession,
441
+ Re as renderPlanToXlsx,
442
+ Xe as validateExcelBindingFields,
443
+ Je as validateExcelBindingRecipe,
444
+ Ve as validateExcelBindingRegions,
445
+ qe as validateExcelRegionBindings,
446
+ Qe as validateExcelRegionFields,
447
+ Ye as validateExcelRegionGeometry
422
448
  };