agentroam-runtime-darwin-arm64 0.2.0-preview.79 → 0.2.0-preview.80
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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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/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/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 +3 -3
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- 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 +33 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +2 -2
- 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-fac7681c6397fcd7.js → error-f313c4014e78cef5.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-80fa1b5f4c96b0b5.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-2e962377e57d3383.js +1 -0
- package/runtime/.next/static/chunks/{main-app-0c7cccb2825ad747.js → main-app-ea4c5663714943e2.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +1 -1
- package/runtime/lib/pairing-page.mjs +5 -4
- package/runtime/lib/pwa-assets.mjs +3 -0
- package/runtime/lib/tunnel-control.mjs +38 -3
- 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/@anthropic-ai/claude-agent-sdk/bridge.mjs +79 -75
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +23 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +28 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +42 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-664d5mmy.mjs → core-q4cwy1ja.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-70sfhqm6.mjs → core-zn1abzvs.mjs} +2 -2
- 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 +23 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +83 -84
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +0 -4
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +127 -185
- 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 +127 -185
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +127 -185
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +4 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +0 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +5 -17
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +1 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +1 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +18 -34
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +0 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +8 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +12 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +5 -19
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +13 -22
- 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 +65 -70
- 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/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/aes.ts +4 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +0 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +6 -19
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +1 -2
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +1 -15
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +19 -37
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +0 -4
- package/runtime/node_modules/mediabunny/src/media-sink.ts +12 -3
- package/runtime/node_modules/mediabunny/src/media-source.ts +20 -5
- package/runtime/node_modules/mediabunny/src/misc.ts +5 -26
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +19 -30
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +79 -76
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/package-lock.json +162 -162
- package/runtime/public/pwa/apple-touch-icon.png +0 -0
- package/runtime/public/pwa/icon-maskable-512.png +0 -0
- package/runtime/public/pwa/manifest.webmanifest +2 -1
- package/runtime/public/pwa/pairing-scan.js +32 -14
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/apple-touch-icon.png +0 -0
- package/runtime/webapp/dist/assets/{AIHubView-4kqTaPjO.js → AIHubView-CM6ugXG3.js} +1 -1
- package/runtime/webapp/dist/assets/{AgentManager-CDgiLqF_.js → AgentManager-dXI31b0a.js} +1 -1
- package/runtime/webapp/dist/assets/{AiHubPane-C070jRHe.js → AiHubPane-DFzC3nbd.js} +1 -1
- package/runtime/webapp/dist/assets/{App-iZlxRHaL.js → App-mF6ELC07.js} +4 -4
- package/runtime/webapp/dist/assets/{BrowserLivePanel-DxjgVXXK.js → BrowserLivePanel-CamAULwS.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarPage-CxPVBlzd.js → CalendarPage-BbYdGYWn.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarView-CS-OG-13.js → CalendarView-QfbrlL9X.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-tI6S1cha.js → CollaborationCreateDialog-CWhmFQtA.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-DSZa3Cns.js → CollaborationDashboard-XL5SnFOu.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-COyvllTJ.js → CollaborationPage-B1tiqgnG.js} +1 -1
- package/runtime/webapp/dist/assets/{FilePreview-CcJXlLge.js → FilePreview-CPY6dP8Q.js} +3 -3
- package/runtime/webapp/dist/assets/{FileTree-BuhW-pqR.js → FileTree-BBgrOian.js} +1 -1
- package/runtime/webapp/dist/assets/{FileWorkspaceDrawer-ByWXnJ0B.js → FileWorkspaceDrawer-BXDuKlrL.js} +1 -1
- package/runtime/webapp/dist/assets/{FlowStudioPane-CxQ-QIOf.js → FlowStudioPane-lnjLcd9c.js} +1 -1
- package/runtime/webapp/dist/assets/{HostProjectPicker--J4_JpSW.js → HostProjectPicker-DN_vGqQb.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-fkagcDVv.js → LSPServerList-B-R7HDSP.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-w7tetX3J.js → MCPServerList-CTc0iAwT.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Xac9EeaV.js → MemoryViewer-Dzh_miRv.js} +1 -1
- package/runtime/webapp/dist/assets/{NewSessionWindow-C460-gxX.js → NewSessionWindow-zjqAUfKb.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopPage-BniHztmt.js → RemoteDesktopPage-9AhztqA2.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BF1dFltY.js → RemoteDesktopTabBridge-BA_HQv3V.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-D6rY-IzV.js → RunningSessionsIcon-BvFSI9OF.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-D868NjZ_.js → SessionDashboard-DcPPoXe2.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-AhmhQ1Xn.js → SessionDashboardBridge-CjoeUy-v.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DoDRBreZ.js → SettingsPanel-DmdXDQUm.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-Da7bpT-s.js → SkillManager-CS_skFZj.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-DTDU88Rr.js → TaskPaneTerminal-BFHDRCb9.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-_dVVs00I.js → TerminalPane-Dr_nY9pI.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-D3GW7M1R.js → abnfDiagram-VCTEODGH-FEEApB15.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CkEemU1L.js → arc-CycwMc2c.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-GYQtcFLY.js → architectureDiagram-5GKGNRK7-BFq9JapX.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-D5_bj13P.js → blockDiagram-I7D4REHJ-DkOJ55Ag.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Cyg1YunN.js → c4Diagram-7LVT6UL2-CRvi_3RM.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-B1Mn3x8A.js → calendar-days-CLwKstxM.js} +1 -1
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +1 -0
- package/runtime/webapp/dist/assets/{check-D-yTByNl.js → check-8EVJMrTV.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-hiPnZS_M.js → chevron-down-ChNxfI2x.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-DKsui_wS.js → chevron-right-Cbkc_d70.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-ZYdmLJUM.js → chunk-2Q5K7J3B-Cklzvs8u.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-C-zA5MxE.js → chunk-5VM5RSS4-NxozE5UP.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-cWERJSPb.js → chunk-F27PBJKO-Dyb8E7YM.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BDqkH2_j.js → chunk-IMKFNOWR-BqbMMc1n.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-D0hOf4wm.js → chunk-JWPE2WC7-do0R2H6U.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-bGKHqXLU.js → chunk-POPQ4Y6H-B2HIaynf.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-DbzwWcno.js → chunk-SVP7TREG-C_zmjkwn.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-CmCx8YTb.js → chunk-TICWLB2K-Dh2bZgM1.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-COAufrJq.js → chunk-XXDRQBXY-CnqciVDz.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/{client-5Hu1eVTX.js → client-I0ZVCjOI.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-Jy5nWtHv.js → codeSyntax-C8n4_KZS.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-DRFqpcAz.js → collaboration-lVxWL5ce.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-BtvXnu_o.js → composer-file-routing-qSvJpT-v.js} +1 -1
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-BU8MmGqT.js → cose-bilkent-JH36ORCC-CulKVUkj.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BHXgPQGq.js → cynefin-OW5HDTMX-C1LUI1_G.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DSJJ_PpM.js → cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-pJr8jDyF.js → dagre-GXQ25YYZ-DRaL0cGu.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BZ_7PPQn.js → diagram-S7CK7UJ4-D8gLHoZo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-c8pu5Rp4.js → diagram-UQ7AKVKN-CaVU0aQT.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-D1xao_j-.js → diagram-VSXAHHWV-LFAKRvZz.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-CnBWGCHa.js → diagram-VX7I27RA-DXpxUERc.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-D-TCo4OF.js → diagram-Z3DM3KII-vAiik55G.js} +1 -1
- package/runtime/webapp/dist/assets/{download-B2jLl85N.js → download-BE31-Qm0.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BGBuf1T3.js → ebnfDiagram-PWID7BFC-MaFL7Kgb.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-D8rCYH4y.js → erDiagram-RLTQ6QDP-DuEu79B3.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-BZ8YZAV-.js → file-types-ZVLWtslN.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BJGQL6in.js → flowDiagram-HODETNUW-BAQ6nP2D.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-K9o-Kk2M.js → ganttDiagram-EL5Y4UJY-C48VBnPy.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BC2r8pLT.js → gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js} +1 -1
- package/runtime/webapp/dist/assets/{history-Ci0s2eVL.js → history-D4E3D_aM.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Cx4LQVvj.js → image-plus-DQV_EEAN.js} +1 -1
- package/runtime/webapp/dist/assets/{index-D1AQffdA.js → index-DSgLFE4Q.js} +3 -3
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-bFnrh7W7.js → infoDiagram-27XIBGKW-BM7P_-u_.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Qun77xRt.js → ishikawaDiagram-5VMMS53U-Cwd8XR-p.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DjCfoBNX.js → journeyDiagram-3NMN7TZE-MOgiksTh.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BJGlhVsx.js → kanban-definition-UXKFOSKX-DulC5OLL.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-CYTxygXU.js → layout-Dku9sXQ7.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-CzJGOwUm.js → linear-B3-dddD7.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-CP9DqU2D.js → list-todo-Bik5IY2r.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-xEKTnlp3.js → loader-circle-C5C-IzGK.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CfEojGOl.js → locate-fixed-CHkezEEh.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-BTbaaIjb.js → mermaid.core-CRRXKysA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-eiKdbp4J.js → mindmap-definition-YA3MSWOX-CaaP-nEb.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-DF1R6qR2.js → mobileViewport-CekmYKqS.js} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BtGAiW4A.css → new-session-window-BfDMd-h3.css} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BFILhYAe.js → new-session-window-Dgl7UWPR.js} +26 -26
- package/runtime/webapp/dist/assets/page-_fFyRId-.js +86 -0
- package/runtime/webapp/dist/assets/{pause-C-ecDo3W.js → pause-BsmUCuwZ.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BuvePvoF.js → pegDiagram-XKGWAZYB-BqybPEwk.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-Csgh2lYE.js → pieDiagram-E7YTZNPT-BX1H2lh2.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-CjmuX5Tq.js → pin-BsEEYq8M.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-8Bbl_RHv.js → quadrantDiagram-AXDQQJYC-Btnywv1k.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CvYQkIeK.js → railroadDiagram-O6MQD6OU-Da_TV1ER.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CytOuQX4.js → requirementDiagram-BXWQKSXE-5V1Aow9h.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-HY6j6nBt.js → rotate-ccw-BbSby0GQ.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CyYR2IEw.js → rotate-cw-BMdX-ln4.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BoyI7ZhF.js → sankeyDiagram-P5KCCOFB-D_OIVihV.js} +1 -1
- package/runtime/webapp/dist/assets/{send-jSK0YaRl.js → send-Cb7EWSJF.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-Ckvtmn2N.js → sequenceDiagram-WJ2MYXX4-LKeF5Mri.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-B4lyuZYF.js → session-dashboard-BFqNDCc8.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-CEy-pW8A.js → session-tree-BK_qaCnb.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-CFebh9do.js → shield-check-C-r87aMq.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-yUQjHNrI.js → sizeCapture-INFHLROL-B6j7Q_MN.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-Dj8oPHDB.js → stateDiagram-D77RDMKH-zhPFqHdQ.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-GDjg8QNS.js → swimlanes-42K2YHIH-C_FCENx1.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-DFDHsxzp.js → timeline-definition-24CTP7MA-C3DBXjDU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-BF9eI5Bh.js → trash-2-DjggJGbw.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BuPq0iQM.js → types-BQCEWNQz.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-Ceb8OBjB.js → use-session-activity-BbTXGW7Z.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-DR5HBqo1.js → vennDiagram-4TSXK5OY-CssdTIB0.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-Bb6pROnE.js → wardleyDiagram-VM6X3IG4-C58K2vVU.js} +1 -1
- package/runtime/webapp/dist/assets/{web-BV7fxnr4.js → web-B4y8vdRZ.js} +1 -1
- package/runtime/webapp/dist/assets/{web-C8kCU9om.js → web-D9rJZXHW.js} +1 -1
- package/runtime/webapp/dist/assets/{x-uSekqXJV.js → x-BYUglEo9.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CrpaVklx.js → xychartDiagram-S5SC5T6Z-CQi8bD6A.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-B59mGU6c.js → zoom-out-iMMWRXJs.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/app/web/layout-79492e587e5930cf.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-0f06deb6eb4d49e0.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +0 -38
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +0 -20
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +0 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +0 -19
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +0 -33
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +0 -17
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +0 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/worker.js +0 -26
- package/runtime/node_modules/mediabunny/src/worker.ts +0 -28
- package/runtime/webapp/dist/assets/TodoPage-Bqu8bqNk.js +0 -1
- package/runtime/webapp/dist/assets/channel-CnNsi-lz.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/page-B-CkpInM.js +0 -86
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Csg946NK.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BUnuRfXp.js +0 -8
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_ssgManifest.js +0 -0
|
@@ -1074,7 +1074,7 @@ var unthrottledIntervalCallbacks = /* @__PURE__ */ new Map();
|
|
|
1074
1074
|
var shouldUseNativeTimers = () => {
|
|
1075
1075
|
return typeof window === "undefined";
|
|
1076
1076
|
};
|
|
1077
|
-
var
|
|
1077
|
+
var unthrottledTimerWorkerMain = () => {
|
|
1078
1078
|
const timeoutHandles = /* @__PURE__ */ new Map();
|
|
1079
1079
|
const intervalHandles = /* @__PURE__ */ new Map();
|
|
1080
1080
|
self.onmessage = (event) => {
|
|
@@ -1126,7 +1126,10 @@ var getUnthrottledTimerWorker = () => {
|
|
|
1126
1126
|
if (unthrottledTimerWorker) {
|
|
1127
1127
|
return unthrottledTimerWorker;
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1129
|
+
const workerSource = `(${unthrottledTimerWorkerMain.toString()})();`;
|
|
1130
|
+
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
1131
|
+
unthrottledTimerWorker = new Worker(workerURL);
|
|
1132
|
+
URL.revokeObjectURL(workerURL);
|
|
1130
1133
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1131
1134
|
const message = event.data;
|
|
1132
1135
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1142,24 +1145,6 @@ var getUnthrottledTimerWorker = () => {
|
|
|
1142
1145
|
};
|
|
1143
1146
|
return unthrottledTimerWorker;
|
|
1144
1147
|
};
|
|
1145
|
-
var workerBlobUrls = /* @__PURE__ */ new Map();
|
|
1146
|
-
var createWorker = (name, workerMain) => {
|
|
1147
|
-
const workerUrl = globalThis[Symbol.for("mediabunny:workerUrl")];
|
|
1148
|
-
if (workerUrl !== void 0 && typeof workerUrl !== "string" && !(workerUrl instanceof URL)) {
|
|
1149
|
-
throw new TypeError(
|
|
1150
|
-
"globalThis[Symbol.for('mediabunny:workerUrl')], when provided, must be a string or URL."
|
|
1151
|
-
);
|
|
1152
|
-
}
|
|
1153
|
-
if (workerUrl !== void 0) {
|
|
1154
|
-
return new Worker(workerUrl, { name });
|
|
1155
|
-
}
|
|
1156
|
-
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1157
|
-
if (!blobUrl) {
|
|
1158
|
-
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: "text/javascript" }));
|
|
1159
|
-
workerBlobUrls.set(workerMain, blobUrl);
|
|
1160
|
-
}
|
|
1161
|
-
return new Worker(blobUrl, { name });
|
|
1162
|
-
};
|
|
1163
1148
|
var setIntervalUnthrottled = (callback, delay) => {
|
|
1164
1149
|
if (shouldUseNativeTimers()) {
|
|
1165
1150
|
return { id: setInterval(callback, delay) };
|
|
@@ -2248,7 +2233,7 @@ var EAC3_REDUCED_SAMPLE_RATES = [24e3, 22050, 16e3];
|
|
|
2248
2233
|
var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
|
|
2249
2234
|
|
|
2250
2235
|
// src/version.ts
|
|
2251
|
-
var VERSION = "1.66.
|
|
2236
|
+
var VERSION = "1.66.2";
|
|
2252
2237
|
var VERSIONED_NAME = `Mediabunny v${VERSION}`;
|
|
2253
2238
|
|
|
2254
2239
|
// src/codec-data.ts
|
|
@@ -9266,9 +9251,10 @@ var createAes128CbcDecryptStream = (reader, getInit, close) => {
|
|
|
9266
9251
|
return new ReadableStream({
|
|
9267
9252
|
pull: async (controller) => {
|
|
9268
9253
|
try {
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9254
|
+
if (!initted) {
|
|
9255
|
+
aesContext.init(await getInit());
|
|
9256
|
+
initted = true;
|
|
9257
|
+
}
|
|
9272
9258
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
9273
9259
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
9274
9260
|
if (isThenable(nextSlice)) nextSlice = await nextSlice;
|
|
@@ -9282,10 +9268,6 @@ var createAes128CbcDecryptStream = (reader, getInit, close) => {
|
|
|
9282
9268
|
const bytesToRead = sliceLength === requestedLength ? sliceLength - BLOCK_SIZE : sliceLength;
|
|
9283
9269
|
const input = readBytes(nextSlice, bytesToRead);
|
|
9284
9270
|
const output = new Uint8Array(bytesToRead);
|
|
9285
|
-
if (initPromise) {
|
|
9286
|
-
aesContext.init(await initPromise);
|
|
9287
|
-
initted = true;
|
|
9288
|
-
}
|
|
9289
9271
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
9290
9272
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
9291
9273
|
aesContext.decrypt();
|
|
@@ -9416,10 +9398,7 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
|
|
|
9416
9398
|
}
|
|
9417
9399
|
currentPos = startPos + boxInfo.totalSize;
|
|
9418
9400
|
}
|
|
9419
|
-
if (!foundMovieBoxes) {
|
|
9420
|
-
if (!this.input._initInput) {
|
|
9421
|
-
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9422
|
-
}
|
|
9401
|
+
if (!foundMovieBoxes && this.input._initInput) {
|
|
9423
9402
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9424
9403
|
}
|
|
9425
9404
|
if (lookForMfraBox) {
|
|
@@ -12024,10 +12003,6 @@ var IsobmffTrackBacking = class {
|
|
|
12024
12003
|
if (!sampleInfo) {
|
|
12025
12004
|
return null;
|
|
12026
12005
|
}
|
|
12027
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12028
|
-
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12029
|
-
return null;
|
|
12030
|
-
}
|
|
12031
12006
|
let data;
|
|
12032
12007
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12033
12008
|
data = PLACEHOLDER_DATA;
|
|
@@ -12082,10 +12057,6 @@ var IsobmffTrackBacking = class {
|
|
|
12082
12057
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12083
12058
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12084
12059
|
assert(fragmentSample);
|
|
12085
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12086
|
-
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12087
|
-
return null;
|
|
12088
|
-
}
|
|
12089
12060
|
let data;
|
|
12090
12061
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12091
12062
|
data = PLACEHOLDER_DATA;
|
|
@@ -13508,9 +13479,6 @@ var MatroskaDemuxer = class extends Demuxer {
|
|
|
13508
13479
|
assertDefinedSize(size);
|
|
13509
13480
|
currentPos = dataStartPos + size;
|
|
13510
13481
|
}
|
|
13511
|
-
if (this.segments.length === 0) {
|
|
13512
|
-
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13513
|
-
}
|
|
13514
13482
|
})();
|
|
13515
13483
|
}
|
|
13516
13484
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17155,10 +17123,6 @@ var Mp3AudioTrackBacking = class {
|
|
|
17155
17123
|
if (!rawSample) {
|
|
17156
17124
|
return null;
|
|
17157
17125
|
}
|
|
17158
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
17159
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17160
|
-
return null;
|
|
17161
|
-
}
|
|
17162
17126
|
let data;
|
|
17163
17127
|
if (options.metadataOnly) {
|
|
17164
17128
|
data = PLACEHOLDER_DATA;
|
|
@@ -18979,10 +18943,6 @@ var AdtsAudioTrackBacking = class {
|
|
|
18979
18943
|
if (!rawSample) {
|
|
18980
18944
|
return null;
|
|
18981
18945
|
}
|
|
18982
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
18983
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
18984
|
-
return null;
|
|
18985
|
-
}
|
|
18986
18946
|
let data;
|
|
18987
18947
|
if (options.metadataOnly) {
|
|
18988
18948
|
data = PLACEHOLDER_DATA;
|
|
@@ -19768,7 +19728,6 @@ var MpegTsDemuxer = class _MpegTsDemuxer extends Demuxer {
|
|
|
19768
19728
|
let programMapPid = null;
|
|
19769
19729
|
let hasProgramAssociationTable = false;
|
|
19770
19730
|
let hasProgramMap = false;
|
|
19771
|
-
let initDemuxer = null;
|
|
19772
19731
|
while (true) {
|
|
19773
19732
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19774
19733
|
if (!packetHeader) {
|
|
@@ -20009,26 +19968,22 @@ var MpegTsDemuxer = class _MpegTsDemuxer extends Demuxer {
|
|
|
20009
19968
|
}
|
|
20010
19969
|
elementaryStream.firstSection = section;
|
|
20011
19970
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
19971
|
+
if (this.input._initInput) {
|
|
19972
|
+
const initDemuxer = await this.input._initInput._getDemuxer();
|
|
19973
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
19974
|
+
throw new Error("Init input must match the input's format.");
|
|
19975
|
+
}
|
|
19976
|
+
await initDemuxer.readMetadata();
|
|
19977
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
19978
|
+
if (matchingStream) {
|
|
19979
|
+
elementaryStream.info = matchingStream.info;
|
|
19980
|
+
elementaryStream.initialized = true;
|
|
19981
|
+
break outer;
|
|
19982
|
+
}
|
|
19983
|
+
}
|
|
20012
19984
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20013
19985
|
if (elementaryStream.info.type === "video") {
|
|
20014
|
-
let packetCount = 0;
|
|
20015
19986
|
while (true) {
|
|
20016
|
-
if (packetCount === 1 && this.input._initInput) {
|
|
20017
|
-
if (!initDemuxer) {
|
|
20018
|
-
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20019
|
-
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20020
|
-
throw new Error("Init input must match the input's format.");
|
|
20021
|
-
}
|
|
20022
|
-
await initDemuxer.readMetadata();
|
|
20023
|
-
}
|
|
20024
|
-
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20025
|
-
if (matchingStream) {
|
|
20026
|
-
elementaryStream.info = matchingStream.info;
|
|
20027
|
-
elementaryStream.initialized = true;
|
|
20028
|
-
break outer;
|
|
20029
|
-
}
|
|
20030
|
-
}
|
|
20031
|
-
packetCount++;
|
|
20032
19987
|
const contextAlias = context;
|
|
20033
19988
|
contextAlias.suppliedPacket = null;
|
|
20034
19989
|
await context.markNextPacket();
|
|
@@ -21781,7 +21736,7 @@ var SegmentedInput = class {
|
|
|
21781
21736
|
if (!this.firstSegment) {
|
|
21782
21737
|
return [];
|
|
21783
21738
|
}
|
|
21784
|
-
const input = this.getInputForSegment(this.firstSegment
|
|
21739
|
+
const input = this.getInputForSegment(this.firstSegment);
|
|
21785
21740
|
const inputTracks = await input.getTracks();
|
|
21786
21741
|
for (const track of inputTracks) {
|
|
21787
21742
|
if (track.type === "video") {
|
|
@@ -21849,34 +21804,34 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
21849
21804
|
constructor(segmentedInput, decl, number) {
|
|
21850
21805
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
21851
21806
|
this.hydrationPromise = null;
|
|
21852
|
-
this.
|
|
21807
|
+
this.firstInputTrack = null;
|
|
21808
|
+
this.firstSegment = null;
|
|
21853
21809
|
this.segmentedInput = segmentedInput;
|
|
21854
21810
|
this.decl = decl;
|
|
21855
21811
|
this.number = number;
|
|
21856
21812
|
}
|
|
21857
21813
|
hydrate() {
|
|
21858
21814
|
return this.hydrationPromise ??= (async () => {
|
|
21859
|
-
|
|
21815
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
21816
|
+
if (!this.segmentedInput.firstSegment) {
|
|
21817
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
21818
|
+
}
|
|
21819
|
+
let currentSegment = this.segmentedInput.firstSegment;
|
|
21860
21820
|
let track = null;
|
|
21861
|
-
|
|
21862
|
-
const
|
|
21821
|
+
while (currentSegment) {
|
|
21822
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
21823
|
+
const inputTracks = await input.getTracks();
|
|
21863
21824
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
while (currentSegment) {
|
|
21867
|
-
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
21868
|
-
const inputTracks = await input.getTracks();
|
|
21869
|
-
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21870
|
-
if (track) {
|
|
21871
|
-
break;
|
|
21872
|
-
}
|
|
21873
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21825
|
+
if (track) {
|
|
21826
|
+
break;
|
|
21874
21827
|
}
|
|
21828
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21875
21829
|
}
|
|
21876
21830
|
if (!track) {
|
|
21877
21831
|
throw new Error("No matching track found in underlying media data.");
|
|
21878
21832
|
}
|
|
21879
|
-
this.
|
|
21833
|
+
this.firstInputTrack = track;
|
|
21834
|
+
this.firstSegment = currentSegment;
|
|
21880
21835
|
})();
|
|
21881
21836
|
}
|
|
21882
21837
|
getType() {
|
|
@@ -21887,52 +21842,53 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
21887
21842
|
}
|
|
21888
21843
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
21889
21844
|
delegate(fn) {
|
|
21890
|
-
if (this.
|
|
21845
|
+
if (this.firstInputTrack) {
|
|
21891
21846
|
return fn();
|
|
21892
21847
|
}
|
|
21893
21848
|
return this.hydrate().then(fn);
|
|
21894
21849
|
}
|
|
21895
21850
|
async getDecoderConfig() {
|
|
21896
|
-
return this.delegate(() => this.
|
|
21851
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
21897
21852
|
}
|
|
21898
21853
|
getHasOnlyKeyPackets() {
|
|
21899
21854
|
return this.delegate(() => {
|
|
21900
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
21855
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.firstInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
21901
21856
|
});
|
|
21902
21857
|
}
|
|
21903
21858
|
getPairingMask() {
|
|
21904
21859
|
return 1n;
|
|
21905
21860
|
}
|
|
21906
21861
|
getCodec() {
|
|
21907
|
-
return this.delegate(() => this.
|
|
21862
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
21908
21863
|
}
|
|
21909
21864
|
getInternalCodecId() {
|
|
21910
|
-
return this.delegate(() => this.
|
|
21865
|
+
return this.delegate(() => this.firstInputTrack._backing.getInternalCodecId());
|
|
21911
21866
|
}
|
|
21912
21867
|
getDisposition() {
|
|
21913
|
-
return this.delegate(() => this.
|
|
21868
|
+
return this.delegate(() => this.firstInputTrack._backing.getDisposition());
|
|
21914
21869
|
}
|
|
21915
21870
|
getLanguageCode() {
|
|
21916
|
-
return this.delegate(() => this.
|
|
21871
|
+
return this.delegate(() => this.firstInputTrack._backing.getLanguageCode());
|
|
21917
21872
|
}
|
|
21918
21873
|
getName() {
|
|
21919
|
-
return this.delegate(() => this.
|
|
21874
|
+
return this.delegate(() => this.firstInputTrack._backing.getName());
|
|
21920
21875
|
}
|
|
21921
21876
|
getTimeResolution() {
|
|
21922
|
-
return this.delegate(() => this.
|
|
21877
|
+
return this.delegate(() => this.firstInputTrack._backing.getTimeResolution());
|
|
21923
21878
|
}
|
|
21924
21879
|
async isRelativeToUnixEpoch() {
|
|
21925
|
-
|
|
21926
|
-
|
|
21880
|
+
await this.hydrate();
|
|
21881
|
+
assert(this.segmentedInput.firstSegment);
|
|
21882
|
+
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
21927
21883
|
}
|
|
21928
21884
|
getUnixTimeForTimestamp(timestamp) {
|
|
21929
21885
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
21930
21886
|
}
|
|
21931
21887
|
getBitrate() {
|
|
21932
|
-
return this.delegate(() => this.
|
|
21888
|
+
return this.delegate(() => this.firstInputTrack._backing.getBitrate());
|
|
21933
21889
|
}
|
|
21934
21890
|
getAverageBitrate() {
|
|
21935
|
-
return this.delegate(() => this.
|
|
21891
|
+
return this.delegate(() => this.firstInputTrack._backing.getAverageBitrate());
|
|
21936
21892
|
}
|
|
21937
21893
|
getDurationFromMetadata(options) {
|
|
21938
21894
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -21942,9 +21898,9 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
21942
21898
|
}
|
|
21943
21899
|
async createAdjustedPacket(packet, segment, track) {
|
|
21944
21900
|
assert(packet.sequenceNumber >= 0);
|
|
21945
|
-
|
|
21901
|
+
assert(this.segmentedInput.firstSegment);
|
|
21946
21902
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
21947
|
-
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
21903
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - this.segmentedInput.firstSegment.timestamp;
|
|
21948
21904
|
const modified = packet.clone({
|
|
21949
21905
|
timestamp: roundToDivisor(
|
|
21950
21906
|
packet.timestamp + mediaOffset,
|
|
@@ -21962,33 +21918,30 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
21962
21918
|
return modified;
|
|
21963
21919
|
}
|
|
21964
21920
|
async getFirstPacket(options) {
|
|
21965
|
-
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
let
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
if (track) {
|
|
21974
|
-
const packet = await track._backing.getFirstPacket(options);
|
|
21921
|
+
await this.hydrate();
|
|
21922
|
+
assert(this.firstInputTrack);
|
|
21923
|
+
assert(this.firstSegment);
|
|
21924
|
+
let currentTrack = this.firstInputTrack;
|
|
21925
|
+
let currentSegment = this.firstSegment;
|
|
21926
|
+
while (true) {
|
|
21927
|
+
if (currentTrack) {
|
|
21928
|
+
const packet = await currentTrack._backing.getFirstPacket(options);
|
|
21975
21929
|
if (packet) {
|
|
21976
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
21930
|
+
return this.createAdjustedPacket(packet, currentSegment, currentTrack);
|
|
21977
21931
|
}
|
|
21978
21932
|
}
|
|
21979
21933
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
21980
21934
|
skipLiveWait: options.skipLiveWait
|
|
21981
21935
|
});
|
|
21936
|
+
if (!currentSegment) {
|
|
21937
|
+
break;
|
|
21938
|
+
}
|
|
21939
|
+
const nextInput = this.segmentedInput.getInputForSegment(currentSegment);
|
|
21940
|
+
const nextTracks = await nextInput.getTracks();
|
|
21941
|
+
currentTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number) ?? null;
|
|
21982
21942
|
}
|
|
21983
21943
|
return null;
|
|
21984
21944
|
}
|
|
21985
|
-
async getFirstSegment() {
|
|
21986
|
-
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
21987
|
-
if (!this.segmentedInput.firstSegment) {
|
|
21988
|
-
throw new Error("Missing first segment, can't retrieve track.");
|
|
21989
|
-
}
|
|
21990
|
-
return this.segmentedInput.firstSegment;
|
|
21991
|
-
}
|
|
21992
21945
|
getNextPacket(packet, options) {
|
|
21993
21946
|
return this._getNextInternal(packet, options, false);
|
|
21994
21947
|
}
|
|
@@ -22044,12 +21997,11 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
22044
21997
|
if (!currentSegment) {
|
|
22045
21998
|
return null;
|
|
22046
21999
|
}
|
|
22047
|
-
|
|
22048
|
-
});
|
|
22000
|
+
await this.hydrate();
|
|
22049
22001
|
while (currentSegment) {
|
|
22050
22002
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22051
22003
|
const tracks = await input.getTracks();
|
|
22052
|
-
const track = tracks.find((t) => t.type === this.
|
|
22004
|
+
const track = tracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number);
|
|
22053
22005
|
if (!track) {
|
|
22054
22006
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22055
22007
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22089,7 +22041,7 @@ var SegmentedInputInputTrackBacking = class {
|
|
|
22089
22041
|
if (nextSegment) {
|
|
22090
22042
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22091
22043
|
const nextTracks = await nextInput.getTracks();
|
|
22092
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22044
|
+
const nextTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number);
|
|
22093
22045
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22094
22046
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22095
22047
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22125,31 +22077,31 @@ var SegmentedInputInputVideoTrackBacking = class extends SegmentedInputInputTrac
|
|
|
22125
22077
|
return "video";
|
|
22126
22078
|
}
|
|
22127
22079
|
getCodec() {
|
|
22128
|
-
return this.delegate(() => this.
|
|
22080
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
22129
22081
|
}
|
|
22130
22082
|
getCodedWidth() {
|
|
22131
|
-
return this.delegate(() => this.
|
|
22083
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodedWidth());
|
|
22132
22084
|
}
|
|
22133
22085
|
getCodedHeight() {
|
|
22134
|
-
return this.delegate(() => this.
|
|
22086
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodedHeight());
|
|
22135
22087
|
}
|
|
22136
22088
|
getSquarePixelWidth() {
|
|
22137
|
-
return this.delegate(() => this.
|
|
22089
|
+
return this.delegate(() => this.firstInputTrack._backing.getSquarePixelWidth());
|
|
22138
22090
|
}
|
|
22139
22091
|
getSquarePixelHeight() {
|
|
22140
|
-
return this.delegate(() => this.
|
|
22092
|
+
return this.delegate(() => this.firstInputTrack._backing.getSquarePixelHeight());
|
|
22141
22093
|
}
|
|
22142
22094
|
getTransformationMatrix() {
|
|
22143
|
-
return this.delegate(() => this.
|
|
22095
|
+
return this.delegate(() => this.firstInputTrack._backing.getTransformationMatrix());
|
|
22144
22096
|
}
|
|
22145
22097
|
async getColorSpace() {
|
|
22146
|
-
return this.delegate(() => this.
|
|
22098
|
+
return this.delegate(() => this.firstInputTrack._backing.getColorSpace());
|
|
22147
22099
|
}
|
|
22148
22100
|
async canBeTransparent() {
|
|
22149
|
-
return this.delegate(() => this.
|
|
22101
|
+
return this.delegate(() => this.firstInputTrack._backing.canBeTransparent());
|
|
22150
22102
|
}
|
|
22151
22103
|
async getDecoderConfig() {
|
|
22152
|
-
return this.delegate(() => this.
|
|
22104
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
22153
22105
|
}
|
|
22154
22106
|
};
|
|
22155
22107
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22157,16 +22109,16 @@ var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrac
|
|
|
22157
22109
|
return "audio";
|
|
22158
22110
|
}
|
|
22159
22111
|
getCodec() {
|
|
22160
|
-
return this.delegate(() => this.
|
|
22112
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
22161
22113
|
}
|
|
22162
22114
|
getNumberOfChannels() {
|
|
22163
|
-
return this.delegate(() => this.
|
|
22115
|
+
return this.delegate(() => this.firstInputTrack._backing.getNumberOfChannels());
|
|
22164
22116
|
}
|
|
22165
22117
|
getSampleRate() {
|
|
22166
|
-
return this.delegate(() => this.
|
|
22118
|
+
return this.delegate(() => this.firstInputTrack._backing.getSampleRate());
|
|
22167
22119
|
}
|
|
22168
22120
|
async getDecoderConfig() {
|
|
22169
|
-
return this.delegate(() => this.
|
|
22121
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
22170
22122
|
}
|
|
22171
22123
|
};
|
|
22172
22124
|
|
|
@@ -24541,12 +24493,8 @@ var HlsSegmentedInput = class extends SegmentedInput {
|
|
|
24541
24493
|
return cacheEntry.input;
|
|
24542
24494
|
}
|
|
24543
24495
|
let initInput = null;
|
|
24544
|
-
if (hlsSegment.initSegment) {
|
|
24545
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24546
|
-
void initInput.getTracks().catch(() => {
|
|
24547
|
-
});
|
|
24548
|
-
} else if (hlsSegment.firstSegment) {
|
|
24549
|
-
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24496
|
+
if (hlsSegment.initSegment || hlsSegment.firstSegment) {
|
|
24497
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment ?? hlsSegment.firstSegment);
|
|
24550
24498
|
}
|
|
24551
24499
|
const formatOptions = {
|
|
24552
24500
|
...this.input._formatOptions,
|
|
@@ -24667,21 +24615,17 @@ var HlsSegmentedInput = class extends SegmentedInput {
|
|
|
24667
24615
|
}
|
|
24668
24616
|
getFirstSegmentTimestampOffset() {
|
|
24669
24617
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24618
|
+
const firstSegment = await this.getFirstSegment();
|
|
24619
|
+
assert(firstSegment);
|
|
24670
24620
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24671
24621
|
if (this === referenceSegmentedInput) {
|
|
24672
24622
|
return 0;
|
|
24673
24623
|
}
|
|
24674
|
-
const
|
|
24675
|
-
this.getFirstSegment(),
|
|
24676
|
-
referenceSegmentedInput.getFirstSegment()
|
|
24677
|
-
]);
|
|
24678
|
-
assert(firstSegment);
|
|
24624
|
+
const referenceFirstSegment = await referenceSegmentedInput.getFirstSegment();
|
|
24679
24625
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24680
24626
|
return 0;
|
|
24681
24627
|
}
|
|
24682
24628
|
const input = this.getInputForSegment(firstSegment);
|
|
24683
|
-
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24684
|
-
});
|
|
24685
24629
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24686
24630
|
return 0;
|
|
24687
24631
|
}
|
|
@@ -25327,17 +25271,14 @@ var HlsInputTrackBacking = class {
|
|
|
25327
25271
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25328
25272
|
}
|
|
25329
25273
|
async getFirstPacket(options) {
|
|
25330
|
-
this.prefetchReferencePlaylist();
|
|
25331
25274
|
await this.hydrate();
|
|
25332
25275
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25333
25276
|
}
|
|
25334
25277
|
async getPacket(timestamp, options) {
|
|
25335
|
-
this.prefetchReferencePlaylist();
|
|
25336
25278
|
await this.hydrate();
|
|
25337
25279
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25338
25280
|
}
|
|
25339
25281
|
async getKeyPacket(timestamp, options) {
|
|
25340
|
-
this.prefetchReferencePlaylist();
|
|
25341
25282
|
await this.hydrate();
|
|
25342
25283
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25343
25284
|
}
|
|
@@ -25349,10 +25290,6 @@ var HlsInputTrackBacking = class {
|
|
|
25349
25290
|
await this.hydrate();
|
|
25350
25291
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25351
25292
|
}
|
|
25352
|
-
prefetchReferencePlaylist() {
|
|
25353
|
-
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25354
|
-
});
|
|
25355
|
-
}
|
|
25356
25293
|
};
|
|
25357
25294
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25358
25295
|
constructor(internalTrack) {
|
|
@@ -27047,6 +26984,7 @@ var VideoDecoderWrapper = class extends DecoderWrapper {
|
|
|
27047
26984
|
this.sampleQueue.length = 0;
|
|
27048
26985
|
}
|
|
27049
26986
|
};
|
|
26987
|
+
var mergerWorkerUrl = null;
|
|
27050
26988
|
var ColorAlphaMerger = class {
|
|
27051
26989
|
constructor() {
|
|
27052
26990
|
this.workers = [];
|
|
@@ -27056,9 +26994,16 @@ var ColorAlphaMerger = class {
|
|
|
27056
26994
|
}
|
|
27057
26995
|
merge(color, alpha) {
|
|
27058
26996
|
if (this.workers.length === 0) {
|
|
26997
|
+
if (!mergerWorkerUrl) {
|
|
26998
|
+
const blob = new Blob(
|
|
26999
|
+
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
27000
|
+
{ type: "application/javascript" }
|
|
27001
|
+
);
|
|
27002
|
+
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
27003
|
+
}
|
|
27059
27004
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27060
27005
|
for (let i = 0; i < poolSize; i++) {
|
|
27061
|
-
const worker2 =
|
|
27006
|
+
const worker2 = new Worker(mergerWorkerUrl);
|
|
27062
27007
|
worker2.addEventListener("message", (event) => {
|
|
27063
27008
|
const data = event.data;
|
|
27064
27009
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30764,6 +30709,7 @@ var detectAvcChunkTimestampShift = () => {
|
|
|
30764
30709
|
return chunkTimestamp === 500;
|
|
30765
30710
|
})();
|
|
30766
30711
|
};
|
|
30712
|
+
var splitterWorkerUrl = null;
|
|
30767
30713
|
var ColorAlphaSplitter = class {
|
|
30768
30714
|
constructor() {
|
|
30769
30715
|
this.worker = null;
|
|
@@ -30772,7 +30718,14 @@ var ColorAlphaSplitter = class {
|
|
|
30772
30718
|
}
|
|
30773
30719
|
split(sourceFrame) {
|
|
30774
30720
|
if (!this.worker) {
|
|
30775
|
-
|
|
30721
|
+
if (!splitterWorkerUrl) {
|
|
30722
|
+
const blob = new Blob(
|
|
30723
|
+
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
30724
|
+
{ type: "application/javascript" }
|
|
30725
|
+
);
|
|
30726
|
+
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
30727
|
+
}
|
|
30728
|
+
this.worker = new Worker(splitterWorkerUrl);
|
|
30776
30729
|
this.worker.addEventListener("message", (event) => {
|
|
30777
30730
|
const data = event.data;
|
|
30778
30731
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32361,7 +32314,12 @@ var mediaStreamTrackProcessorWorkerCode = () => {
|
|
|
32361
32314
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32362
32315
|
var mediaStreamTrackProcessorWorker = null;
|
|
32363
32316
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32364
|
-
|
|
32317
|
+
const blob = new Blob(
|
|
32318
|
+
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32319
|
+
{ type: "application/javascript" }
|
|
32320
|
+
);
|
|
32321
|
+
const url2 = URL.createObjectURL(blob);
|
|
32322
|
+
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32365
32323
|
};
|
|
32366
32324
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32367
32325
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35425,8 +35383,8 @@ var tfhd = (trackData) => {
|
|
|
35425
35383
|
var tfdt = (trackData) => {
|
|
35426
35384
|
assert(trackData.currentChunk);
|
|
35427
35385
|
return fullBox("tfdt", 1, 0, [
|
|
35386
|
+
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35428
35387
|
// Base Media Decode Time
|
|
35429
|
-
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35430
35388
|
]);
|
|
35431
35389
|
};
|
|
35432
35390
|
var trun = (trackData) => {
|
|
@@ -37395,27 +37353,16 @@ var IsobmffMuxer2 = class extends Muxer {
|
|
|
37395
37353
|
trackData.timestampProcessingQueue.length = 0;
|
|
37396
37354
|
return;
|
|
37397
37355
|
}
|
|
37398
|
-
const
|
|
37399
|
-
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37400
|
-
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37356
|
+
const sortedTimestamps = trackData.timestampProcessingQueue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37401
37357
|
if (this.isFragmented) {
|
|
37402
37358
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37403
37359
|
} else {
|
|
37404
37360
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37405
37361
|
}
|
|
37406
|
-
let
|
|
37407
|
-
|
|
37408
|
-
|
|
37409
|
-
|
|
37410
|
-
assert(trackData.lastSample);
|
|
37411
|
-
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37412
|
-
}
|
|
37413
|
-
let lastDecodeStep = 0;
|
|
37414
|
-
for (let i = 0; i < queue.length; i++) {
|
|
37415
|
-
const sample = queue[i];
|
|
37416
|
-
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37417
|
-
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37418
|
-
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37362
|
+
for (let i = 0; i < trackData.timestampProcessingQueue.length; i++) {
|
|
37363
|
+
const sample = trackData.timestampProcessingQueue[i];
|
|
37364
|
+
sample.decodeTimestamp = sortedTimestamps[i];
|
|
37365
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp - sample.decodeTimestamp, trackData.timescale);
|
|
37419
37366
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37420
37367
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37421
37368
|
assert(trackData.lastSample);
|
|
@@ -37424,7 +37371,6 @@ var IsobmffMuxer2 = class extends Muxer {
|
|
|
37424
37371
|
assert(delta >= 0);
|
|
37425
37372
|
trackData.lastTimescaleUnits += delta;
|
|
37426
37373
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37427
|
-
lastDecodeStep = delta;
|
|
37428
37374
|
if (!this.isFragmented) {
|
|
37429
37375
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37430
37376
|
assert(lastTableEntry);
|
|
@@ -37480,15 +37426,11 @@ var IsobmffMuxer2 = class extends Muxer {
|
|
|
37480
37426
|
trackData.timestampProcessingQueue.length = 0;
|
|
37481
37427
|
assert(trackData.lastSample);
|
|
37482
37428
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37483
|
-
if (nextSample) {
|
|
37484
|
-
|
|
37485
|
-
|
|
37486
|
-
|
|
37487
|
-
|
|
37488
|
-
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37489
|
-
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37490
|
-
lastDecodeStep
|
|
37491
|
-
);
|
|
37429
|
+
if (nextSample !== void 0 && trackData.lastSample.timescaleUnitsToNextSample === 0) {
|
|
37430
|
+
assert(nextSample.type === "key");
|
|
37431
|
+
const timescaleUnits = intoTimescale(nextSample.timestamp, trackData.timescale, false);
|
|
37432
|
+
const delta = Math.round(timescaleUnits - trackData.lastTimescaleUnits);
|
|
37433
|
+
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37492
37434
|
}
|
|
37493
37435
|
}
|
|
37494
37436
|
async registerSample(trackData, sample) {
|