ooxml-core 1.41.0 → 1.42.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 (126) hide show
  1. package/README.md +4 -0
  2. package/dist/PptxHandler-73QIJ6SD.cjs +14 -0
  3. package/dist/{PptxHandler-3AGIITR7.mjs → PptxHandler-A2J4PCOB.mjs} +2 -2
  4. package/dist/PptxHandler-OGLVLX2T.mjs +5 -0
  5. package/dist/{PresentationBuilder-MZBKYOYD.cjs → PresentationBuilder-6S5PJXXF.cjs} +6 -6
  6. package/dist/{PresentationBuilder-JNID4B4Z.mjs → PresentationBuilder-APJKCMVS.mjs} +2 -2
  7. package/dist/{PresentationBuilder-5DPKFUXP.mjs → PresentationBuilder-F3BWDERK.mjs} +3 -3
  8. package/dist/automation/index.cjs +75 -89
  9. package/dist/automation/index.mjs +75 -89
  10. package/dist/chart/index.cjs +5 -5
  11. package/dist/chart/index.mjs +5 -5
  12. package/dist/{chunk-LRBWCRQ3.cjs → chunk-3J6VIKLP.cjs} +3 -3
  13. package/dist/chunk-CODMW5KF.cjs +110 -0
  14. package/dist/{chunk-KKVD3R6O.mjs → chunk-CPSTCCRD.mjs} +4 -4
  15. package/dist/{chunk-P3WAKBVS.mjs → chunk-IPV3J3I5.mjs} +82 -90
  16. package/dist/{chunk-6LGRRQ3K.mjs → chunk-MXA67O7R.mjs} +1 -1
  17. package/dist/{chunk-JXR6YWBW.mjs → chunk-N6X5CJZP.mjs} +125 -126
  18. package/dist/chunk-O3YGBYGZ.mjs +104 -0
  19. package/dist/{chunk-75KBNUKS.cjs → chunk-QZPOPUI5.cjs} +82 -89
  20. package/dist/{chunk-UE23HF2N.mjs → chunk-VKFKEVHK.mjs} +1 -1
  21. package/dist/{chunk-DD7COXWR.mjs → chunk-VV724DWE.mjs} +19 -7
  22. package/dist/{chunk-HTELXT2N.mjs → chunk-XVB3CBNM.mjs} +19 -6
  23. package/dist/{chunk-3BIFRTU4.cjs → chunk-YNQRXFTC.cjs} +1283 -1270
  24. package/dist/{chunk-ZYCBJKAE.mjs → chunk-ZUEN4RQG.mjs} +1 -1
  25. package/dist/diagram/index.cjs +499 -370
  26. package/dist/diagram/index.d.ts +1 -0
  27. package/dist/diagram/index.d.ts.map +1 -1
  28. package/dist/diagram/index.mjs +495 -371
  29. package/dist/docx/embedded.cjs +67 -89
  30. package/dist/docx/embedded.mjs +67 -89
  31. package/dist/docx/index.cjs +118 -106
  32. package/dist/docx/index.mjs +118 -106
  33. package/dist/docx/layout/index.cjs +118 -106
  34. package/dist/docx/layout/index.mjs +118 -106
  35. package/dist/docx/load/index.cjs +67 -89
  36. package/dist/docx/load/index.mjs +67 -89
  37. package/dist/docx/shape-svg.d.ts.map +1 -1
  38. package/dist/docx/ui/index.cjs +72 -94
  39. package/dist/docx/ui/index.mjs +72 -94
  40. package/dist/drawingml/dash-pattern.d.ts +61 -0
  41. package/dist/drawingml/dash-pattern.d.ts.map +1 -0
  42. package/dist/drawingml/index.cjs +249 -43
  43. package/dist/drawingml/index.d.ts +3 -0
  44. package/dist/drawingml/index.d.ts.map +1 -1
  45. package/dist/drawingml/index.mjs +241 -44
  46. package/dist/drawingml/rect-path-gradient.d.ts +5 -0
  47. package/dist/drawingml/rect-path-gradient.d.ts.map +1 -1
  48. package/dist/drawingml/shape-path-gradient.d.ts +57 -0
  49. package/dist/drawingml/shape-path-gradient.d.ts.map +1 -0
  50. package/dist/geometry/index.cjs +68 -90
  51. package/dist/geometry/index.mjs +68 -90
  52. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts +2 -2
  53. package/dist/geometry/preset-shape-definitions-exact-action-buttons.d.ts.map +1 -1
  54. package/dist/geometry/preset-shape-definitions-exact-arrows.d.ts.map +1 -1
  55. package/dist/geometry/preset-shape-definitions-exact-scrolls.d.ts.map +1 -1
  56. package/dist/index.cjs +686 -489
  57. package/dist/index.mjs +686 -489
  58. package/dist/pptx/automation/index.cjs +355 -191
  59. package/dist/pptx/automation/index.d.ts +11 -17
  60. package/dist/pptx/automation/index.d.ts.map +1 -1
  61. package/dist/pptx/automation/index.mjs +156 -71
  62. package/dist/pptx/chunks/{elements-6BMEOo7i.d.ts → elements-PBugbKtv.d.ts} +3 -873
  63. package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +1 -0
  64. package/dist/pptx/chunks/{index-BbXLv6As.d.ts → index-BJuR8GLL.d.ts} +4 -4
  65. package/dist/pptx/chunks/{index-BbXLv6As.d.ts.map → index-BJuR8GLL.d.ts.map} +1 -1
  66. package/dist/pptx/chunks/{index-DvN0TkJJ.d.ts → index-Rbvl2WaM.d.ts} +14 -10
  67. package/dist/pptx/chunks/index-Rbvl2WaM.d.ts.map +1 -0
  68. package/dist/pptx/chunks/{index-Dija_Wth.d.ts → index-xoJGYTgQ.d.ts} +5 -3
  69. package/dist/pptx/chunks/index-xoJGYTgQ.d.ts.map +1 -0
  70. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts +875 -0
  71. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +1 -0
  72. package/dist/pptx/chunks/{text-operations-DorONr3h.d.ts → text-operations-BNJr7aGa.d.ts} +3 -2
  73. package/dist/pptx/chunks/text-operations-BNJr7aGa.d.ts.map +1 -0
  74. package/dist/pptx/cli/index.cjs +169 -96
  75. package/dist/pptx/cli/index.d.ts +1 -1
  76. package/dist/pptx/cli/index.mjs +4 -4
  77. package/dist/pptx/converter/index.cjs +69 -91
  78. package/dist/pptx/converter/index.d.ts +1 -1
  79. package/dist/pptx/converter/index.mjs +2 -2
  80. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  81. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  82. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  83. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  84. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  85. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  86. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  87. package/dist/pptx/editor/render/table-data-grid-ops.cjs +5 -5
  88. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  89. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  90. package/dist/pptx/editor/render/table-layout.d.ts +8 -37
  91. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  92. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  93. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  94. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  95. package/dist/pptx/index.cjs +214 -129
  96. package/dist/pptx/index.d.ts +6 -5
  97. package/dist/pptx/index.mjs +5 -5
  98. package/dist/pptx/node/index.d.ts +1 -1
  99. package/dist/teams/index.cjs +136 -91
  100. package/dist/teams/index.mjs +136 -91
  101. package/dist/text/font-metrics/design-advances.generated.d.ts +3 -1
  102. package/dist/text/font-metrics/design-advances.generated.d.ts.map +1 -1
  103. package/dist/text/index.cjs +8 -0
  104. package/dist/text/index.mjs +8 -0
  105. package/dist/visio/index.cjs +8 -0
  106. package/dist/visio/index.mjs +8 -0
  107. package/dist/visio/ui/index.cjs +8 -0
  108. package/dist/visio/ui/index.mjs +8 -0
  109. package/dist/xlsx/collab/index.cjs +67 -89
  110. package/dist/xlsx/collab/index.mjs +67 -89
  111. package/dist/xlsx/index.cjs +116 -108
  112. package/dist/xlsx/index.mjs +116 -108
  113. package/dist/xlsx/layout/shape-paint.d.ts.map +1 -1
  114. package/dist/xlsx/load/index.cjs +67 -89
  115. package/dist/xlsx/load/index.mjs +67 -89
  116. package/dist/xlsx/ui/index.cjs +72 -94
  117. package/dist/xlsx/ui/index.mjs +72 -94
  118. package/package.json +1 -1
  119. package/dist/PptxHandler-EL4E4SPH.mjs +0 -5
  120. package/dist/PptxHandler-OIZ3R3DJ.cjs +0 -14
  121. package/dist/chunk-3IT6ZD7K.mjs +0 -213
  122. package/dist/chunk-FRUB573B.cjs +0 -219
  123. package/dist/pptx/chunks/elements-6BMEOo7i.d.ts.map +0 -1
  124. package/dist/pptx/chunks/index-Dija_Wth.d.ts.map +0 -1
  125. package/dist/pptx/chunks/index-DvN0TkJJ.d.ts.map +0 -1
  126. package/dist/pptx/chunks/text-operations-DorONr3h.d.ts.map +0 -1
package/dist/index.mjs CHANGED
@@ -1096,46 +1096,46 @@ __export(chart_exports, {
1096
1096
 
1097
1097
  // chart/regression.ts
1098
1098
  function computeLinearRegression(xVals, yVals) {
1099
- const n2 = xVals.length;
1100
- if (n2 < 2) {
1099
+ const n3 = xVals.length;
1100
+ if (n3 < 2) {
1101
1101
  return { slope: 0, intercept: 0, rSquared: 0 };
1102
1102
  }
1103
1103
  let sumX = 0;
1104
1104
  let sumY = 0;
1105
1105
  let sumXY = 0;
1106
1106
  let sumXX = 0;
1107
- for (let i2 = 0; i2 < n2; i2++) {
1107
+ for (let i2 = 0; i2 < n3; i2++) {
1108
1108
  sumX += xVals[i2];
1109
1109
  sumY += yVals[i2];
1110
1110
  sumXY += xVals[i2] * yVals[i2];
1111
1111
  sumXX += xVals[i2] * xVals[i2];
1112
1112
  }
1113
- const denom = n2 * sumXX - sumX * sumX;
1113
+ const denom = n3 * sumXX - sumX * sumX;
1114
1114
  if (Math.abs(denom) < 1e-12) {
1115
- return { slope: 0, intercept: sumY / n2, rSquared: 0 };
1115
+ return { slope: 0, intercept: sumY / n3, rSquared: 0 };
1116
1116
  }
1117
- const slope = (n2 * sumXY - sumX * sumY) / denom;
1118
- const intercept = (sumY - slope * sumX) / n2;
1117
+ const slope = (n3 * sumXY - sumX * sumY) / denom;
1118
+ const intercept = (sumY - slope * sumX) / n3;
1119
1119
  const ssRes = yVals.reduce((s2, y, i2) => s2 + (y - (slope * xVals[i2] + intercept)) ** 2, 0);
1120
- const meanY = sumY / n2;
1120
+ const meanY = sumY / n3;
1121
1121
  const ssTot = yVals.reduce((s2, y) => s2 + (y - meanY) ** 2, 0);
1122
1122
  const rSquared = ssTot > 0 ? 1 - ssRes / ssTot : 0;
1123
1123
  return { slope, intercept, rSquared };
1124
1124
  }
1125
1125
  function fitPolynomial(xVals, yVals, order) {
1126
- const n2 = xVals.length;
1126
+ const n3 = xVals.length;
1127
1127
  const m = order + 1;
1128
1128
  const matrix2 = Array.from({ length: m }, () => Array(m + 1).fill(0));
1129
1129
  for (let i2 = 0; i2 < m; i2++) {
1130
1130
  for (let j = 0; j < m; j++) {
1131
1131
  let sum2 = 0;
1132
- for (let k = 0; k < n2; k++) {
1132
+ for (let k = 0; k < n3; k++) {
1133
1133
  sum2 += xVals[k] ** (i2 + j);
1134
1134
  }
1135
1135
  matrix2[i2][j] = sum2;
1136
1136
  }
1137
1137
  let sum = 0;
1138
- for (let k = 0; k < n2; k++) {
1138
+ for (let k = 0; k < n3; k++) {
1139
1139
  sum += yVals[k] * xVals[k] ** i2;
1140
1140
  }
1141
1141
  matrix2[i2][m] = sum;
@@ -1168,14 +1168,14 @@ function fitPolynomial(xVals, yVals, order) {
1168
1168
  return matrix2.map((row2) => row2[m]);
1169
1169
  }
1170
1170
  function computeRSquared(xVals, yVals, evalFn) {
1171
- const n2 = xVals.length;
1172
- if (n2 === 0) {
1171
+ const n3 = xVals.length;
1172
+ if (n3 === 0) {
1173
1173
  return 0;
1174
1174
  }
1175
- const meanY = yVals.reduce((s2, y) => s2 + y, 0) / n2;
1175
+ const meanY = yVals.reduce((s2, y) => s2 + y, 0) / n3;
1176
1176
  let ssRes = 0;
1177
1177
  let ssTot = 0;
1178
- for (let i2 = 0; i2 < n2; i2++) {
1178
+ for (let i2 = 0; i2 < n3; i2++) {
1179
1179
  ssRes += (yVals[i2] - evalFn(xVals[i2])) ** 2;
1180
1180
  ssTot += (yVals[i2] - meanY) ** 2;
1181
1181
  }
@@ -2147,8 +2147,8 @@ function chartStylePresetOfColors(seriesColors) {
2147
2147
  }
2148
2148
 
2149
2149
  // chart/quick-layouts.ts
2150
- var L = (n2, flags, gapWidth, overlap) => ({
2151
- n: n2,
2150
+ var L = (n3, flags, gapWidth, overlap) => ({
2151
+ n: n3,
2152
2152
  title: false,
2153
2153
  legend: null,
2154
2154
  dataLabels: false,
@@ -2191,8 +2191,8 @@ var CHART_QUICK_LAYOUTS = [
2191
2191
  L(10, { title: true, legend: "r", majorGridlines: true }, 75, 40),
2192
2192
  L(11, { legend: "r", majorGridlines: true }, 150, 0)
2193
2193
  ];
2194
- function findChartQuickLayout(n2) {
2195
- return CHART_QUICK_LAYOUTS.find((layout) => layout.n === n2);
2194
+ function findChartQuickLayout(n3) {
2195
+ return CHART_QUICK_LAYOUTS.find((layout) => layout.n === n3);
2196
2196
  }
2197
2197
  var CHART_QUICK_LAYOUT_AXIS_TITLE = "Axis Title";
2198
2198
 
@@ -2493,8 +2493,8 @@ function chartErrorBarAmount(options2, values, displayIndex, sourceIndex, side)
2493
2493
 
2494
2494
  // chart/radar-geometry.ts
2495
2495
  function radarAngle(index, catCount) {
2496
- const n2 = Math.max(catCount, 1);
2497
- return Math.PI * 2 * index / n2 - Math.PI / 2;
2496
+ const n3 = Math.max(catCount, 1);
2497
+ return Math.PI * 2 * index / n3 - Math.PI / 2;
2498
2498
  }
2499
2499
  function computeRadarPoints(values, maxVal, radius, cx, cy, catCount) {
2500
2500
  const denom = maxVal > 0 ? maxVal : 1;
@@ -2504,9 +2504,9 @@ function computeRadarPoints(values, maxVal, radius, cx, cy, catCount) {
2504
2504
  });
2505
2505
  }
2506
2506
  function radarRingPoints(cx, cy, rr, catCount) {
2507
- const n2 = Math.max(catCount, 1);
2508
- return Array.from({ length: n2 }, (_, i2) => {
2509
- const angle = radarAngle(i2, n2);
2507
+ const n3 = Math.max(catCount, 1);
2508
+ return Array.from({ length: n3 }, (_, i2) => {
2509
+ const angle = radarAngle(i2, n3);
2510
2510
  return `${(cx + rr * Math.cos(angle)).toFixed(2)},${(cy + rr * Math.sin(angle)).toFixed(2)}`;
2511
2511
  }).join(" ");
2512
2512
  }
@@ -2835,8 +2835,8 @@ var isLowSurrogate = (text3, at2) => {
2835
2835
  const code = text3.charCodeAt(at2);
2836
2836
  return code >= 56320 && code <= 57343;
2837
2837
  };
2838
- function shortestEdit(n2, m, same5, maxEdits) {
2839
- const max = Math.min(n2 + m, maxEdits);
2838
+ function shortestEdit(n3, m, same5, maxEdits) {
2839
+ const max = Math.min(n3 + m, maxEdits);
2840
2840
  const offset = max + 1;
2841
2841
  const v = new Int32Array(2 * max + 3);
2842
2842
  const trace = [];
@@ -2845,20 +2845,20 @@ function shortestEdit(n2, m, same5, maxEdits) {
2845
2845
  const down = k === -d || k !== d && v[offset + k - 1] < v[offset + k + 1];
2846
2846
  let x = down ? v[offset + k + 1] : v[offset + k - 1] + 1;
2847
2847
  let y = x - k;
2848
- while (x < n2 && y < m && same5(x, y)) {
2848
+ while (x < n3 && y < m && same5(x, y)) {
2849
2849
  x++;
2850
2850
  y++;
2851
2851
  }
2852
2852
  v[offset + k] = x;
2853
- if (x >= n2 && y >= m) return backtrack(trace, n2, m, d);
2853
+ if (x >= n3 && y >= m) return backtrack(trace, n3, m, d);
2854
2854
  }
2855
2855
  trace.push(v.slice(offset - d, offset + d + 1));
2856
2856
  }
2857
2857
  return void 0;
2858
2858
  }
2859
- function backtrack(trace, n2, m, d) {
2859
+ function backtrack(trace, n3, m, d) {
2860
2860
  const edits = [];
2861
- let x = n2;
2861
+ let x = n3;
2862
2862
  let y = m;
2863
2863
  for (let step = d; step > 0; step--) {
2864
2864
  const previous = trace[step - 1];
@@ -3310,15 +3310,15 @@ function* topLevelNodes(xml2, namespaces) {
3310
3310
  const level4 = root.childNodes;
3311
3311
  const stack = [root];
3312
3312
  let top = root;
3313
- const n2 = source2.length;
3313
+ const n3 = source2.length;
3314
3314
  let pos = 0;
3315
- while (pos < n2) {
3315
+ while (pos < n3) {
3316
3316
  if (level4.length && stack.length === 1) {
3317
3317
  yield* level4;
3318
3318
  level4.length = 0;
3319
3319
  }
3320
3320
  const lt = source2.indexOf("<", pos);
3321
- const end = lt < 0 ? n2 : lt;
3321
+ const end = lt < 0 ? n3 : lt;
3322
3322
  if (end > pos) {
3323
3323
  const text3 = decode(source2.slice(pos, end));
3324
3324
  if (text3 === void 0) return false;
@@ -3374,10 +3374,10 @@ function skipCommentOrCdata(source2, lt, parent) {
3374
3374
  return -1;
3375
3375
  }
3376
3376
  function startTag(source2, from, namespaces) {
3377
- const n2 = source2.length;
3377
+ const n3 = source2.length;
3378
3378
  let i2 = from;
3379
3379
  let colon = -1;
3380
- while (i2 < n2) {
3380
+ while (i2 < n3) {
3381
3381
  const code = source2.charCodeAt(i2);
3382
3382
  if (isSpace(code) || code === 62 || code === 47) break;
3383
3383
  if (code === 58) {
@@ -3397,8 +3397,8 @@ function startTag(source2, from, namespaces) {
3397
3397
  ns || null
3398
3398
  );
3399
3399
  for (; ; ) {
3400
- while (i2 < n2 && isSpace(source2.charCodeAt(i2))) i2++;
3401
- if (i2 >= n2) return void 0;
3400
+ while (i2 < n3 && isSpace(source2.charCodeAt(i2))) i2++;
3401
+ if (i2 >= n3) return void 0;
3402
3402
  const code = source2.charCodeAt(i2);
3403
3403
  if (code === 62) return { element: element4, selfClosing: false, end: i2 + 1 };
3404
3404
  if (code === 47) {
@@ -3412,7 +3412,7 @@ function startTag(source2, from, namespaces) {
3412
3412
  const attrPrefix = name2.includes(":") ? name2.slice(0, name2.indexOf(":")) : "";
3413
3413
  if (attrPrefix && attrPrefix !== "xml" && !namespaces[attrPrefix]) return void 0;
3414
3414
  let q = eq + 1;
3415
- while (q < n2 && isSpace(source2.charCodeAt(q))) q++;
3415
+ while (q < n3 && isSpace(source2.charCodeAt(q))) q++;
3416
3416
  const quote = source2[q];
3417
3417
  if (quote !== '"' && quote !== "'") return void 0;
3418
3418
  const close = source2.indexOf(quote, q + 1);
@@ -3424,7 +3424,7 @@ function startTag(source2, from, namespaces) {
3424
3424
  element4.attrs.push(name2, value);
3425
3425
  i2 = close + 1;
3426
3426
  const after = source2.charCodeAt(i2);
3427
- if (i2 < n2 && !isSpace(after) && after !== 62 && after !== 47) return void 0;
3427
+ if (i2 < n3 && !isSpace(after) && after !== 62 && after !== 47) return void 0;
3428
3428
  }
3429
3429
  }
3430
3430
  var compiler = xpath;
@@ -3481,7 +3481,7 @@ function descendants(root, local) {
3481
3481
  function orderedColorTransforms(channels, transforms) {
3482
3482
  let { r, g: g3, b } = channels;
3483
3483
  let alpha = 1;
3484
- const wrap2 = (value) => (value % 360 + 360) % 360;
3484
+ const wrap3 = (value) => (value % 360 + 360) % 360;
3485
3485
  for (const transform6 of transforms) {
3486
3486
  const { name: name2, value } = transform6;
3487
3487
  const fraction2 = parseDrawingFraction(value);
@@ -3499,14 +3499,14 @@ function orderedColorTransforms(channels, transforms) {
3499
3499
  [r, g3, b] = [mix(r), mix(g3), mix(b)];
3500
3500
  } else {
3501
3501
  const hsl = rgbToHsl(r, g3, b);
3502
- if (name2 === "comp") hsl.h = wrap2(hsl.h + 180);
3502
+ if (name2 === "comp") hsl.h = wrap3(hsl.h + 180);
3503
3503
  else if (name2 === "hue") {
3504
3504
  const hue = parseDrawingHueDegrees(value);
3505
- if (hue !== void 0) hsl.h = wrap2(hue);
3505
+ if (hue !== void 0) hsl.h = wrap3(hue);
3506
3506
  } else if (name2 === "hueOff") {
3507
3507
  const hue = parseDrawingHueDegrees(value);
3508
- if (hue !== void 0) hsl.h = wrap2(hsl.h + hue);
3509
- } else if (name2 === "hueMod" && fraction2 !== void 0) hsl.h = wrap2(hsl.h * fraction2);
3508
+ if (hue !== void 0) hsl.h = wrap3(hsl.h + hue);
3509
+ } else if (name2 === "hueMod" && fraction2 !== void 0) hsl.h = wrap3(hsl.h * fraction2);
3510
3510
  else if (name2 === "sat" && fraction2 !== void 0) hsl.s = clampUnitInterval(fraction2);
3511
3511
  else if (name2 === "satMod" && fraction2 !== void 0) hsl.s *= fraction2;
3512
3512
  else if (name2 === "satOff" && fraction2 !== void 0)
@@ -3664,13 +3664,13 @@ function resolveDrawingColor(color2, theme, options2) {
3664
3664
  }
3665
3665
  if (["hue", "hueMod", "hueOff", "sat", "satMod", "satOff", "lum", "lumMod", "lumOff"].some(has)) {
3666
3666
  const hsl = rgbToHsl(r, g3, b);
3667
- const wrap2 = (degrees) => (degrees % 360 + 360) % 360;
3667
+ const wrap3 = (degrees) => (degrees % 360 + 360) % 360;
3668
3668
  const hueAbs = parseDrawingHueDegrees(find("hue"));
3669
- if (hueAbs !== void 0) hsl.h = wrap2(hueAbs);
3669
+ if (hueAbs !== void 0) hsl.h = wrap3(hueAbs);
3670
3670
  const hueMod = parseDrawingFraction(find("hueMod"));
3671
- if (hueMod !== void 0) hsl.h = wrap2(hsl.h * hueMod);
3671
+ if (hueMod !== void 0) hsl.h = wrap3(hsl.h * hueMod);
3672
3672
  const hueOff = parseDrawingHueDegrees(find("hueOff"));
3673
- if (hueOff !== void 0) hsl.h = wrap2(hsl.h + hueOff);
3673
+ if (hueOff !== void 0) hsl.h = wrap3(hsl.h + hueOff);
3674
3674
  const satAbs = parseDrawingFraction(find("sat"));
3675
3675
  if (satAbs !== void 0) hsl.s = clampUnitInterval(satAbs);
3676
3676
  const satMod = parseDrawingFraction(find("satMod"));
@@ -3747,12 +3747,12 @@ var CHART_COLOR_PALETTES = [
3747
3747
  function findChartColorPalette(id) {
3748
3748
  return CHART_COLOR_PALETTES.find((palette) => palette.id === id);
3749
3749
  }
3750
- function withinLinearTransform(i2, n2) {
3751
- if (n2 <= 1) {
3750
+ function withinLinearTransform(i2, n3) {
3751
+ if (n3 <= 1) {
3752
3752
  return {};
3753
3753
  }
3754
- const step = 140 / (n2 + 1);
3755
- const centre = (n2 - 1) / 2;
3754
+ const step = 140 / (n3 + 1);
3755
+ const centre = (n3 - 1) / 2;
3756
3756
  const value = 100 - step * Math.abs(i2 - centre);
3757
3757
  if (i2 < centre) {
3758
3758
  return { shade: Math.floor(value + 1e-9) * 1e3 };
@@ -3762,7 +3762,7 @@ function withinLinearTransform(i2, n2) {
3762
3762
  }
3763
3763
  return {};
3764
3764
  }
3765
- function chartPaletteSeriesColorChoice(palette, i2, n2) {
3765
+ function chartPaletteSeriesColorChoice(palette, i2, n3) {
3766
3766
  let base;
3767
3767
  let transform6;
3768
3768
  if (palette.meth === "cycle") {
@@ -3770,9 +3770,9 @@ function chartPaletteSeriesColorChoice(palette, i2, n2) {
3770
3770
  const round3 = Math.floor(i2 / palette.base.length);
3771
3771
  transform6 = (palette.variations.length ? palette.variations[round3 % palette.variations.length] : {}) ?? {};
3772
3772
  } else {
3773
- const index = palette.meth === "withinLinearReversed" ? n2 - 1 - i2 : i2;
3773
+ const index = palette.meth === "withinLinearReversed" ? n3 - 1 - i2 : i2;
3774
3774
  base = palette.base[0];
3775
- transform6 = withinLinearTransform(index, n2);
3775
+ transform6 = withinLinearTransform(index, n3);
3776
3776
  }
3777
3777
  if (!base) throw new RangeError("A chart palette must have a base color");
3778
3778
  return {
@@ -3781,12 +3781,12 @@ function chartPaletteSeriesColorChoice(palette, i2, n2) {
3781
3781
  transforms: Object.entries(transform6).map(([name2, value]) => ({ name: name2, value: String(value) }))
3782
3782
  };
3783
3783
  }
3784
- function chartPaletteSeriesColor(palette, i2, n2, scheme2) {
3785
- const choice = chartPaletteSeriesColorChoice(palette, i2, n2);
3784
+ function chartPaletteSeriesColor(palette, i2, n3, scheme2) {
3785
+ const choice = chartPaletteSeriesColorChoice(palette, i2, n3);
3786
3786
  return (resolveDrawingColor(choice, { scheme: (name2) => scheme2[name2] })?.hex ?? scheme2[choice.value]).toUpperCase();
3787
3787
  }
3788
- function chartPaletteColors(palette, n2, scheme2) {
3789
- return Array.from({ length: n2 }, (_, i2) => chartPaletteSeriesColor(palette, i2, n2, scheme2));
3788
+ function chartPaletteColors(palette, n3, scheme2) {
3789
+ return Array.from({ length: n3 }, (_, i2) => chartPaletteSeriesColor(palette, i2, n3, scheme2));
3790
3790
  }
3791
3791
 
3792
3792
  // chart/color-style.ts
@@ -3963,12 +3963,12 @@ function parseArtisticPictureExtension(node) {
3963
3963
  const key = ARTISTIC_PRIMARY_ATTRIBUTE[effect.localName];
3964
3964
  if (!key) return void 0;
3965
3965
  const raw2 = key ? effect.getAttribute(key) : null;
3966
- const n2 = raw2 === null ? 0 : Number(raw2);
3967
- if (!Number.isFinite(n2)) return void 0;
3966
+ const n3 = raw2 === null ? 0 : Number(raw2);
3967
+ if (!Number.isFinite(n3)) return void 0;
3968
3968
  return {
3969
3969
  kind: "artistic",
3970
3970
  name: effect.localName,
3971
- radius: effect.localName === "artisticBlur" ? n2 : n2 / 1e3,
3971
+ radius: effect.localName === "artisticBlur" ? n3 : n3 / 1e3,
3972
3972
  baked: true,
3973
3973
  ...unhandled.length ? { unhandled } : {}
3974
3974
  };
@@ -4080,10 +4080,10 @@ function parseStandardPictureEffect(node) {
4080
4080
  const raw2 = node.getAttribute(attribute2);
4081
4081
  if (raw2 === null) continue;
4082
4082
  const percent = raw2.endsWith("%");
4083
- const n2 = Number(percent ? raw2.slice(0, -1) : raw2) / (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : percent ? 100 : 1e5);
4084
- if (!Number.isFinite(n2) || key === "hue" && (n2 < 0 || n2 >= 360) || key === "threshold" && (n2 < 0 || n2 > 1) || key === "radiusEmu" && (!Number.isSafeInteger(n2) || n2 < 0) || ["saturation", "luminance", "amount"].includes(key) && name2 !== "alphaMod" && (n2 < (name2 === "alphaRepl" ? 0 : -1) || n2 > 1))
4083
+ const n3 = Number(percent ? raw2.slice(0, -1) : raw2) / (key === "hue" ? 6e4 : key === "radiusEmu" ? 1 : percent ? 100 : 1e5);
4084
+ if (!Number.isFinite(n3) || key === "hue" && (n3 < 0 || n3 >= 360) || key === "threshold" && (n3 < 0 || n3 > 1) || key === "radiusEmu" && (!Number.isSafeInteger(n3) || n3 < 0) || ["saturation", "luminance", "amount"].includes(key) && name2 !== "alphaMod" && (n3 < (name2 === "alphaRepl" ? 0 : -1) || n3 > 1))
4085
4085
  return void 0;
4086
- values[key] = n2;
4086
+ values[key] = n3;
4087
4087
  }
4088
4088
  if (["biLevel", "alphaBiLevel"].includes(name2) && values.threshold === void 0)
4089
4089
  return void 0;
@@ -4093,9 +4093,9 @@ function parseStandardPictureEffect(node) {
4093
4093
  const nested = cont ? elements(cont) : [];
4094
4094
  if (nested.length !== 1 || nested[0]?.localName !== "alphaModFix") return void 0;
4095
4095
  const raw2 = nested[0].getAttribute("amt") ?? "100000";
4096
- const n2 = Number(raw2.endsWith("%") ? raw2.slice(0, -1) : raw2) / (raw2.endsWith("%") ? 100 : 1e5);
4097
- if (!Number.isFinite(n2) || n2 < 0) return void 0;
4098
- values.amount = n2;
4096
+ const n3 = Number(raw2.endsWith("%") ? raw2.slice(0, -1) : raw2) / (raw2.endsWith("%") ? 100 : 1e5);
4097
+ if (!Number.isFinite(n3) || n3 < 0) return void 0;
4098
+ values.amount = n3;
4099
4099
  }
4100
4100
  let colors = [];
4101
4101
  if (name2 === "duotone") {
@@ -4191,8 +4191,8 @@ function picturePercentage(value) {
4191
4191
  const text3 = String(value ?? "").trim();
4192
4192
  if (!text3) return void 0;
4193
4193
  const percent = text3.endsWith("%");
4194
- const n2 = Number(percent ? text3.slice(0, -1) : text3) / (percent ? 100 : 1e5);
4195
- return Number.isFinite(n2) ? n2 : void 0;
4194
+ const n3 = Number(percent ? text3.slice(0, -1) : text3) / (percent ? 100 : 1e5);
4195
+ return Number.isFinite(n3) ? n3 : void 0;
4196
4196
  }
4197
4197
  function readPictureEffect(name2, attribute2) {
4198
4198
  if (name2 === "grayscl") return { kind: "grayscale" };
@@ -4352,16 +4352,16 @@ function parsePictureLayout(fill) {
4352
4352
  ["scaleX", "sx"],
4353
4353
  ["scaleY", "sy"]
4354
4354
  ]) {
4355
- const n2 = picturePercentage(tile.getAttribute(attr4));
4356
- if (n2 !== void 0) value[key] = n2;
4355
+ const n3 = picturePercentage(tile.getAttribute(attr4));
4356
+ if (n3 !== void 0) value[key] = n3;
4357
4357
  }
4358
4358
  for (const [key, attr4] of [
4359
4359
  ["offsetXEmu", "tx"],
4360
4360
  ["offsetYEmu", "ty"]
4361
4361
  ]) {
4362
4362
  const raw2 = tile.getAttribute(attr4);
4363
- const n2 = raw2 === null ? NaN : Number(raw2);
4364
- if (Number.isSafeInteger(n2)) value[key] = n2;
4363
+ const n3 = raw2 === null ? NaN : Number(raw2);
4364
+ if (Number.isSafeInteger(n3)) value[key] = n3;
4365
4365
  }
4366
4366
  const alignment = tile.getAttribute("algn");
4367
4367
  if (alignment) value.alignment = alignment;
@@ -4416,14 +4416,14 @@ function applyPictureLayout(fill, layout) {
4416
4416
  ["offsetXEmu", "tx"],
4417
4417
  ["offsetYEmu", "ty"]
4418
4418
  ]) {
4419
- const n2 = layout.tile[key];
4420
- if (n2 !== void 0 && (!Number.isFinite(n2) || (name2 === "sx" || name2 === "sy" ? n2 <= 0 : !Number.isSafeInteger(n2))))
4419
+ const n3 = layout.tile[key];
4420
+ if (n3 !== void 0 && (!Number.isFinite(n3) || (name2 === "sx" || name2 === "sy" ? n3 <= 0 : !Number.isSafeInteger(n3))))
4421
4421
  throw new RangeError("Invalid picture tile");
4422
- if (n2 !== before.tile?.[key])
4422
+ if (n3 !== before.tile?.[key])
4423
4423
  attr4(
4424
4424
  tile,
4425
4425
  name2,
4426
- n2 === void 0 ? void 0 : Math.round(n2 * (name2 === "sx" || name2 === "sy" ? 1e5 : 1)),
4426
+ n3 === void 0 ? void 0 : Math.round(n3 * (name2 === "sx" || name2 === "sy" ? 1e5 : 1)),
4427
4427
  void 0
4428
4428
  );
4429
4429
  }
@@ -4440,11 +4440,11 @@ function applyPictureLayout(fill, layout) {
4440
4440
  if (tile) fill.removeChild(tile);
4441
4441
  const rect3 = make(make(fill, "stretch"), "fillRect");
4442
4442
  for (const key of ["l", "t", "r", "b"]) {
4443
- const n2 = layout.fillRect?.[key];
4444
- if (n2 !== void 0 && !Number.isFinite(n2))
4443
+ const n3 = layout.fillRect?.[key];
4444
+ if (n3 !== void 0 && !Number.isFinite(n3))
4445
4445
  throw new RangeError("Invalid picture fill rectangle");
4446
- if (n2 !== before.fillRect?.[key])
4447
- attr4(rect3, key, n2 === void 0 ? void 0 : Math.round(n2 * 1e5), void 0);
4446
+ if (n3 !== before.fillRect?.[key])
4447
+ attr4(rect3, key, n3 === void 0 ? void 0 : Math.round(n3 * 1e5), void 0);
4448
4448
  }
4449
4449
  }
4450
4450
  }
@@ -5319,7 +5319,7 @@ function lerpStops(a2, b, t) {
5319
5319
  opacity: oa + (ob - oa) * t
5320
5320
  };
5321
5321
  }
5322
- function colorAt(stops, position) {
5322
+ function gradientColorAt(stops, position) {
5323
5323
  const first2 = stops[0];
5324
5324
  const last = stops[stops.length - 1];
5325
5325
  if (position <= first2.position) {
@@ -5381,7 +5381,7 @@ function buildRectPathGradientSvg(stops, focalPoint, fillToRect, options2) {
5381
5381
  if (!Number.isInteger(bands) || bands < 1) throw new RangeError("Invalid gradient band count");
5382
5382
  for (let i2 = bands; i2 >= 0; i2 -= 1) {
5383
5383
  const t = i2 / bands;
5384
- const { color: color2, opacity } = colorAt(sorted, t * 100);
5384
+ const { color: color2, opacity } = gradientColorAt(sorted, t * 100);
5385
5385
  const left = lerpEdge(inner.left, 0, t);
5386
5386
  const top = lerpEdge(inner.top, 0, t);
5387
5387
  const right = lerpEdge(inner.right, 100, t);
@@ -5406,10 +5406,10 @@ function buildRectPathGradientExactSvg(stops, focalPoint, fillToRect) {
5406
5406
  }
5407
5407
  const sorted = [...stops].sort((a2, b) => a2.position - b.position);
5408
5408
  const { left, top, right, bottom } = resolveInnerRect(fillToRect, focalPoint);
5409
- const n2 = (value) => String(Math.round(value * 1e3) / 1e3);
5410
- const alpha = (opacity, attr4) => (opacity ?? 1) < 1 ? ` ${attr4}="${n2(Math.max(0, opacity ?? 1))}"` : "";
5409
+ const n3 = (value) => String(Math.round(value * 1e3) / 1e3);
5410
+ const alpha = (opacity, attr4) => (opacity ?? 1) < 1 ? ` ${attr4}="${n3(Math.max(0, opacity ?? 1))}"` : "";
5411
5411
  const stopMarkup = sorted.map(
5412
- (stop) => `<stop offset="${n2(Math.min(Math.max(stop.position, 0), 100) / 100)}" stop-color="${stop.color}"${alpha(stop.opacity, "stop-opacity")}/>`
5412
+ (stop) => `<stop offset="${n3(Math.min(Math.max(stop.position, 0), 100) / 100)}" stop-color="${stop.color}"${alpha(stop.opacity, "stop-opacity")}/>`
5413
5413
  ).join("");
5414
5414
  const sides = [
5415
5415
  { id: "t", pts: [0, 0, 100, 0, right, top, left, top], v: [0, top, 0, 0], size: top },
@@ -5428,15 +5428,15 @@ function buildRectPathGradientExactSvg(stops, focalPoint, fillToRect) {
5428
5428
  }
5429
5429
  ].filter((side) => side.size > 1e-3);
5430
5430
  const defs = sides.map(
5431
- (side) => `<linearGradient id="${side.id}" gradientUnits="userSpaceOnUse" x1="${n2(side.v[0])}" y1="${n2(side.v[1])}" x2="${n2(side.v[2])}" y2="${n2(side.v[3])}">${stopMarkup}</linearGradient>`
5431
+ (side) => `<linearGradient id="${side.id}" gradientUnits="userSpaceOnUse" x1="${n3(side.v[0])}" y1="${n3(side.v[1])}" x2="${n3(side.v[2])}" y2="${n3(side.v[3])}">${stopMarkup}</linearGradient>`
5432
5432
  ).join("");
5433
5433
  const polygons = sides.map((side) => {
5434
- const points2 = side.pts.map(n2);
5434
+ const points2 = side.pts.map(n3);
5435
5435
  const pairs = [0, 2, 4, 6].map((i2) => `${points2[i2]},${points2[i2 + 1]}`).join(" ");
5436
5436
  return `<polygon points="${pairs}" fill="url(#${side.id})"/>`;
5437
5437
  }).join("");
5438
5438
  const first2 = sorted[0];
5439
- const plateau = right - left > 1e-3 && bottom - top > 1e-3 ? `<rect x="${n2(left)}" y="${n2(top)}" width="${n2(right - left)}" height="${n2(bottom - top)}" fill="${first2.color}"${alpha(first2.opacity, "fill-opacity")}/>` : "";
5439
+ const plateau = right - left > 1e-3 && bottom - top > 1e-3 ? `<rect x="${n3(left)}" y="${n3(top)}" width="${n3(right - left)}" height="${n3(bottom - top)}" fill="${first2.color}"${alpha(first2.opacity, "fill-opacity")}/>` : "";
5440
5440
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" shape-rendering="crispEdges"><defs>${defs}</defs>${polygons}${plateau}</svg>`;
5441
5441
  }
5442
5442
  function buildRectPathGradientImage(stops, focalPoint, fillToRect) {
@@ -8305,8 +8305,8 @@ function chartDataSheetPasteEdits(sheet, anchor, block, parseNumber) {
8305
8305
  const edits = [];
8306
8306
  const lastSeries = anchor.col + width - 1;
8307
8307
  const lastCategory = anchor.row + block.length - 1;
8308
- for (let n2 = sheet.series.length; n2 < lastSeries; n2++) edits.push({ kind: "add-series" });
8309
- for (let n2 = sheet.categories.length; n2 < lastCategory; n2++) edits.push({ kind: "add-category" });
8308
+ for (let n3 = sheet.series.length; n3 < lastSeries; n3++) edits.push({ kind: "add-series" });
8309
+ for (let n3 = sheet.categories.length; n3 < lastCategory; n3++) edits.push({ kind: "add-category" });
8310
8310
  block.forEach(
8311
8311
  (cells, r) => cells.forEach((raw2, c2) => {
8312
8312
  const edit = chartDataSheetCellEdit(
@@ -9232,9 +9232,9 @@ function chartExDataLayout(space3, sheetName) {
9232
9232
  const data2 = values.map((value) => {
9233
9233
  if (dimension2.kind !== "numDim") return value;
9234
9234
  if (value === "") return null;
9235
- const n2 = Number(value);
9236
- if (!Number.isFinite(n2)) throw new Error("Numeric chart data is invalid.");
9237
- return n2;
9235
+ const n3 = Number(value);
9236
+ if (!Number.isFinite(n3)) throw new Error("Numeric chart data is invalid.");
9237
+ return n3;
9238
9238
  });
9239
9239
  columns.push([level4.name ?? `Data ${columns.length + 1}`, ...data2]);
9240
9240
  }
@@ -9734,7 +9734,7 @@ function syncTable(table, doc, writes, shared) {
9734
9734
  let column = list2[col - next.start.col];
9735
9735
  const header = writes.get(ref) ?? column?.getAttribute("name") ?? cellText(doc, ref, shared);
9736
9736
  let name2 = header.trim() || column && !writes.has(ref) ? header : `Column${col - next.start.col + 1}`;
9737
- for (let n2 = 2; used.has(name2.toLowerCase()); n2++) name2 = `${header}${n2}`;
9737
+ for (let n3 = 2; used.has(name2.toLowerCase()); n3++) name2 = `${header}${n3}`;
9738
9738
  used.add(name2.toLowerCase());
9739
9739
  if (!column) {
9740
9740
  column = table.ownerDocument.createElementNS(
@@ -9988,8 +9988,8 @@ async function appendChartWorkbookSheet(bytes, rowsForName, options2 = {}) {
9988
9988
  if (!base.trim() || /[\\/?*\[\]:]/u.test(base) || base.startsWith("'") || base.endsWith("'"))
9989
9989
  throw new RangeError("Invalid chart data sheet name.");
9990
9990
  let sheetName = "";
9991
- for (let n2 = 1; ; n2++) {
9992
- const suffix = String(n2);
9991
+ for (let n3 = 1; ; n3++) {
9992
+ const suffix = String(n3);
9993
9993
  const candidate = `${base.slice(0, 31 - suffix.length)}${suffix}`;
9994
9994
  if (!names.has(candidate.toLowerCase())) {
9995
9995
  sheetName = candidate;
@@ -10005,8 +10005,8 @@ async function appendChartWorkbookSheet(bytes, rowsForName, options2 = {}) {
10005
10005
  throw new RangeError("Chart workbook numbers must be finite.");
10006
10006
  const taken = new Set(Object.keys(zip.files).map((name2) => name2.toLowerCase()));
10007
10007
  let part = "";
10008
- for (let n2 = 1; ; n2++) {
10009
- const candidate = `xl/worksheets/sheet${n2}.xml`;
10008
+ for (let n3 = 1; ; n3++) {
10009
+ const candidate = `xl/worksheets/sheet${n3}.xml`;
10010
10010
  if (!taken.has(candidate.toLowerCase())) {
10011
10011
  part = candidate;
10012
10012
  break;
@@ -10014,14 +10014,14 @@ async function appendChartWorkbookSheet(bytes, rowsForName, options2 = {}) {
10014
10014
  }
10015
10015
  const ids = new Set(children(rels, "Relationship", NS.rels).map((rel) => rel.getAttribute("Id")));
10016
10016
  let id = "";
10017
- for (let n2 = 1; ; n2++) {
10018
- if (!ids.has(`rId${n2}`)) {
10019
- id = `rId${n2}`;
10017
+ for (let n3 = 1; ; n3++) {
10018
+ if (!ids.has(`rId${n3}`)) {
10019
+ id = `rId${n3}`;
10020
10020
  break;
10021
10021
  }
10022
10022
  }
10023
10023
  const sheetIds = entries.map((sheet2) => Number(sheet2.getAttribute("sheetId")));
10024
- if (sheetIds.some((n2) => !Number.isSafeInteger(n2) || n2 < 1))
10024
+ if (sheetIds.some((n3) => !Number.isSafeInteger(n3) || n3 < 1))
10025
10025
  throw new Error("The chart workbook has invalid sheet identifiers.");
10026
10026
  const sheet = element(sheets, "sheet");
10027
10027
  sheet.setAttribute("name", sheetName);
@@ -11655,8 +11655,8 @@ function chart3DLayout(model, inner, view) {
11655
11655
  }
11656
11656
 
11657
11657
  // chart/render/chart-3d-mesh.ts
11658
- function faceKind(n2) {
11659
- const [x, y, z] = n2;
11658
+ function faceKind(n3) {
11659
+ const [x, y, z] = n3;
11660
11660
  if (Math.abs(y) >= Math.abs(x) && Math.abs(y) >= Math.abs(z)) return y >= 0 ? "top" : "bottom";
11661
11661
  if (Math.abs(x) >= Math.abs(z)) return x >= 0 ? "right" : "left";
11662
11662
  return z < 0 ? "front" : "back";
@@ -12095,7 +12095,7 @@ function scatterAnalysis(model, px3, py, out) {
12095
12095
  }
12096
12096
 
12097
12097
  // chart/render/chart-scale.ts
12098
- var clean = (n2) => Number(n2.toPrecision(12));
12098
+ var clean = (n3) => Number(n3.toPrecision(12));
12099
12099
  function* units(raw2) {
12100
12100
  let exp = Math.floor(Math.log10(raw2)) - 1;
12101
12101
  for (; ; ) {
@@ -12343,8 +12343,8 @@ function findNonLiteral(tokens, index, step) {
12343
12343
  }
12344
12344
  return void 0;
12345
12345
  }
12346
- function pad(n2, width) {
12347
- return String(n2).padStart(width, "0");
12346
+ function pad(n3, width) {
12347
+ return String(n3).padStart(width, "0");
12348
12348
  }
12349
12349
  function renderDatePart(part, count, date, twelveHour) {
12350
12350
  switch (part) {
@@ -12987,9 +12987,14 @@ __export(drawingml_exports, {
12987
12987
  booleanAttribute: () => booleanAttribute,
12988
12988
  buildImageBiLevelTable: () => buildImageBiLevelTable,
12989
12989
  buildImageLuminanceTransfer: () => buildImageLuminanceTransfer,
12990
+ buildOutlinePathGradientSvg: () => buildOutlinePathGradientSvg,
12990
12991
  buildRectPathGradientExactSvg: () => buildRectPathGradientExactSvg,
12991
12992
  buildRectPathGradientImage: () => buildRectPathGradientImage,
12992
12993
  buildRectPathGradientSvg: () => buildRectPathGradientSvg,
12994
+ capCompensatedDashArray: () => capCompensatedDashArray,
12995
+ closedSubpaths: () => closedSubpaths,
12996
+ dashPatternUnits: () => dashPatternUnits,
12997
+ dashPenWidth: () => dashPenWidth,
12993
12998
  descendants: () => descendants,
12994
12999
  drawingColorBrightness: () => drawingColorBrightness,
12995
13000
  drawingColorCss: () => drawingColorCss,
@@ -13007,9 +13012,11 @@ __export(drawingml_exports, {
13007
13012
  drawingThemeFormatSchemeXml: () => drawingThemeFormatSchemeXml,
13008
13013
  drawingThemeXml: () => drawingThemeXml,
13009
13014
  fillElementOf: () => fillElementOf,
13015
+ gradientColorAt: () => gradientColorAt,
13010
13016
  imageContentType: () => imageContentType,
13011
13017
  inspectRasterImage: () => inspectRasterImage,
13012
13018
  integerAttribute: () => integerAttribute,
13019
+ isDashedStroke: () => isDashedStroke,
13013
13020
  isThemeColorSlot: () => isThemeColorSlot,
13014
13021
  officeGradientPresetFill: () => officeGradientPresetFill,
13015
13022
  officeGradientPresetId: () => officeGradientPresetId,
@@ -13067,7 +13074,9 @@ __export(drawingml_exports, {
13067
13074
  resolveThemeEffectStyle: () => resolveThemeEffectStyle,
13068
13075
  resolveThemeFillStyle: () => resolveThemeFillStyle,
13069
13076
  resolveThemeLineStyle: () => resolveThemeLineStyle,
13077
+ scalePathAbout: () => scalePathAbout,
13070
13078
  setDrawingFillXml: () => setDrawingFillXml,
13079
+ shapePathGradientField: () => shapePathGradientField,
13071
13080
  stringAttribute: () => stringAttribute,
13072
13081
  substituteDrawingPlaceholder: () => substituteDrawingPlaceholder,
13073
13082
  svgDropShadowElement: () => svgDropShadowElement,
@@ -13459,7 +13468,7 @@ function parseCustomGeometry(custom, width, height) {
13459
13468
  }
13460
13469
  const pathWidth = path3.hasAttribute("w") ? Number(path3.getAttribute("w")) : contextWidth;
13461
13470
  const pathHeight = path3.hasAttribute("h") ? Number(path3.getAttribute("h")) : contextHeight;
13462
- if (![pathWidth, pathHeight].every((n2) => Number.isFinite(n2) && n2 > 0)) return void 0;
13471
+ if (![pathWidth, pathHeight].every((n3) => Number.isFinite(n3) && n3 > 0)) return void 0;
13463
13472
  paths.push({
13464
13473
  commands,
13465
13474
  width: pathWidth,
@@ -13894,6 +13903,152 @@ function officeGradientPresetId(fill) {
13894
13903
  return index < 0 ? void 0 : index + 1;
13895
13904
  }
13896
13905
 
13906
+ // drawingml/shape-path-gradient.ts
13907
+ var CIRCLE_FIELD_PRESETS = new Set(
13908
+ [
13909
+ "chevron",
13910
+ "rightArrow",
13911
+ "leftArrow",
13912
+ "upArrow",
13913
+ "downArrow",
13914
+ "stripedRightArrow",
13915
+ "notchedRightArrow",
13916
+ "bentUpArrow",
13917
+ "bentArrow",
13918
+ "uturnArrow",
13919
+ "leftRightArrow",
13920
+ "upDownArrow",
13921
+ "leftUpArrow",
13922
+ "leftRightUpArrow",
13923
+ "quadArrow",
13924
+ "curvedRightArrow",
13925
+ "curvedLeftArrow",
13926
+ "curvedUpArrow",
13927
+ "curvedDownArrow",
13928
+ "swooshArrow",
13929
+ "lightningBolt",
13930
+ "sun",
13931
+ "moon",
13932
+ "smileyFace",
13933
+ "ribbon",
13934
+ "ribbon2",
13935
+ "ellipseRibbon",
13936
+ "ellipseRibbon2",
13937
+ "leftRightRibbon",
13938
+ "verticalScroll",
13939
+ "horizontalScroll",
13940
+ "wave",
13941
+ "doubleWave",
13942
+ "flowChartDocument",
13943
+ "flowChartMultidocument",
13944
+ "flowChartPunchedTape",
13945
+ "flowChartMagneticDisk",
13946
+ "flowChartDisplay"
13947
+ ].map((name2) => name2.toLowerCase())
13948
+ );
13949
+ var LEGACY_FIELD_PRESETS = new Set(
13950
+ [
13951
+ "donut",
13952
+ "noSmoking",
13953
+ "blockArc",
13954
+ "frame",
13955
+ "chord",
13956
+ "funnel",
13957
+ "mathDivide",
13958
+ "mathNotEqual",
13959
+ "cornerTabs",
13960
+ "squareTabs",
13961
+ "plaqueTabs",
13962
+ "circularArrow",
13963
+ "leftCircularArrow",
13964
+ "leftRightCircularArrow",
13965
+ "flowChartMagneticTape",
13966
+ "flowChartMagneticDrum"
13967
+ ].map((name2) => name2.toLowerCase())
13968
+ );
13969
+ function shapePathGradientField(preset) {
13970
+ if (!preset || preset === "custom") return "circle";
13971
+ const key = preset.toLowerCase();
13972
+ if (CIRCLE_FIELD_PRESETS.has(key)) return "circle";
13973
+ if (LEGACY_FIELD_PRESETS.has(key)) return "legacy";
13974
+ return "outline";
13975
+ }
13976
+ var BAND_COUNT2 = 100;
13977
+ function n2(value) {
13978
+ return String(Math.round(value * 1e3) / 1e3);
13979
+ }
13980
+ var ARG_COUNT = { M: 2, L: 2, Q: 4, C: 6, A: 7, Z: 0 };
13981
+ function scalePathAbout(d, s2, fx, fy) {
13982
+ const tokens = d.match(/[A-Za-z]|-?\d*\.?\d+(?:e[-+]?\d+)?/gu);
13983
+ if (!tokens) return void 0;
13984
+ const out = [];
13985
+ let i2 = 0;
13986
+ while (i2 < tokens.length) {
13987
+ const command = tokens[i2++];
13988
+ const count = ARG_COUNT[command];
13989
+ if (count === void 0) return void 0;
13990
+ out.push(command);
13991
+ if (command === "Z") continue;
13992
+ const args = tokens.slice(i2, i2 + count).map(Number);
13993
+ i2 += count;
13994
+ if (args.length !== count || args.some((value) => !Number.isFinite(value))) return void 0;
13995
+ if (command === "A") {
13996
+ out.push(
13997
+ n2(args[0] * s2),
13998
+ n2(args[1] * s2),
13999
+ n2(args[2]),
14000
+ n2(args[3]),
14001
+ n2(args[4]),
14002
+ n2(fx + (args[5] - fx) * s2),
14003
+ n2(fy + (args[6] - fy) * s2)
14004
+ );
14005
+ continue;
14006
+ }
14007
+ for (let k = 0; k < count; k += 2) {
14008
+ out.push(n2(fx + (args[k] - fx) * s2), n2(fy + (args[k + 1] - fy) * s2));
14009
+ }
14010
+ }
14011
+ return out.join(" ");
14012
+ }
14013
+ function closedSubpaths(d) {
14014
+ const parts = d.split(/(?=M)/u).map((part) => part.trim()).filter((part) => part.endsWith("Z"));
14015
+ return parts.length > 0 ? parts.join(" ") : void 0;
14016
+ }
14017
+ function buildOutlinePathGradientSvg(stops, d, width, height, focusX, focusY) {
14018
+ if (stops.length === 0 || !(width > 0) || !(height > 0)) return void 0;
14019
+ if (scalePathAbout(d, 1, 0, 0) === void 0) return void 0;
14020
+ const sorted = [...stops].sort((a2, b) => a2.position - b.position);
14021
+ const fx = focusX * width;
14022
+ const fy = focusY * height;
14023
+ const translucent = sorted.some((stop) => (stop.opacity ?? 1) < 1);
14024
+ const body = [];
14025
+ if (translucent) {
14026
+ for (let i2 = BAND_COUNT2; i2 >= 1; i2 -= 1) {
14027
+ const outer = scalePathAbout(d, i2 / BAND_COUNT2, fx, fy);
14028
+ if (outer === void 0) return void 0;
14029
+ const inner = i2 > 1 ? scalePathAbout(d, (i2 - 1) / BAND_COUNT2, fx, fy) : void 0;
14030
+ const { color: color2, opacity } = gradientColorAt(sorted, (i2 - 0.5) / BAND_COUNT2 * 100);
14031
+ const alpha = opacity < 1 ? ` fill-opacity="${n2(Math.max(0, opacity))}"` : "";
14032
+ body.push(
14033
+ `<path d="${outer}${inner ? ` ${inner}` : ""}" fill="${color2}"${alpha} fill-rule="evenodd"/>`
14034
+ );
14035
+ }
14036
+ return wrap2(width, height, body.join(""));
14037
+ }
14038
+ body.push(`<defs><path id="p" d="${d}"/></defs>`);
14039
+ for (let i2 = BAND_COUNT2; i2 >= 1; i2 -= 1) {
14040
+ const s2 = i2 / BAND_COUNT2;
14041
+ const { color: color2 } = gradientColorAt(sorted, (i2 - 0.5) / BAND_COUNT2 * 100);
14042
+ body.push(
14043
+ `<use href="#p" transform="matrix(${n2(s2)} 0 0 ${n2(s2)} ${n2(fx * (1 - s2))} ${n2(fy * (1 - s2))})" fill="${color2}"/>`
14044
+ );
14045
+ }
14046
+ return wrap2(width, height, body.join(""));
14047
+ }
14048
+ function wrap2(width, height, body) {
14049
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${n2(width)} ${n2(height)}" preserveAspectRatio="none">${body}</svg>`;
14050
+ }
14051
+
13897
14052
  // drawingml/read-run-properties.ts
13898
14053
  function outerXml(element4) {
13899
14054
  return buildXml(element4);
@@ -14258,8 +14413,8 @@ var LIGHT_DIRECTIONS = /* @__PURE__ */ new Set(["tl", "t", "tr", "l", "r", "bl",
14258
14413
  // drawingml/read-3d-values.ts
14259
14414
  var integer = (value) => {
14260
14415
  if (value === void 0 || value === null || String(value).trim() === "") return void 0;
14261
- const n2 = Number(value);
14262
- return Number.isSafeInteger(n2) ? n2 : void 0;
14416
+ const n3 = Number(value);
14417
+ return Number.isSafeInteger(n3) ? n3 : void 0;
14263
14418
  };
14264
14419
  function readScene3DValues(node, read) {
14265
14420
  const out = {};
@@ -15482,6 +15637,57 @@ function applyPictureHslPixels(data, effect) {
15482
15637
  }
15483
15638
  }
15484
15639
 
15640
+ // drawingml/dash-pattern.ts
15641
+ var PRESET_PATTERNS = {
15642
+ dash: [4, 3],
15643
+ dot: [1, 3],
15644
+ lgDash: [8, 3],
15645
+ dashDot: [4, 3, 1, 3],
15646
+ lgDashDot: [8, 3, 1, 3],
15647
+ lgDashDotDot: [8, 3, 1, 3, 1, 3],
15648
+ sysDash: [3, 1],
15649
+ sysDot: [1, 1],
15650
+ sysDashDot: [3, 1, 1, 1],
15651
+ sysDashDotDot: [3, 1, 1, 1, 1, 1]
15652
+ };
15653
+ var CUSTOM_DASH_UNIT = 1e5;
15654
+ var FALLBACK_CUSTOM_PATTERN = [3, 2];
15655
+ function dashPenWidth(strokeWidth) {
15656
+ if (!Number.isFinite(strokeWidth) || strokeWidth <= 1) return 1;
15657
+ return Math.max(1, Math.ceil(strokeWidth - 0.5));
15658
+ }
15659
+ function dashPatternUnits(dashType, customSegments) {
15660
+ if (!dashType || dashType === "solid") return void 0;
15661
+ if (dashType === "custom") {
15662
+ const pattern = (customSegments ?? []).flatMap((seg) => [
15663
+ Math.max(0, seg.dash) / CUSTOM_DASH_UNIT,
15664
+ Math.max(0, seg.space) / CUSTOM_DASH_UNIT
15665
+ ]);
15666
+ return pattern.some((n3) => n3 > 0) ? pattern : FALLBACK_CUSTOM_PATTERN;
15667
+ }
15668
+ return PRESET_PATTERNS[dashType];
15669
+ }
15670
+ function isDashedStroke(dashType) {
15671
+ return dashType !== void 0 && dashType !== "solid" && dashType !== "";
15672
+ }
15673
+ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
15674
+ const pen = dashPenWidth(strokeWidth);
15675
+ const round3 = lineCap === "rnd";
15676
+ const out = [];
15677
+ for (let i2 = 0; i2 < pattern.length; i2 += 1) {
15678
+ const len = (pattern[i2] ?? 0) * pen;
15679
+ if (!round3) {
15680
+ out.push(len);
15681
+ } else if (i2 % 2 === 0) {
15682
+ out.push(Math.max(0, len - pen));
15683
+ } else {
15684
+ const dash = (pattern[i2 - 1] ?? 0) * pen;
15685
+ out.push(len + (dash - Math.max(0, dash - pen)));
15686
+ }
15687
+ }
15688
+ return out.map((n3) => Number(n3.toFixed(4))).join(" ");
15689
+ }
15690
+
15485
15691
  // chart/region-map/value-color-positions.ts
15486
15692
  function schemaPosition(node, end) {
15487
15693
  for (const kind of ["number", "percent"]) {
@@ -15692,7 +15898,7 @@ function bubbleView(chart, model, evaluateRef) {
15692
15898
  showNegativeBubbles: chart.bubble?.showNegativeBubbles === true
15693
15899
  };
15694
15900
  }
15695
- var columnNumber = (letters) => [...letters].reduce((n2, ch) => n2 * 26 + ch.charCodeAt(0) - 64, 0);
15901
+ var columnNumber = (letters) => [...letters].reduce((n3, ch) => n3 * 26 + ch.charCodeAt(0) - 64, 0);
15696
15902
  function refColumns(ref) {
15697
15903
  const match = /\$?([A-Z]{1,3})\$?\d+:\$?([A-Z]{1,3})\$?\d+\s*$/i.exec(ref);
15698
15904
  if (!match) return 1;
@@ -15987,7 +16193,7 @@ function chartSummaryView(chart, theme, options2 = {}) {
15987
16193
  const rawCategories = [];
15988
16194
  const collect = (cats) => void rawCategories.push(cats);
15989
16195
  const extra = chart.extraGroups ?? [];
15990
- const total = chart.series.length + extra.reduce((n2, g3) => n2 + g3.series.length, 0);
16196
+ const total = chart.series.length + extra.reduce((n3, g3) => n3 + g3.series.length, 0);
15991
16197
  const series2 = chart.series.map((s2, i2) => seriesView(ctx, s2, i2, total, collect));
15992
16198
  const longest = Math.max(
15993
16199
  0,
@@ -16956,7 +17162,7 @@ function formatRegionMapValue(value, cultureLanguage) {
16956
17162
  }
16957
17163
  }
16958
17164
  function lerpColor(a2, b, t) {
16959
- const clamp6 = (v) => Math.max(0, Math.min(255, Math.round(v))), ha = a2.replace("#", ""), hb = b.replace("#", ""), r1 = parseInt(ha.substring(0, 2), 16), g1 = parseInt(ha.substring(2, 4), 16), b1 = parseInt(ha.substring(4, 6), 16), r2 = parseInt(hb.substring(0, 2), 16), g22 = parseInt(hb.substring(2, 4), 16), b2 = parseInt(hb.substring(4, 6), 16), r = clamp6(r1 + (r2 - r1) * t), g3 = clamp6(g1 + (g22 - g1) * t), bl = clamp6(b1 + (b2 - b1) * t), toHex2 = (n2) => n2.toString(16).padStart(2, "0");
17165
+ const clamp6 = (v) => Math.max(0, Math.min(255, Math.round(v))), ha = a2.replace("#", ""), hb = b.replace("#", ""), r1 = parseInt(ha.substring(0, 2), 16), g1 = parseInt(ha.substring(2, 4), 16), b1 = parseInt(ha.substring(4, 6), 16), r2 = parseInt(hb.substring(0, 2), 16), g22 = parseInt(hb.substring(2, 4), 16), b2 = parseInt(hb.substring(4, 6), 16), r = clamp6(r1 + (r2 - r1) * t), g3 = clamp6(g1 + (g22 - g1) * t), bl = clamp6(b1 + (b2 - b1) * t), toHex2 = (n3) => n3.toString(16).padStart(2, "0");
16960
17166
  return `#${toHex2(r)}${toHex2(g3)}${toHex2(bl)}`;
16961
17167
  }
16962
17168
  function resolveValueColorStops(valueColors, valueColorPositions, minVal, maxVal) {
@@ -17387,10 +17593,10 @@ function projectGeoPoint(point, projection = "mercator") {
17387
17593
  ];
17388
17594
  }
17389
17595
  if (projection === "albers") {
17390
- const n2 = (Math.sin(20 * RAD) + Math.sin(50 * RAD)) / 2;
17391
- const c2 = Math.cos(20 * RAD) ** 2 + 2 * n2 * Math.sin(20 * RAD);
17392
- const rho = Math.sqrt(Math.max(0, c2 - 2 * n2 * Math.sin(lat))) / n2;
17393
- return [rho * Math.sin(n2 * lon), rho * Math.cos(n2 * lon) - Math.sqrt(c2) / n2];
17596
+ const n3 = (Math.sin(20 * RAD) + Math.sin(50 * RAD)) / 2;
17597
+ const c2 = Math.cos(20 * RAD) ** 2 + 2 * n3 * Math.sin(20 * RAD);
17598
+ const rho = Math.sqrt(Math.max(0, c2 - 2 * n3 * Math.sin(lat))) / n3;
17599
+ return [rho * Math.sin(n3 * lon), rho * Math.cos(n3 * lon) - Math.sqrt(c2) / n3];
17394
17600
  }
17395
17601
  return void 0;
17396
17602
  }
@@ -18049,7 +18255,7 @@ function sliceLabels(model, marks, out) {
18049
18255
  );
18050
18256
  for (const [id, item2] of items.entries()) {
18051
18257
  const { mark, label, m } = item2;
18052
- const nudge = nudges.find((n2) => n2.id === id);
18258
+ const nudge = nudges.find((n3) => n3.id === id);
18053
18259
  let point = { x: item2.x + (nudge?.dx ?? 0), y: item2.y + (nudge?.dy ?? 0) };
18054
18260
  if (model.frameSize) point = applyLabelManualLayout(label.layout, model.frameSize, point);
18055
18261
  const moved = point.x !== item2.x || point.y !== item2.y;
@@ -18192,7 +18398,7 @@ function radarSvg(model, area) {
18192
18398
  }
18193
18399
 
18194
18400
  // chart/render/chart-svg-hierarchy.ts
18195
- var colorAt2 = (model, index) => {
18401
+ var colorAt = (model, index) => {
18196
18402
  const first2 = model.series[0];
18197
18403
  const colors = first2?.pointColors;
18198
18404
  return (colors && colors.length > 0 ? colors[index % colors.length] : void 0) ?? first2?.color ?? "#4472C4";
@@ -18221,7 +18427,7 @@ function treemapSvg(model, area) {
18221
18427
  }
18222
18428
  out.push(`<g data-chart-series="${cell2.seriesIndex}" data-chart-point="${cell2.pointIndex}">`);
18223
18429
  out.push(
18224
- rect(cell2.x, cell2.y, cell2.w, cell2.h, colorAt2(model, cell2.colorIndex)).replace(
18430
+ rect(cell2.x, cell2.y, cell2.w, cell2.h, colorAt(model, cell2.colorIndex)).replace(
18225
18431
  "/>",
18226
18432
  ' rx="2"/>'
18227
18433
  )
@@ -18260,7 +18466,7 @@ function sunburstSvg(model, area) {
18260
18466
  );
18261
18467
  for (const arc3 of arcs)
18262
18468
  out.push(
18263
- `<path d="${arc3.d}" fill="${colorAt2(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
18469
+ `<path d="${arc3.d}" fill="${colorAt(model, arc3.colorIndex)}" stroke="#FFFFFF" stroke-width="1.5"${arc3.pointIndex === void 0 ? "" : ` data-chart-series="0" data-chart-point="${arc3.pointIndex}"`}/>`
18264
18470
  );
18265
18471
  const flatLabels = levels.length > 1 || model.series.length !== 1 ? void 0 : model.categories;
18266
18472
  for (const arc3 of model.hierarchy?.labels === false ? [] : arcs) {
@@ -20838,9 +21044,9 @@ function applyDataTable(draft, layout) {
20838
21044
  showKeys: true
20839
21045
  };
20840
21046
  }
20841
- function applyChartQuickLayout(space3, n2, only = ALL_PARTS) {
20842
- const layout = findChartQuickLayout(n2);
20843
- if (!layout) throw new RangeError(`No chart quick layout ${n2}`);
21047
+ function applyChartQuickLayout(space3, n3, only = ALL_PARTS) {
21048
+ const layout = findChartQuickLayout(n3);
21049
+ if (!layout) throw new RangeError(`No chart quick layout ${n3}`);
20844
21050
  if (!chartSupportsQuickLayout(space3))
20845
21051
  throw new RangeError("Quick layouts apply to bar, column, line and area charts");
20846
21052
  const parts = new Set(only);
@@ -23017,6 +23223,14 @@ function changeTextCaseRanges(text3, mode, boundaries = []) {
23017
23223
 
23018
23224
  // text/font-metrics/design-advances.generated.ts
23019
23225
  var DESIGN_ADVANCES = {
23226
+ aptos: {
23227
+ regular: "203.75 292.5 370 537.5 533.75 826.25 642.5 210 292.5 292.5 457.5 533.75 286.25 340 286.25 338.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 286.25 286.25 533.75 533.75 533.75 501.25 895 588.75 603.75 692.5 686.25 556.25 525 708.75 707.5 260 331.25 568.75 500 790 706.25 732.5 577.5 732.5 606.25 566.25 478.75 681.25 585 892.5 552.5 540 516.25 295 338.75 295 533.75 460 551.25 531.25 561.25 525 560 526.25 301.25 485 551.25 238.75 238.75 486.25 260 852.5 551.25 551.25 561.25 560 335 486.25 323.75 558.75 452.5 721.25 442.5 452.5 437.5 295 270 295 533.75",
23228
+ bold: "203.75 292.5 420 537.5 533.75 841.25 676.25 232.5 292.5 292.5 457.5 533.75 300 340 300 386.25 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 533.75 300 300 533.75 533.75 533.75 517.5 900 620 618.75 706.25 707.5 573.75 536.25 717.5 728.75 293.75 366.25 622.5 511.25 821.25 722.5 737.5 605 737.5 633.75 598.75 505 696.25 616.25 940 598.75 586.25 547.5 337.5 386.25 337.5 533.75 460 551.25 551.25 586.25 548.75 586.25 556.25 335 511.25 578.75 267.5 267.5 533.75 296.25 888.75 578.75 573.75 586.25 586.25 368.75 516.25 355 581.25 493.75 761.25 495 493.75 466.25 337.5 270 337.5 533.75"
23229
+ },
23230
+ "aptos display": {
23231
+ regular: "192.5 246.25 370 528.75 522.5 825 622.5 210 295 295 381.25 522.5 246.25 348.75 246.25 338.75 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 522.5 246.25 246.25 522.5 522.5 522.5 486.25 878.75 580 582.5 656.25 655 540 508.75 671.25 661.25 235 317.5 553.75 485 765 681.25 695 556.25 695 590 546.25 477.5 651.25 573.75 886.25 550 535 516.25 295 338.75 295 522.5 460 551.25 488.75 518.75 492.5 518.75 493.75 283.75 440 506.25 210 210 447.5 243.75 800 506.25 512.5 518.75 518.75 310 462.5 303.75 506.25 432.5 716.25 440 432.5 426.25 295 218.75 295 522.5",
23232
+ bold: "192.5 261.25 420 561.25 540 838.75 655 232.5 337.5 337.5 428.75 540 261.25 365 261.25 386.25 540 540 540 540 540 540 540 540 540 540 261.25 261.25 540 540 540 502.5 887.5 610 598.75 675 677.5 548.75 516.25 685 682.5 267.5 348.75 602.5 491.25 793.75 696.25 705 585 705 610 573.75 498.75 670 600 921.25 591.25 572.5 547.5 337.5 386.25 337.5 540 460 551.25 507.5 541.25 507.5 542.5 515 317.5 472.5 533.75 240 240 500 278.75 840 533.75 530 541.25 542.5 342.5 483.75 333.75 533.75 475 747.5 488.75 475 450 337.5 251.25 337.5 540"
23233
+ },
23020
23234
  arial: {
23021
23235
  regular: "277.83 277.83 354.98 556.15 556.15 889.16 666.99 190.92 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 277.83 277.83 583.98 583.98 583.98 556.15 1015.14 666.99 666.99 722.17 722.17 666.99 610.84 777.83 722.17 277.83 500 666.99 556.15 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 277.83 277.83 277.83 469.24 556.15 333.01 556.15 556.15 500 556.15 556.15 277.83 556.15 556.15 222.17 222.17 500 222.17 833.01 556.15 556.15 556.15 556.15 333.01 500 277.83 556.15 500 722.17 500 500 500 333.98 259.77 333.98 583.98",
23022
23236
  bold: "277.83 333.01 474.12 556.15 556.15 889.16 722.17 237.79 333.01 333.01 389.16 583.98 277.83 333.01 277.83 277.83 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 556.15 333.01 333.01 583.98 583.98 583.98 610.84 975.1 722.17 722.17 722.17 722.17 666.99 610.84 777.83 722.17 277.83 556.15 722.17 610.84 833.01 722.17 777.83 666.99 777.83 722.17 666.99 610.84 722.17 666.99 943.85 666.99 666.99 610.84 333.01 277.83 333.01 583.98 556.15 333.01 556.15 610.84 556.15 610.84 556.15 333.01 610.84 610.84 277.83 277.83 556.15 277.83 889.16 610.84 610.84 610.84 610.84 389.16 556.15 333.01 610.84 556.15 777.83 556.15 556.15 500 389.16 279.79 389.16 583.98"
@@ -23997,7 +24211,7 @@ function parseTrueType(data) {
23997
24211
  }
23998
24212
 
23999
24213
  // text/truetype/subset.ts
24000
- var pad4 = (n2) => n2 + 3 & -4;
24214
+ var pad4 = (n3) => n3 + 3 & -4;
24001
24215
  function checksum(bytes) {
24002
24216
  let sum = 0;
24003
24217
  for (let i2 = 0; i2 < bytes.length; i2 += 4)
@@ -25009,6 +25223,7 @@ __export(diagram_exports, {
25009
25223
  buildFabricatedQuickStyleXml: () => buildFabricatedQuickStyleXml,
25010
25224
  buildForest: () => buildForest,
25011
25225
  buildGeneratedDiagramCache: () => buildGeneratedDiagramCache,
25226
+ buildOutlinePathGradientSvg: () => buildOutlinePathGradientSvg,
25012
25227
  buildRectPathGradientExactSvg: () => buildRectPathGradientExactSvg,
25013
25228
  buildRectPathGradientImage: () => buildRectPathGradientImage,
25014
25229
  buildRectPathGradientSvg: () => buildRectPathGradientSvg,
@@ -25019,6 +25234,7 @@ __export(diagram_exports, {
25019
25234
  chooseAlgorithmOfType: () => chooseAlgorithmOfType,
25020
25235
  circleNode: () => circleNode,
25021
25236
  clampByRules: () => clampByRules,
25237
+ closedSubpaths: () => closedSubpaths,
25022
25238
  collectFoldedDescendants: () => collectFoldedDescendants,
25023
25239
  collectTransitionText: () => collectTransitionText,
25024
25240
  computeDiagramDrawingBounds: () => computeDiagramDrawingBounds,
@@ -25063,6 +25279,7 @@ __export(diagram_exports, {
25063
25279
  formatDiagramSource: () => formatDiagramSource,
25064
25280
  formatXsdDouble: () => formatXsdDouble,
25065
25281
  generatedDrawingDigest: () => generatedDrawingDigest,
25282
+ gradientColorAt: () => gradientColorAt,
25066
25283
  groupedChildren: () => groupedChildren,
25067
25284
  interpretSmartArtLayout: () => interpretSmartArtLayout,
25068
25285
  isDrawableDiagramShapeView: () => isDrawableDiagramShapeView,
@@ -25159,11 +25376,13 @@ __export(diagram_exports, {
25159
25376
  ruleAttributes: () => ruleAttributes,
25160
25377
  runEngineLayout: () => runEngineLayout,
25161
25378
  runSmartArtEngine: () => runSmartArtEngine,
25379
+ scalePathAbout: () => scalePathAbout,
25162
25380
  selectArrangedNodes: () => selectArrangedNodes,
25163
25381
  selectConstraints: () => selectConstraints,
25164
25382
  setDiagramNodeStyle: () => setDiagramNodeStyle,
25165
25383
  setDiagramNodeText: () => setDiagramNodeText,
25166
25384
  setDrawingFillXml: () => setDrawingFillXml,
25385
+ shapePathGradientField: () => shapePathGradientField,
25167
25386
  smartArtChildrenOf: () => smartArtChildrenOf,
25168
25387
  structuralChooseAlgDepth: () => structuralChooseAlgDepth,
25169
25388
  styleContext: () => styleContext,
@@ -25336,24 +25555,24 @@ function isSpace2(ch) {
25336
25555
  function parseAttributes(source2) {
25337
25556
  const attrs2 = {};
25338
25557
  let i2 = 0;
25339
- const n2 = source2.length;
25340
- while (i2 < n2) {
25341
- while (i2 < n2 && !isNameChar2(source2[i2])) {
25558
+ const n3 = source2.length;
25559
+ while (i2 < n3) {
25560
+ while (i2 < n3 && !isNameChar2(source2[i2])) {
25342
25561
  i2++;
25343
25562
  }
25344
25563
  const nameStart = i2;
25345
- while (i2 < n2 && isNameChar2(source2[i2])) {
25564
+ while (i2 < n3 && isNameChar2(source2[i2])) {
25346
25565
  i2++;
25347
25566
  }
25348
25567
  const name2 = source2.slice(nameStart, i2);
25349
- while (i2 < n2 && isSpace2(source2[i2])) {
25568
+ while (i2 < n3 && isSpace2(source2[i2])) {
25350
25569
  i2++;
25351
25570
  }
25352
25571
  if (!name2 || source2[i2] !== "=") {
25353
25572
  continue;
25354
25573
  }
25355
25574
  i2++;
25356
- while (i2 < n2 && isSpace2(source2[i2])) {
25575
+ while (i2 < n3 && isSpace2(source2[i2])) {
25357
25576
  i2++;
25358
25577
  }
25359
25578
  const quote = source2[i2];
@@ -26150,12 +26369,12 @@ function cmds(src) {
26150
26369
  let i2 = 0;
26151
26370
  while (i2 < tokens.length) {
26152
26371
  const op2 = tokens[i2++];
26153
- const n2 = ARITY2[op2];
26154
- if (n2 === void 0) {
26372
+ const n3 = ARITY2[op2];
26373
+ if (n3 === void 0) {
26155
26374
  throw new Error(`Unknown path op ${op2}`);
26156
26375
  }
26157
- const a2 = tokens.slice(i2, i2 + n2);
26158
- i2 += n2;
26376
+ const a2 = tokens.slice(i2, i2 + n3);
26377
+ i2 += n3;
26159
26378
  switch (op2) {
26160
26379
  case "M":
26161
26380
  out.push({ kind: "moveTo", x: a2[0], y: a2[1] });
@@ -26268,84 +26487,22 @@ var triangle = (g3, dir) => g3.poly([
26268
26487
  [D * dir, 0],
26269
26488
  [-D * dir, D]
26270
26489
  ]);
26271
- var QUESTION = [
26272
- [-4.8, -33.7],
26273
- [-6.3, -31.5],
26274
- [-7.8, -31.5],
26275
- [-12.3, -28.5],
26276
- [-14.5, -28.5],
26277
- [-15.3, -27.7],
26278
- [-15.3, -25.5],
26279
- [-18.3, -21],
26280
- [-19, -17.2],
26281
- [-20.5, -16.5],
26282
- [-20.5, -12.7],
26283
- [-19, -12.7],
26284
- [-18.3, -14.2],
26285
- [-10.8, -14.2],
26286
- [-10, -13.5],
26287
- [-8.5, -13.5],
26288
- [-9.3, -17.2],
26289
- [-7.8, -19.5],
26290
- [-4, -22.5],
26291
- [-3.3, -21.7],
26292
- [-1.8, -21.7],
26293
- [-1, -23.2],
26294
- [0.5, -23.2],
26295
- [1.2, -21.7],
26296
- [2.7, -21.7],
26297
- [3.5, -22.5],
26298
- [8, -18.7],
26299
- [8.7, -17.2],
26300
- [8, -16.5],
26301
- [8, -15],
26302
- [9.5, -14.2],
26303
- [9.5, -13.5],
26304
- [8, -12.7],
26305
- [8.7, -9.7],
26306
- [5, -6],
26307
- [2, -6],
26308
- [-2.5, -2.2],
26309
- [-3.3, 0.8],
26310
- [-5.5, 2.3],
26311
- [-4.8, 6.8],
26312
- [-6.3, 7.5],
26313
- [-6.3, 18],
26314
- [-4.8, 18],
26315
- [-4, 17.3],
26316
- [4.2, 17.3],
26317
- [4.2, 6.8],
26318
- [6.5, 5.3],
26319
- [6.5, 3.8],
26320
- [8, 3],
26321
- [8, 1.5],
26322
- [8.7, 0.8],
26323
- [13.2, 0],
26324
- [17, -4.5],
26325
- [18.5, -4.5],
26326
- [18.5, -6],
26327
- [17.7, -6.7],
26328
- [18.5, -8.2],
26329
- [18.5, -15],
26330
- [20, -15.7],
26331
- [20, -18],
26332
- [17.7, -19.5],
26333
- [17.7, -21],
26334
- [15.5, -24.7],
26335
- [15.5, -27],
26336
- [14, -27],
26337
- [13.2, -27.7],
26338
- [13.2, -29.2],
26339
- [9.5, -30],
26340
- [8.7, -30.7],
26341
- [8.7, -32.2],
26342
- [5.7, -31.5],
26343
- [4.2, -33.7],
26344
- [2.7, -33.7],
26345
- [2, -32.2],
26346
- [-2.5, -32.2],
26347
- [-3.3, -33.7]
26348
- ];
26490
+ var U = 90;
26491
+ var question = (g3) => {
26492
+ const x = (v) => g3.x(v * U);
26493
+ const y = (v) => g3.y(v * U);
26494
+ const r = (v) => g3.len(v * U);
26495
+ return [
26496
+ `M ${x(-0.214)} ${y(-0.162)} A ${r(0.214)} ${r(0.2125)} 10800000 10800000`,
26497
+ `A ${r(0.108)} ${r(0.162)} 0 5400000`,
26498
+ `A ${r(0.053)} ${r(0.085)} 16200000 -5400000`,
26499
+ `L ${x(0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.187)} L ${x(-0.053)} ${y(0.08)}`,
26500
+ `A ${r(0.108)} ${r(0.16)} 10800000 5400000`,
26501
+ `A ${r(0.052)} ${r(0.082)} 5400000 -5400000`,
26502
+ `A ${r(0.107)} ${r(0.1065)} 0 -10800000`,
26503
+ `L ${x(-0.214)} ${y(-0.162)} Z`
26504
+ ].join(" ");
26505
+ };
26349
26506
  var MOVIE = [
26350
26507
  [-33.75, -16.5],
26351
26508
  [-33.75, -3],
@@ -26452,8 +26609,8 @@ var buttons = {
26452
26609
  )
26453
26610
  ]),
26454
26611
  actionButtonHelp: build("actionButtonHelp", (g3) => [
26455
- darken(g3.poly(QUESTION)),
26456
- darken(g3.circle(-0.2, 27.4, 7))
26612
+ darken(question(g3)),
26613
+ darken(g3.circle(0, 0.295 * U, 0.08 * U))
26457
26614
  ]),
26458
26615
  actionButtonInformation: build("actionButtonInformation", (g3) => [
26459
26616
  darken(g3.circle(0, 0.4, 34)),
@@ -29776,12 +29933,46 @@ var leftRightUpArrow2 = exactDef(
29776
29933
  )
29777
29934
  ]
29778
29935
  );
29936
+ var swooshArrow3 = exactDef(
29937
+ "swooshArrow",
29938
+ { adj1: 25e3, adj2: 16667 },
29939
+ [
29940
+ "a1 pin 1 adj1 75000",
29941
+ "maxAdj2 */ 70000 w ss",
29942
+ "a2 pin 0 adj2 maxAdj2",
29943
+ "ad1 */ h a1 100000",
29944
+ "ad2 */ ss a2 100000",
29945
+ "xB +- r 0 ad2",
29946
+ "yB +- t ssd8 0",
29947
+ "alfa */ cd4 1 14",
29948
+ "dx0 tan ssd8 alfa",
29949
+ "xC +- xB 0 dx0",
29950
+ "dx1 tan ad1 alfa",
29951
+ "yF +- yB ad1 0",
29952
+ "xF +- xB dx1 0",
29953
+ "xE +- xF dx0 0",
29954
+ "yE +- yF ssd8 0",
29955
+ "dy2 +- yE 0 t",
29956
+ "dy22 */ dy2 1 2",
29957
+ "dy3 */ h 1 20",
29958
+ "yD +- dy22 0 dy3",
29959
+ "dy4 */ hd6 1 1",
29960
+ "yP1 +- hd6 dy4 0",
29961
+ "xP1 val wd6",
29962
+ "dy5 */ hd6 1 2",
29963
+ "yP2 +- yF dy5 0",
29964
+ "xP2 val wd4"
29965
+ ],
29966
+ "l t r b",
29967
+ [p("M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z")]
29968
+ );
29779
29969
  var EXACT_ARROW_PRESET_DEFINITIONS = {
29780
29970
  leftRightArrow: leftRightArrow2,
29781
29971
  upDownArrow: upDownArrow2,
29782
29972
  quadArrow: quadArrow2,
29783
29973
  leftUpArrow: leftUpArrow2,
29784
- leftRightUpArrow: leftRightUpArrow2
29974
+ leftRightUpArrow: leftRightUpArrow2,
29975
+ swooshArrow: swooshArrow3
29785
29976
  };
29786
29977
 
29787
29978
  // geometry/preset-shape-definitions-exact-circular.ts
@@ -29803,32 +29994,32 @@ function onEllipse(name2, rw, rh, ang) {
29803
29994
  `${name2}y +- vc ${name2}dy 0`
29804
29995
  ];
29805
29996
  }
29806
- function head(n2, baseAng, tipAng) {
29997
+ function head(n3, baseAng, tipAng) {
29807
29998
  const out = [
29808
- ...onEllipse(`${n2}H`, "rw3", "rh3", baseAng),
29809
- ...onEllipse(`${n2}A`, "rw3", "rh3", tipAng),
29810
- `${n2}Gdx cos thh ${tipAng}`,
29811
- `${n2}Gdy sin thh ${tipAng}`,
29812
- `${n2}Gx +- ${n2}Hx ${n2}Gdx 0`,
29813
- `${n2}Gy +- ${n2}Hy ${n2}Gdy 0`,
29814
- `${n2}Bx +- ${n2}Hx 0 ${n2}Gdx`,
29815
- `${n2}By +- ${n2}Hy 0 ${n2}Gdy`,
29816
- `${n2}sx1 +- ${n2}Bx 0 hc`,
29817
- `${n2}sy1 +- ${n2}By 0 vc`,
29818
- `${n2}sx2 +- ${n2}Gx 0 hc`,
29819
- `${n2}sy2 +- ${n2}Gy 0 vc`
29999
+ ...onEllipse(`${n3}H`, "rw3", "rh3", baseAng),
30000
+ ...onEllipse(`${n3}A`, "rw3", "rh3", tipAng),
30001
+ `${n3}Gdx cos thh ${tipAng}`,
30002
+ `${n3}Gdy sin thh ${tipAng}`,
30003
+ `${n3}Gx +- ${n3}Hx ${n3}Gdx 0`,
30004
+ `${n3}Gy +- ${n3}Hy ${n3}Gdy 0`,
30005
+ `${n3}Bx +- ${n3}Hx 0 ${n3}Gdx`,
30006
+ `${n3}By +- ${n3}Hy 0 ${n3}Gdy`,
30007
+ `${n3}sx1 +- ${n3}Bx 0 hc`,
30008
+ `${n3}sy1 +- ${n3}By 0 vc`,
30009
+ `${n3}sx2 +- ${n3}Gx 0 hc`,
30010
+ `${n3}sy2 +- ${n3}Gy 0 vc`
29820
30011
  ];
29821
30012
  for (const [k, rw, rh] of [
29822
30013
  ["F", "rw1", "rh1"],
29823
30014
  ["D", "rw2", "rh2"]
29824
30015
  ]) {
29825
- const m = `${n2}${k}`;
30016
+ const m = `${n3}${k}`;
29826
30017
  out.push(
29827
30018
  `${m}r min ${rw} ${rh}`,
29828
- `${m}x1 */ ${n2}sx1 ${m}r ${rw}`,
29829
- `${m}y1 */ ${n2}sy1 ${m}r ${rh}`,
29830
- `${m}x2 */ ${n2}sx2 ${m}r ${rw}`,
29831
- `${m}y2 */ ${n2}sy2 ${m}r ${rh}`,
30019
+ `${m}x1 */ ${n3}sx1 ${m}r ${rw}`,
30020
+ `${m}y1 */ ${n3}sy1 ${m}r ${rh}`,
30021
+ `${m}x2 */ ${n3}sx2 ${m}r ${rw}`,
30022
+ `${m}y2 */ ${n3}sy2 ${m}r ${rh}`,
29832
30023
  `${m}ex +- ${m}x2 0 ${m}x1`,
29833
30024
  `${m}ey +- ${m}y2 0 ${m}y1`,
29834
30025
  `${m}len mod ${m}ex ${m}ey 0`,
@@ -29882,7 +30073,7 @@ var BASE = [
29882
30073
  "tAng at2 rI tq",
29883
30074
  "hAng at2 Hdx Hdy"
29884
30075
  ];
29885
- var headPath = (n2) => `L ${n2}Gx ${n2}Gy L ${n2}Ax ${n2}Ay L ${n2}Bx ${n2}By L ${n2}DX ${n2}DY`;
30076
+ var headPath = (n3) => `L ${n3}Gx ${n3}Gy L ${n3}Ax ${n3}Ay L ${n3}Bx ${n3}By L ${n3}DX ${n3}DY`;
29886
30077
  var circularArrow3 = exactDef(
29887
30078
  "circularArrow",
29888
30079
  { adj1: 12500, adj2: 1142319, adj3: 20457681, adj4: 108e5, adj5: 12500 },
@@ -30501,19 +30692,19 @@ var EXACT_MISC_PRESET_DEFINITIONS = {
30501
30692
  };
30502
30693
 
30503
30694
  // geometry/preset-shape-definitions-exact-funnel.ts
30504
- function newton(m, n2) {
30695
+ function newton(m, n3) {
30505
30696
  return [
30506
- `${n2}b1 */ ${m} b1 1`,
30507
- `${n2}b2 */ ${m} b2 1`,
30508
- `${n2}s1 mod a1 ${n2}b1 0`,
30509
- `${n2}s2 mod a2 ${n2}b2 0`,
30510
- `${n2}m1 */ ${m} dY 1`,
30511
- `${n2}f0 +- ${n2}m1 ${n2}s2 ${n2}s1`,
30512
- `${n2}t1 */ ${n2}b1 b1 ${n2}s1`,
30513
- `${n2}t2 */ ${n2}b2 b2 ${n2}s2`,
30514
- `${n2}d0 +- dY ${n2}t2 ${n2}t1`,
30515
- `${n2}d1 */ ${n2}f0 1 ${n2}d0`,
30516
- `${n2} +- ${m} 0 ${n2}d1`
30697
+ `${n3}b1 */ ${m} b1 1`,
30698
+ `${n3}b2 */ ${m} b2 1`,
30699
+ `${n3}s1 mod a1 ${n3}b1 0`,
30700
+ `${n3}s2 mod a2 ${n3}b2 0`,
30701
+ `${n3}m1 */ ${m} dY 1`,
30702
+ `${n3}f0 +- ${n3}m1 ${n3}s2 ${n3}s1`,
30703
+ `${n3}t1 */ ${n3}b1 b1 ${n3}s1`,
30704
+ `${n3}t2 */ ${n3}b2 b2 ${n3}s2`,
30705
+ `${n3}d0 +- dY ${n3}t2 ${n3}t1`,
30706
+ `${n3}d1 */ ${n3}f0 1 ${n3}d0`,
30707
+ `${n3} +- ${m} 0 ${n3}d1`
30517
30708
  ];
30518
30709
  }
30519
30710
  var STEPS = ["mA", "mB", "mC", "mD", "mE", "mF"];
@@ -30530,7 +30721,7 @@ var funnel = exactDef(
30530
30721
  "a1m +- a1 0 a2",
30531
30722
  "m0 */ a1m 1 dY",
30532
30723
  ...newton("m0", "mA"),
30533
- ...STEPS.slice(1).flatMap((n2, i2) => newton(STEPS[i2], n2)),
30724
+ ...STEPS.slice(1).flatMap((n3, i2) => newton(STEPS[i2], n3)),
30534
30725
  "mb1 */ mF b1 1",
30535
30726
  "mb2 */ mF b2 1",
30536
30727
  "phi1 at2 a1 mb1",
@@ -30587,10 +30778,13 @@ var verticalScroll = exactDef(
30587
30778
  p(
30588
30779
  "M ch ch2 A ch2 ch2 10800000 5400000 L x6 t A ch2 ch2 16200000 10800000 L x4 ch L x4 y4 A ch2 ch2 0 5400000 L ch2 b A ch2 ch2 5400000 10800000 L ch y3 Z"
30589
30780
  ),
30590
- p("M l y4 A ch2 ch2 10800000 21600000 Z M xsw cy3 A ch4 ch4 0 21600000 Z", {
30591
- fill: "darkenLess",
30592
- stroke: false
30593
- }),
30781
+ p(
30782
+ "M ch y4 A ch2 ch2 0 5400000 A ch2 ch2 5400000 10800000 A ch4 ch4 16200000 10800000 Z M x3b ch2 A ch2 ch2 0 5400000 A ch4 ch4 5400000 10800000 Z",
30783
+ {
30784
+ fill: "darkenLess",
30785
+ stroke: false
30786
+ }
30787
+ ),
30594
30788
  p(
30595
30789
  "M x3 t A ch2 ch2 16200000 10800000 L x4 ch M ch2 y4 L ch y4 M x3b ch2 L x3 ch2 A ch4 ch4 16200000 -10800000",
30596
30790
  { fill: "none" }
@@ -30606,10 +30800,13 @@ var horizontalScroll = exactDef(
30606
30800
  p(
30607
30801
  "M ch2 ch A ch2 ch2 16200000 -5400000 L l x6 A ch2 ch2 10800000 -10800000 L ch x4 L y4 x4 A ch2 ch2 5400000 -5400000 L r ch2 A ch2 ch2 0 -10800000 L y3 ch Z"
30608
30802
  ),
30609
- p("M y4 t A ch2 ch2 16200000 21600000 Z M ch cyw A ch4 ch4 0 21600000 Z", {
30610
- fill: "darkenLess",
30611
- stroke: false
30612
- }),
30803
+ p(
30804
+ "M y4 ch A ch2 ch2 5400000 -5400000 A ch2 ch2 0 -10800000 A ch4 ch4 10800000 -10800000 Z M ch2 x3b A ch2 ch2 5400000 -5400000 A ch4 ch4 0 -10800000 Z",
30805
+ {
30806
+ fill: "darkenLess",
30807
+ stroke: false
30808
+ }
30809
+ ),
30613
30810
  p(
30614
30811
  "M l x3 A ch2 ch2 10800000 -10800000 L ch x4 M y4 ch2 L y4 ch M ch2 x3b L ch2 x3 A ch4 ch4 10800000 10800000",
30615
30812
  { fill: "none" }
@@ -30665,11 +30862,11 @@ var EXACT_LEFT_RIGHT_RIBBON_PRESET_DEFINITIONS = { leftRightRibbon };
30665
30862
 
30666
30863
  // geometry/preset-shape-definitions-exact-ellipse-ribbons.ts
30667
30864
  var AV = { adj1: 25e3, adj2: 5e4, adj3: 12500 };
30668
- function para(n2, x) {
30669
- return [`${n2}q */ ${x} ${x} w`, `${n2}r +- ${x} 0 ${n2}q`, `${n2} */ f1 ${n2}r 1`];
30865
+ function para(n3, x) {
30866
+ return [`${n3}q */ ${x} ${x} w`, `${n3}r +- ${x} 0 ${n3}q`, `${n3} */ f1 ${n3}r 1`];
30670
30867
  }
30671
30868
  function build2(name2, flip) {
30672
- const y = (n2, off) => flip ? `${n2} +- b 0 ${off}` : `${n2} +- t ${off} 0`;
30869
+ const y = (n3, off) => flip ? `${n3} +- b 0 ${off}` : `${n3} +- t ${off} 0`;
30673
30870
  const gd17 = [
30674
30871
  "a1 pin 0 adj1 100000",
30675
30872
  "a2 pin 25000 adj2 75000",
@@ -31802,8 +31999,8 @@ function ray(baseX1, baseY1, baseX2, baseY2, apexX, apexY) {
31802
31999
  ]
31803
32000
  };
31804
32001
  }
31805
- function starTrigTable(n2) {
31806
- const total = n2 * 2;
32002
+ function starTrigTable(n3) {
32003
+ const total = n3 * 2;
31807
32004
  const step = Math.PI * 2 / total;
31808
32005
  const start = -Math.PI / 2;
31809
32006
  const result = [];
@@ -31816,8 +32013,8 @@ function starTrigTable(n2) {
31816
32013
  }
31817
32014
  return result;
31818
32015
  }
31819
- function buildStarN(n2, defaultAdj, hf, vf) {
31820
- const trig = starTrigTable(n2);
32016
+ function buildStarN(n3, defaultAdj, hf, vf) {
32017
+ const trig = starTrigTable(n3);
31821
32018
  const gdLst = [
31822
32019
  gd9("a", `pin 0 adj 50000`),
31823
32020
  gd9("swd2", hf === void 0 ? "*/ wd2 1 1" : "*/ wd2 hf 100000"),
@@ -31842,7 +32039,7 @@ function buildStarN(n2, defaultAdj, hf, vf) {
31842
32039
  }
31843
32040
  commands.push({ kind: "close" });
31844
32041
  return {
31845
- name: `star${n2}`,
32042
+ name: `star${n3}`,
31846
32043
  avLst: {
31847
32044
  adj: defaultAdj,
31848
32045
  ...hf === void 0 ? {} : { hf },
@@ -38515,7 +38712,7 @@ function fontRule(node) {
38515
38712
  }
38516
38713
  function hasFontLength(node) {
38517
38714
  return flattenEngineTree(node).some(
38518
- (n2) => n2.constraints.some((c2) => LENGTHS.has(c2.type) && FONT_TYPES.has(c2.refType))
38715
+ (n3) => n3.constraints.some((c2) => LENGTHS.has(c2.type) && FONT_TYPES.has(c2.refType))
38519
38716
  );
38520
38717
  }
38521
38718
  function fontSearchPlan(node) {
@@ -38547,17 +38744,17 @@ function fits(node, context) {
38547
38744
  if (!box) {
38548
38745
  return true;
38549
38746
  }
38550
- for (const n2 of flattenEngineTree(node)) {
38551
- const b = n2.box;
38552
- if (!b || n2.alg.type === "conn" || !(b.w > 0) || !(b.h > 0)) {
38747
+ for (const n3 of flattenEngineTree(node)) {
38748
+ const b = n3.box;
38749
+ if (!b || n3.alg.type === "conn" || !(b.w > 0) || !(b.h > 0)) {
38553
38750
  continue;
38554
38751
  }
38555
38752
  if (b.x < box.x - SPILL_TOLERANCE_PT || b.y < box.y - SPILL_TOLERANCE_PT || b.x + b.w > box.x + box.w + SPILL_TOLERANCE_PT || b.y + b.h > box.y + box.h + SPILL_TOLERANCE_PT) {
38556
38753
  return false;
38557
38754
  }
38558
- const font = layoutFontOf(n2);
38559
- const text3 = font === void 0 ? void 0 : context.textOf(n2);
38560
- if (font !== void 0 && text3 && !textFitsAt(n2, text3, font, context.metrics, layoutFontOf)) {
38755
+ const font = layoutFontOf(n3);
38756
+ const text3 = font === void 0 ? void 0 : context.textOf(n3);
38757
+ if (font !== void 0 && text3 && !textFitsAt(n3, text3, font, context.metrics, layoutFontOf)) {
38561
38758
  return false;
38562
38759
  }
38563
38760
  }
@@ -38565,14 +38762,14 @@ function fits(node, context) {
38565
38762
  }
38566
38763
  function recordGrowth(node) {
38567
38764
  const nodes = flattenEngineTree(node);
38568
- for (const n2 of nodes) {
38569
- const grown2 = n2.box?.h;
38570
- if (grown2 !== void 0 && canGrow(n2, "h") && grown2 > (n2.growFloor?.h ?? -Infinity)) {
38571
- n2.growFloor = { ...n2.growFloor, h: grown2 };
38765
+ for (const n3 of nodes) {
38766
+ const grown2 = n3.box?.h;
38767
+ if (grown2 !== void 0 && canGrow(n3, "h") && grown2 > (n3.growFloor?.h ?? -Infinity)) {
38768
+ n3.growFloor = { ...n3.growFloor, h: grown2 };
38572
38769
  }
38573
38770
  }
38574
- for (const n2 of nodes) {
38575
- for (const group2 of n2.groups) {
38771
+ for (const n3 of nodes) {
38772
+ for (const group2 of n3.groups) {
38576
38773
  if (group2.type !== "h" && group2.type !== "w") {
38577
38774
  continue;
38578
38775
  }
@@ -38589,11 +38786,11 @@ function recordGrowth(node) {
38589
38786
  }
38590
38787
  }
38591
38788
  function resetCandidate(node) {
38592
- for (const n2 of flattenEngineTree(node)) {
38593
- n2.growFloor = void 0;
38594
- if (n2 !== node) {
38595
- n2.minValues.clear();
38596
- n2.maxValues.clear();
38789
+ for (const n3 of flattenEngineTree(node)) {
38790
+ n3.growFloor = void 0;
38791
+ if (n3 !== node) {
38792
+ n3.minValues.clear();
38793
+ n3.maxValues.clear();
38597
38794
  }
38598
38795
  }
38599
38796
  }
@@ -39361,10 +39558,10 @@ function arrangeCycle(node) {
39361
39558
  }
39362
39559
  const params = node.alg.params;
39363
39560
  const hub = params.ctrShpMap === "fNode" ? groups.shift() : void 0;
39364
- const n2 = groups.length;
39561
+ const n3 = groups.length;
39365
39562
  const cx0 = box.x + box.w / 2;
39366
39563
  const cy0 = box.y + box.h / 2;
39367
- if (n2 === 0) {
39564
+ if (n3 === 0) {
39368
39565
  if (hub) {
39369
39566
  placeGroup(hub, box.x, box.y, box.w, box.h);
39370
39567
  }
@@ -39377,7 +39574,7 @@ function arrangeCycle(node) {
39377
39574
  const parsedSpan = Number(params.spanAng);
39378
39575
  const spanAng = Number.isFinite(parsedSpan) ? parsedSpan : 360;
39379
39576
  const rotPath = params.rotPath === "alongPath";
39380
- if (n2 === 1) {
39577
+ if (n3 === 1) {
39381
39578
  const w0 = box.w;
39382
39579
  const h0 = Math.min(box.h, box.w * heightOverWidth);
39383
39580
  placeGroupCentered(groups[0], cx0, cy0, w0, h0);
@@ -39391,7 +39588,7 @@ function arrangeCycle(node) {
39391
39588
  return;
39392
39589
  }
39393
39590
  const full = Math.abs(spanAng) >= 360;
39394
- const step = full ? spanAng / n2 : spanAng / (n2 - 1);
39591
+ const step = full ? spanAng / n3 : spanAng / (n3 - 1);
39395
39592
  const halfStepRad = Math.abs(step) * DEG_TO_RAD / 2;
39396
39593
  const sinHalf = Math.sin(halfStepRad);
39397
39594
  const r0 = sinHalf > 1e-6 ? (1 + gap) / (2 * sinHalf) : 0;
@@ -39930,8 +40127,8 @@ function sanitizeLvlNode(lvlNode) {
39930
40127
  function arrangePyra(node) {
39931
40128
  const box = node.box;
39932
40129
  const children2 = contentChildren(node);
39933
- const n2 = children2.length;
39934
- if (!box || n2 === 0) {
40130
+ const n3 = children2.length;
40131
+ if (!box || n3 === 0) {
39935
40132
  return;
39936
40133
  }
39937
40134
  const lvlNodeName = node.alg.params.pyraLvlNode ?? "level";
@@ -39943,12 +40140,12 @@ function arrangePyra(node) {
39943
40140
  }
39944
40141
  const inverted = node.alg.params.linDir === "fromT";
39945
40142
  const gap = Math.max(0, node.values.get("sibSp") ?? node.values.get("sp") ?? 0);
39946
- const bandH = Math.max(0, (box.h - gap * (n2 - 1)) / n2);
40143
+ const bandH = Math.max(0, (box.h - gap * (n3 - 1)) / n3);
39947
40144
  const bandCx = box.x + box.w / 2;
39948
40145
  children2.forEach((child6, i2) => {
39949
40146
  const top = box.y + i2 * (bandH + gap);
39950
- const effectiveI = inverted ? n2 - 1 - i2 : i2;
39951
- const halfWide = box.w * (effectiveI + 1) / n2 / 2;
40147
+ const effectiveI = inverted ? n3 - 1 - i2 : i2;
40148
+ const halfWide = box.w * (effectiveI + 1) / n3 / 2;
39952
40149
  child6.box = { x: bandCx - halfWide, y: top, w: halfWide * 2, h: bandH };
39953
40150
  });
39954
40151
  }
@@ -39966,7 +40163,7 @@ function applyPyraAccentSplit(node) {
39966
40163
  const txName = node.alg.params.pyraAcctTxNode ?? "acctTx";
39967
40164
  const inverted = node.alg.params.linDir === "fromT";
39968
40165
  const items = contentChildren(node);
39969
- const n2 = items.length;
40166
+ const n3 = items.length;
39970
40167
  const bandCx = box.x + box.w / 2;
39971
40168
  items.forEach((item2, i2) => {
39972
40169
  const itemBox = item2.box;
@@ -39994,8 +40191,8 @@ function applyPyraAccentSplit(node) {
39994
40191
  h: descendant.box.h
39995
40192
  };
39996
40193
  }
39997
- const effectiveI = inverted ? n2 - 1 - i2 : i2;
39998
- const halfNarrow = box.w * effectiveI / n2 / 2;
40194
+ const effectiveI = inverted ? n3 - 1 - i2 : i2;
40195
+ const halfNarrow = box.w * effectiveI / n3 / 2;
39999
40196
  const accentLeft = scaleFromAnchor(bandCx + halfNarrow, box.x, scale);
40000
40197
  const accentRight = box.x + box.w;
40001
40198
  for (const root of accentRoots) {
@@ -40065,8 +40262,8 @@ function measure3(node, box, cells, spacer, row2) {
40065
40262
  );
40066
40263
  return { cellW, cellH, along, across, cols };
40067
40264
  }
40068
- function fits2(fit2, n2, box, row2) {
40069
- const lines2 = Math.ceil(n2 / fit2.cols);
40265
+ function fits2(fit2, n3, box, row2) {
40266
+ const lines2 = Math.ceil(n3 / fit2.cols);
40070
40267
  const lineLen = fit2.cols * (row2 ? fit2.cellW : fit2.cellH) + (fit2.cols - 1) * fit2.along;
40071
40268
  const across = lines2 * (row2 ? fit2.cellH : fit2.cellW) + (lines2 - 1) * fit2.across;
40072
40269
  return row2 ? lineLen <= box.w + 1e-6 && across <= box.h + 1e-6 : lineLen <= box.h + 1e-6 && across <= box.w + 1e-6;
@@ -40146,19 +40343,19 @@ function gridSize(dims, m, row2) {
40146
40343
  const acrossLen = lines2 * (row2 ? m.cellH : m.cellW) + (lines2 - 1) * m.across;
40147
40344
  return row2 ? { w: alongLen, h: acrossLen } : { w: acrossLen, h: alongLen };
40148
40345
  }
40149
- function dimsFor(lineLen, n2, row2) {
40150
- const lines2 = Math.max(1, Math.ceil(n2 / lineLen));
40346
+ function dimsFor(lineLen, n3, row2) {
40347
+ const lines2 = Math.max(1, Math.ceil(n3 / lineLen));
40151
40348
  return row2 ? { cols: lineLen, rows: lines2 } : { cols: lines2, rows: lineLen };
40152
40349
  }
40153
- function chooseDims(node, n2, m, box, row2) {
40350
+ function chooseDims(node, n3, m, box, row2) {
40154
40351
  const fixed = node.values.get("bkPtFixedVal") ?? Number(node.alg.params.bkPtFixedVal);
40155
40352
  if (node.alg.params.bkpt === "fixed" && Number.isFinite(fixed) && fixed > 0) {
40156
- return dimsFor(Math.min(n2, Math.round(fixed)), n2, row2);
40353
+ return dimsFor(Math.min(n3, Math.round(fixed)), n3, row2);
40157
40354
  }
40158
- let best = dimsFor(n2, n2, row2);
40355
+ let best = dimsFor(n3, n3, row2);
40159
40356
  let bestScale = -Infinity;
40160
- for (let lineLen = n2; lineLen >= 1; lineLen--) {
40161
- const dims = dimsFor(lineLen, n2, row2);
40357
+ for (let lineLen = n3; lineLen >= 1; lineLen--) {
40358
+ const dims = dimsFor(lineLen, n3, row2);
40162
40359
  const size = gridSize(dims, m, row2);
40163
40360
  const scale = Math.min(box.w / Math.max(1e-9, size.w), box.h / Math.max(1e-9, size.h));
40164
40361
  if (scale > bestScale + 1e-9) {
@@ -40168,7 +40365,7 @@ function chooseDims(node, n2, m, box, row2) {
40168
40365
  }
40169
40366
  if (node.alg.params.bkpt === "bal") {
40170
40367
  const lines2 = row2 ? best.rows : best.cols;
40171
- return dimsFor(Math.ceil(n2 / lines2), n2, row2);
40368
+ return dimsFor(Math.ceil(n3 / lines2), n3, row2);
40172
40369
  }
40173
40370
  return best;
40174
40371
  }
@@ -40195,8 +40392,8 @@ function arrangeSnake(node) {
40195
40392
  if (!(m.cellW > 0) || !(m.cellH > 0)) {
40196
40393
  return;
40197
40394
  }
40198
- const n2 = cells.length;
40199
- const dims = ruled ? dimsFor(ruled.cols, n2, row2) : chooseDims(node, n2, m, box, row2);
40395
+ const n3 = cells.length;
40396
+ const dims = ruled ? dimsFor(ruled.cols, n3, row2) : chooseDims(node, n3, m, box, row2);
40200
40397
  const size = gridSize(dims, m, row2);
40201
40398
  const scale = Math.min(1, box.w / size.w, box.h / size.h);
40202
40399
  const cw = m.cellW * scale;
@@ -40212,7 +40409,7 @@ function arrangeSnake(node) {
40212
40409
  const reverseAlternate = params.contDir === "revDir";
40213
40410
  cells.forEach((cell2, i2) => {
40214
40411
  const line4 = Math.floor(i2 / lineLen);
40215
- const inLine = Math.min(lineLen, n2 - line4 * lineLen);
40412
+ const inLine = Math.min(lineLen, n3 - line4 * lineLen);
40216
40413
  const reversedLine = reverseAlternate && line4 % 2 === 1;
40217
40414
  const pos = reversedLine ? lineLen - 1 - i2 % lineLen : i2 % lineLen;
40218
40415
  const centre = params.off === "ctr" ? (lineLen - inLine) / 2 : 0;
@@ -40512,9 +40709,9 @@ function allNodes(entries) {
40512
40709
  roots2.add(top);
40513
40710
  }
40514
40711
  const out = [];
40515
- const visit = (n2) => {
40516
- out.push(n2);
40517
- n2.children.forEach(visit);
40712
+ const visit = (n3) => {
40713
+ out.push(n3);
40714
+ n3.children.forEach(visit);
40518
40715
  };
40519
40716
  roots2.forEach(visit);
40520
40717
  return out;
@@ -40783,7 +40980,7 @@ function isRenderable(node, presented, literalText) {
40783
40980
  if (literalText && literalText.trim().length > 0) {
40784
40981
  return true;
40785
40982
  }
40786
- return presented.some((n2) => (n2?.text ?? "").trim().length > 0);
40983
+ return presented.some((n3) => (n3?.text ?? "").trim().length > 0);
40787
40984
  }
40788
40985
 
40789
40986
  // diagram/engine/engine-to-result.ts
@@ -40904,7 +41101,7 @@ function runEngineLayout(smartArtData, containerBounds, nodes, palette, style) {
40904
41101
  if (!rawXmlText || !(widthPt > 0) || !(heightPt > 0)) {
40905
41102
  return void 0;
40906
41103
  }
40907
- const nodeById = new Map(nodes.map((n2) => [n2.id, n2]));
41104
+ const nodeById = new Map(nodes.map((n3) => [n3.id, n3]));
40908
41105
  const metrics = textMetricsFor(resolveFontTable(smartArtData.themeMinorFont));
40909
41106
  const context = {
40910
41107
  textOf: (node) => nodeTextFor(node, sourceIdsOf(node), transitionLabelOf(node), nodeById),
@@ -41447,11 +41644,11 @@ function navigateAxisHop(current, axis, nodes, childrenOf, parentOf, roots2) {
41447
41644
  }
41448
41645
  const excluded = new Set(
41449
41646
  (axis === "follow" ? descendantsOf(node, childrenOf) : ancestorsOf(node, parentOf)).map(
41450
- (n2) => n2.id
41647
+ (n3) => n3.id
41451
41648
  )
41452
41649
  );
41453
41650
  const range2 = axis === "follow" ? nodes.slice(docIndex + 1) : nodes.slice(0, docIndex);
41454
- addAll(range2.filter((n2) => !excluded.has(n2.id)));
41651
+ addAll(range2.filter((n3) => !excluded.has(n3.id)));
41455
41652
  break;
41456
41653
  }
41457
41654
  case "root": {
@@ -41483,7 +41680,7 @@ function selectRange(nodes, start, count) {
41483
41680
  return nodes.slice(zeroBasedStart, zeroBasedStart + take);
41484
41681
  }
41485
41682
  function applyPointTypeAndRange(nodes, pointType2, start, count) {
41486
- const filtered = pointType2 ? nodes.filter((n2) => pointTypeMatches(n2, pointType2)) : nodes;
41683
+ const filtered = pointType2 ? nodes.filter((n3) => pointTypeMatches(n3, pointType2)) : nodes;
41487
41684
  return selectRange(filtered, start, count);
41488
41685
  }
41489
41686
  function resolveAxisNodes(nodes, axis, pointTypes, start, count, context) {
@@ -41497,7 +41694,7 @@ function resolveAxisNodes(nodes, axis, pointTypes, start, count, context) {
41497
41694
  if (axis[0] === "root" && axis.length > 1 && axis[1] !== "ch") {
41498
41695
  return void 0;
41499
41696
  }
41500
- const byId = new Map(nodes.map((n2) => [n2.id, n2]));
41697
+ const byId = new Map(nodes.map((n3) => [n3.id, n3]));
41501
41698
  const childrenOf = /* @__PURE__ */ new Map();
41502
41699
  const parentOf = /* @__PURE__ */ new Map();
41503
41700
  for (const node of nodes) {
@@ -41512,7 +41709,7 @@ function resolveAxisNodes(nodes, axis, pointTypes, start, count, context) {
41512
41709
  }
41513
41710
  }
41514
41711
  }
41515
- const roots2 = nodes.filter((n2) => !n2.parentId || !byId.has(n2.parentId));
41712
+ const roots2 = nodes.filter((n3) => !n3.parentId || !byId.has(n3.parentId));
41516
41713
  let current;
41517
41714
  let nextHop;
41518
41715
  if (axis[0] === "root" && axis.length > 1) {
@@ -41569,7 +41766,7 @@ function resolveAxisMaxDepth(nodes, axis, pointTypes, start, count, anchor) {
41569
41766
  if (anchor.length === 0) {
41570
41767
  return void 0;
41571
41768
  }
41572
- const byId = new Map(nodes.map((n2) => [n2.id, n2]));
41769
+ const byId = new Map(nodes.map((n3) => [n3.id, n3]));
41573
41770
  let max = 0;
41574
41771
  for (const anchorPoint of anchor) {
41575
41772
  const resolved = resolveAxisNodes(nodes, axis, pointTypes, start, count, [anchorPoint]);
@@ -42750,14 +42947,14 @@ function selectArrangedNodes(node, flat, roots2) {
42750
42947
  // diagram/layout/smartart-tree.ts
42751
42948
  function buildForest(nodes) {
42752
42949
  const map = /* @__PURE__ */ new Map();
42753
- for (const n2 of nodes) {
42754
- map.set(n2.id, { node: n2, children: [] });
42950
+ for (const n3 of nodes) {
42951
+ map.set(n3.id, { node: n3, children: [] });
42755
42952
  }
42756
42953
  const roots2 = [];
42757
- for (const n2 of nodes) {
42758
- const tn = map.get(n2.id);
42759
- if (n2.parentId && map.has(n2.parentId)) {
42760
- map.get(n2.parentId).children.push(tn);
42954
+ for (const n3 of nodes) {
42955
+ const tn = map.get(n3.id);
42956
+ if (n3.parentId && map.has(n3.parentId)) {
42957
+ map.get(n3.parentId).children.push(tn);
42761
42958
  } else {
42762
42959
  roots2.push(tn);
42763
42960
  }
@@ -42765,16 +42962,16 @@ function buildForest(nodes) {
42765
42962
  return roots2;
42766
42963
  }
42767
42964
  function buildTree(nodes) {
42768
- const hasNestedChildren = nodes.some((n2) => n2.children !== void 0 && n2.children.length > 0);
42965
+ const hasNestedChildren = nodes.some((n3) => n3.children !== void 0 && n3.children.length > 0);
42769
42966
  if (!hasNestedChildren) {
42770
42967
  return buildForest(nodes);
42771
42968
  }
42772
- const toTreeNode = (n2) => ({
42773
- node: n2,
42774
- children: (n2.children ?? []).map(toTreeNode)
42969
+ const toTreeNode = (n3) => ({
42970
+ node: n3,
42971
+ children: (n3.children ?? []).map(toTreeNode)
42775
42972
  });
42776
- const allIds = new Set(nodes.map((n2) => n2.id));
42777
- const roots2 = nodes.filter((n2) => !n2.parentId || !allIds.has(n2.parentId));
42973
+ const allIds = new Set(nodes.map((n3) => n3.id));
42974
+ const roots2 = nodes.filter((n3) => !n3.parentId || !allIds.has(n3.parentId));
42778
42975
  return roots2.map(toTreeNode);
42779
42976
  }
42780
42977
  var MAX_TREE_DEPTH = 256;
@@ -43435,10 +43632,10 @@ function buildCycleHubBox(hubNode, ring, totalNodeCount, inputs, hubFontFit) {
43435
43632
  }
43436
43633
 
43437
43634
  // diagram/layout/smartart-layout-interpreter-cycle-connectors.ts
43438
- function buildCycleRingConnectors(ring, n2, connectorCount, ringCentre, elementId) {
43635
+ function buildCycleRingConnectors(ring, n3, connectorCount, ringCentre, elementId) {
43439
43636
  return Array.from({ length: connectorCount }, (_, i2) => {
43440
43637
  const from = ring.centers[i2];
43441
- const to = ring.centers[(i2 + 1) % n2];
43638
+ const to = ring.centers[(i2 + 1) % n3];
43442
43639
  const midX = (from.x + to.x) / 2;
43443
43640
  const midY = (from.y + to.y) / 2;
43444
43641
  const pullRadius = Math.max(ring.nodeWidth, ring.nodeHeight) / 2;
@@ -43993,9 +44190,9 @@ function resolveRingAxisOffset(dimension2, boundSize, scale, values) {
43993
44190
 
43994
44191
  // diagram/layout/smartart-layout-interpreter-cycle-ring.ts
43995
44192
  var DEG_TO_RAD4 = Math.PI / 180;
43996
- function degenerateRingLayout(n2, heightOverWidth, box) {
44193
+ function degenerateRingLayout(n3, heightOverWidth, box) {
43997
44194
  const boxCentre = { x: box.width / 2, y: box.height / 2 };
43998
- if (n2 <= 0) {
44195
+ if (n3 <= 0) {
43999
44196
  return {
44000
44197
  centers: [],
44001
44198
  nodeWidth: 0,
@@ -44005,7 +44202,7 @@ function degenerateRingLayout(n2, heightOverWidth, box) {
44005
44202
  hubHalfHeight: 0
44006
44203
  };
44007
44204
  }
44008
- if (n2 === 1) {
44205
+ if (n3 === 1) {
44009
44206
  const w0 = box.width;
44010
44207
  const h0 = Math.min(box.height, box.width * Math.max(0.01, heightOverWidth));
44011
44208
  return {
@@ -44019,8 +44216,8 @@ function degenerateRingLayout(n2, heightOverWidth, box) {
44019
44216
  }
44020
44217
  return void 0;
44021
44218
  }
44022
- function ringLayoutForGapFactor(n2, stAngDeg, spanDeg, gapFactor, heightOverWidth, box, hubGeometry, sibTransBulgeRatio, knownNodeWidthPx) {
44023
- if (n2 === 1 && hubGeometry && knownNodeWidthPx !== void 0 && knownNodeWidthPx > 0) {
44219
+ function ringLayoutForGapFactor(n3, stAngDeg, spanDeg, gapFactor, heightOverWidth, box, hubGeometry, sibTransBulgeRatio, knownNodeWidthPx) {
44220
+ if (n3 === 1 && hubGeometry && knownNodeWidthPx !== void 0 && knownNodeWidthPx > 0) {
44024
44221
  return nestedHubSatelliteRingLayout(
44025
44222
  stAngDeg,
44026
44223
  heightOverWidth,
@@ -44029,12 +44226,12 @@ function ringLayoutForGapFactor(n2, stAngDeg, spanDeg, gapFactor, heightOverWidt
44029
44226
  knownNodeWidthPx
44030
44227
  );
44031
44228
  }
44032
- const degenerate = degenerateRingLayout(n2, heightOverWidth, box);
44229
+ const degenerate = degenerateRingLayout(n3, heightOverWidth, box);
44033
44230
  if (degenerate) {
44034
44231
  return degenerate;
44035
44232
  }
44036
44233
  const full = Math.abs(spanDeg) >= 360;
44037
- const step = full ? spanDeg / n2 : spanDeg / (n2 - 1);
44234
+ const step = full ? spanDeg / n3 : spanDeg / (n3 - 1);
44038
44235
  const halfStepRad = Math.abs(step) * DEG_TO_RAD4 / 2;
44039
44236
  const clampedGap = Math.max(0, gapFactor);
44040
44237
  const sinHalf = Math.sin(halfStepRad);
@@ -44044,7 +44241,7 @@ function ringLayoutForGapFactor(n2, stAngDeg, spanDeg, gapFactor, heightOverWidt
44044
44241
  const r0Hub = hubHalfWidth + hubGeometry.gapRatio + 0.5;
44045
44242
  r0 = Math.max(r0, r0Hub);
44046
44243
  }
44047
- const natural = Array.from({ length: n2 }, (_, i2) => {
44244
+ const natural = Array.from({ length: n3 }, (_, i2) => {
44048
44245
  const angleRad = (stAngDeg + i2 * step - 90) * DEG_TO_RAD4;
44049
44246
  return { x: r0 * Math.cos(angleRad), y: r0 * Math.sin(angleRad) };
44050
44247
  });
@@ -44073,10 +44270,10 @@ function ringLayoutForGapFactor(n2, stAngDeg, spanDeg, gapFactor, heightOverWidt
44073
44270
  hubHalfHeight: naturalHubRadius * scaleY
44074
44271
  };
44075
44272
  }
44076
- function computeCycleRingLayout(n2, stAngDeg, spanDeg, minGapRatio, heightOverWidth, box, absoluteGapPx, hubGeometry, absoluteHubGapPx, sibTransBulgeRatio, knownNodeWidthPx) {
44077
- const nestedHubSatellite = n2 === 1 && hubGeometry && knownNodeWidthPx !== void 0 && knownNodeWidthPx > 0;
44273
+ function computeCycleRingLayout(n3, stAngDeg, spanDeg, minGapRatio, heightOverWidth, box, absoluteGapPx, hubGeometry, absoluteHubGapPx, sibTransBulgeRatio, knownNodeWidthPx) {
44274
+ const nestedHubSatellite = n3 === 1 && hubGeometry && knownNodeWidthPx !== void 0 && knownNodeWidthPx > 0;
44078
44275
  if (!nestedHubSatellite) {
44079
- const degenerate = degenerateRingLayout(n2, heightOverWidth, box);
44276
+ const degenerate = degenerateRingLayout(n3, heightOverWidth, box);
44080
44277
  if (degenerate) {
44081
44278
  return degenerate;
44082
44279
  }
@@ -44085,7 +44282,7 @@ function computeCycleRingLayout(n2, stAngDeg, spanDeg, minGapRatio, heightOverWi
44085
44282
  const needsHubGapIteration = absoluteHubGapPx !== void 0 && absoluteHubGapPx > 0 && hubGeometry !== void 0;
44086
44283
  if (!needsGapIteration && !needsHubGapIteration) {
44087
44284
  return ringLayoutForGapFactor(
44088
- n2,
44285
+ n3,
44089
44286
  stAngDeg,
44090
44287
  spanDeg,
44091
44288
  minGapRatio,
@@ -44100,7 +44297,7 @@ function computeCycleRingLayout(n2, stAngDeg, spanDeg, minGapRatio, heightOverWi
44100
44297
  let hub = hubGeometry;
44101
44298
  for (let iteration = 0; iteration < 20; iteration += 1) {
44102
44299
  const candidate = ringLayoutForGapFactor(
44103
- n2,
44300
+ n3,
44104
44301
  stAngDeg,
44105
44302
  spanDeg,
44106
44303
  gapFactor,
@@ -44122,7 +44319,7 @@ function computeCycleRingLayout(n2, stAngDeg, spanDeg, minGapRatio, heightOverWi
44122
44319
  }
44123
44320
  }
44124
44321
  return ringLayoutForGapFactor(
44125
- n2,
44322
+ n3,
44126
44323
  stAngDeg,
44127
44324
  spanDeg,
44128
44325
  gapFactor,
@@ -44162,11 +44359,11 @@ function arrangeCycle2(plan, nodes, box, palette, style, elementId, index = EMPT
44162
44359
  box,
44163
44360
  sizeBox
44164
44361
  );
44165
- const n2 = ringNodes.length;
44362
+ const n3 = ringNodes.length;
44166
44363
  const startDeg = numericParam(plan.node, "stAng", 0);
44167
44364
  const spanDeg = numericParam(plan.node, "spanAng", 360);
44168
44365
  const ring = computeCycleRingLayout(
44169
- n2,
44366
+ n3,
44170
44367
  startDeg,
44171
44368
  spanDeg,
44172
44369
  minGapRatio,
@@ -44179,12 +44376,12 @@ function arrangeCycle2(plan, nodes, box, palette, style, elementId, index = EMPT
44179
44376
  knownNodeWidthPx
44180
44377
  );
44181
44378
  const full = Math.abs(spanDeg) >= 360;
44182
- const connectorCount = n2 > 0 ? full ? n2 : Math.max(0, n2 - 1) : 0;
44183
- const ringStepDeg = n2 > 0 ? full ? spanDeg / n2 : spanDeg / Math.max(1, n2 - 1) : 0;
44379
+ const connectorCount = n3 > 0 ? full ? n3 : Math.max(0, n3 - 1) : 0;
44380
+ const ringStepDeg = n3 > 0 ? full ? spanDeg / n3 : spanDeg / Math.max(1, n3 - 1) : 0;
44184
44381
  const ringCentre = ring.hubCenter;
44185
44382
  const connectors2 = buildCycleRingConnectors(
44186
44383
  ring,
44187
- n2,
44384
+ n3,
44188
44385
  connectorCount,
44189
44386
  ringCentre,
44190
44387
  elementId
@@ -44362,12 +44559,12 @@ function buildHubRenderedNode(arranger, hubNode, box, palette, style, elementId,
44362
44559
 
44363
44560
  // diagram/layout/smartart-node-tree-axis.ts
44364
44561
  function topLevelSmartArtNodes(nodes) {
44365
- const hasNestedChildren = nodes.some((n2) => n2.children !== void 0 && n2.children.length > 0);
44562
+ const hasNestedChildren = nodes.some((n3) => n3.children !== void 0 && n3.children.length > 0);
44366
44563
  if (hasNestedChildren) {
44367
44564
  return nodes;
44368
44565
  }
44369
- const ids = new Set(nodes.map((n2) => n2.id));
44370
- return nodes.filter((n2) => !n2.parentId || !ids.has(n2.parentId));
44566
+ const ids = new Set(nodes.map((n3) => n3.id));
44567
+ return nodes.filter((n3) => !n3.parentId || !ids.has(n3.parentId));
44371
44568
  }
44372
44569
  function smartArtDescendantsWithText(node, childrenOf) {
44373
44570
  const out = [];
@@ -44390,15 +44587,15 @@ function smartArtDescendantsWithText(node, childrenOf) {
44390
44587
  }
44391
44588
  function smartArtChildrenOf(nodes, connections) {
44392
44589
  const map = /* @__PURE__ */ new Map();
44393
- for (const n2 of nodes) {
44394
- if (n2.children && n2.children.length > 0) {
44395
- map.set(n2.id, n2.children);
44396
- } else if (n2.parentId) {
44397
- const list2 = map.get(n2.parentId);
44590
+ for (const n3 of nodes) {
44591
+ if (n3.children && n3.children.length > 0) {
44592
+ map.set(n3.id, n3.children);
44593
+ } else if (n3.parentId) {
44594
+ const list2 = map.get(n3.parentId);
44398
44595
  if (list2) {
44399
- list2.push(n2);
44596
+ list2.push(n3);
44400
44597
  } else {
44401
- map.set(n2.parentId, [n2]);
44598
+ map.set(n3.parentId, [n3]);
44402
44599
  }
44403
44600
  }
44404
44601
  }
@@ -44522,7 +44719,7 @@ function applyCustomLayoutToNode(node, custom, box) {
44522
44719
  }
44523
44720
  }
44524
44721
  function applyCustomLayoutOverrides(result, nodes, box) {
44525
- const nodeById = new Map(nodes.map((n2) => [n2.id, n2]));
44722
+ const nodeById = new Map(nodes.map((n3) => [n3.id, n3]));
44526
44723
  let changed = false;
44527
44724
  const nodesOut = result.nodes.map((rendered) => {
44528
44725
  const node = rendered.nodeId ? nodeById.get(rendered.nodeId) : void 0;
@@ -44706,8 +44903,8 @@ function resolveContentSizedExtents(texts, crossExtentPx, fontSizePx, table, lin
44706
44903
  lines2 * fontSizePx * smartArtLineEm(table) * lineSpacingFactor + marginVerticalPx + 2 * cornerInsetPx
44707
44904
  );
44708
44905
  });
44709
- const n2 = natural.length;
44710
- const gapTotal = Math.max(0, n2 - 1) * gap;
44906
+ const n3 = natural.length;
44907
+ const gapTotal = Math.max(0, n3 - 1) * gap;
44711
44908
  const total = natural.reduce((sum, extent) => sum + extent, 0) + gapTotal;
44712
44909
  if (total <= usableMain || total - gapTotal <= 0) {
44713
44910
  return natural;
@@ -44985,24 +45182,24 @@ function resolveMainAxisGap(index, role, mainAxisType, ceilingPx) {
44985
45182
  }
44986
45183
  return void 0;
44987
45184
  }
44988
- function resolveMainAxisLayout(constraints, index, role, mainAxisType, ceilingPx, usableMain, begPad, endPad, n2, clampRatio) {
45185
+ function resolveMainAxisLayout(constraints, index, role, mainAxisType, ceilingPx, usableMain, begPad, endPad, n3, clampRatio) {
44989
45186
  const explicitSib = resolveRatioConstraint(constraints, index, role, ["sibSp", "sp"], Number.NaN);
44990
45187
  if (!Number.isNaN(explicitSib)) {
44991
45188
  const sib2 = clampRatio(explicitSib);
44992
- const denom2 = begPad + endPad + n2 + Math.max(0, n2 - 1) * sib2;
44993
- const mainExtent2 = n2 > 0 ? usableMain / denom2 : usableMain;
45189
+ const denom2 = begPad + endPad + n3 + Math.max(0, n3 - 1) * sib2;
45190
+ const mainExtent2 = n3 > 0 ? usableMain / denom2 : usableMain;
44994
45191
  return { mainExtent: mainExtent2, gap: sib2 * mainExtent2 };
44995
45192
  }
44996
45193
  const inferredGap = resolveMainAxisGap(index, role, mainAxisType, ceilingPx);
44997
45194
  if (inferredGap && "absolutePx" in inferredGap) {
44998
45195
  const gapAbs = Math.max(0, inferredGap.absolutePx);
44999
- const denom2 = begPad + endPad + n2;
45000
- const mainExtent2 = n2 > 0 ? Math.max(0, usableMain - Math.max(0, n2 - 1) * gapAbs) / denom2 : usableMain;
45196
+ const denom2 = begPad + endPad + n3;
45197
+ const mainExtent2 = n3 > 0 ? Math.max(0, usableMain - Math.max(0, n3 - 1) * gapAbs) / denom2 : usableMain;
45001
45198
  return { mainExtent: mainExtent2, gap: gapAbs };
45002
45199
  }
45003
45200
  const sib = clampRatio(inferredGap && "relative" in inferredGap ? inferredGap.relative : 0.25);
45004
- const denom = begPad + endPad + n2 + Math.max(0, n2 - 1) * sib;
45005
- const mainExtent = n2 > 0 ? usableMain / denom : usableMain;
45201
+ const denom = begPad + endPad + n3 + Math.max(0, n3 - 1) * sib;
45202
+ const mainExtent = n3 > 0 ? usableMain / denom : usableMain;
45006
45203
  return { mainExtent, gap: sib * mainExtent };
45007
45204
  }
45008
45205
 
@@ -45049,15 +45246,15 @@ function arrangeRecursiveTable(view, plan, nodes, box, palette, style, elementId
45049
45246
  const reversed = resolvedLinDir(view, plan.node, nodes.length, presLayoutVars, "fromT") === "fromB";
45050
45247
  const rowChild = findRowChild(view, plan.node, presLayoutVars);
45051
45248
  const colReversed = rowChild ? resolvedLinDir(view, rowChild, nodes.length, presLayoutVars, "fromL") === "fromR" : false;
45052
- const byId = new Map(nodes.map((n2) => [n2.id, n2]));
45053
- const childrenIn = (n2) => (childrenOf.get(n2.id) ?? []).filter((c2) => byId.has(c2.id));
45249
+ const byId = new Map(nodes.map((n3) => [n3.id, n3]));
45250
+ const childrenIn = (n3) => (childrenOf.get(n3.id) ?? []).filter((c2) => byId.has(c2.id));
45054
45251
  const childIds = /* @__PURE__ */ new Set();
45055
- for (const n2 of nodes) {
45056
- for (const c2 of childrenIn(n2)) {
45252
+ for (const n3 of nodes) {
45253
+ for (const c2 of childrenIn(n3)) {
45057
45254
  childIds.add(c2.id);
45058
45255
  }
45059
45256
  }
45060
- const roots2 = nodes.filter((n2) => !childIds.has(n2.id));
45257
+ const roots2 = nodes.filter((n3) => !childIds.has(n3.id));
45061
45258
  const depthOf2 = /* @__PURE__ */ new Map();
45062
45259
  let maxDepth2 = 0;
45063
45260
  const depthStack = roots2.map((r) => ({
@@ -45078,11 +45275,11 @@ function arrangeRecursiveTable(view, plan, nodes, box, palette, style, elementId
45078
45275
  const rowGap = DEFAULT_GAP_RATIO2 * rowHeight;
45079
45276
  const rowY = (depth) => (reversed ? generations - 1 - depth : depth) * (rowHeight + rowGap);
45080
45277
  const splitAcross = (items, x, width) => {
45081
- const n2 = items.length;
45082
- if (n2 === 0) {
45278
+ const n3 = items.length;
45279
+ if (n3 === 0) {
45083
45280
  return [];
45084
45281
  }
45085
- const denom = n2 + Math.max(0, n2 - 1) * DEFAULT_GAP_RATIO2;
45282
+ const denom = n3 + Math.max(0, n3 - 1) * DEFAULT_GAP_RATIO2;
45086
45283
  const colWidth = width / denom;
45087
45284
  const colGap = DEFAULT_GAP_RATIO2 * colWidth;
45088
45285
  const ordered2 = colReversed ? [...items].reverse() : items;
@@ -45148,24 +45345,24 @@ function arrangeRecursiveTable(view, plan, nodes, box, palette, style, elementId
45148
45345
  }
45149
45346
 
45150
45347
  // diagram/layout/smartart-layout-snake-grid.ts
45151
- function snakeGridDims(plan, n2, w, h2, flowDir) {
45348
+ function snakeGridDims(plan, n3, w, h2, flowDir) {
45152
45349
  const bkpt = algorithmParam(plan.node, "bkpt");
45153
45350
  const fixedVal = findConstraint(plan.node.constraints, "bkPtFixedVal")?.value;
45154
45351
  if (bkpt === "fixed" && typeof fixedVal === "number" && fixedVal > 0) {
45155
- const lineLength = Math.max(1, Math.min(n2, Math.round(fixedVal)));
45352
+ const lineLength = Math.max(1, Math.min(n3, Math.round(fixedVal)));
45156
45353
  if (flowDir === "col") {
45157
45354
  const rows2 = lineLength;
45158
- return { cols: Math.max(1, Math.ceil(n2 / rows2)), rows: rows2 };
45355
+ return { cols: Math.max(1, Math.ceil(n3 / rows2)), rows: rows2 };
45159
45356
  }
45160
45357
  const cols2 = lineLength;
45161
- return { cols: cols2, rows: Math.max(1, Math.ceil(n2 / cols2)) };
45358
+ return { cols: cols2, rows: Math.max(1, Math.ceil(n3 / cols2)) };
45162
45359
  }
45163
45360
  if (flowDir === "col") {
45164
- const rows2 = Math.max(1, Math.round(Math.sqrt(n2 * Math.max(0.2, h2 / Math.max(1, w)))));
45165
- return { cols: Math.max(1, Math.ceil(n2 / rows2)), rows: rows2 };
45361
+ const rows2 = Math.max(1, Math.round(Math.sqrt(n3 * Math.max(0.2, h2 / Math.max(1, w)))));
45362
+ return { cols: Math.max(1, Math.ceil(n3 / rows2)), rows: rows2 };
45166
45363
  }
45167
- const cols = Math.max(1, Math.round(Math.sqrt(n2 * Math.max(0.2, w / Math.max(1, h2)))));
45168
- return { cols, rows: Math.max(1, Math.ceil(n2 / cols)) };
45364
+ const cols = Math.max(1, Math.round(Math.sqrt(n3 * Math.max(0.2, w / Math.max(1, h2)))));
45365
+ return { cols, rows: Math.max(1, Math.ceil(n3 / cols)) };
45169
45366
  }
45170
45367
  function snakeCell(i2, dims, flowDir, sameDir, grDir) {
45171
45368
  const primaryCount = flowDir === "col" ? dims.rows : dims.cols;
@@ -45189,7 +45386,7 @@ function snakeCell(i2, dims, flowDir, sameDir, grDir) {
45189
45386
  function arrangeSnake2(plan, nodes, box, palette, style, elementId, index = EMPTY_CONSTRAINT_INDEX, childrenOf, fontName) {
45190
45387
  const { width: w, height: h2 } = box;
45191
45388
  const ctx = styleContext(style);
45192
- const n2 = nodes.length;
45389
+ const n3 = nodes.length;
45193
45390
  const sib = resolveRatioConstraint(
45194
45391
  plan.node.constraints,
45195
45392
  index,
@@ -45201,7 +45398,7 @@ function arrangeSnake2(plan, nodes, box, palette, style, elementId, index = EMPT
45201
45398
  const grDirRaw = algorithmParam(plan.node, "grDir");
45202
45399
  const grDir = grDirRaw === "tR" || grDirRaw === "bL" || grDirRaw === "bR" ? grDirRaw : "tL";
45203
45400
  const sameDir = algorithmParam(plan.node, "contDir") === "sameDir";
45204
- const { cols, rows: rows2 } = snakeGridDims(plan, n2, w, h2, flowDir);
45401
+ const { cols, rows: rows2 } = snakeGridDims(plan, n3, w, h2, flowDir);
45205
45402
  const usableW = w - INSET * 2;
45206
45403
  const usableH = h2 - INSET * 2;
45207
45404
  const mainCount = flowDir === "col" ? rows2 : cols;
@@ -45266,7 +45463,7 @@ function arrangeSnake2(plan, nodes, box, palette, style, elementId, index = EMPT
45266
45463
  height: cellH,
45267
45464
  node,
45268
45465
  index: i2,
45269
- total: n2,
45466
+ total: n3,
45270
45467
  palette,
45271
45468
  style,
45272
45469
  ctx,
@@ -45311,7 +45508,7 @@ function arrangeLinear2(view, plan, flow, nodes, box, palette, style, elementId,
45311
45508
  const endPad = clampRatio(resolveRatioConstraint(constraints, index, role, ["endPad"], 0));
45312
45509
  const aspect = itemAspect(view, plan, index, nodes.length, presLayoutVars);
45313
45510
  const flow2 = ordered(nodes, flow);
45314
- const n2 = flow2.length;
45511
+ const n3 = flow2.length;
45315
45512
  const horizontal = flow.orientation === "horizontal";
45316
45513
  const usableMain = (horizontal ? w : h2) - INSET * 2;
45317
45514
  const usableCross = (horizontal ? h2 : w) - INSET * 2;
@@ -45325,7 +45522,7 @@ function arrangeLinear2(view, plan, flow, nodes, box, palette, style, elementId,
45325
45522
  usableMain,
45326
45523
  begPad,
45327
45524
  endPad,
45328
- n2,
45525
+ n3,
45329
45526
  clampRatio
45330
45527
  );
45331
45528
  const itemTemplate = itemNode(plan.node);
@@ -45385,7 +45582,7 @@ function arrangeLinear2(view, plan, flow, nodes, box, palette, style, elementId,
45385
45582
  height: horizontal ? itemH : itemMainExtent,
45386
45583
  node,
45387
45584
  index: i2,
45388
- total: n2,
45585
+ total: n3,
45389
45586
  palette,
45390
45587
  style,
45391
45588
  ctx,
@@ -45893,7 +46090,7 @@ function resolveIterationRect(dims, box, iteration, iterationCount) {
45893
46090
 
45894
46091
  // diagram/layout/smartart-layout-interpreter-composite-group-slots.ts
45895
46092
  function contentSignature(content2) {
45896
- return content2.map((n2) => n2.id).sort().join(" ");
46093
+ return content2.map((n3) => n3.id).sort().join(" ");
45897
46094
  }
45898
46095
  function resolveGroupedSlots(candidates, box, index) {
45899
46096
  const groups = /* @__PURE__ */ new Map();
@@ -46047,18 +46244,18 @@ function renderForEachBoundSlots(slots, flat, box, absX, absY, childrenOf, ctx,
46047
46244
  // diagram/hierarchy/smartart-hierarchy-pitch.ts
46048
46245
  var GENERATION_MARGIN_RATIO = 0.1675;
46049
46246
  function computeAxisPitch(dimension2, margin, itemSize, count, fixedGapRatio) {
46050
- const n2 = Math.max(1, count);
46051
- const gap = n2 <= 1 ? 0 : fixedGapRatio !== void 0 ? itemSize * Math.max(0, fixedGapRatio) : Math.max(0, (dimension2 - margin - n2 * itemSize) / (n2 - 1));
46247
+ const n3 = Math.max(1, count);
46248
+ const gap = n3 <= 1 ? 0 : fixedGapRatio !== void 0 ? itemSize * Math.max(0, fixedGapRatio) : Math.max(0, (dimension2 - margin - n3 * itemSize) / (n3 - 1));
46052
46249
  const pitch = itemSize + gap;
46053
- const centeredShift = (dimension2 - n2 * pitch + margin) / 2;
46054
- const maxShift = dimension2 - n2 * itemSize - gap * (n2 - 0.5);
46250
+ const centeredShift = (dimension2 - n3 * pitch + margin) / 2;
46251
+ const maxShift = dimension2 - n3 * itemSize - gap * (n3 - 0.5);
46055
46252
  return { pitch, shift: Math.min(centeredShift, maxShift) };
46056
46253
  }
46057
46254
  function centeredAxisPitch(dimension2, itemSize, gapRatio, count) {
46058
- const n2 = Math.max(1, count);
46059
- const gap = n2 > 1 ? itemSize * Math.max(0, gapRatio) : 0;
46255
+ const n3 = Math.max(1, count);
46256
+ const gap = n3 > 1 ? itemSize * Math.max(0, gapRatio) : 0;
46060
46257
  const pitch = itemSize + gap;
46061
- const span = n2 * itemSize + Math.max(0, n2 - 1) * gap;
46258
+ const span = n3 * itemSize + Math.max(0, n3 - 1) * gap;
46062
46259
  const shift = (dimension2 - span) / 2;
46063
46260
  return { pitch, shift };
46064
46261
  }
@@ -46593,7 +46790,7 @@ function findNamedNode(node, name2) {
46593
46790
  function arrangePyramid(plan, nodes, box, palette, style, elementId, index = EMPTY_CONSTRAINT_INDEX, childrenOf, fontName) {
46594
46791
  const { width: w, height: h2 } = box;
46595
46792
  const ctx = styleContext(style);
46596
- const n2 = nodes.length;
46793
+ const n3 = nodes.length;
46597
46794
  const bandW = w - DEFAULT_INSET * 2;
46598
46795
  const bandCx = DEFAULT_INSET + bandW / 2;
46599
46796
  const gapRatio = resolveRatioConstraint(
@@ -46604,7 +46801,7 @@ function arrangePyramid(plan, nodes, box, palette, style, elementId, index = EMP
46604
46801
  DEFAULT_GAP_RATIO3
46605
46802
  );
46606
46803
  const usableH = h2 - DEFAULT_INSET * 2;
46607
- const bandH = n2 > 0 ? usableH / (n2 + Math.max(0, n2 - 1) * gapRatio) : usableH;
46804
+ const bandH = n3 > 0 ? usableH / (n3 + Math.max(0, n3 - 1) * gapRatio) : usableH;
46608
46805
  const gap = gapRatio * bandH;
46609
46806
  const lvlNodeName = algorithmParam(plan.node, "pyraLvlNode");
46610
46807
  const lvlNode = lvlNodeName ? findNamedNode(plan.node, lvlNodeName) : void 0;
@@ -46618,9 +46815,9 @@ function arrangePyramid(plan, nodes, box, palette, style, elementId, index = EMP
46618
46815
  const halfBandH = (slotBot - slotTop) * lvlHeightRatio / 2;
46619
46816
  const yTop = slotMidY - halfBandH;
46620
46817
  const yBot = slotMidY + halfBandH;
46621
- const effectiveI = inverted ? n2 - 1 - i2 : i2;
46622
- const fTop = effectiveI / n2;
46623
- const fBot = (effectiveI + 1) / n2;
46818
+ const effectiveI = inverted ? n3 - 1 - i2 : i2;
46819
+ const fTop = effectiveI / n3;
46820
+ const fBot = (effectiveI + 1) / n3;
46624
46821
  const halfTop = bandW * fTop / 2 * lvlWidthRatio;
46625
46822
  const halfBot = bandW * fBot / 2 * lvlWidthRatio;
46626
46823
  return { node, yTop, yBot, halfTop, halfBot };
@@ -46657,7 +46854,7 @@ function arrangePyramid(plan, nodes, box, palette, style, elementId, index = EMP
46657
46854
  fontHeight: bandH,
46658
46855
  node,
46659
46856
  index: i2,
46660
- total: n2,
46857
+ total: n3,
46661
46858
  palette,
46662
46859
  style,
46663
46860
  ctx,
@@ -46807,7 +47004,7 @@ function resolveHierarchyItemNode(algorithmNode) {
46807
47004
  return first2;
46808
47005
  }
46809
47006
  const allNames = new Set(
46810
- candidates.map((c2) => c2.name).filter((n2) => n2 !== void 0)
47007
+ candidates.map((c2) => c2.name).filter((n3) => n3 !== void 0)
46811
47008
  );
46812
47009
  const constraints = algorithmNode.allConstraints ?? algorithmNode.constraints ?? [];
46813
47010
  for (const candidate of candidates) {
@@ -47961,11 +48158,11 @@ function transposeResult(result, realWidth, realHeight) {
47961
48158
  // diagram/hierarchy/smartart-hierarchy-fit-item-box.ts
47962
48159
  var ALL_CHILDREN_HANG_EXTRA_RATIO = 0.6587;
47963
48160
  function fitItemBox(box, columns, levels, sibSpRatio, aspectRatio, generationGapRatio, marginXRatio, marginYRatio, maxHangDepth = 0, clampToNaturalAspect = true, maxHangRows = maxHangDepth, allChildrenHang = false, hangHeightRatio = HANG_HEIGHT_RATIO, compositeChainHeightRatio, hangingColumns = columns) {
47964
- const n2 = Math.max(1, columns);
48161
+ const n3 = Math.max(1, columns);
47965
48162
  const usableW = box.width - 2 * box.width * marginXRatio;
47966
48163
  const allHangExtra = allChildrenHang ? ALL_CHILDREN_HANG_EXTRA_RATIO : 0;
47967
- const hangColumnFraction = n2 > 0 ? Math.min(1, Math.max(0, hangingColumns) / n2) : 0;
47968
- const widthFit = usableW / (n2 + Math.max(0, n2 - 1) * sibSpRatio + maxHangDepth * HIER_TAIL_OFFSET_RATIO * hangColumnFraction + allHangExtra);
48164
+ const hangColumnFraction = n3 > 0 ? Math.min(1, Math.max(0, hangingColumns) / n3) : 0;
48165
+ const widthFit = usableW / (n3 + Math.max(0, n3 - 1) * sibSpRatio + maxHangDepth * HIER_TAIL_OFFSET_RATIO * hangColumnFraction + allHangExtra);
47969
48166
  const generations = Math.max(1, levels);
47970
48167
  const usableH = box.height - 2 * box.height * marginYRatio;
47971
48168
  const heightFit = usableH / (generations + maxHangRows + Math.max(0, generations - 1) * generationGapRatio + maxHangRows * hangHeightRatio);
@@ -49061,17 +49258,17 @@ function resolvePyraAcctRatio(planNode, index) {
49061
49258
  const constraints = planNode.allConstraints ?? planNode.constraints;
49062
49259
  return resolveRatioConstraint(constraints, index, roleOf(planNode), ["pyraAcctRatio"], 0);
49063
49260
  }
49064
- function pyramidRowGeometry(i2, n2, box, gapRatio, inverted) {
49261
+ function pyramidRowGeometry(i2, n3, box, gapRatio, inverted) {
49065
49262
  const bandW = box.width - DEFAULT_INSET * 2;
49066
49263
  const bandCx = DEFAULT_INSET + bandW / 2;
49067
49264
  const usableH = box.height - DEFAULT_INSET * 2;
49068
- const bandH = n2 > 0 ? usableH / (n2 + Math.max(0, n2 - 1) * gapRatio) : usableH;
49265
+ const bandH = n3 > 0 ? usableH / (n3 + Math.max(0, n3 - 1) * gapRatio) : usableH;
49069
49266
  const gap = gapRatio * bandH;
49070
49267
  const slotTop = DEFAULT_INSET + i2 * (bandH + gap);
49071
49268
  const slotBot = slotTop + bandH;
49072
- const effectiveI = inverted ? n2 - 1 - i2 : i2;
49073
- const fTop = effectiveI / n2;
49074
- const fBot = (effectiveI + 1) / n2;
49269
+ const effectiveI = inverted ? n3 - 1 - i2 : i2;
49270
+ const fTop = effectiveI / n3;
49271
+ const fBot = (effectiveI + 1) / n3;
49075
49272
  const halfTop = bandW * fTop / 2;
49076
49273
  const halfBot = bandW * fBot / 2;
49077
49274
  return {
@@ -49089,7 +49286,7 @@ function repositionPyramidBands(result, box, planNode, topLevelIds, flatNodes, h
49089
49286
  return result;
49090
49287
  }
49091
49288
  const scale = 1 - pyraAcctRatio;
49092
- const n2 = topLevelIds.length;
49289
+ const n3 = topLevelIds.length;
49093
49290
  const rowIndexById = new Map(topLevelIds.map((id, i2) => [id, i2]));
49094
49291
  const parentIdById = new Map(flatNodes.map((node) => [node.id, node.parentId]));
49095
49292
  const gapRatio = resolveRatioConstraint(
@@ -49113,7 +49310,7 @@ function repositionPyramidBands(result, box, planNode, topLevelIds, flatNodes, h
49113
49310
  if (rowIndex === void 0) {
49114
49311
  return rendered;
49115
49312
  }
49116
- const row2 = pyramidRowGeometry(rowIndex, n2, box, gapRatio, inverted);
49313
+ const row2 = pyramidRowGeometry(rowIndex, n3, box, gapRatio, inverted);
49117
49314
  const scaledLeftTop = scale * row2.leftTop;
49118
49315
  const scaledRightTop = scale * row2.rightTop;
49119
49316
  const scaledLeftBot = scale * row2.leftBot;
@@ -49231,12 +49428,12 @@ function runArrangement(view, input) {
49231
49428
  input.connections,
49232
49429
  presLayoutVars
49233
49430
  ) : withNamedRule;
49234
- const hasAccentSomewhere = arranged.some((node) => flat.some((n2) => n2.parentId === node.id));
49431
+ const hasAccentSomewhere = arranged.some((node) => flat.some((n3) => n3.parentId === node.id));
49235
49432
  const withPyramidBands = plan.kind === "pyramid" ? repositionPyramidBands(
49236
49433
  withItemRoles,
49237
49434
  box,
49238
49435
  plan.node,
49239
- arranged.map((n2) => n2.id),
49436
+ arranged.map((n3) => n3.id),
49240
49437
  flat,
49241
49438
  hasAccentSomewhere,
49242
49439
  constraintIndex
@@ -49656,12 +49853,12 @@ function findDiagramShapeIndex(shapes2, nodes, nodeId) {
49656
49853
  }
49657
49854
  }
49658
49855
  if (shapes2.length === nodes.length) {
49659
- const nodeIdx = nodes.findIndex((n2) => n2.id === nodeId);
49856
+ const nodeIdx = nodes.findIndex((n3) => n3.id === nodeId);
49660
49857
  if (nodeIdx >= 0) {
49661
49858
  return nodeIdx;
49662
49859
  }
49663
49860
  }
49664
- const node = nodes.find((n2) => n2.id === nodeId);
49861
+ const node = nodes.find((n3) => n3.id === nodeId);
49665
49862
  if (node?.text) {
49666
49863
  const text3 = node.text.trim();
49667
49864
  const matches2 = [];
@@ -49709,7 +49906,7 @@ function createOfficeGuid() {
49709
49906
  // diagram/edit/node-ops.ts
49710
49907
  var diagramModelId = (options2) => (options2?.createModelId ?? createOfficeGuid)();
49711
49908
  function findDiagramRootParentId(nodes) {
49712
- const nodeIds = new Set(nodes.map((n2) => n2.id));
49909
+ const nodeIds = new Set(nodes.map((n3) => n3.id));
49713
49910
  for (const node of nodes) {
49714
49911
  if (node.parentId && !nodeIds.has(node.parentId)) {
49715
49912
  return node.parentId;
@@ -49746,13 +49943,13 @@ function insertSibling(data, text3, siblingId, offset, options2) {
49746
49943
  const newId = diagramModelId(options2);
49747
49944
  let parentId;
49748
49945
  if (siblingId) {
49749
- const sibling = data.nodes.find((n2) => n2.id === siblingId);
49946
+ const sibling = data.nodes.find((n3) => n3.id === siblingId);
49750
49947
  parentId = sibling?.parentId;
49751
49948
  }
49752
49949
  parentId ??= findDiagramRootParentId(data.nodes);
49753
49950
  const newNode = { id: newId, text: text3, parentId };
49754
49951
  const nodes = [...data.nodes];
49755
- const siblingIndex = siblingId ? nodes.findIndex((n2) => n2.id === siblingId) : -1;
49952
+ const siblingIndex = siblingId ? nodes.findIndex((n3) => n3.id === siblingId) : -1;
49756
49953
  if (siblingIndex >= 0) {
49757
49954
  nodes.splice(siblingIndex + offset, 0, newNode);
49758
49955
  } else {
@@ -49777,7 +49974,7 @@ function addDiagramNodeBelow(data, parentId, text3, options2) {
49777
49974
  return withEditedStructure(data, nodes, connections);
49778
49975
  }
49779
49976
  function addDiagramNodeAbove(data, nodeId, text3, options2) {
49780
- const target = data.nodes.find((n2) => n2.id === nodeId);
49977
+ const target = data.nodes.find((n3) => n3.id === nodeId);
49781
49978
  if (!target) {
49782
49979
  return data;
49783
49980
  }
@@ -49804,13 +50001,13 @@ function addDiagramNodeAbove(data, nodeId, text3, options2) {
49804
50001
  return withEditedStructure(data, nodes, connections);
49805
50002
  }
49806
50003
  function removeDiagramNode(data, nodeId) {
49807
- const removedNode = data.nodes.find((n2) => n2.id === nodeId);
49808
- const childIds = data.nodes.filter((n2) => n2.parentId === nodeId).map((n2) => n2.id);
49809
- const nodes = data.nodes.filter((n2) => n2.id !== nodeId).map((n2) => {
49810
- if (n2.parentId === nodeId) {
49811
- return { ...n2, parentId: removedNode?.parentId };
50004
+ const removedNode = data.nodes.find((n3) => n3.id === nodeId);
50005
+ const childIds = data.nodes.filter((n3) => n3.parentId === nodeId).map((n3) => n3.id);
50006
+ const nodes = data.nodes.filter((n3) => n3.id !== nodeId).map((n3) => {
50007
+ if (n3.parentId === nodeId) {
50008
+ return { ...n3, parentId: removedNode?.parentId };
49812
50009
  }
49813
- return { ...n2 };
50010
+ return { ...n3 };
49814
50011
  });
49815
50012
  const connections = (data.connections ?? []).filter((c2) => c2.sourceId !== nodeId && c2.destId !== nodeId).map((c2) => ({ ...c2 }));
49816
50013
  const grandParentId = removedNode?.parentId;
@@ -49822,7 +50019,7 @@ function removeDiagramNode(data, nodeId) {
49822
50019
  return withEditedStructure(data, nodes, connections);
49823
50020
  }
49824
50021
  function setDiagramNodeText(data, nodeId, newText) {
49825
- const nodes = data.nodes.map((n2) => n2.id === nodeId ? { ...n2, text: newText } : n2);
50022
+ const nodes = data.nodes.map((n3) => n3.id === nodeId ? { ...n3, text: newText } : n3);
49826
50023
  return {
49827
50024
  ...data,
49828
50025
  nodes,
@@ -49836,12 +50033,12 @@ function setDiagramNodeText(data, nodeId, newText) {
49836
50033
 
49837
50034
  // diagram/edit/node-order.ts
49838
50035
  function moveDiagramNode(data, nodeId, direction) {
49839
- const node = data.nodes.find((n2) => n2.id === nodeId);
50036
+ const node = data.nodes.find((n3) => n3.id === nodeId);
49840
50037
  if (!node) {
49841
50038
  return data;
49842
50039
  }
49843
- const siblings = data.nodes.filter((n2) => n2.parentId === node.parentId);
49844
- const currentIndex = siblings.findIndex((n2) => n2.id === nodeId);
50040
+ const siblings = data.nodes.filter((n3) => n3.parentId === node.parentId);
50041
+ const currentIndex = siblings.findIndex((n3) => n3.id === nodeId);
49845
50042
  const targetIndex = currentIndex + direction;
49846
50043
  const current = siblings[currentIndex];
49847
50044
  const target = siblings[targetIndex];
@@ -49849,8 +50046,8 @@ function moveDiagramNode(data, nodeId, direction) {
49849
50046
  return data;
49850
50047
  }
49851
50048
  const nodes = [...data.nodes];
49852
- const currentGlobalIndex = nodes.findIndex((n2) => n2.id === current.id);
49853
- const targetGlobalIndex = nodes.findIndex((n2) => n2.id === target.id);
50049
+ const currentGlobalIndex = nodes.findIndex((n3) => n3.id === current.id);
50050
+ const targetGlobalIndex = nodes.findIndex((n3) => n3.id === target.id);
49854
50051
  if (currentGlobalIndex >= 0 && targetGlobalIndex >= 0) {
49855
50052
  nodes[currentGlobalIndex] = target;
49856
50053
  nodes[targetGlobalIndex] = current;
@@ -49858,12 +50055,12 @@ function moveDiagramNode(data, nodeId, direction) {
49858
50055
  return withEditedStructure(data, nodes);
49859
50056
  }
49860
50057
  function moveDiagramNodeToIndex(data, nodeId, newIndex) {
49861
- const node = data.nodes.find((n2) => n2.id === nodeId);
50058
+ const node = data.nodes.find((n3) => n3.id === nodeId);
49862
50059
  if (!node) {
49863
50060
  return data;
49864
50061
  }
49865
- const siblings = data.nodes.filter((n2) => n2.parentId === node.parentId);
49866
- const currentIndex = siblings.findIndex((n2) => n2.id === nodeId);
50062
+ const siblings = data.nodes.filter((n3) => n3.parentId === node.parentId);
50063
+ const currentIndex = siblings.findIndex((n3) => n3.id === nodeId);
49867
50064
  if (currentIndex < 0) {
49868
50065
  return data;
49869
50066
  }
@@ -49877,21 +50074,21 @@ function moveDiagramNodeToIndex(data, nodeId, newIndex) {
49877
50074
  const siblingIds = new Set(siblings.map((s2) => s2.id));
49878
50075
  const nodes = [];
49879
50076
  let sibIdx = 0;
49880
- for (const n2 of data.nodes) {
49881
- nodes.push(siblingIds.has(n2.id) ? reorderedSiblings[sibIdx++] ?? n2 : n2);
50077
+ for (const n3 of data.nodes) {
50078
+ nodes.push(siblingIds.has(n3.id) ? reorderedSiblings[sibIdx++] ?? n3 : n3);
49882
50079
  }
49883
50080
  return withEditedStructure(data, nodes);
49884
50081
  }
49885
50082
  function promoteDiagramNode(data, nodeId) {
49886
- const node = data.nodes.find((n2) => n2.id === nodeId);
50083
+ const node = data.nodes.find((n3) => n3.id === nodeId);
49887
50084
  if (!node || !node.parentId) {
49888
50085
  return data;
49889
50086
  }
49890
- const parent = data.nodes.find((n2) => n2.id === node.parentId);
50087
+ const parent = data.nodes.find((n3) => n3.id === node.parentId);
49891
50088
  if (!parent) {
49892
50089
  return data;
49893
50090
  }
49894
- const nodes = data.nodes.map((n2) => n2.id === nodeId ? { ...n2, parentId: parent.parentId } : n2);
50091
+ const nodes = data.nodes.map((n3) => n3.id === nodeId ? { ...n3, parentId: parent.parentId } : n3);
49895
50092
  const connections = (data.connections ?? []).filter((c2) => !(c2.sourceId === node.parentId && c2.destId === nodeId)).map((c2) => ({ ...c2 }));
49896
50093
  if (parent.parentId) {
49897
50094
  connections.push({
@@ -49905,18 +50102,18 @@ function promoteDiagramNode(data, nodeId) {
49905
50102
  return withEditedStructure(data, nodes, connections);
49906
50103
  }
49907
50104
  function demoteDiagramNode(data, nodeId) {
49908
- const node = data.nodes.find((n2) => n2.id === nodeId);
50105
+ const node = data.nodes.find((n3) => n3.id === nodeId);
49909
50106
  if (!node) {
49910
50107
  return data;
49911
50108
  }
49912
- const siblings = data.nodes.filter((n2) => n2.parentId === node.parentId);
49913
- const currentIndex = siblings.findIndex((n2) => n2.id === nodeId);
50109
+ const siblings = data.nodes.filter((n3) => n3.parentId === node.parentId);
50110
+ const currentIndex = siblings.findIndex((n3) => n3.id === nodeId);
49914
50111
  const previous = currentIndex > 0 ? siblings[currentIndex - 1] : void 0;
49915
50112
  if (!previous) {
49916
50113
  return data;
49917
50114
  }
49918
50115
  const newParentId = previous.id;
49919
- const nodes = data.nodes.map((n2) => n2.id === nodeId ? { ...n2, parentId: newParentId } : n2);
50116
+ const nodes = data.nodes.map((n3) => n3.id === nodeId ? { ...n3, parentId: newParentId } : n3);
49920
50117
  const connections = (data.connections ?? []).filter((c2) => !(c2.sourceId === node.parentId && c2.destId === nodeId)).map((c2) => ({ ...c2 }));
49921
50118
  connections.push({
49922
50119
  sourceId: newParentId,
@@ -50440,7 +50637,7 @@ function resolveDiagramReflowCategory(layoutType) {
50440
50637
 
50441
50638
  // diagram/edit/reflow.ts
50442
50639
  function diagramContentNodes(nodes) {
50443
- return nodes.filter((n2) => n2.text.length > 0);
50640
+ return nodes.filter((n3) => n3.text.length > 0);
50444
50641
  }
50445
50642
  function reflowDiagramLayout(data, bounds2) {
50446
50643
  const nodes = diagramContentNodes(data.nodes);
@@ -51572,7 +51769,7 @@ var IV = [
51572
51769
  1541459225
51573
51770
  ];
51574
51771
  var W = new Uint32Array(64);
51575
- var rotr = (x, n2) => x >>> n2 | x << 32 - n2;
51772
+ var rotr = (x, n3) => x >>> n3 | x << 32 - n3;
51576
51773
  function compress(h2, view, offset) {
51577
51774
  for (let i2 = 0; i2 < 16; i2++) W[i2] = view.getUint32(offset + i2 * 4);
51578
51775
  for (let i2 = 16; i2 < 64; i2++) {
@@ -52635,7 +52832,7 @@ var PartPatch = class {
52635
52832
  if (known !== void 0) return known;
52636
52833
  const taken = new Set(this.prefixes.values());
52637
52834
  let prefix = preferred;
52638
- for (let n2 = 1; taken.has(prefix); n2++) prefix = `${preferred}${n2}`;
52835
+ for (let n3 = 1; taken.has(prefix); n3++) prefix = `${preferred}${n3}`;
52639
52836
  this.prefixes.set(ns, prefix);
52640
52837
  const at2 = this.root.openEnd - (this.root.selfClosing ? 2 : 1);
52641
52838
  this.add(at2, at2, ` xmlns:${prefix}="${ns}"`);
@@ -55061,10 +55258,10 @@ function encodeBase64(bytes) {
55061
55258
  const a2 = bytes[i2];
55062
55259
  const b = bytes[i2 + 1];
55063
55260
  const c2 = bytes[i2 + 2];
55064
- const n2 = a2 << 16 | (b ?? 0) << 8 | (c2 ?? 0);
55065
- out += ALPHABET2[n2 >> 18] + ALPHABET2[n2 >> 12 & 63];
55066
- out += b === void 0 ? "=" : ALPHABET2[n2 >> 6 & 63];
55067
- out += c2 === void 0 ? "=" : ALPHABET2[n2 & 63];
55261
+ const n3 = a2 << 16 | (b ?? 0) << 8 | (c2 ?? 0);
55262
+ out += ALPHABET2[n3 >> 18] + ALPHABET2[n3 >> 12 & 63];
55263
+ out += b === void 0 ? "=" : ALPHABET2[n3 >> 6 & 63];
55264
+ out += c2 === void 0 ? "=" : ALPHABET2[n3 & 63];
55068
55265
  }
55069
55266
  return out;
55070
55267
  }
@@ -55386,8 +55583,8 @@ function md2(message) {
55386
55583
  }
55387
55584
 
55388
55585
  // digest/bit-ops.ts
55389
- function rotl32(x, n2) {
55390
- return (x << n2 | x >>> 32 - n2) >>> 0;
55586
+ function rotl32(x, n3) {
55587
+ return (x << n3 | x >>> 32 - n3) >>> 0;
55391
55588
  }
55392
55589
  function add32(...values) {
55393
55590
  let sum = 0;
@@ -55932,7 +56129,7 @@ function ripemd160(message) {
55932
56129
 
55933
56130
  // digest/sha1.ts
55934
56131
  var W2 = new Uint32Array(80);
55935
- var rotl = (x, n2) => x << n2 | x >>> 32 - n2;
56132
+ var rotl = (x, n3) => x << n3 | x >>> 32 - n3;
55936
56133
  function compress2(h2, view, offset) {
55937
56134
  for (let i2 = 0; i2 < 16; i2++) W2[i2] = view.getUint32(offset + i2 * 4);
55938
56135
  for (let i2 = 16; i2 < 80; i2++) W2[i2] = rotl(W2[i2 - 3] ^ W2[i2 - 8] ^ W2[i2 - 14] ^ W2[i2 - 16], 1);
@@ -57568,11 +57765,11 @@ function getCalloutViewBoxBounds(width, height, geometry, padding = 2) {
57568
57765
  }
57569
57766
 
57570
57767
  // geometry/cloud-bezier-paths.ts
57571
- function fmt(n2) {
57572
- if (!Number.isFinite(n2)) {
57768
+ function fmt(n3) {
57769
+ if (!Number.isFinite(n3)) {
57573
57770
  return "0";
57574
57771
  }
57575
- const rounded = Math.round(n2 * 100) / 100;
57772
+ const rounded = Math.round(n3 * 100) / 100;
57576
57773
  if (Object.is(rounded, -0)) {
57577
57774
  return "0";
57578
57775
  }
@@ -57988,8 +58185,8 @@ function aStarOrthogonal(nodes, start, end, inflated) {
57988
58185
  fScore.set(startKey, heuristic(start, end));
57989
58186
  const openSet = /* @__PURE__ */ new Set([startKey]);
57990
58187
  const nodeMap = /* @__PURE__ */ new Map();
57991
- for (const n2 of nodes) {
57992
- nodeMap.set(pointKey(n2), n2);
58188
+ for (const n3 of nodes) {
58189
+ nodeMap.set(pointKey(n3), n3);
57993
58190
  }
57994
58191
  const getLowest = () => {
57995
58192
  let best;
@@ -58834,7 +59031,7 @@ var MISC_ARROW_CONNECTION_SITES = {
58834
59031
  gd16("dy2", "+- yE 0 t"),
58835
59032
  gd16("dy22", "*/ dy2 1 2"),
58836
59033
  gd16("dy3", "*/ h 1 20"),
58837
- gd16("yD", "+- t dy22 dy3")
59034
+ gd16("yD", "+- dy22 0 dy3")
58838
59035
  ],
58839
59036
  sites: [
58840
59037
  cxn("cd4", "l", "b"),
@@ -62192,8 +62389,8 @@ function cross2(o, a2, b) {
62192
62389
  }
62193
62390
  function signedArea2(poly) {
62194
62391
  let area = 0;
62195
- for (let i2 = 0, n2 = poly.length; i2 < n2; i2++) {
62196
- const j = (i2 + 1) % n2;
62392
+ for (let i2 = 0, n3 = poly.length; i2 < n3; i2++) {
62393
+ const j = (i2 + 1) % n3;
62197
62394
  area += at(poly, i2).x * at(poly, j).y;
62198
62395
  area -= at(poly, j).x * at(poly, i2).y;
62199
62396
  }
@@ -62223,8 +62420,8 @@ function dedupPoly(poly) {
62223
62420
  }
62224
62421
  return result;
62225
62422
  }
62226
- function fmtNum(n2) {
62227
- const rounded = Math.round(n2 * 1e4) / 1e4;
62423
+ function fmtNum(n3) {
62424
+ const rounded = Math.round(n3 * 1e4) / 1e4;
62228
62425
  return String(rounded);
62229
62426
  }
62230
62427
  function pointInTriangle(p2, a2, b, c2) {
@@ -62237,8 +62434,8 @@ function pointInTriangle(p2, a2, b, c2) {
62237
62434
  }
62238
62435
  function pointInPolygon(pt2, poly) {
62239
62436
  let inside = false;
62240
- const n2 = poly.length;
62241
- for (let i2 = 0, j = n2 - 1; i2 < n2; j = i2++) {
62437
+ const n3 = poly.length;
62438
+ for (let i2 = 0, j = n3 - 1; i2 < n3; j = i2++) {
62242
62439
  const xi = at(poly, i2).x, yi = at(poly, i2).y;
62243
62440
  const xj = at(poly, j).x, yj = at(poly, j).y;
62244
62441
  if (yi > pt2.y !== yj > pt2.y && pt2.x < (xj - xi) * (pt2.y - yi) / (yj - yi) + xi) {
@@ -62294,15 +62491,15 @@ function sutherlandHodgman(subject, clip) {
62294
62491
  return output;
62295
62492
  }
62296
62493
  function isConvex(poly) {
62297
- const n2 = poly.length;
62298
- if (n2 < 3) {
62494
+ const n3 = poly.length;
62495
+ if (n3 < 3) {
62299
62496
  return false;
62300
62497
  }
62301
62498
  let sign = 0;
62302
- for (let i2 = 0; i2 < n2; i2++) {
62499
+ for (let i2 = 0; i2 < n3; i2++) {
62303
62500
  const o = at(poly, i2);
62304
- const a2 = at(poly, (i2 + 1) % n2);
62305
- const b = at(poly, (i2 + 2) % n2);
62501
+ const a2 = at(poly, (i2 + 1) % n3);
62502
+ const b = at(poly, (i2 + 2) % n3);
62306
62503
  const c2 = cross2(o, a2, b);
62307
62504
  if (Math.abs(c2) < EPSILON) {
62308
62505
  continue;
@@ -62323,17 +62520,17 @@ function triangulate(poly) {
62323
62520
  while (remaining.length > 3 && maxIterations > 0) {
62324
62521
  maxIterations--;
62325
62522
  let earFound = false;
62326
- const n2 = remaining.length;
62327
- for (let i2 = 0; i2 < n2; i2++) {
62328
- const prev = at(remaining, (i2 + n2 - 1) % n2);
62523
+ const n3 = remaining.length;
62524
+ for (let i2 = 0; i2 < n3; i2++) {
62525
+ const prev = at(remaining, (i2 + n3 - 1) % n3);
62329
62526
  const curr = at(remaining, i2);
62330
- const next = at(remaining, (i2 + 1) % n2);
62527
+ const next = at(remaining, (i2 + 1) % n3);
62331
62528
  if (cross2(prev, curr, next) <= EPSILON) {
62332
62529
  continue;
62333
62530
  }
62334
62531
  let isEar = true;
62335
- for (let j = 0; j < n2; j++) {
62336
- if (j === (i2 + n2 - 1) % n2 || j === i2 || j === (i2 + 1) % n2) {
62532
+ for (let j = 0; j < n3; j++) {
62533
+ if (j === (i2 + n3 - 1) % n3 || j === i2 || j === (i2 + 1) % n3) {
62337
62534
  continue;
62338
62535
  }
62339
62536
  if (pointInTriangle(at(remaining, j), prev, curr, next)) {
@@ -63230,7 +63427,7 @@ function tokenize(d) {
63230
63427
  for (const raw2 of matches2) {
63231
63428
  const type = raw2.charAt(0);
63232
63429
  const nums = raw2.slice(1).match(NUMBER_RE);
63233
- tokens.push({ type, values: nums ? nums.map((n2) => Number.parseFloat(n2)) : [] });
63430
+ tokens.push({ type, values: nums ? nums.map((n3) => Number.parseFloat(n3)) : [] });
63234
63431
  }
63235
63432
  return tokens;
63236
63433
  }
@@ -64239,8 +64436,8 @@ function imageRectFromCrop(frame2, insets) {
64239
64436
  height
64240
64437
  };
64241
64438
  }
64242
- function round43(n2) {
64243
- return Math.round(n2 * 1e4) / 1e4;
64439
+ function round43(n3) {
64440
+ return Math.round(n3 * 1e4) / 1e4;
64244
64441
  }
64245
64442
  function cropUpdateFromRects(frame2, image) {
64246
64443
  return {
@@ -64274,7 +64471,7 @@ function pictureTileAlignment(alignment) {
64274
64471
  function pictureTileGeometry(frame2, source2, tile, dpi = 96) {
64275
64472
  const width = source2.width * (tile.scaleX ?? 1) * 96 / dpi;
64276
64473
  const height = source2.height * (tile.scaleY ?? 1) * 96 / dpi;
64277
- if (![width, height].every((n2) => Number.isFinite(n2) && n2 > 0)) return void 0;
64474
+ if (![width, height].every((n3) => Number.isFinite(n3) && n3 > 0)) return void 0;
64278
64475
  const anchor = pictureTileAlignment(tile.alignment);
64279
64476
  return {
64280
64477
  width,