allyhub 0.18.0 → 0.20.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 (1050) hide show
  1. package/bin/allyhub.js +10 -0
  2. package/dist/args.js +1 -1
  3. package/dist/command.js +1 -1
  4. package/dist/commands/add.js +1 -1
  5. package/dist/commands/align.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +2 -2
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +1 -1
  11. package/dist/commands/dev.js +5 -5
  12. package/dist/commands/export.js +3 -0
  13. package/dist/commands/found-extensions.js +2 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/doc.js +1 -1
  16. package/dist/commands/frames/piece.js +1 -1
  17. package/dist/commands/frames/sheet.js +1 -1
  18. package/dist/commands/frames.js +9 -9
  19. package/dist/commands/index.js +1 -1
  20. package/dist/commands/inspect/combos.js +1 -1
  21. package/dist/commands/inspect/common.js +3 -3
  22. package/dist/commands/inspect/facts.js +2 -2
  23. package/dist/commands/inspect/index.js +1 -1
  24. package/dist/commands/inspect/layout.js +1 -1
  25. package/dist/commands/inspect/views.js +1 -1
  26. package/dist/commands/list.js +2 -0
  27. package/dist/commands/mail.js +1 -1
  28. package/dist/commands/migrate.js +3 -0
  29. package/dist/commands/run-context.js +2 -0
  30. package/dist/commands/skills.js +3 -3
  31. package/dist/commands/upgrade.js +5 -0
  32. package/dist/commands.json +1 -0
  33. package/dist/fields.js +1 -1
  34. package/dist/help.js +3 -3
  35. package/dist/main.js +8 -7
  36. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  37. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  38. package/dist/node_modules/@allyhub/3d-extension/package.json +4 -3
  39. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  40. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  49. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  50. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  51. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  52. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  53. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  54. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  55. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  56. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  57. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  58. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  59. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  60. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  61. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  62. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  63. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  64. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  65. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  66. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  69. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  70. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  71. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  72. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  73. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  74. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  75. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  76. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  77. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  78. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  79. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  80. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  81. package/dist/node_modules/@allyhub/build/package.json +13 -1
  82. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  83. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  84. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  85. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  86. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  87. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  88. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  89. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  90. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  91. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  92. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  93. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  94. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  95. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  96. package/dist/node_modules/@allyhub/check/package.json +1 -1
  97. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  98. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  99. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  100. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  101. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  102. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  103. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  104. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  105. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  106. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  107. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  108. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  109. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  110. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  111. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  112. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  113. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  114. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  115. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  116. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  117. package/dist/node_modules/@allyhub/components/package.json +1 -1
  118. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  119. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  120. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  121. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  122. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  123. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  124. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  125. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  126. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  128. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  129. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  130. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  131. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  132. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  133. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  134. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  135. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  136. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  137. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  138. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  139. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  140. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  141. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  142. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  143. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  144. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  145. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  146. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  147. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  148. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  149. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  150. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  151. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  152. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  153. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  154. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  155. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  156. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  157. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  158. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  159. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  160. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  161. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  162. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  163. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  164. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  165. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  166. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  167. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  168. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  169. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  170. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  171. package/dist/node_modules/@allyhub/export/package.json +1 -1
  172. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  173. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  174. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  175. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  176. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  177. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  178. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  179. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  180. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  181. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  182. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  183. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  184. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  185. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  186. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  187. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  188. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
  189. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  190. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  191. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  192. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  193. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  194. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  195. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  196. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  197. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  198. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  199. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  200. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  201. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  202. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  203. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +36 -10
  204. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  205. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  206. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  207. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  208. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  209. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  210. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  211. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  212. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  213. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  214. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  215. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  216. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  217. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  218. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  219. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  220. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  221. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  222. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  223. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  224. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
  225. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  226. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  227. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  228. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  229. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  230. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  231. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  232. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  233. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  234. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  235. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  236. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  237. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  238. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  239. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  240. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  241. package/dist/node_modules/@allyhub/media/package.json +5 -1
  242. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  243. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  244. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  245. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  246. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  247. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  248. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  249. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  250. package/dist/node_modules/@allyhub/model/package.json +1 -1
  251. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  252. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  253. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  254. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  255. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  256. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  257. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  258. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  259. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  260. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  261. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  262. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  263. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  264. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  265. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  266. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  268. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  269. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +9 -3
  270. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  271. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -2
  272. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  273. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  274. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  275. package/dist/node_modules/@allyhub/project/package.json +1 -1
  276. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  277. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  278. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  279. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  280. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  281. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  282. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  283. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  284. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  285. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  286. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  287. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  288. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  289. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  290. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  291. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  292. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  293. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  294. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  295. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  296. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  297. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  298. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  299. package/dist/node_modules/@allyhub/render/package.json +9 -1
  300. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  301. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  302. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  303. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  304. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  305. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  306. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  307. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  308. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  309. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  310. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  311. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  312. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  313. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  314. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  315. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  317. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  322. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  323. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  324. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  325. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  326. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  327. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  328. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  329. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  330. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  331. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  332. package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
  333. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  334. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  335. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  336. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  337. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  338. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  339. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  340. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  341. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  342. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  343. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  344. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  345. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  346. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  347. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  348. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  349. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  350. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  351. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  352. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  353. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  354. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  355. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  356. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  357. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  358. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  359. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  360. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  361. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  362. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  363. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  364. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  365. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  366. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  367. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  368. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  369. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  370. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  371. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  372. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  373. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  374. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  375. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  376. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  377. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  378. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  379. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  380. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  381. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  382. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  383. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  384. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  385. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  386. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  387. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  388. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  389. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  390. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  391. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  392. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  393. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  394. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  395. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  396. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  397. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  398. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  399. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  400. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  401. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  402. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  403. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  404. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  405. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  406. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  407. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  408. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  409. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  410. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  411. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  412. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  413. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  414. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  415. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  416. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  417. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  418. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  419. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  438. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  440. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  441. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  442. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  443. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  444. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  445. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  446. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  447. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  448. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  449. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  450. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  451. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  452. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  453. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  454. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  455. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  456. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  457. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  458. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  459. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  460. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  461. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  462. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  463. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  464. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  465. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  466. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  467. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  468. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  469. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  470. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  471. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  472. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  473. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  474. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  475. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  476. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  477. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  478. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  479. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  480. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  481. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  482. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  483. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  484. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  485. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  486. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  487. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  488. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  489. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  490. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  491. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  492. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  493. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  494. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  495. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  496. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  497. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  498. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  499. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  500. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  501. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  502. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  503. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  504. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  505. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  506. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  507. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  508. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  509. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  510. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  511. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  512. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  513. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  514. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  515. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  516. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  517. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  518. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  519. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  520. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  521. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  522. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  523. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  524. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  525. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  526. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  527. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  528. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  529. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  530. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  531. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  532. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  533. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  534. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  535. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  536. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  537. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  538. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  539. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  540. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  541. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  542. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  543. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  544. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  545. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  546. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  547. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  548. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  549. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  550. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  551. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  552. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  553. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  554. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  555. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  556. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  557. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  558. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  559. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  560. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  561. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  562. package/dist/node_modules/@allyhub/video-extension/package.json +7 -26
  563. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  564. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  565. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  566. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  567. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  568. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  569. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  570. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  571. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  572. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  573. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  574. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  575. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  576. package/dist/node_modules/@allyhub/website/package.json +1 -1
  577. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  578. package/dist/node_modules/@allyhub/website-extension/package.json +6 -6
  579. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  580. package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
  581. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  582. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  583. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  584. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  585. package/dist/package.json +14 -14
  586. package/dist/project.js +1 -1
  587. package/dist/resources.js +1 -1
  588. package/dist/sdk-docs.js +1 -1
  589. package/dist/self-upgrade.js +2 -0
  590. package/dist/slot.js +4 -0
  591. package/dist/telemetry.js +1 -1
  592. package/dist/text/batch-text.js +1 -1
  593. package/dist/text/facts-text.js +5 -5
  594. package/dist/text/format.js +2 -2
  595. package/dist/update-notice.js +3 -0
  596. package/dist/version.js +1 -1
  597. package/dist/works.js +1 -1
  598. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
  599. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
  600. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
  601. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  602. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  603. package/editor-web/assets/article-DHf6mOY_.js +7 -0
  604. package/editor-web/assets/article-Dns1-Xh-.js +3 -0
  605. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  606. package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
  607. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
  608. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  609. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
  610. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  611. package/editor-web/assets/channel-CVWSV3su.js +1 -0
  612. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  613. package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
  614. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
  615. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
  616. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
  617. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
  618. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
  619. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
  620. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
  621. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
  622. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
  623. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
  624. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
  625. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
  626. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
  627. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
  628. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
  629. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
  630. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  631. package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
  632. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  633. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  634. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
  635. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
  636. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
  637. package/editor-web/assets/deck-DQpNIS2p.js +1 -0
  638. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
  639. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
  640. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
  641. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
  642. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
  643. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
  644. package/editor-web/assets/dist--z0ZHp4T.js +16 -0
  645. package/editor-web/assets/dist-9kuRjUTN.js +41 -0
  646. package/editor-web/assets/dist-B3rd02Cg.js +6 -0
  647. package/editor-web/assets/dist-B5GOGGEe.js +1 -0
  648. package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
  649. package/editor-web/assets/dist-C4hHtrJr.js +1 -0
  650. package/editor-web/assets/dist-CCXJewsi.js +19 -0
  651. package/editor-web/assets/dist-CfK2BLl8.js +4 -0
  652. package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
  653. package/editor-web/assets/dist-Cspf85KV.js +6 -0
  654. package/editor-web/assets/dist-DA72-4WB.js +82 -0
  655. package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
  656. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  657. package/editor-web/assets/dist-DOrGo1GD.js +19 -0
  658. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  659. package/editor-web/assets/dist-DjiCHlSu.js +35 -0
  660. package/editor-web/assets/dist-Do4a40Wn.js +19 -0
  661. package/editor-web/assets/dist-FKEWS3Co.js +547 -0
  662. package/editor-web/assets/dist-QKd2i6kG.js +5 -0
  663. package/editor-web/assets/dist-SGnOfLhx.js +24 -0
  664. package/editor-web/assets/dist-VmVB7tl4.js +3 -0
  665. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
  666. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
  667. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
  668. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
  669. package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
  670. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
  671. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  672. package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
  673. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
  674. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
  675. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
  676. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  677. package/editor-web/assets/hint-CbwoSBMw.js +1 -0
  678. package/editor-web/assets/index-CXisi0Cj.css +2 -0
  679. package/editor-web/assets/index-wMlfx8aT.js +28 -0
  680. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
  681. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
  682. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
  683. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  684. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  685. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
  686. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
  687. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  688. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
  689. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
  690. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
  691. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  692. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
  693. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
  694. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
  695. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
  696. package/editor-web/assets/progress-DZQTiRLv.js +6 -0
  697. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
  698. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
  699. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
  700. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
  701. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
  702. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
  703. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
  704. package/editor-web/assets/react-Byupo4pA.js +1 -0
  705. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  706. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
  707. package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
  708. package/editor-web/assets/row-Bei9HNEe.js +1 -0
  709. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
  710. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  711. package/editor-web/assets/{iso-ahTwmFwH.js → schemas-DlRAoVtq.js} +1 -1
  712. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  713. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  714. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
  715. package/editor-web/assets/{session-Beijw9EK.js → session-BhClkDyr.js} +1 -1
  716. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  717. package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
  718. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  719. package/editor-web/assets/split-DBAbwPZ5.js +3 -0
  720. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  721. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
  722. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  723. package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
  724. package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
  725. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
  726. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
  727. package/editor-web/assets/switch-DrZxoPQS.js +1 -0
  728. package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
  729. package/editor-web/assets/table-BW43XXVd.js +1 -0
  730. package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
  731. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  732. package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
  733. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
  734. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  735. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
  736. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
  737. package/editor-web/assets/type-CvZ0HZsV.js +41 -0
  738. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  739. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
  740. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
  741. package/editor-web/assets/video-SJvDRCJK.js +1 -0
  742. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
  743. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
  744. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  745. package/editor-web/assets/{words-0Ww2RyT4.js → words-BUlNNuH2.js} +3 -3
  746. package/editor-web/assets/words-zMedmPWc.js +3 -0
  747. package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
  748. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
  749. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  750. package/editor-web/index.html +9 -8
  751. package/package.json +3 -3
  752. package/CHANGELOG.md +0 -243
  753. package/dist/commands/render.js +0 -3
  754. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  755. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  756. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  757. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  758. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  759. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  760. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  761. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  762. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  763. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  764. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  765. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  766. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  767. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  768. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  769. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  770. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  771. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  772. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  773. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  774. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  775. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  776. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  777. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  778. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  779. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  780. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  781. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  782. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  783. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  784. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  785. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  786. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  787. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  788. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  789. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  790. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  791. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  792. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  793. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  794. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  795. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  796. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  797. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  798. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  799. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  800. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  801. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  802. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  803. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  804. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  805. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  806. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  807. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  808. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  809. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  810. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  811. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  812. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  813. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  814. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  815. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  816. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  817. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  818. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  819. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  820. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  821. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  822. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  823. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  824. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  825. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  826. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  827. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  828. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  829. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  830. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  831. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  832. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  833. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  834. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  835. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  836. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  837. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  838. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  839. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  840. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  841. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  842. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  843. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  844. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  845. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  846. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  847. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  848. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  849. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  850. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  851. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  852. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  853. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  854. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  855. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  856. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  857. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  858. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  859. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  860. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  861. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  862. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  863. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  864. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  865. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  866. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  867. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  868. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  869. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  870. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  871. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  872. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  873. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  874. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  875. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  876. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  877. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  878. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  879. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  880. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  881. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  882. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  883. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  884. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  885. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  886. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  887. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  888. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  889. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  890. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  891. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  892. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  893. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  894. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  895. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  896. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  897. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  898. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  899. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  900. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  901. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  902. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  903. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  904. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  905. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  906. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  907. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  908. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  909. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  910. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  911. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  912. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  913. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  914. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  915. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  916. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  917. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  918. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  919. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  920. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  921. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  922. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  923. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  924. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  925. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  926. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  927. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  928. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  929. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  930. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  931. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  932. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  933. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  934. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  935. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  936. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  937. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  938. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  939. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  940. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  941. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  942. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  943. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  944. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  945. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  946. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  947. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  948. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  949. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  950. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  951. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  952. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  953. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  954. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  955. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  956. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  957. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  958. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  959. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  960. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  961. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  962. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  963. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  964. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  965. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  966. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  967. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  968. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  969. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  970. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  971. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  972. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  973. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  974. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  975. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  976. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  977. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  978. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  979. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  980. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  981. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  982. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  983. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  984. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  985. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  986. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  987. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  988. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  989. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  990. package/editor-web/assets/article-CS48wwvk.js +0 -3
  991. package/editor-web/assets/article-Cyle57uq.js +0 -7
  992. package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
  993. package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
  994. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  995. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  996. package/editor-web/assets/chart-file-CfbWK9l1.js +0 -1
  997. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  998. package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
  999. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  1000. package/editor-web/assets/dist-BBshIz1Q.js +0 -5
  1001. package/editor-web/assets/dist-BI8QjOsV.js +0 -1
  1002. package/editor-web/assets/dist-BajH5QfK.js +0 -24
  1003. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  1004. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  1005. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  1006. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  1007. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  1008. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  1009. package/editor-web/assets/dist-DGKjn59H.js +0 -16
  1010. package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
  1011. package/editor-web/assets/dist-SV0sOVIC.js +0 -43
  1012. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  1013. package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
  1014. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  1015. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  1016. package/editor-web/assets/dist-elglzHMT.js +0 -6
  1017. package/editor-web/assets/dist-hHcrvNn9.js +0 -1
  1018. package/editor-web/assets/esm-DzxAod8Q.js +0 -21
  1019. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  1020. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  1021. package/editor-web/assets/hint-rlht0uxG.js +0 -1
  1022. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  1023. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  1024. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  1025. package/editor-web/assets/progress-CwKcXARv.js +0 -6
  1026. package/editor-web/assets/props-form-DUFxM5eb.js +0 -1
  1027. package/editor-web/assets/react-Edyoga_4.js +0 -1
  1028. package/editor-web/assets/row-C_svyL8o.js +0 -1
  1029. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  1030. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  1031. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  1032. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  1033. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  1034. package/editor-web/assets/split-zARio3J8.js +0 -3
  1035. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  1036. package/editor-web/assets/surface-DtCjIlrq.js +0 -1
  1037. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  1038. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  1039. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  1040. package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
  1041. package/editor-web/assets/table-DRbddzx0.js +0 -1
  1042. package/editor-web/assets/tabs-BHBvbekZ.js +0 -1
  1043. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  1044. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  1045. package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
  1046. package/editor-web/assets/video-oJ3qa1Qv.js +0 -1
  1047. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  1048. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  1049. package/editor-web/assets/x-DlhyIKuu.js +0 -41
  1050. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{unzipSync as Ie}from"fflate";import{withinZip as _e}from"@allyhub/formats";import{DEFAULT_COLOR_MAP as C,Package as Ee,SCHEME_COLORS as Fe,colorIn as ye}from"@allyhub/ooxml";import{EAST_ASIAN_FONT as $e,OFFICE_TEXT_STYLES as je}from"@allyhub/slides-core";import{colorAt as Ae,fillElement as Re,fillOf as Ce,say as l,withAlpha as we}from"./common.js";import{shapesOf as se}from"./shapes.js";import{levelsOf as Y,paragraphsOf as Ne}from"./text.js";import{animationsOf as De,playbacksOf as ze,transitionOf as We}from"./timing.js";const be={presProps:"presentation properties (how a show runs, recent colours)",viewProps:"PowerPoint's view of the file (zoom, guides, the last slide shown)","extended-properties":"the application's statistics of the file",thumbnail:"a preview picture of the first slide",printerSettings:"printer settings",notesMaster:"the notes pages' master: a deck's notes are text",handoutMaster:"the handouts' master"};function xe(a){if(!a)return C;const o={...C};for(const e of["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"]){const s=a.attr(e);s!==void 0&&(o[e]=s)}return a.one("a:extLst"),o}function ae(a,o){const e=Object.fromEntries(Object.entries(a).filter(([s,c])=>o[s]!==c));return Object.keys(e).length>0?e:void 0}const Ge=(a,o)=>ae(a,o)===void 0;function Se(a,o){o?.one("a:masterClrMapping");const e=o?.one("a:overrideClrMapping");return e?xe(e):a}function re(a,o){const e=a?.one("p:bg");if(!e)return;e.ignore(["bwMode"],"a background's black and white printing mode");const s=e.one("p:bgPr");if(s){s.ignore(["shadeToTitle"],"a background shaded to its title, a legacy option");for(const P of s.one("a:effectLst")?.kids()??[])l(o,"cannot-hold",`p:bg/${P.key}`,"an effect on a background"),P.consume();s.one("a:effectDag")?.consume();const d=s.one("a:blipFill");if(d){d.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const P=d.one("a:blip")?.ignore(["cstate"],"a picture's compression state"),v=o.read.pkg.rel(o.part,P?.attr("r:embed"));for(const y of P?.kids()??[])y.key!=="a:extLst"&&(l(o,"cannot-hold",`p:bg/${y.key}`,"a background picture's own effect (transparency, recolouring, brightness)"),y.consume());const T=y=>["l","t","r","b"].some(F=>(y?.attr(F)??0)!==0);if(T(d.one("a:srcRect"))&&l(o,"cannot-hold","p:bg/a:srcRect","a background picture's crop: it is stretched over the slide whole"),T(d.one("a:stretch")?.one("a:fillRect"))&&l(o,"cannot-hold","p:bg/a:fillRect","a background picture stretched to a part of the slide: it is stretched over the whole"),d.one("a:tile")&&l(o,"approximated","a:tile","a tiled background picture is stretched"),v&&!v.external&&o.read.pkg.bytes(v.target))return{picture:v.target};l(o,"missing","a:blip","a background picture whose file is not in the file");return}const g=Ce(s,o);return g?.fill===null?{fill:"lt1"}:g?.fill!==void 0?{fill:Le(g.fill,g)}:g?.gradient?{gradient:g.gradient}:void 0}const c=e.one("p:bgRef");if(!c)return;const i=c.attr("idx")??0,h=ye(c,o.colors),b=i>=1001?o.read.matrix.background[i-1001]:i>0?o.read.matrix.fill[i-1]:void 0;if(!b){const d=h?Ae(c,o,"p:bgRef"):void 0;return h?{fill:d?we(d.color,d.alpha):"lt1"}:void 0}const r=Re(b,{...o,colors:{...o.colors,...h?{placeholder:h}:{}}});if(r?.fill!==void 0&&r.fill!==null)return{fill:Le(r.fill,r)};if(r?.gradient)return{gradient:r.gradient}}const Le=(a,o)=>o.fill_transparency===void 0?a:we(a,1-o.fill_transparency);function Oe(a,o){if(a){if(a.fill!==void 0)return a.fill;if(a.gradient)return l(o,"approximated","p:bg/a:gradFill","a master's or a layout's gradient background is its first colour"),a.gradient.stops[0]?.color;l(o,"cannot-hold","p:bg/a:blipFill","a master's or a layout's picture background")}}function Pe(a,o){for(const e of["p:transition","p:timing"]){const s=a.one(e);s&&(l(o,"cannot-hold",e,`a ${e==="p:transition"?"transition":"animation"} on a master or a layout`),s.consume())}a.one("p:hf")?.skip("which of date, footer and slide number new slides get: a deck's slide shows them where it says so")}function ie(a){for(const o of a?.all("p:ext")??[])for(const e of["p14:creationId","p14:modId"])o.one(e)?.skip("PowerPoint's ids of a part across versions")}export function readPptx(a,o){const e=new Ee(Ie(a,{filter:_e(o)})),s=e.relOfType("","officeDocument")?.target??"ppt/presentation.xml";for(const t of e.rels("")){const n=be[t.type.split("/").pop()??""];n!==void 0&&!t.external&&e.leave(t.target,n)}e.ignoreExtensions(["p14:creationId","p14:modId","a16:creationId","a16:colId","a16:rowId","a14:useLocalDpi","p15:sldGuideLst","p14:discardImageEditData","p14:defaultImageDpi","p15:chartTrackingRefBased"],"PowerPoint's ids and settings across versions");const c=e.open(s);if(!c)throw new Error(`it has no presentation (${s})`);for(const t of e.rels(s)){const n=be[t.type.split("/").pop()??""];n!==void 0&&!t.external&&e.leave(t.target,n)}const i={read:{pkg:e,matrix:{fill:[],line:[],effect:[],background:[]},faces:new Set},part:s,colors:{scheme:{},map:C},where:"presentation"};c.ignore(["saveSubsetFonts","autoCompressPictures","strictFirstAndLastChars","embedTrueTypeFonts","removePersonalInfoOnSave","bookmarkIdSeed","serverZoom","compatMode","conformance","showSpecialPlsOnTitleSld"],"how PowerPoint saves and shows the file");const h=c.attrOr("firstSlideNum");h!==1&&l(i,"cannot-hold","p:presentation@firstSlideNum",`slides numbered from ${String(h)}`),c.attrOr("rtl")&&l(i,"cannot-hold","p:presentation@rtl","a right-to-left presentation");const b=c.one("p:sldSz");b?.ignore(["type"],"a slide size's name: its width and height are read"),c.one("p:notesSz")?.skip("the notes pages' size"),c.one("p:notesMasterIdLst")?.consume(),c.one("p:handoutMasterIdLst")?.consume();for(const t of["p:embeddedFontLst","p:custShowLst","p:photoAlbum","p:custDataLst","p:kinsoku","p:modifyVerifier"]){const n=c.one(t);n&&(l(i,"cannot-hold",t,t==="p:embeddedFontLst"?"fonts carried in the file":t==="p:custShowLst"?"custom shows":t.slice(2)),n.consume())}let r;for(const t of c.one("p:extLst")?.all("p:ext")??[])for(const n of t.kids())n.key==="p15:sldGuideLst"?n.skip("PowerPoint's guides"):n.key==="p14:sectionLst"&&(r=n);for(const t of e.rels(s))(t.type.endsWith("/fonts")||t.type.endsWith("/font"))&&e.leave(t.target,"a font carried in the file (said above)");const d=b?.attr("cx")??12192e3,g=b?.attr("cy")??6858e3,v=(c.one("p:sldMasterIdLst")?.all("p:sldMasterId")??[]).flatMap(t=>{t.attr("id");const n=e.rel(s,t.attr("r:id"));return n?[n.target]:[]}),T=v[0]?e.relOfType(v[0],"theme")?.target:void 0,y=T?e.open(T):void 0;y?.attr("name");const F=y?.one("a:themeElements"),ce=F?.one("a:clrScheme");ce?.attr("name");const de={},J={};for(const t of Fe){const n=ye(ce?.one(`a:${t}`),{scheme:{},map:C});n&&(de[t]=n.rgb,J[t]=n.rgb)}const q=F?.one("a:fontScheme");q?.attr("name");const N={},B=(t,n)=>{const m=q?.one(t)?.one(n);m?.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const p=m?.attr("typeface");return p===""?void 0:p},K=B("a:majorFont","a:latin"),Q=B("a:minorFont","a:latin"),ee=B("a:majorFont","a:ea"),te=B("a:minorFont","a:ea");K&&(N.major=K),Q&&(N.minor=Q),ee&&(N.major_east_asian=ee),te&&(N.minor_east_asian=te);const X={...i,part:T??"",where:"theme"};for(const t of["a:majorFont","a:minorFont"]){const n=q?.one(t),u=n?.one("a:cs");u?.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it"),u?.attr("typeface")&&l(X,"cannot-hold",`${t}/a:cs`,"the theme's complex script face (Arabic, Hebrew, Thai…)");const m=n?.all("a:font")??[],p=n?.one("a:ea")?.el.attrs.find(w=>w.key==="typeface")?.value;m.some(w=>(w.attr("typeface")??"")!==""&&w.attr("typeface")!==p)?l(X,"cannot-hold",`${t}/a:font`,"the theme's faces for each script (one East Asian face is the deck's)"):n&&(p??"")===""&&l(X,"approximated",`${t}/a:ea`,`the theme names no East Asian face, so East Asian text is in the deck's (${$e})`);for(const w of m)w.consume()}const D=F?.one("a:fmtScheme"),ve={fill:D?.one("a:fillStyleLst")?.kids()??[],line:D?.one("a:lnStyleLst")?.kids()??[],effect:D?.one("a:effectStyleLst")?.kids()??[],background:D?.one("a:bgFillStyleLst")?.kids()??[]};D?.skip("the theme's style matrix: read where a shape's style names an entry of it"),F?.one("a:extLst")?.skip("the theme's extensions"),y?.one("a:objectDefaults")?.skip("the defaults PowerPoint gives a shape a person adds"),y?.one("a:extraClrSchemeLst")?.skip("other colour schemes PowerPoint offers"),y?.one("a:extLst")?.skip("the theme's family, PowerPoint's bookkeeping");const pe=y?.one("a:custClrLst");pe&&(l(X,"cannot-hold","a:custClrLst","the theme's custom colours"),pe.consume());const z={pkg:e,matrix:ve,faces:new Set([K,Q,ee,te].filter(t=>t!==void 0)),slides:new Map((c.one("p:sldIdLst")?.all("p:sldId")??[]).flatMap((t,n)=>{const u=e.rel(s,t.attr("r:id"))?.target;return u===void 0?[]:[[u,n+1]]}))};i.read=z;const le=e.relOfType(s,"tableStyles");le&&e.open(le.target)?.skip("the table styles: read where a table names one");for(const t of e.rels(s))if(t.type.endsWith("/notesMaster")||t.type.endsWith("/handoutMaster")){const n=e.relOfType(t.target,"theme")?.target;n&&e.leave(n,"the notes or handout master's theme")}for(const t of v.slice(1)){const n=e.relOfType(t,"theme")?.target;n&&n!==T&&e.leave(n,"a second master's theme: a deck has one"),n&&n!==T&&l({...i,part:n,where:"theme"},"cannot-hold","a:theme","a second master's own theme")}const fe=c.one("p:defaultTextStyle"),Me=Y(fe,{...i,read:z,named:!0}),Z=new Map,U=new Map,ue=v.map((t,n)=>{const u=e.open(t),m=u?.one("p:cSld"),p=m?.attr("name"),w=p===void 0||p===""?`Master ${String(n+1)}`:p;u?.ignore(["preserve"],"whether PowerPoint keeps an unused master");const k=xe(u?.one("p:clrMap"));U.set(t,k);const S={read:z,part:t,colors:{scheme:J,map:k},named:!0,where:`master "${w}"`},W=ae(k,C);u&&Pe(u,S),ie(u?.one("p:extLst"));const V=u?.one("p:sldLayoutIdLst")?.all("p:sldLayoutId").flatMap(A=>{A.attr("id");const _=e.rel(t,A.attr("r:id"))?.target;if(!_)return[];const O=e.open(_),R=O?.one("p:cSld"),H=R?.attr("name");let E=H===void 0||H===""?`Layout ${String(Z.size+1)}`:H;for(;[...Z.values()].includes(E);)E=`${E} (${String(n+1)})`;Z.set(_,E),O?.ignore(["type","matchingName","preserve","userDrawn","showMasterPhAnim"],"a layout's kind and bookkeeping in PowerPoint's gallery");const f=Se(k,O?.one("p:clrMapOvr"));f!==k&&U.set(_,f);const x={read:z,part:_,colors:{scheme:J,map:f},named:!0,where:`layout "${E}"`},ge=ae(f,k);O&&Pe(O,x),ie(O?.one("p:extLst"));const ke=Oe(re(R,x),x);return R?.one("p:extLst")?.skip("a layout's extensions"),[{name:E,...ke?{background:ke}:{},...ge?{color_map:ge}:{},...O?.attrOr("showMasterSp")===!1?{display_master_shapes:!1}:{},shapes:se(R?.one("p:spTree"),x)}]})??[],L=Oe(re(m,S),S),M=u?.one("p:txStyles"),I={},G=M?.one("p:titleStyle"),$=M?.one("p:bodyStyle"),j=M?.one("p:otherStyle");return G&&(I.title=Y(G,S)),$&&(I.body=Y($,S)),j&&(I.other=Y(j,S)),n===0&&fe&&He(Me,I.other??[])&&l(i,"cannot-hold","p:defaultTextStyle","the presentation's default text differs from its first master's other text, which a deck takes for both"),m?.one("p:extLst")?.skip("a master's extensions"),{name:w,...L?{background:L}:{},...W?{color_map:W}:{},text_styles:I,shapes:se(m?.one("p:spTree"),S),layouts:V}}),ne=new Map,me=(c.one("p:sldIdLst")?.all("p:sldId")??[]).flatMap((t,n)=>{const u=t.attr("id");Je(t);const m=e.rel(s,t.attr("r:id"))?.target;if(!m)return[];const p=e.open(m);if(!p)return[];const w=`slide ${String(n+1)}`,k=e.relOfType(m,"slideLayout")?.target,S=k?e.relOfType(k,"slideMaster")?.target:void 0,W=(k===void 0?void 0:U.get(k))??(S===void 0?void 0:U.get(S))??C,V=Se(W,p.one("p:clrMapOvr")),L={read:z,part:m,colors:{scheme:J,map:V},named:Ge(V,W),where:w};p.attrOr("showMasterPhAnim"),p.attrOr("showMasterSp")||l(L,"cannot-hold","p:sld@showMasterSp","a slide that hides its master's shapes (its layout's say for all its slides)"),ie(p.one("p:extLst"));const M=p.one("p:cSld"),I=M?.attr("name");for(const f of["p:custDataLst","p:controls"]){const x=M?.one(f);x&&(l(L,"cannot-hold",f,f==="p:controls"?"ActiveX controls":"a slide's custom data"),x.consume())}M?.one("p:extLst")?.skip("a slide's extensions");const G=re(M,L),$=se(M?.one("p:spTree"),L),j=e.relOfType(m,"notesSlide")?.target,A=j?Ue(j,{...L,part:j,where:`${w} notes`}):void 0,{transition:_,advance:O}=We(p.one("p:transition"),L),R=new Map($.flatMap(f=>f.id===void 0?[]:[[f.id,f.name.replace(/^!!/u,"")]])),H=ze(p.one("p:timing"));for(const f of $){const x=f.id===void 0?void 0:H.get(f.id);f.kind!=="movie"&&f.kind!=="audio"||!x||Object.keys(x).length===0||(f.playback={...x,...f.playback?.trim?{trim:f.playback.trim}:{}})}const E=De(p.one("p:timing"),R,{width:d,height:g},L);return u!==void 0&&ne.set(u,ne.size),[{...I?{name:I}:{},layout:(k?Z.get(k):void 0)??ue[0]?.layouts[0]?.name??"",hidden:!p.attrOr("show"),...A!==void 0&&A.trim()!==""?{notes:A}:{},shapes:$.map(f=>({...f,name:f.name.replace(/^!!/u,"")})),...G?{background:G}:{},animations:E,..._?{transition:_}:{},...O===void 0?{}:{advance:O},part:m}]});if(r){r.use(),r.one("p14:extLst")?.skip("a section list's extensions");for(const t of r.all("p14:section")){t.attr("id"),t.one("p14:extLst")?.skip("a section's extensions");const n=t.attr("name")??"",u=(t.one("p14:sldIdLst")?.all("p14:sldId")??[]).map(p=>ne.get(p.attr("id")??-1)).find(p=>p!==void 0),m=u===void 0?void 0:me[u];m&&n.trim()!==""?m.section=n.trim():l({...i,part:s,where:"presentation"},"cannot-hold","p14:section",`a section with no slides${n===""?"":` (${n})`}`)}}const oe=e.rels("").find(t=>t.type.endsWith("/core-properties"))?.target,Te=oe?e.open(oe):void 0,he=Xe(Te,{...i,part:oe??""});return{width:d,height:g,...he===""?{}:{title:he},theme:de,fonts:N,masters:ue,slides:me,report:e.report(),reasons:e.reasons(),bytes:t=>e.parts[t]}}function He(a,o){return a.some((e,s)=>Object.entries(e).some(([c,i])=>{const h=o[s]?.[c],b=je.other[s]?.[c],r=h??b;return r!==void 0&&JSON.stringify(r)!==JSON.stringify(i)&&JSON.stringify({...r,...i})!==JSON.stringify(r)}))}function Je(a){a.one("p:extLst")?.skip("a slide id's extensions")}const Be={"dc:creator":"the document's author","dc:subject":"the document's subject","cp:keywords":"the document's keywords","dc:description":"the document's comments","cp:category":"the document's category","cp:contentStatus":"the document's status","dc:identifier":"the document's identifier","dc:language":"the document's language","cp:contentType":"the document's content type","cp:version":"the document's version"};function Xe(a,o){let e="";for(const s of a?.kids()??[]){const c=s.el.text.trim();if(s.key==="dc:title"){s.use(),e=c;continue}const i=Be[s.key];if(i!==void 0&&c!==""){s.consume(),l(o,"cannot-hold",s.key,i);continue}s.skip(i!==void 0?"an empty document property":"when, by whom and how often the file was saved, and the like: PowerPoint writes them again")}return e}const Ze=new Set(["sldImg","hdr","dt","ftr","sldNum"]);function Ue(a,o){const e=o.read.pkg.open(a);if(!e)return;e.ignore(["showMasterSp","showMasterPhAnim"],"a notes page's view of its master"),e.one("p:clrMapOvr")?.skip("a notes page's colour map: its words have no colour here"),e.one("p:extLst")?.skip("a notes page's extensions");const s=e.one("p:cSld");s?.ignore(["name"],"a notes page's name"),s?.one("p:bg")?.skip("a notes page's background: notes are words"),s?.one("p:extLst")?.skip("a notes page's extensions");const c=s?.one("p:spTree");let i;for(const r of c?.kids()??[]){if(r.key==="p:nvGrpSpPr"||r.key==="p:grpSpPr"){r.skip("a notes page's shape tree's own properties");continue}const d=r.key==="p:sp"?r:void 0,g=d?.one("p:nvSpPr")?.one("p:nvPr")?.one("p:ph"),P=g?.attr("type")??"obj";if(d&&g&&P==="body"&&!i){i=d.use();continue}if(d&&g&&Ze.has(P)){r.skip("a notes page's picture of its slide, header, date, footer and number: the notes master's");continue}r.use(),l(o,"cannot-hold",r.key,"a shape on a notes page besides its words: a deck's notes are words"),r.consume()}i?.one("p:nvSpPr")?.skip("the notes' placeholder"),i?.one("p:spPr")?.skip("the notes' place on the page"),i?.one("p:style")?.skip("the notes' style"),i?.one("p:extLst")?.skip("the notes' extensions");const h=i?.one("p:txBody");h?.one("a:bodyPr")?.skip("the notes' text frame"),h?.one("a:lstStyle")?.skip("the notes' list style");const b=Ne(h,o);b.some(r=>r.runs.some(d=>d.font!==void 0)||Object.keys(r).some(d=>d!=="runs"&&d!=="level"))&&l(o,"approximated","p:notes","speaker notes keep their words, not their formatting");for(const r of h?.all("a:p")??[])r.consume();return b.map(r=>r.runs.map(d=>d.text==="\v"?`
3
- `:d.text).join("")).join(`
2
+ import{unzipSync as Ee}from"fflate";import{withinZip as Fe}from"@allyhub/formats";import{DEFAULT_COLOR_MAP as A,Package as $e,SCHEME_COLORS as je,colorIn as ke}from"@allyhub/ooxml";import{EAST_ASIAN_FONT as Ae,OFFICE_TEXT_STYLES as Ne}from"@allyhub/slides-core";import{colorAt as Ce,fillElement as De,fillOf as Re,say as h,withAlpha as we}from"./common.js";import{eotFont as ze}from"../mtx.js";import{shapesOf as se}from"./shapes.js";import{levelsOf as Y,paragraphsOf as We}from"./text.js";import{animationsOf as Ge,playbacksOf as He,transitionOf as Je}from"./timing.js";const be={presProps:"presentation properties (how a show runs, recent colours)",viewProps:"PowerPoint's view of the file (zoom, guides, the last slide shown)","extended-properties":"the application's statistics of the file",thumbnail:"a preview picture of the first slide",printerSettings:"printer settings",notesMaster:"the notes pages' master: a deck's notes are text",handoutMaster:"the handouts' master"};function Se(t){if(!t)return A;const s={...A};for(const e of["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"]){const a=t.attr(e);a!==void 0&&(s[e]=a)}return t.one("a:extLst"),s}function ae(t,s){const e=Object.fromEntries(Object.entries(t).filter(([a,i])=>s[a]!==i));return Object.keys(e).length>0?e:void 0}const Be=(t,s)=>ae(t,s)===void 0;function xe(t,s){s?.one("a:masterClrMapping");const e=s?.one("a:overrideClrMapping");return e?Se(e):t}function re(t,s){const e=t?.one("p:bg");if(!e)return;e.ignore(["bwMode"],"a background's black and white printing mode");const a=e.one("p:bgPr");if(a){a.ignore(["shadeToTitle"],"a background shaded to its title, a legacy option");for(const p of a.one("a:effectLst")?.kids()??[])h(s,"cannot-hold",`p:bg/${p.key}`,"an effect on a background"),p.consume();return a.one("a:effectDag")?.consume(),Le(Re(a,s,!0))}const i=e.one("p:bgRef");if(!i)return;const r=i.attr("idx")??0,m=ke(i,s.colors),g=r>=1001?s.read.matrix.background[r-1001]:r>0?s.read.matrix.fill[r-1]:void 0;if(!g){const p=m?Ce(i,s,"p:bgRef"):void 0;return m?{fill:p?we(p.color,p.alpha):"lt1"}:void 0}const c=De(g,{...s,part:s.read.matrix.part??s.part,colors:{...s.colors,...m?{placeholder:m}:{}}},!0);return c?.fill===null?void 0:Le(c)}function Le(t){if(t){if(t.picture_fill)return{picture:t.picture_fill.part,...t.picture_fill.tile?{tile:t.picture_fill.tile}:{},...t.picture_fill.transparency===void 0?{}:{transparency:t.picture_fill.transparency}};if(t.fill===null)return{fill:"lt1"};if(t.fill!==void 0)return{fill:Xe(t.fill,t)};if(t.gradient)return{gradient:t.gradient};if(t.pattern)return{pattern:t.pattern}}}const Xe=(t,s)=>s.fill_transparency===void 0?t:we(t,1-s.fill_transparency);function Oe(t){if(!t)return{};if(t.fill!==void 0)return{background:t.fill};const s={...t.gradient?{gradient:t.gradient}:{},...t.pattern?{pattern:t.pattern}:{},...t.picture===void 0?{}:{picture_fill:{part:t.picture,...t.tile?{tile:t.tile}:{},...t.transparency===void 0?{}:{transparency:t.transparency}}}},e=t.gradient?.stops[0]?.color??t.pattern?.bg;return{...e===void 0?{}:{background:e},...Object.keys(s).length>0?{background_fill:s}:{}}}function Pe(t,s){for(const e of["p:transition","p:timing"]){const a=t.one(e);a&&(h(s,"cannot-hold",e,`a ${e==="p:transition"?"transition":"animation"} on a master or a layout`),a.consume())}t.one("p:hf")?.skip("which of date, footer and slide number new slides get: a deck's slide shows them where it says so")}function ie(t){for(const s of t?.all("p:ext")??[])for(const e of["p14:creationId","p14:modId"])s.one(e)?.skip("PowerPoint's ids of a part across versions")}export function readPptx(t,s){const e=new $e(Ee(t,{filter:Fe(s)})),a=e.relOfType("","officeDocument")?.target??"ppt/presentation.xml";for(const n of e.rels("")){const o=be[n.type.split("/").pop()??""];o!==void 0&&!n.external&&e.leave(n.target,o)}e.ignoreExtensions(["p14:creationId","p14:modId","a16:creationId","a16:colId","a16:rowId","a14:useLocalDpi","p15:sldGuideLst","p14:discardImageEditData","p14:defaultImageDpi","p15:chartTrackingRefBased"],"PowerPoint's ids and settings across versions");const i=e.open(a);if(!i)throw new Error(`it has no presentation (${a})`);for(const n of e.rels(a)){const o=be[n.type.split("/").pop()??""];o!==void 0&&!n.external&&e.leave(n.target,o)}const r={read:{pkg:e,matrix:{fill:[],line:[],effect:[],background:[]},faces:new Set},part:a,colors:{scheme:{},map:A},where:"presentation"};i.ignore(["saveSubsetFonts","autoCompressPictures","strictFirstAndLastChars","embedTrueTypeFonts","removePersonalInfoOnSave","bookmarkIdSeed","serverZoom","compatMode","conformance","showSpecialPlsOnTitleSld"],"how PowerPoint saves and shows the file");const m=i.attrOr("firstSlideNum");m!==1&&h(r,"cannot-hold","p:presentation@firstSlideNum",`slides numbered from ${String(m)}`),i.attrOr("rtl")&&h(r,"cannot-hold","p:presentation@rtl","a right-to-left presentation");const g=i.one("p:sldSz");g?.ignore(["type"],"a slide size's name: its width and height are read"),i.one("p:notesSz")?.skip("the notes pages' size"),i.one("p:notesMasterIdLst")?.consume(),i.one("p:handoutMasterIdLst")?.consume();const c=Ze(i,r);for(const n of["p:custShowLst","p:photoAlbum","p:custDataLst","p:kinsoku","p:modifyVerifier"]){const o=i.one(n);o&&(h(r,"cannot-hold",n,n==="p:custShowLst"?"custom shows":n.slice(2)),o.consume())}let p;for(const n of i.one("p:extLst")?.all("p:ext")??[])for(const o of n.kids())o.key==="p15:sldGuideLst"?o.skip("PowerPoint's guides"):o.key==="p14:sectionLst"&&(p=o);for(const n of e.rels(a))(n.type.endsWith("/fonts")||n.type.endsWith("/font"))&&e.leave(n.target,"a font carried in the file (said above)");const S=g?.attr("cx")??12192e3,x=g?.attr("cy")??6858e3,G=(i.one("p:sldMasterIdLst")?.all("p:sldMasterId")??[]).flatMap(n=>{n.attr("id");const o=e.rel(a,n.attr("r:id"));return o?[o.target]:[]}),T=G[0]?e.relOfType(G[0],"theme")?.target:void 0,_=T?e.open(T):void 0;_?.attr("name");const H=_?.one("a:themeElements"),ce=H?.one("a:clrScheme");ce?.attr("name");const pe={},J={};for(const n of je){const o=ke(ce?.one(`a:${n}`),{scheme:{},map:A});o&&(pe[n]=o.rgb,J[n]=o.rgb)}const q=H?.one("a:fontScheme");q?.attr("name");const N={},B=(n,o)=>{const u=q?.one(n)?.one(o);u?.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const d=u?.attr("typeface");return d===""?void 0:d},K=B("a:majorFont","a:latin"),Q=B("a:minorFont","a:latin"),ee=B("a:majorFont","a:ea"),te=B("a:minorFont","a:ea");K&&(N.major=K),Q&&(N.minor=Q),ee&&(N.major_east_asian=ee),te&&(N.minor_east_asian=te);const X={...r,part:T??"",where:"theme"};for(const n of["a:majorFont","a:minorFont"]){const o=q?.one(n),f=o?.one("a:cs");f?.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it"),f?.attr("typeface")&&h(X,"cannot-hold",`${n}/a:cs`,"the theme's complex script face (Arabic, Hebrew, Thai…)");const u=o?.all("a:font")??[],d=o?.one("a:ea")?.el.attrs.find(y=>y.key==="typeface")?.value;u.some(y=>(y.attr("typeface")??"")!==""&&y.attr("typeface")!==d)?h(X,"cannot-hold",`${n}/a:font`,"the theme's faces for each script (one East Asian face is the deck's)"):o&&(d??"")===""&&h(X,"approximated",`${n}/a:ea`,`the theme names no East Asian face, so East Asian text is in the deck's (${Ae})`);for(const y of u)y.consume()}const C=H?.one("a:fmtScheme"),Me={...T===void 0?{}:{part:T},fill:C?.one("a:fillStyleLst")?.kids()??[],line:C?.one("a:lnStyleLst")?.kids()??[],effect:C?.one("a:effectStyleLst")?.kids()??[],background:C?.one("a:bgFillStyleLst")?.kids()??[]};C?.skip("the theme's style matrix: read where a shape's style names an entry of it"),H?.one("a:extLst")?.skip("the theme's extensions"),_?.one("a:objectDefaults")?.skip("the defaults PowerPoint gives a shape a person adds"),_?.one("a:extraClrSchemeLst")?.skip("other colour schemes PowerPoint offers"),_?.one("a:extLst")?.skip("the theme's family, PowerPoint's bookkeeping");const de=_?.one("a:custClrLst");de&&(h(X,"cannot-hold","a:custClrLst","the theme's custom colours"),de.consume());const D={pkg:e,matrix:Me,faces:new Set([K,Q,ee,te].filter(n=>n!==void 0)),slides:new Map((i.one("p:sldIdLst")?.all("p:sldId")??[]).flatMap((n,o)=>{const f=e.rel(a,n.attr("r:id"))?.target;return f===void 0?[]:[[f,o+1]]}))};r.read=D;const le=e.relOfType(a,"tableStyles");le&&e.open(le.target)?.skip("the table styles: read where a table names one");for(const n of e.rels(a))if(n.type.endsWith("/notesMaster")||n.type.endsWith("/handoutMaster")){const o=e.relOfType(n.target,"theme")?.target;o&&e.leave(o,"the notes or handout master's theme")}for(const n of G.slice(1)){const o=e.relOfType(n,"theme")?.target;o&&o!==T&&e.leave(o,"a second master's theme: a deck has one"),o&&o!==T&&h({...r,part:o,where:"theme"},"cannot-hold","a:theme","a second master's own theme")}const fe=i.one("p:defaultTextStyle"),Ie=Y(fe,{...r,read:D,named:!0}),Z=new Map,U=new Map,ue=new Set,me=G.map((n,o)=>{const f=e.open(n),u=f?.one("p:cSld"),d=u?.attr("name");let y=d===void 0||d===""?`Master ${String(o+1)}`:d;for(;ue.has(y);)y=`${y} (${String(o+1)})`;ue.add(y),f?.ignore(["preserve"],"whether PowerPoint keeps an unused master");const k=Se(f?.one("p:clrMap"));U.set(n,k);const L={read:D,part:n,colors:{scheme:J,map:k},named:!0,where:`master "${y}"`},R=ae(k,A);f&&Pe(f,L),ie(f?.one("p:extLst"));const V=f?.one("p:sldLayoutIdLst")?.all("p:sldLayoutId").flatMap($=>{$.attr("id");const M=e.rel(n,$.attr("r:id"))?.target;if(!M)return[];const w=e.open(M),j=w?.one("p:cSld"),W=j?.attr("name");let I=W===void 0||W===""?`Layout ${String(Z.size+1)}`:W;for(;[...Z.values()].includes(I);)I=`${I} (${String(o+1)})`;Z.set(M,I),w?.ignore(["type","matchingName","preserve","userDrawn","showMasterPhAnim"],"a layout's kind and bookkeeping in PowerPoint's gallery");const l=xe(k,w?.one("p:clrMapOvr"));l!==k&&U.set(M,l);const b={read:D,part:M,colors:{scheme:J,map:l},named:!0,where:`layout "${I}"`},ye=ae(l,k);w&&Pe(w,b),ie(w?.one("p:extLst"));const _e=Oe(re(j,b));return j?.one("p:extLst")?.skip("a layout's extensions"),[{name:I,..._e,...ye?{color_map:ye}:{},...w?.attrOr("showMasterSp")===!1?{display_master_shapes:!1}:{},shapes:se(j?.one("p:spTree"),b)}]})??[],O=Oe(re(u,L)),P=f?.one("p:txStyles"),v={},z=P?.one("p:titleStyle"),E=P?.one("p:bodyStyle"),F=P?.one("p:otherStyle");return z&&(v.title=Y(z,L)),E&&(v.body=Y(E,L)),F&&(v.other=Y(F,L)),o===0&&fe&&Ue(Ie,v.other??[])&&h(r,"cannot-hold","p:defaultTextStyle","the presentation's default text differs from its first master's other text, which a deck takes for both"),u?.one("p:extLst")?.skip("a master's extensions"),{name:y,...O,...R?{color_map:R}:{},text_styles:v,shapes:se(u?.one("p:spTree"),L),layouts:V}}),ne=new Map,he=(i.one("p:sldIdLst")?.all("p:sldId")??[]).flatMap((n,o)=>{const f=n.attr("id");Ve(n);const u=e.rel(a,n.attr("r:id"))?.target;if(!u)return[];const d=e.open(u);if(!d)return[];const y=`slide ${String(o+1)}`,k=e.relOfType(u,"slideLayout")?.target,L=k?e.relOfType(k,"slideMaster")?.target:void 0,R=(k===void 0?void 0:U.get(k))??(L===void 0?void 0:U.get(L))??A,V=xe(R,d.one("p:clrMapOvr")),O={read:D,part:u,colors:{scheme:J,map:V},named:Be(V,R),where:y};d.attrOr("showMasterPhAnim"),d.attrOr("showMasterSp")||h(O,"cannot-hold","p:sld@showMasterSp","a slide that hides its master's shapes (its layout's say for all its slides)"),ie(d.one("p:extLst"));const P=d.one("p:cSld"),v=P?.attr("name");for(const l of["p:custDataLst","p:controls"]){const b=P?.one(l);b&&(h(O,"cannot-hold",l,l==="p:controls"?"ActiveX controls":"a slide's custom data"),b.consume())}P?.one("p:extLst")?.skip("a slide's extensions");const z=re(P,O),E=se(P?.one("p:spTree"),O),F=e.relOfType(u,"notesSlide")?.target,$=F?Qe(F,{...O,part:F,where:`${y} notes`}):void 0,{transition:M,advance:w}=Je(d.one("p:transition"),O),j=new Map(E.flatMap(l=>l.id===void 0?[]:[[l.id,l.name.replace(/^!!/u,"")]])),W=He(d.one("p:timing"));for(const l of E){const b=l.id===void 0?void 0:W.get(l.id);l.kind!=="movie"&&l.kind!=="audio"||!b||Object.keys(b).length===0||(l.playback={...b,...l.playback?.trim?{trim:l.playback.trim}:{}})}const I=Ge(d.one("p:timing"),j,{width:S,height:x},O);return f!==void 0&&ne.set(f,ne.size),[{...v?{name:v}:{},layout:(k?Z.get(k):void 0)??me[0]?.layouts[0]?.name??"",hidden:!d.attrOr("show"),...$!==void 0&&$.trim()!==""?{notes:$}:{},shapes:E.map(l=>({...l,name:l.name.replace(/^!!/u,"")})),...z?{background:z}:{},animations:I,...M?{transition:M}:{},...w===void 0?{}:{advance:w},part:u}]});if(p){p.use(),p.one("p14:extLst")?.skip("a section list's extensions");for(const n of p.all("p14:section")){n.attr("id"),n.one("p14:extLst")?.skip("a section's extensions");const o=n.attr("name")??"",f=(n.one("p14:sldIdLst")?.all("p14:sldId")??[]).map(d=>ne.get(d.attr("id")??-1)).find(d=>d!==void 0),u=f===void 0?void 0:he[f];u&&o.trim()!==""?u.section=o.trim():h({...r,part:a,where:"presentation"},"cannot-hold","p14:section",`a section with no slides${o===""?"":` (${o})`}`)}}const oe=e.rels("").find(n=>n.type.endsWith("/core-properties"))?.target,Te=oe?e.open(oe):void 0,ge=qe(Te,{...r,part:oe??""});return{width:S,height:x,...ge===""?{}:{title:ge},theme:pe,fonts:N,...c.length>0?{embedded_fonts:c}:{},masters:me,slides:he,report:e.report(),reasons:e.reasons(),bytes:n=>e.parts[n]}}const ve=["regular","bold","italic","boldItalic"];function Ze(t,s){const e=[];for(const a of t.one("p:embeddedFontLst")?.all("p:embeddedFont")??[]){const i=a.one("p:font");i?.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its file says them");const r=i?.attr("typeface")??"",m={typeface:r};for(const g of ve){const c=a.one(`p:${g}`),p=s.read.pkg.rel(s.part,c?.attr("r:id")),S=p&&!p.external?s.read.pkg.bytes(p.target):void 0;if(c)try{if(!S)throw new RangeError("its part is not in the file");m[g]=ze(S)}catch(x){if(!(x instanceof RangeError))throw x;h(s,"cannot-hold","p:embeddedFont",`${r}'s ${g} face carried in the file, which does not read: ${x.message}`)}}ve.some(g=>m[g])&&e.push(m)}return e}function Ue(t,s){return t.some((e,a)=>Object.entries(e).some(([i,r])=>{const m=s[a]?.[i],g=Ne.other[a]?.[i],c=m??g;return c!==void 0&&JSON.stringify(c)!==JSON.stringify(r)&&JSON.stringify({...c,...r})!==JSON.stringify(c)}))}function Ve(t){t.one("p:extLst")?.skip("a slide id's extensions")}const Ye={"dc:creator":"the document's author","dc:subject":"the document's subject","cp:keywords":"the document's keywords","dc:description":"the document's comments","cp:category":"the document's category","cp:contentStatus":"the document's status","dc:identifier":"the document's identifier","dc:language":"the document's language","cp:contentType":"the document's content type","cp:version":"the document's version"};function qe(t,s){let e="";for(const a of t?.kids()??[]){const i=a.el.text.trim();if(a.key==="dc:title"){a.use(),e=i;continue}const r=Ye[a.key];if(r!==void 0&&i!==""){a.consume(),h(s,"cannot-hold",a.key,r);continue}a.skip(r!==void 0?"an empty document property":"when, by whom and how often the file was saved, and the like: PowerPoint writes them again")}return e}const Ke=new Set(["sldImg","hdr","dt","ftr","sldNum"]);function Qe(t,s){const e=s.read.pkg.open(t);if(!e)return;e.ignore(["showMasterSp","showMasterPhAnim"],"a notes page's view of its master"),e.one("p:clrMapOvr")?.skip("a notes page's colour map: its words have no colour here"),e.one("p:extLst")?.skip("a notes page's extensions");const a=e.one("p:cSld");a?.ignore(["name"],"a notes page's name"),a?.one("p:bg")?.skip("a notes page's background: notes are words"),a?.one("p:extLst")?.skip("a notes page's extensions");const i=a?.one("p:spTree");let r;for(const c of i?.kids()??[]){if(c.key==="p:nvGrpSpPr"||c.key==="p:grpSpPr"){c.skip("a notes page's shape tree's own properties");continue}const p=c.key==="p:sp"?c:void 0,S=p?.one("p:nvSpPr")?.one("p:nvPr")?.one("p:ph"),x=S?.attr("type")??"obj";if(p&&S&&x==="body"&&!r){r=p.use();continue}if(p&&S&&Ke.has(x)){c.skip("a notes page's picture of its slide, header, date, footer and number: the notes master's");continue}c.use(),h(s,"cannot-hold",c.key,"a shape on a notes page besides its words: a deck's notes are words"),c.consume()}r?.one("p:nvSpPr")?.skip("the notes' placeholder"),r?.one("p:spPr")?.skip("the notes' place on the page"),r?.one("p:style")?.skip("the notes' style"),r?.one("p:extLst")?.skip("the notes' extensions");const m=r?.one("p:txBody");m?.one("a:bodyPr")?.skip("the notes' text frame"),m?.one("a:lstStyle")?.skip("the notes' list style");const g=We(m,s);g.some(c=>c.runs.some(p=>p.font!==void 0)||Object.keys(c).some(p=>p!=="runs"&&p!=="level"))&&h(s,"approximated","p:notes","speaker notes keep their words, not their formatting");for(const c of m?.all("a:p")??[])c.consume();return g.map(c=>c.runs.map(p=>p.text==="\v"?`
3
+ `:p.text).join("")).join(`
4
4
  `)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHAPE_TYPES as pe}from"@allyhub/ooxml/enums";import{evaluate as ue,presetAdjustments as he}from"@allyhub/ooxml/geometry";import{as as W,parseXml as me}from"@allyhub/ooxml";import{strFromU8 as ge}from"fflate";import{AUDIO_ICON as _e}from"../audio-icon.js";const be=(e,i)=>e.length===i.length&&e.every((t,o)=>t===i[o]);import{isConnectorGeometry as ke,pathSteps as we}from"@allyhub/slides-core";import{effectsOf as K,fillOf as Q,lineOf as X,linkOf as ve,say as k,sayEffects as te,shadowOf as J,styleOf as oe}from"./common.js";import{chartOf as xe}from"./chart.js";import{tableOf as ye}from"./table.js";import{BODY_DEFAULTS as Pe,bodyOf as Le}from"./text.js";const ie=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),Se=new Set(pe),ae={place:e=>e};function Y(e){const i=e?.one("a:off"),t=e?.one("a:ext");if(!(!e||!i||!t))return{frame:{left:i.attr("x")??0,top:i.attr("y")??0,width:t.attr("cx")??0,height:t.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function V(e){if(!e)return{};const i=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...i===0||i===360?{}:{rotation:i},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function Ne(e,i){const t=(s,_)=>e?.one(s)?.attr(_)??0,o=(s,_)=>e?.one(s)?.attr(_)??0,f=o("a:chExt","cx")===0?1:o("a:ext","cx")/o("a:chExt","cx"),n=o("a:chExt","cy")===0?1:o("a:ext","cy")/o("a:chExt","cy"),r=(e?.attrOr("rot")??0)/6e4%360,m=e?.attrOr("flipH")??!1,p=e?.attrOr("flipV")??!1,g=t("a:off","x")+o("a:ext","cx")/2,d=t("a:off","y")+o("a:ext","cy")/2;return s=>{const _=s.frame.width*f,h=s.frame.height*n;let l=t("a:off","x")+(s.frame.left-t("a:chOff","x"))*f+_/2,u=t("a:off","y")+(s.frame.top-t("a:chOff","y"))*n+h/2,a=s.rotation;const v={...s.flip};if(m&&(l=2*g-l,a=-a,v.h=!v.h),p&&(u=2*d-u,a=-a,v.v=!v.v),r!==0){const b=r*Math.PI/180,[P,c]=[l-g,u-d];l=g+P*Math.cos(b)-c*Math.sin(b),u=d+P*Math.sin(b)+c*Math.cos(b),a+=r}return i.place({frame:{left:l-_/2,top:u-h/2,width:_,height:h},rotation:a,flip:v})}}function Oe(e,i,t){const o=a=>(a?.all("a:gd")??[]).map(v=>[v.attr("name")??"",v.attr("fmla")??""]),f=o(e.one("a:avLst")),n=o(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const r=a=>W(a).all("a:pt").flatMap(v=>[String(v.attr("x")??"0"),String(v.attr("y")??"0")]),m={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},p=(e.one("a:pathLst")?.all("a:path")??[]).map(a=>{const v=a.kids().map(c=>{if(c.use(),c.key==="a:arcTo"){const z=c;return["A",...["wR","hR","stAng","swAng"].map(S=>String(z.attr(S)??"0"))].join(" ")}return[m[c.key]??"Z",...r(c)].join(" ")}),b=a.attr("fill"),P=a.attr("stroke");return a.attr("extrusionOk"),{...a.attr("w")?{w:a.attr("w")}:{},...a.attr("h")?{h:a.attr("h")}:{},...b===void 0||b==="norm"?{}:{fill:b},...P===!1?{stroke:!1}:{},d:v.join(" ")}});if(p.length===0)return;p.some(a=>a.fill!==void 0||a.stroke===!1)&&k(t,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const g=p[0]?.w??0,d=p[0]?.h??0,s=g>0&&d>0&&p.every(a=>(a.w??0)===g&&(a.h??0)===d),_=s?g:i&&i.width>0?i.width:g>0?g:1,h=s?d:i&&i.height>0?i.height:d>0?d:1,l=ue({av:f,gd:n,paths:p.map(a=>({d:a.d,...a.w?{w:a.w}:{},...a.h?{h:a.h}:{}}))},_,h),u=we(l.paths.map(a=>a.d).join(" "));return u?{w:_,h,steps:u}:void 0}function je(e,i,t){const o=new Map((i?.all("a:gd")??[]).map(r=>[r.attr("name")??"",r.attr("fmla")??""]));if(o.size===0)return;const f=he(e);for(const r of o.keys())f.some(m=>m.name===r)||k(t,"unread","a:gd@name",`${e} has no adjustment ${r}`);return f.map(r=>{const m=o.get(r.name),p=m===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(m.trim())?.[1]);return m!==void 0&&Number.isNaN(p)&&k(t,"approximated","a:gd@fmla",`an adjustment by a formula (${m}) is the preset's own`),(Number.isNaN(p)?r.value:p)/1e5})}function D(e,i){const t=e?.attr("name")??"",o=e?.attr("id"),f=e?.attr("descr");e?.attr("hidden")===!0&&k(i,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&k(i,"cannot-hold","p:cNvPr@title","an alternative text's title");let r;const m=e?.one("a:hlinkClick");m?.attr("action")==="ppaction://media"?m.consume():m&&(r=ve(m,i,"a:hlinkClick"));const p=e?.one("a:hlinkHover");return p&&(k(i,"cannot-hold","a:hlinkHover","a link followed when the pointer is over a shape"),p.consume()),{name:t,...r===void 0?{}:{link:r},...o===void 0?{}:{id:String(o)},...f?{alt:f}:{}}}export function shapesOf(e,i,t=ae){const o=[];if(!e)return o;for(const f of e.kids())switch(f.key){case"p:nvGrpSpPr":case"p:grpSpPr":t===ae&&f.consume();break;case"p:sp":o.push(...ze(f,i,t));break;case"p:cxnSp":o.push(...Te(f,i,t));break;case"p:pic":o.push(...ce(f,i,t));break;case"p:graphicFrame":o.push(...Ae(f,i,t));break;case"p:grpSp":o.push(...Ee(f,i,t));break;case"p:contentPart":f.use(),k(i,"cannot-hold","p:contentPart","ink"),f.consume();break;default:break}return o}const H=(e,i,t)=>{const o=`${e.where} › "${t||"unnamed"}"`;return i.label(o),{...e,where:o}},Me=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function I(e,i){if(!e)return!1;const t=W(e),o=e.key!=="a:graphicFrameLocks",f=t.attr("noMove")===!0,n=t.attr("noResize")===!0,r=o&&t.attr("noRot")===!0;return t.ignore(Me,"locks against editing in PowerPoint"),W(e).one("a:extLst")?.skip("a lock's extensions"),f&&n?!0:((f||n||r)&&k(i,"cannot-hold",`${e.key}@${[f&&"noMove",n&&"noResize",r&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const Fe={};function ze(e,i,t){e.use();const o=e.one("p:nvSpPr"),f=o?.one("p:cNvPr"),n=H(i,e,f?.el.attrs.find(y=>y.key==="name")?.value??""),r=D(f,n),m=o?.one("p:cNvSpPr");I(m?.one("a:spLocks"),n)&&(r.locked=!0);const p=m?.attr("txBox")===!0,g=o?.one("p:nvPr");g?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const d=g?.one("p:ph"),s=e.one("p:spPr");s?.ignore(["bwMode"],"a shape's black and white printing mode");const _=Y(s?.one("a:xfrm")),h=V(_&&t.place(_)),l=s?.one("a:prstGeom"),u=l?.attr("prst"),a=Q(s,n,!0),v=s?.one("a:ln"),b=X(v,n),P=s?.one("a:effectLst"),c=d||p?{}:oe(e.one("p:style"),n),z=P?J(P,n):c.shadow,S=P?K(P,n):re(c);P||te(c,n),(d||p)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const w=a?.group?t.fill:a;a?.group&&!t.fill&&k(n,"approximated","a:grpFill","a group's fill outside a group is none");const N=e.one("p:txBody"),B=d!==void 0&&!n.part.includes("/slides/")&&(d.attr("type")??"obj")!=="sldNum",L=N?Le(N,d&&!n.part.includes("/slideMasters/")?Fe:Pe,n,B):void 0;if(L&&c.font==="+mj-lt")for(const y of L.paragraphs)for(const O of y.runs)O.font?.name===void 0&&O.text!=="\v"&&(O.font={...O.font,name:"+mj-lt"});const A={...r,kind:"autoshape",...h,...w?.fill!==void 0?{fill:w.fill}:w?.gradient||w?.pattern||w?.picture_fill?{}:d?{}:p?{fill:null}:c.fill!==void 0?{fill:c.fill}:c.gradient||c.pattern||c.picture_fill?{}:{fill:null},...(w?.fill_transparency??(w?void 0:c.fill_transparency))===void 0?{}:{fill_transparency:w?.fill_transparency??c.fill_transparency??0},...w?.gradient??(w?void 0:c.gradient)?{gradient:w?.gradient??c.gradient}:{},...w?.pattern??(w?void 0:c.pattern)?{pattern:w?.pattern??c.pattern}:{},...w?.picture_fill??(w?void 0:c.picture_fill)?{picture_fill:w?.picture_fill??c.picture_fill}:{},...z?{shadow:z}:{},...S,...b.line!==void 0?{line:b.line}:d?{}:p?{}:{line:c.line??null},...(b.line_width??(d?void 0:c.line_width))===void 0?{}:{line_width:b.line_width??c.line_width},...(b.line_dash??c.line_dash)===void 0?{}:{line_dash:b.line_dash??c.line_dash},...se(b,c),...(b.line_begin??c.line_begin)===void 0?{}:{line_begin:b.line_begin??c.line_begin},...(b.line_end??c.line_end)===void 0?{}:{line_end:b.line_end??c.line_end},...b.line_begin_size===void 0?{}:{line_begin_size:b.line_begin_size},...b.line_end_size===void 0?{}:{line_end_size:b.line_end_size},...c.text_color===void 0?{}:{text_color:c.text_color},...L?{text:L}:{},...t.group===void 0?{}:{group:t.group}};if(d){const y=d.attr("type")??"obj",O=d.attr("idx")??0;d.ignore(["hasCustomPrompt"],"a placeholder's own prompt text");const $=d.attr("orient")==="vert"?{orient:"vert"}:{};if(d.attr("sz"),y==="sldImg"||y==="hdr")return[];const j=ie.has(y)?y:y==="clipArt"||y==="chart"||y==="tbl"||y==="dgm"?"obj":"body";return ie.has(y)||k(n,"approximated","p:ph@type",`a ${y} placeholder is a${j==="obj"?"n object":" body"} placeholder`),u!==void 0&&u!=="rect"?[{...A,kind:"placeholder",placeholder:{type:j,idx:O,...$},geometry:u,...ee(u,l?.one("a:avLst"),n)}]:(l?.one("a:avLst"),[{...A,kind:"placeholder",placeholder:{type:j,idx:O,...$}}])}const C=s?.one("a:custGeom"),M=C?Oe(C,h.frame,n):void 0;C&&!M&&k(n,"approximated","a:custGeom","a freeform with no outline is a rectangle");const U=u!==void 0&&Se.has(u)?u:"rect";return[{...A,kind:p?"textbox":"autoshape",...M?{path:M}:{geometry:U},...u===void 0||M?{}:ee(u,l?.one("a:avLst"),n)}]}const re=e=>({...e.inner_shadow?{inner_shadow:e.inner_shadow}:{},...e.glow?{glow:e.glow}:{},...e.reflection?{reflection:e.reflection}:{},...e.soft_edges===void 0?{}:{soft_edges:e.soft_edges}}),se=(e,i)=>({...(e.line_cap??i.line_cap)===void 0?{}:{line_cap:e.line_cap??i.line_cap},...(e.line_join??i.line_join)===void 0?{}:{line_join:e.line_join??i.line_join},...(e.line_compound??i.line_compound)===void 0?{}:{line_compound:e.line_compound??i.line_compound}}),ee=(e,i,t)=>{const o=je(e,i,t);return o?{adjustments:o}:{}};function Te(e,i,t){e.use();const o=e.one("p:nvCxnSpPr"),f=o?.one("p:cNvPr"),n=H(i,e,f?.el.attrs.find(c=>c.key==="name")?.value??""),r=D(f,n),m=o?.one("p:cNvCxnSpPr");I(m?.one("a:cxnSpLocks"),n)&&(r.locked=!0);const p={};for(const[c,z]of[["begin","a:stCxn"],["end","a:endCxn"]]){const S=m?.one(z);if(!S)continue;const w=S.attr("id"),N=S.attr("idx");w!==void 0&&N!==void 0&&(p[c]={id:String(w),site:N}),S.consume()}o?.one("p:nvPr");const g=e.one("p:spPr");g?.ignore(["bwMode"],"a shape's black and white printing mode");const d=Y(g?.one("a:xfrm")),s=g?.one("a:prstGeom"),_=s?.attr("prst")??"line",h=ee(_,s?.one("a:avLst"),n),l=oe(e.one("p:style"),n),u=X(g?.one("a:ln"),n),a=g?.one("a:effectLst"),v=a?J(a,n):l.shadow,b=a?K(a,n):re(l);a||te(l,n);const P=ke(_);return P||k(n,"approximated","a:prstGeom@prst",`a connector of the ${_} preset is a shape of it with no fill`),[{...r,kind:"autoshape",geometry:_,...h,...V(d&&t.place(d)),...P?{}:{fill:null},line:u.line??l.line??null,...(u.line_width??l.line_width)===void 0?{}:{line_width:u.line_width??l.line_width},...(u.line_dash??l.line_dash)===void 0?{}:{line_dash:u.line_dash??l.line_dash},...se(u,l),...(u.line_begin??l.line_begin)===void 0?{}:{line_begin:u.line_begin??l.line_begin},...(u.line_end??l.line_end)===void 0?{}:{line_end:u.line_end??l.line_end},...u.line_begin_size===void 0?{}:{line_begin_size:u.line_begin_size},...u.line_end_size===void 0?{}:{line_end_size:u.line_end_size},...v?{shadow:v}:{},...b,...t.group===void 0?{}:{group:t.group},...p.begin||p.end?{glue:p}:{}}]}function ce(e,i,t){e.use();const o=e.one("p:nvPicPr"),f=o?.one("p:cNvPr"),n=H(i,e,f?.el.attrs.find(x=>x.key==="name")?.value??""),r=D(f,n),m=o?.one("p:cNvPicPr");I(m?.one("a:picLocks"),n)&&(r.locked=!0),m?.attr("preferRelativeResize");const p=o?.one("p:nvPr");p?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const g=p?.one("p:ph"),d=p?.one("a:videoFile"),s=p?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),_=p?.one("p:extLst")?.all("p:ext").flatMap(x=>{const F=x.one("p14:media");return F?[F]:[]})[0],h=n.read.pkg,l=s?.key==="a:audioFile"?W(s):void 0,u=h.rel(n.part,_?.attr("r:embed"))??h.rel(n.part,d?.attr("r:link"))??h.rel(n.part,l?.attr("r:link"));let a;if(_){_.attr("r:link");const x=_.one("p14:trim"),F=T=>{const E=T===void 0||T===""?NaN:Number(T);return Number.isFinite(E)&&E>0?Math.round(E*1e3)/1e6:void 0},Z=F(x?.attr("st")),q=F(x?.attr("end"));(Z!==void 0||q!==void 0)&&(a={...Z===void 0?{}:{start:Z},...q===void 0?{}:{end:q}});for(const T of["p14:fade","p14:bmkLst"]){const E=_.one(T);E&&(k(n,"cannot-hold",T,T==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),E.consume())}}l?(l.attr("r:link"),l.one("a:extLst")?.skip("a sound's extensions")):s&&(k(n,"cannot-hold",s.key,"a sound from a CD or of another kind"),s.consume());const v=e.one("p:blipFill");v?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const b=v?.one("a:blip");b?.ignore(["cstate"],"a picture's compression state");const P=b?.one("a:extLst")?.all("a:ext").flatMap(x=>{const F=x.one("asvg:svgBlip");return x.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),F?[F]:[]})[0],c=h.rel(n.part,P?.attr("r:embed"))??h.rel(n.part,b?.attr("r:embed"));b?.attr("r:link")&&k(n,"missing","a:blip@r:link","a picture linked from outside the file");for(const x of b?.kids()??[])x.key!=="a:extLst"&&(x.use(),k(n,"cannot-hold",x.key,"a picture's own effect (transparency, recolouring, brightness)"),x.consume());const S=v?.one("a:srcRect"),w=x=>(S?.attr(x)??0)/1e5,N=S?{left:w("l"),top:w("t"),right:w("r"),bottom:w("b")}:void 0;v?.one("a:stretch")?.consume();const B=v?.one("a:tile");B&&(k(n,"cannot-hold","a:tile","a picture tiled in its frame"),B.consume());const L=e.one("p:spPr");L?.ignore(["bwMode"],"a shape's black and white printing mode");const A=Y(L?.one("a:xfrm")),C=L?.one("a:prstGeom"),M=C?.attr("prst");C?.one("a:avLst"),M!==void 0&&M!=="rect"&&k(n,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${M}`);const U=L?.one("a:ln");U&&X(U,n).line&&k(n,"cannot-hold","p:pic/a:ln","a picture's outline");const y=J(L?.one("a:effectLst"),n),O=K(L?.one("a:effectLst"),n),$=Q(L,n);($?.fill||$?.gradient)&&k(n,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const j=l!==void 0,G=!j&&(d!==void 0||_!==void 0&&!s),R=G||j?u:c;if(!R||R.external)return k(n,"missing","p:pic","a picture or a video whose file is not in the file"),[];if(!h.bytes(R.target))return k(n,"missing","p:pic",`a picture or a video whose part (${R.target}) is not in the file`),[];if(G&&(c&&(h.bytes(c.target),k(n,"approximated","p:pic/p:blipFill","a video's own poster picture: a deck's video shows a moment of itself (its `poster`, the start unless said)")),N&&Object.values(N).some(x=>x!==0)&&k(n,"cannot-hold","a:srcRect","a video's crop"),d?.attr("r:link")),j&&c){const x=h.bytes(c.target);x&&!be(x,_e)&&k(n,"approximated","p:pic/p:blipFill","a sound's own icon: a deck draws a sound as its speaker")}const ne=r.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(r.alt);ne&&f?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const fe=r.alt===void 0||ne?{}:{alt:r.alt};return[{name:r.name,...r.id===void 0?{}:{id:r.id},...r.locked?{locked:!0}:{},...r.link===void 0?{}:{link:r.link},...(G||j)&&a?{playback:{trim:a}}:{},...fe,kind:j?"audio":G?"movie":"picture",...g?{placeholder:{type:g.attr("type")??"pic",idx:g.attr("idx")??0}}:{},...V(A&&t.place(A)),part:R.target,...N&&!G?{crop:N}:{},...y?{shadow:y}:{},...O,...t.group===void 0?{}:{group:t.group}}]}function Ae(e,i,t){e.use();const o=e.one("p:nvGraphicFramePr"),f=o?.one("p:cNvPr"),n=H(i,e,f?.el.attrs.find(l=>l.key==="name")?.value??""),r=D(f,n);I(o?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),n)&&(r.locked=!0);const m=o?.one("p:nvPr")?.one("p:ph");m&&(k(n,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),m.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const p=Y(e.one("p:xfrm")),g=V(p&&t.place(p)),d=e.one("a:graphic")?.one("a:graphicData"),s=d?.attr("uri")??"",_={...r,...g,...t.group===void 0?{}:{group:t.group}};if(s.endsWith("/table")){const l=d?.one("a:tbl");if(l)return[{..._,kind:"table",table:ye(l.use(),n)}]}if(s.endsWith("/chart")){const l=d?.one("c:chart");l?.use();const u=n.read.pkg.rel(n.part,l?.attr("r:id")),a=u?xe(u.target,n):"its chart is not in the file";return typeof a=="string"?(k(n,"cannot-hold","c:chart",a),[]):[{..._,kind:"chart",chart:a}]}if(s.endsWith("/diagram"))return k(n,"cannot-hold","dgm:relIds","SmartArt"),d?.consume(),[];const h=d?.one("p:oleObj");if(h){h.use(),k(n,"approximated","p:oleObj",`an embedded ${h.attr("progId")??"object"} is its picture`),h.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),h.one("p:embed")?.consume(),h.one("p:link")?.consume();const l=h.one("p:pic");if(l){const[a]=ce(l,i,t);return a?[{...a,...r,...g,kind:"picture"}]:[]}const u=Ce(h.el.attrs.find(a=>a.key==="spid")?.value,n);return u?[{..._,kind:"picture",part:u}]:(k(n,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return k(n,"cannot-hold","a:graphicData",s||"a graphic frame"),d?.consume(),[]}const de="urn:schemas-microsoft-com:vml",le="urn:schemas-microsoft-com:office:office";function Ce(e,i){const t=i.read.pkg,o=t.relOfType(i.part,"vmlDrawing")?.target,f=o===void 0?void 0:t.bytes(o);if(o===void 0||!f||e===void 0)return;let n;try{n=me(ge(f))}catch{return}const r=(s,_,h)=>s.attrs.find(l=>l.uri===_&&l.local===h)?.value,m=s=>[s,...s.children.flatMap(m)],g=m(n).find(s=>s.uri===de&&(r(s,"","id")===e||r(s,le,"spid")===e))?.children.find(s=>s.uri===de&&s.local==="imagedata"),d=t.rel(o,g&&r(g,le,"relid"));if(!(!d||d.external||!t.bytes(d.target)))return d.target}function Ee(e,i,t){e.use();const o=e.one("p:nvGrpSpPr"),f=o?.one("p:cNvPr"),n=H(i,e,f?.el.attrs.find(h=>h.key==="name")?.value??""),r=D(f,n),m=I(o?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),n);o?.one("p:nvPr");const p=e.one("p:grpSpPr");p?.ignore(["bwMode"],"a shape's black and white printing mode");const g=Q(p,n),d=p?.one("a:effectLst");d&&(k(n,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),d.consume());const s=r.name.replaceAll("/","-");return shapesOf(e,n,{...g&&!g.group?{fill:g}:t.fill?{fill:t.fill}:{},group:t.group===void 0?s:`${t.group}/${s}`,place:Ne(p?.one("a:xfrm"),t)}).map(h=>({...h,...m?{locked:!0}:{},...r.link!==void 0&&h.link===void 0?{link:r.link}:{}}))}
2
+ import{SHAPE_TYPES as se}from"@allyhub/ooxml/enums";import{evaluate as Pe,presetAdjustments as Se}from"@allyhub/ooxml/geometry";import{as as V,colorOf as Me,Marks as Le,parseXml as K,XEl as Ne}from"@allyhub/ooxml";import{strFromU8 as Q}from"fflate";import{AUDIO_ICON as Oe}from"../audio-icon.js";const je=(e,i)=>e.length===i.length&&e.every((o,r)=>o===i[r]);import{EMU_PER_PT as ce,isConnectorGeometry as $e,pathSteps as Ee}from"@allyhub/slides-core";import{effectsOf as J,fillOf as ee,modelColor as Fe,lineOf as te,linkOf as Te,say as _,sayEffects as de,shadowOf as ne,styleOf as le}from"./common.js";import{chartOf as Ae}from"./chart.js";import{chartExOf as ze}from"./chartex.js";import{tableOf as Ge}from"./table.js";import{BODY_DEFAULTS as Ce,bodyOf as De}from"./text.js";const pe=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),Re=new Set(se),fe={place:e=>e};function Z(e){const i=e?.one("a:off"),o=e?.one("a:ext");if(!(!e||!i||!o))return{frame:{left:i.attr("x")??0,top:i.attr("y")??0,width:o.attr("cx")??0,height:o.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function X(e){if(!e)return{};const i=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...i===0||i===360?{}:{rotation:i},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function Ie(e,i){const o=(a,f)=>e?.one(a)?.attr(f)??0,r=(a,f)=>e?.one(a)?.attr(f)??0,x=r("a:chExt","cx")===0?1:r("a:ext","cx")/r("a:chExt","cx"),t=r("a:chExt","cy")===0?1:r("a:ext","cy")/r("a:chExt","cy"),s=(e?.attrOr("rot")??0)/6e4%360,w=e?.attrOr("flipH")??!1,h=e?.attrOr("flipV")??!1,y=o("a:off","x")+r("a:ext","cx")/2,l=o("a:off","y")+r("a:ext","cy")/2;return a=>{const f=a.frame.width*x,u=a.frame.height*t;let d=o("a:off","x")+(a.frame.left-o("a:chOff","x"))*x+f/2,c=o("a:off","y")+(a.frame.top-o("a:chOff","y"))*t+u/2,m=a.rotation;const b={...a.flip};if(w&&(d=2*y-d,m=-m,b.h=!b.h),h&&(c=2*l-c,m=-m,b.v=!b.v),s!==0){const v=s*Math.PI/180,[L,p]=[d-y,c-l];d=y+L*Math.cos(v)-p*Math.sin(v),c=l+L*Math.sin(v)+p*Math.cos(v),m+=s}return i.place({frame:{left:d-f/2,top:c-u/2,width:f,height:u},rotation:m,flip:b})}}function He(e,i,o){const r=n=>(n?.all("a:gd")??[]).map(k=>[k.attr("name")??"",k.attr("fmla")??""]),x=r(e.one("a:avLst")),t=r(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const s=n=>V(n).all("a:pt").flatMap(k=>[String(k.attr("x")??"0"),String(k.attr("y")??"0")]),w={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},h=(e.one("a:pathLst")?.all("a:path")??[]).map(n=>{const k=n.kids().map(g=>{if(g.use(),g.key==="a:arcTo"){const S=g;return["A",...["wR","hR","stAng","swAng"].map(O=>String(S.attr(O)??"0"))].join(" ")}return[w[g.key]??"Z",...s(g)].join(" ")}),j=n.attr("fill"),T=n.attr("stroke");return n.attr("extrusionOk"),{...n.attr("w")?{w:n.attr("w")}:{},...n.attr("h")?{h:n.attr("h")}:{},...j===void 0||j==="norm"?{}:{fill:j},...T===!1?{stroke:!1}:{},d:k.join(" ")}});if(h.length===0)return;h.some(n=>n.fill!==void 0||n.stroke===!1)&&_(o,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const y=h[0]?.w??0,l=h[0]?.h??0,a=y>0&&l>0&&h.every(n=>(n.w??0)===y&&(n.h??0)===l),f=a?y:i&&i.width>0?i.width:y>0?y:1,u=a?l:i&&i.height>0?i.height:l>0?l:1,d=Pe({av:x,gd:t,paths:h.map(n=>({d:n.d,...n.w?{w:n.w}:{},...n.h?{h:n.h}:{}}))},f,u),c=Ee(d.paths.map(n=>n.d).join(" "));if(!c)return;if(!i||i.width<=0||i.height<=0||f<=0||u<=0)return{w:f,h:u,steps:c};const m=n=>Math.round(n*i.width/f),b=n=>Math.round(n*i.height/u),v={w:Math.round(i.width),h:Math.round(i.height),steps:c.map(n=>n.op==="close"?n:n.op==="curve"?{op:"curve",x1:m(n.x1),y1:b(n.y1),x2:m(n.x2),y2:b(n.y2),x:m(n.x),y:b(n.y)}:{op:n.op,x:m(n.x),y:b(n.y)})},L=[v.w,v.h,...v.steps.flatMap(n=>n.op==="close"?[]:n.op==="curve"?[n.x1,n.y1,n.x2,n.y2,n.x,n.y]:[n.x,n.y])],p=ce/100;if(!L.every(n=>n%p===0))return v;const N=n=>n/ce;return{w:N(v.w),h:N(v.h),steps:v.steps.map(n=>n.op==="close"?n:n.op==="curve"?{op:"curve",x1:N(n.x1),y1:N(n.y1),x2:N(n.x2),y2:N(n.y2),x:N(n.x),y:N(n.y)}:{op:n.op,x:N(n.x),y:N(n.y)})}}function ue(e,i,o){const r=new Map((i?.all("a:gd")??[]).map(s=>[s.attr("name")??"",s.attr("fmla")??""]));if(r.size===0)return;const x=Se(e);for(const s of r.keys())x.some(w=>w.name===s)||_(o,"unread","a:gd@name",`${e} has no adjustment ${s}`);return x.map(s=>{const w=r.get(s.name),h=w===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(w.trim())?.[1]);return w!==void 0&&Number.isNaN(h)&&_(o,"approximated","a:gd@fmla",`an adjustment by a formula (${w}) is the preset's own`),(Number.isNaN(h)?s.value:h)/1e5})}function W(e,i){const o=e?.attr("name")??"",r=e?.attr("id"),x=e?.attr("descr");e?.attr("hidden")===!0&&_(i,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&_(i,"cannot-hold","p:cNvPr@title","an alternative text's title");let s;const w=e?.one("a:hlinkClick");w?.attr("action")==="ppaction://media"?w.consume():w&&(s=Te(w,i,"a:hlinkClick"));const h=e?.one("a:hlinkHover");h&&(_(i,"cannot-hold","a:hlinkHover","a link followed when the pointer is over a shape"),h.consume());const y=e?.one("a:extLst")?.all("a:ext")??[],l=y.some(a=>a.one("adec:decorative")?.attr("val")===!0);for(const a of y)a.one("a16:creationId")?.skip("a shape's id across versions");return{name:o,...s===void 0?{}:{link:s},...r===void 0?{}:{id:String(r)},...x&&!l?{alt:x}:{},...l?{decorative:!0}:{}}}export function shapesOf(e,i,o=fe){const r=[];if(!e)return r;const x=new Set;for(const t of e.kids())switch(t.key){case"p:nvGrpSpPr":case"p:grpSpPr":o===fe&&t.consume();break;case"p:sp":r.push(...We(t,i,o));break;case"p:cxnSp":r.push(...Ye(t,i,o));break;case"p:pic":r.push(...ge(t,i,o));break;case"p:graphicFrame":r.push(...qe(t,i,o));break;case"p:grpSp":r.push(...we(t,i,o,x));break;case"p:contentPart":t.use(),_(i,"cannot-hold","p:contentPart","ink"),t.consume();break;default:break}return r}const Y=(e,i,o)=>{const r=`${e.where} › "${o||"unnamed"}"`;return i.label(r),{...e,where:r}},Be=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function q(e,i){if(!e)return!1;const o=V(e),r=e.key!=="a:graphicFrameLocks",x=o.attr("noMove")===!0,t=o.attr("noResize")===!0,s=r&&o.attr("noRot")===!0;return o.ignore(Be,"locks against editing in PowerPoint"),V(e).one("a:extLst")?.skip("a lock's extensions"),x&&t?!0:((x||t||s)&&_(i,"cannot-hold",`${e.key}@${[x&&"noMove",t&&"noResize",s&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const Ue={};function We(e,i,o){e.use();const r=e.one("p:nvSpPr"),x=r?.one("p:cNvPr"),t=Y(i,e,x?.el.attrs.find(M=>M.key==="name")?.value??""),s=W(x,t),w=r?.one("p:cNvSpPr");q(w?.one("a:spLocks"),t)&&(s.locked=!0);const h=w?.attr("txBox")===!0,y=r?.one("p:nvPr");y?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const l=y?.one("p:ph"),a=e.one("p:spPr");a?.ignore(["bwMode"],"a shape's black and white printing mode");const f=Z(a?.one("a:xfrm")),u=X(f&&o.place(f)),d=a?.one("a:prstGeom"),c=d?.attr("prst"),m=ee(a,t,!0),b=a?.one("a:ln"),v=te(b,t),L=a?.one("a:effectLst"),p=l||h?{}:le(e.one("p:style"),t),N=L?ne(L,t):p.shadow,n=L?J(L,t):he(p);L||de(p,t),(l||h)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const k=m?.group?o.fill:m;m?.group&&!o.fill&&_(t,"approximated","a:grpFill","a group's fill outside a group is none");const j=e.one("p:txBody"),T=l!==void 0&&!t.part.includes("/slides/")&&(l.attr("type")??"obj")!=="sldNum",g=j?De(j,l&&!t.part.includes("/slideMasters/")?Ue:Ce,t,T):void 0;if(g&&p.font==="+mj-lt")for(const M of g.paragraphs)for(const A of M.runs)A.font?.name===void 0&&A.text!=="\v"&&(A.font={...A.font,name:"+mj-lt"});const S={...s,kind:"autoshape",...u,...k?.fill!==void 0?{fill:k.fill}:k?.gradient||k?.pattern||k?.picture_fill?{}:l?{}:h?{fill:null}:p.fill!==void 0?{fill:p.fill}:p.gradient||p.pattern||p.picture_fill?{}:{fill:null},...(k?.fill_transparency??(k?void 0:p.fill_transparency))===void 0?{}:{fill_transparency:k?.fill_transparency??p.fill_transparency??0},...k?.gradient??(k?void 0:p.gradient)?{gradient:k?.gradient??p.gradient}:{},...k?.pattern??(k?void 0:p.pattern)?{pattern:k?.pattern??p.pattern}:{},...k?.picture_fill??(k?void 0:p.picture_fill)?{picture_fill:k?.picture_fill??p.picture_fill}:{},...N?{shadow:N}:{},...n,...v.line!==void 0?{line:v.line}:l?{}:h?{}:{line:p.line??null},...(v.line_width??(l?void 0:p.line_width))===void 0?{}:{line_width:v.line_width??p.line_width},...(v.line_dash??p.line_dash)===void 0?{}:{line_dash:v.line_dash??p.line_dash},...me(v,p),...(v.line_begin??p.line_begin)===void 0?{}:{line_begin:v.line_begin??p.line_begin},...(v.line_end??p.line_end)===void 0?{}:{line_end:v.line_end??p.line_end},...v.line_begin_size===void 0?{}:{line_begin_size:v.line_begin_size},...v.line_end_size===void 0?{}:{line_end_size:v.line_end_size},...p.text_color===void 0?{}:{text_color:p.text_color},...g?{text:g}:{},...o.group===void 0?{}:{group:o.group}};if(l){const M=l.attr("type")??"obj",A=l.attr("idx")??0;l.ignore(["hasCustomPrompt"],"a placeholder's own prompt text");const B=l.attr("orient")==="vert"?{orient:"vert"}:{};if(l.attr("sz"),M==="sldImg"||M==="hdr")return[];const H=pe.has(M)?M:M==="clipArt"||M==="chart"||M==="tbl"||M==="dgm"?"obj":"body";return pe.has(M)||_(t,"approximated","p:ph@type",`a ${M} placeholder is a${H==="obj"?"n object":" body"} placeholder`),c!==void 0&&c!=="rect"?[{...S,kind:"placeholder",placeholder:{type:H,idx:A,...B},geometry:c,...oe(c,d?.one("a:avLst"),t)}]:(d?.one("a:avLst"),[{...S,kind:"placeholder",placeholder:{type:H,idx:A,...B}}])}const O=a?.one("a:custGeom"),C=O?He(O,u.frame,t):void 0;O&&!C&&_(t,"approximated","a:custGeom","a freeform with no outline is a rectangle");const z=c!==void 0&&Re.has(c)?c:"rect";return[{...S,kind:h?"textbox":"autoshape",...C?{path:C}:{geometry:z},...c===void 0||C?{}:oe(c,d?.one("a:avLst"),t)}]}const he=e=>({...e.inner_shadow?{inner_shadow:e.inner_shadow}:{},...e.glow?{glow:e.glow}:{},...e.reflection?{reflection:e.reflection}:{},...e.soft_edges===void 0?{}:{soft_edges:e.soft_edges}}),me=(e,i)=>({...(e.line_cap??i.line_cap)===void 0?{}:{line_cap:e.line_cap??i.line_cap},...(e.line_join??i.line_join)===void 0?{}:{line_join:e.line_join??i.line_join},...(e.line_compound??i.line_compound)===void 0?{}:{line_compound:e.line_compound??i.line_compound}}),oe=(e,i,o)=>{const r=ue(e,i,o);return r?{adjustments:r}:{}};function Ye(e,i,o){e.use();const r=e.one("p:nvCxnSpPr"),x=r?.one("p:cNvPr"),t=Y(i,e,x?.el.attrs.find(p=>p.key==="name")?.value??""),s=W(x,t),w=r?.one("p:cNvCxnSpPr");q(w?.one("a:cxnSpLocks"),t)&&(s.locked=!0);const h={};for(const[p,N]of[["begin","a:stCxn"],["end","a:endCxn"]]){const n=w?.one(N);if(!n)continue;const k=n.attr("id"),j=n.attr("idx");k!==void 0&&j!==void 0&&(h[p]={id:String(k),site:j}),n.consume()}r?.one("p:nvPr");const y=e.one("p:spPr");y?.ignore(["bwMode"],"a shape's black and white printing mode");const l=Z(y?.one("a:xfrm")),a=y?.one("a:prstGeom"),f=a?.attr("prst")??"line",u=oe(f,a?.one("a:avLst"),t),d=le(e.one("p:style"),t),c=te(y?.one("a:ln"),t),m=y?.one("a:effectLst"),b=m?ne(m,t):d.shadow,v=m?J(m,t):he(d);m||de(d,t);const L=$e(f);return L||_(t,"approximated","a:prstGeom@prst",`a connector of the ${f} preset is a shape of it with no fill`),[{...s,kind:"autoshape",geometry:f,...u,...X(l&&o.place(l)),...L?{}:{fill:null},line:c.line??d.line??null,...(c.line_width??d.line_width)===void 0?{}:{line_width:c.line_width??d.line_width},...(c.line_dash??d.line_dash)===void 0?{}:{line_dash:c.line_dash??d.line_dash},...me(c,d),...(c.line_begin??d.line_begin)===void 0?{}:{line_begin:c.line_begin??d.line_begin},...(c.line_end??d.line_end)===void 0?{}:{line_end:c.line_end??d.line_end},...c.line_begin_size===void 0?{}:{line_begin_size:c.line_begin_size},...c.line_end_size===void 0?{}:{line_end_size:c.line_end_size},...b?{shadow:b}:{},...v,...o.group===void 0?{}:{group:o.group},...h.begin||h.end?{glue:h}:{}}]}function ge(e,i,o){e.use();const r=e.one("p:nvPicPr"),x=r?.one("p:cNvPr"),t=Y(i,e,x?.el.attrs.find(P=>P.key==="name")?.value??""),s=W(x,t),w=r?.one("p:cNvPicPr");q(w?.one("a:picLocks"),t)&&(s.locked=!0),w?.attr("preferRelativeResize");const h=r?.one("p:nvPr");h?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const y=h?.one("p:ph"),l=h?.one("a:videoFile"),a=h?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),f=h?.one("p:extLst")?.all("p:ext").flatMap(P=>{const F=P.one("p14:media");return F?[F]:[]})[0],u=t.read.pkg,d=a?.key==="a:audioFile"?V(a):void 0,c=u.rel(t.part,f?.attr("r:embed"))??u.rel(t.part,l?.attr("r:link"))??u.rel(t.part,d?.attr("r:link"));let m;if(f){f.attr("r:link");const P=f.one("p14:trim"),F=$=>{const G=$===void 0||$===""?NaN:Number($);return Number.isFinite(G)&&G>0?Math.round(G*1e3)/1e6:void 0},D=F(P?.attr("st")),E=F(P?.attr("end"));(D!==void 0||E!==void 0)&&(m={...D===void 0?{}:{start:D},...E===void 0?{}:{end:E}});for(const $ of["p14:fade","p14:bmkLst"]){const G=f.one($);G&&(_(t,"cannot-hold",$,$==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),G.consume())}}d?(d.attr("r:link"),d.one("a:extLst")?.skip("a sound's extensions")):a&&(_(t,"cannot-hold",a.key,"a sound from a CD or of another kind"),a.consume());const b=e.one("p:blipFill");b?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const v=b?.one("a:blip");v?.ignore(["cstate"],"a picture's compression state");const L=v?.one("a:extLst")?.all("a:ext").flatMap(P=>{const F=P.one("asvg:svgBlip");return P.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),F?[F]:[]})[0],p=u.rel(t.part,L?.attr("r:embed"))??u.rel(t.part,v?.attr("r:embed"));v?.attr("r:link")&&_(t,"missing","a:blip@r:link","a picture linked from outside the file");const n={};for(const P of v?.kids()??[]){if(P.key==="a:extLst")continue;P.use();const F=P,D=(E,$)=>Number(F.attr(E)??$)/1e5;if(P.key==="a:alphaModFix"){const E=Math.round((1-D("amt",1e5))*1e3)/1e3;E>0&&(n.transparency=Math.min(1,E))}else if(P.key==="a:lum"){const E=D("bright",0),$=D("contrast",0);E!==0&&(n.brightness=Math.max(-1,Math.min(1,E))),$!==0&&(n.contrast=Math.max(-1,Math.min(1,$)))}else if(P.key==="a:grayscl")n.grayscale=!0;else if(P.key==="a:biLevel")n.black_white=D("thresh",5e4);else if(P.key==="a:duotone"){const E=F.kids().map(be=>Fe(Me(be,t.colors),t,"a:duotone")),[$,G]=E;E.length===2&&$!==void 0&&G!==void 0?n.duotone=[$,G]:_(t,"cannot-hold","a:duotone","a duotone of other than two colours")}else _(t,"cannot-hold",P.key,"a picture's own effect (a colour made transparent, a tint, a colour changed, hue and saturation)");P.consume()}const k=b?.one("a:srcRect"),j=P=>(k?.attr(P)??0)/1e5,T=k?{left:j("l"),top:j("t"),right:j("r"),bottom:j("b")}:void 0;b?.one("a:stretch")?.consume();const g=b?.one("a:tile");g&&(_(t,"cannot-hold","a:tile","a picture tiled in its frame"),g.consume());const S=e.one("p:spPr");S?.ignore(["bwMode"],"a shape's black and white printing mode");const O=Z(S?.one("a:xfrm")),C=S?.one("a:prstGeom"),z=C?.attr("prst"),M=z!==void 0&&z!=="rect"&&se.includes(z)?z:void 0,A=M===void 0?void 0:ue(M,C?.one("a:avLst"),t);M===void 0&&C?.one("a:avLst"),z!==void 0&&z!=="rect"&&M===void 0&&_(t,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${z}`),S?.one("a:custGeom")&&_(t,"cannot-hold","a:custGeom","a picture cut to a freeform");const B=S?.one("a:ln"),H=B?te(B,t):void 0,ie=ne(S?.one("a:effectLst"),t),_e=J(S?.one("a:effectLst"),t),re=ee(S,t);(re?.fill||re?.gradient)&&_(t,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const R=d!==void 0,I=!R&&(l!==void 0||f!==void 0&&!a),U=I||R?c:p;if(!U||U.external)return _(t,"missing","p:pic","a picture or a video whose file is not in the file"),[];if(!u.bytes(U.target))return _(t,"missing","p:pic",`a picture or a video whose part (${U.target}) is not in the file`),[];if(I&&(p&&(u.bytes(p.target),_(t,"approximated","p:pic/p:blipFill","a video's own poster picture: a deck's video shows a moment of itself (its `poster`, the start unless said)")),T&&Object.values(T).some(P=>P!==0)&&_(t,"cannot-hold","a:srcRect","a video's crop"),l?.attr("r:link")),R&&p){const P=u.bytes(p.target);P&&!je(P,Oe)&&_(t,"approximated","p:pic/p:blipFill","a sound's own icon: a deck draws a sound as its speaker")}const ae=s.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(s.alt);ae&&x?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const ke=s.alt===void 0||ae?{}:{alt:s.alt};return[{name:s.name,...s.id===void 0?{}:{id:s.id},...s.locked?{locked:!0}:{},...s.decorative?{decorative:!0}:{},...s.link===void 0?{}:{link:s.link},...(I||R)&&m?{playback:{trim:m}}:{},...ke,kind:R?"audio":I?"movie":"picture",...y?{placeholder:{type:y.attr("type")??"pic",idx:y.attr("idx")??0}}:{},...X(O&&o.place(O)),part:U.target,...T&&!I?{crop:T}:{},...Object.keys(n).length>0&&!I&&!R?{look:n}:{},...M===void 0||I||R?{}:{geometry:M,...A?{adjustments:A}:{}},...H?.line===void 0?{}:H,...ie?{shadow:ie}:{},..._e,...o.group===void 0?{}:{group:o.group}}]}function qe(e,i,o){e.use();const r=e.one("p:nvGraphicFramePr"),x=r?.one("p:cNvPr"),t=Y(i,e,x?.el.attrs.find(d=>d.key==="name")?.value??""),s=W(x,t);q(r?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),t)&&(s.locked=!0);const w=r?.one("p:nvPr")?.one("p:ph");w&&(_(t,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),w.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const h=Z(e.one("p:xfrm")),y=X(h&&o.place(h)),l=e.one("a:graphic")?.one("a:graphicData"),a=l?.attr("uri")??"",f={...s,...y,...o.group===void 0?{}:{group:o.group}};if(a.endsWith("/table")){const d=l?.one("a:tbl");if(d)return[{...f,kind:"table",table:Ge(d.use(),t)}]}if(a.endsWith("/chartex")){const d=l?.one("cx:chart");d?.use();const c=t.read.pkg.rel(t.part,d?.attr("r:id")),m=c?ze(c.target,t):"its chart is not in the file";return typeof m=="string"?(_(t,"cannot-hold","cx:chart",m),[]):[{...f,kind:"chart",chart:m}]}if(a.endsWith("/chart")){const d=l?.one("c:chart");d?.use();const c=t.read.pkg.rel(t.part,d?.attr("r:id")),m=c?Ae(c.target,t):"its chart is not in the file";return typeof m=="string"?(_(t,"cannot-hold","c:chart",m),[]):[{...f,kind:"chart",chart:m}]}if(a.endsWith("/diagram")){const d=Xe(e,l,t,o,s.name);return d||(_(t,"cannot-hold","dgm:relIds","SmartArt"),l?.consume(),[])}const u=l?.one("p:oleObj");if(u){u.use(),_(t,"approximated","p:oleObj",`an embedded ${u.attr("progId")??"object"} is its picture`),u.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),u.one("p:embed")?.consume(),u.one("p:link")?.consume();const d=u.one("p:pic");if(d){const[m]=ge(d,i,o);return m?[{...m,...s,...y,kind:"picture"}]:[]}const c=Ve(u.el.attrs.find(m=>m.key==="spid")?.value,t);return c?[{...f,kind:"picture",part:c}]:(_(t,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return _(t,"cannot-hold","a:graphicData",a||"a graphic frame"),l?.consume(),[]}const xe="urn:schemas-microsoft-com:vml",ye="urn:schemas-microsoft-com:office:office";function Ve(e,i){const o=i.read.pkg,r=o.relOfType(i.part,"vmlDrawing")?.target,x=r===void 0?void 0:o.bytes(r);if(r===void 0||!x||e===void 0)return;let t;try{t=K(Q(x))}catch{return}const s=(a,f,u)=>a.attrs.find(d=>d.uri===f&&d.local===u)?.value,w=a=>[a,...a.children.flatMap(w)],y=w(t).find(a=>a.uri===xe&&(s(a,"","id")===e||s(a,ye,"spid")===e))?.children.find(a=>a.uri===xe&&a.local==="imagedata"),l=o.rel(r,y&&s(y,ye,"relid"));if(!(!l||l.external||!o.bytes(l.target)))return l.target}const Ze="http://schemas.microsoft.com/office/drawing/2008/diagram",ve="http://schemas.openxmlformats.org/presentationml/2006/main";function Xe(e,i,o,r,x){const t=o.read.pkg,s=i?.one("dgm:relIds"),w=["r:dm","r:lo","r:qs","r:cs"].flatMap(g=>{const S=t.rel(o.part,s?.attr(g));return S&&!S.external?[S.target]:[]}),[h]=w,y=h===void 0?void 0:t.parts[h],l=y&&/dataModelExt[^>]*relId="([^"]+)"/u.exec(Q(y)),a=t.rels(o.part).filter(g=>g.type.endsWith("/diagramDrawing")&&!g.external),f=(l?.[1]===void 0?void 0:t.rel(o.part,l[1]))??(a.length===1?a[0]:void 0),u=f&&t.parts[f.target];if(!f||!u)return;let d;try{d=K(Q(u).replaceAll(Ze,ve))}catch(g){if(g instanceof Error)return;throw g}const c=d.children.find(g=>g.key==="p:spTree");if(!c?.children.some(g=>["p:sp","p:grpSp","p:pic","p:cxnSp"].includes(g.key)))return;for(const g of[...w,f.target])t.leave(g,"SmartArt's diagram: its drawing is read as its shapes");s?.consume(),_(o,"approximated","dgm:relIds","SmartArt is its drawn shapes in a group: its diagram's data, layout and styles are left");const m=e.el.children.find(g=>g.key==="p:xfrm"),b=(g,S)=>m?.children.find(O=>O.key===g)?.attrs.find(O=>O.local===S)?.value??"0",v=K(`<p:grpSp xmlns:p="${ve}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><p:nvGrpSpPr><p:cNvPr id="0" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="${b("a:off","x")}" y="${b("a:off","y")}"/><a:ext cx="${b("a:ext","cx")}" cy="${b("a:ext","cy")}"/><a:chOff x="0" y="0"/><a:chExt cx="${b("a:ext","cx")}" cy="${b("a:ext","cy")}"/></a:xfrm></p:grpSpPr></p:grpSp>`),[L,p]=v.children;if(!L||!p)return;const N=(g,S)=>{g&&(g.attrs=g.attrs.map(O=>O.local==="name"&&O.value===""?{...O,value:S}:O))};N(L.children[0],x);let n=0;const k=g=>{for(const S of g.children)S.key==="p:cNvPr"&&(n+=1,N(S,`${x} ${String(n)}`)),k(S)};k(c);const j=c.children.filter(g=>g.key!=="p:nvGrpSpPr"&&g.key!=="p:grpSpPr"),T={...v,children:[L,p,...j]};return we(new Ne(T,"p:CT_GroupShape",new Le),{...o,part:f.target},r,new Set)}function we(e,i,o,r){e.use();const x=e.one("p:nvGrpSpPr"),t=x?.one("p:cNvPr"),s=Y(i,e,t?.el.attrs.find(c=>c.key==="name")?.value??""),w=W(t,s),h=q(x?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),s);x?.one("p:nvPr");const y=e.one("p:grpSpPr");y?.ignore(["bwMode"],"a shape's black and white printing mode");const l=ee(y,s),a=y?.one("a:effectLst");a&&(_(s,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),a.consume());const f=w.name.replaceAll("/","-");let u=f;for(let c=2;r.has(u);c++)u=`${f} ${String(c)}`;return r.add(u),shapesOf(e,s,{...l&&!l.group?{fill:l}:o.fill?{fill:o.fill}:{},group:o.group===void 0?u:`${o.group}/${u}`,place:Ie(y?.one("a:xfrm"),o)}).map(c=>({...c,...h?{locked:!0}:{},...w.decorative?{decorative:!0}:{},...w.link!==void 0&&c.link===void 0?{link:w.link}:{}}))}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{tableStyleOf as z}from"@allyhub/slides-core";import{colorAt as j,fillOf as v,lineOf as F,say as C,withAlpha as D}from"./common.js";import{bodyOf as G}from"./text.js";function q(l,t,o){const n={borders:{},font:{}};if(!l)return n;const s=l.one("a:tcTxStyle");if(s){const u=s.attr("b");u==="on"?n.font.bold=!0:u==="off"&&(n.font.bold=!1);const a=s.attr("i");a==="on"?n.font.italic=!0:a==="off"&&(n.font.italic=!1);const b=s.one("a:fontRef"),p=j(b??s,t,"a:tcTxStyle");b?.attr("idx"),p&&(n.font.color=p.color),s.one("a:font")?.skip("a table style's own fonts")}const i=l.one("a:tcStyle");if(i){const u=i.one("a:fill"),a=v(u,t);a?.fill!==void 0&&(n.fill=a.fill);const b=i.one("a:fillRef");if(b){const f=b.attr("idx")??0,e=j(b,t,"a:fillRef");n.fill=f===0?null:e?.color??null}i.one("a:cell3D")?.skip("a table style's 3-D cells");const p=i.one("a:tcBdr"),d=f=>{const e=p?.one(f),m=e?.one("a:ln");if(m){const c=F(m,t);return c.line===null?null:c.line===void 0?void 0:{color:c.line,width:c.line_width??12700}}const w=e?.one("a:lnRef");if(w){const c=j(w,t,"a:lnRef"),g=w.attr("idx")??0,O=t.read.matrix.line[g-1]?.el.attrs.find(k=>k.key==="w")?.value;return g===0||!c?null:{color:c.color,width:Number(O??12700)}}},r=(f,e)=>{e!==void 0&&(n.borders[f]=e)};r("left",o.left?d("a:insideV"):d("a:left")),r("right",o.right?d("a:insideV"):d("a:right")),r("top",o.top?d("a:insideH"):d("a:top")),r("bottom",o.bottom?d("a:insideH"):d("a:bottom"));for(const f of["a:tl2br","a:tr2bl"]){const e=p?.one(f);e&&(C(t,"cannot-hold",f,"a cell's diagonal line"),e.consume())}}return n}function E(l,t,o,n,s,i,u){const a={borders:{},font:{}};if(!l)return a;const b={top:o>0,bottom:o<s-1,left:n>0,right:n<i-1},p=t.firstRow?1:0,d=t.firstCol?1:0,r=[l.one("a:wholeTbl")];t.bandRow&&o>=p&&!(t.lastRow&&o===s-1)&&r.push(l.one((o-p)%2===0?"a:band1H":"a:band2H")),t.bandCol&&n>=d&&!(t.lastCol&&n===i-1)&&r.push(l.one((n-d)%2===0?"a:band1V":"a:band2V")),t.lastCol&&n===i-1&&r.push(l.one("a:lastCol")),t.firstCol&&n===0&&r.push(l.one("a:firstCol")),t.lastRow&&o===s-1&&r.push(l.one("a:lastRow")),t.firstRow&&o===0&&r.push(l.one("a:firstRow"));const f=(e,m)=>{e&&r.push(l.one(m))};f(t.firstRow&&t.firstCol&&o===0&&n===0,"a:nwCell"),f(t.firstRow&&t.lastCol&&o===0&&n===i-1,"a:neCell"),f(t.lastRow&&t.firstCol&&o===s-1&&n===0,"a:swCell"),f(t.lastRow&&t.lastCol&&o===s-1&&n===i-1,"a:seCell");for(const e of r){const m=q(e,u,b);m.fill!==void 0&&(a.fill=m.fill),Object.assign(a.borders,m.borders),Object.assign(a.font,m.font)}return a}function J(l,t){const o=t.read.pkg,n=o.relOfType("ppt/presentation.xml","tableStyles");return(n?o.open(n.target):void 0)?.all("a:tblStyle").find(i=>i.attr("styleId")===l)}function L(l,t,o){if(l?.fill!==void 0)return l.fill===null||l.fill_transparency===void 0?l.fill:D(l.fill,1-l.fill_transparency);const n=l?.gradient?.stops[0];if(n)return C(o,"approximated",`${t}/a:gradFill`,"a cell's gradient is drawn in its first colour"),n.transparency===void 0?n.color:D(n.color,1-n.transparency)}export function tableOf(l,t){const o=l.one("a:tblPr"),n={firstRow:o?.attrOr("firstRow")??!1,firstCol:o?.attrOr("firstCol")??!1,lastRow:o?.attrOr("lastRow")??!1,lastCol:o?.attrOr("lastCol")??!1,bandRow:o?.attrOr("bandRow")??!1,bandCol:o?.attrOr("bandCol")??!1},s=L(v(o,t),"a:tblPr",t);s&&C(t,"approximated","a:tblPr/a:solidFill","a table's own fill is each cell's");const i=o?.one("a:tableStyleId")?.text().trim(),u=z(i),a=i&&!u?J(i,t):void 0;i&&!a&&!u&&C(t,"missing","a:tableStyleId",`table style ${i} is not defined in the file: its look is not known here`),a&&(C(t,"approximated","a:tableStyleId",`table style ${a.attr("styleName")??i??""} is each cell's own look`),a.one("a:tblBg")?.skip("a table style's background behind its cells"),a.attr("styleName"));const b=(l.one("a:tblGrid")?.all("a:gridCol")??[]).map(r=>r.attr("w")??0),p=l.all("a:tr"),d=p.map((r,f)=>({height:r.attr("h")??0,cells:r.all("a:tc").map((e,m)=>{const w=e.one("a:tcPr"),c=E(a,n,f,m,p.length,b.length,t),g=G(e.one("a:txBody"),{},t);if(Object.keys(c.font).length>0)for(const R of g.paragraphs)for(const h of R.runs){const _=h.font??{};h.font={...c.font,..._}}const O=L(v(w,t),"a:tcPr",t),k=O!==void 0?O:c.fill??s,S={};for(const[R,h]of[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]]){const _=w?.one(h),y=_?F(_,t):void 0;(y?.line_compound!==void 0||y?.line_dash!==void 0||y?.line_cap!==void 0)&&C(t,"approximated",`${h}@cmpd`,"a cell's edge is one solid line");const A=y?.line===null?null:y?.line!==void 0?{color:y.line,width:y.line_width??12700}:c.borders[R];A&&(S[R]=A)}for(const R of["a:lnTlToBr","a:lnBlToTr"]){const h=w?.one(R);h&&F(h,t).line&&C(t,"cannot-hold",R,"a cell's diagonal line")}const x=w?.attr("anchor"),M=R=>w?.attr(R),[H,N,V,$]=["marL","marR","marT","marB"].map(M),T=e.attr("gridSpan"),B=e.attr("rowSpan"),I=e.attrOr("hMerge"),P=e.attrOr("vMerge");return{text:{...g,...H===void 0?{}:{margin_left:H},...N===void 0?{}:{margin_right:N},...V===void 0?{}:{margin_top:V},...$===void 0?{}:{margin_bottom:$},...x==="t"||x==="ctr"||x==="b"?{vertical_anchor:x}:{}},...k===void 0?{}:{fill:k},...Object.keys(S).length>0?{borders:S}:{},...T===void 0||T<2||I||P?{}:{span_width:T},...B===void 0||B<2||I||P?{}:{span_height:B},...I||P?{spanned:!0}:{}}})}));return{columns:b,rows:d,...u?{style:u.id}:{},...n.firstRow?{first_row:!0}:{},...n.firstCol?{first_col:!0}:{},...n.lastRow?{last_row:!0}:{},...n.lastCol?{last_col:!0}:{},...n.bandRow?{horz_banding:!0}:{},...n.bandCol?{vert_banding:!0}:{}}}
2
+ import{tableStyleOf as z}from"@allyhub/slides-core";import{colorAt as j,fillOf as v,lineOf as F,say as C,withAlpha as D}from"./common.js";import{bodyOf as G}from"./text.js";function q(l,t,o){const n={borders:{},font:{}};if(!l)return n;const s=l.one("a:tcTxStyle");if(s){const u=s.attr("b");u==="on"?n.font.bold=!0:u==="off"&&(n.font.bold=!1);const a=s.attr("i");a==="on"?n.font.italic=!0:a==="off"&&(n.font.italic=!1);const b=s.one("a:fontRef"),p=j(b??s,t,"a:tcTxStyle");b?.attr("idx"),p&&(n.font.color=p.color),s.one("a:font")?.skip("a table style's own fonts")}const i=l.one("a:tcStyle");if(i){const u=i.one("a:fill"),a=v(u,t);a?.fill!==void 0&&(n.fill=a.fill);const b=i.one("a:fillRef");if(b){const f=b.attr("idx")??0,e=j(b,t,"a:fillRef");n.fill=f===0?null:e?.color??null}i.one("a:cell3D")?.skip("a table style's 3-D cells");const p=i.one("a:tcBdr"),d=f=>{const e=p?.one(f),m=e?.one("a:ln");if(m){const c=F(m,t);return c.line===null?null:c.line===void 0?void 0:{color:c.line,width:c.line_width??12700}}const w=e?.one("a:lnRef");if(w){const c=j(w,t,"a:lnRef"),g=w.attr("idx")??0,O=t.read.matrix.line[g-1]?.el.attrs.find(k=>k.key==="w")?.value;return g===0||!c?null:{color:c.color,width:Number(O??12700)}}},r=(f,e)=>{e!==void 0&&(n.borders[f]=e)};r("left",o.left?d("a:insideV"):d("a:left")),r("right",o.right?d("a:insideV"):d("a:right")),r("top",o.top?d("a:insideH"):d("a:top")),r("bottom",o.bottom?d("a:insideH"):d("a:bottom"));for(const f of["a:tl2br","a:tr2bl"]){const e=p?.one(f);e&&(C(t,"cannot-hold",f,"a cell's diagonal line"),e.consume())}}return n}function E(l,t,o,n,s,i,u){const a={borders:{},font:{}};if(!l)return a;const b={top:o>0,bottom:o<s-1,left:n>0,right:n<i-1},p=t.firstRow?1:0,d=t.firstCol?1:0,r=[l.one("a:wholeTbl")];t.bandRow&&o>=p&&!(t.lastRow&&o===s-1)&&r.push(l.one((o-p)%2===0?"a:band1H":"a:band2H")),t.bandCol&&n>=d&&!(t.lastCol&&n===i-1)&&r.push(l.one((n-d)%2===0?"a:band1V":"a:band2V")),t.lastCol&&n===i-1&&r.push(l.one("a:lastCol")),t.firstCol&&n===0&&r.push(l.one("a:firstCol")),t.lastRow&&o===s-1&&r.push(l.one("a:lastRow")),t.firstRow&&o===0&&r.push(l.one("a:firstRow"));const f=(e,m)=>{e&&r.push(l.one(m))};f(t.firstRow&&t.firstCol&&o===0&&n===0,"a:nwCell"),f(t.firstRow&&t.lastCol&&o===0&&n===i-1,"a:neCell"),f(t.lastRow&&t.firstCol&&o===s-1&&n===0,"a:swCell"),f(t.lastRow&&t.lastCol&&o===s-1&&n===i-1,"a:seCell");for(const e of r){const m=q(e,u,b);m.fill!==void 0&&(a.fill=m.fill),Object.assign(a.borders,m.borders),Object.assign(a.font,m.font)}return a}function J(l,t){const o=t.read.pkg,n=o.relOfType("ppt/presentation.xml","tableStyles");return(n?o.open(n.target):void 0)?.all("a:tblStyle").find(i=>i.attr("styleId")===l)}function L(l,t,o){if(l?.fill!==void 0)return l.fill===null||l.fill_transparency===void 0?l.fill:D(l.fill,1-l.fill_transparency);const n=l?.gradient?.stops[0];if(n)return C(o,"approximated",`${t}/a:gradFill`,"a cell's gradient is drawn in its first colour"),n.transparency===void 0?n.color:D(n.color,1-n.transparency)}export function tableOf(l,t){const o=l.one("a:tblPr"),n={firstRow:o?.attrOr("firstRow")??!1,firstCol:o?.attrOr("firstCol")??!1,lastRow:o?.attrOr("lastRow")??!1,lastCol:o?.attrOr("lastCol")??!1,bandRow:o?.attrOr("bandRow")??!1,bandCol:o?.attrOr("bandCol")??!1},s=L(v(o,t),"a:tblPr",t);s&&C(t,"approximated","a:tblPr/a:solidFill","a table's own fill is each cell's");const i=o?.one("a:tableStyleId")?.text().trim(),u=z(i),a=i&&!u?J(i,t):void 0;i&&!a&&!u&&C(t,"missing","a:tableStyleId",`table style ${i} is not defined in the file: its look is not known here`),a&&(C(t,"approximated","a:tableStyleId",`table style ${a.attr("styleName")??i??""} is each cell's own look`),a.one("a:tblBg")?.skip("a table style's background behind its cells"),a.attr("styleName"));const b=(l.one("a:tblGrid")?.all("a:gridCol")??[]).map(r=>r.attr("w")??0),p=l.all("a:tr"),d=p.map((r,f)=>({height:r.attr("h")??0,cells:r.all("a:tc").map((e,m)=>{const w=e.one("a:tcPr"),c=E(a,n,f,m,p.length,b.length,t),g=G(e.one("a:txBody"),{},t);if(Object.keys(c.font).length>0)for(const R of g.paragraphs)for(const h of R.runs){const _=h.font??{};h.font={...c.font,..._}}const O=L(v(w,t),"a:tcPr",t),k=O!==void 0?O:c.fill??s,S={};for(const[R,h]of[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]]){const _=w?.one(h),y=_?F(_,t):void 0;(y?.line_compound!==void 0||y?.line_dash!==void 0||y?.line_cap!==void 0)&&C(t,"approximated",`${h}@cmpd`,"a cell's edge is one solid line");const A=y?.line===null?null:y?.line!==void 0?{color:y.line,width:y.line_width??12700}:c.borders[R];A!==void 0&&(S[R]=A)}for(const R of["a:lnTlToBr","a:lnBlToTr"]){const h=w?.one(R);h&&F(h,t).line&&C(t,"cannot-hold",R,"a cell's diagonal line")}const x=w?.attr("anchor"),M=R=>w?.attr(R),[H,N,V,$]=["marL","marR","marT","marB"].map(M),T=e.attr("gridSpan"),B=e.attr("rowSpan"),I=e.attrOr("hMerge"),P=e.attrOr("vMerge");return{text:{...g,...H===void 0?{}:{margin_left:H},...N===void 0?{}:{margin_right:N},...V===void 0?{}:{margin_top:V},...$===void 0?{}:{margin_bottom:$},...x==="t"||x==="ctr"||x==="b"?{vertical_anchor:x}:{}},...k===void 0?{}:{fill:k},...Object.keys(S).length>0?{borders:S}:{},...T===void 0||T<2||I||P?{}:{span_width:T},...B===void 0||B<2||I||P?{}:{span_height:B},...I||P?{spanned:!0}:{}}})}));return{columns:b,rows:d,...u?{style:u.id}:{},...n.firstRow?{first_row:!0}:{},...n.firstCol?{first_col:!0}:{},...n.lastRow?{last_row:!0}:{},...n.lastCol?{last_col:!0}:{},...n.bandRow?{horz_banding:!0}:{},...n.bandCol?{vert_banding:!0}:{}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{NUMBERINGS as A}from"@allyhub/formats";import{colorIn as S,parseValue as z}from"@allyhub/ooxml";import{NUMBERINGS_DRAWN_AS_ARABIC as F,TEXT_INSETS as x}from"@allyhub/slides-core";import{colorAt as y,linkOf as L,say as p,withAlpha as v}from"./common.js";export function fontOf(t,e){if(!t)return;const n={},f=t.attr("sz");f!==void 0&&(n.size=f*127);const i=t.attr("b");i!==void 0&&(n.bold=i);const a=t.attr("i");a!==void 0&&(n.italic=a);const c=t.attr("u");c!==void 0&&(n.underline=c==="none"?!1:c==="sng"?!0:c);const s=t.attr("strike");s!==void 0&&(n.strike=s==="noStrike"?!1:s==="sngStrike"?!0:s);const r=t.attr("baseline");r!==void 0&&r!==0&&(n.baseline=r/1e5);const u=t.attr("spc");u!==void 0&&(n.spacing=u*127);const h=t.attr("cap");h!==void 0&&(n.caps=h),t.ignore(["lang","altLang"],"a run's language: a deck's is its script's"),t.ignore(["noProof","dirty","err","smtClean","smtId","bmk"],"spell-check and editing state"),t.ignore(["kern"],"kerning from a size: the stage kerns as the browser does (PowerPoint's own is not measured here)");const d=t.choice("a:solidFill","a:noFill","a:gradFill");if(d?.key==="a:solidFill"){const l=y(d,e,"a:rPr/a:solidFill");l&&(n.color=v(l.color,l.alpha))}else d&&(p(e,"cannot-hold",`a:rPr/${d.key}`,d.key==="a:noFill"?"text with no fill":"text filled with a gradient"),d.consume());const g=S(t.one("a:highlight"),e.colors);g&&(n.highlight=g.rgb);const b=t.one("a:latin");if(b){b.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const l=b.attr("typeface");l&&(n.name=l)}for(const l of["a:ea","a:cs","a:sym"]){const _=t.one(l);if(!_)continue;_.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const P=_.attr("typeface");P&&!P.startsWith("+")&&!e.read.faces.has(P)&&p(e,"cannot-hold",l,`a run's own ${l==="a:ea"?"East Asian":l==="a:cs"?"complex script":"symbol"} face (${P})`)}const k=t.one("a:hlinkClick");if(k){const l=L(k,e,"a:hlinkClick");l!==void 0&&(n.link=l)}const o=t.one("a:hlinkMouseOver");o&&(p(e,"cannot-hold","a:hlinkMouseOver","a link followed when the pointer is over words"),o.consume()),t.one("a:uLnTx"),t.one("a:uFillTx");const m=t.one("a:effectLst");return m&&m.el.children.length>0&&(p(e,"cannot-hold","a:rPr/a:effectLst","text effects (shadow, glow)"),m.consume()),Object.keys(n).length>0?n:void 0}function w(t){const e=t?.one("a:spcPct")?.attr("val");if(e!==void 0)return{lines:e/1e5};const n=t?.one("a:spcPts")?.attr("val");if(n!==void 0)return{fixed:n*127}}export function formatOf(t,e){if(!t)return{};const n={},f=t.attr("algn");f==="l"||f==="ctr"||f==="r"||f==="just"?n.alignment=f:f!==void 0&&(n.alignment="just",p(e,"approximated","a:pPr@algn",`${f} is justified`));const i=t.attr("marL");i!==void 0&&(n.margin_left=i);const a=t.attr("indent");a!==void 0&&(n.indent=a);const c=t.attr("marR");c!==void 0&&c!==0&&p(e,"cannot-hold","a:pPr@marR","a paragraph's right margin");const s=w(t.one("a:lnSpc"));s&&(n.line_spacing=s);for(const[o,m]of[["a:spcBef","space_before"],["a:spcAft","space_after"]]){const l=w(t.one(o));l&&(n[m]="fixed"in l?l.fixed:l.lines===0?0:{lines:l.lines})}t.has("a:buNone")&&(n.bullet=null);const r=t.one("a:buChar")?.attr("char");r!==void 0&&(n.bullet=r);const u=t.one("a:buFont");if(u){u.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const o=u.attr("typeface");o!==void 0&&(n.bullet_font=o)}const h=t.one("a:buAutoNum");if(h){const o=h.attr("type")??"arabicPeriod";A.includes(o)?(n.numbered=o,F.has(n.numbered)&&p(e,"approximated","a:buAutoNum@type",`${o} is drawn as 1., 2., 3. (and written as it is)`)):(n.numbered="arabicPeriod",p(e,"approximated","a:buAutoNum@type",`${o} is counted as arabicPeriod`));const m=h.attr("startAt");m!==void 0&&(n.start_at=m)}t.has("a:buClrTx")&&(t.one("a:buClrTx"),n.bullet_color=null);const d=t.one("a:buClr");if(d){const o=y(d,e,"a:buClr");o&&(n.bullet_color=v(o.color,o.alpha))}t.has("a:buSzTx")&&(t.one("a:buSzTx"),n.bullet_size=null);const g=t.one("a:buSzPct")?.attr("val");if(g!==void 0){const o=Number(z("pct",g));Number.isFinite(o)&&o>0&&(n.bullet_size=o/1e5)}t.one("a:buFontTx");for(const o of["a:buSzPts","a:buBlip"]){const m=t.one(o);m&&(p(e,"cannot-hold",o,o==="a:buBlip"?"a picture as a bullet":"a bullet's size in points"),m.consume())}t.ignore(["eaLnBrk","latinLnBrk","hangingPunct","fontAlgn"],"line-breaking and alignment rules for East Asian text: the stage breaks lines as the browser does"),t.ignore(["defTabSz"],"a default tab stop");const b=t.one("a:tabLst");b&&b.el.children.length>0&&(p(e,"cannot-hold","a:tabLst","tab stops"),b.consume()),t.attr("rtl")===!0&&p(e,"cannot-hold","a:pPr@rtl","a right-to-left paragraph");const k=fontOf(t.one("a:defRPr"),e);return k&&(n.font=k),n}const C=["a:lvl1pPr","a:lvl2pPr","a:lvl3pPr","a:lvl4pPr","a:lvl5pPr","a:lvl6pPr","a:lvl7pPr","a:lvl8pPr","a:lvl9pPr"];export function levelsOf(t,e){const n=formatOf(t?.one("a:defPPr"),e);return C.map(f=>{const i=t?.one(f);i?.attr("lvl");const a=formatOf(i,e);return Object.keys(n).length===0?a:{...n,...a,...n.font||a.font?{font:{...n.font,...a.font}}:{}}})}export function paragraphsOf(t,e){return(t?.all("a:p")??[]).map(n=>{const f=n.one("a:pPr"),i=[];let a;for(const s of n.kids())if(s.key==="a:r"){const r=s.use(),u=fontOf(r.one("a:rPr"),e);i.push({text:r.one("a:t")?.text()??"",...u?{font:u}:{}})}else if(s.key==="a:br")s.use(),s.one("a:rPr")?.skip("a line break's font"),i.push({text:"\v"});else if(s.key==="a:fld"){const r=s.use();r.attr("id");const u=r.attr("type")??"",h=fontOf(r.one("a:rPr"),e),d=r.one("a:pPr");d&&(d.el.attrs.length>0||d.el.children.length>0)&&p(e,"cannot-hold","a:fld/a:pPr","a field's own paragraph properties");const g=r.one("a:t")?.text()??"";u!=="slidenum"&&p(e,"cannot-hold","a:fld@type",`${u||"a field"}: kept as the text it showed`),i.push({text:g,...h?{font:h}:{},...u==="slidenum"?{field:"slidenum"}:{}})}else s.key==="a:endParaRPr"&&(i.length===0?a=fontOf(s.use(),e):s.skip("the font of a paragraph's end"));const c=formatOf(f,e);return{...c,...a?{font:{...c.font,...a}}:{},runs:i,level:f?.attr("lvl")??0}})}export const BODY_DEFAULTS={vertical_anchor:"t",word_wrap:!0,auto_size:"none",margin_left:x.left,margin_top:x.top,margin_right:x.right,margin_bottom:x.bottom};export function bodyOf(t,e,n,f=!1){const i=t?.one("a:bodyPr");if(f)for(const h of t?.all("a:p")??[])h.skip("a master's or a layout's placeholder's prompt text");const a={...e,levels:levelsOf(t?.one("a:lstStyle"),n),paragraphs:f?[]:paragraphsOf(t,n)},c=i?.attr("anchor");c==="t"||c==="ctr"||c==="b"?a.vertical_anchor=c:c!==void 0&&(a.vertical_anchor="t",p(n,"approximated","a:bodyPr@anchor",`${c} is at the top`));const s=i?.attr("wrap");s!==void 0&&(a.word_wrap=s!=="none");const r=i?.choice("a:normAutofit","a:spAutoFit","a:noAutofit");r?.key==="a:normAutofit"?(a.auto_size="text",r.ignore(["fontScale","lnSpcReduction"],"the share PowerPoint last shrank text to: the stage fits it again")):r?.key==="a:spAutoFit"?a.auto_size="shape":r&&(a.auto_size="none");for(const[h,d]of[["lIns","margin_left"],["tIns","margin_top"],["rIns","margin_right"],["bIns","margin_bottom"]]){const g=i?.attr(h);g!==void 0&&(a[d]=g)}i?.ignore(["forceAA","compatLnSpc"],"rendering hints of a text body");const u=i?.attr("vert");return u!==void 0&&(a.orientation=u),i?.attr("rtlCol")===!0&&p(n,"cannot-hold","a:bodyPr@rtlCol","columns right to left"),a}
2
+ import{NUMBERINGS as A}from"@allyhub/formats";import{colorIn as S,parseValue as z}from"@allyhub/ooxml";import{NUMBERINGS_DRAWN_AS_ARABIC as F,TEXT_INSETS as x}from"@allyhub/slides-core";import{colorAt as y,linkOf as C,say as p,withAlpha as v}from"./common.js";export function fontOf(t,e){if(!t)return;const n={},f=t.attr("sz");f!==void 0&&(n.size=f*127);const o=t.attr("b");o!==void 0&&(n.bold=o);const a=t.attr("i");a!==void 0&&(n.italic=a);const u=t.attr("u");u!==void 0&&(n.underline=u==="none"?!1:u==="sng"?!0:u);const i=t.attr("strike");i!==void 0&&(n.strike=i==="noStrike"?!1:i==="sngStrike"?!0:i);const l=t.attr("baseline");l!==void 0&&l!==0&&(n.baseline=l/1e5);const d=t.attr("spc");d!==void 0&&(n.spacing=d*127);const h=t.attr("cap");h!==void 0&&(n.caps=h),t.ignore(["lang","altLang"],"a run's language: a deck's is its script's"),t.ignore(["noProof","dirty","err","smtClean","smtId","bmk"],"spell-check and editing state"),t.ignore(["kern"],"kerning from a size: the stage kerns as the browser does (PowerPoint's own is not measured here)");const r=t.choice("a:solidFill","a:noFill","a:gradFill");if(r?.key==="a:solidFill"){const c=y(r,e,"a:rPr/a:solidFill");c&&(n.color=v(c.color,c.alpha))}else r&&(p(e,"cannot-hold",`a:rPr/${r.key}`,r.key==="a:noFill"?"text with no fill":"text filled with a gradient"),r.consume());const b=S(t.one("a:highlight"),e.colors);b&&(n.highlight=b.rgb);const g=t.one("a:latin");if(g){g.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const c=g.attr("typeface");c&&(n.name=c)}for(const c of["a:ea","a:cs","a:sym"]){const _=t.one(c);if(!_)continue;_.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const P=_.attr("typeface");P&&!P.startsWith("+")&&!e.read.faces.has(P)&&p(e,"cannot-hold",c,`a run's own ${c==="a:ea"?"East Asian":c==="a:cs"?"complex script":"symbol"} face (${P})`)}const k=t.one("a:hlinkClick");if(k){const c=C(k,e,"a:hlinkClick");c!==void 0&&(n.link=c)}const s=t.one("a:hlinkMouseOver");s&&(p(e,"cannot-hold","a:hlinkMouseOver","a link followed when the pointer is over words"),s.consume()),t.one("a:uLnTx"),t.one("a:uFillTx");const m=t.one("a:effectLst");return m&&m.el.children.length>0&&(p(e,"cannot-hold","a:rPr/a:effectLst","text effects (shadow, glow)"),m.consume()),Object.keys(n).length>0?n:void 0}function w(t){const e=t?.one("a:spcPct")?.attr("val");if(e!==void 0)return{lines:e/1e5};const n=t?.one("a:spcPts")?.attr("val");if(n!==void 0)return{fixed:n*127}}export function formatOf(t,e){if(!t)return{};const n={},f=t.attr("algn");f==="l"||f==="ctr"||f==="r"||f==="just"?n.alignment=f:f!==void 0&&(n.alignment="just",p(e,"approximated","a:pPr@algn",`${f} is justified`));const o=t.attr("marL");o!==void 0&&(n.margin_left=o);const a=t.attr("indent");a!==void 0&&(n.indent=a);const u=t.attr("marR");u!==void 0&&u!==0&&p(e,"cannot-hold","a:pPr@marR","a paragraph's right margin");const i=w(t.one("a:lnSpc"));i&&("lines"in i?i.lines:i.fixed)<=0?p(e,"cannot-hold","a:lnSpc","a line spacing of nothing: a deck's lines are spaced by their level's"):i&&(n.line_spacing=i);for(const[s,m]of[["a:spcBef","space_before"],["a:spcAft","space_after"]]){const c=w(t.one(s));c&&(n[m]="fixed"in c?c.fixed:c.lines===0?0:{lines:c.lines})}t.has("a:buNone")&&(n.bullet=null);const l=t.one("a:buChar")?.attr("char");l!==void 0&&(n.bullet=l);const d=t.one("a:buFont");if(d){d.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const s=d.attr("typeface");s!==void 0&&(n.bullet_font=s)}const h=t.one("a:buAutoNum");if(h){const s=h.attr("type")??"arabicPeriod";A.includes(s)?(n.numbered=s,F.has(n.numbered)&&p(e,"approximated","a:buAutoNum@type",`${s} is drawn as 1., 2., 3. (and written as it is)`)):(n.numbered="arabicPeriod",p(e,"approximated","a:buAutoNum@type",`${s} is counted as arabicPeriod`));const m=h.attr("startAt");m!==void 0&&(n.start_at=m)}t.has("a:buClrTx")&&(t.one("a:buClrTx"),n.bullet_color=null);const r=t.one("a:buClr");if(r){const s=y(r,e,"a:buClr");s&&(n.bullet_color=v(s.color,s.alpha))}t.has("a:buSzTx")&&(t.one("a:buSzTx"),n.bullet_size=null);const b=t.one("a:buSzPct")?.attr("val");if(b!==void 0){const s=Number(z("pct",b));Number.isFinite(s)&&s>0&&(n.bullet_size=s/1e5)}t.one("a:buFontTx");for(const s of["a:buSzPts","a:buBlip"]){const m=t.one(s);m&&(p(e,"cannot-hold",s,s==="a:buBlip"?"a picture as a bullet":"a bullet's size in points"),m.consume())}t.ignore(["eaLnBrk","latinLnBrk","hangingPunct","fontAlgn"],"line-breaking and alignment rules for East Asian text: the stage breaks lines as the browser does"),t.ignore(["defTabSz"],"a default tab stop");const g=t.one("a:tabLst");g&&g.el.children.length>0&&(p(e,"cannot-hold","a:tabLst","tab stops"),g.consume()),t.attr("rtl")===!0&&p(e,"cannot-hold","a:pPr@rtl","a right-to-left paragraph");const k=fontOf(t.one("a:defRPr"),e);return k&&(n.font=k),n}const L=["a:lvl1pPr","a:lvl2pPr","a:lvl3pPr","a:lvl4pPr","a:lvl5pPr","a:lvl6pPr","a:lvl7pPr","a:lvl8pPr","a:lvl9pPr"];export function levelsOf(t,e){const n=formatOf(t?.one("a:defPPr"),e);return L.map(f=>{const o=t?.one(f);o?.attr("lvl");const a=formatOf(o,e);return Object.keys(n).length===0?a:{...n,...a,...n.font||a.font?{font:{...n.font,...a.font}}:{}}})}export function paragraphsOf(t,e){return(t?.all("a:p")??[]).map(n=>{const f=n.one("a:pPr"),o=[];let a;for(const i of n.kids())if(i.key==="a:r"){const l=i.use(),d=fontOf(l.one("a:rPr"),e);o.push({text:l.one("a:t")?.text()??"",...d?{font:d}:{}})}else if(i.key==="a:br")i.use(),i.one("a:rPr")?.skip("a line break's font"),o.push({text:"\v"});else if(i.key==="a:fld"){const l=i.use();l.attr("id");const d=l.attr("type")??"",h=fontOf(l.one("a:rPr"),e),r=l.one("a:pPr");r&&(r.el.attrs.length>0||r.el.children.length>0)&&p(e,"cannot-hold","a:fld/a:pPr","a field's own paragraph properties");const b=l.one("a:t")?.text()??"";d!=="slidenum"&&p(e,"cannot-hold","a:fld@type",`${d||"a field"}: kept as the text it showed`),o.push({text:b,...h?{font:h}:{},...d==="slidenum"?{field:"slidenum"}:{}})}else i.key==="a:endParaRPr"&&(o.length===0?a=fontOf(i.use(),e):i.skip("the font of a paragraph's end"));const u=formatOf(f,e);return{...u,...a?{font:{...u.font,...a}}:{},runs:o,level:f?.attr("lvl")??0}})}export const BODY_DEFAULTS={vertical_anchor:"t",word_wrap:!0,auto_size:"none",margin_left:x.left,margin_top:x.top,margin_right:x.right,margin_bottom:x.bottom};export function bodyOf(t,e,n,f=!1){const o=t?.one("a:bodyPr");if(f)for(const r of t?.all("a:p")??[])r.skip("a master's or a layout's placeholder's prompt text");const a={...e,levels:levelsOf(t?.one("a:lstStyle"),n),paragraphs:f?[]:paragraphsOf(t,n)},u=o?.attr("anchor");u==="t"||u==="ctr"||u==="b"?a.vertical_anchor=u:u!==void 0&&(a.vertical_anchor="t",p(n,"approximated","a:bodyPr@anchor",`${u} is at the top`));const i=o?.attr("wrap");i!==void 0&&(a.word_wrap=i!=="none");const l=o?.choice("a:normAutofit","a:spAutoFit","a:noAutofit");l?.key==="a:normAutofit"?(a.auto_size="text",l.ignore(["fontScale","lnSpcReduction"],"the share PowerPoint last shrank text to: the stage fits it again")):l?.key==="a:spAutoFit"?a.auto_size="shape":l&&(a.auto_size="none");for(const[r,b]of[["lIns","margin_left"],["tIns","margin_top"],["rIns","margin_right"],["bIns","margin_bottom"]]){const g=o?.attr(r);g!==void 0&&(a[b]=g)}const d=o?.attr("numCol");if(d!==void 0&&d>1){a.columns=Math.min(16,d);const r=o?.attr("spcCol");r!==void 0&&r>0&&(a.column_spacing=r)}else o?.ignore(["numCol","spcCol"],"one column");o?.ignore(["forceAA","compatLnSpc"],"rendering hints of a text body");const h=o?.attr("vert");return h!==void 0&&(a.orientation=h),o?.attr("rtlCol")===!0&&p(n,"cannot-hold","a:bodyPr@rtlCol","columns right to left"),a}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{as as v}from"@allyhub/ooxml";import{EMU_PER_PT as Y,PLAYBACK_DEFAULTS as G,pathText as Z,effectTakes as H,TEXT_DELAY as P}from"@allyhub/slides-core";import{FLOAT_DOWN as D,PRESETS as K,SUBTYPED as B,SUBTYPES as V,TRANSITION_SIDES as X}from"../timing.js";import{say as l}from"./common.js";const J={...Object.fromEntries(Object.entries(K).map(([n,c])=>[`${c.kind}:${String(c.id)}`,n])),[`entr:${String(D)}`]:"float-in",[`exit:${String(D)}`]:"float-out"},Q=new Map(Object.entries(V).map(([n,c])=>[c,n])),tt=new Map(Object.entries(X).map(([n,c])=>[c,n])),et={fast:.5,med:.75,slow:1};export function transitionOf(n,c){if(!n)return{};const u=n.attr("advTm"),i=u===void 0?{}:{advance:u/1e3},e=n.attr("p14:dur"),a=et[n.attrOr("spd")],o=e===void 0?a:e/1e3;n.attrOr("advClick")||l(c,"cannot-hold","p:transition@advClick","a slide that a click does not advance");const t=n.one("p:sndAc");t&&(l(c,"cannot-hold","p:sndAc","a transition's sound"),t.consume());const d=n.kids().find(f=>f.key!=="p:sndAc"&&f.key!=="p:extLst");if(!d)return i;d.use();const r=nt(d,c);return r?{transition:{type:r.type,...r.direction===void 0?{}:{direction:r.direction},...r.black?{through_black:!0}:{},duration:r.type==="cut"&&e===void 0?0:o},...i}:(l(c,"cannot-hold",d.key,"a transition a deck has none of"),d.consume(),i)}function nt(n,c){const u=e=>tt.get(e)??"from-right",i=()=>v(n).attr("thruBlk")===!0;switch(n.key){case"p:fade":return{type:"fade",black:i()};case"p:cut":return{type:"cut",black:i()};case"p:push":case"p:wipe":{const e=v(n).attrOr("dir");return{type:n.key==="p:push"?"push":"wipe",direction:u(e),black:!1}}case"p:cover":case"p:pull":{const e=v(n).attrOr("dir");return{type:n.key==="p:cover"?"cover":"uncover",direction:u(e),black:!1}}case"p:split":{const e=v(n),a=e.attrOr("orient"),o=e.attrOr("dir");return{type:"split",direction:`${a==="vert"?"vertical":"horizontal"}-${o==="in"?"in":"out"}`,black:!1}}case"p14:reveal":{const e=v(n);return{type:"reveal",direction:e.attrOr("dir")==="l"?"from-left":"from-right",black:e.attrOr("thruBlk")}}case"p14:warp":return{type:"zoom",direction:v(n).attrOr("dir")==="in"?"in":"out",black:!1};case"p:newsflash":return{type:"zoom",direction:"rotate",black:!1};case"p159:morph":{const e=v(n).attrOr("option");return e!=="byObject"&&l(c,"approximated","p159:morph@option",`a morph ${e==="byWord"?"by word":"by character"} moves its shapes as objects`),{type:"morph",black:!1}}default:return}}function ot(n,c){const u=n.match(/[A-Za-z]|-?[\d.]+(?:[eE]-?\d+)?/gu)??[],i=(t,d)=>Math.round(t*(d===0?c.width:c.height)/Y*100)/100,e=[];let a=[0,0],o=[0,0];for(let t=0;t<u.length;){const d=u[t++]??"",r=d.toUpperCase();if(r==="E")continue;if(r==="Z"){e.push({op:"close"}),a=o;continue}const f=r==="C"?6:r==="M"||r==="L"?2:-1,m=u.slice(t,t+f).map(Number);if(f<0||m.length<f||m.some(y=>!Number.isFinite(y)))return;t+=f;const p=m.map((y,h)=>d===r?y:y+(a[h%2]??0)),b=y=>({x:i(p[y]??0,0),y:i(p[y+1]??0,1)});if(r==="C"){const y=b(0),h=b(2);e.push({op:"curve",x1:y.x,y1:y.y,x2:h.x,y2:h.y,...b(4)})}else e.push({op:r==="M"?"move":"line",...b(0)});a=p.slice(-2),r==="M"&&(o=a)}return e[0]?.op==="move"?Z(e):void 0}function at(n,c,u){const i=n.kids().find(p=>p.key==="p:iterate");if(!i)return{};const e=(p,b)=>p?.el.attrs.find(y=>y.key===b)?.value,a=e(i,"type")??"el";if((e(i,"backwards")==="1"||e(i,"backwards")==="true")&&l(u,"cannot-hold","p:iterate@backwards",`${c}: its text built from its end`),a!=="wd"&&a!=="lt")return l(u,"cannot-hold","p:iterate",`${c}: an effect a part of its text at a time`),{};const o=i.kids(),t=e(o.find(p=>p.key==="p:tmPct"),"val"),d=e(o.find(p=>p.key==="p:tmAbs"),"val"),r=Number(w(n).find(p=>p.key==="p:cTn"&&p.el.attrs.some(b=>b.key==="dur"&&b.value!=="1"))?.el.attrs.find(p=>p.key==="dur")?.value),f=t!==void 0?t.endsWith("%")?Number.parseFloat(t)/100:Number(t)/1e5:d!==void 0&&r>0?Number(d)/r:P,m=Number.isFinite(f)&&f>=0?Math.round(f*1e3)/1e3:P;return{animate_text:a==="wd"?"word":"letter",...m===P?{}:{text_delay:m}}}function rt(n,c){const u=(e,a)=>e?.el.attrs.find(o=>o.key===a)?.value,i=e=>Math.round(e*1e3)/1e3;if(n==="grow-shrink"){const e=c.find(t=>t.key==="p:by"),a=Number(u(e,"x")??15e4)/1e5,o=Number(u(e,"y")??15e4)/1e5;return!Number.isFinite(a)||!Number.isFinite(o)||a<=0||o<=0?{}:a===o?{direction:"both",amount:i(a)}:a===1?{direction:"vertical",amount:i(o)}:{direction:"horizontal",amount:i(a)}}if(n==="spin"){const e=Number(u(c.find(a=>a.key==="p:animRot"),"by"))/6e4;return!Number.isFinite(e)||e===0?{}:{direction:e<0?"counterclockwise":"clockwise",amount:i(Math.abs(e))}}if(n==="transparency"){const e=c.find(d=>d.key==="p:set"&&w(d).some(r=>r.key==="p:attrName"&&r.el.text==="style.opacity")),a=e?u(w(e).find(d=>d.key==="p:strVal"),"val"):/opacity:\s*([\d.]+)/u.exec(u(c.find(d=>d.key==="p:animEffect"),"prLst")??"")?.[1],o=Number(a);if(a===void 0||!Number.isFinite(o))return{};const t=i(1-o);return t>0&&t<=1?{amount:t}:{}}return{}}function w(n){return n.kids().flatMap(c=>[c,...w(c)])}export function animationsOf(n,c,u,i){if(!n)return[];const e=w(n),a=[];for(const o of e.filter(t=>t.key==="p:seq"))v(o).one("p:cTn")?.attr("nodeType")==="interactiveSeq"&&l(i,"cannot-hold","p:seq","animations a click on a shape starts (a trigger)");for(const o of e.filter(t=>t.key==="p:cTn")){const t=v(o),d=t.attr("nodeType");if(d!=="clickEffect"&&d!=="withEffect"&&d!=="afterEffect"||t.attr("presetClass")==="mediacall")continue;const r=w(t),f=r.find(s=>s.key==="p:spTgt")?.el.attrs.find(s=>s.key==="spid")?.value??"",m=c.get(f);if(m===void 0){l(i,"cannot-hold","p:spTgt",`an animation of shape ${f}, which is not read`);continue}const p=t.attr("presetClass")??"",b=t.attr("presetID")??0,y=J[`${p}:${String(b)}`],h=y??(p==="path"?"path":p==="exit"?"fade-out":p==="emph"?"pulse":"fade");y===void 0&&p!=="path"&&l(i,"approximated","p:cTn@presetID",`${m}: effect ${p} ${String(b)} is read as ${h}`);for(const[s,k]of it){const S=st[h]?.[s];(s==="repeatCount"?r:r.concat([t])).some(T=>T.key==="p:cTn"&&T.el.attrs.some($=>{const g=$.value==="true"?"1":$.value==="false"?"0":$.value;return $.key===s&&g!==S&&!(s==="repeatCount"&&g==="1000")&&!(s==="spd"&&(g==="100000"||g==="100%"))&&(s==="repeatCount"||s==="repeatDur"||Number(g)!==0)}))&&l(i,"cannot-hold",`p:cTn@${s}`,`${m}: an effect ${k}`)}for(const[s,k]of ct)r.some(S=>S.key===s)&&l(i,"cannot-hold",s,`${m}: ${k}`);const j=at(t,m,i),L=s=>t.el.attrs.find(k=>k.key===s)?.value,N=L("repeatCount"),z=(t.one("p:endCondLst")?.kids()??[]).some(s=>s.el.attrs.find(k=>k.key==="evt")?.value==="onNext"),R=N==="indefinite"?z?"until-next-click":"until-end-of-slide":N!==void 0&&Number(N)>1e3?Number(N)/1e3:void 0,U=L("fill")==="remove",x=t.attr("presetSubtype")??0,C=Q.get(x),A=h==="float-in"||h==="float-out"?b===D?"down":"up":C!==void 0&&H(h,C)?C:void 0,E=rt(h,r);B.has(h)&&x>0&&A===void 0&&l(i,"approximated","p:cTn@presetSubtype",`${m}: ${dt[x]??`side ${String(x)}`} is from the bottom`);const F=r.find(s=>s.key==="p:pRg"),M=F?Number(F.el.attrs.find(s=>s.key==="st")?.value):void 0,q=r.find(s=>s.key==="p:cond"),I=Number(q?.el.attrs.find(s=>s.key==="delay")?.value??0)||0,W=(t.one("p:childTnLst")?.kids()??[]).filter(s=>s.key!=="p:set").flatMap(s=>w(s).filter(k=>k.key==="p:cTn").map(k=>(Number(k.el.attrs.find(T=>T.key==="dur")?.value??0)||0)*(k.el.attrs.find(T=>T.key==="autoRev")?.value==="1"?2:1))),O=r.find(s=>s.key==="p:animMotion")?.el.attrs.find(s=>s.key==="path")?.value,_=O===void 0?void 0:ot(O,u);O!==void 0&&_===void 0&&(l(i,"cannot-hold","p:animMotion@path",`${m}: a motion path of ${O}`),h==="path")||a.push({shape:m,effect:h,...M===void 0||Number.isNaN(M)?{}:{paragraph:M},...A!==void 0&&(x>0||!B.has(h))?{direction:A}:E.direction===void 0?{}:{direction:E.direction},...E.amount===void 0?{}:{amount:E.amount},...j,...R===void 0?{}:{repeat:R},...U?{rewind:!0}:{},start:d==="clickEffect"?"on-click":d==="withEffect"?"with-previous":"after-previous",duration:Math.max(0,...W)/1e3,...I>0?{delay:I/1e3}:{},..._===void 0?{}:{path:_}})}for(const o of n.one("p:bldLst")?.kids()??[])if(o.key==="p:bldP"){const t=v(o);t.attrOr("rev")&&l(i,"cannot-hold","p:bldP@rev","a text built in reverse order"),t.attrOr("animBg")&&l(i,"cannot-hold","p:bldP@animBg","a shape's text built with its shape as one");const d=t.el.attrs.find(r=>r.key==="advAuto")?.value;d!==void 0&&d!=="indefinite"&&l(i,"cannot-hold","p:bldP@advAuto","a text's paragraphs coming on by themselves, a time apart"),(t.attr("bldLvl")??1)>1&&l(i,"cannot-hold","p:bldP@bldLvl","a text built by its deeper levels too")}else l(i,"cannot-hold",o.key,o.key==="p:bldGraphic"||o.key==="p:bldOleChart"?"a chart built by its series or categories":o.key==="p:bldDgm"?"a SmartArt built a part at a time":"a build a deck has none of");return n.consume(),a}const it=[["repeatCount","repeated"],["repeatDur","repeated for a time"],["accel","accelerated"],["decel","decelerated"],["autoRev","played back again"],["spd","at a speed of its own"]],st={"fly-in":{decel:"100000"},"fly-out":{accel:"100000"},pulse:{autoRev:"1"}},ct=[["p:sndTgt","a sound played with an effect"],["p:audio","a sound played with an effect"],["p:graphicEl","an effect on a part of a chart or a SmartArt"],["p:oleChartEl","an effect on a part of a chart"],["p:inkTgt","an effect on ink"]],dt={3:"from the top right",6:"from the bottom right",9:"from the top left",12:"from the bottom left"};export function playbacksOf(n){const c=new Map;if(!n)return c;const u=w(n),i=a=>w(a).find(o=>o.key==="p:spTgt")?.el.attrs.find(o=>o.key==="spid")?.value,e=a=>{const o=c.get(a)??{};return c.set(a,o),o};for(const a of u)if(a.key==="p:video"||a.key==="p:audio"){const o=v(a),t=o.one("p:cMediaNode"),d=t?i(t):void 0;if(d===void 0||!t)continue;const r=e(d);a.key==="p:video"&&o.attr("fullScrn")===!0&&(r.fullscreen=!0);const f=t.attr("vol");t.attr("mute")===!0?r.volume=0:f!==void 0&&f!==Math.round(G.volume*1e5)&&(r.volume=Math.round(f/1e5*1e3)/1e3),t.attr("showWhenStopped")===!1&&(r.hide=!0),t.one("p:cTn")?.attr("repeatCount")==="indefinite"&&(r.loop=!0)}else if(a.key==="p:cTn"){const o=v(a);if(o.attr("presetClass")!=="mediacall")continue;const t=i(a);t!==void 0&&o.attr("nodeType")==="clickEffect"&&(e(t).start="on-click")}return c}
2
+ import{as as v}from"@allyhub/ooxml";import{EMU_PER_PT as Y,PLAYBACK_DEFAULTS as G,pathText as Z,effectTakes as H,EFFECT_OPTIONS as K,TEXT_DELAY as P}from"@allyhub/slides-core";import{FLOAT_DOWN as D,PRESETS as V,SUBTYPED as B,SUBTYPES as X,TRANSITION_SIDES as J}from"../timing.js";import{say as l}from"./common.js";const Q={...Object.fromEntries(Object.entries(V).map(([n,c])=>[`${c.kind}:${String(c.id)}`,n])),[`entr:${String(D)}`]:"float-in",[`exit:${String(D)}`]:"float-out"},tt=new Map(Object.entries(X).map(([n,c])=>[c,n])),et=new Map(Object.entries(J).map(([n,c])=>[c,n])),nt={fast:.5,med:.75,slow:1};export function transitionOf(n,c){if(!n)return{};const p=n.attr("advTm"),i=p===void 0?{}:{advance:p/1e3},e=n.attr("p14:dur"),a=nt[n.attrOr("spd")],o=e===void 0?a:e/1e3;n.attrOr("advClick")||l(c,"cannot-hold","p:transition@advClick","a slide that a click does not advance");const t=n.one("p:sndAc");t&&(l(c,"cannot-hold","p:sndAc","a transition's sound"),t.consume());const d=n.kids().find(f=>f.key!=="p:sndAc"&&f.key!=="p:extLst");if(!d)return i;d.use();const r=ot(d,c);return r?{transition:{type:r.type,...r.direction===void 0?{}:{direction:r.direction},...r.black?{through_black:!0}:{},duration:r.type==="cut"&&e===void 0?0:o},...i}:(l(c,"cannot-hold",d.key,"a transition a deck has none of"),d.consume(),i)}function ot(n,c){const p=e=>et.get(e)??"from-right",i=()=>v(n).attr("thruBlk")===!0;switch(n.key){case"p:fade":return{type:"fade",black:i()};case"p:cut":return{type:"cut",black:i()};case"p:push":case"p:wipe":{const e=v(n).attrOr("dir");return{type:n.key==="p:push"?"push":"wipe",direction:p(e),black:!1}}case"p:cover":case"p:pull":{const e=v(n).attrOr("dir");return{type:n.key==="p:cover"?"cover":"uncover",direction:p(e),black:!1}}case"p:split":{const e=v(n),a=e.attrOr("orient"),o=e.attrOr("dir");return{type:"split",direction:`${a==="vert"?"vertical":"horizontal"}-${o==="in"?"in":"out"}`,black:!1}}case"p14:reveal":{const e=v(n);return{type:"reveal",direction:e.attrOr("dir")==="l"?"from-left":"from-right",black:e.attrOr("thruBlk")}}case"p14:warp":return{type:"zoom",direction:v(n).attrOr("dir")==="in"?"in":"out",black:!1};case"p:newsflash":return{type:"zoom",direction:"rotate",black:!1};case"p159:morph":{const e=v(n).attrOr("option");return e!=="byObject"&&l(c,"approximated","p159:morph@option",`a morph ${e==="byWord"?"by word":"by character"} moves its shapes as objects`),{type:"morph",black:!1}}default:return}}function at(n,c){const p=n.match(/[A-Za-z]|-?[\d.]+(?:[eE]-?\d+)?/gu)??[],i=(t,d)=>Math.round(t*(d===0?c.width:c.height)/Y*100)/100,e=[];let a=[0,0],o=[0,0];for(let t=0;t<p.length;){const d=p[t++]??"",r=d.toUpperCase();if(r==="E")continue;if(r==="Z"){e.push({op:"close"}),a=o;continue}const f=r==="C"?6:r==="M"||r==="L"?2:-1,m=p.slice(t,t+f).map(Number);if(f<0||m.length<f||m.some(y=>!Number.isFinite(y)))return;t+=f;const u=m.map((y,h)=>d===r?y:y+(a[h%2]??0)),b=y=>({x:i(u[y]??0,0),y:i(u[y+1]??0,1)});if(r==="C"){const y=b(0),h=b(2);e.push({op:"curve",x1:y.x,y1:y.y,x2:h.x,y2:h.y,...b(4)})}else e.push({op:r==="M"?"move":"line",...b(0)});a=u.slice(-2),r==="M"&&(o=a)}return e[0]?.op==="move"?Z(e):void 0}function rt(n,c,p){const i=n.kids().find(u=>u.key==="p:iterate");if(!i)return{};const e=(u,b)=>u?.el.attrs.find(y=>y.key===b)?.value,a=e(i,"type")??"el";if((e(i,"backwards")==="1"||e(i,"backwards")==="true")&&l(p,"cannot-hold","p:iterate@backwards",`${c}: its text built from its end`),a!=="wd"&&a!=="lt")return l(p,"cannot-hold","p:iterate",`${c}: an effect a part of its text at a time`),{};const o=i.kids(),t=e(o.find(u=>u.key==="p:tmPct"),"val"),d=e(o.find(u=>u.key==="p:tmAbs"),"val"),r=Number(w(n).find(u=>u.key==="p:cTn"&&u.el.attrs.some(b=>b.key==="dur"&&b.value!=="1"))?.el.attrs.find(u=>u.key==="dur")?.value),f=t!==void 0?t.endsWith("%")?Number.parseFloat(t)/100:Number(t)/1e5:d!==void 0&&r>0?Number(d)/r:P,m=Number.isFinite(f)&&f>=0?Math.round(f*1e3)/1e3:P;return{animate_text:a==="wd"?"word":"letter",...m===P?{}:{text_delay:m}}}function it(n,c){const p=(e,a)=>e?.el.attrs.find(o=>o.key===a)?.value,i=e=>Math.round(e*1e3)/1e3;if(n==="grow-shrink"){const e=c.find(t=>t.key==="p:by"),a=Number(p(e,"x")??15e4)/1e5,o=Number(p(e,"y")??15e4)/1e5;return!Number.isFinite(a)||!Number.isFinite(o)||a<=0||o<=0?{}:a===o?{direction:"both",amount:i(a)}:a===1?{direction:"vertical",amount:i(o)}:{direction:"horizontal",amount:i(a)}}if(n==="spin"){const e=Number(p(c.find(a=>a.key==="p:animRot"),"by"))/6e4;return!Number.isFinite(e)||e===0?{}:{direction:e<0?"counterclockwise":"clockwise",amount:i(Math.abs(e))}}if(n==="transparency"){const e=c.find(d=>d.key==="p:set"&&w(d).some(r=>r.key==="p:attrName"&&r.el.text==="style.opacity")),a=e?p(w(e).find(d=>d.key==="p:strVal"),"val"):/opacity:\s*([\d.]+)/u.exec(p(c.find(d=>d.key==="p:animEffect"),"prLst")??"")?.[1];if(a===void 0)return{amount:K.transparency.amount??.5};const o=Number(a);if(!Number.isFinite(o))return{};const t=i(1-o);return t>0&&t<=1?{amount:t}:{}}return{}}function w(n){return n.kids().flatMap(c=>[c,...w(c)])}export function animationsOf(n,c,p,i){if(!n)return[];const e=w(n),a=[];for(const o of e.filter(t=>t.key==="p:seq"))v(o).one("p:cTn")?.attr("nodeType")==="interactiveSeq"&&l(i,"cannot-hold","p:seq","animations a click on a shape starts (a trigger)");for(const o of e.filter(t=>t.key==="p:cTn")){const t=v(o),d=t.attr("nodeType");if(d!=="clickEffect"&&d!=="withEffect"&&d!=="afterEffect"||t.attr("presetClass")==="mediacall")continue;const r=w(t),f=r.find(s=>s.key==="p:spTgt")?.el.attrs.find(s=>s.key==="spid")?.value??"",m=c.get(f);if(m===void 0){l(i,"cannot-hold","p:spTgt",`an animation of shape ${f}, which is not read`);continue}const u=t.attr("presetClass")??"",b=t.attr("presetID")??0,y=Q[`${u}:${String(b)}`],h=y??(u==="path"?"path":u==="exit"?"fade-out":u==="emph"?"pulse":"fade");y===void 0&&u!=="path"&&l(i,"approximated","p:cTn@presetID",`${m}: effect ${u} ${String(b)} is read as ${h}`);for(const[s,k]of st){const S=ct[h]?.[s];(s==="repeatCount"?r:r.concat([t])).some(T=>T.key==="p:cTn"&&T.el.attrs.some($=>{const g=$.value==="true"?"1":$.value==="false"?"0":$.value;return $.key===s&&g!==S&&!(s==="repeatCount"&&g==="1000")&&!(s==="spd"&&(g==="100000"||g==="100%"))&&(s==="repeatCount"||s==="repeatDur"||Number(g)!==0)}))&&l(i,"cannot-hold",`p:cTn@${s}`,`${m}: an effect ${k}`)}for(const[s,k]of dt)r.some(S=>S.key===s)&&l(i,"cannot-hold",s,`${m}: ${k}`);const j=rt(t,m,i),F=s=>t.el.attrs.find(k=>k.key===s)?.value,N=F("repeatCount"),z=(t.one("p:endCondLst")?.kids()??[]).some(s=>s.el.attrs.find(k=>k.key==="evt")?.value==="onNext"),L=N==="indefinite"?z?"until-next-click":"until-end-of-slide":N!==void 0&&Number(N)>1e3?Number(N)/1e3:void 0,U=F("fill")==="remove",x=t.attr("presetSubtype")??0,C=tt.get(x),A=h==="float-in"||h==="float-out"?b===D?"down":"up":C!==void 0&&H(h,C)?C:void 0,E=it(h,r);B.has(h)&&x>0&&A===void 0&&l(i,"approximated","p:cTn@presetSubtype",`${m}: ${ut[x]??`side ${String(x)}`} is from the bottom`);const I=r.find(s=>s.key==="p:pRg"),M=I?Number(I.el.attrs.find(s=>s.key==="st")?.value):void 0,q=r.find(s=>s.key==="p:cond"),R=Number(q?.el.attrs.find(s=>s.key==="delay")?.value??0)||0,W=(t.one("p:childTnLst")?.kids()??[]).filter(s=>s.key!=="p:set").flatMap(s=>w(s).filter(k=>k.key==="p:cTn").map(k=>(Number(k.el.attrs.find(T=>T.key==="dur")?.value??0)||0)*(k.el.attrs.find(T=>T.key==="autoRev")?.value==="1"?2:1))),O=r.find(s=>s.key==="p:animMotion")?.el.attrs.find(s=>s.key==="path")?.value,_=O===void 0?void 0:at(O,p);O!==void 0&&_===void 0&&(l(i,"cannot-hold","p:animMotion@path",`${m}: a motion path of ${O}`),h==="path")||a.push({shape:m,effect:h,...M===void 0||Number.isNaN(M)?{}:{paragraph:M},...A!==void 0&&(x>0||!B.has(h))?{direction:A}:E.direction===void 0?{}:{direction:E.direction},...E.amount===void 0?{}:{amount:E.amount},...j,...L===void 0?{}:{repeat:L},...U?{rewind:!0}:{},start:d==="clickEffect"?"on-click":d==="withEffect"?"with-previous":"after-previous",duration:Math.max(0,...W)/1e3,...R>0?{delay:R/1e3}:{},..._===void 0?{}:{path:_}})}for(const o of n.one("p:bldLst")?.kids()??[])if(o.key==="p:bldP"){const t=v(o);t.attrOr("rev")&&l(i,"cannot-hold","p:bldP@rev","a text built in reverse order"),t.attrOr("animBg")&&l(i,"cannot-hold","p:bldP@animBg","a shape's text built with its shape as one");const d=t.el.attrs.find(r=>r.key==="advAuto")?.value;d!==void 0&&d!=="indefinite"&&l(i,"cannot-hold","p:bldP@advAuto","a text's paragraphs coming on by themselves, a time apart"),(t.attr("bldLvl")??1)>1&&l(i,"cannot-hold","p:bldP@bldLvl","a text built by its deeper levels too")}else l(i,"cannot-hold",o.key,o.key==="p:bldGraphic"||o.key==="p:bldOleChart"?"a chart built by its series or categories":o.key==="p:bldDgm"?"a SmartArt built a part at a time":"a build a deck has none of");return n.consume(),a}const st=[["repeatCount","repeated"],["repeatDur","repeated for a time"],["accel","accelerated"],["decel","decelerated"],["autoRev","played back again"],["spd","at a speed of its own"]],ct={"fly-in":{decel:"100000"},"fly-out":{accel:"100000"},pulse:{autoRev:"1"}},dt=[["p:sndTgt","a sound played with an effect"],["p:audio","a sound played with an effect"],["p:graphicEl","an effect on a part of a chart or a SmartArt"],["p:oleChartEl","an effect on a part of a chart"],["p:inkTgt","an effect on ink"]],ut={3:"from the top right",6:"from the bottom right",9:"from the top left",12:"from the bottom left"};export function playbacksOf(n){const c=new Map;if(!n)return c;const p=w(n),i=a=>w(a).find(o=>o.key==="p:spTgt")?.el.attrs.find(o=>o.key==="spid")?.value,e=a=>{const o=c.get(a)??{};return c.set(a,o),o};for(const a of p)if(a.key==="p:video"||a.key==="p:audio"){const o=v(a),t=o.one("p:cMediaNode"),d=t?i(t):void 0;if(d===void 0||!t)continue;const r=e(d);a.key==="p:video"&&o.attr("fullScrn")===!0&&(r.fullscreen=!0);const f=t.attr("vol");t.attr("mute")===!0?r.volume=0:f!==void 0&&f!==Math.round(G.volume*1e5)&&(r.volume=Math.round(f/1e5*1e3)/1e3),t.attr("showWhenStopped")===!1&&(r.hide=!0),t.one("p:cTn")?.attr("repeatCount")==="indefinite"&&(r.loop=!0)}else if(a.key==="p:cTn"){const o=v(a);if(o.attr("presetClass")!=="mediacall")continue;const t=i(a);t!==void 0&&o.attr("nodeType")==="clickEffect"&&(e(t).start="on-click")}return c}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{groupLevels as F,inGroup as L}from"@allyhub/formats";import{presetAdjustments as w}from"@allyhub/ooxml/geometry";import{NS as P,effects as o,el as n,fill as k,gradientFill as N,patternFill as G,pictureFill as D}from"./xml.js";import{linkXml as E}from"./text.js";export const LOCKED={noMove:1,noResize:1,noRot:1};const g=e=>e.locked?LOCKED:{},v=(e,r={})=>n("a:xfrm",{rot:r.rotation===void 0?void 0:Math.round(r.rotation*6e4),flipH:r.flip?.h?1:void 0,flipV:r.flip?.v?1:void 0},n("a:off",{x:e.left,y:e.top}),n("a:ext",{cx:e.width,cy:e.height})),y=(e,r)=>{const i=w(e);return n("a:prstGeom",{prst:e},n("a:avLst",{},...(r??[]).flatMap((d,p)=>{const c=i[p]?.name;return c===void 0?[]:[n("a:gd",{name:c,fmla:`val ${String(Math.round(d*1e5))}`})]})))};function B(e,r){const i=e.steps.every(t=>t.op==="close"?!0:t.op==="curve"?[t.x1,t.y1,t.x2,t.y2,t.x,t.y].every(Number.isInteger):Number.isInteger(t.x)&&Number.isInteger(t.y)),[d,p]=i||!r?[1,1]:[e.w===0?1:r.width/e.w,e.h===0?1:r.height/e.h],c=(t,a)=>n("a:pt",{x:Math.round(t*d),y:Math.round(a*p)}),l=e.steps.map(t=>t.op==="close"?n("a:close"):t.op==="move"?n("a:moveTo",{},c(t.x,t.y)):t.op==="line"?n("a:lnTo",{},c(t.x,t.y)):n("a:cubicBezTo",{},c(t.x1,t.y1),c(t.x2,t.y2),c(t.x,t.y)));return n("a:custGeom",{},n("a:avLst"),n("a:gdLst"),n("a:ahLst"),n("a:cxnLst"),n("a:rect",{l:"l",t:"t",r:"r",b:"b"}),n("a:pathLst",{},n("a:path",{w:Math.round(e.w*d),h:Math.round(e.h*p)},...l)))}const b=e=>e.line===void 0&&e.lineWidth===void 0&&e.lineDash===void 0&&e.lineCap===void 0&&e.lineJoin===void 0&&e.lineCompound===void 0&&e.lineBegin===void 0&&e.lineEnd===void 0?"":n("a:ln",{w:e.lineWidth,cap:e.lineCap,cmpd:e.lineCompound},e.line===void 0?"":k(e.line),e.lineDash===void 0?"":n("a:prstDash",{val:e.lineDash}),e.lineJoin===void 0?"":e.lineJoin==="miter"?n("a:miter",{lim:8e5}):n(`a:${e.lineJoin}`),e.lineBegin===void 0?"":n("a:headEnd",{type:e.lineBegin,...e.lineBeginSize}),e.lineEnd===void 0?"":n("a:tailEnd",{type:e.lineEnd,...e.lineEndSize})),f=(e,r,i)=>n(e,{idx:r},n("a:schemeClr",{val:i})),S={shape:n("p:style",{},f("a:lnRef",1,"accent1"),f("a:fillRef",3,"accent1"),f("a:effectRef",2,"accent1"),f("a:fontRef","minor","lt1")),connector:n("p:style",{},f("a:lnRef",2,"accent1"),f("a:fillRef",0,"accent1"),f("a:effectRef",1,"accent1"),f("a:fontRef","minor","tx1"))},z=e=>n("p:ph",{type:e.type==="obj"?void 0:e.type,orient:e.orient,sz:e.sz,idx:e.idx===0?void 0:e.idx}),s=(e,r)=>n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr},r??(e.link===void 0?"":E(e.link))),M=(e,r="")=>n("p:nvPr",{},e.placeholder?z(e.placeholder):"",r);export function shapeXml(e){if(e.kind==="table"||e.kind==="chart")return n("p:graphicFrame",{},n("p:nvGraphicFramePr",{},s(e),n("p:cNvGraphicFramePr",{},n("a:graphicFrameLocks",{noGrp:1,...e.locked?{noMove:1,noResize:1}:{}})),n("p:nvPr")),n("p:xfrm",{},n("a:off",{x:e.frame?.left??0,y:e.frame?.top??0}),n("a:ext",{cx:e.frame?.width??0,cy:e.frame?.height??0})),n("a:graphic",{},n("a:graphicData",{uri:`http://schemas.openxmlformats.org/drawingml/2006/${e.kind}`},e.kind==="table"?e.table??"":n("c:chart",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:r":P.r,"r:id":e.chart??""}))));if(e.kind==="cxn")return n("p:cxnSp",{},n("p:nvCxnSpPr",{},s(e),n("p:cNvCxnSpPr",{},e.locked?n("a:cxnSpLocks",g(e)):"",e.connect?.begin?n("a:stCxn",e.connect.begin):"",e.connect?.end?n("a:endCxn",e.connect.end):""),n("p:nvPr")),n("p:spPr",{},e.frame?v(e.frame,e):"",y(e.geometry??"line",e.adjustments),b(e),o(e)),e.style?S[e.style]:"");if(e.kind==="pic"){const i=e.video;return n("p:pic",{},n("p:nvPicPr",{},s(e,i?n("a:hlinkClick",{"r:id":"",action:"ppaction://media"}):void 0),n("p:cNvPicPr",{},n("a:picLocks",{noChangeAspect:1,...g(e)})),M(e,i?n(i.sound===!0?"a:audioFile":"a:videoFile",{"r:link":i.link})+n("p:extLst",{},n("p:ext",{uri:"{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}"},n("p14:media",{"xmlns:p14":P.p14,"r:embed":i.media},i.trim?n("p14:trim",{st:i.trim.start===void 0?void 0:String(Math.round(i.trim.start*1e6)/1e3),end:i.trim.end===void 0?void 0:String(Math.round(i.trim.end*1e6)/1e3)}):""))):"")),n("p:blipFill",{},n("a:blip",{"r:embed":e.picture?.image}),e.picture?.crop?n("a:srcRect",{l:h(e.picture.crop.left),t:h(e.picture.crop.top),r:h(e.picture.crop.right),b:h(e.picture.crop.bottom)}):"",n("a:stretch",{},n("a:fillRect"))),n("p:spPr",{},e.frame?v(e.frame,e):"",y("rect"),o(e)))}const r=e.placeholder||e.locked?n("a:spLocks",{...e.placeholder?{noGrp:1}:{},...g(e)}):"";return n("p:sp",{},n("p:nvSpPr",{},s(e),n("p:cNvSpPr",{txBox:e.textbox?1:void 0},r),M(e)),n("p:spPr",{},e.frame?v(e.frame,e):"",e.path?B(e.path,e.frame):e.geometry?y(e.geometry,e.adjustments):"",e.pictureFill?D(e.pictureFill):e.pattern?G(e.pattern):e.gradient?N(e.gradient):e.fill===void 0?"":k(e.fill,e.fillTransparency),b(e),o(e)),e.style?S[e.style]:"",e.text??"")}function A(e,r,i,d){const p=Math.min(...i.map(a=>a.left)),c=Math.min(...i.map(a=>a.top)),l=Math.max(...i.map(a=>a.left+a.width))-p,t=Math.max(...i.map(a=>a.top+a.height))-c;return n("p:grpSp",{},n("p:nvGrpSpPr",{},n("p:cNvPr",{id:e,name:r}),n("p:cNvGrpSpPr"),n("p:nvPr")),n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:p,y:c}),n("a:ext",{cx:l,cy:t}),n("a:chOff",{x:p,y:c}),n("a:chExt",{cx:l,cy:t}))),...d)}export function treeXml(e){let r=Math.max(0,...e.map(d=>d.id));const i=(d,p)=>{const c=[],l=[];let t=d;for(;t<e.length;){const a=e[t];if(!a)break;const m=a.group;if(p!==void 0&&!L(m,p))break;if(m===p||m===void 0){c.push(shapeXml(a)),a.frame&&l.push(a.frame),t++;continue}const x=F(m).find(C=>p===void 0||C.length>p.length)??m,u=i(t,x),R=x.split("/").pop()??x;c.push(A(++r,R,u.frames,u.xml)),l.push(...u.frames),t=u.next}return{xml:c,frames:l,next:t}};return i(0,void 0).xml}const h=e=>e===0?void 0:Math.round(e*1e5);export const NO_PARAGRAPHS=[];
2
+ import{groupLevels as A,inGroup as G}from"@allyhub/formats";import{CHARTEX_URI as B,chartExReference as D}from"@allyhub/slides-core";import{presetAdjustments as N}from"@allyhub/ooxml/geometry";import{NS as C,color as R,effects as v,el as n,fill as w,gradientFill as z,patternFill as T,pictureFill as _}from"./xml.js";import{linkXml as j}from"./text.js";export const LOCKED={noMove:1,noResize:1,noRot:1};const y=e=>e.locked?LOCKED:{},P=(e,t={})=>n("a:xfrm",{rot:t.rotation===void 0?void 0:Math.round(t.rotation*6e4),flipH:t.flip?.h?1:void 0,flipV:t.flip?.v?1:void 0},n("a:off",{x:e.left,y:e.top}),n("a:ext",{cx:e.width,cy:e.height})),k=(e,t)=>{const r=N(e);return n("a:prstGeom",{prst:e},n("a:avLst",{},...(t??[]).flatMap((p,s)=>{const d=r[s]?.name;return d===void 0?[]:[n("a:gd",{name:d,fmla:`val ${String(Math.round(p*1e5))}`})]})))};function X(e){const t=[];for(const r of e)(r.op==="move"||t.length===0)&&t.push([]),t.at(-1)?.push(r);return t}function O(e){const t=[],r=[];for(const p of e)p.op!=="close"&&(p.op==="curve"&&(t.push(p.x1,p.x2),r.push(p.y1,p.y2)),t.push(p.x),r.push(p.y));return[Math.min(...t),Math.min(...r),Math.max(...t),Math.max(...r)]}function H(e){const t=X(e).map(i=>({steps:i,box:O(i)})),r=t.map((i,c)=>c),p=i=>{let c=i;for(;r[c]!==c;)c=r[c]??c;return c},s=(i,c)=>i[0]<=c[2]&&c[0]<=i[2]&&i[1]<=c[3]&&c[1]<=i[3];for(let i=0;i<t.length;i++)for(let c=i+1;c<t.length;c++){const a=t[i],l=t[c];a&&l&&s(a.box,l.box)&&(r[p(c)]=p(i))}const d=new Map;return t.forEach((i,c)=>{const a=p(c);d.set(a,[...d.get(a)??[],...i.steps])}),[...d.values()]}function J(e,t){const[r,p]=t?[e.w===0?1:t.width/e.w,e.h===0?1:t.height/e.h]:[1,1],s=(a,l)=>n("a:pt",{x:Math.round(a*r),y:Math.round(l*p)}),d=a=>a.op==="close"?n("a:close"):a.op==="move"?n("a:moveTo",{},s(a.x,a.y)):a.op==="line"?n("a:lnTo",{},s(a.x,a.y)):n("a:cubicBezTo",{},s(a.x1,a.y1),s(a.x2,a.y2),s(a.x,a.y)),i=Math.round(e.w*r),c=Math.round(e.h*p);return n("a:custGeom",{},n("a:avLst"),n("a:gdLst"),n("a:ahLst"),n("a:cxnLst"),n("a:rect",{l:"l",t:"t",r:"r",b:"b"}),n("a:pathLst",{},...H(e.steps).map(a=>n("a:path",{w:i,h:c},...a.map(d)))))}const b=e=>e.line===void 0&&e.lineWidth===void 0&&e.lineDash===void 0&&e.lineCap===void 0&&e.lineJoin===void 0&&e.lineCompound===void 0&&e.lineBegin===void 0&&e.lineEnd===void 0?"":n("a:ln",{w:e.lineWidth,cap:e.lineCap,cmpd:e.lineCompound},e.line===void 0?"":w(e.line),e.lineDash===void 0?"":n("a:prstDash",{val:e.lineDash}),e.lineJoin===void 0?"":e.lineJoin==="miter"?n("a:miter",{lim:8e5}):n(`a:${e.lineJoin}`),e.lineBegin===void 0?"":n("a:headEnd",{type:e.lineBegin,...e.lineBeginSize}),e.lineEnd===void 0?"":n("a:tailEnd",{type:e.lineEnd,...e.lineEndSize})),o=(e,t,r)=>n(e,{idx:t},n("a:schemeClr",{val:r})),F={shape:n("p:style",{},o("a:lnRef",1,"accent1"),o("a:fillRef",3,"accent1"),o("a:effectRef",2,"accent1"),o("a:fontRef","minor","lt1")),connector:n("p:style",{},o("a:lnRef",2,"accent1"),o("a:fillRef",0,"accent1"),o("a:effectRef",1,"accent1"),o("a:fontRef","minor","tx1"))},$=e=>n("p:ph",{type:e.type==="obj"?void 0:e.type,orient:e.orient,sz:e.sz,idx:e.idx===0?void 0:e.idx});export const DECORATIVE=n("a:extLst",{},n("a:ext",{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"},n("adec:decorative",{"xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative",val:1})));const f=(e,t)=>n("p:cNvPr",{id:e.id,name:e.name,descr:e.decorative?void 0:e.descr},t??(e.link===void 0?"":j(e.link)),e.decorative?DECORATIVE:""),S=(e,t="")=>n("p:nvPr",{},e.placeholder?$(e.placeholder):"",t);function V(e,t,r){const p=n("a:off",{x:e.frame?.left??0,y:e.frame?.top??0}),s=n("a:ext",{cx:e.frame?.width??0,cy:e.frame?.height??0}),d=n("p:graphicFrame",{},n("p:nvGraphicFramePr",{},f(e),n("p:cNvGraphicFramePr",{},e.locked?n("a:graphicFrameLocks",{noMove:1,noResize:1}):""),n("p:nvPr")),n("p:xfrm",{},p,s),n("a:graphic",{},n("a:graphicData",{uri:B},D(e.chart??"")))),i=t===void 0?n("p:sp",{},n("p:nvSpPr",{},f(e),n("p:cNvSpPr",{},n("a:spLocks",{noTextEdit:1})),n("p:nvPr")),n("p:spPr",{},n("a:xfrm",{},p,s),n("a:prstGeom",{prst:"rect"},n("a:avLst"))),n("p:txBody",{},n("a:bodyPr",{anchor:"ctr"}),n("a:lstStyle"),n("a:p",{},n("a:pPr",{algn:"ctr"}),n("a:r",{},n("a:rPr",{lang:"en-US",sz:1100}),n("a:t",{},"This chart isn't available in your version of PowerPoint."))))):n("p:pic",{},n("p:nvPicPr",{},f(e),n("p:cNvPicPr",{},n("a:picLocks",{noGrp:1,noRot:1,noChangeAspect:1,noMove:1,noResize:1,noEditPoints:1,noAdjustHandles:1,noChangeArrowheads:1,noChangeShapeType:1})),n("p:nvPr")),n("p:blipFill",{},n("a:blip",{"r:embed":t}),n("a:stretch",{},n("a:fillRect"))),n("p:spPr",{},n("a:xfrm",{},p,s),n("a:prstGeom",{prst:"rect"},n("a:avLst"))));return n("mc:AlternateContent",{"xmlns:mc":E},n("mc:Choice",{[`xmlns:${r.prefix}`]:r.namespace,Requires:r.prefix},d),n("mc:Fallback",{},i))}const E="http://schemas.openxmlformats.org/markup-compatibility/2006";export function shapeXml(e){if(e.kind==="chart"&&e.chartEx)return V(e,e.chartEx.fallback,e.chartEx.requires);if(e.kind==="table"||e.kind==="chart")return n("p:graphicFrame",{},n("p:nvGraphicFramePr",{},f(e),n("p:cNvGraphicFramePr",{},n("a:graphicFrameLocks",{noGrp:1,...e.locked?{noMove:1,noResize:1}:{}})),n("p:nvPr")),n("p:xfrm",{},n("a:off",{x:e.frame?.left??0,y:e.frame?.top??0}),n("a:ext",{cx:e.frame?.width??0,cy:e.frame?.height??0})),n("a:graphic",{},n("a:graphicData",{uri:`http://schemas.openxmlformats.org/drawingml/2006/${e.kind}`},e.kind==="table"?e.table??"":n("c:chart",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:r":C.r,"r:id":e.chart??""}))));if(e.kind==="cxn")return n("p:cxnSp",{},n("p:nvCxnSpPr",{},f(e),n("p:cNvCxnSpPr",{},e.locked?n("a:cxnSpLocks",y(e)):"",e.connect?.begin?n("a:stCxn",e.connect.begin):"",e.connect?.end?n("a:endCxn",e.connect.end):""),n("p:nvPr")),n("p:spPr",{},e.frame?P(e.frame,e):"",k(e.geometry??"line",e.adjustments),b(e),v(e)),e.style?F[e.style]:"");if(e.kind==="pic"){const r=e.video;return n("p:pic",{},n("p:nvPicPr",{},f(e,r?n("a:hlinkClick",{"r:id":"",action:"ppaction://media"}):void 0),n("p:cNvPicPr",{},n("a:picLocks",{noChangeAspect:1,...y(e)})),S(e,r?n(r.sound===!0?"a:audioFile":"a:videoFile",{"r:link":r.link})+n("p:extLst",{},n("p:ext",{uri:"{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}"},n("p14:media",{"xmlns:p14":C.p14,"r:embed":r.media},r.trim?n("p14:trim",{st:r.trim.start===void 0?void 0:String(Math.round(r.trim.start*1e6)/1e3),end:r.trim.end===void 0?void 0:String(Math.round(r.trim.end*1e6)/1e3)}):""))):"")),n("p:blipFill",{},n("a:blip",{"r:embed":e.picture?.image},lookXml(e.picture?.look),e.picture?.svg===void 0?"":n("a:extLst",{},n("a:ext",{uri:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"},n("asvg:svgBlip",{"xmlns:asvg":"http://schemas.microsoft.com/office/drawing/2016/SVG/main","r:embed":e.picture.svg})))),e.picture?.crop?n("a:srcRect",{l:x(e.picture.crop.left),t:x(e.picture.crop.top),r:x(e.picture.crop.right),b:x(e.picture.crop.bottom)}):"",n("a:stretch",{},n("a:fillRect"))),n("p:spPr",{},e.frame?P(e.frame,e):"",k(e.geometry??"rect",e.adjustments),b(e),v(e)))}const t=e.placeholder||e.locked?n("a:spLocks",{...e.placeholder?{noGrp:1}:{},...y(e)}):"";return n("p:sp",{},n("p:nvSpPr",{},f(e),n("p:cNvSpPr",{txBox:e.textbox?1:void 0},t),S(e)),n("p:spPr",{},e.frame?P(e.frame,e):"",e.path?J(e.path,e.frame):e.geometry?k(e.geometry,e.adjustments):"",e.pictureFill?_(e.pictureFill):e.pattern?T(e.pattern):e.gradient?z(e.gradient):e.fill===void 0?"":w(e.fill,e.fillTransparency),b(e),v(e)),e.style?F[e.style]:"",e.text??"")}function I(e,t,r,p){const s=Math.min(...r.map(a=>a.left)),d=Math.min(...r.map(a=>a.top)),i=Math.max(...r.map(a=>a.left+a.width))-s,c=Math.max(...r.map(a=>a.top+a.height))-d;return n("p:grpSp",{},n("p:nvGrpSpPr",{},n("p:cNvPr",{id:e,name:t}),n("p:cNvGrpSpPr"),n("p:nvPr")),n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:s,y:d}),n("a:ext",{cx:i,cy:c}),n("a:chOff",{x:s,y:d}),n("a:chExt",{cx:i,cy:c}))),...p)}function U(e,t){return t.some(r=>r.includes("<a:custGeom>"))?n("mc:AlternateContent",{"xmlns:mc":E},n("mc:Choice",{"xmlns:a14":W,Requires:"a14"},e),n("mc:Fallback",{},...t)):e}const W="http://schemas.microsoft.com/office/drawing/2010/main";export function treeXml(e){let t=Math.max(0,...e.map(p=>p.id));const r=(p,s)=>{const d=[],i=[],c=[];let a=p;for(;a<e.length;){const l=e[a];if(!l)break;const u=l.group;if(s!==void 0&&!G(u,s))break;if(u===s||u===void 0){const h=shapeXml(l);d.push(h),i.push(h),l.frame&&c.push(l.frame),a++;continue}const g=A(u).find(h=>s===void 0||h.length>s.length)??u,m=r(a,g),L=g.split("/").pop()??g,M=I(++t,L,m.frames,m.xml);d.push(s===void 0?U(M,m.flat):M),i.push(...m.flat),c.push(...m.frames),a=m.next}return{xml:d,flat:i,frames:c,next:a}};return r(0,void 0).xml}const x=e=>e===0?void 0:Math.round(e*1e5);export const NO_PARAGRAPHS=[];export function lookXml(e){if(!e)return"";const t=r=>Math.round(r*1e5);return[e.transparency===void 0?"":n("a:alphaModFix",{amt:t(1-e.transparency)}),e.black_white===void 0?"":n("a:biLevel",{thresh:t(e.black_white)}),e.duotone?n("a:duotone",{},R(e.duotone[0]),R(e.duotone[1])):"",e.grayscale===!0?n("a:grayscl"):"",e.brightness===void 0&&e.contrast===void 0?"":n("a:lum",{bright:e.brightness===void 0?void 0:t(e.brightness),contrast:e.contrast===void 0?void 0:t(e.contrast)})].join("")}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{runLang as y}from"@allyhub/slides-core";import{face as P}from"./theme.js";import{centipoints as c,color as f,el as t,esc as _,fill as k}from"./xml.js";const x={t:"t",ctr:"ctr",b:"b"},z={"+mj-lt":"+mj-ea","+mn-lt":"+mn-ea"};export const LINK="link:",SLIDE_LINK="slidelink:";export function linkXml(e){return e.startsWith("#")?t("a:hlinkClick",{"r:id":`${SLIDE_LINK}${e.slice(1)}`,action:"ppaction://hlinksldjump"}):e.startsWith("ppaction://")?t("a:hlinkClick",{"r:id":"",action:e}):t("a:hlinkClick",{"r:id":`${LINK}${e}`})}export function runProps(e,n,i){const a=n?.color===void 0?"":k(n.color),r=n?.name===void 0?void 0:z[n.name];return t(e,{lang:i,sz:n?.size===void 0?void 0:c(n.size),b:n?.bold,i:n?.italic,u:n?.underline===void 0?void 0:typeof n.underline=="string"?n.underline:n.underline?"sng":"none",strike:n?.strike===void 0?void 0:typeof n.strike=="string"?n.strike:n.strike?"sngStrike":"noStrike",cap:n?.caps,baseline:n?.baseline===void 0?void 0:Math.round(n.baseline*1e5),spc:n?.spacing===void 0?void 0:c(n.spacing)},a,n?.highlight===void 0?"":t("a:highlight",{},f({rgb:n.highlight})),n?.name===void 0?"":t("a:latin",{typeface:P(n.name)}),r===void 0?"":t("a:ea",{typeface:r}),n?.link===void 0?"":linkXml(n.link))}const m=(e,n)=>n===void 0?"":t(e,{},typeof n=="number"?t("a:spcPts",{val:c(n)}):t("a:spcPct",{val:Math.round(n.lines*1e5)}));function g(e,n){const i=e.line_spacing;return{attrs:{marL:e.margin_left,indent:e.indent,algn:e.alignment},children:[i===void 0?"":t("a:lnSpc",{},"lines"in i?t("a:spcPct",{val:Math.round(i.lines*1e5)}):t("a:spcPts",{val:c(i.fixed)})),m("a:spcBef",e.space_before),m("a:spcAft",e.space_after),e.bullet_color===void 0?"":e.bullet_color===null?t("a:buClrTx"):t("a:buClr",{},f(e.bullet_color)),e.bullet_size===void 0?"":e.bullet_size===null?t("a:buSzTx"):t("a:buSzPct",{val:Math.round(e.bullet_size*1e5)}),e.bullet_font===void 0?"":t("a:buFont",{typeface:e.bullet_font}),e.numbered!==void 0?t("a:buAutoNum",{type:e.numbered,startAt:e.start_at}):e.bullet===void 0?"":e.bullet===null?t("a:buNone"):t("a:buChar",{char:e.bullet}),n&&e.font&&Object.keys(e.font).length>0?runProps("a:defRPr",e.font):""]}}export function listStyle(e,n="a:lstStyle"){const i=e.slice(0,9).flatMap((a,r)=>{const{attrs:u,children:o}=g(a,!0),l=o.join("");return l===""&&Object.values(u).every(d=>d===void 0)?[]:[t(`a:lvl${String(r+1)}pPr`,u,l)]});return t(n,{},...i)}export function levelOf(e){return{alignment:e.alignment,line_spacing:e.line_spacing,space_before:e.space_before,space_after:e.space_after,...e.numbered===void 0?{bullet:e.bullet?e.bullet.char:null}:{numbered:e.numbered},...e.bullet?.font===void 0?{}:{bullet_font:e.bullet.font},...e.bullet_color===void 0?{}:{bullet_color:e.bullet_color},...e.bullet_size===void 0?{}:{bullet_size:e.bullet_size},...e.start_at===void 0?{}:{start_at:e.start_at},margin_left:e.margin_left,indent:e.indent,font:e.font}}export function bodyProps(e,n,i={}){const a=n!==void 0?t("a:normAutofit",{fontScale:Math.round(n*1e5)}):e.auto_size==="text"?t("a:normAutofit"):e.auto_size==="shape"?t("a:spAutoFit"):e.auto_size==="none"?t("a:noAutofit"):"";return t("a:bodyPr",{wrap:e.word_wrap===void 0?void 0:e.word_wrap?"square":"none",lIns:e.margin_left,tIns:e.margin_top,rIns:e.margin_right,bIns:e.margin_bottom,anchor:e.vertical_anchor===void 0?void 0:x[e.vertical_anchor],vert:e.orientation,...i},a)}export const bodyOfStyle=e=>({vertical_anchor:e.vertical_anchor,auto_size:e.auto_size,word_wrap:e.word_wrap,margin_left:e.margins.left,margin_top:e.margins.top,margin_right:e.margins.right,margin_bottom:e.margins.bottom,...e.orientation==="horz"?{}:{orientation:e.orientation}}),bodyUnder=(e,n)=>({...e,...n?.anchor===void 0?{}:{vertical_anchor:n.anchor},...n?.orientation===void 0?{}:{orientation:n.orientation}});const v="{B6F15528-21DE-4FAA-801E-634DDDAF4B2B}";export const SLIDE_NUMBER=[{level:0,runs:[{text:"‹#›",field:"slidenum"}]}];export function paragraph(e,n,i){const a={...e,...i?.paragraph,...i?.levels?.[e.level]};i?.paragraph.bullet!==void 0&&delete a.numbered,(i?.paragraph.bullet!==void 0||i?.paragraph.numbered!==void 0)&&delete a.bullet_font;const{attrs:r,children:u}=g(a,!1),o=t("a:pPr",{...r,lvl:e.level>0?e.level:void 0},...u),l=e.runs.flatMap(s=>s.text.split("\v").flatMap((d,h)=>{const p={...e.font,...i?.font,...s.font},b=runProps("a:rPr",Object.keys(p).length>0?p:void 0,y(d,n));return[...h>0?[t("a:br",{},runProps("a:rPr",void 0,n))]:[],...d===""?[]:[s.field?t("a:fld",{id:v,type:s.field},b,t("a:t",{},_(d))):t("a:r",{},b,t("a:t",{},_(d)))]]}));return t("a:p",{},o==="<a:pPr/>"?"":o,...l,l.length===0?runProps("a:endParaRPr",{...e.font,...i?.font},n):"")}export function txBody(e,n,i,a,r,u){const o=a.map(l=>paragraph(l,r,u));return t(e,{},n,i,...o.length>0?o:[t("a:p")])}
2
+ import{runLang as A}from"@allyhub/slides-core";import{face as S}from"./theme.js";import{centipoints as b,color as h,el as t,esc as y,fill as I}from"./xml.js";const C={t:"t",ctr:"ctr",b:"b"},j={"+mj-lt":"+mj-ea","+mn-lt":"+mn-ea"};export const LINK="link:",SLIDE_LINK="slidelink:";export function linkXml(e){return e.startsWith("#")?t("a:hlinkClick",{"r:id":`${SLIDE_LINK}${e.slice(1)}`,action:"ppaction://hlinksldjump"}):e.startsWith("ppaction://")?t("a:hlinkClick",{"r:id":"",action:e}):t("a:hlinkClick",{"r:id":`${LINK}${e}`})}export function runProps(e,n,i){const a=n?.color===void 0?"":I(n.color),o=n?.name===void 0?void 0:j[n.name];return t(e,{lang:i,sz:n?.size===void 0?void 0:b(n.size),b:n?.bold,i:n?.italic,u:n?.underline===void 0?void 0:typeof n.underline=="string"?n.underline:n.underline?"sng":"none",strike:n?.strike===void 0?void 0:typeof n.strike=="string"?n.strike:n.strike?"sngStrike":"noStrike",cap:n?.caps,baseline:n?.baseline===void 0?void 0:Math.round(n.baseline*1e5),spc:n?.spacing===void 0?void 0:b(n.spacing)},a,n?.highlight===void 0?"":t("a:highlight",{},h({rgb:n.highlight})),n?.name===void 0?"":t("a:latin",{typeface:S(n.name)}),o===void 0?"":t("a:ea",{typeface:o}),n?.link===void 0?"":linkXml(n.link))}const P=(e,n)=>n===void 0?"":t(e,{},typeof n=="number"?t("a:spcPts",{val:b(n)}):t("a:spcPct",{val:Math.round(n.lines*1e5)}));function k(e,n){const i=e.line_spacing;return{attrs:{marL:e.margin_left,indent:e.indent,algn:e.alignment},children:[i===void 0?"":t("a:lnSpc",{},"lines"in i?t("a:spcPct",{val:Math.round(i.lines*1e5)}):t("a:spcPts",{val:b(i.fixed)})),P("a:spcBef",e.space_before),P("a:spcAft",e.space_after),e.bullet_color===void 0?"":e.bullet_color===null?t("a:buClrTx"):t("a:buClr",{},h(e.bullet_color)),e.bullet_size===void 0?"":e.bullet_size===null?t("a:buSzTx"):t("a:buSzPct",{val:Math.round(e.bullet_size*1e5)}),e.bullet_font===void 0?"":t("a:buFont",{typeface:e.bullet_font}),e.numbered!==void 0?t("a:buAutoNum",{type:e.numbered,startAt:e.start_at}):e.bullet===void 0?"":e.bullet===null?t("a:buNone"):t("a:buChar",{char:e.bullet}),n&&e.font&&Object.keys(e.font).length>0?runProps("a:defRPr",e.font):""]}}export function listStyle(e,n="a:lstStyle"){const i=e.slice(0,9).flatMap((a,o)=>{const{attrs:u,children:d}=k(a,!0),s=d.join("");return s===""&&Object.values(u).every(c=>c===void 0)?[]:[t(`a:lvl${String(o+1)}pPr`,u,s)]});return t(n,{},...i)}export function levelOf(e){return{alignment:e.alignment,line_spacing:e.line_spacing,space_before:e.space_before,space_after:e.space_after,...e.numbered===void 0?{bullet:e.bullet?e.bullet.char:null}:{numbered:e.numbered},...e.bullet?.font===void 0?{}:{bullet_font:e.bullet.font},...e.bullet_color===void 0?{}:{bullet_color:e.bullet_color},...e.bullet_size===void 0?{}:{bullet_size:e.bullet_size},...e.start_at===void 0?{}:{start_at:e.start_at},margin_left:e.margin_left,indent:e.indent,font:e.font}}export function bodyProps(e,n,i={}){const a=n!==void 0?t("a:normAutofit",{fontScale:Math.round(n*1e5)}):e.auto_size==="text"?t("a:normAutofit"):e.auto_size==="shape"?t("a:spAutoFit"):e.auto_size==="none"?t("a:noAutofit"):"";return t("a:bodyPr",{wrap:e.word_wrap===void 0?void 0:e.word_wrap?"square":"none",lIns:e.margin_left,tIns:e.margin_top,rIns:e.margin_right,bIns:e.margin_bottom,anchor:e.vertical_anchor===void 0?void 0:C[e.vertical_anchor],vert:e.orientation,numCol:e.columns===void 0||e.columns===1?void 0:e.columns,spcCol:e.columns===void 0||e.columns===1?void 0:e.column_spacing,...i},a)}export const bodyOfStyle=e=>({vertical_anchor:e.vertical_anchor,auto_size:e.auto_size,word_wrap:e.word_wrap,margin_left:e.margins.left,margin_top:e.margins.top,margin_right:e.margins.right,margin_bottom:e.margins.bottom,...e.orientation==="horz"?{}:{orientation:e.orientation},...e.columns===void 0?{}:{columns:e.columns.count,column_spacing:e.columns.spacing}}),bodyUnder=(e,n)=>({...e,...n?.body});const w="{B6F15528-21DE-4FAA-801E-634DDDAF4B2B}";export const SLIDE_NUMBER=[{level:0,runs:[{text:"‹#›",field:"slidenum"}]}];export function paragraph(e,n,i,a=0){const{font:o,bullet:u,numbered:d,...s}=i?.levels?.[e.level]??{},l={...e,...i?.paragraph,...s},c=d!==void 0?{numbered:d}:u!==void 0?{bullet:u}:i?.paragraph.numbered!==void 0?{numbered:i.paragraph.numbered}:i?.paragraph.bullet!==void 0?{bullet:i.paragraph.bullet}:void 0;c&&(delete l.bullet,delete l.numbered,delete l.bullet_font,Object.assign(l,c));for(const r of i?.paragraphs?.[a]??[])e[r]!==void 0?Object.assign(l,{[r]:e[r]}):(r==="bullet"||r==="numbered"||r==="bullet_font")&&Reflect.deleteProperty(l,r);const{attrs:v,children:x}=k(l,!1),f=t("a:pPr",{...v,lvl:e.level>0?e.level:void 0},...x),m=e.runs.flatMap(r=>r.text.split("\v").flatMap((p,z)=>{const _={...e.font,...i?.font,...o,...r.font},g=runProps("a:rPr",Object.keys(_).length>0?_:void 0,A(p,n));return[...z>0?[t("a:br",{},runProps("a:rPr",void 0,n))]:[],...p===""?[]:[r.field?t("a:fld",{id:w,type:r.field},g,t("a:t",{},y(p))):t("a:r",{},g,t("a:t",{},y(p)))]]}));return t("a:p",{},f==="<a:pPr/>"?"":f,...m,m.length===0?runProps("a:endParaRPr",{...e.font,...i?.font,...o},n):"")}export function txBody(e,n,i,a,o,u){const d=a.map((s,l)=>paragraph(s,o,u,l));return t(e,{},n,i,...d.length>0?d:[t("a:p")])}