ooxml-core 1.37.0 → 1.38.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 (335) hide show
  1. package/README.md +7 -0
  2. package/dist/automation/index.cjs +207 -207
  3. package/dist/automation/index.mjs +207 -207
  4. package/dist/{chunk-M2DFN3SP.mjs → chunk-XBIZIBTJ.mjs} +507 -10
  5. package/dist/collab/merge-values.d.ts +14 -0
  6. package/dist/collab/merge-values.d.ts.map +1 -0
  7. package/dist/docx/embedded.cjs +476 -474
  8. package/dist/docx/embedded.mjs +476 -474
  9. package/dist/docx/index.cjs +1075 -719
  10. package/dist/docx/index.d.ts +1 -0
  11. package/dist/docx/index.d.ts.map +1 -1
  12. package/dist/docx/index.mjs +1075 -720
  13. package/dist/docx/layout/index.cjs +4 -0
  14. package/dist/docx/layout/index.mjs +4 -0
  15. package/dist/docx/load/index.cjs +164 -164
  16. package/dist/docx/load/index.mjs +164 -164
  17. package/dist/docx/merge-snapshots.d.ts +9 -0
  18. package/dist/docx/merge-snapshots.d.ts.map +1 -0
  19. package/dist/docx/ui/index.cjs +155 -155
  20. package/dist/docx/ui/index.mjs +155 -155
  21. package/dist/embedding/index.cjs +207 -0
  22. package/dist/embedding/index.d.ts +3 -0
  23. package/dist/embedding/index.d.ts.map +1 -1
  24. package/dist/embedding/index.mjs +205 -1
  25. package/dist/embedding/onedrive/client.d.ts +4 -0
  26. package/dist/embedding/onedrive/client.d.ts.map +1 -0
  27. package/dist/embedding/onedrive/index.cjs +617 -0
  28. package/dist/embedding/onedrive/index.d.ts +6 -0
  29. package/dist/embedding/onedrive/index.d.ts.map +1 -0
  30. package/dist/embedding/onedrive/index.mjs +611 -0
  31. package/dist/embedding/onedrive/metadata.d.ts +6 -0
  32. package/dist/embedding/onedrive/metadata.d.ts.map +1 -0
  33. package/dist/embedding/onedrive/requests.d.ts +8 -0
  34. package/dist/embedding/onedrive/requests.d.ts.map +1 -0
  35. package/dist/embedding/onedrive/session.d.ts +4 -0
  36. package/dist/embedding/onedrive/session.d.ts.map +1 -0
  37. package/dist/embedding/onedrive/transport.d.ts +9 -0
  38. package/dist/embedding/onedrive/transport.d.ts.map +1 -0
  39. package/dist/embedding/onedrive/types.d.ts +86 -0
  40. package/dist/embedding/onedrive/types.d.ts.map +1 -0
  41. package/dist/embedding/onedrive/upload.d.ts +3 -0
  42. package/dist/embedding/onedrive/upload.d.ts.map +1 -0
  43. package/dist/embedding/storage-merge.d.ts +8 -0
  44. package/dist/embedding/storage-merge.d.ts.map +1 -0
  45. package/dist/embedding/storage-session.d.ts +7 -0
  46. package/dist/embedding/storage-session.d.ts.map +1 -0
  47. package/dist/embedding/versioned-storage.d.ts +67 -0
  48. package/dist/embedding/versioned-storage.d.ts.map +1 -0
  49. package/dist/index.cjs +1013 -340
  50. package/dist/index.mjs +1013 -340
  51. package/dist/opc/index.cjs +680 -216
  52. package/dist/opc/index.d.ts +1 -0
  53. package/dist/opc/index.d.ts.map +1 -1
  54. package/dist/opc/index.mjs +680 -217
  55. package/dist/opc/merge-snapshots.d.ts +26 -0
  56. package/dist/opc/merge-snapshots.d.ts.map +1 -0
  57. package/dist/pptx/automation/index.cjs +20 -6
  58. package/dist/pptx/automation/index.d.ts +8 -17
  59. package/dist/pptx/automation/index.d.ts.map +1 -1
  60. package/dist/pptx/automation/index.mjs +1 -1
  61. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -3
  62. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  63. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -3
  64. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  65. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -3
  66. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  67. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -3
  68. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  69. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -3
  70. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  71. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -3
  72. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  73. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -3
  74. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  75. package/dist/pptx/automation/schemas/index.d.ts +1 -3
  76. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  77. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -3
  78. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  79. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -3
  80. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  81. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -3
  82. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  83. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -3
  84. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  85. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -3
  86. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  87. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -3
  88. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  89. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -3
  90. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  91. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -3
  92. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  93. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -3
  94. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  95. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -3
  96. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  97. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -3
  98. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  99. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -3
  100. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  101. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -3
  102. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  103. package/dist/pptx/chunks/{collaboration-text-codec-Du_XeE_i.d.ts → collaboration-text-codec-1VmwD3yq.d.ts} +1 -3
  104. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +1 -0
  105. package/dist/pptx/chunks/{collaboration-text-merge-DWWWdT_t.d.ts → collaboration-text-merge-B-tth-0W.d.ts} +2 -4
  106. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +1 -0
  107. package/dist/pptx/chunks/{collaboration-text-positions-MMT3GkZi.d.ts → collaboration-text-positions-D-1Jo1Fz.d.ts} +1 -3
  108. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +1 -0
  109. package/dist/pptx/chunks/{collaboration-text-session-D0NOLQk7.d.ts → collaboration-text-session-CWHTaWF4.d.ts} +4 -6
  110. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +1 -0
  111. package/dist/pptx/chunks/{collaboration-text-session-delta-CzJGrTKJ.d.ts → collaboration-text-session-delta-Dxzybssp.d.ts} +2 -4
  112. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +1 -0
  113. package/dist/pptx/chunks/{color-ref-DT599vEx.d.ts → color-ref-CwUQoKPJ.d.ts} +1 -3
  114. package/dist/pptx/chunks/color-ref-CwUQoKPJ.d.ts.map +1 -0
  115. package/dist/pptx/chunks/{elements-f3UbFph-.d.ts → elements-DheCTwi0.d.ts} +4 -54
  116. package/dist/pptx/chunks/elements-DheCTwi0.d.ts.map +1 -0
  117. package/dist/pptx/chunks/{index-Bp-1pGo1.d.ts → index-B4ofjG6_.d.ts} +6 -384
  118. package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -0
  119. package/dist/pptx/chunks/{index-BnH2QjYm.d.ts → index-Jcce8TlI.d.ts} +5 -37
  120. package/dist/pptx/chunks/index-Jcce8TlI.d.ts.map +1 -0
  121. package/dist/pptx/chunks/{index-pLLN4OTz.d.ts → index-bgj0Ztnq.d.ts} +23 -543
  122. package/dist/pptx/chunks/index-bgj0Ztnq.d.ts.map +1 -0
  123. package/dist/pptx/chunks/{inspection-status-DjiWd_Aa.d.ts → inspection-status-TKac7eqb.d.ts} +1 -13
  124. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +1 -0
  125. package/dist/pptx/chunks/{schemas-fuDGetRe.d.ts → schemas-LHsDbVOw.d.ts} +1 -29
  126. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +1 -0
  127. package/dist/pptx/chunks/{smart-art-CmOrPLLQ.d.ts → smart-art-DB37AsFP.d.ts} +2 -46
  128. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +1 -0
  129. package/dist/pptx/chunks/{text-operations-D5sgspO6.d.ts → text-operations-CdgEnFuK.d.ts} +4 -32
  130. package/dist/pptx/chunks/text-operations-CdgEnFuK.d.ts.map +1 -0
  131. package/dist/pptx/chunks/{text-P9xVnXXf.d.ts → text-t_wJ2OwM.d.ts} +2 -12
  132. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +1 -0
  133. package/dist/pptx/cli/index.cjs +20 -6
  134. package/dist/pptx/cli/index.d.ts +1 -3
  135. package/dist/pptx/cli/index.d.ts.map +1 -1
  136. package/dist/pptx/converter/index.cjs +7 -0
  137. package/dist/pptx/converter/index.d.ts +1 -1
  138. package/dist/pptx/editor/ai/table-merge.d.ts +0 -2
  139. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  140. package/dist/pptx/editor/loader/element-patch-walker.d.ts +0 -2
  141. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  142. package/dist/pptx/editor/loader/is-external-url.d.ts +0 -2
  143. package/dist/pptx/editor/loader/is-external-url.d.ts.map +1 -1
  144. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +0 -2
  145. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  146. package/dist/pptx/editor/loader/load-content-helpers.d.ts +0 -2
  147. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  148. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +0 -2
  149. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  150. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +0 -2
  151. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  152. package/dist/pptx/editor/render/bullet-list.d.ts +0 -2
  153. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  154. package/dist/pptx/editor/render/bullet-toggle.d.ts +0 -2
  155. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  156. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +0 -2
  157. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  158. package/dist/pptx/editor/render/clone.d.ts +0 -2
  159. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  160. package/dist/pptx/editor/render/collaboration-active-session.d.ts +0 -2
  161. package/dist/pptx/editor/render/collaboration-active-session.d.ts.map +1 -1
  162. package/dist/pptx/editor/render/collaboration-departure.d.ts +0 -2
  163. package/dist/pptx/editor/render/collaboration-departure.d.ts.map +1 -1
  164. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +0 -2
  165. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  166. package/dist/pptx/editor/render/collaboration-load-origin.d.ts +0 -2
  167. package/dist/pptx/editor/render/collaboration-load-origin.d.ts.map +1 -1
  168. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +0 -2
  169. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  170. package/dist/pptx/editor/render/collaboration-sync.d.ts +4 -8
  171. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  172. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +1 -1
  173. package/dist/pptx/editor/render/collaboration-text-lease.d.ts +0 -2
  174. package/dist/pptx/editor/render/collaboration-text-lease.d.ts.map +1 -1
  175. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +1 -1
  176. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -4
  177. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts.map +1 -1
  178. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +1 -1
  179. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -3
  180. package/dist/pptx/editor/render/collaboration-text-projection.d.ts.map +1 -1
  181. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -5
  182. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts.map +1 -1
  183. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +1 -1
  184. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -3
  185. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts.map +1 -1
  186. package/dist/pptx/editor/render/collaboration-text-session.d.ts +1 -1
  187. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -4
  188. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
  189. package/dist/pptx/editor/render/custom-show-operations.d.ts +0 -2
  190. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  191. package/dist/pptx/editor/render/deck-save-encryption.d.ts +0 -2
  192. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  193. package/dist/pptx/editor/render/editor-history.d.ts +0 -2
  194. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  195. package/dist/pptx/editor/render/editor-mutations.d.ts +0 -2
  196. package/dist/pptx/editor/render/editor-mutations.d.ts.map +1 -1
  197. package/dist/pptx/editor/render/element-locks.d.ts +0 -2
  198. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  199. package/dist/pptx/editor/render/element-operations.d.ts +0 -2
  200. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  201. package/dist/pptx/editor/render/element.d.ts +0 -2
  202. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  203. package/dist/pptx/editor/render/find-replace.d.ts +2 -4
  204. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  205. package/dist/pptx/editor/render/font-family-update.d.ts +1 -3
  206. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  207. package/dist/pptx/editor/render/group-drill.d.ts +0 -2
  208. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  209. package/dist/pptx/editor/render/inline-list-body.d.ts +0 -2
  210. package/dist/pptx/editor/render/inline-list-body.d.ts.map +1 -1
  211. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +1 -3
  212. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  213. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts +0 -2
  214. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts.map +1 -1
  215. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts +0 -2
  216. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts.map +1 -1
  217. package/dist/pptx/editor/render/remap-text-bullets.d.ts +0 -2
  218. package/dist/pptx/editor/render/remap-text-bullets.d.ts.map +1 -1
  219. package/dist/pptx/editor/render/remap-text.d.ts +0 -2
  220. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  221. package/dist/pptx/editor/render/schema-label-keys.d.ts +0 -2
  222. package/dist/pptx/editor/render/schema-label-keys.d.ts.map +1 -1
  223. package/dist/pptx/editor/render/section-operations.d.ts +0 -2
  224. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  225. package/dist/pptx/editor/render/slide-background-patch.d.ts +0 -2
  226. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  227. package/dist/pptx/editor/render/slide-operations.d.ts +0 -2
  228. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  229. package/dist/pptx/editor/render/slide-search.d.ts +0 -2
  230. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  231. package/dist/pptx/editor/render/slide-size-rescale.d.ts +0 -2
  232. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  233. package/dist/pptx/editor/render/slide-transition-edits.d.ts +0 -2
  234. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  235. package/dist/pptx/editor/render/table-cell-edit.d.ts +0 -2
  236. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  237. package/dist/pptx/editor/render/table-cell-merge.d.ts +0 -2
  238. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  239. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +0 -2
  240. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  241. package/dist/pptx/editor/render/table-layout.d.ts +0 -2
  242. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  243. package/dist/pptx/editor/render/table-merge.d.ts +0 -2
  244. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  245. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +0 -2
  246. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  247. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +0 -2
  248. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  249. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +0 -2
  250. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  251. package/dist/pptx/editor/render/table-style-map-edits.d.ts +0 -2
  252. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  253. package/dist/pptx/editor/render/template-editing.d.ts +0 -2
  254. package/dist/pptx/editor/render/template-editing.d.ts.map +1 -1
  255. package/dist/pptx/editor/render/text-content-style.d.ts +1 -3
  256. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  257. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -4
  258. package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -1
  259. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +0 -2
  260. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  261. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -4
  262. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  263. package/dist/pptx/editor/render/text-theme.d.ts +0 -2
  264. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  265. package/dist/pptx/editor/render/theme-editor-model.d.ts +0 -2
  266. package/dist/pptx/editor/render/theme-editor-model.d.ts.map +1 -1
  267. package/dist/pptx/editor/render/theme-editor-presets.d.ts +0 -2
  268. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  269. package/dist/pptx/editor/render/update-text-segment-style.d.ts +1 -3
  270. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  271. package/dist/pptx/index.cjs +1687 -1159
  272. package/dist/pptx/index.d.ts +10 -10
  273. package/dist/pptx/index.mjs +1 -1
  274. package/dist/pptx/node/index.d.ts +1 -3
  275. package/dist/pptx/node/index.d.ts.map +1 -1
  276. package/dist/pptx/signature-node/index.d.ts +1 -21
  277. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  278. package/dist/pptx/smartart-layouts/index.d.ts +1 -7
  279. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  280. package/dist/pptx/ui/index.d.ts +1 -9
  281. package/dist/pptx/ui/index.d.ts.map +1 -1
  282. package/dist/teams/index.cjs +215 -201
  283. package/dist/teams/index.mjs +215 -201
  284. package/dist/text/index.cjs +193 -0
  285. package/dist/text/index.d.ts +1 -0
  286. package/dist/text/index.d.ts.map +1 -1
  287. package/dist/text/index.mjs +193 -1
  288. package/dist/text/merge-three-way.d.ts +9 -0
  289. package/dist/text/merge-three-way.d.ts.map +1 -0
  290. package/dist/visio/collab/index.cjs +226 -7
  291. package/dist/visio/collab/index.d.ts +1 -0
  292. package/dist/visio/collab/index.d.ts.map +1 -1
  293. package/dist/visio/collab/index.mjs +225 -7
  294. package/dist/visio/collab/merge-snapshots.d.ts +14 -0
  295. package/dist/visio/collab/merge-snapshots.d.ts.map +1 -0
  296. package/dist/visio/index.cjs +9 -9
  297. package/dist/visio/index.mjs +9 -9
  298. package/dist/visio/ui/index.cjs +9 -9
  299. package/dist/visio/ui/index.mjs +9 -9
  300. package/dist/xlsx/collab/index.cjs +49966 -507
  301. package/dist/xlsx/collab/index.d.ts +1 -0
  302. package/dist/xlsx/collab/index.d.ts.map +1 -1
  303. package/dist/xlsx/collab/index.mjs +49961 -507
  304. package/dist/xlsx/collab/merge-residual.d.ts +16 -0
  305. package/dist/xlsx/collab/merge-residual.d.ts.map +1 -0
  306. package/dist/xlsx/collab/merge-snapshots.d.ts +8 -0
  307. package/dist/xlsx/collab/merge-snapshots.d.ts.map +1 -0
  308. package/dist/xlsx/index.cjs +202 -202
  309. package/dist/xlsx/index.mjs +202 -202
  310. package/dist/xlsx/load/index.cjs +155 -155
  311. package/dist/xlsx/load/index.mjs +155 -155
  312. package/dist/xlsx/ui/index.cjs +202 -202
  313. package/dist/xlsx/ui/index.mjs +202 -202
  314. package/dist/xml/index.cjs +390 -22
  315. package/dist/xml/index.d.ts +1 -0
  316. package/dist/xml/index.d.ts.map +1 -1
  317. package/dist/xml/index.mjs +390 -23
  318. package/dist/xml/merge-three-way.d.ts +16 -0
  319. package/dist/xml/merge-three-way.d.ts.map +1 -0
  320. package/package.json +13 -8
  321. package/dist/pptx/chunks/collaboration-text-codec-Du_XeE_i.d.ts.map +0 -1
  322. package/dist/pptx/chunks/collaboration-text-merge-DWWWdT_t.d.ts.map +0 -1
  323. package/dist/pptx/chunks/collaboration-text-positions-MMT3GkZi.d.ts.map +0 -1
  324. package/dist/pptx/chunks/collaboration-text-session-D0NOLQk7.d.ts.map +0 -1
  325. package/dist/pptx/chunks/collaboration-text-session-delta-CzJGrTKJ.d.ts.map +0 -1
  326. package/dist/pptx/chunks/color-ref-DT599vEx.d.ts.map +0 -1
  327. package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +0 -1
  328. package/dist/pptx/chunks/index-BnH2QjYm.d.ts.map +0 -1
  329. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +0 -1
  330. package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +0 -1
  331. package/dist/pptx/chunks/inspection-status-DjiWd_Aa.d.ts.map +0 -1
  332. package/dist/pptx/chunks/schemas-fuDGetRe.d.ts.map +0 -1
  333. package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +0 -1
  334. package/dist/pptx/chunks/text-P9xVnXXf.d.ts.map +0 -1
  335. package/dist/pptx/chunks/text-operations-D5sgspO6.d.ts.map +0 -1
@@ -1,18 +1,13 @@
1
- import { n as PptxThemeColorSchemeName, t as PptxThemeColorRef } from "../chunks/color-ref-DT599vEx.js";
2
- //#region color/theme-palette.d.ts
1
+ import { n as PptxThemeColorSchemeName, t as PptxThemeColorRef } from "../chunks/color-ref-CwUQoKPJ.js";
3
2
  /** A luminance variant of a base theme colour. */
4
3
  interface ThemePaletteVariant {
5
4
  readonly kind: 'lighter' | 'darker';
6
5
  /** Percentage (80 for "Lighter 80%"); imported colour transforms may use fractional values. */
7
6
  readonly percent: number;
8
7
  }
9
- //#endregion
10
- //#region i18n/translator.d.ts
11
8
  type MessageParams = Readonly<Record<string, string | number>>;
12
9
  /** Translates a key, filling placeholders from `params`. */
13
10
  type Translate = (key: string, params?: MessageParams) => string;
14
- //#endregion
15
- //#region pptx/ui/theme-color-swatches.d.ts
16
11
  /** One swatch of the theme palette. */
17
12
  export interface ThemeColorSwatch {
18
13
  /** What the editor stores; serialises as `<a:schemeClr>`. */
@@ -68,8 +63,6 @@ export declare function themeColorVariantOfRef(ref: PptxThemeColorRef): ThemeCol
68
63
  * locale; without it the labels are English.
69
64
  */
70
65
  export declare function buildThemeColorSwatchGrid(themeColorMap: Readonly<Record<string, string>> | undefined, translate?: Translate): readonly ThemeColorSwatchColumn[];
71
- //#endregion
72
- //#region pptx/ui/theme-color-picker-state.d.ts
73
66
  /** What a picker should write back to the model on a commit. */
74
67
  export interface ThemeColorPickerCommit {
75
68
  /** Resolved `#rrggbb`, always set so rendering keeps working. */
@@ -103,6 +96,5 @@ export declare function customColorCommit(hex: string): ThemeColorPickerCommit;
103
96
  * with fewer variants than the row index leaves that cell `undefined`.
104
97
  */
105
98
  export declare function themeColorSwatchRows(columns: readonly ThemeColorSwatchColumn[]): readonly (readonly (ThemeColorSwatch | undefined)[])[];
106
- //#endregion
107
99
  export {};
108
100
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../color/theme-palette.ts","../../../i18n/translator.ts","../../../pptx/ui/theme-color-swatches.ts","../../../pptx/ui/theme-color-picker-state.ts"],"mappings":";;;UAUiB;WACP;;WAEA;;;;KCXE,gBAAgB,SAAS;;KAGzB,aAAa,aAAa,SAAS;;;;iBC2B9B;;WAEP,KAAK;;WAEL;;;;;WAKA;;WAEA,SAAS;;;YAIP,oBAAoB;;iBAGf;WACP,QAAQ;WACR,MAAM;WACN,mBAAmB;;;qBAuBhB,sCAAsC,SAAS;;qBAoB/C;WACH;WACD;;;;;;wBAUO,+BAA+B,qBAAqB;;wBAKpD,uBACf,QAAQ,0BACR,SAAS,oBACP;;;;;;wBASa,yBACf,KAAK,mBACL,SAAS,+BACT,YAAY;;;;;wBAqBG,uBAAuB,KAAK,oBAAoB;;;;;;;;wBAkBhD,0BACf,eAAe,SAAS,qCACxB,YAAY,qBACD;;;;iBCrJK;;WAEP;;WAEA,KAAK;;;wBAIC,oBACf,GAAG,+BACH,GAAG;;;;;;;;;;wBAuBY,wBACf,kBAAkB,0BAClB,KAAK,+BACL,0BACE;;wBA0Ba,kBAAkB,QAAQ,mBAAmB;;;;;wBAQ7C,kBAAkB,cAAc;;;;;;;wBAUhC,qBACf,kBAAkB,+CACI"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../color/theme-palette.ts","../../../i18n/translator.ts","../../../pptx/ui/theme-color-swatches.ts","../../../pptx/ui/theme-color-picker-state.ts"],"mappings":";;UAUiB;WACP;;WAEA;;KCXE,gBAAgB,SAAS;;KAGzB,aAAa,aAAa,SAAS;;iBC2B9B;;WAEP,KAAK;;WAEL;;;;;WAKA;;WAEA,SAAS;;;YAIP,oBAAoB;;iBAGf;WACP,QAAQ;WACR,MAAM;WACN,mBAAmB;;;qBAuBhB,sCAAsC,SAAS;;qBAoB/C;WACH;WACD;;;;;;wBAUO,+BAA+B,qBAAqB;;wBAKpD,uBACf,QAAQ,0BACR,SAAS,oBACP;;;;;;wBASa,yBACf,KAAK,mBACL,SAAS,+BACT,YAAY;;;;;wBAqBG,uBAAuB,KAAK,oBAAoB;;;;;;;;wBAkBhD,0BACf,eAAe,SAAS,qCACxB,YAAY,qBACD;;iBCrJK;;WAEP;;WAEA,KAAK;;;wBAIC,oBACf,GAAG,+BACH,GAAG;;;;;;;;;;wBAuBY,wBACf,kBAAkB,0BAClB,KAAK,+BACL,0BACE;;wBA0Ba,kBAAkB,QAAQ,mBAAmB;;;;;wBAQ7C,kBAAkB,cAAc;;;;;;;wBAUhC,qBACf,kBAAkB,+CACI"}
@@ -546,6 +546,172 @@ var init_xml = __esm({
546
546
  }
547
547
  });
548
548
 
549
+ // text/text-diff.ts
550
+ function shortestEdit(n, m, same8, maxEdits) {
551
+ const max = Math.min(n + m, maxEdits);
552
+ const offset2 = max + 1;
553
+ const v = new Int32Array(2 * max + 3);
554
+ const trace = [];
555
+ for (let d = 0; d <= max; d++) {
556
+ for (let k = -d; k <= d; k += 2) {
557
+ const down = k === -d || k !== d && v[offset2 + k - 1] < v[offset2 + k + 1];
558
+ let x = down ? v[offset2 + k + 1] : v[offset2 + k - 1] + 1;
559
+ let y = x - k;
560
+ while (x < n && y < m && same8(x, y)) {
561
+ x++;
562
+ y++;
563
+ }
564
+ v[offset2 + k] = x;
565
+ if (x >= n && y >= m) return backtrack(trace, n, m, d);
566
+ }
567
+ trace.push(v.slice(offset2 - d, offset2 + d + 1));
568
+ }
569
+ return void 0;
570
+ }
571
+ function backtrack(trace, n, m, d) {
572
+ const edits = [];
573
+ let x = n;
574
+ let y = m;
575
+ for (let step = d; step > 0; step--) {
576
+ const previous = trace[step - 1];
577
+ const at = (k2) => previous[k2 + step - 1];
578
+ const k = x - y;
579
+ const down = k === -step || k !== step && at(k - 1) < at(k + 1);
580
+ const before = down ? k + 1 : k - 1;
581
+ const startX = at(before);
582
+ const startY = startX - before;
583
+ edits.push(down ? [startX, startY, true] : [startX, startY, false]);
584
+ x = startX;
585
+ y = startY;
586
+ }
587
+ return edits.reverse();
588
+ }
589
+ function changesOf(edits) {
590
+ const changes = [];
591
+ for (const [x, y, inserts] of edits) {
592
+ const last = changes.at(-1);
593
+ if (last && last.fromEnd === x && last.toEnd === y) {
594
+ if (inserts) last.toEnd++;
595
+ else last.fromEnd++;
596
+ } else
597
+ changes.push({
598
+ fromStart: x,
599
+ fromEnd: inserts ? x : x + 1,
600
+ toStart: y,
601
+ toEnd: inserts ? y + 1 : y
602
+ });
603
+ }
604
+ return changes;
605
+ }
606
+ function characterChanges(a2, b, maxEdits) {
607
+ const edits = shortestEdit(
608
+ a2.length,
609
+ b.length,
610
+ (x, y) => a2.charCodeAt(x) === b.charCodeAt(y),
611
+ maxEdits
612
+ );
613
+ return edits && changesOf(edits);
614
+ }
615
+ function tokensOf(text, ids) {
616
+ const tokens2 = [];
617
+ const starts = [];
618
+ for (const match2 of text.matchAll(TOKEN)) {
619
+ let id = ids.get(match2[0]);
620
+ if (id === void 0) ids.set(match2[0], id = ids.size);
621
+ tokens2.push(id);
622
+ starts.push(match2.index);
623
+ }
624
+ starts.push(text.length);
625
+ return { tokens: tokens2, starts };
626
+ }
627
+ function tokenChanges(a2, b, maxEdits) {
628
+ const ids = /* @__PURE__ */ new Map();
629
+ const from = tokensOf(a2, ids);
630
+ const to = tokensOf(b, ids);
631
+ const edits = shortestEdit(
632
+ from.tokens.length,
633
+ to.tokens.length,
634
+ (x, y) => from.tokens[x] === to.tokens[y],
635
+ maxEdits
636
+ );
637
+ if (!edits) return void 0;
638
+ let budget = maxEdits;
639
+ return changesOf(edits).flatMap((stretch) => {
640
+ const change = {
641
+ fromStart: from.starts[stretch.fromStart],
642
+ fromEnd: from.starts[stretch.fromEnd],
643
+ toStart: to.starts[stretch.toStart],
644
+ toEnd: to.starts[stretch.toEnd]
645
+ };
646
+ const inner = change.fromEnd > change.fromStart && change.toEnd > change.toStart ? characterChanges(
647
+ a2.slice(change.fromStart, change.fromEnd),
648
+ b.slice(change.toStart, change.toEnd),
649
+ budget
650
+ ) : void 0;
651
+ if (!inner) return [change];
652
+ for (const found of inner)
653
+ budget -= found.fromEnd - found.fromStart + found.toEnd - found.toStart;
654
+ return inner.map((found) => ({
655
+ fromStart: found.fromStart + change.fromStart,
656
+ fromEnd: found.fromEnd + change.fromStart,
657
+ toStart: found.toStart + change.toStart,
658
+ toEnd: found.toEnd + change.toStart
659
+ }));
660
+ });
661
+ }
662
+ function diffText(from, to, maxEdits = 500) {
663
+ let start = 0;
664
+ while (start < from.length && start < to.length && from.charCodeAt(start) === to.charCodeAt(start))
665
+ start++;
666
+ let end = 0;
667
+ while (end < from.length - start && end < to.length - start && from.charCodeAt(from.length - 1 - end) === to.charCodeAt(to.length - 1 - end))
668
+ end++;
669
+ const a2 = from.slice(start, from.length - end);
670
+ const b = to.slice(start, to.length - end);
671
+ if (!a2.length && !b.length) return [];
672
+ const found = a2.length && b.length ? characterChanges(a2, b, maxEdits) ?? tokenChanges(a2, b, maxEdits) : void 0;
673
+ const changes = found ?? [{ fromStart: 0, fromEnd: a2.length, toStart: 0, toEnd: b.length }];
674
+ const result2 = [];
675
+ for (const change of changes) {
676
+ const placed = {
677
+ fromStart: change.fromStart + start,
678
+ fromEnd: change.fromEnd + start,
679
+ toStart: change.toStart + start,
680
+ toEnd: change.toEnd + start
681
+ };
682
+ if (placed.fromStart > 0 && placed.toStart > 0 && (isLowSurrogate(from, placed.fromStart) || isLowSurrogate(to, placed.toStart))) {
683
+ placed.fromStart--;
684
+ placed.toStart--;
685
+ }
686
+ if (isLowSurrogate(from, placed.fromEnd) || isLowSurrogate(to, placed.toEnd)) {
687
+ placed.fromEnd++;
688
+ placed.toEnd++;
689
+ }
690
+ const last = result2.at(-1);
691
+ if (last && placed.fromStart <= last.fromEnd) {
692
+ last.fromEnd = Math.max(last.fromEnd, placed.fromEnd);
693
+ last.toEnd = Math.max(last.toEnd, placed.toEnd);
694
+ } else result2.push(placed);
695
+ }
696
+ return result2;
697
+ }
698
+ var isLowSurrogate, TOKEN;
699
+ var init_text_diff = __esm({
700
+ "text/text-diff.ts"() {
701
+ isLowSurrogate = (text, at) => {
702
+ const code = text.charCodeAt(at);
703
+ return code >= 56320 && code <= 57343;
704
+ };
705
+ TOKEN = /[\p{L}\p{N}\p{M}]+|\s+|[\s\S]/gu;
706
+ }
707
+ });
708
+
709
+ // xml/merge-three-way.ts
710
+ var init_merge_three_way = __esm({
711
+ "xml/merge-three-way.ts"() {
712
+ }
713
+ });
714
+
549
715
  // xml/lite.ts
550
716
  var init_lite = __esm({
551
717
  "xml/lite.ts"() {
@@ -570,6 +736,7 @@ var init_xml2 = __esm({
570
736
  "xml/index.ts"() {
571
737
  init_namespaces();
572
738
  init_xml();
739
+ init_merge_three_way();
573
740
  init_lite();
574
741
  init_xpath();
575
742
  }
@@ -669,6 +836,16 @@ var init_package = __esm({
669
836
  "opc/package.ts"() {
670
837
  }
671
838
  });
839
+ var init_zip_limits = __esm({
840
+ "opc/zip-limits.ts"() {
841
+ }
842
+ });
843
+ var init_merge_snapshots = __esm({
844
+ "opc/merge-snapshots.ts"() {
845
+ new TextDecoder("utf-8", { fatal: true });
846
+ new TextEncoder();
847
+ }
848
+ });
672
849
 
673
850
  // opc/clone-part-graph.ts
674
851
  var init_clone_part_graph = __esm({
@@ -684,10 +861,6 @@ var init_safe_href = __esm({
684
861
  /* @__PURE__ */ new Set([...OPEN_SCHEMES, "ftp", "file"]);
685
862
  }
686
863
  });
687
- var init_zip_limits = __esm({
688
- "opc/zip-limits.ts"() {
689
- }
690
- });
691
864
  var init_embedded_packages = __esm({
692
865
  "opc/embedded-packages.ts"() {
693
866
  }
@@ -1165,6 +1338,7 @@ var init_opc = __esm({
1165
1338
  init_relationships();
1166
1339
  init_content_types();
1167
1340
  init_package();
1341
+ init_merge_snapshots();
1168
1342
  init_clone_part_graph();
1169
1343
  init_safe_href();
1170
1344
  init_embedded_packages();
@@ -1641,166 +1815,6 @@ var init_comment_ids = __esm({
1641
1815
  }
1642
1816
  });
1643
1817
 
1644
- // text/text-diff.ts
1645
- function shortestEdit(n, m, same8, maxEdits) {
1646
- const max = Math.min(n + m, maxEdits);
1647
- const offset2 = max + 1;
1648
- const v = new Int32Array(2 * max + 3);
1649
- const trace = [];
1650
- for (let d = 0; d <= max; d++) {
1651
- for (let k = -d; k <= d; k += 2) {
1652
- const down = k === -d || k !== d && v[offset2 + k - 1] < v[offset2 + k + 1];
1653
- let x = down ? v[offset2 + k + 1] : v[offset2 + k - 1] + 1;
1654
- let y = x - k;
1655
- while (x < n && y < m && same8(x, y)) {
1656
- x++;
1657
- y++;
1658
- }
1659
- v[offset2 + k] = x;
1660
- if (x >= n && y >= m) return backtrack(trace, n, m, d);
1661
- }
1662
- trace.push(v.slice(offset2 - d, offset2 + d + 1));
1663
- }
1664
- return void 0;
1665
- }
1666
- function backtrack(trace, n, m, d) {
1667
- const edits = [];
1668
- let x = n;
1669
- let y = m;
1670
- for (let step = d; step > 0; step--) {
1671
- const previous = trace[step - 1];
1672
- const at = (k2) => previous[k2 + step - 1];
1673
- const k = x - y;
1674
- const down = k === -step || k !== step && at(k - 1) < at(k + 1);
1675
- const before = down ? k + 1 : k - 1;
1676
- const startX = at(before);
1677
- const startY = startX - before;
1678
- edits.push(down ? [startX, startY, true] : [startX, startY, false]);
1679
- x = startX;
1680
- y = startY;
1681
- }
1682
- return edits.reverse();
1683
- }
1684
- function changesOf(edits) {
1685
- const changes = [];
1686
- for (const [x, y, inserts] of edits) {
1687
- const last = changes.at(-1);
1688
- if (last && last.fromEnd === x && last.toEnd === y) {
1689
- if (inserts) last.toEnd++;
1690
- else last.fromEnd++;
1691
- } else
1692
- changes.push({
1693
- fromStart: x,
1694
- fromEnd: inserts ? x : x + 1,
1695
- toStart: y,
1696
- toEnd: inserts ? y + 1 : y
1697
- });
1698
- }
1699
- return changes;
1700
- }
1701
- function characterChanges(a2, b, maxEdits) {
1702
- const edits = shortestEdit(
1703
- a2.length,
1704
- b.length,
1705
- (x, y) => a2.charCodeAt(x) === b.charCodeAt(y),
1706
- maxEdits
1707
- );
1708
- return edits && changesOf(edits);
1709
- }
1710
- function tokensOf(text, ids) {
1711
- const tokens2 = [];
1712
- const starts = [];
1713
- for (const match2 of text.matchAll(TOKEN)) {
1714
- let id = ids.get(match2[0]);
1715
- if (id === void 0) ids.set(match2[0], id = ids.size);
1716
- tokens2.push(id);
1717
- starts.push(match2.index);
1718
- }
1719
- starts.push(text.length);
1720
- return { tokens: tokens2, starts };
1721
- }
1722
- function tokenChanges(a2, b, maxEdits) {
1723
- const ids = /* @__PURE__ */ new Map();
1724
- const from = tokensOf(a2, ids);
1725
- const to = tokensOf(b, ids);
1726
- const edits = shortestEdit(
1727
- from.tokens.length,
1728
- to.tokens.length,
1729
- (x, y) => from.tokens[x] === to.tokens[y],
1730
- maxEdits
1731
- );
1732
- if (!edits) return void 0;
1733
- let budget = maxEdits;
1734
- return changesOf(edits).flatMap((stretch) => {
1735
- const change = {
1736
- fromStart: from.starts[stretch.fromStart],
1737
- fromEnd: from.starts[stretch.fromEnd],
1738
- toStart: to.starts[stretch.toStart],
1739
- toEnd: to.starts[stretch.toEnd]
1740
- };
1741
- const inner = change.fromEnd > change.fromStart && change.toEnd > change.toStart ? characterChanges(
1742
- a2.slice(change.fromStart, change.fromEnd),
1743
- b.slice(change.toStart, change.toEnd),
1744
- budget
1745
- ) : void 0;
1746
- if (!inner) return [change];
1747
- for (const found of inner)
1748
- budget -= found.fromEnd - found.fromStart + found.toEnd - found.toStart;
1749
- return inner.map((found) => ({
1750
- fromStart: found.fromStart + change.fromStart,
1751
- fromEnd: found.fromEnd + change.fromStart,
1752
- toStart: found.toStart + change.toStart,
1753
- toEnd: found.toEnd + change.toStart
1754
- }));
1755
- });
1756
- }
1757
- function diffText(from, to, maxEdits = 500) {
1758
- let start = 0;
1759
- while (start < from.length && start < to.length && from.charCodeAt(start) === to.charCodeAt(start))
1760
- start++;
1761
- let end = 0;
1762
- while (end < from.length - start && end < to.length - start && from.charCodeAt(from.length - 1 - end) === to.charCodeAt(to.length - 1 - end))
1763
- end++;
1764
- const a2 = from.slice(start, from.length - end);
1765
- const b = to.slice(start, to.length - end);
1766
- if (!a2.length && !b.length) return [];
1767
- const found = a2.length && b.length ? characterChanges(a2, b, maxEdits) ?? tokenChanges(a2, b, maxEdits) : void 0;
1768
- const changes = found ?? [{ fromStart: 0, fromEnd: a2.length, toStart: 0, toEnd: b.length }];
1769
- const result2 = [];
1770
- for (const change of changes) {
1771
- const placed = {
1772
- fromStart: change.fromStart + start,
1773
- fromEnd: change.fromEnd + start,
1774
- toStart: change.toStart + start,
1775
- toEnd: change.toEnd + start
1776
- };
1777
- if (placed.fromStart > 0 && placed.toStart > 0 && (isLowSurrogate(from, placed.fromStart) || isLowSurrogate(to, placed.toStart))) {
1778
- placed.fromStart--;
1779
- placed.toStart--;
1780
- }
1781
- if (isLowSurrogate(from, placed.fromEnd) || isLowSurrogate(to, placed.toEnd)) {
1782
- placed.fromEnd++;
1783
- placed.toEnd++;
1784
- }
1785
- const last = result2.at(-1);
1786
- if (last && placed.fromStart <= last.fromEnd) {
1787
- last.fromEnd = Math.max(last.fromEnd, placed.fromEnd);
1788
- last.toEnd = Math.max(last.toEnd, placed.toEnd);
1789
- } else result2.push(placed);
1790
- }
1791
- return result2;
1792
- }
1793
- var isLowSurrogate, TOKEN;
1794
- var init_text_diff = __esm({
1795
- "text/text-diff.ts"() {
1796
- isLowSurrogate = (text, at) => {
1797
- const code = text.charCodeAt(at);
1798
- return code >= 56320 && code <= 57343;
1799
- };
1800
- TOKEN = /[\p{L}\p{N}\p{M}]+|\s+|[\s\S]/gu;
1801
- }
1802
- });
1803
-
1804
1818
  // xlsx/write/comment-mentions.ts
1805
1819
  function patchCommentMentions(node2, before, message, ids, commentId, preserveIds) {
1806
1820
  const container = first(node2, "mentions", NS.tc);
@@ -52154,12 +52168,12 @@ function icsUtc(ms) {
52154
52168
  }
52155
52169
  var icsEscape = (text) => text.replace(/\\/gu, "\\\\").replace(/\r\n|\r|\n/gu, "\\n").replace(/;/gu, "\\;").replace(/,/gu, "\\,");
52156
52170
  function icsFold(line3) {
52157
- const encoder = new TextEncoder();
52171
+ const encoder2 = new TextEncoder();
52158
52172
  const out = [];
52159
52173
  let current = "";
52160
52174
  let bytes = 0;
52161
52175
  for (const ch of line3) {
52162
- const size = encoder.encode(ch).length;
52176
+ const size = encoder2.encode(ch).length;
52163
52177
  const limit2 = out.length === 0 ? 75 : 74;
52164
52178
  if (bytes + size > limit2) {
52165
52179
  out.push(current);
@@ -52984,25 +52998,25 @@ function createTransportProvider({ doc, awareness }, { transport, maxMessageByte
52984
52998
  events.emit("synced", next);
52985
52999
  };
52986
53000
  const fail3 = (reason) => events.emit("error", new Error(reason));
52987
- const send = (encoder) => {
52988
- if (open) transport.send(encoding__namespace.toUint8Array(encoder));
53001
+ const send = (encoder2) => {
53002
+ if (open) transport.send(encoding__namespace.toUint8Array(encoder2));
52989
53003
  };
52990
53004
  const sendStep1 = () => {
52991
- const encoder = encoding__namespace.createEncoder();
52992
- encoding__namespace.writeVarUint(encoder, MESSAGE_SYNC);
52993
- encoding__namespace.writeVarUint(encoder, SYNC_STEP1);
52994
- encoding__namespace.writeVarUint8Array(encoder, Y15__namespace.encodeStateVector(doc));
52995
- send(encoder);
53005
+ const encoder2 = encoding__namespace.createEncoder();
53006
+ encoding__namespace.writeVarUint(encoder2, MESSAGE_SYNC);
53007
+ encoding__namespace.writeVarUint(encoder2, SYNC_STEP1);
53008
+ encoding__namespace.writeVarUint8Array(encoder2, Y15__namespace.encodeStateVector(doc));
53009
+ send(encoder2);
52996
53010
  };
52997
53011
  const sendAwareness = (clients) => {
52998
53012
  if (clients.length === 0) return;
52999
- const encoder = encoding__namespace.createEncoder();
53000
- encoding__namespace.writeVarUint(encoder, MESSAGE_AWARENESS);
53013
+ const encoder2 = encoding__namespace.createEncoder();
53014
+ encoding__namespace.writeVarUint(encoder2, MESSAGE_AWARENESS);
53001
53015
  encoding__namespace.writeVarUint8Array(
53002
- encoder,
53016
+ encoder2,
53003
53017
  awarenessProtocol__namespace.encodeAwarenessUpdate(awareness, clients)
53004
53018
  );
53005
- send(encoder);
53019
+ send(encoder2);
53006
53020
  };
53007
53021
  const handshake = () => {
53008
53022
  sendStep1();
@@ -53010,11 +53024,11 @@ function createTransportProvider({ doc, awareness }, { transport, maxMessageByte
53010
53024
  if (local !== null) awareness.setLocalState(local);
53011
53025
  };
53012
53026
  const sendUpdate = (update) => {
53013
- const encoder = encoding__namespace.createEncoder();
53014
- encoding__namespace.writeVarUint(encoder, MESSAGE_SYNC);
53015
- encoding__namespace.writeVarUint(encoder, SYNC_UPDATE);
53016
- encoding__namespace.writeVarUint8Array(encoder, update);
53017
- send(encoder);
53027
+ const encoder2 = encoding__namespace.createEncoder();
53028
+ encoding__namespace.writeVarUint(encoder2, MESSAGE_SYNC);
53029
+ encoding__namespace.writeVarUint(encoder2, SYNC_UPDATE);
53030
+ encoding__namespace.writeVarUint8Array(encoder2, update);
53031
+ send(encoder2);
53018
53032
  };
53019
53033
  const onDocUpdate = (update, updateOrigin) => {
53020
53034
  if (updateOrigin !== origin && open) sendUpdate(update);
@@ -53023,22 +53037,22 @@ function createTransportProvider({ doc, awareness }, { transport, maxMessageByte
53023
53037
  if (updateOrigin === origin) return;
53024
53038
  sendAwareness([...change.added, ...change.updated, ...change.removed]);
53025
53039
  };
53026
- const readSync = (decoder) => {
53027
- const kind = decoding__namespace.readVarUint(decoder);
53028
- const payload = decoding__namespace.readVarUint8Array(decoder);
53040
+ const readSync = (decoder2) => {
53041
+ const kind = decoding__namespace.readVarUint(decoder2);
53042
+ const payload = decoding__namespace.readVarUint8Array(decoder2);
53029
53043
  if (kind === SYNC_STEP1) {
53030
53044
  if (awareness.getLocalState() !== null) sendAwareness([doc.clientID]);
53031
- const encoder = encoding__namespace.createEncoder();
53032
- encoding__namespace.writeVarUint(encoder, MESSAGE_SYNC);
53033
- encoding__namespace.writeVarUint(encoder, SYNC_STEP2);
53045
+ const encoder2 = encoding__namespace.createEncoder();
53046
+ encoding__namespace.writeVarUint(encoder2, MESSAGE_SYNC);
53047
+ encoding__namespace.writeVarUint(encoder2, SYNC_STEP2);
53034
53048
  let diff;
53035
53049
  try {
53036
53050
  diff = Y15__namespace.encodeStateAsUpdate(doc, payload);
53037
53051
  } catch {
53038
53052
  return fail3("malformed state vector");
53039
53053
  }
53040
- encoding__namespace.writeVarUint8Array(encoder, diff);
53041
- return send(encoder);
53054
+ encoding__namespace.writeVarUint8Array(encoder2, diff);
53055
+ return send(encoder2);
53042
53056
  }
53043
53057
  if (kind !== SYNC_STEP2 && kind !== SYNC_UPDATE) return fail3(`unknown sync message ${kind}`);
53044
53058
  const result2 = applyUpdateSafe(doc, payload, origin, { maxBytes: maxMessageBytes });
@@ -53050,13 +53064,13 @@ function createTransportProvider({ doc, awareness }, { transport, maxMessageByte
53050
53064
  if (!(data instanceof Uint8Array) || data.byteLength === 0 || data.byteLength > maxMessageBytes)
53051
53065
  return fail3("message is empty, not binary, or too large");
53052
53066
  try {
53053
- const decoder = decoding__namespace.createDecoder(data);
53054
- const type = decoding__namespace.readVarUint(decoder);
53055
- if (type === MESSAGE_SYNC) readSync(decoder);
53067
+ const decoder2 = decoding__namespace.createDecoder(data);
53068
+ const type = decoding__namespace.readVarUint(decoder2);
53069
+ if (type === MESSAGE_SYNC) readSync(decoder2);
53056
53070
  else if (type === MESSAGE_AWARENESS)
53057
53071
  awarenessProtocol__namespace.applyAwarenessUpdate(
53058
53072
  awareness,
53059
- decoding__namespace.readVarUint8Array(decoder),
53073
+ decoding__namespace.readVarUint8Array(decoder2),
53060
53074
  origin
53061
53075
  );
53062
53076
  else if (type === MESSAGE_QUERY_AWARENESS) sendAwareness([...awareness.getStates().keys()]);
@@ -53208,9 +53222,9 @@ function readOnlyTransport(inner, isReadOnly) {
53208
53222
  var SYNC_STEP12 = 0;
53209
53223
  function carriesDocumentChanges(data) {
53210
53224
  try {
53211
- const decoder = decoding__namespace.createDecoder(data);
53212
- if (decoding__namespace.readVarUint(decoder) !== MESSAGE_SYNC) return false;
53213
- return decoding__namespace.readVarUint(decoder) !== SYNC_STEP12;
53225
+ const decoder2 = decoding__namespace.createDecoder(data);
53226
+ if (decoding__namespace.readVarUint(decoder2) !== MESSAGE_SYNC) return false;
53227
+ return decoding__namespace.readVarUint(decoder2) !== SYNC_STEP12;
53214
53228
  } catch {
53215
53229
  return true;
53216
53230
  }
@@ -56198,11 +56212,11 @@ function validateTeamsUpdate(doc, update, actor, options = {}) {
56198
56212
  function validateTeamsSyncMessage(doc, message, actor, options = {}) {
56199
56213
  let payload;
56200
56214
  try {
56201
- const decoder = decoding__namespace.createDecoder(message);
56202
- if (decoding__namespace.readVarUint(decoder) !== MESSAGE_SYNC) return OK;
56203
- const kind = decoding__namespace.readVarUint(decoder);
56215
+ const decoder2 = decoding__namespace.createDecoder(message);
56216
+ if (decoding__namespace.readVarUint(decoder2) !== MESSAGE_SYNC) return OK;
56217
+ const kind = decoding__namespace.readVarUint(decoder2);
56204
56218
  if (kind !== 1 && kind !== 2) return OK;
56205
- payload = decoding__namespace.readVarUint8Array(decoder);
56219
+ payload = decoding__namespace.readVarUint8Array(decoder2);
56206
56220
  } catch {
56207
56221
  return fail2({ code: "invalid-update" });
56208
56222
  }