allyhub 0.19.0 → 0.21.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/align.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +1 -1
- package/dist/commands/inspect/common.js +2 -2
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
- package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
- package/dist/node_modules/@allyhub/blocks/package.json +19 -0
- package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +5 -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/dist/chart-file.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
- package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
- package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
- package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- 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/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +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 +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
- package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
- package/dist/node_modules/@allyhub/doc/package.json +5 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
- package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +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/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
- package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +2 -2
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
- 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/dist/block.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +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 -3
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
- 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/dist/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
- 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/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
- package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- 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/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -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/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +8 -8
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.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 +7 -7
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +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/dist/fonts/archivo/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
- package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
- 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/self-upgrade.js +2 -0
- package/dist/text/batch-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/update-notice.js +3 -0
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-B4tvwU6C.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-V2fA0vY2.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-B6B7XN0M.js} +1 -1
- package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
- package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
- package/editor-web/assets/article-DW4eD_8K.js +3 -0
- package/editor-web/assets/article-Dm2dIEwc.js +7 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/{bar-button-J9vbfzTx.js → bar-button-CJmpgNg4.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BizcUGOM.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-CBHS0dQ0.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-dyUtlVPg.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
- package/editor-web/assets/chip-BdQRH3FL.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-CMPBck_Q.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-Df22Adpt.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-CYrZ6_Q7.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BfdG9NNW.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BCzZMoTJ.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DT0xT8Wf.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-Bg3-EotU.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BrSym24V.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-CMxgkJWF.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-DWEwoyPy.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-eTFh5_T9.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-4PTupr9T.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-D5XAAFWm.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-CPsdaisO.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-ClnuUyfy.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-CM21waNF.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/{collaborator-BU4qU7O3.js → collaborator-CbTacvkB.js} +1 -1
- package/editor-web/assets/color-picker-BmKFn2ww.js +1 -0
- package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
- package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-CJUHTgee.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-C9RIfuIV.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-g-01KdpO.js} +1 -1
- package/editor-web/assets/deck-C0VxrlzX.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-CbOjWUu-.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-C6psNS8J.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-C9PUE46P.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-vJ_pnB33.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-FwYlEfJ-.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-FKpIxeUc.js} +1 -1
- package/editor-web/assets/{dist-DruvDNQe.js → dist-B8_6sJ_V.js} +5 -5
- package/editor-web/assets/dist-BI_BaYhO.js +19 -0
- package/editor-web/assets/dist-BaWFMuvr.js +1 -0
- package/editor-web/assets/dist-BdmMT8fP.js +5 -0
- package/editor-web/assets/dist-BgKyM9U6.js +3 -0
- package/editor-web/assets/dist-BqijryYd.js +1 -0
- package/editor-web/assets/dist-ByguWp3a.js +16 -0
- package/editor-web/assets/dist-CB-_0-X4.js +41 -0
- package/editor-web/assets/dist-CCP24Lel.js +19 -0
- package/editor-web/assets/dist-Cg0Z26Kv.js +6 -0
- package/editor-web/assets/dist-CtYjYJdv.js +1 -0
- package/editor-web/assets/dist-D07Kj8GR.js +1 -0
- package/editor-web/assets/dist-D2rGVz9C.js +1 -0
- package/editor-web/assets/dist-D3DwRF1k.js +547 -0
- package/editor-web/assets/dist-DCI21ljp.js +6 -0
- package/editor-web/assets/dist-DH8oJJw9.js +35 -0
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DJvfQvM7.js +24 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DmCDcb2_.js +4 -0
- package/editor-web/assets/dist-H0z_DXDz.js +19 -0
- package/editor-web/assets/dist-QLXI7XGS.js +82 -0
- package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-Dxb67W2d.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-DBymUM-F.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-BNYR3OlS.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-cTNyOqW6.js} +1 -1
- package/editor-web/assets/esm-Cl3GKSDd.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-C6FUZeXP.js} +1 -1
- package/editor-web/assets/eye-DwfE1USj.js +1 -0
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-LD9mqQ1x.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-CtCBcQFl.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-DYQpOozz.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/{hint-rlht0uxG.js → hint-F4fIBnVU.js} +1 -1
- package/editor-web/assets/index-Cah2zchD.css +2 -0
- package/editor-web/assets/index-omhSywJb.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-IXInKPRO.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-Ds7Cei7T.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-DWs3qtAX.js} +1 -1
- package/editor-web/assets/iso-UwGLGD3F.js +1 -0
- package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-BkNKVYBA.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-D3dMswnI.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-D_W_0X0N.js} +3 -3
- package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-Bkirj-s5.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-CMKkAAvI.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-CzCkgCfg.js} +1 -1
- package/editor-web/assets/palette-DchDLJj6.js +1 -0
- package/editor-web/assets/panes-BexRuZd2.js +3 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-C8qHkx7M.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-BJqgxMrD.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-DyNntV5y.js} +1 -1
- package/editor-web/assets/{progress-CwKcXARv.js → progress-D1Uv3d1b.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BHa-69ir.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-BeRPjBBR.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-BaRQqRsK.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-BZfwomxZ.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-DbgqpEF5.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-BYOf3PsQ.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-B5OAzOsD.js} +1 -1
- package/editor-web/assets/react-Byupo4pA.js +1 -0
- package/editor-web/assets/replace-CLLMtF4e.js +1 -0
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-wqYNoqO0.js} +1 -1
- package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +1 -0
- package/editor-web/assets/row-DqS4-5b1.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-Crf6GRsa.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
- package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
- package/editor-web/assets/search-D75Bi2GU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DUcHz4_d.js} +1 -1
- package/editor-web/assets/{session-DMlLCFWg.js → session--OJYv_B7.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DYooVfOx.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -0
- package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-DbeLdnpS.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/{surface-DtCjIlrq.js → surface-BUoi7cmR.js} +1 -1
- package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-BDi6AeJI.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +8 -0
- package/editor-web/assets/{switch-8MU4Nfxe.js → switch-b6GCy_ix.js} +1 -1
- package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tablet-C6oePHEW.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/{textarea-D7TnPwv1.js → textarea-Bu6uPEqT.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-B0awa2hh.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-C91G0IGm.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-CiOWiwl2.js} +1 -1
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/updating-D0GEtwnJ.js +1 -0
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-DMYM1MRe.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-DQIJ5vvN.js} +1 -1
- package/editor-web/assets/video-mMOFXHYK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-C3H9HG8r.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-DgsjqY1Y.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-CaUHhQHf.js → words-B2jQwWpp.js} +3 -3
- package/editor-web/assets/words-DgMuEmDO.js +3 -0
- package/editor-web/assets/workbook-NtMEyLgf.js +41 -0
- package/editor-web/assets/{x-DlhyIKuu.js → x-BAJilkKD.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-DzsGI527.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -9
- package/package.json +6 -3
- package/CHANGELOG.md +0 -251
- package/dist/commands/render.js +0 -3
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
- package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
- package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
- package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
- package/editor-web/assets/article-8evPh712.js +0 -3
- package/editor-web/assets/article-BhRtWYMd.js +0 -7
- package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
- package/editor-web/assets/channel-wIj_OqDm.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
- package/editor-web/assets/dist-3iovns9K.js +0 -16
- package/editor-web/assets/dist-BkHnbOEj.js +0 -4
- package/editor-web/assets/dist-BvOrNcK-.js +0 -19
- package/editor-web/assets/dist-CEIszq39.js +0 -1
- package/editor-web/assets/dist-CU5RbLNH.js +0 -1
- package/editor-web/assets/dist-CWZj8IAm.js +0 -1
- package/editor-web/assets/dist-C_Mtrnif.js +0 -17
- package/editor-web/assets/dist-CdqpwdCV.js +0 -24
- package/editor-web/assets/dist-CjT76RAw.js +0 -43
- package/editor-web/assets/dist-CpzEn9T8.js +0 -6
- package/editor-web/assets/dist-CrFYWl5-.js +0 -3
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-D4eBFGVL.js +0 -1
- package/editor-web/assets/dist-DTcjb3cP.js +0 -18
- package/editor-web/assets/dist-D_WSM29I.js +0 -17
- package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
- package/editor-web/assets/dist-J-tPYKGS.js +0 -5
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
- package/editor-web/assets/index-BQWZnyAQ.js +0 -28
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/layout-SWqqA0yV.js +0 -1
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
- package/editor-web/assets/react-Edyoga_4.js +0 -1
- package/editor-web/assets/row-C_svyL8o.js +0 -1
- package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-7xWhREpt.js +0 -1
- package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-tFGKk-x8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
- package/editor-web/assets/swatch-DhztHwPU.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
- package/editor-web/assets/syntax-CU_WPKxt.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-CuEawka3.js +0 -1
- package/editor-web/assets/tag-CIfWT8B_.js +0 -1
- package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
- package/editor-web/assets/video-D0uTbHWx.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{chartBook as Qe,embeddedChartXml as Je}from"@allyhub/chart";import{chartFrame as et,chartWords as tt,docChart as nt}from"./chart.js";import{BACKGROUNDS as Ie,TEXT_COLORS as Se,hex as ee}from"./color.js";import{columnWidths as it}from"./columns.js";import{COMPONENT_WIDTH as rt,componentName as ot}from"./component.js";import{blockId as $e,captionNumbers as st,contentsTitle as at,numberedCaption as Oe,writtenInChinese as dt,withoutTitle as ct}from"./captions.js";import{sourceList as lt,withSources as ht}from"./cite.js";import{HEADING_RULE_SPACE as ut,cardKept as pt,columnsKept as ft,docParts as gt,headingAnchors as mt,pageAccent as wt,trendSvg as yt}from"./html.js";import{effectiveLook as Fe,LIST_STEP as At,lineHeightPt as Tt,resolvePage as Et,sizePt as He}from"./page.js";import{splitTitle as Rt}from"./title.js";import{markdownOf as St}from"./markdown.js";import{charsAcross as Xe,columnShares as zt,emptyHead as Lt,numberColumns as Mt,withTableData as Ct}from"./table.js";import{DRAWN_CODE as ve}from"./math.js";import{PAPER as te,TONE_COLORS as Ue,tagColors as Nt}from"./paper.js";import{COVER_ASPECT as bt,everyBlock as ze,firstNoteMarks as xt,noteNumbers as Dt,statTone as It}from"./model.js";const ue=15,Ot=1440/25.4,Y=n=>Math.round(n*Ot),Ge="ListParagraph",Be="bullets",vt=1.8,pe=At*20,We={sans:{latin:"Calibri"},serif:{latin:"Cambria"},mono:{latin:"Courier New"},times:{latin:"Times New Roman"},song:{latin:"Times New Roman",eastAsia:"宋体"},hei:{latin:"Arial",eastAsia:"黑体"},fangsong:{latin:"Times New Roman",eastAsia:"仿宋"},kai:{latin:"Times New Roman",eastAsia:"楷体"},xiaobiaosong:{latin:"Times New Roman",eastAsia:"方正小标宋简体"}},Pe="Courier New",W=n=>n.slice(1).toUpperCase(),le=W(te.ink),fe=W(te.lead),Pt=Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=","base64"),Le=W(te.rule),ge=W(te.ruleStrong),Me=W(te.ruleMid),Ce=W(te.stone),_t=W(te.stone3),de=W(te.leadSoft),je="ALLYHUB-CHART-";function $t(n){return/[\u3040-\u30ff]/u.test(n)?"Yu Gothic":/[\uac00-\ud7af]/u.test(n)?"Malgun Gothic":"Microsoft YaHei"}const Ft=/^(https?:|mailto:)/i,Ne=n=>({indent:0,level:0,room:n,frame:rt}),Ke=n=>({...n,indent:n.indent+pe,level:Math.min(n.level+1,8)}),Ht=400,Xt=n=>n.type==="bullet"||n.type==="numbered"||n.type==="check";function Ut(n,u,w){const c=w/ue,S=Math.floor(Math.min(u??n.width,c));return{width:S,height:Math.round(S*n.height/n.width)}}const qe="TOCHeading";function Gt(n,u,w,c,S,z,r){const{AlignmentType:m,BorderStyle:y,ExternalHyperlink:l,ImageRun:x,Paragraph:h,ShadingType:Z,Table:F,TableCell:_,TableLayoutType:H,TableRow:G,TextRun:M,WidthType:p}=n,N=e=>{const t=e.filter(i=>!(i instanceof n.TableOfContents));return t.at(-1)instanceof h?t:[...t,Q(0)]},X={ascii:Pe,hAnsi:Pe,cs:Pe,eastAsia:w},$=new Set([1]);let ne=0;const k=[],B=e=>({type:Z.CLEAR,color:"auto",fill:e}),he=(e,t,i=4)=>({style:e,color:t,size:i,space:4}),o=r.page.spacing,E=e=>Math.round(e*20),Q=e=>new h({spacing:{before:0,after:E(e),line:14,lineRule:n.LineRuleType.EXACT}}),J=()=>o.after>0?[Q(o.after)]:[],j=e=>e==="center"?m.CENTER:e==="right"?m.RIGHT:e==="justify"?m.JUSTIFIED:void 0,ie=(e,t,i,f={})=>{if(t.tag!==void 0){const s=Nt(t.tag),R={...f,color:W(s.fg),size:Math.round((i.size??r.page.size*2)*.85),shading:B(W(s.bg)),...t.bold||i.bold?{bold:!0}:{},...t.italic?{italics:!0}:{}};return[new M({...R,text:` ${e.replace(/\n/gu," ")} `})]}const g=ee(t.color,Se)??i.color,a=ee(t.background,Ie),d={...f,...t.bold||i.bold?{bold:!0}:{},...t.italic?{italics:!0}:{},...t.underline?{underline:{}}:{},...t.strike?{strike:!0}:{},...g===void 0?{}:{color:g},...i.size===void 0?{}:{size:i.size},...t.code?{font:X,shading:B(a??Ce)}:a===void 0?{}:{shading:B(a)}};return e.split(`
|
|
3
|
-
`).map((s,R)=>new M({...d,text:s,...R>0?{break:1}:{}}))},U=(e,t={})=>e.flatMap(i=>i.note!==void 0?S.has(i.note.toLowerCase())?z.has(i)?[new n.FootnoteReferenceRun(S.get(i.note.toLowerCase())??1)]:[new M({text:String(S.get(i.note.toLowerCase())??1),style:"FootnoteReference"})]:[]:i.text===""&&i.href?.startsWith("#")===!0?xe(i.href.slice(1),i.styles,t):i.href!==void 0&&Ft.test(i.href)?[new l({link:i.href,children:ie(i.text,i.styles,t,{style:"Hyperlink"})})]:ie(i.text,i.styles,t)),xe=(e,t,i)=>{const f=decodeURIComponent(e),g=r.refs.get(f)??"",a=r.bookmarks.get(f);return g===""?[]:a===void 0?ie(g,t,i):[new n.InternalHyperlink({anchor:a,children:ie(g,t,i,{style:"Hyperlink"})})]},T=(e,t)=>{const i=e===void 0?void 0:r.bookmarks.get(e);return i===void 0?t:[new n.Bookmark({id:i,children:t})]},D=e=>{const t=j(e?.align),i=ee(e?.background,Ie);return{...t===void 0?{}:{alignment:t},...i===void 0?{}:{shading:B(i)}}},L=e=>e.indent===0?{}:{indent:{left:e.indent}},re=e=>{const t={style:y.SINGLE,color:e,size:4};return{top:t,bottom:t,left:t,right:t}},me=(e,t)=>{const i=ee(e.look?.background,Ie)??Ce,f=ee(e.look?.color,Se),g=t.room-t.indent,a=e.icon===void 0?0:E(r.page.size*vt)+E(o.box.side),d=g-a,s=(R,C)=>({top:E(o.box.top),bottom:E(Math.max(o.box.top-o.after,0)),left:R,right:C,marginUnitType:p.DXA});return new F({layout:H.FIXED,width:{size:g,type:p.DXA},columnWidths:a===0?[d]:[a,d],...t.indent===0?{}:{indent:{size:t.indent,type:p.DXA}},rows:[new G({cantSplit:!0,children:[...e.icon===void 0?[]:[new _({width:{size:a,type:p.DXA},shading:B(i),borders:re(i),margins:s(E(o.box.side),0),children:[new h({children:[new M({text:e.icon})]})]})],new _({width:{size:d,type:p.DXA},shading:B(i),borders:re(i),margins:s(a===0?E(o.box.side):0,E(o.box.side)),children:[new h({children:U(e.content,{color:f})}),...N(V(e.children??[],Ne(d-E(o.box.side))))]})]})]})},we=(e,t)=>{const i=t.room-t.indent,f=E(o.card.side),g=[...e.title===void 0?[]:[new h({spacing:{after:e.subtitle===void 0?E(o.after):0},children:U([{text:e.title,styles:{bold:!0}}])})],...e.subtitle===void 0?[]:[new h({spacing:{after:E(o.after)},children:[new M({text:e.subtitle,color:fe,size:o.small*2})]})]];return new F({layout:H.FIXED,width:{size:i,type:p.DXA},columnWidths:[i],...t.indent===0?{}:{indent:{size:t.indent,type:p.DXA}},rows:[new G({cantSplit:pt(e,r.page),children:[new _({width:{size:i,type:p.DXA},borders:re(Le),margins:{top:E(o.card.top),bottom:E(Math.max(o.card.top-o.after,0)),left:f,right:f,marginUnitType:p.DXA},children:N([...g,...V(e.children??[],Ne(i-2*f))])})]})]})},oe=(e,t)=>{const i=t.room-t.indent,f=E(o.gap),g=e.stats.length,a=Math.floor((i-f*(g-1))/g),d=e.stats.flatMap((b,P)=>P===0?[a]:[f,a]),s={style:y.NONE,size:0,color:"auto"},R={top:s,bottom:s,left:s,right:s},C=E(o.card.side),A=o.small*2,v=e.stats.flatMap((b,P)=>{const q=It(b),ce=[...b.delta===void 0?[]:[new M({text:b.delta,color:W(Ue[q]),size:A})],...b.note===void 0?[]:[new M({text:`${b.delta===void 0?"":" "}${b.note}`,color:fe,size:A})]],Ae=a-2*C,Te=b.trend===void 0?[]:[new h({spacing:{before:60,after:0,line:240},children:[new x({type:"svg",data:Buffer.from(yt(b.trend,Ue[q]).replace("<svg ",`<svg xmlns="http://www.w3.org/2000/svg" width="${String(Math.round(Ae/15))}" height="24" `)),fallback:{type:"png",data:Pt},transformation:{width:Math.round(Ae/15),height:24}})]})],I=new _({width:{size:a,type:p.DXA},borders:re(Le),margins:{top:E(o.card.top),bottom:E(o.card.top),left:C,right:C,marginUnitType:p.DXA},children:[new h({spacing:{after:0},children:[new M({text:b.label,color:fe,size:A})]}),new h({spacing:{after:0,line:240,lineRule:n.LineRuleType.AUTO},children:U([{text:b.value,styles:{bold:!0}}],{size:o.figure*2})}),...ce.length===0?[]:[new h({spacing:{after:0},children:ce})],...Te]}),O=new _({width:{size:f,type:p.DXA},borders:R,children:[new h({children:[]})]});return P===0?[I]:[O,I]});return new F({layout:H.FIXED,width:{size:i,type:p.DXA},columnWidths:d,...t.indent===0?{}:{indent:{size:t.indent,type:p.DXA}},rows:[new G({cantSplit:!0,children:v})]})},se=(e,t)=>{const i=t.room-t.indent,f=Math.max(1,...e.rows.map(I=>I.length)),g=Array.from({length:f},(I,O)=>e.widths?.[O]?(e.widths[O]??0)*ue:void 0),a=g.reduce((I,O)=>I+(O??0),0),d=zt(e,{across:Xe(Math.max(i-a,0)/ue,o.small),margins:Xe(2*o.cell.side*96/72,o.small)}),s=g.reduce((I,O,_e)=>I+(O===void 0?d[_e]??1:0),0)||1,R=Math.max(i-a,0),C=g.map((I,O)=>I??R*(d[O]??1)/s),A=C.reduce((I,O)=>I+O,0)||1,v=Math.min(1,i/A),b=C.map(I=>Math.round(I*v)),P=Lt(e),q=(e.head===void 0||e.head==="both")&&!P,ce=e.head==="column"||e.head==="both",Ae=Mt(e),Te=P?e.rows.slice(1):e.rows;return new F({layout:H.FIXED,width:{size:b.reduce((I,O)=>I+O,0),type:p.DXA},columnWidths:b,...t.indent===0?{}:{indent:{size:t.indent,type:p.DXA}},rows:Te.map((I,O)=>new G({tableHeader:q&&O===0,cantSplit:!0,children:Array.from({length:f},(_e,Ee)=>{const Re=q&&O===0,ke=ce&&Ee===0&&!Re;return new _({width:{size:b[Ee]??0,type:p.DXA},...Re?{shading:B(_t)}:{},borders:{top:O===0?{style:y.SINGLE,size:8,color:ge}:{style:y.NONE,size:0,color:"auto"},left:{style:y.NONE,size:0,color:"auto"},right:{style:y.NONE,size:0,color:"auto"},bottom:O===Te.length-1?{style:y.SINGLE,size:8,color:ge}:Re?{style:y.SINGLE,size:6,color:ge}:{style:y.SINGLE,size:4,color:Me}},margins:{top:E(o.cell.top),bottom:E(o.cell.top),left:E(o.cell.side),right:E(o.cell.side),marginUnitType:p.DXA},children:[new h({spacing:{after:0},...Ae.has(Ee)?{alignment:m.RIGHT}:{},children:U(I[Ee]??[],{bold:ke||Re,size:o.small*2})})]})})}))})},ae=(e,t,i,f,g,a)=>{const d=j(e.align),s={...L(t),...d===void 0?{}:{alignment:d}},R=i===void 0?void 0:e.caption,C=R!==void 0,A=[new h({...s,keepNext:C,...i?{spacing:{line:240,lineRule:n.LineRuleType.AUTO,...C?{after:E(o.caption)}:{}}}:{},children:i?[new x({type:i.type,data:i.data,transformation:Ut(i,e.width,t.room-t.indent),altText:{name:e.alt??"",title:e.caption??e.alt??"",description:e.alt??""}})]:[new M({text:f,color:de})]})];return R!==void 0&&A.push(new h({...s,style:"Caption",children:T(a,[new M({text:Oe(R,g)})])})),A},ye=(e,t)=>{const i=t.room-t.indent,f=e.columns.map(A=>A.width??1),g=f.reduce((A,v)=>A+v,0)||1,a=f.map(A=>Math.round(i*A/g)),d=it(e,t.frame),s={style:y.NONE,size:0,color:"auto"},R={top:s,bottom:s,left:s,right:s,insideHorizontal:s,insideVertical:s},C=Ht/2;return new F({layout:H.FIXED,width:{size:i,type:p.DXA},columnWidths:a,borders:R,...t.indent===0?{}:{indent:{size:t.indent,type:p.DXA}},rows:[new G({cantSplit:ft(e,r.page),children:e.columns.map((A,v)=>{const b=a[v]??0,P=v===0?0:C,q=v===e.columns.length-1?0:C,ce=N(V(A.blocks,{indent:0,level:0,room:b-P-q,frame:d[v]??t.frame}));return new _({width:{size:b,type:p.DXA},borders:R,margins:{top:0,bottom:0,left:P,right:q,marginUnitType:p.DXA},children:ce})})})]})},K=(e,t,i)=>{const f=ee(e.look?.color,Se),g=V(e.children??[],Ke(t)),a=D(e.look),d=Ge;return e.type==="check"?[new h({...a,...L(t),style:d,children:[new M({text:e.checked?"☑ ":"☐ "}),...U(e.content,{color:f})]}),...g]:[new h({...a,style:d,numbering:e.type==="bullet"?{reference:Be,level:t.level}:{reference:`start-${String(i.start)}`,level:t.level,instance:i.id},children:U(e.content,{color:f})}),...g]},De=(e,t)=>{const i="look"in e?e.look:void 0,f=ee(i?.color,Se),g=D(i),a=()=>"children"in e?V(e.children??[],Ke(t)):[];switch(e.type){case"paragraph":case"toggle":return[new h({...r.sets.align&&e.look?.align===void 0?{alignment:m.JUSTIFIED}:{},...g,...r.sets.indent&&e.type==="paragraph"?{indent:{left:t.indent,firstLine:Math.round(r.page.textIndent*r.page.size*20)}}:L(t),children:U(e.content,{color:f})}),...a()];case"heading":return[new h({...g,...L(t),...e===r.title?{heading:n.HeadingLevel.TITLE}:{heading:n.HeadingLevel[`HEADING_${String(e.level)}`]},children:T(r.anchors.get(e),U(e.content,{color:f}))}),...a()];case"quote":return[new h({...g,indent:{left:t.indent+E(o.quote)},border:{left:{style:y.SINGLE,color:c??ge,size:c?12:6,space:Math.floor(o.quote-(c?1.5:.75))}},children:U(e.content,{color:f??fe})}),...a()];case"callout":return[me(e,t),...J()];case"card":return[we(e,t),...J()];case"stats":return[oe(e,t),...J()];case"code":{if(e.language===ve.math||e.language===ve.mermaid){const R=u.drawn?.(e);if(R)return ae({...e.language===ve.math?{}:{align:"center"}},t,R,"")}const d=R=>({style:y.SINGLE,color:Ce,size:4,space:R}),s=E(o.box.side+.5);return[new h({indent:{left:t.indent+s,right:s},shading:B(Ce),border:{top:d(o.box.top),bottom:d(o.box.top),left:d(o.box.side),right:d(o.box.side)},keepLines:!0,children:e.code.split(`
|
|
4
|
-
`).map((
|
|
5
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="${
|
|
2
|
+
import{CHARTEX_COLORS_REL as Vt,CHARTEX_COLORS_TYPE as Qt,CHARTEX_REL as Zt,chartExRequires as ht,CHARTEX_STYLE_REL as Jt,CHARTEX_STYLE_TYPE as en,CHARTEX_TYPE as tn,CHARTEX_URI as nn,chartBook as rn,chartExColorsXml as an,chartExReference as on,chartExStyleXml as sn,embeddedChartExXml as dn,embeddedChartXml as ln,isExtended as vt}from"@allyhub/chart";import{chartFrame as cn,chartWords as un,chartTheme as fn,docChart as pn}from"./chart.js";import{BACKGROUNDS as Pe,TEXT_COLORS as Ae,hex as q}from"./color.js";import{columnWidths as hn}from"./columns.js";import{COMPONENT_WIDTH as gn,componentName as mn}from"./component.js";import{blockId as St,captionNumbers as wn,contentsTitle as yn,numberedCaption as gt,writtenInChinese as Tn,withoutTitle as Mt}from"./captions.js";import{sourceList as An,withSources as En}from"./cite.js";import{HEADING_RULE_SPACE as Rn,cardKept as vn,columnsKept as Sn,docParts as Mn,partLook as $t,headingAnchors as $n,pageAccent as Pt,trendSvg as Pn}from"./html.js";import{effectiveLook as mt,marginBox as bn,PAGE_DEFAULTS as Cn,LIST_STEP as xn,lineHeightPt as Nn,resolvePage as at,WATERMARK_COLOR as zn,WATERMARK_OPACITY as Ln,sizePt as ot,RUNNING_PICTURE_HEIGHT as Fn,runningGap as On,runningTall as In}from"./page.js";import{splitTitle as _n}from"./title.js";import{alignAt as Dn,cellSpans as Hn,columnLetters as Bn}from"./merges.js";import{LIST_BULLETS as Gn,NUMBER_FORMATS as bt,listNumbering as Ct,headingNumberings as Un,ownFormat as wt,wordLevelText as xt}from"./numbering.js";import{BUILT_IN_STYLES as Nt,NORMAL as zt,TITLE_STYLE as Xn,headingStyle as Oe,pickProps as Wn,resolveStyle as jn,styleId as Ie,resolveTableStyle as Lt,TABLE_GRID as qn}from"./styles.js";import{markdownOf as kn}from"./markdown.js";import{laidWidths as Yn,emptyHead as Kn,numberColumns as Vn,withTableData as Qn}from"./table.js";import{DRAWN_CODE as st}from"./math.js";import{PAPER as Me,TONE_COLORS as Ft,tagColors as Ot}from"./paper.js";import{COVER_ASPECT as Zn,FORMAT_KEYS as Jn,everyBlock as Ue,firstNoteMarks as ei,noteNumbers as ti,statTone as ni}from"./model.js";import{calloutTone as ii,docBlockPalette as ri,docStatsDef as ai,libraryBlockDrawing as oi,libraryBlockSvg as si,libraryBlockTable as di}from"./blocks.js";import{blockShapeGroup as li}from"./block-shapes.js";const It=251658240,_t="WordPictureWatermark1",ci='<a:lum bright="70000" contrast="-70000"/>',ui='<v:shapetype id="_x0000_t136" coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e"><v:formulas><v:f eqn="sum #0 0 10800"/><v:f eqn="prod #0 2 1"/><v:f eqn="sum 21600 0 @1"/><v:f eqn="sum 0 0 @2"/><v:f eqn="sum 21600 0 @3"/><v:f eqn="if @0 @3 0"/><v:f eqn="if @0 21600 @1"/><v:f eqn="if @0 0 @2"/><v:f eqn="if @0 @4 21600"/><v:f eqn="mid @5 @6"/><v:f eqn="mid @8 @5"/><v:f eqn="mid @7 @8"/><v:f eqn="mid @6 @7"/><v:f eqn="sum @6 0 @5"/></v:formulas><v:path textpathok="t" o:connecttype="custom" o:connectlocs="@9,0;@10,10800;@11,21600;@12,10800" o:connectangles="270,180,90,0"/><v:textpath on="t" fitshape="t"/><v:handles><v:h position="#0,bottomRight" xrange="6629,14971"/></v:handles><o:lock v:ext="edit" text="t" shapetype="t"/></v:shapetype>';function fi(t,i){const h=t.layout!=="horizontal",d=h?Math.hypot(i.textWidth,i.textHeight)*.8:i.textWidth*.9;let A=0;for(const f of t.text)A+=/[\u2E80-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF]/u.test(f)?1:f===" "?.3:.62;const s=Math.min(d/Math.max(1,A),i.textHeight/2)/25.4*72,E=Math.round(Math.max(1,A)*s*10)/10,r=Math.round(s*10)/10,l=t.color??zn,m=ct[t.font??i.font],S=/[\u2E80-\u9FFF]/u.test(t.text)?m.eastAsia??m.latin:m.latin,R=f=>f.replace(/[&<>"]/gu,O=>O==="&"?"&":O==="<"?"<":O===">"?">":""");return`<w:p><w:pPr><w:spacing w:before="0" w:after="0" w:line="20" w:lineRule="exact"/></w:pPr><w:r><w:rPr><w:noProof/></w:rPr><w:pict>${ui}<v:shape id="PowerPlusWaterMarkObject1" o:spid="_x0000_s1025" type="#_x0000_t136" style="position:absolute;margin-left:0;margin-top:0;width:${String(E)}pt;height:${String(r)}pt;${h?"rotation:315;":""}z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin" o:allowincell="f" fillcolor="${R(l)}" stroked="f"><v:fill opacity="${String(Ln)}"/><v:textpath style="font-family:"${R(S)}";font-size:1pt" string="${R(t.text)}"/><w10:wrap anchorx="margin" anchory="margin"/></v:shape></w:pict></w:r></w:p>`}function dt(t){return t.type==="svg"?{type:"svg",data:t.data,fallback:{type:"png",data:t.fallback??je}}:{type:t.type,data:t.data}}const lt=t=>Nt.includes(t)?t.replace(/\s/gu,""):Ie(t);function pi(t,i){if(!(i===void 0||t.trim()===""))try{return i.latexToMath(t)}catch(h){if(h instanceof Error)return;throw h}}function hi(t,i){const h=q(i.borderColor,Ae)??"auto",d=(R,f)=>`<w:${R} w:val="${f?"single":"nil"}" w:sz="4" w:space="0" w:color="${f?h:"auto"}"/>`,A=i.borders,z=["top","left","bottom","right","insideH","insideV"].map(R=>d(R,A==="all"||A==="rows"&&(R==="top"||R==="bottom"||R==="insideH")||A==="outside"&&!R.startsWith("inside"))),s=R=>R.replace(/&/gu,"&").replace(/</gu,"<").replace(/"/gu,"""),E=R=>{const f=q(R,Pe);return f===void 0?"":`<w:tcPr><w:shd w:val="clear" w:color="auto" w:fill="${f}"/></w:tcPr>`},r=[i.headBold===!0?"<w:b/><w:bCs/>":"",i.headColor===void 0?"":`<w:color w:val="${q(i.headColor,Ae)??"auto"}"/>`].join(""),l=r===""&&i.headBg===void 0?"":`<w:tblStylePr w:type="firstRow">${r===""?"":`<w:rPr>${r}</w:rPr>`}${E(i.headBg)}</w:tblStylePr>`,m=i.banded===void 0?"":`<w:tblStylePr w:type="band1Horz">${E(i.banded)}</w:tblStylePr>`,S=t!==qn;return`<w:style w:type="table"${S?' w:customStyle="1"':""} w:styleId="${Ie(t)}"><w:name w:val="${s(t)}"/><w:uiPriority w:val="${S?"99":"39"}"/><w:pPr><w:spacing w:after="0" w:line="240" w:lineRule="auto"/></w:pPr><w:tblPr>${m===""?"":'<w:tblStyleRowBandSize w:val="1"/>'}${A===void 0?"":`<w:tblBorders>${z.join("")}</w:tblBorders>`}<w:tblCellMar><w:left w:w="108" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr>${l}${m}</w:style>`}const gi=240,Dt={top:3.6,bottom:3.6,left:7.2,right:7.2},Ht="headings",mi=new Set(["paragraph","toggle","heading","quote","bullet","numbered","check"]),Xe=15,wi=1440/25.4,ue=t=>Math.round(t*wi),Bt="ListParagraph",Gt="bullets",yi=1.8,We=xn*20,ct={sans:{latin:"Calibri"},serif:{latin:"Cambria"},mono:{latin:"Courier New"},times:{latin:"Times New Roman"},song:{latin:"Times New Roman",eastAsia:"宋体"},hei:{latin:"Arial",eastAsia:"黑体"},fangsong:{latin:"Times New Roman",eastAsia:"仿宋"},kai:{latin:"Times New Roman",eastAsia:"楷体"},xiaobiaosong:{latin:"Times New Roman",eastAsia:"方正小标宋简体"}},yt="Courier New",fe=t=>t.slice(1).toUpperCase(),be=fe(Me.ink),_e=fe(Me.lead),je=Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=","base64"),qe=fe(Me.rule),ke=fe(Me.ruleStrong),Ye=fe(Me.ruleMid),Ke=fe(Me.stone),Ti=fe(Me.stone3),Ce=fe(Me.leadSoft),Ut="ALLYHUB-CHART-";function Ai(t){return/[\u3040-\u30ff]/u.test(t)?"Yu Gothic":/[\uac00-\ud7af]/u.test(t)?"Malgun Gothic":"Microsoft YaHei"}const Ei=/^(https?:|mailto:)/i,Ve=t=>({indent:0,level:0,room:t,frame:gn}),Xt=t=>({...t,indent:t.indent+We,level:Math.min(t.level+1,8)}),Ri=400,vi=t=>t.type==="bullet"||t.type==="numbered"||t.type==="check";function Tt(t,i,h){const d=h/Xe,A=Math.floor(Math.min(i??t.width,d));return{width:A,height:Math.round(A*t.height/t.width)}}function Si(t,i=1){const h=[];let d=[],A=i,z=!1;for(const s of t){if(s.type==="pagebreak"&&(s.columns!==void 0||s.continuous===!0)){h.push({blocks:d,columns:A,continuous:z}),d=[],A=s.columns??1,z=s.continuous===!0;continue}d.push(s)}return h.push({blocks:d,columns:A,continuous:z}),h.filter((s,E)=>E>0||s.blocks.length>0||h.length===1)}const Mi=t=>/\p{Script=Han}/u.test(t)?Array.from(t.trim())[0]??"":t.split(/\s+/u).map(i=>Array.from(i)[0]??"").join("").toUpperCase().slice(0,3);function $i(t){const i=new Map;for(const r of t)r.type==="comment"&&!i.has(r.id)&&i.set(r.id,i.size);const h=new Map,d=new Map,A=r=>{for(const l of r)for(const m of l.styles.comments??[])i.has(m)&&(h.has(m)||h.set(m,l),d.set(m,l))};for(const r of Ue(t))if(!(r.type==="note"||r.type==="comment")&&("content"in r&&Array.isArray(r.content)&&A(r.content),r.type==="table"))for(const l of r.rows)for(const m of l)A(m);const z=new Map;for(const r of t)r.type==="comment"&&r.replyTo!==void 0&&z.set(r.id,r.replyTo);const s=r=>{let l=r;const m=new Set;for(let S=z.get(l);S!==void 0&&!m.has(S);S=z.get(l))m.add(S),l=S;return l};for(const r of z.keys()){const l=s(r),m=h.get(l),S=d.get(l);h.has(r)||m===void 0||S===void 0||(h.set(r,m),d.set(r,S))}const E=r=>{const l=new Map;for(const[m,S]of r){const R=i.get(m);R!==void 0&&l.set(S,[...l.get(S)??[],R])}return l};return{ids:i,starts:E(h),ends:E(d)}}const Wt="TOCHeading";function Pi(t,i,h,d,A,z,s){const{AlignmentType:E,BorderStyle:r,ExternalHyperlink:l,ShadingType:m,Table:S,TableCell:R,TableLayoutType:f,TableRow:O,TextRun:N,WidthType:C}=t;let K=0;const pe=i.revisionDate??new Date().toISOString();let D,X=0,me=0;const V=new Map,I=(e,n)=>(e.move!==void 0&&V.set(n,e.move),{id:n,author:e.author,date:e.date??pe}),H=()=>D===void 0?{}:D.kind==="inserted"?{insertion:I(D,X)}:{deletion:I(D,X)};let U;const de=e=>{if(U===void 0)return e;const n=U.style,{paragraph:a}=wordProps(t,Wn(U,"paragraph"),s.page.size,h),p=Object.fromEntries(Object.entries(e).filter(([g])=>g!=="heading"));return{...n===void 0?e:{...p,style:lt(n)},...a,...a.indent===void 0?{}:{indent:{...e.indent,...a.indent,...a.indent.left===void 0?{}:{left:(typeof e.indent?.left=="number"?e.indent.left:0)+(typeof a.indent.left=="number"?a.indent.left:0)}}},...a.spacing===void 0?{}:{spacing:{...e.spacing,...a.spacing}}}};let te,re;const he=(e,n)=>{const a=U;U=e;try{const p=de(n.style===void 0?{}:{style:n.style});return{...we(e),...Object.fromEntries(Object.entries(p).filter(([g])=>["style","alignment","indent","spacing","keepNext","keepLines","pageBreakBefore"].includes(g)))}}finally{U=a}};class M extends t.Paragraph{constructor(n){const a=de(n),p=re;re=void 0;const g=p===void 0?a:{...a,revision:{...he(p.was,n),...I(p,++K)}},y=D===void 0?te:void 0;te=void 0,super(D!==void 0?{...g,run:{...g.run,...H()}}:y!==void 0?{...g,run:{...g.run,...y.kind==="inserted"?{insertion:I(y,++K)}:{deletion:I(y,++K)}}}:g)}}class xe extends t.ImageRun{constructor(n){super({...n,...H()})}}const le=e=>{const n=e.filter(a=>!(a instanceof t.TableOfContents));return n.at(-1)instanceof t.Paragraph?n:[...n,ae(0)]},Ze={ascii:yt,hAnsi:yt,cs:yt,eastAsia:h},Ne=new Set([1]);let ut=0;const Ee=[],ze=new Set,Z=e=>({type:m.CLEAR,color:"auto",fill:e}),Le=(e,n,a=4)=>({style:e,color:n,size:a,space:4}),v=s.page.spacing,L=e=>Math.round(e*20),ae=e=>new M({spacing:{before:0,after:L(e),line:14,lineRule:t.LineRuleType.EXACT}}),ge=()=>v.after>0?[ae(v.after)]:[],He=e=>e==="center"?E.CENTER:e==="right"?E.RIGHT:e==="justify"?E.JUSTIFIED:void 0,Fe=(e,n)=>{const a=n.deleted??(D?.kind==="deleted"?D:void 0),p=n.inserted??(D?.kind==="inserted"?D:void 0),g=n.deleted??n.inserted?me:X;return a!==void 0?new t.DeletedTextRun({...e,...I(a,g)}):p!==void 0?new t.InsertedTextRun({...e,...I(p,g)}):new N(e)},J=(e,n,a,p={},g)=>{if(n.tag!==void 0){const c=Ot(n.tag),P={...p,color:fe(c.fg),size:Math.round((a.size??s.page.size*2)*.85),shading:Z(fe(c.bg)),...n.bold||a.bold?{bold:!0}:{},...n.italic?{italics:!0}:{}};return[Fe({...P,text:` ${e.replace(/\n/gu," ")} `},n)]}const y=c=>{const P=q(c.color,Ae)??a.color,x=q(c.background,Pe),B=wordProps(t,{...c.font===void 0?{}:{font:c.font},...c.size===void 0?{}:{size:c.size},...c.caps?{caps:!0}:{},...c.smallCaps?{smallCaps:!0}:{},...c.letterSpacing===void 0?{}:{letterSpacing:c.letterSpacing}},s.page.size,h).run;return{...c.style===void 0?{}:{style:lt(c.style)},...p,...c.superscript?{superScript:!0}:{},...c.subscript?{subScript:!0}:{},...c.bold||a.bold?{bold:!0}:{},...c.italic?{italics:!0}:{},...c.underline?{underline:{}}:{},...c.strike?{strike:!0}:{},...P===void 0?{}:{color:P},...a.size===void 0?{}:{size:a.size},...c.code?{font:Ze,shading:Z(x??Ke)}:x===void 0?{}:{shading:Z(x)},...B}},T=y(n),u=n.formatted===void 0?T:{...T,revision:{...y({...Object.fromEntries(Object.entries(n).filter(([c])=>!Jn.includes(c))),...n.formatted.was}),...I(n.formatted,++K)}},_=e.split(`
|
|
3
|
+
`).map((c,P)=>Fe({...u,...c.includes(" ")?{children:c.split(" ").flatMap((x,B)=>[...B>0?[new t.Tab]:[],...x===""?[]:[x]])}:{text:c},...P>0?{break:1}:{}},n));if(g===void 0)return _;const $=c=>Fe({...u,children:[new t.BuilderElement({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:c}}})]},n);return[$("begin"),Fe({...u,children:[new t.StringContainer("w:instrText",` ${g} `)]},n),$("separate"),...e===""?[]:_,$("end")]},Je=e=>e.deleted!==void 0?`d\0${e.deleted.author}\0${e.deleted.date??""}\0${e.deleted.move??""}`:e.inserted!==void 0?`i\0${e.inserted.author}\0${e.inserted.date??""}\0${e.inserted.move??""}`:void 0,oe=(e,n={})=>{let a;return e.flatMap(p=>{const g=Je(p.styles);g!==void 0&&g!==a&&(me=++K),a=g;const y=s.comments.starts.get(p)??[],T=s.comments.ends.get(p)??[];return[...y.map(u=>new t.CommentRangeStart(u)),...w(p,n),...T.flatMap(u=>[new t.CommentRangeEnd(u),new N({children:[new t.CommentReference(u)]})])]})},ft=e=>{const n=e.blocks.flatMap(a=>"content"in a&&Array.isArray(a.content)?[new t.Paragraph({children:o(a.content)})]:[]);return n.length>0?n:[new t.Paragraph({children:[]})]},o=e=>e.flatMap(n=>J(n.text,n.styles,{})),w=(e,n)=>e.field!==void 0?J(b(e),e.styles,n,{},Fi(e.field,s.bookmarks)):e.note!==void 0?A.has(e.note.toLowerCase())?z.has(e)?[s.endnotes?new t.EndnoteReferenceRun(A.get(e.note.toLowerCase())??1):new t.FootnoteReferenceRun(A.get(e.note.toLowerCase())??1)]:[new N({text:String(A.get(e.note.toLowerCase())??1),style:s.endnotes?"EndnoteReference":"FootnoteReference"})]:[]:e.text===""&&e.href?.startsWith("#")===!0?ee(e.href.slice(1),e.styles,n):e.href?.startsWith("#")===!0&&s.bookmarks.has(decodeURIComponent(e.href.slice(1)))?[new t.InternalHyperlink({anchor:s.bookmarks.get(decodeURIComponent(e.href.slice(1)))??"",children:J(e.text,e.styles,n,{style:"Hyperlink"})})]:e.href!==void 0&&Ei.test(e.href)?[new l({link:e.href,children:J(e.text,e.styles,n,{style:"Hyperlink"})})]:J(e.text,e.styles,n),b=e=>{const[n="",a=""]=(e.field??"").split(" ");switch(n.toUpperCase()){case"PAGEREF":{const p=i.headingPage?.(a);return p===void 0?e.text:String(p)}case"REF":return s.refs.get(a)??e.text;default:return e.text}},ee=(e,n,a)=>{const p=decodeURIComponent(e),g=s.refs.get(p)??"",y=s.bookmarks.get(p);return g===""?[]:y===void 0?J(g,n,a):[new t.InternalHyperlink({anchor:y,children:J(g,n,a,{style:"Hyperlink"})})]},ne=(e,n)=>{const a=e===void 0?void 0:s.bookmarks.get(e);return a===void 0?n:[new t.Bookmark({id:a,children:n})]},we=e=>{const n=He(e?.align),a=q(e?.background,Pe);return{...n===void 0?{}:{alignment:n},...a===void 0?{}:{shading:Z(a)}}},Y=e=>e.indent===0?{}:{indent:{left:e.indent}},ye=e=>{const n={style:r.SINGLE,color:e,size:4};return{top:n,bottom:n,left:n,right:n}},et=(e,n)=>{const a=ii(e.tone,i.page),p=q(e.look?.background,Pe)??q(a?.bg,{})??Ke,g=q(e.look?.color,Ae)??q(a?.fg,{}),y=n.room-n.indent,T=e.icon===void 0?0:L(s.page.size*yi)+L(v.box.side),u=y-T,_=($,c)=>({top:L(v.box.top),bottom:L(Math.max(v.box.top-v.after,0)),left:$,right:c,marginUnitType:C.DXA});return new S({layout:f.FIXED,width:{size:y,type:C.DXA},columnWidths:T===0?[u]:[T,u],...n.indent===0?{}:{indent:{size:n.indent,type:C.DXA}},rows:[new O({cantSplit:!0,children:[...e.icon===void 0?[]:[new R({width:{size:T,type:C.DXA},shading:Z(p),borders:ye(p),margins:_(L(v.box.side),0),children:[new M({children:[new N({text:e.icon})]})]})],new R({width:{size:u,type:C.DXA},shading:Z(p),borders:ye(p),margins:_(T===0?L(v.box.side):0,L(v.box.side)),children:[new M({children:oe(e.content,{color:g})}),...le(F(e.children??[],Ve(u-L(v.box.side))))]})]})]})},Be=(e,n)=>{const a=n.room-n.indent,p=L(v.card.side),g=q(Pt(i.page),{})??q(fn(i.page).accent1,{}),y=e.featured===!0&&g!==void 0,T=e.tag===void 0?void 0:Ot("blue"),u=[...e.title===void 0?[]:[new M({spacing:{after:e.subtitle===void 0?L(v.after):0},children:[...oe([{text:e.title,styles:y?{bold:!0,color:"#FFFFFF"}:{bold:!0}}]),...T===void 0||e.tag===void 0?[]:[new N({text:" "}),new N({text:` ${e.tag} `,size:v.small*2,color:q(T.fg,{})??_e,shading:{type:m.CLEAR,fill:q(T.bg,{})??Ke,color:"auto"}})]]})],...e.subtitle===void 0?[]:[new M({spacing:{after:L(v.after)},children:[new N({text:e.subtitle,color:y?"FFFFFF":_e,size:v.small*2})]})]];return new S({layout:f.FIXED,width:{size:a,type:C.DXA},columnWidths:[a],...n.indent===0?{}:{indent:{size:n.indent,type:C.DXA}},rows:[new O({cantSplit:vn(e,s.page),children:[new R({width:{size:a,type:C.DXA},borders:ye(y?g:qe),...y?{shading:{type:m.CLEAR,fill:g,color:"auto"}}:{},margins:{top:L(v.card.top),bottom:L(Math.max(v.card.top-v.after,0)),left:p,right:p,marginUnitType:C.DXA},children:le([...u,...F(e.children??[],Ve(a-2*p))])})]})]})},tt=(e,n)=>{const a=n.room-n.indent,p=Math.min(e.width??(e.float===void 0&&e.wrap===void 0?a/15:gi),a/15),g=F(e.children??[],Ve(Math.round(p*15-2*Dt.left*20))),y=i.shapes;if(y===void 0)return[Be({type:"card",children:e.children??[]},n),...ge()];const T=g.filter(u=>u instanceof M);return[new M({...n.indent===0?{}:{indent:{left:n.indent}},...e.float===void 0&&e.wrap===void 0?{}:{spacing:{before:0,after:0,line:20,lineRule:"exact"}},children:[new y.ShapeRun({type:"rectangle",transformation:{width:Math.round(p),height:"fitText"},line:{color:qe,width:.75},fill:{type:"solid",color:"FFFFFF"},textOptions:{verticalAlignment:"top",margins:Dt,resizeShapeToFitText:!0},children:T.length>0?T:[new M({})],...e.wrap===void 0?{}:{floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.COLUMN,offset:Math.round((e.x??0)*De)},verticalPosition:{relative:t.VerticalPositionRelativeFrom.PARAGRAPH,offset:Math.round((e.y??0)*De)},allowOverlap:!0,behindDocument:e.wrap==="behind",...e.wrap==="front"?{zIndex:It}:{},wrap:{type:t.TextWrappingType.NONE}}},...e.float===void 0||e.wrap!==void 0?{}:{floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.MARGIN,align:e.float==="left"?t.HorizontalPositionAlign.LEFT:t.HorizontalPositionAlign.RIGHT},verticalPosition:{relative:t.VerticalPositionRelativeFrom.PARAGRAPH,offset:0},wrap:{type:t.TextWrappingType.SQUARE,side:t.TextWrappingSide.BOTH_SIDES},margins:{left:e.float==="right"?114300:0,right:e.float==="left"?114300:0,top:0,bottom:57150}}}})]}),...g.filter(u=>!(u instanceof M))]},nt=(e,n)=>{const a=ai(e,i),p=a?.kind==="stats"?a.items:[];e={...e,stats:e.stats.map((W,ce)=>{const j=p[ce];return j===void 0?W:{...W,value:j.value.text,...j.delta===void 0?{}:{delta:j.delta.text},...j.status===void 0?{}:{status:j.status}}})};const g=n.room-n.indent,y=L(v.gap),T=e.stats.length,u=Math.floor((g-y*(T-1))/T),_=e.stats.flatMap((W,ce)=>ce===0?[u]:[y,u]),$={style:r.NONE,size:0,color:"auto"},c={top:$,bottom:$,left:$,right:$},P=L(v.card.side),x=v.small*2,B=e.stats.flatMap((W,ce)=>{const j=ni(W),G=[...W.delta===void 0?[]:[new N({text:W.delta,color:fe(Ft[j]),size:x})],...W.note===void 0?[]:[new N({text:`${W.delta===void 0?"":" "}${W.note}`,color:_e,size:x})]],k=u-2*P,Q=W.trend===void 0?[]:[new M({spacing:{before:60,after:0,line:240},children:[new xe({type:"svg",data:Buffer.from(Pn(W.trend,Ft[j]).replace("<svg ",`<svg xmlns="http://www.w3.org/2000/svg" width="${String(Math.round(k/15))}" height="24" `)),fallback:{type:"png",data:je},transformation:{width:Math.round(k/15),height:24}})]})],ie=new R({width:{size:u,type:C.DXA},borders:ye(qe),margins:{top:L(v.card.top),bottom:L(v.card.top),left:P,right:P,marginUnitType:C.DXA},children:[new M({spacing:{after:0},children:[new N({text:W.label,color:_e,size:x})]}),new M({spacing:{after:0,line:240,lineRule:t.LineRuleType.AUTO},children:oe([{text:W.value,styles:{bold:!0}}],{size:v.figure*2})}),...G.length===0?[]:[new M({spacing:{after:0},children:G})],...Q]}),Se=new R({width:{size:y,type:C.DXA},borders:c,children:[new M({children:[]})]});return ce===0?[ie]:[Se,ie]});return new S({layout:f.FIXED,width:{size:g,type:C.DXA},columnWidths:_,...n.indent===0?{}:{indent:{size:n.indent,type:C.DXA}},rows:[new O({cantSplit:!0,children:B})]})},pt=(e,n)=>{const a=n.room-n.indent,p=Math.max(1,...e.rows.map(j=>j.length)),g=Yn(e,a/Xe,v.small,v.cell.side).map(j=>Math.round(j*Xe)),y=Kn(e),T=(e.head===void 0||e.head==="both")&&!y,u=e.head==="column"||e.head==="both",_=Vn(e),$=y?e.rows.slice(1):e.rows,c=Hn(e.merges),P=e.style===void 0?void 0:Lt(i.page?.styles,e.style);e.style!==void 0&&ze.add(e.style);const x={style:r.NONE,size:0,color:"auto"},B={style:r.SINGLE,size:4,color:q(P?.borderColor,Ae)??Ye},W=(j,G,k)=>{const Q=P?.borders,ie=j===0,Se=j===$.length-1,se={left:G===0,right:G+k>=p};return Q==="all"?{top:B,bottom:B,left:B,right:B}:Q==="rows"?{top:ie?B:x,bottom:B,left:x,right:x}:Q==="outside"?{top:ie?B:x,bottom:Se?B:x,left:se.left?B:x,right:se.right?B:x}:{top:x,bottom:x,left:x,right:x}},ce=(j,G,k)=>{const Q=e.cells?.[`${Bn(G)}${String(j+1)}`];if(Q===void 0)return;const ie=g.slice(G,G+k).reduce((Se,se)=>Se+se,0);return le(F(Q,{indent:0,level:0,room:Math.max(ie-2*L(v.cell.side),1),frame:n.frame}))};return new S({...e.style===void 0?{}:{style:Ie(e.style)},layout:f.FIXED,width:{size:g.reduce((j,G)=>j+G,0),type:C.DXA},columnWidths:g,...n.indent===0?{}:{indent:{size:n.indent,type:C.DXA}},rows:$.map((j,G)=>new O({tableHeader:T&&G===0,cantSplit:!0,...(()=>{const k=e.heights?.[G+(y?1:0)];return k?{height:{value:k*15,rule:"atLeast"}}:{}})(),children:Array.from({length:p},(k,Q)=>Q).flatMap(k=>{const Q=c(G+(y?1:0),k);if(Q==="covered")return[];const ie=Q?.cols??1,Se=Q?.rows??1,se=T&&G===0,qt=u&&k===0&&!se,kt=P?.banded!==void 0&&!se&&(G-(T?1:0))%2===0,Et=P===void 0?se?Ti:void 0:se?q(P.headBg,Pe):kt?q(P.banded,Pe):void 0,Rt=Dn(e.valign,G+(y?1:0),k);return[new R({...Rt==="top"?{}:{verticalAlign:Rt},...ie>1?{columnSpan:ie}:{},...Se>1?{rowSpan:Se}:{},width:{size:g.slice(k,k+ie).reduce((Yt,Kt)=>Yt+Kt,0),type:C.DXA},...Et===void 0?{}:{shading:Z(Et)},borders:P?.borders!==void 0?W(G,k,ie):P!==void 0?{top:x,bottom:x,left:x,right:x}:{top:G===0?{style:r.SINGLE,size:8,color:ke}:{style:r.NONE,size:0,color:"auto"},left:{style:r.NONE,size:0,color:"auto"},right:{style:r.NONE,size:0,color:"auto"},bottom:G===$.length-1?{style:r.SINGLE,size:8,color:ke}:se?{style:r.SINGLE,size:6,color:ke}:{style:r.SINGLE,size:4,color:Ye}},margins:{top:L(v.cell.top),bottom:L(v.cell.top),left:L(v.cell.side),right:L(v.cell.side),marginUnitType:C.DXA},children:ce(G+(y?1:0),k,ie)??[new M({spacing:{after:0},..._.has(k)?{alignment:E.RIGHT}:{},children:oe(j[k]??[],{bold:qt||se&&(P===void 0||P.headBold===!0),...se&&P?.headColor!==void 0?{color:q(P.headColor,Ae)??be}:{},size:v.small*2})})]})]})}))})},$e=(e,n,a,p,g,y)=>{const T=He(e.align),u={...Y(n),...T===void 0?{}:{alignment:T}},_=a===void 0?void 0:e.caption,$=_!==void 0,c=[new M({...u,keepNext:$,...a&&e.wrap!==void 0?{spacing:{before:0,after:0,line:20,lineRule:"exact"}}:a?{spacing:{line:240,lineRule:t.LineRuleType.AUTO,...$?{after:L(v.caption)}:{}}}:{},children:a?[new xe({...dt(a),transformation:Tt(a,e.width,e.wrap===void 0?n.room-n.indent:Number.POSITIVE_INFINITY),...e.wrap===void 0?{}:{floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.COLUMN,offset:Math.round((e.x??0)*De)},verticalPosition:{relative:t.VerticalPositionRelativeFrom.PARAGRAPH,offset:Math.round((e.y??0)*De)},allowOverlap:!0,behindDocument:e.wrap==="behind",...e.wrap==="front"?{zIndex:It}:{},wrap:{type:t.TextWrappingType.NONE}}},...e.float===void 0||e.wrap!==void 0?{}:{floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.MARGIN,align:e.float==="left"?t.HorizontalPositionAlign.LEFT:t.HorizontalPositionAlign.RIGHT},verticalPosition:{relative:t.VerticalPositionRelativeFrom.PARAGRAPH,offset:0},wrap:{type:t.TextWrappingType.SQUARE,side:t.TextWrappingSide.BOTH_SIDES},margins:{left:e.float==="right"?114300:0,right:e.float==="left"?114300:0,top:0,bottom:57150}}},altText:{name:e.alt??"",title:e.caption??"",description:e.alt??""}})]:[new N({text:p,color:Ce})]})];return _!==void 0&&c.push(new M({...u,style:"Caption",children:ne(y,[new N({text:gt(_,g)})])})),c},Te=(e,n)=>{const a=n.room-n.indent,p=e.columns.map(c=>c.width??1),g=p.reduce((c,P)=>c+P,0)||1,y=p.map(c=>Math.round(a*c/g)),T=hn(e,n.frame),u={style:r.NONE,size:0,color:"auto"},_={top:u,bottom:u,left:u,right:u,insideHorizontal:u,insideVertical:u},$=Ri/2;return new S({layout:f.FIXED,width:{size:a,type:C.DXA},columnWidths:y,borders:_,...n.indent===0?{}:{indent:{size:n.indent,type:C.DXA}},rows:[new O({cantSplit:Sn(e,s.page),children:e.columns.map((c,P)=>{const x=y[P]??0,B=P===0?0:$,W=P===e.columns.length-1?0:$,ce=le(F(c.blocks,{indent:0,level:0,room:x-B-W,frame:T[P]??n.frame}));return new R({width:{size:x,type:C.DXA},borders:_,margins:{top:0,bottom:0,left:B,right:W,marginUnitType:C.DXA},children:ce})})})]})},Re=(e,n,a)=>{const p=F(e.children??[],Xt(n)),g={looking:U,marking:D,markingId:X};U=e.look,e.revision!==void 0&&D===void 0&&(D=e.revision,X=++K);try{return te=e.mark,re=e.formatted,[...it(e,n,a),...p]}finally{te=void 0,{looking:U,marking:D,markingId:X}=g}},it=(e,n,a)=>{const p=q(e.look?.color,Ae),g=we(e.look),y=Bt;return e.type==="check"?[new M({...g,...Y(n),style:y,children:[new N({text:e.checked?"☑ ":"☐ "}),...oe(e.content,{color:p})]})]:[new M({...g,style:y,numbering:e.type==="bullet"?{reference:Gt,level:n.level}:{reference:`start-${String(a.start)}`,level:n.level,instance:a.id},children:oe(e.content,{color:p})})]},ve=(e,n)=>{const a=U;U=mi.has(e.type)&&"look"in e?e.look:void 0;try{return rt(e,n)}finally{U=a,te=void 0,re=void 0}},rt=(e,n)=>{if(e.revision===void 0||D!==void 0)return Ge(e,n);D=e.revision,X=++K;try{return Ge(e,n)}finally{D=void 0}},Ge=(e,n)=>{te=e.type==="paragraph"||e.type==="heading"?e.mark:void 0,re="content"in e?e.formatted:void 0;const a="look"in e?e.look:void 0,p=q(a?.color,Ae),g=we(a),y=()=>"children"in e?F(e.children??[],Xt(n)):[];switch(e.type){case"paragraph":case"toggle":return[new M({...s.sets.align&&e.look?.align===void 0?{alignment:E.JUSTIFIED}:{},...g,...s.sets.indent&&e.type==="paragraph"?{indent:{left:n.indent,firstLine:Math.round(s.page.textIndent*s.page.size*20)}}:Y(n),children:oe(e.content,{color:p})}),...y()];case"heading":return[new M({...g,...Y(n),...e===s.title?{heading:t.HeadingLevel.TITLE}:{heading:t.HeadingLevel[`HEADING_${String(e.level)}`]},children:ne(s.anchors.get(e),oe(e.content,{color:p}))}),...y()];case"quote":return[new M({...g,indent:{left:n.indent+L(v.quote)},border:{left:{style:r.SINGLE,color:d??ke,size:d?12:6,space:Math.floor(v.quote-(d?1.5:.75))}},children:oe(e.content,{color:p??_e})}),...y()];case"callout":return[et(e,n),...ge()];case"card":return[Be(e,n),...ge()];case"textbox":return tt(e,n);case"stats":return[nt(e,n),...ge()];case"code":{const T=e.language===st.math?pi(e.code,i.math):void 0;if(T!==void 0)return[new M({alignment:E.CENTER,...n.indent===0?{}:{indent:{left:n.indent}},children:[new t.Math({children:T})]})];if(e.language===st.math||e.language===st.mermaid){const $=i.drawn?.(e);if($)return $e({...e.language===st.math?{}:{align:"center"}},n,$,"")}const u=$=>({style:r.SINGLE,color:Ke,size:4,space:$}),_=L(v.box.side+.5);return[new M({indent:{left:n.indent+_,right:_},shading:Z(Ke),border:{top:u(v.box.top),bottom:u(v.box.top),left:u(v.box.side),right:u(v.box.side)},keepLines:!0,children:e.code.split(`
|
|
4
|
+
`).map(($,c)=>new N({text:$,font:Ze,size:v.small*2,...c>0?{break:1}:{}}))})]}case"columns":return[Te(e,n)];case"chart":{const T=s.numbers.get(e),u=T===void 0?void 0:e.title,{chart:_,problems:$}=pn(u===void 0?e:Mt(e),i),c=Le(r.DASHED,Ye);if(!_)return[new M({...Y(n),alignment:E.CENTER,border:{top:c,bottom:c,left:c,right:c},children:[new N({text:[e.title??"Chart",...$].join(": "),color:Ce})]})];const P=cn(e,n.frame),x=(n.room-n.indent)/Xe,B=Math.min(1,x/P.width);return Ee.push({chart:_,width:Math.round(P.width*B),height:Math.round(P.height*B),words:un(e,_),...vt(_.type)?{fallback:i.chart?.(u===void 0?e:Mt(e))}:{}}),[new M({...Y(n),alignment:E.CENTER,keepNext:u!==void 0,spacing:{line:240,lineRule:t.LineRuleType.AUTO},children:[new N({text:`${Ut}${String(Ee.length)}`})]}),...u===void 0?[]:[new M({...Y(n),alignment:E.CENTER,style:"Caption",children:ne(e.id,[new N({text:gt(u,T)})])})]]}case"image":return $e(e,n,i.picture?.(e.src),e.alt??e.caption??e.src,s.numbers.get(e),e.id);case"block":{const{svg:T,alt:u,problems:_}=si(e,n.frame,i),$=u??_.join("; "),c=i.block?.(e),P=di(e,i),x=P?ve(P,n):[];if(T===void 0)return[...c?$e({alt:$},n,c,$):[new M({...Y(n),children:[new N({text:$})]})],...x];const B=i.shapes;if(B!==void 0){const{drawing:G}=oi(e,n.frame,i);if(G!==void 0){const k=Tt({data:je,type:"png",width:G.width*1.3333333333333333,height:G.height*1.3333333333333333},void 0,n.room),Q=li(G,ri(i.page),t,B,{width:k.width,name:e.tag,description:$});if(Q!==void 0)return[new M({...Y(n),children:[Q]}),...x]}}const W=Number(/ width="([\d.]+)"/u.exec(T)?.[1]??"0"),ce=Number(/ height="([\d.]+)"/u.exec(T)?.[1]??"0"),j=Tt({data:je,type:"png",width:W,height:ce},void 0,n.room);return[new M({...Y(n),children:[new xe({type:"svg",data:Buffer.from(T),fallback:c&&c.type!=="svg"?{type:c.type,data:c.data}:{type:"png",data:c?.fallback??je},transformation:j,altText:{name:e.tag,title:e.tag,description:$}})]}),...x]}case"component":{const T=i.component?.(e);if(T)return $e(e,n,T,"",s.numbers.get(e),e.id);const u=Le(r.DASHED,Ye);return[new M({...Y(n),alignment:E.CENTER,border:{top:u,bottom:u,left:u,right:u},children:[new N({text:mn(e),color:Ce})]})]}case"table":return[...e.caption===void 0?[]:[new M({...Y(n),style:"Caption",keepNext:!0,spacing:{after:L(v.caption)},children:ne(e.id,[new N({text:gt(e.caption,s.numbers.get(e))})])})],pt(e,n),...ge()];case"pagebreak":return[new M({spacing:{before:0,after:0,line:20,lineRule:t.LineRuleType.EXACT},children:[new t.PageBreak]})];case"bibliography":{const{page:T}=s,u=T.textIndent>0?Math.round(T.textIndent*T.size*20):480;return s.sources.map(_=>new M({...Y(n),alignment:E.LEFT,indent:{left:n.indent+u,hanging:u},spacing:{after:L(v.after)},children:_.pieces.map($=>{const c=$.italic?{italics:!0}:{};return new N({text:$.text,...c})})}))}case"toc":{const T=e.levels??3,u=s.headings.filter(c=>c.level<=T).map(c=>{const P=s.anchors.get(c)??"",x=i.headingPage?.(P),B=s.bookmarks.get(P);return{title:c.content.map(W=>W.text).join(""),level:c.level,...x===void 0?{}:{page:x},...B===void 0?{}:{href:B}}}),_=Math.min(...u.map(c=>c.level)),$=yn(e,s.chinese);return[...$===""?[]:[new M({style:Wt,text:$})],new t.TableOfContents(void 0,{hyperlink:!0,headingStyleRange:`1-${String(T)}`,beginDirty:!1,cachedEntries:u.map(c=>({...c,level:c.level-_+1}))})]}case"note":return[];case"divider":return[new M({...Y(n),spacing:{before:L(v.divider),after:L(v.divider),line:20,lineRule:t.LineRuleType.EXACT},border:{bottom:{style:r.SINGLE,color:qe,size:4,space:0}}})];case"embed":{const T=/^<\s*([A-Za-z][\w.]*)/.exec(e.source.trim())?.[1],u=Le(r.DASHED,Ye);return[new M({...Y(n),alignment:E.CENTER,border:{top:u,bottom:u,left:u,right:u},children:[new N({text:T??"",color:Ce})]})]}case"source":return[];case"comment":return[];case"bullet":case"numbered":case"check":return[]}};function F(e,n){const a=[];let p,g;for(const y of e){if(!vi(y)){p=void 0,g=void 0,a.push(...ve(y,n));continue}if(p===void 0||g===void 0||g.type==="numbered"!=(y.type==="numbered")){const T=y.type==="numbered"?y.start??1:1;Ne.add(T),p={id:++ut,start:T}}g=y,a.push(...Re(y,n,p))}return a.flatMap((y,T)=>y instanceof S&&a[T+1]instanceof S?[y,ae(0)]:[y])}return{charts:Ee,commentParagraphs:ft,tableStyles:ze,moves:V,body:(e,n)=>F(e,Ve(n)),footnotes:e=>Object.fromEntries([...Ue(e)].flatMap(n=>{if(n.type!=="note")return[];const a=A.get(n.label.toLowerCase());if(a===void 0)return[];const p=F(n.children??[],Ve(ue(s.page.width)-ue(s.page.margins.left+s.page.margins.right))).filter(g=>g instanceof M);return[[String(a),{children:[new M({spacing:{after:40},children:oe(n.content,{size:18,color:_e})}),...p]}]]})),numbering:()=>[{reference:Gt,levels:Array.from({length:9},(e,n)=>({level:n,format:t.LevelFormat.BULLET,text:s.lists?.bullets?.[Math.min(n,5)]??Gn[n%3]??"•",alignment:E.LEFT,style:{paragraph:{indent:{left:(n+1)*We,hanging:We}}}}))},...[...Ne].sort((e,n)=>e-n).map(e=>({reference:`start-${String(e)}`,levels:Array.from({length:9},(n,a)=>{const p=Math.min(a+1,6),g=Ct(s.lists?.numbered,p),y=new Map([1,2,3,4,5,6].map(u=>[u,wt(Ct(s.lists?.numbered,u),u)])),T=xt(g,p,y);return{level:a,format:bt[wt(g,p)],text:a<6?T.text:`%${String(a+1)}.`,alignment:E.LEFT,...T.legal?{isLegalNumberingStyle:!0}:{},...a===0?{start:e}:{},style:{paragraph:{indent:{left:(a+1)*We,hanging:We}}}}})}))]}}const bi="1980-01-01T00:00:00Z",De=9525,At="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Ci=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");function xi(t,i,h,d,A){let z=0,s=0;const E=new Set;t.forEach((r,l)=>{const m=String(l+1),S=`rIdChart${m}`,R=`Microsoft_Excel_Worksheet${m}.xlsx`,f=vt(r.chart.type),O=f?`chartEx${String(++z)}.xml`:`chart${String(++s)}.xml`;A(`word/charts/${O}`,f?dn(r.chart,"rId1",{frameless:!0}):ln(r.chart,{width:r.width*.75,height:r.height*.75},"rId1",{frameless:!0}));let N="";f&&(A(`word/charts/style${m}.xml`,sn(r.chart.type)),A(`word/charts/colors${m}.xml`,an()),N=`<Relationship Id="rId2" Type="${Jt}" Target="style${m}.xml"/><Relationship Id="rId3" Type="${Vt}" Target="colors${m}.xml"/>`,d=d.replace("</Types>",`<Override ContentType="${en}" PartName="/word/charts/style${m}.xml"/><Override ContentType="${Qt}" PartName="/word/charts/colors${m}.xml"/></Types>`)),A(`word/charts/_rels/${O}.rels`,`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
5
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="${At}/package" Target="../embeddings/${R}"/>${N}</Relationships>`),A(`word/embeddings/${R}`,rn(r.chart)),h=h.replace("</Relationships>",`<Relationship Id="${S}" Type="${f?Zt:`${At}/chart`}" Target="charts/${O}"/></Relationships>`),d=d.replace("</Types>",`<Override ContentType="${f?tn:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"}" PartName="/word/charts/${O}"/></Types>`);const C=String(r.width*De),K=String(r.height*De),pe=(V,I="")=>`<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${C}" cy="${K}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="0" name="Chart ${m}" descr="${Ci(r.words)}"/><wp:cNvGraphicFramePr>${I}</wp:cNvGraphicFramePr><a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">${V}</a:graphic></wp:inline></w:drawing>`;let D;const X=r.fallback;if(X){const V=`rIdChartPicture${m}`;A(`word/media/chart${m}.${X.type}`,X.data),E.add(X.type),h=h.replace("</Relationships>",`<Relationship Id="${V}" Type="${At}/image" Target="media/chart${m}.${X.type}"/></Relationships>`),D=pe(`<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Chart ${m}"/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip r:embed="${V}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${C}" cy="${K}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic></a:graphicData>`,'<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>')}else D="<w:t>This chart isn't available in your version of Word.</w:t>";const me=f?`<w:r><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice xmlns:${ht(r.chart.type).prefix}="${ht(r.chart.type).namespace}" Requires="${ht(r.chart.type).prefix}">${pe(`<a:graphicData uri="${nn}">${on(S)}</a:graphicData>`)}</mc:Choice><mc:Fallback>${D}</mc:Fallback></mc:AlternateContent></w:r>`:`<w:r>${pe(`<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart"><c:chart xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" r:id="${S}"/></a:graphicData>`)}</w:r>`;i=i.replace(new RegExp(`<w:r>(?:(?!<w:r>).)*?<w:t[^>]*>${Ut}${m}</w:t></w:r>`,"su"),me)});for(const r of E)d.includes(`Extension="${r}"`)||(d=d.replace("</Types>",`<Default ContentType="${r==="jpg"?"image/jpeg":`image/${r}`}" Extension="${r}"/></Types>`));return t.length>0&&!d.includes('Extension="xlsx"')&&(d=d.replace("</Types>",'<Default ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" Extension="xlsx"/></Types>')),{document:i,rels:h,types:d}}export function movesXml(t,i){if(i.size===0)return t;const h=[];let d=t.replace(/<(\/?)w:(ins|del)\b([^>]*?)(\/?)>/gu,(E,r,l,m,S)=>{if(r!=="")return`</w:${h.pop()??l}>`;const f=i.get(Number(/w:id="(\d+)"/u.exec(m)?.[1]))===void 0?l:l==="ins"?"moveTo":"moveFrom";return S===""&&h.push(f),`<w:${f}${m}${S}>`});d=d.replace(/<w:moveFrom\b[^>]*[^/]>[\s\S]*?<\/w:moveFrom>/gu,E=>E.replace(/<(\/?)w:delText\b/gu,"<$1w:t").replace(/<(\/?)w:delInstrText\b/gu,"<$1w:instrText"));const A=new Map;for(const E of d.matchAll(/<w:(moveFrom|moveTo)\b([^>]*?)(\/?)>/gu)){const[,r="",l="",m=""]=E,S=E.index,R=i.get(Number(/w:id="(\d+)"/u.exec(l)?.[1]));if(R===void 0)continue;let f=S,O;m===""?O=d.indexOf(`</w:${r}>`,S)+`</w:${r}>`.length:(f=d.indexOf("</w:pPr>",S)+8,O=d.indexOf("</w:p>",f));const N=`${r}\0${R}`,C=A.get(N);A.set(N,{start:Math.min(C?.start??f,f),end:Math.max(C?.end??O,O),attrs:C?.attrs??l.replace(/\s*w:id="\d+"/u,"")})}const z=[];let s=0;for(const[E,r]of A){const[l="",m=""]=E.split("\0"),S=String(1e6+ ++s),R=m.replace(/[&<>"]/gu,f=>`&#${String(f.charCodeAt(0))};`);z.push({at:r.start,xml:`<w:${l}RangeStart w:id="${S}"${r.attrs} w:name="${R}"/>`},{at:r.end,xml:`<w:${l}RangeEnd w:id="${S}"/>`})}z.sort((E,r)=>r.at-E.at);for(const E of z)d=d.slice(0,E.at)+E.xml+d.slice(E.at);return d}function Ni(t,i,h,d=[],A=new Map,z={}){const s=i.unzipSync(t),E=I=>{const H=s[I];return H&&new TextDecoder().decode(H)},r=(I,H)=>{s[I]=typeof H=="string"?new TextEncoder().encode(H):H},l="word/document.xml",m="word/_rels/document.xml.rels",S="[Content_Types].xml",R=xi(h,E(l)??"",E(m)??"",E(S)??"",r);r(S,R.types);let f=R.document,O=R.rels;[...new Set([...f.matchAll(/w:hyperlink [^>]*r:id="([^"]+)"/g)].map(I=>I[1]??""))].forEach((I,H)=>{const U=`rIdLink${String(H+1)}`;f=f.split(`"${I}"`).join(`"${U}"`),O=O.split(`"${I}"`).join(`"${U}"`)});let C=0;f=f.replace(/<wp:docPr id="\d+"/g,()=>`<wp:docPr id="${String(++C)}"`);const K=new Map;f=f.replace(/<w:bookmarkStart w:name="([^"]*)" w:id="(\d+)"/g,(I,H,U)=>{const de=String(K.size+1);return K.set(U,de),`<w:bookmarkStart w:name="${H}" w:id="${de}"`}),f=f.replace(/<w:bookmarkEnd w:id="(\d+)"/g,(I,H)=>{const U=K.get(H);return U===void 0?I:`<w:bookmarkEnd w:id="${U}"`}),r(l,movesXml(f,A)),r(m,O);for(const I of Object.keys(s)){if(!/^word\/header\d+\.xml$/u.test(I))continue;let H=E(I)??"";const U=z.vml;U!==void 0&&(H=H.includes("</w:hdr>")?H.replace("</w:hdr>",`${U}</w:hdr>`):H.replace(/<w:hdr\b([^>]*?)\/>/u,(de,te)=>`<w:hdr${te}>${U}</w:hdr>`)),z.washout===!0&&(H=H.replace(new RegExp(`(<wp:docPr [^>]*name="${_t}"(?:(?!</w:drawing>)[\\s\\S])*?<a:blip [^>]*?)(/>|>)`,"gu"),(de,te,re)=>`${te}>${ci}${re==="/>"?"</a:blip>":""}`)),r(I,H)}const pe="word/styles.xml",D=E(pe);D!==void 0&&d.length>0&&r(pe,D.replace("</w:styles>",`${d.join("")}</w:styles>`));const X="docProps/core.xml",me=E(X);me!==void 0&&r(X,me.replace(/(<dcterms:(?:created|modified)[^>]*>)[^<]*/g,`$1${bi}`));const V=Object.fromEntries(Object.entries(s).sort(([I],[H])=>I<H?-1:1));return i.zipSync(V,{mtime:new Date(1980,0,1)})}const Qe=(t,i)=>{const h=ct[t];return{ascii:h.latin,hAnsi:h.latin,cs:h.latin,eastAsia:h.eastAsia??i}},zi=(t,i)=>Object.hasOwn(ct,t)?Qe(t,i):{ascii:t,hAnsi:t,cs:t,eastAsia:t};export function wordProps(t,i,h,d){const A=R=>Math.round(R*h*20),z=q(i.color,Ae),s=q(i.background,Pe),E={...i.font===void 0?{}:{font:zi(i.font,d)},...i.size===void 0?{}:{size:Math.round(ot(i.size)*2)},...i.bold===void 0?{}:{bold:i.bold},...i.italic===void 0?{}:{italics:i.italic},...i.underline===!0?{underline:{}}:{},...i.strike===void 0?{}:{strike:i.strike},...z===void 0?{}:{color:z},...s===void 0?{}:{shading:{type:t.ShadingType.CLEAR,color:"auto",fill:s}},...i.caps===void 0?{}:{allCaps:i.caps},...i.smallCaps===void 0?{}:{smallCaps:i.smallCaps},...i.letterSpacing===void 0?{}:{characterSpacing:Math.round(i.letterSpacing*20)}},r=i.align===void 0?void 0:{left:t.AlignmentType.LEFT,center:t.AlignmentType.CENTER,right:t.AlignmentType.RIGHT,justify:t.AlignmentType.JUSTIFIED}[i.align],l={...i.indent===void 0?{}:{left:A(i.indent)},...i.indentRight===void 0?{}:{right:A(i.indentRight)},...i.firstLine===void 0?{}:i.firstLine<0?{hanging:A(-i.firstLine)}:{firstLine:A(i.firstLine)}},m={...i.spaceBefore===void 0?{}:{before:Math.round(i.spaceBefore*20)},...i.spaceAfter===void 0?{}:{after:Math.round(i.spaceAfter*20)},...i.lineHeight===void 0?{}:typeof i.lineHeight=="number"?{line:Math.round(i.lineHeight*240),lineRule:t.LineRuleType.AUTO}:{line:Math.round(parseFloat(i.lineHeight)*20),lineRule:t.LineRuleType.EXACT}},S={...r===void 0?{}:{alignment:r},...Object.keys(l).length===0?{}:{indent:l},...Object.keys(m).length===0?{}:{spacing:m},...i.keepNext===void 0?{}:{keepNext:i.keepNext},...i.keepLines===void 0?{}:{keepLines:i.keepLines},...i.pageBreakBefore===void 0?{}:{pageBreakBefore:i.pageBreakBefore}};return{run:E,paragraph:S}}function Li(t,i,h){const d={left:[],center:[],right:[]};i.left!==void 0&&d.left.push(i.left),i.center!==void 0&&d.center.push(i.center),i.right!==void 0&&d.right.push(i.right),i.outside!==void 0&&d[h.odd?"right":"left"].push(i.outside),i.inside!==void 0&&d[h.odd?"left":"right"].push(i.inside);const A={size:Math.round(h.size*2),color:h.color,font:Qe(h.face,h.eastAsia)},z=R=>R.split(/(\{title\}|\{section\}|\{page\}|\{pages\})/u).filter(f=>f!=="").map(f=>f==="{page}"?new t.TextRun({...A,children:[t.PageNumber.CURRENT]}):f==="{pages}"?new t.TextRun({...A,children:[t.PageNumber.TOTAL_PAGES]}):f==="{section}"?new t.SimpleField(`STYLEREF "heading ${String(h.section)}"`,""):new t.TextRun({...A,text:f==="{title}"?h.title:f})),s=R=>{const f=h.picture?.(R.picture);if(f===void 0)return[];const O=Math.round((R.height??Fn)/25.4*96);return[new t.ImageRun({...dt(f),transformation:{width:Math.round(O*f.width/f.height),height:O},altText:{name:R.picture,title:R.picture,description:""}})]},E=R=>{const f=d[R].filter(C=>typeof C=="string"),O=d[R].filter(C=>typeof C!="string"),N=f.join(" ").split(`
|
|
6
|
+
`).map(z);return O.length>0?[O.flatMap(s),...f.length>0?N:[]]:N},r=E("left"),l=E("center"),m=E("right"),S=Math.max(r.length,l.length,m.length);return Array.from({length:S},(R,f)=>new t.Paragraph({style:h.style,tabStops:[{type:t.TabStopType.CENTER,position:Math.round(h.width/2)},{type:t.TabStopType.RIGHT,position:h.width}],children:[...r[f]??[],new t.TextRun({...A,children:[new t.Tab]}),...l[f]??[],new t.TextRun({...A,children:[new t.Tab]}),...m[f]??[]]}))}function Fi(t,i){const[h="",d,...A]=t.split(" ");return d===void 0||!["REF","PAGEREF","NOTEREF"].includes(h.toUpperCase())?t:[h,i.get(d)??d,...A].join(" ")}const jt=(t,i,h,d)=>({run:{...i?.font===void 0?{}:{font:Qe(t.font,h)},...i?.size===void 0?{}:{size:Math.round(t.size*2)},...i?.weight===void 0?{}:{bold:t.weight==="bold"},...i?.italic===void 0?{}:{italics:t.italic}},paragraph:i?.align===void 0?{}:{alignment:t.align==="center"?d.AlignmentType.CENTER:t.align==="right"?d.AlignmentType.RIGHT:d.AlignmentType.LEFT}});function Oi(t){const i=new Map,h=new Set;return t.forEach((d,A)=>{const z=d.replace(/[^A-Za-z0-9_]/gu,"_").replace(/^[^A-Za-z]+/u,"");let s=`b_${z}`.slice(0,32);(h.has(s)||z==="")&&(s=`b_${String(A)}_${z}`.slice(0,40)),h.add(s),i.set(d,s)}),i}export async function docxOf(t,i,h,d={}){const A=d.page??{},z=mt(A).citationStyle??"apa",s=En(Qn(h,d),d.sources??[],z,"block"),E=An(h,d.sources??[],z),r=mt(A),l=at(A),m=ct[l.font].eastAsia??Ai(kn(s)),S=Qe(l.font,m),R=q(Pt(d.page),{}),f=$n(s),O=wn(s,A),N=new Map;for(const o of Ue(s)){const w=St(o),b=O.get(o);w!==void 0&&b!==void 0&&N.set(w,b.label)}for(const[o,w]of f)o.type==="heading"&&N.set(w,o.content.map(b=>b.text).join(""));const{title:C}=_n(s),K=[...Ue(s)].filter(o=>o.type==="heading"&&o!==C),pe=Oi([...f.values(),...[...Ue(s)].flatMap(o=>{const w=St(o);return w===void 0?[]:[w]})]),D=$i(s),X=Pi(t,d,m,R,ti(s),ei(s),{page:l,sets:{indent:r.textIndent!==void 0&&r.textIndent>0,align:r.textAlign==="justify"},numbers:O,refs:N,bookmarks:pe,anchors:f,title:C,headings:K,chinese:Tn(s),sources:E,comments:D,endnotes:r.notes==="end",lists:r.lists}),me=Mn(s),V={width:ue(l.width),height:ue(l.height)},I=o=>{const w=at($t(r,o)),b=w.margins,ee=(Y,ye)=>ue(Math.max(0,Y-On(Y)-In(ye,l.size))),ne=o.margins??r.margins,we=ne===void 0?Cn.margins:bn(ne);return{top:ue(we.top),bottom:ue(we.bottom),left:ue(b.left),right:ue(b.right),...w.header===void 0?{}:{header:ee(b.top,w.header)},...w.footer===void 0?{}:{footer:ee(b.bottom,w.footer)}}},H=d.cover,U=s.flatMap(o=>o.type==="pagebreak"?[o.header,o.footer].filter(w=>w!==void 0&&w!==!1):[]),de=o=>s.flatMap(w=>{const b=w.type==="pagebreak"?w[o]:void 0;return b===void 0||b===!1?[]:[b]})[0],te=o=>l[o]!==void 0||de(o)!==void 0,re=[l.header,l.footer,...U].some(o=>o!==void 0&&(o.outside!==void 0||o.inside!==void 0||o.even!==void 0)),he=r.watermark,M=he!==void 0&&"picture"in he?d.picture?.(he.picture):void 0,xe=[];if(M!==void 0&&he!==void 0&&"picture"in he){const o=l.textWidth/25.4*96,w=he.scale===void 0?Math.min(M.width,o):M.width*he.scale/100;xe.push(new t.Paragraph({spacing:{before:0,after:0,line:20,lineRule:"exact"},children:[new t.ImageRun({...dt(M),transformation:{width:Math.round(w),height:Math.round(w*M.height/M.width)},floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.MARGIN,align:t.HorizontalPositionAlign.CENTER},verticalPosition:{relative:t.VerticalPositionRelativeFrom.MARGIN,align:t.VerticalPositionAlign.CENTER},allowOverlap:!0,behindDocument:!0,wrap:{type:t.TextWrappingType.NONE}},altText:{name:_t,title:"",description:""}})]}))}const le=o=>new t.Header({children:[...o,...xe]}),Ze=me.flatMap((o,w)=>Si(o.blocks,o.columns).map((b,ee)=>{const ne=I(o),we=o.landscape?V.height:V.width,Y=we-ne.left-ne.right,ye=X.body(b.blocks,Y);if(w===0&&ee===0&&H){const F=Math.round(we/Xe);ye.unshift(new t.Paragraph({spacing:{before:0,after:0},children:[new t.ImageRun({...dt(H),transformation:{width:F,height:Math.round(F*Zn)},floating:{horizontalPosition:{relative:t.HorizontalPositionRelativeFrom.PAGE,offset:0},verticalPosition:{relative:t.VerticalPositionRelativeFrom.PAGE,offset:0},allowOverlap:!1,margins:{bottom:324e3},wrap:{type:t.TextWrappingType.TOP_AND_BOTTOM}},altText:{name:"Cover",title:"Cover",description:""}})]}))}const et=(F,e,n)=>{if(F===void 0)return;const a=(p,g=F)=>{const y=g.size??F.size;return Li(t,g,{picture:d.picture,style:n,odd:p,width:Y,title:d.title??"",section:Math.min(...K.map(T=>T.level),6),face:g.font??F.font??l.font,eastAsia:m,size:y===void 0?Math.max(7.5,l.size*.75):ot(y),color:e?Ce:be})};return{default:a(!0),...F.even!==void 0?{even:F.even===!1?null:a(!1,F.even)}:re?{even:a(!1)}:{},...F.first===void 0?{}:{first:F.first===!1?null:a(!0,F.first)}}},Be=$t(r,o),tt=w===0?l:at(Be),nt=mt(Be),pt=F=>ee===0&&(w===0||(o.opens??[]).includes(F)),$e=(F,e)=>{if(F===void 0||pt(e))return F;const n={...F};return delete n.first,n},Te=et($e(tt.header,"header"),nt.header===void 0,"Header"),Re=et($e(tt.footer,"footer"),nt.footer===void 0,"Footer"),it=w===0&&ee===0&&H!==void 0&&Te!==void 0,ve=ee===0&&(it||Te?.first!==void 0||Re?.first!==void 0),rt=(F,e)=>F===void 0?[]:e||F.first===null?[]:F.first??F.default,Ge=r.grid===void 0?void 0:{type:t.DocumentGridType.LINES_AND_CHARS,linePitch:Math.round(Nn(l)*20),charSpace:Math.round(l.textWidth/25.4*72/r.grid.chars-l.size)*4096};return{properties:{page:{size:{width:Math.min(V.width,V.height),height:Math.max(V.width,V.height),...o.landscape||V.width>V.height?{orientation:t.PageOrientation.LANDSCAPE}:{}},margin:{...ne,header:Math.max(0,ne.top-ue(7)-Math.round(l.size*20*1.2)),footer:Math.max(0,ne.bottom-ue(7)-Math.round(l.size*20*1.2))}},...Ge===void 0?{}:{grid:Ge},...b.columns>1?{column:{count:b.columns,space:720,equalWidth:!0}}:{},...ee>0&&b.continuous?{type:t.SectionType.CONTINUOUS}:{},...ve?{titlePage:!0}:{},...r.notes==="end"?{endnoteProperties:{position:t.EndnotePosition.DOCUMENT_END,numberFormat:{type:t.NumberFormat.DECIMAL}}}:{}},...Te===void 0?w>0&&te("header")||w===0&&he!==void 0?{headers:{default:le([]),...ve?{first:le([])}:{},...re?{even:le([])}:{}}}:{}:{headers:{default:le(Te.default),...Te.even===void 0?{}:{even:le(Te.even??[])},...ve?{first:le(rt(Te,it))}:{}}},...Re===void 0?w>0&&te("footer")?{footers:{default:new t.Footer({children:[]}),...ve?{first:new t.Footer({children:[]})}:{},...re?{even:new t.Footer({children:[]})}:{}}}:{}:{footers:{default:new t.Footer({children:Re.default}),...Re.even===void 0?{}:{even:new t.Footer({children:Re.even??[]})},...ve?{first:new t.Footer({children:rt(Re,!1)})}:{}}},children:ye}})),Ne=l.lineHeight,ut={spacing:{after:Math.round(l.paragraphSpacing*l.size*20),..."pt"in Ne?{line:Math.round(Ne.pt*20),lineRule:t.LineRuleType.EXACT}:{line:Math.round(Ne.multiple*240),lineRule:t.LineRuleType.AUTO}}},Ee=l.spacing,ze=o=>Math.round(o*20),Z=o=>{const w=r.headings?.[o],b=jt(l.headings[o],w,m,t);return{run:{size:Math.round(l.headings[o].size*2),bold:!0,font:S,color:be,...b.run},paragraph:{spacing:{before:ze(Ee.heading.before),after:ze(Ee.heading.after)},keepNext:!0,keepLines:!0,...l.headings[o].rule?{border:{bottom:{style:t.BorderStyle.SINGLE,size:4,color:qe,space:Rn}}}:{},...b.paragraph}}},Le=jt(l.title,r.title,m,t),v=A.styles??{},L=o=>wordProps(t,jn(v,o),ot(l.size),m),ae=(o,w)=>{if(v[w]===void 0)return o;const b=L(w);return{...o,run:{...o.run,...b.run},paragraph:{...o.paragraph,...b.paragraph,...o.paragraph?.spacing!==void 0&&b.paragraph.spacing!==void 0?{spacing:{...o.paragraph.spacing,...b.paragraph.spacing}}:{}}}},ge=Un(v),He=new Map([...ge].map(([o,w])=>[o,wt(w,o)])),Fe=ge.size===0?[]:[{reference:Ht,levels:[1,2,3,4,5,6].map(o=>{const w=ge.get(o),b=w&&xt(w,o,He);return{level:o-1,format:bt[He.get(o)??"decimal"],text:b?.text??"",alignment:t.AlignmentType.LEFT,suffix:t.LevelSuffix.SPACE,...b?.legal===!0?{isLegalNumberingStyle:!0}:{}}})}],J=(o,w)=>ge.has(w)?{...o,paragraph:{...o.paragraph,numbering:{reference:Ht,level:w-1}}}:o,Je={paragraph:Object.entries(v).flatMap(([o,w])=>{if(w.type==="character"||w.type==="table"||Nt.includes(o))return[];const b=L(o);return[{id:Ie(o),name:o,basedOn:lt(w.basedOn??zt),...w.next===void 0?{}:{next:lt(w.next)},quickFormat:!0,run:b.run,paragraph:b.paragraph}]}),character:Object.entries(v).flatMap(([o,w])=>w.type!=="character"?[]:[{id:Ie(o),name:o,...w.basedOn===void 0?{}:{basedOn:Ie(w.basedOn)},quickFormat:!0,run:L(o).run}])},oe=new t.Document({creator:"AllyHub",lastModifiedBy:"AllyHub",...d.title===void 0?{}:{title:d.title},...re?{evenAndOddHeaderAndFooters:!0}:{},compatibility:{underlineTrailingSpaces:!0},numbering:{config:[...X.numbering(),...Fe]},styles:{default:{document:ae({run:{font:S,size:Math.round(l.size*2),color:be},paragraph:ut},zt),hyperlink:{run:{color:R??be,underline:{color:R??ke}}},title:ae({run:{size:Math.round(l.title.size*2),bold:!0,font:S,color:be,...Le.run},paragraph:{spacing:{before:0,after:ze(Ee.title)},keepNext:!0,...Le.paragraph}},Xn),heading1:J(ae(Z(1),Oe(1)),1),heading2:J(ae(Z(2),Oe(2)),2),heading3:J(ae(Z(3),Oe(3)),3),heading4:J(ae(Z(4),Oe(4)),4),heading5:J(ae(Z(5),Oe(5)),5),heading6:J(ae(Z(6),Oe(6)),6)},characterStyles:Je.character,paragraphStyles:[...Je.paragraph,{id:Wt,name:"TOC Heading",basedOn:"Normal",next:"Normal",quickFormat:!0,...Z(1)},{id:"Caption",name:"caption",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:Ee.small*2,color:Ce},paragraph:{spacing:{before:0}}},{id:Bt,name:"List Paragraph",basedOn:"Normal",quickFormat:!0,paragraph:{contextualSpacing:!0}},...[["Header",l.header??de("header"),r.header===void 0],["Footer",l.footer??de("footer"),r.footer===void 0]].flatMap(([o,w,b])=>w===void 0?[]:[{id:o,name:o.toLowerCase(),basedOn:"Normal",run:{size:Math.round((w.size===void 0?Math.max(7.5,l.size*.75):ot(w.size))*2),color:b?Ce:be,font:Qe(w.font??l.font,m)},paragraph:{spacing:{before:0,after:0,line:240}}}])]},sections:Ze,...r.track===!0?{features:{trackRevisions:!0}}:{},...r.notes==="end"?{endnotes:X.footnotes(s)}:{footnotes:X.footnotes(s)},...D.ids.size===0?{}:{comments:{children:s.flatMap(o=>{if(o.type!=="comment")return[];const w=D.ids.get(o.id);if(w===void 0)return[];const b=o.replyTo===void 0?void 0:D.ids.get(o.replyTo),ee=o.date===void 0?void 0:new Date(o.date);return[{id:w,author:o.author,initials:Mi(o.author),...ee===void 0||Number.isNaN(ee.getTime())?{}:{date:ee},...b===void 0?{}:{parentId:b},...o.done===!0?{resolved:!0}:{},children:X.commentParagraphs(o)}]})}}}),ft=await t.Packer.toBuffer(oe);return Ni(new Uint8Array(ft),i,X.charts,[...X.tableStyles].map(o=>hi(o,Lt(r.styles,o))),X.moves,r.watermark===void 0?{}:"picture"in r.watermark?{washout:r.watermark.washout===!0}:{vml:fi(r.watermark,at(r))})}
|