allyhub 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio-text.js +1 -1
- package/dist/commands/add.js +2 -2
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/dev.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/render.js +1 -1
- package/dist/commands/sheet.js +5 -5
- package/dist/commands/site.js +3 -2
- package/dist/commands/skills.js +3 -3
- package/dist/commands/slides.js +2 -2
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
- package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
- package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
- package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub-next/build/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
- package/dist/node_modules/@allyhub-next/check/package.json +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
- package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
- package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/export/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
- package/dist/node_modules/@allyhub-next/media/package.json +1 -1
- package/dist/node_modules/@allyhub-next/model/package.json +1 -1
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
- package/dist/node_modules/@allyhub-next/project/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
- package/dist/node_modules/@allyhub-next/render/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
- package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
- package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
- package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
- package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
- package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
- package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
- package/dist/node_modules/@allyhub-next/website/package.json +13 -0
- package/dist/text/facts-text.js +4 -4
- package/dist/works.js +1 -1
- package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
- package/editor-web/assets/dist-0emakyZE.js +36 -0
- package/editor-web/assets/dist-B3UoDUa5.js +37 -0
- package/editor-web/assets/dist-B6KzR3pN.js +10 -0
- package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
- package/editor-web/assets/dist-CTQIm8Im.js +10 -0
- package/editor-web/assets/dist-CiHNHwyq.js +2 -0
- package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
- package/editor-web/assets/index-CFt3ovRY.js +69 -0
- package/editor-web/assets/index-ujKjdu_s.css +2 -0
- package/editor-web/assets/minus-BhoPZC5P.js +1 -0
- package/editor-web/assets/react-C_-rEEBU.js +101 -0
- package/editor-web/assets/tabs-Den4gHrU.js +105 -0
- package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
- package/editor-web/index.html +5 -5
- package/package.json +8 -14
- package/dist/astro.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
- package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
- package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
- package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
- package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
- package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
- package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
- package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
- package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
- package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
- package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
- package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
- package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
- package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
- package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
- package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
- package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
- package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
- package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
- package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
- package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
- package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -178
- package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
- package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
- package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
- package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
- package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
- package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
- package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
- package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
- package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
- package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
- package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
- package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
- package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
- package/dist/node_modules/@allyhub-next/site/package.json +0 -25
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -56
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -43
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
- package/dist/site.d.ts +0 -2
- package/editor-web/assets/dist-BW2s9FMO.js +0 -4
- package/editor-web/assets/dist-C-6JmebI.js +0 -233
- package/editor-web/assets/dist-CCYMLMKN.js +0 -6
- package/editor-web/assets/dist-CHzurjMx.js +0 -33
- package/editor-web/assets/dist-DF7H1dxw.js +0 -1
- package/editor-web/assets/dist-Da5AUSKX.js +0 -2
- package/editor-web/assets/index-B7S9RZhL.css +0 -2
- package/editor-web/assets/index-CovQYWvD.js +0 -69
- package/editor-web/assets/minus-BrvjaJyO.js +0 -1
- package/editor-web/assets/react-DV5fPdiH.js +0 -101
- package/editor-web/assets/textarea-B0vCGdZI.js +0 -105
- package/editor-web/assets/trash-2-B0dvc1cZ.js +0 -1
- package/editor-web/assets/undo-2-A1EPubPO.js +0 -1
- /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Bt as t,C as n,Ct as r,Dt as i,Et as a,It as o,Lt as s,Ot as c,Pt as l,Rt as u,S as d,St as f,Tt as p,Ut as m,Vt as h,Xt as g,_t as _,at as v,b as y,bt as b,c as x,ct as S,d as C,dt as ee,ft as w,g as T,gn as E,gt as D,h as O,hn as k,ht as A,i as j,it as te,jt as M,kt as N,l as P,ln as F,lt as I,mt as ne,n as L,ot as re,pt as ie,r as R,rt as ae,s as oe,st as se,ut as ce,vt as le,w as ue,wt as z,x as de,xt as fe,yt as pe}from"./react-DV5fPdiH.js";var me=6,he=.85,ge=.25,_e=40,ve=12,ye=(e,t,n)=>Math.min(n,Math.max(t,e));function be(e){let t=e.map(e=>e.x),n=e.map(e=>e.y),r=Math.min(...t),i=Math.min(...n);return{x:r,y:i,width:Math.max(...t)-r,height:Math.max(...n)-i}}function xe(e){let[t]=e,n=e.at(-1);if(!t||!n)return!1;let{width:r,height:i}=be(e),a=Math.hypot(r,i);return a>0&&Math.hypot(n.x-t.x,n.y-t.y)<=a*ge}var Se=(e,t)=>e.x<t.x+Math.max(t.width,1)&&e.x+Math.max(e.width,1)>t.x&&e.y<t.y+Math.max(t.height,1)&&e.y+Math.max(e.height,1)>t.y;function Ce(e,t){let n=e.width/2||1,r=e.height/2||1,i=e.x+n,a=e.y+r,o=(ye(i,t.x,t.x+t.width)-i)/n,s=(ye(a,t.y,t.y+t.height)-a)/r;return Math.hypot(o,s)<=he}function we(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=0,o=1;for(let[t,s]of[[-r,e.x-n.x],[r,n.x+n.width-e.x],[-i,e.y-n.y],[i,n.y+n.height-e.y]]){if(t===0){if(s<0)return!1}else t<0?a=Math.max(a,s/t):o=Math.min(o,s/t);if(a>o)return!1}return!0}function Te(e,t){switch(e.kind){case`box`:return Se(e.rect,t);case`round`:return Ce(e.rect,t);case`arrow`:return Se({x:e.to.x-me,y:e.to.y-me,width:12,height:12},t);case`line`:return xe(e.points)?Ce(be(e.points),t):e.points.some((n,r)=>we(e.points[r-1]??n,n,t))}}function Ee(e,t){return t.flatMap(n=>t.map(t=>({x:e.x+e.width*t,y:e.y+e.height*n})))}function De(e){let t=e.map((t,n)=>{let r=e[n-1]??t;return Math.hypot(t.x-r.x,t.y-r.y)}),n=t.reduce((e,t)=>e+t,0),r=ye(Math.ceil(n/_e)+1,2,ve);return Array.from({length:r},(i,a)=>{let o=n*a/(r-1);for(let[n,r]of e.entries()){let i=t[n]??0,a=e[n-1];if(a&&o<=i){let e=i===0?0:o/i;return{x:a.x+(r.x-a.x)*e,y:a.y+(r.y-a.y)*e}}o-=i}return e.at(-1)??{x:0,y:0}})}function Oe(e){switch(e.kind){case`box`:return Ee(e.rect,[.5,.2,.8]);case`round`:return Ee(e.rect,[.5,.3,.7]);case`arrow`:return[e.to];case`line`:return xe(e.points)?Ee(be(e.points),[.5,.3,.7]):De(e.points)}}function ke(e,t){switch(e.kind){case`box`:case`round`:{let n=t(e.rect),r=t({x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height});return{kind:e.kind,rect:{...n,width:r.x-n.x,height:r.y-n.y}}}case`arrow`:return{kind:`arrow`,from:t(e.from),to:t(e.to)};case`line`:return{kind:`line`,points:e.points.map(t)}}}var Ae=t(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),je=t(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Me=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ne=t(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Pe=t(`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`}]]),Fe=t(`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`}]]),Ie=t(`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`}]]),Le=t(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Re=t(`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`}]]),ze=e(k(),1),B=e(E(),1),V=h(),Be=Object.defineProperty,Ve=(e,t)=>Be(e,`name`,{value:t,configurable:!0}),He=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Ue=B.forwardRef(Ve(function(e,t){return(0,V.jsx)(c.span,{...e,ref:t,style:{...He,...e.style}})},`VisuallyHidden`)),We=Object.defineProperty,H=(e,t)=>We(e,`name`,{value:t,configurable:!0}),Ge=`Checkbox`,[Ke,qe]=i(Ge),[Je,Ye]=Ke(Ge);function Xe(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:a,disabled:o,form:s,name:c,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[p,m]=r({prop:n,defaultProp:a??!1,onChange:l,caller:Ge}),[h,g]=B.useState(null),[_,v]=B.useState(null),y=B.useRef(!1),[b,x]=B.useReducer(e=>e+1,0),S=!h||!!s||!!h.closest(`form`),C={checked:p,disabled:o,setChecked:m,control:h,setControl:g,name:c,form:s,value:d,hasConsumerStoppedPropagationRef:y,userInteractionCount:b,onUserInteraction:x,required:u,defaultChecked:!U(a)&&a,isFormControl:S,bubbleInput:_,setBubbleInput:v};return(0,V.jsx)(Je,{scope:t,...C,children:it(f)?f(C):i})}H(Xe,`CheckboxProvider`);var Ze=`CheckboxTrigger`,Qe=B.forwardRef(H(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,onUserInteraction:h,isFormControl:g,bubbleInput:_}=Ye(Ze,e),v=M(i,d),y=B.useRef(l);return B.useEffect(()=>{let e=a?.form;if(e){let t=H(()=>f(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,f]),(0,V.jsx)(c.button,{type:`button`,role:`checkbox`,"aria-checked":U(l)?`mixed`:l,"aria-required":u,"data-state":at(l),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:v,onKeyDown:p(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:p(n,e=>{h(),f(e=>U(e)?!0:!e),_&&g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})},`CheckboxTrigger`)),$e=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)(Xe,{__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)(Qe,{...d,ref:t,__scopeCheckbox:n}),e&&(0,V.jsx)(rt,{__scopeCheckbox:n})]})})},`Checkbox`)),et=`CheckboxIndicator`,tt=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Ye(et,n);return(0,V.jsx)(f,{present:r||U(a.checked)||a.checked===!0,children:(0,V.jsx)(c.span,{"data-state":at(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),nt=`CheckboxBubbleInput`,rt=B.forwardRef(H(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:l,required:u,disabled:d,name:f,value:m,form:h,bubbleInput:g,setBubbleInput:_}=Ye(nt,e),v=M(r,_),y=ae(i),b=B.useRef(!1),x=B.useRef(s),S=B.useRef(o);B.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==S.current;S.current=o;let i=x.current!==s;x.current=s;let c=!(r&&a.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=U(s),n.call(e,!U(s)&&s),e.dispatchEvent(t),b.current=!1}},[g,s,a,o]);let C=B.useRef(!U(s)&&s);return(0,V.jsx)(c.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:d,name:f,value:m,form:h,...n,tabIndex:-1,ref:v,onClick:p(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function it(e){return typeof e==`function`}H(it,`isFunction`);function U(e){return e===`indeterminate`}H(U,`isIndeterminate`);function at(e){return U(e)?`indeterminate`:e?`checked`:`unchecked`}H(at,`getState`);var ot=Object.defineProperty,st=(e,t)=>ot(e,`name`,{value:t,configurable:!0});function ct(e){let t=B.useRef({value:e,previous:e});return B.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}st(ct,`usePrevious`);var lt=Object.defineProperty,ut=(e,t)=>lt(e,`name`,{value:t,configurable:!0});function dt(e,[t,n]){return Math.min(n,Math.max(t,e))}ut(dt,`clamp`);var ft=Object.defineProperty,W=(e,t)=>ft(e,`name`,{value:t,configurable:!0}),pt=`Popover`,[mt,ht]=i(pt,[ue]),gt=ue(),[_t,G]=mt(pt),vt=W(e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,c=gt(t),l=B.useRef(null),[u,d]=B.useState(!1),[f,p]=B.useState(0),[m,h]=B.useState(0),[g,_]=r({prop:i,defaultProp:a??!1,onChange:o,caller:pt});return(0,V.jsx)(y,{...c,children:(0,V.jsx)(_t,{scope:t,contentId:fe(),titleId:fe(),descriptionId:fe(),titlePresent:f>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:h,triggerRef:l,open:g,onOpenChange:_,onOpenToggle:B.useCallback(()=>_(e=>!e),[_]),hasCustomAnchor:u,onCustomAnchorAdd:B.useCallback(()=>d(!0),[]),onCustomAnchorRemove:B.useCallback(()=>d(!1),[]),modal:s,children:n})})},`Popover`),yt=`PopoverAnchor`,bt=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(yt,n),a=gt(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,V.jsx)(de,{...a,...r,ref:t})},`PopoverAnchor`)),xt=`PopoverTrigger`,St=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(xt,n),a=gt(n),o=M(t,i.triggerRef),s=(0,V.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Pt(i.open),...r,ref:o,onClick:p(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,V.jsx)(de,{asChild:!0,...a,children:s})},`PopoverTrigger`)),Ct=`PopoverPortal`,[wt,Tt]=mt(Ct,{forceMount:void 0}),Et=W(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=G(Ct,t);return(0,V.jsx)(wt,{scope:t,forceMount:n,children:(0,V.jsx)(f,{present:n||a.open,children:(0,V.jsx)(ie,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),Dt=`PopoverContent`,Ot=B.forwardRef(W(function(e,t){let n=Tt(Dt,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=G(Dt,e.__scopePopover);return(0,V.jsx)(f,{present:r||a.open,children:a.modal?(0,V.jsx)(At,{...i,ref:t}):(0,V.jsx)(jt,{...i,ref:t})})},`PopoverContent`)),kt=N(`PopoverContent.RemoveScroll`),At=B.forwardRef(W(function(e,t){let n=G(Dt,e.__scopePopover),r=B.useRef(null),i=M(t,r),a=B.useRef(!1),{nodes:o,registry:s}=_();return B.useEffect(()=>{let e=r.current;if(e)return ce(e)},[]),(0,V.jsx)(ee,{as:kt,allowPinchZoom:!0,shards:B.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,V.jsx)(Mt,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:p(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:p(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),jt=B.forwardRef(W(function(e,t){let n=G(Dt,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(Mt,{...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`)),Mt=B.forwardRef(W(function(e,t){let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,"aria-describedby":f,branchNodes:p,branchRegistry:m,...h}=e,g=G(Dt,r),_=gt(r),[v,y]=B.useState(null),b=M(t,y);return D(v),w(),(0,V.jsx)(A,{registry:m,children:(0,V.jsx)(ne,{asChild:!0,loop:!0,trapped:i,branches:p,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,V.jsx)(le,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,V.jsx)(n,{"data-state":Pt(g.open),role:`dialog`,id:g.contentId,"aria-labelledby":g.titlePresent?g.titleId:void 0,"aria-describedby":g.descriptionPresent?Ft(f,g.descriptionId):f,..._,...h,ref:b,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`)),Nt=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=gt(n);return(0,V.jsx)(d,{...i,...r,ref:t})},`PopoverArrow`));function Pt(e){return e?`open`:`closed`}W(Pt,`getState`);function Ft(...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}W(Ft,`concatAriaDescribedby`);var It=Object.defineProperty,K=(e,t)=>It(e,`name`,{value:t,configurable:!0}),Lt=`Progress`,Rt=100,[zt,Bt]=i(Lt),[Vt,Ht]=zt(Lt),Ut=B.forwardRef(K(function(e,t){let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Kt,...o}=e;(i||i===0)&&!Yt(i)&&console.error(Zt(`${i}`,`Progress`));let s=Yt(i)?i:Rt;r!==null&&!Xt(r,s)&&console.error(Qt(`${r}`,`Progress`));let l=Xt(r,s)?r:null,u=Jt(l)?a(l,s):void 0;return(0,V.jsx)(Vt,{scope:n,value:l,max:s,children:(0,V.jsx)(c.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Jt(l)?l:void 0,"aria-valuetext":u,role:`progressbar`,"data-state":qt(l,s),"data-value":l??void 0,"data-max":s,...o,ref:t})})},`Progress`)),Wt=`ProgressIndicator`,Gt=B.forwardRef(K(function(e,t){let{__scopeProgress:n,...r}=e,i=Ht(Wt,n);return(0,V.jsx)(c.div,{"data-state":qt(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},`ProgressIndicator`));function Kt(e,t){return`${Math.round(e/t*100)}%`}K(Kt,`defaultGetValueLabel`);function qt(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}K(qt,`getProgressState`);function Jt(e){return typeof e==`number`}K(Jt,`isNumber`);function Yt(e){return Jt(e)&&!isNaN(e)&&e>0}K(Yt,`isValidMaxNumber`);function Xt(e,t){return Jt(e)&&!isNaN(e)&&e<=t&&e>=0}K(Xt,`isValidValueNumber`);function Zt(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Rt}\`.`}K(Zt,`getInvalidMaxError`);function Qt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
-
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${Rt} if no \`max\` prop is set)
|
|
4
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
-
|
|
6
|
-
Defaulting to \`null\`.`}K(Qt,`getInvalidValueError`);var $t=Object.defineProperty,q=(e,t)=>$t(e,`name`,{value:t,configurable:!0}),en={ItemAligned:`item-aligned`,Popper:`popper`},tn={LTR:`ltr`,RTL:`rtl`},nn=[` `,`Enter`,`ArrowUp`,`ArrowDown`],rn=[` `,`Enter`],an=`Select`,[on,sn,cn]=a(an),[J,ln]=i(an,[cn,ue]),un=ue(),[dn,Y]=J(an),[fn,pn]=J(an);function mn(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:s,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:p,required:m,form:h,internal_do_not_use_render:g}=e,_=un(t),[v,x]=B.useState(null),[S,C]=B.useState(null),[ee,w]=B.useState(!1),T=b(u),[E,D]=r({prop:i,defaultProp:a??!1,onChange:o,caller:an}),[O,k]=r({prop:s,defaultProp:c,onChange:l,caller:an}),A=B.useRef(null),j=B.useRef(O);B.useEffect(()=>{let e=h?v?.ownerDocument.getElementById(h):v?.form;if(e instanceof HTMLFormElement){let t=q(()=>k(j.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[h,v,k]);let te=!v||!!h||!!v.closest(`form`),[M,N]=B.useState(new Set),P=fe(),F=Array.from(M).map(e=>e.props.value).join(`;`),I=B.useCallback(e=>{N(t=>new Set(t).add(e))},[]),ne=B.useCallback(e=>{N(t=>{let n=new Set(t);return n.delete(e),n})},[]),L={required:m,trigger:v,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:ee,onValueNodeHasChildrenChange:w,contentId:P,value:O,onValueChange:k,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:A,disabled:p,name:d,autoComplete:f,form:h,nativeOptions:M,nativeSelectKey:F,isFormControl:te};return(0,V.jsx)(y,{..._,children:(0,V.jsx)(dn,{scope:t,...L,children:(0,V.jsx)(on.Provider,{scope:t,children:(0,V.jsx)(fn,{scope:t,onNativeOptionAdd:I,onNativeOptionRemove:ne,children:$n(g)?g(L):n})})})})}q(mn,`SelectProvider`);var hn=q(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,V.jsx)(mn,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[n,e?(0,V.jsx)(Qn,{__scopeSelect:t}):null]})})},`Select`),gn=`SelectTrigger`,_n=B.forwardRef(q(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=un(n),o=Y(gn,n),s=o.disabled||r,l=M(t,o.onTriggerChange),u=sn(n),d=B.useRef(`touch`),[f,m,h]=tr(e=>{let t=u().filter(e=>!e.disabled),n=nr(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),g=q(e=>{s||(o.onOpenChange(!0),h()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,V.jsx)(de,{asChild:!0,...a,children:(0,V.jsx)(c.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":er(o.value)?``:void 0,...i,ref:l,onClick:p(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&g(e)}),onPointerDown:p(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:p(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&nn.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),vn=`SelectValue`,yn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,l=Y(vn,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=M(t,l.onValueNodeChange);z(()=>{u(d)},[u,d]);let p=er(l.value);return(0,V.jsx)(c.span,{...s,asChild:!p&&s.asChild,ref:f,style:{pointerEvents:`none`},children:(0,V.jsx)(B.Fragment,{children:p?o:a},p?`placeholder`:`value`)})},`SelectValue`)),bn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,V.jsx)(c.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[xn,Sn]=J(`SelectPortal`,{forceMount:void 0}),Cn=q(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,V.jsx)(xn,{scope:e.__scopeSelect,forceMount:n,children:(0,V.jsx)(ie,{asChild:!0,...r})})},`SelectPortal`),X=`SelectContent`,wn=B.forwardRef(q(function(e,t){let n=Sn(X,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Y(X,e.__scopeSelect),[o,s]=B.useState();return z(()=>{s(new DocumentFragment)},[]),(0,V.jsx)(f,{present:r||a.open,children:({present:e})=>e?(0,V.jsx)(On,{...i,ref:t}):(0,V.jsx)(Tn,{...i,fragment:o})})},`SelectContent`)),Tn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ze.createPortal((0,V.jsx)(En,{scope:n,children:(0,V.jsx)(on.Slot,{scope:n,children:(0,V.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Z=10,[En,Q]=J(X),Dn=N(`SelectContent.RemoveScroll`),On=B.forwardRef(q(function(e,t){let{__scopeSelect:n}=e,{position:r=en.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:_,...v}=e,y=Y(X,n),[b,x]=B.useState(null),[S,C]=B.useState(null),T=M(t,x),[E,D]=B.useState(null),[O,k]=B.useState(null),A=sn(n),[j,te]=B.useState(!1),N=B.useRef(!1);B.useEffect(()=>{if(b)return ce(b)},[b]),w();let P=B.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,S]),F=B.useCallback(()=>P([E,b]),[P,E,b]);B.useEffect(()=>{j&&F()},[j,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;B.useEffect(()=>{if(b){let e={x:0,y:0},t=q(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=q(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),B.useEffect(()=>{let e=q(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[re,ie]=tr(e=>{let t=A().filter(e=>!e.disabled),n=nr(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),R=B.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(D(e),r&&(N.current=!0))},[y.value]),ae=B.useCallback(()=>b?.focus(),[b]),oe=B.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&k(e)},[y.value]),se=r===en.Popper?An:kn,ue=se===An?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:_}:{};return(0,V.jsx)(En,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:R,selectedItem:E,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:F,selectedItemText:O,position:r,isPositioned:j,searchRef:re,children:(0,V.jsx)(ee,{as:Dn,allowPinchZoom:!0,children:(0,V.jsx)(ne,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:p(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,V.jsx)(le,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,V.jsx)(se,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...ue,onPlaced:()=>te(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:p(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),kn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y(X,n),o=Q(X,n),[s,l]=B.useState(null),[u,d]=B.useState(null),f=M(t,d),p=sn(n),m=B.useRef(!1),h=B.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:y}=o,b=B.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&_&&v){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==tn.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Z,d=dt(a,[Z,Math.max(Z,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Z,d=dt(a,[Z,Math.max(Z,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=p(),c=window.innerHeight-Z*2,l=g.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+y,S=Math.min(_.offsetHeight*5,x),C=window.getComputedStyle(g),ee=parseInt(C.paddingTop,10),w=parseInt(C.paddingBottom,10),T=e.top+e.height/2-Z,E=c-T,D=_.offsetHeight/2,O=_.offsetTop+D,k=f+h+O,A=x-k;if(k<=T){let e=o.length>0&&_===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=u.clientHeight-g.offsetTop-g.offsetHeight,n=k+Math.max(E,D+(e?w:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&_===o[0].ref.current;s.style.top=`0px`;let t=Math.max(T,f+g.offsetTop+(e?ee:0)+D)+A;s.style.height=t+`px`,g.scrollTop=k-T+g.offsetTop}s.style.margin=`${Z}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,s,u,g,_,v,a.dir,r]);z(()=>b(),[b]);let[x,S]=B.useState();z(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);let C=B.useCallback(e=>{e&&h.current===!0&&(b(),y?.(),h.current=!1)},[b,y]);return(0,V.jsx)(jn,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:C,children:(0,V.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,V.jsx)(c.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),An=B.forwardRef(q(function(e,t){let{__scopeSelect:r,align:i=`start`,collisionPadding:a=Z,...o}=e,s=un(r);return(0,V.jsx)(n,{...s,...o,ref:t,align:i,collisionPadding:a,style:{boxSizing:`border-box`,...o.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[jn,Mn]=J(X,{}),Nn=`SelectViewport`,Pn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Q(Nn,n),o=Mn(Nn,n),s=M(t,a.onViewportChange),l=B.useRef(0);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,V.jsx)(on.Slot,{scope:n,children:(0,V.jsx)(c.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:p(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})},`SelectViewport`)),[Fn,In]=J(`SelectGroup`),Ln=`SelectItem`,[Rn,zn]=J(Ln),Bn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Y(Ln,n),l=Q(Ln,n),u=s.value===r,[d,f]=B.useState(a??``),[m,h]=B.useState(!1),g=pe(e=>l.itemRefCallback?.(e,r,i)),_=M(t,g),v=fe(),y=B.useRef(`touch`),b=q(()=>{s.onValueChange(r),s.onOpenChange(!1)},`handleSelect`);return(0,V.jsx)(Rn,{scope:n,value:r,disabled:i,textId:v,isSelected:u,onItemTextChange:B.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,V.jsx)(on.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:(0,V.jsx)(c.div,{role:`option`,"aria-labelledby":v,"data-highlighted":m?``:void 0,"aria-selected":u&&m,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:p(o.onFocus,()=>h(!0)),onBlur:p(o.onBlur,()=>h(!1)),onClick:p(o.onClick,()=>{i||y.current!==`mouse`&&b()}),onPointerUp:p(o.onPointerUp,()=>{i||y.current===`mouse`&&b()}),onPointerDown:p(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:p(o.onPointerMove,e=>{y.current=e.pointerType,i?l.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:p(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:p(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(l.searchRef?.current===``||e.key!==` `)&&(rn.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Vn=`SelectItemText`,Hn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y(Vn,n),s=Q(Vn,n),l=zn(Vn,n),u=pn(Vn,n),[d,f]=B.useState(null),p=pe(e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),m=M(t,f,l.onItemTextChange,p),h=d?.textContent,g=B.useMemo(()=>(0,V.jsx)(`option`,{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return z(()=>(_(g),()=>v(g)),[_,v,g]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(c.span,{id:l.textId,...a,ref:m}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!er(o.value)?ze.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Un=`SelectItemIndicator`,Wn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,...r}=e;return zn(Un,n).isSelected?(0,V.jsx)(c.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Gn=`SelectScrollUpButton`,Kn=B.forwardRef(q(function(e,t){let n=Q(Gn,e.__scopeSelect),r=Mn(Gn,e.__scopeSelect),[i,a]=B.useState(!1),o=M(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Yn,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),qn=`SelectScrollDownButton`,Jn=B.forwardRef(q(function(e,t){let n=Q(qn,e.__scopeSelect),r=Mn(qn,e.__scopeSelect),[i,a]=B.useState(!1),o=M(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Yn,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Yn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Q(`SelectScrollButton`,n),o=B.useRef(null),s=sn(n),l=B.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return B.useEffect(()=>()=>l(),[l]),z(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,V.jsx)(c.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:p(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:p(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:p(i.onPointerLeave,()=>{l()})})},`SelectScrollButtonImpl`)),Xn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,...r}=e;return(0,V.jsx)(c.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Zn=`SelectBubbleInput`,Qn=B.forwardRef(q(function({__scopeSelect:e,...t},n){let r=Y(Zn,e),{value:i,onValueChange:a,required:o,disabled:s,name:l,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=B.useRef(null),h=M(n,m),g=i??``,_=ct(g),v=Array.from(f).some(e=>(e.props.value??``)===``);return B.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(_!==g&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}},[_,g]),(0,V.jsxs)(c.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:l,autoComplete:u,disabled:s,form:d,onChange:e=>a(e.target.value),...t,style:{...He,...t.style},ref:h,defaultValue:g,children:[er(i)&&!v?(0,V.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function $n(e){return typeof e==`function`}q($n,`isFunction`);function er(e){return e===``||e===void 0}q(er,`shouldShowPlaceholder`);function tr(e){let t=pe(e),n=B.useRef(``),r=B.useRef(0),i=B.useCallback(e=>{let i=n.current+e;t(i),q((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=B.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return B.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}q(tr,`useTypeaheadSearch`);function nr(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=rr(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}q(nr,`findNextItem`);function rr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}q(rr,`wrapArray`);function ir({...e}){return(0,V.jsx)(hn,{"data-slot":`select`,...e})}function ar({...e}){return(0,V.jsx)(yn,{"data-slot":`select-value`,...e})}function or({className:e,size:t=`default`,children:n,...r}){return(0,V.jsxs)(_n,{"data-slot":`select-trigger`,"data-size":t,className:l(`flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-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-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_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)(bn,{asChild:!0,children:(0,V.jsx)(je,{className:`size-4 opacity-50`})})]})}function sr({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,V.jsx)(Cn,{children:(0,V.jsxs)(wn,{"data-slot":`select-content`,className:l(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover 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`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,V.jsx)(ur,{}),(0,V.jsx)(Pn,{className:l(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,V.jsx)(dr,{})]})})}function cr({className:e,children:t,...n}){return(0,V.jsxs)(Bn,{"data-slot":`select-item`,className:l(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,V.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,V.jsx)(Wn,{children:(0,V.jsx)(Ae,{className:`size-4`})})}),(0,V.jsx)(Hn,{children:t})]})}function lr({className:e,...t}){return(0,V.jsx)(Xn,{"data-slot":`select-separator`,className:l(`pointer-events-none -mx-1 my-1 h-px bg-border`,e),...t})}function ur({className:e,...t}){return(0,V.jsx)(Kn,{"data-slot":`select-scroll-up-button`,className:l(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(Ne,{className:`size-4`})})}function dr({className:e,...t}){return(0,V.jsx)(Jn,{"data-slot":`select-scroll-down-button`,className:l(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(je,{className:`size-4`})})}function $({className:e,icon:t=!1,...n}){return(0,V.jsx)(T,{variant:`ghost`,size:t?`icon-sm`:`sm`,"data-bar":``,className:l(`font-normal text-lead hover:bg-stone-2 hover:text-ink aria-expanded:bg-stone-2 aria-expanded:text-ink aria-pressed:bg-here aria-pressed:text-ink`,t?`size-7 [&_svg:not([class*='size-'])]:size-4`:`h-7.5 gap-1.5 px-2 [&_svg:not([class*='size-'])]:size-3.5`,e),...n})}function fr({className:e,...t}){return(0,V.jsx)(or,{size:`sm`,"data-bar":``,className:l(`gap-1.5 px-2 font-normal text-lead shadow-none data-[size=sm]:h-7.5 hover:text-ink data-[state=open]:text-ink [&_svg:not([class*='size-'])]:size-3.5`,e),...t})}var pr=16,mr=8;function hr(){return(0,V.jsx)(Nt,{asChild:!0,width:pr,height:mr,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 ${String(pr)} ${String(mr)}`,"aria-hidden":!0,className:`-mt-px block overflow-visible`,children:[(0,V.jsx)(`path`,{d:`M0 -1 L${String(pr/2)} 7 L${String(pr)} -1 Z`,className:`fill-popover`}),(0,V.jsx)(`path`,{d:`M0 0 L${String(pr/2)} 7 L${String(pr)} 0`,className:`fill-none stroke-border`})]})})}function gr({className:e,...t}){return(0,V.jsx)($e,{"data-slot":`checkbox`,className:l(`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)(tt,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,V.jsx)(Ae,{className:`size-3.5`})})})}function _r({...e}){return(0,V.jsx)(vt,{"data-slot":`popover`,...e})}function vr({...e}){return(0,V.jsx)(St,{"data-slot":`popover-trigger`,...e})}function yr({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,V.jsx)(Et,{children:(0,V.jsx)(Ot,{"data-slot":`popover-content`,align:t,sideOffset:n,className:l(`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 br({...e}){return(0,V.jsx)(bt,{"data-slot":`popover-anchor`,...e})}function xr({className:e,value:t,...n}){return(0,V.jsx)(Ut,{"data-slot":`progress`,className:l(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...n,children:(0,V.jsx)(Gt,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Sr({...e}){return(0,V.jsx)(te,{"data-slot":`sheet`,...e})}function Cr({...e}){return(0,V.jsx)(S,{"data-slot":`sheet-portal`,...e})}function wr({className:e,...t}){return(0,V.jsx)(se,{"data-slot":`sheet-overlay`,className:l(`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 Tr({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,V.jsxs)(Cr,{children:[(0,V.jsx)(wr,{}),(0,V.jsxs)(re,{"data-slot":`sheet-content`,className:l(`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)(v,{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)(s,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Er({className:e,...t}){return(0,V.jsx)(I,{"data-slot":`sheet-title`,className:l(`font-semibold text-foreground`,e),...t})}var Dr=5;function Or(e,t){return e.filter(e=>e.item===t&&e.state!==`cancelled`).reverse().slice(0,Dr)}var kr=e=>e.state===`queued`||e.state===`running`;function Ar(e,t,n,r={}){let i=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));return kr(e)&&i(e.versions,t)&&i(e.types,n)&&jr(e.options??{},r)}var jr=(e,t)=>Object.keys({...e,...t}).every(n=>e[n]===t[n]);function Mr(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 Nr(e,t){return Math.max(0,e.filter(kr).map(e=>e.id).indexOf(t))}function Pr(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 Fr(e,t){let n=e.findLast(kr);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 Ir=e=>e.slice(e.lastIndexOf(`/`)+1),Lr=m({en:{saved:{saved:`Saved`,saving:`Saving…`,unsaved:`Not saved yet`,error:`Not saved`},markUp:`Mark up for AI`,markUpHint:`Mark what is on show, and AI changes it`,moreTools:`More`,export:`Export`,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`}},type:{mov:`MOV (ProRes)`,srt:`Captions`,cover:`Cover image`,pngPages:`PNG pages`,pptx:`PowerPoint`}},"zh-cn":{saved:{saved:`已保存`,saving:`正在保存…`,unsaved:`尚未保存`,error:`没能保存`},markUp:`批注让 AI 改`,markUpHint:`在画面上做批注,让 AI 帮你改`,moreTools:`更多`,export:`导出`,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:`每个动画步骤`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面图`,pngPages:`PNG 页面`,pptx:`PowerPoint`}},"zh-tw":{saved:{saved:`已儲存`,saving:`正在儲存…`,unsaved:`尚未儲存`,error:`沒能儲存`},markUp:`批註讓 AI 改`,markUpHint:`在畫面上做批註,讓 AI 幫你改`,moreTools:`更多`,export:`匯出`,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:`每個動畫步驟`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面圖`,pngPages:`PNG 頁面`,pptx:`PowerPoint`}},ja:{saved:{saved:`保存済み`,saving:`保存中…`,unsaved:`未保存`,error:`保存できませんでした`},markUp:`AI に修正を指示`,markUpHint:`画面に書き込むと、AI が修正します`,moreTools:`その他`,export:`書き出し`,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:`アニメーションの各ステップ`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`カバー画像`,pngPages:`PNG ページ`,pptx:`PowerPoint`}},ko:{saved:{saved:`저장됨`,saving:`저장 중…`,unsaved:`아직 저장되지 않음`,error:`저장되지 않음`},markUp:`표시해서 AI에게 맡기기`,markUpHint:`화면에 표시하면 AI가 고쳐 줍니다`,moreTools:`더보기`,export:`내보내기`,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:`애니메이션 단계별로`}},type:{mov:`MOV (ProRes)`,srt:`자막`,cover:`표지 이미지`,pngPages:`PNG 페이지`,pptx:`PowerPoint`}},es:{saved:{saved:`Guardado`,saving:`Guardando…`,unsaved:`Aún sin guardar`,error:`No guardado`},markUp:`Marcar para la IA`,markUpHint:`Marca lo que ves y la IA lo cambia`,moreTools:`Más`,export:`Exportar`,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`}},type:{mov:`MOV (ProRes)`,srt:`Subtítulos`,cover:`Imagen de portada`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},fr:{saved:{saved:`Enregistré`,saving:`Enregistrement…`,unsaved:`Pas encore enregistré`,error:`Non enregistré`},markUp:`Annoter pour l'IA`,markUpHint:`Annotez ce qui est affiché, et l'IA le modifie`,moreTools:`Plus`,export:`Exporter`,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`}},type:{mov:`MOV (ProRes)`,srt:`Sous-titres`,cover:`Image de couverture`,pngPages:`Pages PNG`,pptx:`PowerPoint`}},de:{saved:{saved:`Gespeichert`,saving:`Wird gespeichert…`,unsaved:`Noch nicht gespeichert`,error:`Nicht gespeichert`},markUp:`Für KI markieren`,markUpHint:`Markieren Sie, was zu sehen ist, und die KI ändert es`,moreTools:`Mehr`,export:`Exportieren`,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`}},type:{mov:`MOV (ProRes)`,srt:`Untertitel`,cover:`Titelbild`,pngPages:`PNG-Seiten`,pptx:`PowerPoint`}},it:{saved:{saved:`Salvato`,saving:`Salvataggio…`,unsaved:`Non ancora salvato`,error:`Non salvato`},markUp:`Annota per l'IA`,markUpHint:`Annota ciò che vedi e l'IA lo modifica`,moreTools:`Altro`,export:`Esporta`,exported:`Esportato`,exportFailed:`Esportazione non riuscita`,format:`Formato`,versions:`Lingue`,include:`Includi`,onShow:`Attuale`,all:e=>`Tutte le ${String(e)} lingue`,choose:`Scegli…`,chosen:e=>`${String(e)} scelte`,back:`Indietro`,checking:`Controllo…`,blocked:e=>`${String(e)} problemi da correggere bloccano l’esportazione`,start:`Esporta`,queued:`In attesa`,queuedAhead:e=>`In attesa, ${String(e)} prima`,running:e=>`Esportazione ${String(e)}%`,cancel:`Annulla`,retry:`Riprova`,failedHelp:e=>`Riprova o chiedi a ${e} cosa è andato storto.`,partial:`Non è stato possibile creare alcuni file.`,startFailed:`L'esportazione non è partita`,nVersions:e=>`${String(e)} versioni`,show:`Mostra nella cartella`,download:`Scarica`,option:{pptx:{label:`Diapositive`,values:{native:`Modificabili`,picture:`Immagini`}},steps:{label:`Ogni passaggio dell'animazione`}},type:{mov:`MOV (ProRes)`,srt:`Sottotitoli`,cover:`Immagine di copertina`,pngPages:`Pagine PNG`,pptx:`PowerPoint`}},pt:{saved:{saved:`Salvo`,saving:`Salvando…`,unsaved:`Ainda não salvo`,error:`Não salvo`},markUp:`Marcar para a IA`,markUpHint:`Marque o que vê e a IA altera`,moreTools:`Mais`,export:`Exportar`,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`}},type:{mov:`MOV (ProRes)`,srt:`Legendas`,cover:`Imagem de capa`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},ru:{saved:{saved:`Сохранено`,saving:`Сохранение…`,unsaved:`Ещё не сохранено`,error:`Не сохранено`},markUp:`Разметить для ИИ`,markUpHint:`Отметьте на экране, что изменить, и ИИ это сделает`,moreTools:`Ещё`,export:`Экспорт`,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:`Каждый шаг анимации`}},type:{mov:`MOV (ProRes)`,srt:`Субтитры`,cover:`Обложка`,pngPages:`Страницы PNG`,pptx:`PowerPoint`}},tr:{saved:{saved:`Kaydedildi`,saving:`Kaydediliyor…`,unsaved:`Henüz kaydedilmedi`,error:`Kaydedilmedi`},markUp:`Yapay zekâ için işaretle`,markUpHint:`Ekranda işaretleyin, yapay zekâ değiştirsin`,moreTools:`Diğer`,export:`Dışa aktar`,exported:`Dışa aktarıldı`,exportFailed:`Dışa aktarılamadı`,format:`Biçim`,versions:`Diller`,include:`Ekle`,onShow:`Geçerli`,all:e=>`${String(e)} dilin tümü`,choose:`Seç…`,chosen:e=>`${String(e)} seçildi`,back:`Geri`,checking:`Denetleniyor…`,blocked:e=>`Düzeltilmesi gereken ${String(e)} sorun dışa aktarmayı durduruyor`,start:`Dışa aktar`,queued:`Bekliyor`,queuedAhead:e=>`Bekliyor, önünde ${String(e)} iş var`,running:e=>`Dışa aktarılıyor %${String(e)}`,cancel:`İptal`,retry:`Yeniden dene`,failedHelp:e=>`Yeniden deneyin ya da sorunu ${e} ile inceleyin.`,partial:`Bazı dosyalar oluşturulamadı.`,startFailed:`Dışa aktarma başlamadı`,nVersions:e=>`${String(e)} sürüm`,show:`Klasörde göster`,download:`İndir`,option:{pptx:{label:`Slaytlar`,values:{native:`Düzenlenebilir`,picture:`Resimler`}},steps:{label:`Her animasyon adımı`}},type:{mov:`MOV (ProRes)`,srt:`Altyazı`,cover:`Kapak görseli`,pngPages:`PNG sayfaları`,pptx:`PowerPoint`}},vi:{saved:{saved:`Đã lưu`,saving:`Đang lưu…`,unsaved:`Chưa lưu`,error:`Không lưu được`},markUp:`Đánh dấu cho AI`,markUpHint:`Đánh dấu trên màn hình và AI sẽ sửa`,moreTools:`Thêm`,export:`Xuất`,exported:`Đã xuất`,exportFailed:`Xuất thất bại`,format:`Định dạng`,versions:`Ngôn ngữ`,include:`Kèm theo`,onShow:`Hiện tại`,all:e=>`Cả ${String(e)} ngôn ngữ`,choose:`Chọn…`,chosen:e=>`Đã chọn ${String(e)}`,back:`Quay lại`,checking:`Đang kiểm tra…`,blocked:e=>`${String(e)} vấn đề cần sửa đang chặn việc xuất`,start:`Xuất`,queued:`Đang chờ`,queuedAhead:e=>`Đang chờ, còn ${String(e)} việc phía trước`,running:e=>`Đang xuất ${String(e)}%`,cancel:`Hủy`,retry:`Thử lại`,failedHelp:e=>`Hãy thử lại hoặc hỏi ${e} xem có vấn đề gì.`,partial:`Không tạo được một số tệp.`,startFailed:`Không bắt đầu xuất được`,nVersions:e=>`${String(e)} phiên bản`,show:`Hiện trong thư mục`,download:`Tải xuống`,option:{pptx:{label:`Trang chiếu`,values:{native:`Có thể chỉnh sửa`,picture:`Ảnh`}},steps:{label:`Từng bước hoạt ảnh`}},type:{mov:`MOV (ProRes)`,srt:`Phụ đề`,cover:`Ảnh bìa`,pngPages:`Các trang PNG`,pptx:`PowerPoint`}},th:{saved:{saved:`บันทึกแล้ว`,saving:`กำลังบันทึก…`,unsaved:`ยังไม่ได้บันทึก`,error:`บันทึกไม่ได้`},markUp:`ทำเครื่องหมายให้ AI`,markUpHint:`ทำเครื่องหมายบนหน้าจอ แล้ว AI จะแก้ให้`,moreTools:`เพิ่มเติม`,export:`ส่งออก`,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:`แต่ละขั้นของภาพเคลื่อนไหว`}},type:{mov:`MOV (ProRes)`,srt:`คำบรรยาย`,cover:`ภาพหน้าปก`,pngPages:`หน้า PNG`,pptx:`PowerPoint`}},hi:{saved:{saved:`सहेजा गया`,saving:`सहेजा जा रहा है…`,unsaved:`अभी सहेजा नहीं गया`,error:`सहेजा नहीं गया`},markUp:`AI के लिए चिह्नित करें`,markUpHint:`स्क्रीन पर चिह्नित करें, AI बदल देगा`,moreTools:`और`,export:`एक्सपोर्ट`,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:`हर एनिमेशन चरण`}},type:{mov:`MOV (ProRes)`,srt:`कैप्शन`,cover:`कवर इमेज`,pngPages:`PNG पेज`,pptx:`PowerPoint`}}}),Rr={mp4:`MP4`,gif:`GIF`,pdf:`PDF`,docx:`Word`,md:`Markdown`,xlsx:`Excel`,csv:`CSV`,json:`JSON`,glb:`GLB`},zr=(e,t)=>Rr[t]??(t===`png`?e.type.pngPages:t in e.type?e.type[t]:t);function Br(){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 Vr(e){let t=L(),[n,r]=(0,B.useState)([]),[i,a]=(0,B.useState)(new Set),[o,s]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let e=!0;return g(t,`export/list`,{}).then(t=>{e&&(r(t.jobs),s(t.reveal))},()=>void 0),()=>{e=!1}},[t]),j(`export/changed`,({job:t})=>{r(e=>{let n=e.findIndex(e=>e.id===t.id);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}),!kr(t)&&!e&&a(e=>new Set(e).add(t.id))});let[c,l]=(0,B.useState)(e);return c!==e&&(l(e),e&&a(new Set)),{all:n,fresh:i,reveals:o}}function Hr(e){let t=L(),n=F[e],r=`item-bar.export.${e}`,[i,a]=(0,B.useState)({type:n?.types[0]??``,extras:[],options:{}});return(0,B.useEffect)(()=>{let e=!0;return t[`storage/get`]({key:r}).then(({value:t})=>{let r=t;if(!e||!n||!r)return;let i=n.types.find(e=>e===r.type);i!==void 0&&a({type:i,extras:n.extras.filter(e=>r.extras?.includes(e)),options:r.options??{}})},()=>void 0),()=>{e=!1}},[t,r,n]),[i,e=>{a(e),t[`storage/set`]({key:r,value:e}).catch(()=>void 0)}]}function Ur({percent:e}){return(0,V.jsx)(`span`,{"aria-hidden":!0,className:`relative size-3.5 flex-none rounded-full`,style:{background:`conic-gradient(currentColor ${String(e)}%, var(--allyhub-rule-strong) 0)`},children:(0,V.jsx)(`span`,{className:`bg-background absolute inset-[3px] rounded-full`})})}async function Wr(e,t){let{url:n}=await e[`files/url`]({path:t}),r=document.createElement(`a`);r.href=n,r.download=Ir(t),r.click()}async function Gr(e,t,n){n&&await g(e,`export/reveal`,{path:t}).then(()=>!0,()=>!1)||await Wr(e,t)}function Kr({job:e,versions:t,ahead:n,words:r,reveals:i}){let a=L(),c=R()?.agent?.name??`AllyHub`,l=Math.round(e.progress*100),d=i?Ie:Pe,f=i?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=>zr(r,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:[kr(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(l)}%`:n>0?r.queuedAhead(n):r.queued}),(0,V.jsx)($,{icon:!0,"aria-label":r.cancel,title:r.cancel,"data-testid":`export-cancel`,onClick:()=>{g(a,`export/cancel`,{job:e.id}).catch(()=>void 0)},children:(0,V.jsx)(s,{"aria-hidden":!0})})]}),(0,V.jsx)(xr,{value:l,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)(u,{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)($,{icon:!0,"aria-label":r.retry,title:r.retry,"data-testid":`export-retry`,onClick:()=>{g(a,`export/start`,{item:e.item,versions:e.versions,types:e.types,...e.options?{options:e.options}:{}}).catch(e=>{o.error(r.startFailed,{description:e instanceof Error?e.message:String(e)})})},children:(0,V.jsx)(Re,{"aria-hidden":!0})})]}),(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:r.failedHelp(c)})]}),e.files.map(e=>(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,"data-testid":`export-file`,children:[(0,V.jsx)(Ae,{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:Ir(e)}),(0,V.jsx)($,{icon:!0,"aria-label":f,title:f,"data-testid":`export-give`,onClick:()=>{Gr(a,e,i)},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 qr({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)($,{icon:!0,"aria-label":a.back,title:a.back,onClick:i,children:(0,V.jsx)(Me,{"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:`hover:bg-accent flex h-8 items-center gap-2 rounded-md px-2 text-sm`,children:[(0,V.jsx)(gr,{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 Jr({kind:e,item:t,props:n,jobs:r,all:i,words:a,reveals:s,startRef:c}){let d=L(),f=F[e],p=n.versions??[],m=p.map(e=>e.key),h=p.find(e=>e.key===n.shown)?.label,_=n.unavailable??{},[v,y]=Hr(e),[b,x]=(0,B.useState)(`shown`),[S,C]=(0,B.useState)(n.shown===void 0?[]:[n.shown]),[ee,w]=(0,B.useState)(!1),[E,D]=(0,B.useState)(!1);if(!f)return null;let O=Pr(b,n.shown,m,S),k=O?.length??1,A=[v.type,...v.extras.filter(e=>_[e]===void 0)],j=(f.options??[]).filter(e=>e.only.includes(v.type)),te=Mr(j,v.type,v.options),M=j.filter(e=>e.values===void 0),N=(e,t)=>{y({...v,options:{...v.options,[e]:t}})},P=n.check?.waiting===!0,I=P?0:n.check?.problems(O)??0,ne=r.some(e=>Ar(e,O??[],A,te)),re=async()=>{D(!0);try{await g(d,`export/start`,{item:t,...O?{versions:O}:{},types:A,...Object.keys(te).length>0?{options:te}:{}})}catch(e){o.error(a.startFailed,{description:e instanceof Error?e.message:String(e)})}finally{D(!1)}},ie=(0,V.jsxs)(ir,{value:v.type,onValueChange:e=>{y({...v,type:e})},children:[(0,V.jsx)(or,{size:`sm`,"aria-label":a.format,className:`w-full min-w-0`,"data-testid":`export-format`,children:(0,V.jsx)(ar,{})}),(0,V.jsx)(sr,{position:`popper`,align:`start`,children:f.types.map(e=>(0,V.jsx)(cr,{value:e,"data-type":e,children:zr(a,e)},e))})]}),R=(0,V.jsx)(T,{ref:c,size:`sm`,disabled:P||I>0||E||k===0||ne,"data-testid":`export-start`,onClick:()=>{re()},children:P?a.checking:a.start}),ae=m.length<=1&&f.extras.length===0&&j.length===0&&f.types.length>1&&n.facts===void 0&&I===0;return(0,V.jsxs)(`div`,{className:`overflow-hidden rounded-lg text-sm`,"data-testid":`export-panel`,children:[ee?(0,V.jsx)(qr,{versions:p,shown:n.shown,picked:S,onPick:C,onBack:()=>{w(!1)},words:a}):ae?(0,V.jsxs)(`div`,{className:`flex items-center gap-3 p-4`,children:[(0,V.jsx)(`span`,{className:`text-lead`,children:a.format}),(0,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:ie}),R]}):(0,V.jsxs)(V.Fragment,{children:[(f.types.length>1||m.length>1||f.extras.length+j.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:[f.types.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:a.format}),ie]}),j.map(e=>e.values?(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:a.option[e.name]?.label}),(0,V.jsxs)(ir,{value:String(v.options[e.name]??e.values[0]),onValueChange:t=>{N(e.name,t)},children:[(0,V.jsx)(or,{size:`sm`,"aria-label":a.option[e.name]?.label,className:`w-full min-w-0`,"data-testid":`export-option-${e.name}`,children:(0,V.jsx)(ar,{})}),(0,V.jsx)(sr,{position:`popper`,align:`start`,children:e.values.map(t=>(0,V.jsx)(cr,{value:t,"data-value":t,children:a.option[e.name]?.values?.[t]??t},t))})]})]},e.name):null),m.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:a.versions}),(0,V.jsxs)(ir,{value:b,onValueChange:e=>{x(e),e===`some`&&w(!0)},children:[(0,V.jsx)(or,{size:`sm`,"aria-label":a.versions,className:`w-full min-w-0`,"data-testid":`export-scope`,children:(0,V.jsx)(ar,{})}),(0,V.jsxs)(sr,{position:`popper`,align:`start`,children:[(0,V.jsx)(cr,{value:`shown`,children:h??a.onShow}),(0,V.jsx)(cr,{value:`all`,children:a.all(m.length)}),(0,V.jsx)(lr,{}),(0,V.jsx)(cr,{value:`some`,onPointerUp:()=>{w(!0)},children:b===`some`?a.chosen(S.length):a.choose})]})]})]}),f.extras.length+M.length>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead self-start`,children:a.include}),(0,V.jsxs)(`div`,{className:`grid gap-1.5`,"data-testid":`export-include`,children:[M.map(e=>(0,V.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(gr,{checked:v.options[e.name]===!0,"data-option":e.name,onCheckedChange:t=>{N(e.name,t===!0)}}),(0,V.jsx)(`span`,{className:`truncate`,children:a.option[e.name]?.label})]},e.name)),f.extras.map(e=>{let t=_[e];return(0,V.jsxs)(`label`,{title:t,className:l(`flex items-center gap-2`,t!==void 0&&`text-lead-soft`),children:[(0,V.jsx)(gr,{checked:t===void 0&&v.extras.includes(e),disabled:t!==void 0,"data-type":e,onCheckedChange:t=>{y({...v,extras:t===!0?[...v.extras,e]:v.extras.filter(t=>t!==e)})}}),(0,V.jsx)(`span`,{className:`truncate`,children:zr(a,e)})]},e)})]})]})]}),I>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)(u,{className:`mt-0.5 size-3.5 flex-none`,"aria-hidden":!0}),a.blocked(I)]}),(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:n.facts??(f.types.length===1?zr(a,v.type):void 0)}),R]})]}),r.length>0&&(0,V.jsx)(`div`,{className:`max-h-56 overflow-y-auto`,children:r.map(e=>(0,V.jsx)(Kr,{job:e,versions:p,ahead:Nr(i,e.id),words:a,reveals:s},e.id))})]})}function Yr(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 Xr(e){let t=R(),n=t?.item.kind,r=t?.item.dir,i=Lr.of(t?.locale),a=Br(),o=(0,B.useRef)(null),[s,c]=(0,B.useState)(!1),{all:l,fresh:d,reveals:f}=Vr(s);if(j(`editor/command`,()=>{c(e=>!e)}),(0,B.useEffect)(()=>{let e=e=>{Yr(e)&&(e.preventDefault(),c(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,B.useEffect)(()=>{if(!s||a)return;let e=()=>{c(!1)};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[s,a]),n===void 0||r===void 0||!F[n])return null;let p=Or(l,r),m=Fr(p,d),h=(0,V.jsxs)($,{"data-testid":`export`,"data-state":m.at,"aria-pressed":s,"aria-label":m.at===`running`?i.running(m.percent):void 0,onClick:()=>{a&&c(!0)},children:[m.at===`running`&&(0,V.jsx)(Ur,{percent:m.percent}),m.at===`queued`&&(0,V.jsx)(Ur,{percent:0}),m.at===`done`&&(0,V.jsx)(Ae,{className:`text-success`,"aria-hidden":!0}),m.at===`failed`&&(0,V.jsx)(u,{className:`text-destructive`,"aria-hidden":!0}),m.at===`idle`&&(0,V.jsx)(Pe,{"aria-hidden":!0}),m.at===`running`?`${String(m.percent)}%`:m.at===`queued`?i.queued:m.at===`done`?i.exported:m.at===`failed`?i.exportFailed:i.export]}),g=(0,V.jsx)(Jr,{kind:n,item:r,props:e,jobs:p,all:l,words:i,reveals:f,startRef:o});return a?(0,V.jsxs)(V.Fragment,{children:[h,(0,V.jsx)(Sr,{open:s,onOpenChange:c,children:(0,V.jsxs)(Tr,{side:`bottom`,showCloseButton:!1,className:`gap-0 rounded-t-lg`,children:[(0,V.jsx)(Er,{className:`sr-only`,children:i.export}),g]})})]}):(0,V.jsxs)(_r,{open:s,onOpenChange:c,children:[(0,V.jsx)(vr,{asChild:!0,children:h}),(0,V.jsxs)(yr,{align:`end`,sideOffset:8,className:`w-80 p-0`,onOpenAutoFocus:e=>{o.current&&!o.current.disabled&&(e.preventDefault(),o.current.focus())},children:[(0,V.jsx)(hr,{}),g]})]})}var Zr=150;function Qr(){let e=L(),t=R();if(t?.notes!==!0)return;let n=Lr.of(t.locale);return{label:n.markUp,hint:n.markUpHint,begin:()=>{e[`note/begin`]({}).catch(()=>void 0)}}}function $r({tight:e}){let t=Qr();return t?(0,V.jsxs)($,{icon:e===!0,"aria-label":t.label,title:t.hint,"data-testid":`mark-up`,onClick:()=>{t.begin()},children:[(0,V.jsx)(Le,{"aria-hidden":!0}),e===!0?null:t.label]}):null}function ei(){let e=Qr();return e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(C,{}),(0,V.jsxs)(P,{title:e.hint,"data-testid":`mark-up-item`,onSelect:()=>{setTimeout(()=>{e.begin()},Zr)},children:[(0,V.jsx)(Le,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}var ti=e=>e instanceof Element&&e.closest(`input, textarea`)!==null;function ni(){let e=Qr(),t=e!==void 0,[n,r]=(0,B.useState)();return(0,B.useEffect)(()=>{if(!t)return;let e=e=>{e.defaultPrevented||ti(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)(oe,{open:!0,onOpenChange:e=>{e||r(void 0)},children:[(0,V.jsx)(O,{asChild:!0,children:(0,V.jsx)(`span`,{style:{position:`fixed`,left:n.x,top:n.y,width:0,height:0}})}),(0,V.jsx)(x,{align:`start`,className:`text-xs`,children:(0,V.jsxs)(P,{title:e.hint,"data-testid":`mark-up-item`,onSelect:()=>{setTimeout(()=>{e.begin()},Zr)},children:[(0,V.jsx)(Le,{className:`size-3.5`,"aria-hidden":!0}),e.label]})})]})}var ri=800;function ii({saved:e,words:t}){let n=e.state===`saving`||e.state===`unsaved`,[r,i]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{i(!0)},ri);return()=>{clearTimeout(e),i(!1)}},[n]),e.state===`saved`||n&&!r?null:(0,V.jsx)(`span`,{"data-testid":`save-state`,"data-state":e.state,title:e.message,className:l(`px-1 text-xs`,e.state===`error`?`text-destructive`:`text-lead`),children:t.saved[e.state]})}function ai({start:e,saved:t,exports:n,tight:r}){let i=R(),a=Lr.of(i?.locale),o=i!==void 0&&F[i.item.kind]!==void 0;return!e&&!t&&!o?(0,V.jsx)(ni,{}):(0,V.jsxs)(`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,(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[t&&(0,V.jsx)(ii,{saved:t,words:a}),(0,V.jsx)($r,{tight:r===!0}),(0,V.jsx)(Xr,{...n})]}),(0,V.jsx)(ni,{})]})}function oi({children:e}){return(0,V.jsx)(`span`,{className:`before:bg-rule relative flex h-8 flex-none items-center gap-0.5 pl-2 before:absolute before:top-2 before:bottom-2 before:left-0.75 before:w-px`,children:e})}function si({testid:e,className:t,children:n,...r}){let i=R(),a=Lr.of(i?.locale),o=(0,B.useRef)(null),s=(0,B.useRef)(null),c=(0,B.useRef)(null),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(()=>{let t=e.firstElementChild?.getBoundingClientRect().height??0,n=e.getBoundingClientRect().height>t*1.5;d(n),n||p(!1)});return t.observe(e),()=>{t.disconnect()}},[]),(0,B.useEffect)(()=>{if(!f)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-radix-popper-content-wrapper]`)||o.current?.contains(t)||c.current?.contains(t)||p(!1))},t=e=>{e.key===`Escape`&&p(!1)};return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t)}},[f]),(0,V.jsxs)(`div`,{className:l(`relative h-8 min-w-0 flex-1`,t),children:[(0,V.jsx)(`div`,{...r,ref:o,className:`data-[open]:bg-background absolute top-0 right-7.5 left-0 h-8 overflow-hidden data-[open]:z-30 data-[open]:h-auto data-[open]:rounded-b-md data-[open]:shadow-md`,"data-testid":e,"data-open":f?``:void 0,children:(0,V.jsx)(`div`,{ref:s,className:`-ml-2 flex flex-wrap items-center`,children:n})}),u?(0,V.jsx)($,{ref:c,icon:!0,className:`absolute top-0.5 right-0.5`,"aria-label":a.moreTools,title:a.moreTools,"aria-expanded":f,"data-testid":`${e}-more`,onMouseDown:e=>{e.preventDefault()},onClick:()=>{p(!f)},children:(0,V.jsx)(Fe,{})}):null]})}export{Oe as C,ke as S,Ue as _,_r as a,je as b,vr as c,fr as d,ir as f,ar as g,or as h,ei as i,gr as l,cr as m,si as n,br as o,sr as p,ai as r,yr as s,oi as t,$ as u,Ne as v,Te as w,Ae as x,Me as y};
|