agentroam-runtime-darwin-arm64 0.2.0-preview.81 → 0.2.0-preview.82
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 -2
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +8 -8
- 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/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/composer/route.js +1 -0
- package/runtime/.next/server/app/api/agent/composer/route.js.nft.json +1 -0
- 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/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/engine-threads.body +1 -1
- 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/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/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/mcp/servers.body +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/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- 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/session-images/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/session-views/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 -1
- 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]/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]/switch-engine/route.js +1 -1
- 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 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +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/todos/[id]/commands/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/todos/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/api/workspace-changes/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 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/chunks/5801.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +3 -3
- package/runtime/.next/server/chunks/9457.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/app/web/error-828d278147a0619d.js +1 -0
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-b0da5ef19349a66b.js → page-f008ab6dfeab7ce7.js} +1 -1
- package/runtime/.next/static/chunks/{main-68faabab5d101471.js → main-9c08f7656f9692e6.js} +1 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +1 -0
- package/runtime/lib/remote-control/application/paced-video-sender.mjs +20 -1
- package/runtime/lib/remote-control/application/remote-video-session.mjs +18 -4
- package/runtime/lib/remote-control/infrastructure/native-video-encoder.mjs +15 -2
- package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +3 -1
- package/runtime/lib/remote-control/remote-authorization.mjs +2 -2
- package/runtime/lib/remote-control/remote-video-signal.mjs +2 -0
- package/runtime/lib/todo-completion-worker.mjs +45 -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 +129 -129
- package/runtime/node_modules/@agent/core/dist/index.js +286 -68
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +444 -127
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +75 -79
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-q4cwy1ja.mjs → core-664d5mmy.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-zn1abzvs.mjs → core-70sfhqm6.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +38 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +22 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +19 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +33 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +12 -12
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +22 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +26 -26
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +22 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +84 -83
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +4 -0
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +11 -11
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +8 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +6 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +6 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +17 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +2 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +12 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +34 -18
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +3 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +3 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +5 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +19 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +22 -13
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +2 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +70 -65
- 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/worker.js +26 -0
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/aes.ts +7 -4
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +7 -0
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +19 -6
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +2 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +15 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +37 -19
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +4 -0
- package/runtime/node_modules/mediabunny/src/media-sink.ts +3 -12
- package/runtime/node_modules/mediabunny/src/media-source.ts +5 -20
- package/runtime/node_modules/mediabunny/src/misc.ts +26 -5
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +30 -19
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +76 -79
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/mediabunny/src/worker.ts +28 -0
- package/runtime/package-lock.json +162 -162
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-dXI31b0a.js → AgentManager-B8TTqJaL.js} +2 -2
- package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +1 -0
- package/runtime/webapp/dist/assets/App-BGIGpBp3.js +68 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-DnzJOz5w.js +61 -0
- package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +1 -0
- package/runtime/webapp/dist/assets/{CalendarView-QfbrlL9X.js → CalendarView-QXZbXnXA.js} +3 -3
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +1 -0
- package/runtime/webapp/dist/assets/{CollaborationPage-B1tiqgnG.js → CollaborationPage-B2mIAc-h.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-CPY6dP8Q.js → FilePreview-BCEiERA1.js} +9 -9
- package/runtime/webapp/dist/assets/{FileTree-BBgrOian.js → FileTree-CMbs1Gj3.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +5 -0
- package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +1 -0
- package/runtime/webapp/dist/assets/{LSPServerList-B-R7HDSP.js → LSPServerList-COMVmsvb.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-CTc0iAwT.js → MCPServerList-C_juD6B4.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Dzh_miRv.js → MemoryViewer-Et2vysSN.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BA_HQv3V.js → RemoteDesktopTabBridge-BFzNwpUn.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BvFSI9OF.js → RunningSessionsIcon-D_cOqmmk.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-DcPPoXe2.js → SessionDashboard-yjdEKypJ.js} +2 -2
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-CjoeUy-v.js → SessionDashboardBridge-Kc_1Et9r.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DmdXDQUm.js → SettingsPanel-t26XhKHP.js} +2 -2
- package/runtime/webapp/dist/assets/{SkillManager-CS_skFZj.js → SkillManager-nZU7b1sc.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BFHDRCb9.js → TaskPaneTerminal-BPaCKman.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-Dr_nY9pI.js → TerminalPane-CiIpI1Id.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-FEEApB15.js → abnfDiagram-VCTEODGH-DmKjGVfG.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CycwMc2c.js → arc-D6bpvBke.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BFq9JapX.js → architectureDiagram-5GKGNRK7-NEKc2BYf.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DkOJ55Ag.js → blockDiagram-I7D4REHJ-V6G00twZ.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CRvi_3RM.js → c4Diagram-7LVT6UL2-CojA33V5.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-CLwKstxM.js → calendar-days-DXE_2mLa.js} +1 -1
- package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +1 -0
- package/runtime/webapp/dist/assets/{check-8EVJMrTV.js → check-UipgMBET.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-ChNxfI2x.js → chevron-down-Dvinwg2S.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-Cbkc_d70.js → chevron-right-BGU3tcLA.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-Cklzvs8u.js → chunk-2Q5K7J3B-DObpPEgk.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-NxozE5UP.js → chunk-5VM5RSS4-PaTzAg6w.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Dyb8E7YM.js → chunk-F27PBJKO-Pn4gut94.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BqbMMc1n.js → chunk-IMKFNOWR-nRaVFzK9.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-do0R2H6U.js → chunk-JWPE2WC7-CxssjKKN.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-B2HIaynf.js → chunk-POPQ4Y6H-CweDXr-B.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C_zmjkwn.js → chunk-SVP7TREG-C7T3FGE-.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Dh2bZgM1.js → chunk-TICWLB2K-Nc0H-0_V.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-CnqciVDz.js → chunk-XXDRQBXY-D_GQGF5g.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/{client-I0ZVCjOI.js → client-Bb0hpbIR.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-C8n4_KZS.js → codeSyntax-DHonp3tF.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-lVxWL5ce.js → collaboration-e_iziKU1.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-CWyT7leB.js +6 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-CulKVUkj.js → cose-bilkent-JH36ORCC-Ac_FBan4.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-C1LUI1_G.js → cynefin-OW5HDTMX-vr6c389q.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js → cynefinDiagram-5FMLGOSQ-sXmUCrp_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DRaL0cGu.js → dagre-GXQ25YYZ-B0DmGxDv.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-D8gLHoZo.js → diagram-S7CK7UJ4-Dn-2jJ6S.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CaVU0aQT.js → diagram-UQ7AKVKN-BcasYsju.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-LFAKRvZz.js → diagram-VSXAHHWV-DCgGkc82.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-DXpxUERc.js → diagram-VX7I27RA-Cjs0Ny4i.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-vAiik55G.js → diagram-Z3DM3KII-0nyddp0v.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-MaFL7Kgb.js → ebnfDiagram-PWID7BFC-By7gCUsz.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DuEu79B3.js → erDiagram-RLTQ6QDP-DdwBp45A.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-ZVLWtslN.js → file-types-nujx8XUw.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BAQ6nP2D.js → flowDiagram-HODETNUW-DbOwRaT9.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-C48VBnPy.js → ganttDiagram-EL5Y4UJY-CG8obc7O.js} +3 -3
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js → gitGraphDiagram-WWUBYQGX-ru6aSu_g.js} +1 -1
- package/runtime/webapp/dist/assets/{history-D4E3D_aM.js → history-DaBh5_SJ.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-DQV_EEAN.js → image-plus-Cm9jq1yo.js} +1 -1
- package/runtime/webapp/dist/assets/index-BAGzBXQc.css +1 -0
- package/runtime/webapp/dist/assets/index-YrEOkxAg.js +500 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BM7P_-u_.js → infoDiagram-27XIBGKW-Crx1iSbW.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Cwd8XR-p.js → ishikawaDiagram-5VMMS53U-ClQPMEk5.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-MOgiksTh.js → journeyDiagram-3NMN7TZE-DHso2Xht.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DulC5OLL.js → kanban-definition-UXKFOSKX-D6psIAhv.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-Dku9sXQ7.js → layout-B6AVZ9v9.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-B3-dddD7.js → linear-CEZOUjlB.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-Bik5IY2r.js → list-todo-D9ChIz0f.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-C5C-IzGK.js → loader-circle-CAHZbD5s.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CHkezEEh.js → locate-fixed-2R48MVg_.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CRRXKysA.js → mermaid.core-DH0df9xk.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-CaaP-nEb.js → mindmap-definition-YA3MSWOX-QWt8leZC.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CekmYKqS.js → mobileViewport-CKvpvxYc.js} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +191 -0
- package/runtime/webapp/dist/assets/{new-session-window-BfDMd-h3.css → new-session-window-DIU2v1uh.css} +1 -1
- package/runtime/webapp/dist/assets/{page-_fFyRId-.js → page-Cd9ci9uo.js} +6 -6
- package/runtime/webapp/dist/assets/{pause-BsmUCuwZ.js → pause-ddt7BLlm.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BqybPEwk.js → pegDiagram-XKGWAZYB-JNBt0nDx.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BX1H2lh2.js → pieDiagram-E7YTZNPT-g0hnDqNp.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BsEEYq8M.js → pin-BTP5lC_c.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-Btnywv1k.js → quadrantDiagram-AXDQQJYC-mLZASjSm.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-Da_TV1ER.js → railroadDiagram-O6MQD6OU-CAXNAZhB.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-5V1Aow9h.js → requirementDiagram-BXWQKSXE-BC8y1ZXE.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-BbSby0GQ.js → rotate-ccw-CHFTy38a.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-BMdX-ln4.js → rotate-cw-CFCtRFDl.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-D_OIVihV.js → sankeyDiagram-P5KCCOFB-Boi5NPjT.js} +1 -1
- package/runtime/webapp/dist/assets/{send-Cb7EWSJF.js → send-CzCncLlt.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-LKeF5Mri.js → sequenceDiagram-WJ2MYXX4-D4ccoVEB.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-BFqNDCc8.js → session-dashboard-C0KfSCDl.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-BK_qaCnb.js → session-tree-CTzXmV6R.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-C-r87aMq.js → shield-check-Da6EGdIt.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B6j7Q_MN.js → sizeCapture-INFHLROL-Cd5jIVgK.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-zhPFqHdQ.js → stateDiagram-D77RDMKH-DXlmaNwu.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-C_FCENx1.js → swimlanes-42K2YHIH-DyhRB_e0.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-C3DBXjDU.js → timeline-definition-24CTP7MA-Bkfs9Mi-.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-DjggJGbw.js → trash-2-C682LDDA.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BQCEWNQz.js → types-CfOuS-6l.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-BbTXGW7Z.js → use-session-activity-C9Cn92Hj.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CssdTIB0.js → vennDiagram-4TSXK5OY-APWT64sw.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-C58K2vVU.js → wardleyDiagram-VM6X3IG4-H7xLoxwM.js} +1 -1
- package/runtime/webapp/dist/assets/{web-B4y8vdRZ.js → web-CT8e03DV.js} +1 -1
- package/runtime/webapp/dist/assets/{web-D9rJZXHW.js → web-DG022HwJ.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CQi8bD6A.js → xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-iMMWRXJs.js → zoom-out-CRN76HNZ.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/ws-server.mjs +5 -0
- package/runtime/.next/static/chunks/app/web/error-30cea9cffce0ebc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-d8a4f4131e7f2330.js +0 -1
- package/runtime/.next/static/chunks/main-app-30a478479a347a9e.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +0 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +0 -28
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +0 -42
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +0 -20
- package/runtime/webapp/dist/assets/AIHubView-CM6ugXG3.js +0 -1
- package/runtime/webapp/dist/assets/AiHubPane-DFzC3nbd.js +0 -1
- package/runtime/webapp/dist/assets/App-mF6ELC07.js +0 -68
- package/runtime/webapp/dist/assets/BrowserLivePanel-CamAULwS.js +0 -61
- package/runtime/webapp/dist/assets/CalendarPage-BbYdGYWn.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CWhmFQtA.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationDashboard-XL5SnFOu.js +0 -1
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BXDuKlrL.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-lnjLcd9c.js +0 -5
- package/runtime/webapp/dist/assets/HostProjectPicker-DN_vGqQb.js +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-zjqAUfKb.js +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-9AhztqA2.js +0 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +0 -1
- package/runtime/webapp/dist/assets/artifact-links-B0ApmgK6.js +0 -2
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/composer-file-routing-qSvJpT-v.js +0 -6
- package/runtime/webapp/dist/assets/download-BE31-Qm0.js +0 -6
- package/runtime/webapp/dist/assets/index-DSgLFE4Q.js +0 -489
- package/runtime/webapp/dist/assets/index-zQk0NCEB.css +0 -1
- package/runtime/webapp/dist/assets/new-session-window-Dgl7UWPR.js +0 -190
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +0 -8
- package/runtime/webapp/dist/assets/x-BYUglEo9.js +0 -6
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_ssgManifest.js +0 -0
|
@@ -1231,7 +1231,7 @@ var Mediabunny = (() => {
|
|
|
1231
1231
|
var shouldUseNativeTimers = () => {
|
|
1232
1232
|
return typeof window === "undefined";
|
|
1233
1233
|
};
|
|
1234
|
-
var
|
|
1234
|
+
var unthrottledTimerWorkerCode = () => {
|
|
1235
1235
|
const timeoutHandles = /* @__PURE__ */ new Map();
|
|
1236
1236
|
const intervalHandles = /* @__PURE__ */ new Map();
|
|
1237
1237
|
self.onmessage = (event) => {
|
|
@@ -1283,10 +1283,7 @@ var Mediabunny = (() => {
|
|
|
1283
1283
|
if (unthrottledTimerWorker) {
|
|
1284
1284
|
return unthrottledTimerWorker;
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1287
|
-
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
1288
|
-
unthrottledTimerWorker = new Worker(workerURL);
|
|
1289
|
-
URL.revokeObjectURL(workerURL);
|
|
1286
|
+
unthrottledTimerWorker = createWorker("unthrottled-timer", unthrottledTimerWorkerCode);
|
|
1290
1287
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1291
1288
|
const message = event.data;
|
|
1292
1289
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1302,6 +1299,24 @@ var Mediabunny = (() => {
|
|
|
1302
1299
|
};
|
|
1303
1300
|
return unthrottledTimerWorker;
|
|
1304
1301
|
};
|
|
1302
|
+
var workerBlobUrls = /* @__PURE__ */ new Map();
|
|
1303
|
+
var createWorker = (name, workerMain) => {
|
|
1304
|
+
const workerUrl = globalThis[Symbol.for("mediabunny:workerUrl")];
|
|
1305
|
+
if (workerUrl !== void 0 && typeof workerUrl !== "string" && !(workerUrl instanceof URL)) {
|
|
1306
|
+
throw new TypeError(
|
|
1307
|
+
"globalThis[Symbol.for('mediabunny:workerUrl')], when provided, must be a string or URL."
|
|
1308
|
+
);
|
|
1309
|
+
}
|
|
1310
|
+
if (workerUrl !== void 0) {
|
|
1311
|
+
return new Worker(workerUrl, { name });
|
|
1312
|
+
}
|
|
1313
|
+
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1314
|
+
if (!blobUrl) {
|
|
1315
|
+
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: "text/javascript" }));
|
|
1316
|
+
workerBlobUrls.set(workerMain, blobUrl);
|
|
1317
|
+
}
|
|
1318
|
+
return new Worker(blobUrl, { name });
|
|
1319
|
+
};
|
|
1305
1320
|
var setIntervalUnthrottled = (callback, delay) => {
|
|
1306
1321
|
if (shouldUseNativeTimers()) {
|
|
1307
1322
|
return { id: setInterval(callback, delay) };
|
|
@@ -2390,7 +2405,7 @@ var Mediabunny = (() => {
|
|
|
2390
2405
|
var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
|
|
2391
2406
|
|
|
2392
2407
|
// src/version.ts
|
|
2393
|
-
var VERSION = "1.66.
|
|
2408
|
+
var VERSION = "1.66.4";
|
|
2394
2409
|
var VERSIONED_NAME = `Mediabunny v${VERSION}`;
|
|
2395
2410
|
|
|
2396
2411
|
// src/codec-data.ts
|
|
@@ -9408,10 +9423,9 @@ var Mediabunny = (() => {
|
|
|
9408
9423
|
return new ReadableStream({
|
|
9409
9424
|
pull: async (controller) => {
|
|
9410
9425
|
try {
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
}
|
|
9426
|
+
const initPromise = initted ? null : Promise.resolve(getInit());
|
|
9427
|
+
void initPromise?.catch(() => {
|
|
9428
|
+
});
|
|
9415
9429
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
9416
9430
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
9417
9431
|
if (isThenable(nextSlice)) nextSlice = await nextSlice;
|
|
@@ -9425,6 +9439,10 @@ var Mediabunny = (() => {
|
|
|
9425
9439
|
const bytesToRead = sliceLength === requestedLength ? sliceLength - BLOCK_SIZE : sliceLength;
|
|
9426
9440
|
const input = readBytes(nextSlice, bytesToRead);
|
|
9427
9441
|
const output = new Uint8Array(bytesToRead);
|
|
9442
|
+
if (initPromise) {
|
|
9443
|
+
aesContext.init(await initPromise);
|
|
9444
|
+
initted = true;
|
|
9445
|
+
}
|
|
9428
9446
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
9429
9447
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
9430
9448
|
aesContext.decrypt();
|
|
@@ -9555,7 +9573,10 @@ var Mediabunny = (() => {
|
|
|
9555
9573
|
}
|
|
9556
9574
|
currentPos = startPos + boxInfo.totalSize;
|
|
9557
9575
|
}
|
|
9558
|
-
if (!foundMovieBoxes
|
|
9576
|
+
if (!foundMovieBoxes) {
|
|
9577
|
+
if (!this.input._initInput) {
|
|
9578
|
+
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9579
|
+
}
|
|
9559
9580
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9560
9581
|
}
|
|
9561
9582
|
if (lookForMfraBox) {
|
|
@@ -12160,6 +12181,10 @@ var Mediabunny = (() => {
|
|
|
12160
12181
|
if (!sampleInfo) {
|
|
12161
12182
|
return null;
|
|
12162
12183
|
}
|
|
12184
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12185
|
+
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12186
|
+
return null;
|
|
12187
|
+
}
|
|
12163
12188
|
let data;
|
|
12164
12189
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12165
12190
|
data = PLACEHOLDER_DATA;
|
|
@@ -12214,6 +12239,10 @@ var Mediabunny = (() => {
|
|
|
12214
12239
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12215
12240
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12216
12241
|
assert(fragmentSample);
|
|
12242
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12243
|
+
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12244
|
+
return null;
|
|
12245
|
+
}
|
|
12217
12246
|
let data;
|
|
12218
12247
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12219
12248
|
data = PLACEHOLDER_DATA;
|
|
@@ -13636,6 +13665,9 @@ var Mediabunny = (() => {
|
|
|
13636
13665
|
assertDefinedSize(size);
|
|
13637
13666
|
currentPos = dataStartPos + size;
|
|
13638
13667
|
}
|
|
13668
|
+
if (this.segments.length === 0) {
|
|
13669
|
+
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13670
|
+
}
|
|
13639
13671
|
})();
|
|
13640
13672
|
}
|
|
13641
13673
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17280,6 +17312,10 @@ var Mediabunny = (() => {
|
|
|
17280
17312
|
if (!rawSample) {
|
|
17281
17313
|
return null;
|
|
17282
17314
|
}
|
|
17315
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
17316
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17317
|
+
return null;
|
|
17318
|
+
}
|
|
17283
17319
|
let data;
|
|
17284
17320
|
if (options.metadataOnly) {
|
|
17285
17321
|
data = PLACEHOLDER_DATA;
|
|
@@ -19100,6 +19136,10 @@ var Mediabunny = (() => {
|
|
|
19100
19136
|
if (!rawSample) {
|
|
19101
19137
|
return null;
|
|
19102
19138
|
}
|
|
19139
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
19140
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
19141
|
+
return null;
|
|
19142
|
+
}
|
|
19103
19143
|
let data;
|
|
19104
19144
|
if (options.metadataOnly) {
|
|
19105
19145
|
data = PLACEHOLDER_DATA;
|
|
@@ -19885,6 +19925,7 @@ var Mediabunny = (() => {
|
|
|
19885
19925
|
let programMapPid = null;
|
|
19886
19926
|
let hasProgramAssociationTable = false;
|
|
19887
19927
|
let hasProgramMap = false;
|
|
19928
|
+
let initDemuxer = null;
|
|
19888
19929
|
while (true) {
|
|
19889
19930
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19890
19931
|
if (!packetHeader) {
|
|
@@ -20125,22 +20166,26 @@ var Mediabunny = (() => {
|
|
|
20125
20166
|
}
|
|
20126
20167
|
elementaryStream.firstSection = section;
|
|
20127
20168
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
20128
|
-
if (this.input._initInput) {
|
|
20129
|
-
const initDemuxer = await this.input._initInput._getDemuxer();
|
|
20130
|
-
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20131
|
-
throw new Error("Init input must match the input's format.");
|
|
20132
|
-
}
|
|
20133
|
-
await initDemuxer.readMetadata();
|
|
20134
|
-
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20135
|
-
if (matchingStream) {
|
|
20136
|
-
elementaryStream.info = matchingStream.info;
|
|
20137
|
-
elementaryStream.initialized = true;
|
|
20138
|
-
break outer;
|
|
20139
|
-
}
|
|
20140
|
-
}
|
|
20141
20169
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20142
20170
|
if (elementaryStream.info.type === "video") {
|
|
20171
|
+
let packetCount = 0;
|
|
20143
20172
|
while (true) {
|
|
20173
|
+
if (packetCount === 1 && this.input._initInput) {
|
|
20174
|
+
if (!initDemuxer) {
|
|
20175
|
+
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20176
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20177
|
+
throw new Error("Init input must match the input's format.");
|
|
20178
|
+
}
|
|
20179
|
+
await initDemuxer.readMetadata();
|
|
20180
|
+
}
|
|
20181
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20182
|
+
if (matchingStream) {
|
|
20183
|
+
elementaryStream.info = matchingStream.info;
|
|
20184
|
+
elementaryStream.initialized = true;
|
|
20185
|
+
break outer;
|
|
20186
|
+
}
|
|
20187
|
+
}
|
|
20188
|
+
packetCount++;
|
|
20144
20189
|
const contextAlias = context;
|
|
20145
20190
|
contextAlias.suppliedPacket = null;
|
|
20146
20191
|
await context.markNextPacket();
|
|
@@ -21893,7 +21938,7 @@ var Mediabunny = (() => {
|
|
|
21893
21938
|
if (!this.firstSegment) {
|
|
21894
21939
|
return [];
|
|
21895
21940
|
}
|
|
21896
|
-
const input = this.getInputForSegment(this.firstSegment);
|
|
21941
|
+
const input = this.getInputForSegment(this.firstSegment.initSegment ?? this.firstSegment);
|
|
21897
21942
|
const inputTracks = await input.getTracks();
|
|
21898
21943
|
for (const track of inputTracks) {
|
|
21899
21944
|
if (track.type === "video") {
|
|
@@ -21961,34 +22006,34 @@ var Mediabunny = (() => {
|
|
|
21961
22006
|
constructor(segmentedInput, decl, number) {
|
|
21962
22007
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
21963
22008
|
this.hydrationPromise = null;
|
|
21964
|
-
this.
|
|
21965
|
-
this.firstSegment = null;
|
|
22009
|
+
this.metadataInputTrack = null;
|
|
21966
22010
|
this.segmentedInput = segmentedInput;
|
|
21967
22011
|
this.decl = decl;
|
|
21968
22012
|
this.number = number;
|
|
21969
22013
|
}
|
|
21970
22014
|
hydrate() {
|
|
21971
22015
|
return this.hydrationPromise ??= (async () => {
|
|
21972
|
-
|
|
21973
|
-
if (!this.segmentedInput.firstSegment) {
|
|
21974
|
-
throw new Error("Missing first segment, can't retrieve track.");
|
|
21975
|
-
}
|
|
21976
|
-
let currentSegment = this.segmentedInput.firstSegment;
|
|
22016
|
+
const firstSegment = await this.getFirstSegment();
|
|
21977
22017
|
let track = null;
|
|
21978
|
-
|
|
21979
|
-
const
|
|
21980
|
-
const inputTracks = await input.getTracks();
|
|
22018
|
+
if (firstSegment.initSegment) {
|
|
22019
|
+
const inputTracks = await this.segmentedInput.getInputForSegment(firstSegment.initSegment).getTracks();
|
|
21981
22020
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21982
|
-
|
|
21983
|
-
|
|
22021
|
+
} else {
|
|
22022
|
+
let currentSegment = firstSegment;
|
|
22023
|
+
while (currentSegment) {
|
|
22024
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22025
|
+
const inputTracks = await input.getTracks();
|
|
22026
|
+
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22027
|
+
if (track) {
|
|
22028
|
+
break;
|
|
22029
|
+
}
|
|
22030
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21984
22031
|
}
|
|
21985
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21986
22032
|
}
|
|
21987
22033
|
if (!track) {
|
|
21988
22034
|
throw new Error("No matching track found in underlying media data.");
|
|
21989
22035
|
}
|
|
21990
|
-
this.
|
|
21991
|
-
this.firstSegment = currentSegment;
|
|
22036
|
+
this.metadataInputTrack = track;
|
|
21992
22037
|
})();
|
|
21993
22038
|
}
|
|
21994
22039
|
getType() {
|
|
@@ -21999,53 +22044,52 @@ var Mediabunny = (() => {
|
|
|
21999
22044
|
}
|
|
22000
22045
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
22001
22046
|
delegate(fn) {
|
|
22002
|
-
if (this.
|
|
22047
|
+
if (this.metadataInputTrack) {
|
|
22003
22048
|
return fn();
|
|
22004
22049
|
}
|
|
22005
22050
|
return this.hydrate().then(fn);
|
|
22006
22051
|
}
|
|
22007
22052
|
async getDecoderConfig() {
|
|
22008
|
-
return this.delegate(() => this.
|
|
22053
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22009
22054
|
}
|
|
22010
22055
|
getHasOnlyKeyPackets() {
|
|
22011
22056
|
return this.delegate(() => {
|
|
22012
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
22057
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.metadataInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
22013
22058
|
});
|
|
22014
22059
|
}
|
|
22015
22060
|
getPairingMask() {
|
|
22016
22061
|
return 1n;
|
|
22017
22062
|
}
|
|
22018
22063
|
getCodec() {
|
|
22019
|
-
return this.delegate(() => this.
|
|
22064
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22020
22065
|
}
|
|
22021
22066
|
getInternalCodecId() {
|
|
22022
|
-
return this.delegate(() => this.
|
|
22067
|
+
return this.delegate(() => this.metadataInputTrack._backing.getInternalCodecId());
|
|
22023
22068
|
}
|
|
22024
22069
|
getDisposition() {
|
|
22025
|
-
return this.delegate(() => this.
|
|
22070
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDisposition());
|
|
22026
22071
|
}
|
|
22027
22072
|
getLanguageCode() {
|
|
22028
|
-
return this.delegate(() => this.
|
|
22073
|
+
return this.delegate(() => this.metadataInputTrack._backing.getLanguageCode());
|
|
22029
22074
|
}
|
|
22030
22075
|
getName() {
|
|
22031
|
-
return this.delegate(() => this.
|
|
22076
|
+
return this.delegate(() => this.metadataInputTrack._backing.getName());
|
|
22032
22077
|
}
|
|
22033
22078
|
getTimeResolution() {
|
|
22034
|
-
return this.delegate(() => this.
|
|
22079
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTimeResolution());
|
|
22035
22080
|
}
|
|
22036
22081
|
async isRelativeToUnixEpoch() {
|
|
22037
|
-
await this.
|
|
22038
|
-
|
|
22039
|
-
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
22082
|
+
const firstSegment = await this.getFirstSegment();
|
|
22083
|
+
return firstSegment.unixEpochTimestamp === firstSegment.timestamp;
|
|
22040
22084
|
}
|
|
22041
22085
|
getUnixTimeForTimestamp(timestamp) {
|
|
22042
22086
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
22043
22087
|
}
|
|
22044
22088
|
getBitrate() {
|
|
22045
|
-
return this.delegate(() => this.
|
|
22089
|
+
return this.delegate(() => this.metadataInputTrack._backing.getBitrate());
|
|
22046
22090
|
}
|
|
22047
22091
|
getAverageBitrate() {
|
|
22048
|
-
return this.delegate(() => this.
|
|
22092
|
+
return this.delegate(() => this.metadataInputTrack._backing.getAverageBitrate());
|
|
22049
22093
|
}
|
|
22050
22094
|
getDurationFromMetadata(options) {
|
|
22051
22095
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -22055,9 +22099,9 @@ var Mediabunny = (() => {
|
|
|
22055
22099
|
}
|
|
22056
22100
|
async createAdjustedPacket(packet, segment, track) {
|
|
22057
22101
|
assert(packet.sequenceNumber >= 0);
|
|
22058
|
-
|
|
22102
|
+
const firstSegment = await this.getFirstSegment();
|
|
22059
22103
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
22060
|
-
const segmentTimestampRelativeToFirst = segment.timestamp -
|
|
22104
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
22061
22105
|
const modified = packet.clone({
|
|
22062
22106
|
timestamp: roundToDivisor(
|
|
22063
22107
|
packet.timestamp + mediaOffset,
|
|
@@ -22075,30 +22119,33 @@ var Mediabunny = (() => {
|
|
|
22075
22119
|
return modified;
|
|
22076
22120
|
}
|
|
22077
22121
|
async getFirstPacket(options) {
|
|
22078
|
-
await this.
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
let
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22122
|
+
const firstSegment = await this.getFirstSegment();
|
|
22123
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
22124
|
+
});
|
|
22125
|
+
let currentSegment = firstSegment;
|
|
22126
|
+
while (currentSegment) {
|
|
22127
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22128
|
+
const tracks = await input.getTracks();
|
|
22129
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22130
|
+
if (track) {
|
|
22131
|
+
const packet = await track._backing.getFirstPacket(options);
|
|
22086
22132
|
if (packet) {
|
|
22087
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
22133
|
+
return this.createAdjustedPacket(packet, currentSegment, track);
|
|
22088
22134
|
}
|
|
22089
22135
|
}
|
|
22090
22136
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
22091
22137
|
skipLiveWait: options.skipLiveWait
|
|
22092
22138
|
});
|
|
22093
|
-
if (!currentSegment) {
|
|
22094
|
-
break;
|
|
22095
|
-
}
|
|
22096
|
-
const nextInput = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22097
|
-
const nextTracks = await nextInput.getTracks();
|
|
22098
|
-
currentTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number) ?? null;
|
|
22099
22139
|
}
|
|
22100
22140
|
return null;
|
|
22101
22141
|
}
|
|
22142
|
+
async getFirstSegment() {
|
|
22143
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
22144
|
+
if (!this.segmentedInput.firstSegment) {
|
|
22145
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
22146
|
+
}
|
|
22147
|
+
return this.segmentedInput.firstSegment;
|
|
22148
|
+
}
|
|
22102
22149
|
getNextPacket(packet, options) {
|
|
22103
22150
|
return this._getNextInternal(packet, options, false);
|
|
22104
22151
|
}
|
|
@@ -22154,11 +22201,12 @@ var Mediabunny = (() => {
|
|
|
22154
22201
|
if (!currentSegment) {
|
|
22155
22202
|
return null;
|
|
22156
22203
|
}
|
|
22157
|
-
|
|
22204
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(currentSegment.discontinuityNumber).catch(() => {
|
|
22205
|
+
});
|
|
22158
22206
|
while (currentSegment) {
|
|
22159
22207
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22160
22208
|
const tracks = await input.getTracks();
|
|
22161
|
-
const track = tracks.find((t) => t.type === this.
|
|
22209
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22162
22210
|
if (!track) {
|
|
22163
22211
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22164
22212
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22198,7 +22246,7 @@ var Mediabunny = (() => {
|
|
|
22198
22246
|
if (nextSegment) {
|
|
22199
22247
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22200
22248
|
const nextTracks = await nextInput.getTracks();
|
|
22201
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22249
|
+
const nextTrack = nextTracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22202
22250
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22203
22251
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22204
22252
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22234,31 +22282,31 @@ var Mediabunny = (() => {
|
|
|
22234
22282
|
return "video";
|
|
22235
22283
|
}
|
|
22236
22284
|
getCodec() {
|
|
22237
|
-
return this.delegate(() => this.
|
|
22285
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22238
22286
|
}
|
|
22239
22287
|
getCodedWidth() {
|
|
22240
|
-
return this.delegate(() => this.
|
|
22288
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedWidth());
|
|
22241
22289
|
}
|
|
22242
22290
|
getCodedHeight() {
|
|
22243
|
-
return this.delegate(() => this.
|
|
22291
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedHeight());
|
|
22244
22292
|
}
|
|
22245
22293
|
getSquarePixelWidth() {
|
|
22246
|
-
return this.delegate(() => this.
|
|
22294
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelWidth());
|
|
22247
22295
|
}
|
|
22248
22296
|
getSquarePixelHeight() {
|
|
22249
|
-
return this.delegate(() => this.
|
|
22297
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelHeight());
|
|
22250
22298
|
}
|
|
22251
22299
|
getTransformationMatrix() {
|
|
22252
|
-
return this.delegate(() => this.
|
|
22300
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTransformationMatrix());
|
|
22253
22301
|
}
|
|
22254
22302
|
async getColorSpace() {
|
|
22255
|
-
return this.delegate(() => this.
|
|
22303
|
+
return this.delegate(() => this.metadataInputTrack._backing.getColorSpace());
|
|
22256
22304
|
}
|
|
22257
22305
|
async canBeTransparent() {
|
|
22258
|
-
return this.delegate(() => this.
|
|
22306
|
+
return this.delegate(() => this.metadataInputTrack._backing.canBeTransparent());
|
|
22259
22307
|
}
|
|
22260
22308
|
async getDecoderConfig() {
|
|
22261
|
-
return this.delegate(() => this.
|
|
22309
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22262
22310
|
}
|
|
22263
22311
|
};
|
|
22264
22312
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22266,16 +22314,16 @@ var Mediabunny = (() => {
|
|
|
22266
22314
|
return "audio";
|
|
22267
22315
|
}
|
|
22268
22316
|
getCodec() {
|
|
22269
|
-
return this.delegate(() => this.
|
|
22317
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22270
22318
|
}
|
|
22271
22319
|
getNumberOfChannels() {
|
|
22272
|
-
return this.delegate(() => this.
|
|
22320
|
+
return this.delegate(() => this.metadataInputTrack._backing.getNumberOfChannels());
|
|
22273
22321
|
}
|
|
22274
22322
|
getSampleRate() {
|
|
22275
|
-
return this.delegate(() => this.
|
|
22323
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSampleRate());
|
|
22276
22324
|
}
|
|
22277
22325
|
async getDecoderConfig() {
|
|
22278
|
-
return this.delegate(() => this.
|
|
22326
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22279
22327
|
}
|
|
22280
22328
|
};
|
|
22281
22329
|
|
|
@@ -24650,8 +24698,12 @@ var Mediabunny = (() => {
|
|
|
24650
24698
|
return cacheEntry.input;
|
|
24651
24699
|
}
|
|
24652
24700
|
let initInput = null;
|
|
24653
|
-
if (hlsSegment.initSegment
|
|
24654
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment
|
|
24701
|
+
if (hlsSegment.initSegment) {
|
|
24702
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24703
|
+
void initInput.getTracks().catch(() => {
|
|
24704
|
+
});
|
|
24705
|
+
} else if (hlsSegment.firstSegment) {
|
|
24706
|
+
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24655
24707
|
}
|
|
24656
24708
|
const formatOptions = {
|
|
24657
24709
|
...this.input._formatOptions,
|
|
@@ -24772,17 +24824,21 @@ var Mediabunny = (() => {
|
|
|
24772
24824
|
}
|
|
24773
24825
|
getFirstSegmentTimestampOffset() {
|
|
24774
24826
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24775
|
-
const firstSegment = await this.getFirstSegment();
|
|
24776
|
-
assert(firstSegment);
|
|
24777
24827
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24778
24828
|
if (this === referenceSegmentedInput) {
|
|
24779
24829
|
return 0;
|
|
24780
24830
|
}
|
|
24781
|
-
const referenceFirstSegment = await
|
|
24831
|
+
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
24832
|
+
this.getFirstSegment(),
|
|
24833
|
+
referenceSegmentedInput.getFirstSegment()
|
|
24834
|
+
]);
|
|
24835
|
+
assert(firstSegment);
|
|
24782
24836
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24783
24837
|
return 0;
|
|
24784
24838
|
}
|
|
24785
24839
|
const input = this.getInputForSegment(firstSegment);
|
|
24840
|
+
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24841
|
+
});
|
|
24786
24842
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24787
24843
|
return 0;
|
|
24788
24844
|
}
|
|
@@ -25428,14 +25484,17 @@ var Mediabunny = (() => {
|
|
|
25428
25484
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25429
25485
|
}
|
|
25430
25486
|
async getFirstPacket(options) {
|
|
25487
|
+
this.prefetchReferencePlaylist();
|
|
25431
25488
|
await this.hydrate();
|
|
25432
25489
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25433
25490
|
}
|
|
25434
25491
|
async getPacket(timestamp, options) {
|
|
25492
|
+
this.prefetchReferencePlaylist();
|
|
25435
25493
|
await this.hydrate();
|
|
25436
25494
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25437
25495
|
}
|
|
25438
25496
|
async getKeyPacket(timestamp, options) {
|
|
25497
|
+
this.prefetchReferencePlaylist();
|
|
25439
25498
|
await this.hydrate();
|
|
25440
25499
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25441
25500
|
}
|
|
@@ -25447,6 +25506,10 @@ var Mediabunny = (() => {
|
|
|
25447
25506
|
await this.hydrate();
|
|
25448
25507
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25449
25508
|
}
|
|
25509
|
+
prefetchReferencePlaylist() {
|
|
25510
|
+
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25511
|
+
});
|
|
25512
|
+
}
|
|
25450
25513
|
};
|
|
25451
25514
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25452
25515
|
constructor(internalTrack) {
|
|
@@ -27141,7 +27204,6 @@ var Mediabunny = (() => {
|
|
|
27141
27204
|
this.sampleQueue.length = 0;
|
|
27142
27205
|
}
|
|
27143
27206
|
};
|
|
27144
|
-
var mergerWorkerUrl = null;
|
|
27145
27207
|
var ColorAlphaMerger = class {
|
|
27146
27208
|
constructor() {
|
|
27147
27209
|
this.workers = [];
|
|
@@ -27151,16 +27213,9 @@ var Mediabunny = (() => {
|
|
|
27151
27213
|
}
|
|
27152
27214
|
merge(color, alpha) {
|
|
27153
27215
|
if (this.workers.length === 0) {
|
|
27154
|
-
if (!mergerWorkerUrl) {
|
|
27155
|
-
const blob = new Blob(
|
|
27156
|
-
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
27157
|
-
{ type: "application/javascript" }
|
|
27158
|
-
);
|
|
27159
|
-
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
27160
|
-
}
|
|
27161
27216
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27162
27217
|
for (let i = 0; i < poolSize; i++) {
|
|
27163
|
-
const worker2 =
|
|
27218
|
+
const worker2 = createWorker("color-alpha-merger", colorAlphaMergerWorkerCode);
|
|
27164
27219
|
worker2.addEventListener("message", (event) => {
|
|
27165
27220
|
const data = event.data;
|
|
27166
27221
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30866,7 +30921,6 @@ var Mediabunny = (() => {
|
|
|
30866
30921
|
return chunkTimestamp === 500;
|
|
30867
30922
|
})();
|
|
30868
30923
|
};
|
|
30869
|
-
var splitterWorkerUrl = null;
|
|
30870
30924
|
var ColorAlphaSplitter = class {
|
|
30871
30925
|
constructor() {
|
|
30872
30926
|
this.worker = null;
|
|
@@ -30875,14 +30929,7 @@ var Mediabunny = (() => {
|
|
|
30875
30929
|
}
|
|
30876
30930
|
split(sourceFrame) {
|
|
30877
30931
|
if (!this.worker) {
|
|
30878
|
-
|
|
30879
|
-
const blob = new Blob(
|
|
30880
|
-
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
30881
|
-
{ type: "application/javascript" }
|
|
30882
|
-
);
|
|
30883
|
-
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
30884
|
-
}
|
|
30885
|
-
this.worker = new Worker(splitterWorkerUrl);
|
|
30932
|
+
this.worker = createWorker("color-alpha-splitter", colorAlphaSplitterWorkerCode);
|
|
30886
30933
|
this.worker.addEventListener("message", (event) => {
|
|
30887
30934
|
const data = event.data;
|
|
30888
30935
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32471,12 +32518,7 @@ var Mediabunny = (() => {
|
|
|
32471
32518
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32472
32519
|
var mediaStreamTrackProcessorWorker = null;
|
|
32473
32520
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32474
|
-
|
|
32475
|
-
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32476
|
-
{ type: "application/javascript" }
|
|
32477
|
-
);
|
|
32478
|
-
const url2 = URL.createObjectURL(blob);
|
|
32479
|
-
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32521
|
+
mediaStreamTrackProcessorWorker = createWorker("media-stream-track-processor", mediaStreamTrackProcessorWorkerCode);
|
|
32480
32522
|
};
|
|
32481
32523
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32482
32524
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35540,8 +35582,8 @@ var Mediabunny = (() => {
|
|
|
35540
35582
|
var tfdt = (trackData) => {
|
|
35541
35583
|
assert(trackData.currentChunk);
|
|
35542
35584
|
return fullBox("tfdt", 1, 0, [
|
|
35543
|
-
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35544
35585
|
// Base Media Decode Time
|
|
35586
|
+
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35545
35587
|
]);
|
|
35546
35588
|
};
|
|
35547
35589
|
var trun = (trackData) => {
|
|
@@ -37510,16 +37552,27 @@ var Mediabunny = (() => {
|
|
|
37510
37552
|
trackData.timestampProcessingQueue.length = 0;
|
|
37511
37553
|
return;
|
|
37512
37554
|
}
|
|
37513
|
-
const
|
|
37555
|
+
const queue = trackData.timestampProcessingQueue;
|
|
37556
|
+
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37557
|
+
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37514
37558
|
if (this.isFragmented) {
|
|
37515
37559
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37516
37560
|
} else {
|
|
37517
37561
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37518
37562
|
}
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37563
|
+
let groupStartTimescaleUnits;
|
|
37564
|
+
if (trackData.lastTimescaleUnits === null) {
|
|
37565
|
+
groupStartTimescaleUnits = firstTimestampInTimescale;
|
|
37566
|
+
} else {
|
|
37567
|
+
assert(trackData.lastSample);
|
|
37568
|
+
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37569
|
+
}
|
|
37570
|
+
let lastDecodeStep = 0;
|
|
37571
|
+
for (let i = 0; i < queue.length; i++) {
|
|
37572
|
+
const sample = queue[i];
|
|
37573
|
+
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37574
|
+
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37575
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37523
37576
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37524
37577
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37525
37578
|
assert(trackData.lastSample);
|
|
@@ -37528,6 +37581,7 @@ var Mediabunny = (() => {
|
|
|
37528
37581
|
assert(delta >= 0);
|
|
37529
37582
|
trackData.lastTimescaleUnits += delta;
|
|
37530
37583
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37584
|
+
lastDecodeStep = delta;
|
|
37531
37585
|
if (!this.isFragmented) {
|
|
37532
37586
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37533
37587
|
assert(lastTableEntry);
|
|
@@ -37583,11 +37637,15 @@ var Mediabunny = (() => {
|
|
|
37583
37637
|
trackData.timestampProcessingQueue.length = 0;
|
|
37584
37638
|
assert(trackData.lastSample);
|
|
37585
37639
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37586
|
-
if (nextSample
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37640
|
+
if (nextSample) {
|
|
37641
|
+
const nextTimestampInTimescale = intoTimescale(nextSample.timestamp, trackData.timescale);
|
|
37642
|
+
trackData.lastSample.timescaleUnitsToNextSample = Math.max(
|
|
37643
|
+
nextTimestampInTimescale - Math.round(trackData.lastTimescaleUnits),
|
|
37644
|
+
// With open GOPs, the last sample's decode timestamp may already lie past the next key frame. Then, it
|
|
37645
|
+
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37646
|
+
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37647
|
+
lastDecodeStep
|
|
37648
|
+
);
|
|
37591
37649
|
}
|
|
37592
37650
|
}
|
|
37593
37651
|
async registerSample(trackData, sample) {
|