@sheetxl/io-xlsx 0.8.0-beta.17 → 0.8.0-beta.19

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 (24) hide show
  1. package/browser/esm/{DcMn-jMfEKpjhLbo.mjs → CEeTYNM_rwqsc-b6.mjs} +219 -219
  2. package/browser/esm/{AWuwwrCTwDE4BQGH.mjs → CiFeCAvntwei-3n-.mjs} +1098 -1033
  3. package/browser/esm/{v62NoYBoJsLBOx4t.mjs → CjbzUeeBPVVgBCe0.mjs} +1 -1
  4. package/browser/esm/{Claqh8OFs-oOlRgt.mjs → D-mGgx8e1t9LWTmB.mjs} +35 -35
  5. package/browser/esm/{BLH_fdMkhqCfGkFY.mjs → DD7kFqbkEtNMfi_p.mjs} +2555 -2450
  6. package/browser/esm/{BNcdhezQHA9IHqw0.mjs → DHDDP7TLXxGyopem.mjs} +4 -4
  7. package/browser/esm/{D-Am_xNiOPyhux5g.mjs → DLha0mZV3sGaIvf4.mjs} +2 -2
  8. package/browser/esm/{DzhKyRH8kCAq3RME.mjs → DjzJJMTBNL5XRlhs.mjs} +2 -2
  9. package/browser/esm/{DMSfJNobVqxFPB5z.mjs → DsyDZ-uLhZDvLk1P.mjs} +1667 -1640
  10. package/browser/esm/{DkPeYeIMvBK8Eah9.mjs → Libo9ivfHnsOxY-8.mjs} +2 -2
  11. package/browser/esm/{clykE4nUirU2W3vs.mjs → _oFFEu-K4yOqpchk.mjs} +1 -1
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{DzvOmNedQaxRP8vP.mjs → BGFKsZnCfmAU7Ebq.mjs} +1693 -1587
  14. package/node/esm/{C6lGe8n0PfRCbm1A.mjs → BKAFVfa5OXMQhTHy.mjs} +35 -35
  15. package/node/esm/{CxWtlje55fg8xrWp.mjs → BaiYXSeY70uC6mEf.mjs} +199 -199
  16. package/node/esm/{-uXTHNC2553Wwb9i.mjs → DRcXWsAsYDb2XGvQ.mjs} +2 -2
  17. package/node/esm/{YeqmZZ0sTX1KjGuk.mjs → DgBShdz1WVK7Hfdt.mjs} +2 -2
  18. package/node/esm/{DzJgqbx-KLtMlyhJ.mjs → Dp7MGfTHrlnWHSyn.mjs} +1336 -1271
  19. package/node/esm/{BhL3ux1VNOQEm_LA.mjs → DzRJquA2f4l2jQPf.mjs} +1 -1
  20. package/node/esm/{CYECv2Dos3ESL0dz.mjs → bq28CyzkFVMXb382.mjs} +1818 -1791
  21. package/node/esm/index.mjs +4 -4
  22. package/package.json +3 -3
  23. package/types/src/OOXMLExtensions.d.ts +5 -0
  24. package/types/src/SparklineGroups.d.ts +52 -0
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.17
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.19
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 { A as e, B as t, Dt as n, F as r, I as i, It as a, Jn as o, L as s, Lt as c, M as l, N as u, P as d, Qt as f, R as p, Rt as m, Tr as h, Tt as g, V as ee, Yn as _, Zt as te, _t as v, an as ne, cn as y, ft as re, gr as b, gt as x, ht as S, j as C, k as w, mt as ie, on as ae, pn as oe, r as se, t as ce, ut as le, v as ue, vt as T, wr as de, xt as fe, yt as E, z as pe } from "./BLH_fdMkhqCfGkFY.mjs";
8
- import { a as me, i as he, n as ge, r as _e } from "./AWuwwrCTwDE4BQGH.mjs";
9
- import { c as ve, l as ye, o as be, r as xe, s as Se } from "./Claqh8OFs-oOlRgt.mjs";
10
- import { CommonUtils as D } from "@sheetxl/utils";
11
- import { AddressUtils as O, FormulaError as Ce, IBorders as k, ICellStyle as A, ICondition as j, IFill as M, IFont as N, IRange as we, IShape as P, ISlicerStyle as F, ITextFrame as I, ShapeStyleUtils as Te, Sort as L, Tuple as Ee } from "@sheetxl/sdk";
7
+ import { A as e, B as t, Cr as n, Ct as r, Dt as i, F as a, Ht as o, I as s, L as c, M as l, Mr as u, N as d, Nt as f, P as p, R as m, St as h, Tt as g, Ut as _, V as ee, Wt as v, bt as te, dn as ne, er as y, fn as re, gt as ie, in as ae, j as b, jr as x, jt as oe, k as S, mn as se, r as ce, rn as le, t as ue, tr as C, v as de, vt as fe, wt as w, xt as T, yn as pe, z as me } from "./DD7kFqbkEtNMfi_p.mjs";
8
+ import { a as he, i as ge, n as _e, r as ve } from "./CiFeCAvntwei-3n-.mjs";
9
+ import { c as ye, l as be, o as xe, r as Se, s as Ce } from "./D-mGgx8e1t9LWTmB.mjs";
10
+ import { CommonUtils as E } from "@sheetxl/utils";
11
+ import { AddressUtils as D, FormulaError as O, IBorders as k, ICellStyle as A, ICondition as j, IFill as M, IFont as N, IRange as we, IShape as P, ISlicerStyle as F, ITextFrame as I, ShapeStyleUtils as Te, Sort as L, Tuple as Ee } from "@sheetxl/sdk";
12
12
  var De = class {
13
13
  constructor(e) {
14
14
  this.list = e;
@@ -42,7 +42,7 @@ var De = class {
42
42
  let t = parseFloat(e);
43
43
  return isNaN(t) ? null : t;
44
44
  }, je = /* @__PURE__ */ new Map(), R = class {
45
- constructor(e, t, n, r, i, a = null, o = D.EmptyObject) {
45
+ constructor(e, t, n, r, i, a = null, o = E.EmptyObject) {
46
46
  this._fileLocation = "";
47
47
  let s = (e, t, n) => o?.getRef?.(e, t, n, o?.parsedRefs), c = (e) => o?.getRefs?.(e, o?.parsedRefs);
48
48
  this._parent = e, this.sharedShared = t, this.currentPath = n, this.elemRoot = r, this.jsonRoot = i, e ? (this._fileLocation = e._fileLocation, this._getRef = e._getRef, this._getRefs = e._getRefs, this._serializeElement = e._serializeElement, this._readEmbeddedPart = e._readEmbeddedPart) : (a && (this._fileLocation = a), o?.getRef && (this._getRef = s), o?.getRefs && (this._getRefs = c), this._onWarning = o?.onWarning, this._addPerson = o?.addPerson, this._serializeElement = o?.serializeElement, this._readEmbeddedPart = o?.readEmbeddedPart);
@@ -130,10 +130,10 @@ var De = class {
130
130
  }
131
131
  }
132
132
  getFromPath(e, t) {
133
- return D.getFromPath(e, t);
133
+ return E.getFromPath(e, t);
134
134
  }
135
135
  setToPath(e, t, n) {
136
- return D.setToPath(e, t, n);
136
+ return E.setToPath(e, t, n);
137
137
  }
138
138
  getValAttrAsString(e, t) {
139
139
  let n = this.evaluate(e, t);
@@ -185,7 +185,7 @@ var De = class {
185
185
  ["lnRef", "stroke"],
186
186
  ["effectRef", "effect"]
187
187
  ], B = (e, t) => {
188
- let n = new d(), r = {};
188
+ let n = new p(), r = {};
189
189
  for (let [i, a] of Me) {
190
190
  let o = e.evaluate(i, t);
191
191
  if (!o) continue;
@@ -266,7 +266,7 @@ var De = class {
266
266
  let n = {};
267
267
  for (let e = 0; e < t.length; e++) {
268
268
  let r = t.item(e);
269
- r.name.startsWith("xmlns") || (n[r.localName ?? r.name] = c(r.value));
269
+ r.name.startsWith("xmlns") || (n[r.localName ?? r.name] = _(r.value));
270
270
  }
271
271
  return Object.keys(n).length > 0 ? n : void 0;
272
272
  }
@@ -289,7 +289,7 @@ var De = class {
289
289
  visit(e, t, n) {}
290
290
  processDataBarColor(e, t, n, r, i = "auto") {
291
291
  if (!t) return;
292
- let a = o((e) => t.getAttribute(e), i);
292
+ let a = y((e) => t.getAttribute(e), i);
293
293
  return a && (n[r] = a), n;
294
294
  }
295
295
  processFonts(e, t, n) {
@@ -304,42 +304,42 @@ var De = class {
304
304
  }
305
305
  return n;
306
306
  }
307
- processFont(e, n, r) {
308
- e.getValAttrAsBoolean("b", n, !0) && (r.weight = 700), e.getValAttrAsBoolean("i", n, !0) && (r.style = N.Style.Italic), e.getValAttrAsBoolean("strike", n, !0) && (r.strike = T(!0));
309
- let i = e.evaluate("u", n);
310
- if (i) {
311
- let e = i.getAttribute("val");
312
- r.underline = E(e);
313
- }
314
- let a = S(e.evaluate("vertAlign", n)?.getAttribute("val"));
315
- a !== void 0 && (r.baseline = a), p(e, n, r, "sz", "size");
316
- let o = e.evaluate("color", n);
317
- this.processDataBarColor(e, o, r, "color"), r.color ||= "auto", t(e, n, r, "name", "family"), t(e, n, r, "rFont", "family");
318
- let c = e.evaluate("family", n);
319
- if (c) {
320
- let e = c.getAttribute("val");
307
+ processFont(e, n, i) {
308
+ e.getValAttrAsBoolean("b", n, !0) && (i.weight = 700), e.getValAttrAsBoolean("i", n, !0) && (i.style = N.Style.Italic), e.getValAttrAsBoolean("strike", n, !0) && (i.strike = w(!0));
309
+ let a = e.evaluate("u", n);
310
+ if (a) {
311
+ let e = a.getAttribute("val");
312
+ i.underline = g(e);
313
+ }
314
+ let o = T(e.evaluate("vertAlign", n)?.getAttribute("val"));
315
+ o !== void 0 && (i.baseline = o), m(e, n, i, "sz", "size");
316
+ let s = e.evaluate("color", n);
317
+ this.processDataBarColor(e, s, i, "color"), i.color ||= "auto", t(e, n, i, "name", "family"), t(e, n, i, "rFont", "family");
318
+ let l = e.evaluate("family", n);
319
+ if (l) {
320
+ let e = l.getAttribute("val");
321
321
  if (e) switch (e) {
322
322
  case "1":
323
- r.fallbacks = ["serif"];
323
+ i.fallbacks = ["serif"];
324
324
  break;
325
325
  case "2":
326
- r.fallbacks = ["sans-serif"];
326
+ i.fallbacks = ["sans-serif"];
327
327
  break;
328
328
  case "3":
329
- r.fallbacks = ["monospace"];
329
+ i.fallbacks = ["monospace"];
330
330
  break;
331
331
  case "4":
332
- r.fallbacks = ["cursive"];
332
+ i.fallbacks = ["cursive"];
333
333
  break;
334
- case "5": r.fallbacks = ["fantasy"];
334
+ case "5": i.fallbacks = ["fantasy"];
335
335
  }
336
336
  }
337
- x(r, e.evaluate("scheme", n)?.getAttribute("val")), s(e, n, r, "shadow", "shadow", !0), s(e, n, r, "outline", "outline", !0);
337
+ h(i, e.evaluate("scheme", n)?.getAttribute("val")), c(e, n, i, "shadow", "shadow", !0), c(e, n, i, "outline", "outline", !0);
338
338
  for (let t of ["condense", "extend"]) {
339
- let i = v(t, !!e.getValAttrAsBoolean(t, n, !0));
340
- i !== void 0 && (r.letterSpacing = i);
339
+ let a = r(t, !!e.getValAttrAsBoolean(t, n, !0));
340
+ a !== void 0 && (i.letterSpacing = a);
341
341
  }
342
- return pe(e, n, r, "charset", "charset"), r;
342
+ return me(e, n, i, "charset", "charset"), i;
343
343
  }
344
344
  processFills(e, t, n) {
345
345
  if (!t) return;
@@ -496,7 +496,7 @@ var De = class {
496
496
  if (t.getPath().includes("Fallback") && r.content) {
497
497
  let i = r.content.json;
498
498
  if (r.content.type === "shape" && i && (i.type ?? P.Type.Shape) === o) {
499
- let r = t.evaluate("txBody", n), a = r ? new w().readTextBody(t, r) : null;
499
+ let r = t.evaluate("txBody", n), a = r ? new S().readTextBody(t, r) : null;
500
500
  a && e(a) !== "" && (i.text = a);
501
501
  }
502
502
  return {};
@@ -522,13 +522,13 @@ var De = class {
522
522
  let a = t.getAttribute("macro");
523
523
  a && (i.macro = a);
524
524
  let o = t.getAttribute("textlink");
525
- o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText = c(t.getAttribute("fLocksText"))), t.hasAttribute("fPublished") && (i.published = c(t.getAttribute("fPublished")));
526
- let s = r.slice(0, r.lastIndexOf("/")), l = e.evaluate(s, t);
527
- l?.getAttribute?.("txBox") === "1" && (i.textBox = !0);
528
- let u = this.readLocks(e.evaluate(r, t));
529
- if (u && (i.locks = u), n === "cxnSp" && l) {
525
+ o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText = _(t.getAttribute("fLocksText"))), t.hasAttribute("fPublished") && (i.published = _(t.getAttribute("fPublished")));
526
+ let s = r.slice(0, r.lastIndexOf("/")), c = e.evaluate(s, t);
527
+ c?.getAttribute?.("txBox") === "1" && (i.textBox = !0);
528
+ let l = this.readLocks(e.evaluate(r, t));
529
+ if (l && (i.locks = l), n === "cxnSp" && c) {
530
530
  let t = (t) => {
531
- let n = e.evaluate(t, l);
531
+ let n = e.evaluate(t, c);
532
532
  if (n?.getAttribute) return {
533
533
  id: parseInt(n.getAttribute("id") ?? "0", 10) || 0,
534
534
  index: parseInt(n.getAttribute("idx") ?? "0", 10) || 0
@@ -540,10 +540,10 @@ var De = class {
540
540
  }, Le = /^<a:extLst(?:\s+xmlns:a="[^"]*")?><a:ext uri="\{28A0092B-C50C-407E-A947-70E740481C1C\}"><a14:useLocalDpi(?:\s+xmlns:a14="[^"]*")?\s+val="0"\s*\/><\/a:ext><\/a:extLst>$/, X = (e, t, n, r) => {
541
541
  let i = e.evaluate(n, t), a = e.evaluate(r, t);
542
542
  return i || a ? {
543
- x: m(i?.getAttribute("x") ?? null) ?? 0,
544
- y: m(i?.getAttribute("y") ?? null) ?? 0,
545
- width: m(a?.getAttribute("cx") ?? null) ?? 0,
546
- height: m(a?.getAttribute("cy") ?? null) ?? 0
543
+ x: v(i?.getAttribute("x") ?? null) ?? 0,
544
+ y: v(i?.getAttribute("y") ?? null) ?? 0,
545
+ width: v(a?.getAttribute("cx") ?? null) ?? 0,
546
+ height: v(a?.getAttribute("cy") ?? null) ?? 0
547
547
  } : null;
548
548
  }, Re = { Checkbox: "checkbox" }, Z = (e) => {
549
549
  let t = e.getAttribute("val");
@@ -558,67 +558,67 @@ var De = class {
558
558
  function ze(e) {
559
559
  let t = {}, n = e.childNodes;
560
560
  for (let e = 0; e < n.length; e++) {
561
- let r = n.item(e);
562
- if (r.nodeType === 1) switch (r.localName) {
561
+ let i = n.item(e);
562
+ if (i.nodeType === 1) switch (i.localName) {
563
563
  case "b":
564
- t.weight = Z(r) ? 700 : 400;
564
+ t.weight = Z(i) ? 700 : 400;
565
565
  break;
566
566
  case "i":
567
- t.style = Z(r) ? N.Style.Italic : N.Style.Normal;
567
+ t.style = Z(i) ? N.Style.Italic : N.Style.Normal;
568
568
  break;
569
569
  case "strike":
570
- t.strike = T(Z(r));
570
+ t.strike = w(Z(i));
571
571
  break;
572
572
  case "outline":
573
- t.outline = Z(r);
573
+ t.outline = Z(i);
574
574
  break;
575
575
  case "shadow":
576
- t.shadow = Z(r);
576
+ t.shadow = Z(i);
577
577
  break;
578
578
  case "condense":
579
579
  case "extend": {
580
- let e = v(r.localName, Z(r));
580
+ let e = r(i.localName, Z(i));
581
581
  e !== void 0 && (t.letterSpacing = e);
582
582
  break;
583
583
  }
584
584
  case "u":
585
- t.underline = E(r.getAttribute("val"));
585
+ t.underline = g(i.getAttribute("val"));
586
586
  break;
587
587
  case "vertAlign": {
588
- let e = S(r.getAttribute("val"));
588
+ let e = T(i.getAttribute("val"));
589
589
  e !== void 0 && (t.baseline = e);
590
590
  break;
591
591
  }
592
592
  case "sz": {
593
- let e = parseFloat(r.getAttribute("val") ?? "");
593
+ let e = parseFloat(i.getAttribute("val") ?? "");
594
594
  isNaN(e) || (t.size = e);
595
595
  break;
596
596
  }
597
597
  case "rFont": {
598
- let e = r.getAttribute("val");
598
+ let e = i.getAttribute("val");
599
599
  e && (t.family = e);
600
600
  break;
601
601
  }
602
602
  case "family": {
603
- let e = Q[r.getAttribute("val") ?? ""];
603
+ let e = Q[i.getAttribute("val") ?? ""];
604
604
  e && (t.fallbacks = [e]);
605
605
  break;
606
606
  }
607
607
  case "charset": {
608
- let e = parseInt(r.getAttribute("val") ?? "", 10);
608
+ let e = parseInt(i.getAttribute("val") ?? "", 10);
609
609
  isNaN(e) || (t.charset = e);
610
610
  break;
611
611
  }
612
612
  case "scheme":
613
- x(t, r.getAttribute("val"));
613
+ h(t, i.getAttribute("val"));
614
614
  break;
615
615
  case "color": {
616
- let e = r.getAttribute("rgb");
617
- if (e && !r.hasAttribute("theme")) {
616
+ let e = i.getAttribute("rgb");
617
+ if (e && !i.hasAttribute("theme")) {
618
618
  t.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
619
619
  break;
620
620
  }
621
- let n = o((e) => r.getAttribute(e));
621
+ let n = y((e) => i.getAttribute(e));
622
622
  n && (t.color = n);
623
623
  break;
624
624
  }
@@ -701,15 +701,15 @@ var $ = {
701
701
  };
702
702
  }
703
703
  },
704
- ShapePropertiesVisitor: u,
705
- TextPropertiesVisitor: C,
706
- ShapeTextVisitor: w,
704
+ ShapePropertiesVisitor: d,
705
+ TextPropertiesVisitor: b,
706
+ ShapeTextVisitor: S,
707
707
  ThemeVisitor: class {
708
708
  visit(e, t, n) {
709
709
  n.name = t.getAttribute("name"), n.objectDefaults = {};
710
710
  let r = z(t, "custClrLst")[0];
711
711
  if (r) {
712
- let t = new d(), i = [];
712
+ let t = new p(), i = [];
713
713
  for (let n of z(r, "custClr")) {
714
714
  let r = t.processAdjColor(e, n);
715
715
  if (!r) continue;
@@ -731,7 +731,7 @@ var $ = {
731
731
  return n;
732
732
  }
733
733
  },
734
- ClrSchemeVisitor: class extends d {
734
+ ClrSchemeVisitor: class extends p {
735
735
  visit(e, t, n) {
736
736
  let r = {};
737
737
  r.name = t.getAttribute("name");
@@ -786,14 +786,14 @@ var $ = {
786
786
  }
787
787
  processDefault(e, t) {
788
788
  let n = {}, r = e.evaluate("spPr", t);
789
- r && new u().visit(e, r, n);
790
- let i = new w().readTextBody(e, t);
789
+ r && new d().visit(e, r, n);
790
+ let i = new S().readTextBody(e, t);
791
791
  (i.body || i.listStyle) && (n.text = i);
792
792
  let a = e.evaluate("style", t);
793
793
  return a && (n.style = B(e, a)), n;
794
794
  }
795
795
  },
796
- FmtSchemeVisitor: class extends d {
796
+ FmtSchemeVisitor: class extends p {
797
797
  visit(e, t, n) {
798
798
  let r = this.parseFillList(e, t, "fillStyleLst"), i = this.parseLnList(e, t, "lnStyleLst"), a = this.parseEffectStyleList(e, t, "effectStyleLst"), o = this.parseFillList(e, t, "bgFillStyleLst");
799
799
  if (r && (n.fillStyleLst = r), i && (n.lnStyleLst = i), a && (n.effectStyleLst = a), o && (n.bgFillStyleLst = o), r && i && a && o) return;
@@ -869,7 +869,7 @@ var $ = {
869
869
  return i && (n.style = i), r;
870
870
  }
871
871
  processCustomFilter(e, t) {
872
- return oe({
872
+ return pe({
873
873
  operator: t.getAttribute("operator"),
874
874
  val: t.getAttribute("val")
875
875
  }, (t) => e.warn(t));
@@ -887,7 +887,7 @@ var $ = {
887
887
  let r = null;
888
888
  n.localName === "customFilter" && (r = this.processCustomFilter(e, n)), r && i.push(r);
889
889
  }
890
- return i.length === 1 ? i[0] : ae(a);
890
+ return i.length === 1 ? i[0] : re(a);
891
891
  }
892
892
  processDynamicFilter(e, t) {
893
893
  return ne(t.getAttribute("type"), t.getAttribute("val"), t.getAttribute("maxVal"));
@@ -935,13 +935,13 @@ var $ = {
935
935
  return e.copyFromAttribute(t, "filterVal", n, "filterVal", e.FLOAT_COPY), e.copyFromAttribute(t, "percent", n, "percent", e.BOOLEAN_COPY), e.copyFromAttribute(t, "top", n, "top", e.BOOLEAN_COPY), e.copyFromAttribute(t, "val", n, "limit", e.FLOAT_COPY), r;
936
936
  }
937
937
  processFilterColumnExt(e, t) {
938
- let n = t.childNodes;
939
- for (let t = 0; t < n.length; t++) {
940
- let r = n.item(t);
941
- if (r.nodeType !== 1 || r.localName !== "ext" || b(r.getAttribute("uri")) !== b("{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}")) continue;
942
- let i = r.childNodes;
943
- for (let t = 0; t < i.length; t++) {
944
- let n = i.item(t);
938
+ let r = t.childNodes;
939
+ for (let t = 0; t < r.length; t++) {
940
+ let i = r.item(t);
941
+ if (i.nodeType !== 1 || i.localName !== "ext" || n(i.getAttribute("uri")) !== n("{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}")) continue;
942
+ let a = i.childNodes;
943
+ for (let t = 0; t < a.length; t++) {
944
+ let n = a.item(t);
945
945
  if (n.nodeType !== 1 || n.localName !== "filterColumn") continue;
946
946
  let r = n.childNodes;
947
947
  for (let t = 0; t < r.length; t++) {
@@ -964,12 +964,12 @@ var $ = {
964
964
  if (!t) return null;
965
965
  if (!t.hasAttribute("colId")) return;
966
966
  let r = parseInt(t.getAttribute("colId")), i = !1;
967
- if (t.hasAttribute("hiddenButton") && (i = c(t.getAttribute("hiddenButton"))), i && n) {
967
+ if (t.hasAttribute("hiddenButton") && (i = _(t.getAttribute("hiddenButton"))), i && n) {
968
968
  let e = n.hiddenButtons;
969
969
  e || (e = [], n.hiddenButtons = e), e.push(r);
970
970
  }
971
971
  let a = !1;
972
- if (t.hasAttribute("showButton") && (a = c(t.getAttribute("showButton"))), a && n) {
972
+ if (t.hasAttribute("showButton") && (a = _(t.getAttribute("showButton"))), a && n) {
973
973
  let e = n.showButtons;
974
974
  !0 !== e && (e || (e = [], n.showButtons = e), e[r] = !0);
975
975
  }
@@ -990,46 +990,46 @@ var $ = {
990
990
  }
991
991
  },
992
992
  SortStateVisitor: class {
993
- visit(e, t, r) {
993
+ visit(e, t, n) {
994
994
  if (!t) return;
995
- let i = t.getAttribute("ref"), a = {};
996
- t.hasAttribute("caseSensitive") && (a.collatorOptions = c(t.getAttribute("caseSensitive")) ? L.CaseSensitiveOptions : L.CaseInsensitiveOptions);
997
- let o = t.getAttribute("sortMethod");
998
- o != null && o !== "none" && (o === "stroke" ? a.collatorOptions = {
999
- ...a.collatorOptions,
995
+ let r = t.getAttribute("ref"), i = {};
996
+ t.hasAttribute("caseSensitive") && (i.collatorOptions = _(t.getAttribute("caseSensitive")) ? L.CaseSensitiveOptions : L.CaseInsensitiveOptions);
997
+ let a = t.getAttribute("sortMethod");
998
+ a != null && a !== "none" && (a === "stroke" ? i.collatorOptions = {
999
+ ...i.collatorOptions,
1000
1000
  collation: "stroke"
1001
- } : o === "pinYin" && (a.collatorOptions = {
1002
- ...a.collatorOptions,
1001
+ } : a === "pinYin" && (i.collatorOptions = {
1002
+ ...i.collatorOptions,
1003
1003
  collation: "pinyin"
1004
1004
  }));
1005
- let s = {};
1006
- t.hasAttribute("columnSort") && c(t.getAttribute("columnSort")) && (s.axis = we.Axis.Column);
1007
- let l = O.fastStringToRange(i), u = [], d = [];
1008
- this.processSortConditions(e, t, u, l, a, d), u.length > 0 && (s.sorts = u);
1009
- let f = e.getVisitorParamsState().get("ref");
1010
- if (f && i) {
1011
- let e = O.fastStringToRange(f);
1012
- s.extent = {
1013
- range: n(e, l),
1014
- sorts: d.map((t) => g(e, l, t))
1005
+ let o = {};
1006
+ t.hasAttribute("columnSort") && _(t.getAttribute("columnSort")) && (o.axis = we.Axis.Column);
1007
+ let s = D.fastStringToRange(r), c = [], l = [];
1008
+ this.processSortConditions(e, t, c, s, i, l), c.length > 0 && (o.sorts = c);
1009
+ let u = e.getVisitorParamsState().get("ref");
1010
+ if (u && r) {
1011
+ let e = D.fastStringToRange(u);
1012
+ o.extent = {
1013
+ range: f(e, s),
1014
+ sorts: l.map((t) => oe(e, s, t))
1015
1015
  };
1016
1016
  }
1017
- return Object.keys(u).length > 0 && (r.sort = s), s;
1017
+ return Object.keys(c).length > 0 && (n.sort = o), o;
1018
1018
  }
1019
1019
  processSortCondition(e, t, n, r, i) {
1020
1020
  if (!t) return null;
1021
1021
  let a = {};
1022
1022
  if (!t.hasAttribute("ref")) return void e.warn("A sort condition has no ref; it was dropped.", { onceKey: "xlsx.sheet.sort.noRef" });
1023
1023
  if (t.hasAttribute("ref")) {
1024
- let e = t.getAttribute("ref"), r = O.fastStringToRange(e);
1024
+ let e = t.getAttribute("ref"), r = D.fastStringToRange(e);
1025
1025
  a.index = n ? r.colStart - n.colStart : r.colStart, i?.push(r);
1026
1026
  }
1027
1027
  let o = { ...r };
1028
- a.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse = c(t.getAttribute("descending")));
1029
- let s = y(t.getAttribute("sortBy"));
1028
+ a.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse = _(t.getAttribute("descending")));
1029
+ let s = se(t.getAttribute("sortBy"));
1030
1030
  s && (o.sortOn = s);
1031
- let l = H(e, t);
1032
- return l && (o.style = l), e.copyFromAttribute(t, "iconSet", o), e.copyFromAttribute(t, "customList", o), a;
1031
+ let c = H(e, t);
1032
+ return c && (o.style = c), e.copyFromAttribute(t, "iconSet", o), e.copyFromAttribute(t, "customList", o), a;
1033
1033
  }
1034
1034
  processSortConditions(e, t, n, r, i, a) {
1035
1035
  if (!t) return;
@@ -1050,17 +1050,17 @@ var $ = {
1050
1050
  fills: {},
1051
1051
  fonts: {},
1052
1052
  borders: {}
1053
- }, i = e.evaluate("fonts", t);
1054
- this.processFonts(e, i, r.fonts);
1055
- let a = r.fonts[this.normalFontId(e, t)], o = {
1056
- declared: ["1", "true"].includes(i?.getAttribute("x14ac:knownFonts") ?? ""),
1057
- normalIsThemeFont: ie(a?.family),
1058
- faces: se(Object.values(r.fonts).map((e) => ({
1053
+ }, a = e.evaluate("fonts", t);
1054
+ this.processFonts(e, a, r.fonts);
1055
+ let o = r.fonts[this.normalFontId(e, t)], s = {
1056
+ declared: ["1", "true"].includes(a?.getAttribute("x14ac:knownFonts") ?? ""),
1057
+ normalIsThemeFont: te(o?.family),
1058
+ faces: ce(Object.values(r.fonts).map((e) => ({
1059
1059
  ...e,
1060
- family: fe(e?.family, e?.fallbacks, null, !1).name
1060
+ family: i(e?.family, e?.fallbacks, null, !1).name
1061
1061
  })))
1062
1062
  };
1063
- e.getVisitorParamsState().set(ce, o), a && e.getVisitorParamsState().set(me, a), this.processFills(e, e.evaluate("fills", t), r.fills), this.processBorders(e, e.evaluate("borders", t), r.borders, !0), r.fills[0] = { type: M.Type.None }, r.fills[1] = {
1063
+ e.getVisitorParamsState().set(ue, s), o && e.getVisitorParamsState().set(he, o), this.processFills(e, e.evaluate("fills", t), r.fills), this.processBorders(e, e.evaluate("borders", t), r.borders, !0), r.fills[0] = { type: M.Type.None }, r.fills[1] = {
1064
1064
  type: M.Type.Pattern,
1065
1065
  patternType: M.BuiltInSheetPattern.Gray125
1066
1066
  }, r.borders[0] = {
@@ -1069,23 +1069,23 @@ var $ = {
1069
1069
  right: { style: k.StrokeStyle.None },
1070
1070
  top: { style: k.StrokeStyle.None }
1071
1071
  };
1072
- let s = [];
1073
- this.processXFs(e, e.evaluate("cellStyleXfs", t), s, r, null, !1);
1074
- let c = /* @__PURE__ */ new Map();
1075
- if (s.length > 0) {
1072
+ let c = [];
1073
+ this.processXFs(e, e.evaluate("cellStyleXfs", t), c, r, null, !1);
1074
+ let l = /* @__PURE__ */ new Map();
1075
+ if (c.length > 0) {
1076
1076
  let r = [];
1077
- this.processCellStyles(e, e.evaluate("cellStyles", t), r, s, c), n.named = r;
1078
- }
1079
- let l = [];
1080
- this.processXFs(e, e.evaluate("cellXfs", t), l, r, c), Object.keys(l).length > 0 && (n.direct = l);
1081
- let u = this.collectHiddenXfs(e.evaluate("cellXfs", t));
1082
- u.size > 0 && e.getVisitorParamsState().set(he, u);
1083
- let d = this.collectPivotButtonXfs(e.evaluate("cellXfs", t));
1084
- d.size > 0 && e.getVisitorParamsState().set(_e, d);
1085
- let f = this.collectXfComplements(e.evaluate("cellXfs", t));
1086
- f.size > 0 && e.getVisitorParamsState().set(ge, f);
1087
- let p = [];
1088
- return this.processDXFs(e, e.evaluate("dxfs", t), p), this.processTableStyles(e, e.evaluate("tableStyles", t), n, p), this.processSlicerStyles(e, e.evaluate("extLst", t), n), this.processIndexColors(e, e.evaluate("colors/indexedColors", t), n), this.processMruColors(e, e.evaluate("colors/mruColors", t), n), n;
1077
+ this.processCellStyles(e, e.evaluate("cellStyles", t), r, c, l), n.named = r;
1078
+ }
1079
+ let u = [];
1080
+ this.processXFs(e, e.evaluate("cellXfs", t), u, r, l), Object.keys(u).length > 0 && (n.direct = u);
1081
+ let d = this.collectHiddenXfs(e.evaluate("cellXfs", t));
1082
+ d.size > 0 && e.getVisitorParamsState().set(ge, d);
1083
+ let f = this.collectPivotButtonXfs(e.evaluate("cellXfs", t));
1084
+ f.size > 0 && e.getVisitorParamsState().set(ve, f);
1085
+ let p = this.collectXfComplements(e.evaluate("cellXfs", t));
1086
+ p.size > 0 && e.getVisitorParamsState().set(_e, p);
1087
+ let m = [];
1088
+ return this.processDXFs(e, e.evaluate("dxfs", t), m), this.processTableStyles(e, e.evaluate("tableStyles", t), n, m), this.processSlicerStyles(e, e.evaluate("extLst", t), n), this.processIndexColors(e, e.evaluate("colors/indexedColors", t), n), this.processMruColors(e, e.evaluate("colors/mruColors", t), n), n;
1089
1089
  }
1090
1090
  normalFontId(e, t) {
1091
1091
  let n = e.evaluate("cellStyles", t)?.childNodes, r = 0;
@@ -1161,31 +1161,31 @@ var $ = {
1161
1161
  let e = i.get(parseInt(o));
1162
1162
  e && e !== A.BuiltInName.Normal && (n.named = e);
1163
1163
  }
1164
- let s = (e) => !(!a && t.hasAttribute(e)) || c(t.getAttribute(e)), l = (e) => !a || t.hasAttribute(e) && c(t.getAttribute(e)), u = a ? "0" : void 0;
1164
+ let s = (e) => !(!a && t.hasAttribute(e)) || _(t.getAttribute(e)), c = (e) => !a || t.hasAttribute(e) && _(t.getAttribute(e)), l = a ? "0" : void 0;
1165
1165
  if (s("applyFont")) {
1166
- let e = t.getAttribute("fontId") ?? u;
1167
- if (e !== void 0 && (e !== "0" || l("applyFont"))) {
1166
+ let e = t.getAttribute("fontId") ?? l;
1167
+ if (e !== void 0 && (e !== "0" || c("applyFont"))) {
1168
1168
  let t = r.fonts[e];
1169
1169
  t !== void 0 && (n.font = t);
1170
1170
  }
1171
1171
  }
1172
1172
  if (s("applyFill")) {
1173
- let e = t.getAttribute("fillId") ?? u;
1174
- if (e !== void 0 && (e !== "0" || l("applyFill"))) {
1173
+ let e = t.getAttribute("fillId") ?? l;
1174
+ if (e !== void 0 && (e !== "0" || c("applyFill"))) {
1175
1175
  let t = r.fills[e];
1176
1176
  t !== void 0 && Object.keys(t).length > 0 && (n.fill = t);
1177
1177
  }
1178
1178
  }
1179
1179
  if (s("applyBorder")) {
1180
- let e = t.getAttribute("borderId") ?? u;
1181
- if (e !== void 0 && (e !== "0" || l("applyBorder"))) {
1180
+ let e = t.getAttribute("borderId") ?? l;
1181
+ if (e !== void 0 && (e !== "0" || c("applyBorder"))) {
1182
1182
  let t = r.borders[e];
1183
1183
  t !== void 0 && (n.borders = t);
1184
1184
  }
1185
1185
  }
1186
1186
  if (s("applyNumberFormat")) {
1187
- let r = t.getAttribute("numFmtId") ?? u;
1188
- if (r !== void 0 && (r !== "0" || l("applyNumberFormat"))) {
1187
+ let r = t.getAttribute("numFmtId") ?? l;
1188
+ if (r !== void 0 && (r !== "0" || c("applyNumberFormat"))) {
1189
1189
  let t = parseInt(r), i, a = e.getVisitorParamsState();
1190
1190
  if (a) {
1191
1191
  let e = a.get("numFmts");
@@ -1195,22 +1195,22 @@ var $ = {
1195
1195
  }
1196
1196
  if (s("applyAlignment")) {
1197
1197
  let r = e.evaluate("alignment", t);
1198
- (r || l("applyAlignment")) && this.processAlignment(e, r, n);
1198
+ (r || c("applyAlignment")) && this.processAlignment(e, r, n);
1199
1199
  }
1200
1200
  if (s("applyProtection")) {
1201
1201
  let r = e.evaluate("protection", t);
1202
- (r || l("applyProtection")) && this.processProtection(e, r, n);
1202
+ (r || c("applyProtection")) && this.processProtection(e, r, n);
1203
1203
  }
1204
- let d = c(t.getAttribute("quotePrefix") ?? "");
1205
- d && (n.quotePrefix = d);
1204
+ let u = _(t.getAttribute("quotePrefix") ?? "");
1205
+ u && (n.quotePrefix = u);
1206
1206
  }
1207
1207
  processAlignment(e, t, n) {
1208
1208
  let r = {};
1209
- if (r.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : I.HorizontalAlignment.General, r.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : I.VerticalAlignment.Bottom, r.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, r.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, r.overflow = c(t?.getAttribute("wrapText") ?? "") ? I.Overflow.Wrap : I.Overflow.Visible, c(t?.getAttribute("shrinkToFit") ?? "") && (r.overflow = I.Overflow.Shrink), t?.hasAttribute("textRotation")) {
1209
+ if (r.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : I.HorizontalAlignment.General, r.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : I.VerticalAlignment.Bottom, r.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, r.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, r.overflow = _(t?.getAttribute("wrapText") ?? "") ? I.Overflow.Wrap : I.Overflow.Visible, _(t?.getAttribute("shrinkToFit") ?? "") && (r.overflow = I.Overflow.Shrink), t?.hasAttribute("textRotation")) {
1210
1210
  let e = parseFloat(t.getAttribute("textRotation"));
1211
1211
  e > 0 && e <= 90 ? e = 360 - e : e > 90 && e <= 180 ? e -= 90 : e === 255 && (e = 0, r.stacked = !0), r.rotation = e;
1212
1212
  } else r.rotation = 0;
1213
- t?.hasAttribute("justifyLastLine") && (r.justifyLastLine = c(t.getAttribute("justifyLastLine")));
1213
+ t?.hasAttribute("justifyLastLine") && (r.justifyLastLine = _(t.getAttribute("justifyLastLine")));
1214
1214
  let i = t?.getAttribute("readingOrder");
1215
1215
  return i && (i === "0" ? r.readingDirection = I.ReadingDirection.Auto : i === "1" ? r.readingDirection = I.ReadingDirection.LeftToRight : i === "2" ? r.readingDirection = I.ReadingDirection.RightToLeft : e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`, { onceKey: "xlsx.style.readingOrder" })), Object.keys(r).length > 0 && (n.alignment = r), n;
1216
1216
  }
@@ -1224,7 +1224,7 @@ var $ = {
1224
1224
  let a = i.childNodes;
1225
1225
  for (let e = 0; e < a.length; e++) {
1226
1226
  let n = a.item(e);
1227
- n.nodeType === 1 && n.localName === "protection" && c(n.getAttribute("hidden") ?? "") && t.add(r);
1227
+ n.nodeType === 1 && n.localName === "protection" && _(n.getAttribute("hidden") ?? "") && t.add(r);
1228
1228
  }
1229
1229
  r++;
1230
1230
  }
@@ -1236,7 +1236,7 @@ var $ = {
1236
1236
  let n = e.childNodes, r = 0;
1237
1237
  for (let e = 0; e < n.length; e++) {
1238
1238
  let i = n.item(e);
1239
- i.nodeType === 1 && i.localName === "xf" && (c(i.getAttribute("pivotButton") ?? "") && t.add(r), r++);
1239
+ i.nodeType === 1 && i.localName === "xf" && (_(i.getAttribute("pivotButton") ?? "") && t.add(r), r++);
1240
1240
  }
1241
1241
  return t;
1242
1242
  }
@@ -1262,7 +1262,7 @@ var $ = {
1262
1262
  processProtection(e, t, n) {
1263
1263
  if (!t) return;
1264
1264
  let r = t.getAttribute("locked");
1265
- return n.protection = { alwaysUnlocked: !!r && !c(r) }, n;
1265
+ return n.protection = { alwaysUnlocked: !!r && !_(r) }, n;
1266
1266
  }
1267
1267
  processDXF(e, t, n) {
1268
1268
  if (!t) return;
@@ -1355,9 +1355,9 @@ var $ = {
1355
1355
  }
1356
1356
  processTableStyle(e, t, n, r, i = !1) {
1357
1357
  let a = t.getAttribute("name"), o = { name: a };
1358
- t.hasAttribute("table") && (o.table = c(t.getAttribute("table"))), o.pivot = !t.hasAttribute("pivot") || c(t.getAttribute("pivot")), i && !o.pivot && r.unshift(null);
1359
- let s = t.childNodes, l = s.length;
1360
- for (let t = 0; t < l; t++) {
1358
+ t.hasAttribute("table") && (o.table = _(t.getAttribute("table"))), o.pivot = !t.hasAttribute("pivot") || _(t.getAttribute("pivot")), i && !o.pivot && r.unshift(null);
1359
+ let s = t.childNodes, c = s.length;
1360
+ for (let t = 0; t < c; t++) {
1361
1361
  let n = s.item(t);
1362
1362
  if (n.nodeType === 1 && n.localName === "tableStyleElement") {
1363
1363
  let t = n.getAttribute("type"), i = n.getAttribute("dxfId"), a = i == null ? void 0 : r?.[i];
@@ -1393,11 +1393,11 @@ var $ = {
1393
1393
  e !== void 0 && (s = e);
1394
1394
  }
1395
1395
  if (i.set(e, s), !r[e]) continue;
1396
- let l = {
1396
+ let c = {
1397
1397
  name: s,
1398
1398
  style: r[e]
1399
1399
  };
1400
- t.getAttribute("hidden") && (l.hidden = c(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (l.iLevel = parseInt(t.getAttribute("iLevel"))), o !== null && c(t.getAttribute("customBuiltin") ?? "0") && (l.customized = !0), n.push(l);
1400
+ t.getAttribute("hidden") && (c.hidden = _(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (c.iLevel = parseInt(t.getAttribute("iLevel"))), o !== null && _(t.getAttribute("customBuiltin") ?? "0") && (c.customized = !0), n.push(c);
1401
1401
  }
1402
1402
  }
1403
1403
  }
@@ -1416,7 +1416,7 @@ var $ = {
1416
1416
  if (!t) return;
1417
1417
  let r = {};
1418
1418
  this.processPassword(e, t, r, "workbook", "password"), this.processPassword(e, t, r, "revisions", "revisionsPassword");
1419
- for (let e of le) r[e.key] = re(e, t.getAttribute(e.attribute));
1419
+ for (let e of ie) r[e.key] = fe(e, t.getAttribute(e.attribute));
1420
1420
  return n.protection = r, n;
1421
1421
  }
1422
1422
  processCalcPr(e, t, n) {
@@ -1438,19 +1438,19 @@ var $ = {
1438
1438
  processSheetRef(e, t, n) {
1439
1439
  let r = {};
1440
1440
  e.copyFromAttribute(t, "name", r, "name"), e.copyFromAttribute(t, "state", r, "visibility"), e.copyFromAttribute(t, "sheetId", r, "sheetId", e.INT_COPY);
1441
- let i = t.getAttribute("r:id"), a = i ? h(e.getRelationships().get(i)?.type) : null;
1441
+ let i = t.getAttribute("r:id"), a = i ? u(e.getRelationships().get(i)?.type) : null;
1442
1442
  if (a) {
1443
1443
  let t = e.readEmbeddedPart(i);
1444
1444
  if (t?.xml) {
1445
- let e = { part: t }, i = de(t.xml), s = i ? o((e) => i.get(e)) : void 0;
1446
- s && (e.tabColor = s), r.kind = a, r.sheet = e, n.push(r);
1445
+ let e = { part: t }, i = x(t.xml), o = i ? y((e) => i.get(e)) : void 0;
1446
+ o && (e.tabColor = o), r.kind = a, r.sheet = e, n.push(r);
1447
1447
  return;
1448
1448
  }
1449
1449
  e.warn(`The ${a} sheet '${r.name}' could not be read and was loaded as an empty worksheet.`), n.push(r);
1450
1450
  return;
1451
1451
  }
1452
- let s = i ? e.getRef(i) : null;
1453
- s && (r.sheet = s), n.push(r);
1452
+ let o = i ? e.getRef(i) : null;
1453
+ o && (r.sheet = o), n.push(r);
1454
1454
  }
1455
1455
  processExternalReferences(e, t, n) {
1456
1456
  if (!t) return;
@@ -1466,7 +1466,7 @@ var $ = {
1466
1466
  }
1467
1467
  processPivotCaches(e, t, n) {
1468
1468
  if (!t) return;
1469
- let r = [], i = e.evaluate("workbookPr", t.parentNode)?.getAttribute?.("date1904"), a = i === "1" || i === "true", o = te(e.getVisitorParamsState().get("numFmts"), void 0), s = t.childNodes, c = s.length;
1469
+ let r = [], i = e.evaluate("workbookPr", t.parentNode)?.getAttribute?.("date1904"), a = i === "1" || i === "true", o = le(e.getVisitorParamsState().get("numFmts"), void 0), s = t.childNodes, c = s.length;
1470
1470
  for (let t = 0; t < c; t++) {
1471
1471
  let n = s.item(t);
1472
1472
  if (n.nodeType !== 1 || n.localName !== "pivotCache") continue;
@@ -1474,12 +1474,12 @@ var $ = {
1474
1474
  if (isNaN(i) || !c) continue;
1475
1475
  let l = e.readEmbeddedPart(c);
1476
1476
  if (!l) continue;
1477
- let u = be(l, a, (e) => o.numberFormat(e)), d = !u && l.xml ? f(l.xml, o) : void 0, p = !u && l.xml ? Se(l.xml) : void 0;
1477
+ let u = xe(l, a, (e) => o.numberFormat(e)), d = !u && l.xml ? ae(l.xml, o) : void 0, f = !u && l.xml ? Ce(l.xml) : void 0;
1478
1478
  r.push({
1479
1479
  cacheId: i,
1480
1480
  part: l,
1481
1481
  ...d ? { partFormats: d } : {},
1482
- ...p ? { source: p } : {},
1482
+ ...f ? { source: f } : {},
1483
1483
  ...u
1484
1484
  });
1485
1485
  }
@@ -1523,8 +1523,8 @@ var $ = {
1523
1523
  i.scope = r[n].name;
1524
1524
  }
1525
1525
  let o = {};
1526
- for (let n of ye) e.copyFromAttribute(t, n, o);
1527
- for (let e of ve) {
1526
+ for (let n of be) e.copyFromAttribute(t, n, o);
1527
+ for (let e of ye) {
1528
1528
  let n = t.getAttribute(e);
1529
1529
  n !== "1" && n !== "true" || (o[e] = !0);
1530
1530
  }
@@ -1680,7 +1680,7 @@ var $ = {
1680
1680
  if (t.nodeType !== 1 || t.localName !== "cell") continue;
1681
1681
  let r = t.getAttribute("r");
1682
1682
  if (!r) continue;
1683
- let a = O.fastStringToCell(r);
1683
+ let a = D.fastStringToCell(r);
1684
1684
  if (a?.rowIndex === void 0 || a?.colIndex === void 0) continue;
1685
1685
  let o = this._readCellValue(t);
1686
1686
  o !== void 0 && n.pushAt(a.rowIndex, a.colIndex, o);
@@ -1700,7 +1700,7 @@ var $ = {
1700
1700
  case "str":
1701
1701
  default: return t;
1702
1702
  case "e": {
1703
- let e = Ce.getBuiltInByLabel(t);
1703
+ let e = O.getBuiltInByLabel(t);
1704
1704
  return e ? {
1705
1705
  t: "e",
1706
1706
  v: e.getCode()
@@ -1845,7 +1845,7 @@ var $ = {
1845
1845
  } else n.localName === "extLst" && (o = e.serializeElement(n) ?? void 0);
1846
1846
  }
1847
1847
  }
1848
- let c = ue(r, a, o);
1848
+ let c = de(r, a, o);
1849
1849
  return n.formControl = c, c;
1850
1850
  }
1851
1851
  },
@@ -1874,7 +1874,7 @@ var $ = {
1874
1874
  x: 0,
1875
1875
  y: 0
1876
1876
  };
1877
- return o.x = m(t.getAttribute(i)), o.y = m(t.getAttribute(a)), r === "from" ? n.tl = o : n.br = o, n;
1877
+ return o.x = v(t.getAttribute(i)), o.y = v(t.getAttribute(a)), r === "from" ? n.tl = o : n.br = o, n;
1878
1878
  }
1879
1879
  processOffsetCoord(e, t, n, r) {
1880
1880
  if (!t) return;
@@ -1884,7 +1884,7 @@ var $ = {
1884
1884
  x: 0,
1885
1885
  y: 0
1886
1886
  };
1887
- return e.evaluate("col", t) && (i.c = parseInt(e.evaluate("col", t).textContent)), e.evaluate("row", t) && (i.r = parseInt(e.evaluate("row", t).textContent)), e.evaluate("colOff", t) && (i.x = m(e.evaluate("colOff", t).textContent)), e.evaluate("rowOff", t) && (i.y = m(e.evaluate("rowOff", t).textContent)), r === "from" ? n.tl = i : n.br = i, n;
1887
+ return e.evaluate("col", t) && (i.c = parseInt(e.evaluate("col", t).textContent)), e.evaluate("row", t) && (i.r = parseInt(e.evaluate("row", t).textContent)), e.evaluate("colOff", t) && (i.x = v(e.evaluate("colOff", t).textContent)), e.evaluate("rowOff", t) && (i.y = v(e.evaluate("rowOff", t).textContent)), r === "from" ? n.tl = i : n.br = i, n;
1888
1888
  }
1889
1889
  },
1890
1890
  DrawingGraphicFrameVisitor: class extends V {
@@ -1892,30 +1892,30 @@ var $ = {
1892
1892
  if (!t) return;
1893
1893
  if (this.isGroupContent(n)) {
1894
1894
  if (e.getPath().includes("Fallback")) return {};
1895
- let { movable: r } = this.readMemberHeader(e, t, "graphicFrame"), a = e.evaluate("xfrm", t);
1896
- if (a) {
1897
- i(a, r);
1898
- let t = e.evaluate("off", a), n = e.evaluate("ext", a);
1895
+ let { movable: r } = this.readMemberHeader(e, t, "graphicFrame"), i = e.evaluate("xfrm", t);
1896
+ if (i) {
1897
+ s(i, r);
1898
+ let t = e.evaluate("off", i), n = e.evaluate("ext", i);
1899
1899
  r.anchor = {
1900
1900
  tl: {
1901
- x: m(t?.getAttribute("x") ?? null) ?? 0,
1902
- y: m(t?.getAttribute("y") ?? null) ?? 0
1901
+ x: v(t?.getAttribute("x") ?? null) ?? 0,
1902
+ y: v(t?.getAttribute("y") ?? null) ?? 0
1903
1903
  },
1904
1904
  br: {
1905
- x: m(n?.getAttribute("cx") ?? null) ?? 0,
1906
- y: m(n?.getAttribute("cy") ?? null) ?? 0
1905
+ x: v(n?.getAttribute("cx") ?? null) ?? 0,
1906
+ y: v(n?.getAttribute("cy") ?? null) ?? 0
1907
1907
  }
1908
1908
  };
1909
1909
  }
1910
- let o = this.readGraphic(e, t), s = o.type === "chart" ? {
1910
+ let a = this.readGraphic(e, t), o = a.type === "chart" ? {
1911
1911
  ...r.content.json,
1912
- ...o.json
1913
- } : o.json;
1912
+ ...a.json
1913
+ } : a.json;
1914
1914
  return r.content = {
1915
1915
  ...r.content,
1916
- type: o.type,
1917
- json: s
1918
- }, n.members.push(r), o.json;
1916
+ type: a.type,
1917
+ json: o
1918
+ }, n.members.push(r), a.json;
1919
1919
  }
1920
1920
  n = super.visit(e, t, n);
1921
1921
  let r = e.evaluate("nvGraphicFramePr/cNvGraphicFramePr", t);
@@ -1923,8 +1923,8 @@ var $ = {
1923
1923
  let t = e.evaluate("graphicFrameLocks", r);
1924
1924
  t && t.hasAttribute("noChangeAspect") && (n.lockAspect = t.getAttribute("noChangeAspect") === "1");
1925
1925
  }
1926
- let a = this.readGraphic(e, t);
1927
- return this.setContent(n, a), a;
1926
+ let i = this.readGraphic(e, t);
1927
+ return this.setContent(n, i), i;
1928
1928
  }
1929
1929
  readGraphic(e, t) {
1930
1930
  let n = e.evaluate("graphic/graphicData", t), r = {
@@ -1942,7 +1942,7 @@ var $ = {
1942
1942
  if (n === "chart" && i) {
1943
1943
  let n = this.readSourceId(e, t), a = e.readEmbeddedPart(i) ?? void 0, o;
1944
1944
  try {
1945
- let t = a?.xml ? xe(a.xml) : null;
1945
+ let t = a?.xml ? Se(a.xml) : null;
1946
1946
  o = t?.model, t?.lossy && e.warn("A chart states something its model does not; it is saved as it was until it is changed.", { onceKey: "xlsx.chart.lossy" });
1947
1947
  } catch (t) {
1948
1948
  e.warn(`A chart could not be read into the chart model; it is kept as its markup: ${t?.message ?? t}`, { onceKey: "xlsx.chart.model" });
@@ -1983,7 +1983,7 @@ var $ = {
1983
1983
  readPictureDetails(e, t, n, r, i) {
1984
1984
  n?.resId !== void 0 && (i.resId = n.resId), n?.image && (i.image = n.image);
1985
1985
  let a = t.getAttribute("macro");
1986
- a && (i.macro = a), t.hasAttribute("fPublished") && (i.published = c(t.getAttribute("fPublished")));
1986
+ a && (i.macro = a), t.hasAttribute("fPublished") && (i.published = _(t.getAttribute("fPublished")));
1987
1987
  let o = e.evaluate("nvPicPr/cNvPicPr", t);
1988
1988
  if (o?.getAttribute) {
1989
1989
  o.getAttribute("preferRelativeResize") === "0" && (i.noRelativeResize = !0);
@@ -1995,7 +1995,7 @@ var $ = {
1995
1995
  let n = e.evaluate("blipFill", t), r = n ? e.evaluate("blip", n) : null;
1996
1996
  if (!r) return;
1997
1997
  if (!(r.getAttribute("r:embed") ?? r.getAttribute("embed") ?? r.getAttribute("r:link") ?? r.getAttribute("link"))) return e.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" }), null;
1998
- let { type: i, resId: a, ...o } = new d().processImageFill(e, n);
1998
+ let { type: i, resId: a, ...o } = new p().processImageFill(e, n);
1999
1999
  return !o.tile && o.stretch && Object.keys(o.stretch).length === 0 && delete o.stretch, o.extLst && Le.test(o.extLst) && delete o.extLst, {
2000
2000
  resId: a,
2001
2001
  image: Object.keys(o).length > 0 ? o : void 0
@@ -2004,36 +2004,36 @@ var $ = {
2004
2004
  },
2005
2005
  DrawingGrpSpVisitor: class extends V {
2006
2006
  constructor(...e) {
2007
- super(...e), this._fills = new d();
2007
+ super(...e), this._fills = new p();
2008
2008
  }
2009
2009
  visit(e, t, n) {
2010
2010
  if (!t) return;
2011
- let r = this.isGroupContent(n), a, o;
2011
+ let r = this.isGroupContent(n), i, a;
2012
2012
  if (r) {
2013
2013
  if (e.getPath().includes("Fallback")) return {};
2014
2014
  let r = this.readMemberHeader(e, t, "group");
2015
- a = r.movable, o = r.content, n.members.push(a);
2015
+ i = r.movable, a = r.content, n.members.push(i);
2016
2016
  } else {
2017
2017
  if (e.getPath().includes("Fallback") && n.content) return {};
2018
- a = super.visit(e, t, n), o = {};
2018
+ i = super.visit(e, t, n), a = {};
2019
2019
  let r = this.readSourceId(e, t);
2020
- r !== void 0 && (o.sourceId = r), this.setContent(a, {
2020
+ r !== void 0 && (a.sourceId = r), this.setContent(i, {
2021
2021
  type: "group",
2022
- json: o
2022
+ json: a
2023
2023
  });
2024
2024
  }
2025
- o.members = [];
2026
- let s = e.evaluate("nvGrpSpPr/cNvGrpSpPr/grpSpLocks", t);
2027
- s?.hasAttribute?.("noChangeAspect") && (a.lockAspect = s.getAttribute("noChangeAspect") === "1");
2028
- let c = this.readLocks(s);
2029
- c && (o.locks = c);
2025
+ a.members = [];
2026
+ let o = e.evaluate("nvGrpSpPr/cNvGrpSpPr/grpSpLocks", t);
2027
+ o?.hasAttribute?.("noChangeAspect") && (i.lockAspect = o.getAttribute("noChangeAspect") === "1");
2028
+ let c = this.readLocks(o);
2029
+ c && (a.locks = c);
2030
2030
  let l = e.evaluate("grpSpPr", t);
2031
2031
  if (l) {
2032
2032
  let t = e.evaluate("xfrm", l);
2033
2033
  if (t) {
2034
- i(t, a), t.getAttribute("flipH") === "1" && (a.flipH = !0), t.getAttribute("flipV") === "1" && (a.flipV = !0);
2035
- let n = X(e, t, "off", "ext"), s = X(e, t, "chOff", "chExt") ?? n;
2036
- s && (o.childBounds = s), r && n && (a.anchor = {
2034
+ s(t, i), t.getAttribute("flipH") === "1" && (i.flipH = !0), t.getAttribute("flipV") === "1" && (i.flipV = !0);
2035
+ let n = X(e, t, "off", "ext"), o = X(e, t, "chOff", "chExt") ?? n;
2036
+ o && (a.childBounds = o), r && n && (i.anchor = {
2037
2037
  tl: {
2038
2038
  x: n.x,
2039
2039
  y: n.y
@@ -2045,18 +2045,18 @@ var $ = {
2045
2045
  });
2046
2046
  }
2047
2047
  let n = this._fills.getFill(e, l);
2048
- n && Object.keys(n).length > 0 && (o.fill = n);
2049
- let s = this._fills.getEffects(e, l);
2050
- s && (o.effects = s);
2048
+ n && Object.keys(n).length > 0 && (a.fill = n);
2049
+ let o = this._fills.getEffects(e, l);
2050
+ o && (a.effects = o);
2051
2051
  let c = e.evaluate("scene3d", l), u = c ? e.serializeElement(c) : null;
2052
- u && (o.scene3d = u);
2052
+ u && (a.scene3d = u);
2053
2053
  let d = e.evaluate("extLst", l), f = d ? e.serializeElement(d) : null;
2054
- f && (o.extLst = {
2055
- ...o.extLst,
2054
+ f && (a.extLst = {
2055
+ ...a.extLst,
2056
2056
  properties: f
2057
2057
  });
2058
2058
  }
2059
- return o;
2059
+ return a;
2060
2060
  }
2061
2061
  },
2062
2062
  DrawingCxnSpVisitor: class extends Y {
@@ -2285,16 +2285,16 @@ var $ = {
2285
2285
  visit(e, t, n) {
2286
2286
  if (!t) return;
2287
2287
  let r = {};
2288
- e.copyFromAttribute(t, "id", r, "id", _);
2288
+ e.copyFromAttribute(t, "id", r, "id", C);
2289
2289
  let i = t.getAttribute("ref");
2290
- e.copyFromAttribute(t, "personId", r, "personId", _), e.copyFromAttribute(t, "parentId", r, "parentId", _);
2290
+ e.copyFromAttribute(t, "personId", r, "personId", C), e.copyFromAttribute(t, "parentId", r, "parentId", C);
2291
2291
  let a = t.getAttribute("dT");
2292
2292
  a && (r.dt = function(e) {
2293
2293
  let t = /^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());
2294
2294
  if (!t) return e;
2295
2295
  let [, n, r, i] = t;
2296
2296
  return `${n}${r ? `.${(r + "00").substring(0, 3)}` : ""}${i ?? "Z"}`;
2297
- }(a)), t.hasAttribute("done") && (r.done = c(t.getAttribute("done")));
2297
+ }(a)), t.hasAttribute("done") && (r.done = _(t.getAttribute("done")));
2298
2298
  let o = function(e) {
2299
2299
  let t, n = e.childNodes;
2300
2300
  for (let e = 0; e < n.length; e++) {
@@ -2307,8 +2307,8 @@ var $ = {
2307
2307
  let r = n.getAttribute("mentionId"), a = n.getAttribute("mentionpersonId");
2308
2308
  if (!r || !a) continue;
2309
2309
  let o = {
2310
- id: _(r),
2311
- personId: _(a)
2310
+ id: C(r),
2311
+ personId: C(a)
2312
2312
  }, s = parseInt(n.getAttribute("startIndex") ?? "", 10);
2313
2313
  isNaN(s) || (o.startIndex = s);
2314
2314
  let c = parseInt(n.getAttribute("length") ?? "", 10);
@@ -2330,7 +2330,7 @@ var $ = {
2330
2330
  let n = i.item(t);
2331
2331
  if (n.nodeType === 1 && n.localName === "person") {
2332
2332
  let t = {};
2333
- e.copyFromAttribute(n, "id", t, "id", _), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", _), e.copyFromAttribute(n, "providerId", t), r.push(t);
2333
+ e.copyFromAttribute(n, "id", t, "id", C), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", C), e.copyFromAttribute(n, "providerId", t), r.push(t);
2334
2334
  }
2335
2335
  }
2336
2336
  return r.length > 0 && (n.persons = r), r;
@@ -2351,7 +2351,7 @@ var $ = {
2351
2351
  let a = this.scopedVisitorsByXmlTagName.get(i);
2352
2352
  a || (a = [], this.scopedVisitorsByXmlTagName.set(i, a), this.scopedVisitorsByXmlTagName.set(e, a)), a.push(new Be(n, t));
2353
2353
  }
2354
- parseDxf(e, t = "", n = D.EmptyObject) {
2354
+ parseDxf(e, t = "", n = E.EmptyObject) {
2355
2355
  this.visitorParamsState ||= /* @__PURE__ */ new Map();
2356
2356
  let r = this.visitorParamsState, i = r.get("processingDXFs");
2357
2357
  r.set("processingDXFs", !0);
@@ -2365,7 +2365,7 @@ var $ = {
2365
2365
  getVisitorParamsState() {
2366
2366
  return this.visitorParamsState;
2367
2367
  }
2368
- transform(e, t, n = D.EmptyObject) {
2368
+ transform(e, t, n = E.EmptyObject) {
2369
2369
  let r = e.documentElement;
2370
2370
  this.visitorParamsState && !n?.paramMap || (this.visitorParamsState = n?.paramMap ?? /* @__PURE__ */ new Map());
2371
2371
  let i = {}, a = this.visitorsByXmlTagName.get(r.nodeName);
@@ -2430,4 +2430,4 @@ var $ = {
2430
2430
  return s;
2431
2431
  }
2432
2432
  };
2433
- export { Ve as DOMTransformer, R as ExecutionContext, a as NumberUtils, r as VisitorUtils };
2433
+ export { Ve as DOMTransformer, R as ExecutionContext, o as NumberUtils, a as VisitorUtils };