@modern-js/repo-generator 0.0.0-next-20221206083411 → 0.0.0-next-20221206140510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2199 -581
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -30614,13 +30614,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
|
30614
30614
|
module2.exports.browsers = require_browsers();
|
|
30615
30615
|
});
|
|
30616
30616
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
|
30617
|
-
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "3.1",
|
|
30617
|
+
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "111", CC: "3.1", DC: "5.1", EC: "6.1", FC: "7.1", GC: "9.1", HC: "14.1", IC: "15.1", JC: "16.2", KC: "TP", LC: "9.5-9.6", MC: "10.0-10.1", NC: "10.5", OC: "10.6", PC: "11.6", QC: "4.0-4.1", RC: "5.0-5.1", SC: "6.0-6.1", TC: "7.0-7.1", UC: "8.1-8.4", VC: "9.0-9.2", WC: "9.3", XC: "10.0-10.2", YC: "10.3", ZC: "11.0-11.2", aC: "11.3-11.4", bC: "12.0-12.1", cC: "12.2-12.5", dC: "13.0-13.1", eC: "13.2", fC: "13.3", gC: "13.4-13.7", hC: "14.0-14.4", iC: "14.5-14.8", jC: "15.0-15.1", kC: "all", lC: "2.1", mC: "2.2", nC: "2.3", oC: "4.1", pC: "4.4", qC: "4.4.3-4.4.4", rC: "13.4", sC: "5.0-5.4", tC: "6.2-6.4", uC: "7.2-7.4", vC: "8.2", wC: "9.2", xC: "11.1-11.2", yC: "12.0", zC: "13.0", "0C": "14.0", "1C": "15.0", "2C": "17.0", "3C": "18.0", "4C": "19.0", "5C": "13.18", "6C": "2.5" };
|
|
30618
30618
|
});
|
|
30619
30619
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
|
30620
30620
|
module2.exports.browserVersions = require_browserVersions();
|
|
30621
30621
|
});
|
|
30622
30622
|
var require_agents = __commonJSMin((exports, module2) => {
|
|
30623
|
-
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0 }, B: "webkit", C: ["", "", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: null, vB: null, AC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, BC: 0, wB: 8692e-6, CC: 0.011922, DC: 456e-5, EC: 4283e-6, FC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, GC: 0.305998, HC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, IC: 0, JC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "BC", "wB", "I", "r", "CC", "J", "DC", "D", "EC", "E", "F", "FC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "GC", "G", "HC", "zB", "0B", "1B", "2B", "pB", "3B", "IC", "JC", ""], E: "Safari", F: { BC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, CC: 131112e4, J: 1343174400, DC: 13824e5, D: 13824e5, EC: 1410998400, E: 1413417600, F: 1443657600, FC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, GC: 1619395200, G: 1632096e3, HC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, IC: null, JC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, KC: 685e-5, LC: 0, MC: 8392e-6, NC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, OC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "KC", "LC", "MC", "NC", "B", "nB", "4B", "OC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, KC: 1223424e3, LC: 1251763200, MC: 1267488e3, NC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, OC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", KC: "o", LC: "o", MC: "o", NC: "o", nB: "o", "4B": "o", OC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, PC: 0, "5B": 319488e-8, QC: 479232e-8, RC: 319488e-8, SC: 0.014377, TC: 479232e-8, UC: 0.0159744, VC: 0.0607028, WC: 319488e-8, XC: 0.0718849, YC: 0.0255591, ZC: 0.0223642, aC: 0.0223642, bC: 0.408945, cC: 0.0287539, dC: 958465e-8, eC: 0.0383386, fC: 0.119808, gC: 0.354632, hC: 0.773162, iC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "PC", "5B", "QC", "RC", "SC", "E", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, PC: 1283904e3, "5B": 1299628800, QC: 1331078400, RC: 1359331200, SC: 1394409600, E: 1410912e3, TC: 1413763200, UC: 1442361600, VC: 1458518400, WC: 1473724800, XC: 1490572800, YC: 1505779200, ZC: 1522281600, aC: 1537142400, bC: 1553472e3, cC: 1568851200, dC: 1572220800, eC: 1580169600, fC: 1585008e3, gC: 1600214400, hC: 1619395200, iC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { jC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "jC", "", "", ""], E: "Opera Mini", F: { jC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, kC: 0, lC: 0, mC: 0, nC: 0.0297805, "5B": 0.0893414, oC: 0, pC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "lC", "mC", "qB", "I", "nC", "5B", "oC", "pC", "H", "", "", ""], E: "Android Browser", F: { kC: 1256515200, lC: 1274313600, mC: 1291593600, qB: 1298332800, I: 1318896e3, nC: 1341792e3, "5B": 1374624e3, oC: 1386547200, pC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { qC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qC", "", "", ""], E: "UC Browser for Android", F: { qC: 1634688e3 }, D: { qC: "webkit" } }, P: { A: { I: 0.146868, rC: 0.0103543, sC: 0.010304, tC: 0.0629436, uC: 0.0103584, vC: 0.0104443, xB: 0.0105043, wC: 0.0314718, xC: 0.0104906, yC: 0.052453, zC: 0.052453, "0C": 0.0314718, pB: 0.0944154, "1C": 0.157359, "2C": 2.15057, "3C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "rC", "sC", "tC", "uC", "vC", "xB", "wC", "xC", "yC", "zC", "0C", "pB", "1C", "2C", "3C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, rC: 1481846400, sC: 1509408e3, tC: 1528329600, uC: 1546128e3, vC: 1554163200, xB: 1567900800, wC: 1582588800, xC: 1593475200, yC: 1605657600, zC: 1618531200, "0C": 1629072e3, pB: 1640736e3, "1C": 1651708800, "2C": 1659657600, "3C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "4C", "", "", ""], E: "Baidu Browser", F: { "4C": 1663027200 } }, S: { A: { "5C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "KaiOS Browser", F: { "5C": 1527811200 } } };
|
|
30623
|
+
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0, BC: 0 }, B: "webkit", C: ["", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC", "BC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: 166968e4, vB: null, AC: null, BC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, CC: 0, wB: 8692e-6, DC: 0.011922, EC: 456e-5, FC: 4283e-6, GC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, HC: 0.305998, IC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, JC: 0, KC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "CC", "wB", "I", "r", "DC", "J", "EC", "D", "FC", "E", "F", "GC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "HC", "G", "IC", "zB", "0B", "1B", "2B", "pB", "3B", "JC", "KC", ""], E: "Safari", F: { CC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, DC: 131112e4, J: 1343174400, EC: 13824e5, D: 13824e5, FC: 1410998400, E: 1413417600, F: 1443657600, GC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, HC: 1619395200, G: 1632096e3, IC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, JC: null, KC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, LC: 685e-5, MC: 0, NC: 8392e-6, OC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, PC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "LC", "MC", "NC", "OC", "B", "nB", "4B", "PC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, LC: 1223424e3, MC: 1251763200, NC: 1267488e3, OC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, PC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", LC: "o", MC: "o", NC: "o", OC: "o", nB: "o", "4B": "o", PC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, QC: 0, "5B": 319488e-8, RC: 479232e-8, SC: 319488e-8, TC: 0.014377, UC: 479232e-8, VC: 0.0159744, WC: 0.0607028, XC: 319488e-8, YC: 0.0718849, ZC: 0.0255591, aC: 0.0223642, bC: 0.0223642, cC: 0.408945, dC: 0.0287539, eC: 958465e-8, fC: 0.0383386, gC: 0.119808, hC: 0.354632, iC: 0.773162, jC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "QC", "5B", "RC", "SC", "TC", "E", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "jC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, QC: 1283904e3, "5B": 1299628800, RC: 1331078400, SC: 1359331200, TC: 1394409600, E: 1410912e3, UC: 1413763200, VC: 1442361600, WC: 1458518400, XC: 1473724800, YC: 1490572800, ZC: 1505779200, aC: 1522281600, bC: 1537142400, cC: 1553472e3, dC: 1568851200, eC: 1572220800, fC: 1580169600, gC: 1585008e3, hC: 1600214400, iC: 1619395200, jC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { kC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "", "", ""], E: "Opera Mini", F: { kC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, lC: 0, mC: 0, nC: 0, oC: 0.0297805, "5B": 0.0893414, pC: 0, qC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "lC", "mC", "nC", "qB", "I", "oC", "5B", "pC", "qC", "H", "", "", ""], E: "Android Browser", F: { lC: 1256515200, mC: 1274313600, nC: 1291593600, qB: 1298332800, I: 1318896e3, oC: 1341792e3, "5B": 1374624e3, pC: 1386547200, qC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { rC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "rC", "", "", ""], E: "UC Browser for Android", F: { rC: 1634688e3 }, D: { rC: "webkit" } }, P: { A: { I: 0.146868, sC: 0.0103543, tC: 0.010304, uC: 0.0629436, vC: 0.0103584, wC: 0.0104443, xB: 0.0105043, xC: 0.0314718, yC: 0.0104906, zC: 0.052453, "0C": 0.052453, "1C": 0.0314718, pB: 0.0944154, "2C": 0.157359, "3C": 2.15057, "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "sC", "tC", "uC", "vC", "wC", "xB", "xC", "yC", "zC", "0C", "1C", "pB", "2C", "3C", "4C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, sC: 1481846400, tC: 1509408e3, uC: 1528329600, vC: 1546128e3, wC: 1554163200, xB: 1567900800, xC: 1582588800, yC: 1593475200, zC: 1605657600, "0C": 1618531200, "1C": 1629072e3, pB: 1640736e3, "2C": 1651708800, "3C": 1659657600, "4C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "5C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "Baidu Browser", F: { "5C": 1663027200 } }, S: { A: { "6C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6C", "", "", ""], E: "KaiOS Browser", F: { "6C": 1527811200 } } };
|
|
30624
30624
|
});
|
|
30625
30625
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
|
30626
30626
|
"use strict";
|
|
@@ -45979,6 +45979,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
45979
45979
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
45980
45980
|
};
|
|
45981
45981
|
});
|
|
45982
|
+
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
|
45982
45983
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
|
45983
45984
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
|
45984
45985
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
|
@@ -46011,10 +46012,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46011
46012
|
if (this._ending) {
|
|
46012
46013
|
throw new WriteAfterEndError();
|
|
46013
46014
|
}
|
|
46014
|
-
if (!(
|
|
46015
|
+
if (!isString3(data) && !isBuffer(data)) {
|
|
46015
46016
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
46016
46017
|
}
|
|
46017
|
-
if (
|
|
46018
|
+
if (isFunction4(encoding)) {
|
|
46018
46019
|
callback = encoding;
|
|
46019
46020
|
encoding = null;
|
|
46020
46021
|
}
|
|
@@ -46034,10 +46035,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46034
46035
|
}
|
|
46035
46036
|
};
|
|
46036
46037
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
46037
|
-
if (
|
|
46038
|
+
if (isFunction4(data)) {
|
|
46038
46039
|
callback = data;
|
|
46039
46040
|
data = encoding = null;
|
|
46040
|
-
} else if (
|
|
46041
|
+
} else if (isFunction4(encoding)) {
|
|
46041
46042
|
callback = encoding;
|
|
46042
46043
|
encoding = null;
|
|
46043
46044
|
}
|
|
@@ -46161,7 +46162,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46161
46162
|
for (var event of events) {
|
|
46162
46163
|
request.on(event, eventHandlers[event]);
|
|
46163
46164
|
}
|
|
46164
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this.
|
|
46165
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
|
46165
46166
|
if (this._isRedirect) {
|
|
46166
46167
|
var i = 0;
|
|
46167
46168
|
var self3 = this;
|
|
@@ -46226,7 +46227,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46226
46227
|
try {
|
|
46227
46228
|
redirectUrl = url.resolve(currentUrl, location);
|
|
46228
46229
|
} catch (cause) {
|
|
46229
|
-
this.emit("error", new RedirectionError(cause));
|
|
46230
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46230
46231
|
return;
|
|
46231
46232
|
}
|
|
46232
46233
|
debug("redirecting to", redirectUrl);
|
|
@@ -46236,7 +46237,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46236
46237
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
46237
46238
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
46238
46239
|
}
|
|
46239
|
-
if (
|
|
46240
|
+
if (isFunction4(beforeRedirect)) {
|
|
46240
46241
|
var responseDetails = {
|
|
46241
46242
|
headers: response.headers,
|
|
46242
46243
|
statusCode
|
|
@@ -46257,7 +46258,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46257
46258
|
try {
|
|
46258
46259
|
this._performRequest();
|
|
46259
46260
|
} catch (cause) {
|
|
46260
|
-
this.emit("error", new RedirectionError(cause));
|
|
46261
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
46261
46262
|
}
|
|
46262
46263
|
};
|
|
46263
46264
|
function wrap(protocols) {
|
|
@@ -46271,13 +46272,17 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46271
46272
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
46272
46273
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
46273
46274
|
function request(input, options3, callback) {
|
|
46274
|
-
if (
|
|
46275
|
-
var
|
|
46275
|
+
if (isString3(input)) {
|
|
46276
|
+
var parsed;
|
|
46276
46277
|
try {
|
|
46277
|
-
|
|
46278
|
+
parsed = urlToOptions(new URL(input));
|
|
46278
46279
|
} catch (err) {
|
|
46279
|
-
|
|
46280
|
+
parsed = url.parse(input);
|
|
46281
|
+
}
|
|
46282
|
+
if (!isString3(parsed.protocol)) {
|
|
46283
|
+
throw new InvalidUrlError({ input });
|
|
46280
46284
|
}
|
|
46285
|
+
input = parsed;
|
|
46281
46286
|
} else if (URL && input instanceof URL) {
|
|
46282
46287
|
input = urlToOptions(input);
|
|
46283
46288
|
} else {
|
|
@@ -46285,7 +46290,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46285
46290
|
options3 = input;
|
|
46286
46291
|
input = { protocol };
|
|
46287
46292
|
}
|
|
46288
|
-
if (
|
|
46293
|
+
if (isFunction4(options3)) {
|
|
46289
46294
|
callback = options3;
|
|
46290
46295
|
options3 = null;
|
|
46291
46296
|
}
|
|
@@ -46294,6 +46299,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46294
46299
|
maxBodyLength: exports2.maxBodyLength
|
|
46295
46300
|
}, input, options3);
|
|
46296
46301
|
options3.nativeProtocols = nativeProtocols;
|
|
46302
|
+
if (!isString3(options3.host) && !isString3(options3.hostname)) {
|
|
46303
|
+
options3.hostname = "::1";
|
|
46304
|
+
}
|
|
46297
46305
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
|
46298
46306
|
debug("options", options3);
|
|
46299
46307
|
return new RedirectableRequest(options3, callback);
|
|
@@ -46337,20 +46345,16 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46337
46345
|
}
|
|
46338
46346
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
46339
46347
|
}
|
|
46340
|
-
function createErrorType(code,
|
|
46341
|
-
function CustomError(
|
|
46348
|
+
function createErrorType(code, message, baseClass) {
|
|
46349
|
+
function CustomError(properties) {
|
|
46342
46350
|
Error.captureStackTrace(this, this.constructor);
|
|
46343
|
-
|
|
46344
|
-
|
|
46345
|
-
|
|
46346
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
46347
|
-
this.cause = cause;
|
|
46348
|
-
}
|
|
46351
|
+
Object.assign(this, properties || {});
|
|
46352
|
+
this.code = code;
|
|
46353
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
46349
46354
|
}
|
|
46350
|
-
CustomError.prototype = new Error();
|
|
46355
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
46351
46356
|
CustomError.prototype.constructor = CustomError;
|
|
46352
46357
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
46353
|
-
CustomError.prototype.code = code;
|
|
46354
46358
|
return CustomError;
|
|
46355
46359
|
}
|
|
46356
46360
|
function abortRequest(request) {
|
|
@@ -46361,9 +46365,19 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
|
46361
46365
|
request.abort();
|
|
46362
46366
|
}
|
|
46363
46367
|
function isSubdomain(subdomain, domain) {
|
|
46364
|
-
|
|
46368
|
+
assert(isString3(subdomain) && isString3(domain));
|
|
46369
|
+
var dot = subdomain.length - domain.length - 1;
|
|
46365
46370
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
46366
46371
|
}
|
|
46372
|
+
function isString3(value) {
|
|
46373
|
+
return typeof value === "string" || value instanceof String;
|
|
46374
|
+
}
|
|
46375
|
+
function isFunction4(value) {
|
|
46376
|
+
return typeof value === "function";
|
|
46377
|
+
}
|
|
46378
|
+
function isBuffer(value) {
|
|
46379
|
+
return typeof value === "object" && "length" in value;
|
|
46380
|
+
}
|
|
46367
46381
|
module2.exports = wrap({ http, https });
|
|
46368
46382
|
module2.exports.wrap = wrap;
|
|
46369
46383
|
});
|
|
@@ -48193,8 +48207,9 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48193
48207
|
}
|
|
48194
48208
|
this.path = normPath(header.path);
|
|
48195
48209
|
this.mode = header.mode;
|
|
48196
|
-
if (this.mode)
|
|
48210
|
+
if (this.mode) {
|
|
48197
48211
|
this.mode = this.mode & 4095;
|
|
48212
|
+
}
|
|
48198
48213
|
this.uid = header.uid;
|
|
48199
48214
|
this.gid = header.gid;
|
|
48200
48215
|
this.uname = header.uname;
|
|
@@ -48206,29 +48221,35 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
|
48206
48221
|
this.linkpath = normPath(header.linkpath);
|
|
48207
48222
|
this.uname = header.uname;
|
|
48208
48223
|
this.gname = header.gname;
|
|
48209
|
-
if (ex)
|
|
48224
|
+
if (ex) {
|
|
48210
48225
|
this[SLURP](ex);
|
|
48211
|
-
|
|
48226
|
+
}
|
|
48227
|
+
if (gex) {
|
|
48212
48228
|
this[SLURP](gex, true);
|
|
48229
|
+
}
|
|
48213
48230
|
}
|
|
48214
48231
|
write(data) {
|
|
48215
48232
|
const writeLen = data.length;
|
|
48216
|
-
if (writeLen > this.blockRemain)
|
|
48233
|
+
if (writeLen > this.blockRemain) {
|
|
48217
48234
|
throw new Error("writing more to entry than is appropriate");
|
|
48235
|
+
}
|
|
48218
48236
|
const r = this.remain;
|
|
48219
48237
|
const br = this.blockRemain;
|
|
48220
48238
|
this.remain = Math.max(0, r - writeLen);
|
|
48221
48239
|
this.blockRemain = Math.max(0, br - writeLen);
|
|
48222
|
-
if (this.ignore)
|
|
48240
|
+
if (this.ignore) {
|
|
48223
48241
|
return true;
|
|
48224
|
-
|
|
48242
|
+
}
|
|
48243
|
+
if (r >= writeLen) {
|
|
48225
48244
|
return super.write(data);
|
|
48245
|
+
}
|
|
48226
48246
|
return super.write(data.slice(0, r));
|
|
48227
48247
|
}
|
|
48228
48248
|
[SLURP](ex, global2) {
|
|
48229
48249
|
for (const k in ex) {
|
|
48230
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48250
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48231
48251
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
|
48252
|
+
}
|
|
48232
48253
|
}
|
|
48233
48254
|
}
|
|
48234
48255
|
};
|
|
@@ -48263,12 +48284,13 @@ var require_types = __commonJSMin((exports) => {
|
|
|
48263
48284
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
48264
48285
|
"use strict";
|
|
48265
48286
|
var encode = (num, buf) => {
|
|
48266
|
-
if (!Number.isSafeInteger(num))
|
|
48287
|
+
if (!Number.isSafeInteger(num)) {
|
|
48267
48288
|
throw Error("cannot encode number outside of javascript safe integer range");
|
|
48268
|
-
else if (num < 0)
|
|
48289
|
+
} else if (num < 0) {
|
|
48269
48290
|
encodeNegative(num, buf);
|
|
48270
|
-
else
|
|
48291
|
+
} else {
|
|
48271
48292
|
encodePositive(num, buf);
|
|
48293
|
+
}
|
|
48272
48294
|
return buf;
|
|
48273
48295
|
};
|
|
48274
48296
|
var encodePositive = (num, buf) => {
|
|
@@ -48285,11 +48307,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48285
48307
|
for (var i = buf.length; i > 1; i--) {
|
|
48286
48308
|
var byte = num & 255;
|
|
48287
48309
|
num = Math.floor(num / 256);
|
|
48288
|
-
if (flipped)
|
|
48310
|
+
if (flipped) {
|
|
48289
48311
|
buf[i - 1] = onesComp(byte);
|
|
48290
|
-
else if (byte === 0)
|
|
48312
|
+
} else if (byte === 0) {
|
|
48291
48313
|
buf[i - 1] = 0;
|
|
48292
|
-
else {
|
|
48314
|
+
} else {
|
|
48293
48315
|
flipped = true;
|
|
48294
48316
|
buf[i - 1] = twosComp(byte);
|
|
48295
48317
|
}
|
|
@@ -48298,10 +48320,12 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48298
48320
|
var parse2 = (buf) => {
|
|
48299
48321
|
const pre = buf[0];
|
|
48300
48322
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
48301
|
-
if (value === null)
|
|
48323
|
+
if (value === null) {
|
|
48302
48324
|
throw Error("invalid base256 encoding");
|
|
48303
|
-
|
|
48325
|
+
}
|
|
48326
|
+
if (!Number.isSafeInteger(value)) {
|
|
48304
48327
|
throw Error("parsed number outside of javascript safe integer range");
|
|
48328
|
+
}
|
|
48305
48329
|
return value;
|
|
48306
48330
|
};
|
|
48307
48331
|
var twos = (buf) => {
|
|
@@ -48311,16 +48335,17 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48311
48335
|
for (var i = len - 1; i > -1; i--) {
|
|
48312
48336
|
var byte = buf[i];
|
|
48313
48337
|
var f;
|
|
48314
|
-
if (flipped)
|
|
48338
|
+
if (flipped) {
|
|
48315
48339
|
f = onesComp(byte);
|
|
48316
|
-
else if (byte === 0)
|
|
48340
|
+
} else if (byte === 0) {
|
|
48317
48341
|
f = byte;
|
|
48318
|
-
else {
|
|
48342
|
+
} else {
|
|
48319
48343
|
flipped = true;
|
|
48320
48344
|
f = twosComp(byte);
|
|
48321
48345
|
}
|
|
48322
|
-
if (f !== 0)
|
|
48346
|
+
if (f !== 0) {
|
|
48323
48347
|
sum -= f * Math.pow(256, len - i - 1);
|
|
48348
|
+
}
|
|
48324
48349
|
}
|
|
48325
48350
|
return sum;
|
|
48326
48351
|
};
|
|
@@ -48329,8 +48354,9 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
|
48329
48354
|
var sum = 0;
|
|
48330
48355
|
for (var i = len - 1; i > -1; i--) {
|
|
48331
48356
|
var byte = buf[i];
|
|
48332
|
-
if (byte !== 0)
|
|
48357
|
+
if (byte !== 0) {
|
|
48333
48358
|
sum += byte * Math.pow(256, len - i - 1);
|
|
48359
|
+
}
|
|
48334
48360
|
}
|
|
48335
48361
|
return sum;
|
|
48336
48362
|
};
|
|
@@ -48369,16 +48395,19 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48369
48395
|
this.devmin = 0;
|
|
48370
48396
|
this.atime = null;
|
|
48371
48397
|
this.ctime = null;
|
|
48372
|
-
if (Buffer.isBuffer(data))
|
|
48398
|
+
if (Buffer.isBuffer(data)) {
|
|
48373
48399
|
this.decode(data, off || 0, ex, gex);
|
|
48374
|
-
else if (data)
|
|
48400
|
+
} else if (data) {
|
|
48375
48401
|
this.set(data);
|
|
48402
|
+
}
|
|
48376
48403
|
}
|
|
48377
48404
|
decode(buf, off, ex, gex) {
|
|
48378
|
-
if (!off)
|
|
48405
|
+
if (!off) {
|
|
48379
48406
|
off = 0;
|
|
48380
|
-
|
|
48407
|
+
}
|
|
48408
|
+
if (!buf || !(buf.length >= off + 512)) {
|
|
48381
48409
|
throw new Error("need 512 bytes for header");
|
|
48410
|
+
}
|
|
48382
48411
|
this.path = decString(buf, off, 100);
|
|
48383
48412
|
this.mode = decNumber(buf, off + 100, 8);
|
|
48384
48413
|
this.uid = decNumber(buf, off + 108, 8);
|
|
@@ -48389,12 +48418,15 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48389
48418
|
this[SLURP](ex);
|
|
48390
48419
|
this[SLURP](gex, true);
|
|
48391
48420
|
this[TYPE] = decString(buf, off + 156, 1);
|
|
48392
|
-
if (this[TYPE] === "")
|
|
48421
|
+
if (this[TYPE] === "") {
|
|
48393
48422
|
this[TYPE] = "0";
|
|
48394
|
-
|
|
48423
|
+
}
|
|
48424
|
+
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
|
48395
48425
|
this[TYPE] = "5";
|
|
48396
|
-
|
|
48426
|
+
}
|
|
48427
|
+
if (this[TYPE] === "5") {
|
|
48397
48428
|
this.size = 0;
|
|
48429
|
+
}
|
|
48398
48430
|
this.linkpath = decString(buf, off + 157, 100);
|
|
48399
48431
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
48400
48432
|
this.uname = decString(buf, off + 265, 32);
|
|
@@ -48406,25 +48438,30 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48406
48438
|
this.path = prefix + "/" + this.path;
|
|
48407
48439
|
} else {
|
|
48408
48440
|
const prefix = decString(buf, off + 345, 130);
|
|
48409
|
-
if (prefix)
|
|
48441
|
+
if (prefix) {
|
|
48410
48442
|
this.path = prefix + "/" + this.path;
|
|
48443
|
+
}
|
|
48411
48444
|
this.atime = decDate(buf, off + 476, 12);
|
|
48412
48445
|
this.ctime = decDate(buf, off + 488, 12);
|
|
48413
48446
|
}
|
|
48414
48447
|
}
|
|
48415
48448
|
let sum = 8 * 32;
|
|
48416
|
-
for (let i = off; i < off + 148; i++)
|
|
48449
|
+
for (let i = off; i < off + 148; i++) {
|
|
48417
48450
|
sum += buf[i];
|
|
48418
|
-
|
|
48451
|
+
}
|
|
48452
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48419
48453
|
sum += buf[i];
|
|
48454
|
+
}
|
|
48420
48455
|
this.cksumValid = sum === this.cksum;
|
|
48421
|
-
if (this.cksum === null && sum === 8 * 32)
|
|
48456
|
+
if (this.cksum === null && sum === 8 * 32) {
|
|
48422
48457
|
this.nullBlock = true;
|
|
48458
|
+
}
|
|
48423
48459
|
}
|
|
48424
48460
|
[SLURP](ex, global2) {
|
|
48425
48461
|
for (const k in ex) {
|
|
48426
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
|
48462
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
|
48427
48463
|
this[k] = ex[k];
|
|
48464
|
+
}
|
|
48428
48465
|
}
|
|
48429
48466
|
}
|
|
48430
48467
|
encode(buf, off) {
|
|
@@ -48432,10 +48469,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48432
48469
|
buf = this.block = Buffer.alloc(512);
|
|
48433
48470
|
off = 0;
|
|
48434
48471
|
}
|
|
48435
|
-
if (!off)
|
|
48472
|
+
if (!off) {
|
|
48436
48473
|
off = 0;
|
|
48437
|
-
|
|
48474
|
+
}
|
|
48475
|
+
if (!(buf.length >= off + 512)) {
|
|
48438
48476
|
throw new Error("need 512 bytes for header");
|
|
48477
|
+
}
|
|
48439
48478
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
48440
48479
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
48441
48480
|
const path6 = split[0];
|
|
@@ -48455,18 +48494,20 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48455
48494
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
|
48456
48495
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
|
48457
48496
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
|
48458
|
-
if (buf[off + 475] !== 0)
|
|
48497
|
+
if (buf[off + 475] !== 0) {
|
|
48459
48498
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
|
48460
|
-
else {
|
|
48499
|
+
} else {
|
|
48461
48500
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
|
48462
48501
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
|
48463
48502
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
|
48464
48503
|
}
|
|
48465
48504
|
let sum = 8 * 32;
|
|
48466
|
-
for (let i = off; i < off + 148; i++)
|
|
48505
|
+
for (let i = off; i < off + 148; i++) {
|
|
48467
48506
|
sum += buf[i];
|
|
48468
|
-
|
|
48507
|
+
}
|
|
48508
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
48469
48509
|
sum += buf[i];
|
|
48510
|
+
}
|
|
48470
48511
|
this.cksum = sum;
|
|
48471
48512
|
encNumber(buf, off + 148, 8, this.cksum);
|
|
48472
48513
|
this.cksumValid = true;
|
|
@@ -48474,8 +48515,9 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48474
48515
|
}
|
|
48475
48516
|
set(data) {
|
|
48476
48517
|
for (const i in data) {
|
|
48477
|
-
if (data[i] !== null && data[i] !== void 0)
|
|
48518
|
+
if (data[i] !== null && data[i] !== void 0) {
|
|
48478
48519
|
this[i] = data[i];
|
|
48520
|
+
}
|
|
48479
48521
|
}
|
|
48480
48522
|
}
|
|
48481
48523
|
get type() {
|
|
@@ -48485,10 +48527,11 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48485
48527
|
return this[TYPE];
|
|
48486
48528
|
}
|
|
48487
48529
|
set type(type) {
|
|
48488
|
-
if (types.code.has(type))
|
|
48530
|
+
if (types.code.has(type)) {
|
|
48489
48531
|
this[TYPE] = types.code.get(type);
|
|
48490
|
-
else
|
|
48532
|
+
} else {
|
|
48491
48533
|
this[TYPE] = type;
|
|
48534
|
+
}
|
|
48492
48535
|
}
|
|
48493
48536
|
};
|
|
48494
48537
|
var splitPrefix = (p, prefixSize) => {
|
|
@@ -48497,23 +48540,24 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
48497
48540
|
let prefix = "";
|
|
48498
48541
|
let ret;
|
|
48499
48542
|
const root = pathModule.parse(p).root || ".";
|
|
48500
|
-
if (Buffer.byteLength(pp) < pathSize)
|
|
48543
|
+
if (Buffer.byteLength(pp) < pathSize) {
|
|
48501
48544
|
ret = [pp, prefix, false];
|
|
48502
|
-
else {
|
|
48545
|
+
} else {
|
|
48503
48546
|
prefix = pathModule.dirname(pp);
|
|
48504
48547
|
pp = pathModule.basename(pp);
|
|
48505
48548
|
do {
|
|
48506
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48549
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48507
48550
|
ret = [pp, prefix, false];
|
|
48508
|
-
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
|
48509
|
-
ret = [pp.
|
|
48510
|
-
else {
|
|
48551
|
+
} else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
|
48552
|
+
ret = [pp.slice(0, pathSize - 1), prefix, true];
|
|
48553
|
+
} else {
|
|
48511
48554
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
|
48512
48555
|
prefix = pathModule.dirname(prefix);
|
|
48513
48556
|
}
|
|
48514
48557
|
} while (prefix !== root && !ret);
|
|
48515
|
-
if (!ret)
|
|
48516
|
-
ret = [p.
|
|
48558
|
+
if (!ret) {
|
|
48559
|
+
ret = [p.slice(0, pathSize - 1), "", true];
|
|
48560
|
+
}
|
|
48517
48561
|
}
|
|
48518
48562
|
return ret;
|
|
48519
48563
|
};
|
|
@@ -48561,13 +48605,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48561
48605
|
}
|
|
48562
48606
|
encode() {
|
|
48563
48607
|
const body = this.encodeBody();
|
|
48564
|
-
if (body === "")
|
|
48608
|
+
if (body === "") {
|
|
48565
48609
|
return null;
|
|
48610
|
+
}
|
|
48566
48611
|
const bodyLen = Buffer.byteLength(body);
|
|
48567
48612
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
|
48568
48613
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
48569
|
-
for (let i = 0; i < 512; i++)
|
|
48614
|
+
for (let i = 0; i < 512; i++) {
|
|
48570
48615
|
buf[i] = 0;
|
|
48616
|
+
}
|
|
48571
48617
|
new Header({
|
|
48572
48618
|
path: ("PaxHeader/" + path6.basename(this.path)).slice(0, 99),
|
|
48573
48619
|
mode: this.mode || 420,
|
|
@@ -48585,22 +48631,25 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48585
48631
|
ctime: this.ctime || null
|
|
48586
48632
|
}).encode(buf);
|
|
48587
48633
|
buf.write(body, 512, bodyLen, "utf8");
|
|
48588
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
|
48634
|
+
for (let i = bodyLen + 512; i < buf.length; i++) {
|
|
48589
48635
|
buf[i] = 0;
|
|
48636
|
+
}
|
|
48590
48637
|
return buf;
|
|
48591
48638
|
}
|
|
48592
48639
|
encodeBody() {
|
|
48593
48640
|
return this.encodeField("path") + this.encodeField("ctime") + this.encodeField("atime") + this.encodeField("dev") + this.encodeField("ino") + this.encodeField("nlink") + this.encodeField("charset") + this.encodeField("comment") + this.encodeField("gid") + this.encodeField("gname") + this.encodeField("linkpath") + this.encodeField("mtime") + this.encodeField("size") + this.encodeField("uid") + this.encodeField("uname");
|
|
48594
48641
|
}
|
|
48595
48642
|
encodeField(field) {
|
|
48596
|
-
if (this[field] === null || this[field] === void 0)
|
|
48643
|
+
if (this[field] === null || this[field] === void 0) {
|
|
48597
48644
|
return "";
|
|
48645
|
+
}
|
|
48598
48646
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
|
48599
48647
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
|
48600
48648
|
const byteLen = Buffer.byteLength(s);
|
|
48601
48649
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
|
48602
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
|
48650
|
+
if (byteLen + digits >= Math.pow(10, digits)) {
|
|
48603
48651
|
digits += 1;
|
|
48652
|
+
}
|
|
48604
48653
|
const len = digits + byteLen;
|
|
48605
48654
|
return len + s;
|
|
48606
48655
|
}
|
|
@@ -48610,13 +48659,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
48610
48659
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
|
48611
48660
|
var parseKVLine = (set, line3) => {
|
|
48612
48661
|
const n = parseInt(line3, 10);
|
|
48613
|
-
if (n !== Buffer.byteLength(line3) + 1)
|
|
48662
|
+
if (n !== Buffer.byteLength(line3) + 1) {
|
|
48614
48663
|
return set;
|
|
48615
|
-
|
|
48664
|
+
}
|
|
48665
|
+
line3 = line3.slice((n + " ").length);
|
|
48616
48666
|
const kv = line3.split("=");
|
|
48617
48667
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
|
48618
|
-
if (!k)
|
|
48668
|
+
if (!k) {
|
|
48619
48669
|
return set;
|
|
48670
|
+
}
|
|
48620
48671
|
const v = kv.join("=");
|
|
48621
48672
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
|
48622
48673
|
return set;
|
|
@@ -48638,10 +48689,12 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48638
48689
|
"use strict";
|
|
48639
48690
|
module2.exports = (Base) => class extends Base {
|
|
48640
48691
|
warn(code, message, data = {}) {
|
|
48641
|
-
if (this.file)
|
|
48692
|
+
if (this.file) {
|
|
48642
48693
|
data.file = this.file;
|
|
48643
|
-
|
|
48694
|
+
}
|
|
48695
|
+
if (this.cwd) {
|
|
48644
48696
|
data.cwd = this.cwd;
|
|
48697
|
+
}
|
|
48645
48698
|
data.code = message instanceof Error && message.code || code;
|
|
48646
48699
|
data.tarCode = code;
|
|
48647
48700
|
if (!this.strict && data.recoverable !== false) {
|
|
@@ -48650,10 +48703,11 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
|
48650
48703
|
message = message.message;
|
|
48651
48704
|
}
|
|
48652
48705
|
this.emit("warn", data.tarCode, message, data);
|
|
48653
|
-
} else if (message instanceof Error)
|
|
48706
|
+
} else if (message instanceof Error) {
|
|
48654
48707
|
this.emit("error", Object.assign(message, data));
|
|
48655
|
-
else
|
|
48708
|
+
} else {
|
|
48656
48709
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
|
48710
|
+
}
|
|
48657
48711
|
}
|
|
48658
48712
|
};
|
|
48659
48713
|
});
|
|
@@ -48681,7 +48735,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
|
48681
48735
|
let parsed = parse2(path6);
|
|
48682
48736
|
while (isAbsolute(path6) || parsed.root) {
|
|
48683
48737
|
const root = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
48684
|
-
path6 = path6.
|
|
48738
|
+
path6 = path6.slice(root.length);
|
|
48685
48739
|
r += root;
|
|
48686
48740
|
parsed = parse2(path6);
|
|
48687
48741
|
}
|
|
@@ -48692,15 +48746,19 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
|
48692
48746
|
"use strict";
|
|
48693
48747
|
module2.exports = (mode, isDir, portable) => {
|
|
48694
48748
|
mode &= 4095;
|
|
48695
|
-
if (portable)
|
|
48749
|
+
if (portable) {
|
|
48696
48750
|
mode = (mode | 384) & ~18;
|
|
48751
|
+
}
|
|
48697
48752
|
if (isDir) {
|
|
48698
|
-
if (mode & 256)
|
|
48753
|
+
if (mode & 256) {
|
|
48699
48754
|
mode |= 64;
|
|
48700
|
-
|
|
48755
|
+
}
|
|
48756
|
+
if (mode & 32) {
|
|
48701
48757
|
mode |= 8;
|
|
48702
|
-
|
|
48758
|
+
}
|
|
48759
|
+
if (mode & 4) {
|
|
48703
48760
|
mode |= 1;
|
|
48761
|
+
}
|
|
48704
48762
|
}
|
|
48705
48763
|
return mode;
|
|
48706
48764
|
};
|
|
@@ -48715,8 +48773,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48715
48773
|
var normPath = require_normalize_windows_path();
|
|
48716
48774
|
var stripSlash = require_strip_trailing_slashes();
|
|
48717
48775
|
var prefixPath = (path7, prefix) => {
|
|
48718
|
-
if (!prefix)
|
|
48776
|
+
if (!prefix) {
|
|
48719
48777
|
return normPath(path7);
|
|
48778
|
+
}
|
|
48720
48779
|
path7 = normPath(path7).replace(/^\.(\/|$)/, "");
|
|
48721
48780
|
return stripSlash(prefix) + "/" + path7;
|
|
48722
48781
|
};
|
|
@@ -48748,8 +48807,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48748
48807
|
constructor(p, opt) {
|
|
48749
48808
|
opt = opt || {};
|
|
48750
48809
|
super(opt);
|
|
48751
|
-
if (typeof p !== "string")
|
|
48810
|
+
if (typeof p !== "string") {
|
|
48752
48811
|
throw new TypeError("path is required");
|
|
48812
|
+
}
|
|
48753
48813
|
this.path = normPath(p);
|
|
48754
48814
|
this.portable = !!opt.portable;
|
|
48755
48815
|
this.myuid = process.getuid && process.getuid() || 0;
|
|
@@ -48772,8 +48832,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48772
48832
|
this.length = null;
|
|
48773
48833
|
this.pos = null;
|
|
48774
48834
|
this.remain = null;
|
|
48775
|
-
if (typeof opt.onwarn === "function")
|
|
48835
|
+
if (typeof opt.onwarn === "function") {
|
|
48776
48836
|
this.on("warn", opt.onwarn);
|
|
48837
|
+
}
|
|
48777
48838
|
let pathWarn = false;
|
|
48778
48839
|
if (!this.preservePaths) {
|
|
48779
48840
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -48788,36 +48849,41 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48788
48849
|
p = p.replace(/\\/g, "/");
|
|
48789
48850
|
}
|
|
48790
48851
|
this.absolute = normPath(opt.absolute || path6.resolve(this.cwd, p));
|
|
48791
|
-
if (this.path === "")
|
|
48852
|
+
if (this.path === "") {
|
|
48792
48853
|
this.path = "./";
|
|
48854
|
+
}
|
|
48793
48855
|
if (pathWarn) {
|
|
48794
48856
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
48795
48857
|
entry: this,
|
|
48796
48858
|
path: pathWarn + this.path
|
|
48797
48859
|
});
|
|
48798
48860
|
}
|
|
48799
|
-
if (this.statCache.has(this.absolute))
|
|
48861
|
+
if (this.statCache.has(this.absolute)) {
|
|
48800
48862
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
|
48801
|
-
else
|
|
48863
|
+
} else {
|
|
48802
48864
|
this[LSTAT]();
|
|
48865
|
+
}
|
|
48803
48866
|
}
|
|
48804
48867
|
emit(ev, ...data) {
|
|
48805
|
-
if (ev === "error")
|
|
48868
|
+
if (ev === "error") {
|
|
48806
48869
|
this[HAD_ERROR] = true;
|
|
48870
|
+
}
|
|
48807
48871
|
return super.emit(ev, ...data);
|
|
48808
48872
|
}
|
|
48809
48873
|
[LSTAT]() {
|
|
48810
48874
|
fs4.lstat(this.absolute, (er, stat) => {
|
|
48811
|
-
if (er)
|
|
48875
|
+
if (er) {
|
|
48812
48876
|
return this.emit("error", er);
|
|
48877
|
+
}
|
|
48813
48878
|
this[ONLSTAT](stat);
|
|
48814
48879
|
});
|
|
48815
48880
|
}
|
|
48816
48881
|
[ONLSTAT](stat) {
|
|
48817
48882
|
this.statCache.set(this.absolute, stat);
|
|
48818
48883
|
this.stat = stat;
|
|
48819
|
-
if (!stat.isFile())
|
|
48884
|
+
if (!stat.isFile()) {
|
|
48820
48885
|
stat.size = 0;
|
|
48886
|
+
}
|
|
48821
48887
|
this.type = getType2(stat);
|
|
48822
48888
|
this.emit("stat", stat);
|
|
48823
48889
|
this[PROCESS]();
|
|
@@ -48841,8 +48907,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48841
48907
|
return prefixPath(path7, this.prefix);
|
|
48842
48908
|
}
|
|
48843
48909
|
[HEADER]() {
|
|
48844
|
-
if (this.type === "Directory" && this.portable)
|
|
48910
|
+
if (this.type === "Directory" && this.portable) {
|
|
48845
48911
|
this.noMtime = true;
|
|
48912
|
+
}
|
|
48846
48913
|
this.header = new Header({
|
|
48847
48914
|
path: this[PREFIX](this.path),
|
|
48848
48915
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
|
@@ -48875,16 +48942,18 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48875
48942
|
super.write(this.header.block);
|
|
48876
48943
|
}
|
|
48877
48944
|
[DIRECTORY]() {
|
|
48878
|
-
if (this.path.
|
|
48945
|
+
if (this.path.slice(-1) !== "/") {
|
|
48879
48946
|
this.path += "/";
|
|
48947
|
+
}
|
|
48880
48948
|
this.stat.size = 0;
|
|
48881
48949
|
this[HEADER]();
|
|
48882
48950
|
this.end();
|
|
48883
48951
|
}
|
|
48884
48952
|
[SYMLINK]() {
|
|
48885
48953
|
fs4.readlink(this.absolute, (er, linkpath) => {
|
|
48886
|
-
if (er)
|
|
48954
|
+
if (er) {
|
|
48887
48955
|
return this.emit("error", er);
|
|
48956
|
+
}
|
|
48888
48957
|
this[ONREADLINK](linkpath);
|
|
48889
48958
|
});
|
|
48890
48959
|
}
|
|
@@ -48905,27 +48974,31 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48905
48974
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
|
48906
48975
|
if (this.linkCache.has(linkKey)) {
|
|
48907
48976
|
const linkpath = this.linkCache.get(linkKey);
|
|
48908
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
|
48977
|
+
if (linkpath.indexOf(this.cwd) === 0) {
|
|
48909
48978
|
return this[HARDLINK](linkpath);
|
|
48979
|
+
}
|
|
48910
48980
|
}
|
|
48911
48981
|
this.linkCache.set(linkKey, this.absolute);
|
|
48912
48982
|
}
|
|
48913
48983
|
this[HEADER]();
|
|
48914
|
-
if (this.stat.size === 0)
|
|
48984
|
+
if (this.stat.size === 0) {
|
|
48915
48985
|
return this.end();
|
|
48986
|
+
}
|
|
48916
48987
|
this[OPENFILE]();
|
|
48917
48988
|
}
|
|
48918
48989
|
[OPENFILE]() {
|
|
48919
48990
|
fs4.open(this.absolute, "r", (er, fd) => {
|
|
48920
|
-
if (er)
|
|
48991
|
+
if (er) {
|
|
48921
48992
|
return this.emit("error", er);
|
|
48993
|
+
}
|
|
48922
48994
|
this[ONOPENFILE](fd);
|
|
48923
48995
|
});
|
|
48924
48996
|
}
|
|
48925
48997
|
[ONOPENFILE](fd) {
|
|
48926
48998
|
this.fd = fd;
|
|
48927
|
-
if (this[HAD_ERROR])
|
|
48999
|
+
if (this[HAD_ERROR]) {
|
|
48928
49000
|
return this[CLOSE]();
|
|
49001
|
+
}
|
|
48929
49002
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
|
48930
49003
|
this.blockRemain = this.blockLen;
|
|
48931
49004
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
|
@@ -48972,10 +49045,11 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48972
49045
|
}
|
|
48973
49046
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
|
48974
49047
|
const flushed = this.write(writeBuf);
|
|
48975
|
-
if (!flushed)
|
|
49048
|
+
if (!flushed) {
|
|
48976
49049
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
|
48977
|
-
else
|
|
49050
|
+
} else {
|
|
48978
49051
|
this[ONDRAIN]();
|
|
49052
|
+
}
|
|
48979
49053
|
}
|
|
48980
49054
|
[AWAITDRAIN](cb) {
|
|
48981
49055
|
this.once("drain", cb);
|
|
@@ -48994,8 +49068,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
48994
49068
|
}
|
|
48995
49069
|
[ONDRAIN]() {
|
|
48996
49070
|
if (!this.remain) {
|
|
48997
|
-
if (this.blockRemain)
|
|
49071
|
+
if (this.blockRemain) {
|
|
48998
49072
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49073
|
+
}
|
|
48999
49074
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
|
49000
49075
|
}
|
|
49001
49076
|
if (this.offset >= this.length) {
|
|
@@ -49052,8 +49127,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49052
49127
|
this.noMtime = !!opt.noMtime;
|
|
49053
49128
|
this.readEntry = readEntry;
|
|
49054
49129
|
this.type = readEntry.type;
|
|
49055
|
-
if (this.type === "Directory" && this.portable)
|
|
49130
|
+
if (this.type === "Directory" && this.portable) {
|
|
49056
49131
|
this.noMtime = true;
|
|
49132
|
+
}
|
|
49057
49133
|
this.prefix = opt.prefix || null;
|
|
49058
49134
|
this.path = normPath(readEntry.path);
|
|
49059
49135
|
this.mode = this[MODE](readEntry.mode);
|
|
@@ -49066,8 +49142,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49066
49142
|
this.atime = this.portable ? null : readEntry.atime;
|
|
49067
49143
|
this.ctime = this.portable ? null : readEntry.ctime;
|
|
49068
49144
|
this.linkpath = normPath(readEntry.linkpath);
|
|
49069
|
-
if (typeof opt.onwarn === "function")
|
|
49145
|
+
if (typeof opt.onwarn === "function") {
|
|
49070
49146
|
this.on("warn", opt.onwarn);
|
|
49147
|
+
}
|
|
49071
49148
|
let pathWarn = false;
|
|
49072
49149
|
if (!this.preservePaths) {
|
|
49073
49150
|
const [root, stripped] = stripAbsolutePath(this.path);
|
|
@@ -49124,14 +49201,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
49124
49201
|
}
|
|
49125
49202
|
write(data) {
|
|
49126
49203
|
const writeLen = data.length;
|
|
49127
|
-
if (writeLen > this.blockRemain)
|
|
49204
|
+
if (writeLen > this.blockRemain) {
|
|
49128
49205
|
throw new Error("writing more to entry than is appropriate");
|
|
49206
|
+
}
|
|
49129
49207
|
this.blockRemain -= writeLen;
|
|
49130
49208
|
return super.write(data);
|
|
49131
49209
|
}
|
|
49132
49210
|
end() {
|
|
49133
|
-
if (this.blockRemain)
|
|
49211
|
+
if (this.blockRemain) {
|
|
49134
49212
|
super.write(Buffer.alloc(this.blockRemain));
|
|
49213
|
+
}
|
|
49135
49214
|
return super.end();
|
|
49136
49215
|
}
|
|
49137
49216
|
});
|
|
@@ -49577,22 +49656,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49577
49656
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
|
49578
49657
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
|
49579
49658
|
this[WRITEENTRYCLASS] = WriteEntry;
|
|
49580
|
-
if (typeof opt.onwarn === "function")
|
|
49659
|
+
if (typeof opt.onwarn === "function") {
|
|
49581
49660
|
this.on("warn", opt.onwarn);
|
|
49661
|
+
}
|
|
49582
49662
|
this.portable = !!opt.portable;
|
|
49583
49663
|
this.zip = null;
|
|
49584
49664
|
if (opt.gzip) {
|
|
49585
|
-
if (typeof opt.gzip !== "object")
|
|
49665
|
+
if (typeof opt.gzip !== "object") {
|
|
49586
49666
|
opt.gzip = {};
|
|
49587
|
-
|
|
49667
|
+
}
|
|
49668
|
+
if (this.portable) {
|
|
49588
49669
|
opt.gzip.portable = true;
|
|
49670
|
+
}
|
|
49589
49671
|
this.zip = new zlib.Gzip(opt.gzip);
|
|
49590
49672
|
this.zip.on("data", (chunk) => super.write(chunk));
|
|
49591
49673
|
this.zip.on("end", (_) => super.end());
|
|
49592
49674
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
|
49593
49675
|
this.on("resume", (_) => this.zip.resume());
|
|
49594
|
-
} else
|
|
49676
|
+
} else {
|
|
49595
49677
|
this.on("drain", this[ONDRAIN]);
|
|
49678
|
+
}
|
|
49596
49679
|
this.noDirRecurse = !!opt.noDirRecurse;
|
|
49597
49680
|
this.follow = !!opt.follow;
|
|
49598
49681
|
this.noMtime = !!opt.noMtime;
|
|
@@ -49612,26 +49695,29 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49612
49695
|
return this;
|
|
49613
49696
|
}
|
|
49614
49697
|
end(path7) {
|
|
49615
|
-
if (path7)
|
|
49698
|
+
if (path7) {
|
|
49616
49699
|
this.write(path7);
|
|
49700
|
+
}
|
|
49617
49701
|
this[ENDED] = true;
|
|
49618
49702
|
this[PROCESS]();
|
|
49619
49703
|
return this;
|
|
49620
49704
|
}
|
|
49621
49705
|
write(path7) {
|
|
49622
|
-
if (this[ENDED])
|
|
49706
|
+
if (this[ENDED]) {
|
|
49623
49707
|
throw new Error("write after end");
|
|
49624
|
-
|
|
49708
|
+
}
|
|
49709
|
+
if (path7 instanceof ReadEntry) {
|
|
49625
49710
|
this[ADDTARENTRY](path7);
|
|
49626
|
-
else
|
|
49711
|
+
} else {
|
|
49627
49712
|
this[ADDFSENTRY](path7);
|
|
49713
|
+
}
|
|
49628
49714
|
return this.flowing;
|
|
49629
49715
|
}
|
|
49630
49716
|
[ADDTARENTRY](p) {
|
|
49631
49717
|
const absolute = normPath(path6.resolve(this.cwd, p.path));
|
|
49632
|
-
if (!this.filter(p.path, p))
|
|
49718
|
+
if (!this.filter(p.path, p)) {
|
|
49633
49719
|
p.resume();
|
|
49634
|
-
else {
|
|
49720
|
+
} else {
|
|
49635
49721
|
const job = new PackJob(p.path, absolute, false);
|
|
49636
49722
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
|
49637
49723
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
|
@@ -49652,17 +49738,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49652
49738
|
fs4[stat](job.absolute, (er, stat2) => {
|
|
49653
49739
|
job.pending = false;
|
|
49654
49740
|
this[JOBS] -= 1;
|
|
49655
|
-
if (er)
|
|
49741
|
+
if (er) {
|
|
49656
49742
|
this.emit("error", er);
|
|
49657
|
-
else
|
|
49743
|
+
} else {
|
|
49658
49744
|
this[ONSTAT](job, stat2);
|
|
49745
|
+
}
|
|
49659
49746
|
});
|
|
49660
49747
|
}
|
|
49661
49748
|
[ONSTAT](job, stat) {
|
|
49662
49749
|
this.statCache.set(job.absolute, stat);
|
|
49663
49750
|
job.stat = stat;
|
|
49664
|
-
if (!this.filter(job.path, stat))
|
|
49751
|
+
if (!this.filter(job.path, stat)) {
|
|
49665
49752
|
job.ignore = true;
|
|
49753
|
+
}
|
|
49666
49754
|
this[PROCESS]();
|
|
49667
49755
|
}
|
|
49668
49756
|
[READDIR](job) {
|
|
@@ -49671,8 +49759,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49671
49759
|
fs4.readdir(job.absolute, (er, entries) => {
|
|
49672
49760
|
job.pending = false;
|
|
49673
49761
|
this[JOBS] -= 1;
|
|
49674
|
-
if (er)
|
|
49762
|
+
if (er) {
|
|
49675
49763
|
return this.emit("error", er);
|
|
49764
|
+
}
|
|
49676
49765
|
this[ONREADDIR](job, entries);
|
|
49677
49766
|
});
|
|
49678
49767
|
}
|
|
@@ -49682,8 +49771,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49682
49771
|
this[PROCESS]();
|
|
49683
49772
|
}
|
|
49684
49773
|
[PROCESS]() {
|
|
49685
|
-
if (this[PROCESSING])
|
|
49774
|
+
if (this[PROCESSING]) {
|
|
49686
49775
|
return;
|
|
49776
|
+
}
|
|
49687
49777
|
this[PROCESSING] = true;
|
|
49688
49778
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
|
49689
49779
|
this[PROCESSJOB](w.value);
|
|
@@ -49695,9 +49785,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49695
49785
|
}
|
|
49696
49786
|
this[PROCESSING] = false;
|
|
49697
49787
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
|
49698
|
-
if (this.zip)
|
|
49788
|
+
if (this.zip) {
|
|
49699
49789
|
this.zip.end(EOF);
|
|
49700
|
-
else {
|
|
49790
|
+
} else {
|
|
49701
49791
|
super.write(EOF);
|
|
49702
49792
|
super.end();
|
|
49703
49793
|
}
|
|
@@ -49712,38 +49802,46 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49712
49802
|
this[PROCESS]();
|
|
49713
49803
|
}
|
|
49714
49804
|
[PROCESSJOB](job) {
|
|
49715
|
-
if (job.pending)
|
|
49805
|
+
if (job.pending) {
|
|
49716
49806
|
return;
|
|
49807
|
+
}
|
|
49717
49808
|
if (job.entry) {
|
|
49718
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49809
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49719
49810
|
this[PIPE](job);
|
|
49811
|
+
}
|
|
49720
49812
|
return;
|
|
49721
49813
|
}
|
|
49722
49814
|
if (!job.stat) {
|
|
49723
|
-
if (this.statCache.has(job.absolute))
|
|
49815
|
+
if (this.statCache.has(job.absolute)) {
|
|
49724
49816
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
|
49725
|
-
else
|
|
49817
|
+
} else {
|
|
49726
49818
|
this[STAT](job);
|
|
49819
|
+
}
|
|
49727
49820
|
}
|
|
49728
|
-
if (!job.stat)
|
|
49821
|
+
if (!job.stat) {
|
|
49729
49822
|
return;
|
|
49730
|
-
|
|
49823
|
+
}
|
|
49824
|
+
if (job.ignore) {
|
|
49731
49825
|
return;
|
|
49826
|
+
}
|
|
49732
49827
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
49733
|
-
if (this.readdirCache.has(job.absolute))
|
|
49828
|
+
if (this.readdirCache.has(job.absolute)) {
|
|
49734
49829
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
|
49735
|
-
else
|
|
49830
|
+
} else {
|
|
49736
49831
|
this[READDIR](job);
|
|
49737
|
-
|
|
49832
|
+
}
|
|
49833
|
+
if (!job.readdir) {
|
|
49738
49834
|
return;
|
|
49835
|
+
}
|
|
49739
49836
|
}
|
|
49740
49837
|
job.entry = this[ENTRY](job);
|
|
49741
49838
|
if (!job.entry) {
|
|
49742
49839
|
job.ignore = true;
|
|
49743
49840
|
return;
|
|
49744
49841
|
}
|
|
49745
|
-
if (job === this[CURRENT] && !job.piped)
|
|
49842
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
49746
49843
|
this[PIPE](job);
|
|
49844
|
+
}
|
|
49747
49845
|
}
|
|
49748
49846
|
[ENTRYOPT](job) {
|
|
49749
49847
|
return {
|
|
@@ -49771,8 +49869,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49771
49869
|
}
|
|
49772
49870
|
}
|
|
49773
49871
|
[ONDRAIN]() {
|
|
49774
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
|
49872
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
|
49775
49873
|
this[CURRENT].entry.resume();
|
|
49874
|
+
}
|
|
49776
49875
|
}
|
|
49777
49876
|
[PIPE](job) {
|
|
49778
49877
|
job.piped = true;
|
|
@@ -49787,19 +49886,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
49787
49886
|
const zip = this.zip;
|
|
49788
49887
|
if (zip) {
|
|
49789
49888
|
source.on("data", (chunk) => {
|
|
49790
|
-
if (!zip.write(chunk))
|
|
49889
|
+
if (!zip.write(chunk)) {
|
|
49791
49890
|
source.pause();
|
|
49891
|
+
}
|
|
49792
49892
|
});
|
|
49793
49893
|
} else {
|
|
49794
49894
|
source.on("data", (chunk) => {
|
|
49795
|
-
if (!super.write(chunk))
|
|
49895
|
+
if (!super.write(chunk)) {
|
|
49796
49896
|
source.pause();
|
|
49897
|
+
}
|
|
49797
49898
|
});
|
|
49798
49899
|
}
|
|
49799
49900
|
}
|
|
49800
49901
|
pause() {
|
|
49801
|
-
if (this.zip)
|
|
49902
|
+
if (this.zip) {
|
|
49802
49903
|
this.zip.pause();
|
|
49904
|
+
}
|
|
49803
49905
|
return super.pause();
|
|
49804
49906
|
}
|
|
49805
49907
|
});
|
|
@@ -50211,6 +50313,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50211
50313
|
var Entry = require_read_entry();
|
|
50212
50314
|
var Pax = require_pax();
|
|
50213
50315
|
var zlib = require_minizlib();
|
|
50316
|
+
var { nextTick } = __require("process");
|
|
50214
50317
|
var gzipHeader = Buffer.from([31, 139]);
|
|
50215
50318
|
var STATE = Symbol("state");
|
|
50216
50319
|
var WRITEENTRY = Symbol("writeEntry");
|
|
@@ -50241,6 +50344,7 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50241
50344
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
|
50242
50345
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
|
50243
50346
|
var SAW_EOF = Symbol("sawEOF");
|
|
50347
|
+
var CLOSESTREAM = Symbol("closeStream");
|
|
50244
50348
|
var noop = (_) => true;
|
|
50245
50349
|
module2.exports = warner(class Parser extends EE {
|
|
50246
50350
|
constructor(opt) {
|
|
@@ -50253,14 +50357,13 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50253
50357
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
50254
50358
|
}
|
|
50255
50359
|
});
|
|
50256
|
-
if (opt.ondone)
|
|
50360
|
+
if (opt.ondone) {
|
|
50257
50361
|
this.on(DONE, opt.ondone);
|
|
50258
|
-
else {
|
|
50362
|
+
} else {
|
|
50259
50363
|
this.on(DONE, (_) => {
|
|
50260
50364
|
this.emit("prefinish");
|
|
50261
50365
|
this.emit("finish");
|
|
50262
50366
|
this.emit("end");
|
|
50263
|
-
this.emit("close");
|
|
50264
50367
|
});
|
|
50265
50368
|
}
|
|
50266
50369
|
this.strict = !!opt.strict;
|
|
@@ -50281,14 +50384,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50281
50384
|
this[ABORTED] = false;
|
|
50282
50385
|
this[SAW_NULL_BLOCK] = false;
|
|
50283
50386
|
this[SAW_EOF] = false;
|
|
50284
|
-
|
|
50387
|
+
this.on("end", () => this[CLOSESTREAM]());
|
|
50388
|
+
if (typeof opt.onwarn === "function") {
|
|
50285
50389
|
this.on("warn", opt.onwarn);
|
|
50286
|
-
|
|
50390
|
+
}
|
|
50391
|
+
if (typeof opt.onentry === "function") {
|
|
50287
50392
|
this.on("entry", opt.onentry);
|
|
50393
|
+
}
|
|
50288
50394
|
}
|
|
50289
50395
|
[CONSUMEHEADER](chunk, position) {
|
|
50290
|
-
if (this[SAW_VALID_ENTRY] === null)
|
|
50396
|
+
if (this[SAW_VALID_ENTRY] === null) {
|
|
50291
50397
|
this[SAW_VALID_ENTRY] = false;
|
|
50398
|
+
}
|
|
50292
50399
|
let header;
|
|
50293
50400
|
try {
|
|
50294
50401
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
|
@@ -50298,8 +50405,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50298
50405
|
if (header.nullBlock) {
|
|
50299
50406
|
if (this[SAW_NULL_BLOCK]) {
|
|
50300
50407
|
this[SAW_EOF] = true;
|
|
50301
|
-
if (this[STATE] === "begin")
|
|
50408
|
+
if (this[STATE] === "begin") {
|
|
50302
50409
|
this[STATE] = "header";
|
|
50410
|
+
}
|
|
50303
50411
|
this[EMIT]("eof");
|
|
50304
50412
|
} else {
|
|
50305
50413
|
this[SAW_NULL_BLOCK] = true;
|
|
@@ -50307,27 +50415,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50307
50415
|
}
|
|
50308
50416
|
} else {
|
|
50309
50417
|
this[SAW_NULL_BLOCK] = false;
|
|
50310
|
-
if (!header.cksumValid)
|
|
50418
|
+
if (!header.cksumValid) {
|
|
50311
50419
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
|
50312
|
-
else if (!header.path)
|
|
50420
|
+
} else if (!header.path) {
|
|
50313
50421
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
|
50314
|
-
else {
|
|
50422
|
+
} else {
|
|
50315
50423
|
const type = header.type;
|
|
50316
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
|
50424
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath) {
|
|
50317
50425
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
|
50318
|
-
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
|
50426
|
+
} else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath) {
|
|
50319
50427
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
|
50320
|
-
else {
|
|
50428
|
+
} else {
|
|
50321
50429
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
|
50322
50430
|
if (!this[SAW_VALID_ENTRY]) {
|
|
50323
50431
|
if (entry.remain) {
|
|
50324
50432
|
const onend = () => {
|
|
50325
|
-
if (!entry.invalid)
|
|
50433
|
+
if (!entry.invalid) {
|
|
50326
50434
|
this[SAW_VALID_ENTRY] = true;
|
|
50435
|
+
}
|
|
50327
50436
|
};
|
|
50328
50437
|
entry.on("end", onend);
|
|
50329
|
-
} else
|
|
50438
|
+
} else {
|
|
50330
50439
|
this[SAW_VALID_ENTRY] = true;
|
|
50440
|
+
}
|
|
50331
50441
|
}
|
|
50332
50442
|
if (entry.meta) {
|
|
50333
50443
|
if (entry.size > this.maxMetaEntrySize) {
|
|
@@ -50348,31 +50458,35 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50348
50458
|
this[STATE] = entry.remain ? "ignore" : "header";
|
|
50349
50459
|
entry.resume();
|
|
50350
50460
|
} else {
|
|
50351
|
-
if (entry.remain)
|
|
50461
|
+
if (entry.remain) {
|
|
50352
50462
|
this[STATE] = "body";
|
|
50353
|
-
else {
|
|
50463
|
+
} else {
|
|
50354
50464
|
this[STATE] = "header";
|
|
50355
50465
|
entry.end();
|
|
50356
50466
|
}
|
|
50357
50467
|
if (!this[READENTRY]) {
|
|
50358
50468
|
this[QUEUE].push(entry);
|
|
50359
50469
|
this[NEXTENTRY]();
|
|
50360
|
-
} else
|
|
50470
|
+
} else {
|
|
50361
50471
|
this[QUEUE].push(entry);
|
|
50472
|
+
}
|
|
50362
50473
|
}
|
|
50363
50474
|
}
|
|
50364
50475
|
}
|
|
50365
50476
|
}
|
|
50366
50477
|
}
|
|
50367
50478
|
}
|
|
50479
|
+
[CLOSESTREAM]() {
|
|
50480
|
+
nextTick(() => this.emit("close"));
|
|
50481
|
+
}
|
|
50368
50482
|
[PROCESSENTRY](entry) {
|
|
50369
50483
|
let go = true;
|
|
50370
50484
|
if (!entry) {
|
|
50371
50485
|
this[READENTRY] = null;
|
|
50372
50486
|
go = false;
|
|
50373
|
-
} else if (Array.isArray(entry))
|
|
50487
|
+
} else if (Array.isArray(entry)) {
|
|
50374
50488
|
this.emit.apply(this, entry);
|
|
50375
|
-
else {
|
|
50489
|
+
} else {
|
|
50376
50490
|
this[READENTRY] = entry;
|
|
50377
50491
|
this.emit("entry", entry);
|
|
50378
50492
|
if (!entry.emittedEnd) {
|
|
@@ -50389,10 +50503,12 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50389
50503
|
const re = this[READENTRY];
|
|
50390
50504
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
|
50391
50505
|
if (drainNow) {
|
|
50392
|
-
if (!this[WRITING])
|
|
50506
|
+
if (!this[WRITING]) {
|
|
50393
50507
|
this.emit("drain");
|
|
50394
|
-
|
|
50508
|
+
}
|
|
50509
|
+
} else {
|
|
50395
50510
|
re.once("drain", (_) => this.emit("drain"));
|
|
50511
|
+
}
|
|
50396
50512
|
}
|
|
50397
50513
|
}
|
|
50398
50514
|
[CONSUMEBODY](chunk, position) {
|
|
@@ -50410,15 +50526,17 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50410
50526
|
[CONSUMEMETA](chunk, position) {
|
|
50411
50527
|
const entry = this[WRITEENTRY];
|
|
50412
50528
|
const ret = this[CONSUMEBODY](chunk, position);
|
|
50413
|
-
if (!this[WRITEENTRY])
|
|
50529
|
+
if (!this[WRITEENTRY]) {
|
|
50414
50530
|
this[EMITMETA](entry);
|
|
50531
|
+
}
|
|
50415
50532
|
return ret;
|
|
50416
50533
|
}
|
|
50417
50534
|
[EMIT](ev, data, extra) {
|
|
50418
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
|
50535
|
+
if (!this[QUEUE].length && !this[READENTRY]) {
|
|
50419
50536
|
this.emit(ev, data, extra);
|
|
50420
|
-
else
|
|
50537
|
+
} else {
|
|
50421
50538
|
this[QUEUE].push([ev, data, extra]);
|
|
50539
|
+
}
|
|
50422
50540
|
}
|
|
50423
50541
|
[EMITMETA](entry) {
|
|
50424
50542
|
this[EMIT]("meta", this[META]);
|
|
@@ -50449,8 +50567,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50449
50567
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
|
50450
50568
|
}
|
|
50451
50569
|
write(chunk) {
|
|
50452
|
-
if (this[ABORTED])
|
|
50570
|
+
if (this[ABORTED]) {
|
|
50453
50571
|
return;
|
|
50572
|
+
}
|
|
50454
50573
|
if (this[UNZIP] === null && chunk) {
|
|
50455
50574
|
if (this[BUFFER]) {
|
|
50456
50575
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
|
@@ -50461,8 +50580,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50461
50580
|
return true;
|
|
50462
50581
|
}
|
|
50463
50582
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
|
50464
|
-
if (chunk[i] !== gzipHeader[i])
|
|
50583
|
+
if (chunk[i] !== gzipHeader[i]) {
|
|
50465
50584
|
this[UNZIP] = false;
|
|
50585
|
+
}
|
|
50466
50586
|
}
|
|
50467
50587
|
if (this[UNZIP] === null) {
|
|
50468
50588
|
const ended = this[ENDED];
|
|
@@ -50481,19 +50601,22 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50481
50601
|
}
|
|
50482
50602
|
}
|
|
50483
50603
|
this[WRITING] = true;
|
|
50484
|
-
if (this[UNZIP])
|
|
50604
|
+
if (this[UNZIP]) {
|
|
50485
50605
|
this[UNZIP].write(chunk);
|
|
50486
|
-
else
|
|
50606
|
+
} else {
|
|
50487
50607
|
this[CONSUMECHUNK](chunk);
|
|
50608
|
+
}
|
|
50488
50609
|
this[WRITING] = false;
|
|
50489
50610
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
|
50490
|
-
if (!ret && !this[QUEUE].length)
|
|
50611
|
+
if (!ret && !this[QUEUE].length) {
|
|
50491
50612
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
|
50613
|
+
}
|
|
50492
50614
|
return ret;
|
|
50493
50615
|
}
|
|
50494
50616
|
[BUFFERCONCAT](c) {
|
|
50495
|
-
if (c && !this[ABORTED])
|
|
50617
|
+
if (c && !this[ABORTED]) {
|
|
50496
50618
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
|
50619
|
+
}
|
|
50497
50620
|
}
|
|
50498
50621
|
[MAYBEEND]() {
|
|
50499
50622
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
|
@@ -50502,27 +50625,29 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50502
50625
|
if (entry && entry.blockRemain) {
|
|
50503
50626
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
|
50504
50627
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
|
50505
|
-
if (this[BUFFER])
|
|
50628
|
+
if (this[BUFFER]) {
|
|
50506
50629
|
entry.write(this[BUFFER]);
|
|
50630
|
+
}
|
|
50507
50631
|
entry.end();
|
|
50508
50632
|
}
|
|
50509
50633
|
this[EMIT](DONE);
|
|
50510
50634
|
}
|
|
50511
50635
|
}
|
|
50512
50636
|
[CONSUMECHUNK](chunk) {
|
|
50513
|
-
if (this[CONSUMING])
|
|
50637
|
+
if (this[CONSUMING]) {
|
|
50514
50638
|
this[BUFFERCONCAT](chunk);
|
|
50515
|
-
else if (!chunk && !this[BUFFER])
|
|
50639
|
+
} else if (!chunk && !this[BUFFER]) {
|
|
50516
50640
|
this[MAYBEEND]();
|
|
50517
|
-
else {
|
|
50641
|
+
} else {
|
|
50518
50642
|
this[CONSUMING] = true;
|
|
50519
50643
|
if (this[BUFFER]) {
|
|
50520
50644
|
this[BUFFERCONCAT](chunk);
|
|
50521
50645
|
const c = this[BUFFER];
|
|
50522
50646
|
this[BUFFER] = null;
|
|
50523
50647
|
this[CONSUMECHUNKSUB](c);
|
|
50524
|
-
} else
|
|
50648
|
+
} else {
|
|
50525
50649
|
this[CONSUMECHUNKSUB](chunk);
|
|
50650
|
+
}
|
|
50526
50651
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
|
50527
50652
|
const c = this[BUFFER];
|
|
50528
50653
|
this[BUFFER] = null;
|
|
@@ -50530,8 +50655,9 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50530
50655
|
}
|
|
50531
50656
|
this[CONSUMING] = false;
|
|
50532
50657
|
}
|
|
50533
|
-
if (!this[BUFFER] || this[ENDED])
|
|
50658
|
+
if (!this[BUFFER] || this[ENDED]) {
|
|
50534
50659
|
this[MAYBEEND]();
|
|
50660
|
+
}
|
|
50535
50661
|
}
|
|
50536
50662
|
[CONSUMECHUNKSUB](chunk) {
|
|
50537
50663
|
let position = 0;
|
|
@@ -50555,17 +50681,18 @@ var require_parse2 = __commonJSMin((exports, module2) => {
|
|
|
50555
50681
|
}
|
|
50556
50682
|
}
|
|
50557
50683
|
if (position < length) {
|
|
50558
|
-
if (this[BUFFER])
|
|
50684
|
+
if (this[BUFFER]) {
|
|
50559
50685
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
|
50560
|
-
else
|
|
50686
|
+
} else {
|
|
50561
50687
|
this[BUFFER] = chunk.slice(position);
|
|
50688
|
+
}
|
|
50562
50689
|
}
|
|
50563
50690
|
}
|
|
50564
50691
|
end(chunk) {
|
|
50565
50692
|
if (!this[ABORTED]) {
|
|
50566
|
-
if (this[UNZIP])
|
|
50693
|
+
if (this[UNZIP]) {
|
|
50567
50694
|
this[UNZIP].end(chunk);
|
|
50568
|
-
else {
|
|
50695
|
+
} else {
|
|
50569
50696
|
this[ENDED] = true;
|
|
50570
50697
|
this.write(chunk);
|
|
50571
50698
|
}
|
|
@@ -50582,25 +50709,32 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50582
50709
|
var path6 = __require("path");
|
|
50583
50710
|
var stripSlash = require_strip_trailing_slashes();
|
|
50584
50711
|
module2.exports = (opt_, files, cb) => {
|
|
50585
|
-
if (typeof opt_ === "function")
|
|
50712
|
+
if (typeof opt_ === "function") {
|
|
50586
50713
|
cb = opt_, files = null, opt_ = {};
|
|
50587
|
-
else if (Array.isArray(opt_))
|
|
50714
|
+
} else if (Array.isArray(opt_)) {
|
|
50588
50715
|
files = opt_, opt_ = {};
|
|
50589
|
-
|
|
50716
|
+
}
|
|
50717
|
+
if (typeof files === "function") {
|
|
50590
50718
|
cb = files, files = null;
|
|
50591
|
-
|
|
50719
|
+
}
|
|
50720
|
+
if (!files) {
|
|
50592
50721
|
files = [];
|
|
50593
|
-
else
|
|
50722
|
+
} else {
|
|
50594
50723
|
files = Array.from(files);
|
|
50724
|
+
}
|
|
50595
50725
|
const opt = hlo(opt_);
|
|
50596
|
-
if (opt.sync && typeof cb === "function")
|
|
50726
|
+
if (opt.sync && typeof cb === "function") {
|
|
50597
50727
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50598
|
-
|
|
50728
|
+
}
|
|
50729
|
+
if (!opt.file && typeof cb === "function") {
|
|
50599
50730
|
throw new TypeError("callback only supported with file option");
|
|
50600
|
-
|
|
50731
|
+
}
|
|
50732
|
+
if (files.length) {
|
|
50601
50733
|
filesFilter(opt, files);
|
|
50602
|
-
|
|
50734
|
+
}
|
|
50735
|
+
if (!opt.noResume) {
|
|
50603
50736
|
onentryFunction(opt);
|
|
50737
|
+
}
|
|
50604
50738
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
|
50605
50739
|
};
|
|
50606
50740
|
var onentryFunction = (opt) => {
|
|
@@ -50629,9 +50763,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50629
50763
|
try {
|
|
50630
50764
|
const stat = fs4.statSync(file);
|
|
50631
50765
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
50632
|
-
if (stat.size < readSize)
|
|
50766
|
+
if (stat.size < readSize) {
|
|
50633
50767
|
p.end(fs4.readFileSync(file));
|
|
50634
|
-
else {
|
|
50768
|
+
} else {
|
|
50635
50769
|
let pos = 0;
|
|
50636
50770
|
const buf = Buffer.allocUnsafe(readSize);
|
|
50637
50771
|
fd = fs4.openSync(file, "r");
|
|
@@ -50660,9 +50794,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
50660
50794
|
parse2.on("error", reject);
|
|
50661
50795
|
parse2.on("end", resolve);
|
|
50662
50796
|
fs4.stat(file, (er, stat) => {
|
|
50663
|
-
if (er)
|
|
50797
|
+
if (er) {
|
|
50664
50798
|
reject(er);
|
|
50665
|
-
else {
|
|
50799
|
+
} else {
|
|
50666
50800
|
const stream = new fsm.ReadStream(file, {
|
|
50667
50801
|
readSize,
|
|
50668
50802
|
size: stat.size
|
|
@@ -50684,18 +50818,23 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50684
50818
|
var t = require_list();
|
|
50685
50819
|
var path6 = __require("path");
|
|
50686
50820
|
module2.exports = (opt_, files, cb) => {
|
|
50687
|
-
if (typeof files === "function")
|
|
50821
|
+
if (typeof files === "function") {
|
|
50688
50822
|
cb = files;
|
|
50689
|
-
|
|
50823
|
+
}
|
|
50824
|
+
if (Array.isArray(opt_)) {
|
|
50690
50825
|
files = opt_, opt_ = {};
|
|
50691
|
-
|
|
50826
|
+
}
|
|
50827
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50692
50828
|
throw new TypeError("no files or directories specified");
|
|
50829
|
+
}
|
|
50693
50830
|
files = Array.from(files);
|
|
50694
50831
|
const opt = hlo(opt_);
|
|
50695
|
-
if (opt.sync && typeof cb === "function")
|
|
50832
|
+
if (opt.sync && typeof cb === "function") {
|
|
50696
50833
|
throw new TypeError("callback not supported for sync tar functions");
|
|
50697
|
-
|
|
50834
|
+
}
|
|
50835
|
+
if (!opt.file && typeof cb === "function") {
|
|
50698
50836
|
throw new TypeError("callback only supported with file option");
|
|
50837
|
+
}
|
|
50699
50838
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
|
50700
50839
|
};
|
|
50701
50840
|
var createFileSync = (opt, files) => {
|
|
@@ -50724,13 +50863,14 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50724
50863
|
files.forEach((file) => {
|
|
50725
50864
|
if (file.charAt(0) === "@") {
|
|
50726
50865
|
t({
|
|
50727
|
-
file: path6.resolve(p.cwd, file.
|
|
50866
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50728
50867
|
sync: true,
|
|
50729
50868
|
noResume: true,
|
|
50730
50869
|
onentry: (entry) => p.add(entry)
|
|
50731
50870
|
});
|
|
50732
|
-
} else
|
|
50871
|
+
} else {
|
|
50733
50872
|
p.add(file);
|
|
50873
|
+
}
|
|
50734
50874
|
});
|
|
50735
50875
|
p.end();
|
|
50736
50876
|
};
|
|
@@ -50739,12 +50879,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
50739
50879
|
const file = files.shift();
|
|
50740
50880
|
if (file.charAt(0) === "@") {
|
|
50741
50881
|
return t({
|
|
50742
|
-
file: path6.resolve(p.cwd, file.
|
|
50882
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50743
50883
|
noResume: true,
|
|
50744
50884
|
onentry: (entry) => p.add(entry)
|
|
50745
50885
|
}).then((_) => addFilesAsync(p, files));
|
|
50746
|
-
} else
|
|
50886
|
+
} else {
|
|
50747
50887
|
p.add(file);
|
|
50888
|
+
}
|
|
50748
50889
|
}
|
|
50749
50890
|
p.end();
|
|
50750
50891
|
};
|
|
@@ -50770,12 +50911,15 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50770
50911
|
var Header = require_header();
|
|
50771
50912
|
module2.exports = (opt_, files, cb) => {
|
|
50772
50913
|
const opt = hlo(opt_);
|
|
50773
|
-
if (!opt.file)
|
|
50914
|
+
if (!opt.file) {
|
|
50774
50915
|
throw new TypeError("file is required");
|
|
50775
|
-
|
|
50916
|
+
}
|
|
50917
|
+
if (opt.gzip) {
|
|
50776
50918
|
throw new TypeError("cannot append to compressed archives");
|
|
50777
|
-
|
|
50919
|
+
}
|
|
50920
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50778
50921
|
throw new TypeError("no files or directories specified");
|
|
50922
|
+
}
|
|
50779
50923
|
files = Array.from(files);
|
|
50780
50924
|
return opt.sync ? replaceSync(opt, files) : replace2(opt, files, cb);
|
|
50781
50925
|
};
|
|
@@ -50788,10 +50932,11 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50788
50932
|
try {
|
|
50789
50933
|
fd = fs4.openSync(opt.file, "r+");
|
|
50790
50934
|
} catch (er) {
|
|
50791
|
-
if (er.code === "ENOENT")
|
|
50935
|
+
if (er.code === "ENOENT") {
|
|
50792
50936
|
fd = fs4.openSync(opt.file, "w+");
|
|
50793
|
-
else
|
|
50937
|
+
} else {
|
|
50794
50938
|
throw er;
|
|
50939
|
+
}
|
|
50795
50940
|
}
|
|
50796
50941
|
const st = fs4.fstatSync(fd);
|
|
50797
50942
|
const headBuf = Buffer.alloc(512);
|
|
@@ -50799,20 +50944,25 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50799
50944
|
for (position = 0; position < st.size; position += 512) {
|
|
50800
50945
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
50801
50946
|
bytes = fs4.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
50802
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
50947
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50803
50948
|
throw new Error("cannot append to compressed archives");
|
|
50804
|
-
|
|
50949
|
+
}
|
|
50950
|
+
if (!bytes) {
|
|
50805
50951
|
break POSITION;
|
|
50952
|
+
}
|
|
50806
50953
|
}
|
|
50807
50954
|
const h = new Header(headBuf);
|
|
50808
|
-
if (!h.cksumValid)
|
|
50955
|
+
if (!h.cksumValid) {
|
|
50809
50956
|
break;
|
|
50957
|
+
}
|
|
50810
50958
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50811
|
-
if (position + entryBlockSize + 512 > st.size)
|
|
50959
|
+
if (position + entryBlockSize + 512 > st.size) {
|
|
50812
50960
|
break;
|
|
50961
|
+
}
|
|
50813
50962
|
position += entryBlockSize;
|
|
50814
|
-
if (opt.mtimeCache)
|
|
50963
|
+
if (opt.mtimeCache) {
|
|
50815
50964
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
50965
|
+
}
|
|
50816
50966
|
}
|
|
50817
50967
|
threw = false;
|
|
50818
50968
|
streamSync(opt, p, position, fd, files);
|
|
@@ -50838,38 +50988,47 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50838
50988
|
const p = new Pack(opt);
|
|
50839
50989
|
const getPos = (fd, size, cb_) => {
|
|
50840
50990
|
const cb2 = (er, pos) => {
|
|
50841
|
-
if (er)
|
|
50991
|
+
if (er) {
|
|
50842
50992
|
fs4.close(fd, (_) => cb_(er));
|
|
50843
|
-
else
|
|
50993
|
+
} else {
|
|
50844
50994
|
cb_(null, pos);
|
|
50995
|
+
}
|
|
50845
50996
|
};
|
|
50846
50997
|
let position = 0;
|
|
50847
|
-
if (size === 0)
|
|
50998
|
+
if (size === 0) {
|
|
50848
50999
|
return cb2(null, 0);
|
|
51000
|
+
}
|
|
50849
51001
|
let bufPos = 0;
|
|
50850
51002
|
const headBuf = Buffer.alloc(512);
|
|
50851
51003
|
const onread = (er, bytes) => {
|
|
50852
|
-
if (er)
|
|
51004
|
+
if (er) {
|
|
50853
51005
|
return cb2(er);
|
|
51006
|
+
}
|
|
50854
51007
|
bufPos += bytes;
|
|
50855
51008
|
if (bufPos < 512 && bytes) {
|
|
50856
51009
|
return fs4.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
50857
51010
|
}
|
|
50858
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
51011
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
|
50859
51012
|
return cb2(new Error("cannot append to compressed archives"));
|
|
50860
|
-
|
|
51013
|
+
}
|
|
51014
|
+
if (bufPos < 512) {
|
|
50861
51015
|
return cb2(null, position);
|
|
51016
|
+
}
|
|
50862
51017
|
const h = new Header(headBuf);
|
|
50863
|
-
if (!h.cksumValid)
|
|
51018
|
+
if (!h.cksumValid) {
|
|
50864
51019
|
return cb2(null, position);
|
|
51020
|
+
}
|
|
50865
51021
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
|
50866
|
-
if (position + entryBlockSize + 512 > size)
|
|
51022
|
+
if (position + entryBlockSize + 512 > size) {
|
|
50867
51023
|
return cb2(null, position);
|
|
51024
|
+
}
|
|
50868
51025
|
position += entryBlockSize + 512;
|
|
50869
|
-
if (position >= size)
|
|
51026
|
+
if (position >= size) {
|
|
50870
51027
|
return cb2(null, position);
|
|
50871
|
-
|
|
51028
|
+
}
|
|
51029
|
+
if (opt.mtimeCache) {
|
|
50872
51030
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
51031
|
+
}
|
|
50873
51032
|
bufPos = 0;
|
|
50874
51033
|
fs4.read(fd, headBuf, 0, 512, position, onread);
|
|
50875
51034
|
};
|
|
@@ -50883,14 +51042,17 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50883
51042
|
flag = "w+";
|
|
50884
51043
|
return fs4.open(opt.file, flag, onopen);
|
|
50885
51044
|
}
|
|
50886
|
-
if (er)
|
|
51045
|
+
if (er) {
|
|
50887
51046
|
return reject(er);
|
|
51047
|
+
}
|
|
50888
51048
|
fs4.fstat(fd, (er2, st) => {
|
|
50889
|
-
if (er2)
|
|
51049
|
+
if (er2) {
|
|
50890
51050
|
return fs4.close(fd, () => reject(er2));
|
|
51051
|
+
}
|
|
50891
51052
|
getPos(fd, st.size, (er3, position) => {
|
|
50892
|
-
if (er3)
|
|
51053
|
+
if (er3) {
|
|
50893
51054
|
return reject(er3);
|
|
51055
|
+
}
|
|
50894
51056
|
const stream = new fsm.WriteStream(opt.file, {
|
|
50895
51057
|
fd,
|
|
50896
51058
|
start: position
|
|
@@ -50910,13 +51072,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50910
51072
|
files.forEach((file) => {
|
|
50911
51073
|
if (file.charAt(0) === "@") {
|
|
50912
51074
|
t({
|
|
50913
|
-
file: path6.resolve(p.cwd, file.
|
|
51075
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50914
51076
|
sync: true,
|
|
50915
51077
|
noResume: true,
|
|
50916
51078
|
onentry: (entry) => p.add(entry)
|
|
50917
51079
|
});
|
|
50918
|
-
} else
|
|
51080
|
+
} else {
|
|
50919
51081
|
p.add(file);
|
|
51082
|
+
}
|
|
50920
51083
|
});
|
|
50921
51084
|
p.end();
|
|
50922
51085
|
};
|
|
@@ -50925,12 +51088,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
50925
51088
|
const file = files.shift();
|
|
50926
51089
|
if (file.charAt(0) === "@") {
|
|
50927
51090
|
return t({
|
|
50928
|
-
file: path6.resolve(p.cwd, file.
|
|
51091
|
+
file: path6.resolve(p.cwd, file.slice(1)),
|
|
50929
51092
|
noResume: true,
|
|
50930
51093
|
onentry: (entry) => p.add(entry)
|
|
50931
51094
|
}).then((_) => addFilesAsync(p, files));
|
|
50932
|
-
} else
|
|
51095
|
+
} else {
|
|
50933
51096
|
p.add(file);
|
|
51097
|
+
}
|
|
50934
51098
|
}
|
|
50935
51099
|
p.end();
|
|
50936
51100
|
};
|
|
@@ -50941,20 +51105,24 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
|
50941
51105
|
var r = require_replace();
|
|
50942
51106
|
module2.exports = (opt_, files, cb) => {
|
|
50943
51107
|
const opt = hlo(opt_);
|
|
50944
|
-
if (!opt.file)
|
|
51108
|
+
if (!opt.file) {
|
|
50945
51109
|
throw new TypeError("file is required");
|
|
50946
|
-
|
|
51110
|
+
}
|
|
51111
|
+
if (opt.gzip) {
|
|
50947
51112
|
throw new TypeError("cannot append to compressed archives");
|
|
50948
|
-
|
|
51113
|
+
}
|
|
51114
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
|
50949
51115
|
throw new TypeError("no files or directories specified");
|
|
51116
|
+
}
|
|
50950
51117
|
files = Array.from(files);
|
|
50951
51118
|
mtimeFilter(opt);
|
|
50952
51119
|
return r(opt, files, cb);
|
|
50953
51120
|
};
|
|
50954
51121
|
var mtimeFilter = (opt) => {
|
|
50955
51122
|
const filter = opt.filter;
|
|
50956
|
-
if (!opt.mtimeCache)
|
|
51123
|
+
if (!opt.mtimeCache) {
|
|
50957
51124
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
51125
|
+
}
|
|
50958
51126
|
opt.filter = filter ? (path6, stat) => filter(path6, stat) && !(opt.mtimeCache.get(path6) > stat.mtime) : (path6, stat) => !(opt.mtimeCache.get(path6) > stat.mtime);
|
|
50959
51127
|
};
|
|
50960
51128
|
});
|
|
@@ -51306,8 +51474,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51306
51474
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
51307
51475
|
var checkCwd = (dir, cb) => {
|
|
51308
51476
|
fs4.stat(dir, (er, st) => {
|
|
51309
|
-
if (er || !st.isDirectory())
|
|
51477
|
+
if (er || !st.isDirectory()) {
|
|
51310
51478
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
51479
|
+
}
|
|
51311
51480
|
cb(er);
|
|
51312
51481
|
});
|
|
51313
51482
|
};
|
|
@@ -51324,35 +51493,41 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51324
51493
|
const cache = opt.cache;
|
|
51325
51494
|
const cwd = normPath(opt.cwd);
|
|
51326
51495
|
const done = (er, created) => {
|
|
51327
|
-
if (er)
|
|
51496
|
+
if (er) {
|
|
51328
51497
|
cb(er);
|
|
51329
|
-
else {
|
|
51498
|
+
} else {
|
|
51330
51499
|
cSet(cache, dir, true);
|
|
51331
|
-
if (created && doChown)
|
|
51500
|
+
if (created && doChown) {
|
|
51332
51501
|
chownr(created, uid2, gid, (er2) => done(er2));
|
|
51333
|
-
else if (needChmod)
|
|
51502
|
+
} else if (needChmod) {
|
|
51334
51503
|
fs4.chmod(dir, mode, cb);
|
|
51335
|
-
else
|
|
51504
|
+
} else {
|
|
51336
51505
|
cb();
|
|
51506
|
+
}
|
|
51337
51507
|
}
|
|
51338
51508
|
};
|
|
51339
|
-
if (cache && cGet(cache, dir) === true)
|
|
51509
|
+
if (cache && cGet(cache, dir) === true) {
|
|
51340
51510
|
return done();
|
|
51341
|
-
|
|
51511
|
+
}
|
|
51512
|
+
if (dir === cwd) {
|
|
51342
51513
|
return checkCwd(dir, done);
|
|
51343
|
-
|
|
51514
|
+
}
|
|
51515
|
+
if (preserve) {
|
|
51344
51516
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
51517
|
+
}
|
|
51345
51518
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51346
51519
|
const parts = sub.split("/");
|
|
51347
51520
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
51348
51521
|
};
|
|
51349
51522
|
var mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
51350
|
-
if (!parts.length)
|
|
51523
|
+
if (!parts.length) {
|
|
51351
51524
|
return cb(null, created);
|
|
51525
|
+
}
|
|
51352
51526
|
const p = parts.shift();
|
|
51353
51527
|
const part = normPath(path6.resolve(base + "/" + p));
|
|
51354
|
-
if (cGet(cache, part))
|
|
51528
|
+
if (cGet(cache, part)) {
|
|
51355
51529
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
51530
|
+
}
|
|
51356
51531
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
51357
51532
|
};
|
|
51358
51533
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
@@ -51361,18 +51536,20 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51361
51536
|
if (statEr) {
|
|
51362
51537
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
51363
51538
|
cb(statEr);
|
|
51364
|
-
} else if (st.isDirectory())
|
|
51539
|
+
} else if (st.isDirectory()) {
|
|
51365
51540
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
51366
|
-
else if (unlink) {
|
|
51541
|
+
} else if (unlink) {
|
|
51367
51542
|
fs4.unlink(part, (er2) => {
|
|
51368
|
-
if (er2)
|
|
51543
|
+
if (er2) {
|
|
51369
51544
|
return cb(er2);
|
|
51545
|
+
}
|
|
51370
51546
|
fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
51371
51547
|
});
|
|
51372
|
-
} else if (st.isSymbolicLink())
|
|
51548
|
+
} else if (st.isSymbolicLink()) {
|
|
51373
51549
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
51374
|
-
else
|
|
51550
|
+
} else {
|
|
51375
51551
|
cb(er);
|
|
51552
|
+
}
|
|
51376
51553
|
});
|
|
51377
51554
|
} else {
|
|
51378
51555
|
created = created || part;
|
|
@@ -51387,8 +51564,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51387
51564
|
} catch (er) {
|
|
51388
51565
|
code = er.code;
|
|
51389
51566
|
} finally {
|
|
51390
|
-
if (!ok)
|
|
51567
|
+
if (!ok) {
|
|
51391
51568
|
throw new CwdError(dir, code);
|
|
51569
|
+
}
|
|
51392
51570
|
}
|
|
51393
51571
|
};
|
|
51394
51572
|
module2.exports.sync = (dir, opt) => {
|
|
@@ -51405,26 +51583,31 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51405
51583
|
const cwd = normPath(opt.cwd);
|
|
51406
51584
|
const done = (created2) => {
|
|
51407
51585
|
cSet(cache, dir, true);
|
|
51408
|
-
if (created2 && doChown)
|
|
51586
|
+
if (created2 && doChown) {
|
|
51409
51587
|
chownr.sync(created2, uid2, gid);
|
|
51410
|
-
|
|
51588
|
+
}
|
|
51589
|
+
if (needChmod) {
|
|
51411
51590
|
fs4.chmodSync(dir, mode);
|
|
51591
|
+
}
|
|
51412
51592
|
};
|
|
51413
|
-
if (cache && cGet(cache, dir) === true)
|
|
51593
|
+
if (cache && cGet(cache, dir) === true) {
|
|
51414
51594
|
return done();
|
|
51595
|
+
}
|
|
51415
51596
|
if (dir === cwd) {
|
|
51416
51597
|
checkCwdSync(cwd);
|
|
51417
51598
|
return done();
|
|
51418
51599
|
}
|
|
51419
|
-
if (preserve)
|
|
51600
|
+
if (preserve) {
|
|
51420
51601
|
return done(mkdirp.sync(dir, mode));
|
|
51602
|
+
}
|
|
51421
51603
|
const sub = normPath(path6.relative(cwd, dir));
|
|
51422
51604
|
const parts = sub.split("/");
|
|
51423
51605
|
let created = null;
|
|
51424
51606
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
51425
51607
|
part = normPath(path6.resolve(part));
|
|
51426
|
-
if (cGet(cache, part))
|
|
51608
|
+
if (cGet(cache, part)) {
|
|
51427
51609
|
continue;
|
|
51610
|
+
}
|
|
51428
51611
|
try {
|
|
51429
51612
|
fs4.mkdirSync(part, mode);
|
|
51430
51613
|
created = created || part;
|
|
@@ -51440,8 +51623,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
51440
51623
|
created = created || part;
|
|
51441
51624
|
cSet(cache, part, true);
|
|
51442
51625
|
continue;
|
|
51443
|
-
} else if (st.isSymbolicLink())
|
|
51626
|
+
} else if (st.isSymbolicLink()) {
|
|
51444
51627
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
|
51628
|
+
}
|
|
51445
51629
|
}
|
|
51446
51630
|
}
|
|
51447
51631
|
return done(created);
|
|
@@ -51451,8 +51635,9 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
|
51451
51635
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
|
51452
51636
|
var { hasOwnProperty: hasOwnProperty6 } = Object.prototype;
|
|
51453
51637
|
module2.exports = (s) => {
|
|
51454
|
-
if (!hasOwnProperty6.call(normalizeCache, s))
|
|
51638
|
+
if (!hasOwnProperty6.call(normalizeCache, s)) {
|
|
51455
51639
|
normalizeCache[s] = s.normalize("NFKD");
|
|
51640
|
+
}
|
|
51456
51641
|
return normalizeCache[s];
|
|
51457
51642
|
};
|
|
51458
51643
|
});
|
|
@@ -51468,8 +51653,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51468
51653
|
const reservations = /* @__PURE__ */ new Map();
|
|
51469
51654
|
const getDirs = (path6) => {
|
|
51470
51655
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
51471
|
-
if (set.length)
|
|
51656
|
+
if (set.length) {
|
|
51472
51657
|
path7 = join(set[set.length - 1], path7);
|
|
51658
|
+
}
|
|
51473
51659
|
set.push(path7 || "/");
|
|
51474
51660
|
return set;
|
|
51475
51661
|
}, []);
|
|
@@ -51478,8 +51664,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51478
51664
|
const running = /* @__PURE__ */ new Set();
|
|
51479
51665
|
const getQueues = (fn) => {
|
|
51480
51666
|
const res = reservations.get(fn);
|
|
51481
|
-
if (!res)
|
|
51667
|
+
if (!res) {
|
|
51482
51668
|
throw new Error("function does not have any path reservations");
|
|
51669
|
+
}
|
|
51483
51670
|
return {
|
|
51484
51671
|
paths: res.paths.map((path6) => queues.get(path6)),
|
|
51485
51672
|
dirs: [...res.dirs].map((path6) => queues.get(path6))
|
|
@@ -51490,40 +51677,44 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51490
51677
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
|
51491
51678
|
};
|
|
51492
51679
|
const run = (fn) => {
|
|
51493
|
-
if (running.has(fn) || !check(fn))
|
|
51680
|
+
if (running.has(fn) || !check(fn)) {
|
|
51494
51681
|
return false;
|
|
51682
|
+
}
|
|
51495
51683
|
running.add(fn);
|
|
51496
51684
|
fn(() => clear(fn));
|
|
51497
51685
|
return true;
|
|
51498
51686
|
};
|
|
51499
51687
|
const clear = (fn) => {
|
|
51500
|
-
if (!running.has(fn))
|
|
51688
|
+
if (!running.has(fn)) {
|
|
51501
51689
|
return false;
|
|
51690
|
+
}
|
|
51502
51691
|
const { paths, dirs } = reservations.get(fn);
|
|
51503
51692
|
const next = /* @__PURE__ */ new Set();
|
|
51504
51693
|
paths.forEach((path6) => {
|
|
51505
51694
|
const q = queues.get(path6);
|
|
51506
51695
|
assert.equal(q[0], fn);
|
|
51507
|
-
if (q.length === 1)
|
|
51696
|
+
if (q.length === 1) {
|
|
51508
51697
|
queues.delete(path6);
|
|
51509
|
-
else {
|
|
51698
|
+
} else {
|
|
51510
51699
|
q.shift();
|
|
51511
|
-
if (typeof q[0] === "function")
|
|
51700
|
+
if (typeof q[0] === "function") {
|
|
51512
51701
|
next.add(q[0]);
|
|
51513
|
-
else
|
|
51702
|
+
} else {
|
|
51514
51703
|
q[0].forEach((fn2) => next.add(fn2));
|
|
51704
|
+
}
|
|
51515
51705
|
}
|
|
51516
51706
|
});
|
|
51517
51707
|
dirs.forEach((dir) => {
|
|
51518
51708
|
const q = queues.get(dir);
|
|
51519
51709
|
assert(q[0] instanceof Set);
|
|
51520
|
-
if (q[0].size === 1 && q.length === 1)
|
|
51710
|
+
if (q[0].size === 1 && q.length === 1) {
|
|
51521
51711
|
queues.delete(dir);
|
|
51522
|
-
else if (q[0].size === 1) {
|
|
51712
|
+
} else if (q[0].size === 1) {
|
|
51523
51713
|
q.shift();
|
|
51524
51714
|
next.add(q[0]);
|
|
51525
|
-
} else
|
|
51715
|
+
} else {
|
|
51526
51716
|
q[0].delete(fn);
|
|
51717
|
+
}
|
|
51527
51718
|
});
|
|
51528
51719
|
running.delete(fn);
|
|
51529
51720
|
next.forEach((fn2) => run(fn2));
|
|
@@ -51537,19 +51728,21 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
51537
51728
|
reservations.set(fn, { dirs, paths });
|
|
51538
51729
|
paths.forEach((path6) => {
|
|
51539
51730
|
const q = queues.get(path6);
|
|
51540
|
-
if (!q)
|
|
51731
|
+
if (!q) {
|
|
51541
51732
|
queues.set(path6, [fn]);
|
|
51542
|
-
else
|
|
51733
|
+
} else {
|
|
51543
51734
|
q.push(fn);
|
|
51735
|
+
}
|
|
51544
51736
|
});
|
|
51545
51737
|
dirs.forEach((dir) => {
|
|
51546
51738
|
const q = queues.get(dir);
|
|
51547
|
-
if (!q)
|
|
51739
|
+
if (!q) {
|
|
51548
51740
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
|
51549
|
-
else if (q[q.length - 1] instanceof Set)
|
|
51741
|
+
} else if (q[q.length - 1] instanceof Set) {
|
|
51550
51742
|
q[q.length - 1].add(fn);
|
|
51551
|
-
else
|
|
51743
|
+
} else {
|
|
51552
51744
|
q.push(/* @__PURE__ */ new Set([fn]));
|
|
51745
|
+
}
|
|
51553
51746
|
});
|
|
51554
51747
|
return run(fn);
|
|
51555
51748
|
};
|
|
@@ -51610,18 +51803,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51610
51803
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
51611
51804
|
var isWindows = platform === "win32";
|
|
51612
51805
|
var unlinkFile = (path7, cb) => {
|
|
51613
|
-
if (!isWindows)
|
|
51806
|
+
if (!isWindows) {
|
|
51614
51807
|
return fs4.unlink(path7, cb);
|
|
51808
|
+
}
|
|
51615
51809
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51616
51810
|
fs4.rename(path7, name5, (er) => {
|
|
51617
|
-
if (er)
|
|
51811
|
+
if (er) {
|
|
51618
51812
|
return cb(er);
|
|
51813
|
+
}
|
|
51619
51814
|
fs4.unlink(name5, cb);
|
|
51620
51815
|
});
|
|
51621
51816
|
};
|
|
51622
51817
|
var unlinkFileSync = (path7) => {
|
|
51623
|
-
if (!isWindows)
|
|
51818
|
+
if (!isWindows) {
|
|
51624
51819
|
return fs4.unlinkSync(path7);
|
|
51820
|
+
}
|
|
51625
51821
|
const name5 = path7 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
51626
51822
|
fs4.renameSync(path7, name5);
|
|
51627
51823
|
fs4.unlinkSync(name5);
|
|
@@ -51632,18 +51828,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51632
51828
|
abs = cacheKeyNormalize(abs);
|
|
51633
51829
|
for (const path7 of cache.keys()) {
|
|
51634
51830
|
const pnorm = cacheKeyNormalize(path7);
|
|
51635
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
51831
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
51636
51832
|
cache.delete(path7);
|
|
51833
|
+
}
|
|
51637
51834
|
}
|
|
51638
51835
|
};
|
|
51639
51836
|
var dropCache = (cache) => {
|
|
51640
|
-
for (const key of cache.keys())
|
|
51837
|
+
for (const key of cache.keys()) {
|
|
51641
51838
|
cache.delete(key);
|
|
51839
|
+
}
|
|
51642
51840
|
};
|
|
51643
51841
|
var Unpack = class extends Parser2 {
|
|
51644
51842
|
constructor(opt) {
|
|
51645
|
-
if (!opt)
|
|
51843
|
+
if (!opt) {
|
|
51646
51844
|
opt = {};
|
|
51845
|
+
}
|
|
51647
51846
|
opt.ondone = (_) => {
|
|
51648
51847
|
this[ENDED] = true;
|
|
51649
51848
|
this[MAYBECLOSE]();
|
|
@@ -51658,8 +51857,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51658
51857
|
this[ENDED] = false;
|
|
51659
51858
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
|
51660
51859
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
|
51661
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
|
51860
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number") {
|
|
51662
51861
|
throw new TypeError("cannot set owner without number uid and gid");
|
|
51862
|
+
}
|
|
51663
51863
|
if (opt.preserveOwner) {
|
|
51664
51864
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
51665
51865
|
}
|
|
@@ -51671,10 +51871,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51671
51871
|
this.gid = null;
|
|
51672
51872
|
this.setOwner = false;
|
|
51673
51873
|
}
|
|
51674
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
|
51874
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number") {
|
|
51675
51875
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
|
51676
|
-
else
|
|
51876
|
+
} else {
|
|
51677
51877
|
this.preserveOwner = !!opt.preserveOwner;
|
|
51878
|
+
}
|
|
51678
51879
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
|
51679
51880
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
|
51680
51881
|
this.forceChown = opt.forceChown === true;
|
|
@@ -51693,8 +51894,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51693
51894
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
|
51694
51895
|
}
|
|
51695
51896
|
warn(code, msg, data = {}) {
|
|
51696
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
|
51897
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT") {
|
|
51697
51898
|
data.recoverable = false;
|
|
51899
|
+
}
|
|
51698
51900
|
return super.warn(code, msg, data);
|
|
51699
51901
|
}
|
|
51700
51902
|
[MAYBECLOSE]() {
|
|
@@ -51702,21 +51904,22 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51702
51904
|
this.emit("prefinish");
|
|
51703
51905
|
this.emit("finish");
|
|
51704
51906
|
this.emit("end");
|
|
51705
|
-
this.emit("close");
|
|
51706
51907
|
}
|
|
51707
51908
|
}
|
|
51708
51909
|
[CHECKPATH](entry) {
|
|
51709
51910
|
if (this.strip) {
|
|
51710
51911
|
const parts = normPath(entry.path).split("/");
|
|
51711
|
-
if (parts.length < this.strip)
|
|
51912
|
+
if (parts.length < this.strip) {
|
|
51712
51913
|
return false;
|
|
51914
|
+
}
|
|
51713
51915
|
entry.path = parts.slice(this.strip).join("/");
|
|
51714
51916
|
if (entry.type === "Link") {
|
|
51715
51917
|
const linkparts = normPath(entry.linkpath).split("/");
|
|
51716
|
-
if (linkparts.length >= this.strip)
|
|
51918
|
+
if (linkparts.length >= this.strip) {
|
|
51717
51919
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
|
51718
|
-
else
|
|
51920
|
+
} else {
|
|
51719
51921
|
return false;
|
|
51922
|
+
}
|
|
51720
51923
|
}
|
|
51721
51924
|
}
|
|
51722
51925
|
if (!this.preservePaths) {
|
|
@@ -51738,10 +51941,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51738
51941
|
});
|
|
51739
51942
|
}
|
|
51740
51943
|
}
|
|
51741
|
-
if (path6.isAbsolute(entry.path))
|
|
51944
|
+
if (path6.isAbsolute(entry.path)) {
|
|
51742
51945
|
entry.absolute = normPath(path6.resolve(entry.path));
|
|
51743
|
-
else
|
|
51946
|
+
} else {
|
|
51744
51947
|
entry.absolute = normPath(path6.resolve(this.cwd, entry.path));
|
|
51948
|
+
}
|
|
51745
51949
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
51746
51950
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
51747
51951
|
entry,
|
|
@@ -51751,25 +51955,28 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51751
51955
|
});
|
|
51752
51956
|
return false;
|
|
51753
51957
|
}
|
|
51754
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
51958
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") {
|
|
51755
51959
|
return false;
|
|
51960
|
+
}
|
|
51756
51961
|
if (this.win32) {
|
|
51757
51962
|
const { root: aRoot } = path6.win32.parse(entry.absolute);
|
|
51758
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
|
51963
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
51759
51964
|
const { root: pRoot } = path6.win32.parse(entry.path);
|
|
51760
|
-
entry.path = pRoot + wc.encode(entry.path.
|
|
51965
|
+
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
51761
51966
|
}
|
|
51762
51967
|
return true;
|
|
51763
51968
|
}
|
|
51764
51969
|
[ONENTRY](entry) {
|
|
51765
|
-
if (!this[CHECKPATH](entry))
|
|
51970
|
+
if (!this[CHECKPATH](entry)) {
|
|
51766
51971
|
return entry.resume();
|
|
51972
|
+
}
|
|
51767
51973
|
assert.equal(typeof entry.absolute, "string");
|
|
51768
51974
|
switch (entry.type) {
|
|
51769
51975
|
case "Directory":
|
|
51770
51976
|
case "GNUDumpDir":
|
|
51771
|
-
if (entry.mode)
|
|
51977
|
+
if (entry.mode) {
|
|
51772
51978
|
entry.mode = entry.mode | 448;
|
|
51979
|
+
}
|
|
51773
51980
|
case "File":
|
|
51774
51981
|
case "OldFile":
|
|
51775
51982
|
case "ContiguousFile":
|
|
@@ -51784,9 +51991,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51784
51991
|
}
|
|
51785
51992
|
}
|
|
51786
51993
|
[ONERROR](er, entry) {
|
|
51787
|
-
if (er.name === "CwdError")
|
|
51994
|
+
if (er.name === "CwdError") {
|
|
51788
51995
|
this.emit("error", er);
|
|
51789
|
-
else {
|
|
51996
|
+
} else {
|
|
51790
51997
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
|
51791
51998
|
this[UNPEND]();
|
|
51792
51999
|
entry.resume();
|
|
@@ -51824,9 +52031,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51824
52031
|
autoClose: false
|
|
51825
52032
|
});
|
|
51826
52033
|
stream.on("error", (er) => {
|
|
51827
|
-
if (stream.fd)
|
|
52034
|
+
if (stream.fd) {
|
|
51828
52035
|
fs4.close(stream.fd, () => {
|
|
51829
52036
|
});
|
|
52037
|
+
}
|
|
51830
52038
|
stream.write = () => true;
|
|
51831
52039
|
this[ONERROR](er, entry);
|
|
51832
52040
|
fullyDone();
|
|
@@ -51834,19 +52042,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51834
52042
|
let actions = 1;
|
|
51835
52043
|
const done = (er) => {
|
|
51836
52044
|
if (er) {
|
|
51837
|
-
if (stream.fd)
|
|
52045
|
+
if (stream.fd) {
|
|
51838
52046
|
fs4.close(stream.fd, () => {
|
|
51839
52047
|
});
|
|
52048
|
+
}
|
|
51840
52049
|
this[ONERROR](er, entry);
|
|
51841
52050
|
fullyDone();
|
|
51842
52051
|
return;
|
|
51843
52052
|
}
|
|
51844
52053
|
if (--actions === 0) {
|
|
51845
52054
|
fs4.close(stream.fd, (er2) => {
|
|
51846
|
-
if (er2)
|
|
52055
|
+
if (er2) {
|
|
51847
52056
|
this[ONERROR](er2, entry);
|
|
51848
|
-
else
|
|
52057
|
+
} else {
|
|
51849
52058
|
this[UNPEND]();
|
|
52059
|
+
}
|
|
51850
52060
|
fullyDone();
|
|
51851
52061
|
});
|
|
51852
52062
|
}
|
|
@@ -51934,15 +52144,17 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51934
52144
|
[CHECKFS](entry) {
|
|
51935
52145
|
this[PEND]();
|
|
51936
52146
|
const paths = [entry.path];
|
|
51937
|
-
if (entry.linkpath)
|
|
52147
|
+
if (entry.linkpath) {
|
|
51938
52148
|
paths.push(entry.linkpath);
|
|
52149
|
+
}
|
|
51939
52150
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
|
51940
52151
|
}
|
|
51941
52152
|
[PRUNECACHE](entry) {
|
|
51942
|
-
if (entry.type === "SymbolicLink")
|
|
52153
|
+
if (entry.type === "SymbolicLink") {
|
|
51943
52154
|
dropCache(this.dirCache);
|
|
51944
|
-
else if (entry.type !== "Directory")
|
|
52155
|
+
} else if (entry.type !== "Directory") {
|
|
51945
52156
|
pruneCache(this.dirCache, entry.absolute);
|
|
52157
|
+
}
|
|
51946
52158
|
}
|
|
51947
52159
|
[CHECKFS2](entry, fullyDone) {
|
|
51948
52160
|
this[PRUNECACHE](entry);
|
|
@@ -51984,29 +52196,33 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
51984
52196
|
done();
|
|
51985
52197
|
return;
|
|
51986
52198
|
}
|
|
51987
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
52199
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
51988
52200
|
return this[MAKEFS](null, entry, done);
|
|
52201
|
+
}
|
|
51989
52202
|
if (st.isDirectory()) {
|
|
51990
52203
|
if (entry.type === "Directory") {
|
|
51991
52204
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
51992
52205
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
51993
|
-
if (!needChmod)
|
|
52206
|
+
if (!needChmod) {
|
|
51994
52207
|
return afterChmod();
|
|
52208
|
+
}
|
|
51995
52209
|
return fs4.chmod(entry.absolute, entry.mode, afterChmod);
|
|
51996
52210
|
}
|
|
51997
52211
|
if (entry.absolute !== this.cwd) {
|
|
51998
52212
|
return fs4.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
51999
52213
|
}
|
|
52000
52214
|
}
|
|
52001
|
-
if (entry.absolute === this.cwd)
|
|
52215
|
+
if (entry.absolute === this.cwd) {
|
|
52002
52216
|
return this[MAKEFS](null, entry, done);
|
|
52217
|
+
}
|
|
52003
52218
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
52004
52219
|
});
|
|
52005
52220
|
};
|
|
52006
|
-
if (this[CHECKED_CWD])
|
|
52221
|
+
if (this[CHECKED_CWD]) {
|
|
52007
52222
|
start();
|
|
52008
|
-
else
|
|
52223
|
+
} else {
|
|
52009
52224
|
checkCwd();
|
|
52225
|
+
}
|
|
52010
52226
|
}
|
|
52011
52227
|
[MAKEFS](er, entry, done) {
|
|
52012
52228
|
if (er) {
|
|
@@ -52030,9 +52246,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52030
52246
|
}
|
|
52031
52247
|
[LINK](entry, linkpath, link, done) {
|
|
52032
52248
|
fs4[link](linkpath, entry.absolute, (er) => {
|
|
52033
|
-
if (er)
|
|
52249
|
+
if (er) {
|
|
52034
52250
|
this[ONERROR](er, entry);
|
|
52035
|
-
else {
|
|
52251
|
+
} else {
|
|
52036
52252
|
this[UNPEND]();
|
|
52037
52253
|
entry.resume();
|
|
52038
52254
|
}
|
|
@@ -52056,23 +52272,27 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52056
52272
|
this[PRUNECACHE](entry);
|
|
52057
52273
|
if (!this[CHECKED_CWD]) {
|
|
52058
52274
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
|
52059
|
-
if (er2)
|
|
52275
|
+
if (er2) {
|
|
52060
52276
|
return this[ONERROR](er2, entry);
|
|
52277
|
+
}
|
|
52061
52278
|
this[CHECKED_CWD] = true;
|
|
52062
52279
|
}
|
|
52063
52280
|
if (entry.absolute !== this.cwd) {
|
|
52064
52281
|
const parent = normPath(path6.dirname(entry.absolute));
|
|
52065
52282
|
if (parent !== this.cwd) {
|
|
52066
52283
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
52067
|
-
if (mkParent)
|
|
52284
|
+
if (mkParent) {
|
|
52068
52285
|
return this[ONERROR](mkParent, entry);
|
|
52286
|
+
}
|
|
52069
52287
|
}
|
|
52070
52288
|
}
|
|
52071
52289
|
const [lstatEr, st] = callSync(() => fs4.lstatSync(entry.absolute));
|
|
52072
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
52290
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
52073
52291
|
return this[SKIP](entry);
|
|
52074
|
-
|
|
52292
|
+
}
|
|
52293
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
|
52075
52294
|
return this[MAKEFS](null, entry);
|
|
52295
|
+
}
|
|
52076
52296
|
if (st.isDirectory()) {
|
|
52077
52297
|
if (entry.type === "Directory") {
|
|
52078
52298
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
@@ -52096,8 +52316,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
52096
52316
|
} catch (e) {
|
|
52097
52317
|
closeError = e;
|
|
52098
52318
|
}
|
|
52099
|
-
if (er || closeError)
|
|
52319
|
+
if (er || closeError) {
|
|
52100
52320
|
this[ONERROR](er || closeError, entry);
|
|
52321
|
+
}
|
|
52101
52322
|
done();
|
|
52102
52323
|
};
|
|
52103
52324
|
let fd;
|
|
@@ -52212,23 +52433,29 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52212
52433
|
var path6 = __require("path");
|
|
52213
52434
|
var stripSlash = require_strip_trailing_slashes();
|
|
52214
52435
|
module2.exports = (opt_, files, cb) => {
|
|
52215
|
-
if (typeof opt_ === "function")
|
|
52436
|
+
if (typeof opt_ === "function") {
|
|
52216
52437
|
cb = opt_, files = null, opt_ = {};
|
|
52217
|
-
else if (Array.isArray(opt_))
|
|
52438
|
+
} else if (Array.isArray(opt_)) {
|
|
52218
52439
|
files = opt_, opt_ = {};
|
|
52219
|
-
|
|
52440
|
+
}
|
|
52441
|
+
if (typeof files === "function") {
|
|
52220
52442
|
cb = files, files = null;
|
|
52221
|
-
|
|
52443
|
+
}
|
|
52444
|
+
if (!files) {
|
|
52222
52445
|
files = [];
|
|
52223
|
-
else
|
|
52446
|
+
} else {
|
|
52224
52447
|
files = Array.from(files);
|
|
52448
|
+
}
|
|
52225
52449
|
const opt = hlo(opt_);
|
|
52226
|
-
if (opt.sync && typeof cb === "function")
|
|
52450
|
+
if (opt.sync && typeof cb === "function") {
|
|
52227
52451
|
throw new TypeError("callback not supported for sync tar functions");
|
|
52228
|
-
|
|
52452
|
+
}
|
|
52453
|
+
if (!opt.file && typeof cb === "function") {
|
|
52229
52454
|
throw new TypeError("callback only supported with file option");
|
|
52230
|
-
|
|
52455
|
+
}
|
|
52456
|
+
if (files.length) {
|
|
52231
52457
|
filesFilter(opt, files);
|
|
52458
|
+
}
|
|
52232
52459
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
|
52233
52460
|
};
|
|
52234
52461
|
var filesFilter = (opt, files) => {
|
|
@@ -52261,9 +52488,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
52261
52488
|
u.on("error", reject);
|
|
52262
52489
|
u.on("close", resolve);
|
|
52263
52490
|
fs4.stat(file, (er, stat) => {
|
|
52264
|
-
if (er)
|
|
52491
|
+
if (er) {
|
|
52265
52492
|
reject(er);
|
|
52266
|
-
else {
|
|
52493
|
+
} else {
|
|
52267
52494
|
const stream = new fsm.ReadStream(file, {
|
|
52268
52495
|
readSize,
|
|
52269
52496
|
size: stat.size
|
|
@@ -59176,7 +59403,9 @@ function _regeneratorRuntime() {
|
|
|
59176
59403
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
59177
59404
|
return exports;
|
|
59178
59405
|
};
|
|
59179
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
59406
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function(obj, key, desc) {
|
|
59407
|
+
obj[key] = desc.value;
|
|
59408
|
+
}, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
59180
59409
|
function define3(obj, key, value) {
|
|
59181
59410
|
return Object.defineProperty(obj, key, {
|
|
59182
59411
|
value,
|
|
@@ -59194,48 +59423,9 @@ function _regeneratorRuntime() {
|
|
|
59194
59423
|
}
|
|
59195
59424
|
function wrap(innerFn, outerFn, self3, tryLocsList) {
|
|
59196
59425
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []);
|
|
59197
|
-
return generator
|
|
59198
|
-
|
|
59199
|
-
|
|
59200
|
-
if (state === "executing")
|
|
59201
|
-
throw new Error("Generator is already running");
|
|
59202
|
-
if (state === "completed") {
|
|
59203
|
-
if (method === "throw")
|
|
59204
|
-
throw arg;
|
|
59205
|
-
return doneResult();
|
|
59206
|
-
}
|
|
59207
|
-
for (context2.method = method, context2.arg = arg; ; ) {
|
|
59208
|
-
var delegate = context2.delegate;
|
|
59209
|
-
if (delegate) {
|
|
59210
|
-
var delegateResult = maybeInvokeDelegate(delegate, context2);
|
|
59211
|
-
if (delegateResult) {
|
|
59212
|
-
if (delegateResult === ContinueSentinel)
|
|
59213
|
-
continue;
|
|
59214
|
-
return delegateResult;
|
|
59215
|
-
}
|
|
59216
|
-
}
|
|
59217
|
-
if (context2.method === "next")
|
|
59218
|
-
context2.sent = context2._sent = context2.arg;
|
|
59219
|
-
else if (context2.method === "throw") {
|
|
59220
|
-
if (state === "suspendedStart")
|
|
59221
|
-
throw state = "completed", context2.arg;
|
|
59222
|
-
context2.dispatchException(context2.arg);
|
|
59223
|
-
} else
|
|
59224
|
-
context2.method === "return" && context2.abrupt("return", context2.arg);
|
|
59225
|
-
state = "executing";
|
|
59226
|
-
var record = tryCatch(innerFn2, self4, context2);
|
|
59227
|
-
if (record.type === "normal") {
|
|
59228
|
-
if (state = context2.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59229
|
-
continue;
|
|
59230
|
-
return {
|
|
59231
|
-
value: record.arg,
|
|
59232
|
-
done: context2.done
|
|
59233
|
-
};
|
|
59234
|
-
}
|
|
59235
|
-
record.type === "throw" && (state = "completed", context2.method = "throw", context2.arg = record.arg);
|
|
59236
|
-
}
|
|
59237
|
-
};
|
|
59238
|
-
}(innerFn, self3, context), generator;
|
|
59426
|
+
return defineProperty(generator, "_invoke", {
|
|
59427
|
+
value: makeInvokeMethod(innerFn, self3, context)
|
|
59428
|
+
}), generator;
|
|
59239
59429
|
}
|
|
59240
59430
|
function tryCatch(fn, obj, arg) {
|
|
59241
59431
|
try {
|
|
@@ -59290,25 +59480,63 @@ function _regeneratorRuntime() {
|
|
|
59290
59480
|
reject(record.arg);
|
|
59291
59481
|
}
|
|
59292
59482
|
var previousPromise;
|
|
59293
|
-
this
|
|
59294
|
-
function
|
|
59295
|
-
|
|
59296
|
-
|
|
59297
|
-
|
|
59483
|
+
defineProperty(this, "_invoke", {
|
|
59484
|
+
value: function value(method, arg) {
|
|
59485
|
+
function callInvokeWithMethodAndArg() {
|
|
59486
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
59487
|
+
invoke(method, arg, resolve, reject);
|
|
59488
|
+
});
|
|
59489
|
+
}
|
|
59490
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59491
|
+
}
|
|
59492
|
+
});
|
|
59493
|
+
}
|
|
59494
|
+
function makeInvokeMethod(innerFn, self3, context) {
|
|
59495
|
+
var state = "suspendedStart";
|
|
59496
|
+
return function(method, arg) {
|
|
59497
|
+
if (state === "executing")
|
|
59498
|
+
throw new Error("Generator is already running");
|
|
59499
|
+
if (state === "completed") {
|
|
59500
|
+
if (method === "throw")
|
|
59501
|
+
throw arg;
|
|
59502
|
+
return doneResult();
|
|
59503
|
+
}
|
|
59504
|
+
for (context.method = method, context.arg = arg; ; ) {
|
|
59505
|
+
var delegate = context.delegate;
|
|
59506
|
+
if (delegate) {
|
|
59507
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
59508
|
+
if (delegateResult) {
|
|
59509
|
+
if (delegateResult === ContinueSentinel)
|
|
59510
|
+
continue;
|
|
59511
|
+
return delegateResult;
|
|
59512
|
+
}
|
|
59513
|
+
}
|
|
59514
|
+
if (context.method === "next")
|
|
59515
|
+
context.sent = context._sent = context.arg;
|
|
59516
|
+
else if (context.method === "throw") {
|
|
59517
|
+
if (state === "suspendedStart")
|
|
59518
|
+
throw state = "completed", context.arg;
|
|
59519
|
+
context.dispatchException(context.arg);
|
|
59520
|
+
} else
|
|
59521
|
+
context.method === "return" && context.abrupt("return", context.arg);
|
|
59522
|
+
state = "executing";
|
|
59523
|
+
var record = tryCatch(innerFn, self3, context);
|
|
59524
|
+
if (record.type === "normal") {
|
|
59525
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
|
|
59526
|
+
continue;
|
|
59527
|
+
return {
|
|
59528
|
+
value: record.arg,
|
|
59529
|
+
done: context.done
|
|
59530
|
+
};
|
|
59531
|
+
}
|
|
59532
|
+
record.type === "throw" && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
59298
59533
|
}
|
|
59299
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
59300
59534
|
};
|
|
59301
59535
|
}
|
|
59302
59536
|
function maybeInvokeDelegate(delegate, context) {
|
|
59303
|
-
var method = delegate.iterator[
|
|
59304
|
-
if (method === void 0)
|
|
59305
|
-
|
|
59306
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw"))
|
|
59307
|
-
return ContinueSentinel;
|
|
59308
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
59309
|
-
}
|
|
59310
|
-
return ContinueSentinel;
|
|
59311
|
-
}
|
|
59537
|
+
var methodName = context.method, method = delegate.iterator[methodName];
|
|
59538
|
+
if (method === void 0)
|
|
59539
|
+
return context.delegate = null, methodName === "throw" && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw") || methodName !== "return" && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
59312
59540
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
59313
59541
|
if (record.type === "throw")
|
|
59314
59542
|
return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -59358,7 +59586,13 @@ function _regeneratorRuntime() {
|
|
|
59358
59586
|
done: true
|
|
59359
59587
|
};
|
|
59360
59588
|
}
|
|
59361
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
59589
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
59590
|
+
value: GeneratorFunctionPrototype,
|
|
59591
|
+
configurable: true
|
|
59592
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
59593
|
+
value: GeneratorFunction,
|
|
59594
|
+
configurable: true
|
|
59595
|
+
}), GeneratorFunction.displayName = define3(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
59362
59596
|
var ctor = typeof genFun == "function" && genFun.constructor;
|
|
59363
59597
|
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction");
|
|
59364
59598
|
}, exports.mark = function(genFun) {
|
|
@@ -59379,8 +59613,8 @@ function _regeneratorRuntime() {
|
|
|
59379
59613
|
return this;
|
|
59380
59614
|
}), define3(Gp, "toString", function() {
|
|
59381
59615
|
return "[object Generator]";
|
|
59382
|
-
}), exports.keys = function(
|
|
59383
|
-
var keys = [];
|
|
59616
|
+
}), exports.keys = function(val) {
|
|
59617
|
+
var object = Object(val), keys = [];
|
|
59384
59618
|
for (var key in object) {
|
|
59385
59619
|
keys.push(key);
|
|
59386
59620
|
}
|
|
@@ -59525,6 +59759,29 @@ function _classCallCheck(instance, Constructor) {
|
|
|
59525
59759
|
}
|
|
59526
59760
|
var init_classCallCheck = __esmMin(() => {
|
|
59527
59761
|
});
|
|
59762
|
+
function _toPrimitive(input, hint) {
|
|
59763
|
+
if (_typeof(input) !== "object" || input === null)
|
|
59764
|
+
return input;
|
|
59765
|
+
var prim = input[Symbol.toPrimitive];
|
|
59766
|
+
if (prim !== void 0) {
|
|
59767
|
+
var res = prim.call(input, hint || "default");
|
|
59768
|
+
if (_typeof(res) !== "object")
|
|
59769
|
+
return res;
|
|
59770
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
59771
|
+
}
|
|
59772
|
+
return (hint === "string" ? String : Number)(input);
|
|
59773
|
+
}
|
|
59774
|
+
var init_toPrimitive = __esmMin(() => {
|
|
59775
|
+
init_typeof();
|
|
59776
|
+
});
|
|
59777
|
+
function _toPropertyKey(arg) {
|
|
59778
|
+
var key = _toPrimitive(arg, "string");
|
|
59779
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
59780
|
+
}
|
|
59781
|
+
var init_toPropertyKey = __esmMin(() => {
|
|
59782
|
+
init_typeof();
|
|
59783
|
+
init_toPrimitive();
|
|
59784
|
+
});
|
|
59528
59785
|
function _defineProperties(target, props) {
|
|
59529
59786
|
for (var i = 0; i < props.length; i++) {
|
|
59530
59787
|
var descriptor = props[i];
|
|
@@ -59532,7 +59789,7 @@ function _defineProperties(target, props) {
|
|
|
59532
59789
|
descriptor.configurable = true;
|
|
59533
59790
|
if ("value" in descriptor)
|
|
59534
59791
|
descriptor.writable = true;
|
|
59535
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59792
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
59536
59793
|
}
|
|
59537
59794
|
}
|
|
59538
59795
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -59546,8 +59803,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
59546
59803
|
return Constructor;
|
|
59547
59804
|
}
|
|
59548
59805
|
var init_createClass = __esmMin(() => {
|
|
59806
|
+
init_toPropertyKey();
|
|
59549
59807
|
});
|
|
59550
59808
|
function _defineProperty(obj, key, value) {
|
|
59809
|
+
key = _toPropertyKey(key);
|
|
59551
59810
|
if (key in obj) {
|
|
59552
59811
|
Object.defineProperty(obj, key, {
|
|
59553
59812
|
value,
|
|
@@ -59561,6 +59820,7 @@ function _defineProperty(obj, key, value) {
|
|
|
59561
59820
|
return obj;
|
|
59562
59821
|
}
|
|
59563
59822
|
var init_defineProperty = __esmMin(() => {
|
|
59823
|
+
init_toPropertyKey();
|
|
59564
59824
|
});
|
|
59565
59825
|
function ownKeys(object, enumerableOnly) {
|
|
59566
59826
|
var keys = Object.keys(object);
|
|
@@ -60150,7 +60410,7 @@ var init_tokens = __esmMin(() => {
|
|
|
60150
60410
|
});
|
|
60151
60411
|
dbStarTok = TokenType("**", {
|
|
60152
60412
|
expectNext: function(next) {
|
|
60153
|
-
return next === dotTok || next ===
|
|
60413
|
+
return next === dotTok || next === bracketLTok || next === eofTok || next === commaTok || next === parenRTok;
|
|
60154
60414
|
}
|
|
60155
60415
|
});
|
|
60156
60416
|
dotTok = TokenType(".", {
|
|
@@ -60287,11 +60547,11 @@ var init_tokens = __esmMin(() => {
|
|
|
60287
60547
|
});
|
|
60288
60548
|
eofTok = TokenType("eof");
|
|
60289
60549
|
});
|
|
60290
|
-
var
|
|
60550
|
+
var nonASCIIWhitespace, fullCharCodeAtPos, isRewordCode, getError, slice, Tokenizer;
|
|
60291
60551
|
var init_tokenizer = __esmMin(() => {
|
|
60292
60552
|
init_tokens();
|
|
60293
60553
|
init_contexts();
|
|
60294
|
-
|
|
60554
|
+
nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
60295
60555
|
fullCharCodeAtPos = function(input, pos) {
|
|
60296
60556
|
if (String.fromCharCode)
|
|
60297
60557
|
return input.codePointAt(pos);
|
|
@@ -60388,7 +60648,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60388
60648
|
++this.state.pos;
|
|
60389
60649
|
break;
|
|
60390
60650
|
default:
|
|
60391
|
-
if (ch > 8 && ch < 14 || ch >= 5760 &&
|
|
60651
|
+
if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(ch))) {
|
|
60392
60652
|
++this.state.pos;
|
|
60393
60653
|
} else {
|
|
60394
60654
|
break loop;
|
|
@@ -60436,7 +60696,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60436
60696
|
string = slice(this.input, startPos, this.state.pos);
|
|
60437
60697
|
break;
|
|
60438
60698
|
}
|
|
60439
|
-
if (code > 8 && code < 14 || code >= 5760 &&
|
|
60699
|
+
if (code > 8 && code < 14 || code >= 5760 && nonASCIIWhitespace.test(String.fromCharCode(code))) {
|
|
60440
60700
|
string = slice(this.input, startPos, this.state.pos);
|
|
60441
60701
|
break;
|
|
60442
60702
|
}
|
|
@@ -60448,7 +60708,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60448
60708
|
}
|
|
60449
60709
|
this.finishToken(nameTok, string);
|
|
60450
60710
|
};
|
|
60451
|
-
Tokenizer2.prototype.
|
|
60711
|
+
Tokenizer2.prototype.readIgnoreString = function() {
|
|
60452
60712
|
var startPos = this.state.pos, prevCode, string = "";
|
|
60453
60713
|
while (true) {
|
|
60454
60714
|
var code = this.getCode();
|
|
@@ -60487,7 +60747,7 @@ var init_tokenizer = __esmMin(() => {
|
|
|
60487
60747
|
if (this.input.length <= this.state.pos) {
|
|
60488
60748
|
this.finishToken(eofTok);
|
|
60489
60749
|
} else if (this.curContext() === bracketDContext) {
|
|
60490
|
-
this.
|
|
60750
|
+
this.readIgnoreString();
|
|
60491
60751
|
} else if (code === 123) {
|
|
60492
60752
|
this.state.pos++;
|
|
60493
60753
|
this.finishToken(braceLTok);
|
|
@@ -61164,7 +61424,6 @@ var init_matcher = __esmMin(() => {
|
|
|
61164
61424
|
this.record = record;
|
|
61165
61425
|
}
|
|
61166
61426
|
Matcher2.prototype.next = function(node, pos) {
|
|
61167
|
-
var isLastToken = pos === this.path.length - 1;
|
|
61168
61427
|
if (node.after) {
|
|
61169
61428
|
return this.matchNode(node.after, pos);
|
|
61170
61429
|
}
|
|
@@ -61177,6 +61436,7 @@ var init_matcher = __esmMin(() => {
|
|
|
61177
61436
|
return !!this.take(pos);
|
|
61178
61437
|
}
|
|
61179
61438
|
}
|
|
61439
|
+
var isLastToken = pos === this.path.length - 1;
|
|
61180
61440
|
if (isLastToken) {
|
|
61181
61441
|
return !!this.take(pos);
|
|
61182
61442
|
} else {
|
|
@@ -61834,10 +62094,7 @@ var init_esm = __esmMin(() => {
|
|
|
61834
62094
|
return matcher;
|
|
61835
62095
|
};
|
|
61836
62096
|
Path2.isPathPattern = function(target) {
|
|
61837
|
-
|
|
61838
|
-
return true;
|
|
61839
|
-
}
|
|
61840
|
-
return false;
|
|
62097
|
+
return !!(isStr2(target) || isArr2(target) || isRegExp2(target) || isFn2(target) && target[isMatcher]);
|
|
61841
62098
|
};
|
|
61842
62099
|
Path2.transform = function(pattern, regexp, callback) {
|
|
61843
62100
|
return Path2.parse(pattern).transform(regexp, callback);
|
|
@@ -64291,10 +64548,10 @@ var init_registry = __esmMin(() => {
|
|
|
64291
64548
|
};
|
|
64292
64549
|
getISOCode = function(language) {
|
|
64293
64550
|
var isoCode = registry.locales.language;
|
|
64294
|
-
var lang = lowerCase(language);
|
|
64295
64551
|
if (registry.locales.messages[language]) {
|
|
64296
64552
|
return language;
|
|
64297
64553
|
}
|
|
64554
|
+
var lang = lowerCase(language);
|
|
64298
64555
|
each(registry.locales.messages, function(messages, key) {
|
|
64299
64556
|
var target = lowerCase(key);
|
|
64300
64557
|
if (target.indexOf(lang) > -1 || lang.indexOf(target) > -1) {
|
|
@@ -66401,7 +66658,7 @@ var init_internals2 = __esmMin(() => {
|
|
|
66401
66658
|
noEmit = false;
|
|
66402
66659
|
}
|
|
66403
66660
|
return __awaiter4(void 0, void 0, void 0, function() {
|
|
66404
|
-
var typedDefaultValue;
|
|
66661
|
+
var typedDefaultValue, initialValue;
|
|
66405
66662
|
return __generator4(this, function(_a2) {
|
|
66406
66663
|
switch (_a2.label) {
|
|
66407
66664
|
case 0:
|
|
@@ -66417,7 +66674,8 @@ var init_internals2 = __esmMin(() => {
|
|
|
66417
66674
|
if (options3 === null || options3 === void 0 ? void 0 : options3.forceClear) {
|
|
66418
66675
|
target.value = typedDefaultValue;
|
|
66419
66676
|
} else {
|
|
66420
|
-
|
|
66677
|
+
initialValue = target.initialValue;
|
|
66678
|
+
target.value = toJS(!isUndef(initialValue) ? initialValue : typedDefaultValue);
|
|
66421
66679
|
}
|
|
66422
66680
|
}
|
|
66423
66681
|
if (!noEmit) {
|
|
@@ -66461,28 +66719,25 @@ var init_internals2 = __esmMin(() => {
|
|
|
66461
66719
|
return value;
|
|
66462
66720
|
};
|
|
66463
66721
|
allowAssignDefaultValue = function(target, source) {
|
|
66464
|
-
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66465
|
-
var isEmptySource = source !== null && isEmpty(source);
|
|
66466
66722
|
var isValidTarget = !isUndef(target);
|
|
66467
66723
|
var isValidSource = !isUndef(source);
|
|
66468
66724
|
if (!isValidTarget) {
|
|
66469
|
-
|
|
66470
|
-
return true;
|
|
66471
|
-
}
|
|
66472
|
-
return false;
|
|
66725
|
+
return isValidSource;
|
|
66473
66726
|
}
|
|
66474
66727
|
if (typeof target === typeof source) {
|
|
66475
66728
|
if (target === "")
|
|
66476
66729
|
return false;
|
|
66477
66730
|
if (target === 0)
|
|
66478
66731
|
return false;
|
|
66732
|
+
if (Array.isArray(target))
|
|
66733
|
+
return false;
|
|
66734
|
+
if (isPlainObj(target))
|
|
66735
|
+
return false;
|
|
66479
66736
|
}
|
|
66737
|
+
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66738
|
+
var isEmptySource = source !== null && isEmpty(source);
|
|
66480
66739
|
if (isEmptyTarget) {
|
|
66481
|
-
|
|
66482
|
-
return false;
|
|
66483
|
-
} else {
|
|
66484
|
-
return true;
|
|
66485
|
-
}
|
|
66740
|
+
return !isEmptySource;
|
|
66486
66741
|
}
|
|
66487
66742
|
return false;
|
|
66488
66743
|
};
|
|
@@ -67387,8 +67642,14 @@ var init_Field = __esmMin(() => {
|
|
|
67387
67642
|
return _this.value;
|
|
67388
67643
|
}, function(value) {
|
|
67389
67644
|
_this.notify(LifeCycleTypes.ON_FIELD_VALUE_CHANGE);
|
|
67390
|
-
if (isValid(value)
|
|
67391
|
-
|
|
67645
|
+
if (isValid(value)) {
|
|
67646
|
+
if (_this.selfModified && !_this.caches.inputting) {
|
|
67647
|
+
validateSelf(_this);
|
|
67648
|
+
}
|
|
67649
|
+
if (!isEmpty(value) && _this.display === "none") {
|
|
67650
|
+
_this.caches.value = toJS(value);
|
|
67651
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67652
|
+
}
|
|
67392
67653
|
}
|
|
67393
67654
|
}), createReaction(function() {
|
|
67394
67655
|
return _this.initialValue;
|
|
@@ -67399,16 +67660,14 @@ var init_Field = __esmMin(() => {
|
|
|
67399
67660
|
}, function(display) {
|
|
67400
67661
|
var _a2;
|
|
67401
67662
|
var value = _this.value;
|
|
67402
|
-
if (display
|
|
67403
|
-
if (
|
|
67663
|
+
if (display !== "none") {
|
|
67664
|
+
if (!isValid(value)) {
|
|
67404
67665
|
_this.setValue(_this.caches.value);
|
|
67405
67666
|
_this.caches.value = void 0;
|
|
67406
67667
|
}
|
|
67407
67668
|
} else {
|
|
67408
67669
|
_this.caches.value = (_a2 = toJS(value)) !== null && _a2 !== void 0 ? _a2 : toJS(_this.initialValue);
|
|
67409
|
-
|
|
67410
|
-
_this.form.deleteValuesIn(_this.path);
|
|
67411
|
-
}
|
|
67670
|
+
_this.form.deleteValuesIn(_this.path);
|
|
67412
67671
|
}
|
|
67413
67672
|
if (display === "none" || display === "hidden") {
|
|
67414
67673
|
_this.setFeedback({
|
|
@@ -68142,13 +68401,14 @@ var init_Form = __esmMin(() => {
|
|
|
68142
68401
|
if (!isPlainObj(values))
|
|
68143
68402
|
return;
|
|
68144
68403
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68145
|
-
|
|
68404
|
+
merge(_this.values, values, {
|
|
68146
68405
|
arrayMerge: function(target, source) {
|
|
68147
68406
|
return source;
|
|
68148
|
-
}
|
|
68407
|
+
},
|
|
68408
|
+
assign: true
|
|
68149
68409
|
});
|
|
68150
68410
|
} else if (strategy === "shallowMerge") {
|
|
68151
|
-
|
|
68411
|
+
Object.assign(_this.values, values);
|
|
68152
68412
|
} else {
|
|
68153
68413
|
_this.values = values;
|
|
68154
68414
|
}
|
|
@@ -68160,13 +68420,14 @@ var init_Form = __esmMin(() => {
|
|
|
68160
68420
|
if (!isPlainObj(initialValues))
|
|
68161
68421
|
return;
|
|
68162
68422
|
if (strategy === "merge" || strategy === "deepMerge") {
|
|
68163
|
-
|
|
68423
|
+
merge(_this.initialValues, initialValues, {
|
|
68164
68424
|
arrayMerge: function(target, source) {
|
|
68165
68425
|
return source;
|
|
68166
|
-
}
|
|
68426
|
+
},
|
|
68427
|
+
assign: true
|
|
68167
68428
|
});
|
|
68168
68429
|
} else if (strategy === "shallowMerge") {
|
|
68169
|
-
|
|
68430
|
+
Object.assign(_this.initialValues, initialValues);
|
|
68170
68431
|
} else {
|
|
68171
68432
|
_this.initialValues = initialValues;
|
|
68172
68433
|
}
|
|
@@ -68615,6 +68876,7 @@ function createFormEffect(type) {
|
|
|
68615
68876
|
}
|
|
68616
68877
|
var onFormInit, onFormMount, onFormUnmount, onFormValuesChange, onFormInitialValuesChange, onFormInputChange, onFormSubmit, onFormReset, onFormSubmitStart, onFormSubmitEnd, onFormSubmitSuccess, onFormSubmitFailed, onFormSubmitValidateStart, onFormSubmitValidateSuccess, onFormSubmitValidateFailed, onFormSubmitValidateEnd, onFormValidateStart, onFormValidateSuccess, onFormValidateFailed, onFormValidateEnd, onFormGraphChange, onFormLoading;
|
|
68617
68878
|
var init_onFormEffects = __esmMin(() => {
|
|
68879
|
+
init_esm2();
|
|
68618
68880
|
init_esm3();
|
|
68619
68881
|
init_types4();
|
|
68620
68882
|
init_effective();
|
|
@@ -71739,7 +72001,6 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
71739
72001
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71740
72002
|
exports.animationFrames = void 0;
|
|
71741
72003
|
var Observable_1 = require_Observable();
|
|
71742
|
-
var Subscription_1 = require_Subscription();
|
|
71743
72004
|
var performanceTimestampProvider_1 = require_performanceTimestampProvider();
|
|
71744
72005
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
71745
72006
|
function animationFrames(timestampProvider) {
|
|
@@ -71747,23 +72008,29 @@ var require_animationFrames = __commonJSMin((exports) => {
|
|
|
71747
72008
|
}
|
|
71748
72009
|
exports.animationFrames = animationFrames;
|
|
71749
72010
|
function animationFramesFactory(timestampProvider) {
|
|
71750
|
-
var schedule = animationFrameProvider_1.animationFrameProvider.schedule;
|
|
71751
72011
|
return new Observable_1.Observable(function(subscriber) {
|
|
71752
|
-
var subscription = new Subscription_1.Subscription();
|
|
71753
72012
|
var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
|
|
71754
72013
|
var start = provider.now();
|
|
71755
|
-
var
|
|
71756
|
-
|
|
71757
|
-
subscriber.next({
|
|
71758
|
-
timestamp: timestampProvider ? now : timestamp,
|
|
71759
|
-
elapsed: now - start
|
|
71760
|
-
});
|
|
72014
|
+
var id = 0;
|
|
72015
|
+
var run = function() {
|
|
71761
72016
|
if (!subscriber.closed) {
|
|
71762
|
-
|
|
72017
|
+
id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
|
|
72018
|
+
id = 0;
|
|
72019
|
+
var now = provider.now();
|
|
72020
|
+
subscriber.next({
|
|
72021
|
+
timestamp: timestampProvider ? now : timestamp,
|
|
72022
|
+
elapsed: now - start
|
|
72023
|
+
});
|
|
72024
|
+
run();
|
|
72025
|
+
});
|
|
72026
|
+
}
|
|
72027
|
+
};
|
|
72028
|
+
run();
|
|
72029
|
+
return function() {
|
|
72030
|
+
if (id) {
|
|
72031
|
+
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
71763
72032
|
}
|
|
71764
72033
|
};
|
|
71765
|
-
subscription.add(schedule(run));
|
|
71766
|
-
return subscription;
|
|
71767
72034
|
});
|
|
71768
72035
|
}
|
|
71769
72036
|
var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
|
|
@@ -72332,6 +72599,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72332
72599
|
return _this;
|
|
72333
72600
|
}
|
|
72334
72601
|
AsyncAction2.prototype.schedule = function(state, delay) {
|
|
72602
|
+
var _a2;
|
|
72335
72603
|
if (delay === void 0) {
|
|
72336
72604
|
delay = 0;
|
|
72337
72605
|
}
|
|
@@ -72346,7 +72614,7 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72346
72614
|
}
|
|
72347
72615
|
this.pending = true;
|
|
72348
72616
|
this.delay = delay;
|
|
72349
|
-
this.id = this.id
|
|
72617
|
+
this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay);
|
|
72350
72618
|
return this;
|
|
72351
72619
|
};
|
|
72352
72620
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
@@ -72362,7 +72630,9 @@ var require_AsyncAction = __commonJSMin((exports) => {
|
|
|
72362
72630
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
72363
72631
|
return id;
|
|
72364
72632
|
}
|
|
72365
|
-
|
|
72633
|
+
if (id != null) {
|
|
72634
|
+
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
72635
|
+
}
|
|
72366
72636
|
return void 0;
|
|
72367
72637
|
};
|
|
72368
72638
|
AsyncAction2.prototype.execute = function(state, delay) {
|
|
@@ -72540,15 +72810,15 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
72540
72810
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0)));
|
|
72541
72811
|
};
|
|
72542
72812
|
AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
72813
|
+
var _a2;
|
|
72543
72814
|
if (delay === void 0) {
|
|
72544
72815
|
delay = 0;
|
|
72545
72816
|
}
|
|
72546
|
-
if (delay != null
|
|
72817
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
72547
72818
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
72548
72819
|
}
|
|
72549
|
-
|
|
72550
|
-
|
|
72551
|
-
})) {
|
|
72820
|
+
var actions = scheduler.actions;
|
|
72821
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
72552
72822
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
72553
72823
|
scheduler._scheduled = void 0;
|
|
72554
72824
|
}
|
|
@@ -72617,7 +72887,6 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
72617
72887
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
72618
72888
|
_this.actions = [];
|
|
72619
72889
|
_this._active = false;
|
|
72620
|
-
_this._scheduled = void 0;
|
|
72621
72890
|
return _this;
|
|
72622
72891
|
}
|
|
72623
72892
|
AsyncScheduler2.prototype.flush = function(action2) {
|
|
@@ -72774,7 +73043,8 @@ var require_QueueAction = __commonJSMin((exports) => {
|
|
|
72774
73043
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
72775
73044
|
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
|
72776
73045
|
}
|
|
72777
|
-
|
|
73046
|
+
scheduler.flush(this);
|
|
73047
|
+
return 0;
|
|
72778
73048
|
};
|
|
72779
73049
|
return QueueAction2;
|
|
72780
73050
|
}(AsyncAction_1.AsyncAction);
|
|
@@ -72872,15 +73142,15 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
72872
73142
|
}));
|
|
72873
73143
|
};
|
|
72874
73144
|
AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73145
|
+
var _a2;
|
|
72875
73146
|
if (delay === void 0) {
|
|
72876
73147
|
delay = 0;
|
|
72877
73148
|
}
|
|
72878
|
-
if (delay != null
|
|
73149
|
+
if (delay != null ? delay > 0 : this.delay > 0) {
|
|
72879
73150
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
72880
73151
|
}
|
|
72881
|
-
|
|
72882
|
-
|
|
72883
|
-
})) {
|
|
73152
|
+
var actions = scheduler.actions;
|
|
73153
|
+
if (id != null && ((_a2 = actions[actions.length - 1]) === null || _a2 === void 0 ? void 0 : _a2.id) !== id) {
|
|
72884
73154
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
72885
73155
|
scheduler._scheduled = void 0;
|
|
72886
73156
|
}
|
|
@@ -73059,7 +73329,7 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
73059
73329
|
var actions = scheduler.actions;
|
|
73060
73330
|
actions.push(this);
|
|
73061
73331
|
actions.sort(VirtualAction2.sortActions);
|
|
73062
|
-
return
|
|
73332
|
+
return 1;
|
|
73063
73333
|
};
|
|
73064
73334
|
VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
73065
73335
|
if (delay === void 0) {
|
|
@@ -75129,63 +75399,35 @@ var require_argsOrArgArray = __commonJSMin((exports) => {
|
|
|
75129
75399
|
});
|
|
75130
75400
|
var require_onErrorResumeNext = __commonJSMin((exports) => {
|
|
75131
75401
|
"use strict";
|
|
75132
|
-
var __read9 = exports && exports.__read || function(o, n) {
|
|
75133
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
75134
|
-
if (!m)
|
|
75135
|
-
return o;
|
|
75136
|
-
var i = m.call(o), r, ar = [], e;
|
|
75137
|
-
try {
|
|
75138
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
75139
|
-
ar.push(r.value);
|
|
75140
|
-
} catch (error) {
|
|
75141
|
-
e = { error };
|
|
75142
|
-
} finally {
|
|
75143
|
-
try {
|
|
75144
|
-
if (r && !r.done && (m = i["return"]))
|
|
75145
|
-
m.call(i);
|
|
75146
|
-
} finally {
|
|
75147
|
-
if (e)
|
|
75148
|
-
throw e.error;
|
|
75149
|
-
}
|
|
75150
|
-
}
|
|
75151
|
-
return ar;
|
|
75152
|
-
};
|
|
75153
|
-
var __spreadArray8 = exports && exports.__spreadArray || function(to, from) {
|
|
75154
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
75155
|
-
to[j] = from[i];
|
|
75156
|
-
return to;
|
|
75157
|
-
};
|
|
75158
75402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75159
75403
|
exports.onErrorResumeNext = void 0;
|
|
75160
|
-
var
|
|
75161
|
-
var innerFrom_1 = require_innerFrom();
|
|
75404
|
+
var Observable_1 = require_Observable();
|
|
75162
75405
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
75163
75406
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
75164
75407
|
var noop_1 = require_noop();
|
|
75408
|
+
var innerFrom_1 = require_innerFrom();
|
|
75165
75409
|
function onErrorResumeNext() {
|
|
75166
75410
|
var sources = [];
|
|
75167
75411
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
75168
75412
|
sources[_i] = arguments[_i];
|
|
75169
75413
|
}
|
|
75170
75414
|
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
75171
|
-
return
|
|
75172
|
-
var
|
|
75415
|
+
return new Observable_1.Observable(function(subscriber) {
|
|
75416
|
+
var sourceIndex = 0;
|
|
75173
75417
|
var subscribeNext = function() {
|
|
75174
|
-
if (
|
|
75175
|
-
|
|
75176
|
-
|
|
75177
|
-
|
|
75178
|
-
|
|
75179
|
-
|
|
75180
|
-
|
|
75181
|
-
return;
|
|
75182
|
-
}
|
|
75183
|
-
var innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop);
|
|
75184
|
-
nextSource.subscribe(innerSub);
|
|
75185
|
-
innerSub.add(subscribeNext);
|
|
75186
|
-
} else {
|
|
75187
|
-
subscriber.complete();
|
|
75418
|
+
if (sourceIndex < nextSources.length) {
|
|
75419
|
+
var nextSource = void 0;
|
|
75420
|
+
try {
|
|
75421
|
+
nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]);
|
|
75422
|
+
} catch (err) {
|
|
75423
|
+
subscribeNext();
|
|
75424
|
+
return;
|
|
75188
75425
|
}
|
|
75426
|
+
var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop);
|
|
75427
|
+
nextSource.subscribe(innerSubscriber);
|
|
75428
|
+
innerSubscriber.add(subscribeNext);
|
|
75429
|
+
} else {
|
|
75430
|
+
subscriber.complete();
|
|
75189
75431
|
}
|
|
75190
75432
|
};
|
|
75191
75433
|
subscribeNext();
|
|
@@ -75193,22 +75435,6 @@ var require_onErrorResumeNext = __commonJSMin((exports) => {
|
|
|
75193
75435
|
}
|
|
75194
75436
|
exports.onErrorResumeNext = onErrorResumeNext;
|
|
75195
75437
|
});
|
|
75196
|
-
var require_onErrorResumeNext2 = __commonJSMin((exports) => {
|
|
75197
|
-
"use strict";
|
|
75198
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75199
|
-
exports.onErrorResumeNext = void 0;
|
|
75200
|
-
var empty_1 = require_empty();
|
|
75201
|
-
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
75202
|
-
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
75203
|
-
function onErrorResumeNext() {
|
|
75204
|
-
var sources = [];
|
|
75205
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
75206
|
-
sources[_i] = arguments[_i];
|
|
75207
|
-
}
|
|
75208
|
-
return onErrorResumeNext_1.onErrorResumeNext(argsOrArgArray_1.argsOrArgArray(sources))(empty_1.EMPTY);
|
|
75209
|
-
}
|
|
75210
|
-
exports.onErrorResumeNext = onErrorResumeNext;
|
|
75211
|
-
});
|
|
75212
75438
|
var require_pairs = __commonJSMin((exports) => {
|
|
75213
75439
|
"use strict";
|
|
75214
75440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -76158,7 +76384,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76158
76384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76159
76385
|
exports.connect = void 0;
|
|
76160
76386
|
var Subject_1 = require_Subject();
|
|
76161
|
-
var
|
|
76387
|
+
var innerFrom_1 = require_innerFrom();
|
|
76162
76388
|
var lift_1 = require_lift();
|
|
76163
76389
|
var fromSubscribable_1 = require_fromSubscribable();
|
|
76164
76390
|
var DEFAULT_CONFIG = {
|
|
@@ -76173,7 +76399,7 @@ var require_connect = __commonJSMin((exports) => {
|
|
|
76173
76399
|
var connector = config.connector;
|
|
76174
76400
|
return lift_1.operate(function(source, subscriber) {
|
|
76175
76401
|
var subject = connector();
|
|
76176
|
-
|
|
76402
|
+
innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
|
|
76177
76403
|
subscriber.add(source.subscribe(subject));
|
|
76178
76404
|
});
|
|
76179
76405
|
}
|
|
@@ -76589,39 +76815,6 @@ var require_every = __commonJSMin((exports) => {
|
|
|
76589
76815
|
}
|
|
76590
76816
|
exports.every = every;
|
|
76591
76817
|
});
|
|
76592
|
-
var require_exhaustAll = __commonJSMin((exports) => {
|
|
76593
|
-
"use strict";
|
|
76594
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76595
|
-
exports.exhaustAll = void 0;
|
|
76596
|
-
var lift_1 = require_lift();
|
|
76597
|
-
var innerFrom_1 = require_innerFrom();
|
|
76598
|
-
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
76599
|
-
function exhaustAll() {
|
|
76600
|
-
return lift_1.operate(function(source, subscriber) {
|
|
76601
|
-
var isComplete = false;
|
|
76602
|
-
var innerSub = null;
|
|
76603
|
-
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(inner) {
|
|
76604
|
-
if (!innerSub) {
|
|
76605
|
-
innerSub = innerFrom_1.innerFrom(inner).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
76606
|
-
innerSub = null;
|
|
76607
|
-
isComplete && subscriber.complete();
|
|
76608
|
-
}));
|
|
76609
|
-
}
|
|
76610
|
-
}, function() {
|
|
76611
|
-
isComplete = true;
|
|
76612
|
-
!innerSub && subscriber.complete();
|
|
76613
|
-
}));
|
|
76614
|
-
});
|
|
76615
|
-
}
|
|
76616
|
-
exports.exhaustAll = exhaustAll;
|
|
76617
|
-
});
|
|
76618
|
-
var require_exhaust = __commonJSMin((exports) => {
|
|
76619
|
-
"use strict";
|
|
76620
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76621
|
-
exports.exhaust = void 0;
|
|
76622
|
-
var exhaustAll_1 = require_exhaustAll();
|
|
76623
|
-
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
76624
|
-
});
|
|
76625
76818
|
var require_exhaustMap = __commonJSMin((exports) => {
|
|
76626
76819
|
"use strict";
|
|
76627
76820
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -76660,6 +76853,24 @@ var require_exhaustMap = __commonJSMin((exports) => {
|
|
|
76660
76853
|
}
|
|
76661
76854
|
exports.exhaustMap = exhaustMap;
|
|
76662
76855
|
});
|
|
76856
|
+
var require_exhaustAll = __commonJSMin((exports) => {
|
|
76857
|
+
"use strict";
|
|
76858
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76859
|
+
exports.exhaustAll = void 0;
|
|
76860
|
+
var exhaustMap_1 = require_exhaustMap();
|
|
76861
|
+
var identity_1 = require_identity();
|
|
76862
|
+
function exhaustAll() {
|
|
76863
|
+
return exhaustMap_1.exhaustMap(identity_1.identity);
|
|
76864
|
+
}
|
|
76865
|
+
exports.exhaustAll = exhaustAll;
|
|
76866
|
+
});
|
|
76867
|
+
var require_exhaust = __commonJSMin((exports) => {
|
|
76868
|
+
"use strict";
|
|
76869
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76870
|
+
exports.exhaust = void 0;
|
|
76871
|
+
var exhaustAll_1 = require_exhaustAll();
|
|
76872
|
+
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
76873
|
+
});
|
|
76663
76874
|
var require_expand = __commonJSMin((exports) => {
|
|
76664
76875
|
"use strict";
|
|
76665
76876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77145,6 +77356,51 @@ var require_multicast = __commonJSMin((exports) => {
|
|
|
77145
77356
|
}
|
|
77146
77357
|
exports.multicast = multicast;
|
|
77147
77358
|
});
|
|
77359
|
+
var require_onErrorResumeNextWith = __commonJSMin((exports) => {
|
|
77360
|
+
"use strict";
|
|
77361
|
+
var __read9 = exports && exports.__read || function(o, n) {
|
|
77362
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
77363
|
+
if (!m)
|
|
77364
|
+
return o;
|
|
77365
|
+
var i = m.call(o), r, ar = [], e;
|
|
77366
|
+
try {
|
|
77367
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
77368
|
+
ar.push(r.value);
|
|
77369
|
+
} catch (error) {
|
|
77370
|
+
e = { error };
|
|
77371
|
+
} finally {
|
|
77372
|
+
try {
|
|
77373
|
+
if (r && !r.done && (m = i["return"]))
|
|
77374
|
+
m.call(i);
|
|
77375
|
+
} finally {
|
|
77376
|
+
if (e)
|
|
77377
|
+
throw e.error;
|
|
77378
|
+
}
|
|
77379
|
+
}
|
|
77380
|
+
return ar;
|
|
77381
|
+
};
|
|
77382
|
+
var __spreadArray8 = exports && exports.__spreadArray || function(to, from) {
|
|
77383
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
77384
|
+
to[j] = from[i];
|
|
77385
|
+
return to;
|
|
77386
|
+
};
|
|
77387
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77388
|
+
exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0;
|
|
77389
|
+
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
77390
|
+
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
77391
|
+
function onErrorResumeNextWith() {
|
|
77392
|
+
var sources = [];
|
|
77393
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
77394
|
+
sources[_i] = arguments[_i];
|
|
77395
|
+
}
|
|
77396
|
+
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
77397
|
+
return function(source) {
|
|
77398
|
+
return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray8([source], __read9(nextSources)));
|
|
77399
|
+
};
|
|
77400
|
+
}
|
|
77401
|
+
exports.onErrorResumeNextWith = onErrorResumeNextWith;
|
|
77402
|
+
exports.onErrorResumeNext = onErrorResumeNextWith;
|
|
77403
|
+
});
|
|
77148
77404
|
var require_pairwise = __commonJSMin((exports) => {
|
|
77149
77405
|
"use strict";
|
|
77150
77406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -77652,8 +77908,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77652
77908
|
};
|
|
77653
77909
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77654
77910
|
exports.share = void 0;
|
|
77655
|
-
var
|
|
77656
|
-
var take_1 = require_take();
|
|
77911
|
+
var innerFrom_1 = require_innerFrom();
|
|
77657
77912
|
var Subject_1 = require_Subject();
|
|
77658
77913
|
var Subscriber_1 = require_Subscriber();
|
|
77659
77914
|
var lift_1 = require_lift();
|
|
@@ -77665,19 +77920,19 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77665
77920
|
return new Subject_1.Subject();
|
|
77666
77921
|
} : _a2, _b = options3.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options3.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options3.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
|
|
77667
77922
|
return function(wrapperSource) {
|
|
77668
|
-
var connection
|
|
77669
|
-
var resetConnection
|
|
77670
|
-
var subject
|
|
77923
|
+
var connection;
|
|
77924
|
+
var resetConnection;
|
|
77925
|
+
var subject;
|
|
77671
77926
|
var refCount = 0;
|
|
77672
77927
|
var hasCompleted = false;
|
|
77673
77928
|
var hasErrored = false;
|
|
77674
77929
|
var cancelReset = function() {
|
|
77675
77930
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
77676
|
-
resetConnection =
|
|
77931
|
+
resetConnection = void 0;
|
|
77677
77932
|
};
|
|
77678
77933
|
var reset = function() {
|
|
77679
77934
|
cancelReset();
|
|
77680
|
-
connection = subject =
|
|
77935
|
+
connection = subject = void 0;
|
|
77681
77936
|
hasCompleted = hasErrored = false;
|
|
77682
77937
|
};
|
|
77683
77938
|
var resetAndUnsubscribe = function() {
|
|
@@ -77698,7 +77953,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77698
77953
|
}
|
|
77699
77954
|
});
|
|
77700
77955
|
dest.subscribe(subscriber);
|
|
77701
|
-
if (!connection) {
|
|
77956
|
+
if (!connection && refCount > 0) {
|
|
77702
77957
|
connection = new Subscriber_1.SafeSubscriber({
|
|
77703
77958
|
next: function(value) {
|
|
77704
77959
|
return dest.next(value);
|
|
@@ -77716,7 +77971,7 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77716
77971
|
dest.complete();
|
|
77717
77972
|
}
|
|
77718
77973
|
});
|
|
77719
|
-
|
|
77974
|
+
innerFrom_1.innerFrom(source).subscribe(connection);
|
|
77720
77975
|
}
|
|
77721
77976
|
})(wrapperSource);
|
|
77722
77977
|
};
|
|
@@ -77729,14 +77984,18 @@ var require_share = __commonJSMin((exports) => {
|
|
|
77729
77984
|
}
|
|
77730
77985
|
if (on === true) {
|
|
77731
77986
|
reset();
|
|
77732
|
-
return
|
|
77987
|
+
return;
|
|
77733
77988
|
}
|
|
77734
77989
|
if (on === false) {
|
|
77735
|
-
return
|
|
77990
|
+
return;
|
|
77736
77991
|
}
|
|
77737
|
-
|
|
77738
|
-
|
|
77992
|
+
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
77993
|
+
next: function() {
|
|
77994
|
+
onSubscriber.unsubscribe();
|
|
77995
|
+
reset();
|
|
77996
|
+
}
|
|
77739
77997
|
});
|
|
77998
|
+
return on.apply(void 0, __spreadArray8([], __read9(args))).subscribe(onSubscriber);
|
|
77740
77999
|
}
|
|
77741
78000
|
});
|
|
77742
78001
|
var require_shareReplay = __commonJSMin((exports) => {
|
|
@@ -78730,8 +78989,8 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
78730
78989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78731
78990
|
exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = void 0;
|
|
78732
78991
|
exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = void 0;
|
|
78733
|
-
exports.
|
|
78734
|
-
exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = void 0;
|
|
78992
|
+
exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = void 0;
|
|
78993
|
+
exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = void 0;
|
|
78735
78994
|
var Observable_1 = require_Observable();
|
|
78736
78995
|
Object.defineProperty(exports, "Observable", { enumerable: true, get: function() {
|
|
78737
78996
|
return Observable_1.Observable;
|
|
@@ -78938,7 +79197,7 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
78938
79197
|
Object.defineProperty(exports, "of", { enumerable: true, get: function() {
|
|
78939
79198
|
return of_1.of;
|
|
78940
79199
|
} });
|
|
78941
|
-
var onErrorResumeNext_1 =
|
|
79200
|
+
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
78942
79201
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function() {
|
|
78943
79202
|
return onErrorResumeNext_1.onErrorResumeNext;
|
|
78944
79203
|
} });
|
|
@@ -79211,6 +79470,10 @@ var require_cjs = __commonJSMin((exports) => {
|
|
|
79211
79470
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function() {
|
|
79212
79471
|
return observeOn_1.observeOn;
|
|
79213
79472
|
} });
|
|
79473
|
+
var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
|
|
79474
|
+
Object.defineProperty(exports, "onErrorResumeNextWith", { enumerable: true, get: function() {
|
|
79475
|
+
return onErrorResumeNextWith_1.onErrorResumeNextWith;
|
|
79476
|
+
} });
|
|
79214
79477
|
var pairwise_1 = require_pairwise();
|
|
79215
79478
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function() {
|
|
79216
79479
|
return pairwise_1.pairwise;
|
|
@@ -79708,9 +79971,9 @@ var require_operators = __commonJSMin((exports) => {
|
|
|
79708
79971
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function() {
|
|
79709
79972
|
return observeOn_1.observeOn;
|
|
79710
79973
|
} });
|
|
79711
|
-
var
|
|
79974
|
+
var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
|
|
79712
79975
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function() {
|
|
79713
|
-
return
|
|
79976
|
+
return onErrorResumeNextWith_1.onErrorResumeNext;
|
|
79714
79977
|
} });
|
|
79715
79978
|
var pairwise_1 = require_pairwise();
|
|
79716
79979
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function() {
|
|
@@ -82169,6 +82432,1237 @@ var require_string_width = __commonJSMin((exports, module2) => {
|
|
|
82169
82432
|
module2.exports = stringWidth;
|
|
82170
82433
|
module2.exports.default = stringWidth;
|
|
82171
82434
|
});
|
|
82435
|
+
var require_color_name = __commonJSMin((exports, module2) => {
|
|
82436
|
+
"use strict";
|
|
82437
|
+
module2.exports = {
|
|
82438
|
+
"aliceblue": [240, 248, 255],
|
|
82439
|
+
"antiquewhite": [250, 235, 215],
|
|
82440
|
+
"aqua": [0, 255, 255],
|
|
82441
|
+
"aquamarine": [127, 255, 212],
|
|
82442
|
+
"azure": [240, 255, 255],
|
|
82443
|
+
"beige": [245, 245, 220],
|
|
82444
|
+
"bisque": [255, 228, 196],
|
|
82445
|
+
"black": [0, 0, 0],
|
|
82446
|
+
"blanchedalmond": [255, 235, 205],
|
|
82447
|
+
"blue": [0, 0, 255],
|
|
82448
|
+
"blueviolet": [138, 43, 226],
|
|
82449
|
+
"brown": [165, 42, 42],
|
|
82450
|
+
"burlywood": [222, 184, 135],
|
|
82451
|
+
"cadetblue": [95, 158, 160],
|
|
82452
|
+
"chartreuse": [127, 255, 0],
|
|
82453
|
+
"chocolate": [210, 105, 30],
|
|
82454
|
+
"coral": [255, 127, 80],
|
|
82455
|
+
"cornflowerblue": [100, 149, 237],
|
|
82456
|
+
"cornsilk": [255, 248, 220],
|
|
82457
|
+
"crimson": [220, 20, 60],
|
|
82458
|
+
"cyan": [0, 255, 255],
|
|
82459
|
+
"darkblue": [0, 0, 139],
|
|
82460
|
+
"darkcyan": [0, 139, 139],
|
|
82461
|
+
"darkgoldenrod": [184, 134, 11],
|
|
82462
|
+
"darkgray": [169, 169, 169],
|
|
82463
|
+
"darkgreen": [0, 100, 0],
|
|
82464
|
+
"darkgrey": [169, 169, 169],
|
|
82465
|
+
"darkkhaki": [189, 183, 107],
|
|
82466
|
+
"darkmagenta": [139, 0, 139],
|
|
82467
|
+
"darkolivegreen": [85, 107, 47],
|
|
82468
|
+
"darkorange": [255, 140, 0],
|
|
82469
|
+
"darkorchid": [153, 50, 204],
|
|
82470
|
+
"darkred": [139, 0, 0],
|
|
82471
|
+
"darksalmon": [233, 150, 122],
|
|
82472
|
+
"darkseagreen": [143, 188, 143],
|
|
82473
|
+
"darkslateblue": [72, 61, 139],
|
|
82474
|
+
"darkslategray": [47, 79, 79],
|
|
82475
|
+
"darkslategrey": [47, 79, 79],
|
|
82476
|
+
"darkturquoise": [0, 206, 209],
|
|
82477
|
+
"darkviolet": [148, 0, 211],
|
|
82478
|
+
"deeppink": [255, 20, 147],
|
|
82479
|
+
"deepskyblue": [0, 191, 255],
|
|
82480
|
+
"dimgray": [105, 105, 105],
|
|
82481
|
+
"dimgrey": [105, 105, 105],
|
|
82482
|
+
"dodgerblue": [30, 144, 255],
|
|
82483
|
+
"firebrick": [178, 34, 34],
|
|
82484
|
+
"floralwhite": [255, 250, 240],
|
|
82485
|
+
"forestgreen": [34, 139, 34],
|
|
82486
|
+
"fuchsia": [255, 0, 255],
|
|
82487
|
+
"gainsboro": [220, 220, 220],
|
|
82488
|
+
"ghostwhite": [248, 248, 255],
|
|
82489
|
+
"gold": [255, 215, 0],
|
|
82490
|
+
"goldenrod": [218, 165, 32],
|
|
82491
|
+
"gray": [128, 128, 128],
|
|
82492
|
+
"green": [0, 128, 0],
|
|
82493
|
+
"greenyellow": [173, 255, 47],
|
|
82494
|
+
"grey": [128, 128, 128],
|
|
82495
|
+
"honeydew": [240, 255, 240],
|
|
82496
|
+
"hotpink": [255, 105, 180],
|
|
82497
|
+
"indianred": [205, 92, 92],
|
|
82498
|
+
"indigo": [75, 0, 130],
|
|
82499
|
+
"ivory": [255, 255, 240],
|
|
82500
|
+
"khaki": [240, 230, 140],
|
|
82501
|
+
"lavender": [230, 230, 250],
|
|
82502
|
+
"lavenderblush": [255, 240, 245],
|
|
82503
|
+
"lawngreen": [124, 252, 0],
|
|
82504
|
+
"lemonchiffon": [255, 250, 205],
|
|
82505
|
+
"lightblue": [173, 216, 230],
|
|
82506
|
+
"lightcoral": [240, 128, 128],
|
|
82507
|
+
"lightcyan": [224, 255, 255],
|
|
82508
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
82509
|
+
"lightgray": [211, 211, 211],
|
|
82510
|
+
"lightgreen": [144, 238, 144],
|
|
82511
|
+
"lightgrey": [211, 211, 211],
|
|
82512
|
+
"lightpink": [255, 182, 193],
|
|
82513
|
+
"lightsalmon": [255, 160, 122],
|
|
82514
|
+
"lightseagreen": [32, 178, 170],
|
|
82515
|
+
"lightskyblue": [135, 206, 250],
|
|
82516
|
+
"lightslategray": [119, 136, 153],
|
|
82517
|
+
"lightslategrey": [119, 136, 153],
|
|
82518
|
+
"lightsteelblue": [176, 196, 222],
|
|
82519
|
+
"lightyellow": [255, 255, 224],
|
|
82520
|
+
"lime": [0, 255, 0],
|
|
82521
|
+
"limegreen": [50, 205, 50],
|
|
82522
|
+
"linen": [250, 240, 230],
|
|
82523
|
+
"magenta": [255, 0, 255],
|
|
82524
|
+
"maroon": [128, 0, 0],
|
|
82525
|
+
"mediumaquamarine": [102, 205, 170],
|
|
82526
|
+
"mediumblue": [0, 0, 205],
|
|
82527
|
+
"mediumorchid": [186, 85, 211],
|
|
82528
|
+
"mediumpurple": [147, 112, 219],
|
|
82529
|
+
"mediumseagreen": [60, 179, 113],
|
|
82530
|
+
"mediumslateblue": [123, 104, 238],
|
|
82531
|
+
"mediumspringgreen": [0, 250, 154],
|
|
82532
|
+
"mediumturquoise": [72, 209, 204],
|
|
82533
|
+
"mediumvioletred": [199, 21, 133],
|
|
82534
|
+
"midnightblue": [25, 25, 112],
|
|
82535
|
+
"mintcream": [245, 255, 250],
|
|
82536
|
+
"mistyrose": [255, 228, 225],
|
|
82537
|
+
"moccasin": [255, 228, 181],
|
|
82538
|
+
"navajowhite": [255, 222, 173],
|
|
82539
|
+
"navy": [0, 0, 128],
|
|
82540
|
+
"oldlace": [253, 245, 230],
|
|
82541
|
+
"olive": [128, 128, 0],
|
|
82542
|
+
"olivedrab": [107, 142, 35],
|
|
82543
|
+
"orange": [255, 165, 0],
|
|
82544
|
+
"orangered": [255, 69, 0],
|
|
82545
|
+
"orchid": [218, 112, 214],
|
|
82546
|
+
"palegoldenrod": [238, 232, 170],
|
|
82547
|
+
"palegreen": [152, 251, 152],
|
|
82548
|
+
"paleturquoise": [175, 238, 238],
|
|
82549
|
+
"palevioletred": [219, 112, 147],
|
|
82550
|
+
"papayawhip": [255, 239, 213],
|
|
82551
|
+
"peachpuff": [255, 218, 185],
|
|
82552
|
+
"peru": [205, 133, 63],
|
|
82553
|
+
"pink": [255, 192, 203],
|
|
82554
|
+
"plum": [221, 160, 221],
|
|
82555
|
+
"powderblue": [176, 224, 230],
|
|
82556
|
+
"purple": [128, 0, 128],
|
|
82557
|
+
"rebeccapurple": [102, 51, 153],
|
|
82558
|
+
"red": [255, 0, 0],
|
|
82559
|
+
"rosybrown": [188, 143, 143],
|
|
82560
|
+
"royalblue": [65, 105, 225],
|
|
82561
|
+
"saddlebrown": [139, 69, 19],
|
|
82562
|
+
"salmon": [250, 128, 114],
|
|
82563
|
+
"sandybrown": [244, 164, 96],
|
|
82564
|
+
"seagreen": [46, 139, 87],
|
|
82565
|
+
"seashell": [255, 245, 238],
|
|
82566
|
+
"sienna": [160, 82, 45],
|
|
82567
|
+
"silver": [192, 192, 192],
|
|
82568
|
+
"skyblue": [135, 206, 235],
|
|
82569
|
+
"slateblue": [106, 90, 205],
|
|
82570
|
+
"slategray": [112, 128, 144],
|
|
82571
|
+
"slategrey": [112, 128, 144],
|
|
82572
|
+
"snow": [255, 250, 250],
|
|
82573
|
+
"springgreen": [0, 255, 127],
|
|
82574
|
+
"steelblue": [70, 130, 180],
|
|
82575
|
+
"tan": [210, 180, 140],
|
|
82576
|
+
"teal": [0, 128, 128],
|
|
82577
|
+
"thistle": [216, 191, 216],
|
|
82578
|
+
"tomato": [255, 99, 71],
|
|
82579
|
+
"turquoise": [64, 224, 208],
|
|
82580
|
+
"violet": [238, 130, 238],
|
|
82581
|
+
"wheat": [245, 222, 179],
|
|
82582
|
+
"white": [255, 255, 255],
|
|
82583
|
+
"whitesmoke": [245, 245, 245],
|
|
82584
|
+
"yellow": [255, 255, 0],
|
|
82585
|
+
"yellowgreen": [154, 205, 50]
|
|
82586
|
+
};
|
|
82587
|
+
});
|
|
82588
|
+
var require_conversions = __commonJSMin((exports, module2) => {
|
|
82589
|
+
var cssKeywords = require_color_name();
|
|
82590
|
+
var reverseKeywords = {};
|
|
82591
|
+
for (const key of Object.keys(cssKeywords)) {
|
|
82592
|
+
reverseKeywords[cssKeywords[key]] = key;
|
|
82593
|
+
}
|
|
82594
|
+
var convert = {
|
|
82595
|
+
rgb: { channels: 3, labels: "rgb" },
|
|
82596
|
+
hsl: { channels: 3, labels: "hsl" },
|
|
82597
|
+
hsv: { channels: 3, labels: "hsv" },
|
|
82598
|
+
hwb: { channels: 3, labels: "hwb" },
|
|
82599
|
+
cmyk: { channels: 4, labels: "cmyk" },
|
|
82600
|
+
xyz: { channels: 3, labels: "xyz" },
|
|
82601
|
+
lab: { channels: 3, labels: "lab" },
|
|
82602
|
+
lch: { channels: 3, labels: "lch" },
|
|
82603
|
+
hex: { channels: 1, labels: ["hex"] },
|
|
82604
|
+
keyword: { channels: 1, labels: ["keyword"] },
|
|
82605
|
+
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
82606
|
+
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
82607
|
+
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
82608
|
+
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
82609
|
+
gray: { channels: 1, labels: ["gray"] }
|
|
82610
|
+
};
|
|
82611
|
+
module2.exports = convert;
|
|
82612
|
+
for (const model of Object.keys(convert)) {
|
|
82613
|
+
if (!("channels" in convert[model])) {
|
|
82614
|
+
throw new Error("missing channels property: " + model);
|
|
82615
|
+
}
|
|
82616
|
+
if (!("labels" in convert[model])) {
|
|
82617
|
+
throw new Error("missing channel labels property: " + model);
|
|
82618
|
+
}
|
|
82619
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
|
82620
|
+
throw new Error("channel and label counts mismatch: " + model);
|
|
82621
|
+
}
|
|
82622
|
+
const { channels, labels } = convert[model];
|
|
82623
|
+
delete convert[model].channels;
|
|
82624
|
+
delete convert[model].labels;
|
|
82625
|
+
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
82626
|
+
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
82627
|
+
}
|
|
82628
|
+
convert.rgb.hsl = function(rgb) {
|
|
82629
|
+
const r = rgb[0] / 255;
|
|
82630
|
+
const g = rgb[1] / 255;
|
|
82631
|
+
const b = rgb[2] / 255;
|
|
82632
|
+
const min = Math.min(r, g, b);
|
|
82633
|
+
const max = Math.max(r, g, b);
|
|
82634
|
+
const delta = max - min;
|
|
82635
|
+
let h;
|
|
82636
|
+
let s;
|
|
82637
|
+
if (max === min) {
|
|
82638
|
+
h = 0;
|
|
82639
|
+
} else if (r === max) {
|
|
82640
|
+
h = (g - b) / delta;
|
|
82641
|
+
} else if (g === max) {
|
|
82642
|
+
h = 2 + (b - r) / delta;
|
|
82643
|
+
} else if (b === max) {
|
|
82644
|
+
h = 4 + (r - g) / delta;
|
|
82645
|
+
}
|
|
82646
|
+
h = Math.min(h * 60, 360);
|
|
82647
|
+
if (h < 0) {
|
|
82648
|
+
h += 360;
|
|
82649
|
+
}
|
|
82650
|
+
const l = (min + max) / 2;
|
|
82651
|
+
if (max === min) {
|
|
82652
|
+
s = 0;
|
|
82653
|
+
} else if (l <= 0.5) {
|
|
82654
|
+
s = delta / (max + min);
|
|
82655
|
+
} else {
|
|
82656
|
+
s = delta / (2 - max - min);
|
|
82657
|
+
}
|
|
82658
|
+
return [h, s * 100, l * 100];
|
|
82659
|
+
};
|
|
82660
|
+
convert.rgb.hsv = function(rgb) {
|
|
82661
|
+
let rdif;
|
|
82662
|
+
let gdif;
|
|
82663
|
+
let bdif;
|
|
82664
|
+
let h;
|
|
82665
|
+
let s;
|
|
82666
|
+
const r = rgb[0] / 255;
|
|
82667
|
+
const g = rgb[1] / 255;
|
|
82668
|
+
const b = rgb[2] / 255;
|
|
82669
|
+
const v = Math.max(r, g, b);
|
|
82670
|
+
const diff = v - Math.min(r, g, b);
|
|
82671
|
+
const diffc = function(c) {
|
|
82672
|
+
return (v - c) / 6 / diff + 1 / 2;
|
|
82673
|
+
};
|
|
82674
|
+
if (diff === 0) {
|
|
82675
|
+
h = 0;
|
|
82676
|
+
s = 0;
|
|
82677
|
+
} else {
|
|
82678
|
+
s = diff / v;
|
|
82679
|
+
rdif = diffc(r);
|
|
82680
|
+
gdif = diffc(g);
|
|
82681
|
+
bdif = diffc(b);
|
|
82682
|
+
if (r === v) {
|
|
82683
|
+
h = bdif - gdif;
|
|
82684
|
+
} else if (g === v) {
|
|
82685
|
+
h = 1 / 3 + rdif - bdif;
|
|
82686
|
+
} else if (b === v) {
|
|
82687
|
+
h = 2 / 3 + gdif - rdif;
|
|
82688
|
+
}
|
|
82689
|
+
if (h < 0) {
|
|
82690
|
+
h += 1;
|
|
82691
|
+
} else if (h > 1) {
|
|
82692
|
+
h -= 1;
|
|
82693
|
+
}
|
|
82694
|
+
}
|
|
82695
|
+
return [
|
|
82696
|
+
h * 360,
|
|
82697
|
+
s * 100,
|
|
82698
|
+
v * 100
|
|
82699
|
+
];
|
|
82700
|
+
};
|
|
82701
|
+
convert.rgb.hwb = function(rgb) {
|
|
82702
|
+
const r = rgb[0];
|
|
82703
|
+
const g = rgb[1];
|
|
82704
|
+
let b = rgb[2];
|
|
82705
|
+
const h = convert.rgb.hsl(rgb)[0];
|
|
82706
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
82707
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
82708
|
+
return [h, w * 100, b * 100];
|
|
82709
|
+
};
|
|
82710
|
+
convert.rgb.cmyk = function(rgb) {
|
|
82711
|
+
const r = rgb[0] / 255;
|
|
82712
|
+
const g = rgb[1] / 255;
|
|
82713
|
+
const b = rgb[2] / 255;
|
|
82714
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
82715
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
|
82716
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
|
82717
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
|
82718
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
|
82719
|
+
};
|
|
82720
|
+
function comparativeDistance(x, y) {
|
|
82721
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
82722
|
+
}
|
|
82723
|
+
convert.rgb.keyword = function(rgb) {
|
|
82724
|
+
const reversed = reverseKeywords[rgb];
|
|
82725
|
+
if (reversed) {
|
|
82726
|
+
return reversed;
|
|
82727
|
+
}
|
|
82728
|
+
let currentClosestDistance = Infinity;
|
|
82729
|
+
let currentClosestKeyword;
|
|
82730
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
|
82731
|
+
const value = cssKeywords[keyword];
|
|
82732
|
+
const distance = comparativeDistance(rgb, value);
|
|
82733
|
+
if (distance < currentClosestDistance) {
|
|
82734
|
+
currentClosestDistance = distance;
|
|
82735
|
+
currentClosestKeyword = keyword;
|
|
82736
|
+
}
|
|
82737
|
+
}
|
|
82738
|
+
return currentClosestKeyword;
|
|
82739
|
+
};
|
|
82740
|
+
convert.keyword.rgb = function(keyword) {
|
|
82741
|
+
return cssKeywords[keyword];
|
|
82742
|
+
};
|
|
82743
|
+
convert.rgb.xyz = function(rgb) {
|
|
82744
|
+
let r = rgb[0] / 255;
|
|
82745
|
+
let g = rgb[1] / 255;
|
|
82746
|
+
let b = rgb[2] / 255;
|
|
82747
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
82748
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
82749
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
82750
|
+
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
82751
|
+
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
82752
|
+
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
82753
|
+
return [x * 100, y * 100, z * 100];
|
|
82754
|
+
};
|
|
82755
|
+
convert.rgb.lab = function(rgb) {
|
|
82756
|
+
const xyz = convert.rgb.xyz(rgb);
|
|
82757
|
+
let x = xyz[0];
|
|
82758
|
+
let y = xyz[1];
|
|
82759
|
+
let z = xyz[2];
|
|
82760
|
+
x /= 95.047;
|
|
82761
|
+
y /= 100;
|
|
82762
|
+
z /= 108.883;
|
|
82763
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
82764
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
82765
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
82766
|
+
const l = 116 * y - 16;
|
|
82767
|
+
const a = 500 * (x - y);
|
|
82768
|
+
const b = 200 * (y - z);
|
|
82769
|
+
return [l, a, b];
|
|
82770
|
+
};
|
|
82771
|
+
convert.hsl.rgb = function(hsl) {
|
|
82772
|
+
const h = hsl[0] / 360;
|
|
82773
|
+
const s = hsl[1] / 100;
|
|
82774
|
+
const l = hsl[2] / 100;
|
|
82775
|
+
let t2;
|
|
82776
|
+
let t3;
|
|
82777
|
+
let val;
|
|
82778
|
+
if (s === 0) {
|
|
82779
|
+
val = l * 255;
|
|
82780
|
+
return [val, val, val];
|
|
82781
|
+
}
|
|
82782
|
+
if (l < 0.5) {
|
|
82783
|
+
t2 = l * (1 + s);
|
|
82784
|
+
} else {
|
|
82785
|
+
t2 = l + s - l * s;
|
|
82786
|
+
}
|
|
82787
|
+
const t1 = 2 * l - t2;
|
|
82788
|
+
const rgb = [0, 0, 0];
|
|
82789
|
+
for (let i = 0; i < 3; i++) {
|
|
82790
|
+
t3 = h + 1 / 3 * -(i - 1);
|
|
82791
|
+
if (t3 < 0) {
|
|
82792
|
+
t3++;
|
|
82793
|
+
}
|
|
82794
|
+
if (t3 > 1) {
|
|
82795
|
+
t3--;
|
|
82796
|
+
}
|
|
82797
|
+
if (6 * t3 < 1) {
|
|
82798
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
|
82799
|
+
} else if (2 * t3 < 1) {
|
|
82800
|
+
val = t2;
|
|
82801
|
+
} else if (3 * t3 < 2) {
|
|
82802
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
82803
|
+
} else {
|
|
82804
|
+
val = t1;
|
|
82805
|
+
}
|
|
82806
|
+
rgb[i] = val * 255;
|
|
82807
|
+
}
|
|
82808
|
+
return rgb;
|
|
82809
|
+
};
|
|
82810
|
+
convert.hsl.hsv = function(hsl) {
|
|
82811
|
+
const h = hsl[0];
|
|
82812
|
+
let s = hsl[1] / 100;
|
|
82813
|
+
let l = hsl[2] / 100;
|
|
82814
|
+
let smin = s;
|
|
82815
|
+
const lmin = Math.max(l, 0.01);
|
|
82816
|
+
l *= 2;
|
|
82817
|
+
s *= l <= 1 ? l : 2 - l;
|
|
82818
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
82819
|
+
const v = (l + s) / 2;
|
|
82820
|
+
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
82821
|
+
return [h, sv * 100, v * 100];
|
|
82822
|
+
};
|
|
82823
|
+
convert.hsv.rgb = function(hsv) {
|
|
82824
|
+
const h = hsv[0] / 60;
|
|
82825
|
+
const s = hsv[1] / 100;
|
|
82826
|
+
let v = hsv[2] / 100;
|
|
82827
|
+
const hi = Math.floor(h) % 6;
|
|
82828
|
+
const f = h - Math.floor(h);
|
|
82829
|
+
const p = 255 * v * (1 - s);
|
|
82830
|
+
const q = 255 * v * (1 - s * f);
|
|
82831
|
+
const t = 255 * v * (1 - s * (1 - f));
|
|
82832
|
+
v *= 255;
|
|
82833
|
+
switch (hi) {
|
|
82834
|
+
case 0:
|
|
82835
|
+
return [v, t, p];
|
|
82836
|
+
case 1:
|
|
82837
|
+
return [q, v, p];
|
|
82838
|
+
case 2:
|
|
82839
|
+
return [p, v, t];
|
|
82840
|
+
case 3:
|
|
82841
|
+
return [p, q, v];
|
|
82842
|
+
case 4:
|
|
82843
|
+
return [t, p, v];
|
|
82844
|
+
case 5:
|
|
82845
|
+
return [v, p, q];
|
|
82846
|
+
}
|
|
82847
|
+
};
|
|
82848
|
+
convert.hsv.hsl = function(hsv) {
|
|
82849
|
+
const h = hsv[0];
|
|
82850
|
+
const s = hsv[1] / 100;
|
|
82851
|
+
const v = hsv[2] / 100;
|
|
82852
|
+
const vmin = Math.max(v, 0.01);
|
|
82853
|
+
let sl;
|
|
82854
|
+
let l;
|
|
82855
|
+
l = (2 - s) * v;
|
|
82856
|
+
const lmin = (2 - s) * vmin;
|
|
82857
|
+
sl = s * vmin;
|
|
82858
|
+
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
82859
|
+
sl = sl || 0;
|
|
82860
|
+
l /= 2;
|
|
82861
|
+
return [h, sl * 100, l * 100];
|
|
82862
|
+
};
|
|
82863
|
+
convert.hwb.rgb = function(hwb) {
|
|
82864
|
+
const h = hwb[0] / 360;
|
|
82865
|
+
let wh = hwb[1] / 100;
|
|
82866
|
+
let bl = hwb[2] / 100;
|
|
82867
|
+
const ratio = wh + bl;
|
|
82868
|
+
let f;
|
|
82869
|
+
if (ratio > 1) {
|
|
82870
|
+
wh /= ratio;
|
|
82871
|
+
bl /= ratio;
|
|
82872
|
+
}
|
|
82873
|
+
const i = Math.floor(6 * h);
|
|
82874
|
+
const v = 1 - bl;
|
|
82875
|
+
f = 6 * h - i;
|
|
82876
|
+
if ((i & 1) !== 0) {
|
|
82877
|
+
f = 1 - f;
|
|
82878
|
+
}
|
|
82879
|
+
const n = wh + f * (v - wh);
|
|
82880
|
+
let r;
|
|
82881
|
+
let g;
|
|
82882
|
+
let b;
|
|
82883
|
+
switch (i) {
|
|
82884
|
+
default:
|
|
82885
|
+
case 6:
|
|
82886
|
+
case 0:
|
|
82887
|
+
r = v;
|
|
82888
|
+
g = n;
|
|
82889
|
+
b = wh;
|
|
82890
|
+
break;
|
|
82891
|
+
case 1:
|
|
82892
|
+
r = n;
|
|
82893
|
+
g = v;
|
|
82894
|
+
b = wh;
|
|
82895
|
+
break;
|
|
82896
|
+
case 2:
|
|
82897
|
+
r = wh;
|
|
82898
|
+
g = v;
|
|
82899
|
+
b = n;
|
|
82900
|
+
break;
|
|
82901
|
+
case 3:
|
|
82902
|
+
r = wh;
|
|
82903
|
+
g = n;
|
|
82904
|
+
b = v;
|
|
82905
|
+
break;
|
|
82906
|
+
case 4:
|
|
82907
|
+
r = n;
|
|
82908
|
+
g = wh;
|
|
82909
|
+
b = v;
|
|
82910
|
+
break;
|
|
82911
|
+
case 5:
|
|
82912
|
+
r = v;
|
|
82913
|
+
g = wh;
|
|
82914
|
+
b = n;
|
|
82915
|
+
break;
|
|
82916
|
+
}
|
|
82917
|
+
return [r * 255, g * 255, b * 255];
|
|
82918
|
+
};
|
|
82919
|
+
convert.cmyk.rgb = function(cmyk) {
|
|
82920
|
+
const c = cmyk[0] / 100;
|
|
82921
|
+
const m = cmyk[1] / 100;
|
|
82922
|
+
const y = cmyk[2] / 100;
|
|
82923
|
+
const k = cmyk[3] / 100;
|
|
82924
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
82925
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
82926
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
82927
|
+
return [r * 255, g * 255, b * 255];
|
|
82928
|
+
};
|
|
82929
|
+
convert.xyz.rgb = function(xyz) {
|
|
82930
|
+
const x = xyz[0] / 100;
|
|
82931
|
+
const y = xyz[1] / 100;
|
|
82932
|
+
const z = xyz[2] / 100;
|
|
82933
|
+
let r;
|
|
82934
|
+
let g;
|
|
82935
|
+
let b;
|
|
82936
|
+
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
82937
|
+
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
82938
|
+
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
82939
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
82940
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
82941
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
82942
|
+
r = Math.min(Math.max(0, r), 1);
|
|
82943
|
+
g = Math.min(Math.max(0, g), 1);
|
|
82944
|
+
b = Math.min(Math.max(0, b), 1);
|
|
82945
|
+
return [r * 255, g * 255, b * 255];
|
|
82946
|
+
};
|
|
82947
|
+
convert.xyz.lab = function(xyz) {
|
|
82948
|
+
let x = xyz[0];
|
|
82949
|
+
let y = xyz[1];
|
|
82950
|
+
let z = xyz[2];
|
|
82951
|
+
x /= 95.047;
|
|
82952
|
+
y /= 100;
|
|
82953
|
+
z /= 108.883;
|
|
82954
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
82955
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
82956
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
82957
|
+
const l = 116 * y - 16;
|
|
82958
|
+
const a = 500 * (x - y);
|
|
82959
|
+
const b = 200 * (y - z);
|
|
82960
|
+
return [l, a, b];
|
|
82961
|
+
};
|
|
82962
|
+
convert.lab.xyz = function(lab) {
|
|
82963
|
+
const l = lab[0];
|
|
82964
|
+
const a = lab[1];
|
|
82965
|
+
const b = lab[2];
|
|
82966
|
+
let x;
|
|
82967
|
+
let y;
|
|
82968
|
+
let z;
|
|
82969
|
+
y = (l + 16) / 116;
|
|
82970
|
+
x = a / 500 + y;
|
|
82971
|
+
z = y - b / 200;
|
|
82972
|
+
const y2 = y ** 3;
|
|
82973
|
+
const x2 = x ** 3;
|
|
82974
|
+
const z2 = z ** 3;
|
|
82975
|
+
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
82976
|
+
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
82977
|
+
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
82978
|
+
x *= 95.047;
|
|
82979
|
+
y *= 100;
|
|
82980
|
+
z *= 108.883;
|
|
82981
|
+
return [x, y, z];
|
|
82982
|
+
};
|
|
82983
|
+
convert.lab.lch = function(lab) {
|
|
82984
|
+
const l = lab[0];
|
|
82985
|
+
const a = lab[1];
|
|
82986
|
+
const b = lab[2];
|
|
82987
|
+
let h;
|
|
82988
|
+
const hr = Math.atan2(b, a);
|
|
82989
|
+
h = hr * 360 / 2 / Math.PI;
|
|
82990
|
+
if (h < 0) {
|
|
82991
|
+
h += 360;
|
|
82992
|
+
}
|
|
82993
|
+
const c = Math.sqrt(a * a + b * b);
|
|
82994
|
+
return [l, c, h];
|
|
82995
|
+
};
|
|
82996
|
+
convert.lch.lab = function(lch) {
|
|
82997
|
+
const l = lch[0];
|
|
82998
|
+
const c = lch[1];
|
|
82999
|
+
const h = lch[2];
|
|
83000
|
+
const hr = h / 360 * 2 * Math.PI;
|
|
83001
|
+
const a = c * Math.cos(hr);
|
|
83002
|
+
const b = c * Math.sin(hr);
|
|
83003
|
+
return [l, a, b];
|
|
83004
|
+
};
|
|
83005
|
+
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
83006
|
+
const [r, g, b] = args;
|
|
83007
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
83008
|
+
value = Math.round(value / 50);
|
|
83009
|
+
if (value === 0) {
|
|
83010
|
+
return 30;
|
|
83011
|
+
}
|
|
83012
|
+
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
83013
|
+
if (value === 2) {
|
|
83014
|
+
ansi += 60;
|
|
83015
|
+
}
|
|
83016
|
+
return ansi;
|
|
83017
|
+
};
|
|
83018
|
+
convert.hsv.ansi16 = function(args) {
|
|
83019
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
83020
|
+
};
|
|
83021
|
+
convert.rgb.ansi256 = function(args) {
|
|
83022
|
+
const r = args[0];
|
|
83023
|
+
const g = args[1];
|
|
83024
|
+
const b = args[2];
|
|
83025
|
+
if (r === g && g === b) {
|
|
83026
|
+
if (r < 8) {
|
|
83027
|
+
return 16;
|
|
83028
|
+
}
|
|
83029
|
+
if (r > 248) {
|
|
83030
|
+
return 231;
|
|
83031
|
+
}
|
|
83032
|
+
return Math.round((r - 8) / 247 * 24) + 232;
|
|
83033
|
+
}
|
|
83034
|
+
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
83035
|
+
return ansi;
|
|
83036
|
+
};
|
|
83037
|
+
convert.ansi16.rgb = function(args) {
|
|
83038
|
+
let color = args % 10;
|
|
83039
|
+
if (color === 0 || color === 7) {
|
|
83040
|
+
if (args > 50) {
|
|
83041
|
+
color += 3.5;
|
|
83042
|
+
}
|
|
83043
|
+
color = color / 10.5 * 255;
|
|
83044
|
+
return [color, color, color];
|
|
83045
|
+
}
|
|
83046
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
|
83047
|
+
const r = (color & 1) * mult * 255;
|
|
83048
|
+
const g = (color >> 1 & 1) * mult * 255;
|
|
83049
|
+
const b = (color >> 2 & 1) * mult * 255;
|
|
83050
|
+
return [r, g, b];
|
|
83051
|
+
};
|
|
83052
|
+
convert.ansi256.rgb = function(args) {
|
|
83053
|
+
if (args >= 232) {
|
|
83054
|
+
const c = (args - 232) * 10 + 8;
|
|
83055
|
+
return [c, c, c];
|
|
83056
|
+
}
|
|
83057
|
+
args -= 16;
|
|
83058
|
+
let rem;
|
|
83059
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
|
83060
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
83061
|
+
const b = rem % 6 / 5 * 255;
|
|
83062
|
+
return [r, g, b];
|
|
83063
|
+
};
|
|
83064
|
+
convert.rgb.hex = function(args) {
|
|
83065
|
+
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
83066
|
+
const string = integer.toString(16).toUpperCase();
|
|
83067
|
+
return "000000".substring(string.length) + string;
|
|
83068
|
+
};
|
|
83069
|
+
convert.hex.rgb = function(args) {
|
|
83070
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
83071
|
+
if (!match) {
|
|
83072
|
+
return [0, 0, 0];
|
|
83073
|
+
}
|
|
83074
|
+
let colorString = match[0];
|
|
83075
|
+
if (match[0].length === 3) {
|
|
83076
|
+
colorString = colorString.split("").map((char) => {
|
|
83077
|
+
return char + char;
|
|
83078
|
+
}).join("");
|
|
83079
|
+
}
|
|
83080
|
+
const integer = parseInt(colorString, 16);
|
|
83081
|
+
const r = integer >> 16 & 255;
|
|
83082
|
+
const g = integer >> 8 & 255;
|
|
83083
|
+
const b = integer & 255;
|
|
83084
|
+
return [r, g, b];
|
|
83085
|
+
};
|
|
83086
|
+
convert.rgb.hcg = function(rgb) {
|
|
83087
|
+
const r = rgb[0] / 255;
|
|
83088
|
+
const g = rgb[1] / 255;
|
|
83089
|
+
const b = rgb[2] / 255;
|
|
83090
|
+
const max = Math.max(Math.max(r, g), b);
|
|
83091
|
+
const min = Math.min(Math.min(r, g), b);
|
|
83092
|
+
const chroma = max - min;
|
|
83093
|
+
let grayscale;
|
|
83094
|
+
let hue;
|
|
83095
|
+
if (chroma < 1) {
|
|
83096
|
+
grayscale = min / (1 - chroma);
|
|
83097
|
+
} else {
|
|
83098
|
+
grayscale = 0;
|
|
83099
|
+
}
|
|
83100
|
+
if (chroma <= 0) {
|
|
83101
|
+
hue = 0;
|
|
83102
|
+
} else if (max === r) {
|
|
83103
|
+
hue = (g - b) / chroma % 6;
|
|
83104
|
+
} else if (max === g) {
|
|
83105
|
+
hue = 2 + (b - r) / chroma;
|
|
83106
|
+
} else {
|
|
83107
|
+
hue = 4 + (r - g) / chroma;
|
|
83108
|
+
}
|
|
83109
|
+
hue /= 6;
|
|
83110
|
+
hue %= 1;
|
|
83111
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
|
83112
|
+
};
|
|
83113
|
+
convert.hsl.hcg = function(hsl) {
|
|
83114
|
+
const s = hsl[1] / 100;
|
|
83115
|
+
const l = hsl[2] / 100;
|
|
83116
|
+
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
83117
|
+
let f = 0;
|
|
83118
|
+
if (c < 1) {
|
|
83119
|
+
f = (l - 0.5 * c) / (1 - c);
|
|
83120
|
+
}
|
|
83121
|
+
return [hsl[0], c * 100, f * 100];
|
|
83122
|
+
};
|
|
83123
|
+
convert.hsv.hcg = function(hsv) {
|
|
83124
|
+
const s = hsv[1] / 100;
|
|
83125
|
+
const v = hsv[2] / 100;
|
|
83126
|
+
const c = s * v;
|
|
83127
|
+
let f = 0;
|
|
83128
|
+
if (c < 1) {
|
|
83129
|
+
f = (v - c) / (1 - c);
|
|
83130
|
+
}
|
|
83131
|
+
return [hsv[0], c * 100, f * 100];
|
|
83132
|
+
};
|
|
83133
|
+
convert.hcg.rgb = function(hcg) {
|
|
83134
|
+
const h = hcg[0] / 360;
|
|
83135
|
+
const c = hcg[1] / 100;
|
|
83136
|
+
const g = hcg[2] / 100;
|
|
83137
|
+
if (c === 0) {
|
|
83138
|
+
return [g * 255, g * 255, g * 255];
|
|
83139
|
+
}
|
|
83140
|
+
const pure = [0, 0, 0];
|
|
83141
|
+
const hi = h % 1 * 6;
|
|
83142
|
+
const v = hi % 1;
|
|
83143
|
+
const w = 1 - v;
|
|
83144
|
+
let mg = 0;
|
|
83145
|
+
switch (Math.floor(hi)) {
|
|
83146
|
+
case 0:
|
|
83147
|
+
pure[0] = 1;
|
|
83148
|
+
pure[1] = v;
|
|
83149
|
+
pure[2] = 0;
|
|
83150
|
+
break;
|
|
83151
|
+
case 1:
|
|
83152
|
+
pure[0] = w;
|
|
83153
|
+
pure[1] = 1;
|
|
83154
|
+
pure[2] = 0;
|
|
83155
|
+
break;
|
|
83156
|
+
case 2:
|
|
83157
|
+
pure[0] = 0;
|
|
83158
|
+
pure[1] = 1;
|
|
83159
|
+
pure[2] = v;
|
|
83160
|
+
break;
|
|
83161
|
+
case 3:
|
|
83162
|
+
pure[0] = 0;
|
|
83163
|
+
pure[1] = w;
|
|
83164
|
+
pure[2] = 1;
|
|
83165
|
+
break;
|
|
83166
|
+
case 4:
|
|
83167
|
+
pure[0] = v;
|
|
83168
|
+
pure[1] = 0;
|
|
83169
|
+
pure[2] = 1;
|
|
83170
|
+
break;
|
|
83171
|
+
default:
|
|
83172
|
+
pure[0] = 1;
|
|
83173
|
+
pure[1] = 0;
|
|
83174
|
+
pure[2] = w;
|
|
83175
|
+
}
|
|
83176
|
+
mg = (1 - c) * g;
|
|
83177
|
+
return [
|
|
83178
|
+
(c * pure[0] + mg) * 255,
|
|
83179
|
+
(c * pure[1] + mg) * 255,
|
|
83180
|
+
(c * pure[2] + mg) * 255
|
|
83181
|
+
];
|
|
83182
|
+
};
|
|
83183
|
+
convert.hcg.hsv = function(hcg) {
|
|
83184
|
+
const c = hcg[1] / 100;
|
|
83185
|
+
const g = hcg[2] / 100;
|
|
83186
|
+
const v = c + g * (1 - c);
|
|
83187
|
+
let f = 0;
|
|
83188
|
+
if (v > 0) {
|
|
83189
|
+
f = c / v;
|
|
83190
|
+
}
|
|
83191
|
+
return [hcg[0], f * 100, v * 100];
|
|
83192
|
+
};
|
|
83193
|
+
convert.hcg.hsl = function(hcg) {
|
|
83194
|
+
const c = hcg[1] / 100;
|
|
83195
|
+
const g = hcg[2] / 100;
|
|
83196
|
+
const l = g * (1 - c) + 0.5 * c;
|
|
83197
|
+
let s = 0;
|
|
83198
|
+
if (l > 0 && l < 0.5) {
|
|
83199
|
+
s = c / (2 * l);
|
|
83200
|
+
} else if (l >= 0.5 && l < 1) {
|
|
83201
|
+
s = c / (2 * (1 - l));
|
|
83202
|
+
}
|
|
83203
|
+
return [hcg[0], s * 100, l * 100];
|
|
83204
|
+
};
|
|
83205
|
+
convert.hcg.hwb = function(hcg) {
|
|
83206
|
+
const c = hcg[1] / 100;
|
|
83207
|
+
const g = hcg[2] / 100;
|
|
83208
|
+
const v = c + g * (1 - c);
|
|
83209
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
83210
|
+
};
|
|
83211
|
+
convert.hwb.hcg = function(hwb) {
|
|
83212
|
+
const w = hwb[1] / 100;
|
|
83213
|
+
const b = hwb[2] / 100;
|
|
83214
|
+
const v = 1 - b;
|
|
83215
|
+
const c = v - w;
|
|
83216
|
+
let g = 0;
|
|
83217
|
+
if (c < 1) {
|
|
83218
|
+
g = (v - c) / (1 - c);
|
|
83219
|
+
}
|
|
83220
|
+
return [hwb[0], c * 100, g * 100];
|
|
83221
|
+
};
|
|
83222
|
+
convert.apple.rgb = function(apple) {
|
|
83223
|
+
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
83224
|
+
};
|
|
83225
|
+
convert.rgb.apple = function(rgb) {
|
|
83226
|
+
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
83227
|
+
};
|
|
83228
|
+
convert.gray.rgb = function(args) {
|
|
83229
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
83230
|
+
};
|
|
83231
|
+
convert.gray.hsl = function(args) {
|
|
83232
|
+
return [0, 0, args[0]];
|
|
83233
|
+
};
|
|
83234
|
+
convert.gray.hsv = convert.gray.hsl;
|
|
83235
|
+
convert.gray.hwb = function(gray) {
|
|
83236
|
+
return [0, 100, gray[0]];
|
|
83237
|
+
};
|
|
83238
|
+
convert.gray.cmyk = function(gray) {
|
|
83239
|
+
return [0, 0, 0, gray[0]];
|
|
83240
|
+
};
|
|
83241
|
+
convert.gray.lab = function(gray) {
|
|
83242
|
+
return [gray[0], 0, 0];
|
|
83243
|
+
};
|
|
83244
|
+
convert.gray.hex = function(gray) {
|
|
83245
|
+
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
83246
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
83247
|
+
const string = integer.toString(16).toUpperCase();
|
|
83248
|
+
return "000000".substring(string.length) + string;
|
|
83249
|
+
};
|
|
83250
|
+
convert.rgb.gray = function(rgb) {
|
|
83251
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
83252
|
+
return [val / 255 * 100];
|
|
83253
|
+
};
|
|
83254
|
+
});
|
|
83255
|
+
var require_route = __commonJSMin((exports, module2) => {
|
|
83256
|
+
var conversions = require_conversions();
|
|
83257
|
+
function buildGraph() {
|
|
83258
|
+
const graph = {};
|
|
83259
|
+
const models = Object.keys(conversions);
|
|
83260
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
83261
|
+
graph[models[i]] = {
|
|
83262
|
+
distance: -1,
|
|
83263
|
+
parent: null
|
|
83264
|
+
};
|
|
83265
|
+
}
|
|
83266
|
+
return graph;
|
|
83267
|
+
}
|
|
83268
|
+
function deriveBFS(fromModel) {
|
|
83269
|
+
const graph = buildGraph();
|
|
83270
|
+
const queue = [fromModel];
|
|
83271
|
+
graph[fromModel].distance = 0;
|
|
83272
|
+
while (queue.length) {
|
|
83273
|
+
const current = queue.pop();
|
|
83274
|
+
const adjacents = Object.keys(conversions[current]);
|
|
83275
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
83276
|
+
const adjacent = adjacents[i];
|
|
83277
|
+
const node = graph[adjacent];
|
|
83278
|
+
if (node.distance === -1) {
|
|
83279
|
+
node.distance = graph[current].distance + 1;
|
|
83280
|
+
node.parent = current;
|
|
83281
|
+
queue.unshift(adjacent);
|
|
83282
|
+
}
|
|
83283
|
+
}
|
|
83284
|
+
}
|
|
83285
|
+
return graph;
|
|
83286
|
+
}
|
|
83287
|
+
function link(from, to) {
|
|
83288
|
+
return function(args) {
|
|
83289
|
+
return to(from(args));
|
|
83290
|
+
};
|
|
83291
|
+
}
|
|
83292
|
+
function wrapConversion(toModel, graph) {
|
|
83293
|
+
const path6 = [graph[toModel].parent, toModel];
|
|
83294
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
83295
|
+
let cur = graph[toModel].parent;
|
|
83296
|
+
while (graph[cur].parent) {
|
|
83297
|
+
path6.unshift(graph[cur].parent);
|
|
83298
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
83299
|
+
cur = graph[cur].parent;
|
|
83300
|
+
}
|
|
83301
|
+
fn.conversion = path6;
|
|
83302
|
+
return fn;
|
|
83303
|
+
}
|
|
83304
|
+
module2.exports = function(fromModel) {
|
|
83305
|
+
const graph = deriveBFS(fromModel);
|
|
83306
|
+
const conversion = {};
|
|
83307
|
+
const models = Object.keys(graph);
|
|
83308
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
83309
|
+
const toModel = models[i];
|
|
83310
|
+
const node = graph[toModel];
|
|
83311
|
+
if (node.parent === null) {
|
|
83312
|
+
continue;
|
|
83313
|
+
}
|
|
83314
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
|
83315
|
+
}
|
|
83316
|
+
return conversion;
|
|
83317
|
+
};
|
|
83318
|
+
});
|
|
83319
|
+
var require_color_convert = __commonJSMin((exports, module2) => {
|
|
83320
|
+
var conversions = require_conversions();
|
|
83321
|
+
var route = require_route();
|
|
83322
|
+
var convert = {};
|
|
83323
|
+
var models = Object.keys(conversions);
|
|
83324
|
+
function wrapRaw(fn) {
|
|
83325
|
+
const wrappedFn = function(...args) {
|
|
83326
|
+
const arg0 = args[0];
|
|
83327
|
+
if (arg0 === void 0 || arg0 === null) {
|
|
83328
|
+
return arg0;
|
|
83329
|
+
}
|
|
83330
|
+
if (arg0.length > 1) {
|
|
83331
|
+
args = arg0;
|
|
83332
|
+
}
|
|
83333
|
+
return fn(args);
|
|
83334
|
+
};
|
|
83335
|
+
if ("conversion" in fn) {
|
|
83336
|
+
wrappedFn.conversion = fn.conversion;
|
|
83337
|
+
}
|
|
83338
|
+
return wrappedFn;
|
|
83339
|
+
}
|
|
83340
|
+
function wrapRounded(fn) {
|
|
83341
|
+
const wrappedFn = function(...args) {
|
|
83342
|
+
const arg0 = args[0];
|
|
83343
|
+
if (arg0 === void 0 || arg0 === null) {
|
|
83344
|
+
return arg0;
|
|
83345
|
+
}
|
|
83346
|
+
if (arg0.length > 1) {
|
|
83347
|
+
args = arg0;
|
|
83348
|
+
}
|
|
83349
|
+
const result = fn(args);
|
|
83350
|
+
if (typeof result === "object") {
|
|
83351
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
|
83352
|
+
result[i] = Math.round(result[i]);
|
|
83353
|
+
}
|
|
83354
|
+
}
|
|
83355
|
+
return result;
|
|
83356
|
+
};
|
|
83357
|
+
if ("conversion" in fn) {
|
|
83358
|
+
wrappedFn.conversion = fn.conversion;
|
|
83359
|
+
}
|
|
83360
|
+
return wrappedFn;
|
|
83361
|
+
}
|
|
83362
|
+
models.forEach((fromModel) => {
|
|
83363
|
+
convert[fromModel] = {};
|
|
83364
|
+
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
83365
|
+
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
83366
|
+
const routes = route(fromModel);
|
|
83367
|
+
const routeModels = Object.keys(routes);
|
|
83368
|
+
routeModels.forEach((toModel) => {
|
|
83369
|
+
const fn = routes[toModel];
|
|
83370
|
+
convert[fromModel][toModel] = wrapRounded(fn);
|
|
83371
|
+
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
83372
|
+
});
|
|
83373
|
+
});
|
|
83374
|
+
module2.exports = convert;
|
|
83375
|
+
});
|
|
83376
|
+
var require_ansi_styles = __commonJSMin((exports, module2) => {
|
|
83377
|
+
"use strict";
|
|
83378
|
+
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
83379
|
+
const code = fn(...args);
|
|
83380
|
+
return `\x1B[${code + offset}m`;
|
|
83381
|
+
};
|
|
83382
|
+
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
83383
|
+
const code = fn(...args);
|
|
83384
|
+
return `\x1B[${38 + offset};5;${code}m`;
|
|
83385
|
+
};
|
|
83386
|
+
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
83387
|
+
const rgb = fn(...args);
|
|
83388
|
+
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
83389
|
+
};
|
|
83390
|
+
var ansi2ansi = (n) => n;
|
|
83391
|
+
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
83392
|
+
var setLazyProperty = (object, property, get4) => {
|
|
83393
|
+
Object.defineProperty(object, property, {
|
|
83394
|
+
get: () => {
|
|
83395
|
+
const value = get4();
|
|
83396
|
+
Object.defineProperty(object, property, {
|
|
83397
|
+
value,
|
|
83398
|
+
enumerable: true,
|
|
83399
|
+
configurable: true
|
|
83400
|
+
});
|
|
83401
|
+
return value;
|
|
83402
|
+
},
|
|
83403
|
+
enumerable: true,
|
|
83404
|
+
configurable: true
|
|
83405
|
+
});
|
|
83406
|
+
};
|
|
83407
|
+
var colorConvert;
|
|
83408
|
+
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
83409
|
+
if (colorConvert === void 0) {
|
|
83410
|
+
colorConvert = require_color_convert();
|
|
83411
|
+
}
|
|
83412
|
+
const offset = isBackground ? 10 : 0;
|
|
83413
|
+
const styles = {};
|
|
83414
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
83415
|
+
const name5 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
83416
|
+
if (sourceSpace === targetSpace) {
|
|
83417
|
+
styles[name5] = wrap(identity, offset);
|
|
83418
|
+
} else if (typeof suite === "object") {
|
|
83419
|
+
styles[name5] = wrap(suite[targetSpace], offset);
|
|
83420
|
+
}
|
|
83421
|
+
}
|
|
83422
|
+
return styles;
|
|
83423
|
+
};
|
|
83424
|
+
function assembleStyles() {
|
|
83425
|
+
const codes = /* @__PURE__ */ new Map();
|
|
83426
|
+
const styles = {
|
|
83427
|
+
modifier: {
|
|
83428
|
+
reset: [0, 0],
|
|
83429
|
+
bold: [1, 22],
|
|
83430
|
+
dim: [2, 22],
|
|
83431
|
+
italic: [3, 23],
|
|
83432
|
+
underline: [4, 24],
|
|
83433
|
+
inverse: [7, 27],
|
|
83434
|
+
hidden: [8, 28],
|
|
83435
|
+
strikethrough: [9, 29]
|
|
83436
|
+
},
|
|
83437
|
+
color: {
|
|
83438
|
+
black: [30, 39],
|
|
83439
|
+
red: [31, 39],
|
|
83440
|
+
green: [32, 39],
|
|
83441
|
+
yellow: [33, 39],
|
|
83442
|
+
blue: [34, 39],
|
|
83443
|
+
magenta: [35, 39],
|
|
83444
|
+
cyan: [36, 39],
|
|
83445
|
+
white: [37, 39],
|
|
83446
|
+
blackBright: [90, 39],
|
|
83447
|
+
redBright: [91, 39],
|
|
83448
|
+
greenBright: [92, 39],
|
|
83449
|
+
yellowBright: [93, 39],
|
|
83450
|
+
blueBright: [94, 39],
|
|
83451
|
+
magentaBright: [95, 39],
|
|
83452
|
+
cyanBright: [96, 39],
|
|
83453
|
+
whiteBright: [97, 39]
|
|
83454
|
+
},
|
|
83455
|
+
bgColor: {
|
|
83456
|
+
bgBlack: [40, 49],
|
|
83457
|
+
bgRed: [41, 49],
|
|
83458
|
+
bgGreen: [42, 49],
|
|
83459
|
+
bgYellow: [43, 49],
|
|
83460
|
+
bgBlue: [44, 49],
|
|
83461
|
+
bgMagenta: [45, 49],
|
|
83462
|
+
bgCyan: [46, 49],
|
|
83463
|
+
bgWhite: [47, 49],
|
|
83464
|
+
bgBlackBright: [100, 49],
|
|
83465
|
+
bgRedBright: [101, 49],
|
|
83466
|
+
bgGreenBright: [102, 49],
|
|
83467
|
+
bgYellowBright: [103, 49],
|
|
83468
|
+
bgBlueBright: [104, 49],
|
|
83469
|
+
bgMagentaBright: [105, 49],
|
|
83470
|
+
bgCyanBright: [106, 49],
|
|
83471
|
+
bgWhiteBright: [107, 49]
|
|
83472
|
+
}
|
|
83473
|
+
};
|
|
83474
|
+
styles.color.gray = styles.color.blackBright;
|
|
83475
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
83476
|
+
styles.color.grey = styles.color.blackBright;
|
|
83477
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
83478
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
83479
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
83480
|
+
styles[styleName] = {
|
|
83481
|
+
open: `\x1B[${style[0]}m`,
|
|
83482
|
+
close: `\x1B[${style[1]}m`
|
|
83483
|
+
};
|
|
83484
|
+
group[styleName] = styles[styleName];
|
|
83485
|
+
codes.set(style[0], style[1]);
|
|
83486
|
+
}
|
|
83487
|
+
Object.defineProperty(styles, groupName, {
|
|
83488
|
+
value: group,
|
|
83489
|
+
enumerable: false
|
|
83490
|
+
});
|
|
83491
|
+
}
|
|
83492
|
+
Object.defineProperty(styles, "codes", {
|
|
83493
|
+
value: codes,
|
|
83494
|
+
enumerable: false
|
|
83495
|
+
});
|
|
83496
|
+
styles.color.close = "\x1B[39m";
|
|
83497
|
+
styles.bgColor.close = "\x1B[49m";
|
|
83498
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
83499
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
83500
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
83501
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
83502
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
83503
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
83504
|
+
return styles;
|
|
83505
|
+
}
|
|
83506
|
+
Object.defineProperty(module2, "exports", {
|
|
83507
|
+
enumerable: true,
|
|
83508
|
+
get: assembleStyles
|
|
83509
|
+
});
|
|
83510
|
+
});
|
|
83511
|
+
var require_wrap_ansi = __commonJSMin((exports, module2) => {
|
|
83512
|
+
"use strict";
|
|
83513
|
+
var stringWidth = require_string_width();
|
|
83514
|
+
var stripAnsi2 = require_strip_ansi2();
|
|
83515
|
+
var ansiStyles = require_ansi_styles();
|
|
83516
|
+
var ESCAPES = /* @__PURE__ */ new Set([
|
|
83517
|
+
"\x1B",
|
|
83518
|
+
"\x9B"
|
|
83519
|
+
]);
|
|
83520
|
+
var END_CODE = 39;
|
|
83521
|
+
var ANSI_ESCAPE_BELL = "\x07";
|
|
83522
|
+
var ANSI_CSI = "[";
|
|
83523
|
+
var ANSI_OSC = "]";
|
|
83524
|
+
var ANSI_SGR_TERMINATOR = "m";
|
|
83525
|
+
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
83526
|
+
var wrapAnsi = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
83527
|
+
var wrapAnsiHyperlink = (uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`;
|
|
83528
|
+
var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
|
|
83529
|
+
var wrapWord = (rows, word, columns) => {
|
|
83530
|
+
const characters = [...word];
|
|
83531
|
+
let isInsideEscape = false;
|
|
83532
|
+
let isInsideLinkEscape = false;
|
|
83533
|
+
let visible = stringWidth(stripAnsi2(rows[rows.length - 1]));
|
|
83534
|
+
for (const [index, character] of characters.entries()) {
|
|
83535
|
+
const characterLength = stringWidth(character);
|
|
83536
|
+
if (visible + characterLength <= columns) {
|
|
83537
|
+
rows[rows.length - 1] += character;
|
|
83538
|
+
} else {
|
|
83539
|
+
rows.push(character);
|
|
83540
|
+
visible = 0;
|
|
83541
|
+
}
|
|
83542
|
+
if (ESCAPES.has(character)) {
|
|
83543
|
+
isInsideEscape = true;
|
|
83544
|
+
isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
|
|
83545
|
+
}
|
|
83546
|
+
if (isInsideEscape) {
|
|
83547
|
+
if (isInsideLinkEscape) {
|
|
83548
|
+
if (character === ANSI_ESCAPE_BELL) {
|
|
83549
|
+
isInsideEscape = false;
|
|
83550
|
+
isInsideLinkEscape = false;
|
|
83551
|
+
}
|
|
83552
|
+
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
83553
|
+
isInsideEscape = false;
|
|
83554
|
+
}
|
|
83555
|
+
continue;
|
|
83556
|
+
}
|
|
83557
|
+
visible += characterLength;
|
|
83558
|
+
if (visible === columns && index < characters.length - 1) {
|
|
83559
|
+
rows.push("");
|
|
83560
|
+
visible = 0;
|
|
83561
|
+
}
|
|
83562
|
+
}
|
|
83563
|
+
if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
|
|
83564
|
+
rows[rows.length - 2] += rows.pop();
|
|
83565
|
+
}
|
|
83566
|
+
};
|
|
83567
|
+
var stringVisibleTrimSpacesRight = (string) => {
|
|
83568
|
+
const words = string.split(" ");
|
|
83569
|
+
let last = words.length;
|
|
83570
|
+
while (last > 0) {
|
|
83571
|
+
if (stringWidth(words[last - 1]) > 0) {
|
|
83572
|
+
break;
|
|
83573
|
+
}
|
|
83574
|
+
last--;
|
|
83575
|
+
}
|
|
83576
|
+
if (last === words.length) {
|
|
83577
|
+
return string;
|
|
83578
|
+
}
|
|
83579
|
+
return words.slice(0, last).join(" ") + words.slice(last).join("");
|
|
83580
|
+
};
|
|
83581
|
+
var exec = (string, columns, options3 = {}) => {
|
|
83582
|
+
if (options3.trim !== false && string.trim() === "") {
|
|
83583
|
+
return "";
|
|
83584
|
+
}
|
|
83585
|
+
let returnValue = "";
|
|
83586
|
+
let escapeCode;
|
|
83587
|
+
let escapeUrl;
|
|
83588
|
+
const lengths = wordLengths(string);
|
|
83589
|
+
let rows = [""];
|
|
83590
|
+
for (const [index, word] of string.split(" ").entries()) {
|
|
83591
|
+
if (options3.trim !== false) {
|
|
83592
|
+
rows[rows.length - 1] = rows[rows.length - 1].trimStart();
|
|
83593
|
+
}
|
|
83594
|
+
let rowLength = stringWidth(rows[rows.length - 1]);
|
|
83595
|
+
if (index !== 0) {
|
|
83596
|
+
if (rowLength >= columns && (options3.wordWrap === false || options3.trim === false)) {
|
|
83597
|
+
rows.push("");
|
|
83598
|
+
rowLength = 0;
|
|
83599
|
+
}
|
|
83600
|
+
if (rowLength > 0 || options3.trim === false) {
|
|
83601
|
+
rows[rows.length - 1] += " ";
|
|
83602
|
+
rowLength++;
|
|
83603
|
+
}
|
|
83604
|
+
}
|
|
83605
|
+
if (options3.hard && lengths[index] > columns) {
|
|
83606
|
+
const remainingColumns = columns - rowLength;
|
|
83607
|
+
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
83608
|
+
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
83609
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
83610
|
+
rows.push("");
|
|
83611
|
+
}
|
|
83612
|
+
wrapWord(rows, word, columns);
|
|
83613
|
+
continue;
|
|
83614
|
+
}
|
|
83615
|
+
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
83616
|
+
if (options3.wordWrap === false && rowLength < columns) {
|
|
83617
|
+
wrapWord(rows, word, columns);
|
|
83618
|
+
continue;
|
|
83619
|
+
}
|
|
83620
|
+
rows.push("");
|
|
83621
|
+
}
|
|
83622
|
+
if (rowLength + lengths[index] > columns && options3.wordWrap === false) {
|
|
83623
|
+
wrapWord(rows, word, columns);
|
|
83624
|
+
continue;
|
|
83625
|
+
}
|
|
83626
|
+
rows[rows.length - 1] += word;
|
|
83627
|
+
}
|
|
83628
|
+
if (options3.trim !== false) {
|
|
83629
|
+
rows = rows.map(stringVisibleTrimSpacesRight);
|
|
83630
|
+
}
|
|
83631
|
+
const pre = [...rows.join("\n")];
|
|
83632
|
+
for (const [index, character] of pre.entries()) {
|
|
83633
|
+
returnValue += character;
|
|
83634
|
+
if (ESCAPES.has(character)) {
|
|
83635
|
+
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
|
|
83636
|
+
if (groups.code !== void 0) {
|
|
83637
|
+
const code2 = Number.parseFloat(groups.code);
|
|
83638
|
+
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
83639
|
+
} else if (groups.uri !== void 0) {
|
|
83640
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
83641
|
+
}
|
|
83642
|
+
}
|
|
83643
|
+
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
83644
|
+
if (pre[index + 1] === "\n") {
|
|
83645
|
+
if (escapeUrl) {
|
|
83646
|
+
returnValue += wrapAnsiHyperlink("");
|
|
83647
|
+
}
|
|
83648
|
+
if (escapeCode && code) {
|
|
83649
|
+
returnValue += wrapAnsi(code);
|
|
83650
|
+
}
|
|
83651
|
+
} else if (character === "\n") {
|
|
83652
|
+
if (escapeCode && code) {
|
|
83653
|
+
returnValue += wrapAnsi(escapeCode);
|
|
83654
|
+
}
|
|
83655
|
+
if (escapeUrl) {
|
|
83656
|
+
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
83657
|
+
}
|
|
83658
|
+
}
|
|
83659
|
+
}
|
|
83660
|
+
return returnValue;
|
|
83661
|
+
};
|
|
83662
|
+
module2.exports = (string, columns, options3) => {
|
|
83663
|
+
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line3) => exec(line3, columns, options3)).join("\n");
|
|
83664
|
+
};
|
|
83665
|
+
});
|
|
82172
83666
|
var spinners_exports = {};
|
|
82173
83667
|
__export2(spinners_exports, {
|
|
82174
83668
|
aesthetic: () => aesthetic,
|
|
@@ -82195,6 +83689,7 @@ __export2(spinners_exports, {
|
|
|
82195
83689
|
dots10: () => dots10,
|
|
82196
83690
|
dots11: () => dots11,
|
|
82197
83691
|
dots12: () => dots12,
|
|
83692
|
+
dots13: () => dots13,
|
|
82198
83693
|
dots2: () => dots2,
|
|
82199
83694
|
dots3: () => dots3,
|
|
82200
83695
|
dots4: () => dots4,
|
|
@@ -82228,6 +83723,7 @@ __export2(spinners_exports, {
|
|
|
82228
83723
|
point: () => point,
|
|
82229
83724
|
pong: () => pong,
|
|
82230
83725
|
runner: () => runner,
|
|
83726
|
+
sand: () => sand,
|
|
82231
83727
|
shark: () => shark,
|
|
82232
83728
|
simpleDots: () => simpleDots,
|
|
82233
83729
|
simpleDotsScrolling: () => simpleDotsScrolling,
|
|
@@ -82255,7 +83751,7 @@ __export2(spinners_exports, {
|
|
|
82255
83751
|
triangle: () => triangle,
|
|
82256
83752
|
weather: () => weather
|
|
82257
83753
|
});
|
|
82258
|
-
var dots, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots9, dots10, dots11, dots12, dots8Bit, line, line2, pipe, simpleDots, simpleDotsScrolling, star, star2, flip, hamburger, growVertical, growHorizontal, balloon, balloon2, noise, bounce, boxBounce, boxBounce2, triangle, arc, circle, squareCorners, circleQuarters, circleHalves, squish, toggle, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, toggle10, toggle11, toggle12, toggle13, arrow, arrow2, arrow3, bouncingBar, bouncingBall, smiley, monkey, hearts, clock, earth, material, moon, runner, pong, shark, dqpb, weather, christmas, grenade, point, layer, betaWave, fingerDance, fistBump, soccerHeader, mindblown, speaker, orangePulse, bluePulse, orangeBluePulse, timeTravel, aesthetic, spinners_default;
|
|
83754
|
+
var dots, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots9, dots10, dots11, dots12, dots13, dots8Bit, sand, line, line2, pipe, simpleDots, simpleDotsScrolling, star, star2, flip, hamburger, growVertical, growHorizontal, balloon, balloon2, noise, bounce, boxBounce, boxBounce2, triangle, arc, circle, squareCorners, circleQuarters, circleHalves, squish, toggle, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, toggle10, toggle11, toggle12, toggle13, arrow, arrow2, arrow3, bouncingBar, bouncingBall, smiley, monkey, hearts, clock, earth, material, moon, runner, pong, shark, dqpb, weather, christmas, grenade, point, layer, betaWave, fingerDance, fistBump, soccerHeader, mindblown, speaker, orangePulse, bluePulse, orangeBluePulse, timeTravel, aesthetic, spinners_default;
|
|
82259
83755
|
var init_spinners = __esmMin(() => {
|
|
82260
83756
|
dots = {
|
|
82261
83757
|
interval: 80,
|
|
@@ -82532,6 +84028,19 @@ var init_spinners = __esmMin(() => {
|
|
|
82532
84028
|
"\u2800\u2840"
|
|
82533
84029
|
]
|
|
82534
84030
|
};
|
|
84031
|
+
dots13 = {
|
|
84032
|
+
interval: 80,
|
|
84033
|
+
frames: [
|
|
84034
|
+
"\u28FC",
|
|
84035
|
+
"\u28F9",
|
|
84036
|
+
"\u28BB",
|
|
84037
|
+
"\u283F",
|
|
84038
|
+
"\u285F",
|
|
84039
|
+
"\u28CF",
|
|
84040
|
+
"\u28E7",
|
|
84041
|
+
"\u28F6"
|
|
84042
|
+
]
|
|
84043
|
+
};
|
|
82535
84044
|
dots8Bit = {
|
|
82536
84045
|
interval: 80,
|
|
82537
84046
|
frames: [
|
|
@@ -82793,6 +84302,46 @@ var init_spinners = __esmMin(() => {
|
|
|
82793
84302
|
"\u28FF"
|
|
82794
84303
|
]
|
|
82795
84304
|
};
|
|
84305
|
+
sand = {
|
|
84306
|
+
interval: 80,
|
|
84307
|
+
frames: [
|
|
84308
|
+
"\u2801",
|
|
84309
|
+
"\u2802",
|
|
84310
|
+
"\u2804",
|
|
84311
|
+
"\u2840",
|
|
84312
|
+
"\u2848",
|
|
84313
|
+
"\u2850",
|
|
84314
|
+
"\u2860",
|
|
84315
|
+
"\u28C0",
|
|
84316
|
+
"\u28C1",
|
|
84317
|
+
"\u28C2",
|
|
84318
|
+
"\u28C4",
|
|
84319
|
+
"\u28CC",
|
|
84320
|
+
"\u28D4",
|
|
84321
|
+
"\u28E4",
|
|
84322
|
+
"\u28E5",
|
|
84323
|
+
"\u28E6",
|
|
84324
|
+
"\u28EE",
|
|
84325
|
+
"\u28F6",
|
|
84326
|
+
"\u28F7",
|
|
84327
|
+
"\u28FF",
|
|
84328
|
+
"\u287F",
|
|
84329
|
+
"\u283F",
|
|
84330
|
+
"\u289F",
|
|
84331
|
+
"\u281F",
|
|
84332
|
+
"\u285B",
|
|
84333
|
+
"\u281B",
|
|
84334
|
+
"\u282B",
|
|
84335
|
+
"\u288B",
|
|
84336
|
+
"\u280B",
|
|
84337
|
+
"\u280D",
|
|
84338
|
+
"\u2849",
|
|
84339
|
+
"\u2809",
|
|
84340
|
+
"\u2811",
|
|
84341
|
+
"\u2821",
|
|
84342
|
+
"\u2881"
|
|
84343
|
+
]
|
|
84344
|
+
};
|
|
82796
84345
|
line = {
|
|
82797
84346
|
interval: 130,
|
|
82798
84347
|
frames: [
|
|
@@ -83683,7 +85232,9 @@ var init_spinners = __esmMin(() => {
|
|
|
83683
85232
|
dots10,
|
|
83684
85233
|
dots11,
|
|
83685
85234
|
dots12,
|
|
85235
|
+
dots13,
|
|
83686
85236
|
dots8Bit,
|
|
85237
|
+
sand,
|
|
83687
85238
|
line,
|
|
83688
85239
|
line2,
|
|
83689
85240
|
pipe,
|
|
@@ -87596,6 +89147,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
87596
89147
|
"use strict";
|
|
87597
89148
|
var util = require_readline();
|
|
87598
89149
|
var cliWidth = require_cli_width();
|
|
89150
|
+
var wrapAnsi = require_wrap_ansi();
|
|
87599
89151
|
var stripAnsi2 = require_strip_ansi2();
|
|
87600
89152
|
var stringWidth = require_string_width();
|
|
87601
89153
|
var ora = require_ora2();
|
|
@@ -87690,12 +89242,7 @@ var require_screen_manager = __commonJSMin((exports, module2) => {
|
|
|
87690
89242
|
return width;
|
|
87691
89243
|
}
|
|
87692
89244
|
breakLines(lines, width = this.normalizedCliWidth()) {
|
|
87693
|
-
|
|
87694
|
-
return lines.map((line3) => {
|
|
87695
|
-
const chunk = line3.match(regex2);
|
|
87696
|
-
chunk.pop();
|
|
87697
|
-
return chunk || "";
|
|
87698
|
-
});
|
|
89245
|
+
return lines.map((line3) => wrapAnsi(line3, width, { trim: false, hard: true }).split("\n"));
|
|
87699
89246
|
}
|
|
87700
89247
|
forceLineReturn(content, width = this.normalizedCliWidth()) {
|
|
87701
89248
|
return this.breakLines(content.split("\n"), width).flat().join("\n");
|
|
@@ -88066,7 +89613,7 @@ var require_input = __commonJSMin((exports, module2) => {
|
|
|
88066
89613
|
this.render(isValid5);
|
|
88067
89614
|
}
|
|
88068
89615
|
onKeypress() {
|
|
88069
|
-
this.
|
|
89616
|
+
this.status = "touched";
|
|
88070
89617
|
this.render();
|
|
88071
89618
|
}
|
|
88072
89619
|
};
|
|
@@ -88079,7 +89626,7 @@ var require_number = __commonJSMin((exports, module2) => {
|
|
|
88079
89626
|
filterInput(input) {
|
|
88080
89627
|
if (input && typeof input === "string") {
|
|
88081
89628
|
input = input.trim();
|
|
88082
|
-
const numberMatch = input.match(/(^-?\d
|
|
89629
|
+
const numberMatch = input.match(/(^-?\d+|^-?\d+\.\d*|^\d*\.\d+)(e\d+)?$/);
|
|
88083
89630
|
if (numberMatch) {
|
|
88084
89631
|
return Number(numberMatch[0]);
|
|
88085
89632
|
}
|
|
@@ -138954,7 +140501,7 @@ var require_compatRequire2 = __commonJSMin((exports) => {
|
|
|
138954
140501
|
var require_constants6 = __commonJSMin((exports) => {
|
|
138955
140502
|
"use strict";
|
|
138956
140503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
138957
|
-
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
140504
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
138958
140505
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
138959
140506
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
138960
140507
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -138973,6 +140520,43 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
138973
140520
|
exports.ROUTE_MINIFEST_FILE = "routes-manifest.json";
|
|
138974
140521
|
exports.ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
|
|
138975
140522
|
exports.LOADER_ROUTES_DIR = `loader-routes`;
|
|
140523
|
+
exports.INTERNAL_APP_TOOLS_PLUGINS = {
|
|
140524
|
+
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
140525
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
140526
|
+
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
140527
|
+
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
140528
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
140529
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
140530
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
140531
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express/cli",
|
|
140532
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg/cli",
|
|
140533
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
|
140534
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
|
140535
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
|
140536
|
+
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
|
140537
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
140538
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
140539
|
+
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
140540
|
+
};
|
|
140541
|
+
exports.INTERNAL_MODULE_TOOLS_PLUGINS = {
|
|
140542
|
+
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
|
140543
|
+
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
|
140544
|
+
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
140545
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
140546
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
140547
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
140548
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
140549
|
+
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli"
|
|
140550
|
+
};
|
|
140551
|
+
exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = {
|
|
140552
|
+
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
140553
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli"
|
|
140554
|
+
};
|
|
140555
|
+
exports.INTERNAL_DOC_TOOLS_PLUGINS = {
|
|
140556
|
+
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
140557
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
140558
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli"
|
|
140559
|
+
};
|
|
138976
140560
|
exports.INTERNAL_CLI_PLUGINS = {
|
|
138977
140561
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
138978
140562
|
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
@@ -141812,6 +143396,7 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
141812
143396
|
return target;
|
|
141813
143397
|
}
|
|
141814
143398
|
function _defineProperty2(obj, key, value) {
|
|
143399
|
+
key = _toPropertyKey2(key);
|
|
141815
143400
|
if (key in obj) {
|
|
141816
143401
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
141817
143402
|
} else {
|
|
@@ -141819,6 +143404,22 @@ var require_mwa = __commonJSMin((exports) => {
|
|
|
141819
143404
|
}
|
|
141820
143405
|
return obj;
|
|
141821
143406
|
}
|
|
143407
|
+
function _toPropertyKey2(arg) {
|
|
143408
|
+
var key = _toPrimitive2(arg, "string");
|
|
143409
|
+
return typeof key === "symbol" ? key : String(key);
|
|
143410
|
+
}
|
|
143411
|
+
function _toPrimitive2(input, hint) {
|
|
143412
|
+
if (typeof input !== "object" || input === null)
|
|
143413
|
+
return input;
|
|
143414
|
+
var prim = input[Symbol.toPrimitive];
|
|
143415
|
+
if (prim !== void 0) {
|
|
143416
|
+
var res = prim.call(input, hint || "default");
|
|
143417
|
+
if (typeof res !== "object")
|
|
143418
|
+
return res;
|
|
143419
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
143420
|
+
}
|
|
143421
|
+
return (hint === "string" ? String : Number)(input);
|
|
143422
|
+
}
|
|
141822
143423
|
var MWANewAction2 = async (options3) => {
|
|
141823
143424
|
const {
|
|
141824
143425
|
locale = "zh",
|
|
@@ -141940,6 +143541,7 @@ var require_module = __commonJSMin((exports) => {
|
|
|
141940
143541
|
return target;
|
|
141941
143542
|
}
|
|
141942
143543
|
function _defineProperty2(obj, key, value) {
|
|
143544
|
+
key = _toPropertyKey2(key);
|
|
141943
143545
|
if (key in obj) {
|
|
141944
143546
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
141945
143547
|
} else {
|
|
@@ -141947,6 +143549,22 @@ var require_module = __commonJSMin((exports) => {
|
|
|
141947
143549
|
}
|
|
141948
143550
|
return obj;
|
|
141949
143551
|
}
|
|
143552
|
+
function _toPropertyKey2(arg) {
|
|
143553
|
+
var key = _toPrimitive2(arg, "string");
|
|
143554
|
+
return typeof key === "symbol" ? key : String(key);
|
|
143555
|
+
}
|
|
143556
|
+
function _toPrimitive2(input, hint) {
|
|
143557
|
+
if (typeof input !== "object" || input === null)
|
|
143558
|
+
return input;
|
|
143559
|
+
var prim = input[Symbol.toPrimitive];
|
|
143560
|
+
if (prim !== void 0) {
|
|
143561
|
+
var res = prim.call(input, hint || "default");
|
|
143562
|
+
if (typeof res !== "object")
|
|
143563
|
+
return res;
|
|
143564
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
143565
|
+
}
|
|
143566
|
+
return (hint === "string" ? String : Number)(input);
|
|
143567
|
+
}
|
|
141950
143568
|
var ModuleNewAction2 = async (options3) => {
|
|
141951
143569
|
const {
|
|
141952
143570
|
locale = "zh",
|