@dpuse/dpuse-tool-file-previewer 1.0.112 → 1.0.113
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
3
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
4
|
get: ((e) => i[e]).bind(null, d),
|
|
5
5
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
@@ -26,9 +26,9 @@ d({}, {
|
|
|
26
26
|
EncodingEra: () => w,
|
|
27
27
|
LanguageFilter: () => ee,
|
|
28
28
|
MINIMUM_THRESHOLD: () => C,
|
|
29
|
-
UniversalDetector: () =>
|
|
30
|
-
detect: () =>
|
|
31
|
-
detectAll: () =>
|
|
29
|
+
UniversalDetector: () => Ca,
|
|
30
|
+
detect: () => wa,
|
|
31
|
+
detectAll: () => Ta
|
|
32
32
|
});
|
|
33
33
|
var p = !1;
|
|
34
34
|
function m() {
|
|
@@ -1690,57 +1690,57 @@ var T = [
|
|
|
1690
1690
|
isMultibyte: !1,
|
|
1691
1691
|
languages: ["de"]
|
|
1692
1692
|
})
|
|
1693
|
-
],
|
|
1694
|
-
function
|
|
1695
|
-
let r = `${e}|${t ? [...t].sort().join(",") : ""}|${n ? [...n].sort().join(",") : ""}`, i =
|
|
1693
|
+
], Se = Object.freeze(Object.fromEntries(xe.map((e) => [e.name, e]))), Ce = /* @__PURE__ */ new Map();
|
|
1694
|
+
function we(e, t, n) {
|
|
1695
|
+
let r = `${e}|${t ? [...t].sort().join(",") : ""}|${n ? [...n].sort().join(",") : ""}`, i = Ce.get(r);
|
|
1696
1696
|
if (i !== void 0) return i;
|
|
1697
|
-
let a = Object.values(
|
|
1697
|
+
let a = Object.values(Se).filter((t) => t.era & e);
|
|
1698
1698
|
t !== void 0 && (a = a.filter((e) => t.has(e.name))), n !== void 0 && (a = a.filter((e) => !n.has(e.name)));
|
|
1699
1699
|
let o = Object.freeze(a);
|
|
1700
|
-
return
|
|
1700
|
+
return Ce.set(r, o), o;
|
|
1701
1701
|
}
|
|
1702
|
-
var
|
|
1703
|
-
function
|
|
1702
|
+
var Te = /* @__PURE__ */ new Map();
|
|
1703
|
+
function Ee(e) {
|
|
1704
1704
|
let t = e.toLowerCase();
|
|
1705
|
-
for (let e of Object.values(
|
|
1705
|
+
for (let e of Object.values(Se)) {
|
|
1706
1706
|
if (e.name === t) return e.name;
|
|
1707
1707
|
for (let n of e.aliases) if (n.toLowerCase() === t) return e.name;
|
|
1708
1708
|
}
|
|
1709
1709
|
let n = me(e);
|
|
1710
|
-
return n === null || n === t ? null :
|
|
1710
|
+
return n === null || n === t ? null : E(n);
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let t =
|
|
1712
|
+
function E(e) {
|
|
1713
|
+
let t = Te.get(e);
|
|
1714
1714
|
if (t !== void 0) return t;
|
|
1715
|
-
let n =
|
|
1716
|
-
return
|
|
1715
|
+
let n = Ee(e);
|
|
1716
|
+
return Te.set(e, n), n;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
let n =
|
|
1718
|
+
function De(e, t) {
|
|
1719
|
+
let n = E(e);
|
|
1720
1720
|
if (n === null) throw Error(`Unknown encoding ${JSON.stringify(e)} in ${t}`);
|
|
1721
1721
|
return n;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function Oe(e, t) {
|
|
1724
1724
|
if (e == null) return null;
|
|
1725
|
-
let n = new Set([...e].map((e) =>
|
|
1725
|
+
let n = new Set([...e].map((e) => De(e, t)));
|
|
1726
1726
|
if (n.size === 0) throw Error(`${t} must not be empty; omit the argument or pass null to disable filtering`);
|
|
1727
1727
|
return n;
|
|
1728
1728
|
}
|
|
1729
|
-
var
|
|
1729
|
+
var ke = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.Sm.Sc.Sk.So.Zs.Zl.Zp.Cc.Cf.Cs.Co.Cn".split("."), D = "\0\x07\b \n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", O = "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFAAACAAA=>ABA<AA8888888888AABBBAA00000000000000000000000000=A>D;D11111111111111111111111111=B>BI", Ae = Object.freeze({
|
|
1730
1730
|
ascii: {
|
|
1731
1731
|
singleByte: !0,
|
|
1732
|
-
cps:
|
|
1733
|
-
cats:
|
|
1732
|
+
cps: D + "",
|
|
1733
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1734
1734
|
},
|
|
1735
1735
|
big5hkscs: {
|
|
1736
1736
|
singleByte: !1,
|
|
1737
|
-
cps:
|
|
1738
|
-
cats:
|
|
1737
|
+
cps: D + "",
|
|
1738
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1739
1739
|
},
|
|
1740
1740
|
cp1006: {
|
|
1741
1741
|
singleByte: !0,
|
|
1742
|
-
cps:
|
|
1743
|
-
cats:
|
|
1742
|
+
cps: D + "
\xA0۰۱۲۳۴۵۶۷۸۹،؛؟ﺁﺍﺎﺎﺏﺑﭖﭘﺓﺕﺗﭦﭨﺙﺛﺝﺟﭺﭼﺡﺣﺥﺧﺩﮄﺫﺭﮌﺯﮊﺱﺳﺵﺷﺹﺻﺽﺿﻁﻅﻉﻊﻋﻌﻍﻎﻏﻐﻑﻓﻕﻗﻙﻛﮒﮔﻝﻟﻠﻡﻣﮞﻥﻧﺅﻭﮦﮨﮩﮪﺀﺉﺊﺋﻱﻲﻳﮰﮮﹼﹽ",
|
|
1743
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF8888888888AAJA444444444444444444444444444444444444444444444444444444444444444444444444444444444"
|
|
1744
1744
|
},
|
|
1745
1745
|
cp1026: {
|
|
1746
1746
|
singleByte: !0,
|
|
@@ -1749,8 +1749,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1749
1749
|
},
|
|
1750
1750
|
cp1125: {
|
|
1751
1751
|
singleByte: !0,
|
|
1752
|
-
cps:
|
|
1753
|
-
cats:
|
|
1752
|
+
cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■\xA0",
|
|
1753
|
+
cats: O + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111111111110101010101ABECEF"
|
|
1754
1754
|
},
|
|
1755
1755
|
cp1140: {
|
|
1756
1756
|
singleByte: !0,
|
|
@@ -1759,48 +1759,48 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1759
1759
|
},
|
|
1760
1760
|
cp1250: {
|
|
1761
1761
|
singleByte: !0,
|
|
1762
|
-
cps:
|
|
1763
|
-
cats:
|
|
1762
|
+
cps: D + "€‚„…†‡‰Š‹ŚŤŽŹ‘’“”•–—™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
|
|
1763
|
+
cats: O + "CM=M=AAAMA0?0000M?@?@A<<ME1@1111F3D0C0EADE0?BJE0EBD1D1AAD11@0D1100000000000000000000000B0000000111111111111111111111111B1111111D"
|
|
1764
1764
|
},
|
|
1765
1765
|
cp1251: {
|
|
1766
1766
|
singleByte: !0,
|
|
1767
|
-
cps:
|
|
1768
|
-
cats:
|
|
1767
|
+
cps: D + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
|
|
1768
|
+
cats: O + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
|
|
1769
1769
|
},
|
|
1770
1770
|
cp1252: {
|
|
1771
1771
|
singleByte: !0,
|
|
1772
|
-
cps:
|
|
1773
|
-
cats:
|
|
1772
|
+
cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
|
|
1773
|
+
cats: O + "CM=1=AAA3A0?0M0MM?@?@A<<DE1@1M10FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
|
|
1774
1774
|
},
|
|
1775
1775
|
cp1253: {
|
|
1776
1776
|
singleByte: !0,
|
|
1777
|
-
cps:
|
|
1778
|
-
cats:
|
|
1777
|
+
cps: D + "€‚ƒ„…†‡‰‹‘’“”•–—™›\xA0΅Ά£¤¥¦§¨©«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ",
|
|
1778
|
+
cats: O + "CM=1=AAAMAM?MMMMM?@?@A<<MEM@MMMMFD0CCCEADEM?BJE<EB::D1AA000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
|
|
1779
1779
|
},
|
|
1780
1780
|
cp1254: {
|
|
1781
1781
|
singleByte: !0,
|
|
1782
|
-
cps:
|
|
1783
|
-
cats:
|
|
1782
|
+
cps: D + "€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ\xA0¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
|
|
1783
|
+
cats: O + "CM=1=AAA3A0?0MMMM?@?@A<<DE1@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
|
|
1784
1784
|
},
|
|
1785
1785
|
cp1255: {
|
|
1786
1786
|
singleByte: !0,
|
|
1787
|
-
cps:
|
|
1788
|
-
cats:
|
|
1787
|
+
cps: D + "€‚ƒ„…†‡ˆ‰‹‘’“”•–—˜™›\xA0¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֻּֽ־ֿ׀ׁׂ׃װױײ׳״אבגדהוזחטיךכלםמןנסעףפץצקרשת",
|
|
1788
|
+
cats: O + "CM=1=AAA3AM?MMMMM?@?@A<<DEM@MMMMFACCCCEADEB?BJEDEB::D1AAD:B@:::A5555555555M555<5A55A444AAMMMMMMM444444444444444444444444444MMJJM"
|
|
1789
1789
|
},
|
|
1790
1790
|
cp1256: {
|
|
1791
1791
|
singleByte: !0,
|
|
1792
|
-
cps:
|
|
1793
|
-
cats:
|
|
1792
|
+
cps: D + "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں\xA0،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے",
|
|
1793
|
+
cats: O + "C4=1=AAA3A4?04444?@?@A<<4E4@1JJ4FACCCCEADE4?BJEDEB::D1AAD:A@:::A44444444444444444444444B4444344414144441111144115555155B51511JJ4"
|
|
1794
1794
|
},
|
|
1795
1795
|
cp1257: {
|
|
1796
1796
|
singleByte: !0,
|
|
1797
|
-
cps:
|
|
1798
|
-
cats:
|
|
1797
|
+
cps: D + "€‚„…†‡‰‹¨ˇ¸‘’“”•–—™›¯˛\xA0¢£¤¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙",
|
|
1798
|
+
cats: O + "CM=M=AAAMAM?MD3DM?@?@A<<MEM@MDDMFMCCCMEA0E0?BJE0EB::D1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111D"
|
|
1799
1799
|
},
|
|
1800
1800
|
cp1258: {
|
|
1801
1801
|
singleByte: !0,
|
|
1802
|
-
cps:
|
|
1803
|
-
cats:
|
|
1802
|
+
cps: D + "€‚ƒ„…†‡ˆ‰‹Œ‘’“”•–—˜™›œŸ\xA0¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ",
|
|
1803
|
+
cats: O + "CM=1=AAA3AM?0MMMM?@?@A<<DEM@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000050000050000B0000005111111111111151111151111B111111C1"
|
|
1804
1804
|
},
|
|
1805
1805
|
cp273: {
|
|
1806
1806
|
singleByte: !0,
|
|
@@ -1814,8 +1814,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1814
1814
|
},
|
|
1815
1815
|
cp437: {
|
|
1816
1816
|
singleByte: !0,
|
|
1817
|
-
cps:
|
|
1818
|
-
cats:
|
|
1817
|
+
cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1818
|
+
cats: O + "011111111111110001011111100CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1819
1819
|
},
|
|
1820
1820
|
cp500: {
|
|
1821
1821
|
singleByte: !0,
|
|
@@ -1824,93 +1824,93 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1824
1824
|
},
|
|
1825
1825
|
cp720: {
|
|
1826
1826
|
singleByte: !0,
|
|
1827
|
-
cps:
|
|
1828
|
-
cats:
|
|
1827
|
+
cps: D + "éâàçêëèïîّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0",
|
|
1828
|
+
cats: O + "II11I1I111111IIII551C3114444C44444444444444444?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE4444441444444444B555555BEBAB3:EF"
|
|
1829
1829
|
},
|
|
1830
1830
|
cp737: {
|
|
1831
1831
|
singleByte: !0,
|
|
1832
|
-
cps:
|
|
1833
|
-
cats:
|
|
1832
|
+
cps: D + "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0",
|
|
1833
|
+
cats: O + "000000000000000000000000111111111111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111110000000BBB00BBEBAB3:EF"
|
|
1834
1834
|
},
|
|
1835
1835
|
cp775: {
|
|
1836
1836
|
singleByte: !0,
|
|
1837
|
-
cps:
|
|
1838
|
-
cats:
|
|
1837
|
+
cps: D + "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’±“¾¶§÷„°∙·¹³²■\xA0",
|
|
1838
|
+
cats: O + "0111111111011000010110C01001C0BC001011@EEEB::0?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0111111111EEEEEEE010010110101100@JB?:AAB=EBA:::EF"
|
|
1839
1839
|
},
|
|
1840
1840
|
cp850: {
|
|
1841
1841
|
singleByte: !0,
|
|
1842
|
-
cps:
|
|
1843
|
-
cats:
|
|
1842
|
+
cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■\xA0",
|
|
1843
|
+
cats: O + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC100001000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
|
|
1844
1844
|
},
|
|
1845
1845
|
cp852: {
|
|
1846
1846
|
singleByte: !0,
|
|
1847
|
-
cps:
|
|
1848
|
-
cats:
|
|
1847
|
+
cps: D + "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■\xA0",
|
|
1848
|
+
cats: O + "011111111101100000111010100010B11111010101B101?@EEEEE0000EEEE01EEEEEEE01EEEEEEEC100010001EEEE00E010011010010101DJDD3DABDEDD101EF"
|
|
1849
1849
|
},
|
|
1850
1850
|
cp855: {
|
|
1851
1851
|
singleByte: !0,
|
|
1852
|
-
cps:
|
|
1853
|
-
cats:
|
|
1852
|
+
cps: D + "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№ыЫзЗшШэЭщЩчЧ§■\xA0",
|
|
1853
|
+
cats: O + "1010101010101010101010101010101010101010101010?@EEEEE1010EEEE10EEEEEEE10EEEEEEEC101010101EEEE01E010101010101010EJ101010101010AEF"
|
|
1854
1854
|
},
|
|
1855
1855
|
cp856: {
|
|
1856
1856
|
singleByte: !0,
|
|
1857
|
-
cps:
|
|
1858
|
-
cats:
|
|
1857
|
+
cps: D + "אבגדהוזחטיךכלםמןנסעףפץצקרשת£×®¬½¼«»░▒▓│┤©╣║╗╝¢¥┐└┴┬├─┼╚╔╩╦╠═╬¤┘┌█▄¦▀µ¯´±‗¾¶§÷¸°¨·¹³²■\xA0",
|
|
1858
|
+
cats: O + "444444444444444444444444444MCMBMMMMMMMMMMEB::M?@EEEEEMMMEEEEECCEEEEEEEMMEEEEEEECMMMMMMMMMEEEEEMEMMMMMM1MMMMMMMDDJBA:AABDEDA:::EF"
|
|
1859
1859
|
},
|
|
1860
1860
|
cp857: {
|
|
1861
1861
|
singleByte: !0,
|
|
1862
|
-
cps:
|
|
1863
|
-
cats:
|
|
1862
|
+
cps: D + "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ×ÚÛÙìÿ¯´±¾¶§÷¸°¨·¹³²■\xA0",
|
|
1863
|
+
cats: O + "0111111111111100010111110001C00111111001AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC44000M000EEEEE0E0100101MB00011DDJBM:AABDEDA:::EF"
|
|
1864
1864
|
},
|
|
1865
1865
|
cp858: {
|
|
1866
1866
|
singleByte: !0,
|
|
1867
|
-
cps:
|
|
1868
|
-
cats:
|
|
1867
|
+
cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■\xA0",
|
|
1868
|
+
cats: O + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC10000C000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
|
|
1869
1869
|
},
|
|
1870
1870
|
cp860: {
|
|
1871
1871
|
singleByte: !0,
|
|
1872
|
-
cps:
|
|
1873
|
-
cats:
|
|
1872
|
+
cps: D + "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1873
|
+
cats: O + "011111011010010000011101000CC0C011111044A0B::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1874
1874
|
},
|
|
1875
1875
|
cp861: {
|
|
1876
1876
|
singleByte: !0,
|
|
1877
|
-
cps:
|
|
1878
|
-
cats:
|
|
1877
|
+
cps: D + "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1878
|
+
cats: O + "0111111111101000010111101001C0C111110000AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1879
1879
|
},
|
|
1880
1880
|
cp862: {
|
|
1881
1881
|
singleByte: !0,
|
|
1882
|
-
cps:
|
|
1883
|
-
cats:
|
|
1882
|
+
cps: D + "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1883
|
+
cats: O + "444444444444444444444444444CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1884
1884
|
},
|
|
1885
1885
|
cp863: {
|
|
1886
1886
|
singleByte: !0,
|
|
1887
|
-
cps:
|
|
1888
|
-
cats:
|
|
1887
|
+
cps: D + "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1888
|
+
cats: O + "011101A111111A0A00010011C00CC001ED11DD:D0EB:::?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1889
1889
|
},
|
|
1890
1890
|
cp864: {
|
|
1891
1891
|
singleByte: !0,
|
|
1892
1892
|
cps: "\0\x07\b \n\v\f\r\x1B !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸﻻﻼ\xA0ﺂ£¤ﺄﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■",
|
|
1893
|
-
cats:
|
|
1893
|
+
cats: O + "EABBEEEEEEEEEEEE1B1B::B?@44MM44MFJ4CC4MM4444A44488888888884A444AC44444444444444444444444444EBBB4344444444444444445444444444444EM"
|
|
1894
1894
|
},
|
|
1895
1895
|
cp865: {
|
|
1896
1896
|
singleByte: !0,
|
|
1897
|
-
cps:
|
|
1898
|
-
cats:
|
|
1897
|
+
cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
|
|
1898
|
+
cats: O + "0111111111111100010111111001C0C111111044AEB::A?CEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
|
|
1899
1899
|
},
|
|
1900
1900
|
cp866: {
|
|
1901
1901
|
singleByte: !0,
|
|
1902
|
-
cps:
|
|
1903
|
-
cats:
|
|
1902
|
+
cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■\xA0",
|
|
1903
|
+
cats: O + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE111111111111111101010101EBABECEF"
|
|
1904
1904
|
},
|
|
1905
1905
|
cp869: {
|
|
1906
1906
|
singleByte: !0,
|
|
1907
|
-
cps:
|
|
1908
|
-
cats:
|
|
1907
|
+
cps: D + "Ά·¬¦‘’Έ―ΉΊΪΌΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄±υφχ§ψ΅°¨ωϋΰώ■\xA0",
|
|
1908
|
+
cats: O + "MMMMMM0MABE?@0<0000MM00E0::1C11111110000000:00?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0000000111EEEE11E111111111111111DJB111A1DED1111EF"
|
|
1909
1909
|
},
|
|
1910
1910
|
cp874: {
|
|
1911
1911
|
singleByte: !0,
|
|
1912
|
-
cps:
|
|
1913
|
-
cats:
|
|
1912
|
+
cps: D + "€…‘’“”•–—\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛",
|
|
1913
|
+
cats: O + "CMMMMAMMMMMMMMMMM?@?@A<<MMMMMMMMF4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
|
|
1914
1914
|
},
|
|
1915
1915
|
cp875: {
|
|
1916
1916
|
singleByte: !0,
|
|
@@ -1919,33 +1919,33 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1919
1919
|
},
|
|
1920
1920
|
cp932: {
|
|
1921
1921
|
singleByte: !1,
|
|
1922
|
-
cps:
|
|
1923
|
-
cats:
|
|
1922
|
+
cps: D + "。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚",
|
|
1923
|
+
cats: O + "IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLA=>AA4444444444344444444444444444444444444444444444444444444433MMMMMMMMMMMMMMMMMMMMMMMMMMMMMLLL"
|
|
1924
1924
|
},
|
|
1925
1925
|
cp949: {
|
|
1926
1926
|
singleByte: !1,
|
|
1927
|
-
cps:
|
|
1928
|
-
cats:
|
|
1927
|
+
cps: D + "",
|
|
1928
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1929
1929
|
},
|
|
1930
1930
|
euc_jis_2004: {
|
|
1931
1931
|
singleByte: !1,
|
|
1932
|
-
cps:
|
|
1933
|
-
cats:
|
|
1932
|
+
cps: D + "",
|
|
1933
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1934
1934
|
},
|
|
1935
1935
|
euc_kr: {
|
|
1936
1936
|
singleByte: !1,
|
|
1937
|
-
cps:
|
|
1938
|
-
cats:
|
|
1937
|
+
cps: D + "",
|
|
1938
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1939
1939
|
},
|
|
1940
1940
|
gb18030: {
|
|
1941
1941
|
singleByte: !1,
|
|
1942
|
-
cps:
|
|
1943
|
-
cats:
|
|
1942
|
+
cps: D + "",
|
|
1943
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
1944
1944
|
},
|
|
1945
1945
|
"hp-roman8": {
|
|
1946
1946
|
singleByte: !0,
|
|
1947
|
-
cps:
|
|
1948
|
-
cats:
|
|
1947
|
+
cps: D + "
\xA0ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±",
|
|
1948
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0000000D33DD00CD01E0101AACCCA1C11111111111111110100111101000110001010000010100101A1A:<::44?E@BM"
|
|
1949
1949
|
},
|
|
1950
1950
|
hz: {
|
|
1951
1951
|
singleByte: !1,
|
|
@@ -1974,133 +1974,133 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
1974
1974
|
},
|
|
1975
1975
|
"iso8859-1": {
|
|
1976
1976
|
singleByte: !0,
|
|
1977
|
-
cps:
|
|
1978
|
-
cats:
|
|
1977
|
+
cps: D + "
\xA0¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
|
|
1978
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
|
|
1979
1979
|
},
|
|
1980
1980
|
"iso8859-10": {
|
|
1981
1981
|
singleByte: !0,
|
|
1982
|
-
cps:
|
|
1983
|
-
cats:
|
|
1982
|
+
cps: D + "
\xA0ĄĒĢĪĨͧĻĐŠŦŽŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ",
|
|
1983
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000A00000J00E111111A11111<110000000000000000000000000000000111111111111111111111111111111111"
|
|
1984
1984
|
},
|
|
1985
1985
|
"iso8859-13": {
|
|
1986
1986
|
singleByte: !0,
|
|
1987
|
-
cps:
|
|
1988
|
-
cats:
|
|
1987
|
+
cps: D + "
\xA0”¢£¤„¦§Ø©Ŗ«¬®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’",
|
|
1988
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF@CCC=EA0E0?BJE0EB::?1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111@"
|
|
1989
1989
|
},
|
|
1990
1990
|
"iso8859-14": {
|
|
1991
1991
|
singleByte: !0,
|
|
1992
|
-
cps:
|
|
1993
|
-
cats:
|
|
1992
|
+
cps: D + "
\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ",
|
|
1993
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF01C010A0E010JE0010101A0111010110000000000000000000000000000000111111111111111111111111111111111"
|
|
1994
1994
|
},
|
|
1995
1995
|
"iso8859-15": {
|
|
1996
1996
|
singleByte: !0,
|
|
1997
|
-
cps:
|
|
1998
|
-
cats:
|
|
1997
|
+
cps: D + "
\xA0¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
|
|
1998
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCC0A1E4?BJEDEB::01AA1:4@010A00000000000000000000000B0000000111111111111111111111111B11111111"
|
|
1999
1999
|
},
|
|
2000
2000
|
"iso8859-16": {
|
|
2001
2001
|
singleByte: !0,
|
|
2002
|
-
cps:
|
|
2003
|
-
cats:
|
|
2002
|
+
cps: D + "
\xA0ĄąŁ€„Чš©Ș«ŹźŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ",
|
|
2003
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C=0A1E0?0J10EB010@AA111@01010000000000000000000000000000000111111111111111111111111111111111"
|
|
2004
2004
|
},
|
|
2005
2005
|
"iso8859-2": {
|
|
2006
2006
|
singleByte: !0,
|
|
2007
|
-
cps:
|
|
2008
|
-
cats:
|
|
2007
|
+
cps: D + "
\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
|
|
2008
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0D0C00AD0000J00E1D1D113D1111D1100000000000000000000000B0000000111111111111111111111111B1111111D"
|
|
2009
2009
|
},
|
|
2010
2010
|
"iso8859-3": {
|
|
2011
2011
|
singleByte: !0,
|
|
2012
|
-
cps:
|
|
2013
|
-
cats:
|
|
2012
|
+
cps: D + "
\xA0Ħ˘£¤Ĥ§¨İŞĞĴݰħ²³´µĥ·¸ışğĵ½żÀÁÂÄĊĈÇÈÉÊËÌÍÎÏÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâäċĉçèéêëìíîïñòóôġö÷ĝùúûüŭŝ˙",
|
|
2013
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0DCCM0AD0000JM0E1::D11AD1111:M1000M000000000000M000000B00000001111M111111111111M111111B1111111D"
|
|
2014
2014
|
},
|
|
2015
2015
|
"iso8859-4": {
|
|
2016
2016
|
singleByte: !0,
|
|
2017
|
-
cps:
|
|
2018
|
-
cats:
|
|
2017
|
+
cps: D + "
\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦޝ°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙",
|
|
2018
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C00AD0000J0DE1D1D113D111101100000000000000000000000B0000000111111111111111111111111B1111111D"
|
|
2019
2019
|
},
|
|
2020
2020
|
"iso8859-5": {
|
|
2021
2021
|
singleByte: !0,
|
|
2022
|
-
cps:
|
|
2023
|
-
cats:
|
|
2022
|
+
cps: D + "
\xA0ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ",
|
|
2023
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000000000J000000000000000000000000000000000011111111111111111111111111111111E111111111111A11"
|
|
2024
2024
|
},
|
|
2025
2025
|
"iso8859-6": {
|
|
2026
2026
|
singleByte: !0,
|
|
2027
|
-
cps:
|
|
2028
|
-
cats:
|
|
2027
|
+
cps: D + "
\xA0¤،؛؟ءآأؤإئابةتثجحخدذرزسشصضطظعغـفقكلمنهوىيًٌٍَُِّْ",
|
|
2028
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMMMCMMMMMMMAJMMMMMMMMMMMMMAMMMAM44444444444444444444444444MMMMM3444444444455555555MMMMMMMMMMMMM"
|
|
2029
2029
|
},
|
|
2030
2030
|
"iso8859-7": {
|
|
2031
2031
|
singleByte: !0,
|
|
2032
|
-
cps:
|
|
2033
|
-
cats:
|
|
2032
|
+
cps: D + "
\xA0‘’£€₯¦§¨©ͺ«¬―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ",
|
|
2033
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF?@CCCEADE3?BJM<EB::DD0A000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
|
|
2034
2034
|
},
|
|
2035
2035
|
"iso8859-8": {
|
|
2036
2036
|
singleByte: !0,
|
|
2037
|
-
cps:
|
|
2038
|
-
cats:
|
|
2037
|
+
cps: D + "
\xA0¢£¤¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾‗אבגדהוזחטיךכלםמןנסעףפץצקרשת",
|
|
2038
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMCCCCEADEB?BJEDEB::D1AAD:B@:::MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA444444444444444444444444444MMJJM"
|
|
2039
2039
|
},
|
|
2040
2040
|
"iso8859-9": {
|
|
2041
2041
|
singleByte: !0,
|
|
2042
|
-
cps:
|
|
2043
|
-
cats:
|
|
2042
|
+
cps: D + "
\xA0¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
|
|
2043
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
|
|
2044
2044
|
},
|
|
2045
2045
|
johab: {
|
|
2046
2046
|
singleByte: !1,
|
|
2047
|
-
cps:
|
|
2048
|
-
cats:
|
|
2047
|
+
cps: D + "",
|
|
2048
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
2049
2049
|
},
|
|
2050
2050
|
"koi8-r": {
|
|
2051
2051
|
singleByte: !0,
|
|
2052
|
-
cps:
|
|
2053
|
-
cats:
|
|
2052
|
+
cps: D + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
|
|
2053
|
+
cats: O + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE1EEEEEEEEEEEEEEE0EEEEEEEEEEEE1111111111111111111111111111111100000000000000000000000000000000"
|
|
2054
2054
|
},
|
|
2055
2055
|
"koi8-t": {
|
|
2056
2056
|
singleByte: !0,
|
|
2057
|
-
cps:
|
|
2058
|
-
cats:
|
|
2057
|
+
cps: D + "қғ‚Ғ„…†‡‰ҳ‹ҲҷҶҚ‘’“”•–—™›ӯӮё¤ӣ¦§«¬®°±²ЁӢ¶·№»©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
|
|
2058
|
+
cats: O + "11=0=AAAMA1?010M0?@?@A<<MEM@MMMMM101C1EAMMM?BJEMEB:0M0AAMEM@MMME1111111111111111111111111111111100000000000000000000000000000000"
|
|
2059
2059
|
},
|
|
2060
2060
|
"koi8-u": {
|
|
2061
2061
|
singleByte: !0,
|
|
2062
|
-
cps:
|
|
2063
|
-
cats:
|
|
2062
|
+
cps: D + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
|
|
2063
|
+
cats: O + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE11E11EEEEE1EEEEE00E00EEEEE0EE1111111111111111111111111111111100000000000000000000000000000000"
|
|
2064
2064
|
},
|
|
2065
2065
|
kz1048: {
|
|
2066
2066
|
singleByte: !0,
|
|
2067
|
-
cps:
|
|
2068
|
-
cats:
|
|
2067
|
+
cps: D + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
|
|
2068
|
+
cats: O + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
|
|
2069
2069
|
},
|
|
2070
2070
|
"mac-cyrillic": {
|
|
2071
2071
|
singleByte: !0,
|
|
2072
|
-
cps:
|
|
2073
|
-
cats:
|
|
2072
|
+
cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю€",
|
|
2073
|
+
cats: O + "00000000000000000000000000000000AE0CAAA0EEE01B01BBBB11100101010110BB1BB?@AF01011<<?@?@B=0101E0111111111111111111111111111111111C"
|
|
2074
2074
|
},
|
|
2075
2075
|
"mac-greek": {
|
|
2076
2076
|
singleByte: !0,
|
|
2077
|
-
cps:
|
|
2078
|
-
cats:
|
|
2077
|
+
cps: D + "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ",
|
|
2078
|
+
cats: O + "0::0:00D111DD11111CE11A:A11EC111A0000001EE00ABEA0BBBC0000000000010B00B0?@AF00001<<?@?@B0000111101111111111111111111111111111111J"
|
|
2079
2079
|
},
|
|
2080
2080
|
"mac-iceland": {
|
|
2081
2081
|
singleByte: !0,
|
|
2082
|
-
cps:
|
|
2083
|
-
cats:
|
|
2082
|
+
cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
|
|
2083
|
+
cats: O + "000000011111111111111111111111110ECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC01011A==A00000000000L000013DDDDDDDD3"
|
|
2084
2084
|
},
|
|
2085
2085
|
"mac-latin2": {
|
|
2086
2086
|
singleByte: !0,
|
|
2087
|
-
cps:
|
|
2088
|
-
cats:
|
|
2087
|
+
cps: D + "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",
|
|
2088
|
+
cats: O + "00100001101101101011010111111011AE0CAAA1EEE1DB1010BB10BB1010101010BB10B?@AF10010<<?@?@BE1010?@1010==1010010010001001010101100103"
|
|
2089
2089
|
},
|
|
2090
2090
|
"mac-roman": {
|
|
2091
2091
|
singleByte: !0,
|
|
2092
|
-
cps:
|
|
2093
|
-
cats:
|
|
2092
|
+
cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
|
|
2093
|
+
cats: O + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC?@11AA==A00000000000L000013DDDDDDDD3"
|
|
2094
2094
|
},
|
|
2095
2095
|
"mac-turkish": {
|
|
2096
2096
|
singleByte: !0,
|
|
2097
|
-
cps:
|
|
2098
|
-
cats:
|
|
2097
|
+
cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ",
|
|
2098
|
+
cats: O + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10010101AA==A00000000000L0000L3DDDDDDDD3"
|
|
2099
2099
|
},
|
|
2100
2100
|
ptcp154: {
|
|
2101
2101
|
singleByte: !0,
|
|
2102
|
-
cps:
|
|
2103
|
-
cats:
|
|
2102
|
+
cps: D + "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xA0ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
|
|
2103
|
+
cats: O + "0001=A00010000001?@?@A<<11111111F010000A0E0?B1E0E10111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
|
|
2104
2104
|
},
|
|
2105
2105
|
shift_jis_2004: {
|
|
2106
2106
|
singleByte: !1,
|
|
@@ -2109,8 +2109,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
2109
2109
|
},
|
|
2110
2110
|
"tis-620": {
|
|
2111
2111
|
singleByte: !0,
|
|
2112
|
-
cps:
|
|
2113
|
-
cats:
|
|
2112
|
+
cps: D + "
กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛",
|
|
2113
|
+
cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIM4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
|
|
2114
2114
|
},
|
|
2115
2115
|
"utf-16": {
|
|
2116
2116
|
singleByte: !1,
|
|
@@ -2149,52 +2149,52 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
|
|
|
2149
2149
|
},
|
|
2150
2150
|
"utf-8": {
|
|
2151
2151
|
singleByte: !1,
|
|
2152
|
-
cps:
|
|
2153
|
-
cats:
|
|
2152
|
+
cps: D + "",
|
|
2153
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
2154
2154
|
},
|
|
2155
2155
|
"utf-8-sig": {
|
|
2156
2156
|
singleByte: !1,
|
|
2157
|
-
cps:
|
|
2158
|
-
cats:
|
|
2157
|
+
cps: D + "",
|
|
2158
|
+
cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
|
|
2159
2159
|
},
|
|
2160
2160
|
cp037: {
|
|
2161
2161
|
singleByte: !0,
|
|
2162
2162
|
cps: "\0 \v\f\r
\b\n\x1B\x07 \xA0âäàáãåçñ¢.<(+|&éêëèíîïìß!$*);¬-/ÂÄÀÁÃÅÇѦ,%_>?øÉÊËÈÍÎÏÌ`:#@'=\"Øabcdefghi«»ðýþ±°jklmnopqrªºæ¸Æ¤µ~stuvwxyz¡¿ÐÝÞ®^£¥·©§¶¼½¾[]¯¨´×{ABCDEFGHIôöòóõ}JKLMNOPQR¹ûüùúÿ\\÷STUVWXYZ²ÔÖÒÓÕ0123456789³ÛÜÙÚ",
|
|
2163
2163
|
cats: "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFF11111111CAB=BBA111111111ACA>AB<A00000000EAA;BA100000000DAAAABA0111111111?@111BE111111111441D0C1B11111111AA000EDCCAEAA:::=>DDDB=000000000J11111>000000000:11111AB00000000:000008888888888:0000I"
|
|
2164
2164
|
}
|
|
2165
|
-
}),
|
|
2166
|
-
function
|
|
2167
|
-
let t =
|
|
2165
|
+
}), je = 65535, Me = new Map(Object.entries(Ae));
|
|
2166
|
+
function k(e) {
|
|
2167
|
+
let t = Me.get(e);
|
|
2168
2168
|
if (t !== void 0) return t;
|
|
2169
|
-
let n =
|
|
2170
|
-
return n === null ? null :
|
|
2169
|
+
let n = E(e);
|
|
2170
|
+
return n === null ? null : Me.get(n) ?? null;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Ne(e, t) {
|
|
2173
2173
|
return e.cps.charCodeAt(t);
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Pe(e, t) {
|
|
2176
2176
|
return e.cats.charCodeAt(t) - 48;
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2178
|
+
function Fe(e, t) {
|
|
2179
|
+
return ke[Pe(e, t)] ?? "Cn";
|
|
2180
2180
|
}
|
|
2181
|
-
var
|
|
2182
|
-
function
|
|
2183
|
-
let t =
|
|
2181
|
+
var Ie = /* @__PURE__ */ new Map();
|
|
2182
|
+
function Le(e) {
|
|
2183
|
+
let t = Ie.get(e);
|
|
2184
2184
|
if (t !== void 0) return t;
|
|
2185
2185
|
t = null;
|
|
2186
|
-
for (let n = 0; n < 256; n++)
|
|
2187
|
-
return
|
|
2186
|
+
for (let n = 0; n < 256; n++) Ne(e, n) === je && (t ??= /* @__PURE__ */ new Uint8Array(256), t[n] = 1);
|
|
2187
|
+
return Ie.set(e, t), t;
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
let n =
|
|
2189
|
+
function Re(e, t) {
|
|
2190
|
+
let n = k(e);
|
|
2191
2191
|
if (n === null || !n.singleByte) return null;
|
|
2192
|
-
let r =
|
|
2192
|
+
let r = Le(n);
|
|
2193
2193
|
if (r === null) return !0;
|
|
2194
2194
|
for (let e = 0; e < t.length; e++) if (r[t[e]] !== 0) return !1;
|
|
2195
2195
|
return !0;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function ze(e, t) {
|
|
2198
2198
|
let n = "";
|
|
2199
2199
|
for (let r = 0; r < t.length; r++) {
|
|
2200
2200
|
let i = e.cps[t[r]];
|
|
@@ -2202,20 +2202,20 @@ function Re(e, t) {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
return n;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2206
|
-
let n =
|
|
2205
|
+
function A(e, t) {
|
|
2206
|
+
let n = Re(e, t);
|
|
2207
2207
|
if (n !== null) return n;
|
|
2208
2208
|
let r = re(e);
|
|
2209
2209
|
return r === null || oe(r, t);
|
|
2210
2210
|
}
|
|
2211
2211
|
function Be(e, t) {
|
|
2212
|
-
let n =
|
|
2212
|
+
let n = Re(e, t);
|
|
2213
2213
|
if (n !== null) return n;
|
|
2214
2214
|
let r = re(e);
|
|
2215
2215
|
return r !== null && se(r, t);
|
|
2216
2216
|
}
|
|
2217
2217
|
function Ve(e, t) {
|
|
2218
|
-
if (
|
|
2218
|
+
if (k(e)?.singleByte) return !1;
|
|
2219
2219
|
let n = re(e);
|
|
2220
2220
|
return n !== null && le(n, t);
|
|
2221
2221
|
}
|
|
@@ -2224,8 +2224,8 @@ function He(e, t) {
|
|
|
2224
2224
|
return n === null ? null : ue(n, t);
|
|
2225
2225
|
}
|
|
2226
2226
|
function Ue(e, t) {
|
|
2227
|
-
let n =
|
|
2228
|
-
if (n !== null) return n ?
|
|
2227
|
+
let n = Re(e, t);
|
|
2228
|
+
if (n !== null) return n ? ze(k(e), t) : null;
|
|
2229
2229
|
let r = re(e);
|
|
2230
2230
|
return r === null ? null : de(r, t);
|
|
2231
2231
|
}
|
|
@@ -2250,7 +2250,7 @@ function Ke(e, t) {
|
|
|
2250
2250
|
let n = e.encoding;
|
|
2251
2251
|
if (n === null) return e;
|
|
2252
2252
|
let r = We[n];
|
|
2253
|
-
return r === void 0 || (t === void 0 ||
|
|
2253
|
+
return r === void 0 || (t === void 0 || A(r, t)) && (e.encoding = r), e;
|
|
2254
2254
|
}
|
|
2255
2255
|
var qe = Object.freeze({
|
|
2256
2256
|
big5hkscs: "Big5",
|
|
@@ -2604,7 +2604,7 @@ function ft() {
|
|
|
2604
2604
|
return dt || (dt = ot(typeof Buffer < "u" ? new Uint8Array(Buffer.from(ut, "base64")) : Uint8Array.from(atob(ut), (e) => e.charCodeAt(0))), dt);
|
|
2605
2605
|
}
|
|
2606
2606
|
var pt = {};
|
|
2607
|
-
for (let e of Object.values(
|
|
2607
|
+
for (let e of Object.values(Se)) e.languages.length === 1 && (pt[e.name] = e.languages[0]);
|
|
2608
2608
|
var mt = null;
|
|
2609
2609
|
function ht() {
|
|
2610
2610
|
if (mt) return mt;
|
|
@@ -2628,7 +2628,7 @@ function _t(e) {
|
|
|
2628
2628
|
]);
|
|
2629
2629
|
}
|
|
2630
2630
|
for (let e of [...t.keys()]) {
|
|
2631
|
-
let n =
|
|
2631
|
+
let n = E(e);
|
|
2632
2632
|
n !== null && !t.has(n) && t.set(n, t.get(e));
|
|
2633
2633
|
}
|
|
2634
2634
|
return t;
|
|
@@ -2957,11 +2957,8 @@ function an(e, t) {
|
|
|
2957
2957
|
let n = 0, r = t - 1;
|
|
2958
2958
|
for (; r >= 0;) {
|
|
2959
2959
|
let t = e[r];
|
|
2960
|
-
if (t === 10 || t === 13)
|
|
2961
|
-
|
|
2962
|
-
continue;
|
|
2963
|
-
}
|
|
2964
|
-
if (nn.has(t)) {
|
|
2960
|
+
if (t === 10 || t === 13) r--;
|
|
2961
|
+
else if (nn.has(t)) {
|
|
2965
2962
|
if (n++, n >= rn) return !0;
|
|
2966
2963
|
r--;
|
|
2967
2964
|
} else break;
|
|
@@ -2994,18 +2991,17 @@ function on(e, t, n) {
|
|
|
2994
2991
|
continue;
|
|
2995
2992
|
}
|
|
2996
2993
|
let s = o - a, c = e.subarray(a, o);
|
|
2997
|
-
if (s >= 3 && !c.some((e) => e >= 65 && e <= 90))
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
2994
|
+
if (s >= 3 && !c.some((e) => e >= 65 && e <= 90)) r = o;
|
|
2995
|
+
else {
|
|
2996
|
+
if (s >= 3 && tn(c)) {
|
|
2997
|
+
if (Math.floor(s * 6 / 16) === 1 && !cn(sn(c))) {
|
|
2998
|
+
r = o;
|
|
2999
|
+
continue;
|
|
3000
|
+
}
|
|
3001
|
+
return !0;
|
|
3005
3002
|
}
|
|
3006
|
-
|
|
3003
|
+
r = Math.max(a, o);
|
|
3007
3004
|
}
|
|
3008
|
-
r = Math.max(a, o);
|
|
3009
3005
|
}
|
|
3010
3006
|
}
|
|
3011
3007
|
function sn(e) {
|
|
@@ -3813,17 +3809,17 @@ function pr(e) {
|
|
|
3813
3809
|
return !0;
|
|
3814
3810
|
}
|
|
3815
3811
|
function mr(e, t) {
|
|
3816
|
-
return
|
|
3812
|
+
return A(t, e.subarray(0, cr));
|
|
3817
3813
|
}
|
|
3818
|
-
var hr = /<(?:meta|\?xml)[^>]*/gi, gr = /(?:charset|encoding)\s*=\s*[^\sA-Za-z0-9._-]?\s*([A-Za-z][A-Za-z0-9._-]+)/gi, _r = .25, vr =
|
|
3814
|
+
var hr = /<(?:meta|\?xml)[^>]*/gi, gr = /(?:charset|encoding)\s*=\s*[^\sA-Za-z0-9._-]?\s*([A-Za-z][A-Za-z0-9._-]+)/gi, _r = .25, vr = k("cp037");
|
|
3819
3815
|
function yr(e) {
|
|
3820
3816
|
let t = 0;
|
|
3821
3817
|
for (let n = 0; n < e.length; n++) e[n] >= 128 && t++;
|
|
3822
3818
|
if (t < e.length * _r) return null;
|
|
3823
|
-
let n =
|
|
3819
|
+
let n = ze(vr, e);
|
|
3824
3820
|
for (let t of n.matchAll(hr)) for (let n of t[0].matchAll(gr)) {
|
|
3825
|
-
let t =
|
|
3826
|
-
if (t !== null && (
|
|
3821
|
+
let t = E(n[1].trim());
|
|
3822
|
+
if (t !== null && (Se[t].era & w.MAINFRAME) !== 0 && A(t, e)) return {
|
|
3827
3823
|
encoding: t,
|
|
3828
3824
|
confidence: .95,
|
|
3829
3825
|
language: null,
|
|
@@ -3838,7 +3834,7 @@ function br(e) {
|
|
|
3838
3834
|
if (!n) return null;
|
|
3839
3835
|
let r = n[1].trim();
|
|
3840
3836
|
if (!pr(r)) return null;
|
|
3841
|
-
let i =
|
|
3837
|
+
let i = E(r);
|
|
3842
3838
|
return i === null || !mr(e, i) ? null : {
|
|
3843
3839
|
encoding: i,
|
|
3844
3840
|
confidence: .95,
|
|
@@ -3858,7 +3854,7 @@ function xr(e) {
|
|
|
3858
3854
|
if (!r) continue;
|
|
3859
3855
|
let a = r[1].trim();
|
|
3860
3856
|
if (!pr(a)) continue;
|
|
3861
|
-
let o =
|
|
3857
|
+
let o = E(a);
|
|
3862
3858
|
if (o !== null && mr(e, o)) return {
|
|
3863
3859
|
encoding: o,
|
|
3864
3860
|
confidence: .95,
|
|
@@ -3877,9 +3873,9 @@ function Cr(e, t, n) {
|
|
|
3877
3873
|
if (t.encoding === null) return t;
|
|
3878
3874
|
let r = Sr[t.encoding];
|
|
3879
3875
|
if (r === void 0 || !n.has(r)) return t;
|
|
3880
|
-
let i =
|
|
3881
|
-
if (i === void 0 || !
|
|
3882
|
-
let a = e.subarray(0, cr), o = new Nt(), s =
|
|
3876
|
+
let i = Se[r];
|
|
3877
|
+
if (i === void 0 || !A(r, e)) return t;
|
|
3878
|
+
let a = e.subarray(0, cr), o = new Nt(), s = Se[t.encoding];
|
|
3883
3879
|
if (s === void 0) return t;
|
|
3884
3880
|
let c = wr.computeStructuralScore(a, s, o);
|
|
3885
3881
|
return wr.computeStructuralScore(a, i, o) > c ? {
|
|
@@ -3893,55 +3889,55 @@ var wr = { computeStructuralScore: ar }, Tr = "eAFjiGdNLE7OzGQtLUnTNWfUFpJF4lswQ
|
|
|
3893
3889
|
function Dr() {
|
|
3894
3890
|
return Er || (Er = ot(typeof Buffer < "u" ? new Uint8Array(Buffer.from(Tr, "base64")) : Uint8Array.from(atob(Tr), (e) => e.charCodeAt(0))), Er);
|
|
3895
3891
|
}
|
|
3896
|
-
function
|
|
3892
|
+
function P(e, t) {
|
|
3897
3893
|
return `${e}\0${t}`;
|
|
3898
3894
|
}
|
|
3899
|
-
var
|
|
3900
|
-
function
|
|
3895
|
+
var Or = new TextDecoder("utf-8", { fatal: !0 });
|
|
3896
|
+
function kr(e) {
|
|
3901
3897
|
let t = /* @__PURE__ */ new Map(), n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = 0, i = n.getUint16(r, !1);
|
|
3902
3898
|
r += 2;
|
|
3903
3899
|
for (let a = 0; a < i; a++) {
|
|
3904
3900
|
let i = n.getUint8(r);
|
|
3905
3901
|
r += 1;
|
|
3906
|
-
let a =
|
|
3902
|
+
let a = Or.decode(e.subarray(r, r + i));
|
|
3907
3903
|
r += i;
|
|
3908
3904
|
let o = n.getUint8(r);
|
|
3909
3905
|
r += 1;
|
|
3910
|
-
let s =
|
|
3906
|
+
let s = Or.decode(e.subarray(r, r + o));
|
|
3911
3907
|
r += o;
|
|
3912
3908
|
let c = n.getUint8(r);
|
|
3913
3909
|
r += 1;
|
|
3914
3910
|
let l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
3915
3911
|
for (let e = 0; e < c; e++) {
|
|
3916
3912
|
let e = n.getUint8(r), t = n.getUint8(r + 1), i = n.getUint8(r + 2);
|
|
3917
|
-
r += 3, l.add(e), u.set(e, [
|
|
3913
|
+
r += 3, l.add(e), u.set(e, [ke[t] ?? "Cn", ke[i] ?? "Cn"]);
|
|
3918
3914
|
}
|
|
3919
|
-
t.set(
|
|
3915
|
+
t.set(P(a, s), {
|
|
3920
3916
|
diffBytes: l,
|
|
3921
3917
|
categories: u
|
|
3922
3918
|
});
|
|
3923
3919
|
}
|
|
3924
3920
|
return t;
|
|
3925
3921
|
}
|
|
3926
|
-
var
|
|
3927
|
-
function
|
|
3928
|
-
if (
|
|
3922
|
+
var Ar = null;
|
|
3923
|
+
function jr() {
|
|
3924
|
+
if (Ar) return Ar;
|
|
3929
3925
|
let e = Dr();
|
|
3930
|
-
if (e.length === 0) return console.warn("jschardet confusion.bin is empty — confusion resolution disabled; reinstall jschardet to fix"),
|
|
3926
|
+
if (e.length === 0) return console.warn("jschardet confusion.bin is empty — confusion resolution disabled; reinstall jschardet to fix"), Ar = /* @__PURE__ */ new Map(), Ar;
|
|
3931
3927
|
let t;
|
|
3932
3928
|
try {
|
|
3933
|
-
t =
|
|
3929
|
+
t = kr(e);
|
|
3934
3930
|
} catch (e) {
|
|
3935
3931
|
throw Error(`corrupt confusion.bin: ${e.message}`);
|
|
3936
3932
|
}
|
|
3937
3933
|
let n = /* @__PURE__ */ new Map();
|
|
3938
3934
|
for (let [e, r] of t) {
|
|
3939
|
-
let t = e.indexOf("\0"), i = e.slice(0, t), a = e.slice(t + 1), o =
|
|
3940
|
-
n.set(
|
|
3935
|
+
let t = e.indexOf("\0"), i = e.slice(0, t), a = e.slice(t + 1), o = E(i) ?? i, s = E(a) ?? a;
|
|
3936
|
+
n.set(P(o, s), r);
|
|
3941
3937
|
}
|
|
3942
|
-
return
|
|
3938
|
+
return Ar = n, Ar;
|
|
3943
3939
|
}
|
|
3944
|
-
var
|
|
3940
|
+
var Mr = {
|
|
3945
3941
|
Lu: 10,
|
|
3946
3942
|
Ll: 10,
|
|
3947
3943
|
Lt: 10,
|
|
@@ -3972,41 +3968,41 @@ var Nr = {
|
|
|
3972
3968
|
Mn: 5,
|
|
3973
3969
|
Mc: 5,
|
|
3974
3970
|
Me: 5
|
|
3975
|
-
},
|
|
3976
|
-
let e = new Uint8Array(
|
|
3977
|
-
return
|
|
3971
|
+
}, Nr = 2, Pr = 8, Fr = 2, Ir = 256, Lr = { denseHitDivisor: 4 }, Rr = /* @__PURE__ */ new Uint8Array(256), zr = /* @__PURE__ */ new Map(), Br = (() => {
|
|
3972
|
+
let e = new Uint8Array(ke.length);
|
|
3973
|
+
return ke.forEach((t, n) => {
|
|
3978
3974
|
e[n] = t === "Lu" ? 1 : t[0] === "L" || t[0] === "M" ? 2 : 0;
|
|
3979
3975
|
}), e;
|
|
3980
3976
|
})();
|
|
3981
|
-
function
|
|
3982
|
-
let t =
|
|
3977
|
+
function Vr(e) {
|
|
3978
|
+
let t = zr.get(e);
|
|
3983
3979
|
if (t !== void 0) return t;
|
|
3984
|
-
let n =
|
|
3985
|
-
if (n === null) t =
|
|
3980
|
+
let n = k(e);
|
|
3981
|
+
if (n === null) t = Rr;
|
|
3986
3982
|
else {
|
|
3987
3983
|
t = /* @__PURE__ */ new Uint8Array(256);
|
|
3988
|
-
for (let e = 0; e < 256; e++) t[e] =
|
|
3984
|
+
for (let e = 0; e < 256; e++) t[e] = Br[Pe(n, e)] ?? 0;
|
|
3989
3985
|
}
|
|
3990
|
-
return
|
|
3986
|
+
return zr.set(e, t), t;
|
|
3991
3987
|
}
|
|
3992
|
-
function
|
|
3993
|
-
let i =
|
|
3988
|
+
function Hr(e, t, n, r) {
|
|
3989
|
+
let i = Mr[e] ?? 0;
|
|
3994
3990
|
if (e[0] !== "L") return i;
|
|
3995
3991
|
let a = r[t], o = r[n];
|
|
3996
|
-
return a === 0 && o === 0 || e === "Ll" && o === 1 ?
|
|
3992
|
+
return a === 0 && o === 0 || e === "Ll" && o === 1 ? Nr : i;
|
|
3997
3993
|
}
|
|
3998
|
-
var
|
|
3999
|
-
function
|
|
4000
|
-
let t =
|
|
3994
|
+
var Ur = /* @__PURE__ */ new WeakMap();
|
|
3995
|
+
function Wr(e) {
|
|
3996
|
+
let t = Ur.get(e);
|
|
4001
3997
|
if (t === void 0) {
|
|
4002
3998
|
t = /* @__PURE__ */ new Uint8Array(256);
|
|
4003
3999
|
for (let n of e) t[n] = 1;
|
|
4004
|
-
|
|
4000
|
+
Ur.set(e, t);
|
|
4005
4001
|
}
|
|
4006
4002
|
return t;
|
|
4007
4003
|
}
|
|
4008
|
-
function
|
|
4009
|
-
let a =
|
|
4004
|
+
function Gr(e, t, n, r, i) {
|
|
4005
|
+
let a = Wr(r), o = /* @__PURE__ */ new Set();
|
|
4010
4006
|
for (let t = 0; t < e.length; t++) a[e[t]] && o.add(e[t]);
|
|
4011
4007
|
if (o.size === 0) return {
|
|
4012
4008
|
winner: null,
|
|
@@ -4014,14 +4010,14 @@ function Kr(e, t, n, r, i) {
|
|
|
4014
4010
|
demotionMargin: 0,
|
|
4015
4011
|
demotionEvents: 0
|
|
4016
4012
|
};
|
|
4017
|
-
let s =
|
|
4013
|
+
let s = Vr(t), c = Vr(n), l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = e.length - 1;
|
|
4018
4014
|
for (let t of o) {
|
|
4019
4015
|
let n = i.get(t);
|
|
4020
4016
|
if (n === void 0) continue;
|
|
4021
4017
|
let [r, a] = n, o = e.indexOf(t), g = 0;
|
|
4022
|
-
for (; o >= 0 && g <
|
|
4023
|
-
let n = o > 0 ? e[o - 1] : 0, i = o < h ? e[o + 1] : 0, _ =
|
|
4024
|
-
_ > v ? r[0] === "L" && a[0] === "P" || (l += _ - v, a[0] === "L" && v ===
|
|
4018
|
+
for (; o >= 0 && g < Ir;) {
|
|
4019
|
+
let n = o > 0 ? e[o - 1] : 0, i = o < h ? e[o + 1] : 0, _ = Hr(r, n, i, s), v = Hr(a, n, i, c);
|
|
4020
|
+
_ > v ? r[0] === "L" && a[0] === "P" || (l += _ - v, a[0] === "L" && v === Nr && (d += _ - v, p += 1)) : v > _ && (a[0] === "L" && r[0] === "P" || (u += v - _, r[0] === "L" && _ === Nr && (f += v - _, m += 1))), g += 1, o = e.indexOf(t, o + 1);
|
|
4025
4021
|
}
|
|
4026
4022
|
}
|
|
4027
4023
|
return l > u ? {
|
|
@@ -4041,32 +4037,32 @@ function Kr(e, t, n, r, i) {
|
|
|
4041
4037
|
demotionEvents: 0
|
|
4042
4038
|
};
|
|
4043
4039
|
}
|
|
4044
|
-
function
|
|
4045
|
-
let i =
|
|
4040
|
+
function Kr(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
4041
|
+
let i = jr(), a = ri(i, t, n);
|
|
4046
4042
|
if (a === null) return null;
|
|
4047
|
-
let [o, s] = a, { diffBytes: c, categories: l } = i.get(
|
|
4048
|
-
if (u.winner !== null && u.demotionMargin >=
|
|
4049
|
-
let d =
|
|
4050
|
-
return c.size >=
|
|
4051
|
-
}
|
|
4052
|
-
var
|
|
4053
|
-
function
|
|
4054
|
-
let t =
|
|
4043
|
+
let [o, s] = a, { diffBytes: c, categories: l } = i.get(P(o, s)), u = Gr(e, o, s, c, l);
|
|
4044
|
+
if (u.winner !== null && u.demotionMargin >= Pr && u.demotionEvents >= Fr && c.size < ii) return u.winner;
|
|
4045
|
+
let d = Zr(e, o, s, c, r);
|
|
4046
|
+
return c.size >= ii ? d !== null && d === u.winner ? d : null : d === null ? u.winner : d;
|
|
4047
|
+
}
|
|
4048
|
+
var qr = /* @__PURE__ */ new Map();
|
|
4049
|
+
function Jr(e) {
|
|
4050
|
+
let t = qr.get(e);
|
|
4055
4051
|
if (t === void 0) {
|
|
4056
4052
|
let n = /* @__PURE__ */ new Set();
|
|
4057
4053
|
for (let [t] of yt().get(e) ?? []) t !== null && n.add(t);
|
|
4058
|
-
t = n,
|
|
4054
|
+
t = n, qr.set(e, t);
|
|
4059
4055
|
}
|
|
4060
4056
|
return t;
|
|
4061
4057
|
}
|
|
4062
|
-
function
|
|
4058
|
+
function Yr(e, t, n) {
|
|
4063
4059
|
if (n.size === 0) return null;
|
|
4064
|
-
let r =
|
|
4060
|
+
let r = Jr(e), i = Jr(t), a = /* @__PURE__ */ new Set();
|
|
4065
4061
|
for (let e of r) i.has(e) && a.add(e);
|
|
4066
4062
|
for (let e of n) if (!a.has(e)) return null;
|
|
4067
4063
|
return (r.has(M) || i.has(M)) && a.add(M), a;
|
|
4068
4064
|
}
|
|
4069
|
-
function
|
|
4065
|
+
function Xr(e, t, n) {
|
|
4070
4066
|
let r = yt().get(t);
|
|
4071
4067
|
if (r === void 0 || r.length === 0) return 0;
|
|
4072
4068
|
let i = 0;
|
|
@@ -4077,22 +4073,22 @@ function Zr(e, t, n) {
|
|
|
4077
4073
|
}
|
|
4078
4074
|
return i;
|
|
4079
4075
|
}
|
|
4080
|
-
function
|
|
4081
|
-
let a =
|
|
4076
|
+
function Zr(e, t, n, r, i = /* @__PURE__ */ new Set()) {
|
|
4077
|
+
let a = Qr(e, r);
|
|
4082
4078
|
if (a === null) return null;
|
|
4083
|
-
let o =
|
|
4079
|
+
let o = Yr(t, n, i), s = Xr(a, t, o), c = Xr(a, n, o);
|
|
4084
4080
|
return s > c ? t : c > s ? n : null;
|
|
4085
4081
|
}
|
|
4086
|
-
function
|
|
4082
|
+
function Qr(e, t) {
|
|
4087
4083
|
if (e.length < 2) return null;
|
|
4088
|
-
let n =
|
|
4084
|
+
let n = Wr(t), r = 0, i = /* @__PURE__ */ new Set();
|
|
4089
4085
|
for (let t = 0; t < e.length; t++) {
|
|
4090
4086
|
let a = e[t];
|
|
4091
4087
|
n[a] && (r += 1, i.add(a));
|
|
4092
4088
|
}
|
|
4093
4089
|
if (r === 0) return null;
|
|
4094
4090
|
let a = Ct(), o = /* @__PURE__ */ new Map(), s = e.length - 1;
|
|
4095
|
-
if (r *
|
|
4091
|
+
if (r * Lr.denseHitDivisor < e.length) {
|
|
4096
4092
|
let t = /* @__PURE__ */ new Set();
|
|
4097
4093
|
for (let n of i) {
|
|
4098
4094
|
let r = e.indexOf(n);
|
|
@@ -4110,55 +4106,55 @@ function $r(e, t) {
|
|
|
4110
4106
|
}
|
|
4111
4107
|
return o.size === 0 ? null : Tt.fromWeightedFreq(o);
|
|
4112
4108
|
}
|
|
4113
|
-
var
|
|
4114
|
-
function
|
|
4115
|
-
let n =
|
|
4109
|
+
var $r = /* @__PURE__ */ new Map();
|
|
4110
|
+
function ei(e, t) {
|
|
4111
|
+
let n = P(e, t), r = $r.get(n);
|
|
4116
4112
|
if (r !== void 0) return r;
|
|
4117
|
-
let i =
|
|
4118
|
-
for (let e = 128; e < 256; e++) (i === null ?
|
|
4119
|
-
return
|
|
4113
|
+
let i = k(e), a = k(t), o = /* @__PURE__ */ new Set();
|
|
4114
|
+
for (let e = 128; e < 256; e++) (i === null ? je : Ne(i, e)) !== (a === null ? je : Ne(a, e)) && o.add(e);
|
|
4115
|
+
return $r.set(n, o), o;
|
|
4120
4116
|
}
|
|
4121
|
-
function
|
|
4122
|
-
let r =
|
|
4117
|
+
function ti(e, t, n) {
|
|
4118
|
+
let r = k(e), i = k(t), a = /* @__PURE__ */ new Map();
|
|
4123
4119
|
for (let e of n) {
|
|
4124
|
-
let t = r === null ? "Cn" :
|
|
4120
|
+
let t = r === null ? "Cn" : Fe(r, e), n = i === null ? "Cn" : Fe(i, e);
|
|
4125
4121
|
a.set(e, [t, n]);
|
|
4126
4122
|
}
|
|
4127
4123
|
return a;
|
|
4128
4124
|
}
|
|
4129
|
-
function
|
|
4130
|
-
let o =
|
|
4125
|
+
function ni(e, t, n, r, i, a) {
|
|
4126
|
+
let o = Qr(e, r);
|
|
4131
4127
|
if (o !== null) {
|
|
4132
|
-
let e =
|
|
4128
|
+
let e = Xr(o, t, i), r = Xr(o, n, a);
|
|
4133
4129
|
if (e > r) return t;
|
|
4134
4130
|
if (r > e) return n;
|
|
4135
4131
|
}
|
|
4136
|
-
let { winner: s } =
|
|
4132
|
+
let { winner: s } = Gr(e, t, n, r, ti(t, n, r));
|
|
4137
4133
|
return s;
|
|
4138
4134
|
}
|
|
4139
|
-
function
|
|
4140
|
-
return e.has(
|
|
4135
|
+
function ri(e, t, n) {
|
|
4136
|
+
return e.has(P(t, n)) ? [t, n] : e.has(P(n, t)) ? [n, t] : null;
|
|
4141
4137
|
}
|
|
4142
|
-
var
|
|
4143
|
-
function
|
|
4138
|
+
var ii = 52, ai = .005, oi = .5, si = .2;
|
|
4139
|
+
function ci(e, t) {
|
|
4144
4140
|
if (t.length < 2) return t;
|
|
4145
4141
|
let n = t[0];
|
|
4146
4142
|
if (n.encoding === null || n.language === M) return t;
|
|
4147
|
-
let r =
|
|
4143
|
+
let r = jr(), i = n.confidence, a = i * oi, o = 0, s = n, c = n.encoding;
|
|
4148
4144
|
for (let n = 1; n < t.length; n++) {
|
|
4149
4145
|
let l = t[n];
|
|
4150
4146
|
if (l.encoding === null) continue;
|
|
4151
|
-
let u = n === 1 || i - l.confidence <=
|
|
4152
|
-
if (!u && (i >=
|
|
4153
|
-
let d =
|
|
4147
|
+
let u = n === 1 || i - l.confidence <= ai;
|
|
4148
|
+
if (!u && (i >= si || l.confidence < a)) break;
|
|
4149
|
+
let d = ri(r, c, l.encoding);
|
|
4154
4150
|
if (d === null) continue;
|
|
4155
|
-
let [f, p] = d, { diffBytes: m, categories: h } = r.get(
|
|
4156
|
-
if (g.winner !== null && g.demotionMargin >=
|
|
4151
|
+
let [f, p] = d, { diffBytes: m, categories: h } = r.get(P(f, p)), g = Gr(e, f, p, m, h), _;
|
|
4152
|
+
if (g.winner !== null && g.demotionMargin >= Pr && g.demotionEvents >= Fr && m.size < ii) _ = g.winner;
|
|
4157
4153
|
else {
|
|
4158
4154
|
let t = /* @__PURE__ */ new Set();
|
|
4159
4155
|
s.language !== null && t.add(s.language), l.language !== null && t.add(l.language);
|
|
4160
|
-
let n =
|
|
4161
|
-
_ = u && m.size <
|
|
4156
|
+
let n = Zr(e, f, p, m, t);
|
|
4157
|
+
_ = u && m.size < ii ? n === null ? g.winner : n : n !== null && n === g.winner ? n : null;
|
|
4162
4158
|
}
|
|
4163
4159
|
if (_ !== null && _ === l.encoding) {
|
|
4164
4160
|
if (u) return [{
|
|
@@ -4177,11 +4173,11 @@ function li(e, t) {
|
|
|
4177
4173
|
mimeType: s.mimeType
|
|
4178
4174
|
}, ...t.filter((e, t) => t !== o)];
|
|
4179
4175
|
}
|
|
4180
|
-
var
|
|
4176
|
+
var li = /* @__PURE__ */ new Set([
|
|
4181
4177
|
"iso8859-1",
|
|
4182
4178
|
"iso8859-15",
|
|
4183
4179
|
"cp1252"
|
|
4184
|
-
]),
|
|
4180
|
+
]), ui = /* @__PURE__ */ new Map([
|
|
4185
4181
|
["iso8859-10", /* @__PURE__ */ new Set([
|
|
4186
4182
|
161,
|
|
4187
4183
|
162,
|
|
@@ -4296,7 +4292,7 @@ var ui = /* @__PURE__ */ new Set([
|
|
|
4296
4292
|
221,
|
|
4297
4293
|
222
|
|
4298
4294
|
])]
|
|
4299
|
-
]),
|
|
4295
|
+
]), di = /* @__PURE__ */ new Set([
|
|
4300
4296
|
128,
|
|
4301
4297
|
129,
|
|
4302
4298
|
131,
|
|
@@ -4309,9 +4305,9 @@ var ui = /* @__PURE__ */ new Set([
|
|
|
4309
4305
|
162,
|
|
4310
4306
|
165,
|
|
4311
4307
|
181
|
|
4312
|
-
]),
|
|
4313
|
-
function
|
|
4314
|
-
let r = t.encoding ?? "", i =
|
|
4308
|
+
]), fi = 1e-4;
|
|
4309
|
+
function pi(e, t, n) {
|
|
4310
|
+
let r = t.encoding ?? "", i = ui.get(r);
|
|
4315
4311
|
if (i === void 0) return !1;
|
|
4316
4312
|
let a = !1;
|
|
4317
4313
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -4321,25 +4317,25 @@ function mi(e, t, n) {
|
|
|
4321
4317
|
break;
|
|
4322
4318
|
}
|
|
4323
4319
|
}
|
|
4324
|
-
return a ? t.confidence - n.confidence >
|
|
4320
|
+
return a ? t.confidence - n.confidence > ai ? !1 : ni(e, r, n.encoding ?? "", new Set(i), t.language === null ? null : /* @__PURE__ */ new Set([t.language]), n.language === null ? null : /* @__PURE__ */ new Set([n.language])) !== r : !0;
|
|
4325
4321
|
}
|
|
4326
|
-
function
|
|
4322
|
+
function mi(e) {
|
|
4327
4323
|
let t = e[0].confidence;
|
|
4328
4324
|
for (let n of e) n.confidence > t && (t = n.confidence);
|
|
4329
4325
|
let n = null, r = 0;
|
|
4330
4326
|
for (let i of e) {
|
|
4331
|
-
if (t - i.confidence >
|
|
4332
|
-
let e =
|
|
4327
|
+
if (t - i.confidence > fi) continue;
|
|
4328
|
+
let e = Si(i.encoding ?? "");
|
|
4333
4329
|
(n === null || e < r) && (n = i, r = e);
|
|
4334
4330
|
}
|
|
4335
4331
|
return n;
|
|
4336
4332
|
}
|
|
4337
|
-
function
|
|
4338
|
-
if (t.length < 2 || !
|
|
4339
|
-
let n = t.slice(1).filter((e) => e.encoding !== null &&
|
|
4333
|
+
function hi(e, t) {
|
|
4334
|
+
if (t.length < 2 || !ui.has(t[0].encoding ?? "")) return t;
|
|
4335
|
+
let n = t.slice(1).filter((e) => e.encoding !== null && li.has(e.encoding));
|
|
4340
4336
|
if (n.length === 0) return t;
|
|
4341
|
-
let r =
|
|
4342
|
-
if (!
|
|
4337
|
+
let r = mi(n);
|
|
4338
|
+
if (!pi(e, t[0], r)) return t;
|
|
4343
4339
|
let i = t[0].encoding, a = t[0].confidence, o = {
|
|
4344
4340
|
encoding: r.encoding,
|
|
4345
4341
|
confidence: a,
|
|
@@ -4357,30 +4353,30 @@ function gi(e, t) {
|
|
|
4357
4353
|
...l
|
|
4358
4354
|
];
|
|
4359
4355
|
}
|
|
4360
|
-
function
|
|
4356
|
+
function gi(e, t) {
|
|
4361
4357
|
if (t.length === 0 || t[0].encoding !== "koi8-r") return t;
|
|
4362
4358
|
let n = t.findIndex((e) => e.encoding === "koi8-t");
|
|
4363
4359
|
if (n === -1) return t;
|
|
4364
4360
|
for (let r = 0; r < e.length; r++) {
|
|
4365
4361
|
let i = e[r];
|
|
4366
|
-
if (i > 127 &&
|
|
4362
|
+
if (i > 127 && di.has(i)) return F(t, n);
|
|
4367
4363
|
}
|
|
4368
4364
|
return t;
|
|
4369
4365
|
}
|
|
4370
|
-
var
|
|
4366
|
+
var _i = Object.freeze({
|
|
4371
4367
|
shift_jis_2004: "cp932",
|
|
4372
4368
|
euc_kr: "cp949"
|
|
4373
|
-
}),
|
|
4374
|
-
function
|
|
4375
|
-
let t =
|
|
4369
|
+
}), vi = ai, yi = 3, bi = 4, xi = 16384;
|
|
4370
|
+
function Si(e) {
|
|
4371
|
+
let t = Se[e];
|
|
4376
4372
|
if (t === void 0) return 1 << 30;
|
|
4377
4373
|
let n = t.era;
|
|
4378
4374
|
return n & -n;
|
|
4379
4375
|
}
|
|
4380
|
-
function
|
|
4376
|
+
function Ci(e, t, n) {
|
|
4381
4377
|
let r = yt().get(t);
|
|
4382
4378
|
if (r === void 0 || r.length === 0) return !1;
|
|
4383
|
-
let i = e.subarray(0,
|
|
4379
|
+
let i = e.subarray(0, xi);
|
|
4384
4380
|
if (i.length === 0) return !1;
|
|
4385
4381
|
let a = /* @__PURE__ */ new Set(), o = i[0];
|
|
4386
4382
|
for (let e = 1; e < i.length; e++) {
|
|
@@ -4393,25 +4389,25 @@ function wi(e, t, n) {
|
|
|
4393
4389
|
}
|
|
4394
4390
|
return !1;
|
|
4395
4391
|
}
|
|
4396
|
-
function
|
|
4392
|
+
function wi(e, t) {
|
|
4397
4393
|
let n = t.length > 0 ? t[0] : null;
|
|
4398
4394
|
if (n === null || n.encoding === null || t.length < 2) return t;
|
|
4399
|
-
let r = 0, i =
|
|
4395
|
+
let r = 0, i = Si(n.encoding);
|
|
4400
4396
|
for (let e = 1; e < t.length; e++) {
|
|
4401
4397
|
let a = t[e];
|
|
4402
4398
|
if (a.encoding === null) continue;
|
|
4403
|
-
if (n.confidence - a.confidence >
|
|
4404
|
-
let o =
|
|
4399
|
+
if (n.confidence - a.confidence > fi) break;
|
|
4400
|
+
let o = Si(a.encoding);
|
|
4405
4401
|
o < i && (i = o, r = e);
|
|
4406
4402
|
}
|
|
4407
4403
|
if (r === 0) return t;
|
|
4408
|
-
if (!
|
|
4404
|
+
if (!Ci(e, n.encoding, n.language)) return F(t, r);
|
|
4409
4405
|
let a = t[r].encoding ?? "", o = /* @__PURE__ */ new Set();
|
|
4410
4406
|
n.language !== null && o.add(n.language), t[r].language !== null && o.add(t[r].language);
|
|
4411
|
-
let s =
|
|
4412
|
-
return
|
|
4407
|
+
let s = Yr(n.encoding, a, o);
|
|
4408
|
+
return ni(e, n.encoding, a, ei(n.encoding, a), s, s) === a ? F(t, r) : t;
|
|
4413
4409
|
}
|
|
4414
|
-
function
|
|
4410
|
+
function F(e, t) {
|
|
4415
4411
|
let n = e[t];
|
|
4416
4412
|
return [{
|
|
4417
4413
|
encoding: n.encoding,
|
|
@@ -4420,52 +4416,52 @@ function P(e, t) {
|
|
|
4420
4416
|
mimeType: n.mimeType
|
|
4421
4417
|
}, ...e.filter((e, n) => n !== t)];
|
|
4422
4418
|
}
|
|
4423
|
-
function
|
|
4419
|
+
function Ti(e, t) {
|
|
4424
4420
|
let n = t.length > 0 ? t[0] : null;
|
|
4425
4421
|
if (n === null || n.encoding === null || t.length < 2) return t;
|
|
4426
|
-
let r =
|
|
4422
|
+
let r = _i[n.encoding];
|
|
4427
4423
|
if (r === void 0) return t;
|
|
4428
4424
|
for (let i = 1; i < t.length; i++) {
|
|
4429
4425
|
let a = t[i];
|
|
4430
|
-
if (n.confidence - a.confidence >
|
|
4431
|
-
if (a.encoding === r &&
|
|
4426
|
+
if (n.confidence - a.confidence > fi) break;
|
|
4427
|
+
if (a.encoding === r && A(r, e)) return F(t, i);
|
|
4432
4428
|
}
|
|
4433
4429
|
return t;
|
|
4434
4430
|
}
|
|
4435
|
-
var
|
|
4436
|
-
function
|
|
4431
|
+
var Ei = .02, Di = .15;
|
|
4432
|
+
function Oi(e) {
|
|
4437
4433
|
let t = e.length > 0 ? e[0] : null;
|
|
4438
|
-
if (t === null || t.encoding === null || t.language === null || !j.has(t.language) || t.confidence >=
|
|
4434
|
+
if (t === null || t.encoding === null || t.language === null || !j.has(t.language) || t.confidence >= Di || e.length < 2) return e;
|
|
4439
4435
|
for (let n = 1; n < e.length; n++) {
|
|
4440
4436
|
let r = e[n];
|
|
4441
|
-
if (t.confidence - r.confidence >
|
|
4442
|
-
if (r.encoding !== null && r.language !== null && !j.has(r.language)) return
|
|
4437
|
+
if (t.confidence - r.confidence > Ei) break;
|
|
4438
|
+
if (r.encoding !== null && r.language !== null && !j.has(r.language)) return F(e, n);
|
|
4443
4439
|
}
|
|
4444
4440
|
return e;
|
|
4445
4441
|
}
|
|
4446
|
-
function
|
|
4442
|
+
function ki(e, t) {
|
|
4447
4443
|
let n = t.length > 0 ? t[0] : null;
|
|
4448
|
-
if (n === null || n.encoding === null || t.length < 2 ||
|
|
4444
|
+
if (n === null || n.encoding === null || t.length < 2 || Si(n.encoding) === bi || n.language === M || e.indexOf(10) >= 0) return t;
|
|
4449
4445
|
let r = 0;
|
|
4450
|
-
for (let t = 0; t < e.length && r <
|
|
4451
|
-
if (r <
|
|
4446
|
+
for (let t = 0; t < e.length && r < yi; t++) e[t] === 13 && r++;
|
|
4447
|
+
if (r < yi) return t;
|
|
4452
4448
|
for (let r = 1; r < t.length; r++) {
|
|
4453
4449
|
let i = t[r];
|
|
4454
|
-
if (n.confidence - i.confidence >
|
|
4455
|
-
if (i.encoding !== null &&
|
|
4450
|
+
if (n.confidence - i.confidence > vi) break;
|
|
4451
|
+
if (i.encoding !== null && Si(i.encoding) === bi) {
|
|
4456
4452
|
let a = /* @__PURE__ */ new Set();
|
|
4457
|
-
if (n.language !== null && a.add(n.language), i.language !== null && a.add(i.language),
|
|
4458
|
-
return
|
|
4453
|
+
if (n.language !== null && a.add(n.language), i.language !== null && a.add(i.language), I.confusionPairWinner(e, n.encoding, i.encoding, a) === n.encoding) break;
|
|
4454
|
+
return F(t, r);
|
|
4459
4455
|
}
|
|
4460
4456
|
}
|
|
4461
4457
|
return t;
|
|
4462
4458
|
}
|
|
4463
|
-
function
|
|
4459
|
+
function Ai(e, t) {
|
|
4464
4460
|
if (!Be(t, e)) return !1;
|
|
4465
4461
|
let n = qe[t];
|
|
4466
|
-
return n === void 0 || Be(
|
|
4462
|
+
return n === void 0 || Be(E(n) ?? n, e);
|
|
4467
4463
|
}
|
|
4468
|
-
function
|
|
4464
|
+
function ji(e, t, n) {
|
|
4469
4465
|
let r = t.length > 0 ? t[0] : null;
|
|
4470
4466
|
if (n || r === null || r.encoding === null || t.length < 2) return t;
|
|
4471
4467
|
let i = !1;
|
|
@@ -4476,26 +4472,26 @@ function Mi(e, t, n) {
|
|
|
4476
4472
|
if (!i || !Ve(r.encoding, e)) return t;
|
|
4477
4473
|
for (let n = 1; n < t.length; n++) {
|
|
4478
4474
|
let r = t[n];
|
|
4479
|
-
if (r.encoding !== null &&
|
|
4475
|
+
if (r.encoding !== null && Ai(e, r.encoding)) return F(t, n);
|
|
4480
4476
|
}
|
|
4481
4477
|
return t;
|
|
4482
4478
|
}
|
|
4483
|
-
|
|
4484
|
-
function
|
|
4485
|
-
return t =
|
|
4486
|
-
}
|
|
4487
|
-
var
|
|
4488
|
-
_promoteSupersetOnDeadHeat:
|
|
4489
|
-
_preferPrevalentOnDeadHeat:
|
|
4490
|
-
_arbitrateRareLanguage:
|
|
4491
|
-
resolveConfusionGroups:
|
|
4492
|
-
_demoteNicheLatin:
|
|
4493
|
-
_promoteKoi8t:
|
|
4494
|
-
_promoteMacOnCrLineEndings:
|
|
4495
|
-
_preferDecodableOnTie:
|
|
4496
|
-
confusionPairWinner:
|
|
4479
|
+
Ei + 2 * ai;
|
|
4480
|
+
function Mi(e, t, { inputTruncated: n = !1 } = {}) {
|
|
4481
|
+
return t = I._promoteSupersetOnDeadHeat(e, t), t = I._preferPrevalentOnDeadHeat(e, t), t = I._arbitrateRareLanguage(t), t = I.resolveConfusionGroups(e, t), t = I._demoteNicheLatin(e, t), t = I._promoteKoi8t(e, t), t = I._promoteMacOnCrLineEndings(e, t), I._preferDecodableOnTie(e, t, n);
|
|
4482
|
+
}
|
|
4483
|
+
var I = {
|
|
4484
|
+
_promoteSupersetOnDeadHeat: Ti,
|
|
4485
|
+
_preferPrevalentOnDeadHeat: wi,
|
|
4486
|
+
_arbitrateRareLanguage: Oi,
|
|
4487
|
+
resolveConfusionGroups: ci,
|
|
4488
|
+
_demoteNicheLatin: hi,
|
|
4489
|
+
_promoteKoi8t: gi,
|
|
4490
|
+
_promoteMacOnCrLineEndings: ki,
|
|
4491
|
+
_preferDecodableOnTie: ji,
|
|
4492
|
+
confusionPairWinner: Kr
|
|
4497
4493
|
};
|
|
4498
|
-
function
|
|
4494
|
+
function Ni(e, t) {
|
|
4499
4495
|
if (e.length === 0 || t.length === 0) return [];
|
|
4500
4496
|
let n = new Tt(e), r = [];
|
|
4501
4497
|
for (let i of t) {
|
|
@@ -4513,8 +4509,8 @@ function Pi(e, t) {
|
|
|
4513
4509
|
mimeType: null
|
|
4514
4510
|
}));
|
|
4515
4511
|
}
|
|
4516
|
-
var
|
|
4517
|
-
function
|
|
4512
|
+
var Pi = .8, Fi = .99, Ii = 6;
|
|
4513
|
+
function Li(e) {
|
|
4518
4514
|
if (e.length === 0) return [!0, null];
|
|
4519
4515
|
let t = 0, n = e.length, r = 0, i = 0;
|
|
4520
4516
|
for (; t < n;) {
|
|
@@ -4536,34 +4532,34 @@ function Ri(e) {
|
|
|
4536
4532
|
r++, i += o, t += o;
|
|
4537
4533
|
}
|
|
4538
4534
|
if (r === 0) return [!0, null];
|
|
4539
|
-
let a = i / n, o =
|
|
4535
|
+
let a = i / n, o = Fi - Pi;
|
|
4540
4536
|
return [!0, {
|
|
4541
4537
|
encoding: "utf-8",
|
|
4542
|
-
confidence: Math.min(
|
|
4538
|
+
confidence: Math.min(Fi, Pi + o * Math.min(a * Ii, 1)),
|
|
4543
4539
|
language: null,
|
|
4544
4540
|
mimeType: null
|
|
4545
4541
|
}];
|
|
4546
4542
|
}
|
|
4547
|
-
var
|
|
4548
|
-
function
|
|
4549
|
-
if (t >=
|
|
4550
|
-
for (let t of e) if (!
|
|
4543
|
+
var Ri = 4096, zi = 16, Bi = 10, Vi = .03, Hi = .5, Ui = .05, Wi = .7, Gi = .15, Ki = /* @__PURE__ */ new Set([0, ...jt]), qi = /^\p{L}$/u, Ji = /^\p{M}$/u, Yi = /^\p{Zs}$/u, Xi = /^\p{C}$/u;
|
|
4544
|
+
function Zi(e, t) {
|
|
4545
|
+
if (t >= Gi) return !1;
|
|
4546
|
+
for (let t of e) if (!Ki.has(t)) return !1;
|
|
4551
4547
|
return !0;
|
|
4552
4548
|
}
|
|
4553
|
-
function
|
|
4554
|
-
let t = e.subarray(0,
|
|
4555
|
-
if (t.length <
|
|
4556
|
-
let n =
|
|
4557
|
-
return n === null ?
|
|
4549
|
+
function Qi(e) {
|
|
4550
|
+
let t = e.subarray(0, Ri);
|
|
4551
|
+
if (t.length < Bi) return null;
|
|
4552
|
+
let n = $i(t);
|
|
4553
|
+
return n === null ? ea(t) : n;
|
|
4558
4554
|
}
|
|
4559
|
-
function
|
|
4555
|
+
function $i(e) {
|
|
4560
4556
|
let t = e.length - e.length % 4;
|
|
4561
|
-
if (t <
|
|
4557
|
+
if (t < zi) return null;
|
|
4562
4558
|
let n = e.subarray(0, t), r = t / 4, i = 0, a = 0;
|
|
4563
4559
|
for (let e = 0; e < n.length; e += 4) n[e] === 0 && i++, n[e + 1] === 0 && a++;
|
|
4564
4560
|
if (i === r && a / r > .5) try {
|
|
4565
|
-
let e =
|
|
4566
|
-
if (e !== null &&
|
|
4561
|
+
let e = ia(n);
|
|
4562
|
+
if (e !== null && na(e)) return {
|
|
4567
4563
|
encoding: "utf-32-be",
|
|
4568
4564
|
confidence: .95,
|
|
4569
4565
|
language: null,
|
|
@@ -4573,8 +4569,8 @@ function ea(e) {
|
|
|
4573
4569
|
let o = 0, s = 0;
|
|
4574
4570
|
for (let e = 0; e < n.length; e += 4) n[e + 3] === 0 && o++, n[e + 2] === 0 && s++;
|
|
4575
4571
|
if (o === r && s / r > .5) try {
|
|
4576
|
-
let e =
|
|
4577
|
-
if (e !== null &&
|
|
4572
|
+
let e = aa(n);
|
|
4573
|
+
if (e !== null && na(e)) return {
|
|
4578
4574
|
encoding: "utf-32-le",
|
|
4579
4575
|
confidence: .95,
|
|
4580
4576
|
language: null,
|
|
@@ -4583,12 +4579,12 @@ function ea(e) {
|
|
|
4583
4579
|
} catch {}
|
|
4584
4580
|
return null;
|
|
4585
4581
|
}
|
|
4586
|
-
function
|
|
4587
|
-
let t = Math.min(e.length,
|
|
4588
|
-
if (t -= t % 2, t <
|
|
4582
|
+
function ea(e) {
|
|
4583
|
+
let t = Math.min(e.length, Ri);
|
|
4584
|
+
if (t -= t % 2, t < Bi) return null;
|
|
4589
4585
|
let n = t / 2, r = 0, i = 0;
|
|
4590
4586
|
for (let n = 0; n < t; n += 2) e[n] === 0 && r++, e[n + 1] === 0 && i++;
|
|
4591
|
-
let a = r / n, o = i / n, s = o >=
|
|
4587
|
+
let a = r / n, o = i / n, s = o >= Vi && !Zi(e.subarray(0, t), o), c = a >= Vi && !Zi(e.subarray(0, t), a);
|
|
4592
4588
|
if (!s && !c) return null;
|
|
4593
4589
|
let l = [{
|
|
4594
4590
|
name: "utf-16-le",
|
|
@@ -4603,45 +4599,41 @@ function ta(e) {
|
|
|
4603
4599
|
let u = null, d = -2, f = !1, p = 0, m = !1;
|
|
4604
4600
|
for (let { name: n, qualified: r } of l) {
|
|
4605
4601
|
let i = Ue(n, e.subarray(0, t));
|
|
4606
|
-
if (i === null || (r && (m = !0), !
|
|
4602
|
+
if (i === null || (r && (m = !0), !na(i))) continue;
|
|
4607
4603
|
p++;
|
|
4608
|
-
let a =
|
|
4609
|
-
a > d + (p > 1 ?
|
|
4604
|
+
let a = ra(i);
|
|
4605
|
+
a > d + (p > 1 ? Ui : 0) && (d = a, u = n, f = r);
|
|
4610
4606
|
}
|
|
4611
4607
|
if (u === null) return null;
|
|
4612
4608
|
let h;
|
|
4613
|
-
return h = f ? p === 1 || d >=
|
|
4609
|
+
return h = f ? p === 1 || d >= Hi : m && d >= Hi, h ? {
|
|
4614
4610
|
encoding: u,
|
|
4615
4611
|
confidence: .95,
|
|
4616
4612
|
language: null,
|
|
4617
4613
|
mimeType: null
|
|
4618
4614
|
} : null;
|
|
4619
4615
|
}
|
|
4620
|
-
var
|
|
4621
|
-
function
|
|
4616
|
+
var ta = /^[\p{C}\p{Z}]$/u;
|
|
4617
|
+
function na(e) {
|
|
4622
4618
|
if (!e) return !1;
|
|
4623
4619
|
let t = 0, n = 0;
|
|
4624
4620
|
for (let r of e) {
|
|
4625
4621
|
if (t === 500) break;
|
|
4626
|
-
|
|
4627
|
-
n++;
|
|
4628
|
-
continue;
|
|
4629
|
-
}
|
|
4630
|
-
na.test(r) || n++;
|
|
4622
|
+
t++, r === "\n" || r === "\r" || r === " " || r === " " ? n++ : ta.test(r) || n++;
|
|
4631
4623
|
}
|
|
4632
|
-
return n / t >
|
|
4624
|
+
return n / t > Wi;
|
|
4633
4625
|
}
|
|
4634
|
-
function
|
|
4626
|
+
function ra(e, t = 500) {
|
|
4635
4627
|
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0;
|
|
4636
4628
|
for (let c of e) {
|
|
4637
4629
|
if (n === t) break;
|
|
4638
|
-
n++,
|
|
4630
|
+
n++, qi.test(c) ? (r++, c.charCodeAt(0) < 128 && s++) : Ji.test(c) ? i++ : Yi.test(c) || c === "\n" || c === "\r" || c === " " ? a++ : Xi.test(c) && o++;
|
|
4639
4631
|
}
|
|
4640
4632
|
if (n === 0 || o / n > .1 || i / n > .2) return -1;
|
|
4641
4633
|
let c = r / n;
|
|
4642
4634
|
return c += s / n * .5, n > 20 && a > 0 && (c += .1), c;
|
|
4643
4635
|
}
|
|
4644
|
-
function
|
|
4636
|
+
function ia(e) {
|
|
4645
4637
|
let t = "";
|
|
4646
4638
|
for (let n = 0; n < e.length; n += 4) {
|
|
4647
4639
|
let r = (e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]) >>> 0;
|
|
@@ -4650,7 +4642,7 @@ function aa(e) {
|
|
|
4650
4642
|
}
|
|
4651
4643
|
return t;
|
|
4652
4644
|
}
|
|
4653
|
-
function
|
|
4645
|
+
function aa(e) {
|
|
4654
4646
|
let t = "";
|
|
4655
4647
|
for (let n = 0; n < e.length; n += 4) {
|
|
4656
4648
|
let r = (e[n] | e[n + 1] << 8 | e[n + 2] << 16 | e[n + 3] << 24) >>> 0;
|
|
@@ -4659,19 +4651,19 @@ function oa(e) {
|
|
|
4659
4651
|
}
|
|
4660
4652
|
return t;
|
|
4661
4653
|
}
|
|
4662
|
-
function
|
|
4654
|
+
function oa(e, t) {
|
|
4663
4655
|
if (e.length === 0) return t;
|
|
4664
4656
|
let n = [];
|
|
4665
|
-
for (let r of t)
|
|
4657
|
+
for (let r of t) A(r.name, e) && n.push(r);
|
|
4666
4658
|
return n;
|
|
4667
4659
|
}
|
|
4668
|
-
var
|
|
4660
|
+
var sa = Object.freeze({
|
|
4669
4661
|
encoding: null,
|
|
4670
4662
|
confidence: .95,
|
|
4671
4663
|
language: null,
|
|
4672
4664
|
mimeType: "application/octet-stream"
|
|
4673
|
-
}),
|
|
4674
|
-
function
|
|
4665
|
+
}), ca = .85, la = 16384;
|
|
4666
|
+
function ua(e, t, n) {
|
|
4675
4667
|
return t.has(e) ? [{
|
|
4676
4668
|
encoding: e,
|
|
4677
4669
|
confidence: .1,
|
|
@@ -4679,35 +4671,35 @@ function da(e, t, n) {
|
|
|
4679
4671
|
mimeType: null
|
|
4680
4672
|
}] : (g(`${n} '${e}' is excluded by include_encodings/exclude_encodings; returning encoding=None`), [{ ...Mt }]);
|
|
4681
4673
|
}
|
|
4682
|
-
function
|
|
4674
|
+
function da(e, t, n, r, i) {
|
|
4683
4675
|
if (e.length <= t.length) return n;
|
|
4684
4676
|
for (let t = 0; t < n.length; t++) {
|
|
4685
4677
|
let r = n[t].encoding;
|
|
4686
|
-
if (r !== null &&
|
|
4678
|
+
if (r !== null && A(r, e)) return t === 0 ? n : n.slice(t);
|
|
4687
4679
|
}
|
|
4688
|
-
return
|
|
4680
|
+
return ua(i, r, "no_match_encoding");
|
|
4689
4681
|
}
|
|
4690
|
-
var
|
|
4691
|
-
function
|
|
4682
|
+
var fa = .05, pa = 2, ma = .35, ha = 4, ga = 16;
|
|
4683
|
+
function _a(e, t, n) {
|
|
4692
4684
|
let r = [];
|
|
4693
4685
|
for (let i of t) {
|
|
4694
4686
|
if (i.isMultibyte) {
|
|
4695
4687
|
let t = ar(e, i, n);
|
|
4696
|
-
if (n.mbScores.set(i.name, t), t <
|
|
4688
|
+
if (n.mbScores.set(i.name, t), t < fa) continue;
|
|
4697
4689
|
if (n.nonAsciiCount === null) {
|
|
4698
4690
|
let t = 0;
|
|
4699
4691
|
for (let n = 0; n < e.length; n++) e[n] > 127 && t++;
|
|
4700
4692
|
n.nonAsciiCount = t;
|
|
4701
4693
|
}
|
|
4702
|
-
if (n.nonAsciiCount <
|
|
4694
|
+
if (n.nonAsciiCount < pa) continue;
|
|
4703
4695
|
let r = or(e, i, n, n.nonAsciiCount);
|
|
4704
|
-
if (n.mbCoverage.set(i.name, r), r <
|
|
4696
|
+
if (n.mbCoverage.set(i.name, r), r < ma || n.nonAsciiCount >= ga && sr(e, i, n) < ha) continue;
|
|
4705
4697
|
}
|
|
4706
4698
|
r.push(i);
|
|
4707
4699
|
}
|
|
4708
4700
|
return r;
|
|
4709
4701
|
}
|
|
4710
|
-
function
|
|
4702
|
+
function va(e, t, n, r) {
|
|
4711
4703
|
let i = /* @__PURE__ */ new Map();
|
|
4712
4704
|
for (let e of n) e.isMultibyte && i.set(e.name, e);
|
|
4713
4705
|
let a = [];
|
|
@@ -4715,7 +4707,7 @@ function ya(e, t, n, r) {
|
|
|
4715
4707
|
let t = i.get(e);
|
|
4716
4708
|
t !== void 0 && a.push(t);
|
|
4717
4709
|
}
|
|
4718
|
-
let o = n.filter((e) => !e.isMultibyte), s =
|
|
4710
|
+
let o = n.filter((e) => !e.isMultibyte), s = Ni(e.subarray(0, la), [...a, ...o]), c = [];
|
|
4719
4711
|
for (let e of s) {
|
|
4720
4712
|
let t = e.encoding ? r.mbCoverage.get(e.encoding) ?? 0 : 0;
|
|
4721
4713
|
t >= .95 ? c.push({
|
|
@@ -4727,7 +4719,7 @@ function ya(e, t, n, r) {
|
|
|
4727
4719
|
}
|
|
4728
4720
|
return c.sort((e, t) => t.confidence - e.confidence), c;
|
|
4729
4721
|
}
|
|
4730
|
-
function
|
|
4722
|
+
function ya(e) {
|
|
4731
4723
|
if (e.mimeType !== null) return e;
|
|
4732
4724
|
let t = e.encoding === null ? "application/octet-stream" : "text/plain";
|
|
4733
4725
|
return {
|
|
@@ -4737,52 +4729,52 @@ function ba(e) {
|
|
|
4737
4729
|
mimeType: t
|
|
4738
4730
|
};
|
|
4739
4731
|
}
|
|
4740
|
-
function
|
|
4732
|
+
function ba(e, t, n, r, i, a, o, s) {
|
|
4741
4733
|
let c = new Nt();
|
|
4742
4734
|
s ||= e.length > n, e = e.subarray(0, n);
|
|
4743
|
-
let l =
|
|
4744
|
-
if (e.length === 0) return
|
|
4735
|
+
let l = we(t, r ?? void 0, i ?? void 0), u = new Set(l.map((e) => e.name));
|
|
4736
|
+
if (e.length === 0) return ua(o, u, "empty_input_encoding");
|
|
4745
4737
|
let d = Xt(e);
|
|
4746
4738
|
if (d !== null && d.encoding !== null && u.has(d.encoding)) return [d];
|
|
4747
|
-
let f =
|
|
4739
|
+
let f = Qi(e);
|
|
4748
4740
|
if (f !== null && f.encoding !== null && u.has(f.encoding)) return [f];
|
|
4749
4741
|
let p = vn(e);
|
|
4750
4742
|
if (p !== null && p.encoding !== null && u.has(p.encoding)) return [p];
|
|
4751
4743
|
let m = Jn(e);
|
|
4752
4744
|
if (m !== null) return [m];
|
|
4753
|
-
let [h, g] =
|
|
4754
|
-
if (g === null && _ === null && Vt(e, n)) return [{ ...
|
|
4745
|
+
let [h, g] = Li(e), _ = Ft(e);
|
|
4746
|
+
if (g === null && _ === null && Vt(e, n)) return [{ ...sa }];
|
|
4755
4747
|
let y = xr(e);
|
|
4756
4748
|
if (y !== null && y.encoding !== null && u.has(y.encoding)) return g !== null && g.encoding !== null && g.encoding !== y.encoding && u.has(g.encoding) ? [{
|
|
4757
4749
|
encoding: g.encoding,
|
|
4758
4750
|
confidence: g.confidence,
|
|
4759
4751
|
language: g.language,
|
|
4760
4752
|
mimeType: y.mimeType
|
|
4761
|
-
}] : (y =
|
|
4753
|
+
}] : (y = Sa.promoteMarkupSuperset(e, y, u), [y]);
|
|
4762
4754
|
if (_ !== null && _.encoding !== null && u.has(_.encoding)) return [_];
|
|
4763
4755
|
if (g !== null && g.encoding !== null && u.has(g.encoding)) return [g];
|
|
4764
|
-
let b = e.subarray(0, v), x = s || e.length > b.length, S =
|
|
4765
|
-
if (!h && e.length > b.length && (S = S.filter((e) => e.name !== "utf-8")), S.length === 0 || (S =
|
|
4756
|
+
let b = e.subarray(0, v), x = s || e.length > b.length, S = Sa.filterByValidity(b, l);
|
|
4757
|
+
if (!h && e.length > b.length && (S = S.filter((e) => e.name !== "utf-8")), S.length === 0 || (S = Sa._gateCjkCandidates(b, S, c), S.length === 0)) return ua(a, u, "no_match_encoding");
|
|
4766
4758
|
let C = [];
|
|
4767
4759
|
for (let e of S) if (e.isMultibyte) {
|
|
4768
4760
|
let t = c.mbScores.get(e.name);
|
|
4769
4761
|
t === void 0 && (t = ar(b, e, c)), t > 0 && C.push([e.name, t]);
|
|
4770
4762
|
}
|
|
4771
|
-
if (C.length > 0 && (C.sort((e, t) => t[1] - e[1]), C[0][1] >=
|
|
4772
|
-
let t =
|
|
4773
|
-
if (t.length > 0) return t =
|
|
4763
|
+
if (C.length > 0 && (C.sort((e, t) => t[1] - e[1]), C[0][1] >= ca)) {
|
|
4764
|
+
let t = va(b, C, S, c);
|
|
4765
|
+
if (t.length > 0) return t = Sa.postprocessResults(b, t, { inputTruncated: x }), da(e, b, t, u, a);
|
|
4774
4766
|
}
|
|
4775
|
-
let w =
|
|
4776
|
-
return w.length === 0 ?
|
|
4767
|
+
let w = Ni(b.subarray(0, la), S);
|
|
4768
|
+
return w.length === 0 ? ua(a, u, "no_match_encoding") : (w = Sa.postprocessResults(b, w, { inputTruncated: x }), da(e, b, w, u, a));
|
|
4777
4769
|
}
|
|
4778
|
-
function
|
|
4779
|
-
let r = n?.maxBytes ?? _, i =
|
|
4780
|
-
if (i =
|
|
4770
|
+
function xa(e, t, n) {
|
|
4771
|
+
let r = n?.maxBytes ?? _, i = ba(e, t, r, n?.includeEncodings ?? null, n?.excludeEncodings ?? null, n?.noMatchEncoding ?? "cp1252", n?.emptyInputEncoding ?? "utf-8", n?.inputTruncated ?? !1);
|
|
4772
|
+
if (i = Sa.fillLanguages(e.subarray(0, r), i), i = i.map((e) => e.language === M ? {
|
|
4781
4773
|
encoding: e.encoding,
|
|
4782
4774
|
confidence: e.confidence,
|
|
4783
4775
|
language: null,
|
|
4784
4776
|
mimeType: e.mimeType
|
|
4785
|
-
} : e), i = i.map(
|
|
4777
|
+
} : e), i = i.map(ya), i.length === 0) throw Error("pipeline must always return at least one result");
|
|
4786
4778
|
return i.map((e) => e.confidence > 1 ? {
|
|
4787
4779
|
encoding: e.encoding,
|
|
4788
4780
|
confidence: 1,
|
|
@@ -4790,20 +4782,20 @@ function Sa(e, t, n) {
|
|
|
4790
4782
|
mimeType: e.mimeType
|
|
4791
4783
|
} : e);
|
|
4792
4784
|
}
|
|
4793
|
-
var
|
|
4794
|
-
filterByValidity:
|
|
4785
|
+
var Sa = {
|
|
4786
|
+
filterByValidity: oa,
|
|
4795
4787
|
promoteMarkupSuperset: Cr,
|
|
4796
|
-
_makeFallbackOrNone:
|
|
4797
|
-
_gateCjkCandidates:
|
|
4798
|
-
_scoreStructuralCandidates:
|
|
4799
|
-
postprocessResults:
|
|
4788
|
+
_makeFallbackOrNone: ua,
|
|
4789
|
+
_gateCjkCandidates: _a,
|
|
4790
|
+
_scoreStructuralCandidates: va,
|
|
4791
|
+
postprocessResults: Mi,
|
|
4800
4792
|
fillLanguages: xn,
|
|
4801
|
-
_runPipelineCore:
|
|
4802
|
-
},
|
|
4793
|
+
_runPipelineCore: ba
|
|
4794
|
+
}, Ca = class {
|
|
4803
4795
|
constructor(e = {}) {
|
|
4804
4796
|
f(this, "_preferSuperset"), f(this, "_compatNames"), f(this, "_encodingEra"), f(this, "_maxBytes"), f(this, "_includeEncodings"), f(this, "_excludeEncodings"), f(this, "_noMatchEncoding"), f(this, "_emptyInputEncoding"), f(this, "_chunks", []), f(this, "_bufferLength", 0), f(this, "_inputTruncated", !1), f(this, "_done", !1), f(this, "_closed", !1), f(this, "_detection", null), f(this, "_buffer", null), e.langFilter ?? ee.ALL;
|
|
4805
4797
|
let t = e.shouldRenameLegacy ?? !1, n = e.encodingEra ?? w.ALL, r = e.maxBytes ?? _, i = e.preferSuperset ?? !1, a = e.compatNames ?? !0, o = e.includeEncodings ?? null, s = e.excludeEncodings ?? null, c = e.noMatchEncoding ?? "cp1252", l = e.emptyInputEncoding ?? "utf-8";
|
|
4806
|
-
ee.ALL, this._preferSuperset = b(t, i), this._compatNames = a, y(r), this._encodingEra = n, this._maxBytes = r, this._includeEncodings =
|
|
4798
|
+
ee.ALL, this._preferSuperset = b(t, i), this._compatNames = a, y(r), this._encodingEra = n, this._maxBytes = r, this._includeEncodings = Oe(o, "include_encodings"), this._excludeEncodings = Oe(s, "exclude_encodings"), this._noMatchEncoding = De(c, "no_match_encoding"), this._emptyInputEncoding = De(l, "empty_input_encoding");
|
|
4807
4799
|
}
|
|
4808
4800
|
feed(e) {
|
|
4809
4801
|
if (this._closed) throw Error("feed() called after close() without reset()");
|
|
@@ -4824,7 +4816,7 @@ var Ca = {
|
|
|
4824
4816
|
let e = new Uint8Array(this._bufferLength), t = 0;
|
|
4825
4817
|
for (let n of this._chunks) e.set(n, t), t += n.length;
|
|
4826
4818
|
this._buffer = e;
|
|
4827
|
-
let n =
|
|
4819
|
+
let n = xa(e, this._encodingEra, {
|
|
4828
4820
|
maxBytes: this._maxBytes,
|
|
4829
4821
|
inputTruncated: this._inputTruncated,
|
|
4830
4822
|
includeEncodings: this._includeEncodings,
|
|
@@ -4848,32 +4840,32 @@ var Ca = {
|
|
|
4848
4840
|
return this._preferSuperset && Ke(e, this._buffer ?? void 0), this._compatNames && Je(e), e;
|
|
4849
4841
|
}
|
|
4850
4842
|
};
|
|
4851
|
-
f(
|
|
4852
|
-
function
|
|
4843
|
+
f(Ca, "MINIMUM_THRESHOLD", C), f(Ca, "LEGACY_MAP", We);
|
|
4844
|
+
function wa(e, t = {}) {
|
|
4853
4845
|
let n = t.shouldRenameLegacy ?? !1, r = t.encodingEra ?? w.ALL;
|
|
4854
4846
|
t.chunkSize;
|
|
4855
4847
|
let i = t.maxBytes ?? _, a = t.preferSuperset ?? !1, o = t.compatNames ?? !0, s = t.includeEncodings ?? null, c = t.excludeEncodings ?? null, l = t.noMatchEncoding ?? "cp1252", u = t.emptyInputEncoding ?? "utf-8";
|
|
4856
4848
|
y(i);
|
|
4857
|
-
let d = b(n, a), f = { ...
|
|
4849
|
+
let d = b(n, a), f = { ...xa(e, r, {
|
|
4858
4850
|
maxBytes: i,
|
|
4859
|
-
includeEncodings:
|
|
4860
|
-
excludeEncodings:
|
|
4861
|
-
noMatchEncoding:
|
|
4862
|
-
emptyInputEncoding:
|
|
4851
|
+
includeEncodings: Oe(s, "include_encodings"),
|
|
4852
|
+
excludeEncodings: Oe(c, "exclude_encodings"),
|
|
4853
|
+
noMatchEncoding: De(l, "no_match_encoding"),
|
|
4854
|
+
emptyInputEncoding: De(u, "empty_input_encoding")
|
|
4863
4855
|
})[0] };
|
|
4864
4856
|
return d && Ke(f, e.subarray(0, i)), o && Je(f), f;
|
|
4865
4857
|
}
|
|
4866
|
-
function
|
|
4858
|
+
function Ta(e, t = {}) {
|
|
4867
4859
|
let n = t.ignoreThreshold ?? !1, r = t.shouldRenameLegacy ?? !1, i = t.encodingEra ?? w.ALL;
|
|
4868
4860
|
t.chunkSize;
|
|
4869
4861
|
let a = t.maxBytes ?? _, o = t.preferSuperset ?? !1, s = t.compatNames ?? !0, c = t.includeEncodings ?? null, l = t.excludeEncodings ?? null, u = t.noMatchEncoding ?? "cp1252", d = t.emptyInputEncoding ?? "utf-8";
|
|
4870
4862
|
y(a);
|
|
4871
|
-
let f = b(r, o), p =
|
|
4863
|
+
let f = b(r, o), p = xa(e, i, {
|
|
4872
4864
|
maxBytes: a,
|
|
4873
|
-
includeEncodings:
|
|
4874
|
-
excludeEncodings:
|
|
4875
|
-
noMatchEncoding:
|
|
4876
|
-
emptyInputEncoding:
|
|
4865
|
+
includeEncodings: Oe(c, "include_encodings"),
|
|
4866
|
+
excludeEncodings: Oe(l, "exclude_encodings"),
|
|
4867
|
+
noMatchEncoding: De(u, "no_match_encoding"),
|
|
4868
|
+
emptyInputEncoding: De(d, "empty_input_encoding")
|
|
4877
4869
|
}).map((e) => ({ ...e }));
|
|
4878
4870
|
if (!n) {
|
|
4879
4871
|
let e = p.filter((e) => e.confidence > C);
|
|
@@ -4883,7 +4875,7 @@ function Ea(e, t = {}) {
|
|
|
4883
4875
|
for (let e of p) f && Ke(e, m), s && Je(e);
|
|
4884
4876
|
return p.sort((e, t) => t.confidence - e.confidence), p;
|
|
4885
4877
|
}
|
|
4886
|
-
function
|
|
4878
|
+
function Ea(e) {
|
|
4887
4879
|
if (typeof e == "string") {
|
|
4888
4880
|
let t = new Uint8Array(e.length);
|
|
4889
4881
|
for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n) & 255;
|
|
@@ -4891,11 +4883,11 @@ function Da(e) {
|
|
|
4891
4883
|
}
|
|
4892
4884
|
return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
|
|
4893
4885
|
}
|
|
4894
|
-
function
|
|
4895
|
-
let n =
|
|
4886
|
+
function Da(e, t = {}) {
|
|
4887
|
+
let n = Ea(e), r = {
|
|
4896
4888
|
includeEncodings: t.detectEncodings ?? null,
|
|
4897
4889
|
excludeEncodings: t.excludeEncodings ?? null
|
|
4898
|
-
}, i = t.minimumThreshold !== void 0, a = t.minimumThreshold ?? C, o = m() || i, s =
|
|
4890
|
+
}, i = t.minimumThreshold !== void 0, a = t.minimumThreshold ?? C, o = m() || i, s = Ta(n, {
|
|
4899
4891
|
...r,
|
|
4900
4892
|
ignoreThreshold: o
|
|
4901
4893
|
});
|
|
@@ -4903,9 +4895,8 @@ function Oa(e, t = {}) {
|
|
|
4903
4895
|
let c = s.filter((e) => e.confidence >= a);
|
|
4904
4896
|
return c.length > 0 ? c : s;
|
|
4905
4897
|
}
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
var ka = {
|
|
4898
|
+
// node_modules/@borewit/text-codec/lib/index.js
|
|
4899
|
+
var Oa = {
|
|
4909
4900
|
128: "€",
|
|
4910
4901
|
130: "‚",
|
|
4911
4902
|
131: "ƒ",
|
|
@@ -4933,235 +4924,217 @@ var ka = {
|
|
|
4933
4924
|
156: "œ",
|
|
4934
4925
|
158: "ž",
|
|
4935
4926
|
159: "Ÿ"
|
|
4936
|
-
},
|
|
4937
|
-
for (let [e, t] of Object.entries(
|
|
4938
|
-
var
|
|
4939
|
-
function
|
|
4940
|
-
if (globalThis.TextDecoder !== void 0) return
|
|
4941
|
-
}
|
|
4942
|
-
var
|
|
4943
|
-
function
|
|
4927
|
+
}, ka = {};
|
|
4928
|
+
for (let [e, t] of Object.entries(Oa)) ka[t] = Number.parseInt(e, 10);
|
|
4929
|
+
var Aa;
|
|
4930
|
+
function ja() {
|
|
4931
|
+
if (globalThis.TextDecoder !== void 0) return Aa ??= new globalThis.TextDecoder("utf-8");
|
|
4932
|
+
}
|
|
4933
|
+
var Ma = 32768, L = 65533;
|
|
4934
|
+
function Na(e, t = "utf-8") {
|
|
4944
4935
|
switch (t.toLowerCase()) {
|
|
4945
4936
|
case "utf-8":
|
|
4946
4937
|
case "utf8": {
|
|
4947
|
-
let t =
|
|
4948
|
-
return t ? t.decode(e) :
|
|
4938
|
+
let t = ja();
|
|
4939
|
+
return t ? t.decode(e) : Ia(e);
|
|
4949
4940
|
}
|
|
4950
|
-
case "utf-16le": return
|
|
4941
|
+
case "utf-16le": return La(e);
|
|
4951
4942
|
case "us-ascii":
|
|
4952
|
-
case "ascii": return
|
|
4943
|
+
case "ascii": return Ra(e);
|
|
4953
4944
|
case "latin1":
|
|
4954
|
-
case "iso-8859-1": return
|
|
4955
|
-
case "windows-1252": return
|
|
4945
|
+
case "iso-8859-1": return za(e);
|
|
4946
|
+
case "windows-1252": return Ba(e);
|
|
4956
4947
|
default: throw RangeError(`Encoding '${t}' not supported`);
|
|
4957
4948
|
}
|
|
4958
4949
|
}
|
|
4959
|
-
function
|
|
4950
|
+
function Pa(e, t) {
|
|
4960
4951
|
t.length !== 0 && (e.push(String.fromCharCode.apply(null, t)), t.length = 0);
|
|
4961
4952
|
}
|
|
4962
|
-
function
|
|
4963
|
-
t.push(n), t.length >=
|
|
4953
|
+
function R(e, t, n) {
|
|
4954
|
+
t.push(n), t.length >= Ma && Pa(e, t);
|
|
4964
4955
|
}
|
|
4965
|
-
function
|
|
4966
|
-
|
|
4967
|
-
L(e, t, n);
|
|
4968
|
-
return;
|
|
4969
|
-
}
|
|
4970
|
-
n -= 65536, L(e, t, 55296 + (n >> 10)), L(e, t, 56320 + (n & 1023));
|
|
4956
|
+
function Fa(e, t, n) {
|
|
4957
|
+
n <= 65535 ? R(e, t, n) : (n -= 65536, R(e, t, 55296 + (n >> 10)), R(e, t, 56320 + (n & 1023)));
|
|
4971
4958
|
}
|
|
4972
|
-
function
|
|
4959
|
+
function Ia(e) {
|
|
4973
4960
|
let t = [], n = [], r = 0;
|
|
4974
4961
|
for (e.length >= 3 && e[0] === 239 && e[1] === 187 && e[2] === 191 && (r = 3); r < e.length;) {
|
|
4975
4962
|
let i = e[r];
|
|
4976
4963
|
if (i <= 127) {
|
|
4977
|
-
|
|
4964
|
+
R(t, n, i), r++;
|
|
4978
4965
|
continue;
|
|
4979
4966
|
}
|
|
4980
4967
|
if (i < 194 || i > 244) {
|
|
4981
|
-
|
|
4968
|
+
R(t, n, L), r++;
|
|
4982
4969
|
continue;
|
|
4983
4970
|
}
|
|
4984
4971
|
if (i <= 223) {
|
|
4985
4972
|
if (r + 1 >= e.length) {
|
|
4986
|
-
|
|
4973
|
+
R(t, n, L), r++;
|
|
4987
4974
|
continue;
|
|
4988
4975
|
}
|
|
4989
4976
|
let a = e[r + 1];
|
|
4990
4977
|
if ((a & 192) != 128) {
|
|
4991
|
-
|
|
4978
|
+
R(t, n, L), r++;
|
|
4992
4979
|
continue;
|
|
4993
4980
|
}
|
|
4994
|
-
|
|
4981
|
+
R(t, n, (i & 31) << 6 | a & 63), r += 2;
|
|
4995
4982
|
continue;
|
|
4996
4983
|
}
|
|
4997
4984
|
if (i <= 239) {
|
|
4998
4985
|
if (r + 2 >= e.length) {
|
|
4999
|
-
|
|
4986
|
+
R(t, n, L), r++;
|
|
5000
4987
|
continue;
|
|
5001
4988
|
}
|
|
5002
4989
|
let a = e[r + 1], o = e[r + 2];
|
|
5003
4990
|
if ((a & 192) != 128 || (o & 192) != 128 || i === 224 && a < 160 || i === 237 && a >= 160) {
|
|
5004
|
-
|
|
4991
|
+
R(t, n, L), r++;
|
|
5005
4992
|
continue;
|
|
5006
4993
|
}
|
|
5007
|
-
|
|
4994
|
+
R(t, n, (i & 15) << 12 | (a & 63) << 6 | o & 63), r += 3;
|
|
5008
4995
|
continue;
|
|
5009
4996
|
}
|
|
5010
4997
|
if (r + 3 >= e.length) {
|
|
5011
|
-
|
|
4998
|
+
R(t, n, L), r++;
|
|
5012
4999
|
continue;
|
|
5013
5000
|
}
|
|
5014
5001
|
let a = e[r + 1], o = e[r + 2], s = e[r + 3];
|
|
5015
|
-
|
|
5016
|
-
L(t, n, I), r++;
|
|
5017
|
-
continue;
|
|
5018
|
-
}
|
|
5019
|
-
Ia(t, n, (i & 7) << 18 | (a & 63) << 12 | (o & 63) << 6 | s & 63), r += 4;
|
|
5002
|
+
(a & 192) != 128 || (o & 192) != 128 || (s & 192) != 128 || i === 240 && a < 144 || i === 244 && a > 143 ? (R(t, n, L), r++) : (Fa(t, n, (i & 7) << 18 | (a & 63) << 12 | (o & 63) << 6 | s & 63), r += 4);
|
|
5020
5003
|
}
|
|
5021
|
-
return
|
|
5004
|
+
return Pa(t, n), t.join("");
|
|
5022
5005
|
}
|
|
5023
|
-
function
|
|
5006
|
+
function La(e) {
|
|
5024
5007
|
let t = [], n = [], r = e.length, i = 0;
|
|
5025
5008
|
for (; i + 1 < r;) {
|
|
5026
5009
|
let a = e[i] | e[i + 1] << 8;
|
|
5027
5010
|
if (i += 2, a >= 55296 && a <= 56319) {
|
|
5028
5011
|
if (i + 1 < r) {
|
|
5029
5012
|
let r = e[i] | e[i + 1] << 8;
|
|
5030
|
-
r >= 56320 && r <= 57343 ? (
|
|
5031
|
-
} else
|
|
5032
|
-
|
|
5033
|
-
}
|
|
5034
|
-
if (a >= 56320 && a <= 57343) {
|
|
5035
|
-
L(t, n, I);
|
|
5036
|
-
continue;
|
|
5037
|
-
}
|
|
5038
|
-
L(t, n, a);
|
|
5013
|
+
r >= 56320 && r <= 57343 ? (R(t, n, a), R(t, n, r), i += 2) : R(t, n, L);
|
|
5014
|
+
} else R(t, n, L);
|
|
5015
|
+
} else a >= 56320 && a <= 57343 ? R(t, n, L) : R(t, n, a);
|
|
5039
5016
|
}
|
|
5040
|
-
return i < r &&
|
|
5017
|
+
return i < r && R(t, n, L), Pa(t, n), t.join("");
|
|
5041
5018
|
}
|
|
5042
|
-
function
|
|
5019
|
+
function Ra(e) {
|
|
5043
5020
|
let t = [];
|
|
5044
|
-
for (let n = 0; n < e.length; n +=
|
|
5045
|
-
let r = Math.min(e.length, n +
|
|
5021
|
+
for (let n = 0; n < e.length; n += Ma) {
|
|
5022
|
+
let r = Math.min(e.length, n + Ma), i = Array(r - n);
|
|
5046
5023
|
for (let t = n, a = 0; t < r; t++, a++) i[a] = e[t] & 127;
|
|
5047
5024
|
t.push(String.fromCharCode.apply(null, i));
|
|
5048
5025
|
}
|
|
5049
5026
|
return t.join("");
|
|
5050
5027
|
}
|
|
5051
|
-
function
|
|
5028
|
+
function za(e) {
|
|
5052
5029
|
let t = [];
|
|
5053
|
-
for (let n = 0; n < e.length; n +=
|
|
5054
|
-
let r = Math.min(e.length, n +
|
|
5030
|
+
for (let n = 0; n < e.length; n += Ma) {
|
|
5031
|
+
let r = Math.min(e.length, n + Ma), i = Array(r - n);
|
|
5055
5032
|
for (let t = n, a = 0; t < r; t++, a++) i[a] = e[t];
|
|
5056
5033
|
t.push(String.fromCharCode.apply(null, i));
|
|
5057
5034
|
}
|
|
5058
5035
|
return t.join("");
|
|
5059
5036
|
}
|
|
5060
|
-
function
|
|
5037
|
+
function Ba(e) {
|
|
5061
5038
|
let t = [], n = "";
|
|
5062
5039
|
for (let r = 0; r < e.length; r++) {
|
|
5063
|
-
let i = e[r], a = i >= 128 && i <= 159 ?
|
|
5064
|
-
n += a ?? String.fromCharCode(i), n.length >=
|
|
5040
|
+
let i = e[r], a = i >= 128 && i <= 159 ? Oa[i] : void 0;
|
|
5041
|
+
n += a ?? String.fromCharCode(i), n.length >= Ma && (t.push(n), n = "");
|
|
5065
5042
|
}
|
|
5066
5043
|
return n && t.push(n), t.join("");
|
|
5067
5044
|
}
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
function R(e) {
|
|
5045
|
+
// node_modules/token-types/lib/index.js
|
|
5046
|
+
function z(e) {
|
|
5071
5047
|
return new DataView(e.buffer, e.byteOffset);
|
|
5072
5048
|
}
|
|
5073
|
-
var
|
|
5049
|
+
var Va = {
|
|
5074
5050
|
len: 1,
|
|
5075
5051
|
get(e, t) {
|
|
5076
|
-
return
|
|
5052
|
+
return z(e).getUint8(t);
|
|
5077
5053
|
},
|
|
5078
5054
|
put(e, t, n) {
|
|
5079
|
-
return
|
|
5055
|
+
return z(e).setUint8(t, n), t + 1;
|
|
5080
5056
|
}
|
|
5081
|
-
},
|
|
5057
|
+
}, B = {
|
|
5082
5058
|
len: 2,
|
|
5083
5059
|
get(e, t) {
|
|
5084
|
-
return
|
|
5060
|
+
return z(e).getUint16(t, !0);
|
|
5085
5061
|
},
|
|
5086
5062
|
put(e, t, n) {
|
|
5087
|
-
return
|
|
5063
|
+
return z(e).setUint16(t, n, !0), t + 2;
|
|
5088
5064
|
}
|
|
5089
|
-
},
|
|
5065
|
+
}, Ha = {
|
|
5090
5066
|
len: 2,
|
|
5091
5067
|
get(e, t) {
|
|
5092
|
-
return
|
|
5068
|
+
return z(e).getUint16(t);
|
|
5093
5069
|
},
|
|
5094
5070
|
put(e, t, n) {
|
|
5095
|
-
return
|
|
5071
|
+
return z(e).setUint16(t, n), t + 2;
|
|
5096
5072
|
}
|
|
5097
|
-
},
|
|
5073
|
+
}, V = {
|
|
5098
5074
|
len: 4,
|
|
5099
5075
|
get(e, t) {
|
|
5100
|
-
return
|
|
5076
|
+
return z(e).getUint32(t, !0);
|
|
5101
5077
|
},
|
|
5102
5078
|
put(e, t, n) {
|
|
5103
|
-
return
|
|
5079
|
+
return z(e).setUint32(t, n, !0), t + 4;
|
|
5104
5080
|
}
|
|
5105
|
-
},
|
|
5081
|
+
}, Ua = {
|
|
5106
5082
|
len: 4,
|
|
5107
5083
|
get(e, t) {
|
|
5108
|
-
return
|
|
5084
|
+
return z(e).getUint32(t);
|
|
5109
5085
|
},
|
|
5110
5086
|
put(e, t, n) {
|
|
5111
|
-
return
|
|
5087
|
+
return z(e).setUint32(t, n), t + 4;
|
|
5112
5088
|
}
|
|
5113
|
-
},
|
|
5089
|
+
}, Wa = {
|
|
5114
5090
|
len: 4,
|
|
5115
5091
|
get(e, t) {
|
|
5116
|
-
return
|
|
5092
|
+
return z(e).getInt32(t);
|
|
5117
5093
|
},
|
|
5118
5094
|
put(e, t, n) {
|
|
5119
|
-
return
|
|
5095
|
+
return z(e).setInt32(t, n), t + 4;
|
|
5120
5096
|
}
|
|
5121
|
-
},
|
|
5097
|
+
}, Ga = {
|
|
5122
5098
|
len: 8,
|
|
5123
5099
|
get(e, t) {
|
|
5124
|
-
return
|
|
5100
|
+
return z(e).getBigUint64(t, !0);
|
|
5125
5101
|
},
|
|
5126
5102
|
put(e, t, n) {
|
|
5127
|
-
return
|
|
5103
|
+
return z(e).setBigUint64(t, n, !0), t + 8;
|
|
5128
5104
|
}
|
|
5129
|
-
},
|
|
5105
|
+
}, H = class {
|
|
5130
5106
|
constructor(e, t) {
|
|
5131
5107
|
this.len = e, this.encoding = t;
|
|
5132
5108
|
}
|
|
5133
5109
|
get(e, t = 0) {
|
|
5134
|
-
return
|
|
5110
|
+
return Na(e.subarray(t, t + this.len), this.encoding);
|
|
5135
5111
|
}
|
|
5136
|
-
},
|
|
5112
|
+
}, Ka = "End-Of-Stream", U = class extends Error {
|
|
5137
5113
|
constructor() {
|
|
5138
|
-
super(
|
|
5114
|
+
super(Ka), this.name = "EndOfStreamError";
|
|
5139
5115
|
}
|
|
5140
|
-
},
|
|
5116
|
+
}, qa = class extends Error {
|
|
5141
5117
|
constructor(e = "The operation was aborted") {
|
|
5142
5118
|
super(e), this.name = "AbortError";
|
|
5143
5119
|
}
|
|
5144
5120
|
};
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
//#region node_modules/strtok3/lib/BufferSizeError.js
|
|
5152
|
-
var Xa = class extends RangeError {
|
|
5121
|
+
// node_modules/strtok3/lib/AbortSignal.js
|
|
5122
|
+
function Ja(e) {
|
|
5123
|
+
if (e?.aborted) throw new qa();
|
|
5124
|
+
}
|
|
5125
|
+
// node_modules/strtok3/lib/BufferSizeError.js
|
|
5126
|
+
var Ya = class extends RangeError {
|
|
5153
5127
|
constructor(e, t) {
|
|
5154
5128
|
super(`Requested buffer size ${e} exceeds maxBufferSize ${t}`), this.requestedSize = e, this.maxBufferSize = t, this.name = "BufferSizeError";
|
|
5155
5129
|
}
|
|
5156
5130
|
};
|
|
5157
|
-
function
|
|
5131
|
+
function Xa(e) {
|
|
5158
5132
|
let t = e?.maxBufferSize ?? Infinity;
|
|
5159
5133
|
if (t !== Infinity && (!Number.isSafeInteger(t) || t <= 0)) throw RangeError("maxBufferSize must be a positive safe integer or Infinity");
|
|
5160
5134
|
return t;
|
|
5161
5135
|
}
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
var Qa = class {
|
|
5136
|
+
// node_modules/strtok3/lib/stream/AbstractStreamReader.js
|
|
5137
|
+
var Za = class {
|
|
5165
5138
|
constructor() {
|
|
5166
5139
|
this.endOfStream = !1, this.interrupted = !1, this.peekQueue = [];
|
|
5167
5140
|
}
|
|
@@ -5172,7 +5145,7 @@ var Qa = class {
|
|
|
5172
5145
|
async read(e, t = !1) {
|
|
5173
5146
|
if (e.length === 0) return 0;
|
|
5174
5147
|
let n = this.readFromPeekBuffer(e);
|
|
5175
|
-
if (this.endOfStream || (n += await this.readRemainderFromStream(e.subarray(n), t)), n === 0 && !t) throw new
|
|
5148
|
+
if (this.endOfStream || (n += await this.readRemainderFromStream(e.subarray(n), t)), n === 0 && !t) throw new U();
|
|
5176
5149
|
return n;
|
|
5177
5150
|
}
|
|
5178
5151
|
readFromPeekBuffer(e) {
|
|
@@ -5188,15 +5161,15 @@ var Qa = class {
|
|
|
5188
5161
|
async readRemainderFromStream(e, t) {
|
|
5189
5162
|
let n = 0;
|
|
5190
5163
|
for (; n < e.length && !this.endOfStream;) {
|
|
5191
|
-
if (this.interrupted) throw new
|
|
5164
|
+
if (this.interrupted) throw new qa();
|
|
5192
5165
|
let r = await this.readFromStream(e.subarray(n), t);
|
|
5193
5166
|
if (r === 0) break;
|
|
5194
5167
|
n += r;
|
|
5195
5168
|
}
|
|
5196
|
-
if (!t && n < e.length) throw new
|
|
5169
|
+
if (!t && n < e.length) throw new U();
|
|
5197
5170
|
return n;
|
|
5198
5171
|
}
|
|
5199
|
-
},
|
|
5172
|
+
}, Qa = class extends Za {
|
|
5200
5173
|
constructor(e) {
|
|
5201
5174
|
super(), this.reader = e;
|
|
5202
5175
|
}
|
|
@@ -5206,13 +5179,13 @@ var Qa = class {
|
|
|
5206
5179
|
async close() {
|
|
5207
5180
|
this.reader.releaseLock();
|
|
5208
5181
|
}
|
|
5209
|
-
},
|
|
5182
|
+
}, $a = class extends Qa {
|
|
5210
5183
|
async readFromStream(e, t) {
|
|
5211
5184
|
if (e.length === 0) return 0;
|
|
5212
5185
|
let n = await this.reader.read(new Uint8Array(e.length), { min: t ? void 0 : e.length });
|
|
5213
5186
|
return n.done && (this.endOfStream = n.done), n.value ? (e.set(n.value), n.value.length) : 0;
|
|
5214
5187
|
}
|
|
5215
|
-
},
|
|
5188
|
+
}, eo = class extends Za {
|
|
5216
5189
|
constructor(e) {
|
|
5217
5190
|
super(), this.reader = e, this.buffer = null;
|
|
5218
5191
|
}
|
|
@@ -5231,7 +5204,7 @@ var Qa = class {
|
|
|
5231
5204
|
}
|
|
5232
5205
|
t.value && (n += this.writeChunk(e.subarray(n), t.value));
|
|
5233
5206
|
}
|
|
5234
|
-
if (!t && n === 0 && this.endOfStream) throw new
|
|
5207
|
+
if (!t && n === 0 && this.endOfStream) throw new U();
|
|
5235
5208
|
return n;
|
|
5236
5209
|
}
|
|
5237
5210
|
abort() {
|
|
@@ -5245,22 +5218,20 @@ var Qa = class {
|
|
|
5245
5218
|
}
|
|
5246
5219
|
}
|
|
5247
5220
|
};
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
function no(e) {
|
|
5221
|
+
// node_modules/strtok3/lib/stream/WebStreamReaderFactory.js
|
|
5222
|
+
function to(e) {
|
|
5251
5223
|
try {
|
|
5252
5224
|
let t = e.getReader({ mode: "byob" });
|
|
5253
|
-
return t instanceof ReadableStreamDefaultReader ? new
|
|
5225
|
+
return t instanceof ReadableStreamDefaultReader ? new eo(t) : new $a(t);
|
|
5254
5226
|
} catch (t) {
|
|
5255
|
-
if (t instanceof TypeError) return new
|
|
5227
|
+
if (t instanceof TypeError) return new eo(e.getReader());
|
|
5256
5228
|
throw t;
|
|
5257
5229
|
}
|
|
5258
5230
|
}
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
var ro = class {
|
|
5231
|
+
// node_modules/strtok3/lib/AbstractTokenizer.js
|
|
5232
|
+
var no = class {
|
|
5262
5233
|
constructor(e) {
|
|
5263
|
-
this.numBuffer = /* @__PURE__ */ new Uint8Array(8), this.position = 0, this.maxBufferSize =
|
|
5234
|
+
this.numBuffer = /* @__PURE__ */ new Uint8Array(8), this.position = 0, this.maxBufferSize = Xa(e), Ja(e?.abortSignal), this.onClose = e?.onClose, e?.abortSignal && this.addAbortListener(e.abortSignal, () => {
|
|
5264
5235
|
this.abort().catch(() => {});
|
|
5265
5236
|
});
|
|
5266
5237
|
}
|
|
@@ -5273,22 +5244,22 @@ var ro = class {
|
|
|
5273
5244
|
async readToken(e, t = this.position) {
|
|
5274
5245
|
this.validateTokenRead(e.len, t);
|
|
5275
5246
|
let n = new Uint8Array(e.len);
|
|
5276
|
-
if (await this.readBuffer(n, { position: t }) < e.len) throw new
|
|
5247
|
+
if (await this.readBuffer(n, { position: t }) < e.len) throw new U();
|
|
5277
5248
|
return e.get(n, 0);
|
|
5278
5249
|
}
|
|
5279
5250
|
async peekToken(e, t = this.position) {
|
|
5280
5251
|
let n = t ?? this.position;
|
|
5281
5252
|
this.validateTokenRead(e.len, n, !0);
|
|
5282
5253
|
let r = new Uint8Array(e.len);
|
|
5283
|
-
if (await this.peekBuffer(r, { position: n }) < e.len) throw new
|
|
5254
|
+
if (await this.peekBuffer(r, { position: n }) < e.len) throw new U();
|
|
5284
5255
|
return e.get(r, 0);
|
|
5285
5256
|
}
|
|
5286
5257
|
async readNumber(e) {
|
|
5287
|
-
if (await this.readBuffer(this.numBuffer, { length: e.len }) < e.len) throw new
|
|
5258
|
+
if (await this.readBuffer(this.numBuffer, { length: e.len }) < e.len) throw new U();
|
|
5288
5259
|
return e.get(this.numBuffer, 0);
|
|
5289
5260
|
}
|
|
5290
5261
|
async peekNumber(e) {
|
|
5291
|
-
if (await this.peekBuffer(this.numBuffer, { length: e.len }) < e.len) throw new
|
|
5262
|
+
if (await this.peekBuffer(this.numBuffer, { length: e.len }) < e.len) throw new U();
|
|
5292
5263
|
return e.get(this.numBuffer, 0);
|
|
5293
5264
|
}
|
|
5294
5265
|
async ignore(e) {
|
|
@@ -5306,11 +5277,11 @@ var ro = class {
|
|
|
5306
5277
|
if (!Number.isSafeInteger(e) || e < 0) throw RangeError(`${t} must be a non-negative safe integer`);
|
|
5307
5278
|
}
|
|
5308
5279
|
validateBufferSize(e) {
|
|
5309
|
-
if (this.validateLength(e, "buffer length"), e > this.maxBufferSize) throw new
|
|
5280
|
+
if (this.validateLength(e, "buffer length"), e > this.maxBufferSize) throw new Ya(e, this.maxBufferSize);
|
|
5310
5281
|
}
|
|
5311
5282
|
validateTokenRead(e, t, n = !1) {
|
|
5312
5283
|
if (this.validateBufferSize(e), this.validateLength(t, "position"), this.validateLength(t + e, "end position"), !this.supportsRandomAccess() && t < this.position) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
|
|
5313
|
-
if (n && !this.supportsRandomAccess() && this.validateBufferSize(e + t - this.position), this.fileInfo.size !== void 0 && e > this.fileInfo.size - t) throw new
|
|
5284
|
+
if (n && !this.supportsRandomAccess() && this.validateBufferSize(e + t - this.position), this.fileInfo.size !== void 0 && e > this.fileInfo.size - t) throw new U();
|
|
5314
5285
|
}
|
|
5315
5286
|
normalizeOptions(e, t) {
|
|
5316
5287
|
let n = t?.length ?? e.length, r = t?.position ?? this.position;
|
|
@@ -5325,7 +5296,7 @@ var ro = class {
|
|
|
5325
5296
|
abort() {
|
|
5326
5297
|
return this.removeAbortListener(), Promise.resolve();
|
|
5327
5298
|
}
|
|
5328
|
-
},
|
|
5299
|
+
}, ro = class extends no {
|
|
5329
5300
|
constructor(e, t) {
|
|
5330
5301
|
super(t), this.blob = e, this.fileInfo = {
|
|
5331
5302
|
...t?.fileInfo ?? {},
|
|
@@ -5339,7 +5310,7 @@ var ro = class {
|
|
|
5339
5310
|
}
|
|
5340
5311
|
async peekBuffer(e, t) {
|
|
5341
5312
|
let n = this.normalizeOptions(e, t), r = Math.max(0, Math.min(this.blob.size - n.position, n.length));
|
|
5342
|
-
if (!n.mayBeLess && r < n.length) throw new
|
|
5313
|
+
if (!n.mayBeLess && r < n.length) throw new U();
|
|
5343
5314
|
for (let t = 0; t < r;) {
|
|
5344
5315
|
let i = Math.min(this.maxBufferSize, r - t), a = n.position + t, o = await this.blob.slice(a, a + i).arrayBuffer();
|
|
5345
5316
|
e.set(new Uint8Array(o), t), t += i;
|
|
@@ -5355,7 +5326,7 @@ var ro = class {
|
|
|
5355
5326
|
setPosition(e) {
|
|
5356
5327
|
this.position = e;
|
|
5357
5328
|
}
|
|
5358
|
-
},
|
|
5329
|
+
}, io = class extends no {
|
|
5359
5330
|
constructor(e, t) {
|
|
5360
5331
|
super(t), this.uint8Array = e, this.fileInfo = {
|
|
5361
5332
|
...t?.fileInfo ?? {},
|
|
@@ -5368,7 +5339,7 @@ var ro = class {
|
|
|
5368
5339
|
}
|
|
5369
5340
|
async peekBuffer(e, t) {
|
|
5370
5341
|
let n = this.normalizeOptions(e, t), r = Math.max(0, Math.min(this.uint8Array.length - n.position, n.length));
|
|
5371
|
-
if (!n.mayBeLess && r < n.length) throw new
|
|
5342
|
+
if (!n.mayBeLess && r < n.length) throw new U();
|
|
5372
5343
|
return e.set(this.uint8Array.subarray(n.position, n.position + r)), r;
|
|
5373
5344
|
}
|
|
5374
5345
|
close() {
|
|
@@ -5380,7 +5351,7 @@ var ro = class {
|
|
|
5380
5351
|
setPosition(e) {
|
|
5381
5352
|
this.position = e;
|
|
5382
5353
|
}
|
|
5383
|
-
},
|
|
5354
|
+
}, ao = 256e3, oo = class extends no {
|
|
5384
5355
|
constructor(e, t) {
|
|
5385
5356
|
super(t), this.streamReader = e, this.fileInfo = t?.fileInfo ?? {};
|
|
5386
5357
|
}
|
|
@@ -5394,7 +5365,7 @@ var ro = class {
|
|
|
5394
5365
|
let t = Math.min(this.maxBufferSize, n.length - i), r = await this.streamReader.read(e.subarray(i, i + t), !0);
|
|
5395
5366
|
if (i += r, this.position += r, r < t) break;
|
|
5396
5367
|
}
|
|
5397
|
-
if (!n.mayBeLess && i < n.length) throw new
|
|
5368
|
+
if (!n.mayBeLess && i < n.length) throw new U();
|
|
5398
5369
|
return i;
|
|
5399
5370
|
}
|
|
5400
5371
|
async peekBuffer(e, t) {
|
|
@@ -5418,17 +5389,17 @@ var ro = class {
|
|
|
5418
5389
|
let t = new Uint8Array(n.length);
|
|
5419
5390
|
i = await this.streamReader.peek(t, !0), e.set(t.subarray(0, i));
|
|
5420
5391
|
} catch (e) {
|
|
5421
|
-
if (t?.mayBeLess && e instanceof
|
|
5392
|
+
if (t?.mayBeLess && e instanceof U) return 0;
|
|
5422
5393
|
throw e;
|
|
5423
5394
|
}
|
|
5424
|
-
if (!n.mayBeLess && i < n.length) throw new
|
|
5395
|
+
if (!n.mayBeLess && i < n.length) throw new U();
|
|
5425
5396
|
}
|
|
5426
5397
|
return i;
|
|
5427
5398
|
}
|
|
5428
5399
|
async ignore(e) {
|
|
5429
5400
|
if (e < 0) throw RangeError("ignore length must be ≥ 0 bytes");
|
|
5430
5401
|
this.validateLength(e, "ignore length"), this.validateLength(this.position + e, "end position");
|
|
5431
|
-
let t = Math.min(
|
|
5402
|
+
let t = Math.min(ao, this.maxBufferSize, e), n = new Uint8Array(t), r = 0;
|
|
5432
5403
|
for (; r < e;) {
|
|
5433
5404
|
let i = e - r, a = await this.readBuffer(n, { length: Math.min(t, i) });
|
|
5434
5405
|
if (a < 0) return a;
|
|
@@ -5446,20 +5417,18 @@ var ro = class {
|
|
|
5446
5417
|
return !1;
|
|
5447
5418
|
}
|
|
5448
5419
|
};
|
|
5449
|
-
|
|
5450
|
-
|
|
5420
|
+
// node_modules/strtok3/lib/core.js
|
|
5421
|
+
function so(e, t) {
|
|
5422
|
+
return Xa(t), Ja(t?.abortSignal), new oo(to(e), t);
|
|
5423
|
+
}
|
|
5451
5424
|
function co(e, t) {
|
|
5452
|
-
return
|
|
5425
|
+
return new io(e, t);
|
|
5453
5426
|
}
|
|
5454
5427
|
function lo(e, t) {
|
|
5455
|
-
return new
|
|
5428
|
+
return new ro(e, t);
|
|
5456
5429
|
}
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
}
|
|
5460
|
-
//#endregion
|
|
5461
|
-
//#region node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
5462
|
-
var fo = class {
|
|
5430
|
+
// node_modules/@tokenizer/inflate/lib/GzipHandler.js
|
|
5431
|
+
var uo = class {
|
|
5463
5432
|
constructor(e) {
|
|
5464
5433
|
this.tokenizer = e;
|
|
5465
5434
|
}
|
|
@@ -5467,14 +5436,10 @@ var fo = class {
|
|
|
5467
5436
|
let e = this.tokenizer;
|
|
5468
5437
|
return new ReadableStream({ async pull(t) {
|
|
5469
5438
|
let n = /* @__PURE__ */ new Uint8Array(1024), r = await e.readBuffer(n, { mayBeLess: !0 });
|
|
5470
|
-
|
|
5471
|
-
t.close();
|
|
5472
|
-
return;
|
|
5473
|
-
}
|
|
5474
|
-
t.enqueue(n.subarray(0, r));
|
|
5439
|
+
r === 0 ? t.close() : t.enqueue(n.subarray(0, r));
|
|
5475
5440
|
} }).pipeThrough(new DecompressionStream("gzip"));
|
|
5476
5441
|
}
|
|
5477
|
-
},
|
|
5442
|
+
}, fo = /* @__PURE__ */ o(((e, t) => {
|
|
5478
5443
|
var n = 1e3, r = n * 60, i = r * 60, a = i * 24, o = a * 7, s = a * 365.25;
|
|
5479
5444
|
t.exports = function(e, t) {
|
|
5480
5445
|
t ||= {};
|
|
@@ -5537,9 +5502,9 @@ var fo = class {
|
|
|
5537
5502
|
var i = t >= n * 1.5;
|
|
5538
5503
|
return Math.round(e / n) + " " + r + (i ? "s" : "");
|
|
5539
5504
|
}
|
|
5540
|
-
})),
|
|
5505
|
+
})), po = /* @__PURE__ */ o(((e, t) => {
|
|
5541
5506
|
function n(e) {
|
|
5542
|
-
n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = i, n.enabled = s, n.humanize =
|
|
5507
|
+
n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = i, n.enabled = s, n.humanize = fo(), n.destroy = l, Object.keys(e).forEach((t) => {
|
|
5543
5508
|
n[t] = e[t];
|
|
5544
5509
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
5545
5510
|
function t(e) {
|
|
@@ -5610,7 +5575,7 @@ var fo = class {
|
|
|
5610
5575
|
return n.enable(n.load()), n;
|
|
5611
5576
|
}
|
|
5612
5577
|
t.exports = n;
|
|
5613
|
-
})),
|
|
5578
|
+
})), mo = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
5614
5579
|
e.formatArgs = r, e.save = i, e.load = a, e.useColors = n, e.storage = o(), e.destroy = (() => {
|
|
5615
5580
|
let e = !1;
|
|
5616
5581
|
return () => {
|
|
@@ -5650,7 +5615,7 @@ var fo = class {
|
|
|
5650
5615
|
return localStorage;
|
|
5651
5616
|
} catch {}
|
|
5652
5617
|
}
|
|
5653
|
-
t.exports =
|
|
5618
|
+
t.exports = po()(e);
|
|
5654
5619
|
var { formatters: s } = t.exports;
|
|
5655
5620
|
s.j = function(e) {
|
|
5656
5621
|
try {
|
|
@@ -5659,82 +5624,81 @@ var fo = class {
|
|
|
5659
5624
|
return "[UnexpectedJSONParseError]: " + e.message;
|
|
5660
5625
|
}
|
|
5661
5626
|
};
|
|
5662
|
-
})))(), 1),
|
|
5627
|
+
})))(), 1), ho = class extends RangeError {
|
|
5663
5628
|
constructor(e, t, n) {
|
|
5664
5629
|
super(`ZIP ${e} exceeded: ${t} bytes exceeds limit of ${n} bytes`), this.limit = e, this.requestedSize = t, this.maxSize = n, this.name = "ZipLimitError";
|
|
5665
5630
|
}
|
|
5666
|
-
},
|
|
5631
|
+
}, go = {
|
|
5667
5632
|
LocalFileHeader: 67324752,
|
|
5668
5633
|
DataDescriptor: 134695760,
|
|
5669
5634
|
CentralFileHeader: 33639248,
|
|
5670
5635
|
EndOfCentralDirectory: 101010256
|
|
5671
|
-
},
|
|
5636
|
+
}, _o = {
|
|
5672
5637
|
get(e) {
|
|
5673
5638
|
return {
|
|
5674
|
-
signature:
|
|
5675
|
-
compressedSize:
|
|
5676
|
-
uncompressedSize:
|
|
5639
|
+
signature: V.get(e, 0),
|
|
5640
|
+
compressedSize: V.get(e, 8),
|
|
5641
|
+
uncompressedSize: V.get(e, 12)
|
|
5677
5642
|
};
|
|
5678
5643
|
},
|
|
5679
5644
|
len: 16
|
|
5680
|
-
},
|
|
5645
|
+
}, vo = {
|
|
5681
5646
|
get(e) {
|
|
5682
|
-
let t =
|
|
5647
|
+
let t = B.get(e, 6);
|
|
5683
5648
|
return {
|
|
5684
|
-
signature:
|
|
5685
|
-
minVersion:
|
|
5649
|
+
signature: V.get(e, 0),
|
|
5650
|
+
minVersion: B.get(e, 4),
|
|
5686
5651
|
dataDescriptor: !!(t & 8),
|
|
5687
|
-
compressedMethod:
|
|
5688
|
-
compressedSize:
|
|
5689
|
-
uncompressedSize:
|
|
5690
|
-
filenameLength:
|
|
5691
|
-
extraFieldLength:
|
|
5652
|
+
compressedMethod: B.get(e, 8),
|
|
5653
|
+
compressedSize: V.get(e, 18),
|
|
5654
|
+
uncompressedSize: V.get(e, 22),
|
|
5655
|
+
filenameLength: B.get(e, 26),
|
|
5656
|
+
extraFieldLength: B.get(e, 28),
|
|
5692
5657
|
filename: null
|
|
5693
5658
|
};
|
|
5694
5659
|
},
|
|
5695
5660
|
len: 30
|
|
5696
|
-
},
|
|
5661
|
+
}, yo = {
|
|
5697
5662
|
get(e) {
|
|
5698
5663
|
return {
|
|
5699
|
-
signature:
|
|
5700
|
-
nrOfThisDisk:
|
|
5701
|
-
nrOfThisDiskWithTheStart:
|
|
5702
|
-
nrOfEntriesOnThisDisk:
|
|
5703
|
-
nrOfEntriesOfSize:
|
|
5704
|
-
sizeOfCd:
|
|
5705
|
-
offsetOfStartOfCd:
|
|
5706
|
-
zipFileCommentLength:
|
|
5664
|
+
signature: V.get(e, 0),
|
|
5665
|
+
nrOfThisDisk: B.get(e, 4),
|
|
5666
|
+
nrOfThisDiskWithTheStart: B.get(e, 6),
|
|
5667
|
+
nrOfEntriesOnThisDisk: B.get(e, 8),
|
|
5668
|
+
nrOfEntriesOfSize: B.get(e, 10),
|
|
5669
|
+
sizeOfCd: V.get(e, 12),
|
|
5670
|
+
offsetOfStartOfCd: V.get(e, 16),
|
|
5671
|
+
zipFileCommentLength: B.get(e, 20)
|
|
5707
5672
|
};
|
|
5708
5673
|
},
|
|
5709
5674
|
len: 22
|
|
5710
|
-
},
|
|
5675
|
+
}, bo = {
|
|
5711
5676
|
get(e) {
|
|
5712
|
-
let t =
|
|
5677
|
+
let t = B.get(e, 8);
|
|
5713
5678
|
return {
|
|
5714
|
-
signature:
|
|
5715
|
-
minVersion:
|
|
5679
|
+
signature: V.get(e, 0),
|
|
5680
|
+
minVersion: B.get(e, 6),
|
|
5716
5681
|
dataDescriptor: !!(t & 8),
|
|
5717
|
-
compressedMethod:
|
|
5718
|
-
compressedSize:
|
|
5719
|
-
uncompressedSize:
|
|
5720
|
-
filenameLength:
|
|
5721
|
-
extraFieldLength:
|
|
5722
|
-
fileCommentLength:
|
|
5723
|
-
relativeOffsetOfLocalHeader:
|
|
5682
|
+
compressedMethod: B.get(e, 10),
|
|
5683
|
+
compressedSize: V.get(e, 20),
|
|
5684
|
+
uncompressedSize: V.get(e, 24),
|
|
5685
|
+
filenameLength: B.get(e, 28),
|
|
5686
|
+
extraFieldLength: B.get(e, 30),
|
|
5687
|
+
fileCommentLength: B.get(e, 32),
|
|
5688
|
+
relativeOffsetOfLocalHeader: V.get(e, 42),
|
|
5724
5689
|
filename: null
|
|
5725
5690
|
};
|
|
5726
5691
|
},
|
|
5727
5692
|
len: 46
|
|
5728
5693
|
};
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
return B.put(t, 0, e), t;
|
|
5694
|
+
// node_modules/@tokenizer/inflate/lib/ZipHandler.js
|
|
5695
|
+
function xo(e) {
|
|
5696
|
+
let t = new Uint8Array(V.len);
|
|
5697
|
+
return V.put(t, 0, e), t;
|
|
5734
5698
|
}
|
|
5735
|
-
var
|
|
5699
|
+
var W = (0, mo.default)("tokenizer:inflate"), So = 262144, Co = xo(go.DataDescriptor), wo = xo(go.EndOfCentralDirectory), To = class {
|
|
5736
5700
|
constructor(e, t = {}) {
|
|
5737
|
-
this.tokenizer = e, this.syncBuffer = new Uint8Array(
|
|
5701
|
+
this.tokenizer = e, this.syncBuffer = new Uint8Array(So), this.limits = {
|
|
5738
5702
|
maxDataDescriptorScanBytes: t.maxDataDescriptorScanBytes ?? Infinity,
|
|
5739
5703
|
maxCompressedSize: t.maxCompressedSize ?? Infinity,
|
|
5740
5704
|
maxUncompressedSize: t.maxUncompressedSize ?? Infinity
|
|
@@ -5742,38 +5706,38 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5742
5706
|
for (let [e, t] of Object.entries(this.limits)) if (t !== Infinity && (!Number.isSafeInteger(t) || t <= 0)) throw RangeError(`${e} must be a positive safe integer or Infinity`);
|
|
5743
5707
|
}
|
|
5744
5708
|
checkLimit(e, t) {
|
|
5745
|
-
if (t > this.limits[e]) throw new
|
|
5709
|
+
if (t > this.limits[e]) throw new ho(e, t, this.limits[e]);
|
|
5746
5710
|
}
|
|
5747
5711
|
checkEntrySize(e) {
|
|
5748
5712
|
this.checkLimit("maxCompressedSize", e.compressedSize), this.checkLimit("maxUncompressedSize", e.uncompressedSize), e.compressedMethod === 0 && this.checkLimit("maxUncompressedSize", e.compressedSize);
|
|
5749
5713
|
}
|
|
5750
5714
|
async isZip() {
|
|
5751
|
-
return await this.peekSignature() ===
|
|
5715
|
+
return await this.peekSignature() === go.LocalFileHeader;
|
|
5752
5716
|
}
|
|
5753
5717
|
peekSignature() {
|
|
5754
|
-
return this.tokenizer.peekToken(
|
|
5718
|
+
return this.tokenizer.peekToken(V);
|
|
5755
5719
|
}
|
|
5756
5720
|
async findEndOfCentralDirectoryLocator() {
|
|
5757
5721
|
let e = this.tokenizer, t = Math.min(16384, e.fileInfo.size), n = this.syncBuffer.subarray(0, t);
|
|
5758
5722
|
await this.tokenizer.readBuffer(n, { position: e.fileInfo.size - t });
|
|
5759
|
-
for (let r = n.length - 4; r >= 0; r--) if (n[r] ===
|
|
5723
|
+
for (let r = n.length - 4; r >= 0; r--) if (n[r] === wo[0] && n[r + 1] === wo[1] && n[r + 2] === wo[2] && n[r + 3] === wo[3]) return e.fileInfo.size - t + r;
|
|
5760
5724
|
return -1;
|
|
5761
5725
|
}
|
|
5762
5726
|
async readCentralDirectory() {
|
|
5763
5727
|
if (!this.tokenizer.supportsRandomAccess()) {
|
|
5764
|
-
|
|
5728
|
+
W("Cannot reading central-directory without random-read support");
|
|
5765
5729
|
return;
|
|
5766
5730
|
}
|
|
5767
|
-
|
|
5731
|
+
W("Reading central-directory...");
|
|
5768
5732
|
let e = this.tokenizer.position, t = await this.findEndOfCentralDirectoryLocator();
|
|
5769
5733
|
if (t > 0) {
|
|
5770
|
-
|
|
5771
|
-
let n = await this.tokenizer.readToken(
|
|
5734
|
+
W("Central-directory 32-bit signature found");
|
|
5735
|
+
let n = await this.tokenizer.readToken(yo, t), r = [];
|
|
5772
5736
|
this.tokenizer.setPosition(n.offsetOfStartOfCd);
|
|
5773
5737
|
for (let e = 0; e < n.nrOfEntriesOfSize; ++e) {
|
|
5774
|
-
let t = await this.tokenizer.readToken(
|
|
5775
|
-
if (t.signature !==
|
|
5776
|
-
t.filename = await this.tokenizer.readToken(new
|
|
5738
|
+
let t = await this.tokenizer.readToken(bo);
|
|
5739
|
+
if (t.signature !== go.CentralFileHeader) throw Error("Expected Central-File-Header signature");
|
|
5740
|
+
t.filename = await this.tokenizer.readToken(new H(t.filenameLength, "utf-8")), await this.tokenizer.ignore(t.extraFieldLength), await this.tokenizer.ignore(t.fileCommentLength), r.push(t), W(`Add central-directory file-entry: n=${e + 1}/${r.length}: filename=${r[e].filename}`);
|
|
5777
5741
|
}
|
|
5778
5742
|
return this.tokenizer.setPosition(e), r;
|
|
5779
5743
|
}
|
|
@@ -5791,10 +5755,10 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5791
5755
|
let i;
|
|
5792
5756
|
if (await this.tokenizer.ignore(t.extraFieldLength), r.handler && this.checkEntrySize(t), t.dataDescriptor && t.compressedSize === 0) {
|
|
5793
5757
|
let e = [], n = 0, i = Math.min(this.limits.maxDataDescriptorScanBytes, r.handler ? this.limits.maxCompressedSize : Infinity, r.handler && t.compressedMethod === 0 ? this.limits.maxUncompressedSize : Infinity);
|
|
5794
|
-
for (
|
|
5795
|
-
let a = Math.min(
|
|
5796
|
-
if (s < 0 && o <
|
|
5797
|
-
let c = s >= 0 ? s : o -
|
|
5758
|
+
for (W("Compressed-file-size unknown, scanning for next data-descriptor-signature....");;) {
|
|
5759
|
+
let a = Math.min(So, i - n + Co.length), o = await this.tokenizer.peekBuffer(this.syncBuffer.subarray(0, a), { mayBeLess: !0 }), s = Eo(this.syncBuffer.subarray(0, o), Co);
|
|
5760
|
+
if (s < 0 && o < Co.length) throw Error("Expected data-descriptor-signature before end of input");
|
|
5761
|
+
let c = s >= 0 ? s : o - Co.length + 1;
|
|
5798
5762
|
if (this.checkLimit("maxDataDescriptorScanBytes", n + c), r.handler) {
|
|
5799
5763
|
if (this.checkLimit("maxCompressedSize", n + c), t.compressedMethod === 0 && this.checkLimit("maxUncompressedSize", n + c), c > 0) {
|
|
5800
5764
|
let t = new Uint8Array(c);
|
|
@@ -5803,9 +5767,9 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5803
5767
|
} else await this.tokenizer.ignore(c);
|
|
5804
5768
|
if (n += c, s >= 0) break;
|
|
5805
5769
|
}
|
|
5806
|
-
|
|
5807
|
-
} else r.handler ? (
|
|
5808
|
-
if (
|
|
5770
|
+
W(`Found data-descriptor-signature at pos=${this.tokenizer.position}`), r.handler && (this.checkLimit("maxCompressedSize", n), await this.inflate(t, Do(e), r.handler));
|
|
5771
|
+
} else r.handler ? (W(`Reading compressed-file-data: ${t.compressedSize} bytes`), i = new Uint8Array(t.compressedSize), await this.tokenizer.readBuffer(i), await this.inflate(t, i, r.handler)) : (W(`Ignoring compressed-file-data: ${t.compressedSize} bytes`), await this.tokenizer.ignore(t.compressedSize));
|
|
5772
|
+
if (W(`Reading data-descriptor at pos=${this.tokenizer.position}`), t.dataDescriptor && (await this.tokenizer.readToken(_o)).signature !== 134695760) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - _o.len}`);
|
|
5809
5773
|
} while (!n);
|
|
5810
5774
|
}
|
|
5811
5775
|
async iterateOverCentralDirectory(e, t) {
|
|
@@ -5826,7 +5790,7 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5826
5790
|
async inflate(e, t, n) {
|
|
5827
5791
|
if (e.compressedMethod === 0) return this.checkLimit("maxUncompressedSize", t.length), n(t);
|
|
5828
5792
|
if (e.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);
|
|
5829
|
-
return
|
|
5793
|
+
return W(`Decompress filename=${e.filename}, compressed-size=${t.length}`), n(await this.decompressDeflateRaw(t));
|
|
5830
5794
|
}
|
|
5831
5795
|
async decompressDeflateRaw(e) {
|
|
5832
5796
|
let t = new ReadableStream({ start(t) {
|
|
@@ -5838,10 +5802,10 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5838
5802
|
if (e) break;
|
|
5839
5803
|
this.checkLimit("maxUncompressedSize", a + t.length), a += t.length, i.push(t);
|
|
5840
5804
|
}
|
|
5841
|
-
return this.checkLimit("maxUncompressedSize", a),
|
|
5805
|
+
return this.checkLimit("maxUncompressedSize", a), Do(i);
|
|
5842
5806
|
} catch (e) {
|
|
5843
|
-
if (await r.cancel(e).catch(() => {}), e instanceof
|
|
5844
|
-
if (e instanceof Error && "code" in e && e.code === "ERR_TRAILING_JUNK_AFTER_STREAM_END") return
|
|
5807
|
+
if (await r.cancel(e).catch(() => {}), e instanceof ho) throw e;
|
|
5808
|
+
if (e instanceof Error && "code" in e && e.code === "ERR_TRAILING_JUNK_AFTER_STREAM_END") return Do(i);
|
|
5845
5809
|
let t = e instanceof Error ? `Failed to deflate ZIP entry: ${e.message}` : "Unknown decompression error in ZIP entry";
|
|
5846
5810
|
throw TypeError(t);
|
|
5847
5811
|
} finally {
|
|
@@ -5849,16 +5813,16 @@ var U = (0, ho.default)("tokenizer:inflate"), Co = 262144, wo = So(_o.DataDescri
|
|
|
5849
5813
|
}
|
|
5850
5814
|
}
|
|
5851
5815
|
async readLocalFileHeader() {
|
|
5852
|
-
let e = await this.tokenizer.peekToken(
|
|
5853
|
-
if (e ===
|
|
5854
|
-
let e = await this.tokenizer.readToken(
|
|
5855
|
-
return e.filename = await this.tokenizer.readToken(new
|
|
5816
|
+
let e = await this.tokenizer.peekToken(V);
|
|
5817
|
+
if (e === go.LocalFileHeader) {
|
|
5818
|
+
let e = await this.tokenizer.readToken(vo);
|
|
5819
|
+
return e.filename = await this.tokenizer.readToken(new H(e.filenameLength, "utf-8")), e;
|
|
5856
5820
|
}
|
|
5857
|
-
if (e ===
|
|
5821
|
+
if (e === go.CentralFileHeader) return !1;
|
|
5858
5822
|
throw Error(e === 3759263696 ? "Encrypted ZIP" : "Unexpected signature");
|
|
5859
5823
|
}
|
|
5860
5824
|
};
|
|
5861
|
-
function
|
|
5825
|
+
function Eo(e, t) {
|
|
5862
5826
|
let n = e.length, r = t.length;
|
|
5863
5827
|
if (r > n) return -1;
|
|
5864
5828
|
for (let i = 0; i <= n - r; i++) {
|
|
@@ -5871,41 +5835,40 @@ function Do(e, t) {
|
|
|
5871
5835
|
}
|
|
5872
5836
|
return -1;
|
|
5873
5837
|
}
|
|
5874
|
-
function
|
|
5838
|
+
function Do(e) {
|
|
5875
5839
|
let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
|
|
5876
5840
|
for (let t of e) n.set(t, r), r += t.length;
|
|
5877
5841
|
return n;
|
|
5878
5842
|
}
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5843
|
+
// node_modules/uint8array-extras/index.js
|
|
5844
|
+
var Oo = Object.prototype.toString, ko = "[object Uint8Array]", Ao = "[object ArrayBuffer]";
|
|
5845
|
+
function jo(e, t, n) {
|
|
5846
|
+
return e ? e.constructor === t || Oo.call(e) === n : !1;
|
|
5847
|
+
}
|
|
5848
|
+
function Mo(e) {
|
|
5849
|
+
return jo(e, Uint8Array, ko);
|
|
5884
5850
|
}
|
|
5885
5851
|
function No(e) {
|
|
5886
|
-
return
|
|
5852
|
+
return jo(e, ArrayBuffer, Ao);
|
|
5887
5853
|
}
|
|
5888
5854
|
function Po(e) {
|
|
5889
|
-
return Mo(e
|
|
5855
|
+
return Mo(e) || No(e);
|
|
5890
5856
|
}
|
|
5891
5857
|
function Fo(e) {
|
|
5892
|
-
return No(e)
|
|
5858
|
+
return No(e) ? new Uint8Array(e) : e;
|
|
5893
5859
|
}
|
|
5894
5860
|
function Io(e) {
|
|
5895
|
-
|
|
5896
|
-
}
|
|
5897
|
-
function Lo(e) {
|
|
5898
|
-
if (!Fo(e)) throw TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);
|
|
5861
|
+
if (!Po(e)) throw TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);
|
|
5899
5862
|
}
|
|
5900
|
-
function
|
|
5863
|
+
function Lo(e, t) {
|
|
5901
5864
|
if (e.length === 0) return /* @__PURE__ */ new Uint8Array();
|
|
5902
5865
|
t ??= e.reduce((e, t) => e + t.byteLength, 0);
|
|
5903
5866
|
let n = new Uint8Array(t), r = 0;
|
|
5904
|
-
for (let t of e)
|
|
5867
|
+
for (let t of e) Io(t), t = Fo(t), n.set(t, r), r += t.length;
|
|
5905
5868
|
return n;
|
|
5906
5869
|
}
|
|
5907
5870
|
new globalThis.TextDecoder("utf8"), new globalThis.TextEncoder(), Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
5908
|
-
function
|
|
5871
|
+
function Ro(e) {
|
|
5909
5872
|
let { byteLength: t } = e;
|
|
5910
5873
|
if (t === 6) return e.getUint16(0) * 2 ** 32 + e.getUint32(2);
|
|
5911
5874
|
if (t === 5) return e.getUint8(0) * 2 ** 32 + e.getUint32(1);
|
|
@@ -5914,9 +5877,8 @@ function zo(e) {
|
|
|
5914
5877
|
if (t === 2) return e.getUint16(0);
|
|
5915
5878
|
if (t === 1) return e.getUint8(0);
|
|
5916
5879
|
}
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
function Bo(e, t) {
|
|
5880
|
+
// node_modules/file-type/source/tokens.js
|
|
5881
|
+
function zo(e, t) {
|
|
5920
5882
|
if (t === "utf-16le") {
|
|
5921
5883
|
let t = [];
|
|
5922
5884
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -5935,23 +5897,23 @@ function Bo(e, t) {
|
|
|
5935
5897
|
}
|
|
5936
5898
|
return [...e].map((e) => e.charCodeAt(0));
|
|
5937
5899
|
}
|
|
5938
|
-
function
|
|
5939
|
-
let n = Number.parseInt(new
|
|
5900
|
+
function Bo(e, t = 0) {
|
|
5901
|
+
let n = Number.parseInt(new H(6).get(e, 148), 8);
|
|
5940
5902
|
if (Number.isNaN(n)) return !1;
|
|
5941
5903
|
let r = 256;
|
|
5942
5904
|
for (let n = t; n < t + 148; n++) r += e[n];
|
|
5943
5905
|
for (let n = t + 156; n < t + 512; n++) r += e[n];
|
|
5944
5906
|
return n === r;
|
|
5945
5907
|
}
|
|
5946
|
-
var
|
|
5908
|
+
var Vo = {
|
|
5947
5909
|
get: (e, t) => e[t + 3] & 127 | (e[t + 2] & 127) << 7 | (e[t + 1] & 127) << 14 | (e[t] & 127) << 21,
|
|
5948
5910
|
len: 4
|
|
5949
|
-
},
|
|
5911
|
+
}, Ho = /* @__PURE__ */ "jpg,png,apng,gif,webp,flif,xcf,cr2,cr3,orf,arw,dng,nef,rw2,raf,tif,bmp,icns,jxr,psd,indd,zip,tar,rar,gz,bz2,7z,dmg,mp4,mid,mkv,webm,mov,avi,mpg,mp2,mp3,m4a,oga,ogg,ogv,opus,flac,wav,spx,amr,pdf,epub,elf,macho,exe,swf,rtf,wasm,woff,woff2,eot,ttf,otf,ttc,ico,flv,ps,xz,sqlite,nes,crx,xpi,cab,deb,ar,rpm,Z,lz,cfb,mxf,mts,blend,bpg,docx,pptx,xlsx,3gp,3g2,j2c,jp2,jpm,jpx,mj2,aif,caf,qcp,odt,ods,odp,xml,mobi,heic,cur,ktx,ape,wv,dcm,ics,glb,pcap,dsf,dff,lnk,alias,voc,ac3,m4v,m4p,m4b,f4v,f4p,f4b,f4a,mie,asf,ogm,ogx,mpc,arrow,shp,aac,mp1,it,s3m,xm,skp,avif,eps,lzh,pgp,asar,stl,chm,3mf,zst,jxl,vcf,jls,pst,dwg,parquet,class,arj,cpio,ace,avro,icc,fbx,vsdx,vtt,apk,drc,lz4,potx,xltx,dotx,xltm,ott,ots,otp,odg,otg,xlsm,docm,dotm,potm,pptm,jar,jmp,rm,sav,ppsm,ppsx,tar.gz,reg,dat,key,numbers,pages,iso".split(","), Uo = /* @__PURE__ */ "image/jpeg,image/png,image/gif,image/webp,image/flif,image/x-xcf,image/x-canon-cr2,image/x-canon-cr3,image/tiff,image/bmp,image/vnd.ms-photo,image/vnd.adobe.photoshop,application/x-indesign,application/epub+zip,application/x-xpinstall,application/vnd.ms-powerpoint.slideshow.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.presentation,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/zip,application/x-tar,application/x-rar-compressed,application/gzip,application/x-bzip2,application/x-7z-compressed,application/x-apple-diskimage,application/vnd.apache.arrow.file,video/mp4,audio/midi,video/matroska,video/webm,video/quicktime,video/vnd.avi,audio/wav,audio/qcelp,audio/x-ms-asf,video/x-ms-asf,application/vnd.ms-asf,video/mpeg,video/3gpp,audio/mpeg,audio/mp4,video/ogg,audio/ogg,audio/ogg; codecs=opus,application/ogg,audio/flac,audio/ape,audio/wavpack,audio/amr,application/pdf,application/x-elf,application/x-mach-binary,application/x-msdownload,application/x-shockwave-flash,application/rtf,application/wasm,font/woff,font/woff2,application/vnd.ms-fontobject,font/ttf,font/otf,font/collection,image/x-icon,video/x-flv,application/postscript,application/eps,application/x-xz,application/x-sqlite3,application/x-nintendo-nes-rom,application/x-google-chrome-extension,application/vnd.ms-cab-compressed,application/x-deb,application/x-unix-archive,application/x-rpm,application/x-compress,application/lzip,application/x-cfb,application/x-mie,application/mxf,video/mp2t,application/x-blender,image/bpg,image/j2c,image/jp2,image/jpx,image/jpm,image/mj2,audio/aiff,audio/x-caf,application/xml,application/x-mobipocket-ebook,image/heif,image/heif-sequence,image/heic,image/heic-sequence,image/icns,image/ktx,application/dicom,audio/x-musepack,text/calendar,text/vcard,text/vtt,model/gltf-binary,application/vnd.tcpdump.pcap,audio/x-dsf,audio/x-dff,application/x-ms-shortcut,application/x-ft-apple.alias,audio/x-voc,audio/vnd.dolby.dd-raw,audio/x-m4a,image/apng,image/x-olympus-orf,image/x-sony-arw,image/x-adobe-dng,image/x-nikon-nef,image/x-panasonic-rw2,image/x-fujifilm-raf,video/x-m4v,video/3gpp2,application/x-esri-shape,audio/aac,audio/x-it,audio/x-s3m,audio/x-xm,video/MP1S,video/MP2P,application/vnd.sketchup.skp,image/avif,application/x-lzh-compressed,application/pgp-encrypted,application/x-asar,model/stl,application/vnd.ms-htmlhelp,model/3mf,image/jxl,application/zstd,image/jls,application/vnd.ms-outlook,image/vnd.dwg,application/vnd.apache.parquet,application/java-vm,application/x-arj,application/x-cpio,application/x-ace-compressed,application/avro,application/vnd.iccprofile,application/x-ft-fbx,application/vnd.visio,application/vnd.android.package-archive,application/x-ft-draco,application/x-lz4,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.template.macroenabled.12,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.ms-excel.sheet.macroenabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.ms-powerpoint.template.macroenabled.12,application/vnd.ms-powerpoint.presentation.macroenabled.12,application/java-archive,application/vnd.rn-realmedia,application/x-spss-sav,application/x-ms-regedit,application/x-ft-windows-registry-hive,application/x-jmp-data,application/vnd.apple.keynote,application/vnd.apple.numbers,application/vnd.apple.pages,application/x-iso9660-image".split(","), Wo = 16777216, G = class extends Error {};
|
|
5950
5912
|
function Go(e, t, n) {
|
|
5951
5913
|
if (!Number.isFinite(e) || e < 0 || e > t) throw new G(`${n} has invalid size ${e} (maximum ${t} bytes)`);
|
|
5952
5914
|
return e;
|
|
5953
5915
|
}
|
|
5954
|
-
async function K(e, t, { maximumLength: n =
|
|
5916
|
+
async function K(e, t, { maximumLength: n = Wo, reason: r = "skip" } = {}) {
|
|
5955
5917
|
let i = Go(t, n, r);
|
|
5956
5918
|
await e.ignore(i);
|
|
5957
5919
|
}
|
|
@@ -5979,8 +5941,7 @@ function J(e) {
|
|
|
5979
5941
|
function qo(e, t, n) {
|
|
5980
5942
|
return J(e) && e.position - t > n;
|
|
5981
5943
|
}
|
|
5982
|
-
|
|
5983
|
-
//#region node_modules/file-type/source/detectors/zip.js
|
|
5944
|
+
// node_modules/file-type/source/detectors/zip.js
|
|
5984
5945
|
var Jo = 1048576, Yo = 1024, Xo = 2 ** 31 - 1, Zo = Jo, Qo = /* @__PURE__ */ new Set([
|
|
5985
5946
|
"Unexpected signature",
|
|
5986
5947
|
"Encrypted ZIP",
|
|
@@ -6006,7 +5967,7 @@ function ns(e) {
|
|
|
6006
5967
|
return Math.min(n, Xo);
|
|
6007
5968
|
}
|
|
6008
5969
|
function rs(e) {
|
|
6009
|
-
if (e instanceof
|
|
5970
|
+
if (e instanceof U || e instanceof G || e instanceof ho) return !0;
|
|
6010
5971
|
if (!(e instanceof Error)) return !1;
|
|
6011
5972
|
if (e instanceof TypeError && e.message.startsWith("Failed to deflate ZIP entry:") || Qo.has(e.message) || es.has(e.code)) return !0;
|
|
6012
5973
|
for (let t of $o) if (e.message.startsWith(t)) return !0;
|
|
@@ -6192,7 +6153,7 @@ function ps(e) {
|
|
|
6192
6153
|
var ms = 134695760, hs = 16, gs = 15;
|
|
6193
6154
|
function _s(e, t, { allowTruncated: n = !1 } = {}) {
|
|
6194
6155
|
let r = e.length - (n ? 4 : hs);
|
|
6195
|
-
for (let n = 0; n <= r; n++) if (
|
|
6156
|
+
for (let n = 0; n <= r; n++) if (V.get(e, n) === ms && (e.length - n < 12 || V.get(e, n + 8) === t + n)) return n;
|
|
6196
6157
|
return -1;
|
|
6197
6158
|
}
|
|
6198
6159
|
async function vs(e, { shouldBuffer: t, maximumLength: n = Jo } = {}) {
|
|
@@ -6210,7 +6171,7 @@ async function vs(e, { shouldBuffer: t, maximumLength: n = Jo } = {}) {
|
|
|
6210
6171
|
if (J(e.tokenizer) || (e.knownSizeDescriptorScannedBytes += o), t) return ts(a, o);
|
|
6211
6172
|
}
|
|
6212
6173
|
function ys(e, t) {
|
|
6213
|
-
return J(e.tokenizer) ? Math.max(0,
|
|
6174
|
+
return J(e.tokenizer) ? Math.max(0, Wo - (e.tokenizer.position - t)) : Math.max(0, Jo - e.knownSizeDescriptorScannedBytes);
|
|
6214
6175
|
}
|
|
6215
6176
|
async function bs(e, t, { shouldBuffer: n, maximumDescriptorLength: r = Jo } = {}) {
|
|
6216
6177
|
if (t.dataDescriptor && t.compressedSize === 0) return vs(e, {
|
|
@@ -6224,18 +6185,18 @@ async function bs(e, t, { shouldBuffer: n, maximumDescriptorLength: r = Jo } = {
|
|
|
6224
6185
|
});
|
|
6225
6186
|
return;
|
|
6226
6187
|
}
|
|
6227
|
-
if (t.compressedSize > Zo) throw new
|
|
6188
|
+
if (t.compressedSize > Zo) throw new ho("maxCompressedSize", t.compressedSize, Zo);
|
|
6228
6189
|
let i = ns(e.tokenizer);
|
|
6229
6190
|
if (!Number.isFinite(t.compressedSize) || t.compressedSize < 0 || t.compressedSize > i) throw Error(`ZIP entry compressed data exceeds ${i} bytes`);
|
|
6230
6191
|
let a = new Uint8Array(t.compressedSize);
|
|
6231
6192
|
return await e.tokenizer.readBuffer(a), a;
|
|
6232
6193
|
}
|
|
6233
|
-
var xs = class extends
|
|
6194
|
+
var xs = class extends To {
|
|
6234
6195
|
async unzip(e) {
|
|
6235
6196
|
let t = !1, n = 0, r = this.tokenizer.position;
|
|
6236
6197
|
this.knownSizeDescriptorScannedBytes = 0;
|
|
6237
6198
|
do {
|
|
6238
|
-
if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${
|
|
6199
|
+
if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${Wo} bytes`);
|
|
6239
6200
|
let i = await this.readLocalFileHeader();
|
|
6240
6201
|
if (!i) break;
|
|
6241
6202
|
if (n++, n > Yo) throw Error(`ZIP entry count exceeds ${Yo}`);
|
|
@@ -6247,9 +6208,9 @@ var xs = class extends Eo {
|
|
|
6247
6208
|
});
|
|
6248
6209
|
if (a.handler && await this.inflate(i, o, a.handler), i.dataDescriptor) {
|
|
6249
6210
|
let e = new Uint8Array(hs);
|
|
6250
|
-
if (await this.tokenizer.readBuffer(e),
|
|
6211
|
+
if (await this.tokenizer.readBuffer(e), V.get(e, 0) !== ms) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - e.length}`);
|
|
6251
6212
|
}
|
|
6252
|
-
if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${
|
|
6213
|
+
if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${Wo} bytes`);
|
|
6253
6214
|
} while (!t);
|
|
6254
6215
|
}
|
|
6255
6216
|
};
|
|
@@ -6290,7 +6251,7 @@ async function Ss(e) {
|
|
|
6290
6251
|
});
|
|
6291
6252
|
} catch (e) {
|
|
6292
6253
|
if (!rs(e)) throw e;
|
|
6293
|
-
n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof
|
|
6254
|
+
n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof U || e instanceof G) && !n.hasContentTypesEntry && (t = ds(n));
|
|
6294
6255
|
}
|
|
6295
6256
|
let i = J(e) && r.hasDocumentEntry && !r.hasMasterSlideEntry && !r.hasTablesEntry && !r.hasCalculationEngineEntry ? void 0 : ss(r);
|
|
6296
6257
|
return t ?? fs(n) ?? i ?? {
|
|
@@ -6298,12 +6259,11 @@ async function Ss(e) {
|
|
|
6298
6259
|
mime: "application/zip"
|
|
6299
6260
|
};
|
|
6300
6261
|
}
|
|
6301
|
-
|
|
6302
|
-
//#region node_modules/file-type/source/detectors/ebml.js
|
|
6262
|
+
// node_modules/file-type/source/detectors/ebml.js
|
|
6303
6263
|
var Cs = 64, ws = 1048576, Ts = 256;
|
|
6304
6264
|
async function Es(e) {
|
|
6305
6265
|
async function t() {
|
|
6306
|
-
let t = await e.peekNumber(
|
|
6266
|
+
let t = await e.peekNumber(Va), n = 128, r = 0;
|
|
6307
6267
|
for (; n !== 0 && (t & n) === 0;) ++r, n >>= 1;
|
|
6308
6268
|
let i = new Uint8Array(r + 1);
|
|
6309
6269
|
return await Ko(e, i, void 0, {
|
|
@@ -6316,8 +6276,8 @@ async function Es(e) {
|
|
|
6316
6276
|
n[0] ^= 128 >> n.length - 1;
|
|
6317
6277
|
let r = Math.min(6, n.length), i = new DataView(e.buffer), a = new DataView(n.buffer, n.length - r, r);
|
|
6318
6278
|
return {
|
|
6319
|
-
id:
|
|
6320
|
-
len:
|
|
6279
|
+
id: Ro(i),
|
|
6280
|
+
len: Ro(a)
|
|
6321
6281
|
};
|
|
6322
6282
|
}
|
|
6323
6283
|
async function r(t) {
|
|
@@ -6328,7 +6288,7 @@ async function Es(e) {
|
|
|
6328
6288
|
if (o.id === 17026) {
|
|
6329
6289
|
if (o.len > Cs) return;
|
|
6330
6290
|
let t = Go(o.len, Cs, "EBML DocType");
|
|
6331
|
-
return (await e.readToken(new
|
|
6291
|
+
return (await e.readToken(new H(t))).split("\0", 1)[0];
|
|
6332
6292
|
}
|
|
6333
6293
|
if (J(e) && (!Number.isFinite(o.len) || o.len < 0 || o.len > ws) || (await K(e, o.len, {
|
|
6334
6294
|
maximumLength: J(e) ? ws : e.fileInfo.size,
|
|
@@ -6348,8 +6308,7 @@ async function Es(e) {
|
|
|
6348
6308
|
};
|
|
6349
6309
|
}
|
|
6350
6310
|
}
|
|
6351
|
-
|
|
6352
|
-
//#region node_modules/file-type/source/detectors/png.js
|
|
6311
|
+
// node_modules/file-type/source/detectors/png.js
|
|
6353
6312
|
var Ds = 512, Os = 16777216, ks = 1048576;
|
|
6354
6313
|
function As(e) {
|
|
6355
6314
|
return !!(e.codePointAt(0) & 32);
|
|
@@ -6365,8 +6324,8 @@ async function js(e) {
|
|
|
6365
6324
|
await e.ignore(8);
|
|
6366
6325
|
async function r() {
|
|
6367
6326
|
return {
|
|
6368
|
-
length: await e.readToken(
|
|
6369
|
-
type: await e.readToken(new
|
|
6327
|
+
length: await e.readToken(Wa),
|
|
6328
|
+
type: await e.readToken(new H(4, "latin1"))
|
|
6370
6329
|
};
|
|
6371
6330
|
}
|
|
6372
6331
|
let i = J(e), a = e.position, o = 0, s = !1;
|
|
@@ -6390,7 +6349,7 @@ async function js(e) {
|
|
|
6390
6349
|
reason: "PNG chunk payload"
|
|
6391
6350
|
});
|
|
6392
6351
|
} catch (e) {
|
|
6393
|
-
if (!i && (e instanceof G || e instanceof
|
|
6352
|
+
if (!i && (e instanceof G || e instanceof U)) return t;
|
|
6394
6353
|
throw e;
|
|
6395
6354
|
}
|
|
6396
6355
|
}
|
|
@@ -6398,8 +6357,7 @@ async function js(e) {
|
|
|
6398
6357
|
} while (e.position + 8 < e.fileInfo.size);
|
|
6399
6358
|
return t;
|
|
6400
6359
|
}
|
|
6401
|
-
|
|
6402
|
-
//#region node_modules/file-type/source/detectors/asf.js
|
|
6360
|
+
// node_modules/file-type/source/detectors/asf.js
|
|
6403
6361
|
var Ms = 512, Ns = 1048576;
|
|
6404
6362
|
async function Ps(e) {
|
|
6405
6363
|
let t = !1;
|
|
@@ -6411,7 +6369,7 @@ async function Ps(e) {
|
|
|
6411
6369
|
reason: "ASF header GUID"
|
|
6412
6370
|
}), {
|
|
6413
6371
|
id: t,
|
|
6414
|
-
size: Number(await e.readToken(
|
|
6372
|
+
size: Number(await e.readToken(Ga))
|
|
6415
6373
|
};
|
|
6416
6374
|
}
|
|
6417
6375
|
await K(e, 30, {
|
|
@@ -6491,20 +6449,16 @@ async function Ps(e) {
|
|
|
6491
6449
|
};
|
|
6492
6450
|
break;
|
|
6493
6451
|
}
|
|
6494
|
-
if (r && o > Ns
|
|
6495
|
-
t = !0;
|
|
6496
|
-
break;
|
|
6497
|
-
}
|
|
6498
|
-
if (await K(e, o, {
|
|
6452
|
+
if (r && o > Ns || (await K(e, o, {
|
|
6499
6453
|
maximumLength: r ? Ns : e.fileInfo.size,
|
|
6500
6454
|
reason: "ASF header payload"
|
|
6501
|
-
}), e.position <= i) {
|
|
6455
|
+
}), e.position <= i)) {
|
|
6502
6456
|
t = !0;
|
|
6503
6457
|
break;
|
|
6504
6458
|
}
|
|
6505
6459
|
}
|
|
6506
6460
|
} catch (n) {
|
|
6507
|
-
if (n instanceof
|
|
6461
|
+
if (n instanceof U || n instanceof G) J(e) && (t = !0);
|
|
6508
6462
|
else throw n;
|
|
6509
6463
|
}
|
|
6510
6464
|
if (!t) return {
|
|
@@ -6512,9 +6466,8 @@ async function Ps(e) {
|
|
|
6512
6466
|
mime: "application/vnd.ms-asf"
|
|
6513
6467
|
};
|
|
6514
6468
|
}
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
var Fs = 4100, Is = 4096, Ls = W, Rs = 1, zs = 100, Bs = W, Vs = 512, Hs = 256, Us = 1048576, Ws = W;
|
|
6469
|
+
// node_modules/file-type/source/index.js
|
|
6470
|
+
var Fs = 4100, Is = 4096, Ls = Wo, Rs = 1, zs = 100, Bs = Wo, Vs = 512, Hs = 256, Us = 1048576, Ws = Wo;
|
|
6518
6471
|
function Gs(e) {
|
|
6519
6472
|
return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : Fs;
|
|
6520
6473
|
}
|
|
@@ -6557,11 +6510,7 @@ function Zs(e, t) {
|
|
|
6557
6510
|
return;
|
|
6558
6511
|
}
|
|
6559
6512
|
let c = t - r;
|
|
6560
|
-
|
|
6561
|
-
e.enqueue(s.subarray(0, c)), r += c, e.close(), await o();
|
|
6562
|
-
return;
|
|
6563
|
-
}
|
|
6564
|
-
e.enqueue(s), r += s.length;
|
|
6513
|
+
s.length > c ? (e.enqueue(s.subarray(0, c)), r += c, e.close(), await o()) : (e.enqueue(s), r += s.length);
|
|
6565
6514
|
},
|
|
6566
6515
|
async cancel(e) {
|
|
6567
6516
|
await o(e);
|
|
@@ -6600,7 +6549,7 @@ var $s = class e {
|
|
|
6600
6549
|
return { ...this.tokenizerOptions };
|
|
6601
6550
|
}
|
|
6602
6551
|
createTokenizerFromWebStream(e) {
|
|
6603
|
-
return
|
|
6552
|
+
return so(Ys(e), this.getTokenizerOptions());
|
|
6604
6553
|
}
|
|
6605
6554
|
async parseTokenizer(e, t = 0) {
|
|
6606
6555
|
this.detectionReentryCount = t;
|
|
@@ -6610,7 +6559,7 @@ var $s = class e {
|
|
|
6610
6559
|
try {
|
|
6611
6560
|
r = await t.detect(e);
|
|
6612
6561
|
} catch (e) {
|
|
6613
|
-
if (e instanceof
|
|
6562
|
+
if (e instanceof U || e instanceof G) return;
|
|
6614
6563
|
throw e;
|
|
6615
6564
|
}
|
|
6616
6565
|
if (r) return r;
|
|
@@ -6627,11 +6576,11 @@ var $s = class e {
|
|
|
6627
6576
|
async fromBuffer(e) {
|
|
6628
6577
|
if (!(e instanceof Uint8Array || e instanceof ArrayBuffer)) throw TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);
|
|
6629
6578
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
6630
|
-
if (t?.length > 1) return this.fromTokenizer(
|
|
6579
|
+
if (t?.length > 1) return this.fromTokenizer(co(t, this.getTokenizerOptions()));
|
|
6631
6580
|
}
|
|
6632
6581
|
async fromBlob(e) {
|
|
6633
6582
|
this.options.signal?.throwIfAborted();
|
|
6634
|
-
let t =
|
|
6583
|
+
let t = lo(e, this.getTokenizerOptions());
|
|
6635
6584
|
return this.fromTokenizer(t);
|
|
6636
6585
|
}
|
|
6637
6586
|
async fromStream(e) {
|
|
@@ -6673,11 +6622,11 @@ var $s = class e {
|
|
|
6673
6622
|
a.releaseLock();
|
|
6674
6623
|
}
|
|
6675
6624
|
if (s > 0) {
|
|
6676
|
-
let e = o.length === 1 ? o[0] :
|
|
6625
|
+
let e = o.length === 1 ? o[0] : Lo(o);
|
|
6677
6626
|
try {
|
|
6678
6627
|
r = await this.fromBuffer(e.subarray(0, n));
|
|
6679
6628
|
} catch (e) {
|
|
6680
|
-
if (!(e instanceof
|
|
6629
|
+
if (!(e instanceof U)) throw e;
|
|
6681
6630
|
r = void 0;
|
|
6682
6631
|
}
|
|
6683
6632
|
!i && r?.ext === "pages" && (r = {
|
|
@@ -6700,7 +6649,7 @@ var $s = class e {
|
|
|
6700
6649
|
ext: "gz",
|
|
6701
6650
|
mime: "application/gzip"
|
|
6702
6651
|
};
|
|
6703
|
-
let n = Zs(new
|
|
6652
|
+
let n = Zs(new uo(t).inflate(), Ls), r = J(t), i, a, o, s;
|
|
6704
6653
|
if (r) {
|
|
6705
6654
|
let t = new AbortController();
|
|
6706
6655
|
i = setTimeout(() => {
|
|
@@ -6729,7 +6678,7 @@ var $s = class e {
|
|
|
6729
6678
|
return q(this.buffer, e, t);
|
|
6730
6679
|
}
|
|
6731
6680
|
checkString(e, t) {
|
|
6732
|
-
return this.check(
|
|
6681
|
+
return this.check(zo(e, t?.encoding), t);
|
|
6733
6682
|
}
|
|
6734
6683
|
async detectConfident(e) {
|
|
6735
6684
|
if (this.buffer = new Uint8Array(Fs), e.fileInfo.size === void 0 && (e.fileInfo.size = 2 ** 53 - 1), this.tokenizer = e, J(e) && (await e.peekBuffer(this.buffer, {
|
|
@@ -6820,7 +6769,7 @@ var $s = class e {
|
|
|
6820
6769
|
maximumLength: 6,
|
|
6821
6770
|
reason: "ID3 header prefix"
|
|
6822
6771
|
});
|
|
6823
|
-
let t = await e.readToken(
|
|
6772
|
+
let t = await e.readToken(Vo), n = J(e);
|
|
6824
6773
|
if (!Number.isFinite(t) || t < 0 || n && (t > Bs || e.position + t > Bs)) return;
|
|
6825
6774
|
if (e.position + t > e.fileInfo.size) return n ? void 0 : {
|
|
6826
6775
|
ext: "mp3",
|
|
@@ -6832,7 +6781,7 @@ var $s = class e {
|
|
|
6832
6781
|
reason: "ID3 payload"
|
|
6833
6782
|
});
|
|
6834
6783
|
} catch (e) {
|
|
6835
|
-
if (e instanceof
|
|
6784
|
+
if (e instanceof U) return;
|
|
6836
6785
|
throw e;
|
|
6837
6786
|
}
|
|
6838
6787
|
return this.detectionReentryCount >= Hs ? void 0 : (this.detectionReentryCount++, this.parseTokenizer(e, this.detectionReentryCount));
|
|
@@ -7253,12 +7202,12 @@ var $s = class e {
|
|
|
7253
7202
|
186,
|
|
7254
7203
|
190
|
|
7255
7204
|
])) {
|
|
7256
|
-
let e =
|
|
7205
|
+
let e = Ua.get(this.buffer, 4);
|
|
7257
7206
|
if (e > 0 && e <= 30) return {
|
|
7258
7207
|
ext: "macho",
|
|
7259
7208
|
mime: "application/x-mach-binary"
|
|
7260
7209
|
};
|
|
7261
|
-
if (
|
|
7210
|
+
if (Ha.get(this.buffer, 6) > 30) return {
|
|
7262
7211
|
ext: "class",
|
|
7263
7212
|
mime: "application/java-vm"
|
|
7264
7213
|
};
|
|
@@ -7313,7 +7262,7 @@ var $s = class e {
|
|
|
7313
7262
|
mime: "model/stl"
|
|
7314
7263
|
};
|
|
7315
7264
|
if (this.checkString("AC")) {
|
|
7316
|
-
let e = new
|
|
7265
|
+
let e = new H(4, "latin1").get(this.buffer, 2);
|
|
7317
7266
|
if (/^\d+$/v.test(e) && e >= 1e3 && e <= 1050) return {
|
|
7318
7267
|
ext: "dwg",
|
|
7319
7268
|
mime: "image/vnd.dwg"
|
|
@@ -7327,7 +7276,7 @@ var $s = class e {
|
|
|
7327
7276
|
ext: "blend",
|
|
7328
7277
|
mime: "application/x-blender"
|
|
7329
7278
|
};
|
|
7330
|
-
if (this.checkString("!<arch>")) return await e.ignore(8), await e.readToken(new
|
|
7279
|
+
if (this.checkString("!<arch>")) return await e.ignore(8), await e.readToken(new H(13, "ascii")) === "debian-binary" ? {
|
|
7331
7280
|
ext: "deb",
|
|
7332
7281
|
mime: "application/x-deb"
|
|
7333
7282
|
} : {
|
|
@@ -7423,7 +7372,7 @@ var $s = class e {
|
|
|
7423
7372
|
mime: "image/x-xcf"
|
|
7424
7373
|
};
|
|
7425
7374
|
if (this.checkString("ftyp", { offset: 4 }) && this.buffer[8] & 96) {
|
|
7426
|
-
let e = new
|
|
7375
|
+
let e = new H(4, "latin1").get(this.buffer, 8).replace("\0", " ").trim();
|
|
7427
7376
|
switch (e) {
|
|
7428
7377
|
case "avif":
|
|
7429
7378
|
case "avis": return {
|
|
@@ -7645,7 +7594,7 @@ var $s = class e {
|
|
|
7645
7594
|
10,
|
|
7646
7595
|
135,
|
|
7647
7596
|
10
|
|
7648
|
-
])) switch (await e.ignore(20), await e.readToken(new
|
|
7597
|
+
])) switch (await e.ignore(20), await e.readToken(new H(4, "ascii"))) {
|
|
7649
7598
|
case "jp2 ": return {
|
|
7650
7599
|
ext: "jp2",
|
|
7651
7600
|
mime: "image/jp2"
|
|
@@ -7942,7 +7891,7 @@ var $s = class e {
|
|
|
7942
7891
|
0,
|
|
7943
7892
|
0,
|
|
7944
7893
|
0
|
|
7945
|
-
], { offset: 257 }) &&
|
|
7894
|
+
], { offset: 257 }) && Bo(this.buffer)) return {
|
|
7946
7895
|
ext: "tar",
|
|
7947
7896
|
mime: "application/x-tar"
|
|
7948
7897
|
};
|
|
@@ -7978,7 +7927,7 @@ var $s = class e {
|
|
|
7978
7927
|
position: 32769,
|
|
7979
7928
|
length: 5,
|
|
7980
7929
|
mayBeLess: !0
|
|
7981
|
-
}), q(t,
|
|
7930
|
+
}), q(t, zo("CD001"))) return {
|
|
7982
7931
|
ext: "iso",
|
|
7983
7932
|
mime: "application/x-iso9660-image"
|
|
7984
7933
|
};
|
|
@@ -8041,7 +7990,7 @@ var $s = class e {
|
|
|
8041
7990
|
}
|
|
8042
7991
|
}
|
|
8043
7992
|
async readTiffTag(e) {
|
|
8044
|
-
let t = await this.tokenizer.readToken(e ?
|
|
7993
|
+
let t = await this.tokenizer.readToken(e ? Ha : B);
|
|
8045
7994
|
switch (await this.tokenizer.ignore(10), t) {
|
|
8046
7995
|
case 50341: return {
|
|
8047
7996
|
ext: "arw",
|
|
@@ -8054,7 +8003,7 @@ var $s = class e {
|
|
|
8054
8003
|
}
|
|
8055
8004
|
}
|
|
8056
8005
|
async readTiffIFD(e) {
|
|
8057
|
-
let t = await this.tokenizer.readToken(e ?
|
|
8006
|
+
let t = await this.tokenizer.readToken(e ? Ha : B);
|
|
8058
8007
|
if (!(t > Vs) && !(J(this.tokenizer) && 2 + t * 12 > Ws)) for (let n = 0; n < t; ++n) {
|
|
8059
8008
|
let t = await this.readTiffTag(e);
|
|
8060
8009
|
if (t) return t;
|
|
@@ -8064,7 +8013,7 @@ var $s = class e {
|
|
|
8064
8013
|
let t = {
|
|
8065
8014
|
ext: "tif",
|
|
8066
8015
|
mime: "image/tiff"
|
|
8067
|
-
}, n = (e ?
|
|
8016
|
+
}, n = (e ? Ha : B).get(this.buffer, 2), r = (e ? Ua : V).get(this.buffer, 4);
|
|
8068
8017
|
if (n === 42) {
|
|
8069
8018
|
if (r >= 6) {
|
|
8070
8019
|
if (this.checkString("CR", { offset: 8 })) return {
|
|
@@ -8072,7 +8021,7 @@ var $s = class e {
|
|
|
8072
8021
|
mime: "image/x-canon-cr2"
|
|
8073
8022
|
};
|
|
8074
8023
|
if (r >= 8) {
|
|
8075
|
-
let t = (e ?
|
|
8024
|
+
let t = (e ? Ha : B).get(this.buffer, 8), n = (e ? Ha : B).get(this.buffer, 10);
|
|
8076
8025
|
if (t === 28 && n === 254 || t === 31 && n === 11) return {
|
|
8077
8026
|
ext: "nef",
|
|
8078
8027
|
mime: "image/x-nikon-nef"
|
|
@@ -8087,14 +8036,14 @@ var $s = class e {
|
|
|
8087
8036
|
reason: "TIFF IFD offset"
|
|
8088
8037
|
});
|
|
8089
8038
|
} catch (e) {
|
|
8090
|
-
if (e instanceof
|
|
8039
|
+
if (e instanceof U) return;
|
|
8091
8040
|
throw e;
|
|
8092
8041
|
}
|
|
8093
8042
|
let i;
|
|
8094
8043
|
try {
|
|
8095
8044
|
i = await this.readTiffIFD(e);
|
|
8096
8045
|
} catch (e) {
|
|
8097
|
-
if (e instanceof
|
|
8046
|
+
if (e instanceof U) return;
|
|
8098
8047
|
throw e;
|
|
8099
8048
|
}
|
|
8100
8049
|
return i ?? t;
|
|
@@ -8147,9 +8096,8 @@ var $s = class e {
|
|
|
8147
8096
|
}
|
|
8148
8097
|
}
|
|
8149
8098
|
};
|
|
8150
|
-
new Set(
|
|
8151
|
-
|
|
8152
|
-
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
|
|
8099
|
+
new Set(Ho), new Set(Uo);
|
|
8100
|
+
// node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
|
|
8153
8101
|
function Y(e) {
|
|
8154
8102
|
return new Map(Object.entries(e));
|
|
8155
8103
|
}
|
|
@@ -9070,194 +9018,89 @@ function Mc(e) {
|
|
|
9070
9018
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
9071
9019
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
9072
9020
|
}
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
var Nc = .2, Pc = {
|
|
9021
|
+
// src/index.ts
|
|
9022
|
+
var Nc = .2, Pc = 4096, Fc = {
|
|
9076
9023
|
id: "utf-8",
|
|
9077
9024
|
confidenceLevel: void 0
|
|
9078
|
-
},
|
|
9079
|
-
|
|
9025
|
+
}, Ic = 256, Lc = /^<\?xml\s[^?]*?\bencoding\s*=\s*(["'])([A-Za-z][\w.:-]*)\1/, Rc = [
|
|
9026
|
+
"false",
|
|
9027
|
+
"null",
|
|
9028
|
+
"true"
|
|
9029
|
+
], zc = /* @__PURE__ */ new Set([
|
|
9030
|
+
" ",
|
|
9031
|
+
" ",
|
|
9032
|
+
"\n",
|
|
9033
|
+
"\r"
|
|
9034
|
+
]), Bc = {
|
|
9080
9035
|
markdown: "markdown",
|
|
9081
|
-
md: "markdown"
|
|
9082
|
-
|
|
9083
|
-
txt: "text"
|
|
9084
|
-
}, Ic = {
|
|
9036
|
+
md: "markdown"
|
|
9037
|
+
}, Vc = {
|
|
9085
9038
|
arrow: {
|
|
9086
9039
|
label: "Columnar format for tables of data.",
|
|
9040
|
+
structure: "table",
|
|
9087
9041
|
isAutoDetectable: !0,
|
|
9088
|
-
isSupported: !1
|
|
9089
|
-
notes: ""
|
|
9042
|
+
isSupported: !1
|
|
9090
9043
|
},
|
|
9091
9044
|
avro: {
|
|
9092
9045
|
label: "Object container file developed by Apache Avro.",
|
|
9046
|
+
structure: "records",
|
|
9093
9047
|
isAutoDetectable: !0,
|
|
9094
|
-
isSupported: !1
|
|
9095
|
-
notes: ""
|
|
9096
|
-
},
|
|
9097
|
-
docx: {
|
|
9098
|
-
label: "Microsoft Word document.",
|
|
9099
|
-
isAutoDetectable: !0,
|
|
9100
|
-
isSupported: !1,
|
|
9101
|
-
notes: ""
|
|
9102
|
-
},
|
|
9103
|
-
ics: {
|
|
9104
|
-
label: "iCalendar.",
|
|
9105
|
-
isAutoDetectable: !0,
|
|
9106
|
-
isSupported: !1,
|
|
9107
|
-
notes: ""
|
|
9108
|
-
},
|
|
9109
|
-
jmp: {
|
|
9110
|
-
label: "JMP data file format by SAS Institute.",
|
|
9111
|
-
isAutoDetectable: !0,
|
|
9112
|
-
isSupported: !1,
|
|
9113
|
-
notes: ""
|
|
9048
|
+
isSupported: !1
|
|
9114
9049
|
},
|
|
9115
9050
|
ods: {
|
|
9116
9051
|
label: "OpenDocument for spreadsheets.",
|
|
9052
|
+
structure: "workbook",
|
|
9117
9053
|
isAutoDetectable: !0,
|
|
9118
|
-
isSupported: !1
|
|
9119
|
-
notes: ""
|
|
9120
|
-
},
|
|
9121
|
-
ots: {
|
|
9122
|
-
label: "OpenDocument for word processing.",
|
|
9123
|
-
isAutoDetectable: !0,
|
|
9124
|
-
isSupported: !1,
|
|
9125
|
-
notes: ""
|
|
9054
|
+
isSupported: !1
|
|
9126
9055
|
},
|
|
9127
9056
|
parquet: {
|
|
9128
9057
|
label: "Apache Parquet.",
|
|
9058
|
+
structure: "table",
|
|
9129
9059
|
isAutoDetectable: !0,
|
|
9130
|
-
isSupported: !1
|
|
9131
|
-
notes: ""
|
|
9132
|
-
},
|
|
9133
|
-
pcap: {
|
|
9134
|
-
label: "Libpcap file format.",
|
|
9135
|
-
isAutoDetectable: !0,
|
|
9136
|
-
isSupported: !1,
|
|
9137
|
-
notes: ""
|
|
9138
|
-
},
|
|
9139
|
-
pdf: {
|
|
9140
|
-
label: "Portable document format.",
|
|
9141
|
-
isAutoDetectable: !0,
|
|
9142
|
-
isSupported: !1,
|
|
9143
|
-
notes: ""
|
|
9144
|
-
},
|
|
9145
|
-
por: {
|
|
9146
|
-
label: "SPSS portable file.",
|
|
9147
|
-
isAutoDetectable: !1,
|
|
9148
|
-
isSupported: !1,
|
|
9149
|
-
magicBytes: [
|
|
9150
|
-
83,
|
|
9151
|
-
80,
|
|
9152
|
-
83,
|
|
9153
|
-
83,
|
|
9154
|
-
80,
|
|
9155
|
-
79,
|
|
9156
|
-
82,
|
|
9157
|
-
84
|
|
9158
|
-
],
|
|
9159
|
-
notes: ""
|
|
9060
|
+
isSupported: !1
|
|
9160
9061
|
},
|
|
9161
9062
|
sav: {
|
|
9162
9063
|
label: "SPSS statistical data file.",
|
|
9064
|
+
structure: "table",
|
|
9163
9065
|
isAutoDetectable: !0,
|
|
9164
|
-
isSupported: !1
|
|
9165
|
-
magicBytes: [
|
|
9166
|
-
36,
|
|
9167
|
-
70,
|
|
9168
|
-
76,
|
|
9169
|
-
50
|
|
9170
|
-
],
|
|
9171
|
-
notes: ""
|
|
9172
|
-
},
|
|
9173
|
-
shp: {
|
|
9174
|
-
label: "Geospatial vector data format.",
|
|
9175
|
-
isAutoDetectable: !0,
|
|
9176
|
-
isSupported: !1,
|
|
9177
|
-
notes: ""
|
|
9066
|
+
isSupported: !1
|
|
9178
9067
|
},
|
|
9179
9068
|
sqlite: {
|
|
9180
9069
|
label: "SQLite file.",
|
|
9070
|
+
structure: "database",
|
|
9181
9071
|
isAutoDetectable: !0,
|
|
9182
|
-
isSupported: !1
|
|
9183
|
-
notes: ""
|
|
9184
|
-
},
|
|
9185
|
-
vcf: {
|
|
9186
|
-
label: "vCard.",
|
|
9187
|
-
isAutoDetectable: !0,
|
|
9188
|
-
isSupported: !1,
|
|
9189
|
-
notes: ""
|
|
9190
|
-
},
|
|
9191
|
-
vtt: {
|
|
9192
|
-
label: "WebVTT File (for video captions).",
|
|
9193
|
-
isAutoDetectable: !0,
|
|
9194
|
-
isSupported: !1,
|
|
9195
|
-
notes: ""
|
|
9196
|
-
},
|
|
9197
|
-
xls: {
|
|
9198
|
-
label: "Microsoft Excel legacy document.",
|
|
9199
|
-
isAutoDetectable: !1,
|
|
9200
|
-
isSupported: !1,
|
|
9201
|
-
magicBytes: [
|
|
9202
|
-
208,
|
|
9203
|
-
207,
|
|
9204
|
-
17,
|
|
9205
|
-
224,
|
|
9206
|
-
161,
|
|
9207
|
-
177,
|
|
9208
|
-
26,
|
|
9209
|
-
225
|
|
9210
|
-
],
|
|
9211
|
-
notes: ""
|
|
9072
|
+
isSupported: !1
|
|
9212
9073
|
},
|
|
9213
9074
|
xlsx: {
|
|
9214
9075
|
label: "Microsoft Excel document.",
|
|
9076
|
+
structure: "workbook",
|
|
9215
9077
|
isAutoDetectable: !0,
|
|
9216
|
-
isSupported: !1
|
|
9217
|
-
magicBytes: [
|
|
9218
|
-
80,
|
|
9219
|
-
75,
|
|
9220
|
-
3,
|
|
9221
|
-
4
|
|
9222
|
-
],
|
|
9223
|
-
notes: ""
|
|
9078
|
+
isSupported: !1
|
|
9224
9079
|
},
|
|
9225
9080
|
xlsm: {
|
|
9226
9081
|
label: "Microsoft Excel macro-enabled document.",
|
|
9082
|
+
structure: "workbook",
|
|
9227
9083
|
isAutoDetectable: !0,
|
|
9228
|
-
isSupported: !1
|
|
9229
|
-
notes: ""
|
|
9230
|
-
},
|
|
9231
|
-
xltx: {
|
|
9232
|
-
label: "Microsoft Excel template.",
|
|
9233
|
-
isAutoDetectable: !0,
|
|
9234
|
-
isSupported: !1,
|
|
9235
|
-
notes: ""
|
|
9236
|
-
},
|
|
9237
|
-
xltm: {
|
|
9238
|
-
label: "Microsoft Excel macro-enabled template.",
|
|
9239
|
-
isAutoDetectable: !0,
|
|
9240
|
-
isSupported: !1,
|
|
9241
|
-
notes: ""
|
|
9084
|
+
isSupported: !1
|
|
9242
9085
|
},
|
|
9243
9086
|
xml: {
|
|
9244
9087
|
label: "eXtensible markup language.",
|
|
9088
|
+
structure: "tree",
|
|
9245
9089
|
isAutoDetectable: !0,
|
|
9246
|
-
isSupported: !1
|
|
9247
|
-
notes: ""
|
|
9090
|
+
isSupported: !1
|
|
9248
9091
|
}
|
|
9249
|
-
},
|
|
9092
|
+
}, Hc = class {
|
|
9250
9093
|
async previewFile(e, t, n, r = Nc) {
|
|
9251
9094
|
let i = await fetch(encodeURI(e), {
|
|
9252
|
-
headers: { Range: `bytes=0-${String(n ??
|
|
9095
|
+
headers: { Range: `bytes=0-${String((n ?? Pc) - 1)}` },
|
|
9253
9096
|
signal: t
|
|
9254
9097
|
});
|
|
9255
9098
|
if (!i.ok) throw await Tc(i, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
|
|
9256
9099
|
let a = new Uint8Array(await i.arrayBuffer()), o = jc(new URL(e).pathname)?.toLowerCase();
|
|
9257
|
-
return await
|
|
9100
|
+
return await Uc(a, o, r);
|
|
9258
9101
|
}
|
|
9259
9102
|
};
|
|
9260
|
-
async function
|
|
9103
|
+
async function Uc(e, t, n) {
|
|
9261
9104
|
if (e.length === 0) return {
|
|
9262
9105
|
bytes: e,
|
|
9263
9106
|
dataFormatId: void 0,
|
|
@@ -9268,79 +9111,173 @@ async function Rc(e, t, n) {
|
|
|
9268
9111
|
text: void 0
|
|
9269
9112
|
};
|
|
9270
9113
|
let r = await Qs(e);
|
|
9271
|
-
if (r
|
|
9272
|
-
|
|
9114
|
+
if (r != null) return Wc(e, r);
|
|
9115
|
+
let i = Gc(e, n), a = Jc(e, i[0] ?? Fc), o = t == null ? void 0 : Bc[t];
|
|
9116
|
+
return {
|
|
9117
|
+
bytes: e,
|
|
9118
|
+
dataFormatId: Yc(a.text) ? "json" : o ?? "dtv",
|
|
9119
|
+
encodingId: a.encoding.id,
|
|
9120
|
+
encodingConfidenceLevel: a.encoding.confidenceLevel,
|
|
9121
|
+
encodingCandidates: i,
|
|
9122
|
+
fileTypeConfig: r,
|
|
9123
|
+
text: a.text
|
|
9124
|
+
};
|
|
9125
|
+
}
|
|
9126
|
+
function Wc(e, t) {
|
|
9127
|
+
let n = Vc[t.ext]?.isSupported === !0 ? t.ext : void 0;
|
|
9128
|
+
if (t.ext === "xml") {
|
|
9129
|
+
let r = Jc(e, {
|
|
9130
|
+
id: qc(e),
|
|
9131
|
+
confidenceLevel: 1
|
|
9132
|
+
});
|
|
9273
9133
|
return {
|
|
9274
9134
|
bytes: e,
|
|
9275
|
-
dataFormatId:
|
|
9276
|
-
encodingId:
|
|
9277
|
-
encodingConfidenceLevel:
|
|
9278
|
-
encodingCandidates:
|
|
9279
|
-
fileTypeConfig:
|
|
9280
|
-
text:
|
|
9135
|
+
dataFormatId: n,
|
|
9136
|
+
encodingId: r.encoding.id,
|
|
9137
|
+
encodingConfidenceLevel: r.encoding.confidenceLevel,
|
|
9138
|
+
encodingCandidates: void 0,
|
|
9139
|
+
fileTypeConfig: t,
|
|
9140
|
+
text: r.text
|
|
9281
9141
|
};
|
|
9282
9142
|
}
|
|
9283
|
-
|
|
9284
|
-
return i == null ? {
|
|
9285
|
-
bytes: e,
|
|
9286
|
-
dataFormatId: void 0,
|
|
9287
|
-
encodingId: void 0,
|
|
9288
|
-
encodingConfidenceLevel: void 0,
|
|
9289
|
-
encodingCandidates: void 0,
|
|
9290
|
-
fileTypeConfig: r,
|
|
9291
|
-
text: void 0
|
|
9292
|
-
} : {
|
|
9143
|
+
return {
|
|
9293
9144
|
bytes: e,
|
|
9294
|
-
dataFormatId:
|
|
9145
|
+
dataFormatId: n,
|
|
9295
9146
|
encodingId: void 0,
|
|
9296
9147
|
encodingConfidenceLevel: void 0,
|
|
9297
9148
|
encodingCandidates: void 0,
|
|
9298
|
-
fileTypeConfig:
|
|
9149
|
+
fileTypeConfig: t,
|
|
9299
9150
|
text: void 0
|
|
9300
9151
|
};
|
|
9301
9152
|
}
|
|
9302
|
-
function
|
|
9303
|
-
|
|
9153
|
+
function Gc(e, t) {
|
|
9154
|
+
let n = Kc(e);
|
|
9155
|
+
if (n != null) return [n];
|
|
9156
|
+
let r = Da(e, { minimumThreshold: 0 }), i = [];
|
|
9157
|
+
for (let { confidence: e, encoding: t } of r) t != null && kc(t) && i.push({
|
|
9158
|
+
confidenceLevel: e,
|
|
9159
|
+
id: t
|
|
9160
|
+
});
|
|
9161
|
+
return i.filter(({ confidenceLevel: e = 0 }, n) => n === 0 || e >= t);
|
|
9162
|
+
}
|
|
9163
|
+
function Kc(e) {
|
|
9164
|
+
return e[0] === 239 && e[1] === 187 && e[2] === 191 ? {
|
|
9304
9165
|
confidenceLevel: 1,
|
|
9305
9166
|
id: "UTF-8-SIG"
|
|
9306
|
-
}]
|
|
9307
|
-
if (e[0] === 254 && e[1] === 255) return [{
|
|
9167
|
+
} : e[0] === 254 && e[1] === 255 ? {
|
|
9308
9168
|
confidenceLevel: 1,
|
|
9309
9169
|
id: "utf-16-be"
|
|
9310
|
-
}]
|
|
9311
|
-
if (e[0] === 255 && e[1] === 254) return [{
|
|
9170
|
+
} : e[0] === 255 && e[1] === 254 ? {
|
|
9312
9171
|
confidenceLevel: 1,
|
|
9313
9172
|
id: "utf-16-le"
|
|
9314
|
-
}
|
|
9315
|
-
let n = Oa(e, { minimumThreshold: 0 }), r = [];
|
|
9316
|
-
for (let { confidence: e, encoding: t } of n) t != null && kc(t) && r.push({
|
|
9317
|
-
confidenceLevel: e,
|
|
9318
|
-
id: t
|
|
9319
|
-
});
|
|
9320
|
-
return r.filter(({ confidenceLevel: e = 0 }, n) => n === 0 || e >= t);
|
|
9173
|
+
} : void 0;
|
|
9321
9174
|
}
|
|
9322
|
-
function
|
|
9175
|
+
function qc(e) {
|
|
9176
|
+
let t = new TextDecoder("ascii").decode(e.subarray(0, Ic));
|
|
9177
|
+
return Kc(e)?.id ?? Lc.exec(t)?.[2] ?? "utf-8";
|
|
9178
|
+
}
|
|
9179
|
+
function Jc(e, t) {
|
|
9323
9180
|
try {
|
|
9324
9181
|
return {
|
|
9325
9182
|
encoding: t,
|
|
9326
|
-
text: new TextDecoder(Ac(t.id)).decode(
|
|
9183
|
+
text: new TextDecoder(Ac(t.id)).decode(il(e))
|
|
9327
9184
|
};
|
|
9328
9185
|
} catch {
|
|
9329
9186
|
return {
|
|
9330
|
-
encoding:
|
|
9331
|
-
text: new TextDecoder(
|
|
9187
|
+
encoding: Fc,
|
|
9188
|
+
text: new TextDecoder(Fc.id, { fatal: !1 }).decode(il(e))
|
|
9332
9189
|
};
|
|
9333
9190
|
}
|
|
9334
9191
|
}
|
|
9335
|
-
function
|
|
9336
|
-
let t = e.
|
|
9337
|
-
if (
|
|
9338
|
-
|
|
9339
|
-
|
|
9192
|
+
function Yc(e) {
|
|
9193
|
+
let t = [], n = e.search(/\S/);
|
|
9194
|
+
if (e[n] !== "{" && e[n] !== "[") return !1;
|
|
9195
|
+
let r = {
|
|
9196
|
+
expectation: "value",
|
|
9197
|
+
index: n
|
|
9198
|
+
};
|
|
9199
|
+
for (; r != null && r.index < e.length;) r = Xc(e, r, t);
|
|
9200
|
+
return r != null;
|
|
9201
|
+
}
|
|
9202
|
+
function Xc(e, { expectation: t, index: n }, r) {
|
|
9203
|
+
let i = e.charAt(n);
|
|
9204
|
+
if (zc.has(i)) return {
|
|
9205
|
+
expectation: t,
|
|
9206
|
+
index: n + 1
|
|
9207
|
+
};
|
|
9208
|
+
switch (t) {
|
|
9209
|
+
case "closeOrKey": return i === "}" ? Zc(i, n, r) : Qc(e, n);
|
|
9210
|
+
case "closeOrValue": return i === "]" ? Zc(i, n, r) : $c(e, n, r);
|
|
9211
|
+
case "colon": return i === ":" ? {
|
|
9212
|
+
expectation: "value",
|
|
9213
|
+
index: n + 1
|
|
9214
|
+
} : void 0;
|
|
9215
|
+
case "commaOrClose": return i === "," ? {
|
|
9216
|
+
expectation: r.at(-1) === "{" ? "key" : "value",
|
|
9217
|
+
index: n + 1
|
|
9218
|
+
} : Zc(i, n, r);
|
|
9219
|
+
case "end": return;
|
|
9220
|
+
case "key": return Qc(e, n);
|
|
9221
|
+
case "value": return $c(e, n, r);
|
|
9222
|
+
}
|
|
9223
|
+
}
|
|
9224
|
+
function Zc(e, t, n) {
|
|
9225
|
+
if (e === (n.at(-1) === "{" ? "}" : "]")) return n.pop(), {
|
|
9226
|
+
expectation: n.length === 0 ? "end" : "commaOrClose",
|
|
9227
|
+
index: t + 1
|
|
9228
|
+
};
|
|
9229
|
+
}
|
|
9230
|
+
function Qc(e, t) {
|
|
9231
|
+
let n = e.charAt(t) === "\"" ? el(e, t) : void 0;
|
|
9232
|
+
return n == null ? void 0 : {
|
|
9233
|
+
expectation: "colon",
|
|
9234
|
+
index: n
|
|
9235
|
+
};
|
|
9236
|
+
}
|
|
9237
|
+
function $c(e, t, n) {
|
|
9238
|
+
let r = e.charAt(t);
|
|
9239
|
+
if (r === "{" || r === "[") return n.push(r), {
|
|
9240
|
+
expectation: r === "{" ? "closeOrKey" : "closeOrValue",
|
|
9241
|
+
index: t + 1
|
|
9242
|
+
};
|
|
9243
|
+
let i = r === "\"" ? el(e, t) : nl(e, t);
|
|
9244
|
+
return i == null ? void 0 : {
|
|
9245
|
+
expectation: "commaOrClose",
|
|
9246
|
+
index: i
|
|
9247
|
+
};
|
|
9248
|
+
}
|
|
9249
|
+
function el(e, t) {
|
|
9250
|
+
let n = t + 1;
|
|
9251
|
+
for (; n < e.length;) {
|
|
9252
|
+
let t = e.charAt(n);
|
|
9253
|
+
if (t === "\"") return n + 1;
|
|
9254
|
+
if (t < " ") return;
|
|
9255
|
+
if (t === "\\") {
|
|
9256
|
+
let t = tl(e, n);
|
|
9257
|
+
if (t == null) return;
|
|
9258
|
+
n = t;
|
|
9259
|
+
} else n++;
|
|
9260
|
+
}
|
|
9261
|
+
return e.length;
|
|
9262
|
+
}
|
|
9263
|
+
function tl(e, t) {
|
|
9264
|
+
let n = e.charAt(t + 1);
|
|
9265
|
+
return n === "u" ? /^[\da-f]*$/i.test(e.slice(t + 2, t + 6)) ? t + 6 : void 0 : n === "" || String.raw`"\/bfnrt`.includes(n) ? t + 2 : void 0;
|
|
9266
|
+
}
|
|
9267
|
+
function nl(e, t) {
|
|
9268
|
+
let n = /^[\w.+-]+/.exec(e.slice(t))?.[0];
|
|
9269
|
+
if (n == null) return;
|
|
9270
|
+
let r = t + n.length;
|
|
9271
|
+
return r === e.length ? Rc.some((e) => e.startsWith(n)) || /^[\d.e+-]*$/i.test(n) ? r : void 0 : Rc.includes(n) || rl(n) ? r : void 0;
|
|
9272
|
+
}
|
|
9273
|
+
function rl(e) {
|
|
9274
|
+
try {
|
|
9275
|
+
return typeof JSON.parse(e) == "number";
|
|
9276
|
+
} catch {
|
|
9277
|
+
return !1;
|
|
9340
9278
|
}
|
|
9341
|
-
return !1;
|
|
9342
9279
|
}
|
|
9343
|
-
function
|
|
9280
|
+
function il(e) {
|
|
9344
9281
|
let t = e, n = t.length;
|
|
9345
9282
|
for (let e = n - 1; e >= 0; e--) {
|
|
9346
9283
|
let n = t[e];
|
|
@@ -9355,5 +9292,4 @@ function Hc(e) {
|
|
|
9355
9292
|
}
|
|
9356
9293
|
return t;
|
|
9357
9294
|
}
|
|
9358
|
-
|
|
9359
|
-
export { Lc as Tool };
|
|
9295
|
+
export { Hc as Tool };
|