@sheetxl/io-xlsx 0.8.0-beta.11 → 0.8.0-beta.13

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 (82) hide show
  1. package/browser/esm/{Bs0EzhdU8WgGfPzf.mjs → 20e8E-6B9lZDdDO3.mjs} +2 -2
  2. package/browser/esm/{DICL6ecj9BdJv8aX.mjs → B4_m1DDdERBw_oc_.mjs} +4 -4
  3. package/browser/esm/{CuAXx5i4uqTz-mMY.mjs → B8HGBRlYw3gtV6cS.mjs} +1 -1
  4. package/browser/esm/{CzFYJPxmLyKgEKF0.mjs → BUnVDknxJ3z7Byym.mjs} +2 -2
  5. package/browser/esm/{yveeVJ6hKDI5KDEz.mjs → BZULU4MreyJ0WsDY.mjs} +1243 -1083
  6. package/browser/esm/{Cv3R6fGatARKedSn.mjs → BduVw3dFdh9sSGv_.mjs} +2560 -2120
  7. package/browser/esm/CM4k1dv3DNPThvDz.mjs +24 -0
  8. package/browser/esm/{CZ9I80og75SDRjv0.mjs → CkEGcTzeyh7cqVVb.mjs} +2 -2
  9. package/browser/esm/{BiDqExNXiY7ykk8E.mjs → DmW0VCJFl3eX7pBV.mjs} +199 -198
  10. package/browser/esm/{DatIA9fZbEPjW4bh.mjs → eFR-PmxEV53J-933.mjs} +1782 -1266
  11. package/browser/esm/index.mjs +2 -2
  12. package/browser/esm/{CLWsOc6DO8l1G_LF.mjs → khCH6SyDFBiHzmSl.mjs} +816 -764
  13. package/node/esm/BqB-dnUZaszNS--K.mjs +6367 -0
  14. package/node/esm/{Bpqm_PpGLpdjL47-.mjs → ByC9KtkF09muIv1I.mjs} +257 -256
  15. package/node/esm/{CAJxmJdobUbzpUz5.mjs → CHElwgFJ32Hh_gHU.mjs} +2 -2
  16. package/node/esm/{fopiRR7OiVoEiF7B.mjs → CIpg0EBGoVM58ajd.mjs} +2 -2
  17. package/node/esm/{DScqM1V4wPntNP6-.mjs → CJt_Kh2EU8DlMcus.mjs} +2046 -1588
  18. package/node/esm/{B9Zn6H1RV07Ob377.mjs → COzTSkHGuyKdKaxO.mjs} +512 -460
  19. package/node/esm/{ipiyzn5Pfohw2afB.mjs → Cc4XXs0Y2lL-2Et9.mjs} +1350 -1184
  20. package/node/esm/{CxlSbH7mmnEEsqmX.mjs → DmvVllQAwUtHEJbX.mjs} +1 -1
  21. package/node/esm/index.mjs +4 -4
  22. package/package.json +3 -3
  23. package/types/src/AutoFilterRules.d.ts +0 -42
  24. package/types/src/DataTableFormula.d.ts +26 -0
  25. package/types/src/DataValidationRules.d.ts +0 -5
  26. package/types/src/ExcelCalcStamp.d.ts +0 -36
  27. package/types/src/ExcelCompat.d.ts +0 -140
  28. package/types/src/ExcelFunctionFacts.d.ts +0 -272
  29. package/types/src/ExcelReservedNames.d.ts +0 -64
  30. package/types/src/KnownFonts.d.ts +0 -13
  31. package/types/src/LegacyFormula.d.ts +0 -58
  32. package/types/src/Plugin.d.ts +3 -3
  33. package/types/src/SheetKinds.d.ts +0 -15
  34. package/types/src/SourcePackage.d.ts +0 -44
  35. package/types/src/Types.d.ts +2 -3
  36. package/types/src/chart/ChartSpaceXml.d.ts +2 -1
  37. package/types/src/chart/_chartCodecs.d.ts +2 -0
  38. package/types/src/chart/_chartExStyle.d.ts +0 -9
  39. package/types/src/reader/CellControls.d.ts +18 -0
  40. package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
  41. package/types/src/reader/LibreOfficeDataTable.d.ts +3 -2
  42. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
  43. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +1 -11
  44. package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +18 -0
  45. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
  46. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +6 -0
  47. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
  48. package/types/src/reader/domVisitors/index.d.ts +2 -4
  49. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +1 -0
  50. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
  51. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +16 -3
  52. package/types/src/richValue/ErrorRichValueHandler.d.ts +22 -0
  53. package/types/src/richValue/IRichValueHandler.d.ts +109 -0
  54. package/types/src/richValue/LocalImageRichValueHandler.d.ts +18 -0
  55. package/types/src/richValue/RichDataParts.d.ts +69 -0
  56. package/types/src/richValue/RichRecordWriter.d.ts +61 -0
  57. package/types/src/richValue/RichValueHandlers.d.ts +25 -0
  58. package/types/src/richValue/RichValueResolver.d.ts +54 -0
  59. package/types/src/richValue/WebImageRichValueHandler.d.ts +37 -0
  60. package/types/src/richValue/index.d.ts +7 -0
  61. package/types/src/utils/VmlNoteStyle.d.ts +0 -19
  62. package/types/src/vba/VBAProject.d.ts +0 -19
  63. package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
  64. package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
  65. package/types/src/writer/builder/Types.d.ts +0 -30
  66. package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
  67. package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +8 -0
  68. package/types/src/writer/emitters/RichValuePartsEmitters.d.ts +36 -0
  69. package/types/src/writer/emitters/RichValueRelEmitter.d.ts +12 -0
  70. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +4 -3
  71. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +3 -2
  72. package/types/src/writer/emitters/RichValueWebImageEmitter.d.ts +24 -0
  73. package/types/src/writer/emitters/SlicerEmitter.d.ts +5 -2
  74. package/types/src/writer/emitters/StylesEmitter.d.ts +2 -0
  75. package/types/src/writer/utils/CellControlComplements.d.ts +29 -0
  76. package/types/src/writer/utils/DefaultRows.d.ts +0 -16
  77. package/types/src/writer/utils/DummyFunction.d.ts +0 -23
  78. package/types/src/writer/utils/RichValueCollector.d.ts +81 -129
  79. package/types/src/writer/utils/SheetStyleLayout.d.ts +18 -5
  80. package/node/esm/DD-yXSBzvDYy0TX5.mjs +0 -5842
  81. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +0 -7
  82. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +0 -6
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.11
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.13
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -90,13 +90,13 @@ var r = [
90
90
  }, ue = (e, t) => t[((e) => {
91
91
  let t = e.indexOf(":");
92
92
  return t === -1 ? "" : e.slice(0, t);
93
- })(e.qname)], de = class {
93
+ })(e.qname)], v = class {
94
94
  constructor() {
95
95
  this._parts = [];
96
96
  }
97
97
  open(e, t, n = !1) {
98
98
  let r = "<" + e;
99
- if (t) for (let [e, n] of t) r += ` ${e}="${fe(n)}"`;
99
+ if (t) for (let [e, n] of t) r += ` ${e}="${de(n)}"`;
100
100
  return this._parts.push(r + (n ? "/>" : ">")), this;
101
101
  }
102
102
  close(e) {
@@ -114,26 +114,26 @@ var r = [
114
114
  toString() {
115
115
  return this._parts.join("");
116
116
  }
117
- }, fe = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;"), v = (e) => e === "1" || e === "true" || e !== "0" && e !== "false" && null, y = (e) => e ? "1" : "0", pe = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, b = (e) => {
118
- let t = v(e);
119
- return t === null ? pe.test(e) ? String(Number(e)) : e : y(t);
120
- }, me = /* @__PURE__ */ new Set(/* @__PURE__ */ "date1904.roundedCorners.autoTitleDeleted.plotVisOnly.showDLblsOverMax.varyColors.marker.smooth.invertIfNegative.bubble3D.delete.showLegendKey.showVal.showCatName.showSerName.showPercent.showBubbleSize.showLeaderLines.overlay.rAngAx.showHorzBorder.showVertBorder.showOutline.showKeys.auto.noMultiLvlLbl.wireframe.showNegBubbles.autoUpdate.applyToFront.applyToSides.applyToEnd.chartObject.data.formatting.selection.userInterface".split(".")), he = (e, t, n = !1) => {
117
+ }, de = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;"), y = (e) => e === "1" || e === "true" || e !== "0" && e !== "false" && null, b = (e) => e ? "1" : "0", fe = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, x = (e) => {
118
+ let t = y(e);
119
+ return t === null ? fe.test(e) ? String(Number(e)) : e : b(t);
120
+ }, pe = /* @__PURE__ */ new Set(/* @__PURE__ */ "date1904.roundedCorners.autoTitleDeleted.plotVisOnly.showDLblsOverMax.varyColors.marker.smooth.invertIfNegative.bubble3D.delete.showLegendKey.showVal.showCatName.showSerName.showPercent.showBubbleSize.showLeaderLines.overlay.rAngAx.showHorzBorder.showVertBorder.showOutline.showKeys.auto.noMultiLvlLbl.wireframe.showNegBubbles.autoUpdate.applyToFront.applyToSides.applyToEnd.chartObject.data.formatting.selection.userInterface".split(".")), me = (e, t, n = !1) => {
121
121
  let r = _(e, t), i = ue(e, r) ?? "", a = [];
122
122
  for (let [t, n] of g(e)) {
123
123
  if (t === "xmlns" || t.startsWith("xmlns:")) continue;
124
124
  let e = t.indexOf(":"), i = e === -1 ? t : `{${r[t.slice(0, e)] ?? t.slice(0, e)}}${t.slice(e + 1)}`;
125
- a.push(`${i}=${JSON.stringify(b(n))}`);
125
+ a.push(`${i}=${JSON.stringify(x(n))}`);
126
126
  }
127
127
  let o = u(e), s = o.length === 0 ? e.children.join("") : "";
128
- a.length === 0 && o.length === 0 && s === "" && ae(i) && me.has(e.name) && a.push("val=\"1\""), a.sort();
128
+ a.length === 0 && o.length === 0 && s === "" && ae(i) && pe.has(e.name) && a.push("val=\"1\""), a.sort();
129
129
  let c = `<{${i}}${e.name}${a.length ? " " + a.join(" ") : ""}>`;
130
130
  if (o.length > 0) {
131
131
  let t = [];
132
- for (let i of e.children) typeof i == "string" ? i.trim() !== "" && t.push(JSON.stringify(i)) : t.push(he(i, r, n));
132
+ for (let i of e.children) typeof i == "string" ? i.trim() !== "" && t.push(JSON.stringify(i)) : t.push(me(i, r, n));
133
133
  n && t.sort(), c += t.join("");
134
134
  } else s !== "" && (c += JSON.stringify(s));
135
135
  return c + "</>";
136
- }, ge = class {
136
+ }, he = class {
137
137
  constructor(e, t) {
138
138
  this.xml = e, this.rootScope = t, this.kept = 0, this.reordered = 0;
139
139
  let n = Object.values(t).find(ae) ?? f, r = oe(t[h.a]) ? t[h.a] : p;
@@ -154,22 +154,22 @@ var r = [
154
154
  }
155
155
  return n;
156
156
  }
157
- }, _e = (e, t) => {
157
+ }, ge = (e, t) => {
158
158
  switch (e) {
159
159
  case "c": return ae(t);
160
160
  case "c15": return t === ne;
161
161
  case "cx": return se(t);
162
162
  default: return oe(t);
163
163
  }
164
- }, x = (e, t, n, r) => {
164
+ }, S = (e, t, n, r) => {
165
165
  let i = _(e, n), a = {}, o, s;
166
166
  for (let [n, r] of g(e)) {
167
167
  let e = t.attributes?.find((e) => e.name === n), i = e ? e.read(r) : void 0;
168
- e && i !== void 0 && b(e.write(i)) === b(r) ? a[e.key] = i : (o ??= {})[n] = r;
168
+ e && i !== void 0 && x(e.write(i)) === x(r) ? a[e.key] = i : (o ??= {})[n] = r;
169
169
  }
170
170
  let c = -1, l = "", d = {};
171
171
  for (let n of u(e)) {
172
- let e = _(n, i), o = ue(n, e), u = t.fields.findIndex((e) => e.tags.includes(n.name) && _e(e.ns, o)), f = u === -1 ? null : t.fields[u], ee = f && !f.many ? f.get ? f.get(a) : a[f.key] : void 0, p = u > c || u === c && !!f?.many;
172
+ let e = _(n, i), o = ue(n, e), u = t.fields.findIndex((e) => e.tags.includes(n.name) && ge(e.ns, o)), f = u === -1 ? null : t.fields[u], ee = f && !f.many ? f.get ? f.get(a) : a[f.key] : void 0, p = u > c || u === c && !!f?.many;
173
173
  if (f && ee === void 0 && (p || !f.many)) {
174
174
  let t = f.read(n, e, r);
175
175
  if (t !== void 0) {
@@ -184,7 +184,7 @@ var r = [
184
184
  te?.many && (m.at = d[te.key]), (s ??= []).push(m);
185
185
  }
186
186
  return (o || s) && (a.unknown = {}, s && (a.unknown.elements = s), o && (a.unknown.attributes = o)), t.afterRead?.(a, e, i, r), a;
187
- }, S = (e, t, n, r) => {
187
+ }, C = (e, t, n, r) => {
188
188
  let i = [];
189
189
  for (let e of r.attributes ?? []) {
190
190
  let t = n[e.key];
@@ -193,7 +193,7 @@ var r = [
193
193
  let a = n.unknown;
194
194
  if (a?.attributes) for (let e of Object.keys(a.attributes)) i.push([e, a.attributes[e]]);
195
195
  for (let e of r.declares?.(n) ?? []) i.some(([t]) => t === e[0]) || i.push(e);
196
- let o = new de(), s = a?.elements ? [...a.elements] : [], c = (e) => {
196
+ let o = new v(), s = a?.elements ? [...a.elements] : [], c = (e) => {
197
197
  for (let t = 0; t < s.length; t++) e(s[t]) && (o.raw(s[t].xml), s.splice(t--, 1));
198
198
  };
199
199
  c((e) => e.after === "");
@@ -208,7 +208,7 @@ var r = [
208
208
  c(() => !0);
209
209
  let l = o.toString();
210
210
  l === "" ? e.open(t, i, !0) : e.open(t, i).raw(l).close(t);
211
- }, C = (e, t) => `${h[e]}:${t}`, w = (e, t, n = e, r = "c") => ({
211
+ }, w = (e, t) => `${h[e]}:${t}`, T = (e, t, n = e, r = "c") => ({
212
212
  tags: [e],
213
213
  key: n,
214
214
  ns: r,
@@ -223,16 +223,16 @@ var r = [
223
223
  return t;
224
224
  })(e);
225
225
  if (n === void 0) return;
226
- if (t === "bool") return n === null || (v(n) ?? void 0);
226
+ if (t === "bool") return n === null || (y(n) ?? void 0);
227
227
  if (n === null) return;
228
228
  if (t === "str") return n;
229
229
  let r = Number(n);
230
- return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) && b(String(r)) === b(n) ? r : void 0;
230
+ return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) && x(String(r)) === x(n) ? r : void 0;
231
231
  },
232
232
  write: (n, i) => {
233
- n.val(C(r, e), t === "bool" ? y(i) : String(i));
233
+ n.val(w(r, e), t === "bool" ? b(i) : String(i));
234
234
  }
235
- }), T = (e, t = e, n = "c") => ({
235
+ }), E = (e, t = e, n = "c") => ({
236
236
  tags: [e],
237
237
  key: t,
238
238
  ns: n,
@@ -240,48 +240,48 @@ var r = [
240
240
  if (!(u(e).length > 0 || g(e).some(([e]) => !e.startsWith("xmlns")))) return d(e);
241
241
  },
242
242
  write: (t, r) => {
243
- let i = C(n, e);
243
+ let i = w(n, e);
244
244
  r === "" ? t.open(i, null, !0) : t.open(i).text(r).close(i);
245
245
  }
246
- }), E = (e, t, n = e, r) => {
246
+ }), D = (e, t, n = e, r) => {
247
247
  let i = r?.ns ?? "c", a = typeof t == "function" ? t : () => t;
248
248
  return {
249
249
  tags: [e],
250
250
  key: n,
251
251
  ns: i,
252
252
  many: r?.many,
253
- read: (e, t, n) => x(e, a(), t, n),
254
- write: (t, n) => S(t, C(i, e), n, a())
253
+ read: (e, t, n) => S(e, a(), t, n),
254
+ write: (t, n) => C(t, w(i, e), n, a())
255
255
  };
256
- }, D = (e, t, n = e, r = 1) => ({
256
+ }, O = (e, t, n = e, r = 1) => ({
257
257
  name: e,
258
258
  key: n,
259
259
  read: (e) => {
260
260
  if (t === "str") return e;
261
- if (t === "bool") return v(e) ?? void 0;
261
+ if (t === "bool") return y(e) ?? void 0;
262
262
  let n = Number(e);
263
263
  return Number.isFinite(n) && (t !== "int" || Number.isInteger(n)) ? r === 1 ? n : n / r : void 0;
264
264
  },
265
- write: (e) => t === "bool" ? y(e) : t === "str" ? e : String(r === 1 ? e : Math.round(e * r))
266
- }), ve = (e, t, n, r) => ({
265
+ write: (e) => t === "bool" ? b(e) : t === "str" ? e : String(r === 1 ? e : Math.round(e * r))
266
+ }), _e = (e, t, n, r) => ({
267
267
  name: e,
268
268
  key: t,
269
269
  read: n,
270
270
  write: r
271
- }), ye = (e) => ({
271
+ }), ve = (e) => ({
272
272
  ...e,
273
273
  read: (t, n, r) => {
274
274
  let i = e.read(t, n, r);
275
275
  if (i === void 0) return;
276
- let a = new de();
276
+ let a = new v();
277
277
  e.write(a, i);
278
278
  let o = ((e, t) => {
279
279
  let n = l(e);
280
- return n ? he(n, t) : null;
281
- })(a.toString(), r.writeScope) === he(t, n);
280
+ return n ? me(n, t) : null;
281
+ })(a.toString(), r.writeScope) === me(t, n);
282
282
  return o || r.kept++, o ? i : void 0;
283
283
  }
284
- }), O = (e) => `a:${e}`, be = /* @__PURE__ */ new Set([
284
+ }), k = (e) => `a:${e}`, ye = /* @__PURE__ */ new Set([
285
285
  "bg1",
286
286
  "tx1",
287
287
  "bg2",
@@ -299,69 +299,69 @@ var r = [
299
299
  "lt1",
300
300
  "dk2",
301
301
  "lt2"
302
- ]), xe = /* @__PURE__ */ new Set(/* @__PURE__ */ "scrollBar.background.activeCaption.inactiveCaption.menu.window.windowFrame.menuText.windowText.captionText.activeBorder.inactiveBorder.appWorkspace.highlight.highlightText.btnFace.btnShadow.grayText.btnText.inactiveCaptionText.btnHighlight.3dDkShadow.3dLight.infoText.infoBk.hotLight.gradientActiveCaption.gradientInactiveCaption.menuHighlight.menuBar".split(".")), Se = [
302
+ ]), be = /* @__PURE__ */ new Set(/* @__PURE__ */ "scrollBar.background.activeCaption.inactiveCaption.menu.window.windowFrame.menuText.windowText.captionText.activeBorder.inactiveBorder.appWorkspace.highlight.highlightText.btnFace.btnShadow.grayText.btnText.inactiveCaptionText.btnHighlight.3dDkShadow.3dLight.infoText.infoBk.hotLight.gradientActiveCaption.gradientInactiveCaption.menuHighlight.menuBar".split(".")), xe = [
303
303
  "scrgbClr",
304
304
  "srgbClr",
305
305
  "hslClr",
306
306
  "sysClr",
307
307
  "schemeClr",
308
308
  "prstClr"
309
- ], Ce = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3, k = (e, t) => {
309
+ ], Se = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3, A = (e, t) => {
310
310
  let n = {};
311
311
  for (let [r, i] of g(e)) {
312
312
  if (!t.includes(r)) return null;
313
313
  n[r] = i;
314
314
  }
315
315
  return n;
316
- }, A = /^-?\d+$/, we = (e) => {
316
+ }, j = /^-?\d+$/, Ce = (e) => {
317
317
  let t = u(e);
318
- return t.length === 0 ? null : t.length > 1 || !Se.includes(t[0].name) ? void 0 : ((e) => {
318
+ return t.length === 0 ? null : t.length > 1 || !xe.includes(t[0].name) ? void 0 : ((e) => {
319
319
  let t;
320
320
  switch (e.name) {
321
321
  case "scrgbClr": {
322
- let n = k(e, [
322
+ let n = A(e, [
323
323
  "r",
324
324
  "g",
325
325
  "b"
326
326
  ]);
327
- if (!(n && A.test(n.r ?? "") && A.test(n.g ?? "") && A.test(n.b ?? ""))) return;
327
+ if (!(n && j.test(n.r ?? "") && j.test(n.g ?? "") && j.test(n.b ?? ""))) return;
328
328
  t = `lrgb(${Number(n.r) / 1e3},${Number(n.g) / 1e3},${Number(n.b) / 1e3})`;
329
329
  break;
330
330
  }
331
331
  case "hslClr": {
332
- let n = k(e, [
332
+ let n = A(e, [
333
333
  "hue",
334
334
  "sat",
335
335
  "lum"
336
336
  ]);
337
- if (!(n && A.test(n.hue ?? "") && A.test(n.sat ?? "") && A.test(n.lum ?? ""))) return;
337
+ if (!(n && j.test(n.hue ?? "") && j.test(n.sat ?? "") && j.test(n.lum ?? ""))) return;
338
338
  t = `hsl(${Number(n.hue) / 6e4},${Number(n.sat) / 1e3},${Number(n.lum) / 1e3})`;
339
339
  break;
340
340
  }
341
341
  case "sysClr": {
342
- let n = k(e, ["val", "lastClr"]);
343
- if (!n?.val || !xe.has(n.val)) return;
342
+ let n = A(e, ["val", "lastClr"]);
343
+ if (!n?.val || !be.has(n.val)) return;
344
344
  t = n.lastClr === void 0 ? n.val : `${n.val} lastClr ${n.lastClr}`;
345
345
  break;
346
346
  }
347
347
  default: {
348
- let n = k(e, ["val"]);
349
- if (!n?.val || /\s/.test(n.val) || (be.has(n.val) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(n.val) ? "srgbClr" : "prstClr") !== e.name) return;
348
+ let n = A(e, ["val"]);
349
+ if (!n?.val || /\s/.test(n.val) || (ye.has(n.val) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(n.val) ? "srgbClr" : "prstClr") !== e.name) return;
350
350
  t = n.val;
351
351
  }
352
352
  }
353
353
  for (let n of u(e)) {
354
354
  if (u(n).length > 0) return;
355
- let e = k(n, ["val"]);
355
+ let e = A(n, ["val"]);
356
356
  if (!e) return;
357
357
  if (e.val !== void 0) {
358
- if (!A.test(e.val)) return;
359
- t += ` ${n.name} ${Number(e.val) / Ce(n.name)}`;
358
+ if (!j.test(e.val)) return;
359
+ t += ` ${n.name} ${Number(e.val) / Se(n.name)}`;
360
360
  } else t += ` ${n.name}`;
361
361
  }
362
362
  return t;
363
363
  })(t[0]);
364
- }, Te = /^-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?$/i, Ee = (t, n) => {
364
+ }, we = /^-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?$/i, Te = (t, n) => {
365
365
  let r = ((e) => {
366
366
  let t = e.trim(), n = /^[a-z]+\([^)]*\)|^[^\s,]+/i.exec(t)?.[0] ?? t, r = t.slice(n.length).split(/\s*,\s*|\s+/).filter((e) => e !== "");
367
367
  return [n.replace(/\s+/g, ""), ...r];
@@ -376,10 +376,10 @@ var r = [
376
376
  ["sat", String(Math.round(1e3 * Number(s[3])))],
377
377
  ["lum", String(Math.round(1e3 * Number(s[4])))]
378
378
  ];
379
- else if (r[0] === "lastClr" || xe.has(i)) a = "sysClr", o = [["val", i]], r[0] === "lastClr" && (r.shift(), o.push(["lastClr", r.shift()]));
379
+ else if (r[0] === "lastClr" || be.has(i)) a = "sysClr", o = [["val", i]], r[0] === "lastClr" && (r.shift(), o.push(["lastClr", r.shift()]));
380
380
  else {
381
381
  let t = ((t) => {
382
- if (be.has(t) || /^[0-9A-Fa-f]{6}$/.test(t) || /^[a-z]+$/i.test(t)) return null;
382
+ if (ye.has(t) || /^[0-9A-Fa-f]{6}$/.test(t) || /^[a-z]+$/i.test(t)) return null;
383
383
  let n;
384
384
  try {
385
385
  n = new e(t);
@@ -389,26 +389,26 @@ var r = [
389
389
  let r = n.getType();
390
390
  return r === "hex" || r === "rgb" || r === "hsl" ? n.toHex().toString(!1).replace("#", "").toUpperCase() : null;
391
391
  })(i);
392
- a = t ? "srgbClr" : be.has(i) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(i) ? "srgbClr" : "prstClr", o = [["val", t ?? i]];
392
+ a = t ? "srgbClr" : ye.has(i) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(i) ? "srgbClr" : "prstClr", o = [["val", t ?? i]];
393
393
  }
394
394
  if (r.length !== 0) {
395
- t.open(O(a), o);
395
+ t.open(k(a), o);
396
396
  for (let e = 0; e < r.length; e++) {
397
397
  let n = r[e];
398
- e + 1 < r.length && Te.test(r[e + 1]) ? t.val(O(n), String(Math.round(Number(r[++e]) * Ce(n)))) : t.open(O(n), null, !0);
398
+ e + 1 < r.length && we.test(r[e + 1]) ? t.val(k(n), String(Math.round(Number(r[++e]) * Se(n)))) : t.open(k(n), null, !0);
399
399
  }
400
- t.close(O(a));
401
- } else t.open(O(a), o, !0);
402
- }, j = (e, t, n, r) => {
403
- n === void 0 ? e.open(O(t), r, !0) : (e.open(O(t), r), Ee(e, n), e.close(O(t)));
404
- }, De = [
400
+ t.close(k(a));
401
+ } else t.open(k(a), o, !0);
402
+ }, M = (e, t, n, r) => {
403
+ n === void 0 ? e.open(k(t), r, !0) : (e.open(k(t), r), Te(e, n), e.close(k(t)));
404
+ }, Ee = [
405
405
  "noFill",
406
406
  "solidFill",
407
407
  "gradFill",
408
408
  "pattFill",
409
409
  "grpFill"
410
- ], Oe = (e) => {
411
- let t = k(e, [
410
+ ], De = (e) => {
411
+ let t = A(e, [
412
412
  "l",
413
413
  "t",
414
414
  "r",
@@ -417,27 +417,27 @@ var r = [
417
417
  if (!t) return;
418
418
  let n = {};
419
419
  return t.l !== void 0 && (n.left = Number(t.l) / 1e3), t.t !== void 0 && (n.top = Number(t.t) / 1e3), t.r !== void 0 && (n.right = Number(t.r) / 1e3), t.b !== void 0 && (n.bottom = Number(t.b) / 1e3), n;
420
- }, ke = (e, t, n) => {
420
+ }, Oe = (e, t, n) => {
421
421
  let r = [];
422
- n.left !== void 0 && r.push(["l", String(Math.round(1e3 * n.left))]), n.top !== void 0 && r.push(["t", String(Math.round(1e3 * n.top))]), n.right !== void 0 && r.push(["r", String(Math.round(1e3 * n.right))]), n.bottom !== void 0 && r.push(["b", String(Math.round(1e3 * n.bottom))]), e.open(O(t), r, !0);
423
- }, Ae = (e) => {
422
+ n.left !== void 0 && r.push(["l", String(Math.round(1e3 * n.left))]), n.top !== void 0 && r.push(["t", String(Math.round(1e3 * n.top))]), n.right !== void 0 && r.push(["r", String(Math.round(1e3 * n.right))]), n.bottom !== void 0 && r.push(["b", String(Math.round(1e3 * n.bottom))]), e.open(k(t), r, !0);
423
+ }, ke = (e) => {
424
424
  switch (e.name) {
425
425
  case "noFill": return u(e).length === 0 && g(e).length === 0 ? { type: t.Type.None } : void 0;
426
426
  case "grpFill": return u(e).length === 0 && g(e).length === 0 ? { type: t.Type.Group } : void 0;
427
427
  case "solidFill": {
428
428
  if (g(e).length > 0) return;
429
- let n = we(e);
429
+ let n = Ce(e);
430
430
  return n === void 0 ? void 0 : n === null ? { type: t.Type.Solid } : {
431
431
  type: t.Type.Solid,
432
432
  color: n
433
433
  };
434
434
  }
435
435
  case "gradFill": return ((e) => {
436
- let n = k(e, ["rotWithShape", "flip"]);
436
+ let n = A(e, ["rotWithShape", "flip"]);
437
437
  if (!n) return;
438
438
  let r = { type: t.Type.Gradient };
439
439
  if (n.rotWithShape !== void 0) {
440
- let e = v(n.rotWithShape);
440
+ let e = y(n.rotWithShape);
441
441
  if (e === null) return;
442
442
  r.isRotatedWithShape = e;
443
443
  }
@@ -445,7 +445,7 @@ var r = [
445
445
  for (let n of u(e)) if (n.name === "gsLst") {
446
446
  let e = [];
447
447
  for (let t of u(n)) {
448
- let n = t.name === "gs" ? k(t, ["pos"]) : null, r = n && A.test(n.pos ?? "") ? we(t) : void 0;
448
+ let n = t.name === "gs" ? A(t, ["pos"]) : null, r = n && j.test(n.pos ?? "") ? Ce(t) : void 0;
449
449
  if (!r) return;
450
450
  e.push({
451
451
  offset: Number(n.pos) / 1e5,
@@ -454,25 +454,25 @@ var r = [
454
454
  }
455
455
  r.stops = e;
456
456
  } else if (n.name === "lin") {
457
- let e = k(n, ["ang", "scaled"]);
457
+ let e = A(n, ["ang", "scaled"]);
458
458
  if (!e || u(n).length > 0) return;
459
459
  if (r.gradientType = t.GradientType.Linear, e.ang !== void 0) {
460
- if (!A.test(e.ang)) return;
460
+ if (!j.test(e.ang)) return;
461
461
  r.angle = (Number(e.ang) / 6e4 + 90) % 360;
462
462
  }
463
463
  if (e.scaled !== void 0) {
464
- let t = v(e.scaled);
464
+ let t = y(e.scaled);
465
465
  if (t === null) return;
466
466
  r.scaled = t;
467
467
  }
468
468
  } else if (n.name === "path") {
469
- let e = k(n, ["path"]);
469
+ let e = A(n, ["path"]);
470
470
  if (!e) return;
471
471
  r.gradientType = e.path === "circle" ? t.GradientType.Path : e.path;
472
472
  let i = u(n);
473
473
  if (i.length > 1 || i.length === 1 && i[0].name !== "fillToRect") return;
474
474
  if (i.length === 1) {
475
- let e = Oe(i[0]);
475
+ let e = De(i[0]);
476
476
  if (!e) return;
477
477
  r.focus = {
478
478
  left: (e.left ?? 0) / 100,
@@ -484,7 +484,7 @@ var r = [
484
484
  } else {
485
485
  if (n.name !== "tileRect") return;
486
486
  {
487
- let e = Oe(n);
487
+ let e = De(n);
488
488
  if (!e) return;
489
489
  r.tileRect = e;
490
490
  }
@@ -492,90 +492,90 @@ var r = [
492
492
  return r;
493
493
  })(e);
494
494
  case "pattFill": {
495
- let n = k(e, ["prst"]);
495
+ let n = A(e, ["prst"]);
496
496
  if (!n) return;
497
497
  let r = { type: t.Type.Pattern };
498
498
  n.prst !== void 0 && (r.patternType = n.prst);
499
499
  for (let t of u(e)) {
500
- let e = t.name === "fgClr" || t.name === "bgClr" ? we(t) : void 0;
500
+ let e = t.name === "fgClr" || t.name === "bgClr" ? Ce(t) : void 0;
501
501
  if (!e) return;
502
502
  t.name === "fgClr" ? r.foreground = e : r.background = e;
503
503
  }
504
504
  return r;
505
505
  }
506
506
  }
507
- }, je = (e, n) => {
507
+ }, Ae = (e, n) => {
508
508
  switch (n.type) {
509
509
  case t.Type.None:
510
- e.open(O("noFill"), null, !0);
510
+ e.open(k("noFill"), null, !0);
511
511
  return;
512
512
  case t.Type.Group:
513
- e.open(O("grpFill"), null, !0);
513
+ e.open(k("grpFill"), null, !0);
514
514
  return;
515
515
  case t.Type.Solid:
516
- j(e, "solidFill", n.color);
516
+ M(e, "solidFill", n.color);
517
517
  return;
518
518
  case t.Type.Gradient:
519
519
  ((e, n) => {
520
520
  let r = [];
521
- if (n.flip !== void 0 && r.push(["flip", n.flip]), n.isRotatedWithShape !== void 0 && r.push(["rotWithShape", y(n.isRotatedWithShape)]), e.open(O("gradFill"), r), n.stops) {
522
- e.open(O("gsLst"));
521
+ if (n.flip !== void 0 && r.push(["flip", n.flip]), n.isRotatedWithShape !== void 0 && r.push(["rotWithShape", b(n.isRotatedWithShape)]), e.open(k("gradFill"), r), n.stops) {
522
+ e.open(k("gsLst"));
523
523
  for (let t of n.stops) {
524
524
  let { offset: n, color: r } = typeof t == "string" ? {
525
525
  offset: 0,
526
526
  color: t
527
527
  } : t;
528
- j(e, "gs", r, [["pos", String(Math.round(1e5 * (n ?? 0)))]]);
528
+ M(e, "gs", r, [["pos", String(Math.round(1e5 * (n ?? 0)))]]);
529
529
  }
530
- e.close(O("gsLst"));
530
+ e.close(k("gsLst"));
531
531
  }
532
532
  if (n.gradientType === t.GradientType.Linear) {
533
533
  let t = [];
534
- n.angle !== void 0 && t.push(["ang", String(Math.round((n.angle - 90 + 360) % 360 * 6e4))]), n.scaled !== void 0 && t.push(["scaled", y(n.scaled)]), e.open(O("lin"), t, !0);
534
+ n.angle !== void 0 && t.push(["ang", String(Math.round((n.angle - 90 + 360) % 360 * 6e4))]), n.scaled !== void 0 && t.push(["scaled", b(n.scaled)]), e.open(k("lin"), t, !0);
535
535
  } else if (n.gradientType !== void 0) {
536
536
  let r = n.gradientType === t.GradientType.Path ? "circle" : n.gradientType;
537
- n.focus ? (e.open(O("path"), [["path", r]]), ke(e, "fillToRect", {
537
+ n.focus ? (e.open(k("path"), [["path", r]]), Oe(e, "fillToRect", {
538
538
  left: 100 * n.focus.left,
539
539
  top: 100 * n.focus.top,
540
540
  right: 100 * (1 - n.focus.right),
541
541
  bottom: 100 * (1 - n.focus.bottom)
542
- }), e.close(O("path"))) : e.open(O("path"), [["path", r]], !0);
542
+ }), e.close(k("path"))) : e.open(k("path"), [["path", r]], !0);
543
543
  }
544
- n.tileRect && ke(e, "tileRect", n.tileRect), e.close(O("gradFill"));
544
+ n.tileRect && Oe(e, "tileRect", n.tileRect), e.close(k("gradFill"));
545
545
  })(e, n);
546
546
  return;
547
547
  case t.Type.Pattern: {
548
548
  let t = n, r = t.patternType === void 0 ? [] : [["prst", t.patternType]];
549
- t.foreground === void 0 && t.background === void 0 ? e.open(O("pattFill"), r, !0) : (e.open(O("pattFill"), r), t.foreground !== void 0 && j(e, "fgClr", t.foreground), t.background !== void 0 && j(e, "bgClr", t.background), e.close(O("pattFill")));
549
+ t.foreground === void 0 && t.background === void 0 ? e.open(k("pattFill"), r, !0) : (e.open(k("pattFill"), r), t.foreground !== void 0 && M(e, "fgClr", t.foreground), t.background !== void 0 && M(e, "bgClr", t.background), e.close(k("pattFill")));
550
550
  return;
551
551
  }
552
552
  }
553
553
  throw Error(`A chart cannot write a fill of type '${n.type}'.`);
554
- }, Me = (e) => ye({
555
- tags: De,
554
+ }, je = (e) => ve({
555
+ tags: Ee,
556
556
  key: e,
557
557
  ns: "a",
558
- read: (e) => Ae(e),
559
- write: (e, t) => je(e, t)
560
- }), Ne = {
558
+ read: (e) => ke(e),
559
+ write: (e, t) => Ae(e, t)
560
+ }), Me = {
561
561
  tags: ["effectLst"],
562
562
  key: "effects",
563
563
  ns: "a",
564
564
  read: (e) => u(e).length === 0 && g(e).length === 0 ? [] : void 0,
565
565
  write: (e, t) => {
566
566
  if (t.length > 0) throw Error("A chart cannot write effects yet.");
567
- e.open(O("effectLst"), null, !0);
567
+ e.open(k("effectLst"), null, !0);
568
568
  }
569
- }, Pe = {
569
+ }, Ne = {
570
570
  rnd: "round",
571
571
  flat: "butt",
572
572
  sq: "square"
573
- }, Fe = (e, t) => ({
573
+ }, Pe = (e, t) => ({
574
574
  tags: [e],
575
575
  key: `${t}Type`,
576
576
  ns: "a",
577
577
  read: (e) => {
578
- let t = k(e, [
578
+ let t = A(e, [
579
579
  "type",
580
580
  "w",
581
581
  "len"
@@ -589,7 +589,7 @@ var r = [
589
589
  "w",
590
590
  "len"
591
591
  ]) n[e] !== void 0 && r.push([e, n[e]]);
592
- t.open(O(e), r, !0);
592
+ t.open(k(e), r, !0);
593
593
  },
594
594
  get: (e) => {
595
595
  let n = {};
@@ -598,39 +598,39 @@ var r = [
598
598
  set: (e, n) => {
599
599
  n.type !== void 0 && (e[`${t}Type`] = n.type), n.w !== void 0 && (e[`${t}Width`] = n.w), n.len !== void 0 && (e[`${t}Length`] = n.len);
600
600
  }
601
- }), Ie = {
601
+ }), Fe = {
602
602
  attributes: [
603
- D("w", "int", "width", 12700),
604
- ve("cap", "lineCap", (e) => Pe[e], (e) => Object.keys(Pe).find((t) => Pe[t] === e)),
605
- D("cmpd", "str", "compound"),
606
- D("algn", "str", "align")
603
+ O("w", "int", "width", 12700),
604
+ _e("cap", "lineCap", (e) => Ne[e], (e) => Object.keys(Ne).find((t) => Ne[t] === e)),
605
+ O("cmpd", "str", "compound"),
606
+ O("algn", "str", "align")
607
607
  ],
608
608
  fields: [
609
- Me("fill"),
609
+ je("fill"),
610
610
  {
611
611
  tags: ["prstDash", "custDash"],
612
612
  key: "dash",
613
613
  ns: "a",
614
614
  read: (e) => {
615
615
  if (e.name === "prstDash") {
616
- let t = k(e, ["val"]);
616
+ let t = A(e, ["val"]);
617
617
  return t?.val !== void 0 && u(e).length === 0 ? t.val : void 0;
618
618
  }
619
619
  if (g(e).length > 0) return;
620
620
  let t = [];
621
621
  for (let n of u(e)) {
622
- let e = n.name === "ds" ? k(n, ["d", "sp"]) : null;
623
- if (!e || !A.test(e.d ?? "") || !A.test(e.sp ?? "")) return;
622
+ let e = n.name === "ds" ? A(n, ["d", "sp"]) : null;
623
+ if (!e || !j.test(e.d ?? "") || !j.test(e.sp ?? "")) return;
624
624
  t.push(Number(e.d) / 1e3, Number(e.sp) / 1e3);
625
625
  }
626
626
  return t;
627
627
  },
628
628
  write: (e, t) => {
629
629
  if (typeof t != "string") {
630
- e.open(O("custDash"));
631
- for (let n = 0; n < t.length; n += 2) e.open(O("ds"), [["d", String(Math.round(1e3 * t[n]))], ["sp", String(Math.round(1e3 * t[n + 1]))]], !0);
632
- e.close(O("custDash"));
633
- } else e.val(O("prstDash"), t);
630
+ e.open(k("custDash"));
631
+ for (let n = 0; n < t.length; n += 2) e.open(k("ds"), [["d", String(Math.round(1e3 * t[n]))], ["sp", String(Math.round(1e3 * t[n + 1]))]], !0);
632
+ e.close(k("custDash"));
633
+ } else e.val(k("prstDash"), t);
634
634
  }
635
635
  },
636
636
  {
@@ -642,14 +642,14 @@ var r = [
642
642
  key: "lineJoin",
643
643
  ns: "a",
644
644
  read: (e) => {
645
- let t = k(e, e.name === "miter" ? ["lim"] : []);
646
- if (t && !(u(e).length > 0) && (t.lim === void 0 || A.test(t.lim))) return {
645
+ let t = A(e, e.name === "miter" ? ["lim"] : []);
646
+ if (t && !(u(e).length > 0) && (t.lim === void 0 || j.test(t.lim))) return {
647
647
  join: e.name,
648
648
  limit: t.lim === void 0 ? void 0 : Number(t.lim) / 1e5
649
649
  };
650
650
  },
651
651
  write: (e, t) => {
652
- e.open(O(t.join), t.limit === void 0 ? null : [["lim", String(Math.round(1e5 * t.limit))]], !0);
652
+ e.open(k(t.join), t.limit === void 0 ? null : [["lim", String(Math.round(1e5 * t.limit))]], !0);
653
653
  },
654
654
  get: (e) => e.lineJoin ? {
655
655
  join: e.lineJoin,
@@ -659,42 +659,42 @@ var r = [
659
659
  e.lineJoin = t.join, t.limit !== void 0 && (e.miterLimit = t.limit);
660
660
  }
661
661
  },
662
- Fe("headEnd", "head"),
663
- Fe("tailEnd", "tail")
662
+ Pe("headEnd", "head"),
663
+ Pe("tailEnd", "tail")
664
664
  ]
665
- }, Le = (e) => ye(E("ln", Ie, e, { ns: "a" })), Re = { fields: [
666
- Me("fill"),
667
- Le("stroke"),
668
- Ne
669
- ] }, M = (e, t, r) => ({
665
+ }, Ie = (e) => ve(D("ln", Fe, e, { ns: "a" })), Le = { fields: [
666
+ je("fill"),
667
+ Ie("stroke"),
668
+ Me
669
+ ] }, N = (e, t, r) => ({
670
670
  tags: [e],
671
671
  key: t,
672
672
  ns: "a",
673
673
  read: (e) => {
674
- let t = k(e, ["typeface"]);
674
+ let t = A(e, ["typeface"]);
675
675
  if (!(t?.typeface === void 0 || u(e).length > 0)) return r && t.typeface === `+mn-${r}` ? n.ThemeFamily.Body : r && t.typeface === `+mj-${r}` ? n.ThemeFamily.Heading : t.typeface;
676
676
  },
677
677
  write: (t, i) => {
678
678
  let a = r ? i === n.ThemeFamily.Body ? `+mn-${r}` : i === n.ThemeFamily.Heading ? `+mj-${r}` : i : i;
679
- t.open(O(e), [["typeface", a]], !0);
679
+ t.open(k(e), [["typeface", a]], !0);
680
680
  }
681
- }), ze = (e, t, n) => {
681
+ }), Re = (e, t, n) => {
682
682
  let r = Object.fromEntries(Object.entries(n).map(([e, t]) => [t, e]));
683
- return ve(e, t, (e) => r[e], (e) => n[e] ?? e);
684
- }, N = {
683
+ return _e(e, t, (e) => r[e], (e) => n[e] ?? e);
684
+ }, P = {
685
685
  attributes: [
686
- D("lang", "str", "language"),
687
- D("altLang", "str", "alternateLanguage"),
688
- D("sz", "int", "size", 100),
689
- ve("b", "weight", (e) => {
690
- let t = v(e);
686
+ O("lang", "str", "language"),
687
+ O("altLang", "str", "alternateLanguage"),
688
+ O("sz", "int", "size", 100),
689
+ _e("b", "weight", (e) => {
690
+ let t = y(e);
691
691
  return t === null ? void 0 : t ? 700 : 400;
692
- }, (e) => y(e >= 600)),
693
- ve("i", "style", (e) => {
694
- let t = v(e);
692
+ }, (e) => b(e >= 600)),
693
+ _e("i", "style", (e) => {
694
+ let t = y(e);
695
695
  return t === null ? void 0 : t ? "italic" : "normal";
696
- }, (e) => y(e === "italic")),
697
- ze("u", "underline", {
696
+ }, (e) => b(e === "italic")),
697
+ Re("u", "underline", {
698
698
  none: "none",
699
699
  words: "words",
700
700
  single: "sng",
@@ -714,34 +714,34 @@ var r = [
714
714
  wavyHeavy: "wavyHeavy",
715
715
  wavyDouble: "wavyDbl"
716
716
  }),
717
- ze("strike", "strike", {
717
+ Re("strike", "strike", {
718
718
  none: "noStrike",
719
719
  single: "sngStrike",
720
720
  double: "dblStrike"
721
721
  }),
722
- D("kern", "int", "kerning", 100),
723
- ze("cap", "capitals", {
722
+ O("kern", "int", "kerning", 100),
723
+ Re("cap", "capitals", {
724
724
  none: "none",
725
725
  small: "small",
726
726
  all: "all"
727
727
  }),
728
- D("spc", "int", "letterSpacing", 100),
729
- D("normalizeH", "bool", "normalizeHeight"),
730
- D("baseline", "int", "baseline", 1e3)
728
+ O("spc", "int", "letterSpacing", 100),
729
+ O("normalizeH", "bool", "normalizeHeight"),
730
+ O("baseline", "int", "baseline", 1e3)
731
731
  ],
732
732
  fields: [
733
- Le("outline"),
734
- Me("color"),
735
- Ne,
736
- M("latin", "latin", "lt"),
737
- M("ea", "eastAsian", "ea"),
738
- M("cs", "complexScript", "cs"),
739
- M("sym", "symbol")
733
+ Ie("outline"),
734
+ je("color"),
735
+ Me,
736
+ N("latin", "latin", "lt"),
737
+ N("ea", "eastAsian", "ea"),
738
+ N("cs", "complexScript", "cs"),
739
+ N("sym", "symbol")
740
740
  ]
741
- }, Be = {
742
- attributes: [D("algn", "str", "align"), D("rtl", "bool", "rtl")],
743
- fields: [E("defRPr", N, "defaultRun", { ns: "a" })]
744
- }, Ve = { fields: [E("rPr", N, "rPr", { ns: "a" }), {
741
+ }, ze = {
742
+ attributes: [O("algn", "str", "align"), O("rtl", "bool", "rtl")],
743
+ fields: [D("defRPr", P, "defaultRun", { ns: "a" })]
744
+ }, Be = { fields: [D("rPr", P, "rPr", { ns: "a" }), {
745
745
  tags: ["t"],
746
746
  key: "text",
747
747
  ns: "a",
@@ -765,14 +765,14 @@ var r = [
765
765
  e.text = t.text, t.preserve && (e.preserveSpace = !0);
766
766
  },
767
767
  write: (e, t) => {
768
- let n = O("t"), r = t.preserve ? [["xml:space", "preserve"]] : null;
768
+ let n = k("t"), r = t.preserve ? [["xml:space", "preserve"]] : null;
769
769
  t.text === "" ? e.open(n, r, !0) : e.open(n, r).text(t.text).close(n);
770
770
  }
771
- }] }, He = {
772
- attributes: [D("id", "str", "id"), D("type", "str", "type")],
773
- fields: Ve.fields
774
- }, Ue = { fields: [E("rPr", N, "rPr", { ns: "a" })] }, We = { fields: [
775
- E("pPr", Be, "pPr", { ns: "a" }),
771
+ }] }, Ve = {
772
+ attributes: [O("id", "str", "id"), O("type", "str", "type")],
773
+ fields: Be.fields
774
+ }, He = { fields: [D("rPr", P, "rPr", { ns: "a" })] }, Ue = { fields: [
775
+ D("pPr", ze, "pPr", { ns: "a" }),
776
776
  {
777
777
  tags: [
778
778
  "r",
@@ -784,15 +784,15 @@ var r = [
784
784
  many: !0,
785
785
  read: (e, t, n) => {
786
786
  if (e.name === "br") return {
787
- ...x(e, Ue, t, n),
787
+ ...S(e, He, t, n),
788
788
  text: "\n",
789
789
  break: !0
790
790
  };
791
791
  if (e.name === "r") {
792
- let r = x(e, Ve, t, n);
792
+ let r = S(e, Be, t, n);
793
793
  return r.text === void 0 ? void 0 : r;
794
794
  }
795
- let { id: r, type: i, ...a } = x(e, He, t, n);
795
+ let { id: r, type: i, ...a } = S(e, Ve, t, n);
796
796
  return r === void 0 ? void 0 : (a.text ??= "", a.field = i === void 0 ? { id: r } : {
797
797
  id: r,
798
798
  type: i
@@ -801,467 +801,467 @@ var r = [
801
801
  write: (e, t) => {
802
802
  if (t.break) {
803
803
  let { text: n, break: r, ...i } = t;
804
- S(e, O("br"), i, Ue);
804
+ C(e, k("br"), i, He);
805
805
  } else if (t.field) {
806
806
  let { field: n, ...r } = t;
807
- S(e, O("fld"), {
807
+ C(e, k("fld"), {
808
808
  ...r,
809
809
  id: n.id,
810
810
  type: n.type
811
- }, He);
812
- } else S(e, O("r"), t, Ve);
811
+ }, Ve);
812
+ } else C(e, k("r"), t, Be);
813
813
  }
814
814
  },
815
- E("endParaRPr", N, "endRun", { ns: "a" })
816
- ] }, P = { fields: [
817
- E("bodyPr", {
815
+ D("endParaRPr", P, "endRun", { ns: "a" })
816
+ ] }, We = { fields: [
817
+ D("bodyPr", {
818
818
  attributes: [
819
- D("rot", "int", "rotation", 6e4),
820
- D("spcFirstLastPara", "bool", "spcFirstLastPara"),
821
- D("vertOverflow", "str", "vertOverflow"),
822
- D("horzOverflow", "str", "horzOverflow"),
823
- D("vert", "str", "vert"),
824
- D("wrap", "str", "wrap"),
825
- D("lIns", "int", "lIns"),
826
- D("tIns", "int", "tIns"),
827
- D("rIns", "int", "rIns"),
828
- D("bIns", "int", "bIns"),
829
- D("anchor", "str", "anchor"),
830
- D("anchorCtr", "bool", "anchorCtr")
819
+ O("rot", "int", "rotation", 6e4),
820
+ O("spcFirstLastPara", "bool", "spcFirstLastPara"),
821
+ O("vertOverflow", "str", "vertOverflow"),
822
+ O("horzOverflow", "str", "horzOverflow"),
823
+ O("vert", "str", "vert"),
824
+ O("wrap", "str", "wrap"),
825
+ O("lIns", "int", "lIns"),
826
+ O("tIns", "int", "tIns"),
827
+ O("rIns", "int", "rIns"),
828
+ O("bIns", "int", "bIns"),
829
+ O("anchor", "str", "anchor"),
830
+ O("anchorCtr", "bool", "anchorCtr")
831
831
  ],
832
832
  fields: []
833
833
  }, "bodyPr", { ns: "a" }),
834
- E("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
835
- E("p", We, "paragraphs", {
834
+ D("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
835
+ D("p", Ue, "paragraphs", {
836
836
  ns: "a",
837
837
  many: !0
838
838
  })
839
- ] }, F = () => E("spPr", Re), I = () => E("txPr", P), Ge = {
840
- attributes: [D("idx", "int"), D("formatCode", "str")],
841
- fields: [T("v")]
839
+ ] }, F = () => D("spPr", Le), I = () => D("txPr", We), Ge = {
840
+ attributes: [O("idx", "int"), O("formatCode", "str")],
841
+ fields: [E("v")]
842
842
  }, Ke = { fields: [
843
- T("formatCode"),
844
- w("ptCount", "int"),
845
- E("pt", Ge, "points", { many: !0 })
846
- ] }, qe = { fields: [w("ptCount", "int"), E("pt", Ge, "points", { many: !0 })] }, Je = { fields: [w("ptCount", "int"), E("lvl", { fields: [E("pt", Ge, "points", { many: !0 })] }, "levels", { many: !0 })] }, Ye = { fields: [T("f"), E("numCache", Ke, "cache")] }, Xe = { fields: [T("f"), E("strCache", qe, "cache")] }, Ze = { fields: [T("f"), E("multiLvlStrCache", Je, "cache")] }, Qe = E("datalabelsRange", { fields: [T("f", "f", "c15"), E("dlblRangeCache", qe, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), $e = {
843
+ E("formatCode"),
844
+ T("ptCount", "int"),
845
+ D("pt", Ge, "points", { many: !0 })
846
+ ] }, qe = { fields: [T("ptCount", "int"), D("pt", Ge, "points", { many: !0 })] }, Je = { fields: [T("ptCount", "int"), D("lvl", { fields: [D("pt", Ge, "points", { many: !0 })] }, "levels", { many: !0 })] }, Ye = { fields: [E("f"), D("numCache", Ke, "cache")] }, Xe = { fields: [E("f"), D("strCache", qe, "cache")] }, Ze = { fields: [E("f"), D("multiLvlStrCache", Je, "cache")] }, Qe = D("datalabelsRange", { fields: [E("f", "f", "c15"), D("dlblRangeCache", qe, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), $e = {
847
847
  ...Qe,
848
848
  read: (e, t, n) => t[h.c15] === ne ? Qe.read(e, t, n) : void 0
849
- }, et = w("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), tt = {
849
+ }, et = T("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), tt = {
850
850
  ...et,
851
851
  read: (e, t, n) => t[h.c15] === ne ? et.read(e, t, n) : void 0
852
- }, nt = { fields: [E("ext", {
853
- attributes: [D("uri", "str")],
852
+ }, nt = { fields: [D("ext", {
853
+ attributes: [O("uri", "str")],
854
854
  fields: [$e, tt],
855
855
  declares: (e) => e.datalabelsRange !== void 0 || e.showDataLabelsRange !== void 0 ? [[`xmlns:${h.c15}`, ne]] : []
856
856
  }, "extensions", { many: !0 })] }, rt = { fields: [
857
- E("multiLvlStrRef", Ze),
858
- E("numRef", Ye),
859
- E("numLit", Ke),
860
- E("strRef", Xe),
861
- E("strLit", qe)
862
- ] }, it = { fields: [E("strRef", Xe), T("v")] }, at = { fields: [E("strRef", Xe), E("rich", P)] }, ot = {
863
- attributes: [D("formatCode", "str"), D("sourceLinked", "bool")],
857
+ D("multiLvlStrRef", Ze),
858
+ D("numRef", Ye),
859
+ D("numLit", Ke),
860
+ D("strRef", Xe),
861
+ D("strLit", qe)
862
+ ] }, it = { fields: [D("strRef", Xe), E("v")] }, at = { fields: [D("strRef", Xe), D("rich", We)] }, ot = {
863
+ attributes: [O("formatCode", "str"), O("sourceLinked", "bool")],
864
864
  fields: []
865
- }, L = { fields: [E("manualLayout", { fields: [
866
- w("layoutTarget", "str"),
867
- w("xMode", "str"),
868
- w("yMode", "str"),
869
- w("wMode", "str"),
870
- w("hMode", "str"),
871
- w("x", "num"),
872
- w("y", "num"),
873
- w("w", "num"),
874
- w("h", "num")
865
+ }, L = { fields: [D("manualLayout", { fields: [
866
+ T("layoutTarget", "str"),
867
+ T("xMode", "str"),
868
+ T("yMode", "str"),
869
+ T("wMode", "str"),
870
+ T("hMode", "str"),
871
+ T("x", "num"),
872
+ T("y", "num"),
873
+ T("w", "num"),
874
+ T("h", "num")
875
875
  ] })] }, st = { fields: [
876
- E("tx", at),
877
- E("layout", L),
878
- w("overlay", "bool"),
876
+ D("tx", at),
877
+ D("layout", L),
878
+ T("overlay", "bool"),
879
879
  F(),
880
880
  I()
881
- ] }, ct = { fields: [F()] }, R = { fields: [
882
- w("symbol", "str"),
883
- w("size", "int"),
881
+ ] }, ct = { fields: [F()] }, lt = { fields: [
882
+ T("symbol", "str"),
883
+ T("size", "int"),
884
884
  F()
885
- ] }, lt = { fields: [
886
- w("idx", "int"),
887
- w("invertIfNegative", "bool"),
888
- E("marker", R),
889
- w("bubble3D", "bool"),
890
- w("explosion", "int"),
885
+ ] }, ut = { fields: [
886
+ T("idx", "int"),
887
+ T("invertIfNegative", "bool"),
888
+ D("marker", lt),
889
+ T("bubble3D", "bool"),
890
+ T("explosion", "int"),
891
891
  F()
892
- ] }, ut = () => [
893
- E("numFmt", ot),
892
+ ] }, dt = () => [
893
+ D("numFmt", ot),
894
894
  F(),
895
895
  I(),
896
- w("dLblPos", "str"),
897
- w("showLegendKey", "bool"),
898
- w("showVal", "bool"),
899
- w("showCatName", "bool"),
900
- w("showSerName", "bool"),
901
- w("showPercent", "bool"),
902
- w("showBubbleSize", "bool"),
903
- T("separator")
904
- ], dt = { fields: [
905
- E("dLbl", { fields: [
906
- w("idx", "int"),
907
- w("delete", "bool"),
908
- E("layout", L),
909
- E("tx", at),
910
- ...ut(),
911
- E("extLst", nt)
896
+ T("dLblPos", "str"),
897
+ T("showLegendKey", "bool"),
898
+ T("showVal", "bool"),
899
+ T("showCatName", "bool"),
900
+ T("showSerName", "bool"),
901
+ T("showPercent", "bool"),
902
+ T("showBubbleSize", "bool"),
903
+ E("separator")
904
+ ], ft = { fields: [
905
+ D("dLbl", { fields: [
906
+ T("idx", "int"),
907
+ T("delete", "bool"),
908
+ D("layout", L),
909
+ D("tx", at),
910
+ ...dt(),
911
+ D("extLst", nt)
912
912
  ] }, "labels", { many: !0 }),
913
- w("delete", "bool"),
914
- ...ut(),
915
- w("showLeaderLines", "bool"),
916
- E("leaderLines", ct),
917
- E("extLst", nt)
918
- ] }, ft = { fields: [
919
- E("layout", L),
920
- E("tx", at),
921
- E("numFmt", ot),
922
- F(),
923
- I()
913
+ T("delete", "bool"),
914
+ ...dt(),
915
+ T("showLeaderLines", "bool"),
916
+ D("leaderLines", ct),
917
+ D("extLst", nt)
924
918
  ] }, pt = { fields: [
925
- T("name"),
919
+ D("layout", L),
920
+ D("tx", at),
921
+ D("numFmt", ot),
926
922
  F(),
927
- w("trendlineType", "str"),
928
- w("order", "int"),
929
- w("period", "int"),
930
- w("forward", "num"),
931
- w("backward", "num"),
932
- w("intercept", "num"),
933
- w("dispRSqr", "bool"),
934
- w("dispEq", "bool"),
935
- E("trendlineLbl", ft)
923
+ I()
936
924
  ] }, mt = { fields: [
937
- w("errDir", "str"),
938
- w("errBarType", "str"),
939
- w("errValType", "str"),
940
- w("noEndCap", "bool"),
941
- E("plus", rt),
942
- E("minus", rt),
943
- w("val", "num"),
925
+ E("name"),
944
926
  F(),
945
- E("extLst", nt)
927
+ T("trendlineType", "str"),
928
+ T("order", "int"),
929
+ T("period", "int"),
930
+ T("forward", "num"),
931
+ T("backward", "num"),
932
+ T("intercept", "num"),
933
+ T("dispRSqr", "bool"),
934
+ T("dispEq", "bool"),
935
+ D("trendlineLbl", pt)
946
936
  ] }, ht = { fields: [
947
- w("gapWidth", "int"),
948
- E("upBars", ct),
949
- E("downBars", ct)
950
- ] }, z = () => [
951
- w("idx", "int"),
952
- w("order", "int"),
953
- E("tx", it),
937
+ T("errDir", "str"),
938
+ T("errBarType", "str"),
939
+ T("errValType", "str"),
940
+ T("noEndCap", "bool"),
941
+ D("plus", rt),
942
+ D("minus", rt),
943
+ T("val", "num"),
944
+ F(),
945
+ D("extLst", nt)
946
+ ] }, gt = { fields: [
947
+ T("gapWidth", "int"),
948
+ D("upBars", ct),
949
+ D("downBars", ct)
950
+ ] }, R = () => [
951
+ T("idx", "int"),
952
+ T("order", "int"),
953
+ D("tx", it),
954
954
  F()
955
- ], B = () => E("dPt", lt, "points", { many: !0 }), V = () => E("dLbls", dt), H = () => E("trendline", pt, "trendlines", { many: !0 }), U = () => E("errBars", mt, "errBars", { many: !0 }), W = (e) => E(e, rt), G = () => E("extLst", nt), gt = {
955
+ ], z = () => D("dPt", ut, "points", { many: !0 }), B = () => D("dLbls", ft), V = () => D("trendline", mt, "trendlines", { many: !0 }), H = () => D("errBars", ht, "errBars", { many: !0 }), U = (e) => D(e, rt), W = () => D("extLst", nt), _t = {
956
956
  bar: { fields: [
957
- ...z(),
958
- w("invertIfNegative", "bool"),
957
+ ...R(),
958
+ T("invertIfNegative", "bool"),
959
+ z(),
959
960
  B(),
960
961
  V(),
961
962
  H(),
962
- U(),
963
- W("cat"),
964
- W("val"),
965
- w("shape", "str"),
966
- G()
963
+ U("cat"),
964
+ U("val"),
965
+ T("shape", "str"),
966
+ W()
967
967
  ] },
968
968
  line: { fields: [
969
- ...z(),
970
- E("marker", R),
969
+ ...R(),
970
+ D("marker", lt),
971
+ z(),
971
972
  B(),
972
973
  V(),
973
974
  H(),
974
- U(),
975
- W("cat"),
976
- W("val"),
977
- w("smooth", "bool"),
978
- G()
975
+ U("cat"),
976
+ U("val"),
977
+ T("smooth", "bool"),
978
+ W()
979
979
  ] },
980
980
  area: { fields: [
981
- ...z(),
981
+ ...R(),
982
+ z(),
982
983
  B(),
983
984
  V(),
984
985
  H(),
985
- U(),
986
- W("cat"),
987
- W("val"),
988
- G()
986
+ U("cat"),
987
+ U("val"),
988
+ W()
989
989
  ] },
990
990
  pie: { fields: [
991
- ...z(),
992
- w("explosion", "int"),
991
+ ...R(),
992
+ T("explosion", "int"),
993
+ z(),
993
994
  B(),
994
- V(),
995
- W("cat"),
996
- W("val"),
997
- G()
995
+ U("cat"),
996
+ U("val"),
997
+ W()
998
998
  ] },
999
999
  scatter: { fields: [
1000
- ...z(),
1001
- E("marker", R),
1000
+ ...R(),
1001
+ D("marker", lt),
1002
+ z(),
1002
1003
  B(),
1003
1004
  V(),
1004
1005
  H(),
1005
- U(),
1006
- W("xVal"),
1007
- W("yVal"),
1008
- w("smooth", "bool"),
1009
- G()
1006
+ U("xVal"),
1007
+ U("yVal"),
1008
+ T("smooth", "bool"),
1009
+ W()
1010
1010
  ] },
1011
1011
  bubble: { fields: [
1012
- ...z(),
1013
- w("invertIfNegative", "bool"),
1012
+ ...R(),
1013
+ T("invertIfNegative", "bool"),
1014
+ z(),
1014
1015
  B(),
1015
1016
  V(),
1016
1017
  H(),
1017
- U(),
1018
- W("xVal"),
1019
- W("yVal"),
1020
- W("bubbleSize"),
1021
- w("bubble3D", "bool"),
1022
- G()
1018
+ U("xVal"),
1019
+ U("yVal"),
1020
+ U("bubbleSize"),
1021
+ T("bubble3D", "bool"),
1022
+ W()
1023
1023
  ] },
1024
1024
  radar: { fields: [
1025
- ...z(),
1026
- E("marker", R),
1025
+ ...R(),
1026
+ D("marker", lt),
1027
+ z(),
1027
1028
  B(),
1028
- V(),
1029
- W("cat"),
1030
- W("val"),
1031
- G()
1029
+ U("cat"),
1030
+ U("val"),
1031
+ W()
1032
1032
  ] },
1033
1033
  surface: { fields: [
1034
- ...z(),
1035
- W("cat"),
1036
- W("val"),
1037
- G()
1034
+ ...R(),
1035
+ U("cat"),
1036
+ U("val"),
1037
+ W()
1038
1038
  ] }
1039
- }, K = (e) => E("ser", gt[e], "series", { many: !0 }), q = () => ({
1040
- ...w("axId", "int", "axIds"),
1039
+ }, G = (e) => D("ser", _t[e], "series", { many: !0 }), K = () => ({
1040
+ ...T("axId", "int", "axIds"),
1041
1041
  many: !0
1042
- }), J = (e, t) => E(e, ct, e, { many: t }), _t = {
1042
+ }), q = (e, t) => D(e, ct, e, { many: t }), vt = {
1043
1043
  tags: ["custSplit"],
1044
1044
  key: "custSplit",
1045
1045
  ns: "c",
1046
1046
  read: (e, t, n) => {
1047
- let r = x(e, { fields: [{
1048
- ...w("secondPiePt", "int", "points"),
1047
+ let r = S(e, { fields: [{
1048
+ ...T("secondPiePt", "int", "points"),
1049
1049
  many: !0
1050
1050
  }] }, t, n);
1051
1051
  return r.unknown ? void 0 : r.points ?? [];
1052
1052
  },
1053
1053
  write: (e, t) => {
1054
- S(e, "c:custSplit", { points: t }, { fields: [{
1055
- ...w("secondPiePt", "int", "points"),
1054
+ C(e, "c:custSplit", { points: t }, { fields: [{
1055
+ ...T("secondPiePt", "int", "points"),
1056
1056
  many: !0
1057
1057
  }] });
1058
1058
  }
1059
- }, vt = { fields: [w("idx", "int"), F()] }, yt = {
1059
+ }, yt = { fields: [T("idx", "int"), F()] }, bt = {
1060
1060
  tags: ["bandFmts"],
1061
1061
  key: "bandFmts",
1062
1062
  ns: "c",
1063
1063
  read: (e, t, n) => {
1064
- let r = x(e, { fields: [E("bandFmt", vt, "formats", { many: !0 })] }, t, n);
1064
+ let r = S(e, { fields: [D("bandFmt", yt, "formats", { many: !0 })] }, t, n);
1065
1065
  return r.unknown ? void 0 : r.formats ?? [];
1066
1066
  },
1067
1067
  write: (e, t) => {
1068
- S(e, "c:bandFmts", { formats: t }, { fields: [E("bandFmt", vt, "formats", { many: !0 })] });
1068
+ C(e, "c:bandFmts", { formats: t }, { fields: [D("bandFmt", yt, "formats", { many: !0 })] });
1069
1069
  }
1070
- }, bt = {
1070
+ }, xt = {
1071
1071
  areaChart: {
1072
1072
  type: "area",
1073
1073
  codec: { fields: [
1074
- w("grouping", "str"),
1075
- w("varyColors", "bool"),
1076
- K("area"),
1077
- V(),
1078
- J("dropLines"),
1079
- q()
1074
+ T("grouping", "str"),
1075
+ T("varyColors", "bool"),
1076
+ G("area"),
1077
+ B(),
1078
+ q("dropLines"),
1079
+ K()
1080
1080
  ] }
1081
1081
  },
1082
1082
  area3DChart: {
1083
1083
  type: "area",
1084
1084
  is3D: !0,
1085
1085
  codec: { fields: [
1086
- w("grouping", "str"),
1087
- w("varyColors", "bool"),
1088
- K("area"),
1089
- V(),
1090
- J("dropLines"),
1091
- w("gapDepth", "int"),
1092
- q()
1086
+ T("grouping", "str"),
1087
+ T("varyColors", "bool"),
1088
+ G("area"),
1089
+ B(),
1090
+ q("dropLines"),
1091
+ T("gapDepth", "int"),
1092
+ K()
1093
1093
  ] }
1094
1094
  },
1095
1095
  lineChart: {
1096
1096
  type: "line",
1097
1097
  codec: { fields: [
1098
- w("grouping", "str"),
1099
- w("varyColors", "bool"),
1100
- K("line"),
1101
- V(),
1102
- J("dropLines"),
1103
- J("hiLowLines"),
1104
- E("upDownBars", ht),
1105
- w("marker", "bool"),
1106
- w("smooth", "bool"),
1107
- q()
1098
+ T("grouping", "str"),
1099
+ T("varyColors", "bool"),
1100
+ G("line"),
1101
+ B(),
1102
+ q("dropLines"),
1103
+ q("hiLowLines"),
1104
+ D("upDownBars", gt),
1105
+ T("marker", "bool"),
1106
+ T("smooth", "bool"),
1107
+ K()
1108
1108
  ] }
1109
1109
  },
1110
1110
  line3DChart: {
1111
1111
  type: "line",
1112
1112
  is3D: !0,
1113
1113
  codec: { fields: [
1114
- w("grouping", "str"),
1115
- w("varyColors", "bool"),
1116
- K("line"),
1117
- V(),
1118
- J("dropLines"),
1119
- w("gapDepth", "int"),
1120
- q()
1114
+ T("grouping", "str"),
1115
+ T("varyColors", "bool"),
1116
+ G("line"),
1117
+ B(),
1118
+ q("dropLines"),
1119
+ T("gapDepth", "int"),
1120
+ K()
1121
1121
  ] }
1122
1122
  },
1123
1123
  stockChart: {
1124
1124
  type: "stock",
1125
1125
  codec: { fields: [
1126
- K("line"),
1127
- V(),
1128
- J("dropLines"),
1129
- J("hiLowLines"),
1130
- E("upDownBars", ht),
1131
- q()
1126
+ G("line"),
1127
+ B(),
1128
+ q("dropLines"),
1129
+ q("hiLowLines"),
1130
+ D("upDownBars", gt),
1131
+ K()
1132
1132
  ] }
1133
1133
  },
1134
1134
  radarChart: {
1135
1135
  type: "radar",
1136
1136
  codec: { fields: [
1137
- w("radarStyle", "str"),
1138
- w("varyColors", "bool"),
1139
- K("radar"),
1140
- V(),
1141
- q()
1137
+ T("radarStyle", "str"),
1138
+ T("varyColors", "bool"),
1139
+ G("radar"),
1140
+ B(),
1141
+ K()
1142
1142
  ] }
1143
1143
  },
1144
1144
  scatterChart: {
1145
1145
  type: "scatter",
1146
1146
  codec: { fields: [
1147
- w("scatterStyle", "str"),
1148
- w("varyColors", "bool"),
1149
- K("scatter"),
1150
- V(),
1151
- q()
1147
+ T("scatterStyle", "str"),
1148
+ T("varyColors", "bool"),
1149
+ G("scatter"),
1150
+ B(),
1151
+ K()
1152
1152
  ] }
1153
1153
  },
1154
1154
  pieChart: {
1155
1155
  type: "pie",
1156
1156
  codec: { fields: [
1157
- w("varyColors", "bool"),
1158
- K("pie"),
1159
- V(),
1160
- w("firstSliceAng", "int")
1157
+ T("varyColors", "bool"),
1158
+ G("pie"),
1159
+ B(),
1160
+ T("firstSliceAng", "int")
1161
1161
  ] }
1162
1162
  },
1163
1163
  pie3DChart: {
1164
1164
  type: "pie",
1165
1165
  is3D: !0,
1166
1166
  codec: { fields: [
1167
- w("varyColors", "bool"),
1168
- K("pie"),
1169
- V()
1167
+ T("varyColors", "bool"),
1168
+ G("pie"),
1169
+ B()
1170
1170
  ] }
1171
1171
  },
1172
1172
  doughnutChart: {
1173
1173
  type: "doughnut",
1174
1174
  codec: { fields: [
1175
- w("varyColors", "bool"),
1176
- K("pie"),
1177
- V(),
1178
- w("firstSliceAng", "int"),
1179
- w("holeSize", "int")
1175
+ T("varyColors", "bool"),
1176
+ G("pie"),
1177
+ B(),
1178
+ T("firstSliceAng", "int"),
1179
+ T("holeSize", "int")
1180
1180
  ] }
1181
1181
  },
1182
1182
  barChart: {
1183
1183
  type: "bar",
1184
1184
  codec: { fields: [
1185
- w("barDir", "str"),
1186
- w("grouping", "str"),
1187
- w("varyColors", "bool"),
1188
- K("bar"),
1189
- V(),
1190
- w("gapWidth", "int"),
1191
- w("overlap", "int"),
1192
- J("serLines", !0),
1193
- q()
1185
+ T("barDir", "str"),
1186
+ T("grouping", "str"),
1187
+ T("varyColors", "bool"),
1188
+ G("bar"),
1189
+ B(),
1190
+ T("gapWidth", "int"),
1191
+ T("overlap", "int"),
1192
+ q("serLines", !0),
1193
+ K()
1194
1194
  ] }
1195
1195
  },
1196
1196
  bar3DChart: {
1197
1197
  type: "bar",
1198
1198
  is3D: !0,
1199
1199
  codec: { fields: [
1200
- w("barDir", "str"),
1201
- w("grouping", "str"),
1202
- w("varyColors", "bool"),
1203
- K("bar"),
1204
- V(),
1205
- w("gapWidth", "int"),
1206
- w("gapDepth", "int"),
1207
- w("shape", "str"),
1208
- q()
1200
+ T("barDir", "str"),
1201
+ T("grouping", "str"),
1202
+ T("varyColors", "bool"),
1203
+ G("bar"),
1204
+ B(),
1205
+ T("gapWidth", "int"),
1206
+ T("gapDepth", "int"),
1207
+ T("shape", "str"),
1208
+ K()
1209
1209
  ] }
1210
1210
  },
1211
1211
  ofPieChart: {
1212
1212
  type: "ofPie",
1213
1213
  codec: { fields: [
1214
- w("ofPieType", "str"),
1215
- w("varyColors", "bool"),
1216
- K("pie"),
1217
- V(),
1218
- w("gapWidth", "int"),
1219
- w("splitType", "str"),
1220
- w("splitPos", "num"),
1221
- _t,
1222
- w("secondPieSize", "int"),
1223
- J("serLines", !0)
1214
+ T("ofPieType", "str"),
1215
+ T("varyColors", "bool"),
1216
+ G("pie"),
1217
+ B(),
1218
+ T("gapWidth", "int"),
1219
+ T("splitType", "str"),
1220
+ T("splitPos", "num"),
1221
+ vt,
1222
+ T("secondPieSize", "int"),
1223
+ q("serLines", !0)
1224
1224
  ] }
1225
1225
  },
1226
1226
  surfaceChart: {
1227
1227
  type: "surface",
1228
1228
  codec: { fields: [
1229
- w("wireframe", "bool"),
1230
- K("surface"),
1231
- yt,
1232
- q()
1229
+ T("wireframe", "bool"),
1230
+ G("surface"),
1231
+ bt,
1232
+ K()
1233
1233
  ] }
1234
1234
  },
1235
1235
  surface3DChart: {
1236
1236
  type: "surface",
1237
1237
  is3D: !0,
1238
1238
  codec: { fields: [
1239
- w("wireframe", "bool"),
1240
- K("surface"),
1241
- yt,
1242
- q()
1239
+ T("wireframe", "bool"),
1240
+ G("surface"),
1241
+ bt,
1242
+ K()
1243
1243
  ] }
1244
1244
  },
1245
1245
  bubbleChart: {
1246
1246
  type: "bubble",
1247
1247
  codec: { fields: [
1248
- w("varyColors", "bool"),
1249
- K("bubble"),
1250
- V(),
1251
- w("bubble3D", "bool"),
1252
- w("bubbleScale", "int"),
1253
- w("showNegBubbles", "bool"),
1254
- w("sizeRepresents", "str"),
1255
- q()
1248
+ T("varyColors", "bool"),
1249
+ G("bubble"),
1250
+ B(),
1251
+ T("bubble3D", "bool"),
1252
+ T("bubbleScale", "int"),
1253
+ T("showNegBubbles", "bool"),
1254
+ T("sizeRepresents", "str"),
1255
+ K()
1256
1256
  ] }
1257
1257
  }
1258
- }, xt = {
1259
- tags: Object.keys(bt),
1258
+ }, St = {
1259
+ tags: Object.keys(xt),
1260
1260
  key: "groups",
1261
1261
  ns: "c",
1262
1262
  many: !0,
1263
1263
  read: (e, t, n) => {
1264
- let { type: r, is3D: i, codec: a } = bt[e.name], o = x(e, a, t, n);
1264
+ let { type: r, is3D: i, codec: a } = xt[e.name], o = S(e, a, t, n);
1265
1265
  return o.series ??= [], o.axIds ??= [], i ? {
1266
1266
  type: r,
1267
1267
  is3D: i,
@@ -1272,173 +1272,221 @@ var r = [
1272
1272
  };
1273
1273
  },
1274
1274
  write: (e, t) => {
1275
- let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } = t;
1276
- S(e, `c:${n}`, a, bt[n].codec);
1275
+ let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } = Et(t);
1276
+ C(e, `c:${n}`, a, xt[n].codec);
1277
+ }
1278
+ }, Ct = [
1279
+ "ctr",
1280
+ "l",
1281
+ "r",
1282
+ "t",
1283
+ "b"
1284
+ ], wt = (e) => {
1285
+ switch (e.type) {
1286
+ case "bar": return e.is3D ? [] : e.grouping === "stacked" || e.grouping === "percentStacked" ? [
1287
+ "ctr",
1288
+ "inEnd",
1289
+ "inBase"
1290
+ ] : [
1291
+ "ctr",
1292
+ "inEnd",
1293
+ "inBase",
1294
+ "outEnd"
1295
+ ];
1296
+ case "line": return e.is3D ? [] : Ct;
1297
+ case "stock":
1298
+ case "scatter":
1299
+ case "bubble": return Ct;
1300
+ case "pie":
1301
+ case "ofPie": return [
1302
+ "ctr",
1303
+ "inEnd",
1304
+ "outEnd",
1305
+ "bestFit"
1306
+ ];
1307
+ default: return [];
1277
1308
  }
1278
- }, St = { fields: [
1279
- w("logBase", "num"),
1280
- w("orientation", "str"),
1281
- w("max", "num"),
1282
- w("min", "num")
1283
- ] }, Ct = { fields: [
1284
- E("layout", L),
1285
- E("tx", at),
1309
+ }, Tt = (e, t) => t?.dLblPos !== void 0 && !e.includes(t.dLblPos), Et = (e) => {
1310
+ let t = wt(e), n = (e) => {
1311
+ if (!Tt(t, e)) return e;
1312
+ let { dLblPos: n, ...r } = e;
1313
+ return r;
1314
+ }, r = (e) => e.labels ? {
1315
+ ...n(e),
1316
+ labels: e.labels.map(n)
1317
+ } : n(e);
1318
+ return {
1319
+ ...e,
1320
+ ...e.dLbls ? { dLbls: r(e.dLbls) } : {},
1321
+ series: e.series.map((e) => e.dLbls ? {
1322
+ ...e,
1323
+ dLbls: r(e.dLbls)
1324
+ } : e)
1325
+ };
1326
+ }, Dt = { fields: [
1327
+ T("logBase", "num"),
1328
+ T("orientation", "str"),
1329
+ T("max", "num"),
1330
+ T("min", "num")
1331
+ ] }, Ot = { fields: [
1332
+ D("layout", L),
1333
+ D("tx", at),
1286
1334
  F(),
1287
1335
  I()
1288
- ] }, wt = { fields: [
1289
- w("custUnit", "num"),
1290
- w("builtInUnit", "str"),
1291
- E("dispUnitsLbl", Ct)
1292
- ] }, Tt = () => [
1293
- w("axId", "int"),
1294
- E("scaling", St),
1295
- w("delete", "bool"),
1296
- w("axPos", "str"),
1297
- J("majorGridlines"),
1298
- J("minorGridlines"),
1299
- E("title", st),
1300
- E("numFmt", ot),
1301
- w("majorTickMark", "str"),
1302
- w("minorTickMark", "str"),
1303
- w("tickLblPos", "str"),
1336
+ ] }, kt = { fields: [
1337
+ T("custUnit", "num"),
1338
+ T("builtInUnit", "str"),
1339
+ D("dispUnitsLbl", Ot)
1340
+ ] }, At = () => [
1341
+ T("axId", "int"),
1342
+ D("scaling", Dt),
1343
+ T("delete", "bool"),
1344
+ T("axPos", "str"),
1345
+ q("majorGridlines"),
1346
+ q("minorGridlines"),
1347
+ D("title", st),
1348
+ D("numFmt", ot),
1349
+ T("majorTickMark", "str"),
1350
+ T("minorTickMark", "str"),
1351
+ T("tickLblPos", "str"),
1304
1352
  F(),
1305
1353
  I(),
1306
- w("crossAx", "int"),
1307
- w("crosses", "str"),
1308
- w("crossesAt", "num")
1309
- ], Et = {
1354
+ T("crossAx", "int"),
1355
+ T("crosses", "str"),
1356
+ T("crossesAt", "num")
1357
+ ], J = {
1310
1358
  valAx: {
1311
1359
  type: "val",
1312
1360
  codec: { fields: [
1313
- ...Tt(),
1314
- w("crossBetween", "str"),
1315
- w("majorUnit", "num"),
1316
- w("minorUnit", "num"),
1317
- E("dispUnits", wt)
1361
+ ...At(),
1362
+ T("crossBetween", "str"),
1363
+ T("majorUnit", "num"),
1364
+ T("minorUnit", "num"),
1365
+ D("dispUnits", kt)
1318
1366
  ] }
1319
1367
  },
1320
1368
  catAx: {
1321
1369
  type: "cat",
1322
1370
  codec: { fields: [
1323
- ...Tt(),
1324
- w("auto", "bool"),
1325
- w("lblAlgn", "str"),
1326
- w("lblOffset", "int"),
1327
- w("tickLblSkip", "int"),
1328
- w("tickMarkSkip", "int"),
1329
- w("noMultiLvlLbl", "bool")
1371
+ ...At(),
1372
+ T("auto", "bool"),
1373
+ T("lblAlgn", "str"),
1374
+ T("lblOffset", "int"),
1375
+ T("tickLblSkip", "int"),
1376
+ T("tickMarkSkip", "int"),
1377
+ T("noMultiLvlLbl", "bool")
1330
1378
  ] }
1331
1379
  },
1332
1380
  dateAx: {
1333
1381
  type: "date",
1334
1382
  codec: { fields: [
1335
- ...Tt(),
1336
- w("auto", "bool"),
1337
- w("lblOffset", "int"),
1338
- w("baseTimeUnit", "str"),
1339
- w("majorUnit", "num"),
1340
- w("majorTimeUnit", "str"),
1341
- w("minorUnit", "num"),
1342
- w("minorTimeUnit", "str")
1383
+ ...At(),
1384
+ T("auto", "bool"),
1385
+ T("lblOffset", "int"),
1386
+ T("baseTimeUnit", "str"),
1387
+ T("majorUnit", "num"),
1388
+ T("majorTimeUnit", "str"),
1389
+ T("minorUnit", "num"),
1390
+ T("minorTimeUnit", "str")
1343
1391
  ] }
1344
1392
  },
1345
1393
  serAx: {
1346
1394
  type: "ser",
1347
1395
  codec: { fields: [
1348
- ...Tt(),
1349
- w("tickLblSkip", "int"),
1350
- w("tickMarkSkip", "int")
1396
+ ...At(),
1397
+ T("tickLblSkip", "int"),
1398
+ T("tickMarkSkip", "int")
1351
1399
  ] }
1352
1400
  }
1353
- }, Dt = {
1354
- tags: Object.keys(Et),
1401
+ }, jt = {
1402
+ tags: Object.keys(J),
1355
1403
  key: "axes",
1356
1404
  ns: "c",
1357
1405
  many: !0,
1358
1406
  read: (e, t, n) => ({
1359
- type: Et[e.name].type,
1360
- ...x(e, Et[e.name].codec, t, n)
1407
+ type: J[e.name].type,
1408
+ ...S(e, J[e.name].codec, t, n)
1361
1409
  }),
1362
1410
  write: (e, t) => {
1363
1411
  let { type: n, ...r } = t, i = `${n}Ax`;
1364
- S(e, `c:${i}`, r, Et[i].codec);
1412
+ C(e, `c:${i}`, r, J[i].codec);
1365
1413
  }
1366
- }, Ot = { fields: [
1367
- w("showHorzBorder", "bool"),
1368
- w("showVertBorder", "bool"),
1369
- w("showOutline", "bool"),
1370
- w("showKeys", "bool"),
1414
+ }, Mt = { fields: [
1415
+ T("showHorzBorder", "bool"),
1416
+ T("showVertBorder", "bool"),
1417
+ T("showOutline", "bool"),
1418
+ T("showKeys", "bool"),
1371
1419
  F(),
1372
1420
  I()
1373
- ] }, kt = {
1421
+ ] }, Nt = {
1374
1422
  fields: [
1375
- E("layout", L),
1376
- xt,
1377
- Dt,
1378
- E("dTable", Ot),
1423
+ D("layout", L),
1424
+ St,
1425
+ jt,
1426
+ D("dTable", Mt),
1379
1427
  F()
1380
1428
  ],
1381
1429
  afterRead: (e) => {
1382
1430
  e.groups ??= [], e.axes ??= [];
1383
1431
  }
1384
- }, At = { fields: [
1385
- w("rotX", "int"),
1386
- w("hPercent", "int"),
1387
- w("rotY", "int"),
1388
- w("depthPercent", "int"),
1389
- w("rAngAx", "bool"),
1390
- w("perspective", "int")
1391
- ] }, jt = { fields: [w("thickness", "int"), F()] }, Mt = { fields: [
1392
- w("idx", "int"),
1393
- w("delete", "bool"),
1432
+ }, Pt = { fields: [
1433
+ T("rotX", "int"),
1434
+ T("hPercent", "int"),
1435
+ T("rotY", "int"),
1436
+ T("depthPercent", "int"),
1437
+ T("rAngAx", "bool"),
1438
+ T("perspective", "int")
1439
+ ] }, Ft = { fields: [T("thickness", "int"), F()] }, It = { fields: [
1440
+ T("idx", "int"),
1441
+ T("delete", "bool"),
1394
1442
  I()
1395
- ] }, Nt = { fields: [
1396
- w("legendPos", "str"),
1397
- E("legendEntry", Mt, "entries", { many: !0 }),
1398
- E("layout", L),
1399
- w("overlay", "bool"),
1443
+ ] }, Lt = { fields: [
1444
+ T("legendPos", "str"),
1445
+ D("legendEntry", It, "entries", { many: !0 }),
1446
+ D("layout", L),
1447
+ T("overlay", "bool"),
1400
1448
  F(),
1401
1449
  I()
1402
- ] }, Pt = { fields: [
1403
- E("title", st),
1404
- w("autoTitleDeleted", "bool"),
1405
- E("view3D", At),
1406
- E("floor", jt),
1407
- E("sideWall", jt),
1408
- E("backWall", jt),
1409
- E("plotArea", kt),
1410
- E("legend", Nt),
1411
- w("plotVisOnly", "bool"),
1412
- w("dispBlanksAs", "str"),
1413
- w("showDLblsOverMax", "bool")
1414
- ] }, Ft = { fields: [T("name"), w("fmtId", "int")] }, It = { fields: [
1415
- w("date1904", "bool"),
1416
- w("lang", "str"),
1417
- w("roundedCorners", "bool"),
1418
- w("style", "int"),
1419
- E("pivotSource", Ft),
1420
- E("chart", Pt),
1450
+ ] }, Rt = { fields: [
1451
+ D("title", st),
1452
+ T("autoTitleDeleted", "bool"),
1453
+ D("view3D", Pt),
1454
+ D("floor", Ft),
1455
+ D("sideWall", Ft),
1456
+ D("backWall", Ft),
1457
+ D("plotArea", Nt),
1458
+ D("legend", Lt),
1459
+ T("plotVisOnly", "bool"),
1460
+ T("dispBlanksAs", "str"),
1461
+ T("showDLblsOverMax", "bool")
1462
+ ] }, zt = { fields: [E("name"), T("fmtId", "int")] }, Bt = { fields: [
1463
+ T("date1904", "bool"),
1464
+ T("lang", "str"),
1465
+ T("roundedCorners", "bool"),
1466
+ T("style", "int"),
1467
+ D("pivotSource", zt),
1468
+ D("chart", Rt),
1421
1469
  F(),
1422
1470
  I()
1423
- ] }, Lt = (e) => {
1471
+ ] }, Vt = (e) => {
1424
1472
  let t = l(e);
1425
1473
  if (!t || t.name !== "chartSpace") return null;
1426
1474
  let n = _(t, ce);
1427
1475
  if (!ae(ue(t, n))) return null;
1428
- let r = new ge(e, n);
1476
+ let r = new he(e, n);
1429
1477
  return {
1430
- model: x(t, It, ce, r),
1478
+ model: S(t, Bt, ce, r),
1431
1479
  kept: r.kept,
1432
1480
  reordered: r.reordered
1433
1481
  };
1434
- }, Rt = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", zt = (e) => {
1482
+ }, Ht = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", Ut = (e) => {
1435
1483
  let t = { ...e.unknown?.attributes }, n = (e, n) => {
1436
1484
  t[`xmlns:${e}`] ??= n;
1437
1485
  };
1438
1486
  n(h.c, f), n(h.a, p), n(h.r, m);
1439
- let r = new de().raw(Rt);
1487
+ let r = new v().raw(Ht);
1440
1488
  return ((e, t) => {
1441
- S(e, "c:chartSpace", t, It);
1489
+ C(e, "c:chartSpace", t, Bt);
1442
1490
  })(r, {
1443
1491
  ...e,
1444
1492
  unknown: {
@@ -1446,16 +1494,20 @@ var r = [
1446
1494
  attributes: t
1447
1495
  }
1448
1496
  }), r.toString();
1449
- }, Bt = (e, t) => {
1450
- if (t) {
1451
- let n = Lt(t);
1497
+ }, Wt = (e, t) => {
1498
+ if (t && (n = e, !(n.chart?.plotArea?.groups ?? []).some((e) => {
1499
+ let t = wt(e), n = (e) => Tt(t, e) || !!e?.labels?.some((e) => Tt(t, e));
1500
+ return n(e.dLbls) || e.series.some((e) => n(e.dLbls));
1501
+ }))) {
1502
+ let n = Vt(t);
1452
1503
  if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
1453
1504
  }
1454
- return zt(e);
1455
- }, Y = (e, t, n = e, r) => E(e, t, n, {
1505
+ var n;
1506
+ return Ut(e);
1507
+ }, Y = (e, t, n = e, r) => D(e, t, n, {
1456
1508
  ns: "cx",
1457
1509
  many: r
1458
- }), X = () => Y("spPr", Re), Z = () => Y("txPr", P), Vt = () => Y("numFmt", ot), Ht = (e) => ({
1510
+ }), X = () => Y("spPr", Le), Z = () => Y("txPr", We), Gt = () => Y("numFmt", ot), Kt = (e) => ({
1459
1511
  name: e,
1460
1512
  key: e,
1461
1513
  read: (e) => {
@@ -1464,28 +1516,28 @@ var r = [
1464
1516
  return e.trim() !== "" && Number.isFinite(t) ? t : void 0;
1465
1517
  },
1466
1518
  write: (e) => String(e)
1467
- }), Ut = (e) => g(e).filter(([e]) => e !== "xmlns" && !e.startsWith("xmlns:")), Wt = (e) => ({
1519
+ }), qt = (e) => g(e).filter(([e]) => e !== "xmlns" && !e.startsWith("xmlns:")), Jt = (e) => ({
1468
1520
  tags: [e],
1469
1521
  key: e,
1470
1522
  ns: "cx",
1471
1523
  read: (e) => {
1472
1524
  if (u(e).length > 0) return;
1473
1525
  let t = { f: d(e) };
1474
- for (let [n, r] of Ut(e)) {
1526
+ for (let [n, r] of qt(e)) {
1475
1527
  if (n !== "dir" || r !== "col" && r !== "row") return;
1476
1528
  t.dir = r;
1477
1529
  }
1478
1530
  return t.f === "" ? void 0 : t;
1479
1531
  },
1480
1532
  write: (t, n) => {
1481
- let r = C("cx", e);
1533
+ let r = w("cx", e);
1482
1534
  t.open(r, n.dir ? [["dir", n.dir]] : null).text(n.f).close(r);
1483
1535
  }
1484
- }), Gt = {
1536
+ }), Yt = {
1485
1537
  attributes: [
1486
- D("ptCount", "int"),
1487
- D("formatCode", "str"),
1488
- D("name", "str")
1538
+ O("ptCount", "int"),
1539
+ O("formatCode", "str"),
1540
+ O("name", "str")
1489
1541
  ],
1490
1542
  fields: [{
1491
1543
  tags: ["pt"],
@@ -1494,50 +1546,50 @@ var r = [
1494
1546
  many: !0,
1495
1547
  read: (e) => {
1496
1548
  if (u(e).length > 0) return;
1497
- let t = Ut(e);
1549
+ let t = qt(e);
1498
1550
  if (t.length !== 1 || t[0][0] !== "idx") return;
1499
1551
  let n = Number(t[0][1]);
1500
- return Number.isInteger(n) && b(String(n)) === b(t[0][1]) ? {
1552
+ return Number.isInteger(n) && x(String(n)) === x(t[0][1]) ? {
1501
1553
  idx: n,
1502
1554
  v: d(e)
1503
1555
  } : void 0;
1504
1556
  },
1505
1557
  write: (e, t) => {
1506
- let n = C("cx", "pt");
1558
+ let n = w("cx", "pt");
1507
1559
  t.v === "" ? e.open(n, [["idx", String(t.idx)]], !0) : e.open(n, [["idx", String(t.idx)]]).text(t.v).close(n);
1508
1560
  }
1509
1561
  }]
1510
- }, Kt = {
1511
- attributes: [D("type", "str")],
1562
+ }, Xt = {
1563
+ attributes: [O("type", "str")],
1512
1564
  fields: [
1513
- Wt("f"),
1514
- Wt("nf"),
1515
- Y("lvl", Gt, "levels", !0)
1565
+ Jt("f"),
1566
+ Jt("nf"),
1567
+ Y("lvl", Yt, "levels", !0)
1516
1568
  ]
1517
- }, qt = /* @__PURE__ */ new Set([
1569
+ }, Zt = /* @__PURE__ */ new Set([
1518
1570
  "val",
1519
1571
  "x",
1520
1572
  "y",
1521
1573
  "size",
1522
1574
  "colorVal"
1523
- ]), Jt = /* @__PURE__ */ new Set([
1575
+ ]), Qt = /* @__PURE__ */ new Set([
1524
1576
  "cat",
1525
1577
  "colorStr",
1526
1578
  "entityId"
1527
- ]), Yt = {
1579
+ ]), $t = {
1528
1580
  fields: [Y("data", {
1529
- attributes: [D("id", "int")],
1581
+ attributes: [O("id", "int")],
1530
1582
  fields: [{
1531
1583
  tags: ["numDim", "strDim"],
1532
1584
  key: "dimensions",
1533
1585
  ns: "cx",
1534
1586
  many: !0,
1535
1587
  read: (e, t, n) => {
1536
- let r = x(e, Kt, t, n);
1537
- return (e.name === "numDim" ? qt : Jt).has(r.type) ? r : void 0;
1588
+ let r = S(e, Xt, t, n);
1589
+ return (e.name === "numDim" ? Zt : Qt).has(r.type) ? r : void 0;
1538
1590
  },
1539
1591
  write: (e, t) => {
1540
- S(e, C("cx", qt.has(t.type) ? "numDim" : "strDim"), t, Kt);
1592
+ C(e, w("cx", Zt.has(t.type) ? "numDim" : "strDim"), t, Xt);
1541
1593
  }
1542
1594
  }],
1543
1595
  afterRead: (e) => {
@@ -1547,76 +1599,76 @@ var r = [
1547
1599
  afterRead: (e) => {
1548
1600
  e.data ??= [];
1549
1601
  }
1550
- }, Xt = { fields: [Y("txData", { fields: [Wt("f"), T("v", "v", "cx")] }), Y("rich", P)] }, Zt = () => [
1551
- D("pos", "str"),
1552
- D("align", "str"),
1553
- D("overlay", "bool")
1554
- ], Qt = {
1555
- attributes: Zt(),
1602
+ }, en = { fields: [Y("txData", { fields: [Jt("f"), E("v", "v", "cx")] }), Y("rich", We)] }, tn = () => [
1603
+ O("pos", "str"),
1604
+ O("align", "str"),
1605
+ O("overlay", "bool")
1606
+ ], nn = {
1607
+ attributes: tn(),
1556
1608
  fields: [
1557
- Y("tx", Xt),
1609
+ Y("tx", en),
1558
1610
  X(),
1559
1611
  Z()
1560
1612
  ]
1561
- }, $t = {
1562
- attributes: Zt(),
1613
+ }, rn = {
1614
+ attributes: tn(),
1563
1615
  fields: [X(), Z()]
1564
- }, en = {
1616
+ }, an = {
1565
1617
  attributes: [
1566
- D("seriesName", "bool"),
1567
- D("categoryName", "bool"),
1568
- D("value", "bool")
1618
+ O("seriesName", "bool"),
1619
+ O("categoryName", "bool"),
1620
+ O("value", "bool")
1569
1621
  ],
1570
1622
  fields: []
1571
- }, tn = () => [
1572
- Vt(),
1623
+ }, on = () => [
1624
+ Gt(),
1573
1625
  X(),
1574
1626
  Z(),
1575
- Y("visibility", en),
1576
- T("separator", "separator", "cx")
1577
- ], nn = {
1578
- attributes: [D("idx", "int"), D("pos", "str")],
1579
- fields: tn()
1580
- }, rn = {
1581
- attributes: [D("idx", "int")],
1627
+ Y("visibility", an),
1628
+ E("separator", "separator", "cx")
1629
+ ], sn = {
1630
+ attributes: [O("idx", "int"), O("pos", "str")],
1631
+ fields: on()
1632
+ }, cn = {
1633
+ attributes: [O("idx", "int")],
1582
1634
  fields: []
1583
- }, an = {
1584
- attributes: [D("pos", "str")],
1635
+ }, ln = {
1636
+ attributes: [O("pos", "str")],
1585
1637
  fields: [
1586
- ...tn(),
1587
- Y("dataLabel", nn, "labels", !0),
1588
- Y("dataLabelHidden", rn, "hiddenLabels", !0)
1638
+ ...on(),
1639
+ Y("dataLabel", sn, "labels", !0),
1640
+ Y("dataLabelHidden", cn, "hiddenLabels", !0)
1589
1641
  ]
1590
- }, on = {
1591
- attributes: [D("idx", "int")],
1642
+ }, un = {
1643
+ attributes: [O("idx", "int")],
1592
1644
  fields: [X()]
1593
- }, sn = {
1645
+ }, dn = {
1594
1646
  attributes: [
1595
1647
  "connectorLines",
1596
1648
  "meanLine",
1597
1649
  "meanMarker",
1598
1650
  "nonoutliers",
1599
1651
  "outliers"
1600
- ].map((e) => D(e, "bool")),
1652
+ ].map((e) => O(e, "bool")),
1601
1653
  fields: []
1602
- }, cn = {
1654
+ }, fn = {
1603
1655
  attributes: [
1604
- D("intervalClosed", "str"),
1605
- Ht("underflow"),
1606
- Ht("overflow")
1656
+ O("intervalClosed", "str"),
1657
+ Kt("underflow"),
1658
+ Kt("overflow")
1607
1659
  ],
1608
- fields: [w("binSize", "num", "binSize", "cx"), w("binCount", "int", "binCount", "cx")]
1609
- }, ln = { fields: [{
1610
- ...w("idx", "int", "indexes", "cx"),
1660
+ fields: [T("binSize", "num", "binSize", "cx"), T("binCount", "int", "binCount", "cx")]
1661
+ }, pn = { fields: [{
1662
+ ...T("idx", "int", "indexes", "cx"),
1611
1663
  many: !0
1612
- }] }, un = { fields: [
1613
- w("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1614
- w("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1615
- Y("visibility", sn),
1664
+ }] }, mn = { fields: [
1665
+ T("parentLabelLayout", "str", "parentLabelLayout", "cx"),
1666
+ T("regionLabelLayout", "str", "regionLabelLayout", "cx"),
1667
+ Y("visibility", dn),
1616
1668
  Y("aggregation", { fields: [] }),
1617
- Y("binning", cn),
1669
+ Y("binning", fn),
1618
1670
  Y("statistics", {
1619
- attributes: [D("quartileMethod", "str")],
1671
+ attributes: [O("quartileMethod", "str")],
1620
1672
  fields: []
1621
1673
  }),
1622
1674
  {
@@ -1624,50 +1676,50 @@ var r = [
1624
1676
  key: "subtotals",
1625
1677
  ns: "cx",
1626
1678
  read: (e, t, n) => {
1627
- let r = x(e, ln, t, n);
1679
+ let r = S(e, pn, t, n);
1628
1680
  return r.unknown ? void 0 : r.indexes ?? [];
1629
1681
  },
1630
1682
  write: (e, t) => {
1631
- S(e, C("cx", "subtotals"), { indexes: t }, ln);
1683
+ C(e, w("cx", "subtotals"), { indexes: t }, pn);
1632
1684
  }
1633
1685
  }
1634
- ] }, dn = {
1686
+ ] }, hn = {
1635
1687
  attributes: [
1636
- D("layoutId", "str"),
1637
- D("hidden", "bool"),
1638
- D("ownerIdx", "int"),
1639
- D("uniqueId", "str"),
1640
- D("formatIdx", "int")
1688
+ O("layoutId", "str"),
1689
+ O("hidden", "bool"),
1690
+ O("ownerIdx", "int"),
1691
+ O("uniqueId", "str"),
1692
+ O("formatIdx", "int")
1641
1693
  ],
1642
1694
  fields: [
1643
- Y("tx", Xt),
1695
+ Y("tx", en),
1644
1696
  X(),
1645
- Y("dataPt", on, "points", !0),
1646
- Y("dataLabels", an),
1647
- w("dataId", "int", "dataId", "cx"),
1648
- Y("layoutPr", un),
1697
+ Y("dataPt", un, "points", !0),
1698
+ Y("dataLabels", ln),
1699
+ T("dataId", "int", "dataId", "cx"),
1700
+ Y("layoutPr", mn),
1649
1701
  {
1650
- ...w("axisId", "int", "axisIds", "cx"),
1702
+ ...T("axisId", "int", "axisIds", "cx"),
1651
1703
  many: !0
1652
1704
  }
1653
1705
  ]
1654
- }, fn = {
1655
- fields: [Y("plotSurface", { fields: [X()] }), Y("series", dn, "series", !0)],
1706
+ }, gn = {
1707
+ fields: [Y("plotSurface", { fields: [X()] }), Y("series", hn, "series", !0)],
1656
1708
  afterRead: (e) => {
1657
1709
  e.series ??= [];
1658
1710
  }
1659
- }, pn = { fields: [
1660
- Y("tx", Xt),
1711
+ }, _n = { fields: [
1712
+ Y("tx", en),
1661
1713
  X(),
1662
1714
  Z()
1663
- ] }, mn = { fields: [X()] }, hn = {
1664
- attributes: [D("type", "str")],
1715
+ ] }, vn = { fields: [X()] }, yn = {
1716
+ attributes: [O("type", "str")],
1665
1717
  fields: []
1666
- }, gn = {
1667
- attributes: [D("id", "int"), D("hidden", "bool")],
1718
+ }, bn = {
1719
+ attributes: [O("id", "int"), O("hidden", "bool")],
1668
1720
  fields: [
1669
1721
  Y("catScaling", {
1670
- attributes: [D("gapWidth", "num")],
1722
+ attributes: [O("gapWidth", "num")],
1671
1723
  fields: []
1672
1724
  }),
1673
1725
  Y("valScaling", {
@@ -1676,42 +1728,42 @@ var r = [
1676
1728
  "min",
1677
1729
  "majorUnit",
1678
1730
  "minorUnit"
1679
- ].map((e) => D(e, "num")),
1731
+ ].map((e) => O(e, "num")),
1680
1732
  fields: []
1681
1733
  }),
1682
- Y("title", pn),
1734
+ Y("title", _n),
1683
1735
  Y("units", {
1684
- attributes: [D("unit", "str")],
1685
- fields: [Y("unitsLabel", pn)]
1736
+ attributes: [O("unit", "str")],
1737
+ fields: [Y("unitsLabel", _n)]
1686
1738
  }),
1687
- Y("majorGridlines", mn),
1688
- Y("minorGridlines", mn),
1689
- Y("majorTickMarks", hn),
1690
- Y("minorTickMarks", hn),
1739
+ Y("majorGridlines", vn),
1740
+ Y("minorGridlines", vn),
1741
+ Y("majorTickMarks", yn),
1742
+ Y("minorTickMarks", yn),
1691
1743
  Y("tickLabels", { fields: [] }),
1692
- Vt(),
1744
+ Gt(),
1693
1745
  X(),
1694
1746
  Z()
1695
1747
  ]
1696
- }, _n = {
1748
+ }, xn = {
1697
1749
  fields: [
1698
- Y("plotAreaRegion", fn),
1699
- Y("axis", gn, "axes", !0),
1750
+ Y("plotAreaRegion", gn),
1751
+ Y("axis", bn, "axes", !0),
1700
1752
  X()
1701
1753
  ],
1702
1754
  afterRead: (e) => {
1703
1755
  e.axes ??= [];
1704
1756
  }
1705
- }, vn = { fields: [
1706
- Y("title", Qt),
1707
- Y("plotArea", _n),
1708
- Y("legend", $t)
1709
- ] }, yn = { fields: [
1710
- Y("chartData", Yt),
1711
- Y("chart", vn),
1757
+ }, Sn = { fields: [
1758
+ Y("title", nn),
1759
+ Y("plotArea", xn),
1760
+ Y("legend", rn)
1761
+ ] }, Cn = { fields: [
1762
+ Y("chartData", $t),
1763
+ Y("chart", Sn),
1712
1764
  X(),
1713
1765
  Z()
1714
- ] }, bn = {
1766
+ ] }, wn = {
1715
1767
  waterfall: "waterfall",
1716
1768
  clusteredColumn: "histogram",
1717
1769
  boxWhisker: "boxWhisker",
@@ -1719,7 +1771,7 @@ var r = [
1719
1771
  sunburst: "sunburst",
1720
1772
  funnel: "funnel",
1721
1773
  regionMap: "regionMap"
1722
- }, xn = Object.fromEntries(Object.entries(bn).map(([e, t]) => [t, e])), Sn = new Set(Object.values(bn)), Cn = "paretoLine", wn = {
1774
+ }, Tn = Object.fromEntries(Object.entries(wn).map(([e, t]) => [t, e])), En = new Set(Object.values(wn)), Dn = "paretoLine", On = {
1723
1775
  cat: "cat",
1724
1776
  val: "val",
1725
1777
  x: "xVal",
@@ -1728,13 +1780,13 @@ var r = [
1728
1780
  colorVal: "color",
1729
1781
  colorStr: "color",
1730
1782
  entityId: "entityId"
1731
- }, Tn = /* @__PURE__ */ new Set([
1783
+ }, kn = /* @__PURE__ */ new Set([
1732
1784
  "val",
1733
1785
  "x",
1734
1786
  "y",
1735
1787
  "size",
1736
1788
  "colorVal"
1737
- ]), En = [
1789
+ ]), An = [
1738
1790
  "cat",
1739
1791
  "colorStr",
1740
1792
  "entityId",
@@ -1749,20 +1801,20 @@ var r = [
1749
1801
  }, $ = (e) => Q({
1750
1802
  f: e.f,
1751
1803
  dir: e.dir
1752
- }), Dn = (e) => e && Q({
1804
+ }), jn = (e) => e && Q({
1753
1805
  strRef: e.txData?.f ? $(e.txData.f) : void 0,
1754
1806
  v: e.txData?.v,
1755
1807
  rich: e.rich,
1756
1808
  unknown: e.unknown
1757
- }), On = (e) => e && Q({
1758
- tx: Dn(e.tx),
1809
+ }), Mn = (e) => e && Q({
1810
+ tx: jn(e.tx),
1759
1811
  overlay: e.overlay,
1760
1812
  spPr: e.spPr,
1761
1813
  txPr: e.txPr,
1762
1814
  pos: e.pos,
1763
1815
  align: e.align,
1764
1816
  unknown: e.unknown
1765
- }), kn = (e) => Q({
1817
+ }), Nn = (e) => Q({
1766
1818
  numFmt: e.numFmt,
1767
1819
  spPr: e.spPr,
1768
1820
  txPr: e.txPr,
@@ -1772,17 +1824,17 @@ var r = [
1772
1824
  showVal: e.visibility?.value,
1773
1825
  separator: e.separator,
1774
1826
  unknown: e.unknown
1775
- }), An = (e) => {
1827
+ }), Pn = (e) => {
1776
1828
  if (!e) return;
1777
- let t = kn(e), n = [...(e.labels ?? []).map((e) => ({
1829
+ let t = Nn(e), n = [...(e.labels ?? []).map((e) => ({
1778
1830
  idx: e.idx,
1779
- ...kn(e)
1831
+ ...Nn(e)
1780
1832
  })), ...(e.hiddenLabels ?? []).map((e) => ({
1781
1833
  idx: e.idx,
1782
1834
  delete: !0
1783
1835
  }))];
1784
1836
  return n.length > 0 && (t.labels = n), t;
1785
- }, jn = (e, t) => {
1837
+ }, Fn = (e, t) => {
1786
1838
  let n = (e ?? []).map((e) => ({ ...e }));
1787
1839
  for (let e of [...t ?? []].sort((e, t) => e - t)) {
1788
1840
  let t = n.find((t) => t.idx === e);
@@ -1792,11 +1844,11 @@ var r = [
1792
1844
  });
1793
1845
  }
1794
1846
  return n.length > 0 ? n : void 0;
1795
- }, Mn = (e) => {
1847
+ }, In = (e) => {
1796
1848
  if (!e) return;
1797
1849
  let { subtotals: t, ...n } = e;
1798
1850
  return Object.keys(n).length > 0 ? n : void 0;
1799
- }, Nn = (e) => Q({
1851
+ }, Ln = (e) => Q({
1800
1852
  ptCount: e.ptCount,
1801
1853
  formatCode: e.formatCode,
1802
1854
  name: e.name,
@@ -1805,59 +1857,59 @@ var r = [
1805
1857
  v: e.v
1806
1858
  })),
1807
1859
  unknown: e.unknown
1808
- }), Pn = (e) => {
1809
- let t = Tn.has(e.type), n = e.levels?.map(Nn), r = {};
1860
+ }), Rn = (e) => {
1861
+ let t = kn.has(e.type), n = e.levels?.map(Ln), r = {};
1810
1862
  return e.f ? r[t ? "numRef" : "strRef"] = Q({
1811
1863
  ...$(e.f),
1812
1864
  cache: n ? { levels: n } : void 0
1813
1865
  }) : r[t ? "numLit" : "strLit"] = Q({ levels: n }), e.nf && (r.nf = $(e.nf)), e.unknown && (r.unknown = e.unknown), r;
1814
- }, Fn = (e, t) => {
1866
+ }, zn = (e, t) => {
1815
1867
  let n = Q({
1816
1868
  idx: e.formatIdx,
1817
1869
  hidden: e.hidden,
1818
1870
  uniqueId: e.uniqueId,
1819
- tx: Dn(e.tx),
1871
+ tx: jn(e.tx),
1820
1872
  spPr: e.spPr,
1821
- points: jn(e.points, e.layoutPr?.subtotals),
1822
- dLbls: An(e.dataLabels),
1823
- layoutPr: Mn(e.layoutPr),
1873
+ points: Fn(e.points, e.layoutPr?.subtotals),
1874
+ dLbls: Pn(e.dataLabels),
1875
+ layoutPr: In(e.layoutPr),
1824
1876
  unknown: e.unknown
1825
1877
  });
1826
1878
  for (let e of t?.dimensions ?? []) {
1827
- let t = wn[e.type];
1828
- t && !n[t] && (n[t] = Pn(e));
1879
+ let t = On[e.type];
1880
+ t && !n[t] && (n[t] = Rn(e));
1829
1881
  }
1830
1882
  return n;
1831
- }, In = (e) => Q({
1883
+ }, Bn = (e) => Q({
1832
1884
  idx: e.formatIdx,
1833
1885
  hidden: e.hidden,
1834
1886
  uniqueId: e.uniqueId,
1835
- tx: Dn(e.tx),
1887
+ tx: jn(e.tx),
1836
1888
  spPr: e.spPr,
1837
- points: jn(e.points, e.layoutPr?.subtotals),
1838
- dLbls: An(e.dataLabels),
1839
- layoutPr: Mn(e.layoutPr),
1889
+ points: Fn(e.points, e.layoutPr?.subtotals),
1890
+ dLbls: Pn(e.dataLabels),
1891
+ layoutPr: In(e.layoutPr),
1840
1892
  axIds: e.axisIds,
1841
1893
  unknown: e.unknown
1842
- }), Ln = (e, t) => {
1894
+ }), Vn = (e, t) => {
1843
1895
  let n = new Map(t.map((e) => [e.id, e])), r = [], i = [], a = null;
1844
1896
  for (let t of e?.series ?? []) {
1845
- if (t.layoutId === Cn) {
1897
+ if (t.layoutId === Dn) {
1846
1898
  let e = t.ownerIdx === void 0 ? null : i[t.ownerIdx];
1847
- e && !e.cumulativeLine && (e.cumulativeLine = In(t)), i.push(null);
1899
+ e && !e.cumulativeLine && (e.cumulativeLine = Bn(t)), i.push(null);
1848
1900
  continue;
1849
1901
  }
1850
- let e = bn[t.layoutId] ?? t.layoutId, o = t.axisIds ?? [];
1902
+ let e = wn[t.layoutId] ?? t.layoutId, o = t.axisIds ?? [];
1851
1903
  a && a.type === e && JSON.stringify(a.axIds) === JSON.stringify(o) || (a = {
1852
1904
  type: e,
1853
1905
  series: [],
1854
1906
  axIds: o
1855
1907
  }, r.push(a));
1856
- let s = Fn(t, t.dataId === void 0 ? void 0 : n.get(t.dataId));
1908
+ let s = zn(t, t.dataId === void 0 ? void 0 : n.get(t.dataId));
1857
1909
  a.series.push(s), i.push(s);
1858
1910
  }
1859
1911
  return r;
1860
- }, Rn = (e) => {
1912
+ }, Hn = (e) => {
1861
1913
  let t = e.catScaling ?? e.valScaling;
1862
1914
  return Q({
1863
1915
  type: e.catScaling || !e.valScaling ? "cat" : "val",
@@ -1871,7 +1923,7 @@ var r = [
1871
1923
  delete: e.hidden,
1872
1924
  majorGridlines: e.majorGridlines,
1873
1925
  minorGridlines: e.minorGridlines,
1874
- title: On(e.title),
1926
+ title: Mn(e.title),
1875
1927
  numFmt: e.numFmt,
1876
1928
  majorTickMark: e.majorTickMarks?.type,
1877
1929
  minorTickMark: e.minorTickMarks?.type,
@@ -1882,24 +1934,24 @@ var r = [
1882
1934
  minorUnit: e.valScaling?.minorUnit,
1883
1935
  dispUnits: e.units && Q({
1884
1936
  builtInUnit: e.units.unit,
1885
- dispUnitsLbl: On(e.units.unitsLabel),
1937
+ dispUnitsLbl: Mn(e.units.unitsLabel),
1886
1938
  unknown: e.units.unknown
1887
1939
  }),
1888
1940
  unknown: e.unknown
1889
1941
  });
1890
- }, zn = (e) => e && Q({
1942
+ }, Un = (e) => e && Q({
1891
1943
  txData: e.strRef || e.v !== void 0 ? Q({
1892
1944
  f: e.strRef ? $(e.strRef) : void 0,
1893
1945
  v: e.v
1894
1946
  }) : void 0,
1895
1947
  rich: e.rich,
1896
1948
  unknown: e.unknown
1897
- }), Bn = (e) => e && Q({
1898
- tx: zn(e.tx),
1949
+ }), Wn = (e) => e && Q({
1950
+ tx: Un(e.tx),
1899
1951
  spPr: e.spPr,
1900
1952
  txPr: e.txPr,
1901
1953
  unknown: e.unknown
1902
- }), Vn = (e) => {
1954
+ }), Gn = (e) => {
1903
1955
  let t = e.showSerName !== void 0 || e.showCatName !== void 0 || e.showVal !== void 0;
1904
1956
  return Q({
1905
1957
  pos: e.dLblPos,
@@ -1914,23 +1966,23 @@ var r = [
1914
1966
  separator: e.separator,
1915
1967
  unknown: e.unknown
1916
1968
  });
1917
- }, Hn = (e) => !0 === e.delete && Object.keys(e).every((e) => e === "idx" || e === "delete"), Un = (e) => {
1969
+ }, Kn = (e) => !0 === e.delete && Object.keys(e).every((e) => e === "idx" || e === "delete"), qn = (e) => {
1918
1970
  if (!e) return;
1919
- let t = Vn(e), n = (e.labels ?? []).filter((e) => !Hn(e)).map((e) => ({
1971
+ let t = Gn(e), n = (e.labels ?? []).filter((e) => !Kn(e)).map((e) => ({
1920
1972
  idx: e.idx,
1921
- ...Vn(e)
1922
- })), r = (e.labels ?? []).filter(Hn).map((e) => ({ idx: e.idx }));
1973
+ ...Gn(e)
1974
+ })), r = (e.labels ?? []).filter(Kn).map((e) => ({ idx: e.idx }));
1923
1975
  return n.length > 0 && (t.labels = n), r.length > 0 && (t.hiddenLabels = r), t;
1924
- }, Wn = (e) => {
1976
+ }, Jn = (e) => {
1925
1977
  let t = (e ?? []).filter((e) => Object.keys(e).some((e) => e !== "idx" && e !== "subtotal")).map(({ subtotal: e, ...t }) => t);
1926
1978
  return t.length > 0 ? t : void 0;
1927
- }, Gn = (e, t, n) => {
1979
+ }, Yn = (e, t, n) => {
1928
1980
  let r = (t ?? []).filter((e) => e.subtotal).map((e) => e.idx).sort((e, t) => e - t);
1929
1981
  return r.length !== 0 || n ? {
1930
1982
  ...e,
1931
1983
  subtotals: r
1932
1984
  } : e;
1933
- }, Kn = (e) => Q({
1985
+ }, Xn = (e) => Q({
1934
1986
  ptCount: e.ptCount,
1935
1987
  formatCode: e.formatCode,
1936
1988
  name: e.name,
@@ -1939,7 +1991,7 @@ var r = [
1939
1991
  v: e.v
1940
1992
  })) : void 0,
1941
1993
  unknown: e.unknown
1942
- }), qn = (e, t) => e === "color" ? t.strRef || t.strLit ? "colorStr" : "colorVal" : Object.keys(wn).find((t) => wn[t] === e), Jn = (e) => {
1994
+ }), Zn = (e, t) => e === "color" ? t.strRef || t.strLit ? "colorStr" : "colorVal" : Object.keys(On).find((t) => On[t] === e), Qn = (e) => {
1943
1995
  let t = [];
1944
1996
  for (let n of [
1945
1997
  "cat",
@@ -1954,15 +2006,15 @@ var r = [
1954
2006
  if (!r) continue;
1955
2007
  let i = r.numRef ?? r.strRef, a = (i ? i.cache : r.numLit ?? r.strLit)?.levels;
1956
2008
  t.push(Q({
1957
- type: qn(n, r),
2009
+ type: Zn(n, r),
1958
2010
  f: i ? $(i) : void 0,
1959
2011
  nf: r.nf ? $(r.nf) : void 0,
1960
- levels: a && a.length > 0 ? a.map(Kn) : void 0,
2012
+ levels: a && a.length > 0 ? a.map(Xn) : void 0,
1961
2013
  unknown: r.unknown
1962
2014
  }));
1963
2015
  }
1964
- return t.sort((e, t) => En.indexOf(e.type) - En.indexOf(t.type));
1965
- }, Yn = (e) => {
2016
+ return t.sort((e, t) => An.indexOf(e.type) - An.indexOf(t.type));
2017
+ }, $n = (e) => {
1966
2018
  let t = e.scaling ?? {}, n = e.type === "cat" || e.type === "date";
1967
2019
  return Q({
1968
2020
  id: e.axId,
@@ -1978,10 +2030,10 @@ var r = [
1978
2030
  minorUnit: e.minorUnit,
1979
2031
  unknown: t.unknown
1980
2032
  }),
1981
- title: Bn(e.title),
2033
+ title: Wn(e.title),
1982
2034
  units: e.dispUnits && Q({
1983
2035
  unit: e.dispUnits.builtInUnit,
1984
- unitsLabel: Bn(e.dispUnits.dispUnitsLbl),
2036
+ unitsLabel: Wn(e.dispUnits.dispUnitsLbl),
1985
2037
  unknown: e.dispUnits.unknown
1986
2038
  }),
1987
2039
  majorGridlines: e.majorGridlines,
@@ -1994,12 +2046,12 @@ var r = [
1994
2046
  txPr: e.txPr,
1995
2047
  unknown: e.unknown
1996
2048
  });
1997
- }, Xn = (e) => {
2049
+ }, er = (e) => {
1998
2050
  let t = e.chart, n = t?.plotArea, r = [], i = [], a = [];
1999
2051
  for (let e of n?.groups ?? []) {
2000
- let t = xn[e.type];
2052
+ let t = Tn[e.type];
2001
2053
  if (t) for (let n of e.series) {
2002
- let o = Jn(n), s;
2054
+ let o = Qn(n), s;
2003
2055
  if (o.length > 0) {
2004
2056
  let e = JSON.stringify(o);
2005
2057
  s = a.indexOf(e), s === -1 && (s = i.length, i.push({
@@ -2013,27 +2065,27 @@ var r = [
2013
2065
  hidden: n.hidden,
2014
2066
  uniqueId: n.uniqueId,
2015
2067
  formatIdx: n.idx,
2016
- tx: zn(n.tx),
2068
+ tx: Un(n.tx),
2017
2069
  spPr: n.spPr,
2018
- points: Wn(n.points),
2019
- dataLabels: Un(n.dLbls),
2070
+ points: Jn(n.points),
2071
+ dataLabels: qn(n.dLbls),
2020
2072
  dataId: s,
2021
- layoutPr: Gn(n.layoutPr, n.points, e.type === "waterfall"),
2073
+ layoutPr: Yn(n.layoutPr, n.points, e.type === "waterfall"),
2022
2074
  axisIds: e.axIds.length > 0 ? e.axIds : void 0,
2023
2075
  unknown: n.unknown
2024
2076
  }));
2025
2077
  let l = n.cumulativeLine;
2026
2078
  l && r.push(Q({
2027
- layoutId: Cn,
2079
+ layoutId: Dn,
2028
2080
  hidden: l.hidden,
2029
2081
  ownerIdx: c,
2030
2082
  uniqueId: l.uniqueId,
2031
2083
  formatIdx: l.idx,
2032
- tx: zn(l.tx),
2084
+ tx: Un(l.tx),
2033
2085
  spPr: l.spPr,
2034
- points: Wn(l.points),
2035
- dataLabels: Un(l.dLbls),
2036
- layoutPr: Gn(l.layoutPr, l.points, !1),
2086
+ points: Jn(l.points),
2087
+ dataLabels: qn(l.dLbls),
2088
+ layoutPr: Yn(l.layoutPr, l.points, !1),
2037
2089
  axisIds: l.axIds,
2038
2090
  unknown: l.unknown
2039
2091
  }));
@@ -2047,7 +2099,7 @@ var r = [
2047
2099
  pos: s.pos,
2048
2100
  align: s.align,
2049
2101
  overlay: s.overlay,
2050
- tx: zn(s.tx),
2102
+ tx: Un(s.tx),
2051
2103
  spPr: s.spPr,
2052
2104
  txPr: s.txPr,
2053
2105
  unknown: s.unknown
@@ -2057,7 +2109,7 @@ var r = [
2057
2109
  plotSurface: n?.plotSurface,
2058
2110
  series: r
2059
2111
  }),
2060
- axes: (n?.axes ?? []).map(Yn),
2112
+ axes: (n?.axes ?? []).map($n),
2061
2113
  spPr: n?.spPr,
2062
2114
  unknown: n?.unknown
2063
2115
  }),
@@ -2076,24 +2128,24 @@ var r = [
2076
2128
  unknown: e.unknown
2077
2129
  });
2078
2130
  var s;
2079
- }, Zn = (e, t) => {
2131
+ }, tr = (e, t) => {
2080
2132
  if (e === t) return !0;
2081
2133
  if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
2082
2134
  let n = (e) => Object.keys(e).filter((t) => e[t] !== void 0), r = n(e), i = n(t);
2083
- return r.length === i.length && r.every((n) => Zn(e[n], t[n]));
2084
- }, Qn = (e, t) => Zn(e, Xn(t)), $n = (e) => {
2135
+ return r.length === i.length && r.every((n) => tr(e[n], t[n]));
2136
+ }, nr = (e, t) => tr(e, er(t)), rr = (e) => {
2085
2137
  let t = l(e);
2086
2138
  if (!t || t.name !== "chartSpace") return null;
2087
2139
  let n = _(t, ce);
2088
2140
  if (!se(ue(t, n))) return null;
2089
- let r = new ge(e, n), i = x(t, yn, ce, r), a = ((e) => {
2141
+ let r = new he(e, n), i = S(t, Cn, ce, r), a = ((e) => {
2090
2142
  let t = e.chart, n = t?.plotArea, r = t?.legend;
2091
2143
  return Q({
2092
2144
  chart: Q({
2093
- title: On(t?.title),
2145
+ title: Mn(t?.title),
2094
2146
  plotArea: Q({
2095
- groups: Ln(n?.plotAreaRegion, e.chartData?.data ?? []),
2096
- axes: (n?.axes ?? []).map(Rn),
2147
+ groups: Vn(n?.plotAreaRegion, e.chartData?.data ?? []),
2148
+ axes: (n?.axes ?? []).map(Hn),
2097
2149
  spPr: n?.spPr,
2098
2150
  plotSurface: n?.plotAreaRegion?.plotSurface,
2099
2151
  unknown: n?.unknown
@@ -2117,16 +2169,16 @@ var r = [
2117
2169
  model: a,
2118
2170
  kept: r.kept,
2119
2171
  reordered: r.reordered,
2120
- lossy: !Qn(i, a)
2172
+ lossy: !nr(i, a)
2121
2173
  };
2122
- }, er = (e) => {
2174
+ }, ir = (e) => {
2123
2175
  let t = { ...e.unknown?.attributes }, n = (e, n) => {
2124
2176
  t[`xmlns:${e}`] ??= n;
2125
2177
  };
2126
2178
  n(h.a, p), n(h.r, m), n(h.cx, re);
2127
- let r = Xn(e), i = new de().raw(Rt);
2179
+ let r = er(e), i = new v().raw(Ht);
2128
2180
  return ((e, t) => {
2129
- S(e, C("cx", "chartSpace"), t, yn);
2181
+ C(e, w("cx", "chartSpace"), t, Cn);
2130
2182
  })(i, {
2131
2183
  ...r,
2132
2184
  unknown: {
@@ -2134,13 +2186,13 @@ var r = [
2134
2186
  attributes: t
2135
2187
  }
2136
2188
  }), i.toString();
2137
- }, tr = (e, t) => {
2189
+ }, ar = (e, t) => {
2138
2190
  if (t) {
2139
- let n = $n(t);
2191
+ let n = rr(t);
2140
2192
  if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
2141
2193
  }
2142
- return er(e);
2143
- }, nr = {
2194
+ return ir(e);
2195
+ }, or = {
2144
2196
  chart: {
2145
2197
  relType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
2146
2198
  contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
@@ -2153,7 +2205,7 @@ var r = [
2153
2205
  path: "../charts/chartEx{n}.xml",
2154
2206
  graphicUri: re
2155
2207
  }
2156
- }, rr = /* @__PURE__ */ new Set([
2208
+ }, sr = /* @__PURE__ */ new Set([
2157
2209
  "area",
2158
2210
  "bar",
2159
2211
  "line",
@@ -2165,33 +2217,33 @@ var r = [
2165
2217
  "radar",
2166
2218
  "stock",
2167
2219
  "surface"
2168
- ]), ir = (e) => e === nr.chartEx.relType ? "chartEx" : e === nr.chart.relType ? "chart" : null, ar = (e) => rr.has(e) ? "chart" : Sn.has(e) ? "chartEx" : null, or = (e) => {
2169
- let t = Lt(e);
2220
+ ]), cr = (e) => e === or.chartEx.relType ? "chartEx" : e === or.chart.relType ? "chart" : null, lr = (e) => sr.has(e) ? "chart" : En.has(e) ? "chartEx" : null, ur = (e) => {
2221
+ let t = Vt(e);
2170
2222
  if (t) return {
2171
2223
  model: t.model,
2172
2224
  family: "chart",
2173
2225
  kept: t.kept,
2174
2226
  lossy: !1
2175
2227
  };
2176
- let n = $n(e);
2228
+ let n = rr(e);
2177
2229
  return n ? {
2178
2230
  model: n.model,
2179
2231
  family: "chartEx",
2180
2232
  kept: n.kept,
2181
2233
  lossy: n.lossy
2182
2234
  } : null;
2183
- }, sr = (e) => {
2184
- if (Array.isArray(e)) return e.map(sr);
2235
+ }, dr = (e) => {
2236
+ if (Array.isArray(e)) return e.map(dr);
2185
2237
  if (typeof e != "object" || !e) return e;
2186
2238
  let t = {};
2187
- for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] = sr(r));
2239
+ for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] = dr(r));
2188
2240
  return t;
2189
- }, cr = (e, t) => {
2190
- let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) => ar(e.type)).find((e) => e !== null) ?? t?.family ?? "chart", i = n.filter((e) => ar(e.type) !== r).map((e) => e.type), a = e;
2241
+ }, fr = (e, t) => {
2242
+ let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) => lr(e.type)).find((e) => e !== null) ?? t?.family ?? "chart", i = n.filter((e) => lr(e.type) !== r).map((e) => e.type), a = e;
2191
2243
  if (i.length > 0) {
2192
2244
  let t = {
2193
2245
  ...e.chart.plotArea,
2194
- groups: n.filter((e) => ar(e.type) === r)
2246
+ groups: n.filter((e) => lr(e.type) === r)
2195
2247
  };
2196
2248
  a = {
2197
2249
  ...e,
@@ -2202,12 +2254,12 @@ var r = [
2202
2254
  };
2203
2255
  }
2204
2256
  let o = (t?.family ?? r) === r;
2205
- o || (a = sr(a));
2257
+ o || (a = dr(a));
2206
2258
  let s = o ? t?.xml : void 0;
2207
2259
  return {
2208
2260
  family: r,
2209
2261
  leftOut: i,
2210
- xml: r === "chartEx" ? tr(a, s) : Bt(a, s)
2262
+ xml: r === "chartEx" ? ar(a, s) : Wt(a, s)
2211
2263
  };
2212
2264
  };
2213
- export { i as a, cr as i, ir as n, r as o, or as r, nr as t };
2265
+ export { i as a, fr as i, cr as n, r as o, ur as r, or as t };