allyhub 0.8.0 → 0.10.0

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 (1719) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +122 -42
  3. package/client.d.ts +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +4 -4
  6. package/dist/commands/auth.js +4 -4
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +13 -7
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +2 -0
  11. package/dist/commands/dev.js +2 -2
  12. package/dist/commands/doctor.js +4 -4
  13. package/dist/commands/extensions.js +3 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/compare.js +2 -2
  16. package/dist/commands/frames/cuts.js +1 -1
  17. package/dist/commands/frames/doc.js +1 -1
  18. package/dist/commands/frames/overlay.js +2 -0
  19. package/dist/commands/frames/piece.js +1 -1
  20. package/dist/commands/frames/sheet.js +1 -1
  21. package/dist/commands/frames.js +9 -9
  22. package/dist/commands/index.js +1 -1
  23. package/dist/commands/inspect/combos.js +2 -2
  24. package/dist/commands/inspect/common.js +4 -2
  25. package/dist/commands/inspect/facts.js +3 -3
  26. package/dist/commands/inspect/index.js +1 -1
  27. package/dist/commands/inspect/layout.js +1 -1
  28. package/dist/commands/inspect/views.js +2 -0
  29. package/dist/commands/mail.js +9 -0
  30. package/dist/commands/orgs.js +2 -2
  31. package/dist/commands/render.js +2 -2
  32. package/dist/fields.js +1 -1
  33. package/dist/help.js +4 -4
  34. package/dist/main.js +8 -7
  35. package/dist/media.js +1 -1
  36. package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
  37. package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
  38. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
  39. package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
  40. package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
  41. package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
  42. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
  43. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
  44. package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
  45. package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
  46. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
  47. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
  48. package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
  49. package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
  50. package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
  51. package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
  52. package/dist/node_modules/@allyhub/3d-extension/package.json +327 -0
  53. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  54. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  55. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  56. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
  57. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
  58. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
  59. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
  60. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
  61. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
  62. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
  63. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
  64. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
  65. package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
  66. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
  69. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
  70. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
  71. package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
  72. package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
  73. package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
  74. package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
  75. package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
  76. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
  77. package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
  78. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
  79. package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
  80. package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
  81. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
  82. package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
  83. package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
  84. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  85. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
  86. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
  87. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
  88. package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
  89. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
  90. package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
  91. package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
  92. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  93. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
  94. package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
  95. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
  96. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
  97. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
  98. package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
  99. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
  100. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
  101. package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
  102. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
  103. package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
  104. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
  105. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  106. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
  107. package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
  108. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
  109. package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
  110. package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
  111. package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
  112. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
  113. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  114. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
  115. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
  116. package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
  117. package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
  118. package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
  119. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
  120. package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
  121. package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
  122. package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
  123. package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
  124. package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
  125. package/dist/node_modules/@allyhub/build/package.json +1 -1
  126. package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
  127. package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
  128. package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
  129. package/dist/node_modules/@allyhub/canvas-extension/package.json +107 -0
  130. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +7 -0
  131. package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
  132. package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
  133. package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
  134. package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
  135. package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
  136. package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
  137. package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
  138. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  139. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  140. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  141. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  142. package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
  143. package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
  144. package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
  145. package/dist/node_modules/@allyhub/check/package.json +1 -1
  146. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
  147. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
  148. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  149. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
  150. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +53 -0
  151. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  152. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +34 -0
  153. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  154. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
  155. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  156. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  157. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  158. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
  159. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  160. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
  161. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
  162. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  163. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
  164. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
  165. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
  166. package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
  167. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
  168. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
  169. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
  170. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
  171. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
  172. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
  173. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  174. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
  175. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
  176. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  177. package/dist/node_modules/@allyhub/components/package.json +1 -1
  178. package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
  179. package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
  180. package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
  181. package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
  182. package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
  183. package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
  184. package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
  185. package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
  186. package/dist/node_modules/@allyhub/components/registry.json +6 -0
  187. package/dist/node_modules/@allyhub/components/src/callout.ts +165 -4
  188. package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
  189. package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
  190. package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
  191. package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
  192. package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
  193. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  194. package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
  195. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  196. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  197. package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
  198. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  199. package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
  200. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  201. package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
  202. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  203. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
  204. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  205. package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
  206. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  207. package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
  208. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  209. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  210. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
  211. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  212. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  213. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  214. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  215. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  216. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  217. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  218. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  219. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  220. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  221. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  222. package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
  223. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  224. package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
  225. package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
  226. package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
  227. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  228. package/dist/node_modules/@allyhub/doc/dist/html.js +247 -57
  229. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  230. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  231. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  232. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
  233. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  234. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  235. package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
  236. package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
  237. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  238. package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
  239. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
  240. package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
  241. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
  242. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
  243. package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
  244. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
  245. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
  246. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
  247. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
  248. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
  249. package/dist/node_modules/@allyhub/doc-extension/package.json +202 -0
  250. package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
  251. package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
  252. package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
  253. package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
  254. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
  255. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
  256. package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
  257. package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
  258. package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
  259. package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
  260. package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
  261. package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
  262. package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
  263. package/dist/node_modules/@allyhub/export/package.json +1 -1
  264. package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
  265. package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
  266. package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
  267. package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
  268. package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
  269. package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
  270. package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
  271. package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
  272. package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
  273. package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
  274. package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
  275. package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
  276. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  277. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  278. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  279. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  280. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  281. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  282. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  283. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  284. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  285. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  286. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  287. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  288. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  289. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  290. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  291. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  292. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  293. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  294. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  295. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  296. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  297. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  298. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  299. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  300. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  301. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  302. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  303. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  304. package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
  305. package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
  306. package/dist/node_modules/@allyhub/i18n/package.json +13 -0
  307. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  308. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  309. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  310. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  311. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  312. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  313. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  314. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  315. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  316. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  317. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  318. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  319. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  320. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  321. package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
  322. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
  323. package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
  324. package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
  325. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
  326. package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
  327. package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
  328. package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
  329. package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
  330. package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
  331. package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
  332. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
  333. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
  334. package/dist/node_modules/@allyhub/image-extension/package.json +291 -0
  335. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +12 -0
  336. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  337. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  338. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  339. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  340. package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
  341. package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
  342. package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
  343. package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
  344. package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
  345. package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
  346. package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
  347. package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
  348. package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
  349. package/dist/node_modules/@allyhub/image-render/package.json +14 -0
  350. package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
  351. package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
  352. package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
  353. package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
  354. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
  355. package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
  356. package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
  357. package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
  358. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  359. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  360. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  361. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  362. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  363. package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
  364. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  365. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  366. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  367. package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
  368. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  369. package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
  370. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  371. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  372. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  373. package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
  374. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  375. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  376. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
  377. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
  378. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
  379. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  380. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  381. package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
  382. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  383. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  384. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  385. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  386. package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
  387. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  388. package/dist/node_modules/@allyhub/media/NOTICE +1 -42
  389. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
  390. package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
  391. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
  392. package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
  393. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
  394. package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
  395. package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
  396. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
  397. package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
  398. package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
  399. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
  400. package/dist/node_modules/@allyhub/media/package.json +1 -1
  401. package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
  402. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
  403. package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
  404. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
  405. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
  406. package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
  407. package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
  408. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
  409. package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
  410. package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
  411. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
  412. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
  413. package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
  414. package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
  415. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
  416. package/dist/node_modules/@allyhub/media-extension/package.json +65 -0
  417. package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
  418. package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
  419. package/dist/node_modules/@allyhub/model/package.json +1 -1
  420. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  421. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  422. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  423. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  424. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  425. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  426. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  427. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  428. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  429. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  430. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  431. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  432. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  433. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  434. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  435. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  436. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  437. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  438. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  439. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  440. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  441. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  442. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  443. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  444. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  445. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  446. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  447. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  448. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  449. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  450. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  451. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  452. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  453. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  454. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  455. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  456. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  457. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  458. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  459. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  460. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  461. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  462. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  463. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  464. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  465. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  466. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  467. package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
  468. package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
  469. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  470. package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
  471. package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
  472. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  473. package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
  474. package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
  475. package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
  476. package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
  477. package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
  478. package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
  479. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  480. package/dist/node_modules/@allyhub/project/package.json +1 -1
  481. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  482. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  483. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  484. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  485. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  486. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  487. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  488. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  489. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  490. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  491. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  492. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  493. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  494. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  495. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  496. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  497. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  498. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  499. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  500. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  501. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  502. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  503. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  504. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  505. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  506. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  507. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  508. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  509. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  510. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  511. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  512. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  513. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  514. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  515. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  516. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  517. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  518. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  519. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  520. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  521. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  522. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  523. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  524. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  525. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  526. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  527. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  528. package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
  529. package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
  530. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  531. package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
  532. package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
  533. package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
  534. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  535. package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
  536. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  537. package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
  538. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  539. package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
  540. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  541. package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
  542. package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
  543. package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
  544. package/dist/node_modules/@allyhub/render/package.json +1 -5
  545. package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
  546. package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
  547. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  548. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  549. package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
  550. package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
  551. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  552. package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
  553. package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
  554. package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
  555. package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
  556. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  557. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  558. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  559. package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
  560. package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
  561. package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
  562. package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
  563. package/dist/node_modules/@allyhub/runtime/package.json +1 -5
  564. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  565. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  566. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  567. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  568. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  569. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  570. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  571. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  572. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  573. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  574. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  575. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  576. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
  577. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  578. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  579. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  580. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  581. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  582. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  583. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  584. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  585. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  586. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  587. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
  588. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
  589. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
  590. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
  591. package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
  592. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
  593. package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
  594. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  595. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  596. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +6 -5
  597. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  598. package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
  599. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +2 -2
  600. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  601. package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
  602. package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
  603. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
  604. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  605. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
  606. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
  607. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  608. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  609. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
  610. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
  611. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
  612. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
  613. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
  614. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
  615. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
  616. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
  617. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
  618. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
  619. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
  620. package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
  621. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  622. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  623. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  624. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  625. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  626. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  627. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  628. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  629. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  630. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  631. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  632. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  633. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  634. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  635. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  636. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  637. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  638. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  639. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  640. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  641. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  642. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  643. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  644. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  645. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  646. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  647. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  648. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  649. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  650. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  651. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  652. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  653. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  654. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  655. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  656. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  657. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  658. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  659. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  660. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  661. package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
  662. package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
  663. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
  664. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
  665. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
  666. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
  667. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
  668. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
  669. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
  670. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
  671. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
  672. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
  673. package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
  674. package/dist/node_modules/@allyhub/sheet-extension/package.json +228 -0
  675. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  676. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  677. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  678. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  679. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  680. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  681. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  682. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  683. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  684. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  685. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  686. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  687. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  688. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  689. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  690. package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
  691. package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
  692. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
  693. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
  694. package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
  695. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
  696. package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
  697. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
  698. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
  699. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
  700. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
  701. package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
  702. package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
  703. package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
  704. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
  705. package/dist/node_modules/@allyhub/slides-extension/package.json +265 -0
  706. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  707. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  708. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  709. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  710. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
  711. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  712. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  713. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  714. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  715. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  716. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  717. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  718. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  719. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  720. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  721. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  722. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  723. package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
  724. package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
  725. package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
  726. package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
  727. package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
  728. package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
  729. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  730. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  731. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  732. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  733. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  734. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  735. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  736. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  737. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  738. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  739. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  740. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  741. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  742. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  743. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  744. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  745. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  746. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  747. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  748. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  749. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  750. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  751. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  752. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  753. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  754. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  755. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  756. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  757. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  758. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  759. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  760. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  761. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  762. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  763. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  764. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  765. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  766. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  767. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  768. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  769. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  770. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  771. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  772. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  773. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  774. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  775. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  776. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  777. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  778. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  779. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  780. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  781. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  782. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  783. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  784. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  785. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  786. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  787. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  788. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  789. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  790. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  791. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  792. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  793. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  794. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  795. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  796. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  797. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  798. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  799. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  800. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  801. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  802. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  803. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  804. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  805. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  806. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  807. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  808. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  809. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  810. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  811. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  812. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  813. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  814. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  815. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  816. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  817. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  818. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  819. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  820. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  821. package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
  822. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  823. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  824. package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
  825. package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
  826. package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
  827. package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
  828. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
  829. package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
  830. package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
  831. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  832. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  833. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  834. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  835. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  836. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  837. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  838. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  839. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  840. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  841. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  842. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  843. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  844. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  845. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  846. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  847. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  848. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  849. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  850. package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
  851. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
  852. package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
  853. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
  854. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
  855. package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
  856. package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
  857. package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
  858. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
  859. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
  860. package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
  861. package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
  862. package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
  863. package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
  864. package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
  865. package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
  866. package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
  867. package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
  868. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
  869. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
  870. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
  871. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
  872. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
  873. package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
  874. package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
  875. package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
  876. package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
  877. package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
  878. package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
  879. package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
  880. package/dist/node_modules/@allyhub/video-extension/package.json +469 -0
  881. package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
  882. package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
  883. package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
  884. package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
  885. package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
  886. package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
  887. package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
  888. package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
  889. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
  890. package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
  891. package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
  892. package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
  893. package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
  894. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
  895. package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
  896. package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
  897. package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
  898. package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
  899. package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
  900. package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
  901. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  902. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  903. package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
  904. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  905. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  906. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  907. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  908. package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
  909. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  910. package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
  911. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  912. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  913. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  914. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  915. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  916. package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
  917. package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
  918. package/dist/node_modules/@allyhub/website/package.json +1 -1
  919. package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
  920. package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
  921. package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
  922. package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
  923. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  924. package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
  925. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
  926. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +25 -0
  927. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
  928. package/dist/node_modules/@allyhub/website-extension/package.json +199 -0
  929. package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
  930. package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
  931. package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
  932. package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
  933. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
  934. package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
  935. package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
  936. package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
  937. package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
  938. package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
  939. package/dist/node_modules/@allyhub/x-extension/package.json +307 -0
  940. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +12 -0
  941. package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
  942. package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
  943. package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
  944. package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
  945. package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
  946. package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
  947. package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
  948. package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
  949. package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
  950. package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
  951. package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
  952. package/dist/node_modules/@allyhub/x-model/package.json +14 -0
  953. package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
  954. package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
  955. package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
  956. package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
  957. package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
  958. package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
  959. package/dist/node_modules/@allyhub/x-view/package.json +21 -0
  960. package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
  961. package/dist/package.json +16 -0
  962. package/dist/parameters.js +1 -1
  963. package/dist/presence.js +2 -0
  964. package/dist/project.js +1 -1
  965. package/dist/sdk-docs.js +1 -1
  966. package/dist/text/batch-text.js +1 -1
  967. package/dist/text/console-text.js +1 -1
  968. package/dist/text/facts-text.js +5 -5
  969. package/dist/text/format.js +2 -2
  970. package/dist/text/index.js +1 -1
  971. package/dist/text/long-text.js +4 -0
  972. package/dist/tool-options.js +1 -1
  973. package/dist/version.js +1 -1
  974. package/dist/works.js +1 -1
  975. package/editor-web/assets/abnfDiagram-WEYOIA3C-CjAmWsNR.js +1 -0
  976. package/editor-web/assets/alt-DnBZJzEh.js +4 -0
  977. package/editor-web/assets/architecture-WOLXFQ4H-DeeKhyhZ.js +1 -0
  978. package/editor-web/assets/architectureDiagram-ZHVYKT53-b32qTaJg.js +36 -0
  979. package/editor-web/assets/arrow-up-L4YV_65f.js +1 -0
  980. package/editor-web/assets/article-DLMjAdbP.js +73 -0
  981. package/editor-web/assets/audio-lines-BFcM7G2L.js +1 -0
  982. package/editor-web/assets/blockDiagram-RJAE7QA3-BNbnMNmw.js +140 -0
  983. package/editor-web/assets/button-Chk675Xu.js +41 -0
  984. package/editor-web/assets/c4Diagram-XDPPPE54-BEuemvMw.js +38 -0
  985. package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
  986. package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
  987. package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
  988. package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
  989. package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
  990. package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
  991. package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
  992. package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
  993. package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
  994. package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
  995. package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
  996. package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
  997. package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
  998. package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
  999. package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
  1000. package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
  1001. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  1002. package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
  1003. package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
  1004. package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
  1005. package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
  1006. package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
  1007. package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
  1008. package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
  1009. package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
  1010. package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
  1011. package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
  1012. package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
  1013. package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
  1014. package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
  1015. package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
  1016. package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
  1017. package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
  1018. package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
  1019. package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
  1020. package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
  1021. package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
  1022. package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
  1023. package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
  1024. package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
  1025. package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
  1026. package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
  1027. package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
  1028. package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
  1029. package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
  1030. package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
  1031. package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
  1032. package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
  1033. package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
  1034. package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
  1035. package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
  1036. package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
  1037. package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
  1038. package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
  1039. package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
  1040. package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
  1041. package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
  1042. package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
  1043. package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
  1044. package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
  1045. package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
  1046. package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
  1047. package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
  1048. package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
  1049. package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
  1050. package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
  1051. package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
  1052. package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
  1053. package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
  1054. package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
  1055. package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
  1056. package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
  1057. package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
  1058. package/editor-web/assets/channel-EzYq4r0d.js +1 -0
  1059. package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
  1060. package/editor-web/assets/choice-BgmBh4yu.js +1 -0
  1061. package/editor-web/assets/chunk-2E7WHVMD-Zb5nPx_e.js +88 -0
  1062. package/editor-web/assets/chunk-4EMNKR2T-DSEM2reX.js +1 -0
  1063. package/editor-web/assets/chunk-55XCU76K-BOZa_65H.js +1 -0
  1064. package/editor-web/assets/chunk-7S6XSTFO-DeiGeVpB.js +2 -0
  1065. package/editor-web/assets/chunk-AQDTSKZB-fPuQFBJc.js +72 -0
  1066. package/editor-web/assets/chunk-DSNLSHJZ-5vdnoak2.js +129 -0
  1067. package/editor-web/assets/chunk-HAGFOTED-DFF2mZJ1.js +62 -0
  1068. package/editor-web/assets/chunk-HNE4Q36P-g6-ZLbTg.js +1 -0
  1069. package/editor-web/assets/chunk-NQOKRVIF-o3hNcHMJ.js +213 -0
  1070. package/editor-web/assets/chunk-UHW7PFBP-BQiDI9dK.js +1 -0
  1071. package/editor-web/assets/chunk-VQ5W62QI-CJlMXWWz.js +1 -0
  1072. package/editor-web/assets/chunk-WQQL4CDK-pNBU8dXv.js +10 -0
  1073. package/editor-web/assets/chunk-YZO67HFG-2x-BiWd-.js +1 -0
  1074. package/editor-web/assets/chunk-ZAUX2LTX-etFStEM8.js +1 -0
  1075. package/editor-web/assets/chunk-ZCHMQSOR-B3AYRhIY.js +2 -0
  1076. package/editor-web/assets/classDiagram-v2-4MYWR3UA-6y2yX0oq.js +217 -0
  1077. package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
  1078. package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
  1079. package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
  1080. package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
  1081. package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
  1082. package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
  1083. package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
  1084. package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
  1085. package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
  1086. package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
  1087. package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
  1088. package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
  1089. package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
  1090. package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
  1091. package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
  1092. package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
  1093. package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
  1094. package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
  1095. package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
  1096. package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
  1097. package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
  1098. package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
  1099. package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
  1100. package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
  1101. package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
  1102. package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
  1103. package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
  1104. package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
  1105. package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
  1106. package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
  1107. package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
  1108. package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
  1109. package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
  1110. package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
  1111. package/editor-web/assets/cynefin-EF2NZ3EQ-CX4BTQQe.js +1 -0
  1112. package/editor-web/assets/cynefinDiagram-WF24UDRP-LbDkOTy3.js +62 -0
  1113. package/editor-web/assets/dagre-NK4GIZVX-wCKQk7hi.js +4 -0
  1114. package/editor-web/assets/diagram-CBK3MWTC-a9fofQwk.js +24 -0
  1115. package/editor-web/assets/diagram-I5XIIV2D-UCLZWch5.js +24 -0
  1116. package/editor-web/assets/diagram-ODIL2UCW-CAEe88Lp.js +30 -0
  1117. package/editor-web/assets/diagram-PFBEJUXE-Cp1o45bs.js +3 -0
  1118. package/editor-web/assets/diagram-RJA3I4VV-c6OVxDyq.js +41 -0
  1119. package/editor-web/assets/diagram-TYUNFSNR-BVRWslDM.js +200 -0
  1120. package/editor-web/assets/dist--KKyT5zP.js +340 -0
  1121. package/editor-web/assets/dist-1k0MHB3i.js +1 -0
  1122. package/editor-web/assets/dist-B9KHJqL5.js +4 -0
  1123. package/editor-web/assets/dist-BbJyrhIY.js +1 -0
  1124. package/editor-web/assets/dist-CJXCQxQM.js +37 -0
  1125. package/editor-web/assets/dist-D9xQGwe9.js +5 -0
  1126. package/editor-web/assets/dist-DFiLzbx8.js +219 -0
  1127. package/editor-web/assets/dist-DIPV6xfF.js +2 -0
  1128. package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
  1129. package/editor-web/assets/dist-Duw28VxJ.js +16 -0
  1130. package/editor-web/assets/dist-DwGhfliS.js +1 -0
  1131. package/editor-web/assets/dist-OBE2IIYP.js +24 -0
  1132. package/editor-web/assets/dist-YW8hS4IM.js +9 -0
  1133. package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
  1134. package/editor-web/assets/ebnfDiagram-V4P3TTPT-KdOTJgFu.js +1 -0
  1135. package/editor-web/assets/elk-QONTBCTQ-Cmlrp7qB.js +27 -0
  1136. package/editor-web/assets/erDiagram-KYQIGQAA-CBM7-aQm.js +99 -0
  1137. package/editor-web/assets/eventmodeling-K75KTNOO-CEoJkbuW.js +1 -0
  1138. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
  1139. package/editor-web/assets/ganttDiagram-R7GPNTJY-D4S6ZSYD.js +292 -0
  1140. package/editor-web/assets/gitGraph-VSP46ZUC-BvkL6RSh.js +1 -0
  1141. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-lTGguloH.js +106 -0
  1142. package/editor-web/assets/hint-BimUgJms.js +1 -0
  1143. package/editor-web/assets/index-C-i_iuxN.js +28 -0
  1144. package/editor-web/assets/index-Cxh_Shkm.css +2 -0
  1145. package/editor-web/assets/info-OHQRW6UA-DvKzqNvp.js +1 -0
  1146. package/editor-web/assets/infoDiagram-MVDRKAX5-D7hCpehs.js +2 -0
  1147. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-Bg93sZQe.js +70 -0
  1148. package/editor-web/assets/italic-BQBwRTe8.js +1 -0
  1149. package/editor-web/assets/journeyDiagram-BOSHW7O7-CKm_KONJ.js +139 -0
  1150. package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
  1151. package/editor-web/assets/kanban-definition-FNSA4HC5-BKknnpTR.js +89 -0
  1152. package/editor-web/assets/layout-SWqqA0yV.js +1 -0
  1153. package/editor-web/assets/mermaid-parser.core-BzqkDnqL.js +7 -0
  1154. package/editor-web/assets/mermaid.core-CEpvTOAe.js +44 -0
  1155. package/editor-web/assets/mindmap-definition-6OY57UG3-BJ0qG8Wi.js +98 -0
  1156. package/editor-web/assets/minus-oPj1GxwA.js +1 -0
  1157. package/editor-web/assets/packet-JDAUHWVQ-ew3kvyFm.js +1 -0
  1158. package/editor-web/assets/pegDiagram-ECIUJNBX-DqUS2xit.js +1 -0
  1159. package/editor-web/assets/picture-B-I4V_JT.js +1 -0
  1160. package/editor-web/assets/pie-XZMESJXO-DTIAMPGm.js +1 -0
  1161. package/editor-web/assets/pieDiagram-GNMPY74T-DoKOE02-.js +39 -0
  1162. package/editor-web/assets/progress-CPEbDOoN.js +6 -0
  1163. package/editor-web/assets/quadrantDiagram-D57K4MC3-DauOpYun.js +7 -0
  1164. package/editor-web/assets/radar-ABXABTNO-BvMJXUU-.js +1 -0
  1165. package/editor-web/assets/railroad-I3PHUGI6-D3jdJmhM.js +1 -0
  1166. package/editor-web/assets/railroad-abnf-LNEFI6M7-Dm8ZpmPj.js +1 -0
  1167. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js +1 -0
  1168. package/editor-web/assets/railroad-peg-JR7BVNR7-CMrQL_7U.js +1 -0
  1169. package/editor-web/assets/railroadDiagram-Y72NRBL7-y99z0C7i.js +1 -0
  1170. package/editor-web/assets/react-DztDSW4P.js +1 -0
  1171. package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
  1172. package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
  1173. package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
  1174. package/editor-web/assets/repeat-2-DJi4LW5C.js +1 -0
  1175. package/editor-web/assets/requirementDiagram-EQYSW5RA-jMr_uoF6.js +84 -0
  1176. package/editor-web/assets/row-ClBisiBs.js +1 -0
  1177. package/editor-web/assets/sankeyDiagram-SY24JHO5-DcUyx03Q.js +40 -0
  1178. package/editor-web/assets/schemas-68mjUjP5.js +1 -0
  1179. package/editor-web/assets/sequenceDiagram-BLEHNHQU-R4X8wRCd.js +169 -0
  1180. package/editor-web/assets/session-2u9U7koW.js +1 -0
  1181. package/editor-web/assets/slides-BByblSSR.js +1 -0
  1182. package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
  1183. package/editor-web/assets/sound-DExlNJbb.js +1 -0
  1184. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BqvXKbCA.js +291 -0
  1185. package/editor-web/assets/strikethrough-CyUBnGTl.js +1 -0
  1186. package/editor-web/assets/svg-lBRT-uhy.js +1 -0
  1187. package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
  1188. package/editor-web/assets/swimlanes-B3ENRKFQ-hjTXIc6M.js +1 -0
  1189. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
  1190. package/editor-web/assets/switch-D0K-K8-C.js +1 -0
  1191. package/editor-web/assets/syntax-Bih_jv7W.js +1 -0
  1192. package/editor-web/assets/syntax-C0iPON60.js +18 -0
  1193. package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
  1194. package/editor-web/assets/textarea-Fu93tFO3.js +105 -0
  1195. package/editor-web/assets/timeline-definition-JXYKGLGB-BcSoN4Dq.js +120 -0
  1196. package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
  1197. package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
  1198. package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
  1199. package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
  1200. package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
  1201. package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
  1202. package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
  1203. package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
  1204. package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
  1205. package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
  1206. package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
  1207. package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
  1208. package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
  1209. package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
  1210. package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
  1211. package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
  1212. package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
  1213. package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
  1214. package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
  1215. package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
  1216. package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
  1217. package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
  1218. package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
  1219. package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
  1220. package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
  1221. package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
  1222. package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
  1223. package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
  1224. package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
  1225. package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
  1226. package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
  1227. package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
  1228. package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
  1229. package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
  1230. package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
  1231. package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
  1232. package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
  1233. package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
  1234. package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
  1235. package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
  1236. package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
  1237. package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
  1238. package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
  1239. package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
  1240. package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
  1241. package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
  1242. package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
  1243. package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
  1244. package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
  1245. package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
  1246. package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
  1247. package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
  1248. package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
  1249. package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
  1250. package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
  1251. package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
  1252. package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
  1253. package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
  1254. package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
  1255. package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
  1256. package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
  1257. package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
  1258. package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
  1259. package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
  1260. package/editor-web/assets/trash-2-BAKAeziW.js +1 -0
  1261. package/editor-web/assets/treeView-D4JQ5SDB-CsFN2jrc.js +1 -0
  1262. package/editor-web/assets/treemap-SAJKECNS-DP1eqXJ2.js +1 -0
  1263. package/editor-web/assets/undo-2-DQ5CBmki.js +1 -0
  1264. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BGxa0osF.js +328 -0
  1265. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D2XhTF49.js +34 -0
  1266. package/editor-web/assets/video-CDbPX4Cr.js +1 -0
  1267. package/editor-web/assets/wardley-7MLQ67FV-DM3jMAbZ.js +1 -0
  1268. package/editor-web/assets/wardleyDiagram-IVAIDKWA-Bf-DaZEg.js +78 -0
  1269. package/editor-web/assets/xychartDiagram-4URNHDU4-dp-mdcWd.js +7 -0
  1270. package/editor-web/index.html +8 -3
  1271. package/package.json +21 -5
  1272. package/dist/audio-text.js +0 -6
  1273. package/dist/cloud-hearing.js +0 -2
  1274. package/dist/commands/audio.js +0 -4
  1275. package/dist/commands/inspect/contrast.js +0 -2
  1276. package/dist/commands/inspect/fidelity.js +0 -2
  1277. package/dist/commands/inspect/joins.js +0 -2
  1278. package/dist/commands/inspect/motion.js +0 -4
  1279. package/dist/commands/inspect/sheet.js +0 -3
  1280. package/dist/commands/inspect/timeline.js +0 -3
  1281. package/dist/commands/model.js +0 -3
  1282. package/dist/commands/reference-text.js +0 -5
  1283. package/dist/commands/reference.js +0 -2
  1284. package/dist/commands/scenery-input.js +0 -2
  1285. package/dist/commands/scenery.js +0 -7
  1286. package/dist/commands/sheet.js +0 -8
  1287. package/dist/commands/site.js +0 -4
  1288. package/dist/commands/slides.js +0 -3
  1289. package/dist/commands/voice.js +0 -3
  1290. package/dist/commands/words-text.js +0 -6
  1291. package/dist/commands/words.js +0 -2
  1292. package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
  1293. package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
  1294. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
  1295. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
  1296. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
  1297. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
  1298. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
  1299. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
  1300. package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
  1301. package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
  1302. package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
  1303. package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
  1304. package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
  1305. package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
  1306. package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
  1307. package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
  1308. package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
  1309. package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
  1310. package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
  1311. package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
  1312. package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
  1313. package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
  1314. package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
  1315. package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
  1316. package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
  1317. package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
  1318. package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
  1319. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  1320. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  1321. package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
  1322. package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
  1323. package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
  1324. package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
  1325. package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
  1326. package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
  1327. package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
  1328. package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
  1329. package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
  1330. package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
  1331. package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
  1332. package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
  1333. package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
  1334. package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
  1335. package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
  1336. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
  1337. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
  1338. package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
  1339. package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
  1340. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
  1341. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
  1342. package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
  1343. package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
  1344. package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
  1345. package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
  1346. package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
  1347. package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
  1348. package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
  1349. package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
  1350. package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
  1351. package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
  1352. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
  1353. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
  1354. package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
  1355. package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
  1356. package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
  1357. package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
  1358. package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
  1359. package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
  1360. package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
  1361. package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
  1362. package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
  1363. package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
  1364. package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
  1365. package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
  1366. package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
  1367. package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
  1368. package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
  1369. package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
  1370. package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
  1371. package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
  1372. package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
  1373. package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
  1374. package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
  1375. package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
  1376. package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
  1377. package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
  1378. package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
  1379. package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
  1380. package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
  1381. package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
  1382. package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
  1383. package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
  1384. package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
  1385. package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
  1386. package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
  1387. package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
  1388. package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
  1389. package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
  1390. package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
  1391. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
  1392. package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
  1393. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
  1394. package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
  1395. package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
  1396. package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
  1397. package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
  1398. package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
  1399. package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
  1400. package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
  1401. package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
  1402. package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
  1403. package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
  1404. package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
  1405. package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
  1406. package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
  1407. package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
  1408. package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
  1409. package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
  1410. package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
  1411. package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
  1412. package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
  1413. package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
  1414. package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
  1415. package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
  1416. package/dist/node_modules/@allyhub/runtime/dist/locate.js +0 -2
  1417. package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
  1418. package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
  1419. package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
  1420. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  1421. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  1422. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  1423. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  1424. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  1425. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  1426. package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
  1427. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
  1428. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
  1429. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
  1430. package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
  1431. package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
  1432. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
  1433. package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
  1434. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
  1435. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
  1436. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
  1437. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
  1438. package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
  1439. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
  1440. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
  1441. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
  1442. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
  1443. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
  1444. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
  1445. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
  1446. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
  1447. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
  1448. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
  1449. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
  1450. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
  1451. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
  1452. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
  1453. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
  1454. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
  1455. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
  1456. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
  1457. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
  1458. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
  1459. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
  1460. package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
  1461. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
  1462. package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
  1463. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
  1464. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
  1465. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
  1466. package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
  1467. package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
  1468. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
  1469. package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
  1470. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
  1471. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
  1472. package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
  1473. package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
  1474. package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
  1475. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
  1476. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
  1477. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
  1478. package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
  1479. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
  1480. package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
  1481. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
  1482. package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
  1483. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
  1484. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
  1485. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
  1486. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
  1487. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
  1488. package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
  1489. package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
  1490. package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
  1491. package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
  1492. package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
  1493. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
  1494. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
  1495. package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
  1496. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
  1497. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
  1498. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
  1499. package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
  1500. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
  1501. package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
  1502. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
  1503. package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
  1504. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
  1505. package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
  1506. package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
  1507. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
  1508. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
  1509. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
  1510. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
  1511. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
  1512. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
  1513. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
  1514. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
  1515. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
  1516. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
  1517. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
  1518. package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
  1519. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
  1520. package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
  1521. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
  1522. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
  1523. package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
  1524. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
  1525. package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
  1526. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
  1527. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
  1528. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
  1529. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
  1530. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
  1531. package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
  1532. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
  1533. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
  1534. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
  1535. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
  1536. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
  1537. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
  1538. package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
  1539. package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
  1540. package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
  1541. package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
  1542. package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
  1543. package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
  1544. package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
  1545. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
  1546. package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
  1547. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
  1548. package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
  1549. package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
  1550. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
  1551. package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
  1552. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
  1553. package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
  1554. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  1555. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
  1556. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
  1557. package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
  1558. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  1559. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  1560. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
  1561. package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
  1562. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
  1563. package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
  1564. package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
  1565. package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
  1566. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
  1567. package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
  1568. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
  1569. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
  1570. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  1571. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  1572. package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
  1573. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
  1574. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
  1575. package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
  1576. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  1577. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
  1578. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
  1579. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  1580. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
  1581. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
  1582. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
  1583. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
  1584. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
  1585. package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
  1586. package/dist/text/timeline-text.js +0 -2
  1587. package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
  1588. package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
  1589. package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
  1590. package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
  1591. package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
  1592. package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
  1593. package/editor-web/assets/channel-hhT2g1yB.js +0 -1
  1594. package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
  1595. package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
  1596. package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
  1597. package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
  1598. package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
  1599. package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
  1600. package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
  1601. package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
  1602. package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
  1603. package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
  1604. package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
  1605. package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
  1606. package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
  1607. package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
  1608. package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
  1609. package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
  1610. package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
  1611. package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
  1612. package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
  1613. package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
  1614. package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
  1615. package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
  1616. package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
  1617. package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
  1618. package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
  1619. package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
  1620. package/editor-web/assets/dist-BRuoygB7.js +0 -2
  1621. package/editor-web/assets/dist-CK42vCmN.js +0 -550
  1622. package/editor-web/assets/dist-C_buDsM-.js +0 -36
  1623. package/editor-web/assets/dist-DNcXHhzn.js +0 -37
  1624. package/editor-web/assets/dist-HxiPpGXi.js +0 -10
  1625. package/editor-web/assets/dist-PF3VMsK7.js +0 -1
  1626. package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
  1627. package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
  1628. package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
  1629. package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
  1630. package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
  1631. package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
  1632. package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
  1633. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
  1634. package/editor-web/assets/hint-BwGc32IE.js +0 -1
  1635. package/editor-web/assets/index-BQKSbBSy.js +0 -69
  1636. package/editor-web/assets/index-CfD80QPx.css +0 -2
  1637. package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
  1638. package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
  1639. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
  1640. package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
  1641. package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
  1642. package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
  1643. package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
  1644. package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
  1645. package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
  1646. package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
  1647. package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
  1648. package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
  1649. package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
  1650. package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
  1651. package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
  1652. package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
  1653. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
  1654. package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
  1655. package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
  1656. package/editor-web/assets/react-BSSSHUyV.js +0 -101
  1657. package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
  1658. package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
  1659. package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
  1660. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
  1661. package/editor-web/assets/svg-BiObwMnL.js +0 -1
  1662. package/editor-web/assets/swatch-CwskGSEY.js +0 -105
  1663. package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
  1664. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
  1665. package/editor-web/assets/tabs-uHwPMprC.js +0 -1
  1666. package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
  1667. package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
  1668. package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
  1669. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
  1670. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
  1671. package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
  1672. package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
  1673. package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
  1674. /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
  1675. /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
  1676. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
  1677. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
  1678. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  1679. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  1680. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
  1681. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
  1682. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
  1683. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
  1684. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
  1685. /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
  1686. /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
  1687. /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
  1688. /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
  1689. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  1690. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  1691. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  1692. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  1693. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  1694. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  1695. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  1696. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  1697. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  1698. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  1699. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  1700. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  1701. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  1702. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  1703. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  1704. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  1705. /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
  1706. /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
  1707. /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
  1708. /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
  1709. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
  1710. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
  1711. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
  1712. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
  1713. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
  1714. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
  1715. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
  1716. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
  1717. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
  1718. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
  1719. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{contentEdges as Se,fact as ge,intersect as ze,problem as be,RULES as Ne,STRUCTURE as we,toFrame as Re,showLayer as ke}from"@allyhub/video-core";import{realTimers as Ce}from"./guards.js";export const isFootage=t=>t.__allyhubLayer==="footage",zOf=t=>t.z==="behind-person"||t.z==="overlay"?t.z:"front",layerNames=t=>t.map(u=>isFootage(u)?"footage":u.component);export function resolveTimes(t,u,b){if(Array.isArray(t))return t.map(c=>resolveTimes(c,u,b));if(u===!0)return typeof t=="string"||typeof t=="number"?b(t):t;if(typeof t!="object"||t===null)return t;const p={...t};for(const[c,h]of Object.entries(u))c in p&&p[c]!==void 0&&(p[c]=resolveTimes(p[c],h,b));return p}export function windowOf(t,u,b){const p=x=>Math.min(Math.max(x,0),u),c=p(t.at===void 0?0:b(t.at)),h=t.until!==void 0?p(b(t.until)):t.dur!==void 0?p(c+t.dur):u;return[c,h]}export function planStack(t){const u=t.some(n=>!isFootage(n)&&zOf(n)==="behind-person"),b=u?t.findIndex(n=>isFootage(n)&&n.file===void 0):-1,p=n=>b>=0&&!isFootage(n)&&zOf(n)==="behind-person",c=n=>n!==void 0&&!isFootage(n)&&zOf(n)==="overlay",h=[];t.forEach((n,r)=>{isFootage(n)?(h.push(r),r===b&&t.forEach((v,E)=>{p(v)&&h.push(E)})):!p(n)&&!c(n)&&h.push(r)}),t.forEach((n,r)=>{c(n)&&h.push(r)});const x=[],y=new Map,j=new Map;let S;for(const n of h){const r=t[n];if(!r)continue;if(isFootage(r)){S=void 0,j.set(n,x.length);continue}const v=p(r)?"behind":c(r)?"overlay":"front";S!==v&&(x.push({layers:[],...v==="behind"?{behindPerson:!0}:{},...v==="overlay"?{overlay:!0}:{}}),S=v),y.set(n,x.length-1)}return{takeAt:b,hasBehind:u,order:h,planes:x,planeOf:y,overOf:j,overlaid:n=>c(t[n])}}const Le={captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[]};export function layerContexts(t,u,b,p,c){const{log:h,ledger:x,embed:y,combo:j}=t,{look:S,format:n,dims:r}=u,v=[[0,0,r.width,r.safe.top],[0,r.height-r.safe.bottom,r.width,r.safe.bottom],[0,0,r.safe.left,r.height],[r.width-r.safe.right,0,r.safe.right,r.height]].filter(i=>i[2]>0&&i[3]>0),E=Se(r),P=[E.left,E.top,E.right-E.left,E.bottom-E.top],ee=i=>{if(!c)throw new Error(`"${i}": a page has no film to find it in.`);return c.filmAt(i)};return i=>{const B=i.reads??Le,U=i.record??(()=>{}),z=i.place,H=i.answers,I={look:S,format:n,dims:r,combo:i.combo??j,dur:i.dur,asset:a=>h.asset(a),optionalAsset:a=>h.optionalAsset(a),words:i.words,at:i.at,layer:{start:i.start,end:i.end},wait:a=>{x.wait(a)},report:a=>{const A=x.running,W=a.code in Ne?a.code:"AK-R001",_=A?.part??z?.part;x.ran(be(W,a.message,{...a.level?{level:a.level}:{},..._?{part:_}:{},...A?.t===void 0?{}:{t:A.t}}))},captions:a=>B.captions(a),face:(a,A)=>B.face(a,A),faces:a=>B.faces(a),texts:a=>B.texts(a),covered:v,content:P,video:(a,A)=>b.video(a,A,U),cameraFor:a=>y?.cameras?.[a]??y?.cameras?.["*"],...y?.sceneryScale===void 0?{}:{sceneryScale:y.sceneryScale},embedded:y!==void 0,get layoutOnly(){return p.mode==="layout"},realTimers:Ce,...H?{answer:(a,A)=>{H.set(a,A)}}:{}};return z&&Object.defineProperty(I,"film",{enumerable:!0,get:()=>(U("film",String(z.start)),{start:z.start,part:z.part,at:ee,...y?.shown?{outer:y.shown}:{}})}),I}}const Te=t=>Math.max(0,t-.4),ae=t=>Math.round(t*1e3)/1e3,xe=t=>Math.round(t*1e6)/1e6;export function compose(t){const{env:u,piece:b,stage:p,takes:c,film:h,captions:x,footage:y,sound:j}=t,{source:S,options:n,combo:r,picked:v,ledger:E}=u,{fps:P,format:ee,dims:i}=b,{specs:B}=c,{timing:U,windows:z}=h,H=[],I=[],a=[],A=n.purpose==="play",W=new Set,_=(w,o)=>{const d={};for(const[g,M]of Object.entries(r)){if(!v.has(g)||g===o){d[g]=M;continue}Object.defineProperty(d,g,{enumerable:!0,get:()=>(W.has(`${w}:${g}`)||(W.add(`${w}:${g}`),E.problems.push(be("AK-X005",`A layer of part ${w} reads ctx.combo.${g}, ${g===we?"the combo's structure":`the pick of the slot ${g}`}. A part is rendered once and reused in every combo that has it, so it may read only the dimensions${o===void 0?"":` and its own slot (${o})`}. Choose in the output's function instead, and pass the result as a prop.`,{part:w,where:{file:S.file}}))),M)})}return d};for(const[w,o]of B.entries()){const d=U.parts[w];if(!d)continue;const g=d.end-d.start,M=e=>U.at(w,e),ve=x.partWords(o.key),Ee=c.results[w]?.speech,ce=c.inputs[w],ie=ce?.placed??[],de=[...ie,...(ce?.anchors??[]).filter(e=>!ie.some(s=>s.name===e.name))],X=c.speechFor(w,d);let D;if(typeof o.still=="function")D=o.still(g);else if(o.still===void 0){D=Te(g);const e=z.get(w),s=z.get(w+1);if(e||s){const l=(e?.after??0)/P,k=g-((s?.before??0)+1)/P;D=Math.max(l,Math.min(D,k))}}else D=M(o.still);let q=Re(d.start+D,P);(q<d.start||q>=d.end)&&(q=d.start);const te=o.slot??(v.has(o.key)&&o.key!==we?o.key:void 0),Ae=v.size>0?_(o.key,te):r,se={reads:new Map,captioned:!1},oe=planStack(o.layers),{takeAt:ne,planes:K,planeOf:re,overOf:fe,order:pe}=oe,J=o.layers,le=o.post??J.map(e=>"props"in e?e.props.sensor?.grade:void 0).find(Boolean),N=c.videoTakes[w],m={key:o.key,...o.title===void 0?{}:{title:o.title},...te===void 0?{}:{slot:te},layers:layerNames(J),start:d.start,end:d.end,planes:K,still:q,...X.speech?{speech:X.speech}:{},...de.length>0?{anchors:de.map(e=>({name:e.name,at:ae(d.start+M(`@${e.name}`)),...e.end===void 0?{}:{end:ae(d.start+M(`@/${e.name}`))}}))}:{},...o.tags?.length?{tags:[...o.tags]}:{},...le?{post:{filter:le.filter}}:{},...o.speechGainDb!==void 0&&o.speechGainDb!==0?{speechGainDb:o.speechGainDb}:{},...N?{plays:{video:N.id,from:N.from,to:N.to}}:{}};H.push(m),j.addSpeech(X.clips,X.room);const $=document.createElement("section");$.className="ak-part",$.dataset.key=o.key,$.dataset.format=ee,Object.assign($.style,{position:"absolute",inset:"0",overflow:"hidden"}),ke($,!1),p.el.append($);const Q=new Map;A&&J.forEach((e,s)=>{if(!isFootage(e))return;const l=document.createElement("div");l.className="ak-footage-plane",Object.assign(l.style,{position:"absolute",inset:"0",...(fe.get(s)??0)>0?{pointerEvents:"none"}:{}}),Q.set(s,l)});let R;Q.size>0&&ne>=0&&(R=document.createElement("div"),R.className="ak-cutout-plane",Object.assign(R.style,{position:"absolute",inset:"0",pointerEvents:"none"}));const Oe={captions:e=>(se.captioned=!0,x.partCues(d.start,d.end,e)),face:(e,s)=>y.faceAt(o.key,d.start+e,s),faces:e=>y.facesAt(o.key,d.start+e)},V=[],ue=new Map;for(const[e,s]of J.entries()){const[l,k]=windowOf(s,g,M);if(isFootage(s)){const G=e===ne,Z=y.plan(s,m,Ee,d.speechAt,l,k,{at:M,cutout:G,over:fe.get(e)??0,person:G&&R!==void 0});if(Z&&A){const he=Q.get(e)??$,{matteUrl:ye,personOver:$e,...je}=Z;a.push({...je,host:he,...ye===void 0?{}:{cutoutIn:{host:$e&&R?R:he,matte:ye}}})}continue}const f=zOf(s),C=re.get(e)??0;K[C]?.layers.push({component:s.component,start:xe(m.start+l),end:xe(m.start+Math.max(l,k))});const O=document.createElement("div");O.className="ak-layer",O.dataset.component=s.component,Object.assign(O.style,{position:"absolute",inset:"0"}),ke(O,!1),ue.set(e,O);const T=s.times?resolveTimes(s.props,s.times,M):s.props,Y=V.slice(),me=new Map,Me=t.contexts({dur:g,words:()=>ve,at:M,start:l,end:k,combo:Ae,reads:{...Oe,texts:G=>t.texts({part:m,el:$},Y,G)},record:(G,Z)=>se.reads.set(G,Z),place:{start:m.start,part:o.key},answers:me});V.push({spec:s,index:e,props:T,el:O,ctx:Me,start:l,end:k,z:f,plane:C,answers:me})}let F=$,L;if(K.some(e=>e.overlay===!0)){F=document.createElement("div"),L=document.createElement("div"),F.className="ak-picture",L.className="ak-overlays";for(const e of[F,L])Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden"}),$.append(e)}pe.forEach((e,s)=>{const l=Q.get(e)??ue.get(e);l&&(L&&oe.overlaid(e)?L:F).append(l);const k=re.get(e),f=pe[s+1];R&&k!==void 0&&K[k]?.behindPerson===!0&&(f===void 0||re.get(f)!==k)&&F.append(R)}),j.sfx(o,m,M),N&&j.carry(N.inner,N.from,N.to,m.start,m.key,0);for(const e of V){const s=c.shownBy.get(e.spec);s&&(s.shown.start=m.start+e.start,s.shown.partStart=m.start,s.shown.from=s.from,s.shown.to=s.from+(e.end-e.start)*s.speed,s.shown.speed=s.speed,s.audio!==void 0&&s.speed===1&&j.carry(s.inner,s.from,s.shown.to,m.start+e.start,m.key,s.audio))}K.forEach((e,s)=>{const l=e.layers.filter(f=>f.end>f.start),k=y.placed.flatMap(f=>{if(f.part!==m.key||(f.over??0)<=s)return[];if(!l.some(O=>O.end>f.start&&O.start<f.end))return[];let C;for(const O of f.boxes?f.boxes.map(T=>T.box):[f.box]){const T=ze(O,[0,0,i.width,i.height]),Y=T?ae(T[2]*T[3]/(i.width*i.height)):0;(!C||Y>C.frame)&&(C={box:O,frame:Y})}return C?[{file:f.file,start:f.start,end:f.end,...C}]:[]});k.length!==0&&E.facts.push(ge("graphics-under-footage",{piece:S.piece,part:o.key,t:m.start},{layers:l,footage:k,covered:Math.max(...k.map(f=>f.frame))}))}),oe.hasBehind&&ne<0&&E.facts.push(ge("fallback",{piece:S.piece,part:o.key},{missing:"own-footage",for:"behind-person",fallback:"in-front"})),I.push({part:m,spec:o,n:w,el:$,picture:F,...L?{overlays:L}:{},layers:V,record:se})}return{parts:H,mounted:I,clips:a}}
2
+ import{isRule as Le,problem as ve}from"@allyhub/diagnostics";import{contentEdges as Pe,STRUCTURE as xe,toFrame as Ue,LAYER_NAME as Be,showLayer as Ae}from"@allyhub/piece";import{fact as Ee,intersect as He}from"@allyhub/video-core";import{backdropRoot as Ke,contentOf as We,holdsAdjustment as Ie}from"@allyhub/image-draw/layer-style";import{isFootage as ie,layerNames as Oe,planStack as Me,resolveTimes as $e,windowOf as je,zOf as Se}from"@allyhub/image-draw/plan";import{realTimers as Xe}from"@allyhub/image-draw/guards";const Ye={captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[]};export{ie as isFootage,Oe as layerNames,Me as planStack,$e as resolveTimes,je as windowOf,Se as zOf};export function layerContexts(b,Q,V,Z,k){const{log:K,ledger:N,embed:m,combo:R}=b,{look:F,format:ee,dims:c}=Q,G=[[0,0,c.width,c.safe.top],[0,c.height-c.safe.bottom,c.width,c.safe.bottom],[0,0,c.safe.left,c.height],[c.width-c.safe.right,0,c.safe.right,c.height]].filter(n=>n[2]>0&&n[3]>0),w=Pe(c),v=[w.left,w.top,w.right-w.left,w.bottom-w.top],te=n=>{if(!k)throw new Error(`"${n}": a page has no film to find it in.`);return k.filmAt(n)};return n=>{const C=n.reads??Ye,L=n.record??(()=>{}),x=n.place,P=n.answers,U={look:F,format:ee,dims:c,combo:n.combo??R,dur:n.dur,asset:o=>K.asset(o),optionalAsset:o=>K.optionalAsset(o),words:n.words,at:n.at,layer:{start:n.start,end:n.end},...n.enter?{enter:n.enter}:{},...n.exit?{exit:n.exit}:{},wait:o=>{N.wait(o)},report:o=>{const h=N.running,W=Le(o.code)?o.code:"AK-R001",I=h?.part??x?.part;N.ran(ve(W,o.message,{...o.level?{level:o.level}:{},...I?{part:I}:{},...h?.t===void 0?{}:{t:h.t}}))},captions:o=>C.captions(o),face:(o,h)=>C.face(o,h),faces:o=>C.faces(o),texts:o=>C.texts(o),covered:G,content:v,video:(o,h)=>V.video(o,h,L),cameraFor:o=>m?.cameras?.[o]??m?.cameras?.["*"],...m?.sceneryScale===void 0?{}:{sceneryScale:m.sceneryScale},embedded:m!==void 0,get layoutOnly(){return Z.mode==="layout"},realTimers:Xe,...P?{answer:(o,h)=>{P.set(o,h)}}:{}};return x&&Object.defineProperty(U,"film",{enumerable:!0,get:()=>(L("film",String(x.start)),{start:x.start,part:x.part,at:te,...m?.shown?{outer:m.shown}:{}})}),U}}const _e=b=>Math.max(0,b-.4),de=b=>Math.round(b*1e3)/1e3,Ne=b=>Math.round(b*1e6)/1e6;export function compose(b){const{env:Q,piece:V,stage:Z,takes:k,film:K,captions:N,footage:m,sound:R}=b,{source:F,options:ee,combo:c,picked:G,ledger:w}=Q,{fps:v,format:te,dims:n}=V,{specs:C}=k,{timing:L,windows:x}=K,P=[],U=[],o=[],h=ee.purpose==="play",W=new Set,I=(l,s)=>{const a={};for(const[i,g]of Object.entries(c)){if(!G.has(i)||i===s){a[i]=g;continue}Object.defineProperty(a,i,{enumerable:!0,get:()=>(W.has(`${l}:${i}`)||(W.add(`${l}:${i}`),w.problems.push(ve("AK-X005",`A layer of part ${l} reads ctx.combo.${i}, ${i===xe?"the combo's structure":`the pick of the slot ${i}`}. A part is rendered once and reused in every combo that has it, so it may read only the dimensions${s===void 0?"":` and its own slot (${s})`}. Choose in the output's function instead, and pass the result as a prop.`,{part:l,where:{file:F.file}}))),g)})}return a};for(const[l,s]of C.entries()){const a=L.parts[l];if(!a)continue;const i=a.end-a.start,g=e=>L.at(l,e),Re=N.partWords(s.key),Ce=k.results[l]?.speech,fe=k.inputs[l],le=fe?.placed??[],pe=[...le,...(fe?.anchors??[]).filter(e=>!le.some(t=>t.name===e.name))],X=k.speechFor(l,a),M=x.get(l),$=x.get(l+1),Te={...M&&M.before+M.after>0?{enter:{start:-M.before/v,end:M.after/v}}:{},...$&&$.before+$.after>0?{exit:{start:i-$.before/v,end:i+$.after/v}}:{}};let T;if(typeof s.still=="function")T=s.still(i);else if(s.still===void 0){if(T=_e(i),M||$){const e=(M?.after??0)/v,t=i-(($?.before??0)+1)/v;T=Math.max(e,Math.min(T,t))}}else T=g(s.still);let Y=Ue(a.start+T,v);(Y<a.start||Y>=a.end)&&(Y=a.start);const se=s.slot??(G.has(s.key)&&s.key!==xe?s.key:void 0),ze=G.size>0?I(s.key,se):c,oe={reads:new Map,captioned:!1},ne=Me(s.layers),{takeAt:ae,planes:B,planeOf:re,overOf:me,order:he}=ne,ce=s.layers,ue=s.post,A=k.videoTakes[l],d={key:s.key,...s.title===void 0?{}:{title:s.title},...se===void 0?{}:{slot:se},layers:Oe(ce),start:a.start,end:a.end,planes:B,still:Y,...X.speech?{speech:X.speech}:{},...pe.length>0?{anchors:pe.map(e=>({name:e.name,at:de(a.start+g(`@${e.name}`)),...e.end===void 0?{}:{end:de(a.start+g(`@/${e.name}`))}}))}:{},...s.tags?.length?{tags:[...s.tags]}:{},...ue?{post:{filter:ue.filter}}:{},...s.speechGainDb!==void 0&&s.speechGainDb!==0?{speechGainDb:s.speechGainDb}:{},...A?{plays:{video:A.id,from:A.from,to:A.to}}:{}};P.push(d),R.addSpeech(X.clips,X.room);const u=document.createElement("section");u.className="ak-part",u.dataset.key=s.key,u.dataset.format=te,Object.assign(u.style,{position:"absolute",inset:"0",overflow:"hidden"}),Ae(u,!1),Z.el.append(u);const _=new Map;h&&ce.forEach((e,t)=>{if(!ie(e))return;const f=document.createElement("div");f.className="ak-footage-plane",Object.assign(f.style,{position:"absolute",inset:"0",...(me.get(t)??0)>0?{pointerEvents:"none"}:{}}),_.set(t,f)});let E;_.size>0&&ae>=0&&(E=document.createElement("div"),E.className="ak-cutout-plane",Object.assign(E.style,{position:"absolute",inset:"0",pointerEvents:"none"}));const De={captions:e=>(oe.captioned=!0,N.partCues(a.start,a.end,e)),face:(e,t)=>m.faceAt(s.key,a.start+e,t),faces:e=>m.facesAt(s.key,a.start+e)},H=[],ye=new Map;for(const[e,t]of ce.entries()){const[f,y]=je(t,i,g);if(ie(t)){const D=e===ae,J=m.plan(t,d,Ce,a.speechAt,f,y,{at:g,cutout:D,over:me.get(e)??0,person:D&&E!==void 0});if(J&&h){const we=_.get(e)??u,{matteUrl:ke,personOver:Fe,...Ge}=J;o.push({...Ge,host:we,...ke===void 0?{}:{cutoutIn:{host:Fe&&E?E:we,matte:ke}}})}continue}if(t.visible===!1)continue;const r=Se(t),O=re.get(e)??0;B[O]?.layers.push({component:t.component,start:Ne(d.start+f),end:Ne(d.start+Math.max(f,y))});const p=document.createElement("div");p.className="ak-layer",p.dataset.component=t.component,t.key!==void 0&&p.setAttribute(Be,t.key),Object.assign(p.style,{position:"absolute",inset:"0"}),Ae(p,!1),ye.set(e,p);const S=t.times?$e(t.props,t.times,g):t.props,q=H.slice(),be=new Map,ge=b.contexts({dur:i,words:()=>Re,at:g,start:f,end:y,combo:ze,reads:{...De,texts:D=>b.texts({part:d,el:u},q,D)},record:(D,J)=>oe.reads.set(D,J),place:{start:d.start,part:s.key},answers:be,...Te});H.push({spec:t,index:e,props:S,el:p,content:We(p,t,ge.dims),ctx:ge,start:f,end:y,z:r,plane:O,answers:be})}H.some(e=>Ie(e.spec))&&Ke(u);let z=u,j;if(B.some(e=>e.overlay===!0)){z=document.createElement("div"),j=document.createElement("div"),z.className="ak-picture",j.className="ak-overlays";for(const e of[z,j])Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden"}),u.append(e)}he.forEach((e,t)=>{const f=_.get(e)??ye.get(e);f&&(j&&ne.overlaid(e)?j:z).append(f);const y=re.get(e),r=he[t+1];E&&y!==void 0&&B[y]?.behindPerson===!0&&(r===void 0||re.get(r)!==y)&&z.append(E)}),R.sfx(s,d,g),A&&R.carry(A.inner,A.from,A.to,d.start,d.key,0);for(const e of H){const t=k.shownBy.get(e.spec);t&&(t.shown.start=d.start+e.start,t.shown.partStart=d.start,t.shown.from=t.from,t.shown.to=t.from+(e.end-e.start)*t.speed,t.shown.speed=t.speed,t.audio!==void 0&&t.speed===1&&R.carry(t.inner,t.from,t.shown.to,d.start+e.start,d.key,t.audio))}B.forEach((e,t)=>{const f=e.layers.filter(r=>r.end>r.start),y=m.placed.flatMap(r=>{if(r.part!==d.key||(r.over??0)<=t)return[];if(!f.some(p=>p.end>r.start&&p.start<r.end))return[];let O;for(const p of r.boxes?r.boxes.map(S=>S.box):[r.box]){const S=He(p,[0,0,n.width,n.height]),q=S?de(S[2]*S[3]/(n.width*n.height)):0;(!O||q>O.frame)&&(O={box:p,frame:q})}return O?[{file:r.file,start:r.start,end:r.end,...O}]:[]});y.length!==0&&w.facts.push(Ee("graphics-under-footage",{piece:F.piece,part:s.key,t:d.start},{layers:f,footage:y,covered:Math.max(...y.map(r=>r.frame))}))}),ne.hasBehind&&ae<0&&w.facts.push(Ee("fallback",{piece:F.piece,part:s.key},{missing:"own-footage",for:"behind-person",fallback:"in-front"})),U.push({part:d,spec:s,n:l,el:u,picture:z,...j?{overlays:j}:{},layers:H,record:oe})}return{parts:P,mounted:U,clips:o}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{forOrient as _,isPieceDefinition as E,LAYER_BRAND as N,momentOf as M,outputName as q}from"@allyhub/video-core";import{LoadFailure as $}from"./errors.js";export const momentIn=(t,e)=>typeof e=="number"?e:M(t.timeline,e),camerasOf=t=>t?.cameras??(t?.camera===void 0?void 0:{"*":t.camera});function B(t,e){const p=e.written?.file;if(!(p===void 0||p===""))return Object.entries(t.pieces??{}).find(([,m])=>m.file===p)}export function createEmbedder(t,e,p){const{source:m,options:v,embed:h,combo:g}=t,y=[],u=[...h?.chain??[],m.piece],w={loaded:y,async load(s,o,i={}){const f=E(s)?B(m,s):void 0;if(!E(s)||!f)throw new $("bad_video",'A video item of the project is shown by its piece, imported (import demo from "../demo/video") and passed as it is.');const[c,r]=f;if(u.includes(c))throw new $("video_cycle",`${[...u,c].join(" → ")}: a video item that shows itself, through the videos it shows (AK-M010). A source cannot reach itself.`);const a=q(s.kind),n=i.frame===!0?m.format:r.format,l=Object.fromEntries(Object.entries(r.dims).map(([j,A])=>{const S=g[j];return[j,S!==void 0&&A.includes(S)?S:A[0]??""]})),d=o.parentNode,b=o.nextSibling,x=document.createElement("div");x.dataset.akHolder="",Object.assign(x.style,{position:"absolute",left:"0px",top:"0px",visibility:"hidden",pointerEvents:"none"}),e.el.append(x),x.append(o);let O;try{O=await p({...m,piece:c,file:r.file,module:"",styles:[],dims:r.dims,format:n,...r.matrix?{matrix:r.matrix}:{}},{combo:l,purpose:v.purpose},o,{def:s,chain:u,...i.cameras?{cameras:i.cameras}:{},...i.shown?{shown:i.shown}:{},...i.sceneryScale===void 0?{}:{sceneryScale:i.sceneryScale}}),await O.ready()}finally{e.takeOutside(),d?d.insertBefore(o,b):o.remove(),e.takeOutside(),x.remove()}const k={id:c,output:a,format:n,inner:O};return y.push(k),k},async video(s,o,i){const{id:f,output:c,format:r,inner:a}=await w.load(s,o);return i(`video:${f}:${c}:${r}`,JSON.stringify(a.signs())),{id:f,duration:a.timeline.duration,width:a.timeline.width,height:a.timeline.height,seek:(n,l)=>a.seek(n,{mode:l===!0?"layout":"picture"}),at:n=>M(a.timeline,n)}}};return w}export const isBoxKeys=t=>Array.isArray(t)&&t.length>0&&typeof t[0]=="object";export function videoLayer(t,e,p,m,v){const{inner:h,host:g}=p,y=h.timeline.width,u=h.timeline.height,w=_(e.box,t.orient);if(isBoxKeys(w))throw new $("bad_footage",'footage() of a video item takes one box (or "full"), not keyframes.');const[s,o,i,f]=w===void 0||w==="full"?[0,0,1,1]:w,c=e.fit??"cover",r=e.cameras??(e.camera===void 0?void 0:e.camera);return{[N]:"graphic",component:"video",...e.at===void 0?{}:{at:e.at},...e.until===void 0?{}:{until:e.until},...e.dur===void 0?{}:{dur:e.dur},props:{...v,box:[s,o,i,f],fit:c,...r===void 0?{}:{camera:r},...e.quality?{quality:e.quality}:{},parts:h.signs()},mount(a){const n={x:s*t.width,y:o*t.height,w:i*t.width,h:f*t.height},l=c==="contain"?Math.min(n.w/y,n.h/u):Math.max(n.w/y,n.h/u),d=document.createElement("div");Object.assign(d.style,{position:"absolute",left:`${String(n.x)}px`,top:`${String(n.y)}px`,width:`${String(n.w)}px`,height:`${String(n.h)}px`,overflow:"hidden"}),Object.assign(g.style,{position:"absolute",left:`${String((n.w-y*l)/2)}px`,top:`${String((n.h-u*l)/2)}px`,width:`${String(y)}px`,height:`${String(u)}px`,transformOrigin:"0 0",transform:`scale(${String(l)})`}),d.appendChild(g),a.appendChild(d)},render(a,n,l,d){const b=Math.min(Math.max(m(n,d),0),Math.max(0,h.timeline.duration-.001)),x=d.layoutOnly===!0?"layout":"picture";d.wait(Promise.resolve().then(()=>h.seek(b,{mode:x})))}}}
2
+ import{LAYER_BRAND as _}from"@allyhub/piece";import{forOrient as N,isPieceDefinition as E,momentOf as M,outputName as q}from"@allyhub/video-core";import{LoadFailure as $}from"@allyhub/image-draw/errors";export const momentIn=(t,e)=>typeof e=="number"?e:M(t.timeline,e),camerasOf=t=>t?.cameras??(t?.camera===void 0?void 0:{"*":t.camera});function B(t,e){const l=e.written?.file;if(!(l===void 0||l===""))return Object.entries(t.pieces??{}).find(([,m])=>m.file===l)}export function createEmbedder(t,e,l){const{source:m,options:v,embed:h,combo:g}=t,y=[],u=[...h?.chain??[],m.piece],w={loaded:y,async load(s,i,o={}){const f=E(s)?B(m,s):void 0;if(!E(s)||!f)throw new $("bad_video",'A video item of the project is shown by its piece, imported (import demo from "../demo/video") and passed as it is.');const[c,r]=f;if(u.includes(c))throw new $("video_cycle",`${[...u,c].join(" → ")}: a video item that shows itself, through the videos it shows (AK-M010). A source cannot reach itself.`);const a=q(s.kind),n=o.frame===!0?m.format:r.format,p=Object.fromEntries(Object.entries(r.dims).map(([j,A])=>{const S=g[j];return[j,S!==void 0&&A.includes(S)?S:A[0]??""]})),d=i.parentNode,b=i.nextSibling,x=document.createElement("div");x.dataset.akHolder="",Object.assign(x.style,{position:"absolute",left:"0px",top:"0px",visibility:"hidden",pointerEvents:"none"}),e.el.append(x),x.append(i),i.dataset.akPiece=r.file;let O;try{O=await l({...m,piece:c,file:r.file,module:"",styles:[],dims:r.dims,format:n,...r.matrix?{matrix:r.matrix}:{}},{combo:p,purpose:v.purpose},i,{def:s,chain:u,...o.cameras?{cameras:o.cameras}:{},...o.shown?{shown:o.shown}:{},...o.sceneryScale===void 0?{}:{sceneryScale:o.sceneryScale}}),await O.ready()}finally{e.takeOutside(),d?d.insertBefore(i,b):i.remove(),e.takeOutside(),x.remove()}const k={id:c,output:a,format:n,inner:O};return y.push(k),k},async video(s,i,o){const{id:f,output:c,format:r,inner:a}=await w.load(s,i);return o(`video:${f}:${c}:${r}`,JSON.stringify(a.signs())),{id:f,duration:a.timeline.duration,width:a.timeline.width,height:a.timeline.height,seek:(n,p)=>a.seek(n,{mode:p===!0?"layout":"picture"}),at:n=>M(a.timeline,n)}}};return w}export const isBoxKeys=t=>Array.isArray(t)&&t.length>0&&typeof t[0]=="object";export function videoLayer(t,e,l,m,v){const{inner:h,host:g}=l,y=h.timeline.width,u=h.timeline.height,w=N(e.box,t.orient);if(isBoxKeys(w))throw new $("bad_footage",'footage() of a video item takes one box (or "full"), not keyframes.');const[s,i,o,f]=w===void 0||w==="full"?[0,0,1,1]:w,c=e.fit??"cover",r=e.cameras??(e.camera===void 0?void 0:e.camera);return{[_]:"graphic",component:"video",...e.at===void 0?{}:{at:e.at},...e.until===void 0?{}:{until:e.until},...e.dur===void 0?{}:{dur:e.dur},props:{...v,box:[s,i,o,f],fit:c,...r===void 0?{}:{camera:r},...e.quality?{quality:e.quality}:{},parts:h.signs()},mount(a){const n={x:s*t.width,y:i*t.height,w:o*t.width,h:f*t.height},p=c==="contain"?Math.min(n.w/y,n.h/u):Math.max(n.w/y,n.h/u),d=document.createElement("div");Object.assign(d.style,{position:"absolute",left:`${String(n.x)}px`,top:`${String(n.y)}px`,width:`${String(n.w)}px`,height:`${String(n.h)}px`,overflow:"hidden"}),Object.assign(g.style,{position:"absolute",left:`${String((n.w-y*p)/2)}px`,top:`${String((n.h-u*p)/2)}px`,width:`${String(y)}px`,height:`${String(u)}px`,transformOrigin:"0 0",transform:`scale(${String(p)})`}),d.appendChild(g),a.appendChild(d)},render(a,n,p,d){const b=Math.min(Math.max(m(n,d),0),Math.max(0,h.timeline.duration-.001)),x=d.layoutOnly===!0?"layout":"picture";d.wait(Promise.resolve().then(()=>h.seek(b,{mode:x})))}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{cuesIn as J,dimsCombo as L,joinWords as N,problem as U}from"@allyhub/video-core";import{codeOf as W,messageOf as B}from"./errors.js";import{timelineFootage as F}from"./footage.js";import{mixPlan as R}from"./mix-plan.js";function _(a){return JSON.stringify(a,(m,i)=>{if(typeof i=="function")return`fn:${String(i)}`;if(typeof i=="object"&&i!==null&&"sha256"in i&&"path"in i&&"url"in i){const p={...i};return delete p.url,delete p.matteUrl,delete p.denoisedUrl,p}return i})}export function facade(a){const{env:m,piece:i,stage:p,mounted:c,takes:O,captions:k,footage:g}=a,{drawer:u,measurer:l,embedder:j}=a,{source:h,combo:w,log:b,ledger:S}=m,{fps:$,dims:y,format:M,look:K,prefix:A}=i;let x=!1,v;const z=()=>{if(v)return v;const t={fps:$,width:y.width,height:y.height,...y.profile?{profile:y.profile}:{},duration:a.duration,background:a.background,parts:c.map(r=>r.part.title===void 0&&r.record.title!==void 0?{...r.part,title:r.record.title}:r.part),cues:[...a.cues],...g.placed.length>0?{footage:g.placed.map(F)}:{},...a.transitions.length>0?{transitions:[...a.transitions]}:{},...g.needs().length>0?{index:g.needs()}:{},audio:a.audio};return x&&(v=t),t};return{kind:"video",get timeline(){return z()},async ready(){await u.ready(),x=!0,v=void 0},seek:(t,r)=>u.draw(t,r),words:()=>k.lines.flatMap(t=>[...t.words]),lines:()=>[...k.lines],captionOptions:()=>k.asked??null,measure:t=>l.measure(t),tracks:(t,r)=>l.tracks(t,r),inks:t=>l.inks(t),objects:t=>l.objects(t,r=>b.keysShowing(r)),stuck:()=>u.stuck(),seekLimit:i.seekLimitMs/1e3,setPlaying(t){u.setPlaying(t)},text(){return c.map(t=>{const r=O.results[t.n]??{},n=r.speech,s=r.shown??(n?N(n.words):void 0),e=n?.script??r.say?.text,o=a.notes.get(t.part.key);return{key:t.part.key,onScreen:[...new Set(t.record.onScreen??[])],...o===void 0?{}:{notes:o},...s===void 0?{}:{spoken:s},...e!==void 0&&s!==void 0&&e!==s?{speak:e}:{},...r.speechKey===void 0?{}:{speechKey:r.speechKey}}})},signature:()=>l.signature(),signatureAt:t=>l.signatureAt(t),partSignature:(t,r)=>l.partSignature(t,r),reads(){const t=b.reads(A,c.map(e=>e.part.key)),r=j.loaded.reduce((e,o)=>{const d=o.inner.reads(),P=(f,I)=>[...new Map(f.map(C=>[I(C),C])).values()];return{messages:P([...e.messages,...d.messages],f=>f.key),media:P([...e.media,...d.media],f=>f.path),data:P([...e.data,...d.data],f=>f.path)}},t),n=new Map,s=(e,o)=>{const d=n.get(e)??new Set;d.add(o),n.set(e,d)};for(const e of c)for(const o of e.record.reads.keys())o.startsWith("f:")&&s(o.slice(2),e.part.key);for(const e of c)e.part.speech&&s(e.part.speech.file,e.part.key);for(const e of g.placed)s(e.file,e.part);return{...r,media:r.media.flatMap(e=>{const o=n.get(e.path);return o?.size?[...o].sort().map(d=>({...e,part:d})):[e]})}},says:()=>O.says.map(t=>({...t})),signs(){const t={},r=L(h.dims,w),n=a.background;for(const s of c)t[s.part.key]=JSON.stringify({v:1,piece:h.piece,output:m.output,kind:"video",key:s.part.key,slot:s.part.slot??null,pick:s.part.slot===void 0?null:w[s.part.slot]??null,dims:r,format:M,fps:$,size:[y.width,y.height],frames:Math.round((s.part.end-s.part.start)*$),background:n,look:K,layers:s.layers.map(e=>[e.spec.component,e.spec.z??"front",Math.round(e.start*1e6)/1e6,Math.round(e.end*1e6)/1e6,_(e.props)]),custom:s.layers.some(e=>e.spec.component==="custom"||e.spec.component==="scenery"),words:a.words(s.n),heard:J(k.cues(),s.part.start,s.part.end),planes:s.part.planes.map(e=>e.overlay===!0?"overlay":e.behindPerson===!0),stack:s.layers.map(e=>[e.index,e.plane]),reads:[...s.record.reads.entries()].sort((e,o)=>e[0]<o[0]?-1:e[0]>o[0]?1:0)});return t},mixPlan:()=>R(z(),h.media,{seed:m.seedBase}),problems(){const t=[...S.problems,...j.loaded.flatMap(n=>n.inner.problems().map(s=>({...s,message:`In the video ${n.id}: ${s.message}`}))),...b.problems,...a.timingProblems,...S.run,...p.problems(c),...b.translationProblems()],r=new Set;return t.map(n=>({...n,piece:h.piece,output:m.output,combo:w,format:M})).filter(n=>{const s=`${n.code}|${n.message}|${n.part??""}`;return r.has(s)?!1:(r.add(s),!0)})},facts:()=>S.facts.map(t=>({...t,output:m.output,combo:w,format:M})),covers:()=>u.covers(),drawCover:t=>u.drawCover(t),async ask(t,r){const n=[];for(const s of c)for(const e of s.layers){const o=e.answers.get(t);if(o)try{n.push({part:s.part.key,layer:e.spec.component,index:e.index,answer:await o(r)})}catch(d){S.ran(U(W(d),`${e.spec.component} (layer ${String(e.index+1)}) in part ${s.part.key} failed to answer ${String(t)}: ${B(d)}`,{part:s.part.key}))}}return n},dispose(){u.dispose(),p.dispose()}}}
2
+ import{problem as J}from"@allyhub/diagnostics";import{dimsCombo as L}from"@allyhub/piece";import{cuesIn as N,filmSummary as U,mixPlan as W}from"@allyhub/video-core";import{joinWords as B}from"@allyhub/piece";import{codeOf as R,messageOf as _}from"@allyhub/image-draw/errors";import{answerFilm as q,playFilm as D}from"./film.js";import{timelineFootage as E}from"./footage.js";function G(o){return JSON.stringify(o,(f,i)=>{if(typeof i=="function")return`fn:${String(i)}`;if(typeof i=="object"&&i!==null&&"sha256"in i&&"path"in i&&"url"in i){const p={...i};return delete p.url,delete p.matteUrl,delete p.denoisedUrl,p}return i})}export function facade(o){const{env:f,piece:i,stage:p,mounted:c,takes:j,captions:g,footage:y}=o,{drawer:l,measurer:u,embedder:x}=o,{source:k,combo:h,log:w,ledger:b}=f,{fps:M,dims:S,format:P,look:K,prefix:A}=i;let z=!1,v;const C=()=>{if(v)return v;const t={fps:M,width:S.width,height:S.height,duration:o.duration,background:o.background,parts:c.map(r=>r.part.title===void 0&&r.record.title!==void 0?{...r.part,title:r.record.title}:r.part),cues:[...o.cues],...y.placed.length>0?{footage:y.placed.map(E)}:{},...o.transitions.length>0?{transitions:[...o.transitions]}:{},...y.needs().length>0?{index:y.needs()}:{},audio:o.audio};return z&&(v=t),t},$={kind:"video",get timeline(){return C()},async ready(){await l.ready(),z=!0,v=void 0},summary:()=>U($),seek:(t,r)=>l.draw(t,r),words:()=>g.lines.flatMap(t=>[...t.words]),lines:()=>[...g.lines],captionOptions:()=>g.asked??null,measure:t=>u.measure(t),tracks:(t,r)=>u.tracks(t,r),inks:t=>u.inks(t),objects:t=>u.objects(t,r=>w.keysShowing(r)),stuck:()=>l.stuck(),seekLimit:i.seekLimitMs/1e3,setPlaying(t){l.setPlaying(t)},text(){return c.map(t=>{const r=j.results[t.n]??{},n=r.speech,s=r.shown??(n?B(n.words):void 0),e=n?.script??r.say?.text,a=o.notes.get(t.part.key);return{key:t.part.key,onScreen:[...new Set(t.record.onScreen??[])],...a===void 0?{}:{notes:a},...s===void 0?{}:{spoken:s},...e!==void 0&&s!==void 0&&e!==s?{speak:e}:{},...r.speechKey===void 0?{}:{speechKey:r.speechKey}}})},signature:()=>u.signature(),signatureAt:t=>u.signatureAt(t),partSignature:(t,r)=>u.partSignature(t,r),reads(){const t=w.reads(A,c.map(e=>e.part.key)),r=x.loaded.reduce((e,a)=>{const d=a.inner.reads(),O=(m,I)=>[...new Map(m.map(F=>[I(F),F])).values()];return{messages:O([...e.messages,...d.messages],m=>m.key),media:O([...e.media,...d.media],m=>m.path),data:O([...e.data,...d.data],m=>m.path)}},t),n=new Map,s=(e,a)=>{const d=n.get(e)??new Set;d.add(a),n.set(e,d)};for(const e of c)for(const a of e.record.reads.keys())a.startsWith("f:")&&s(a.slice(2),e.part.key);for(const e of c)e.part.speech&&s(e.part.speech.file,e.part.key);for(const e of y.placed)s(e.file,e.part);return{...r,media:r.media.flatMap(e=>{const a=n.get(e.path);return a?.size?[...a].sort().map(d=>({...e,part:d})):[e]})}},says:()=>j.says.map(t=>({...t})),signs(){const t={},r=L(k.dims,h),n=o.background;for(const s of c)t[s.part.key]=JSON.stringify({v:1,piece:k.piece,output:f.output,kind:"video",key:s.part.key,slot:s.part.slot??null,pick:s.part.slot===void 0?null:h[s.part.slot]??null,dims:r,format:P,fps:M,size:[S.width,S.height],frames:Math.round((s.part.end-s.part.start)*M),background:n,look:K,layers:s.layers.map(e=>[e.spec.component,e.spec.z??"front",Math.round(e.start*1e6)/1e6,Math.round(e.end*1e6)/1e6,G(e.props)]),custom:s.layers.some(e=>e.spec.component==="custom"||e.spec.component==="scenery"),words:o.words(s.n),heard:N(g.cues(),s.part.start,s.part.end),planes:s.part.planes.map(e=>e.overlay===!0?"overlay":e.behindPerson===!0),stack:s.layers.map(e=>[e.index,e.plane]),reads:[...s.record.reads.entries()].sort((e,a)=>e[0]<a[0]?-1:e[0]>a[0]?1:0)});return t},mixPlan:()=>W(C(),k.media,{seed:f.seedBase}),problems(){const t=[...b.problems,...x.loaded.flatMap(n=>n.inner.problems().map(s=>({...s,message:`In the video ${n.id}: ${s.message}`}))),...w.problems,...o.timingProblems,...b.run,...p.problems(c),...w.translationProblems()],r=new Set;return t.map(n=>({...n,piece:k.piece,output:f.output,combo:h,format:P})).filter(n=>{const s=`${n.code}|${n.message}|${n.part??""}`;return r.has(s)?!1:(r.add(s),!0)})},facts:()=>b.facts.map(t=>({...t,output:f.output,combo:h,format:P})),covers:()=>l.covers(),drawCover:t=>l.drawCover(t),async ask(t,r){const n=[];for(const s of c)for(const e of s.layers){const a=e.answers.get(t);if(a)try{n.push({part:s.part.key,layer:e.spec.component,index:e.index,answer:await a(r)})}catch(d){b.ran(J(R(d),`${e.spec.component} (layer ${String(e.index+1)}) in part ${s.part.key} failed to answer ${String(t)}: ${_(d)}`,{part:s.part.key}))}}return n},play:(t,r)=>D($,t,r),answer:t=>q($,t),dispose(){l.dispose(),p.dispose()}};return $}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{startPlayer as c}from"./player/player.js";export function startAt(t,n){let e=n?.t;const r=n?.part===void 0?void 0:t.parts.find(d=>d.key===n.part);if(r){const d=r.end-r.start,s=n?.offset??0,a=n?.dur,m=a===void 0||Math.abs(d-a)<1e-6;e=r.start+(m?s:s/Math.max(a,1e-6)*d),e=Math.min(e,r.end-1/t.fps)}return e}export async function playFilm(t,n,e){const r=t.timeline;e.post?.({type:"loaded",kind:t.kind,timeline:r,text:t.text(),reads:t.reads(),problems:t.problems(),mix:t.mixPlan()});const d=startAt(r,e.at),s=await c({output:t,stage:n,...e.media?{media:e.media}:{},...e.seed===void 0?{}:{seed:e.seed},...d===void 0?{}:{start:d},...e.post?{post:e.post}:{},...e.chrome===void 0?{}:{chrome:e.chrome}});return{command(a){s.command(a)}}}export function answerFilm(t,n){if(n.type==="objects")return t.objects(Number(n.t)).then(e=>({type:"objects",...e}))}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{backdropUnit as he,fact as Ue,faceAt as $e,faceOnFrame as pe,facesOnFrame as Ce,forOrient as le,fromEdited as Fe,hasFace as Pe,keyAt as me,MATTE_FEATHER as Oe,MATTE_SHRINK as Se,parsePunch as Ke,pixelRect as Le,placeFootage as Re,problem as Q,pullbackKeys as _e,PULLBACK_DUR as je,PULLBACK_SCALE as Te,PUNCH_CENTER as ke,PUNCH_SCALE as Be,punchKeys as De,REFRAME_FALLBACK as Ne,reframePath as Ge,reframeWindow as ze,sourceAt as He,toFrame as V}from"@allyhub/video-core";import{isBoxKeys as Ie}from"./embed.js";import{LoadFailure as We}from"./errors.js";const Je=/\.(png|jpe?g|webp)$/i,Ye=t=>(t.blur??0)>0||(t.dim??0)>0||(t.desaturate??0)>0||t.color!==void 0||t.image!==void 0,S=t=>Math.round(t*1e3)/1e3;export function footagePlanner(t,ge,be,xe){const{source:$,ledger:K,embed:ye}=t,{dims:f,fps:N}=ge,b=[],L=new Map,X=new Set,G=new Map,z=(e,n)=>{const o=G.get(e)??{file:e};o[n]=!0,G.set(e,o)},R=(e,n)=>{K.facts.push(Ue("fallback",{piece:$.piece,part:e},n))},we=(e,n,o)=>{const d=he(f.width,f.height),c=l=>Math.round(l*d*1e3)/1e3;let r;if(e.image!==void 0){if(r=t.mediaOf(e.image,o),r.sha256==="")return;if(r.kind!=="image"||!Je.test(r.path)){K.problems.push(Q("AK-A003",`The background image ${r.path} of footage() in part ${n} is not a PNG, JPEG or WebP image.`,{part:n,where:{file:$.file}}));return}}let u;if(e.color!==void 0){const l=CSS.supports("color",e.color)?xe(e.color):void 0;if(l===void 0)throw new Error(`footage() background color ${JSON.stringify(e.color)} in part ${n} is not a CSS color.`);u=l.length===9&&l.endsWith("00")?"transparent":l}return{backdrop:{...e.blur?{blur:c(e.blur)}:{},...e.dim?{dim:e.dim}:{},...e.desaturate?{desaturate:e.desaturate}:{},...u===void 0?{}:{color:u},...r?{image:r.path}:{},feather:c(e.feather??Oe),shrink:c(e.shrink??Se)},...r?{imageUrl:r.url}:{}}};return{plan:(e,n,o,d,c,r,u)=>{const l=e.file,v=l===void 0;let a;if(v){if(!o){K.problems.push(Q("AK-A001",`footage() in part ${n.key} names no file, so it shows the part's take, and the part has no take. Give footage a file, or give the part speech: take("./clip.mp4").`,{part:n.key,where:{file:$.file}}));return}a=o.media}else a=t.mediaOf(l,e.base);if(a.sha256==="")return;if(a.kind!=="video"){K.problems.push(Q("AK-A003",v?`footage() in part ${n.key} shows the part's take, and ${a.path} is not a video. Give footage a file, or take a video.`:`The footage ${a.path} in part ${n.key} is not a video (mp4, webm or mov).`,{part:n.key,where:{file:$.file}}));return}const k=V(n.start+c,N),_=V(n.start+r,N);if(_<=k)return;a.faces&&L.set(a.path,a.faces),a.matte===!0&&X.add(a.path);let C,F;if(v&&o&&d!==void 0){const i=o.ranges??[{from:o.from,to:o.from+o.dur}];if(C=S(Fe(i,k-d)),o.ranges&&o.ranges.length>1){const h=[{at:k,from:C}];let U=0;for(const A of o.ranges){const p=S(d+U);U>0&&p>k+1e-6&&p<_&&h.push({at:p,from:A.from}),U+=A.to-A.from}h.length>1&&(F=h)}}else C=Math.max(0,typeof e.from=="number"?e.from:0);const x=a.width!==void 0&&a.height!==void 0?{width:a.width,height:a.height}:void 0,Z=e.fit??"cover",H=le(e.box,f.orient),ee=le(e.crop,f.orient),te=Ie(H)?H:void 0,j=te?.map(i=>({t:V(n.start+Math.min(Math.max(u.at(i.t),c),r),N),box:i.box==="full"?[0,0,f.width,f.height]:Le(i.box,f.width,f.height),...i.ease?{ease:i.ease}:{}})).sort((i,h)=>i.t-h.t),Ae=te?"full":H??"full",P=j?.[0],M=Re({box:P?[P.box[0]/f.width,P.box[1]/f.height,P.box[2]/f.width,P.box[3]/f.height]:Ae,fit:Z,...ee?{crop:ee}:{},...x?{source:x}:{},frame:f}),ne=e.shape==="circle"||!e.radius?0:S(Math.min(e.radius*he(f.width,f.height),M.box[2]/2,M.box[3]/2));let I=M.crop,ae=M.picture,y,W;const oe=e.punchIn??[],w=e.pullback===void 0||e.pullback===!1?void 0:e.pullback===!0?{}:e.pullback;if((e.reframe!==void 0||oe.length>0||w)&&x){const i=M.box,h=ze(x,{w:i[2],h:i[3]}),U=typeof e.reframe=="object"&&"face"in e.reframe?e.reframe:void 0,A=e.reframe==="face"||U!==void 0;A&&!a.faces&&(z(a.path,"faces"),R(n.key,{file:a.path,missing:"face-track",for:"reframe",fallback:"centred"}));const p=a.faces,ie=e.speaker??p?.speaker;p&&e.speaker!==void 0&&!Pe(p,e.speaker)&&R(n.key,{file:a.path,missing:"face",face:e.speaker,for:"speaker",fallback:"centred"});const ve=typeof e.reframe=="object"&&"x"in e.reframe?e.reframe:A?Ne:{x:.5,y:.5},ce={start:k,end:_,from:C,speed:v?1:e.speed??1,...F?{cuts:F}:{}};y=Ge({track:A?p:void 0,speaker:ie,faceY:U?.faceY,focus:ve,window:h,source:x,layer:ce});const T=y[0]??{x:0,y:0};I=[T.x,T.y,h.w,h.h],ae=[...i],y.length<=1&&(y=void 0);const B=y,fe=(s,g)=>{if(g)return{cx:g.x,cy:g.y};const m=p?$e(p,He(ce,s),ie):void 0;if(!m)return{cx:ke.x,cy:ke.y};const q=B?me(B.map(O=>({t:O.t,v:O.x})),s):T.x,D=B?me(B.map(O=>({t:O.t,v:O.y})),s):T.y,Me=(m[0]+m[2]/2-q)/h.w,Ee=(m[1]+m[3]/2-D)/h.h;return{cx:S(Math.min(Math.max(Me,0),1)),cy:S(Math.min(Math.max(Ee,0),1))}},Y=[];for(const s of oe){const g=typeof s=="object"?{...s,ref:s.at}:{...Ke(String(s)),until:void 0},m=u.at(g.ref),q=g.until!==void 0?u.at(g.until):be.wordEnd(n.key,m),D=n.start+m;Y.push({start:D,end:n.start+Math.max(q,m),scale:g.scale??Be,...fe(D,typeof s=="object"?s.center:void 0),...typeof s=="object"&&s.in!==void 0?{in:s.in}:{},...typeof s=="object"&&s.out!==void 0?{out:s.out}:{},...typeof s=="object"&&s.ease!==void 0?{ease:s.ease}:{}})}const de=Y.length>0?De(Y):[],ue=w?_e(k,{scale:w.scale??Te,dur:w.dur??je,...fe(k,w.center),...w.ease?{ease:w.ease}:{}},de):de;ue.length>0&&(W=ue)}let J=!1;u.cutout&&(a.matte===!0?J=!0:(z(a.path,"matte"),R(n.key,{file:a.path,missing:"person-matte",for:"behind-person",fallback:"in-front"})));let E;if(e.background&&Ye(e.background)){const i=we(e.background,n.key,e.base);i&&a.matte===!0?E=i:i&&(z(a.path,"matte"),R(n.key,{file:a.path,missing:"person-matte",for:"background",fallback:"unprocessed"}))}if(ye)throw new We("embedded_footage",`${$.piece}'s part ${n.key} plays ${a.path}: a video shown inside another (a scenery's screen, a part's video take, a footage of a video item) draws its graphic layers only, not footage yet.`);const re=J&&u.person,se={part:n.key,file:a.path,start:k,end:_,from:C,speed:v?1:e.speed??1,gainDb:e.gainDb??0,audio:(e.audio??!1)&&a.audio===!0,...v?{take:!0}:{},fit:Z,box:M.box,...I?{crop:I}:{},picture:ae,...F?{cuts:F}:{},...y?{pan:y}:{},...W?{zoom:W}:{},...j&&j.length>1?{boxes:j}:{},...u.over>0?{over:u.over}:{},...J?{cutout:!0}:{},...e.sharpen?{sharpen:e.sharpen}:{},...E?{background:E.backdrop}:{},...E?.imageUrl?{imageUrl:E.imageUrl}:{},...(re||E)&&a.matteUrl?{matteUrl:a.matteUrl}:{},...re?{personOver:!0}:{},...e.shape==="circle"?{shape:"circle"}:{},...ne>0?{radius:ne}:{},...e.speaker===void 0?{}:{speaker:e.speaker},url:a.url,...a.duration===void 0?{}:{duration:a.duration},...x?{source:x}:{}};return b.push(se),se},placed:b,needs:()=>[...G.values()],speakerIn:e=>b.some(n=>n.part===e&&(L.has(n.file)||X.has(n.file))),faceAt(e,n,o){for(let d=b.length-1;d>=0;d--){const c=b[d];if(c?.part!==e||n<c.start||n>=c.end)continue;const r=L.get(c.file);if(!r)continue;const u=o===void 0?pe(c,r,n):pe(c,r,n,o);if(u)return u}},facesAt(e,n){for(let o=b.length-1;o>=0;o--){const d=b[o];if(d?.part!==e||n<d.start||n>=d.end)continue;const c=L.get(d.file);if(!c)continue;const r=Ce(d,c,n);if(r.length>0)return r}return[]}}}export function timelineFootage(t){return{part:t.part,file:t.file,start:t.start,end:t.end,from:t.from,speed:t.speed,gainDb:t.gainDb,audio:t.audio,...t.take?{take:!0}:{},fit:t.fit,box:t.box,...t.crop?{crop:t.crop}:{},picture:t.picture,...t.cuts?{cuts:t.cuts}:{},...t.pan?{pan:t.pan}:{},...t.zoom?{zoom:t.zoom}:{},...t.boxes?{boxes:t.boxes}:{},...t.over?{over:t.over}:{},...t.cutout?{cutout:!0}:{},...t.sharpen?{sharpen:t.sharpen}:{},...t.background?{background:t.background}:{},...t.shape?{shape:t.shape}:{},...t.radius?{radius:t.radius}:{},...t.speaker===void 0?{}:{speaker:t.speaker}}}
2
+ import{problem as Q}from"@allyhub/diagnostics";import{faceAt as Ue,hasFace as $e,toFrame as V}from"@allyhub/piece";import{backdropUnit as he,fact as Ce,faceOnFrame as me,facesOnFrame as Fe,forOrient as pe,fromEdited as Pe,keyAt as le,MATTE_FEATHER as Oe,MATTE_SHRINK as Se,parsePunch as Ke,pixelRect as Le,placeFootage as Re,pullbackKeys as _e,PULLBACK_DUR as je,PULLBACK_SCALE as Te,PUNCH_CENTER as ke,PUNCH_SCALE as Be,punchKeys as De,REFRAME_FALLBACK as Ne,reframePath as Ge,reframeWindow as ze,sourceAt as He}from"@allyhub/video-core";import{isBoxKeys as Ie}from"./embed.js";import{LoadFailure as We}from"@allyhub/image-draw/errors";const Je=/\.(png|jpe?g|webp)$/i,Ye=t=>(t.blur??0)>0||(t.dim??0)>0||(t.desaturate??0)>0||t.color!==void 0||t.image!==void 0,S=t=>Math.round(t*1e3)/1e3;export function footagePlanner(t,ge,be,xe){const{source:$,ledger:K,embed:ye}=t,{dims:f,fps:N}=ge,b=[],L=new Map,X=new Set,G=new Map,z=(e,n)=>{const o=G.get(e)??{file:e};o[n]=!0,G.set(e,o)},R=(e,n)=>{K.facts.push(Ce("fallback",{piece:$.piece,part:e},n))},we=(e,n,o)=>{const d=he(f.width,f.height),c=p=>Math.round(p*d*1e3)/1e3;let r;if(e.image!==void 0){if(r=t.mediaOf(e.image,o),r.sha256==="")return;if(r.kind!=="image"||!Je.test(r.path)){K.problems.push(Q("AK-A003",`The background image ${r.path} of footage() in part ${n} is not a PNG, JPEG or WebP image.`,{part:n,where:{file:$.file}}));return}}let u;if(e.color!==void 0){const p=CSS.supports("color",e.color)?xe(e.color):void 0;if(p===void 0)throw new Error(`footage() background color ${JSON.stringify(e.color)} in part ${n} is not a CSS color.`);u=p.length===9&&p.endsWith("00")?"transparent":p}return{backdrop:{...e.blur?{blur:c(e.blur)}:{},...e.dim?{dim:e.dim}:{},...e.desaturate?{desaturate:e.desaturate}:{},...u===void 0?{}:{color:u},...r?{image:r.path}:{},feather:c(e.feather??Oe),shrink:c(e.shrink??Se)},...r?{imageUrl:r.url}:{}}};return{plan:(e,n,o,d,c,r,u)=>{const p=e.file,v=p===void 0;let a;if(v){if(!o){K.problems.push(Q("AK-A001",`footage() in part ${n.key} names no file, so it shows the part's take, and the part has no take. Give footage a file, or give the part speech: take("./clip.mp4").`,{part:n.key,where:{file:$.file}}));return}a=o.media}else a=t.mediaOf(p,e.base);if(a.sha256==="")return;if(a.kind!=="video"){K.problems.push(Q("AK-A003",v?`footage() in part ${n.key} shows the part's take, and ${a.path} is not a video. Give footage a file, or take a video.`:`The footage ${a.path} in part ${n.key} is not a video (mp4, webm or mov).`,{part:n.key,where:{file:$.file}}));return}const k=V(n.start+c,N),_=V(n.start+r,N);if(_<=k)return;a.faces&&L.set(a.path,a.faces),a.matte===!0&&X.add(a.path);let C,F;if(v&&o&&d!==void 0){const i=o.ranges??[{from:o.from,to:o.from+o.dur}];if(C=S(Pe(i,k-d)),o.ranges&&o.ranges.length>1){const h=[{at:k,from:C}];let U=0;for(const A of o.ranges){const m=S(d+U);U>0&&m>k+1e-6&&m<_&&h.push({at:m,from:A.from}),U+=A.to-A.from}h.length>1&&(F=h)}}else C=Math.max(0,typeof e.from=="number"?e.from:0);const x=a.width!==void 0&&a.height!==void 0?{width:a.width,height:a.height}:void 0,Z=e.fit??"cover",H=pe(e.box,f.orient),ee=pe(e.crop,f.orient),te=Ie(H)?H:void 0,j=te?.map(i=>({t:V(n.start+Math.min(Math.max(u.at(i.t),c),r),N),box:i.box==="full"?[0,0,f.width,f.height]:Le(i.box,f.width,f.height),...i.ease?{ease:i.ease}:{}})).sort((i,h)=>i.t-h.t),Ae=te?"full":H??"full",P=j?.[0],M=Re({box:P?[P.box[0]/f.width,P.box[1]/f.height,P.box[2]/f.width,P.box[3]/f.height]:Ae,fit:Z,...ee?{crop:ee}:{},...x?{source:x}:{},frame:f}),ne=e.shape==="circle"||!e.radius?0:S(Math.min(e.radius*he(f.width,f.height),M.box[2]/2,M.box[3]/2));let I=M.crop,ae=M.picture,y,W;const oe=e.punchIn??[],w=e.pullback===void 0||e.pullback===!1?void 0:e.pullback===!0?{}:e.pullback;if((e.reframe!==void 0||oe.length>0||w)&&x){const i=M.box,h=ze(x,{w:i[2],h:i[3]}),U=typeof e.reframe=="object"&&"face"in e.reframe?e.reframe:void 0,A=e.reframe==="face"||U!==void 0;A&&!a.faces&&(z(a.path,"faces"),R(n.key,{file:a.path,missing:"face-track",for:"reframe",fallback:"centred"}));const m=a.faces,ie=e.speaker??m?.speaker;m&&e.speaker!==void 0&&!$e(m,e.speaker)&&R(n.key,{file:a.path,missing:"face",face:e.speaker,for:"speaker",fallback:"centred"});const ve=typeof e.reframe=="object"&&"x"in e.reframe?e.reframe:A?Ne:{x:.5,y:.5},ce={start:k,end:_,from:C,speed:v?1:e.speed??1,...F?{cuts:F}:{}};y=Ge({track:A?m:void 0,speaker:ie,faceY:U?.faceY,focus:ve,window:h,source:x,layer:ce});const T=y[0]??{x:0,y:0};I=[T.x,T.y,h.w,h.h],ae=[...i],y.length<=1&&(y=void 0);const B=y,fe=(s,g)=>{if(g)return{cx:g.x,cy:g.y};const l=m?Ue(m,He(ce,s),ie):void 0;if(!l)return{cx:ke.x,cy:ke.y};const q=B?le(B.map(O=>({t:O.t,v:O.x})),s):T.x,D=B?le(B.map(O=>({t:O.t,v:O.y})),s):T.y,Me=(l[0]+l[2]/2-q)/h.w,Ee=(l[1]+l[3]/2-D)/h.h;return{cx:S(Math.min(Math.max(Me,0),1)),cy:S(Math.min(Math.max(Ee,0),1))}},Y=[];for(const s of oe){const g=typeof s=="object"?{...s,ref:s.at}:{...Ke(String(s)),until:void 0},l=u.at(g.ref),q=g.until!==void 0?u.at(g.until):be.wordEnd(n.key,l),D=n.start+l;Y.push({start:D,end:n.start+Math.max(q,l),scale:g.scale??Be,...fe(D,typeof s=="object"?s.center:void 0),...typeof s=="object"&&s.in!==void 0?{in:s.in}:{},...typeof s=="object"&&s.out!==void 0?{out:s.out}:{},...typeof s=="object"&&s.ease!==void 0?{ease:s.ease}:{}})}const de=Y.length>0?De(Y):[],ue=w?_e(k,{scale:w.scale??Te,dur:w.dur??je,...fe(k,w.center),...w.ease?{ease:w.ease}:{}},de):de;ue.length>0&&(W=ue)}let J=!1;u.cutout&&(a.matte===!0?J=!0:(z(a.path,"matte"),R(n.key,{file:a.path,missing:"person-matte",for:"behind-person",fallback:"in-front"})));let E;if(e.background&&Ye(e.background)){const i=we(e.background,n.key,e.base);i&&a.matte===!0?E=i:i&&(z(a.path,"matte"),R(n.key,{file:a.path,missing:"person-matte",for:"background",fallback:"unprocessed"}))}if(ye)throw new We("embedded_footage",`${$.piece}'s part ${n.key} plays ${a.path}: a video shown inside another (a scenery's screen, a part's video take, a footage of a video item) draws its graphic layers only, not footage yet.`);const re=J&&u.person,se={part:n.key,file:a.path,start:k,end:_,from:C,speed:v?1:e.speed??1,gainDb:e.gainDb??0,audio:(e.audio??!1)&&a.audio===!0,...v?{take:!0}:{},fit:Z,box:M.box,...I?{crop:I}:{},picture:ae,...F?{cuts:F}:{},...y?{pan:y}:{},...W?{zoom:W}:{},...j&&j.length>1?{boxes:j}:{},...u.over>0?{over:u.over}:{},...J?{cutout:!0}:{},...e.sharpen?{sharpen:e.sharpen}:{},...E?{background:E.backdrop}:{},...E?.imageUrl?{imageUrl:E.imageUrl}:{},...(re||E)&&a.matteUrl?{matteUrl:a.matteUrl}:{},...re?{personOver:!0}:{},...e.shape==="circle"?{shape:"circle"}:{},...ne>0?{radius:ne}:{},...e.speaker===void 0?{}:{speaker:e.speaker},url:a.url,...a.duration===void 0?{}:{duration:a.duration},...x?{source:x}:{}};return b.push(se),se},placed:b,needs:()=>[...G.values()],speakerIn:e=>b.some(n=>n.part===e&&(L.has(n.file)||X.has(n.file))),faceAt(e,n,o){for(let d=b.length-1;d>=0;d--){const c=b[d];if(c?.part!==e||n<c.start||n>=c.end)continue;const r=L.get(c.file);if(!r)continue;const u=o===void 0?me(c,r,n):me(c,r,n,o);if(u)return u}},facesAt(e,n){for(let o=b.length-1;o>=0;o--){const d=b[o];if(d?.part!==e||n<d.start||n>=d.end)continue;const c=L.get(d.file);if(!c)continue;const r=Fe(d,c,n);if(r.length>0)return r}return[]}}}export function timelineFootage(t){return{part:t.part,file:t.file,start:t.start,end:t.end,from:t.from,speed:t.speed,gainDb:t.gainDb,audio:t.audio,...t.take?{take:!0}:{},fit:t.fit,box:t.box,...t.crop?{crop:t.crop}:{},picture:t.picture,...t.cuts?{cuts:t.cuts}:{},...t.pan?{pan:t.pan}:{},...t.zoom?{zoom:t.zoom}:{},...t.boxes?{boxes:t.boxes}:{},...t.over?{over:t.over}:{},...t.cutout?{cutout:!0}:{},...t.sharpen?{sharpen:t.sharpen}:{},...t.background?{background:t.background}:{},...t.shape?{shape:t.shape}:{},...t.radius?{radius:t.radius}:{},...t.speaker===void 0?{}:{speaker:t.speaker}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{heldTime as ct,isPartSpec as dt,LOAD_WAITS as H,numericRef as pt,problem as P,toFrame as lt,transitionAt as ft,showLayer as k}from"@allyhub/video-core";import{layerNames as mt,resolveTimes as ut,windowOf as yt}from"./compose.js";import{consoleAt as N,consoleParts as wt}from"./console.js";import{codeOf as J,LoadFailure as ht,messageOf as Q}from"./errors.js";import{codePoints as gt,emojiOf as kt,loadFaces as $t,loadTextFonts as X,namedFamilies as Y,propFamilies as St,stringsOf as xt,styleSheetFamilies as Mt}from"./fonts.js";import{realNow as v,within as vt}from"./guards.js";import{inspectFrame as Lt,screenTexts as At}from"./inspect.js";import{partTitles as Ft}from"./titles.js";export const STUCK_WAIT=1e3,newDrawState=()=>({mode:"picture",plane:void 0});export function withLayout(f,L){const g=f.mode;f.mode="layout";try{return L()}finally{f.mode=g}}export const drawnAt=new WeakMap;const bt=f=>Math.max(0,f-.4);export function createDrawer(f){const{env:L,piece:g,stage:m,mounted:h,transitions:Z,clips:O,state:$}=f,{guards:A,log:S,ledger:i,embed:W,options:tt,seedBase:E,partSeed:B}=L,{fps:x,look:M,dims:R,format:et,seekLimitMs:_}=g,V=f.covers,j=f.transitionStage;let F,D=[],I,T,q=!1,U=!1;const nt=n=>`${E}:${String(Math.round(n*x))}`,ot=(n,t,r)=>{const s=n.part,c=($.plane===void 0||t.plane===$.plane)&&r>=t.start&&r<t.end;if(k(t.el,c),!c)return;const u=i.running;i.running={part:s.key,layer:t.spec.component,index:t.index,t:s.start+r,what:`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key}`},drawnAt.set(t.el,{by:t.spec.component==="custom"?`custom@${g.writtenIn}`:t.spec.component,t:r});try{N({phase:"render",part:s.key,layer:t.spec.component,index:t.index,t:r},()=>{t.spec.render(t.el,r,t.props,t.ctx)})}catch(a){i.ran(P(J(a),`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key} failed while drawing: ${Q(a)}`,{part:s.key,t:s.start+r}))}finally{i.running=u}},st=(n,t)=>{m.styles&&(m.styles.part=n.part.key),S.tap=(r,s)=>n.record.reads.set(r,s);try{for(const r of n.layers)ot(n,r,t)}finally{m.styles&&(m.styles.part=void 0),S.tap=void 0}},C=n=>{for(const t of D)n.includes(t)||k(t.el,!1);for(const t of n)k(t.el,!0);D=n},K=(n,t,r)=>{const s=ct(n.part,t,x),p=s+r;A.setMoment(p-n.part.start,B(n.part.key,Math.round((s-n.part.start)*x))),k(n.el,!1),n.el.getBoundingClientRect(),k(n.el,!0),st(n,p-n.part.start),A.flushFrames()};async function z(n,t={}){if(U)return;const r=$.mode;$.mode=t.mode??"picture",$.plane=t.plane;try{await at(n,t.offset??0,t.part)}finally{$.mode=r}}async function at(n,t,r){const s=lt(Math.min(Math.max(n,0),f.duration-1/x),x),p=Math.min(Math.max(t,0),(1-1e-6)/x),c=s+p,u=r===void 0?void 0:h.find(d=>d.part.key===r),a=u?void 0:ft(Z,s,x),l=a&&h.find(d=>d.part.key===a.from),w=a&&h.find(d=>d.part.key===a.part);if(a&&l&&w&&j)C([l,w]),F=s<w.part.start?l:w,K(l,s,p),K(w,s,p),j.place(a,l,w,s);else{const d=u??h.find(G=>c>=G.part.start&&c<G.part.end)??h.at(-1);C(d?[d]:[]),F=d,j?.hideVeil(),d?(j?.rest(d),K(d,s,p)):(A.setMoment(c,nt(s)),A.flushFrames())}const e=I===void 0||Math.abs(c-I)>.5;I=c,O.draw(c,e);const o=q?Math.min(_,STUCK_WAIT):_,y=v(),b=await i.settle(o);if(b.push(...(await m.picturesDrawn(o-(v()-y))).map(d=>`the picture ${d} to decode`)),T=void 0,b.length>0){q=!0;const d=F?.part.key;T=`Drawing ${d===void 0?"a moment":`part ${d}`} did not finish in ${String(o/1e3)} s (video({ seekLimit }) sets it): it was still waiting for ${b.join("; ")}. It was not waited for again, so the frame may show the moment before.`,i.ran(P("AK-P003",T,{...d===void 0?{}:{part:d},t:c}))}await Promise.resolve()}async function rt(){const n=[...S.texts].join(" ").slice(0,2e4)||"Aa",t=new Set([M.font.display,M.font.body].flatMap(a=>a.split(",")).map(a=>a.trim()).filter(a=>a.startsWith('"'))),r=[];for(const a of t)for(const l of[400,700])r.push(document.fonts.load(`${String(l)} 40px ${a}`,n).catch(()=>[]));const s=h.flatMap(a=>a.layers.flatMap(l=>xt(l.props))),p=new Set(Y(M.font.emoji)),c=new Set([...[M.font.display,M.font.body,M.font.mono].flatMap(Y),...Mt(),...St(s)].filter(a=>!p.has(a)));r.push($t(c,gt([n,...s])));const u=kt([...S.texts,...s]);u&&r.push(document.fonts.load(`400 40px ${M.font.emoji}`,u).catch(()=>[])),await Promise.all(r),await document.fonts.ready}async function it(){W||wt(h.map(e=>e.part.key)),await i.timed("loading fonts",rt);for(const e of h){k(e.el,!0),A.setMoment(0,B(e.part.key,0)),m.styles&&(m.styles.part=e.part.key),S.tap=(o,y)=>e.record.reads.set(o,y);for(const o of e.layers){k(o.el,!0),i.doing=`${o.spec.component} in part ${e.part.key}`;const y=v();i.running={part:e.part.key,layer:o.spec.component,index:o.index,what:`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key}, mounting`};try{N({phase:"mount",part:e.part.key,layer:o.spec.component,index:o.index},()=>{o.spec.mount(o.el,o.props,o.ctx)}),i.times.push({what:`mounting ${i.doing}`,ms:v()-y})}catch(b){i.ran(P(J(b),`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key} failed while mounting: ${Q(b)}`,{part:e.part.key}))}finally{i.running=void 0}k(o.el,!1)}S.tap=void 0,m.styles&&(m.styles.part=void 0),k(e.el,!1)}F=void 0,D=[];const n=H*_,t=v(),r=await i.settle(n),s=Array.from(m.el.querySelectorAll("img")),p=await vt(s.map(e=>e.decode().then(()=>e.currentSrc||e.src,()=>e.currentSrc||e.src)),n-(v()-t)),c=s.filter((e,o)=>p[o]===void 0).map(e=>`the picture ${e.getAttribute("src")??""} to decode`);r.length+c.length>0&&i.ran(P("AK-P003",`Loading did not finish in ${String(n/1e3)} s (${String(H)} × video({ seekLimit })): it was still waiting for ${[...r,...c].join("; ")}. It was not waited for again.`)),await X(m.el),await document.fonts.ready;const u=new Map;i.doing=void 0;for(const e of h){i.doing=`part ${e.part.key}'s still`,await i.timed(`drawing ${i.doing}`,()=>z(e.part.still,{part:e.part.key}));const o=At(e.el,{screens:!1});e.record.onScreen=o.map(y=>y.text),u.set(e.part.key,o),tt.purpose==="check"&&i.run.push(...Lt({part:e.part.key,t:e.part.still,section:e.el,stage:m.el,format:et,messagesFile:S.file,width:R.width,height:R.height,keysShowing:y=>S.keysShowing(y)}))}const a=Ft(u);for(const e of h){const o=a.get(e.part.key);e.part.title===void 0&&o!==void 0&&(e.record.title=o)}i.doing=void 0,await i.timed("decoding the stage's pictures",()=>m.sweep()),i.loading=!1;const l=v()-L.start,w=g.loadLimitMs;if(l>w&&!W){const e=[...i.times].sort((o,y)=>y.ms-o.ms).slice(0,3).map(o=>`${o.what} ${(o.ms/1e3).toFixed(1)} s`);i.run.push(P("AK-P002",`Loading took ${(l/1e3).toFixed(1)} seconds (the limit is ${String(w/1e3)} seconds; video({ loadLimit }) sets it). The longest: ${e.join("; ")}.`))}}return{state:$,get current(){return F},ready:it,draw:z,forLayout:n=>withLayout($,n),stuck:()=>T,covers:()=>V.map(n=>({key:n.key,layers:mt(n.layers)})),async drawCover(n){const t=V[n];if(!t)throw new ht("no_cover",`There is no cover ${String(n)}.`);C([]),F=void 0,j?.hideVeil();const r=document.createElement("section");r.className="ak-part ak-cover",Object.assign(r.style,{position:"absolute",inset:"0",overflow:"hidden"}),m.el.append(r);const s=t.dur??g.defaults.dur,p=u=>pt(u)??0,c=typeof t.still=="function"?t.still(s):t.still===void 0?bt(s):p(t.still);A.setMoment(c,`${E}:cover:${String(n)}`);for(const[u,a]of t.layers.entries()){if(a.__allyhubLayer==="footage")continue;const[l,w]=yt(a,s,p);if(c<l||c>=w)continue;const e=document.createElement("div");e.className="ak-layer",Object.assign(e.style,{position:"absolute",inset:"0"}),r.append(e);const o=a.times?ut(a.props,a.times,p):a.props,y=f.contexts({dur:s,words:()=>[],at:p,start:l,end:w});N({phase:"cover",part:t.key,layer:a.component,index:u,t:c},()=>{a.mount(e,o,y),a.render(e,c,o,y)})}await X(r),await document.fonts.ready},setPlaying(n){O.setPlaying(n)},dispose(){U=!0,O.dispose()}}}export async function coverParts(f,L){if(!f.options.covers)return[];const g=await f.options.covers(L);return Array.isArray(g)?g.filter(dt):[]}
2
+ import{problem as O}from"@allyhub/diagnostics";import{LOAD_WAITS as H,toFrame as pe,showLayer as $}from"@allyhub/piece";import{heldTime as le,isPartSpec as fe,transitionAt as me}from"@allyhub/video-core";import{numericRef as ue}from"@allyhub/piece";import{layerNames as ye,resolveTimes as we,windowOf as he}from"./compose.js";import{consoleAt as C,consoleParts as ge}from"@allyhub/piece/page";import{baseOf as J,contentOf as ke,styleLayer as Q}from"@allyhub/image-draw/layer-style";import{codeOf as X,LoadFailure as $e,messageOf as Y}from"@allyhub/image-draw/errors";import{codePoints as xe,emojiOf as Se,loadFaces as ve,loadTextFonts as Z,namedFamilies as ee,propFamilies as be,stringsOf as Me,styleSheetFamilies as Ae}from"@allyhub/image-draw/fonts";import{realNow as M,within as Le}from"@allyhub/image-draw/guards";import{inspectFrame as je,screenTexts as Fe}from"@allyhub/image-draw/inspect";import{partTitles as Oe}from"./titles.js";export const STUCK_WAIT=1e3,newDrawState=()=>({mode:"picture",plane:void 0});export function withLayout(m,A){const k=m.mode;m.mode="layout";try{return A()}finally{m.mode=k}}export const drawnAt=new WeakMap;const Pe=m=>Math.max(0,m-.4);export function createDrawer(m){const{env:A,piece:k,stage:u,mounted:g,transitions:te,clips:T,state:x}=m,{guards:L,log:S,ledger:i,embed:N,options:ne,seedBase:W,partSeed:B}=A,{fps:v,look:b,dims:R,format:oe,seekLimitMs:I}=k,V=m.covers,F=m.transitionStage;let j,K=[],E,P,q=!1,U=!1;const se=n=>`${W}:${String(Math.round(n*v))}`,re=(n,e,a)=>{const r=n.part,d=(x.plane===void 0||e.plane===x.plane)&&a>=e.start&&a<e.end;if($(e.el,d),!d)return;const y=i.running;i.running={part:r.key,layer:e.spec.component,index:e.index,t:r.start+a,what:`${e.spec.component} (layer ${String(e.index+1)}) in part ${r.key}`},drawnAt.set(e.el,{by:e.spec.component==="custom"?`custom@${k.writtenIn}`:e.spec.component,t:a});try{C({phase:"render",part:r.key,layer:e.spec.component,index:e.index,t:a},()=>{e.spec.render(e.content,a,e.props,e.ctx)})}catch(s){i.ran(O(X(s),`${e.spec.component} (layer ${String(e.index+1)}) in part ${r.key} failed while drawing: ${Y(s)}`,{part:r.key,t:r.start+a}))}finally{i.running=y}},ae=(n,e)=>{u.styles&&(u.styles.part=n.part.key),S.tap=(a,r)=>n.record.reads.set(a,r);try{for(const a of n.layers)re(n,a,e)}finally{u.styles&&(u.styles.part=void 0),S.tap=void 0}},_=n=>{for(const e of K)n.includes(e)||$(e.el,!1);for(const e of n)$(e.el,!0);K=n},D=(n,e,a)=>{const r=le(n.part,e,v),l=r+a;L.setMoment(l-n.part.start,B(n.part.key,Math.round((r-n.part.start)*v))),$(n.el,!1),n.el.getBoundingClientRect(),$(n.el,!0),ae(n,l-n.part.start),L.flushFrames()};async function z(n,e={}){if(U)return;const a=x.mode;x.mode=e.mode??"picture",x.plane=e.plane;try{await ie(n,e.offset??0,e.part)}finally{x.mode=a}}async function ie(n,e,a){const r=pe(Math.min(Math.max(n,0),m.duration-1/v),v),l=Math.min(Math.max(e,0),(1-1e-6)/v),d=r+l,y=a===void 0?void 0:g.find(c=>c.part.key===a),s=y?void 0:me(te,r,v),f=s&&g.find(c=>c.part.key===s.from),w=s&&g.find(c=>c.part.key===s.part);if(s&&f&&w&&F)_([f,w]),j=r<w.part.start?f:w,D(f,r,l),D(w,r,l),F.place(s,f,w,r);else{const c=y??g.find(G=>d>=G.part.start&&d<G.part.end)??g.at(-1);_(c?[c]:[]),j=c,F?.hideVeil(),c?(F?.rest(c),D(c,r,l)):(L.setMoment(d,se(r)),L.flushFrames())}const t=E===void 0||Math.abs(d-E)>.5;E=d,T.draw(d,t);const o=q?Math.min(I,STUCK_WAIT):I,p=M(),h=await i.settle(o);if(h.push(...(await u.picturesDrawn(o-(M()-p))).map(c=>`the picture ${c} to decode`)),P=void 0,h.length>0){q=!0;const c=j?.part.key;P=`Drawing ${c===void 0?"a moment":`part ${c}`} did not finish in ${String(o/1e3)} s (video({ seekLimit }) sets it): it was still waiting for ${h.join("; ")}. It was not waited for again, so the frame may show the moment before.`,i.ran(O("AK-P003",P,{...c===void 0?{}:{part:c},t:d}))}await Promise.resolve()}async function ce(){const n=[...S.texts].join(" ").slice(0,2e4)||"Aa",e=new Set([b.font.display,b.font.body].flatMap(s=>s.split(",")).map(s=>s.trim()).filter(s=>s.startsWith('"'))),a=[];for(const s of e)for(const f of[400,700])a.push(document.fonts.load(`${String(f)} 40px ${s}`,n).catch(()=>[]));const r=g.flatMap(s=>s.layers.flatMap(f=>Me(f.props))),l=new Set(ee(b.font.emoji)),d=new Set([...[b.font.display,b.font.body,b.font.mono].flatMap(ee),...Ae(),...be(r)].filter(s=>!l.has(s)));a.push(ve(d,xe([n,...r])));const y=Se([...S.texts,...r]);y&&a.push(document.fonts.load(`400 40px ${b.font.emoji}`,y).catch(()=>[])),await Promise.all(a),await document.fonts.ready}async function de(){N||ge(g.map(t=>t.part.key)),await i.timed("loading fonts",ce);for(const t of g){$(t.el,!0),L.setMoment(0,B(t.part.key,0)),u.styles&&(u.styles.part=t.part.key),S.tap=(o,p)=>t.record.reads.set(o,p);for(const o of t.layers){$(o.el,!0),i.doing=`${o.spec.component} in part ${t.part.key}`;const p=M();i.running={part:t.part.key,layer:o.spec.component,index:o.index,what:`${o.spec.component} (layer ${String(o.index+1)}) in part ${t.part.key}, mounting`};try{C({phase:"mount",part:t.part.key,layer:o.spec.component,index:o.index},()=>{if(o.spec.mount(o.content,o.props,o.ctx),o.spec.clipping===!0)throw Object.assign(new Error("clipping in a video's part: clip it with its base inside a group(), where the layers lie side by side"),{code:"AK-I007"});const h=Q(o.el,{layer:o.spec,ctx:o.ctx,frame:o.ctx.dims,base:J(o.spec)});if(h!==void 0)throw Object.assign(new Error(h),{code:"AK-I007"})}),i.times.push({what:`mounting ${i.doing}`,ms:M()-p})}catch(h){i.ran(O(X(h),`${o.spec.component} (layer ${String(o.index+1)}) in part ${t.part.key} failed while mounting: ${Y(h)}`,{part:t.part.key}))}finally{i.running=void 0}$(o.el,!1)}S.tap=void 0,u.styles&&(u.styles.part=void 0),$(t.el,!1)}j=void 0,K=[];const n=H*I,e=M(),a=await i.settle(n),r=Array.from(u.el.querySelectorAll("img")),l=await Le(r.map(t=>t.decode().then(()=>t.currentSrc||t.src,()=>t.currentSrc||t.src)),n-(M()-e)),d=r.filter((t,o)=>l[o]===void 0).map(t=>`the picture ${t.getAttribute("src")??""} to decode`);a.length+d.length>0&&i.ran(O("AK-P003",`Loading did not finish in ${String(n/1e3)} s (${String(H)} × video({ seekLimit })): it was still waiting for ${[...a,...d].join("; ")}. It was not waited for again.`)),await Z(u.el),await document.fonts.ready;const y=new Map;i.doing=void 0;for(const t of g){i.doing=`part ${t.part.key}'s still`,await i.timed(`drawing ${i.doing}`,()=>z(t.part.still,{part:t.part.key}));const o=Fe(t.el,{screens:!1});t.record.onScreen=o.map(p=>p.text),y.set(t.part.key,o),ne.purpose==="check"&&i.run.push(...je({part:t.part.key,t:t.part.still,section:t.el,stage:u.el,format:oe,messagesFile:p=>S.fileOfKeys(p),width:R.width,height:R.height,keysShowing:p=>S.keysShowing(p)}))}const s=Oe(y);for(const t of g){const o=s.get(t.part.key);t.part.title===void 0&&o!==void 0&&(t.record.title=o)}i.doing=void 0,await i.timed("decoding the stage's pictures",()=>u.sweep()),i.loading=!1;const f=M()-A.start,w=k.loadLimitMs;if(f>w&&!N){const t=[...i.times].sort((o,p)=>p.ms-o.ms).slice(0,3).map(o=>`${o.what} ${(o.ms/1e3).toFixed(1)} s`);i.run.push(O("AK-P002",`Loading took ${(f/1e3).toFixed(1)} seconds (the limit is ${String(w/1e3)} seconds; video({ loadLimit }) sets it). The longest: ${t.join("; ")}.`))}}return{state:x,get current(){return j},ready:de,draw:z,forLayout:n=>withLayout(x,n),stuck:()=>P,covers:()=>V.map(n=>({key:n.key,layers:ye(n.layers)})),async drawCover(n){const e=V[n];if(!e)throw new $e("no_cover",`There is no cover ${String(n)}.`);_([]),j=void 0,F?.hideVeil();const a=document.createElement("section");a.className="ak-part ak-cover",Object.assign(a.style,{position:"absolute",inset:"0",overflow:"hidden"}),u.el.append(a);const r=e.dur??k.defaults.dur,l=y=>ue(y)??0,d=typeof e.still=="function"?e.still(r):e.still===void 0?Pe(r):l(e.still);L.setMoment(d,`${W}:cover:${String(n)}`);for(const[y,s]of e.layers.entries()){if(s.__allyhubLayer==="footage"||s.visible===!1)continue;const[f,w]=he(s,r,l);if(d<f||d>=w)continue;const t=document.createElement("div");t.className="ak-layer",Object.assign(t.style,{position:"absolute",inset:"0"}),a.append(t);const o=s.times?we(s.props,s.times,l):s.props,p=m.contexts({dur:r,words:()=>[],at:l,start:f,end:w});C({phase:"cover",part:e.key,layer:s.component,index:y,t:d},()=>{const h=ke(t,s,p.dims);s.mount(h,o,p);const c=Q(t,{layer:s,ctx:p,frame:p.dims,base:J(s)});if(c!==void 0)throw Object.assign(new Error(c),{code:"AK-I007"});s.render(h,d,o,p)})}await Z(a),await document.fonts.ready},setPlaying(n){T.setPlaying(n)},dispose(){U=!0,T.dispose()}}}export async function coverParts(m,A){if(!m.options.covers)return[];const k=await m.options.covers(A);return Array.isArray(k)?k.filter(fe):[]}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{load}from"./output.js";export{consoleLog,installConsole}from"./console.js";export{LoadFailure,codeOf}from"./errors.js";export{planStack}from"./compose.js";export{MEASURE_EVERY,MOMENTS_PER_PART}from"./measure.js";export{STUCK_WAIT}from"./frame.js";export{RUN_PROBLEMS}from"./env.js";export{EPOCH_MS,installGuards}from"./guards.js";export{mixPlan,musicPlayed,speechGains,voicePlan,wordsOnFilm}from"./mix-plan.js";export{startPlayer}from"./player/player.js";export{locateLayers}from"./locate.js";
2
+ export{load}from"./output.js";export{answerFilm,playFilm,startAt}from"./film.js";export{planStack}from"./compose.js";export{MEASURE_EVERY,MOMENTS_PER_PART}from"./measure.js";export{STUCK_WAIT}from"./frame.js";export{startPlayer}from"./player/player.js";
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{cuesIn as V,footageScale as Y,formatInfo as G,measureMoment as J,READ_DEFAULTS as K,textTime as Q,toFrame as D,layerShown as A,showLayer as U}from"@allyhub/video-core";import{consoleAt as X}from"./console.js";import{inkOfBlock as Z}from"./contrast.js";import{drawnAt as tt}from"./frame.js";import{drawnFamilies as et,fontWant as nt,localFamily as ot,pageFaces as st}from"./fonts.js";import{selectorOf as rt,textBlocks as B,trackedIn as at}from"./inspect.js";export const MOMENTS_PER_PART=24,MEASURE_EVERY=1;export function domHash(b){let S=2166136261,v=5381;for(let h=0;h<b.length;h++){const w=b.charCodeAt(h);S=Math.imul(S^w,16777619)>>>0,v=Math.imul(v,33)+w>>>0}return`${S.toString(16)}${v.toString(16)}:${String(b.length)}`}async function N(b){const S=globalThis.crypto?.subtle;if(!S)return`dom:${domHash(b)}`;const v=new Uint8Array(await S.digest("SHA-256",new TextEncoder().encode(b)));let h="";for(const w of v)h+=w.toString(16).padStart(2,"0");return h}export function textReader(b,S,v,h){const{guards:w,partSeed:C}=b,{fps:O,dims:_}=S,p=new WeakMap;return({part:l,el:T},k,E)=>{const $=Math.round(E*O),F=$/O,q=[];for(const d of k){if(F<d.start||F>=d.end)continue;let o=p.get(d);o||(o=new Map,p.set(d,o));let s=o.get($);if(!s){const n=A(T),i=A(d.el),f=T.style.transform;T.style.transform="",U(T,!0),U(d.el,!0),w.setMoment(F,C(l.key,$));try{X({phase:"render",part:l.key,layer:d.spec.component,index:d.index,t:F},()=>{h(()=>{d.spec.render(d.el,F,d.props,d.ctx)})}),s=B(d.el,v.el,_.width).map(a=>({layer:d.spec.component,text:a.text,box:a.box}))}catch{s=[]}finally{U(d.el,i),U(T,n),T.style.transform=f,w.setMoment(0,C(l.key,0))}o.set($,s)}q.push(...s)}return q}}export function measurer(b){const{piece:S,stage:v,drawer:h,mounted:w,duration:C,captions:O,footage:_}=b,{fps:p,dims:l,format:T}=S,k=v.el,E=(o,s)=>h.draw(o,{mode:"layout",...s===void 0?{}:{part:s}}),$=o=>D(Math.min(Math.max(o,0),C-1/p),p),F=()=>{const o=[];for(const s of w){const{part:n}=s,i=new Set,f=t=>{const e=D(t,p);e>=n.start&&e<n.end&&i.add(e)};f(n.still);for(const t of s.layers)t.end>t.start&&f(n.start+(t.start+t.end)/2);if(s.record.captioned)for(const t of V(O.cues(),n.start,n.end))f(n.start+(t.start+t.end)/2);if(_?.speakerIn(n.key))for(let t=n.start+.5;t<n.end;t+=1)f(t);for(let t=n.start+MEASURE_EVERY;t<n.end;t+=MEASURE_EVERY)f(t);f(n.end-1/p);let a=[...i].sort((t,e)=>t-e);if(a.length>MOMENTS_PER_PART){const t=a.length/MOMENTS_PER_PART,e=a.at(-1)??0;a=Array.from({length:MOMENTS_PER_PART},(r,y)=>a[Math.floor(y*t)]??0),a[a.length-1]=e}o.push(...a)}return[...new Set(o)].sort((s,n)=>s-n)},q=async()=>{const o=K,s=[];for(const n of w){const{part:i}=n,f=new Map,a=i.end-1/p;for(let t=0;;t++){const e=D(i.start+t*o.every,p);if(e>a+1e-9)break;await E(e,i.key);const r=h.current;if(r){for(const y of r.layers)if(A(y.el))for(const u of B(y.el,k,l.width)){if(u.ink===null||u.viewport)continue;let m=f.get(u.el);m||(m={layer:y.spec.component,z:y.z,samples:[]},f.set(u.el,m)),m.samples.push({t:Math.round(e*1e3)/1e3,text:u.text,box:u.box,opacity:u.opacity,shown:u.shown,size:u.size,...u.xHeight===void 0?{}:{xHeight:u.xHeight}})}}}for(const t of f.values()){const e=Q(t.samples,{part:i.key,layer:t.layer,z:t.z,end:i.end,frame:[l.width,l.height]},o);e&&s.push(e)}}return s.sort((n,i)=>n.first-i.first),{options:o,texts:s}},d=()=>{let o="";for(const s of k.children){if(s instanceof HTMLElement&&!A(s))continue;const n="canvas:not([data-ak-sign]), video, iframe, img[src$='.gif' i]";if(s.matches(n)||s.querySelector(n))return;o+=s.outerHTML}return domHash(o)};return{async measure(o){const s=[],n=o?[...o].sort((a,t)=>a-t):F();for(const a of n){const t=$(a),e=w.find(M=>t>=M.part.start&&t<M.part.end);await E(a,e?.part.key);const r=h.current;if(!r)continue;const y=[],u=[],m=[],g=[],x=[],H=st();r.layers.forEach((M,L)=>{if(A(M.el))for(const c of B(M.el,k,l.width)){if(c.ink===null)continue;const z=c.runs[0]?.el,j=z&&et(nt(getComputedStyle(z)),Array.from(c.text.replace(/\s/gu,"")).map(P=>P.codePointAt(0)??0),H,ot);y.push({layer:M.spec.component,z:M.z,text:c.text,box:c.box,...c.viewport?{viewport:!0}:{},...c.opacity<1?{opacity:c.opacity}:{},...c.ink.join()===c.box.join()?{}:{ink:c.ink},...j&&j.length>0?{fonts:j}:{}}),u.push(L),m.push(c.containers),g.push(c.ink),x.push(c.glyphs)}});const R=_?.faceAt(r.part.key,t);s.push(J({t:Math.round(t*1e3)/1e3,part:r.part.key,texts:y,...R?{face:R.map(M=>Math.round(M))}:{},safe:l.safe,width:l.width,height:l.height,owner:u,containers:m,seen:g,glyphs:x}))}const i=(G(T)?.width??l.width)/l.width,f=(_?.placed??[]).flatMap(a=>{const t=Y(a,i,p);return t?[t]:[]});return{width:l.width,height:l.height,safe:l.safe,moments:s,footage:f,...o?{}:{reading:await q()}}},async tracks(o,s){const n=[],i=Math.max(0,Math.ceil(o*p-1e-6)),f=Math.min(Math.floor(s*p+1e-6),Math.round(C*p)-1),a=()=>k.getBoundingClientRect();for(const t of w){const{part:e}=t,r=Math.max(i,Math.round(e.start*p)),y=Math.min(f,Math.round(e.end*p)-1);if(y<r)continue;const u=new Map;for(let m=r;m<=y;m++){const g=m/p;await E(g,e.key);const x=h.current;if(!x)continue;const H=a(),R=H.width>0?l.width/H.width:1,M=new Map;for(const L of x.layers)if(A(L.el))for(const c of at(L.el)){const z=c.el.getBoundingClientRect();if(z.width<=0||z.height<=0)continue;const j=Math.round((z.left-H.left)*R),P=Math.round((z.top-H.top)*R);if(M.set(c.el,{t:Math.round(g*1e3)/1e3,box:[j,P,Math.round((z.right-H.left)*R)-j,Math.round((z.bottom-H.top)*R)-P],opacity:c.opacity}),!u.has(c.el)){const I={part:e.key,layer:L.spec.component,what:c.what,selector:rt(c.el,k),...c.name===void 0?{}:{name:c.name},samples:Array.from({length:m-r},(ct,W)=>({t:Math.round((r+W)/p*1e3)/1e3,opacity:0}))};u.set(c.el,I),n.push(I)}}for(const[L,c]of u)c.samples.push(M.get(L)??{t:Math.round(g*1e3)/1e3,opacity:0})}}return n},async inks(o){const s=$(o),n=w.find(e=>s>=e.part.start&&s<e.part.end);await h.draw(o,n?{part:n.part.key}:{});const i=h.current;if(!i)return[];const f=k.getBoundingClientRect(),a=f.width>0?l.width/f.width:1,t=[];for(const e of i.layers)if(A(e.el))for(const r of B(e.el,k,l.width))r.ink!==null&&t.push({text:{layer:e.spec.component,z:e.z,text:r.text,box:r.box,...r.viewport?{viewport:!0}:{},...r.opacity<1?{opacity:r.opacity}:{},...r.ink.join()===r.box.join()?{}:{ink:r.ink}},...Z(r,a)});return t},async objects(o,s){const n=$(o),i=w.find(t=>n>=t.part.start&&n<t.part.end);await h.draw(o,i?{part:i.part.key}:{});const f=h.current,a={t:o,elements:[],texts:[]};if(!f)return a;for(const t of f.layers)if(A(t.el))for(const e of B(t.el,k,l.width))e.ink!==null&&a.texts.push({text:e.text,box:[e.box[0],e.box[1],e.box[2],e.box[3]],size:e.size,keys:s(e.text)});return a},signature:d,async signatureAt(o){return await E(o,void 0),d()},async partSignature(o,s){const n=new Set,i=[],f="video, iframe, img[src$='.gif' i]";for(const a of s){await E(a,o);let t="";const e=[];try{for(const r of k.children){if(r instanceof HTMLElement&&!A(r))continue;const y=r.matches(f)?r:r.querySelector(f);if(y)return{unknown:`a <${y.tagName.toLowerCase()}> at ${a.toFixed(3)} s`};const u=[...r.matches("canvas:not([data-ak-sign])")?[r]:[],...r.querySelectorAll("canvas:not([data-ak-sign])")];for(const m of u){let g=m,x;for(;g&&g!==k&&!x;)x=tt.get(g),x||(g=g.parentElement);if(!x||!g)return{unknown:`a canvas outside any layer at ${a.toFixed(3)} s`};A(g)&&(m.setAttribute("data-ak-drawn",`${x.by} at ${String(Math.round(x.t*1e6)/1e6)}`),e.push(m),n.add(x.by))}t+=r.outerHTML}}finally{for(const r of e)r.removeAttribute("data-ak-drawn")}i.push(await N(t))}return{sign:await N(i.join(`
3
- `)),owners:[...n].sort()}}}}
2
+ import{formatInfo as Y,measureMoment as G,READ_DEFAULTS as J,toFrame as D,layerShown as H,showLayer as P}from"@allyhub/piece";import{cuesIn as K,footageScale as Q,textTime as Z}from"@allyhub/video-core";import{consoleAt as tt}from"@allyhub/piece/page";import{inkOfBlock as et}from"@allyhub/image-draw/contrast";import{drawnAt as nt}from"./frame.js";import{drawnFamilies as ot,fontWant as st,localFamily as rt,pageFaces as at}from"@allyhub/image-draw/fonts";import{selectorOf as it,textBlocks as U,trackedIn as ct}from"@allyhub/image-draw/inspect";export const MOMENTS_PER_PART=24,MEASURE_EVERY=1;export{domHash}from"@allyhub/image-draw/hash";import{domHash as V}from"@allyhub/image-draw/hash";async function X(k){const z=globalThis.crypto?.subtle;if(!z)return`dom:${V(k)}`;const T=new Uint8Array(await z.digest("SHA-256",new TextEncoder().encode(k)));let d="";for(const y of T)d+=y.toString(16).padStart(2,"0");return d}export function textReader(k,z,T,d){const{guards:y,partSeed:M}=k,{fps:C,dims:E}=z,f=new WeakMap;return({part:a,el:h},u,$)=>{const S=Math.round($*C),L=S/C,N=[];for(const x of u){if(L<x.start||L>=x.end)continue;let s=f.get(x);s||(s=new Map,f.set(x,s));let r=s.get(S);if(!r){const o=H(h),c=H(x.el),l=h.style.transform;h.style.transform="",P(h,!0),P(x.el,!0),y.setMoment(L,M(a.key,S));try{tt({phase:"render",part:a.key,layer:x.spec.component,index:x.index,t:L},()=>{d(()=>{x.spec.render(x.content,L,x.props,x.ctx)})}),r=U(x.el,T.el,E.width).map(i=>({layer:x.spec.component,text:i.text,box:i.box}))}catch{r=[]}finally{P(x.el,c),P(h,o),h.style.transform=l,y.setMoment(0,M(a.key,0))}s.set(S,r)}N.push(...r)}return N}}export function measurer(k){const{piece:z,stage:T,drawer:d,mounted:y,duration:M,captions:C,footage:E}=k,{fps:f,dims:a,format:h}=z,u=T.el,$=(s,r)=>d.draw(s,{mode:"layout",...r===void 0?{}:{part:r}}),S=s=>D(Math.min(Math.max(s,0),M-1/f),f),L=()=>{const s=[];for(const r of y){const{part:o}=r,c=new Set,l=t=>{const e=D(t,f);e>=o.start&&e<o.end&&c.add(e)};l(o.still);for(const t of r.layers)t.end>t.start&&l(o.start+(t.start+t.end)/2);if(r.record.captioned)for(const t of K(C.cues(),o.start,o.end))l(o.start+(t.start+t.end)/2);if(E?.speakerIn(o.key))for(let t=o.start+.5;t<o.end;t+=1)l(t);for(let t=o.start+MEASURE_EVERY;t<o.end;t+=MEASURE_EVERY)l(t);l(o.end-1/f);let i=[...c].sort((t,e)=>t-e);if(i.length>MOMENTS_PER_PART){const t=i.length/MOMENTS_PER_PART,e=i.at(-1)??0;i=Array.from({length:MOMENTS_PER_PART},(n,w)=>i[Math.floor(w*t)]??0),i[i.length-1]=e}s.push(...i)}return[...new Set(s)].sort((r,o)=>r-o)},N=async()=>{const s=J,r=[];for(const o of y){const{part:c}=o,l=new Map,i=c.end-1/f;for(let t=0;;t++){const e=D(c.start+t*s.every,f);if(e>i+1e-9)break;await $(e,c.key);const n=d.current;if(n){for(const w of n.layers)if(H(w.el))for(const g of U(w.el,u,a.width)){if(g.ink===null||g.viewport)continue;let b=l.get(g.el);b||(b={layer:w.spec.component,z:w.z,samples:[]},l.set(g.el,b)),b.samples.push({t:Math.round(e*1e3)/1e3,text:g.text,box:g.box,opacity:g.opacity,shown:g.shown,size:g.size,...g.xHeight===void 0?{}:{xHeight:g.xHeight}})}}}for(const t of l.values()){const e=Z(t.samples,{part:c.key,layer:t.layer,z:t.z,end:c.end,frame:[a.width,a.height]},s);e&&r.push(e)}}return r.sort((o,c)=>o.first-c.first),{options:s,texts:r}},x=()=>{let s="";for(const r of u.children){if(r instanceof HTMLElement&&!H(r))continue;const o="canvas:not([data-ak-sign]), video, iframe, img[src$='.gif' i]";if(r.matches(o)||r.querySelector(o))return;s+=r.outerHTML}return V(s)};return{async measure(s){const r=[],o=(Y(h)?.width??a.width)/a.width,c=new Map,l=s?[...s].sort((t,e)=>t-e):L();for(const t of l){const e=S(t),n=y.find(p=>e>=p.part.start&&e<p.part.end);await $(t,n?.part.key);const w=d.current;if(!w)continue;const g=[],b=[],v=[],R=[],B=[],_=at();w.layers.forEach((p,q)=>{if(H(p.el))for(const m of U(p.el,u,a.width)){if(m.ink===null)continue;const F=m.runs[0]?.el,I=F&&ot(st(getComputedStyle(F)),Array.from(m.text.replace(/\s/gu,"")).map(W=>W.codePointAt(0)??0),_,rt);g.push({layer:p.spec.component,...p.spec.key===void 0?{}:{name:p.spec.key},z:p.z,text:m.text,box:m.box,...m.viewport?{viewport:!0}:{},...m.opacity<1?{opacity:m.opacity}:{},...m.ink.join()===m.box.join()?{}:{ink:m.ink},...I&&I.length>0?{fonts:I}:{}}),b.push(q),v.push(m.containers),R.push(m.ink),B.push(m.glyphs)}});const O=u.getBoundingClientRect(),j=O.width>0?a.width/O.width:1;for(const p of w.layers)if(H(p.el))for(const q of p.el.querySelectorAll("img")){const m=ft(q,j*o);if(!m)continue;const F=`${w.part.key}|${p.spec.component}|${m.source}`,I=c.get(F);I&&I.scale>=m.scale||c.set(F,{part:w.part.key,layer:p.spec.component,...m,t:Math.round(e*1e3)/1e3})}const A=E?.faceAt(w.part.key,e);r.push(G({t:Math.round(e*1e3)/1e3,part:w.part.key,texts:g,...A?{face:A.map(p=>Math.round(p))}:{},safe:a.safe,width:a.width,height:a.height,owner:b,containers:v,seen:R,glyphs:B}))}const i=(E?.placed??[]).flatMap(t=>{const e=Q(t,o,f);return e?[e]:[]});return{width:a.width,height:a.height,safe:a.safe,moments:r,footage:i,pictures:[...c.values()],...s?{}:{reading:await N()}}},async tracks(s,r){const o=[],c=Math.max(0,Math.ceil(s*f-1e-6)),l=Math.min(Math.floor(r*f+1e-6),Math.round(M*f)-1),i=()=>u.getBoundingClientRect();for(const t of y){const{part:e}=t,n=Math.max(c,Math.round(e.start*f)),w=Math.min(l,Math.round(e.end*f)-1);if(w<n)continue;const g=new Map;for(let b=n;b<=w;b++){const v=b/f;await $(v,e.key);const R=d.current;if(!R)continue;const B=i(),_=B.width>0?a.width/B.width:1,O=new Map;for(const j of R.layers)if(H(j.el))for(const A of ct(j.el)){const p=A.el.getBoundingClientRect();if(p.width<=0||p.height<=0)continue;const q=Math.round((p.left-B.left)*_),m=Math.round((p.top-B.top)*_);if(O.set(A.el,{t:Math.round(v*1e3)/1e3,box:[q,m,Math.round((p.right-B.left)*_)-q,Math.round((p.bottom-B.top)*_)-m],opacity:A.opacity}),!g.has(A.el)){const F={part:e.key,layer:j.spec.component,what:A.what,selector:it(A.el,u),...A.name===void 0?{}:{name:A.name},samples:Array.from({length:b-n},(I,W)=>({t:Math.round((n+W)/f*1e3)/1e3,opacity:0}))};g.set(A.el,F),o.push(F)}}for(const[j,A]of g)A.samples.push(O.get(j)??{t:Math.round(v*1e3)/1e3,opacity:0})}}return o},async inks(s){const r=S(s),o=y.find(e=>r>=e.part.start&&r<e.part.end);await d.draw(s,o?{part:o.part.key}:{});const c=d.current;if(!c)return[];const l=u.getBoundingClientRect(),i=l.width>0?a.width/l.width:1,t=[];for(const e of c.layers)if(H(e.el))for(const n of U(e.el,u,a.width))n.ink!==null&&t.push({text:{layer:e.spec.component,...e.spec.key===void 0?{}:{name:e.spec.key},z:e.z,text:n.text,box:n.box,...n.viewport?{viewport:!0}:{},...n.opacity<1?{opacity:n.opacity}:{},...n.ink.join()===n.box.join()?{}:{ink:n.ink}},...et(n,i)});return t},async objects(s,r){const o=S(s),c=y.find(t=>o>=t.part.start&&o<t.part.end);await d.draw(s,c?{part:c.part.key}:{});const l=d.current,i={t:s,elements:[],texts:[],layers:[]};if(!l)return i;for(const t of l.layers){if(!H(t.el))continue;const e=ut(t.el,u,a.width);e&&i.layers?.push({part:l.part.key,index:t.index,box:e});for(const n of U(t.el,u,a.width))n.ink!==null&&i.texts.push({text:n.text,box:[n.box[0],n.box[1],n.box[2],n.box[3]],size:n.size,keys:r(n.text)})}return i},signature:x,async signatureAt(s){return await $(s,void 0),x()},async partSignature(s,r){const o=new Set,c=[],l="video, iframe, img[src$='.gif' i]";for(const i of r){await $(i,s);let t="";const e=[];try{for(const n of u.children){if(n instanceof HTMLElement&&!H(n))continue;const w=n.matches(l)?n:n.querySelector(l);if(w)return{unknown:`a <${w.tagName.toLowerCase()}> at ${i.toFixed(3)} s`};const g=[...n.matches("canvas:not([data-ak-sign])")?[n]:[],...n.querySelectorAll("canvas:not([data-ak-sign])")];for(const b of g){let v=b,R;for(;v&&v!==u&&!R;)R=nt.get(v),R||(v=v.parentElement);if(!R||!v)return{unknown:`a canvas outside any layer at ${i.toFixed(3)} s`};H(v)&&(b.setAttribute("data-ak-drawn",`${R.by} at ${String(Math.round(R.t*1e6)/1e6)}`),e.push(b),o.add(R.by))}t+=n.outerHTML}}finally{for(const n of e)n.removeAttribute("data-ak-drawn")}c.push(await X(t))}return{sign:await X(c.join(`
3
+ `)),owners:[...o].sort()}}}}function ft(k,z){const T=k.naturalWidth,d=k.naturalHeight,y=k.getBoundingClientRect();if(!(T>0&&d>0&&y.width>0&&y.height>0)||getComputedStyle(k).visibility==="hidden")return;const M=k.currentSrc||k.src;if(/^data:image\/svg|\.svg(?:[?#]|$)/iu.test(M))return;const C=y.width*z,E=y.height*z,f=getComputedStyle(k).objectFit;let a=C/T,h=E/d;f==="cover"?a=h=Math.max(a,h):f==="contain"?a=h=Math.min(a,h):f==="scale-down"?a=h=Math.min(1,a,h):f==="none"&&(a=h=1);let u="inline";if(!M.startsWith("data:"))try{u=decodeURIComponent(new URL(M).pathname).replace(/^\/(?:media\/)?/u,"")}catch{u=M}return{source:u,natural:[T,d],drawn:[Math.round(T*a),Math.round(d*h)],scale:Math.round(Math.max(a,h)*100)/100}}const lt=400;function ut(k,z,T){const d=z.getBoundingClientRect(),y=d.width>0?T/d.width:1;let M=1/0,C=1/0,E=-1/0,f=-1/0;const a=k.querySelectorAll("*");for(let u=0;u<a.length&&u<lt;u++){const $=a[u];if(!$?.checkVisibility({opacityProperty:!0}))continue;const S=$.getBoundingClientRect();S.width<=0||S.height<=0||(M=Math.min(M,S.left),C=Math.min(C,S.top),E=Math.max(E,S.right),f=Math.max(f,S.bottom))}if(!Number.isFinite(M))return;const h=u=>Math.round(u*10)/10;return[h((M-d.left)*y),h((C-d.top)*y),h((E-M)*y),h((f-C)*y)]}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{withHandles as H}from"@allyhub/video-core";import{captionTrack as M}from"./captions.js";import{timeFilm as R}from"./clock.js";import{compose as j,layerContexts as q}from"./compose.js";import{createEmbedder as z}from"./embed.js";import{createEnv as A}from"./env.js";import{facade as B}from"./facade.js";import{coverParts as G,createDrawer as I,newDrawState as J,withLayout as K}from"./frame.js";import{footagePlanner as N}from"./footage.js";import{measurer as O,textReader as Q}from"./measure.js";import{musicClock as U}from"./music.js";import{buildParts as V,pieceContext as W,resolvePiece as X}from"./piece.js";import{Clips as Y}from"./player/clips.js";import{soundPlanner as Z}from"./sound.js";import{createStage as _}from"./stage.js";import{findTakes as $}from"./takes.js";import{timelineTransitions as tt,transitionStage as ot}from"./transitions.js";export async function load(k,u,v,y){const o=A(k,u,y),s=_(o,v),t=await X(o),l=s.dress(t),w=W(o,t),c=z(o,s,load),C=await V(o,t,w),n=await $(o,t,C,c),g=U(o,t),r=R(o,t,n,g),S=g.plan(r);r.checkLimit();const a=M(n,r,t.fps),m=J(),x=q(o,t,c,m,r),h=Q(o,t,s,e=>K(m,e)),p=N(o,t,a,s.cssColor),d=Z(o,t),{parts:P,mounted:i,clips:T}=j({env:o,piece:t,stage:s,takes:n,film:r,captions:a,footage:p,sound:d,contexts:x,texts:h}),f=tt(t,s,r.windows,n.specs,e=>i.find(F=>F.n===e)?.part,l),D=d.audio(S,i.map(e=>e.spec)),E=await G(t,w),L=new Y(u.purpose==="play"?H(T,P,f,t.fps):[],t.fps),b=I({env:o,piece:t,stage:s,mounted:i,transitions:f,transitionStage:ot(t,s),duration:r.duration,clips:L,contexts:x,covers:E,state:m});return B({env:o,piece:t,stage:s,mounted:i,parts:P,takes:n,captions:a,footage:p,cues:d.cues(),audio:D,transitions:f,duration:r.duration,words:e=>r.timing.words(e),timingProblems:r.timing.problems,background:l,embedder:c,drawer:b,measurer:O({piece:t,stage:s,drawer:b,mounted:i,duration:r.duration,captions:a,footage:p}),notes:new Map})}
2
+ import{withHandles as L}from"@allyhub/video-core";import{captionTrack as M}from"./captions.js";import{timeFilm as R}from"./clock.js";import{compose as j,layerContexts as q}from"./compose.js";import{createEmbedder as z}from"./embed.js";import{createEnv as A}from"@allyhub/image-draw/env";import{facade as B}from"./facade.js";import{coverParts as G,createDrawer as I,newDrawState as J,withLayout as K}from"./frame.js";import{footagePlanner as N}from"./footage.js";import{measurer as O,textReader as Q}from"./measure.js";import{musicClock as U}from"./music.js";import{buildParts as V,pieceContext as W,resolvePiece as X}from"./piece.js";import{Clips as Y}from"./player/clips.js";import{soundPlanner as Z}from"./sound.js";import{createStage as _}from"@allyhub/image-draw/stage";import{findTakes as $}from"./takes.js";import{timelineTransitions as tt,transitionStage as ot}from"./transitions.js";export async function load(k,u,v,y){const o=A(k,u,y),r=_(o,v),t=await X(o),l=r.dress(t),w=W(o,t),c=z(o,r,load),C=await V(o,t,w),n=await $(o,t,C,c),g=U(o,t),s=R(o,t,n,g),S=g.plan(s),a=M(n,s,t.fps),m=J(),x=q(o,t,c,m,s),T=Q(o,t,r,e=>K(m,e)),p=N(o,t,a,r.cssColor),d=Z(o,t),{parts:P,mounted:i,clips:h}=j({env:o,piece:t,stage:r,takes:n,film:s,captions:a,footage:p,sound:d,contexts:x,texts:T}),f=tt(t,r,s.windows,n.specs,e=>i.find(H=>H.n===e)?.part,l),D=d.audio(S,i.map(e=>e.spec)),E=await G(t,w),F=new Y(u.purpose==="play"?L(h,P,f,t.fps):[],t.fps),b=I({env:o,piece:t,stage:r,mounted:i,transitions:f,transitionStage:ot(t,r),duration:s.duration,clips:F,contexts:x,covers:E,state:m});return B({env:o,piece:t,stage:r,mounted:i,parts:P,takes:n,captions:a,footage:p,cues:d.cues(),audio:D,transitions:f,duration:s.duration,words:e=>s.timing.words(e),timingProblems:s.timing.problems,background:l,embedder:c,drawer:b,measurer:O({piece:t,stage:r,drawer:b,mounted:i,duration:s.duration,captions:a,footage:p}),notes:new Map})}
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CLEAN_LOOK as b,FPS as _,formatEntry as g,formatInfo as L,isVideoFormat as x,isLayerSpec as S,isPartSpec as E,isPieceDefinition as h,isSpeechSpec as I,LOAD_LIMIT as P,messagePrefix as A,outputOf as w,partDefaults as D,parseFps as O,presetInfo as v,problem as K,SEEK_LIMIT as T}from"@allyhub/video-core";import{consoleAtAsync as y}from"./console.js";import{LoadFailure as l}from"./errors.js";export const DECK_VIDEOS="__allyhubVideos";function j(d){return Promise.all(d.map(o=>new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=o,n.onload=()=>{r()},n.onerror=()=>{r()},document.head.append(n)})))}async function F(d){const{source:o,embed:r,ledger:n}=d;let f=r?.def;const c={};if(!r){let e;try{await j(o.styles??[]),e=await n.timed("importing the piece's module",()=>y({phase:"module"},()=>import(o.module)))}catch(i){const s=i instanceof Error?i:new Error(String(i));throw new l("load_failed",`Failed to load the piece module: ${s.message}
3
- ${s.stack??""}`)}f=e.default;const t=e[DECK_VIDEOS];if(typeof t=="object"&&t!==null)for(const[i,s]of Object.entries(t))h(s)&&(c[i]=s)}if(!h(f))throw new l("no_content",`The default export of ${o.file} is not a video({ … }).`);return{def:f,videos:c}}export async function resolvePiece(d){const{source:o,log:r}=d,{def:n,videos:f}=await F(d),c=w(n),e=n.written?.file,t=e!==void 0&&e!==""?e:o.file;t!==o.file&&r.relativeTo(t);const i=c.kind;if(i!=="video")throw new l("bad_output",`${o.piece} is ${i}; load() loads a video (a deck is the deck's runtime's).`);const s=c.options,u=O(s.fps)??_;if(!x(o.format))throw new l("bad_format",`${o.piece} is not rendered in ${o.format}: it is not a format.`);const a=o.format,p=g(n.format===void 0?[]:[n.format],a)??a,m=L(p)??v("16x9"),k=A(o.piece),$=s.look??"clean";return{def:n,options:s,fps:u,format:a,dims:m,prefix:k,look:o.looks?.[$]??b,defaults:D(o.partDefaults,s.defaults?.part),writtenIn:t,musicBase:n.written?.paths?.music?.[1]??t.split("/").slice(0,-1).join("/"),seekLimitMs:(s.seekLimit??T)*1e3,loadLimitMs:(s.loadLimit??P)*1e3,videos:f}}export function pieceContext(d,o){const{log:r,combo:n,space:f}=d,c=Object.assign((e,t)=>r.s(e,t),{list:(e,t)=>r.list(e,t),with:(e,t,i)=>r.with(e,t,i)});return{combo:n,pool:e=>{const t=f?.slots[e]?.find(i=>i.name===n[e]);if(t?.file===void 0)throw new l("bad_pool",`ctx.pool("${e}"): ${e} is not a pool slot of this piece${f?` (pool slots: ${Object.entries(f.slots).filter(([,i])=>i.some(s=>s.file!==void 0)).map(([i])=>i).join(", ")||"none"})`:""}. Declare it as matrix.slots.${e} = { pool: "./folder" }.`);return`/${t.file}`},s:c,asset:e=>r.asset(e),data:e=>r.readData(e),look:o.look}}export async function buildParts(d,o,r){const{source:n,ledger:f}=d,c="part",e=w(o.def),t=await y({phase:"build"},()=>Promise.resolve(e.build(r)));if(!Array.isArray(t)||t.length===0)throw new l("no_parts",`The function of output ${d.output} returned no ${c}s (AK-K003).`);const i=[],s=new Set;for(const[u,a]of t.entries()){if(!E(a))throw new l("bad_part",`Item ${String(u+1)} is not a ${c} made by part({ key, layers }).`);const p=a.layers.findIndex(m=>!S(m));if(p>=0)throw new l("bad_part",`Layer ${String(p+1)} of ${c} ${a.key} is not a layer made by footage(), a component or custom().`);if(a.speech!==void 0&&!I(a.speech))throw new l("bad_part",`The speech of ${c} ${a.key} is not made by take() or say().`);if(s.has(a.key)){f.problems.push(K("AK-K001",`The ${c} key "${a.key}" is used twice. Every ${c} in an output needs its own key.`,{part:a.key,where:{file:n.file}}));continue}s.add(a.key),i.push(a)}return i}
2
+ import{problem as $}from"@allyhub/diagnostics";import{CLEAN_LOOK as b,FPS as L,formatEntry as g,formatInfo as S,isVideoFormat as _,LOAD_LIMIT as x,messagePrefix as I,parseFps as P,presetInfo as A,SEEK_LIMIT as E}from"@allyhub/piece";import{isLayerSpec as T,isPartSpec as K,isPieceDefinition as F,isSpeechSpec as D,outputOf as y,partDefaults as M}from"@allyhub/video-core";import{consoleAtAsync as h}from"@allyhub/piece/page";import{buildContext as O}from"@allyhub/image-draw/context";import{LoadFailure as d}from"@allyhub/image-draw/errors";function v(i){return Promise.all(i.map(e=>new Promise(s=>{const t=document.createElement("link");t.rel="stylesheet",t.href=e,t.onload=()=>{s()},t.onerror=()=>{s()},document.head.append(t)})))}async function C(i){const{source:e,embed:s,ledger:t}=i;let c=s?.def;if(!s){let n;try{await v(e.styles??[]),n=await t.timed("importing the piece's module",()=>h({phase:"module"},()=>import(e.module)))}catch(r){const a=r instanceof Error?r:new Error(String(r));throw new d("load_failed",`Failed to load the piece module: ${a.message}
3
+ ${a.stack??""}`)}c=n.default}if(!F(c))throw new d("no_content",`The default export of ${e.file} is not a video({ … }).`);return{def:c}}export async function resolvePiece(i){const{source:e,log:s}=i,{def:t}=await C(i),c=y(t),n=t.written?.file,r=n!==void 0&&n!==""?n:e.file;r!==e.file&&s.relativeTo(r);const a=c.kind;if(a!=="video")throw new d("bad_output",`${e.piece} is ${a}; load() loads a video (a deck is the deck's runtime's).`);const f=c.options,l=P(f.fps)??L,p=i.embed?.frame;if(p===void 0&&!_(e.format))throw new d("bad_format",`${e.piece} is not rendered in ${e.format}: it is not a format.`);const o=e.format,m=g(t.format===void 0?[]:[t.format],o)??o,u=p??S(m)??A("16x9"),w=I(e.piece),k=f.look??"clean";return{def:t,options:f,fps:l,format:o,dims:u,prefix:w,look:e.looks?.[k]??b,defaults:M(e.partDefaults,f.defaults?.part),writtenIn:r,musicBase:t.written?.paths?.music?.[1]??r.split("/").slice(0,-1).join("/"),seekLimitMs:(f.seekLimit??E)*1e3,loadLimitMs:(f.loadLimit??x)*1e3}}export function pieceContext(i,e){return{...O(i),look:e.look}}export async function buildParts(i,e,s){const{source:t,ledger:c}=i,n="part",r=y(e.def),a=await h({phase:"build"},()=>Promise.resolve(r.build(s)));if(!Array.isArray(a)||a.length===0)throw new d("no_parts",`The function of output ${i.output} returned no ${n}s (AK-K003).`);const f=[],l=new Set;for(const[p,o]of a.entries()){if(!K(o))throw new d("bad_part",`Item ${String(p+1)} is not a ${n} made by part({ key, layers }).`);const m=o.layers.findIndex(u=>!T(u));if(m>=0)throw new d("bad_part",`Layer ${String(m+1)} of ${n} ${o.key} is not a layer made by footage(), a component or custom().`);if(o.speech!==void 0&&!D(o.speech))throw new d("bad_part",`The speech of ${n} ${o.key} is not made by take() or say().`);if(l.has(o.key)){c.problems.push($("AK-K001",`The ${n} key "${o.key}" is used twice. Every ${n} in an output needs its own key.`,{part:o.key,where:{file:t.file}}));continue}l.add(o.key),f.push(o)}return f}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{intersect as S,placementAt as m,sourceAt as b}from"@allyhub/video-core";import{Cutout as R}from"./cutout.js";const M=.5,A=.04,T=.01,$=.03,F=.02,l=r=>`${String(r)}px`;function f(r,e){Object.assign(r.style,{position:"absolute",left:l(e[0]),top:l(e[1]),width:l(e[2]),height:l(e[3])})}function g(r,e){if(r.shape==="circle"){e.style.borderRadius="50%";return}if(!r.radius)return;const[,,o,t]=r.boxes?.[0]?.box??r.box,s=n=>`${String(Math.round((r.radius??0)/n*1e5)/1e3)}%`;e.style.borderRadius=`${s(o)} / ${s(t)}`}function h(r,e,o,t){f(o,e.box);const[s,n,i,c]=e.picture,[a,u]=e.box;if(e.crop&&r.source){const[d,w,k,E]=e.crop,p=i/k,y=c/E;f(t,[s-a-d*p,n-u-w*y,r.source.width*p,r.source.height*y]),t.style.objectFit="fill"}else f(t,[s-a,n-u,i,c]),t.style.objectFit=r.fit}function I(r){return[r.blur?`blur(${String(r.blur)}px)`:"",r.desaturate?`saturate(${String(1-r.desaturate)})`:"",r.dim?`brightness(${String(1-r.dim)})`:""].filter(e=>e!=="").join(" ")}function j(r,e,o,t){const s=I(e);if(e.color===void 0&&e.image===void 0){t.style.filter=s;return}if(t.style.opacity="0",e.color==="transparent")return;let n;if(e.image!==void 0&&r.imageUrl){const i=document.createElement("img");i.src=r.imageUrl,i.alt="",i.style.objectFit="cover",i.style.maxWidth="none",i.style.filter=s,n=i}else n=document.createElement("div"),n.style.background=e.color??"transparent";return n.className="ak-backdrop",o.prepend(n),n}function x(r,e){const o=S(e.picture,e.box)??e.box;f(r,[o[0]-e.box[0],o[1]-e.box[1],o[2],o[3]])}export class Clips{drawn;fps;playing=!1;constructor(e,o){this.fps=o,this.drawn=e.map(t=>{const s=document.createElement("div");s.className="ak-footage",s.style.overflow="hidden",g(t,s);const n=document.createElement("video");n.muted=!0,n.playsInline=!0,n.preload="auto",n.src=t.url,n.style.maxWidth="none",n.style.visibility="hidden";const i=m(t,t.start);h(t,i,s,n),s.append(n),t.host.append(s);const c=(t.pan?.length??0)>1||(t.zoom?.length??0)>0||(t.boxes?.length??0)>1;let a,u;if(t.cutoutIn){const d=t.background;a=new R({take:n,matte:t.cutoutIn.matte,host:t.cutoutIn.host,...t.source?{source:t.source}:{},...d?{edge:{feather:d.feather,shrink:d.shrink},onFail:()=>{n.style.filter="",n.style.opacity="",u?.remove()}}:{}}),g(t,a.box),h(t,i,a.box,a.canvas),d&&(u=j(t,d,s,n),u&&x(u,i))}return{clip:t,el:n,box:s,moving:c,...a?{cutout:a}:{},...u?{backdrop:u}:{}}})}sourceAt(e,o){const t=b(e,o),s=e.duration===void 0?1/0:e.duration-1/this.fps;return Math.max(0,Math.min(t,s))}setPlaying(e){if(this.playing=e,!e)for(const o of this.drawn)o.el.pause(),o.cutout?.sync()}draw(e,o){for(const t of this.drawn){const s=t.clip;if(!(e>=s.start&&e<s.end)){t.el.style.visibility="hidden",t.el.paused||t.el.pause(),t.cutout?.show(!1);continue}if(t.moving){const a=m(s,e);h(s,a,t.box,t.el),t.cutout&&h(s,a,t.cutout.box,t.cutout.canvas),t.backdrop&&x(t.backdrop,a)}t.el.style.visibility="visible";let i;s.cuts&&(i=0,s.cuts.forEach((a,u)=>{a.at<=e+1e-9&&(i=u)}));const c=i!==t.cut;t.cut=i,this.follow(t,t.el,e,o||c),t.cutout&&(t.cutout.show(!0),t.cutout.sync(),t.cutout.draw())}}follow(e,o,t,s){const n=e.clip,i=this.sourceAt(n,t),c=o.currentTime-i,a=b(n,t),u=a<0||n.duration!==void 0&&a>=n.duration-1/this.fps;if(!this.playing||u){o.paused||o.pause(),Math.abs(c)>F&&(o.currentTime=i);return}if(s||o.paused||Math.abs(c)>M*n.speed){o.currentTime=i,o.playbackRate=n.speed,e.steering=void 0,o.paused&&o.play().catch(()=>{});return}const d=c<0?1:-1;Math.abs(c)>A?e.steering=d:Math.abs(c)<=T&&(e.steering=void 0),o.playbackRate=n.speed*(e.steering===void 0?1:1+e.steering*$)}dispose(){for(const e of this.drawn)e.cutout?.dispose(),e.el.pause(),e.el.removeAttribute("src"),e.el.load()}}
2
+ import{intersect as S,placementAt as m,sourceAt as b}from"@allyhub/video-core";import{Cutout as R}from"./cutout.js";const M=.5,A=.04,F=.01,T=.03,$=.02,l=r=>`${String(r)}px`;function f(r,e){Object.assign(r.style,{position:"absolute",left:l(e[0]),top:l(e[1]),width:l(e[2]),height:l(e[3])})}function g(r,e){if(r.shape==="circle"){e.style.borderRadius="50%";return}if(!r.radius)return;const[,,s,t]=r.boxes?.[0]?.box??r.box,o=n=>`${String(Math.round((r.radius??0)/n*1e5)/1e3)}%`;e.style.borderRadius=`${o(s)} / ${o(t)}`}function h(r,e,s,t){f(s,e.box);const[o,n,i,c]=e.picture,[a,u]=e.box;if(e.crop&&r.source){const[d,w,k,E]=e.crop,p=i/k,y=c/E;f(t,[o-a-d*p,n-u-w*y,r.source.width*p,r.source.height*y]),t.style.objectFit="fill"}else f(t,[o-a,n-u,i,c]),t.style.objectFit=r.fit}function I(r){return[r.blur?`blur(${String(r.blur)}px)`:"",r.desaturate?`saturate(${String(1-r.desaturate)})`:"",r.dim?`brightness(${String(1-r.dim)})`:""].filter(e=>e!=="").join(" ")}function j(r,e,s,t){const o=I(e);if(e.color===void 0&&e.image===void 0){t.style.filter=o;return}if(t.style.opacity="0",e.color==="transparent")return;let n;if(e.image!==void 0&&r.imageUrl){const i=document.createElement("img");i.src=r.imageUrl,i.alt="",i.style.objectFit="cover",i.style.maxWidth="none",i.style.filter=o,n=i}else n=document.createElement("div"),n.style.background=e.color??"transparent";return n.className="ak-backdrop",s.prepend(n),n}function x(r,e){const s=S(e.picture,e.box)??e.box;f(r,[s[0]-e.box[0],s[1]-e.box[1],s[2],s[3]])}export class Clips{drawn;fps;playing=!1;constructor(e,s){this.fps=s,this.drawn=e.map(t=>{const o=document.createElement("div");o.className="ak-footage",o.dataset.akFile=t.file,o.dataset.akPart=t.part,o.style.overflow="hidden",g(t,o);const n=document.createElement("video");n.muted=!0,n.playsInline=!0,n.preload="auto",n.src=t.url,n.style.maxWidth="none",n.style.visibility="hidden";const i=m(t,t.start);h(t,i,o,n),o.append(n),t.host.append(o);const c=(t.pan?.length??0)>1||(t.zoom?.length??0)>0||(t.boxes?.length??0)>1;let a,u;if(t.cutoutIn){const d=t.background;a=new R({take:n,matte:t.cutoutIn.matte,host:t.cutoutIn.host,...t.source?{source:t.source}:{},...d?{edge:{feather:d.feather,shrink:d.shrink},onFail:()=>{n.style.filter="",n.style.opacity="",u?.remove()}}:{}}),g(t,a.box),h(t,i,a.box,a.canvas),d&&(u=j(t,d,o,n),u&&x(u,i))}return{clip:t,el:n,box:o,moving:c,...a?{cutout:a}:{},...u?{backdrop:u}:{}}})}sourceAt(e,s){const t=b(e,s),o=e.duration===void 0?1/0:e.duration-1/this.fps;return Math.max(0,Math.min(t,o))}setPlaying(e){if(this.playing=e,!e)for(const s of this.drawn)s.el.pause(),s.cutout?.sync()}draw(e,s){for(const t of this.drawn){const o=t.clip;if(!(e>=o.start&&e<o.end)){t.el.style.visibility="hidden",t.el.paused||t.el.pause(),t.cutout?.show(!1);continue}if(t.moving){const a=m(o,e);h(o,a,t.box,t.el),t.cutout&&h(o,a,t.cutout.box,t.cutout.canvas),t.backdrop&&x(t.backdrop,a)}t.el.style.visibility="visible";let i;o.cuts&&(i=0,o.cuts.forEach((a,u)=>{a.at<=e+1e-9&&(i=u)}));const c=i!==t.cut;t.cut=i,this.follow(t,t.el,e,s||c),t.cutout&&(t.cutout.show(!0),t.cutout.sync(),t.cutout.draw())}}follow(e,s,t,o){const n=e.clip,i=this.sourceAt(n,t),c=s.currentTime-i,a=b(n,t),u=a<0||n.duration!==void 0&&a>=n.duration-1/this.fps;if(!this.playing||u){s.paused||s.pause(),Math.abs(c)>$&&(s.currentTime=i);return}if(o||s.paused||Math.abs(c)>M*n.speed){s.currentTime=i,s.playbackRate=n.speed,e.steering=void 0,s.paused&&s.play().catch(()=>{});return}const d=c<0?1:-1;Math.abs(c)>A?e.steering=d:Math.abs(c)<=F&&(e.steering=void 0),s.playbackRate=n.speed*(e.steering===void 0?1:1+e.steering*T)}dispose(){for(const e of this.drawn)e.cutout?.dispose(),e.el.pause(),e.el.removeAttribute("src"),e.el.load()}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{decodeKey as J,decodings as Le,MASTER_DEFAULTS as Ne,previewMaster as Oe,renderMix as Be}from"@allyhub/audio";import{partOnScreen as De,subtitleCues as Ue}from"@allyhub/video-core";import{realNow as R,realRaf as Me,realTimeout as Ie}from"../guards.js";import{mixPlan as Ke}from"../mix-plan.js";export const RESUME_WAIT_MS=400;const le=r=>`${String(Math.floor(r/60))}:${String(Math.floor(r%60)).padStart(2,"0")}`;export async function startPlayer(r){const{output:k,stage:d}=r,s=k.timeline,f=s.fps,B=s.duration,M=B-1/f,a=new AudioContext,Q=r.media??{},Se=r.seed??"",V=Ke(s,Q,{seed:Se}),Y=async e=>{if(e)try{const t=await fetch(e);return t.ok?await a.decodeAudioData(await t.arrayBuffer()):void 0}catch{return}},$e=(e,t)=>{const n=Q[e]?.denoisedUrl,i=[...t.denoise?[`db=${t.denoise.toFixed(2)}`]:[],...t.speed===void 0?[]:[`speed=${t.speed.toFixed(6)}`],...t.filter===void 0?[]:[`filter=${encodeURIComponent(t.filter)}`]];return n===void 0||i.length===0?void 0:`${n}?${i.join("&")}`},ee=new Map,D=new Map,te=[],ce=Le(V);for(const{file:e,how:t}of ce){const n=$e(e,t);if(n){const i=await Y(`${n}&wait=0`);i?D.set(J(e,t),i):te.push({key:J(e,t),url:n})}}for(const{file:e,how:t}of ce)ee.has(e)||D.has(J(e,t))||ee.set(e,await Y(Q[e]?.url));const de=e=>{const t=e.getChannelData(0);return[t,e.numberOfChannels>1?e.getChannelData(1):t]},Ae=(e,t)=>{const n=D.get(J(e,t));if(n)return{src:de(n),made:t};const i=ee.get(e);return i?{src:de(i),made:{}}:void 0},Ce=s.audio.master??{...Ne};let S;const ue=()=>{const e=Oe(Be(V,Ae,a.sampleRate),a.sampleRate,Ce);if(!e){S=void 0;return}const[t,n]=e,i=a.createBuffer(2,Math.max(1,t.length),a.sampleRate);i.getChannelData(0).set(t),i.getChannelData(1).set(n),S=i};ue();const $=Ue({lines:k.lines(),fps:s.fps},k.captionOptions()??void 0);let l=!1,x=Math.min(Math.max(r.start??s.parts[0]?.still??0,0),M),b=0,U=0,I=0,F=0,K=[],ne=[],A=!1,H={ctx:0,real:0};const u=()=>l?A?b+(a.currentTime-U):b+(R()-I)/1e3:x,Ee=()=>{if(!A)return;const e=R();if(a.currentTime!==H.ctx)H={ctx:a.currentTime,real:e};else if(e-H.real>300){const t=u();A=!1,b=t,I=e}},pe=r.chrome!==!1,L="#141210",C="#ece6da",Te="#a39a8b",fe='ui-monospace,"SF Mono",Menlo,monospace';document.documentElement.style.background=L,document.body.style.cssText=`margin:0;background:${L};overflow:hidden;font:13px/1 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;color:${C}`;const g=document.createElement("div");g.style.cssText=`position:fixed;left:0;right:0;top:0;bottom:${pe?"48px":"0"};overflow:hidden;cursor:pointer`,d.parentElement?.insertBefore(g,d),g.append(d),d.style.position="absolute",d.style.transformOrigin="0 0";const N=document.createElement("div");N.style.cssText=`position:fixed;left:0;right:0;bottom:0;height:48px;display:flex;align-items:center;gap:12px;padding:0 10px;background:${L};border-top:1px solid #2a2622`;const E=document.createElement("button");E.style.cssText=`width:32px;height:32px;border:0;border-radius:4px;background:${C};color:${L};cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none`,E.setAttribute("aria-label","play");const c=document.createElement("input");c.type="range",c.min="0",c.max=String(Math.round(B*f)),c.step="1",c.style.cssText=`flex:1;min-width:0;accent-color:${C};cursor:pointer`;const se=document.createElement("span");se.style.cssText=`font:12px/1 ${fe};font-variant-numeric:tabular-nums;min-width:86px;text-align:right;color:${Te}`;const ge=`height:28px;padding:0 9px;border:1px solid #3a352e;border-radius:4px;background:transparent;color:${C};font:12px/1 ${fe};cursor:pointer;flex:none`,v=document.createElement("button");v.textContent="CC",v.style.cssText=ge,v.setAttribute("aria-label","captions"),v.setAttribute("aria-pressed","false");const m=document.createElement("button");m.textContent="Pages",m.style.cssText=ge,m.setAttribute("aria-label","page by page"),m.setAttribute("aria-pressed","false"),N.setAttribute("role","toolbar"),c.setAttribute("aria-label","seek"),N.append(E,c,se,m),$.length&&N.append(v),pe&&document.body.append(N);const Pe=()=>{const e=Math.min(g.clientWidth/s.width,g.clientHeight/s.height);d.style.transform=`scale(${String(e)})`,d.style.left=`${String((g.clientWidth-s.width*e)/2)}px`,d.style.top=`${String((g.clientHeight-s.height*e)/2)}px`},W=s.width,_=s.height,j=Math.min(W,_)/1080,T=document.createElement("div");T.style.cssText=`position:absolute;left:0;top:0;width:${String(W)}px;height:${String(_)}px;transform-origin:0 0;pointer-events:none`;const h=document.createElement("div");h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.style.cssText=`position:absolute;left:50%;transform:translateX(-50%);bottom:${String((_>W?.2:.08)*_)}px;max-width:${String(W*.84)}px;padding:${String(10*j)}px ${String(22*j)}px;border-radius:${String(12*j)}px;background:rgba(0,0,0,.66);color:#fff;font:600 ${String(44*j)}px/1.3 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;text-align:center;display:none`,T.append(h),g.append(T);let w=!1;const me=e=>{const t=w?$.find(n=>e>=n.start&&e<n.end):void 0;t?(h.textContent!==t.text&&(h.textContent=t.text),h.style.display="block"):h.style.display="none"},he=()=>{Pe(),T.style.transform=d.style.transform,T.style.left=d.style.left,T.style.top=d.style.top};new ResizeObserver(he).observe(g),he();let p=k.kind==="slides"?"page":"play",o=0,y;const q=e=>Math.max(0,s.parts.findIndex(t=>e>=t.start&&e<t.end));p==="page"&&(o=q(x),m.setAttribute("aria-pressed","true"),m.textContent="Play all");let ie=-1,ye=0,xe=0;const Re=e=>De(s.parts,s.transitions,e,f),z=async(e,t=!1)=>{const n=Math.min(Math.floor(e*f+1e-9),Math.round(M*f));(n!==ie||t)&&(ie=n,await k.seek(n/f),c.value=String(n),c.setAttribute("aria-valuetext",le(e)),se.textContent=`${le(e)} / ${le(B)}`),me(e);const i=R();(t||i-xe>250)&&(xe=i,r.post?.({type:"time",t:e,part:Re(e),playing:l,mode:p}))},be={play:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><path d="M1 1.2v11.6a.6.6 0 0 0 .9.5l9.6-5.8a.6.6 0 0 0 0-1L1.9.7a.6.6 0 0 0-.9.5Z" fill="currentColor"/></svg>',pause:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><rect x="1" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/><rect x="7.5" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/></svg>'},ae=()=>{E.innerHTML=l?be.pause:be.play,E.setAttribute("aria-label",l?"pause":"play")},ve=()=>{for(const e of K)try{e.stop()}catch{}K=[];for(const e of ne)e.disconnect();ne=[]},Fe=e=>U+Math.max(0,e-b);function we(){if(!S||b>=S.duration)return;const e=a.createGain();e.connect(a.destination),ne.push(e);const t=a.createBufferSource();t.buffer=S,t.connect(e),K.push(t),t.start(Fe(b),b)}function P(e=u()){F++,l=!1,k.setPlaying(!1),x=Math.min(Math.max(e,0),M),ve(),ae(),z(x,!0)}async function oe(){const e=++F;if(x>=M&&(x=0),await Promise.race([a.resume().catch(()=>{}),new Promise(n=>{Ie(n,RESUME_WAIT_MS)})]),e!==F)return;b=x,U=a.currentTime+.05,I=R()+50,A=S!==void 0&&a.state==="running",!A&&$.length&&!X&&Z(!0),H={ctx:a.currentTime,real:R()},l=!0,k.setPlaying(!0),ae(),we();const t=()=>{if(ye++,!l||e!==F)return;Ee();const n=u();if(n>=M){P(M);return}if(y!==void 0&&n>=y){const i=s.parts[o]?.still??y;y=void 0,P(i);return}z(n),Me(t)};Me(t)}function G(e){const t=l;y=void 0,P(e),t&&oe()}let X=!1;function Z(e){w=e&&$.length>0,v.setAttribute("aria-pressed",String(w)),v.style.background=w?C:"transparent",v.style.color=w?L:C,me(u())}function ke(e){p=e,m.setAttribute("aria-pressed",String(e==="page")),m.textContent=e==="page"?"Play all":"Pages",y=void 0,e==="page"?O(q(u())):z(u(),!0)}function O(e){o=Math.min(Math.max(e,0),s.parts.length-1),y=void 0,P(s.parts[o]?.still??0)}function re(){if(l){y=void 0,P();return}if(p==="page"){const e=s.parts[o];e&&(x=e.start,y=e.end-1/f)}oe()}return E.addEventListener("click",e=>{e.stopPropagation(),re()}),g.addEventListener("click",re),c.addEventListener("input",()=>{G(Number(c.value)/f),p==="page"&&(o=q(Number(c.value)/f))}),v.addEventListener("click",e=>{e.stopPropagation(),X=!0,Z(!w)}),m.addEventListener("click",e=>{e.stopPropagation(),ke(p==="page"?"play":"page")}),addEventListener("keydown",e=>{if(!(e.metaKey||e.ctrlKey||e.altKey)){if(e.key===" "||e.key==="k")re();else if(e.key==="ArrowRight")p==="page"?O(o+1):G(u()+5);else if(e.key==="ArrowLeft")p==="page"?O(o-1):G(u()-5);else if(e.key==="c"&&$.length)X=!0,Z(!w);else if(e.key==="f")document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(()=>{});else return;e.preventDefault()}}),ae(),await z(x,!0),r.post?.({type:"ready",duration:B,parts:s.parts}),te.length>0&&(r.post?.({type:"sound",denoising:!0}),Promise.all(te.map(async({key:e,url:t})=>{const n=await Y(t);if(!n||(D.set(e,n),ue(),!l))return;const i=u();ve(),b=i,U=a.currentTime,I=R(),we()})).then(()=>{r.post?.({type:"sound",denoising:!1})})),{command(e){if(e.type==="play"){if(!l){if(p==="page"){const t=s.parts[o];t&&(y=t.end-1/f)}oe()}}else e.type==="pause"?P():e.type==="seek"&&Number.isFinite(e.t)?(G(e.t),p==="page"&&(o=q(e.t))):e.type==="mode"?ke(e.mode):e.type==="next"?O(o+1):e.type==="prev"?O(o-1):e.type==="captions"&&(X=!0,Z(e.on))},now:u,state:()=>({playing:l,audioClock:A,audio:a.state,t:u(),frame:ie,ticks:ye,generation:F,sounds:K.length,sfx:V.sfx.length,mode:p,page:o,captions:w,caption:h.style.display==="none"?"":h.textContent,cues:$.length})}}
2
+ import{decodeKey as J,decodings as Le,MASTER_DEFAULTS as Ne,previewMaster as Oe,renderMix as Be}from"@allyhub/audio";import{mixPlan as De,partOnScreen as Ue,subtitleCues as Ie}from"@allyhub/video-core";import{realNow as R,realRaf as Me,realTimeout as Ke}from"@allyhub/image-draw/guards";export const RESUME_WAIT_MS=400;const le=r=>`${String(Math.floor(r/60))}:${String(Math.floor(r%60)).padStart(2,"0")}`;export async function startPlayer(r){const{output:k,stage:d}=r,s=k.timeline,f=s.fps,B=s.duration,M=B-1/f,a=new AudioContext,Q=r.media??{},Se=r.seed??"",V=De(s,Q,{seed:Se}),Y=async e=>{if(e)try{const t=await fetch(e);return t.ok?await a.decodeAudioData(await t.arrayBuffer()):void 0}catch{return}},$e=(e,t)=>{const n=Q[e]?.denoisedUrl,i=[...t.denoise?[`db=${t.denoise.toFixed(2)}`]:[],...t.speed===void 0?[]:[`speed=${t.speed.toFixed(6)}`],...t.filter===void 0?[]:[`filter=${encodeURIComponent(t.filter)}`]];return n===void 0||i.length===0?void 0:`${n}?${i.join("&")}`},ee=new Map,D=new Map,te=[],ce=Le(V);for(const{file:e,how:t}of ce){const n=$e(e,t);if(n){const i=await Y(`${n}&wait=0`);i?D.set(J(e,t),i):te.push({key:J(e,t),url:n})}}for(const{file:e,how:t}of ce)ee.has(e)||D.has(J(e,t))||ee.set(e,await Y(Q[e]?.url));const de=e=>{const t=e.getChannelData(0);return[t,e.numberOfChannels>1?e.getChannelData(1):t]},Ae=(e,t)=>{const n=D.get(J(e,t));if(n)return{src:de(n),made:t};const i=ee.get(e);return i?{src:de(i),made:{}}:void 0},Ce=s.audio.master??{...Ne};let S;const ue=()=>{const e=Oe(Be(V,Ae,a.sampleRate),a.sampleRate,Ce);if(!e){S=void 0;return}const[t,n]=e,i=a.createBuffer(2,Math.max(1,t.length),a.sampleRate);i.getChannelData(0).set(t),i.getChannelData(1).set(n),S=i};ue();const $=Ie({lines:k.lines(),fps:s.fps},k.captionOptions()??void 0);let l=!1,x=Math.min(Math.max(r.start??s.parts[0]?.still??0,0),M),b=0,U=0,I=0,F=0,K=[],ne=[],A=!1,H={ctx:0,real:0};const u=()=>l?A?b+(a.currentTime-U):b+(R()-I)/1e3:x,Ee=()=>{if(!A)return;const e=R();if(a.currentTime!==H.ctx)H={ctx:a.currentTime,real:e};else if(e-H.real>300){const t=u();A=!1,b=t,I=e}},pe=r.chrome!==!1,L="#141210",C="#ece6da",Te="#a39a8b",fe='ui-monospace,"SF Mono",Menlo,monospace';document.documentElement.style.background=L,document.body.style.cssText=`margin:0;background:${L};overflow:hidden;font:13px/1 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;color:${C}`;const g=document.createElement("div");g.style.cssText=`position:fixed;left:0;right:0;top:0;bottom:${pe?"48px":"0"};overflow:hidden;cursor:pointer`,d.parentElement?.insertBefore(g,d),g.append(d),d.style.position="absolute",d.style.transformOrigin="0 0";const N=document.createElement("div");N.style.cssText=`position:fixed;left:0;right:0;bottom:0;height:48px;display:flex;align-items:center;gap:12px;padding:0 10px;background:${L};border-top:1px solid #2a2622`;const E=document.createElement("button");E.style.cssText=`width:32px;height:32px;border:0;border-radius:4px;background:${C};color:${L};cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none`,E.setAttribute("aria-label","play");const c=document.createElement("input");c.type="range",c.min="0",c.max=String(Math.round(B*f)),c.step="1",c.style.cssText=`flex:1;min-width:0;accent-color:${C};cursor:pointer`;const se=document.createElement("span");se.style.cssText=`font:12px/1 ${fe};font-variant-numeric:tabular-nums;min-width:86px;text-align:right;color:${Te}`;const ge=`height:28px;padding:0 9px;border:1px solid #3a352e;border-radius:4px;background:transparent;color:${C};font:12px/1 ${fe};cursor:pointer;flex:none`,v=document.createElement("button");v.textContent="CC",v.style.cssText=ge,v.setAttribute("aria-label","captions"),v.setAttribute("aria-pressed","false");const m=document.createElement("button");m.textContent="Pages",m.style.cssText=ge,m.setAttribute("aria-label","page by page"),m.setAttribute("aria-pressed","false"),N.setAttribute("role","toolbar"),c.setAttribute("aria-label","seek"),N.append(E,c,se,m),$.length&&N.append(v),pe&&document.body.append(N);const Pe=()=>{const e=Math.min(g.clientWidth/s.width,g.clientHeight/s.height);d.style.transform=`scale(${String(e)})`,d.style.left=`${String((g.clientWidth-s.width*e)/2)}px`,d.style.top=`${String((g.clientHeight-s.height*e)/2)}px`},W=s.width,_=s.height,j=Math.min(W,_)/1080,T=document.createElement("div");T.style.cssText=`position:absolute;left:0;top:0;width:${String(W)}px;height:${String(_)}px;transform-origin:0 0;pointer-events:none`;const h=document.createElement("div");h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.style.cssText=`position:absolute;left:50%;transform:translateX(-50%);bottom:${String((_>W?.2:.08)*_)}px;max-width:${String(W*.84)}px;padding:${String(10*j)}px ${String(22*j)}px;border-radius:${String(12*j)}px;background:rgba(0,0,0,.66);color:#fff;font:600 ${String(44*j)}px/1.3 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;text-align:center;display:none`,T.append(h),g.append(T);let w=!1;const me=e=>{const t=w?$.find(n=>e>=n.start&&e<n.end):void 0;t?(h.textContent!==t.text&&(h.textContent=t.text),h.style.display="block"):h.style.display="none"},he=()=>{Pe(),T.style.transform=d.style.transform,T.style.left=d.style.left,T.style.top=d.style.top};new ResizeObserver(he).observe(g),he();let p=k.kind==="slides"?"page":"play",o=0,y;const q=e=>Math.max(0,s.parts.findIndex(t=>e>=t.start&&e<t.end));p==="page"&&(o=q(x),m.setAttribute("aria-pressed","true"),m.textContent="Play all");let ie=-1,ye=0,xe=0;const Re=e=>Ue(s.parts,s.transitions,e,f),z=async(e,t=!1)=>{const n=Math.min(Math.floor(e*f+1e-9),Math.round(M*f));(n!==ie||t)&&(ie=n,await k.seek(n/f),c.value=String(n),c.setAttribute("aria-valuetext",le(e)),se.textContent=`${le(e)} / ${le(B)}`),me(e);const i=R();(t||i-xe>250)&&(xe=i,r.post?.({type:"time",t:e,part:Re(e),playing:l,mode:p}))},be={play:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><path d="M1 1.2v11.6a.6.6 0 0 0 .9.5l9.6-5.8a.6.6 0 0 0 0-1L1.9.7a.6.6 0 0 0-.9.5Z" fill="currentColor"/></svg>',pause:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><rect x="1" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/><rect x="7.5" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/></svg>'},ae=()=>{E.innerHTML=l?be.pause:be.play,E.setAttribute("aria-label",l?"pause":"play")},ve=()=>{for(const e of K)try{e.stop()}catch{}K=[];for(const e of ne)e.disconnect();ne=[]},Fe=e=>U+Math.max(0,e-b);function we(){if(!S||b>=S.duration)return;const e=a.createGain();e.connect(a.destination),ne.push(e);const t=a.createBufferSource();t.buffer=S,t.connect(e),K.push(t),t.start(Fe(b),b)}function P(e=u()){F++,l=!1,k.setPlaying(!1),x=Math.min(Math.max(e,0),M),ve(),ae(),z(x,!0)}async function oe(){const e=++F;if(x>=M&&(x=0),await Promise.race([a.resume().catch(()=>{}),new Promise(n=>{Ke(n,RESUME_WAIT_MS)})]),e!==F)return;b=x,U=a.currentTime+.05,I=R()+50,A=S!==void 0&&a.state==="running",!A&&$.length&&!X&&Z(!0),H={ctx:a.currentTime,real:R()},l=!0,k.setPlaying(!0),ae(),we();const t=()=>{if(ye++,!l||e!==F)return;Ee();const n=u();if(n>=M){P(M);return}if(y!==void 0&&n>=y){const i=s.parts[o]?.still??y;y=void 0,P(i);return}z(n),Me(t)};Me(t)}function G(e){const t=l;y=void 0,P(e),t&&oe()}let X=!1;function Z(e){w=e&&$.length>0,v.setAttribute("aria-pressed",String(w)),v.style.background=w?C:"transparent",v.style.color=w?L:C,me(u())}function ke(e){p=e,m.setAttribute("aria-pressed",String(e==="page")),m.textContent=e==="page"?"Play all":"Pages",y=void 0,e==="page"?O(q(u())):z(u(),!0)}function O(e){o=Math.min(Math.max(e,0),s.parts.length-1),y=void 0,P(s.parts[o]?.still??0)}function re(){if(l){y=void 0,P();return}if(p==="page"){const e=s.parts[o];e&&(x=e.start,y=e.end-1/f)}oe()}return E.addEventListener("click",e=>{e.stopPropagation(),re()}),g.addEventListener("click",re),c.addEventListener("input",()=>{G(Number(c.value)/f),p==="page"&&(o=q(Number(c.value)/f))}),v.addEventListener("click",e=>{e.stopPropagation(),X=!0,Z(!w)}),m.addEventListener("click",e=>{e.stopPropagation(),ke(p==="page"?"play":"page")}),addEventListener("keydown",e=>{if(!(e.metaKey||e.ctrlKey||e.altKey)){if(e.key===" "||e.key==="k")re();else if(e.key==="ArrowRight")p==="page"?O(o+1):G(u()+5);else if(e.key==="ArrowLeft")p==="page"?O(o-1):G(u()-5);else if(e.key==="c"&&$.length)X=!0,Z(!w);else if(e.key==="f")document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(()=>{});else return;e.preventDefault()}}),ae(),await z(x,!0),r.post?.({type:"ready",duration:B,parts:s.parts}),te.length>0&&(r.post?.({type:"sound",denoising:!0}),Promise.all(te.map(async({key:e,url:t})=>{const n=await Y(t);if(!n||(D.set(e,n),ue(),!l))return;const i=u();ve(),b=i,U=a.currentTime,I=R(),we()})).then(()=>{r.post?.({type:"sound",denoising:!1})})),{command(e){if(e.type==="play"){if(!l){if(p==="page"){const t=s.parts[o];t&&(y=t.end-1/f)}oe()}}else e.type==="pause"?P():e.type==="seek"&&Number.isFinite(e.t)?(G(e.t),p==="page"&&(o=q(e.t))):e.type==="mode"?ke(e.mode):e.type==="next"?O(o+1):e.type==="prev"?O(o-1):e.type==="captions"&&(X=!0,Z(e.on))},now:u,state:()=>({playing:l,audioClock:A,audio:a.state,t:u(),frame:ie,ticks:ye,generation:F,sounds:K.length,sfx:V.sfx.length,mode:p,page:o,captions:w,caption:h.style.display==="none"?"":h.textContent,cues:$.length})}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{resolveMaster as j,resolveMix as I}from"@allyhub/audio";import{BUILTIN_SFX as P,isBuiltinSfx as y,problem as x,toFrame as M}from"@allyhub/video-core";import{voicePlan as B}from"./mix-plan.js";const b=u=>Math.round(u*1e6)/1e6;export function soundPlanner(u,O){const{source:p,log:w,ledger:m}=u,{look:k,fps:$,options:r,dims:S}=O,c=[],l=[],h=[],T=(t,o,d)=>{const i=t.sound;let n,s;if(typeof i=="string"){s=i;const f=k.sfx[i];if(f!==void 0){const e=f.replace(/^\.\//,"");if(n=w.mediaAt(e),!n){w.missing(e),m.problems.push(x("AK-A001",`The look's sound "${i}" is ${e}, which is not in the project. Put the file there, or change look.sfx in allyhub.config.ts.`,{part:o,where:{file:p.file}}));return}}else{if(y(i))return{sound:i};if(/[./]/.test(i))n=u.mediaOf(i,d);else{const e=[...P,...Object.keys(k.sfx)];m.problems.push(x("AK-A001",`The sound "${i}" in part ${o} is not one of the look's sounds (${[...new Set(e)].join(", ")}) and not a file. Name one of them, give a file ("./sfx/${i}.wav" or an import), or add it to look.sfx in allyhub.config.ts.`,{part:o,where:{file:p.file}}));return}}}else n=u.mediaOf(i,d),s=n.path.split("/").pop()??n.path;if(n.sha256!==""){if(n.kind!=="audio"&&!(n.kind==="video"&&n.audio)){m.problems.push(x("AK-A003",`The sound ${n.path} in part ${o} is not audio. Give an audio file (wav, mp3, m4a…) or a video with sound.`,{part:o,where:{file:p.file}}));return}return{sound:s,file:n.path}}};return{addSpeech(t,o){l.push(...t),h.push(...o)},sfx(t,o,d){const i=o.end-o.start;for(const n of t.sounds??[]){const s=T(n,t.key,t.base);if(!s)continue;const f=Math.min(Math.max(d(n.at),0),i);c.push({t:M(o.start+f,$),sound:s.sound,part:o.key,...n.what===void 0?{}:{what:n.what},...s.file===void 0?{}:{file:s.file},...n.gainDb===void 0||n.gainDb===0?{}:{gainDb:n.gainDb},...n.shape?{shape:n.shape}:{}})}},carry(t,o,d,i,n,s){const f=e=>{const a=Math.max(e.at,o),g=Math.min(e.at+e.dur,d);if(g-a<.005)return;const{fadeIn:v,fadeOut:A,...D}=e;return delete D.tone,{...D,part:n,at:b(i+a-o),from:b(e.from+(a-e.at)*(e.speed??1)),dur:b(g-a),...e.gainDb!==void 0||s!==0?{gainDb:(e.gainDb??0)+s}:{},...v!==void 0&&a===e.at?{fadeIn:v}:{},...A!==void 0&&g===e.at+e.dur?{fadeOut:A}:{}}};for(const e of t.timeline.audio.speech??[]){const a=f(e);a&&l.push(a)}for(const e of t.timeline.audio.room??[]){const a=f(e);a&&h.push(a)}for(const e of t.timeline.cues)e.t<o-1e-6||e.t>=d-1e-6||c.push({...e,t:M(i+e.t-o,$),part:n,...e.gainDb!==void 0||s!==0?{gainDb:(e.gainDb??0)+s}:{}})},cues:()=>[...c].sort((t,o)=>t.t-o.t),audio(t,o){const d=S.profile;return{...l.length>0?{speech:l}:{},...h.length>0?{room:h}:{},...t?{music:t}:{},...r.mix?{mix:I(r.mix)}:{},master:j(r.master,d?.loudness),...B(r.mic,o)}}}}
2
+ import{resolveMaster as T,resolveMix as j}from"@allyhub/audio";import{problem as x}from"@allyhub/diagnostics";import{BUILTIN_SFX as I,isBuiltinSfx as P,toFrame as M}from"@allyhub/piece";import{voicePlan as y}from"@allyhub/video-core";const b=r=>Math.round(r*1e6)/1e6;export function soundPlanner(r,O){const{source:m,log:w,ledger:p}=r,{look:k,fps:$,options:u}=O,c=[],l=[],h=[],S=(t,o,d)=>{const i=t.sound;let n,s;if(typeof i=="string"){s=i;const f=k.sfx[i];if(f!==void 0){const e=f.replace(/^\.\//,"");if(n=w.mediaAt(e),!n){w.missing(e),p.problems.push(x("AK-A001",`The look's sound "${i}" is ${e}, which is not in the project. Put the file there, or change look.sfx in allyhub.config.ts.`,{part:o,where:{file:m.file}}));return}}else{if(P(i))return{sound:i};if(/[./]/.test(i))n=r.mediaOf(i,d);else{const e=[...I,...Object.keys(k.sfx)];p.problems.push(x("AK-A001",`The sound "${i}" in part ${o} is not one of the look's sounds (${[...new Set(e)].join(", ")}) and not a file. Name one of them, give a file ("./sfx/${i}.wav" or an import), or add it to look.sfx in allyhub.config.ts.`,{part:o,where:{file:m.file}}));return}}}else n=r.mediaOf(i,d),s=n.path.split("/").pop()??n.path;if(n.sha256!==""){if(n.kind!=="audio"&&!(n.kind==="video"&&n.audio)){p.problems.push(x("AK-A003",`The sound ${n.path} in part ${o} is not audio. Give an audio file (wav, mp3, m4a…) or a video with sound.`,{part:o,where:{file:m.file}}));return}return{sound:s,file:n.path}}};return{addSpeech(t,o){l.push(...t),h.push(...o)},sfx(t,o,d){const i=o.end-o.start;for(const n of t.sounds??[]){const s=S(n,t.key,t.base);if(!s)continue;const f=Math.min(Math.max(d(n.at),0),i);c.push({t:M(o.start+f,$),sound:s.sound,part:o.key,...n.what===void 0?{}:{what:n.what},...s.file===void 0?{}:{file:s.file},...n.gainDb===void 0||n.gainDb===0?{}:{gainDb:n.gainDb},...n.shape?{shape:n.shape}:{}})}},carry(t,o,d,i,n,s){const f=e=>{const a=Math.max(e.at,o),g=Math.min(e.at+e.dur,d);if(g-a<.005)return;const{fadeIn:v,fadeOut:A,...D}=e;return delete D.tone,{...D,part:n,at:b(i+a-o),from:b(e.from+(a-e.at)*(e.speed??1)),dur:b(g-a),...e.gainDb!==void 0||s!==0?{gainDb:(e.gainDb??0)+s}:{},...v!==void 0&&a===e.at?{fadeIn:v}:{},...A!==void 0&&g===e.at+e.dur?{fadeOut:A}:{}}};for(const e of t.timeline.audio.speech??[]){const a=f(e);a&&l.push(a)}for(const e of t.timeline.audio.room??[]){const a=f(e);a&&h.push(a)}for(const e of t.timeline.cues)e.t<o-1e-6||e.t>=d-1e-6||c.push({...e,t:M(i+e.t-o,$),part:n,...e.gainDb!==void 0||s!==0?{gainDb:(e.gainDb??0)+s}:{}})},cues:()=>[...c].sort((t,o)=>t.t-o.t),audio(t,o){return{...l.length>0?{speech:l}:{},...h.length>0?{room:h}:{},...t?{music:t}:{},...u.mix?{mix:j(u.mix)}:{},master:T(u.master),...y(u.mic,o)}}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{applyEdits as q,DEFAULT_VOICE_TOOL as J,editedLength as Y,envelopeFrames as H,estimateSpeech as W,parseEditList as Q,speechPads as X,joinWords as Z,LINE_FOUND as j,mediaByStem as ee,nearestPhrases as C,normText as O,problem as c,sayStem as te,removedWords as ne,WordStream as se,WordView as G}from"@allyhub/video-core";export const SAYING_MARGIN=.1;function U(e){return e.envelope===void 0?void 0:H(e.envelope)}function D(e,n,r,h){const u=n[r]??{text:"",start:0,end:0},$=n[h]??u,w=u.start,f=Math.max(.05,$.end-u.start),i=g=>Math.round(g*1e3)/1e3;return{from:i(w),dur:i(f),...X(n,r,h,e.duration,U(e)),words:n.slice(r,h+1).map(g=>({text:g.text,start:i(g.start-w),end:i(g.end-w)}))}}const F=e=>e.map(n=>`"${n}"`).join(", ");export function resolveSpeech(e,n,r,h){const u=ie(e,n,r,h),$=e.tempo??1;return $===1?u:atSpeed(u,$)}const E=e=>Math.round(e*1e3)/1e3;export function atSpeed(e,n){const r=e.speech;return{...e,...e.estimate===void 0?{}:{estimate:e.estimate/n},...r?{speech:{...r,dur:E(r.dur/n),padIn:r.padIn/n,padOut:r.padOut/n,words:r.words.map(h=>({...h,start:E(h.start/n),end:E(h.end/n)})),speed:n}}:{}}}function ie(e,n,r,h){const u={part:n,where:{file:r.file}};if(e.kind==="say"){const s=r.log.spokenOf(e.text),t=s?.speak??e.text,o=e.tool??J,a=te({text:t,voice:e.voice,tool:o,params:e.params}),l=ee(r.media,a),d={shown:e.text,...s?{speechKey:s.key}:{},...s?.anchors?{anchors:s.anchors}:{}},p={part:n,text:t,...e.voice===void 0?{}:{voice:e.voice},tool:o,...e.params===void 0?{}:{params:e.params},stem:a,...l?{file:l.path}:{}};if(!l)return r.log.missing(a),h.push(c("AK-T002",`Part ${n} says "${t.length>80?`${t.slice(0,80)}…`:t}" with ${o}${e.voice===void 0?"":` (voice ${e.voice})`}, and there is no file for it yet (${a}.*). Run allyhub voice in the project: it makes one file per say, after you tell the person the price. A changed text, voice, tool or params needs a new file.`,u)),{estimate:W(t),say:p,script:t,...d};const y=r.log.mediaAt(l.path)??l,k=y.words??[];return k.length===0?(h.push(c("AK-T001",`The say file ${y.path} of part ${n} has no word times beside it. Make it again with allyhub voice, or write them with allyhub words ${y.path}.`,u)),{estimate:y.duration??W(t),say:p,script:t,...d}):{speech:{media:y,...D(y,k,0,k.length-1),script:t,...d},say:p,...d}}const $=e.line===void 0?void 0:r.log.spokenOf(e.line),w=e.line===void 0?{}:{shown:e.line,...$?{speechKey:$.key}:{},...$?.anchors?{anchors:$.anchors}:{}},f=e.line===void 0?void 0:$?.speak??e.line,i=r.mediaOf(e.file,e.fileBase),g=()=>({estimate:f!==void 0?W(f):i.duration??4,...f===void 0?{}:{script:f},...w});if(i.sha256==="")return g();if(i.kind!=="audio"&&i.kind!=="video")return h.push(c("AK-A003",`The take ${i.path} of part ${n} is not audio or video.`,u)),g();const P=i.gen?.input?.text;f!==void 0&&typeof P=="string"&&!O(P).includes(O(f))&&h.push(c("AK-T007",`Part ${n} says "${f.length>80?`${f.slice(0,80)}…`:f}", but its voice ${i.path} was made from other words (its record ${i.gen?.record??""} has the text). Make the voice again from the lines as they are now, or change the line back; a word the voice was given in another spelling is written <shown|said> in the line.`,u));const m=i.words??[];if(m.length===0)return h.push(c("AK-T001",`The take ${i.path} of part ${n} has no word times beside it (${i.path.replace(/\.[^./]+$/,"")}.words.json). Run allyhub words ${i.path} to write them.`,u)),g();let M,I;if(e.editsFile!==void 0){const s=r.log.optionalData(e.editsFile,e.editsBase),t=s.full??e.editsFile;if(s.found&&(I=t),!s.found)h.push(c("AK-T005",`The edits file ${t} of part ${n} is not there (named "${e.editsFile}" in ${r.log.baseOf(e.editsBase)}), so its take would play uncut. Write it (the preview's transcript writes it at the first word struck; { "remove": [] } removes nothing), or fix the path: it is relative to the file that names it.`,{part:n,where:{file:r.log.baseOf(e.editsBase)}}));else if(s.error!==void 0)h.push(c("AK-T005",`The edits file ${t} of part ${n} is not valid JSON: ${s.error}`,{part:n,where:{file:t}}));else{const o=Q(s.value);typeof o=="string"?h.push(c("AK-T005",`The edits file ${t} of part ${n} does not match the format: ${o}.`,{part:n,where:{file:t}})):M=o}}const V=new se(m),{cut:T}=ne(m,M,V),x=new G(m,T),R=T.size>0?new G(m):x,S=m.length-1,B=s=>x.index.filter(t=>t>=s).map(t=>m[t]??{text:"",start:0,end:0}),L=(s,t)=>{const o=[];for(let a=s;a<=t;a++){if(!T.has(a))continue;let l=a;for(;l+1<=t&&T.has(l+1);)l++;const d=Z(m.slice(a,l+1));o.push(`#${String(a)}${l>a?`–#${String(l)}`:""} ("${d.length>60?`${d.slice(0,60)}…`:d}")`),a=l}return o},b=(s,t)=>T.size>0?R.span(O(s),t,S):void 0,v=I??"the edits file";let K=0,A=S,N;if(e.from!==void 0){const s=x.span(O(e.from),0,S);if(!s){const t=b(e.from,0),o=C(B(0),e.from);return h.push(t?c("AK-T006",`The range of part ${n} starts at "${e.from}", which ${i.path} says only in words its edits remove: ${L(t.first,t.last).join(", ")}. Start the range at words the cut keeps${o.length?` (nearest: ${F(o)})`:""}, or keep those words in ${v}.`,u):c("AK-T003",`The range of part ${n} starts at "${e.from}", which ${i.path} does not say.${o.length?` Nearest: ${F(o)}.`:""}`,u)),g()}if(K=s.first,A=S,e.to!==void 0){const t=x.span(O(e.to),s.first,S);if(!t){const o=b(e.to,s.first),a=C(B(s.first),e.to);return h.push(o?c("AK-T006",`The range of part ${n} ends at "${e.to}", which ${i.path} says after "${e.from}" only in words its edits remove: ${L(o.first,o.last).join(", ")}. End the range at words the cut keeps${a.length?` (nearest: ${F(a)})`:""}, or keep those words in ${v}.`,u):c("AK-T003",`The range of part ${n} ends at "${e.to}", which ${i.path} does not say after "${e.from}".${a.length?` Nearest: ${F(a)}.`:""}`,u)),g()}A=Math.max(t.last,s.first)}}else if(f!==void 0){const s=r.cursor.get(i.path)??0;let t=x.findLine(f,s),o=s;if((!t||t.score<j)&&s>0){const d=x.findLine(f,0);d&&d.score>=j&&(t=d,o=0)}const a=f.length>80?`${f.slice(0,80)}…`:f,l=d=>`${String(Math.round(d*100))} %`;if(T.size>0){const d=R.findLine(f,o),p=d?L(d.first,d.last):[];d&&d.score>=j&&p.length>0&&d.score-(t?.score??0)>=SAYING_MARGIN&&h.push(c("AK-T006",`Part ${n} is saying "${a}"${$?` (${$.key})`:""}, which ${i.path} says at #${String(d.first)}–#${String(d.last)} (${l(d.score)} of the line), but its edits remove ${p.join(", ")} there. Among the words the cut keeps, ${t?`#${String(t.first)}–#${String(t.last)} match ${l(t.score)} of it`:"it is not found"}. Make the line what the cut keeps, or keep those words in ${v}.`,u))}if(!t||t.score<j)return h.push(c("AK-T003",`Part ${n} is saying "${a}", which ${i.path} does not say${T.size>0?" in the words its edits keep":""}${t?` (the closest stretch, #${String(t.first)}–#${String(t.last)}, matches ${l(t.score)} of it)`:""}. Check that the line and the recording are the same script${$?` (${$.key})`:""}.`,u)),g();K=t.first,A=t.last,N={score:Math.round(t.score*100)/100,from:o}}r.cursor.set(i.path,A+1);const z=e.denoiseDb!==void 0&&e.denoiseDb>0?{denoise:e.denoiseDb}:{},_={span:[K,A],...N?{match:N}:{},...I===void 0?{}:{edits:I}};if(M){const s=q(m,M,K,A,{levels:U(i),fps:r.fps});for(const k of s.lost)h.push(c("AK-T005",`An edit in ${v} removes words ${String(k.from)}–${String(k.to)}${k.text===void 0?"":` ("${k.text}")`}, which ${i.path} no longer says. Remove that edit, or strike the words again in the transcript.`,{part:n,where:{file:v}}));const t=s.kept[0],o=s.kept.at(-1),a=s.ranges[0];if(t===void 0||o===void 0||!a)return h.push(c("AK-T005",`The edits in ${v} remove every word part ${n} says.`,{part:n,where:{file:v}})),g();const l=D(i,m,t,o),d=s.ranges.at(-1)??a,p=a.from>(m[t]?.start??0)+1e-6,y=d.to<(m[o]?.end??0)-1e-6;return{speech:{media:i,...l,...p?{from:a.from,padIn:0}:{},...y?{padOut:0}:{},dur:Math.round(Y(s.ranges)*1e3)/1e3,words:s.words,...s.ranges.length>1?{ranges:s.ranges}:{},..._,...z,...f===void 0?{}:{script:f},...w},...w}}return{speech:{media:i,...D(i,m,K,A),..._,...z,...f===void 0?{}:{script:f},...w},...w}}
2
+ import{problem as c}from"@allyhub/diagnostics";import{applyEdits as q,DEFAULT_VOICE_TOOL as J,editedLength as Y,estimateSpeech as W,parseEditList as H,speechPads as Q,sayStem as X,removedWords as Z}from"@allyhub/video-core";import{envelopeFrames as ee,joinWords as te,LINE_FOUND as j,mediaByStem as ne,nearestPhrases as C,normText as O,WordStream as ie,WordView as G}from"@allyhub/piece";export const SAYING_MARGIN=.1;function U(e){return e.envelope===void 0?void 0:ee(e.envelope)}function D(e,n,r,h){const u=n[r]??{text:"",start:0,end:0},$=n[h]??u,w=u.start,f=Math.max(.05,$.end-u.start),s=m=>Math.round(m*1e3)/1e3;return{from:s(w),dur:s(f),...Q(n,r,h,e.duration,U(e)),words:n.slice(r,h+1).map(m=>({text:m.text,start:s(m.start-w),end:s(m.end-w)}))}}const F=e=>e.map(n=>`"${n}"`).join(", ");export function resolveSpeech(e,n,r,h){const u=se(e,n,r,h),$=e.tempo??1;return $===1?u:atSpeed(u,$)}const E=e=>Math.round(e*1e3)/1e3;export function atSpeed(e,n){const r=e.speech;return{...e,...e.estimate===void 0?{}:{estimate:e.estimate/n},...r?{speech:{...r,dur:E(r.dur/n),padIn:r.padIn/n,padOut:r.padOut/n,words:r.words.map(h=>({...h,start:E(h.start/n),end:E(h.end/n)})),speed:n}}:{}}}function se(e,n,r,h){const u={part:n,where:{file:r.file}};if(e.kind==="say"){const i=r.log.spokenOf(e.text),t=i?.speak??e.text,o=e.tool??J,a=X({text:t,voice:e.voice,tool:o,params:e.params}),l=ne(r.media,a),d={shown:e.text,...i?{speechKey:i.key}:{},...i?.anchors?{anchors:i.anchors}:{}},p={part:n,text:t,...e.voice===void 0?{}:{voice:e.voice},tool:o,...e.params===void 0?{}:{params:e.params},stem:a,...l?{file:l.path}:{}};if(!l)return r.log.missing(a),h.push(c("AK-T002",`Part ${n} says "${t.length>80?`${t.slice(0,80)}…`:t}" with ${o}${e.voice===void 0?"":` (voice ${e.voice})`}, and there is no file for it yet (${a}.*). Run allyhub voice in the project: it makes one file per say, after you tell the person the price. A changed text, voice, tool or params needs a new file.`,u)),{estimate:W(t),say:p,script:t,...d};const y=r.log.mediaAt(l.path)??l,k=y.words??[];return k.length===0?(h.push(c("AK-T001",`The say file ${y.path} of part ${n} has no word times beside it. Make it again with allyhub voice, or write them with allyhub words ${y.path}.`,u)),{estimate:y.duration??W(t),say:p,script:t,...d}):{speech:{media:y,...D(y,k,0,k.length-1),script:t,...d},say:p,...d}}const $=e.line===void 0?void 0:r.log.spokenOf(e.line),w=e.line===void 0?{}:{shown:e.line,...$?{speechKey:$.key}:{},...$?.anchors?{anchors:$.anchors}:{}},f=e.line===void 0?void 0:$?.speak??e.line,s=r.mediaOf(e.file,e.fileBase),m=()=>({estimate:f!==void 0?W(f):s.duration??4,...f===void 0?{}:{script:f},...w});if(s.sha256==="")return m();if(s.kind!=="audio"&&s.kind!=="video")return h.push(c("AK-A003",`The take ${s.path} of part ${n} is not audio or video.`,u)),m();const P=s.gen?.input?.text;f!==void 0&&typeof P=="string"&&!O(P).includes(O(f))&&h.push(c("AK-T007",`Part ${n} says "${f.length>80?`${f.slice(0,80)}…`:f}", but its voice ${s.path} was made from other words (its record ${s.gen?.record??""} has the text). Make the voice again from the lines as they are now, or change the line back; a word the voice was given in another spelling is written <shown|said> in the line.`,u));const g=s.words??[];if(g.length===0)return h.push(c("AK-T001",`The take ${s.path} of part ${n} has no word times beside it (${s.path.replace(/\.[^./]+$/,"")}.words.json). Run allyhub words ${s.path} to write them.`,u)),m();let M,I;if(e.editsFile!==void 0){const i=r.log.optionalData(e.editsFile,e.editsBase),t=i.full??e.editsFile;if(i.found&&(I=t),!i.found)h.push(c("AK-T005",`The edits file ${t} of part ${n} is not there (named "${e.editsFile}" in ${r.log.baseOf(e.editsBase)}), so its take would play uncut. Write it (the preview's transcript writes it at the first word struck; { "remove": [] } removes nothing), or fix the path: it is relative to the file that names it.`,{part:n,where:{file:r.log.baseOf(e.editsBase)}}));else if(i.error!==void 0)h.push(c("AK-T005",`The edits file ${t} of part ${n} is not valid JSON: ${i.error}`,{part:n,where:{file:t}}));else{const o=H(i.value);typeof o=="string"?h.push(c("AK-T005",`The edits file ${t} of part ${n} does not match the format: ${o}.`,{part:n,where:{file:t}})):M=o}}const V=new ie(g),{cut:T}=Z(g,M,V),x=new G(g,T),R=T.size>0?new G(g):x,S=g.length-1,B=i=>x.index.filter(t=>t>=i).map(t=>g[t]??{text:"",start:0,end:0}),L=(i,t)=>{const o=[];for(let a=i;a<=t;a++){if(!T.has(a))continue;let l=a;for(;l+1<=t&&T.has(l+1);)l++;const d=te(g.slice(a,l+1));o.push(`#${String(a)}${l>a?`–#${String(l)}`:""} ("${d.length>60?`${d.slice(0,60)}…`:d}")`),a=l}return o},b=(i,t)=>T.size>0?R.span(O(i),t,S):void 0,v=I??"the edits file";let K=0,A=S,N;if(e.from!==void 0){const i=x.span(O(e.from),0,S);if(!i){const t=b(e.from,0),o=C(B(0),e.from);return h.push(t?c("AK-T006",`The range of part ${n} starts at "${e.from}", which ${s.path} says only in words its edits remove: ${L(t.first,t.last).join(", ")}. Start the range at words the cut keeps${o.length?` (nearest: ${F(o)})`:""}, or keep those words in ${v}.`,u):c("AK-T003",`The range of part ${n} starts at "${e.from}", which ${s.path} does not say.${o.length?` Nearest: ${F(o)}.`:""}`,u)),m()}if(K=i.first,A=S,e.to!==void 0){const t=x.span(O(e.to),i.first,S);if(!t){const o=b(e.to,i.first),a=C(B(i.first),e.to);return h.push(o?c("AK-T006",`The range of part ${n} ends at "${e.to}", which ${s.path} says after "${e.from}" only in words its edits remove: ${L(o.first,o.last).join(", ")}. End the range at words the cut keeps${a.length?` (nearest: ${F(a)})`:""}, or keep those words in ${v}.`,u):c("AK-T003",`The range of part ${n} ends at "${e.to}", which ${s.path} does not say after "${e.from}".${a.length?` Nearest: ${F(a)}.`:""}`,u)),m()}A=Math.max(t.last,i.first)}}else if(f!==void 0){const i=r.cursor.get(s.path)??0;let t=x.findLine(f,i),o=i;if((!t||t.score<j)&&i>0){const d=x.findLine(f,0);d&&d.score>=j&&(t=d,o=0)}const a=f.length>80?`${f.slice(0,80)}…`:f,l=d=>`${String(Math.round(d*100))} %`;if(T.size>0){const d=R.findLine(f,o),p=d?L(d.first,d.last):[];d&&d.score>=j&&p.length>0&&d.score-(t?.score??0)>=SAYING_MARGIN&&h.push(c("AK-T006",`Part ${n} is saying "${a}"${$?` (${$.key})`:""}, which ${s.path} says at #${String(d.first)}–#${String(d.last)} (${l(d.score)} of the line), but its edits remove ${p.join(", ")} there. Among the words the cut keeps, ${t?`#${String(t.first)}–#${String(t.last)} match ${l(t.score)} of it`:"it is not found"}. Make the line what the cut keeps, or keep those words in ${v}.`,u))}if(!t||t.score<j)return h.push(c("AK-T003",`Part ${n} is saying "${a}", which ${s.path} does not say${T.size>0?" in the words its edits keep":""}${t?` (the closest stretch, #${String(t.first)}–#${String(t.last)}, matches ${l(t.score)} of it)`:""}. Check that the line and the recording are the same script${$?` (${$.key})`:""}.`,u)),m();K=t.first,A=t.last,N={score:Math.round(t.score*100)/100,from:o}}r.cursor.set(s.path,A+1);const z=e.denoiseDb!==void 0&&e.denoiseDb>0?{denoise:e.denoiseDb}:{},_={span:[K,A],...N?{match:N}:{},...I===void 0?{}:{edits:I}};if(M){const i=q(g,M,K,A,{levels:U(s),fps:r.fps});for(const k of i.lost)h.push(c("AK-T005",`An edit in ${v} removes words ${String(k.from)}–${String(k.to)}${k.text===void 0?"":` ("${k.text}")`}, which ${s.path} no longer says. Remove that edit, or strike the words again in the transcript.`,{part:n,where:{file:v}}));const t=i.kept[0],o=i.kept.at(-1),a=i.ranges[0];if(t===void 0||o===void 0||!a)return h.push(c("AK-T005",`The edits in ${v} remove every word part ${n} says.`,{part:n,where:{file:v}})),m();const l=D(s,g,t,o),d=i.ranges.at(-1)??a,p=a.from>(g[t]?.start??0)+1e-6,y=d.to<(g[o]?.end??0)-1e-6;return{speech:{media:s,...l,...p?{from:a.from,padIn:0}:{},...y?{padOut:0}:{},dur:Math.round(Y(i.ranges)*1e3)/1e3,words:i.words,...i.ranges.length>1?{ranges:i.ranges}:{},..._,...z,...f===void 0?{}:{script:f},...w},...w}}return{speech:{media:s,...D(s,g,K,A),..._,...z,...f===void 0?{}:{script:f},...w},...w}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{createEnv,Ledger}from"./env.js";export{LoadFailure,codeOf,messageOf}from"./errors.js";export{consoleAt,consoleAtAsync}from"./console.js";export{loadFaces,loadTextFonts,codePoints,namedFamilies,families,localFamily,pageFaces}from"./fonts.js";export{pictureWaiter,watchPictures}from"./pictures.js";export{watchStyles}from"./styles.js";export{textBlocks}from"./inspect.js";export{inkOfBlock}from"./contrast.js";export{domHash}from"./measure.js";export{realTimers}from"./guards.js";
2
+ export{createEnv,Ledger}from"@allyhub/image-draw/env";export{planStack,resolveTimes,windowOf}from"./compose.js";export{pieceContext}from"./piece.js";export{createStage}from"@allyhub/image-draw/stage";export{load}from"./output.js";export{LoadFailure,codeOf,messageOf}from"@allyhub/image-draw/errors";export{answerFilm,playFilm}from"./film.js";export{loadFaces,loadTextFonts,codePoints,namedFamilies,families,localFamily,pageFaces,drawnFamilies,emojiOf,fontWant,propFamilies,stringsOf,styleSheetFamilies}from"@allyhub/image-draw/fonts";export{pictureWaiter,watchPictures}from"@allyhub/image-draw/pictures";export{watchStyles}from"@allyhub/image-draw/styles";export{inspectFrame,screenTexts,textBlocks}from"@allyhub/image-draw/inspect";export{inkOfBlock}from"@allyhub/image-draw/contrast";export{domHash}from"./measure.js";export{realNow,realTimers,within}from"@allyhub/image-draw/guards";export{partTitles}from"./titles.js";