@agile-team/mach-report 2.26.0 → 2.26.2
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 +16 -5
- package/dist/ExcelBindingWizard-CnjjpYxD.cjs +1 -0
- package/dist/{ExcelBindingWizard-B418l44t.js → ExcelBindingWizard-DAprCgn-.js} +4 -4
- package/dist/{ParamEditor-XvMtf_XQ.js → ParamEditor-CY9d8QZD.js} +3 -3
- package/dist/ParamEditor-CiVjpbc-.cjs +1 -0
- package/dist/ReportBatchPanel-0-Oymcdm.cjs +1 -0
- package/dist/{ReportBatchPanel-Ds0R_uXn.js → ReportBatchPanel-CDp7xRHp.js} +4 -4
- package/dist/ReportLabelStudio-CsyHqBco.cjs +1 -0
- package/dist/{ReportLabelStudio-ZFy79eRv.js → ReportLabelStudio-DtKxk9n0.js} +183 -183
- package/dist/ReportParamPanel-CoKcXzSy.cjs +1 -0
- package/dist/{ReportParamPanel-Czm3OPo_.js → ReportParamPanel-jKDJVar2.js} +2 -2
- package/dist/{ReportPreview-C9c0Rp7Y.js → ReportPreview-DJqt40zA.js} +2863 -2836
- package/dist/ReportPreview-s7c2nrfo.cjs +6 -0
- package/dist/ReportTemplateLibrary-CsUm6edm.cjs +1 -0
- package/dist/{ReportTemplateLibrary-XJVoTDIz.js → ReportTemplateLibrary-qPQX0Dt_.js} +2 -2
- package/dist/RuleEditor-CJBibiLY.cjs +1 -0
- package/dist/{RuleEditor-CeNFPeOc.js → RuleEditor-Di-JZ2Lb.js} +6 -6
- package/dist/{TemplateOutlinePanel-BWN4Y9iz.js → TemplateOutlinePanel-D0mKfVWf.js} +3 -3
- package/dist/TemplateOutlinePanel-RiRgXnnH.cjs +1 -0
- package/dist/TemplateReusePanel-BdK91T7z.cjs +1 -0
- package/dist/{TemplateReusePanel-CR-4OHoU.js → TemplateReusePanel-J6PvD2Sf.js} +3 -3
- package/dist/TemplateReviewPanel-B5yUgOgb.cjs +1 -0
- package/dist/{TemplateReviewPanel-BkWzyNL4.js → TemplateReviewPanel-BlUbD2GY.js} +3 -3
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.js +5 -5
- package/dist/artifact-integrity.json +112 -114
- package/dist/assets-CylgPA6P.cjs +1 -0
- package/dist/assets-Vt10jCtl.js +136 -0
- package/dist/auto-D3UNXBrM.cjs +1 -0
- package/dist/{auto-C7udkeAa.js → auto-Hq-xgrvS.js} +28 -25
- package/dist/{batch-DGCt44XM.js → batch-Be_NbW7U.js} +1 -1
- package/dist/{batch-DYcokH4v.cjs → batch-CI4ZpuoX.cjs} +1 -1
- package/dist/{charts-D-Vg-ak9.cjs → charts-Cy7muNWi.cjs} +1 -1
- package/dist/{charts-D48XCefN.js → charts-DLTz0OEG.js} +1 -1
- package/dist/{computed-BQgBrma-.cjs → computed-8nFyVnok.cjs} +1 -1
- package/dist/{computed-CH3NYPOW.js → computed-BR_O8uAv.js} +14 -20
- package/dist/{data-bar-DzceAVeR.cjs → data-bar--_aPWr-W.cjs} +1 -1
- package/dist/{data-bar-DjOgTLqu.js → data-bar-BVnzVbE9.js} +1 -1
- package/dist/designer-Bc5AXS38.cjs +2 -0
- package/dist/designer-CZqnLTyE.js +8350 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +108 -1
- package/dist/designer.d.ts +108 -1
- package/dist/designer.js +1 -1
- package/dist/{diagnostic-collector-C-JBA016.js → diagnostic-collector-CZ8DV6wA.js} +208 -186
- package/dist/diagnostic-collector-DwMJWEHo.cjs +1 -0
- package/dist/{dom-DgWc-DY1.js → dom-CbOWY7KE.js} +5 -5
- package/dist/dom-VuLh_fhL.cjs +1 -0
- package/dist/{encoding-tWc2Wn89.cjs → encoding-D0ITsCCp.cjs} +1 -1
- package/dist/{encoding-D480EM2r.js → encoding-TbA3oQLr.js} +2 -2
- package/dist/{execution-result-Ba65gieT.js → execution-result-BUPPNlaS.js} +3 -3
- package/dist/{execution-result-7sG_mdcD.cjs → execution-result-BgZtqlOT.cjs} +1 -1
- package/dist/{font-loader-CHmEwkHl.js → font-loader-BSRR-a0C.js} +1 -1
- package/dist/{font-loader-BIxme_9g.cjs → font-loader-BZ4CRPys.cjs} +1 -1
- package/dist/{grid-strokes-DsoICRjZ.js → grid-strokes-CovSH3A2.js} +1 -1
- package/dist/{grid-strokes-RFMR91jn.cjs → grid-strokes-G5omPT3s.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +23 -23
- package/dist/{json-snapshot-BZ0CIQln.js → json-snapshot-DRQmh_k5.js} +718 -683
- package/dist/json-snapshot-HR8bez8j.cjs +2 -0
- package/dist/{matrix-CB9TqTEy.js → matrix-6wjFVN0Z.js} +149 -142
- package/dist/matrix-DeA6__cd.cjs +1 -0
- package/dist/media-IV_r4Sp7.cjs +1 -0
- package/dist/media-jiLdCn3i.js +208 -0
- package/dist/{pdf-DTR7fAIr.js → pdf-BqnoP1L_.js} +14 -15
- package/dist/{pdf-d9oJ6V0P.cjs → pdf-Ddm0HCuT.cjs} +48 -48
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-B7Bi-1te.cjs → plugin-BFBLxfsq.cjs} +1 -1
- package/dist/{plugin-OKDFQFS4.js → plugin-BnRcXQzg.js} +1 -1
- package/dist/{prefill-C8fF91JB.js → prefill-BqbuktRt.js} +3 -3
- package/dist/{prefill-C_Bf_AMo.cjs → prefill-DPLV68I7.cjs} +1 -1
- package/dist/prepared-Cl7C69N7.cjs +1 -0
- package/dist/{prepared-DhgQ0d-h.js → prepared-V7tYf1qj.js} +68 -64
- package/dist/{protocol-CZ-BILne.cjs → protocol-BVhKnBmX.cjs} +1 -1
- package/dist/{protocol-DHO91-Jt.js → protocol-Bf33Gu9J.js} +3 -3
- package/dist/{record-bindings-KEs-DKCS.cjs → record-bindings-DVs_g_No.cjs} +1 -1
- package/dist/{record-bindings-DBrCu6zO.js → record-bindings-hxJqcLSK.js} +3 -3
- package/dist/{region-binding-workflow-ikpY1Kbw.cjs → region-binding-workflow-Bu31bqCr.cjs} +1 -1
- package/dist/{region-binding-workflow-FSyIZge8.js → region-binding-workflow-DRvX25XH.js} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{rich-text-layout-BYbIc3eJ.cjs → rich-text-layout-6VphrIcj.cjs} +1 -1
- package/dist/{rich-text-layout-BtygMWZC.js → rich-text-layout-BCdxMT4m.js} +1 -1
- package/dist/{runtime-BsvAqz4a.js → runtime-ChdUbPvs.js} +9 -9
- package/dist/{runtime-B5HG8poy.cjs → runtime-D2noLfgC.cjs} +1 -1
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2099 -1959
- package/dist/server.cjs +1 -1
- package/dist/server.js +17 -13
- package/dist/sha256-C26wdjDi.cjs +1 -0
- package/dist/sha256-D-msitGX.js +166 -0
- package/dist/style.css +1 -1
- package/dist/{template-catalog-BbrN9dgu.js → template-catalog-CZfnMXKc.js} +4 -4
- package/dist/template-catalog-Dv4sOYaB.cjs +1 -0
- package/dist/{template-fragments-CUTE8-_I.js → template-fragments-BO6i19kt.js} +3 -3
- package/dist/{template-fragments-cyAQu7aw.cjs → template-fragments-CTfJeHoM.cjs} +1 -1
- package/dist/{template-registry-PSuLsnyq.js → template-registry-CIaC6qBW.js} +168 -171
- package/dist/template-registry-CKo-bogM.cjs +1 -0
- package/dist/template-serialization-Cb1ospyK.js +367 -0
- package/dist/template-serialization-D4Fofl9c.cjs +1 -0
- package/dist/{textwrap-LhJkHWb1.cjs → textwrap-BYSqmGGV.cjs} +1 -1
- package/dist/{textwrap-Bt_tnI6V.js → textwrap-CGjFy7gf.js} +1 -1
- package/dist/usePopoverBounds-C3hn7F1s.js +84 -0
- package/dist/usePopoverBounds-mJhJ-VqG.cjs +1 -0
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +13 -10
- package/dist/{workbook-session-BJfZVp4q.cjs → workbook-session-DL3uBAl8.cjs} +1 -1
- package/dist/{workbook-session-DRnMjIFK.js → workbook-session-nkvroJUE.js} +2 -2
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.js +28 -29
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-C4FGVsY_.cjs +0 -1
- package/dist/ParamEditor-BemJE8n8.cjs +0 -1
- package/dist/ReportBatchPanel-CbY4fvXD.cjs +0 -1
- package/dist/ReportLabelStudio-DuTwN5er.cjs +0 -1
- package/dist/ReportParamPanel-Chxu4MTx.cjs +0 -1
- package/dist/ReportPreview-CIMR4ERo.cjs +0 -6
- package/dist/ReportTemplateLibrary-C6lByc69.cjs +0 -1
- package/dist/RuleEditor-gggUkEwB.cjs +0 -1
- package/dist/TemplateOutlinePanel-B0e-umq2.cjs +0 -1
- package/dist/TemplateReusePanel-Cthig1S1.cjs +0 -1
- package/dist/TemplateReviewPanel-D8o2gDaK.cjs +0 -1
- package/dist/_plugin-vue_export-helper-8SL1F89S.js +0 -53
- package/dist/_plugin-vue_export-helper-BLmdZLlg.cjs +0 -1
- package/dist/assets-BFTP-0WR.js +0 -137
- package/dist/assets-CZiZhTf2.cjs +0 -1
- package/dist/auto-CXd2E2aZ.cjs +0 -1
- package/dist/capabilities-D8UU2clQ.cjs +0 -1
- package/dist/capabilities-g0a2j9Yy.js +0 -125
- package/dist/designer-COuSUxZ1.cjs +0 -2
- package/dist/designer-CT4mlrr0.js +0 -7997
- package/dist/diagnostic-collector-wASg6Fzs.cjs +0 -1
- package/dist/dom-Fk4NF-gN.cjs +0 -1
- package/dist/json-snapshot-DGFeI30h.cjs +0 -2
- package/dist/matrix-CcqYOuq_.cjs +0 -1
- package/dist/media-B7vnpD8k.cjs +0 -1
- package/dist/media-Y90dHK9z.js +0 -70
- package/dist/prepared-BLhV7vdE.cjs +0 -1
- package/dist/sha256-BDQ1Qk7A.js +0 -158
- package/dist/sha256-DgZAKXqI.cjs +0 -1
- package/dist/template-catalog-DDH-5J57.cjs +0 -1
- package/dist/template-registry-D24Z8aQf.cjs +0 -1
- package/dist/template-serialization-BOUidUlh.cjs +0 -1
- package/dist/template-serialization-BgGWYV_1.js +0 -307
|
@@ -1,151 +1,149 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.26.
|
|
2
|
+
"version": "2.26.2",
|
|
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-CnjjpYxD.cjs": "04f5f0a41a531519ca2381fd202c49740abdc93d14702e3b06c275846a3909aa",
|
|
6
|
+
"ExcelBindingWizard-DAprCgn-.js": "dd8d09ec67c170deb2dfeff52424b3211c45c851b9b353dc84fcd46d2732a42b",
|
|
7
|
+
"ParamEditor-CY9d8QZD.js": "18701fe3818ac53b42d28b24fbec838372320e6d18317d9018e5f0c362d2cbf3",
|
|
8
|
+
"ParamEditor-CiVjpbc-.cjs": "2b0bf8c1b4e6c6ae2510ba6f4578711aebe982cf6004d61d586bb6ce0d9d56bc",
|
|
9
|
+
"ReportBatchPanel-0-Oymcdm.cjs": "d7fca590137dba4ce5d7ce889e1d6c846f4d7ac902098440c689db3a6c5ce677",
|
|
10
|
+
"ReportBatchPanel-CDp7xRHp.js": "1b239ce5acdd4d5aeae96b51b6bfbe860fb702b7cdea65ade991cb6ee89f8367",
|
|
11
|
+
"ReportLabelStudio-CsyHqBco.cjs": "61a212f477f4bafecdf256675d559103d466008c93fd8f7b9e5e7b81ef7b02d2",
|
|
12
|
+
"ReportLabelStudio-DtKxk9n0.js": "701b42f8de87c6e24d2586dadeff47b7e3a81b3945b8a87b24750da909ae3a6c",
|
|
13
|
+
"ReportParamPanel-CoKcXzSy.cjs": "829602d0ebaa7e504a1cdb68fdd4ef0f379ca4587642ef61422fde798d9e353d",
|
|
14
|
+
"ReportParamPanel-jKDJVar2.js": "74c26c4080efbb751c575e788255c8ad5585d5eb677162b90bde414e482e7a43",
|
|
15
|
+
"ReportPreview-DJqt40zA.js": "0c0a811932d6c0b4eeaffb06c04a344b27d37be707e76519a94565b3a802f809",
|
|
16
|
+
"ReportPreview-s7c2nrfo.cjs": "b6bb2b424030de900b2606397e106f76f997124427bb968b5d92d26b31d185f3",
|
|
17
|
+
"ReportTemplateLibrary-CsUm6edm.cjs": "3a5110cd5da37f69fa95bb0d5649eb9421ef63043d105d8716e067c4f57ae728",
|
|
18
|
+
"ReportTemplateLibrary-qPQX0Dt_.js": "005c44a45f7cf72af91ba3d94e42a5f82b464537ebc637ce40114ea023572012",
|
|
19
|
+
"RuleEditor-CJBibiLY.cjs": "25c222a7ab8e49ade52e5eef426b6106d98d1c5b052e5d912e42cda5ba55e4ff",
|
|
20
|
+
"RuleEditor-Di-JZ2Lb.js": "2b8e0ed493e97effe5f76b365763797bd824f35c47470cc45e59bd6a648091a3",
|
|
21
|
+
"TemplateOutlinePanel-D0mKfVWf.js": "ed80574dd61aeeebb73dd45b96cddfc84139df497ffebff9276d80a5939a183a",
|
|
22
|
+
"TemplateOutlinePanel-RiRgXnnH.cjs": "ac943c4bd29d0c32981785daefe39a71d13e33f12081af150ed15ff0186fc08f",
|
|
23
|
+
"TemplateReusePanel-BdK91T7z.cjs": "d8d308261aceed52dca72605e4acf88d27314a1e8b2bf4df44d59fc9932c1b25",
|
|
24
|
+
"TemplateReusePanel-J6PvD2Sf.js": "f3286320bdac67ddb1dfbf8c41be057161059d4562add38908ca7b948663ed86",
|
|
25
|
+
"TemplateReviewPanel-B5yUgOgb.cjs": "ed696441db71cf767971cb6d3ad880214ae925f8f20e06e58916944d6829bfac",
|
|
26
|
+
"TemplateReviewPanel-BlUbD2GY.js": "12b949cd0dc8c868b1831be99da9d15e26f89d7675f31bcfabe060ff8e1d2562",
|
|
27
27
|
"_commonjsHelpers-DKOUU3wS.cjs": "9fb4a8db4e3ab1aba23d44b6965615369004c05bfb5a323027ab5191080340d4",
|
|
28
28
|
"_commonjsHelpers-DaMA6jEr.js": "6d52e5d0f36d01714a54c94e082101e88ddce58c7189eeca8f2abc012a7cea12",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"batch-DGCt44XM.js": "8b4e701e19c6342025eea92f969437c0e288a88e53383d82ec1a895c72a1dd90",
|
|
38
|
-
"batch-DYcokH4v.cjs": "29a6bb725bd57b508ef61fa450993d87447aa0a0b74f56953f0f35651a148d51",
|
|
39
|
-
"capabilities-D8UU2clQ.cjs": "8d207815a73853786f007d95a68bc3ae9b3fb68d33c2282cee2d7cdfe0068ded",
|
|
40
|
-
"capabilities-g0a2j9Yy.js": "6bf5ef74f08fa35457d69fe63d4ae65d61df9fcf63147a9cd78e4a1a546dddff",
|
|
29
|
+
"analytics.cjs": "0848e5f0c9a625dab624af3ced6e0932f32c4222e6b93a03f9ed0ec91acf1c82",
|
|
30
|
+
"analytics.js": "a8d3bfbdc33185154f4ffc9570eea390f76c6d8d57abb3bd7baa6c4ea389f912",
|
|
31
|
+
"assets-CylgPA6P.cjs": "b9ea5651a2879c9091ad3a38ef6aebb7b6c5bb6ef9a34edd221c65cd25ffacfb",
|
|
32
|
+
"assets-Vt10jCtl.js": "b9970dd774a69ac83169e54f367e26a33ede248375d1790ae780b7eb0b9878d8",
|
|
33
|
+
"auto-D3UNXBrM.cjs": "8850ee14165f6a76aeee93358f74b94e7e111aec332920797796dcf981df644d",
|
|
34
|
+
"auto-Hq-xgrvS.js": "48e1059eddf432aca74d84e7d42816de1842cda02fd492c33699039b4c2b1273",
|
|
35
|
+
"batch-Be_NbW7U.js": "0a667c3738b9db164fbee2b3be9758ba9de8ec5bd40d5ab18078a0d537f3eea2",
|
|
36
|
+
"batch-CI4ZpuoX.cjs": "4279b87b8d1f3ddcc3107cf177b3dee0229f8ec2e7740d7957d755dc6da38345",
|
|
41
37
|
"cell-style-B6Qffrx8.js": "27ae0c26565db5f5ad715baf23945a7266ca9b22196ac6f3b7b5827be3484e91",
|
|
42
38
|
"cell-style-y_uh1pZp.cjs": "e2d99aeb7abba718722d1c7b5d1e689d2f6a6a485a593e76a5ae96fa335e0428",
|
|
43
|
-
"charts-
|
|
44
|
-
"charts-
|
|
39
|
+
"charts-Cy7muNWi.cjs": "9ef4ee73e6d20443984fa3dee0178c04d9d6f3d4cd792ec682c5f862a8ee913d",
|
|
40
|
+
"charts-DLTz0OEG.js": "3c309753329934bc0eb01a27bd0c5e6d5e14f21283d309a216a747a6ad5195ff",
|
|
45
41
|
"code-options-BKXXY7NI.js": "67696253b923c214c5b628f86c65968d4de6e0812cb142bdb043806be6158038",
|
|
46
42
|
"code-options-BUTChiZZ.cjs": "19e0f584437bbc31c39a662e20ae288c32b6e27db7f0fd9a79fd8c2465673011",
|
|
47
43
|
"codes.cjs": "1cb6e4e2cb75cfecb4f998dcdb1d822c8832bd993c65567446d6ea63ff213130",
|
|
48
44
|
"codes.js": "60794ba407233d62c22653f85ec21d0116287c2bee96f1c5c90a0075f9b3eb61",
|
|
49
|
-
"computed-
|
|
50
|
-
"computed-
|
|
51
|
-
"data-bar-
|
|
52
|
-
"data-bar-
|
|
45
|
+
"computed-8nFyVnok.cjs": "6828a4495bb5f3d18fce304db45520261e608ae3b60d20bc4450b6f96f1581a6",
|
|
46
|
+
"computed-BR_O8uAv.js": "768e519a5de9bd9334f3acc124107edabcf0d3975653f86b9821145e1c714168",
|
|
47
|
+
"data-bar--_aPWr-W.cjs": "b37ca25e8e423a104975a48724357e3000498b1bd475e5ab452f86b57adf84b4",
|
|
48
|
+
"data-bar-BVnzVbE9.js": "b2ff7f6bea77e0b6191487a83c204330c7f419c1a2a0cdb088fe1f164d8692f1",
|
|
53
49
|
"dataset-B8oTsC6o.js": "7e017ec1d9c7c490db80ac8e14109414cd6852299b7a77cd970a50d59f3286e0",
|
|
54
50
|
"dataset-D3OsyzG1.cjs": "4647a95fc854c947c0b875c4b2a30d45097fc6189a5d2bf01934751c1231bb00",
|
|
55
|
-
"designer-
|
|
56
|
-
"designer-
|
|
57
|
-
"designer.cjs": "
|
|
58
|
-
"designer.js": "
|
|
59
|
-
"diagnostic-collector-
|
|
60
|
-
"diagnostic-collector-
|
|
61
|
-
"dom-
|
|
62
|
-
"dom-
|
|
51
|
+
"designer-Bc5AXS38.cjs": "73990f6f4391e1c829af0ad0b3f50ba54b9b38d9638a0eec19ea265752cfb8a2",
|
|
52
|
+
"designer-CZqnLTyE.js": "ff4d9b5fe4a97bc2a2b29ec584a2026eb3211b62270189b1a4613a88a41fbbc7",
|
|
53
|
+
"designer.cjs": "143bff7ccaa0b40620b20559cf6a47d40a716924dd5ad8325b3407a36967ee4b",
|
|
54
|
+
"designer.js": "283addccec89916c6f6a8f436906d560e7711c32d39d9975e1b89b581a9d2b10",
|
|
55
|
+
"diagnostic-collector-CZ8DV6wA.js": "77e7feb5405b2aee9551f14335ed4157e9326d6613363b006add71a63914529a",
|
|
56
|
+
"diagnostic-collector-DwMJWEHo.cjs": "2e14685a996efd38cbbb464647a4f68d642ba30b3401a62be220d49c9cba3cdc",
|
|
57
|
+
"dom-CbOWY7KE.js": "c7106ee2b63d89b0bb44d8c1d59c82051725cb71dd0959dfa83cca5437612558",
|
|
58
|
+
"dom-VuLh_fhL.cjs": "bae960fd88f201f7d32ff318dc91a979688221566e10af0ba51e5eb7f7ce1aa8",
|
|
63
59
|
"dom-cell-address-DLD1mkTB.cjs": "6338fd0aff421f07e6d18dd013e951bf3ebb3f24eb62fb6b857465f0be9cfaa9",
|
|
64
60
|
"dom-cell-address-Fn-8nk7D.js": "ba69ee95af411e0c1ef51949009595099e14d75e43feb6628d9a9302e59abe25",
|
|
65
|
-
"encoding-
|
|
66
|
-
"encoding-
|
|
67
|
-
"execution-result-
|
|
68
|
-
"execution-result-
|
|
69
|
-
"font-loader-
|
|
70
|
-
"font-loader-
|
|
71
|
-
"grid-strokes-
|
|
72
|
-
"grid-strokes-
|
|
61
|
+
"encoding-D0ITsCCp.cjs": "c59aa7e7a2c4f2cf9e7006a6b1a0194fe9ce2b55291e427fe104a248aac0b44a",
|
|
62
|
+
"encoding-TbA3oQLr.js": "f3076ac9c1ac09405d506fd939404c997fc7e2a9051d33d084503f05c0b458ed",
|
|
63
|
+
"execution-result-BUPPNlaS.js": "a3d9bfb6ed1a566f0888b080722950e549b5898099ed58dd4238c1f1e2e53bb5",
|
|
64
|
+
"execution-result-BgZtqlOT.cjs": "628890bc11582883b49e777b80ddc33bc8126e63529d28941567c8ab8cfc7b79",
|
|
65
|
+
"font-loader-BSRR-a0C.js": "bb4048d671c0c8dd82407610d0f06338450b65ed3953f9cde0b32905cf07bc5a",
|
|
66
|
+
"font-loader-BZ4CRPys.cjs": "ab67191844f68d314337117b97ed774013865716593594f554b70f81709a036f",
|
|
67
|
+
"grid-strokes-CovSH3A2.js": "ada8f0891b2aa9d8483efc30da69f9a55ebdd90c461112d684149afb2a88d281",
|
|
68
|
+
"grid-strokes-G5omPT3s.cjs": "749d1d4e7a88a072b39bc29202506e61ed5a9f1c044c06a9600ef8e73356ca13",
|
|
73
69
|
"import-range-BwT86Z3j.cjs": "5ec2683e420639536ab54dc5d6dd747cd2bf0ed6bb1214de95e0ea59e9a77059",
|
|
74
70
|
"import-range-D9p_blcb.js": "6ef68cd66acbd530baba195f785d97fffefa4736b9dc243b4120544915ddf39e",
|
|
75
71
|
"index-CPh6tqge.js": "7c296b48cef38d5964457d24709d00ccc27f5129fe704680d05a07995296331a",
|
|
76
72
|
"index-CUNw7dL9.cjs": "3903d4cbd382319dcfbe79bc936898a53b9d3ea0eddf02c969f4834b51e3dd3d",
|
|
77
|
-
"index.cjs": "
|
|
78
|
-
"index.js": "
|
|
73
|
+
"index.cjs": "d5c1f1c4ce1d13ec9157109badc707d857d39257d08000af4d4300d82814799e",
|
|
74
|
+
"index.js": "c4216bf7f19690474f5184cb3c5f93a41991cbf1497bf3521be28017c2a41444",
|
|
79
75
|
"injection-keys-Db_DyLkm.cjs": "0d656460efa0c48f6153aae745dd61a7907128938d98b358b5b6d413db5ec4ed",
|
|
80
76
|
"injection-keys-e85udZCp.js": "101e96fc627b33003ba295d281e7f7bfb2c077300556b2bf039cb1938e36f582",
|
|
81
|
-
"json-snapshot-
|
|
82
|
-
"json-snapshot-
|
|
83
|
-
"matrix-
|
|
84
|
-
"matrix-
|
|
85
|
-
"media-
|
|
86
|
-
"media-
|
|
77
|
+
"json-snapshot-DRQmh_k5.js": "991c5c029b587ba20a8febc499ef685dd5aa4630f034ecb6cf54ec375d951b70",
|
|
78
|
+
"json-snapshot-HR8bez8j.cjs": "e4ad64b552b061454a077eb2f73b23089052fde7df163474c1c5a6786028ad65",
|
|
79
|
+
"matrix-6wjFVN0Z.js": "54b07e26130a1c85d7f084b400df2dde0b04333389ccdcfe27c45855b4f43f90",
|
|
80
|
+
"matrix-DeA6__cd.cjs": "1e45cd5032c483fccb11e9486721b163adf0659cdce8ccf7ba466f608458949b",
|
|
81
|
+
"media-IV_r4Sp7.cjs": "ed33494c26034f55f005dc935067f861a7d688680a46f78424d4fd7a0f0cecf1",
|
|
82
|
+
"media-jiLdCn3i.js": "7e83681e49eb76809a21ae7933d9446af97153126b34c0ce290171500d93a11c",
|
|
87
83
|
"number-format-BA_KwrZe.js": "0d508920bb83987e7bb73ebb1dcf985b06dde043b036e65c9907247e40ec1575",
|
|
88
84
|
"number-format-CZ2T_5kF.cjs": "bfbf7b30ddf4d27c80917f17c6609cb3a339436fc0a3d7a643ba5ac8faae0aec",
|
|
89
85
|
"param-validation-C-8sRJLq.cjs": "aee8af8de317622f4fc4c32585ae4ea2b837577392a861d57a81e869e0162f9a",
|
|
90
86
|
"param-validation-CnDEd2l-.js": "ebfea3402c3bac95fe3fc917f1ed9f2a69e36140b7c735ab995bad9ff2a03b26",
|
|
91
|
-
"pdf-
|
|
92
|
-
"pdf-
|
|
93
|
-
"pdf.cjs": "
|
|
94
|
-
"pdf.js": "
|
|
95
|
-
"plugin-
|
|
96
|
-
"plugin-
|
|
97
|
-
"prefill-
|
|
98
|
-
"prefill-
|
|
99
|
-
"prepared-
|
|
100
|
-
"prepared-
|
|
101
|
-
"protocol-
|
|
102
|
-
"protocol-
|
|
103
|
-
"record-bindings-
|
|
104
|
-
"record-bindings-
|
|
105
|
-
"region-binding-workflow-
|
|
106
|
-
"region-binding-workflow-
|
|
107
|
-
"report-encoding-worker.cjs": "
|
|
108
|
-
"report-encoding-worker.js": "
|
|
87
|
+
"pdf-BqnoP1L_.js": "5db2572622357aabe0479436185f070802550ace1d920ac6c00c0010e83ef05a",
|
|
88
|
+
"pdf-Ddm0HCuT.cjs": "696080ef2d0e197d100de775407e6a490e4c5abf71dbd108222d5e1c25f7af0c",
|
|
89
|
+
"pdf.cjs": "57a03d42a40f9f99072f0f3301c0433976c401a233701e622889095a66395955",
|
|
90
|
+
"pdf.js": "868804d40f2ad0fa5d2af3e16e6fa1528612e355e4848f00ea0d4b00c34b2344",
|
|
91
|
+
"plugin-BFBLxfsq.cjs": "6a24b79ce7ee11056cf7ee66c767fe3a7ebf4f440ff86ec8881fbaf78e207ef1",
|
|
92
|
+
"plugin-BnRcXQzg.js": "30c2462b53ae88f3bc0252d27a7b1d3e7f0f6b818c892fcd61e51f905974aa81",
|
|
93
|
+
"prefill-BqbuktRt.js": "c6a3169b3cc36026aa506d43c173b5e2a26e55640be86c4baf04d1e670970c8a",
|
|
94
|
+
"prefill-DPLV68I7.cjs": "55db2843d6e9c13993636798abd0485e4ffb5c3af9818c398f3380e39277244d",
|
|
95
|
+
"prepared-Cl7C69N7.cjs": "cbb8f6a21f2ac0fc4617211833ab45eaa14f2b2784e1bd052cdb8d34a7965946",
|
|
96
|
+
"prepared-V7tYf1qj.js": "510cabed1d947ebe21102db99fb4f514b5a16369363388f85f62d700b61bf9a3",
|
|
97
|
+
"protocol-BVhKnBmX.cjs": "9d47ca775e79dd2b05afa0486af8d6d3489fa3d4404d42ed16d17182d9486ce2",
|
|
98
|
+
"protocol-Bf33Gu9J.js": "9b5b6688f05545b3e1b7cd6835b7cfc3d6d1a5e70df7d06cace103650bcc8e93",
|
|
99
|
+
"record-bindings-DVs_g_No.cjs": "07fe36452b85417347e828c40da891287c27ca842b0b9eb3fa6c5691e048a761",
|
|
100
|
+
"record-bindings-hxJqcLSK.js": "261eb797452ab4a4190f6e1e7f0adf7a874adf66ca99088c1bd066b556baf218",
|
|
101
|
+
"region-binding-workflow-Bu31bqCr.cjs": "3cc970b6c0ba28aed395b7ed568c40468c34931eb0404d319b4798fa216762b1",
|
|
102
|
+
"region-binding-workflow-DRvX25XH.js": "03ab204b33f22a4d9dbe337ffe01a74052888d7e88398cef0bc95447141d7ad7",
|
|
103
|
+
"report-encoding-worker.cjs": "cc6caa8c6176c2af4961dd84ad9b915e5c45bd8510de89e2da066135b592354c",
|
|
104
|
+
"report-encoding-worker.js": "2c4b78a43ef98092a3b41df4413e569ee44377dfd62d8a997c044dc1cd6f8190",
|
|
109
105
|
"report-params-D9tBuM9B.js": "ece9133b39e06ff8769c039d94d6734ac46e5aef8c9a795c0255b217b8f4e560",
|
|
110
106
|
"report-params-VTg8MoCp.cjs": "06600716e1621dd96088355786c67db6ce12860030118777450b1eb0a3ba655b",
|
|
111
|
-
"rich-text-layout-
|
|
112
|
-
"rich-text-layout-
|
|
113
|
-
"runtime-
|
|
114
|
-
"runtime-
|
|
115
|
-
"server-node.cjs": "
|
|
116
|
-
"server-node.js": "
|
|
117
|
-
"server.cjs": "
|
|
118
|
-
"server.js": "
|
|
119
|
-
"sha256-
|
|
120
|
-
"sha256-
|
|
107
|
+
"rich-text-layout-6VphrIcj.cjs": "9aa93d5fedd49597a1e2aac01b590de83a124f4f8a1b77adae785bd17636ac1b",
|
|
108
|
+
"rich-text-layout-BCdxMT4m.js": "c0149d9f1adfd7736ad2658a7a00b44a26663150dc9e7c603a95be04ee8af9f5",
|
|
109
|
+
"runtime-ChdUbPvs.js": "39c7cd7dc59586b20638f204e3337dd84d05788f7e28f20aee6d9670ae716d50",
|
|
110
|
+
"runtime-D2noLfgC.cjs": "a43b898b94883a28699cf198d11770bd1a46a4966bf18541a2cd27c28fdc67fa",
|
|
111
|
+
"server-node.cjs": "9b4e758c5b6887bc785be4e14a860df1fb63a8d6b4b0020e33f4141ed08b1b8b",
|
|
112
|
+
"server-node.js": "a7de8415b85901144f7195e33d3f53119d057ad7383244f611cf973663bd81c7",
|
|
113
|
+
"server.cjs": "c0a5c02af40b0023f36120e6756f86a9f0007d65b5f74835e89ada6cb34fc054",
|
|
114
|
+
"server.js": "0d74f35752051a43d5e2e3605f285d3b67abd49666899fc46e463ae180e29a16",
|
|
115
|
+
"sha256-C26wdjDi.cjs": "a549a3da6ca4c9b7cfaa5c83377df0cd0b596e21b4c76b0b14d8a2f91d4688ed",
|
|
116
|
+
"sha256-D-msitGX.js": "2257f9743d39afb04427d9c812deeba28b8852a03c58c7062374e1c39201286d",
|
|
121
117
|
"sql.cjs": "3f6410be368c6f8e3677e5c8a10fa76943685c49da1ab725262def05b13872ff",
|
|
122
118
|
"sql.js": "8c44d864340e02ec5ee4512e31b787da5dd1d3e7be750ab8280cfe2d1d733c06",
|
|
123
|
-
"style.css": "
|
|
124
|
-
"template-catalog-
|
|
125
|
-
"template-catalog-
|
|
126
|
-
"template-fragments-
|
|
127
|
-
"template-fragments-
|
|
128
|
-
"template-registry-
|
|
129
|
-
"template-registry-
|
|
130
|
-
"template-serialization-
|
|
131
|
-
"template-serialization-
|
|
132
|
-
"textwrap-
|
|
133
|
-
"textwrap-
|
|
119
|
+
"style.css": "dc5fdf071c6cd92bffc1a7a337a7d497947cbbc179936ede630e41334177d2c8",
|
|
120
|
+
"template-catalog-CZfnMXKc.js": "336a9c34cf5eedd361a62565d8d4204ef9a9803e724883d63cc68fae2a8efae1",
|
|
121
|
+
"template-catalog-Dv4sOYaB.cjs": "651049636b6255653de0d99ac07db62a2fd7435494e79255e74caa0cef7eeaaf",
|
|
122
|
+
"template-fragments-BO6i19kt.js": "ca8cf34ff663cc80e498fb75ef5d775914a767075bf7f48a11e444ce08139fa1",
|
|
123
|
+
"template-fragments-CTfJeHoM.cjs": "32539e87e924b9d767041de830debbbf643834bd92f09b99af76987e9eece88b",
|
|
124
|
+
"template-registry-CIaC6qBW.js": "333a683db9482ef0578f18ef32341f43861e2cb328d2d2fea2fe9b95f01f45e3",
|
|
125
|
+
"template-registry-CKo-bogM.cjs": "d3150433834ea2f671d7e97afc0441ef05649a2416db47d46f2ba87e22fbc121",
|
|
126
|
+
"template-serialization-Cb1ospyK.js": "ab561adca3fa8e4550294c022fff60f190b936250687ddc7ec2e0044a999f054",
|
|
127
|
+
"template-serialization-D4Fofl9c.cjs": "24b39243e4357a5ad5b3b7709735f112339cf22f051ccd428471b0803dc4b341",
|
|
128
|
+
"textwrap-BYSqmGGV.cjs": "f6501cac05448362bdf2730959f1aff1540f6cf3fcf7f31e4d91908d3cd71927",
|
|
129
|
+
"textwrap-CGjFy7gf.js": "9670ea307d084b2ba561b55bc9d59797874a46d86721691822434db04cfaf856",
|
|
134
130
|
"useLocalDraft-BnhcxXk_.js": "4329b21ab9806f229ec5039c48d140184f1a8b17713972548016e36d8c5ad2a5",
|
|
135
131
|
"useLocalDraft-CioIfDb6.cjs": "4aecc84e63a2bef15f690937d5cea415a6e5c529b1d7a2575d738215c1ff908f",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"vue.cjs": "
|
|
139
|
-
"vue.js": "
|
|
140
|
-
"
|
|
141
|
-
"
|
|
132
|
+
"usePopoverBounds-C3hn7F1s.js": "8085b523367084b177326f586102ac746b00ca520bb4325b00d11a3c4913ebe9",
|
|
133
|
+
"usePopoverBounds-mJhJ-VqG.cjs": "e06ff475c73d58661446ae715ada360d29cc2bba6627e79bb9dee9c932d1689f",
|
|
134
|
+
"vue-async.cjs": "f1ef6f652e98cb5a70241d5996049f3c0f4988bee7976d252222b7e1bb0da0c9",
|
|
135
|
+
"vue-async.js": "d568226ee15ff8a9464ee2e486e7a0561cb943cf4dd2f80eaa833cd9a2fa3433",
|
|
136
|
+
"vue.cjs": "4d09be461084a80a31d82f6c7fd705b5f0180884a54b2aa885a1ffb132dc2a92",
|
|
137
|
+
"vue.js": "3011a1ec3420bb874e7ee64778d1f7663cd6defc4afe2c82869ca86dacceb053",
|
|
138
|
+
"workbook-session-DL3uBAl8.cjs": "1857d22cfa05773fa944cf818f003277be01a3da07081a9ceb3a9ca7d4f08c69",
|
|
139
|
+
"workbook-session-nkvroJUE.js": "1ec88ee85c62e9c48fa4ec2861be1ff0b3f13ccc4cd1649c8ac8dffbf24a04f6",
|
|
142
140
|
"workbook-sheets-CaPAulQ6.cjs": "7a9c89b6d94d3036bf13a5562cb799dcae6ae4c1824f0fa9a50e7938848bd2c4",
|
|
143
141
|
"workbook-sheets-D4M7XXBh.js": "650a92b5db22c6ff07e8c8a40e87febf3757f5abe7e3f07d67313ca3db7c9bc5",
|
|
144
|
-
"worker.cjs": "
|
|
145
|
-
"worker.js": "
|
|
142
|
+
"worker.cjs": "691ef75b967c653b849305aef8fb0a27069f6328daf80785d8217579dd02bb90",
|
|
143
|
+
"worker.js": "acb623ee60235c2551f165c3a091cd5c32bc9bc50a35549b6442810ef0ebfb3f",
|
|
146
144
|
"xlsx-node.cjs": "76095f4e35c10e76c243d572ceeddba19374824de7eee0f59256d29e4f43b148",
|
|
147
145
|
"xlsx-node.js": "b056a5bf33dfd9fdb5ce4eb962a41eb2294622da048b12fa3cc5ea946113cb27",
|
|
148
|
-
"xlsx.cjs": "
|
|
149
|
-
"xlsx.js": "
|
|
146
|
+
"xlsx.cjs": "997749578bb4eeba9e542677adf34cb363201c342a13e70d45098af66dd177e6",
|
|
147
|
+
"xlsx.js": "e2bdc8a9c1226018d3920cbb8c3613e92487dd40485ea3c854b8298dab6b34ef"
|
|
150
148
|
}
|
|
151
149
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("./diagnostic-collector-DwMJWEHo.cjs"),f=require("./media-IV_r4Sp7.cjs");class y extends Error{constructor(e,t){super(e.message),this.name="OutputAssetError",this.diagnostic=e,this.cause=t}}function w(n){if(n.aborted)throw n.reason??new DOMException("The operation was aborted.","AbortError")}function v(n){const e={maxAssets:1e3,maxImageBytes:33554432,maxTotalImageBytes:134217728,maxDurationMs:3e4,...n.assetBudget};for(const[t,r]of Object.entries(e))if(!Number.isSafeInteger(r)||r<=0||r>2147483647)throw new RangeError(`${t} must be a positive safe integer at most 2147483647.`);return e}function E(n){const e=/^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(n);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 b(n,e,t,r,i){const s={code:t,message:r,severity:"warning",format:n.options.format??"dom",pageIndex:e.pageIndex,componentIndex:e.componentIndex,componentPath:e.componentPath,kind:e.component.kind,nid:e.component.nid};if(n.diagnostics.push(s),f.notifyOutputDiagnostic(s,{...n.options,signal:n.signal}),n.options.assetFailure!=="placeholder")throw new y(s,i)}async function A(n,e,t){const r=n.options.assetRegistry?.rendererFor(e)??n.options.assetRenderers?.[e.kind];if(e.imageData||!r)return e.imageData;if(++n.rendered>n.budget.maxAssets)return b(n,t,"asset-budget-exceeded","Output exceeded the asset count budget.");let i;try{if(n.active=t,i=await h.waitForOutput(r({...t,signal:n.signal}),n.signal),w(n.signal),i.length>n.budget.maxImageBytes*4+1024)return b(n,t,"asset-budget-exceeded","Output exceeded the image payload byte budget.");const s=E(i);if(s>n.budget.maxImageBytes||n.bytes+s>n.budget.maxTotalImageBytes)return b(n,t,"asset-budget-exceeded","Output exceeded the encoded image byte budget.");/^data:image\/(png|jpe?g);base64,/i.test(i)&&n.inspectImage(i),n.bytes+=s}catch(s){if(n.signal.aborted||s instanceof y||s instanceof f.ImageMediaError&&s.code==="image-budget-exceeded")throw s;return b(n,t,"asset-render-failed",`Asset renderer failed for ${e.kind}; output was not silently omitted.`,s)}return i}function D(n,e){const t=n.active;if(!t){e.abort(new Error("Asset rendering exceeded maxDurationMs."));return}const r={code:"asset-budget-exceeded",message:"Asset rendering exceeded maxDurationMs.",severity:"warning",format:n.options.format??"dom",pageIndex:t.pageIndex,componentIndex:t.componentIndex,componentPath:t.componentPath,kind:t.component.kind,nid:t.component.nid};n.diagnostics.push(r);try{f.notifyOutputDiagnostic(r,{...n.options,signal:n.signal})}catch(i){e.abort(i);return}e.abort(new y(r))}async function O(n,e,t,r,i){if(!e?.children?.length)return e;const s=[];for(const[a,d]of e.children.entries())s.push(await I(n,d,{...t,component:d,componentPath:[...r,a]},i));return s.some((a,d)=>a!==e.children[d])?{...e,children:s}:e}async function I(n,e,t,r){if(w(n.signal),r.has(e))throw new TypeError("Cyclic grid children cannot be rendered.");let i=n.cache.get(e);i||(i=A(n,e,t),n.cache.set(e,i));const s=await i;w(n.signal);let a=e.grid;if(a){const d=new Set(r).add(e),l=[];for(const[m,o]of a.cells.entries()){if(!o.some(g=>g?.children?.length)){l.push(o);continue}const c=[];for(const[g,u]of o.entries())c.push(u?.children?.length?await O(n,u,t,[...t.componentPath,m,g],d):u);l.push(c.some((g,u)=>g!==o[u])?c:o)}l.some((m,o)=>m!==a.cells[o])&&(a={...a,cells:l})}return s!==e.imageData||a!==e.grid?{...e,imageData:s,grid:a}:e}function M(n,e,t){for(const r of n)if(h.assertOutputActive(t),r.imageData&&/^data:image\/(png|jpe?g);base64,/i.test(r.imageData))try{e(r.imageData)}catch(i){if(!(i instanceof f.ImageMediaError)||i.code==="image-budget-exceeded")throw i}}function T(n,e){const t={components:new Set,invalidContainer:void 0};h.assertBoundedRenderTree(n,t);const r=v(e),i=f.createImageMediaInspector(e);if(t.invalidContainer)throw new TypeError(`${t.invalidContainer}: 组件树容器应为数组`);return M(t.components,i,e.signal),{budget:r,inspectImage:i}}function C(n){if(n.options.fidelity==="strict"&&n.diagnostics.total)throw new f.OutputFidelityError(n.diagnostics.entries,n.options.diagnosticLimit===void 0?void 0:n.diagnostics.snapshot())}function x(n,e,t){return{plan:n,diagnostics:e.entries,...t===void 0?{}:{diagnosticSummary:e.snapshot()}}}async function R(n,e={}){h.assertOutputActive(e.signal);const t=h.createDiagnosticCollector(e.diagnosticLimit),{budget:r,inspectImage:i}=T(n,e);if(e.signal?.aborted)throw e.signal.reason??new DOMException("The operation was aborted.","AbortError");const s=new AbortController,a=()=>s.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),x(n,t,e.diagnosticLimit);const d={options:e,signal:s.signal,diagnostics:t,rendered:0,bytes:0,budget:r,cache:new WeakMap,inspectImage:i},l=setTimeout(()=>D(d,s),r.maxDurationMs);try{const m=[];for(const[o,c]of n.pages.entries()){if(o<(e.start??0)||o>(e.end??n.pages.length-1)){m.push(c);continue}const g=[];for(const[u,p]of c.components.entries())g.push(await I(d,p,{component:p,pageIndex:o,componentIndex:u,componentPath:[]},new Set));m.push(g.some((u,p)=>u!==c.components[p])?{...c,components:g}:c)}return w(d.signal),C(d),x(m.some((o,c)=>o!==n.pages[c])?{...n,pages:m}:n,d.diagnostics,e.diagnosticLimit)}finally{clearTimeout(l),e.signal?.removeEventListener("abort",a)}}exports.OutputAssetError=y;exports.resolvePlanAssets=R;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z as y, x as E, N as A, w as D } from "./diagnostic-collector-CZ8DV6wA.js";
|
|
2
|
+
import { d as O, n as x, O as M, I } from "./media-jiLdCn3i.js";
|
|
3
|
+
class b extends Error {
|
|
4
|
+
constructor(e, t) {
|
|
5
|
+
super(e.message), this.name = "OutputAssetError", this.diagnostic = e, this.cause = t;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function p(n) {
|
|
9
|
+
if (n.aborted) throw n.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
10
|
+
}
|
|
11
|
+
function T(n) {
|
|
12
|
+
const e = { maxAssets: 1e3, maxImageBytes: 33554432, maxTotalImageBytes: 134217728, maxDurationMs: 3e4, ...n.assetBudget };
|
|
13
|
+
for (const [t, r] of Object.entries(e))
|
|
14
|
+
if (!Number.isSafeInteger(r) || r <= 0 || r > 2147483647) throw new RangeError(`${t} must be a positive safe integer at most 2147483647.`);
|
|
15
|
+
return e;
|
|
16
|
+
}
|
|
17
|
+
function R(n) {
|
|
18
|
+
const e = /^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(n);
|
|
19
|
+
if (!e) throw new TypeError("Asset renderers must return an image data URL.");
|
|
20
|
+
return e[1] ? Math.ceil(e[2].length * 3 / 4) : new TextEncoder().encode(decodeURIComponent(e[2])).byteLength;
|
|
21
|
+
}
|
|
22
|
+
function h(n, e, t, r, i) {
|
|
23
|
+
const s = { code: t, message: r, severity: "warning", format: n.options.format ?? "dom", pageIndex: e.pageIndex, componentIndex: e.componentIndex, componentPath: e.componentPath, kind: e.component.kind, nid: e.component.nid };
|
|
24
|
+
if (n.diagnostics.push(s), x(s, { ...n.options, signal: n.signal }), n.options.assetFailure !== "placeholder") throw new b(s, i);
|
|
25
|
+
}
|
|
26
|
+
async function k(n, e, t) {
|
|
27
|
+
const r = n.options.assetRegistry?.rendererFor(e) ?? n.options.assetRenderers?.[e.kind];
|
|
28
|
+
if (e.imageData || !r) return e.imageData;
|
|
29
|
+
if (++n.rendered > n.budget.maxAssets) return h(n, t, "asset-budget-exceeded", "Output exceeded the asset count budget.");
|
|
30
|
+
let i;
|
|
31
|
+
try {
|
|
32
|
+
if (n.active = t, i = await D(r({ ...t, signal: n.signal }), n.signal), p(n.signal), i.length > n.budget.maxImageBytes * 4 + 1024) return h(n, t, "asset-budget-exceeded", "Output exceeded the image payload byte budget.");
|
|
33
|
+
const s = R(i);
|
|
34
|
+
if (s > n.budget.maxImageBytes || n.bytes + s > n.budget.maxTotalImageBytes) return h(n, t, "asset-budget-exceeded", "Output exceeded the encoded image byte budget.");
|
|
35
|
+
/^data:image\/(png|jpe?g);base64,/i.test(i) && n.inspectImage(i), n.bytes += s;
|
|
36
|
+
} catch (s) {
|
|
37
|
+
if (n.signal.aborted || s instanceof b || s instanceof I && s.code === "image-budget-exceeded") throw s;
|
|
38
|
+
return h(n, t, "asset-render-failed", `Asset renderer failed for ${e.kind}; output was not silently omitted.`, s);
|
|
39
|
+
}
|
|
40
|
+
return i;
|
|
41
|
+
}
|
|
42
|
+
function B(n, e) {
|
|
43
|
+
const t = n.active;
|
|
44
|
+
if (!t) {
|
|
45
|
+
e.abort(new Error("Asset rendering exceeded maxDurationMs."));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const r = { code: "asset-budget-exceeded", message: "Asset rendering exceeded maxDurationMs.", severity: "warning", format: n.options.format ?? "dom", pageIndex: t.pageIndex, componentIndex: t.componentIndex, componentPath: t.componentPath, kind: t.component.kind, nid: t.component.nid };
|
|
49
|
+
n.diagnostics.push(r);
|
|
50
|
+
try {
|
|
51
|
+
x(r, { ...n.options, signal: n.signal });
|
|
52
|
+
} catch (i) {
|
|
53
|
+
e.abort(i);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
e.abort(new b(r));
|
|
57
|
+
}
|
|
58
|
+
async function C(n, e, t, r, i) {
|
|
59
|
+
if (!e?.children?.length) return e;
|
|
60
|
+
const s = [];
|
|
61
|
+
for (const [a, d] of e.children.entries())
|
|
62
|
+
s.push(await v(n, d, { ...t, component: d, componentPath: [...r, a] }, i));
|
|
63
|
+
return s.some((a, d) => a !== e.children[d]) ? { ...e, children: s } : e;
|
|
64
|
+
}
|
|
65
|
+
async function v(n, e, t, r) {
|
|
66
|
+
if (p(n.signal), r.has(e)) throw new TypeError("Cyclic grid children cannot be rendered.");
|
|
67
|
+
let i = n.cache.get(e);
|
|
68
|
+
i || (i = k(n, e, t), n.cache.set(e, i));
|
|
69
|
+
const s = await i;
|
|
70
|
+
p(n.signal);
|
|
71
|
+
let a = e.grid;
|
|
72
|
+
if (a) {
|
|
73
|
+
const d = new Set(r).add(e), f = [];
|
|
74
|
+
for (const [m, o] of a.cells.entries()) {
|
|
75
|
+
if (!o.some((g) => g?.children?.length)) {
|
|
76
|
+
f.push(o);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
const c = [];
|
|
80
|
+
for (const [g, u] of o.entries()) c.push(u?.children?.length ? await C(n, u, t, [...t.componentPath, m, g], d) : u);
|
|
81
|
+
f.push(c.some((g, u) => g !== o[u]) ? c : o);
|
|
82
|
+
}
|
|
83
|
+
f.some((m, o) => m !== a.cells[o]) && (a = { ...a, cells: f });
|
|
84
|
+
}
|
|
85
|
+
return s !== e.imageData || a !== e.grid ? { ...e, imageData: s, grid: a } : e;
|
|
86
|
+
}
|
|
87
|
+
function L(n, e, t) {
|
|
88
|
+
for (const r of n)
|
|
89
|
+
if (y(t), r.imageData && /^data:image\/(png|jpe?g);base64,/i.test(r.imageData))
|
|
90
|
+
try {
|
|
91
|
+
e(r.imageData);
|
|
92
|
+
} catch (i) {
|
|
93
|
+
if (!(i instanceof I) || i.code === "image-budget-exceeded") throw i;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function P(n, e) {
|
|
97
|
+
const t = { components: /* @__PURE__ */ new Set(), invalidContainer: void 0 };
|
|
98
|
+
A(n, t);
|
|
99
|
+
const r = T(e), i = O(e);
|
|
100
|
+
if (t.invalidContainer) throw new TypeError(`${t.invalidContainer}: 组件树容器应为数组`);
|
|
101
|
+
return L(t.components, i, e.signal), { budget: r, inspectImage: i };
|
|
102
|
+
}
|
|
103
|
+
function F(n) {
|
|
104
|
+
if (n.options.fidelity === "strict" && n.diagnostics.total) throw new M(n.diagnostics.entries, n.options.diagnosticLimit === void 0 ? void 0 : n.diagnostics.snapshot());
|
|
105
|
+
}
|
|
106
|
+
function w(n, e, t) {
|
|
107
|
+
return { plan: n, diagnostics: e.entries, ...t === void 0 ? {} : { diagnosticSummary: e.snapshot() } };
|
|
108
|
+
}
|
|
109
|
+
async function $(n, e = {}) {
|
|
110
|
+
y(e.signal);
|
|
111
|
+
const t = E(e.diagnosticLimit), { budget: r, inspectImage: i } = P(n, e);
|
|
112
|
+
if (e.signal?.aborted) throw e.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
113
|
+
const s = new AbortController(), a = () => s.abort(e.signal?.reason);
|
|
114
|
+
if (e.signal?.addEventListener("abort", a, { once: !0 }), !e.assetRegistry && (!e.assetRenderers || !Object.keys(e.assetRenderers).length))
|
|
115
|
+
return e.signal?.removeEventListener("abort", a), w(n, t, e.diagnosticLimit);
|
|
116
|
+
const d = { options: e, signal: s.signal, diagnostics: t, rendered: 0, bytes: 0, budget: r, cache: /* @__PURE__ */ new WeakMap(), inspectImage: i }, f = setTimeout(() => B(d, s), r.maxDurationMs);
|
|
117
|
+
try {
|
|
118
|
+
const m = [];
|
|
119
|
+
for (const [o, c] of n.pages.entries()) {
|
|
120
|
+
if (o < (e.start ?? 0) || o > (e.end ?? n.pages.length - 1)) {
|
|
121
|
+
m.push(c);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const g = [];
|
|
125
|
+
for (const [u, l] of c.components.entries()) g.push(await v(d, l, { component: l, pageIndex: o, componentIndex: u, componentPath: [] }, /* @__PURE__ */ new Set()));
|
|
126
|
+
m.push(g.some((u, l) => u !== c.components[l]) ? { ...c, components: g } : c);
|
|
127
|
+
}
|
|
128
|
+
return p(d.signal), F(d), w(m.some((o, c) => o !== n.pages[c]) ? { ...n, pages: m } : n, d.diagnostics, e.diagnosticLimit);
|
|
129
|
+
} finally {
|
|
130
|
+
clearTimeout(f), e.signal?.removeEventListener("abort", a);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
b as O,
|
|
135
|
+
$ as r
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./prepared-Cl7C69N7.cjs"),C=require("./json-snapshot-HR8bez8j.cjs"),P=require("./protocol-BVhKnBmX.cjs"),I=require("./diagnostic-collector-DwMJWEHo.cjs"),W=require("./runtime-D2noLfgC.cjs"),u=require("./sha256-C26wdjDi.cjs"),j=require("./execution-result-BgZtqlOT.cjs");class M extends Error{constructor(r){super("报表 Worker 无法启动"),this.cause=r,this.name="ReportWorkerStartError"}}let U=0;function F(e){const r=new Error("报表 Worker 任务已取消");return r.name="AbortError",Object.defineProperty(r,"cause",{value:e}),r}function z(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 N(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((y,i)=>{let b;try{b=e()}catch(f){i(new M(f));return}const h=`mach-report-${Date.now()}-${++U}`;let w=!1,p=()=>{},k;const l=(f,c)=>{if(w)return;w=!0,k&&clearTimeout(k);let g;try{p()}catch(R){g=R}a?.removeEventListener("abort",v),f??=g,Promise.resolve().then(()=>b.terminate()).then(()=>f===void 0?y(c):i(f),R=>i(f??R))},v=()=>l(F(a?.reason)),m=f=>{const c=z(f,h);if(!(!c||w)){if("type"in c&&c.type==="event"){const g="event"in c?c.event:void 0;P.validReportWorkerEvent(g,s)?C.notifyReportTaskEvent(d,g,a):l(new Error("报表 Worker 返回无效阶段事件"));return}c.error&&typeof c.error.name=="string"&&typeof c.error.message=="string"?l(new P.ReportWorkerError(c.error)):P.validReportWorkerResult(c.result,o)&&(o==="prepare"||"format"in c.result&&"format"in s&&c.result.format===s.format)?l(void 0,c.result):l(new Error("报表 Worker 返回无效响应"))}};try{if(p=b.subscribe(m,f=>l(f??new Error("报表 Worker 执行失败"))),w){p();return}if(a?.addEventListener("abort",v,{once:!0}),k=setTimeout(()=>l(new P.ReportWorkerError({name:"ReportRuntimeError",code:"timeout",message:`报表 Worker 执行超过 ${t}ms`})),t),a?.aborted)v();else{const{onEvent:f,signal:c,...g}=s,R=$(g);b.postMessage({protocol:P.REPORT_WORKER_PROTOCOL,id:h,operation:o,input:g,...r.budget?{budget:r.budget}:{}},R)}}catch(f){l(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 $(e){if(!e.pdf)return[];e.pdf=O.snapshotPdfFonts(e.pdf);const r=e.pdf?.customFontFaces?Object.values(e.pdf.customFontFaces):[e.pdf?.customFontBytes];return[...new Set(r.filter(t=>t instanceof Uint8Array).map(t=>t.buffer))]}function _(e,r={}){return N(()=>{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 H={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 G(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 K(e){const r={...H,...e.thresholds};for(const t of Object.values(r))if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("导出隔离阈值应为正安全整数");return r}function X(e,r){const t=K(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,y)=>d+(y?.byteLength??0),0),visits:0,capped:!1,limits:t};for(const d of e.prepared.plan.pages){if(T(o))break;for(const y of d.components){if(T(o))break;S(y,o,0)}}G(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 J(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("无效的导出回退策略");u.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){u.assertBudget(t,"maxRows",e.stats.rows),u.assertBudget(t,"maxPages",e.stats.pages),u.assertBudget(t,"maxCells",e.stats.cells),u.assertBudget(t,"maxOutputBytes",e.bytes.byteLength),O.assertPreparedOutputBudget({...r,prepared:{...r.prepared,stats:e.stats}},t)}function Q(e,r){const t={...u.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 V(e,r){J(e);const t={...e,thresholds:{...e.thresholds},budget:{...u.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 y(i,b){const h=Date.now(),w=()=>{const m=n-(Date.now()-h);if(m<=0)throw new u.ReportRuntimeError("timeout",`报表执行超过 ${n}ms`);return m};let p=X(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 k=Q(i,t),l=k.request;if(A(t,p),u.throwIfAborted(i.signal),p.mode==="worker")try{const m=r(w());if(!m.exportPrepared)throw new TypeError("隔离执行器缺少 exportPrepared");const{signal:f,onEvent:c,...g}=l,R=await m.exportPrepared(g,f,c);return u.throwIfAborted(f),D(R,l,t.budget),{...R,execution:p}}catch(m){if(!(m instanceof M)||!d)throw m;u.throwIfAborted(i.signal),p=B(p,"worker-start-failed"),A(t,p)}b&&(l.prepared=W.enforcePrepared(l.prepared,t.budget),O.assertPreparedOutputBudget(l,t.budget));const v=b?await u.controlled(i.signal,w(),m=>b({...l,signal:m})):await u.controlled(i.signal,w(),m=>o.exportPrepared({...k.forward(),signal:m}));return u.throwIfAborted(i.signal),b&&j.assertReportExportResult(v,l.format),D(v,l,t.budget),{...v,execution:p}}return{async exportPrepared(i,b){if(a)throw new u.ReportRuntimeError("closed","导出执行器已释放");if(u.throwIfAborted(i.signal),s.size>=2)throw new u.ReportRuntimeError("queue-full","同时导出的任务已达 2 个,请等待完成后重试");const h=new AbortController;s.add(h);const w=()=>h.abort(i.signal?.reason);i.signal?.addEventListener("abort",w,{once:!0});try{return await y({...i,signal:h.signal},b)}finally{i.signal?.removeEventListener("abort",w),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 V(e,r?n=>_(r,{...t,timeoutMs:n}):void 0)}const Y=Object.freeze(Object.defineProperty({__proto__:null,createAutoReportExporter:q},Symbol.toStringTag,{value:"Module"}));exports.ReportWorkerStartError=M;exports.auto=Y;exports.createAutoReportExporter=q;exports.createBrowserReportExecutor=_;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as S, d as j, c as U, a as H } from "./prepared-
|
|
2
|
-
import { H as I } from "./json-snapshot-
|
|
3
|
-
import { b as W, R as C, v as $, c as N } from "./protocol-
|
|
4
|
-
import { A as G } from "./diagnostic-collector-
|
|
5
|
-
import { c as K, e as X } from "./runtime-
|
|
6
|
-
import { D as z, R as O, t as R, v as J, c as D, b as M } from "./sha256-
|
|
7
|
-
import { a as Q } from "./execution-result-
|
|
1
|
+
import { s as S, d as j, c as U, a as H } from "./prepared-V7tYf1qj.js";
|
|
2
|
+
import { H as I } from "./json-snapshot-DRQmh_k5.js";
|
|
3
|
+
import { b as W, R as C, v as $, c as N } from "./protocol-Bf33Gu9J.js";
|
|
4
|
+
import { A as G } from "./diagnostic-collector-CZ8DV6wA.js";
|
|
5
|
+
import { c as K, e as X } from "./runtime-ChdUbPvs.js";
|
|
6
|
+
import { D as z, R as O, t as R, v as J, c as D, b as M } from "./sha256-D-msitGX.js";
|
|
7
|
+
import { a as Q } from "./execution-result-BUPPNlaS.js";
|
|
8
8
|
class T extends Error {
|
|
9
9
|
constructor(r) {
|
|
10
10
|
super("报表 Worker 无法启动"), this.cause = r, this.name = "ReportWorkerStartError";
|
|
@@ -37,13 +37,13 @@ function Z(e, r = {}) {
|
|
|
37
37
|
const l = (f, c) => {
|
|
38
38
|
if (b) return;
|
|
39
39
|
b = !0, k && clearTimeout(k);
|
|
40
|
-
let
|
|
40
|
+
let w;
|
|
41
41
|
try {
|
|
42
42
|
d();
|
|
43
43
|
} catch (x) {
|
|
44
|
-
|
|
44
|
+
w = x;
|
|
45
45
|
}
|
|
46
|
-
n?.removeEventListener("abort", y), f ??=
|
|
46
|
+
n?.removeEventListener("abort", y), f ??= w, Promise.resolve().then(() => p.terminate()).then(
|
|
47
47
|
() => f === void 0 ? v(c) : i(f),
|
|
48
48
|
(x) => i(f ?? x)
|
|
49
49
|
);
|
|
@@ -51,8 +51,8 @@ function Z(e, r = {}) {
|
|
|
51
51
|
const c = Y(f, E);
|
|
52
52
|
if (!(!c || b)) {
|
|
53
53
|
if ("type" in c && c.type === "event") {
|
|
54
|
-
const
|
|
55
|
-
$(
|
|
54
|
+
const w = "event" in c ? c.event : void 0;
|
|
55
|
+
$(w, s) ? I(u, w, n) : l(new Error("报表 Worker 返回无效阶段事件"));
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
c.error && typeof c.error.name == "string" && typeof c.error.message == "string" ? l(new W(c.error)) : N(c.result, o) && (o === "prepare" || "format" in c.result && "format" in s && c.result.format === s.format) ? l(void 0, c.result) : l(new Error("报表 Worker 返回无效响应"));
|
|
@@ -65,8 +65,8 @@ function Z(e, r = {}) {
|
|
|
65
65
|
}
|
|
66
66
|
if (n?.addEventListener("abort", y, { once: !0 }), k = setTimeout(() => l(new W({ name: "ReportRuntimeError", code: "timeout", message: `报表 Worker 执行超过 ${t}ms` })), t), n?.aborted) y();
|
|
67
67
|
else {
|
|
68
|
-
const { onEvent: f, signal: c, ...
|
|
69
|
-
p.postMessage({ protocol: C, id: E, operation: o, input:
|
|
68
|
+
const { onEvent: f, signal: c, ...w } = s, x = ee(w);
|
|
69
|
+
p.postMessage({ protocol: C, id: E, operation: o, input: w, ...r.budget ? { budget: r.budget } : {} }, x);
|
|
70
70
|
}
|
|
71
71
|
} catch (f) {
|
|
72
72
|
l(f);
|
|
@@ -75,7 +75,10 @@ function Z(e, r = {}) {
|
|
|
75
75
|
return { exportPrepared: (o, s, n) => a("exportPrepared", o, s, n), prepare: (o, s, n) => a("prepare", o, s, n), export: (o, s, n) => a("export", o, s, n) };
|
|
76
76
|
}
|
|
77
77
|
function ee(e) {
|
|
78
|
-
|
|
78
|
+
if (!e.pdf) return [];
|
|
79
|
+
e.pdf = S(e.pdf);
|
|
80
|
+
const r = e.pdf?.customFontFaces ? Object.values(e.pdf.customFontFaces) : [e.pdf?.customFontBytes];
|
|
81
|
+
return [...new Set(r.filter((t) => t instanceof Uint8Array).map((t) => t.buffer))];
|
|
79
82
|
}
|
|
80
83
|
function re(e, r = {}) {
|
|
81
84
|
return Z(() => {
|
|
@@ -99,7 +102,7 @@ function P(e) {
|
|
|
99
102
|
function h(e) {
|
|
100
103
|
return ++e.visits >= 1e5 && (e.capped = !0), !P(e);
|
|
101
104
|
}
|
|
102
|
-
function
|
|
105
|
+
function g(e) {
|
|
103
106
|
return typeof e == "string" ? e.length * 2 : 0;
|
|
104
107
|
}
|
|
105
108
|
function L(e, r) {
|
|
@@ -107,7 +110,7 @@ function L(e, r) {
|
|
|
107
110
|
if (!h(r)) return;
|
|
108
111
|
for (const a of t.segments) {
|
|
109
112
|
if (!h(r)) return;
|
|
110
|
-
r.bytes +=
|
|
113
|
+
r.bytes += g(a.text);
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
}
|
|
@@ -117,17 +120,17 @@ function q(e, r, t) {
|
|
|
117
120
|
return;
|
|
118
121
|
}
|
|
119
122
|
if (h(r)) {
|
|
120
|
-
r.bytes +=
|
|
123
|
+
r.bytes += g(e.text) + g(e.rawText) + g(e.imageData), L(e.richParagraphs, r);
|
|
121
124
|
for (const a of e.lines ?? []) {
|
|
122
125
|
if (!h(r)) return;
|
|
123
|
-
r.bytes +=
|
|
126
|
+
r.bytes += g(a);
|
|
124
127
|
}
|
|
125
128
|
for (const a of e.grid?.cells ?? []) {
|
|
126
129
|
if (!h(r)) return;
|
|
127
130
|
for (const o of a) {
|
|
128
131
|
if (!h(r)) return;
|
|
129
132
|
if (o) {
|
|
130
|
-
r.cells++, r.bytes +=
|
|
133
|
+
r.cells++, r.bytes += g(o.text) + g(o.rawText) + g(o.value), L(o.richParagraphs, r);
|
|
131
134
|
for (const s of o.children ?? []) {
|
|
132
135
|
if (P(r)) return;
|
|
133
136
|
q(s, r, t + 1);
|
|
@@ -141,12 +144,12 @@ function oe(e, r) {
|
|
|
141
144
|
if (e.format === "xlsx")
|
|
142
145
|
for (const t of e.xlsx?.additionalSheets ?? []) {
|
|
143
146
|
if (!h(r)) return;
|
|
144
|
-
r.bytes +=
|
|
147
|
+
r.bytes += g(t?.name);
|
|
145
148
|
for (const a of t?.rows ?? []) {
|
|
146
149
|
if (!h(r)) return;
|
|
147
150
|
for (const o of a ?? []) {
|
|
148
151
|
if (!h(r)) return;
|
|
149
|
-
r.cells++, r.bytes +=
|
|
152
|
+
r.cells++, r.bytes += g(o);
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
}
|
|
@@ -209,7 +212,7 @@ function ce(e, r) {
|
|
|
209
212
|
try {
|
|
210
213
|
const m = r(b());
|
|
211
214
|
if (!m.exportPrepared) throw new TypeError("隔离执行器缺少 exportPrepared");
|
|
212
|
-
const { signal: f, onEvent: c, ...
|
|
215
|
+
const { signal: f, onEvent: c, ...w } = l, x = await m.exportPrepared(w, f, c);
|
|
213
216
|
return R(f), B(x, l, t.budget), { ...x, execution: d };
|
|
214
217
|
} catch (m) {
|
|
215
218
|
if (!(m instanceof T) || !u) throw m;
|
|
@@ -246,13 +249,13 @@ function le(e = {}) {
|
|
|
246
249
|
const r = e.workerFactory, t = { timeoutMs: e.timeoutMs ?? e.budget?.maxDurationMs, budget: { ...e.budget } };
|
|
247
250
|
return ce(e, r ? (a) => re(r, { ...t, timeoutMs: a }) : void 0);
|
|
248
251
|
}
|
|
249
|
-
const
|
|
252
|
+
const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
250
253
|
__proto__: null,
|
|
251
254
|
createAutoReportExporter: le
|
|
252
255
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
253
256
|
export {
|
|
254
257
|
T as R,
|
|
255
258
|
re as a,
|
|
256
|
-
|
|
259
|
+
ge as b,
|
|
257
260
|
le as c
|
|
258
261
|
};
|