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
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
8
|
import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer.js';
|
|
9
|
-
import { MAX_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader.js';
|
|
10
|
-
import { aacChannelMap, aacFrequencyTable } from '../../shared/aac-misc.js';
|
|
9
|
+
import { MAX_ADTS_FRAME_HEADER_SIZE, MIN_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader.js';
|
|
10
|
+
import { aacChannelMap, aacFrequencyTable, getAacProgramConfigElementChannelCount, readAdtsProgramConfigElement, } from '../../shared/aac-misc.js';
|
|
11
11
|
import { extractAudioCodecString, extractVideoCodecString, } from '../codec.js';
|
|
12
12
|
import { AC3_ACMOD_CHANNEL_COUNTS, AC3_SAMPLES_PER_FRAME, AvcNalUnitType, determineVideoPacketType, extractAvcDecoderConfigurationRecord, extractHevcDecoderConfigurationRecord, EAC3_NUMBLKS_TABLE, getEac3ChannelCount, getEac3SampleRate, HevcNalUnitType, parseAc3SyncFrame, parseAvcSps, parseEac3SyncFrame, parseHevcSps, AC3_FRAME_SIZES, extractNalUnitTypeForAvc, extractNalUnitTypeForHevc, parseDtsFrame, parseDtsCoreFrameHeader, parseDtsExssHeader, DTS_CORE_FRAME_HEADER_SIZE, DTS_EXSS_HEADER_PREFIX_SIZE, DTS_EXSS_MAX_HEADER_SIZE, } from '../codec-data.js';
|
|
13
13
|
import { Demuxer } from '../demuxer.js';
|
|
@@ -101,16 +101,19 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
101
101
|
currentPos += this.packetStride;
|
|
102
102
|
continue;
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const isElementaryStreamPid = this.elementaryStreams.some(x => x.pid === packetHeader.pid);
|
|
105
|
+
const section = await this.readSection(currentPos, !isElementaryStreamPid, !hasProgramMap);
|
|
105
106
|
if (!section) {
|
|
106
107
|
break;
|
|
107
108
|
}
|
|
108
|
-
const BYTES_BEFORE_SECTION_LENGTH = 3;
|
|
109
109
|
const BITS_IN_CRC_32 = 32; // Duh
|
|
110
|
-
// Some streams don't contain a PAT for some reason, so we
|
|
111
|
-
// the PMT is.
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
// Some streams don't contain a PAT for some reason, so as long as we haven't seen one, we must do some
|
|
111
|
+
// guesswork to figure out where the PMT is. Either way, the PMT PID may also carry private sections, so
|
|
112
|
+
// the table ID tells us it's the PMT.
|
|
113
|
+
let isProgramMap = false;
|
|
114
|
+
if (!hasProgramMap
|
|
115
|
+
&& section.pid !== 0
|
|
116
|
+
&& (programMapPid === null || section.pid === programMapPid)) {
|
|
114
117
|
const isPesPacket = section.payload[0] === 0x00 && section.payload[1] === 0x00 && section.payload[2] === 0x01;
|
|
115
118
|
if (!isPesPacket) {
|
|
116
119
|
// Assume it's a PSI
|
|
@@ -118,7 +121,7 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
118
121
|
const pointerField = bitstream.readAlignedByte();
|
|
119
122
|
bitstream.skipBits(8 * pointerField);
|
|
120
123
|
const tableId = bitstream.readBits(8);
|
|
121
|
-
|
|
124
|
+
isProgramMap = tableId === 0x02; // 0x02 == TS_program_map_section
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
if (section.pid === 0 && !hasProgramAssociationTable) {
|
|
@@ -127,8 +130,9 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
127
130
|
bitstream.skipBits(8 * pointerField);
|
|
128
131
|
bitstream.skipBits(14);
|
|
129
132
|
const sectionLength = bitstream.readBits(10);
|
|
133
|
+
const sectionEndPos = bitstream.pos + 8 * sectionLength;
|
|
130
134
|
bitstream.skipBits(40);
|
|
131
|
-
while (
|
|
135
|
+
while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
|
|
132
136
|
const programNumber = bitstream.readBits(16);
|
|
133
137
|
bitstream.skipBits(3); // Reserved
|
|
134
138
|
const id = bitstream.readBits(13);
|
|
@@ -146,12 +150,13 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
146
150
|
}
|
|
147
151
|
hasProgramAssociationTable = true;
|
|
148
152
|
}
|
|
149
|
-
else if (
|
|
153
|
+
else if (isProgramMap) {
|
|
150
154
|
const bitstream = new Bitstream(section.payload);
|
|
151
155
|
const pointerField = bitstream.readAlignedByte();
|
|
152
156
|
bitstream.skipBits(8 * pointerField);
|
|
153
157
|
bitstream.skipBits(12);
|
|
154
158
|
const sectionLength = bitstream.readBits(12);
|
|
159
|
+
const sectionEndPos = bitstream.pos + 8 * sectionLength;
|
|
155
160
|
bitstream.skipBits(43);
|
|
156
161
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
157
162
|
const pcrPid = bitstream.readBits(13);
|
|
@@ -175,7 +180,7 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
175
180
|
bitstream.pos = descriptorEndPos;
|
|
176
181
|
}
|
|
177
182
|
bitstream.pos = programInfoEndPos;
|
|
178
|
-
while (
|
|
183
|
+
while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
|
|
179
184
|
const streamType = bitstream.readBits(8);
|
|
180
185
|
bitstream.skipBits(3);
|
|
181
186
|
const elementaryPid = bitstream.readBits(13);
|
|
@@ -341,14 +346,18 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
341
346
|
else {
|
|
342
347
|
const elementaryStream = this.elementaryStreams.find(x => x.pid === section.pid);
|
|
343
348
|
outer: if (elementaryStream && !elementaryStream.initialized) {
|
|
344
|
-
const
|
|
345
|
-
if (!
|
|
349
|
+
const pesPacketHeader = readPesPacketHeader(this, section, true);
|
|
350
|
+
if (!pesPacketHeader) {
|
|
346
351
|
throw new Error(`Couldn't read first PES packet for Elementary Stream with PID ${elementaryStream.pid}`);
|
|
347
352
|
}
|
|
348
353
|
elementaryStream.firstSection = section;
|
|
349
354
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
350
355
|
if (this.input._initInput) {
|
|
351
356
|
const initDemuxer = (await this.input._initInput._getDemuxer());
|
|
357
|
+
if (initDemuxer.constructor !== MpegTsDemuxer) {
|
|
358
|
+
throw new Error('Init input must match the input\'s format.');
|
|
359
|
+
}
|
|
360
|
+
await initDemuxer.readMetadata();
|
|
352
361
|
const matchingStream = initDemuxer.elementaryStreams.find(x => (x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized));
|
|
353
362
|
if (matchingStream) {
|
|
354
363
|
elementaryStream.info = matchingStream.info;
|
|
@@ -356,7 +365,7 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
356
365
|
break outer; // We have the stream info, we're done
|
|
357
366
|
}
|
|
358
367
|
}
|
|
359
|
-
const context = new PacketReadingContext(elementaryStream,
|
|
368
|
+
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
360
369
|
if (elementaryStream.info.type === 'video') {
|
|
361
370
|
// We loop because in some files, the video parameters are not in the first packet
|
|
362
371
|
while (true) {
|
|
@@ -449,6 +458,7 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
449
458
|
colorSpace: elementaryStream.info.colorSpace,
|
|
450
459
|
avcType: 1,
|
|
451
460
|
avcCodecInfo: elementaryStream.info.avcCodecInfo,
|
|
461
|
+
hevcType: 'hev1',
|
|
452
462
|
hevcCodecInfo: elementaryStream.info.hevcCodecInfo,
|
|
453
463
|
vp9CodecInfo: null,
|
|
454
464
|
av1CodecInfo: null,
|
|
@@ -483,8 +493,23 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
483
493
|
isMpeg2: false,
|
|
484
494
|
objectType: header.objectType,
|
|
485
495
|
};
|
|
486
|
-
|
|
487
|
-
|
|
496
|
+
if (header.channelConfiguration === 0) {
|
|
497
|
+
// The channel layout comes from the PCE at the start of the frame's raw data block
|
|
498
|
+
const headerSize = header.crcCheck === null
|
|
499
|
+
? MIN_ADTS_FRAME_HEADER_SIZE
|
|
500
|
+
: MAX_ADTS_FRAME_HEADER_SIZE;
|
|
501
|
+
const result = readAdtsProgramConfigElement(context.suppliedPacket.data.subarray(headerSize, header.frameLength));
|
|
502
|
+
if (!result) {
|
|
503
|
+
throw new Error('Invalid AAC audio stream; ADTS frames with channel configuration 0 must'
|
|
504
|
+
+ ' begin with a program config element.');
|
|
505
|
+
}
|
|
506
|
+
elementaryStream.info.numberOfChannels
|
|
507
|
+
= getAacProgramConfigElementChannelCount(result.programConfigElement);
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
elementaryStream.info.numberOfChannels
|
|
511
|
+
= aacChannelMap[header.channelConfiguration];
|
|
512
|
+
}
|
|
488
513
|
elementaryStream.info.sampleRate
|
|
489
514
|
= aacFrequencyTable[header.samplingFrequencyIndex];
|
|
490
515
|
}
|
|
@@ -604,15 +629,15 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
604
629
|
break;
|
|
605
630
|
}
|
|
606
631
|
if (!firstPacket) {
|
|
607
|
-
|
|
608
|
-
break;
|
|
609
|
-
}
|
|
632
|
+
assert(packet.payloadUnitStartIndicator === 1); // Callers only start sections at such packets
|
|
610
633
|
firstPacket = packet;
|
|
611
634
|
}
|
|
612
635
|
else {
|
|
613
636
|
if (packet.pid !== firstPacket.pid) {
|
|
614
637
|
if (contiguous) {
|
|
615
|
-
|
|
638
|
+
// The section may well continue after the foreign packets, so this isn't necessarily its end
|
|
639
|
+
mustAddSectionEnd = false;
|
|
640
|
+
break;
|
|
616
641
|
}
|
|
617
642
|
else {
|
|
618
643
|
continue; // Ignore this packet
|
|
@@ -677,7 +702,6 @@ export class MpegTsDemuxer extends Demuxer {
|
|
|
677
702
|
}
|
|
678
703
|
return {
|
|
679
704
|
startPos,
|
|
680
|
-
endPos: full ? endPos : null,
|
|
681
705
|
pid: firstPacket.pid,
|
|
682
706
|
payload: merged,
|
|
683
707
|
randomAccessIndicator,
|
|
@@ -796,39 +820,10 @@ const readPesPacketHeader = (demuxer, section, expectPts) => {
|
|
|
796
820
|
}
|
|
797
821
|
return {
|
|
798
822
|
sectionStartPos: section.startPos,
|
|
799
|
-
sectionEndPos: section.endPos,
|
|
800
823
|
pts,
|
|
801
824
|
randomAccessIndicator: section.randomAccessIndicator,
|
|
802
825
|
};
|
|
803
826
|
};
|
|
804
|
-
const readPesPacket = (demuxer, section, expectPts) => {
|
|
805
|
-
assert(section.endPos !== null); // Can only read full PES packets from fully read sections
|
|
806
|
-
const header = readPesPacketHeader(demuxer, section, expectPts);
|
|
807
|
-
if (!header) {
|
|
808
|
-
return null;
|
|
809
|
-
}
|
|
810
|
-
const bitstream = new Bitstream(section.payload);
|
|
811
|
-
bitstream.skipBits(32);
|
|
812
|
-
const pesPacketLength = bitstream.readBits(16);
|
|
813
|
-
const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
|
|
814
|
-
bitstream.skipBits(16);
|
|
815
|
-
const pesHeaderDataLength = bitstream.readBits(8);
|
|
816
|
-
const pesHeaderEndPos = bitstream.pos + 8 * pesHeaderDataLength;
|
|
817
|
-
bitstream.pos = pesHeaderEndPos;
|
|
818
|
-
const bytePos = pesHeaderEndPos / 8;
|
|
819
|
-
assert(Number.isInteger(bytePos));
|
|
820
|
-
const data = section.payload.subarray(bytePos,
|
|
821
|
-
// "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed only in
|
|
822
|
-
// PES packets whose payload consists of bytes from a video elementary stream contained in
|
|
823
|
-
// transport stream packets."
|
|
824
|
-
pesPacketLength > 0
|
|
825
|
-
? BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength
|
|
826
|
-
: section.payload.byteLength);
|
|
827
|
-
return {
|
|
828
|
-
...header,
|
|
829
|
-
data,
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
827
|
class MpegTsTrackBacking {
|
|
833
828
|
constructor(elementaryStream) {
|
|
834
829
|
this.elementaryStream = elementaryStream;
|
|
@@ -836,9 +831,6 @@ class MpegTsTrackBacking {
|
|
|
836
831
|
/** Used for recreating PacketBuffers if necessary. */
|
|
837
832
|
this.packetSectionStarts = new WeakMap();
|
|
838
833
|
}
|
|
839
|
-
getId() {
|
|
840
|
-
return this.elementaryStream.pid;
|
|
841
|
-
}
|
|
842
834
|
getNumber() {
|
|
843
835
|
const demuxer = this.elementaryStream.demuxer;
|
|
844
836
|
const trackType = this.elementaryStream.info.type;
|
|
@@ -911,9 +903,7 @@ class MpegTsTrackBacking {
|
|
|
911
903
|
async getFirstPacket(options) {
|
|
912
904
|
const section = this.elementaryStream.firstSection;
|
|
913
905
|
assert(section);
|
|
914
|
-
const
|
|
915
|
-
assert(pesPacket);
|
|
916
|
-
const context = new PacketReadingContext(this.elementaryStream, pesPacket);
|
|
906
|
+
const context = new PacketReadingContext(this.elementaryStream, section.startPos);
|
|
917
907
|
const buffer = new PacketBuffer(this, context);
|
|
918
908
|
const result = await buffer.readNext();
|
|
919
909
|
if (!result) {
|
|
@@ -927,13 +917,13 @@ class MpegTsTrackBacking {
|
|
|
927
917
|
async getNextPacket(packet, options) {
|
|
928
918
|
let buffer = this.packetBuffers.get(packet);
|
|
929
919
|
if (buffer) {
|
|
930
|
-
//
|
|
920
|
+
// Remove PacketBuffer access from the old packet, it belongs to the next packet now. Remove it before any
|
|
921
|
+
// async to prevent races
|
|
922
|
+
this.packetBuffers.delete(packet);
|
|
931
923
|
const result = await buffer.readNext();
|
|
932
924
|
if (!result) {
|
|
933
925
|
return null;
|
|
934
926
|
}
|
|
935
|
-
// Remove PacketBuffer access from the old packet, it belongs to the next packet now
|
|
936
|
-
this.packetBuffers.delete(packet);
|
|
937
927
|
const newPacket = this.createEncodedPacket(result.packet, result.duration, options);
|
|
938
928
|
this.packetBuffers.set(newPacket, buffer);
|
|
939
929
|
this.packetSectionStarts.set(newPacket, result.packet.sectionStartPos);
|
|
@@ -945,11 +935,26 @@ class MpegTsTrackBacking {
|
|
|
945
935
|
throw new Error('Packet was not created from this track.');
|
|
946
936
|
}
|
|
947
937
|
const demuxer = this.elementaryStream.demuxer;
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
938
|
+
// Rewind by reorderSize PES packets, since the reordering (and with it the packet durations) depends on the
|
|
939
|
+
// packets decoded before this one
|
|
940
|
+
let startPos = sectionStartPos;
|
|
941
|
+
let pesPacketsToRewind = this.getReorderSize();
|
|
942
|
+
let pos = sectionStartPos - demuxer.packetStride;
|
|
943
|
+
while (pesPacketsToRewind > 0 && pos >= demuxer.packetOffset) {
|
|
944
|
+
const packetHeader = await demuxer.readPacketHeader(pos);
|
|
945
|
+
assert(packetHeader);
|
|
946
|
+
if (packetHeader.pid === this.elementaryStream.pid && packetHeader.payloadUnitStartIndicator === 1) {
|
|
947
|
+
const pesSection = await demuxer.readSection(pos, false);
|
|
948
|
+
assert(pesSection);
|
|
949
|
+
const pesHeader = readPesPacketHeader(demuxer, pesSection, false);
|
|
950
|
+
if (pesHeader && pesHeader.pts !== null) {
|
|
951
|
+
startPos = pos;
|
|
952
|
+
pesPacketsToRewind--;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
pos -= demuxer.packetStride;
|
|
956
|
+
}
|
|
957
|
+
const context = new PacketReadingContext(this.elementaryStream, startPos);
|
|
953
958
|
buffer = new PacketBuffer(this, context);
|
|
954
959
|
// Advance until we pass the current packet's sequence number
|
|
955
960
|
const targetSequenceNumber = packet.sequenceNumber;
|
|
@@ -996,7 +1001,7 @@ class MpegTsTrackBacking {
|
|
|
996
1001
|
const demuxer = this.elementaryStream.demuxer;
|
|
997
1002
|
const { reader, seekChunkSize } = demuxer;
|
|
998
1003
|
const pid = this.elementaryStream.pid;
|
|
999
|
-
const findFirstPesPacketHeaderInChunk = async (startPos, endPos
|
|
1004
|
+
const findFirstPesPacketHeaderInChunk = async (startPos, endPos) => {
|
|
1000
1005
|
let currentPos = startPos;
|
|
1001
1006
|
while (currentPos < endPos) {
|
|
1002
1007
|
const packetHeader = await demuxer.readPacketHeader(currentPos);
|
|
@@ -1004,16 +1009,13 @@ class MpegTsTrackBacking {
|
|
|
1004
1009
|
return null;
|
|
1005
1010
|
}
|
|
1006
1011
|
if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
|
|
1007
|
-
const section = await demuxer.readSection(currentPos,
|
|
1012
|
+
const section = await demuxer.readSection(currentPos, false);
|
|
1008
1013
|
if (!section) {
|
|
1009
1014
|
return null;
|
|
1010
1015
|
}
|
|
1011
1016
|
const pesPacketHeader = readPesPacketHeader(demuxer, section, false);
|
|
1012
1017
|
if (pesPacketHeader && pesPacketHeader.pts !== null) {
|
|
1013
|
-
return
|
|
1014
|
-
pesPacketHeader: pesPacketHeader,
|
|
1015
|
-
section,
|
|
1016
|
-
};
|
|
1018
|
+
return pesPacketHeader;
|
|
1017
1019
|
}
|
|
1018
1020
|
}
|
|
1019
1021
|
currentPos += demuxer.packetStride;
|
|
@@ -1025,10 +1027,6 @@ class MpegTsTrackBacking {
|
|
|
1025
1027
|
assert(firstSection);
|
|
1026
1028
|
const firstPesPacketHeader = readPesPacketHeader(demuxer, firstSection, true);
|
|
1027
1029
|
assert(firstPesPacketHeader);
|
|
1028
|
-
if (searchPts < firstPesPacketHeader.pts) {
|
|
1029
|
-
// We're before the first packet, definitely nothing here
|
|
1030
|
-
return null;
|
|
1031
|
-
}
|
|
1032
1030
|
let scanStartPos;
|
|
1033
1031
|
const referencePesPackets = this.elementaryStream.referencePesPackets;
|
|
1034
1032
|
const referencePointIndex = binarySearchLessOrEqual(referencePesPackets, searchPts, x => x.pts);
|
|
@@ -1039,7 +1037,10 @@ class MpegTsTrackBacking {
|
|
|
1039
1037
|
}
|
|
1040
1038
|
else {
|
|
1041
1039
|
let startChunkIndex = 0;
|
|
1042
|
-
if (reader.fileSize !== null
|
|
1040
|
+
if (reader.fileSize !== null
|
|
1041
|
+
// Packets presented before the first PES packet can only be leading frames right after it (think open
|
|
1042
|
+
// GOPs), so those don't need any searching
|
|
1043
|
+
&& searchPts >= firstPesPacketHeader.pts) {
|
|
1043
1044
|
const numChunks = Math.ceil(reader.fileSize / seekChunkSize);
|
|
1044
1045
|
if (numChunks > 1) {
|
|
1045
1046
|
// Binary search to find the chunk with highest index whose first PES has pts <= searchPts
|
|
@@ -1051,13 +1052,13 @@ class MpegTsTrackBacking {
|
|
|
1051
1052
|
const chunkStartPos = floorToMultiple(mid * seekChunkSize, demuxer.packetStride)
|
|
1052
1053
|
+ firstPesPacketHeader.sectionStartPos;
|
|
1053
1054
|
const chunkEndPos = chunkStartPos + seekChunkSize;
|
|
1054
|
-
const
|
|
1055
|
-
if (!
|
|
1055
|
+
const pesPacketHeader = await findFirstPesPacketHeaderInChunk(chunkStartPos, chunkEndPos);
|
|
1056
|
+
if (!pesPacketHeader) {
|
|
1056
1057
|
// No PES packet found in this chunk, search left
|
|
1057
1058
|
high = mid - 1;
|
|
1058
1059
|
continue;
|
|
1059
1060
|
}
|
|
1060
|
-
if (
|
|
1061
|
+
if (pesPacketHeader.pts <= searchPts) {
|
|
1061
1062
|
// This chunk's first PES is <= searchPts, it's a candidate
|
|
1062
1063
|
startChunkIndex = mid;
|
|
1063
1064
|
low = mid + 1; // Search right
|
|
@@ -1072,20 +1073,14 @@ class MpegTsTrackBacking {
|
|
|
1072
1073
|
scanStartPos = floorToMultiple(startChunkIndex * seekChunkSize, demuxer.packetStride) + firstPesPacketHeader.sectionStartPos;
|
|
1073
1074
|
}
|
|
1074
1075
|
// Find the first PES packet at or after scanStartPos
|
|
1075
|
-
|
|
1076
|
-
let currentPesHeader = result?.pesPacketHeader ?? null;
|
|
1076
|
+
let currentPesHeader = await findFirstPesPacketHeaderInChunk(scanStartPos, reader.fileSize ?? Infinity);
|
|
1077
1077
|
if (!currentPesHeader) {
|
|
1078
1078
|
// Fall back to first packet
|
|
1079
1079
|
currentPesHeader = firstPesPacketHeader;
|
|
1080
1080
|
}
|
|
1081
1081
|
const reorderSize = this.getReorderSize();
|
|
1082
1082
|
const retrieveEncodedPacket = async (sectionStartPos, predicate) => {
|
|
1083
|
-
|
|
1084
|
-
const section = await demuxer.readSection(sectionStartPos, true);
|
|
1085
|
-
assert(section);
|
|
1086
|
-
const pesPacket = readPesPacket(demuxer, section, true);
|
|
1087
|
-
assert(pesPacket);
|
|
1088
|
-
const context = new PacketReadingContext(this.elementaryStream, pesPacket);
|
|
1083
|
+
const context = new PacketReadingContext(this.elementaryStream, sectionStartPos);
|
|
1089
1084
|
const buffer = new PacketBuffer(this, context);
|
|
1090
1085
|
// Advance until the top-most presentation timestamp crosses or equals searchPts
|
|
1091
1086
|
while (true) {
|
|
@@ -1103,12 +1098,8 @@ class MpegTsTrackBacking {
|
|
|
1103
1098
|
return null;
|
|
1104
1099
|
}
|
|
1105
1100
|
const targetPacket = buffer.presentationOrderPackets[targetIndex];
|
|
1106
|
-
const lastDuration = targetIndex === 0
|
|
1107
|
-
? 0
|
|
1108
|
-
: targetPacket.pts - buffer.presentationOrderPackets[targetIndex - 1].pts;
|
|
1109
1101
|
// Pop packets in decode order until we hit the target packet
|
|
1110
1102
|
buffer.decodeOrderPackets.splice(0, buffer.decodeOrderPackets.indexOf(targetPacket));
|
|
1111
|
-
buffer.lastDuration = lastDuration; // Kinda ugly but necessary fix
|
|
1112
1103
|
const result = await buffer.readNext();
|
|
1113
1104
|
assert(result);
|
|
1114
1105
|
const packet = this.createEncodedPacket(result.packet, result.duration, options);
|
|
@@ -1145,10 +1136,11 @@ class MpegTsTrackBacking {
|
|
|
1145
1136
|
currentPos += demuxer.packetStride;
|
|
1146
1137
|
}
|
|
1147
1138
|
}
|
|
1148
|
-
// Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations)
|
|
1139
|
+
// Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations), but never past the
|
|
1140
|
+
// track's first PES packet, since anything before it isn't part of the track
|
|
1149
1141
|
outer: for (let i = 0; i < reorderSize + 1; i++) {
|
|
1150
1142
|
let pos = currentPesHeader.sectionStartPos - demuxer.packetStride;
|
|
1151
|
-
while (pos >=
|
|
1143
|
+
while (pos >= firstPesPacketHeader.sectionStartPos) {
|
|
1152
1144
|
const packetHeader = await demuxer.readPacketHeader(pos);
|
|
1153
1145
|
if (!packetHeader) {
|
|
1154
1146
|
break outer;
|
|
@@ -1165,8 +1157,8 @@ class MpegTsTrackBacking {
|
|
|
1165
1157
|
}
|
|
1166
1158
|
pos -= demuxer.packetStride;
|
|
1167
1159
|
}
|
|
1168
|
-
if (pos <
|
|
1169
|
-
break; // We've hit the
|
|
1160
|
+
if (pos < firstPesPacketHeader.sectionStartPos) {
|
|
1161
|
+
break; // We've hit the track's first PES packet, there's nothing more to rewind
|
|
1170
1162
|
}
|
|
1171
1163
|
}
|
|
1172
1164
|
return retrieveEncodedPacket(currentPesHeader.sectionStartPos, p => p.pts <= searchPts);
|
|
@@ -1176,20 +1168,15 @@ class MpegTsTrackBacking {
|
|
|
1176
1168
|
// means we might need to search the previous chunks until we find something.
|
|
1177
1169
|
let currentChunkStartPos = scanStartPos;
|
|
1178
1170
|
let nextChunkStartPos = null; // "next" as in later in the file, even tho we scan backwards
|
|
1179
|
-
const readSectionsInFull = !this.elementaryStream.canBeTrustedWithKeyPackets;
|
|
1180
1171
|
while (true) {
|
|
1181
1172
|
let bestKeyPesHeader = null;
|
|
1182
1173
|
const isFirstChunk = currentChunkStartPos <= firstPesPacketHeader.sectionStartPos;
|
|
1183
1174
|
let pesHeader;
|
|
1184
|
-
let pesHeaderSection = null;
|
|
1185
1175
|
if (isFirstChunk) {
|
|
1186
1176
|
pesHeader = firstPesPacketHeader;
|
|
1187
|
-
pesHeaderSection = firstSection;
|
|
1188
1177
|
}
|
|
1189
1178
|
else {
|
|
1190
|
-
|
|
1191
|
-
pesHeader = result?.pesPacketHeader ?? null;
|
|
1192
|
-
pesHeaderSection = result?.section ?? null;
|
|
1179
|
+
pesHeader = await findFirstPesPacketHeaderInChunk(currentChunkStartPos, nextChunkStartPos ?? reader.fileSize ?? Infinity);
|
|
1193
1180
|
}
|
|
1194
1181
|
let passedSearchPts = false;
|
|
1195
1182
|
let lookaheadCount = 0;
|
|
@@ -1205,12 +1192,7 @@ class MpegTsTrackBacking {
|
|
|
1205
1192
|
isKeyPacket = pesHeader.randomAccessIndicator === 1;
|
|
1206
1193
|
}
|
|
1207
1194
|
else {
|
|
1208
|
-
|
|
1209
|
-
assert(pesHeaderSection);
|
|
1210
|
-
const pesPacket = readPesPacket(demuxer, pesHeaderSection, true);
|
|
1211
|
-
assert(pesPacket);
|
|
1212
|
-
context = new PacketReadingContext(this.elementaryStream, pesPacket);
|
|
1213
|
-
}
|
|
1195
|
+
context ??= new PacketReadingContext(this.elementaryStream, pesHeader.sectionStartPos);
|
|
1214
1196
|
// Advance to the first packet that starts in this PES packet
|
|
1215
1197
|
while (!context.suppliedPacket
|
|
1216
1198
|
|| context.suppliedPacket.sectionStartPos < pesHeader.sectionStartPos) {
|
|
@@ -1245,12 +1227,11 @@ class MpegTsTrackBacking {
|
|
|
1245
1227
|
break outer; // End of file
|
|
1246
1228
|
}
|
|
1247
1229
|
if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
|
|
1248
|
-
const section = await demuxer.readSection(currentPos,
|
|
1230
|
+
const section = await demuxer.readSection(currentPos, false);
|
|
1249
1231
|
if (section) {
|
|
1250
1232
|
const nextPesHeader = readPesPacketHeader(demuxer, section, false);
|
|
1251
1233
|
if (nextPesHeader && nextPesHeader.pts !== null) {
|
|
1252
1234
|
pesHeader = nextPesHeader;
|
|
1253
|
-
pesHeaderSection = section;
|
|
1254
1235
|
maybeInsertReferencePacket(this.elementaryStream, pesHeader);
|
|
1255
1236
|
break;
|
|
1256
1237
|
}
|
|
@@ -1263,15 +1244,15 @@ class MpegTsTrackBacking {
|
|
|
1263
1244
|
let startPesHeader = bestKeyPesHeader;
|
|
1264
1245
|
if (lookaheadCount === 0) {
|
|
1265
1246
|
// Packet is at the end of stream, let's rewind a little to obtain the correct packet duration
|
|
1266
|
-
outer: for (let i = 0; i < reorderSize; i++) {
|
|
1247
|
+
outer: for (let i = 0; i < reorderSize + 1; i++) {
|
|
1267
1248
|
let pos = startPesHeader.sectionStartPos - demuxer.packetStride;
|
|
1268
|
-
while (pos >=
|
|
1249
|
+
while (pos >= firstPesPacketHeader.sectionStartPos) {
|
|
1269
1250
|
const packetHeader = await demuxer.readPacketHeader(pos);
|
|
1270
1251
|
if (!packetHeader) {
|
|
1271
1252
|
break outer;
|
|
1272
1253
|
}
|
|
1273
1254
|
if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
|
|
1274
|
-
const section = await demuxer.readSection(pos,
|
|
1255
|
+
const section = await demuxer.readSection(pos, false);
|
|
1275
1256
|
if (section) {
|
|
1276
1257
|
const header = readPesPacketHeader(demuxer, section, false);
|
|
1277
1258
|
if (header && header.pts !== null) {
|
|
@@ -1282,8 +1263,8 @@ class MpegTsTrackBacking {
|
|
|
1282
1263
|
}
|
|
1283
1264
|
pos -= demuxer.packetStride;
|
|
1284
1265
|
}
|
|
1285
|
-
if (pos <
|
|
1286
|
-
break; // We've hit the
|
|
1266
|
+
if (pos < firstPesPacketHeader.sectionStartPos) {
|
|
1267
|
+
break; // We've hit the track's first PES packet, there's nothing more to rewind
|
|
1287
1268
|
}
|
|
1288
1269
|
}
|
|
1289
1270
|
}
|
|
@@ -1372,6 +1353,7 @@ class MpegTsAudioTrackBacking extends MpegTsTrackBacking {
|
|
|
1372
1353
|
const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
|
|
1373
1354
|
const referencePesPackets = elementaryStream.referencePesPackets;
|
|
1374
1355
|
const index = binarySearchLessOrEqual(referencePesPackets, pesPacketHeader.sectionStartPos, x => x.sectionStartPos);
|
|
1356
|
+
const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
|
|
1375
1357
|
if (index >= 0) {
|
|
1376
1358
|
// Since pts and file position don't necessarily have a monotonic relationship (since pts can go crazy),
|
|
1377
1359
|
// let's see if inserting at the given index would violate the pts order. If so, return.
|
|
@@ -1379,27 +1361,24 @@ const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
|
|
|
1379
1361
|
if (pesPacketHeader.pts <= entry.pts) {
|
|
1380
1362
|
return false;
|
|
1381
1363
|
}
|
|
1382
|
-
const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
|
|
1383
1364
|
if (pesPacketHeader.sectionStartPos - entry.sectionStartPos < minByteDistance) {
|
|
1384
1365
|
// Too close
|
|
1385
1366
|
return false;
|
|
1386
1367
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1368
|
+
}
|
|
1369
|
+
if (index < referencePesPackets.length - 1) {
|
|
1370
|
+
const nextEntry = referencePesPackets[index + 1];
|
|
1371
|
+
if (nextEntry.pts < pesPacketHeader.pts) {
|
|
1372
|
+
// Out of order
|
|
1373
|
+
return false;
|
|
1374
|
+
}
|
|
1375
|
+
if (nextEntry.sectionStartPos - pesPacketHeader.sectionStartPos < minByteDistance) {
|
|
1376
|
+
// Too close
|
|
1377
|
+
return false;
|
|
1397
1378
|
}
|
|
1398
1379
|
}
|
|
1399
|
-
// Copy only the header fields (callers may pass a whole PES packet)
|
|
1400
1380
|
referencePesPackets.splice(index + 1, 0, {
|
|
1401
1381
|
sectionStartPos: pesPacketHeader.sectionStartPos,
|
|
1402
|
-
sectionEndPos: pesPacketHeader.sectionEndPos,
|
|
1403
1382
|
pts: pesPacketHeader.pts,
|
|
1404
1383
|
randomAccessIndicator: pesPacketHeader.randomAccessIndicator,
|
|
1405
1384
|
});
|
|
@@ -1407,19 +1386,25 @@ const maybeInsertReferencePacket = (elementaryStream, pesPacketHeader) => {
|
|
|
1407
1386
|
};
|
|
1408
1387
|
/** Stateful context used to extract exact encoded packets from the underlying data stream. */
|
|
1409
1388
|
class PacketReadingContext {
|
|
1410
|
-
constructor(elementaryStream,
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1389
|
+
constructor(elementaryStream, pesPacketStartPos) {
|
|
1390
|
+
this.reachedEnd = false;
|
|
1391
|
+
this.isInPesPacket = false;
|
|
1392
|
+
this.pesHeaderBytesLeft = 0;
|
|
1393
|
+
this.pesDataBytesLeft = 0;
|
|
1394
|
+
// Positions are relative to `pesPacketStartPos`
|
|
1395
|
+
this.currentPos = 0;
|
|
1415
1396
|
this.endPos = 0;
|
|
1397
|
+
this.scratch = new Uint8Array(2 ** 16);
|
|
1398
|
+
this.scratchStartPos = 0;
|
|
1399
|
+
this.pesPackets = [];
|
|
1400
|
+
this.pesPacketDataStartPositions = [];
|
|
1416
1401
|
this.lastSuppliedPesPacket = null;
|
|
1417
1402
|
this.nextPts = null;
|
|
1418
1403
|
this.suppliedPacket = null;
|
|
1419
1404
|
this.elementaryStream = elementaryStream;
|
|
1420
1405
|
this.pid = elementaryStream.pid;
|
|
1421
1406
|
this.demuxer = elementaryStream.demuxer;
|
|
1422
|
-
this.
|
|
1407
|
+
this.nextTsPacketPos = pesPacketStartPos;
|
|
1423
1408
|
}
|
|
1424
1409
|
ensureBuffered(length) {
|
|
1425
1410
|
const remaining = this.endPos - this.currentPos;
|
|
@@ -1429,118 +1414,85 @@ class PacketReadingContext {
|
|
|
1429
1414
|
return this.bufferData(length - remaining)
|
|
1430
1415
|
.then(() => Math.min(this.endPos - this.currentPos, length));
|
|
1431
1416
|
}
|
|
1432
|
-
getCurrentPesPacket() {
|
|
1433
|
-
const packet = this.pesPackets[this.currentPesPacketIndex];
|
|
1434
|
-
assert(packet);
|
|
1435
|
-
return packet;
|
|
1436
|
-
}
|
|
1437
1417
|
async bufferData(length) {
|
|
1438
1418
|
const targetEndPos = this.endPos + length;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1419
|
+
// Data is taken in one TS packet at a time
|
|
1420
|
+
while (this.endPos < targetEndPos && !this.reachedEnd) {
|
|
1421
|
+
const pos = this.nextTsPacketPos;
|
|
1422
|
+
const packet = await this.demuxer.readPacket(pos);
|
|
1423
|
+
if (!packet) {
|
|
1424
|
+
this.reachedEnd = true;
|
|
1425
|
+
break;
|
|
1443
1426
|
}
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
if (!nextSection) {
|
|
1456
|
-
return;
|
|
1457
|
-
}
|
|
1458
|
-
const nextPesPacket = readPesPacket(this.demuxer, nextSection, false);
|
|
1459
|
-
if (nextPesPacket) {
|
|
1460
|
-
pesPacket = nextPesPacket;
|
|
1461
|
-
break;
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
currentPos += this.demuxer.packetStride;
|
|
1427
|
+
this.nextTsPacketPos += this.demuxer.packetStride;
|
|
1428
|
+
if (packet.pid !== this.pid) {
|
|
1429
|
+
continue;
|
|
1430
|
+
}
|
|
1431
|
+
if (packet.payloadUnitStartIndicator === 1) {
|
|
1432
|
+
this.isInPesPacket = false;
|
|
1433
|
+
const section = await this.demuxer.readSection(pos, false);
|
|
1434
|
+
assert(section);
|
|
1435
|
+
const header = readPesPacketHeader(this.demuxer, section, false);
|
|
1436
|
+
if (!header) {
|
|
1437
|
+
continue; // Not a PES packet we can use, so skip over its whole section
|
|
1465
1438
|
}
|
|
1439
|
+
const bitstream = new Bitstream(section.payload);
|
|
1440
|
+
bitstream.skipBits(32);
|
|
1441
|
+
const pesPacketLength = bitstream.readBits(16);
|
|
1442
|
+
const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
|
|
1443
|
+
bitstream.skipBits(16);
|
|
1444
|
+
const pesHeaderDataLength = bitstream.readBits(8);
|
|
1445
|
+
this.pesHeaderBytesLeft = bitstream.pos / 8 + pesHeaderDataLength;
|
|
1446
|
+
// "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed
|
|
1447
|
+
// only in PES packets whose payload consists of bytes from a video elementary stream contained in
|
|
1448
|
+
// transport stream packets."
|
|
1449
|
+
this.pesDataBytesLeft = pesPacketLength > 0
|
|
1450
|
+
? Math.max(BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength - this.pesHeaderBytesLeft, 0)
|
|
1451
|
+
: Infinity;
|
|
1452
|
+
this.isInPesPacket = true;
|
|
1453
|
+
this.pesPackets.push(header);
|
|
1454
|
+
this.pesPacketDataStartPositions.push(this.endPos);
|
|
1455
|
+
}
|
|
1456
|
+
if (!this.isInPesPacket || !(packet.adaptationFieldControl & 0b01)) {
|
|
1457
|
+
continue;
|
|
1466
1458
|
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1459
|
+
const body = packet.body;
|
|
1460
|
+
let start = packet.adaptationFieldControl & 0b10 ? 1 + body[0] : 0;
|
|
1461
|
+
const skippedHeaderBytes = Math.min(this.pesHeaderBytesLeft, Math.max(body.byteLength - start, 0));
|
|
1462
|
+
this.pesHeaderBytesLeft -= skippedHeaderBytes;
|
|
1463
|
+
start += skippedHeaderBytes;
|
|
1464
|
+
// Anything past the declared PES packet length is stuffing
|
|
1465
|
+
const end = Math.min(body.byteLength, start + this.pesDataBytesLeft);
|
|
1466
|
+
if (end <= start) {
|
|
1467
|
+
continue;
|
|
1468
|
+
}
|
|
1469
|
+
const byteCount = end - start;
|
|
1470
|
+
this.pesDataBytesLeft -= byteCount;
|
|
1471
|
+
const scratchLength = this.endPos - this.scratchStartPos;
|
|
1472
|
+
if (scratchLength + byteCount > this.scratch.byteLength) {
|
|
1473
|
+
const scratch = new Uint8Array(2 * this.scratch.byteLength);
|
|
1474
|
+
scratch.set(this.scratch.subarray(0, scratchLength));
|
|
1475
|
+
this.scratch = scratch;
|
|
1476
|
+
}
|
|
1477
|
+
this.scratch.set(body.subarray(start, end), scratchLength);
|
|
1478
|
+
this.endPos += byteCount;
|
|
1469
1479
|
}
|
|
1470
1480
|
}
|
|
1471
1481
|
readBytes(length) {
|
|
1472
|
-
const
|
|
1473
|
-
const relativeStartOffset = this.currentPos - this.currentPesPacketPos;
|
|
1474
|
-
const relativeEndOffset = relativeStartOffset + length;
|
|
1482
|
+
const start = this.currentPos - this.scratchStartPos;
|
|
1475
1483
|
this.currentPos += length;
|
|
1476
|
-
|
|
1477
|
-
// Request can be satisfied with one PES packet
|
|
1478
|
-
return currentPesPacket.data.subarray(relativeStartOffset, relativeEndOffset);
|
|
1479
|
-
}
|
|
1480
|
-
// Data spans multiple PES packets, we must do some merging
|
|
1481
|
-
const result = new Uint8Array(length);
|
|
1482
|
-
result.set(currentPesPacket.data.subarray(relativeStartOffset));
|
|
1483
|
-
let offset = currentPesPacket.data.byteLength - relativeStartOffset;
|
|
1484
|
-
while (true) {
|
|
1485
|
-
this.advanceCurrentPacket();
|
|
1486
|
-
const currentPesPacket = this.getCurrentPesPacket();
|
|
1487
|
-
const relativeEndOffset = length - offset;
|
|
1488
|
-
if (relativeEndOffset <= currentPesPacket.data.byteLength) {
|
|
1489
|
-
result.set(currentPesPacket.data.subarray(0, relativeEndOffset), offset);
|
|
1490
|
-
break;
|
|
1491
|
-
}
|
|
1492
|
-
result.set(currentPesPacket.data, offset);
|
|
1493
|
-
offset += currentPesPacket.data.byteLength;
|
|
1494
|
-
}
|
|
1495
|
-
return result;
|
|
1484
|
+
return this.scratch.subarray(start, start + length);
|
|
1496
1485
|
}
|
|
1497
1486
|
readU8() {
|
|
1498
|
-
|
|
1499
|
-
const relativeOffset = this.currentPos - this.currentPesPacketPos;
|
|
1500
|
-
this.currentPos++;
|
|
1501
|
-
if (relativeOffset < currentPesPacket.data.byteLength) {
|
|
1502
|
-
return currentPesPacket.data[relativeOffset];
|
|
1503
|
-
}
|
|
1504
|
-
// Skip over PES packets without any data
|
|
1505
|
-
do {
|
|
1506
|
-
this.advanceCurrentPacket();
|
|
1507
|
-
currentPesPacket = this.getCurrentPesPacket();
|
|
1508
|
-
} while (currentPesPacket.data.byteLength === 0);
|
|
1509
|
-
return currentPesPacket.data[0];
|
|
1487
|
+
return this.scratch[this.currentPos++ - this.scratchStartPos];
|
|
1510
1488
|
}
|
|
1511
1489
|
seekTo(pos) {
|
|
1512
|
-
|
|
1513
|
-
return;
|
|
1514
|
-
}
|
|
1515
|
-
if (pos < this.currentPos) {
|
|
1516
|
-
while (pos < this.currentPesPacketPos) {
|
|
1517
|
-
// Move to the previous PES packet
|
|
1518
|
-
this.currentPesPacketIndex--;
|
|
1519
|
-
const currentPacket = this.getCurrentPesPacket();
|
|
1520
|
-
this.currentPesPacketPos -= currentPacket.data.byteLength;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
else {
|
|
1524
|
-
while (true) {
|
|
1525
|
-
// Move to the next PES packet
|
|
1526
|
-
const currentPesPacket = this.getCurrentPesPacket();
|
|
1527
|
-
const currentEndPos = this.currentPesPacketPos + currentPesPacket.data.byteLength;
|
|
1528
|
-
if (pos < currentEndPos) {
|
|
1529
|
-
break;
|
|
1530
|
-
}
|
|
1531
|
-
this.currentPesPacketPos += currentPesPacket.data.byteLength;
|
|
1532
|
-
this.currentPesPacketIndex++;
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1490
|
+
assert(pos >= this.scratchStartPos);
|
|
1535
1491
|
this.currentPos = pos;
|
|
1536
1492
|
}
|
|
1537
1493
|
skip(n) {
|
|
1538
1494
|
this.seekTo(this.currentPos + n);
|
|
1539
1495
|
}
|
|
1540
|
-
advanceCurrentPacket() {
|
|
1541
|
-
this.currentPesPacketPos += this.getCurrentPesPacket().data.byteLength;
|
|
1542
|
-
this.currentPesPacketIndex++;
|
|
1543
|
-
}
|
|
1544
1496
|
async markNextPacket() {
|
|
1545
1497
|
assert(!this.suppliedPacket);
|
|
1546
1498
|
const elementaryStream = this.elementaryStream;
|
|
@@ -1602,13 +1554,9 @@ class PacketReadingContext {
|
|
|
1602
1554
|
packetStartPos ??= startCodePos;
|
|
1603
1555
|
const nalHeaderStart = i + startCodeLength;
|
|
1604
1556
|
const payloadStart = nalHeaderStart + nalHeaderSize;
|
|
1605
|
-
// Bytes peeked from the start of a slice header to decode first_mb_in_slice. Six bytes (48 bits)
|
|
1606
|
-
// comfortably covers the exp-Golomb code for any realistic macroblock count
|
|
1607
|
-
const AVC_SLICE_HEADER_PEEK_SIZE = 6;
|
|
1608
1557
|
// We read the NAL header plus, for slices, the start of the slice header to decode the
|
|
1609
|
-
// first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure
|
|
1610
|
-
|
|
1611
|
-
if (bytesNeeded > length) {
|
|
1558
|
+
// first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure at least a byte of it is there.
|
|
1559
|
+
if (payloadStart + 1 > length) {
|
|
1612
1560
|
this.seekTo(posBeforeZero);
|
|
1613
1561
|
break;
|
|
1614
1562
|
}
|
|
@@ -1639,8 +1587,8 @@ class PacketReadingContext {
|
|
|
1639
1587
|
// VCL slices: 0..RASL_R, plus the IRAP range BLA_W_LP..CRA_NUT
|
|
1640
1588
|
isSlice = nalUnitType <= HevcNalUnitType.RASL_R
|
|
1641
1589
|
|| (nalUnitType >= HevcNalUnitType.BLA_W_LP && nalUnitType <= 21);
|
|
1642
|
-
// VPS..
|
|
1643
|
-
isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <=
|
|
1590
|
+
// VPS..AUD, prefix SEI, and the reserved/unspecified non-VCL ranges
|
|
1591
|
+
isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <= 35)
|
|
1644
1592
|
|| nalUnitType === HevcNalUnitType.PREFIX_SEI_NUT
|
|
1645
1593
|
|| (nalUnitType >= 41 && nalUnitType <= 44)
|
|
1646
1594
|
|| (nalUnitType >= 48 && nalUnitType <= 55);
|
|
@@ -1650,8 +1598,20 @@ class PacketReadingContext {
|
|
|
1650
1598
|
if (isSlice) {
|
|
1651
1599
|
let startsNewPicture;
|
|
1652
1600
|
if (codec === 'avc') {
|
|
1653
|
-
|
|
1654
|
-
|
|
1601
|
+
// first_mb_in_slice may not be fully buffered yet, in which case reading it either runs
|
|
1602
|
+
// past the end (where Bitstream reads zeros) or throws from all those zeros
|
|
1603
|
+
const bitstream = new Bitstream(chunk.subarray(payloadStart));
|
|
1604
|
+
let firstMacroblockInSlice;
|
|
1605
|
+
try {
|
|
1606
|
+
firstMacroblockInSlice = readExpGolomb(bitstream);
|
|
1607
|
+
}
|
|
1608
|
+
catch {
|
|
1609
|
+
firstMacroblockInSlice = null;
|
|
1610
|
+
}
|
|
1611
|
+
if (firstMacroblockInSlice === null || bitstream.getBitsLeft() < 0) {
|
|
1612
|
+
this.seekTo(posBeforeZero);
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1655
1615
|
startsNewPicture = !frameStartFound || firstMacroblockInSlice <= lastFirstMacroblockInSlice;
|
|
1656
1616
|
lastFirstMacroblockInSlice = firstMacroblockInSlice;
|
|
1657
1617
|
}
|
|
@@ -1725,7 +1685,7 @@ class PacketReadingContext {
|
|
|
1725
1685
|
let remaining = this.ensureBuffered(header.frameLength);
|
|
1726
1686
|
if (isThenable(remaining))
|
|
1727
1687
|
remaining = await remaining;
|
|
1728
|
-
return this.supplyPacket(remaining,
|
|
1688
|
+
return this.supplyPacket(remaining, SAMPLES_PER_AAC_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate);
|
|
1729
1689
|
}
|
|
1730
1690
|
else {
|
|
1731
1691
|
this.seekTo(possibleHeaderStartPos + 1);
|
|
@@ -1753,7 +1713,7 @@ class PacketReadingContext {
|
|
|
1753
1713
|
remaining = await remaining;
|
|
1754
1714
|
const duration = result.header.audioSamplesInFrame * MPEG_TS_TIMESCALE
|
|
1755
1715
|
/ elementaryStream.info.sampleRate;
|
|
1756
|
-
return this.supplyPacket(remaining,
|
|
1716
|
+
return this.supplyPacket(remaining, duration);
|
|
1757
1717
|
}
|
|
1758
1718
|
else {
|
|
1759
1719
|
this.seekTo(possibleHeaderStartPos + 1);
|
|
@@ -1791,7 +1751,7 @@ class PacketReadingContext {
|
|
|
1791
1751
|
remaining = this.ensureBuffered(frameSize);
|
|
1792
1752
|
if (isThenable(remaining))
|
|
1793
1753
|
remaining = await remaining;
|
|
1794
|
-
const duration =
|
|
1754
|
+
const duration = AC3_SAMPLES_PER_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
|
|
1795
1755
|
return this.supplyPacket(remaining, duration);
|
|
1796
1756
|
}
|
|
1797
1757
|
else if (codec === 'eac3') {
|
|
@@ -1813,17 +1773,38 @@ class PacketReadingContext {
|
|
|
1813
1773
|
continue;
|
|
1814
1774
|
}
|
|
1815
1775
|
const frmsiz = ((headerBytes[2] & 0x07) << 8) | headerBytes[3];
|
|
1816
|
-
|
|
1776
|
+
let frameSize = (frmsiz + 1) * 2;
|
|
1817
1777
|
const fscod = headerBytes[4] >> 6;
|
|
1818
1778
|
const numblkscod = fscod === 3 ? 3 : (headerBytes[4] >> 4) & 0x03;
|
|
1819
1779
|
const numblks = EAC3_NUMBLKS_TABLE[numblkscod];
|
|
1780
|
+
// Dependent substreams extend the frame before them to more channels, so they're part of its
|
|
1781
|
+
// access unit
|
|
1782
|
+
while (true) {
|
|
1783
|
+
this.seekTo(possibleSyncPos);
|
|
1784
|
+
const neededBytes = frameSize + 4;
|
|
1785
|
+
let remaining = this.ensureBuffered(neededBytes);
|
|
1786
|
+
if (isThenable(remaining))
|
|
1787
|
+
remaining = await remaining;
|
|
1788
|
+
if (remaining < neededBytes) {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
this.seekTo(possibleSyncPos + frameSize);
|
|
1792
|
+
const nextHeaderBytes = this.readBytes(4);
|
|
1793
|
+
if (nextHeaderBytes[0] !== 0x0b
|
|
1794
|
+
|| nextHeaderBytes[1] !== 0x77
|
|
1795
|
+
|| (nextHeaderBytes[2] >> 6) !== 1 // strmtyp of a dependent substream
|
|
1796
|
+
) {
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
frameSize += 2 * ((((nextHeaderBytes[2] & 0x07) << 8) | nextHeaderBytes[3]) + 1);
|
|
1800
|
+
}
|
|
1820
1801
|
this.seekTo(possibleSyncPos);
|
|
1821
1802
|
remaining = this.ensureBuffered(frameSize);
|
|
1822
1803
|
if (isThenable(remaining))
|
|
1823
1804
|
remaining = await remaining;
|
|
1824
1805
|
// Duration = numblks * 256 samples per block
|
|
1825
1806
|
const samplesPerFrame = numblks * 256;
|
|
1826
|
-
const duration =
|
|
1807
|
+
const duration = samplesPerFrame * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
|
|
1827
1808
|
return this.supplyPacket(remaining, duration);
|
|
1828
1809
|
}
|
|
1829
1810
|
else if (codec === 'dts') {
|
|
@@ -1889,7 +1870,7 @@ class PacketReadingContext {
|
|
|
1889
1870
|
remaining = this.ensureBuffered(frameSize);
|
|
1890
1871
|
if (isThenable(remaining))
|
|
1891
1872
|
remaining = await remaining;
|
|
1892
|
-
const duration =
|
|
1873
|
+
const duration = sampleCount * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
|
|
1893
1874
|
return this.supplyPacket(remaining, duration);
|
|
1894
1875
|
}
|
|
1895
1876
|
else {
|
|
@@ -1904,7 +1885,10 @@ class PacketReadingContext {
|
|
|
1904
1885
|
}
|
|
1905
1886
|
/** Supplies the context with a new encoded packet, beginning at the current position. */
|
|
1906
1887
|
supplyPacket(packetLength, intrinsicDuration) {
|
|
1907
|
-
const
|
|
1888
|
+
const pesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
|
|
1889
|
+
assert(pesPacketIndex !== -1);
|
|
1890
|
+
const currentPesPacket = this.pesPackets[pesPacketIndex];
|
|
1891
|
+
const currentPesPacketDataStartPos = this.pesPacketDataStartPositions[pesPacketIndex];
|
|
1908
1892
|
let pts;
|
|
1909
1893
|
if (this.lastSuppliedPesPacket === currentPesPacket) {
|
|
1910
1894
|
assert(this.nextPts !== null);
|
|
@@ -1922,8 +1906,8 @@ class PacketReadingContext {
|
|
|
1922
1906
|
const sectionStartPos = currentPesPacket.sectionStartPos;
|
|
1923
1907
|
// The sequence number is the starting position of the section the PES packet is in, PLUS the offset within the
|
|
1924
1908
|
// PES packet where the packet starts.
|
|
1925
|
-
const sequenceNumber = sectionStartPos + (this.currentPos -
|
|
1926
|
-
const data = this.readBytes(packetLength);
|
|
1909
|
+
const sequenceNumber = sectionStartPos + (this.currentPos - currentPesPacketDataStartPos);
|
|
1910
|
+
const data = this.readBytes(packetLength).slice();
|
|
1927
1911
|
let randomAccessIndicator = currentPesPacket.randomAccessIndicator;
|
|
1928
1912
|
if (randomAccessIndicator === 0 && !this.elementaryStream.canBeTrustedWithKeyPackets) {
|
|
1929
1913
|
if (this.elementaryStream.info.type === 'audio') {
|
|
@@ -1939,15 +1923,22 @@ class PacketReadingContext {
|
|
|
1939
1923
|
}
|
|
1940
1924
|
}
|
|
1941
1925
|
}
|
|
1926
|
+
const roundedPts = Math.round(pts);
|
|
1942
1927
|
this.suppliedPacket = {
|
|
1943
|
-
pts,
|
|
1928
|
+
pts: roundedPts,
|
|
1929
|
+
intrinsicDuration: Math.round(pts + intrinsicDuration) - roundedPts,
|
|
1944
1930
|
data,
|
|
1945
1931
|
sequenceNumber,
|
|
1946
1932
|
sectionStartPos,
|
|
1947
1933
|
randomAccessIndicator,
|
|
1948
1934
|
};
|
|
1949
|
-
|
|
1950
|
-
this.
|
|
1935
|
+
// Nothing before the end of the packet is needed anymore
|
|
1936
|
+
const keptStart = this.currentPos - this.scratchStartPos;
|
|
1937
|
+
this.scratch.copyWithin(0, keptStart, this.endPos - this.scratchStartPos);
|
|
1938
|
+
this.scratchStartPos = this.currentPos;
|
|
1939
|
+
const keptPesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
|
|
1940
|
+
this.pesPackets.splice(0, keptPesPacketIndex);
|
|
1941
|
+
this.pesPacketDataStartPositions.splice(0, keptPesPacketIndex);
|
|
1951
1942
|
}
|
|
1952
1943
|
}
|
|
1953
1944
|
/**
|
|
@@ -1980,15 +1971,23 @@ class PacketBuffer {
|
|
|
1980
1971
|
// Let's compute the duration
|
|
1981
1972
|
const presentationIndex = this.presentationOrderPackets.indexOf(packet);
|
|
1982
1973
|
let duration;
|
|
1983
|
-
if (presentationIndex
|
|
1984
|
-
// The packet has no known successor (or isn't even placed yet when timestamps are messed up)
|
|
1985
|
-
duration = this.lastDuration; // Reasonable heuristic
|
|
1986
|
-
}
|
|
1987
|
-
else {
|
|
1974
|
+
if (presentationIndex !== -1 && presentationIndex < this.presentationOrderPackets.length - 1) {
|
|
1988
1975
|
const nextPacket = this.presentationOrderPackets[presentationIndex + 1];
|
|
1989
1976
|
duration = nextPacket.pts - packet.pts;
|
|
1990
1977
|
this.lastDuration = duration;
|
|
1991
1978
|
}
|
|
1979
|
+
else if (packet.intrinsicDuration > 0) {
|
|
1980
|
+
// The packet has no known successor (or isn't even placed yet when timestamps are messed up), but the codec
|
|
1981
|
+
// tells us how long it lasts
|
|
1982
|
+
duration = packet.intrinsicDuration;
|
|
1983
|
+
}
|
|
1984
|
+
else if (presentationIndex > 0) {
|
|
1985
|
+
// Let's say it lasts as long as the packet presented before it
|
|
1986
|
+
duration = packet.pts - this.presentationOrderPackets[presentationIndex - 1].pts;
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
duration = this.lastDuration; // Reasonable heuristic
|
|
1990
|
+
}
|
|
1992
1991
|
this.decodeOrderPackets.shift();
|
|
1993
1992
|
// Shrink the presentation array as much as possible
|
|
1994
1993
|
while (this.presentationOrderPackets.length > 0) {
|