agentroam-runtime-darwin-arm64 0.2.0-preview.82 → 0.2.0-preview.84

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.
Files changed (308) hide show
  1. package/manifest.json +2 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +26 -25
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +8 -8
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/react-loadable-manifest.json +4 -4
  9. package/runtime/.next/required-server-files.json +1 -1
  10. package/runtime/.next/server/app/_not-found/page.js +1 -1
  11. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/runtime/.next/server/app/_not-found.html +1 -1
  13. package/runtime/.next/server/app/_not-found.rsc +1 -1
  14. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/composer/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  23. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  24. package/runtime/.next/server/app/api/agent/stream/route.js +3 -3
  25. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  26. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  27. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  28. package/runtime/.next/server/app/api/business/route.js +1 -1
  29. package/runtime/.next/server/app/api/calendar/route.js +2 -2
  30. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  31. package/runtime/.next/server/app/api/collaboration/route.js +2 -2
  32. package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
  33. package/runtime/.next/server/app/api/engine-threads.body +1 -1
  34. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  35. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  36. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
  37. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  38. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  39. package/runtime/.next/server/app/api/internal/todo-bootstrap/route.js +1 -1
  40. package/runtime/.next/server/app/api/internal/todo-mcp/route.js +1 -1
  41. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  42. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  43. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  44. package/runtime/.next/server/app/api/mcp/servers.body +1 -1
  45. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  46. package/runtime/.next/server/app/api/memory/route.js +1 -1
  47. package/runtime/.next/server/app/api/messaging/route.js +1 -1
  48. package/runtime/.next/server/app/api/notifications/[id]/ack/route.js +1 -1
  49. package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
  50. package/runtime/.next/server/app/api/notifications/route.js +1 -1
  51. package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
  52. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  53. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  54. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  55. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  56. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  57. package/runtime/.next/server/app/api/projects/route.js +1 -1
  58. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  59. package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
  60. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  61. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  62. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  63. package/runtime/.next/server/app/api/session-images/[id]/route.js +1 -1
  64. package/runtime/.next/server/app/api/session-views/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  68. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  69. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -1
  70. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  71. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  72. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  73. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  74. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  75. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  76. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  77. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  78. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -1
  79. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  80. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -1
  81. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  82. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
  83. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  84. package/runtime/.next/server/app/api/settings/route.js +1 -1
  85. package/runtime/.next/server/app/api/skills/route.js +1 -1
  86. package/runtime/.next/server/app/api/todos/[id]/commands/route.js +1 -1
  87. package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
  88. package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
  89. package/runtime/.next/server/app/api/todos/route.js +1 -1
  90. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  91. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  92. package/runtime/.next/server/app/api/tools/route.js +1 -1
  93. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  94. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  95. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  96. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  97. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  98. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  99. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  100. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  101. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  102. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  103. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  104. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  105. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  106. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  107. package/runtime/.next/server/app/api/workspace-changes/route.js +1 -1
  108. package/runtime/.next/server/app/web/page.js +4 -4
  109. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  110. package/runtime/.next/server/app-paths-manifest.json +38 -38
  111. package/runtime/.next/server/chunks/5303.js +2 -2
  112. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  113. package/runtime/.next/server/middleware-react-loadable-manifest.js +1 -1
  114. package/runtime/.next/server/pages/404.html +1 -1
  115. package/runtime/.next/server/pages/500.html +1 -1
  116. package/runtime/.next/server/pages-manifest.json +1 -1
  117. package/runtime/.next/server/server-reference-manifest.json +1 -1
  118. package/runtime/.next/static/chunks/{183-dbd3e343da4ba103.js → 183-9f47bd28d757e44e.js} +1 -1
  119. package/runtime/.next/static/chunks/20.2eb9bc3a5b4d410b.js +1 -0
  120. package/runtime/.next/static/chunks/325-0818ba5a4060a0e8.js +1 -0
  121. package/runtime/.next/static/chunks/34.c7dbf7ffc8914be9.js +1 -0
  122. package/runtime/.next/static/chunks/686.7b5c444243fcf29a.js +1 -0
  123. package/runtime/.next/static/chunks/app/web/{error-828d278147a0619d.js → error-6ca9afc69e38a945.js} +1 -1
  124. package/runtime/.next/static/chunks/app/web/layout-b1d0dc229e4be45a.js +1 -0
  125. package/runtime/.next/static/chunks/app/web/page-36f160284a0d79fc.js +1 -0
  126. package/runtime/.next/static/chunks/main-app-9e9b12e00c3ae35e.js +1 -0
  127. package/runtime/.next/static/chunks/{webpack-f51a057f833e73eb.js → webpack-040c7a20dd455025.js} +1 -1
  128. package/runtime/.next/static/css/0e673318adedd54a.css +1 -0
  129. package/runtime/lib/tunnel-control.mjs +1 -1
  130. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  131. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  132. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  133. package/runtime/node_modules/.package-lock.json +120 -120
  134. package/runtime/node_modules/@agent/core/dist/index.js +10 -3
  135. package/runtime/node_modules/@agent/native-runtime/dist/index.js +201 -55
  136. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +41 -10
  137. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +9 -9
  138. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +10 -10
  139. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +41 -10
  140. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +41 -10
  141. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +50 -11
  142. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  143. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  144. package/runtime/node_modules/mediabunny/package.json +1 -1
  145. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +59 -13
  146. package/runtime/node_modules/mediabunny/src/metadata.ts +1 -0
  147. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  148. package/runtime/node_modules/sanitize-html/node_modules/postcss/README.md +1 -1
  149. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +1 -3
  150. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/parser.js +7 -3
  151. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
  152. package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +2 -2
  153. package/runtime/package-lock.json +137 -137
  154. package/runtime/server.js +1 -1
  155. package/runtime/webapp/dist/assets/AIHubView-DKUDkftP.js +1 -0
  156. package/runtime/webapp/dist/assets/{AgentManager-B8TTqJaL.js → AgentManager-DBsl9Tc-.js} +1 -1
  157. package/runtime/webapp/dist/assets/AiHubPane-Cq9jov_Y.js +1 -0
  158. package/runtime/webapp/dist/assets/App-Cw_UxB1o.js +68 -0
  159. package/runtime/webapp/dist/assets/{BrowserLivePanel-DnzJOz5w.js → BrowserLivePanel-D4-GJ_9P.js} +2 -2
  160. package/runtime/webapp/dist/assets/CalendarPage-X9TGiQFj.js +1 -0
  161. package/runtime/webapp/dist/assets/{CalendarView-QXZbXnXA.js → CalendarView-HvfBGuRx.js} +3 -3
  162. package/runtime/webapp/dist/assets/CollaborationCreateDialog-jp-Nu0XU.js +1 -0
  163. package/runtime/webapp/dist/assets/CollaborationDashboard-olO_GjsT.js +1 -0
  164. package/runtime/webapp/dist/assets/{CollaborationPage-B2mIAc-h.js → CollaborationPage-W8naHk0B.js} +2 -2
  165. package/runtime/webapp/dist/assets/{FilePreview-BCEiERA1.js → FilePreview-DI0rubgD.js} +5 -5
  166. package/runtime/webapp/dist/assets/{FileTree-CMbs1Gj3.js → FileTree-rE46D8RD.js} +2 -2
  167. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-wPD_Fs04.js +1 -0
  168. package/runtime/webapp/dist/assets/FlowStudioPane-BILTrSF5.js +5 -0
  169. package/runtime/webapp/dist/assets/HostProjectPicker-0CHU4mlN.js +1 -0
  170. package/runtime/webapp/dist/assets/{LSPServerList-COMVmsvb.js → LSPServerList-T8zw5SN-.js} +1 -1
  171. package/runtime/webapp/dist/assets/{MCPServerList-C_juD6B4.js → MCPServerList-CQNCdDdm.js} +1 -1
  172. package/runtime/webapp/dist/assets/{MemoryViewer-Et2vysSN.js → MemoryViewer-mQsBEa17.js} +1 -1
  173. package/runtime/webapp/dist/assets/NewSessionWindow-CCQJHuTO.js +1 -0
  174. package/runtime/webapp/dist/assets/NewSessionWindow-aaPt6Fto.css +1 -0
  175. package/runtime/webapp/dist/assets/RemoteDesktopPage-CSrZ5Ftv.js +1 -0
  176. package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BFzNwpUn.js → RemoteDesktopTabBridge-jgSmDncq.js} +1 -1
  177. package/runtime/webapp/dist/assets/{RunningSessionsIcon-D_cOqmmk.js → RunningSessionsIcon-Dj0GAkqr.js} +1 -1
  178. package/runtime/webapp/dist/assets/{SessionDashboard-yjdEKypJ.js → SessionDashboard-kC_8_Bza.js} +2 -2
  179. package/runtime/webapp/dist/assets/{SessionDashboardBridge-Kc_1Et9r.js → SessionDashboardBridge-BqLN9MBj.js} +1 -1
  180. package/runtime/webapp/dist/assets/{SettingsPanel-t26XhKHP.js → SettingsPanel-CqQv2eK-.js} +1 -1
  181. package/runtime/webapp/dist/assets/{SkillManager-nZU7b1sc.js → SkillManager-Bu2BSH0G.js} +1 -1
  182. package/runtime/webapp/dist/assets/{TaskPaneTerminal-BPaCKman.js → TaskPaneTerminal-BdxQYNc6.js} +1 -1
  183. package/runtime/webapp/dist/assets/{TerminalPane-CiIpI1Id.js → TerminalPane-BvhhLZN1.js} +1 -1
  184. package/runtime/webapp/dist/assets/TodoPage-hbsap1E8.js +1 -0
  185. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DmKjGVfG.js → abnfDiagram-VCTEODGH-C_PdiEVZ.js} +1 -1
  186. package/runtime/webapp/dist/assets/agentroam-welcome-DTi8uo_x.webp +0 -0
  187. package/runtime/webapp/dist/assets/agentroam-welcome-speaking-Bjq6llMN.webp +0 -0
  188. package/runtime/webapp/dist/assets/{arc-D6bpvBke.js → arc-CWNpomsA.js} +1 -1
  189. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-NEKc2BYf.js → architectureDiagram-5GKGNRK7-BoOjl_r_.js} +1 -1
  190. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-V6G00twZ.js → blockDiagram-I7D4REHJ-vJ_8Ek3u.js} +1 -1
  191. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CojA33V5.js → c4Diagram-7LVT6UL2-DNA4gWKh.js} +1 -1
  192. package/runtime/webapp/dist/assets/{calendar-days-DXE_2mLa.js → calendar-days-D6jkCzJk.js} +1 -1
  193. package/runtime/webapp/dist/assets/channel-ComjzpL-.js +1 -0
  194. package/runtime/webapp/dist/assets/{check-UipgMBET.js → check-Dg_LqC82.js} +1 -1
  195. package/runtime/webapp/dist/assets/{chevron-down-Dvinwg2S.js → chevron-down-BEj7mlHA.js} +1 -1
  196. package/runtime/webapp/dist/assets/{chevron-right-BGU3tcLA.js → chevron-right-BJjvR4c0.js} +1 -1
  197. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-DObpPEgk.js → chunk-2Q5K7J3B-CZDhxDbY.js} +1 -1
  198. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-PaTzAg6w.js → chunk-5VM5RSS4-BnlDM5br.js} +1 -1
  199. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Pn4gut94.js → chunk-F27PBJKO-CB7O8_6v.js} +1 -1
  200. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-nRaVFzK9.js → chunk-IMKFNOWR-Bu3AW8DR.js} +1 -1
  201. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CxssjKKN.js → chunk-JWPE2WC7-CBQw1xgF.js} +1 -1
  202. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-CweDXr-B.js → chunk-POPQ4Y6H-Bun3CGx_.js} +1 -1
  203. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C7T3FGE-.js → chunk-SVP7TREG-XwWHVyss.js} +1 -1
  204. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Nc0H-0_V.js → chunk-TICWLB2K-B7j4XyQE.js} +1 -1
  205. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-D_GQGF5g.js → chunk-XXDRQBXY-C4ccrA1p.js} +1 -1
  206. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-CfdRqn0-.js +1 -0
  207. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-CfdRqn0-.js +1 -0
  208. package/runtime/webapp/dist/assets/{client-Bb0hpbIR.js → client-dnf9nxPX.js} +1 -1
  209. package/runtime/webapp/dist/assets/{codeSyntax-DHonp3tF.js → codeSyntax-BLQm8ta3.js} +1 -1
  210. package/runtime/webapp/dist/assets/{collaboration-e_iziKU1.js → collaboration-CJnVMp4H.js} +1 -1
  211. package/runtime/webapp/dist/assets/{composer-file-routing-CWyT7leB.js → composer-file-routing-DX7AUQpe.js} +2 -2
  212. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Ac_FBan4.js → cose-bilkent-JH36ORCC-610OTEmf.js} +1 -1
  213. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-vr6c389q.js → cynefin-OW5HDTMX-CM8PeVI5.js} +1 -1
  214. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-sXmUCrp_.js → cynefinDiagram-5FMLGOSQ-BY4mC_Y_.js} +1 -1
  215. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-B0DmGxDv.js → dagre-GXQ25YYZ-CW6OZxKS.js} +1 -1
  216. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Dn-2jJ6S.js → diagram-S7CK7UJ4-BaPMOaHo.js} +1 -1
  217. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-BcasYsju.js → diagram-UQ7AKVKN-BWIQcSBB.js} +1 -1
  218. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-DCgGkc82.js → diagram-VSXAHHWV-BwkS6jsR.js} +1 -1
  219. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-Cjs0Ny4i.js → diagram-VX7I27RA-B7rXbpbO.js} +1 -1
  220. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-0nyddp0v.js → diagram-Z3DM3KII-CrWfyJCt.js} +1 -1
  221. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-By7gCUsz.js → ebnfDiagram-PWID7BFC-DrpyBRGI.js} +1 -1
  222. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DdwBp45A.js → erDiagram-RLTQ6QDP-D0lubMB8.js} +1 -1
  223. package/runtime/webapp/dist/assets/{file-types-nujx8XUw.js → file-types-ovF7t8nV.js} +1 -1
  224. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DbOwRaT9.js → flowDiagram-HODETNUW-mXqeEtep.js} +1 -1
  225. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-CG8obc7O.js → ganttDiagram-EL5Y4UJY-DgaN-2yI.js} +1 -1
  226. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-ru6aSu_g.js → gitGraphDiagram-WWUBYQGX-DadHzOkE.js} +1 -1
  227. package/runtime/webapp/dist/assets/{history-DaBh5_SJ.js → history-2RoN6nWx.js} +1 -1
  228. package/runtime/webapp/dist/assets/{image-plus-Cm9jq1yo.js → image-plus-CXCEGNi1.js} +1 -1
  229. package/runtime/webapp/dist/assets/index-CpGyXlyq.js +500 -0
  230. package/runtime/webapp/dist/assets/index-DVbDWmLY.css +1 -0
  231. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Crx1iSbW.js → infoDiagram-27XIBGKW-BPI3rG8e.js} +1 -1
  232. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-ClQPMEk5.js → ishikawaDiagram-5VMMS53U-Cwhwp05P.js} +1 -1
  233. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DHso2Xht.js → journeyDiagram-3NMN7TZE-QeAIq98x.js} +1 -1
  234. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-D6psIAhv.js → kanban-definition-UXKFOSKX-BIV4KQ7w.js} +1 -1
  235. package/runtime/webapp/dist/assets/{layout-B6AVZ9v9.js → layout-DKTcc92n.js} +1 -1
  236. package/runtime/webapp/dist/assets/{linear-CEZOUjlB.js → linear-CpgQ-vzl.js} +1 -1
  237. package/runtime/webapp/dist/assets/{list-todo-D9ChIz0f.js → list-todo-D0DdvDdC.js} +1 -1
  238. package/runtime/webapp/dist/assets/{locate-fixed-2R48MVg_.js → locate-fixed-PoSWErYt.js} +1 -1
  239. package/runtime/webapp/dist/assets/{mermaid.core-DH0df9xk.js → mermaid.core-DPgekxsA.js} +5 -5
  240. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-QWt8leZC.js → mindmap-definition-YA3MSWOX-DScKRrns.js} +1 -1
  241. package/runtime/webapp/dist/assets/{mobileViewport-CKvpvxYc.js → mobileViewport-DoX18BIb.js} +1 -1
  242. package/runtime/webapp/dist/assets/new-session-window-DUUfKFZL.js +191 -0
  243. package/runtime/webapp/dist/assets/page-DLgrc2Gr.js +86 -0
  244. package/runtime/webapp/dist/assets/{pause-ddt7BLlm.js → pause-MzDWMIVk.js} +1 -1
  245. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-JNBt0nDx.js → pegDiagram-XKGWAZYB-CqPnfn9Z.js} +1 -1
  246. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-g0hnDqNp.js → pieDiagram-E7YTZNPT-Dj4dMQpn.js} +1 -1
  247. package/runtime/webapp/dist/assets/{pin-BTP5lC_c.js → pin-eP6N3HGu.js} +1 -1
  248. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-mLZASjSm.js → quadrantDiagram-AXDQQJYC-C0OXtsjw.js} +1 -1
  249. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CAXNAZhB.js → railroadDiagram-O6MQD6OU-CxmJTI75.js} +1 -1
  250. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-BC8y1ZXE.js → requirementDiagram-BXWQKSXE-D27ZD0hS.js} +1 -1
  251. package/runtime/webapp/dist/assets/{rotate-ccw-CHFTy38a.js → rotate-ccw-Dd67-fEX.js} +1 -1
  252. package/runtime/webapp/dist/assets/{rotate-cw-CFCtRFDl.js → rotate-cw-bCvV5qtp.js} +1 -1
  253. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-Boi5NPjT.js → sankeyDiagram-P5KCCOFB-BYXYPMbk.js} +1 -1
  254. package/runtime/webapp/dist/assets/{send-CzCncLlt.js → send-C3-_dAtW.js} +1 -1
  255. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-D4ccoVEB.js → sequenceDiagram-WJ2MYXX4-DjCzHsAJ.js} +1 -1
  256. package/runtime/webapp/dist/assets/{session-dashboard-C0KfSCDl.js → session-dashboard-B5GjyN-j.js} +1 -1
  257. package/runtime/webapp/dist/assets/{session-tree-CTzXmV6R.js → session-tree-gH5384IE.js} +1 -1
  258. package/runtime/webapp/dist/assets/{shield-check-Da6EGdIt.js → shield-check-BH6xSJDa.js} +1 -1
  259. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-Cd5jIVgK.js → sizeCapture-INFHLROL-C3V_IQDa.js} +1 -1
  260. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-DXlmaNwu.js → stateDiagram-D77RDMKH-SIlV9QsN.js} +1 -1
  261. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DBVpokaR.js +1 -0
  262. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-DyhRB_e0.js → swimlanes-42K2YHIH-B_lgpM0k.js} +1 -1
  263. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CBmcZlgw.js +8 -0
  264. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-Bkfs9Mi-.js → timeline-definition-24CTP7MA-CTMVRkSU.js} +1 -1
  265. package/runtime/webapp/dist/assets/{trash-2-C682LDDA.js → trash-2-BjV9I5RI.js} +1 -1
  266. package/runtime/webapp/dist/assets/{types-CfOuS-6l.js → types-BB9G1ZRH.js} +1 -1
  267. package/runtime/webapp/dist/assets/{use-session-activity-C9Cn92Hj.js → use-session-activity-CXZ-jSdd.js} +1 -1
  268. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-APWT64sw.js → vennDiagram-4TSXK5OY-CGMGxBWQ.js} +1 -1
  269. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-H7xLoxwM.js → wardleyDiagram-VM6X3IG4-B9lm4S79.js} +1 -1
  270. package/runtime/webapp/dist/assets/{web-DG022HwJ.js → web-BZLTjbMF.js} +1 -1
  271. package/runtime/webapp/dist/assets/{web-CT8e03DV.js → web-DBwe40Mg.js} +1 -1
  272. package/runtime/webapp/dist/assets/{loader-circle-CAHZbD5s.js → x-C0vSZPZg.js} +2 -2
  273. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js → xychartDiagram-S5SC5T6Z-D4dVIGis.js} +1 -1
  274. package/runtime/webapp/dist/assets/{zoom-out-CRN76HNZ.js → zoom-out-CwT1ni3i.js} +1 -1
  275. package/runtime/webapp/dist/index.html +2 -2
  276. package/runtime/.next/static/chunks/106.b2050e53421795af.js +0 -1
  277. package/runtime/.next/static/chunks/20.7bd5212774091396.js +0 -1
  278. package/runtime/.next/static/chunks/34.40a88b70750502fb.js +0 -1
  279. package/runtime/.next/static/chunks/753-90c7dd1ba08be9be.js +0 -1
  280. package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +0 -1
  281. package/runtime/.next/static/chunks/app/web/page-f008ab6dfeab7ce7.js +0 -1
  282. package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +0 -1
  283. package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +0 -1
  284. package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +0 -1
  285. package/runtime/webapp/dist/assets/App-BGIGpBp3.js +0 -68
  286. package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +0 -1
  287. package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +0 -1
  288. package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +0 -1
  289. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +0 -1
  290. package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +0 -5
  291. package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +0 -1
  292. package/runtime/webapp/dist/assets/NewSessionWindow-DOLG1XEp.css +0 -1
  293. package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +0 -1
  294. package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +0 -1
  295. package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +0 -1
  296. package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +0 -1
  297. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +0 -1
  298. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +0 -1
  299. package/runtime/webapp/dist/assets/index-BAGzBXQc.css +0 -1
  300. package/runtime/webapp/dist/assets/index-YrEOkxAg.js +0 -500
  301. package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +0 -191
  302. package/runtime/webapp/dist/assets/page-Cd9ci9uo.js +0 -86
  303. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +0 -1
  304. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +0 -8
  305. /package/runtime/.next/static/chunks/{3cc391f0-4ff886cecc4d6d79.js → 3cc391f0-6cd083946ece156d.js} +0 -0
  306. /package/runtime/.next/static/chunks/app/_not-found/{page-c0fc9b6684d4f0ca.js → page-cffe4d626dcef5fd.js} +0 -0
  307. /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_buildManifest.js +0 -0
  308. /package/runtime/.next/static/{_rMvYWpbWkNWrFkCQx3rK → edQT7mZJvA1tWdwiMLtSI}/_ssgManifest.js +0 -0
@@ -2248,7 +2248,7 @@ var EAC3_REDUCED_SAMPLE_RATES = [24e3, 22050, 16e3];
2248
2248
  var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
2249
2249
 
2250
2250
  // src/version.ts
2251
- var VERSION = "1.66.4";
2251
+ var VERSION = "1.66.5";
2252
2252
  var VERSIONED_NAME = `Mediabunny v${VERSION}`;
2253
2253
 
2254
2254
  // src/codec-data.ts
@@ -9396,9 +9396,17 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
9396
9396
  if (this.movieTimescale === -1) {
9397
9397
  throw new Error("Invalid moov box: missing mvhd box.");
9398
9398
  }
9399
+ const iTunSmpb = this.metadataTags.raw?.["iTunSMPB"];
9399
9400
  for (const track of this.tracks) {
9401
+ if (typeof iTunSmpb === "string" && track.info?.type === "audio" && track.info.codec === "aac" && track.timestampOffset === 0) {
9402
+ const priming = Number.parseInt(iTunSmpb.trim().split(/\s+/)[1] ?? "", 16);
9403
+ if (priming > 0) {
9404
+ const primingInSeconds = priming / track.info.sampleRate;
9405
+ track.timestampOffset = Math.round(primingInSeconds * track.timescale);
9406
+ }
9407
+ }
9400
9408
  const previousSegmentDurationsInSeconds = track.editListPreviousSegmentDurations / this.movieTimescale;
9401
- track.editListOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
9409
+ track.timestampOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
9402
9410
  }
9403
9411
  lookForMfraBox = this.isFragmented && this.reader.fileSize !== null && this.reader.fileSize > startPos + boxInfo.totalSize;
9404
9412
  foundMovieBoxes = true;
@@ -9492,7 +9500,7 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
9492
9500
  fragmentLookupTable: [],
9493
9501
  fragmentPositionCache: [],
9494
9502
  editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
9495
- editListOffset: foreignTrack.editListOffset,
9503
+ timestampOffset: foreignTrack.timestampOffset,
9496
9504
  encryptionInfo: foreignTrack.encryptionInfo,
9497
9505
  encryptionAuxInfo: null,
9498
9506
  frmaCodecString: null,
@@ -9869,7 +9877,7 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
9869
9877
  fragmentLookupTable: [],
9870
9878
  fragmentPositionCache: [],
9871
9879
  editListPreviousSegmentDurations: 0,
9872
- editListOffset: 0,
9880
+ timestampOffset: 0,
9873
9881
  encryptionInfo: null,
9874
9882
  encryptionAuxInfo: null,
9875
9883
  frmaCodecString: null,
@@ -9954,7 +9962,7 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
9954
9962
  break;
9955
9963
  }
9956
9964
  track.editListPreviousSegmentDurations = previousSegmentDurations;
9957
- track.editListOffset = mediaTime;
9965
+ track.timestampOffset = mediaTime;
9958
9966
  relevantEntryFound = true;
9959
9967
  }
9960
9968
  }
@@ -11559,7 +11567,30 @@ var IsobmffDemuxer = class _IsobmffDemuxer extends Demuxer {
11559
11567
  if (this.currentMetadataKeys.has(nameAsNumber)) {
11560
11568
  metadataKey = this.currentMetadataKeys.get(nameAsNumber);
11561
11569
  }
11562
- const data = readDataBox(slice2);
11570
+ let data = null;
11571
+ if (metadataKey === "----") {
11572
+ let name = null;
11573
+ const freeformSlice = slice2.slice(slice2.filePos, boxInfo2.contentSize);
11574
+ const childIterator = this.iterateContiguousBoxes(freeformSlice);
11575
+ for (const { boxInfo: childBoxInfo, slice: childSlice } of childIterator) {
11576
+ if (childBoxInfo.name === "name" && name === null) {
11577
+ if (childBoxInfo.contentSize < 4) {
11578
+ throw new Error("Invalid 'name' box: too small.");
11579
+ }
11580
+ childSlice.skip(4);
11581
+ name = textDecoder.decode(readBytes(childSlice, childBoxInfo.contentSize - 4));
11582
+ } else if (childBoxInfo.name === "data" && data === null) {
11583
+ childSlice.filePos -= childBoxInfo.headerSize;
11584
+ data = readDataBox(childSlice);
11585
+ }
11586
+ }
11587
+ if (name === null) {
11588
+ continue;
11589
+ }
11590
+ metadataKey = name;
11591
+ } else {
11592
+ data = readDataBox(slice2);
11593
+ }
11563
11594
  this.metadataTags.raw ??= {};
11564
11595
  this.metadataTags.raw[metadataKey] ??= data;
11565
11596
  switch (metadataKey) {
@@ -11828,7 +11859,7 @@ var IsobmffTrackBacking = class {
11828
11859
  return this.fetchFirstFragmentedPacket(false, options);
11829
11860
  }
11830
11861
  mapTimestampIntoTimescale(timestamp) {
11831
- return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.editListOffset;
11862
+ return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.timestampOffset;
11832
11863
  }
11833
11864
  async getPacket(timestamp, options) {
11834
11865
  const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
@@ -12059,7 +12090,7 @@ var IsobmffTrackBacking = class {
12059
12090
  }
12060
12091
  }
12061
12092
  }
12062
- const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12093
+ const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12063
12094
  const duration = sampleInfo.duration / this.internalTrack.timescale;
12064
12095
  const packet = new EncodedPacket(
12065
12096
  data,
@@ -12106,7 +12137,7 @@ var IsobmffTrackBacking = class {
12106
12137
  }
12107
12138
  }
12108
12139
  }
12109
- const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12140
+ const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12110
12141
  const duration = fragmentSample.duration / this.internalTrack.timescale;
12111
12142
  const packet = new EncodedPacket(
12112
12143
  data,
@@ -12223,7 +12254,7 @@ var IsobmffTrackBacking = class {
12223
12254
  size: samplePacket.data.byteLength,
12224
12255
  blockCount: 6
12225
12256
  }];
12226
- const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12257
+ const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12227
12258
  let match = null;
12228
12259
  let previousPacket = null;
12229
12260
  let blocksBefore = 0;
@@ -2402,7 +2402,7 @@ var Mediabunny = (() => {
2402
2402
  var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
2403
2403
 
2404
2404
  // src/version.ts
2405
- var VERSION = "1.66.4";
2405
+ var VERSION = "1.66.5";
2406
2406
  var VERSIONED_NAME = `Mediabunny v${VERSION}`;
2407
2407
 
2408
2408
  // src/codec-data.ts
@@ -9550,9 +9550,17 @@ var Mediabunny = (() => {
9550
9550
  if (this.movieTimescale === -1) {
9551
9551
  throw new Error("Invalid moov box: missing mvhd box.");
9552
9552
  }
9553
+ const iTunSmpb = this.metadataTags.raw?.["iTunSMPB"];
9553
9554
  for (const track of this.tracks) {
9555
+ if (typeof iTunSmpb === "string" && track.info?.type === "audio" && track.info.codec === "aac" && track.timestampOffset === 0) {
9556
+ const priming = Number.parseInt(iTunSmpb.trim().split(/\s+/)[1] ?? "", 16);
9557
+ if (priming > 0) {
9558
+ const primingInSeconds = priming / track.info.sampleRate;
9559
+ track.timestampOffset = Math.round(primingInSeconds * track.timescale);
9560
+ }
9561
+ }
9554
9562
  const previousSegmentDurationsInSeconds = track.editListPreviousSegmentDurations / this.movieTimescale;
9555
- track.editListOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
9563
+ track.timestampOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
9556
9564
  }
9557
9565
  lookForMfraBox = this.isFragmented && this.reader.fileSize !== null && this.reader.fileSize > startPos + boxInfo.totalSize;
9558
9566
  foundMovieBoxes = true;
@@ -9646,7 +9654,7 @@ var Mediabunny = (() => {
9646
9654
  fragmentLookupTable: [],
9647
9655
  fragmentPositionCache: [],
9648
9656
  editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
9649
- editListOffset: foreignTrack.editListOffset,
9657
+ timestampOffset: foreignTrack.timestampOffset,
9650
9658
  encryptionInfo: foreignTrack.encryptionInfo,
9651
9659
  encryptionAuxInfo: null,
9652
9660
  frmaCodecString: null,
@@ -10023,7 +10031,7 @@ var Mediabunny = (() => {
10023
10031
  fragmentLookupTable: [],
10024
10032
  fragmentPositionCache: [],
10025
10033
  editListPreviousSegmentDurations: 0,
10026
- editListOffset: 0,
10034
+ timestampOffset: 0,
10027
10035
  encryptionInfo: null,
10028
10036
  encryptionAuxInfo: null,
10029
10037
  frmaCodecString: null,
@@ -10108,7 +10116,7 @@ var Mediabunny = (() => {
10108
10116
  break;
10109
10117
  }
10110
10118
  track.editListPreviousSegmentDurations = previousSegmentDurations;
10111
- track.editListOffset = mediaTime;
10119
+ track.timestampOffset = mediaTime;
10112
10120
  relevantEntryFound = true;
10113
10121
  }
10114
10122
  }
@@ -11713,7 +11721,30 @@ var Mediabunny = (() => {
11713
11721
  if (this.currentMetadataKeys.has(nameAsNumber)) {
11714
11722
  metadataKey = this.currentMetadataKeys.get(nameAsNumber);
11715
11723
  }
11716
- const data = readDataBox(slice2);
11724
+ let data = null;
11725
+ if (metadataKey === "----") {
11726
+ let name = null;
11727
+ const freeformSlice = slice2.slice(slice2.filePos, boxInfo2.contentSize);
11728
+ const childIterator = this.iterateContiguousBoxes(freeformSlice);
11729
+ for (const { boxInfo: childBoxInfo, slice: childSlice } of childIterator) {
11730
+ if (childBoxInfo.name === "name" && name === null) {
11731
+ if (childBoxInfo.contentSize < 4) {
11732
+ throw new Error("Invalid 'name' box: too small.");
11733
+ }
11734
+ childSlice.skip(4);
11735
+ name = textDecoder.decode(readBytes(childSlice, childBoxInfo.contentSize - 4));
11736
+ } else if (childBoxInfo.name === "data" && data === null) {
11737
+ childSlice.filePos -= childBoxInfo.headerSize;
11738
+ data = readDataBox(childSlice);
11739
+ }
11740
+ }
11741
+ if (name === null) {
11742
+ continue;
11743
+ }
11744
+ metadataKey = name;
11745
+ } else {
11746
+ data = readDataBox(slice2);
11747
+ }
11717
11748
  this.metadataTags.raw ??= {};
11718
11749
  this.metadataTags.raw[metadataKey] ??= data;
11719
11750
  switch (metadataKey) {
@@ -11982,7 +12013,7 @@ var Mediabunny = (() => {
11982
12013
  return this.fetchFirstFragmentedPacket(false, options);
11983
12014
  }
11984
12015
  mapTimestampIntoTimescale(timestamp) {
11985
- return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.editListOffset;
12016
+ return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.timestampOffset;
11986
12017
  }
11987
12018
  async getPacket(timestamp, options) {
11988
12019
  const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
@@ -12213,7 +12244,7 @@ var Mediabunny = (() => {
12213
12244
  }
12214
12245
  }
12215
12246
  }
12216
- const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12247
+ const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12217
12248
  const duration = sampleInfo.duration / this.internalTrack.timescale;
12218
12249
  const packet = new EncodedPacket(
12219
12250
  data,
@@ -12260,7 +12291,7 @@ var Mediabunny = (() => {
12260
12291
  }
12261
12292
  }
12262
12293
  }
12263
- const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12294
+ const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12264
12295
  const duration = fragmentSample.duration / this.internalTrack.timescale;
12265
12296
  const packet = new EncodedPacket(
12266
12297
  data,
@@ -12377,7 +12408,7 @@ var Mediabunny = (() => {
12377
12408
  size: samplePacket.data.byteLength,
12378
12409
  blockCount: 6
12379
12410
  }];
12380
- const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.editListOffset) / this.internalTrack.timescale;
12411
+ const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
12381
12412
  let match = null;
12382
12413
  let previousPacket = null;
12383
12414
  let blocksBefore = 0;
@@ -103,11 +103,24 @@ export class IsobmffDemuxer extends Demuxer {
103
103
  if (this.movieTimescale === -1) {
104
104
  throw new Error('Invalid moov box: missing mvhd box.');
105
105
  }
106
+ // A special metadata tag used by iTunes to communicate priming delay and other things
107
+ const iTunSmpb = this.metadataTags.raw?.['iTunSMPB'];
106
108
  for (const track of this.tracks) {
107
- // Modify the edit list offset based on the previous segment durations. They are in different
108
- // timescales, so we first convert to seconds and then into the track timescale.
109
+ if (typeof iTunSmpb === 'string'
110
+ && track.info?.type === 'audio'
111
+ && track.info.codec === 'aac'
112
+ && track.timestampOffset === 0 // Only apply it if we don't already have an offset
113
+ ) {
114
+ const priming = Number.parseInt(iTunSmpb.trim().split(/\s+/)[1] ?? '', 16);
115
+ if (priming > 0) {
116
+ const primingInSeconds = priming / track.info.sampleRate;
117
+ track.timestampOffset = Math.round(primingInSeconds * track.timescale);
118
+ }
119
+ }
120
+ // Modify the timestamp offset based on the previous edit list segment durations. They are in
121
+ // different timescales, so we first convert to seconds and then into the track timescale.
109
122
  const previousSegmentDurationsInSeconds = track.editListPreviousSegmentDurations / this.movieTimescale;
110
- track.editListOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
123
+ track.timestampOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
111
124
  }
112
125
  lookForMfraBox = this.isFragmented
113
126
  && this.reader.fileSize !== null
@@ -209,7 +222,7 @@ export class IsobmffDemuxer extends Demuxer {
209
222
  fragmentLookupTable: [],
210
223
  fragmentPositionCache: [],
211
224
  editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
212
- editListOffset: foreignTrack.editListOffset,
225
+ timestampOffset: foreignTrack.timestampOffset,
213
226
  encryptionInfo: foreignTrack.encryptionInfo,
214
227
  encryptionAuxInfo: null,
215
228
  frmaCodecString: null,
@@ -617,7 +630,7 @@ export class IsobmffDemuxer extends Demuxer {
617
630
  fragmentLookupTable: [],
618
631
  fragmentPositionCache: [],
619
632
  editListPreviousSegmentDurations: 0,
620
- editListOffset: 0,
633
+ timestampOffset: 0,
621
634
  encryptionInfo: null,
622
635
  encryptionAuxInfo: null,
623
636
  frmaCodecString: null,
@@ -714,7 +727,7 @@ export class IsobmffDemuxer extends Demuxer {
714
727
  break;
715
728
  }
716
729
  track.editListPreviousSegmentDurations = previousSegmentDurations;
717
- track.editListOffset = mediaTime;
730
+ track.timestampOffset = mediaTime;
718
731
  relevantEntryFound = true;
719
732
  }
720
733
  }
@@ -2470,7 +2483,33 @@ export class IsobmffDemuxer extends Demuxer {
2470
2483
  // An entry exists for this number
2471
2484
  metadataKey = this.currentMetadataKeys.get(nameAsNumber);
2472
2485
  }
2473
- const data = readDataBox(slice);
2486
+ let data = null;
2487
+ if (metadataKey === '----') {
2488
+ // Freeform atom, made up of a 'mean' (namespace), a 'name' and a 'data' atom
2489
+ let name = null;
2490
+ const freeformSlice = slice.slice(slice.filePos, boxInfo.contentSize);
2491
+ const childIterator = this.iterateContiguousBoxes(freeformSlice);
2492
+ for (const { boxInfo: childBoxInfo, slice: childSlice } of childIterator) {
2493
+ if (childBoxInfo.name === 'name' && name === null) {
2494
+ if (childBoxInfo.contentSize < 4) {
2495
+ throw new Error('Invalid \'name\' box: too small.');
2496
+ }
2497
+ childSlice.skip(4); // Version + flags
2498
+ name = textDecoder.decode(readBytes(childSlice, childBoxInfo.contentSize - 4));
2499
+ }
2500
+ else if (childBoxInfo.name === 'data' && data === null) {
2501
+ childSlice.filePos -= childBoxInfo.headerSize;
2502
+ data = readDataBox(childSlice);
2503
+ }
2504
+ }
2505
+ if (name === null) {
2506
+ continue;
2507
+ }
2508
+ metadataKey = name;
2509
+ }
2510
+ else {
2511
+ data = readDataBox(slice);
2512
+ }
2474
2513
  this.metadataTags.raw ??= {};
2475
2514
  this.metadataTags.raw[metadataKey] ??= data;
2476
2515
  switch (metadataKey) {
@@ -2747,7 +2786,7 @@ class IsobmffTrackBacking {
2747
2786
  // Do a little rounding to catch cases where the result is very close to an integer. If it is, it's likely
2748
2787
  // that the number was originally an integer divided by the timescale. For stability, it's best
2749
2788
  // to return the integer in this case.
2750
- return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.editListOffset;
2789
+ return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.timestampOffset;
2751
2790
  }
2752
2791
  async getPacket(timestamp, options) {
2753
2792
  const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
@@ -2948,7 +2987,7 @@ class IsobmffTrackBacking {
2948
2987
  }
2949
2988
  }
2950
2989
  }
2951
- const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.editListOffset)
2990
+ const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.timestampOffset)
2952
2991
  / this.internalTrack.timescale;
2953
2992
  const duration = sampleInfo.duration / this.internalTrack.timescale;
2954
2993
  const packet = new EncodedPacket(data, sampleInfo.isKeyFrame ? 'key' : 'delta', timestamp, duration, sampleIndex, sampleInfo.sampleSize);
@@ -2989,7 +3028,7 @@ class IsobmffTrackBacking {
2989
3028
  }
2990
3029
  }
2991
3030
  }
2992
- const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.editListOffset)
3031
+ const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.timestampOffset)
2993
3032
  / this.internalTrack.timescale;
2994
3033
  const duration = fragmentSample.duration / this.internalTrack.timescale;
2995
3034
  const packet = new EncodedPacket(data, fragmentSample.isKeyFrame ? 'key' : 'delta', timestamp, duration, fragment.moofOffset + sampleIndex, fragmentSample.byteSize);
@@ -3127,7 +3166,7 @@ class IsobmffTrackBacking {
3127
3166
  size: samplePacket.data.byteLength,
3128
3167
  blockCount: 6,
3129
3168
  }];
3130
- const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.editListOffset)
3169
+ const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.timestampOffset)
3131
3170
  / this.internalTrack.timescale;
3132
3171
  let match = null;
3133
3172
  let previousPacket = null;