@pixerate/editor 0.237.0 → 0.239.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 (94) hide show
  1. package/dist/agent/index.cjs +40 -39
  2. package/dist/agent/index.js +9 -8
  3. package/dist/animation/index.cjs +7 -6
  4. package/dist/animation/index.js +6 -5
  5. package/dist/animation-editor/index.cjs +66 -65
  6. package/dist/animation-editor/index.js +9 -8
  7. package/dist/{brushstrokeRender-WDTKD54B.cjs → brushstrokeRender-MPOM7BFW.cjs} +7 -5
  8. package/dist/{brushstrokeRender-MAHOXL7K.js → brushstrokeRender-WB67GMUP.js} +4 -2
  9. package/dist/canvas/index.cjs +55 -54
  10. package/dist/canvas/index.js +10 -9
  11. package/dist/chart/index.cjs +159 -158
  12. package/dist/chart/index.js +9 -8
  13. package/dist/{chunk-L6Y7TSQ4.js → chunk-36ZTV7WO.js} +1 -1
  14. package/dist/{chunk-JVNGCS26.js → chunk-3E36VDMJ.js} +1 -1
  15. package/dist/{chunk-WRZ6C4TU.cjs → chunk-3R5P3DVY.cjs} +6 -6
  16. package/dist/{chunk-RUONPPMC.cjs → chunk-44BMJJVA.cjs} +8 -8
  17. package/dist/{chunk-YBAPT7NL.js → chunk-6ADHGQ73.js} +4 -2
  18. package/dist/chunk-7AHBW2CQ.cjs +200 -0
  19. package/dist/{chunk-EUIDTZNQ.cjs → chunk-7PT4RJL5.cjs} +113 -111
  20. package/dist/{chunk-CU6ANS5L.js → chunk-7YGBSFC6.js} +2 -2
  21. package/dist/{chunk-ATKKG76G.cjs → chunk-AD7GA3TL.cjs} +23 -23
  22. package/dist/{chunk-FSLKBQU7.js → chunk-AIS56JOO.js} +3 -3
  23. package/dist/{chunk-5VQXSS2S.cjs → chunk-BBUE3UJL.cjs} +86 -86
  24. package/dist/{chunk-7272D3K2.js → chunk-BP6KSGVD.js} +6 -4
  25. package/dist/{chunk-F6R67I3A.js → chunk-CXXXAZ7H.js} +1 -1
  26. package/dist/{chunk-5DQPDXOM.cjs → chunk-D2SGV525.cjs} +76 -76
  27. package/dist/chunk-F67XMVDI.js +200 -0
  28. package/dist/{chunk-JVSX5QTS.js → chunk-FQVVO5YA.js} +3 -3
  29. package/dist/{chunk-UXETV2NC.cjs → chunk-GA4EU4P3.cjs} +4 -4
  30. package/dist/{chunk-UFEDHACQ.js → chunk-GXAK6Q5J.js} +2 -2
  31. package/dist/{chunk-MHLU6GRJ.js → chunk-JEGJP4OW.js} +7 -196
  32. package/dist/chunk-KMPM5JM5.js +936 -0
  33. package/dist/{chunk-GOBOCZZI.js → chunk-LEQKZGQI.js} +1 -1
  34. package/dist/{chunk-M5GLQQWG.cjs → chunk-LJZRHVZV.cjs} +2 -2
  35. package/dist/{chunk-N76AMOKE.cjs → chunk-MOW3JMNG.cjs} +42 -42
  36. package/dist/{chunk-WKMUBATU.js → chunk-N4DFDI73.js} +1 -1
  37. package/dist/{chunk-GNZI3KYK.cjs → chunk-NKTNLJUJ.cjs} +49 -9
  38. package/dist/{chunk-TQOL6CF7.js → chunk-PJYG6FCF.js} +49 -9
  39. package/dist/{chunk-V3L7U63N.cjs → chunk-PP6BXVRL.cjs} +1 -1
  40. package/dist/{chunk-TFF2GTGN.cjs → chunk-PPFJHTW5.cjs} +24 -22
  41. package/dist/{chunk-6ZZKRH7R.js → chunk-QARCM66V.js} +3 -3
  42. package/dist/{chunk-5UEFBM2M.cjs → chunk-RD7RX52G.cjs} +18 -207
  43. package/dist/{chunk-CDP2AKMA.js → chunk-RV5DKZHU.js} +1 -1
  44. package/dist/chunk-S6OT6CTS.cjs +936 -0
  45. package/dist/{chunk-HUAISCUX.cjs → chunk-T7KQEMAE.cjs} +18 -18
  46. package/dist/{chunk-BQE3Y6ZO.cjs → chunk-THXFU3JB.cjs} +5 -5
  47. package/dist/{chunk-4ZC5QJE2.cjs → chunk-UTI5IITZ.cjs} +3 -3
  48. package/dist/{chunk-XSVUNSDJ.js → chunk-UUBO6RB5.js} +1 -1
  49. package/dist/{chunk-CZWUDFR3.cjs → chunk-UZU6DIZA.cjs} +52 -52
  50. package/dist/{chunk-M2TPMYJE.js → chunk-V6DT2CDH.js} +1 -1
  51. package/dist/{chunk-WV5WTOC6.cjs → chunk-W7GRGGBH.cjs} +16 -16
  52. package/dist/{chunk-23E5GI2U.js → chunk-WGN7AUKB.js} +2 -2
  53. package/dist/{chunk-YMREOA67.js → chunk-XK4SST43.js} +2 -2
  54. package/dist/{chunk-SOSBOS5T.cjs → chunk-XWOLPNBW.cjs} +22 -22
  55. package/dist/{chunk-ILP77UD6.js → chunk-YGQVCQTG.js} +1 -1
  56. package/dist/{chunk-GXLZZVR5.cjs → chunk-ZXNO3ZOX.cjs} +37 -37
  57. package/dist/color/index.cjs +6 -4
  58. package/dist/color/index.js +9 -7
  59. package/dist/export/index.cjs +8 -7
  60. package/dist/export/index.js +7 -6
  61. package/dist/extensions/index.cjs +11 -10
  62. package/dist/extensions/index.js +10 -9
  63. package/dist/gradient/index.cjs +104 -813
  64. package/dist/gradient/index.d.cts +1 -0
  65. package/dist/gradient/index.d.ts +1 -0
  66. package/dist/gradient/index.js +87 -796
  67. package/dist/gradient/sample.d.cts +69 -0
  68. package/dist/gradient/sample.d.ts +69 -0
  69. package/dist/image-editor/index.cjs +826 -778
  70. package/dist/image-editor/index.js +57 -9
  71. package/dist/index.cjs +17 -16
  72. package/dist/index.js +11 -10
  73. package/dist/paint-editor/controller.d.cts +31 -1
  74. package/dist/paint-editor/controller.d.ts +31 -1
  75. package/dist/paint-editor/index.cjs +403 -195
  76. package/dist/paint-editor/index.js +231 -23
  77. package/dist/paint-editor/sticker-tools.d.cts +1 -1
  78. package/dist/paint-editor/sticker-tools.d.ts +1 -1
  79. package/dist/paint-editor/stickers.d.cts +10 -3
  80. package/dist/paint-editor/stickers.d.ts +10 -3
  81. package/dist/paint-editor/ui.d.cts +10 -3
  82. package/dist/paint-editor/ui.d.ts +10 -3
  83. package/dist/tokens/index.cjs +4 -3
  84. package/dist/tokens/index.js +3 -2
  85. package/dist/typography/index.cjs +8 -7
  86. package/dist/typography/index.js +3 -2
  87. package/dist/vector/index.cjs +967 -966
  88. package/dist/vector/index.js +9 -8
  89. package/dist/video-editor/index.cjs +7 -6
  90. package/dist/video-editor/index.js +6 -5
  91. package/package.json +1 -1
  92. package/skills/pixerate-color/SKILL.md +3 -0
  93. package/skills/pixerate-image-editor/SKILL.md +1 -0
  94. package/skills/pixerate-paint-editor/SKILL.md +6 -2
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkWRZ6C4TUcjs = require('./chunk-WRZ6C4TU.cjs');
11
+ var _chunk3R5P3DVYcjs = require('./chunk-3R5P3DVY.cjs');
12
12
 
13
13
  // src/chart/ooxml.ts
14
14
  var CHART_OOXML_NS = "http://schemas.openxmlformats.org/drawingml/2006/chart";
@@ -111,11 +111,11 @@ function chartFromOoxml(xml, options = {}) {
111
111
  try {
112
112
  doc = new (parser(options))().parseFromString(xml, "application/xml");
113
113
  } catch (error) {
114
- return { spec: _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, {}).spec, issues: [{ path: "", message: `The chart XML could not be read: ${error.message}` }], unsupported, lossless: false };
114
+ return { spec: _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, {}).spec, issues: [{ path: "", message: `The chart XML could not be read: ${error.message}` }], unsupported, lossless: false };
115
115
  }
116
116
  const root = doc.documentElement;
117
117
  if (!root || root.localName !== "chartSpace" || doc.getElementsByTagName("parsererror").length) {
118
- return { spec: _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, {}).spec, issues: [{ path: "", message: "This is not a chart part: expected a c:chartSpace (or cx:chartSpace) root element." }], unsupported, lossless: false };
118
+ return { spec: _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, {}).spec, issues: [{ path: "", message: "This is not a chart part: expected a c:chartSpace (or cx:chartSpace) root element." }], unsupported, lossless: false };
119
119
  }
120
120
  if (_optionalChain([root, 'access', _14 => _14.namespaceURI, 'optionalAccess', _15 => _15.includes, 'call', _16 => _16("chartex")]) || kid(root, "chartData")) return readChartex(root, issues, unsupported);
121
121
  const chart = kid(root, "chart");
@@ -280,7 +280,7 @@ function chartFromOoxml(xml, options = {}) {
280
280
  }
281
281
  if (!types.length) {
282
282
  issues.push({ path: "plotArea", message: unsupported.length ? `The chart type is not supported: ${unsupported.join(", ")}.` : "The chart has no plot groups." });
283
- return { spec: _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, input).spec, issues, unsupported, lossless: false };
283
+ return { spec: _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, input).spec, issues, unsupported, lossless: false };
284
284
  }
285
285
  const first = types[0];
286
286
  const combo = types.some((t) => t !== first);
@@ -290,14 +290,14 @@ function chartFromOoxml(xml, options = {}) {
290
290
  if (!combo) {
291
291
  for (const s of series) if (s.axis) issues.push({ path: "series", message: `"${s.name}" is on a second value axis.` });
292
292
  }
293
- if (types.some((t) => !_chunkWRZ6C4TUcjs.isCartesianChart.call(void 0, t)) && combo) unsupported.push("a pie or radar mixed with other chart types");
293
+ if (types.some((t) => !_chunk3R5P3DVYcjs.isCartesianChart.call(void 0, t)) && combo) unsupported.push("a pie or radar mixed with other chart types");
294
294
  input.series = series;
295
295
  input.categories = categories.length ? categories : Array.from({ length: Math.max(0, ...series.map((s) => s.values.length)) }, (_, i) => `${i + 1}`);
296
296
  input.stacking = stacking;
297
297
  input.orientation = orientation;
298
298
  input.dataLabels = dataLabels;
299
299
  input.points = points || first !== "line";
300
- if (bool(val(groups[0], "varyColors")) && !combo && _chunkWRZ6C4TUcjs.isCartesianChart.call(void 0, first) && series.length === 1) input.varyColors = true;
300
+ if (bool(val(groups[0], "varyColors")) && !combo && _chunk3R5P3DVYcjs.isCartesianChart.call(void 0, first) && series.length === 1) input.varyColors = true;
301
301
  const readAxis = (a, fallback) => {
302
302
  const axis = { ...fallback, format: {} };
303
303
  if (!a) return axis;
@@ -324,12 +324,12 @@ function chartFromOoxml(xml, options = {}) {
324
324
  };
325
325
  const xy = first === "scatter" || first === "bubble";
326
326
  const catAxis = _nullishCoalesce(_nullishCoalesce(kid(plot, "catAx"), () => ( kid(plot, "dateAx"))), () => ( (xy ? valAxes.find((a) => !vertical(a)) : void 0)));
327
- input.xAxis = readAxis(catAxis, _chunkWRZ6C4TUcjs.defaultChartAxis.call(void 0, false));
327
+ input.xAxis = readAxis(catAxis, _chunk3R5P3DVYcjs.defaultChartAxis.call(void 0, false));
328
328
  if (kid(plot, "dateAx")) input.xAxis.kind = "date";
329
- input.yAxis = readAxis(_nullishCoalesce(_nullishCoalesce(primaryAxis, () => ( valAxes.find(vertical))), () => ( valAxes[0])), _chunkWRZ6C4TUcjs.defaultChartAxis.call(void 0, true));
329
+ input.yAxis = readAxis(_nullishCoalesce(_nullishCoalesce(primaryAxis, () => ( valAxes.find(vertical))), () => ( valAxes[0])), _chunk3R5P3DVYcjs.defaultChartAxis.call(void 0, true));
330
330
  const secondaryAxis = valAxes.find((a) => a !== primaryAxis && (xy ? vertical(a) && a !== primaryAxis : true) && a !== catAxis);
331
- if (series.some((s) => s.axis === "secondary") && secondaryAxis) input.yAxis2 = readAxis(secondaryAxis, _chunkWRZ6C4TUcjs.defaultChartAxis.call(void 0, false));
332
- const { spec, issues: specIssues } = _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, input);
331
+ if (series.some((s) => s.axis === "secondary") && secondaryAxis) input.yAxis2 = readAxis(secondaryAxis, _chunk3R5P3DVYcjs.defaultChartAxis.call(void 0, false));
332
+ const { spec, issues: specIssues } = _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, input);
333
333
  issues.push(...specIssues);
334
334
  const uniq = [...new Set(unsupported)];
335
335
  return { spec, issues, unsupported: uniq, lossless: uniq.length === 0 && specIssues.length === 0 };
@@ -382,7 +382,7 @@ function readChartex(root, issues, unsupported) {
382
382
  const type = layouts[layout];
383
383
  if (!type) {
384
384
  issues.push({ path: "plotArea", message: `The chart layout "${layout || "unknown"}" is not supported.` });
385
- return { spec: _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, {}).spec, issues, unsupported: [layout || "unknown chartex layout"], lossless: false };
385
+ return { spec: _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, {}).spec, issues, unsupported: [layout || "unknown chartex layout"], lossless: false };
386
386
  }
387
387
  if (layout === "paretoLine") unsupported.push("pareto line");
388
388
  const series = [];
@@ -409,18 +409,18 @@ function readChartex(root, issues, unsupported) {
409
409
  const first = data.get(_nullishCoalesce(_optionalChain([kid, 'call', _35 => _35(seriesEls[0], "dataId"), 'optionalAccess', _36 => _36.getAttribute, 'call', _37 => _37("val")]), () => ( "0")));
410
410
  if ((type === "treemap" || type === "sunburst") && _optionalChain([first, 'optionalAccess', _38 => _38.paths])) {
411
411
  const treeIssues = [];
412
- input.tree = _chunkWRZ6C4TUcjs.chartTreeFromRows.call(void 0, first.paths.map((path2, i) => ({ path: path2, value: _nullishCoalesce(first.values[i], () => ( 0)) })), treeIssues);
412
+ input.tree = _chunk3R5P3DVYcjs.chartTreeFromRows.call(void 0, first.paths.map((path2, i) => ({ path: path2, value: _nullishCoalesce(first.values[i], () => ( 0)) })), treeIssues);
413
413
  for (const t of treeIssues) issues.push({ path: "chartData", message: t.message });
414
414
  }
415
- const { spec, issues: specIssues } = _chunkWRZ6C4TUcjs.normalizeChartSpec.call(void 0, input);
415
+ const { spec, issues: specIssues } = _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, input);
416
416
  issues.push(...specIssues);
417
417
  return { spec, issues, unsupported, lossless: unsupported.length === 0 && specIssues.length === 0 };
418
418
  }
419
419
  var esc = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
420
420
  var hex = (color) => {
421
421
  if (!color) return null;
422
- const rgb = _chunkWRZ6C4TUcjs.parseChartColor.call(void 0, color);
423
- return rgb ? _chunkWRZ6C4TUcjs.chartRgbToHex.call(void 0, rgb).slice(1).toUpperCase() : null;
422
+ const rgb = _chunk3R5P3DVYcjs.parseChartColor.call(void 0, color);
423
+ return rgb ? _chunk3R5P3DVYcjs.chartRgbToHex.call(void 0, rgb).slice(1).toUpperCase() : null;
424
424
  };
425
425
  var fillXml = (color, line = false) => {
426
426
  const h = hex(color);
@@ -464,7 +464,7 @@ function errBarsXml(bars, dir) {
464
464
  var MARKER_OUT = { circle: "circle", square: "square", diamond: "diamond", triangle: "triangle", cross: "x", none: "none" };
465
465
  function chartToOoxml(spec) {
466
466
  const issues = [];
467
- const family = _chunkWRZ6C4TUcjs.chartFamily.call(void 0, spec);
467
+ const family = _chunk3R5P3DVYcjs.chartFamily.call(void 0, spec);
468
468
  let type = spec.type;
469
469
  if (family === "waterfall" || family === "histogram" || family === "box" || family === "funnel") {
470
470
  issues.push(`${spec.type} charts are written as bar charts: DrawingML has no ${spec.type} type (Office 2016 stores it as chartex).`);
@@ -512,7 +512,7 @@ function chartToOoxml(spec) {
512
512
  const ids = { cat: 500000001, val: 500000002, cat2: 500000003, val2: 500000004 };
513
513
  const xy = family === "xy" || type === "scatter" || type === "bubble";
514
514
  const pieLike = type === "pie" || type === "donut";
515
- const typed = (s) => pieLike || type === "radar" ? type : type === "bubble" ? "bubble" : xy ? "scatter" : _chunkWRZ6C4TUcjs.chartSeriesType.call(void 0, { type }, s);
515
+ const typed = (s) => pieLike || type === "radar" ? type : type === "bubble" ? "bubble" : xy ? "scatter" : _chunk3R5P3DVYcjs.chartSeriesType.call(void 0, { type }, s);
516
516
  const groups = [];
517
517
  visible.forEach((s) => {
518
518
  const kind = typed(s);
@@ -575,7 +575,7 @@ function chartToOoxml(spec) {
575
575
  return `<c:ser>${parts.join("")}</c:ser>`;
576
576
  };
577
577
  const dLbls = `<c:dLbls><c:showLegendKey val="0"/><c:showVal val="${spec.dataLabels ? 1 : 0}"/><c:showCatName val="0"/><c:showSerName val="0"/><c:showPercent val="0"/><c:showBubbleSize val="0"/></c:dLbls>`;
578
- const vary = _chunkWRZ6C4TUcjs.chartVariesColors.call(void 0, spec) ? 1 : 0;
578
+ const vary = _chunk3R5P3DVYcjs.chartVariesColors.call(void 0, spec) ? 1 : 0;
579
579
  const groupXml = groups.map((g) => {
580
580
  const axes2 = g.secondary ? `<c:axId val="${ids.cat2}"/><c:axId val="${ids.val2}"/>` : `<c:axId val="${ids.cat}"/><c:axId val="${ids.val}"/>`;
581
581
  const sers = g.series.map(({ s, index }) => serXml(g.kind, s, index)).join("");
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;
2
2
 
3
- var _chunkGNZI3KYKcjs = require('./chunk-GNZI3KYK.cjs');
3
+ var _chunkNKTNLJUJcjs = require('./chunk-NKTNLJUJ.cjs');
4
4
 
5
5
 
6
6
  var _chunkCVFAAZXEcjs = require('./chunk-CVFAAZXE.cjs');
@@ -51,7 +51,7 @@ var _chunkPQ3H2AANcjs = require('./chunk-PQ3H2AAN.cjs');
51
51
 
52
52
 
53
53
 
54
- var _chunk4ZC5QJE2cjs = require('./chunk-4ZC5QJE2.cjs');
54
+ var _chunkUTI5IITZcjs = require('./chunk-UTI5IITZ.cjs');
55
55
 
56
56
 
57
57
 
@@ -192,7 +192,7 @@ var toGamma = (c) => {
192
192
  function intoSpace(space, [r, g, b]) {
193
193
  if (space === "linear") return [toLinear(r), toLinear(g), toLinear(b)];
194
194
  if (space === "oklab") {
195
- const c = _chunk4ZC5QJE2cjs.rgbToOklab.call(void 0, r, g, b);
195
+ const c = _chunkUTI5IITZcjs.rgbToOklab.call(void 0, r, g, b);
196
196
  return [c.l, c.a, c.b];
197
197
  }
198
198
  return [r, g, b];
@@ -200,7 +200,7 @@ function intoSpace(space, [r, g, b]) {
200
200
  function outOfSpace(space, [x, y, z]) {
201
201
  if (space === "linear") return [toGamma(x), toGamma(y), toGamma(z)];
202
202
  if (space === "oklab") {
203
- const c = _chunk4ZC5QJE2cjs.oklabToRgb.call(void 0, { l: x, a: y, b: z, alpha: 1 });
203
+ const c = _chunkUTI5IITZcjs.oklabToRgb.call(void 0, { l: x, a: y, b: z, alpha: 1 });
204
204
  return [c.r, c.g, c.b];
205
205
  }
206
206
  return [clamp(x, 0, 1), clamp(y, 0, 1), clamp(z, 0, 1)];
@@ -2527,7 +2527,7 @@ function vectorExtrudeFaces(path, params) {
2527
2527
  // src/vector/brushstroke.ts
2528
2528
  var VECTOR_BRUSHSTROKE_SCALE = 2;
2529
2529
  function vectorBrushstrokeBrushes() {
2530
- return _chunkGNZI3KYKcjs.BUILTIN_BRUSHES.filter((b) => _chunkPQ3H2AANcjs.isBrushstrokeBrush.call(void 0, b));
2530
+ return _chunkNKTNLJUJcjs.BUILTIN_BRUSHES.filter((b) => _chunkPQ3H2AANcjs.isBrushstrokeBrush.call(void 0, b));
2531
2531
  }
2532
2532
  function vectorBrushstrokeBrush(id) {
2533
2533
  return _nullishCoalesce(vectorBrushstrokeBrushes().find((b) => b.id === id), () => ( null));
@@ -6,15 +6,15 @@ var _chunkA6QWKBJPcjs = require('./chunk-A6QWKBJP.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk5UEFBM2Mcjs = require('./chunk-5UEFBM2M.cjs');
9
+ var _chunk7AHBW2CQcjs = require('./chunk-7AHBW2CQ.cjs');
10
10
 
11
11
  // src/animation/color.ts
12
12
  function rgbToOklab2(r, g, b, alpha = 1) {
13
- const lab = _chunk5UEFBM2Mcjs.rgbToOklab.call(void 0, { r, g, b, a: alpha });
13
+ const lab = _chunk7AHBW2CQcjs.rgbToOklab.call(void 0, { r, g, b, a: alpha });
14
14
  return { l: lab.l, a: lab.a, b: lab.b, alpha: lab.alpha };
15
15
  }
16
16
  function oklabToRgb2(color) {
17
- const c = _chunk5UEFBM2Mcjs.oklabToRgb.call(void 0, { l: color.l, a: color.a, b: color.b, alpha: color.alpha });
17
+ const c = _chunk7AHBW2CQcjs.oklabToRgb.call(void 0, { l: color.l, a: color.a, b: color.b, alpha: color.alpha });
18
18
  const clamp01 = (v) => Math.min(1, Math.max(0, v));
19
19
  return {
20
20
  r: clamp01(c.r),
@@ -5,7 +5,7 @@ import {
5
5
  moveAnchorHandle,
6
6
  subpathSegment,
7
7
  subpathSegmentCount
8
- } from "./chunk-CU6ANS5L.js";
8
+ } from "./chunk-7YGBSFC6.js";
9
9
  import {
10
10
  segmentPoint
11
11
  } from "./chunk-WEIK3UYB.js";
@@ -7,7 +7,7 @@ var _chunkYN6JKAUEcjs = require('./chunk-YN6JKAUE.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkHUAISCUXcjs = require('./chunk-HUAISCUX.cjs');
10
+ var _chunkT7KQEMAEcjs = require('./chunk-T7KQEMAE.cjs');
11
11
 
12
12
 
13
13
  var _chunkHMGWFXECcjs = require('./chunk-HMGWFXEC.cjs');
@@ -35,10 +35,10 @@ var _chunkHMGWFXECcjs = require('./chunk-HMGWFXEC.cjs');
35
35
 
36
36
 
37
37
 
38
- var _chunkWV5WTOC6cjs = require('./chunk-WV5WTOC6.cjs');
38
+ var _chunkW7GRGGBHcjs = require('./chunk-W7GRGGBH.cjs');
39
39
 
40
40
 
41
- var _chunkWRZ6C4TUcjs = require('./chunk-WRZ6C4TU.cjs');
41
+ var _chunk3R5P3DVYcjs = require('./chunk-3R5P3DVY.cjs');
42
42
 
43
43
 
44
44
 
@@ -2296,13 +2296,13 @@ async function loadCharts(zip, Parser, root, rels, options) {
2296
2296
  const charts = /* @__PURE__ */ new Map();
2297
2297
  if (options.charts === false) return charts;
2298
2298
  for (const el of descendants(root, "chart")) {
2299
- if (el.namespaceURI !== _chunkHUAISCUXcjs.CHART_OOXML_NS) continue;
2299
+ if (el.namespaceURI !== _chunkT7KQEMAEcjs.CHART_OOXML_NS) continue;
2300
2300
  const id = attr(el, "id");
2301
2301
  const rel = id ? rels.get(id) : void 0;
2302
2302
  if (!id || !rel || rel.external || charts.has(id)) continue;
2303
2303
  const entry = zip.get(rel.target);
2304
2304
  if (!entry) continue;
2305
- const read = _chunkHUAISCUXcjs.chartFromOoxml.call(void 0, await zip.readText(entry), { DOMParser: Parser });
2305
+ const read = _chunkT7KQEMAEcjs.chartFromOoxml.call(void 0, await zip.readText(entry), { DOMParser: Parser });
2306
2306
  charts.set(id, {
2307
2307
  id: `chart-${charts.size + 1}`,
2308
2308
  path: rel.target,
@@ -2316,7 +2316,7 @@ async function loadCharts(zip, Parser, root, rels, options) {
2316
2316
  return charts;
2317
2317
  }
2318
2318
  function chartBlockHtml(chart) {
2319
- const [head, ...rows] = _chunkWRZ6C4TUcjs.chartDataToTable.call(void 0, chart.spec);
2319
+ const [head, ...rows] = _chunk3R5P3DVYcjs.chartDataToTable.call(void 0, chart.spec);
2320
2320
  const cell = (v, tag) => `<${tag}><p>${_chunkG43MNQ4Ccjs.escapeHtml.call(void 0, v === null || v === void 0 ? "" : String(v))}</p></${tag}>`;
2321
2321
  const table = `<table><tbody><tr>${head.map((h) => cell(h, "th")).join("")}</tr>${rows.map((r) => `<tr>${r.map((v, i) => cell(v, i ? "td" : "th")).join("")}</tr>`).join("")}</tbody></table>`;
2322
2322
  const caption = `<p>${_chunkG43MNQ4Ccjs.escapeHtml.call(void 0, `[Chart: ${chart.title || "untitled"}]`)}</p>`;
@@ -2969,7 +2969,7 @@ var ParagraphRenderer = (_class2 = class {
2969
2969
  };
2970
2970
  if (child.localName === "AlternateContent") {
2971
2971
  const branch = childElements(child).find(
2972
- (b) => descendants(b, "blip").length || descendants(b, "imagedata").length || descendants(b, "chart").some((el) => el.namespaceURI === _chunkHUAISCUXcjs.CHART_OOXML_NS)
2972
+ (b) => descendants(b, "blip").length || descendants(b, "imagedata").length || descendants(b, "chart").some((el) => el.namespaceURI === _chunkT7KQEMAEcjs.CHART_OOXML_NS)
2973
2973
  );
2974
2974
  if (branch) this.image(branch, format, push);
2975
2975
  return;
@@ -3036,7 +3036,7 @@ var ParagraphRenderer = (_class2 = class {
3036
3036
  /** Charts this paragraph contains, in order. */
3037
3037
  __init4() {this.charts = []}
3038
3038
  image(container, format, push) {
3039
- const chartRef = descendants(container, "chart").find((el) => el.namespaceURI === _chunkHUAISCUXcjs.CHART_OOXML_NS);
3039
+ const chartRef = descendants(container, "chart").find((el) => el.namespaceURI === _chunkT7KQEMAEcjs.CHART_OOXML_NS);
3040
3040
  const chart = chartRef ? this.part.charts.get(_nullishCoalesce(attr(chartRef, "id"), () => ( ""))) : void 0;
3041
3041
  if (chart) {
3042
3042
  if (!this.ctx.charts.includes(chart)) this.ctx.charts.push(chart);
@@ -3475,9 +3475,9 @@ function insertImportedDocument(target, content, options = {}) {
3475
3475
  if (!htmlSlice && from === to && !state.doc.resolve(from).parent.inlineContent) {
3476
3476
  from = to = _state.Selection.near(state.doc.resolve(from)).from;
3477
3477
  }
3478
- if (htmlSlice && _chunkWV5WTOC6cjs.sliceContainsTable.call(void 0, htmlSlice) && _chunkWV5WTOC6cjs.outermostTableDepth.call(void 0, state.doc.resolve(from)) >= 0) {
3478
+ if (htmlSlice && _chunkW7GRGGBHcjs.sliceContainsTable.call(void 0, htmlSlice) && _chunkW7GRGGBHcjs.outermostTableDepth.call(void 0, state.doc.resolve(from)) >= 0) {
3479
3479
  const tr2 = state.tr;
3480
- const end2 = _chunkWV5WTOC6cjs.insertSliceAfterTable.call(void 0, tr2, from, to, htmlSlice);
3480
+ const end2 = _chunkW7GRGGBHcjs.insertSliceAfterTable.call(void 0, tr2, from, to, htmlSlice);
3481
3481
  if (end2 !== null) {
3482
3482
  if (options.at === void 0) tr2.setSelection(_state.Selection.near(tr2.doc.resolve(end2), -1));
3483
3483
  view.dispatch(tr2.scrollIntoView().setMeta("uiEvent", "drop"));
@@ -3654,7 +3654,7 @@ var RichClipboard = _core.Extension.create({
3654
3654
  const slice = _chunk3AJMR7EGcjs.readRichClipboard.call(void 0, event, view.state.schema, mimeType);
3655
3655
  if (!slice) return false;
3656
3656
  event.preventDefault();
3657
- if (_chunkWV5WTOC6cjs.handleTablePasteWithoutNesting.call(void 0, view, event, slice)) return true;
3657
+ if (_chunkW7GRGGBHcjs.handleTablePasteWithoutNesting.call(void 0, view, event, slice)) return true;
3658
3658
  view.dispatch(
3659
3659
  view.state.tr.replaceSelection(slice).scrollIntoView().setMeta("paste", true).setMeta("uiEvent", "paste")
3660
3660
  );
@@ -4055,7 +4055,7 @@ function createOutlineStore(editor) {
4055
4055
  if (!editor || editor.isDestroyed) return EMPTY_SNAPSHOT;
4056
4056
  const headings = getOutline(editor);
4057
4057
  const activeId = _nullishCoalesce(_optionalChain([getActiveHeading, 'call', _153 => _153(editor, headings), 'optionalAccess', _154 => _154.id]), () => ( null));
4058
- const sameStructure = _chunkWV5WTOC6cjs.arraysEqual.call(void 0, snapshot.headings, headings, sameHeading);
4058
+ const sameStructure = _chunkW7GRGGBHcjs.arraysEqual.call(void 0, snapshot.headings, headings, sameHeading);
4059
4059
  if (sameStructure && snapshot.activeId === activeId) return snapshot;
4060
4060
  return {
4061
4061
  headings: sameStructure ? snapshot.headings : headings,
@@ -4103,7 +4103,7 @@ function navigateToHeading(editor, heading, options = {}) {
4103
4103
  editor.view.dispatch(tr);
4104
4104
  editor.view.focus();
4105
4105
  }
4106
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, editor.view, current.pos, behavior);
4106
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, editor.view, current.pos, behavior);
4107
4107
  return true;
4108
4108
  }
4109
4109
  function assignHeadingIds(state, types, generateId) {
@@ -4128,11 +4128,11 @@ function assignHeadingIds(state, types, generateId) {
4128
4128
  }
4129
4129
  var Outline = _core.Extension.create({
4130
4130
  name: "outline",
4131
- priority: _chunkWV5WTOC6cjs.STRUCTURE_PRIORITY,
4131
+ priority: _chunkW7GRGGBHcjs.STRUCTURE_PRIORITY,
4132
4132
  addOptions() {
4133
4133
  return {
4134
4134
  types: ["heading"],
4135
- generateId: () => _chunkWV5WTOC6cjs.generateStructureId.call(void 0, "h"),
4135
+ generateId: () => _chunkW7GRGGBHcjs.generateStructureId.call(void 0, "h"),
4136
4136
  onUpdate: void 0
4137
4137
  };
4138
4138
  },
@@ -4165,14 +4165,14 @@ var Outline = _core.Extension.create({
4165
4165
  tr.scrollIntoView();
4166
4166
  _optionalChain([view, 'optionalAccess', _161 => _161.focus, 'optionalCall', _162 => _162()]);
4167
4167
  }
4168
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
4168
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
4169
4169
  }
4170
4170
  return true;
4171
4171
  },
4172
4172
  scrollToHeading: (id, options = {}) => ({ state, dispatch, view }) => {
4173
4173
  const heading = findHeading(state, id);
4174
4174
  if (!heading) return false;
4175
- if (dispatch) _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
4175
+ if (dispatch) _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, heading.pos, options.behavior);
4176
4176
  return true;
4177
4177
  }
4178
4178
  };
@@ -4193,7 +4193,7 @@ var Outline = _core.Extension.create({
4193
4193
  apply: (tr, prev, _oldState, newState) => {
4194
4194
  if (!tr.docChanged) return prev;
4195
4195
  const next = computeOutline(newState.doc, types);
4196
- if (_chunkWV5WTOC6cjs.arraysEqual.call(void 0, prev, next, sameHeading)) return prev;
4196
+ if (_chunkW7GRGGBHcjs.arraysEqual.call(void 0, prev, next, sameHeading)) return prev;
4197
4197
  storage.headings = next;
4198
4198
  _optionalChain([onUpdate, 'call', _163 => _163(), 'optionalCall', _164 => _164(next)]);
4199
4199
  return next;
@@ -4211,7 +4211,7 @@ var Outline = _core.Extension.create({
4211
4211
  },
4212
4212
  onBeforeCreate() {
4213
4213
  const { types, generateId } = this.options;
4214
- _chunkWV5WTOC6cjs.syncInitialContent.call(void 0, this.editor, (state) => assignHeadingIds(state, types, generateId));
4214
+ _chunkW7GRGGBHcjs.syncInitialContent.call(void 0, this.editor, (state) => assignHeadingIds(state, types, generateId));
4215
4215
  }
4216
4216
  });
4217
4217
 
@@ -4381,7 +4381,7 @@ function syncTableOfContents(state, headingTypes) {
4381
4381
  node.attrs.minLevel,
4382
4382
  node.attrs.maxLevel
4383
4383
  );
4384
- if (!_chunkWV5WTOC6cjs.arraysEqual.call(void 0, _nullishCoalesce(node.attrs.entries, () => ( [])), entries, sameEntry)) {
4384
+ if (!_chunkW7GRGGBHcjs.arraysEqual.call(void 0, _nullishCoalesce(node.attrs.entries, () => ( [])), entries, sameEntry)) {
4385
4385
  tr = _nullishCoalesce(tr, () => ( state.tr));
4386
4386
  tr.setNodeMarkup(pos, void 0, { ...node.attrs, entries });
4387
4387
  }
@@ -4393,7 +4393,7 @@ function syncTableOfContents(state, headingTypes) {
4393
4393
  }
4394
4394
  var TableOfContents = _core.Node.create({
4395
4395
  name: "tableOfContents",
4396
- priority: _chunkWV5WTOC6cjs.STRUCTURE_PRIORITY - 5,
4396
+ priority: _chunkW7GRGGBHcjs.STRUCTURE_PRIORITY - 5,
4397
4397
  group: "block",
4398
4398
  atom: true,
4399
4399
  selectable: true,
@@ -4504,7 +4504,7 @@ var TableOfContents = _core.Node.create({
4504
4504
  return [
4505
4505
  new (0, _state.Plugin)({
4506
4506
  key: tableOfContentsPluginKey,
4507
- state: _chunkWV5WTOC6cjs.presenceStateSpec.call(void 0, [this.name]),
4507
+ state: _chunkW7GRGGBHcjs.presenceStateSpec.call(void 0, [this.name]),
4508
4508
  appendTransaction: (transactions, _oldState, newState) => {
4509
4509
  if (!transactions.some((tr) => tr.docChanged)) return null;
4510
4510
  if (!tableOfContentsPluginKey.getState(newState)) return null;
@@ -4528,7 +4528,7 @@ var TableOfContents = _core.Node.create({
4528
4528
  );
4529
4529
  view.focus();
4530
4530
  }
4531
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, heading.pos);
4531
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, heading.pos);
4532
4532
  return true;
4533
4533
  }
4534
4534
  }
@@ -4538,7 +4538,7 @@ var TableOfContents = _core.Node.create({
4538
4538
  },
4539
4539
  onBeforeCreate() {
4540
4540
  const { headingTypes } = this.options;
4541
- _chunkWV5WTOC6cjs.syncInitialContent.call(void 0, this.editor, (state) => syncTableOfContents(state, headingTypes));
4541
+ _chunkW7GRGGBHcjs.syncInitialContent.call(void 0, this.editor, (state) => syncTableOfContents(state, headingTypes));
4542
4542
  }
4543
4543
  });
4544
4544
 
@@ -4596,7 +4596,7 @@ function syncFootnotes(tr, options = {}) {
4596
4596
  const listType = schema.nodes[LIST];
4597
4597
  const itemType = schema.nodes[ITEM];
4598
4598
  if (!listType || !itemType) return false;
4599
- const generateId = _nullishCoalesce(options.generateId, () => ( (() => _chunkWV5WTOC6cjs.generateStructureId.call(void 0, "fn"))));
4599
+ const generateId = _nullishCoalesce(options.generateId, () => ( (() => _chunkW7GRGGBHcjs.generateStructureId.call(void 0, "fn"))));
4600
4600
  const refs = [];
4601
4601
  const lists = [];
4602
4602
  const existing = /* @__PURE__ */ new Map();
@@ -4680,7 +4680,7 @@ function findReferences(doc, id) {
4680
4680
  }
4681
4681
  var FootnoteReference = _core.Node.create({
4682
4682
  name: REFERENCE,
4683
- priority: _chunkWV5WTOC6cjs.STRUCTURE_PRIORITY - 5,
4683
+ priority: _chunkW7GRGGBHcjs.STRUCTURE_PRIORITY - 5,
4684
4684
  group: "inline",
4685
4685
  inline: true,
4686
4686
  atom: true,
@@ -4688,7 +4688,7 @@ var FootnoteReference = _core.Node.create({
4688
4688
  addOptions() {
4689
4689
  return {
4690
4690
  HTMLAttributes: {},
4691
- generateId: () => _chunkWV5WTOC6cjs.generateStructureId.call(void 0, "fn")
4691
+ generateId: () => _chunkW7GRGGBHcjs.generateStructureId.call(void 0, "fn")
4692
4692
  };
4693
4693
  },
4694
4694
  addAttributes() {
@@ -4799,7 +4799,7 @@ var FootnoteReference = _core.Node.create({
4799
4799
  _state.TextSelection.create(tr.doc, footnote.pos + footnote.node.nodeSize - 2)
4800
4800
  );
4801
4801
  tr.scrollIntoView();
4802
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, footnote.pos);
4802
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, footnote.pos);
4803
4803
  }
4804
4804
  return true;
4805
4805
  },
@@ -4809,7 +4809,7 @@ var FootnoteReference = _core.Node.create({
4809
4809
  if (dispatch) {
4810
4810
  tr.setSelection(_state.NodeSelection.create(tr.doc, ref.pos));
4811
4811
  tr.scrollIntoView();
4812
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, ref.pos);
4812
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, ref.pos);
4813
4813
  }
4814
4814
  return true;
4815
4815
  }
@@ -4821,7 +4821,7 @@ var FootnoteReference = _core.Node.create({
4821
4821
  return [
4822
4822
  new (0, _state.Plugin)({
4823
4823
  key: footnotesPluginKey,
4824
- state: _chunkWV5WTOC6cjs.presenceStateSpec.call(void 0, [REFERENCE, LIST]),
4824
+ state: _chunkW7GRGGBHcjs.presenceStateSpec.call(void 0, [REFERENCE, LIST]),
4825
4825
  appendTransaction: (transactions, _oldState, newState) => {
4826
4826
  if (!transactions.some((tr2) => tr2.docChanged)) return null;
4827
4827
  if (!footnotesPluginKey.getState(newState)) return null;
@@ -4842,7 +4842,7 @@ var FootnoteReference = _core.Node.create({
4842
4842
  },
4843
4843
  onBeforeCreate() {
4844
4844
  const { generateId } = this.options;
4845
- _chunkWV5WTOC6cjs.syncInitialContent.call(void 0, this.editor, (state) => {
4845
+ _chunkW7GRGGBHcjs.syncInitialContent.call(void 0, this.editor, (state) => {
4846
4846
  const tr = state.tr;
4847
4847
  return syncFootnotes(tr, { generateId }) ? tr : null;
4848
4848
  });
@@ -4982,7 +4982,7 @@ var Bookmark = _core.Mark.create({
4982
4982
  addOptions() {
4983
4983
  return {
4984
4984
  HTMLAttributes: {},
4985
- generateId: () => _chunkWV5WTOC6cjs.generateStructureId.call(void 0, "bm")
4985
+ generateId: () => _chunkW7GRGGBHcjs.generateStructureId.call(void 0, "bm")
4986
4986
  };
4987
4987
  },
4988
4988
  addAttributes() {
@@ -5067,7 +5067,7 @@ var Bookmark = _core.Mark.create({
5067
5067
  tr.setSelection(_state.TextSelection.create(tr.doc, bookmark.from, bookmark.to));
5068
5068
  tr.scrollIntoView();
5069
5069
  const domPos = state.doc.resolve(bookmark.from);
5070
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, domPos.before(domPos.depth));
5070
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, domPos.before(domPos.depth));
5071
5071
  }
5072
5072
  return true;
5073
5073
  }
@@ -5132,7 +5132,7 @@ function syncCrossReferences(state, headingTypes) {
5132
5132
  }
5133
5133
  var CrossReference = _core.Node.create({
5134
5134
  name: NAME,
5135
- priority: _chunkWV5WTOC6cjs.STRUCTURE_PRIORITY - 5,
5135
+ priority: _chunkW7GRGGBHcjs.STRUCTURE_PRIORITY - 5,
5136
5136
  group: "inline",
5137
5137
  inline: true,
5138
5138
  atom: true,
@@ -5234,7 +5234,7 @@ var CrossReference = _core.Node.create({
5234
5234
  if (dispatch) {
5235
5235
  tr.setSelection(_state.TextSelection.create(tr.doc, range.from, range.to));
5236
5236
  tr.scrollIntoView();
5237
- _chunkWV5WTOC6cjs.scrollDomAtPos.call(void 0, view, range.blockPos);
5237
+ _chunkW7GRGGBHcjs.scrollDomAtPos.call(void 0, view, range.blockPos);
5238
5238
  }
5239
5239
  return true;
5240
5240
  }
@@ -5246,7 +5246,7 @@ var CrossReference = _core.Node.create({
5246
5246
  return [
5247
5247
  new (0, _state.Plugin)({
5248
5248
  key: crossReferencePluginKey,
5249
- state: _chunkWV5WTOC6cjs.presenceStateSpec.call(void 0, [NAME]),
5249
+ state: _chunkW7GRGGBHcjs.presenceStateSpec.call(void 0, [NAME]),
5250
5250
  appendTransaction: (transactions, _oldState, newState) => {
5251
5251
  if (!transactions.some((tr) => tr.docChanged)) return null;
5252
5252
  if (!crossReferencePluginKey.getState(newState)) return null;
@@ -5265,7 +5265,7 @@ var CrossReference = _core.Node.create({
5265
5265
  },
5266
5266
  onBeforeCreate() {
5267
5267
  const { headingTypes } = this.options;
5268
- _chunkWV5WTOC6cjs.syncInitialContent.call(void 0, this.editor, (state) => syncCrossReferences(state, headingTypes));
5268
+ _chunkW7GRGGBHcjs.syncInitialContent.call(void 0, this.editor, (state) => syncCrossReferences(state, headingTypes));
5269
5269
  }
5270
5270
  });
5271
5271
 
@@ -5520,7 +5520,7 @@ var FindReplace = _core.Extension.create({
5520
5520
  if (!s || !s.active || s.currentIndex < 0 || !s.matches[s.currentIndex]) return false;
5521
5521
  if (dispatch) {
5522
5522
  _history.closeHistory.call(void 0, tr);
5523
- const [end] = _chunkWV5WTOC6cjs.applyReplacements.call(void 0, tr, [s.matches[s.currentIndex]]);
5523
+ const [end] = _chunkW7GRGGBHcjs.applyReplacements.call(void 0, tr, [s.matches[s.currentIndex]]);
5524
5524
  tr.setSelection(_state.TextSelection.create(tr.doc, end)).scrollIntoView();
5525
5525
  meta(tr, { type: "replaced", anchor: end, count: 1 });
5526
5526
  }
@@ -5531,7 +5531,7 @@ var FindReplace = _core.Extension.create({
5531
5531
  if (!s || !s.active || !s.matches.length) return false;
5532
5532
  if (dispatch) {
5533
5533
  _history.closeHistory.call(void 0, tr);
5534
- const ends = _chunkWV5WTOC6cjs.applyReplacements.call(void 0, tr, s.matches);
5534
+ const ends = _chunkW7GRGGBHcjs.applyReplacements.call(void 0, tr, s.matches);
5535
5535
  meta(tr, { type: "replaced", anchor: ends[ends.length - 1], count: s.matches.length });
5536
5536
  }
5537
5537
  return true;
@@ -5563,7 +5563,7 @@ var FindReplace = _core.Extension.create({
5563
5563
  if (!s.active || !s.query) {
5564
5564
  return { ...s, matches: [], currentIndex: -1, error: null, truncated: false };
5565
5565
  }
5566
- const result = _chunkWV5WTOC6cjs.searchDocument.call(void 0, doc, s.query, s.options, {
5566
+ const result = _chunkW7GRGGBHcjs.searchDocument.call(void 0, doc, s.query, s.options, {
5567
5567
  replacement: s.replacement,
5568
5568
  clipboardText: safeClipboard(options.getClipboardText),
5569
5569
  timeLimitMs: options.timeLimitMs,
@@ -6150,7 +6150,7 @@ function createRichTextPreset(options = {}) {
6150
6150
  })
6151
6151
  ];
6152
6152
  if (options.table !== false) {
6153
- extensions2.push(..._chunkWV5WTOC6cjs.createTableExtensions.call(void 0, optionObject(options.table)));
6153
+ extensions2.push(..._chunkW7GRGGBHcjs.createTableExtensions.call(void 0, optionObject(options.table)));
6154
6154
  }
6155
6155
  if (characterLimit) {
6156
6156
  extensions2.push(
@@ -6207,7 +6207,7 @@ function createRichTextPreset(options = {}) {
6207
6207
  }
6208
6208
  if (options.comments) {
6209
6209
  extensions2.push(
6210
- typeof options.comments === "object" ? _chunkWV5WTOC6cjs.Comments.configure(options.comments) : _chunkWV5WTOC6cjs.Comments
6210
+ typeof options.comments === "object" ? _chunkW7GRGGBHcjs.Comments.configure(options.comments) : _chunkW7GRGGBHcjs.Comments
6211
6211
  );
6212
6212
  }
6213
6213
  if (options.trackChanges) {
@@ -6257,8 +6257,8 @@ function createRichTextPreset(options = {}) {
6257
6257
  }
6258
6258
  if (options.chart) {
6259
6259
  const { sparkline = true, ...chartOptions } = optionObject(options.chart);
6260
- extensions2.push(_chunkWV5WTOC6cjs.Chart.configure(chartOptions));
6261
- if (sparkline) extensions2.push(_chunkWV5WTOC6cjs.Sparkline.configure(optionObject(sparkline)));
6260
+ extensions2.push(_chunkW7GRGGBHcjs.Chart.configure(chartOptions));
6261
+ if (sparkline) extensions2.push(_chunkW7GRGGBHcjs.Sparkline.configure(optionObject(sparkline)));
6262
6262
  }
6263
6263
  if (options.paragraphStyles) {
6264
6264
  extensions2.push(ParagraphStyles.configure(optionObject(options.paragraphStyles)));
@@ -6399,7 +6399,7 @@ function createFindReplaceCommands(editor, options = {}) {
6399
6399
  ];
6400
6400
  }
6401
6401
  function validateFindPattern(query, options = {}) {
6402
- const result = _chunkWV5WTOC6cjs.compileFindPattern.call(void 0, query, options);
6402
+ const result = _chunkW7GRGGBHcjs.compileFindPattern.call(void 0, query, options);
6403
6403
  return result.ok ? null : result.error;
6404
6404
  }
6405
6405
 
@@ -6408,8 +6408,8 @@ var PARAMS = {
6408
6408
  insertTable: {
6409
6409
  type: "object",
6410
6410
  properties: {
6411
- rows: { type: "integer", minimum: 1, maximum: _chunkWV5WTOC6cjs.MAX_TABLE_ROWS, description: "Rows (default 3)." },
6412
- cols: { type: "integer", minimum: 1, maximum: _chunkWV5WTOC6cjs.MAX_TABLE_COLUMNS, description: "Columns (default 3)." },
6411
+ rows: { type: "integer", minimum: 1, maximum: _chunkW7GRGGBHcjs.MAX_TABLE_ROWS, description: "Rows (default 3)." },
6412
+ cols: { type: "integer", minimum: 1, maximum: _chunkW7GRGGBHcjs.MAX_TABLE_COLUMNS, description: "Columns (default 3)." },
6413
6413
  withHeaderRow: { type: "boolean", description: "Make the first row a header row (default true)." }
6414
6414
  },
6415
6415
  additionalProperties: false
@@ -6440,7 +6440,7 @@ function createTableCommands(editor, options = {}) {
6440
6440
  const group = _nullishCoalesce(options.group, () => ( "Table"));
6441
6441
  const scope = options.scope ? { scope: options.scope } : {};
6442
6442
  const focus = _nullishCoalesce(options.focus, () => ( true));
6443
- return _chunkWV5WTOC6cjs.TABLE_ACTIONS.map(({ action, label, description, keywords }) => {
6443
+ return _chunkW7GRGGBHcjs.TABLE_ACTIONS.map(({ action, label, description, keywords }) => {
6444
6444
  const params = PARAMS[action];
6445
6445
  return {
6446
6446
  id: `${prefix}${action}`,
@@ -6450,13 +6450,13 @@ function createTableCommands(editor, options = {}) {
6450
6450
  description,
6451
6451
  ...params ? { params } : {},
6452
6452
  ...scope,
6453
- enabled: (_ctx, p) => _chunkWV5WTOC6cjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {}))),
6453
+ enabled: (_ctx, p) => _chunkW7GRGGBHcjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {}))),
6454
6454
  run: (_ctx, p) => {
6455
- if (!_chunkWV5WTOC6cjs.runTableAction.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})), { focus })) {
6456
- const reason = _chunkWV5WTOC6cjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})));
6455
+ if (!_chunkW7GRGGBHcjs.runTableAction.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})), { focus })) {
6456
+ const reason = _chunkW7GRGGBHcjs.getTableActionState.call(void 0, editor, action, _nullishCoalesce(p, () => ( {})));
6457
6457
  throw new Error(reason === true ? `${label} did not change the document.` : reason);
6458
6458
  }
6459
- const state = _chunkWV5WTOC6cjs.getTableState.call(void 0, editor);
6459
+ const state = _chunkW7GRGGBHcjs.getTableState.call(void 0, editor);
6460
6460
  return {
6461
6461
  done: true,
6462
6462
  table: state.inTable ? { rows: state.rows, columns: state.columns, row: state.row, column: state.column } : null
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  oklabToRgb,
8
8
  rgbToOklab
9
- } from "./chunk-MHLU6GRJ.js";
9
+ } from "./chunk-F67XMVDI.js";
10
10
 
11
11
  // src/animation/color.ts
12
12
  function rgbToOklab2(r, g, b, alpha = 1) {