@sheetxl/io-xlsx 0.8.0-beta.12 → 0.8.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{DO75RoAQTgMuVzXv.mjs → 20e8E-6B9lZDdDO3.mjs} +2 -2
- package/browser/esm/{DKnOwucZq4z9_-r-.mjs → B4_m1DDdERBw_oc_.mjs} +4 -4
- package/browser/esm/{DsppUz-14Z7ti9i3.mjs → B8HGBRlYw3gtV6cS.mjs} +1 -1
- package/browser/esm/{aUBXbTh2r0u3x4Xo.mjs → BUnVDknxJ3z7Byym.mjs} +2 -2
- package/browser/esm/{D8k22TSWPd_RHEpj.mjs → BZULU4MreyJ0WsDY.mjs} +988 -1008
- package/browser/esm/{9dwUocbOsJuAcmKn.mjs → BduVw3dFdh9sSGv_.mjs} +2234 -2250
- package/browser/esm/CM4k1dv3DNPThvDz.mjs +24 -0
- package/browser/esm/{BIvDjK4Zl8bWRgl8.mjs → CkEGcTzeyh7cqVVb.mjs} +2 -2
- package/browser/esm/{DVLJTjJCGqrJUa8c.mjs → DmW0VCJFl3eX7pBV.mjs} +61 -61
- package/browser/esm/{CcH5ITJFTMVWUJO9.mjs → eFR-PmxEV53J-933.mjs} +1041 -1041
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DeMZN_qj__PKo4Wh.mjs → khCH6SyDFBiHzmSl.mjs} +1 -1
- package/node/esm/{DXusvwW73FUDSyvD.mjs → BqB-dnUZaszNS--K.mjs} +1129 -1129
- package/node/esm/{CDKm5s3JE_d99TJw.mjs → ByC9KtkF09muIv1I.mjs} +81 -81
- package/node/esm/{DCaAOfuW-w_dx_qd.mjs → CHElwgFJ32Hh_gHU.mjs} +2 -2
- package/node/esm/{DSgxL0sBZtWMydVl.mjs → CIpg0EBGoVM58ajd.mjs} +2 -2
- package/node/esm/{C78E45n6j2E8rruH.mjs → CJt_Kh2EU8DlMcus.mjs} +818 -819
- package/node/esm/{DsyuWxk3bdGhJUQN.mjs → COzTSkHGuyKdKaxO.mjs} +1 -1
- package/node/esm/{BmIIQODk4dBVIXA4.mjs → Cc4XXs0Y2lL-2Et9.mjs} +976 -994
- package/node/esm/{C-e5AO_4TnGywT-m.mjs → DmvVllQAwUtHEJbX.mjs} +1 -1
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +0 -42
- package/types/src/DataTableFormula.d.ts +0 -10
- package/types/src/DataValidationRules.d.ts +0 -5
- package/types/src/ExcelCalcStamp.d.ts +0 -36
- package/types/src/ExcelCompat.d.ts +0 -140
- package/types/src/ExcelFunctionFacts.d.ts +0 -272
- package/types/src/ExcelReservedNames.d.ts +0 -64
- package/types/src/KnownFonts.d.ts +0 -13
- package/types/src/LegacyFormula.d.ts +0 -58
- package/types/src/Plugin.d.ts +3 -3
- package/types/src/SheetKinds.d.ts +0 -15
- package/types/src/SourcePackage.d.ts +0 -44
- package/types/src/Types.d.ts +2 -3
- package/types/src/chart/_chartExStyle.d.ts +0 -9
- package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +0 -10
- package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +0 -9
- package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +3 -1
- package/types/src/richValue/WebImageRichValueHandler.d.ts +0 -5
- package/types/src/utils/VmlNoteStyle.d.ts +0 -19
- package/types/src/vba/VBAProject.d.ts +0 -19
- package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
- package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
- package/types/src/writer/builder/Types.d.ts +0 -30
- package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
- package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +0 -10
- package/types/src/writer/utils/DefaultRows.d.ts +0 -16
- package/types/src/writer/utils/DummyFunction.d.ts +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1583,16 +1583,16 @@ var lt = "191029", ct = "<ext uri=\"{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}\" xml
|
|
|
1583
1583
|
["WEIBULL", {}],
|
|
1584
1584
|
["WEIBULL.DIST", { prefix: ut }],
|
|
1585
1585
|
["YEAR", {}]
|
|
1586
|
-
]), dt = (e) => ft.get(e)?.prefix, Et = (e) => "never" === ft.get(e)?.intersect, ht = (e, t) => !0 === ft.get(e)?.slotNever?.includes(t), Tt = (e, t) => !0 === ft.get(e)?.slotAlways?.includes(t), gt = (e) => !0 === ft.get(e)?.valueReturn, At = (e) => ft.get(e)?.readsPerCell, mt = (e) => "opens" === ft.get(e)?.arrayScope, St = (e, t) => ({
|
|
1586
|
+
]), dt = (e) => ft.get(e)?.prefix, Et = (e) => "never" === ft.get(e)?.intersect, ht = (e, t) => !0 === ft.get(e)?.slotNever?.includes(t), Tt = (e, t) => !0 === ft.get(e)?.slotAlways?.includes(t), gt = (e) => !0 === ft.get(e)?.valueReturn, At = (e) => ft.get(e)?.readsPerCell, mt = (e) => "opens" === ft.get(e)?.arrayScope, St = (e) => !0 === ft.get(e)?.volatile, yt = (e, t) => ({
|
|
1587
1587
|
type: "function",
|
|
1588
1588
|
value: e,
|
|
1589
1589
|
inputs: t ?? null
|
|
1590
|
-
}),
|
|
1591
|
-
function
|
|
1590
|
+
}), It = "_xludf.";
|
|
1591
|
+
function Rt(e) {
|
|
1592
1592
|
return (t, r) => {
|
|
1593
1593
|
const n = t.type, o = t.value;
|
|
1594
1594
|
if ("function" === n) {
|
|
1595
|
-
const e = String(o).toUpperCase(), r = dt(e), n = "LET" === e || "LAMBDA" === e ?
|
|
1595
|
+
const e = String(o).toUpperCase(), r = dt(e), n = "LET" === e || "LAMBDA" === e ? Ct(t, e) : void 0;
|
|
1596
1596
|
if (r || n) return {
|
|
1597
1597
|
...t,
|
|
1598
1598
|
value: r ? r + o : o,
|
|
@@ -1607,10 +1607,10 @@ function It(e) {
|
|
|
1607
1607
|
inputs: t.inputs,
|
|
1608
1608
|
isReference: !0
|
|
1609
1609
|
};
|
|
1610
|
-
return
|
|
1610
|
+
return yt(ut + e, [r]);
|
|
1611
1611
|
}
|
|
1612
1612
|
} else if ("postfix" === n) {
|
|
1613
|
-
if ("#" === o) return
|
|
1613
|
+
if ("#" === o) return yt(ut + "ANCHORARRAY", [t.inputs[0]]);
|
|
1614
1614
|
} else if ("string" === n) {
|
|
1615
1615
|
const e = String(o ?? "");
|
|
1616
1616
|
if (e.length > 255) {
|
|
@@ -1620,15 +1620,15 @@ function It(e) {
|
|
|
1620
1620
|
value: e.substring(r, r + 255),
|
|
1621
1621
|
inputs: null
|
|
1622
1622
|
});
|
|
1623
|
-
return
|
|
1623
|
+
return yt(ut + "_LONGTEXT", t);
|
|
1624
1624
|
}
|
|
1625
1625
|
} else if ("prefix" === n) {
|
|
1626
|
-
if ("@" === o && "tableReference" !== r?.type) return
|
|
1626
|
+
if ("@" === o && "tableReference" !== r?.type) return yt(ut + "SINGLE", [t.inputs[0]]);
|
|
1627
1627
|
} else if ("named" === n) {
|
|
1628
1628
|
const n = o, s = n?.name;
|
|
1629
1629
|
if (s && !n.scope) {
|
|
1630
1630
|
const n = s.toUpperCase();
|
|
1631
|
-
if ("call" === r?.type && r.inputs?.[0] === t && n.startsWith(
|
|
1631
|
+
if ("call" === r?.type && r.inputs?.[0] === t && n.startsWith(Nt) && dt(n.substring(7))) return {
|
|
1632
1632
|
...t,
|
|
1633
1633
|
value: {
|
|
1634
1634
|
name: s.substring(7),
|
|
@@ -1649,36 +1649,36 @@ function It(e) {
|
|
|
1649
1649
|
} else if ("tableReference" === n) return !t.inputs && t.value ? {
|
|
1650
1650
|
...t,
|
|
1651
1651
|
inputs: []
|
|
1652
|
-
} :
|
|
1652
|
+
} : Mt(t);
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
|
-
var
|
|
1655
|
+
var bt = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase() === t, Ot = (e) => {
|
|
1656
1656
|
if ("named" !== e?.type) return;
|
|
1657
1657
|
const t = e.value, r = t?.name;
|
|
1658
|
-
return !r || t.scope ||
|
|
1659
|
-
},
|
|
1658
|
+
return !r || t.scope || bt(r, "_xlpm.") ? void 0 : bt(r, "_xleta.") ? r.substring(7) : r;
|
|
1659
|
+
}, xt = (e, t) => ({
|
|
1660
1660
|
...e,
|
|
1661
1661
|
value: {
|
|
1662
1662
|
name: "_xlpm." + t,
|
|
1663
1663
|
scope: null
|
|
1664
1664
|
}
|
|
1665
|
-
}),
|
|
1666
|
-
const r =
|
|
1667
|
-
if (void 0 !== r) return r.toUpperCase() === t ?
|
|
1665
|
+
}), vt = (e, t) => {
|
|
1666
|
+
const r = Ot(e);
|
|
1667
|
+
if (void 0 !== r) return r.toUpperCase() === t ? xt(e, r) : e;
|
|
1668
1668
|
const n = e.inputs;
|
|
1669
1669
|
if (!n) return e;
|
|
1670
1670
|
let o;
|
|
1671
1671
|
for (let e = 0; e < n.length; e++) {
|
|
1672
1672
|
const r = n[e];
|
|
1673
1673
|
if (!r) continue;
|
|
1674
|
-
const s =
|
|
1674
|
+
const s = vt(r, t);
|
|
1675
1675
|
s !== r && (o || (o = [...n]), o[e] = s);
|
|
1676
1676
|
}
|
|
1677
1677
|
return o ? {
|
|
1678
1678
|
...e,
|
|
1679
1679
|
inputs: o
|
|
1680
1680
|
} : e;
|
|
1681
|
-
},
|
|
1681
|
+
}, Ct = (e, t) => {
|
|
1682
1682
|
const r = e.inputs, n = r?.length ?? 0;
|
|
1683
1683
|
if (!r || n < 2) return;
|
|
1684
1684
|
let o;
|
|
@@ -1688,7 +1688,7 @@ var Rt = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase()
|
|
|
1688
1688
|
if ("LAMBDA" === t) for (let e = 0; e < n - 1; e++) i.push([e, n - 1]);
|
|
1689
1689
|
else for (let e = 0; e + 1 < n; e += 2) i.push([e, e + 2]);
|
|
1690
1690
|
for (const [e, t] of i) {
|
|
1691
|
-
const r = s(e), o =
|
|
1691
|
+
const r = s(e), o = Ot(r);
|
|
1692
1692
|
if (void 0 === o) continue;
|
|
1693
1693
|
a(e, !0 === r.value?.optional ? {
|
|
1694
1694
|
...r,
|
|
@@ -1696,41 +1696,41 @@ var Rt = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase()
|
|
|
1696
1696
|
name: "_xlop." + o,
|
|
1697
1697
|
scope: null
|
|
1698
1698
|
}
|
|
1699
|
-
} :
|
|
1699
|
+
} : xt(r, o));
|
|
1700
1700
|
const i = o.toUpperCase();
|
|
1701
1701
|
for (let e = t; e < n; e++) {
|
|
1702
1702
|
const t = s(e);
|
|
1703
|
-
t && a(e,
|
|
1703
|
+
t && a(e, vt(t, i));
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
return o;
|
|
1707
|
-
},
|
|
1707
|
+
}, Nt = It.toUpperCase(), Lt = [
|
|
1708
1708
|
"_XLFN._XLWS.",
|
|
1709
1709
|
"_XLFN.",
|
|
1710
1710
|
"_XLWS.",
|
|
1711
1711
|
"_XLETA.",
|
|
1712
1712
|
"_XLPM."
|
|
1713
|
-
],
|
|
1713
|
+
], Dt = (e) => {
|
|
1714
1714
|
const t = e.toUpperCase();
|
|
1715
1715
|
let r = 0, n = !0;
|
|
1716
1716
|
for (; n;) {
|
|
1717
1717
|
n = !1;
|
|
1718
|
-
for (const e of
|
|
1718
|
+
for (const e of Lt) if (t.startsWith(e, r)) {
|
|
1719
1719
|
r += e.length, n = !0;
|
|
1720
1720
|
break;
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
return 0 === r ? e : e.substring(r);
|
|
1724
|
-
},
|
|
1724
|
+
}, Pt = /* @__PURE__ */ new Map([
|
|
1725
1725
|
["_TRO_ALL", ".:."],
|
|
1726
1726
|
["_TRO_LEADING", ".:"],
|
|
1727
1727
|
["_TRO_TRAILING", ":."]
|
|
1728
1728
|
]);
|
|
1729
|
-
function
|
|
1729
|
+
function wt() {
|
|
1730
1730
|
return (e) => {
|
|
1731
1731
|
const t = e.type;
|
|
1732
1732
|
if ("function" === t) {
|
|
1733
|
-
const t = String(e.value ?? ""), r =
|
|
1733
|
+
const t = String(e.value ?? ""), r = Dt(t), n = r.toUpperCase(), o = e.inputs;
|
|
1734
1734
|
if ("SINGLE" === n && 1 === o?.length) return {
|
|
1735
1735
|
type: "prefix",
|
|
1736
1736
|
value: "@",
|
|
@@ -1743,7 +1743,7 @@ function Pt() {
|
|
|
1743
1743
|
inputs: [o[0]],
|
|
1744
1744
|
isReference: !0
|
|
1745
1745
|
};
|
|
1746
|
-
const s =
|
|
1746
|
+
const s = Pt.get(n);
|
|
1747
1747
|
if (s && 1 === o?.length && 2 === o[0]?.inputs?.length) {
|
|
1748
1748
|
const e = o[0];
|
|
1749
1749
|
return {
|
|
@@ -1768,12 +1768,12 @@ function Pt() {
|
|
|
1768
1768
|
};
|
|
1769
1769
|
if (dt(n)) return {
|
|
1770
1770
|
...e,
|
|
1771
|
-
value:
|
|
1771
|
+
value: It + t
|
|
1772
1772
|
};
|
|
1773
1773
|
} else if ("named" === t) {
|
|
1774
1774
|
const t = e.value, r = t?.name ?? "";
|
|
1775
|
-
if (
|
|
1776
|
-
const n =
|
|
1775
|
+
if (bt(r, "_xlop.")) {
|
|
1776
|
+
const n = Dt(r.substring(6));
|
|
1777
1777
|
return {
|
|
1778
1778
|
...e,
|
|
1779
1779
|
value: {
|
|
@@ -1783,7 +1783,7 @@ function Pt() {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
|
-
const n =
|
|
1786
|
+
const n = Dt(r);
|
|
1787
1787
|
if (n !== r) return {
|
|
1788
1788
|
...e,
|
|
1789
1789
|
value: {
|
|
@@ -1794,7 +1794,7 @@ function Pt() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1797
|
+
var Mt = (e) => {
|
|
1798
1798
|
const t = e.inputs;
|
|
1799
1799
|
if (!t) return;
|
|
1800
1800
|
let r = !1;
|
|
@@ -1818,22 +1818,21 @@ var wt = (e) => {
|
|
|
1818
1818
|
...e,
|
|
1819
1819
|
inputs: n
|
|
1820
1820
|
} : void 0;
|
|
1821
|
-
},
|
|
1821
|
+
}, Ft = (e) => {
|
|
1822
1822
|
if (!e) return !1;
|
|
1823
|
-
if ("function" === e.type && (
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
if (
|
|
1827
|
-
for (let e = 0; e < r.length; e++) if (Mt(r[e])) return !0;
|
|
1823
|
+
if ("function" === e.type && St(Gt(e))) return !0;
|
|
1824
|
+
const t = e.inputs;
|
|
1825
|
+
if (!t) return !1;
|
|
1826
|
+
for (let e = 0; e < t.length; e++) if (Ft(t[e])) return !0;
|
|
1828
1827
|
return !1;
|
|
1829
|
-
},
|
|
1828
|
+
}, kt = (e, t) => {
|
|
1830
1829
|
if (!e) return !1;
|
|
1831
|
-
if (
|
|
1830
|
+
if (Qt(e, t)) return !0;
|
|
1832
1831
|
const r = e.inputs;
|
|
1833
1832
|
if (!r) return !1;
|
|
1834
|
-
for (let e = 0; e < r.length; e++) if (
|
|
1833
|
+
for (let e = 0; e < r.length; e++) if (kt(r[e], t)) return !0;
|
|
1835
1834
|
return !1;
|
|
1836
|
-
},
|
|
1835
|
+
}, Bt = /* @__PURE__ */ new Set([
|
|
1837
1836
|
"+",
|
|
1838
1837
|
"-",
|
|
1839
1838
|
"*",
|
|
@@ -1846,13 +1845,13 @@ var wt = (e) => {
|
|
|
1846
1845
|
"<",
|
|
1847
1846
|
">=",
|
|
1848
1847
|
"<="
|
|
1849
|
-
]),
|
|
1848
|
+
]), Ut = /* @__PURE__ */ new Set(["-", "+"]), $t = /* @__PURE__ */ new Set([
|
|
1850
1849
|
":",
|
|
1851
1850
|
" ",
|
|
1852
1851
|
".:.",
|
|
1853
1852
|
".:",
|
|
1854
1853
|
":."
|
|
1855
|
-
]),
|
|
1854
|
+
]), Vt = (e) => {
|
|
1856
1855
|
if (!e) return null;
|
|
1857
1856
|
if ("cell" === e.type) {
|
|
1858
1857
|
const t = e.value;
|
|
@@ -1871,12 +1870,12 @@ var wt = (e) => {
|
|
|
1871
1870
|
} : null;
|
|
1872
1871
|
}
|
|
1873
1872
|
return null;
|
|
1874
|
-
},
|
|
1873
|
+
}, Wt = (e) => {
|
|
1875
1874
|
if (!e || "number" !== e.type) return null;
|
|
1876
1875
|
const t = "number" == typeof e.value ? e.value : Number(e.value);
|
|
1877
1876
|
return Number.isFinite(t) ? t : null;
|
|
1878
|
-
},
|
|
1879
|
-
let t =
|
|
1877
|
+
}, Gt = (e) => String(e.value ?? "").toUpperCase(), Ht = /* @__PURE__ */ new WeakMap(), _t = (e) => {
|
|
1878
|
+
let t = Ht.get(e);
|
|
1880
1879
|
return t || (t = ((e) => {
|
|
1881
1880
|
const t = [], r = [], n = (e) => {
|
|
1882
1881
|
t.push(null !== e.getRangeType() || e.getArrayDepth() > 0), r.push(null !== e.getScalarType());
|
|
@@ -1900,8 +1899,8 @@ var wt = (e) => {
|
|
|
1900
1899
|
valueTyped: r,
|
|
1901
1900
|
period: o
|
|
1902
1901
|
};
|
|
1903
|
-
})(e),
|
|
1904
|
-
},
|
|
1902
|
+
})(e), Ht.set(e, t)), t;
|
|
1903
|
+
}, jt = (e, t) => {
|
|
1905
1904
|
const r = e.accepts.length;
|
|
1906
1905
|
if (t < r) return t;
|
|
1907
1906
|
if (e.period > 0) {
|
|
@@ -1909,56 +1908,56 @@ var wt = (e) => {
|
|
|
1909
1908
|
return n + (t - n) % e.period;
|
|
1910
1909
|
}
|
|
1911
1910
|
return -1;
|
|
1912
|
-
},
|
|
1913
|
-
const n =
|
|
1911
|
+
}, Yt = (e, t, r) => {
|
|
1912
|
+
const n = _t(t), o = jt(n, r);
|
|
1914
1913
|
return o < 0 ? null : !!Tt(e, o) || !Et(e) && !ht(e, o) && !n.accepts[o];
|
|
1915
|
-
},
|
|
1914
|
+
}, Xt = (e, t) => t && "function" === e.type ? !((e) => {
|
|
1916
1915
|
const t = ft.get(e)?.arrayScope;
|
|
1917
1916
|
return "consumer" === t || "lazy" === t;
|
|
1918
|
-
})(
|
|
1919
|
-
const n =
|
|
1917
|
+
})(Gt(e)) : t, Kt = (e, t, r) => {
|
|
1918
|
+
const n = Xt(e, r);
|
|
1920
1919
|
if ("function" !== e.type) return () => n;
|
|
1921
|
-
const o =
|
|
1920
|
+
const o = Gt(e), s = mt(o), a = n && void 0 !== ((e) => ft.get(e))(o)?.scopeClears;
|
|
1922
1921
|
if (!s && !a) return () => n;
|
|
1923
1922
|
const i = t.getFunction(o);
|
|
1924
1923
|
if (!i) return () => n;
|
|
1925
|
-
const l =
|
|
1924
|
+
const l = _t(i);
|
|
1926
1925
|
return (e) => {
|
|
1927
|
-
const t =
|
|
1926
|
+
const t = jt(l, e);
|
|
1928
1927
|
return !(t >= 0 && ((e, t) => !0 === ft.get(e)?.scopeClears?.includes(t))(o, t)) && (n || ((e, t, r) => {
|
|
1929
1928
|
if (!mt(e) || !t.isBuiltIn()) return !1;
|
|
1930
|
-
const n =
|
|
1929
|
+
const n = _t(t), o = jt(n, r);
|
|
1931
1930
|
return !(o < 0) && !Tt(e, o) && n.accepts[o];
|
|
1932
1931
|
})(o, i, e));
|
|
1933
1932
|
};
|
|
1934
|
-
},
|
|
1933
|
+
}, zt = (e, t, r) => {
|
|
1935
1934
|
if (!r) return () => !1;
|
|
1936
1935
|
const n = e.type;
|
|
1937
1936
|
if ("paren" === n) return () => !0;
|
|
1938
|
-
if ("prefix" === n) return () =>
|
|
1939
|
-
if ("infix" === n) return () =>
|
|
1937
|
+
if ("prefix" === n) return () => Ut.has(e.value);
|
|
1938
|
+
if ("infix" === n) return () => Bt.has(e.value);
|
|
1940
1939
|
if ("function" !== n) return () => !1;
|
|
1941
|
-
const o = t.getFunction(
|
|
1940
|
+
const o = t.getFunction(Gt(e));
|
|
1942
1941
|
if (!o) return () => !1;
|
|
1943
|
-
const s =
|
|
1942
|
+
const s = _t(o);
|
|
1944
1943
|
return (e) => {
|
|
1945
|
-
const t =
|
|
1944
|
+
const t = jt(s, e);
|
|
1946
1945
|
return t >= 0 && !s.accepts[t];
|
|
1947
1946
|
};
|
|
1948
|
-
},
|
|
1947
|
+
}, qt = (e, t, r, n) => {
|
|
1949
1948
|
if (!e) return !1;
|
|
1950
1949
|
const o = e.type;
|
|
1951
1950
|
if ("prefix" === o) {
|
|
1952
1951
|
const o = e.value;
|
|
1953
|
-
return "@" !== o && !!
|
|
1952
|
+
return "@" !== o && !!Ut.has(o) && qt(e.inputs?.[0], t, r, n);
|
|
1954
1953
|
}
|
|
1955
|
-
if ("infix" === o &&
|
|
1954
|
+
if ("infix" === o && $t.has(e.value)) return !0;
|
|
1956
1955
|
if ("postfix" === o && "#" === e.value) return !0;
|
|
1957
1956
|
if ("tableReference" === o) return !0;
|
|
1958
1957
|
if ("array" === o) return n;
|
|
1959
|
-
if ("paren" === o) return
|
|
1958
|
+
if ("paren" === o) return qt(e.inputs?.[0], t, r, n);
|
|
1960
1959
|
if ("cell" === o) {
|
|
1961
|
-
const t =
|
|
1960
|
+
const t = Vt(e);
|
|
1962
1961
|
return null !== t && !(1 === t.rows && 1 === t.cols);
|
|
1963
1962
|
}
|
|
1964
1963
|
if ("named" === o) {
|
|
@@ -1969,15 +1968,15 @@ var wt = (e) => {
|
|
|
1969
1968
|
r.add(s);
|
|
1970
1969
|
try {
|
|
1971
1970
|
const e = t.getNamedRoot(o, n.scope);
|
|
1972
|
-
return !!e &&
|
|
1971
|
+
return !!e && qt(e, t, r, !0);
|
|
1973
1972
|
} finally {
|
|
1974
1973
|
r.delete(s);
|
|
1975
1974
|
}
|
|
1976
1975
|
}
|
|
1977
|
-
if ("infix" === o &&
|
|
1978
|
-
if ("call" === o) return
|
|
1976
|
+
if ("infix" === o && Bt.has(e.value)) return qt(e.inputs?.[0], t, r, n) || qt(e.inputs?.[1], t, r, n);
|
|
1977
|
+
if ("call" === o) return Qt(e, t);
|
|
1979
1978
|
if ("function" === o) {
|
|
1980
|
-
const o =
|
|
1979
|
+
const o = Gt(e), s = t.getFunction(o);
|
|
1981
1980
|
if (!s) return t.hasFunctions();
|
|
1982
1981
|
const a = ((e, t, r, n, o) => {
|
|
1983
1982
|
if (!r.isBuiltIn()) return null;
|
|
@@ -1987,23 +1986,23 @@ var wt = (e) => {
|
|
|
1987
1986
|
switch (t) {
|
|
1988
1987
|
case "OFFSET": {
|
|
1989
1988
|
const e = s[3], t = s[4];
|
|
1990
|
-
if (void 0 === e && void 0 === t) return
|
|
1991
|
-
const r = a ?
|
|
1989
|
+
if (void 0 === e && void 0 === t) return qt(a, n, o, !0);
|
|
1990
|
+
const r = a ? Vt(a) : null, i = void 0 === e ? 1 === r?.rows : 1 === Wt(e), l = void 0 === t ? 1 === r?.cols : 1 === Wt(t);
|
|
1992
1991
|
return !(i && l);
|
|
1993
1992
|
}
|
|
1994
1993
|
case "INDEX": {
|
|
1995
|
-
const e = s[1], t = s[2], r = a ?
|
|
1994
|
+
const e = s[1], t = s[2], r = a ? Vt(a) : null;
|
|
1996
1995
|
if (1 === r?.rows && 1 === r?.cols) return !1;
|
|
1997
1996
|
const n = (e, t) => {
|
|
1998
1997
|
if (void 0 === e) return 1 === t;
|
|
1999
|
-
const r =
|
|
1998
|
+
const r = Wt(e);
|
|
2000
1999
|
return null !== r && 0 !== r;
|
|
2001
2000
|
};
|
|
2002
2001
|
return !(n(e, r?.rows) && n(t, r?.cols));
|
|
2003
2002
|
}
|
|
2004
2003
|
case "XLOOKUP": {
|
|
2005
|
-
if (s[3] &&
|
|
2006
|
-
const e = s[1] ?
|
|
2004
|
+
if (s[3] && qt(s[3], n, o, !0)) return !0;
|
|
2005
|
+
const e = s[1] ? Vt(s[1]) : null, t = s[2] ? Vt(s[2]) : null;
|
|
2007
2006
|
return !(e && t && (1 === e.rows && 1 === e.cols ? 1 === t.rows && 1 === t.cols : 1 === e.cols ? 1 === t.cols : 1 === e.rows && 1 === t.rows));
|
|
2008
2007
|
}
|
|
2009
2008
|
default: return null;
|
|
@@ -2011,7 +2010,7 @@ var wt = (e) => {
|
|
|
2011
2010
|
})(e, o, s, t, r);
|
|
2012
2011
|
if (null !== a) return a;
|
|
2013
2012
|
const i = At(o);
|
|
2014
|
-
if (void 0 !== i && s.isBuiltIn()) return
|
|
2013
|
+
if (void 0 !== i && s.isBuiltIn()) return qt(e.inputs?.[i], t, r, !0);
|
|
2015
2014
|
if (s.isBuiltIn() && ((e) => !0 === ft.get(e)?.arrayReturn)(o)) return !0;
|
|
2016
2015
|
const l = s.getDeclaration().getReturnType();
|
|
2017
2016
|
if (null !== l.getRangeType()) return !0;
|
|
@@ -2020,13 +2019,13 @@ var wt = (e) => {
|
|
|
2020
2019
|
const u = e.inputs;
|
|
2021
2020
|
if (!u) return !1;
|
|
2022
2021
|
const p = c || n;
|
|
2023
|
-
for (let e = 0; e < u.length; e++) if (
|
|
2022
|
+
for (let e = 0; e < u.length; e++) if (qt(u[e], t, r, p)) return !0;
|
|
2024
2023
|
return !1;
|
|
2025
2024
|
}
|
|
2026
2025
|
return !1;
|
|
2027
|
-
},
|
|
2026
|
+
}, Qt = (e, t) => {
|
|
2028
2027
|
const r = e.type;
|
|
2029
|
-
if ("function" === r) return t.hasFunctions() && null === t.getFunction(
|
|
2028
|
+
if ("function" === r) return t.hasFunctions() && null === t.getFunction(Gt(e));
|
|
2030
2029
|
if ("call" === r) {
|
|
2031
2030
|
const r = e.inputs?.[0];
|
|
2032
2031
|
if ("named" !== r?.type) return !1;
|
|
@@ -2034,66 +2033,66 @@ var wt = (e) => {
|
|
|
2034
2033
|
return !!n?.name && t.hasFunctions() && null === t.getNamedRoot(n.name, n.scope);
|
|
2035
2034
|
}
|
|
2036
2035
|
return !1;
|
|
2037
|
-
},
|
|
2036
|
+
}, Zt = (e, t, r) => {
|
|
2038
2037
|
if (!e || "function" !== e.type) return !1;
|
|
2039
|
-
const n =
|
|
2040
|
-
return !(!gt(n) && void 0 === At(n)) && !!t.getFunction(n)?.isBuiltIn() &&
|
|
2041
|
-
},
|
|
2038
|
+
const n = Gt(e);
|
|
2039
|
+
return !(!gt(n) && void 0 === At(n)) && !!t.getFunction(n)?.isBuiltIn() && qt(e, t, r, !0);
|
|
2040
|
+
}, Jt = (e, t, r, n = !1, o = !1) => {
|
|
2042
2041
|
const s = e.inputs;
|
|
2043
2042
|
if (!s) return null;
|
|
2044
|
-
if (
|
|
2045
|
-
const a = e.type, i =
|
|
2043
|
+
if (Xt(e, n)) return null;
|
|
2044
|
+
const a = e.type, i = zt(e, t, o);
|
|
2046
2045
|
let l = null;
|
|
2047
|
-
if ("infix" === a &&
|
|
2048
|
-
for (let e = 0; e < 2; e++)
|
|
2046
|
+
if ("infix" === a && Bt.has(e.value)) {
|
|
2047
|
+
for (let e = 0; e < 2; e++) qt(s[e], t, r, i(e)) && (l ??= []).push(e);
|
|
2049
2048
|
return l;
|
|
2050
2049
|
}
|
|
2051
|
-
if ("prefix" === a &&
|
|
2050
|
+
if ("prefix" === a && Ut.has(e.value)) return qt(s[0], t, r, i(0)) && (l = [0]), l;
|
|
2052
2051
|
if ("function" !== a) return null;
|
|
2053
|
-
const c =
|
|
2052
|
+
const c = Gt(e), u = t.getFunction(c);
|
|
2054
2053
|
if (!u) return null;
|
|
2055
|
-
const p =
|
|
2054
|
+
const p = _t(u);
|
|
2056
2055
|
for (let e = 0; e < s.length; e++) {
|
|
2057
|
-
const n =
|
|
2056
|
+
const n = Yt(c, u, e);
|
|
2058
2057
|
if (null === n) break;
|
|
2059
2058
|
if (n) {
|
|
2060
|
-
|
|
2059
|
+
qt(s[e], t, r, i(e)) && (l ??= []).push(e);
|
|
2061
2060
|
continue;
|
|
2062
2061
|
}
|
|
2063
2062
|
if (Et(c)) continue;
|
|
2064
|
-
const o =
|
|
2065
|
-
o < 0 || !p.valueTyped[o] || ht(c, o) ||
|
|
2063
|
+
const o = jt(p, e);
|
|
2064
|
+
o < 0 || !p.valueTyped[o] || ht(c, o) || Zt(s[e], t, r) && (l ??= []).push(e);
|
|
2066
2065
|
}
|
|
2067
2066
|
return l;
|
|
2068
|
-
},
|
|
2067
|
+
}, er = (e) => {
|
|
2069
2068
|
const t = "paren" === e?.type ? e.inputs?.[0] : void 0;
|
|
2070
2069
|
return t ? {
|
|
2071
2070
|
...e,
|
|
2072
|
-
inputs: [
|
|
2071
|
+
inputs: [er(t)]
|
|
2073
2072
|
} : {
|
|
2074
2073
|
type: "prefix",
|
|
2075
2074
|
value: "@",
|
|
2076
2075
|
inputs: [e],
|
|
2077
2076
|
isReference: !0
|
|
2078
2077
|
};
|
|
2079
|
-
},
|
|
2078
|
+
}, tr = (e, t) => {
|
|
2080
2079
|
if (!e) return !1;
|
|
2081
2080
|
const r = /* @__PURE__ */ new Set();
|
|
2082
|
-
if (
|
|
2081
|
+
if (qt(e, t, r, !0)) return !0;
|
|
2083
2082
|
let n = !1;
|
|
2084
2083
|
const o = (e, s, a) => {
|
|
2085
2084
|
if (n || !e) return;
|
|
2086
|
-
if ("call" === e.type && !
|
|
2087
|
-
if (
|
|
2085
|
+
if ("call" === e.type && !Qt(e, t)) return void (n = !0);
|
|
2086
|
+
if (Jt(e, t, r, s, a)) return void (n = !0);
|
|
2088
2087
|
const i = e.inputs;
|
|
2089
2088
|
if (!i) return;
|
|
2090
|
-
const l =
|
|
2089
|
+
const l = Kt(e, t, s), c = zt(e, t, a);
|
|
2091
2090
|
for (let e = 0; e < i.length && !n; e++) i[e] && o(i[e], l(e), c(e));
|
|
2092
2091
|
};
|
|
2093
2092
|
return o(e, !1, !0), n;
|
|
2094
2093
|
};
|
|
2095
|
-
function
|
|
2096
|
-
const t =
|
|
2094
|
+
function rr(e) {
|
|
2095
|
+
const t = wt();
|
|
2097
2096
|
return {
|
|
2098
2097
|
base: (e, r) => {
|
|
2099
2098
|
const n = t(e, r) ?? e;
|
|
@@ -2108,7 +2107,7 @@ function tr(e) {
|
|
|
2108
2107
|
const a = e.inputs;
|
|
2109
2108
|
let i = e;
|
|
2110
2109
|
if (a) {
|
|
2111
|
-
const r =
|
|
2110
|
+
const r = Kt(e, t, o), l = zt(e, t, s);
|
|
2112
2111
|
let c;
|
|
2113
2112
|
for (let e = 0; e < a.length; e++) {
|
|
2114
2113
|
const t = a[e];
|
|
@@ -2121,23 +2120,23 @@ function tr(e) {
|
|
|
2121
2120
|
inputs: c
|
|
2122
2121
|
});
|
|
2123
2122
|
}
|
|
2124
|
-
const l =
|
|
2123
|
+
const l = Jt(i, t, r, o, s);
|
|
2125
2124
|
if (!l) return i;
|
|
2126
2125
|
const c = [...i.inputs];
|
|
2127
|
-
for (const e of l) c[e] =
|
|
2126
|
+
for (const e of l) c[e] = er(c[e]);
|
|
2128
2127
|
return {
|
|
2129
2128
|
...i,
|
|
2130
2129
|
inputs: c
|
|
2131
2130
|
};
|
|
2132
2131
|
}, o = n(e, !1, !0);
|
|
2133
|
-
return
|
|
2132
|
+
return qt(o, t, r, !0) ? er(o) : o;
|
|
2134
2133
|
})(o, e);
|
|
2135
2134
|
return s === r ? void 0 : s;
|
|
2136
2135
|
}
|
|
2137
2136
|
};
|
|
2138
2137
|
}
|
|
2139
|
-
var
|
|
2140
|
-
function
|
|
2138
|
+
var nr = "xlsxFormulaDialect", or = /^\[(\d+)\]/;
|
|
2139
|
+
function sr(e, t, r) {
|
|
2141
2140
|
const n = /* @__PURE__ */ new Set();
|
|
2142
2141
|
if (t) for (let e = 0; e < t.length; e++) n.add(String(t[e]).toUpperCase());
|
|
2143
2142
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -2147,7 +2146,7 @@ function or(e, t, r) {
|
|
|
2147
2146
|
let s = o.get(n);
|
|
2148
2147
|
s || o.set(n, s = []), s.push(r);
|
|
2149
2148
|
}
|
|
2150
|
-
const s =
|
|
2149
|
+
const s = wt(), c = /* @__PURE__ */ new Map(), u = {
|
|
2151
2150
|
getFunction: (e) => l.get(e),
|
|
2152
2151
|
hasFunctions: () => !0,
|
|
2153
2152
|
getNamedRoot: (e, t) => {
|
|
@@ -2160,7 +2159,7 @@ function or(e, t, r) {
|
|
|
2160
2159
|
const f = i.parse(l), d = f ? i.transform(f, s) : null;
|
|
2161
2160
|
return c.set(u, d), d;
|
|
2162
2161
|
}
|
|
2163
|
-
}, p =
|
|
2162
|
+
}, p = rr(u), f = r ? function(e) {
|
|
2164
2163
|
const t = /* @__PURE__ */ new WeakSet(), r = () => {
|
|
2165
2164
|
const e = {
|
|
2166
2165
|
type: "error",
|
|
@@ -2171,7 +2170,7 @@ function or(e, t, r) {
|
|
|
2171
2170
|
return t.add(e), e;
|
|
2172
2171
|
}, n = (t) => {
|
|
2173
2172
|
if ("string" != typeof t) return !1;
|
|
2174
|
-
const r =
|
|
2173
|
+
const r = or.exec(t);
|
|
2175
2174
|
if (!r) return !1;
|
|
2176
2175
|
const n = Number(r[1]);
|
|
2177
2176
|
return !(n <= e.count || (e.onDangling?.(n), 0));
|
|
@@ -2185,19 +2184,19 @@ function or(e, t, r) {
|
|
|
2185
2184
|
case "infix": if (":" === e.value && e.inputs?.some((e) => t.has(e))) return r();
|
|
2186
2185
|
}
|
|
2187
2186
|
};
|
|
2188
|
-
}(r) : null, d = (e) => f ? (t, r) => f(t, r) ?? e(t, r) : e, E =
|
|
2189
|
-
const r =
|
|
2187
|
+
}(r) : null, d = (e) => f ? (t, r) => f(t, r) ?? e(t, r) : e, E = Rt({ has: (e) => o.has(e.toUpperCase()) }), h = d(E), T = d(function(e, t) {
|
|
2188
|
+
const r = wt();
|
|
2190
2189
|
return (n, o) => {
|
|
2191
2190
|
const s = e(n, o) ?? n;
|
|
2192
2191
|
if (void 0 !== o) return s === n ? void 0 : s;
|
|
2193
|
-
const a = /* @__PURE__ */ new Map(), i =
|
|
2194
|
-
if (0 === a.size ||
|
|
2192
|
+
const a = /* @__PURE__ */ new Map(), i = cr(s, void 0, r, a);
|
|
2193
|
+
if (0 === a.size || tr(i, t)) return s === n ? void 0 : s;
|
|
2195
2194
|
const l = /* @__PURE__ */ new Set();
|
|
2196
|
-
for (const e of
|
|
2195
|
+
for (const e of lr(i, t)) {
|
|
2197
2196
|
const t = a.get(e);
|
|
2198
2197
|
t && l.add(t);
|
|
2199
2198
|
}
|
|
2200
|
-
return 0 === l.size ? s === n ? void 0 : s :
|
|
2199
|
+
return 0 === l.size ? s === n ? void 0 : s : ur(s, l);
|
|
2201
2200
|
};
|
|
2202
2201
|
}(E, u)), g = (e, t, r) => {
|
|
2203
2202
|
const n = i.parse(e, { anchor: t });
|
|
@@ -2213,7 +2212,7 @@ function or(e, t, r) {
|
|
|
2213
2212
|
readText: (e, t, r) => g(e, t, r ? p.base : p.legacy),
|
|
2214
2213
|
readDetached: (e) => ((e) => e.includes("(") || /_xl/i.test(e))(e) ? g(e, void 0, p.base) : e,
|
|
2215
2214
|
annotate: (e) => {
|
|
2216
|
-
const t =
|
|
2215
|
+
const t = tr(e, u), r = Ft(e) || kt(e, u);
|
|
2217
2216
|
if (!t && !r) return;
|
|
2218
2217
|
const n = {};
|
|
2219
2218
|
return t && (n.cm = !0), r && (n.ca = !0), n;
|
|
@@ -2240,7 +2239,7 @@ function or(e, t, r) {
|
|
|
2240
2239
|
writeName: (e) => g(e, void 0, h)
|
|
2241
2240
|
};
|
|
2242
2241
|
}
|
|
2243
|
-
function
|
|
2242
|
+
function ar(e, r) {
|
|
2244
2243
|
(function(e, r) {
|
|
2245
2244
|
const n = e.tables;
|
|
2246
2245
|
if (!n) return;
|
|
@@ -2278,7 +2277,7 @@ function sr(e, r) {
|
|
|
2278
2277
|
c !== a && (s[1] = c);
|
|
2279
2278
|
}
|
|
2280
2279
|
}
|
|
2281
|
-
var
|
|
2280
|
+
var ir = (e) => "prefix" === e?.type && "@" === e.value && !!e.inputs?.[0], lr = (e, t) => {
|
|
2282
2281
|
const r = /* @__PURE__ */ new Set();
|
|
2283
2282
|
if (!e) return r;
|
|
2284
2283
|
const n = /* @__PURE__ */ new Set(), o = (e, s, a) => {
|
|
@@ -2287,23 +2286,23 @@ var ar = (e) => "prefix" === e?.type && "@" === e.value && !!e.inputs?.[0], ir =
|
|
|
2287
2286
|
let l;
|
|
2288
2287
|
for (let e = 0; e < i.length; e++) {
|
|
2289
2288
|
const t = i[e];
|
|
2290
|
-
|
|
2289
|
+
ir(t) && "paren" !== t.inputs[0].type && (l || (l = [...i]), l[e] = t.inputs[0]);
|
|
2291
2290
|
}
|
|
2292
2291
|
if (l) {
|
|
2293
|
-
const o =
|
|
2292
|
+
const o = Jt({
|
|
2294
2293
|
...e,
|
|
2295
2294
|
inputs: l
|
|
2296
2295
|
}, t, n, s, a);
|
|
2297
2296
|
if (o) for (const e of o) l[e] !== i[e] && r.add(i[e]);
|
|
2298
2297
|
}
|
|
2299
|
-
const c =
|
|
2298
|
+
const c = Kt(e, t, s), u = zt(e, t, a);
|
|
2300
2299
|
for (let e = 0; e < i.length; e++) {
|
|
2301
2300
|
const t = i[e];
|
|
2302
2301
|
t && o(t, c(e), u(e));
|
|
2303
2302
|
}
|
|
2304
2303
|
};
|
|
2305
|
-
return o(e, !1, !0),
|
|
2306
|
-
},
|
|
2304
|
+
return o(e, !1, !0), ir(e) && "paren" !== e.inputs[0].type && qt(e.inputs[0], t, n, !0) && r.add(e), r;
|
|
2305
|
+
}, cr = (e, t, r, n) => {
|
|
2307
2306
|
const o = e.inputs;
|
|
2308
2307
|
let s = e;
|
|
2309
2308
|
if (o) {
|
|
@@ -2311,7 +2310,7 @@ var ar = (e) => "prefix" === e?.type && "@" === e.value && !!e.inputs?.[0], ir =
|
|
|
2311
2310
|
for (let s = 0; s < o.length; s++) {
|
|
2312
2311
|
const a = o[s];
|
|
2313
2312
|
if (!a) continue;
|
|
2314
|
-
const i =
|
|
2313
|
+
const i = cr(a, e, r, n);
|
|
2315
2314
|
i !== a && (t || (t = [...o]), t[s] = i);
|
|
2316
2315
|
}
|
|
2317
2316
|
t && (s = {
|
|
@@ -2320,16 +2319,16 @@ var ar = (e) => "prefix" === e?.type && "@" === e.value && !!e.inputs?.[0], ir =
|
|
|
2320
2319
|
});
|
|
2321
2320
|
}
|
|
2322
2321
|
const a = r(s, t);
|
|
2323
|
-
return a && a !== s ? (
|
|
2324
|
-
},
|
|
2325
|
-
if (t.has(e)) return
|
|
2322
|
+
return a && a !== s ? (ir(a) && "function" === s.type && n.set(a, e), a) : s;
|
|
2323
|
+
}, ur = (e, t) => {
|
|
2324
|
+
if (t.has(e)) return ur(e.inputs[0], t);
|
|
2326
2325
|
const r = e.inputs;
|
|
2327
2326
|
if (!r) return e;
|
|
2328
2327
|
let n;
|
|
2329
2328
|
for (let e = 0; e < r.length; e++) {
|
|
2330
2329
|
const o = r[e];
|
|
2331
2330
|
if (!o) continue;
|
|
2332
|
-
const s =
|
|
2331
|
+
const s = ur(o, t);
|
|
2333
2332
|
s !== o && (n || (n = [...r]), n[e] = s);
|
|
2334
2333
|
}
|
|
2335
2334
|
return n ? {
|
|
@@ -2337,7 +2336,7 @@ var ar = (e) => "prefix" === e?.type && "@" === e.value && !!e.inputs?.[0], ir =
|
|
|
2337
2336
|
inputs: n
|
|
2338
2337
|
} : e;
|
|
2339
2338
|
};
|
|
2340
|
-
var
|
|
2339
|
+
var pr = 67108864, fr = class {
|
|
2341
2340
|
constructor(e, t) {
|
|
2342
2341
|
this._structurallyChanged = !1, this._parts = e, this._absorbed = t ?? /* @__PURE__ */ new Set();
|
|
2343
2342
|
let r = 0;
|
|
@@ -2365,17 +2364,17 @@ var ur = 67108864, pr = class {
|
|
|
2365
2364
|
markStructuralChange() {
|
|
2366
2365
|
this._structurallyChanged = !0;
|
|
2367
2366
|
}
|
|
2368
|
-
},
|
|
2369
|
-
function
|
|
2370
|
-
return e ?
|
|
2367
|
+
}, dr = /* @__PURE__ */ new WeakMap();
|
|
2368
|
+
function Er(e) {
|
|
2369
|
+
return e ? dr.get(e) ?? null : null;
|
|
2371
2370
|
}
|
|
2372
|
-
function
|
|
2373
|
-
|
|
2371
|
+
function hr(e, t) {
|
|
2372
|
+
dr.set(e, t);
|
|
2374
2373
|
}
|
|
2375
|
-
function
|
|
2376
|
-
e &&
|
|
2374
|
+
function Tr(e) {
|
|
2375
|
+
e && dr.delete(e);
|
|
2377
2376
|
}
|
|
2378
|
-
var
|
|
2377
|
+
var gr = [
|
|
2379
2378
|
p.ErrorCheck.EvaluatesToError,
|
|
2380
2379
|
p.ErrorCheck.TextDate,
|
|
2381
2380
|
p.ErrorCheck.NumberAsText,
|
|
@@ -2385,16 +2384,16 @@ var Tr = [
|
|
|
2385
2384
|
p.ErrorCheck.EmptyCellReference,
|
|
2386
2385
|
p.ErrorCheck.ListDataValidation,
|
|
2387
2386
|
p.ErrorCheck.InconsistentListFormula
|
|
2388
|
-
],
|
|
2389
|
-
EMU_PER_PIXEL: () =>
|
|
2390
|
-
EMU_PER_POINT: () =>
|
|
2391
|
-
fixedPointToDouble: () =>
|
|
2392
|
-
parseAngle: () =>
|
|
2393
|
-
parseAsBoolean: () =>
|
|
2394
|
-
parsePercentage: () =>
|
|
2395
|
-
toPixels: () =>
|
|
2396
|
-
toPoints: () =>
|
|
2397
|
-
}),
|
|
2387
|
+
], Ar = "{05A4C25C-085E-4340-85A3-A5531E510DB2}", mr = P({
|
|
2388
|
+
EMU_PER_PIXEL: () => yr,
|
|
2389
|
+
EMU_PER_POINT: () => Sr,
|
|
2390
|
+
fixedPointToDouble: () => br,
|
|
2391
|
+
parseAngle: () => xr,
|
|
2392
|
+
parseAsBoolean: () => vr,
|
|
2393
|
+
parsePercentage: () => Or,
|
|
2394
|
+
toPixels: () => Rr,
|
|
2395
|
+
toPoints: () => Ir
|
|
2396
|
+
}), Sr = 12700, yr = 9525, Ir = (t) => t ? e.roundAccurately(parseFloat(t) / Sr, 4) : null, Rr = (t) => t ? e.roundAccurately(parseFloat(t) / yr, 1) : null, br = (e) => (e >> 16) + (65535 & e) / 65536, Or = (e) => parseFloat(e) / 1e3, xr = (e) => parseFloat(e) / 6e4, vr = (e) => "true" === e || "1" === e, Cr = /* @__PURE__ */ new Set([
|
|
2398
2397
|
"A1.R1C1",
|
|
2399
2398
|
"ABSREF",
|
|
2400
2399
|
"ACTIVATE",
|
|
@@ -2898,24 +2897,24 @@ var Tr = [
|
|
|
2898
2897
|
"WORKGROUP.OPTIONS",
|
|
2899
2898
|
"WORKSPACE",
|
|
2900
2899
|
"ZOOM"
|
|
2901
|
-
]),
|
|
2900
|
+
]), Nr = "__xludf.DUMMYFUNCTION", Lr = "\"COMPUTED_VALUE\"", Dr = (e) => `"${e.replace(/"/g, "\"\"")}"`, Pr = (e) => {
|
|
2902
2901
|
if (null == e) return "\"\"";
|
|
2903
2902
|
if ("number" == typeof e) return Number.isFinite(e) ? "" + e : null;
|
|
2904
2903
|
if ("boolean" == typeof e) return e ? "TRUE" : "FALSE";
|
|
2905
|
-
if ("string" == typeof e) return
|
|
2904
|
+
if ("string" == typeof e) return Dr(e);
|
|
2906
2905
|
const t = e;
|
|
2907
2906
|
if ("function" == typeof t?.getCode) {
|
|
2908
2907
|
const e = t.getCode();
|
|
2909
2908
|
return e < 1 ? null : e > 7 ? a.BuiltIn.Value.getLabel() : t.getLabel();
|
|
2910
2909
|
}
|
|
2911
2910
|
return null;
|
|
2912
|
-
},
|
|
2913
|
-
const r =
|
|
2914
|
-
return null === r ? null : `IFERROR(${
|
|
2915
|
-
},
|
|
2916
|
-
const t =
|
|
2917
|
-
return null === t ? null : `IFERROR(${
|
|
2918
|
-
},
|
|
2911
|
+
}, wr = (e, t) => {
|
|
2912
|
+
const r = Pr(t);
|
|
2913
|
+
return null === r ? null : `IFERROR(${Nr}(${Dr(e)}),${r})`;
|
|
2914
|
+
}, Mr = (e) => {
|
|
2915
|
+
const t = Pr(e);
|
|
2916
|
+
return null === t ? null : `IFERROR(${Nr}(${Dr(Lr)}),${t})`;
|
|
2917
|
+
}, Fr = async (e, t) => {
|
|
2919
2918
|
const r = /* @__PURE__ */ new Set();
|
|
2920
2919
|
if (0 === t.size) return r;
|
|
2921
2920
|
const n = e.getCalculation();
|
|
@@ -2924,7 +2923,7 @@ var Tr = [
|
|
|
2924
2923
|
for (const e of t) {
|
|
2925
2924
|
const t = o.getByName(e);
|
|
2926
2925
|
if (!t) {
|
|
2927
|
-
|
|
2926
|
+
Cr.has(e.toUpperCase()) && r.add(e.toUpperCase());
|
|
2928
2927
|
continue;
|
|
2929
2928
|
}
|
|
2930
2929
|
if (!t.isBuiltIn()) {
|
|
@@ -2935,23 +2934,23 @@ var Tr = [
|
|
|
2935
2934
|
"Sheets" !== n && "SheetXL" !== n || r.add(e.toUpperCase());
|
|
2936
2935
|
}
|
|
2937
2936
|
return r;
|
|
2938
|
-
},
|
|
2939
|
-
const t = (e, t) => t ?
|
|
2937
|
+
}, kr = "#REF!", Br = (e) => {
|
|
2938
|
+
const t = (e, t) => t ? kr : e ?? "", r = e.ref, n = r.rowEnd - r.rowStart + 1, o = r.colEnd - r.colStart + 1;
|
|
2940
2939
|
return `TABLE(${t(e.rowInput, e.rowInputDeleted)},${t(e.columnInput, e.columnInputDeleted)},${n},${o})`;
|
|
2941
|
-
},
|
|
2940
|
+
}, Ur = /^\s*=?\s*TABLE\s*\(([^()]*)\)\s*$/i, $r = /^\s*\$?([A-Za-z]{1,3})\$?(\d{1,7})\s*$/, Vr = /^\s*(\d+)\s*$/, Wr = (e) => {
|
|
2942
2941
|
const t = e.trim();
|
|
2943
2942
|
if ("" === t) return;
|
|
2944
|
-
if (t.toUpperCase() ===
|
|
2945
|
-
const r =
|
|
2943
|
+
if (t.toUpperCase() === kr) return null;
|
|
2944
|
+
const r = $r.exec(t);
|
|
2946
2945
|
return !!r && `${r[1].toUpperCase()}${r[2]}`;
|
|
2947
|
-
},
|
|
2948
|
-
const r =
|
|
2946
|
+
}, Gr = (e, t) => {
|
|
2947
|
+
const r = Ur.exec(e);
|
|
2949
2948
|
if (!r) return null;
|
|
2950
2949
|
const n = r[1].split(",");
|
|
2951
2950
|
if (4 !== n.length) return null;
|
|
2952
|
-
const o =
|
|
2951
|
+
const o = Wr(n[0]), s = Wr(n[1]);
|
|
2953
2952
|
if (!1 === o || !1 === s || void 0 === o && void 0 === s) return null;
|
|
2954
|
-
const a =
|
|
2953
|
+
const a = Vr.exec(n[2]), i = Vr.exec(n[3]);
|
|
2955
2954
|
if (!a || !i) return null;
|
|
2956
2955
|
const l = parseInt(a[1], 10), c = parseInt(i[1], 10);
|
|
2957
2956
|
if (l < 1 || c < 1) return null;
|
|
@@ -2962,7 +2961,7 @@ var Tr = [
|
|
|
2962
2961
|
colEnd: t.colIndex + c - 1
|
|
2963
2962
|
} };
|
|
2964
2963
|
return null === o ? u.rowInputDeleted = !0 : void 0 !== o && (u.rowInput = o), null === s ? u.columnInputDeleted = !0 : void 0 !== s && (u.columnInput = s), u;
|
|
2965
|
-
},
|
|
2964
|
+
}, Hr = (e) => {
|
|
2966
2965
|
const r = void 0 !== e.rowInput || !0 === e.rowInputDeleted, n = void 0 !== e.columnInput || !0 === e.columnInputDeleted, o = r && n, s = {
|
|
2967
2966
|
t: "dataTable",
|
|
2968
2967
|
ref: t.rangeToString(e.ref),
|
|
@@ -2972,12 +2971,12 @@ var Tr = [
|
|
|
2972
2971
|
(r ? e.rowInputDeleted : e.columnInputDeleted) && (s.del1 = "1"), o && e.columnInputDeleted && (s.del2 = "1");
|
|
2973
2972
|
const a = r ? e.rowInput : e.columnInput;
|
|
2974
2973
|
return void 0 !== a && (s.r1 = a), o && void 0 !== e.columnInput && (s.r2 = e.columnInput), s;
|
|
2975
|
-
},
|
|
2974
|
+
}, _r = (e, t) => ({
|
|
2976
2975
|
top: t.rowStart - e.rowStart,
|
|
2977
2976
|
bottom: t.rowEnd - e.rowEnd,
|
|
2978
2977
|
left: t.colStart - e.colStart,
|
|
2979
2978
|
right: t.colEnd - e.colEnd
|
|
2980
|
-
}),
|
|
2979
|
+
}), jr = (e, t) => {
|
|
2981
2980
|
const r = {
|
|
2982
2981
|
rowStart: e.rowStart + t.top,
|
|
2983
2982
|
rowEnd: e.rowEnd + t.bottom,
|
|
@@ -2985,31 +2984,31 @@ var Tr = [
|
|
|
2985
2984
|
colEnd: e.colEnd + t.right
|
|
2986
2985
|
};
|
|
2987
2986
|
return r.rowStart < 0 || r.colStart < 0 || r.rowEnd < r.rowStart || r.colEnd < r.colStart ? null : r;
|
|
2988
|
-
},
|
|
2987
|
+
}, Yr = (e, t, r) => r.colStart === r.colEnd && r.rowStart === t.rowStart && r.rowEnd === t.rowEnd ? null : _r(e, r), Xr = /* @__PURE__ */ new Set([
|
|
2989
2988
|
"serif",
|
|
2990
2989
|
"sans-serif",
|
|
2991
2990
|
"monospace",
|
|
2992
2991
|
"cursive",
|
|
2993
2992
|
"fantasy"
|
|
2994
|
-
]),
|
|
2993
|
+
]), Kr = /* @__PURE__ */ new Set([
|
|
2995
2994
|
T.UnderlineStyle.Single,
|
|
2996
2995
|
T.UnderlineStyle.Double,
|
|
2997
2996
|
T.UnderlineStyle.SingleAccounting,
|
|
2998
2997
|
T.UnderlineStyle.DoubleAccounting
|
|
2999
2998
|
]);
|
|
3000
|
-
function
|
|
2999
|
+
function zr(e) {
|
|
3001
3000
|
return e === A.ThemeFamily.Body || e === A.ThemeFamily.Heading;
|
|
3002
3001
|
}
|
|
3003
|
-
function
|
|
3002
|
+
function qr(e, t) {
|
|
3004
3003
|
const r = "major" === t ? A.ThemeFamily.Heading : "minor" === t ? A.ThemeFamily.Body : void 0;
|
|
3005
3004
|
if (!r) return;
|
|
3006
3005
|
const n = e.family;
|
|
3007
|
-
e.family = r, n && !
|
|
3006
|
+
e.family = r, n && !Xr.has(n) && (e.fallbacks = [n, ...(e.fallbacks ?? []).filter((e) => e !== n)]);
|
|
3008
3007
|
}
|
|
3009
|
-
function
|
|
3008
|
+
function Qr(e, t, r, n) {
|
|
3010
3009
|
const o = e ?? (n ? A.ThemeFamily.Body : void 0);
|
|
3011
|
-
if (!
|
|
3012
|
-
const s = void 0 === t?.[0] ||
|
|
3010
|
+
if (!zr(o)) return { name: o };
|
|
3011
|
+
const s = void 0 === t?.[0] || Xr.has(t[0]) ? void 0 : t[0], a = r?.getFontScheme();
|
|
3013
3012
|
return o === A.ThemeFamily.Heading ? {
|
|
3014
3013
|
name: s ?? a?.getMajorFont(),
|
|
3015
3014
|
scheme: "major"
|
|
@@ -3018,31 +3017,31 @@ function qr(e, t, r, n) {
|
|
|
3018
3017
|
scheme: "minor"
|
|
3019
3018
|
};
|
|
3020
3019
|
}
|
|
3021
|
-
function
|
|
3020
|
+
function Zr(e) {
|
|
3022
3021
|
return "superscript" === e ? A.Baseline.Superscript : "subscript" === e ? A.Baseline.Subscript : "baseline" === e ? 0 : void 0;
|
|
3023
3022
|
}
|
|
3024
|
-
function
|
|
3023
|
+
function Jr(e, t) {
|
|
3025
3024
|
if (null != e) return e > 0 ? "superscript" : e < 0 ? "subscript" : t ? "baseline" : void 0;
|
|
3026
3025
|
}
|
|
3027
|
-
function
|
|
3026
|
+
function en(e) {
|
|
3028
3027
|
return e ? T.StrikeStyle.Single : T.StrikeStyle.None;
|
|
3029
3028
|
}
|
|
3030
|
-
function
|
|
3029
|
+
function tn(e) {
|
|
3031
3030
|
if (null != e) return e !== T.StrikeStyle.None;
|
|
3032
3031
|
}
|
|
3033
|
-
function
|
|
3032
|
+
function rn(e, t) {
|
|
3034
3033
|
if (t) return "condense" === e ? -1 : 1;
|
|
3035
3034
|
}
|
|
3036
|
-
function rn(e) {
|
|
3037
|
-
if (e) return e < 0 ? "condense" : "extend";
|
|
3038
|
-
}
|
|
3039
3035
|
function nn(e) {
|
|
3040
|
-
|
|
3036
|
+
if (e) return e < 0 ? "condense" : "extend";
|
|
3041
3037
|
}
|
|
3042
3038
|
function on(e) {
|
|
3043
|
-
|
|
3039
|
+
return e && (e === T.UnderlineStyle.None || Kr.has(e)) ? e : T.UnderlineStyle.Single;
|
|
3040
|
+
}
|
|
3041
|
+
function sn(e) {
|
|
3042
|
+
if (e && e !== T.UnderlineStyle.None) return Kr.has(e) ? e : T.UnderlineStyle.Single;
|
|
3044
3043
|
}
|
|
3045
|
-
var
|
|
3044
|
+
var an = [
|
|
3046
3045
|
{
|
|
3047
3046
|
key: "sheet",
|
|
3048
3047
|
attribute: "sheet",
|
|
@@ -3139,7 +3138,7 @@ var sn = [
|
|
|
3139
3138
|
modelDefault: !0,
|
|
3140
3139
|
ooxmlDefault: !1
|
|
3141
3140
|
}
|
|
3142
|
-
],
|
|
3141
|
+
], ln = [
|
|
3143
3142
|
{
|
|
3144
3143
|
key: "structure",
|
|
3145
3144
|
attribute: "lockStructure",
|
|
@@ -3158,48 +3157,48 @@ var sn = [
|
|
|
3158
3157
|
modelDefault: !0,
|
|
3159
3158
|
ooxmlDefault: !1
|
|
3160
3159
|
}
|
|
3161
|
-
],
|
|
3160
|
+
], cn = (e, t) => {
|
|
3162
3161
|
let r = e.ooxmlDefault;
|
|
3163
3162
|
return "1" === t || "true" === t || "on" === t ? r = !0 : "0" !== t && "false" !== t && "off" !== t || (r = !1), !r;
|
|
3164
|
-
},
|
|
3163
|
+
}, un = (e, t) => {
|
|
3165
3164
|
const r = !(t ?? e.modelDefault);
|
|
3166
3165
|
return r === e.ooxmlDefault ? null : r ? "1" : "0";
|
|
3167
|
-
},
|
|
3166
|
+
}, pn = [
|
|
3168
3167
|
[O.ViewMode.Normal, "zoomScaleNormal"],
|
|
3169
3168
|
[O.ViewMode.PageBreakPreview, "zoomScaleSheetLayoutView"],
|
|
3170
3169
|
[O.ViewMode.PageLayout, "zoomScalePageLayoutView"]
|
|
3171
|
-
],
|
|
3170
|
+
], fn = [["atEnd", m.PrintComments.EndSheet], ["asDisplayed", m.PrintComments.InPlace]], dn = [
|
|
3172
3171
|
["blank", m.PrintErrorType.Blank],
|
|
3173
3172
|
["dash", m.PrintErrorType.Dash],
|
|
3174
3173
|
["NA", m.PrintErrorType.NotAvailable]
|
|
3175
|
-
],
|
|
3174
|
+
], En = [
|
|
3176
3175
|
"oddHeader",
|
|
3177
3176
|
"oddFooter",
|
|
3178
3177
|
"evenHeader",
|
|
3179
3178
|
"evenFooter",
|
|
3180
3179
|
"firstHeader",
|
|
3181
3180
|
"firstFooter"
|
|
3182
|
-
],
|
|
3183
|
-
function
|
|
3184
|
-
if (!e || "string" != typeof e) return
|
|
3181
|
+
], hn = "16.0000", Tn = 1048575, gn = 16383;
|
|
3182
|
+
function An(e) {
|
|
3183
|
+
if (!e || "string" != typeof e) return hn;
|
|
3185
3184
|
if ("local" === e || "dev" === e || "development" === e) return "00.0000";
|
|
3186
3185
|
const t = e.match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);
|
|
3187
|
-
if (!t) return
|
|
3186
|
+
if (!t) return hn;
|
|
3188
3187
|
const r = parseInt(t[1], 10), n = parseInt(t[2] || "0", 10);
|
|
3189
|
-
return r > 99 || n > 9999 ?
|
|
3188
|
+
return r > 99 || n > 9999 ? hn : `${r.toString()}.${n.toString().padStart(4, "0")}`;
|
|
3190
3189
|
}
|
|
3191
|
-
function
|
|
3190
|
+
function mn(e) {
|
|
3192
3191
|
if (void 0 === e) return;
|
|
3193
3192
|
if (0 === e.trim().length) return e;
|
|
3194
3193
|
const t = L(e);
|
|
3195
3194
|
return void 0 !== t ? t : "=" + e;
|
|
3196
3195
|
}
|
|
3197
|
-
function
|
|
3196
|
+
function Sn(e) {
|
|
3198
3197
|
if (null == e) return;
|
|
3199
3198
|
if ("number" == typeof e) return String(e);
|
|
3200
3199
|
if ("boolean" == typeof e) return e ? "TRUE" : "FALSE";
|
|
3201
3200
|
if (a.isError(e)) return e.getLabel();
|
|
3202
|
-
if ("string" == typeof e) return e.startsWith("=") ? e.slice(1) :
|
|
3201
|
+
if ("string" == typeof e) return e.startsWith("=") ? e.slice(1) : yn(e);
|
|
3203
3202
|
const t = e;
|
|
3204
3203
|
if ("e" === t.t && "number" == typeof t.v) {
|
|
3205
3204
|
const e = a.getBuiltInByCode(t.v);
|
|
@@ -3207,50 +3206,50 @@ function mn(e) {
|
|
|
3207
3206
|
}
|
|
3208
3207
|
return String(e);
|
|
3209
3208
|
}
|
|
3210
|
-
function
|
|
3209
|
+
function yn(e) {
|
|
3211
3210
|
return `"${e.split("\"").join("\"\"")}"`;
|
|
3212
3211
|
}
|
|
3213
|
-
var
|
|
3214
|
-
equal: { operator:
|
|
3212
|
+
var In = "aboveAverage", Rn = "beginsWith", bn = "cellIs", On = "colorScale", xn = "containsBlanks", vn = "containsErrors", Cn = "containsText", Nn = "dataBar", Ln = "duplicateValues", Dn = "endsWith", Pn = "expression", wn = "iconSet", Mn = "notContainsBlanks", Fn = "notContainsErrors", kn = "notContainsText", Bn = "timePeriod", Un = "top10", $n = "uniqueValues", Vn = d.BuiltInOperatorNames, Wn = {
|
|
3213
|
+
equal: { operator: Vn.EqualTo },
|
|
3215
3214
|
notEqual: {
|
|
3216
|
-
operator:
|
|
3215
|
+
operator: Vn.EqualTo,
|
|
3217
3216
|
negate: !0
|
|
3218
3217
|
},
|
|
3219
|
-
greaterThan: { operator:
|
|
3220
|
-
greaterThanOrEqual: { operator:
|
|
3221
|
-
lessThan: { operator:
|
|
3222
|
-
lessThanOrEqual: { operator:
|
|
3223
|
-
between: { operator:
|
|
3218
|
+
greaterThan: { operator: Vn.GreaterThan },
|
|
3219
|
+
greaterThanOrEqual: { operator: Vn.GreaterThanEqualTo },
|
|
3220
|
+
lessThan: { operator: Vn.LessThan },
|
|
3221
|
+
lessThanOrEqual: { operator: Vn.LessThanEqualTo },
|
|
3222
|
+
between: { operator: Vn.Between },
|
|
3224
3223
|
notBetween: {
|
|
3225
|
-
operator:
|
|
3224
|
+
operator: Vn.Between,
|
|
3226
3225
|
negate: !0
|
|
3227
3226
|
}
|
|
3228
|
-
},
|
|
3229
|
-
[
|
|
3227
|
+
}, Gn = {
|
|
3228
|
+
[Vn.EqualTo]: {
|
|
3230
3229
|
plain: "equal",
|
|
3231
3230
|
negated: "notEqual"
|
|
3232
3231
|
},
|
|
3233
|
-
[
|
|
3232
|
+
[Vn.GreaterThan]: {
|
|
3234
3233
|
plain: "greaterThan",
|
|
3235
3234
|
negated: ""
|
|
3236
3235
|
},
|
|
3237
|
-
[
|
|
3236
|
+
[Vn.GreaterThanEqualTo]: {
|
|
3238
3237
|
plain: "greaterThanOrEqual",
|
|
3239
3238
|
negated: ""
|
|
3240
3239
|
},
|
|
3241
|
-
[
|
|
3240
|
+
[Vn.LessThan]: {
|
|
3242
3241
|
plain: "lessThan",
|
|
3243
3242
|
negated: ""
|
|
3244
3243
|
},
|
|
3245
|
-
[
|
|
3244
|
+
[Vn.LessThanEqualTo]: {
|
|
3246
3245
|
plain: "lessThanOrEqual",
|
|
3247
3246
|
negated: ""
|
|
3248
3247
|
},
|
|
3249
|
-
[
|
|
3248
|
+
[Vn.Between]: {
|
|
3250
3249
|
plain: "between",
|
|
3251
3250
|
negated: "notBetween"
|
|
3252
3251
|
}
|
|
3253
|
-
},
|
|
3252
|
+
}, Hn = /* @__PURE__ */ new Set([
|
|
3254
3253
|
"today",
|
|
3255
3254
|
"yesterday",
|
|
3256
3255
|
"tomorrow",
|
|
@@ -3262,180 +3261,180 @@ var yn = "aboveAverage", In = "beginsWith", Rn = "cellIs", bn = "colorScale", On
|
|
|
3262
3261
|
"lastWeek",
|
|
3263
3262
|
"nextWeek"
|
|
3264
3263
|
]);
|
|
3265
|
-
function Hn(e) {
|
|
3266
|
-
return An(e);
|
|
3267
|
-
}
|
|
3268
3264
|
function _n(e) {
|
|
3269
|
-
return mn(e)
|
|
3265
|
+
return mn(e);
|
|
3266
|
+
}
|
|
3267
|
+
function jn(e) {
|
|
3268
|
+
return Sn(e) ?? "";
|
|
3270
3269
|
}
|
|
3271
|
-
function
|
|
3270
|
+
function Yn(e, t) {
|
|
3272
3271
|
return t ? {
|
|
3273
|
-
operator:
|
|
3272
|
+
operator: Vn.Not,
|
|
3274
3273
|
param: e
|
|
3275
3274
|
} : e;
|
|
3276
3275
|
}
|
|
3277
|
-
function
|
|
3276
|
+
function Xn(e, t) {
|
|
3278
3277
|
const r = e.type;
|
|
3279
3278
|
if (!r) return null;
|
|
3280
3279
|
const n = e.formulas ?? [];
|
|
3281
3280
|
switch (r) {
|
|
3282
|
-
case
|
|
3283
|
-
case
|
|
3284
|
-
case
|
|
3285
|
-
case
|
|
3286
|
-
const r = e.operator ?
|
|
3281
|
+
case On:
|
|
3282
|
+
case Nn:
|
|
3283
|
+
case wn: return null;
|
|
3284
|
+
case bn: {
|
|
3285
|
+
const r = e.operator ? Wn[e.operator] : void 0;
|
|
3287
3286
|
if (!r) return t?.(`Conditional format operator '${e.operator}' is not a known cellIs operator.`), null;
|
|
3288
|
-
const o = r.operator ===
|
|
3289
|
-
from:
|
|
3290
|
-
to:
|
|
3291
|
-
} :
|
|
3292
|
-
return
|
|
3287
|
+
const o = r.operator === Vn.Between ? {
|
|
3288
|
+
from: _n(n[0]),
|
|
3289
|
+
to: _n(n[1])
|
|
3290
|
+
} : _n(n[0]);
|
|
3291
|
+
return Yn({
|
|
3293
3292
|
operator: r.operator,
|
|
3294
3293
|
param: o
|
|
3295
3294
|
}, r.negate);
|
|
3296
3295
|
}
|
|
3297
|
-
case
|
|
3298
|
-
operator:
|
|
3296
|
+
case Pn: return {
|
|
3297
|
+
operator: Vn.Expression,
|
|
3299
3298
|
param: n[0] ?? ""
|
|
3300
3299
|
};
|
|
3301
|
-
case
|
|
3302
|
-
operator:
|
|
3300
|
+
case Cn: return {
|
|
3301
|
+
operator: Vn.TextContains,
|
|
3303
3302
|
param: e.text
|
|
3304
3303
|
};
|
|
3305
|
-
case
|
|
3306
|
-
operator:
|
|
3304
|
+
case kn: return Yn({
|
|
3305
|
+
operator: Vn.TextContains,
|
|
3307
3306
|
param: e.text
|
|
3308
3307
|
}, !0);
|
|
3309
|
-
case
|
|
3310
|
-
operator:
|
|
3308
|
+
case Rn: return {
|
|
3309
|
+
operator: Vn.TextStartsWith,
|
|
3311
3310
|
param: e.text
|
|
3312
3311
|
};
|
|
3313
|
-
case
|
|
3314
|
-
operator:
|
|
3312
|
+
case Dn: return {
|
|
3313
|
+
operator: Vn.TextEndsWith,
|
|
3315
3314
|
param: e.text
|
|
3316
3315
|
};
|
|
3317
|
-
case
|
|
3318
|
-
case
|
|
3319
|
-
case
|
|
3320
|
-
case
|
|
3321
|
-
case
|
|
3322
|
-
case
|
|
3323
|
-
case
|
|
3316
|
+
case xn: return { operator: Vn.Blank };
|
|
3317
|
+
case Mn: return Yn({ operator: Vn.Blank }, !0);
|
|
3318
|
+
case vn: return { operator: Vn.Error };
|
|
3319
|
+
case Fn: return Yn({ operator: Vn.Error }, !0);
|
|
3320
|
+
case $n: return { operator: Vn.Unique };
|
|
3321
|
+
case Ln: return Yn({ operator: Vn.Unique }, !0);
|
|
3322
|
+
case Bn: {
|
|
3324
3323
|
const t = {};
|
|
3325
3324
|
return e.timePeriod && (t.type = e.timePeriod), {
|
|
3326
|
-
operator:
|
|
3325
|
+
operator: Vn.TimePeriod,
|
|
3327
3326
|
param: t
|
|
3328
3327
|
};
|
|
3329
3328
|
}
|
|
3330
|
-
case
|
|
3329
|
+
case Un: {
|
|
3331
3330
|
const t = {
|
|
3332
3331
|
top: !e.bottom,
|
|
3333
3332
|
percent: e.percent ?? !1
|
|
3334
3333
|
};
|
|
3335
3334
|
return void 0 !== e.rank && (t.limit = e.rank), {
|
|
3336
|
-
operator:
|
|
3335
|
+
operator: Vn.TopN,
|
|
3337
3336
|
param: t
|
|
3338
3337
|
};
|
|
3339
3338
|
}
|
|
3340
|
-
case
|
|
3339
|
+
case In: {
|
|
3341
3340
|
const t = e.aboveAverage ?? !0, r = e.equalAverage ?? !1, n = { type: t ? r ? d.AverageType.AboveOrEqual : d.AverageType.Above : r ? d.AverageType.BelowOrEqual : d.AverageType.Below };
|
|
3342
3341
|
return void 0 !== e.stdDev && (n.stdDevs = e.stdDev), {
|
|
3343
|
-
operator:
|
|
3342
|
+
operator: Vn.Average,
|
|
3344
3343
|
param: n
|
|
3345
3344
|
};
|
|
3346
3345
|
}
|
|
3347
3346
|
default: return t?.(`Conditional format type '${r}' has no condition mapping.`), null;
|
|
3348
3347
|
}
|
|
3349
3348
|
}
|
|
3350
|
-
function
|
|
3349
|
+
function Kn(e, t, r) {
|
|
3351
3350
|
if (!e) return null;
|
|
3352
|
-
const n = e.operator ===
|
|
3351
|
+
const n = e.operator === Vn.Not, o = (n ? e.param : e) ?? {}, s = o.operator, a = o.param;
|
|
3353
3352
|
if (!s) return null;
|
|
3354
|
-
const i =
|
|
3353
|
+
const i = Gn[s];
|
|
3355
3354
|
if (i) {
|
|
3356
3355
|
const e = n ? i.negated : i.plain;
|
|
3357
3356
|
if (!e) return r?.(`Conditional format operator 'not(${s})' has no OOXML form.`), null;
|
|
3358
3357
|
return {
|
|
3359
|
-
type:
|
|
3358
|
+
type: bn,
|
|
3360
3359
|
operator: e,
|
|
3361
|
-
formulas: s ===
|
|
3360
|
+
formulas: s === Vn.Between ? [jn(a?.from), jn(a?.to)] : [jn(a)]
|
|
3362
3361
|
};
|
|
3363
3362
|
}
|
|
3364
3363
|
switch (s) {
|
|
3365
|
-
case
|
|
3364
|
+
case Vn.Expression:
|
|
3366
3365
|
if (n) break;
|
|
3367
3366
|
return {
|
|
3368
|
-
type:
|
|
3367
|
+
type: Pn,
|
|
3369
3368
|
formulas: [null == a ? "" : String(a)]
|
|
3370
3369
|
};
|
|
3371
|
-
case
|
|
3370
|
+
case Vn.TextContains: {
|
|
3372
3371
|
const e = String(a ?? "");
|
|
3373
3372
|
return n ? {
|
|
3374
|
-
type:
|
|
3373
|
+
type: kn,
|
|
3375
3374
|
text: e,
|
|
3376
|
-
formulas: [`ISERROR(SEARCH(${
|
|
3375
|
+
formulas: [`ISERROR(SEARCH(${yn(e)},${t}))`]
|
|
3377
3376
|
} : {
|
|
3378
|
-
type:
|
|
3377
|
+
type: Cn,
|
|
3379
3378
|
text: e,
|
|
3380
|
-
formulas: [`NOT(ISERROR(SEARCH(${
|
|
3379
|
+
formulas: [`NOT(ISERROR(SEARCH(${yn(e)},${t})))`]
|
|
3381
3380
|
};
|
|
3382
3381
|
}
|
|
3383
|
-
case
|
|
3382
|
+
case Vn.TextStartsWith: {
|
|
3384
3383
|
if (n) break;
|
|
3385
3384
|
const e = String(a ?? "");
|
|
3386
3385
|
return {
|
|
3387
|
-
type:
|
|
3386
|
+
type: Rn,
|
|
3388
3387
|
text: e,
|
|
3389
|
-
formulas: [`LEFT(${t},LEN(${
|
|
3388
|
+
formulas: [`LEFT(${t},LEN(${yn(e)}))=${yn(e)}`]
|
|
3390
3389
|
};
|
|
3391
3390
|
}
|
|
3392
|
-
case
|
|
3391
|
+
case Vn.TextEndsWith: {
|
|
3393
3392
|
if (n) break;
|
|
3394
3393
|
const e = String(a ?? "");
|
|
3395
3394
|
return {
|
|
3396
|
-
type:
|
|
3395
|
+
type: Dn,
|
|
3397
3396
|
text: e,
|
|
3398
|
-
formulas: [`RIGHT(${t},LEN(${
|
|
3397
|
+
formulas: [`RIGHT(${t},LEN(${yn(e)}))=${yn(e)}`]
|
|
3399
3398
|
};
|
|
3400
3399
|
}
|
|
3401
|
-
case
|
|
3402
|
-
type:
|
|
3400
|
+
case Vn.Blank: return n ? {
|
|
3401
|
+
type: Mn,
|
|
3403
3402
|
formulas: [`LEN(TRIM(${t}))>0`]
|
|
3404
3403
|
} : {
|
|
3405
|
-
type:
|
|
3404
|
+
type: xn,
|
|
3406
3405
|
formulas: [`LEN(TRIM(${t}))=0`]
|
|
3407
3406
|
};
|
|
3408
|
-
case
|
|
3409
|
-
type:
|
|
3407
|
+
case Vn.Error: return n ? {
|
|
3408
|
+
type: Fn,
|
|
3410
3409
|
formulas: [`NOT(ISERROR(${t}))`]
|
|
3411
3410
|
} : {
|
|
3412
|
-
type:
|
|
3411
|
+
type: vn,
|
|
3413
3412
|
formulas: [`ISERROR(${t})`]
|
|
3414
3413
|
};
|
|
3415
|
-
case
|
|
3416
|
-
case
|
|
3414
|
+
case Vn.Unique: return { type: n ? Ln : $n };
|
|
3415
|
+
case Vn.TimePeriod: {
|
|
3417
3416
|
if (n) break;
|
|
3418
3417
|
const e = a?.type;
|
|
3419
|
-
return e && !
|
|
3420
|
-
type:
|
|
3418
|
+
return e && !Hn.has(e) ? (r?.(`Conditional format time period '${e}' has no OOXML form; rule skipped.`), null) : {
|
|
3419
|
+
type: Bn,
|
|
3421
3420
|
timePeriod: e
|
|
3422
3421
|
};
|
|
3423
3422
|
}
|
|
3424
|
-
case
|
|
3423
|
+
case Vn.TopN: {
|
|
3425
3424
|
if (n) break;
|
|
3426
3425
|
const e = a ?? {};
|
|
3427
3426
|
return {
|
|
3428
|
-
type:
|
|
3427
|
+
type: Un,
|
|
3429
3428
|
bottom: !(e.top ?? 1),
|
|
3430
3429
|
percent: e.percent ?? !1,
|
|
3431
3430
|
rank: e.limit
|
|
3432
3431
|
};
|
|
3433
3432
|
}
|
|
3434
|
-
case
|
|
3433
|
+
case Vn.Average: {
|
|
3435
3434
|
if (n) break;
|
|
3436
3435
|
const e = a ?? {}, t = e.type ?? d.AverageType.Above;
|
|
3437
3436
|
return {
|
|
3438
|
-
type:
|
|
3437
|
+
type: In,
|
|
3439
3438
|
aboveAverage: t === d.AverageType.Above || t === d.AverageType.AboveOrEqual,
|
|
3440
3439
|
equalAverage: t === d.AverageType.AboveOrEqual || t === d.AverageType.BelowOrEqual,
|
|
3441
3440
|
stdDev: e.stdDevs
|
|
@@ -3444,7 +3443,7 @@ function Xn(e, t, r) {
|
|
|
3444
3443
|
}
|
|
3445
3444
|
return r?.(`Conditional format operator '${n ? `not(${s})` : s}' has no OOXML form.`), null;
|
|
3446
3445
|
}
|
|
3447
|
-
var
|
|
3446
|
+
var zn = /* @__PURE__ */ new Set([
|
|
3448
3447
|
"today",
|
|
3449
3448
|
"yesterday",
|
|
3450
3449
|
"tomorrow",
|
|
@@ -3478,7 +3477,7 @@ var Kn = /* @__PURE__ */ new Set([
|
|
|
3478
3477
|
"M11",
|
|
3479
3478
|
"M12"
|
|
3480
3479
|
]);
|
|
3481
|
-
function
|
|
3480
|
+
function qn(e) {
|
|
3482
3481
|
return "aboveAverage" === e || "belowAverage" === e ? {
|
|
3483
3482
|
operator: d.BuiltInOperatorNames.Average,
|
|
3484
3483
|
param: { type: "aboveAverage" === e ? d.AverageType.Above : d.AverageType.Below }
|
|
@@ -3487,95 +3486,95 @@ function zn(e) {
|
|
|
3487
3486
|
param: { type: e ?? void 0 }
|
|
3488
3487
|
};
|
|
3489
3488
|
}
|
|
3490
|
-
var
|
|
3489
|
+
var Qn = "equal", Zn = "notEqual", Jn = "greaterThan", eo = "greaterThanOrEqual", to = "lessThan", ro = "lessThanOrEqual", no = d.BuiltInOperatorNames, oo = d.BuiltInSelectorNames.Display, so = (e) => {
|
|
3491
3490
|
const t = e?.selector;
|
|
3492
|
-
return ("string" == typeof t ? t : t?.getName?.()) ===
|
|
3493
|
-
}, so = {
|
|
3494
|
-
[qn]: { operator: ro.EqualTo },
|
|
3495
|
-
[Qn]: {
|
|
3496
|
-
operator: ro.EqualTo,
|
|
3497
|
-
negate: !0
|
|
3498
|
-
},
|
|
3499
|
-
[Zn]: { operator: ro.GreaterThan },
|
|
3500
|
-
[Jn]: { operator: ro.GreaterThanEqualTo },
|
|
3501
|
-
[eo]: { operator: ro.LessThan },
|
|
3502
|
-
[to]: { operator: ro.LessThanEqualTo }
|
|
3491
|
+
return ("string" == typeof t ? t : t?.getName?.()) === oo;
|
|
3503
3492
|
}, ao = {
|
|
3504
|
-
[
|
|
3505
|
-
|
|
3506
|
-
|
|
3493
|
+
[Qn]: { operator: no.EqualTo },
|
|
3494
|
+
[Zn]: {
|
|
3495
|
+
operator: no.EqualTo,
|
|
3496
|
+
negate: !0
|
|
3507
3497
|
},
|
|
3508
|
-
[
|
|
3509
|
-
|
|
3510
|
-
|
|
3498
|
+
[Jn]: { operator: no.GreaterThan },
|
|
3499
|
+
[eo]: { operator: no.GreaterThanEqualTo },
|
|
3500
|
+
[to]: { operator: no.LessThan },
|
|
3501
|
+
[ro]: { operator: no.LessThanEqualTo }
|
|
3502
|
+
}, io = {
|
|
3503
|
+
[no.EqualTo]: {
|
|
3504
|
+
plain: Qn,
|
|
3505
|
+
negated: Zn
|
|
3511
3506
|
},
|
|
3512
|
-
[
|
|
3507
|
+
[no.GreaterThan]: {
|
|
3513
3508
|
plain: Jn,
|
|
3514
|
-
negated:
|
|
3509
|
+
negated: ro
|
|
3515
3510
|
},
|
|
3516
|
-
[
|
|
3511
|
+
[no.GreaterThanEqualTo]: {
|
|
3517
3512
|
plain: eo,
|
|
3518
|
-
negated:
|
|
3513
|
+
negated: to
|
|
3519
3514
|
},
|
|
3520
|
-
[
|
|
3515
|
+
[no.LessThan]: {
|
|
3521
3516
|
plain: to,
|
|
3522
|
-
negated:
|
|
3517
|
+
negated: eo
|
|
3523
3518
|
},
|
|
3524
|
-
[
|
|
3525
|
-
plain:
|
|
3526
|
-
negated:
|
|
3519
|
+
[no.LessThanEqualTo]: {
|
|
3520
|
+
plain: ro,
|
|
3521
|
+
negated: Jn
|
|
3527
3522
|
},
|
|
3528
|
-
[
|
|
3523
|
+
[no.After]: {
|
|
3529
3524
|
plain: Jn,
|
|
3530
|
-
negated:
|
|
3525
|
+
negated: ro
|
|
3531
3526
|
},
|
|
3532
|
-
[
|
|
3527
|
+
[no.AfterEqualTo]: {
|
|
3533
3528
|
plain: eo,
|
|
3534
|
-
negated:
|
|
3529
|
+
negated: to
|
|
3535
3530
|
},
|
|
3536
|
-
[
|
|
3531
|
+
[no.Before]: {
|
|
3537
3532
|
plain: to,
|
|
3538
|
-
negated:
|
|
3533
|
+
negated: eo
|
|
3534
|
+
},
|
|
3535
|
+
[no.BeforeEqualTo]: {
|
|
3536
|
+
plain: ro,
|
|
3537
|
+
negated: Jn
|
|
3539
3538
|
}
|
|
3540
|
-
},
|
|
3541
|
-
[
|
|
3542
|
-
[
|
|
3543
|
-
[
|
|
3539
|
+
}, lo = {
|
|
3540
|
+
[no.TextStartsWith]: (e) => e + "*",
|
|
3541
|
+
[no.TextEndsWith]: (e) => "*" + e,
|
|
3542
|
+
[no.TextContains]: (e) => "*" + e + "*"
|
|
3544
3543
|
};
|
|
3545
|
-
function
|
|
3544
|
+
function co(e) {
|
|
3546
3545
|
if (!e) return !1;
|
|
3547
|
-
const t = e.operator ===
|
|
3548
|
-
return "string" == typeof n && (void 0 !==
|
|
3546
|
+
const t = e.operator === no.Not, r = t ? e.param : e, n = r?.operator;
|
|
3547
|
+
return "string" == typeof n && (void 0 !== io[n] || void 0 !== lo[n] || (n === no.InSet ? null !== uo(r) : n === no.Blank ? t : !t && void 0 !== ao[n]));
|
|
3549
3548
|
}
|
|
3550
|
-
function
|
|
3551
|
-
if (!e || e.operator !==
|
|
3549
|
+
function uo(e) {
|
|
3550
|
+
if (!e || e.operator !== no.InSet || e.includeBlanks || !so(e)) return null;
|
|
3552
3551
|
const t = e.param;
|
|
3553
3552
|
if (!t || t.blank || (t.dateGroups?.length ?? 0) > 0) return null;
|
|
3554
3553
|
if (t.source || (t.additions?.length ?? 0) > 0 || (t.subtractions?.length ?? 0) > 0) return null;
|
|
3555
3554
|
const r = t.items;
|
|
3556
3555
|
return Array.isArray(r) && 1 === r.length && "string" == typeof r[0] ? r[0] : null;
|
|
3557
3556
|
}
|
|
3558
|
-
function
|
|
3557
|
+
function po(e) {
|
|
3559
3558
|
return e.replace(/[~*?]/g, "~$&");
|
|
3560
3559
|
}
|
|
3561
|
-
function
|
|
3560
|
+
function fo(e) {
|
|
3562
3561
|
if (null == e || "" === e) return e ?? void 0;
|
|
3563
3562
|
const t = Number(e);
|
|
3564
3563
|
return Number.isFinite(t) ? t : e;
|
|
3565
3564
|
}
|
|
3566
|
-
function
|
|
3565
|
+
function Eo(e) {
|
|
3567
3566
|
if (null != e) return "boolean" == typeof e ? e ? "TRUE" : "FALSE" : "" + e;
|
|
3568
3567
|
}
|
|
3569
|
-
function
|
|
3568
|
+
function ho(e, t) {
|
|
3570
3569
|
const r = e.val;
|
|
3571
3570
|
if (null == r) return null;
|
|
3572
|
-
const n = e.operator ??
|
|
3571
|
+
const n = e.operator ?? Qn, o = ao[n];
|
|
3573
3572
|
if (!o) return t?.(`AutoFilter operator '${n}' has no mapping; the rule is carried but inert.`), {
|
|
3574
3573
|
operator: n,
|
|
3575
|
-
param:
|
|
3574
|
+
param: fo(r)
|
|
3576
3575
|
};
|
|
3577
3576
|
let s;
|
|
3578
|
-
if (o.operator ===
|
|
3577
|
+
if (o.operator === no.EqualTo) {
|
|
3579
3578
|
const e = ((e) => {
|
|
3580
3579
|
const t = e.length;
|
|
3581
3580
|
let r = "", n = !1, o = !1, s = !1;
|
|
@@ -3602,258 +3601,258 @@ function Eo(e, t) {
|
|
|
3602
3601
|
param: r
|
|
3603
3602
|
};
|
|
3604
3603
|
s = e.leading && e.trailing ? {
|
|
3605
|
-
operator:
|
|
3604
|
+
operator: no.TextContains,
|
|
3606
3605
|
param: e.text
|
|
3607
3606
|
} : e.leading ? {
|
|
3608
|
-
operator:
|
|
3607
|
+
operator: no.TextEndsWith,
|
|
3609
3608
|
param: e.text
|
|
3610
3609
|
} : e.trailing ? {
|
|
3611
|
-
operator:
|
|
3610
|
+
operator: no.TextStartsWith,
|
|
3612
3611
|
param: e.text
|
|
3613
3612
|
} : "" === e.text.trim() ? {
|
|
3614
|
-
selector:
|
|
3615
|
-
operator:
|
|
3613
|
+
selector: oo,
|
|
3614
|
+
operator: no.Blank
|
|
3616
3615
|
} : {
|
|
3617
|
-
selector:
|
|
3618
|
-
operator:
|
|
3616
|
+
selector: oo,
|
|
3617
|
+
operator: no.EqualTo,
|
|
3619
3618
|
param: e.text
|
|
3620
3619
|
};
|
|
3621
3620
|
} else s = {
|
|
3622
3621
|
operator: o.operator,
|
|
3623
|
-
param:
|
|
3622
|
+
param: fo(r)
|
|
3624
3623
|
};
|
|
3625
3624
|
return o.negate ? {
|
|
3626
|
-
operator:
|
|
3625
|
+
operator: no.Not,
|
|
3627
3626
|
param: s
|
|
3628
3627
|
} : s;
|
|
3629
3628
|
}
|
|
3630
|
-
function
|
|
3629
|
+
function To(e) {
|
|
3631
3630
|
const t = e?.operator;
|
|
3632
|
-
if (t !==
|
|
3631
|
+
if (t !== no.And && t !== no.Or) return e;
|
|
3633
3632
|
const r = e.param;
|
|
3634
3633
|
if (!Array.isArray(r) || 2 !== r.length) return e;
|
|
3635
3634
|
const [n, o] = r, s = n?.param;
|
|
3636
3635
|
if ("number" != typeof s || o?.param !== s) return e;
|
|
3637
3636
|
const a = [n.operator, o.operator], i = (e, t) => a.includes(e) && a.includes(t) && n.operator !== o.operator;
|
|
3638
|
-
return t ===
|
|
3639
|
-
operator:
|
|
3637
|
+
return t === no.And && i(no.GreaterThanEqualTo, no.LessThanEqualTo) ? {
|
|
3638
|
+
operator: no.EqualTo,
|
|
3640
3639
|
param: s
|
|
3641
|
-
} : t ===
|
|
3642
|
-
operator:
|
|
3640
|
+
} : t === no.Or && i(no.LessThan, no.GreaterThan) ? {
|
|
3641
|
+
operator: no.Not,
|
|
3643
3642
|
param: {
|
|
3644
|
-
operator:
|
|
3643
|
+
operator: no.EqualTo,
|
|
3645
3644
|
param: s
|
|
3646
3645
|
}
|
|
3647
3646
|
} : e;
|
|
3648
3647
|
}
|
|
3649
|
-
function
|
|
3648
|
+
function go(e) {
|
|
3650
3649
|
if (!e) return null;
|
|
3651
|
-
const t = e.operator ===
|
|
3652
|
-
if (r.operator !==
|
|
3653
|
-
const n =
|
|
3650
|
+
const t = e.operator === no.Not, r = (t ? e.param : e) ?? {};
|
|
3651
|
+
if (r.operator !== no.EqualTo || "number" != typeof r.param || so(r)) return null;
|
|
3652
|
+
const n = Eo(r.param);
|
|
3654
3653
|
return t ? {
|
|
3655
3654
|
and: !1,
|
|
3656
3655
|
filters: [{
|
|
3657
|
-
operator:
|
|
3656
|
+
operator: to,
|
|
3658
3657
|
val: n
|
|
3659
3658
|
}, {
|
|
3660
|
-
operator:
|
|
3659
|
+
operator: Jn,
|
|
3661
3660
|
val: n
|
|
3662
3661
|
}]
|
|
3663
3662
|
} : {
|
|
3664
3663
|
and: !0,
|
|
3665
3664
|
filters: [{
|
|
3666
|
-
operator:
|
|
3665
|
+
operator: eo,
|
|
3667
3666
|
val: n
|
|
3668
3667
|
}, {
|
|
3669
|
-
operator:
|
|
3668
|
+
operator: ro,
|
|
3670
3669
|
val: n
|
|
3671
3670
|
}]
|
|
3672
3671
|
};
|
|
3673
3672
|
}
|
|
3674
|
-
function
|
|
3673
|
+
function Ao(e, t) {
|
|
3675
3674
|
if (!e) return null;
|
|
3676
|
-
const r = e.operator ===
|
|
3675
|
+
const r = e.operator === no.Not, n = (r ? e.param : e) ?? {}, o = n.operator;
|
|
3677
3676
|
if (!o) return null;
|
|
3678
|
-
const s =
|
|
3677
|
+
const s = lo[o];
|
|
3679
3678
|
if (s) return "string" != typeof n.param || "" === n.param ? (t?.(`AutoFilter operator '${o}' has no text; it was not written.`), null) : {
|
|
3680
|
-
operator: r ?
|
|
3681
|
-
val: s(
|
|
3679
|
+
operator: r ? Zn : Qn,
|
|
3680
|
+
val: s(po(n.param))
|
|
3682
3681
|
};
|
|
3683
|
-
if (o ===
|
|
3684
|
-
operator: r ?
|
|
3685
|
-
val:
|
|
3682
|
+
if (o === no.EqualTo && so(n)) return "string" != typeof n.param ? (t?.("AutoFilter displays-as operand is not text; it was not written."), null) : {
|
|
3683
|
+
operator: r ? Zn : Qn,
|
|
3684
|
+
val: po(n.param)
|
|
3686
3685
|
};
|
|
3687
|
-
if (o ===
|
|
3688
|
-
const e =
|
|
3686
|
+
if (o === no.InSet) {
|
|
3687
|
+
const e = uo(n);
|
|
3689
3688
|
return null === e ? (t?.("AutoFilter list with more than one item, date groups or blanks has no customFilter form."), null) : {
|
|
3690
|
-
operator: r ?
|
|
3691
|
-
val:
|
|
3689
|
+
operator: r ? Zn : Qn,
|
|
3690
|
+
val: po(e)
|
|
3692
3691
|
};
|
|
3693
3692
|
}
|
|
3694
|
-
if (o ===
|
|
3695
|
-
operator:
|
|
3693
|
+
if (o === no.Blank) return r ? {
|
|
3694
|
+
operator: Zn,
|
|
3696
3695
|
val: " "
|
|
3697
3696
|
} : (t?.("AutoFilter blank criterion has no customFilter form; it is the blank attribute of a list."), null);
|
|
3698
|
-
const a =
|
|
3699
|
-
if (!a) return !r &&
|
|
3697
|
+
const a = io[o];
|
|
3698
|
+
if (!a) return !r && ao[o] ? {
|
|
3700
3699
|
operator: o,
|
|
3701
|
-
val:
|
|
3700
|
+
val: Eo(n.param)
|
|
3702
3701
|
} : (t?.(`AutoFilter operator '${r ? `not(${o})` : o}' has no OOXML form.`), null);
|
|
3703
|
-
let i =
|
|
3704
|
-
return o ===
|
|
3702
|
+
let i = Eo(n.param);
|
|
3703
|
+
return o === no.EqualTo && "string" == typeof n.param && (i = r && "" === n.param ? " " : po(n.param)), {
|
|
3705
3704
|
operator: r ? a.negated : a.plain,
|
|
3706
3705
|
val: i
|
|
3707
3706
|
};
|
|
3708
3707
|
}
|
|
3709
|
-
function
|
|
3710
|
-
if (!e || e.operator !==
|
|
3711
|
-
if (e.selector && !
|
|
3708
|
+
function mo(e) {
|
|
3709
|
+
if (!e || e.operator !== no.EqualTo) return null;
|
|
3710
|
+
if (e.selector && !so(e)) return null;
|
|
3712
3711
|
const t = e.param;
|
|
3713
|
-
return "string" == typeof t ? t.startsWith("=") ? null : t : "boolean" == typeof t ?
|
|
3712
|
+
return "string" == typeof t ? t.startsWith("=") ? null : t : "boolean" == typeof t ? Eo(t) : null;
|
|
3714
3713
|
}
|
|
3715
|
-
function
|
|
3714
|
+
function So(e) {
|
|
3716
3715
|
if (e && e !== y.SortOn.Value) return e === y.SortOn.FillColor ? "cellColor" : e;
|
|
3717
3716
|
}
|
|
3718
|
-
function
|
|
3717
|
+
function yo(e) {
|
|
3719
3718
|
if (e) return "cellColor" === e ? y.SortOn.FillColor : e;
|
|
3720
3719
|
}
|
|
3721
|
-
var
|
|
3722
|
-
[
|
|
3723
|
-
[
|
|
3724
|
-
[
|
|
3725
|
-
[
|
|
3726
|
-
[
|
|
3727
|
-
}, Po = {
|
|
3728
|
-
[Lo.Whole]: Co,
|
|
3729
|
-
[Lo.Number]: Ro,
|
|
3730
|
-
[Lo.Date]: Io,
|
|
3731
|
-
[Lo.DateTime]: Io,
|
|
3732
|
-
[Lo.Time]: vo,
|
|
3733
|
-
[Lo.TextLength]: xo
|
|
3720
|
+
var Io = "custom", Ro = "date", bo = "decimal", Oo = "list", xo = "none", vo = "textLength", Co = "time", No = "whole", Lo = d.BuiltInOperatorNames, Do = d.BuiltInSelectorNames, Po = {
|
|
3721
|
+
[No]: Do.Whole,
|
|
3722
|
+
[bo]: Do.Number,
|
|
3723
|
+
[Ro]: Do.Date,
|
|
3724
|
+
[Co]: Do.Time,
|
|
3725
|
+
[vo]: Do.TextLength
|
|
3734
3726
|
}, wo = {
|
|
3735
|
-
|
|
3727
|
+
[Do.Whole]: No,
|
|
3728
|
+
[Do.Number]: bo,
|
|
3729
|
+
[Do.Date]: Ro,
|
|
3730
|
+
[Do.DateTime]: Ro,
|
|
3731
|
+
[Do.Time]: Co,
|
|
3732
|
+
[Do.TextLength]: vo
|
|
3733
|
+
}, Mo = {
|
|
3734
|
+
between: { operator: Lo.Between },
|
|
3736
3735
|
notBetween: {
|
|
3737
|
-
operator:
|
|
3736
|
+
operator: Lo.Between,
|
|
3738
3737
|
negate: !0
|
|
3739
3738
|
},
|
|
3740
|
-
equal: { operator:
|
|
3739
|
+
equal: { operator: Lo.EqualTo },
|
|
3741
3740
|
notEqual: {
|
|
3742
|
-
operator:
|
|
3741
|
+
operator: Lo.EqualTo,
|
|
3743
3742
|
negate: !0
|
|
3744
3743
|
},
|
|
3745
|
-
greaterThan: { operator:
|
|
3746
|
-
greaterThanOrEqual: { operator:
|
|
3747
|
-
lessThan: { operator:
|
|
3748
|
-
lessThanOrEqual: { operator:
|
|
3749
|
-
}, Mo = {
|
|
3750
|
-
[No.GreaterThan]: No.After,
|
|
3751
|
-
[No.GreaterThanEqualTo]: No.AfterEqualTo,
|
|
3752
|
-
[No.LessThan]: No.Before,
|
|
3753
|
-
[No.LessThanEqualTo]: No.BeforeEqualTo
|
|
3744
|
+
greaterThan: { operator: Lo.GreaterThan },
|
|
3745
|
+
greaterThanOrEqual: { operator: Lo.GreaterThanEqualTo },
|
|
3746
|
+
lessThan: { operator: Lo.LessThan },
|
|
3747
|
+
lessThanOrEqual: { operator: Lo.LessThanEqualTo }
|
|
3754
3748
|
}, Fo = {
|
|
3755
|
-
[
|
|
3749
|
+
[Lo.GreaterThan]: Lo.After,
|
|
3750
|
+
[Lo.GreaterThanEqualTo]: Lo.AfterEqualTo,
|
|
3751
|
+
[Lo.LessThan]: Lo.Before,
|
|
3752
|
+
[Lo.LessThanEqualTo]: Lo.BeforeEqualTo
|
|
3753
|
+
}, ko = {
|
|
3754
|
+
[Lo.Between]: {
|
|
3756
3755
|
plain: "between",
|
|
3757
3756
|
negated: "notBetween"
|
|
3758
3757
|
},
|
|
3759
|
-
[
|
|
3758
|
+
[Lo.EqualTo]: {
|
|
3760
3759
|
plain: "equal",
|
|
3761
3760
|
negated: "notEqual"
|
|
3762
3761
|
},
|
|
3763
|
-
[
|
|
3762
|
+
[Lo.GreaterThan]: {
|
|
3764
3763
|
plain: "greaterThan",
|
|
3765
3764
|
negated: ""
|
|
3766
3765
|
},
|
|
3767
|
-
[
|
|
3766
|
+
[Lo.GreaterThanEqualTo]: {
|
|
3768
3767
|
plain: "greaterThanOrEqual",
|
|
3769
3768
|
negated: ""
|
|
3770
3769
|
},
|
|
3771
|
-
[
|
|
3770
|
+
[Lo.LessThan]: {
|
|
3772
3771
|
plain: "lessThan",
|
|
3773
3772
|
negated: ""
|
|
3774
3773
|
},
|
|
3775
|
-
[
|
|
3774
|
+
[Lo.LessThanEqualTo]: {
|
|
3776
3775
|
plain: "lessThanOrEqual",
|
|
3777
3776
|
negated: ""
|
|
3778
3777
|
},
|
|
3779
|
-
[
|
|
3778
|
+
[Lo.After]: {
|
|
3780
3779
|
plain: "greaterThan",
|
|
3781
3780
|
negated: ""
|
|
3782
3781
|
},
|
|
3783
|
-
[
|
|
3782
|
+
[Lo.AfterEqualTo]: {
|
|
3784
3783
|
plain: "greaterThanOrEqual",
|
|
3785
3784
|
negated: ""
|
|
3786
3785
|
},
|
|
3787
|
-
[
|
|
3786
|
+
[Lo.Before]: {
|
|
3788
3787
|
plain: "lessThan",
|
|
3789
3788
|
negated: ""
|
|
3790
3789
|
},
|
|
3791
|
-
[
|
|
3790
|
+
[Lo.BeforeEqualTo]: {
|
|
3792
3791
|
plain: "lessThanOrEqual",
|
|
3793
3792
|
negated: ""
|
|
3794
3793
|
}
|
|
3795
3794
|
};
|
|
3796
|
-
function
|
|
3797
|
-
return t ===
|
|
3795
|
+
function Bo(e, t) {
|
|
3796
|
+
return t === Oo || t === Io ? e : mn(e);
|
|
3798
3797
|
}
|
|
3799
|
-
function
|
|
3800
|
-
return
|
|
3798
|
+
function Uo(e) {
|
|
3799
|
+
return Sn(e);
|
|
3801
3800
|
}
|
|
3802
|
-
function
|
|
3801
|
+
function $o(e, t, r) {
|
|
3803
3802
|
if ("string" != typeof e || e.length <= 255) return e;
|
|
3804
3803
|
let n = 255;
|
|
3805
3804
|
const o = e.charCodeAt(n - 1);
|
|
3806
3805
|
return o >= 55296 && o <= 56319 && n--, r?.(`DataValidation ${t} is ${e.length} characters; Excel opens no more than 255, so it is cut.`, `xlsx.dv.${t}.length`), e.substring(0, n);
|
|
3807
3806
|
}
|
|
3808
|
-
function
|
|
3807
|
+
function Vo(e, t) {
|
|
3809
3808
|
const r = e.type;
|
|
3810
|
-
if (!r || r ===
|
|
3811
|
-
if (r ===
|
|
3809
|
+
if (!r || r === xo) return null;
|
|
3810
|
+
if (r === Oo) {
|
|
3812
3811
|
const t = e.formula1;
|
|
3813
3812
|
if (null == t) return {
|
|
3814
|
-
operator:
|
|
3813
|
+
operator: Lo.InSet,
|
|
3815
3814
|
param: {}
|
|
3816
3815
|
};
|
|
3817
3816
|
const r = String(t), n = s.parseListLiteral(r);
|
|
3818
3817
|
return {
|
|
3819
|
-
operator:
|
|
3818
|
+
operator: Lo.InSet,
|
|
3820
3819
|
param: n ? { additions: n } : { source: r }
|
|
3821
3820
|
};
|
|
3822
3821
|
}
|
|
3823
|
-
if (r ===
|
|
3824
|
-
operator:
|
|
3822
|
+
if (r === Io) return {
|
|
3823
|
+
operator: Lo.Expression,
|
|
3825
3824
|
param: e.formula1
|
|
3826
3825
|
};
|
|
3827
|
-
const n =
|
|
3826
|
+
const n = Po[r];
|
|
3828
3827
|
if (!n) return t?.(`DataValidation type '${r}' has no selector mapping.`), null;
|
|
3829
|
-
const o = e.operator ?? "between", a =
|
|
3828
|
+
const o = e.operator ?? "between", a = Mo[o];
|
|
3830
3829
|
if (!a) return t?.(`DataValidation operator '${o}' has no mapping; the rule is carried but inert.`), {
|
|
3831
3830
|
selector: n,
|
|
3832
3831
|
operator: o,
|
|
3833
3832
|
param: e.formula1
|
|
3834
3833
|
};
|
|
3835
|
-
const i = a.operator ===
|
|
3834
|
+
const i = a.operator === Lo.Between ? {
|
|
3836
3835
|
from: e.formula1,
|
|
3837
3836
|
to: e.formula2
|
|
3838
3837
|
} : e.formula1, l = {
|
|
3839
|
-
operator: (r ===
|
|
3838
|
+
operator: (r === Ro || r === Co) && Fo[a.operator] || a.operator,
|
|
3840
3839
|
param: i
|
|
3841
3840
|
};
|
|
3842
3841
|
return a.negate ? {
|
|
3843
3842
|
selector: n,
|
|
3844
|
-
operator:
|
|
3843
|
+
operator: Lo.Not,
|
|
3845
3844
|
param: l
|
|
3846
3845
|
} : {
|
|
3847
3846
|
selector: n,
|
|
3848
3847
|
...l
|
|
3849
3848
|
};
|
|
3850
3849
|
}
|
|
3851
|
-
function
|
|
3850
|
+
function Wo(e, t) {
|
|
3852
3851
|
if (!e) return null;
|
|
3853
|
-
const r = e.operator ===
|
|
3852
|
+
const r = e.operator === Lo.Not, n = (r ? e.param : e) ?? {}, o = n.operator, s = n.param;
|
|
3854
3853
|
if (!o) return null;
|
|
3855
|
-
if (!r && (o ===
|
|
3856
|
-
e.selector && e.selector !==
|
|
3854
|
+
if (!r && (o === Lo.InSet || o === Oo)) {
|
|
3855
|
+
e.selector && e.selector !== Do.Display && t?.(`DataValidation list under a '${String(e.selector)}' selector has no OOXML form; it is written as a plain list.`, "xlsx.dv.listSelector");
|
|
3857
3856
|
const r = function(e, t) {
|
|
3858
3857
|
if ("string" == typeof e) return e;
|
|
3859
3858
|
if (!e || "object" != typeof e) return;
|
|
@@ -3897,43 +3896,43 @@ function Vo(e, t) {
|
|
|
3897
3896
|
}
|
|
3898
3897
|
return !1;
|
|
3899
3898
|
}(r) ? (t?.(`DataValidation list source '${r}' is a union, which Excel cannot open; the rule is written without its list.`, "xlsx.dv.listUnion"), null) : {
|
|
3900
|
-
type:
|
|
3899
|
+
type: Oo,
|
|
3901
3900
|
formula1: r
|
|
3902
3901
|
};
|
|
3903
3902
|
}
|
|
3904
|
-
if (!r && (o ===
|
|
3905
|
-
type:
|
|
3903
|
+
if (!r && (o === Lo.Expression || o === Io)) return {
|
|
3904
|
+
type: Io,
|
|
3906
3905
|
formula1: "string" == typeof s ? s : s?.formula ?? s?.formula1
|
|
3907
3906
|
};
|
|
3908
|
-
const a =
|
|
3909
|
-
if (!a) return !r &&
|
|
3910
|
-
type:
|
|
3907
|
+
const a = ko[o];
|
|
3908
|
+
if (!a) return !r && Mo[o] ? {
|
|
3909
|
+
type: Go(e.selector),
|
|
3911
3910
|
operator: o,
|
|
3912
|
-
formula1:
|
|
3913
|
-
formula2:
|
|
3911
|
+
formula1: Uo(s?.from ?? s),
|
|
3912
|
+
formula2: Uo(s?.to)
|
|
3914
3913
|
} : (t?.(`DataValidation operator '${r ? `not(${o})` : o}' has no OOXML form.`), null);
|
|
3915
3914
|
const i = r ? a.negated : a.plain;
|
|
3916
3915
|
return i ? {
|
|
3917
|
-
type:
|
|
3916
|
+
type: Go(e.selector),
|
|
3918
3917
|
operator: i,
|
|
3919
|
-
formula1:
|
|
3920
|
-
formula2: o ===
|
|
3918
|
+
formula1: Uo(o === Lo.Between ? s?.from : s),
|
|
3919
|
+
formula2: o === Lo.Between ? Uo(s?.to) : void 0
|
|
3921
3920
|
} : (t?.(`DataValidation operator 'not(${o})' has no OOXML form.`), null);
|
|
3922
3921
|
}
|
|
3923
|
-
function
|
|
3924
|
-
return (e ?
|
|
3922
|
+
function Go(e) {
|
|
3923
|
+
return (e ? wo[e] : void 0) ?? bo;
|
|
3925
3924
|
}
|
|
3926
|
-
var
|
|
3925
|
+
var Ho = (e) => {
|
|
3927
3926
|
const t = {};
|
|
3928
3927
|
for (const [r, n] of Object.entries(e)) t[n] = r;
|
|
3929
3928
|
return {
|
|
3930
3929
|
read: (t) => e[t] ?? t,
|
|
3931
3930
|
write: (e) => void 0 === e ? void 0 : t[e] ?? e
|
|
3932
3931
|
};
|
|
3933
|
-
},
|
|
3932
|
+
}, _o = Object.freeze({
|
|
3934
3933
|
sp: S.Type.Shape,
|
|
3935
3934
|
cxnSp: S.Type.Connector
|
|
3936
|
-
}),
|
|
3935
|
+
}), jo = Ho({
|
|
3937
3936
|
l: R.ParagraphAlignment.Left,
|
|
3938
3937
|
ctr: R.ParagraphAlignment.Center,
|
|
3939
3938
|
r: R.ParagraphAlignment.Right,
|
|
@@ -3941,19 +3940,19 @@ var Go = (e) => {
|
|
|
3941
3940
|
justLow: R.ParagraphAlignment.JustifyLow,
|
|
3942
3941
|
dist: R.ParagraphAlignment.Distributed,
|
|
3943
3942
|
thaiDist: R.ParagraphAlignment.ThaiDistributed
|
|
3944
|
-
}),
|
|
3943
|
+
}), Yo = Ho({
|
|
3945
3944
|
auto: R.FontAlignment.Auto,
|
|
3946
3945
|
t: R.FontAlignment.Top,
|
|
3947
3946
|
ctr: R.FontAlignment.Center,
|
|
3948
3947
|
base: R.FontAlignment.Baseline,
|
|
3949
3948
|
b: R.FontAlignment.Bottom
|
|
3950
|
-
}),
|
|
3949
|
+
}), Xo = Ho({
|
|
3951
3950
|
t: b.VerticalAlignment.Top,
|
|
3952
3951
|
ctr: b.VerticalAlignment.Center,
|
|
3953
3952
|
b: b.VerticalAlignment.Bottom,
|
|
3954
3953
|
just: b.VerticalAlignment.Justify,
|
|
3955
3954
|
dist: b.VerticalAlignment.Distributed
|
|
3956
|
-
}),
|
|
3955
|
+
}), Ko = Ho({
|
|
3957
3956
|
none: T.UnderlineStyle.None,
|
|
3958
3957
|
words: T.UnderlineStyle.Words,
|
|
3959
3958
|
sng: T.UnderlineStyle.Single,
|
|
@@ -3972,11 +3971,11 @@ var Go = (e) => {
|
|
|
3972
3971
|
wavy: T.UnderlineStyle.Wavy,
|
|
3973
3972
|
wavyHeavy: T.UnderlineStyle.WavyHeavy,
|
|
3974
3973
|
wavyDbl: T.UnderlineStyle.WavyDouble
|
|
3975
|
-
}),
|
|
3974
|
+
}), zo = Ho({
|
|
3976
3975
|
noStrike: T.StrikeStyle.None,
|
|
3977
3976
|
sngStrike: T.StrikeStyle.Single,
|
|
3978
3977
|
dblStrike: T.StrikeStyle.Double
|
|
3979
|
-
}),
|
|
3978
|
+
}), qo = Ho({
|
|
3980
3979
|
horz: b.WritingMode.Horizontal,
|
|
3981
3980
|
vert: b.WritingMode.Vertical,
|
|
3982
3981
|
vert270: b.WritingMode.Vertical270,
|
|
@@ -3984,68 +3983,68 @@ var Go = (e) => {
|
|
|
3984
3983
|
eaVert: b.WritingMode.EastAsianVertical,
|
|
3985
3984
|
mongolianVert: b.WritingMode.MongolianVertical,
|
|
3986
3985
|
wordArtVertRtl: b.WritingMode.WordArtVerticalRtl
|
|
3987
|
-
}),
|
|
3986
|
+
}), Qo = Ho({
|
|
3988
3987
|
overflow: b.Overflow.Visible,
|
|
3989
3988
|
ellipsis: b.Overflow.Ellipsis,
|
|
3990
3989
|
clip: b.Overflow.Clip
|
|
3991
|
-
}),
|
|
3990
|
+
}), Zo = Ho({
|
|
3992
3991
|
l: b.TabStopAlignment.Left,
|
|
3993
3992
|
ctr: b.TabStopAlignment.Center,
|
|
3994
3993
|
r: b.TabStopAlignment.Right,
|
|
3995
3994
|
dec: b.TabStopAlignment.Decimal
|
|
3996
|
-
}),
|
|
3997
|
-
isBlank: () =>
|
|
3998
|
-
isNotBlank: () =>
|
|
3999
|
-
length: () =>
|
|
4000
|
-
parseRotation: () =>
|
|
4001
|
-
parseValAttrAsBoolean: () =>
|
|
4002
|
-
parseValAttrAsFloat: () =>
|
|
4003
|
-
parseValAttrAsInteger: () =>
|
|
4004
|
-
parseValAttrAsString: () =>
|
|
4005
|
-
}),
|
|
3995
|
+
}), Jo = (e) => void 0 === e ? void 0 : String(e > 127 ? e - 256 : e), es = P({
|
|
3996
|
+
isBlank: () => as,
|
|
3997
|
+
isNotBlank: () => is,
|
|
3998
|
+
length: () => ls,
|
|
3999
|
+
parseRotation: () => ts,
|
|
4000
|
+
parseValAttrAsBoolean: () => ns,
|
|
4001
|
+
parseValAttrAsFloat: () => ss,
|
|
4002
|
+
parseValAttrAsInteger: () => os,
|
|
4003
|
+
parseValAttrAsString: () => rs
|
|
4004
|
+
}), ts = (t, r) => {
|
|
4006
4005
|
if (!t || !t.hasAttribute("rot")) return;
|
|
4007
|
-
const n = t.getAttribute("rot"), o = e.roundAccurately(
|
|
4006
|
+
const n = t.getAttribute("rot"), o = e.roundAccurately(xr(n), 2);
|
|
4008
4007
|
-1e3 !== o && (r.rotation = o);
|
|
4009
|
-
},
|
|
4008
|
+
}, rs = (e, t, r, n, o) => {
|
|
4010
4009
|
const s = e.getValAttrAsString(n, t);
|
|
4011
4010
|
null !== s && (r[o] = s);
|
|
4012
|
-
},
|
|
4011
|
+
}, ns = (e, t, r, n, o = n, s = null) => {
|
|
4013
4012
|
const a = e.getValAttrAsBoolean(n, t, s);
|
|
4014
4013
|
null !== a && (r[o] = a);
|
|
4015
|
-
},
|
|
4014
|
+
}, os = (e, t, r, n, o) => {
|
|
4016
4015
|
const s = e.getValAttrAsInteger(n, t);
|
|
4017
4016
|
null !== s && (r[o] = s);
|
|
4018
|
-
},
|
|
4017
|
+
}, ss = (e, t, r, n, o, s = 1) => {
|
|
4019
4018
|
const a = e.getValAttrAsFloat(n, t);
|
|
4020
4019
|
null !== a && (r[o] = a * s);
|
|
4021
|
-
},
|
|
4020
|
+
}, as = (e) => !e || 0 === e.trim().length, is = (e) => !as(e), ls = (e) => e?.length ?? 0, cs = (e) => {
|
|
4022
4021
|
const t = [], r = e.childNodes;
|
|
4023
4022
|
for (let e = 0; e < r.length; e++) {
|
|
4024
4023
|
const n = r.item(e);
|
|
4025
4024
|
1 === n.nodeType && t.push(n);
|
|
4026
4025
|
}
|
|
4027
4026
|
return t;
|
|
4028
|
-
},
|
|
4029
|
-
const t =
|
|
4027
|
+
}, us = (e, t) => cs(e).find((e) => e.localName === t), ps = (e, t) => e ? cs(e).filter((e) => e.localName === t) : [], fs = (e) => `${e.getAttribute("name") ?? ""} ${(e.getAttribute("fmla") ?? "").trim()}`.trim(), ds = (e) => {
|
|
4028
|
+
const t = us(e, "pos");
|
|
4030
4029
|
return [t?.getAttribute("x") ?? "0", t?.getAttribute("y") ?? "0"];
|
|
4031
|
-
},
|
|
4032
|
-
const r = t.map((t) =>
|
|
4030
|
+
}, Es = (e, t) => e.getAttribute(t) ?? "_", hs = (e, t) => {
|
|
4031
|
+
const r = t.map((t) => Es(e, t));
|
|
4033
4032
|
return r.every((e) => "_" === e) ? "" : ` ${r.join(" ")}`;
|
|
4034
|
-
},
|
|
4033
|
+
}, Ts = {
|
|
4035
4034
|
moveTo: "M",
|
|
4036
4035
|
lnTo: "L",
|
|
4037
4036
|
quadBezTo: "Q",
|
|
4038
4037
|
cubicBezTo: "C",
|
|
4039
4038
|
arcTo: "A",
|
|
4040
4039
|
close: "Z"
|
|
4041
|
-
},
|
|
4040
|
+
}, gs = (e) => {
|
|
4042
4041
|
const t = [];
|
|
4043
|
-
for (const r of
|
|
4044
|
-
const e =
|
|
4045
|
-
if (e) if ("A" === e) t.push(`A ${
|
|
4042
|
+
for (const r of cs(e)) {
|
|
4043
|
+
const e = Ts[r.localName];
|
|
4044
|
+
if (e) if ("A" === e) t.push(`A ${Es(r, "wR")} ${Es(r, "hR")} ${Es(r, "stAng")} ${Es(r, "swAng")}`);
|
|
4046
4045
|
else if ("Z" === e) t.push("Z");
|
|
4047
4046
|
else {
|
|
4048
|
-
const n =
|
|
4047
|
+
const n = ps(r, "pt").map((e) => `${e.getAttribute("x") ?? "0"} ${e.getAttribute("y") ?? "0"}`);
|
|
4049
4048
|
t.push(`${e} ${n.join(" ")}`);
|
|
4050
4049
|
}
|
|
4051
4050
|
}
|
|
@@ -4055,7 +4054,7 @@ var Go = (e) => {
|
|
|
4055
4054
|
"0" !== o && "false" !== o || (r.s = 0);
|
|
4056
4055
|
const s = e.getAttribute("w"), a = e.getAttribute("h");
|
|
4057
4056
|
return null !== s && null !== a && (r.w = Number(s), r.h = Number(a)), r;
|
|
4058
|
-
},
|
|
4057
|
+
}, As = class {
|
|
4059
4058
|
visit(e, t, r) {}
|
|
4060
4059
|
getStroke(e, t) {
|
|
4061
4060
|
const r = e.evaluate("ln", t);
|
|
@@ -4063,7 +4062,7 @@ var Go = (e) => {
|
|
|
4063
4062
|
}
|
|
4064
4063
|
parseLn(e, t) {
|
|
4065
4064
|
const r = {};
|
|
4066
|
-
t.hasAttribute("algn") && (r.align = t.getAttribute("algn")), t.hasAttribute("cap") && (r.lineCap =
|
|
4065
|
+
t.hasAttribute("algn") && (r.align = t.getAttribute("algn")), t.hasAttribute("cap") && (r.lineCap = Ss(t.getAttribute("cap"))), t.hasAttribute("cmpd") && (r.compound = t.getAttribute("cmpd")), t.hasAttribute("w") && (r.width = Ir(t.getAttribute("w")));
|
|
4067
4066
|
const n = e.evaluate("miter", t);
|
|
4068
4067
|
n && (r.lineJoin = "miter", n.hasAttribute("lim") && (r.miterLimit = parseFloat(n.getAttribute("lim")) / 1e5)), e.evaluate("bevel", t) && (r.lineJoin = "bevel"), e.evaluate("round", t) && (r.lineJoin = "round");
|
|
4069
4068
|
const o = e.evaluate("custDash", t);
|
|
@@ -4073,7 +4072,7 @@ var Go = (e) => {
|
|
|
4073
4072
|
const e = [];
|
|
4074
4073
|
for (let r = 0; r < t.length; r++) {
|
|
4075
4074
|
const n = t.item(r);
|
|
4076
|
-
e.push(
|
|
4075
|
+
e.push(Or(n.getAttribute("d") ?? "")), e.push(Or(n.getAttribute("sp") ?? ""));
|
|
4077
4076
|
}
|
|
4078
4077
|
r.dash = e;
|
|
4079
4078
|
}
|
|
@@ -4109,16 +4108,16 @@ var Go = (e) => {
|
|
|
4109
4108
|
type: E.Type.OuterShadow,
|
|
4110
4109
|
color: this.processAdjColor(e, t)
|
|
4111
4110
|
};
|
|
4112
|
-
t.hasAttribute("dist") && (r.distance =
|
|
4113
|
-
const n =
|
|
4114
|
-
return n && (r.alignment = n), t.hasAttribute("rotWithShape") && (r.isRotatedWithShape =
|
|
4111
|
+
t.hasAttribute("dist") && (r.distance = Ir(t.getAttribute("dist"))), t.hasAttribute("dir") && (r.angle = xr(t.getAttribute("dir"))), t.hasAttribute("blurRad") && (r.blur = Ir(t.getAttribute("blurRad")));
|
|
4112
|
+
const n = Is(t.getAttribute("algn"));
|
|
4113
|
+
return n && (r.alignment = n), t.hasAttribute("rotWithShape") && (r.isRotatedWithShape = vr(t.getAttribute("rotWithShape"))), t.hasAttribute("sx") && (r.scaleX = Or(t.getAttribute("sx"))), t.hasAttribute("sy") && (r.scaleY = Or(t.getAttribute("sy"))), t.hasAttribute("kx") && (r.skewX = xr(t.getAttribute("kx"))), t.hasAttribute("ky") && (r.skewY = xr(t.getAttribute("ky"))), r;
|
|
4115
4114
|
}
|
|
4116
4115
|
case "innerShdw": {
|
|
4117
4116
|
const r = {
|
|
4118
4117
|
type: E.Type.InnerShadow,
|
|
4119
4118
|
color: this.processAdjColor(e, t)
|
|
4120
4119
|
};
|
|
4121
|
-
return t.hasAttribute("dist") && (r.distance =
|
|
4120
|
+
return t.hasAttribute("dist") && (r.distance = Ir(t.getAttribute("dist"))), t.hasAttribute("dir") && (r.angle = xr(t.getAttribute("dir"))), t.hasAttribute("blurRad") && (r.blur = Ir(t.getAttribute("blurRad"))), r;
|
|
4122
4121
|
}
|
|
4123
4122
|
case "prstShdw": {
|
|
4124
4123
|
const r = {
|
|
@@ -4126,24 +4125,24 @@ var Go = (e) => {
|
|
|
4126
4125
|
color: this.processAdjColor(e, t),
|
|
4127
4126
|
preset: t.getAttribute("prst") ?? void 0
|
|
4128
4127
|
};
|
|
4129
|
-
return t.hasAttribute("dist") && (r.distance =
|
|
4128
|
+
return t.hasAttribute("dist") && (r.distance = Ir(t.getAttribute("dist"))), t.hasAttribute("dir") && (r.angle = xr(t.getAttribute("dir"))), r;
|
|
4130
4129
|
}
|
|
4131
4130
|
case "glow": {
|
|
4132
4131
|
const r = {
|
|
4133
4132
|
type: E.Type.Glow,
|
|
4134
4133
|
color: this.processAdjColor(e, t)
|
|
4135
4134
|
};
|
|
4136
|
-
return t.hasAttribute("rad") && (r.radius =
|
|
4135
|
+
return t.hasAttribute("rad") && (r.radius = Ir(t.getAttribute("rad"))), r;
|
|
4137
4136
|
}
|
|
4138
4137
|
case "softEdge": {
|
|
4139
4138
|
const e = { type: E.Type.SoftEdge };
|
|
4140
|
-
return t.hasAttribute("rad") && (e.radius =
|
|
4139
|
+
return t.hasAttribute("rad") && (e.radius = Ir(t.getAttribute("rad"))), e;
|
|
4141
4140
|
}
|
|
4142
4141
|
case "reflection": {
|
|
4143
4142
|
const e = { type: E.Type.Reflection };
|
|
4144
|
-
t.hasAttribute("blurRad") && (e.blur =
|
|
4145
|
-
const r =
|
|
4146
|
-
return r && (e.alignment = r), t.hasAttribute("rotWithShape") && (e.isRotatedWithShape =
|
|
4143
|
+
t.hasAttribute("blurRad") && (e.blur = Ir(t.getAttribute("blurRad"))), t.hasAttribute("dist") && (e.distance = Ir(t.getAttribute("dist"))), t.hasAttribute("dir") && (e.angle = xr(t.getAttribute("dir"))), t.hasAttribute("fadeDir") && (e.fadeAngle = xr(t.getAttribute("fadeDir"))), t.hasAttribute("stA") && (e.startAlpha = Or(t.getAttribute("stA"))), t.hasAttribute("stPos") && (e.startPosition = Or(t.getAttribute("stPos"))), t.hasAttribute("endA") && (e.endAlpha = Or(t.getAttribute("endA"))), t.hasAttribute("endPos") && (e.endPosition = Or(t.getAttribute("endPos"))), t.hasAttribute("sx") && (e.scaleX = Or(t.getAttribute("sx"))), t.hasAttribute("sy") && (e.scaleY = Or(t.getAttribute("sy"))), t.hasAttribute("kx") && (e.skewX = xr(t.getAttribute("kx"))), t.hasAttribute("ky") && (e.skewY = xr(t.getAttribute("ky")));
|
|
4144
|
+
const r = Is(t.getAttribute("algn"));
|
|
4145
|
+
return r && (e.alignment = r), t.hasAttribute("rotWithShape") && (e.isRotatedWithShape = vr(t.getAttribute("rotWithShape"))), e;
|
|
4147
4146
|
}
|
|
4148
4147
|
default: return;
|
|
4149
4148
|
}
|
|
@@ -4169,12 +4168,12 @@ var Go = (e) => {
|
|
|
4169
4168
|
const r = { type: h.Type.Gradient };
|
|
4170
4169
|
t.hasAttribute("rotWithShape") && (r.isRotatedWithShape = "1" === t.getAttribute("rotWithShape"));
|
|
4171
4170
|
const n = e.evaluate("lin", t);
|
|
4172
|
-
n && (r.gradientType = h.GradientType.Linear, n.hasAttribute("ang") && (r.angle = (
|
|
4173
|
-
const o =
|
|
4171
|
+
n && (r.gradientType = h.GradientType.Linear, n.hasAttribute("ang") && (r.angle = (xr(n.getAttribute("ang")) + 90) % 360), n.hasAttribute("scaled") && (r.scaled = vr(n.getAttribute("scaled"))));
|
|
4172
|
+
const o = bs(t.getAttribute("flip"));
|
|
4174
4173
|
o && (r.flip = o);
|
|
4175
4174
|
const s = e.evaluate("path", t);
|
|
4176
4175
|
if (s) {
|
|
4177
|
-
s.hasAttribute("path") && (r.gradientType =
|
|
4176
|
+
s.hasAttribute("path") && (r.gradientType = ms(s.getAttribute("path")));
|
|
4178
4177
|
const t = e.evaluate("fillToRect", s);
|
|
4179
4178
|
if (t) {
|
|
4180
4179
|
const e = this.getFocus(t);
|
|
@@ -4186,7 +4185,7 @@ var Go = (e) => {
|
|
|
4186
4185
|
const i = [], l = e.evaluate("gsLst/gs", t), c = l ? l.length : 0;
|
|
4187
4186
|
for (let t = 0; t < c; t++) {
|
|
4188
4187
|
const r = l.item(t), n = {
|
|
4189
|
-
offset:
|
|
4188
|
+
offset: Or(r.getAttribute("pos") ?? "") / 100,
|
|
4190
4189
|
color: this.processAdjColor(e, r)
|
|
4191
4190
|
};
|
|
4192
4191
|
i.push(n);
|
|
@@ -4194,7 +4193,7 @@ var Go = (e) => {
|
|
|
4194
4193
|
return i.length > 0 && (r.stops = i), r;
|
|
4195
4194
|
}
|
|
4196
4195
|
getFocus(e) {
|
|
4197
|
-
const t = (t) => e.hasAttribute(t) ?
|
|
4196
|
+
const t = (t) => e.hasAttribute(t) ? Or(e.getAttribute(t)) / 100 : 0;
|
|
4198
4197
|
return [
|
|
4199
4198
|
"l",
|
|
4200
4199
|
"t",
|
|
@@ -4209,7 +4208,7 @@ var Go = (e) => {
|
|
|
4209
4208
|
}
|
|
4210
4209
|
processImageFill(e, t) {
|
|
4211
4210
|
const r = { type: h.Type.Image };
|
|
4212
|
-
if (t.hasAttribute("rotWithShape") && (r.isRotatedWithShape =
|
|
4211
|
+
if (t.hasAttribute("rotWithShape") && (r.isRotatedWithShape = vr(t.getAttribute("rotWithShape"))), t.hasAttribute("dpi")) {
|
|
4213
4212
|
const e = parseFloat(t.getAttribute("dpi"));
|
|
4214
4213
|
isNaN(e) || (r.dpi = e);
|
|
4215
4214
|
}
|
|
@@ -4238,10 +4237,10 @@ var Go = (e) => {
|
|
|
4238
4237
|
const a = e.evaluate("tile", t);
|
|
4239
4238
|
if (a) {
|
|
4240
4239
|
const e = {};
|
|
4241
|
-
a.hasAttribute("tx") && (e.offsetX =
|
|
4242
|
-
const t =
|
|
4240
|
+
a.hasAttribute("tx") && (e.offsetX = Rr(a.getAttribute("tx")) ?? 0), a.hasAttribute("ty") && (e.offsetY = Rr(a.getAttribute("ty")) ?? 0), a.hasAttribute("sx") && (e.scaleX = Or(a.getAttribute("sx"))), a.hasAttribute("sy") && (e.scaleY = Or(a.getAttribute("sy")));
|
|
4241
|
+
const t = bs(a.getAttribute("flip"));
|
|
4243
4242
|
t && (e.flip = t);
|
|
4244
|
-
const n =
|
|
4243
|
+
const n = Is(a.getAttribute("algn"));
|
|
4245
4244
|
n && (e.alignment = n), r.tile = e;
|
|
4246
4245
|
}
|
|
4247
4246
|
return r;
|
|
@@ -4253,7 +4252,7 @@ var Go = (e) => {
|
|
|
4253
4252
|
["t", "top"],
|
|
4254
4253
|
["r", "right"],
|
|
4255
4254
|
["b", "bottom"]
|
|
4256
|
-
]) e.hasAttribute(r) && (t[n] =
|
|
4255
|
+
]) e.hasAttribute(r) && (t[n] = Or(e.getAttribute(r)));
|
|
4257
4256
|
return t;
|
|
4258
4257
|
}
|
|
4259
4258
|
processPatternFill(e, t) {
|
|
@@ -4290,7 +4289,7 @@ var Go = (e) => {
|
|
|
4290
4289
|
return i ? this.processSrgbClrElement(e, i) : null;
|
|
4291
4290
|
}
|
|
4292
4291
|
processScrgbClrElement(e, t) {
|
|
4293
|
-
let r = "lrgb(" +
|
|
4292
|
+
let r = "lrgb(" + Or(t.getAttribute("r") ?? "") + "," + Or(t.getAttribute("g") ?? "") + "," + Or(t.getAttribute("b") ?? "") + ")";
|
|
4294
4293
|
return r += this.processAdjustments(e, t), r;
|
|
4295
4294
|
}
|
|
4296
4295
|
processSrgbClrElement(e, t) {
|
|
@@ -4298,7 +4297,7 @@ var Go = (e) => {
|
|
|
4298
4297
|
return r += this.processAdjustments(e, t), r;
|
|
4299
4298
|
}
|
|
4300
4299
|
processHslClr(e, t) {
|
|
4301
|
-
let r = "hsl(" +
|
|
4300
|
+
let r = "hsl(" + xr(t.getAttribute("hue") ?? "") + "," + Or(t.getAttribute("sat") ?? "") + "," + Or(t.getAttribute("lum") ?? "") + ")";
|
|
4302
4301
|
return r += this.processAdjustments(e, t), r;
|
|
4303
4302
|
}
|
|
4304
4303
|
processClrWithValAttribute(e, t) {
|
|
@@ -4323,28 +4322,28 @@ var Go = (e) => {
|
|
|
4323
4322
|
const o = t.getAttribute("val");
|
|
4324
4323
|
return o ? ` ${r} ${!o || parseFloat(o) / n}` : ` ${r}`;
|
|
4325
4324
|
}
|
|
4326
|
-
},
|
|
4325
|
+
}, ms = (e) => "circle" === e ? h.GradientType.Path : e, Ss = (e) => {
|
|
4327
4326
|
if ("rnd" === e) return "round";
|
|
4328
4327
|
if ("flat" === e) return "butt";
|
|
4329
4328
|
if ("sq" === e) return "square";
|
|
4330
4329
|
throw new Error("Invalid lineCap type: " + e);
|
|
4331
|
-
},
|
|
4330
|
+
}, ys = new Set(Object.values(x)), Is = (e) => null !== e && ys.has(e) ? e : void 0, Rs = new Set(Object.values(h.TileFlip)), bs = (e) => null !== e && Rs.has(e) ? e : void 0, Os = /\/(?:\w+:)?(?:sp|cxnSp|pic)\/(?:\w+:)?spPr$/, xs = /\/(?:\w+:)?grpSp\//, vs = class extends As {
|
|
4332
4331
|
visit(e, t, r) {
|
|
4333
4332
|
try {
|
|
4334
4333
|
const n = e.evaluate("xfrm", t);
|
|
4335
4334
|
if (n) {
|
|
4336
|
-
|
|
4335
|
+
ts(n, r), "1" === n.getAttribute("flipH") && (r.flipH = !0), "1" === n.getAttribute("flipV") && (r.flipV = !0);
|
|
4337
4336
|
const t = {
|
|
4338
4337
|
x: 0,
|
|
4339
4338
|
y: 0,
|
|
4340
4339
|
width: 0,
|
|
4341
4340
|
height: 0
|
|
4342
4341
|
}, o = e.evaluate("off", n);
|
|
4343
|
-
o && (t.x =
|
|
4342
|
+
o && (t.x = Rr(o.getAttribute("x")) ?? 0, t.y = Rr(o.getAttribute("y")) ?? 0);
|
|
4344
4343
|
const s = e.evaluate("ext", n);
|
|
4345
|
-
o && (t.width =
|
|
4344
|
+
o && (t.width = Rr(s.getAttribute("cx")) ?? 0, t.height = Rr(s.getAttribute("cy")) ?? 0);
|
|
4346
4345
|
const a = e.getPath();
|
|
4347
|
-
|
|
4346
|
+
Os.test(a) && !xs.test(a) || (r.bounds = t);
|
|
4348
4347
|
}
|
|
4349
4348
|
const o = e.evaluate("prstGeom", t);
|
|
4350
4349
|
if (o?.hasAttribute("prst")) {
|
|
@@ -4360,18 +4359,18 @@ var Go = (e) => {
|
|
|
4360
4359
|
} else {
|
|
4361
4360
|
const n = e.evaluate("custGeom", t);
|
|
4362
4361
|
n && (r.geometry = ((e) => {
|
|
4363
|
-
const t = { paths: [] }, r = us(
|
|
4362
|
+
const t = { paths: [] }, r = ps(us(e, "avLst"), "gd").map(fs);
|
|
4364
4363
|
r.length && (t.av = r);
|
|
4365
|
-
const n = us(
|
|
4364
|
+
const n = ps(us(e, "gdLst"), "gd").map(fs);
|
|
4366
4365
|
n.length && (t.gd = n);
|
|
4367
|
-
const o =
|
|
4368
|
-
const [t, r] =
|
|
4369
|
-
return "ahXY" === e.localName ? `xy ${
|
|
4366
|
+
const o = us(e, "ahLst"), s = o ? cs(o).map((e) => {
|
|
4367
|
+
const [t, r] = ds(e);
|
|
4368
|
+
return "ahXY" === e.localName ? `xy ${Es(e, "gdRefX")} ${Es(e, "gdRefY")} ${t} ${r}${hs(e, [
|
|
4370
4369
|
"minX",
|
|
4371
4370
|
"maxX",
|
|
4372
4371
|
"minY",
|
|
4373
4372
|
"maxY"
|
|
4374
|
-
])}` : "ahPolar" === e.localName ? `polar ${
|
|
4373
|
+
])}` : "ahPolar" === e.localName ? `polar ${Es(e, "gdRefR")} ${Es(e, "gdRefAng")} ${t} ${r}${hs(e, [
|
|
4375
4374
|
"minR",
|
|
4376
4375
|
"maxR",
|
|
4377
4376
|
"minAng",
|
|
@@ -4379,13 +4378,13 @@ var Go = (e) => {
|
|
|
4379
4378
|
])}` : null;
|
|
4380
4379
|
}).filter((e) => null !== e) : [];
|
|
4381
4380
|
s.length && (t.ah = s);
|
|
4382
|
-
const a = us(
|
|
4383
|
-
const [t, r] =
|
|
4381
|
+
const a = ps(us(e, "cxnLst"), "cxn").map((e) => {
|
|
4382
|
+
const [t, r] = ds(e);
|
|
4384
4383
|
return `${e.getAttribute("ang") ?? "0"} ${t} ${r}`;
|
|
4385
4384
|
});
|
|
4386
4385
|
a.length && (t.cxn = a);
|
|
4387
|
-
const i =
|
|
4388
|
-
return i && (t.rect = `${
|
|
4386
|
+
const i = us(e, "rect");
|
|
4387
|
+
return i && (t.rect = `${Es(i, "l")} ${Es(i, "t")} ${Es(i, "r")} ${Es(i, "b")}`), t.paths = ps(us(e, "pathLst"), "path").map(gs), t;
|
|
4389
4388
|
})(n));
|
|
4390
4389
|
}
|
|
4391
4390
|
const s = this.getFill(e, t);
|
|
@@ -4407,12 +4406,12 @@ var Go = (e) => {
|
|
|
4407
4406
|
e.warn(`Unable to read shape properties: ${t?.message ?? t}`, { onceKey: "xlsx.shape.unreadable" });
|
|
4408
4407
|
}
|
|
4409
4408
|
}
|
|
4410
|
-
},
|
|
4409
|
+
}, Cs = [
|
|
4411
4410
|
["latin", "font"],
|
|
4412
4411
|
["ea", "eastAsianFont"],
|
|
4413
4412
|
["cs", "complexScriptFont"],
|
|
4414
4413
|
["sym", "symbolFont"]
|
|
4415
|
-
],
|
|
4414
|
+
], Ns = (e) => {
|
|
4416
4415
|
const t = {}, r = e.getAttribute("typeface");
|
|
4417
4416
|
r && (r.startsWith("+mj") ? t.scheme = T.Scheme.Major : r.startsWith("+mn") ? t.scheme = T.Scheme.Minor : t.family = r);
|
|
4418
4417
|
const n = e.getAttribute("panose");
|
|
@@ -4422,7 +4421,7 @@ var Go = (e) => {
|
|
|
4422
4421
|
return Number.isNaN(t) ? void 0 : (t % 256 + 256) % 256;
|
|
4423
4422
|
})(e.getAttribute("charset")) : void 0;
|
|
4424
4423
|
return void 0 !== o && (t.charset = o), Object.keys(t).length > 0 ? t : void 0;
|
|
4425
|
-
},
|
|
4424
|
+
}, Ls = (e, t) => {
|
|
4426
4425
|
const r = {}, n = t.getAttribute("r:id") ?? t.getAttribute("id");
|
|
4427
4426
|
if (n) {
|
|
4428
4427
|
const t = e.getRelationships().get(n);
|
|
@@ -4432,8 +4431,8 @@ var Go = (e) => {
|
|
|
4432
4431
|
"string" == typeof t && (r.address = t);
|
|
4433
4432
|
}
|
|
4434
4433
|
}
|
|
4435
|
-
return t.hasAttribute("tooltip") && (r.screenTip = t.getAttribute("tooltip")), t.hasAttribute("tgtFrame") && (r.target = t.getAttribute("tgtFrame")), t.hasAttribute("action") && (r.action = t.getAttribute("action")), t.hasAttribute("history") && (r.history =
|
|
4436
|
-
},
|
|
4434
|
+
return t.hasAttribute("tooltip") && (r.screenTip = t.getAttribute("tooltip")), t.hasAttribute("tgtFrame") && (r.target = t.getAttribute("tgtFrame")), t.hasAttribute("action") && (r.action = t.getAttribute("action")), t.hasAttribute("history") && (r.history = vr(t.getAttribute("history"))), r;
|
|
4435
|
+
}, Ds = class extends As {
|
|
4437
4436
|
constructor(e = "text") {
|
|
4438
4437
|
super(), this._jsonKey = e;
|
|
4439
4438
|
}
|
|
@@ -4446,7 +4445,7 @@ var Go = (e) => {
|
|
|
4446
4445
|
}
|
|
4447
4446
|
parseTextElement(e, t, r, n) {
|
|
4448
4447
|
const o = e.evaluate("p/pPr/defRPr", t) ?? e.evaluate("defRPr", t), s = void 0 !== o?.length ? o.item(0) : o;
|
|
4449
|
-
s && (this.parseTextProperties(e, s, r), new
|
|
4448
|
+
s && (this.parseTextProperties(e, s, r), new vs().visit(e, s, r));
|
|
4450
4449
|
const a = r.runs ?? [], i = e.evaluate("p/r", t) ?? e.evaluate("r", t), l = (t) => {
|
|
4451
4450
|
const r = {};
|
|
4452
4451
|
let n = e.evaluate("t", t);
|
|
@@ -4457,11 +4456,11 @@ var Go = (e) => {
|
|
|
4457
4456
|
else l(i || t);
|
|
4458
4457
|
a.length > 0 && (r.runs = a);
|
|
4459
4458
|
const c = e.evaluate("bodyPr", t);
|
|
4460
|
-
c &&
|
|
4459
|
+
c && ts(c, r);
|
|
4461
4460
|
}
|
|
4462
4461
|
parseTextProperties(e, t, r) {
|
|
4463
4462
|
if (!t) return;
|
|
4464
|
-
t.hasAttribute("sz") && (r.size = parseFloat(t.getAttribute("sz")) / 100), t.hasAttribute("b") && (r.weight = "1" === t.getAttribute("b") ? 700 : 400), t.hasAttribute("i") && (r.style = "1" === t.getAttribute("i") ? T.Style.Italic : T.Style.Normal), t.hasAttribute("u") && (r.underline =
|
|
4463
|
+
t.hasAttribute("sz") && (r.size = parseFloat(t.getAttribute("sz")) / 100), t.hasAttribute("b") && (r.weight = "1" === t.getAttribute("b") ? 700 : 400), t.hasAttribute("i") && (r.style = "1" === t.getAttribute("i") ? T.Style.Italic : T.Style.Normal), t.hasAttribute("u") && (r.underline = Ko.read(t.getAttribute("u"))), t.hasAttribute("strike") && (r.strike = zo.read(t.getAttribute("strike"))), t.hasAttribute("lang") && (r.language = t.getAttribute("lang")), t.hasAttribute("altLang") && (r.alternateLanguage = t.getAttribute("altLang")), t.hasAttribute("kern") && (r.kerning = parseFloat(t.getAttribute("kern")) / 100), t.hasAttribute("spc") && (r.letterSpacing = parseFloat(t.getAttribute("spc")) / 100), t.hasAttribute("baseline") && (r.baseline = Or(t.getAttribute("baseline"))), t.hasAttribute("cap") && (r.capitals = t.getAttribute("cap")), t.hasAttribute("normalizeH") && (r.normalizeHeight = vr(t.getAttribute("normalizeH")));
|
|
4465
4464
|
const n = this.getFill(e, t);
|
|
4466
4465
|
n && Object.keys(n).length > 0 && (r.color = n);
|
|
4467
4466
|
const o = e.evaluate("ln", t);
|
|
@@ -4478,36 +4477,36 @@ var Go = (e) => {
|
|
|
4478
4477
|
}
|
|
4479
4478
|
const i = e.evaluate("hlinkClick", t);
|
|
4480
4479
|
i && (r.hyperlink = this.readHyperlink(e, i));
|
|
4481
|
-
for (const [n, o] of
|
|
4480
|
+
for (const [n, o] of Cs) {
|
|
4482
4481
|
const s = e.evaluate(n, t);
|
|
4483
4482
|
if (!s) continue;
|
|
4484
|
-
const a =
|
|
4483
|
+
const a = Ns(s);
|
|
4485
4484
|
a && (r[o] = a);
|
|
4486
4485
|
}
|
|
4487
4486
|
}
|
|
4488
4487
|
readHyperlink(e, t) {
|
|
4489
|
-
return
|
|
4488
|
+
return Ls(e, t);
|
|
4490
4489
|
}
|
|
4491
|
-
},
|
|
4490
|
+
}, Ps = /* @__PURE__ */ new Set([
|
|
4492
4491
|
"pPr",
|
|
4493
4492
|
"rPr",
|
|
4494
4493
|
"endParaRPr",
|
|
4495
4494
|
"bodyPr",
|
|
4496
4495
|
"lstStyle"
|
|
4497
|
-
]),
|
|
4496
|
+
]), ws = (e) => {
|
|
4498
4497
|
const t = [], r = e.childNodes;
|
|
4499
4498
|
for (let e = 0; e < r.length; e++) {
|
|
4500
4499
|
const n = r.item(e);
|
|
4501
4500
|
1 === n.nodeType && t.push(n);
|
|
4502
4501
|
}
|
|
4503
4502
|
return t;
|
|
4504
|
-
},
|
|
4505
|
-
const t = e.paragraphs.map(
|
|
4503
|
+
}, Ms = (e, t) => ws(e).find((e) => e.localName === t), Fs = (e) => e.runs.map((e) => e.text ?? "").join(""), ks = (e) => {
|
|
4504
|
+
const t = e.paragraphs.map(Fs);
|
|
4506
4505
|
let r = 0, n = t.length;
|
|
4507
4506
|
for (; r < n && "" === t[r].trim();) r++;
|
|
4508
4507
|
for (; n > r && "" === t[n - 1].trim();) n--;
|
|
4509
4508
|
return t.slice(r, n).join("\n");
|
|
4510
|
-
},
|
|
4509
|
+
}, Bs = {
|
|
4511
4510
|
anchor: b.VerticalAlignment.Top,
|
|
4512
4511
|
anchorCenter: !1,
|
|
4513
4512
|
wrap: "square",
|
|
@@ -4521,16 +4520,16 @@ var Go = (e) => {
|
|
|
4521
4520
|
compatibleLineSpacing: !1,
|
|
4522
4521
|
spaceFirstLastParagraph: !1,
|
|
4523
4522
|
autoFit: b.Autofit.None
|
|
4524
|
-
},
|
|
4523
|
+
}, Us = Object.freeze({
|
|
4525
4524
|
verticalOverflow: b.Overflow.Visible,
|
|
4526
4525
|
horizontalOverflow: b.Overflow.Visible,
|
|
4527
4526
|
size: 18
|
|
4528
|
-
}),
|
|
4529
|
-
left:
|
|
4530
|
-
top:
|
|
4531
|
-
right:
|
|
4532
|
-
bottom:
|
|
4533
|
-
},
|
|
4527
|
+
}), $s = {
|
|
4528
|
+
left: Rr("91440") ?? 0,
|
|
4529
|
+
top: Rr("45720") ?? 0,
|
|
4530
|
+
right: Rr("91440") ?? 0,
|
|
4531
|
+
bottom: Rr("45720") ?? 0
|
|
4532
|
+
}, Vs = {
|
|
4534
4533
|
align: R.ParagraphAlignment.Left,
|
|
4535
4534
|
level: 0,
|
|
4536
4535
|
marginLeft: 0,
|
|
@@ -4540,7 +4539,7 @@ var Go = (e) => {
|
|
|
4540
4539
|
eastAsianLineBreak: !0,
|
|
4541
4540
|
latinLineBreak: !1,
|
|
4542
4541
|
hangingPunctuation: !0
|
|
4543
|
-
},
|
|
4542
|
+
}, Ws = {
|
|
4544
4543
|
weight: 400,
|
|
4545
4544
|
style: T.Style.Normal,
|
|
4546
4545
|
underline: T.UnderlineStyle.None,
|
|
@@ -4550,26 +4549,26 @@ var Go = (e) => {
|
|
|
4550
4549
|
baseline: 0,
|
|
4551
4550
|
capitals: R.SmallCaps.None,
|
|
4552
4551
|
normalizeHeight: !1
|
|
4553
|
-
},
|
|
4552
|
+
}, Gs = (e, t) => {
|
|
4554
4553
|
for (const r of Object.keys(t)) e[r] === t[r] && delete e[r];
|
|
4555
|
-
},
|
|
4554
|
+
}, Hs = (e, t, r) => {
|
|
4556
4555
|
if (void 0 !== N.inheritedTextSize(e, t)) return;
|
|
4557
|
-
const n = r.size ??
|
|
4556
|
+
const n = r.size ?? Us.size;
|
|
4558
4557
|
n === N.TEXT_DEFAULTS.size ? delete r.size : r.size = n;
|
|
4559
|
-
},
|
|
4558
|
+
}, _s = class extends Ds {
|
|
4560
4559
|
visit(e, t, r) {
|
|
4561
4560
|
return t ? (r.text = this.readTextBody(e, t), r) : r;
|
|
4562
4561
|
}
|
|
4563
4562
|
readTextBody(e, t) {
|
|
4564
4563
|
const r = [];
|
|
4565
|
-
for (const n of
|
|
4566
|
-
const n = { paragraphs: r }, o =
|
|
4564
|
+
for (const n of ws(t)) "p" === n.localName && r.push(this.readParagraph(e, n));
|
|
4565
|
+
const n = { paragraphs: r }, o = Ms(t, "bodyPr");
|
|
4567
4566
|
if (o) {
|
|
4568
|
-
|
|
4569
|
-
const t =
|
|
4567
|
+
ts(o, n);
|
|
4568
|
+
const t = Xs(o), r = e ? Ms(o, "extLst") : null, s = r ? e.serializeElement(r) : null;
|
|
4570
4569
|
s && (t.extLst = s), Object.keys(t).length > 0 && (n.body = t);
|
|
4571
4570
|
}
|
|
4572
|
-
const s =
|
|
4571
|
+
const s = Ms(t, "lstStyle");
|
|
4573
4572
|
if (s && e) {
|
|
4574
4573
|
const t = this.readListStyle(e, s);
|
|
4575
4574
|
t && (n.listStyle = t);
|
|
@@ -4577,19 +4576,19 @@ var Go = (e) => {
|
|
|
4577
4576
|
return ((e) => {
|
|
4578
4577
|
0 === e.rotation && delete e.rotation;
|
|
4579
4578
|
for (const t of ["verticalOverflow", "horizontalOverflow"]) {
|
|
4580
|
-
const r = e.body?.[t] ??
|
|
4579
|
+
const r = e.body?.[t] ?? Us[t];
|
|
4581
4580
|
r === N.TEXT_DEFAULTS[t] ? e.body && delete e.body[t] : Object.assign(e.body ??= {}, { [t]: r });
|
|
4582
4581
|
}
|
|
4583
4582
|
for (const t of e.paragraphs) {
|
|
4584
|
-
for (const r of t.runs) "\n" !== r.text &&
|
|
4585
|
-
0 === t.runs.length && (t.endRun ??= {}), t.endRun &&
|
|
4583
|
+
for (const r of t.runs) "\n" !== r.text && Hs(e, t, r);
|
|
4584
|
+
0 === t.runs.length && (t.endRun ??= {}), t.endRun && Hs(e, t, t.endRun);
|
|
4586
4585
|
}
|
|
4587
4586
|
const t = e.body;
|
|
4588
|
-
t && (
|
|
4587
|
+
t && (Gs(t, Bs), t.insets && (Gs(t.insets, $s), 0 === Object.keys(t.insets).length && delete t.insets), 0 === Object.keys(t).length && delete e.body);
|
|
4589
4588
|
for (const t of e.paragraphs) {
|
|
4590
|
-
if (!e.listStyle && (
|
|
4591
|
-
for (const e of t.runs)
|
|
4592
|
-
t.endRun &&
|
|
4589
|
+
if (!e.listStyle && (Gs(t, Vs), !t.defaultRun)) {
|
|
4590
|
+
for (const e of t.runs) Gs(e, Ws);
|
|
4591
|
+
t.endRun && Gs(t.endRun, Ws);
|
|
4593
4592
|
}
|
|
4594
4593
|
t.endRun && 0 === Object.keys(t.endRun).length && delete t.endRun;
|
|
4595
4594
|
}
|
|
@@ -4604,11 +4603,11 @@ var Go = (e) => {
|
|
|
4604
4603
|
e && this.parseTextProperties(e, t, n), Object.keys(n).length > 0 && (r.endRun = n);
|
|
4605
4604
|
return;
|
|
4606
4605
|
}
|
|
4607
|
-
if (
|
|
4606
|
+
if (Ps.has(o)) return;
|
|
4608
4607
|
if ("br" === o) return void r.runs.push({ text: "\n" });
|
|
4609
4608
|
if ("r" === o || "fld" === o) {
|
|
4610
4609
|
const n = { text: "" };
|
|
4611
|
-
for (const r of
|
|
4610
|
+
for (const r of ws(t)) "rPr" === r.localName ? e && this.parseTextProperties(e, r, n) : "t" === r.localName && (n.text += r.textContent ?? "");
|
|
4612
4611
|
if ("fld" === o) {
|
|
4613
4612
|
const e = { id: t.getAttribute("id") ?? "" }, r = t.getAttribute("type");
|
|
4614
4613
|
r && (e.type = r), n.field = e;
|
|
@@ -4618,36 +4617,36 @@ var Go = (e) => {
|
|
|
4618
4617
|
}
|
|
4619
4618
|
if ("t" === o) return void r.runs.push({ text: t.textContent ?? "" });
|
|
4620
4619
|
const s = "AlternateContent" === o ? ((e) => {
|
|
4621
|
-
const t =
|
|
4622
|
-
return t ?
|
|
4623
|
-
})(t) :
|
|
4620
|
+
const t = Ms(e, "Fallback") ?? Ms(e, "Choice");
|
|
4621
|
+
return t ? ws(t) : [];
|
|
4622
|
+
})(t) : ws(t);
|
|
4624
4623
|
for (const e of s) n(e);
|
|
4625
4624
|
};
|
|
4626
|
-
for (const e of
|
|
4625
|
+
for (const e of ws(t)) n(e);
|
|
4627
4626
|
return r;
|
|
4628
4627
|
}
|
|
4629
4628
|
readParagraphProperties(e, t) {
|
|
4630
4629
|
const r = {}, n = (e, n) => {
|
|
4631
4630
|
const o = t.getAttribute(e);
|
|
4632
|
-
null !== o && (r[n] =
|
|
4631
|
+
null !== o && (r[n] = Rr(o) ?? 0);
|
|
4633
4632
|
};
|
|
4634
|
-
n("marL", "marginLeft"), n("marR", "marginRight"), n("indent", "indent"), n("defTabSz", "defaultTabSize"), t.hasAttribute("lvl") && (r.level = parseInt(t.getAttribute("lvl"), 10)), t.hasAttribute("algn") && (r.align =
|
|
4633
|
+
n("marL", "marginLeft"), n("marR", "marginRight"), n("indent", "indent"), n("defTabSz", "defaultTabSize"), t.hasAttribute("lvl") && (r.level = parseInt(t.getAttribute("lvl"), 10)), t.hasAttribute("algn") && (r.align = jo.read(t.getAttribute("algn"))), t.hasAttribute("fontAlgn") && (r.fontAlign = Yo.read(t.getAttribute("fontAlgn")));
|
|
4635
4634
|
const o = (e, n) => {
|
|
4636
4635
|
const o = t.getAttribute(e);
|
|
4637
|
-
null !== o && (r[n] =
|
|
4636
|
+
null !== o && (r[n] = vr(o));
|
|
4638
4637
|
};
|
|
4639
4638
|
let s;
|
|
4640
4639
|
o("rtl", "rightToLeft"), o("eaLnBrk", "eastAsianLineBreak"), o("latinLnBrk", "latinLineBreak"), o("hangingPunct", "hangingPunctuation");
|
|
4641
4640
|
const a = () => s ??= {};
|
|
4642
|
-
for (const n of
|
|
4641
|
+
for (const n of ws(t)) switch (n.localName) {
|
|
4643
4642
|
case "lnSpc":
|
|
4644
|
-
r.lineSpacing =
|
|
4643
|
+
r.lineSpacing = js(n);
|
|
4645
4644
|
break;
|
|
4646
4645
|
case "spcBef":
|
|
4647
|
-
r.spaceBefore =
|
|
4646
|
+
r.spaceBefore = js(n);
|
|
4648
4647
|
break;
|
|
4649
4648
|
case "spcAft":
|
|
4650
|
-
r.spaceAfter =
|
|
4649
|
+
r.spaceAfter = js(n);
|
|
4651
4650
|
break;
|
|
4652
4651
|
case "buClrTx":
|
|
4653
4652
|
a().colorFollowsText = !0;
|
|
@@ -4661,7 +4660,7 @@ var Go = (e) => {
|
|
|
4661
4660
|
a().sizeFollowsText = !0;
|
|
4662
4661
|
break;
|
|
4663
4662
|
case "buSzPct":
|
|
4664
|
-
a().size = { percent:
|
|
4663
|
+
a().size = { percent: Or(n.getAttribute("val") ?? "0") };
|
|
4665
4664
|
break;
|
|
4666
4665
|
case "buSzPts":
|
|
4667
4666
|
a().size = { points: parseFloat(n.getAttribute("val") ?? "0") / 100 };
|
|
@@ -4670,7 +4669,7 @@ var Go = (e) => {
|
|
|
4670
4669
|
a().fontFollowsText = !0;
|
|
4671
4670
|
break;
|
|
4672
4671
|
case "buFont": {
|
|
4673
|
-
const e =
|
|
4672
|
+
const e = Ns(n);
|
|
4674
4673
|
e && (a().font = e);
|
|
4675
4674
|
break;
|
|
4676
4675
|
}
|
|
@@ -4694,10 +4693,10 @@ var Go = (e) => {
|
|
|
4694
4693
|
break;
|
|
4695
4694
|
case "tabLst": {
|
|
4696
4695
|
const e = [];
|
|
4697
|
-
for (const t of
|
|
4696
|
+
for (const t of ws(n)) {
|
|
4698
4697
|
if ("tab" !== t.localName) continue;
|
|
4699
|
-
const r = { position:
|
|
4700
|
-
n && (r.align =
|
|
4698
|
+
const r = { position: Rr(t.getAttribute("pos")) ?? 0 }, n = t.getAttribute("algn");
|
|
4699
|
+
n && (r.align = Zo.read(n)), e.push(r);
|
|
4701
4700
|
}
|
|
4702
4701
|
r.tabs = e;
|
|
4703
4702
|
break;
|
|
@@ -4713,7 +4712,7 @@ var Go = (e) => {
|
|
|
4713
4712
|
}
|
|
4714
4713
|
readListStyle(e, t) {
|
|
4715
4714
|
const r = {};
|
|
4716
|
-
for (const n of
|
|
4715
|
+
for (const n of ws(t)) {
|
|
4717
4716
|
if ("defPPr" === n.localName) {
|
|
4718
4717
|
r.default = this.readParagraphProperties(e, n);
|
|
4719
4718
|
continue;
|
|
@@ -4723,27 +4722,27 @@ var Go = (e) => {
|
|
|
4723
4722
|
}
|
|
4724
4723
|
return r.default || r.levels ? r : void 0;
|
|
4725
4724
|
}
|
|
4726
|
-
}, _s = (e) => {
|
|
4727
|
-
const t = ws(e, "spcPct");
|
|
4728
|
-
if (t) return { percent: br(t.getAttribute("val") ?? "0") };
|
|
4729
|
-
const r = ws(e, "spcPts");
|
|
4730
|
-
return r ? { points: parseFloat(r.getAttribute("val") ?? "0") / 100 } : void 0;
|
|
4731
4725
|
}, js = (e) => {
|
|
4732
|
-
const t =
|
|
4726
|
+
const t = Ms(e, "spcPct");
|
|
4727
|
+
if (t) return { percent: Or(t.getAttribute("val") ?? "0") };
|
|
4728
|
+
const r = Ms(e, "spcPts");
|
|
4729
|
+
return r ? { points: parseFloat(r.getAttribute("val") ?? "0") / 100 } : void 0;
|
|
4730
|
+
}, Ys = (e) => {
|
|
4731
|
+
const t = Ms(e, "avLst");
|
|
4733
4732
|
if (!t) return;
|
|
4734
4733
|
let r;
|
|
4735
|
-
for (const e of
|
|
4734
|
+
for (const e of ws(t)) {
|
|
4736
4735
|
if ("gd" !== e.localName) continue;
|
|
4737
4736
|
const t = e.getAttribute("name"), n = /^\s*val\s+(-?\d+(?:\.\d+)?)\s*$/.exec(e.getAttribute("fmla") ?? "");
|
|
4738
4737
|
t && n && ((r ??= {})[t] = Number(n[1]));
|
|
4739
4738
|
}
|
|
4740
4739
|
return r;
|
|
4741
|
-
},
|
|
4740
|
+
}, Xs = (e) => {
|
|
4742
4741
|
const t = {}, r = (t) => e.getAttribute(t), n = (e, n) => {
|
|
4743
4742
|
const o = r(e);
|
|
4744
|
-
null !== o && (t[n] =
|
|
4743
|
+
null !== o && (t[n] = vr(o));
|
|
4745
4744
|
};
|
|
4746
|
-
null !== r("anchor") && (t.anchor =
|
|
4745
|
+
null !== r("anchor") && (t.anchor = Xo.read(r("anchor"))), n("anchorCtr", "anchorCenter"), null !== r("wrap") && (t.wrap = r("wrap"));
|
|
4747
4746
|
const o = {};
|
|
4748
4747
|
for (const [e, t] of [
|
|
4749
4748
|
["lIns", "left"],
|
|
@@ -4752,10 +4751,10 @@ var Go = (e) => {
|
|
|
4752
4751
|
["bIns", "bottom"]
|
|
4753
4752
|
]) {
|
|
4754
4753
|
const n = r(e);
|
|
4755
|
-
null !== n && (o[t] =
|
|
4754
|
+
null !== n && (o[t] = Rr(n) ?? 0);
|
|
4756
4755
|
}
|
|
4757
|
-
Object.keys(o).length > 0 && (t.insets = o), null !== r("vert") && (t.vertical =
|
|
4758
|
-
for (const r of
|
|
4756
|
+
Object.keys(o).length > 0 && (t.insets = o), null !== r("vert") && (t.vertical = qo.read(r("vert"))), null !== r("vertOverflow") && (t.verticalOverflow = Qo.read(r("vertOverflow"))), null !== r("horzOverflow") && (t.horizontalOverflow = Qo.read(r("horzOverflow"))), n("upright", "upright"), n("rtlCol", "rightToLeftColumns"), null !== r("numCol") && (t.columns = parseInt(r("numCol"), 10)), null !== r("spcCol") && (t.columnSpacing = Rr(r("spcCol")) ?? 0), n("fromWordArt", "fromWordArt"), n("forceAA", "forceAntiAlias"), n("compatLnSpc", "compatibleLineSpacing"), n("spcFirstLastPara", "spaceFirstLastParagraph");
|
|
4757
|
+
for (const r of ws(e)) switch (r.localName) {
|
|
4759
4758
|
case "noAutofit":
|
|
4760
4759
|
t.autoFit = b.Autofit.None;
|
|
4761
4760
|
break;
|
|
@@ -4763,16 +4762,16 @@ var Go = (e) => {
|
|
|
4763
4762
|
t.autoFit = b.Autofit.Shape;
|
|
4764
4763
|
break;
|
|
4765
4764
|
case "normAutofit":
|
|
4766
|
-
t.autoFit = b.Autofit.Normal, r.hasAttribute("fontScale") && (t.fontScale =
|
|
4765
|
+
t.autoFit = b.Autofit.Normal, r.hasAttribute("fontScale") && (t.fontScale = Or(r.getAttribute("fontScale"))), r.hasAttribute("lnSpcReduction") && (t.lineSpacingReduction = Or(r.getAttribute("lnSpcReduction")));
|
|
4767
4766
|
break;
|
|
4768
4767
|
case "prstTxWarp": {
|
|
4769
|
-
const e = { preset: r.getAttribute("prst") ?? "textNoShape" }, n =
|
|
4768
|
+
const e = { preset: r.getAttribute("prst") ?? "textNoShape" }, n = Ys(r);
|
|
4770
4769
|
n && (e.adjustments = n), t.warp = e;
|
|
4771
4770
|
break;
|
|
4772
4771
|
}
|
|
4773
4772
|
}
|
|
4774
4773
|
return t;
|
|
4775
|
-
},
|
|
4774
|
+
}, Ks = "infoBackground [80]", zs = "none [81]", qs = /^(\s*<v:shape\b)((?:[^>"']|"[^"]*"|'[^']*')*)>/, Qs = /<v:fill\b((?:[^>"'/]|"[^"]*"|'[^']*')*)(\/?)>/, Zs = /<v:stroke\b((?:[^>"'/]|"[^"]*"|'[^']*')*)(\/?)>/, Js = /([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, ea = /^(.*?)\s*\[(\d+)\]\s*$/, ta = {
|
|
4776
4775
|
solid: I.DashStyle.Solid,
|
|
4777
4776
|
shortdash: I.DashStyle.SysDash,
|
|
4778
4777
|
shortdot: I.DashStyle.SysDot,
|
|
@@ -4784,7 +4783,7 @@ var Go = (e) => {
|
|
|
4784
4783
|
dashdot: I.DashStyle.DashDot,
|
|
4785
4784
|
longdashdot: I.DashStyle.LongDashDot,
|
|
4786
4785
|
longdashdotdot: I.DashStyle.LongDashDotDot
|
|
4787
|
-
},
|
|
4786
|
+
}, ra = {
|
|
4788
4787
|
[I.DashStyle.Solid]: null,
|
|
4789
4788
|
[I.DashStyle.SysDash]: "shortdash",
|
|
4790
4789
|
[I.DashStyle.SysDot]: "1 1",
|
|
@@ -4796,30 +4795,30 @@ var Go = (e) => {
|
|
|
4796
4795
|
[I.DashStyle.DashDot]: "dashDot",
|
|
4797
4796
|
[I.DashStyle.LongDashDot]: "longDashDot",
|
|
4798
4797
|
[I.DashStyle.LongDashDotDot]: "longDashDotDot"
|
|
4799
|
-
},
|
|
4798
|
+
}, na = {
|
|
4800
4799
|
single: I.Compound.Single,
|
|
4801
4800
|
thinthin: I.Compound.Double,
|
|
4802
4801
|
thinthick: I.Compound.ThinThick,
|
|
4803
4802
|
thickthin: I.Compound.ThickThin,
|
|
4804
4803
|
thickbetweenthin: I.Compound.Triple
|
|
4805
|
-
},
|
|
4804
|
+
}, oa = {
|
|
4806
4805
|
[I.Compound.Single]: null,
|
|
4807
4806
|
[I.Compound.Double]: "thinThin",
|
|
4808
4807
|
[I.Compound.ThinThick]: "thinThick",
|
|
4809
4808
|
[I.Compound.ThickThin]: "thickThin",
|
|
4810
4809
|
[I.Compound.Triple]: "thickBetweenThin"
|
|
4811
|
-
},
|
|
4810
|
+
}, sa = {
|
|
4812
4811
|
80: "infoBackground",
|
|
4813
4812
|
81: "infoText"
|
|
4814
|
-
},
|
|
4813
|
+
}, aa = {
|
|
4815
4814
|
[f.Named.InfoBk]: 80,
|
|
4816
4815
|
[f.Named.InfoText]: 81
|
|
4817
|
-
},
|
|
4816
|
+
}, ia = (e) => e.replace(/"/g, "\"").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&"), la = class {
|
|
4818
4817
|
constructor(e) {
|
|
4819
4818
|
let t;
|
|
4820
|
-
for (this._list = [],
|
|
4819
|
+
for (this._list = [], Js.lastIndex = 0; null !== (t = Js.exec(e));) this._list.push({
|
|
4821
4820
|
name: t[1],
|
|
4822
|
-
value:
|
|
4821
|
+
value: ia(t[2] ?? t[3] ?? ""),
|
|
4823
4822
|
raw: t[0]
|
|
4824
4823
|
});
|
|
4825
4824
|
}
|
|
@@ -4854,21 +4853,21 @@ var Go = (e) => {
|
|
|
4854
4853
|
var t;
|
|
4855
4854
|
}).join(" ");
|
|
4856
4855
|
}
|
|
4857
|
-
},
|
|
4856
|
+
}, ca = class e {
|
|
4858
4857
|
constructor(e) {
|
|
4859
|
-
this._markup = e, this._open =
|
|
4858
|
+
this._markup = e, this._open = qs.exec(e), this.shape = new la(this._open[2]), this._fillTag = Qs.exec(e), this._strokeTag = Zs.exec(e), this.fill = new la(this._fillTag?.[1] ?? ""), this.stroke = new la(this._strokeTag?.[1] ?? "");
|
|
4860
4859
|
}
|
|
4861
4860
|
static _tag(e, t, r) {
|
|
4862
4861
|
const n = !!r && "/" !== r[2];
|
|
4863
4862
|
return t.isEmpty() ? n ? `<${e}>` : "" : `<${e} ${t}${n ? "" : "/"}>`;
|
|
4864
4863
|
}
|
|
4865
4864
|
static from(t) {
|
|
4866
|
-
return
|
|
4865
|
+
return qs.test(t) ? new e(t) : null;
|
|
4867
4866
|
}
|
|
4868
4867
|
toString() {
|
|
4869
4868
|
let t = this._markup.substring(this._open[0].length);
|
|
4870
4869
|
const r = e._tag("v:fill", this.fill, this._fillTag), n = e._tag("v:stroke", this.stroke, this._strokeTag);
|
|
4871
|
-
if (t = this._fillTag ? t.replace(
|
|
4870
|
+
if (t = this._fillTag ? t.replace(Qs, r) : r + t, this._strokeTag) t = t.replace(Zs, n);
|
|
4872
4871
|
else if (n) {
|
|
4873
4872
|
const e = r ? t.indexOf(r) : -1;
|
|
4874
4873
|
t = -1 === e ? n + t : t.substring(0, e + r.length) + n + t.substring(e + r.length);
|
|
@@ -4876,14 +4875,14 @@ var Go = (e) => {
|
|
|
4876
4875
|
const o = this.shape.toString();
|
|
4877
4876
|
return `${this._open[1]}${o ? " " + o : ""}>${t}`;
|
|
4878
4877
|
}
|
|
4879
|
-
},
|
|
4878
|
+
}, ua = (e) => null !== e && /^\s*(f|false)\s*$/i.test(e), pa = (e) => {
|
|
4880
4879
|
if (null === e) return null;
|
|
4881
4880
|
const t = e.trim();
|
|
4882
4881
|
let r;
|
|
4883
4882
|
return r = t.endsWith("f") ? parseFloat(t) / 65536 : t.endsWith("%") ? parseFloat(t) / 100 : parseFloat(t), isNaN(r) ? null : Math.max(0, Math.min(1, r));
|
|
4884
|
-
},
|
|
4883
|
+
}, fa = (e, t) => {
|
|
4885
4884
|
let r = e.trim();
|
|
4886
|
-
const o =
|
|
4885
|
+
const o = ea.exec(r);
|
|
4887
4886
|
o ? r = `index${o[2]}` : /^#[0-9a-f]{3}$/i.test(r) && (r = `#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}`), r = r.toLowerCase();
|
|
4888
4887
|
try {
|
|
4889
4888
|
new n(r);
|
|
@@ -4891,16 +4890,16 @@ var Go = (e) => {
|
|
|
4891
4890
|
return null;
|
|
4892
4891
|
}
|
|
4893
4892
|
return null !== t && t < 1 ? `${r} alpha ${t}` : r;
|
|
4894
|
-
},
|
|
4895
|
-
const r = /^index(\d+)$/i.exec(e.trim())?.[1] ??
|
|
4893
|
+
}, da = (e) => Math.round(e).toString(16).padStart(2, "0"), Ea = (e) => String(Math.round(1e3 * e) / 1e3).replace(/^0\./, "."), ha = (e, t) => {
|
|
4894
|
+
const r = /^index(\d+)$/i.exec(e.trim())?.[1] ?? aa[e.trim()], n = t(e).toRGBA(), o = `#${da(n.red)}${da(n.green)}${da(n.blue)}`, s = void 0 !== n.alpha && n.alpha < 1 ? n.alpha : null;
|
|
4896
4895
|
return void 0 !== r ? {
|
|
4897
|
-
color: `${
|
|
4896
|
+
color: `${sa[Number(r)] ?? o} [${r}]`,
|
|
4898
4897
|
opacity: s
|
|
4899
4898
|
} : {
|
|
4900
4899
|
color: o,
|
|
4901
4900
|
opacity: s
|
|
4902
4901
|
};
|
|
4903
|
-
},
|
|
4902
|
+
}, Ta = (e) => {
|
|
4904
4903
|
if (!e) return null;
|
|
4905
4904
|
if (e.type === h.Type.Solid) return e.color;
|
|
4906
4905
|
const t = e.stops;
|
|
@@ -4908,29 +4907,29 @@ var Go = (e) => {
|
|
|
4908
4907
|
const r = e.foreground;
|
|
4909
4908
|
return "string" == typeof r ? r : null;
|
|
4910
4909
|
};
|
|
4911
|
-
function
|
|
4912
|
-
const t =
|
|
4910
|
+
function ga(e) {
|
|
4911
|
+
const t = ca.from(e);
|
|
4913
4912
|
if (!t) return {
|
|
4914
4913
|
style: {},
|
|
4915
4914
|
markup: e
|
|
4916
4915
|
};
|
|
4917
4916
|
const r = {}, { shape: n, fill: o, stroke: s } = t;
|
|
4918
|
-
if (
|
|
4917
|
+
if (ua(n.get("filled"))) r.fill = { type: h.Type.None }, n.set("filled", null);
|
|
4919
4918
|
else if ("solid" === (o.get("type") ?? "solid").toLowerCase()) {
|
|
4920
|
-
const e = n.get("fillcolor") ?? "white", t =
|
|
4919
|
+
const e = n.get("fillcolor") ?? "white", t = pa(o.get("opacity")), s = e.toLowerCase() !== Ks.toLowerCase() || null !== t && 1 !== t ? fa(e, t) : null;
|
|
4921
4920
|
s && (r.fill = {
|
|
4922
4921
|
type: h.Type.Solid,
|
|
4923
4922
|
color: s
|
|
4924
|
-
}, n.set("fillcolor",
|
|
4923
|
+
}, n.set("fillcolor", Ks, "type"), o.set("opacity", null));
|
|
4925
4924
|
}
|
|
4926
4925
|
const a = {};
|
|
4927
|
-
if (
|
|
4926
|
+
if (ua(n.get("stroked"))) a.fill = { type: h.Type.None }, n.set("stroked", null);
|
|
4928
4927
|
else {
|
|
4929
|
-
const e = n.get("strokecolor") ?? "black", t =
|
|
4928
|
+
const e = n.get("strokecolor") ?? "black", t = pa(s.get("opacity")), r = e.toLowerCase() !== zs.toLowerCase() || null !== t && 1 !== t ? fa(e, t) : null;
|
|
4930
4929
|
r && (a.fill = {
|
|
4931
4930
|
type: h.Type.Solid,
|
|
4932
4931
|
color: r
|
|
4933
|
-
}, n.set("strokecolor",
|
|
4932
|
+
}, n.set("strokecolor", zs, "fillcolor"), s.set("opacity", null));
|
|
4934
4933
|
}
|
|
4935
4934
|
const i = ((e) => {
|
|
4936
4935
|
const t = /^\s*(-?\d*\.?\d+)\s*([a-z]*)\s*$/i.exec(e ?? "");
|
|
@@ -4950,26 +4949,26 @@ function Ta(e) {
|
|
|
4950
4949
|
null !== i && (a.width = i, n.set("strokeweight", null));
|
|
4951
4950
|
const l = s.get("dashstyle")?.trim().toLowerCase();
|
|
4952
4951
|
if (l) {
|
|
4953
|
-
const e =
|
|
4952
|
+
const e = ta[l], t = e ? null : l.split(/[\s,]+/).map(Number);
|
|
4954
4953
|
e ? a.dash = e : t && t.length > 0 && t.every((e) => !isNaN(e) && e >= 0) && (a.dash = 2 === t.length && 1 === t[0] && 1 === t[1] ? I.DashStyle.SysDot : t.map((e) => 100 * e)), void 0 !== a.dash && s.set("dashstyle", null);
|
|
4955
4954
|
}
|
|
4956
|
-
const c =
|
|
4955
|
+
const c = na[s.get("linestyle")?.trim().toLowerCase() ?? ""];
|
|
4957
4956
|
return c && (a.compound = c, s.set("linestyle", null)), Object.keys(a).length > 0 && (r.stroke = a), {
|
|
4958
4957
|
style: r,
|
|
4959
4958
|
markup: t.toString()
|
|
4960
4959
|
};
|
|
4961
4960
|
}
|
|
4962
|
-
function
|
|
4961
|
+
function Aa(e, t, r) {
|
|
4963
4962
|
if (!t.fill && !t.stroke) return e;
|
|
4964
|
-
const n =
|
|
4963
|
+
const n = ca.from(e);
|
|
4965
4964
|
if (!n) return e;
|
|
4966
4965
|
const { shape: o, fill: s, stroke: a } = n;
|
|
4967
4966
|
if (t.fill) if (t.fill.type === h.Type.None) o.set("filled", "f", "type");
|
|
4968
4967
|
else {
|
|
4969
|
-
const e =
|
|
4968
|
+
const e = Ta(t.fill);
|
|
4970
4969
|
if (o.set("filled", null), e) {
|
|
4971
|
-
const t =
|
|
4972
|
-
o.set("fillcolor", t.color, "type"), s.set("opacity", null === t.opacity ? null :
|
|
4970
|
+
const t = ha(e, r);
|
|
4971
|
+
o.set("fillcolor", t.color, "type"), s.set("opacity", null === t.opacity ? null : Ea(t.opacity), ""), s.set("type", null);
|
|
4973
4972
|
}
|
|
4974
4973
|
}
|
|
4975
4974
|
const i = t.stroke;
|
|
@@ -4977,21 +4976,21 @@ function ga(e, t, r) {
|
|
|
4977
4976
|
if (i.fill?.type === h.Type.None) o.set("stroked", "f", "fillcolor");
|
|
4978
4977
|
else {
|
|
4979
4978
|
o.set("stroked", null);
|
|
4980
|
-
const e =
|
|
4979
|
+
const e = Ta(i.fill);
|
|
4981
4980
|
if (e) {
|
|
4982
|
-
const t =
|
|
4983
|
-
o.set("strokecolor", t.color, "fillcolor"), a.set("opacity", null === t.opacity ? null :
|
|
4981
|
+
const t = ha(e, r);
|
|
4982
|
+
o.set("strokecolor", t.color, "fillcolor"), a.set("opacity", null === t.opacity ? null : Ea(t.opacity), "");
|
|
4984
4983
|
}
|
|
4985
4984
|
}
|
|
4986
4985
|
if (void 0 !== i.width && o.set("strokeweight", Math.round(100 * i.width) / 100 + "pt", "strokecolor"), void 0 !== i.dash) {
|
|
4987
|
-
const e = Array.isArray(i.dash) ? i.dash.map((e) => Math.round(e) / 100).join(" ") :
|
|
4986
|
+
const e = Array.isArray(i.dash) ? i.dash.map((e) => Math.round(e) / 100).join(" ") : ra[i.dash] ?? null;
|
|
4988
4987
|
a.set("dashstyle", e);
|
|
4989
4988
|
}
|
|
4990
|
-
void 0 !== i.compound && a.set("linestyle",
|
|
4989
|
+
void 0 !== i.compound && a.set("linestyle", oa[i.compound] ?? null);
|
|
4991
4990
|
}
|
|
4992
4991
|
return n.toString();
|
|
4993
4992
|
}
|
|
4994
|
-
var
|
|
4993
|
+
var ma = /\s*<v:shape\b[\s\S]*?<\/v:shape>/g, Sa = /<x:ClientData\b[^>]*\bObjectType="Note"/, ya = /<x:Row>\s*(-?\d+)\s*<\/x:Row>/, Ia = /<x:Column>\s*(-?\d+)\s*<\/x:Column>/, Ra = /<x:Anchor>([\s\d,-]*)<\/x:Anchor>/, ba = /<x:Visible\s*(?:\/>|>([^<]*)<\/x:Visible>)/, Oa = /\s*<\/xml>\s*$/, xa = /^\s*<v:shape\b((?:[^>"']|"[^"]*"|'[^']*')*)>/, va = /([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, Ca = /<o:idmap\b[^>]*\bdata="([^"]*)"/, Na = /* @__PURE__ */ new Set([
|
|
4995
4994
|
"position",
|
|
4996
4995
|
"margin-left",
|
|
4997
4996
|
"margin-top",
|
|
@@ -4999,18 +4998,18 @@ var Aa = /\s*<v:shape\b[\s\S]*?<\/v:shape>/g, ma = /<x:ClientData\b[^>]*\bObject
|
|
|
4999
4998
|
"height",
|
|
5000
4999
|
"z-index",
|
|
5001
5000
|
"visibility"
|
|
5002
|
-
]),
|
|
5001
|
+
]), La = /* @__PURE__ */ new Set([
|
|
5003
5002
|
"id",
|
|
5004
5003
|
"o:spid",
|
|
5005
5004
|
"alt",
|
|
5006
5005
|
"style"
|
|
5007
|
-
]),
|
|
5008
|
-
function
|
|
5006
|
+
]), Da = .75;
|
|
5007
|
+
function Pa(e) {
|
|
5009
5008
|
const t = [];
|
|
5010
5009
|
return {
|
|
5011
|
-
rest: e.replace(
|
|
5012
|
-
if (!
|
|
5013
|
-
const r =
|
|
5010
|
+
rest: e.replace(ma, (e) => {
|
|
5011
|
+
if (!Sa.test(e)) return e;
|
|
5012
|
+
const r = ya.exec(e), n = Ia.exec(e);
|
|
5014
5013
|
return r && n ? (t.push({
|
|
5015
5014
|
xml: e,
|
|
5016
5015
|
row: parseInt(r[1], 10),
|
|
@@ -5020,26 +5019,26 @@ function Da(e) {
|
|
|
5020
5019
|
notes: t
|
|
5021
5020
|
};
|
|
5022
5021
|
}
|
|
5023
|
-
function
|
|
5022
|
+
function wa(e) {
|
|
5024
5023
|
return /<v:shape\b/.test(e);
|
|
5025
5024
|
}
|
|
5026
|
-
var
|
|
5025
|
+
var Ma = (e) => e.replace(/"/g, "\"").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&"), Fa = (e) => {
|
|
5027
5026
|
const t = [], r = e.split(";");
|
|
5028
5027
|
for (let e = 0; e < r.length; e++) {
|
|
5029
5028
|
const n = r[e].trim();
|
|
5030
5029
|
if (!n) continue;
|
|
5031
5030
|
const o = n.substring(0, n.indexOf(":")).trim().toLowerCase();
|
|
5032
|
-
|
|
5031
|
+
Na.has(o) || t.push(n.replace(/\s+/g, " "));
|
|
5033
5032
|
}
|
|
5034
5033
|
return t.join(";");
|
|
5035
|
-
},
|
|
5036
|
-
const t =
|
|
5034
|
+
}, ka = (e) => {
|
|
5035
|
+
const t = xa.exec(e);
|
|
5037
5036
|
if (!t) return null;
|
|
5038
5037
|
const r = [];
|
|
5039
5038
|
let n, o = "", s = null;
|
|
5040
|
-
for (
|
|
5039
|
+
for (va.lastIndex = 0; null !== (n = va.exec(t[1]));) {
|
|
5041
5040
|
const e = n[1], t = n[2] ?? n[3] ?? "";
|
|
5042
|
-
"style" === e ? o =
|
|
5041
|
+
"style" === e ? o = Fa(t) : "alt" === e ? s = Ma(t) || null : La.has(e) || r.push(n[0].replace(/\s+/g, " "));
|
|
5043
5042
|
}
|
|
5044
5043
|
return {
|
|
5045
5044
|
attributes: r,
|
|
@@ -5048,65 +5047,65 @@ var wa = (e) => e.replace(/"/g, "\"").replace(/'/g, "'").replace(/<
|
|
|
5048
5047
|
end: t[0].length
|
|
5049
5048
|
};
|
|
5050
5049
|
};
|
|
5051
|
-
function
|
|
5052
|
-
const t =
|
|
5050
|
+
function Ba(e) {
|
|
5051
|
+
const t = ka(e);
|
|
5053
5052
|
if (!t) return null;
|
|
5054
5053
|
const r = t.attributes.slice();
|
|
5055
5054
|
t.style && r.push(`style='${t.style}'`);
|
|
5056
|
-
const n = e.substring(t.end).replace(
|
|
5055
|
+
const n = e.substring(t.end).replace(Ra, "").replace(ya, "").replace(Ia, "").replace(ba, "").replace(/>\s+</g, "><").replace(/\s+/g, " ").trim();
|
|
5057
5056
|
return `<v:shape${r.length > 0 ? " " + r.join(" ") : ""}>${n}`;
|
|
5058
5057
|
}
|
|
5059
|
-
var
|
|
5058
|
+
var Ua = Ba("<v:shape type=\"#_x0000_t202\" fillcolor=\"infoBackground [80]\" strokecolor=\"none [81]\"\n o:insetmode=\"auto\">\n <v:fill color2=\"infoBackground [80]\"/>\n <v:shadow color=\"none [81]\" obscured=\"t\"/>\n <v:path o:connecttype=\"none\"/>\n <v:textbox style='mso-direction-alt:auto'>\n <div style='text-align:left'></div>\n </v:textbox>\n <x:ClientData ObjectType=\"Note\">\n <x:MoveWithCells/>\n <x:SizeWithCells/>\n <x:AutoFill>False</x:AutoFill>\n </x:ClientData>\n </v:shape>"), $a = {
|
|
5060
5059
|
"": 1,
|
|
5061
5060
|
px: 1,
|
|
5062
|
-
pt: 1 /
|
|
5061
|
+
pt: 1 / Da,
|
|
5063
5062
|
pc: 16,
|
|
5064
5063
|
in: 96,
|
|
5065
5064
|
cm: 96 / 2.54,
|
|
5066
5065
|
mm: 96 / 25.4
|
|
5067
|
-
},
|
|
5068
|
-
const t =
|
|
5066
|
+
}, Va = (e) => {
|
|
5067
|
+
const t = xa.exec(e);
|
|
5069
5068
|
if (!t) return "";
|
|
5070
5069
|
let r;
|
|
5071
|
-
for (
|
|
5070
|
+
for (va.lastIndex = 0; null !== (r = va.exec(t[1]));) if ("style" === r[1]) return r[2] ?? r[3] ?? "";
|
|
5072
5071
|
return "";
|
|
5073
|
-
}, Va = (e) => {
|
|
5074
|
-
const t = /^\s*(-?\d*\.?\d+)\s*([a-z]*)\s*$/i.exec(e ?? ""), r = t ? Ua[t[2].toLowerCase()] : void 0;
|
|
5075
|
-
return void 0 === r ? null : parseFloat(t[1]) * r;
|
|
5076
5072
|
}, Wa = (e) => {
|
|
5073
|
+
const t = /^\s*(-?\d*\.?\d+)\s*([a-z]*)\s*$/i.exec(e ?? ""), r = t ? $a[t[2].toLowerCase()] : void 0;
|
|
5074
|
+
return void 0 === r ? null : parseFloat(t[1]) * r;
|
|
5075
|
+
}, Ga = (e) => {
|
|
5077
5076
|
const t = /* @__PURE__ */ new Map(), r = e.split(";");
|
|
5078
5077
|
for (let e = 0; e < r.length; e++) {
|
|
5079
5078
|
const n = r[e].indexOf(":");
|
|
5080
5079
|
-1 !== n && t.set(r[e].substring(0, n).trim().toLowerCase(), r[e].substring(n + 1));
|
|
5081
5080
|
}
|
|
5082
5081
|
return {
|
|
5083
|
-
x: Math.round(
|
|
5084
|
-
y: Math.round(
|
|
5085
|
-
width: Math.round(
|
|
5086
|
-
height: Math.round(
|
|
5082
|
+
x: Math.round(Wa(t.get("margin-left")) ?? 0),
|
|
5083
|
+
y: Math.round(Wa(t.get("margin-top")) ?? 0),
|
|
5084
|
+
width: Math.round(Wa(t.get("width")) ?? 1e3),
|
|
5085
|
+
height: Math.round(Wa(t.get("height")) ?? 1e3)
|
|
5087
5086
|
};
|
|
5088
5087
|
};
|
|
5089
|
-
function
|
|
5088
|
+
function Ha(e) {
|
|
5090
5089
|
let t = null;
|
|
5091
|
-
const r =
|
|
5090
|
+
const r = Ra.exec(e);
|
|
5092
5091
|
if (r) {
|
|
5093
5092
|
const e = r[1].split(",").map((e) => parseInt(e.trim(), 10));
|
|
5094
5093
|
8 !== e.length || e.some((e) => isNaN(e)) || (t = e);
|
|
5095
5094
|
}
|
|
5096
|
-
const n =
|
|
5095
|
+
const n = ba.exec(e), o = !!n && !/^\s*f/i.test(n[1] ?? ""), s = Ba(e), a = null === s ? null : ga(s);
|
|
5097
5096
|
return {
|
|
5098
5097
|
anchor: t,
|
|
5099
|
-
bounds: t ? null :
|
|
5098
|
+
bounds: t ? null : Ga(Va(e)),
|
|
5100
5099
|
visible: o,
|
|
5101
|
-
alt:
|
|
5100
|
+
alt: ka(e)?.alt ?? null,
|
|
5102
5101
|
style: a?.style ?? {},
|
|
5103
|
-
xml: null === a || a.markup ===
|
|
5102
|
+
xml: null === a || a.markup === Ua ? null : a.markup
|
|
5104
5103
|
};
|
|
5105
5104
|
}
|
|
5106
|
-
var
|
|
5107
|
-
function
|
|
5108
|
-
const r = (e ?
|
|
5109
|
-
let a = `position:absolute;margin-left:${
|
|
5105
|
+
var _a = (e) => Math.round(e * Da * 100) / 100 + "pt";
|
|
5106
|
+
function ja(e, t) {
|
|
5107
|
+
const r = (e ? Ba(e) : null) ?? Ua, n = ka(r), { bounds: o, anchor: s } = t;
|
|
5108
|
+
let a = `position:absolute;margin-left:${_a(o.x)};margin-top:${_a(o.y)};width:${_a(o.width)};height:${_a(o.height)};z-index:${t.zIndex};visibility:${t.visible ? "visible" : "hidden"}`;
|
|
5110
5109
|
n.style && (a += `;${n.style}`);
|
|
5111
5110
|
const i = n.attributes.slice(), l = i.findIndex((e) => e.startsWith("type="));
|
|
5112
5111
|
var c;
|
|
@@ -5115,17 +5114,17 @@ function _a(e, t) {
|
|
|
5115
5114
|
const p = `<x:Anchor>${s.join(", ")}</x:Anchor>`, f = `<x:Row>${t.row}</x:Row><x:Column>${t.col}</x:Column>${t.visible ? "<x:Visible/>" : ""}`;
|
|
5116
5115
|
return u = u.includes("<x:AutoFill") ? u.replace("<x:AutoFill", `${p}<x:AutoFill`).replace("</x:ClientData>", `${f}</x:ClientData>`) : u.replace("</x:ClientData>", `${p}${f}</x:ClientData>`), `<v:shape id="_x0000_s${t.shapeId}" ${i.join(" ")}>${u}`;
|
|
5117
5116
|
}
|
|
5118
|
-
function
|
|
5119
|
-
const t =
|
|
5117
|
+
function Ya(e) {
|
|
5118
|
+
const t = Ca.exec(e), r = t ? parseInt(t[1], 10) : NaN;
|
|
5120
5119
|
let n = 1024 * (isNaN(r) || r < 1 ? 1 : r);
|
|
5121
5120
|
for (const t of e.matchAll(/\b(?:id|o:spid)="_x0000_s(\d+)"/g)) n = Math.max(n, parseInt(t[1], 10));
|
|
5122
5121
|
return n;
|
|
5123
5122
|
}
|
|
5124
|
-
function
|
|
5123
|
+
function Xa(e, t, r, n = "<v:shapetype id=\"_x0000_t202\" coordsize=\"21600,21600\" o:spt=\"202\"\n path=\"m,l,21600r21600,l21600,xe\">\n <v:stroke joinstyle=\"miter\"/>\n <v:path gradientshapeok=\"t\" o:connecttype=\"rect\"/>\n </v:shapetype>") {
|
|
5125
5124
|
const o = e && e.trim() ? e : "<xml xmlns:v=\"urn:schemas-microsoft-com:vml\"\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n xmlns:x=\"urn:schemas-microsoft-com:office:excel\">\n <o:shapelayout v:ext=\"edit\">\n <o:idmap v:ext=\"edit\" data=\"1\"/>\n </o:shapelayout></xml>";
|
|
5126
|
-
if (0 === t.length) return
|
|
5125
|
+
if (0 === t.length) return wa(o) ? o : null;
|
|
5127
5126
|
let s = void 0 !== r ? ((e, t) => {
|
|
5128
|
-
const r =
|
|
5127
|
+
const r = Ca.exec(e);
|
|
5129
5128
|
if (!r) return e;
|
|
5130
5129
|
const n = /* @__PURE__ */ new Set(), o = r[1].split(",");
|
|
5131
5130
|
for (let e = 0; e < o.length; e++) {
|
|
@@ -5137,16 +5136,16 @@ function Ya(e, t, r, n = "<v:shapetype id=\"_x0000_t202\" coordsize=\"21600,2160
|
|
|
5137
5136
|
for (let e = s; e <= a; e++) n.has(e) || (n.add(e), i = !0);
|
|
5138
5137
|
if (!i) return e;
|
|
5139
5138
|
const l = Array.from(n).sort((e, t) => e - t).join(",");
|
|
5140
|
-
return e.replace(
|
|
5139
|
+
return e.replace(Ca, (e) => e.replace(/\bdata="[^"]*"/, `data="${l}"`));
|
|
5141
5140
|
})(o, r) : o;
|
|
5142
|
-
const a =
|
|
5141
|
+
const a = Oa.exec(s);
|
|
5143
5142
|
if (!a) return null;
|
|
5144
5143
|
const i = a[0];
|
|
5145
5144
|
s = s.slice(0, a.index);
|
|
5146
5145
|
const l = /\bid="([^"]*)"/.exec(n)?.[1];
|
|
5147
5146
|
return l && new RegExp(`<v:shapetype\\b[^>]*\\bid="${l}"`).test(s) || (s += n), s + t.join("") + i;
|
|
5148
5147
|
}
|
|
5149
|
-
var
|
|
5148
|
+
var Ka = "application/vnd.ms-excel.controlproperties+xml", za = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp", qa = "http://schemas.microsoft.com/office/drawing/2010/main", Qa = {
|
|
5150
5149
|
Button: "button",
|
|
5151
5150
|
CheckBox: "checkBox",
|
|
5152
5151
|
Radio: "optionButton",
|
|
@@ -5158,9 +5157,9 @@ var Xa = "application/vnd.ms-excel.controlproperties+xml", Ka = "http://schemas.
|
|
|
5158
5157
|
Label: "label",
|
|
5159
5158
|
EditBox: "editBox",
|
|
5160
5159
|
Dialog: "dialog"
|
|
5161
|
-
},
|
|
5162
|
-
for (const e in
|
|
5163
|
-
var
|
|
5160
|
+
}, Za = {};
|
|
5161
|
+
for (const e in Qa) Za[Qa[e]] = e;
|
|
5162
|
+
var Ja = "formControl", ei = /* @__PURE__ */ new Set([...Object.values(Qa), Ja]), ti = (e) => void 0 !== e && ei.has(e), ri = {
|
|
5164
5163
|
Button: "button",
|
|
5165
5164
|
Checkbox: "checkBox",
|
|
5166
5165
|
Radio: "optionButton",
|
|
@@ -5172,26 +5171,26 @@ var Za = "formControl", Ja = /* @__PURE__ */ new Set([...Object.values(qa), Za])
|
|
|
5172
5171
|
Label: "label",
|
|
5173
5172
|
Edit: "editBox",
|
|
5174
5173
|
Dialog: "dialog"
|
|
5175
|
-
},
|
|
5176
|
-
for (const e in
|
|
5177
|
-
var
|
|
5174
|
+
}, ni = {};
|
|
5175
|
+
for (const e in ri) ni[ri[e]] = e;
|
|
5176
|
+
var oi = {
|
|
5178
5177
|
combo: "combo",
|
|
5179
5178
|
comboedit: "comboEdit",
|
|
5180
5179
|
simple: "simple"
|
|
5181
|
-
},
|
|
5180
|
+
}, si = {
|
|
5182
5181
|
combo: "combo",
|
|
5183
5182
|
comboEdit: "comboedit",
|
|
5184
5183
|
simple: "simple"
|
|
5185
|
-
},
|
|
5184
|
+
}, ai = /* @__PURE__ */ new Set([
|
|
5186
5185
|
"macro",
|
|
5187
5186
|
"linkedCell",
|
|
5188
5187
|
"listFillRange"
|
|
5189
|
-
]),
|
|
5188
|
+
]), ii = (e) => "1" === e || "true" === e, li = (e) => {
|
|
5190
5189
|
if (void 0 === e) return;
|
|
5191
5190
|
const t = Number(e);
|
|
5192
5191
|
return isNaN(t) ? void 0 : t;
|
|
5193
|
-
},
|
|
5194
|
-
function
|
|
5192
|
+
}, ci = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
5193
|
+
function ui(e, t, r) {
|
|
5195
5194
|
const n = {}, o = {};
|
|
5196
5195
|
let s;
|
|
5197
5196
|
for (const t in e) {
|
|
@@ -5210,62 +5209,62 @@ function ci(e, t, r) {
|
|
|
5210
5209
|
n.listFillRange = r;
|
|
5211
5210
|
break;
|
|
5212
5211
|
case "val":
|
|
5213
|
-
n.value =
|
|
5212
|
+
n.value = li(r);
|
|
5214
5213
|
break;
|
|
5215
5214
|
case "min":
|
|
5216
|
-
n.min =
|
|
5215
|
+
n.min = li(r);
|
|
5217
5216
|
break;
|
|
5218
5217
|
case "max":
|
|
5219
|
-
n.max =
|
|
5218
|
+
n.max = li(r);
|
|
5220
5219
|
break;
|
|
5221
5220
|
case "inc":
|
|
5222
|
-
n.increment =
|
|
5221
|
+
n.increment = li(r);
|
|
5223
5222
|
break;
|
|
5224
5223
|
case "page":
|
|
5225
|
-
n.pageIncrement =
|
|
5224
|
+
n.pageIncrement = li(r);
|
|
5226
5225
|
break;
|
|
5227
5226
|
case "horiz":
|
|
5228
|
-
|
|
5227
|
+
ii(r) && (n.horizontal = !0);
|
|
5229
5228
|
break;
|
|
5230
5229
|
case "sel": {
|
|
5231
|
-
const e =
|
|
5230
|
+
const e = li(r);
|
|
5232
5231
|
void 0 !== e && e > 0 && (n.selectedIndex = e - 1);
|
|
5233
5232
|
break;
|
|
5234
5233
|
}
|
|
5235
5234
|
case "dropStyle": {
|
|
5236
|
-
const e =
|
|
5235
|
+
const e = oi[r];
|
|
5237
5236
|
e ? n.dropStyle = e : o[t] = r;
|
|
5238
5237
|
break;
|
|
5239
5238
|
}
|
|
5240
5239
|
case "dropLines":
|
|
5241
|
-
n.dropLines =
|
|
5240
|
+
n.dropLines = li(r);
|
|
5242
5241
|
break;
|
|
5243
5242
|
default: o[t] = r;
|
|
5244
5243
|
}
|
|
5245
5244
|
}
|
|
5246
|
-
let a = s ?
|
|
5247
|
-
return a || (a =
|
|
5245
|
+
let a = s ? Qa[s] : void 0;
|
|
5246
|
+
return a || (a = Ja, s && (o.objectType = s)), Object.keys(o).length > 0 && (n.formProps = o), t.length > 0 && (n.items = [...t]), r && (n.extLst = r), {
|
|
5248
5247
|
type: a,
|
|
5249
5248
|
json: n
|
|
5250
5249
|
};
|
|
5251
5250
|
}
|
|
5252
|
-
function
|
|
5253
|
-
const r = t, n = r.formProps, o = [["objectType",
|
|
5251
|
+
function pi(e, t) {
|
|
5252
|
+
const r = t, n = r.formProps, o = [["objectType", Za[e] ?? n?.objectType ?? "Unknown"]], s = (e, t) => {
|
|
5254
5253
|
void 0 !== t && o.push([e, t]);
|
|
5255
5254
|
};
|
|
5256
|
-
if (r.mixed ? s("checked", "Mixed") : r.checked && s("checked", "Checked"), s("dropLines", r.dropLines), s("dropStyle", r.dropStyle ?
|
|
5255
|
+
if (r.mixed ? s("checked", "Mixed") : r.checked && s("checked", "Checked"), s("dropLines", r.dropLines), s("dropStyle", r.dropStyle ? si[r.dropStyle] : void 0), s("fmlaLink", r.linkedCell), s("fmlaRange", r.listFillRange), r.horizontal && s("horiz", "1"), s("inc", r.increment), s("max", r.max), s("min", r.min), s("page", r.pageIncrement), s("sel", void 0 !== r.selectedIndex ? r.selectedIndex + 1 : void 0), s("val", r.value), n) for (const e in n) "objectType" !== e && s(e, n[e]);
|
|
5257
5256
|
let a = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<formControlPr xmlns=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main\"";
|
|
5258
|
-
for (const [e, t] of o) a += ` ${e}="${
|
|
5257
|
+
for (const [e, t] of o) a += ` ${e}="${ci(String(t))}"`;
|
|
5259
5258
|
const i = r.items, l = void 0 !== i && i.length > 0;
|
|
5260
5259
|
if (!l && !r.extLst) return a + "/>";
|
|
5261
5260
|
if (a += ">", l) {
|
|
5262
5261
|
a += "<itemLst>";
|
|
5263
|
-
for (let e = 0; e < i.length; e++) a += `<item val="${
|
|
5262
|
+
for (let e = 0; e < i.length; e++) a += `<item val="${ci(i[e])}"/>`;
|
|
5264
5263
|
a += "</itemLst>";
|
|
5265
5264
|
}
|
|
5266
5265
|
return r.extLst && (a += r.extLst), a + "</formControlPr>";
|
|
5267
5266
|
}
|
|
5268
|
-
function
|
|
5267
|
+
function fi(e, t) {
|
|
5269
5268
|
const r = t, n = {};
|
|
5270
5269
|
for (const t in e) {
|
|
5271
5270
|
const o = e[t];
|
|
@@ -5273,15 +5272,15 @@ function pi(e, t) {
|
|
|
5273
5272
|
}
|
|
5274
5273
|
Object.keys(n).length > 0 ? r.props = n : delete r.props;
|
|
5275
5274
|
}
|
|
5276
|
-
function
|
|
5275
|
+
function di(e) {
|
|
5277
5276
|
const t = e, r = {}, n = t.props;
|
|
5278
|
-
if (n) for (const e in n)
|
|
5277
|
+
if (n) for (const e in n) ai.has(e) || (r[e] = n[e]);
|
|
5279
5278
|
return void 0 !== t.macro && (r.macro = t.macro), void 0 !== t.linkedCell && (r.linkedCell = t.linkedCell), void 0 !== t.listFillRange && (r.listFillRange = t.listFillRange), r;
|
|
5280
5279
|
}
|
|
5281
|
-
function
|
|
5280
|
+
function Ei(e) {
|
|
5282
5281
|
const t = {};
|
|
5283
5282
|
if (!e) return t;
|
|
5284
|
-
const r =
|
|
5283
|
+
const r = ks(e);
|
|
5285
5284
|
"" !== r && (t.caption = r);
|
|
5286
5285
|
const n = e.paragraphs;
|
|
5287
5286
|
for (let r = 0; r < n.length; r++) {
|
|
@@ -5289,25 +5288,25 @@ function di(e) {
|
|
|
5289
5288
|
if (!s) continue;
|
|
5290
5289
|
const a = {}, i = s.font?.family;
|
|
5291
5290
|
i && (a.name = i), a.size = s.size ?? N.inheritedTextSize(e, o) ?? N.TEXT_DEFAULTS.size, void 0 !== s.weight && s.weight >= 700 && (a.bold = !0), s.style === T.Style.Italic && (a.italic = !0);
|
|
5292
|
-
const l =
|
|
5291
|
+
const l = hi(s.color);
|
|
5293
5292
|
l && (a.color = l), t.font = a;
|
|
5294
5293
|
break;
|
|
5295
5294
|
}
|
|
5296
5295
|
return t;
|
|
5297
5296
|
}
|
|
5298
|
-
var
|
|
5297
|
+
var hi = (e) => {
|
|
5299
5298
|
const t = "string" == typeof e ? e : e?.color;
|
|
5300
5299
|
if ("string" != typeof t) return;
|
|
5301
5300
|
const r = /^#?([0-9A-Fa-f]{6})$/.exec(t);
|
|
5302
5301
|
return r ? `#${r[1].toUpperCase()}` : void 0;
|
|
5303
5302
|
};
|
|
5304
|
-
function
|
|
5303
|
+
function Ti(e) {
|
|
5305
5304
|
const t = e.movables;
|
|
5306
5305
|
if (!t) return;
|
|
5307
5306
|
const r = /* @__PURE__ */ new Map(), n = t.length;
|
|
5308
5307
|
for (let e = 0; e < n; e++) {
|
|
5309
5308
|
const n = t[e].content;
|
|
5310
|
-
if (!
|
|
5309
|
+
if (!ti(n?.type)) continue;
|
|
5311
5310
|
const o = n.json?.shapeId;
|
|
5312
5311
|
"number" == typeof o && r.set(o, t[e]);
|
|
5313
5312
|
}
|
|
@@ -5324,7 +5323,7 @@ function hi(e) {
|
|
|
5324
5323
|
delete a.twinOf;
|
|
5325
5324
|
const l = r.get(i);
|
|
5326
5325
|
if (!l) continue;
|
|
5327
|
-
const c = l.content.json, u =
|
|
5326
|
+
const c = l.content.json, u = Ei(n.content.json.text);
|
|
5328
5327
|
void 0 !== u.caption && void 0 === c.caption && (c.caption = u.caption), u.font && void 0 === c.font && (c.font = u.font), delete n.hidden, n.content = {
|
|
5329
5328
|
...l.content,
|
|
5330
5329
|
name: l.content.name ?? n.content.name
|
|
@@ -5347,27 +5346,27 @@ function hi(e) {
|
|
|
5347
5346
|
a.push(n);
|
|
5348
5347
|
continue;
|
|
5349
5348
|
}
|
|
5350
|
-
const u =
|
|
5349
|
+
const u = Ei(s.json.text);
|
|
5351
5350
|
void 0 !== u.caption && void 0 === c.caption && (c.caption = u.caption), u.font && void 0 === c.font && (c.font = u.font);
|
|
5352
5351
|
}
|
|
5353
5352
|
a.length !== n && (e.movables = a);
|
|
5354
5353
|
}
|
|
5355
|
-
function
|
|
5354
|
+
function gi(e, t, r, n) {
|
|
5356
5355
|
const o = t.shapeId ?? 0, s = "button" === e;
|
|
5357
|
-
let a = `<xdr:sp macro="" textlink=""><xdr:nvSpPr><xdr:cNvPr id="${o}" name="${
|
|
5356
|
+
let a = `<xdr:sp macro="" textlink=""><xdr:nvSpPr><xdr:cNvPr id="${o}" name="${ci(r ?? "")}" hidden="1"><a:extLst><a:ext uri="{63B3BB69-23CF-44E3-9099-C40C66FF867C}"><a14:compatExt xmlns:a14="${qa}" spid="_x0000_s${o}"/></a:ext></a:extLst></xdr:cNvPr><xdr:cNvSpPr/></xdr:nvSpPr><xdr:spPr bwMode="auto">` + (n ? `<a:xfrm><a:off x="${Ai(n.x)}" y="${Ai(n.y)}"/><a:ext cx="${Ai(n.width)}" cy="${Ai(n.height)}"/></a:xfrm>` : "<a:xfrm><a:off x=\"0\" y=\"0\"/><a:ext cx=\"0\" cy=\"0\"/></a:xfrm>") + "<a:prstGeom prst=\"rect\"><a:avLst/></a:prstGeom><a:noFill/>" + (s ? "<a:ln w=\"9525\"><a:miter lim=\"800000\"/><a:headEnd/><a:tailEnd/></a:ln>" : "<a:ln><a:noFill/></a:ln>") + "</xdr:spPr>";
|
|
5358
5357
|
const i = t.caption;
|
|
5359
5358
|
if (void 0 !== i) {
|
|
5360
5359
|
const e = t.font;
|
|
5361
5360
|
let r = "<a:rPr lang=\"en-US\"";
|
|
5362
|
-
void 0 !== e?.size && (r += ` sz="${Math.round(100 * e.size)}"`), r += ` b="${e?.bold ? 1 : 0}" i="${e?.italic ? 1 : 0}" u="none" strike="noStrike" baseline="0">`, e?.color && (r += `<a:solidFill><a:srgbClr val="${e.color.replace("#", "").toUpperCase()}"/></a:solidFill>`), e?.name && (r += `<a:latin typeface="${
|
|
5361
|
+
void 0 !== e?.size && (r += ` sz="${Math.round(100 * e.size)}"`), r += ` b="${e?.bold ? 1 : 0}" i="${e?.italic ? 1 : 0}" u="none" strike="noStrike" baseline="0">`, e?.color && (r += `<a:solidFill><a:srgbClr val="${e.color.replace("#", "").toUpperCase()}"/></a:solidFill>`), e?.name && (r += `<a:latin typeface="${ci(e.name)}"/>`), r += "</a:rPr>", a += "<xdr:txBody><a:bodyPr vertOverflow=\"clip\" wrap=\"square\" lIns=\"27432\" tIns=\"27432\" rIns=\"27432\" bIns=\"27432\" anchor=\"ctr\" upright=\"1\"/><a:lstStyle/>";
|
|
5363
5362
|
const n = i.split("\n");
|
|
5364
|
-
for (let e = 0; e < n.length; e++) a += `<a:p><a:pPr algn="${s ? "ctr" : "l"}" rtl="0"><a:defRPr sz="1000"/></a:pPr><a:r>${r}<a:t>${
|
|
5363
|
+
for (let e = 0; e < n.length; e++) a += `<a:p><a:pPr algn="${s ? "ctr" : "l"}" rtl="0"><a:defRPr sz="1000"/></a:pPr><a:r>${r}<a:t>${ci(n[e])}</a:t></a:r></a:p>`;
|
|
5365
5364
|
a += "</xdr:txBody>";
|
|
5366
5365
|
}
|
|
5367
5366
|
return a + "</xdr:sp>";
|
|
5368
5367
|
}
|
|
5369
|
-
var
|
|
5370
|
-
function
|
|
5368
|
+
var Ai = (e) => Math.round(9525 * e);
|
|
5369
|
+
function mi(e, t) {
|
|
5371
5370
|
const r = [], n = t.movables ?? [], o = e.getMovables().getItems().filter((e) => "note" !== e.getContent().getType()), s = (t, n, o) => {
|
|
5372
5371
|
const a = (t.content?.json)?.members ?? [], i = n?.getMovables()?.getItems() ?? [];
|
|
5373
5372
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -5376,18 +5375,18 @@ function Ai(e, t) {
|
|
|
5376
5375
|
s(n, i[t], o);
|
|
5377
5376
|
continue;
|
|
5378
5377
|
}
|
|
5379
|
-
if (!
|
|
5378
|
+
if (!ti(n.content?.type)) continue;
|
|
5380
5379
|
const l = i[t]?.getBounds();
|
|
5381
5380
|
l && r.push({
|
|
5382
5381
|
jsonMovable: n,
|
|
5383
|
-
anchor:
|
|
5382
|
+
anchor: Si(e, l),
|
|
5384
5383
|
anchorType: o
|
|
5385
5384
|
});
|
|
5386
5385
|
}
|
|
5387
5386
|
};
|
|
5388
5387
|
for (let e = 0; e < n.length; e++) {
|
|
5389
5388
|
const t = n[e], a = t.anchorType ?? "twoCell";
|
|
5390
|
-
"group" === t.content?.type ? s(t, o[e], a) :
|
|
5389
|
+
"group" === t.content?.type ? s(t, o[e], a) : ti(t.content?.type) && r.push({
|
|
5391
5390
|
jsonMovable: t,
|
|
5392
5391
|
anchor: t.anchor,
|
|
5393
5392
|
anchorType: a
|
|
@@ -5395,7 +5394,7 @@ function Ai(e, t) {
|
|
|
5395
5394
|
}
|
|
5396
5395
|
return r;
|
|
5397
5396
|
}
|
|
5398
|
-
var
|
|
5397
|
+
var Si = (e, t) => {
|
|
5399
5398
|
const r = (t, r) => {
|
|
5400
5399
|
const n = e.getRangeAtBounds({
|
|
5401
5400
|
x: t,
|
|
@@ -5419,38 +5418,38 @@ var mi = (e, t) => {
|
|
|
5419
5418
|
tl: r(t.x, t.y),
|
|
5420
5419
|
br: r(t.x + t.width, t.y + t.height)
|
|
5421
5420
|
};
|
|
5422
|
-
},
|
|
5423
|
-
"xmlns:a14":
|
|
5421
|
+
}, yi = { "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006" }, Ii = {
|
|
5422
|
+
"xmlns:a14": qa,
|
|
5424
5423
|
Requires: "a14"
|
|
5425
|
-
},
|
|
5426
|
-
function
|
|
5427
|
-
return e.replace(
|
|
5428
|
-
const t =
|
|
5429
|
-
return void 0 !== t && void 0 !==
|
|
5424
|
+
}, Ri = /\s*<v:shape\b[\s\S]*?<\/v:shape>/g, bi = /<x:ClientData\b[^>]*\bObjectType="([^"]*)"/, Oi = /\bo:spid="_x0000_s(\d+)"/, xi = /\bid="_x0000_s(\d+)"/;
|
|
5425
|
+
function vi(e, t) {
|
|
5426
|
+
return e.replace(Ri, (e) => function(e) {
|
|
5427
|
+
const t = bi.exec(e)?.[1];
|
|
5428
|
+
return void 0 !== t && void 0 !== ri[t];
|
|
5430
5429
|
}(e) ? t(e, function(e) {
|
|
5431
|
-
const t =
|
|
5430
|
+
const t = Oi.exec(e) ?? xi.exec(e);
|
|
5432
5431
|
return t ? parseInt(t[1], 10) : null;
|
|
5433
5432
|
}(e)) ?? "" : e);
|
|
5434
5433
|
}
|
|
5435
|
-
var
|
|
5434
|
+
var Ci = "<v:shapetype id=\"_x0000_t201\" coordsize=\"21600,21600\" o:spt=\"201\"\n path=\"m,l,21600r21600,l21600,xe\">\n <v:stroke joinstyle=\"miter\"/>\n <v:path shadowok=\"f\" o:extrusionok=\"f\" strokeok=\"f\" fillok=\"f\" o:connecttype=\"rect\"/>\n <o:lock v:ext=\"edit\" shapetype=\"t\"/>\n </v:shapetype>", Ni = {
|
|
5436
5435
|
attributes: "filled=\"f\" fillcolor=\"windowText [64]\" stroked=\"f\" strokecolor=\"window [65]\" strokeweight=\"3e-5mm\" o:insetmode=\"auto\"",
|
|
5437
5436
|
children: "<v:fill color2=\"window [65]\"/><v:path shadowok=\"t\" strokeok=\"t\" fillok=\"t\"/><o:lock v:ext=\"edit\" rotation=\"t\"/>",
|
|
5438
5437
|
align: "left"
|
|
5439
|
-
},
|
|
5438
|
+
}, Li = {
|
|
5440
5439
|
attributes: "o:insetmode=\"auto\"",
|
|
5441
5440
|
children: "<o:lock v:ext=\"edit\" rotation=\"t\" text=\"t\"/>"
|
|
5442
|
-
},
|
|
5441
|
+
}, Di = {
|
|
5443
5442
|
attributes: "o:insetmode=\"auto\"",
|
|
5444
5443
|
children: "<o:lock v:ext=\"edit\" rotation=\"t\"/>",
|
|
5445
5444
|
align: "left"
|
|
5446
|
-
},
|
|
5445
|
+
}, Pi = {
|
|
5447
5446
|
button: {
|
|
5448
5447
|
attributes: "o:button=\"t\" fillcolor=\"buttonFace [67]\" o:insetmode=\"auto\"",
|
|
5449
5448
|
children: "<v:fill color2=\"buttonFace [67]\" o:detectmouseclick=\"t\"/><o:lock v:ext=\"edit\" rotation=\"t\"/>",
|
|
5450
5449
|
align: "center"
|
|
5451
5450
|
},
|
|
5452
|
-
checkBox:
|
|
5453
|
-
optionButton:
|
|
5451
|
+
checkBox: Ni,
|
|
5452
|
+
optionButton: Ni,
|
|
5454
5453
|
dropDown: {
|
|
5455
5454
|
attributes: "filled=\"f\" fillcolor=\"windowText [64]\" strokecolor=\"windowText [64]\" o:insetmode=\"auto\"",
|
|
5456
5455
|
children: "<v:fill color2=\"window [65]\"/><o:lock v:ext=\"edit\" rotation=\"t\" text=\"t\"/>"
|
|
@@ -5459,8 +5458,8 @@ var vi = "<v:shapetype id=\"_x0000_t201\" coordsize=\"21600,21600\" o:spt=\"201\
|
|
|
5459
5458
|
attributes: "fillcolor=\"window [65]\" strokecolor=\"windowText [64]\" o:insetmode=\"auto\"",
|
|
5460
5459
|
children: "<v:fill color2=\"window [65]\"/><o:lock v:ext=\"edit\" rotation=\"t\" text=\"t\"/>"
|
|
5461
5460
|
},
|
|
5462
|
-
scrollBar:
|
|
5463
|
-
spinner:
|
|
5461
|
+
scrollBar: Li,
|
|
5462
|
+
spinner: Li,
|
|
5464
5463
|
groupBox: {
|
|
5465
5464
|
attributes: "fillcolor=\"window [65]\" strokecolor=\"windowText [64]\" o:insetmode=\"auto\"",
|
|
5466
5465
|
children: "<v:fill color2=\"window [65]\"/><o:lock v:ext=\"edit\" rotation=\"t\"/>",
|
|
@@ -5471,52 +5470,52 @@ var vi = "<v:shapetype id=\"_x0000_t201\" coordsize=\"21600,21600\" o:spt=\"201\
|
|
|
5471
5470
|
children: "<v:fill color2=\"window [65]\"/><o:lock v:ext=\"edit\" rotation=\"t\"/>",
|
|
5472
5471
|
align: "left"
|
|
5473
5472
|
}
|
|
5474
|
-
},
|
|
5473
|
+
}, wi = (e) => "button" === e ? {
|
|
5475
5474
|
h: "center",
|
|
5476
5475
|
v: "center"
|
|
5477
|
-
} : "checkBox" === e || "optionButton" === e ? { v: "center" } : {},
|
|
5478
|
-
function
|
|
5479
|
-
const n =
|
|
5476
|
+
} : "checkBox" === e || "optionButton" === e ? { v: "center" } : {}, Mi = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Fi = (e) => e.replace(/"/g, "\"").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&"), ki = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
5477
|
+
function Bi(e, t, r) {
|
|
5478
|
+
const n = ni[e];
|
|
5480
5479
|
if (!n) return null;
|
|
5481
|
-
const o = t, s =
|
|
5482
|
-
let u = `position:absolute;margin-left:${
|
|
5480
|
+
const o = t, s = Pi[e] ?? Di, a = o.props ?? {}, i = o.formProps ?? {}, l = s.align ? o.caption : void 0, { bounds: c } = r;
|
|
5481
|
+
let u = `position:absolute;margin-left:${_a(c.x)};margin-top:${_a(c.y)};width:${_a(c.width)};height:${_a(c.height)};z-index:${r.zIndex}`;
|
|
5483
5482
|
void 0 !== l && (u += ";mso-wrap-style:tight");
|
|
5484
5483
|
let p = `<v:shape id="_x0000_s${r.shapeId}" type="#_x0000_t201" style='${u}' ${s.attributes}>` + s.children;
|
|
5485
5484
|
void 0 !== l && (p += `<v:textbox style='mso-direction-alt:auto' o:singleclick="f"><div style='text-align:${s.align}'>${((e, t) => {
|
|
5486
5485
|
let r = "<font";
|
|
5487
|
-
t?.name && (r += ` face="${
|
|
5488
|
-
let n = e.split("\n").map(
|
|
5486
|
+
t?.name && (r += ` face="${ci(t.name)}"`), void 0 !== t?.size && (r += ` size="${Math.round(20 * t.size)}"`), r += ` color="${t?.color ?? "auto"}">`;
|
|
5487
|
+
let n = e.split("\n").map(Mi).join("<br/>");
|
|
5489
5488
|
return t?.bold && (n = `<b>${n}</b>`), t?.italic && (n = `<i>${n}</i>`), `${r}${n}</font>`;
|
|
5490
5489
|
})(l, o.font)}</div></v:textbox>`);
|
|
5491
5490
|
let f = "";
|
|
5492
5491
|
const d = (e, t) => {
|
|
5493
|
-
f += void 0 === t ? `<x:${e}/>` : `<x:${e}>${
|
|
5492
|
+
f += void 0 === t ? `<x:${e}/>` : `<x:${e}>${Mi(String(t))}</x:${e}>`;
|
|
5494
5493
|
};
|
|
5495
5494
|
"absolute" === r.anchorType && d("MoveWithCells"), "twoCell" !== r.anchorType && d("SizeWithCells"), d("Anchor", r.anchor.join(", ")), "0" === a.print && d("PrintObject", "False"), "0" === a.autoFill && d("AutoFill", "False"), "0" === a.autoLine && d("AutoLine", "False"), o.macro && d("FmlaMacro", o.macro);
|
|
5496
|
-
const E =
|
|
5497
|
-
h && d("TextHAlign",
|
|
5495
|
+
const E = wi(e), h = i.textHAlign ?? E.h, T = i.textVAlign ?? E.v;
|
|
5496
|
+
h && d("TextHAlign", ki(h)), T && d("TextVAlign", ki(T)), o.mixed ? d("Checked", 2) : o.checked && d("Checked", 1), o.linkedCell && d("FmlaLink", o.linkedCell);
|
|
5498
5497
|
const g = "listBox" === e || "dropDown" === e;
|
|
5499
5498
|
if ((g || "scrollBar" === e || "spinner" === e) && (d("Val", o.value ?? 0), d("Min", o.min ?? 0), d("Max", o.max ?? (g ? 0 : 100)), d("Inc", o.increment ?? 1), d("Page", o.pageIncrement ?? ("listBox" === e ? 5 : 10)), o.horizontal && d("Horiz"), void 0 !== i.dx && d("Dx", i.dx)), g) {
|
|
5500
|
-
o.listFillRange && d("FmlaRange", o.listFillRange), d("Sel", void 0 !== o.selectedIndex ? o.selectedIndex + 1 : 0), "1" === i.noThreeD && d("NoThreeD2"), d("SelType",
|
|
5499
|
+
o.listFillRange && d("FmlaRange", o.listFillRange), d("Sel", void 0 !== o.selectedIndex ? o.selectedIndex + 1 : 0), "1" === i.noThreeD && d("NoThreeD2"), d("SelType", ki(i.selType ?? "single")), d("LCT", ki(i.lct ?? "normal"));
|
|
5501
5500
|
const t = o.items ?? [];
|
|
5502
5501
|
for (let e = 0; e < t.length; e++) d("ListItem", t[e]);
|
|
5503
|
-
"dropDown" === e && (d("DropStyle",
|
|
5502
|
+
"dropDown" === e && (d("DropStyle", ki(si[o.dropStyle ?? "combo"] ?? "combo")), d("DropLines", o.dropLines ?? 8));
|
|
5504
5503
|
} else "1" === i.noThreeD && d("NoThreeD");
|
|
5505
5504
|
return "1" === i.firstButton && d("FirstButton"), p += `<x:ClientData ObjectType="${n}">${f}</x:ClientData>`, p + "</v:shape>";
|
|
5506
5505
|
}
|
|
5507
|
-
var
|
|
5508
|
-
function
|
|
5509
|
-
const r =
|
|
5506
|
+
var Ui = /<x:Anchor>([\s\d,-]*)<\/x:Anchor>/, $i = /<x:ClientData\b[^>]*>([\s\S]*?)<\/x:ClientData>/, Vi = /<x:(\w+)\s*(?:\/>|>([^<]*)<\/x:\1>)/g, Wi = /<v:textbox\b[^>]*>([\s\S]*?)<\/v:textbox>/, Gi = /<font\b([^>]*)>/;
|
|
5507
|
+
function Hi(e, t) {
|
|
5508
|
+
const r = bi.exec(e)?.[1], n = r ? ri[r] : void 0;
|
|
5510
5509
|
if (!n) return null;
|
|
5511
|
-
const o =
|
|
5510
|
+
const o = Ui.exec(e)?.[1]?.split(",").map((e) => parseInt(e.trim(), 10));
|
|
5512
5511
|
if (!o || 8 !== o.length || o.some(isNaN)) return null;
|
|
5513
5512
|
const s = {};
|
|
5514
5513
|
null !== t && (s.shapeId = t);
|
|
5515
5514
|
const a = {}, i = {}, l = [];
|
|
5516
5515
|
let c = !0, u = !0;
|
|
5517
|
-
const p =
|
|
5518
|
-
for (const e of f.matchAll(
|
|
5519
|
-
const t =
|
|
5516
|
+
const p = wi(n), f = $i.exec(e)?.[1] ?? "";
|
|
5517
|
+
for (const e of f.matchAll(Vi)) {
|
|
5518
|
+
const t = Fi((e[2] ?? "").trim());
|
|
5520
5519
|
switch (e[1]) {
|
|
5521
5520
|
case "MoveWithCells":
|
|
5522
5521
|
c = !1;
|
|
@@ -5552,19 +5551,19 @@ function Gi(e, t) {
|
|
|
5552
5551
|
t && (s.listFillRange = t);
|
|
5553
5552
|
break;
|
|
5554
5553
|
case "Val":
|
|
5555
|
-
s.value =
|
|
5554
|
+
s.value = li(t);
|
|
5556
5555
|
break;
|
|
5557
5556
|
case "Min":
|
|
5558
|
-
s.min =
|
|
5557
|
+
s.min = li(t);
|
|
5559
5558
|
break;
|
|
5560
5559
|
case "Max":
|
|
5561
|
-
s.max =
|
|
5560
|
+
s.max = li(t);
|
|
5562
5561
|
break;
|
|
5563
5562
|
case "Inc":
|
|
5564
|
-
s.increment =
|
|
5563
|
+
s.increment = li(t);
|
|
5565
5564
|
break;
|
|
5566
5565
|
case "Page":
|
|
5567
|
-
s.pageIncrement =
|
|
5566
|
+
s.pageIncrement = li(t);
|
|
5568
5567
|
break;
|
|
5569
5568
|
case "Horiz":
|
|
5570
5569
|
s.horizontal = !0;
|
|
@@ -5573,7 +5572,7 @@ function Gi(e, t) {
|
|
|
5573
5572
|
i.dx = t;
|
|
5574
5573
|
break;
|
|
5575
5574
|
case "Sel": {
|
|
5576
|
-
const e =
|
|
5575
|
+
const e = li(t);
|
|
5577
5576
|
void 0 !== e && e > 0 && (s.selectedIndex = e - 1);
|
|
5578
5577
|
break;
|
|
5579
5578
|
}
|
|
@@ -5588,27 +5587,27 @@ function Gi(e, t) {
|
|
|
5588
5587
|
l.push(t);
|
|
5589
5588
|
break;
|
|
5590
5589
|
case "DropStyle": {
|
|
5591
|
-
const e =
|
|
5590
|
+
const e = oi[t.toLowerCase()];
|
|
5592
5591
|
e && (s.dropStyle = e);
|
|
5593
5592
|
break;
|
|
5594
5593
|
}
|
|
5595
5594
|
case "DropLines":
|
|
5596
|
-
s.dropLines =
|
|
5595
|
+
s.dropLines = li(t);
|
|
5597
5596
|
break;
|
|
5598
5597
|
case "FirstButton": i.firstButton = "1";
|
|
5599
5598
|
}
|
|
5600
5599
|
}
|
|
5601
|
-
if (l.length > 0 && (s.items = l), Object.keys(a).length > 0 && (s.props = a), Object.keys(i).length > 0 && (s.formProps = i), (
|
|
5600
|
+
if (l.length > 0 && (s.items = l), Object.keys(a).length > 0 && (s.props = a), Object.keys(i).length > 0 && (s.formProps = i), (Pi[n] ?? Di).align) {
|
|
5602
5601
|
const { caption: t, font: r } = ((e) => {
|
|
5603
|
-
const t =
|
|
5602
|
+
const t = Wi.exec(e)?.[1];
|
|
5604
5603
|
if (void 0 === t) return {};
|
|
5605
|
-
const r = t.replace(/\s+/g, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]*>/g, "").split("\n").map((e) =>
|
|
5604
|
+
const r = t.replace(/\s+/g, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]*>/g, "").split("\n").map((e) => Fi(e.trim())).join("\n").trim(), n = {};
|
|
5606
5605
|
"" !== r && (n.caption = r);
|
|
5607
|
-
const o =
|
|
5606
|
+
const o = Gi.exec(t)?.[1];
|
|
5608
5607
|
if (o) {
|
|
5609
5608
|
const e = {}, r = /\bface="([^"]*)"/.exec(o)?.[1];
|
|
5610
|
-
r && (e.name =
|
|
5611
|
-
const s =
|
|
5609
|
+
r && (e.name = Fi(r));
|
|
5610
|
+
const s = li(/\bsize="([^"]*)"/.exec(o)?.[1]);
|
|
5612
5611
|
void 0 !== s && (e.size = s / 20);
|
|
5613
5612
|
const a = /\bcolor="(#[0-9A-Fa-f]{6})"/.exec(o)?.[1];
|
|
5614
5613
|
a && (e.color = a.toUpperCase()), /<b\b/i.test(t) && (e.bold = !0), /<i\b/i.test(t) && (e.italic = !0), Object.keys(e).length > 0 && (n.font = e);
|
|
@@ -5639,46 +5638,46 @@ function Gi(e, t) {
|
|
|
5639
5638
|
}, E = c ? u ? "twoCell" : "oneCell" : "absolute";
|
|
5640
5639
|
return "twoCell" !== E && (d.anchorType = E), d;
|
|
5641
5640
|
}
|
|
5642
|
-
function
|
|
5641
|
+
function _i(e) {
|
|
5643
5642
|
const t = e.legacyDrawing;
|
|
5644
5643
|
if (!t?.xml) return;
|
|
5645
5644
|
const r = /* @__PURE__ */ new Set(), n = e.movables ?? [], o = (e) => {
|
|
5646
5645
|
for (let t = 0; t < e.length; t++) {
|
|
5647
5646
|
const n = e[t].content;
|
|
5648
|
-
if ("group" === n?.type && o(n.json?.members ?? []), !
|
|
5647
|
+
if ("group" === n?.type && o(n.json?.members ?? []), !ti(n?.type)) continue;
|
|
5649
5648
|
const s = n.json?.shapeId;
|
|
5650
5649
|
"number" == typeof s && r.add(s);
|
|
5651
5650
|
}
|
|
5652
5651
|
};
|
|
5653
5652
|
o(n);
|
|
5654
|
-
const s = [], a =
|
|
5653
|
+
const s = [], a = vi(t.xml, (e, t) => {
|
|
5655
5654
|
if (null !== t && r.has(t)) return null;
|
|
5656
|
-
const n =
|
|
5655
|
+
const n = Hi(e, t);
|
|
5657
5656
|
return n ? (s.push(n), null) : e;
|
|
5658
5657
|
});
|
|
5659
|
-
s.length > 0 && (e.movables = [...n, ...s]), a !== t.xml && (
|
|
5658
|
+
s.length > 0 && (e.movables = [...n, ...s]), a !== t.xml && (wa(a) ? t.xml = a : delete e.legacyDrawing);
|
|
5660
5659
|
}
|
|
5661
|
-
var
|
|
5662
|
-
function
|
|
5660
|
+
var ji = "knownFonts";
|
|
5661
|
+
function Yi(e, t) {
|
|
5663
5662
|
const r = e.getByName(t.family, {
|
|
5664
5663
|
bold: t.bold,
|
|
5665
5664
|
italic: t.italic
|
|
5666
5665
|
});
|
|
5667
5666
|
return "loaded" === r.status && ("table" === r.kind || "exact" === r.kind);
|
|
5668
5667
|
}
|
|
5669
|
-
function
|
|
5668
|
+
function Xi(e, t) {
|
|
5670
5669
|
const r = e.getByName(t.family, {
|
|
5671
5670
|
bold: t.bold,
|
|
5672
5671
|
italic: t.italic
|
|
5673
5672
|
});
|
|
5674
5673
|
return "loaded" === r.status && "generic" !== r.kind;
|
|
5675
5674
|
}
|
|
5676
|
-
async function
|
|
5675
|
+
async function Ki(e) {
|
|
5677
5676
|
const t = g.getShared();
|
|
5678
|
-
for (const r of e)
|
|
5679
|
-
return await t.whenReady(), e.every((e) =>
|
|
5677
|
+
for (const r of e) Xi(t, r);
|
|
5678
|
+
return await t.whenReady(), e.every((e) => Xi(t, e));
|
|
5680
5679
|
}
|
|
5681
|
-
function
|
|
5680
|
+
function zi(e) {
|
|
5682
5681
|
const t = /* @__PURE__ */ new Map();
|
|
5683
5682
|
for (const r of e) {
|
|
5684
5683
|
if (!r?.family) continue;
|
|
@@ -5691,4 +5690,4 @@ function Ki(e) {
|
|
|
5691
5690
|
}
|
|
5692
5691
|
return [...t.values()];
|
|
5693
5692
|
}
|
|
5694
|
-
export {
|
|
5693
|
+
export { zn as $, Tr as $t, Ls as A, de as An, Qr as At, Xo as B, te as Bn, Lr as Bt, Ha as C, ae as Cn, zr as Ct, _s as D, fe as Dn, en as Dt, Aa as E, Ee as En, rn as Et, ns as F, he as Fn, jr as Ft, Zo as G, Q as Gn, mr as Gt, Qo as H, j as Hn, Fr as Ht, ss as I, Ae as In, _r as It, qo as J, B as Jn, gr as Jt, Ko as K, Y as Kn, vr as Kt, os as L, ge as Ln, Hr as Lt, As as M, ce as Mn, tn as Mt, es as N, oe as Nn, sn as Nt, ks as O, ue as On, on as Ot, ts as P, Te as Pn, Yr as Pt, Vo as Q, P as Qn, Er as Qt, rs as R, G as Rn, Gr as Rt, Ya as S, le as Sn, un as St, ja as T, se as Tn, qr as Tt, jo as U, Z as Un, wr as Ut, Yo as V, ee as Vn, Nr as Vt, zo as W, J as Wn, Mr as Wt, Bo as X, w as Xn, pr as Xt, $o as Y, k as Yn, Ar as Yt, Wo as Z, M as Zn, fr as Zt, mi as _, Re as _n, dn as _t, Ka as a, ct as an, Eo as at, Ua as b, Ne as bn, an as bt, yi as c, at as cn, mo as ct, Ti as d, Ye as dn, Xn as dt, hr as en, qn as et, di as f, et as fn, gn as ft, ui as g, Ie as gn, En as gt, fi as h, be as hn, fn as ht, Yi as i, St as in, co as it, vs as j, ne as jn, nn as jt, Ds as k, pe as kn, Jr as kt, Ii as l, it as ln, So as lt, ti as m, me as mn, An as mt, Ki as n, sr as nn, Ao as nt, Ci as o, lt as on, go as ot, gi as p, qe as pn, Tn as pt, Jo as q, _ as qn, Rr as qt, zi as r, ar as rn, yo as rt, za as s, nt as sn, ho as st, ji as t, nr as tn, To as tt, _i as u, je as un, Kn as ut, Bi as v, Oe as vn, pn as vt, Pa as w, ie as wn, Zr as wt, Xa as x, xe as xn, cn as xt, pi as y, Ce as yn, ln as yt, _o as z, W as zn, Br as zt };
|