allyhub 0.20.0 → 0.22.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/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/export.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/run.js +2 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +4 -4
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/blocks/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/block-shapes.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -5
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +2 -2
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +3 -3
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +9 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +151 -151
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +173 -173
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +1 -2
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +106 -101
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +26 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +8 -8
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/tile-shapes.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +2 -2
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +15 -14
- package/dist/run-register.js +2 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-BkVJMd53.js → abnfDiagram-WEYOIA3C-D6qI3rai.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-C6rnaynZ.js → architecture-WOLXFQ4H-B3V6ggq8.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-D3vrh8LK.js → architectureDiagram-ZHVYKT53-IauNyxXn.js} +1 -1
- package/editor-web/assets/article-BHjKp5We.js +3 -0
- package/editor-web/assets/article-BlNKv1Cn.js +7 -0
- package/editor-web/assets/bar-button-CJmpgNg4.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BKngt8H7.js → blockDiagram-RJAE7QA3-yXhlfxbH.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-j7sUELqF.js → c4Diagram-XDPPPE54-B-anrhvt.js} +1 -1
- package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
- package/editor-web/assets/channel-Bhb-_8v6.js +1 -0
- package/editor-web/assets/chip-pNQlYa2W.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-BXa-uRSi.js → chunk-2E7WHVMD-QPOni4XB.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-B3ntcsZN.js → chunk-4EMNKR2T-DG1FCRRI.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-AMvnFwUg.js → chunk-55XCU76K-mKuMXpnC.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-BA6esfFu.js → chunk-7S6XSTFO-CgZAazgt.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BT_vANXs.js → chunk-AQDTSKZB-BRU84phF.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-DoUgmzGB.js → chunk-DSNLSHJZ-zku9oeG3.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DtnIrCZb.js → chunk-HAGFOTED-CaUkBv_0.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BlPwQx3_.js → chunk-HNE4Q36P-BQz4ZCJf.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-D2r7jp2r.js → chunk-NQOKRVIF-CHVBEDkg.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-Cmc0_F5o.js → chunk-UHW7PFBP-DrYeJo1e.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-nJSMqAr0.js → chunk-VQ5W62QI-D8ToVCUe.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Btq2nbF6.js → chunk-WQQL4CDK-DZ0tyi9F.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-DTbcCoGt.js → chunk-YZO67HFG-BLe7PXER.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-DVwkg-2N.js → chunk-ZAUX2LTX-ByaeSIre.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-BV39jOOE.js → chunk-ZCHMQSOR-DdMJr_t5.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Cj74-fhM.js → classDiagram-v2-4MYWR3UA-DDpq7fFC.js} +1 -1
- package/editor-web/assets/collaborator-CbTacvkB.js +1 -0
- package/editor-web/assets/color-picker-CDeICDN5.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-C0CkiipV.js → cynefin-EF2NZ3EQ-CMivy2fr.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-hdsnJ4cI.js → cynefinDiagram-WF24UDRP-GtxT_9wW.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-CC7WSgaK.js → dagre-NK4GIZVX-Bn1O2Hjl.js} +1 -1
- package/editor-web/assets/deck-Cohd-G5m.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DmaVm13J.js → diagram-CBK3MWTC-W715PWZw.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-De8jqp7b.js → diagram-I5XIIV2D-BKObZPn2.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-B5pBTulX.js → diagram-ODIL2UCW-UtQxEPoW.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BYsXg5_w.js → diagram-PFBEJUXE-CpLGEK-k.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DZ8f6bYe.js → diagram-RJA3I4VV-DGyMXoHb.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-qXHUsauD.js → diagram-TYUNFSNR-Dy_Ewr8V.js} +1 -1
- package/editor-web/assets/dist-0I0Obj60.js +19 -0
- package/editor-web/assets/dist-6ugUm4dS.js +6 -0
- package/editor-web/assets/dist-B0rUvCi2.js +1 -0
- package/editor-web/assets/{dist-DAhe-kFC.js → dist-B8_6sJ_V.js} +1 -1
- package/editor-web/assets/dist-CKD_paj_.js +1 -0
- package/editor-web/assets/dist-CKUW5NzS.js +3 -0
- package/editor-web/assets/dist-Ca9Gsuu0.js +24 -0
- package/editor-web/assets/dist-Cc8v9lfc.js +1 -0
- package/editor-web/assets/dist-CynBNzYv.js +1 -0
- package/editor-web/assets/{dist-9kuRjUTN.js → dist-D7M5YTq2.js} +6 -6
- package/editor-web/assets/dist-D9tsFc2N.js +16 -0
- package/editor-web/assets/dist-DNMKDcLg.js +35 -0
- package/editor-web/assets/dist-Doj7_HUI.js +547 -0
- package/editor-web/assets/dist-DptBQzJR.js +1 -0
- package/editor-web/assets/dist-DzKB210A.js +5 -0
- package/editor-web/assets/{dist-B3rd02Cg.js → dist-H9rTuNhb.js} +6 -6
- package/editor-web/assets/{dist-DA72-4WB.js → dist-QLXI7XGS.js} +1 -1
- package/editor-web/assets/dist-RyGsFHE0.js +4 -0
- package/editor-web/assets/dist-oeSWr2LE.js +19 -0
- package/editor-web/assets/dist-wD_hHJ8_.js +19 -0
- package/editor-web/assets/{docx-draw-L54blreB.js → docx-draw-B5cM77hc.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-B7-IfVI-.js → ebnfDiagram-V4P3TTPT-GPYcx6dU.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Gj_WaeBn.js → elk-QONTBCTQ-Bi0r4UFM.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BDF6Qoqx.js → erDiagram-KYQIGQAA-DrOSrnci.js} +1 -1
- package/editor-web/assets/esm-jIPnpbBD.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-elxVXXEe.js → eventmodeling-K75KTNOO-Dw-MjgUb.js} +1 -1
- package/editor-web/assets/eye-DwfE1USj.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-DbZTfPEP.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CEogW3jW.js → ganttDiagram-R7GPNTJY-Bwe8cQqi.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Bh9cRWFa.js → gitGraph-VSP46ZUC-DsAcAKP0.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BQAvdM_V.js → gitGraphDiagram-PDYL7XHY-aObRwdru.js} +1 -1
- package/editor-web/assets/hint-F4fIBnVU.js +1 -0
- package/editor-web/assets/index-Cah2zchD.css +2 -0
- package/editor-web/assets/index-D-MNVykg.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-CdPrqere.js → info-OHQRW6UA-DBPN8JFr.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-uwIMeP44.js → infoDiagram-MVDRKAX5-Bx26Hq7M.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-rtfvqK7E.js → ishikawaDiagram-HPEHV2GE-BJ_MCDwA.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-mmhfIyVG.js → journeyDiagram-BOSHW7O7-B5g4W2Dx.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Fe7jBsi-.js → kanban-definition-FNSA4HC5-U8YNlxN7.js} +1 -1
- package/editor-web/assets/layout-CuWN7_3k.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-BxOSjBH9.js → mermaid-parser.core-DYLQlYDo.js} +3 -3
- package/editor-web/assets/{mermaid.core-BOln9YdH.js → mermaid.core-qNJmZ0b4.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-M3Q1LOtO.js → mindmap-definition-6OY57UG3-CI5aBWbK.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-Dbb0TUG6.js → packet-JDAUHWVQ-BBclMGlJ.js} +1 -1
- package/editor-web/assets/palette-DchDLJj6.js +1 -0
- package/editor-web/assets/panes-BShVq38A.js +3 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-BZMRpSFC.js → pegDiagram-ECIUJNBX-B3pljPTu.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-Ctm9XdKp.js → pie-XZMESJXO-B7WzimHm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-cGbs5ZTl.js → pieDiagram-GNMPY74T-tM1Da50-.js} +1 -1
- package/editor-web/assets/progress-D1Uv3d1b.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-BUe_zsxT.js → quadrantDiagram-D57K4MC3-BEq_Shj9.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-CCmKtqLs.js → radar-ABXABTNO-v2jJSW5T.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-k-yhjhjA.js → railroad-I3PHUGI6-6W3Z4F8Y.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-B-PvntB3.js → railroad-abnf-LNEFI6M7-DxIN7Zrt.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-Ds2rua1h.js → railroad-ebnf-DWYD2UWJ-Bb5O7tAx.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-jNZ2wEp2.js → railroad-peg-JR7BVNR7-i2LjEP5t.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-CTqSQ15w.js → railroadDiagram-Y72NRBL7-DhsyVKbG.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-CUblhR5M.js → requirementDiagram-EQYSW5RA-Du2k7i1E.js} +1 -1
- package/editor-web/assets/ribbon-tabs-Bxuj_hct.js +1 -0
- package/editor-web/assets/row-DqS4-5b1.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-nSz6zDX3.js → sankeyDiagram-SY24JHO5-CDnRMu7J.js} +1 -1
- package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DxTpOYuo.js → sequenceDiagram-BLEHNHQU-BUXBhWYW.js} +1 -1
- package/editor-web/assets/{session-BhClkDyr.js → session--OJYv_B7.js} +1 -1
- package/editor-web/assets/{snapshots-DwGHDN3t.js → snapshots-DYooVfOx.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-C3e14iHY.js → stateDiagram-v2-A6IESKWZ-Enb8LZUA.js} +1 -1
- package/editor-web/assets/surface-BUoi7cmR.js +1 -0
- package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-DPPdzNzu.js → swimlanes-B3ENRKFQ-pnpjgTrl.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B-B2Eoc8.js +8 -0
- package/editor-web/assets/switch-b6GCy_ix.js +1 -0
- package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
- package/editor-web/assets/tablet-C6oePHEW.js +1 -0
- package/editor-web/assets/textarea-Bu6uPEqT.js +1 -0
- package/editor-web/assets/themes-D_ISkWVz.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-DRTJ1_Er.js → timeline-definition-JXYKGLGB-C4pR18kd.js} +1 -1
- package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-BYJ_m-i5.js → treeView-D4JQ5SDB-kzNGeAv6.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BcU6I6Rg.js → treemap-SAJKECNS-Buhb5wzt.js} +1 -1
- package/editor-web/assets/updating-Cbxw83_O.js +1 -0
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-YV92pS4o.js → usecaseDiagram-WPOLBNNX-CL-xLQWl.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-oAvfHZtf.js → vennDiagram-Q3Y3IDCW-bwsyCcdK.js} +1 -1
- package/editor-web/assets/{video-SJvDRCJK.js → video-8MxWX9f5.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-BLNiqxtt.js → wardley-7MLQ67FV-DXsLgedI.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-SppgC6xW.js → wardleyDiagram-IVAIDKWA-Cn0ph953.js} +1 -1
- package/editor-web/assets/{words-BUlNNuH2.js → words-B2jQwWpp.js} +1 -1
- package/editor-web/assets/{words-zMedmPWc.js → words-DgMuEmDO.js} +1 -1
- package/editor-web/assets/workbook-BDWkQ149.js +41 -0
- package/editor-web/assets/x-BAJilkKD.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-BHMn_jwJ.js → xychartDiagram-4URNHDU4-CfXnqGWZ.js} +1 -1
- package/editor-web/index.html +6 -6
- package/package.json +5 -2
- package/editor-web/assets/article-DHf6mOY_.js +0 -7
- package/editor-web/assets/article-Dns1-Xh-.js +0 -3
- package/editor-web/assets/bar-button-CKPfx2AB.js +0 -1
- package/editor-web/assets/channel-CVWSV3su.js +0 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +0 -1
- package/editor-web/assets/collaborator-XiHOxwGM.js +0 -1
- package/editor-web/assets/deck-DQpNIS2p.js +0 -1
- package/editor-web/assets/dist--z0ZHp4T.js +0 -16
- package/editor-web/assets/dist-B5GOGGEe.js +0 -1
- package/editor-web/assets/dist-Bx6q9kCu.js +0 -1
- package/editor-web/assets/dist-C4hHtrJr.js +0 -1
- package/editor-web/assets/dist-CCXJewsi.js +0 -19
- package/editor-web/assets/dist-CfK2BLl8.js +0 -4
- package/editor-web/assets/dist-Cmux3oJ_.js +0 -1
- package/editor-web/assets/dist-Cspf85KV.js +0 -6
- package/editor-web/assets/dist-DOrGo1GD.js +0 -19
- package/editor-web/assets/dist-DjiCHlSu.js +0 -35
- package/editor-web/assets/dist-Do4a40Wn.js +0 -19
- package/editor-web/assets/dist-FKEWS3Co.js +0 -547
- package/editor-web/assets/dist-QKd2i6kG.js +0 -5
- package/editor-web/assets/dist-SGnOfLhx.js +0 -24
- package/editor-web/assets/dist-VmVB7tl4.js +0 -3
- package/editor-web/assets/esm-PQD5Pn8a.js +0 -21
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +0 -1
- package/editor-web/assets/hint-CbwoSBMw.js +0 -1
- package/editor-web/assets/index-CXisi0Cj.css +0 -2
- package/editor-web/assets/index-wMlfx8aT.js +0 -28
- package/editor-web/assets/layout-SWqqA0yV.js +0 -1
- package/editor-web/assets/progress-DZQTiRLv.js +0 -6
- package/editor-web/assets/ribbon-DajdQ_Ya.js +0 -1
- package/editor-web/assets/row-Bei9HNEe.js +0 -1
- package/editor-web/assets/schemas-C21MyseF.js +0 -1
- package/editor-web/assets/split-DBAbwPZ5.js +0 -3
- package/editor-web/assets/surface-CIF0Ae0z.js +0 -1
- package/editor-web/assets/swatch-BUzr_XmH.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +0 -8
- package/editor-web/assets/switch-DrZxoPQS.js +0 -1
- package/editor-web/assets/syntax-emXV4DnN.js +0 -1
- package/editor-web/assets/tabs-BwU2E7bU.js +0 -1
- package/editor-web/assets/textarea-BX_ax3X8.js +0 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
- package/editor-web/assets/type-CvZ0HZsV.js +0 -41
- package/editor-web/assets/workbook-BZKYx4WB.js +0 -41
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,l as n,o as r,s as i,u as a}from"./schemas-C21MyseF.js";import{d as o,l as s,s as c}from"./tolerant-DM9s0Mt1.js";import{Bn as l,Cn as u,Fn as d,Hn as f,Jn as p,Kn as m,Kt as h,On as g,Qn as _,Rn as v,Un as y,Xn as b,Yn as x,_n as S,an as C,cn as w,dn as T,en as E,fn as D,gn as O,hn as k,it as A,ln as j,mn as M,nn as N,nr as P,on as F,pn as I,rr as L,sn as ee,tn as R,tr as z,un as B,vn as V,wn as te}from"./dist-DjiCHlSu.js";import{a as ne,i as H,t as re}from"./browser-C1XuTMlp.js";import{P as ie,b as U}from"./dist-B3rd02Cg.js";import{i as ae,n as W,r as oe}from"./dist-CCXJewsi.js";var se=9525;function ce(e){if(Array.isArray(e))return e.map(ce).join(``);if(typeof e!=`object`||!e)return``;let t=e,n=[];for(let[e,r]of Object.entries(t))e===`t`?n.push(V(r)):typeof r==`object`&&n.push(ce(r));return n.join(``)}var le=e=>{let t=O(e?.solidFill),n=B(O(t?.srgbClr),`val`);return n===void 0?ue[B(O(t?.schemeClr),`val`)??``]:`#${n.toUpperCase()}`},ue={accent1:`#4472C4`,accent2:`#ED7D31`,accent3:`#A5A5A5`,accent4:`#FFC000`,accent5:`#5B9BD5`,accent6:`#70AD47`},G=(e,t)=>B(O(e?.[t]),`val`),K=(e,t)=>I(O(e?.[t]),`val`),de=(e,t)=>D(O(e?.[t]),`val`),fe=e=>/^"(?:[^"]|"")*"$/u.test(e)?e.slice(1,-1).replaceAll(`""`,`"`):void 0,pe=e=>fe(e)??`=${e}`;function me(e){if(!e)return;let t=O(e.tx),n=O(t?.strRef);if(n)return pe(V(n.f));let r=ce(t?.rich);return r===``?void 0:r}function he(e){if(!e)return;let t=O(e.scaling),n=O(e.numFmt),r=B(n,`formatCode`),i={},a=me(O(e.title));a!==void 0&&(i.title=a);let o=K(t,`min`),s=K(t,`max`),c=K(e,`majorUnit`);return o!==void 0&&(i.min=o),s!==void 0&&(i.max=s),c!==void 0&&c>0&&(i.major=c),de(e,`delete`)===!0&&(i.visible=!1),G(t,`orientation`)===`maxMin`&&(i.reverse=!0),r!==void 0&&r!==`General`&&D(n,`sourceLinked`)!==!0&&(i.format=r),i}var q=e=>{let t=O(e?.numRef)??O(e?.strRef),n=t?V(t.f):``;return n===``?void 0:n};function ge(e,t,n=!1){let r=q(O(e[t?`yVal`:`val`]));if(r===void 0)return`its numbers are written in the chart`;let i={values:r},a=O(e.tx),o=q(a);if(o!==void 0)i.name=pe(o);else{let e=V(a?.v);e!==``&&(i.name=e)}let s=O(e.spPr),c=O(s?.ln),l=O(e.marker),u=t||l!==void 0,d=le(s)??(u?le(c)??le(O(l?.spPr)):void 0);d!==void 0&&(i.color=d);let f=I(c,`w`);if(u&&f!==void 0&&c?.noFill===void 0){let e=Math.max(.25,Number((f/12700).toFixed(2)));e!==U.lineWidth&&(i.line_width=e)}n&&c?.noFill!==void 0&&(i.line_width=0),de(e,`smooth`)===!0&&(i.smooth=!0);let p=K(l,`size`);p!==void 0&&p!==U.marker&&(i.marker_size=p);let m=t?q(O(e.xVal)):void 0;m!==void 0&&(i.x=m);let h=q(O(e.bubbleSize));h!==void 0&&(i.sizes=h);let g=t?void 0:q(O(e.cat));return{series:i,...g===void 0?{}:{categories:g}}}function _e(e,t){let n=S(t.ser),r=e=>O(O(e.spPr)?.ln)?.noFill!==void 0,i=e=>G(O(e.marker),`symbol`)===`none`;switch(e){case`barChart`:return ve(t);case`lineChart`:return n.every(i)?`line`:`line-markers`;case`areaChart`:return ye(t);case`pieChart`:return`pie`;case`doughnutChart`:return`doughnut`;case`scatterChart`:return n.every(r)?`scatter`:n.some(e=>de(e,`smooth`)===!0)?`scatter-smooth`:`scatter-lines`;case`radarChart`:return G(t,`radarStyle`)===`filled`?`radar-filled`:n.every(i)?`radar`:`radar-markers`;case`bubbleChart`:return`bubble`;case`stockChart`:return n.length>=4&&t.upDownBars!==void 0?`stock-ohlc`:`stock-hlc`;default:return}}function ve(e){let t=G(e,`barDir`)===`bar`?`bar`:`column`,n=G(e,`grouping`);return n===`stacked`?`${t}-stacked`:n===`percentStacked`?`${t}-stacked-100`:`${t}-clustered`}function ye(e){let t=G(e,`grouping`);return t===`stacked`?`area-stacked`:t===`percentStacked`?`area-stacked-100`:`area`}function be(e){let t=O(O(e?.numRef)?.numCache)??O(e?.numLit),n=[];for(let e of S(t?.pt)){let t=Number(V(e.v));n[I(e,`idx`)??n.length]=Number.isFinite(t)?t:null}return Array.from(n,e=>e??null)}function xe(e){let t=[];for(let n of S(e.ser)){let e=S(n.errBars),r=G(e[0],`errDir`),i=O(n.marker),a=G(i,`symbol`),o=O(n.tx),s=e.length===1&&r===`x`?`actual`:e.length===1&&r===`y`?`target`:e.length>0?void 0:o===void 0&&a===`none`?`join`:a===`none`?void 0:`dot`,c=O(n.xVal),l=q(c);if(s===void 0||l===void 0)return;let u={values:l},d=q(o),f=V(o?.v);d===void 0?f!==``&&(u.name=f):u.name=pe(d);let p=le(O(s===`dot`?i?.spPr:O(e[0]?.spPr)?.ln));p!==void 0&&(u.color=p);let m=K(i,`size`);s===`dot`&&m!==void 0&&m!==9&&(u.marker_size=m),t.push({kind:s,series:u,numbers:be(c)})}return t}function Se(e,t,n){let r=t.find(e=>e.kind===`actual`),i=t.find(e=>e.kind===`target`),a=t.filter(e=>e.kind===`dot`);if(!r&&(i!==void 0||a.length===0))return;let o=r?`bullet`:`dumbbell`,s=(e,t)=>{let{color:n,...r}=e.series;return n===void 0||n===ue[`accent${String(t%6+1)}`]?r:e.series},c=r?[s(r,0),...i?[i.series]:[],...[...e.series].reverse()]:a.map(s),l=r?[r.numbers,i?.numbers??[],...S(n.ser).map(e=>be(O(e.val)))]:a.map(e=>e.numbers),u=Math.max(0,...l.map(e=>e.length)),d=ie({type:o,categories:Array.from({length:u},()=>``),series:l.map((e,t)=>({name:String(t),values:e}))}).value_axis??{},{gap_width:f,category_axis:p,value_axis:m,...h}=e;delete h.overlap;let g={...p};delete g.reverse;let{min:_,max:v,major:y,gridlines:b,...x}=m??{},C={...x,..._===void 0||_===d.minimum_scale?{}:{min:_},...v===void 0||v===d.maximum_scale?{}:{max:v},...y===void 0||y===d.major_unit?{}:{major:y},...b===void 0||b===(d.has_major_gridlines??!0)?{}:{gridlines:b}};return{...h,type:o,series:c,...f===void 0||f===60?{}:{gap_width:f},...Object.keys(C).length>0?{value_axis:C}:{},...Object.keys(g).length>0?{category_axis:g}:{}}}function J(e,t,n){if(e===void 0)return;let r=e.replace(/^=/u,``);if(/(?:^|[(,])'?\[\d+\]/u.test(r))return`it reads another workbook`;if(e.includes(`#REF!`))return`its cells were deleted (#REF!)`;let i=/^(?:'((?:[^']|'')+)'|([^!'(),]+))!/u.exec(r),a=i?.[1]?.replaceAll(`''`,`'`)??i?.[2];if(a!==void 0&&!t(a))return`it reads a sheet the workbook does not have (${a})`;let o=E(`=${r}`);if(!o.ok||!Ce(o.node,n))return`it names no cells (${r})`}function Ce(e,t){switch(e.kind){case`ref`:case`structured`:return!0;case`name`:return e.sheet!==void 0||t(e.name);case`paren`:return Ce(e.arg,t);case`binary`:return(e.op===`,`||e.op===`:`)&&Ce(e.left,t)&&Ce(e.right,t);default:return!1}}function we(e,t=[],n=()=>!0,r=()=>!0){let i=O(e?.chartSpace);if(i?.chartData!==void 0)return Ee(i,n,r);let a=O(i?.chart),o=O(a?.plotArea);if(!a||!o)return`it has no plot`;let s=Object.entries(o).filter(([e])=>e.endsWith(`Chart`)).flatMap(([e,t])=>S(t).map(t=>({kind:e,plot:t}))),[c]=s;if(!c)return`it has no plot`;let[l,u]=s,d=s.length===2&&l?.kind===`barChart`&&G(l.plot,`barDir`)===`bar`&&u?.kind===`scatterChart`?xe(u.plot):void 0;if(d&&l&&u){let e=S(u.plot.axId).map(e=>B(e,`val`)),s={...o};delete s.scatterChart;let c=we({chartSpace:{...i,chart:{...a,plotArea:{...s,valAx:S(o.valAx).filter(t=>!e.includes(B(O(t.axId),`val`)))}}}},t,n,r);return typeof c==`string`?c:Se(c,d,l.plot)??c}let f=S(o.valAx),p=e=>S(e.axId).map(e=>B(e,`val`)),m=e=>{let t=f.find(t=>p(e).includes(B(O(t.axId),`val`)));return t!==void 0&&G(t,`axPos`)===`r`},h=s.length>1,g=s.map(({kind:e,plot:t})=>({kind:e,plot:t,type:_e(e,t),secondary:h&&m(t)}));if(h&&g.some(e=>e.type===void 0||!(e.type.startsWith(`column`)||e.type.startsWith(`line`)||e.type.startsWith(`area`))))return`it combines several kinds of chart, not columns, lines and areas`;let{kind:_,plot:v}=g.find(e=>!e.secondary)??g[0]??c,y=_===`scatterChart`||_===`bubbleChart`,b=[],x,C,w=g.flatMap(e=>S(e.plot.ser).map(t=>({s:t,of:e}))),T=w.filter(({s:e})=>e.trendline!==void 0).length;T>0&&t.push(T===1?`trendline`:`trendlines of ${String(T)} series`);let E=w.filter(({s:e})=>e.errBars!==void 0).length;E>0&&t.push(E===1?`error bars`:`error bars of ${String(E)} series`);for(let[e,{s:i,of:a}]of w.entries()){let o=ge(i,y,a.kind===`lineChart`);if(typeof o==`string`)return o;if(h){let e=a.type;e!==void 0&&e!==_e(_,v)&&(o.series.type=e),a.secondary&&(o.series.secondary=!0)}let s=J(o.series.values,n,r);s===void 0?(o.series.name?.startsWith(`=`)===!0&&J(o.series.name,n,r)!==void 0&&delete o.series.name,J(o.series.x,n,r)!==void 0&&delete o.series.x,J(o.series.sizes,n,r)!==void 0&&delete o.series.sizes,b.push(o.series),J(o.categories,n,r)===void 0&&(x??=o.categories)):(t.push(`series ${String(e+1)}, as ${s}`),C=s)}if(b.length===0)return C===void 0?`it has no series`:`every series ${C.replace(/^it /u,``)}`;let D=_e(_,v);if(!D)return`a sheet has no ${_.replace(/Chart$/u,``)} chart`;let k=me(O(a.title)),A=O(a.legend),j=G(A,`legendPos`),M=O(v.dLbls),N=e=>de(M,e)===!0,P=N(`showVal`)||N(`showPercent`)||N(`showCatName`)||N(`showSerName`),F=G(M,`dLblPos`),L=K(v,`gapWidth`),ee=_===`lineChart`&&v.hiLowLines!==void 0||void 0,R=g.find(e=>e.secondary&&e.kind===`barChart`&&e.plot!==v),z=R===void 0?void 0:K(R.plot,`gapWidth`),V=K(v,`overlap`),te=K(v,`holeSize`),ne=de(v,`varyColors`),H=D===`pie`||D===`doughnut`,re=e=>p(v).includes(B(O(e.axId),`val`)),ie=[...S(o.catAx),...S(o.dateAx)],U={value:h?f.find(re)??f[0]:f.find((e,t,n)=>!y||t===n.length-1),category:y?f[0]:h?ie.find(re)??ie[0]:O(o.catAx)??O(o.dateAx),second:g.some(e=>e.secondary)?f.find(e=>G(e,`axPos`)===`r`):void 0},ae=he(U.value),W=he(U.category);ae&&U.value?.majorGridlines===void 0&&(ae.gridlines=!1),W&&U.category?.majorGridlines!==void 0&&(W.gridlines=!0);let oe=I(O(O(O(O(i?.txPr)?.p)?.pPr)?.defRPr),`sz`),se=e=>e&&Object.keys(e).length>0?e:void 0,ce=se(ae),le=se(W),ue=he(U.second);ue&&U.second?.majorGridlines!==void 0&&(ue.gridlines=!0);let fe=se(ue);return{type:D,at:`A1`,...k===void 0?{}:{title:k},...x===void 0?{}:{categories:x},series:H?b.slice(0,1):b,...A?{legend:j===`b`?`bottom`:j===`t`?`top`:j===`l`?`left`:`right`}:{},...P?{labels:{...N(`showVal`)?{value:!0}:{},...N(`showPercent`)?{percentage:!0}:{},...N(`showCatName`)?{category:!0}:{},...N(`showSerName`)?{series:!0}:{},...F===void 0?{}:{position:F}}}:{},...L===void 0||L===150?{}:{gap_width:L},...V===void 0||D.includes(`stacked`)?{}:{overlap:V},...te===void 0||te===50?{}:{hole_size:te},...ee?{high_low_lines:!0}:{},...z===void 0||z===(L??150)?{}:{secondary_gap_width:z},...ne===!0&&_===`barChart`?{vary_by_categories:!0}:{},...ne===!1&&H?{vary_by_categories:!1}:{},...ce?{value_axis:ce}:{},...le?{category_axis:le}:{},...fe?{secondary_axis:fe}:{},...oe===void 0||oe===900?{}:{size:oe/100}}}var Te={waterfall:`waterfall`,boxWhisker:`box-whisker`,clusteredColumn:`histogram`,treemap:`treemap`,sunburst:`sunburst`,funnel:`funnel`};function Ee(e,t,n){let r=O(e.chart),i=O(O(r?.plotArea)?.plotAreaRegion),a=S(i?.series),o=a.filter(e=>B(e,`layoutId`)!==`paretoLine`),s=a.some(e=>B(e,`layoutId`)===`paretoLine`),c=o[0];if(!c)return`it has no series`;let l=Te[B(c,`layoutId`)??``];if(l===void 0)return`a sheet has no ${B(c,`layoutId`)??``} chart`;let u=s?`pareto`:l,d=new Map(S(O(e.chartData)?.data).map(e=>[B(e,`id`)??`0`,e])),f=u===`box-whisker`,p=[],m,h=[];for(let e of f?o:[c]){let r=d.get(B(O(e.dataId),`val`)??`0`),i=V(O(r?.numDim)?.f);if(i===``)return`its numbers are written in the chart`;if(J(i,t,n)!==void 0)return`its numbers ${String(J(i,t,n))}`;let a={values:i},o=O(O(e.tx)?.txData),s=V(o?.f),c=V(o?.v);s!==``&&J(s,t,n)===void 0?a.name=pe(s):c!==``&&(a.name=c),p.push(a);let l=O(r?.strDim),u=V(l?.f);if(u!==``&&J(u,t,n)===void 0&&(m??=u),h.length===0){let e=S(l?.lvl)[0];h=S(e?.pt).map(e=>V(e))}}let g=O(c.layoutPr),_=O(g?.visibility),v=e=>{let t=B(_,e);return t===void 0?void 0:t===`1`||t===`true`},y=O(g?.binning),b=e=>e===void 0||e.trim()===``||!Number.isFinite(Number(e))?void 0:Number(e),x=b(B(O(y?.binSize),`val`)),C=b(B(O(y?.binCount),`val`)),w=b(B(y,`overflow`)),T=b(B(y,`underflow`)),E=S(O(g?.subtotals)?.idx).flatMap(e=>{let t=h[Number(B(e,`val`))];return t===void 0||t===``?[]:[t]}),D=B(O(g?.parentLabelLayout),`val`),k=B(O(g?.statistics),`quartileMethod`),A=O(r?.title),j=V(O(O(A?.tx)?.txData)?.v)||ce(O(A?.tx)?.rich),M=O(r?.legend),N=B(M,`pos`),P=O(c.dataLabels),F=O(P?.visibility);return{type:u,at:`A1`,...j===``?{}:{title:j},...m===void 0?{}:{categories:m},series:p,...M?{legend:N===`b`?`bottom`:N===`t`?`top`:N===`l`?`left`:`right`}:{},...P===void 0&&(u===`waterfall`||u===`funnel`||u===`treemap`||u===`sunburst`)?{labels:!1}:P!==void 0&&u!==`waterfall`&&u!==`funnel`&&u!==`treemap`&&u!==`sunburst`?{labels:{...B(F,`value`)===`1`?{value:!0}:{},...B(F,`categoryName`)===`1`?{category:!0}:{},...B(F,`seriesName`)===`1`?{series:!0}:{}}}:{},...E.length>0?{totals:E}:{},...v(`connectorLines`)===!1?{connector_lines:!1}:{},...k===`inclusive`?{quartiles:`inclusive`}:{},...v(`meanMarker`)===!1?{mean_markers:!1}:{},...v(`meanLine`)===!0?{mean_line:!0}:{},...v(`outliers`)===!1?{outliers:!1}:{},...v(`nonoutliers`)===!0?{inner_points:!0}:{},...x!==void 0&&x>0?{bin_width:x}:C!==void 0&&C>0?{bin_count:Math.round(C)}:{},...w===void 0?{}:{overflow:w},...T===void 0?{}:{underflow:T},...B(y,`intervalClosed`)===`l`?{interval_closed:`left`}:{},...D===`overlapping`||D===`none`?{parent_labels:D}:{}}}var De=e=>Math.round(e/se);function Oe(e,t,n){let r=O(e?.wsDr),i=[],a=[],o=0,s=e=>({col:Number(V(e?.col)),row:Number(V(e?.row)),colOff:De(Number(V(e?.colOff))),rowOff:De(Number(V(e?.rowOff)))}),c=e=>{let t=O(e.graphicFrame)??O(O(O(e.AlternateContent)?.Choice)?.graphicFrame);return B(O(O(O(t?.graphic)?.graphicData)?.chart),`id`)},l=(e,t,n,r)=>{let s={at:{row:t.row,col:t.col},...t.colOff>0?{x:t.colOff}:{},...t.rowOff>0?{y:t.rowOff}:{},width:n,height:r},l=O(e.pic),u=B(O(O(l?.blipFill)?.blip),`embed`);if(l&&u!==void 0){let e=O(O(l.nvPicPr)?.cNvPr),t=B(e,`name`),n=B(e,`descr`);a.push({id:u,...s,...t===void 0?{}:{name:t},...n===void 0?{}:{descr:n}});return}let d=c(e);d===void 0?o+=1:i.push({id:d,...s})};for(let e of S(r?.oneCellAnchor)){let t=O(e.ext);l(e,s(O(e.from)),De(I(t,`cx`)??0),De(I(t,`cy`)??0))}for(let e of S(r?.twoCellAnchor)){let r=s(O(e.from)),i=s(O(e.to)),a=i.colOff-r.colOff;for(let e=r.col;e<i.col;e++)a+=t(e);let o=i.rowOff-r.rowOff;for(let e=r.row;e<i.row;e++)o+=n(e);l(e,r,a,o)}return{anchors:i,pictures:a,others:o}}var ke=`_xlfn._xlws.FILTER _xlfn._xlws.PY
|
|
2
|
-
_xlfn._xlws.SORT _xlfn.ACOT _xlfn.ACOTH _xlfn.AGGREGATE _xlfn.ARABIC _xlfn.BASE
|
|
3
|
-
_xlfn.BETA.DIST _xlfn.BETA.INV _xlfn.BINOM.DIST _xlfn.BINOM.DIST.RANGE
|
|
4
|
-
_xlfn.BINOM.INV _xlfn.BITAND _xlfn.BITLSHIFT _xlfn.BITOR _xlfn.BITRSHIFT
|
|
5
|
-
_xlfn.BITXOR _xlfn.BYCOL _xlfn.BYROW _xlfn.CEILING.MATH _xlfn.CEILING.PRECISE
|
|
6
|
-
_xlfn.CHISQ.DIST _xlfn.CHISQ.DIST.RT _xlfn.CHISQ.INV _xlfn.CHISQ.INV.RT
|
|
7
|
-
_xlfn.CHISQ.TEST _xlfn.CHOOSECOLS _xlfn.CHOOSEROWS _xlfn.COMBINA _xlfn.CONCAT
|
|
8
|
-
_xlfn.CONFIDENCE.NORM _xlfn.CONFIDENCE.T _xlfn.COT _xlfn.COTH
|
|
9
|
-
_xlfn.COVARIANCE.P _xlfn.COVARIANCE.S _xlfn.CSC _xlfn.CSCH _xlfn.DAYS
|
|
10
|
-
_xlfn.DECIMAL _xlfn.DROP ECMA.CEILING _xlfn.ERF.PRECISE _xlfn.ERFC.PRECISE
|
|
11
|
-
_xlfn.EXPAND _xlfn.EXPON.DIST _xlfn.F.DIST _xlfn.F.DIST.RT _xlfn.F.INV
|
|
12
|
-
_xlfn.F.INV.RT _xlfn.F.TEST _xlfn.FIELDVALUE _xlfn.FILTERXML _xlfn.FLOOR.MATH
|
|
13
|
-
_xlfn.FLOOR.PRECISE _xlfn.FORECAST.ETS _xlfn.FORECAST.ETS.CONFINT
|
|
14
|
-
_xlfn.FORECAST.ETS.SEASONALITY _xlfn.FORECAST.ETS.STAT _xlfn.FORECAST.LINEAR
|
|
15
|
-
_xlfn.FORMULATEXT _xlfn.GAMMA _xlfn.GAMMA.DIST _xlfn.GAMMA.INV
|
|
16
|
-
_xlfn.GAMMALN.PRECISE _xlfn.GAUSS _xlfn.HSTACK _xlfn.HYPGEOM.DIST _xlfn.IFNA
|
|
17
|
-
_xlfn.IFS _xlfn.IMCOSH _xlfn.IMCOT _xlfn.IMCSC _xlfn.IMCSCH _xlfn.IMSEC
|
|
18
|
-
_xlfn.IMSECH _xlfn.IMSINH _xlfn.IMTAN _xlfn.ISFORMULA ISO.CEILING
|
|
19
|
-
_xlfn.ISOMITTED _xlfn.ISOWEEKNUM _xlfn.LAMBDA _xlfn.LET _xlfn.LOGNORM.DIST
|
|
20
|
-
_xlfn.LOGNORM.INV _xlfn.MAKEARRAY _xlfn.MAP _xlfn.MAXIFS _xlfn.MINIFS
|
|
21
|
-
_xlfn.MODE.MULT _xlfn.MODE.SNGL _xlfn.MUNIT _xlfn.NEGBINOM.DIST
|
|
22
|
-
NETWORKDAYS.INTL _xlfn.NORM.DIST _xlfn.NORM.INV _xlfn.NORM.S.DIST
|
|
23
|
-
_xlfn.NORM.S.INV _xlfn.NUMBERVALUE _xlfn.PDURATION _xlfn.PERCENTILE.EXC
|
|
24
|
-
_xlfn.PERCENTILE.INC _xlfn.PERCENTRANK.EXC _xlfn.PERCENTRANK.INC
|
|
25
|
-
_xlfn.PERMUTATIONA _xlfn.PHI _xlfn.POISSON.DIST _xlfn.PQSOURCE
|
|
26
|
-
_xlfn.PYTHON_STR _xlfn.PYTHON_TYPE _xlfn.PYTHON_TYPENAME _xlfn.QUARTILE.EXC
|
|
27
|
-
_xlfn.QUARTILE.INC _xlfn.QUERYSTRING _xlfn.RANDARRAY _xlfn.RANK.AVG
|
|
28
|
-
_xlfn.RANK.EQ _xlfn.REDUCE _xlfn.RRI _xlfn.SCAN _xlfn.SEC _xlfn.SECH
|
|
29
|
-
_xlfn.SEQUENCE _xlfn.SHEET _xlfn.SHEETS _xlfn.SKEW.P _xlfn.SORTBY
|
|
30
|
-
_xlfn.STDEV.P _xlfn.STDEV.S _xlfn.SWITCH _xlfn.T.DIST _xlfn.T.DIST.2T
|
|
31
|
-
_xlfn.T.DIST.RT _xlfn.T.INV _xlfn.T.INV.2T _xlfn.T.TEST _xlfn.TAKE
|
|
32
|
-
_xlfn.TEXTAFTER _xlfn.TEXTBEFORE _xlfn.TEXTJOIN _xlfn.TEXTSPLIT _xlfn.TOCOL
|
|
33
|
-
_xlfn.TOROW _xlfn.UNICHAR _xlfn.UNICODE _xlfn.UNIQUE _xlfn.VAR.P _xlfn.VAR.S
|
|
34
|
-
_xlfn.VSTACK _xlfn.WEBSERVICE _xlfn.WEIBULL.DIST WORKDAY.INTL _xlfn.WRAPCOLS
|
|
35
|
-
_xlfn.WRAPROWS _xlfn.XLOOKUP _xlfn.XOR _xlfn.Z.TEST`,Ae=`ENCODEURL ARRAYTOTEXT VALUETOTEXT IMAGE REGEXTEST
|
|
36
|
-
REGEXEXTRACT REGEXREPLACE GROUPBY PIVOTBY PERCENTOF TRIMRANGE`,je=new Map;for(let e of ke.split(/\s+/u)){let t=Me(e);je.set(t,e.startsWith(`_xlfn._xlws.`)?e:`_xlfn.${t}`)}for(let e of Ae.split(/\s+/u))je.set(e,`_xlfn.${e}`);function Me(e){return e.replace(/^(?:_xlfn\.|_xlws\.|_xludf\.)+/iu,``)}function Ne(e){switch(e.kind){case`ref`:return e.col2!==void 0||e.row2!==void 0;case`structured`:return!e.thisRow||e.columns.length>1;case`paren`:return Ne(e.arg);case`binary`:return e.op===`:`||e.op===`,`;default:return!1}}var Pe=new Set([`+`,`-`,`*`,`/`,`^`,`&`,`=`,`<>`,`<`,`<=`,`>`,`>=`]);new Set(`BYCOL BYROW CHOOSECOLS CHOOSEROWS DROP EXPAND FILTER HSTACK MAKEARRAY MAP
|
|
37
|
-
RANDARRAY SCAN SEQUENCE SORT SORTBY TAKE TEXTSPLIT TOCOL TOROW UNIQUE VSTACK
|
|
38
|
-
WRAPCOLS WRAPROWS`.split(/\s+/u));var Fe=new Set([`IF`,`IFERROR`,`IFNA`]);function Ie(e,t){let n=h.get(e);if(n?.kind===`scalar`)return!0;if(n?.kind!==`raw`)return!1;let{fixed:r,group:i}=n.params;return t<r.length?r[t]===`value`:i.length>0&&i[(t-r.length)%i.length]===`value`}function Le(e,t=()=>!1){let n=e=>e.kind!==`array`&&(Ne(e)||e.kind===`name`&&t(e.name))?{kind:`unary`,op:`@`,arg:e}:r(e),r=e=>{switch(e.kind){case`unary`:return e.op===`@`?e:{...e,arg:n(e.arg)};case`postfix`:return e.op===`%`?{...e,arg:n(e.arg)}:e;case`paren`:return{...e,arg:r(e.arg)};case`binary`:return Pe.has(e.op)?{...e,left:n(e.left),right:n(e.right)}:e;case`call`:{let[t,...r]=e.args;return Fe.has(e.name)&&t?{...e,args:[n(t),...r]}:e.args.some((t,n)=>Ie(e.name,n))?{...e,args:e.args.map((t,r)=>Ie(e.name,r)?n(t):t)}:e}default:return e}};return n(e)}function Y(e){switch(e.kind){case`name`:return e.name.toLowerCase().startsWith(`_xlpm.`)?{...e,name:e.name.slice(6)}:e;case`structured`:return e;case`unary`:case`postfix`:case`paren`:return{...e,arg:Y(e.arg)};case`binary`:return{...e,left:Y(e.left),right:Y(e.right)};case`call`:{let t=Me(e.written).toUpperCase(),n=e.args.map(Y),[r]=n;return t===`ANCHORARRAY`&&r&&n.length===1?{kind:`postfix`,op:`#`,arg:r}:t===`SINGLE`&&r&&n.length===1?{kind:`unary`,op:`@`,arg:r}:{...e,name:t,written:t,args:n}}case`invoke`:return{...e,callee:Y(e.callee),args:e.args.map(Y)};case`array`:return{...e,rows:e.rows.map(e=>e.map(Y))};default:return e}}function Re(e,t,n){let r=E(`=${e}`);if(!r.ok)return r;let i=Y(r.node);return{ok:!0,node:t?i:Le(i,n)}}function ze(e){let t=E(`=${e}`);return t.ok&&Ne(Y(t.node))}var Be={0:`General`,1:`0`,2:`0.00`,3:`#,##0`,4:`#,##0.00`,9:`0%`,10:`0.00%`,11:`0.00E+00`,12:`# ?/?`,13:`# ??/??`,14:`m/d/yyyy`,15:`d-mmm-yy`,16:`d-mmm`,17:`mmm-yy`,18:`h:mm AM/PM`,19:`h:mm:ss AM/PM`,20:`h:mm`,21:`h:mm:ss`,22:`m/d/yyyy h:mm`,37:`#,##0_);(#,##0)`,38:`#,##0_);[Red](#,##0)`,39:`#,##0.00_);(#,##0.00)`,40:`#,##0.00_);[Red](#,##0.00)`,41:`_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)`,42:`_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)`,43:`_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)`,44:`_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)`,45:`mm:ss`,46:`[h]:mm:ss`,47:`mmss.0`,48:`##0.0E+0`,49:`@`};new Map(Object.entries(Be).map(([e,t])=>[t,Number(e)]));var Ve={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function He(e){return e.includes(`&`)?e.replace(/&(#x[0-9A-Fa-f]+|#\d+|[A-Za-z]+);/gu,(e,t)=>t.startsWith(`#x`)?String.fromCodePoint(Number.parseInt(t.slice(2),16)):t.startsWith(`#`)?String.fromCodePoint(Number.parseInt(t.slice(1),10)):Ve[t]??e):e}var Ue=e=>{let t=e.indexOf(`:`);return t<0?e:e.slice(t+1)},We=e=>e===32||e===9||e===10||e===13;function Ge(e,t,n){let r=0,i=e.length;for(;r<i&&!We(e.charCodeAt(r));)r++;let a=Ue(e.slice(0,r)),o={};for(;r<i;){for(;r<i&&We(e.charCodeAt(r));)r++;if(r>=i)break;let t=e.indexOf(`=`,r);if(t<0)throw Error(`An attribute of <${a}> has no value.`);let n=e.slice(r,t).trim(),s=t+1;for(;s<i&&We(e.charCodeAt(s));)s++;let c=e[s];if(c!==`"`&&c!==`'`)throw Error(`An attribute of <${a}> is not quoted.`);let l=e.indexOf(c,s+1);if(l<0)throw Error(`An attribute of <${a}> is not closed.`);n!==`xmlns`&&!n.startsWith(`xmlns:`)&&(o[Ue(n)]=He(e.slice(s+1,l))),r=l+1}return t.open(a,o,n),a}var Ke=class{capture;buffer=``;handler;depth=0;cr=!1;constructor(e){this.handler=e}push(e){let t=this.cr?`\r${e}`:e;this.cr=t.endsWith(`\r`),this.cr&&(t=t.slice(0,-1)),t=t.replace(/\r\n?/gu,`
|
|
39
|
-
`),this.buffer=this.buffer===``?t:this.buffer+t,this.run()}end(){if(this.cr&&(this.cr=!1,this.buffer+=`
|
|
40
|
-
`),this.run(),this.buffer.trim()!==``)throw Error(`The XML ends inside a tag or a comment.`);if(this.depth>0)throw Error(`The XML ends before its elements do.`)}emitText(e){e!==``&&(this.capture?.push(e),this.handler.text(He(e)))}run(){let e=this.buffer,t=e.length,n=0;for(;;){let r=e.indexOf(`<`,n);if(r<0){let r=e.lastIndexOf(`&`),i=r>=n&&!e.includes(`;`,r)?r:t;this.emitText(e.slice(n,i)),n=i;break}r>n&&this.emitText(e.slice(n,r)),n=r;let i=e.charCodeAt(r+1);if(Number.isNaN(i))break;if(i===33){if(e.startsWith(`<!--`,r)){let t=e.indexOf(`-->`,r+4);if(t<0)break;this.capture?.push(e.slice(r,t+3)),n=t+3;continue}if(e.startsWith(`<![CDATA[`,r)){let t=e.indexOf(`]]>`,r+9);if(t<0)break;this.capture?.push(e.slice(r,t+3)),this.handler.text(e.slice(r+9,t)),n=t+3;continue}if(t-r<9)break;let i=e.indexOf(`>`,r);if(i<0)break;if(e.lastIndexOf(`[`,i)>r){let t=e.indexOf(`]>`,r);if(t<0)break;n=t+2}else n=i+1;continue}if(i===63){let t=e.indexOf(`?>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+2)),n=t+2;continue}if(i===47){let t=e.indexOf(`>`,r+2);if(t<0)break;this.capture?.push(e.slice(r,t+1)),--this.depth,this.handler.close(Ue(e.slice(r+2,t).trim())),n=t+1;continue}let a=r+1,o=0;for(;a<t;a++){let t=e.charCodeAt(a);if(o!==0)t===o&&(o=0);else if(t===34||t===39)o=t;else if(t===62)break}if(a>=t)break;let s=e.charCodeAt(a-1)===47,c=e.slice(r,a+1),l=Ge(e.slice(r+1,s?a-1:a),this.handler,s);this.capture?.push(c),s?this.handler.close(l):this.depth+=1,n=a+1}this.buffer=n>=t?``:e.slice(n)}},qe=class{runs=[];inProps=!1;open(e,t){if(e===`r`)return this.runs.push({text:``,props:void 0}),!0;let n=this.runs[this.runs.length-1];return e===`rPr`&&n?(n.props={},this.inProps=!0,!0):this.inProps&&n?.props?(n.props[e]=t,!0):!1}close(e){e===`rPr`&&(this.inProps=!1)}text(e){let t=this.runs[this.runs.length-1];t&&(t.text+=e)}},Je=(e,t)=>{let n=e[t];if(n===void 0)return!1;let r=n.val;return r===void 0||r!==`0`&&r!==`false`},Ye=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function Xe(e,t){return e.map(({text:e,props:n})=>{let r={text:k(e)};if(!n)return r;let i=n.u,a=i?.val,o=Number(n.sz?.val),s=n.vertAlign?.val;return r.font={bold:Je(n,`b`),italic:Je(n,`i`),strike:Je(n,`strike`),underline:i===void 0||a===`none`?!1:a!==void 0&&Ye.has(a)?a:!0,size:Number.isFinite(o)&&o>0?o:void 0,color:F(n.color,t),name:n.rFont?.val,script:s===`superscript`||s===`subscript`?s:void 0},r})}var Ze=65536,X=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,Z=(e,t)=>(X(e,t)|X(e,t+2)<<16)>>>0,Q=(e,t)=>Z(e,t)+Z(e,t+4)*4294967296,Qe=e=>{let t=``;for(let n of e)t+=String.fromCharCode(n);return t},$e=class{bytes;entries=new Map;lower=new Map;constructor(e,t){this.bytes=e;let n=ne(t);for(let e of this.directory())n({name:e.name,originalSize:e.size}),this.entries.set(e.name,e),this.lower.set(e.name.toLowerCase(),e)}get names(){return[...this.entries.keys()]}find(e){return this.entries.get(e)??this.lower.get(e.toLowerCase())}has(e){return this.find(e)!==void 0}*directory(){let e=this.bytes,t=-1;for(let n=e.length-22;n>=Math.max(0,e.length-22-65535);n--)if(Z(e,n)===101010256){t=n;break}if(t<0)throw Error(`It has no zip directory.`);let n=X(e,t+10),r=Z(e,t+16);if((n===65535||r===4294967295)&&Z(e,t-20)===117853008){let i=Q(e,t-12);if(Z(e,i)!==101075792)throw Error(`Its zip64 end is lost.`);n=Q(e,i+32),r=Q(e,i+48)}let i=new TextDecoder,a=r;for(let t=0;t<n;t++){if(Z(e,a)!==33639248)throw Error(`Its zip directory is damaged.`);let t=X(e,a+8),n=X(e,a+10),r=Z(e,a+20),o=Z(e,a+24),s=X(e,a+28),c=X(e,a+30),l=X(e,a+32),u=Z(e,a+42),d=e.subarray(a+46,a+46+s),f=t&2048?i.decode(d):Qe(d),p=a+46+s,m=p+c;for(;p+4<=m;){let t=X(e,p),n=X(e,p+2);if(t===1){let t=p+4;o===4294967295&&(o=Q(e,t),t+=8),r===4294967295&&(r=Q(e,t),t+=8),u===4294967295&&(u=Q(e,t))}p+=4+n}if(a=m+l,Z(e,u)!==67324752)throw Error(`Its part ${f} is lost.`);let h=u+30+X(e,u+26)+X(e,u+28);if(h+r>e.length)throw Error(`Its part ${f} is cut short.`);f.endsWith(`/`)||(yield{name:f,method:n,start:h,compressed:r,size:o})}}stream(e,t){let n=this.find(e);if(!n)return!1;let r=this.bytes.subarray(n.start,n.start+n.compressed);if(n.method===0){if(r.length>n.size)throw new H(`${n.name} holds more than it says.`);return t(r),!0}if(n.method!==8)throw Error(`${n.name} is compressed in a way a zip reader here does not know.`);let i=0,a=new re(e=>{if(i+=e.length,i>n.size)throw new H(`${n.name} unzips to more than it says.`);t(e)});for(let e=0;e<r.length;e+=Ze)a.push(r.subarray(e,e+Ze),e+Ze>=r.length);return r.length===0&&a.push(r,!0),!0}streamText(e,t){let n=new TextDecoder;if(!this.stream(e,e=>{let r=n.decode(e,{stream:!0});r!==``&&t(r)}))return!1;let r=n.decode();return r!==``&&t(r),!0}bytesOf(e){let t=this.find(e);if(!t)return;let n=new Uint8Array(t.size),r=0;return this.stream(e,e=>{n.set(e,r),r+=e.length}),r===n.length?n:n.subarray(0,r)}text(e){let t=this.bytesOf(e);return t===void 0?void 0:new TextDecoder().decode(t)}};function et(e){let t=[`lt1`,`dk1`,`lt2`,`dk2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`],n=Object.fromEntries(t.map((t,n)=>[t,`#${(e[n]??`000000`).toUpperCase()}`])),r=e=>t.every(t=>e[t]?.toUpperCase()===n[t]);if(r(c))return;for(let e of o)if(r(s[e].colors))return e;let i={};for(let e of t)c[e]!==n[e]&&(i[e]=n[e]);return{colors:i}}function tt(e){if(D(e,`iterate`)!==!0)return;let t=I(e,`iterateCount`),n=I(e,`iterateDelta`),r=t===void 0?void 0:Math.min(32767,Math.max(1,Math.round(t))),i=n===void 0?void 0:Math.max(0,n),a={...r===void 0||r===A.max_iterations?{}:{max_iterations:r},...i===void 0||i===A.max_change?{}:{max_change:i}};return Object.keys(a).length>0?a:!0}var nt=7,rt=e=>Math.floor((256*e+Math.floor(128/nt))/256*nt),it=5;function at(e){let t=e.slice(0,it).join(`, `);return e.length>it?`${t} and ${String(e.length-it)} more`:t}var ot=(e,t,n=`${t}s`)=>`${String(e)} ${e===1?t:n}`,st=`Excel's grid ends at ${_(p-1)}${String(x)} (${x.toLocaleString(`en-US`)} rows, ${p.toLocaleString(`en-US`)} columns)`;function ct(e,t){let n=0,r=0,i=e.length;for(;n<i;n++){let t=e.charCodeAt(n),i=t>=65&&t<=90;if(!i&&!(t>=97&&t<=122))break;r=r*26+(i?t-64:t-96)}if(n===0||n===i)return;let a=0;for(let t=n;t<i;t++){let n=e.charCodeAt(t);if(n<48||n>57)return;a=a*10+n-48}if(a!==0){if(n>3||r>16384||a>1048576)throw Error(`${t} has a cell at ${e}, and ${st}.`);return{row:a-1,col:r-1}}}var lt=class{zip;constructor(e,t){this.zip=new $e(e,t)}get names(){return this.zip.names}has(e){return this.zip.has(e)}text(e){return this.zip.text(e)}bytes(e){return this.zip.bytesOf(e)}xml(e){let t=this.text(e);return t===void 0?void 0:M(t)}stream(e,t){let n=this.zip.streamText(e,e=>{t.push(e)});return n&&t.end(),n}rels(e){let t=e.lastIndexOf(`/`),n=`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`,r=this.xml(n);return S(O(r?.Relationships)?.Relationship).map(t=>{let n=B(t,`Type`)??``,r=B(t,`Target`)??``,i=B(t,`TargetMode`)===`External`;return{id:B(t,`Id`)??``,type:n.slice(n.lastIndexOf(`/`)+1),target:i?r:ut(e,r),external:i}})}count(e){return this.names.filter(t=>e.test(t)).length}};function ut(e,t){if(t.startsWith(`/`))return t.slice(1);let n=e.split(`/`).slice(0,-1);for(let e of t.split(`/`))e===`..`?n.pop():e!==`.`&&n.push(e);return n.join(`/`)}function dt(e,t,n){let r=[];if(t===void 0)return r;let i,a=0,o=!1;return e.stream(t,new Ke({open(e,t){e===`si`?i={text:``,runs:new qe}:i&&(a>0||e===`rPh`||e===`phoneticPr`||e===`extLst`?a+=1:i.runs.open(e,t)||e===`t`&&(o=!0))},close(e){if(a>0)--a;else if(e===`si`){if(i){let{runs:e}=i.runs;r.push({text:k(i.text),...e.length>0?{runs:Xe(e,n)}:{}})}i=void 0}else i?.runs.close(e),e===`t`&&(o=!1)},text(e){i&&o&&a===0&&(i.text+=e,i.runs.text(e))}})),r}function $(e,t){let n=e[t];if(n===void 0)return!1;let r=B(O(n),`val`);return r===void 0||r!==`0`&&r!==`false`}var ft=new Set([`double`,`singleAccounting`,`doubleAccounting`]);function pt(e,t,n){let r={},i=(e,t)=>B(O(e?.[t]),`val`);if($(e,`b`)&&(r.bold=!0),$(e,`i`)&&(r.italic=!0),$(e,`strike`)&&(r.strike=!0),$(e,`u`)){let t=i(e,`u`);r.underline=t!==void 0&&ft.has(t)?t:!0}let a=i(e,`name`);a!==void 0&&a!==i(t,`name`)&&(r.font=a);let o=i(e,`sz`);o!==void 0&&o!==i(t,`sz`)&&(r.size=Number(o));let s=F(O(e.color),n);return s!==void 0&&s!==F(O(t?.color),n)&&(r.color=s),r}function mt(e,t){let n=O(e.patternFill),r=B(n,`patternType`);if(r===void 0||r===`none`)return;let i=F(O(n?.fgColor),t),a=F(O(n?.bgColor),t);return r===`solid`&&i!==void 0?i:{pattern:r,...i===void 0?{}:{color:i},...a===void 0?{}:{background:a}}}function ht(e,t){let n={};for(let r of[`left`,`right`,`top`,`bottom`]){let i=O(e[r]),a=B(i,`style`);if(a===void 0||a===`none`)continue;let o=F(O(i?.color),t);n[r]={style:a,...o===void 0?{}:{color:o}}}return Object.keys(n).length===0?void 0:n}function gt(e){let t={},n=B(e,`horizontal`);n!==void 0&&n!==`general`&&(t.align=n);let r=B(e,`vertical`);r!==void 0&&r!==`bottom`&&(t.valign=r),D(e,`wrapText`)===!0&&(t.wrap=!0),D(e,`shrinkToFit`)===!0&&(t.shrink=!0);let i=I(e,`indent`);i!==void 0&&i>0&&(t.indent=i);let a=I(e,`textRotation`);return a!==void 0&&a>0&&a<=180&&(t.rotation=a),t}function _t(e,t){let n={},r=O(e.font);if(r){let e=(e,t)=>{r[e]!==void 0&&(n[t]=$(r,e))};e(`b`,`bold`),e(`i`,`italic`),e(`strike`,`strike`),r.u!==void 0&&(n.underline=$(r,`u`));let i=F(O(r.color),t);i!==void 0&&(n.color=i)}let i=O(O(e.fill)?.patternFill),a=F(O(i?.bgColor),t)??F(O(i?.fgColor),t);a!==void 0&&(n.fill=a);let o=O(e.border),s=o&&ht(o,t);s!==void 0&&(n.border=s);let c=O(e.numFmt),l=B(c,`formatCode`)??Be[I(c,`numFmtId`)??-1];return c&&l!==void 0&&l!==``&&l!==`General`&&(n.format=l),n}function vt(e,t){let n=O(e?.styleSheet),r=ee(t,n),i=new Map(S(O(n?.numFmts)?.numFmt).map(e=>[I(e,`numFmtId`)??-1,B(e,`formatCode`)?.replace(/^$/u,`General`)??`General`])),a=S(O(n?.fonts)?.font),o=S(O(n?.fills)?.fill),s=S(O(n?.borders)?.border),c=S(O(n?.cellXfs)?.xf),l=a[I(c[0],`fontId`)??0],u=new Set;o.some(e=>e.gradientFill!==void 0)&&u.add(`gradient fills`);let d=S(O(n?.cellStyles)?.cellStyle),f=new Set(c.map(e=>I(e,`xfId`)??0)),p=d.filter(e=>I(e,`builtinId`)!==0&&f.has(I(e,`xfId`)??-1)).map(e=>k(B(e,`name`)??``)).filter(e=>e!==``);p.length>0&&u.add(`the names of cell styles (${p.slice(0,5).join(`, `)}${p.length>5?`, …`:``}): their looks are kept`);let m=c.map(e=>{let t={},n=a[I(e,`fontId`)??0];n&&(Object.assign(t,pt(n,l,r)),n.vertAlign!==void 0&&u.add(`superscript and subscript`));let c=o[I(e,`fillId`)??0],d=c&&mt(c,r);d!==void 0&&(t.fill=d);let f=s[I(e,`borderId`)??0],p=f&&ht(f,r);p!==void 0&&(t.border=p),f&&B(O(f.diagonal),`style`)!==void 0&&u.add(`diagonal borders`);let m=O(e.alignment);m&&(Object.assign(t,gt(m)),I(m,`textRotation`)===255&&u.add(`vertical text`));let h=O(e.protection);D(h,`locked`)===!1&&(t.locked=!1),D(h,`hidden`)===!0&&(t.hide_formula=!0);let g=I(e,`numFmtId`)??0,_=i.get(g)??Be[g];return _!==void 0&&_!==`General`&&(t.format=_),t}),h=B(O(l?.name),`val`),g=B(O(l?.sz),`val`);return{looks:m,dxfs:S(O(n?.dxfs)?.dxf).map(e=>_t(e,r)),font:{...h===void 0?{}:{name:h},...g===void 0?{}:{size:Number(g)}},lost:[...u]}}var yt=e=>{let t=Number(e);return e.trim()!==``&&Number.isFinite(t)?t:e};function bt(t,n){let r=O(t.customFilters);if(r){let t=S(r.customFilter).map(e=>({operator:B(e,`operator`)??`equal`,value:yt(k(B(e,`val`)??``))}));return t.length===0||t.length>2||t.some(t=>!e.includes(t.operator))?void 0:{conditions:t,...t.length===2&&D(r,`and`)!==!0?{or:!0}:{}}}let i=O(t.top10);if(i){let e=I(i,`val`);return e===void 0||e<=0?void 0:{top:{count:e,...D(i,`percent`)===!0?{percent:!0}:{},...D(i,`top`)===!1?{bottom:!0}:{}}}}let a=B(O(t.dynamicFilter),`type`);if(a===`aboveAverage`)return{average:`above`};if(a===`belowAverage`)return{average:`below`};let o=O(t.colorFilter);if(o){let e=n[I(o,`dxfId`)??-1];return D(o,`cellColor`)===!1?e?.color?{color:{font:e.color}}:void 0:typeof e?.fill==`string`?{color:{fill:e.fill}}:void 0}}function xt(e,t=[]){let n=new Map,r=0;for(let i of S(e.filterColumn)){let e=I(i,`colId`)??0,a=O(i.filters);if(!a){let a=bt(i,t);a?n.set(e,a):Object.keys(i).some(e=>e!==`colId`&&e!==`hiddenButton`)&&(r+=1);continue}if(a.dateGroupItem!==void 0){r+=1;continue}let o=S(a.filter).map(e=>k(B(e,`val`)??``));n.set(e,{...o.length===0?{}:{values:o},...D(a,`blank`)===!0?{blanks:!0}:{}})}return{columns:n,unread:r}}function St(e,t=[]){let n=O(e?.table),r=P(B(n,`ref`)??``),i=B(n,`displayName`)??B(n,`name`);if(!r||i===void 0)return;let a=O(n?.tableStyleInfo),o=O(n?.autoFilter);return{name:i,ref:r,headers:I(n,`headerRowCount`)??1,totals:I(n,`totalsRowCount`)??0,columns:S(O(n?.tableColumns)?.tableColumn).map(e=>({name:k(B(e,`name`)??``).trim(),calculated:e.calculatedColumnFormula!==void 0})),style:B(a,`name`)??`none`,options:{...D(a,`showRowStripes`)===!1?{banded_rows:!1}:{},...D(a,`showColumnStripes`)===!0?{banded_columns:!0}:{},...D(a,`showFirstColumn`)===!0?{first_column:!0}:{},...D(a,`showLastColumn`)===!0?{last_column:!0}:{}},...o?{filter:xt(o,t)}:{}}}function Ct(e){let t=e.trim();if(t===``)return;let n=/^"((?:[^"]|"")*)"$/u.exec(t);if(n)return(n[1]??``).replaceAll(`""`,`"`);let r=Number(t);if(!Number.isNaN(r))return r;let i=Re(t,!0);return i.ok?d(i.node):void 0}var wt=e=>e!==void 0&&t.includes(e);function Tt(e){let t=B(e,`type`)??`num`,n=B(e,`val`)??(e.f===void 0?void 0:V(e.f)),r=n===void 0?void 0:Ct(n);return{at:t,...r===void 0?{}:{value:r}}}var Et=r,Dt=e=>{let t=e.formula??e.f;return(Array.isArray(t)?t:t===void 0?[]:[t]).map(V)};function Ot(e,t,n,r){let i=B(e,`type`)??``,a={range:t,...D(e,`stopIfTrue`)===!0?{stop:!0}:{}},o={...n.bold===void 0?{}:{bold:n.bold},...n.italic===void 0?{}:{italic:n.italic},...n.underline===void 0?{}:{underline:n.underline!==!1},...n.strike===void 0?{}:{strike:n.strike},...n.color===void 0?{}:{color:n.color},...typeof n.fill==`string`?{fill:n.fill}:{},...n.border===void 0?{}:{border:n.border},...n.format===void 0?{}:{format:n.format}},s=Dt(e);switch(i){case`cellIs`:{let t=B(e,`operator`),n=s.flatMap(e=>{let t=Ct(e);return t===void 0?[]:[t]});return!wt(t)||n.length===0?`a cellIs rule of ${t??`no operator`}`:{...a,...o,type:`cellIs`,operator:t,formula:n}}case`containsText`:case`notContainsText`:case`beginsWith`:case`endsWith`:{let t=B(e,`text`);return t===void 0?`a ${i} rule with no text`:{...a,...o,type:`containsText`,...i===`containsText`?{}:{operator:i===`notContainsText`?`notContains`:i},text:k(t)}}case`duplicateValues`:case`uniqueValues`:return{...a,...o,type:i};case`top10`:return{...a,...o,type:`top10`,rank:I(e,`rank`)??10,...D(e,`percent`)===!0?{percent:!0}:{},...D(e,`bottom`)===!0?{bottom:!0}:{}};case`aboveAverage`:return I(e,`stdDev`)===void 0?{...a,...o,type:`aboveAverage`,...D(e,`aboveAverage`)===!1?{below:!0}:{},...D(e,`equalAverage`)===!0?{equal:!0}:{}}:`an above or below average rule by standard deviations`;case`expression`:{let e=s[0]===void 0?void 0:Re(s[0],!0);return e?.ok?{...a,...o,type:`expression`,formula:d(e.node)}:`an expression rule that cannot be read`}case`dataBar`:{let t=O(e.dataBar),n=F(O(t?.color??t?.fillColor),r),[i,o]=S(t?.cfvo).map(Tt);return n===void 0?`a data bar with no colour`:{...a,type:`dataBar`,color:n,...i&&i.at!==`min`?{min:i}:{},...o&&o.at!==`max`?{max:o}:{},...D(t,`showValue`)===!1?{show:!1}:{}}}case`colorScale`:{let t=O(e.colorScale),n=S(t?.cfvo).map(Tt),i=S(t?.color).map(e=>F(e,r)),o=n.flatMap((e,t)=>{let n=i[t];return n===void 0?[]:[{...e,color:n}]});return o.length<2?`a colour scale with too few stops`:{...a,type:`colorScale`,stops:o.slice(0,3)}}case`iconSet`:{let t=O(e.iconSet),n=B(t,`iconSet`)??`3TrafficLights1`;if(!Et.includes(n))return`the icon set ${n}`;if(t?.cfIcon!==void 0)return`an icon set of icons chosen one by one`;let r=S(t?.cfvo).map(Tt);return{...a,type:`iconSet`,icons:n,...r.length>=3?{stops:r.slice(0,5)}:{},...D(t,`reverse`)===!0?{reverse:!0}:{},...D(t,`showValue`)===!1?{show:!1}:{}}}default:return`a ${i} rule`}}var kt={conditional:`{78C0D931-6437-407d-A8EE-F0AAD7539E65}`,validations:`{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}`,sparklines:`{05C60535-1F16-4fd2-B633-F4F36F0B64E0}`};function At(e){let t=[],n=O(jt(e,kt.sparklines)?.sparklineGroups);for(let e of S(n?.sparklineGroup)){let n=B(e,`type`),r=t=>{let n=B(O(e[t]),`rgb`);return n!==void 0&&/^[0-9A-Fa-f]{8}$/u.test(n)?`#${n.slice(2).toUpperCase()}`:void 0},i={...n===`column`?{type:`column`}:n===`stacked`?{type:`win_loss`}:{},...r(`colorSeries`)===void 0?{}:{color:r(`colorSeries`)},...r(`colorMarkers`)===void 0?{}:{marks:r(`colorMarkers`)}};for(let t of[`markers`,`high`,`low`,`first`,`last`,`negative`])D(e,t)===!0&&(i[t]=!0);for(let n of S(O(e.sparklines)?.sparkline)){let e=V(n.f).trim(),r=V(n.sqref).trim();e!==``&&r!==``&&t.push({at:r,data:e,...i})}}return t}var jt=(e,t)=>S(O(e.extLst)?.ext).find(e=>B(e,`uri`)?.toUpperCase()===t.toUpperCase());function Mt(e,t,n){let r=[],i=[],a=new Set,o=(e,t,a)=>{let o=Ot(e,t,a,n);typeof o==`string`?i.push(`${o} on ${t}`):r.push({priority:I(e,`priority`)??0,rule:o})};for(let n of S(e.conditionalFormatting)){let e=B(n,`sqref`)??``;if(!L(e))i.push(`a rule on ${e}`);else for(let r of S(n.cfRule)){let n=V(O(O(r.extLst)?.ext)?.id);n!==``&&a.add(n.toUpperCase());let i=I(r,`dxfId`);o(r,e,i===void 0?{}:t[i]??{})}}let s=O(jt(e,kt.conditional)?.conditionalFormattings);for(let e of S(s?.conditionalFormatting)){let t=V(e.sqref).trim();for(let r of S(e.cfRule)){if(a.has((B(r,`id`)??``).toUpperCase())){let e=Nt(O(r.dataBar));e!==void 0&&i.push(`a data bar's ${e} on ${t}`);continue}if(!L(t)){i.push(`a rule on ${t}`);continue}let e=O(r.dxf);o(r,t,e?_t(e,n):{})}}return{rules:r.sort((e,t)=>e.priority-t.priority).map(e=>e.rule),unread:i}}function Nt(e){if(!e)return;let t=[];D(e,`gradient`)===!1&&t.push(`solid fill`),D(e,`border`)===!0&&t.push(`border`);let n=B(e,`axisPosition`);n!==void 0&&n!==`automatic`&&t.push(`axis ${n}`),D(e,`negativeBarColorSameAsPositive`)===!0&&t.push(`negative bars in its colour`);let r=B(O(e.negativeFillColor),`rgb`);return r!==void 0&&r.toUpperCase()!==`FFFF0000`&&t.push(`negative bars' colour`),B(e,`direction`)===`rightToLeft`&&t.push(`right to left`),t.length===0?void 0:t.join(`, `)}var Pt=a;function Ft(e,t,n,r){let i=B(e,`type`)??`none`;if(i===`none`&&B(e,`prompt`)===void 0)return;if(!Pt.includes(i)||!L(t))return`a ${i} rule on ${t}`;let a=/^"((?:[^"]|"")*)"$/u.exec(n.trim()),o=i===`list`&&a?(a[1]??``).replaceAll(`""`,`"`).split(`,`):void 0,s=[n,r].flatMap(e=>{let t=Ct(e);return t===void 0?[]:[t]}),c=B(e,`operator`),l=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),u=l({title:B(e,`promptTitle`),message:B(e,`prompt`)}),d=l({style:B(e,`errorStyle`),title:B(e,`errorTitle`),message:B(e,`error`)}),f=D(e,`showInputMessage`)!==!0,p=D(e,`showErrorMessage`)!==!0;return{range:t,type:i,...wt(c)&&c!==`between`?{operator:c}:{},...o?{values:o}:{formula:s},...D(e,`allowBlank`)===!0?{}:{blank:!1},...D(e,`showDropDown`)===!0?{dropdown:!1}:{},...f||Object.keys(u).length>0?{prompt:{...u,...f?{show:!1}:{}}}:{},...p||Object.keys(d).length>0?{error:{...d,...p?{show:!1}:{}}}:{}}}function It(e){let t=[],n=[],r=e=>{typeof e==`string`?n.push(e):e&&t.push(e)};for(let t of S(O(e.dataValidations)?.dataValidation))r(Ft(t,B(t,`sqref`)??``,V(t.formula1),V(t.formula2)));let i=O(jt(e,kt.validations)?.dataValidations);for(let e of S(i?.dataValidation))r(Ft(e,V(e.sqref).trim(),V(O(e.formula1)?.f),V(O(e.formula2)?.f)));return{rules:t,unread:n}}function Lt(e){let t=/^(-?\d{4,})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e)??/^()()()(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(e);if(!t)return;let n=t[1]===``,r=n?1899:Number(t[1]),i=n?12:Number(t[2]),a=n?30:Number(t[3]),o=Number(t[4]??0)*3600+Number(t[5]??0)*60+Number(t[6]??0)+Number(t[7]??0),s=new Date(Date.UTC(r,i-1,a)+o*1e3);if(Number.isNaN(s.getTime()))return;let c=m(s);return n?c-Math.floor(c):c}var Rt;function zt(e,t){let n=e.row-t.row,r=e.col-t.col;Object.defineProperty(e,"node",{get:()=>(Rt?.cell!==e&&(Rt={cell:e,node:R(t.node,n,r)}),Rt.node),set:t=>{Object.defineProperty(e,"node",{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}),e.key=t.key}function Bt(e,t,n){let r=Re(e,t,n);return r.ok?{node:r.node}:{unread:e}}function Vt(e){let t=P(e.ref??``),n=e=>{if(e===void 0||e===``)return``;let t=z(e.replaceAll(`$`,``));return t?`$${_(t.col)}$${String(t.row+1)}`:void 0},r=n(e.r1),i=n(e.r2);if(!t||r===void 0||r===``||i===void 0)return;let a=e.dt2D===`1`||e.dt2D===`true`,o=e.dtr===`1`||e.dtr===`true`,s=a?`${r},${i}`:o?`${r},`:`,${r}`,c=E(`=TABLE(${s})`);return c.ok?{ref:t,node:c.node}:void 0}function Ht(e){for(let{ref:t,node:n}of e.dataTables){let r=new Set;for(let i of e.cells)i.row<t.top||i.row>t.bottom||i.col<t.left||i.col>t.right||(i.node=n,Reflect.deleteProperty(i,`unread`),r.add(`${String(i.row)}:${String(i.col)}`));for(let i=t.top;i<=t.bottom;i++)for(let a=t.left;a<=t.right;a++)r.has(`${String(i)}:${String(a)}`)||e.cells.push({row:i,col:a,value:void 0,node:n,style:0})}}var Ut=class{cells=[];rows=[];dataTables=[];outlined=!1;rest=[];xml;masters=new Map;above=new Map;left;strings;palette;name;isRangeName;inData=!1;row=-1;nextRow=0;nextCol=0;cell;target;buffer=``;skip=0;constructor(e,t,n,r){this.strings=e,this.palette=t,this.name=n,this.isRangeName=r,this.xml=new Ke(this),this.xml.capture=this.rest}open(e,t){if(!this.inData){e===`sheetData`&&(this.inData=!0,this.xml.capture=void 0);return}let n=this.cell;if(n){if(this.skip>0){this.skip+=1;return}switch(e){case`v`:this.target=`v`,this.buffer=``;return;case`f`:n.f={...t,text:``},this.target=`f`,this.buffer=``;return;case`is`:n.inline={text:``,runs:new qe};return;case`t`:n.inline&&(this.target=`t`,this.buffer=``);return;case`rPh`:case`phoneticPr`:case`extLst`:this.skip=1;return;default:n.inline?.runs.open(e,t);return}}e===`row`?this.openRow(t):e===`c`&&(this.cell={r:t.r,s:t.s,t:t.t,cm:t.cm,v:void 0,f:void 0,inline:void 0})}close(e){if(!this.inData)return;let t=this.cell;t?this.skip>0?--this.skip:e===this.target?(e===`v`?t.v=this.buffer:e===`f`&&t.f?t.f.text=this.buffer:t.inline&&(t.inline.text+=this.buffer,t.inline.runs.text(this.buffer)),this.target=void 0):(t.inline?.runs.close(e),e===`c`&&(this.cell=void 0,this.readCell(t))):e===`sheetData`&&(this.inData=!1,this.xml.capture=this.rest)}text(e){this.target!==void 0&&this.skip===0&&(this.buffer+=e)}openRow(e){let t=e.r,n=t===void 0?void 0:Number(t);if(n!==void 0&&Number.isInteger(n)&&n>1048576)throw Error(`${this.name} has a row ${t??``}, and ${st}.`);let r=n!==void 0&&Number.isInteger(n)&&n>0?n-1:this.nextRow;this.row=r,this.nextRow=r+1,this.nextCol=0;let i={row:r},a=e.ht===void 0?void 0:Number(e.ht),o=e=>e===`1`||e===`true`;a!==void 0&&Number.isFinite(a)&&o(e.customHeight)&&(i.height=u(a)),o(e.hidden)&&(i.hidden=!0);let s=e.s===void 0?void 0:Number(e.s);s!==void 0&&s!==0&&o(e.customFormat)&&(i.style=s);let c=Number(e.outlineLevel??0);c>0&&(i.level=Math.min(7,c),this.outlined=!0),Object.keys(i).length>1&&this.rows.push(i)}value(e,t){let n=e.t??`n`;if(n===`inlineStr`){let t=e.inline;if(!t)return{value:e.v===void 0?``:k(e.v)};let{runs:n}=t.runs;return{value:k(t.text),...n.length>0?{runs:Xe(n,this.palette)}:{}}}let r=e.v;if(r===void 0)return{value:void 0};switch(n){case`s`:{let e=this.strings[Number(r)];return e?{value:e.text,...e.runs?{runs:e.runs}:{}}:{value:``}}case`str`:return{value:k(r)};case`b`:return{value:r.trim()===`1`||r.trim()===`true`};case`e`:return{value:y(r.trim())??f.VALUE};case`d`:return{value:Lt(r.trim())??r};default:{if(r.trim()===``)return{value:void 0};let e=Number(r);if(Number.isNaN(e))throw Error(`${t} says it holds a number and holds ${r}.`);return{value:e}}}}formula(e,t,n,r){let i=e.f;if(i===void 0)return;let a=i.t??`normal`,o=i.text;if(a===`dataTable`){let e=Vt(i);e?this.dataTables.push(e):r.unread=`a data table's {=TABLE(${i.r1??``})}`;return}if(a===`array`){Object.assign(r,Bt(o,!0,this.isRangeName));let t=P(i.ref??``);t&&(r.array=t),e.cm!==void 0&&(r.dynamic=!0);return}if(a===`shared`){let e=i.si??``;if(o!==``){let i=Bt(o,!1,this.isRangeName),a=i.node?N(i.node,t,n):``;this.masters.set(e,{node:i.node,unread:i.unread,row:t,col:n,key:a}),Object.assign(r,i),i.node&&(r.key=a);return}let a=this.masters.get(e);if(!a){r.unread=`a shared formula of a group that has no first cell (${e})`;return}a.node?zt(r,{node:a.node,row:a.row,col:a.col,key:a.key}):a.unread!==void 0&&(r.unread=a.unread);return}if(o===``)return;let s=Bt(o,!1,this.isRangeName);if(!s.node){Object.assign(r,s);return}let c=N(s.node,t,n),l=this.left?.row===t?this.left:void 0,u=[this.above.get(n),l].find(e=>e?.key===c);u?zt(r,u):(r.node=s.node,r.key=c);let d=u??{node:s.node,row:t,col:n,key:c};this.above.set(n,d),this.left=d}readCell(e){let t=e.r===void 0?void 0:ct(e.r,this.name),n=t?.row??this.row,r=t?.col??this.nextCol;if(r>=16384)throw Error(`${this.name} has a cell past its last column, and ${st}.`);this.nextCol=r+1;let i=e.r??b({row:n,col:r}),{value:a,runs:o}=this.value(e,i),s={row:n,col:r,value:a,style:e.s===void 0?0:Number(e.s)||0};o&&(s.runs=o),this.formula(e,n,r,s),this.cells.push(s)}};function Wt(e,t){let n=[],r=t=>n.push(`${e}: ${t}`),i=S(O(t.hyperlinks)?.hyperlink).filter(e=>B(e,`tooltip`)!==void 0);i.length>0&&r(`the tooltips of ${ot(i.length,`link`)} (${at(i.map(e=>B(e,`ref`)??``))})`),t.sortState!==void 0&&r(`a sort`);let a=O(t.sheetProtection);D(a,`sheet`)===!0&&(B(a,`password`)!==void 0||B(a,`hashValue`)!==void 0)&&r(`its protection's password: it is protected with none`),t.protectedRanges!==void 0&&r(`protected ranges`);let o=O(t.headerFooter);(o?.evenHeader!==void 0||o?.evenFooter!==void 0||o?.firstHeader!==void 0||o?.firstFooter!==void 0)&&r(`its print header and footer of the first or even pages`);let s=O(t.printOptions);return s&&[`gridLines`,`headings`,`horizontalCentered`,`verticalCentered`].some(e=>D(s,e)===!0)&&r(`its print options (gridlines, headings, centring)`),t.oleObjects!==void 0&&r(`embedded objects`),t.controls!==void 0&&r(`form controls`),t.dataConsolidate!==void 0&&r(`a consolidation`),t.customSheetViews!==void 0&&r(`custom views`),S(O(t.sheetViews)?.sheetView).some(e=>B(O(e.pane),`state`)===`split`)&&r(`a split, not frozen, window`),JSON.stringify(t.extLst??``).includes(`slicerList`)&&r(`slicers`),n}function Gt(e,t){let n=[],r=(t,r,i)=>{let a=e.count(t);a>0&&n.push(ot(a,r,i))};e.has(`xl/vbaProject.bin`)&&n.push(`VBA macros`),r(/^xl\/pivotTables\/pivotTable\d*\.xml$/u,`pivot table`),r(/^xl\/chartsheets\/[^/]+\.xml$/u,`chart sheet`),r(/^xl\/dialogsheets\/[^/]+\.xml$/u,`dialog sheet`),r(/^xl\/macrosheets\/[^/]+\.xml$/u,`macro sheet`);let i=e.names.filter(e=>e.startsWith(`xl/media/`)&&!t.has(e)).length;return i>0&&n.push(ot(i,`image`)),r(/^xl\/embeddings\//u,`embedded object`),r(/^xl\/slicers\/[^/]+\.xml$/u,`slicer part`),r(/^xl\/timelines\/[^/]+\.xml$/u,`timeline part`),r(/^xl\/ctrlProps\/[^/]+\.xml$/u,`form control`),r(/^xl\/activeX\/[^/]+\.xml$/u,`ActiveX control`),r(/^xl\/queryTables\/[^/]+\.xml$/u,`query table`),e.has(`xl/connections.xml`)&&n.push(`data connections`),e.names.some(e=>e.startsWith(`xl/richData/`))&&n.push(`rich values (data types, pictures in cells)`),e.names.some(t=>/^customXml\/item\d+\.xml$/u.test(t)&&(e.text(t)??``).includes(`DataMashup`))&&n.push(`Power Query queries`),n}function Kt(e){let t={left:``,center:``,right:``},n=`center`,r=new Set;for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];a===`&`&&(o===`L`||o===`C`||o===`R`)?(n=o===`L`?`left`:o===`C`?`center`:`right`,r=new Set([...r,n]),i+=1):a===`&`&&o===`&`?(t[n]+=`&&`,i+=1):t[n]+=a??``}return Object.fromEntries(Object.entries(t).filter(([e,t])=>t!==``||r.has(e)))}var qt=new Map(Object.entries(n).map(([e,t])=>[t,e]));function Jt(e,t,n){let r={},a=O(e.pageSetup),o=B(a,`orientation`);(o===`portrait`||o===`landscape`)&&(r.orientation=o);let s=I(a,`paperSize`);if(s!==void 0){let e=qt.get(s);e?r.paper=e:n.push(`${t}: its paper size, Excel's number ${String(s)}`)}D(O(O(e.sheetPr)?.pageSetUpPr),`fitToPage`)===!0&&(r.fit={width:I(a,`fitToWidth`)??1,height:I(a,`fitToHeight`)??1});let c=I(a,`scale`);c!==void 0&&c!==100&&c>=10&&c<=400&&(r.scale=Math.round(c));let l=t=>S(O(e[t])?.brk).filter(e=>D(e,`man`)===!0).map(e=>I(e,`id`)).filter(e=>e!==void 0&&e>0).sort((e,t)=>e-t),u=l(`rowBreaks`).map(e=>e+1),d=l(`colBreaks`).map(e=>_(e));(u.length>0||d.length>0)&&(r.breaks={...u.length>0?{rows:u}:{},...d.length>0?{cols:d}:{}});let f=O(e.pageMargins),p={};for(let e of Object.keys(i)){let t=I(f,e);t!==void 0&&t!==i[e]&&(p[e]=t)}Object.keys(p).length>0&&(r.margins=p);let m=O(e.headerFooter),h=V(m?.oddHeader),g=V(m?.oddFooter);return h!==``&&(r.header=Kt(k(h))),g!==``&&(r.footer=Kt(k(g))),r}function Yt(e,t,n,r,i){let a=e.rels(t),o=new Map;for(let t of a.filter(e=>e.type===`comments`)){let n=O(e.xml(t.target)?.comments),r=O(n?.authors)?.author,i=(Array.isArray(r)?r:r===void 0?[]:[r]).map(e=>k(V(e)));for(let e of S(O(n?.commentList)?.comment)){let t=B(e,`ref`)??``,n=O(e.text),r=S(n?.r),a=k(r.length>0?r.map(e=>V(e.t)).join(``):V(n?.t)),s=i[I(e,`authorId`)??-1];t!==``&&a!==``&&o.set(t,{ref:t,text:a,...s===void 0||s===``?{}:{author:s}})}}let s=0;for(let t of a.filter(e=>e.type===`threadedComment`)){let n=O(e.xml(t.target)?.ThreadedComments),i=new Map;for(let e of S(n?.threadedComment)){let t=B(e,`ref`)??``,n=k(V(e.text)),a=i.get(t)??{texts:[]};if(a.texts.length===0){let t=r.get(B(e,`personId`)??``);t!==void 0&&(a.author=t)}a.texts.push(n),i.set(t,a)}for(let[e,t]of i)s+=1,o.set(e,{ref:e,text:t.texts.join(`
|
|
41
|
-
`),...t.author===void 0?{}:{author:t.author}})}return s>0&&i.push(`${n}: ${ot(s,`threaded comment`)}, kept as notes, replies after the first line`),[...o.values()]}function Xt(e,t,n,r,i,a,o,s,c,l,u,d){let f=new Ut(i,a,n,c);if(!e.stream(t,f.xml))throw Error(`${t} is not in the file.`);Ht(f);let p=M(f.rest.join(``)),m=O(p.worksheet);if(!m)throw Error(`${t} is not a worksheet.`);let h=S(O(m.cols)?.col).map(e=>{let t=I(e,`width`),r=I(e,`style`),i=I(e,`outlineLevel`)??0,a=(I(e,`min`)??1)-1,o=(I(e,`max`)??1)-1;if(o>=16384)throw Error(`${n} sets a column past its last, and ${st}.`);let s=D(e,`customWidth`),c=t===void 0?void 0:rt(t);return{min:a,max:o,...c!==void 0&&(s===!0||s===void 0&&c!==Qt)&&t!==void 0?{width:te(t)}:{},...D(e,`hidden`)===!0?{hidden:!0}:{},...r===void 0||r===0?{}:{style:r},...i>0?{level:Math.min(7,i)}:{}}}),g=S(O(m.mergeCells)?.mergeCell).flatMap(e=>{let t=P(B(e,`ref`)??``);return t?[t]:[]}),_=S(O(m.sheetViews)?.sheetView)[0],v=O(_?.pane),y,b=B(v,`state`);if(b===`frozen`||b===`frozenSplit`){let e=z(B(_,`topLeftCell`)??`A1`)??{row:0,col:0};y={row:e.row+(I(v,`ySplit`)??0),col:e.col+(I(v,`xSplit`)??0)}}let x=e.rels(t),C=x.filter(e=>e.type===`table`).flatMap(t=>{let n=St(e.xml(t.target),o);return n?[n]:[]}),w=F(O(O(m.sheetPr)?.tabColor),a),T=Wt(n,m),E=Mt(m,o,a),k=It(m);for(let e of E.unread)T.push(`${n}: a conditional format, ${e}`);for(let e of k.unread)T.push(`${n}: a data validation, ${e}`);let A=O(m.autoFilter),j=P(B(A,`ref`)??``),N=A&&j?{ref:j,...xt(A,o)}:void 0;N&&N.unread>0&&T.push(`${n}: ${ot(N.unread,`filter`)} by condition on ${B(A,`ref`)??``}, its rows left as they were hidden`);let{charts:L,pictures:ee}=en(e,t,n,h,f.rows,T,l,u,d),R={},V=new Map(x.map(e=>[e.id,e]));for(let e of S(O(m.hyperlinks)?.hyperlink)){let t=B(e,`ref`);if(t===void 0)continue;let n=B(e,`location`),r=B(e,`id`),i=r===void 0?void 0:V.get(r)?.target;i===void 0?n!==void 0&&(R[t]=`#${n}`):R[t]=n===void 0?i:`${i}#${n}`}let ne=O(m.sheetProtection),H=Jt(m,n,T),re=At(m);return{sheet:{name:n,state:r,cells:f.cells,merges:g,...y?{freeze:y}:{},...B(_,`showGridLines`)===`0`?{gridlines:!1}:{},...w===void 0?{}:{tab:w},columns:h,rows:f.rows,tables:C,conditional:E.rules,validations:k.rules,...re.length>0?{sparklines:re}:{},scenarios:S(O(m.scenarios)?.scenario).map(e=>({name:B(e,`name`)??``,cells:S(e.inputCells).map(e=>({at:B(e,`r`)??``,value:B(e,`val`)??``}))})),...N?{filter:N}:{},charts:L,links:R,notes:Yt(e,t,n,s,T),pictures:ee,...D(ne,`sheet`)===!0?{protect:!0}:{},...Object.keys(H).length>0?{print:H}:{},...Zt(O(O(m.sheetPr)?.outlinePr))},lost:T}}function Zt(e){let t=D(e,`summaryBelow`)===!1,n=D(e,`summaryRight`)===!1;return t||n?{outline:{...t?{summary_below:!1}:{},...n?{summary_right:!1}:{}}}:{}}var Qt=64,$t=20;function en(e,t,n,r,i,a,o,s,c){let l=e=>r.find(t=>e>=t.min&&e<=t.max)?.width??Qt,u=new Map(i.map(e=>[e.row,e.height])),d=e=>u.get(e)??$t,f=[],p=[];for(let r of e.rels(t).filter(e=>e.type===`drawing`)){let t=Oe(e.xml(r.target),l,d),i=e.rels(r.target);for(let r of t.anchors){let t=i.find(e=>e.id===r.id),o=b(r.at);if(r.width<=0||r.height<=0){a.push(`${n}: the chart at ${o}, of no size`);continue}let l=[],u=we(t?e.xml(t.target):void 0,l,s,c);if(typeof u==`string`)a.push(`${n}: the chart at ${o}, as ${u}`);else{for(let e of l)a.push(`${n}: the chart at ${o} without its ${e}`);f.push({...u,at:o,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},...r.width===g.width?{}:{width:r.width},...r.height===g.height?{}:{height:r.height}})}}for(let r of t.pictures){let t=i.find(e=>e.id===r.id),s=t&&!t.external?e.bytes(t.target):void 0;if(!t||!s){a.push(`${n}: the picture at ${b(r.at)}, whose image is not in the file`);continue}o.add(t.target);let c=t.target.slice(t.target.lastIndexOf(`.`)+1).toLowerCase();p.push({row:r.at.row,col:r.at.col,...r.x===void 0?{}:{x:r.x},...r.y===void 0?{}:{y:r.y},width:r.width,height:r.height,...r.name===void 0?{}:{name:r.name},...r.descr===void 0?{}:{descr:r.descr},bytes:s,type:c})}t.others>0&&a.push(`${n}: ${ot(t.others,`shape`)} of its drawing`)}return{charts:f,pictures:p}}function tn(e,t,n){for(let r of e){if(r.sheet===void 0)continue;let e=t[r.sheet];if(!e)continue;let i=r.text.split(`,`).map(e=>e.slice(e.lastIndexOf(`!`)+1).replaceAll(`$`,``));if(r.name===`_xlnm.Print_Area`){let[t]=i;i.length>1&&n.push(`${e.name}: its print area's ranges after the first`),t!==void 0&&P(t)&&(e.print={...e.print,area:t})}else if(r.name===`_xlnm.Print_Titles`)for(let t of i)/^\d+:\d+$/u.test(t)?e.print={...e.print,title_rows:t}:/^[A-Za-z]+:[A-Za-z]+$/u.test(t)&&(e.print={...e.print,title_cols:t})}}function nn(e,t){let n;try{n=new lt(e,t)}catch(e){throw e instanceof H?e:Error(`It is not a zip file, as an .xlsx file is.`)}let r=n.rels(``),i=r.find(e=>e.type===`officeDocument`)?.target??`xl/workbook.xml`;if(i.endsWith(`.bin`))throw Error(`It is a binary workbook (.xlsb): save it as .xlsx.`);let a=n.xml(i),o=O(a?.workbook);if(!o)throw Error(`It has no workbook part.`);let s=n.rels(i),c=e=>s.find(t=>t.type===e)?.target,l=(()=>{let e=c(`theme`);return e===void 0?void 0:n.text(e)})(),u=l===void 0?C:w(l),d=c(`styles`),f=d===void 0?void 0:n.xml(d),p=vt(f,u),m=ee(u,O(f?.styleSheet)),h=dt(n,c(`sharedStrings`),m),g=[];for(let e of p.lost)g.push(e);let _=O(o.workbookPr),v=tt(O(o.calcPr)),y=et(u);B(O(o.calcPr),`calcMode`)===`manual`&&g.push(`manual calculation: it computes as its cells change`);let b=O(o.workbookProtection);(D(b,`lockStructure`)===!0||D(b,`lockWindows`)===!0)&&g.push(`the workbook's protection`),o.fileSharing!==void 0&&g.push(`its write protection`);let x=new Map,T=c(`person`);if(T!==void 0)for(let e of S(O(n.xml(T)?.personList)?.person))x.set(B(e,`id`)??``,k(B(e,`displayName`)??``));let E=S(O(o.definedNames)?.definedName).map(e=>{let t=I(e,`localSheetId`);return{name:B(e,`name`)??``,text:k(V(e)),...t===void 0?{}:{sheet:t},...D(e,`hidden`)===!0?{hidden:!0}:{}}}),A=[],j=new Set,M=new Map(s.map(e=>[e.id,e])),N=S(O(o.sheets)?.sheet),P=new Set(N.filter(e=>M.get(B(e,`id`)??``)?.type===`worksheet`).map(e=>k(B(e,`name`)??``).toLowerCase()));for(let[e,t]of N.entries()){let r=M.get(B(t,`id`)??``),i=k(B(t,`name`)??``);if(r?.type!==`worksheet`){r?.type!==`chartsheet`&&r?.type!==`dialogsheet`&&g.push(`${i}: a sheet of a kind this cannot read`);continue}let a=new Map;for(let t of E)t.sheet!==void 0&&t.sheet!==e||t.sheet===void 0&&a.has(t.name.toLowerCase())||a.set(t.name.toLowerCase(),ze(t.text));let o=B(t,`state`),s=Xt(n,r.target,i,o===`hidden`||o===`veryHidden`?o:`visible`,h,m,p.dxfs,x,e=>a.get(e.toLowerCase())===!0,j,e=>P.has(e.toLowerCase()),e=>a.has(e.toLowerCase()));A[e]=s.sheet,g.push(...s.lost)}tn(E,A,g);let F=r.find(e=>e.type===`core-properties`)?.target,L=F===void 0?void 0:V(O(n.xml(F)?.coreProperties)?.title).trim(),R=A.filter(e=>e!==void 0),z=new Map;return A.forEach((e,t)=>{e!==void 0&&z.set(t,R.indexOf(e))}),{sheets:R,names:E.flatMap(e=>{if(e.sheet===void 0)return[e];let t=z.get(e.sheet);return t===void 0?[]:[{...e,sheet:t}]}),looks:p.looks,dxfs:p.dxfs,date1904:D(_,`date1904`)===!0,font:p.font,...L===void 0||L===``?{}:{title:L},...v===void 0?{}:{iteration:v},...y===void 0?{}:{theme:y},lost:[...Gt(n,j),...g]}}var rn=T(`a:solidFill`,{},T(`a:schemeClr`,{val:`phClr`}));T(`a:ln`,{w:6350,cap:`flat`,cmpd:`sng`,algn:`ctr`},rn,T(`a:prstDash`,{val:`solid`})),T(`a:effectStyle`,{},T(`a:effectLst`)),`${j.rel}`,T(`metadata`,{xmlns:j.main,"xmlns:xda":`http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray`},T(`metadataTypes`,{count:1},T(`metadataType`,{name:`XLDAPR`,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1})),T(`futureMetadata`,{name:`XLDAPR`,count:1},T(`bk`,{},T(`extLst`,{},T(`ext`,{uri:`{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}`},T(`xda:dynamicArrayProperties`,{fDynamic:1,fCollapsed:0}))))),T(`cellMetadata`,{count:1},T(`bk`,{},T(`rc`,{t:1,v:0})))),RegExp(`^${`AllyHub lists`.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`)}(?: \\(\\d+\\))?$`,`u`);var an=1462,on=/^#[0-9a-fA-F]{6}$/u,sn=e=>typeof e==`string`&&on.test(e)?e:void 0;function cn(e,t){let n=new Map,r=t.merges.filter(e=>e.bottom>e.top||e.right>e.left),i=new Set(r.map(e=>W(e.top,e.left))),a=[],o=0,s=0;for(let r of t.cells){let t=e.looks[r.style]??{},c=r.value??null,u=e.date1904&&typeof c==`number`&&v(t.format)?c+an:c,d=l(u,t.format),f=sn(t.fill);if(d===``&&f===void 0)continue;let p=sn(t.color),m=t.align===`left`||t.align===`right`||t.align===`center`?t.align:t.align===`centerContinuous`?`center`:typeof c==`number`?`right`:typeof c==`string`||c===null?void 0:`center`;n.set(W(r.row,r.col),{text:d,...m===void 0?{}:{align:m},...t.bold===!0?{bold:!0}:{},...t.italic===!0?{italic:!0}:{},...t.underline===void 0||t.underline===!1?{}:{underline:!0},...t.strike===!0?{strike:!0}:{},...p===void 0?{}:{color:p},...f===void 0?{}:{fill:f}}),o=Math.max(o,r.row+1),s=Math.max(s,r.col+1),r.row<200&&!i.has(W(r.row,r.col))&&(a[r.col]=Math.max(a[r.col]??0,oe(d)))}for(let e of r)n.has(W(e.top,e.left))&&(o=Math.max(o,e.bottom+1),s=Math.max(s,e.right+1));let c=Array.from({length:s},(e,t)=>Math.max(64,ae(a[t]??0)));for(let e of t.columns)if(e.width!==void 0)for(let t=e.min;t<=Math.min(e.max,s-1);t++)c[t]=Math.max(1,Math.round(e.width));return{name:t.name,rows:o,columns:s,widths:c,cells:n,merges:r}}function ln(e){let t=e.sheets.filter(e=>e.state===`visible`);return{sheets:(t.length>0?t:e.sheets).map(t=>cn(e,t))}}function un(e){return ln(nn(e))}export{un as tableOfWorkbook};
|