@agile-team/mach-report 2.23.1 → 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.
- package/README.md +10 -4
- package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
- package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
- package/dist/ParamEditor-DEP38mBp.cjs +1 -0
- package/dist/ParamEditor-Z-3yodp5.js +750 -0
- package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
- package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
- package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-BZp23_hA.js} +68 -68
- package/dist/ReportLabelStudio-Bz-xAayk.cjs +1 -0
- package/dist/ReportParamPanel-B27IGJjk.cjs +1 -0
- package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DGXzBzl2.js} +328 -298
- package/dist/ReportPreview-CilFAS9U.js +7170 -0
- package/dist/ReportPreview-dOOzPts2.cjs +6 -0
- package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DpSGgvFa.js} +28 -28
- package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
- package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-BONALh1Q.js} +846 -835
- package/dist/RuleEditor-bLXiRcxL.cjs +1 -0
- package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-JGBKeF3e.js} +10 -10
- package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
- package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
- package/dist/TemplateReviewPanel-5RWFUUEf.cjs +1 -0
- package/dist/TemplateReviewPanel-DhL7Hapy.js +602 -0
- package/dist/analytics.d.cts +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/artifact-integrity.json +98 -98
- package/dist/assets-BYdpkTIt.cjs +1 -0
- package/dist/assets-C4MIvzQ4.js +137 -0
- package/dist/auto-D-eDZa_V.cjs +1 -0
- package/dist/{auto-BB99S802.js → auto-umW_ozwr.js} +10 -10
- package/dist/capabilities-CN_kSVjO.js +121 -0
- package/dist/capabilities-D4nfhcvB.cjs +1 -0
- package/dist/cell-style-B6Qffrx8.js +37 -0
- package/dist/cell-style-y_uh1pZp.cjs +1 -0
- package/dist/{data-bar-IkI6VvMQ.js → data-bar-Bfh54sT4.js} +1 -1
- package/dist/data-bar-DzceAVeR.cjs +1 -0
- package/dist/designer-CCyj5WYS.js +7595 -0
- package/dist/designer-Cj7fn4Hh.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +143 -10
- package/dist/designer.d.ts +143 -10
- package/dist/designer.js +5 -5
- package/dist/diagnostic-collector-gB07PHy2.js +392 -0
- package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
- package/dist/dom-CXWMmwh-.cjs +1 -0
- package/dist/{dom-JWrchIre.js → dom-DxdCMLzs.js} +185 -185
- package/dist/{encoding-CEd-dq9A.js → encoding-CEkBtlUP.js} +2 -2
- package/dist/{encoding-7lquyj0w.cjs → encoding-Cipno7dq.cjs} +1 -1
- package/dist/{font-loader-CNWXomuV.js → font-loader-D4NLIKJL.js} +1 -1
- package/dist/{font-loader-D8pI87fL.cjs → font-loader-p_SyTvqt.cjs} +1 -1
- package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-DkZEZvcI.js} +1 -1
- package/dist/grid-strokes-RFMR91jn.cjs +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +137 -136
- package/dist/json-snapshot-DQdkA_At.cjs +2 -0
- package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-x0JpllWL.js} +919 -791
- package/dist/{pdf-DpMkW72B.cjs → pdf-C060D5UY.cjs} +31 -31
- package/dist/{pdf-CJToa81Z.js → pdf-DU8HelKd.js} +2499 -2492
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +18 -0
- package/dist/pdf.d.ts +18 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BWTp-X7b.cjs → plugin-B_k23hut.cjs} +1 -1
- package/dist/{plugin-_BkUVc2z.js → plugin-CttO46hc.js} +1 -1
- package/dist/{prefill-CWGdnqQd.js → prefill-BkF9Fw_p.js} +13 -13
- package/dist/prefill-BvkuwooY.cjs +1 -0
- package/dist/prepared-CSywIEAZ.cjs +1 -0
- package/dist/prepared-Cyuh61fJ.js +128 -0
- package/dist/protocol-BwbJNVZl.cjs +1 -0
- package/dist/protocol-DwtxjXzO.js +96 -0
- package/dist/record-bindings-B7djSjNs.cjs +1 -0
- package/dist/{record-bindings-DatJZv_e.js → record-bindings-Cv7lFiof.js} +47 -47
- package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
- package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-D8I4QWRh.js} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
- package/dist/rich-text-layout-yJGuThtC.cjs +3 -0
- package/dist/runtime-BE30icyB.js +227 -0
- package/dist/runtime-DRSuy_SQ.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +55 -7
- package/dist/server/node.d.ts +55 -7
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2742 -2417
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +51 -16
- package/dist/server.d.ts +51 -16
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog-C0riwrx7.cjs} +1 -1
- package/dist/{template-catalog-CRuZL3pi.js → template-catalog-D_gl93va.js} +3 -3
- package/dist/template-fragments-CgzPdFKB.cjs +1 -0
- package/dist/{template-fragments-CPpGpQoz.js → template-fragments-D94ZZmPc.js} +2 -2
- package/dist/template-registry-BMScUmM4.cjs +1 -0
- package/dist/{template-registry-O0hNIOfB.js → template-registry-DZOtRY7t.js} +19 -19
- package/dist/{textwrap-D4ZksyMK.js → textwrap-BywMBMXM.js} +1 -1
- package/dist/textwrap-LhJkHWb1.cjs +4 -0
- package/dist/vue/async.d.cts +101 -22
- package/dist/vue/async.d.ts +101 -22
- package/dist/vue/index.d.cts +133 -34
- package/dist/vue/index.d.ts +133 -34
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +192 -162
- package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
- package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-SzfILBJJ.js} +106 -107
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +55 -7
- package/dist/worker.d.ts +55 -7
- package/dist/worker.js +4 -4
- package/dist/xlsx/node.d.cts +30 -1
- package/dist/xlsx/node.d.ts +30 -1
- package/dist/xlsx-node.cjs +42 -42
- package/dist/xlsx-node.js +3908 -3889
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +20 -3
- package/dist/xlsx.d.ts +20 -3
- package/dist/xlsx.js +302 -295
- package/package.json +1 -1
- package/dist/ParamEditor-BGjovFUe.js +0 -737
- package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
- package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
- package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
- package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
- package/dist/ReportPreview-QLONCyci.js +0 -6257
- package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
- package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
- package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
- package/dist/assets-D2gHc4Mz.cjs +0 -1
- package/dist/assets-T_gDeFaz.js +0 -132
- package/dist/auto-BrPWo7Xm.cjs +0 -1
- package/dist/capabilities-DiBj4Qgl.cjs +0 -1
- package/dist/capabilities-pg7j7VLT.js +0 -106
- package/dist/data-bar-CeZuFmYl.cjs +0 -1
- package/dist/designer-BZoVWTgl.js +0 -7172
- package/dist/designer-zS2uKJmY.cjs +0 -2
- package/dist/dom-ChE5D-L-.cjs +0 -1
- package/dist/grid-strokes-Be24LGuV.cjs +0 -1
- package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
- package/dist/prefill-PaAy6wLk.cjs +0 -1
- package/dist/prepared-CJy_qk7d.js +0 -94
- package/dist/prepared-D0yCSxSO.cjs +0 -1
- package/dist/progress-BXzlVbIp.js +0 -29
- package/dist/progress-ByiOxUD3.js +0 -250
- package/dist/progress-DJBd9Rb9.cjs +0 -1
- package/dist/progress-WomPRP3B.cjs +0 -1
- package/dist/protocol-BG16rz6D.js +0 -90
- package/dist/protocol-wzhl1Fim.cjs +0 -1
- package/dist/record-bindings-MBxbeBsi.cjs +0 -1
- package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
- package/dist/runtime-DYMOS_gz.cjs +0 -1
- package/dist/runtime-PiCax9zQ.js +0 -171
- package/dist/template-fragments-GVjpew_q.cjs +0 -1
- package/dist/template-registry-DI59PXVK.cjs +0 -1
- package/dist/textwrap-DEHqAjKZ.cjs +0 -4
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.25.0",
|
|
3
3
|
"algorithm": "sha256",
|
|
4
4
|
"files": {
|
|
5
|
-
"ExcelBindingWizard-
|
|
6
|
-
"ExcelBindingWizard-
|
|
7
|
-
"ParamEditor-
|
|
8
|
-
"ParamEditor-
|
|
9
|
-
"ReportBatchPanel-
|
|
10
|
-
"ReportBatchPanel-
|
|
11
|
-
"ReportLabelStudio-
|
|
12
|
-
"ReportLabelStudio-
|
|
13
|
-
"ReportParamPanel-
|
|
14
|
-
"ReportParamPanel-
|
|
15
|
-
"ReportPreview-
|
|
16
|
-
"ReportPreview-
|
|
17
|
-
"ReportTemplateLibrary-
|
|
18
|
-
"ReportTemplateLibrary-
|
|
19
|
-
"RuleEditor-
|
|
20
|
-
"RuleEditor-
|
|
21
|
-
"TemplateOutlinePanel-
|
|
22
|
-
"TemplateOutlinePanel-
|
|
23
|
-
"TemplateReusePanel-
|
|
24
|
-
"TemplateReusePanel-
|
|
25
|
-
"TemplateReviewPanel-
|
|
26
|
-
"TemplateReviewPanel-
|
|
5
|
+
"ExcelBindingWizard-BgJG-T6k.cjs": "2c679efb35beeab1b816f67f6f109e28b13d9e12d080280e0356311656aa2869",
|
|
6
|
+
"ExcelBindingWizard-NQ_v396s.js": "50d95f203471a1c54d612bb627c21c0a0eff6519db773f1c7e371d4bfda45521",
|
|
7
|
+
"ParamEditor-DEP38mBp.cjs": "69f6d3a80fedaf054bf2116fd6fddfaa9409e76a6986bf989de7bc689603d1f9",
|
|
8
|
+
"ParamEditor-Z-3yodp5.js": "191da382806689f9b154e923cdef6f0079e64f60b9b8529560c463a24a648560",
|
|
9
|
+
"ReportBatchPanel-D33LjMrA.cjs": "8f827d95bb21c365f186eda3cd1e7dd519fea1450c0ebfca7d70c3dd911b19d4",
|
|
10
|
+
"ReportBatchPanel-DG8FV-5X.js": "1e0c028037a04ededd465dc11c11d8cd270e692a09d8a2e9a21cf1312f95e6dc",
|
|
11
|
+
"ReportLabelStudio-BZp23_hA.js": "4fc2c6d601c34f47c5da3079289aa5ec5eb5e52bc2d31f31c9712667ad4361c6",
|
|
12
|
+
"ReportLabelStudio-Bz-xAayk.cjs": "983b42dacbac2800a00e50f67aa507e55af62510b4c5d5b80a74d34085c716e0",
|
|
13
|
+
"ReportParamPanel-B27IGJjk.cjs": "5267b07a6cd23d2af0460b99c599a7fed251340cc94006fc5b4f97ede6c36aa3",
|
|
14
|
+
"ReportParamPanel-DGXzBzl2.js": "b782800c4b96f50d57534ffa3f5ae50f7b99f58be9b9136dcb9ddf8ade8bd772",
|
|
15
|
+
"ReportPreview-CilFAS9U.js": "36d747ae51b1f667d81852a190ce0ca3eec7dad3481f99bba53e8f66e302ab1b",
|
|
16
|
+
"ReportPreview-dOOzPts2.cjs": "597799a3b4d10feca3749971d3b3012df93fd0e82bd8a228624b19408a0e1759",
|
|
17
|
+
"ReportTemplateLibrary-DpSGgvFa.js": "672795fd797bab0a309dc6ab040a045f0d6d4358833d5c5c560d0c2021a99fa7",
|
|
18
|
+
"ReportTemplateLibrary-uG1gENaW.cjs": "1a246aeeb4facc99d3b3d48cf0e505033cdc6ae8054fbe511249cd0311813882",
|
|
19
|
+
"RuleEditor-BONALh1Q.js": "a847c40dd385d71c98cd4c4ca58d801fb4804f40784c21490dc179421abb2292",
|
|
20
|
+
"RuleEditor-bLXiRcxL.cjs": "a6d15bd0441753e6bb19db97d9ade6a09571973f3b2df4e5a98e6d56698baf9d",
|
|
21
|
+
"TemplateOutlinePanel-C3nfHuaR.cjs": "0f328ed11fd1e16a2613b6cb5e5cddeb2100a17fcd2cd740c1ceaf209f83c8c6",
|
|
22
|
+
"TemplateOutlinePanel-JGBKeF3e.js": "8f098b4011f5bbc22738bed0a008bce8cd498c894868290b66776dcd5706acac",
|
|
23
|
+
"TemplateReusePanel-BKhgp6kg.cjs": "6c22bbe46304456a9fd5947b3a04d34ec464a3cd248a13f6509288b91a244a8e",
|
|
24
|
+
"TemplateReusePanel-DXQUO6nQ.js": "0f0d5d89d8a4edb6a7a5e8e6d0e3a12da9ec750bf869c8ff83cf5a24f1a1b3f3",
|
|
25
|
+
"TemplateReviewPanel-5RWFUUEf.cjs": "a576b70e7ae849563bb678a44a725ad5ec592b1dbe0480411b2e97c247a84584",
|
|
26
|
+
"TemplateReviewPanel-DhL7Hapy.js": "588316e585781dcea9c058a723e28fb3820ea9795ce82666e9a5633e52d1dc00",
|
|
27
27
|
"_commonjsHelpers-DKOUU3wS.cjs": "9fb4a8db4e3ab1aba23d44b6965615369004c05bfb5a323027ab5191080340d4",
|
|
28
28
|
"_commonjsHelpers-DaMA6jEr.js": "6d52e5d0f36d01714a54c94e082101e88ddce58c7189eeca8f2abc012a7cea12",
|
|
29
29
|
"_plugin-vue_export-helper-8SL1F89S.js": "233ffd200e30e23b8dad3eaee11bc8ef37724bf79606de66035c07f92dc5bd3d",
|
|
30
30
|
"_plugin-vue_export-helper-BLmdZLlg.cjs": "f7b5ccf7b4a1d92229cd7906bb614a43b84e50d340e80a509d64ac9a7b0b172d",
|
|
31
31
|
"analytics.cjs": "7d04630bf6091b2989461694f4bdba2b3763fe992dd9058ab2959b47f127101b",
|
|
32
32
|
"analytics.js": "e102e4a84b801a178ea43ca1bb0be62c976b432fb6b3bc5514dbe8934681149c",
|
|
33
|
-
"assets-
|
|
34
|
-
"assets-
|
|
35
|
-
"auto-
|
|
36
|
-
"auto-
|
|
33
|
+
"assets-BYdpkTIt.cjs": "822d0d8efb1f593ed72c23edf9f0e6ecfa5cd5357892aabbf20835e15556728d",
|
|
34
|
+
"assets-C4MIvzQ4.js": "dffabd637edb53486cb8203b9ec59fe5f56eaa3b735edb9907e44cdd601f8111",
|
|
35
|
+
"auto-D-eDZa_V.cjs": "7f0cc436ee89acb0f19d5cf031d5d5d99f1f81e41e4db29ed01bd0335aba36ce",
|
|
36
|
+
"auto-umW_ozwr.js": "6a2a818344d8ee2445e17b88a6ca9bd779b46a151e8fe1f6ecb510af2be425db",
|
|
37
37
|
"batch-DGCt44XM.js": "8b4e701e19c6342025eea92f969437c0e288a88e53383d82ec1a895c72a1dd90",
|
|
38
38
|
"batch-DYcokH4v.cjs": "29a6bb725bd57b508ef61fa450993d87447aa0a0b74f56953f0f35651a148d51",
|
|
39
|
-
"capabilities-
|
|
40
|
-
"capabilities-
|
|
39
|
+
"capabilities-CN_kSVjO.js": "4ad650dcf294de9aedabc7cdc40b0f450be6fd4dd7664954797807d1d8af5f59",
|
|
40
|
+
"capabilities-D4nfhcvB.cjs": "070b4382593e8d5d06b72c0915f6d9a2cf4d4e04f0118b4594988bc2af278274",
|
|
41
|
+
"cell-style-B6Qffrx8.js": "27ae0c26565db5f5ad715baf23945a7266ca9b22196ac6f3b7b5827be3484e91",
|
|
42
|
+
"cell-style-y_uh1pZp.cjs": "e2d99aeb7abba718722d1c7b5d1e689d2f6a6a485a593e76a5ae96fa335e0428",
|
|
41
43
|
"charts-Cjw5AYkg.cjs": "21029210f210ac75d29749c6b96588971ec6e60c095e92c7c6fe1e32c342bce5",
|
|
42
44
|
"charts-CxJZ0XaY.js": "8f898d448e128434f3e9fe7b2dacd116f2befd7b19ec7e0031d75b17cd164cac",
|
|
43
45
|
"code-options-BKXXY7NI.js": "67696253b923c214c5b628f86c65968d4de6e0812cb142bdb043806be6158038",
|
|
@@ -46,32 +48,34 @@
|
|
|
46
48
|
"codes.js": "60794ba407233d62c22653f85ec21d0116287c2bee96f1c5c90a0075f9b3eb61",
|
|
47
49
|
"computed-DK6BruFz.cjs": "f26215bcfc829ed2f0880863939b27214c0d6d0cfaf4482ec47a1c9924172e38",
|
|
48
50
|
"computed-f3pOqWLX.js": "42beff58ce182392c91009de04864963081605d1f4322167062e0134db6b9b1c",
|
|
49
|
-
"data-bar-
|
|
50
|
-
"data-bar-
|
|
51
|
+
"data-bar-Bfh54sT4.js": "e56e0dc27945c96303ae90ee5584965bcae9564fe5583c57b03217c6b837b510",
|
|
52
|
+
"data-bar-DzceAVeR.cjs": "ee7406c38f2911d37e504dda27326e3e37950b5feb9d442e5b339d5ecbb68db5",
|
|
51
53
|
"dataset-DL83majE.js": "5733ea2048b60120b6f74ffb485b92abfa62712bf1e045debebbe50631643a3a",
|
|
52
54
|
"dataset-IrlXbUvh.cjs": "fcd1efa71845aa6ad44559918cc8206a473c4ce343afb057ba91d23b041363b3",
|
|
53
|
-
"designer-
|
|
54
|
-
"designer-
|
|
55
|
-
"designer.cjs": "
|
|
56
|
-
"designer.js": "
|
|
57
|
-
"
|
|
58
|
-
"
|
|
55
|
+
"designer-CCyj5WYS.js": "8b7266d1583a7f3013a1382a5e9f6986fa80d8220a1939972c10e2b9247f2f38",
|
|
56
|
+
"designer-Cj7fn4Hh.cjs": "fe2f3bff018dfaef571cbf63b5209160c331737ad1f0596a45f8896b69918335",
|
|
57
|
+
"designer.cjs": "93d04f25c5e05655f56767f2c1a2936b3e8cfafc1a901c1e6c6747aaac171aee",
|
|
58
|
+
"designer.js": "aef8af87d2cd18dfc06fccb6afebc4fdf42af75074cc39f8559159b64843769c",
|
|
59
|
+
"diagnostic-collector-gB07PHy2.js": "23620bca3637f5802e7a7eea8050f439fc673844dfaa225c388d49739a3a885f",
|
|
60
|
+
"diagnostic-collector-wASg6Fzs.cjs": "8db80d39d2ddc4aeb22d6b4ce87301ad929357ae821010ef9dd8f3dfadf9531e",
|
|
61
|
+
"dom-CXWMmwh-.cjs": "61b7370c17f74edeca72818d754411a7d68802ac185dfe045a0a4cf5343e9722",
|
|
62
|
+
"dom-DxdCMLzs.js": "d2fbdde736cc38133f95f97cec13e223074e343e27ef0d63def85ad9d94c65b1",
|
|
59
63
|
"dom-cell-address-DLD1mkTB.cjs": "6338fd0aff421f07e6d18dd013e951bf3ebb3f24eb62fb6b857465f0be9cfaa9",
|
|
60
64
|
"dom-cell-address-Fn-8nk7D.js": "ba69ee95af411e0c1ef51949009595099e14d75e43feb6628d9a9302e59abe25",
|
|
61
|
-
"encoding-
|
|
62
|
-
"encoding-
|
|
63
|
-
"font-loader-
|
|
64
|
-
"font-loader-
|
|
65
|
-
"grid-strokes-
|
|
66
|
-
"grid-strokes-
|
|
65
|
+
"encoding-CEkBtlUP.js": "1665a298e045c26358591e56572f3a51ce29a91e4ef5539b00931c3a0b6b01ea",
|
|
66
|
+
"encoding-Cipno7dq.cjs": "9bd7360c5b38ed7e93c4b770e116af07c5627da8877c1bf58fdc749ac2e22c2d",
|
|
67
|
+
"font-loader-D4NLIKJL.js": "f3f60d11e18e60b2b9775eefc30cd7660f44c5535223e948cb2adda49a71cdeb",
|
|
68
|
+
"font-loader-p_SyTvqt.cjs": "96566e9c0cad823aaaaf311a46950872962f915f40b6db812162821619e2441d",
|
|
69
|
+
"grid-strokes-DkZEZvcI.js": "040f054f829d40b09c3f25336607318a6a732cfabd3dc6ec5241ed70f64c59aa",
|
|
70
|
+
"grid-strokes-RFMR91jn.cjs": "377f06d573629370c668f03897793f8164883cf7adfe8022aa6633eaae12a16d",
|
|
67
71
|
"index-CPh6tqge.js": "7c296b48cef38d5964457d24709d00ccc27f5129fe704680d05a07995296331a",
|
|
68
72
|
"index-CUNw7dL9.cjs": "3903d4cbd382319dcfbe79bc936898a53b9d3ea0eddf02c969f4834b51e3dd3d",
|
|
69
|
-
"index.cjs": "
|
|
70
|
-
"index.js": "
|
|
73
|
+
"index.cjs": "da3a92308b60473ee07bb29e8fa1f44b4d73687150732a3a79336f9f8ecb9909",
|
|
74
|
+
"index.js": "dad7f8adcfd6154425472eafdbc1ca365576b6a667ae648daafaf5043a810328",
|
|
71
75
|
"injection-keys-Db_DyLkm.cjs": "0d656460efa0c48f6153aae745dd61a7907128938d98b358b5b6d413db5ec4ed",
|
|
72
76
|
"injection-keys-e85udZCp.js": "101e96fc627b33003ba295d281e7f7bfb2c077300556b2bf039cb1938e36f582",
|
|
73
|
-
"json-snapshot-
|
|
74
|
-
"json-snapshot-
|
|
77
|
+
"json-snapshot-DQdkA_At.cjs": "c6297571cd0ed2969f7eccbc5e287c583c6b03bc0ffffd18ced1207e1bf85801",
|
|
78
|
+
"json-snapshot-x0JpllWL.js": "6f5419e4582728bceddad12f742e014cf20ff84736227683525a4ca24ef3fd10",
|
|
75
79
|
"matrix-B8QWbsGM.cjs": "42585d79913872c489cbcd3778b639046a831c2174f35605336304580275ec99",
|
|
76
80
|
"matrix-C6e_r_vp.js": "cb87c13bdea88ecc9e2d09b0ff16dfa36c292e70ec29487975402ccfd6ef59ef",
|
|
77
81
|
"media-B7vnpD8k.cjs": "c667063f9745af571f35561ec272496f0e3d7b7d4ee003a823003337155497d9",
|
|
@@ -80,68 +84,64 @@
|
|
|
80
84
|
"number-format-CZ2T_5kF.cjs": "bfbf7b30ddf4d27c80917f17c6609cb3a339436fc0a3d7a643ba5ac8faae0aec",
|
|
81
85
|
"param-validation-C-8sRJLq.cjs": "aee8af8de317622f4fc4c32585ae4ea2b837577392a861d57a81e869e0162f9a",
|
|
82
86
|
"param-validation-CnDEd2l-.js": "ebfea3402c3bac95fe3fc917f1ed9f2a69e36140b7c735ab995bad9ff2a03b26",
|
|
83
|
-
"pdf-
|
|
84
|
-
"pdf-
|
|
85
|
-
"pdf.cjs": "
|
|
86
|
-
"pdf.js": "
|
|
87
|
-
"plugin-
|
|
88
|
-
"plugin-
|
|
89
|
-
"prefill-
|
|
90
|
-
"prefill-
|
|
91
|
-
"prepared-
|
|
92
|
-
"prepared-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"region-binding-workflow-DjrXuR1q.js": "49d19a12d9a2cac03bda9de8202f9b4e3a0d3ae8078f778c587a63ac04b075e4",
|
|
102
|
-
"region-binding-workflow-l7NGfagJ.cjs": "9c3737d399bcf37292bc4b537086514c4f00f499bc693de4883ea0559d90b6f1",
|
|
103
|
-
"report-encoding-worker.cjs": "4258a43c2d910c5ba65a2f32eb626c0745148e29ceb3baae61d85156f55b3715",
|
|
104
|
-
"report-encoding-worker.js": "d762ded955411a7f82f9dd20cd7281e201ce1e5c3e90e4ae76e9d4b7a06e79dc",
|
|
87
|
+
"pdf-C060D5UY.cjs": "24f771da19397317993b43a5bd97064c436722314e9f3bb3b6004829a54d6498",
|
|
88
|
+
"pdf-DU8HelKd.js": "e021137796332d80dda4fa3a950e805c190ea9ea4d284a8488f4f5e1ba28a59a",
|
|
89
|
+
"pdf.cjs": "cc0b03c6019b2de7455f2a6af999bfe1eebc21c58a6ec9279eaf921d560bdc9b",
|
|
90
|
+
"pdf.js": "c4761033b9172142ae6bc02238143b3810f8c21bc48540d786ded3c7b541dc26",
|
|
91
|
+
"plugin-B_k23hut.cjs": "2a5f09eba51d5acc16adf4c1d37000a9d59144e0310140791c5f991d3accc12c",
|
|
92
|
+
"plugin-CttO46hc.js": "f300572aa5f5c9971588d9f3c1374774567341680cae579cbd28a85744efbd99",
|
|
93
|
+
"prefill-BkF9Fw_p.js": "9ac26ea1efe07bfd16549997d327108d66c51182c0b484ffd06ef4a002a3b1ec",
|
|
94
|
+
"prefill-BvkuwooY.cjs": "817528707a6a616061b6f3125b6e4143bffe5e9032b12c8d5d3ecefc97ce8593",
|
|
95
|
+
"prepared-CSywIEAZ.cjs": "281d07e347bfd3e7f29b3b0df141c82cf7233b94ee6af8d2cfdd073c57e0ebad",
|
|
96
|
+
"prepared-Cyuh61fJ.js": "40acd4ce62b04cdaca1bead60b5119ea8dd8f153cad499ae4d82ac944989aa3c",
|
|
97
|
+
"protocol-BwbJNVZl.cjs": "4aaa0cddb88a1ba133ddb3888f8fadcdc9e2a370c60c3dcd9194027f884962e5",
|
|
98
|
+
"protocol-DwtxjXzO.js": "35e20f8a10ce651d88a9f6d4fcb66e415c81866a2b0abab14dc1397f4b73b3c5",
|
|
99
|
+
"record-bindings-B7djSjNs.cjs": "6f3c51877058a68edbba8c5013fecf1dff25f474188e71608364b8d94df86afe",
|
|
100
|
+
"record-bindings-Cv7lFiof.js": "a323cc829e45a8cf985ac13f5668bacce075e4ecd4242a100aaca5ac711de01c",
|
|
101
|
+
"region-binding-workflow-COD8nISZ.cjs": "b165a56a2721734e86d79903b36e27490bb29263fe23950f39195d88c9be1a73",
|
|
102
|
+
"region-binding-workflow-D8I4QWRh.js": "de4b31ba5a0bc6a10838d303469b8e0f308514892d404b5979730f9287a4452d",
|
|
103
|
+
"report-encoding-worker.cjs": "04e5d3a0299b41970569fac67191e12a45d6d6e06c39e13a9ace69079cd78016",
|
|
104
|
+
"report-encoding-worker.js": "c6cf4cdee46956c355c76c6b3e45eb6634fc64c2317c81defc15e999ddcab486",
|
|
105
105
|
"report-params-D9tBuM9B.js": "ece9133b39e06ff8769c039d94d6734ac46e5aef8c9a795c0255b217b8f4e560",
|
|
106
106
|
"report-params-VTg8MoCp.cjs": "06600716e1621dd96088355786c67db6ce12860030118777450b1eb0a3ba655b",
|
|
107
|
-
"rich-text-layout-
|
|
108
|
-
"rich-text-layout-
|
|
109
|
-
"runtime-
|
|
110
|
-
"runtime-
|
|
111
|
-
"server-node.cjs": "
|
|
112
|
-
"server-node.js": "
|
|
113
|
-
"server.cjs": "
|
|
114
|
-
"server.js": "
|
|
107
|
+
"rich-text-layout-Ch_N0Ubu.js": "de41c53024792dd5fdeaded2a587a50c1757a6c82150375cf6fe53df0b6d5310",
|
|
108
|
+
"rich-text-layout-yJGuThtC.cjs": "701392fa5e4ea4a96f49ee71a21ad3fca914f5e4bcc9bdbbb00d2d969bb784c2",
|
|
109
|
+
"runtime-BE30icyB.js": "461bd5df34c1ef61239bf86aeab79b81ef44805b6bcf870d3591afcef4461104",
|
|
110
|
+
"runtime-DRSuy_SQ.cjs": "669907d2bf8c7b5aecafc2658bb8449f9b9bc422dd13e0cadbcf6619653204c5",
|
|
111
|
+
"server-node.cjs": "2dc358c738f646e9fe692d1a7aae976a0f779565159515939ac83ad7973d6b38",
|
|
112
|
+
"server-node.js": "058badb99a05c01e1aa1b5f733a56e8b4d3c69a88cafda7ad7a47c78c2e1fb79",
|
|
113
|
+
"server.cjs": "1209b21a825389431cbce990a8a71dc7a710bca163661e125319ea4f0bfcd49c",
|
|
114
|
+
"server.js": "0f5858414ef967f081c66e7025563ed9bfb5834066d701c5dec83aa48b5df431",
|
|
115
115
|
"sha256-BDQ1Qk7A.js": "b0add3fe6ab451f8fe0563a7d9ba4f062bd489dffaf77df39e0a462dc8e9ee82",
|
|
116
116
|
"sha256-DgZAKXqI.cjs": "9dba2652fc0de8c96f33258fa7defcae98f5a1e3655c5065f99f721fbd0899fb",
|
|
117
117
|
"sql.cjs": "3f6410be368c6f8e3677e5c8a10fa76943685c49da1ab725262def05b13872ff",
|
|
118
118
|
"sql.js": "8c44d864340e02ec5ee4512e31b787da5dd1d3e7be750ab8280cfe2d1d733c06",
|
|
119
|
-
"style.css": "
|
|
120
|
-
"template-catalog-
|
|
121
|
-
"template-catalog-
|
|
122
|
-
"template-fragments-
|
|
123
|
-
"template-fragments-
|
|
124
|
-
"template-registry-
|
|
125
|
-
"template-registry-
|
|
119
|
+
"style.css": "9a95a9e3e6b0f06b1a7512822cd13a9934daba8ef2b36f5abe596e4fcd43f636",
|
|
120
|
+
"template-catalog-C0riwrx7.cjs": "c1e14ad971a3507dfad5d0eb2eb7e0500e383b49bc7a43ba38db5c42a5559913",
|
|
121
|
+
"template-catalog-D_gl93va.js": "a925a472e518ec94a5c662928abb1ad0ae48b6b69d8b1d19a9e539c806137889",
|
|
122
|
+
"template-fragments-CgzPdFKB.cjs": "cefcceb12a8c3c2a566be24bb73c2f2aeb11896689608fae857aaedb9bd5efc2",
|
|
123
|
+
"template-fragments-D94ZZmPc.js": "7542adcec79014eb2ef0ab4ce8ae89d1d0ef556cfbd823cf22eb91a3730323a0",
|
|
124
|
+
"template-registry-BMScUmM4.cjs": "03ab334bff01ac349034d727d9ded220fabdef301c67862e19248fb7f21f0b58",
|
|
125
|
+
"template-registry-DZOtRY7t.js": "73cd4f1a8451c5eda1001b9d2c060ede4ea7d76e197a536e15cb87cbaa324323",
|
|
126
126
|
"template-serialization-CWmHq7lX.js": "8fcb4043e00f2d4313e4ba042549a149d55748790258ed8a63275bab79f7268f",
|
|
127
127
|
"template-serialization-CqQY4zDg.cjs": "c9ff9fe1b57f49c0f391a56d62326ab6ca8ca101bff57452c8fd3356dc69cdb9",
|
|
128
|
-
"textwrap-
|
|
129
|
-
"textwrap-
|
|
128
|
+
"textwrap-BywMBMXM.js": "1227ada7997891bb4bc8a45b366fee7547ebe4833df0f00a6d38efb842dde998",
|
|
129
|
+
"textwrap-LhJkHWb1.cjs": "d3e9bf695cdb36373c416b8d85246fb8be10085cb8cf55b1df0db129d5feab73",
|
|
130
130
|
"useLocalDraft-BnhcxXk_.js": "4329b21ab9806f229ec5039c48d140184f1a8b17713972548016e36d8c5ad2a5",
|
|
131
131
|
"useLocalDraft-CioIfDb6.cjs": "4aecc84e63a2bef15f690937d5cea415a6e5c529b1d7a2575d738215c1ff908f",
|
|
132
|
-
"vue-async.cjs": "
|
|
133
|
-
"vue-async.js": "
|
|
134
|
-
"vue.cjs": "
|
|
135
|
-
"vue.js": "
|
|
136
|
-
"workbook-session-
|
|
137
|
-
"workbook-session-
|
|
132
|
+
"vue-async.cjs": "661958ec1103de71979c5b627686520f7e714ad56774c7aa9d60e18cb9238d65",
|
|
133
|
+
"vue-async.js": "5a4f0950bedeaf916ac69bc162a3c8ee3b6246fcd41ce5ef1798938b48c2193e",
|
|
134
|
+
"vue.cjs": "2194f64dbd3cd9588505b26ee735fab3d1546a59fdc253dcef2f079396258a9c",
|
|
135
|
+
"vue.js": "b9cfe166742856d5a5d65e8fbb053111ccf124254279ce047b42cc06755ebfa2",
|
|
136
|
+
"workbook-session-DR2j6Hxm.cjs": "e0d4685b6f9adb48809840a20a4c872b844bc302b9bf9b00a8f61e9715c8aa65",
|
|
137
|
+
"workbook-session-SzfILBJJ.js": "50b4ed72bd9c500c237832d9a74d8c3a69e11bb8afb28ae3f9b6e10ebd530a36",
|
|
138
138
|
"workbook-sheets-CaPAulQ6.cjs": "7a9c89b6d94d3036bf13a5562cb799dcae6ae4c1824f0fa9a50e7938848bd2c4",
|
|
139
139
|
"workbook-sheets-D4M7XXBh.js": "650a92b5db22c6ff07e8c8a40e87febf3757f5abe7e3f07d67313ca3db7c9bc5",
|
|
140
|
-
"worker.cjs": "
|
|
141
|
-
"worker.js": "
|
|
142
|
-
"xlsx-node.cjs": "
|
|
143
|
-
"xlsx-node.js": "
|
|
144
|
-
"xlsx.cjs": "
|
|
145
|
-
"xlsx.js": "
|
|
140
|
+
"worker.cjs": "2b106d3e9b5688fe8bfa522a1c2254bd23a0dfeafc07f39b25faa7945cbf20ae",
|
|
141
|
+
"worker.js": "9ce188e79cbb4be9348c6f0c88abdcb732a662c10dbe886dd4a751dc2818686f",
|
|
142
|
+
"xlsx-node.cjs": "76095f4e35c10e76c243d572ceeddba19374824de7eee0f59256d29e4f43b148",
|
|
143
|
+
"xlsx-node.js": "b056a5bf33dfd9fdb5ce4eb962a41eb2294622da048b12fa3cc5ea946113cb27",
|
|
144
|
+
"xlsx.cjs": "a730d64b05e9a4d625af823b79760597a49d13c52e1e26fd536ab7d5a1ead6e2",
|
|
145
|
+
"xlsx.js": "0685024ca480caabd8cd60521b08ffa64a8c400c4671d393435e5e407f77d9ba"
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./diagnostic-collector-wASg6Fzs.cjs"),y=require("./capabilities-D4nfhcvB.cjs"),x=require("./media-B7vnpD8k.cjs");class w extends Error{constructor(e,r){super(e.message),this.name="OutputAssetError",this.diagnostic=e,this.cause=r}}function b(t){if(t.aborted)throw t.reason??new DOMException("The operation was aborted.","AbortError")}function E(t){const e={maxAssets:1e3,maxImageBytes:33554432,maxTotalImageBytes:134217728,maxDurationMs:3e4,...t.assetBudget};for(const[r,s]of Object.entries(e))if(!Number.isSafeInteger(s)||s<=0||s>2147483647)throw new RangeError(`${r} must be a positive safe integer at most 2147483647.`);return e}function A(t){const e=/^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(t);if(!e)throw new TypeError("Asset renderers must return an image data URL.");return e[1]?Math.ceil(e[2].length*3/4):new TextEncoder().encode(decodeURIComponent(e[2])).byteLength}function p(t,e,r,s,i){const n={code:r,message:s,severity:"warning",format:t.options.format??"dom",pageIndex:e.pageIndex,componentIndex:e.componentIndex,componentPath:e.componentPath,kind:e.component.kind,nid:e.component.nid};if(t.diagnostics.push(n),y.notifyOutputDiagnostic(n,{...t.options,signal:t.signal}),t.options.assetFailure!=="placeholder")throw new w(n,i)}async function D(t,e,r){const s=t.options.assetRegistry?.rendererFor(e)??t.options.assetRenderers?.[e.kind];if(e.imageData||!s)return e.imageData;if(++t.rendered>t.budget.maxAssets)return p(t,r,"asset-budget-exceeded","Output exceeded the asset count budget.");let i;try{if(t.active=r,i=await l.waitForOutput(s({...r,signal:t.signal}),t.signal),b(t.signal),i.length>t.budget.maxImageBytes*4+1024)return p(t,r,"asset-budget-exceeded","Output exceeded the image payload byte budget.");const n=A(i);if(n>t.budget.maxImageBytes||t.bytes+n>t.budget.maxTotalImageBytes)return p(t,r,"asset-budget-exceeded","Output exceeded the encoded image byte budget.");/^data:image\/(png|jpe?g);base64,/i.test(i)&&t.inspectImage(i),t.bytes+=n}catch(n){if(t.signal.aborted||n instanceof w||n instanceof x.ImageMediaError&&n.code==="image-budget-exceeded")throw n;return p(t,r,"asset-render-failed",`Asset renderer failed for ${e.kind}; output was not silently omitted.`,n)}return i}function O(t,e){const r=t.active;if(!r){e.abort(new Error("Asset rendering exceeded maxDurationMs."));return}const s={code:"asset-budget-exceeded",message:"Asset rendering exceeded maxDurationMs.",severity:"warning",format:t.options.format??"dom",pageIndex:r.pageIndex,componentIndex:r.componentIndex,componentPath:r.componentPath,kind:r.component.kind,nid:r.component.nid};t.diagnostics.push(s);try{y.notifyOutputDiagnostic(s,{...t.options,signal:t.signal})}catch(i){e.abort(i);return}e.abort(new w(s))}async function M(t,e,r,s,i){if(!e?.children?.length)return e;const n=[];for(const[a,o]of e.children.entries())n.push(await v(t,o,{...r,component:o,componentPath:[...s,a]},i));return n.some((a,o)=>a!==e.children[o])?{...e,children:n}:e}async function v(t,e,r,s){if(b(t.signal),s.has(e))throw new TypeError("Cyclic grid children cannot be rendered.");let i=t.cache.get(e);i||(i=D(t,e,r),t.cache.set(e,i));const n=await i;b(t.signal);let a=e.grid;if(a){const o=new Set(s).add(e),m=[];for(const[f,d]of a.cells.entries()){if(!d.some(g=>g?.children?.length)){m.push(d);continue}const c=[];for(const[g,u]of d.entries())c.push(u?.children?.length?await M(t,u,r,[...r.componentPath,f,g],o):u);m.push(c.some((g,u)=>g!==d[u])?c:d)}m.some((f,d)=>f!==a.cells[d])&&(a={...a,cells:m})}return n!==e.imageData||a!==e.grid?{...e,imageData:n,grid:a}:e}function R(t,e,r){const s=new Set,i=n=>{if(l.assertOutputActive(r),!s.has(n)){if(s.add(n),n.imageData&&/^data:image\/(png|jpe?g);base64,/i.test(n.imageData))try{e(n.imageData)}catch(a){if(!(a instanceof x.ImageMediaError)||a.code==="image-budget-exceeded")throw a}for(const a of n.grid?.cells??[])for(const o of a)for(const m of o?.children??[])i(m)}};for(const n of t.pages)for(const a of n.components)i(a)}function T(t){if(t.options.fidelity==="strict"&&t.diagnostics.total)throw new y.OutputFidelityError(t.diagnostics.entries,t.options.diagnosticLimit===void 0?void 0:t.diagnostics.snapshot())}function I(t,e,r){return{plan:t,diagnostics:e.entries,...r===void 0?{}:{diagnosticSummary:e.snapshot()}}}async function k(t,e={}){l.assertOutputActive(e.signal);const r=l.createDiagnosticCollector(e.diagnosticLimit);l.assertBoundedRenderTree(t);const s=E(e),i=x.createImageMediaInspector(e);if(R(t,i,e.signal),e.signal?.aborted)throw e.signal.reason??new DOMException("The operation was aborted.","AbortError");const n=new AbortController,a=()=>n.abort(e.signal?.reason);if(e.signal?.addEventListener("abort",a,{once:!0}),!e.assetRegistry&&(!e.assetRenderers||!Object.keys(e.assetRenderers).length))return e.signal?.removeEventListener("abort",a),I(t,r,e.diagnosticLimit);const o={options:e,signal:n.signal,diagnostics:r,rendered:0,bytes:0,budget:s,cache:new WeakMap,inspectImage:i},m=setTimeout(()=>O(o,n),s.maxDurationMs);try{const f=[];for(const[d,c]of t.pages.entries()){if(d<(e.start??0)||d>(e.end??t.pages.length-1)){f.push(c);continue}const g=[];for(const[u,h]of c.components.entries())g.push(await v(o,h,{component:h,pageIndex:d,componentIndex:u,componentPath:[]},new Set));f.push(g.some((u,h)=>u!==c.components[h])?{...c,components:g}:c)}return b(o.signal),T(o),I(f.some((d,c)=>d!==t.pages[c])?{...t,pages:f}:t,o.diagnostics,e.diagnosticLimit)}finally{clearTimeout(m),e.signal?.removeEventListener("abort",a)}}exports.OutputAssetError=w;exports.resolvePlanAssets=k;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { A as y, x as E, N as A, w as D } from "./diagnostic-collector-gB07PHy2.js";
|
|
2
|
+
import { n as x, O } from "./capabilities-CN_kSVjO.js";
|
|
3
|
+
import { c as M, I } from "./media-Y90dHK9z.js";
|
|
4
|
+
class b extends Error {
|
|
5
|
+
constructor(e, r) {
|
|
6
|
+
super(e.message), this.name = "OutputAssetError", this.diagnostic = e, this.cause = r;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function p(t) {
|
|
10
|
+
if (t.aborted) throw t.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
11
|
+
}
|
|
12
|
+
function R(t) {
|
|
13
|
+
const e = { maxAssets: 1e3, maxImageBytes: 33554432, maxTotalImageBytes: 134217728, maxDurationMs: 3e4, ...t.assetBudget };
|
|
14
|
+
for (const [r, s] of Object.entries(e))
|
|
15
|
+
if (!Number.isSafeInteger(s) || s <= 0 || s > 2147483647) throw new RangeError(`${r} must be a positive safe integer at most 2147483647.`);
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function T(t) {
|
|
19
|
+
const e = /^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(t);
|
|
20
|
+
if (!e) throw new TypeError("Asset renderers must return an image data URL.");
|
|
21
|
+
return e[1] ? Math.ceil(e[2].length * 3 / 4) : new TextEncoder().encode(decodeURIComponent(e[2])).byteLength;
|
|
22
|
+
}
|
|
23
|
+
function h(t, e, r, s, i) {
|
|
24
|
+
const n = { code: r, message: s, severity: "warning", format: t.options.format ?? "dom", pageIndex: e.pageIndex, componentIndex: e.componentIndex, componentPath: e.componentPath, kind: e.component.kind, nid: e.component.nid };
|
|
25
|
+
if (t.diagnostics.push(n), x(n, { ...t.options, signal: t.signal }), t.options.assetFailure !== "placeholder") throw new b(n, i);
|
|
26
|
+
}
|
|
27
|
+
async function k(t, e, r) {
|
|
28
|
+
const s = t.options.assetRegistry?.rendererFor(e) ?? t.options.assetRenderers?.[e.kind];
|
|
29
|
+
if (e.imageData || !s) return e.imageData;
|
|
30
|
+
if (++t.rendered > t.budget.maxAssets) return h(t, r, "asset-budget-exceeded", "Output exceeded the asset count budget.");
|
|
31
|
+
let i;
|
|
32
|
+
try {
|
|
33
|
+
if (t.active = r, i = await D(s({ ...r, signal: t.signal }), t.signal), p(t.signal), i.length > t.budget.maxImageBytes * 4 + 1024) return h(t, r, "asset-budget-exceeded", "Output exceeded the image payload byte budget.");
|
|
34
|
+
const n = T(i);
|
|
35
|
+
if (n > t.budget.maxImageBytes || t.bytes + n > t.budget.maxTotalImageBytes) return h(t, r, "asset-budget-exceeded", "Output exceeded the encoded image byte budget.");
|
|
36
|
+
/^data:image\/(png|jpe?g);base64,/i.test(i) && t.inspectImage(i), t.bytes += n;
|
|
37
|
+
} catch (n) {
|
|
38
|
+
if (t.signal.aborted || n instanceof b || n instanceof I && n.code === "image-budget-exceeded") throw n;
|
|
39
|
+
return h(t, r, "asset-render-failed", `Asset renderer failed for ${e.kind}; output was not silently omitted.`, n);
|
|
40
|
+
}
|
|
41
|
+
return i;
|
|
42
|
+
}
|
|
43
|
+
function B(t, e) {
|
|
44
|
+
const r = t.active;
|
|
45
|
+
if (!r) {
|
|
46
|
+
e.abort(new Error("Asset rendering exceeded maxDurationMs."));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const s = { code: "asset-budget-exceeded", message: "Asset rendering exceeded maxDurationMs.", severity: "warning", format: t.options.format ?? "dom", pageIndex: r.pageIndex, componentIndex: r.componentIndex, componentPath: r.componentPath, kind: r.component.kind, nid: r.component.nid };
|
|
50
|
+
t.diagnostics.push(s);
|
|
51
|
+
try {
|
|
52
|
+
x(s, { ...t.options, signal: t.signal });
|
|
53
|
+
} catch (i) {
|
|
54
|
+
e.abort(i);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
e.abort(new b(s));
|
|
58
|
+
}
|
|
59
|
+
async function L(t, e, r, s, i) {
|
|
60
|
+
if (!e?.children?.length) return e;
|
|
61
|
+
const n = [];
|
|
62
|
+
for (const [a, o] of e.children.entries())
|
|
63
|
+
n.push(await v(t, o, { ...r, component: o, componentPath: [...s, a] }, i));
|
|
64
|
+
return n.some((a, o) => a !== e.children[o]) ? { ...e, children: n } : e;
|
|
65
|
+
}
|
|
66
|
+
async function v(t, e, r, s) {
|
|
67
|
+
if (p(t.signal), s.has(e)) throw new TypeError("Cyclic grid children cannot be rendered.");
|
|
68
|
+
let i = t.cache.get(e);
|
|
69
|
+
i || (i = k(t, e, r), t.cache.set(e, i));
|
|
70
|
+
const n = await i;
|
|
71
|
+
p(t.signal);
|
|
72
|
+
let a = e.grid;
|
|
73
|
+
if (a) {
|
|
74
|
+
const o = new Set(s).add(e), m = [];
|
|
75
|
+
for (const [f, d] of a.cells.entries()) {
|
|
76
|
+
if (!d.some((g) => g?.children?.length)) {
|
|
77
|
+
m.push(d);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
const c = [];
|
|
81
|
+
for (const [g, u] of d.entries()) c.push(u?.children?.length ? await L(t, u, r, [...r.componentPath, f, g], o) : u);
|
|
82
|
+
m.push(c.some((g, u) => g !== d[u]) ? c : d);
|
|
83
|
+
}
|
|
84
|
+
m.some((f, d) => f !== a.cells[d]) && (a = { ...a, cells: m });
|
|
85
|
+
}
|
|
86
|
+
return n !== e.imageData || a !== e.grid ? { ...e, imageData: n, grid: a } : e;
|
|
87
|
+
}
|
|
88
|
+
function P(t, e, r) {
|
|
89
|
+
const s = /* @__PURE__ */ new Set(), i = (n) => {
|
|
90
|
+
if (y(r), !s.has(n)) {
|
|
91
|
+
if (s.add(n), n.imageData && /^data:image\/(png|jpe?g);base64,/i.test(n.imageData))
|
|
92
|
+
try {
|
|
93
|
+
e(n.imageData);
|
|
94
|
+
} catch (a) {
|
|
95
|
+
if (!(a instanceof I) || a.code === "image-budget-exceeded") throw a;
|
|
96
|
+
}
|
|
97
|
+
for (const a of n.grid?.cells ?? []) for (const o of a) for (const m of o?.children ?? []) i(m);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
for (const n of t.pages) for (const a of n.components) i(a);
|
|
101
|
+
}
|
|
102
|
+
function C(t) {
|
|
103
|
+
if (t.options.fidelity === "strict" && t.diagnostics.total) throw new O(t.diagnostics.entries, t.options.diagnosticLimit === void 0 ? void 0 : t.diagnostics.snapshot());
|
|
104
|
+
}
|
|
105
|
+
function w(t, e, r) {
|
|
106
|
+
return { plan: t, diagnostics: e.entries, ...r === void 0 ? {} : { diagnosticSummary: e.snapshot() } };
|
|
107
|
+
}
|
|
108
|
+
async function $(t, e = {}) {
|
|
109
|
+
y(e.signal);
|
|
110
|
+
const r = E(e.diagnosticLimit);
|
|
111
|
+
A(t);
|
|
112
|
+
const s = R(e), i = M(e);
|
|
113
|
+
if (P(t, i, e.signal), e.signal?.aborted) throw e.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
114
|
+
const n = new AbortController(), a = () => n.abort(e.signal?.reason);
|
|
115
|
+
if (e.signal?.addEventListener("abort", a, { once: !0 }), !e.assetRegistry && (!e.assetRenderers || !Object.keys(e.assetRenderers).length))
|
|
116
|
+
return e.signal?.removeEventListener("abort", a), w(t, r, e.diagnosticLimit);
|
|
117
|
+
const o = { options: e, signal: n.signal, diagnostics: r, rendered: 0, bytes: 0, budget: s, cache: /* @__PURE__ */ new WeakMap(), inspectImage: i }, m = setTimeout(() => B(o, n), s.maxDurationMs);
|
|
118
|
+
try {
|
|
119
|
+
const f = [];
|
|
120
|
+
for (const [d, c] of t.pages.entries()) {
|
|
121
|
+
if (d < (e.start ?? 0) || d > (e.end ?? t.pages.length - 1)) {
|
|
122
|
+
f.push(c);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const g = [];
|
|
126
|
+
for (const [u, l] of c.components.entries()) g.push(await v(o, l, { component: l, pageIndex: d, componentIndex: u, componentPath: [] }, /* @__PURE__ */ new Set()));
|
|
127
|
+
f.push(g.some((u, l) => u !== c.components[l]) ? { ...c, components: g } : c);
|
|
128
|
+
}
|
|
129
|
+
return p(o.signal), C(o), w(f.some((d, c) => d !== t.pages[c]) ? { ...t, pages: f } : t, o.diagnostics, e.diagnosticLimit);
|
|
130
|
+
} finally {
|
|
131
|
+
clearTimeout(m), e.signal?.removeEventListener("abort", a);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
b as O,
|
|
136
|
+
$ as r
|
|
137
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./prepared-CSywIEAZ.cjs"),C=require("./json-snapshot-DQdkA_At.cjs"),P=require("./protocol-BwbJNVZl.cjs"),I=require("./diagnostic-collector-wASg6Fzs.cjs"),W=require("./runtime-DRSuy_SQ.cjs"),l=require("./sha256-DgZAKXqI.cjs");class M extends Error{constructor(r){super("报表 Worker 无法启动"),this.cause=r,this.name="ReportWorkerStartError"}}let j=0;function F(e){const r=new Error("报表 Worker 任务已取消");return r.name="AbortError",Object.defineProperty(r,"cause",{value:e}),r}function U(e,r){if(!e||typeof e!="object")return;const t=e;return t.protocol===P.REPORT_WORKER_PROTOCOL&&t.id===r?t:void 0}function z(e,r={}){const t=r.timeoutMs??12e4;if(!Number.isFinite(t)||t<=0||t>2147483647)throw new RangeError("Worker timeoutMs 应为正有限数字,且不能超过 2147483647");const n=(o,s,a,d)=>a?.aborted?Promise.reject(F(a.reason)):new Promise((v,i)=>{let g;try{g=e()}catch(f){i(new M(f));return}const h=`mach-report-${Date.now()}-${++j}`;let b=!1,p=()=>{},R;const u=(f,c)=>{if(b)return;b=!0,R&&clearTimeout(R);let w;try{p()}catch(y){w=y}a?.removeEventListener("abort",k),f??=w,Promise.resolve().then(()=>g.terminate()).then(()=>f===void 0?v(c):i(f),y=>i(f??y))},k=()=>u(F(a?.reason)),m=f=>{const c=U(f,h);if(!(!c||b)){if("type"in c&&c.type==="event"){const w="event"in c?c.event:void 0;P.validReportWorkerEvent(w,s)?C.notifyReportTaskEvent(d,w,a):u(new Error("报表 Worker 返回无效阶段事件"));return}c.error&&typeof c.error.name=="string"&&typeof c.error.message=="string"?u(new P.ReportWorkerError(c.error)):P.validReportWorkerResult(c.result,o)&&(o==="prepare"||"format"in c.result&&"format"in s&&c.result.format===s.format)?u(void 0,c.result):u(new Error("报表 Worker 返回无效响应"))}};try{if(p=g.subscribe(m,f=>u(f??new Error("报表 Worker 执行失败"))),b){p();return}if(a?.addEventListener("abort",k,{once:!0}),R=setTimeout(()=>u(new P.ReportWorkerError({name:"ReportRuntimeError",code:"timeout",message:`报表 Worker 执行超过 ${t}ms`})),t),a?.aborted)k();else{const{onEvent:f,signal:c,...w}=s,y=N(w);g.postMessage({protocol:P.REPORT_WORKER_PROTOCOL,id:h,operation:o,input:w,...r.budget?{budget:r.budget}:{}},y)}}catch(f){u(f)}});return{exportPrepared:(o,s,a)=>n("exportPrepared",o,s,a),prepare:(o,s,a)=>n("prepare",o,s,a),export:(o,s,a)=>n("export",o,s,a)}}function N(e){return e.pdf?(e.pdf=O.snapshotPdfFonts(e.pdf),(e.pdf?.customFontFaces?Object.values(e.pdf.customFontFaces):[e.pdf?.customFontBytes]).filter(t=>t instanceof Uint8Array).map(t=>t.buffer)):[]}function _(e,r={}){return z(()=>{const t=e();return{postMessage:(n,o)=>t.postMessage(n,o),terminate:()=>t.terminate(),subscribe:(n,o)=>{const s=d=>n(d.data),a=d=>o(d instanceof ErrorEvent?new Error(d.message):new Error("报表 Worker 消息无法解码"));return t.addEventListener("message",s),t.addEventListener("error",a),t.addEventListener("messageerror",a),()=>{t.removeEventListener("message",s),t.removeEventListener("error",a),t.removeEventListener("messageerror",a)}}}},r)}const $={cells:2e4,pages:20,bytes:2e6};function T(e){return e.cells>=e.limits.cells||e.pages>=e.limits.pages||e.bytes>=e.limits.bytes||e.capped}function x(e){return++e.visits>=1e5&&(e.capped=!0),!T(e)}function E(e){return typeof e=="string"?e.length*2:0}function L(e,r){for(const t of e??[]){if(!x(r))return;for(const n of t.segments){if(!x(r))return;r.bytes+=E(n.text)}}}function S(e,r,t){if(t>32){r.capped=!0;return}if(x(r)){r.bytes+=E(e.text)+E(e.rawText)+E(e.imageData),L(e.richParagraphs,r);for(const n of e.lines??[]){if(!x(r))return;r.bytes+=E(n)}for(const n of e.grid?.cells??[]){if(!x(r))return;for(const o of n){if(!x(r))return;if(o){r.cells++,r.bytes+=E(o.text)+E(o.rawText)+E(o.value),L(o.richParagraphs,r);for(const s of o.children??[]){if(T(r))return;S(s,r,t+1)}}}}}}function H(e,r){if(e.format==="xlsx")for(const t of e.xlsx?.additionalSheets??[]){if(!x(r))return;r.bytes+=E(t?.name);for(const n of t?.rows??[]){if(!x(r))return;for(const o of n??[]){if(!x(r))return;r.cells++,r.bytes+=E(o)}}}}function G(e){const r={...$,...e.thresholds};for(const t of Object.values(r))if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("导出隔离阈值应为正安全整数");return r}function K(e,r){const t=G(r),n=e.pdf?.customFontFaces?Object.values(e.pdf.customFontFaces):[e.pdf?.customFontBytes],o={pages:e.prepared.plan.pages.length,cells:0,bytes:n.reduce((d,v)=>d+(v?.byteLength??0),0),visits:0,capped:!1,limits:t};for(const d of e.prepared.plan.pages){if(T(o))break;for(const v of d.components){if(T(o))break;S(v,o,0)}}H(e,o);let s=T(o)?"worker":"local",a=o.capped?"scan-limit":s==="worker"?"threshold":"small-task";return r.mode==="local"&&(s="local",a="explicit-local"),r.mode==="worker"&&(s="worker",a="explicit-worker"),Object.values(e.xlsx??{}).some(d=>typeof d=="function")&&(s="local",a="nonserializable-options"),{mode:s,reason:a,estimate:{pages:o.pages,cells:o.cells,bytes:o.bytes},hardCancellation:s==="worker"}}function X(e){if(e.mode!==void 0&&!["auto","local","worker"].includes(e.mode))throw new TypeError("无效的导出执行模式");if(e.fallback!==void 0&&!["local","error"].includes(e.fallback))throw new TypeError("无效的导出回退策略");l.validateBudget({...e.budget,maxDurationMs:e.timeoutMs??e.budget?.maxDurationMs??12e4})}function A(e,r){I.observeOutput(()=>e.onDecision?.({...r,estimate:{...r.estimate}}))}function B(e,r){return{...e,mode:"local",reason:r,hardCancellation:!1}}function D(e,r,t){l.assertBudget(t,"maxRows",e.stats.rows),l.assertBudget(t,"maxPages",e.stats.pages),l.assertBudget(t,"maxCells",e.stats.cells),l.assertBudget(t,"maxOutputBytes",e.bytes.byteLength),O.assertPreparedOutputBudget({...r,prepared:{...r.prepared,stats:e.stats}},t)}function J(e,r){const t={...l.DEFAULT_REPORT_RUNTIME_BUDGET,...r.budget},n=O.capturePreparedHandoff(e.prepared,t.maxPreparedBytes,e.signal),o={...e,prepared:n.prepared,pdf:O.snapshotPdfFonts(e.pdf),xlsx:O.snapshotXlsxOptions(e.xlsx)};return{request:o,forward:()=>({...o,prepared:n.forward()})}}function Q(e,r){X(e);const t={...e,thresholds:{...e.thresholds},budget:{...l.DEFAULT_REPORT_RUNTIME_BUDGET,...e.budget}},n=t.timeoutMs??t.budget.maxDurationMs??12e4,o=W.createReportRuntime({reports:{},budget:{...t.budget,maxDurationMs:n}}),s=new Set;let a=!1;const d=t.mode!=="worker"&&t.fallback!=="error";async function v(i,g){const h=Date.now(),b=()=>{const m=n-(Date.now()-h);if(m<=0)throw new l.ReportRuntimeError("timeout",`报表执行超过 ${n}ms`);return m};let p=K(i,t);if(p.reason==="nonserializable-options"&&t.mode==="worker")throw new TypeError("Worker 模式不接受函数选项;请使用本地模式或可序列化配置");if(p.mode==="worker"&&!r){if(!d)throw new M(new Error("未配置 workerFactory"));p=B(p,"worker-unavailable")}const R=J(i,t),u=R.request;if(A(t,p),l.throwIfAborted(i.signal),p.mode==="worker")try{const m=r(b());if(!m.exportPrepared)throw new TypeError("隔离执行器缺少 exportPrepared");const{signal:f,onEvent:c,...w}=u,y=await m.exportPrepared(w,f,c);return l.throwIfAborted(f),D(y,u,t.budget),{...y,execution:p}}catch(m){if(!(m instanceof M)||!d)throw m;l.throwIfAborted(i.signal),p=B(p,"worker-start-failed"),A(t,p)}g&&(u.prepared=W.enforcePrepared(u.prepared,t.budget),O.assertPreparedOutputBudget(u,t.budget));const k=g?await l.controlled(i.signal,b(),m=>g({...u,signal:m})):await l.controlled(i.signal,b(),m=>o.exportPrepared({...R.forward(),signal:m}));return l.throwIfAborted(i.signal),D(k,u,t.budget),{...k,execution:p}}return{async exportPrepared(i,g){if(a)throw new l.ReportRuntimeError("closed","导出执行器已释放");if(l.throwIfAborted(i.signal),s.size>=2)throw new l.ReportRuntimeError("queue-full","同时导出的任务已达 2 个,请等待完成后重试");const h=new AbortController;s.add(h);const b=()=>h.abort(i.signal?.reason);i.signal?.addEventListener("abort",b,{once:!0});try{return await v({...i,signal:h.signal},g)}finally{i.signal?.removeEventListener("abort",b),s.delete(h)}},cancel(){for(const i of s)i.abort()},dispose(){a=!0;for(const i of s)i.abort()}}}function q(e={}){const r=e.workerFactory,t={timeoutMs:e.timeoutMs??e.budget?.maxDurationMs,budget:{...e.budget}};return Q(e,r?n=>_(r,{...t,timeoutMs:n}):void 0)}const V=Object.freeze(Object.defineProperty({__proto__:null,createAutoReportExporter:q},Symbol.toStringTag,{value:"Module"}));exports.ReportWorkerStartError=M;exports.auto=V;exports.createAutoReportExporter=q;exports.createBrowserReportExecutor=_;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as S,
|
|
2
|
-
import { H as I } from "./json-snapshot-
|
|
3
|
-
import { b as W, R as
|
|
4
|
-
import {
|
|
5
|
-
import { c as K, e as X } from "./runtime-
|
|
6
|
-
import { D as
|
|
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 ===
|
|
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:
|
|
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 = { ...
|
|
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: { ...
|
|
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) {
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
function X(e, t) {
|
|
3
|
+
f(t.signal), E(() => t.onDiagnostic?.(e)), f(t.signal);
|
|
4
|
+
}
|
|
5
|
+
class j extends Error {
|
|
6
|
+
constructor(t, i) {
|
|
7
|
+
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";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const B = /* @__PURE__ */ new Set(["text", "rect", "line", "ellipse"]), G = /* @__PURE__ */ new Set(["image", "chart", "barcode", "qrcode"]);
|
|
11
|
+
function P(e, t) {
|
|
12
|
+
if (!e.grid) {
|
|
13
|
+
if (O(e))
|
|
14
|
+
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;
|
|
15
|
+
if (G.has(e.kind)) return { code: "missing-image", message: `${e.kind} requires imageData or a renderer adapter before output.` };
|
|
16
|
+
if (!B.has(e.kind)) return { code: "unsupported-component", message: `Unsupported component kind: ${e.kind}.` };
|
|
17
|
+
if (t === "xlsx" && e.kind !== "text") return { code: "unsupported-component", message: `XLSX data export omits ${e.kind} geometry.` };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function g(e, t, i, n, s) {
|
|
21
|
+
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;
|
|
22
|
+
return { ...s, severity: "warning", format: t, pageIndex: i, componentIndex: n, kind: e.kind, nid: e.nid, ...d ? { extension: d } : {} };
|
|
23
|
+
}
|
|
24
|
+
function h(e, t) {
|
|
25
|
+
if (!e || t === "dom") return;
|
|
26
|
+
const i = [];
|
|
27
|
+
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;
|
|
28
|
+
}
|
|
29
|
+
function S(e) {
|
|
30
|
+
if (!e) return;
|
|
31
|
+
const t = ["backgroundColor", "align", "verticalAlign", "lineHeight", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderColor", "lineColor", "lineWidthPt"].filter((i) => e[i] !== void 0);
|
|
32
|
+
return t.length ? `XLSX rich text does not retain independent run styles: ${t.join(", ")}.` : void 0;
|
|
33
|
+
}
|
|
34
|
+
function A(e) {
|
|
35
|
+
if (e.kind !== "text") return;
|
|
36
|
+
const t = S(e.style);
|
|
37
|
+
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}` : ""}` };
|
|
38
|
+
}
|
|
39
|
+
function w(e, t, i, n, s, o) {
|
|
40
|
+
const a = (u) => {
|
|
41
|
+
s.push({ ...g(e, t, i, n, { code: "unsupported-style", message: u }), componentPath: o });
|
|
42
|
+
};
|
|
43
|
+
for (const u of e.richParagraphs ?? []) {
|
|
44
|
+
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.");
|
|
45
|
+
const r = h({ align: u.align }, t);
|
|
46
|
+
r && a(r);
|
|
47
|
+
for (const d of u.segments) {
|
|
48
|
+
const c = h(d.style, t) ?? (t === "xlsx" ? S(d.style) : void 0);
|
|
49
|
+
c && a(c);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function D(e, t, i, n, s, o, a) {
|
|
54
|
+
if (a.has(e)) return;
|
|
55
|
+
const u = new Set(a).add(e), r = P(e, t);
|
|
56
|
+
r && o.push({ ...g(e, t, i, n, r), componentPath: s });
|
|
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), T(e, t, i, n, s, o, u);
|
|
59
|
+
}
|
|
60
|
+
function N(e, t, i) {
|
|
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
|
+
const n = A(e);
|
|
63
|
+
if (n) return n;
|
|
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
|
+
}
|
|
66
|
+
function R(e) {
|
|
67
|
+
let t;
|
|
68
|
+
return (i, n, s, o) => {
|
|
69
|
+
t ??= new Map(C(e.grid, e.widthMm, e.heightMm).cells.map((r) => [`${r.ri}:${r.ci}`, r]));
|
|
70
|
+
const a = t.get(`${n}:${s}`), u = 2 * (e.grid?.paddingMm ?? 0.5);
|
|
71
|
+
return N(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function T(e, t, i, n, s, o, a) {
|
|
75
|
+
const u = R(e);
|
|
76
|
+
for (const [r, d] of (e.grid?.cells ?? []).entries()) for (const [c, l] of d.entries()) {
|
|
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
|
+
const v = h(l?.style, t);
|
|
79
|
+
v && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: v }), componentPath: [...s, r, c] }), l?.richParagraphs?.length && w({ ...e, richParagraphs: l.richParagraphs }, t, i, n, o, [...s, r, c]);
|
|
80
|
+
for (const [m, p] of (l?.children ?? []).entries()) {
|
|
81
|
+
const b = [...s, r, c, m];
|
|
82
|
+
if (t === "xlsx") {
|
|
83
|
+
const x = u(p, r, c, l);
|
|
84
|
+
if (x && o.push({ ...g(p, t, i, n, x), componentPath: b }), p.grid) continue;
|
|
85
|
+
}
|
|
86
|
+
D(p, t, i, n, b, o, a);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function y(e, t, i) {
|
|
91
|
+
$(e), e.pages.forEach((n, s) => n.components.forEach((o, a) => D(o, t, s, a, [], i, /* @__PURE__ */ new Set())));
|
|
92
|
+
}
|
|
93
|
+
function _(e, t) {
|
|
94
|
+
const i = [];
|
|
95
|
+
return y(e, t, i), i;
|
|
96
|
+
}
|
|
97
|
+
function q(e, t, i = k) {
|
|
98
|
+
const n = M(i);
|
|
99
|
+
return y(e, t, n), n.snapshot();
|
|
100
|
+
}
|
|
101
|
+
function I(e, t, i, n) {
|
|
102
|
+
f(i.signal);
|
|
103
|
+
const s = M(i.diagnosticLimit);
|
|
104
|
+
n?.diagnosticSummary ? s.merge(n.diagnosticSummary) : n?.diagnostics.forEach((r) => s.push(r));
|
|
105
|
+
const o = s.entries.length, a = i.diagnosticLimit === void 0 ? void 0 : new Set(s.entries);
|
|
106
|
+
if (y(e, t, { push: (r) => {
|
|
107
|
+
f(i.signal), s.push(r);
|
|
108
|
+
} }), (a ? s.entries.filter((r) => !a.has(r)) : s.entries.slice(o)).forEach((r) => X(r, i)), i.fidelity === "strict" && s.total) throw new j(s.entries, i.diagnosticLimit === void 0 ? void 0 : s.snapshot());
|
|
109
|
+
return s;
|
|
110
|
+
}
|
|
111
|
+
function F(e, t, i) {
|
|
112
|
+
return I(e, t, i).entries;
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
j as O,
|
|
116
|
+
q as a,
|
|
117
|
+
I as c,
|
|
118
|
+
_ as i,
|
|
119
|
+
X as n,
|
|
120
|
+
F as r
|
|
121
|
+
};
|