agentroam-runtime-darwin-arm64 0.2.0-preview.72 → 0.2.0-preview.74
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/manifest.json +2 -3
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +9 -9
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/routes-manifest.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +9 -9
- package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -0
- package/runtime/.next/server/app/api/engine-threads/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/engine-threads.body +1 -0
- package/runtime/.next/server/app/api/engine-threads.meta +1 -0
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +4 -4
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +34 -30
- package/runtime/.next/server/chunks/1614.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/chunks/5762.js +18 -0
- package/runtime/.next/server/chunks/6977.js +1 -1
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/333-9881c3d2c558a28d.js +1 -0
- package/runtime/.next/static/chunks/app/web/{error-36b287ca40eab041.js → error-53531bb27b3b87f8.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-88328c61ec0589af.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-84b5f00b4c9cd4ce.js +1 -0
- package/runtime/.next/static/chunks/{main-94a733696db11b91.js → main-93c452d518291b1c.js} +1 -1
- package/runtime/.next/static/chunks/{main-app-07b9ccbb642d9b9d.js → main-app-ba2527534563adfe.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +6 -1
- package/runtime/lib/web-app-cache.mjs +6 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +138 -138
- package/runtime/node_modules/@agent/core/dist/index.js +874 -128
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +203 -38
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
- package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
- package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
- package/runtime/node_modules/graceful-fs/package.json +3 -4
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
- package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
- package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
- package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
- package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
- package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
- package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
- package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
- package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
- package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
- package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
- package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
- package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
- package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
- package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
- package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
- package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
- package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
- package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
- package/runtime/node_modules/mediabunny/package.json +5 -4
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
- package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
- package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
- package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
- package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
- package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
- package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
- package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
- package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
- package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
- package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
- package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
- package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
- package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
- package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
- package/runtime/node_modules/mediabunny/src/input.ts +41 -17
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
- package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
- package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
- package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
- package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
- package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
- package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
- package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
- package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
- package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
- package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
- package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
- package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
- package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
- package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
- package/runtime/node_modules/mediabunny/src/output.ts +57 -30
- package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
- package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
- package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
- package/runtime/node_modules/mediabunny/src/source.ts +227 -97
- package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
- package/runtime/node_modules/mediabunny/src/target.ts +65 -41
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
- package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
- package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
- package/runtime/node_modules/sanitize-html/index.js +50 -20
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
- package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
- package/runtime/node_modules/sanitize-html/package.json +1 -1
- package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
- package/runtime/node_modules/ws/lib/websocket.js +38 -7
- package/runtime/node_modules/ws/package.json +1 -1
- package/runtime/package-lock.json +195 -171
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-DBOyOZzW.js +1 -0
- package/runtime/webapp/dist/assets/AgentManager-BLHvEA2d.js +3 -0
- package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-CWvL3HSl.js} +1 -1
- package/runtime/webapp/dist/assets/App-DGtdMfGk.js +179 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-Cl5kMDJF.js +56 -0
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-DPs4doOz.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-ChUaJ5xA.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationPage-Cg22tJGB.js +6 -0
- package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-BItgMeyP.js} +9 -14
- package/runtime/webapp/dist/assets/FileTree-t-YjjCDU.js +11 -0
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BnOoPJA6.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-DHrpQpBA.js +5 -0
- package/runtime/webapp/dist/assets/LSPServerList-CB2Cwqw_.js +4 -0
- package/runtime/webapp/dist/assets/MCPServerList-DUpgIcHk.js +8 -0
- package/runtime/webapp/dist/assets/MemoryViewer-DCFueBdK.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-DD9aNe8m.js +1 -0
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-CKKjZfu_.js} +1 -1
- package/runtime/webapp/dist/assets/SessionDashboard-CCpxslxg.js +21 -0
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge-DG1fQUEQ.js} +1 -1
- package/runtime/webapp/dist/assets/SettingsPanel-CA0Pj7qk.js +4 -0
- package/runtime/webapp/dist/assets/SkillManager-BzgAJlVW.js +1 -0
- package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-Bc4cGUmA.js} +2 -2
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-Dsp6XgB7.js} +1 -1
- package/runtime/webapp/dist/assets/arc-DROGDR5M.js +1 -0
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-S8c_fFRN.js} +1 -1
- package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CUDfCOna.js} +1 -1
- package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-C7zYRJaC.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-DrTz3v2B.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-wuHRphdr.js} +1 -1
- package/runtime/webapp/dist/assets/channel-C_3UNQvo.js +1 -0
- package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-fUU2ZKzR.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-BpV5cOX0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-1_IZosIm.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-IZ7w-WCZ.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BuicwmZn.js} +3 -3
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-CfNSj3eC.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Bxryudz4.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-DSZbEEd6.js} +3 -3
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CHqUfDzl.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-CPbMDiSF.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-j9nJ5DUm.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-j9nJ5DUm.js +1 -0
- package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BENnBdX2.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-DwgXZbHy.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-CKLnrVkP.js +11 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-BPzEzfJw.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BZgzPIdr.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-CyNjL-LN.js} +2 -2
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-QqLmAYnp.js} +2 -2
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-DrIIbhV6.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7JON90e.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-C1Fzjcgp.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-HmkXh54q.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-Ca5jnESS.js} +1 -1
- package/runtime/webapp/dist/assets/download-CKrjXoG9.js +6 -0
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-a3qnPIiF.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-EZKQ4NYt.js} +1 -1
- package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-C9AwR_tM.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-BlRT2KnS.js} +9 -4
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-C4U9dCin.js} +5 -5
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-B5iyiF0_.js} +2 -2
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-D9CfK-tl.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-DsCC5WAa.js} +1 -1
- package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-DBNVLOBM.js} +53 -53
- package/runtime/webapp/dist/assets/index-DrzCwyPu.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-DBcCijd6.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-D_m8F4n9.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-4oy2R7XW.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-O6jHSf0E.js} +5 -5
- package/runtime/webapp/dist/assets/layout-P82L_S-q.js +1 -0
- package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-B-Cl5K73.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle--s-WzZxC.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-BEmIap6p.js} +6 -6
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-Bnlqql-j.js} +1 -1
- package/runtime/webapp/dist/assets/page-BtLq1udo.js +91 -0
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-AbRjuoUM.js} +1 -1
- package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-5-ms1WT0.js +39 -0
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-BXr5BqtQ.js} +2 -2
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-DqBC-aod.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-VOUcatZG.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CSiD4c4O.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CclBpLSU.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-Bs23XmVr.js} +1 -1
- package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-CfzPXlfx.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-DO-oDX3L.js} +1 -1
- package/runtime/webapp/dist/assets/session-dashboard-D-0Cip5Y.js +6 -0
- package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-Dsex8w1k.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-hCQ98eA9.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-DLODIaTQ.js +1 -0
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CTpD-7Re.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-B3Qg_5tW.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-v5rUeqtL.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-BdFnRV4K.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-CZp_yMDT.js} +10 -5
- package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BWTyn3Bs.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-CRU6BY1c.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-CXK3g3al.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Den_EYDz.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-JmfGsfI_.js} +1 -1
- package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-CLvev0bC.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-CeISrKUm.js} +1 -1
- package/runtime/webapp/dist/assets/zoom-out-CSyjX26v.js +21 -0
- package/runtime/webapp/dist/index.html +18 -3
- package/runtime/ws-server.mjs +3 -6
- package/runtime/.next/server/chunks/1973.js +0 -1
- package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -309
- package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
- package/runtime/node_modules/@agent/messaging/package.json +0 -7
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
- package/runtime/node_modules/graceful-fs/LICENSE +0 -15
- package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
- package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
- package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
- package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
- package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
- package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
- package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
- package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
- package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
- package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
- package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
- package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
- package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
- package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
- package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
- package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
- package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
- package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
- package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
- /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_ssgManifest.js +0 -0
- /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
- /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { parseAacAudioSpecificConfig } from '../../shared/aac-misc.js';
|
|
9
9
|
import { DTS_FOURCCS, extractAudioCodecString, extractColorSpace, extractVideoCodecString, OPUS_SAMPLE_RATE, parsePcmCodec, PCM_AUDIO_CODECS, PRORES_FOURCCS, } from '../codec.js';
|
|
10
|
-
import { av1CodecInfoHasColorInfo, extractAv1CodecInfoFromPacket, extractProresCodecInfoFromPacket, extractVp9CodecInfoFromPacket, FlacBlockType, vp9CodecInfoHasColorInfo, parseEac3Config, getEac3SampleRate, getEac3ChannelCount, extractDtsFourCcFromPacket, parseDtsSpecificBox, DTS_SPECIFIC_BOX_SIZE, AC3_ACMOD_CHANNEL_COUNTS, extractAvcDecoderConfigurationRecord, extractHevcDecoderConfigurationRecord, deserializeAvcDecoderConfigurationRecord, deserializeHevcDecoderConfigurationRecord, HevcNalUnitType, parseAvcSps, parseHevcSps, } from '../codec-data.js';
|
|
10
|
+
import { av1CodecInfoHasColorInfo, extractAv1CodecInfoFromPacket, extractProresCodecInfoFromPacket, extractVp9CodecInfoFromPacket, FlacBlockType, vp9CodecInfoHasColorInfo, parseEac3Config, splitEac3AudioFrames, getEac3SampleRate, getEac3ChannelCount, extractDtsFourCcFromPacket, parseDtsSpecificBox, DTS_SPECIFIC_BOX_SIZE, AC3_ACMOD_CHANNEL_COUNTS, extractAvcDecoderConfigurationRecord, extractHevcDecoderConfigurationRecord, deserializeAvcDecoderConfigurationRecord, deserializeHevcDecoderConfigurationRecord, HevcNalUnitType, parseAvcSps, parseHevcSps, } from '../codec-data.js';
|
|
11
11
|
import { Demuxer } from '../demuxer.js';
|
|
12
|
-
import { assert, binarySearchExact, binarySearchLessOrEqual, bytesToHexString, COLOR_PRIMARIES_MAP_INVERSE, findLastIndex, IDENTITY_MATRIX, isIso639Dash2LanguageCode, isThenable, last, MATRIX_COEFFICIENTS_MAP_INVERSE, multiplyMatrices, textDecoder, TRANSFER_CHARACTERISTICS_MAP_INVERSE, UNDETERMINED_LANGUAGE, toDataView, roundIfAlmostInteger, hexStringToBytes, HEX_STRING_REGEX, EMPTY_COLOR_SPACE, colorSpaceIsComplete, } from '../misc.js';
|
|
12
|
+
import { assert, binarySearchExact, binarySearchLessOrEqual, bytesToHexString, COLOR_PRIMARIES_MAP_INVERSE, findLastIndex, IDENTITY_MATRIX, isIso639Dash2LanguageCode, isThenable, last, MATRIX_COEFFICIENTS_MAP_INVERSE, multiplyMatrices, textDecoder, TRANSFER_CHARACTERISTICS_MAP_INVERSE, UNDETERMINED_LANGUAGE, toDataView, roundIfAlmostInteger, hexStringToBytes, HEX_STRING_REGEX, EMPTY_COLOR_SPACE, colorSpaceIsComplete, parseIsoSuffix, } from '../misc.js';
|
|
13
13
|
import { EncodedPacket, PLACEHOLDER_DATA } from '../packet.js';
|
|
14
14
|
import { buildIsobmffMimeType, parsePsshBoxContents, psshBoxesAreEqual, TIMESTAMP_OFFSET, } from './isobmff-misc.js';
|
|
15
15
|
import { MAX_BOX_HEADER_SIZE, MIN_BOX_HEADER_SIZE, readBoxHeader, readDataBox, readFixed_16_16, readFixed_2_30, readEsDescriptor, readMetadataStringShort, } from './isobmff-reader.js';
|
|
@@ -41,6 +41,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
41
41
|
this.psshBoxes = [];
|
|
42
42
|
this.currentFragment = null;
|
|
43
43
|
this.isReadingTraf = false;
|
|
44
|
+
this.currentFragmentTrackState = null;
|
|
44
45
|
/**
|
|
45
46
|
* Caches the last fragment that was read. Based on the assumption that there will be multiple reads to the
|
|
46
47
|
* same fragment in quick succession.
|
|
@@ -203,7 +204,6 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
203
204
|
sampleTableByteOffset: null,
|
|
204
205
|
sampleTable: null,
|
|
205
206
|
fragmentLookupTable: [],
|
|
206
|
-
currentFragmentState: null,
|
|
207
207
|
fragmentPositionCache: [],
|
|
208
208
|
editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
|
|
209
209
|
editListOffset: foreignTrack.editListOffset,
|
|
@@ -325,12 +325,12 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
// Instead of determining the chunk's size by looping over the samples sizes in the sample table, we
|
|
328
|
-
// can directly compute it as we know how many PCM frames are in this chunk
|
|
329
|
-
//
|
|
330
|
-
//
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
// can directly compute it as we know how many PCM frames are in this chunk (from its duration, as a
|
|
329
|
+
// sample may span more than one frame), and the size of each PCM frame. This also improves
|
|
330
|
+
// compatibility with some files which fail to write proper sample size values into their sample
|
|
331
|
+
// tables in the PCM case.
|
|
332
|
+
const frameCount = Math.round(delta * internalTrack.info.sampleRate / internalTrack.timescale);
|
|
333
|
+
const chunkSize = frameCount * pcmInfo.sampleSize * internalTrack.info.numberOfChannels;
|
|
334
334
|
newSampleSizes.push(chunkSize);
|
|
335
335
|
}
|
|
336
336
|
// The new samples are numbered consecutively, even if the chunks don't start at the first one
|
|
@@ -393,95 +393,117 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
393
393
|
}
|
|
394
394
|
return sampleTable;
|
|
395
395
|
}
|
|
396
|
-
|
|
396
|
+
readFragment(startPos) {
|
|
397
397
|
if (this.lastReadFragment?.moofOffset === startPos) {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
headerSlice =
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
entireSlice =
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
// Let's use the end timestamp of the previous fragment in the cache
|
|
451
|
-
const lastCache = fragmentPositionCache[lastCacheIndex];
|
|
452
|
-
offsetFragmentTrackDataByTimestamp(trackData, lastCache.endTimestamp);
|
|
398
|
+
// Also covers reads still in progress, so concurrent reads of the same fragment share all the work
|
|
399
|
+
return this.lastReadFragment.promise;
|
|
400
|
+
}
|
|
401
|
+
const promise = (async () => {
|
|
402
|
+
let headerSlice = this.reader.requestSliceRange(startPos, MIN_BOX_HEADER_SIZE, MAX_BOX_HEADER_SIZE);
|
|
403
|
+
if (isThenable(headerSlice))
|
|
404
|
+
headerSlice = await headerSlice;
|
|
405
|
+
assert(headerSlice);
|
|
406
|
+
const moofBoxInfo = readBoxHeader(headerSlice);
|
|
407
|
+
assert(moofBoxInfo?.name === 'moof');
|
|
408
|
+
let entireSlice = this.reader.requestSlice(startPos, moofBoxInfo.totalSize);
|
|
409
|
+
if (isThenable(entireSlice))
|
|
410
|
+
entireSlice = await entireSlice;
|
|
411
|
+
if (!entireSlice)
|
|
412
|
+
return null; // The moof box is cut off
|
|
413
|
+
this.traverseBox(entireSlice);
|
|
414
|
+
// The moof box case leaves the parsed fragment for us to pick up
|
|
415
|
+
const fragment = this.currentFragment;
|
|
416
|
+
assert(fragment && fragment.moofOffset === startPos);
|
|
417
|
+
this.currentFragment = null;
|
|
418
|
+
this.fragmentSummaries.set(startPos, {
|
|
419
|
+
moofSize: fragment.moofSize,
|
|
420
|
+
trackIds: new Set(fragment.trackData.keys()),
|
|
421
|
+
});
|
|
422
|
+
for (const [, trackData] of fragment.trackData) {
|
|
423
|
+
const track = trackData.track;
|
|
424
|
+
const { fragmentPositionCache } = track;
|
|
425
|
+
if (!trackData.startTimestampIsFinal) {
|
|
426
|
+
// It may be that some tracks don't define the base decode time, i.e. when the fragment begins. This
|
|
427
|
+
// we'll need to figure out the start timestamp another way. We'll compute the timestamp by
|
|
428
|
+
// accessing the lookup entries and fragment cache, which works out nicely with the lookup
|
|
429
|
+
// algorithm: If these exist, then the lookup will automatically start at the furthest possible
|
|
430
|
+
// point. If they don't, the lookup starts sequentially from the start, incrementally summing up all
|
|
431
|
+
// fragment durations. It's sort of implicit, but it ends up working nicely.
|
|
432
|
+
// The table is sorted by timestamp, which for any sane file means it's also sorted by offset
|
|
433
|
+
const lookupEntryIndex = binarySearchExact(track.fragmentLookupTable, fragment.moofOffset, x => x.moofOffset);
|
|
434
|
+
const lookupEntry = track.fragmentLookupTable[lookupEntryIndex];
|
|
435
|
+
const lookupEntryIsValid = lookupEntry
|
|
436
|
+
&& trackData.trunSampleCounts.length >= lookupEntry.trunNumber
|
|
437
|
+
&& trackData.trunSampleCounts[lookupEntry.trunNumber - 1] >= lookupEntry.sampleNumber;
|
|
438
|
+
if (lookupEntryIsValid) {
|
|
439
|
+
// We ignore traf number here, since we've already matched based on track ID
|
|
440
|
+
let sampleIndex = 0;
|
|
441
|
+
for (let i = 1; i < lookupEntry.trunNumber; i++) {
|
|
442
|
+
sampleIndex += trackData.trunSampleCounts[i - 1];
|
|
443
|
+
}
|
|
444
|
+
sampleIndex += lookupEntry.sampleNumber - 1;
|
|
445
|
+
const sample = trackData.samples[sampleIndex];
|
|
446
|
+
assert(sample); // Must hold due to the above range checks
|
|
447
|
+
// The timestamp in the lookup entry describes the timestamp of the referenced sample
|
|
448
|
+
const timestampOffset = lookupEntry.timestamp - sample.presentationTimestamp;
|
|
449
|
+
offsetFragmentTrackDataByTimestamp(trackData, timestampOffset);
|
|
453
450
|
}
|
|
454
451
|
else {
|
|
455
|
-
|
|
452
|
+
const lastCacheIndex = binarySearchLessOrEqual(fragmentPositionCache, fragment.moofOffset - 1, x => x.moofOffset);
|
|
453
|
+
if (lastCacheIndex !== -1) {
|
|
454
|
+
// Let's continue decoding where the previous fragment in the cache left off
|
|
455
|
+
const lastCache = fragmentPositionCache[lastCacheIndex];
|
|
456
|
+
offsetFragmentTrackDataByTimestamp(trackData, lastCache.endDecodeTimestamp);
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
// We're the first fragment, so we continue where the samples in the moov box end (which is
|
|
460
|
+
// at 0 if there are none)
|
|
461
|
+
const lastTimingEntry = last(this.getSampleTableForTrack(track).sampleTimingEntries);
|
|
462
|
+
if (lastTimingEntry) {
|
|
463
|
+
const { startDecodeTimestamp, count, delta } = lastTimingEntry;
|
|
464
|
+
offsetFragmentTrackDataByTimestamp(trackData, startDecodeTimestamp + count * delta);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
456
467
|
}
|
|
468
|
+
trackData.startTimestampIsFinal = true;
|
|
469
|
+
}
|
|
470
|
+
// Let's remember that a fragment with a given timestamp is here, speeding up future lookups if no
|
|
471
|
+
// lookup table exists
|
|
472
|
+
const insertionIndex = binarySearchLessOrEqual(fragmentPositionCache, trackData.startTimestamp, x => x.startTimestamp);
|
|
473
|
+
const previousEntry = fragmentPositionCache[insertionIndex];
|
|
474
|
+
const nextEntry = fragmentPositionCache[insertionIndex + 1];
|
|
475
|
+
// Only remember it if the timestamp order matches the moof offset order
|
|
476
|
+
if ((!previousEntry || previousEntry.moofOffset < fragment.moofOffset)
|
|
477
|
+
&& (!nextEntry || nextEntry.moofOffset > fragment.moofOffset)) {
|
|
478
|
+
fragmentPositionCache.splice(insertionIndex + 1, 0, {
|
|
479
|
+
moofOffset: fragment.moofOffset,
|
|
480
|
+
startTimestamp: trackData.startTimestamp,
|
|
481
|
+
endDecodeTimestamp: trackData.endDecodeTimestamp,
|
|
482
|
+
hasKeyFrame: trackData.firstKeyFrameTimestamp !== null,
|
|
483
|
+
});
|
|
457
484
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
// Only remember it if the timestamp order matches the moof offset order
|
|
466
|
-
if ((!previousEntry || previousEntry.moofOffset < fragment.moofOffset)
|
|
467
|
-
&& (!nextEntry || nextEntry.moofOffset > fragment.moofOffset)) {
|
|
468
|
-
fragmentPositionCache.splice(insertionIndex + 1, 0, {
|
|
469
|
-
moofOffset: fragment.moofOffset,
|
|
470
|
-
startTimestamp: trackData.startTimestamp,
|
|
471
|
-
endTimestamp: trackData.endTimestamp,
|
|
472
|
-
hasKeyFrame: trackData.firstKeyFrameTimestamp !== null,
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
// If senc wasn't parsed but saiz+saio were, fetch the aux info now and stamp each sample with it
|
|
476
|
-
if (trackData.encryptionAuxInfo && track.encryptionInfo) {
|
|
477
|
-
const entries = await resolveEncryptionAuxInfo(this.reader, track.encryptionInfo, trackData.encryptionAuxInfo);
|
|
478
|
-
for (let i = 0; i < Math.min(trackData.samples.length, entries.length); i++) {
|
|
479
|
-
const entry = entries[i];
|
|
480
|
-
trackData.samples[i].encryption = entry;
|
|
485
|
+
// If senc wasn't parsed but saiz+saio were, fetch the aux info now and stamp each sample with it
|
|
486
|
+
if (trackData.encryptionAuxInfo && track.encryptionInfo) {
|
|
487
|
+
const entries = await resolveEncryptionAuxInfo(this.reader, track.encryptionInfo, trackData.encryptionAuxInfo);
|
|
488
|
+
for (let i = 0; i < Math.min(trackData.samples.length, entries.length); i++) {
|
|
489
|
+
const entry = entries[i];
|
|
490
|
+
trackData.samples[i].encryption = entry;
|
|
491
|
+
}
|
|
481
492
|
}
|
|
482
493
|
}
|
|
483
|
-
|
|
484
|
-
|
|
494
|
+
return fragment;
|
|
495
|
+
})();
|
|
496
|
+
this.lastReadFragment = {
|
|
497
|
+
moofOffset: startPos,
|
|
498
|
+
promise,
|
|
499
|
+
};
|
|
500
|
+
// A failed read shouldn't stick around
|
|
501
|
+
promise.catch(() => {
|
|
502
|
+
if (this.lastReadFragment?.promise === promise) {
|
|
503
|
+
this.lastReadFragment = null;
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
return promise;
|
|
485
507
|
}
|
|
486
508
|
readContiguousBoxes(slice) {
|
|
487
509
|
if (this.boxNestingDepth === MAX_BOX_NESTING_DEPTH) {
|
|
@@ -590,7 +612,6 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
590
612
|
sampleTableByteOffset: -1,
|
|
591
613
|
sampleTable: null,
|
|
592
614
|
fragmentLookupTable: [],
|
|
593
|
-
currentFragmentState: null,
|
|
594
615
|
fragmentPositionCache: [],
|
|
595
616
|
editListPreviousSegmentDurations: 0,
|
|
596
617
|
editListOffset: 0,
|
|
@@ -714,6 +735,10 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
714
735
|
track.timescale = readU32Be(slice);
|
|
715
736
|
track.durationInMediaTimescale = readU64Be(slice);
|
|
716
737
|
}
|
|
738
|
+
if (track.durationInMediaTimescale === 2 ** (version === 1 ? 64 : 32) - 1) {
|
|
739
|
+
// All ones means the duration is unknown
|
|
740
|
+
track.durationInMediaTimescale = -1;
|
|
741
|
+
}
|
|
717
742
|
if (track.timescale === 0) {
|
|
718
743
|
throw new Error('Invalid mdhd box: timescale must not be 0.');
|
|
719
744
|
}
|
|
@@ -752,6 +777,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
752
777
|
colorSpace: { ...EMPTY_COLOR_SPACE },
|
|
753
778
|
avcType: null,
|
|
754
779
|
avcCodecInfo: null,
|
|
780
|
+
hevcType: null,
|
|
755
781
|
hevcCodecInfo: null,
|
|
756
782
|
vp9CodecInfo: null,
|
|
757
783
|
av1CodecInfo: null,
|
|
@@ -825,6 +851,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
825
851
|
}
|
|
826
852
|
else if (codecName === 'hvc1' || codecName === 'hev1') {
|
|
827
853
|
track.info.codec = 'hevc';
|
|
854
|
+
track.info.hevcType = codecName;
|
|
828
855
|
}
|
|
829
856
|
else if (codecName === 'vp08') {
|
|
830
857
|
track.info.codec = 'vp8';
|
|
@@ -874,7 +901,8 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
874
901
|
}
|
|
875
902
|
}
|
|
876
903
|
track.info.numberOfChannels = channelCount;
|
|
877
|
-
|
|
904
|
+
// A sample rate that doesn't fit is written as 0, making the media timescale our best guess
|
|
905
|
+
track.info.sampleRate = sampleRate || track.timescale;
|
|
878
906
|
track.frmaCodecString = null;
|
|
879
907
|
this.readContiguousBoxes(slice.slice(slice.filePos, (sampleBoxStartPos + sampleBoxInfo.totalSize) - slice.filePos));
|
|
880
908
|
const codecName = lowercaseBoxName === 'enca'
|
|
@@ -885,6 +913,9 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
885
913
|
if (codecName === 'mp4a') {
|
|
886
914
|
// The codec is set by the esds box
|
|
887
915
|
}
|
|
916
|
+
else if (codecName === '.mp3') {
|
|
917
|
+
track.info.codec = 'mp3';
|
|
918
|
+
}
|
|
888
919
|
else if (codecName === 'opus') {
|
|
889
920
|
track.info.codec = 'opus';
|
|
890
921
|
track.info.sampleRate = OPUS_SAMPLE_RATE; // Always the same
|
|
@@ -1020,6 +1051,9 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1020
1051
|
if (sampleSize === 32) {
|
|
1021
1052
|
track.info.codec = isBigEndian ? 'pcm-f32be' : 'pcm-f32';
|
|
1022
1053
|
}
|
|
1054
|
+
else if (sampleSize === 64) {
|
|
1055
|
+
track.info.codec = isBigEndian ? 'pcm-f64be' : 'pcm-f64';
|
|
1056
|
+
}
|
|
1023
1057
|
}
|
|
1024
1058
|
else {
|
|
1025
1059
|
if (sFlags & (1 << (bytesPerSample - 1))) {
|
|
@@ -1379,6 +1413,17 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1379
1413
|
}
|
|
1380
1414
|
;
|
|
1381
1415
|
break;
|
|
1416
|
+
case 'srat':
|
|
1417
|
+
{
|
|
1418
|
+
const track = this.currentTrack;
|
|
1419
|
+
if (!track || track.info?.type !== 'audio') {
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
slice.skip(4); // Version + flags
|
|
1423
|
+
track.info.sampleRate = readU32Be(slice);
|
|
1424
|
+
}
|
|
1425
|
+
;
|
|
1426
|
+
break;
|
|
1382
1427
|
case 'dOps':
|
|
1383
1428
|
{ // Used for Opus audio
|
|
1384
1429
|
const track = this.currentTrack;
|
|
@@ -1392,13 +1437,10 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1392
1437
|
const inputSampleRate = readU32Be(slice);
|
|
1393
1438
|
const outputGain = readI16Be(slice);
|
|
1394
1439
|
const channelMappingFamily = readU8(slice);
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
else {
|
|
1400
|
-
channelMappingTable = new Uint8Array(0);
|
|
1401
|
-
}
|
|
1440
|
+
// Taking all of the rest also keeps the demixing matrix of family 3, which replaces the channel mapping
|
|
1441
|
+
const channelMappingTable = channelMappingFamily !== 0
|
|
1442
|
+
? readBytes(slice, boxInfo.contentSize - 11)
|
|
1443
|
+
: new Uint8Array(0);
|
|
1402
1444
|
// https://datatracker.ietf.org/doc/html/draft-ietf-codec-oggopus-06
|
|
1403
1445
|
const description = new Uint8Array(8 + 1 + 1 + 2 + 4 + 2 + 1 + channelMappingTable.byteLength);
|
|
1404
1446
|
const view = new DataView(description.buffer);
|
|
@@ -1853,11 +1895,14 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1853
1895
|
};
|
|
1854
1896
|
try {
|
|
1855
1897
|
this.readContiguousBoxes(slice.slice(contentStartPos, boxInfo.contentSize));
|
|
1856
|
-
this.lastReadFragment = this.currentFragment;
|
|
1857
1898
|
}
|
|
1858
|
-
|
|
1899
|
+
catch (error) {
|
|
1859
1900
|
this.currentFragment = null;
|
|
1901
|
+
throw error;
|
|
1902
|
+
}
|
|
1903
|
+
finally {
|
|
1860
1904
|
this.currentTrack = null;
|
|
1905
|
+
this.currentFragmentTrackState = null;
|
|
1861
1906
|
}
|
|
1862
1907
|
}
|
|
1863
1908
|
;
|
|
@@ -1874,9 +1919,12 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1874
1919
|
finally {
|
|
1875
1920
|
this.isReadingTraf = false;
|
|
1876
1921
|
}
|
|
1922
|
+
const fragmentTrackState = this.currentFragmentTrackState;
|
|
1923
|
+
this.currentFragmentTrackState = null;
|
|
1877
1924
|
// It is possible that there is no current track, for example when we don't care about the track
|
|
1878
1925
|
// referenced in the track fragment header.
|
|
1879
1926
|
if (this.currentTrack) {
|
|
1927
|
+
assert(fragmentTrackState);
|
|
1880
1928
|
const trackData = this.currentFragment.trackData.get(this.currentTrack.id);
|
|
1881
1929
|
cond: if (trackData) {
|
|
1882
1930
|
if (trackData.samples.length === 0) {
|
|
@@ -1905,19 +1953,17 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1905
1953
|
const lastSample = trackData.samples[last(trackData.presentationTimestamps).sampleIndex];
|
|
1906
1954
|
trackData.startTimestamp = firstSample.presentationTimestamp;
|
|
1907
1955
|
trackData.endTimestamp = lastSample.presentationTimestamp + lastSample.duration;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
offsetFragmentTrackDataByTimestamp(trackData, currentFragmentState.startTimestamp);
|
|
1956
|
+
trackData.endDecodeTimestamp = fragmentTrackState.currentTimestamp;
|
|
1957
|
+
if (fragmentTrackState.startTimestamp !== null) {
|
|
1958
|
+
offsetFragmentTrackDataByTimestamp(trackData, fragmentTrackState.startTimestamp);
|
|
1912
1959
|
trackData.startTimestampIsFinal = true;
|
|
1913
1960
|
}
|
|
1914
1961
|
// Transfer the buffered saiz+saio state onto the track data, so readFragment can resolve it
|
|
1915
1962
|
// once all boxes are parsed. Only relevant if senc wasn't already used to populate samples.
|
|
1916
|
-
if (
|
|
1917
|
-
trackData.encryptionAuxInfo =
|
|
1963
|
+
if (fragmentTrackState.encryptionAuxInfo && !trackData.samples[0].encryption) {
|
|
1964
|
+
trackData.encryptionAuxInfo = fragmentTrackState.encryptionAuxInfo;
|
|
1918
1965
|
}
|
|
1919
1966
|
}
|
|
1920
|
-
this.currentTrack.currentFragmentState = null;
|
|
1921
1967
|
this.currentTrack = null;
|
|
1922
1968
|
}
|
|
1923
1969
|
}
|
|
@@ -1941,7 +1987,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1941
1987
|
case 'tfhd':
|
|
1942
1988
|
{
|
|
1943
1989
|
// Only the first tfhd of a traf counts; anywhere else, there'd be no traf to finish the track data
|
|
1944
|
-
if (!this.currentFragment || !this.isReadingTraf || this.
|
|
1990
|
+
if (!this.currentFragment || !this.isReadingTraf || this.currentFragmentTrackState) {
|
|
1945
1991
|
break;
|
|
1946
1992
|
}
|
|
1947
1993
|
slice.skip(1); // Version
|
|
@@ -1954,18 +2000,9 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1954
2000
|
const durationIsEmpty = Boolean(flags & 0x010000);
|
|
1955
2001
|
const defaultBaseIsMoof = Boolean(flags & 0x020000);
|
|
1956
2002
|
const trackId = readU32Be(slice);
|
|
1957
|
-
const track = this.idToTrack.get(trackId);
|
|
1958
|
-
if (!track) {
|
|
1959
|
-
// We don't care about this track
|
|
1960
|
-
break;
|
|
1961
|
-
}
|
|
1962
|
-
if (this.currentFragment.trackData.has(trackId)) {
|
|
1963
|
-
Logging._warn(`Multiple traf boxes for track ${trackId} in the same moof box; skipping.`);
|
|
1964
|
-
break;
|
|
1965
|
-
}
|
|
1966
2003
|
const defaults = this.fragmentTrackDefaults.get(trackId);
|
|
1967
|
-
this
|
|
1968
|
-
|
|
2004
|
+
// Even tracks we ignore get this state, since their data still shifts the implicit base data offset
|
|
2005
|
+
const fragmentTrackState = {
|
|
1969
2006
|
baseDataOffset: this.currentFragment.implicitBaseDataOffset,
|
|
1970
2007
|
sampleDescriptionIndex: defaults?.defaultSampleDescriptionIndex ?? null,
|
|
1971
2008
|
defaultSampleDuration: defaults?.defaultSampleDuration ?? null,
|
|
@@ -1973,50 +2010,67 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
1973
2010
|
defaultSampleFlags: defaults?.defaultSampleFlags ?? null,
|
|
1974
2011
|
startTimestamp: null,
|
|
1975
2012
|
encryptionAuxInfo: null,
|
|
2013
|
+
currentOffset: null,
|
|
2014
|
+
currentTimestamp: 0,
|
|
1976
2015
|
};
|
|
2016
|
+
this.currentFragmentTrackState = fragmentTrackState;
|
|
1977
2017
|
if (baseDataOffsetPresent) {
|
|
1978
|
-
|
|
2018
|
+
fragmentTrackState.baseDataOffset = readU64Be(slice);
|
|
1979
2019
|
}
|
|
1980
2020
|
else if (defaultBaseIsMoof) {
|
|
1981
|
-
|
|
2021
|
+
fragmentTrackState.baseDataOffset = this.currentFragment.moofOffset;
|
|
1982
2022
|
}
|
|
1983
2023
|
if (sampleDescriptionIndexPresent) {
|
|
1984
|
-
|
|
2024
|
+
fragmentTrackState.sampleDescriptionIndex = readU32Be(slice);
|
|
1985
2025
|
}
|
|
1986
2026
|
if (defaultSampleDurationPresent) {
|
|
1987
|
-
|
|
2027
|
+
fragmentTrackState.defaultSampleDuration = readU32Be(slice);
|
|
1988
2028
|
}
|
|
1989
2029
|
if (defaultSampleSizePresent) {
|
|
1990
|
-
|
|
2030
|
+
fragmentTrackState.defaultSampleSize = readU32Be(slice);
|
|
1991
2031
|
}
|
|
1992
2032
|
if (defaultSampleFlagsPresent) {
|
|
1993
|
-
|
|
2033
|
+
fragmentTrackState.defaultSampleFlags = readU32Be(slice);
|
|
1994
2034
|
}
|
|
1995
2035
|
if (durationIsEmpty) {
|
|
1996
|
-
|
|
2036
|
+
fragmentTrackState.defaultSampleDuration = 0;
|
|
1997
2037
|
}
|
|
2038
|
+
const track = this.idToTrack.get(trackId);
|
|
2039
|
+
if (!track) {
|
|
2040
|
+
// We don't care about this track
|
|
2041
|
+
break;
|
|
2042
|
+
}
|
|
2043
|
+
if (this.currentFragment.trackData.has(trackId)) {
|
|
2044
|
+
// Note that we don't actually skip the parsing of the trun. We can't, because it's necessary for
|
|
2045
|
+
// incrementing the data offset.
|
|
2046
|
+
Logging._warn(`Multiple traf boxes for track ${trackId} in the same moof box; ignoring the samples of all but`
|
|
2047
|
+
+ ' the first.');
|
|
2048
|
+
break;
|
|
2049
|
+
}
|
|
2050
|
+
this.currentTrack = track;
|
|
1998
2051
|
}
|
|
1999
2052
|
;
|
|
2000
2053
|
break;
|
|
2001
2054
|
case 'tfdt':
|
|
2002
2055
|
{
|
|
2003
|
-
|
|
2004
|
-
if (!track?.currentFragmentState) {
|
|
2056
|
+
if (!this.currentFragmentTrackState) {
|
|
2005
2057
|
break;
|
|
2006
2058
|
}
|
|
2007
2059
|
const version = readU8(slice);
|
|
2008
2060
|
slice.skip(3); // Flags
|
|
2009
2061
|
const baseMediaDecodeTime = version === 0 ? readU32Be(slice) : readU64Be(slice);
|
|
2010
|
-
|
|
2062
|
+
this.currentFragmentTrackState.startTimestamp = baseMediaDecodeTime;
|
|
2011
2063
|
}
|
|
2012
2064
|
;
|
|
2013
2065
|
break;
|
|
2014
2066
|
case 'trun':
|
|
2015
2067
|
{
|
|
2016
|
-
const
|
|
2017
|
-
if (!
|
|
2068
|
+
const fragmentTrackState = this.currentFragmentTrackState;
|
|
2069
|
+
if (!fragmentTrackState || !this.currentFragment) {
|
|
2018
2070
|
break;
|
|
2019
2071
|
}
|
|
2072
|
+
// Can be null if we don't care about the track (still needs parsing tho)
|
|
2073
|
+
const track = this.currentTrack;
|
|
2020
2074
|
slice.skip(1); // Version
|
|
2021
2075
|
const flags = readU24Be(slice);
|
|
2022
2076
|
const dataOffsetPresent = Boolean(flags & 0x000001);
|
|
@@ -2026,7 +2080,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2026
2080
|
const sampleFlagsPresent = Boolean(flags & 0x000400);
|
|
2027
2081
|
const sampleCompositionTimeOffsetsPresent = Boolean(flags & 0x000800);
|
|
2028
2082
|
const sampleCount = readU32Be(slice);
|
|
2029
|
-
const { defaultSampleDuration, defaultSampleSize, defaultSampleFlags } =
|
|
2083
|
+
const { defaultSampleDuration, defaultSampleSize, defaultSampleFlags } = fragmentTrackState;
|
|
2030
2084
|
if (sampleCount > 0
|
|
2031
2085
|
&& ((!sampleDurationPresent && defaultSampleDuration === null)
|
|
2032
2086
|
|| (!sampleSizePresent && defaultSampleSize === null)
|
|
@@ -2046,34 +2100,32 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2046
2100
|
if (firstSampleFlagsPresent) {
|
|
2047
2101
|
firstSampleFlags = readU32Be(slice);
|
|
2048
2102
|
}
|
|
2049
|
-
|
|
2050
|
-
if
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2103
|
+
// "If the data-offset is not present, then the data for this run starts immediately after the data of
|
|
2104
|
+
// the previous run, or at the base-data-offset defined by the track fragment header if this is the
|
|
2105
|
+
// first run in a track fragment"
|
|
2106
|
+
let currentOffset = dataOffset !== null
|
|
2107
|
+
? fragmentTrackState.baseDataOffset + dataOffset
|
|
2108
|
+
: fragmentTrackState.currentOffset ?? fragmentTrackState.baseDataOffset;
|
|
2109
|
+
let trackData = null;
|
|
2110
|
+
if (track) {
|
|
2111
|
+
trackData = this.currentFragment.trackData.get(track.id) ?? null;
|
|
2112
|
+
if (!trackData) {
|
|
2113
|
+
trackData = {
|
|
2114
|
+
track,
|
|
2115
|
+
startTimestamp: 0,
|
|
2116
|
+
endTimestamp: 0,
|
|
2117
|
+
endDecodeTimestamp: 0,
|
|
2118
|
+
firstKeyFrameTimestamp: null,
|
|
2119
|
+
samples: [],
|
|
2120
|
+
presentationTimestamps: [],
|
|
2121
|
+
startTimestampIsFinal: false,
|
|
2122
|
+
trunSampleCounts: [],
|
|
2123
|
+
encryptionAuxInfo: null,
|
|
2124
|
+
};
|
|
2125
|
+
this.currentFragment.trackData.set(track.id, trackData);
|
|
2058
2126
|
}
|
|
2127
|
+
trackData.trunSampleCounts.push(sampleCount);
|
|
2059
2128
|
}
|
|
2060
|
-
else {
|
|
2061
|
-
trackData = {
|
|
2062
|
-
track,
|
|
2063
|
-
currentTimestamp: 0,
|
|
2064
|
-
currentOffset: track.currentFragmentState.baseDataOffset + (dataOffset ?? 0),
|
|
2065
|
-
startTimestamp: 0,
|
|
2066
|
-
endTimestamp: 0,
|
|
2067
|
-
firstKeyFrameTimestamp: null,
|
|
2068
|
-
samples: [],
|
|
2069
|
-
presentationTimestamps: [],
|
|
2070
|
-
startTimestampIsFinal: false,
|
|
2071
|
-
trunSampleCounts: [],
|
|
2072
|
-
encryptionAuxInfo: null,
|
|
2073
|
-
};
|
|
2074
|
-
this.currentFragment.trackData.set(track.id, trackData);
|
|
2075
|
-
}
|
|
2076
|
-
trackData.trunSampleCounts.push(sampleCount);
|
|
2077
2129
|
for (let i = 0; i < sampleCount; i++) {
|
|
2078
2130
|
let sampleDuration;
|
|
2079
2131
|
if (sampleDurationPresent) {
|
|
@@ -2106,19 +2158,19 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2106
2158
|
// safe to do this.
|
|
2107
2159
|
sampleCompositionTimeOffset = readI32Be(slice);
|
|
2108
2160
|
}
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
presentationTimestamp: trackData.currentTimestamp + sampleCompositionTimeOffset,
|
|
2161
|
+
trackData?.samples.push({
|
|
2162
|
+
presentationTimestamp: fragmentTrackState.currentTimestamp + sampleCompositionTimeOffset,
|
|
2112
2163
|
duration: sampleDuration,
|
|
2113
|
-
byteOffset:
|
|
2164
|
+
byteOffset: currentOffset,
|
|
2114
2165
|
byteSize: sampleSize,
|
|
2115
|
-
isKeyFrame,
|
|
2166
|
+
isKeyFrame: !(sampleFlags & 0x00010000),
|
|
2116
2167
|
encryption: null,
|
|
2117
2168
|
});
|
|
2118
|
-
|
|
2119
|
-
|
|
2169
|
+
currentOffset += sampleSize;
|
|
2170
|
+
fragmentTrackState.currentTimestamp += sampleDuration;
|
|
2120
2171
|
}
|
|
2121
|
-
|
|
2172
|
+
fragmentTrackState.currentOffset = currentOffset;
|
|
2173
|
+
this.currentFragment.implicitBaseDataOffset = currentOffset;
|
|
2122
2174
|
}
|
|
2123
2175
|
;
|
|
2124
2176
|
break;
|
|
@@ -2145,7 +2197,7 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2145
2197
|
if (defaultSampleInfoSize === 0 && sampleCount > 0) {
|
|
2146
2198
|
sampleSizes = readBytes(slice, sampleCount);
|
|
2147
2199
|
}
|
|
2148
|
-
const aux = getOrCreateEncryptionAuxInfo(track);
|
|
2200
|
+
const aux = getOrCreateEncryptionAuxInfo(track, this.currentFragmentTrackState);
|
|
2149
2201
|
aux.defaultSampleInfoSize = defaultSampleInfoSize;
|
|
2150
2202
|
aux.sampleSizes = sampleSizes;
|
|
2151
2203
|
aux.sampleCount = sampleCount;
|
|
@@ -2176,11 +2228,12 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2176
2228
|
Logging._warn('Multiple saio entries are not supported; using the first offset only.');
|
|
2177
2229
|
}
|
|
2178
2230
|
let offset = version === 0 ? readU32Be(slice) : Number(readU64Be(slice));
|
|
2179
|
-
// Per ISO/IEC
|
|
2231
|
+
// Per ISO/IEC 14496-12: when saio is inside a traf, offsets are relative to its base data offset
|
|
2180
2232
|
if (this.currentFragment) {
|
|
2181
|
-
|
|
2233
|
+
assert(this.currentFragmentTrackState);
|
|
2234
|
+
offset += this.currentFragmentTrackState.baseDataOffset;
|
|
2182
2235
|
}
|
|
2183
|
-
const aux = getOrCreateEncryptionAuxInfo(track);
|
|
2236
|
+
const aux = getOrCreateEncryptionAuxInfo(track, this.currentFragmentTrackState);
|
|
2184
2237
|
aux.offset = offset;
|
|
2185
2238
|
}
|
|
2186
2239
|
;
|
|
@@ -2264,6 +2317,17 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2264
2317
|
;
|
|
2265
2318
|
break;
|
|
2266
2319
|
case '©nam':
|
|
2320
|
+
{
|
|
2321
|
+
// Unlike name, ©nam holds international text
|
|
2322
|
+
if (this.currentTrack) {
|
|
2323
|
+
this.currentTrack.name = readMetadataStringShort(slice);
|
|
2324
|
+
}
|
|
2325
|
+
else {
|
|
2326
|
+
this.metadataTags.title ??= readMetadataStringShort(slice);
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
;
|
|
2330
|
+
break;
|
|
2267
2331
|
case 'name':
|
|
2268
2332
|
{
|
|
2269
2333
|
if (this.currentTrack) {
|
|
@@ -2318,8 +2382,8 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2318
2382
|
case '©day':
|
|
2319
2383
|
{
|
|
2320
2384
|
if (!this.currentTrack) {
|
|
2321
|
-
const date =
|
|
2322
|
-
if (
|
|
2385
|
+
const date = parseIsoSuffix(readMetadataStringShort(slice));
|
|
2386
|
+
if (date) {
|
|
2323
2387
|
this.metadataTags.date ??= date;
|
|
2324
2388
|
}
|
|
2325
2389
|
}
|
|
@@ -2496,8 +2560,8 @@ export class IsobmffDemuxer extends Demuxer {
|
|
|
2496
2560
|
case 'date':
|
|
2497
2561
|
{
|
|
2498
2562
|
if (typeof data === 'string') {
|
|
2499
|
-
const date =
|
|
2500
|
-
if (
|
|
2563
|
+
const date = parseIsoSuffix(data);
|
|
2564
|
+
if (date) {
|
|
2501
2565
|
this.metadataTags.date ??= date;
|
|
2502
2566
|
}
|
|
2503
2567
|
}
|
|
@@ -2601,9 +2665,7 @@ class IsobmffTrackBacking {
|
|
|
2601
2665
|
this.internalTrack = internalTrack;
|
|
2602
2666
|
this.packetToSampleIndex = new WeakMap();
|
|
2603
2667
|
this.packetToFragmentLocation = new WeakMap();
|
|
2604
|
-
|
|
2605
|
-
getId() {
|
|
2606
|
-
return this.internalTrack.id;
|
|
2668
|
+
this.nextEac3Frames = new WeakMap();
|
|
2607
2669
|
}
|
|
2608
2670
|
getNumber() {
|
|
2609
2671
|
const demuxer = this.internalTrack.demuxer;
|
|
@@ -2659,6 +2721,10 @@ class IsobmffTrackBacking {
|
|
|
2659
2721
|
// must be computed instead.
|
|
2660
2722
|
return null;
|
|
2661
2723
|
}
|
|
2724
|
+
if (track.demuxer.isFragmented && track.demuxer.getSampleTableForTrack(track).sampleCount > 0) {
|
|
2725
|
+
// The duration only covers the samples in the moov box and not the fragments that follow
|
|
2726
|
+
return null;
|
|
2727
|
+
}
|
|
2662
2728
|
assert(track.trackBacking);
|
|
2663
2729
|
const firstPacket = await track.trackBacking.getFirstPacket({ metadataOnly: true });
|
|
2664
2730
|
return (firstPacket?.timestamp ?? 0) + track.durationInMediaTimescale / track.timescale;
|
|
@@ -2672,20 +2738,7 @@ class IsobmffTrackBacking {
|
|
|
2672
2738
|
// If there's a non-fragmented packet, always prefer that
|
|
2673
2739
|
return regularPacket;
|
|
2674
2740
|
}
|
|
2675
|
-
return this.
|
|
2676
|
-
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
2677
|
-
if (trackData) {
|
|
2678
|
-
return {
|
|
2679
|
-
sampleIndex: 0,
|
|
2680
|
-
correctSampleFound: true,
|
|
2681
|
-
};
|
|
2682
|
-
}
|
|
2683
|
-
return {
|
|
2684
|
-
sampleIndex: -1,
|
|
2685
|
-
correctSampleFound: false,
|
|
2686
|
-
};
|
|
2687
|
-
}, -Infinity, // Use -Infinity as a search timestamp to avoid using the lookup entries
|
|
2688
|
-
Infinity, options);
|
|
2741
|
+
return this.fetchFirstFragmentedPacket(false, options);
|
|
2689
2742
|
}
|
|
2690
2743
|
mapTimestampIntoTimescale(timestamp) {
|
|
2691
2744
|
// Do a little rounding to catch cases where the result is very close to an integer. If it is, it's likely
|
|
@@ -2697,12 +2750,11 @@ class IsobmffTrackBacking {
|
|
|
2697
2750
|
const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
|
|
2698
2751
|
const sampleTable = this.internalTrack.demuxer.getSampleTableForTrack(this.internalTrack);
|
|
2699
2752
|
const sampleIndex = getSampleIndexForTimestamp(sampleTable, timestampInTimescale);
|
|
2700
|
-
const regularPacket = await this.fetchPacketForSampleIndex(sampleIndex, options);
|
|
2701
|
-
if (!
|
|
2702
|
-
// Prefer the non-fragmented packet
|
|
2753
|
+
const regularPacket = await this.fetchPacketForSampleIndex(sampleIndex, options, timestampInTimescale);
|
|
2754
|
+
if (!this.internalTrack.demuxer.isFragmented) {
|
|
2703
2755
|
return regularPacket;
|
|
2704
2756
|
}
|
|
2705
|
-
|
|
2757
|
+
const fragmentedPacket = await this.performFragmentedLookup(null, (fragment) => {
|
|
2706
2758
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
2707
2759
|
if (!trackData) {
|
|
2708
2760
|
return { sampleIndex: -1, correctSampleFound: false };
|
|
@@ -2712,12 +2764,26 @@ class IsobmffTrackBacking {
|
|
|
2712
2764
|
const correctSampleFound = index !== -1 && timestampInTimescale < trackData.endTimestamp;
|
|
2713
2765
|
return { sampleIndex, correctSampleFound };
|
|
2714
2766
|
}, timestampInTimescale, timestampInTimescale, options);
|
|
2767
|
+
if (!regularPacket || !fragmentedPacket) {
|
|
2768
|
+
return regularPacket ?? fragmentedPacket;
|
|
2769
|
+
}
|
|
2770
|
+
// The closer one wins
|
|
2771
|
+
return regularPacket.timestamp > fragmentedPacket.timestamp ? regularPacket : fragmentedPacket;
|
|
2715
2772
|
}
|
|
2716
2773
|
async getNextPacket(packet, options) {
|
|
2774
|
+
const nextEac3Frame = this.nextEac3Frames.get(packet);
|
|
2775
|
+
if (nextEac3Frame) {
|
|
2776
|
+
return nextEac3Frame;
|
|
2777
|
+
}
|
|
2717
2778
|
const regularSampleIndex = this.packetToSampleIndex.get(packet);
|
|
2718
2779
|
if (regularSampleIndex !== undefined) {
|
|
2719
2780
|
// Prefer the non-fragmented packet
|
|
2720
|
-
|
|
2781
|
+
const regularPacket = await this.fetchPacketForSampleIndex(regularSampleIndex + 1, options);
|
|
2782
|
+
if (regularPacket || !this.internalTrack.demuxer.isFragmented) {
|
|
2783
|
+
return regularPacket;
|
|
2784
|
+
}
|
|
2785
|
+
// The fragments come after the non-fragmented samples
|
|
2786
|
+
return this.fetchFirstFragmentedPacket(false, options);
|
|
2721
2787
|
}
|
|
2722
2788
|
const locationInFragment = this.packetToFragmentLocation.get(packet);
|
|
2723
2789
|
if (locationInFragment === undefined) {
|
|
@@ -2754,12 +2820,11 @@ class IsobmffTrackBacking {
|
|
|
2754
2820
|
const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
|
|
2755
2821
|
const sampleTable = this.internalTrack.demuxer.getSampleTableForTrack(this.internalTrack);
|
|
2756
2822
|
const sampleIndex = getKeyframeSampleIndexForTimestamp(sampleTable, timestampInTimescale);
|
|
2757
|
-
const regularPacket = await this.fetchPacketForSampleIndex(sampleIndex, options);
|
|
2758
|
-
if (!
|
|
2759
|
-
// Prefer the non-fragmented packet
|
|
2823
|
+
const regularPacket = await this.fetchPacketForSampleIndex(sampleIndex, options, timestampInTimescale);
|
|
2824
|
+
if (!this.internalTrack.demuxer.isFragmented) {
|
|
2760
2825
|
return regularPacket;
|
|
2761
2826
|
}
|
|
2762
|
-
|
|
2827
|
+
const fragmentedPacket = await this.performFragmentedLookup(null, (fragment) => {
|
|
2763
2828
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
2764
2829
|
if (!trackData) {
|
|
2765
2830
|
return { sampleIndex: -1, correctSampleFound: false };
|
|
@@ -2772,14 +2837,28 @@ class IsobmffTrackBacking {
|
|
|
2772
2837
|
const correctSampleFound = index !== -1 && timestampInTimescale < trackData.endTimestamp;
|
|
2773
2838
|
return { sampleIndex, correctSampleFound };
|
|
2774
2839
|
}, timestampInTimescale, timestampInTimescale, options, true);
|
|
2840
|
+
if (!regularPacket || !fragmentedPacket) {
|
|
2841
|
+
return regularPacket ?? fragmentedPacket;
|
|
2842
|
+
}
|
|
2843
|
+
// The closer one wins
|
|
2844
|
+
return regularPacket.timestamp > fragmentedPacket.timestamp ? regularPacket : fragmentedPacket;
|
|
2775
2845
|
}
|
|
2776
2846
|
async getNextKeyPacket(packet, options) {
|
|
2847
|
+
const nextEac3Frame = this.nextEac3Frames.get(packet); // E-AC-3 frames are all key packets
|
|
2848
|
+
if (nextEac3Frame) {
|
|
2849
|
+
return nextEac3Frame;
|
|
2850
|
+
}
|
|
2777
2851
|
const regularSampleIndex = this.packetToSampleIndex.get(packet);
|
|
2778
2852
|
if (regularSampleIndex !== undefined) {
|
|
2779
2853
|
// Prefer the non-fragmented packet
|
|
2780
2854
|
const sampleTable = this.internalTrack.demuxer.getSampleTableForTrack(this.internalTrack);
|
|
2781
2855
|
const nextKeyFrameSampleIndex = getNextKeyframeIndexForSample(sampleTable, regularSampleIndex);
|
|
2782
|
-
|
|
2856
|
+
const regularPacket = await this.fetchPacketForSampleIndex(nextKeyFrameSampleIndex, options);
|
|
2857
|
+
if (regularPacket || !this.internalTrack.demuxer.isFragmented) {
|
|
2858
|
+
return regularPacket;
|
|
2859
|
+
}
|
|
2860
|
+
// The fragments come after the non-fragmented samples
|
|
2861
|
+
return this.fetchFirstFragmentedPacket(true, options);
|
|
2783
2862
|
}
|
|
2784
2863
|
const locationInFragment = this.packetToFragmentLocation.get(packet);
|
|
2785
2864
|
if (locationInFragment === undefined) {
|
|
@@ -2816,7 +2895,18 @@ class IsobmffTrackBacking {
|
|
|
2816
2895
|
}, -Infinity, // Use -Infinity as a search timestamp to avoid using the lookup entries
|
|
2817
2896
|
Infinity, options);
|
|
2818
2897
|
}
|
|
2819
|
-
|
|
2898
|
+
fetchFirstFragmentedPacket(keyPacketsOnly, options) {
|
|
2899
|
+
return this.performFragmentedLookup(null, (fragment) => {
|
|
2900
|
+
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
2901
|
+
const sampleIndex = trackData?.samples.findIndex(x => !keyPacketsOnly || x.isKeyFrame) ?? -1;
|
|
2902
|
+
return {
|
|
2903
|
+
sampleIndex,
|
|
2904
|
+
correctSampleFound: sampleIndex !== -1,
|
|
2905
|
+
};
|
|
2906
|
+
}, -Infinity, // Use -Infinity as a search timestamp to avoid using the lookup entries
|
|
2907
|
+
Infinity, options);
|
|
2908
|
+
}
|
|
2909
|
+
async fetchPacketForSampleIndex(sampleIndex, options, searchTimestamp = -Infinity) {
|
|
2820
2910
|
if (sampleIndex === -1) {
|
|
2821
2911
|
return null;
|
|
2822
2912
|
}
|
|
@@ -2826,7 +2916,7 @@ class IsobmffTrackBacking {
|
|
|
2826
2916
|
return null;
|
|
2827
2917
|
}
|
|
2828
2918
|
let data;
|
|
2829
|
-
if (options.metadataOnly) {
|
|
2919
|
+
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
2830
2920
|
data = PLACEHOLDER_DATA;
|
|
2831
2921
|
}
|
|
2832
2922
|
else {
|
|
@@ -2855,10 +2945,13 @@ class IsobmffTrackBacking {
|
|
|
2855
2945
|
/ this.internalTrack.timescale;
|
|
2856
2946
|
const duration = sampleInfo.duration / this.internalTrack.timescale;
|
|
2857
2947
|
const packet = new EncodedPacket(data, sampleInfo.isKeyFrame ? 'key' : 'delta', timestamp, duration, sampleIndex, sampleInfo.sampleSize);
|
|
2948
|
+
if (this.internalTrack.info?.codec === 'eac3') {
|
|
2949
|
+
return this.splitEac3Sample(packet, options, searchTimestamp, this.packetToSampleIndex, sampleIndex);
|
|
2950
|
+
}
|
|
2858
2951
|
this.packetToSampleIndex.set(packet, sampleIndex);
|
|
2859
2952
|
return packet;
|
|
2860
2953
|
}
|
|
2861
|
-
async fetchPacketInFragment(fragment, sampleIndex, options) {
|
|
2954
|
+
async fetchPacketInFragment(fragment, sampleIndex, options, searchTimestamp) {
|
|
2862
2955
|
if (sampleIndex === -1) {
|
|
2863
2956
|
return null;
|
|
2864
2957
|
}
|
|
@@ -2866,7 +2959,7 @@ class IsobmffTrackBacking {
|
|
|
2866
2959
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
2867
2960
|
assert(fragmentSample);
|
|
2868
2961
|
let data;
|
|
2869
|
-
if (options.metadataOnly) {
|
|
2962
|
+
if (options.metadataOnly && this.internalTrack.info?.codec !== 'eac3') { // E-AC-3 is split by its data
|
|
2870
2963
|
data = PLACEHOLDER_DATA;
|
|
2871
2964
|
}
|
|
2872
2965
|
else {
|
|
@@ -2889,6 +2982,12 @@ class IsobmffTrackBacking {
|
|
|
2889
2982
|
/ this.internalTrack.timescale;
|
|
2890
2983
|
const duration = fragmentSample.duration / this.internalTrack.timescale;
|
|
2891
2984
|
const packet = new EncodedPacket(data, fragmentSample.isKeyFrame ? 'key' : 'delta', timestamp, duration, fragment.moofOffset + sampleIndex, fragmentSample.byteSize);
|
|
2985
|
+
if (this.internalTrack.info?.codec === 'eac3') {
|
|
2986
|
+
return this.splitEac3Sample(packet, options, searchTimestamp, this.packetToFragmentLocation, {
|
|
2987
|
+
fragment,
|
|
2988
|
+
sampleIndex,
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2892
2991
|
this.packetToFragmentLocation.set(packet, { fragment, sampleIndex });
|
|
2893
2992
|
return packet;
|
|
2894
2993
|
}
|
|
@@ -2910,7 +3009,7 @@ class IsobmffTrackBacking {
|
|
|
2910
3009
|
if (startFragment) {
|
|
2911
3010
|
const { sampleIndex, correctSampleFound } = getMatchInFragment(startFragment);
|
|
2912
3011
|
if (correctSampleFound) {
|
|
2913
|
-
return this.fetchPacketInFragment(startFragment, sampleIndex, options);
|
|
3012
|
+
return this.fetchPacketInFragment(startFragment, sampleIndex, options, searchTimestamp);
|
|
2914
3013
|
}
|
|
2915
3014
|
if (sampleIndex !== -1) {
|
|
2916
3015
|
bestFragment = startFragment;
|
|
@@ -2985,7 +3084,7 @@ class IsobmffTrackBacking {
|
|
|
2985
3084
|
}
|
|
2986
3085
|
const { sampleIndex, correctSampleFound } = getMatchInFragment(currentFragment);
|
|
2987
3086
|
if (correctSampleFound) {
|
|
2988
|
-
return this.fetchPacketInFragment(currentFragment, sampleIndex, options);
|
|
3087
|
+
return this.fetchPacketInFragment(currentFragment, sampleIndex, options, searchTimestamp);
|
|
2989
3088
|
}
|
|
2990
3089
|
if (sampleIndex !== -1) {
|
|
2991
3090
|
bestFragment = currentFragment;
|
|
@@ -3004,10 +3103,44 @@ class IsobmffTrackBacking {
|
|
|
3004
3103
|
}
|
|
3005
3104
|
if (bestFragment) {
|
|
3006
3105
|
// If we finished looping but didn't find a perfect match, still return the best match we found
|
|
3007
|
-
return this.fetchPacketInFragment(bestFragment, bestSampleIndex, options);
|
|
3106
|
+
return this.fetchPacketInFragment(bestFragment, bestSampleIndex, options, searchTimestamp);
|
|
3008
3107
|
}
|
|
3009
3108
|
return null;
|
|
3010
3109
|
}
|
|
3110
|
+
splitEac3Sample(samplePacket, options, searchTimestamp, locations, location) {
|
|
3111
|
+
// An MP4 sample holds six blocks' worth of E-AC-3 frames (ETSI TS 102 366, Annex F), but a packet is one frame
|
|
3112
|
+
const info = this.internalTrack.info;
|
|
3113
|
+
assert(info?.type === 'audio');
|
|
3114
|
+
const frames = splitEac3AudioFrames(samplePacket.data) ?? [{
|
|
3115
|
+
offset: 0,
|
|
3116
|
+
size: samplePacket.data.byteLength,
|
|
3117
|
+
blockCount: 6,
|
|
3118
|
+
}];
|
|
3119
|
+
const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.editListOffset)
|
|
3120
|
+
/ this.internalTrack.timescale;
|
|
3121
|
+
let match = null;
|
|
3122
|
+
let previousPacket = null;
|
|
3123
|
+
let blocksBefore = 0;
|
|
3124
|
+
for (let i = 0; i < frames.length; i++) {
|
|
3125
|
+
const frame = frames[i];
|
|
3126
|
+
const timestamp = samplePacket.timestamp + 256 * blocksBefore / info.sampleRate;
|
|
3127
|
+
const duration = frames.length === 1 ? samplePacket.duration : 256 * frame.blockCount / info.sampleRate;
|
|
3128
|
+
const packet = new EncodedPacket(options.metadataOnly
|
|
3129
|
+
? PLACEHOLDER_DATA
|
|
3130
|
+
: samplePacket.data.subarray(frame.offset, frame.offset + frame.size), 'key', timestamp, duration, 8 * samplePacket.sequenceNumber + i, frame.size);
|
|
3131
|
+
locations.set(packet, location);
|
|
3132
|
+
if (previousPacket) {
|
|
3133
|
+
this.nextEac3Frames.set(previousPacket, packet);
|
|
3134
|
+
}
|
|
3135
|
+
if (i === 0 || timestamp <= searchTimestampInSeconds) {
|
|
3136
|
+
match = packet;
|
|
3137
|
+
}
|
|
3138
|
+
previousPacket = packet;
|
|
3139
|
+
blocksBefore += frame.blockCount;
|
|
3140
|
+
}
|
|
3141
|
+
assert(match);
|
|
3142
|
+
return match;
|
|
3143
|
+
}
|
|
3011
3144
|
}
|
|
3012
3145
|
class IsobmffVideoTrackBacking extends IsobmffTrackBacking {
|
|
3013
3146
|
constructor(internalTrack) {
|
|
@@ -3322,6 +3455,7 @@ const getNextKeyframeIndexForSample = (sampleTable, sampleIndex) => {
|
|
|
3322
3455
|
const offsetFragmentTrackDataByTimestamp = (trackData, timestamp) => {
|
|
3323
3456
|
trackData.startTimestamp += timestamp;
|
|
3324
3457
|
trackData.endTimestamp += timestamp;
|
|
3458
|
+
trackData.endDecodeTimestamp += timestamp;
|
|
3325
3459
|
for (const sample of trackData.samples) {
|
|
3326
3460
|
sample.presentationTimestamp += timestamp;
|
|
3327
3461
|
}
|
|
@@ -3360,9 +3494,6 @@ const applySpsPixelAspectRatio = (track, pixelAspectRatio) => {
|
|
|
3360
3494
|
info.squarePixelHeight = Math.round(info.height * den / num);
|
|
3361
3495
|
}
|
|
3362
3496
|
};
|
|
3363
|
-
const sampleTableIsEmpty = (sampleTable) => {
|
|
3364
|
-
return sampleTable.sampleSizes.length === 0;
|
|
3365
|
-
};
|
|
3366
3497
|
const capEntryCounts = (entries, sampleCount) => {
|
|
3367
3498
|
while (entries.length > 0 && last(entries).startIndex >= sampleCount) {
|
|
3368
3499
|
entries.pop();
|
|
@@ -3372,9 +3503,9 @@ const capEntryCounts = (entries, sampleCount) => {
|
|
|
3372
3503
|
lastEntry.count = Math.min(lastEntry.count, sampleCount - lastEntry.startIndex);
|
|
3373
3504
|
}
|
|
3374
3505
|
};
|
|
3375
|
-
const getOrCreateEncryptionAuxInfo = (track) => {
|
|
3376
|
-
if (
|
|
3377
|
-
return
|
|
3506
|
+
const getOrCreateEncryptionAuxInfo = (track, fragmentTrackState) => {
|
|
3507
|
+
if (fragmentTrackState) {
|
|
3508
|
+
return fragmentTrackState.encryptionAuxInfo ??= {
|
|
3378
3509
|
defaultSampleInfoSize: 0,
|
|
3379
3510
|
sampleSizes: null,
|
|
3380
3511
|
sampleCount: 0,
|