@sheetxl/io-xlsx 1.0.5 → 1.0.6
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.
- package/browser/esm/{clofhk5-eCPDQW9E.mjs → 8twPAx0iXVOHQF7M.mjs} +2 -2
- package/browser/esm/{BpMP4fA1G0jq4ucP.mjs → AUzndO_dXq2uXAQy.mjs} +804 -788
- package/browser/esm/{D-8PUtpwA7w1Vztk.mjs → AcInC71T9-1ULEU5.mjs} +2 -2
- package/browser/esm/{CduDdZifUgpa31H9.mjs → Bo6e8oAgFD2iY-YI.mjs} +4 -4
- package/browser/esm/{Bmltm5oHDjA46imK.mjs → C-J26ZzIvck2JVIY.mjs} +8 -8
- package/browser/esm/{DCxH223FyOmHfLZy.mjs → C3HFqaXGZmnvvgXu.mjs} +2 -2
- package/browser/esm/{n-8RFAhxWK4eYNVl.mjs → CEaaCkM0LqK8VtxS.mjs} +1 -1
- package/browser/esm/{CBiOsyxrSrCc2rHf.mjs → CRHs2mV0YZpM01kC.mjs} +4 -4
- package/browser/esm/{DXQmnPbbopMZKuDi.mjs → CT6OmL58l1HESEBl.mjs} +2 -2
- package/browser/esm/{DHhBj-FyuFwtF1jS.mjs → CeKec9Li8QnIzTOK.mjs} +1 -1
- package/browser/esm/{BIeUFn93H9tpjB2P.mjs → Dxmf_-Qe4ZEgmdJo.mjs} +7 -7
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{Z9V0xb8AYE8CyoEL.mjs → 2311buWetucn9hiZ.mjs} +1 -1
- package/node/esm/{DYrM7UZMaWo149eR.mjs → Bk9BEJSwXlHj8fbL.mjs} +6 -6
- package/node/esm/{B6_vyfcdvDh9N346.mjs → BlRZtxAC9VsylR-4.mjs} +928 -912
- package/node/esm/{UqobiqiwMs9REY7T.mjs → BnBif62UoI48SS79.mjs} +2 -2
- package/node/esm/{CA_cU7nQp5uyXXb2.mjs → DNhkyiLSEHh9Bgu_.mjs} +2 -2
- package/node/esm/{0E9feQjQRVK4OUcL.mjs → DTEwOiyesylYXv6G.mjs} +1 -1
- package/node/esm/{BAkDqp4pgMeVrOzO.mjs → DuA_b1khVjfcKaUx.mjs} +6 -6
- package/node/esm/index.mjs +4 -4
- package/node/esm/{0EFUOGDC3FYJxfgS.mjs → ybG-XNic24pCv4CN.mjs} +4 -4
- package/package.json +3 -3
- package/types/src/chart/_codec.d.ts +1 -1
- package/types/src/chart/_xml.d.ts +4 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { En as e, Sn as t, Tn as n, wn as r } from "./
|
|
7
|
+
import { En as e, Sn as t, Tn as n, wn as r } from "./C3HFqaXGZmnvvgXu.mjs";
|
|
8
8
|
import { Color as i, FormulaError as a, IFill as o, IFontStyle as s } from "@sheetxl/sdk";
|
|
9
9
|
var c = [
|
|
10
10
|
"customMenu",
|
|
@@ -81,8 +81,8 @@ var c = [
|
|
|
81
81
|
rest: x
|
|
82
82
|
};
|
|
83
83
|
u !== null && (C.records = ae);
|
|
84
|
-
let
|
|
85
|
-
return
|
|
84
|
+
let w = c.get("refreshOnLoad");
|
|
85
|
+
return w !== "1" && w !== "true" || (C.refreshOnLoad = !0), C;
|
|
86
86
|
}, ee = (e, t) => {
|
|
87
87
|
let n = RegExp(`<${t}((?:\\s+[^\\s=/>]+\\s*=\\s*(?:"[^"]*"|'[^']*'))*)`).exec(e);
|
|
88
88
|
return n ? {
|
|
@@ -281,20 +281,21 @@ var c = [
|
|
|
281
281
|
let t = "";
|
|
282
282
|
for (let n of e.children) typeof n == "string" && (t += n);
|
|
283
283
|
return t;
|
|
284
|
-
},
|
|
284
|
+
}, w = "http://schemas.openxmlformats.org/drawingml/2006/chart", ce = "http://purl.oclc.org/ooxml/drawingml/chart", le = "http://schemas.openxmlformats.org/drawingml/2006/main", ue = "http://purl.oclc.org/ooxml/drawingml/main", de = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", fe = "http://schemas.microsoft.com/office/drawing/2012/chart", pe = "http://schemas.microsoft.com/office/drawing/2017/03/chart", me = "http://schemas.microsoft.com/office/drawing/2014/chartex", he = "http://www.w3.org/XML/1998/namespace", T = {
|
|
285
285
|
c: "c",
|
|
286
286
|
a: "a",
|
|
287
287
|
r: "r",
|
|
288
288
|
c15: "c15",
|
|
289
|
+
c16r3: "c16r3",
|
|
289
290
|
cx: "cx"
|
|
290
|
-
}, ge = (e) => e ===
|
|
291
|
+
}, ge = (e) => e === w || e === ce, _e = (e) => e === le || e === ue, ve = (e) => e === me, ye = Object.freeze({ xml: he }), be = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, E = (e) => {
|
|
291
292
|
let t = [];
|
|
292
293
|
be.lastIndex = 0;
|
|
293
294
|
for (let n = be.exec(e.attrs); n; n = be.exec(e.attrs)) t.push([n[1], oe(n[2] ?? n[3] ?? "")]);
|
|
294
295
|
return t;
|
|
295
296
|
}, xe = (e, t) => {
|
|
296
297
|
let n = null;
|
|
297
|
-
for (let [r, i] of
|
|
298
|
+
for (let [r, i] of E(e)) r === "xmlns" ? (n ??= { ...t })[""] = i : r.startsWith("xmlns:") && ((n ??= { ...t })[r.slice(6)] = i);
|
|
298
299
|
return n ?? t;
|
|
299
300
|
}, Se = (e, t) => t[((e) => {
|
|
300
301
|
let t = e.indexOf(":");
|
|
@@ -323,15 +324,15 @@ var c = [
|
|
|
323
324
|
toString() {
|
|
324
325
|
return this._parts.join("");
|
|
325
326
|
}
|
|
326
|
-
}, we = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """),
|
|
327
|
-
let t =
|
|
328
|
-
return t === null ? Te.test(e) ? String(Number(e)) : e :
|
|
327
|
+
}, we = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """), D = (e) => e === "1" || e === "true" || e !== "0" && e !== "false" && null, O = (e) => e ? "1" : "0", Te = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, k = (e) => {
|
|
328
|
+
let t = D(e);
|
|
329
|
+
return t === null ? Te.test(e) ? String(Number(e)) : e : O(t);
|
|
329
330
|
}, Ee = /* @__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(".")), De = (e, t, n = !1) => {
|
|
330
331
|
let r = xe(e, t), i = Se(e, r) ?? "", a = [];
|
|
331
|
-
for (let [t, n] of
|
|
332
|
+
for (let [t, n] of E(e)) {
|
|
332
333
|
if (t === "xmlns" || t.startsWith("xmlns:")) continue;
|
|
333
334
|
let e = t.indexOf(":"), i = e === -1 ? t : `{${r[t.slice(0, e)] ?? t.slice(0, e)}}${t.slice(e + 1)}`;
|
|
334
|
-
a.push(`${i}=${JSON.stringify(
|
|
335
|
+
a.push(`${i}=${JSON.stringify(k(n))}`);
|
|
335
336
|
}
|
|
336
337
|
let o = S(e), s = o.length === 0 ? e.children.join("") : "";
|
|
337
338
|
a.length === 0 && o.length === 0 && s === "" && ge(i) && Ee.has(e.name) && a.push("val=\"1\""), a.sort();
|
|
@@ -345,17 +346,17 @@ var c = [
|
|
|
345
346
|
}, Oe = class {
|
|
346
347
|
constructor(e, t) {
|
|
347
348
|
this.xml = e, this.rootScope = t, this.kept = 0, this.reordered = 0;
|
|
348
|
-
let n = Object.values(t).find(ge) ??
|
|
349
|
+
let n = Object.values(t).find(ge) ?? w, r = _e(t[T.a]) ? t[T.a] : le;
|
|
349
350
|
this.writeScope = {
|
|
350
351
|
...t,
|
|
351
|
-
[
|
|
352
|
-
[
|
|
353
|
-
[
|
|
354
|
-
[
|
|
352
|
+
[T.c]: n,
|
|
353
|
+
[T.cx]: me,
|
|
354
|
+
[T.a]: r,
|
|
355
|
+
[T.r]: t[T.r] ?? de
|
|
355
356
|
};
|
|
356
357
|
}
|
|
357
358
|
markupOf(e, t) {
|
|
358
|
-
let n = this.xml.slice(e.start, e.end), r = new Set(
|
|
359
|
+
let n = this.xml.slice(e.start, e.end), r = new Set(E(e).map(([e]) => e).filter((e) => e === "xmlns" || e.startsWith("xmlns:"))), i = "";
|
|
359
360
|
for (let e of Object.keys(t)) e !== "xml" && t[e] !== this.rootScope[e] && (r.has(e === "" ? "xmlns" : `xmlns:${e}`) || (i += e === "" ? ` xmlns="${t[e]}"` : ` xmlns:${e}="${t[e]}"`));
|
|
360
361
|
if (i) {
|
|
361
362
|
let t = 1 + e.qname.length;
|
|
@@ -366,15 +367,16 @@ var c = [
|
|
|
366
367
|
}, ke = (e, t) => {
|
|
367
368
|
switch (e) {
|
|
368
369
|
case "c": return ge(t);
|
|
369
|
-
case "c15": return t ===
|
|
370
|
+
case "c15": return t === fe;
|
|
371
|
+
case "c16r3": return t === pe;
|
|
370
372
|
case "cx": return ve(t);
|
|
371
373
|
default: return _e(t);
|
|
372
374
|
}
|
|
373
|
-
},
|
|
375
|
+
}, A = (e, t, n, r) => {
|
|
374
376
|
let i = xe(e, n), a = {}, o, s;
|
|
375
|
-
for (let [n, r] of
|
|
377
|
+
for (let [n, r] of E(e)) {
|
|
376
378
|
let e = t.attributes?.find((e) => e.name === n), i = e ? e.read(r) : void 0;
|
|
377
|
-
e && i !== void 0 &&
|
|
379
|
+
e && i !== void 0 && k(e.write(i)) === k(r) ? a[e.key] = i : (o ??= {})[n] = r;
|
|
378
380
|
}
|
|
379
381
|
let c = -1, l = "", u = {};
|
|
380
382
|
for (let n of S(e)) {
|
|
@@ -393,7 +395,7 @@ var c = [
|
|
|
393
395
|
h?.many && (g.at = u[h.key]), (s ??= []).push(g);
|
|
394
396
|
}
|
|
395
397
|
return (o || s) && (a.unknown = {}, s && (a.unknown.elements = s), o && (a.unknown.attributes = o)), t.afterRead?.(a, e, i, r), a;
|
|
396
|
-
},
|
|
398
|
+
}, j = (e, t, n, r) => {
|
|
397
399
|
let i = [];
|
|
398
400
|
for (let e of r.attributes ?? []) {
|
|
399
401
|
let t = n[e.key];
|
|
@@ -417,7 +419,7 @@ var c = [
|
|
|
417
419
|
c(() => !0);
|
|
418
420
|
let l = o.toString();
|
|
419
421
|
l === "" ? e.open(t, i, !0) : e.open(t, i).raw(l).close(t);
|
|
420
|
-
},
|
|
422
|
+
}, M = (e, t) => `${T[e]}:${t}`, N = (e, t, n = e, r = "c") => ({
|
|
421
423
|
tags: [e],
|
|
422
424
|
key: n,
|
|
423
425
|
ns: r,
|
|
@@ -425,53 +427,53 @@ var c = [
|
|
|
425
427
|
let n = ((e) => {
|
|
426
428
|
if (S(e).length > 0) return;
|
|
427
429
|
let t = null;
|
|
428
|
-
for (let [n, r] of
|
|
430
|
+
for (let [n, r] of E(e)) {
|
|
429
431
|
if (n !== "val") return;
|
|
430
432
|
t = r;
|
|
431
433
|
}
|
|
432
434
|
return t;
|
|
433
435
|
})(e);
|
|
434
436
|
if (n === void 0) return;
|
|
435
|
-
if (t === "bool") return n === null || (
|
|
437
|
+
if (t === "bool") return n === null || (D(n) ?? void 0);
|
|
436
438
|
if (n === null) return;
|
|
437
439
|
if (t === "str") return n;
|
|
438
440
|
let r = Number(n);
|
|
439
|
-
return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) &&
|
|
441
|
+
return Number.isFinite(r) && (t !== "int" || Number.isInteger(r)) && k(String(r)) === k(n) ? r : void 0;
|
|
440
442
|
},
|
|
441
443
|
write: (n, i) => {
|
|
442
|
-
n.val(
|
|
444
|
+
n.val(M(r, e), t === "bool" ? O(i) : String(i));
|
|
443
445
|
}
|
|
444
|
-
}),
|
|
446
|
+
}), P = (e, t = e, n = "c") => ({
|
|
445
447
|
tags: [e],
|
|
446
448
|
key: t,
|
|
447
449
|
ns: n,
|
|
448
450
|
read: (e) => {
|
|
449
|
-
if (!(S(e).length > 0 ||
|
|
451
|
+
if (!(S(e).length > 0 || E(e).some(([e]) => !e.startsWith("xmlns")))) return C(e);
|
|
450
452
|
},
|
|
451
453
|
write: (t, r) => {
|
|
452
|
-
let i =
|
|
454
|
+
let i = M(n, e);
|
|
453
455
|
r === "" ? t.open(i, null, !0) : t.open(i).text(r).close(i);
|
|
454
456
|
}
|
|
455
|
-
}),
|
|
457
|
+
}), F = (e, t, n = e, r) => {
|
|
456
458
|
let i = r?.ns ?? "c", a = typeof t == "function" ? t : () => t;
|
|
457
459
|
return {
|
|
458
460
|
tags: [e],
|
|
459
461
|
key: n,
|
|
460
462
|
ns: i,
|
|
461
463
|
many: r?.many,
|
|
462
|
-
read: (e, t, n) =>
|
|
463
|
-
write: (t, n) =>
|
|
464
|
+
read: (e, t, n) => A(e, a(), t, n),
|
|
465
|
+
write: (t, n) => j(t, M(i, e), n, a())
|
|
464
466
|
};
|
|
465
|
-
},
|
|
467
|
+
}, I = (e, t, n = e, r = 1) => ({
|
|
466
468
|
name: e,
|
|
467
469
|
key: n,
|
|
468
470
|
read: (e) => {
|
|
469
471
|
if (t === "str") return e;
|
|
470
|
-
if (t === "bool") return
|
|
472
|
+
if (t === "bool") return D(e) ?? void 0;
|
|
471
473
|
let n = Number(e);
|
|
472
474
|
return Number.isFinite(n) && (t !== "int" || Number.isInteger(n)) ? r === 1 ? n : n / r : void 0;
|
|
473
475
|
},
|
|
474
|
-
write: (e) => t === "bool" ?
|
|
476
|
+
write: (e) => t === "bool" ? O(e) : t === "str" ? e : String(r === 1 ? e : Math.round(e * r))
|
|
475
477
|
}), Ae = (e, t, n, r) => ({
|
|
476
478
|
name: e,
|
|
477
479
|
key: t,
|
|
@@ -490,7 +492,7 @@ var c = [
|
|
|
490
492
|
})(a.toString(), r.writeScope) === De(t, n);
|
|
491
493
|
return o || r.kept++, o ? i : void 0;
|
|
492
494
|
}
|
|
493
|
-
}),
|
|
495
|
+
}), L = (e) => `a:${e}`, Me = /* @__PURE__ */ new Set([
|
|
494
496
|
"bg1",
|
|
495
497
|
"tx1",
|
|
496
498
|
"bg2",
|
|
@@ -515,56 +517,56 @@ var c = [
|
|
|
515
517
|
"sysClr",
|
|
516
518
|
"schemeClr",
|
|
517
519
|
"prstClr"
|
|
518
|
-
], Fe = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3,
|
|
520
|
+
], Fe = (e) => e === "hue" || e === "hueOff" || e === "hueMod" ? 6e4 : e === "alpha" || e === "alphaOff" || e === "alphaMod" ? 1e5 : 1e3, R = (e, t) => {
|
|
519
521
|
let n = {};
|
|
520
|
-
for (let [r, i] of
|
|
522
|
+
for (let [r, i] of E(e)) {
|
|
521
523
|
if (!t.includes(r)) return null;
|
|
522
524
|
n[r] = i;
|
|
523
525
|
}
|
|
524
526
|
return n;
|
|
525
|
-
},
|
|
527
|
+
}, z = /^-?\d+$/, Ie = (e) => {
|
|
526
528
|
let t = S(e);
|
|
527
529
|
return t.length === 0 ? null : t.length > 1 || !Pe.includes(t[0].name) ? void 0 : ((e) => {
|
|
528
530
|
let t;
|
|
529
531
|
switch (e.name) {
|
|
530
532
|
case "scrgbClr": {
|
|
531
|
-
let n =
|
|
533
|
+
let n = R(e, [
|
|
532
534
|
"r",
|
|
533
535
|
"g",
|
|
534
536
|
"b"
|
|
535
537
|
]);
|
|
536
|
-
if (!(n &&
|
|
538
|
+
if (!(n && z.test(n.r ?? "") && z.test(n.g ?? "") && z.test(n.b ?? ""))) return;
|
|
537
539
|
t = `lrgb(${Number(n.r) / 1e3},${Number(n.g) / 1e3},${Number(n.b) / 1e3})`;
|
|
538
540
|
break;
|
|
539
541
|
}
|
|
540
542
|
case "hslClr": {
|
|
541
|
-
let n =
|
|
543
|
+
let n = R(e, [
|
|
542
544
|
"hue",
|
|
543
545
|
"sat",
|
|
544
546
|
"lum"
|
|
545
547
|
]);
|
|
546
|
-
if (!(n &&
|
|
548
|
+
if (!(n && z.test(n.hue ?? "") && z.test(n.sat ?? "") && z.test(n.lum ?? ""))) return;
|
|
547
549
|
t = `hsl(${Number(n.hue) / 6e4},${Number(n.sat) / 1e3},${Number(n.lum) / 1e3})`;
|
|
548
550
|
break;
|
|
549
551
|
}
|
|
550
552
|
case "sysClr": {
|
|
551
|
-
let n =
|
|
553
|
+
let n = R(e, ["val", "lastClr"]);
|
|
552
554
|
if (!n?.val || !Ne.has(n.val)) return;
|
|
553
555
|
t = n.lastClr === void 0 ? n.val : `${n.val} lastClr ${n.lastClr}`;
|
|
554
556
|
break;
|
|
555
557
|
}
|
|
556
558
|
default: {
|
|
557
|
-
let n =
|
|
559
|
+
let n = R(e, ["val"]);
|
|
558
560
|
if (!n?.val || /\s/.test(n.val) || (Me.has(n.val) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(n.val) ? "srgbClr" : "prstClr") !== e.name) return;
|
|
559
561
|
t = n.val;
|
|
560
562
|
}
|
|
561
563
|
}
|
|
562
564
|
for (let n of S(e)) {
|
|
563
565
|
if (S(n).length > 0) return;
|
|
564
|
-
let e =
|
|
566
|
+
let e = R(n, ["val"]);
|
|
565
567
|
if (!e) return;
|
|
566
568
|
if (e.val !== void 0) {
|
|
567
|
-
if (!
|
|
569
|
+
if (!z.test(e.val)) return;
|
|
568
570
|
t += ` ${n.name} ${Number(e.val) / Fe(n.name)}`;
|
|
569
571
|
} else t += ` ${n.name}`;
|
|
570
572
|
}
|
|
@@ -601,15 +603,15 @@ var c = [
|
|
|
601
603
|
a = e ? "srgbClr" : Me.has(r) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(r) ? "srgbClr" : "prstClr", o = [["val", e ?? r]];
|
|
602
604
|
}
|
|
603
605
|
if (n.length !== 0) {
|
|
604
|
-
e.open(
|
|
606
|
+
e.open(L(a), o);
|
|
605
607
|
for (let t = 0; t < n.length; t++) {
|
|
606
608
|
let r = n[t];
|
|
607
|
-
t + 1 < n.length && Le.test(n[t + 1]) ? e.val(
|
|
609
|
+
t + 1 < n.length && Le.test(n[t + 1]) ? e.val(L(r), String(Math.round(Number(n[++t]) * Fe(r)))) : e.open(L(r), null, !0);
|
|
608
610
|
}
|
|
609
|
-
e.close(
|
|
610
|
-
} else e.open(
|
|
611
|
+
e.close(L(a));
|
|
612
|
+
} else e.open(L(a), o, !0);
|
|
611
613
|
}, ze = (e, t, n, r) => {
|
|
612
|
-
n === void 0 ? e.open(
|
|
614
|
+
n === void 0 ? e.open(L(t), r, !0) : (e.open(L(t), r), Re(e, n), e.close(L(t)));
|
|
613
615
|
}, Be = [
|
|
614
616
|
"noFill",
|
|
615
617
|
"solidFill",
|
|
@@ -617,7 +619,7 @@ var c = [
|
|
|
617
619
|
"pattFill",
|
|
618
620
|
"grpFill"
|
|
619
621
|
], Ve = (e) => {
|
|
620
|
-
let t =
|
|
622
|
+
let t = R(e, [
|
|
621
623
|
"l",
|
|
622
624
|
"t",
|
|
623
625
|
"r",
|
|
@@ -628,13 +630,13 @@ var c = [
|
|
|
628
630
|
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;
|
|
629
631
|
}, He = (e, t, n) => {
|
|
630
632
|
let r = [];
|
|
631
|
-
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(
|
|
633
|
+
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(L(t), r, !0);
|
|
632
634
|
}, Ue = (e) => {
|
|
633
635
|
switch (e.name) {
|
|
634
|
-
case "noFill": return S(e).length === 0 &&
|
|
635
|
-
case "grpFill": return S(e).length === 0 &&
|
|
636
|
+
case "noFill": return S(e).length === 0 && E(e).length === 0 ? { type: o.Type.None } : void 0;
|
|
637
|
+
case "grpFill": return S(e).length === 0 && E(e).length === 0 ? { type: o.Type.Group } : void 0;
|
|
636
638
|
case "solidFill": {
|
|
637
|
-
if (
|
|
639
|
+
if (E(e).length > 0) return;
|
|
638
640
|
let t = Ie(e);
|
|
639
641
|
return t === void 0 ? void 0 : t === null ? { type: o.Type.Solid } : {
|
|
640
642
|
type: o.Type.Solid,
|
|
@@ -642,11 +644,11 @@ var c = [
|
|
|
642
644
|
};
|
|
643
645
|
}
|
|
644
646
|
case "gradFill": return ((e) => {
|
|
645
|
-
let t =
|
|
647
|
+
let t = R(e, ["rotWithShape", "flip"]);
|
|
646
648
|
if (!t) return;
|
|
647
649
|
let n = { type: o.Type.Gradient };
|
|
648
650
|
if (t.rotWithShape !== void 0) {
|
|
649
|
-
let e =
|
|
651
|
+
let e = D(t.rotWithShape);
|
|
650
652
|
if (e === null) return;
|
|
651
653
|
n.isRotatedWithShape = e;
|
|
652
654
|
}
|
|
@@ -654,7 +656,7 @@ var c = [
|
|
|
654
656
|
for (let t of S(e)) if (t.name === "gsLst") {
|
|
655
657
|
let e = [];
|
|
656
658
|
for (let n of S(t)) {
|
|
657
|
-
let t = n.name === "gs" ?
|
|
659
|
+
let t = n.name === "gs" ? R(n, ["pos"]) : null, r = t && z.test(t.pos ?? "") ? Ie(n) : void 0;
|
|
658
660
|
if (!r) return;
|
|
659
661
|
e.push({
|
|
660
662
|
offset: Number(t.pos) / 1e5,
|
|
@@ -663,19 +665,19 @@ var c = [
|
|
|
663
665
|
}
|
|
664
666
|
n.stops = e;
|
|
665
667
|
} else if (t.name === "lin") {
|
|
666
|
-
let e =
|
|
668
|
+
let e = R(t, ["ang", "scaled"]);
|
|
667
669
|
if (!e || S(t).length > 0) return;
|
|
668
670
|
if (n.gradientType = o.GradientType.Linear, e.ang !== void 0) {
|
|
669
|
-
if (!
|
|
671
|
+
if (!z.test(e.ang)) return;
|
|
670
672
|
n.angle = (Number(e.ang) / 6e4 + 90) % 360;
|
|
671
673
|
}
|
|
672
674
|
if (e.scaled !== void 0) {
|
|
673
|
-
let t =
|
|
675
|
+
let t = D(e.scaled);
|
|
674
676
|
if (t === null) return;
|
|
675
677
|
n.scaled = t;
|
|
676
678
|
}
|
|
677
679
|
} else if (t.name === "path") {
|
|
678
|
-
let e =
|
|
680
|
+
let e = R(t, ["path"]);
|
|
679
681
|
if (!e) return;
|
|
680
682
|
n.gradientType = e.path === "circle" ? o.GradientType.Path : e.path;
|
|
681
683
|
let r = S(t);
|
|
@@ -701,7 +703,7 @@ var c = [
|
|
|
701
703
|
return n;
|
|
702
704
|
})(e);
|
|
703
705
|
case "pattFill": {
|
|
704
|
-
let t =
|
|
706
|
+
let t = R(e, ["prst"]);
|
|
705
707
|
if (!t) return;
|
|
706
708
|
let n = { type: o.Type.Pattern };
|
|
707
709
|
t.prst !== void 0 && (n.patternType = t.prst);
|
|
@@ -716,10 +718,10 @@ var c = [
|
|
|
716
718
|
}, We = (e, t) => {
|
|
717
719
|
switch (t.type) {
|
|
718
720
|
case o.Type.None:
|
|
719
|
-
e.open(
|
|
721
|
+
e.open(L("noFill"), null, !0);
|
|
720
722
|
return;
|
|
721
723
|
case o.Type.Group:
|
|
722
|
-
e.open(
|
|
724
|
+
e.open(L("grpFill"), null, !0);
|
|
723
725
|
return;
|
|
724
726
|
case o.Type.Solid:
|
|
725
727
|
ze(e, "solidFill", t.color);
|
|
@@ -727,8 +729,8 @@ var c = [
|
|
|
727
729
|
case o.Type.Gradient:
|
|
728
730
|
((e, t) => {
|
|
729
731
|
let n = [];
|
|
730
|
-
if (t.flip !== void 0 && n.push(["flip", t.flip]), t.isRotatedWithShape !== void 0 && n.push(["rotWithShape",
|
|
731
|
-
e.open(
|
|
732
|
+
if (t.flip !== void 0 && n.push(["flip", t.flip]), t.isRotatedWithShape !== void 0 && n.push(["rotWithShape", O(t.isRotatedWithShape)]), e.open(L("gradFill"), n), t.stops) {
|
|
733
|
+
e.open(L("gsLst"));
|
|
732
734
|
for (let n of t.stops) {
|
|
733
735
|
let { offset: t, color: r } = typeof n == "string" ? {
|
|
734
736
|
offset: 0,
|
|
@@ -736,26 +738,26 @@ var c = [
|
|
|
736
738
|
} : n;
|
|
737
739
|
ze(e, "gs", r, [["pos", String(Math.round(1e5 * (t ?? 0)))]]);
|
|
738
740
|
}
|
|
739
|
-
e.close(
|
|
741
|
+
e.close(L("gsLst"));
|
|
740
742
|
}
|
|
741
743
|
if (t.gradientType === o.GradientType.Linear) {
|
|
742
744
|
let n = [];
|
|
743
|
-
t.angle !== void 0 && n.push(["ang", String(Math.round((t.angle - 90 + 360) % 360 * 6e4))]), t.scaled !== void 0 && n.push(["scaled",
|
|
745
|
+
t.angle !== void 0 && n.push(["ang", String(Math.round((t.angle - 90 + 360) % 360 * 6e4))]), t.scaled !== void 0 && n.push(["scaled", O(t.scaled)]), e.open(L("lin"), n, !0);
|
|
744
746
|
} else if (t.gradientType !== void 0) {
|
|
745
747
|
let n = t.gradientType === o.GradientType.Path ? "circle" : t.gradientType;
|
|
746
|
-
t.focus ? (e.open(
|
|
748
|
+
t.focus ? (e.open(L("path"), [["path", n]]), He(e, "fillToRect", {
|
|
747
749
|
left: 100 * t.focus.left,
|
|
748
750
|
top: 100 * t.focus.top,
|
|
749
751
|
right: 100 * (1 - t.focus.right),
|
|
750
752
|
bottom: 100 * (1 - t.focus.bottom)
|
|
751
|
-
}), e.close(
|
|
753
|
+
}), e.close(L("path"))) : e.open(L("path"), [["path", n]], !0);
|
|
752
754
|
}
|
|
753
|
-
t.tileRect && He(e, "tileRect", t.tileRect), e.close(
|
|
755
|
+
t.tileRect && He(e, "tileRect", t.tileRect), e.close(L("gradFill"));
|
|
754
756
|
})(e, t);
|
|
755
757
|
return;
|
|
756
758
|
case o.Type.Pattern: {
|
|
757
759
|
let n = t, r = n.patternType === void 0 ? [] : [["prst", n.patternType]];
|
|
758
|
-
n.foreground === void 0 && n.background === void 0 ? e.open(
|
|
760
|
+
n.foreground === void 0 && n.background === void 0 ? e.open(L("pattFill"), r, !0) : (e.open(L("pattFill"), r), n.foreground !== void 0 && ze(e, "fgClr", n.foreground), n.background !== void 0 && ze(e, "bgClr", n.background), e.close(L("pattFill")));
|
|
759
761
|
return;
|
|
760
762
|
}
|
|
761
763
|
}
|
|
@@ -770,10 +772,10 @@ var c = [
|
|
|
770
772
|
tags: ["effectLst"],
|
|
771
773
|
key: "effects",
|
|
772
774
|
ns: "a",
|
|
773
|
-
read: (e) => S(e).length === 0 &&
|
|
775
|
+
read: (e) => S(e).length === 0 && E(e).length === 0 ? [] : void 0,
|
|
774
776
|
write: (e, t) => {
|
|
775
777
|
if (t.length > 0) throw Error("A chart cannot write effects yet.");
|
|
776
|
-
e.open(
|
|
778
|
+
e.open(L("effectLst"), null, !0);
|
|
777
779
|
}
|
|
778
780
|
}, qe = {
|
|
779
781
|
rnd: "round",
|
|
@@ -784,7 +786,7 @@ var c = [
|
|
|
784
786
|
key: `${t}Type`,
|
|
785
787
|
ns: "a",
|
|
786
788
|
read: (e) => {
|
|
787
|
-
let t =
|
|
789
|
+
let t = R(e, [
|
|
788
790
|
"type",
|
|
789
791
|
"w",
|
|
790
792
|
"len"
|
|
@@ -798,7 +800,7 @@ var c = [
|
|
|
798
800
|
"w",
|
|
799
801
|
"len"
|
|
800
802
|
]) n[e] !== void 0 && r.push([e, n[e]]);
|
|
801
|
-
t.open(
|
|
803
|
+
t.open(L(e), r, !0);
|
|
802
804
|
},
|
|
803
805
|
get: (e) => {
|
|
804
806
|
let n = {};
|
|
@@ -809,10 +811,10 @@ var c = [
|
|
|
809
811
|
}
|
|
810
812
|
}), Ye = {
|
|
811
813
|
attributes: [
|
|
812
|
-
|
|
814
|
+
I("w", "int", "width", 12700),
|
|
813
815
|
Ae("cap", "lineCap", (e) => qe[e], (e) => Object.keys(qe).find((t) => qe[t] === e)),
|
|
814
|
-
|
|
815
|
-
|
|
816
|
+
I("cmpd", "str", "compound"),
|
|
817
|
+
I("algn", "str", "align")
|
|
816
818
|
],
|
|
817
819
|
fields: [
|
|
818
820
|
Ge("fill"),
|
|
@@ -822,24 +824,24 @@ var c = [
|
|
|
822
824
|
ns: "a",
|
|
823
825
|
read: (e) => {
|
|
824
826
|
if (e.name === "prstDash") {
|
|
825
|
-
let t =
|
|
827
|
+
let t = R(e, ["val"]);
|
|
826
828
|
return t?.val !== void 0 && S(e).length === 0 ? t.val : void 0;
|
|
827
829
|
}
|
|
828
|
-
if (
|
|
830
|
+
if (E(e).length > 0) return;
|
|
829
831
|
let t = [];
|
|
830
832
|
for (let n of S(e)) {
|
|
831
|
-
let e = n.name === "ds" ?
|
|
832
|
-
if (!e || !
|
|
833
|
+
let e = n.name === "ds" ? R(n, ["d", "sp"]) : null;
|
|
834
|
+
if (!e || !z.test(e.d ?? "") || !z.test(e.sp ?? "")) return;
|
|
833
835
|
t.push(Number(e.d) / 1e3, Number(e.sp) / 1e3);
|
|
834
836
|
}
|
|
835
837
|
return t;
|
|
836
838
|
},
|
|
837
839
|
write: (e, t) => {
|
|
838
840
|
if (typeof t != "string") {
|
|
839
|
-
e.open(
|
|
840
|
-
for (let n = 0; n < t.length; n += 2) e.open(
|
|
841
|
-
e.close(
|
|
842
|
-
} else e.val(
|
|
841
|
+
e.open(L("custDash"));
|
|
842
|
+
for (let n = 0; n < t.length; n += 2) e.open(L("ds"), [["d", String(Math.round(1e3 * t[n]))], ["sp", String(Math.round(1e3 * t[n + 1]))]], !0);
|
|
843
|
+
e.close(L("custDash"));
|
|
844
|
+
} else e.val(L("prstDash"), t);
|
|
843
845
|
}
|
|
844
846
|
},
|
|
845
847
|
{
|
|
@@ -851,14 +853,14 @@ var c = [
|
|
|
851
853
|
key: "lineJoin",
|
|
852
854
|
ns: "a",
|
|
853
855
|
read: (e) => {
|
|
854
|
-
let t =
|
|
855
|
-
if (t && !(S(e).length > 0) && (t.lim === void 0 ||
|
|
856
|
+
let t = R(e, e.name === "miter" ? ["lim"] : []);
|
|
857
|
+
if (t && !(S(e).length > 0) && (t.lim === void 0 || z.test(t.lim))) return {
|
|
856
858
|
join: e.name,
|
|
857
859
|
limit: t.lim === void 0 ? void 0 : Number(t.lim) / 1e5
|
|
858
860
|
};
|
|
859
861
|
},
|
|
860
862
|
write: (e, t) => {
|
|
861
|
-
e.open(
|
|
863
|
+
e.open(L(t.join), t.limit === void 0 ? null : [["lim", String(Math.round(1e5 * t.limit))]], !0);
|
|
862
864
|
},
|
|
863
865
|
get: (e) => e.lineJoin ? {
|
|
864
866
|
join: e.lineJoin,
|
|
@@ -871,7 +873,7 @@ var c = [
|
|
|
871
873
|
Je("headEnd", "head"),
|
|
872
874
|
Je("tailEnd", "tail")
|
|
873
875
|
]
|
|
874
|
-
}, Xe = (e) => je(
|
|
876
|
+
}, Xe = (e) => je(F("ln", Ye, e, { ns: "a" })), Ze = { fields: [
|
|
875
877
|
Ge("fill"),
|
|
876
878
|
Xe("stroke"),
|
|
877
879
|
Ke
|
|
@@ -880,29 +882,29 @@ var c = [
|
|
|
880
882
|
key: t,
|
|
881
883
|
ns: "a",
|
|
882
884
|
read: (e) => {
|
|
883
|
-
let t =
|
|
885
|
+
let t = R(e, ["typeface"]);
|
|
884
886
|
if (!(t?.typeface === void 0 || S(e).length > 0)) return n && t.typeface === `+mn-${n}` ? s.ThemeFamily.Body : n && t.typeface === `+mj-${n}` ? s.ThemeFamily.Heading : t.typeface;
|
|
885
887
|
},
|
|
886
888
|
write: (t, r) => {
|
|
887
889
|
let i = n ? r === s.ThemeFamily.Body ? `+mn-${n}` : r === s.ThemeFamily.Heading ? `+mj-${n}` : r : r;
|
|
888
|
-
t.open(
|
|
890
|
+
t.open(L(e), [["typeface", i]], !0);
|
|
889
891
|
}
|
|
890
892
|
}), $e = (e, t, n) => {
|
|
891
893
|
let r = Object.fromEntries(Object.entries(n).map(([e, t]) => [t, e]));
|
|
892
894
|
return Ae(e, t, (e) => r[e], (e) => n[e] ?? e);
|
|
893
895
|
}, et = {
|
|
894
896
|
attributes: [
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
897
|
+
I("lang", "str", "language"),
|
|
898
|
+
I("altLang", "str", "alternateLanguage"),
|
|
899
|
+
I("sz", "int", "size", 100),
|
|
898
900
|
Ae("b", "weight", (e) => {
|
|
899
|
-
let t =
|
|
901
|
+
let t = D(e);
|
|
900
902
|
return t === null ? void 0 : t ? 700 : 400;
|
|
901
|
-
}, (e) =>
|
|
903
|
+
}, (e) => O(e >= 600)),
|
|
902
904
|
Ae("i", "style", (e) => {
|
|
903
|
-
let t =
|
|
905
|
+
let t = D(e);
|
|
904
906
|
return t === null ? void 0 : t ? "italic" : "normal";
|
|
905
|
-
}, (e) =>
|
|
907
|
+
}, (e) => O(e === "italic")),
|
|
906
908
|
$e("u", "underline", {
|
|
907
909
|
none: "none",
|
|
908
910
|
words: "words",
|
|
@@ -928,15 +930,15 @@ var c = [
|
|
|
928
930
|
single: "sngStrike",
|
|
929
931
|
double: "dblStrike"
|
|
930
932
|
}),
|
|
931
|
-
|
|
933
|
+
I("kern", "int", "kerning", 100),
|
|
932
934
|
$e("cap", "capitals", {
|
|
933
935
|
none: "none",
|
|
934
936
|
small: "small",
|
|
935
937
|
all: "all"
|
|
936
938
|
}),
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
939
|
+
I("spc", "int", "letterSpacing", 100),
|
|
940
|
+
I("normalizeH", "bool", "normalizeHeight"),
|
|
941
|
+
I("baseline", "int", "baseline", 1e3)
|
|
940
942
|
],
|
|
941
943
|
fields: [
|
|
942
944
|
Xe("outline"),
|
|
@@ -948,16 +950,16 @@ var c = [
|
|
|
948
950
|
Qe("sym", "symbol")
|
|
949
951
|
]
|
|
950
952
|
}, tt = {
|
|
951
|
-
attributes: [
|
|
952
|
-
fields: [
|
|
953
|
-
}, nt = { fields: [
|
|
953
|
+
attributes: [I("algn", "str", "align"), I("rtl", "bool", "rtl")],
|
|
954
|
+
fields: [F("defRPr", et, "defaultRun", { ns: "a" })]
|
|
955
|
+
}, nt = { fields: [F("rPr", et, "rPr", { ns: "a" }), {
|
|
954
956
|
tags: ["t"],
|
|
955
957
|
key: "text",
|
|
956
958
|
ns: "a",
|
|
957
959
|
read: (e) => {
|
|
958
960
|
if (S(e).length > 0) return;
|
|
959
961
|
let t = !1;
|
|
960
|
-
for (let [n, r] of
|
|
962
|
+
for (let [n, r] of E(e)) if (n !== "xmlns" && !n.startsWith("xmlns:")) {
|
|
961
963
|
if (n !== "xml:space" || r !== "preserve") return;
|
|
962
964
|
t = !0;
|
|
963
965
|
}
|
|
@@ -974,14 +976,14 @@ var c = [
|
|
|
974
976
|
e.text = t.text, t.preserve && (e.preserveSpace = !0);
|
|
975
977
|
},
|
|
976
978
|
write: (e, t) => {
|
|
977
|
-
let n =
|
|
979
|
+
let n = L("t"), r = t.preserve ? [["xml:space", "preserve"]] : null;
|
|
978
980
|
t.text === "" ? e.open(n, r, !0) : e.open(n, r).text(t.text).close(n);
|
|
979
981
|
}
|
|
980
982
|
}] }, rt = {
|
|
981
|
-
attributes: [
|
|
983
|
+
attributes: [I("id", "str", "id"), I("type", "str", "type")],
|
|
982
984
|
fields: nt.fields
|
|
983
|
-
}, it = { fields: [
|
|
984
|
-
|
|
985
|
+
}, it = { fields: [F("rPr", et, "rPr", { ns: "a" })] }, at = { fields: [
|
|
986
|
+
F("pPr", tt, "pPr", { ns: "a" }),
|
|
985
987
|
{
|
|
986
988
|
tags: [
|
|
987
989
|
"r",
|
|
@@ -993,15 +995,15 @@ var c = [
|
|
|
993
995
|
many: !0,
|
|
994
996
|
read: (e, t, n) => {
|
|
995
997
|
if (e.name === "br") return {
|
|
996
|
-
...
|
|
998
|
+
...A(e, it, t, n),
|
|
997
999
|
text: "\n",
|
|
998
1000
|
break: !0
|
|
999
1001
|
};
|
|
1000
1002
|
if (e.name === "r") {
|
|
1001
|
-
let r =
|
|
1003
|
+
let r = A(e, nt, t, n);
|
|
1002
1004
|
return r.text === void 0 ? void 0 : r;
|
|
1003
1005
|
}
|
|
1004
|
-
let { id: r, type: i, ...a } =
|
|
1006
|
+
let { id: r, type: i, ...a } = A(e, rt, t, n);
|
|
1005
1007
|
return r === void 0 ? void 0 : (a.text ??= "", a.field = i === void 0 ? { id: r } : {
|
|
1006
1008
|
id: r,
|
|
1007
1009
|
type: i
|
|
@@ -1010,467 +1012,480 @@ var c = [
|
|
|
1010
1012
|
write: (e, t) => {
|
|
1011
1013
|
if (t.break) {
|
|
1012
1014
|
let { text: n, break: r, ...i } = t;
|
|
1013
|
-
|
|
1015
|
+
j(e, L("br"), i, it);
|
|
1014
1016
|
} else if (t.field) {
|
|
1015
1017
|
let { field: n, ...r } = t;
|
|
1016
|
-
|
|
1018
|
+
j(e, L("fld"), {
|
|
1017
1019
|
...r,
|
|
1018
1020
|
id: n.id,
|
|
1019
1021
|
type: n.type
|
|
1020
1022
|
}, rt);
|
|
1021
|
-
} else
|
|
1023
|
+
} else j(e, L("r"), t, nt);
|
|
1022
1024
|
}
|
|
1023
1025
|
},
|
|
1024
|
-
|
|
1026
|
+
F("endParaRPr", et, "endRun", { ns: "a" })
|
|
1025
1027
|
] }, ot = { fields: [
|
|
1026
|
-
|
|
1028
|
+
F("bodyPr", {
|
|
1027
1029
|
attributes: [
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1030
|
+
I("rot", "int", "rotation", 6e4),
|
|
1031
|
+
I("spcFirstLastPara", "bool", "spcFirstLastPara"),
|
|
1032
|
+
I("vertOverflow", "str", "vertOverflow"),
|
|
1033
|
+
I("horzOverflow", "str", "horzOverflow"),
|
|
1034
|
+
I("vert", "str", "vert"),
|
|
1035
|
+
I("wrap", "str", "wrap"),
|
|
1036
|
+
I("lIns", "int", "lIns"),
|
|
1037
|
+
I("tIns", "int", "tIns"),
|
|
1038
|
+
I("rIns", "int", "rIns"),
|
|
1039
|
+
I("bIns", "int", "bIns"),
|
|
1040
|
+
I("anchor", "str", "anchor"),
|
|
1041
|
+
I("anchorCtr", "bool", "anchorCtr")
|
|
1040
1042
|
],
|
|
1041
1043
|
fields: []
|
|
1042
1044
|
}, "bodyPr", { ns: "a" }),
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
+
F("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
|
|
1046
|
+
F("p", at, "paragraphs", {
|
|
1045
1047
|
ns: "a",
|
|
1046
1048
|
many: !0
|
|
1047
1049
|
})
|
|
1048
|
-
] },
|
|
1049
|
-
attributes: [
|
|
1050
|
-
fields: [
|
|
1050
|
+
] }, B = () => F("spPr", Ze), V = () => F("txPr", ot), st = {
|
|
1051
|
+
attributes: [I("idx", "int"), I("formatCode", "str")],
|
|
1052
|
+
fields: [P("v")]
|
|
1051
1053
|
}, ct = { fields: [
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
] }, lt = { fields: [
|
|
1054
|
+
P("formatCode"),
|
|
1055
|
+
N("ptCount", "int"),
|
|
1056
|
+
F("pt", st, "points", { many: !0 })
|
|
1057
|
+
] }, lt = { fields: [N("ptCount", "int"), F("pt", st, "points", { many: !0 })] }, ut = { fields: [N("ptCount", "int"), F("lvl", { fields: [F("pt", st, "points", { many: !0 })] }, "levels", { many: !0 })] }, dt = { fields: [P("f"), F("numCache", ct, "cache")] }, ft = { fields: [P("f"), F("strCache", lt, "cache")] }, pt = { fields: [P("f"), F("multiLvlStrCache", ut, "cache")] }, mt = F("datalabelsRange", { fields: [P("f", "f", "c15"), F("dlblRangeCache", lt, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), ht = {
|
|
1056
1058
|
...mt,
|
|
1057
|
-
read: (e, t, n) => t[
|
|
1058
|
-
}, gt =
|
|
1059
|
+
read: (e, t, n) => t[T.c15] === fe ? mt.read(e, t, n) : void 0
|
|
1060
|
+
}, gt = N("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), _t = {
|
|
1059
1061
|
...gt,
|
|
1060
|
-
read: (e, t, n) => t[
|
|
1061
|
-
}, vt = { fields: [
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1062
|
+
read: (e, t, n) => t[T.c15] === fe ? gt.read(e, t, n) : void 0
|
|
1063
|
+
}, vt = F("dataDisplayOptions16", { fields: [N("dispNaAsBlank", "bool", "dispNaAsBlank", "c16r3")] }, "dataDisplayOptions16", { ns: "c16r3" }), yt = {
|
|
1064
|
+
...vt,
|
|
1065
|
+
key: "dispNaAsBlank",
|
|
1066
|
+
read: (e, t, n) => {
|
|
1067
|
+
if (t[T.c16r3] !== pe) return;
|
|
1068
|
+
let r = vt.read(e, t, n);
|
|
1069
|
+
return r.unknown === void 0 ? r.dispNaAsBlank : void 0;
|
|
1070
|
+
},
|
|
1071
|
+
write: (e, t) => vt.write(e, { dispNaAsBlank: t })
|
|
1072
|
+
}, bt = { fields: [F("ext", {
|
|
1073
|
+
attributes: [I("uri", "str")],
|
|
1074
|
+
fields: [
|
|
1075
|
+
ht,
|
|
1076
|
+
_t,
|
|
1077
|
+
yt
|
|
1078
|
+
],
|
|
1079
|
+
declares: (e) => e.datalabelsRange !== void 0 || e.showDataLabelsRange !== void 0 ? [[`xmlns:${T.c15}`, fe]] : e.dispNaAsBlank === void 0 ? [] : [[`xmlns:${T.c16r3}`, pe]]
|
|
1080
|
+
}, "extensions", { many: !0 })] }, xt = { fields: [
|
|
1081
|
+
F("multiLvlStrRef", pt),
|
|
1082
|
+
F("numRef", dt),
|
|
1083
|
+
F("numLit", ct),
|
|
1084
|
+
F("strRef", ft),
|
|
1085
|
+
F("strLit", lt)
|
|
1086
|
+
] }, St = { fields: [F("strRef", ft), P("v")] }, Ct = { fields: [F("strRef", ft), F("rich", ot)] }, wt = {
|
|
1087
|
+
attributes: [I("formatCode", "str"), I("sourceLinked", "bool")],
|
|
1073
1088
|
fields: []
|
|
1074
|
-
},
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
] })] },
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
+
}, H = { fields: [F("manualLayout", { fields: [
|
|
1090
|
+
N("layoutTarget", "str"),
|
|
1091
|
+
N("xMode", "str"),
|
|
1092
|
+
N("yMode", "str"),
|
|
1093
|
+
N("wMode", "str"),
|
|
1094
|
+
N("hMode", "str"),
|
|
1095
|
+
N("x", "num"),
|
|
1096
|
+
N("y", "num"),
|
|
1097
|
+
N("w", "num"),
|
|
1098
|
+
N("h", "num")
|
|
1099
|
+
] })] }, Tt = { fields: [
|
|
1100
|
+
F("tx", Ct),
|
|
1101
|
+
F("layout", H),
|
|
1102
|
+
N("overlay", "bool"),
|
|
1103
|
+
B(),
|
|
1104
|
+
V()
|
|
1105
|
+
] }, Et = { fields: [B()] }, Dt = { fields: [
|
|
1106
|
+
N("symbol", "str"),
|
|
1107
|
+
N("size", "int"),
|
|
1108
|
+
B()
|
|
1109
|
+
] }, Ot = { fields: [
|
|
1110
|
+
N("idx", "int"),
|
|
1111
|
+
N("invertIfNegative", "bool"),
|
|
1112
|
+
F("marker", Dt),
|
|
1113
|
+
N("bubble3D", "bool"),
|
|
1114
|
+
N("explosion", "int"),
|
|
1089
1115
|
B()
|
|
1090
|
-
] },
|
|
1091
|
-
|
|
1092
|
-
M("size", "int"),
|
|
1093
|
-
z()
|
|
1094
|
-
] }, Et = { fields: [
|
|
1095
|
-
M("idx", "int"),
|
|
1096
|
-
M("invertIfNegative", "bool"),
|
|
1097
|
-
P("marker", Tt),
|
|
1098
|
-
M("bubble3D", "bool"),
|
|
1099
|
-
M("explosion", "int"),
|
|
1100
|
-
z()
|
|
1101
|
-
] }, Dt = () => [
|
|
1102
|
-
P("numFmt", St),
|
|
1103
|
-
z(),
|
|
1116
|
+
] }, kt = () => [
|
|
1117
|
+
F("numFmt", wt),
|
|
1104
1118
|
B(),
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
N("
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1119
|
+
V(),
|
|
1120
|
+
N("dLblPos", "str"),
|
|
1121
|
+
N("showLegendKey", "bool"),
|
|
1122
|
+
N("showVal", "bool"),
|
|
1123
|
+
N("showCatName", "bool"),
|
|
1124
|
+
N("showSerName", "bool"),
|
|
1125
|
+
N("showPercent", "bool"),
|
|
1126
|
+
N("showBubbleSize", "bool"),
|
|
1127
|
+
P("separator")
|
|
1128
|
+
], At = { fields: [
|
|
1129
|
+
F("dLbl", { fields: [
|
|
1130
|
+
N("idx", "int"),
|
|
1131
|
+
N("delete", "bool"),
|
|
1132
|
+
F("layout", H),
|
|
1133
|
+
F("tx", Ct),
|
|
1134
|
+
...kt(),
|
|
1135
|
+
F("extLst", bt)
|
|
1121
1136
|
] }, "labels", { many: !0 }),
|
|
1122
|
-
|
|
1123
|
-
...
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
] }, kt = { fields: [
|
|
1128
|
-
P("layout", V),
|
|
1129
|
-
P("tx", xt),
|
|
1130
|
-
P("numFmt", St),
|
|
1131
|
-
z(),
|
|
1132
|
-
B()
|
|
1133
|
-
] }, At = { fields: [
|
|
1134
|
-
N("name"),
|
|
1135
|
-
z(),
|
|
1136
|
-
M("trendlineType", "str"),
|
|
1137
|
-
M("order", "int"),
|
|
1138
|
-
M("period", "int"),
|
|
1139
|
-
M("forward", "num"),
|
|
1140
|
-
M("backward", "num"),
|
|
1141
|
-
M("intercept", "num"),
|
|
1142
|
-
M("dispRSqr", "bool"),
|
|
1143
|
-
M("dispEq", "bool"),
|
|
1144
|
-
P("trendlineLbl", kt)
|
|
1137
|
+
N("delete", "bool"),
|
|
1138
|
+
...kt(),
|
|
1139
|
+
N("showLeaderLines", "bool"),
|
|
1140
|
+
F("leaderLines", Et),
|
|
1141
|
+
F("extLst", bt)
|
|
1145
1142
|
] }, jt = { fields: [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
P("minus", yt),
|
|
1152
|
-
M("val", "num"),
|
|
1153
|
-
z(),
|
|
1154
|
-
P("extLst", vt)
|
|
1143
|
+
F("layout", H),
|
|
1144
|
+
F("tx", Ct),
|
|
1145
|
+
F("numFmt", wt),
|
|
1146
|
+
B(),
|
|
1147
|
+
V()
|
|
1155
1148
|
] }, Mt = { fields: [
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1149
|
+
P("name"),
|
|
1150
|
+
B(),
|
|
1151
|
+
N("trendlineType", "str"),
|
|
1152
|
+
N("order", "int"),
|
|
1153
|
+
N("period", "int"),
|
|
1154
|
+
N("forward", "num"),
|
|
1155
|
+
N("backward", "num"),
|
|
1156
|
+
N("intercept", "num"),
|
|
1157
|
+
N("dispRSqr", "bool"),
|
|
1158
|
+
N("dispEq", "bool"),
|
|
1159
|
+
F("trendlineLbl", jt)
|
|
1160
|
+
] }, Nt = { fields: [
|
|
1161
|
+
N("errDir", "str"),
|
|
1162
|
+
N("errBarType", "str"),
|
|
1163
|
+
N("errValType", "str"),
|
|
1164
|
+
N("noEndCap", "bool"),
|
|
1165
|
+
F("plus", xt),
|
|
1166
|
+
F("minus", xt),
|
|
1167
|
+
N("val", "num"),
|
|
1168
|
+
B(),
|
|
1169
|
+
F("extLst", bt)
|
|
1170
|
+
] }, Pt = { fields: [
|
|
1171
|
+
N("gapWidth", "int"),
|
|
1172
|
+
F("upBars", Et),
|
|
1173
|
+
F("downBars", Et)
|
|
1174
|
+
] }, U = () => [
|
|
1175
|
+
N("idx", "int"),
|
|
1176
|
+
N("order", "int"),
|
|
1177
|
+
F("tx", St),
|
|
1178
|
+
B()
|
|
1179
|
+
], W = () => F("dPt", Ot, "points", { many: !0 }), G = () => F("dLbls", At), Ft = () => F("trendline", Mt, "trendlines", { many: !0 }), It = () => F("errBars", Nt, "errBars", { many: !0 }), K = (e) => F(e, xt), q = () => F("extLst", bt), Lt = {
|
|
1165
1180
|
bar: { fields: [
|
|
1166
|
-
...
|
|
1167
|
-
|
|
1168
|
-
U(),
|
|
1181
|
+
...U(),
|
|
1182
|
+
N("invertIfNegative", "bool"),
|
|
1169
1183
|
W(),
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1184
|
+
G(),
|
|
1185
|
+
Ft(),
|
|
1186
|
+
It(),
|
|
1187
|
+
K("cat"),
|
|
1188
|
+
K("val"),
|
|
1189
|
+
N("shape", "str"),
|
|
1190
|
+
q()
|
|
1176
1191
|
] },
|
|
1177
1192
|
line: { fields: [
|
|
1178
|
-
...
|
|
1179
|
-
|
|
1180
|
-
U(),
|
|
1193
|
+
...U(),
|
|
1194
|
+
F("marker", Dt),
|
|
1181
1195
|
W(),
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1196
|
+
G(),
|
|
1197
|
+
Ft(),
|
|
1198
|
+
It(),
|
|
1199
|
+
K("cat"),
|
|
1200
|
+
K("val"),
|
|
1201
|
+
N("smooth", "bool"),
|
|
1202
|
+
q()
|
|
1188
1203
|
] },
|
|
1189
1204
|
area: { fields: [
|
|
1190
|
-
...
|
|
1191
|
-
U(),
|
|
1205
|
+
...U(),
|
|
1192
1206
|
W(),
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
K()
|
|
1207
|
+
G(),
|
|
1208
|
+
Ft(),
|
|
1209
|
+
It(),
|
|
1210
|
+
K("cat"),
|
|
1211
|
+
K("val"),
|
|
1212
|
+
q()
|
|
1198
1213
|
] },
|
|
1199
1214
|
pie: { fields: [
|
|
1200
|
-
...
|
|
1201
|
-
|
|
1202
|
-
U(),
|
|
1215
|
+
...U(),
|
|
1216
|
+
N("explosion", "int"),
|
|
1203
1217
|
W(),
|
|
1204
|
-
G(
|
|
1205
|
-
|
|
1206
|
-
K()
|
|
1218
|
+
G(),
|
|
1219
|
+
K("cat"),
|
|
1220
|
+
K("val"),
|
|
1221
|
+
q()
|
|
1207
1222
|
] },
|
|
1208
1223
|
scatter: { fields: [
|
|
1209
|
-
...
|
|
1210
|
-
|
|
1211
|
-
U(),
|
|
1224
|
+
...U(),
|
|
1225
|
+
F("marker", Dt),
|
|
1212
1226
|
W(),
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1227
|
+
G(),
|
|
1228
|
+
Ft(),
|
|
1229
|
+
It(),
|
|
1230
|
+
K("xVal"),
|
|
1231
|
+
K("yVal"),
|
|
1232
|
+
N("smooth", "bool"),
|
|
1233
|
+
q()
|
|
1219
1234
|
] },
|
|
1220
1235
|
bubble: { fields: [
|
|
1221
|
-
...
|
|
1222
|
-
|
|
1223
|
-
U(),
|
|
1236
|
+
...U(),
|
|
1237
|
+
N("invertIfNegative", "bool"),
|
|
1224
1238
|
W(),
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1239
|
+
G(),
|
|
1240
|
+
Ft(),
|
|
1241
|
+
It(),
|
|
1242
|
+
K("xVal"),
|
|
1243
|
+
K("yVal"),
|
|
1244
|
+
K("bubbleSize"),
|
|
1245
|
+
N("bubble3D", "bool"),
|
|
1246
|
+
q()
|
|
1232
1247
|
] },
|
|
1233
1248
|
radar: { fields: [
|
|
1234
|
-
...
|
|
1235
|
-
|
|
1236
|
-
U(),
|
|
1249
|
+
...U(),
|
|
1250
|
+
F("marker", Dt),
|
|
1237
1251
|
W(),
|
|
1238
|
-
G(
|
|
1239
|
-
|
|
1240
|
-
K()
|
|
1252
|
+
G(),
|
|
1253
|
+
K("cat"),
|
|
1254
|
+
K("val"),
|
|
1255
|
+
q()
|
|
1241
1256
|
] },
|
|
1242
1257
|
surface: { fields: [
|
|
1243
|
-
...
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1258
|
+
...U(),
|
|
1259
|
+
K("cat"),
|
|
1260
|
+
K("val"),
|
|
1261
|
+
q()
|
|
1247
1262
|
] }
|
|
1248
|
-
},
|
|
1249
|
-
...
|
|
1263
|
+
}, J = (e) => F("ser", Lt[e], "series", { many: !0 }), Y = () => ({
|
|
1264
|
+
...N("axId", "int", "axIds"),
|
|
1250
1265
|
many: !0
|
|
1251
|
-
}),
|
|
1266
|
+
}), X = (e, t) => F(e, Et, e, { many: t }), Rt = {
|
|
1252
1267
|
tags: ["custSplit"],
|
|
1253
1268
|
key: "custSplit",
|
|
1254
1269
|
ns: "c",
|
|
1255
1270
|
read: (e, t, n) => {
|
|
1256
|
-
let r =
|
|
1257
|
-
...
|
|
1271
|
+
let r = A(e, { fields: [{
|
|
1272
|
+
...N("secondPiePt", "int", "points"),
|
|
1258
1273
|
many: !0
|
|
1259
1274
|
}] }, t, n);
|
|
1260
1275
|
return r.unknown ? void 0 : r.points ?? [];
|
|
1261
1276
|
},
|
|
1262
1277
|
write: (e, t) => {
|
|
1263
|
-
|
|
1264
|
-
...
|
|
1278
|
+
j(e, "c:custSplit", { points: t }, { fields: [{
|
|
1279
|
+
...N("secondPiePt", "int", "points"),
|
|
1265
1280
|
many: !0
|
|
1266
1281
|
}] });
|
|
1267
1282
|
}
|
|
1268
|
-
},
|
|
1283
|
+
}, zt = { fields: [N("idx", "int"), B()] }, Bt = {
|
|
1269
1284
|
tags: ["bandFmts"],
|
|
1270
1285
|
key: "bandFmts",
|
|
1271
1286
|
ns: "c",
|
|
1272
1287
|
read: (e, t, n) => {
|
|
1273
|
-
let r =
|
|
1288
|
+
let r = A(e, { fields: [F("bandFmt", zt, "formats", { many: !0 })] }, t, n);
|
|
1274
1289
|
return r.unknown ? void 0 : r.formats ?? [];
|
|
1275
1290
|
},
|
|
1276
1291
|
write: (e, t) => {
|
|
1277
|
-
|
|
1292
|
+
j(e, "c:bandFmts", { formats: t }, { fields: [F("bandFmt", zt, "formats", { many: !0 })] });
|
|
1278
1293
|
}
|
|
1279
|
-
},
|
|
1294
|
+
}, Vt = {
|
|
1280
1295
|
areaChart: {
|
|
1281
1296
|
type: "area",
|
|
1282
1297
|
codec: { fields: [
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1298
|
+
N("grouping", "str"),
|
|
1299
|
+
N("varyColors", "bool"),
|
|
1300
|
+
J("area"),
|
|
1301
|
+
G(),
|
|
1302
|
+
X("dropLines"),
|
|
1303
|
+
Y()
|
|
1289
1304
|
] }
|
|
1290
1305
|
},
|
|
1291
1306
|
area3DChart: {
|
|
1292
1307
|
type: "area",
|
|
1293
1308
|
is3D: !0,
|
|
1294
1309
|
codec: { fields: [
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1310
|
+
N("grouping", "str"),
|
|
1311
|
+
N("varyColors", "bool"),
|
|
1312
|
+
J("area"),
|
|
1313
|
+
G(),
|
|
1314
|
+
X("dropLines"),
|
|
1315
|
+
N("gapDepth", "int"),
|
|
1316
|
+
Y()
|
|
1302
1317
|
] }
|
|
1303
1318
|
},
|
|
1304
1319
|
lineChart: {
|
|
1305
1320
|
type: "line",
|
|
1306
1321
|
codec: { fields: [
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1322
|
+
N("grouping", "str"),
|
|
1323
|
+
N("varyColors", "bool"),
|
|
1324
|
+
J("line"),
|
|
1325
|
+
G(),
|
|
1326
|
+
X("dropLines"),
|
|
1327
|
+
X("hiLowLines"),
|
|
1328
|
+
F("upDownBars", Pt),
|
|
1329
|
+
N("marker", "bool"),
|
|
1330
|
+
N("smooth", "bool"),
|
|
1331
|
+
Y()
|
|
1317
1332
|
] }
|
|
1318
1333
|
},
|
|
1319
1334
|
line3DChart: {
|
|
1320
1335
|
type: "line",
|
|
1321
1336
|
is3D: !0,
|
|
1322
1337
|
codec: { fields: [
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1338
|
+
N("grouping", "str"),
|
|
1339
|
+
N("varyColors", "bool"),
|
|
1340
|
+
J("line"),
|
|
1341
|
+
G(),
|
|
1342
|
+
X("dropLines"),
|
|
1343
|
+
N("gapDepth", "int"),
|
|
1344
|
+
Y()
|
|
1330
1345
|
] }
|
|
1331
1346
|
},
|
|
1332
1347
|
stockChart: {
|
|
1333
1348
|
type: "stock",
|
|
1334
1349
|
codec: { fields: [
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1350
|
+
J("line"),
|
|
1351
|
+
G(),
|
|
1352
|
+
X("dropLines"),
|
|
1353
|
+
X("hiLowLines"),
|
|
1354
|
+
F("upDownBars", Pt),
|
|
1355
|
+
Y()
|
|
1341
1356
|
] }
|
|
1342
1357
|
},
|
|
1343
1358
|
radarChart: {
|
|
1344
1359
|
type: "radar",
|
|
1345
1360
|
codec: { fields: [
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1361
|
+
N("radarStyle", "str"),
|
|
1362
|
+
N("varyColors", "bool"),
|
|
1363
|
+
J("radar"),
|
|
1364
|
+
G(),
|
|
1365
|
+
Y()
|
|
1351
1366
|
] }
|
|
1352
1367
|
},
|
|
1353
1368
|
scatterChart: {
|
|
1354
1369
|
type: "scatter",
|
|
1355
1370
|
codec: { fields: [
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1371
|
+
N("scatterStyle", "str"),
|
|
1372
|
+
N("varyColors", "bool"),
|
|
1373
|
+
J("scatter"),
|
|
1374
|
+
G(),
|
|
1375
|
+
Y()
|
|
1361
1376
|
] }
|
|
1362
1377
|
},
|
|
1363
1378
|
pieChart: {
|
|
1364
1379
|
type: "pie",
|
|
1365
1380
|
codec: { fields: [
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1381
|
+
N("varyColors", "bool"),
|
|
1382
|
+
J("pie"),
|
|
1383
|
+
G(),
|
|
1384
|
+
N("firstSliceAng", "int")
|
|
1370
1385
|
] }
|
|
1371
1386
|
},
|
|
1372
1387
|
pie3DChart: {
|
|
1373
1388
|
type: "pie",
|
|
1374
1389
|
is3D: !0,
|
|
1375
1390
|
codec: { fields: [
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1391
|
+
N("varyColors", "bool"),
|
|
1392
|
+
J("pie"),
|
|
1393
|
+
G()
|
|
1379
1394
|
] }
|
|
1380
1395
|
},
|
|
1381
1396
|
doughnutChart: {
|
|
1382
1397
|
type: "doughnut",
|
|
1383
1398
|
codec: { fields: [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1399
|
+
N("varyColors", "bool"),
|
|
1400
|
+
J("pie"),
|
|
1401
|
+
G(),
|
|
1402
|
+
N("firstSliceAng", "int"),
|
|
1403
|
+
N("holeSize", "int")
|
|
1389
1404
|
] }
|
|
1390
1405
|
},
|
|
1391
1406
|
barChart: {
|
|
1392
1407
|
type: "bar",
|
|
1393
1408
|
codec: { fields: [
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1409
|
+
N("barDir", "str"),
|
|
1410
|
+
N("grouping", "str"),
|
|
1411
|
+
N("varyColors", "bool"),
|
|
1412
|
+
J("bar"),
|
|
1413
|
+
G(),
|
|
1414
|
+
N("gapWidth", "int"),
|
|
1415
|
+
N("overlap", "int"),
|
|
1416
|
+
X("serLines", !0),
|
|
1417
|
+
Y()
|
|
1403
1418
|
] }
|
|
1404
1419
|
},
|
|
1405
1420
|
bar3DChart: {
|
|
1406
1421
|
type: "bar",
|
|
1407
1422
|
is3D: !0,
|
|
1408
1423
|
codec: { fields: [
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1424
|
+
N("barDir", "str"),
|
|
1425
|
+
N("grouping", "str"),
|
|
1426
|
+
N("varyColors", "bool"),
|
|
1427
|
+
J("bar"),
|
|
1428
|
+
G(),
|
|
1429
|
+
N("gapWidth", "int"),
|
|
1430
|
+
N("gapDepth", "int"),
|
|
1431
|
+
N("shape", "str"),
|
|
1432
|
+
Y()
|
|
1418
1433
|
] }
|
|
1419
1434
|
},
|
|
1420
1435
|
ofPieChart: {
|
|
1421
1436
|
type: "ofPie",
|
|
1422
1437
|
codec: { fields: [
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1438
|
+
N("ofPieType", "str"),
|
|
1439
|
+
N("varyColors", "bool"),
|
|
1440
|
+
J("pie"),
|
|
1441
|
+
G(),
|
|
1442
|
+
N("gapWidth", "int"),
|
|
1443
|
+
N("splitType", "str"),
|
|
1444
|
+
N("splitPos", "num"),
|
|
1445
|
+
Rt,
|
|
1446
|
+
N("secondPieSize", "int"),
|
|
1447
|
+
X("serLines", !0)
|
|
1433
1448
|
] }
|
|
1434
1449
|
},
|
|
1435
1450
|
surfaceChart: {
|
|
1436
1451
|
type: "surface",
|
|
1437
1452
|
codec: { fields: [
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1453
|
+
N("wireframe", "bool"),
|
|
1454
|
+
J("surface"),
|
|
1455
|
+
Bt,
|
|
1456
|
+
Y()
|
|
1442
1457
|
] }
|
|
1443
1458
|
},
|
|
1444
1459
|
surface3DChart: {
|
|
1445
1460
|
type: "surface",
|
|
1446
1461
|
is3D: !0,
|
|
1447
1462
|
codec: { fields: [
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1463
|
+
N("wireframe", "bool"),
|
|
1464
|
+
J("surface"),
|
|
1465
|
+
Bt,
|
|
1466
|
+
Y()
|
|
1452
1467
|
] }
|
|
1453
1468
|
},
|
|
1454
1469
|
bubbleChart: {
|
|
1455
1470
|
type: "bubble",
|
|
1456
1471
|
codec: { fields: [
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1472
|
+
N("varyColors", "bool"),
|
|
1473
|
+
J("bubble"),
|
|
1474
|
+
G(),
|
|
1475
|
+
N("bubble3D", "bool"),
|
|
1476
|
+
N("bubbleScale", "int"),
|
|
1477
|
+
N("showNegBubbles", "bool"),
|
|
1478
|
+
N("sizeRepresents", "str"),
|
|
1479
|
+
Y()
|
|
1465
1480
|
] }
|
|
1466
1481
|
}
|
|
1467
|
-
},
|
|
1468
|
-
tags: Object.keys(
|
|
1482
|
+
}, Ht = {
|
|
1483
|
+
tags: Object.keys(Vt),
|
|
1469
1484
|
key: "groups",
|
|
1470
1485
|
ns: "c",
|
|
1471
1486
|
many: !0,
|
|
1472
1487
|
read: (e, t, n) => {
|
|
1473
|
-
let { type: r, is3D: i, codec: a } =
|
|
1488
|
+
let { type: r, is3D: i, codec: a } = Vt[e.name], o = A(e, a, t, n);
|
|
1474
1489
|
return o.series ??= [], o.axIds ??= [], i ? {
|
|
1475
1490
|
type: r,
|
|
1476
1491
|
is3D: i,
|
|
@@ -1481,16 +1496,16 @@ var c = [
|
|
|
1481
1496
|
};
|
|
1482
1497
|
},
|
|
1483
1498
|
write: (e, t) => {
|
|
1484
|
-
let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } =
|
|
1485
|
-
|
|
1499
|
+
let n = ((e) => `${e.type}${e.is3D ? "3D" : ""}Chart`)(t), { type: r, is3D: i, ...a } = Kt(t);
|
|
1500
|
+
j(e, `c:${n}`, a, Vt[n].codec);
|
|
1486
1501
|
}
|
|
1487
|
-
},
|
|
1502
|
+
}, Ut = [
|
|
1488
1503
|
"ctr",
|
|
1489
1504
|
"l",
|
|
1490
1505
|
"r",
|
|
1491
1506
|
"t",
|
|
1492
1507
|
"b"
|
|
1493
|
-
],
|
|
1508
|
+
], Wt = (e) => {
|
|
1494
1509
|
switch (e.type) {
|
|
1495
1510
|
case "bar": return e.is3D ? [] : e.grouping === "stacked" || e.grouping === "percentStacked" ? [
|
|
1496
1511
|
"ctr",
|
|
@@ -1502,10 +1517,10 @@ var c = [
|
|
|
1502
1517
|
"inBase",
|
|
1503
1518
|
"outEnd"
|
|
1504
1519
|
];
|
|
1505
|
-
case "line": return e.is3D ? [] :
|
|
1520
|
+
case "line": return e.is3D ? [] : Ut;
|
|
1506
1521
|
case "stock":
|
|
1507
1522
|
case "scatter":
|
|
1508
|
-
case "bubble": return
|
|
1523
|
+
case "bubble": return Ut;
|
|
1509
1524
|
case "pie":
|
|
1510
1525
|
case "ofPie": return [
|
|
1511
1526
|
"ctr",
|
|
@@ -1515,9 +1530,9 @@ var c = [
|
|
|
1515
1530
|
];
|
|
1516
1531
|
default: return [];
|
|
1517
1532
|
}
|
|
1518
|
-
},
|
|
1519
|
-
let t =
|
|
1520
|
-
if (!
|
|
1533
|
+
}, Gt = (e, t) => t?.dLblPos !== void 0 && !e.includes(t.dLblPos), Kt = (e) => {
|
|
1534
|
+
let t = Wt(e), n = (e) => {
|
|
1535
|
+
if (!Gt(t, e)) return e;
|
|
1521
1536
|
let { dLblPos: n, ...r } = e;
|
|
1522
1537
|
return r;
|
|
1523
1538
|
}, r = (e) => e.labels ? {
|
|
@@ -1532,170 +1547,171 @@ var c = [
|
|
|
1532
1547
|
dLbls: r(e.dLbls)
|
|
1533
1548
|
} : e)
|
|
1534
1549
|
};
|
|
1535
|
-
},
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
] },
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
] },
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
] },
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
z(),
|
|
1550
|
+
}, qt = { fields: [
|
|
1551
|
+
N("logBase", "num"),
|
|
1552
|
+
N("orientation", "str"),
|
|
1553
|
+
N("max", "num"),
|
|
1554
|
+
N("min", "num")
|
|
1555
|
+
] }, Jt = { fields: [
|
|
1556
|
+
F("layout", H),
|
|
1557
|
+
F("tx", Ct),
|
|
1558
|
+
B(),
|
|
1559
|
+
V()
|
|
1560
|
+
] }, Yt = { fields: [
|
|
1561
|
+
N("custUnit", "num"),
|
|
1562
|
+
N("builtInUnit", "str"),
|
|
1563
|
+
F("dispUnitsLbl", Jt)
|
|
1564
|
+
] }, Xt = () => [
|
|
1565
|
+
N("axId", "int"),
|
|
1566
|
+
F("scaling", qt),
|
|
1567
|
+
N("delete", "bool"),
|
|
1568
|
+
N("axPos", "str"),
|
|
1569
|
+
X("majorGridlines"),
|
|
1570
|
+
X("minorGridlines"),
|
|
1571
|
+
F("title", Tt),
|
|
1572
|
+
F("numFmt", wt),
|
|
1573
|
+
N("majorTickMark", "str"),
|
|
1574
|
+
N("minorTickMark", "str"),
|
|
1575
|
+
N("tickLblPos", "str"),
|
|
1562
1576
|
B(),
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1577
|
+
V(),
|
|
1578
|
+
N("crossAx", "int"),
|
|
1579
|
+
N("crosses", "str"),
|
|
1580
|
+
N("crossesAt", "num")
|
|
1581
|
+
], Zt = {
|
|
1567
1582
|
valAx: {
|
|
1568
1583
|
type: "val",
|
|
1569
1584
|
codec: { fields: [
|
|
1570
|
-
...
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1585
|
+
...Xt(),
|
|
1586
|
+
N("crossBetween", "str"),
|
|
1587
|
+
N("majorUnit", "num"),
|
|
1588
|
+
N("minorUnit", "num"),
|
|
1589
|
+
F("dispUnits", Yt)
|
|
1575
1590
|
] }
|
|
1576
1591
|
},
|
|
1577
1592
|
catAx: {
|
|
1578
1593
|
type: "cat",
|
|
1579
1594
|
codec: { fields: [
|
|
1580
|
-
...
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1595
|
+
...Xt(),
|
|
1596
|
+
N("auto", "bool"),
|
|
1597
|
+
N("lblAlgn", "str"),
|
|
1598
|
+
N("lblOffset", "int"),
|
|
1599
|
+
N("tickLblSkip", "int"),
|
|
1600
|
+
N("tickMarkSkip", "int"),
|
|
1601
|
+
N("noMultiLvlLbl", "bool")
|
|
1587
1602
|
] }
|
|
1588
1603
|
},
|
|
1589
1604
|
dateAx: {
|
|
1590
1605
|
type: "date",
|
|
1591
1606
|
codec: { fields: [
|
|
1592
|
-
...
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1607
|
+
...Xt(),
|
|
1608
|
+
N("auto", "bool"),
|
|
1609
|
+
N("lblOffset", "int"),
|
|
1610
|
+
N("baseTimeUnit", "str"),
|
|
1611
|
+
N("majorUnit", "num"),
|
|
1612
|
+
N("majorTimeUnit", "str"),
|
|
1613
|
+
N("minorUnit", "num"),
|
|
1614
|
+
N("minorTimeUnit", "str")
|
|
1600
1615
|
] }
|
|
1601
1616
|
},
|
|
1602
1617
|
serAx: {
|
|
1603
1618
|
type: "ser",
|
|
1604
1619
|
codec: { fields: [
|
|
1605
|
-
...
|
|
1606
|
-
|
|
1607
|
-
|
|
1620
|
+
...Xt(),
|
|
1621
|
+
N("tickLblSkip", "int"),
|
|
1622
|
+
N("tickMarkSkip", "int")
|
|
1608
1623
|
] }
|
|
1609
1624
|
}
|
|
1610
|
-
},
|
|
1611
|
-
tags: Object.keys(
|
|
1625
|
+
}, Qt = {
|
|
1626
|
+
tags: Object.keys(Zt),
|
|
1612
1627
|
key: "axes",
|
|
1613
1628
|
ns: "c",
|
|
1614
1629
|
many: !0,
|
|
1615
1630
|
read: (e, t, n) => ({
|
|
1616
|
-
type:
|
|
1617
|
-
...
|
|
1631
|
+
type: Zt[e.name].type,
|
|
1632
|
+
...A(e, Zt[e.name].codec, t, n)
|
|
1618
1633
|
}),
|
|
1619
1634
|
write: (e, t) => {
|
|
1620
1635
|
let { type: n, ...r } = t, i = `${n}Ax`;
|
|
1621
|
-
|
|
1636
|
+
j(e, `c:${i}`, r, Zt[i].codec);
|
|
1622
1637
|
}
|
|
1623
|
-
},
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
] },
|
|
1638
|
+
}, $t = { fields: [
|
|
1639
|
+
N("showHorzBorder", "bool"),
|
|
1640
|
+
N("showVertBorder", "bool"),
|
|
1641
|
+
N("showOutline", "bool"),
|
|
1642
|
+
N("showKeys", "bool"),
|
|
1643
|
+
B(),
|
|
1644
|
+
V()
|
|
1645
|
+
] }, en = {
|
|
1631
1646
|
fields: [
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1647
|
+
F("layout", H),
|
|
1648
|
+
Ht,
|
|
1649
|
+
Qt,
|
|
1650
|
+
F("dTable", $t),
|
|
1651
|
+
B()
|
|
1637
1652
|
],
|
|
1638
1653
|
afterRead: (e) => {
|
|
1639
1654
|
e.groups ??= [], e.axes ??= [];
|
|
1640
1655
|
}
|
|
1641
|
-
},
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
] },
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
] },
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
] },
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
B()
|
|
1680
|
-
|
|
1656
|
+
}, tn = { fields: [
|
|
1657
|
+
N("rotX", "int"),
|
|
1658
|
+
N("hPercent", "int"),
|
|
1659
|
+
N("rotY", "int"),
|
|
1660
|
+
N("depthPercent", "int"),
|
|
1661
|
+
N("rAngAx", "bool"),
|
|
1662
|
+
N("perspective", "int")
|
|
1663
|
+
] }, nn = { fields: [N("thickness", "int"), B()] }, rn = { fields: [
|
|
1664
|
+
N("idx", "int"),
|
|
1665
|
+
N("delete", "bool"),
|
|
1666
|
+
V()
|
|
1667
|
+
] }, an = { fields: [
|
|
1668
|
+
N("legendPos", "str"),
|
|
1669
|
+
F("legendEntry", rn, "entries", { many: !0 }),
|
|
1670
|
+
F("layout", H),
|
|
1671
|
+
N("overlay", "bool"),
|
|
1672
|
+
B(),
|
|
1673
|
+
V()
|
|
1674
|
+
] }, on = { fields: [
|
|
1675
|
+
F("title", Tt),
|
|
1676
|
+
N("autoTitleDeleted", "bool"),
|
|
1677
|
+
F("view3D", tn),
|
|
1678
|
+
F("floor", nn),
|
|
1679
|
+
F("sideWall", nn),
|
|
1680
|
+
F("backWall", nn),
|
|
1681
|
+
F("plotArea", en),
|
|
1682
|
+
F("legend", an),
|
|
1683
|
+
N("plotVisOnly", "bool"),
|
|
1684
|
+
N("dispBlanksAs", "str"),
|
|
1685
|
+
N("showDLblsOverMax", "bool"),
|
|
1686
|
+
F("extLst", bt)
|
|
1687
|
+
] }, sn = { fields: [P("name"), N("fmtId", "int")] }, cn = { fields: [
|
|
1688
|
+
N("date1904", "bool"),
|
|
1689
|
+
N("lang", "str"),
|
|
1690
|
+
N("roundedCorners", "bool"),
|
|
1691
|
+
N("style", "int"),
|
|
1692
|
+
F("pivotSource", sn),
|
|
1693
|
+
F("chart", on),
|
|
1694
|
+
B(),
|
|
1695
|
+
V()
|
|
1696
|
+
] }, ln = (e) => {
|
|
1681
1697
|
let t = x(e);
|
|
1682
1698
|
if (!t || t.name !== "chartSpace") return null;
|
|
1683
1699
|
let n = xe(t, ye);
|
|
1684
1700
|
if (!ge(Se(t, n))) return null;
|
|
1685
1701
|
let r = new Oe(e, n);
|
|
1686
1702
|
return {
|
|
1687
|
-
model:
|
|
1703
|
+
model: A(t, cn, ye, r),
|
|
1688
1704
|
kept: r.kept,
|
|
1689
1705
|
reordered: r.reordered
|
|
1690
1706
|
};
|
|
1691
|
-
},
|
|
1707
|
+
}, un = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", dn = (e) => {
|
|
1692
1708
|
let t = { ...e.unknown?.attributes }, n = (e, n) => {
|
|
1693
1709
|
t[`xmlns:${e}`] ??= n;
|
|
1694
1710
|
};
|
|
1695
|
-
n(
|
|
1696
|
-
let r = new Ce().raw(
|
|
1711
|
+
n(T.c, w), n(T.a, le), n(T.r, de);
|
|
1712
|
+
let r = new Ce().raw(un);
|
|
1697
1713
|
return ((e, t) => {
|
|
1698
|
-
|
|
1714
|
+
j(e, "c:chartSpace", t, cn);
|
|
1699
1715
|
})(r, {
|
|
1700
1716
|
...e,
|
|
1701
1717
|
unknown: {
|
|
@@ -1703,20 +1719,20 @@ var c = [
|
|
|
1703
1719
|
attributes: t
|
|
1704
1720
|
}
|
|
1705
1721
|
}), r.toString();
|
|
1706
|
-
},
|
|
1722
|
+
}, fn = (e, t) => {
|
|
1707
1723
|
if (t && (n = e, !(n.chart?.plotArea?.groups ?? []).some((e) => {
|
|
1708
|
-
let t =
|
|
1724
|
+
let t = Wt(e), n = (e) => Gt(t, e) || !!e?.labels?.some((e) => Gt(t, e));
|
|
1709
1725
|
return n(e.dLbls) || e.series.some((e) => n(e.dLbls));
|
|
1710
1726
|
}))) {
|
|
1711
|
-
let n =
|
|
1727
|
+
let n = ln(t);
|
|
1712
1728
|
if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
|
|
1713
1729
|
}
|
|
1714
1730
|
var n;
|
|
1715
|
-
return
|
|
1716
|
-
},
|
|
1731
|
+
return dn(e);
|
|
1732
|
+
}, Z = (e, t, n = e, r) => F(e, t, n, {
|
|
1717
1733
|
ns: "cx",
|
|
1718
1734
|
many: r
|
|
1719
|
-
}),
|
|
1735
|
+
}), Q = () => Z("spPr", Ze), pn = () => Z("txPr", ot), mn = () => Z("numFmt", wt), hn = (e) => ({
|
|
1720
1736
|
name: e,
|
|
1721
1737
|
key: e,
|
|
1722
1738
|
read: (e) => {
|
|
@@ -1725,28 +1741,28 @@ var c = [
|
|
|
1725
1741
|
return e.trim() !== "" && Number.isFinite(t) ? t : void 0;
|
|
1726
1742
|
},
|
|
1727
1743
|
write: (e) => String(e)
|
|
1728
|
-
}),
|
|
1744
|
+
}), gn = (e) => E(e).filter(([e]) => e !== "xmlns" && !e.startsWith("xmlns:")), _n = (e) => ({
|
|
1729
1745
|
tags: [e],
|
|
1730
1746
|
key: e,
|
|
1731
1747
|
ns: "cx",
|
|
1732
1748
|
read: (e) => {
|
|
1733
1749
|
if (S(e).length > 0) return;
|
|
1734
1750
|
let t = { f: C(e) };
|
|
1735
|
-
for (let [n, r] of
|
|
1751
|
+
for (let [n, r] of gn(e)) {
|
|
1736
1752
|
if (n !== "dir" || r !== "col" && r !== "row") return;
|
|
1737
1753
|
t.dir = r;
|
|
1738
1754
|
}
|
|
1739
1755
|
return t.f === "" ? void 0 : t;
|
|
1740
1756
|
},
|
|
1741
1757
|
write: (t, n) => {
|
|
1742
|
-
let r =
|
|
1758
|
+
let r = M("cx", e);
|
|
1743
1759
|
t.open(r, n.dir ? [["dir", n.dir]] : null).text(n.f).close(r);
|
|
1744
1760
|
}
|
|
1745
|
-
}),
|
|
1761
|
+
}), vn = {
|
|
1746
1762
|
attributes: [
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1763
|
+
I("ptCount", "int"),
|
|
1764
|
+
I("formatCode", "str"),
|
|
1765
|
+
I("name", "str")
|
|
1750
1766
|
],
|
|
1751
1767
|
fields: [{
|
|
1752
1768
|
tags: ["pt"],
|
|
@@ -1755,50 +1771,50 @@ var c = [
|
|
|
1755
1771
|
many: !0,
|
|
1756
1772
|
read: (e) => {
|
|
1757
1773
|
if (S(e).length > 0) return;
|
|
1758
|
-
let t =
|
|
1774
|
+
let t = gn(e);
|
|
1759
1775
|
if (t.length !== 1 || t[0][0] !== "idx") return;
|
|
1760
1776
|
let n = Number(t[0][1]);
|
|
1761
|
-
return Number.isInteger(n) &&
|
|
1777
|
+
return Number.isInteger(n) && k(String(n)) === k(t[0][1]) ? {
|
|
1762
1778
|
idx: n,
|
|
1763
1779
|
v: C(e)
|
|
1764
1780
|
} : void 0;
|
|
1765
1781
|
},
|
|
1766
1782
|
write: (e, t) => {
|
|
1767
|
-
let n =
|
|
1783
|
+
let n = M("cx", "pt");
|
|
1768
1784
|
t.v === "" ? e.open(n, [["idx", String(t.idx)]], !0) : e.open(n, [["idx", String(t.idx)]]).text(t.v).close(n);
|
|
1769
1785
|
}
|
|
1770
1786
|
}]
|
|
1771
|
-
},
|
|
1772
|
-
attributes: [
|
|
1787
|
+
}, yn = {
|
|
1788
|
+
attributes: [I("type", "str")],
|
|
1773
1789
|
fields: [
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1790
|
+
_n("f"),
|
|
1791
|
+
_n("nf"),
|
|
1792
|
+
Z("lvl", vn, "levels", !0)
|
|
1777
1793
|
]
|
|
1778
|
-
},
|
|
1794
|
+
}, bn = /* @__PURE__ */ new Set([
|
|
1779
1795
|
"val",
|
|
1780
1796
|
"x",
|
|
1781
1797
|
"y",
|
|
1782
1798
|
"size",
|
|
1783
1799
|
"colorVal"
|
|
1784
|
-
]),
|
|
1800
|
+
]), xn = /* @__PURE__ */ new Set([
|
|
1785
1801
|
"cat",
|
|
1786
1802
|
"colorStr",
|
|
1787
1803
|
"entityId"
|
|
1788
|
-
]),
|
|
1789
|
-
fields: [
|
|
1790
|
-
attributes: [
|
|
1804
|
+
]), Sn = {
|
|
1805
|
+
fields: [Z("data", {
|
|
1806
|
+
attributes: [I("id", "int")],
|
|
1791
1807
|
fields: [{
|
|
1792
1808
|
tags: ["numDim", "strDim"],
|
|
1793
1809
|
key: "dimensions",
|
|
1794
1810
|
ns: "cx",
|
|
1795
1811
|
many: !0,
|
|
1796
1812
|
read: (e, t, n) => {
|
|
1797
|
-
let r =
|
|
1798
|
-
return (e.name === "numDim" ?
|
|
1813
|
+
let r = A(e, yn, t, n);
|
|
1814
|
+
return (e.name === "numDim" ? bn : xn).has(r.type) ? r : void 0;
|
|
1799
1815
|
},
|
|
1800
1816
|
write: (e, t) => {
|
|
1801
|
-
|
|
1817
|
+
j(e, M("cx", bn.has(t.type) ? "numDim" : "strDim"), t, yn);
|
|
1802
1818
|
}
|
|
1803
1819
|
}],
|
|
1804
1820
|
afterRead: (e) => {
|
|
@@ -1808,76 +1824,76 @@ var c = [
|
|
|
1808
1824
|
afterRead: (e) => {
|
|
1809
1825
|
e.data ??= [];
|
|
1810
1826
|
}
|
|
1811
|
-
},
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
],
|
|
1816
|
-
attributes:
|
|
1827
|
+
}, Cn = { fields: [Z("txData", { fields: [_n("f"), P("v", "v", "cx")] }), Z("rich", ot)] }, wn = () => [
|
|
1828
|
+
I("pos", "str"),
|
|
1829
|
+
I("align", "str"),
|
|
1830
|
+
I("overlay", "bool")
|
|
1831
|
+
], Tn = {
|
|
1832
|
+
attributes: wn(),
|
|
1817
1833
|
fields: [
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1834
|
+
Z("tx", Cn),
|
|
1835
|
+
Q(),
|
|
1836
|
+
pn()
|
|
1821
1837
|
]
|
|
1822
|
-
},
|
|
1823
|
-
attributes:
|
|
1824
|
-
fields: [
|
|
1825
|
-
},
|
|
1838
|
+
}, En = {
|
|
1839
|
+
attributes: wn(),
|
|
1840
|
+
fields: [Q(), pn()]
|
|
1841
|
+
}, Dn = {
|
|
1826
1842
|
attributes: [
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1843
|
+
I("seriesName", "bool"),
|
|
1844
|
+
I("categoryName", "bool"),
|
|
1845
|
+
I("value", "bool")
|
|
1830
1846
|
],
|
|
1831
1847
|
fields: []
|
|
1832
|
-
},
|
|
1833
|
-
|
|
1834
|
-
Z(),
|
|
1848
|
+
}, On = () => [
|
|
1849
|
+
mn(),
|
|
1835
1850
|
Q(),
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1851
|
+
pn(),
|
|
1852
|
+
Z("visibility", Dn),
|
|
1853
|
+
P("separator", "separator", "cx")
|
|
1854
|
+
], kn = {
|
|
1855
|
+
attributes: [I("idx", "int"), I("pos", "str")],
|
|
1856
|
+
fields: On()
|
|
1857
|
+
}, An = {
|
|
1858
|
+
attributes: [I("idx", "int")],
|
|
1843
1859
|
fields: []
|
|
1844
|
-
},
|
|
1845
|
-
attributes: [
|
|
1860
|
+
}, jn = {
|
|
1861
|
+
attributes: [I("pos", "str")],
|
|
1846
1862
|
fields: [
|
|
1847
|
-
...
|
|
1848
|
-
|
|
1849
|
-
|
|
1863
|
+
...On(),
|
|
1864
|
+
Z("dataLabel", kn, "labels", !0),
|
|
1865
|
+
Z("dataLabelHidden", An, "hiddenLabels", !0)
|
|
1850
1866
|
]
|
|
1851
|
-
},
|
|
1852
|
-
attributes: [
|
|
1853
|
-
fields: [
|
|
1854
|
-
},
|
|
1867
|
+
}, Mn = {
|
|
1868
|
+
attributes: [I("idx", "int")],
|
|
1869
|
+
fields: [Q()]
|
|
1870
|
+
}, Nn = {
|
|
1855
1871
|
attributes: [
|
|
1856
1872
|
"connectorLines",
|
|
1857
1873
|
"meanLine",
|
|
1858
1874
|
"meanMarker",
|
|
1859
1875
|
"nonoutliers",
|
|
1860
1876
|
"outliers"
|
|
1861
|
-
].map((e) =>
|
|
1877
|
+
].map((e) => I(e, "bool")),
|
|
1862
1878
|
fields: []
|
|
1863
|
-
},
|
|
1879
|
+
}, Pn = {
|
|
1864
1880
|
attributes: [
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1881
|
+
I("intervalClosed", "str"),
|
|
1882
|
+
hn("underflow"),
|
|
1883
|
+
hn("overflow")
|
|
1868
1884
|
],
|
|
1869
|
-
fields: [
|
|
1870
|
-
},
|
|
1871
|
-
...
|
|
1885
|
+
fields: [N("binSize", "num", "binSize", "cx"), N("binCount", "int", "binCount", "cx")]
|
|
1886
|
+
}, Fn = { fields: [{
|
|
1887
|
+
...N("idx", "int", "indexes", "cx"),
|
|
1872
1888
|
many: !0
|
|
1873
|
-
}] },
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
attributes: [
|
|
1889
|
+
}] }, In = { fields: [
|
|
1890
|
+
N("parentLabelLayout", "str", "parentLabelLayout", "cx"),
|
|
1891
|
+
N("regionLabelLayout", "str", "regionLabelLayout", "cx"),
|
|
1892
|
+
Z("visibility", Nn),
|
|
1893
|
+
Z("aggregation", { fields: [] }),
|
|
1894
|
+
Z("binning", Pn),
|
|
1895
|
+
Z("statistics", {
|
|
1896
|
+
attributes: [I("quartileMethod", "str")],
|
|
1881
1897
|
fields: []
|
|
1882
1898
|
}),
|
|
1883
1899
|
{
|
|
@@ -1885,94 +1901,94 @@ var c = [
|
|
|
1885
1901
|
key: "subtotals",
|
|
1886
1902
|
ns: "cx",
|
|
1887
1903
|
read: (e, t, n) => {
|
|
1888
|
-
let r =
|
|
1904
|
+
let r = A(e, Fn, t, n);
|
|
1889
1905
|
return r.unknown ? void 0 : r.indexes ?? [];
|
|
1890
1906
|
},
|
|
1891
1907
|
write: (e, t) => {
|
|
1892
|
-
|
|
1908
|
+
j(e, M("cx", "subtotals"), { indexes: t }, Fn);
|
|
1893
1909
|
}
|
|
1894
1910
|
}
|
|
1895
|
-
] },
|
|
1911
|
+
] }, Ln = {
|
|
1896
1912
|
attributes: [
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1913
|
+
I("layoutId", "str"),
|
|
1914
|
+
I("hidden", "bool"),
|
|
1915
|
+
I("ownerIdx", "int"),
|
|
1916
|
+
I("uniqueId", "str"),
|
|
1917
|
+
I("formatIdx", "int")
|
|
1902
1918
|
],
|
|
1903
1919
|
fields: [
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1920
|
+
Z("tx", Cn),
|
|
1921
|
+
Q(),
|
|
1922
|
+
Z("dataPt", Mn, "points", !0),
|
|
1923
|
+
Z("dataLabels", jn),
|
|
1924
|
+
N("dataId", "int", "dataId", "cx"),
|
|
1925
|
+
Z("layoutPr", In),
|
|
1910
1926
|
{
|
|
1911
|
-
...
|
|
1927
|
+
...N("axisId", "int", "axisIds", "cx"),
|
|
1912
1928
|
many: !0
|
|
1913
1929
|
}
|
|
1914
1930
|
]
|
|
1915
|
-
},
|
|
1916
|
-
fields: [
|
|
1931
|
+
}, Rn = {
|
|
1932
|
+
fields: [Z("plotSurface", { fields: [Q()] }), Z("series", Ln, "series", !0)],
|
|
1917
1933
|
afterRead: (e) => {
|
|
1918
1934
|
e.series ??= [];
|
|
1919
1935
|
}
|
|
1920
|
-
},
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
] },
|
|
1925
|
-
attributes: [
|
|
1936
|
+
}, zn = { fields: [
|
|
1937
|
+
Z("tx", Cn),
|
|
1938
|
+
Q(),
|
|
1939
|
+
pn()
|
|
1940
|
+
] }, Bn = { fields: [Q()] }, Vn = {
|
|
1941
|
+
attributes: [I("type", "str")],
|
|
1926
1942
|
fields: []
|
|
1927
|
-
},
|
|
1928
|
-
attributes: [
|
|
1943
|
+
}, Hn = {
|
|
1944
|
+
attributes: [I("id", "int"), I("hidden", "bool")],
|
|
1929
1945
|
fields: [
|
|
1930
|
-
|
|
1931
|
-
attributes: [
|
|
1946
|
+
Z("catScaling", {
|
|
1947
|
+
attributes: [I("gapWidth", "num")],
|
|
1932
1948
|
fields: []
|
|
1933
1949
|
}),
|
|
1934
|
-
|
|
1950
|
+
Z("valScaling", {
|
|
1935
1951
|
attributes: [
|
|
1936
1952
|
"max",
|
|
1937
1953
|
"min",
|
|
1938
1954
|
"majorUnit",
|
|
1939
1955
|
"minorUnit"
|
|
1940
|
-
].map((e) =>
|
|
1956
|
+
].map((e) => I(e, "num")),
|
|
1941
1957
|
fields: []
|
|
1942
1958
|
}),
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
attributes: [
|
|
1946
|
-
fields: [
|
|
1959
|
+
Z("title", zn),
|
|
1960
|
+
Z("units", {
|
|
1961
|
+
attributes: [I("unit", "str")],
|
|
1962
|
+
fields: [Z("unitsLabel", zn)]
|
|
1947
1963
|
}),
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1964
|
+
Z("majorGridlines", Bn),
|
|
1965
|
+
Z("minorGridlines", Bn),
|
|
1966
|
+
Z("majorTickMarks", Vn),
|
|
1967
|
+
Z("minorTickMarks", Vn),
|
|
1968
|
+
Z("tickLabels", { fields: [] }),
|
|
1969
|
+
mn(),
|
|
1970
|
+
Q(),
|
|
1971
|
+
pn()
|
|
1956
1972
|
]
|
|
1957
|
-
},
|
|
1973
|
+
}, Un = {
|
|
1958
1974
|
fields: [
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1975
|
+
Z("plotAreaRegion", Rn),
|
|
1976
|
+
Z("axis", Hn, "axes", !0),
|
|
1977
|
+
Q()
|
|
1962
1978
|
],
|
|
1963
1979
|
afterRead: (e) => {
|
|
1964
1980
|
e.axes ??= [];
|
|
1965
1981
|
}
|
|
1966
|
-
},
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
] },
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
] },
|
|
1982
|
+
}, Wn = { fields: [
|
|
1983
|
+
Z("title", Tn),
|
|
1984
|
+
Z("plotArea", Un),
|
|
1985
|
+
Z("legend", En)
|
|
1986
|
+
] }, Gn = { fields: [
|
|
1987
|
+
Z("chartData", Sn),
|
|
1988
|
+
Z("chart", Wn),
|
|
1989
|
+
Q(),
|
|
1990
|
+
pn()
|
|
1991
|
+
] }, Kn = {
|
|
1976
1992
|
waterfall: "waterfall",
|
|
1977
1993
|
clusteredColumn: "histogram",
|
|
1978
1994
|
boxWhisker: "boxWhisker",
|
|
@@ -1980,7 +1996,7 @@ var c = [
|
|
|
1980
1996
|
sunburst: "sunburst",
|
|
1981
1997
|
funnel: "funnel",
|
|
1982
1998
|
regionMap: "regionMap"
|
|
1983
|
-
},
|
|
1999
|
+
}, qn = Object.fromEntries(Object.entries(Kn).map(([e, t]) => [t, e])), Jn = new Set(Object.values(Kn)), Yn = "paretoLine", Xn = {
|
|
1984
2000
|
cat: "cat",
|
|
1985
2001
|
val: "val",
|
|
1986
2002
|
x: "xVal",
|
|
@@ -1989,13 +2005,13 @@ var c = [
|
|
|
1989
2005
|
colorVal: "color",
|
|
1990
2006
|
colorStr: "color",
|
|
1991
2007
|
entityId: "entityId"
|
|
1992
|
-
},
|
|
2008
|
+
}, Zn = /* @__PURE__ */ new Set([
|
|
1993
2009
|
"val",
|
|
1994
2010
|
"x",
|
|
1995
2011
|
"y",
|
|
1996
2012
|
"size",
|
|
1997
2013
|
"colorVal"
|
|
1998
|
-
]),
|
|
2014
|
+
]), Qn = [
|
|
1999
2015
|
"cat",
|
|
2000
2016
|
"colorStr",
|
|
2001
2017
|
"entityId",
|
|
@@ -2007,23 +2023,23 @@ var c = [
|
|
|
2007
2023
|
], $ = (e) => {
|
|
2008
2024
|
for (let t of Object.keys(e)) e[t] === void 0 && delete e[t];
|
|
2009
2025
|
return e;
|
|
2010
|
-
},
|
|
2026
|
+
}, $n = (e) => $({
|
|
2011
2027
|
f: e.f,
|
|
2012
2028
|
dir: e.dir
|
|
2013
|
-
}),
|
|
2014
|
-
strRef: e.txData?.f ?
|
|
2029
|
+
}), er = (e) => e && $({
|
|
2030
|
+
strRef: e.txData?.f ? $n(e.txData.f) : void 0,
|
|
2015
2031
|
v: e.txData?.v,
|
|
2016
2032
|
rich: e.rich,
|
|
2017
2033
|
unknown: e.unknown
|
|
2018
|
-
}),
|
|
2019
|
-
tx:
|
|
2034
|
+
}), tr = (e) => e && $({
|
|
2035
|
+
tx: er(e.tx),
|
|
2020
2036
|
overlay: e.overlay,
|
|
2021
2037
|
spPr: e.spPr,
|
|
2022
2038
|
txPr: e.txPr,
|
|
2023
2039
|
pos: e.pos,
|
|
2024
2040
|
align: e.align,
|
|
2025
2041
|
unknown: e.unknown
|
|
2026
|
-
}),
|
|
2042
|
+
}), nr = (e) => $({
|
|
2027
2043
|
numFmt: e.numFmt,
|
|
2028
2044
|
spPr: e.spPr,
|
|
2029
2045
|
txPr: e.txPr,
|
|
@@ -2033,17 +2049,17 @@ var c = [
|
|
|
2033
2049
|
showVal: e.visibility?.value,
|
|
2034
2050
|
separator: e.separator,
|
|
2035
2051
|
unknown: e.unknown
|
|
2036
|
-
}),
|
|
2052
|
+
}), rr = (e) => {
|
|
2037
2053
|
if (!e) return;
|
|
2038
|
-
let t =
|
|
2054
|
+
let t = nr(e), n = [...(e.labels ?? []).map((e) => ({
|
|
2039
2055
|
idx: e.idx,
|
|
2040
|
-
|
|
2056
|
+
...nr(e)
|
|
2041
2057
|
})), ...(e.hiddenLabels ?? []).map((e) => ({
|
|
2042
2058
|
idx: e.idx,
|
|
2043
2059
|
delete: !0
|
|
2044
2060
|
}))];
|
|
2045
2061
|
return n.length > 0 && (t.labels = n), t;
|
|
2046
|
-
},
|
|
2062
|
+
}, ir = (e, t) => {
|
|
2047
2063
|
let n = (e ?? []).map((e) => ({ ...e }));
|
|
2048
2064
|
for (let e of [...t ?? []].sort((e, t) => e - t)) {
|
|
2049
2065
|
let t = n.find((t) => t.idx === e);
|
|
@@ -2053,11 +2069,11 @@ var c = [
|
|
|
2053
2069
|
});
|
|
2054
2070
|
}
|
|
2055
2071
|
return n.length > 0 ? n : void 0;
|
|
2056
|
-
},
|
|
2072
|
+
}, ar = (e) => {
|
|
2057
2073
|
if (!e) return;
|
|
2058
2074
|
let { subtotals: t, ...n } = e;
|
|
2059
2075
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
2060
|
-
},
|
|
2076
|
+
}, or = (e) => $({
|
|
2061
2077
|
ptCount: e.ptCount,
|
|
2062
2078
|
formatCode: e.formatCode,
|
|
2063
2079
|
name: e.name,
|
|
@@ -2066,59 +2082,59 @@ var c = [
|
|
|
2066
2082
|
v: e.v
|
|
2067
2083
|
})),
|
|
2068
2084
|
unknown: e.unknown
|
|
2069
|
-
}),
|
|
2070
|
-
let t =
|
|
2085
|
+
}), sr = (e) => {
|
|
2086
|
+
let t = Zn.has(e.type), n = e.levels?.map(or), r = {};
|
|
2071
2087
|
return e.f ? r[t ? "numRef" : "strRef"] = $({
|
|
2072
|
-
|
|
2088
|
+
...$n(e.f),
|
|
2073
2089
|
cache: n ? { levels: n } : void 0
|
|
2074
|
-
}) : r[t ? "numLit" : "strLit"] = $({ levels: n }), e.nf && (r.nf =
|
|
2075
|
-
},
|
|
2090
|
+
}) : r[t ? "numLit" : "strLit"] = $({ levels: n }), e.nf && (r.nf = $n(e.nf)), e.unknown && (r.unknown = e.unknown), r;
|
|
2091
|
+
}, cr = (e, t) => {
|
|
2076
2092
|
let n = $({
|
|
2077
2093
|
idx: e.formatIdx,
|
|
2078
2094
|
hidden: e.hidden,
|
|
2079
2095
|
uniqueId: e.uniqueId,
|
|
2080
|
-
tx:
|
|
2096
|
+
tx: er(e.tx),
|
|
2081
2097
|
spPr: e.spPr,
|
|
2082
|
-
points:
|
|
2083
|
-
dLbls:
|
|
2084
|
-
layoutPr:
|
|
2098
|
+
points: ir(e.points, e.layoutPr?.subtotals),
|
|
2099
|
+
dLbls: rr(e.dataLabels),
|
|
2100
|
+
layoutPr: ar(e.layoutPr),
|
|
2085
2101
|
unknown: e.unknown
|
|
2086
2102
|
});
|
|
2087
2103
|
for (let e of t?.dimensions ?? []) {
|
|
2088
|
-
let t =
|
|
2089
|
-
t && !n[t] && (n[t] =
|
|
2104
|
+
let t = Xn[e.type];
|
|
2105
|
+
t && !n[t] && (n[t] = sr(e));
|
|
2090
2106
|
}
|
|
2091
2107
|
return n;
|
|
2092
|
-
},
|
|
2108
|
+
}, lr = (e) => $({
|
|
2093
2109
|
idx: e.formatIdx,
|
|
2094
2110
|
hidden: e.hidden,
|
|
2095
2111
|
uniqueId: e.uniqueId,
|
|
2096
|
-
tx:
|
|
2112
|
+
tx: er(e.tx),
|
|
2097
2113
|
spPr: e.spPr,
|
|
2098
|
-
points:
|
|
2099
|
-
dLbls:
|
|
2100
|
-
layoutPr:
|
|
2114
|
+
points: ir(e.points, e.layoutPr?.subtotals),
|
|
2115
|
+
dLbls: rr(e.dataLabels),
|
|
2116
|
+
layoutPr: ar(e.layoutPr),
|
|
2101
2117
|
axIds: e.axisIds,
|
|
2102
2118
|
unknown: e.unknown
|
|
2103
|
-
}),
|
|
2119
|
+
}), ur = (e, t) => {
|
|
2104
2120
|
let n = new Map(t.map((e) => [e.id, e])), r = [], i = [], a = null;
|
|
2105
2121
|
for (let t of e?.series ?? []) {
|
|
2106
|
-
if (t.layoutId ===
|
|
2122
|
+
if (t.layoutId === Yn) {
|
|
2107
2123
|
let e = t.ownerIdx === void 0 ? null : i[t.ownerIdx];
|
|
2108
|
-
e && !e.cumulativeLine && (e.cumulativeLine =
|
|
2124
|
+
e && !e.cumulativeLine && (e.cumulativeLine = lr(t)), i.push(null);
|
|
2109
2125
|
continue;
|
|
2110
2126
|
}
|
|
2111
|
-
let e =
|
|
2127
|
+
let e = Kn[t.layoutId] ?? t.layoutId, o = t.axisIds ?? [];
|
|
2112
2128
|
a && a.type === e && JSON.stringify(a.axIds) === JSON.stringify(o) || (a = {
|
|
2113
2129
|
type: e,
|
|
2114
2130
|
series: [],
|
|
2115
2131
|
axIds: o
|
|
2116
2132
|
}, r.push(a));
|
|
2117
|
-
let s =
|
|
2133
|
+
let s = cr(t, t.dataId === void 0 ? void 0 : n.get(t.dataId));
|
|
2118
2134
|
a.series.push(s), i.push(s);
|
|
2119
2135
|
}
|
|
2120
2136
|
return r;
|
|
2121
|
-
},
|
|
2137
|
+
}, dr = (e) => {
|
|
2122
2138
|
let t = e.catScaling ?? e.valScaling;
|
|
2123
2139
|
return $({
|
|
2124
2140
|
type: e.catScaling || !e.valScaling ? "cat" : "val",
|
|
@@ -2132,7 +2148,7 @@ var c = [
|
|
|
2132
2148
|
delete: e.hidden,
|
|
2133
2149
|
majorGridlines: e.majorGridlines,
|
|
2134
2150
|
minorGridlines: e.minorGridlines,
|
|
2135
|
-
title:
|
|
2151
|
+
title: tr(e.title),
|
|
2136
2152
|
numFmt: e.numFmt,
|
|
2137
2153
|
majorTickMark: e.majorTickMarks?.type,
|
|
2138
2154
|
minorTickMark: e.minorTickMarks?.type,
|
|
@@ -2143,24 +2159,24 @@ var c = [
|
|
|
2143
2159
|
minorUnit: e.valScaling?.minorUnit,
|
|
2144
2160
|
dispUnits: e.units && $({
|
|
2145
2161
|
builtInUnit: e.units.unit,
|
|
2146
|
-
dispUnitsLbl:
|
|
2162
|
+
dispUnitsLbl: tr(e.units.unitsLabel),
|
|
2147
2163
|
unknown: e.units.unknown
|
|
2148
2164
|
}),
|
|
2149
2165
|
unknown: e.unknown
|
|
2150
2166
|
});
|
|
2151
|
-
},
|
|
2167
|
+
}, fr = (e) => e && $({
|
|
2152
2168
|
txData: e.strRef || e.v !== void 0 ? $({
|
|
2153
|
-
f: e.strRef ?
|
|
2169
|
+
f: e.strRef ? $n(e.strRef) : void 0,
|
|
2154
2170
|
v: e.v
|
|
2155
2171
|
}) : void 0,
|
|
2156
2172
|
rich: e.rich,
|
|
2157
2173
|
unknown: e.unknown
|
|
2158
|
-
}),
|
|
2159
|
-
tx:
|
|
2174
|
+
}), pr = (e) => e && $({
|
|
2175
|
+
tx: fr(e.tx),
|
|
2160
2176
|
spPr: e.spPr,
|
|
2161
2177
|
txPr: e.txPr,
|
|
2162
2178
|
unknown: e.unknown
|
|
2163
|
-
}),
|
|
2179
|
+
}), mr = (e) => {
|
|
2164
2180
|
let t = e.showSerName !== void 0 || e.showCatName !== void 0 || e.showVal !== void 0;
|
|
2165
2181
|
return $({
|
|
2166
2182
|
pos: e.dLblPos,
|
|
@@ -2175,23 +2191,23 @@ var c = [
|
|
|
2175
2191
|
separator: e.separator,
|
|
2176
2192
|
unknown: e.unknown
|
|
2177
2193
|
});
|
|
2178
|
-
},
|
|
2194
|
+
}, hr = (e) => !0 === e.delete && Object.keys(e).every((e) => e === "idx" || e === "delete"), gr = (e) => {
|
|
2179
2195
|
if (!e) return;
|
|
2180
|
-
let t =
|
|
2196
|
+
let t = mr(e), n = (e.labels ?? []).filter((e) => !hr(e)).map((e) => ({
|
|
2181
2197
|
idx: e.idx,
|
|
2182
|
-
...
|
|
2183
|
-
})), r = (e.labels ?? []).filter(
|
|
2198
|
+
...mr(e)
|
|
2199
|
+
})), r = (e.labels ?? []).filter(hr).map((e) => ({ idx: e.idx }));
|
|
2184
2200
|
return n.length > 0 && (t.labels = n), r.length > 0 && (t.hiddenLabels = r), t;
|
|
2185
|
-
},
|
|
2201
|
+
}, _r = (e) => {
|
|
2186
2202
|
let t = (e ?? []).filter((e) => Object.keys(e).some((e) => e !== "idx" && e !== "subtotal")).map(({ subtotal: e, ...t }) => t);
|
|
2187
2203
|
return t.length > 0 ? t : void 0;
|
|
2188
|
-
},
|
|
2204
|
+
}, vr = (e, t, n) => {
|
|
2189
2205
|
let r = (t ?? []).filter((e) => e.subtotal).map((e) => e.idx).sort((e, t) => e - t);
|
|
2190
2206
|
return r.length !== 0 || n ? {
|
|
2191
2207
|
...e,
|
|
2192
2208
|
subtotals: r
|
|
2193
2209
|
} : e;
|
|
2194
|
-
},
|
|
2210
|
+
}, yr = (e) => $({
|
|
2195
2211
|
ptCount: e.ptCount,
|
|
2196
2212
|
formatCode: e.formatCode,
|
|
2197
2213
|
name: e.name,
|
|
@@ -2200,7 +2216,7 @@ var c = [
|
|
|
2200
2216
|
v: e.v
|
|
2201
2217
|
})) : void 0,
|
|
2202
2218
|
unknown: e.unknown
|
|
2203
|
-
}),
|
|
2219
|
+
}), br = (e, t) => e === "color" ? t.strRef || t.strLit ? "colorStr" : "colorVal" : Object.keys(Xn).find((t) => Xn[t] === e), xr = (e) => {
|
|
2204
2220
|
let t = [];
|
|
2205
2221
|
for (let n of [
|
|
2206
2222
|
"cat",
|
|
@@ -2215,15 +2231,15 @@ var c = [
|
|
|
2215
2231
|
if (!r) continue;
|
|
2216
2232
|
let i = r.numRef ?? r.strRef, a = (i ? i.cache : r.numLit ?? r.strLit)?.levels;
|
|
2217
2233
|
t.push($({
|
|
2218
|
-
type:
|
|
2219
|
-
f: i ?
|
|
2220
|
-
nf: r.nf ?
|
|
2221
|
-
levels: a && a.length > 0 ? a.map(
|
|
2234
|
+
type: br(n, r),
|
|
2235
|
+
f: i ? $n(i) : void 0,
|
|
2236
|
+
nf: r.nf ? $n(r.nf) : void 0,
|
|
2237
|
+
levels: a && a.length > 0 ? a.map(yr) : void 0,
|
|
2222
2238
|
unknown: r.unknown
|
|
2223
2239
|
}));
|
|
2224
2240
|
}
|
|
2225
|
-
return t.sort((e, t) =>
|
|
2226
|
-
},
|
|
2241
|
+
return t.sort((e, t) => Qn.indexOf(e.type) - Qn.indexOf(t.type));
|
|
2242
|
+
}, Sr = (e) => {
|
|
2227
2243
|
let t = e.scaling ?? {}, n = e.type === "cat" || e.type === "date";
|
|
2228
2244
|
return $({
|
|
2229
2245
|
id: e.axId,
|
|
@@ -2239,10 +2255,10 @@ var c = [
|
|
|
2239
2255
|
minorUnit: e.minorUnit,
|
|
2240
2256
|
unknown: t.unknown
|
|
2241
2257
|
}),
|
|
2242
|
-
title:
|
|
2258
|
+
title: pr(e.title),
|
|
2243
2259
|
units: e.dispUnits && $({
|
|
2244
2260
|
unit: e.dispUnits.builtInUnit,
|
|
2245
|
-
unitsLabel:
|
|
2261
|
+
unitsLabel: pr(e.dispUnits.dispUnitsLbl),
|
|
2246
2262
|
unknown: e.dispUnits.unknown
|
|
2247
2263
|
}),
|
|
2248
2264
|
majorGridlines: e.majorGridlines,
|
|
@@ -2255,12 +2271,12 @@ var c = [
|
|
|
2255
2271
|
txPr: e.txPr,
|
|
2256
2272
|
unknown: e.unknown
|
|
2257
2273
|
});
|
|
2258
|
-
},
|
|
2274
|
+
}, Cr = (e) => {
|
|
2259
2275
|
let t = e.chart, n = t?.plotArea, r = [], i = [], a = [];
|
|
2260
2276
|
for (let e of n?.groups ?? []) {
|
|
2261
|
-
let t =
|
|
2277
|
+
let t = qn[e.type];
|
|
2262
2278
|
if (t) for (let n of e.series) {
|
|
2263
|
-
let o =
|
|
2279
|
+
let o = xr(n), s;
|
|
2264
2280
|
if (o.length > 0) {
|
|
2265
2281
|
let e = JSON.stringify(o);
|
|
2266
2282
|
s = a.indexOf(e), s === -1 && (s = i.length, i.push({
|
|
@@ -2274,27 +2290,27 @@ var c = [
|
|
|
2274
2290
|
hidden: n.hidden,
|
|
2275
2291
|
uniqueId: n.uniqueId,
|
|
2276
2292
|
formatIdx: n.idx,
|
|
2277
|
-
tx:
|
|
2293
|
+
tx: fr(n.tx),
|
|
2278
2294
|
spPr: n.spPr,
|
|
2279
|
-
points:
|
|
2280
|
-
dataLabels:
|
|
2295
|
+
points: _r(n.points),
|
|
2296
|
+
dataLabels: gr(n.dLbls),
|
|
2281
2297
|
dataId: s,
|
|
2282
|
-
layoutPr:
|
|
2298
|
+
layoutPr: vr(n.layoutPr, n.points, e.type === "waterfall"),
|
|
2283
2299
|
axisIds: e.axIds.length > 0 ? e.axIds : void 0,
|
|
2284
2300
|
unknown: n.unknown
|
|
2285
2301
|
}));
|
|
2286
2302
|
let l = n.cumulativeLine;
|
|
2287
2303
|
l && r.push($({
|
|
2288
|
-
layoutId:
|
|
2304
|
+
layoutId: Yn,
|
|
2289
2305
|
hidden: l.hidden,
|
|
2290
2306
|
ownerIdx: c,
|
|
2291
2307
|
uniqueId: l.uniqueId,
|
|
2292
2308
|
formatIdx: l.idx,
|
|
2293
|
-
tx:
|
|
2309
|
+
tx: fr(l.tx),
|
|
2294
2310
|
spPr: l.spPr,
|
|
2295
|
-
points:
|
|
2296
|
-
dataLabels:
|
|
2297
|
-
layoutPr:
|
|
2311
|
+
points: _r(l.points),
|
|
2312
|
+
dataLabels: gr(l.dLbls),
|
|
2313
|
+
layoutPr: vr(l.layoutPr, l.points, !1),
|
|
2298
2314
|
axisIds: l.axIds,
|
|
2299
2315
|
unknown: l.unknown
|
|
2300
2316
|
}));
|
|
@@ -2308,7 +2324,7 @@ var c = [
|
|
|
2308
2324
|
pos: s.pos,
|
|
2309
2325
|
align: s.align,
|
|
2310
2326
|
overlay: s.overlay,
|
|
2311
|
-
tx:
|
|
2327
|
+
tx: fr(s.tx),
|
|
2312
2328
|
spPr: s.spPr,
|
|
2313
2329
|
txPr: s.txPr,
|
|
2314
2330
|
unknown: s.unknown
|
|
@@ -2318,7 +2334,7 @@ var c = [
|
|
|
2318
2334
|
plotSurface: n?.plotSurface,
|
|
2319
2335
|
series: r
|
|
2320
2336
|
}),
|
|
2321
|
-
axes: (n?.axes ?? []).map(
|
|
2337
|
+
axes: (n?.axes ?? []).map(Sr),
|
|
2322
2338
|
spPr: n?.spPr,
|
|
2323
2339
|
unknown: n?.unknown
|
|
2324
2340
|
}),
|
|
@@ -2337,24 +2353,24 @@ var c = [
|
|
|
2337
2353
|
unknown: e.unknown
|
|
2338
2354
|
});
|
|
2339
2355
|
var s;
|
|
2340
|
-
},
|
|
2356
|
+
}, wr = (e, t) => {
|
|
2341
2357
|
if (e === t) return !0;
|
|
2342
2358
|
if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
2343
2359
|
let n = (e) => Object.keys(e).filter((t) => e[t] !== void 0), r = n(e), i = n(t);
|
|
2344
|
-
return r.length === i.length && r.every((n) =>
|
|
2345
|
-
},
|
|
2360
|
+
return r.length === i.length && r.every((n) => wr(e[n], t[n]));
|
|
2361
|
+
}, Tr = (e, t) => wr(e, Cr(t)), Er = (e) => {
|
|
2346
2362
|
let t = x(e);
|
|
2347
2363
|
if (!t || t.name !== "chartSpace") return null;
|
|
2348
2364
|
let n = xe(t, ye);
|
|
2349
2365
|
if (!ve(Se(t, n))) return null;
|
|
2350
|
-
let r = new Oe(e, n), i =
|
|
2366
|
+
let r = new Oe(e, n), i = A(t, Gn, ye, r), a = ((e) => {
|
|
2351
2367
|
let t = e.chart, n = t?.plotArea, r = t?.legend;
|
|
2352
2368
|
return $({
|
|
2353
2369
|
chart: $({
|
|
2354
|
-
title:
|
|
2370
|
+
title: tr(t?.title),
|
|
2355
2371
|
plotArea: $({
|
|
2356
|
-
groups:
|
|
2357
|
-
axes: (n?.axes ?? []).map(
|
|
2372
|
+
groups: ur(n?.plotAreaRegion, e.chartData?.data ?? []),
|
|
2373
|
+
axes: (n?.axes ?? []).map(dr),
|
|
2358
2374
|
spPr: n?.spPr,
|
|
2359
2375
|
plotSurface: n?.plotAreaRegion?.plotSurface,
|
|
2360
2376
|
unknown: n?.unknown
|
|
@@ -2378,16 +2394,16 @@ var c = [
|
|
|
2378
2394
|
model: a,
|
|
2379
2395
|
kept: r.kept,
|
|
2380
2396
|
reordered: r.reordered,
|
|
2381
|
-
lossy: !
|
|
2397
|
+
lossy: !Tr(i, a)
|
|
2382
2398
|
};
|
|
2383
|
-
},
|
|
2399
|
+
}, Dr = (e) => {
|
|
2384
2400
|
let t = { ...e.unknown?.attributes }, n = (e, n) => {
|
|
2385
2401
|
t[`xmlns:${e}`] ??= n;
|
|
2386
2402
|
};
|
|
2387
|
-
n(
|
|
2388
|
-
let r =
|
|
2403
|
+
n(T.a, le), n(T.r, de), n(T.cx, me);
|
|
2404
|
+
let r = Cr(e), i = new Ce().raw(un);
|
|
2389
2405
|
return ((e, t) => {
|
|
2390
|
-
|
|
2406
|
+
j(e, M("cx", "chartSpace"), t, Gn);
|
|
2391
2407
|
})(i, {
|
|
2392
2408
|
...r,
|
|
2393
2409
|
unknown: {
|
|
@@ -2395,18 +2411,18 @@ var c = [
|
|
|
2395
2411
|
attributes: t
|
|
2396
2412
|
}
|
|
2397
2413
|
}), i.toString();
|
|
2398
|
-
},
|
|
2414
|
+
}, Or = (e, t) => {
|
|
2399
2415
|
if (t) {
|
|
2400
|
-
let n =
|
|
2416
|
+
let n = Er(t);
|
|
2401
2417
|
if (n && JSON.stringify(n.model) === JSON.stringify(e)) return t;
|
|
2402
2418
|
}
|
|
2403
|
-
return
|
|
2404
|
-
},
|
|
2419
|
+
return Dr(e);
|
|
2420
|
+
}, kr = {
|
|
2405
2421
|
chart: {
|
|
2406
2422
|
relType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
|
|
2407
2423
|
contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
|
|
2408
2424
|
path: "../charts/chart{n}.xml",
|
|
2409
|
-
graphicUri:
|
|
2425
|
+
graphicUri: w
|
|
2410
2426
|
},
|
|
2411
2427
|
chartEx: {
|
|
2412
2428
|
relType: "http://schemas.microsoft.com/office/2014/relationships/chartEx",
|
|
@@ -2414,7 +2430,7 @@ var c = [
|
|
|
2414
2430
|
path: "../charts/chartEx{n}.xml",
|
|
2415
2431
|
graphicUri: me
|
|
2416
2432
|
}
|
|
2417
|
-
},
|
|
2433
|
+
}, Ar = /* @__PURE__ */ new Set([
|
|
2418
2434
|
"area",
|
|
2419
2435
|
"bar",
|
|
2420
2436
|
"line",
|
|
@@ -2426,33 +2442,33 @@ var c = [
|
|
|
2426
2442
|
"radar",
|
|
2427
2443
|
"stock",
|
|
2428
2444
|
"surface"
|
|
2429
|
-
]),
|
|
2430
|
-
let t =
|
|
2445
|
+
]), jr = (e) => e === kr.chartEx.relType ? "chartEx" : e === kr.chart.relType ? "chart" : null, Mr = (e) => Ar.has(e) ? "chart" : Jn.has(e) ? "chartEx" : null, Nr = (e) => {
|
|
2446
|
+
let t = ln(e);
|
|
2431
2447
|
if (t) return {
|
|
2432
2448
|
model: t.model,
|
|
2433
2449
|
family: "chart",
|
|
2434
2450
|
kept: t.kept,
|
|
2435
2451
|
lossy: !1
|
|
2436
2452
|
};
|
|
2437
|
-
let n =
|
|
2453
|
+
let n = Er(e);
|
|
2438
2454
|
return n ? {
|
|
2439
2455
|
model: n.model,
|
|
2440
2456
|
family: "chartEx",
|
|
2441
2457
|
kept: n.kept,
|
|
2442
2458
|
lossy: n.lossy
|
|
2443
2459
|
} : null;
|
|
2444
|
-
},
|
|
2445
|
-
if (Array.isArray(e)) return e.map(
|
|
2460
|
+
}, Pr = (e) => {
|
|
2461
|
+
if (Array.isArray(e)) return e.map(Pr);
|
|
2446
2462
|
if (typeof e != "object" || !e) return e;
|
|
2447
2463
|
let t = {};
|
|
2448
|
-
for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] =
|
|
2464
|
+
for (let [n, r] of Object.entries(e)) n !== "unknown" && (t[n] = Pr(r));
|
|
2449
2465
|
return t;
|
|
2450
|
-
},
|
|
2451
|
-
let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) =>
|
|
2466
|
+
}, Fr = (e, t) => {
|
|
2467
|
+
let n = e.chart?.plotArea?.groups ?? [], r = n.map((e) => Mr(e.type)).find((e) => e !== null) ?? t?.family ?? "chart", i = n.filter((e) => Mr(e.type) !== r).map((e) => e.type), a = e;
|
|
2452
2468
|
if (i.length > 0) {
|
|
2453
2469
|
let t = {
|
|
2454
2470
|
...e.chart.plotArea,
|
|
2455
|
-
groups: n.filter((e) =>
|
|
2471
|
+
groups: n.filter((e) => Mr(e.type) === r)
|
|
2456
2472
|
};
|
|
2457
2473
|
a = {
|
|
2458
2474
|
...e,
|
|
@@ -2463,12 +2479,12 @@ var c = [
|
|
|
2463
2479
|
};
|
|
2464
2480
|
}
|
|
2465
2481
|
let o = (t?.family ?? r) === r;
|
|
2466
|
-
o || (a =
|
|
2482
|
+
o || (a = Pr(a));
|
|
2467
2483
|
let s = o ? t?.xml : void 0;
|
|
2468
2484
|
return {
|
|
2469
2485
|
family: r,
|
|
2470
2486
|
leftOut: i,
|
|
2471
|
-
xml: r === "chartEx" ?
|
|
2487
|
+
xml: r === "chartEx" ? Or(a, s) : fn(a, s)
|
|
2472
2488
|
};
|
|
2473
2489
|
};
|
|
2474
|
-
export { u as a, l as c,
|
|
2490
|
+
export { u as a, l as c, Fr as i, c as l, jr as n, h as o, Nr as r, g as s, kr as t };
|