allyhub 0.8.0 → 0.10.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/CHANGELOG.md +19 -0
- package/NOTICE +122 -42
- package/client.d.ts +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +4 -4
- package/dist/commands/auth.js +4 -4
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +13 -7
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +2 -0
- package/dist/commands/dev.js +2 -2
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/extensions.js +3 -0
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/cuts.js +1 -1
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/overlay.js +2 -0
- 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 +2 -2
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +2 -0
- package/dist/commands/mail.js +9 -0
- package/dist/commands/orgs.js +2 -2
- package/dist/commands/render.js +2 -2
- package/dist/fields.js +1 -1
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/package.json +327 -0
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
- package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
- package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
- package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
- package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
- package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
- package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
- package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
- package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
- package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
- package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
- package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
- package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
- package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
- package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
- package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
- package/dist/node_modules/@allyhub/canvas-extension/package.json +107 -0
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +7 -0
- package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
- package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +53 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +34 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
- 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/components/r/callout.json +2 -4
- package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
- package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
- package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
- package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
- package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
- package/dist/node_modules/@allyhub/components/registry.json +6 -0
- package/dist/node_modules/@allyhub/components/src/callout.ts +165 -4
- package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
- package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
- package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
- package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
- package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +247 -57
- 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/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/package.json +202 -0
- package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
- package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
- package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
- package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
- package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
- package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/i18n/package.json +13 -0
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
- package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/package.json +291 -0
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +12 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
- package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
- package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
- package/dist/node_modules/@allyhub/image-render/package.json +14 -0
- package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/NOTICE +1 -42
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
- package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
- package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
- package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/package.json +65 -0
- package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
- package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
- package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
- package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
- package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/render/package.json +1 -5
- package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -5
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +6 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- 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/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- 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/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/package.json +228 -0
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- 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/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- 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/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/package.json +265 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.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 +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
- package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
- package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +469 -0
- package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
- package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +25 -0
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/package.json +199 -0
- package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/package.json +307 -0
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +12 -0
- package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/x-model/package.json +14 -0
- package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
- package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/x-view/package.json +21 -0
- package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
- package/dist/package.json +16 -0
- package/dist/parameters.js +1 -1
- package/dist/presence.js +2 -0
- package/dist/project.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/console-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/tool-options.js +1 -1
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/abnfDiagram-WEYOIA3C-CjAmWsNR.js +1 -0
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/architecture-WOLXFQ4H-DeeKhyhZ.js +1 -0
- package/editor-web/assets/architectureDiagram-ZHVYKT53-b32qTaJg.js +36 -0
- package/editor-web/assets/arrow-up-L4YV_65f.js +1 -0
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/audio-lines-BFcM7G2L.js +1 -0
- package/editor-web/assets/blockDiagram-RJAE7QA3-BNbnMNmw.js +140 -0
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/c4Diagram-XDPPPE54-BEuemvMw.js +38 -0
- package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
- package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
- package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
- package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
- package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
- package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
- package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
- package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
- package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
- package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
- package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
- package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
- package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/chunk-2E7WHVMD-Zb5nPx_e.js +88 -0
- package/editor-web/assets/chunk-4EMNKR2T-DSEM2reX.js +1 -0
- package/editor-web/assets/chunk-55XCU76K-BOZa_65H.js +1 -0
- package/editor-web/assets/chunk-7S6XSTFO-DeiGeVpB.js +2 -0
- package/editor-web/assets/chunk-AQDTSKZB-fPuQFBJc.js +72 -0
- package/editor-web/assets/chunk-DSNLSHJZ-5vdnoak2.js +129 -0
- package/editor-web/assets/chunk-HAGFOTED-DFF2mZJ1.js +62 -0
- package/editor-web/assets/chunk-HNE4Q36P-g6-ZLbTg.js +1 -0
- package/editor-web/assets/chunk-NQOKRVIF-o3hNcHMJ.js +213 -0
- package/editor-web/assets/chunk-UHW7PFBP-BQiDI9dK.js +1 -0
- package/editor-web/assets/chunk-VQ5W62QI-CJlMXWWz.js +1 -0
- package/editor-web/assets/chunk-WQQL4CDK-pNBU8dXv.js +10 -0
- package/editor-web/assets/chunk-YZO67HFG-2x-BiWd-.js +1 -0
- package/editor-web/assets/chunk-ZAUX2LTX-etFStEM8.js +1 -0
- package/editor-web/assets/chunk-ZCHMQSOR-B3AYRhIY.js +2 -0
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-6y2yX0oq.js +217 -0
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
- package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
- package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/cynefin-EF2NZ3EQ-CX4BTQQe.js +1 -0
- package/editor-web/assets/cynefinDiagram-WF24UDRP-LbDkOTy3.js +62 -0
- package/editor-web/assets/dagre-NK4GIZVX-wCKQk7hi.js +4 -0
- package/editor-web/assets/diagram-CBK3MWTC-a9fofQwk.js +24 -0
- package/editor-web/assets/diagram-I5XIIV2D-UCLZWch5.js +24 -0
- package/editor-web/assets/diagram-ODIL2UCW-CAEe88Lp.js +30 -0
- package/editor-web/assets/diagram-PFBEJUXE-Cp1o45bs.js +3 -0
- package/editor-web/assets/diagram-RJA3I4VV-c6OVxDyq.js +41 -0
- package/editor-web/assets/diagram-TYUNFSNR-BVRWslDM.js +200 -0
- package/editor-web/assets/dist--KKyT5zP.js +340 -0
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/dist-DIPV6xfF.js +2 -0
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/dist-DwGhfliS.js +1 -0
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-YW8hS4IM.js +9 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-KdOTJgFu.js +1 -0
- package/editor-web/assets/elk-QONTBCTQ-Cmlrp7qB.js +27 -0
- package/editor-web/assets/erDiagram-KYQIGQAA-CBM7-aQm.js +99 -0
- package/editor-web/assets/eventmodeling-K75KTNOO-CEoJkbuW.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/ganttDiagram-R7GPNTJY-D4S6ZSYD.js +292 -0
- package/editor-web/assets/gitGraph-VSP46ZUC-BvkL6RSh.js +1 -0
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-lTGguloH.js +106 -0
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/info-OHQRW6UA-DvKzqNvp.js +1 -0
- package/editor-web/assets/infoDiagram-MVDRKAX5-D7hCpehs.js +2 -0
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-Bg93sZQe.js +70 -0
- package/editor-web/assets/italic-BQBwRTe8.js +1 -0
- package/editor-web/assets/journeyDiagram-BOSHW7O7-CKm_KONJ.js +139 -0
- package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
- package/editor-web/assets/kanban-definition-FNSA4HC5-BKknnpTR.js +89 -0
- package/editor-web/assets/layout-SWqqA0yV.js +1 -0
- package/editor-web/assets/mermaid-parser.core-BzqkDnqL.js +7 -0
- package/editor-web/assets/mermaid.core-CEpvTOAe.js +44 -0
- package/editor-web/assets/mindmap-definition-6OY57UG3-BJ0qG8Wi.js +98 -0
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/packet-JDAUHWVQ-ew3kvyFm.js +1 -0
- package/editor-web/assets/pegDiagram-ECIUJNBX-DqUS2xit.js +1 -0
- package/editor-web/assets/picture-B-I4V_JT.js +1 -0
- package/editor-web/assets/pie-XZMESJXO-DTIAMPGm.js +1 -0
- package/editor-web/assets/pieDiagram-GNMPY74T-DoKOE02-.js +39 -0
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/quadrantDiagram-D57K4MC3-DauOpYun.js +7 -0
- package/editor-web/assets/radar-ABXABTNO-BvMJXUU-.js +1 -0
- package/editor-web/assets/railroad-I3PHUGI6-D3jdJmhM.js +1 -0
- package/editor-web/assets/railroad-abnf-LNEFI6M7-Dm8ZpmPj.js +1 -0
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js +1 -0
- package/editor-web/assets/railroad-peg-JR7BVNR7-CMrQL_7U.js +1 -0
- package/editor-web/assets/railroadDiagram-Y72NRBL7-y99z0C7i.js +1 -0
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
- package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
- package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
- package/editor-web/assets/repeat-2-DJi4LW5C.js +1 -0
- package/editor-web/assets/requirementDiagram-EQYSW5RA-jMr_uoF6.js +84 -0
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/sankeyDiagram-SY24JHO5-DcUyx03Q.js +40 -0
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-R4X8wRCd.js +169 -0
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BqvXKbCA.js +291 -0
- package/editor-web/assets/strikethrough-CyUBnGTl.js +1 -0
- package/editor-web/assets/svg-lBRT-uhy.js +1 -0
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/swimlanes-B3ENRKFQ-hjTXIc6M.js +1 -0
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/syntax-Bih_jv7W.js +1 -0
- package/editor-web/assets/syntax-C0iPON60.js +18 -0
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/textarea-Fu93tFO3.js +105 -0
- package/editor-web/assets/timeline-definition-JXYKGLGB-BcSoN4Dq.js +120 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
- package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
- package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
- package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
- package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
- package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
- package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
- package/editor-web/assets/trash-2-BAKAeziW.js +1 -0
- package/editor-web/assets/treeView-D4JQ5SDB-CsFN2jrc.js +1 -0
- package/editor-web/assets/treemap-SAJKECNS-DP1eqXJ2.js +1 -0
- package/editor-web/assets/undo-2-DQ5CBmki.js +1 -0
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BGxa0osF.js +328 -0
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D2XhTF49.js +34 -0
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/wardley-7MLQ67FV-DM3jMAbZ.js +1 -0
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-Bf-DaZEg.js +78 -0
- package/editor-web/assets/xychartDiagram-4URNHDU4-dp-mdcWd.js +7 -0
- package/editor-web/index.html +8 -3
- package/package.json +21 -5
- package/dist/audio-text.js +0 -6
- package/dist/cloud-hearing.js +0 -2
- package/dist/commands/audio.js +0 -4
- package/dist/commands/inspect/contrast.js +0 -2
- package/dist/commands/inspect/fidelity.js +0 -2
- package/dist/commands/inspect/joins.js +0 -2
- package/dist/commands/inspect/motion.js +0 -4
- package/dist/commands/inspect/sheet.js +0 -3
- package/dist/commands/inspect/timeline.js +0 -3
- package/dist/commands/model.js +0 -3
- package/dist/commands/reference-text.js +0 -5
- package/dist/commands/reference.js +0 -2
- package/dist/commands/scenery-input.js +0 -2
- package/dist/commands/scenery.js +0 -7
- package/dist/commands/sheet.js +0 -8
- package/dist/commands/site.js +0 -4
- package/dist/commands/slides.js +0 -3
- package/dist/commands/voice.js +0 -3
- package/dist/commands/words-text.js +0 -6
- package/dist/commands/words.js +0 -2
- package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
- package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
- package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
- package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
- package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
- package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
- package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
- package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
- package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
- package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
- package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
- package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
- package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
- package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
- package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
- package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
- package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
- package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
- package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
- package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
- package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
- package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
- package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
- package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
- package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
- package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
- package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
- package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
- package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
- package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
- package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
- package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
- package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
- package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
- package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
- package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
- package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
- package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
- package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
- package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
- package/dist/node_modules/@allyhub/runtime/dist/locate.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
- package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
- package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
- package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
- package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
- package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
- package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
- package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
- package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
- package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
- package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
- package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
- package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
- package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
- package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
- package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
- package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
- package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
- package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
- package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
- package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
- package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
- package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
- package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
- package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
- package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
- package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
- package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
- package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
- package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
- package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
- package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
- package/dist/text/timeline-text.js +0 -2
- package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
- package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
- package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
- package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
- package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
- package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
- package/editor-web/assets/channel-hhT2g1yB.js +0 -1
- package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
- package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
- package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
- package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
- package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
- package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
- package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
- package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
- package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
- package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
- package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
- package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
- package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
- package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
- package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
- package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
- package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
- package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
- package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
- package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
- package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
- package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
- package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
- package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
- package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
- package/editor-web/assets/dist-BRuoygB7.js +0 -2
- package/editor-web/assets/dist-CK42vCmN.js +0 -550
- package/editor-web/assets/dist-C_buDsM-.js +0 -36
- package/editor-web/assets/dist-DNcXHhzn.js +0 -37
- package/editor-web/assets/dist-HxiPpGXi.js +0 -10
- package/editor-web/assets/dist-PF3VMsK7.js +0 -1
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
- package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
- package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
- package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
- package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
- package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
- package/editor-web/assets/hint-BwGc32IE.js +0 -1
- package/editor-web/assets/index-BQKSbBSy.js +0 -69
- package/editor-web/assets/index-CfD80QPx.css +0 -2
- package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
- package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
- package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
- package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
- package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
- package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
- package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
- package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
- package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
- package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
- package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
- package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
- package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
- package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
- package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
- package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
- package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
- package/editor-web/assets/react-BSSSHUyV.js +0 -101
- package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
- package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
- package/editor-web/assets/svg-BiObwMnL.js +0 -1
- package/editor-web/assets/swatch-CwskGSEY.js +0 -105
- package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
- package/editor-web/assets/tabs-uHwPMprC.js +0 -1
- package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
- package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
- package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
- package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
- package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
- /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
- /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
- /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
- /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
- /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CPS-TrJJ.js";import{C as t,E as n,S as r,_ as i,b as a,c as o,d as s,f as c,h as l,i as u,k as d,l as f,m as p,o as m,s as h,v as g,x as _}from"./dist-YW8hS4IM.js";var v=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ee=e(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),te=e(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),ne=e(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),re=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function y(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var b=(e,n,i)=>{let a=y(e,i);if(!a)return!1;let o=w(a);if(!o){let t=a.blockRange(),i=t&&r(t);return i!=null&&(n&&n(e.tr.lift(t,i).scrollIntoView()),!0)}let s=o.nodeBefore;if(A(e,o,n,-1))return!0;if(a.parent.content.size==0&&(S(s,`end`)||m.isSelectable(s)))for(let r=a.depth;;r--){let i=t(e.doc,a.before(r),a.after(r),d.empty);if(i&&i.slice.size<i.to-i.from){if(n){let t=e.tr.step(i);t.setSelection(S(s,`end`)?f.findFrom(t.doc.resolve(t.mapping.map(o.pos,-1)),-1):m.create(t.doc,o.pos-s.nodeSize)),n(t.scrollIntoView())}return!0}if(r==1||a.node(r-1).childCount>1)break}return s.isAtom&&o.depth==a.depth-1?(n&&n(e.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1},ie=(e,t,n)=>{let r=y(e,n);if(!r)return!1;let i=w(r);return i?x(e,i,t):!1},ae=(e,t,n)=>{let r=T(e,n);if(!r)return!1;let i=D(r);return i?x(e,i,t):!1};function x(e,n,r){let i=n.nodeBefore,a=n.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let e=i.lastChild;if(!e)return!1;i=e}let o=n.nodeAfter,c=n.pos+1;for(;!o.isTextblock;c++){if(o.type.spec.isolating)return!1;let e=o.firstChild;if(!e)return!1;o=e}let u=t(e.doc,a,c,d.empty);if(!u||u.from!=a||u instanceof l&&u.slice.size>=c-a)return!1;if(r){let t=e.tr.step(u);t.setSelection(s.create(t.doc,a)),r(t.scrollIntoView())}return!0}function S(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var C=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=w(r)}let o=a&&a.nodeBefore;return!o||!m.isSelectable(o)?!1:(t&&t(e.tr.setSelection(m.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function w(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function T(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var E=(e,n,r)=>{let i=T(e,r);if(!i)return!1;let a=D(i);if(!a)return!1;let o=a.nodeAfter;if(A(e,a,n,1))return!0;if(i.parent.content.size==0&&(S(o,`start`)||m.isSelectable(o))){let r=t(e.doc,i.before(),i.after(),d.empty);if(r&&r.slice.size<r.to-r.from){if(n){let t=e.tr.step(r);t.setSelection(S(o,`start`)?f.findFrom(t.doc.resolve(t.mapping.map(a.pos)),1):m.create(t.doc,t.mapping.map(a.pos))),n(t.scrollIntoView())}return!0}}return o.isAtom&&a.depth==i.depth-1?(n&&n(e.tr.delete(a.pos,a.pos+o.nodeSize).scrollIntoView()),!0):!1},oe=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=D(r)}let o=a&&a.nodeAfter;return!o||!m.isSelectable(o)?!1:(t&&t(e.tr.setSelection(m.create(e.doc,a.pos)).scrollIntoView()),!0)};function D(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var se=(e,t)=>{let n=e.selection,r=n instanceof m,a;if(r){if(n.node.isTextblock||!i(e.doc,n.from))return!1;a=n.from}else if(a=_(e.doc,n.from,-1),a==null)return!1;if(t){let n=e.tr.join(a);r&&n.setSelection(m.create(n.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},ce=(e,t)=>{let n=e.selection,r;if(n instanceof m){if(n.node.isTextblock||!i(e.doc,n.to))return!1;r=n.to}else if(r=_(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},le=(e,t)=>{let{$from:n,$to:i}=e.selection,a=n.blockRange(i),o=a&&r(a);return o!=null&&(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},ue=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
|
|
2
|
+
`).scrollIntoView()),!0)};function O(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var de=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=O(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(f.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},fe=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof u||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=O(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(s.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},k=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(g(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let i=n.blockRange(),a=i&&r(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)};function pe(e){return(t,n)=>{if(t.selection instanceof m&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!g(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof s||t.selection instanceof u)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],c,l,d=!1,f=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){d=i.end(t)==i.pos+(i.depth-t),f=i.start(t)==i.pos-(i.depth-t),l=O(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,d,i);o.unshift(n||(d&&l?{type:l}:null)),c=t;break}else{if(t==1)return!1;o.unshift(null)}let p=i.pos,h=g(r.doc,p,o.length,o);if(h||=(o[0]=l?{type:l}:null,g(r.doc,p,o.length,o)),!h)return!1;if(r.split(p,o.length,o),!d&&f&&i.node(c).type!=l){let e=r.mapping.slice(a),t=e.map(i.before(c)),n=r.doc.resolve(t);l&&i.node(c-1).canReplaceWith(n.index(),n.index()+1,l)&&r.setNodeMarkup(e.map(i.before(c)),l)}return n&&n(r.scrollIntoView()),!0}}var me=pe(),he=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(m.create(e.doc,i))),!0)},ge=(e,t)=>(t&&t(e.tr.setSelection(new u(e.doc))),!0);function _e(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||i(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function A(e,t,a,o){let s=t.nodeBefore,c=t.nodeAfter,l,u,m=s.type.spec.isolating||c.type.spec.isolating;if(!m&&_e(e,t,a))return!0;let h=!m&&t.parent.canReplace(t.index(),t.index()+1);if(h&&(l=(u=s.contentMatchAt(s.childCount)).findWrapping(c.type))&&u.matchType(l[0]||c.type).validEnd){if(a){let r=t.pos+c.nodeSize,o=n.empty;for(let e=l.length-1;e>=0;e--)o=n.from(l[e].create(null,o));o=n.from(s.copy(o));let u=e.tr.step(new p(t.pos-1,r,t.pos,r,new d(o,1,0),l.length,!0)),f=u.doc.resolve(r+2*l.length);f.nodeAfter&&f.nodeAfter.type==s.type&&i(u.doc,f.pos)&&u.join(f.pos),a(u.scrollIntoView())}return!0}let g=c.type.spec.isolating||o>0&&m?null:f.findFrom(t,1),_=g&&g.$from.blockRange(g.$to),v=_&&r(_);if(v!=null&&v>=t.depth)return a&&a(e.tr.lift(_,v).scrollIntoView()),!0;if(h&&S(c,`start`,!0)&&S(s,`end`)){let r=s,i=[];for(;i.push(r),!r.isTextblock;)r=r.lastChild;let o=c,l=1;for(;!o.isTextblock;o=o.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,o.content)){if(a){let r=n.empty;for(let e=i.length-1;e>=0;e--)r=n.from(i[e].copy(r));a(e.tr.step(new p(t.pos-i.length,t.pos+c.nodeSize,t.pos+l,t.pos+c.nodeSize-l,new d(r,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function j(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(s.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var M=j(-1),N=j(1);function ve(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),c=s&&a(s,e,t);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function ye(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function P(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var F=P(re,b,C),I=P(re,E,oe),L={Enter:P(ue,fe,k,me),"Mod-Enter":de,Backspace:F,"Mod-Backspace":F,"Shift-Backspace":F,Delete:I,"Mod-Delete":I,"Mod-a":ge},R={"Ctrl-h":L.Backspace,"Alt-Backspace":L[`Mod-Backspace`],"Ctrl-d":L.Delete,"Ctrl-Alt-Backspace":L[`Mod-Delete`],"Alt-Delete":L[`Mod-Delete`],"Alt-d":L[`Mod-Delete`],"Ctrl-a":M,"Ctrl-e":N};for(let e in L)R[e]=L[e];for(var be=(typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform()==`darwin`)?R:L,z={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},B={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},xe=typeof navigator<`u`&&/Mac/.test(navigator.platform),Se=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),V=0;V<10;V++)z[48+V]=z[96+V]=String(V);for(var V=1;V<=24;V++)z[V+111]=`F`+V;for(var V=65;V<=90;V++)z[V]=String.fromCharCode(V+32),B[V]=String.fromCharCode(V);for(var H in z)B.hasOwnProperty(H)||(B[H]=z[H]);function Ce(e){var t=!(xe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Se&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?B:z)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var we=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Te=typeof navigator<`u`&&/Win/.test(navigator.platform);function Ee(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))we?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function De(e){let t=Object.create(null);for(let n in e)t[Ee(n)]=e[n];return t}function U(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function Oe(e){return new h({props:{handleKeyDown:W(e)}})}function W(e){let t=De(e);return function(e,n){let r=Ce(n),i,a=t[U(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[U(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Te&&n.ctrlKey&&n.altKey)&&(i=z[n.keyCode])&&i!=r){let r=t[U(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var G=200,K=function(){};K.prototype.append=function(e){return e.length?(e=K.from(e),!this.length&&e||e.length<G&&this.leafAppend(e)||this.length<G&&e.leafPrepend(this)||this.appendInner(e)):this},K.prototype.prepend=function(e){return e.length?K.from(e).append(this):this},K.prototype.appendInner=function(e){return new Ae(this,e)},K.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?K.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},K.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},K.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},K.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},K.from=function(e){return e instanceof K?e:e&&e.length?new ke(e):K.empty};var ke=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=G)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=G)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(K);K.empty=new ke([]);var Ae=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(K),je=500,q=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new J(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new J(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new J(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>Ne&&(s=Me(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new c;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new J(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new J(i,o,l))}else r.push(new J(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new J(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>je&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new J(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(K.from(i.reverse()),a)}};q.empty=new q(K.empty,0);function Me(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var J=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},Y=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},Ne=20;function Pe(e,t,n,r){let i=n.getMeta($),a;if(i)return i.historyState;n.getMeta(Be)&&(e=new Y(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta($))return o.getMeta($).redo?new Y(e.done.addTransform(n,void 0,r,Q(t)),e.undone,Ie(n.mapping.maps),e.prevTime,e.prevComposition):new Y(e.done,e.undone.addTransform(n,void 0,r,Q(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Fe(n,e.prevRanges)),s=o?X(e.prevRanges,n.mapping):Ie(n.mapping.maps);return new Y(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,Q(t)),q.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new Y(e.done.rebased(n,a),e.undone.rebased(n,a),X(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Y(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),X(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Fe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function Ie(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function X(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function Le(e,t,n){let r=Q(t),i=$.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new Y(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta($,{redo:n,historyState:c})}var Z=!1,Re=null;function Q(e){let t=e.plugins;if(Re!=t){Z=!1,Re=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Z=!0;break}}return Z}function ze(e){return e.setMeta(Be,!0)}var $=new o(`history`),Be=new o(`closeHistory`);function Ve(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new h({key:$,state:{init(){return new Y(q.empty,q.empty,null,0,-1)},apply(t,n,r){return Pe(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?Ue:n==`historyRedo`?We:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function He(e,t){return(n,r)=>{let i=$.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=Le(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var Ue=He(!1,!0),We=He(!0,!0);function Ge(e){return e.getMeta($)!=null}export{v as A,N as C,ne as D,ve as E,te as O,he as S,ye as T,le as _,Ue as a,C as b,be as c,b as d,ce as f,se as g,ae as h,We as i,ee as k,fe as l,ie as m,Ve as n,W as o,E as p,Ge as r,Oe as s,ze as t,de as u,k as v,M as w,oe as x,ue as y};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,c as n,i as r,o as i,s as a,t as o,v as s}from"./react-DztDSW4P.js";import{$ as c,B as l,Et as u,G as d,H as f,J as p,K as m,Q as h,R as g,U as _,V as v,W as y,X as b,Y as x,Z as S,_t as C,a as ee,at as w,dt as T,gt as E,i as te,lt as D,n as O,nt as k,o as ne,ot as A,pt as j,q as M,r as re,rt as N,t as ie,tt as P,yt as ae,z as oe}from"./button-Chk675Xu.js";import{o as se}from"./snapshots-C9KV-Y2_.js";import{t as ce}from"./jsx-runtime-DePvh3-m.js";import{t as F}from"./createLucideIcon-CPS-TrJJ.js";import{n as le,t as ue}from"./progress-CPEbDOoN.js";import{B as de,D as fe,F as pe,H as me,I as he,J as ge,L as _e,N as ve,P as ye,R as be,S as xe,V as Se,Y as Ce,a as we,c as Te,g as Ee,l as De,lt as Oe,m as ke,mt as I,n as L,o as Ae,s as R,st as je,u as Me,v as Ne,z as Pe}from"./index-C-i_iuxN.js";var Fe=F(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ie=F(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Le=F(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Re=F(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),z=F(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),ze=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Be=F(`share`,[[`path`,{d:`M12 2v13`,key:`1km8f5`}],[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}]]),B=e(s(),1),V=ce(),Ve=Object.defineProperty,H=(e,t)=>Ve(e,`name`,{value:t,configurable:!0}),He=`Checkbox`,[Ue,We]=A(He),[Ge,Ke]=Ue(He);function qe(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=N({prop:n,defaultProp:i??!1,onChange:c,caller:He}),[m,h]=B.useState(null),[g,_]=B.useState(null),v=B.useRef(!1),[y,b]=B.useReducer(e=>e+1,0),x=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!U(i)&&i,isFormControl:x,bubbleInput:g,setBubbleInput:_};return(0,V.jsx)(Ge,{scope:t,...S,children:tt(d)?d(S):r})}H(qe,`CheckboxProvider`);var Je=`CheckboxTrigger`,Ye=B.forwardRef(H(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:p,isFormControl:m,bubbleInput:h}=Ke(Je,e),g=j(i,u),_=B.useRef(c);return B.useEffect(()=>{let e=a?.form;if(e){let t=H(()=>d(_.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,V.jsx)(D.button,{type:`button`,role:`checkbox`,"aria-checked":U(c)?`mixed`:c,"aria-required":l,"data-state":nt(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:w(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:w(n,e=>{p(),d(e=>U(e)?!0:!e),h&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),Xe=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,V.jsx)(qe,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ye,{...d,ref:t,__scopeCheckbox:n}),e&&(0,V.jsx)(et,{__scopeCheckbox:n})]})})},`Checkbox`)),Ze=`CheckboxIndicator`,Qe=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Ke(Ze,n);return(0,V.jsx)(k,{present:r||U(a.checked)||a.checked===!0,children:(0,V.jsx)(D.span,{"data-state":nt(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),$e=`CheckboxBubbleInput`,et=B.forwardRef(H(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Ke($e,e),_=j(r,h),v=g(i),y=B.useRef(!1),b=B.useRef(s),x=B.useRef(o);B.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==x.current;x.current=o;let i=b.current!==s;b.current=s;let c=!(r&&a.current);if(i&&n){y.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=U(s),n.call(e,!U(s)&&s),e.dispatchEvent(t),y.current=!1}},[m,s,a,o]);let S=B.useRef(!U(s)&&s);return(0,V.jsx)(D.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??S.current,required:l,disabled:u,name:d,value:f,form:p,...n,tabIndex:-1,ref:_,onClick:w(t,e=>{y.current&&e.stopPropagation()}),style:{...n.style,...v,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function tt(e){return typeof e==`function`}H(tt,`isFunction`);function U(e){return e===`indeterminate`}H(U,`isIndeterminate`);function nt(e){return U(e)?`indeterminate`:e?`checked`:`unchecked`}H(nt,`getState`);var rt=Object.defineProperty,W=(e,t)=>rt(e,`name`,{value:t,configurable:!0}),it=`ContextMenu`,[at,ot]=A(it,[me]),G=me(),[st,ct]=at(it),lt=W(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=B.useRef(!1),[c,l]=N({prop:i,defaultProp:!1,onChange:r,caller:it}),u=G(t);return(0,V.jsx)(st,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,V.jsx)(ve,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),ut=`ContextMenuTrigger`,dt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=ct(ut,n),o=G(n),[s,c]=B.useState({x:0,y:0}),l=B.useMemo(()=>({current:{getBoundingClientRect:W(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=B.useRef(0),d=B.useCallback(()=>window.clearTimeout(u.current),[]),f=W(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return B.useEffect(()=>d,[d]),B.useEffect(()=>void(r&&d()),[r,d]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ye,{...o,virtualRef:l}),(0,V.jsx)(D.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:w(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:w(e.onPointerDown,K(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:w(e.onPointerMove,K(d)),onPointerCancel:r?e.onPointerCancel:w(e.onPointerCancel,K(d)),onPointerUp:r?e.onPointerUp:w(e.onPointerUp,K(d))})]})},`ContextMenuTrigger`)),ft=W(e=>{let{__scopeContextMenu:t,...n}=e,r=G(t);return(0,V.jsx)(_e,{...r,...n})},`ContextMenuPortal`),pt=`ContextMenuContent`,mt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=ct(pt,n),a=G(n),o=B.useRef(!1);return(0,V.jsx)(pe,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),ht=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(he,{...i,...r,ref:t})},`ContextMenuItem`)),gt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(be,{...i,...r,ref:t})},`ContextMenuSeparator`)),_t=`ContextMenuSub`,vt=W(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=G(t),[s,c]=N({prop:i,defaultProp:a??!1,onChange:r,caller:_t});return(0,V.jsx)(Pe,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),yt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(Se,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),bt=B.forwardRef(W(function(e,t){let{__scopeContextMenu:n,...r}=e,i=G(n);return(0,V.jsx)(de,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function K(e){return t=>t.pointerType===`mouse`?void 0:e(t)}W(K,`whenTouchOrPen`);var xt=Object.defineProperty,q=(e,t)=>xt(e,`name`,{value:t,configurable:!0}),St=`Popover`,[Ct,wt]=A(St,[ne]),J=ne(),[Tt,Y]=Ct(St),Et=q(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=J(t),c=B.useRef(null),[l,u]=B.useState(!1),[d,f]=B.useState(0),[p,m]=B.useState(0),[h,g]=N({prop:r,defaultProp:i??!1,onChange:a,caller:St});return(0,V.jsx)(O,{...s,children:(0,V.jsx)(Tt,{scope:t,contentId:P(),titleId:P(),descriptionId:P(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:h,onOpenChange:g,onOpenToggle:B.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Dt=`PopoverAnchor`,Ot=B.forwardRef(q(function(e,t){let{__scopePopover:n,...r}=e,i=Y(Dt,n),a=J(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,V.jsx)(re,{...a,...r,ref:t})},`PopoverAnchor`)),kt=`PopoverTrigger`,At=B.forwardRef(q(function(e,t){let{__scopePopover:n,...r}=e,i=Y(kt,n),a=J(n),o=j(t,i.triggerRef),s=(0,V.jsx)(D.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Vt(i.open),...r,ref:o,onClick:w(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,V.jsx)(re,{asChild:!0,...a,children:s})},`PopoverTrigger`)),jt=`PopoverPortal`,[Mt,Nt]=Ct(jt,{forceMount:void 0}),Pt=q(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Y(jt,t);return(0,V.jsx)(Mt,{scope:t,forceMount:n,children:(0,V.jsx)(k,{present:n||a.open,children:(0,V.jsx)(p,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),X=`PopoverContent`,Ft=B.forwardRef(q(function(e,t){let n=Nt(X,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Y(X,e.__scopePopover);return(0,V.jsx)(k,{present:r||a.open,children:a.modal?(0,V.jsx)(Lt,{...i,ref:t}):(0,V.jsx)(Rt,{...i,ref:t})})},`PopoverContent`)),It=T(`PopoverContent.RemoveScroll`),Lt=B.forwardRef(q(function(e,t){let n=Y(X,e.__scopePopover),r=B.useRef(null),i=j(t,r),a=B.useRef(!1),{nodes:o,registry:s}=h();return B.useEffect(()=>{let e=r.current;if(e)return d(e)},[]),(0,V.jsx)(m,{as:It,allowPinchZoom:!0,shards:B.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,V.jsx)(zt,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:w(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:w(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Rt=B.forwardRef(q(function(e,t){let n=Y(X,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(zt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),zt=B.forwardRef(q(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,"aria-describedby":f,branchNodes:p,branchRegistry:m,...h}=e,g=Y(X,n),_=J(n),[v,y]=B.useState(null),C=j(t,y);return S(v),M(),(0,V.jsx)(b,{registry:m,children:(0,V.jsx)(x,{asChild:!0,loop:!0,trapped:r,branches:p,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,V.jsx)(c,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,V.jsx)(ee,{"data-state":Vt(g.open),role:`dialog`,id:g.contentId,"aria-labelledby":g.titlePresent?g.titleId:void 0,"aria-describedby":g.descriptionPresent?Ht(f,g.descriptionId):f,..._,...h,ref:C,style:{...h.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`)),Bt=B.forwardRef(q(function(e,t){let{__scopePopover:n,...r}=e,i=J(n);return(0,V.jsx)(te,{...i,...r,ref:t})},`PopoverArrow`));function Vt(e){return e?`open`:`closed`}q(Vt,`getState`);function Ht(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}q(Ht,`concatAriaDescribedby`);var Z=ae({en:{saved:{saved:`Saved`,saving:`Saving…`,unsaved:`Not saved yet`,error:`Not saved`},agentDoing:{editing:e=>`${e} is editing`,looking:e=>`${e} is looking`},follow:e=>`Follow ${e}`,unfollow:e=>`Stop following ${e}`,markUp:`Mark up`,markUpHint:`Mark up what is on show, and AI makes the changes`,moreTools:`More`,export:`Export`,share:`Share`,exported:`Exported`,exportFailed:`Export failed`,format:`Format`,versions:`Languages`,include:`Include`,onShow:`On show`,all:e=>`All ${String(e)} languages`,choose:`Choose…`,chosen:e=>`${String(e)} chosen`,back:`Back`,checking:`Checking…`,blocked:e=>e===1?`1 must-fix problem stops the export`:`${String(e)} must-fix problems stop the export`,start:`Export`,queued:`Waiting`,queuedAhead:e=>`Waiting, ${String(e)} ahead`,running:e=>`Exporting ${String(e)}%`,cancel:`Cancel`,retry:`Try again`,failedHelp:e=>`Try again, or ask ${e} what went wrong.`,partial:`Some files could not be made.`,startFailed:`The export did not start`,nVersions:e=>`${String(e)} versions`,show:`Show in folder`,download:`Download`,option:{pptx:{label:`Slides`,values:{native:`Editable`,picture:`Pictures`}},steps:{label:`Each animation step`},scale:{label:`Size`}},type:{mov:`MOV (ProRes)`,srt:`Captions`,cover:`Cover image`,pptx:`PowerPoint`,zip:`ZIP (each board as a PNG)`}},"zh-cn":{saved:{saved:`已保存`,saving:`正在保存…`,unsaved:`尚未保存`,error:`没能保存`},agentDoing:{editing:e=>`${e} 正在编辑`,looking:e=>`${e} 正在查看`},follow:e=>`跟随 ${e}`,unfollow:e=>`停止跟随 ${e}`,markUp:`批改`,markUpHint:`在画面上批改,AI 照着改`,moreTools:`更多`,export:`导出`,share:`分享`,exported:`已导出`,exportFailed:`导出失败`,format:`格式`,versions:`语言`,include:`附带`,onShow:`当前`,all:e=>`全部 ${String(e)} 种语言`,choose:`选择…`,chosen:e=>`已选 ${String(e)} 个`,back:`返回`,checking:`检查中…`,blocked:e=>`有 ${String(e)} 个必修问题,暂时不能导出`,start:`导出`,queued:`排队中`,queuedAhead:e=>`排队中,前面还有 ${String(e)} 个`,running:e=>`导出中 ${String(e)}%`,cancel:`取消`,retry:`重试`,failedHelp:e=>`请重试,或让 ${e} 看看哪里出了问题。`,partial:`部分文件没能生成。`,startFailed:`导出没有开始`,nVersions:e=>`${String(e)} 个版本`,show:`在文件夹中显示`,download:`下载`,option:{pptx:{label:`幻灯片`,values:{native:`可编辑`,picture:`图片`}},steps:{label:`每个动画步骤`},scale:{label:`尺寸`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面图`,pptx:`PowerPoint`,zip:`ZIP(每个画板一张 PNG)`}},"zh-tw":{saved:{saved:`已儲存`,saving:`正在儲存…`,unsaved:`尚未儲存`,error:`沒能儲存`},agentDoing:{editing:e=>`${e} 正在編輯`,looking:e=>`${e} 正在查看`},follow:e=>`跟隨 ${e}`,unfollow:e=>`停止跟隨 ${e}`,markUp:`批改`,markUpHint:`在畫面上批改,AI 照著改`,moreTools:`更多`,export:`匯出`,share:`分享`,exported:`已匯出`,exportFailed:`匯出失敗`,format:`格式`,versions:`語言`,include:`附帶`,onShow:`目前`,all:e=>`全部 ${String(e)} 種語言`,choose:`選擇…`,chosen:e=>`已選 ${String(e)} 個`,back:`返回`,checking:`檢查中…`,blocked:e=>`有 ${String(e)} 個必須修正的問題,暫時無法匯出`,start:`匯出`,queued:`排隊中`,queuedAhead:e=>`排隊中,前面還有 ${String(e)} 個`,running:e=>`匯出中 ${String(e)}%`,cancel:`取消`,retry:`重試`,failedHelp:e=>`請重試,或讓 ${e} 看看哪裡出了問題。`,partial:`部分檔案沒能產生。`,startFailed:`匯出沒有開始`,nVersions:e=>`${String(e)} 個版本`,show:`在資料夾中顯示`,download:`下載`,option:{pptx:{label:`投影片`,values:{native:`可編輯`,picture:`圖片`}},steps:{label:`每個動畫步驟`},scale:{label:`尺寸`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面圖`,pptx:`PowerPoint`,zip:`ZIP(每個畫板一張 PNG)`}},ja:{saved:{saved:`保存済み`,saving:`保存中…`,unsaved:`未保存`,error:`保存できませんでした`},agentDoing:{editing:e=>`${e}が編集中`,looking:e=>`${e}が表示中`},follow:e=>`${e}をフォロー`,unfollow:e=>`${e}のフォローをやめる`,markUp:`赤入れ`,markUpHint:`画面に赤を入れると、AI が直します`,moreTools:`その他`,export:`書き出し`,share:`共有`,exported:`書き出し済み`,exportFailed:`書き出しに失敗`,format:`形式`,versions:`言語`,include:`追加`,onShow:`表示中`,all:e=>`全 ${String(e)} 言語`,choose:`選択…`,chosen:e=>`${String(e)} 件選択`,back:`戻る`,checking:`チェック中…`,blocked:e=>`要修正の問題が ${String(e)} 件あるため書き出せません`,start:`書き出す`,queued:`待機中`,queuedAhead:e=>`待機中、前に ${String(e)} 件`,running:e=>`書き出し中 ${String(e)}%`,cancel:`キャンセル`,retry:`再試行`,failedHelp:e=>`もう一度試すか、${e} に原因を確認してください。`,partial:`一部のファイルを作成できませんでした。`,startFailed:`書き出しを開始できませんでした`,nVersions:e=>`${String(e)} 個のバージョン`,show:`フォルダに表示`,download:`ダウンロード`,option:{pptx:{label:`スライド`,values:{native:`編集可能`,picture:`画像`}},steps:{label:`アニメーションの各ステップ`},scale:{label:`サイズ`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`カバー画像`,pptx:`PowerPoint`,zip:`ZIP(各ボードを PNG で)`}},ko:{saved:{saved:`저장됨`,saving:`저장 중…`,unsaved:`아직 저장되지 않음`,error:`저장되지 않음`},agentDoing:{editing:e=>`${e} 편집 중`,looking:e=>`${e} 보는 중`},follow:e=>`${e} 따라가기`,unfollow:e=>`${e} 따라가기 중지`,markUp:`첨삭`,markUpHint:`화면에 첨삭하면 AI가 고쳐 줍니다`,moreTools:`더보기`,export:`내보내기`,share:`공유`,exported:`내보냄`,exportFailed:`내보내기 실패`,format:`형식`,versions:`언어`,include:`포함`,onShow:`현재`,all:e=>`${String(e)}개 언어 모두`,choose:`선택…`,chosen:e=>`${String(e)}개 선택`,back:`뒤로`,checking:`확인 중…`,blocked:e=>`수정이 필요한 문제 ${String(e)}개 때문에 내보낼 수 없습니다`,start:`내보내기`,queued:`대기 중`,queuedAhead:e=>`대기 중, 앞에 ${String(e)}개`,running:e=>`내보내는 중 ${String(e)}%`,cancel:`취소`,retry:`다시 시도`,failedHelp:e=>`다시 시도하거나 ${e}에게 원인을 물어보세요.`,partial:`일부 파일을 만들지 못했습니다.`,startFailed:`내보내기를 시작하지 못했습니다`,nVersions:e=>`버전 ${String(e)}개`,show:`폴더에서 보기`,download:`다운로드`,option:{pptx:{label:`슬라이드`,values:{native:`편집 가능`,picture:`이미지`}},steps:{label:`애니메이션 단계별로`},scale:{label:`크기`}},type:{mov:`MOV (ProRes)`,srt:`자막`,cover:`표지 이미지`,pptx:`PowerPoint`,zip:`ZIP (보드마다 PNG)`}},es:{saved:{saved:`Guardado`,saving:`Guardando…`,unsaved:`Aún sin guardar`,error:`No guardado`},agentDoing:{editing:e=>`${e} está editando`,looking:e=>`${e} está mirando`},follow:e=>`Seguir a ${e}`,unfollow:e=>`Dejar de seguir a ${e}`,markUp:`Corregir`,markUpHint:`Corrige lo que ves y la IA hace los cambios`,moreTools:`Más`,export:`Exportar`,share:`Compartir`,exported:`Exportado`,exportFailed:`Error al exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Actual`,all:e=>`Los ${String(e)} idiomas`,choose:`Elegir…`,chosen:e=>`${String(e)} elegidos`,back:`Atrás`,checking:`Comprobando…`,blocked:e=>`${String(e)} problemas obligatorios detienen la exportación`,start:`Exportar`,queued:`En espera`,queuedAhead:e=>`En espera, ${String(e)} delante`,running:e=>`Exportando ${String(e)} %`,cancel:`Cancelar`,retry:`Reintentar`,failedHelp:e=>`Reinténtalo o pregunta a ${e} qué ha fallado.`,partial:`No se pudieron crear algunos archivos.`,startFailed:`La exportación no empezó`,nVersions:e=>`${String(e)} versiones`,show:`Mostrar en la carpeta`,download:`Descargar`,option:{pptx:{label:`Diapositivas`,values:{native:`Editables`,picture:`Imágenes`}},steps:{label:`Cada paso de animación`},scale:{label:`Tamaño`}},type:{mov:`MOV (ProRes)`,srt:`Subtítulos`,cover:`Imagen de portada`,pptx:`PowerPoint`,zip:`ZIP (cada mesa de trabajo en PNG)`}},fr:{saved:{saved:`Enregistré`,saving:`Enregistrement…`,unsaved:`Pas encore enregistré`,error:`Non enregistré`},agentDoing:{editing:e=>`${e} modifie`,looking:e=>`${e} regarde`},follow:e=>`Suivre ${e}`,unfollow:e=>`Ne plus suivre ${e}`,markUp:`Annoter`,markUpHint:`Annotez ce qui est affiché, et l'IA fait les changements`,moreTools:`Plus`,export:`Exporter`,share:`Partager`,exported:`Exporté`,exportFailed:`Échec de l’export`,format:`Format`,versions:`Langues`,include:`Inclure`,onShow:`Affichée`,all:e=>`Les ${String(e)} langues`,choose:`Choisir…`,chosen:e=>`${String(e)} choisies`,back:`Retour`,checking:`Vérification…`,blocked:e=>`${String(e)} problèmes à corriger bloquent l’export`,start:`Exporter`,queued:`En attente`,queuedAhead:e=>`En attente, ${String(e)} avant celui-ci`,running:e=>`Export ${String(e)}\u00a0%`,cancel:`Annuler`,retry:`Réessayer`,failedHelp:e=>`Réessayez ou demandez à ${e} ce qui n’a pas marché.`,partial:`Certains fichiers n’ont pas pu être créés.`,startFailed:`L’export n’a pas démarré`,nVersions:e=>`${String(e)} versions`,show:`Afficher dans le dossier`,download:`Télécharger`,option:{pptx:{label:`Diapositives`,values:{native:`Modifiables`,picture:`Images`}},steps:{label:`Chaque étape d'animation`},scale:{label:`Taille`}},type:{mov:`MOV (ProRes)`,srt:`Sous-titres`,cover:`Image de couverture`,pptx:`PowerPoint`,zip:`ZIP (chaque plan de travail en PNG)`}},de:{saved:{saved:`Gespeichert`,saving:`Wird gespeichert…`,unsaved:`Noch nicht gespeichert`,error:`Nicht gespeichert`},agentDoing:{editing:e=>`${e} bearbeitet`,looking:e=>`${e} schaut sich um`},follow:e=>`${e} folgen`,unfollow:e=>`${e} nicht mehr folgen`,markUp:`Korrigieren`,markUpHint:`Korrigieren Sie, was zu sehen ist, und die KI setzt es um`,moreTools:`Mehr`,export:`Exportieren`,share:`Teilen`,exported:`Exportiert`,exportFailed:`Export fehlgeschlagen`,format:`Format`,versions:`Sprachen`,include:`Dazu`,onShow:`Aktuell`,all:e=>`Alle ${String(e)} Sprachen`,choose:`Auswählen…`,chosen:e=>`${String(e)} ausgewählt`,back:`Zurück`,checking:`Wird geprüft…`,blocked:e=>`${String(e)} Probleme verhindern den Export`,start:`Exportieren`,queued:`Wartet`,queuedAhead:e=>`Wartet, ${String(e)} davor`,running:e=>`Export läuft: ${String(e)} %`,cancel:`Abbrechen`,retry:`Erneut versuchen`,failedHelp:e=>`Versuche es erneut oder frage ${e}, was schiefgelaufen ist.`,partial:`Einige Dateien konnten nicht erstellt werden.`,startFailed:`Der Export ist nicht gestartet`,nVersions:e=>`${String(e)} Versionen`,show:`Im Ordner zeigen`,download:`Herunterladen`,option:{pptx:{label:`Folien`,values:{native:`Bearbeitbar`,picture:`Bilder`}},steps:{label:`Jeden Animationsschritt`},scale:{label:`Größe`}},type:{mov:`MOV (ProRes)`,srt:`Untertitel`,cover:`Titelbild`,pptx:`PowerPoint`,zip:`ZIP (jede Zeichenfläche als PNG)`}},pt:{saved:{saved:`Salvo`,saving:`Salvando…`,unsaved:`Ainda não salvo`,error:`Não salvo`},agentDoing:{editing:e=>`${e} está editando`,looking:e=>`${e} está olhando`},follow:e=>`Seguir ${e}`,unfollow:e=>`Parar de seguir ${e}`,markUp:`Corrigir`,markUpHint:`Corrija o que vê e a IA faz as alterações`,moreTools:`Mais`,export:`Exportar`,share:`Compartilhar`,exported:`Exportado`,exportFailed:`Falha ao exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Atual`,all:e=>`Todos os ${String(e)} idiomas`,choose:`Escolher…`,chosen:e=>`${String(e)} escolhidos`,back:`Voltar`,checking:`Verificando…`,blocked:e=>`${String(e)} problemas obrigatórios impedem a exportação`,start:`Exportar`,queued:`Aguardando`,queuedAhead:e=>`Aguardando, ${String(e)} na frente`,running:e=>`Exportando ${String(e)}%`,cancel:`Cancelar`,retry:`Tentar novamente`,failedHelp:e=>`Tente novamente ou pergunte a ${e} o que deu errado.`,partial:`Não foi possível criar alguns arquivos.`,startFailed:`A exportação não começou`,nVersions:e=>`${String(e)} versões`,show:`Mostrar na pasta`,download:`Baixar`,option:{pptx:{label:`Slides`,values:{native:`Editáveis`,picture:`Imagens`}},steps:{label:`Cada etapa da animação`},scale:{label:`Tamanho`}},type:{mov:`MOV (ProRes)`,srt:`Legendas`,cover:`Imagem de capa`,pptx:`PowerPoint`,zip:`ZIP (cada prancheta em PNG)`}}});function Ut(){let e=a(),t=Z.of(e?.locale);return e=>e.doing===void 0?e.name:t.agentDoing[e.doing](e.name)}function Wt(){let e=a(),n=Ut(),{agent:r,following:i,follow:s,unfollow:c}=t();if(r?.doing===void 0)return null;let l=Z.of(e?.locale);return(0,V.jsxs)(L,{[o]:``,"data-testid":`agent-here`,"data-doing":r.doing,"aria-pressed":i,title:i?l.unfollow(r.name):l.follow(r.name),className:`text-agent-text hover:text-agent-text aria-pressed:text-agent-text`,onClick:()=>{i?c():s()},children:[(0,V.jsx)(`span`,{"aria-hidden":!0,className:E(`size-2 flex-none rounded-full`,i?`bg-agent motion-safe:animate-pulse`:`border-agent border`)}),n(r)]})}function Gt(){let e=i(),{agent:r,following:a,follow:o,unfollow:s}=t(),c=r?.doing,l=r?.name;return(0,B.useEffect)(()=>{e[`agent/here`]({...c===void 0||l===void 0?{}:{agent:{name:l,doing:c}},following:a}).catch(()=>void 0)},[e,c,l,a]),n(`editor/command`,({command:e})=>{e===`follow`?o():e===`unfollow`&&s()}),null}var Q=16,Kt=8;function qt(){return(0,V.jsx)(Bt,{asChild:!0,width:Q,height:Kt,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 ${String(Q)} ${String(Kt)}`,"aria-hidden":!0,className:`-mt-px block overflow-visible`,children:[(0,V.jsx)(`path`,{d:`M0 -1 L${String(Q/2)} 7 L${String(Q)} -1 Z`,className:`fill-popover`}),(0,V.jsx)(`path`,{d:`M0 0 L${String(Q/2)} 7 L${String(Q)} 0`,className:`fill-none stroke-border`})]})})}function Jt({className:e,...t}){return(0,V.jsx)(Xe,{"data-slot":`checkbox`,className:E(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary`,e),...t,children:(0,V.jsx)(Qe,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,V.jsx)(Oe,{className:`size-3.5`})})})}function Yt({...e}){return(0,V.jsx)(Et,{"data-slot":`popover`,...e})}function Xt({...e}){return(0,V.jsx)(At,{"data-slot":`popover-trigger`,...e})}function Zt({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,V.jsx)(Pt,{children:(0,V.jsx)(Ft,{"data-slot":`popover-content`,align:t,sideOffset:n,className:E(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function Qt({...e}){return(0,V.jsx)(Ot,{"data-slot":`popover-anchor`,...e})}function $t({...e}){return(0,V.jsx)(oe,{"data-slot":`sheet`,...e})}function en({...e}){return(0,V.jsx)(_,{"data-slot":`sheet-portal`,...e})}function tn({className:e,...t}){return(0,V.jsx)(f,{"data-slot":`sheet-overlay`,className:E(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function nn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,V.jsxs)(en,{children:[(0,V.jsx)(tn,{}),(0,V.jsxs)(v,{"data-slot":`sheet-content`,className:E(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,V.jsxs)(l,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,V.jsx)(C,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function rn({className:e,...t}){return(0,V.jsx)(y,{"data-slot":`sheet-title`,className:E(`font-semibold text-foreground`,e),...t})}var an=5;function on(e,t){let n=new Set;return e.filter(e=>e.item===t&&e.state!==`cancelled`).reverse().filter(e=>{if(e.state!==`done`||e.files.length===0)return!0;let t=[...e.files].sort().join(`
|
|
2
|
+
`);return!n.has(t)&&(n.add(t),!0)}).slice(0,an)}var $=e=>e.state===`queued`||e.state===`running`;function sn(e,t,n,r={}){let i=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));return $(e)&&i(e.versions,t)&&i(e.types,n)&&cn(e.options??{},r)}var cn=(e,t)=>Object.keys({...e,...t}).every(n=>e[n]===t[n]);function ln(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=n[e.name];return!e.only.includes(t)||r===void 0?[]:e.values?e.values.includes(String(r))?[[e.name,r]]:[]:r===!0?[[e.name,!0]]:[]}))}function un(e,t){return Math.max(0,e.filter($).map(e=>e.id).indexOf(t))}function dn(e,t,n,r){if(n.length!==0)return e===`all`?[...n]:e===`some`?n.filter(e=>r.includes(e)):t===void 0?[...n]:[t]}function fn(e,t){let n=e.findLast($);if(n)return n.state===`running`?{at:`running`,percent:Math.round(n.progress*100)}:{at:`queued`};let r=e[0];return r===void 0||!t.has(r.id)?{at:`idle`}:r.state===`failed`?{at:`failed`}:{at:`done`}}var pn=e=>e.slice(e.lastIndexOf(`/`)+1),mn={mp4:`MP4`,gif:`GIF`,png:`PNG`,jpeg:`JPEG`,webp:`WebP`,avif:`AVIF`,pdf:`PDF`,zip:`ZIP`,psd:`Photoshop (PSD)`,docx:`Word`,md:`Markdown`,xlsx:`Excel`,csv:`CSV`,json:`JSON`,glb:`GLB`},hn=(e,t)=>mn[t]??(t in e.type?e.type[t]:t);function gn(){let e=a(),t=Z.of(e?.locale),n=e?.item.kindInfo.exports?.names,r=e?.locale??`en`;return e=>{let i=n?.[e];return i?.[r]??i?.en??hn(t,e)}}function _n(){let[e,t]=(0,B.useState)(()=>window.matchMedia(`(max-width: 479px)`).matches);return(0,B.useEffect)(()=>{let e=window.matchMedia(`(max-width: 479px)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}},[]),e}function vn(e){let t=i(),[r,a]=(0,B.useState)([]),[o,s]=(0,B.useState)(new Set),[c,l]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let e=!0;return I(t,`export/list`,{}).then(t=>{e&&(a(t.jobs),l(t.reveal))},()=>void 0),()=>{e=!1}},[t]),n(`export/changed`,({job:t})=>{a(e=>{let n=e.findIndex(e=>e.id===t.id);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}),!$(t)&&!e&&s(e=>new Set(e).add(t.id))});let[u,d]=(0,B.useState)(e);return u!==e&&(d(e),e&&s(new Set)),{all:r,fresh:o,reveals:c}}function yn(e,t){let n=i(),r=`item-bar.export.${e}`,[a,o]=(0,B.useState)({type:t.types[0]??``,extras:[],options:{}});return(0,B.useEffect)(()=>{let e=!0;return n[`storage/get`]({key:r}).then(({value:n})=>{let r=n;if(!e||!r)return;let i=t.types.find(e=>e===r.type);i!==void 0&&o({type:i,extras:t.extras.filter(e=>r.extras?.includes(e)),options:r.options??{}})},()=>void 0),()=>{e=!1}},[n,r,t]),[a,e=>{o(e),n[`storage/set`]({key:r,value:e}).catch(()=>void 0)}]}async function bn(e,t){let{url:n}=await e[`files/url`]({path:t}),r=document.createElement(`a`);r.href=n,r.download=pn(t),r.click()}async function xn(e,t,n){n&&await I(e,`export/reveal`,{path:t}).then(()=>!0,()=>!1)||await bn(e,t)}function Sn({job:e,versions:t,ahead:n,words:r,reveals:o}){let s=gn(),c=i(),l=a()?.agent?.name??`AllyHub`,u=Math.round(e.progress*100),d=o?Re:Ie,f=o?r.show:r.download,p=e.versions.length===0?void 0:e.versions.length>2?r.nVersions(e.versions.length):e.versions.map(e=>t.find(t=>t.key===e)?.label??e).join(`, `),m=[e.types.map(e=>s(e)).join(`, `),...t.length>1&&p!==void 0?[p]:[]].join(` · `);return(0,V.jsxs)(`div`,{className:`border-t py-2 pr-2 pl-4`,"data-testid":`export-job`,"data-state":e.state,children:[$(e)&&(0,V.jsxs)(`div`,{className:`pr-2`,children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,children:m}),(0,V.jsx)(`span`,{className:`text-lead text-xs tabular-nums`,children:e.state===`running`?`${String(u)}%`:n>0?r.queuedAhead(n):r.queued}),(0,V.jsx)(L,{icon:!0,"aria-label":r.cancel,title:r.cancel,"data-testid":`export-cancel`,onClick:()=>{I(c,`export/cancel`,{job:e.id}).catch(()=>void 0)},children:(0,V.jsx)(C,{"aria-hidden":!0})})]}),(0,V.jsx)(ue,{value:u,className:`mt-1 h-1`})]}),e.state===`failed`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(Ce,{className:`text-destructive size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsxs)(`span`,{className:`text-dense text-destructive min-w-0 flex-1 truncate`,children:[r.exportFailed,` · `,m]}),(0,V.jsx)(L,{icon:!0,"aria-label":r.retry,title:r.retry,"data-testid":`export-retry`,onClick:()=>{I(c,`export/start`,{item:e.item,versions:e.versions,types:e.types,...e.options?{options:e.options}:{}}).catch(e=>{ge.error(r.startFailed,{description:e instanceof Error?e.message:String(e)})})},children:(0,V.jsx)(ze,{"aria-hidden":!0})})]}),(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:r.failedHelp(l)})]}),e.files.map(e=>(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,"data-testid":`export-file`,children:[(0,V.jsx)(Oe,{className:`text-success size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,title:e,children:pn(e)}),(0,V.jsx)(L,{icon:!0,"aria-label":f,title:f,"data-testid":`export-give`,onClick:()=>{xn(c,e,o)},children:(0,V.jsx)(d,{"aria-hidden":!0})})]},e)),e.state===`done`&&e.error!==void 0&&(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:r.partial})]})}function Cn({versions:e,shown:t,picked:n,onPick:r,onBack:i,words:a}){return(0,V.jsxs)(`div`,{"data-testid":`export-choose`,children:[(0,V.jsxs)(`div`,{className:`flex h-11 items-center gap-1 border-b pr-4 pl-2`,children:[(0,V.jsx)(L,{icon:!0,"aria-label":a.back,title:a.back,onClick:i,children:(0,V.jsx)(Fe,{"aria-hidden":!0})}),(0,V.jsx)(`span`,{className:`text-sm font-medium`,children:a.versions}),(0,V.jsxs)(`span`,{className:`text-lead ml-auto text-xs tabular-nums`,children:[n.length,`/`,e.length]})]}),(0,V.jsx)(`ul`,{className:`max-h-64 overflow-y-auto p-2`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsxs)(`label`,{className:`pressable flex h-8 items-center gap-2 rounded-md px-2 text-sm`,children:[(0,V.jsx)(Jt,{checked:n.includes(e.key),"data-version":e.key,onCheckedChange:t=>{r(t===!0?[...n,e.key]:n.filter(t=>t!==e.key))}}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.key===t&&(0,V.jsx)(`span`,{className:`text-lead text-xs`,children:a.onShow})]})},e.key))})]})}function wn({kind:e,offer:t,item:n,props:r,jobs:a,all:o,words:s,reveals:c,startRef:l}){let u=gn(),d=i(),f=r.versions??[],p=f.map(e=>e.key),m=f.find(e=>e.key===r.shown)?.label,h=r.unavailable??{},[g,_]=yn(e,t),[v,y]=(0,B.useState)(`shown`),[b,x]=(0,B.useState)(r.shown===void 0?[]:[r.shown]),[S,C]=(0,B.useState)(!1),[ee,w]=(0,B.useState)(!1),T=dn(v,r.shown,p,b),te=T?.length??1,D=[g.type,...g.extras.filter(e=>h[e]===void 0)],O=t.options.filter(e=>e.only.includes(g.type)),k=ln(O,g.type,g.options),ne=O.filter(e=>e.values===void 0),A=(e,t)=>{_({...g,options:{...g.options,[e]:t}})},j=r.check?.waiting===!0,M=j?0:r.check?.problems(T)??0,re=a.some(e=>sn(e,T??[],D,k)),N=async()=>{w(!0);try{await I(d,`export/start`,{item:n,...T?{versions:T}:{},types:D,...Object.keys(k).length>0?{options:k}:{}})}catch(e){if(se(e))return;ge.error(s.startFailed,{description:e instanceof Error?e.message:String(e)})}finally{w(!1)}},P=(0,V.jsxs)(we,{value:g.type,onValueChange:e=>{_({...g,type:e})},children:[(0,V.jsx)(De,{size:`sm`,"aria-label":s.format,className:`w-full min-w-0`,"data-testid":`export-format`,children:(0,V.jsx)(Me,{})}),(0,V.jsx)(Ae,{position:`popper`,align:`start`,children:t.types.map(e=>(0,V.jsx)(R,{value:e,"data-type":e,children:u(e)},e))})]}),ae=(0,V.jsx)(ie,{ref:l,size:`sm`,disabled:j||M>0||ee||te===0||re,"data-testid":`export-start`,onClick:()=>{N()},children:j?s.checking:s.start}),oe=p.length<=1&&t.extras.length===0&&O.length===0&&t.types.length>1&&r.facts===void 0&&M===0;return(0,V.jsxs)(`div`,{className:`overflow-hidden rounded-lg text-sm`,"data-testid":`export-panel`,children:[S?(0,V.jsx)(Cn,{versions:f,shown:r.shown,picked:b,onPick:x,onBack:()=>{C(!1)},words:s}):oe?(0,V.jsxs)(`div`,{className:`flex items-center gap-3 p-4`,children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.format}),(0,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:P}),ae]}):(0,V.jsxs)(V.Fragment,{children:[(t.types.length>1||p.length>1||t.extras.length+O.length>0)&&(0,V.jsxs)(`div`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] items-center gap-x-4 gap-y-2 px-4 pt-4 pb-2`,children:[t.types.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.format}),P]}),O.map(e=>e.values?(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.option[e.name]?.label}),(0,V.jsxs)(we,{value:String(g.options[e.name]??e.values[0]),onValueChange:t=>{A(e.name,t)},children:[(0,V.jsx)(De,{size:`sm`,"aria-label":s.option[e.name]?.label,className:`w-full min-w-0`,"data-testid":`export-option-${e.name}`,children:(0,V.jsx)(Me,{})}),(0,V.jsx)(Ae,{position:`popper`,align:`start`,children:e.values.map(t=>(0,V.jsx)(R,{value:t,"data-value":t,children:s.option[e.name]?.values?.[t]??t},t))})]})]},e.name):null),p.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.versions}),(0,V.jsxs)(we,{value:v,onValueChange:e=>{y(e),e===`some`&&C(!0)},children:[(0,V.jsx)(De,{size:`sm`,"aria-label":s.versions,className:`w-full min-w-0`,"data-testid":`export-scope`,children:(0,V.jsx)(Me,{})}),(0,V.jsxs)(Ae,{position:`popper`,align:`start`,children:[(0,V.jsx)(R,{value:`shown`,children:m??s.onShow}),(0,V.jsx)(R,{value:`all`,children:s.all(p.length)}),(0,V.jsx)(Te,{}),(0,V.jsx)(R,{value:`some`,onPointerUp:()=>{C(!0)},children:v===`some`?s.chosen(b.length):s.choose})]})]})]}),t.extras.length+ne.length>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead self-start`,children:s.include}),(0,V.jsxs)(`div`,{className:`grid gap-1.5`,"data-testid":`export-include`,children:[ne.map(e=>(0,V.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(Jt,{checked:g.options[e.name]===!0,"data-option":e.name,onCheckedChange:t=>{A(e.name,t===!0)}}),(0,V.jsx)(`span`,{className:`truncate`,children:s.option[e.name]?.label})]},e.name)),t.extras.map(e=>{let t=h[e];return(0,V.jsxs)(`label`,{title:t,className:E(`flex items-center gap-2`,t!==void 0&&`text-lead-soft`),children:[(0,V.jsx)(Jt,{checked:t===void 0&&g.extras.includes(e),disabled:t!==void 0,"data-type":e,onCheckedChange:t=>{_({...g,extras:t===!0?[...g.extras,e]:g.extras.filter(t=>t!==e)})}}),(0,V.jsx)(`span`,{className:`truncate`,children:u(e)})]},e)})]})]})]}),M>0&&(0,V.jsxs)(`p`,{className:`text-dense text-destructive flex items-start gap-1.5 px-4 pt-2`,"data-testid":`export-blocked`,children:[(0,V.jsx)(Ce,{className:`mt-0.5 size-3.5 flex-none`,"aria-hidden":!0}),s.blocked(M)]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-3 px-4 pt-3 pb-4`,children:[(0,V.jsx)(`span`,{className:`text-lead min-w-0 flex-1 truncate text-xs`,children:r.facts??(t.types.length===1?u(g.type):void 0)}),ae]})]}),a.length>0&&(0,V.jsx)(`div`,{className:`max-h-56 overflow-y-auto`,children:a.map(e=>(0,V.jsx)(Sn,{job:e,versions:f,ahead:un(o,e.id),words:s,reveals:c},e.id))})]})}function Tn(e){let t=/Mac|iPhone|iPad/u.test(navigator.userAgent),n=e.target;return e.code===`KeyE`&&(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.shiftKey&&!e.altKey&&!(n instanceof HTMLElement&&(n.isContentEditable||n.tagName===`INPUT`||n.tagName===`TEXTAREA`))}function En(e){let t=i(),r=a(),o=r?.commands===!0,s=r?.item.kind,c=r?.item.kindInfo.exports,l=r?.item.id,u=Z.of(r?.locale),d=_n(),f=(0,B.useRef)(null),[p,m]=(0,B.useState)(!1),{all:h,fresh:g,reveals:_}=vn(p);n(`editor/command`,({command:e,open:t})=>{e===`export`&&m(e=>t??!e)}),(0,B.useEffect)(()=>{let e=e=>{Tn(e)&&(e.preventDefault(),m(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,B.useEffect)(()=>{if(!p||d)return;let e=()=>{m(!1)};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[p,d]);let v=c!==void 0,y=l===void 0?[]:on(h,l),b=fn(y,g),x=b.at===`running`?b.percent:void 0;if((0,B.useEffect)(()=>{o&&v&&t[`export/state`]({at:b.at,...x===void 0?{}:{percent:x},open:p}).catch(()=>void 0)},[t,o,v,b.at,x,p]),s===void 0||l===void 0||c===void 0)return null;let S=b.at===`running`?`${String(b.percent)}%`:b.at===`queued`?u.queued:b.at===`done`?u.exported:b.at===`failed`?u.exportFailed:u.export,C=(0,V.jsxs)(L,{"data-testid":`export`,"data-state":b.at,"aria-pressed":p,"aria-label":b.at===`running`?u.running(b.percent):S,title:S,onClick:()=>{d&&m(!0)},children:[b.at===`running`&&(0,V.jsx)(le,{value:b.percent/100}),b.at===`queued`&&(0,V.jsx)(le,{value:0}),b.at===`done`&&(0,V.jsx)(Oe,{className:`text-success`,"aria-hidden":!0}),b.at===`failed`&&(0,V.jsx)(Ce,{className:`text-destructive`,"aria-hidden":!0}),b.at===`idle`&&(0,V.jsx)(Ie,{"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`@max-lg/item:hidden`,children:S})]}),ee=(0,V.jsx)(wn,{kind:s,offer:c,item:l,props:e,jobs:y,all:h,words:u,reveals:_,startRef:f});return d?(0,V.jsxs)(V.Fragment,{children:[!o&&C,(0,V.jsx)($t,{open:p,onOpenChange:m,children:(0,V.jsxs)(nn,{side:`bottom`,showCloseButton:!1,className:`gap-0 rounded-t-lg`,children:[(0,V.jsx)(rn,{className:`sr-only`,children:u.export}),ee]})})]}):(0,V.jsxs)(Yt,{open:p,onOpenChange:m,children:[o?(0,V.jsx)(Qt,{className:`pointer-events-none fixed top-0 right-2 size-0`}):(0,V.jsx)(Xt,{asChild:!0,children:C}),(0,V.jsxs)(Zt,{align:`end`,sideOffset:o?4:8,className:`w-80 p-0`,onOpenAutoFocus:e=>{f.current&&!f.current.disabled&&(e.preventDefault(),f.current.focus())},children:[!o&&(0,V.jsx)(qt,{}),ee]})]})}function Dn({...e}){return(0,V.jsx)(lt,{"data-slot":`context-menu`,...e})}function On({...e}){return(0,V.jsx)(dt,{"data-slot":`context-menu-trigger`,...e})}function kn({...e}){return(0,V.jsx)(vt,{"data-slot":`context-menu-sub`,...e})}function An({className:e,inset:t,children:n,...r}){return(0,V.jsxs)(yt,{"data-slot":`context-menu-sub-trigger`,"data-inset":t,className:E(`flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,V.jsx)(je,{className:`ml-auto`})]})}function jn({className:e,...t}){return(0,V.jsx)(bt,{"data-slot":`context-menu-sub-content`,className:E(`z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})}function Mn({className:e,...t}){return(0,V.jsx)(ft,{children:(0,V.jsx)(mt,{"data-slot":`context-menu-content`,className:E(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})})}function Nn({className:e,inset:t,variant:n=`default`,...r}){return(0,V.jsx)(ht,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:E(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,e),...r})}function Pn({className:e,...t}){return(0,V.jsx)(gt,{"data-slot":`context-menu-separator`,className:E(`-mx-1 my-1 h-px bg-border`,e),...t})}function Fn({className:e,...t}){return(0,V.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:E(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t})}var In=150,Ln=e=>{if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}},Rn=(e,t)=>{let n=Ln(t);setTimeout(()=>{e.begin(n)},In)};function zn(){let e=i(),t=a();if(t?.notes!==!0)return;let n=Z.of(t.locale);return{label:n.markUp,hint:n.markUpHint,begin:t=>{e[`note/begin`](t?{from:t}:{}).catch(()=>void 0)}}}function Bn(){let e=zn();return e?(0,V.jsxs)(L,{title:e.hint,"data-testid":`mark-up`,className:`text-ink`,onClick:t=>{e.begin(Ln(t))},children:[(0,V.jsx)(z,{"aria-hidden":!0}),e.label]}):null}function Vn(){let e=zn();return e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(xe,{}),(0,V.jsxs)(Ne,{title:e.hint,"data-testid":`mark-up-item`,onSelect:t=>{Rn(e,t)},children:[(0,V.jsx)(z,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}function Hn(){let e=zn();return e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Pn,{}),(0,V.jsxs)(Nn,{title:e.hint,"data-testid":`mark-up-item`,onSelect:t=>{Rn(e,t)},children:[(0,V.jsx)(z,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}var Un=e=>e instanceof Element&&e.closest(`input, textarea`)!==null;function Wn(){let e=zn(),t=e!==void 0,[n,r]=(0,B.useState)();return(0,B.useEffect)(()=>{if(!t)return;let e=e=>{e.defaultPrevented||Un(e.target)||(e.preventDefault(),r({x:e.clientX,y:e.clientY}))};return document.addEventListener(`contextmenu`,e),()=>{document.removeEventListener(`contextmenu`,e)}},[t]),!e||!n?null:(0,V.jsxs)(ke,{open:!0,onOpenChange:e=>{e||r(void 0)},children:[(0,V.jsx)(fe,{asChild:!0,children:(0,V.jsx)(`span`,{style:{position:`fixed`,left:n.x,top:n.y,width:0,height:0}})}),(0,V.jsx)(Ee,{align:`start`,className:`text-xs`,children:(0,V.jsxs)(Ne,{title:e.hint,"data-testid":`mark-up-item`,onSelect:t=>{Rn(e,t)},children:[(0,V.jsx)(z,{className:`size-3.5`,"aria-hidden":!0}),e.label]})})]})}function Gn(){let e=a();return e?.share===!0&&e.viewer!==!0&&e.item.kindInfo.share===!0}function Kn(){let e=i(),t=a();if(!Gn())return null;let n=Z.of(t?.locale);return(0,V.jsxs)(L,{"data-testid":`share`,"aria-label":n.share,title:n.share,onClick:()=>{e[`share/begin`]({}).catch(()=>void 0)},children:[(0,V.jsx)(Be,{"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`@max-lg/item:hidden`,children:n.share})]})}var qn=800;function Jn(e){let t=e?.state===`saving`||e?.state===`unsaved`,[n,r]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>{r(!0)},qn);return()=>{clearTimeout(e),r(!1)}},[t]),e!==void 0&&e.state!==`saved`&&(!t||n)}function Yn({saved:e,words:t}){return(0,V.jsx)(`span`,{"data-testid":`save-state`,"data-state":e.state,title:e.message,className:E(`px-1 text-xs`,e.state===`error`?`text-destructive`:`text-lead`),children:t.saved[e.state]})}function Xn({start:e,saved:t,exports:n}){let i=a(),o=Gn(),s=Z.of(i?.locale),c=Jn(t),l=r()?.doing!==void 0;if(i?.viewer===!0)return e?(0,V.jsx)(`div`,{className:`bg-background flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:e}):null;if(i?.commands===!0)return(0,V.jsxs)(V.Fragment,{children:[e?(0,V.jsx)(`div`,{className:`bg-background @container/item flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:e}):null,(0,V.jsx)(Gt,{}),(0,V.jsx)(En,{...n}),(0,V.jsx)(Wn,{})]});let u=i?.item.kindInfo.exports!==void 0;return!e&&!c&&!u&&!o&&!l?(0,V.jsx)(Wn,{}):(0,V.jsxs)(`div`,{className:`bg-background @container/item flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:[e,(0,V.jsxs)(`div`,{className:`ml-auto flex flex-none items-center gap-1`,children:[(0,V.jsx)(Wt,{}),t&&c&&(0,V.jsx)(Yn,{saved:t,words:s}),(0,V.jsx)(Bn,{}),(0,V.jsx)(En,{...n}),(0,V.jsx)(Kn,{})]}),(0,V.jsx)(Wn,{})]})}var Zn=e(u(),1),Qn=`group-data-[compact]/bar:hidden`,$n=32,er={compact:!1,out:[],firsts:[],order:{}},tr=(0,B.createContext)(null),nr=(e,t)=>e.compact===t.compact&&e.out.join(`
|
|
3
|
+
`)===t.out.join(`
|
|
4
|
+
`)&&e.firsts.join(`
|
|
5
|
+
`)===t.firsts.join(`
|
|
6
|
+
`)&&JSON.stringify(e.order)===JSON.stringify(t.order);function rr({children:e,id:t,priority:n=0,keep:r=!1,ruled:i=!0}){let a=(0,B.useContext)(tr),o=(0,B.useId)(),s=t??o,c=a?.fit.firsts.includes(s)??!1,l=a?.touch;(0,B.useLayoutEffect)(()=>(l?.(),l),[l]);let u=(0,V.jsx)(`span`,{className:E(`relative flex h-8 flex-none items-center gap-0.5`,!c&&`pl-2`,!c&&i&&`before:bg-rule before:absolute before:top-2 before:bottom-2 before:left-0.75 before:w-px`),children:e});if(!a)return u;let d=a.fit.out.includes(s);return(0,V.jsx)(`span`,{"data-group":s,"data-priority":n,"data-keep":r?``:void 0,className:d?`hidden`:`flex flex-none`,children:d?a.panel?(0,Zn.createPortal)((0,V.jsx)(`span`,{"data-group":s,"data-away":``,className:`flex flex-none`,style:{order:a.fit.order[s]??0},children:u}),a.panel):null:u})}function ir(){return(0,V.jsx)(`span`,{"data-spacer":``,className:`min-w-0 flex-1`})}function ar({testid:e,className:t,children:n,...r}){let i=a(),o=Z.of(i?.locale),s=(0,B.useRef)(null),[c,l]=(0,B.useState)(null),u=(0,B.useRef)(new Map),[d,f]=(0,B.useState)(er),[p,m]=(0,B.useState)(!1),[h,g]=(0,B.useState)(0),_=(0,B.useCallback)(()=>{g(e=>e+1)},[]),v=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{let e=new ResizeObserver(()=>{g(e=>e+1)});return v.current=e,s.current&&e.observe(s.current),()=>{e.disconnect(),v.current=null}},[]),(0,B.useLayoutEffect)(()=>{let e=s.current;if(!e)return;let t=[],n=new Set,r=!0;for(let i of e.querySelectorAll(`[data-group]:not([data-away]), [data-spacer]`)){if(i.dataset.spacer!==void 0){r=!0;continue}let e=i.dataset.group??``;if(t.push({key:e,priority:Number(i.dataset.priority??0),keep:i.dataset.keep!==void 0,at:t.length}),d.out.includes(e))continue;r&&n.add(e),r=!1,v.current?.observe(i);let a=i.getBoundingClientRect().width;a>0&&u.current.set(`${String(d.compact)}:${e}`,a)}for(let e of c?.querySelectorAll(`[data-away]`)??[]){let t=e.getBoundingClientRect().width;t>0&&u.current.set(`${String(d.compact)}:${e.dataset.group??``}`,t)}let i=e.clientWidth,a=(e,t)=>u.current.get(`${String(e)}:${t.key}`),o=e=>t.every(t=>a(e,t)!==void 0),l=e=>t.reduce((t,n)=>t+(a(e,n)??0),0),h=!1,g=[];if(!o(!1)||l(!1)<=i)h=!1;else if(!o(!0)||l(!0)<=i)h=!0;else{h=!0;let e=t.filter(e=>!e.keep).sort((e,t)=>e.priority-t.priority||t.at-e.at),n=new Set,r=l(!0)+$n;for(let t of e){if(r<=i)break;n.add(t.key),r-=a(!0,t)??0}g=t.filter(e=>n.has(e.key)).map(e=>e.key)}let _={compact:h,out:g,firsts:[...n],order:Object.fromEntries(t.map(e=>[e.key,e.at]))};nr(_,d)||f(_),g.length===0&&p&&m(!1)},[d,p,h,c,n]),(0,V.jsx)(tr.Provider,{value:{fit:d,panel:p?c:null,touch:_},children:(0,V.jsxs)(`div`,{...r,ref:s,role:r.role??`toolbar`,"data-testid":e,"data-compact":d.compact?``:void 0,className:E(`group/bar relative flex h-8 min-w-0 flex-1 items-center overflow-hidden`,t),children:[n,d.out.length>0?(0,V.jsxs)(Yt,{open:p,onOpenChange:m,children:[(0,V.jsx)(Xt,{asChild:!0,children:(0,V.jsx)(L,{icon:!0,className:`ml-auto flex-none`,"aria-label":o.moreTools,title:o.moreTools,"data-testid":`${e}-more`,onMouseDown:e=>{e.preventDefault()},children:(0,V.jsx)(Le,{})})}),(0,V.jsx)(Zt,{align:`end`,collisionPadding:8,role:`toolbar`,"aria-label":o.moreTools,"data-testid":`${e}-panel`,"data-compact":d.compact?``:void 0,onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onInteractOutside:e=>{let t=e.target;t instanceof Element&&t.closest(`[data-radix-popper-content-wrapper]`)&&e.preventDefault()},className:`group/bar w-auto max-w-[calc(100vw-1rem)] overflow-hidden p-1`,children:(0,V.jsx)(`div`,{ref:l,className:`-ml-2 flex flex-wrap items-center`})})]}):null]})})}export{Be as C,Ut as S,z as T,Yt as _,Xn as a,Xt as b,Dn as c,Pn as d,Fn as f,On as g,An as h,ar as i,Mn as l,jn as m,rr as n,Hn as o,kn as p,ir as r,Vn as s,Qn as t,Nn as u,Qt as v,ze as w,Jt as x,Zt as y};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";import{a as r,d as i,o as a,s as o,u as s,v as c}from"./react-DztDSW4P.js";import{Tt as l,gt as u,wt as d,yt as f}from"./button-Chk675Xu.js";import{T as p}from"./snapshots-C9KV-Y2_.js";import{t as m}from"./session-2u9U7koW.js";import{t as h}from"./jsx-runtime-DePvh3-m.js";import{t as g}from"./createLucideIcon-CPS-TrJJ.js";import{t as _}from"./audio-lines-BFcM7G2L.js";import{S as ee,_ as v,a as te,b as ne,c as re,d as ie,f as ae,g as oe,l as se,o as ce,u as le,y as ue}from"./dist-Dp-fQMtx.js";import{c as de,l as fe,n as pe,o as me,r as he,t as ge,u as y}from"./dist-DwGhfliS.js";import{c as b,i as _e,l as x,n as ve,o as ye,r as be,t as xe}from"./syntax-Bih_jv7W.js";import{t as Se}from"./minus-oPj1GxwA.js";import{n as Ce,t as we}from"./undo-2-DQ5CBmki.js";import{t as Te}from"./trash-2-BAKAeziW.js";import{Z as Ee,et as De,mt as S,n as C,nt as w,p as Oe,q as ke,tt as T}from"./index-C-i_iuxN.js";import{t as Ae}from"./collaborator-LRd0hELn.js";import{t as je}from"./row-ClBisiBs.js";import{t as Me}from"./swatch-1c1uVn1z.js";import{A as E,F as D,L as O,M as k,R as A,S as Ne,_ as Pe,a as Fe,b as Ie,g as Le,h as j,i as Re,j as M,m as ze,n as Be,p as Ve,r as He,t as Ue,v as We,x as Ge,y as Ke,z as qe}from"./syntax-C0iPON60.js";var Je={".html":`text/html; charset=utf-8`,".js":`text/javascript; charset=utf-8`,".mjs":`text/javascript; charset=utf-8`,".css":`text/css; charset=utf-8`,".json":`application/json; charset=utf-8`,".txt":`text/plain; charset=utf-8`,".md":`text/plain; charset=utf-8`,".mdx":`text/plain; charset=utf-8`,".csv":`text/plain; charset=utf-8`,".yaml":`text/plain; charset=utf-8`,".svg":`image/svg+xml`,".png":`image/png`,".jpg":`image/jpeg`,".jpeg":`image/jpeg`,".webp":`image/webp`,".gif":`image/gif`,".avif":`image/avif`,".woff2":`font/woff2`,".woff":`font/woff`,".ttf":`font/ttf`,".otf":`font/otf`,".mp3":`audio/mpeg`,".wav":`audio/wav`,".m4a":`audio/mp4`,".ogg":`audio/ogg`,".aac":`audio/aac`,".flac":`audio/flac`,".mp4":`video/mp4`,".webm":`video/webm`,".mov":`video/quicktime`,".pdf":`application/pdf`,".wasm":`application/wasm`,".glb":`model/gltf-binary`,".gltf":`model/gltf+json`,".bin":`application/octet-stream`,".ktx2":`image/ktx2`,".hdr":`image/vnd.radiance`,".exr":`image/x-exr`,".htm":`text/html; charset=utf-8`,".map":`application/json; charset=utf-8`,".webmanifest":`application/manifest+json`,".xml":`application/xml`,".rss":`application/rss+xml`,".atom":`application/atom+xml`,".ico":`image/x-icon`,".vtt":`text/vtt; charset=utf-8`,".zip":`application/zip`},N=e=>Je[/\.[^./]+$/u.exec(e)?.[0].toLowerCase()??``]??`application/octet-stream`,Ye=g(`file-exclamation-point`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Xe=g(`focus`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Ze=g(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),Qe=g(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),$e=g(`square-arrow-out-up-right`,[[`path`,{d:`M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6`,key:`y09zxi`}],[`path`,{d:`m21 3-9 9`,key:`mpx6sq`}],[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}]]),et=g(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),tt=[`1`,`2`,`3`,`4`,`5`,`6`],nt=[`top`,`right`,`bottom`,`left`],rt=[`none`,`arrow`],P={nodes:[],edges:[],top:{}},F=e=>typeof e==`object`&&!!e&&!Array.isArray(e),I=e=>typeof e==`string`?e:void 0,it=e=>typeof e==`number`&&Number.isFinite(e)?e:void 0,at=(e,t)=>typeof t==`string`&&e.includes(t)?t:void 0;function ot(e){let t=I(e.id),n=I(e.type),r=it(e.x),i=it(e.y),a=it(e.width),o=it(e.height);if(t!==void 0&&t!==``&&n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0)return{id:t,type:n,x:r,y:i,width:a,height:o,color:I(e.color),text:I(e.text),file:I(e.file),subpath:I(e.subpath),url:I(e.url),label:I(e.label),background:I(e.background),backgroundStyle:I(e.backgroundStyle),raw:e}}function st(e){let t=I(e.id),n=I(e.fromNode),r=I(e.toNode);if(t&&n&&r)return{id:t,fromNode:n,fromSide:at(nt,e.fromSide),fromEnd:at(rt,e.fromEnd)??`none`,toNode:r,toSide:at(nt,e.toSide),toEnd:at(rt,e.toEnd)??`arrow`,color:I(e.color),label:I(e.label),raw:e}}var L=e=>{let t=e.id;return typeof t==`string`&&t!==``?t:void 0};function ct(e){if(e.trim()===``)return{canvas:P,problems:[],readable:!0};let t;try{t=JSON.parse(e)}catch(e){return{canvas:P,readable:!1,problems:[{at:`file`,message:`It is not JSON: ${e instanceof Error?e.message:String(e)}`}]}}if(!F(t))return{canvas:P,readable:!1,problems:[{at:`file`,message:`It is not a JSON object.`}]};let n=[],r=e=>{let r=t[e];return r===void 0?[]:Array.isArray(r)?r.flatMap((t,r)=>F(t)?[t]:(n.push({at:e===`nodes`?`node`:`edge`,index:r,message:`Its ${e} entry ${String(r)} is not an object.`}),[])):(n.push({at:e,message:`Its "${e}" is not a list.`}),[])},i=r(`nodes`),a=r(`edges`);return i.forEach((e,t)=>{if(ot(e))return;let r=L(e);n.push({at:`node`,index:t,...r===void 0?{}:{id:r},message:`Its node ${r??String(t)} is not drawn: a node has an id, a type, and x, y, width and height as numbers.`})}),a.forEach((e,t)=>{if(st(e))return;let r=L(e);n.push({at:`edge`,index:t,...r===void 0?{}:{id:r},message:`Its edge ${r??String(t)} is not drawn: an edge has an id, a fromNode and a toNode.`})}),{canvas:{nodes:i,edges:a,top:t},problems:n,readable:!0}}var lt=e=>e.nodes.flatMap(e=>{let t=ot(e);return t?[t]:[]}),ut=e=>e.edges.flatMap(e=>{let t=st(e);return t?[t]:[]});function dt(e){let t=e=>e.length===0?`[]`:`[\n${e.map(e=>`\t\t${JSON.stringify(e)}`).join(`,
|
|
2
|
+
`)}\n\t]`;return`{\n${[`\t"nodes":${t(e.nodes)}`,`\t"edges":${t(e.edges)}`,...Object.entries(e.top).filter(([e])=>e!==`nodes`&&e!==`edges`).map(([e,t])=>`\t${JSON.stringify(e)}:${JSON.stringify(t)}`)].join(`,
|
|
3
|
+
`)}\n}`}function ft(e,t=Math.random){let n=new Set([...e.nodes,...e.edges].flatMap(e=>L(e)??[]));for(;;){let e=``;for(let n=0;n<16;n++)e+=Math.floor(t()*16).toString(16);if(!n.has(e))return e}}var R=e=>Math.round(e);function z(e,t){let n=new Set(Object.entries(t).filter(([,e])=>e===void 0).map(([e])=>e)),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)));for(let[e,n]of Object.entries(t))n!==void 0&&(r[e]=n);return r}var pt=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function mt(e,t,n){if(pt(t,e))return n;if(pt(n,e))return t;if(t===void 0||n===void 0)return t??n;if(e===void 0)return t;let r=[...new Set([...Object.keys(t),...Object.keys(e)])].filter(n=>!pt(t[n],e[n]));return z(n,Object.fromEntries(r.map(e=>[e,t[e]])))}function ht(e,t,n){let r=e=>{let t=new Map;for(let n of e){let e=L(n);e!==void 0&&!t.has(e)&&t.set(e,n)}return t},i=r(e),a=r(t),o=r(n),s=[],c=new Set;for(let e of n){let t=L(e);if(t===void 0){s.push(e);continue}if(c.has(t))continue;c.add(t);let n=mt(i.get(t),a.get(t),e);n&&s.push(n)}let l;for(let e of t){let t=L(e);if(t!==void 0){if(!c.has(t)){c.add(t);let n=mt(i.get(t),e,o.get(t));if(n){let e=l===void 0?-1:s.findIndex(e=>L(e)===l);s.splice(e+1,0,n)}}s.some(e=>L(e)===t)&&(l=t)}}return s}function gt(e,t,n){let r=mt(e.top,t.top,n.top)??{};return{nodes:ht(e.nodes,t.nodes,n.nodes),edges:ht(e.edges,t.edges,n.edges),top:r}}function _t(e,t,n){let r=[...e];for(let e of n===`after`?t:[...t].reverse()){let t=n===`after`?e.after:e.before,i=r.findIndex(t=>L(t)===e.id);t===void 0?i>=0&&r.splice(i,1):i>=0?r[i]=t:r.splice(Math.min(e.index,r.length),0,t)}return r}function vt(e,t,n){return{...e,nodes:_t(e.nodes,t.nodes,n),edges:_t(e.edges,t.edges,n)}}function B(e,t){let n=(e,t)=>{let n=[],r=new Map;e.forEach((e,t)=>{let n=L(e);n!==void 0&&r.set(n,{raw:e,index:t})});let i=new Set;t.forEach((e,t)=>{let a=L(e);if(a===void 0)return;i.add(a);let o=r.get(a);o?JSON.stringify(o.raw)!==JSON.stringify(e)&&n.push({id:a,before:o.raw,after:e,index:t}):n.push({id:a,after:e,index:t})});for(let[e,t]of r)i.has(e)||n.push({id:e,before:t.raw,index:t.index});return n};return{nodes:n(e.nodes,t.nodes),edges:n(e.edges,t.edges)}}var yt=e=>e.nodes.length===0&&e.edges.length===0;function bt(e,t){let n=`"id":${JSON.stringify(t)}`,r=`"id": ${JSON.stringify(t)}`,i=e.split(`
|
|
4
|
+
`).findIndex(e=>e.includes(n)||e.includes(r));return i<0?void 0:i+1}function xt(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var St=/[ \t\n\f\r]/g;function Ct(e){return typeof e==`object`?e.type===`text`&&wt(e.value):wt(e)}function wt(e){return e.replace(St,``)===``}var Tt=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Tt.prototype.normal={},Tt.prototype.property={},Tt.prototype.space=void 0;function Et(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Tt(n,r,t)}function Dt(e){return e.toLowerCase()}var V=class{constructor(e,t){this.attribute=t,this.property=e}};V.prototype.attribute=``,V.prototype.booleanish=!1,V.prototype.boolean=!1,V.prototype.commaOrSpaceSeparated=!1,V.prototype.commaSeparated=!1,V.prototype.defined=!1,V.prototype.mustUseProperty=!1,V.prototype.number=!1,V.prototype.overloadedBoolean=!1,V.prototype.property=``,V.prototype.spaceSeparated=!1,V.prototype.space=void 0;var Ot=t({boolean:()=>H,booleanish:()=>U,commaOrSpaceSeparated:()=>K,commaSeparated:()=>jt,number:()=>W,overloadedBoolean:()=>At,spaceSeparated:()=>G}),kt=0,H=Mt(),U=Mt(),At=Mt(),W=Mt(),G=Mt(),jt=Mt(),K=Mt();function Mt(){return 2**++kt}var Nt=Object.keys(Ot),Pt=class extends V{constructor(e,t,n,r){let i=-1;if(super(e,t),Ft(this,`space`,r),typeof n==`number`)for(;++i<Nt.length;){let e=Nt[i];Ft(this,Nt[i],(n&Ot[e])===Ot[e])}}};Pt.prototype.defined=!0;function Ft(e,t,n){n&&(e[t]=n)}function It(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Pt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Dt(r)]=r,n[Dt(a.attribute)]=r}return new Tt(t,n,e.space)}var Lt=It({properties:{ariaActiveDescendant:null,ariaAtomic:U,ariaAutoComplete:null,ariaBusy:U,ariaChecked:U,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:U,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:U,ariaFlowTo:G,ariaGrabbed:U,ariaHasPopup:null,ariaHidden:U,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:W,ariaLive:null,ariaModal:U,ariaMultiLine:U,ariaMultiSelectable:U,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:U,ariaReadOnly:U,ariaRelevant:null,ariaRequired:U,ariaRoleDescription:G,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:U,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Rt(e,t){return t in e?e[t]:t}function zt(e,t){return Rt(e,t.toLowerCase())}var Bt=It({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:jt,acceptCharset:G,accessKey:G,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alpha:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:G,autoFocus:H,autoPlay:H,blocking:G,capture:null,charSet:null,checked:H,cite:null,className:G,closedBy:null,colorSpace:null,cols:W,colSpan:W,command:null,commandFor:null,content:null,contentEditable:U,controls:H,controlsList:G,coords:W|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:At,draggable:U,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:G,height:W,hidden:At,high:W,href:null,hrefLang:null,htmlFor:G,httpEquiv:G,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:G,itemRef:G,itemScope:H,itemType:G,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:W,pattern:null,ping:G,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:G,required:H,reversed:H,rows:W,rowSpan:W,sandbox:G,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootCustomElementRegistry:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shadowRootSerializable:H,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:U,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:U,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:U,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:H,disablePictureInPicture:H,disableRemotePlayback:H,exportParts:jt,part:G,prefix:null,property:null,results:W,security:null,unselectable:null},space:`html`,transform:zt}),Vt=It({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:K,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:G,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:K,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:K,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:K,rev:K,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:K,requiredFeatures:K,requiredFonts:K,requiredFormats:K,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:K,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:K,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:K,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Rt}),Ht=It({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Ut=It({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:zt}),Wt=It({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Gt={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Kt=/[A-Z]/g,qt=/-[a-z]/g,Jt=/^data[-\w.:]+$/i;function Yt(e,t){let n=Dt(t),r=t,i=V;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Jt.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(qt,Zt);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!qt.test(e)){let n=e.replace(Kt,Xt);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Pt}return new i(r,t)}function Xt(e){return`-`+e.toLowerCase()}function Zt(e){return e.charAt(1).toUpperCase()}var Qt=Et([Lt,Bt,Ht,Ut,Wt],`html`),$t=Et([Lt,Vt,Ht,Ut,Wt],`svg`);function en(e){return e.join(` `).trim()}var tn=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
5
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function ee(e){var t;for(e||=[];t=v();)t!==!1&&e.push(t);return e}function v(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function te(){var e=p(),t=g(a);if(t){if(v(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function ne(){var e=[];ee(e);for(var t;t=te();)t!==!1&&(e.push(t),ee(e));return e}return _(),ne()}function d(e){return e?e.replace(l,``):``}t.exports=u})),nn=n(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(tn());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),rn=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),an=n(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(nn()),i=rn();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),on=cn(`end`),sn=cn(`start`);function cn(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function ln(e){let t=sn(e),n=on(e);if(t&&n)return{start:t,end:n}}var un=e(an(),1),dn={}.hasOwnProperty,fn=new Map,pn=/[A-Z]/g,mn=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),hn=new Set([`td`,`th`]),gn=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function _n(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=On(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Dn(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?$t:Qt,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=vn(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function vn(e,t,n){if(t.type===`element`)return yn(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return bn(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Sn(e,t,n);if(t.type===`mdxjsEsm`)return xn(e,t);if(t.type===`root`)return Cn(e,t,n);if(t.type===`text`)return wn(e,t)}function yn(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=$t,e.schema=i),e.ancestors.push(t);let a=Pn(e,t.tagName,!1),o=kn(e,t),s=jn(e,t);return mn.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Ct(e)})),Tn(e,o,a,t),En(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function bn(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Fn(e,t.position)}function xn(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Fn(e,t.position)}function Sn(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=$t,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Pn(e,t.name,!0),o=An(e,t),s=jn(e,t);return Tn(e,o,a,t),En(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Cn(e,t,n){let r={};return En(r,jn(e,t)),e.create(t,e.Fragment,r,n)}function wn(e,t){return t.value}function Tn(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function En(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Dn(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function On(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=sn(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function kn(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&dn.call(t.properties,i)){let a=Mn(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&hn.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function An(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Fn(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Fn(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function jn(e,t){let n=[],r=-1,i=e.passKeys?new Map:fn;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=vn(e,a,o);s!==void 0&&n.push(s)}return n}function Mn(e,t,n){let r=Yt(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?xt(n):en(n)),r.property===`style`){let t=typeof n==`object`?n:Nn(e,String(n));return e.stylePropertyNameCase===`css`&&(t=In(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Gt[r.property]||r.property:r.attribute,n]}}function Nn(e,t){try{return(0,un.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new _e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=gn+`#cannot-parse-style-attribute`,r}}function Pn(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=ye(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=ye(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return dn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Fn(e)}function Fn(e,t){let n=new _e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=gn+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function In(e){let t={},n;for(n in e)dn.call(e,n)&&(t[Ln(n)]=e[n]);return t}function Ln(e){let t=e.replace(pn,Rn);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Rn(e){return`-`+e.toLowerCase()}var zn={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]};function Bn(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&M(e.charCodeAt(n+1))&&M(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Vn(e){let t=this;t.parser=n;function n(n){return Ne(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Hn(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Un(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
6
|
+
`}]}function Wn(e,t){let n=t.value?t.value+`
|
|
7
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Gn(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kn(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qn(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Bn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Jn(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yn(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Xn(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Zn(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xn(e,t);let i={src:Bn(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Qn(e,t){let n={src:Bn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $n(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function er(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xn(e,t);let i={href:Bn(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function tr(e,t){let n={href:Bn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nr(e,t,n){let r=e.all(t),i=n?rr(n):ir(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
8
|
+
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
9
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function rr(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=ir(n[r])}return t}function ir(e){return e.spread??e.children.length>1}function ar(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function or(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sr(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cr(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lr(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=sn(t.children[1]),o=on(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function ur(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function dr(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var fr=9,pr=32;function mr(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(hr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(hr(t.slice(i),i>0,!1)),a.join(``)}function hr(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===fr||t===pr;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===fr||t===pr;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function gr(e,t){let n={type:`text`,value:mr(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _r(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var vr={blockquote:Hn,break:Un,code:Wn,delete:Gn,emphasis:Kn,footnoteReference:qn,heading:Jn,html:Yn,imageReference:Zn,image:Qn,inlineCode:$n,linkReference:er,link:tr,listItem:nr,list:ar,paragraph:or,root:sr,strong:cr,table:lr,tableCell:dr,tableRow:ur,text:gr,thematicBreak:_r,toml:yr,yaml:yr,definition:yr,footnoteDefinition:yr};function yr(){}var{defineProperty:br}=Object,xr=typeof self==`object`?self:globalThis,Sr=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new xr[e](t)},Cr=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?br(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof xr[e]==`function`?Sr(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Sr(a,o),i)};return r},wr=e=>Cr(new Map,e)(0),Tr=``,{toString:Er}={},{keys:Dr,is:Or}=Object,kr=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Er.call(e).slice(8,-1);switch(n){case`Array`:return[1,Tr];case`Object`:return[2,Tr];case`Date`:return[3,Tr];case`RegExp`:return[4,Tr];case`Map`:return[5,Tr];case`Set`:return[6,Tr];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Ar=([e,t])=>e===0&&(t===`function`||t===`symbol`),jr=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=kr(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Or(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Dr(o))(e||!Ar(kr(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Tr:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Ar(kr(n))||Ar(kr(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Ar(kr(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Mr=(e,{json:t,lossy:n}={})=>{let r=[];return jr(!(t||n),!!t,new Map,r)(e),r},Nr=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?wr(Mr(e,t)):structuredClone(e):(e,t)=>wr(Mr(e,t));function Pr(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Fr(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Ir(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Pr,r=e.options.footnoteBackLabel||Fr,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Bn(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Nr(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
10
|
+
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
11
|
+
`}]}}var Lr={}.hasOwnProperty,Rr={};function zr(e,t){let n=t||Rr,r=new Map,i=new Map,a={all:s,applyData:Vr,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...vr,...n.handlers},one:o,options:n,patch:Br,wrap:Ur};return We(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Lr.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Nr(n);return r.children=a.all(e),r}return Nr(e)}return(a.options.unknownHandler||Hr)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Wr(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Wr(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Br(e,t){e.position&&(t.position=ln(e))}function Vr(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Nr(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Hr(e,t){let n=t.data||{},r=`value`in t&&!(Lr.call(n,`hProperties`)||Lr.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ur(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
12
|
+
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
13
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
14
|
+
`}),n}function Wr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gr(e,t){let n=zr(e,t),r=n.one(e,void 0),i=Ir(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
15
|
+
`},i)),a}function Kr(e,t){return e&&`run`in e?async function(n,r){let i=Gr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Gr(n,{file:r,...e||t})}}function qr(e){if(e)throw e}var Jr=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Yr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xr(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Zr(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Zr(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var q={basename:Qr,dirname:$r,extname:ei,join:ti,sep:`/`};function Qr(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);ii(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function $r(e){if(ii(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function ei(e){ii(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function ti(...e){let t=-1,n;for(;++t<e.length;)ii(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:ni(n)}function ni(e){ii(e);let t=e.codePointAt(0)===47,n=ri(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function ri(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function ii(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var ai={cwd:oi};function oi(){return`/`}function si(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function ci(e){if(typeof e==`string`)e=new URL(e);else if(!si(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return li(e)}function li(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var ui=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],di=class{constructor(e){let t;t=e?si(e)?{path:e}:typeof e==`string`||hi(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:ai.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ui.length;){let e=ui[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)ui.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?q.basename(this.path):void 0}set basename(e){pi(e,`basename`),fi(e,`basename`),this.path=q.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?q.dirname(this.path):void 0}set dirname(e){mi(this.basename,`dirname`),this.path=q.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?q.extname(this.path):void 0}set extname(e){if(fi(e,`extname`),mi(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=q.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){si(e)&&(e=ci(e)),pi(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?q.basename(this.path,this.extname):void 0}set stem(e){pi(e,`stem`),fi(e,`stem`),this.path=q.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new _e(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function fi(e,t){if(e&&e.includes(q.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+q.sep+"`")}function pi(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function mi(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function hi(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var gi=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),_i=e(Jr(),1),vi={}.hasOwnProperty,yi=new class e extends gi{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Xr()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,_i.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Si(`data`,this.frozen),this.namespace[e]=t,this):vi.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Si(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Ti(e),n=this.parser||this.Parser;return bi(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),bi(`process`,this.parser||this.Parser),xi(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Ti(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Di(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),bi(`processSync`,this.parser||this.Parser),xi(`processSync`,this.compiler||this.Compiler),this.process(e,r),wi(`processSync`,`process`,t),n;function r(e,r){t=!0,qr(e),n=r}}run(e,t,n){Ci(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Ti(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),wi(`runSync`,`run`,n),r;function i(e,t){qr(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Ti(t),r=this.compiler||this.Compiler;return xi(`stringify`,r),Ci(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Si(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,_i.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Yr(o)&&Yr(r)&&(r=(0,_i.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function bi(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function xi(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Si(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ci(e){if(!Yr(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function wi(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ti(e){return Ei(e)?e:new di(e)}function Ei(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Di(e){return typeof e==`string`||Oi(e)}function Oi(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var J=h(),Y=e(c(),1),ki=[],Ai={allowDangerousHtml:!0},ji=/^(https?|ircs?|mailto|xmpp)$/i,Mi=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Ni(e){let t=Pi(e),n=Fi(e);return Ii(t.runSync(t.parse(n),n),e)}function Pi(e){let t=e.rehypePlugins||ki,n=e.remarkPlugins||ki,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ai}:Ai;return yi().use(Vn).use(n).use(Kr,r).use(t)}function Fi(e){let t=e.children||``,n=new di;return typeof t==`string`?n.value=t:``+t,n}function Ii(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Li;for(let e of Mi)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return We(e,l),_n(e,{Fragment:J.Fragment,components:i,ignoreInvalidStyle:!0,jsx:J.jsx,jsxs:J.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in zn)if(Object.hasOwn(zn,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=zn[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Li(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ji.test(e.slice(0,t))?e:``}function Ri(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zi(e,t,n){let r=Ge((n||{}).ignore||[]),i=Bi(t),a=-1;for(;++a<i.length;)Ie(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return Ke}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function Bi(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Vi(e[0]),Hi(e[1])])}return t}function Vi(e){return typeof e==`string`?new RegExp(Pe(e),`g`):e}function Hi(e){return typeof e==`function`?e:function(){return e}}var Ui=`phrasing`,Wi=[`autolink`,`link`,`image`,`label`];function Gi(){return{transforms:[$i],enter:{literalAutolink:qi,literalAutolinkEmail:Ji,literalAutolinkHttp:Ji,literalAutolinkWww:Ji},exit:{literalAutolink:Qi,literalAutolinkEmail:Zi,literalAutolinkHttp:Yi,literalAutolinkWww:Xi}}}function Ki(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Ui,notInConstruct:Wi},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Ui,notInConstruct:Wi},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Ui,notInConstruct:Wi}]}}function qi(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Ji(e){this.config.enter.autolinkProtocol.call(this,e)}function Yi(e){this.config.exit.autolinkProtocol.call(this,e)}function Xi(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Zi(e){this.config.exit.autolinkEmail.call(this,e)}function Qi(e){this.exit(e)}function $i(e){zi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ea],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ta]],{ignore:[`link`,`linkReference`]})}function ea(e,t,n,r,i){let a=``;if(!ia(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!na(n)))return!1;let o=ra(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function ta(e,t,n,r){return!ia(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function na(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ra(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Ri(e,`(`),a=Ri(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function ia(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||A(n)||O(n))&&(!t||n!==47)}function aa(){return[Gi(),j(),Ve(),Re(),ve()]}function oa(e){return{extensions:[Ki(),Le(e),ze(),Fe(e),be()]}}var sa={tokenize:ya,partial:!0},ca={tokenize:ba,partial:!0},la={tokenize:xa,partial:!0},ua={tokenize:Sa,partial:!0},da={tokenize:Ca,partial:!0},fa={name:`wwwAutolink`,tokenize:_a,previous:wa},pa={name:`protocolAutolink`,tokenize:va,previous:Ta},X={name:`emailAutolink`,tokenize:ga,previous:Ea},Z={};function ma(){return{text:Z}}for(var ha=48;ha<123;)Z[ha]=X,ha++,ha===58?ha=65:ha===91&&(ha=97);Z[43]=X,Z[45]=X,Z[46]=X,Z[95]=X,Z[72]=[X,pa],Z[104]=[X,pa],Z[87]=[X,fa],Z[119]=[X,fa];function ga(e,t,n){let r=this,i,a;return o;function o(t){return!Da(t)||!Ea.call(r,r.previous)||Oa(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Da(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(da,u,l)(t):t===45||t===95||M(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&E(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function _a(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!wa.call(r,r.previous)||Oa(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(sa,e.attempt(ca,e.attempt(la,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function va(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ta.call(r,r.previous)&&!Oa(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(E(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||k(t)||D(t)||A(t)||O(t)?n(t):e.attempt(ca,e.attempt(la,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function ya(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function ba(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(ua,c,s)(t):t===null||D(t)||A(t)||t!==45&&O(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function xa(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ua,t,a)(o):o===null||D(o)||A(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Sa(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||D(o)||A(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||D(e)||A(e)?t(e):r(e)}function a(e){return E(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):E(t)?(e.consume(t),o):n(t)}}function Ca(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return M(e)?n(e):t(e)}}function wa(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||D(e)}function Ta(e){return!E(e)}function Ea(e){return!(e===47||Da(e))}function Da(e){return e===43||e===45||e===46||e===95||M(e)}function Oa(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ka(e){return qe([ma(),He(),Be(e),Ue(),xe()])}var Aa={};function ja(e){let t=this,n=e||Aa,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ka(n)),a.push(aa()),o.push(oa(n))}function Ma(){let e=a(),[t,n]=(0,Y.useState)();return(0,Y.useEffect)(()=>{let t=!0,r,i=()=>{S(e,`project/items`,{}).then(e=>{t&&n({items:e.items,revision:e.revision})},()=>void 0)};i();let a=e.on(`project/changed`,()=>{clearTimeout(r),r=setTimeout(i,300)});return()=>{t=!1,clearTimeout(r),a()}},[e]),t}function Na(e,t){let n=t.replace(/^\.\//u,``).replace(/\/+$/u,``),r=e?.items.find(e=>e.kind!==void 0&&e.entry===n);if(r)return{type:`item`,item:r};let i=N(n);return/^(image|video|audio)\//u.test(i)?{type:`media`,path:n,mime:i}:{type:`file`,path:n}}var Pa=new Map;function Fa(e,t,n){let[r,i]=(0,Y.useState)(),a=`${t??``}@${String(n??-1)}`;if((0,Y.useEffect)(()=>{if(t===void 0||n===void 0)return;let r=!0,o=Pa.get(a);return o||(o=S(e,`items/preview`,{item:t}).then(e=>e.preview,()=>void 0),Pa.set(a,o)),o.then(e=>{r&&i({key:a,preview:e})}),()=>{r=!1}},[e,t,n,a]),r!==void 0)return r.preview??`none`}var Ia=new Map;function La(e,t){let[n,r]=(0,Y.useState)();return(0,Y.useEffect)(()=>{if(t===void 0)return;let n=!0,i=Ia.get(t);return i||(i=e[`files/url`]({path:t}).then(e=>e.url,()=>void 0),Ia.set(t,i)),i.then(e=>{n&&r(e)}),()=>{n=!1}},[e,t]),n}var Ra=new Map;function za(e,t){let[n,r]=(0,Y.useState)();return(0,Y.useEffect)(()=>{if(t===void 0||t===``)return;let n=!0,i=t.lastIndexOf(`/`),a=i<0?``:t.slice(0,i),o=Ra.get(a);return o||(o=e[`files/list`]({dir:a}).then(e=>new Set([...e.files.map(e=>e.path),...e.dirs]),()=>void 0),Ra.set(a,o),setTimeout(()=>Ra.delete(a),2e3)),o.then(e=>{n&&r(e===void 0?void 0:e.has(t))}),()=>{n=!1}},[e,t]),n}var Ba=f({en:{loading:`Opening the canvas…`,couldNotOpen:e=>`The canvas could not be opened: ${e}`,unreadable:e=>`This file is not JSON Canvas, so it is shown and not changed: ${e}`,empty:`Double-click to add a note, or drop a file here.`,undo:`Undo`,redo:`Redo`,zoom:`Zoom`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,zoomFit:`Zoom to fit`,zoomActual:`Zoom to 100%`,zoomSelection:`Zoom to selection`,history:`History`,adding:`Add to the canvas`,selected:`Selection`,note:`Note`,noteHint:`Add a note in Markdown`,file:`File`,fileHint:`Add an item or a file of the project`,link:`Link`,linkHint:`Add a link to a page`,linkPlaceholder:`https://`,linkAdd:`Add`,group:`Group`,groupHint:`Put the selection in a group`,color:`Colour`,noColor:`No colour`,colors:{1:`Red`,2:`Orange`,3:`Yellow`,4:`Green`,5:`Cyan`,6:`Purple`},find:`Find an item or a file`,items:`Items`,media:`Media`,nothingFound:`Nothing matches`,open:`Open`,openHint:`Open it in its own editor`,openLinkHint:`Open the page in the browser`,delete:`Delete`,label:`Label`,missing:e=>`${e} is not in the project`,unknownType:e=>`A “${e}” node, kept as it is`,uploadFailed:e=>`The file could not be added: ${e}`,edits:{add:`Add`,move:`Move`,resize:`Resize`,type:`Typing`,delete:`Delete`,color:`Colour`,group:`Group`,connect:`Connect`,label:`Label`}},"zh-cn":{loading:`正在打开画布…`,couldNotOpen:e=>`画布无法打开:${e}`,unreadable:e=>`此文件不是 JSON Canvas,因此只显示、不修改:${e}`,empty:`双击添加便签,或把文件拖到这里。`,undo:`撤销`,redo:`重做`,zoom:`缩放`,zoomIn:`放大`,zoomOut:`缩小`,zoomFit:`缩放到合适大小`,zoomActual:`缩放到 100%`,zoomSelection:`缩放到所选内容`,history:`历史记录`,adding:`添加到画布`,selected:`所选内容`,note:`便签`,noteHint:`添加 Markdown 便签`,file:`文件`,fileHint:`添加项目中的作品或文件`,link:`链接`,linkHint:`添加网页链接`,linkPlaceholder:`https://`,linkAdd:`添加`,group:`分组`,groupHint:`把所选内容放进一个分组`,color:`颜色`,noColor:`无颜色`,colors:{1:`红色`,2:`橙色`,3:`黄色`,4:`绿色`,5:`青色`,6:`紫色`},find:`查找作品或文件`,items:`作品`,media:`媒体`,nothingFound:`没有匹配的内容`,open:`打开`,openHint:`在它自己的编辑器中打开`,openLinkHint:`在浏览器中打开网页`,delete:`删除`,label:`标签`,missing:e=>`${e} 不在项目中`,unknownType:e=>`“${e}”节点,按原样保留`,uploadFailed:e=>`无法添加文件:${e}`,edits:{add:`添加`,move:`移动`,resize:`调整大小`,type:`输入`,delete:`删除`,color:`颜色`,group:`分组`,connect:`连接`,label:`标签`}},"zh-tw":{loading:`正在開啟畫布…`,couldNotOpen:e=>`畫布無法開啟:${e}`,unreadable:e=>`此檔案不是 JSON Canvas,因此只顯示、不修改:${e}`,empty:`按兩下新增便條,或把檔案拖到這裡。`,undo:`復原`,redo:`重做`,zoom:`縮放`,zoomIn:`放大`,zoomOut:`縮小`,zoomFit:`縮放至適當大小`,zoomActual:`縮放至 100%`,zoomSelection:`縮放至所選內容`,history:`記錄`,adding:`加入畫布`,selected:`所選內容`,note:`便條`,noteHint:`新增 Markdown 便條`,file:`檔案`,fileHint:`新增專案中的作品或檔案`,link:`連結`,linkHint:`新增網頁連結`,linkPlaceholder:`https://`,linkAdd:`新增`,group:`群組`,groupHint:`把所選內容放進一個群組`,color:`顏色`,noColor:`無顏色`,colors:{1:`紅色`,2:`橙色`,3:`黃色`,4:`綠色`,5:`青色`,6:`紫色`},find:`尋找作品或檔案`,items:`作品`,media:`媒體`,nothingFound:`沒有相符的內容`,open:`開啟`,openHint:`在它自己的編輯器中開啟`,openLinkHint:`在瀏覽器中開啟網頁`,delete:`刪除`,label:`標籤`,missing:e=>`${e} 不在專案中`,unknownType:e=>`「${e}」節點,依原樣保留`,uploadFailed:e=>`無法新增檔案:${e}`,edits:{add:`新增`,move:`移動`,resize:`調整大小`,type:`輸入`,delete:`刪除`,color:`顏色`,group:`群組`,connect:`連接`,label:`標籤`}},ja:{loading:`キャンバスを開いています…`,couldNotOpen:e=>`キャンバスを開けませんでした:${e}`,unreadable:e=>`このファイルは JSON Canvas ではないため、表示のみで変更しません:${e}`,empty:`ダブルクリックでメモを追加するか、ここにファイルをドロップします。`,undo:`取り消す`,redo:`やり直す`,zoom:`ズーム`,zoomIn:`拡大`,zoomOut:`縮小`,zoomFit:`全体を表示`,zoomActual:`100% で表示`,zoomSelection:`選択範囲にズーム`,history:`履歴`,adding:`キャンバスに追加`,selected:`選択範囲`,note:`メモ`,noteHint:`Markdown のメモを追加`,file:`ファイル`,fileHint:`プロジェクトの作品やファイルを追加`,link:`リンク`,linkHint:`ページへのリンクを追加`,linkPlaceholder:`https://`,linkAdd:`追加`,group:`グループ`,groupHint:`選択したものをグループにまとめる`,color:`色`,noColor:`色なし`,colors:{1:`赤`,2:`オレンジ`,3:`黄`,4:`緑`,5:`シアン`,6:`紫`},find:`作品やファイルを検索`,items:`作品`,media:`メディア`,nothingFound:`一致するものはありません`,open:`開く`,openHint:`専用のエディタで開く`,openLinkHint:`ページをブラウザで開く`,delete:`削除`,label:`ラベル`,missing:e=>`${e} はプロジェクトにありません`,unknownType:e=>`「${e}」ノード(そのまま保持)`,uploadFailed:e=>`ファイルを追加できませんでした:${e}`,edits:{add:`追加`,move:`移動`,resize:`サイズ変更`,type:`入力`,delete:`削除`,color:`色`,group:`グループ`,connect:`接続`,label:`ラベル`}},ko:{loading:`캔버스를 여는 중…`,couldNotOpen:e=>`캔버스를 열 수 없습니다: ${e}`,unreadable:e=>`이 파일은 JSON Canvas가 아니므로 표시만 하고 변경하지 않습니다: ${e}`,empty:`두 번 클릭해 메모를 추가하거나 여기에 파일을 놓으세요.`,undo:`실행 취소`,redo:`다시 실행`,zoom:`확대/축소`,zoomIn:`확대`,zoomOut:`축소`,zoomFit:`화면에 맞추기`,zoomActual:`100%로 확대/축소`,zoomSelection:`선택 항목으로 확대/축소`,history:`기록`,adding:`캔버스에 추가`,selected:`선택 항목`,note:`메모`,noteHint:`Markdown 메모 추가`,file:`파일`,fileHint:`프로젝트의 작업물이나 파일 추가`,link:`링크`,linkHint:`페이지 링크 추가`,linkPlaceholder:`https://`,linkAdd:`추가`,group:`그룹`,groupHint:`선택한 항목을 그룹으로 묶기`,color:`색상`,noColor:`색상 없음`,colors:{1:`빨강`,2:`주황`,3:`노랑`,4:`초록`,5:`청록`,6:`보라`},find:`작업물이나 파일 찾기`,items:`작업물`,media:`미디어`,nothingFound:`일치하는 항목이 없습니다`,open:`열기`,openHint:`전용 편집기에서 열기`,openLinkHint:`브라우저에서 페이지 열기`,delete:`삭제`,label:`레이블`,missing:e=>`${e}이(가) 프로젝트에 없습니다`,unknownType:e=>`“${e}” 노드, 그대로 유지됨`,uploadFailed:e=>`파일을 추가할 수 없습니다: ${e}`,edits:{add:`추가`,move:`이동`,resize:`크기 조정`,type:`입력`,delete:`삭제`,color:`색상`,group:`그룹`,connect:`연결`,label:`레이블`}},es:{loading:`Abriendo el lienzo…`,couldNotOpen:e=>`No se pudo abrir el lienzo: ${e}`,unreadable:e=>`Este archivo no es JSON Canvas, así que se muestra y no se cambia: ${e}`,empty:`Haz doble clic para añadir una nota, o suelta aquí un archivo.`,undo:`Deshacer`,redo:`Rehacer`,zoom:`Zoom`,zoomIn:`Acercar`,zoomOut:`Alejar`,zoomFit:`Ajustar a la vista`,zoomActual:`Zoom al 100 %`,zoomSelection:`Zoom a la selección`,history:`Historial`,adding:`Añadir al lienzo`,selected:`Selección`,note:`Nota`,noteHint:`Añadir una nota en Markdown`,file:`Archivo`,fileHint:`Añadir un elemento o un archivo del proyecto`,link:`Enlace`,linkHint:`Añadir un enlace a una página`,linkPlaceholder:`https://`,linkAdd:`Añadir`,group:`Agrupar`,groupHint:`Poner la selección en un grupo`,color:`Color`,noColor:`Sin color`,colors:{1:`Rojo`,2:`Naranja`,3:`Amarillo`,4:`Verde`,5:`Cian`,6:`Morado`},find:`Buscar un elemento o un archivo`,items:`Elementos`,media:`Multimedia`,nothingFound:`No hay coincidencias`,open:`Abrir`,openHint:`Abrirlo en su propio editor`,openLinkHint:`Abrir la página en el navegador`,delete:`Eliminar`,label:`Etiqueta`,missing:e=>`${e} no está en el proyecto`,unknownType:e=>`Un nodo «${e}», conservado tal cual`,uploadFailed:e=>`No se pudo añadir el archivo: ${e}`,edits:{add:`Añadir`,move:`Mover`,resize:`Cambiar tamaño`,type:`Escritura`,delete:`Eliminar`,color:`Color`,group:`Agrupar`,connect:`Conectar`,label:`Etiqueta`}},fr:{loading:`Ouverture du canevas…`,couldNotOpen:e=>`Le canevas n’a pas pu être ouvert : ${e}`,unreadable:e=>`Ce fichier n’est pas au format JSON Canvas : il est affiché sans être modifié. ${e}`,empty:`Double-cliquez pour ajouter une note, ou déposez un fichier ici.`,undo:`Annuler`,redo:`Rétablir`,zoom:`Zoom`,zoomIn:`Zoom avant`,zoomOut:`Zoom arrière`,zoomFit:`Ajuster à la fenêtre`,zoomActual:`Zoom à 100 %`,zoomSelection:`Zoom sur la sélection`,history:`Historique`,adding:`Ajouter au canevas`,selected:`Sélection`,note:`Note`,noteHint:`Ajouter une note en Markdown`,file:`Fichier`,fileHint:`Ajouter un élément ou un fichier du projet`,link:`Lien`,linkHint:`Ajouter un lien vers une page`,linkPlaceholder:`https://`,linkAdd:`Ajouter`,group:`Grouper`,groupHint:`Mettre la sélection dans un groupe`,color:`Couleur`,noColor:`Sans couleur`,colors:{1:`Rouge`,2:`Orange`,3:`Jaune`,4:`Vert`,5:`Cyan`,6:`Violet`},find:`Chercher un élément ou un fichier`,items:`Éléments`,media:`Médias`,nothingFound:`Aucun résultat`,open:`Ouvrir`,openHint:`L’ouvrir dans son propre éditeur`,openLinkHint:`Ouvrir la page dans le navigateur`,delete:`Supprimer`,label:`Libellé`,missing:e=>`${e} n’est pas dans le projet`,unknownType:e=>`Un nœud « ${e} », conservé tel quel`,uploadFailed:e=>`Le fichier n’a pas pu être ajouté : ${e}`,edits:{add:`Ajout`,move:`Déplacement`,resize:`Redimensionnement`,type:`Saisie`,delete:`Suppression`,color:`Couleur`,group:`Groupe`,connect:`Liaison`,label:`Libellé`}},de:{loading:`Canvas wird geöffnet …`,couldNotOpen:e=>`Das Canvas konnte nicht geöffnet werden: ${e}`,unreadable:e=>`Diese Datei ist kein JSON Canvas und wird daher nur angezeigt, nicht geändert: ${e}`,empty:`Doppelklicken, um eine Notiz hinzuzufügen, oder eine Datei hier ablegen.`,undo:`Widerrufen`,redo:`Wiederholen`,zoom:`Zoom`,zoomIn:`Vergrößern`,zoomOut:`Verkleinern`,zoomFit:`Alles zeigen`,zoomActual:`Auf 100 % zoomen`,zoomSelection:`Auf Auswahl zoomen`,history:`Verlauf`,adding:`Zum Canvas hinzufügen`,selected:`Auswahl`,note:`Notiz`,noteHint:`Eine Notiz in Markdown hinzufügen`,file:`Datei`,fileHint:`Ein Werk oder eine Datei des Projekts hinzufügen`,link:`Link`,linkHint:`Einen Link zu einer Seite hinzufügen`,linkPlaceholder:`https://`,linkAdd:`Hinzufügen`,group:`Gruppieren`,groupHint:`Die Auswahl in eine Gruppe legen`,color:`Farbe`,noColor:`Keine Farbe`,colors:{1:`Rot`,2:`Orange`,3:`Gelb`,4:`Grün`,5:`Cyan`,6:`Lila`},find:`Ein Werk oder eine Datei suchen`,items:`Werke`,media:`Medien`,nothingFound:`Keine Treffer`,open:`Öffnen`,openHint:`Im eigenen Editor öffnen`,openLinkHint:`Seite im Browser öffnen`,delete:`Löschen`,label:`Beschriftung`,missing:e=>`${e} ist nicht im Projekt`,unknownType:e=>`Ein „${e}“-Knoten, unverändert behalten`,uploadFailed:e=>`Die Datei konnte nicht hinzugefügt werden: ${e}`,edits:{add:`Hinzufügen`,move:`Verschieben`,resize:`Größe ändern`,type:`Eingabe`,delete:`Löschen`,color:`Farbe`,group:`Gruppieren`,connect:`Verbinden`,label:`Beschriftung`}},pt:{loading:`Abrindo a tela…`,couldNotOpen:e=>`Não foi possível abrir a tela: ${e}`,unreadable:e=>`Este arquivo não é JSON Canvas, por isso é mostrado e não alterado: ${e}`,empty:`Clique duas vezes para adicionar uma nota, ou solte um arquivo aqui.`,undo:`Desfazer`,redo:`Refazer`,zoom:`Zoom`,zoomIn:`Ampliar`,zoomOut:`Reduzir`,zoomFit:`Ajustar à tela`,zoomActual:`Zoom em 100%`,zoomSelection:`Zoom na seleção`,history:`Histórico`,adding:`Adicionar à tela`,selected:`Seleção`,note:`Nota`,noteHint:`Adicionar uma nota em Markdown`,file:`Arquivo`,fileHint:`Adicionar um item ou um arquivo do projeto`,link:`Link`,linkHint:`Adicionar um link para uma página`,linkPlaceholder:`https://`,linkAdd:`Adicionar`,group:`Agrupar`,groupHint:`Colocar a seleção em um grupo`,color:`Cor`,noColor:`Sem cor`,colors:{1:`Vermelho`,2:`Laranja`,3:`Amarelo`,4:`Verde`,5:`Ciano`,6:`Roxo`},find:`Procurar um item ou um arquivo`,items:`Itens`,media:`Mídia`,nothingFound:`Nada corresponde`,open:`Abrir`,openHint:`Abrir no seu próprio editor`,openLinkHint:`Abrir a página no navegador`,delete:`Excluir`,label:`Rótulo`,missing:e=>`${e} não está no projeto`,unknownType:e=>`Um nó “${e}”, mantido como está`,uploadFailed:e=>`Não foi possível adicionar o arquivo: ${e}`,edits:{add:`Adicionar`,move:`Mover`,resize:`Redimensionar`,type:`Digitação`,delete:`Excluir`,color:`Cor`,group:`Agrupar`,connect:`Conectar`,label:`Rótulo`}}});function Va(){return Ba.of(o()?.locale)}var Ha={1:`#cf5f5a`,2:`#d98a45`,3:`#c9a63a`,4:`#579f67`,5:`#459fb2`,6:`#8f78bd`},Ua=e=>e===void 0?void 0:Ha[e]??(/^#[0-9a-f]{3,8}$/iu.test(e)?e:void 0);function Wa({target:e,className:t}){return e.type===`item`?(0,J.jsx)(ke,{name:e.item.kindInfo?.icon,className:t}):e.type===`media`?e.mime.startsWith(`audio/`)?(0,J.jsx)(_,{className:t,"aria-hidden":!0}):(0,J.jsx)(De,{className:t,"aria-hidden":!0}):(0,J.jsx)(w,{className:t,"aria-hidden":!0})}var Ga=e=>e.slice(e.lastIndexOf(`/`)+1);function Ka(e){return e.type===`item`?e.item.title??Ga(e.item.id):Ga(e.path)}function qa({text:e}){return(0,J.jsx)(`div`,{className:`text-ink size-full overflow-hidden px-4 py-3 text-base leading-relaxed [&_a]:text-pencil-text [&_a]:underline [&_blockquote]:border-l-2 [&_blockquote]:pl-3 [&_code]:font-mono [&_code]:text-sm [&_h1]:mb-2 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:mb-2 [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:mb-1 [&_h3]:font-semibold [&_li]:mb-0.5 [&_ol]:mb-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:mb-2 [&_strong]:font-semibold [&_ul]:mb-2 [&_ul]:list-disc [&_ul]:pl-5`,"data-testid":`canvas-text`,children:(0,J.jsx)(Ni,{remarkPlugins:[ja],children:e})})}function Ja({preview:e}){switch(e.type){case`picture`:return(0,J.jsx)(`img`,{src:`data:${e.image.mime};base64,${e.image.data}`,alt:``,draggable:!1,className:`pointer-events-none size-full object-contain select-none`,"data-testid":`canvas-preview-picture`});case`text`:return(0,J.jsx)(`div`,{className:`text-ink size-full overflow-hidden px-5 py-4 text-base leading-relaxed`,"data-testid":`canvas-preview-text`,children:e.lines.map((e,t)=>(0,J.jsx)(`p`,{className:t===0?`mb-2 font-semibold`:`mb-1`,children:e},t))});case`table`:return(0,J.jsx)(`div`,{className:`size-full overflow-hidden p-2 text-xs`,"data-testid":`canvas-preview-table`,children:(0,J.jsxs)(`table`,{className:`w-full border-collapse`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsx)(`tr`,{children:e.columns.map((e,t)=>(0,J.jsx)(`th`,{className:`border-rule truncate border px-1 text-left font-semibold`,children:e},t))})}),(0,J.jsx)(`tbody`,{children:e.rows.map((e,t)=>(0,J.jsx)(`tr`,{children:e.map((e,t)=>(0,J.jsx)(`td`,{className:`border-rule truncate border px-1`,children:e},t))},t))})]})})}}function Ya({icon:e,words:t,className:n}){return(0,J.jsxs)(`div`,{className:u(`text-lead flex size-full flex-col items-center justify-center gap-2 p-3 text-center text-xs [&_svg]:size-6`,n),children:[e,(0,J.jsx)(`span`,{className:`max-w-full truncate`,children:t})]})}function Xa({target:e,project:t}){let n=Fa(a(),e.item.id,t?.revision);return n===void 0||n===`none`?(0,J.jsx)(Ya,{icon:(0,J.jsx)(Wa,{target:e}),words:e.item.id}):(0,J.jsxs)(`div`,{className:`relative size-full`,children:[(0,J.jsx)(Ja,{preview:n}),n.type===`picture`&&n.duration!==void 0?(0,J.jsx)(`span`,{className:`bg-ink/70 text-paper absolute right-2 bottom-2 rounded-xs px-1 text-xs tabular-nums`,children:`${String(Math.floor(n.duration/60))}:${String(Math.round(n.duration%60)).padStart(2,`0`)}`}):null]})}function Za({target:e,active:t}){let n=La(a(),e.path),r=i(e.mime),o=(0,J.jsx)(Ya,{icon:(0,J.jsx)(Wa,{target:e}),words:e.path});return!r||n===void 0?o:(0,J.jsx)(Y.Suspense,{fallback:o,children:(0,J.jsx)(r,{url:n,path:e.path,type:e.mime,active:t})})}function Qa({node:e,project:t,active:n}){let r=Va(),i=a(),o=e.file??``,s=Na(t,o),c=za(i,s.type===`item`?void 0:s.path);return s.type===`item`?(0,J.jsx)(Xa,{target:s,project:t}):c===!1||o===``?(0,J.jsx)(Ya,{icon:(0,J.jsx)(Ye,{"aria-hidden":!0}),words:r.missing(o),className:`text-problem-text`}):s.type===`media`?(0,J.jsx)(Za,{target:s,active:n}):(0,J.jsx)(Ya,{icon:(0,J.jsx)(w,{"aria-hidden":!0}),words:o})}function $a({node:e,project:t}){let n=o()?.locale??`en`,r=Na(t,e.file??``),i=r.type===`item`&&r.item.kindInfo?p(r.item.kindInfo,n):void 0;return(0,J.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,title:e.file,children:[(0,J.jsx)(Wa,{target:r,className:`size-3.5 flex-none`}),(0,J.jsx)(`span`,{className:`truncate`,children:Ka(r)}),i===void 0?null:(0,J.jsx)(`span`,{className:`text-lead-soft flex-none`,children:i})]})}function eo({url:e}){let t=e,n=``;try{let r=new URL(e);t=r.host,n=`${r.pathname===`/`?``:r.pathname}${r.search}`}catch{}return(0,J.jsxs)(`div`,{className:`flex size-full flex-col justify-center gap-1 overflow-hidden px-4 py-3`,"data-testid":`canvas-link`,children:[(0,J.jsxs)(`span`,{className:`text-ink flex min-w-0 items-center gap-2 font-semibold`,children:[(0,J.jsx)(T,{className:`text-lead size-4 flex-none`,"aria-hidden":!0}),(0,J.jsx)(`span`,{className:`truncate`,children:t})]}),n===``?null:(0,J.jsx)(`span`,{className:`text-lead truncate text-xs`,children:n})]})}function to({type:e}){let t=Va();return(0,J.jsx)(Ya,{icon:(0,J.jsx)(w,{"aria-hidden":!0}),words:t.unknownType(e)})}var no=typeof navigator<`u`&&navigator.userAgent.includes(`Mac`)?`⌘`:`Ctrl+`,Q=(e,t)=>t===void 0?e:`${e} (${t})`,ro=`application/x-allyhub-canvas-note`,io=`bg-sheet border-rule shadow-overlay pointer-events-auto flex items-center gap-0.5 rounded-lg border p-1`,ao=/\.(?:png|jpe?g|webp|avif|gif|svg|mp4|webm|mov|mp3|wav|m4a|ogg|aac|flac)$/iu;async function oo(e,t,n=3){let r=await e(t).catch(()=>({files:[],dirs:[]})),i=r.files.map(e=>e.path).filter(e=>ao.test(e));if(n===0)return i;let a=await Promise.all(r.dirs.filter(e=>!e.split(`/`).some(e=>e.startsWith(`.`)||e===`node_modules`)).map(t=>oo(e,t,n-1)));return[...i,...a.flat()]}function so(e){let t=Va(),n=a(),r=o()?.locale??`en`,[i,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)([]);(0,Y.useEffect)(()=>{let e=!0;return oo(e=>n[`files/list`]({dir:e}),``).then(t=>{e&&l([...new Set(t)].sort())}),()=>{e=!1}},[n]);let u=i.trim().toLowerCase(),d=(0,Y.useMemo)(()=>(e.project?.items??[]).filter(t=>t.entry!==e.self&&(u===``||t.id.toLowerCase().includes(u)||(t.title??``).toLowerCase().includes(u))),[e.project,e.self,u]),f=c.filter(e=>u===``||e.toLowerCase().includes(u));return(0,J.jsxs)(`div`,{className:`flex w-80 flex-col gap-2`,"data-testid":`canvas-picker`,children:[(0,J.jsx)(Oe,{autoFocus:!0,value:i,placeholder:t.find,"aria-label":t.find,onChange:e=>{s(e.target.value)}}),(0,J.jsxs)(`div`,{className:`flex h-80 flex-col overflow-y-auto`,children:[d.length>0&&(0,J.jsx)(`p`,{className:`text-lead px-2 pt-1 text-xs font-semibold`,children:t.items}),d.map(t=>(0,J.jsx)(je,{size:`dense`,"data-testid":`canvas-pick`,"data-path":t.entry,onClick:()=>{e.onPick(t.entry)},meta:t.kindInfo?(0,J.jsx)(`span`,{className:`text-lead-soft text-xs`,children:p(t.kindInfo,r)}):void 0,children:t.title??t.id},t.id)),f.length>0&&(0,J.jsx)(`p`,{className:`text-lead px-2 pt-2 text-xs font-semibold`,children:t.media}),f.map(t=>(0,J.jsx)(je,{size:`dense`,"data-testid":`canvas-pick`,"data-path":t,onClick:()=>{e.onPick(t)},children:t},t)),d.length===0&&f.length===0&&(0,J.jsx)(`p`,{className:`text-lead px-2 py-1 text-xs`,children:t.nothingFound})]})]})}function co(e){let t=Va(),[n,r]=(0,Y.useState)(!1),[i,a]=(0,Y.useState)(!1),[o,s]=(0,Y.useState)(``),c=()=>{let t=o.trim();t!==``&&(a(!1),s(``),e.onLink(/^[a-z][a-z0-9+.-]*:/iu.test(t)?t:`https://${t}`))};return(0,J.jsxs)(`div`,{role:`toolbar`,"aria-label":t.adding,"data-testid":`canvas-add-bar`,className:u(io,`absolute bottom-3 left-1/2 -translate-x-1/2`),children:[(0,J.jsx)(C,{icon:!0,draggable:!0,"aria-label":t.note,title:t.noteHint,"data-testid":`canvas-add-note`,onClick:e.onNote,onDragStart:e=>{e.dataTransfer.setData(ro,`text`),e.dataTransfer.effectAllowed=`copy`},children:(0,J.jsx)(et,{})}),(0,J.jsxs)(v,{open:n,onOpenChange:r,children:[(0,J.jsx)(ne,{asChild:!0,children:(0,J.jsx)(C,{icon:!0,"aria-label":t.file,title:t.fileHint,"data-testid":`canvas-add-file`,children:(0,J.jsx)(Qe,{})})}),(0,J.jsx)(ue,{side:`top`,align:`center`,className:`w-auto p-2`,children:(0,J.jsx)(so,{project:e.project,self:e.self,onPick:t=>{r(!1),e.onFile(t)}})})]}),(0,J.jsxs)(v,{open:i,onOpenChange:a,children:[(0,J.jsx)(ne,{asChild:!0,children:(0,J.jsx)(C,{icon:!0,"aria-label":t.link,title:t.linkHint,"data-testid":`canvas-add-link`,children:(0,J.jsx)(x,{})})}),(0,J.jsxs)(ue,{side:`top`,align:`center`,className:`flex w-80 gap-2 p-2`,children:[(0,J.jsx)(Oe,{autoFocus:!0,value:o,placeholder:t.linkPlaceholder,"aria-label":t.link,"data-testid":`canvas-link-url`,onChange:e=>{s(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&c()}}),(0,J.jsx)(C,{"data-testid":`canvas-link-add`,disabled:o.trim()===``,onClick:c,children:t.linkAdd})]})]}),(0,J.jsx)(C,{icon:!0,"aria-label":t.group,title:Q(t.groupHint,`${no}G`),disabled:!e.groupable,"data-testid":`canvas-group`,onClick:e.onGroup,children:(0,J.jsx)(y,{})})]})}function lo(e){let t=Va();return(0,J.jsxs)(`div`,{className:u(io,`absolute top-3 right-3 flex-col`),"data-testid":`canvas-view-controls`,children:[(0,J.jsxs)(`div`,{role:`toolbar`,"aria-label":t.zoom,"aria-orientation":`vertical`,className:`flex flex-col gap-0.5`,children:[(0,J.jsx)(C,{icon:!0,"aria-label":t.zoomIn,title:Q(t.zoomIn,`${no}+`),"data-testid":`canvas-zoom-in`,onClick:()=>{e.onZoom(`in`)},children:(0,J.jsx)(Ee,{})}),(0,J.jsx)(C,{icon:!0,"aria-label":t.zoomOut,title:Q(t.zoomOut,`${no}−`),"data-testid":`canvas-zoom-out`,onClick:()=>{e.onZoom(`out`)},children:(0,J.jsx)(Se,{})}),(0,J.jsx)(C,{icon:!0,"aria-label":t.zoomFit,title:Q(t.zoomFit,`⇧1`),"data-testid":`canvas-zoom-fit`,onClick:()=>{e.onZoom(`fit`)},children:(0,J.jsx)(Ze,{})}),(0,J.jsx)(C,{icon:!0,"aria-label":t.zoomActual,title:Q(t.zoomActual,`⇧0`),"data-testid":`canvas-zoom-actual`,className:`text-[11px] tabular-nums`,onClick:()=>{e.onZoom(`actual`)},children:`1:1`})]}),e.history?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`bg-rule my-0.5 h-px w-5`,"aria-hidden":!0}),(0,J.jsxs)(`div`,{role:`toolbar`,"aria-label":t.history,"aria-orientation":`vertical`,className:`flex flex-col gap-0.5`,children:[(0,J.jsx)(C,{icon:!0,"aria-label":t.undo,title:Q(t.undo,`${no}Z`),"data-testid":`canvas-undo`,disabled:!e.history.canUndo,onClick:e.history.onUndo,children:(0,J.jsx)(we,{})}),(0,J.jsx)(C,{icon:!0,"aria-label":t.redo,title:Q(t.redo,`⇧${no}Z`),"data-testid":`canvas-redo`,disabled:!e.history.canRedo,onClick:e.history.onRedo,children:(0,J.jsx)(Ce,{})})]})]}):null]})}var uo=8,fo=20,po=8;function mo(e){let t=Va(),n=(0,Y.useRef)(null),[r,i]=(0,Y.useState)({width:0,height:0});(0,Y.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=()=>{i({width:e.offsetWidth,height:e.offsetHeight})};t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}},[]);let a=e.box.left+e.box.width/2,o=Math.min(Math.max(po,a-r.width/2),Math.max(po,e.view.width-po-r.width)),s=e.box.top-Math.max(e.above,fo)-uo-r.height,c=e.box.top+e.box.height+uo,l=s>=po?s:c+r.height<=e.view.height-po?c:po,d=e.color===void 0?void 0:Ha[e.color];return(0,J.jsxs)(`div`,{ref:n,role:`toolbar`,"aria-label":t.selected,"data-testid":`canvas-selection-bar`,className:u(io,`absolute`),style:{left:o,top:l,...r.width===0?{opacity:0,pointerEvents:`none`}:{}},children:[e.onColor?(0,J.jsxs)(v,{children:[(0,J.jsx)(ne,{asChild:!0,children:(0,J.jsx)(C,{icon:!0,"aria-label":t.color,title:t.color,"data-testid":`canvas-color`,children:(0,J.jsx)(b,{style:d?{color:d}:void 0})})}),(0,J.jsxs)(ue,{side:`top`,align:`center`,className:`flex w-auto items-center gap-2 p-2`,role:`radiogroup`,"aria-label":t.color,children:[(0,J.jsx)(Me,{color:`linear-gradient(135deg, transparent 45%, var(--color-lead) 45%, var(--color-lead) 55%, transparent 55%)`,label:t.noColor,checked:e.color===void 0,"data-testid":`canvas-color-none`,onClick:()=>{e.onColor?.(void 0)}}),tt.map(n=>(0,J.jsx)(Me,{color:Ha[n]??``,label:t.colors[n],checked:e.color===n,"data-testid":`canvas-color-${n}`,onClick:()=>{e.onColor?.(n)}},n))]})]}):null,e.onDelete?(0,J.jsx)(C,{icon:!0,"aria-label":t.delete,title:Q(t.delete,`⌫`),"data-testid":`canvas-delete`,onClick:e.onDelete,children:(0,J.jsx)(Te,{})}):null,e.open?(0,J.jsx)(C,{icon:!0,"aria-label":t.open,title:e.open.link?t.openLinkHint:t.openHint,"data-testid":`canvas-open`,onClick:e.open.run,children:(0,J.jsx)($e,{})}):null,(0,J.jsx)(C,{icon:!0,"aria-label":t.zoomSelection,title:Q(t.zoomSelection,`⇧2`),"data-testid":`canvas-zoom-selection`,onClick:e.onZoomTo,children:(0,J.jsx)(Xe,{})})]})}function ho(e,t){let n=e.split(`
|
|
16
|
+
`)[t-1]?.trim().replace(/,$/u,``);if(n?.startsWith(`{`)===!0)try{let e=JSON.parse(n);return typeof e.fromNode==`string`?e.fromNode:typeof e.id==`string`?e.id:void 0}catch{return}}function go(e){let t=e.nodes.find(e=>e.after!==void 0)??e.nodes[0];if(t)return t.id;let n=e.edges[0],r=n?.after??n?.before;return typeof r?.fromNode==`string`?r.fromNode:void 0}var _o=class e{path;session;canvas;unreadable;revision=0;landed;snapshot;listeners=new Set;amending;stops=[];constructor(e,t){this.path=e,this.session=t;let n=ct(t.text);this.canvas=n.readable?n.canvas:P,this.unreadable=n.readable?void 0:n.problems.map(e=>e.message).join(` `),this.snapshot=this.make(),t.attach({save:e=>{if(this.unreadable!==void 0)return;let t=dt(this.canvas);return t===e?void 0:t},take:(e,t,n)=>{let r=ct(e);if(!r.readable)this.canvas=P,this.unreadable=r.problems.map(e=>e.message).join(` `);else{let e=ct(t),i=n?.kind===`agent`&&e.readable?go(B(e.canvas,r.canvas)):void 0;i!==void 0&&(this.landed={id:i,at:Date.now()}),this.canvas=this.unreadable!==void 0||!e.readable?r.canvas:gt(e.canvas,this.canvas,r.canvas),this.unreadable=void 0}this.emit()}}),this.stops.push(t.onState(()=>{this.emit()}),t.onUndo(()=>{this.emit()}))}static async open(t,n){return new e(n,await m.open(t,n))}make(){return{canvas:this.canvas,state:this.session.state,canUndo:this.session.canUndo,canRedo:this.session.canRedo,unreadable:this.unreadable,revision:this.revision,landed:this.landed}}emit(){this.revision+=1,this.snapshot=this.make();for(let e of this.listeners)e()}get(){return this.snapshot}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}get text(){return this.session.text}edit(e,t,n){if(this.unreadable!==void 0)return;let r=this.canvas,i=t(r);if(i===r)return;if(n!==void 0&&this.amending?.key===n&&this.session.canUndo){this.session.undo(),this.canvas=i,this.push(this.amending.label,B(this.amending.from,i));return}let a=B(r,i);yt(a)||(this.canvas=i,this.amending=n===void 0?void 0:{key:n,from:r,label:e},this.push(e,a))}settle(){this.amending=void 0}push(e,t){this.session.pushEdit({label:e,undo:()=>{this.canvas=vt(this.canvas,t,`before`),this.emit()},redo:()=>{this.canvas=vt(this.canvas,t,`after`),this.emit()}}),this.emit()}undo(){this.amending=void 0,this.session.undo()}redo(){this.amending=void 0,this.session.redo()}flush(){return this.session.flush()}async close(){for(let e of this.stops.splice(0))e();await this.session.close()}},vo=.1,yo=e=>Math.min(4,Math.max(vo,e)),bo=(e,t)=>({x:(t.x-e.x)*e.zoom,y:(t.y-e.y)*e.zoom}),xo=(e,t)=>({x:t.x/e.zoom+e.x,y:t.y/e.zoom+e.y});function So(e,t,n){let r=yo(n),i=xo(e,t);return{x:i.x-t.x/r,y:i.y-t.y/r,zoom:r}}var $=e=>({left:e.x,top:e.y,width:e.width,height:e.height});function Co(e,t,n=48){if(e.length===0||t.width<=0||t.height<=0)return{x:-t.width/2,y:-t.height/2,zoom:1};let r=Math.min(...e.map(e=>e.left)),i=Math.min(...e.map(e=>e.top)),a=Math.max(...e.map(e=>e.left+e.width)),o=Math.max(...e.map(e=>e.top+e.height)),s=yo(Math.min((t.width-2*n)/Math.max(1,a-r),(t.height-2*n)/Math.max(1,o-i),1));return{x:(r+a)/2-t.width/2/s,y:(i+o)/2-t.height/2/s,zoom:s}}function wo(e,t){switch(t){case`top`:return{x:e.left+e.width/2,y:e.top};case`bottom`:return{x:e.left+e.width/2,y:e.top+e.height};case`left`:return{x:e.left,y:e.top+e.height/2};case`right`:return{x:e.left+e.width,y:e.top+e.height/2}}}function To(e,t){let n=[[`top`,Math.abs(t.y-e.top)],[`bottom`,Math.abs(t.y-(e.top+e.height))],[`left`,Math.abs(t.x-e.left)],[`right`,Math.abs(t.x-(e.left+e.width))]];return n.sort((e,t)=>e[1]-t[1]),n[0]?.[0]??`right`}function Eo(e,t){let n=t.left+t.width/2-(e.left+e.width/2),r=t.top+t.height/2-(e.top+e.height/2);return Math.abs(n)*e.height>=Math.abs(r)*e.width?n>=0?`right`:`left`:r>=0?`bottom`:`top`}var Do={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function Oo(e,t,n,r){let i=Math.max(40,Math.hypot(n.x-e.x,n.y-e.y)/3),a=Do[t],o={x:e.x+a.x*i,y:e.y+a.y*i},s=r?Do[r]:{x:0,y:0},c={x:n.x+s.x*i,y:n.y+s.y*i},l=t=>{let r=1-t;return{x:r*r*r*e.x+3*r*r*t*o.x+3*r*t*t*c.x+t*t*t*n.x,y:r*r*r*e.y+3*r*r*t*o.y+3*r*t*t*c.y+t*t*t*n.y}},u=e=>String(Math.round(e*10)/10),d=r?{x:-s.x,y:-s.y}:(()=>{let e=l(.95),t=Math.hypot(n.x-e.x,n.y-e.y)||1;return{x:(n.x-e.x)/t,y:(n.y-e.y)/t}})();return{d:`M ${u(e.x)} ${u(e.y)} C ${u(o.x)} ${u(o.y)} ${u(c.x)} ${u(c.y)} ${u(n.x)} ${u(n.y)}`,mid:l(.5),end:n,endDir:d}}function ko(e,t,n){let r={x:e.x-t.x*n,y:e.y-t.y*n},i={x:-t.y*n*.5,y:t.x*n*.5};return[e,{x:r.x+i.x,y:r.y+i.y},{x:r.x-i.x,y:r.y-i.y}].map(e=>`${String(e.x)},${String(e.y)}`).join(` `)}function Ao(e,t){let n=e.filter(e=>t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height);return[...n].reverse().find(e=>e.type!==`group`)??n.at(-1)}function jo(e,t,n,r=48){let i=r/t.zoom,a=(e,n,r,a)=>{let o=a/t.zoom;return n+2*i>o||e-i<r?e-i:e+n+i>r+o?e+n+i-o:r},o=a(e.left,e.width,t.x,n.width),s=a(e.top,e.height,t.y,n.height);return o===t.x&&s===t.y?void 0:{...t,x:o,y:s}}function Mo(e,t,n,r,i){let a=e=>({x:n.x+(e.x-t.x)*t.zoom,y:n.y+(e.y-t.y)*t.zoom,width:e.width*t.zoom,height:e.height*t.zoom});return[...e].reverse().filter(e=>l(r,a(e))).map(e=>{let t=bt(i.text,e.id),n={path:i.file,...t===void 0?{}:{line:t}};switch(e.type){case`text`:return{name:`the note ${e.id} on the canvas`,source:n,...e.text===void 0?{}:{text:e.text}};case`file`:{let t=Na(i.project,e.file??``),r=t.type===`item`?`the ${t.item.kindInfo?.noun??t.item.kind??`item`} ${t.item.id} (${t.item.entry})`:`the file ${t.path}`;return{name:`node ${e.id}, showing ${r}`,source:n}}case`link`:return{name:`node ${e.id}, a link to ${e.url??``}`,source:n};case`group`:return{name:`the group ${e.label===void 0?e.id:`"${e.label}"`}`,source:n};default:return{name:`node ${e.id}, of type ${e.type}`,source:n}}})}function No(e,t,n,r){let i=xo(t,{x:r.x-n.x,y:r.y-n.y}),a=[...e].reverse().find(e=>i.x>=e.x&&i.x<=e.x+e.width&&i.y>=e.y&&i.y<=e.y+e.height);return a?`on the canvas, over node ${a.id}`:`on the canvas at ${String(Math.round(i.x))}, ${String(Math.round(i.y))}`}var Po=3e4,Fo=3,Io=6,Lo=40,Ro=24,zo=6,Bo=14,Vo=10;function Ho(e,t){let n=1/Math.max(t,.5);if(e.type===`file`)return Math.max(16*n,14);if(e.type===`group`)return 20*n+4}var Uo={text:{width:260,height:140},file:{width:480,height:300},link:{width:320,height:96}},Wo=24,Go=typeof navigator<`u`&&navigator.userAgent.includes(`Mac`),Ko=Go?`⌘G`:`Ctrl+G`,qo=e=>typeof e==`object`&&!!e&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.zoom==`number`&&e.zoom>0,Jo={nodes:new Set,edges:new Set},Yo=(e,t,n)=>({...e,nodes:e.nodes.map(e=>typeof e.id==`string`&&t.has(e.id)?n(e):e)}),Xo=(e,t,n)=>({...e,edges:e.edges.map(e=>typeof e.id==`string`&&t.has(e.id)?n(e):e)}),Zo=e=>{let t=``,n=new Uint8Array(e);for(let e=0;e<n.length;e+=32768)t+=String.fromCharCode(...n.subarray(e,e+32768));return btoa(t)};function Qo({doc:e,path:t}){let n=Va(),i=a(),c=o(),l=Ma(),f=(0,Y.useSyncExternalStore)(t=>e.subscribe(t),()=>e.get()),p=c?.readOnly===!0||f.unreadable!==void 0,m=(0,Y.useMemo)(()=>lt(f.canvas),[f.canvas]),h=(0,Y.useMemo)(()=>ut(f.canvas),[f.canvas]),g=(0,Y.useMemo)(()=>new Map(m.map(e=>[e.id,e])),[m]),_=(0,Y.useRef)(null),[v,ne]=(0,Y.useState)({width:0,height:0}),ue=qo(c?.place)?c.place:void 0,[y,b]=(0,Y.useState)(ue),_e=(0,Y.useMemo)(()=>v.width===0?{x:0,y:0,zoom:1}:Co(m.map($),v),[m,v]),x=y??_e,ve=(0,Y.useRef)(x);(0,Y.useEffect)(()=>{ve.current=x});let{agent:ye,following:be}=r(),xe=ee(),Se=(()=>{if(ye?.doing===void 0)return;let n=f.landed,r=n&&n.at>=ye.at-Po,i=ye.source?.path===t;if(r&&i)return n.id;let a=i?ye.source?.from:void 0,o=a===void 0?void 0:ho(e.text,a);return o!==void 0&&g.has(o)?o:r?n.id:void 0})(),Ce=Se===void 0?void 0:g.get(Se),we=be?Ce:void 0,[Te,Ee]=(0,Y.useState)();if(we?.id!==Te&&(Ee(we?.id),we&&v.width>0)){let e=jo($(we),x,v);e&&b(e)}let De=()=>{y===void 0&&b(x)},[S,C]=(0,Y.useState)(Jo),w=(0,Y.useMemo)(()=>{let e=[...S.nodes].filter(e=>g.has(e)),t=[...S.edges].filter(e=>h.some(t=>t.id===e));return e.length===S.nodes.size&&t.length===S.edges.size?S:{nodes:new Set(e),edges:new Set(t)}},[S,g,h]),[Oe,ke]=(0,Y.useState)(),[T,je]=(0,Y.useState)({}),Me=(0,Y.useRef)({}),E=e=>{Me.current=e,je(e)},[D,O]=(0,Y.useState)(),k=(0,Y.useRef)(void 0),[A,Ne]=(0,Y.useState)(),Pe=(0,Y.useRef)(!1);(0,Y.useLayoutEffect)(()=>{let e=_.current;if(!e)return;let t=new ResizeObserver(()=>{ne({width:e.clientWidth,height:e.clientHeight})});return t.observe(e),()=>{t.disconnect()}},[]),(0,Y.useEffect)(()=>{if(y===void 0)return;let e=setTimeout(()=>{i[`editor/place`]({place:{x:Math.round(y.x),y:Math.round(y.y),zoom:Math.round(y.zoom*1e3)/1e3}}).catch(()=>void 0)},400);return()=>{clearTimeout(e)}},[i,y]);let Fe=()=>{let e=_.current?.getBoundingClientRect();return{x:e?.left??0,y:e?.top??0}},Ie=e=>{let t=Fe();return xo(x,{x:e.clientX-t.x,y:e.clientY-t.y})},Le=()=>xo(x,{x:v.width/2,y:v.height/2});(0,Y.useEffect)(()=>{let e=_.current;if(!e)return;let t=t=>{if(t.target?.closest(`[data-canvas-scrolls]`))return;t.preventDefault();let n=e.getBoundingClientRect(),r={x:t.clientX-n.left,y:t.clientY-n.top};b(e=>{let n=e??ve.current;if(t.ctrlKey||t.metaKey)return So(n,r,n.zoom*Math.exp(-t.deltaY*.01));let i=t.shiftKey&&t.deltaX===0?t.deltaY:t.deltaX,a=t.shiftKey&&t.deltaX===0?0:t.deltaY;return{...n,x:n.x+i/n.zoom,y:n.y+a/n.zoom}})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[]);let j=(0,Y.useCallback)(e=>{if(e===`fit`||typeof e!=`string`){let t=e===`fit`?m.map($):e;t.length>0&&b(Co(t,v))}else b(t=>{let n=t??ve.current,r=e===`actual`?1:e===`in`?n.zoom*1.25:n.zoom/1.25;return So(n,{x:v.width/2,y:v.height/2},yo(r))})},[m,v]),Re=e=>{let t=new Map;for(let n of e){let e=g.get(n);if(e&&(t.set(n,$(e)),e.type===`group`))for(let n of m)n.id!==e.id&&n.x>=e.x&&n.y>=e.y&&n.x+n.width<=e.x+e.width&&n.y+n.height<=e.y+e.height&&t.set(n.id,$(n))}return t},M=e=>{C(e)},ze=(e,t,n,r)=>{let i={left:e.x-t/2,top:e.y-n/2,width:t,height:n};if(!r)return i;let a=e=>m.filter(t=>t.type!==`group`&&t.x<e.left+e.width&&t.x+t.width>e.left&&t.y<e.top+e.height&&t.y+t.height>e.top);for(let e=0;e<50;e++){let e=a(i);if(e.length===0)break;i={...i,left:Math.max(...e.map(e=>e.x+e.width))+Ro}}let o=(i.left+i.width-x.x)*x.zoom,s=(i.top+i.height-x.y)*x.zoom;return(o>v.width||s>v.height||i.left<x.x||i.top<x.y)&&b({...x,x:i.left+i.width/2-v.width/2/x.zoom,y:i.top+i.height/2-v.height/2/x.zoom}),i},Be=(t,r,i=!1)=>{De();let a=ft(f.canvas),o=typeof t.width==`number`?t.width:260,s=typeof t.height==`number`?t.height:140,c=ze(r??Le(),o,s,r===void 0),l={id:a,...t,x:R(c.left),y:R(c.top),width:R(o),height:R(s)},u={id:a,type:l.type,...Object.fromEntries(Object.entries(l).filter(([e])=>![`id`,`type`,`x`,`y`,`width`,`height`].includes(e))),x:l.x,y:l.y,width:l.width,height:l.height};return e.edit(n.edits.add,e=>({...e,nodes:[...e.nodes,u]})),M({nodes:new Set([a]),edges:new Set}),i&&t.type===`text`&&O({type:`text`,id:a,text:``}),a},Ve=e=>Be({type:`text`,text:``,...Uo.text},e,!0),He=(e,t)=>Be({type:`file`,file:e,...Uo.file},t),Ue=(e,t)=>Be({type:`link`,url:e,...Uo.link},t),We=()=>{if(w.nodes.size===0&&w.edges.size===0)return;let t=w.nodes;e.edit(n.edits.delete,e=>({...e,nodes:e.nodes.filter(e=>!(typeof e.id==`string`&&t.has(e.id))),edges:e.edges.filter(e=>!(typeof e.id==`string`&&w.edges.has(e.id))&&!t.has(String(e.fromNode))&&!t.has(String(e.toNode)))})),M(Jo)},Ge=()=>{let t=m.filter(e=>w.nodes.has(e.id));if(t.length===0)return;let r=fe(t.map($)),i=ft(f.canvas),a=t.some(e=>e.type===`file`)?48:Ro,o={id:i,type:`group`,x:R(r.left-Ro),y:R(r.top-a),width:R(r.width+48),height:R(r.height+Ro+a)};e.edit(n.edits.group,e=>{let t=e.nodes.findIndex(e=>typeof e.id==`string`&&w.nodes.has(e.id)),n=[...e.nodes];return n.splice(t<0?0:t,0,o),{...e,nodes:n}}),M({nodes:new Set([i]),edges:new Set}),O({type:`group`,id:i,text:``})},Ke=t=>{e.edit(n.edits.color,e=>Xo(Yo(e,w.nodes,e=>z(e,{color:t})),w.edges,e=>z(e,{color:t})))},qe=()=>{let e=[...m.filter(e=>w.nodes.has(e.id)).map(e=>e.color),...h.filter(e=>w.edges.has(e.id)).map(e=>e.color)],t=e[0];return e.length>0&&e.every(e=>e===t)?t:void 0},Je=()=>[...m.filter(e=>w.nodes.has(e.id)).map(P),...h.filter(e=>w.edges.has(e.id)).flatMap(e=>{let t=ot(e);return t?[he(t.start,t.end)]:[]})],N=(t=D)=>{if(!t)return;O(void 0);let r=t.text;t.type===`edge`?e.edit(n.edits.label,e=>Xo(e,new Set([t.id]),e=>z(e,{label:r.trim()===``?void 0:r}))):t.type===`group`?e.edit(n.edits.label,e=>Yo(e,new Set([t.id]),e=>z(e,{label:r.trim()===``?void 0:r}))):e.edit(n.edits.type,e=>Yo(e,new Set([t.id]),e=>z(e,{text:r}))),_.current?.focus()},Ye=e=>{e.type===`file`&&e.file?i[`items/open`]({target:{type:`file`,path:e.file}}).catch(()=>void 0):e.type===`link`&&e.url&&/^https?:\/\//u.test(e.url)&&i[`items/open`]({target:{type:`browser`,url:e.url}}).catch(()=>void 0)},Xe=e=>{De(),D&&N();let t=e.target;if(t.closest(`[data-canvas-own]`))return;_.current?.focus();let n=Ie(e);if(e.button===1||e.button===0&&Pe.current){k.current={type:`pan`,start:{x:e.clientX,y:e.clientY},camera:x},Ne(`pan`),e.currentTarget.setPointerCapture(e.pointerId);return}if(e.button!==0)return;let r=t.closest(`[data-handle]`)?.dataset.handle,i=t.closest(`[data-connector]`),a=t.closest(`[data-edge]`),o=t.closest(`[data-node]`);if(!(p&&(r||i))){if(r){let e=[...w.nodes][0],t=e===void 0?void 0:g.get(e);if(!t)return;k.current={type:`resize`,id:t.id,handle:r,start:n,frame:$(t)}}else if(i){let e=i.dataset.connector??``,t=i.dataset.side??`right`;k.current={type:`connect`,from:e,side:t,start:n},E({connect:{from:e,side:t,to:n}})}else if(a){let t=a.dataset.edge??``,n=e.shiftKey||e.metaKey;M(n?{nodes:w.nodes,edges:new Set(w.edges.has(t)?[...w.edges].filter(e=>e!==t):[...w.edges,t])}:{nodes:new Set,edges:new Set([t])});return}else if(o){let t=o.dataset.node??``,r=e.shiftKey||e.metaKey,i=w;if(r?i={nodes:new Set(w.nodes.has(t)?[...w.nodes].filter(e=>e!==t):[...w.nodes,t]),edges:w.edges}:w.nodes.has(t)||(i={nodes:new Set([t]),edges:new Set}),M(i),p)return;k.current={type:`move`,start:n,frames:Re(i.nodes),dragged:!1}}else k.current={type:`marquee`,start:n,add:e.shiftKey},e.shiftKey||M(Jo);Ne(k.current.type),e.currentTarget.setPointerCapture(e.pointerId)}},Ze=e=>{let t=k.current;if(!t){let t=e.target,n=Ie(e),r=24/x.zoom,i=t.closest(`[data-connector]`)?.dataset.connector??[...m].reverse().find(e=>e.type!==`group`&&n.x>=e.x-r&&n.x<=e.x+e.width+r&&n.y>=e.y-r&&n.y<=e.y+e.height+r)?.id??t.closest(`[data-node]`)?.dataset.node;i!==Oe&&ke(i);return}let n=Ie(e);if(t.type===`pan`){b({...t.camera,x:t.camera.x-(e.clientX-t.start.x)/t.camera.zoom,y:t.camera.y-(e.clientY-t.start.y)/t.camera.zoom});return}let r=Io/x.zoom;if(t.type===`move`){let i=n.x-t.start.x,a=n.y-t.start.y;if(!t.dragged&&Math.hypot(i,a)*x.zoom<Fo)return;t.dragged=!0;let o=[...t.frames.values()],s=fe(o),c=m.filter(e=>!t.frames.has(e.id)).map($),l=e.metaKey||e.ctrlKey?{frame:{...s,left:s.left+i,top:s.top+a},guides:[]}:de({...s,left:s.left+i,top:s.top+a},c,void 0,r),u=l.frame.left-s.left,d=l.frame.top-s.top,f=new Map;for(let[e,n]of t.frames)f.set(e,{...n,left:n.left+u,top:n.top+d});E({frames:f,guides:l.guides})}else if(t.type===`resize`){let i=m.filter(e=>e.id!==t.id).map($),a=me(t.frame,t.handle,n.x-t.start.x,n.y-t.start.y,{keep:e.shiftKey,min:Lo,...e.metaKey||e.ctrlKey?{}:{snap:{others:i,surface:void 0,tol:r}}});E({frames:new Map([[t.id,a.frame]]),guides:a.guides})}else if(t.type===`connect`){let e=Ao(m.filter(e=>e.id!==t.from),n);E({connect:{from:t.from,side:t.side,to:n,...e?{over:{id:e.id,side:To($(e),n)}}:{}}})}else{let e=he(t.start,n),r=m.filter(t=>t.x<e.left+e.width&&t.x+t.width>e.left&&t.y<e.top+e.height&&t.y+t.height>e.top&&(t.type!==`group`||t.x>=e.left&&t.y>=e.top&&t.x+t.width<=e.left+e.width&&t.y+t.height<=e.top+e.height));M({nodes:new Set([...t.add?w.nodes:[],...r.map(e=>e.id)]),edges:t.add?w.edges:new Set}),E({marquee:e})}},Qe=()=>{let t=k.current;k.current=void 0,Ne(void 0);let r=Me.current;if(E({}),t){if(t.type===`move`&&t.dragged&&r.frames){let t=r.frames;e.edit(n.edits.move,e=>Yo(e,new Set(t.keys()),e=>{let n=t.get(String(e.id));return n?z(e,{x:R(n.left),y:R(n.top)}):e}))}else if(t.type===`resize`&&r.frames){let i=r.frames.get(t.id);i&&e.edit(n.edits.resize,e=>Yo(e,new Set([t.id]),e=>z(e,{x:R(i.left),y:R(i.top),width:R(i.width),height:R(i.height)})))}else if(t.type===`connect`&&r.connect?.over){let i=r.connect.over,a=ft(f.canvas);e.edit(n.edits.connect,e=>({...e,edges:[...e.edges,{id:a,fromNode:t.from,fromSide:t.side,toNode:i.id,toSide:i.side}]})),M({nodes:new Set,edges:new Set([a])})}}},$e=e=>{let t=document.elementFromPoint(e.clientX,e.clientY)??e.target;if(p){let e=t.closest(`[data-node]`)?.dataset.node,n=e===void 0?void 0:g.get(e);n&&Ye(n);return}if(t.closest(`[data-canvas-own]`))return;let n=t.closest(`[data-edge]`)?.dataset.edge;if(n!==void 0){let e=h.find(e=>e.id===n);O({type:`edge`,id:n,text:e?.label??``});return}if(t.closest(`[data-group-label]`)){let e=t.closest(`[data-node]`)?.dataset.node??``;O({type:`group`,id:e,text:g.get(e)?.label??``});return}let r=t.closest(`[data-node]`)?.dataset.node,i=r===void 0?void 0:g.get(r);i?i.type===`text`?O({type:`text`,id:i.id,text:i.text??``}):i.type===`group`?O({type:`group`,id:i.id,text:i.label??``}):Ye(i):Ve(Ie(e))},et=t=>{if(t.target.closest(`textarea, input, [contenteditable]`))return;De();let r=Go?t.metaKey:t.ctrlKey;if(t.key===` `)Pe.current=!0,t.preventDefault();else if(r&&t.key.toLowerCase()===`z`)t.preventDefault(),t.shiftKey?e.redo():e.undo();else if(r&&t.key.toLowerCase()===`y`)t.preventDefault(),e.redo();else if(r&&t.key.toLowerCase()===`a`)t.preventDefault(),M({nodes:new Set(m.map(e=>e.id)),edges:new Set(h.map(e=>e.id))});else if(r&&t.key.toLowerCase()===`g`&&!p)t.preventDefault(),Ge();else if((t.key===`Delete`||t.key===`Backspace`)&&!p)t.preventDefault(),We();else if(t.key===`Escape`)M(Jo);else if(t.shiftKey&&(t.key===`!`||t.code===`Digit1`))j(`fit`);else if(t.shiftKey&&(t.key===`@`||t.code===`Digit2`))j(Je());else if(t.shiftKey&&(t.key===`)`||t.code===`Digit0`))j(`actual`);else if(r&&(t.key===`=`||t.key===`+`))t.preventDefault(),j(`in`);else if(r&&t.key===`-`)t.preventDefault(),j(`out`);else if(t.key===`Enter`&&w.nodes.size===1&&!p){let e=g.get([...w.nodes][0]??``);e?.type===`text`&&(t.preventDefault(),O({type:`text`,id:e.id,text:e.text??``}))}else if(t.key.startsWith(`Arrow`)&&w.nodes.size>0&&!p){t.preventDefault();let r=t.shiftKey?10:1,i=t.key===`ArrowLeft`?-r:t.key===`ArrowRight`?r:0,a=t.key===`ArrowUp`?-r:t.key===`ArrowDown`?r:0,o=Re(w.nodes);e.edit(n.edits.move,e=>Yo(e,new Set(o.keys()),e=>z(e,{x:R(Number(e.x)+i),y:R(Number(e.y)+a)})),`nudge`)}},tt=t=>{t.key===` `&&(Pe.current=!1),t.key.startsWith(`Arrow`)&&e.settle()},rt=e=>{if(p)return;e.preventDefault();let n=Ie(e);if(e.dataTransfer.types.includes(`application/x-allyhub-canvas-note`)){Ve(n);return}let r=[...e.dataTransfer.files];if(r.length>0){(async()=>{let e=0;for(let a of r)try{let{path:r}=await i[`files/upload`]({dir:t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``,name:a.name,data:Zo(await a.arrayBuffer())});He(r,{x:n.x+e*40,y:n.y+e*40}),e+=1}catch{}})();return}let a=(e.dataTransfer.getData(`text/uri-list`)||e.dataTransfer.getData(`text/plain`)).trim();a!==``&&(/^https?:\/\//u.test(a)?Ue(a,n):He(a.replace(/^\.\//u,``),n))};s({hold:()=>Promise.resolve({key:`${t}@${String(f.revision)}`,what:`The canvas ${t}, its nodes laid out with notes and edges`,source:{path:t}}),locate:n=>{let r=d(n)[0];return Promise.resolve({elements:Mo(m,x,Fe(),n,{file:t,text:e.text,project:l}),...r?{where:No(m,x,Fe(),r)}:{}})}});let P=e=>T.frames?.get(e.id)??$(e),F=w.nodes.size===1&&w.edges.size===0?g.get([...w.nodes][0]??``):void 0,I=x.zoom,it=m.filter(e=>e.type===`group`),at=m.filter(e=>e.type!==`group`),ot=e=>{let t=g.get(e.fromNode),n=g.get(e.toNode);if(!t||!n)return;let r=P(t),i=P(n),a=e.fromSide??Eo(r,i),o=e.toSide??Eo(i,r),s=wo(r,a),c=wo(i,o);return{...Oo(s,a,c,o),start:s,startDir:Oo(c,o,s,a).endDir}},st=e=>{let t=P(e),r=w.nodes.has(e.id),i=Ua(e.color),a=e.type===`group`,o=a?(0,J.jsx)(`div`,{"data-group-label":``,className:`text-ink absolute bottom-full left-0 max-w-full truncate rounded-sm px-1.5 py-0.5 text-sm font-semibold`,style:{marginBottom:zo/I,fontSize:14/Math.max(I,.5),background:i?`color-mix(in oklab, ${i} 22%, transparent)`:void 0},children:D?.type===`group`&&D.id===e.id?null:e.label??`\xA0`}):e.type===`file`?(0,J.jsx)(`div`,{className:`text-lead absolute bottom-full left-0 flex max-w-full text-xs`,style:{marginBottom:zo/I,fontSize:12/Math.max(I,.5)},children:(0,J.jsx)($a,{node:e,project:l})}):null;return(0,J.jsxs)(`div`,{"data-node":e.id,"data-testid":`canvas-node`,"data-type":e.type,"data-selected":r?``:void 0,className:`group/node absolute`,style:{left:t.left,top:t.top,width:t.width,height:t.height},children:[o,(0,J.jsx)(`div`,{className:u(`size-full overflow-hidden rounded-md border`,a?`border-rule-strong`:`bg-sheet border-rule motion-safe:transition-shadow`,!a&&Oe===e.id&&`border-rule-strong shadow-overlay`,r&&`outline-pencil outline-2 outline-offset-2`),style:{...i?{borderColor:i}:{},...a?{background:i?`color-mix(in oklab, ${i} 8%, transparent)`:`color-mix(in oklab, var(--color-lead) 5%, transparent)`}:e.type===`text`&&i?{background:`color-mix(in oklab, ${i} 10%, var(--color-sheet))`}:{},borderWidth:Math.max(1,1/I)},children:e.type===`text`?D?.type===`text`&&D.id===e.id?(0,J.jsx)(`textarea`,{"data-canvas-own":``,"data-testid":`canvas-typing`,autoFocus:!0,value:D.text,"aria-label":n.note,className:`text-ink size-full resize-none bg-transparent px-4 py-3 text-base leading-relaxed outline-none`,onChange:e=>{O({...D,text:e.target.value})},onBlur:()=>{N()},onKeyDown:e=>{e.stopPropagation(),e.key===`Escape`&&N()}}):(0,J.jsx)(qa,{text:e.text??``}):e.type===`file`?(0,J.jsx)(Qa,{node:e,project:l,active:Oe===e.id}):e.type===`link`?(0,J.jsx)(eo,{url:e.url??``}):a?null:(0,J.jsx)(to,{type:e.type})}),a&&D?.type===`group`&&D.id===e.id?(0,J.jsx)(`input`,{"data-canvas-own":``,"data-testid":`canvas-typing`,autoFocus:!0,value:D.text,"aria-label":n.label,className:`bg-sheet text-ink border-pencil absolute bottom-full left-0 rounded-sm border px-1.5 py-0.5 text-sm font-semibold outline-none`,style:{marginBottom:zo/I,fontSize:14/Math.max(I,.5)},onChange:e=>{O({...D,text:e.target.value})},onBlur:()=>{N()},onKeyDown:e=>{e.stopPropagation(),(e.key===`Escape`||e.key===`Enter`)&&N()}}):null]},e.id)},L=p||A!==void 0?null:m.filter(e=>e.id===Oe||w.nodes.has(e.id)).flatMap(e=>{let t=P(e),n=Bo/I,r=Ho(e,I);return nt.map(i=>{let a=wo({left:t.left-n,top:t.top-n,width:t.width+2*n,height:t.height+2*n},i),o=i===`top`&&r!==void 0?{x:a.x,y:t.top-15/I-r}:a;return(0,J.jsx)(`span`,{"data-connector":e.id,"data-side":i,"data-testid":`canvas-connector`,className:`bg-sheet border-pencil absolute rounded-full border`,style:{left:o.x,top:o.y,width:Vo/I,height:Vo/I,marginLeft:-5/I,marginTop:-5/I,borderWidth:1.5/I,cursor:`crosshair`}},`${e.id} ${i}`)})}),ct=(()=>{let e=T.connect;if(!e)return;let t=g.get(e.from);if(!t)return;let n=P(t),r=e.over?g.get(e.over.id):void 0;return Oo(wo(n,e.side),e.side,r&&e.over?wo($(r),e.over.side):e.to,e.over?.side)})(),dt=h.map(e=>{let t=ot(e);if(!t)return null;let n=w.edges.has(e.id),r=Ua(e.color)??`var(--color-lead)`,i=(n?2.5:1.75)/I;return(0,J.jsxs)(`g`,{"data-edge":e.id,"data-testid":`canvas-edge`,children:[(0,J.jsx)(`path`,{d:t.d,stroke:`transparent`,strokeWidth:14/I,fill:`none`,pointerEvents:`stroke`}),(0,J.jsx)(`path`,{d:t.d,stroke:n?`var(--color-pencil)`:r,strokeWidth:i,fill:`none`,pointerEvents:`none`}),e.fromEnd===`arrow`?(0,J.jsx)(`polygon`,{points:ko(t.start,t.startDir,10/Math.max(I,.4)),fill:n?`var(--color-pencil)`:r,pointerEvents:`none`}):null,e.toEnd===`arrow`?(0,J.jsx)(`polygon`,{points:ko(t.end,t.endDir,10/Math.max(I,.4)),fill:n?`var(--color-pencil)`:r,pointerEvents:`none`}):null]},e.id)}),pt=h.map(e=>{let t=ot(e);if(!t)return null;let r=D?.type===`edge`&&D.id===e.id;return!r&&(e.label===void 0||e.label===``)?null:(0,J.jsx)(`div`,{"data-edge":e.id,className:`absolute -translate-x-1/2 -translate-y-1/2`,style:{left:t.mid.x,top:t.mid.y,fontSize:13/Math.max(I,.5)},children:r?(0,J.jsx)(`input`,{"data-canvas-own":``,"data-testid":`canvas-typing`,autoFocus:!0,value:D.text,"aria-label":n.label,className:`bg-sheet text-ink border-pencil w-40 rounded-sm border px-1.5 py-0.5 text-center outline-none`,onChange:e=>{O({...D,text:e.target.value})},onBlur:()=>{N()},onKeyDown:e=>{e.stopPropagation(),(e.key===`Escape`||e.key===`Enter`)&&N()}}):(0,J.jsx)(`span`,{"data-testid":`canvas-edge-label`,className:`bg-paper text-ink rounded-sm px-1.5 py-0.5 whitespace-nowrap`,children:e.label})},e.id)}),mt=F&&!p&&F.id!==D?.id?ge.map(e=>{let t=P(F),[n,r]=pe[e],i=9/I;return(0,J.jsx)(`span`,{"data-handle":e,"data-testid":`canvas-handle`,className:`bg-sheet border-pencil absolute border`,style:{left:t.left+n*t.width-i/2,top:t.top+r*t.height-i/2,width:i,height:i,borderWidth:1.5/I,cursor:`${e===`n`||e===`s`?`ns`:e===`e`||e===`w`?`ew`:e===`ne`||e===`sw`?`nesw`:`nwse`}-resize`}},e)}):null,ht=Wo*I,gt=F,_t=c?.viewer===!0,vt=!p&&!_t,B=()=>{_.current?.focus()},yt=(()=>{if(A!==void 0||D!==void 0)return;let e=Je();if(e.length===0)return;let t=fe(e),n=bo(x,{x:t.left,y:t.top}),r={left:n.x,top:n.y,width:t.width*I,height:t.height*I};if(r.left>v.width||r.top>v.height||r.left+r.width<0||r.top+r.height<0)return;let i=Math.max(0,...m.filter(e=>w.nodes.has(e.id)&&e.y<=t.top).map(e=>Ho(e,I)??0));return{box:r,above:i>0?i*I+zo+Vo+4:0}})(),bt=F&&(F.type===`file`||F.type===`link`)?F:void 0;return(0,J.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,"data-testid":`canvas-editor`,"data-state":`ready`,children:[(0,J.jsx)(te,{saved:{state:f.state}}),f.unreadable===void 0?null:(0,J.jsx)(`div`,{className:`bg-problem/10 text-problem-text shrink-0 px-3 py-1 text-xs`,"data-testid":`canvas-unreadable`,children:n.unreadable(f.unreadable)}),(0,J.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[(0,J.jsxs)(re,{children:[(0,J.jsx)(oe,{asChild:!0,children:(0,J.jsxs)(`div`,{ref:_,tabIndex:0,role:`application`,"aria-label":t,"data-testid":`canvas-surface`,"data-zoom":I,className:`bg-paper absolute inset-0 touch-none overflow-hidden outline-none select-none`,style:{backgroundImage:`radial-gradient(circle, var(--color-rule-strong) ${String(Math.max(.6,I))}px, transparent ${String(Math.max(.6,I)+.4)}px)`,backgroundSize:`${String(ht)}px ${String(ht)}px`,backgroundPosition:`${String(-x.x*I)}px ${String(-x.y*I)}px`,cursor:A===`pan`?`grabbing`:A===`move`?`move`:A===`connect`?`crosshair`:void 0},onPointerDown:Xe,onPointerMove:Ze,onPointerUp:Qe,onPointerCancel:Qe,onPointerLeave:()=>{A===void 0&&ke(void 0)},onDoubleClick:$e,onKeyDown:et,onKeyUp:tt,onDragOver:e=>{p||e.preventDefault()},onDrop:rt,onContextMenu:e=>{let t=e.target.closest(`[data-node]`)?.dataset.node;t!==void 0&&!w.nodes.has(t)&&M({nodes:new Set([t]),edges:new Set})},children:[(0,J.jsxs)(`div`,{className:`absolute top-0 left-0`,"data-testid":`canvas-world`,style:{transform:`translate(${String(-x.x*I)}px, ${String(-x.y*I)}px) scale(${String(I)})`,transformOrigin:`0 0`},children:[it.map(st),(0,J.jsx)(`svg`,{className:`pointer-events-none absolute top-0 left-0 overflow-visible`,width:1,height:1,children:(0,J.jsx)(`g`,{className:`pointer-events-auto`,children:dt})}),at.map(st),ct?(0,J.jsx)(`svg`,{className:`pointer-events-none absolute top-0 left-0 overflow-visible`,width:1,height:1,children:(0,J.jsx)(`path`,{d:ct.d,stroke:`var(--color-pencil)`,strokeWidth:2/I,strokeDasharray:`${String(6/I)} ${String(4/I)}`,fill:`none`})}):null,pt,mt,L,(T.guides??[]).map((e,t)=>(0,J.jsx)(`span`,{className:`bg-pencil pointer-events-none absolute`,style:e.axis===`x`?{left:e.at,top:x.y-1e4,width:1/I,height:2e4+v.height/I}:{top:e.at,left:x.x-1e4,height:1/I,width:2e4+v.width/I}},t)),T.marquee?(0,J.jsx)(`span`,{className:`border-pencil bg-pencil-wash pointer-events-none absolute border`,style:{left:T.marquee.left,top:T.marquee.top,width:T.marquee.width,height:T.marquee.height,borderWidth:1/I}}):null]}),ye&&Ce?(()=>{let e=$(Ce);return(0,J.jsx)(Ae,{"data-testid":`canvas-agent`,label:xe(ye),style:{left:(e.left-x.x)*I,top:(e.top-x.y)*I,width:e.width*I,height:e.height*I}})})():null,m.length===0&&!p?(0,J.jsx)(`p`,{className:`text-lead pointer-events-none absolute inset-x-0 top-1/2 text-center text-sm`,"data-testid":`canvas-empty`,children:n.empty}):null]})}),(0,J.jsxs)(se,{className:`w-52`,"data-testid":`canvas-menu`,children:[gt&&(gt.type===`file`||gt.type===`link`)?(0,J.jsx)(le,{onSelect:()=>{Ye(gt)},children:n.open}):null,!p&&w.nodes.size>0?(0,J.jsxs)(le,{onSelect:Ge,children:[n.group,(0,J.jsx)(ae,{children:Ko})]}):null,!p&&w.nodes.size+w.edges.size>0?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(ie,{}),(0,J.jsxs)(le,{variant:`destructive`,onSelect:We,children:[n.delete,(0,J.jsx)(ae,{children:`⌫`})]})]}):null,!p&&w.nodes.size===0&&w.edges.size===0?(0,J.jsx)(le,{onSelect:()=>{Ve()},children:n.note}):null,(0,J.jsx)(ce,{})]})]}),vt?(0,J.jsx)(co,{onNote:()=>{Ve()},onFile:e=>{He(e),B()},onLink:e=>{Ue(e),B()},groupable:w.nodes.size>0,onGroup:Ge,project:l,self:t}):null,(0,J.jsx)(lo,{onZoom:e=>{De(),j(e),B()},history:vt?{canUndo:f.canUndo,canRedo:f.canRedo,onUndo:()=>{e.undo(),B()},onRedo:()=>{e.redo(),B()}}:void 0}),yt?(0,J.jsx)(mo,{box:yt.box,above:yt.above,view:v,color:qe(),onColor:vt?Ke:void 0,onDelete:vt?()=>{We(),B()}:void 0,open:bt?{link:bt.type===`link`,run:()=>{Ye(bt)}}:void 0,onZoomTo:()=>{De(),j(Je()),B()}}):null]})]})}function $o(){let e=Va(),t=a(),n=o()?.item.entry,[r,i]=(0,Y.useState)(),[s,c]=(0,Y.useState)();return(0,Y.useEffect)(()=>{if(n===void 0)return;let e,r=!0;return _o.open(t,n).then(t=>{r?(e=t,i(t)):t.close()},e=>{r&&c(e instanceof Error?e.message:String(e))}),()=>{r=!1,e?.close()}},[t,n]),!r||n===void 0?(0,J.jsx)(`div`,{className:`text-lead flex size-full items-center justify-center text-sm`,"data-testid":`canvas-editor`,"data-state":s===void 0?`loading`:`error`,children:s===void 0?e.loading:e.couldNotOpen(s)}):(0,J.jsx)(Qo,{doc:r,path:n})}export{_o as CanvasDocument,$o as CanvasEditor,$o as default,Ba as WORDS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CPS-TrJJ.js";var t=e(`group`,[[`path`,{d:`M3 7V5c0-1.1.9-2 2-2h2`,key:`adw53z`}],[`path`,{d:`M17 3h2c1.1 0 2 .9 2 2v2`,key:`an4l38`}],[`path`,{d:`M21 17v2c0 1.1-.9 2-2 2h-2`,key:`144t0e`}],[`path`,{d:`M7 21H5c-1.1 0-2-.9-2-2v-2`,key:`rtnfgi`}],[`rect`,{width:`7`,height:`5`,x:`7`,y:`7`,rx:`1`,key:`1eyiv7`}],[`rect`,{width:`7`,height:`5`,x:`10`,y:`12`,rx:`1`,key:`1qlmkx`}]]),n=[`nw`,`n`,`ne`,`e`,`se`,`s`,`sw`,`w`],r={nw:[0,0],n:[.5,0],ne:[1,0],e:[1,.5],se:[1,1],s:[.5,1],sw:[0,1],w:[0,.5]},i=(e,t)=>[e,e+t/2,e+t];function a(e,t,n){let r;for(let i of e)for(let e of t){let t=e-i;Math.abs(t)<=n&&(!r||Math.abs(t)<Math.abs(r.shift))&&(r={shift:t,at:e})}return r}function o(e,t,n,r){let o=[...n?i(0,n.width):[],...t.flatMap(e=>i(e.left,e.width))],s=[...n?i(0,n.height):[],...t.flatMap(e=>i(e.top,e.height))],c=a(i(e.left,e.width),o,r),l=a(i(e.top,e.height),s,r);return{frame:{...e,left:e.left+(c?.shift??0),top:e.top+(l?.shift??0)},guides:[...c?[{axis:`x`,at:c.at}]:[],...l?[{axis:`y`,at:l.at}]:[]]}}function s(e,t,n,r,o={}){let s=o.min??1,c=e.left,l=e.top,u=e.left+e.width,d=e.top+e.height;t.includes(`w`)&&(c+=n),t.includes(`e`)&&(u+=n),t.includes(`n`)&&(l+=r),t.includes(`s`)&&(d+=r);let f=[];if(o.snap){let{others:e,surface:n,tol:r}=o.snap,s=[...n?i(0,n.width):[],...e.flatMap(e=>i(e.left,e.width))],p=[...n?i(0,n.height):[],...e.flatMap(e=>i(e.top,e.height))],m=(e,t,n)=>{let i=a([e],t,r);return i?(f.push({axis:n,at:i.at}),i.at):e};t.includes(`w`)&&(c=m(c,s,`x`)),t.includes(`e`)&&(u=m(u,s,`x`)),t.includes(`n`)&&(l=m(l,p,`y`)),t.includes(`s`)&&(d=m(d,p,`y`))}if(u-c<s&&(t.includes(`w`)?c=u-s:u=c+s),d-l<s&&(t.includes(`n`)?l=d-s:d=l+s),o.keep&&t.length===2&&e.width>0&&e.height>0){let n=e.width/e.height,r=u-c,i=d-l;if(r/n>=i){let e=r/n;t.includes(`n`)?l=d-e:d=l+e}else{let e=i*n;t.includes(`w`)?c=u-e:u=c+e}}return{frame:{left:c,top:l,width:u-c,height:d-l},guides:f}}function c(e,t,n){let r=n*Math.PI/180,i=e.x-t.x,a=e.y-t.y;return{x:t.x+i*Math.cos(r)-a*Math.sin(r),y:t.y+i*Math.sin(r)+a*Math.cos(r)}}var l={nw:[1,1],n:[.5,1],ne:[0,1],e:[0,.5],se:[0,0],s:[.5,0],sw:[1,0],w:[1,.5]};function u(e,t,n,r,i,a,o){let u=c({x:r,y:i},{x:0,y:0},-t),d=s(e,n,u.x,u.y,{keep:a,...o===void 0?{}:{min:o}}).frame,[f,p]=l[n],m=e=>c({x:e.left+f*e.width,y:e.top+p*e.height},{x:e.left+e.width/2,y:e.top+e.height/2},t),h=m(e),g=m(d);return{...d,left:d.left+h.x-g.x,top:d.top+h.y-g.y}}function d(e,t,n=0){if(n===0)return e;let r=t.left+t.width/2,i=t.top+t.height/2,a=-n*Math.PI/180,o=e.x-r,s=e.y-i;return{x:r+o*Math.cos(a)-s*Math.sin(a),y:i+o*Math.sin(a)+s*Math.cos(a)}}function f(e,t,n){let[i,a]=r[n];return d({x:e.left+i*e.width,y:e.top+a*e.height},e,-t)}var p=(e,t)=>({left:Math.min(e.x,t.x),top:Math.min(e.y,t.y),width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)});function m(e){if(e.length===0)return{left:0,top:0,width:0,height:0};let t=Math.min(...e.map(e=>e.left)),n=Math.min(...e.map(e=>e.top)),r=Math.max(...e.map(e=>e.left+e.width)),i=Math.max(...e.map(e=>e.top+e.height));return{left:t,top:n,width:r-t,height:i-n}}export{d as a,o as c,f as i,m as l,r as n,s as o,p as r,u as s,n as t,t as u};
|