ooxml-ui 1.33.0 → 1.35.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 (119) hide show
  1. package/dist/{chunk-VSHQNHDG.js → chunk-BOTLS2PR.js} +5 -0
  2. package/dist/{chunk-6TS7ASDJ.js → chunk-C4KI635Q.js} +2 -17
  3. package/dist/chunk-D5IRYZLP.js +19 -0
  4. package/dist/{chunk-XPUXFZNB.js → chunk-FFM3WVLU.js} +18 -4
  5. package/dist/{chunk-CALEXPBD.js → chunk-GZNBWWJ5.js} +840 -51
  6. package/dist/{chunk-QK5DQR6L.js → chunk-TGG36HHF.js} +2 -2
  7. package/dist/docx/print-picture.d.ts +4 -0
  8. package/dist/docx.js +46 -7
  9. package/dist/fonts/catalog.d.ts +0 -1
  10. package/dist/image-native-size.d.ts +43 -0
  11. package/dist/image-native-size.d.ts.map +1 -0
  12. package/dist/index.js +4 -4
  13. package/dist/picture-artistic-filters.d.ts +9 -0
  14. package/dist/picture-artistic-filters.d.ts.map +1 -0
  15. package/dist/picture-artistic-preview.d.ts +3 -0
  16. package/dist/picture-artistic-preview.d.ts.map +1 -0
  17. package/dist/picture-effects.d.ts +3 -1
  18. package/dist/picture-effects.d.ts.map +1 -0
  19. package/dist/picture-paint.d.ts +23 -0
  20. package/dist/picture-paint.d.ts.map +1 -0
  21. package/dist/picture-pixels.d.ts +11 -0
  22. package/dist/picture-pixels.d.ts.map +1 -0
  23. package/dist/picture-standard-filter.d.ts +6 -0
  24. package/dist/picture-standard-filter.d.ts.map +1 -0
  25. package/dist/picture-view.d.ts +10 -0
  26. package/dist/picture-view.d.ts.map +1 -0
  27. package/dist/pptx/{chart-3d-view-scene-HNL4NWJT.mjs → chart-3d-view-scene-BKNMGRGO.mjs} +3 -25
  28. package/dist/pptx/{chart-3d-view-scene-OPVBTZL5.cjs → chart-3d-view-scene-V55XPBBF.cjs} +39 -61
  29. package/dist/pptx/{chunk-7DT3UJQB.mjs → chunk-5EERUTDC.mjs} +7 -3
  30. package/dist/pptx/{chunk-S3L5NNCK.cjs → chunk-FROIGMTI.cjs} +1 -1
  31. package/dist/pptx/{chunk-ZS5EVODY.cjs → chunk-GKQULDFF.cjs} +52 -48
  32. package/dist/pptx/{chunk-CH4Z6H6C.mjs → chunk-GPQP2R5Y.mjs} +1017 -371
  33. package/dist/pptx/{chunk-S5I64Y55.cjs → chunk-HIRBPTML.cjs} +12 -12
  34. package/dist/pptx/{chunk-D4LJJ7Z7.cjs → chunk-KJICUZXM.cjs} +171 -540
  35. package/dist/pptx/{chunk-TDIJHLS5.cjs → chunk-NPYNJOK2.cjs} +1351 -699
  36. package/dist/pptx/{chunk-RZVEPTLN.mjs → chunk-QK6LJT3K.mjs} +140 -529
  37. package/dist/pptx/{chunk-LCCRLB7Q.mjs → chunk-UHDWWRTX.mjs} +1 -1
  38. package/dist/pptx/{chunk-SPOECCPV.mjs → chunk-WZHYA2B3.mjs} +1 -1
  39. package/dist/pptx/dom/elements/smartart.d.ts.map +1 -1
  40. package/dist/pptx/dom/index.cjs +424 -424
  41. package/dist/pptx/dom/index.mjs +8 -8
  42. package/dist/pptx/export/html2canvas-clone.cjs +6 -6
  43. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  44. package/dist/pptx/index.cjs +3356 -3352
  45. package/dist/pptx/index.mjs +4 -4
  46. package/dist/pptx/render/chart-3d-projection.d.ts +5 -54
  47. package/dist/pptx/render/chart-3d-projection.d.ts.map +1 -1
  48. package/dist/pptx/render/chart-3d-shading.d.ts +7 -10
  49. package/dist/pptx/render/chart-3d-shading.d.ts.map +1 -1
  50. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  51. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  52. package/dist/pptx/render/chart-funnel-sunburst.d.ts +1 -1
  53. package/dist/pptx/render/chart-funnel-sunburst.d.ts.map +1 -1
  54. package/dist/pptx/render/chart-map-projection.d.ts +2 -37
  55. package/dist/pptx/render/chart-map-projection.d.ts.map +1 -1
  56. package/dist/pptx/render/chart-overlays.cjs +7 -7
  57. package/dist/pptx/render/chart-overlays.mjs +1 -1
  58. package/dist/pptx/render/chart-region-map-alias.d.ts +1 -11
  59. package/dist/pptx/render/chart-region-map-alias.d.ts.map +1 -1
  60. package/dist/pptx/render/chart-region-map-colors.d.ts +1 -3
  61. package/dist/pptx/render/chart-region-map-colors.d.ts.map +1 -1
  62. package/dist/pptx/render/chart-region-map-data.d.ts +2 -44
  63. package/dist/pptx/render/chart-region-map-data.d.ts.map +1 -1
  64. package/dist/pptx/render/chart-region-map-view.d.ts.map +1 -1
  65. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  66. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  67. package/dist/pptx/render/chart-view-model-types.d.ts +2 -0
  68. package/dist/pptx/render/chart-view-model-types.d.ts.map +1 -1
  69. package/dist/pptx/render/chart-view-model.cjs +44 -44
  70. package/dist/pptx/render/chart-view-model.mjs +1 -1
  71. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  72. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  73. package/dist/pptx/render/editor-key-target.d.ts.map +1 -1
  74. package/dist/pptx/render/image-effect-filter-values.d.ts +1 -10
  75. package/dist/pptx/render/image-effect-filter-values.d.ts.map +1 -1
  76. package/dist/pptx/render/image-effects.d.ts +1 -0
  77. package/dist/pptx/render/image-effects.d.ts.map +1 -1
  78. package/dist/pptx/render/image-native-size.d.ts +1 -42
  79. package/dist/pptx/render/image-native-size.d.ts.map +1 -1
  80. package/dist/pptx/render/image-tiling.d.ts.map +1 -1
  81. package/dist/pptx/render/index.d.ts +1 -1
  82. package/dist/pptx/render/index.d.ts.map +1 -1
  83. package/dist/pptx/render/render-cache.d.ts +1 -3
  84. package/dist/pptx/render/render-cache.d.ts.map +1 -1
  85. package/dist/pptx/render/smartart-drawing.d.ts +3 -0
  86. package/dist/pptx/render/smartart-drawing.d.ts.map +1 -1
  87. package/dist/pptx/render/smartart-picture-image.d.ts +9 -0
  88. package/dist/pptx/render/smartart-picture-image.d.ts.map +1 -0
  89. package/dist/pptx/render/smartart-reflow-to-shapes.d.ts.map +1 -1
  90. package/dist/pptx/{smartart-insert-preview-RQUFRLSV.mjs → smartart-insert-preview-6BITTUI4.mjs} +5 -5
  91. package/dist/pptx/{smartart-insert-preview-YKNB37GE.cjs → smartart-insert-preview-BUOS5XQR.cjs} +6 -6
  92. package/dist/{presentation-preview-DKJC6TUJ.js → presentation-preview-ZVJNGOJO.js} +1 -1
  93. package/dist/render-cache.d.ts +4 -0
  94. package/dist/render-cache.d.ts.map +1 -0
  95. package/dist/smartart/smartart-paint.d.ts +2 -1
  96. package/dist/smartart/smartart-picture.d.ts +4 -3
  97. package/dist/smartart.d.ts +3 -0
  98. package/dist/smartart.js +1 -1
  99. package/dist/teams/i18n/locales/de.d.ts +1 -0
  100. package/dist/teams/i18n/locales/en/shell.d.ts +1 -0
  101. package/dist/teams/i18n/locales/en.d.ts +1 -0
  102. package/dist/teams/i18n/locales/es.d.ts +1 -0
  103. package/dist/teams/i18n/locales/fr.d.ts +1 -0
  104. package/dist/teams/i18n/locales/zh-CN.d.ts +1 -0
  105. package/dist/teams.js +2 -2
  106. package/dist/theme-bridge.d.ts +0 -1
  107. package/dist/visio/viewer-chart-editor.d.ts +2 -1
  108. package/dist/visio.js +43 -11
  109. package/dist/xlsx/dialogs/custom-autofilter.d.ts +12 -0
  110. package/dist/xlsx/dialogs/filter-dates.d.ts +4 -0
  111. package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
  112. package/dist/xlsx/dialogs/text-to-columns.d.ts +0 -7
  113. package/dist/xlsx/dialogs/top10-filter.d.ts +5 -0
  114. package/dist/xlsx/grid/filter-buttons.d.ts +11 -0
  115. package/dist/xlsx/grid/filter-menu.d.ts +10 -0
  116. package/dist/xlsx/grid/filter-presets.d.ts +19 -0
  117. package/dist/xlsx/grid/styles.d.ts +1 -1
  118. package/dist/xlsx.js +875 -169
  119. package/package.json +2 -2
@@ -6,17 +6,17 @@ var chunkWSTWYZFM_cjs = require('./chunk-WSTWYZFM.cjs');
6
6
  var chunkX7FS7XHU_cjs = require('./chunk-X7FS7XHU.cjs');
7
7
  var chunkXFQ2RD4I_cjs = require('./chunk-XFQ2RD4I.cjs');
8
8
  var chunk52LKIMK3_cjs = require('./chunk-52LKIMK3.cjs');
9
- var chunkS5I64Y55_cjs = require('./chunk-S5I64Y55.cjs');
9
+ var chunkHIRBPTML_cjs = require('./chunk-HIRBPTML.cjs');
10
10
  var chunkWBGU7BWD_cjs = require('./chunk-WBGU7BWD.cjs');
11
11
  var chunkFFWLDANS_cjs = require('./chunk-FFWLDANS.cjs');
12
12
  var chunkZJFN5POF_cjs = require('./chunk-ZJFN5POF.cjs');
13
13
  var chunkCWWL7MCL_cjs = require('./chunk-CWWL7MCL.cjs');
14
14
  var chunkWB25PCHQ_cjs = require('./chunk-WB25PCHQ.cjs');
15
15
  var chunkUSBRSEJK_cjs = require('./chunk-USBRSEJK.cjs');
16
- var chunkD4LJJ7Z7_cjs = require('./chunk-D4LJJ7Z7.cjs');
16
+ var chunkKJICUZXM_cjs = require('./chunk-KJICUZXM.cjs');
17
17
  var chunkFOE75Z6N_cjs = require('./chunk-FOE75Z6N.cjs');
18
18
  var chunkNTXHQHCS_cjs = require('./chunk-NTXHQHCS.cjs');
19
- var chunkS3L5NNCK_cjs = require('./chunk-S3L5NNCK.cjs');
19
+ var chunkFROIGMTI_cjs = require('./chunk-FROIGMTI.cjs');
20
20
  var chunk3CYWRMYZ_cjs = require('./chunk-3CYWRMYZ.cjs');
21
21
  var chunkEW5DW5KR_cjs = require('./chunk-EW5DW5KR.cjs');
22
22
  var chunkUPN5FFKP_cjs = require('./chunk-UPN5FFKP.cjs');
@@ -28,6 +28,7 @@ var chunk3RIGT7H6_cjs = require('./chunk-3RIGT7H6.cjs');
28
28
  var chunkPBZWDEXQ_cjs = require('./chunk-PBZWDEXQ.cjs');
29
29
  var pptx = require('ooxml-core/pptx');
30
30
  var color = require('ooxml-core/color');
31
+ var geometry = require('ooxml-core/geometry');
31
32
  var text$1 = require('ooxml-core/text');
32
33
  var drawingml = require('ooxml-core/drawingml');
33
34
  var textSegmentParagraphBreak = require('ooxml-core/pptx/editor/render/text-segment-paragraph-break');
@@ -42,7 +43,6 @@ var tableCellEdit = require('ooxml-core/pptx/editor/render/table-cell-edit');
42
43
  var tableDataGridOps = require('ooxml-core/pptx/editor/render/table-data-grid-ops');
43
44
  var tableCellMerge = require('ooxml-core/pptx/editor/render/table-cell-merge');
44
45
  var clone = require('ooxml-core/pptx/editor/render/clone');
45
- var geometry = require('ooxml-core/geometry');
46
46
  var groupOps = require('ooxml-core/pptx/editor/render/group-ops');
47
47
  var slideBackgroundPatch = require('ooxml-core/pptx/editor/render/slide-background-patch');
48
48
  var elementOperations = require('ooxml-core/pptx/editor/render/element-operations');
@@ -1632,18 +1632,18 @@ function getComputedStrokeStyle(element) {
1632
1632
  return { ...NO_STROKE, ...joins };
1633
1633
  }
1634
1634
  const borderWidth = width;
1635
- const borderStyle = chunkD4LJJ7Z7_cjs.getCssBorderDashStyle(
1636
- chunkD4LJJ7Z7_cjs.normalizeStrokeDashType(style.strokeDash),
1635
+ const borderStyle = chunkKJICUZXM_cjs.getCssBorderDashStyle(
1636
+ chunkKJICUZXM_cjs.normalizeStrokeDashType(style.strokeDash),
1637
1637
  style.compoundLine
1638
1638
  );
1639
- const rawColor = style.strokeColor ?? chunkD4LJJ7Z7_cjs.DEFAULT_STROKE_COLOR;
1640
- const borderColor = style.strokeOpacity === void 0 ? rawColor : chunkD4LJJ7Z7_cjs.colorWithOpacity(chunkD4LJJ7Z7_cjs.normalizeHexColor(rawColor, chunkD4LJJ7Z7_cjs.DEFAULT_STROKE_COLOR), style.strokeOpacity);
1639
+ const rawColor = style.strokeColor ?? chunkKJICUZXM_cjs.DEFAULT_STROKE_COLOR;
1640
+ const borderColor = style.strokeOpacity === void 0 ? rawColor : chunkKJICUZXM_cjs.colorWithOpacity(chunkKJICUZXM_cjs.normalizeHexColor(rawColor, chunkKJICUZXM_cjs.DEFAULT_STROKE_COLOR), style.strokeOpacity);
1641
1641
  return {
1642
1642
  borderWidth,
1643
- cssBorderWidth: chunkS3L5NNCK_cjs.screenStrokeWidth(borderWidth),
1643
+ cssBorderWidth: chunkFROIGMTI_cjs.screenStrokeWidth(borderWidth),
1644
1644
  borderStyle,
1645
1645
  borderColor,
1646
- border: chunkS3L5NNCK_cjs.screenBorder(borderWidth, borderStyle ?? "solid", borderColor),
1646
+ border: chunkFROIGMTI_cjs.screenBorder(borderWidth, borderStyle ?? "solid", borderColor),
1647
1647
  ...joins
1648
1648
  };
1649
1649
  }
@@ -1655,7 +1655,7 @@ function buildRectPathGradientDef(stops, id, focalPoint, fillToRect) {
1655
1655
  color: stop.color,
1656
1656
  ...typeof stop.opacity === "number" ? { opacity: stop.opacity } : {}
1657
1657
  }));
1658
- const markup = chunkD4LJJ7Z7_cjs.buildRectPathGradientSvg(rectStops, focalPoint, fillToRect);
1658
+ const markup = chunkKJICUZXM_cjs.buildRectPathGradientSvg(rectStops, focalPoint, fillToRect);
1659
1659
  return { kind: "rectPath", id, href: `data:image/svg+xml,${encodeURIComponent(markup)}` };
1660
1660
  }
1661
1661
  function rectPathGradientMarkup(def) {
@@ -1669,9 +1669,9 @@ function buildSvgStrokePatternDef(style, elementId) {
1669
1669
  if (!style || style.strokeFillMode !== "pattern" || !style.strokePatternPreset) {
1670
1670
  return void 0;
1671
1671
  }
1672
- const fg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.strokeColor, "#000000");
1673
- const bg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.strokePatternBackgroundColor, "#ffffff");
1674
- const tile8 = chunkD4LJJ7Z7_cjs.getPatternTile(style.strokePatternPreset, fg, bg);
1672
+ const fg = chunkKJICUZXM_cjs.normalizeHexColor(style.strokeColor, "#000000");
1673
+ const bg = chunkKJICUZXM_cjs.normalizeHexColor(style.strokePatternBackgroundColor, "#ffffff");
1674
+ const tile8 = chunkKJICUZXM_cjs.getPatternTile(style.strokePatternPreset, fg, bg);
1675
1675
  if (!tile8) {
1676
1676
  return void 0;
1677
1677
  }
@@ -1694,7 +1694,7 @@ function svgGradientId(elementId, suffix = "grad") {
1694
1694
  return `pptx-${suffix}-${seed}`;
1695
1695
  }
1696
1696
  function toSvgStops(stops) {
1697
- return chunkD4LJJ7Z7_cjs.sanitizeGradientStops(stops).map((stop) => ({
1697
+ return chunkKJICUZXM_cjs.sanitizeGradientStops(stops).map((stop) => ({
1698
1698
  offset: round4(stop.position / 100),
1699
1699
  color: stop.color,
1700
1700
  ...typeof stop.opacity === "number" ? { opacity: round4(stop.opacity) } : {}
@@ -1721,7 +1721,7 @@ function buildFromSource(source, id) {
1721
1721
  if ((source.pathType || "circle") === "rect") {
1722
1722
  return buildRectPathGradientDef(stops, id, source.focalPoint, source.fillToRect);
1723
1723
  }
1724
- const { cx, cy } = chunkD4LJJ7Z7_cjs.computeGradientCenter(source.fillToRect, source.focalPoint);
1724
+ const { cx, cy } = chunkKJICUZXM_cjs.computeGradientCenter(source.fillToRect, source.focalPoint);
1725
1725
  const fx2 = cx / 100;
1726
1726
  const fy = cy / 100;
1727
1727
  const r = Math.hypot(Math.max(fx2, 1 - fx2), Math.max(fy, 1 - fy));
@@ -1863,12 +1863,12 @@ function getPresetShapeVectorGeometry(shapeType, width, height, adjustments) {
1863
1863
  function outlineStrands(compoundLine, strokeWidth) {
1864
1864
  const offsets2 = getCompoundLineOffsets(compoundLine, strokeWidth);
1865
1865
  if (offsets2.length <= 1) {
1866
- return [{ strokeWidth, cssStrokeWidth: chunkS3L5NNCK_cjs.screenStrokeWidth(strokeWidth), offset: 0 }];
1866
+ return [{ strokeWidth, cssStrokeWidth: chunkFROIGMTI_cjs.screenStrokeWidth(strokeWidth), offset: 0 }];
1867
1867
  }
1868
1868
  const widths = getCompoundLineWidths(compoundLine, strokeWidth);
1869
1869
  return offsets2.map((offset, idx) => {
1870
1870
  const width = widths[idx] ?? strokeWidth;
1871
- return { strokeWidth: width, cssStrokeWidth: chunkS3L5NNCK_cjs.screenStrokeWidth(width), offset };
1871
+ return { strokeWidth: width, cssStrokeWidth: chunkFROIGMTI_cjs.screenStrokeWidth(width), offset };
1872
1872
  });
1873
1873
  }
1874
1874
  function needsCenteredStrokeOverlay(element, style, declaredWidth) {
@@ -1894,7 +1894,7 @@ function clipEdgeBleed(element, d, style) {
1894
1894
  return edge ? {
1895
1895
  d: edge,
1896
1896
  strokeWidth: 1,
1897
- cssStrokeWidth: `max(1px, calc(2 * var(${chunkS3L5NNCK_cjs.DEVICE_PX_VAR}, 0px)))`,
1897
+ cssStrokeWidth: `max(1px, calc(2 * var(${chunkFROIGMTI_cjs.DEVICE_PX_VAR}, 0px)))`,
1898
1898
  offset: 0
1899
1899
  } : void 0;
1900
1900
  }
@@ -1917,7 +1917,7 @@ function straddlingStrokeWidth(element) {
1917
1917
  if (!needsCenteredStrokeOverlay(element, style, width)) {
1918
1918
  return 0;
1919
1919
  }
1920
- const dash = chunkD4LJJ7Z7_cjs.normalizeStrokeDashType(style?.strokeDash);
1920
+ const dash = chunkKJICUZXM_cjs.normalizeStrokeDashType(style?.strokeDash);
1921
1921
  return !dash || dash === "solid" ? width : 0;
1922
1922
  }
1923
1923
  function outlineStrokeJoin(element) {
@@ -1947,7 +1947,7 @@ function buildStrokeOutline(element) {
1947
1947
  }
1948
1948
  const lineWidth = declaredWidth > 0 ? declaredWidth : DEFAULT_OPEN_PRESET_STROKE_WIDTH;
1949
1949
  const strokeWidth = insetOnClip ? lineWidth * 2 : lineWidth;
1950
- const stroke = paint ? svgGradientFillRef(paint) : chunkD4LJJ7Z7_cjs.colorWithOpacity(style?.strokeColor ?? chunkD4LJJ7Z7_cjs.DEFAULT_STROKE_COLOR, style?.strokeOpacity);
1950
+ const stroke = paint ? svgGradientFillRef(paint) : chunkKJICUZXM_cjs.colorWithOpacity(style?.strokeColor ?? chunkKJICUZXM_cjs.DEFAULT_STROKE_COLOR, style?.strokeOpacity);
1951
1951
  const strands = outlineStrands(style?.compoundLine, strokeWidth);
1952
1952
  const bleed = !openPresetD ? clipEdgeBleed(element, d, style) : void 0;
1953
1953
  return {
@@ -1957,8 +1957,8 @@ function buildStrokeOutline(element) {
1957
1957
  stroke,
1958
1958
  strokeWidth,
1959
1959
  strands: bleed ? [...strands, bleed] : strands,
1960
- dashArray: chunkD4LJJ7Z7_cjs.getSvgStrokeDasharray(
1961
- chunkD4LJJ7Z7_cjs.normalizeStrokeDashType(style?.strokeDash),
1960
+ dashArray: chunkKJICUZXM_cjs.getSvgStrokeDasharray(
1961
+ chunkKJICUZXM_cjs.normalizeStrokeDashType(style?.strokeDash),
1962
1962
  Math.max(lineWidth, 1),
1963
1963
  style?.customDashSegments
1964
1964
  ),
@@ -2101,8 +2101,8 @@ function hexToRgb(hex2) {
2101
2101
  };
2102
2102
  }
2103
2103
  function rgbToHex(r, g, b) {
2104
- const clamp12 = (v) => Math.max(0, Math.min(255, Math.round(v)));
2105
- return `#${clamp12(r).toString(16).padStart(2, "0")}${clamp12(g).toString(16).padStart(2, "0")}${clamp12(b).toString(16).padStart(2, "0")}`;
2104
+ const clamp11 = (v) => Math.max(0, Math.min(255, Math.round(v)));
2105
+ return `#${clamp11(r).toString(16).padStart(2, "0")}${clamp11(g).toString(16).padStart(2, "0")}${clamp11(b).toString(16).padStart(2, "0")}`;
2106
2106
  }
2107
2107
  function rgbToHsl(r, g, b) {
2108
2108
  const rn = r / 255;
@@ -2349,7 +2349,7 @@ function getAnimationColorBaseStyle(element, options = {}) {
2349
2349
  }
2350
2350
  const style = {};
2351
2351
  if (options.animatesFill) {
2352
- const fill3 = chunkD4LJJ7Z7_cjs.getComputedFillStyle(element, options.parentGroupFill);
2352
+ const fill3 = chunkKJICUZXM_cjs.getComputedFillStyle(element, options.parentGroupFill);
2353
2353
  style[ANIMATION_COLOR_BASE_PROPERTIES.fill] = fill3?.backgroundColor ?? element.shapeStyle?.fillColor ?? "currentColor";
2354
2354
  }
2355
2355
  if (options.animatesStroke) {
@@ -2461,28 +2461,8 @@ function isImageTiled(element) {
2461
2461
  return typeof element.tileScaleX === "number" || typeof element.tileScaleY === "number" || typeof element.tileOffsetX === "number" || typeof element.tileOffsetY === "number" || element.tileFlip !== void 0 && element.tileFlip !== "none" || element.tileAlignment !== void 0;
2462
2462
  }
2463
2463
  function tileAlignmentPercentages(alignment) {
2464
- switch (alignment) {
2465
- case "tl":
2466
- return { x: 0, y: 0 };
2467
- case "t":
2468
- return { x: 50, y: 0 };
2469
- case "tr":
2470
- return { x: 100, y: 0 };
2471
- case "l":
2472
- return { x: 0, y: 50 };
2473
- case "ctr":
2474
- return { x: 50, y: 50 };
2475
- case "r":
2476
- return { x: 100, y: 50 };
2477
- case "bl":
2478
- return { x: 0, y: 100 };
2479
- case "b":
2480
- return { x: 50, y: 100 };
2481
- case "br":
2482
- return { x: 100, y: 100 };
2483
- default:
2484
- return { x: 0, y: 0 };
2485
- }
2464
+ const point = geometry.pictureTileAlignment(alignment);
2465
+ return { x: point.x * 100, y: point.y * 100 };
2486
2466
  }
2487
2467
  function tileAxisPosition(percent4, offsetPx) {
2488
2468
  if (offsetPx === 0) {
@@ -2554,7 +2534,7 @@ function getImageTilingStyle(element, nativeSize) {
2554
2534
  return style;
2555
2535
  }
2556
2536
 
2557
- // src/pptx/render/image-native-size.ts
2537
+ // src/image-native-size.ts
2558
2538
  var CACHE_MAX = 128;
2559
2539
  var cacheEpoch = 0;
2560
2540
  var sizeCache = /* @__PURE__ */ new Map();
@@ -2588,7 +2568,7 @@ function probeNativeImageSize(src) {
2588
2568
  }).then((size2) => {
2589
2569
  if (pendingProbes.get(src) === probe) pendingProbes.delete(src);
2590
2570
  if (size2 && epoch === cacheEpoch) {
2591
- chunkD4LJJ7Z7_cjs.setBoundedRenderCache(sizeCache, src, size2, CACHE_MAX);
2571
+ chunkKJICUZXM_cjs.setBoundedRenderCache(sizeCache, src, size2, CACHE_MAX);
2592
2572
  }
2593
2573
  return size2;
2594
2574
  });
@@ -2614,7 +2594,7 @@ function resolveGroupChildFill(child, parentGroupFill) {
2614
2594
  if (!parentGroupFill || !pptx.hasShapeProperties(child) || child.shapeStyle?.fillMode !== "group") {
2615
2595
  return void 0;
2616
2596
  }
2617
- return chunkD4LJJ7Z7_cjs.getComputedFillStyle(child, parentGroupFill);
2597
+ return chunkKJICUZXM_cjs.getComputedFillStyle(child, parentGroupFill);
2618
2598
  }
2619
2599
  function getFrameInverseTransform(element) {
2620
2600
  const transforms = [];
@@ -2666,9 +2646,9 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
2666
2646
  }
2667
2647
  if (colorNode["a:scrgbClr"]) {
2668
2648
  const scrgb = colorNode["a:scrgbClr"];
2669
- const red = chunkD4LJJ7Z7_cjs.parseDrawingPercent(scrgb["@_r"]);
2670
- const green = chunkD4LJJ7Z7_cjs.parseDrawingPercent(scrgb["@_g"]);
2671
- const blue = chunkD4LJJ7Z7_cjs.parseDrawingPercent(scrgb["@_b"]);
2649
+ const red = chunkKJICUZXM_cjs.parseDrawingPercent(scrgb["@_r"]);
2650
+ const green = chunkKJICUZXM_cjs.parseDrawingPercent(scrgb["@_g"]);
2651
+ const blue = chunkKJICUZXM_cjs.parseDrawingPercent(scrgb["@_b"]);
2672
2652
  if (red !== void 0 && green !== void 0 && blue !== void 0) {
2673
2653
  const toHex2 = (value) => Math.min(255, Math.max(0, Math.round(value))).toString(16).padStart(2, "0").toUpperCase();
2674
2654
  const base2 = `#${toHex2(red * 255)}${toHex2(green * 255)}${toHex2(blue * 255)}`;
@@ -2708,8 +2688,8 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
2708
2688
  const lumRaw = Number.parseFloat(String(hslNode["@_lum"] ?? ""));
2709
2689
  if (Number.isFinite(hueRaw) && Number.isFinite(satRaw) && Number.isFinite(lumRaw)) {
2710
2690
  const h = hueRaw / 6e4;
2711
- const s = chunkD4LJJ7Z7_cjs.clampUnitInterval(satRaw / 1e5);
2712
- const l = chunkD4LJJ7Z7_cjs.clampUnitInterval(lumRaw / 1e5);
2691
+ const s = chunkKJICUZXM_cjs.clampUnitInterval(satRaw / 1e5);
2692
+ const l = chunkKJICUZXM_cjs.clampUnitInterval(lumRaw / 1e5);
2713
2693
  const rgb = pptx.hslToRgb(h, s, l);
2714
2694
  const toHex2 = (value) => Math.min(255, Math.max(0, Math.round(value))).toString(16).padStart(2, "0").toUpperCase();
2715
2695
  const base2 = `#${toHex2(rgb.r)}${toHex2(rgb.g)}${toHex2(rgb.b)}`;
@@ -2749,11 +2729,11 @@ function parseDrawingColorOpacity(colorNode) {
2749
2729
  if (!colorChoice) {
2750
2730
  return void 0;
2751
2731
  }
2752
- const alpha = chunkD4LJJ7Z7_cjs.parseDrawingPercent(colorChoice["a:alpha"]?.["@_val"]);
2753
- const alphaMod = chunkD4LJJ7Z7_cjs.parseDrawingPercent(
2732
+ const alpha = chunkKJICUZXM_cjs.parseDrawingPercent(colorChoice["a:alpha"]?.["@_val"]);
2733
+ const alphaMod = chunkKJICUZXM_cjs.parseDrawingPercent(
2754
2734
  colorChoice["a:alphaMod"]?.["@_val"]
2755
2735
  );
2756
- const alphaOff = chunkD4LJJ7Z7_cjs.parseDrawingPercent(
2736
+ const alphaOff = chunkKJICUZXM_cjs.parseDrawingPercent(
2757
2737
  colorChoice["a:alphaOff"]?.["@_val"]
2758
2738
  );
2759
2739
  if (alpha === void 0 && alphaMod === void 0 && alphaOff === void 0) {
@@ -2766,7 +2746,7 @@ function parseDrawingColorOpacity(colorNode) {
2766
2746
  if (alphaOff !== void 0) {
2767
2747
  opacity += alphaOff;
2768
2748
  }
2769
- return chunkD4LJJ7Z7_cjs.clampUnitInterval(opacity);
2749
+ return chunkKJICUZXM_cjs.clampUnitInterval(opacity);
2770
2750
  }
2771
2751
  function splitRunByScriptFont(text4, fonts, baseFontFamily, nestedDecoration) {
2772
2752
  const pieces = text$1.segmentByFont(text4, fonts);
@@ -2796,6 +2776,219 @@ function getFrameEffectStyle(element) {
2796
2776
  return style;
2797
2777
  }
2798
2778
 
2779
+ // src/picture-artistic-filters.ts
2780
+ var clamp = (value, min, max) => Math.min(max, Math.max(min, value));
2781
+ function buildDiscreteTable(steps) {
2782
+ const values = [];
2783
+ for (let i = 0; i < steps; i++) {
2784
+ const v = Math.round(i / (steps - 1) * 100) / 100;
2785
+ const count = Math.ceil(256 / steps);
2786
+ for (let j = 0; j < count; j++) {
2787
+ values.push(v);
2788
+ }
2789
+ }
2790
+ return values.slice(0, 256).join(" ");
2791
+ }
2792
+ function buildArtisticFilterMarkup(effectName, radius) {
2793
+ const normalizedRadius = clamp(radius, 0, 100) / 100;
2794
+ switch (effectName) {
2795
+ case "artisticFilmGrain":
2796
+ case "filmGrain": {
2797
+ const freq = 0.5 + normalizedRadius * 0.5;
2798
+ const opacity = 0.15 + normalizedRadius * 0.25;
2799
+ return `<feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="4" seed="1" stitchTiles="stitch" result="grain"/><feColorMatrix in="grain" type="saturate" values="0" result="grainGray"/><feBlend in="SourceGraphic" in2="grainGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/><feFuncG type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/><feFuncB type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/></feComponentTransfer>`;
2800
+ }
2801
+ case "artisticCutout":
2802
+ case "cutout": {
2803
+ const steps = Math.max(2, Math.round(4 + normalizedRadius * 4));
2804
+ const tableValues = buildDiscreteTable(steps);
2805
+ return `<feComponentTransfer><feFuncR type="discrete" tableValues="${tableValues}"/><feFuncG type="discrete" tableValues="${tableValues}"/><feFuncB type="discrete" tableValues="${tableValues}"/></feComponentTransfer>`;
2806
+ }
2807
+ case "artisticCement":
2808
+ case "cement": {
2809
+ const freq = 1.5 + normalizedRadius * 2.5;
2810
+ const desat = Math.max(0, 0.4 - normalizedRadius * 0.3);
2811
+ return `<feColorMatrix type="saturate" values="${desat}" result="desat"/><feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="5" seed="2" stitchTiles="stitch" result="cementNoise"/><feColorMatrix in="cementNoise" type="saturate" values="0" result="cementGray"/><feBlend in="desat" in2="cementGray" mode="multiply"/><feComponentTransfer><feFuncR type="linear" slope="1.2" intercept="0"/><feFuncG type="linear" slope="1.2" intercept="0"/><feFuncB type="linear" slope="1.2" intercept="0"/></feComponentTransfer>`;
2812
+ }
2813
+ case "artisticTexturizer":
2814
+ case "texturizer": {
2815
+ const freq = 2 + normalizedRadius * 3;
2816
+ return `<feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="3" seed="3" stitchTiles="stitch" result="texNoise"/><feColorMatrix in="texNoise" type="saturate" values="0" result="texGray"/><feBlend in="SourceGraphic" in2="texGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="1.1" intercept="0.02"/><feFuncG type="linear" slope="1.1" intercept="0.02"/><feFuncB type="linear" slope="1.1" intercept="0.02"/></feComponentTransfer>`;
2817
+ }
2818
+ case "artisticCrisscrossEtching":
2819
+ case "crisscrossEtching": {
2820
+ const freq = 0.08 + normalizedRadius * 0.12;
2821
+ return `<feColorMatrix type="saturate" values="0" result="gray"/><feTurbulence type="turbulence" baseFrequency="${freq} ${freq * 3}" numOctaves="1" seed="7" result="lines"/><feColorMatrix in="lines" type="saturate" values="0" result="linesGray"/><feBlend in="gray" in2="linesGray" mode="multiply"/><feComponentTransfer><feFuncR type="linear" slope="1.3" intercept="-0.05"/><feFuncG type="linear" slope="1.3" intercept="-0.05"/><feFuncB type="linear" slope="1.3" intercept="-0.05"/></feComponentTransfer>`;
2822
+ }
2823
+ case "artisticMosaic":
2824
+ case "artisticMosaicBubbles":
2825
+ case "artisticMosiaicBubbles":
2826
+ case "mosaicBubbles":
2827
+ case "mosaic": {
2828
+ const blurAmount = Math.max(2, Math.round(radius * 0.8));
2829
+ const freq = 0.02 + normalizedRadius * 0.03;
2830
+ return `<feGaussianBlur in="SourceGraphic" stdDeviation="${blurAmount}" result="blurred"/><feTurbulence type="turbulence" baseFrequency="${freq}" numOctaves="1" seed="4" result="cells"/><feDisplacementMap in="blurred" in2="cells" scale="${blurAmount * 0.5}" xChannelSelector="R" yChannelSelector="G" result="mosaic"/><feComponentTransfer in="mosaic"><feFuncR type="linear" slope="1.05" intercept="0"/><feFuncG type="linear" slope="1.05" intercept="0"/><feFuncB type="linear" slope="1.05" intercept="0"/></feComponentTransfer>`;
2831
+ }
2832
+ case "artisticGlowEdges":
2833
+ case "glowEdges":
2834
+ case "glow_edges": {
2835
+ const edgeBlur = Math.max(1, Math.round(normalizedRadius * 3));
2836
+ return `<feColorMatrix type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" result="inverted"/><feGaussianBlur in="inverted" stdDeviation="${edgeBlur}" result="blurredInv"/><feBlend in="SourceGraphic" in2="blurredInv" mode="screen"/><feComponentTransfer><feFuncR type="linear" slope="2" intercept="-0.3"/><feFuncG type="linear" slope="2" intercept="-0.3"/><feFuncB type="linear" slope="2" intercept="-0.3"/></feComponentTransfer>`;
2837
+ }
2838
+ case "artisticChalkSketch":
2839
+ case "chalkSketch":
2840
+ case "chalk": {
2841
+ const freq = 1 + normalizedRadius * 2;
2842
+ const desat = Math.max(0, 0.2 - normalizedRadius * 0.2);
2843
+ return `<feColorMatrix type="saturate" values="${desat}" result="gray"/><feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="4" seed="5" stitchTiles="stitch" result="chalkTex"/><feColorMatrix in="chalkTex" type="saturate" values="0" result="chalkGray"/><feBlend in="gray" in2="chalkGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="1.5" intercept="0.05"/><feFuncG type="linear" slope="1.5" intercept="0.05"/><feFuncB type="linear" slope="1.5" intercept="0.05"/></feComponentTransfer>`;
2844
+ }
2845
+ case "artisticPencilSketch":
2846
+ case "pencilSketch": {
2847
+ const blurAmt = Math.max(3, Math.round(4 + normalizedRadius * 8));
2848
+ return `<feColorMatrix type="saturate" values="0" result="gray"/><feColorMatrix in="gray" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" result="invGray"/><feGaussianBlur in="invGray" stdDeviation="${blurAmt}" result="blurInv"/><feBlend in="blurInv" in2="gray" mode="screen" result="sketch"/><feComponentTransfer in="sketch"><feFuncR type="linear" slope="1.6" intercept="-0.15"/><feFuncG type="linear" slope="1.6" intercept="-0.15"/><feFuncB type="linear" slope="1.6" intercept="-0.15"/></feComponentTransfer>`;
2849
+ }
2850
+ case "artisticPencilGrayscale":
2851
+ case "pencilGrayscale":
2852
+ case "grayPencil": {
2853
+ const sharpenBlur = Math.max(0.5, 1 + normalizedRadius * 2);
2854
+ return `<feColorMatrix type="saturate" values="0" result="gray"/><feGaussianBlur in="gray" stdDeviation="${sharpenBlur}" result="grayBlur"/><feComposite in="gray" in2="grayBlur" operator="arithmetic" k1="0" k2="1.5" k3="-0.5" k4="0"/>`;
2855
+ }
2856
+ default:
2857
+ return void 0;
2858
+ }
2859
+ }
2860
+ var normalizeRadius01 = (radius) => clamp(radius / 100, 0, 1);
2861
+ function buildSimpleArtisticCss(effect, radius) {
2862
+ switch (effect) {
2863
+ case "blur":
2864
+ case "glassEffect":
2865
+ return `blur(${Math.min(radius, 20)}px)`;
2866
+ case "artisticBlur":
2867
+ return `blur(${Math.min(radius, 20)}px)`;
2868
+ case "artisticGaussianBlur":
2869
+ return `blur(${Math.min(Math.round(radius * 1.2), 24)}px)`;
2870
+ case "lineDrawing":
2871
+ return "grayscale(100%) contrast(150%)";
2872
+ case "artisticLineDrawing":
2873
+ return "grayscale(100%) contrast(150%)";
2874
+ case "paintStrokes":
2875
+ case "watercolorSponge":
2876
+ return `blur(${Math.min(radius, 8)}px) saturate(140%) brightness(105%)`;
2877
+ case "artisticPaintStrokes":
2878
+ return `blur(${Math.min(radius, 8)}px) saturate(140%) brightness(105%)`;
2879
+ case "artisticWatercolorSponge":
2880
+ return `blur(${Math.min(radius, 8)}px) saturate(150%) brightness(108%)`;
2881
+ case "artisticPaint":
2882
+ case "paint":
2883
+ return `blur(${Math.min(radius, 5)}px) saturate(160%) contrast(110%)`;
2884
+ case "artisticPaintBrush":
2885
+ case "paintBrush":
2886
+ return `blur(${Math.min(radius, 6)}px) saturate(130%)`;
2887
+ case "photocopy":
2888
+ return "grayscale(100%) contrast(200%) brightness(120%)";
2889
+ case "artisticPhotocopy":
2890
+ return "grayscale(100%) contrast(200%) brightness(120%)";
2891
+ case "pastelsSmooth":
2892
+ case "pastels":
2893
+ return `blur(${Math.min(radius, 6)}px) saturate(85%) brightness(105%)`;
2894
+ case "artisticPastelsSmooth":
2895
+ case "artisticPastels":
2896
+ return `blur(${Math.min(radius, 6)}px) saturate(85%) brightness(105%)`;
2897
+ case "artisticMarker":
2898
+ case "marker":
2899
+ return "contrast(130%) saturate(150%)";
2900
+ case "artisticPlasticWrap":
2901
+ case "plasticWrap":
2902
+ return "contrast(150%) brightness(115%) saturate(80%)";
2903
+ case "artisticLightScreen":
2904
+ case "lightScreen":
2905
+ return `brightness(${1.2 + normalizeRadius01(radius) * 0.3}) saturate(${Math.max(
2906
+ 0.5,
2907
+ 0.8 - normalizeRadius01(radius) * 0.3
2908
+ )})`;
2909
+ case "artisticGlowDiffused":
2910
+ case "glowDiffused":
2911
+ return `blur(${Math.min(radius, 6)}px) brightness(${1.15 + normalizeRadius01(radius) * 0.15})`;
2912
+ case "artisticSharpenEdges":
2913
+ case "sharpen":
2914
+ return "contrast(160%) brightness(105%)";
2915
+ case "glass":
2916
+ case "artisticGlass":
2917
+ return `blur(${Math.min(radius, 6)}px) brightness(110%)`;
2918
+ // Inspector-gallery entries with no DrawingML counterpart. Without these
2919
+ // they fell through to the generic default below, so picking Sepia or
2920
+ // Grayscale in the gallery previewed the effect but rendered a near no-op.
2921
+ case "sepia":
2922
+ return "sepia(100%)";
2923
+ case "grayscale":
2924
+ return "grayscale(100%)";
2925
+ default:
2926
+ return "contrast(105%) saturate(105%)";
2927
+ }
2928
+ }
2929
+ var ARTISTIC_PREVIEW_EFFECTS = /* @__PURE__ */ new Set([
2930
+ "artisticBlur",
2931
+ "artisticCement",
2932
+ "artisticChalkSketch",
2933
+ "artisticCrisscrossEtching",
2934
+ "artisticCutout",
2935
+ "artisticFilmGrain",
2936
+ "artisticGaussianBlur",
2937
+ "artisticGlass",
2938
+ "artisticGlowDiffused",
2939
+ "artisticGlowEdges",
2940
+ "artisticLightScreen",
2941
+ "artisticLineDrawing",
2942
+ "artisticMarker",
2943
+ "artisticMosaic",
2944
+ "artisticMosaicBubbles",
2945
+ "artisticMosiaicBubbles",
2946
+ "artisticPaint",
2947
+ "artisticPaintBrush",
2948
+ "artisticPaintStrokes",
2949
+ "artisticPastels",
2950
+ "artisticPastelsSmooth",
2951
+ "artisticPencilGrayscale",
2952
+ "artisticPencilSketch",
2953
+ "artisticPhotocopy",
2954
+ "artisticPlasticWrap",
2955
+ "artisticSharpenEdges",
2956
+ "artisticTexturizer",
2957
+ "artisticWatercolorSponge",
2958
+ "blur",
2959
+ "cement",
2960
+ "chalk",
2961
+ "chalkSketch",
2962
+ "crisscrossEtching",
2963
+ "cutout",
2964
+ "filmGrain",
2965
+ "glass",
2966
+ "glassEffect",
2967
+ "glowDiffused",
2968
+ "glowEdges",
2969
+ "glow_edges",
2970
+ "grayPencil",
2971
+ "grayscale",
2972
+ "lightScreen",
2973
+ "lineDrawing",
2974
+ "marker",
2975
+ "mosaic",
2976
+ "mosaicBubbles",
2977
+ "paint",
2978
+ "paintBrush",
2979
+ "paintStrokes",
2980
+ "pastels",
2981
+ "pastelsSmooth",
2982
+ "pencilGrayscale",
2983
+ "pencilSketch",
2984
+ "photocopy",
2985
+ "plasticWrap",
2986
+ "sepia",
2987
+ "sharpen",
2988
+ "texturizer",
2989
+ "watercolorSponge"
2990
+ ]);
2991
+
2799
2992
  // src/pptx/render/image-effect-corrections.ts
2800
2993
  function sameCorrection(live4, baked) {
2801
2994
  if (!live4 || !baked) {
@@ -2819,7 +3012,7 @@ function renderedImageCorrections(effects) {
2819
3012
  ...isLive("colorSaturation") ? { colorSaturation: effects.colorSaturation } : {}
2820
3013
  };
2821
3014
  }
2822
- function clamp(v, lo, hi) {
3015
+ function clamp2(v, lo, hi) {
2823
3016
  return v < lo ? lo : v > hi ? hi : v;
2824
3017
  }
2825
3018
  var NEUTRAL_COLOR_TEMP_K = 6500;
@@ -2829,7 +3022,7 @@ function buildColorTemperatureCss(colorTempK) {
2829
3022
  if (diff === 0) {
2830
3023
  return void 0;
2831
3024
  }
2832
- const strength = clamp(Math.abs(diff) / COLOR_TEMP_RANGE_K, 0, 1);
3025
+ const strength = clamp2(Math.abs(diff) / COLOR_TEMP_RANGE_K, 0, 1);
2833
3026
  if (diff < 0) {
2834
3027
  const sepiaPct = Math.round(strength * 40);
2835
3028
  const hueDeg2 = Math.round(strength * 15);
@@ -2861,7 +3054,7 @@ function getImageCorrectionsFilterTokens(imageEffects) {
2861
3054
  }
2862
3055
  const sharpenSoftenAmount = effects.sharpenSoften?.amount;
2863
3056
  if (typeof sharpenSoftenAmount === "number" && sharpenSoftenAmount < 0) {
2864
- const strength = clamp(Math.abs(sharpenSoftenAmount) / 1e5, 0, 1);
3057
+ const strength = clamp2(Math.abs(sharpenSoftenAmount) / 1e5, 0, 1);
2865
3058
  tokens.push(`blur(${(strength * 3).toFixed(2)}px)`);
2866
3059
  }
2867
3060
  return tokens;
@@ -2879,24 +3072,11 @@ function getImageSharpenFilter(effects, elementId) {
2879
3072
  if (typeof amount !== "number" || amount <= 0) {
2880
3073
  return void 0;
2881
3074
  }
2882
- const strength = clamp(amount / 1e5, 0, 1);
3075
+ const strength = clamp2(amount / 1e5, 0, 1);
2883
3076
  const id = getImageSharpenFilterId(elementId);
2884
3077
  const filterMarkup = `<feConvolveMatrix order="3" kernelMatrix="${buildSharpenKernel(strength)}" preserveAlpha="true"/>`;
2885
3078
  return { id, cssReference: `url(#${id})`, filterMarkup };
2886
3079
  }
2887
-
2888
- // src/pptx/render/image-effect-filter-values.ts
2889
- function clamp2(value, minimum, maximum) {
2890
- return Math.min(maximum, Math.max(minimum, value));
2891
- }
2892
- function buildImageBiLevelTable(threshold) {
2893
- const cutoff = clamp2(threshold, 0, 100);
2894
- return Array.from({ length: 101 }, (_, index) => index >= cutoff ? "1" : "0").join(" ");
2895
- }
2896
- function buildImageLuminanceTransfer(amount) {
2897
- const normalized = clamp2(amount / 100, -1, 1);
2898
- return normalized >= 0 ? { slope: 1 - normalized, intercept: normalized } : { slope: 1 + normalized, intercept: 0 };
2899
- }
2900
3080
  function getImageFillOverlayFilterId(elementId) {
2901
3081
  return `imgoverlay-${elementId}`;
2902
3082
  }
@@ -2958,7 +3138,7 @@ function buildPatternOverlayTile(pattern) {
2958
3138
  if (!pattern) {
2959
3139
  return void 0;
2960
3140
  }
2961
- const tile8 = chunkD4LJJ7Z7_cjs.getPatternTile(
3141
+ const tile8 = chunkKJICUZXM_cjs.getPatternTile(
2962
3142
  pattern.preset,
2963
3143
  pattern.foreground ?? "#000000",
2964
3144
  pattern.background ?? "#ffffff"
@@ -3012,9 +3192,6 @@ function getImageFillOverlayFilter(element, elementId = pptx.isImageLikeElement(
3012
3192
  function clamp3(v, lo, hi) {
3013
3193
  return v < lo ? lo : v > hi ? hi : v;
3014
3194
  }
3015
- function normalizeRadius01(radius) {
3016
- return clamp3(radius / 100, 0, 1);
3017
- }
3018
3195
  function getEffects2(element) {
3019
3196
  if (!pptx.isImageLikeElement(element)) {
3020
3197
  return void 0;
@@ -3121,74 +3298,6 @@ function getImageFilterCss(element, options) {
3121
3298
  return filters.length > 0 ? filters.join(" ") : void 0;
3122
3299
  }
3123
3300
  var getImageEffectsFilter = getImageFilterCss;
3124
- function buildSimpleArtisticCss(effect, radius) {
3125
- switch (effect) {
3126
- case "blur":
3127
- case "glassEffect":
3128
- return `blur(${Math.min(radius, 20)}px)`;
3129
- case "artisticBlur":
3130
- return `blur(${Math.min(radius, 20)}px)`;
3131
- case "artisticGaussianBlur":
3132
- return `blur(${Math.min(Math.round(radius * 1.2), 24)}px)`;
3133
- case "lineDrawing":
3134
- return "grayscale(100%) contrast(150%)";
3135
- case "artisticLineDrawing":
3136
- return "grayscale(100%) contrast(150%)";
3137
- case "paintStrokes":
3138
- case "watercolorSponge":
3139
- return `blur(${Math.min(radius, 8)}px) saturate(140%) brightness(105%)`;
3140
- case "artisticPaintStrokes":
3141
- return `blur(${Math.min(radius, 8)}px) saturate(140%) brightness(105%)`;
3142
- case "artisticWatercolorSponge":
3143
- return `blur(${Math.min(radius, 8)}px) saturate(150%) brightness(108%)`;
3144
- case "artisticPaint":
3145
- case "paint":
3146
- return `blur(${Math.min(radius, 5)}px) saturate(160%) contrast(110%)`;
3147
- case "artisticPaintBrush":
3148
- case "paintBrush":
3149
- return `blur(${Math.min(radius, 6)}px) saturate(130%)`;
3150
- case "photocopy":
3151
- return "grayscale(100%) contrast(200%) brightness(120%)";
3152
- case "artisticPhotocopy":
3153
- return "grayscale(100%) contrast(200%) brightness(120%)";
3154
- case "pastelsSmooth":
3155
- case "pastels":
3156
- return `blur(${Math.min(radius, 6)}px) saturate(85%) brightness(105%)`;
3157
- case "artisticPastelsSmooth":
3158
- case "artisticPastels":
3159
- return `blur(${Math.min(radius, 6)}px) saturate(85%) brightness(105%)`;
3160
- case "artisticMarker":
3161
- case "marker":
3162
- return "contrast(130%) saturate(150%)";
3163
- case "artisticPlasticWrap":
3164
- case "plasticWrap":
3165
- return "contrast(150%) brightness(115%) saturate(80%)";
3166
- case "artisticLightScreen":
3167
- case "lightScreen":
3168
- return `brightness(${1.2 + normalizeRadius01(radius) * 0.3}) saturate(${Math.max(
3169
- 0.5,
3170
- 0.8 - normalizeRadius01(radius) * 0.3
3171
- )})`;
3172
- case "artisticGlowDiffused":
3173
- case "glowDiffused":
3174
- return `blur(${Math.min(radius, 6)}px) brightness(${1.15 + normalizeRadius01(radius) * 0.15})`;
3175
- case "artisticSharpenEdges":
3176
- case "sharpen":
3177
- return "contrast(160%) brightness(105%)";
3178
- case "glass":
3179
- case "artisticGlass":
3180
- return `blur(${Math.min(radius, 6)}px) brightness(110%)`;
3181
- // Inspector-gallery entries with no DrawingML counterpart. Without these
3182
- // they fell through to the generic default below, so picking Sepia or
3183
- // Grayscale in the gallery previewed the effect but rendered a near no-op.
3184
- case "sepia":
3185
- return "sepia(100%)";
3186
- case "grayscale":
3187
- return "grayscale(100%)";
3188
- default:
3189
- return "contrast(105%) saturate(105%)";
3190
- }
3191
- }
3192
3301
  function getImageEffectsOpacity(element) {
3193
3302
  const effects = getEffects2(element);
3194
3303
  if (!effects) {
@@ -3283,7 +3392,7 @@ function buildImageAlphaFilterMarkup(effects) {
3283
3392
  }
3284
3393
  if (typeof effects.biLevel === "number") {
3285
3394
  next((inp, out) => `<feColorMatrix in="${inp}" result="${out}" type="saturate" values="0"/>`);
3286
- const tbl = buildImageBiLevelTable(effects.biLevel);
3395
+ const tbl = drawingml.buildImageBiLevelTable(effects.biLevel);
3287
3396
  next(
3288
3397
  (inp, out) => `<feComponentTransfer in="${inp}" result="${out}"><feFuncR type="discrete" tableValues="${tbl}"/><feFuncG type="discrete" tableValues="${tbl}"/><feFuncB type="discrete" tableValues="${tbl}"/></feComponentTransfer>`
3289
3398
  );
@@ -3304,7 +3413,7 @@ function buildImageAlphaFilterMarkup(effects) {
3304
3413
  );
3305
3414
  }
3306
3415
  if (effects.hsl && typeof effects.hsl.lum === "number") {
3307
- const { slope, intercept } = buildImageLuminanceTransfer(effects.hsl.lum);
3416
+ const { slope, intercept } = drawingml.buildImageLuminanceTransfer(effects.hsl.lum);
3308
3417
  next(
3309
3418
  (inp, out) => `<feComponentTransfer in="${inp}" result="${out}"><feFuncR type="linear" slope="${slope}" intercept="${intercept}"/><feFuncG type="linear" slope="${slope}" intercept="${intercept}"/><feFuncB type="linear" slope="${slope}" intercept="${intercept}"/></feComponentTransfer>`
3310
3419
  );
@@ -3315,7 +3424,7 @@ function buildImageAlphaFilterMarkup(effects) {
3315
3424
  );
3316
3425
  }
3317
3426
  if (effects.tint && typeof effects.tint.amt === "number") {
3318
- const { slope, intercept } = buildImageLuminanceTransfer(effects.tint.amt);
3427
+ const { slope, intercept } = drawingml.buildImageLuminanceTransfer(effects.tint.amt);
3319
3428
  next(
3320
3429
  (inp, out) => `<feComponentTransfer in="${inp}" result="${out}"><feFuncR type="linear" slope="${slope}" intercept="${intercept}"/><feFuncG type="linear" slope="${slope}" intercept="${intercept}"/><feFuncB type="linear" slope="${slope}" intercept="${intercept}"/></feComponentTransfer>`
3321
3430
  );
@@ -3340,85 +3449,6 @@ function getImageAlphaFilter(element, elementId = pptx.isImageLikeElement(elemen
3340
3449
  const id = getImageAlphaFilterId(elementId);
3341
3450
  return { id, cssReference: `url(#${id})`, filterMarkup: markup };
3342
3451
  }
3343
- function buildDiscreteTable(steps) {
3344
- const values = [];
3345
- for (let i = 0; i < steps; i++) {
3346
- const v = Math.round(i / (steps - 1) * 100) / 100;
3347
- const count = Math.ceil(256 / steps);
3348
- for (let j = 0; j < count; j++) {
3349
- values.push(v);
3350
- }
3351
- }
3352
- return values.slice(0, 256).join(" ");
3353
- }
3354
- function buildArtisticFilterMarkup(effectName, radius) {
3355
- const normalizedRadius = clamp3(radius, 0, 100) / 100;
3356
- switch (effectName) {
3357
- case "artisticFilmGrain":
3358
- case "filmGrain": {
3359
- const freq = 0.5 + normalizedRadius * 0.5;
3360
- const opacity = 0.15 + normalizedRadius * 0.25;
3361
- return `<feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="4" seed="1" stitchTiles="stitch" result="grain"/><feColorMatrix in="grain" type="saturate" values="0" result="grainGray"/><feBlend in="SourceGraphic" in2="grainGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/><feFuncG type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/><feFuncB type="linear" slope="${1 + opacity * 0.3}" intercept="${opacity * 0.02}"/></feComponentTransfer>`;
3362
- }
3363
- case "artisticCutout":
3364
- case "cutout": {
3365
- const steps = Math.max(2, Math.round(4 + normalizedRadius * 4));
3366
- const tableValues = buildDiscreteTable(steps);
3367
- return `<feComponentTransfer><feFuncR type="discrete" tableValues="${tableValues}"/><feFuncG type="discrete" tableValues="${tableValues}"/><feFuncB type="discrete" tableValues="${tableValues}"/></feComponentTransfer>`;
3368
- }
3369
- case "artisticCement":
3370
- case "cement": {
3371
- const freq = 1.5 + normalizedRadius * 2.5;
3372
- const desat = Math.max(0, 0.4 - normalizedRadius * 0.3);
3373
- return `<feColorMatrix type="saturate" values="${desat}" result="desat"/><feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="5" seed="2" stitchTiles="stitch" result="cementNoise"/><feColorMatrix in="cementNoise" type="saturate" values="0" result="cementGray"/><feBlend in="desat" in2="cementGray" mode="multiply"/><feComponentTransfer><feFuncR type="linear" slope="1.2" intercept="0"/><feFuncG type="linear" slope="1.2" intercept="0"/><feFuncB type="linear" slope="1.2" intercept="0"/></feComponentTransfer>`;
3374
- }
3375
- case "artisticTexturizer":
3376
- case "texturizer": {
3377
- const freq = 2 + normalizedRadius * 3;
3378
- return `<feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="3" seed="3" stitchTiles="stitch" result="texNoise"/><feColorMatrix in="texNoise" type="saturate" values="0" result="texGray"/><feBlend in="SourceGraphic" in2="texGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="1.1" intercept="0.02"/><feFuncG type="linear" slope="1.1" intercept="0.02"/><feFuncB type="linear" slope="1.1" intercept="0.02"/></feComponentTransfer>`;
3379
- }
3380
- case "artisticCrisscrossEtching":
3381
- case "crisscrossEtching": {
3382
- const freq = 0.08 + normalizedRadius * 0.12;
3383
- return `<feColorMatrix type="saturate" values="0" result="gray"/><feTurbulence type="turbulence" baseFrequency="${freq} ${freq * 3}" numOctaves="1" seed="7" result="lines"/><feColorMatrix in="lines" type="saturate" values="0" result="linesGray"/><feBlend in="gray" in2="linesGray" mode="multiply"/><feComponentTransfer><feFuncR type="linear" slope="1.3" intercept="-0.05"/><feFuncG type="linear" slope="1.3" intercept="-0.05"/><feFuncB type="linear" slope="1.3" intercept="-0.05"/></feComponentTransfer>`;
3384
- }
3385
- case "artisticMosaic":
3386
- case "artisticMosaicBubbles":
3387
- case "artisticMosiaicBubbles":
3388
- case "mosaicBubbles":
3389
- case "mosaic": {
3390
- const blurAmount = Math.max(2, Math.round(radius * 0.8));
3391
- const freq = 0.02 + normalizedRadius * 0.03;
3392
- return `<feGaussianBlur in="SourceGraphic" stdDeviation="${blurAmount}" result="blurred"/><feTurbulence type="turbulence" baseFrequency="${freq}" numOctaves="1" seed="4" result="cells"/><feDisplacementMap in="blurred" in2="cells" scale="${blurAmount * 0.5}" xChannelSelector="R" yChannelSelector="G" result="mosaic"/><feComponentTransfer in="mosaic"><feFuncR type="linear" slope="1.05" intercept="0"/><feFuncG type="linear" slope="1.05" intercept="0"/><feFuncB type="linear" slope="1.05" intercept="0"/></feComponentTransfer>`;
3393
- }
3394
- case "artisticGlowEdges":
3395
- case "glowEdges":
3396
- case "glow_edges": {
3397
- const edgeBlur = Math.max(1, Math.round(normalizedRadius * 3));
3398
- return `<feColorMatrix type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" result="inverted"/><feGaussianBlur in="inverted" stdDeviation="${edgeBlur}" result="blurredInv"/><feBlend in="SourceGraphic" in2="blurredInv" mode="screen"/><feComponentTransfer><feFuncR type="linear" slope="2" intercept="-0.3"/><feFuncG type="linear" slope="2" intercept="-0.3"/><feFuncB type="linear" slope="2" intercept="-0.3"/></feComponentTransfer>`;
3399
- }
3400
- case "artisticChalkSketch":
3401
- case "chalkSketch":
3402
- case "chalk": {
3403
- const freq = 1 + normalizedRadius * 2;
3404
- const desat = Math.max(0, 0.2 - normalizedRadius * 0.2);
3405
- return `<feColorMatrix type="saturate" values="${desat}" result="gray"/><feTurbulence type="fractalNoise" baseFrequency="${freq}" numOctaves="4" seed="5" stitchTiles="stitch" result="chalkTex"/><feColorMatrix in="chalkTex" type="saturate" values="0" result="chalkGray"/><feBlend in="gray" in2="chalkGray" mode="overlay"/><feComponentTransfer><feFuncR type="linear" slope="1.5" intercept="0.05"/><feFuncG type="linear" slope="1.5" intercept="0.05"/><feFuncB type="linear" slope="1.5" intercept="0.05"/></feComponentTransfer>`;
3406
- }
3407
- case "artisticPencilSketch":
3408
- case "pencilSketch": {
3409
- const blurAmt = Math.max(3, Math.round(4 + normalizedRadius * 8));
3410
- return `<feColorMatrix type="saturate" values="0" result="gray"/><feColorMatrix in="gray" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" result="invGray"/><feGaussianBlur in="invGray" stdDeviation="${blurAmt}" result="blurInv"/><feBlend in="blurInv" in2="gray" mode="screen" result="sketch"/><feComponentTransfer in="sketch"><feFuncR type="linear" slope="1.6" intercept="-0.15"/><feFuncG type="linear" slope="1.6" intercept="-0.15"/><feFuncB type="linear" slope="1.6" intercept="-0.15"/></feComponentTransfer>`;
3411
- }
3412
- case "artisticPencilGrayscale":
3413
- case "pencilGrayscale":
3414
- case "grayPencil": {
3415
- const sharpenBlur = Math.max(0.5, 1 + normalizedRadius * 2);
3416
- return `<feColorMatrix type="saturate" values="0" result="gray"/><feGaussianBlur in="gray" stdDeviation="${sharpenBlur}" result="grayBlur"/><feComposite in="gray" in2="grayBlur" operator="arithmetic" k1="0" k2="1.5" k3="-0.5" k4="0"/>`;
3417
- }
3418
- default:
3419
- return void 0;
3420
- }
3421
- }
3422
3452
  function getArtisticImageFilter(element, elementId = pptx.isImageLikeElement(element) ? element.id : "") {
3423
3453
  const effects = getEffects2(element);
3424
3454
  if (!isArtisticEffectRendered(effects) || !needsSvgArtisticFilter(effects.artisticEffect)) {
@@ -6654,10 +6684,10 @@ function getMeasureCtx() {
6654
6684
  return measureCtx;
6655
6685
  }
6656
6686
  function envelopeFontSizePx(font) {
6657
- return font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
6687
+ return font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
6658
6688
  }
6659
6689
  function toCanvasFont(font, sizePx = envelopeFontSizePx(font)) {
6660
- const family2 = font.fontFamily || chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY;
6690
+ const family2 = font.fontFamily || chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY;
6661
6691
  return `${fontStyleShorthand(family2, font.italic)}${fontWeightShorthand(family2, font.bold)}${sizePx}px ${family2}`;
6662
6692
  }
6663
6693
  function enableKerning(ctx) {
@@ -6824,8 +6854,8 @@ function envelopeWrapWidth(boxWidth, body) {
6824
6854
  if (!body || body.textWrap === "none") {
6825
6855
  return void 0;
6826
6856
  }
6827
- const left = body.bodyInsetLeft ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_LR_PX;
6828
- const right = body.bodyInsetRight ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_LR_PX;
6857
+ const left = body.bodyInsetLeft ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_LR_PX;
6858
+ const right = body.bodyInsetRight ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_LR_PX;
6829
6859
  return Math.max(0, boxWidth - left - right);
6830
6860
  }
6831
6861
  function sumAdvances(items) {
@@ -6836,11 +6866,11 @@ function wrapPiece(items, maxWidth) {
6836
6866
  let row = [];
6837
6867
  let rowWidth = 0;
6838
6868
  let rowHasWord = false;
6839
- let pending2 = [];
6869
+ let pending3 = [];
6840
6870
  let i = 0;
6841
6871
  while (i < items.length) {
6842
6872
  if (WHITESPACE_RE.test(items[i].char)) {
6843
- pending2.push(items[i]);
6873
+ pending3.push(items[i]);
6844
6874
  i++;
6845
6875
  continue;
6846
6876
  }
@@ -6850,19 +6880,19 @@ function wrapPiece(items, maxWidth) {
6850
6880
  i++;
6851
6881
  }
6852
6882
  const wordWidth = sumAdvances(word);
6853
- const pendingWidth = sumAdvances(pending2);
6883
+ const pendingWidth = sumAdvances(pending3);
6854
6884
  if (rowHasWord && rowWidth + pendingWidth + wordWidth > maxWidth + FIT_EPSILON) {
6855
6885
  rows.push(row);
6856
6886
  row = word;
6857
6887
  rowWidth = wordWidth;
6858
6888
  } else {
6859
- row.push(...pending2, ...word);
6889
+ row.push(...pending3, ...word);
6860
6890
  rowWidth += pendingWidth + wordWidth;
6861
6891
  }
6862
6892
  rowHasWord = true;
6863
- pending2 = [];
6893
+ pending3 = [];
6864
6894
  }
6865
- row.push(...pending2);
6895
+ row.push(...pending3);
6866
6896
  rows.push(row);
6867
6897
  return rows;
6868
6898
  }
@@ -7641,13 +7671,13 @@ var EmbeddedFontCandidates = class {
7641
7671
  * from before the list was fully released never touches a later
7642
7672
  * registration of the same list.
7643
7673
  */
7644
- add(list, keyOf) {
7674
+ add(list, keyOf2) {
7645
7675
  let registration = this.registrations.get(list);
7646
7676
  if (!registration) {
7647
7677
  registration = { keys: /* @__PURE__ */ new Set(), owners: 0 };
7648
7678
  this.registrations.set(list, registration);
7649
7679
  for (const font of list) {
7650
- const key = keyOf(font);
7680
+ const key = keyOf2(font);
7651
7681
  if (key === void 0) {
7652
7682
  continue;
7653
7683
  }
@@ -7714,7 +7744,7 @@ var EmbeddedFontCandidates = class {
7714
7744
  }
7715
7745
  }
7716
7746
  };
7717
- function createEmbeddedOutlineFontsSlot(cache) {
7747
+ function createEmbeddedOutlineFontsSlot(cache2) {
7718
7748
  let current;
7719
7749
  let releaseCurrent;
7720
7750
  const release = () => {
@@ -7733,7 +7763,7 @@ function createEmbeddedOutlineFontsSlot(cache) {
7733
7763
  return;
7734
7764
  }
7735
7765
  current = fonts;
7736
- releaseCurrent = cache.registerEmbeddedFonts(fonts);
7766
+ releaseCurrent = cache2.registerEmbeddedFonts(fonts);
7737
7767
  },
7738
7768
  release
7739
7769
  };
@@ -7801,14 +7831,14 @@ function extractGlyphOutlineCommands(font, char, x, y, fontSizePx) {
7801
7831
  return void 0;
7802
7832
  }
7803
7833
  }
7804
- function createGlyphOutlineLookup(cache) {
7834
+ function createGlyphOutlineLookup(cache2) {
7805
7835
  return (char, font, x, y) => {
7806
7836
  if (WHITESPACE_RE3.test(char)) {
7807
7837
  return [];
7808
7838
  }
7809
- const parsed = cache.get(font.fontFamily, font.bold, font.italic);
7839
+ const parsed = cache2.get(font.fontFamily, font.bold, font.italic);
7810
7840
  if (parsed) {
7811
- const size2 = font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
7841
+ const size2 = font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
7812
7842
  const commands = extractGlyphOutlineCommands(parsed, char, x, y, size2);
7813
7843
  if (commands) {
7814
7844
  return commands;
@@ -8648,7 +8678,7 @@ var COMBO_SERIES_TYPE_OPTIONS = [
8648
8678
  function patchChartData(data, patch) {
8649
8679
  const { chartType, ...rest } = patch;
8650
8680
  if (chartType === "pareto") {
8651
- return { ...chunkD4LJJ7Z7_cjs.applyParetoConversion(data), ...rest };
8681
+ return { ...chunkKJICUZXM_cjs.applyParetoConversion(data), ...rest };
8652
8682
  }
8653
8683
  if (chartType && chartType !== data.chartType) {
8654
8684
  const adapted = pptx.chartDataChangeType(data, chartType);
@@ -8710,8 +8740,8 @@ function buildParetoInsertData() {
8710
8740
  layout: "histogram",
8711
8741
  binCount: PARETO_BIN_COUNT
8712
8742
  };
8713
- const bins = chunkD4LJJ7Z7_cjs.computeHistogramBins(PARETO_VALUES, histogramOptions);
8714
- const ordered = chunkD4LJJ7Z7_cjs.orderParetoEntries(
8743
+ const bins = chunkKJICUZXM_cjs.computeHistogramBins(PARETO_VALUES, histogramOptions);
8744
+ const ordered = chunkKJICUZXM_cjs.orderParetoEntries(
8715
8745
  bins.map((bin, index) => ({ value: bin.value, label: bin.label, sourcePointIndex: index }))
8716
8746
  );
8717
8747
  return {
@@ -8724,7 +8754,7 @@ function buildParetoInsertData() {
8724
8754
  },
8725
8755
  {
8726
8756
  name: "Cumulative %",
8727
- values: chunkD4LJJ7Z7_cjs.cumulativePercentOfTotal(ordered.map((entry6) => entry6.value)),
8757
+ values: chunkKJICUZXM_cjs.cumulativePercentOfTotal(ordered.map((entry6) => entry6.value)),
8728
8758
  histogramOptions: { layout: "pareto" }
8729
8759
  }
8730
8760
  ]
@@ -8987,7 +9017,7 @@ var FILL_PATTERN_LABEL_KEYS = {
8987
9017
  trellis: "pptx.fillPatterns.trellis",
8988
9018
  zigZag: "pptx.fillPatterns.zigZag"
8989
9019
  };
8990
- var PATTERN_PRESET_OPTIONS = chunkD4LJJ7Z7_cjs.OOXML_PATTERN_PRESETS.map(
9020
+ var PATTERN_PRESET_OPTIONS = chunkKJICUZXM_cjs.OOXML_PATTERN_PRESETS.map(
8991
9021
  (value) => ({ value, labelKey: FILL_PATTERN_LABEL_KEYS[value] })
8992
9022
  );
8993
9023
 
@@ -9119,14 +9149,14 @@ function setDataLabelsRangeCache(series, pointIndex, text4) {
9119
9149
  if (!range || pointIndex < 0) {
9120
9150
  return series;
9121
9151
  }
9122
- const cache = [...range.cache];
9123
- while (cache.length <= pointIndex) {
9124
- cache.push("");
9152
+ const cache2 = [...range.cache];
9153
+ while (cache2.length <= pointIndex) {
9154
+ cache2.push("");
9125
9155
  }
9126
- cache[pointIndex] = text4;
9156
+ cache2[pointIndex] = text4;
9127
9157
  return {
9128
9158
  ...series,
9129
- dataLabelOptions: { ...series.dataLabelOptions, dataLabelsRange: { ...range, cache } }
9159
+ dataLabelOptions: { ...series.dataLabelOptions, dataLabelsRange: { ...range, cache: cache2 } }
9130
9160
  };
9131
9161
  }
9132
9162
  var labelKeyOf = (id) => `pptx.chart.style${id[0].toUpperCase()}${id.slice(1)}`;
@@ -9233,7 +9263,7 @@ function applyChartElementToggle(chartData, key, checked) {
9233
9263
  style: { ...chartData.style, ...chartDataLabelsTogglePatch(chartData.style, checked) }
9234
9264
  });
9235
9265
  case "gridlines":
9236
- return patchChartData(chartData, chunkD4LJJ7Z7_cjs.chartGridlinesPatch(chartData, checked));
9266
+ return patchChartData(chartData, chunkKJICUZXM_cjs.chartGridlinesPatch(chartData, checked));
9237
9267
  case "axes":
9238
9268
  return patchChartData(chartData, chartAxesVisibilityPatch(chartData, checked));
9239
9269
  case "axisTitles":
@@ -9272,7 +9302,7 @@ function buildElements(chartData) {
9272
9302
  {
9273
9303
  key: "gridlines",
9274
9304
  labelKey: "pptx.chart.showGridlines",
9275
- checked: chunkD4LJJ7Z7_cjs.chartGridlinesState(chartData)
9305
+ checked: chunkKJICUZXM_cjs.chartGridlinesState(chartData)
9276
9306
  },
9277
9307
  {
9278
9308
  key: "dataLabels",
@@ -11316,17 +11346,17 @@ function chartEventPathElements(event) {
11316
11346
  }
11317
11347
  function findChartPartElementInEvent(event) {
11318
11348
  for (const el of chartEventPathElements(event)) {
11319
- if (el.getAttribute(chunkS5I64Y55_cjs.CHART_PART_ATTR) !== null) {
11349
+ if (el.getAttribute(chunkHIRBPTML_cjs.CHART_PART_ATTR) !== null) {
11320
11350
  return el;
11321
11351
  }
11322
11352
  }
11323
11353
  return null;
11324
11354
  }
11325
11355
  function findChartPartInEvent(event) {
11326
- return chunkS5I64Y55_cjs.chartPartFromElement(findChartPartElementInEvent(event));
11356
+ return chunkHIRBPTML_cjs.chartPartFromElement(findChartPartElementInEvent(event));
11327
11357
  }
11328
11358
  function isChartTitleEvent(event) {
11329
- return findChartPartElementInEvent(event)?.getAttribute(chunkS5I64Y55_cjs.CHART_PART_ATTR) === "title";
11359
+ return findChartPartElementInEvent(event)?.getAttribute(chunkHIRBPTML_cjs.CHART_PART_ATTR) === "title";
11330
11360
  }
11331
11361
 
11332
11362
  // src/pptx/render/chart-format/chart-format-hit-test.ts
@@ -11334,7 +11364,7 @@ function inBox(p, box) {
11334
11364
  return p.x >= box.left && p.x <= box.right && p.y >= box.top && p.y <= box.bottom;
11335
11365
  }
11336
11366
  function hitsText(p, texts) {
11337
- return (texts ?? []).some((text4) => !text4.transform && inBox(p, chunkD4LJJ7Z7_cjs.chartTextBox(text4)));
11367
+ return (texts ?? []).some((text4) => !text4.transform && inBox(p, chunkKJICUZXM_cjs.chartTextBox(text4)));
11338
11368
  }
11339
11369
  function nearLine(p, line4, tolerance) {
11340
11370
  const dx = line4.x2 - line4.x1;
@@ -11347,7 +11377,7 @@ function nearLine(p, line4, tolerance) {
11347
11377
  }
11348
11378
  function chartFormatTargetAtPoint(vm, data, point) {
11349
11379
  if (data.style?.hasLegend !== false && vm.legend.length > 0) {
11350
- const hitLegend = chunkD4LJJ7Z7_cjs.computeChartLegendLayout(vm).some(
11380
+ const hitLegend = chunkKJICUZXM_cjs.computeChartLegendLayout(vm).some(
11351
11381
  (item4) => inBox(point, {
11352
11382
  left: item4.x - 3,
11353
11383
  top: item4.y - 9,
@@ -11362,12 +11392,12 @@ function chartFormatTargetAtPoint(vm, data, point) {
11362
11392
  if (data.style?.hasDataLabels && hitsText(point, vm.dataLabels)) {
11363
11393
  return "dataLabels";
11364
11394
  }
11365
- const valueAxis = chunkD4LJJ7Z7_cjs.chartAxisIndex(data, ["valAx"]);
11366
- const categoryAxis = chunkD4LJJ7Z7_cjs.chartAxisIndex(data, ["catAx", "dateAx"]);
11395
+ const valueAxis = chunkKJICUZXM_cjs.chartAxisIndex(data, ["valAx"]);
11396
+ const categoryAxis = chunkKJICUZXM_cjs.chartAxisIndex(data, ["catAx", "dateAx"]);
11367
11397
  if (valueAxis >= 0 && hitsText(point, vm.axisLabels)) {
11368
11398
  return `axis:${valueAxis}`;
11369
11399
  }
11370
- const secondaryValue = chunkD4LJJ7Z7_cjs.chartAxisIndex(data, ["valAx"], 1);
11400
+ const secondaryValue = chunkKJICUZXM_cjs.chartAxisIndex(data, ["valAx"], 1);
11371
11401
  if (secondaryValue >= 0 && hitsText(point, vm.secondaryAxisLabels)) {
11372
11402
  return `axis:${secondaryValue}`;
11373
11403
  }
@@ -11379,7 +11409,7 @@ function chartFormatTargetAtPoint(vm, data, point) {
11379
11409
  return `majorGridlines:${valueAxis}`;
11380
11410
  }
11381
11411
  }
11382
- const bounds = chunkD4LJJ7Z7_cjs.chartPlotBounds(vm);
11412
+ const bounds = chunkKJICUZXM_cjs.chartPlotBounds(vm);
11383
11413
  if (bounds && inBox(point, bounds)) {
11384
11414
  return "plotArea";
11385
11415
  }
@@ -11408,7 +11438,7 @@ function chartPartUnderPointer(event, host2) {
11408
11438
  if (!host2.contains(node)) {
11409
11439
  continue;
11410
11440
  }
11411
- const part = node.closest(`[${chunkS5I64Y55_cjs.CHART_PART_ATTR}]`);
11441
+ const part = node.closest(`[${chunkHIRBPTML_cjs.CHART_PART_ATTR}]`);
11412
11442
  if (part) {
11413
11443
  return part;
11414
11444
  }
@@ -11433,12 +11463,12 @@ function chartFormatTargetFromEvent(event, host2, element) {
11433
11463
  return "chartArea";
11434
11464
  }
11435
11465
  const part = findChartPartElementInEvent(event) ?? chartPartUnderPointer(event, host2);
11436
- const role = part?.getAttribute(chunkS5I64Y55_cjs.CHART_PART_ATTR);
11466
+ const role = part?.getAttribute(chunkHIRBPTML_cjs.CHART_PART_ATTR);
11437
11467
  if (role === "title") {
11438
11468
  return "title";
11439
11469
  }
11440
11470
  if (role === "dataPoint" || role === "series") {
11441
- const series = Number(part?.getAttribute(chunkS5I64Y55_cjs.CHART_PART_SERIES_ATTR));
11471
+ const series = Number(part?.getAttribute(chunkHIRBPTML_cjs.CHART_PART_SERIES_ATTR));
11442
11472
  if (Number.isInteger(series) && element.chartData.series[series]) {
11443
11473
  return `series:${series}`;
11444
11474
  }
@@ -11447,7 +11477,7 @@ function chartFormatTargetFromEvent(event, host2, element) {
11447
11477
  if (!svg2) {
11448
11478
  return "chartArea";
11449
11479
  }
11450
- const vm = chunkD4LJJ7Z7_cjs.buildChartViewModel(element);
11480
+ const vm = chunkKJICUZXM_cjs.buildChartViewModel(element);
11451
11481
  return chartFormatTargetAtPoint(
11452
11482
  vm,
11453
11483
  element.chartData,
@@ -11913,14 +11943,14 @@ function advanceChartMarkDrag(state, clientX, clientY, rect3) {
11913
11943
  return null;
11914
11944
  }
11915
11945
  const travelled = Math.hypot(clientX - state.startClientX, clientY - state.startClientY);
11916
- if (!state.moved && travelled < chunkS5I64Y55_cjs.CHART_DRAG_THRESHOLD_PX) {
11946
+ if (!state.moved && travelled < chunkHIRBPTML_cjs.CHART_DRAG_THRESHOLD_PX) {
11917
11947
  return null;
11918
11948
  }
11919
11949
  if (rect3.width === 0 || rect3.height === 0) {
11920
11950
  return null;
11921
11951
  }
11922
11952
  state.moved = true;
11923
- const pointer = clientPointToViewBox(clientX, clientY, rect3, state.svgWidth, state.svgHeight), value = chunkS5I64Y55_cjs.resolveChartDragValue(state.geometry, pointer), chartData = chunkS5I64Y55_cjs.withChartPointValue(
11953
+ const pointer = clientPointToViewBox(clientX, clientY, rect3, state.svgWidth, state.svgHeight), value = chunkHIRBPTML_cjs.resolveChartDragValue(state.geometry, pointer), chartData = chunkHIRBPTML_cjs.withChartPointValue(
11924
11954
  state.baseChartData,
11925
11955
  state.part.seriesIndex,
11926
11956
  state.part.pointIndex,
@@ -12943,9 +12973,9 @@ function buildAnimationTimelineRows(animations, anchors = []) {
12943
12973
  }));
12944
12974
  return [...editorRows, ...nativeRows].sort((a, b) => a.order - b.order);
12945
12975
  }
12946
- function reorderAnimationTimelineRows(rows, sourceKey, targetIndex) {
12976
+ function reorderAnimationTimelineRows(rows, sourceKey2, targetIndex) {
12947
12977
  const sorted = [...rows].sort((a, b) => a.order - b.order);
12948
- const sourceIndex = sorted.findIndex((row) => row.key === sourceKey);
12978
+ const sourceIndex = sorted.findIndex((row) => row.key === sourceKey2);
12949
12979
  if (sourceIndex < 0 || targetIndex < 0 || targetIndex >= sorted.length || sourceIndex === targetIndex) {
12950
12980
  return sorted.map((row, i) => ({ ...row, order: i }));
12951
12981
  }
@@ -13374,8 +13404,8 @@ function revealedElementStyles(groups, step2) {
13374
13404
  function pendingElementStyles(groups, step2) {
13375
13405
  const result = /* @__PURE__ */ new Map();
13376
13406
  const clamped = clampStep(step2, groups.length);
13377
- const pending2 = groups.slice(clamped);
13378
- for (const group of pending2) {
13407
+ const pending3 = groups.slice(clamped);
13408
+ for (const group of pending3) {
13379
13409
  for (const animation of group.animations) {
13380
13410
  const hidden = initialHiddenStyle(animation);
13381
13411
  if (Object.keys(hidden).length > 0 && !result.has(animation.elementId)) {
@@ -23000,7 +23030,7 @@ function borderToCss(border, resolve) {
23000
23030
  const width = border.width ?? 1;
23001
23031
  const dash = ooxmlDashToCssBorderStyle(border.dash);
23002
23032
  const color = border.color ?? resolve(border.fill) ?? "#000000";
23003
- return chunkS3L5NNCK_cjs.screenBorder(width, dash, color);
23033
+ return chunkFROIGMTI_cjs.screenBorder(width, dash, color);
23004
23034
  }
23005
23035
  function collectSections(entry6, tableData, pos) {
23006
23036
  const { rowIndex, cellIndex, rowCount, columnCount } = pos;
@@ -23289,8 +23319,8 @@ function hexToRgb2(hex2) {
23289
23319
  };
23290
23320
  }
23291
23321
  function rgbToHex2(r, g, b) {
23292
- const clamp12 = (v) => Math.max(0, Math.min(255, Math.round(v)));
23293
- return `#${clamp12(r).toString(16).padStart(2, "0").toUpperCase()}${clamp12(g).toString(16).padStart(2, "0").toUpperCase()}${clamp12(b).toString(16).padStart(2, "0").toUpperCase()}`;
23322
+ const clamp11 = (v) => Math.max(0, Math.min(255, Math.round(v)));
23323
+ return `#${clamp11(r).toString(16).padStart(2, "0").toUpperCase()}${clamp11(g).toString(16).padStart(2, "0").toUpperCase()}${clamp11(b).toString(16).padStart(2, "0").toUpperCase()}`;
23294
23324
  }
23295
23325
  function tintColor(hex2, tintFactor) {
23296
23326
  const { r, g, b } = hexToRgb2(hex2);
@@ -23349,7 +23379,7 @@ function gradientCssFromFill(fill3, colorScheme) {
23349
23379
  position: stop.position
23350
23380
  }))
23351
23381
  };
23352
- return chunkD4LJJ7Z7_cjs.buildGradientCss(shapeLike);
23382
+ return chunkKJICUZXM_cjs.buildGradientCss(shapeLike);
23353
23383
  }
23354
23384
  function applyStyleFill(fill3, colorScheme, css, fallback) {
23355
23385
  if (fill3?.noFill) {
@@ -23375,13 +23405,13 @@ function applyStyleFill(fill3, colorScheme, css, fallback) {
23375
23405
  }
23376
23406
  }
23377
23407
  if (fill3?.pattern) {
23378
- const fg = chunkD4LJJ7Z7_cjs.normalizeHexColor(
23408
+ const fg = chunkKJICUZXM_cjs.normalizeHexColor(
23379
23409
  resolveStyleFillColor(fill3.pattern.foreground, colorScheme),
23380
23410
  "#000000"
23381
- ), bg = chunkD4LJJ7Z7_cjs.normalizeHexColor(
23411
+ ), bg = chunkKJICUZXM_cjs.normalizeHexColor(
23382
23412
  resolveStyleFillColor(fill3.pattern.background, colorScheme),
23383
23413
  "#ffffff"
23384
- ), svg2 = chunkD4LJJ7Z7_cjs.getPatternSvg(fill3.pattern.preset, fg, bg);
23414
+ ), svg2 = chunkKJICUZXM_cjs.getPatternSvg(fill3.pattern.preset, fg, bg);
23385
23415
  clearBackground(css);
23386
23416
  if (svg2) {
23387
23417
  css.backgroundImage = `url("data:image/svg+xml,${encodeURIComponent(svg2)}")`;
@@ -23390,7 +23420,7 @@ function applyStyleFill(fill3, colorScheme, css, fallback) {
23390
23420
  return true;
23391
23421
  }
23392
23422
  const resolved2 = resolveStyleFillColor(fill3, colorScheme);
23393
- const color = (resolved2 && fill3?.alpha !== void 0 ? chunkD4LJJ7Z7_cjs.colorWithOpacity(resolved2, fill3.alpha / 1e5) : resolved2) ?? fallback;
23423
+ const color = (resolved2 && fill3?.alpha !== void 0 ? chunkKJICUZXM_cjs.colorWithOpacity(resolved2, fill3.alpha / 1e5) : resolved2) ?? fallback;
23394
23424
  if (color) {
23395
23425
  layerSolidColor(css, color);
23396
23426
  return true;
@@ -23774,8 +23804,8 @@ function getMeasureContext() {
23774
23804
  return measureContext2;
23775
23805
  }
23776
23806
  function toCanvasFont2(font) {
23777
- const size2 = font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
23778
- const family2 = font.fontFamily || chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY;
23807
+ const size2 = font.fontSizePx && font.fontSizePx > 0 ? font.fontSizePx : chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
23808
+ const family2 = font.fontFamily || chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY;
23779
23809
  return `${fontStyleShorthand(family2, font.italic)}${fontWeightShorthand(family2, font.bold)}${size2}px ${family2}`;
23780
23810
  }
23781
23811
  function advancesOf(ctx, canvasFont, chars) {
@@ -23968,7 +23998,7 @@ function resolveTextOutlineDashCss(s, fillColor) {
23968
23998
  if (s.textFillGradient || s.textFillPattern || s.textFillBlipUrl || s.highlightColor) {
23969
23999
  return void 0;
23970
24000
  }
23971
- const strokeColor = chunkD4LJJ7Z7_cjs.normalizeHexColor(s.textOutlineColor, fillColor ?? "#000000");
24001
+ const strokeColor = chunkKJICUZXM_cjs.normalizeHexColor(s.textOutlineColor, fillColor ?? "#000000");
23972
24002
  return {
23973
24003
  WebkitTextStroke: `${width}px transparent`,
23974
24004
  WebkitTextFillColor: s.textFillNone ? "transparent" : fillColor ?? "currentColor",
@@ -24138,13 +24168,13 @@ function applyExtraRunProps(style, s, text4, font) {
24138
24168
  style.fontKerning = fontKerning;
24139
24169
  }
24140
24170
  if (s.highlightColor) {
24141
- style.backgroundColor = chunkD4LJJ7Z7_cjs.normalizeHexColor(s.highlightColor, "transparent");
24171
+ style.backgroundColor = chunkKJICUZXM_cjs.normalizeHexColor(s.highlightColor, "transparent");
24142
24172
  }
24143
24173
  if (s.underlineColor) {
24144
- style.textDecorationColor = chunkD4LJJ7Z7_cjs.normalizeHexColor(s.underlineColor);
24174
+ style.textDecorationColor = chunkKJICUZXM_cjs.normalizeHexColor(s.underlineColor);
24145
24175
  }
24146
24176
  if (s.textOutlineWidth) {
24147
- style.WebkitTextStroke = s.textOutlineColor ? `${s.textOutlineWidth}px ${chunkD4LJJ7Z7_cjs.normalizeHexColor(s.textOutlineColor, "#000000")}` : `${s.textOutlineWidth}px currentColor`;
24177
+ style.WebkitTextStroke = s.textOutlineColor ? `${s.textOutlineWidth}px ${chunkKJICUZXM_cjs.normalizeHexColor(s.textOutlineColor, "#000000")}` : `${s.textOutlineWidth}px currentColor`;
24148
24178
  style.paintOrder = "stroke fill";
24149
24179
  }
24150
24180
  if (s.textCaps === "all") {
@@ -24185,7 +24215,7 @@ function segmentStyleToCss(seg, fontScale = 1, context = {}) {
24185
24215
  if (s.color) {
24186
24216
  style.color = textRunColor(s.color, s.colorRef?.alpha);
24187
24217
  } else if (s.hyperlink) {
24188
- style.color = chunkD4LJJ7Z7_cjs.HYPERLINK_COLOR;
24218
+ style.color = chunkKJICUZXM_cjs.HYPERLINK_COLOR;
24189
24219
  }
24190
24220
  const renderedFamily = typeof style.fontFamily === "string" ? style.fontFamily : context.blockFont?.fontFamily;
24191
24221
  style.fontWeight = fontWeightAttribute(renderedFamily, s.bold) ?? "normal";
@@ -24298,9 +24328,9 @@ function cellPatternFillCss(style) {
24298
24328
  if (style.fillMode !== "pattern" || !style.patternFillPreset) {
24299
24329
  return null;
24300
24330
  }
24301
- const fg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.patternFillForeground, "#000000");
24302
- const bg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.patternFillBackground, "#ffffff");
24303
- const svgMarkup = chunkD4LJJ7Z7_cjs.getPatternSvg(style.patternFillPreset, fg, bg);
24331
+ const fg = chunkKJICUZXM_cjs.normalizeHexColor(style.patternFillForeground, "#000000");
24332
+ const bg = chunkKJICUZXM_cjs.normalizeHexColor(style.patternFillBackground, "#ffffff");
24333
+ const svgMarkup = chunkKJICUZXM_cjs.getPatternSvg(style.patternFillPreset, fg, bg);
24304
24334
  if (svgMarkup) {
24305
24335
  const encoded = encodeURIComponent(svgMarkup);
24306
24336
  return {
@@ -24471,7 +24501,7 @@ function cellStyleToCss(style) {
24471
24501
  const w = edge.width ?? 1;
24472
24502
  const c = edge.color ?? style.borderColor ?? "#000000";
24473
24503
  const s = ooxmlDashToCssBorderStyle(edge.dash);
24474
- css[edge.prefix] = chunkS3L5NNCK_cjs.screenBorder(w, s, c);
24504
+ css[edge.prefix] = chunkFROIGMTI_cjs.screenBorder(w, s, c);
24475
24505
  }
24476
24506
  }
24477
24507
  Object.assign(css, cellPaddingCss(style));
@@ -24691,7 +24721,7 @@ function tableCellCss(tableData, cell, position, context, base2) {
24691
24721
  );
24692
24722
  const css = { ...base2, ...band, ...cellStyleToCss(cell?.style) };
24693
24723
  if (css.color === void 0) {
24694
- css.color = chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_COLOR;
24724
+ css.color = chunkKJICUZXM_cjs.DEFAULT_TEXT_COLOR;
24695
24725
  }
24696
24726
  const result = { ...TABLE_CELL_TEXT_DEFAULTS, ...css };
24697
24727
  applyTableCellFontWeight(result);
@@ -25059,7 +25089,7 @@ var GRADIENT_TYPE_OPTIONS = [
25059
25089
  { value: "linear", i18nKey: "pptx.table.gradientLinear" },
25060
25090
  { value: "radial", i18nKey: "pptx.table.gradientRadial" }
25061
25091
  ];
25062
- var PATTERN_OPTIONS = chunkD4LJJ7Z7_cjs.OOXML_PATTERN_PRESETS.slice(0, 20);
25092
+ var PATTERN_OPTIONS = chunkKJICUZXM_cjs.OOXML_PATTERN_PRESETS.slice(0, 20);
25063
25093
 
25064
25094
  // src/pptx/render/table-resize.ts
25065
25095
  var MIN_COLUMN_PROPORTION = 0.03;
@@ -25804,10 +25834,10 @@ function imageFitTransformParts(el) {
25804
25834
  return { placement: "", crop: "" };
25805
25835
  }
25806
25836
  return fitTransformsFromInsets({
25807
- cropLeft: chunkD4LJJ7Z7_cjs.clampCropValue(el.cropLeft),
25808
- cropTop: chunkD4LJJ7Z7_cjs.clampCropValue(el.cropTop),
25809
- cropRight: chunkD4LJJ7Z7_cjs.clampCropValue(el.cropRight),
25810
- cropBottom: chunkD4LJJ7Z7_cjs.clampCropValue(el.cropBottom),
25837
+ cropLeft: chunkKJICUZXM_cjs.clampCropValue(el.cropLeft),
25838
+ cropTop: chunkKJICUZXM_cjs.clampCropValue(el.cropTop),
25839
+ cropRight: chunkKJICUZXM_cjs.clampCropValue(el.cropRight),
25840
+ cropBottom: chunkKJICUZXM_cjs.clampCropValue(el.cropBottom),
25811
25841
  fillRectLeft: el.fillRectLeft ?? 0,
25812
25842
  fillRectTop: el.fillRectTop ?? 0,
25813
25843
  fillRectRight: el.fillRectRight ?? 0,
@@ -25831,10 +25861,10 @@ function fitTransformsFromInsets(insets) {
25831
25861
  if (hasCrop2) {
25832
25862
  const horizontalScale = cropLeft + cropRight >= 0.99 ? 0.99 / (cropLeft + cropRight) : 1;
25833
25863
  const verticalScale = cropTop + cropBottom >= 0.99 ? 0.99 / (cropTop + cropBottom) : 1;
25834
- cropLeft = chunkD4LJJ7Z7_cjs.clampCropValue(cropLeft * horizontalScale);
25835
- cropRight = chunkD4LJJ7Z7_cjs.clampCropValue(cropRight * horizontalScale);
25836
- cropTop = chunkD4LJJ7Z7_cjs.clampCropValue(cropTop * verticalScale);
25837
- cropBottom = chunkD4LJJ7Z7_cjs.clampCropValue(cropBottom * verticalScale);
25864
+ cropLeft = chunkKJICUZXM_cjs.clampCropValue(cropLeft * horizontalScale);
25865
+ cropRight = chunkKJICUZXM_cjs.clampCropValue(cropRight * horizontalScale);
25866
+ cropTop = chunkKJICUZXM_cjs.clampCropValue(cropTop * verticalScale);
25867
+ cropBottom = chunkKJICUZXM_cjs.clampCropValue(cropBottom * verticalScale);
25838
25868
  const remainingWidth = Math.max(0.01, 1 - cropLeft - cropRight);
25839
25869
  const remainingHeight = Math.max(0.01, 1 - cropTop - cropBottom);
25840
25870
  const tx = Math.round(-cropLeft / remainingWidth * 1e4) / 100;
@@ -25949,7 +25979,7 @@ function resolveShadeToTitleBackgroundImage(slide, slideWidthPx, slideHeightPx)
25949
25979
  if (stops.length === 0) {
25950
25980
  return void 0;
25951
25981
  }
25952
- return chunkD4LJJ7Z7_cjs.buildRectPathGradientImage(stops, void 0, fillToRect);
25982
+ return chunkKJICUZXM_cjs.buildRectPathGradientImage(stops, void 0, fillToRect);
25953
25983
  }
25954
25984
 
25955
25985
  // src/pptx/render/slide-background.ts
@@ -25971,7 +26001,7 @@ function getSlideBackgroundStyle(slide, slideSize) {
25971
26001
  style["background-repeat"] = "no-repeat";
25972
26002
  }
25973
26003
  } else if (pattern) {
25974
- const svg2 = chunkD4LJJ7Z7_cjs.getPatternSvg(
26004
+ const svg2 = chunkKJICUZXM_cjs.getPatternSvg(
25975
26005
  pattern.preset,
25976
26006
  pattern.fgColor ?? solid ?? "#000000",
25977
26007
  pattern.bgColor ?? DEFAULT_SLIDE_BACKGROUND
@@ -26867,10 +26897,10 @@ function createRecoveryScheduler(options) {
26867
26897
  }
26868
26898
  }
26869
26899
  if (disposed) return;
26870
- const pending2 = write();
26871
- inFlight = pending2;
26900
+ const pending3 = write();
26901
+ inFlight = pending3;
26872
26902
  try {
26873
- return await pending2;
26903
+ return await pending3;
26874
26904
  } finally {
26875
26905
  inFlight = void 0;
26876
26906
  }
@@ -27012,11 +27042,11 @@ function createAutosaveController(deps) {
27012
27042
  while (inFlight) {
27013
27043
  await inFlight;
27014
27044
  }
27015
- const pending2 = scheduler.run(run).then(() => {
27045
+ const pending3 = scheduler.run(run).then(() => {
27016
27046
  });
27017
- inFlight = pending2;
27047
+ inFlight = pending3;
27018
27048
  try {
27019
- await pending2;
27049
+ await pending3;
27020
27050
  } finally {
27021
27051
  inFlight = null;
27022
27052
  }
@@ -29349,12 +29379,12 @@ function buildRunTabLines(text4, ctx, nestedDecoration, measure2 = (t2) => measu
29349
29379
  // src/pptx/render/paragraph-run-enrich.ts
29350
29380
  function resolveRunExtrasContext(input) {
29351
29381
  const { seg, runFont, blockFont, blockScriptStyle, tabStops, defaultTabSize, rtl } = input;
29352
- const baseFontFamily = runFont.fontFamily ?? blockFont.fontFamily ?? chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY;
29382
+ const baseFontFamily = runFont.fontFamily ?? blockFont.fontFamily ?? chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY;
29353
29383
  const scriptFonts = text$1.resolveScriptFontSet(seg.style, blockScriptStyle, baseFontFamily);
29354
29384
  const tabContext = tabStops && tabStops.length > 0 ? buildTabContext(
29355
29385
  tabStops,
29356
29386
  defaultTabSize,
29357
- runFont.fontSizePx ?? blockFont.fontSizePx ?? chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE,
29387
+ runFont.fontSizePx ?? blockFont.fontSizePx ?? chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE,
29358
29388
  baseFontFamily,
29359
29389
  Boolean(seg.style?.bold),
29360
29390
  Boolean(seg.style?.italic),
@@ -29386,7 +29416,7 @@ function resolveRunReflection(segStyle, blockFont) {
29386
29416
  if (!segStyle) {
29387
29417
  return void 0;
29388
29418
  }
29389
- const height = typeof segStyle.fontSize === "number" ? segStyle.fontSize : blockFont.fontSizePx ?? chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
29419
+ const height = typeof segStyle.fontSize === "number" ? segStyle.fontSize : blockFont.fontSizePx ?? chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
29390
29420
  return getTextReflectionWrapperStyle(segStyle, height);
29391
29421
  }
29392
29422
  function applyRunReflection(run, reflection2) {
@@ -29553,7 +29583,7 @@ function buildTextShadowCss(style) {
29553
29583
  const ox = style.textShadowOffsetX ?? 0;
29554
29584
  const oy = style.textShadowOffsetY ?? 0;
29555
29585
  const blur = style.textShadowBlur ?? 4;
29556
- const color = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textShadowColor, "#000000");
29586
+ const color = chunkKJICUZXM_cjs.normalizeHexColor(style.textShadowColor, "#000000");
29557
29587
  const opacity = style.textShadowOpacity ?? 0.5;
29558
29588
  const r = parseInt(color.slice(1, 3), 16);
29559
29589
  const g = parseInt(color.slice(3, 5), 16);
@@ -29566,7 +29596,7 @@ function buildTextShadowCss(style) {
29566
29596
  const dirRad = dir * Math.PI / 180;
29567
29597
  const psOx = Math.round(Math.cos(dirRad) * dist2 * 100) / 100;
29568
29598
  const psOy = Math.round(Math.sin(dirRad) * dist2 * 100) / 100;
29569
- const psColor = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textPresetShadowColor, "#000000");
29599
+ const psColor = chunkKJICUZXM_cjs.normalizeHexColor(style.textPresetShadowColor, "#000000");
29570
29600
  const psOpacity = style.textPresetShadowOpacity ?? 0.5;
29571
29601
  const psR = parseInt(psColor.slice(1, 3), 16);
29572
29602
  const psG = parseInt(psColor.slice(3, 5), 16);
@@ -29583,7 +29613,7 @@ function buildTextInnerShadowCss(style) {
29583
29613
  const ox = style.textInnerShadowOffsetX ?? 0;
29584
29614
  const oy = style.textInnerShadowOffsetY ?? 0;
29585
29615
  const blur = style.textInnerShadowBlur ?? 3;
29586
- const color = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textInnerShadowColor, "#000000");
29616
+ const color = chunkKJICUZXM_cjs.normalizeHexColor(style.textInnerShadowColor, "#000000");
29587
29617
  const opacity = style.textInnerShadowOpacity ?? 0.5;
29588
29618
  const r = parseInt(color.slice(1, 3), 16);
29589
29619
  const g = parseInt(color.slice(3, 5), 16);
@@ -29630,7 +29660,7 @@ function buildTextGlowFilter(style) {
29630
29660
  return void 0;
29631
29661
  }
29632
29662
  const radius = style.textGlowRadius ?? 6;
29633
- const color = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textGlowColor, "#ffff00");
29663
+ const color = chunkKJICUZXM_cjs.normalizeHexColor(style.textGlowColor, "#ffff00");
29634
29664
  const opacity = style.textGlowOpacity ?? 0.6;
29635
29665
  const r = parseInt(color.slice(1, 3), 16);
29636
29666
  const g = parseInt(color.slice(3, 5), 16);
@@ -29658,9 +29688,9 @@ function buildTextFillCss(style) {
29658
29688
  };
29659
29689
  }
29660
29690
  if (style.textFillPattern) {
29661
- const fg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textFillPatternForeground, "#000000");
29662
- const bg = chunkD4LJJ7Z7_cjs.normalizeHexColor(style.textFillPatternBackground, "#ffffff");
29663
- const svgPattern = chunkD4LJJ7Z7_cjs.getPatternSvg(style.textFillPattern, fg, bg);
29691
+ const fg = chunkKJICUZXM_cjs.normalizeHexColor(style.textFillPatternForeground, "#000000");
29692
+ const bg = chunkKJICUZXM_cjs.normalizeHexColor(style.textFillPatternBackground, "#ffffff");
29693
+ const svgPattern = chunkKJICUZXM_cjs.getPatternSvg(style.textFillPattern, fg, bg);
29664
29694
  if (svgPattern) {
29665
29695
  const encoded = encodeURIComponent(svgPattern);
29666
29696
  return {
@@ -29805,15 +29835,15 @@ function resolveRunRuby(segment, baseFontSizePx, blockFont, baseColor) {
29805
29835
  return void 0;
29806
29836
  }
29807
29837
  const authoredFamily = segment.rubyStyle?.fontFamily ?? segment.style?.fontFamily;
29808
- const baseSize = Number.isFinite(baseFontSizePx) ? baseFontSizePx : chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
29838
+ const baseSize = Number.isFinite(baseFontSizePx) ? baseFontSizePx : chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
29809
29839
  const style = {
29810
29840
  fontSize: `${segment.rubyFontSize ?? baseSize * RUBY_SIZE_RATIO}px`,
29811
- fontFamily: authoredFamily ? pptx.getSubstituteFontFamily(authoredFamily) : blockFont.fontFamily ?? chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY,
29841
+ fontFamily: authoredFamily ? pptx.getSubstituteFontFamily(authoredFamily) : blockFont.fontFamily ?? chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY,
29812
29842
  textAlign: rubyTextAlign(segment.rubyAlignment)
29813
29843
  };
29814
29844
  const color = segment.rubyStyle?.color;
29815
29845
  if (color) {
29816
- style.color = chunkD4LJJ7Z7_cjs.normalizeHexColor(color, baseColor);
29846
+ style.color = chunkKJICUZXM_cjs.normalizeHexColor(color, baseColor);
29817
29847
  }
29818
29848
  return { text: text4, style };
29819
29849
  }
@@ -29886,7 +29916,7 @@ function buildParagraphRuns(input) {
29886
29916
  bodyFontSizeRaw,
29887
29917
  fontScale
29888
29918
  );
29889
- const fallbackFontSize = strutFontSize ?? blockFont.fontSizePx ?? chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
29919
+ const fallbackFontSize = strutFontSize ?? blockFont.fontSizePx ?? chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
29890
29920
  equationStyle.fontSize = `${fallbackFontSize}px`;
29891
29921
  }
29892
29922
  runs.push({
@@ -29923,7 +29953,7 @@ function buildParagraphRuns(input) {
29923
29953
  });
29924
29954
  const ruby = resolveRunRuby(
29925
29955
  seg,
29926
- typeof seg.style?.fontSize === "number" ? seg.style.fontSize : blockFont.fontSizePx ?? chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE,
29956
+ typeof seg.style?.fontSize === "number" ? seg.style.fontSize : blockFont.fontSizePx ?? chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE,
29927
29957
  blockFont,
29928
29958
  typeof style.color === "string" ? style.color : void 0
29929
29959
  );
@@ -30023,8 +30053,8 @@ function buildParagraphs(element, fieldContext, segmentOverrides, options) {
30023
30053
  }
30024
30054
  const fontScale = resolveAutoFitFontScale(element.textStyle);
30025
30055
  const blockFont = {
30026
- fontFamily: element.textStyle?.fontFamily ? pptx.getSubstituteFontFamily(element.textStyle.fontFamily) : chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY,
30027
- fontSizePx: (element.textStyle?.fontSize || chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE) * fontScale
30056
+ fontFamily: element.textStyle?.fontFamily ? pptx.getSubstituteFontFamily(element.textStyle.fontFamily) : chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY,
30057
+ fontSizePx: (element.textStyle?.fontSize || chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE) * fontScale
30028
30058
  };
30029
30059
  const blockScriptStyle = element.textStyle;
30030
30060
  const tabStops = element.textStyle?.tabStops;
@@ -32958,17 +32988,17 @@ function hasItalicRuns(element) {
32958
32988
  );
32959
32989
  }
32960
32990
  function buildTextBlockStyle(element, options = {}) {
32961
- const fallbackColor = options.fallbackColor ?? chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_COLOR;
32991
+ const fallbackColor = options.fallbackColor ?? chunkKJICUZXM_cjs.DEFAULT_TEXT_COLOR;
32962
32992
  if (!pptx.hasTextProperties(element)) {
32963
32993
  return { color: fallbackColor };
32964
32994
  }
32965
32995
  const ts = element.textStyle;
32966
32996
  const italic = hasItalicRuns(element);
32967
32997
  const isRtl = ts?.rtl === true;
32968
- const bodyTop = ts?.bodyInsetTop ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_TB_PX;
32969
- const bodyBottom = ts?.bodyInsetBottom ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_TB_PX;
32970
- const bodyLeft = ts?.bodyInsetLeft ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_LR_PX;
32971
- const bodyRight = ts?.bodyInsetRight ?? chunkD4LJJ7Z7_cjs.DEFAULT_BODY_INSET_LR_PX;
32998
+ const bodyTop = ts?.bodyInsetTop ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_TB_PX;
32999
+ const bodyBottom = ts?.bodyInsetBottom ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_TB_PX;
33000
+ const bodyLeft = ts?.bodyInsetLeft ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_LR_PX;
33001
+ const bodyRight = ts?.bodyInsetRight ?? chunkKJICUZXM_cjs.DEFAULT_BODY_INSET_LR_PX;
32972
33002
  const hasParagraphIndents = (element.paragraphIndents?.length ?? 0) > 0;
32973
33003
  const bodyIndent = hasParagraphIndents ? 0 : ts?.paragraphIndent || 0;
32974
33004
  const bodyMarginLeft = hasParagraphIndents ? 0 : ts?.paragraphMarginLeft || 0;
@@ -32998,17 +33028,17 @@ function buildTextBlockStyle(element, options = {}) {
32998
33028
  style.transformOrigin = "center";
32999
33029
  }
33000
33030
  }
33001
- style.color = ts?.hyperlink ? chunkD4LJJ7Z7_cjs.normalizeHexColor(ts?.color, chunkD4LJJ7Z7_cjs.HYPERLINK_COLOR) : chunkD4LJJ7Z7_cjs.normalizeHexColor(ts?.color, fallbackColor);
33031
+ style.color = ts?.hyperlink ? chunkKJICUZXM_cjs.normalizeHexColor(ts?.color, chunkKJICUZXM_cjs.HYPERLINK_COLOR) : chunkKJICUZXM_cjs.normalizeHexColor(ts?.color, fallbackColor);
33002
33032
  if (!hasTextSegments && ts?.highlightColor) {
33003
- style.backgroundColor = chunkD4LJJ7Z7_cjs.normalizeHexColor(ts.highlightColor, void 0);
33033
+ style.backgroundColor = chunkKJICUZXM_cjs.normalizeHexColor(ts.highlightColor, void 0);
33004
33034
  }
33005
33035
  style.textAlign = resolveCssTextAlign(ts?.align, isRtl) ?? "left";
33006
33036
  style.direction = toCssVerticalDirection(ts?.textDirection) ?? (isRtl ? "rtl" : bodyLayoutStyle?.direction ?? "ltr");
33007
33037
  if (isRtl) {
33008
33038
  style.unicodeBidi = "plaintext";
33009
33039
  }
33010
- style.fontSize = ts?.fontSize || chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
33011
- style.fontFamily = ts?.fontFamily ? pptx.getSubstituteFontFamily(ts.fontFamily, pptx.parsePanoseString(ts.latinFontPanose)) : chunkD4LJJ7Z7_cjs.DEFAULT_FONT_FAMILY;
33040
+ style.fontSize = ts?.fontSize || chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
33041
+ style.fontFamily = ts?.fontFamily ? pptx.getSubstituteFontFamily(ts.fontFamily, pptx.parsePanoseString(ts.latinFontPanose)) : chunkKJICUZXM_cjs.DEFAULT_FONT_FAMILY;
33012
33042
  style.fontWeight = resolveFontWeight(ts?.fontFamily, ts?.bold);
33013
33043
  style.fontStyle = resolveFontItalic(ts?.fontFamily, ts?.italic) ? "italic" : "normal";
33014
33044
  style.textDecorationLine = decorations.length > 0 ? decorations.join(" ") : "none";
@@ -33048,7 +33078,7 @@ function buildTextBlockStyle(element, options = {}) {
33048
33078
  text: element.text ?? "",
33049
33079
  width: element.width,
33050
33080
  height: element.height,
33051
- defaultFontSize: chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE
33081
+ defaultFontSize: chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE
33052
33082
  });
33053
33083
  if (autoFit.fontSize !== void 0) {
33054
33084
  style.fontSize = autoFit.fontSize;
@@ -33056,7 +33086,7 @@ function buildTextBlockStyle(element, options = {}) {
33056
33086
  if (autoFit.lineHeight !== void 0) {
33057
33087
  style.lineHeight = autoFit.lineHeight;
33058
33088
  }
33059
- const fontSizePx = typeof style.fontSize === "number" ? style.fontSize : chunkD4LJJ7Z7_cjs.DEFAULT_TEXT_FONT_SIZE;
33089
+ const fontSizePx = typeof style.fontSize === "number" ? style.fontSize : chunkKJICUZXM_cjs.DEFAULT_TEXT_FONT_SIZE;
33060
33090
  const lineHeightPx = lineHeightToPx(fontSizePx, style.lineHeight);
33061
33091
  const contentHeightPx = element.height - style.paddingTop - style.paddingBottom;
33062
33092
  Object.assign(style, resolveVertOverflowEllipsisStyle(ts, contentHeightPx, lineHeightPx));
@@ -36506,9 +36536,9 @@ function connectorHitStrokeWidth(strokeWidth) {
36506
36536
  function buildConnectorGeometry(element, zIndex, routing) {
36507
36537
  const ss = pptx.hasShapeProperties(element) ? element.shapeStyle : void 0;
36508
36538
  const strokeWidth = Math.max(0, ss?.strokeWidth ?? 2);
36509
- const strokeColor = ss?.strokeColor ?? chunkD4LJJ7Z7_cjs.DEFAULT_STROKE_COLOR;
36539
+ const strokeColor = ss?.strokeColor ?? chunkKJICUZXM_cjs.DEFAULT_STROKE_COLOR;
36510
36540
  const strokeOpacity = ss?.strokeOpacity ?? 1;
36511
- const dashArray = chunkD4LJJ7Z7_cjs.buildDashArray(ss?.strokeDash, strokeWidth, ss?.customDashSegments);
36541
+ const dashArray = chunkKJICUZXM_cjs.buildDashArray(ss?.strokeDash, strokeWidth, ss?.customDashSegments);
36512
36542
  const strokeLinecap = svgLineCap(ss?.lineCap);
36513
36543
  const compoundOffsets = getCompoundLineOffsets(ss?.compoundLine, strokeWidth);
36514
36544
  const compoundWidths = getCompoundLineWidths(ss?.compoundLine, strokeWidth);
@@ -37433,7 +37463,7 @@ function observeExternalCollaborationReadiness(session, options) {
37433
37463
  function createPresencePublisher(awareness, identity10) {
37434
37464
  const local = { activeSlideIndex: 0, cursorX: 0, cursorY: 0 };
37435
37465
  let lastBroadcast = 0;
37436
- let pending2 = null;
37466
+ let pending3 = null;
37437
37467
  function publish() {
37438
37468
  awareness.setLocalStateField("presence", {
37439
37469
  userName: identity10.userName,
@@ -37459,32 +37489,32 @@ function createPresencePublisher(awareness, identity10) {
37459
37489
  Object.assign(local, patch);
37460
37490
  const elapsed = Date.now() - lastBroadcast;
37461
37491
  if (elapsed >= BROADCAST_THROTTLE_MS) {
37462
- if (pending2 !== null) {
37463
- clearTimeout(pending2);
37464
- pending2 = null;
37492
+ if (pending3 !== null) {
37493
+ clearTimeout(pending3);
37494
+ pending3 = null;
37465
37495
  }
37466
37496
  lastBroadcast = Date.now();
37467
37497
  publish();
37468
- } else if (pending2 === null) {
37469
- pending2 = setTimeout(() => {
37470
- pending2 = null;
37498
+ } else if (pending3 === null) {
37499
+ pending3 = setTimeout(() => {
37500
+ pending3 = null;
37471
37501
  lastBroadcast = Date.now();
37472
37502
  publish();
37473
37503
  }, BROADCAST_THROTTLE_MS - elapsed);
37474
37504
  }
37475
37505
  }
37476
37506
  function flush() {
37477
- if (pending2 !== null) {
37478
- clearTimeout(pending2);
37479
- pending2 = null;
37507
+ if (pending3 !== null) {
37508
+ clearTimeout(pending3);
37509
+ pending3 = null;
37480
37510
  }
37481
37511
  lastBroadcast = Date.now();
37482
37512
  publish();
37483
37513
  }
37484
37514
  function dispose() {
37485
- if (pending2 !== null) {
37486
- clearTimeout(pending2);
37487
- pending2 = null;
37515
+ if (pending3 !== null) {
37516
+ clearTimeout(pending3);
37517
+ pending3 = null;
37488
37518
  }
37489
37519
  }
37490
37520
  publish();
@@ -37731,7 +37761,7 @@ function createCollaborationTextTarget({
37731
37761
  var LIVE_PATCH_THROTTLE_MS = 50;
37732
37762
  function createCollaborationLivePatcher(options = {}) {
37733
37763
  const throttleMs = options.throttleMs ?? LIVE_PATCH_THROTTLE_MS;
37734
- const pending2 = /* @__PURE__ */ new Map();
37764
+ const pending3 = /* @__PURE__ */ new Map();
37735
37765
  let doc = null;
37736
37766
  let factories = null;
37737
37767
  let timer = null;
@@ -37758,12 +37788,12 @@ function createCollaborationLivePatcher(options = {}) {
37758
37788
  const writePending = () => {
37759
37789
  const activeDoc = doc;
37760
37790
  const activeFactories = factories;
37761
- if (!activeDoc || !activeFactories || pending2.size === 0) {
37762
- pending2.clear();
37791
+ if (!activeDoc || !activeFactories || pending3.size === 0) {
37792
+ pending3.clear();
37763
37793
  return;
37764
37794
  }
37765
- const patches = [...pending2.values()];
37766
- pending2.clear();
37795
+ const patches = [...pending3.values()];
37796
+ pending3.clear();
37767
37797
  lastWriteAt = Date.now();
37768
37798
  try {
37769
37799
  activeDoc.transact(() => {
@@ -37797,10 +37827,10 @@ function createCollaborationLivePatcher(options = {}) {
37797
37827
  return null;
37798
37828
  }
37799
37829
  const key = keyFor(slideId, elementId);
37800
- let entry6 = pending2.get(key);
37830
+ let entry6 = pending3.get(key);
37801
37831
  if (!entry6) {
37802
37832
  entry6 = { slideId, elementId };
37803
- pending2.set(key, entry6);
37833
+ pending3.set(key, entry6);
37804
37834
  }
37805
37835
  return entry6;
37806
37836
  };
@@ -37819,7 +37849,7 @@ function createCollaborationLivePatcher(options = {}) {
37819
37849
  if (!isWritable()) {
37820
37850
  return void 0;
37821
37851
  }
37822
- const queued = pending2.get(key);
37852
+ const queued = pending3.get(key);
37823
37853
  if (queued) {
37824
37854
  delete queued.text;
37825
37855
  }
@@ -37858,7 +37888,7 @@ function createCollaborationLivePatcher(options = {}) {
37858
37888
  return;
37859
37889
  }
37860
37890
  cancelTimer();
37861
- pending2.clear();
37891
+ pending3.clear();
37862
37892
  doc = nextDoc;
37863
37893
  factories = nextFactories;
37864
37894
  immediate = nextImmediate;
@@ -37894,7 +37924,7 @@ function createCollaborationLivePatcher(options = {}) {
37894
37924
  },
37895
37925
  dispose() {
37896
37926
  cancelTimer();
37897
- pending2.clear();
37927
+ pending3.clear();
37898
37928
  doc = null;
37899
37929
  factories = null;
37900
37930
  retireTextSessions();
@@ -38060,7 +38090,7 @@ function resolveCollaborationNativeRange(range, previous, current) {
38060
38090
  function observeCollaborationInlineInput(root, getSeed, apply6, settled) {
38061
38091
  let disposed = false;
38062
38092
  let composing = false;
38063
- let pending2 = false;
38093
+ let pending3 = false;
38064
38094
  let range;
38065
38095
  const capture = (event) => {
38066
38096
  const target = event?.getTargetRanges?.()[0];
@@ -38078,10 +38108,10 @@ function observeCollaborationInlineInput(root, getSeed, apply6, settled) {
38078
38108
  if (!composing) {
38079
38109
  capture(event);
38080
38110
  }
38081
- pending2 = true;
38111
+ pending3 = true;
38082
38112
  queueMicrotask(() => {
38083
- if (!disposed && !composing && pending2) {
38084
- pending2 = false;
38113
+ if (!disposed && !composing && pending3) {
38114
+ pending3 = false;
38085
38115
  settled();
38086
38116
  }
38087
38117
  });
@@ -38090,7 +38120,7 @@ function observeCollaborationInlineInput(root, getSeed, apply6, settled) {
38090
38120
  if (composing || disposed) {
38091
38121
  return;
38092
38122
  }
38093
- pending2 = false;
38123
+ pending3 = false;
38094
38124
  const replacement = range;
38095
38125
  range = void 0;
38096
38126
  apply6(replacement);
@@ -38116,8 +38146,8 @@ function observeCollaborationInlineInput(root, getSeed, apply6, settled) {
38116
38146
  root.addEventListener("compositionstart", start, true);
38117
38147
  root.addEventListener("compositionend", end, true);
38118
38148
  return {
38119
- blocked: () => composing || pending2,
38120
- reason: () => composing ? "composition-active" : pending2 ? "input-active" : void 0,
38149
+ blocked: () => composing || pending3,
38150
+ reason: () => composing ? "composition-active" : pending3 ? "input-active" : void 0,
38121
38151
  dispose() {
38122
38152
  disposed = true;
38123
38153
  root.removeEventListener("beforeinput", before, true);
@@ -42957,7 +42987,7 @@ function drawingShapeMeshOpacity(shape) {
42957
42987
  // src/pptx/render/svg-text-lines.ts
42958
42988
  var LINE_HEIGHT_RATIO = 1.2;
42959
42989
  function centeredSvgTextLines(text4, fontSize, options = {}) {
42960
- const lines = options.maxWidth !== void 0 ? chunkD4LJJ7Z7_cjs.wrapTextByEstimatedWidth(text4, options.maxWidth, fontSize) : text4.split("\n").filter((line4) => line4.length > 0);
42990
+ const lines = options.maxWidth !== void 0 ? chunkKJICUZXM_cjs.wrapTextByEstimatedWidth(text4, options.maxWidth, fontSize) : text4.split("\n").filter((line4) => line4.length > 0);
42961
42991
  const centerY = options.centerY ?? 0;
42962
42992
  if (lines.length === 0) {
42963
42993
  return [{ text: "", y: centerY }];
@@ -42969,6 +42999,647 @@ function centeredSvgTextLines(text4, fontSize, options = {}) {
42969
42999
  y: blockTop + lineHeight / 2 + index * lineHeight
42970
43000
  }));
42971
43001
  }
43002
+
43003
+ // src/picture-artistic-preview.ts
43004
+ var NS = "http://www.w3.org/2000/svg";
43005
+ function artisticPictureNodes(doc, name, radius) {
43006
+ if (!ARTISTIC_PREVIEW_EFFECTS.has(name) || !Number.isFinite(radius) || radius < 0 || radius > 100)
43007
+ return void 0;
43008
+ const markup = buildArtisticFilterMarkup(name, radius);
43009
+ if (markup) {
43010
+ const holder = doc.createElementNS(NS, "svg");
43011
+ holder.innerHTML = markup;
43012
+ return Array.from(holder.children);
43013
+ }
43014
+ const css = buildSimpleArtisticCss(name, radius);
43015
+ if (!css) return void 0;
43016
+ const nodes = [];
43017
+ for (const match of css.matchAll(/([a-z-]+)\(([-\d.]+)(%|px|deg)?\)/g)) {
43018
+ const effect = match[1], value = Number(match[2]) / (match[3] === "%" ? 100 : 1);
43019
+ let node;
43020
+ if (effect === "blur") {
43021
+ node = doc.createElementNS(NS, "feGaussianBlur");
43022
+ node.setAttribute("stdDeviation", String(value));
43023
+ } else if (effect === "saturate" || effect === "grayscale") {
43024
+ node = doc.createElementNS(NS, "feColorMatrix");
43025
+ node.setAttribute("type", "saturate");
43026
+ node.setAttribute("values", String(effect === "grayscale" ? 1 - value : value));
43027
+ } else if (effect === "brightness" || effect === "contrast") {
43028
+ node = doc.createElementNS(NS, "feComponentTransfer");
43029
+ for (const ch of ["R", "G", "B"]) {
43030
+ const fn = doc.createElementNS(NS, `feFunc${ch}`);
43031
+ fn.setAttribute("type", "linear");
43032
+ fn.setAttribute("slope", String(value));
43033
+ fn.setAttribute("intercept", String(effect === "contrast" ? (1 - value) / 2 : 0));
43034
+ node.append(fn);
43035
+ }
43036
+ } else if (effect === "sepia") {
43037
+ node = doc.createElementNS(NS, "feColorMatrix");
43038
+ node.setAttribute("type", "matrix");
43039
+ node.setAttribute(
43040
+ "values",
43041
+ "0.393 0.769 0.189 0 0 0.349 0.686 0.168 0 0 0.272 0.534 0.131 0 0 0 0 0 1 0"
43042
+ );
43043
+ } else return void 0;
43044
+ nodes.push(node);
43045
+ }
43046
+ return nodes.length ? nodes : void 0;
43047
+ }
43048
+ var NS2 = "http://www.w3.org/2000/svg";
43049
+ var thresholdTable = (n) => Array.from({ length: 256 }, (_, i) => i / 255 >= n ? "1" : "0").join(" ");
43050
+ function standardPictureFilter(doc, effect, scheme = {}, prefix = "picture") {
43051
+ const nodes = [];
43052
+ const node = (name, attributes = {}) => {
43053
+ const item4 = doc.createElementNS(NS2, name);
43054
+ for (const [key, value2] of Object.entries(attributes)) item4.setAttribute(key, String(value2));
43055
+ return item4;
43056
+ };
43057
+ const transfer = (channels, attributes) => {
43058
+ const item4 = node("feComponentTransfer");
43059
+ for (const channel of channels) item4.append(node(`feFunc${channel}`, attributes));
43060
+ nodes.push(item4);
43061
+ };
43062
+ const value = effect.values ?? {};
43063
+ const colors = effect.colors?.map((color$1) => {
43064
+ const resolved2 = drawingml.resolveDrawingColor(color$1, { scheme: (name) => scheme[name] });
43065
+ const rgb = resolved2 ? color.hexToRgbChannels(resolved2.hex) : void 0;
43066
+ return rgb && resolved2 ? { r: rgb.r / 255, g: rgb.g / 255, b: rgb.b / 255, a: resolved2.alpha } : void 0;
43067
+ });
43068
+ switch (effect.name) {
43069
+ case "alphaInv":
43070
+ transfer(["A"], { type: "linear", slope: -1, intercept: 1 });
43071
+ {
43072
+ const c = colors?.[0] ?? { r: 0, g: 0, b: 0, a: 1 };
43073
+ nodes.push(
43074
+ node("feColorMatrix", {
43075
+ type: "matrix",
43076
+ values: `0 0 0 0 ${c.r} 0 0 0 0 ${c.g} 0 0 0 0 ${c.b} 0 0 0 ${c.a} 0`
43077
+ })
43078
+ );
43079
+ }
43080
+ break;
43081
+ case "alphaCeiling":
43082
+ transfer(["A"], { type: "discrete", tableValues: ["0", ...Array(255).fill("1")].join(" ") });
43083
+ break;
43084
+ case "alphaFloor":
43085
+ transfer(["A"], { type: "discrete", tableValues: [...Array(255).fill("0"), "1"].join(" ") });
43086
+ break;
43087
+ case "alphaRepl":
43088
+ transfer(["A"], { type: "linear", slope: 0, intercept: value.amount ?? 1 });
43089
+ break;
43090
+ case "alphaMod":
43091
+ transfer(["A"], { type: "gamma", amplitude: value.amount ?? 1, exponent: 2, offset: 0 });
43092
+ break;
43093
+ case "alphaBiLevel":
43094
+ transfer(["A"], {
43095
+ type: "discrete",
43096
+ tableValues: thresholdTable(value.threshold ?? 0)
43097
+ });
43098
+ break;
43099
+ case "biLevel":
43100
+ nodes.push(node("feColorMatrix", { type: "saturate", values: 0 }));
43101
+ transfer(["R", "G", "B"], {
43102
+ type: "discrete",
43103
+ tableValues: thresholdTable(value.threshold ?? 0)
43104
+ });
43105
+ break;
43106
+ case "blur":
43107
+ nodes.push(node("feGaussianBlur", { stdDeviation: (value.radiusEmu ?? 0) / 3 }));
43108
+ break;
43109
+ case "hsl":
43110
+ case "tint":
43111
+ if (value.hue !== void 0)
43112
+ nodes.push(node("feColorMatrix", { type: "hueRotate", values: value.hue }));
43113
+ if (value.saturation !== void 0)
43114
+ nodes.push(
43115
+ node("feColorMatrix", { type: "saturate", values: Math.max(0, 1 + value.saturation) })
43116
+ );
43117
+ if (value.luminance !== void 0 || value.amount !== void 0) {
43118
+ const x = drawingml.buildImageLuminanceTransfer((value.luminance ?? value.amount ?? 0) * 100);
43119
+ transfer(["R", "G", "B"], { type: "linear", slope: x.slope, intercept: x.intercept });
43120
+ }
43121
+ break;
43122
+ case "duotone": {
43123
+ const a = colors?.[0], b = colors?.[1];
43124
+ if (!a || !b) return { nodes: [], unapplied: "duotone:colour" };
43125
+ nodes.push(node("feColorMatrix", { type: "saturate", values: 0 }));
43126
+ const map = node("feComponentTransfer");
43127
+ for (const channel of ["R", "G", "B"]) {
43128
+ const key = channel.toLowerCase();
43129
+ map.append(
43130
+ node(`feFunc${channel}`, { type: "linear", slope: b[key] - a[key], intercept: a[key] })
43131
+ );
43132
+ }
43133
+ nodes.push(map);
43134
+ if (a.a !== 1 || b.a !== 1) return { nodes, unapplied: "duotone:colour-alpha" };
43135
+ break;
43136
+ }
43137
+ case "clrRepl": {
43138
+ const c = colors?.[0];
43139
+ if (!c) return { nodes: [], unapplied: "clrRepl:colour" };
43140
+ nodes.push(
43141
+ node("feColorMatrix", {
43142
+ type: "matrix",
43143
+ values: `0 0 0 0 ${c.r} 0 0 0 0 ${c.g} 0 0 0 0 ${c.b} 0 0 0 ${c.a} 0`
43144
+ })
43145
+ );
43146
+ break;
43147
+ }
43148
+ case "clrChange": {
43149
+ const a = colors?.[0], b = colors?.[1];
43150
+ if (!a || !b) return { nodes: [], unapplied: "clrChange:colour" };
43151
+ if (effect.useAlpha !== false && a.a !== 1)
43152
+ return { nodes: [], unapplied: "clrChange:source-alpha" };
43153
+ const opaque = node("feComponentTransfer", {
43154
+ in: "PICTURE_INPUT",
43155
+ result: `${prefix}-opaque`
43156
+ });
43157
+ opaque.append(node("feFuncA", { type: "linear", slope: 0, intercept: 1 }));
43158
+ nodes.push(opaque);
43159
+ const from = node("feFlood", {
43160
+ "flood-color": `rgb(${a.r * 255},${a.g * 255},${a.b * 255})`,
43161
+ result: `${prefix}-key`
43162
+ });
43163
+ nodes.push(from);
43164
+ nodes.push(
43165
+ node("feBlend", {
43166
+ in: `${prefix}-opaque`,
43167
+ in2: `${prefix}-key`,
43168
+ mode: "difference",
43169
+ result: `${prefix}-distance`
43170
+ })
43171
+ );
43172
+ nodes.push(
43173
+ node("feColorMatrix", {
43174
+ in: `${prefix}-distance`,
43175
+ type: "matrix",
43176
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0"
43177
+ })
43178
+ );
43179
+ transfer(["A"], { type: "discrete", tableValues: ["1", ...Array(255).fill("0")].join(" ") });
43180
+ nodes[nodes.length - 1].setAttribute("result", `${prefix}-mask`);
43181
+ nodes.push(
43182
+ node("feColorMatrix", {
43183
+ in: "PICTURE_INPUT",
43184
+ type: "matrix",
43185
+ values: `0 0 0 0 ${b.r} 0 0 0 0 ${b.g} 0 0 0 0 ${b.b} 0 0 0 ${b.a} 0`,
43186
+ result: `${prefix}-replacement`
43187
+ })
43188
+ );
43189
+ nodes.push(
43190
+ node("feComposite", {
43191
+ in: `${prefix}-replacement`,
43192
+ in2: `${prefix}-mask`,
43193
+ operator: "in",
43194
+ result: `${prefix}-matched`
43195
+ })
43196
+ );
43197
+ nodes.push(
43198
+ node("feComposite", {
43199
+ in: "PICTURE_INPUT",
43200
+ in2: `${prefix}-mask`,
43201
+ operator: "out",
43202
+ result: `${prefix}-rest`
43203
+ })
43204
+ );
43205
+ nodes.push(
43206
+ node("feComposite", { in: `${prefix}-matched`, in2: `${prefix}-rest`, operator: "over" })
43207
+ );
43208
+ break;
43209
+ }
43210
+ }
43211
+ return { nodes };
43212
+ }
43213
+ var NS3 = "http://www.w3.org/2000/svg";
43214
+ var serial = 0;
43215
+ function pictureEffectFilter(doc, defs, effects, scheme = {}) {
43216
+ const filter = doc.createElementNS(NS3, "filter");
43217
+ filter.id = `office-picture-effects-${++serial}`;
43218
+ filter.setAttribute("color-interpolation-filters", "sRGB");
43219
+ const unapplied = [];
43220
+ const approximated = [];
43221
+ let previous = "SourceGraphic", step2 = 0;
43222
+ for (const effect of effects) {
43223
+ if (effect.kind === "unsupported") {
43224
+ unapplied.push(effect.name);
43225
+ continue;
43226
+ }
43227
+ if (effect.kind === "artistic") {
43228
+ if (effect.unhandled?.length) unapplied.push(...effect.unhandled);
43229
+ if (effect.baked) continue;
43230
+ const nodes = artisticPictureNodes(doc, effect.name, effect.radius);
43231
+ if (!nodes) {
43232
+ unapplied.push(effect.name);
43233
+ continue;
43234
+ }
43235
+ approximated.push(effect.name);
43236
+ const input = previous;
43237
+ const names = new Map(
43238
+ nodes.flatMap(
43239
+ (node) => node.hasAttribute("result") ? [[node.getAttribute("result"), `${filter.id}-art${step2++}`]] : []
43240
+ )
43241
+ );
43242
+ for (const node of nodes) {
43243
+ for (const attribute of ["in", "in2"]) {
43244
+ const ref = node.getAttribute(attribute);
43245
+ if (ref === "SourceGraphic") node.setAttribute(attribute, input);
43246
+ else if (ref && names.has(ref)) node.setAttribute(attribute, names.get(ref));
43247
+ }
43248
+ const result = node.getAttribute("result");
43249
+ if (result && names.has(result)) node.setAttribute("result", names.get(result));
43250
+ else node.setAttribute("result", `${filter.id}-r${step2++}`);
43251
+ if (!node.hasAttribute("in") && !["feTurbulence", "feFlood"].includes(node.localName))
43252
+ node.setAttribute("in", previous);
43253
+ previous = node.getAttribute("result");
43254
+ filter.append(node);
43255
+ }
43256
+ continue;
43257
+ }
43258
+ if (effect.kind === "standard") {
43259
+ const result = standardPictureFilter(doc, effect, scheme, `${filter.id}-${step2++}`);
43260
+ if (result.unapplied) unapplied.push(result.unapplied);
43261
+ if (["hsl", "tint", "clrChange"].includes(effect.name)) approximated.push(effect.name);
43262
+ const input = previous;
43263
+ for (const item4 of result.nodes) {
43264
+ if (item4.getAttribute("in") === "PICTURE_INPUT") item4.setAttribute("in", input);
43265
+ else if (!item4.hasAttribute("in") && item4.localName !== "feFlood")
43266
+ item4.setAttribute("in", previous);
43267
+ if (!item4.hasAttribute("result")) item4.setAttribute("result", `${filter.id}-r${step2++}`);
43268
+ previous = item4.getAttribute("result");
43269
+ filter.append(item4);
43270
+ }
43271
+ continue;
43272
+ }
43273
+ if (effect.kind === "grayscale") {
43274
+ const node = doc.createElementNS(NS3, "feColorMatrix");
43275
+ node.setAttribute("type", "saturate");
43276
+ node.setAttribute("values", "0");
43277
+ node.setAttribute("in", previous);
43278
+ node.setAttribute("result", `${filter.id}-r${step2++}`);
43279
+ previous = node.getAttribute("result");
43280
+ filter.append(node);
43281
+ } else {
43282
+ const transfer = doc.createElementNS(NS3, "feComponentTransfer");
43283
+ if (effect.kind === "alphaModFix") {
43284
+ const channel = doc.createElementNS(NS3, "feFuncA");
43285
+ channel.setAttribute("type", "linear");
43286
+ channel.setAttribute("slope", String(effect.amount));
43287
+ transfer.append(channel);
43288
+ } else {
43289
+ const { slope, intercept } = drawingml.pictureLuminanceTransfer(effect.brightness, effect.contrast);
43290
+ for (const name of ["R", "G", "B"]) {
43291
+ const channel = doc.createElementNS(NS3, `feFunc${name}`);
43292
+ channel.setAttribute("type", "linear");
43293
+ channel.setAttribute("slope", String(slope));
43294
+ channel.setAttribute("intercept", String(intercept));
43295
+ transfer.append(channel);
43296
+ }
43297
+ }
43298
+ transfer.setAttribute("in", previous);
43299
+ transfer.setAttribute("result", `${filter.id}-r${step2++}`);
43300
+ previous = transfer.getAttribute("result");
43301
+ filter.append(transfer);
43302
+ }
43303
+ }
43304
+ if (!filter.childNodes.length) return { unapplied };
43305
+ defs.append(filter);
43306
+ return {
43307
+ filter: `url(#${filter.id})`,
43308
+ unapplied,
43309
+ ...approximated.length ? { approximated } : {}
43310
+ };
43311
+ }
43312
+
43313
+ // src/picture-pixels.ts
43314
+ var cache = /* @__PURE__ */ new Map();
43315
+ var pending = /* @__PURE__ */ new Map();
43316
+ var keyOf = (url, effects, scheme) => JSON.stringify([url, effects, scheme]);
43317
+ var needsPicturePixels = (effects) => effects.some(
43318
+ (e) => e.kind === "standard" && (e.name === "hsl" || e.name === "tint" || e.name === "blur")
43319
+ );
43320
+ function cachedPicturePixels(url, effects, scheme = {}) {
43321
+ const value = cache.get(keyOf(url, effects, scheme));
43322
+ return value ? JSON.parse(value) : void 0;
43323
+ }
43324
+ function probePicturePixels(doc, url, effects, scheme = {}) {
43325
+ const key = keyOf(url, effects, scheme);
43326
+ const cached = cachedPicturePixels(url, effects, scheme);
43327
+ if (cached) return Promise.resolve(cached);
43328
+ const running = pending.get(key);
43329
+ if (running) return running;
43330
+ const load = (source) => new Promise((resolve, reject) => {
43331
+ const image = doc.createElement("img");
43332
+ image.onload = () => resolve(image);
43333
+ image.onerror = () => reject(new Error("Picture decode failed"));
43334
+ image.src = source;
43335
+ });
43336
+ const task = (async () => {
43337
+ const source = await load(url);
43338
+ const canvas = doc.createElement("canvas");
43339
+ canvas.width = source.naturalWidth;
43340
+ canvas.height = source.naturalHeight;
43341
+ if (!canvas.width || !canvas.height || canvas.width * canvas.height > 16777216)
43342
+ return void 0;
43343
+ const context = canvas.getContext("2d");
43344
+ if (!context) return void 0;
43345
+ context.drawImage(source, 0, 0);
43346
+ let dataUrl = canvas.toDataURL("image/png");
43347
+ let queue = [];
43348
+ const flush = async () => {
43349
+ if (!queue.length) return;
43350
+ const ns = "http://www.w3.org/2000/svg";
43351
+ const svg2 = doc.createElementNS(ns, "svg");
43352
+ svg2.setAttribute("xmlns", ns);
43353
+ svg2.setAttribute("width", String(canvas.width));
43354
+ svg2.setAttribute("height", String(canvas.height));
43355
+ const defs = doc.createElementNS(ns, "defs");
43356
+ svg2.append(defs);
43357
+ const result2 = pictureEffectFilter(doc, defs, queue, scheme);
43358
+ const image = doc.createElementNS(ns, "image");
43359
+ image.setAttribute("href", dataUrl);
43360
+ image.setAttribute("width", String(canvas.width));
43361
+ image.setAttribute("height", String(canvas.height));
43362
+ if (result2.filter) image.setAttribute("filter", result2.filter);
43363
+ svg2.append(image);
43364
+ const flattened = await load(`data:image/svg+xml,${encodeURIComponent(svg2.outerHTML)}`);
43365
+ context.clearRect(0, 0, canvas.width, canvas.height);
43366
+ context.drawImage(flattened, 0, 0);
43367
+ dataUrl = canvas.toDataURL("image/png");
43368
+ queue = [];
43369
+ };
43370
+ for (const effect of effects) {
43371
+ if (effect.kind === "standard" && (effect.name === "hsl" || effect.name === "tint")) {
43372
+ await flush();
43373
+ const image = context.getImageData(0, 0, canvas.width, canvas.height);
43374
+ drawingml.applyPictureHslPixels(image.data, effect);
43375
+ context.putImageData(image, 0, 0);
43376
+ dataUrl = canvas.toDataURL("image/png");
43377
+ } else queue.push(effect);
43378
+ }
43379
+ await flush();
43380
+ const result = { url: dataUrl, width: canvas.width, height: canvas.height };
43381
+ chunkKJICUZXM_cjs.setBoundedRenderCache(cache, key, JSON.stringify(result), 64);
43382
+ return result;
43383
+ })().catch(() => void 0).finally(() => pending.delete(key));
43384
+ pending.set(key, task);
43385
+ return task;
43386
+ }
43387
+ var NS4 = "http://www.w3.org/2000/svg";
43388
+ var serial2 = 0;
43389
+ function picturePaint(doc, defs, fill3, media, context = { width: 1, height: 1 }) {
43390
+ if (fill3.unsupportedPicture?.length)
43391
+ return { paint: "#d1d5db", unapplied: fill3.unsupportedPicture };
43392
+ const source = typeof media === "string" ? { url: media } : { ...media };
43393
+ const pattern = doc.createElementNS(NS4, "pattern");
43394
+ pattern.id = `office-picture-${++serial2}`;
43395
+ pattern.setAttribute("patternUnits", "userSpaceOnUse");
43396
+ const unapplied = [];
43397
+ const crop = { cropLeft: 0, cropTop: 0, cropRight: 0, cropBottom: 0, ...fill3.crop };
43398
+ const spanX = 1 - crop.cropLeft - crop.cropRight, spanY = 1 - crop.cropTop - crop.cropBottom;
43399
+ const counter = fill3.layout?.rotWithShape === false ? geometry.pictureFillCounterTransform(
43400
+ context.width,
43401
+ context.height,
43402
+ context.rotation,
43403
+ context.flipHorizontal,
43404
+ context.flipVertical
43405
+ ) : void 0;
43406
+ if (counter) pattern.setAttribute("patternTransform", counter);
43407
+ const originalEffects = fill3.effects ?? [];
43408
+ const pixelCache = needsPicturePixels(originalEffects) ? cachedPicturePixels(source.url, originalEffects, context.scheme) : void 0;
43409
+ const images = [];
43410
+ const effects = pictureEffectFilter(doc, defs, originalEffects, context.scheme);
43411
+ let pixelReady = Boolean(pixelCache);
43412
+ if (pixelCache) {
43413
+ source.url = pixelCache.url;
43414
+ source.width = pixelCache.width;
43415
+ source.height = pixelCache.height;
43416
+ pattern.dataset.pixelEffectsReady = "true";
43417
+ } else if (needsPicturePixels(originalEffects))
43418
+ void probePicturePixels(doc, source.url, originalEffects, context.scheme).then((result) => {
43419
+ if (!result) return;
43420
+ source.url = result.url;
43421
+ pixelReady = true;
43422
+ for (const image of images) {
43423
+ image.setAttribute("href", result.url);
43424
+ image.removeAttribute("filter");
43425
+ }
43426
+ pattern.dataset.pixelEffectsReady = "true";
43427
+ });
43428
+ unapplied.push(...effects.unapplied);
43429
+ if (effects.approximated?.length)
43430
+ pattern.dataset.approximatedPictureEffects = effects.approximated.join(",");
43431
+ const appendImage = (parent, x, y, width, height) => {
43432
+ const image = doc.createElementNS(NS4, "image");
43433
+ for (const [key, value] of Object.entries({ x, y, width, height }))
43434
+ image.setAttribute(key, String(value));
43435
+ image.setAttribute("href", source.url);
43436
+ images.push(image);
43437
+ image.setAttribute("preserveAspectRatio", "none");
43438
+ if (effects.filter && !pixelReady) image.setAttribute("filter", effects.filter);
43439
+ parent.append(image);
43440
+ };
43441
+ if (spanX <= 0 || spanY <= 0) {
43442
+ unapplied.push("invalid-crop");
43443
+ pattern.dataset.unapplied = "invalid-crop";
43444
+ } else if (fill3.layout?.tile) {
43445
+ pattern.setAttribute("patternContentUnits", "userSpaceOnUse");
43446
+ const paint = (size3) => {
43447
+ if (!size3) {
43448
+ unapplied.push("tile-image-size");
43449
+ pattern.dataset.unapplied = "tile-image-size";
43450
+ return;
43451
+ }
43452
+ const tile8 = fill3.layout.tile;
43453
+ const cell = geometry.pictureTileGeometry(
43454
+ context,
43455
+ // Office scales the uncropped bitmap to set the tile period; srcRect
43456
+ // expands its image inside that fixed cell (native PowerPoint probe).
43457
+ size3,
43458
+ tile8,
43459
+ fill3.layout?.dpi
43460
+ );
43461
+ if (!cell) {
43462
+ unapplied.push("invalid-tile");
43463
+ pattern.dataset.unapplied = "invalid-tile";
43464
+ return;
43465
+ }
43466
+ pattern.replaceChildren();
43467
+ for (const [key, value] of Object.entries({
43468
+ x: cell.x,
43469
+ y: cell.y,
43470
+ width: cell.width * cell.columns,
43471
+ height: cell.height * cell.rows
43472
+ }))
43473
+ pattern.setAttribute(key, String(value));
43474
+ for (let row = 0; row < cell.rows; row++)
43475
+ for (let col = 0; col < cell.columns; col++) {
43476
+ const clip = doc.createElementNS(NS4, "clipPath");
43477
+ clip.id = `office-picture-clip-${++serial2}`;
43478
+ const rect3 = doc.createElementNS(NS4, "rect");
43479
+ rect3.setAttribute("width", String(cell.width));
43480
+ rect3.setAttribute("height", String(cell.height));
43481
+ clip.append(rect3);
43482
+ defs.append(clip);
43483
+ const group = doc.createElementNS(NS4, "g");
43484
+ group.setAttribute(
43485
+ "transform",
43486
+ `translate(${(col + col % 2) * cell.width} ${(row + row % 2) * cell.height}) scale(${col % 2 ? -1 : 1} ${row % 2 ? -1 : 1})`
43487
+ );
43488
+ group.setAttribute("clip-path", `url(#${clip.id})`);
43489
+ const image = geometry.imageRectFromCrop(
43490
+ { x: 0, y: 0, width: cell.width, height: cell.height },
43491
+ crop
43492
+ );
43493
+ appendImage(group, image.x, image.y, image.width, image.height);
43494
+ pattern.append(group);
43495
+ }
43496
+ pattern.dataset.ready = "true";
43497
+ };
43498
+ const size2 = source.width && source.height ? { width: source.width, height: source.height } : getCachedNativeImageSize(source.url);
43499
+ if (size2) paint(size2);
43500
+ else void probeNativeImageSize(source.url).then(paint);
43501
+ } else {
43502
+ pattern.setAttribute("width", String(context.width));
43503
+ pattern.setAttribute("height", String(context.height));
43504
+ pattern.setAttribute("patternContentUnits", "objectBoundingBox");
43505
+ const insets = fill3.layout?.fillRect ?? { l: 0, t: 0, r: 0, b: 0 };
43506
+ const frame = {
43507
+ x: insets.l,
43508
+ y: insets.t,
43509
+ width: 1 - insets.l - insets.r,
43510
+ height: 1 - insets.t - insets.b
43511
+ };
43512
+ if (frame.width <= 0 || frame.height <= 0) {
43513
+ unapplied.push("invalid-fillRect");
43514
+ pattern.dataset.unapplied = "invalid-fillRect";
43515
+ } else {
43516
+ const rect3 = geometry.imageRectFromCrop(frame, crop);
43517
+ const clip = doc.createElementNS(NS4, "clipPath");
43518
+ clip.id = `office-picture-clip-${++serial2}`;
43519
+ clip.setAttribute("clipPathUnits", "userSpaceOnUse");
43520
+ const box = doc.createElementNS(NS4, "rect");
43521
+ for (const [key, value] of Object.entries(frame)) box.setAttribute(key, String(value));
43522
+ clip.append(box);
43523
+ defs.append(clip);
43524
+ const group = doc.createElementNS(NS4, "g");
43525
+ group.setAttribute("clip-path", `url(#${clip.id})`);
43526
+ appendImage(group, rect3.x, rect3.y, rect3.width, rect3.height);
43527
+ pattern.append(group);
43528
+ }
43529
+ }
43530
+ defs.append(pattern);
43531
+ return {
43532
+ paint: `url(#${pattern.id})`,
43533
+ unapplied,
43534
+ ...effects.approximated?.length ? { approximated: effects.approximated } : {}
43535
+ };
43536
+ }
43537
+
43538
+ // src/picture-view.ts
43539
+ function pictureSvg(doc, fill3, url, width, height, context = {}) {
43540
+ const ns = "http://www.w3.org/2000/svg";
43541
+ const svg2 = doc.createElementNS(ns, "svg");
43542
+ svg2.setAttribute("width", String(width));
43543
+ svg2.setAttribute("height", String(height));
43544
+ svg2.setAttribute("viewBox", `0 0 ${width} ${height}`);
43545
+ svg2.style.width = "100%";
43546
+ svg2.style.height = "100%";
43547
+ const defs = doc.createElementNS(ns, "defs");
43548
+ svg2.append(defs);
43549
+ const result = picturePaint(doc, defs, fill3, url, { width, height, ...context });
43550
+ const rect3 = doc.createElementNS(ns, "rect");
43551
+ rect3.setAttribute("width", String(width));
43552
+ rect3.setAttribute("height", String(height));
43553
+ rect3.setAttribute("fill", result.paint);
43554
+ svg2.append(rect3);
43555
+ if (result.unapplied.length) svg2.dataset.unappliedPictureEffects = result.unapplied.join(",");
43556
+ if (result.approximated?.length)
43557
+ svg2.dataset.approximatedPictureEffects = result.approximated.join(",");
43558
+ return svg2;
43559
+ }
43560
+
43561
+ // src/pptx/render/smartart-picture-image.ts
43562
+ var needsSmartArtPictureRefresh = (shape) => Boolean(
43563
+ shape.fillImageUrl && (needsPicturePixels(shape.pictureFill?.effects ?? []) || shape.pictureFill?.layout?.tile && !(shape.fillImageWidth && shape.fillImageHeight))
43564
+ );
43565
+ var pendingImages = /* @__PURE__ */ new WeakMap();
43566
+ var sourceKey = (shape) => JSON.stringify([
43567
+ shape.fillImageUrl,
43568
+ shape.pictureFill,
43569
+ shape.width,
43570
+ shape.height,
43571
+ shape.rotation,
43572
+ shape.flipHorizontal,
43573
+ shape.flipVertical,
43574
+ shape.shapeType,
43575
+ shape.shapeAdjustments
43576
+ ]);
43577
+ function refreshSmartArtPictureImage(event, source) {
43578
+ const image = event.currentTarget;
43579
+ if (!image || image.localName !== "image" || !source || !needsSmartArtPictureRefresh(source))
43580
+ return;
43581
+ const key = sourceKey(source);
43582
+ const originalHref = image.getAttribute("href");
43583
+ const previous = pendingImages.get(image);
43584
+ if (previous?.key === key && previous.href === originalHref) return;
43585
+ const state = { key, href: originalHref };
43586
+ pendingImages.set(image, state);
43587
+ const pixels2 = needsPicturePixels(source.pictureFill?.effects ?? []);
43588
+ const ready = pixels2 ? probePicturePixels(
43589
+ image.ownerDocument,
43590
+ source.fillImageUrl,
43591
+ source.pictureFill.effects ?? []
43592
+ ) : probeNativeImageSize(source.fillImageUrl);
43593
+ void ready.then((result) => {
43594
+ if (!result || !image.isConnected || image.getAttribute("href") !== originalHref || pendingImages.get(image) !== state || sourceKey(source) !== key)
43595
+ return;
43596
+ image.setAttribute("data-office-picture-paint-ready", "true");
43597
+ if (pixels2) image.setAttribute("data-office-picture-pixels-ready", "true");
43598
+ const url = smartArtPictureImage(source);
43599
+ state.href = url ?? originalHref;
43600
+ if (url && image.getAttribute("href") !== url) image.setAttribute("href", url);
43601
+ });
43602
+ }
43603
+ function smartArtPictureImage(shape) {
43604
+ const url = shape.fillImageUrl;
43605
+ if (!url?.startsWith("data:") || !shape.pictureFill || typeof document === "undefined")
43606
+ return url;
43607
+ const size2 = cachedPicturePixels(url, shape.pictureFill.effects ?? []) ?? getCachedNativeImageSize(url);
43608
+ const width = shape.fillImageWidth ?? size2?.width;
43609
+ const height = shape.fillImageHeight ?? size2?.height;
43610
+ if (shape.pictureFill.layout?.tile && !(width && height)) return url;
43611
+ const svg2 = pictureSvg(
43612
+ document,
43613
+ shape.pictureFill,
43614
+ {
43615
+ url,
43616
+ ...width ? { width } : {},
43617
+ ...height ? { height } : {}
43618
+ },
43619
+ shape.width,
43620
+ shape.height,
43621
+ {
43622
+ rotation: shape.rotation,
43623
+ flipHorizontal: shape.flipHorizontal,
43624
+ flipVertical: shape.flipVertical
43625
+ }
43626
+ );
43627
+ svg2.setAttribute("xmlns", "http://www.w3.org/2000/svg");
43628
+ const geometry = getPresetShapeVectorGeometry(
43629
+ shape.shapeType,
43630
+ shape.width,
43631
+ shape.height,
43632
+ shape.shapeAdjustments
43633
+ );
43634
+ const rectangle = svg2.lastElementChild;
43635
+ if (geometry && rectangle) {
43636
+ const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
43637
+ path.setAttribute("d", geometry.d);
43638
+ path.setAttribute("fill", rectangle.getAttribute("fill") ?? "none");
43639
+ rectangle.replaceWith(path);
43640
+ }
43641
+ return `data:image/svg+xml,${encodeURIComponent(svg2.outerHTML)}`;
43642
+ }
42972
43643
  function computeDrawingViewBox(shapes) {
42973
43644
  return diagram.computeDiagramDrawingBounds(
42974
43645
  shapes.map((shape) => ({
@@ -43113,7 +43784,8 @@ function projectDrawingShapes(elementId, shapes, viewBox, palette, style) {
43113
43784
  stroke,
43114
43785
  strokeWidth: shape.strokeWidth ?? sw,
43115
43786
  transform,
43116
- imageUrl: shape.fillImageUrl,
43787
+ imageUrl: smartArtPictureImage(shape),
43788
+ ...needsSmartArtPictureRefresh(shape) ? { pictureSource: shape } : {},
43117
43789
  textLines: shape.text ? centeredSvgTextLines(shape.text, fontSize, {
43118
43790
  maxWidth: textWrapWidth,
43119
43791
  centerY: textCenterY,
@@ -43594,8 +44266,6 @@ function routeEditLayerPointerToNodes(layer) {
43594
44266
  layer.removeEventListener("mousemove", onMouseMove, true);
43595
44267
  };
43596
44268
  }
43597
-
43598
- // src/pptx/render/smartart-reflow-to-shapes.ts
43599
44269
  function polygonBounds(points) {
43600
44270
  const pairs = points.trim().split(/\s+/u);
43601
44271
  let minX = Infinity;
@@ -43698,6 +44368,10 @@ function rebuildDrawingShapesIfCleared(smartArtData, layout, palette, style, ele
43698
44368
  if (shapes === void 0 || shapes.length > 0 || smartArtData.nodes.length === 0) {
43699
44369
  return smartArtData;
43700
44370
  }
44371
+ const pictures = pptx.reflowSmartArtPictures(smartArtData, box.width, box.height);
44372
+ if (pictures) {
44373
+ return { ...smartArtData, drawingShapes: pptx.applySmartArtQuickStyle3d(pictures, smartArtData) };
44374
+ }
43701
44375
  const layoutResult = computeSmartArtElementLayout(
43702
44376
  { ...smartArtData, layout },
43703
44377
  smartArtData.nodes,
@@ -43759,7 +44433,7 @@ function buildObliqueLabels(layout, input) {
43759
44433
  const { w, h, d } = layout.box;
43760
44434
  const span = layout.range.max - layout.range.min;
43761
44435
  const fontSize = input.fontSize;
43762
- for (const v of chunkD4LJJ7Z7_cjs.axisTickValues({ ...layout.range, span })) {
44436
+ for (const v of chunkKJICUZXM_cjs.axisTickValues({ ...layout.range, span })) {
43763
44437
  const p = (v - layout.range.min) * layout.valueScale;
43764
44438
  if (layout.horizontal) {
43765
44439
  const at = screen2(layout, p, 0, 0);
@@ -43905,22 +44579,22 @@ function computeObliqueBarLayout(element, vm) {
43905
44579
  const rotX = (chartData.view3D?.rotX ?? 15) * Math.PI / 180;
43906
44580
  const rotY = (chartData.view3D?.rotY ?? 20) * Math.PI / 180;
43907
44581
  const shear = { x: Math.sin(rotY), y: -Math.sin(rotX) };
43908
- const gapWidth = (chartData.barGapWidth ?? chunkD4LJJ7Z7_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
44582
+ const gapWidth = (chartData.barGapWidth ?? chunkKJICUZXM_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
43909
44583
  const gapDepth = (chartData.gapDepth ?? DEFAULT_GAP_DEPTH) / 100;
43910
44584
  const slots = grouping === "clustered" ? nSer : 1;
43911
44585
  const rows = grouping === "standard" ? nSer : 1;
43912
44586
  const labelFont = vm.axisLabels[0]?.fontSize ?? 16;
43913
44587
  const catLabels = chartData.categories.length > 0 ? chartData.categories : Array.from({ length: nCat }, (_, i) => String(i + 1));
43914
- const widest = (texts) => texts.reduce((m, t2) => Math.max(m, chunkD4LJJ7Z7_cjs.estimateTextWidth(t2, labelFont)), 0);
44588
+ const widest = (texts) => texts.reduce((m, t2) => Math.max(m, chunkKJICUZXM_cjs.estimateTextWidth(t2, labelFont)), 0);
43915
44589
  const top = vm.title ? TOP_WITH_TITLE : TOP_NO_TITLE;
43916
44590
  const hasBottomLegend = chartData.style?.hasLegend !== false && (chartData.style?.legendPosition ?? "b") === "b";
43917
44591
  const bottom = vm.svgHeight - (hasBottomLegend ? BOTTOM_WITH_LEGEND : BOTTOM_NO_LEGEND);
43918
44592
  const regionH = Math.max(1, bottom - top);
43919
44593
  const provisional = valueRange(chartData, grouping, nCat, regionH);
43920
- const valueTexts = chunkD4LJJ7Z7_cjs.axisTickValues({
44594
+ const valueTexts = chunkKJICUZXM_cjs.axisTickValues({
43921
44595
  ...provisional,
43922
44596
  span: provisional.max - provisional.min
43923
- }).map((v) => chunkS5I64Y55_cjs.formatValueLabel(chartData, grouping, v));
44597
+ }).map((v) => chunkHIRBPTML_cjs.formatValueLabel(chartData, grouping, v));
43924
44598
  const leftBand = (horizontal ? widest(catLabels) : widest(valueTexts)) + (horizontal ? OBLIQUE_CATEGORY_LABEL_GAP : OBLIQUE_VALUE_LABEL_GAP);
43925
44599
  const seriesLabelW = grouping === "standard" && !horizontal ? widest(chartData.series.map((s) => s.name)) : 0;
43926
44600
  const seriesOverhang = (depth2) => seriesLabelW > 0 ? Math.max(0, OBLIQUE_CATEGORY_LABEL_GAP + seriesLabelW - depth2 * shear.x / (2 * rows)) : 0;
@@ -43976,13 +44650,13 @@ function computeObliqueBarLayout(element, vm) {
43976
44650
  gridlines: [],
43977
44651
  labels: []
43978
44652
  };
43979
- layout.bars = chunkS5I64Y55_cjs.buildBars(chartData, vm, layout, { nCat, slots, rows, gapWidth, gapDepth });
43980
- layout.gridlines = chunkS5I64Y55_cjs.buildGridlines(layout);
44653
+ layout.bars = chunkHIRBPTML_cjs.buildBars(chartData, vm, layout, { nCat, slots, rows, gapWidth, gapDepth });
44654
+ layout.gridlines = chunkHIRBPTML_cjs.buildGridlines(layout);
43981
44655
  layout.labels = buildObliqueLabels(layout, {
43982
44656
  fontSize: labelFont,
43983
44657
  categories: catLabels,
43984
44658
  seriesNames: chartData.series.map((s) => s.name),
43985
- valueText: (v) => chunkS5I64Y55_cjs.formatValueLabel(chartData, grouping, v)
44659
+ valueText: (v) => chunkHIRBPTML_cjs.formatValueLabel(chartData, grouping, v)
43986
44660
  });
43987
44661
  return layout;
43988
44662
  }
@@ -43995,7 +44669,7 @@ function buildPerspGridlines(box, range, horizontal) {
43995
44669
  { from: [w, 0, 0], to: [w, 0, d] }
43996
44670
  ];
43997
44671
  const span = range.max - range.min;
43998
- for (const v of chunkD4LJJ7Z7_cjs.axisTickValues({ ...range, span })) {
44672
+ for (const v of chunkKJICUZXM_cjs.axisTickValues({ ...range, span })) {
43999
44673
  const t2 = (v - range.min) / span;
44000
44674
  if (horizontal) {
44001
44675
  const x = t2 * w;
@@ -44021,11 +44695,11 @@ function buildPerspLabels(layout, input) {
44021
44695
  const span = range.max - range.min;
44022
44696
  const labels = [];
44023
44697
  const fontSize = input.fontSize;
44024
- for (const v of chunkD4LJJ7Z7_cjs.axisTickValues({ ...range, span })) {
44698
+ for (const v of chunkKJICUZXM_cjs.axisTickValues({ ...range, span })) {
44025
44699
  const t2 = (v - range.min) / span;
44026
- const text4 = input.percent ? `${Math.round(v * 100)}%` : chunkD4LJJ7Z7_cjs.formatAxisValueWithUnits(v, input.valueAxis);
44700
+ const text4 = input.percent ? `${Math.round(v * 100)}%` : chunkKJICUZXM_cjs.formatAxisValueWithUnits(v, input.valueAxis);
44027
44701
  if (layout.horizontal) {
44028
- const at = chunkS5I64Y55_cjs.perspToScreen(view2, [t2 * w, 0, 0]);
44702
+ const at = chunkHIRBPTML_cjs.perspToScreen(view2, [t2 * w, 0, 0]);
44029
44703
  labels.push({
44030
44704
  role: "value",
44031
44705
  text: text4,
@@ -44035,7 +44709,7 @@ function buildPerspLabels(layout, input) {
44035
44709
  fontSize
44036
44710
  });
44037
44711
  } else {
44038
- const at = chunkS5I64Y55_cjs.perspToScreen(view2, [0, t2 * h, 0]);
44712
+ const at = chunkHIRBPTML_cjs.perspToScreen(view2, [0, t2 * h, 0]);
44039
44713
  labels.push({ role: "value", text: text4, x: at.x - VALUE_GAP2, y: at.y, anchor: "end", fontSize });
44040
44714
  }
44041
44715
  }
@@ -44045,7 +44719,7 @@ function buildPerspLabels(layout, input) {
44045
44719
  return;
44046
44720
  }
44047
44721
  if (layout.horizontal) {
44048
- const at2 = chunkS5I64Y55_cjs.perspToScreen(view2, [0, pos, 0]);
44722
+ const at2 = chunkHIRBPTML_cjs.perspToScreen(view2, [0, pos, 0]);
44049
44723
  labels.push({
44050
44724
  role: "category",
44051
44725
  text: text4,
@@ -44056,7 +44730,7 @@ function buildPerspLabels(layout, input) {
44056
44730
  });
44057
44731
  return;
44058
44732
  }
44059
- const at = chunkS5I64Y55_cjs.perspToScreen(view2, [pos, 0, 0]);
44733
+ const at = chunkHIRBPTML_cjs.perspToScreen(view2, [pos, 0, 0]);
44060
44734
  labels.push({
44061
44735
  role: "category",
44062
44736
  text: text4,
@@ -44069,7 +44743,7 @@ function buildPerspLabels(layout, input) {
44069
44743
  const rows = input.seriesNames.length;
44070
44744
  input.seriesNames.forEach((text4, s) => {
44071
44745
  const z = layout.kind === "surface" ? rows > 1 ? s / (rows - 1) * d : d / 2 : (s + 0.5) / rows * d;
44072
- const at = chunkS5I64Y55_cjs.perspToScreen(view2, [w, 0, z]);
44746
+ const at = chunkHIRBPTML_cjs.perspToScreen(view2, [w, 0, z]);
44073
44747
  labels.push({
44074
44748
  role: "series",
44075
44749
  text: text4,
@@ -44162,7 +44836,7 @@ function computePerspChartLayout(element, vm, options = {}) {
44162
44836
  const valAx = chartData.axes?.find((a) => a.axisType === "valAx");
44163
44837
  const midCat = (valAx?.crossBetween ?? (kind === "area" || kind === "surface" ? "midCat" : "between")) === "midCat";
44164
44838
  const view3D = chartData.view3D;
44165
- const gapWidth = (chartData.barGapWidth ?? chunkD4LJJ7Z7_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
44839
+ const gapWidth = (chartData.barGapWidth ?? chunkKJICUZXM_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
44166
44840
  const gapDepth = (chartData.gapDepth ?? DEFAULT_GAP_DEPTH2) / 100;
44167
44841
  const slot = 1 / nCat;
44168
44842
  const rows = kind === "surface" ? nSer : grouping === "standard" ? nSer : 1;
@@ -44175,9 +44849,9 @@ function computePerspChartLayout(element, vm, options = {}) {
44175
44849
  const valueExtent = horizontal ? 1 : baseHeight * heightScale;
44176
44850
  const catExtent = horizontal ? HORIZONTAL_CATEGORY_EXTENT * heightScale : 1;
44177
44851
  const box = horizontal ? { w: valueExtent, h: catExtent, d } : { w: 1, h: valueExtent, d };
44178
- const camera = options.oblique ? chunkS5I64Y55_cjs.perspObliqueCameraFor(box, view3D?.rotX ?? 15, view3D?.rotY ?? 20) : chunkS5I64Y55_cjs.perspCameraFor(box, view3D?.rotX ?? 15, view3D?.rotY ?? 20, view3D?.perspective ?? void 0);
44852
+ const camera = options.oblique ? chunkHIRBPTML_cjs.perspObliqueCameraFor(box, view3D?.rotX ?? 15, view3D?.rotY ?? 20) : chunkHIRBPTML_cjs.perspCameraFor(box, view3D?.rotX ?? 15, view3D?.rotY ?? 20, view3D?.perspective ?? void 0);
44179
44853
  const hasLegend = chartData.style?.hasLegend !== false && (chartData.style?.legendPosition ?? "b") === "b";
44180
- const view2 = chunkS5I64Y55_cjs.fitPerspView(camera, {
44854
+ const view2 = chunkHIRBPTML_cjs.fitPerspView(camera, {
44181
44855
  left: RECT_LEFT,
44182
44856
  right: vm.svgWidth - (rows > 1 ? RECT_RIGHT_WITH_SERIES : RECT_RIGHT_NO_SERIES),
44183
44857
  top: vm.title ? RECT_TOP_WITH_TITLE : RECT_TOP_NO_TITLE,
@@ -44222,46 +44896,6 @@ function computePerspChartLayout(element, vm, options = {}) {
44222
44896
  return layout;
44223
44897
  }
44224
44898
 
44225
- // src/pptx/render/chart-3d-projection.ts
44226
- var DEFAULT_ROT_X = 15;
44227
- var DEFAULT_ROT_Y = 20;
44228
- var DEFAULT_PIE_ROT_X = 30;
44229
- var DEFAULT_PIE_ROT_Y = 0;
44230
- var DEFAULT_PERSPECTIVE_DEG = 30;
44231
- var PERSPECTIVE_MAX_DEG = 120;
44232
- var FOV_MIN = 15;
44233
- var FOV_MAX = 75;
44234
- function clamp7(value, min, max) {
44235
- return Math.min(Math.max(value, min), max);
44236
- }
44237
- function resolvePerspectiveFov(perspectiveDeg) {
44238
- const perspective2 = clamp7(perspectiveDeg ?? DEFAULT_PERSPECTIVE_DEG, 0, PERSPECTIVE_MAX_DEG);
44239
- return FOV_MIN + perspective2 / PERSPECTIVE_MAX_DEG * (FOV_MAX - FOV_MIN);
44240
- }
44241
- function resolveChart3DProjection(chartType, view3D) {
44242
- const isPie = chartType === "pie3D";
44243
- const rotXDeg = view3D?.rotX ?? (isPie ? DEFAULT_PIE_ROT_X : DEFAULT_ROT_X);
44244
- const rotYDeg = view3D?.rotY ?? (isPie ? DEFAULT_PIE_ROT_Y : DEFAULT_ROT_Y);
44245
- const rAngAx = view3D?.rAngAx ?? chartType === "bar3D";
44246
- if (rAngAx) {
44247
- const rx = rotXDeg * Math.PI / 180;
44248
- const ry = rotYDeg * Math.PI / 180;
44249
- return {
44250
- mode: "oblique",
44251
- shearX: Math.sin(ry),
44252
- shearY: -Math.sin(rx),
44253
- rotXDeg,
44254
- rotYDeg
44255
- };
44256
- }
44257
- return {
44258
- mode: "perspective",
44259
- rotXDeg,
44260
- rotYDeg,
44261
- fovDeg: resolvePerspectiveFov(view3D?.perspective)
44262
- };
44263
- }
44264
-
44265
44899
  // src/pptx/render/chart-3d-spec.ts
44266
44900
  var CHART_3D_TYPES = /* @__PURE__ */ new Set([
44267
44901
  "bar3D",
@@ -44276,7 +44910,7 @@ function buildBarGeometry(element, vm) {
44276
44910
  }
44277
44911
  var PERSP_BOX_TYPES = /* @__PURE__ */ new Set(["line3D", "area3D", "surface", "bar3D"]);
44278
44912
  function buildPieGeometry(element, vm) {
44279
- const layout = chunkS5I64Y55_cjs.computePieChartLayout(element, chunkS5I64Y55_cjs.widenPieViewModel(vm, element));
44913
+ const layout = chunkHIRBPTML_cjs.computePieChartLayout(element, chunkHIRBPTML_cjs.widenPieViewModel(vm, element));
44280
44914
  return layout ? { kind: "pie", layout } : null;
44281
44915
  }
44282
44916
  function buildPerspGeometry(element, vm, oblique) {
@@ -44296,8 +44930,8 @@ function buildChart3DSpecForElement(element) {
44296
44930
  if (!chartData || !is3DChartType(chartType)) {
44297
44931
  return null;
44298
44932
  }
44299
- const vm = chunkD4LJJ7Z7_cjs.buildChartViewModel(element);
44300
- const projection = resolveChart3DProjection(chartType, chartData.view3D);
44933
+ const vm = chunkKJICUZXM_cjs.buildChartViewModel(element);
44934
+ const projection = chart.resolveChart3DProjection(chartType, chartData.view3D);
44301
44935
  const geometry = chartType === "bar3D" && projection.mode === "oblique" ? buildBarGeometry(element, vm) : PERSP_BOX_TYPES.has(chartType) && (projection.mode === "perspective" || chartType !== "bar3D") ? buildPerspGeometry(element, vm, projection.mode === "oblique") : chartType === "pie3D" ? buildPieGeometry(element, vm) : null;
44302
44936
  if (!geometry) {
44303
44937
  return null;
@@ -44689,7 +45323,7 @@ function buildSurfaceLabels(cols, rows, categoryLabels, seriesNames, maxCat = 8,
44689
45323
  var DEFAULT_ELEVATION_DEG = 15;
44690
45324
  var DEFAULT_AZIMUTH_DEG = 20;
44691
45325
  var RADIUS_FACTOR = Math.sqrt(0.8 ** 2 + 0.7 ** 2 + 0.8 ** 2);
44692
- function clamp8(value, min, max) {
45326
+ function clamp7(value, min, max) {
44693
45327
  return Math.min(Math.max(value, min), max);
44694
45328
  }
44695
45329
  function normalizeAzimuth(deg3) {
@@ -44705,7 +45339,7 @@ function computeCameraPlacement(cols, rows, view3D) {
44705
45339
  return { position: [dist2 * 0.8, dist2 * 0.7, dist2 * 0.8], target };
44706
45340
  }
44707
45341
  const radius = dist2 * RADIUS_FACTOR;
44708
- const elevationDeg = clamp8(view3D.rotX ?? DEFAULT_ELEVATION_DEG, -89, 89);
45342
+ const elevationDeg = clamp7(view3D.rotX ?? DEFAULT_ELEVATION_DEG, -89, 89);
44709
45343
  const azimuthDeg = normalizeAzimuth(view3D.rotY ?? DEFAULT_AZIMUTH_DEG);
44710
45344
  const phi = (90 - elevationDeg) * Math.PI / 180;
44711
45345
  const theta = azimuthDeg * Math.PI / 180;
@@ -44782,7 +45416,7 @@ function inspectorNumber(value, fallback = 0) {
44782
45416
  const source = typeof value === "number" && Number.isFinite(value) ? value : fallback;
44783
45417
  return Math.round(source * 100) / 100;
44784
45418
  }
44785
- function clamp9(v, lo, hi) {
45419
+ function clamp8(v, lo, hi) {
44786
45420
  return Math.max(lo, Math.min(hi, v));
44787
45421
  }
44788
45422
  function shapeStyleMergePatch(el, changes) {
@@ -44828,7 +45462,7 @@ function outerShadowStyle(state) {
44828
45462
  const angleRad = state.angle * Math.PI / 180;
44829
45463
  return {
44830
45464
  shadowColor: state.color,
44831
- shadowOpacity: clamp9(state.opacity, 0, 1),
45465
+ shadowOpacity: clamp8(state.opacity, 0, 1),
44832
45466
  shadowBlur: Math.max(0, state.blur),
44833
45467
  shadowAngle: state.angle,
44834
45468
  shadowDistance: Math.max(0, state.distance),
@@ -44856,7 +45490,7 @@ function disableInnerShadowPatch(el) {
44856
45490
  function innerShadowStyle(state) {
44857
45491
  return {
44858
45492
  innerShadowColor: state.color,
44859
- innerShadowOpacity: clamp9(state.opacity, 0, 1),
45493
+ innerShadowOpacity: clamp8(state.opacity, 0, 1),
44860
45494
  innerShadowBlur: Math.max(0, state.blur),
44861
45495
  innerShadowOffsetX: state.offsetX,
44862
45496
  innerShadowOffsetY: state.offsetY
@@ -44912,7 +45546,7 @@ function glowStyle(state) {
44912
45546
  return {
44913
45547
  glowColor: state.color,
44914
45548
  glowRadius: Math.max(0, state.radius),
44915
- glowOpacity: clamp10(state.opacity, 0, 1)
45549
+ glowOpacity: clamp9(state.opacity, 0, 1)
44916
45550
  };
44917
45551
  }
44918
45552
  function updateGlowPatch(el, changes) {
@@ -44922,8 +45556,8 @@ function updateGlowPatch(el, changes) {
44922
45556
  function reflectionStyle(state) {
44923
45557
  return {
44924
45558
  reflectionBlurRadius: Math.max(0, state.blurRadius),
44925
- reflectionStartOpacity: clamp10(state.startOpacity, 0, 100),
44926
- reflectionEndOpacity: clamp10(state.endOpacity, 0, 100),
45559
+ reflectionStartOpacity: clamp9(state.startOpacity, 0, 100),
45560
+ reflectionEndOpacity: clamp9(state.endOpacity, 0, 100),
44927
45561
  reflectionDistance: Math.max(0, state.distance),
44928
45562
  reflectionDirection: state.direction
44929
45563
  };
@@ -44951,7 +45585,7 @@ function enableSoftEdgePatch(el, radius) {
44951
45585
  function disableSoftEdgePatch(el) {
44952
45586
  return shapeStyleMergePatch2(el, { softEdgeRadius: 0 });
44953
45587
  }
44954
- function clamp10(v, lo, hi) {
45588
+ function clamp9(v, lo, hi) {
44955
45589
  return Math.max(lo, Math.min(hi, v));
44956
45590
  }
44957
45591
 
@@ -45989,7 +46623,7 @@ function colorField2(section2, key) {
45989
46623
  kind: "color",
45990
46624
  labelKey: "pptx.textEffects.color",
45991
46625
  testId: fxId(section2, "color"),
45992
- read: (ts) => chunkD4LJJ7Z7_cjs.normalizeHexColor(ts?.[key], ON_DEFAULTS[key]),
46626
+ read: (ts) => chunkKJICUZXM_cjs.normalizeHexColor(ts?.[key], ON_DEFAULTS[key]),
45993
46627
  write: (_ts, v) => ({ [key]: String(v) })
45994
46628
  };
45995
46629
  }
@@ -49375,8 +50009,19 @@ function asElement(target) {
49375
50009
  }
49376
50010
  return element;
49377
50011
  }
50012
+ function deepTarget(target) {
50013
+ let current = target;
50014
+ for (let depth = 0; depth < 8; depth++) {
50015
+ const inner3 = current?.shadowRoot?.activeElement;
50016
+ if (!inner3 || typeof inner3.tagName !== "string") {
50017
+ break;
50018
+ }
50019
+ current = inner3;
50020
+ }
50021
+ return current;
50022
+ }
49378
50023
  function isEditorTextInputTarget(target) {
49379
- const element = asElement(target);
50024
+ const element = asElement(deepTarget(target));
49380
50025
  if (!element) {
49381
50026
  return false;
49382
50027
  }
@@ -51169,7 +51814,7 @@ function getCachedResult(key) {
51169
51814
  return colorChangeCache.get(key);
51170
51815
  }
51171
51816
  function setCachedResult(key, dataUrl) {
51172
- chunkD4LJJ7Z7_cjs.setBoundedRenderCache(colorChangeCache, key, dataUrl, CACHE_MAX2);
51817
+ chunkKJICUZXM_cjs.setBoundedRenderCache(colorChangeCache, key, dataUrl, CACHE_MAX2);
51173
51818
  }
51174
51819
  function clearColorChangeCache() {
51175
51820
  colorChangeCache.clear();
@@ -51192,7 +51837,7 @@ async function resolveColorChangedImageSource(src, clrChange) {
51192
51837
  if (cached) {
51193
51838
  return cached;
51194
51839
  }
51195
- const epoch = chunkD4LJJ7Z7_cjs.getPptxRenderCacheEpoch();
51840
+ const epoch = chunkKJICUZXM_cjs.getPptxRenderCacheEpoch();
51196
51841
  try {
51197
51842
  const result = await applyColorChange(
51198
51843
  src,
@@ -51201,7 +51846,7 @@ async function resolveColorChangedImageSource(src, clrChange) {
51201
51846
  tolerance,
51202
51847
  Boolean(clrChange.clrToTransparent)
51203
51848
  );
51204
- if (epoch === chunkD4LJJ7Z7_cjs.getPptxRenderCacheEpoch()) setCachedResult(key, result.dataUrl);
51849
+ if (epoch === chunkKJICUZXM_cjs.getPptxRenderCacheEpoch()) setCachedResult(key, result.dataUrl);
51205
51850
  return result.dataUrl;
51206
51851
  } catch {
51207
51852
  return src;
@@ -51279,7 +51924,7 @@ function getDuotoneCachedResult(key) {
51279
51924
  return duotoneCache.get(key);
51280
51925
  }
51281
51926
  function setDuotoneCachedResult(key, dataUrl) {
51282
- chunkD4LJJ7Z7_cjs.setBoundedRenderCache(duotoneCache, key, dataUrl, DUOTONE_CACHE_MAX);
51927
+ chunkKJICUZXM_cjs.setBoundedRenderCache(duotoneCache, key, dataUrl, DUOTONE_CACHE_MAX);
51283
51928
  }
51284
51929
  function clearDuotoneCache() {
51285
51930
  duotoneCache.clear();
@@ -51329,9 +51974,9 @@ var DUOTONE_PRESETS = [
51329
51974
 
51330
51975
  // src/pptx/render/render-cache-lifecycle.ts
51331
51976
  function releasePptxRenderCaches() {
51332
- chunkD4LJJ7Z7_cjs.invalidatePptxRenderCacheEpoch();
51977
+ chunkKJICUZXM_cjs.invalidatePptxRenderCacheEpoch();
51333
51978
  clearNativeImageSizeCache();
51334
- chunkD4LJJ7Z7_cjs.clearBarFacePicturePixelCache();
51979
+ chunkKJICUZXM_cjs.clearBarFacePicturePixelCache();
51335
51980
  clearColorChangeCache();
51336
51981
  clearDuotoneCache();
51337
51982
  }
@@ -53396,12 +54041,12 @@ function insertChartPreviewSvg(doc, value, size2, tile8, translate) {
53396
54041
  }
53397
54042
  );
53398
54043
  const data = element.chartData;
53399
- if (!data || chunkD4LJJ7Z7_cjs.resolveChartKind(data.chartType) === "unsupported") return "";
53400
- const kind = chunkD4LJJ7Z7_cjs.resolveChartKind(data.chartType);
54044
+ if (!data || chunkKJICUZXM_cjs.resolveChartKind(data.chartType) === "unsupported") return "";
54045
+ const kind = chunkKJICUZXM_cjs.resolveChartKind(data.chartType);
53401
54046
  const square = kind === "pie" || kind === "doughnut" || kind === "radar" || kind === "regionMap";
53402
- const svg2 = chunkS5I64Y55_cjs.renderChartViewModelSvg(
54047
+ const svg2 = chunkHIRBPTML_cjs.renderChartViewModelSvg(
53403
54048
  doc,
53404
- chunkD4LJJ7Z7_cjs.buildChartViewModel({ ...element, chartData: chunkD4LJJ7Z7_cjs.withResolvedPalette(data) }),
54049
+ chunkKJICUZXM_cjs.buildChartViewModel({ ...element, chartData: chunkKJICUZXM_cjs.withResolvedPalette(data) }),
53405
54050
  square ? "xMidYMid meet" : "none",
53406
54051
  translate
53407
54052
  );
@@ -53880,7 +54525,7 @@ function trimmedMediaDurationMs(trimStartMs, trimEndMs, durationMs) {
53880
54525
  }
53881
54526
 
53882
54527
  // src/pptx/render/media-trim-timeline.ts
53883
- function clamp11(value, minimum, maximum) {
54528
+ function clamp10(value, minimum, maximum) {
53884
54529
  return Math.min(maximum, Math.max(minimum, value));
53885
54530
  }
53886
54531
  function formatMediaTime(seconds) {
@@ -53893,42 +54538,42 @@ function formatMediaTime(seconds) {
53893
54538
  }
53894
54539
  function mediaTrimEndSeconds(durationSeconds, trimEndMs) {
53895
54540
  const duration = Math.max(0, durationSeconds);
53896
- return trimEndMs > 0 ? clamp11(duration - trimEndMs / 1e3, 0, duration) : duration;
54541
+ return trimEndMs > 0 ? clamp10(duration - trimEndMs / 1e3, 0, duration) : duration;
53897
54542
  }
53898
54543
  function mediaTrimEndMsFromSeconds(durationSeconds, endSeconds) {
53899
54544
  const duration = Math.max(0, durationSeconds);
53900
- return Math.max(0, duration - clamp11(endSeconds, 0, duration)) * 1e3;
54545
+ return Math.max(0, duration - clamp10(endSeconds, 0, duration)) * 1e3;
53901
54546
  }
53902
54547
  function mediaTimeFromPointer(clientX, barLeft, barWidth, durationSeconds) {
53903
54548
  if (barWidth <= 0 || durationSeconds <= 0) {
53904
54549
  return 0;
53905
54550
  }
53906
- return clamp11((clientX - barLeft) / barWidth, 0, 1) * durationSeconds;
54551
+ return clamp10((clientX - barLeft) / barWidth, 0, 1) * durationSeconds;
53907
54552
  }
53908
54553
  function mediaTimelineGeometry(durationSeconds, trimStartMs, trimEndMs, currentTimeSeconds) {
53909
54554
  const duration = durationSeconds > 0 ? durationSeconds : 1;
53910
- const startSeconds = clamp11(trimStartMs / 1e3, 0, duration);
54555
+ const startSeconds = clamp10(trimStartMs / 1e3, 0, duration);
53911
54556
  const requestedEnd = trimEndMs > 0 ? duration - trimEndMs / 1e3 : duration;
53912
- const endSeconds = clamp11(requestedEnd, startSeconds, duration);
54557
+ const endSeconds = clamp10(requestedEnd, startSeconds, duration);
53913
54558
  return {
53914
54559
  startPercent: startSeconds / duration * 100,
53915
54560
  endPercent: endSeconds / duration * 100,
53916
- playheadPercent: clamp11(currentTimeSeconds / duration * 100, 0, 100)
54561
+ playheadPercent: clamp10(currentTimeSeconds / duration * 100, 0, 100)
53917
54562
  };
53918
54563
  }
53919
54564
  function mediaTrimRangeForDrag(handle, pointerTimeSeconds, durationSeconds, trimStartMs, trimEndMs, minimumGapSeconds = 0.1) {
53920
54565
  const duration = Math.max(0, durationSeconds);
53921
- const startSeconds = clamp11(trimStartMs / 1e3, 0, duration);
53922
- const endSeconds = trimEndMs > 0 ? clamp11(duration - trimEndMs / 1e3, 0, duration) : duration;
54566
+ const startSeconds = clamp10(trimStartMs / 1e3, 0, duration);
54567
+ const endSeconds = trimEndMs > 0 ? clamp10(duration - trimEndMs / 1e3, 0, duration) : duration;
53923
54568
  if (handle === "start") {
53924
54569
  const latestStart = Math.max(0, endSeconds - minimumGapSeconds);
53925
54570
  return {
53926
- trimStartMs: clamp11(pointerTimeSeconds, 0, latestStart) * 1e3,
54571
+ trimStartMs: clamp10(pointerTimeSeconds, 0, latestStart) * 1e3,
53927
54572
  trimEndMs
53928
54573
  };
53929
54574
  }
53930
54575
  const earliestEnd = Math.min(duration, startSeconds + minimumGapSeconds);
53931
- const newEndSeconds = clamp11(pointerTimeSeconds, earliestEnd, duration);
54576
+ const newEndSeconds = clamp10(pointerTimeSeconds, earliestEnd, duration);
53932
54577
  return {
53933
54578
  trimStartMs,
53934
54579
  trimEndMs: (duration - newEndSeconds) * 1e3
@@ -54385,13 +55030,13 @@ function attachEditorImagePaste(root, options) {
54385
55030
  if (previousTabIndex === null) {
54386
55031
  root.tabIndex = 0;
54387
55032
  }
54388
- const pending2 = /* @__PURE__ */ new Set();
55033
+ const pending3 = /* @__PURE__ */ new Set();
54389
55034
  let disposed = false;
54390
55035
  const cancelPending = () => {
54391
- for (const abort of pending2) {
55036
+ for (const abort of pending3) {
54392
55037
  abort.abort();
54393
55038
  }
54394
- pending2.clear();
55039
+ pending3.clear();
54395
55040
  };
54396
55041
  const onFocusIn = (event) => {
54397
55042
  const canvas = options.getCanvas();
@@ -54421,9 +55066,9 @@ function attachEditorImagePaste(root, options) {
54421
55066
  }
54422
55067
  event.preventDefault();
54423
55068
  const abort = new AbortController();
54424
- pending2.add(abort);
55069
+ pending3.add(abort);
54425
55070
  void chunkZJFN5POF_cjs.createImageElementFromFile(file, target.canvasSize, abort.signal).then((element) => {
54426
- pending2.delete(abort);
55071
+ pending3.delete(abort);
54427
55072
  if (!element || disposed || abort.signal.aborted || !root.isConnected) {
54428
55073
  return;
54429
55074
  }
@@ -57534,9 +58179,9 @@ function resolveAuthoredSlideRange(selection, slideCount) {
57534
58179
  if (typeof from !== "number" || typeof to !== "number" || !Number.isFinite(from) || !Number.isFinite(to)) {
57535
58180
  return void 0;
57536
58181
  }
57537
- const clamp12 = (value) => Math.min(Math.max(Math.round(value), 1), slideCount);
57538
- const clampedFrom = clamp12(from);
57539
- const clampedTo = clamp12(to);
58182
+ const clamp11 = (value) => Math.min(Math.max(Math.round(value), 1), slideCount);
58183
+ const clampedFrom = clamp11(from);
58184
+ const clampedTo = clamp11(to);
57540
58185
  return {
57541
58186
  fromIndex: Math.min(clampedFrom, clampedTo) - 1,
57542
58187
  toIndex: Math.max(clampedFrom, clampedTo) - 1
@@ -61473,7 +62118,7 @@ function axisTitle(current, show) {
61473
62118
  return show ? current || chart.CHART_QUICK_LAYOUT_AXIS_TITLE : void 0;
61474
62119
  }
61475
62120
  function applyChartQuickLayout(chartData, layout) {
61476
- const withGrid = patchChartData(chartData, chunkD4LJJ7Z7_cjs.chartGridlinesPatch(chartData, layout.majorGridlines));
62121
+ const withGrid = patchChartData(chartData, chunkKJICUZXM_cjs.chartGridlinesPatch(chartData, layout.majorGridlines));
61477
62122
  const axes = (withGrid.axes ?? []).map((axis) => {
61478
62123
  if (axis.axisType === "valAx") {
61479
62124
  return {
@@ -61527,7 +62172,7 @@ function matchesLayout(chartData, layout) {
61527
62172
  const legend = style.hasLegend ? style.legendPosition ?? "r" : null;
61528
62173
  const isBar = chartData.chartType === "bar" || chartData.chartType === "bar3D";
61529
62174
  const barMatches = !isBar || (chartData.barGapWidth ?? 150) === layout.gapWidth && (chartData.barOverlap ?? 0) === layout.overlap;
61530
- return barMatches && Boolean(style.hasTitle) === layout.title && legend === layout.legend && Boolean(style.hasDataLabels) === layout.dataLabels && Boolean(chartData.dataTable) === layout.dataTable && Boolean(catAxis?.titleText) === layout.catAxisTitle && Boolean(valAxis?.titleText) === layout.valAxisTitle && chunkD4LJJ7Z7_cjs.chartGridlinesState(chartData) === layout.majorGridlines && Boolean(valAxis?.minorGridlines) === layout.minorGridlines && !valAxis?.deleted === layout.valueAxis;
62175
+ return barMatches && Boolean(style.hasTitle) === layout.title && legend === layout.legend && Boolean(style.hasDataLabels) === layout.dataLabels && Boolean(chartData.dataTable) === layout.dataTable && Boolean(catAxis?.titleText) === layout.catAxisTitle && Boolean(valAxis?.titleText) === layout.valAxisTitle && chunkKJICUZXM_cjs.chartGridlinesState(chartData) === layout.majorGridlines && Boolean(valAxis?.minorGridlines) === layout.minorGridlines && !valAxis?.deleted === layout.valueAxis;
61531
62176
  }
61532
62177
  var CHART_QUICK_LAYOUT_GALLERY = {
61533
62178
  build(ctx) {
@@ -63265,14 +63910,14 @@ function shadowMatches(style, spec5) {
63265
63910
  }
63266
63911
  function tileEffects(spec5) {
63267
63912
  const { x, y } = shadowOffsets(spec5.distEmu, spec5.dir);
63268
- const clamp12 = (v) => Math.max(-4, Math.min(4, v * 0.6));
63913
+ const clamp11 = (v) => Math.max(-4, Math.min(4, v * 0.6));
63269
63914
  return {
63270
63915
  shadow: {
63271
63916
  color: "#000000",
63272
63917
  opacity: Math.min(0.8, (spec5.alpha ?? 1e5) / 1e5 + 0.25),
63273
63918
  blur: Math.min(6, spec5.blurEmu / EMU_PER_PX6 / 1.5),
63274
- dx: clamp12(x),
63275
- dy: clamp12(y) + (spec5.sy !== void 0 && spec5.sy < 0 ? 3 : 0),
63919
+ dx: clamp11(x),
63920
+ dy: clamp11(y) + (spec5.sy !== void 0 && spec5.sy < 0 ? 3 : 0),
63276
63921
  inner: spec5.kind === "inner"
63277
63922
  }
63278
63923
  };
@@ -64532,7 +65177,7 @@ var SMARTART_LAYOUTS_GALLERY = {
64532
65177
  const data = element?.type === "smartArt" ? element.smartArtData : void 0;
64533
65178
  const current = data?.resolvedLayoutType ?? "list";
64534
65179
  const accent1 = galleryColorScheme(ctx).accent1;
64535
- const pending2 = smartArtBuiltinLayouts() === void 0;
65180
+ const pending3 = smartArtBuiltinLayouts() === void 0;
64536
65181
  return {
64537
65182
  id: "smartArtLayouts",
64538
65183
  labelKey: "pptx.gallery.smartArtLayouts.title",
@@ -64554,7 +65199,7 @@ var SMARTART_LAYOUTS_GALLERY = {
64554
65199
  },
64555
65200
  ...namedLayoutSections(accent1, data?.layoutDefinition?.uniqueId)
64556
65201
  ],
64557
- ...pending2 && {
65202
+ ...pending3 && {
64558
65203
  ready: preloadSmartArtBuiltinLayouts().then(
64559
65204
  (library) => library ? SMARTART_LAYOUTS_GALLERY.build(ctx) : void 0
64560
65205
  )
@@ -66186,9 +66831,9 @@ function effectFilter(style, id) {
66186
66831
  merge.push('<feMergeNode in="glow"/>');
66187
66832
  }
66188
66833
  if (style.textShadowColor) {
66189
- const clamp12 = (v) => Math.max(-2, Math.min(2, (v ?? 0) / 2));
66834
+ const clamp11 = (v) => Math.max(-2, Math.min(2, (v ?? 0) / 2));
66190
66835
  parts.push(
66191
- `<feDropShadow dx="${num13(clamp12(style.textShadowOffsetX))}" dy="${num13(clamp12(style.textShadowOffsetY))}" stdDeviation="${num13(Math.min(1.5, (style.textShadowBlur ?? 2) / 4))}" flood-color="${safeColor(style.textShadowColor, "#000000")}" flood-opacity="${num13(style.textShadowOpacity ?? 1)}" result="shadow"/>`
66836
+ `<feDropShadow dx="${num13(clamp11(style.textShadowOffsetX))}" dy="${num13(clamp11(style.textShadowOffsetY))}" stdDeviation="${num13(Math.min(1.5, (style.textShadowBlur ?? 2) / 4))}" flood-color="${safeColor(style.textShadowColor, "#000000")}" flood-opacity="${num13(style.textShadowOpacity ?? 1)}" result="shadow"/>`
66192
66837
  );
66193
66838
  merge.push('<feMergeNode in="shadow"/>');
66194
66839
  } else {
@@ -67941,19 +68586,19 @@ function cursorForTool(tool) {
67941
68586
 
67942
68587
  // src/pptx/render/animation-opacity-playback.ts
67943
68588
  var stacks = /* @__PURE__ */ new WeakMap();
67944
- var pending = /* @__PURE__ */ new WeakMap();
68589
+ var pending2 = /* @__PURE__ */ new WeakMap();
67945
68590
  function resetOpacitySetPlayback(timers) {
67946
68591
  stacks.delete(timers);
67947
- pending.delete(timers);
68592
+ pending2.delete(timers);
67948
68593
  }
67949
68594
  function finishOpacitySetSteps(group, ctx) {
67950
- for (const step2 of group.steps) pending.get(ctx.timers)?.get(step2)?.();
68595
+ for (const step2 of group.steps) pending2.get(ctx.timers)?.get(step2)?.();
67951
68596
  }
67952
68597
  function applyOpacitySetSteps(group, ctx) {
67953
68598
  const targets = stacks.get(ctx.timers) ?? /* @__PURE__ */ new Map();
67954
68599
  stacks.set(ctx.timers, targets);
67955
- const completions = pending.get(ctx.timers) ?? /* @__PURE__ */ new Map();
67956
- pending.set(ctx.timers, completions);
68600
+ const completions = pending2.get(ctx.timers) ?? /* @__PURE__ */ new Map();
68601
+ pending2.set(ctx.timers, completions);
67957
68602
  for (const step2 of group.steps) {
67958
68603
  const set = step2.opacitySet;
67959
68604
  if (!set || !step2.elementId) continue;
@@ -68194,15 +68839,15 @@ function driveBuildReveal(controller, group, ctx) {
68194
68839
  }
68195
68840
  return next;
68196
68841
  });
68197
- let pending2 = false;
68842
+ let pending3 = false;
68198
68843
  for (const id of buildIds) {
68199
68844
  const build7 = states.get(id)?.build;
68200
68845
  if (build7 && build7.progress < 1) {
68201
- pending2 = true;
68846
+ pending3 = true;
68202
68847
  break;
68203
68848
  }
68204
68849
  }
68205
- ctx.buildHandle.current = pending2 ? requestAnimationFrame(tick) : null;
68850
+ ctx.buildHandle.current = pending3 ? requestAnimationFrame(tick) : null;
68206
68851
  };
68207
68852
  tick();
68208
68853
  }
@@ -68690,7 +69335,7 @@ function isSeriesUsingSecondaryAxis(chartData, seriesIndex) {
68690
69335
  if (!series) {
68691
69336
  return false;
68692
69337
  }
68693
- return chunkD4LJJ7Z7_cjs.isSeriesOnSecondaryAxis(series, chartData.axes);
69338
+ return chunkKJICUZXM_cjs.isSeriesOnSecondaryAxis(series, chartData.axes);
68694
69339
  }
68695
69340
  function resolveSecondaryAxisId(chartData, useSecondary) {
68696
69341
  const axPos = useSecondary ? "r" : "l";
@@ -69349,14 +69994,14 @@ async function buildForeignObjectSvgBody(element, doc, options) {
69349
69994
  backgroundColor,
69350
69995
  readComputedStyle = (el) => window.getComputedStyle(el)
69351
69996
  } = options;
69352
- await chunkS3L5NNCK_cjs.settleThreeViews(element);
69997
+ await chunkFROIGMTI_cjs.settleThreeViews(element);
69353
69998
  const clone = element.cloneNode(true);
69354
- chunkS3L5NNCK_cjs.withAuthoredStrokeWidths(
69999
+ chunkFROIGMTI_cjs.withAuthoredStrokeWidths(
69355
70000
  element,
69356
70001
  () => inlineComputedStylesOnClone(element, clone, readComputedStyle)
69357
70002
  );
69358
- chunkS3L5NNCK_cjs.snapshotThreeViewsIntoClone(element, clone);
69359
- chunkS3L5NNCK_cjs.prepareExportClone(clone);
70003
+ chunkFROIGMTI_cjs.snapshotThreeViewsIntoClone(element, clone);
70004
+ chunkFROIGMTI_cjs.prepareExportClone(clone);
69360
70005
  const [{ allEmbedded: imagesEmbedded }, externalFonts] = await Promise.all([
69361
70006
  embedImagesOnClone(clone),
69362
70007
  collectExternalFontFaceCss(doc, fetchAsDataUrl)
@@ -74988,12 +75633,12 @@ function attachViewerHyperlinks(root, navigation) {
74988
75633
  };
74989
75634
  }
74990
75635
  function createSlidePackageClipboard(initialHost) {
74991
- let host2 = initialHost, disposed = false, pending2 = false;
75636
+ let host2 = initialHost, disposed = false, pending3 = false;
74992
75637
  const retiredHandlers = /* @__PURE__ */ new Set();
74993
75638
  const mediaUrls = /* @__PURE__ */ new Set();
74994
75639
  const snapshot = () => {
74995
75640
  if (disposed) throw new Error("Presentation is closed");
74996
- if (pending2) throw new Error("Another clipboard operation is in progress");
75641
+ if (pending3) throw new Error("Another clipboard operation is in progress");
74997
75642
  const value = host2.getSnapshot();
74998
75643
  if (!value) throw new Error("Open a presentation first");
74999
75644
  return value;
@@ -75010,7 +75655,7 @@ function createSlidePackageClipboard(initialHost) {
75010
75655
  const slides = templateEditing.buildSaveSlides(before.slides, before.templateElementsBySlideId).map(
75011
75656
  clone.cloneSlide
75012
75657
  );
75013
- pending2 = true;
75658
+ pending3 = true;
75014
75659
  try {
75015
75660
  const text4 = before.handler.save(slides).then((bytes) => pptx.createSlideClipboardPackage(bytes, indexes)).then(pptx.serializeSlidePackageClipboard);
75016
75661
  if (typeof ClipboardItem === "undefined" || !ClipboardItem.supports?.(pptx.SLIDE_PACKAGE_CLIPBOARD_MIME) || !clipboard.write) {
@@ -75032,7 +75677,7 @@ function createSlidePackageClipboard(initialHost) {
75032
75677
  const settled = await Promise.allSettled([write, text4]);
75033
75678
  for (const result of settled) if (result.status === "rejected") throw result.reason;
75034
75679
  } finally {
75035
- pending2 = false;
75680
+ pending3 = false;
75036
75681
  }
75037
75682
  },
75038
75683
  async paste(insertAt) {
@@ -75040,7 +75685,7 @@ function createSlidePackageClipboard(initialHost) {
75040
75685
  if (before.editable === false) throw new Error("Presentation is read-only");
75041
75686
  const clipboard = globalThis.navigator?.clipboard;
75042
75687
  if (!clipboard?.readText) throw new Error("System clipboard is unavailable in this browser");
75043
- pending2 = true;
75688
+ pending3 = true;
75044
75689
  let handler, committed = false;
75045
75690
  const urls = [];
75046
75691
  try {
@@ -75097,7 +75742,7 @@ function createSlidePackageClipboard(initialHost) {
75097
75742
  for (const url of urls) mediaUrls.add(url);
75098
75743
  committed = true;
75099
75744
  } finally {
75100
- pending2 = false;
75745
+ pending3 = false;
75101
75746
  if (!committed) {
75102
75747
  handler?.dispose();
75103
75748
  for (const url of urls) URL.revokeObjectURL(url);
@@ -75201,15 +75846,15 @@ var INITIAL_FIND_REPLACE_SESSION = Object.freeze({
75201
75846
  function search(slides, session) {
75202
75847
  return session.query ? findReplace.findInSlides(slides, session.query, session.options) : [];
75203
75848
  }
75204
- function cursorAfterReplace(pending2, count) {
75849
+ function cursorAfterReplace(pending3, count) {
75205
75850
  if (count === 0) {
75206
75851
  return -1;
75207
75852
  }
75208
- if (pending2.scope === "all") {
75853
+ if (pending3.scope === "all") {
75209
75854
  return 0;
75210
75855
  }
75211
- const created = Math.max(0, count - (pending2.count - 1));
75212
- return (pending2.index + created) % count;
75856
+ const created = Math.max(0, count - (pending3.count - 1));
75857
+ return (pending3.index + created) % count;
75213
75858
  }
75214
75859
  function reduceFindReplaceSession(session, event) {
75215
75860
  switch (event.type) {
@@ -75245,15 +75890,15 @@ function reduceFindReplaceSession(session, event) {
75245
75890
  }
75246
75891
  };
75247
75892
  case "slidesChanged": {
75248
- const pending2 = session.pendingRefind;
75249
- if (!pending2 || event.slides === pending2.base) {
75893
+ const pending3 = session.pendingRefind;
75894
+ if (!pending3 || event.slides === pending3.base) {
75250
75895
  return session;
75251
75896
  }
75252
75897
  const matches = search(event.slides, session);
75253
75898
  return {
75254
75899
  ...session,
75255
75900
  matches,
75256
- current: cursorAfterReplace(pending2, matches.length),
75901
+ current: cursorAfterReplace(pending3, matches.length),
75257
75902
  pendingRefind: null
75258
75903
  };
75259
75904
  }
@@ -83971,7 +84616,7 @@ function definePptxInsertSmartArtDialog(registry2) {
83971
84616
  if (this.#live || this.#draw) {
83972
84617
  return;
83973
84618
  }
83974
- this.#live = import('./smartart-insert-preview-YKNB37GE.cjs').then((module) => {
84619
+ this.#live = import('./smartart-insert-preview-BUOS5XQR.cjs').then((module) => {
83975
84620
  if (this.#draw || !this.#picker) {
83976
84621
  return;
83977
84622
  }
@@ -86903,21 +87548,21 @@ ${text4(UNSUPPORTED)}` } : {}
86903
87548
  return;
86904
87549
  }
86905
87550
  const columns = [];
86906
- let pending2 = [];
87551
+ let pending3 = [];
86907
87552
  const flush = () => {
86908
- for (let start = 0; start < pending2.length; start += 3) {
86909
- columns.push(stack(...pending2.slice(start, start + 3)));
87553
+ for (let start = 0; start < pending3.length; start += 3) {
87554
+ columns.push(stack(...pending3.slice(start, start + 3)));
86910
87555
  }
86911
- pending2 = [];
87556
+ pending3 = [];
86912
87557
  };
86913
87558
  for (const item4 of items) {
86914
87559
  if (item4 === freeformStack) {
86915
87560
  flush();
86916
87561
  columns.push(item4);
86917
87562
  } else if (stackKids.has(item4)) {
86918
- pending2.push(...stackKids.get(item4).filter((kid) => !kid.hidden));
87563
+ pending3.push(...stackKids.get(item4).filter((kid) => !kid.hidden));
86919
87564
  } else if (!item4.hidden) {
86920
- pending2.push(item4);
87565
+ pending3.push(item4);
86921
87566
  }
86922
87567
  }
86923
87568
  flush();
@@ -88823,9 +89468,9 @@ function officeTitleBarState(state, placement) {
88823
89468
  const available = state.autosave.toggleAvailable !== false;
88824
89469
  const items = resolveTitleBarStrip(state, placement).map((item4) => {
88825
89470
  const label2 = t2(item4.id === "save" ? "pptx.titleBar.save" : item4.labelKey);
88826
- const pending2 = item4.id === "undo" ? state.history.undoLabel : item4.id === "redo" ? state.history.redoLabel : null;
88827
- const tooltip = pending2 ? t2(item4.id === "undo" ? "pptx.toolbar.undoAction" : "pptx.toolbar.redoAction", {
88828
- action: pending2
89471
+ const pending3 = item4.id === "undo" ? state.history.undoLabel : item4.id === "redo" ? state.history.redoLabel : null;
89472
+ const tooltip = pending3 ? t2(item4.id === "undo" ? "pptx.toolbar.undoAction" : "pptx.toolbar.redoAction", {
89473
+ action: pending3
88829
89474
  }) : label2;
88830
89475
  return {
88831
89476
  id: item4.id,
@@ -89524,7 +90169,7 @@ function applyChart3DDrag(bridge, detail) {
89524
90169
  return;
89525
90170
  }
89526
90171
  bridge.commitChartData(
89527
- chunkS5I64Y55_cjs.withChartPointValue(bridge.chartData, part.seriesIndex, part.pointIndex, value)
90172
+ chunkHIRBPTML_cjs.withChartPointValue(bridge.chartData, part.seriesIndex, part.pointIndex, value)
89528
90173
  );
89529
90174
  }
89530
90175
  function detailOf(event) {
@@ -90027,7 +90672,7 @@ function calculateNotesPageLayout(slideWidth, slideHeight) {
90027
90672
  };
90028
90673
  }
90029
90674
  function wrapNotesText(text4, maxWidth, fontSize) {
90030
- return chunkD4LJJ7Z7_cjs.wrapTextByEstimatedWidth(text4, maxWidth, fontSize, { keepBlankLines: true });
90675
+ return chunkKJICUZXM_cjs.wrapTextByEstimatedWidth(text4, maxWidth, fontSize, { keepBlankLines: true });
90031
90676
  }
90032
90677
  function calculateContinuationPageMaxLines() {
90033
90678
  const contentHeight = NOTES_PAGE_H - 2 * NOTES_MARGIN;
@@ -91588,6 +92233,174 @@ Object.defineProperty(exports, "parseHex", {
91588
92233
  enumerable: true,
91589
92234
  get: function () { return color.parseHex; }
91590
92235
  });
92236
+ Object.defineProperty(exports, "CANVAS_SENTINEL", {
92237
+ enumerable: true,
92238
+ get: function () { return geometry.CANVAS_SENTINEL; }
92239
+ });
92240
+ Object.defineProperty(exports, "PADDING_DEFAULT", {
92241
+ enumerable: true,
92242
+ get: function () { return geometry.PADDING_DEFAULT; }
92243
+ });
92244
+ Object.defineProperty(exports, "RESIZE_HANDLES", {
92245
+ enumerable: true,
92246
+ get: function () { return geometry.RESIZE_HANDLES; }
92247
+ });
92248
+ Object.defineProperty(exports, "RESIZE_HANDLE_GEOMETRY", {
92249
+ enumerable: true,
92250
+ get: function () { return geometry.RESIZE_HANDLE_GEOMETRY; }
92251
+ });
92252
+ Object.defineProperty(exports, "ROTATE_STEM_PX", {
92253
+ enumerable: true,
92254
+ get: function () { return geometry.ROTATE_STEM_PX; }
92255
+ });
92256
+ Object.defineProperty(exports, "ROUTING_PADDING_DEFAULT", {
92257
+ enumerable: true,
92258
+ get: function () { return geometry.ROUTING_PADDING_DEFAULT; }
92259
+ });
92260
+ Object.defineProperty(exports, "SNAP_THRESHOLD", {
92261
+ enumerable: true,
92262
+ get: function () { return geometry.SNAP_THRESHOLD; }
92263
+ });
92264
+ Object.defineProperty(exports, "aStarOrthogonal", {
92265
+ enumerable: true,
92266
+ get: function () { return geometry.aStarOrthogonal; }
92267
+ });
92268
+ Object.defineProperty(exports, "alignElements", {
92269
+ enumerable: true,
92270
+ get: function () { return geometry.alignElements; }
92271
+ });
92272
+ Object.defineProperty(exports, "applyDragDelta", {
92273
+ enumerable: true,
92274
+ get: function () { return geometry.applyDragDelta; }
92275
+ });
92276
+ Object.defineProperty(exports, "applyResize", {
92277
+ enumerable: true,
92278
+ get: function () { return geometry.applyResize; }
92279
+ });
92280
+ Object.defineProperty(exports, "boxCenter", {
92281
+ enumerable: true,
92282
+ get: function () { return geometry.boxCenter; }
92283
+ });
92284
+ Object.defineProperty(exports, "buildGraphNodes", {
92285
+ enumerable: true,
92286
+ get: function () { return geometry.buildGraphNodes; }
92287
+ });
92288
+ Object.defineProperty(exports, "computeAlign", {
92289
+ enumerable: true,
92290
+ get: function () { return geometry.computeAlign; }
92291
+ });
92292
+ Object.defineProperty(exports, "computeDistribute", {
92293
+ enumerable: true,
92294
+ get: function () { return geometry.computeDistribute; }
92295
+ });
92296
+ Object.defineProperty(exports, "computeRotation", {
92297
+ enumerable: true,
92298
+ get: function () { return geometry.computeRotation; }
92299
+ });
92300
+ Object.defineProperty(exports, "computeSnap", {
92301
+ enumerable: true,
92302
+ get: function () { return geometry.computeSnap; }
92303
+ });
92304
+ Object.defineProperty(exports, "computeSnapToShape", {
92305
+ enumerable: true,
92306
+ get: function () { return geometry.computeSnapToShape; }
92307
+ });
92308
+ Object.defineProperty(exports, "createRotationDrag", {
92309
+ enumerable: true,
92310
+ get: function () { return geometry.createRotationDrag; }
92311
+ });
92312
+ Object.defineProperty(exports, "cropUpdateFromRects", {
92313
+ enumerable: true,
92314
+ get: function () { return geometry.cropUpdateFromRects; }
92315
+ });
92316
+ Object.defineProperty(exports, "directPathClear", {
92317
+ enumerable: true,
92318
+ get: function () { return geometry.directPathClear; }
92319
+ });
92320
+ Object.defineProperty(exports, "distributeElements", {
92321
+ enumerable: true,
92322
+ get: function () { return geometry.distributeElements; }
92323
+ });
92324
+ Object.defineProperty(exports, "heuristic", {
92325
+ enumerable: true,
92326
+ get: function () { return geometry.heuristic; }
92327
+ });
92328
+ Object.defineProperty(exports, "imageRectFromCrop", {
92329
+ enumerable: true,
92330
+ get: function () { return geometry.imageRectFromCrop; }
92331
+ });
92332
+ Object.defineProperty(exports, "inflateRect", {
92333
+ enumerable: true,
92334
+ get: function () { return geometry.inflateRect; }
92335
+ });
92336
+ Object.defineProperty(exports, "isCornerHandle", {
92337
+ enumerable: true,
92338
+ get: function () { return geometry.isCornerHandle; }
92339
+ });
92340
+ Object.defineProperty(exports, "lockResizeAspect", {
92341
+ enumerable: true,
92342
+ get: function () { return geometry.lockResizeAspect; }
92343
+ });
92344
+ Object.defineProperty(exports, "pointInRect", {
92345
+ enumerable: true,
92346
+ get: function () { return geometry.pointInRect; }
92347
+ });
92348
+ Object.defineProperty(exports, "pointKey", {
92349
+ enumerable: true,
92350
+ get: function () { return geometry.pointKey; }
92351
+ });
92352
+ Object.defineProperty(exports, "resolveAlignReferenceBox", {
92353
+ enumerable: true,
92354
+ get: function () { return geometry.resolveAlignReferenceBox; }
92355
+ });
92356
+ Object.defineProperty(exports, "rotateDelta", {
92357
+ enumerable: true,
92358
+ get: function () { return geometry.rotateDelta; }
92359
+ });
92360
+ Object.defineProperty(exports, "routeConnector", {
92361
+ enumerable: true,
92362
+ get: function () { return geometry.routeConnector; }
92363
+ });
92364
+ Object.defineProperty(exports, "routeOrthogonalConnector", {
92365
+ enumerable: true,
92366
+ get: function () { return geometry.routeOrthogonalConnector; }
92367
+ });
92368
+ Object.defineProperty(exports, "segmentIntersectsRect", {
92369
+ enumerable: true,
92370
+ get: function () { return geometry.segmentIntersectsRect; }
92371
+ });
92372
+ Object.defineProperty(exports, "simplifyPath", {
92373
+ enumerable: true,
92374
+ get: function () { return geometry.simplifyPath; }
92375
+ });
92376
+ Object.defineProperty(exports, "snapAngle", {
92377
+ enumerable: true,
92378
+ get: function () { return geometry.snapAngle; }
92379
+ });
92380
+ Object.defineProperty(exports, "snapBox", {
92381
+ enumerable: true,
92382
+ get: function () { return geometry.snapBox; }
92383
+ });
92384
+ Object.defineProperty(exports, "snapToGridStep", {
92385
+ enumerable: true,
92386
+ get: function () { return geometry.snapToGridStep; }
92387
+ });
92388
+ Object.defineProperty(exports, "snapValue", {
92389
+ enumerable: true,
92390
+ get: function () { return geometry.snapValue; }
92391
+ });
92392
+ Object.defineProperty(exports, "usesSlideReference", {
92393
+ enumerable: true,
92394
+ get: function () { return geometry.usesSlideReference; }
92395
+ });
92396
+ Object.defineProperty(exports, "waypointsToPathD", {
92397
+ enumerable: true,
92398
+ get: function () { return geometry.waypointsToPathD; }
92399
+ });
92400
+ Object.defineProperty(exports, "waypointsToPathData", {
92401
+ enumerable: true,
92402
+ get: function () { return geometry.waypointsToPathData; }
92403
+ });
91591
92404
  Object.defineProperty(exports, "buildLeaderString", {
91592
92405
  enumerable: true,
91593
92406
  get: function () { return text$1.buildLeaderString; }
@@ -91620,6 +92433,14 @@ Object.defineProperty(exports, "segmentByScript", {
91620
92433
  enumerable: true,
91621
92434
  get: function () { return text$1.segmentByScript; }
91622
92435
  });
92436
+ Object.defineProperty(exports, "buildImageBiLevelTable", {
92437
+ enumerable: true,
92438
+ get: function () { return drawingml.buildImageBiLevelTable; }
92439
+ });
92440
+ Object.defineProperty(exports, "buildImageLuminanceTransfer", {
92441
+ enumerable: true,
92442
+ get: function () { return drawingml.buildImageLuminanceTransfer; }
92443
+ });
91623
92444
  Object.defineProperty(exports, "isParagraphSeparatorSegment", {
91624
92445
  enumerable: true,
91625
92446
  get: function () { return textSegmentParagraphBreak.isParagraphSeparatorSegment; }
@@ -91880,174 +92701,6 @@ Object.defineProperty(exports, "cloneXmlObject", {
91880
92701
  enumerable: true,
91881
92702
  get: function () { return clone.cloneXmlObject; }
91882
92703
  });
91883
- Object.defineProperty(exports, "CANVAS_SENTINEL", {
91884
- enumerable: true,
91885
- get: function () { return geometry.CANVAS_SENTINEL; }
91886
- });
91887
- Object.defineProperty(exports, "PADDING_DEFAULT", {
91888
- enumerable: true,
91889
- get: function () { return geometry.PADDING_DEFAULT; }
91890
- });
91891
- Object.defineProperty(exports, "RESIZE_HANDLES", {
91892
- enumerable: true,
91893
- get: function () { return geometry.RESIZE_HANDLES; }
91894
- });
91895
- Object.defineProperty(exports, "RESIZE_HANDLE_GEOMETRY", {
91896
- enumerable: true,
91897
- get: function () { return geometry.RESIZE_HANDLE_GEOMETRY; }
91898
- });
91899
- Object.defineProperty(exports, "ROTATE_STEM_PX", {
91900
- enumerable: true,
91901
- get: function () { return geometry.ROTATE_STEM_PX; }
91902
- });
91903
- Object.defineProperty(exports, "ROUTING_PADDING_DEFAULT", {
91904
- enumerable: true,
91905
- get: function () { return geometry.ROUTING_PADDING_DEFAULT; }
91906
- });
91907
- Object.defineProperty(exports, "SNAP_THRESHOLD", {
91908
- enumerable: true,
91909
- get: function () { return geometry.SNAP_THRESHOLD; }
91910
- });
91911
- Object.defineProperty(exports, "aStarOrthogonal", {
91912
- enumerable: true,
91913
- get: function () { return geometry.aStarOrthogonal; }
91914
- });
91915
- Object.defineProperty(exports, "alignElements", {
91916
- enumerable: true,
91917
- get: function () { return geometry.alignElements; }
91918
- });
91919
- Object.defineProperty(exports, "applyDragDelta", {
91920
- enumerable: true,
91921
- get: function () { return geometry.applyDragDelta; }
91922
- });
91923
- Object.defineProperty(exports, "applyResize", {
91924
- enumerable: true,
91925
- get: function () { return geometry.applyResize; }
91926
- });
91927
- Object.defineProperty(exports, "boxCenter", {
91928
- enumerable: true,
91929
- get: function () { return geometry.boxCenter; }
91930
- });
91931
- Object.defineProperty(exports, "buildGraphNodes", {
91932
- enumerable: true,
91933
- get: function () { return geometry.buildGraphNodes; }
91934
- });
91935
- Object.defineProperty(exports, "computeAlign", {
91936
- enumerable: true,
91937
- get: function () { return geometry.computeAlign; }
91938
- });
91939
- Object.defineProperty(exports, "computeDistribute", {
91940
- enumerable: true,
91941
- get: function () { return geometry.computeDistribute; }
91942
- });
91943
- Object.defineProperty(exports, "computeRotation", {
91944
- enumerable: true,
91945
- get: function () { return geometry.computeRotation; }
91946
- });
91947
- Object.defineProperty(exports, "computeSnap", {
91948
- enumerable: true,
91949
- get: function () { return geometry.computeSnap; }
91950
- });
91951
- Object.defineProperty(exports, "computeSnapToShape", {
91952
- enumerable: true,
91953
- get: function () { return geometry.computeSnapToShape; }
91954
- });
91955
- Object.defineProperty(exports, "createRotationDrag", {
91956
- enumerable: true,
91957
- get: function () { return geometry.createRotationDrag; }
91958
- });
91959
- Object.defineProperty(exports, "cropUpdateFromRects", {
91960
- enumerable: true,
91961
- get: function () { return geometry.cropUpdateFromRects; }
91962
- });
91963
- Object.defineProperty(exports, "directPathClear", {
91964
- enumerable: true,
91965
- get: function () { return geometry.directPathClear; }
91966
- });
91967
- Object.defineProperty(exports, "distributeElements", {
91968
- enumerable: true,
91969
- get: function () { return geometry.distributeElements; }
91970
- });
91971
- Object.defineProperty(exports, "heuristic", {
91972
- enumerable: true,
91973
- get: function () { return geometry.heuristic; }
91974
- });
91975
- Object.defineProperty(exports, "imageRectFromCrop", {
91976
- enumerable: true,
91977
- get: function () { return geometry.imageRectFromCrop; }
91978
- });
91979
- Object.defineProperty(exports, "inflateRect", {
91980
- enumerable: true,
91981
- get: function () { return geometry.inflateRect; }
91982
- });
91983
- Object.defineProperty(exports, "isCornerHandle", {
91984
- enumerable: true,
91985
- get: function () { return geometry.isCornerHandle; }
91986
- });
91987
- Object.defineProperty(exports, "lockResizeAspect", {
91988
- enumerable: true,
91989
- get: function () { return geometry.lockResizeAspect; }
91990
- });
91991
- Object.defineProperty(exports, "pointInRect", {
91992
- enumerable: true,
91993
- get: function () { return geometry.pointInRect; }
91994
- });
91995
- Object.defineProperty(exports, "pointKey", {
91996
- enumerable: true,
91997
- get: function () { return geometry.pointKey; }
91998
- });
91999
- Object.defineProperty(exports, "resolveAlignReferenceBox", {
92000
- enumerable: true,
92001
- get: function () { return geometry.resolveAlignReferenceBox; }
92002
- });
92003
- Object.defineProperty(exports, "rotateDelta", {
92004
- enumerable: true,
92005
- get: function () { return geometry.rotateDelta; }
92006
- });
92007
- Object.defineProperty(exports, "routeConnector", {
92008
- enumerable: true,
92009
- get: function () { return geometry.routeConnector; }
92010
- });
92011
- Object.defineProperty(exports, "routeOrthogonalConnector", {
92012
- enumerable: true,
92013
- get: function () { return geometry.routeOrthogonalConnector; }
92014
- });
92015
- Object.defineProperty(exports, "segmentIntersectsRect", {
92016
- enumerable: true,
92017
- get: function () { return geometry.segmentIntersectsRect; }
92018
- });
92019
- Object.defineProperty(exports, "simplifyPath", {
92020
- enumerable: true,
92021
- get: function () { return geometry.simplifyPath; }
92022
- });
92023
- Object.defineProperty(exports, "snapAngle", {
92024
- enumerable: true,
92025
- get: function () { return geometry.snapAngle; }
92026
- });
92027
- Object.defineProperty(exports, "snapBox", {
92028
- enumerable: true,
92029
- get: function () { return geometry.snapBox; }
92030
- });
92031
- Object.defineProperty(exports, "snapToGridStep", {
92032
- enumerable: true,
92033
- get: function () { return geometry.snapToGridStep; }
92034
- });
92035
- Object.defineProperty(exports, "snapValue", {
92036
- enumerable: true,
92037
- get: function () { return geometry.snapValue; }
92038
- });
92039
- Object.defineProperty(exports, "usesSlideReference", {
92040
- enumerable: true,
92041
- get: function () { return geometry.usesSlideReference; }
92042
- });
92043
- Object.defineProperty(exports, "waypointsToPathD", {
92044
- enumerable: true,
92045
- get: function () { return geometry.waypointsToPathD; }
92046
- });
92047
- Object.defineProperty(exports, "waypointsToPathData", {
92048
- enumerable: true,
92049
- get: function () { return geometry.waypointsToPathData; }
92050
- });
92051
92704
  Object.defineProperty(exports, "groupElements", {
92052
92705
  enumerable: true,
92053
92706
  get: function () { return groupOps.groupElements; }
@@ -93601,9 +94254,7 @@ exports.buildHyperlinkPatch = buildHyperlinkPatch;
93601
94254
  exports.buildIdatChunk = buildIdatChunk;
93602
94255
  exports.buildIendChunk = buildIendChunk;
93603
94256
  exports.buildIhdrChunk = buildIhdrChunk;
93604
- exports.buildImageBiLevelTable = buildImageBiLevelTable;
93605
94257
  exports.buildImageFitTransform = buildImageFitTransform;
93606
- exports.buildImageLuminanceTransfer = buildImageLuminanceTransfer;
93607
94258
  exports.buildInkGroupStrokes = buildInkGroupStrokes;
93608
94259
  exports.buildInlineListStylePatch = buildInlineListStylePatch;
93609
94260
  exports.buildInlineStyleText = buildInlineStyleText;
@@ -94915,6 +95566,7 @@ exports.reflectionStyle = reflectionStyle;
94915
95566
  exports.reflowRibbon = reflowRibbon;
94916
95567
  exports.reflowSmartArtData = reflowSmartArtData;
94917
95568
  exports.reflowToDrawingShapes = reflowToDrawingShapes;
95569
+ exports.refreshSmartArtPictureImage = refreshSmartArtPictureImage;
94918
95570
  exports.regionArea = regionArea;
94919
95571
  exports.registerCollaborationTeardown = registerCollaborationTeardown;
94920
95572
  exports.registerCrossSlideAudio = registerCrossSlideAudio;