linkque-cli-v2 1.0.4 → 1.0.5
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/linkquejs.js +1144 -908
- package/package.json +1 -1
package/linkquejs.js
CHANGED
|
@@ -4097,8 +4097,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
4099
|
throw new Error(`Invalid command: ` + request.command);
|
|
4100
|
-
} catch (
|
|
4101
|
-
const errors = [extractErrorMessageV8(
|
|
4100
|
+
} catch (e3) {
|
|
4101
|
+
const errors = [extractErrorMessageV8(e3, streamIn, null, void 0, "")];
|
|
4102
4102
|
try {
|
|
4103
4103
|
sendResponse(id, { errors });
|
|
4104
4104
|
} catch {
|
|
@@ -4225,13 +4225,13 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4225
4225
|
}
|
|
4226
4226
|
next();
|
|
4227
4227
|
});
|
|
4228
|
-
} catch (
|
|
4228
|
+
} catch (e3) {
|
|
4229
4229
|
let flags = [];
|
|
4230
4230
|
try {
|
|
4231
4231
|
pushLogFlags(flags, options, {}, isTTY2, transformLogLevelDefault);
|
|
4232
4232
|
} catch {
|
|
4233
4233
|
}
|
|
4234
|
-
const error = extractErrorMessageV8(
|
|
4234
|
+
const error = extractErrorMessageV8(e3, streamIn, details, void 0, "");
|
|
4235
4235
|
sendRequest(refs, { command: "error", flags, error }, () => {
|
|
4236
4236
|
error.detail = details.load(error.detail);
|
|
4237
4237
|
callback(failureErrorWithLog("Transform failed", [error], []), null);
|
|
@@ -4296,13 +4296,13 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4296
4296
|
function buildOrContextImpl(callName, buildKey, sendRequest, sendResponse, refs, streamIn, requestCallbacks, options, isTTY2, defaultWD2, callback) {
|
|
4297
4297
|
const details = createObjectStash();
|
|
4298
4298
|
const isContext = callName === "context";
|
|
4299
|
-
const handleError = (
|
|
4299
|
+
const handleError = (e3, pluginName) => {
|
|
4300
4300
|
const flags = [];
|
|
4301
4301
|
try {
|
|
4302
4302
|
pushLogFlags(flags, options, {}, isTTY2, buildLogLevelDefault);
|
|
4303
4303
|
} catch {
|
|
4304
4304
|
}
|
|
4305
|
-
const message = extractErrorMessageV8(
|
|
4305
|
+
const message = extractErrorMessageV8(e3, streamIn, details, void 0, pluginName);
|
|
4306
4306
|
sendRequest(refs, { command: "error", flags, error: message }, () => {
|
|
4307
4307
|
message.detail = details.load(message.detail);
|
|
4308
4308
|
callback(failureErrorWithLog(isContext ? "Context failed" : "Build failed", [message], []), null);
|
|
@@ -4333,19 +4333,19 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4333
4333
|
if (!result.ok) return handleError(result.error, result.pluginName);
|
|
4334
4334
|
try {
|
|
4335
4335
|
buildOrContextContinue(result.requestPlugins, result.runOnEndCallbacks, result.scheduleOnDisposeCallbacks);
|
|
4336
|
-
} catch (
|
|
4337
|
-
handleError(
|
|
4336
|
+
} catch (e3) {
|
|
4337
|
+
handleError(e3, "");
|
|
4338
4338
|
}
|
|
4339
4339
|
},
|
|
4340
|
-
(
|
|
4340
|
+
(e3) => handleError(e3, "")
|
|
4341
4341
|
);
|
|
4342
4342
|
return;
|
|
4343
4343
|
}
|
|
4344
4344
|
try {
|
|
4345
4345
|
buildOrContextContinue(null, (result, done) => done([], []), () => {
|
|
4346
4346
|
});
|
|
4347
|
-
} catch (
|
|
4348
|
-
handleError(
|
|
4347
|
+
} catch (e3) {
|
|
4348
|
+
handleError(e3, "");
|
|
4349
4349
|
}
|
|
4350
4350
|
function buildOrContextContinue(requestPlugins, runOnEndCallbacks, scheduleOnDisposeCallbacks) {
|
|
4351
4351
|
const writeDefault = streamIn.hasFS;
|
|
@@ -4641,8 +4641,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4641
4641
|
});
|
|
4642
4642
|
if (promise) await promise;
|
|
4643
4643
|
requestPlugins.push(plugin);
|
|
4644
|
-
} catch (
|
|
4645
|
-
return { ok: false, error:
|
|
4644
|
+
} catch (e3) {
|
|
4645
|
+
return { ok: false, error: e3, pluginName: name };
|
|
4646
4646
|
}
|
|
4647
4647
|
}
|
|
4648
4648
|
requestCallbacks["on-start"] = async (id, request) => {
|
|
@@ -4659,8 +4659,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4659
4659
|
if (errors != null) response.errors.push(...sanitizeMessages(errors, "errors", details, name, void 0));
|
|
4660
4660
|
if (warnings != null) response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name, void 0));
|
|
4661
4661
|
}
|
|
4662
|
-
} catch (
|
|
4663
|
-
response.errors.push(extractErrorMessageV8(
|
|
4662
|
+
} catch (e3) {
|
|
4663
|
+
response.errors.push(extractErrorMessageV8(e3, streamIn, details, note && note(), name));
|
|
4664
4664
|
}
|
|
4665
4665
|
}));
|
|
4666
4666
|
sendResponse(id, response);
|
|
@@ -4708,8 +4708,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4708
4708
|
if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
|
|
4709
4709
|
break;
|
|
4710
4710
|
}
|
|
4711
|
-
} catch (
|
|
4712
|
-
response = { id: id2, errors: [extractErrorMessageV8(
|
|
4711
|
+
} catch (e3) {
|
|
4712
|
+
response = { id: id2, errors: [extractErrorMessageV8(e3, streamIn, details, note && note(), name)] };
|
|
4713
4713
|
break;
|
|
4714
4714
|
}
|
|
4715
4715
|
}
|
|
@@ -4753,8 +4753,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4753
4753
|
if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
|
|
4754
4754
|
break;
|
|
4755
4755
|
}
|
|
4756
|
-
} catch (
|
|
4757
|
-
response = { id: id2, errors: [extractErrorMessageV8(
|
|
4756
|
+
} catch (e3) {
|
|
4757
|
+
response = { id: id2, errors: [extractErrorMessageV8(e3, streamIn, details, note && note(), name)] };
|
|
4758
4758
|
break;
|
|
4759
4759
|
}
|
|
4760
4760
|
}
|
|
@@ -4780,8 +4780,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4780
4780
|
if (errors != null) newErrors = sanitizeMessages(errors, "errors", details, name, void 0);
|
|
4781
4781
|
if (warnings != null) newWarnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
|
|
4782
4782
|
}
|
|
4783
|
-
} catch (
|
|
4784
|
-
newErrors = [extractErrorMessageV8(
|
|
4783
|
+
} catch (e3) {
|
|
4784
|
+
newErrors = [extractErrorMessageV8(e3, streamIn, details, note && note(), name)];
|
|
4785
4785
|
}
|
|
4786
4786
|
if (newErrors) {
|
|
4787
4787
|
onEndErrors.push(...newErrors);
|
|
@@ -4830,36 +4830,36 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4830
4830
|
}
|
|
4831
4831
|
};
|
|
4832
4832
|
}
|
|
4833
|
-
function extractCallerV8(
|
|
4833
|
+
function extractCallerV8(e3, streamIn, ident) {
|
|
4834
4834
|
let note;
|
|
4835
4835
|
let tried = false;
|
|
4836
4836
|
return () => {
|
|
4837
4837
|
if (tried) return note;
|
|
4838
4838
|
tried = true;
|
|
4839
4839
|
try {
|
|
4840
|
-
let lines = (
|
|
4840
|
+
let lines = (e3.stack + "").split("\n");
|
|
4841
4841
|
lines.splice(1, 1);
|
|
4842
4842
|
let location = parseStackLinesV8(streamIn, lines, ident);
|
|
4843
4843
|
if (location) {
|
|
4844
|
-
note = { text:
|
|
4844
|
+
note = { text: e3.message, location };
|
|
4845
4845
|
return note;
|
|
4846
4846
|
}
|
|
4847
4847
|
} catch {
|
|
4848
4848
|
}
|
|
4849
4849
|
};
|
|
4850
4850
|
}
|
|
4851
|
-
function extractErrorMessageV8(
|
|
4851
|
+
function extractErrorMessageV8(e3, streamIn, stash, note, pluginName) {
|
|
4852
4852
|
let text = "Internal error";
|
|
4853
4853
|
let location = null;
|
|
4854
4854
|
try {
|
|
4855
|
-
text = (
|
|
4855
|
+
text = (e3 && e3.message || e3) + "";
|
|
4856
4856
|
} catch {
|
|
4857
4857
|
}
|
|
4858
4858
|
try {
|
|
4859
|
-
location = parseStackLinesV8(streamIn, (
|
|
4859
|
+
location = parseStackLinesV8(streamIn, (e3.stack + "").split("\n"), "");
|
|
4860
4860
|
} catch {
|
|
4861
4861
|
}
|
|
4862
|
-
return { id: "", pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(
|
|
4862
|
+
return { id: "", pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e3) : -1 };
|
|
4863
4863
|
}
|
|
4864
4864
|
function parseStackLinesV8(streamIn, lines, ident) {
|
|
4865
4865
|
let at2 = " at ";
|
|
@@ -4908,14 +4908,14 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
4908
4908
|
}
|
|
4909
4909
|
function failureErrorWithLog(text, errors, warnings) {
|
|
4910
4910
|
let limit = 5;
|
|
4911
|
-
text += errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((
|
|
4911
|
+
text += errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e3, i) => {
|
|
4912
4912
|
if (i === limit) return "\n...";
|
|
4913
|
-
if (!
|
|
4914
|
-
error: ${
|
|
4915
|
-
let { file, line, column } =
|
|
4916
|
-
let pluginText =
|
|
4913
|
+
if (!e3.location) return `
|
|
4914
|
+
error: ${e3.text}`;
|
|
4915
|
+
let { file, line, column } = e3.location;
|
|
4916
|
+
let pluginText = e3.pluginName ? `[plugin: ${e3.pluginName}] ` : "";
|
|
4917
4917
|
return `
|
|
4918
|
-
${file}:${line}:${column}: ERROR: ${pluginText}${
|
|
4918
|
+
${file}:${line}:${column}: ERROR: ${pluginText}${e3.text}`;
|
|
4919
4919
|
}).join("");
|
|
4920
4920
|
let error = new Error(text);
|
|
4921
4921
|
for (const [key, value] of [["errors", errors], ["warnings", warnings]]) {
|
|
@@ -5132,7 +5132,7 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e2.text}`;
|
|
|
5132
5132
|
let binPath;
|
|
5133
5133
|
try {
|
|
5134
5134
|
binPath = require.resolve(`${pkg}/${subpath}`);
|
|
5135
|
-
} catch (
|
|
5135
|
+
} catch (e3) {
|
|
5136
5136
|
binPath = downloadedBinPath(pkg, subpath);
|
|
5137
5137
|
if (!fs2.existsSync(binPath)) {
|
|
5138
5138
|
try {
|
|
@@ -5197,14 +5197,14 @@ If you are installing esbuild with npm, make sure that you don't specify the
|
|
|
5197
5197
|
of "package.json" is used by esbuild to install the correct binary executable
|
|
5198
5198
|
for your current platform.`);
|
|
5199
5199
|
}
|
|
5200
|
-
throw
|
|
5200
|
+
throw e3;
|
|
5201
5201
|
}
|
|
5202
5202
|
}
|
|
5203
5203
|
if (/\.zip\//.test(binPath)) {
|
|
5204
5204
|
let pnpapi;
|
|
5205
5205
|
try {
|
|
5206
5206
|
pnpapi = require("pnpapi");
|
|
5207
|
-
} catch (
|
|
5207
|
+
} catch (e3) {
|
|
5208
5208
|
}
|
|
5209
5209
|
if (pnpapi) {
|
|
5210
5210
|
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
@@ -5670,7 +5670,7 @@ error: ${text}`);
|
|
|
5670
5670
|
});
|
|
5671
5671
|
|
|
5672
5672
|
// ../../node_modules/@zip.js/zip.js/lib/core/constants.js
|
|
5673
|
-
var MAX_32_BITS, MAX_16_BITS, MAX_8_BITS, COMPRESSION_METHOD_DEFLATE, COMPRESSION_METHOD_DEFLATE_64, COMPRESSION_METHOD_STORE, COMPRESSION_METHOD_AES, LOCAL_FILE_HEADER_SIGNATURE, SPLIT_ZIP_FILE_SIGNATURE, TEMPORARY_SPLIT_ZIP_FILE_SIGNATURE, DATA_DESCRIPTOR_RECORD_SIGNATURE, ARCHIVE_EXTRA_DATA_SIGNATURE, DIGITAL_SIGNATURE_RECORD_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE, END_OF_CENTRAL_DIR_SIGNATURE, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE, CENTRAL_FILE_HEADER_LENGTH, END_OF_CENTRAL_DIR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH, DATA_DESCRIPTOR_RECORD_LENGTH, DATA_DESCRIPTOR_RECORD_ZIP_64_LENGTH, DATA_DESCRIPTOR_RECORD_SIGNATURE_LENGTH, SPLIT_ZIP_FILE_SIGNATURE_LENGTH, EXTRAFIELD_TYPE_ZIP64, EXTRAFIELD_TYPE_AES, EXTRAFIELD_TYPE_NTFS, EXTRAFIELD_TYPE_NTFS_TAG1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP, EXTRAFIELD_TYPE_UNICODE_PATH, EXTRAFIELD_TYPE_UNICODE_COMMENT, EXTRAFIELD_TYPE_USDZ, EXTRAFIELD_TYPE_INFOZIP, EXTRAFIELD_TYPE_UNIX, EXTRAFIELD_TYPE_UNIX_TYPE1, EXTRAFIELD_TYPE_PKWARE_UNIX, BITFLAG_ENCRYPTED, BITFLAG_LEVEL, BITFLAG_LEVEL_MAX_MASK, BITFLAG_LEVEL_FAST_MASK, BITFLAG_LEVEL_SUPER_FAST_MASK, BITFLAG_DATA_DESCRIPTOR, BITFLAG_STRONG_ENCRYPTION, BITFLAG_LANG_ENCODING_FLAG, BITFLAG_MASKED_LOCAL_HEADERS, FILE_ATTR_MSDOS_DIR_MASK, FILE_ATTR_MSDOS_READONLY_MASK, FILE_ATTR_MSDOS_HIDDEN_MASK, FILE_ATTR_MSDOS_SYSTEM_MASK, FILE_ATTR_MSDOS_ARCHIVE_MASK, FILE_ATTR_UNIX_TYPE_MASK, FILE_ATTR_UNIX_TYPE_DIR, FILE_ATTR_UNIX_TYPE_SYMLINK, FILE_ATTR_UNIX_TYPE_FILE, FILE_ATTR_UNIX_EXECUTABLE_MASK, FILE_ATTR_UNIX_DEFAULT_MASK, FILE_ATTR_UNIX_SETUID_MASK, FILE_ATTR_UNIX_SETGID_MASK, FILE_ATTR_UNIX_STICKY_MASK, VERSION_DEFLATE, VERSION_ZIP64, VERSION_AES, VERSION_MADE_BY_MSDOS, VERSION_MADE_BY_UNIX, DIRECTORY_SIGNATURE, HEADER_SIZE, HEADER_OFFSET_VERSION, HEADER_OFFSET_SIGNATURE, HEADER_OFFSET_COMPRESSED_SIZE, HEADER_OFFSET_UNCOMPRESSED_SIZE, HEADER_OFFSET_FILENAME_LENGTH, HEADER_OFFSET_EXTRAFIELD_LENGTH, LOCAL_HEADER_COMMON_OFFSET, MAX_DATE, MIN_DATE, UNDEFINED_VALUE, INFINITY_VALUE, UNDEFINED_TYPE, FUNCTION_TYPE, OBJECT_TYPE, STRING_TYPE, NUMBER_TYPE, BOOLEAN_TYPE, EMPTY_UINT8_ARRAY;
|
|
5673
|
+
var MAX_32_BITS, MAX_16_BITS, MAX_8_BITS, COMPRESSION_METHOD_DEFLATE, COMPRESSION_METHOD_DEFLATE_64, COMPRESSION_METHOD_STORE, COMPRESSION_METHOD_AES, LOCAL_FILE_HEADER_SIGNATURE, SPLIT_ZIP_FILE_SIGNATURE, TEMPORARY_SPLIT_ZIP_FILE_SIGNATURE, DATA_DESCRIPTOR_RECORD_SIGNATURE, ARCHIVE_EXTRA_DATA_SIGNATURE, DIGITAL_SIGNATURE_RECORD_SIGNATURE, CENTRAL_FILE_HEADER_SIGNATURE, END_OF_CENTRAL_DIR_SIGNATURE, ZIP64_END_OF_CENTRAL_DIR_SIGNATURE, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIGNATURE, CENTRAL_FILE_HEADER_LENGTH, END_OF_CENTRAL_DIR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_LOCATOR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_LENGTH, ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH, DATA_DESCRIPTOR_RECORD_LENGTH, DATA_DESCRIPTOR_RECORD_ZIP_64_LENGTH, DATA_DESCRIPTOR_RECORD_SIGNATURE_LENGTH, SPLIT_ZIP_FILE_SIGNATURE_LENGTH, EXTRAFIELD_TYPE_ZIP64, EXTRAFIELD_TYPE_AES, EXTRAFIELD_TYPE_NTFS, EXTRAFIELD_TYPE_NTFS_TAG1, EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP, EXTRAFIELD_TYPE_UNICODE_PATH, EXTRAFIELD_TYPE_UNICODE_COMMENT, EXTRAFIELD_TYPE_USDZ, EXTRAFIELD_TYPE_INFOZIP, EXTRAFIELD_TYPE_UNIX, EXTRAFIELD_TYPE_UNIX_TYPE1, EXTRAFIELD_TYPE_PKWARE_UNIX, BITFLAG_ENCRYPTED, BITFLAG_LEVEL, BITFLAG_LEVEL_MAX_MASK, BITFLAG_LEVEL_FAST_MASK, BITFLAG_LEVEL_SUPER_FAST_MASK, BITFLAG_DATA_DESCRIPTOR, BITFLAG_COMPRESSED_PATCHED_DATA, BITFLAG_STRONG_ENCRYPTION, BITFLAG_LANG_ENCODING_FLAG, BITFLAG_MASKED_LOCAL_HEADERS, FILE_ATTR_MSDOS_DIR_MASK, FILE_ATTR_MSDOS_READONLY_MASK, FILE_ATTR_MSDOS_HIDDEN_MASK, FILE_ATTR_MSDOS_SYSTEM_MASK, FILE_ATTR_MSDOS_ARCHIVE_MASK, FILE_ATTR_UNIX_TYPE_MASK, FILE_ATTR_UNIX_TYPE_DIR, FILE_ATTR_UNIX_TYPE_SYMLINK, FILE_ATTR_UNIX_TYPE_FILE, FILE_ATTR_UNIX_EXECUTABLE_MASK, FILE_ATTR_UNIX_DEFAULT_MASK, FILE_ATTR_UNIX_SETUID_MASK, FILE_ATTR_UNIX_SETGID_MASK, FILE_ATTR_UNIX_STICKY_MASK, VERSION_STORE, VERSION_DEFLATE, VERSION_ZIP64, VERSION_AES, VERSION_MADE_BY_MSDOS, VERSION_MADE_BY_UNIX, DIRECTORY_SIGNATURE, HEADER_SIZE, HEADER_OFFSET_VERSION, HEADER_OFFSET_SIGNATURE, HEADER_OFFSET_COMPRESSED_SIZE, HEADER_OFFSET_UNCOMPRESSED_SIZE, HEADER_OFFSET_FILENAME_LENGTH, HEADER_OFFSET_EXTRAFIELD_LENGTH, LOCAL_HEADER_COMMON_OFFSET, MAX_DATE, MIN_DATE, UNDEFINED_VALUE, INFINITY_VALUE, UNDEFINED_TYPE, FUNCTION_TYPE, OBJECT_TYPE, STRING_TYPE, NUMBER_TYPE, BOOLEAN_TYPE, EMPTY_UINT8_ARRAY;
|
|
5674
5674
|
var init_constants = __esm({
|
|
5675
5675
|
"../../node_modules/@zip.js/zip.js/lib/core/constants.js"() {
|
|
5676
5676
|
MAX_32_BITS = 4294967295;
|
|
@@ -5717,6 +5717,7 @@ var init_constants = __esm({
|
|
|
5717
5717
|
BITFLAG_LEVEL_FAST_MASK = 4;
|
|
5718
5718
|
BITFLAG_LEVEL_SUPER_FAST_MASK = 6;
|
|
5719
5719
|
BITFLAG_DATA_DESCRIPTOR = 8;
|
|
5720
|
+
BITFLAG_COMPRESSED_PATCHED_DATA = 32;
|
|
5720
5721
|
BITFLAG_STRONG_ENCRYPTION = 64;
|
|
5721
5722
|
BITFLAG_LANG_ENCODING_FLAG = 2048;
|
|
5722
5723
|
BITFLAG_MASKED_LOCAL_HEADERS = 8192;
|
|
@@ -5734,6 +5735,7 @@ var init_constants = __esm({
|
|
|
5734
5735
|
FILE_ATTR_UNIX_SETUID_MASK = 2048;
|
|
5735
5736
|
FILE_ATTR_UNIX_SETGID_MASK = 1024;
|
|
5736
5737
|
FILE_ATTR_UNIX_STICKY_MASK = 512;
|
|
5738
|
+
VERSION_STORE = 10;
|
|
5737
5739
|
VERSION_DEFLATE = 20;
|
|
5738
5740
|
VERSION_ZIP64 = 45;
|
|
5739
5741
|
VERSION_AES = 51;
|
|
@@ -5793,7 +5795,7 @@ function checkIntegerOption(value, maxValue, errorMessage) {
|
|
|
5793
5795
|
function toNumber(value) {
|
|
5794
5796
|
return typeof value == STRING_TYPE && value.trim() ? Number(value) : value;
|
|
5795
5797
|
}
|
|
5796
|
-
var OPTION_FILENAME_ENCODING, OPTION_COMMENT_ENCODING, OPTION_DECODE_TEXT, OPTION_EXTRACT_PREPENDED_DATA, OPTION_EXTRACT_APPENDED_DATA, OPTION_PASSWORD, OPTION_RAW_PASSWORD, OPTION_PASS_THROUGH, OPTION_SIGNAL, OPTION_CHECK_PASSWORD_ONLY, OPTION_CHECK_OVERLAPPING_ENTRY_ONLY, OPTION_CHECK_OVERLAPPING_ENTRY, OPTION_CHECK_AMBIGUITY, OPTION_CHECK_LOCAL_DIRECTORY, OPTION_CHECK_SIGNATURE, OPTION_CHECK_CRC32, OPTION_CHECK_AUTHENTICATION_CODE, OPTION_USE_WEB_WORKERS, OPTION_USE_COMPRESSION_STREAM, OPTION_TRANSFER_STREAMS, OPTION_PREVENT_CLOSE, OPTION_ENCRYPTION_STRENGTH, OPTION_EXTENDED_TIMESTAMP, OPTION_NTFS_TIMESTAMP, OPTION_KEEP_ORDER, OPTION_LEVEL, OPTION_BUFFERED_WRITE, OPTION_CREATE_TEMP_STREAM, OPTION_DATA_DESCRIPTOR_SIGNATURE, OPTION_USE_UNICODE_FILE_NAMES, OPTION_DATA_DESCRIPTOR, OPTION_SUPPORT_ZIP64_SPLIT_FILE, OPTION_ENCODE_TEXT, OPTION_OFFSET, OPTION_USDZ, OPTION_UNIX_EXTRA_FIELD_TYPE, OPTION_LOCAL_EXTRA_FIELD, OPTION_STRICTNESS, OPTION_FILENAME_VALIDATION, OPTION_NORMALIZE_FILENAME, OPTION_MAX_APPENDED_DATA_SIZE, OPTION_DECRYPT_CENTRAL_DIRECTORY, OPTION_SIGN_CENTRAL_DIRECTORY, TEXT_TYPE_FILENAME, TEXT_TYPE_COMMENT, STRICTNESS_STRICT, STRICTNESS_BALANCED, STRICTNESS_TOLERANT, ERR_INVALID_FUNCTION_OPTION, ERR_INVALID_SIGNAL, ERR_INVALID_PASSWORD_TYPE;
|
|
5798
|
+
var OPTION_FILENAME_ENCODING, OPTION_COMMENT_ENCODING, OPTION_DECODE_TEXT, OPTION_EXTRACT_PREPENDED_DATA, OPTION_EXTRACT_APPENDED_DATA, OPTION_PASSWORD, OPTION_RAW_PASSWORD, OPTION_PASS_THROUGH, OPTION_SIGNAL, OPTION_CHECK_PASSWORD_ONLY, OPTION_CHECK_OVERLAPPING_ENTRY_ONLY, OPTION_CHECK_OVERLAPPING_ENTRY, OPTION_CHECK_AMBIGUITY, OPTION_CHECK_LOCAL_DIRECTORY, OPTION_CHECK_SIGNATURE, OPTION_CHECK_CRC32, OPTION_CHECK_AUTHENTICATION_CODE, OPTION_USE_WEB_WORKERS, OPTION_USE_COMPRESSION_STREAM, OPTION_TRANSFER_STREAMS, OPTION_PREVENT_CLOSE, OPTION_ENCRYPTION_STRENGTH, OPTION_EXTENDED_TIMESTAMP, OPTION_NTFS_TIMESTAMP, OPTION_KEEP_ORDER, OPTION_LEVEL, OPTION_BUFFERED_WRITE, OPTION_CREATE_TEMP_STREAM, OPTION_DATA_DESCRIPTOR_SIGNATURE, OPTION_USE_UNICODE_FILE_NAMES, OPTION_DATA_DESCRIPTOR, OPTION_SUPPORT_ZIP64_SPLIT_FILE, OPTION_ENCODE_TEXT, OPTION_OFFSET, OPTION_USDZ, OPTION_UNIX_EXTRA_FIELD_TYPE, OPTION_LOCAL_EXTRA_FIELD, OPTION_CENTRAL_EXTRA_FIELD, OPTION_STRICTNESS, OPTION_FILENAME_VALIDATION, OPTION_NORMALIZE_FILENAME, OPTION_MAX_APPENDED_DATA_SIZE, OPTION_DECRYPT_CENTRAL_DIRECTORY, OPTION_SIGN_CENTRAL_DIRECTORY, TEXT_TYPE_FILENAME, TEXT_TYPE_COMMENT, STRICTNESS_STRICT, STRICTNESS_BALANCED, STRICTNESS_TOLERANT, ERR_INVALID_FUNCTION_OPTION, ERR_INVALID_SIGNAL, ERR_INVALID_PASSWORD_TYPE;
|
|
5797
5799
|
var init_options = __esm({
|
|
5798
5800
|
"../../node_modules/@zip.js/zip.js/lib/core/options.js"() {
|
|
5799
5801
|
init_constants();
|
|
@@ -5834,6 +5836,7 @@ var init_options = __esm({
|
|
|
5834
5836
|
OPTION_USDZ = "usdz";
|
|
5835
5837
|
OPTION_UNIX_EXTRA_FIELD_TYPE = "unixExtraFieldType";
|
|
5836
5838
|
OPTION_LOCAL_EXTRA_FIELD = "localExtraField";
|
|
5839
|
+
OPTION_CENTRAL_EXTRA_FIELD = "centralExtraField";
|
|
5837
5840
|
OPTION_STRICTNESS = "strictness";
|
|
5838
5841
|
OPTION_FILENAME_VALIDATION = "filenameValidation";
|
|
5839
5842
|
OPTION_NORMALIZE_FILENAME = "normalizeFilename";
|
|
@@ -6327,13 +6330,13 @@ var init_sjcl = __esm({
|
|
|
6327
6330
|
let b2 = h[1];
|
|
6328
6331
|
let c2 = h[2];
|
|
6329
6332
|
let d = h[3];
|
|
6330
|
-
let
|
|
6333
|
+
let e3 = h[4];
|
|
6331
6334
|
for (let t3 = 0; t3 <= 79; t3++) {
|
|
6332
6335
|
if (t3 >= 16) {
|
|
6333
6336
|
w2[t3] = sha1._S(1, w2[t3 - 3] ^ w2[t3 - 8] ^ w2[t3 - 14] ^ w2[t3 - 16]);
|
|
6334
6337
|
}
|
|
6335
|
-
const tmp = sha1._S(5, a) + sha1._f(t3, b2, c2, d) +
|
|
6336
|
-
|
|
6338
|
+
const tmp = sha1._S(5, a) + sha1._f(t3, b2, c2, d) + e3 + w2[t3] + sha1._key[Math.floor(t3 / 20)] | 0;
|
|
6339
|
+
e3 = d;
|
|
6337
6340
|
d = c2;
|
|
6338
6341
|
c2 = sha1._S(30, b2);
|
|
6339
6342
|
b2 = a;
|
|
@@ -6343,7 +6346,7 @@ var init_sjcl = __esm({
|
|
|
6343
6346
|
h[1] = h[1] + b2 | 0;
|
|
6344
6347
|
h[2] = h[2] + c2 | 0;
|
|
6345
6348
|
h[3] = h[3] + d | 0;
|
|
6346
|
-
h[4] = h[4] +
|
|
6349
|
+
h[4] = h[4] + e3 | 0;
|
|
6347
6350
|
}
|
|
6348
6351
|
};
|
|
6349
6352
|
cipher = {};
|
|
@@ -6543,11 +6546,11 @@ var init_sjcl = __esm({
|
|
|
6543
6546
|
const bl = bitArray.bitLength(data);
|
|
6544
6547
|
for (let i = 0; i < l2; i += 4) {
|
|
6545
6548
|
this.incCounter(iv);
|
|
6546
|
-
const
|
|
6547
|
-
data[i] ^=
|
|
6548
|
-
data[i + 1] ^=
|
|
6549
|
-
data[i + 2] ^=
|
|
6550
|
-
data[i + 3] ^=
|
|
6549
|
+
const e3 = prf.encrypt(iv);
|
|
6550
|
+
data[i] ^= e3[0];
|
|
6551
|
+
data[i + 1] ^= e3[1];
|
|
6552
|
+
data[i + 2] ^= e3[2];
|
|
6553
|
+
data[i + 3] ^= e3[3];
|
|
6551
6554
|
}
|
|
6552
6555
|
return bitArray.clamp(data, bl);
|
|
6553
6556
|
}
|
|
@@ -7334,7 +7337,7 @@ var init_zip_entry_stream = __esm({
|
|
|
7334
7337
|
DeflateStream = class extends TransformStream {
|
|
7335
7338
|
constructor(options, { chunkSize, CompressionStreamFallback, CompressionStream: CompressionStream2 }) {
|
|
7336
7339
|
super({});
|
|
7337
|
-
const { compressed, encrypted, useCompressionStream, zipCrypto, computeCrc32, level, deflate64, format, compressionMethod } = options;
|
|
7340
|
+
const { compressed, encrypted, useCompressionStream, zipCrypto, computeCrc32, level, deflate64, format, compressionMethod, inputSize } = options;
|
|
7338
7341
|
const stream = this;
|
|
7339
7342
|
let crc32Stream, encryptionStream, gzipCrc32Stream;
|
|
7340
7343
|
let readable = super.readable;
|
|
@@ -7346,7 +7349,7 @@ var init_zip_entry_stream = __esm({
|
|
|
7346
7349
|
}
|
|
7347
7350
|
if (compressed) {
|
|
7348
7351
|
if (codecStreams2) {
|
|
7349
|
-
readable = pipeThroughBackpressured(readable, createCodecStream(codecStreams2.CompressionStream, format, { level, chunkSize, compressionMethod }));
|
|
7352
|
+
readable = pipeThroughBackpressured(readable, createCodecStream(codecStreams2.CompressionStream, format, { level, chunkSize, compressionMethod, uncompressedSize: inputSize }));
|
|
7350
7353
|
} else if (useGzipCrc32) {
|
|
7351
7354
|
gzipCrc32Stream = new GzipToRawDeflateStream();
|
|
7352
7355
|
readable = pipeThroughBackpressured(readable, new CompressionStream2(FORMAT_GZIP));
|
|
@@ -8460,9 +8463,45 @@ __export(zip_reader_exports, {
|
|
|
8460
8463
|
ERR_UNSUPPORTED_ENCRYPTION: () => ERR_UNSUPPORTED_ENCRYPTION,
|
|
8461
8464
|
ERR_UNSUPPORTED_UINT64: () => ERR_UNSUPPORTED_UINT64,
|
|
8462
8465
|
ERR_WORKER_STARTUP_TIMEOUT: () => ERR_WORKER_STARTUP_TIMEOUT,
|
|
8466
|
+
WARNING_APPENDED_DATA: () => WARNING_APPENDED_DATA,
|
|
8467
|
+
WARNING_COMPRESSED_PATCHED_DATA: () => WARNING_COMPRESSED_PATCHED_DATA,
|
|
8468
|
+
WARNING_DUPLICATE_FILENAME: () => WARNING_DUPLICATE_FILENAME,
|
|
8469
|
+
WARNING_MALFORMED_EXTRA_FIELD: () => WARNING_MALFORMED_EXTRA_FIELD,
|
|
8470
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG: () => WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,
|
|
8471
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD: () => WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,
|
|
8472
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES: () => WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,
|
|
8473
|
+
WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY: () => WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,
|
|
8474
|
+
WARNING_PREPENDED_DATA: () => WARNING_PREPENDED_DATA,
|
|
8475
|
+
WARNING_TRAILING_CENTRAL_DIRECTORY_DATA: () => WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,
|
|
8476
|
+
WARNING_UNKNOWN_VERSION: () => WARNING_UNKNOWN_VERSION,
|
|
8477
|
+
WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA: () => WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,
|
|
8478
|
+
WARNING_UNSORTED_CENTRAL_DIRECTORY: () => WARNING_UNSORTED_CENTRAL_DIRECTORY,
|
|
8479
|
+
WARNING_WRAPPED_ENTRIES_COUNT: () => WARNING_WRAPPED_ENTRIES_COUNT,
|
|
8463
8480
|
ZipReader: () => ZipReader,
|
|
8464
|
-
ZipReaderStream: () => ZipReaderStream
|
|
8481
|
+
ZipReaderStream: () => ZipReaderStream,
|
|
8482
|
+
isZipFile: () => isZipFile
|
|
8465
8483
|
});
|
|
8484
|
+
async function isZipFile(reader, options = {}) {
|
|
8485
|
+
reader = new GenericReader(reader);
|
|
8486
|
+
await initStream(reader);
|
|
8487
|
+
if (reader.size === UNDEFINED_VALUE || !reader.readUint8Array) {
|
|
8488
|
+
reader = new BlobReader(await streamToBlob(reader.readable));
|
|
8489
|
+
await initStream(reader);
|
|
8490
|
+
}
|
|
8491
|
+
if (reader.size < END_OF_CENTRAL_DIR_LENGTH) {
|
|
8492
|
+
return false;
|
|
8493
|
+
}
|
|
8494
|
+
const strictness = getStrictness(options, {});
|
|
8495
|
+
const rejectAmbiguousEndOfDirectory = strictness != STRICTNESS_TOLERANT;
|
|
8496
|
+
const maxAppendedDataSize = getMaxAppendedDataSize(options[OPTION_MAX_APPENDED_DATA_SIZE], strictness);
|
|
8497
|
+
const { endOfDirectoryInfo, endOfDirectoryReachingEndCount } = await findEndOfCentralDirectory(reader, rejectAmbiguousEndOfDirectory, maxAppendedDataSize);
|
|
8498
|
+
if (!endOfDirectoryInfo || strictness == STRICTNESS_STRICT && endOfDirectoryReachingEndCount > 1) {
|
|
8499
|
+
return false;
|
|
8500
|
+
}
|
|
8501
|
+
const commentLength = getUint16(getDataView(endOfDirectoryInfo), 20);
|
|
8502
|
+
const appendedDataOffset = endOfDirectoryInfo.offset + END_OF_CENTRAL_DIR_LENGTH + commentLength;
|
|
8503
|
+
return reader.size - appendedDataOffset <= maxAppendedDataSize;
|
|
8504
|
+
}
|
|
8466
8505
|
function detectEncryptedCentralDirectory(directoryView) {
|
|
8467
8506
|
const maxOffset = Math.min(directoryView.byteLength, 1024) - 3;
|
|
8468
8507
|
for (let offset = 0; offset < maxOffset; offset++) {
|
|
@@ -8472,6 +8511,14 @@ function detectEncryptedCentralDirectory(directoryView) {
|
|
|
8472
8511
|
}
|
|
8473
8512
|
return false;
|
|
8474
8513
|
}
|
|
8514
|
+
function getWrappedFilesLength(directoryView, directoryArray, offset) {
|
|
8515
|
+
let wrappedFilesLength = 0;
|
|
8516
|
+
while (offset + CENTRAL_FILE_HEADER_LENGTH <= directoryArray.length && getUint32(directoryView, offset) == CENTRAL_FILE_HEADER_SIGNATURE) {
|
|
8517
|
+
offset += CENTRAL_FILE_HEADER_LENGTH + getUint16(directoryView, offset + 28) + getUint16(directoryView, offset + 30) + getUint16(directoryView, offset + 32);
|
|
8518
|
+
wrappedFilesLength++;
|
|
8519
|
+
}
|
|
8520
|
+
return wrappedFilesLength % (MAX_16_BITS + 1) ? 0 : wrappedFilesLength;
|
|
8521
|
+
}
|
|
8475
8522
|
function readDigitalSignature(signatureRecordArray) {
|
|
8476
8523
|
if (signatureRecordArray.length >= 6) {
|
|
8477
8524
|
const signatureRecordView = getDataView(signatureRecordArray);
|
|
@@ -8528,6 +8575,7 @@ function readCommonFooter(fileEntry, directory, dataView, offset, localDirectory
|
|
|
8528
8575
|
const extraField = directory.extraField = /* @__PURE__ */ new Map();
|
|
8529
8576
|
const rawExtraFieldView = getDataView(rawExtraField);
|
|
8530
8577
|
let offsetExtraField = 0;
|
|
8578
|
+
let malformedExtraField = false;
|
|
8531
8579
|
try {
|
|
8532
8580
|
while (offsetExtraField < rawExtraField.length) {
|
|
8533
8581
|
const type = getUint16(rawExtraFieldView, offsetExtraField);
|
|
@@ -8539,6 +8587,10 @@ function readCommonFooter(fileEntry, directory, dataView, offset, localDirectory
|
|
|
8539
8587
|
offsetExtraField += 4 + size;
|
|
8540
8588
|
}
|
|
8541
8589
|
} catch {
|
|
8590
|
+
malformedExtraField = true;
|
|
8591
|
+
}
|
|
8592
|
+
if (offsetExtraField > rawExtraField.length) {
|
|
8593
|
+
malformedExtraField = true;
|
|
8542
8594
|
}
|
|
8543
8595
|
const compressionMethod = getUint16(dataView, offset + 4);
|
|
8544
8596
|
Object.assign(directory, {
|
|
@@ -8606,6 +8658,7 @@ function readCommonFooter(fileEntry, directory, dataView, offset, localDirectory
|
|
|
8606
8658
|
if (extraFieldUSDZ) {
|
|
8607
8659
|
directory.extraFieldUSDZ = extraFieldUSDZ;
|
|
8608
8660
|
}
|
|
8661
|
+
return malformedExtraField;
|
|
8609
8662
|
}
|
|
8610
8663
|
function readExtraFieldZip64(extraFieldZip64, directory) {
|
|
8611
8664
|
directory.zip64 = true;
|
|
@@ -8633,10 +8686,11 @@ function readExtraFieldUnicode(extraFieldUnicode, propertyName, rawPropertyName,
|
|
|
8633
8686
|
const computedCrc32View = getDataView(new Uint8Array(4));
|
|
8634
8687
|
computedCrc32View.setUint32(0, computedCrc32.get(), true);
|
|
8635
8688
|
const nameCrc32 = getUint32(extraFieldView, 1);
|
|
8689
|
+
const version2 = getUint8(extraFieldView, 0);
|
|
8636
8690
|
Object.assign(extraFieldUnicode, {
|
|
8637
|
-
version:
|
|
8691
|
+
version: version2,
|
|
8638
8692
|
[propertyName]: decodeText(extraFieldUnicode.data.subarray(5)),
|
|
8639
|
-
valid: !fileEntry.bitFlag.languageEncodingFlag && nameCrc32 == getUint32(computedCrc32View, 0)
|
|
8693
|
+
valid: version2 == 1 && !fileEntry.bitFlag.languageEncodingFlag && nameCrc32 == getUint32(computedCrc32View, 0)
|
|
8640
8694
|
});
|
|
8641
8695
|
if (extraFieldUnicode.valid) {
|
|
8642
8696
|
directory[propertyName] = extraFieldUnicode[propertyName];
|
|
@@ -9030,20 +9084,37 @@ async function readSignature(reader, view, anchoredOffset, signatureOffset, size
|
|
|
9030
9084
|
}
|
|
9031
9085
|
return UNDEFINED_VALUE;
|
|
9032
9086
|
}
|
|
9033
|
-
function validateLocalDirectory(zipEntry, localDirectory, rawLocalFilename, checkLocalFilename) {
|
|
9087
|
+
function validateLocalDirectory(zipEntry, localDirectory, rawLocalFilename, checkLocalFilename, warnings) {
|
|
9034
9088
|
const { rawFilename } = zipEntry;
|
|
9089
|
+
const reject = !warnings;
|
|
9035
9090
|
const maskedLocalDirectory = zipEntry.decryptedDirectory && (localDirectory.rawBitFlag & BITFLAG_MASKED_LOCAL_HEADERS) == BITFLAG_MASKED_LOCAL_HEADERS;
|
|
9036
9091
|
if (checkLocalFilename && !maskedLocalDirectory && (rawLocalFilename.length != rawFilename.length || rawLocalFilename.some((byteValue, indexByte) => byteValue != rawFilename[indexByte]))) {
|
|
9037
|
-
|
|
9092
|
+
reportAmbiguity(reject, warnings, "mismatched local file header (filename)");
|
|
9038
9093
|
}
|
|
9039
9094
|
if ((localDirectory.rawBitFlag & BITFLAG_AMBIGUITY_MASK) != (zipEntry.rawBitFlag & BITFLAG_AMBIGUITY_MASK)) {
|
|
9040
|
-
|
|
9095
|
+
reportAmbiguity(reject, warnings, WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG);
|
|
9041
9096
|
}
|
|
9042
9097
|
if (localDirectory.compressionMethod != zipEntry.compressionMethod) {
|
|
9043
|
-
|
|
9098
|
+
reportAmbiguity(reject, warnings, WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD);
|
|
9044
9099
|
}
|
|
9045
9100
|
if (!localDirectory.bitFlag.dataDescriptor && !maskedLocalDirectory && (localDirectory.crc32 || localDirectory.compressedSize || localDirectory.uncompressedSize) && (localDirectory.crc32 != zipEntry.crc32 || localDirectory.compressedSize != zipEntry.compressedSize || localDirectory.uncompressedSize != zipEntry.uncompressedSize)) {
|
|
9046
|
-
|
|
9101
|
+
reportAmbiguity(reject, warnings, WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES);
|
|
9102
|
+
}
|
|
9103
|
+
}
|
|
9104
|
+
function reportAmbiguity(reject, warnings, reason) {
|
|
9105
|
+
if (reject) {
|
|
9106
|
+
throwAmbiguousArchive(reason);
|
|
9107
|
+
} else {
|
|
9108
|
+
addWarning(warnings, reason);
|
|
9109
|
+
}
|
|
9110
|
+
}
|
|
9111
|
+
function addWarning(warnings, reason, filename) {
|
|
9112
|
+
if (!warnings.some((warning) => warning.reason == reason)) {
|
|
9113
|
+
const warning = { reason };
|
|
9114
|
+
if (filename !== UNDEFINED_VALUE) {
|
|
9115
|
+
warning.filename = filename;
|
|
9116
|
+
}
|
|
9117
|
+
warnings.push(warning);
|
|
9047
9118
|
}
|
|
9048
9119
|
}
|
|
9049
9120
|
function throwAmbiguousArchive(reason) {
|
|
@@ -9059,7 +9130,8 @@ function getFunctionOptionValue(zipReader, options, name) {
|
|
|
9059
9130
|
}
|
|
9060
9131
|
function getDate(timeRaw) {
|
|
9061
9132
|
const date = (timeRaw & 4294901760) >> 16, time = timeRaw & MAX_16_BITS;
|
|
9062
|
-
|
|
9133
|
+
const result = new Date(1980 + ((date & 65024) >> 9), ((date & 480) >> 5) - 1, date & 31, (time & 63488) >> 11, (time & 2016) >> 5, (time & 31) * 2, 0);
|
|
9134
|
+
return result < MIN_DATE ? MIN_DATE : result;
|
|
9063
9135
|
}
|
|
9064
9136
|
function getDateNTFS(timeRaw) {
|
|
9065
9137
|
return new Date(Number(timeRaw / BigInt(1e4) - BigInt(116444736e5)));
|
|
@@ -9080,7 +9152,7 @@ function getBigUint64(view, offset) {
|
|
|
9080
9152
|
}
|
|
9081
9153
|
return Number(value);
|
|
9082
9154
|
}
|
|
9083
|
-
var ERR_BAD_FORMAT, ERR_EOCDR_NOT_FOUND, ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND, ERR_CENTRAL_DIRECTORY_NOT_FOUND, ERR_LOCAL_FILE_HEADER_NOT_FOUND, ERR_EXTRAFIELD_ZIP64_NOT_FOUND, ERR_ENCRYPTED, ERR_UNSUPPORTED_ENCRYPTION, ERR_UNSUPPORTED_COMPRESSION2, ERR_SPLIT_ZIP_FILE, ERR_OVERLAPPING_ENTRY, ERR_ENTRY_DATA_OUT_OF_BOUNDS, ERR_AMBIGUOUS_ARCHIVE, ERR_ENCRYPTED_CENTRAL_DIRECTORY, ERR_UNSAFE_FILENAME, ERR_INVALID_STRICTNESS, ERR_INVALID_FILENAME_VALIDATION, ERR_INVALID_MAX_APPENDED_DATA_SIZE, ERR_UNSUPPORTED_UINT64, DRIVE_LETTER_REGEXP, CHARSET_UTF8, PROPERTY_NAME_UTF8_SUFFIX, CHARSET_CP437, BITFLAG_AMBIGUITY_MASK, VENDOR_VERSION_AE_1, ZIP64_PROPERTIES, ZIP64_EXTRACTION, MAX_SAFE_UINT64, MAX_END_OF_CENTRAL_DIR_PROBES, MAX_DEFLATE_EXPANSION_RATIO, CENTRAL_DIRECTORY_UNREACHABLE, CENTRAL_DIRECTORY_PLAUSIBLE, CENTRAL_DIRECTORY_REACHABLE, ZipReader, ZipReaderStream, ZipEntry;
|
|
9155
|
+
var ERR_BAD_FORMAT, ERR_EOCDR_NOT_FOUND, ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND, ERR_CENTRAL_DIRECTORY_NOT_FOUND, ERR_LOCAL_FILE_HEADER_NOT_FOUND, ERR_EXTRAFIELD_ZIP64_NOT_FOUND, ERR_ENCRYPTED, ERR_UNSUPPORTED_ENCRYPTION, ERR_UNSUPPORTED_COMPRESSION2, ERR_SPLIT_ZIP_FILE, ERR_OVERLAPPING_ENTRY, ERR_ENTRY_DATA_OUT_OF_BOUNDS, ERR_AMBIGUOUS_ARCHIVE, ERR_ENCRYPTED_CENTRAL_DIRECTORY, ERR_UNSAFE_FILENAME, ERR_INVALID_STRICTNESS, ERR_INVALID_FILENAME_VALIDATION, ERR_INVALID_MAX_APPENDED_DATA_SIZE, ERR_UNSUPPORTED_UINT64, WARNING_UNSORTED_CENTRAL_DIRECTORY, WARNING_UNKNOWN_VERSION, WARNING_COMPRESSED_PATCHED_DATA, WARNING_MALFORMED_EXTRA_FIELD, WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA, WARNING_WRAPPED_ENTRIES_COUNT, WARNING_APPENDED_DATA, WARNING_PREPENDED_DATA, WARNING_TRAILING_CENTRAL_DIRECTORY_DATA, WARNING_DUPLICATE_FILENAME, WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY, WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG, WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD, WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES, MAX_KNOWN_VERSION, DRIVE_LETTER_REGEXP, CHARSET_UTF8, PROPERTY_NAME_UTF8_SUFFIX, CHARSET_CP437, BITFLAG_AMBIGUITY_MASK, VENDOR_VERSION_AE_1, ZIP64_PROPERTIES, ZIP64_EXTRACTION, MAX_SAFE_UINT64, MAX_END_OF_CENTRAL_DIR_PROBES, MAX_DEFLATE_EXPANSION_RATIO, CENTRAL_DIRECTORY_UNREACHABLE, CENTRAL_DIRECTORY_PLAUSIBLE, CENTRAL_DIRECTORY_REACHABLE, ZipReader, ZipReaderStream, ZipEntry;
|
|
9084
9156
|
var init_zip_reader = __esm({
|
|
9085
9157
|
"../../node_modules/@zip.js/zip.js/lib/core/zip-reader.js"() {
|
|
9086
9158
|
init_constants();
|
|
@@ -9113,6 +9185,21 @@ var init_zip_reader = __esm({
|
|
|
9113
9185
|
ERR_INVALID_FILENAME_VALIDATION = "Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')";
|
|
9114
9186
|
ERR_INVALID_MAX_APPENDED_DATA_SIZE = "Invalid maxAppendedDataSize (must be a number greater than or equal to 0)";
|
|
9115
9187
|
ERR_UNSUPPORTED_UINT64 = "64-bit value exceeds Number.MAX_SAFE_INTEGER";
|
|
9188
|
+
WARNING_UNSORTED_CENTRAL_DIRECTORY = "unsorted central directory";
|
|
9189
|
+
WARNING_UNKNOWN_VERSION = "unknown version needed to extract";
|
|
9190
|
+
WARNING_COMPRESSED_PATCHED_DATA = "compressed patched data";
|
|
9191
|
+
WARNING_MALFORMED_EXTRA_FIELD = "malformed extra field";
|
|
9192
|
+
WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA = "unknown zip64 extensible data";
|
|
9193
|
+
WARNING_WRAPPED_ENTRIES_COUNT = "wrapped entries count";
|
|
9194
|
+
WARNING_APPENDED_DATA = "appended data";
|
|
9195
|
+
WARNING_PREPENDED_DATA = "prepended data";
|
|
9196
|
+
WARNING_TRAILING_CENTRAL_DIRECTORY_DATA = "trailing central directory data";
|
|
9197
|
+
WARNING_DUPLICATE_FILENAME = "duplicate filename";
|
|
9198
|
+
WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY = "mismatched zip64 end of central directory record";
|
|
9199
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG = "mismatched local file header (general purpose bit flag)";
|
|
9200
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD = "mismatched local file header (compression method)";
|
|
9201
|
+
WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES = "mismatched local file header (crc32 or sizes)";
|
|
9202
|
+
MAX_KNOWN_VERSION = 63;
|
|
9116
9203
|
DRIVE_LETTER_REGEXP = /^[a-zA-Z]:/;
|
|
9117
9204
|
CHARSET_UTF8 = "utf-8";
|
|
9118
9205
|
PROPERTY_NAME_UTF8_SUFFIX = "UTF8";
|
|
@@ -9160,6 +9247,7 @@ var init_zip_reader = __esm({
|
|
|
9160
9247
|
if (reader.size < END_OF_CENTRAL_DIR_LENGTH) {
|
|
9161
9248
|
throw new Error(ERR_BAD_FORMAT);
|
|
9162
9249
|
}
|
|
9250
|
+
const warnings = zipReader.warnings = [];
|
|
9163
9251
|
const strictness = getStrictness(options, zipReader.options);
|
|
9164
9252
|
const checkAmbiguity = strictness == STRICTNESS_STRICT;
|
|
9165
9253
|
const rejectAmbiguousEndOfDirectory = strictness != STRICTNESS_TOLERANT;
|
|
@@ -9183,8 +9271,12 @@ var init_zip_reader = __esm({
|
|
|
9183
9271
|
const commentOffset = endOfDirectoryInfo.offset;
|
|
9184
9272
|
const commentLength = getUint16(endOfDirectoryView, 20);
|
|
9185
9273
|
const appendedDataOffset = commentOffset + END_OF_CENTRAL_DIR_LENGTH + commentLength;
|
|
9186
|
-
|
|
9187
|
-
|
|
9274
|
+
const appendedDataLength = reader.size - appendedDataOffset;
|
|
9275
|
+
if (appendedDataLength > maxAppendedDataSize) {
|
|
9276
|
+
throwAmbiguousArchive(WARNING_APPENDED_DATA);
|
|
9277
|
+
}
|
|
9278
|
+
if (appendedDataLength > 0) {
|
|
9279
|
+
addWarning(warnings, WARNING_APPENDED_DATA);
|
|
9188
9280
|
}
|
|
9189
9281
|
let lastDiskNumber = getUint16(endOfDirectoryView, 4);
|
|
9190
9282
|
const expectedLastDiskNumber = reader.lastDiskNumber || 0;
|
|
@@ -9235,23 +9327,23 @@ var init_zip_reader = __esm({
|
|
|
9235
9327
|
}
|
|
9236
9328
|
if (lastDiskNumber == MAX_16_BITS) {
|
|
9237
9329
|
lastDiskNumber = getUint32(endOfDirectoryView2, 16);
|
|
9238
|
-
} else if (
|
|
9239
|
-
|
|
9330
|
+
} else if (lastDiskNumber != getUint32(endOfDirectoryView2, 16)) {
|
|
9331
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY);
|
|
9240
9332
|
}
|
|
9241
9333
|
if (diskNumber == MAX_16_BITS) {
|
|
9242
9334
|
diskNumber = getUint32(endOfDirectoryView2, 20);
|
|
9243
|
-
} else if (
|
|
9244
|
-
|
|
9335
|
+
} else if (diskNumber != getUint32(endOfDirectoryView2, 20)) {
|
|
9336
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY);
|
|
9245
9337
|
}
|
|
9246
9338
|
if (filesLength == MAX_16_BITS) {
|
|
9247
9339
|
filesLength = getBigUint64(endOfDirectoryView2, 32);
|
|
9248
|
-
} else if (
|
|
9249
|
-
|
|
9340
|
+
} else if (filesLength != getBigUint64(endOfDirectoryView2, 32)) {
|
|
9341
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY);
|
|
9250
9342
|
}
|
|
9251
9343
|
if (directoryDataLength == MAX_32_BITS) {
|
|
9252
9344
|
directoryDataLength = getBigUint64(endOfDirectoryView2, 40);
|
|
9253
|
-
} else if (
|
|
9254
|
-
|
|
9345
|
+
} else if (directoryDataLength != getBigUint64(endOfDirectoryView2, 40)) {
|
|
9346
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY);
|
|
9255
9347
|
}
|
|
9256
9348
|
directoryDataOffset = getDiskOffset(reader, diskNumber) + getBigUint64(endOfDirectoryView2, 48) + prependedDataLength;
|
|
9257
9349
|
}
|
|
@@ -9315,11 +9407,22 @@ var init_zip_reader = __esm({
|
|
|
9315
9407
|
declaredDirectoryDataLength = directoryArray.length;
|
|
9316
9408
|
decryptedDirectory = true;
|
|
9317
9409
|
}
|
|
9410
|
+
if (directoryEncryptionInfo && !decryptedDirectory && (directoryArray.length < 4 || getUint32(directoryView, 0) == CENTRAL_FILE_HEADER_SIGNATURE)) {
|
|
9411
|
+
addWarning(warnings, WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA);
|
|
9412
|
+
}
|
|
9318
9413
|
startOffset = directoryDataOffset;
|
|
9319
9414
|
const filenameEncoding = getOptionValue(zipReader, options, OPTION_FILENAME_ENCODING);
|
|
9320
9415
|
const commentEncoding = getOptionValue(zipReader, options, OPTION_COMMENT_ENCODING);
|
|
9321
|
-
const filenames =
|
|
9416
|
+
const filenames = /* @__PURE__ */ new Set();
|
|
9322
9417
|
let duplicateFilename;
|
|
9418
|
+
let previousEntryPosition = -1;
|
|
9419
|
+
const recoverWrappedFilesLength = !checkAmbiguity && !zip64EndOfDirectory;
|
|
9420
|
+
if (!filesLength && recoverWrappedFilesLength) {
|
|
9421
|
+
filesLength = getWrappedFilesLength(directoryView, directoryArray, offset);
|
|
9422
|
+
if (filesLength) {
|
|
9423
|
+
addWarning(warnings, WARNING_WRAPPED_ENTRIES_COUNT);
|
|
9424
|
+
}
|
|
9425
|
+
}
|
|
9323
9426
|
for (let indexFile = 0; indexFile < filesLength; indexFile++) {
|
|
9324
9427
|
const fileEntry = new ZipEntry(reader, zipReader.options);
|
|
9325
9428
|
if (offset + CENTRAL_FILE_HEADER_LENGTH > directoryArray.length || getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE) {
|
|
@@ -9397,15 +9500,26 @@ var init_zip_reader = __esm({
|
|
|
9397
9500
|
filename,
|
|
9398
9501
|
comment
|
|
9399
9502
|
});
|
|
9400
|
-
readCommonFooter(fileEntry, fileEntry, directoryView, offset + 6)
|
|
9503
|
+
if (readCommonFooter(fileEntry, fileEntry, directoryView, offset + 6)) {
|
|
9504
|
+
addWarning(warnings, WARNING_MALFORMED_EXTRA_FIELD, filename);
|
|
9505
|
+
}
|
|
9401
9506
|
fileEntry.offset += prependedDataLength;
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
}
|
|
9407
|
-
filenames.add(fileEntry.filename);
|
|
9507
|
+
const entryPosition = getDiskOffset(reader, fileEntry.diskNumberStart) + fileEntry.offset;
|
|
9508
|
+
startOffset = Math.min(entryPosition, startOffset);
|
|
9509
|
+
if (entryPosition < previousEntryPosition) {
|
|
9510
|
+
addWarning(warnings, WARNING_UNSORTED_CENTRAL_DIRECTORY, filename);
|
|
9408
9511
|
}
|
|
9512
|
+
previousEntryPosition = entryPosition;
|
|
9513
|
+
if ((fileEntry.version & MAX_8_BITS) > MAX_KNOWN_VERSION) {
|
|
9514
|
+
addWarning(warnings, WARNING_UNKNOWN_VERSION, filename);
|
|
9515
|
+
}
|
|
9516
|
+
if ((fileEntry.rawBitFlag & BITFLAG_COMPRESSED_PATCHED_DATA) == BITFLAG_COMPRESSED_PATCHED_DATA) {
|
|
9517
|
+
addWarning(warnings, WARNING_COMPRESSED_PATCHED_DATA, filename);
|
|
9518
|
+
}
|
|
9519
|
+
if (filenames.has(fileEntry.filename)) {
|
|
9520
|
+
duplicateFilename = true;
|
|
9521
|
+
}
|
|
9522
|
+
filenames.add(fileEntry.filename);
|
|
9409
9523
|
const unixExternalUpper = fileEntry.externalFileAttributes >> 16 & MAX_16_BITS;
|
|
9410
9524
|
if (fileEntry.unixMode === UNDEFINED_VALUE && (unixExternalUpper & (FILE_ATTR_UNIX_DEFAULT_MASK | FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_TYPE_DIR)) != 0) {
|
|
9411
9525
|
fileEntry.unixMode = unixExternalUpper;
|
|
@@ -9427,7 +9541,7 @@ var init_zip_reader = __esm({
|
|
|
9427
9541
|
internalFileAttribute: fileEntry.internalFileAttributes,
|
|
9428
9542
|
externalFileAttribute: fileEntry.externalFileAttributes,
|
|
9429
9543
|
executable,
|
|
9430
|
-
directory: modeIsDir || upperIsDir || msDosCompatible && msdosAttributes.directory || fileEntry.filename.endsWith(DIRECTORY_SIGNATURE)
|
|
9544
|
+
directory: modeIsDir || upperIsDir || msDosCompatible && msdosAttributes.directory || fileEntry.filename.endsWith(DIRECTORY_SIGNATURE),
|
|
9431
9545
|
zipCrypto: fileEntry.encrypted && !fileEntry.extraFieldAES
|
|
9432
9546
|
});
|
|
9433
9547
|
const entry = new Entry(fileEntry);
|
|
@@ -9441,6 +9555,13 @@ var init_zip_reader = __esm({
|
|
|
9441
9555
|
return arrayBufferPromise;
|
|
9442
9556
|
};
|
|
9443
9557
|
offset = endOffset;
|
|
9558
|
+
if (indexFile == filesLength - 1 && recoverWrappedFilesLength) {
|
|
9559
|
+
const wrappedFilesLength = getWrappedFilesLength(directoryView, directoryArray, offset);
|
|
9560
|
+
if (wrappedFilesLength) {
|
|
9561
|
+
filesLength += wrappedFilesLength;
|
|
9562
|
+
addWarning(warnings, WARNING_WRAPPED_ENTRIES_COUNT);
|
|
9563
|
+
}
|
|
9564
|
+
}
|
|
9444
9565
|
const { onprogress } = options;
|
|
9445
9566
|
if (onprogress) {
|
|
9446
9567
|
try {
|
|
@@ -9463,17 +9584,20 @@ var init_zip_reader = __esm({
|
|
|
9463
9584
|
zipReader.digitalSignature = digitalSignature;
|
|
9464
9585
|
offsetAfterSignature = offset + 6 + digitalSignature.length;
|
|
9465
9586
|
}
|
|
9466
|
-
if (
|
|
9467
|
-
|
|
9587
|
+
if (offset != declaredDirectoryDataLength && offsetAfterSignature != declaredDirectoryDataLength || !decryptedDirectory && offset != directoryDataLength && offsetAfterSignature != directoryDataLength) {
|
|
9588
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_TRAILING_CENTRAL_DIRECTORY_DATA);
|
|
9468
9589
|
}
|
|
9469
9590
|
if (duplicateFilename) {
|
|
9470
|
-
|
|
9591
|
+
reportAmbiguity(checkAmbiguity, warnings, WARNING_DUPLICATE_FILENAME);
|
|
9471
9592
|
}
|
|
9472
9593
|
const extractPrependedData = getOptionValue(zipReader, options, OPTION_EXTRACT_PREPENDED_DATA);
|
|
9473
9594
|
const extractAppendedData = getOptionValue(zipReader, options, OPTION_EXTRACT_APPENDED_DATA);
|
|
9474
9595
|
const splitZipSignatureLength = (checkAmbiguity || extractPrependedData) && filesLength && startOffset == SPLIT_ZIP_FILE_SIGNATURE_LENGTH && await startsWithSplitZipMarker(reader) ? SPLIT_ZIP_FILE_SIGNATURE_LENGTH : 0;
|
|
9475
9596
|
if (checkAmbiguity && (prependedDataLength || filesLength && startOffset > splitZipSignatureLength)) {
|
|
9476
|
-
throwAmbiguousArchive(
|
|
9597
|
+
throwAmbiguousArchive(WARNING_PREPENDED_DATA);
|
|
9598
|
+
}
|
|
9599
|
+
if (prependedDataLength || filesLength && startOffset > SPLIT_ZIP_FILE_SIGNATURE_LENGTH) {
|
|
9600
|
+
addWarning(warnings, WARNING_PREPENDED_DATA);
|
|
9477
9601
|
}
|
|
9478
9602
|
if (extractPrependedData) {
|
|
9479
9603
|
zipReader.prependedData = startOffset > splitZipSignatureLength ? await readUint8Array(reader, splitZipSignatureLength, startOffset - splitZipSignatureLength) : EMPTY_UINT8_ARRAY;
|
|
@@ -9563,6 +9687,7 @@ var init_zip_reader = __esm({
|
|
|
9563
9687
|
dataDescriptor
|
|
9564
9688
|
} = bitFlag;
|
|
9565
9689
|
const localDirectory = fileEntry.localDirectory = {};
|
|
9690
|
+
const warnings = fileEntry.warnings = [];
|
|
9566
9691
|
const localHeaderOffset = getDiskOffset(reader, diskNumberStart) + offset;
|
|
9567
9692
|
const dataArray = await readUint8Array(reader, localHeaderOffset, HEADER_SIZE);
|
|
9568
9693
|
const dataView = getDataView(dataArray);
|
|
@@ -9585,6 +9710,7 @@ var init_zip_reader = __esm({
|
|
|
9585
9710
|
extraFieldLength,
|
|
9586
9711
|
filenameLength
|
|
9587
9712
|
} = localDirectory;
|
|
9713
|
+
const dataOffset = localDirectory.dataOffset = localHeaderOffset + HEADER_SIZE + filenameLength + extraFieldLength;
|
|
9588
9714
|
const checkLocalDirectoryOption = getOptionValue(zipEntry, options, OPTION_CHECK_LOCAL_DIRECTORY);
|
|
9589
9715
|
const entryStrictness = getStrictness(options, zipEntry.options);
|
|
9590
9716
|
const checkLocalDirectory = getCheckLocalDirectory(checkLocalDirectoryOption, entryStrictness);
|
|
@@ -9600,10 +9726,10 @@ var init_zip_reader = __esm({
|
|
|
9600
9726
|
if (checkLocalFilename) {
|
|
9601
9727
|
localDirectory.rawFilename = rawLocalFilename;
|
|
9602
9728
|
}
|
|
9603
|
-
readCommonFooter(zipEntry, localDirectory, dataView, 4, true)
|
|
9604
|
-
|
|
9605
|
-
validateLocalDirectory(zipEntry, localDirectory, rawLocalFilename, checkLocalFilename);
|
|
9729
|
+
if (readCommonFooter(zipEntry, localDirectory, dataView, 4, true)) {
|
|
9730
|
+
addWarning(warnings, WARNING_MALFORMED_EXTRA_FIELD);
|
|
9606
9731
|
}
|
|
9732
|
+
validateLocalDirectory(zipEntry, localDirectory, rawLocalFilename, checkLocalFilename, checkLocalDirectory ? UNDEFINED_VALUE : warnings);
|
|
9607
9733
|
const { lastAccessDate, creationDate, uid, gid } = localDirectory;
|
|
9608
9734
|
if (lastAccessDate) {
|
|
9609
9735
|
fileEntry.lastAccessDate = lastAccessDate;
|
|
@@ -9636,7 +9762,6 @@ var init_zip_reader = __esm({
|
|
|
9636
9762
|
throw new Error(ERR_ENCRYPTED);
|
|
9637
9763
|
}
|
|
9638
9764
|
}
|
|
9639
|
-
const dataOffset = localHeaderOffset + HEADER_SIZE + filenameLength + extraFieldLength;
|
|
9640
9765
|
if (dataOffset + compressedSize > reader.size) {
|
|
9641
9766
|
throw new Error(ERR_ENTRY_DATA_OUT_OF_BOUNDS);
|
|
9642
9767
|
}
|
|
@@ -10278,17 +10403,17 @@ var require_codegen = __commonJS({
|
|
|
10278
10403
|
const cond = this.condition;
|
|
10279
10404
|
if (cond === true)
|
|
10280
10405
|
return this.nodes;
|
|
10281
|
-
let
|
|
10282
|
-
if (
|
|
10283
|
-
const ns2 =
|
|
10284
|
-
|
|
10406
|
+
let e3 = this.else;
|
|
10407
|
+
if (e3) {
|
|
10408
|
+
const ns2 = e3.optimizeNodes();
|
|
10409
|
+
e3 = this.else = Array.isArray(ns2) ? new Else(ns2) : ns2;
|
|
10285
10410
|
}
|
|
10286
|
-
if (
|
|
10411
|
+
if (e3) {
|
|
10287
10412
|
if (cond === false)
|
|
10288
|
-
return
|
|
10413
|
+
return e3 instanceof _If ? e3 : e3.nodes;
|
|
10289
10414
|
if (this.nodes.length)
|
|
10290
10415
|
return this;
|
|
10291
|
-
return new _If(not(cond),
|
|
10416
|
+
return new _If(not(cond), e3 instanceof _If ? [e3] : e3.nodes);
|
|
10292
10417
|
}
|
|
10293
10418
|
if (cond === false || !this.nodes.length)
|
|
10294
10419
|
return void 0;
|
|
@@ -10732,8 +10857,8 @@ var require_codegen = __commonJS({
|
|
|
10732
10857
|
delete names[n3.str];
|
|
10733
10858
|
return c2;
|
|
10734
10859
|
}
|
|
10735
|
-
function canOptimize(
|
|
10736
|
-
return
|
|
10860
|
+
function canOptimize(e3) {
|
|
10861
|
+
return e3 instanceof code_1._Code && e3._items.some((c2) => c2 instanceof code_1.Name && names[c2.str] === 1 && constants[c2.str] !== void 0);
|
|
10737
10862
|
}
|
|
10738
10863
|
}
|
|
10739
10864
|
function subtractNames(names, from) {
|
|
@@ -11601,7 +11726,7 @@ var require_keyword = __commonJS({
|
|
|
11601
11726
|
}
|
|
11602
11727
|
function validateAsync() {
|
|
11603
11728
|
const ruleErrs = gen.let("ruleErrs", null);
|
|
11604
|
-
gen.try(() => assignValid((0, codegen_1._)`await `), (
|
|
11729
|
+
gen.try(() => assignValid((0, codegen_1._)`await `), (e3) => gen.assign(valid, false).if((0, codegen_1._)`${e3} instanceof ${it2.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e3}.errors`), () => gen.throw(e3)));
|
|
11605
11730
|
return ruleErrs;
|
|
11606
11731
|
}
|
|
11607
11732
|
function validateSync() {
|
|
@@ -12678,12 +12803,12 @@ var require_compile = __commonJS({
|
|
|
12678
12803
|
}
|
|
12679
12804
|
sch.validate = validate;
|
|
12680
12805
|
return sch;
|
|
12681
|
-
} catch (
|
|
12806
|
+
} catch (e3) {
|
|
12682
12807
|
delete sch.validate;
|
|
12683
12808
|
delete sch.validateName;
|
|
12684
12809
|
if (sourceCode)
|
|
12685
12810
|
this.logger.error("Error compiling schema, function code:", sourceCode);
|
|
12686
|
-
throw
|
|
12811
|
+
throw e3;
|
|
12687
12812
|
} finally {
|
|
12688
12813
|
this._compilations.delete(sch);
|
|
12689
12814
|
}
|
|
@@ -13737,8 +13862,8 @@ var require_fast_uri = __commonJS({
|
|
|
13737
13862
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host[0] !== "[" && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
13738
13863
|
try {
|
|
13739
13864
|
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
13740
|
-
} catch (
|
|
13741
|
-
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " +
|
|
13865
|
+
} catch (e3) {
|
|
13866
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e3;
|
|
13742
13867
|
return true;
|
|
13743
13868
|
}
|
|
13744
13869
|
}
|
|
@@ -14124,11 +14249,11 @@ var require_core = __commonJS({
|
|
|
14124
14249
|
async function _compileAsync(sch) {
|
|
14125
14250
|
try {
|
|
14126
14251
|
return this._compileSchemaEnv(sch);
|
|
14127
|
-
} catch (
|
|
14128
|
-
if (!(
|
|
14129
|
-
throw
|
|
14130
|
-
checkLoaded.call(this,
|
|
14131
|
-
await loadMissingSchema.call(this,
|
|
14252
|
+
} catch (e3) {
|
|
14253
|
+
if (!(e3 instanceof ref_error_1.default))
|
|
14254
|
+
throw e3;
|
|
14255
|
+
checkLoaded.call(this, e3);
|
|
14256
|
+
await loadMissingSchema.call(this, e3.missingSchema);
|
|
14132
14257
|
return _compileAsync.call(this, sch);
|
|
14133
14258
|
}
|
|
14134
14259
|
}
|
|
@@ -14324,7 +14449,7 @@ var require_core = __commonJS({
|
|
|
14324
14449
|
errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
|
|
14325
14450
|
if (!errors || errors.length === 0)
|
|
14326
14451
|
return "No errors";
|
|
14327
|
-
return errors.map((
|
|
14452
|
+
return errors.map((e3) => `${dataVar}${e3.instancePath} ${e3.message}`).reduce((text, msg) => text + separator + msg);
|
|
14328
14453
|
}
|
|
14329
14454
|
$dataMetaSchema(metaSchema, keywordsJsonPointers) {
|
|
14330
14455
|
const rules = this.RULES.all;
|
|
@@ -14632,9 +14757,9 @@ var require_ref = __commonJS({
|
|
|
14632
14757
|
addEvaluatedFrom(v2);
|
|
14633
14758
|
if (!allErrors)
|
|
14634
14759
|
gen.assign(valid, true);
|
|
14635
|
-
}, (
|
|
14636
|
-
gen.if((0, codegen_1._)`!(${
|
|
14637
|
-
addErrorsFrom(
|
|
14760
|
+
}, (e3) => {
|
|
14761
|
+
gen.if((0, codegen_1._)`!(${e3} instanceof ${it2.ValidationError})`, () => gen.throw(e3));
|
|
14762
|
+
addErrorsFrom(e3);
|
|
14638
14763
|
if (!allErrors)
|
|
14639
14764
|
gen.assign(valid, false);
|
|
14640
14765
|
});
|
|
@@ -18249,7 +18374,9 @@ var readCliVersion = () => {
|
|
|
18249
18374
|
const pkg = JSON.parse(
|
|
18250
18375
|
(0, import_fs.readFileSync)(import_path.default.join(dir, "package.json"), "utf8")
|
|
18251
18376
|
);
|
|
18252
|
-
if (pkg.name === "@alipay/linkque-cli"
|
|
18377
|
+
if (pkg.name === "@alipay/linkque-cli" || pkg.name === "linkque-cli-v2") {
|
|
18378
|
+
return pkg.version ?? "0.0.0";
|
|
18379
|
+
}
|
|
18253
18380
|
} catch {
|
|
18254
18381
|
}
|
|
18255
18382
|
dir = import_path.default.dirname(dir);
|
|
@@ -18312,7 +18439,7 @@ var import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
|
18312
18439
|
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
18313
18440
|
var zr = Object.defineProperty;
|
|
18314
18441
|
var Ur = (s4, t3) => {
|
|
18315
|
-
for (var
|
|
18442
|
+
for (var e3 in t3) zr(s4, e3, { get: t3[e3], enumerable: true });
|
|
18316
18443
|
};
|
|
18317
18444
|
var Ds = typeof process == "object" && process ? process : { stdout: null, stderr: null };
|
|
18318
18445
|
var Wr = (s4) => !!s4 && typeof s4 == "object" && (s4 instanceof A || s4 instanceof import_node_stream.default || Gr(s4) || Zr(s4));
|
|
@@ -18359,8 +18486,8 @@ var Fe = class {
|
|
|
18359
18486
|
dest;
|
|
18360
18487
|
opts;
|
|
18361
18488
|
ondrain;
|
|
18362
|
-
constructor(t3,
|
|
18363
|
-
this.src = t3, this.dest =
|
|
18489
|
+
constructor(t3, e3, i) {
|
|
18490
|
+
this.src = t3, this.dest = e3, this.opts = i, this.ondrain = () => t3[Bt](), this.dest.on("drain", this.ondrain);
|
|
18364
18491
|
}
|
|
18365
18492
|
unpipe() {
|
|
18366
18493
|
this.dest.removeListener("drain", this.ondrain);
|
|
@@ -18375,8 +18502,8 @@ var Li = class extends Fe {
|
|
|
18375
18502
|
unpipe() {
|
|
18376
18503
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
18377
18504
|
}
|
|
18378
|
-
constructor(t3,
|
|
18379
|
-
super(t3,
|
|
18505
|
+
constructor(t3, e3, i) {
|
|
18506
|
+
super(t3, e3, i), this.proxyErrors = (r2) => this.dest.emit("error", r2), t3.on("error", this.proxyErrors);
|
|
18380
18507
|
}
|
|
18381
18508
|
};
|
|
18382
18509
|
var Xr = (s4) => !!s4.objectMode;
|
|
@@ -18404,10 +18531,10 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18404
18531
|
writable = true;
|
|
18405
18532
|
readable = true;
|
|
18406
18533
|
constructor(...t3) {
|
|
18407
|
-
let
|
|
18408
|
-
if (super(),
|
|
18409
|
-
Xr(
|
|
18410
|
-
let { signal: i } =
|
|
18534
|
+
let e3 = t3[0] || {};
|
|
18535
|
+
if (super(), e3.objectMode && typeof e3.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
18536
|
+
Xr(e3) ? (this[L] = true, this[z] = null) : qr(e3) ? (this[z] = e3.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e3.async, this[Mt] = this[z] ? new import_node_string_decoder.StringDecoder(this[z]) : null, e3 && e3.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e3 && e3.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[N] });
|
|
18537
|
+
let { signal: i } = e3;
|
|
18411
18538
|
i && (this[Jt] = i, i.aborted ? this[xi]() : i.addEventListener("abort", () => this[xi]()));
|
|
18412
18539
|
}
|
|
18413
18540
|
get bufferLength() {
|
|
@@ -18442,36 +18569,36 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18442
18569
|
}
|
|
18443
18570
|
set aborted(t3) {
|
|
18444
18571
|
}
|
|
18445
|
-
write(t3,
|
|
18572
|
+
write(t3, e3, i) {
|
|
18446
18573
|
if (this[Ce]) return false;
|
|
18447
18574
|
if (this[Q]) throw new Error("write after end");
|
|
18448
18575
|
if (this[S]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
18449
|
-
typeof
|
|
18576
|
+
typeof e3 == "function" && (i = e3, e3 = "utf8"), e3 || (e3 = "utf8");
|
|
18450
18577
|
let r2 = this[Z] ? jt : Yr;
|
|
18451
18578
|
if (!this[L] && !Buffer.isBuffer(t3)) {
|
|
18452
18579
|
if ($r(t3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
|
|
18453
18580
|
else if (Vr(t3)) t3 = Buffer.from(t3);
|
|
18454
18581
|
else if (typeof t3 != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
18455
18582
|
}
|
|
18456
|
-
return this[L] ? (this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t3) : this[bi](t3), this[_] !== 0 && this.emit("readable"), i && r2(i), this[g]) : t3.length ? (typeof t3 == "string" && !(
|
|
18583
|
+
return this[L] ? (this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t3) : this[bi](t3), this[_] !== 0 && this.emit("readable"), i && r2(i), this[g]) : t3.length ? (typeof t3 == "string" && !(e3 === this[z] && !this[Mt]?.lastNeed) && (t3 = Buffer.from(t3, e3)), Buffer.isBuffer(t3) && this[z] && (t3 = this[Mt].write(t3)), this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t3) : this[bi](t3), this[_] !== 0 && this.emit("readable"), i && r2(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r2(i), this[g]);
|
|
18457
18584
|
}
|
|
18458
18585
|
read(t3) {
|
|
18459
18586
|
if (this[S]) return null;
|
|
18460
18587
|
if (this[C] = false, this[_] === 0 || t3 === 0 || t3 && t3 > this[_]) return this[J](), null;
|
|
18461
18588
|
this[L] && (t3 = null), this[b].length > 1 && !this[L] && (this[b] = [this[z] ? this[b].join("") : Buffer.concat(this[b], this[_])]);
|
|
18462
|
-
let
|
|
18463
|
-
return this[J](),
|
|
18589
|
+
let e3 = this[Ns](t3 || null, this[b][0]);
|
|
18590
|
+
return this[J](), e3;
|
|
18464
18591
|
}
|
|
18465
|
-
[Ns](t3,
|
|
18592
|
+
[Ns](t3, e3) {
|
|
18466
18593
|
if (this[L]) this[Ie]();
|
|
18467
18594
|
else {
|
|
18468
|
-
let i =
|
|
18469
|
-
t3 === i.length || t3 === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t3),
|
|
18595
|
+
let i = e3;
|
|
18596
|
+
t3 === i.length || t3 === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t3), e3 = i.slice(0, t3), this[_] -= t3) : (this[b][0] = i.subarray(t3), e3 = i.subarray(0, t3), this[_] -= t3);
|
|
18470
18597
|
}
|
|
18471
|
-
return this.emit("data",
|
|
18598
|
+
return this.emit("data", e3), !this[b].length && !this[Q] && this.emit("drain"), e3;
|
|
18472
18599
|
}
|
|
18473
|
-
end(t3,
|
|
18474
|
-
return typeof t3 == "function" && (i = t3, t3 = void 0), typeof
|
|
18600
|
+
end(t3, e3, i) {
|
|
18601
|
+
return typeof t3 == "function" && (i = t3, t3 = void 0), typeof e3 == "function" && (i = e3, e3 = "utf8"), t3 !== void 0 && this.write(t3, e3), i && this.once("end", i), this[Q] = true, this.writable = false, (this[g] || !this[Qt]) && this[J](), this;
|
|
18475
18602
|
}
|
|
18476
18603
|
[Bt]() {
|
|
18477
18604
|
this[S] || (!this[Rt] && !this[N].length && (this[C] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[Ae]() : this[Q] ? this[J]() : this.emit("drain"));
|
|
@@ -18506,40 +18633,40 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18506
18633
|
[As](t3) {
|
|
18507
18634
|
return this.emit("data", t3), this[g];
|
|
18508
18635
|
}
|
|
18509
|
-
pipe(t3,
|
|
18636
|
+
pipe(t3, e3) {
|
|
18510
18637
|
if (this[S]) return t3;
|
|
18511
18638
|
this[C] = false;
|
|
18512
18639
|
let i = this[nt];
|
|
18513
|
-
return
|
|
18640
|
+
return e3 = e3 || {}, t3 === Ds.stdout || t3 === Ds.stderr ? e3.end = false : e3.end = e3.end !== false, e3.proxyErrors = !!e3.proxyErrors, i ? e3.end && t3.end() : (this[N].push(e3.proxyErrors ? new Li(this, t3, e3) : new Fe(this, t3, e3)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t3;
|
|
18514
18641
|
}
|
|
18515
18642
|
unpipe(t3) {
|
|
18516
|
-
let
|
|
18517
|
-
|
|
18643
|
+
let e3 = this[N].find((i) => i.dest === t3);
|
|
18644
|
+
e3 && (this[N].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[N] = []) : this[N].splice(this[N].indexOf(e3), 1), e3.unpipe());
|
|
18518
18645
|
}
|
|
18519
|
-
addListener(t3,
|
|
18520
|
-
return this.on(t3,
|
|
18646
|
+
addListener(t3, e3) {
|
|
18647
|
+
return this.on(t3, e3);
|
|
18521
18648
|
}
|
|
18522
|
-
on(t3,
|
|
18523
|
-
let i = super.on(t3,
|
|
18649
|
+
on(t3, e3) {
|
|
18650
|
+
let i = super.on(t3, e3);
|
|
18524
18651
|
if (t3 === "data") this[C] = false, this[Rt]++, !this[N].length && !this[g] && this[Bt]();
|
|
18525
18652
|
else if (t3 === "readable" && this[_] !== 0) super.emit("readable");
|
|
18526
18653
|
else if (Kr(t3) && this[nt]) super.emit(t3), this.removeAllListeners(t3);
|
|
18527
18654
|
else if (t3 === "error" && this[qt]) {
|
|
18528
|
-
let r2 =
|
|
18655
|
+
let r2 = e3;
|
|
18529
18656
|
this[Z] ? jt(() => r2.call(this, this[qt])) : r2.call(this, this[qt]);
|
|
18530
18657
|
}
|
|
18531
18658
|
return i;
|
|
18532
18659
|
}
|
|
18533
|
-
removeListener(t3,
|
|
18534
|
-
return this.off(t3,
|
|
18660
|
+
removeListener(t3, e3) {
|
|
18661
|
+
return this.off(t3, e3);
|
|
18535
18662
|
}
|
|
18536
|
-
off(t3,
|
|
18537
|
-
let i = super.off(t3,
|
|
18663
|
+
off(t3, e3) {
|
|
18664
|
+
let i = super.off(t3, e3);
|
|
18538
18665
|
return t3 === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[C] && !this[N].length && (this[g] = false)), i;
|
|
18539
18666
|
}
|
|
18540
18667
|
removeAllListeners(t3) {
|
|
18541
|
-
let
|
|
18542
|
-
return (t3 === "data" || t3 === void 0) && (this[Rt] = 0, !this[C] && !this[N].length && (this[g] = false)),
|
|
18668
|
+
let e3 = super.removeAllListeners(t3);
|
|
18669
|
+
return (t3 === "data" || t3 === void 0) && (this[Rt] = 0, !this[C] && !this[N].length && (this[g] = false)), e3;
|
|
18543
18670
|
}
|
|
18544
18671
|
get emittedEnd() {
|
|
18545
18672
|
return this[nt];
|
|
@@ -18547,8 +18674,8 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18547
18674
|
[J]() {
|
|
18548
18675
|
!this[De] && !this[nt] && !this[S] && this[b].length === 0 && this[Q] && (this[De] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[De] = false);
|
|
18549
18676
|
}
|
|
18550
|
-
emit(t3, ...
|
|
18551
|
-
let i =
|
|
18677
|
+
emit(t3, ...e3) {
|
|
18678
|
+
let i = e3[0];
|
|
18552
18679
|
if (t3 !== "error" && t3 !== "close" && t3 !== S && this[S]) return false;
|
|
18553
18680
|
if (t3 === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[Oi](i)), true) : this[Oi](i);
|
|
18554
18681
|
if (t3 === "end") return this[Is]();
|
|
@@ -18567,36 +18694,36 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18567
18694
|
let n3 = super.emit(t3);
|
|
18568
18695
|
return this.removeAllListeners(t3), n3;
|
|
18569
18696
|
}
|
|
18570
|
-
let r2 = super.emit(t3, ...
|
|
18697
|
+
let r2 = super.emit(t3, ...e3);
|
|
18571
18698
|
return this[J](), r2;
|
|
18572
18699
|
}
|
|
18573
18700
|
[Oi](t3) {
|
|
18574
18701
|
for (let i of this[N]) i.dest.write(t3) === false && this.pause();
|
|
18575
|
-
let
|
|
18576
|
-
return this[J](),
|
|
18702
|
+
let e3 = this[C] ? false : super.emit("data", t3);
|
|
18703
|
+
return this[J](), e3;
|
|
18577
18704
|
}
|
|
18578
18705
|
[Is]() {
|
|
18579
18706
|
return this[nt] ? false : (this[nt] = true, this.readable = false, this[Z] ? (jt(() => this[Ti]()), true) : this[Ti]());
|
|
18580
18707
|
}
|
|
18581
18708
|
[Ti]() {
|
|
18582
18709
|
if (this[Mt]) {
|
|
18583
|
-
let
|
|
18584
|
-
if (
|
|
18585
|
-
for (let i of this[N]) i.dest.write(
|
|
18586
|
-
this[C] || super.emit("data",
|
|
18710
|
+
let e3 = this[Mt].end();
|
|
18711
|
+
if (e3) {
|
|
18712
|
+
for (let i of this[N]) i.dest.write(e3);
|
|
18713
|
+
this[C] || super.emit("data", e3);
|
|
18587
18714
|
}
|
|
18588
18715
|
}
|
|
18589
|
-
for (let
|
|
18716
|
+
for (let e3 of this[N]) e3.end();
|
|
18590
18717
|
let t3 = super.emit("end");
|
|
18591
18718
|
return this.removeAllListeners("end"), t3;
|
|
18592
18719
|
}
|
|
18593
18720
|
async collect() {
|
|
18594
18721
|
let t3 = Object.assign([], { dataLength: 0 });
|
|
18595
18722
|
this[L] || (t3.dataLength = 0);
|
|
18596
|
-
let
|
|
18723
|
+
let e3 = this.promise();
|
|
18597
18724
|
return this.on("data", (i) => {
|
|
18598
18725
|
t3.push(i), this[L] || (t3.dataLength += i.length);
|
|
18599
|
-
}), await
|
|
18726
|
+
}), await e3, t3;
|
|
18600
18727
|
}
|
|
18601
18728
|
async concat() {
|
|
18602
18729
|
if (this[L]) throw new Error("cannot concat in objectMode");
|
|
@@ -18604,41 +18731,41 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18604
18731
|
return this[z] ? t3.join("") : Buffer.concat(t3, t3.dataLength);
|
|
18605
18732
|
}
|
|
18606
18733
|
async promise() {
|
|
18607
|
-
return new Promise((t3,
|
|
18608
|
-
this.on(S, () =>
|
|
18734
|
+
return new Promise((t3, e3) => {
|
|
18735
|
+
this.on(S, () => e3(new Error("stream destroyed"))), this.on("error", (i) => e3(i)), this.on("end", () => t3());
|
|
18609
18736
|
});
|
|
18610
18737
|
}
|
|
18611
18738
|
[Symbol.asyncIterator]() {
|
|
18612
18739
|
this[C] = false;
|
|
18613
|
-
let t3 = false,
|
|
18740
|
+
let t3 = false, e3 = async () => (this.pause(), t3 = true, { value: void 0, done: true });
|
|
18614
18741
|
return { next: () => {
|
|
18615
|
-
if (t3) return
|
|
18742
|
+
if (t3) return e3();
|
|
18616
18743
|
let r2 = this.read();
|
|
18617
18744
|
if (r2 !== null) return Promise.resolve({ done: false, value: r2 });
|
|
18618
|
-
if (this[Q]) return
|
|
18745
|
+
if (this[Q]) return e3();
|
|
18619
18746
|
let n3, o, h = (d) => {
|
|
18620
|
-
this.off("data", a), this.off("end", l2), this.off(S, c2),
|
|
18747
|
+
this.off("data", a), this.off("end", l2), this.off(S, c2), e3(), o(d);
|
|
18621
18748
|
}, a = (d) => {
|
|
18622
18749
|
this.off("error", h), this.off("end", l2), this.off(S, c2), this.pause(), n3({ value: d, done: !!this[Q] });
|
|
18623
18750
|
}, l2 = () => {
|
|
18624
|
-
this.off("error", h), this.off("data", a), this.off(S, c2),
|
|
18751
|
+
this.off("error", h), this.off("data", a), this.off(S, c2), e3(), n3({ done: true, value: void 0 });
|
|
18625
18752
|
}, c2 = () => h(new Error("stream destroyed"));
|
|
18626
18753
|
return new Promise((d, y) => {
|
|
18627
18754
|
o = y, n3 = d, this.once(S, c2), this.once("error", h), this.once("end", l2), this.once("data", a);
|
|
18628
18755
|
});
|
|
18629
|
-
}, throw:
|
|
18756
|
+
}, throw: e3, return: e3, [Symbol.asyncIterator]() {
|
|
18630
18757
|
return this;
|
|
18631
18758
|
}, [Symbol.asyncDispose]: async () => {
|
|
18632
18759
|
} };
|
|
18633
18760
|
}
|
|
18634
18761
|
[Symbol.iterator]() {
|
|
18635
18762
|
this[C] = false;
|
|
18636
|
-
let t3 = false,
|
|
18637
|
-
if (t3) return
|
|
18763
|
+
let t3 = false, e3 = () => (this.pause(), this.off(_i, e3), this.off(S, e3), this.off("end", e3), t3 = true, { done: true, value: void 0 }), i = () => {
|
|
18764
|
+
if (t3) return e3();
|
|
18638
18765
|
let r2 = this.read();
|
|
18639
|
-
return r2 === null ?
|
|
18766
|
+
return r2 === null ? e3() : { done: false, value: r2 };
|
|
18640
18767
|
};
|
|
18641
|
-
return this.once("end",
|
|
18768
|
+
return this.once("end", e3), this.once(_i, e3), this.once(S, e3), { next: i, throw: e3, return: e3, [Symbol.iterator]() {
|
|
18642
18769
|
return this;
|
|
18643
18770
|
}, [Symbol.dispose]: () => {
|
|
18644
18771
|
} };
|
|
@@ -18646,8 +18773,8 @@ var A = class extends import_node_events.EventEmitter {
|
|
|
18646
18773
|
destroy(t3) {
|
|
18647
18774
|
if (this[S]) return t3 ? this.emit("error", t3) : this.emit(S), this;
|
|
18648
18775
|
this[S] = true, this[C] = true, this[b].length = 0, this[_] = 0;
|
|
18649
|
-
let
|
|
18650
|
-
return typeof
|
|
18776
|
+
let e3 = this;
|
|
18777
|
+
return typeof e3.close == "function" && !this[Ne] && e3.close(), t3 ? this.emit("error", t3) : this.emit(S), this;
|
|
18651
18778
|
}
|
|
18652
18779
|
static get isStream() {
|
|
18653
18780
|
return Wr;
|
|
@@ -18691,9 +18818,9 @@ var _t = class extends A {
|
|
|
18691
18818
|
[Fi];
|
|
18692
18819
|
[ee];
|
|
18693
18820
|
[ht];
|
|
18694
|
-
constructor(t3,
|
|
18695
|
-
if (
|
|
18696
|
-
this[bt] = false, this[m] = typeof
|
|
18821
|
+
constructor(t3, e3) {
|
|
18822
|
+
if (e3 = e3 || {}, super(e3), this.readable = true, this.writable = false, typeof t3 != "string") throw new TypeError("path must be a string");
|
|
18823
|
+
this[bt] = false, this[m] = typeof e3.fd == "number" ? e3.fd : void 0, this[U] = t3, this[Ci] = e3.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e3.size == "number" ? e3.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e3.autoClose == "boolean" ? e3.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[at]();
|
|
18697
18824
|
}
|
|
18698
18825
|
get fd() {
|
|
18699
18826
|
return this[m];
|
|
@@ -18708,10 +18835,10 @@ var _t = class extends A {
|
|
|
18708
18835
|
throw new TypeError("this is a readable stream");
|
|
18709
18836
|
}
|
|
18710
18837
|
[at]() {
|
|
18711
|
-
import_fs2.default.open(this[U], "r", (t3,
|
|
18838
|
+
import_fs2.default.open(this[U], "r", (t3, e3) => this[Ht](t3, e3));
|
|
18712
18839
|
}
|
|
18713
|
-
[Ht](t3,
|
|
18714
|
-
t3 ? this[Ut](t3) : (this[m] =
|
|
18840
|
+
[Ht](t3, e3) {
|
|
18841
|
+
t3 ? this[Ut](t3) : (this[m] = e3, this.emit("open", e3), this[zt]());
|
|
18715
18842
|
}
|
|
18716
18843
|
[vi]() {
|
|
18717
18844
|
return Buffer.allocUnsafe(Math.min(this[Ci], this[ee]));
|
|
@@ -18721,26 +18848,26 @@ var _t = class extends A {
|
|
|
18721
18848
|
this[j] = true;
|
|
18722
18849
|
let t3 = this[vi]();
|
|
18723
18850
|
if (t3.length === 0) return process.nextTick(() => this[Ii](null, 0, t3));
|
|
18724
|
-
import_fs2.default.read(this[m], t3, 0, t3.length, null, (
|
|
18851
|
+
import_fs2.default.read(this[m], t3, 0, t3.length, null, (e3, i, r2) => this[Ii](e3, i, r2));
|
|
18725
18852
|
}
|
|
18726
18853
|
}
|
|
18727
|
-
[Ii](t3,
|
|
18728
|
-
this[j] = false, t3 ? this[Ut](t3) : this[ki](
|
|
18854
|
+
[Ii](t3, e3, i) {
|
|
18855
|
+
this[j] = false, t3 ? this[Ut](t3) : this[ki](e3, i) && this[zt]();
|
|
18729
18856
|
}
|
|
18730
18857
|
[H]() {
|
|
18731
18858
|
if (this[ht] && typeof this[m] == "number") {
|
|
18732
18859
|
let t3 = this[m];
|
|
18733
|
-
this[m] = void 0, import_fs2.default.close(t3, (
|
|
18860
|
+
this[m] = void 0, import_fs2.default.close(t3, (e3) => e3 ? this.emit("error", e3) : this.emit("close"));
|
|
18734
18861
|
}
|
|
18735
18862
|
}
|
|
18736
18863
|
[Ut](t3) {
|
|
18737
18864
|
this[j] = true, this[H](), this.emit("error", t3);
|
|
18738
18865
|
}
|
|
18739
|
-
[ki](t3,
|
|
18866
|
+
[ki](t3, e3) {
|
|
18740
18867
|
let i = false;
|
|
18741
|
-
return this[ee] -= t3, t3 > 0 && (i = super.write(t3 <
|
|
18868
|
+
return this[ee] -= t3, t3 > 0 && (i = super.write(t3 < e3.length ? e3.subarray(0, t3) : e3)), (t3 === 0 || this[ee] <= 0) && (i = false, this[H](), super.end()), i;
|
|
18742
18869
|
}
|
|
18743
|
-
emit(t3, ...
|
|
18870
|
+
emit(t3, ...e3) {
|
|
18744
18871
|
switch (t3) {
|
|
18745
18872
|
case "prefinish":
|
|
18746
18873
|
case "finish":
|
|
@@ -18748,9 +18875,9 @@ var _t = class extends A {
|
|
|
18748
18875
|
case "drain":
|
|
18749
18876
|
return typeof this[m] == "number" && this[zt](), false;
|
|
18750
18877
|
case "error":
|
|
18751
|
-
return this[bt] ? false : (this[bt] = true, super.emit(t3, ...
|
|
18878
|
+
return this[bt] ? false : (this[bt] = true, super.emit(t3, ...e3));
|
|
18752
18879
|
default:
|
|
18753
|
-
return super.emit(t3, ...
|
|
18880
|
+
return super.emit(t3, ...e3);
|
|
18754
18881
|
}
|
|
18755
18882
|
}
|
|
18756
18883
|
};
|
|
@@ -18769,8 +18896,8 @@ var Be = class extends _t {
|
|
|
18769
18896
|
if (!this[j]) {
|
|
18770
18897
|
this[j] = true;
|
|
18771
18898
|
do {
|
|
18772
|
-
let
|
|
18773
|
-
if (!this[ki](i,
|
|
18899
|
+
let e3 = this[vi](), i = e3.length === 0 ? 0 : import_fs2.default.readSync(this[m], e3, 0, e3.length, null);
|
|
18900
|
+
if (!this[ki](i, e3)) break;
|
|
18774
18901
|
} while (true);
|
|
18775
18902
|
this[j] = false;
|
|
18776
18903
|
}
|
|
@@ -18802,17 +18929,17 @@ var et = class extends import_events.default {
|
|
|
18802
18929
|
[tt];
|
|
18803
18930
|
[Ni] = false;
|
|
18804
18931
|
[ot];
|
|
18805
|
-
constructor(t3,
|
|
18806
|
-
|
|
18932
|
+
constructor(t3, e3) {
|
|
18933
|
+
e3 = e3 || {}, super(e3), this[U] = t3, this[m] = typeof e3.fd == "number" ? e3.fd : void 0, this[ie] = e3.mode === void 0 ? 438 : e3.mode, this[ot] = typeof e3.start == "number" ? e3.start : void 0, this[ht] = typeof e3.autoClose == "boolean" ? e3.autoClose : true;
|
|
18807
18934
|
let i = this[ot] !== void 0 ? "r+" : "w";
|
|
18808
|
-
this[Me] =
|
|
18935
|
+
this[Me] = e3.flags === void 0, this[tt] = e3.flags === void 0 ? i : e3.flags, this[m] === void 0 && this[at]();
|
|
18809
18936
|
}
|
|
18810
|
-
emit(t3, ...
|
|
18937
|
+
emit(t3, ...e3) {
|
|
18811
18938
|
if (t3 === "error") {
|
|
18812
18939
|
if (this[bt]) return false;
|
|
18813
18940
|
this[bt] = true;
|
|
18814
18941
|
}
|
|
18815
|
-
return super.emit(t3, ...
|
|
18942
|
+
return super.emit(t3, ...e3);
|
|
18816
18943
|
}
|
|
18817
18944
|
get fd() {
|
|
18818
18945
|
return this[m];
|
|
@@ -18824,35 +18951,35 @@ var et = class extends import_events.default {
|
|
|
18824
18951
|
this[H](), this[gt] = true, this.emit("error", t3);
|
|
18825
18952
|
}
|
|
18826
18953
|
[at]() {
|
|
18827
|
-
import_fs2.default.open(this[U], this[tt], this[ie], (t3,
|
|
18954
|
+
import_fs2.default.open(this[U], this[tt], this[ie], (t3, e3) => this[Ht](t3, e3));
|
|
18828
18955
|
}
|
|
18829
|
-
[Ht](t3,
|
|
18830
|
-
this[Me] && this[tt] === "r+" && t3 && t3.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t3 ? this[Ut](t3) : (this[m] =
|
|
18956
|
+
[Ht](t3, e3) {
|
|
18957
|
+
this[Me] && this[tt] === "r+" && t3 && t3.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t3 ? this[Ut](t3) : (this[m] = e3, this.emit("open", e3), this[gt] || this[Ai]());
|
|
18831
18958
|
}
|
|
18832
|
-
end(t3,
|
|
18833
|
-
return t3 && this.write(t3,
|
|
18959
|
+
end(t3, e3) {
|
|
18960
|
+
return t3 && this.write(t3, e3), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
|
|
18834
18961
|
}
|
|
18835
|
-
write(t3,
|
|
18836
|
-
return typeof t3 == "string" && (t3 = Buffer.from(t3,
|
|
18962
|
+
write(t3, e3) {
|
|
18963
|
+
return typeof t3 == "string" && (t3 = Buffer.from(t3, e3)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t3), this[ke] = true, false) : (this[gt] = true, this[ve](t3), true);
|
|
18837
18964
|
}
|
|
18838
18965
|
[ve](t3) {
|
|
18839
|
-
import_fs2.default.write(this[m], t3, 0, t3.length, this[ot], (
|
|
18966
|
+
import_fs2.default.write(this[m], t3, 0, t3.length, this[ot], (e3, i) => this[Pt](e3, i));
|
|
18840
18967
|
}
|
|
18841
|
-
[Pt](t3,
|
|
18842
|
-
t3 ? this[Ut](t3) : (this[ot] !== void 0 && typeof
|
|
18968
|
+
[Pt](t3, e3) {
|
|
18969
|
+
t3 ? this[Ut](t3) : (this[ot] !== void 0 && typeof e3 == "number" && (this[ot] += e3), this[Y].length ? this[Ai]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[ke] && (this[ke] = false, this.emit("drain"))));
|
|
18843
18970
|
}
|
|
18844
18971
|
[Ai]() {
|
|
18845
18972
|
if (this[Y].length === 0) this[te] && this[Pt](null, 0);
|
|
18846
18973
|
else if (this[Y].length === 1) this[ve](this[Y].pop());
|
|
18847
18974
|
else {
|
|
18848
18975
|
let t3 = this[Y];
|
|
18849
|
-
this[Y] = [], Jr(this[m], t3, this[ot], (
|
|
18976
|
+
this[Y] = [], Jr(this[m], t3, this[ot], (e3, i) => this[Pt](e3, i));
|
|
18850
18977
|
}
|
|
18851
18978
|
}
|
|
18852
18979
|
[H]() {
|
|
18853
18980
|
if (this[ht] && typeof this[m] == "number") {
|
|
18854
18981
|
let t3 = this[m];
|
|
18855
|
-
this[m] = void 0, import_fs2.default.close(t3, (
|
|
18982
|
+
this[m] = void 0, import_fs2.default.close(t3, (e3) => e3 ? this.emit("error", e3) : this.emit("close"));
|
|
18856
18983
|
}
|
|
18857
18984
|
}
|
|
18858
18985
|
};
|
|
@@ -18861,9 +18988,9 @@ var Wt = class extends et {
|
|
|
18861
18988
|
let t3;
|
|
18862
18989
|
if (this[Me] && this[tt] === "r+") try {
|
|
18863
18990
|
t3 = import_fs2.default.openSync(this[U], this[tt], this[ie]);
|
|
18864
|
-
} catch (
|
|
18865
|
-
if (
|
|
18866
|
-
throw
|
|
18991
|
+
} catch (e3) {
|
|
18992
|
+
if (e3?.code === "ENOENT") return this[tt] = "w", this[at]();
|
|
18993
|
+
throw e3;
|
|
18867
18994
|
}
|
|
18868
18995
|
else t3 = import_fs2.default.openSync(this[U], this[tt], this[ie]);
|
|
18869
18996
|
this[Ht](null, t3);
|
|
@@ -18875,11 +19002,11 @@ var Wt = class extends et {
|
|
|
18875
19002
|
}
|
|
18876
19003
|
}
|
|
18877
19004
|
[ve](t3) {
|
|
18878
|
-
let
|
|
19005
|
+
let e3 = true;
|
|
18879
19006
|
try {
|
|
18880
|
-
this[Pt](null, import_fs2.default.writeSync(this[m], t3, 0, t3.length, this[ot])),
|
|
19007
|
+
this[Pt](null, import_fs2.default.writeSync(this[m], t3, 0, t3.length, this[ot])), e3 = false;
|
|
18881
19008
|
} finally {
|
|
18882
|
-
if (
|
|
19009
|
+
if (e3) try {
|
|
18883
19010
|
this[H]();
|
|
18884
19011
|
} catch {
|
|
18885
19012
|
}
|
|
@@ -18899,13 +19026,13 @@ var tn = (s4) => {
|
|
|
18899
19026
|
var se = (s4 = {}) => {
|
|
18900
19027
|
if (!s4) return {};
|
|
18901
19028
|
let t3 = {};
|
|
18902
|
-
for (let [
|
|
18903
|
-
let r2 = tn(
|
|
19029
|
+
for (let [e3, i] of Object.entries(s4)) {
|
|
19030
|
+
let r2 = tn(e3);
|
|
18904
19031
|
t3[r2] = i;
|
|
18905
19032
|
}
|
|
18906
19033
|
return t3.chmod === void 0 && t3.noChmod === false && (t3.chmod = true), delete t3.noChmod, t3;
|
|
18907
19034
|
};
|
|
18908
|
-
var K = (s4, t3,
|
|
19035
|
+
var K = (s4, t3, e3, i, r2) => Object.assign((n3 = [], o, h) => {
|
|
18909
19036
|
Array.isArray(n3) && (o = n3, n3 = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
|
|
18910
19037
|
let a = se(n3);
|
|
18911
19038
|
if (r2?.(a, o), Fs(a)) {
|
|
@@ -18916,13 +19043,13 @@ var K = (s4, t3, e2, i, r2) => Object.assign((n3 = [], o, h) => {
|
|
|
18916
19043
|
return h ? l2.then(() => h(), h) : l2;
|
|
18917
19044
|
} else if (vs(a)) {
|
|
18918
19045
|
if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
18919
|
-
return
|
|
19046
|
+
return e3(a, o);
|
|
18920
19047
|
} else if (Ms(a)) {
|
|
18921
19048
|
if (typeof h == "function") throw new TypeError("callback only supported with file option");
|
|
18922
19049
|
return i(a, o);
|
|
18923
19050
|
}
|
|
18924
19051
|
throw new Error("impossible options??");
|
|
18925
|
-
}, { syncFile: s4, asyncFile: t3, syncNoFile:
|
|
19052
|
+
}, { syncFile: s4, asyncFile: t3, syncNoFile: e3, asyncNoFile: i, validate: r2 });
|
|
18926
19053
|
var sn = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
|
|
18927
19054
|
var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, sn));
|
|
18928
19055
|
var rn = import_buffer.Buffer.concat;
|
|
@@ -18936,8 +19063,8 @@ var Tt = Symbol("_superWrite");
|
|
|
18936
19063
|
var Gt = class extends Error {
|
|
18937
19064
|
code;
|
|
18938
19065
|
errno;
|
|
18939
|
-
constructor(t3,
|
|
18940
|
-
super("zlib: " + t3.message, { cause: t3 }), this.code = t3.code, this.errno = t3.errno, this.code || (this.code = "ZLIB_ERROR"), this.message = "zlib: " + t3.message, Error.captureStackTrace(this,
|
|
19066
|
+
constructor(t3, e3) {
|
|
19067
|
+
super("zlib: " + t3.message, { cause: t3 }), this.code = t3.code, this.errno = t3.errno, this.code || (this.code = "ZLIB_ERROR"), this.message = "zlib: " + t3.message, Error.captureStackTrace(this, e3 ?? this.constructor);
|
|
18941
19068
|
}
|
|
18942
19069
|
get name() {
|
|
18943
19070
|
return "ZlibError";
|
|
@@ -18961,11 +19088,11 @@ var re = class extends A {
|
|
|
18961
19088
|
get flushFlag() {
|
|
18962
19089
|
return this.#s;
|
|
18963
19090
|
}
|
|
18964
|
-
constructor(t3,
|
|
19091
|
+
constructor(t3, e3) {
|
|
18965
19092
|
if (!t3 || typeof t3 != "object") throw new TypeError("invalid options for ZlibBase constructor");
|
|
18966
|
-
if (super(t3), this.#s = t3.flush ?? 0, this.#n = t3.finishFlush ?? 0, this.#r = t3.fullFlushFlag ?? 0, typeof Ps[
|
|
19093
|
+
if (super(t3), this.#s = t3.flush ?? 0, this.#n = t3.finishFlush ?? 0, this.#r = t3.fullFlushFlag ?? 0, typeof Ps[e3] != "function") throw new TypeError("Compression method not supported: " + e3);
|
|
18967
19094
|
try {
|
|
18968
|
-
this.#e = new Ps[
|
|
19095
|
+
this.#e = new Ps[e3](t3);
|
|
18969
19096
|
} catch (i) {
|
|
18970
19097
|
throw new Gt(i, this.constructor);
|
|
18971
19098
|
}
|
|
@@ -18982,8 +19109,8 @@ var re = class extends A {
|
|
|
18982
19109
|
flush(t3) {
|
|
18983
19110
|
this.ended || (typeof t3 != "number" && (t3 = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Pi]: t3 })));
|
|
18984
19111
|
}
|
|
18985
|
-
end(t3,
|
|
18986
|
-
return typeof t3 == "function" && (i = t3,
|
|
19112
|
+
end(t3, e3, i) {
|
|
19113
|
+
return typeof t3 == "function" && (i = t3, e3 = void 0, t3 = void 0), typeof e3 == "function" && (i = e3, e3 = void 0), t3 && (e3 ? this.write(t3, e3) : this.write(t3)), this.flush(this.#n), this.#i = true, super.end(i);
|
|
18987
19114
|
}
|
|
18988
19115
|
get ended() {
|
|
18989
19116
|
return this.#i;
|
|
@@ -18991,8 +19118,8 @@ var re = class extends A {
|
|
|
18991
19118
|
[Tt](t3) {
|
|
18992
19119
|
return super.write(t3);
|
|
18993
19120
|
}
|
|
18994
|
-
write(t3,
|
|
18995
|
-
if (typeof
|
|
19121
|
+
write(t3, e3, i) {
|
|
19122
|
+
if (typeof e3 == "function" && (i = e3, e3 = "utf8"), typeof t3 == "string" && (t3 = import_buffer.Buffer.from(t3, e3)), this.#t) return;
|
|
18996
19123
|
(0, import_assert.default)(this.#e, "zlib binding closed");
|
|
18997
19124
|
let r2 = this.#e._handle, n3 = r2.close;
|
|
18998
19125
|
r2.close = () => {
|
|
@@ -19022,25 +19149,25 @@ var re = class extends A {
|
|
|
19022
19149
|
var Pe = class extends re {
|
|
19023
19150
|
#t;
|
|
19024
19151
|
#i;
|
|
19025
|
-
constructor(t3,
|
|
19026
|
-
t3 = t3 || {}, t3.flush = t3.flush || M.Z_NO_FLUSH, t3.finishFlush = t3.finishFlush || M.Z_FINISH, t3.fullFlushFlag = M.Z_FULL_FLUSH, super(t3,
|
|
19152
|
+
constructor(t3, e3) {
|
|
19153
|
+
t3 = t3 || {}, t3.flush = t3.flush || M.Z_NO_FLUSH, t3.finishFlush = t3.finishFlush || M.Z_FINISH, t3.fullFlushFlag = M.Z_FULL_FLUSH, super(t3, e3), this.#t = t3.level, this.#i = t3.strategy;
|
|
19027
19154
|
}
|
|
19028
|
-
params(t3,
|
|
19155
|
+
params(t3, e3) {
|
|
19029
19156
|
if (!this.sawError) {
|
|
19030
19157
|
if (!this.handle) throw new Error("cannot switch params when binding is closed");
|
|
19031
19158
|
if (!this.handle.params) throw new Error("not supported in this implementation");
|
|
19032
|
-
if (this.#t !== t3 || this.#i !==
|
|
19159
|
+
if (this.#t !== t3 || this.#i !== e3) {
|
|
19033
19160
|
this.flush(M.Z_SYNC_FLUSH), (0, import_assert.default)(this.handle, "zlib binding closed");
|
|
19034
19161
|
let i = this.handle.flush;
|
|
19035
19162
|
this.handle.flush = (r2, n3) => {
|
|
19036
19163
|
typeof r2 == "function" && (n3 = r2, r2 = this.flushFlag), this.flush(r2), n3?.();
|
|
19037
19164
|
};
|
|
19038
19165
|
try {
|
|
19039
|
-
this.handle.params(t3,
|
|
19166
|
+
this.handle.params(t3, e3);
|
|
19040
19167
|
} finally {
|
|
19041
19168
|
this.handle.flush = i;
|
|
19042
19169
|
}
|
|
19043
|
-
this.handle && (this.#t = t3, this.#i =
|
|
19170
|
+
this.handle && (this.#t = t3, this.#i = e3);
|
|
19044
19171
|
}
|
|
19045
19172
|
}
|
|
19046
19173
|
}
|
|
@@ -19060,8 +19187,8 @@ var Ue = class extends Pe {
|
|
|
19060
19187
|
}
|
|
19061
19188
|
};
|
|
19062
19189
|
var He = class extends re {
|
|
19063
|
-
constructor(t3,
|
|
19064
|
-
t3 = t3 || {}, t3.flush = t3.flush || M.BROTLI_OPERATION_PROCESS, t3.finishFlush = t3.finishFlush || M.BROTLI_OPERATION_FINISH, t3.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t3,
|
|
19190
|
+
constructor(t3, e3) {
|
|
19191
|
+
t3 = t3 || {}, t3.flush = t3.flush || M.BROTLI_OPERATION_PROCESS, t3.finishFlush = t3.finishFlush || M.BROTLI_OPERATION_FINISH, t3.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t3, e3);
|
|
19065
19192
|
}
|
|
19066
19193
|
};
|
|
19067
19194
|
var We = class extends He {
|
|
@@ -19075,8 +19202,8 @@ var Ge = class extends He {
|
|
|
19075
19202
|
}
|
|
19076
19203
|
};
|
|
19077
19204
|
var Ze = class extends re {
|
|
19078
|
-
constructor(t3,
|
|
19079
|
-
t3 = t3 || {}, t3.flush = t3.flush || M.ZSTD_e_continue, t3.finishFlush = t3.finishFlush || M.ZSTD_e_end, t3.fullFlushFlag = M.ZSTD_e_flush, super(t3,
|
|
19205
|
+
constructor(t3, e3) {
|
|
19206
|
+
t3 = t3 || {}, t3.flush = t3.flush || M.ZSTD_e_continue, t3.finishFlush = t3.finishFlush || M.ZSTD_e_end, t3.fullFlushFlag = M.ZSTD_e_flush, super(t3, e3);
|
|
19080
19207
|
}
|
|
19081
19208
|
};
|
|
19082
19209
|
var Ye = class extends Ze {
|
|
@@ -19096,36 +19223,36 @@ var Us = (s4, t3) => {
|
|
|
19096
19223
|
};
|
|
19097
19224
|
var hn = (s4, t3) => {
|
|
19098
19225
|
t3[0] = 128;
|
|
19099
|
-
for (var
|
|
19226
|
+
for (var e3 = t3.length; e3 > 1; e3--) t3[e3 - 1] = s4 & 255, s4 = Math.floor(s4 / 256);
|
|
19100
19227
|
};
|
|
19101
19228
|
var an = (s4, t3) => {
|
|
19102
19229
|
t3[0] = 255;
|
|
19103
|
-
var
|
|
19230
|
+
var e3 = false;
|
|
19104
19231
|
s4 = s4 * -1;
|
|
19105
19232
|
for (var i = t3.length; i > 1; i--) {
|
|
19106
19233
|
var r2 = s4 & 255;
|
|
19107
|
-
s4 = Math.floor(s4 / 256),
|
|
19234
|
+
s4 = Math.floor(s4 / 256), e3 ? t3[i - 1] = Ws(r2) : r2 === 0 ? t3[i - 1] = 0 : (e3 = true, t3[i - 1] = Gs(r2));
|
|
19108
19235
|
}
|
|
19109
19236
|
};
|
|
19110
19237
|
var Hs = (s4) => {
|
|
19111
|
-
let t3 = s4[0],
|
|
19112
|
-
if (
|
|
19113
|
-
if (!Number.isSafeInteger(
|
|
19114
|
-
return
|
|
19238
|
+
let t3 = s4[0], e3 = t3 === 128 ? cn(s4.subarray(1, s4.length)) : t3 === 255 ? ln(s4) : null;
|
|
19239
|
+
if (e3 === null) throw Error("invalid base256 encoding");
|
|
19240
|
+
if (!Number.isSafeInteger(e3)) throw Error("parsed number outside of javascript safe integer range");
|
|
19241
|
+
return e3;
|
|
19115
19242
|
};
|
|
19116
19243
|
var ln = (s4) => {
|
|
19117
|
-
for (var t3 = s4.length,
|
|
19244
|
+
for (var t3 = s4.length, e3 = 0, i = false, r2 = t3 - 1; r2 > -1; r2--) {
|
|
19118
19245
|
var n3 = Number(s4[r2]), o;
|
|
19119
|
-
i ? o = Ws(n3) : n3 === 0 ? o = n3 : (i = true, o = Gs(n3)), o !== 0 && (
|
|
19246
|
+
i ? o = Ws(n3) : n3 === 0 ? o = n3 : (i = true, o = Gs(n3)), o !== 0 && (e3 -= o * Math.pow(256, t3 - r2 - 1));
|
|
19120
19247
|
}
|
|
19121
|
-
return
|
|
19248
|
+
return e3;
|
|
19122
19249
|
};
|
|
19123
19250
|
var cn = (s4) => {
|
|
19124
|
-
for (var t3 = s4.length,
|
|
19251
|
+
for (var t3 = s4.length, e3 = 0, i = t3 - 1; i > -1; i--) {
|
|
19125
19252
|
var r2 = Number(s4[i]);
|
|
19126
|
-
r2 !== 0 && (
|
|
19253
|
+
r2 !== 0 && (e3 += r2 * Math.pow(256, t3 - i - 1));
|
|
19127
19254
|
}
|
|
19128
|
-
return
|
|
19255
|
+
return e3;
|
|
19129
19256
|
};
|
|
19130
19257
|
var Ws = (s4) => (255 ^ s4) & 255;
|
|
19131
19258
|
var Gs = (s4) => (255 ^ s4) + 1 & 255;
|
|
@@ -19159,35 +19286,35 @@ var F = class {
|
|
|
19159
19286
|
mtime;
|
|
19160
19287
|
charset;
|
|
19161
19288
|
comment;
|
|
19162
|
-
constructor(t3,
|
|
19163
|
-
Buffer.isBuffer(t3) ? this.decode(t3,
|
|
19164
|
-
}
|
|
19165
|
-
decode(t3,
|
|
19166
|
-
if (
|
|
19167
|
-
let n3 = xt(t3,
|
|
19168
|
-
if (this.path = h?.path ?? xt(t3,
|
|
19169
|
-
let c2 = xt(t3,
|
|
19289
|
+
constructor(t3, e3 = 0, i, r2) {
|
|
19290
|
+
Buffer.isBuffer(t3) ? this.decode(t3, e3 || 0, i, r2) : t3 && this.#i(t3);
|
|
19291
|
+
}
|
|
19292
|
+
decode(t3, e3, i, r2) {
|
|
19293
|
+
if (e3 || (e3 = 0), !t3 || !(t3.length >= e3 + 512)) throw new Error("need 512 bytes for header");
|
|
19294
|
+
let n3 = xt(t3, e3 + 156, 1), o = Ui.has(n3), h = o ? i : void 0, a = o ? r2 : void 0;
|
|
19295
|
+
if (this.path = h?.path ?? xt(t3, e3, 100), this.mode = h?.mode ?? a?.mode ?? lt(t3, e3 + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t3, e3 + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t3, e3 + 116, 8), this.size = un(h?.size ?? a?.size ?? lt(t3, e3 + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t3, e3 + 136, 12), this.cksum = lt(t3, e3 + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n3) && (this.#t = n3 || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t3, e3 + 157, 100), t3.subarray(e3 + 257, e3 + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t3, e3 + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t3, e3 + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t3, e3 + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t3, e3 + 337, 8) ?? 0, t3[e3 + 475] !== 0) {
|
|
19296
|
+
let c2 = xt(t3, e3 + 345, 155);
|
|
19170
19297
|
this.path = c2 + "/" + this.path;
|
|
19171
19298
|
} else {
|
|
19172
|
-
let c2 = xt(t3,
|
|
19173
|
-
c2 && (this.path = c2 + "/" + this.path), this.atime = i?.atime ?? r2?.atime ?? Wi(t3,
|
|
19299
|
+
let c2 = xt(t3, e3 + 345, 130);
|
|
19300
|
+
c2 && (this.path = c2 + "/" + this.path), this.atime = i?.atime ?? r2?.atime ?? Wi(t3, e3 + 476, 12), this.ctime = i?.ctime ?? r2?.ctime ?? Wi(t3, e3 + 488, 12);
|
|
19174
19301
|
}
|
|
19175
19302
|
let l2 = 256;
|
|
19176
|
-
for (let c2 =
|
|
19177
|
-
for (let c2 =
|
|
19303
|
+
for (let c2 = e3; c2 < e3 + 148; c2++) l2 += t3[c2];
|
|
19304
|
+
for (let c2 = e3 + 156; c2 < e3 + 512; c2++) l2 += t3[c2];
|
|
19178
19305
|
this.cksumValid = l2 === this.cksum, this.cksum === void 0 && l2 === 256 && (this.nullBlock = true);
|
|
19179
19306
|
}
|
|
19180
|
-
#i(t3,
|
|
19181
|
-
Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i, r2]) => !(r2 == null || i === "size" && Number(r2) < 0 || i === "path" &&
|
|
19307
|
+
#i(t3, e3 = false) {
|
|
19308
|
+
Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i, r2]) => !(r2 == null || i === "size" && Number(r2) < 0 || i === "path" && e3 || i === "linkpath" && e3 || i === "global"))));
|
|
19182
19309
|
}
|
|
19183
|
-
encode(t3,
|
|
19184
|
-
if (t3 || (t3 = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t3.length >=
|
|
19310
|
+
encode(t3, e3 = 0) {
|
|
19311
|
+
if (t3 || (t3 = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t3.length >= e3 + 512)) throw new Error("need 512 bytes for header");
|
|
19185
19312
|
let i = this.ctime || this.atime ? 130 : 155, r2 = mn(this.path || "", i), n3 = r2[0], o = r2[1];
|
|
19186
|
-
this.needPax = !!r2[2], this.needPax = Lt(t3,
|
|
19313
|
+
this.needPax = !!r2[2], this.needPax = Lt(t3, e3, 100, n3) || this.needPax, this.needPax = ct(t3, e3 + 100, 8, this.mode) || this.needPax, this.needPax = ct(t3, e3 + 108, 8, this.uid) || this.needPax, this.needPax = ct(t3, e3 + 116, 8, this.gid) || this.needPax, this.needPax = ct(t3, e3 + 124, 12, this.size) || this.needPax, this.needPax = Gi(t3, e3 + 136, 12, this.mtime) || this.needPax, t3[e3 + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t3, e3 + 157, 100, this.linkpath) || this.needPax, t3.write("ustar\x0000", e3 + 257, 8), this.needPax = Lt(t3, e3 + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t3, e3 + 297, 32, this.gname) || this.needPax, this.needPax = ct(t3, e3 + 329, 8, this.devmaj) || this.needPax, this.needPax = ct(t3, e3 + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t3, e3 + 345, i, o) || this.needPax, t3[e3 + 475] !== 0 ? this.needPax = Lt(t3, e3 + 345, 155, o) || this.needPax : (this.needPax = Lt(t3, e3 + 345, 130, o) || this.needPax, this.needPax = Gi(t3, e3 + 476, 12, this.atime) || this.needPax, this.needPax = Gi(t3, e3 + 488, 12, this.ctime) || this.needPax);
|
|
19187
19314
|
let h = 256;
|
|
19188
|
-
for (let a =
|
|
19189
|
-
for (let a =
|
|
19190
|
-
return this.cksum = h, ct(t3,
|
|
19315
|
+
for (let a = e3; a < e3 + 148; a++) h += t3[a];
|
|
19316
|
+
for (let a = e3 + 156; a < e3 + 512; a++) h += t3[a];
|
|
19317
|
+
return this.cksum = h, ct(t3, e3 + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
|
|
19191
19318
|
}
|
|
19192
19319
|
get type() {
|
|
19193
19320
|
return this.#t === "Unsupported" ? this.#t : oe.get(this.#t);
|
|
@@ -19196,8 +19323,8 @@ var F = class {
|
|
|
19196
19323
|
return this.#t;
|
|
19197
19324
|
}
|
|
19198
19325
|
set type(t3) {
|
|
19199
|
-
let
|
|
19200
|
-
if (ne(
|
|
19326
|
+
let e3 = String(Ve.get(t3));
|
|
19327
|
+
if (ne(e3) || e3 === "Unsupported") this.#t = e3;
|
|
19201
19328
|
else if (ne(t3)) this.#t = t3;
|
|
19202
19329
|
else throw new TypeError("invalid entry type: " + t3);
|
|
19203
19330
|
}
|
|
@@ -19214,20 +19341,20 @@ var mn = (s4, t3) => {
|
|
|
19214
19341
|
}
|
|
19215
19342
|
return n3;
|
|
19216
19343
|
};
|
|
19217
|
-
var xt = (s4, t3,
|
|
19218
|
-
var Wi = (s4, t3,
|
|
19344
|
+
var xt = (s4, t3, e3) => s4.subarray(t3, t3 + e3).toString("utf8").replace(/\0.*/, "");
|
|
19345
|
+
var Wi = (s4, t3, e3) => pn(lt(s4, t3, e3));
|
|
19219
19346
|
var pn = (s4) => s4 === void 0 ? void 0 : new Date(s4 * 1e3);
|
|
19220
|
-
var lt = (s4, t3,
|
|
19347
|
+
var lt = (s4, t3, e3) => Number(s4[t3]) & 128 ? Hs(s4.subarray(t3, t3 + e3)) : wn(s4, t3, e3);
|
|
19221
19348
|
var En = (s4) => isNaN(s4) ? void 0 : s4;
|
|
19222
|
-
var wn = (s4, t3,
|
|
19349
|
+
var wn = (s4, t3, e3) => En(parseInt(s4.subarray(t3, t3 + e3).toString("utf8").replace(/\0.*$/, "").trim(), 8));
|
|
19223
19350
|
var Sn = { 12: 8589934591, 8: 2097151 };
|
|
19224
|
-
var ct = (s4, t3,
|
|
19225
|
-
var yn = (s4, t3,
|
|
19351
|
+
var ct = (s4, t3, e3, i) => i === void 0 ? false : i > Sn[e3] || i < 0 ? (Us(i, s4.subarray(t3, t3 + e3)), true) : (yn(s4, t3, e3, i), false);
|
|
19352
|
+
var yn = (s4, t3, e3, i) => s4.write(Rn(i, e3), t3, e3, "ascii");
|
|
19226
19353
|
var Rn = (s4, t3) => gn(Math.floor(s4).toString(8), t3);
|
|
19227
19354
|
var gn = (s4, t3) => (s4.length === t3 - 1 ? s4 : new Array(t3 - s4.length - 1).join("0") + s4 + " ") + "\0";
|
|
19228
|
-
var Gi = (s4, t3,
|
|
19355
|
+
var Gi = (s4, t3, e3, i) => i === void 0 ? false : ct(s4, t3, e3, i.getTime() / 1e3);
|
|
19229
19356
|
var bn = new Array(156).join("\0");
|
|
19230
|
-
var Lt = (s4, t3,
|
|
19357
|
+
var Lt = (s4, t3, e3, i) => i === void 0 ? false : (s4.write(i + bn, t3, e3, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e3);
|
|
19231
19358
|
var ft = class s {
|
|
19232
19359
|
atime;
|
|
19233
19360
|
mtime;
|
|
@@ -19246,16 +19373,16 @@ var ft = class s {
|
|
|
19246
19373
|
size;
|
|
19247
19374
|
mode;
|
|
19248
19375
|
global;
|
|
19249
|
-
constructor(t3,
|
|
19250
|
-
this.atime = t3.atime, this.charset = t3.charset, this.comment = t3.comment, this.ctime = t3.ctime, this.dev = t3.dev, this.gid = t3.gid, this.global =
|
|
19376
|
+
constructor(t3, e3 = false) {
|
|
19377
|
+
this.atime = t3.atime, this.charset = t3.charset, this.comment = t3.comment, this.ctime = t3.ctime, this.dev = t3.dev, this.gid = t3.gid, this.global = e3, this.gname = t3.gname, this.ino = t3.ino, this.linkpath = t3.linkpath, this.mtime = t3.mtime, this.nlink = t3.nlink, this.path = t3.path, this.size = t3.size, this.uid = t3.uid, this.uname = t3.uname;
|
|
19251
19378
|
}
|
|
19252
19379
|
encode() {
|
|
19253
19380
|
let t3 = this.encodeBody();
|
|
19254
19381
|
if (t3 === "") return Buffer.allocUnsafe(0);
|
|
19255
|
-
let
|
|
19382
|
+
let e3 = Buffer.byteLength(t3), i = 512 * Math.ceil(1 + e3 / 512), r2 = Buffer.allocUnsafe(i);
|
|
19256
19383
|
for (let n3 = 0; n3 < 512; n3++) r2[n3] = 0;
|
|
19257
|
-
new F({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size:
|
|
19258
|
-
for (let n3 =
|
|
19384
|
+
new F({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e3, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r2), r2.write(t3, 512, e3, "utf8");
|
|
19385
|
+
for (let n3 = e3 + 512; n3 < r2.length; n3++) r2[n3] = 0;
|
|
19259
19386
|
return r2;
|
|
19260
19387
|
}
|
|
19261
19388
|
encodeBody() {
|
|
@@ -19263,21 +19390,21 @@ var ft = class s {
|
|
|
19263
19390
|
}
|
|
19264
19391
|
encodeField(t3) {
|
|
19265
19392
|
if (this[t3] === void 0) return "";
|
|
19266
|
-
let
|
|
19393
|
+
let e3 = this[t3], i = e3 instanceof Date ? e3.getTime() / 1e3 : e3, r2 = " " + (t3 === "dev" || t3 === "ino" || t3 === "nlink" ? "SCHILY." : "") + t3 + "=" + i + `
|
|
19267
19394
|
`, n3 = Buffer.byteLength(r2), o = Math.floor(Math.log(n3) / Math.log(10)) + 1;
|
|
19268
19395
|
return n3 + o >= Math.pow(10, o) && (o += 1), o + n3 + r2;
|
|
19269
19396
|
}
|
|
19270
|
-
static parse(t3,
|
|
19271
|
-
return new s(On(Tn(t3),
|
|
19397
|
+
static parse(t3, e3, i = false) {
|
|
19398
|
+
return new s(On(Tn(t3), e3), i);
|
|
19272
19399
|
}
|
|
19273
19400
|
};
|
|
19274
19401
|
var On = (s4, t3) => t3 ? Object.assign({}, t3, s4) : s4;
|
|
19275
19402
|
var Tn = (s4) => s4.replace(/\n$/, "").split(`
|
|
19276
19403
|
`).reduce(xn, /* @__PURE__ */ Object.create(null));
|
|
19277
19404
|
var xn = (s4, t3) => {
|
|
19278
|
-
let
|
|
19279
|
-
if (
|
|
19280
|
-
t3 = t3.slice((
|
|
19405
|
+
let e3 = parseInt(t3, 10);
|
|
19406
|
+
if (e3 !== Buffer.byteLength(t3) + 1) return s4;
|
|
19407
|
+
t3 = t3.slice((e3 + " ").length);
|
|
19281
19408
|
let i = t3.split("="), r2 = i.shift();
|
|
19282
19409
|
if (!r2) return s4;
|
|
19283
19410
|
let n3 = r2.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=").replace(/\0.*/, "");
|
|
@@ -19340,8 +19467,8 @@ var $e = class extends A {
|
|
|
19340
19467
|
invalid = false;
|
|
19341
19468
|
absolute;
|
|
19342
19469
|
unsupported = false;
|
|
19343
|
-
constructor(t3,
|
|
19344
|
-
switch (super({}), this.pause(), this.extended =
|
|
19470
|
+
constructor(t3, e3, i) {
|
|
19471
|
+
switch (super({}), this.pause(), this.extended = e3, this.globalExtended = i, this.header = t3, this.remain = t3.size ?? 0, this.startBlockSize = 512 * Math.ceil(this.remain / 512), this.blockRemain = this.startBlockSize, this.type = t3.type, this.type) {
|
|
19345
19472
|
case "File":
|
|
19346
19473
|
case "OldFile":
|
|
19347
19474
|
case "Link":
|
|
@@ -19365,20 +19492,20 @@ var $e = class extends A {
|
|
|
19365
19492
|
this.ignore = true;
|
|
19366
19493
|
}
|
|
19367
19494
|
if (!t3.path) throw new Error("no path provided for tar.ReadEntry");
|
|
19368
|
-
this.path = f(t3.path), this.mode = t3.mode, this.mode && (this.mode = this.mode & 4095), this.uid = t3.uid, this.gid = t3.gid, this.uname = t3.uname, this.gname = t3.gname, this.size = this.remain, this.mtime = t3.mtime, this.atime = t3.atime, this.ctime = t3.ctime, this.linkpath = t3.linkpath ? f(t3.linkpath) : void 0, this.uname = t3.uname, this.gname = t3.gname,
|
|
19495
|
+
this.path = f(t3.path), this.mode = t3.mode, this.mode && (this.mode = this.mode & 4095), this.uid = t3.uid, this.gid = t3.gid, this.uname = t3.uname, this.gname = t3.gname, this.size = this.remain, this.mtime = t3.mtime, this.atime = t3.atime, this.ctime = t3.ctime, this.linkpath = t3.linkpath ? f(t3.linkpath) : void 0, this.uname = t3.uname, this.gname = t3.gname, e3 && this.#t(e3), i && this.#t(i, true);
|
|
19369
19496
|
}
|
|
19370
19497
|
write(t3) {
|
|
19371
|
-
let
|
|
19372
|
-
if (
|
|
19498
|
+
let e3 = t3.length;
|
|
19499
|
+
if (e3 > this.blockRemain) throw new Error("writing more to entry than is appropriate");
|
|
19373
19500
|
let i = this.remain, r2 = this.blockRemain;
|
|
19374
|
-
return this.remain = Math.max(0, i -
|
|
19501
|
+
return this.remain = Math.max(0, i - e3), this.blockRemain = Math.max(0, r2 - e3), this.ignore ? true : i >= e3 ? super.write(t3) : super.write(t3.subarray(0, i));
|
|
19375
19502
|
}
|
|
19376
|
-
#t(t3,
|
|
19377
|
-
t3.path && (t3.path = f(t3.path)), t3.linkpath && (t3.linkpath = f(t3.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i, r2]) => !(r2 == null || i === "path" &&
|
|
19503
|
+
#t(t3, e3 = false) {
|
|
19504
|
+
t3.path && (t3.path = f(t3.path)), t3.linkpath && (t3.linkpath = f(t3.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t3).filter(([i, r2]) => !(r2 == null || i === "path" && e3))));
|
|
19378
19505
|
}
|
|
19379
19506
|
};
|
|
19380
|
-
var Dt = (s4, t3,
|
|
19381
|
-
s4.file && (i.file = s4.file), s4.cwd && (i.cwd = s4.cwd), i.code =
|
|
19507
|
+
var Dt = (s4, t3, e3, i = {}) => {
|
|
19508
|
+
s4.file && (i.file = s4.file), s4.cwd && (i.cwd = s4.cwd), i.code = e3 instanceof Error && e3.code || t3, i.tarCode = t3, !s4.strict && i.recoverable !== false ? (e3 instanceof Error && (i = Object.assign(e3, i), e3 = e3.message), s4.emit("warn", t3, e3, i)) : e3 instanceof Error ? s4.emit("error", Object.assign(e3, i)) : s4.emit("error", Object.assign(new Error(`${t3}: ${e3}`), i));
|
|
19382
19509
|
};
|
|
19383
19510
|
var Nn = 1024 * 1024;
|
|
19384
19511
|
var Xi = Buffer.from([31, 139]);
|
|
@@ -19454,19 +19581,19 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19454
19581
|
}), t3.ondone ? this.on(Je, t3.ondone) : this.on(Je, () => {
|
|
19455
19582
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
19456
19583
|
}), this.strict = !!t3.strict, this.maxDecompressionRatio = typeof t3.maxDecompressionRatio == "number" ? t3.maxDecompressionRatio : In, this.maxMetaEntrySize = t3.maxMetaEntrySize || Nn, this.filter = typeof t3.filter == "function" ? t3.filter : Cn;
|
|
19457
|
-
let
|
|
19458
|
-
this.brotli = !(t3.gzip || t3.zstd) && t3.brotli !== void 0 ? t3.brotli :
|
|
19584
|
+
let e3 = t3.file && (t3.file.endsWith(".tar.br") || t3.file.endsWith(".tbr"));
|
|
19585
|
+
this.brotli = !(t3.gzip || t3.zstd) && t3.brotli !== void 0 ? t3.brotli : e3 ? void 0 : false;
|
|
19459
19586
|
let i = t3.file && (t3.file.endsWith(".tar.zst") || t3.file.endsWith(".tzst"));
|
|
19460
19587
|
this.zstd = !(t3.gzip || t3.brotli) && t3.zstd !== void 0 ? t3.zstd : i ? true : void 0, this.on("end", () => this[$s]()), typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), typeof t3.onReadEntry == "function" && this.on("entry", t3.onReadEntry);
|
|
19461
19588
|
}
|
|
19462
|
-
warn(t3,
|
|
19463
|
-
Dt(this, t3,
|
|
19589
|
+
warn(t3, e3, i = {}) {
|
|
19590
|
+
Dt(this, t3, e3, i);
|
|
19464
19591
|
}
|
|
19465
|
-
[Vs](t3,
|
|
19592
|
+
[Vs](t3, e3) {
|
|
19466
19593
|
this[It] === void 0 && (this[It] = false);
|
|
19467
19594
|
let i;
|
|
19468
19595
|
try {
|
|
19469
|
-
i = new F(t3,
|
|
19596
|
+
i = new F(t3, e3, this[V], this[he]);
|
|
19470
19597
|
} catch (r2) {
|
|
19471
19598
|
return this.warn("TAR_ENTRY_INVALID", r2);
|
|
19472
19599
|
}
|
|
@@ -19493,13 +19620,13 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19493
19620
|
queueMicrotask(() => this.emit("close"));
|
|
19494
19621
|
}
|
|
19495
19622
|
[Zs](t3) {
|
|
19496
|
-
let
|
|
19497
|
-
if (!t3) this[it] = void 0,
|
|
19623
|
+
let e3 = true;
|
|
19624
|
+
if (!t3) this[it] = void 0, e3 = false;
|
|
19498
19625
|
else if (Array.isArray(t3)) {
|
|
19499
19626
|
let [i, ...r2] = t3;
|
|
19500
19627
|
this.emit(i, ...r2);
|
|
19501
|
-
} else this[it] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[Zi]()),
|
|
19502
|
-
return
|
|
19628
|
+
} else this[it] = t3, this.emit("entry", t3), t3.emittedEnd || (t3.on("end", () => this[Zi]()), e3 = false);
|
|
19629
|
+
return e3;
|
|
19503
19630
|
}
|
|
19504
19631
|
[Zi]() {
|
|
19505
19632
|
do
|
|
@@ -19510,18 +19637,18 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19510
19637
|
!t3 || t3.flowing || t3.size === t3.remain ? this[Yt] || this.emit("drain") : t3.once("drain", () => this.emit("drain"));
|
|
19511
19638
|
}
|
|
19512
19639
|
}
|
|
19513
|
-
[Ki](t3,
|
|
19640
|
+
[Ki](t3, e3) {
|
|
19514
19641
|
let i = this[Nt];
|
|
19515
19642
|
if (!i) throw new Error("attempt to consume body without entry??");
|
|
19516
|
-
let r2 = i.blockRemain ?? 0, n3 = r2 >= t3.length &&
|
|
19643
|
+
let r2 = i.blockRemain ?? 0, n3 = r2 >= t3.length && e3 === 0 ? t3 : t3.subarray(e3, e3 + r2);
|
|
19517
19644
|
return i.write(n3), i.blockRemain || (this[B] = "header", this[Nt] = void 0, i.end()), n3.length;
|
|
19518
19645
|
}
|
|
19519
|
-
[Ks](t3,
|
|
19520
|
-
let i = this[Nt], r2 = this[Ki](t3,
|
|
19646
|
+
[Ks](t3, e3) {
|
|
19647
|
+
let i = this[Nt], r2 = this[Ki](t3, e3);
|
|
19521
19648
|
return !this[Nt] && i && this[Ys](i), r2;
|
|
19522
19649
|
}
|
|
19523
|
-
[At](t3,
|
|
19524
|
-
this[st].length === 0 && !this[it] ? this.emit(t3,
|
|
19650
|
+
[At](t3, e3, i) {
|
|
19651
|
+
this[st].length === 0 && !this[it] ? this.emit(t3, e3, i) : this[st].push([t3, e3, i]);
|
|
19525
19652
|
}
|
|
19526
19653
|
[Ys](t3) {
|
|
19527
19654
|
switch (this[At]("meta", this[dt]), t3.type) {
|
|
@@ -19534,13 +19661,13 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19534
19661
|
break;
|
|
19535
19662
|
case "NextFileHasLongPath":
|
|
19536
19663
|
case "OldGnuLongPath": {
|
|
19537
|
-
let
|
|
19538
|
-
this[V] =
|
|
19664
|
+
let e3 = this[V] ?? /* @__PURE__ */ Object.create(null);
|
|
19665
|
+
this[V] = e3, e3.path = this[dt].replace(/\0.*/, "");
|
|
19539
19666
|
break;
|
|
19540
19667
|
}
|
|
19541
19668
|
case "NextFileHasLongLinkpath": {
|
|
19542
|
-
let
|
|
19543
|
-
this[V] =
|
|
19669
|
+
let e3 = this[V] || /* @__PURE__ */ Object.create(null);
|
|
19670
|
+
this[V] = e3, e3.linkpath = this[dt].replace(/\0.*/, "");
|
|
19544
19671
|
break;
|
|
19545
19672
|
}
|
|
19546
19673
|
default:
|
|
@@ -19550,19 +19677,19 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19550
19677
|
abort(t3) {
|
|
19551
19678
|
if (!this[$]) {
|
|
19552
19679
|
if (this[w]) {
|
|
19553
|
-
let
|
|
19554
|
-
|
|
19680
|
+
let e3 = this[w];
|
|
19681
|
+
e3.write = () => true, e3.end = () => e3, e3.emit = () => false, e3.destroy?.();
|
|
19555
19682
|
}
|
|
19556
19683
|
this[$] = true, this.emit("abort", t3), this.warn("TAR_ABORT", t3, { recoverable: false });
|
|
19557
19684
|
}
|
|
19558
19685
|
}
|
|
19559
19686
|
[Xs](t3) {
|
|
19560
19687
|
this[$i] += t3.length;
|
|
19561
|
-
let
|
|
19562
|
-
return
|
|
19688
|
+
let e3 = this[$i] / this[le];
|
|
19689
|
+
return e3 > this.maxDecompressionRatio ? (this.abort(new Error(`max decompression ratio exceeded: ${e3.toFixed(2)} > ${this.maxDecompressionRatio}`)), false) : true;
|
|
19563
19690
|
}
|
|
19564
|
-
write(t3,
|
|
19565
|
-
if (typeof
|
|
19691
|
+
write(t3, e3, i) {
|
|
19692
|
+
if (typeof e3 == "function" && (i = e3, e3 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e3 == "string" ? e3 : "utf8")), this[$]) return i?.(), false;
|
|
19566
19693
|
if ((this[w] === void 0 || this.brotli === void 0 && this[w] === false) && t3) {
|
|
19567
19694
|
if (this[p] && (t3 = Buffer.concat([this[p], t3]), this[p] = void 0), t3.length < An) return this[p] = t3, i?.(), true;
|
|
19568
19695
|
for (let a = 0; this[w] === void 0 && a < Xi.length; a++) t3[a] !== Xi[a] && (this[w] = false);
|
|
@@ -19607,8 +19734,8 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19607
19734
|
this[Yi] = true;
|
|
19608
19735
|
let t3 = this[Nt];
|
|
19609
19736
|
if (t3?.blockRemain) {
|
|
19610
|
-
let
|
|
19611
|
-
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t3.blockRemain} more bytes, only ${
|
|
19737
|
+
let e3 = this[p] ? this[p].length : 0;
|
|
19738
|
+
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t3.blockRemain} more bytes, only ${e3} available)`, { entry: t3 }), this[p] && t3.write(this[p]), t3.end();
|
|
19612
19739
|
}
|
|
19613
19740
|
this[At](Je);
|
|
19614
19741
|
}
|
|
@@ -19619,68 +19746,68 @@ var rt = class extends import_events2.EventEmitter {
|
|
|
19619
19746
|
else if (t3) {
|
|
19620
19747
|
if (this[ae] = true, this[p]) {
|
|
19621
19748
|
this[Vi](t3);
|
|
19622
|
-
let
|
|
19623
|
-
this[p] = void 0, this[qe](
|
|
19749
|
+
let e3 = this[p];
|
|
19750
|
+
this[p] = void 0, this[qe](e3);
|
|
19624
19751
|
} else this[qe](t3);
|
|
19625
19752
|
for (; this[p] && this[p]?.length >= 512 && !this[$] && !this[ti]; ) {
|
|
19626
|
-
let
|
|
19627
|
-
this[p] = void 0, this[qe](
|
|
19753
|
+
let e3 = this[p];
|
|
19754
|
+
this[p] = void 0, this[qe](e3);
|
|
19628
19755
|
}
|
|
19629
19756
|
this[ae] = false;
|
|
19630
19757
|
}
|
|
19631
19758
|
(!this[p] || this[ut]) && this[Qe]();
|
|
19632
19759
|
}
|
|
19633
19760
|
[qe](t3) {
|
|
19634
|
-
let
|
|
19635
|
-
for (;
|
|
19761
|
+
let e3 = 0, i = t3.length;
|
|
19762
|
+
for (; e3 + 512 <= i && !this[$] && !this[ti]; ) switch (this[B]) {
|
|
19636
19763
|
case "begin":
|
|
19637
19764
|
case "header":
|
|
19638
|
-
this[Vs](t3,
|
|
19765
|
+
this[Vs](t3, e3), e3 += 512;
|
|
19639
19766
|
break;
|
|
19640
19767
|
case "ignore":
|
|
19641
19768
|
case "body":
|
|
19642
|
-
|
|
19769
|
+
e3 += this[Ki](t3, e3);
|
|
19643
19770
|
break;
|
|
19644
19771
|
case "meta":
|
|
19645
|
-
|
|
19772
|
+
e3 += this[Ks](t3, e3);
|
|
19646
19773
|
break;
|
|
19647
19774
|
default:
|
|
19648
19775
|
throw new Error("invalid state: " + this[B]);
|
|
19649
19776
|
}
|
|
19650
|
-
|
|
19777
|
+
e3 < i && (this[p] = this[p] ? Buffer.concat([t3.subarray(e3), this[p]]) : t3.subarray(e3));
|
|
19651
19778
|
}
|
|
19652
|
-
end(t3,
|
|
19653
|
-
return typeof t3 == "function" && (i = t3,
|
|
19779
|
+
end(t3, e3, i) {
|
|
19780
|
+
return typeof t3 == "function" && (i = t3, e3 = void 0, t3 = void 0), typeof e3 == "function" && (i = e3, e3 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, e3)), i && this.once("finish", i), this[$] || (this[w] ? (t3 && (this[le] += t3.length, this[w].write(t3)), this[w].end()) : (this[ut] = true, (this.brotli === void 0 || this.zstd === void 0) && (t3 = t3 || Buffer.alloc(0)), t3 && this.write(t3), this[Qe]())), this;
|
|
19654
19781
|
}
|
|
19655
19782
|
};
|
|
19656
19783
|
var mt = (s4) => {
|
|
19657
|
-
let t3 = s4.length - 1,
|
|
19658
|
-
for (; t3 > -1 && s4.charAt(t3) === "/"; )
|
|
19659
|
-
return
|
|
19784
|
+
let t3 = s4.length - 1, e3 = -1;
|
|
19785
|
+
for (; t3 > -1 && s4.charAt(t3) === "/"; ) e3 = t3, t3--;
|
|
19786
|
+
return e3 === -1 ? s4 : s4.slice(0, e3);
|
|
19660
19787
|
};
|
|
19661
19788
|
var vn = (s4) => {
|
|
19662
19789
|
let t3 = s4.onReadEntry;
|
|
19663
|
-
s4.onReadEntry = t3 ? (
|
|
19664
|
-
t3(
|
|
19665
|
-
} : (
|
|
19790
|
+
s4.onReadEntry = t3 ? (e3) => {
|
|
19791
|
+
t3(e3), e3.resume();
|
|
19792
|
+
} : (e3) => e3.resume();
|
|
19666
19793
|
};
|
|
19667
19794
|
var Qi = (s4, t3) => {
|
|
19668
|
-
let
|
|
19669
|
-
if (a >= r2) return
|
|
19795
|
+
let e3 = new Map(t3.map((o) => [mt(o), true])), i = s4.filter, r2 = 100, n3 = (o, h = "", a = 0) => {
|
|
19796
|
+
if (a >= r2) return e3.set(o, false), false;
|
|
19670
19797
|
let l2 = h || (0, import_path2.parse)(o).root || ".", c2;
|
|
19671
19798
|
if (o === l2) c2 = false;
|
|
19672
19799
|
else {
|
|
19673
|
-
let d =
|
|
19800
|
+
let d = e3.get(o);
|
|
19674
19801
|
c2 = d !== void 0 ? d : n3((0, import_path2.dirname)(o), l2, a + 1);
|
|
19675
19802
|
}
|
|
19676
|
-
return
|
|
19803
|
+
return e3.set(o, c2), c2;
|
|
19677
19804
|
};
|
|
19678
19805
|
s4.filter = i ? (o, h) => i(o, h) && n3(mt(o)) : (o) => n3(mt(o));
|
|
19679
19806
|
};
|
|
19680
19807
|
var Mn = (s4) => {
|
|
19681
|
-
let t3 = new rt(s4),
|
|
19808
|
+
let t3 = new rt(s4), e3 = s4.file, i;
|
|
19682
19809
|
try {
|
|
19683
|
-
i = import_node_fs.default.openSync(
|
|
19810
|
+
i = import_node_fs.default.openSync(e3, "r");
|
|
19684
19811
|
let r2 = import_node_fs.default.fstatSync(i), n3 = s4.maxReadSize || 16 * 1024 * 1024;
|
|
19685
19812
|
if (r2.size < n3) {
|
|
19686
19813
|
let o = Buffer.allocUnsafe(r2.size), h = import_node_fs.default.readSync(i, o, 0, r2.size, 0);
|
|
@@ -19702,13 +19829,13 @@ var Mn = (s4) => {
|
|
|
19702
19829
|
}
|
|
19703
19830
|
};
|
|
19704
19831
|
var Bn = (s4, t3) => {
|
|
19705
|
-
let
|
|
19832
|
+
let e3 = new rt(s4), i = s4.maxReadSize || 16 * 1024 * 1024, r2 = s4.file;
|
|
19706
19833
|
return new Promise((o, h) => {
|
|
19707
|
-
|
|
19834
|
+
e3.on("error", h), e3.on("end", o), import_node_fs.default.stat(r2, (a, l2) => {
|
|
19708
19835
|
if (a) h(a);
|
|
19709
19836
|
else {
|
|
19710
19837
|
let c2 = new _t(r2, { readSize: i, size: l2.size });
|
|
19711
|
-
c2.on("error", h), c2.pipe(
|
|
19838
|
+
c2.on("error", h), c2.pipe(e3);
|
|
19712
19839
|
}
|
|
19713
19840
|
});
|
|
19714
19841
|
});
|
|
@@ -19716,13 +19843,13 @@ var Bn = (s4, t3) => {
|
|
|
19716
19843
|
var Ct = K(Mn, Bn, (s4) => new rt(s4), (s4) => new rt(s4), (s4, t3) => {
|
|
19717
19844
|
t3?.length && Qi(s4, t3), s4.noResume || vn(s4);
|
|
19718
19845
|
});
|
|
19719
|
-
var Ji = (s4, t3,
|
|
19846
|
+
var Ji = (s4, t3, e3) => (s4 &= 4095, e3 && (s4 = (s4 | 384) & -19), t3 && (s4 & 256 && (s4 |= 64), s4 & 32 && (s4 |= 8), s4 & 4 && (s4 |= 1)), s4);
|
|
19720
19847
|
var { isAbsolute: zn, parse: qs } = import_node_path4.win32;
|
|
19721
19848
|
var ce = (s4) => {
|
|
19722
|
-
let t3 = "",
|
|
19723
|
-
for (; zn(s4) ||
|
|
19724
|
-
let i = s4.charAt(0) === "/" && s4.slice(0, 4) !== "//?/" ? "/" :
|
|
19725
|
-
s4 = s4.slice(i.length), t3 += i,
|
|
19849
|
+
let t3 = "", e3 = qs(s4);
|
|
19850
|
+
for (; zn(s4) || e3.root; ) {
|
|
19851
|
+
let i = s4.charAt(0) === "/" && s4.slice(0, 4) !== "//?/" ? "/" : e3.root;
|
|
19852
|
+
s4 = s4.slice(i.length), t3 += i, e3 = qs(s4);
|
|
19726
19853
|
}
|
|
19727
19854
|
return [t3, s4];
|
|
19728
19855
|
};
|
|
@@ -19730,8 +19857,8 @@ var ei = ["|", "<", ">", "?", ":"];
|
|
|
19730
19857
|
var ji = ei.map((s4) => String.fromCodePoint(61440 + Number(s4.codePointAt(0))));
|
|
19731
19858
|
var Un = new Map(ei.map((s4, t3) => [s4, ji[t3]]));
|
|
19732
19859
|
var Hn = new Map(ji.map((s4, t3) => [s4, ei[t3]]));
|
|
19733
|
-
var ts = (s4) => ei.reduce((t3,
|
|
19734
|
-
var Qs = (s4) => ji.reduce((t3,
|
|
19860
|
+
var ts = (s4) => ei.reduce((t3, e3) => t3.split(e3).join(Un.get(e3)), s4);
|
|
19861
|
+
var Qs = (s4) => ji.reduce((t3, e3) => t3.split(e3).join(Hn.get(e3)), s4);
|
|
19735
19862
|
var rr = (s4, t3) => t3 ? (s4 = f(s4).replace(/^\.(\/|$)/, ""), mt(t3) + "/" + s4) : f(s4);
|
|
19736
19863
|
var Wn = 16 * 1024 * 1024;
|
|
19737
19864
|
var tr = Symbol("process");
|
|
@@ -19783,8 +19910,8 @@ var de = class extends A {
|
|
|
19783
19910
|
stat;
|
|
19784
19911
|
onWriteEntry;
|
|
19785
19912
|
#t = false;
|
|
19786
|
-
constructor(t3,
|
|
19787
|
-
let i = se(
|
|
19913
|
+
constructor(t3, e3 = {}) {
|
|
19914
|
+
let i = se(e3);
|
|
19788
19915
|
super(), this.path = f(t3), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Wn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
|
|
19789
19916
|
let r2 = false;
|
|
19790
19917
|
if (!this.preservePaths) {
|
|
@@ -19795,16 +19922,16 @@ var de = class extends A {
|
|
|
19795
19922
|
let n3 = this.statCache.get(this.absolute);
|
|
19796
19923
|
n3 ? this[si](n3) : this[ss]();
|
|
19797
19924
|
}
|
|
19798
|
-
warn(t3,
|
|
19799
|
-
return Dt(this, t3,
|
|
19925
|
+
warn(t3, e3, i = {}) {
|
|
19926
|
+
return Dt(this, t3, e3, i);
|
|
19800
19927
|
}
|
|
19801
|
-
emit(t3, ...
|
|
19802
|
-
return t3 === "error" && (this.#t = true), super.emit(t3, ...
|
|
19928
|
+
emit(t3, ...e3) {
|
|
19929
|
+
return t3 === "error" && (this.#t = true), super.emit(t3, ...e3);
|
|
19803
19930
|
}
|
|
19804
19931
|
[ss]() {
|
|
19805
|
-
import_fs4.default.lstat(this.absolute, (t3,
|
|
19932
|
+
import_fs4.default.lstat(this.absolute, (t3, e3) => {
|
|
19806
19933
|
if (t3) return this.emit("error", t3);
|
|
19807
|
-
this[si](
|
|
19934
|
+
this[si](e3);
|
|
19808
19935
|
});
|
|
19809
19936
|
}
|
|
19810
19937
|
[si](t3) {
|
|
@@ -19840,9 +19967,9 @@ var de = class extends A {
|
|
|
19840
19967
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
|
|
19841
19968
|
}
|
|
19842
19969
|
[is]() {
|
|
19843
|
-
import_fs4.default.readlink(this.absolute, (t3,
|
|
19970
|
+
import_fs4.default.readlink(this.absolute, (t3, e3) => {
|
|
19844
19971
|
if (t3) return this.emit("error", t3);
|
|
19845
|
-
this[ns](
|
|
19972
|
+
this[ns](e3);
|
|
19846
19973
|
});
|
|
19847
19974
|
}
|
|
19848
19975
|
[ns](t3) {
|
|
@@ -19855,30 +19982,30 @@ var de = class extends A {
|
|
|
19855
19982
|
[er]() {
|
|
19856
19983
|
if (!this.stat) throw new Error("cannot create file entry without stat");
|
|
19857
19984
|
if (this.stat.nlink > 1) {
|
|
19858
|
-
let t3 = `${this.stat.dev}:${this.stat.ino}`,
|
|
19859
|
-
if (
|
|
19985
|
+
let t3 = `${this.stat.dev}:${this.stat.ino}`, e3 = this.linkCache.get(t3);
|
|
19986
|
+
if (e3?.indexOf(this.cwd) === 0) return this[sr](e3);
|
|
19860
19987
|
this.linkCache.set(t3, this.absolute);
|
|
19861
19988
|
}
|
|
19862
19989
|
if (this[fe](), this.stat.size === 0) return this.end();
|
|
19863
19990
|
this[os]();
|
|
19864
19991
|
}
|
|
19865
19992
|
[os]() {
|
|
19866
|
-
import_fs4.default.open(this.absolute, "r", (t3,
|
|
19993
|
+
import_fs4.default.open(this.absolute, "r", (t3, e3) => {
|
|
19867
19994
|
if (t3) return this.emit("error", t3);
|
|
19868
|
-
this[hs](
|
|
19995
|
+
this[hs](e3);
|
|
19869
19996
|
});
|
|
19870
19997
|
}
|
|
19871
19998
|
[hs](t3) {
|
|
19872
19999
|
if (this.fd = t3, this.#t) return this[pt]();
|
|
19873
20000
|
if (!this.stat) throw new Error("should stat before calling onopenfile");
|
|
19874
20001
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
|
|
19875
|
-
let
|
|
19876
|
-
this.buf = Buffer.allocUnsafe(
|
|
20002
|
+
let e3 = Math.min(this.blockLen, this.maxReadSize);
|
|
20003
|
+
this.buf = Buffer.allocUnsafe(e3), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ii]();
|
|
19877
20004
|
}
|
|
19878
20005
|
[ii]() {
|
|
19879
|
-
let { fd: t3, buf:
|
|
19880
|
-
if (t3 === void 0 ||
|
|
19881
|
-
import_fs4.default.read(t3,
|
|
20006
|
+
let { fd: t3, buf: e3, offset: i, length: r2, pos: n3 } = this;
|
|
20007
|
+
if (t3 === void 0 || e3 === void 0) throw new Error("cannot read file without first opening");
|
|
20008
|
+
import_fs4.default.read(t3, e3, i, r2, n3, (o, h) => {
|
|
19882
20009
|
if (o) return this[pt](() => this.emit("error", o));
|
|
19883
20010
|
this[rs](h);
|
|
19884
20011
|
});
|
|
@@ -19898,14 +20025,14 @@ var de = class extends A {
|
|
|
19898
20025
|
}
|
|
19899
20026
|
if (!this.buf) throw new Error("should have created buffer prior to reading");
|
|
19900
20027
|
if (t3 === this.remain) for (let r2 = t3; r2 < this.length && t3 < this.blockRemain; r2++) this.buf[r2 + this.offset] = 0, t3++, this.remain++;
|
|
19901
|
-
let
|
|
19902
|
-
this.write(
|
|
20028
|
+
let e3 = this.offset === 0 && t3 === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t3);
|
|
20029
|
+
this.write(e3) ? this[es]() : this[as](() => this[es]());
|
|
19903
20030
|
}
|
|
19904
20031
|
[as](t3) {
|
|
19905
20032
|
this.once("drain", t3);
|
|
19906
20033
|
}
|
|
19907
|
-
write(t3,
|
|
19908
|
-
if (typeof
|
|
20034
|
+
write(t3, e3, i) {
|
|
20035
|
+
if (typeof e3 == "function" && (i = e3, e3 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e3 == "string" ? e3 : "utf8")), this.blockRemain < t3.length) {
|
|
19909
20036
|
let r2 = Object.assign(new Error("writing more data than expected"), { path: this.absolute });
|
|
19910
20037
|
return this.emit("error", r2);
|
|
19911
20038
|
}
|
|
@@ -19931,9 +20058,9 @@ var ni = class extends de {
|
|
|
19931
20058
|
[ii]() {
|
|
19932
20059
|
let t3 = true;
|
|
19933
20060
|
try {
|
|
19934
|
-
let { fd:
|
|
19935
|
-
if (
|
|
19936
|
-
let h = import_fs4.default.readSync(
|
|
20061
|
+
let { fd: e3, buf: i, offset: r2, length: n3, pos: o } = this;
|
|
20062
|
+
if (e3 === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
|
|
20063
|
+
let h = import_fs4.default.readSync(e3, i, r2, n3, o);
|
|
19937
20064
|
this[rs](h), t3 = false;
|
|
19938
20065
|
} finally {
|
|
19939
20066
|
if (t3) try {
|
|
@@ -19979,11 +20106,11 @@ var oi = class extends A {
|
|
|
19979
20106
|
linkpath;
|
|
19980
20107
|
size;
|
|
19981
20108
|
onWriteEntry;
|
|
19982
|
-
warn(t3,
|
|
19983
|
-
return Dt(this, t3,
|
|
20109
|
+
warn(t3, e3, i = {}) {
|
|
20110
|
+
return Dt(this, t3, e3, i);
|
|
19984
20111
|
}
|
|
19985
|
-
constructor(t3,
|
|
19986
|
-
let i = se(
|
|
20112
|
+
constructor(t3, e3 = {}) {
|
|
20113
|
+
let i = se(e3);
|
|
19987
20114
|
super(), this.preservePaths = !!i.preservePaths, this.portable = !!i.portable, this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.onWriteEntry = i.onWriteEntry, this.readEntry = t3;
|
|
19988
20115
|
let { type: r2 } = t3;
|
|
19989
20116
|
if (r2 === "Unsupported") throw new Error("writing entry that should be ignored");
|
|
@@ -20004,14 +20131,14 @@ var oi = class extends A {
|
|
|
20004
20131
|
[ri](t3) {
|
|
20005
20132
|
return Ji(t3, this.type === "Directory", this.portable);
|
|
20006
20133
|
}
|
|
20007
|
-
write(t3,
|
|
20008
|
-
typeof
|
|
20134
|
+
write(t3, e3, i) {
|
|
20135
|
+
typeof e3 == "function" && (i = e3, e3 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, typeof e3 == "string" ? e3 : "utf8"));
|
|
20009
20136
|
let r2 = t3.length;
|
|
20010
20137
|
if (r2 > this.blockRemain) throw new Error("writing more to entry than is appropriate");
|
|
20011
20138
|
return this.blockRemain -= r2, super.write(t3, i);
|
|
20012
20139
|
}
|
|
20013
|
-
end(t3,
|
|
20014
|
-
return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t3 == "function" && (i = t3,
|
|
20140
|
+
end(t3, e3, i) {
|
|
20141
|
+
return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t3 == "function" && (i = t3, e3 = void 0, t3 = void 0), typeof e3 == "function" && (i = e3, e3 = void 0), typeof t3 == "string" && (t3 = Buffer.from(t3, e3 ?? "utf8")), i && this.once("finish", i), t3 ? super.end(t3, i) : super.end(i), this;
|
|
20015
20142
|
}
|
|
20016
20143
|
};
|
|
20017
20144
|
var Gn = (s4) => s4.isFile() ? "File" : s4.isDirectory() ? "Directory" : s4.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
|
|
@@ -20023,87 +20150,87 @@ var hi = class s2 {
|
|
|
20023
20150
|
return new s2(t3);
|
|
20024
20151
|
}
|
|
20025
20152
|
constructor(t3 = []) {
|
|
20026
|
-
for (let
|
|
20153
|
+
for (let e3 of t3) this.push(e3);
|
|
20027
20154
|
}
|
|
20028
20155
|
*[Symbol.iterator]() {
|
|
20029
20156
|
for (let t3 = this.head; t3; t3 = t3.next) yield t3.value;
|
|
20030
20157
|
}
|
|
20031
20158
|
removeNode(t3) {
|
|
20032
20159
|
if (t3.list !== this) throw new Error("removing node which does not belong to this list");
|
|
20033
|
-
let
|
|
20034
|
-
return
|
|
20160
|
+
let e3 = t3.next, i = t3.prev;
|
|
20161
|
+
return e3 && (e3.prev = i), i && (i.next = e3), t3 === this.head && (this.head = e3), t3 === this.tail && (this.tail = i), this.length--, t3.next = void 0, t3.prev = void 0, t3.list = void 0, e3;
|
|
20035
20162
|
}
|
|
20036
20163
|
unshiftNode(t3) {
|
|
20037
20164
|
if (t3 === this.head) return;
|
|
20038
20165
|
t3.list && t3.list.removeNode(t3);
|
|
20039
|
-
let
|
|
20040
|
-
t3.list = this, t3.next =
|
|
20166
|
+
let e3 = this.head;
|
|
20167
|
+
t3.list = this, t3.next = e3, e3 && (e3.prev = t3), this.head = t3, this.tail || (this.tail = t3), this.length++;
|
|
20041
20168
|
}
|
|
20042
20169
|
pushNode(t3) {
|
|
20043
20170
|
if (t3 === this.tail) return;
|
|
20044
20171
|
t3.list && t3.list.removeNode(t3);
|
|
20045
|
-
let
|
|
20046
|
-
t3.list = this, t3.prev =
|
|
20172
|
+
let e3 = this.tail;
|
|
20173
|
+
t3.list = this, t3.prev = e3, e3 && (e3.next = t3), this.tail = t3, this.head || (this.head = t3), this.length++;
|
|
20047
20174
|
}
|
|
20048
20175
|
push(...t3) {
|
|
20049
|
-
for (let
|
|
20176
|
+
for (let e3 = 0, i = t3.length; e3 < i; e3++) Yn(this, t3[e3]);
|
|
20050
20177
|
return this.length;
|
|
20051
20178
|
}
|
|
20052
20179
|
unshift(...t3) {
|
|
20053
|
-
for (var
|
|
20180
|
+
for (var e3 = 0, i = t3.length; e3 < i; e3++) Kn(this, t3[e3]);
|
|
20054
20181
|
return this.length;
|
|
20055
20182
|
}
|
|
20056
20183
|
pop() {
|
|
20057
20184
|
if (!this.tail) return;
|
|
20058
|
-
let t3 = this.tail.value,
|
|
20059
|
-
return this.tail = this.tail.prev, this.tail ? this.tail.next = void 0 : this.head = void 0,
|
|
20185
|
+
let t3 = this.tail.value, e3 = this.tail;
|
|
20186
|
+
return this.tail = this.tail.prev, this.tail ? this.tail.next = void 0 : this.head = void 0, e3.list = void 0, this.length--, t3;
|
|
20060
20187
|
}
|
|
20061
20188
|
shift() {
|
|
20062
20189
|
if (!this.head) return;
|
|
20063
|
-
let t3 = this.head.value,
|
|
20064
|
-
return this.head = this.head.next, this.head ? this.head.prev = void 0 : this.tail = void 0,
|
|
20190
|
+
let t3 = this.head.value, e3 = this.head;
|
|
20191
|
+
return this.head = this.head.next, this.head ? this.head.prev = void 0 : this.tail = void 0, e3.list = void 0, this.length--, t3;
|
|
20065
20192
|
}
|
|
20066
|
-
forEach(t3,
|
|
20067
|
-
|
|
20068
|
-
for (let i = this.head, r2 = 0; i; r2++) t3.call(
|
|
20193
|
+
forEach(t3, e3) {
|
|
20194
|
+
e3 = e3 || this;
|
|
20195
|
+
for (let i = this.head, r2 = 0; i; r2++) t3.call(e3, i.value, r2, this), i = i.next;
|
|
20069
20196
|
}
|
|
20070
|
-
forEachReverse(t3,
|
|
20071
|
-
|
|
20072
|
-
for (let i = this.tail, r2 = this.length - 1; i; r2--) t3.call(
|
|
20197
|
+
forEachReverse(t3, e3) {
|
|
20198
|
+
e3 = e3 || this;
|
|
20199
|
+
for (let i = this.tail, r2 = this.length - 1; i; r2--) t3.call(e3, i.value, r2, this), i = i.prev;
|
|
20073
20200
|
}
|
|
20074
20201
|
get(t3) {
|
|
20075
|
-
let
|
|
20076
|
-
for (; i &&
|
|
20077
|
-
if (
|
|
20202
|
+
let e3 = 0, i = this.head;
|
|
20203
|
+
for (; i && e3 < t3; e3++) i = i.next;
|
|
20204
|
+
if (e3 === t3 && i) return i.value;
|
|
20078
20205
|
}
|
|
20079
20206
|
getReverse(t3) {
|
|
20080
|
-
let
|
|
20081
|
-
for (; i &&
|
|
20082
|
-
if (
|
|
20207
|
+
let e3 = 0, i = this.tail;
|
|
20208
|
+
for (; i && e3 < t3; e3++) i = i.prev;
|
|
20209
|
+
if (e3 === t3 && i) return i.value;
|
|
20083
20210
|
}
|
|
20084
|
-
map(t3,
|
|
20085
|
-
|
|
20211
|
+
map(t3, e3) {
|
|
20212
|
+
e3 = e3 || this;
|
|
20086
20213
|
let i = new s2();
|
|
20087
|
-
for (let r2 = this.head; r2; ) i.push(t3.call(
|
|
20214
|
+
for (let r2 = this.head; r2; ) i.push(t3.call(e3, r2.value, this)), r2 = r2.next;
|
|
20088
20215
|
return i;
|
|
20089
20216
|
}
|
|
20090
|
-
mapReverse(t3,
|
|
20091
|
-
|
|
20217
|
+
mapReverse(t3, e3) {
|
|
20218
|
+
e3 = e3 || this;
|
|
20092
20219
|
var i = new s2();
|
|
20093
|
-
for (let r2 = this.tail; r2; ) i.push(t3.call(
|
|
20220
|
+
for (let r2 = this.tail; r2; ) i.push(t3.call(e3, r2.value, this)), r2 = r2.prev;
|
|
20094
20221
|
return i;
|
|
20095
20222
|
}
|
|
20096
|
-
reduce(t3,
|
|
20223
|
+
reduce(t3, e3) {
|
|
20097
20224
|
let i, r2 = this.head;
|
|
20098
|
-
if (arguments.length > 1) i =
|
|
20225
|
+
if (arguments.length > 1) i = e3;
|
|
20099
20226
|
else if (this.head) r2 = this.head.next, i = this.head.value;
|
|
20100
20227
|
else throw new TypeError("Reduce of empty list with no initial value");
|
|
20101
20228
|
for (var n3 = 0; r2; n3++) i = t3(i, r2.value, n3), r2 = r2.next;
|
|
20102
20229
|
return i;
|
|
20103
20230
|
}
|
|
20104
|
-
reduceReverse(t3,
|
|
20231
|
+
reduceReverse(t3, e3) {
|
|
20105
20232
|
let i, r2 = this.tail;
|
|
20106
|
-
if (arguments.length > 1) i =
|
|
20233
|
+
if (arguments.length > 1) i = e3;
|
|
20107
20234
|
else if (this.tail) r2 = this.tail.prev, i = this.tail.value;
|
|
20108
20235
|
else throw new TypeError("Reduce of empty list with no initial value");
|
|
20109
20236
|
for (let n3 = this.length - 1; r2; n3--) i = t3(i, r2.value, n3), r2 = r2.prev;
|
|
@@ -20111,55 +20238,55 @@ var hi = class s2 {
|
|
|
20111
20238
|
}
|
|
20112
20239
|
toArray() {
|
|
20113
20240
|
let t3 = new Array(this.length);
|
|
20114
|
-
for (let
|
|
20241
|
+
for (let e3 = 0, i = this.head; i; e3++) t3[e3] = i.value, i = i.next;
|
|
20115
20242
|
return t3;
|
|
20116
20243
|
}
|
|
20117
20244
|
toArrayReverse() {
|
|
20118
20245
|
let t3 = new Array(this.length);
|
|
20119
|
-
for (let
|
|
20246
|
+
for (let e3 = 0, i = this.tail; i; e3++) t3[e3] = i.value, i = i.prev;
|
|
20120
20247
|
return t3;
|
|
20121
20248
|
}
|
|
20122
|
-
slice(t3 = 0,
|
|
20123
|
-
|
|
20249
|
+
slice(t3 = 0, e3 = this.length) {
|
|
20250
|
+
e3 < 0 && (e3 += this.length), t3 < 0 && (t3 += this.length);
|
|
20124
20251
|
let i = new s2();
|
|
20125
|
-
if (
|
|
20126
|
-
t3 < 0 && (t3 = 0),
|
|
20252
|
+
if (e3 < t3 || e3 < 0) return i;
|
|
20253
|
+
t3 < 0 && (t3 = 0), e3 > this.length && (e3 = this.length);
|
|
20127
20254
|
let r2 = this.head, n3 = 0;
|
|
20128
20255
|
for (n3 = 0; r2 && n3 < t3; n3++) r2 = r2.next;
|
|
20129
|
-
for (; r2 && n3 <
|
|
20256
|
+
for (; r2 && n3 < e3; n3++, r2 = r2.next) i.push(r2.value);
|
|
20130
20257
|
return i;
|
|
20131
20258
|
}
|
|
20132
|
-
sliceReverse(t3 = 0,
|
|
20133
|
-
|
|
20259
|
+
sliceReverse(t3 = 0, e3 = this.length) {
|
|
20260
|
+
e3 < 0 && (e3 += this.length), t3 < 0 && (t3 += this.length);
|
|
20134
20261
|
let i = new s2();
|
|
20135
|
-
if (
|
|
20136
|
-
t3 < 0 && (t3 = 0),
|
|
20262
|
+
if (e3 < t3 || e3 < 0) return i;
|
|
20263
|
+
t3 < 0 && (t3 = 0), e3 > this.length && (e3 = this.length);
|
|
20137
20264
|
let r2 = this.length, n3 = this.tail;
|
|
20138
|
-
for (; n3 && r2 >
|
|
20265
|
+
for (; n3 && r2 > e3; r2--) n3 = n3.prev;
|
|
20139
20266
|
for (; n3 && r2 > t3; r2--, n3 = n3.prev) i.push(n3.value);
|
|
20140
20267
|
return i;
|
|
20141
20268
|
}
|
|
20142
|
-
splice(t3,
|
|
20269
|
+
splice(t3, e3 = 0, ...i) {
|
|
20143
20270
|
t3 > this.length && (t3 = this.length - 1), t3 < 0 && (t3 = this.length + t3);
|
|
20144
20271
|
let r2 = this.head;
|
|
20145
20272
|
for (let o = 0; r2 && o < t3; o++) r2 = r2.next;
|
|
20146
20273
|
let n3 = [];
|
|
20147
|
-
for (let o = 0; r2 && o <
|
|
20274
|
+
for (let o = 0; r2 && o < e3; o++) n3.push(r2.value), r2 = this.removeNode(r2);
|
|
20148
20275
|
r2 ? r2 !== this.tail && (r2 = r2.prev) : r2 = this.tail;
|
|
20149
20276
|
for (let o of i) r2 = Zn(this, r2, o);
|
|
20150
20277
|
return n3;
|
|
20151
20278
|
}
|
|
20152
20279
|
reverse() {
|
|
20153
|
-
let t3 = this.head,
|
|
20280
|
+
let t3 = this.head, e3 = this.tail;
|
|
20154
20281
|
for (let i = t3; i; i = i.prev) {
|
|
20155
20282
|
let r2 = i.prev;
|
|
20156
20283
|
i.prev = i.next, i.next = r2;
|
|
20157
20284
|
}
|
|
20158
|
-
return this.head =
|
|
20285
|
+
return this.head = e3, this.tail = t3, this;
|
|
20159
20286
|
}
|
|
20160
20287
|
};
|
|
20161
|
-
function Zn(s4, t3,
|
|
20162
|
-
let i = t3, r2 = t3 ? t3.next : s4.head, n3 = new ue(
|
|
20288
|
+
function Zn(s4, t3, e3) {
|
|
20289
|
+
let i = t3, r2 = t3 ? t3.next : s4.head, n3 = new ue(e3, i, r2, s4);
|
|
20163
20290
|
return n3.next === void 0 && (s4.tail = n3), n3.prev === void 0 && (s4.head = n3), s4.length++, n3;
|
|
20164
20291
|
}
|
|
20165
20292
|
function Yn(s4, t3) {
|
|
@@ -20173,8 +20300,8 @@ var ue = class {
|
|
|
20173
20300
|
next;
|
|
20174
20301
|
prev;
|
|
20175
20302
|
value;
|
|
20176
|
-
constructor(t3,
|
|
20177
|
-
this.list = r2, this.value = t3,
|
|
20303
|
+
constructor(t3, e3, i, r2) {
|
|
20304
|
+
this.list = r2, this.value = t3, e3 ? (e3.next = this, this.prev = e3) : this.prev = void 0, i ? (i.prev = this, this.next = i) : this.next = void 0;
|
|
20178
20305
|
}
|
|
20179
20306
|
};
|
|
20180
20307
|
var pi = class {
|
|
@@ -20187,8 +20314,8 @@ var pi = class {
|
|
|
20187
20314
|
pendingLink = false;
|
|
20188
20315
|
ignore = false;
|
|
20189
20316
|
piped = false;
|
|
20190
|
-
constructor(t3,
|
|
20191
|
-
this.path = t3 || "./", this.absolute =
|
|
20317
|
+
constructor(t3, e3) {
|
|
20318
|
+
this.path = t3 || "./", this.absolute = e3;
|
|
20192
20319
|
}
|
|
20193
20320
|
};
|
|
20194
20321
|
var nr = Buffer.alloc(1024);
|
|
@@ -20245,8 +20372,8 @@ var wt = class extends A {
|
|
|
20245
20372
|
if (super(), this.opt = t3, this.file = t3.file || "", this.cwd = t3.cwd || process.cwd(), this.maxReadSize = t3.maxReadSize, this.preservePaths = !!t3.preservePaths, this.strict = !!t3.strict, this.noPax = !!t3.noPax, this.prefix = f(t3.prefix || ""), this.linkCache = t3.linkCache || /* @__PURE__ */ new Map(), this.statCache = t3.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t3.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t3.onWriteEntry, this[ui] = de, typeof t3.onwarn == "function" && this.on("warn", t3.onwarn), this.portable = !!t3.portable, t3.gzip || t3.brotli || t3.zstd) {
|
|
20246
20373
|
if ((t3.gzip ? 1 : 0) + (t3.brotli ? 1 : 0) + (t3.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
20247
20374
|
if (t3.gzip && (typeof t3.gzip != "object" && (t3.gzip = {}), this.portable && (t3.gzip.portable = true), this.zip = new ze(t3.gzip)), t3.brotli && (typeof t3.brotli != "object" && (t3.brotli = {}), this.zip = new We(t3.brotli)), t3.zstd && (typeof t3.zstd != "object" && (t3.zstd = {}), this.zip = new Ye(t3.zstd)), !this.zip) throw new Error("impossible");
|
|
20248
|
-
let
|
|
20249
|
-
|
|
20375
|
+
let e3 = this.zip;
|
|
20376
|
+
e3.on("data", (i) => super.write(i)), e3.on("end", () => super.end()), e3.on("drain", () => this[fs]()), this.on("resume", () => e3.resume());
|
|
20250
20377
|
} else this.on("drain", this[fs]);
|
|
20251
20378
|
this.noDirRecurse = !!t3.noDirRecurse, this.follow = !!t3.follow, this.noMtime = !!t3.noMtime, t3.mtime && (this.mtime = t3.mtime), this.filter = typeof t3.filter == "function" ? t3.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t3.jobs) || 4, this[Ee] = false, this[me] = false;
|
|
20252
20379
|
}
|
|
@@ -20256,57 +20383,57 @@ var wt = class extends A {
|
|
|
20256
20383
|
add(t3) {
|
|
20257
20384
|
return this.write(t3), this;
|
|
20258
20385
|
}
|
|
20259
|
-
end(t3,
|
|
20260
|
-
return typeof t3 == "function" && (i = t3, t3 = void 0), typeof
|
|
20386
|
+
end(t3, e3, i) {
|
|
20387
|
+
return typeof t3 == "function" && (i = t3, t3 = void 0), typeof e3 == "function" && (i = e3, e3 = void 0), t3 && this.add(t3), this[me] = true, this[Ft](), i && i(), this;
|
|
20261
20388
|
}
|
|
20262
20389
|
write(t3) {
|
|
20263
20390
|
if (this[me]) throw new Error("write after end");
|
|
20264
20391
|
return typeof t3 == "string" ? this[ci](t3) : this[or](t3), this.flowing;
|
|
20265
20392
|
}
|
|
20266
20393
|
[or](t3) {
|
|
20267
|
-
let
|
|
20394
|
+
let e3 = f(import_path4.default.resolve(this.cwd, t3.path));
|
|
20268
20395
|
if (!this.filter(t3.path, t3)) t3.resume();
|
|
20269
20396
|
else {
|
|
20270
|
-
let i = new pi(t3.path,
|
|
20397
|
+
let i = new pi(t3.path, e3);
|
|
20271
20398
|
i.entry = new oi(t3, this[cs](i)), i.entry.on("end", () => this[ls](i)), this[G] += 1, this[W].push(i);
|
|
20272
20399
|
}
|
|
20273
20400
|
this[Ft]();
|
|
20274
20401
|
}
|
|
20275
20402
|
[ci](t3) {
|
|
20276
|
-
let
|
|
20277
|
-
this[W].push(new pi(t3,
|
|
20403
|
+
let e3 = f(import_path4.default.resolve(this.cwd, t3));
|
|
20404
|
+
this[W].push(new pi(t3, e3)), this[Ft]();
|
|
20278
20405
|
}
|
|
20279
20406
|
[ds](t3) {
|
|
20280
20407
|
t3.pending = true, this[G] += 1;
|
|
20281
|
-
let
|
|
20282
|
-
import_fs3.default[
|
|
20408
|
+
let e3 = this.follow ? "stat" : "lstat";
|
|
20409
|
+
import_fs3.default[e3](t3.absolute, (i, r2) => {
|
|
20283
20410
|
t3.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[li](t3, r2);
|
|
20284
20411
|
});
|
|
20285
20412
|
}
|
|
20286
|
-
[li](t3,
|
|
20287
|
-
if (this.statCache.set(t3.absolute,
|
|
20288
|
-
else if (
|
|
20413
|
+
[li](t3, e3) {
|
|
20414
|
+
if (this.statCache.set(t3.absolute, e3), t3.stat = e3, !this.filter(t3.path, e3)) t3.ignore = true;
|
|
20415
|
+
else if (e3.isFile() && e3.nlink > 1 && !this.linkCache.get(`${e3.dev}:${e3.ino}`) && !this.sync) if (t3 === this[Et]) this[ai](t3);
|
|
20289
20416
|
else {
|
|
20290
|
-
let i = `${
|
|
20417
|
+
let i = `${e3.dev}:${e3.ino}`, r2 = this[pe].get(i);
|
|
20291
20418
|
r2 ? r2.push(t3) : this[pe].set(i, [t3]), t3.pendingLink = true, t3.pending = true;
|
|
20292
20419
|
}
|
|
20293
20420
|
this[Ft]();
|
|
20294
20421
|
}
|
|
20295
20422
|
[us](t3) {
|
|
20296
|
-
t3.pending = true, this[G] += 1, import_fs3.default.readdir(t3.absolute, (
|
|
20297
|
-
if (t3.pending = false, this[G] -= 1,
|
|
20423
|
+
t3.pending = true, this[G] += 1, import_fs3.default.readdir(t3.absolute, (e3, i) => {
|
|
20424
|
+
if (t3.pending = false, this[G] -= 1, e3) return this.emit("error", e3);
|
|
20298
20425
|
this[fi](t3, i);
|
|
20299
20426
|
});
|
|
20300
20427
|
}
|
|
20301
|
-
[fi](t3,
|
|
20302
|
-
this.readdirCache.set(t3.absolute,
|
|
20428
|
+
[fi](t3, e3) {
|
|
20429
|
+
this.readdirCache.set(t3.absolute, e3), t3.readdir = e3, this[Ft]();
|
|
20303
20430
|
}
|
|
20304
20431
|
[Ft]() {
|
|
20305
20432
|
if (!this[Ee]) {
|
|
20306
20433
|
this[Ee] = true;
|
|
20307
20434
|
for (let t3 = this[W].head; t3 && this[G] < this.jobs; t3 = t3.next) if (this[ai](t3.value), t3.value.ignore) {
|
|
20308
|
-
let
|
|
20309
|
-
this[W].removeNode(t3), t3.next =
|
|
20435
|
+
let e3 = t3.next;
|
|
20436
|
+
this[W].removeNode(t3), t3.next = e3;
|
|
20310
20437
|
}
|
|
20311
20438
|
this[Ee] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
|
|
20312
20439
|
}
|
|
@@ -20316,9 +20443,9 @@ var wt = class extends A {
|
|
|
20316
20443
|
}
|
|
20317
20444
|
[ls](t3) {
|
|
20318
20445
|
this[W].shift(), this[G] -= 1;
|
|
20319
|
-
let { stat:
|
|
20320
|
-
if (
|
|
20321
|
-
let i = `${
|
|
20446
|
+
let { stat: e3 } = t3;
|
|
20447
|
+
if (e3 && e3.isFile() && e3.nlink > 1) {
|
|
20448
|
+
let i = `${e3.dev}:${e3.ino}`, r2 = this[pe].get(i);
|
|
20322
20449
|
if (r2) {
|
|
20323
20450
|
this[pe].delete(i);
|
|
20324
20451
|
for (let n3 of r2) n3.pending = false, this[ai](n3);
|
|
@@ -20333,13 +20460,13 @@ var wt = class extends A {
|
|
|
20333
20460
|
return;
|
|
20334
20461
|
}
|
|
20335
20462
|
if (!t3.stat) {
|
|
20336
|
-
let
|
|
20337
|
-
|
|
20463
|
+
let e3 = this.statCache.get(t3.absolute);
|
|
20464
|
+
e3 ? this[li](t3, e3) : this[ds](t3);
|
|
20338
20465
|
}
|
|
20339
20466
|
if (t3.stat && !t3.ignore) {
|
|
20340
20467
|
if (!this.noDirRecurse && t3.stat.isDirectory() && !t3.readdir) {
|
|
20341
|
-
let
|
|
20342
|
-
if (
|
|
20468
|
+
let e3 = this.readdirCache.get(t3.absolute);
|
|
20469
|
+
if (e3 ? this[fi](t3, e3) : this[us](t3), !t3.readdir) return;
|
|
20343
20470
|
}
|
|
20344
20471
|
if (t3.entry = this[hr](t3), !t3.entry) {
|
|
20345
20472
|
t3.ignore = true;
|
|
@@ -20350,14 +20477,14 @@ var wt = class extends A {
|
|
|
20350
20477
|
}
|
|
20351
20478
|
}
|
|
20352
20479
|
[cs](t3) {
|
|
20353
|
-
return { onwarn: (
|
|
20480
|
+
return { onwarn: (e3, i, r2) => this.warn(e3, i, r2), noPax: this.noPax, cwd: this.cwd, absolute: t3.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
|
|
20354
20481
|
}
|
|
20355
20482
|
[hr](t3) {
|
|
20356
20483
|
this[G] += 1;
|
|
20357
20484
|
try {
|
|
20358
20485
|
return new this[ui](t3.path, this[cs](t3)).on("end", () => this[ls](t3)).on("error", (i) => this.emit("error", i));
|
|
20359
|
-
} catch (
|
|
20360
|
-
this.emit("error",
|
|
20486
|
+
} catch (e3) {
|
|
20487
|
+
this.emit("error", e3);
|
|
20361
20488
|
}
|
|
20362
20489
|
}
|
|
20363
20490
|
[fs]() {
|
|
@@ -20368,19 +20495,19 @@ var wt = class extends A {
|
|
|
20368
20495
|
let n3 = t3.path, o = n3 === "./" ? "" : n3.replace(/\/*$/, "/");
|
|
20369
20496
|
this[ci](o + r2);
|
|
20370
20497
|
});
|
|
20371
|
-
let
|
|
20372
|
-
if (!
|
|
20373
|
-
i ?
|
|
20374
|
-
i.write(r2) ||
|
|
20375
|
-
}) :
|
|
20376
|
-
super.write(r2) ||
|
|
20498
|
+
let e3 = t3.entry, i = this.zip;
|
|
20499
|
+
if (!e3) throw new Error("cannot pipe without source");
|
|
20500
|
+
i ? e3.on("data", (r2) => {
|
|
20501
|
+
i.write(r2) || e3.pause();
|
|
20502
|
+
}) : e3.on("data", (r2) => {
|
|
20503
|
+
super.write(r2) || e3.pause();
|
|
20377
20504
|
});
|
|
20378
20505
|
}
|
|
20379
20506
|
pause() {
|
|
20380
20507
|
return this.zip && this.zip.pause(), super.pause();
|
|
20381
20508
|
}
|
|
20382
|
-
warn(t3,
|
|
20383
|
-
Dt(this, t3,
|
|
20509
|
+
warn(t3, e3, i = {}) {
|
|
20510
|
+
Dt(this, t3, e3, i);
|
|
20384
20511
|
}
|
|
20385
20512
|
};
|
|
20386
20513
|
var kt = class extends wt {
|
|
@@ -20393,55 +20520,55 @@ var kt = class extends wt {
|
|
|
20393
20520
|
resume() {
|
|
20394
20521
|
}
|
|
20395
20522
|
[ds](t3) {
|
|
20396
|
-
let
|
|
20397
|
-
this[li](t3, import_fs3.default[
|
|
20523
|
+
let e3 = this.follow ? "statSync" : "lstatSync";
|
|
20524
|
+
this[li](t3, import_fs3.default[e3](t3.absolute));
|
|
20398
20525
|
}
|
|
20399
20526
|
[us](t3) {
|
|
20400
20527
|
this[fi](t3, import_fs3.default.readdirSync(t3.absolute));
|
|
20401
20528
|
}
|
|
20402
20529
|
[di](t3) {
|
|
20403
|
-
let
|
|
20530
|
+
let e3 = t3.entry, i = this.zip;
|
|
20404
20531
|
if (t3.readdir && t3.readdir.forEach((r2) => {
|
|
20405
20532
|
let n3 = t3.path, o = n3 === "./" ? "" : n3.replace(/\/*$/, "/");
|
|
20406
20533
|
this[ci](o + r2);
|
|
20407
|
-
}), !
|
|
20408
|
-
i ?
|
|
20534
|
+
}), !e3) throw new Error("Cannot pipe without source");
|
|
20535
|
+
i ? e3.on("data", (r2) => {
|
|
20409
20536
|
i.write(r2);
|
|
20410
|
-
}) :
|
|
20537
|
+
}) : e3.on("data", (r2) => {
|
|
20411
20538
|
super[lr](r2);
|
|
20412
20539
|
});
|
|
20413
20540
|
}
|
|
20414
20541
|
};
|
|
20415
20542
|
var Vn = (s4, t3) => {
|
|
20416
|
-
let
|
|
20417
|
-
|
|
20543
|
+
let e3 = new kt(s4), i = new Wt(s4.file, { mode: s4.mode || 438 });
|
|
20544
|
+
e3.pipe(i), fr(e3, t3);
|
|
20418
20545
|
};
|
|
20419
20546
|
var $n = (s4, t3) => {
|
|
20420
|
-
let
|
|
20421
|
-
|
|
20547
|
+
let e3 = new wt(s4), i = new et(s4.file, { mode: s4.mode || 438 });
|
|
20548
|
+
e3.pipe(i);
|
|
20422
20549
|
let r2 = new Promise((n3, o) => {
|
|
20423
|
-
i.on("error", o), i.on("close", n3),
|
|
20550
|
+
i.on("error", o), i.on("close", n3), e3.on("error", o);
|
|
20424
20551
|
});
|
|
20425
|
-
return dr(
|
|
20552
|
+
return dr(e3, t3).catch((n3) => e3.emit("error", n3)), r2;
|
|
20426
20553
|
};
|
|
20427
20554
|
var fr = (s4, t3) => {
|
|
20428
|
-
t3.forEach((
|
|
20429
|
-
|
|
20555
|
+
t3.forEach((e3) => {
|
|
20556
|
+
e3.charAt(0) === "@" ? Ct({ file: import_node_path.default.resolve(s4.cwd, e3.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s4.add(i) }) : s4.add(e3);
|
|
20430
20557
|
}), s4.end();
|
|
20431
20558
|
};
|
|
20432
20559
|
var dr = async (s4, t3) => {
|
|
20433
|
-
for (let
|
|
20560
|
+
for (let e3 of t3) e3.charAt(0) === "@" ? await Ct({ file: import_node_path.default.resolve(String(s4.cwd), e3.slice(1)), noResume: true, onReadEntry: (i) => {
|
|
20434
20561
|
s4.add(i);
|
|
20435
|
-
} }) : s4.add(
|
|
20562
|
+
} }) : s4.add(e3);
|
|
20436
20563
|
s4.end();
|
|
20437
20564
|
};
|
|
20438
20565
|
var Xn = (s4, t3) => {
|
|
20439
|
-
let
|
|
20440
|
-
return fr(
|
|
20566
|
+
let e3 = new kt(s4);
|
|
20567
|
+
return fr(e3, t3), e3;
|
|
20441
20568
|
};
|
|
20442
20569
|
var qn = (s4, t3) => {
|
|
20443
|
-
let
|
|
20444
|
-
return dr(
|
|
20570
|
+
let e3 = new wt(s4);
|
|
20571
|
+
return dr(e3, t3).catch((i) => e3.emit("error", i)), e3;
|
|
20445
20572
|
};
|
|
20446
20573
|
var Qn = K(Vn, $n, Xn, qn, (s4, t3) => {
|
|
20447
20574
|
if (!t3?.length) throw new TypeError("no paths specified to add to archive");
|
|
@@ -20455,67 +20582,67 @@ var to = 512 * 1024;
|
|
|
20455
20582
|
var eo = Rr | Sr | wr | yr;
|
|
20456
20583
|
var mr = !Er && typeof ur == "number" ? ur | Sr | wr | yr : null;
|
|
20457
20584
|
var ms = mr !== null ? () => mr : jn ? (s4) => s4 < to ? eo : "w" : () => "w";
|
|
20458
|
-
var ps = (s4, t3,
|
|
20585
|
+
var ps = (s4, t3, e3) => {
|
|
20459
20586
|
try {
|
|
20460
|
-
return import_node_fs4.default.lchownSync(s4, t3,
|
|
20587
|
+
return import_node_fs4.default.lchownSync(s4, t3, e3);
|
|
20461
20588
|
} catch (i) {
|
|
20462
20589
|
if (i?.code !== "ENOENT") throw i;
|
|
20463
20590
|
}
|
|
20464
20591
|
};
|
|
20465
|
-
var Ei = (s4, t3,
|
|
20466
|
-
import_node_fs4.default.lchown(s4, t3,
|
|
20592
|
+
var Ei = (s4, t3, e3, i) => {
|
|
20593
|
+
import_node_fs4.default.lchown(s4, t3, e3, (r2) => {
|
|
20467
20594
|
i(r2 && r2?.code !== "ENOENT" ? r2 : null);
|
|
20468
20595
|
});
|
|
20469
20596
|
};
|
|
20470
|
-
var io = (s4, t3,
|
|
20471
|
-
if (t3.isDirectory()) Es(import_node_path6.default.resolve(s4, t3.name),
|
|
20597
|
+
var io = (s4, t3, e3, i, r2) => {
|
|
20598
|
+
if (t3.isDirectory()) Es(import_node_path6.default.resolve(s4, t3.name), e3, i, (n3) => {
|
|
20472
20599
|
if (n3) return r2(n3);
|
|
20473
20600
|
let o = import_node_path6.default.resolve(s4, t3.name);
|
|
20474
|
-
Ei(o,
|
|
20601
|
+
Ei(o, e3, i, r2);
|
|
20475
20602
|
});
|
|
20476
20603
|
else {
|
|
20477
20604
|
let n3 = import_node_path6.default.resolve(s4, t3.name);
|
|
20478
|
-
Ei(n3,
|
|
20605
|
+
Ei(n3, e3, i, r2);
|
|
20479
20606
|
}
|
|
20480
20607
|
};
|
|
20481
|
-
var Es = (s4, t3,
|
|
20608
|
+
var Es = (s4, t3, e3, i) => {
|
|
20482
20609
|
import_node_fs4.default.readdir(s4, { withFileTypes: true }, (r2, n3) => {
|
|
20483
20610
|
if (r2) {
|
|
20484
20611
|
if (r2.code === "ENOENT") return i();
|
|
20485
20612
|
if (r2.code !== "ENOTDIR" && r2.code !== "ENOTSUP") return i(r2);
|
|
20486
20613
|
}
|
|
20487
|
-
if (r2 || !n3.length) return Ei(s4, t3,
|
|
20614
|
+
if (r2 || !n3.length) return Ei(s4, t3, e3, i);
|
|
20488
20615
|
let o = n3.length, h = null, a = (l2) => {
|
|
20489
20616
|
if (!h) {
|
|
20490
20617
|
if (l2) return i(h = l2);
|
|
20491
|
-
if (--o === 0) return Ei(s4, t3,
|
|
20618
|
+
if (--o === 0) return Ei(s4, t3, e3, i);
|
|
20492
20619
|
}
|
|
20493
20620
|
};
|
|
20494
|
-
for (let l2 of n3) io(s4, l2, t3,
|
|
20621
|
+
for (let l2 of n3) io(s4, l2, t3, e3, a);
|
|
20495
20622
|
});
|
|
20496
20623
|
};
|
|
20497
|
-
var so = (s4, t3,
|
|
20498
|
-
t3.isDirectory() && ws(import_node_path6.default.resolve(s4, t3.name),
|
|
20624
|
+
var so = (s4, t3, e3, i) => {
|
|
20625
|
+
t3.isDirectory() && ws(import_node_path6.default.resolve(s4, t3.name), e3, i), ps(import_node_path6.default.resolve(s4, t3.name), e3, i);
|
|
20499
20626
|
};
|
|
20500
|
-
var ws = (s4, t3,
|
|
20627
|
+
var ws = (s4, t3, e3) => {
|
|
20501
20628
|
let i;
|
|
20502
20629
|
try {
|
|
20503
20630
|
i = import_node_fs4.default.readdirSync(s4, { withFileTypes: true });
|
|
20504
20631
|
} catch (r2) {
|
|
20505
20632
|
let n3 = r2;
|
|
20506
20633
|
if (n3?.code === "ENOENT") return;
|
|
20507
|
-
if (n3?.code === "ENOTDIR" || n3?.code === "ENOTSUP") return ps(s4, t3,
|
|
20634
|
+
if (n3?.code === "ENOTDIR" || n3?.code === "ENOTSUP") return ps(s4, t3, e3);
|
|
20508
20635
|
throw n3;
|
|
20509
20636
|
}
|
|
20510
|
-
for (let r2 of i) so(s4, r2, t3,
|
|
20511
|
-
return ps(s4, t3,
|
|
20637
|
+
for (let r2 of i) so(s4, r2, t3, e3);
|
|
20638
|
+
return ps(s4, t3, e3);
|
|
20512
20639
|
};
|
|
20513
20640
|
var Se = class extends Error {
|
|
20514
20641
|
path;
|
|
20515
20642
|
code;
|
|
20516
20643
|
syscall = "chdir";
|
|
20517
|
-
constructor(t3,
|
|
20518
|
-
super(`${
|
|
20644
|
+
constructor(t3, e3) {
|
|
20645
|
+
super(`${e3}: Cannot cd into '${t3}'`), this.path = t3, this.code = e3;
|
|
20519
20646
|
}
|
|
20520
20647
|
get name() {
|
|
20521
20648
|
return "CwdError";
|
|
@@ -20526,60 +20653,60 @@ var St = class extends Error {
|
|
|
20526
20653
|
symlink;
|
|
20527
20654
|
syscall = "symlink";
|
|
20528
20655
|
code = "TAR_SYMLINK_ERROR";
|
|
20529
|
-
constructor(t3,
|
|
20530
|
-
super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"), this.symlink = t3, this.path =
|
|
20656
|
+
constructor(t3, e3) {
|
|
20657
|
+
super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"), this.symlink = t3, this.path = e3;
|
|
20531
20658
|
}
|
|
20532
20659
|
get name() {
|
|
20533
20660
|
return "SymlinkError";
|
|
20534
20661
|
}
|
|
20535
20662
|
};
|
|
20536
20663
|
var no = (s4, t3) => {
|
|
20537
|
-
import_node_fs5.default.stat(s4, (
|
|
20538
|
-
(
|
|
20664
|
+
import_node_fs5.default.stat(s4, (e3, i) => {
|
|
20665
|
+
(e3 || !i.isDirectory()) && (e3 = new Se(s4, e3?.code || "ENOTDIR")), t3(e3);
|
|
20539
20666
|
});
|
|
20540
20667
|
};
|
|
20541
|
-
var gr = (s4, t3,
|
|
20668
|
+
var gr = (s4, t3, e3) => {
|
|
20542
20669
|
s4 = f(s4);
|
|
20543
20670
|
let i = t3.umask ?? 18, r2 = t3.mode | 448, n3 = (r2 & i) !== 0, o = t3.uid, h = t3.gid, a = typeof o == "number" && typeof h == "number" && (o !== t3.processUid || h !== t3.processGid), l2 = t3.preserve, c2 = t3.unlink, d = f(t3.cwd), y = (E, x) => {
|
|
20544
|
-
E ?
|
|
20671
|
+
E ? e3(E) : x && a ? Es(x, o, h, (Le) => y(Le)) : n3 ? import_node_fs5.default.chmod(s4, r2, e3) : e3();
|
|
20545
20672
|
};
|
|
20546
20673
|
if (s4 === d) return no(s4, y);
|
|
20547
20674
|
if (l2) return import_promises.default.mkdir(s4, { mode: r2, recursive: true }).then((E) => y(null, E ?? void 0), y);
|
|
20548
20675
|
let D = f(import_node_path7.default.relative(d, s4)).split("/");
|
|
20549
20676
|
Ss(d, D, r2, c2, d, void 0, y);
|
|
20550
20677
|
};
|
|
20551
|
-
var Ss = (s4, t3,
|
|
20678
|
+
var Ss = (s4, t3, e3, i, r2, n3, o) => {
|
|
20552
20679
|
if (t3.length === 0) return o(null, n3);
|
|
20553
20680
|
let h = t3.shift(), a = f(import_node_path7.default.resolve(s4 + "/" + h));
|
|
20554
|
-
import_node_fs5.default.mkdir(a,
|
|
20681
|
+
import_node_fs5.default.mkdir(a, e3, br(a, t3, e3, i, r2, n3, o));
|
|
20555
20682
|
};
|
|
20556
|
-
var br = (s4, t3,
|
|
20683
|
+
var br = (s4, t3, e3, i, r2, n3, o) => (h) => {
|
|
20557
20684
|
h ? import_node_fs5.default.lstat(s4, (a, l2) => {
|
|
20558
20685
|
if (a) a.path = a.path && f(a.path), o(a);
|
|
20559
|
-
else if (l2.isDirectory()) Ss(s4, t3,
|
|
20686
|
+
else if (l2.isDirectory()) Ss(s4, t3, e3, i, r2, n3, o);
|
|
20560
20687
|
else if (i) import_node_fs5.default.unlink(s4, (c2) => {
|
|
20561
20688
|
if (c2) return o(c2);
|
|
20562
|
-
import_node_fs5.default.mkdir(s4,
|
|
20689
|
+
import_node_fs5.default.mkdir(s4, e3, br(s4, t3, e3, i, r2, n3, o));
|
|
20563
20690
|
});
|
|
20564
20691
|
else {
|
|
20565
20692
|
if (l2.isSymbolicLink()) return o(new St(s4, s4 + "/" + t3.join("/")));
|
|
20566
20693
|
o(h);
|
|
20567
20694
|
}
|
|
20568
|
-
}) : (n3 = n3 || s4, Ss(s4, t3,
|
|
20695
|
+
}) : (n3 = n3 || s4, Ss(s4, t3, e3, i, r2, n3, o));
|
|
20569
20696
|
};
|
|
20570
20697
|
var oo = (s4) => {
|
|
20571
|
-
let t3 = false,
|
|
20698
|
+
let t3 = false, e3;
|
|
20572
20699
|
try {
|
|
20573
20700
|
t3 = import_node_fs5.default.statSync(s4).isDirectory();
|
|
20574
20701
|
} catch (i) {
|
|
20575
|
-
|
|
20702
|
+
e3 = i?.code;
|
|
20576
20703
|
} finally {
|
|
20577
|
-
if (!t3) throw new Se(s4,
|
|
20704
|
+
if (!t3) throw new Se(s4, e3 ?? "ENOTDIR");
|
|
20578
20705
|
}
|
|
20579
20706
|
};
|
|
20580
20707
|
var _r = (s4, t3) => {
|
|
20581
20708
|
s4 = f(s4);
|
|
20582
|
-
let
|
|
20709
|
+
let e3 = t3.umask ?? 18, i = t3.mode | 448, r2 = (i & e3) !== 0, n3 = t3.uid, o = t3.gid, h = typeof n3 == "number" && typeof o == "number" && (n3 !== t3.processUid || o !== t3.processGid), a = t3.preserve, l2 = t3.unlink, c2 = f(t3.cwd), d = (E) => {
|
|
20583
20710
|
E && h && ws(E, n3, o), r2 && import_node_fs5.default.chmodSync(s4, i);
|
|
20584
20711
|
};
|
|
20585
20712
|
if (s4 === c2) return oo(c2), d();
|
|
@@ -20605,57 +20732,57 @@ var Or = 1e4;
|
|
|
20605
20732
|
var Vt = /* @__PURE__ */ new Set();
|
|
20606
20733
|
var Tr = (s4) => {
|
|
20607
20734
|
Vt.has(s4) ? Vt.delete(s4) : ys[s4] = s4.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s4);
|
|
20608
|
-
let t3 = ys[s4],
|
|
20609
|
-
if (
|
|
20610
|
-
for (let i of Vt) if (Vt.delete(i), delete ys[i], --
|
|
20735
|
+
let t3 = ys[s4], e3 = Vt.size - Or;
|
|
20736
|
+
if (e3 > Or / 10) {
|
|
20737
|
+
for (let i of Vt) if (Vt.delete(i), delete ys[i], --e3 <= 0) break;
|
|
20611
20738
|
}
|
|
20612
20739
|
return t3;
|
|
20613
20740
|
};
|
|
20614
20741
|
var ho = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
20615
20742
|
var ao = ho === "win32";
|
|
20616
|
-
var lo = (s4) => s4.split("/").slice(0, -1).reduce((
|
|
20617
|
-
let r2 =
|
|
20618
|
-
return r2 !== void 0 && (i = (0, import_node_path8.join)(r2, i)),
|
|
20743
|
+
var lo = (s4) => s4.split("/").slice(0, -1).reduce((e3, i) => {
|
|
20744
|
+
let r2 = e3.at(-1);
|
|
20745
|
+
return r2 !== void 0 && (i = (0, import_node_path8.join)(r2, i)), e3.push(i || "/"), e3;
|
|
20619
20746
|
}, []);
|
|
20620
20747
|
var yi = class {
|
|
20621
20748
|
#t = /* @__PURE__ */ new Map();
|
|
20622
20749
|
#i = /* @__PURE__ */ new Map();
|
|
20623
20750
|
#s = /* @__PURE__ */ new Set();
|
|
20624
|
-
reserve(t3,
|
|
20751
|
+
reserve(t3, e3) {
|
|
20625
20752
|
t3 = ao ? ["win32 parallelization disabled"] : t3.map((r2) => mt((0, import_node_path8.join)(Tr(r2))));
|
|
20626
20753
|
let i = new Set(t3.map((r2) => lo(r2)).reduce((r2, n3) => r2.concat(n3)));
|
|
20627
|
-
this.#i.set(
|
|
20754
|
+
this.#i.set(e3, { dirs: i, paths: t3 });
|
|
20628
20755
|
for (let r2 of t3) {
|
|
20629
20756
|
let n3 = this.#t.get(r2);
|
|
20630
|
-
n3 ? n3.push(
|
|
20757
|
+
n3 ? n3.push(e3) : this.#t.set(r2, [e3]);
|
|
20631
20758
|
}
|
|
20632
20759
|
for (let r2 of i) {
|
|
20633
20760
|
let n3 = this.#t.get(r2);
|
|
20634
|
-
if (!n3) this.#t.set(r2, [/* @__PURE__ */ new Set([
|
|
20761
|
+
if (!n3) this.#t.set(r2, [/* @__PURE__ */ new Set([e3])]);
|
|
20635
20762
|
else {
|
|
20636
20763
|
let o = n3.at(-1);
|
|
20637
|
-
o instanceof Set ? o.add(
|
|
20764
|
+
o instanceof Set ? o.add(e3) : n3.push(/* @__PURE__ */ new Set([e3]));
|
|
20638
20765
|
}
|
|
20639
20766
|
}
|
|
20640
|
-
return this.#r(
|
|
20767
|
+
return this.#r(e3);
|
|
20641
20768
|
}
|
|
20642
20769
|
#n(t3) {
|
|
20643
|
-
let
|
|
20644
|
-
if (!
|
|
20645
|
-
return { paths:
|
|
20770
|
+
let e3 = this.#i.get(t3);
|
|
20771
|
+
if (!e3) throw new Error("function does not have any path reservations");
|
|
20772
|
+
return { paths: e3.paths.map((i) => this.#t.get(i)), dirs: [...e3.dirs].map((i) => this.#t.get(i)) };
|
|
20646
20773
|
}
|
|
20647
20774
|
check(t3) {
|
|
20648
|
-
let { paths:
|
|
20649
|
-
return
|
|
20775
|
+
let { paths: e3, dirs: i } = this.#n(t3);
|
|
20776
|
+
return e3.every((r2) => r2 && r2[0] === t3) && i.every((r2) => r2 && r2[0] instanceof Set && r2[0].has(t3));
|
|
20650
20777
|
}
|
|
20651
20778
|
#r(t3) {
|
|
20652
20779
|
return this.#s.has(t3) || !this.check(t3) ? false : (this.#s.add(t3), t3(() => this.#e(t3)), true);
|
|
20653
20780
|
}
|
|
20654
20781
|
#e(t3) {
|
|
20655
20782
|
if (!this.#s.has(t3)) return false;
|
|
20656
|
-
let
|
|
20657
|
-
if (!
|
|
20658
|
-
let { paths: i, dirs: r2 } =
|
|
20783
|
+
let e3 = this.#i.get(t3);
|
|
20784
|
+
if (!e3) throw new Error("invalid reservation");
|
|
20785
|
+
let { paths: i, dirs: r2 } = e3, n3 = /* @__PURE__ */ new Set();
|
|
20659
20786
|
for (let o of i) {
|
|
20660
20787
|
let h = this.#t.get(o);
|
|
20661
20788
|
if (!h || h?.[0] !== t3) continue;
|
|
@@ -20713,10 +20840,10 @@ var Te = fo === "win32";
|
|
|
20713
20840
|
var uo = 1024;
|
|
20714
20841
|
var mo = (s4, t3) => {
|
|
20715
20842
|
if (!Te) return import_node_fs3.default.unlink(s4, t3);
|
|
20716
|
-
let
|
|
20717
|
-
import_node_fs3.default.rename(s4,
|
|
20843
|
+
let e3 = s4 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
|
|
20844
|
+
import_node_fs3.default.rename(s4, e3, (i) => {
|
|
20718
20845
|
if (i) return t3(i);
|
|
20719
|
-
import_node_fs3.default.unlink(
|
|
20846
|
+
import_node_fs3.default.unlink(e3, t3);
|
|
20720
20847
|
});
|
|
20721
20848
|
};
|
|
20722
20849
|
var po = (s4) => {
|
|
@@ -20724,7 +20851,7 @@ var po = (s4) => {
|
|
|
20724
20851
|
let t3 = s4 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
|
|
20725
20852
|
import_node_fs3.default.renameSync(s4, t3), import_node_fs3.default.unlinkSync(t3);
|
|
20726
20853
|
};
|
|
20727
|
-
var vr = (s4, t3,
|
|
20854
|
+
var vr = (s4, t3, e3) => s4 !== void 0 && s4 === s4 >>> 0 ? s4 : t3 !== void 0 && t3 === t3 >>> 0 ? t3 : e3;
|
|
20728
20855
|
var Xt = class extends rt {
|
|
20729
20856
|
[gs] = false;
|
|
20730
20857
|
[Oe] = false;
|
|
@@ -20762,27 +20889,27 @@ var Xt = class extends rt {
|
|
|
20762
20889
|
if (t3.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
20763
20890
|
this.uid = t3.uid, this.gid = t3.gid, this.setOwner = true;
|
|
20764
20891
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
20765
|
-
this.preserveOwner = t3.preserveOwner === void 0 && typeof t3.uid != "number" ? process.getuid?.() === 0 : !!t3.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t3.maxDepth == "number" ? t3.maxDepth : uo, this.forceChown = t3.forceChown === true, this.win32 = !!t3.win32 || Te, this.newer = !!t3.newer, this.keep = !!t3.keep, this.noMtime = !!t3.noMtime, this.preservePaths = !!t3.preservePaths, this.unlink = !!t3.unlink, this.cwd = f(import_node_path5.default.resolve(t3.cwd || process.cwd())), this.strip = Number(t3.strip) || 0, this.processUmask = this.chmod ? typeof t3.processUmask == "number" ? t3.processUmask : Lr() : 0, this.umask = typeof t3.umask == "number" ? t3.umask : this.processUmask, this.dmode = t3.dmode || 511 & ~this.umask, this.fmode = t3.fmode || 438 & ~this.umask, this.on("entry", (
|
|
20892
|
+
this.preserveOwner = t3.preserveOwner === void 0 && typeof t3.uid != "number" ? process.getuid?.() === 0 : !!t3.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t3.maxDepth == "number" ? t3.maxDepth : uo, this.forceChown = t3.forceChown === true, this.win32 = !!t3.win32 || Te, this.newer = !!t3.newer, this.keep = !!t3.keep, this.noMtime = !!t3.noMtime, this.preservePaths = !!t3.preservePaths, this.unlink = !!t3.unlink, this.cwd = f(import_node_path5.default.resolve(t3.cwd || process.cwd())), this.strip = Number(t3.strip) || 0, this.processUmask = this.chmod ? typeof t3.processUmask == "number" ? t3.processUmask : Lr() : 0, this.umask = typeof t3.umask == "number" ? t3.umask : this.processUmask, this.dmode = t3.dmode || 511 & ~this.umask, this.fmode = t3.fmode || 438 & ~this.umask, this.on("entry", (e3) => this[Dr](e3));
|
|
20766
20893
|
}
|
|
20767
|
-
warn(t3,
|
|
20768
|
-
return (t3 === "TAR_BAD_ARCHIVE" || t3 === "TAR_ABORT") && (i.recoverable = false), super.warn(t3,
|
|
20894
|
+
warn(t3, e3, i = {}) {
|
|
20895
|
+
return (t3 === "TAR_BAD_ARCHIVE" || t3 === "TAR_ABORT") && (i.recoverable = false), super.warn(t3, e3, i);
|
|
20769
20896
|
}
|
|
20770
20897
|
[bs]() {
|
|
20771
20898
|
this[gs] && this[Ri] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
|
20772
20899
|
}
|
|
20773
|
-
[Rs](t3,
|
|
20774
|
-
let i = t3[
|
|
20900
|
+
[Rs](t3, e3) {
|
|
20901
|
+
let i = t3[e3], { type: r2 } = t3;
|
|
20775
20902
|
if (!i || this.preservePaths) return true;
|
|
20776
20903
|
let [n3, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
|
|
20777
20904
|
if (h.includes("..") || Te && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
|
|
20778
|
-
if (
|
|
20905
|
+
if (e3 === "path" || r2 === "Link") return this.warn("TAR_ENTRY_ERROR", `${e3} contains '..'`, { entry: t3, [e3]: i }), false;
|
|
20779
20906
|
let a = import_node_path5.default.posix.dirname(t3.path), l2 = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, h.join("/")));
|
|
20780
|
-
if (l2.startsWith("../") || l2 === "..") return this.warn("TAR_ENTRY_ERROR", `${
|
|
20907
|
+
if (l2.startsWith("../") || l2 === "..") return this.warn("TAR_ENTRY_ERROR", `${e3} escapes extraction directory`, { entry: t3, [e3]: i }), false;
|
|
20781
20908
|
}
|
|
20782
|
-
return n3 && (t3[
|
|
20909
|
+
return n3 && (t3[e3] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n3} from absolute ${e3}`, { entry: t3, [e3]: i })), true;
|
|
20783
20910
|
}
|
|
20784
20911
|
[Fr](t3) {
|
|
20785
|
-
let
|
|
20912
|
+
let e3 = f(t3.path), i = e3.split("/");
|
|
20786
20913
|
if (this.strip) {
|
|
20787
20914
|
if (i.length < this.strip) return false;
|
|
20788
20915
|
if (t3.type === "Link") {
|
|
@@ -20792,7 +20919,7 @@ var Xt = class extends rt {
|
|
|
20792
20919
|
}
|
|
20793
20920
|
i.splice(0, this.strip), t3.path = i.join("/");
|
|
20794
20921
|
}
|
|
20795
|
-
if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t3, path:
|
|
20922
|
+
if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t3, path: e3, depth: i.length, maxDepth: this.maxDepth }), false;
|
|
20796
20923
|
if (!this[Rs](t3, "path") || !this[Rs](t3, "linkpath")) return false;
|
|
20797
20924
|
if (t3.absolute = import_node_path5.default.isAbsolute(t3.path) ? f(import_node_path5.default.resolve(t3.path)) : f(import_node_path5.default.resolve(this.cwd, t3.path)), !this.preservePaths && typeof t3.absolute == "string" && t3.absolute.indexOf(this.cwd + "/") !== 0 && t3.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t3, path: f(t3.path), resolvedPath: t3.absolute, cwd: this.cwd }), false;
|
|
20798
20925
|
if (t3.absolute === this.cwd && t3.type !== "Directory" && t3.type !== "GNUDumpDir") return false;
|
|
@@ -20820,11 +20947,11 @@ var Xt = class extends rt {
|
|
|
20820
20947
|
return this[Cr](t3);
|
|
20821
20948
|
}
|
|
20822
20949
|
}
|
|
20823
|
-
[O](t3,
|
|
20824
|
-
t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry:
|
|
20950
|
+
[O](t3, e3) {
|
|
20951
|
+
t3.name === "CwdError" ? this.emit("error", t3) : (this.warn("TAR_ENTRY_ERROR", t3, { entry: e3 }), this[$t](), e3.resume());
|
|
20825
20952
|
}
|
|
20826
|
-
[yt](t3,
|
|
20827
|
-
gr(f(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode:
|
|
20953
|
+
[yt](t3, e3, i) {
|
|
20954
|
+
gr(f(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e3 }, i);
|
|
20828
20955
|
}
|
|
20829
20956
|
[ge](t3) {
|
|
20830
20957
|
return this.forceChown || this.preserveOwner && (typeof t3.uid == "number" && t3.uid !== this.processUid || typeof t3.gid == "number" && t3.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
|
@@ -20835,20 +20962,20 @@ var Xt = class extends rt {
|
|
|
20835
20962
|
[_e](t3) {
|
|
20836
20963
|
return vr(this.gid, t3.gid, this.processGid);
|
|
20837
20964
|
}
|
|
20838
|
-
[Ts](t3,
|
|
20965
|
+
[Ts](t3, e3) {
|
|
20839
20966
|
let i = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r2 = new et(String(t3.absolute), { flags: ms(t3.size), mode: i, autoClose: false });
|
|
20840
20967
|
r2.on("error", (a) => {
|
|
20841
20968
|
r2.fd && import_node_fs3.default.close(r2.fd, () => {
|
|
20842
|
-
}), r2.write = () => true, this[O](a, t3),
|
|
20969
|
+
}), r2.write = () => true, this[O](a, t3), e3();
|
|
20843
20970
|
});
|
|
20844
20971
|
let n3 = 1, o = (a) => {
|
|
20845
20972
|
if (a) {
|
|
20846
20973
|
r2.fd && import_node_fs3.default.close(r2.fd, () => {
|
|
20847
|
-
}), this[O](a, t3),
|
|
20974
|
+
}), this[O](a, t3), e3();
|
|
20848
20975
|
return;
|
|
20849
20976
|
}
|
|
20850
20977
|
--n3 === 0 && r2.fd !== void 0 && import_node_fs3.default.close(r2.fd, (l2) => {
|
|
20851
|
-
l2 ? this[O](l2, t3) : this[$t](),
|
|
20978
|
+
l2 ? this[O](l2, t3) : this[$t](), e3();
|
|
20852
20979
|
});
|
|
20853
20980
|
};
|
|
20854
20981
|
r2.on("finish", () => {
|
|
@@ -20867,18 +20994,18 @@ var Xt = class extends rt {
|
|
|
20867
20994
|
});
|
|
20868
20995
|
let h = this.transform && this.transform(t3) || t3;
|
|
20869
20996
|
h !== t3 && (h.on("error", (a) => {
|
|
20870
|
-
this[O](a, t3),
|
|
20997
|
+
this[O](a, t3), e3();
|
|
20871
20998
|
}), t3.pipe(h)), h.pipe(r2);
|
|
20872
20999
|
}
|
|
20873
|
-
[xs](t3,
|
|
21000
|
+
[xs](t3, e3) {
|
|
20874
21001
|
let i = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode;
|
|
20875
21002
|
this[yt](String(t3.absolute), i, (r2) => {
|
|
20876
21003
|
if (r2) {
|
|
20877
|
-
this[O](r2, t3),
|
|
21004
|
+
this[O](r2, t3), e3();
|
|
20878
21005
|
return;
|
|
20879
21006
|
}
|
|
20880
21007
|
let n3 = 1, o = () => {
|
|
20881
|
-
--n3 === 0 && (
|
|
21008
|
+
--n3 === 0 && (e3(), this[$t](), t3.resume());
|
|
20882
21009
|
};
|
|
20883
21010
|
t3.mtime && !this.noMtime && (n3++, import_node_fs3.default.utimes(String(t3.absolute), t3.atime || /* @__PURE__ */ new Date(), t3.mtime, o)), this[ge](t3) && (n3++, import_node_fs3.default.chown(String(t3.absolute), Number(this[be](t3)), Number(this[_e](t3)), o)), o();
|
|
20884
21011
|
});
|
|
@@ -20886,22 +21013,22 @@ var Xt = class extends rt {
|
|
|
20886
21013
|
[Cr](t3) {
|
|
20887
21014
|
t3.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t3.type}`, { entry: t3 }), t3.resume();
|
|
20888
21015
|
}
|
|
20889
|
-
[Ar](t3,
|
|
21016
|
+
[Ar](t3, e3) {
|
|
20890
21017
|
let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t3.absolute)), String(t3.linkpath)))).split("/");
|
|
20891
|
-
this[Re](t3, this.cwd, i, () => this[gi](t3, String(t3.linkpath), "symlink",
|
|
20892
|
-
this[O](r2, t3),
|
|
21018
|
+
this[Re](t3, this.cwd, i, () => this[gi](t3, String(t3.linkpath), "symlink", e3), (r2) => {
|
|
21019
|
+
this[O](r2, t3), e3();
|
|
20893
21020
|
});
|
|
20894
21021
|
}
|
|
20895
|
-
[Ir](t3,
|
|
21022
|
+
[Ir](t3, e3) {
|
|
20896
21023
|
let i = f(import_node_path5.default.resolve(this.cwd, String(t3.linkpath))), r2 = f(String(t3.linkpath)).split("/");
|
|
20897
|
-
this[Re](t3, this.cwd, r2, () => this[gi](t3, i, "link",
|
|
20898
|
-
this[O](n3, t3),
|
|
21024
|
+
this[Re](t3, this.cwd, r2, () => this[gi](t3, i, "link", e3), (n3) => {
|
|
21025
|
+
this[O](n3, t3), e3();
|
|
20899
21026
|
});
|
|
20900
21027
|
}
|
|
20901
|
-
[Re](t3,
|
|
21028
|
+
[Re](t3, e3, i, r2, n3) {
|
|
20902
21029
|
let o = i.shift();
|
|
20903
21030
|
if (this.preservePaths || o === void 0) return r2();
|
|
20904
|
-
let h = import_node_path5.default.resolve(
|
|
21031
|
+
let h = import_node_path5.default.resolve(e3, o);
|
|
20905
21032
|
import_node_fs3.default.lstat(h, (a, l2) => {
|
|
20906
21033
|
if (a) return r2();
|
|
20907
21034
|
if (l2?.isSymbolicLink()) return n3(new St(h, import_node_path5.default.resolve(h, i.join("/"))));
|
|
@@ -20917,17 +21044,17 @@ var Xt = class extends rt {
|
|
|
20917
21044
|
[Ls](t3) {
|
|
20918
21045
|
this[$t](), t3.resume();
|
|
20919
21046
|
}
|
|
20920
|
-
[Os](t3,
|
|
20921
|
-
return t3.type === "File" && !this.unlink &&
|
|
21047
|
+
[Os](t3, e3) {
|
|
21048
|
+
return t3.type === "File" && !this.unlink && e3.isFile() && e3.nlink <= 1 && !Te;
|
|
20922
21049
|
}
|
|
20923
21050
|
[_s](t3) {
|
|
20924
21051
|
this[kr]();
|
|
20925
|
-
let
|
|
20926
|
-
t3.linkpath &&
|
|
21052
|
+
let e3 = [t3.path];
|
|
21053
|
+
t3.linkpath && e3.push(t3.linkpath), this.reservations.reserve(e3, (i) => this[Nr](t3, i));
|
|
20927
21054
|
}
|
|
20928
|
-
[Nr](t3,
|
|
21055
|
+
[Nr](t3, e3) {
|
|
20929
21056
|
let i = (h) => {
|
|
20930
|
-
|
|
21057
|
+
e3(h);
|
|
20931
21058
|
}, r2 = () => {
|
|
20932
21059
|
this[yt](this.cwd, this.dmode, (h) => {
|
|
20933
21060
|
if (h) {
|
|
@@ -20968,27 +21095,27 @@ var Xt = class extends rt {
|
|
|
20968
21095
|
};
|
|
20969
21096
|
this[Oe] ? n3() : r2();
|
|
20970
21097
|
}
|
|
20971
|
-
[P](t3,
|
|
21098
|
+
[P](t3, e3, i) {
|
|
20972
21099
|
if (t3) {
|
|
20973
|
-
this[O](t3,
|
|
21100
|
+
this[O](t3, e3), i();
|
|
20974
21101
|
return;
|
|
20975
21102
|
}
|
|
20976
|
-
switch (
|
|
21103
|
+
switch (e3.type) {
|
|
20977
21104
|
case "File":
|
|
20978
21105
|
case "OldFile":
|
|
20979
21106
|
case "ContiguousFile":
|
|
20980
|
-
return this[Ts](
|
|
21107
|
+
return this[Ts](e3, i);
|
|
20981
21108
|
case "Link":
|
|
20982
|
-
return this[Ir](
|
|
21109
|
+
return this[Ir](e3, i);
|
|
20983
21110
|
case "SymbolicLink":
|
|
20984
|
-
return this[Ar](
|
|
21111
|
+
return this[Ar](e3, i);
|
|
20985
21112
|
case "Directory":
|
|
20986
21113
|
case "GNUDumpDir":
|
|
20987
|
-
return this[xs](
|
|
21114
|
+
return this[xs](e3, i);
|
|
20988
21115
|
}
|
|
20989
21116
|
}
|
|
20990
|
-
[gi](t3,
|
|
20991
|
-
import_node_fs3.default[i](
|
|
21117
|
+
[gi](t3, e3, i, r2) {
|
|
21118
|
+
import_node_fs3.default[i](e3, String(t3.absolute), (n3) => {
|
|
20992
21119
|
n3 ? this[O](n3, t3) : (this[$t](), t3.resume()), r2();
|
|
20993
21120
|
});
|
|
20994
21121
|
}
|
|
@@ -21002,8 +21129,8 @@ var ye = (s4) => {
|
|
|
21002
21129
|
};
|
|
21003
21130
|
var xe = class extends Xt {
|
|
21004
21131
|
sync = true;
|
|
21005
|
-
[P](t3,
|
|
21006
|
-
return super[P](t3,
|
|
21132
|
+
[P](t3, e3) {
|
|
21133
|
+
return super[P](t3, e3, () => {
|
|
21007
21134
|
});
|
|
21008
21135
|
}
|
|
21009
21136
|
[_s](t3) {
|
|
@@ -21019,9 +21146,9 @@ var xe = class extends Xt {
|
|
|
21019
21146
|
if (o) return this[O](o, t3);
|
|
21020
21147
|
}
|
|
21021
21148
|
}
|
|
21022
|
-
let [
|
|
21149
|
+
let [e3, i] = ye(() => import_node_fs3.default.lstatSync(String(t3.absolute)));
|
|
21023
21150
|
if (i && (this.keep || this.newer && i.mtime > (t3.mtime ?? i.mtime))) return this[Ls](t3);
|
|
21024
|
-
if (
|
|
21151
|
+
if (e3 || this[Os](t3, i)) return this[P](null, t3);
|
|
21025
21152
|
if (i.isDirectory()) {
|
|
21026
21153
|
if (t3.type === "Directory") {
|
|
21027
21154
|
let o = this.chmod && t3.mode && (i.mode & 4095) !== t3.mode, [h] = o ? ye(() => {
|
|
@@ -21035,7 +21162,7 @@ var xe = class extends Xt {
|
|
|
21035
21162
|
let [r2] = t3.absolute === this.cwd ? [] : ye(() => po(String(t3.absolute)));
|
|
21036
21163
|
this[P](r2, t3);
|
|
21037
21164
|
}
|
|
21038
|
-
[Ts](t3,
|
|
21165
|
+
[Ts](t3, e3) {
|
|
21039
21166
|
let i = typeof t3.mode == "number" ? t3.mode & 4095 : this.fmode, r2 = (h) => {
|
|
21040
21167
|
let a;
|
|
21041
21168
|
try {
|
|
@@ -21043,7 +21170,7 @@ var xe = class extends Xt {
|
|
|
21043
21170
|
} catch (l2) {
|
|
21044
21171
|
a = l2;
|
|
21045
21172
|
}
|
|
21046
|
-
(h || a) && this[O](h || a, t3),
|
|
21173
|
+
(h || a) && this[O](h || a, t3), e3();
|
|
21047
21174
|
}, n3;
|
|
21048
21175
|
try {
|
|
21049
21176
|
n3 = import_node_fs3.default.openSync(String(t3.absolute), ms(t3.size), i);
|
|
@@ -21086,10 +21213,10 @@ var xe = class extends Xt {
|
|
|
21086
21213
|
r2(h);
|
|
21087
21214
|
});
|
|
21088
21215
|
}
|
|
21089
|
-
[xs](t3,
|
|
21216
|
+
[xs](t3, e3) {
|
|
21090
21217
|
let i = typeof t3.mode == "number" ? t3.mode & 4095 : this.dmode, r2 = this[yt](String(t3.absolute), i);
|
|
21091
21218
|
if (r2) {
|
|
21092
|
-
this[O](r2, t3),
|
|
21219
|
+
this[O](r2, t3), e3();
|
|
21093
21220
|
return;
|
|
21094
21221
|
}
|
|
21095
21222
|
if (t3.mtime && !this.noMtime) try {
|
|
@@ -21100,47 +21227,47 @@ var xe = class extends Xt {
|
|
|
21100
21227
|
import_node_fs3.default.chownSync(String(t3.absolute), Number(this[be](t3)), Number(this[_e](t3)));
|
|
21101
21228
|
} catch {
|
|
21102
21229
|
}
|
|
21103
|
-
|
|
21230
|
+
e3(), t3.resume();
|
|
21104
21231
|
}
|
|
21105
|
-
[yt](t3,
|
|
21232
|
+
[yt](t3, e3) {
|
|
21106
21233
|
try {
|
|
21107
|
-
return _r(f(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode:
|
|
21234
|
+
return _r(f(t3), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e3 });
|
|
21108
21235
|
} catch (i) {
|
|
21109
21236
|
return i;
|
|
21110
21237
|
}
|
|
21111
21238
|
}
|
|
21112
|
-
[Re](t3,
|
|
21239
|
+
[Re](t3, e3, i, r2, n3) {
|
|
21113
21240
|
if (this.preservePaths || i.length === 0) return r2();
|
|
21114
|
-
let o =
|
|
21241
|
+
let o = e3;
|
|
21115
21242
|
for (let h of i) {
|
|
21116
21243
|
o = import_node_path5.default.resolve(o, h);
|
|
21117
21244
|
let [a, l2] = ye(() => import_node_fs3.default.lstatSync(o));
|
|
21118
21245
|
if (a) return r2();
|
|
21119
|
-
if (l2.isSymbolicLink()) return n3(new St(o, import_node_path5.default.resolve(
|
|
21246
|
+
if (l2.isSymbolicLink()) return n3(new St(o, import_node_path5.default.resolve(e3, i.join("/"))));
|
|
21120
21247
|
}
|
|
21121
21248
|
r2();
|
|
21122
21249
|
}
|
|
21123
|
-
[gi](t3,
|
|
21250
|
+
[gi](t3, e3, i, r2) {
|
|
21124
21251
|
let n3 = `${i}Sync`;
|
|
21125
21252
|
try {
|
|
21126
|
-
import_node_fs3.default[n3](
|
|
21253
|
+
import_node_fs3.default[n3](e3, String(t3.absolute)), r2(), t3.resume();
|
|
21127
21254
|
} catch (o) {
|
|
21128
21255
|
return this[O](o, t3);
|
|
21129
21256
|
}
|
|
21130
21257
|
}
|
|
21131
21258
|
};
|
|
21132
21259
|
var Eo = (s4) => {
|
|
21133
|
-
let t3 = new xe(s4),
|
|
21134
|
-
new Be(
|
|
21260
|
+
let t3 = new xe(s4), e3 = s4.file, i = import_node_fs2.default.statSync(e3), r2 = s4.maxReadSize || 16 * 1024 * 1024;
|
|
21261
|
+
new Be(e3, { readSize: r2, size: i.size }).pipe(t3);
|
|
21135
21262
|
};
|
|
21136
21263
|
var wo = (s4, t3) => {
|
|
21137
|
-
let
|
|
21264
|
+
let e3 = new Xt(s4), i = s4.maxReadSize || 16 * 1024 * 1024, r2 = s4.file;
|
|
21138
21265
|
return new Promise((o, h) => {
|
|
21139
|
-
|
|
21266
|
+
e3.on("error", h), e3.on("close", o), import_node_fs2.default.stat(r2, (a, l2) => {
|
|
21140
21267
|
if (a) h(a);
|
|
21141
21268
|
else {
|
|
21142
21269
|
let c2 = new _t(r2, { readSize: i, size: l2.size });
|
|
21143
|
-
c2.on("error", h), c2.pipe(
|
|
21270
|
+
c2.on("error", h), c2.pipe(e3);
|
|
21144
21271
|
}
|
|
21145
21272
|
});
|
|
21146
21273
|
});
|
|
@@ -21149,7 +21276,7 @@ var So = K(Eo, wo, (s4) => new xe(s4), (s4) => new Xt(s4), (s4, t3) => {
|
|
|
21149
21276
|
t3?.length && Qi(s4, t3);
|
|
21150
21277
|
});
|
|
21151
21278
|
var yo = (s4, t3) => {
|
|
21152
|
-
let
|
|
21279
|
+
let e3 = new kt(s4), i = true, r2, n3;
|
|
21153
21280
|
try {
|
|
21154
21281
|
try {
|
|
21155
21282
|
r2 = import_node_fs6.default.openSync(s4.file, "r+");
|
|
@@ -21169,7 +21296,7 @@ var yo = (s4, t3) => {
|
|
|
21169
21296
|
if (n3 + l2 + 512 > o.size) break;
|
|
21170
21297
|
n3 += l2, s4.mtimeCache && a.mtime && s4.mtimeCache.set(String(a.path), a.mtime);
|
|
21171
21298
|
}
|
|
21172
|
-
i = false, Ro(s4,
|
|
21299
|
+
i = false, Ro(s4, e3, n3, r2, t3);
|
|
21173
21300
|
} finally {
|
|
21174
21301
|
if (i) try {
|
|
21175
21302
|
import_node_fs6.default.closeSync(r2);
|
|
@@ -21177,13 +21304,13 @@ var yo = (s4, t3) => {
|
|
|
21177
21304
|
}
|
|
21178
21305
|
}
|
|
21179
21306
|
};
|
|
21180
|
-
var Ro = (s4, t3,
|
|
21181
|
-
let n3 = new Wt(s4.file, { fd: i, start:
|
|
21307
|
+
var Ro = (s4, t3, e3, i, r2) => {
|
|
21308
|
+
let n3 = new Wt(s4.file, { fd: i, start: e3 });
|
|
21182
21309
|
t3.pipe(n3), bo(t3, r2);
|
|
21183
21310
|
};
|
|
21184
21311
|
var go = (s4, t3) => {
|
|
21185
21312
|
t3 = Array.from(t3);
|
|
21186
|
-
let
|
|
21313
|
+
let e3 = new wt(s4), i = (n3, o, h) => {
|
|
21187
21314
|
let a = (T8, D) => {
|
|
21188
21315
|
T8 ? import_node_fs6.default.close(n3, (E) => h(T8)) : h(null, D);
|
|
21189
21316
|
}, l2 = 0;
|
|
@@ -21202,7 +21329,7 @@ var go = (s4, t3) => {
|
|
|
21202
21329
|
import_node_fs6.default.read(n3, d, 0, 512, l2, y);
|
|
21203
21330
|
};
|
|
21204
21331
|
return new Promise((n3, o) => {
|
|
21205
|
-
|
|
21332
|
+
e3.on("error", o);
|
|
21206
21333
|
let h = "r+", a = (l2, c2) => {
|
|
21207
21334
|
if (l2 && l2.code === "ENOENT" && h === "r+") return h = "w+", import_node_fs6.default.open(s4.file, h, a);
|
|
21208
21335
|
if (l2 || !c2) return o(l2);
|
|
@@ -21211,7 +21338,7 @@ var go = (s4, t3) => {
|
|
|
21211
21338
|
i(c2, y.size, (T8, D) => {
|
|
21212
21339
|
if (T8) return o(T8);
|
|
21213
21340
|
let E = new et(s4.file, { fd: c2, start: D });
|
|
21214
|
-
|
|
21341
|
+
e3.pipe(E), E.on("error", o), E.on("close", n3), _o(e3, t3);
|
|
21215
21342
|
});
|
|
21216
21343
|
});
|
|
21217
21344
|
};
|
|
@@ -21219,12 +21346,12 @@ var go = (s4, t3) => {
|
|
|
21219
21346
|
});
|
|
21220
21347
|
};
|
|
21221
21348
|
var bo = (s4, t3) => {
|
|
21222
|
-
t3.forEach((
|
|
21223
|
-
|
|
21349
|
+
t3.forEach((e3) => {
|
|
21350
|
+
e3.charAt(0) === "@" ? Ct({ file: import_node_path9.default.resolve(s4.cwd, e3.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s4.add(i) }) : s4.add(e3);
|
|
21224
21351
|
}), s4.end();
|
|
21225
21352
|
};
|
|
21226
21353
|
var _o = async (s4, t3) => {
|
|
21227
|
-
for (let
|
|
21354
|
+
for (let e3 of t3) e3.charAt(0) === "@" ? await Ct({ file: import_node_path9.default.resolve(String(s4.cwd), e3.slice(1)), noResume: true, onReadEntry: (i) => s4.add(i) }) : s4.add(e3);
|
|
21228
21355
|
s4.end();
|
|
21229
21356
|
};
|
|
21230
21357
|
var vt = K(yo, go, () => {
|
|
@@ -21241,7 +21368,7 @@ var Oo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s4, t3 = [
|
|
|
21241
21368
|
});
|
|
21242
21369
|
var To = (s4) => {
|
|
21243
21370
|
let t3 = s4.filter;
|
|
21244
|
-
s4.mtimeCache || (s4.mtimeCache = /* @__PURE__ */ new Map()), s4.filter = t3 ? (
|
|
21371
|
+
s4.mtimeCache || (s4.mtimeCache = /* @__PURE__ */ new Map()), s4.filter = t3 ? (e3, i) => t3(e3, i) && !((s4.mtimeCache?.get(e3) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e3, i) => !((s4.mtimeCache?.get(e3) ?? i.mtime ?? 0) > (i.mtime ?? 0));
|
|
21245
21372
|
};
|
|
21246
21373
|
|
|
21247
21374
|
// src/utils/files.ts
|
|
@@ -23925,12 +24052,12 @@ t.fill(8, 0, 144), t.fill(9, 144, 256), t.fill(7, 256, 280), t.fill(8, 280, 288)
|
|
|
23925
24052
|
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
23926
24053
|
var n = (t3) => t3({ workerURI: (t4) => {
|
|
23927
24054
|
const n3 = "text/javascript";
|
|
23928
|
-
let s4 = '(t=>{"function"==typeof define&&define.amd?define(t):t()})(function(){"use strict";const{Array:t,Object:e,Number:n,Math:s,Error:r,Uint8Array:o,Uint16Array:c,Uint32Array:i,Int32Array:a,Map:f,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:p,TransformStream:d,ReadableStream:y,WritableStream:m,CompressionStream:S,DecompressionStream:g}=self,v=void 0,b="undefined",k="function",z=new o,C=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;C[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const n=C[e-1][t];C[e][t]=n>>>8^C[0][255&n]}const[I,A,x,M,P,D,F,B]=C;class R{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const n=0|t.length;let s=0;if(n>=8&&t.buffer){const r=new l(t.buffer,t.byteOffset,n),o=n-8;for(;s<=o;s+=8){const t=e^r.getInt32(s,!0),n=r.getInt32(s+4,!0);e=B[255&t]^F[t>>>8&255]^D[t>>>16&255]^P[t>>>24&255]^M[255&n]^x[n>>>8&255]^A[n>>>16&255]^I[n>>>24&255]}}for(;s<n;s++)e=e>>>8^I[255&(e^t[s])];this.o=e}get(){return~this.o}}class U extends d{constructor(){let t;const e=new R;super({transform(t,n){e.append(t),n.enqueue(t)},flush(){const n=new o(4);new l(n.buffer).setUint32(0,e.get()),t.value=n}}),t=this}}function W(t,e){const n=new o(t.length+e.length);return n.set(t),n.set(e,t.length),n}function _(t){return new l(t.buffer,t.byteOffset,t.byteLength)}const T={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],s=T.l(n);return 32===s?t.concat(e):T.h(e,s,0|n,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+T.l(n)},m(t,e){if(32*t.length<e)return t;const n=(t=t.slice(0,s.ceil(e/32))).length;return e&=31,n>0&&e&&(t[n-1]=T.S(e,t[n-1]&2147483648>>e-1,1)),t},S:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,l:t=>s.round(t/1099511627776)||32,h(t,e,n,s){for(void 0===s&&(s=[]);e>=32;e-=32)s.push(n),n=0;if(0===e)return s.concat(t);for(let r=0;r<t.length;r++)s.push(n|t[r]>>>e),n=t[r]<<32-e;const r=t.length?t[t.length-1]:0,o=T.l(r);return s.push(T.S(e+o&31,e+o>32?n:s.pop(),1)),s}},V={bytes:{v(t){const e=T.bitLength(t)/8,n=new o(e);let s;for(let r=0;r<e;r++)3&r||(s=t[r/4]),n[r]=s>>>24,s<<=8;return n},C(t){const e=[];let n,s=0;for(n=0;n<t.length;n++)s=s<<8|t[n],3&~n||(e.push(s),s=0);return 3&n&&e.push(T.S(8*(3&n),s)),e}}},K=class{constructor(t){const e=this;e.blockSize=512,e.I=[1732584193,4023233417,2562383102,271733878,3285377520],e.A=[1518500249,1859775393,2400959708,3395469782],t?(e.M=t.M.slice(0),e.P=t.P.slice(0),e.D=t.D):e.reset()}reset(){const t=this;return t.M=t.I.slice(0),t.P=[],t.D=0,t}update(t){const e=this;"string"==typeof t&&(t=V.F.C(t));const n=e.P=T.concat(e.P,t),s=e.D,o=e.D=s+T.bitLength(t);if(o>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const c=new i(n);let a=0;for(let t=e.blockSize+s-(e.blockSize+s&e.blockSize-1);t<=o;t+=e.blockSize)e.B(c.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),e}R(){const t=this;let e=t.P;const n=t.M;e=T.concat(e,[T.S(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(s.floor(t.D/4294967296)),e.push(0|t.D);e.length;)t.B(e.splice(0,16));return t.reset(),n}U(t,e,n,s){return t<=19?e&n|~e&s:t<=39?e^n^s:t<=59?e&n|e&s|n&s:t<=79?e^n^s:void 0}W(t,e){return e<<t|e>>>32-t}B(e){const n=this,r=n.M,o=t(80);for(let t=0;t<16;t++)o[t]=e[t];let c=r[0],i=r[1],a=r[2],f=r[3],l=r[4];for(let t=0;t<=79;t++){t>=16&&(o[t]=n.W(1,o[t-3]^o[t-8]^o[t-14]^o[t-16]));const e=n.W(5,c)+n.U(t,i,a,f)+l+o[t]+n.A[s.floor(t/20)]|0;l=f,f=a,a=n.W(30,i),i=c,c=e}r[0]=r[0]+c|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+f|0,r[4]=r[4]+l|0}},E={importKey:t=>new E._(V.bytes.C(t)),T(t,e,n,s){if(n=n||1e4,s<0||n<0)throw new r("invalid params to pbkdf2");const o=1+(s>>5)<<2;let c,i,a,f,u;const w=new ArrayBuffer(o),h=new l(w);let p=0;const d=T;for(e=V.bytes.C(e),u=1;p<(o||1);u++){for(c=i=t.encrypt(d.concat(e,[u])),a=1;a<n;a++)for(i=t.encrypt(i),f=0;f<i.length;f++)c[f]^=i[f];for(a=0;p<(o||1)&&a<c.length;a++)h.setInt32(p,c[a]),p+=4}return w.slice(0,s/8)},_:class{constructor(t){const e=this,n=e.V=K,s=[[],[]];e.K=[new n,new n];const r=e.K[0].blockSize/32;t.length>r&&(t=(new n).update(t).R());for(let e=0;e<r;e++)s[0][e]=909522486^t[e],s[1][e]=1549556828^t[e];e.K[0].update(s[0]),e.K[1].update(s[1]),e.L=new n(e.K[0])}reset(){const t=this;t.L=new t.V(t.K[0]),t.O=!1}update(t){this.O=!0,this.L.update(t)}digest(){const t=this,e=t.L.R(),n=new t.V(t.K[1]).update(e).R();return t.reset(),n}encrypt(t){if(this.O)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},L=typeof h!=b&&typeof h.getRandomValues==k,O="Invalid password",j="Invalid signature",H=j,N="zipjs-abort-check-password";function q(t){if(L)return h.getRandomValues(t);throw new r("Crypto API not supported")}const G=16,J={name:"PBKDF2"},Q=e.assign({hash:{name:"HMAC"}},J),X=e.assign({iterations:1e3,hash:{name:"SHA-1"}},J),Y=["deriveBits"],Z=[8,12,16],$=[16,24,32],tt=10,et=[0,0,0,0],nt=typeof h!=b,st=nt&&h.subtle,rt=nt&&typeof st!=b,ot=V.bytes,ct=class{constructor(t){const e=this;e.j=[[[],[],[],[],[]],[[],[],[],[],[]]],e.j[0][0][0]||e.H();const n=e.j[0][4],s=e.j[1],o=t.length;let c,i,a,f=1;if(4!==o&&6!==o&&8!==o)throw new r("invalid aes key size");for(e.A=[i=t.slice(0),a=[]],c=o;c<4*o+28;c++){let t=i[c-1];(c%o===0||8===o&&c%o===4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],c%o===0&&(t=t<<8^t>>>24^f<<24,f=f<<1^283*(f>>7))),i[c]=i[c-o]^t}for(let t=0;c;t++,c--){const e=i[3&t?c:c-4];a[t]=c<=4||t<4?e:s[0][n[e>>>24]]^s[1][n[e>>16&255]]^s[2][n[e>>8&255]]^s[3][n[255&e]]}}encrypt(t){return this.N(t,0)}decrypt(t){return this.N(t,1)}H(){const t=this.j[0],e=this.j[1],n=t[4],s=e[4],r=[],o=[];let c,i,a,f;for(let t=0;t<256;t++)o[(r[t]=t<<1^283*(t>>7))^t]=t;for(let l=c=0;!n[l];l^=i||1,c=o[c]||1){let o=c^c<<1^c<<2^c<<3^c<<4;o=o>>8^255&o^99,n[l]=o,s[o]=l,f=r[a=r[i=r[l]]];let u=16843009*f^65537*a^257*i^16843008*l,w=257*r[o]^16843008*o;for(let n=0;n<4;n++)t[n][l]=w=w<<24^w>>>8,e[n][o]=u=u<<24^u>>>8}for(let n=0;n<5;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}N(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.A[e],s=n.length/4-2,o=[0,0,0,0],c=this.j[e],i=c[0],a=c[1],f=c[2],l=c[3],u=c[4];let w,h,p,d=t[0]^n[0],y=t[e?3:1]^n[1],m=t[2]^n[2],S=t[e?1:3]^n[3],g=4;for(let t=0;t<s;t++)w=i[d>>>24]^a[y>>16&255]^f[m>>8&255]^l[255&S]^n[g],h=i[y>>>24]^a[m>>16&255]^f[S>>8&255]^l[255&d]^n[g+1],p=i[m>>>24]^a[S>>16&255]^f[d>>8&255]^l[255&y]^n[g+2],S=i[S>>>24]^a[d>>16&255]^f[y>>8&255]^l[255&m]^n[g+3],g+=4,d=w,y=h,m=p;for(let t=0;t<4;t++)o[e?3&-t:t]=u[d>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&S]^n[g++],w=d,d=y,y=m,m=S,S=w;return o}},it=class{constructor(t,e){this.G=t,this.J=e,this.X=e}reset(){this.X=this.J}update(t){return this.Y(this.G,t,this.X)}Z(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,n=t>>8&255,s=255&t;255===e?(e=0,255===n?(n=0,255===s?s=0:++s):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=s}return t}$(t){0===(t[0]=this.Z(t[0]))&&(t[1]=this.Z(t[1]))}Y(t,e,n){let s;if(!(s=e.length))return[];const r=T.bitLength(e);for(let r=0;r<s;r+=4){this.$(n);const s=t.encrypt(n);e[r]^=s[0],e[r+1]^=s[1],e[r+2]^=s[2],e[r+3]^=s[3]}return T.m(e,r)}},at=E._;let ft=nt&&rt&&typeof st.importKey==k,lt=nt&&rt&&typeof st.deriveBits==k;class ut extends d{constructor({password:t,rawPassword:e,encryptionStrength:n,checkPasswordOnly:s,checkAuthenticationCode:c=!0}){super({start(){ht(this,t,e,n)},async transform(t,e){const n=this,{password:c,strength:i,et:a,ready:f}=n;c?(await(async(t,e,n,s)=>{const o=await dt(t,e,n,mt(s,0,Z[e])),c=mt(s,Z[e]);if(o[0]!=c[0]||o[1]!=c[1])throw new r(O)})(n,i,c,mt(t,0,Z[i]+2)),t=mt(t,Z[i]+2),s?e.error(new r(N)):a()):await f;const l=new o(t.length-tt-(t.length-tt)%G);e.enqueue(pt(n,t,l,0,tt,!0))},async flush(t){const{nt:e,st:n,ot:s,ready:o}=this;if(n&&e){await o;const i=mt(s,0,s.length-tt),a=mt(s,s.length-tt);let f=z;if(i.length){const t=gt(ot,i);n.update(t);const s=e.update(t);f=St(ot,s)}const l=mt(St(ot,n.digest()),0,tt);let u=s.length<tt?1:0;for(let t=0;t<tt;t++)u|=l[t]^a[t];if(u&&c)throw new r(H);t.enqueue(f)}}})}}class wt extends d{constructor({password:t,rawPassword:e,encryptionStrength:n}){super({start(){ht(this,t,e,n)},async transform(t,e){const n=this,{password:s,strength:r,et:c,ready:i}=n;let a=z;s?(a=await(async(t,e,n)=>{const s=q(new o(Z[e]));return W(s,await dt(t,e,n,s))})(n,r,s),c()):await i;const f=new o(a.length+t.length-t.length%G);f.set(a,0),e.enqueue(pt(n,t,f,a.length,0))},async flush(t){const{nt:e,st:n,ot:s,ready:r}=this;if(n&&e){await r;let o=z;if(s.length){const t=e.update(gt(ot,s));n.update(t),o=St(ot,t)}const c=St(ot,n.digest()).slice(0,tt);t.enqueue(W(o,c))}}})}}function ht(t,n,s,r){e.assign(t,{ready:new u(e=>t.et=e),password:yt(n,s),strength:r-1,ot:z})}function pt(t,e,n,s,r,c){const{nt:i,st:a,ot:f}=t;f.length&&(e=W(f,e));const l=e.length-r;let u;for(n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new o(e)).set(n,0)}return t})(n,s+(l-l%G)),u=0;u<=l-G;u+=G){const t=gt(ot,mt(e,u,u+G));c&&a.update(t);const r=i.update(t);c||a.update(r),n.set(St(ot,r),u+s)}return t.ot=mt(e,u),n}async function dt(n,s,r,c){n.password=null;const i=await(async(t,e,n,s,r)=>{if(!ft)return E.importKey(e);try{return await st.importKey("raw",e,n,!1,r)}catch{return ft=!1,E.importKey(e)}})(0,r,Q,0,Y),a=await(async(t,e,n)=>{if(!lt)return E.T(e,t.salt,X.iterations,n);try{return await st.deriveBits(t,e,n)}catch{return lt=!1,E.T(e,t.salt,X.iterations,n)}})(e.assign({salt:c},X),i,8*(2*$[s]+2)),f=new o(a),l=gt(ot,mt(f,0,$[s])),u=gt(ot,mt(f,$[s],2*$[s])),w=mt(f,2*$[s]);return e.assign(n,{keys:{key:l,ct:u,passwordVerification:w},nt:new it(new ct(l),t.from(et)),st:new at(u)}),w}function yt(t,e){return e===v?(t=>{if(typeof w==b){const e=new o((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new w).encode(t)})(t):e}function mt(t,e,n){return t.subarray(e,n)}function St(t,e){return t.v(e)}function gt(t,e){return t.C(e)}class vt extends d{constructor({password:t,rawPassword:e,passwordVerification:n,checkPasswordOnly:s}){super({start(){kt(this,t,e,n)},transform(t,e){const n=this;if(n.password||n.rawPassword){const e=zt(n,t.subarray(0,12));if(n.password=n.rawPassword=null,0!=(e[11]^n.passwordVerification))throw new r(O);t=t.subarray(12)}s?e.error(new r(N)):e.enqueue(zt(n,t))}})}}class bt extends d{constructor({password:t,rawPassword:e,passwordVerification:n}){super({start(){kt(this,t,e,n)},transform(t,e){const n=this;let s,r;if(n.password||n.rawPassword){n.password=n.rawPassword=null;const e=q(new o(12));e[11]=n.passwordVerification,s=new o(t.length+e.length),s.set(Ct(n,e),0),r=12}else s=new o(t.length),r=0;s.set(Ct(n,t),r),e.enqueue(s)}})}}function kt(t,n,s,r){e.assign(t,{password:n,rawPassword:s,passwordVerification:r}),((t,n,s)=>{const r=[305419896,591751049,878082192];if(e.assign(t,{keys:r,it:new R(r[0]),ft:new R(r[2])}),s)for(let e=0;e<s.length;e++)It(t,s[e]);else for(let e=0;e<n.length;e++)It(t,n.charCodeAt(e))})(t,n,s)}function zt(t,e){const n=new o(e.length);for(let s=0;s<e.length;s++)n[s]=At(t)^e[s],It(t,n[s]);return n}function Ct(t,e){const n=new o(e.length);for(let s=0;s<e.length;s++)n[s]=At(t)^e[s],It(t,e[s]);return n}function It(t,e){let[,n]=t.keys;t.it.append([e]);const r=~t.it.get();n=Mt(s.imul(Mt(n+xt(r)),134775813)+1),t.ft.append([n>>>24]);const o=~t.ft.get();t.keys=[r,n,o]}function At(t){const e=2|t.keys[2];return xt(s.imul(e,1^e)>>>8)}function xt(t){return 255&t}function Mt(t){return 4294967295&t}function Pt(t){if(t instanceof y)return t;const e=t.getReader();return new y({async pull(t){const{value:n,done:s}=await e.read();s?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}const Dt=new f;function Ft(t){return Dt.get(t)}const Bt="Invalid uncompressed size",Rt=j,Ut="deflate-raw",Wt="gzip",_t=[31,139,8];class Tt extends d{constructor(t,{chunkSize:e,CompressionStreamFallback:n,CompressionStream:s}){super({});const{compressed:r,encrypted:o,useCompressionStream:c,zipCrypto:i,computeCrc32:a,level:f,deflate64:u,format:w,compressionMethod:h}=t,p=this;let d,y,m,S=super.readable;const g=w&&Ft(w),v=a&&r&&!u&&!g&&(!o||i)&&!(!c||!s);if(o&&!i||!a||v||(d=new U,S=Ht(S,d)),r)if(g)S=Nt(S,Ot(g.CompressionStream,w,{level:f,chunkSize:e,compressionMethod:h}));else if(v)m=new Vt,S=Nt(S,new s(Wt)),S=Ht(S,m);else try{S=jt(S,c,{level:f,chunkSize:e},s,n)}catch(t){let e;try{e=new s(Wt)}catch{throw t}S=Nt(S,e),S=Ht(S,new Vt)}o&&(i?S=Ht(S,new bt(t)):(y=new wt(t),S=Ht(S,y))),Lt(p,S,()=>{o&&!i||!a||(p.crc32=v?m.crc32:new l(d.value.buffer).getUint32(0))})}}class Vt extends d{constructor(){let t,e=10,n=new o(0);super({transform(t,r){if(e){const n=s.min(e,t.length);if(e-=n,!(t=t.subarray(n)).length)return}const o=n.length+t.length;if(o<=8)return void(n=W(n,t));const c=o-8,i=s.min(c,n.length);r.enqueue(W(n.subarray(0,i),t.subarray(0,c-i))),n=W(n.subarray(i),t.subarray(c-i))},flush(){const e=_(n);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class Kt extends d{constructor(t,{chunkSize:e,DecompressionStreamFallback:n,DecompressionStream:s}){super({});const{zipCrypto:c,encrypted:i,checkCrc32:a,crc32:f,compressed:w,useCompressionStream:h,deflate64:p,format:m,compressionMethod:S,rawBitFlag:g,outputSize:b}=t;let k,z,C=super.readable;if(i&&(c?C=Ht(C,new vt(t)):(z=new ut(t),C=Ht(C,z))),w){const t=m&&Ft(m);if(t)C=Nt(C,Ot(t.DecompressionStream,m,{chunkSize:e,compressionMethod:S,rawBitFlag:g,uncompressedSize:b}));else try{C=jt(C,h,{chunkSize:e,deflate64:p},s,n)}catch(t){if(p||b===v)throw t;let e;try{e=new s(Wt)}catch{throw t}C=((t,e,n)=>{const s=new R;let c,i,a,f=0,l=!1;const w=new u((t,e)=>{i=t,a=e});w.catch(()=>{}),n||i();const h=new d({start(t){const e=new o(10);e.set(_t),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){l=!0,y();try{await w}finally{m()}const e=new o(8),r=_(e);r.setUint32(0,s.get(),!0),r.setUint32(4,n,!0),t.enqueue(e)},cancel(t){a(t)}}),p=new d({transform(t,e){s.append(t),f+=t.length,f>=n?i():l&&y(),e.enqueue(t)},cancel(t){a(t)}});return t=Ht(t,h),Ht(t=Nt(t,e),p);function y(){m(),c=setTimeout(()=>a(new r(Bt)),5e3)}function m(){clearTimeout(c)}})(C,e,b)}C=(t=>{const e=t.getReader();return new y({async pull(t){let n;try{n=await e.read()}catch(t){if(t&&t.message)throw t;const e=new r("Invalid compressed data");throw e.cause=t,e}const{value:s,done:o}=n;o?t.close():t.enqueue(s)},cancel:t=>e.cancel(t)})})(C)}a&&(k=new U,C=Ht(C,k)),Lt(this,C,()=>{if(a){const t=new l(k.value.buffer);if(f!=t.getUint32(0,!1))throw new r(Rt)}})}}const Et=new f;function Lt(t,n,s){n=Ht(n,new d({flush:s})),e.defineProperty(t,"readable",{get:()=>n})}function Ot(t,e,n){if(!t)throw new r("Compression method not supported");return new t(e,n)}function jt(t,e,n,s,r){const o=e&&s?s:r||s,c=n.deflate64?"deflate64-raw":Ut;let i;try{i=new o(c,n)}catch(t){if(!e||!r||o==r)throw t;i=new r(c,n)}return Nt(t,i)}function Ht(t,e){return Pt(t).pipeThrough(e)}function Nt(t,e){const n=e.writable.getWriter(),s=t.getReader();return(async()=>{try{for(;;){await n.ready;const t=await s.read();if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await(async(t,e)=>{try{await t.abort(e)}catch{}})(n,t),await(async(t,e)=>{try{await t.cancel(e)}catch{}})(s,t)}})(),e.readable}const qt="data",Gt="close",Jt="deflate";class Qt extends d{constructor(t,n){super({});const s=this,{codecType:o}=t;let c;o.startsWith(Jt)?c=Tt:o.startsWith("inflate")&&(c=Kt),s.outputSize=0;let i=0;const a=new c(t,n),f=super.readable,l=new d({transform(t,e){t&&t.length&&(i+=t.length,e.enqueue(t))},flush(){e.assign(s,{inputSize:i})}}),u=new d({transform(e,n){if(e&&e.length&&(n.enqueue(e),s.outputSize+=e.length,t.outputSize!==v&&s.outputSize>t.outputSize))throw new r(Bt)},flush(){const{crc32:t}=a;e.assign(s,{crc32:t,inputSize:i})}});e.defineProperty(s,"readable",{get:()=>f.pipeThrough(l).pipeThrough(a).pipeThrough(u)})}}class Xt extends d{constructor(t){const e=[];let s=0;function r(){const n=new o(t);let r=0;for(;r<t;){const s=e[0],o=t-r;s.length<=o?(n.set(s,r),r+=s.length,e.shift()):(n.set(s.subarray(0,o),r),e[0]=s.subarray(o),r+=o)}return s-=t,n}(!n.isFinite(t)||t<1)&&(t=65536),super({transform(n,o){for(e.push(n),s+=n.length;s>t;)o.enqueue(r())},flush(t){s&&t.enqueue(((t,e)=>{const n=new o(e);let s=0;for(const e of t)n.set(e,s),s+=e.length;return n})(e,s))}})}}let Yt=2;try{typeof navigator!=b&&navigator.hardwareConcurrency&&(Yt=navigator.hardwareConcurrency)}catch{}const Zt=new f,$t=new f;let te,ee,ne,se,re,oe,ce=0;async function ie(t){let e,o;try{const{options:c,config:i}=t;if(c.format)try{await(async(t,e)=>{!Dt.has(t)&&e&&((t,e)=>{const{CompressionStream:n,DecompressionStream:s}=e;if(typeof n!=k&&typeof s!=k)throw new r("Invalid codec module");Dt.set(t,{CompressionStream:n,DecompressionStream:s})})(t,await(import(e)))})(c.format,c.codecURI)}catch(t){throw t.codecImportFailed=!0,t}if(i.CompressionStream=self.CompressionStream,i.DecompressionStream=self.DecompressionStream,c.compressed&&!c.format)if(c.useCompressionStream){if(!((t,e)=>{if(!t)return!1;let n=Et.get(t);n||(n=new f,Et.set(t,n));let s=n.get(e);if(s===v){try{new t(e),s=!0}catch{s=!1}n.set(e,s)}return s})(c.codecType.startsWith(Jt)?i.CompressionStream:i.DecompressionStream,Ut))try{await self.initModule(t.config)}catch{}}else try{await self.initModule(t.config)}catch{c.useCompressionStream=!0}!i.CompressionStreamFallback&&i.CompressionStreamZlib&&(i.CompressionStreamFallback=i.CompressionStreamZlib),!i.DecompressionStreamFallback&&i.DecompressionStreamZlib&&(i.DecompressionStreamFallback=i.DecompressionStreamZlib);const a={highWaterMark:1},l=t.readable?Pt(t.readable):new y({async pull(t){const e=new u(t=>Zt.set(ce,t));ae({type:"pull",messageId:ce}),ce=(ce+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await e;t.enqueue(s),r&&t.close()}},a);o=t.writable?(t=>{if(t instanceof m)return t;const e=t.getWriter();return new m({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})})(t.writable):new m({async write(t){let e;const s=new u(t=>e=t);$t.set(ce,e),ae({type:qt,value:t,messageId:ce}),ce=(ce+1)%n.MAX_SAFE_INTEGER,await s}},a),e=new Qt(c,i),te=new AbortController;const{signal:w}=te;await l.pipeThrough(e).pipeThrough(new Xt((t=>{return r="string"==typeof(e=r=t.chunkSize)&&e.trim()?n(e):e,n.isInteger(r)&&r>=1?s.max(r,64):65536;var e,r})(i))).pipeTo(o,{signal:w,preventClose:!0,preventAbort:!0}),await o.getWriter().close();const{crc32:h,inputSize:p,outputSize:d}=e;ae({type:Gt,result:{crc32:h,inputSize:p,outputSize:d}})}catch(t){if(t.outputSize=e?e.outputSize:0,o&&!o.locked)try{await o.getWriter().close()}catch{}fe(t)}}function ae(t){const{value:e}=t;if(e)if(e.length)try{t.value=(n=e,n.byteOffset||n.byteLength!=n.buffer.byteLength?new o(n):n).buffer,p(t,[t.value])}catch{p(t)}else p(t);else p(t);var n}function fe(t=new r("Unknown error")){const{message:e,stack:n,code:s,name:o,outputSize:c,cause:i,codecImportFailed:a}=t,f={message:e,stack:n,code:s,name:o,outputSize:c};i&&(f.cause={name:i.name,message:i.message}),a&&(f.codecImportFailed=!0),p({error:f})}function le(t,e,n={}){if(!ee){const t=new r("WASM module not loaded");throw t.cause=oe,t}const c="number"==typeof n.level?n.level:-1,i="number"==typeof n.outBuffer?n.outBuffer:65536,a="number"==typeof n.inBufferSize?n.inBufferSize:65536;return new d({start(){try{let n;if(this.lt=ne(i),this.in=ne(a),this.inBufferSize=a,!this.lt||!this.in)throw new r("allocation failed");if(this.ut=new o(i),t?(this.wt=ee.deflate_process,this.ht=ee.deflate_last_consumed,this.yt=ee.deflate_end,this.St=ee.deflate_new(),n="gzip"===e?ee.deflate_init_gzip(this.St,c):"deflate-raw"===e?ee.deflate_init_raw(this.St,c):ee.deflate_init(this.St,c)):"deflate64-raw"===e?(this.wt=ee.inflate9_process,this.ht=ee.inflate9_last_consumed,this.yt=ee.inflate9_end,this.St=ee.inflate9_new(),n=ee.inflate9_init_raw(this.St)):(this.wt=ee.inflate_process,this.ht=ee.inflate_last_consumed,this.yt=ee.inflate_end,this.St=ee.inflate_new(),n="deflate-raw"===e?ee.inflate_init_raw(this.St):"gzip"===e?ee.inflate_init_gzip(this.St):ee.inflate_init(this.St)),0!==n)throw new r("init failed:"+n)}catch(t){throw f(this),t}},transform(e,n){try{const c=e,a=new o(re.buffer),f=this.wt,l=this.ht,u=this.lt,w=this.ut;let h=0;for(;h<c.length;){const e=s.min(c.length-h,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&se&&(se(this.in),this.in=0),this.in=ne(e),this.inBufferSize=e,!this.in))throw new r("allocation failed");a.set(c.subarray(h,h+e),this.in);const o=f(this.St,this.in,e,u,i,0),p=16777215&o;if(p&&(w.set(a.subarray(u,u+p),0),n.enqueue(w.slice(0,p))),!t){const t=o>>24&255,e=128&t?t-256:t;if(e<0)throw new r("process error:"+e)}const d=l(this.St);if(0===d)break;h+=d}}catch(t){f(this),n.error(t)}},flush(e){try{const n=new o(re.buffer),s=this.wt,c=this.lt,a=this.ut;for(;;){const o=s(this.St,0,0,c,i,4),f=16777215&o,l=o>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw new r("process error:"+t)}if(f&&(a.set(n.subarray(c,c+f),0),e.enqueue(a.slice(0,f))),1===l||0===f)break}}catch(t){e.error(t)}finally{const t=f(this);0!==t&&e.error(new r("end error:"+t))}},cancel(){f(this)}});function f(t){let e=0;return t.St&&t.yt&&(e=t.yt(t.St)),t.St=0,t.in&&se&&se(t.in),t.in=0,t.lt&&se&&se(t.lt),t.lt=0,e}}addEventListener("message",({data:t})=>{const{type:e,messageId:n,value:s,done:r}=t;try{if("start"==e&&ie(t),e==qt){const t=Zt.get(n);Zt.delete(n),t({value:s||new o,done:r})}if("ack"==e){const t=$t.get(n);$t.delete(n),t()}e==Gt&&te.abort()}catch(t){fe(t)}}),p({type:"ready"});class ue{constructor(t="deflate",e){return le(!0,t,e)}}class we{constructor(t="deflate",e){return le(!1,t,e)}}ue.gt=!0,we.gt=!0;let he=!1;((t={})=>{const{init:e}=t,n=t.CompressionStreamFallback||t.CompressionStreamZlib,s=t.DecompressionStreamFallback||t.DecompressionStreamZlib;self.initModule=async t=>{e&&await e(t),n&&(t.CompressionStreamFallback=n),s&&(t.DecompressionStreamFallback=s)}})({CompressionStreamFallback:ue,DecompressionStreamFallback:we,init:t=>(async(t,{baseURI:e})=>{if(!he)try{await(async(t,e)=>{let n,s;try{try{s=new URL(t,e)}catch{}const r=await fetch(s);n=await r.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;n=(t=>{const e=t.split(",")[1],n=atob(e),s=n.length,r=new o(s);for(let t=0;t<s;++t)r[t]=n.charCodeAt(t);return r.buffer})(t)}(t=>{if(ee=t,({malloc:ne,free:se,memory:re}=ee),"function"!=typeof ne||"function"!=typeof se||!re)throw ee=ne=se=re=null,new r("Invalid WASM module")})((await WebAssembly.instantiate(n)).instance.exports)})(t,e),he=!0}catch(t){throw(t=>{oe=t})(t),t}})(t.wasmURI,t)})});\n';
|
|
24055
|
+
let s4 = '!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";const{Array:t,Object:n,Number:e,Math:s,Error:r,Uint8Array:o,Uint16Array:c,Uint32Array:i,Int32Array:a,Map:f,DataView:u,Promise:l,TextEncoder:w,crypto:h,postMessage:p,TransformStream:d,ReadableStream:y,WritableStream:m,CompressionStream:S,DecompressionStream:g}=self,v=void 0,b="undefined",k="function",z=new o,C=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let n=t;for(let t=0;t<8;t++)n=1&n?n>>>1^3988292384:n>>>1;C[0][t]=n}for(let t=0;t<256;t++)for(let n=1;n<8;n++){const e=C[n-1][t];C[n][t]=e>>>8^C[0][255&e]}const[I,A,x,M,P,B,D,F]=C;class R{constructor(t){this.o=t||-1}append(t){let n=0|this.o;const e=0|t.length;let s=0;if(e>=8&&t.buffer){const r=new u(t.buffer,t.byteOffset,e),o=e-8;for(;s<=o;s+=8){const t=n^r.getInt32(s,!0),e=r.getInt32(s+4,!0);n=F[255&t]^D[t>>>8&255]^B[t>>>16&255]^P[t>>>24&255]^M[255&e]^x[e>>>8&255]^A[e>>>16&255]^I[e>>>24&255]}}for(;s<e;s++)n=n>>>8^I[255&(n^t[s])];this.o=n}get(){return~this.o}}class U extends d{constructor(){let t;const n=new R;super({transform(t,e){n.append(t),e.enqueue(t)},flush(){const e=new o(4);new u(e.buffer).setUint32(0,n.get()),t.value=e}}),t=this}}function W(t,n){const e=new o(t.length+n.length);return e.set(t),e.set(n,t.length),e}function _(t){return new u(t.buffer,t.byteOffset,t.byteLength)}const T={concat(t,n){if(0===t.length||0===n.length)return t.concat(n);const e=t[t.length-1],s=T.l(e);return 32===s?t.concat(n):T.h(n,s,0|e,t.slice(0,t.length-1))},bitLength(t){const n=t.length;if(0===n)return 0;const e=t[n-1];return 32*(n-1)+T.l(e)},m(t,n){if(32*t.length<n)return t;const e=(t=t.slice(0,s.ceil(n/32))).length;return n&=31,e>0&&n&&(t[e-1]=T.S(n,t[e-1]&2147483648>>n-1,1)),t},S:(t,n,e)=>32===t?n:(e?0|n:n<<32-t)+1099511627776*t,l:t=>s.round(t/1099511627776)||32,h(t,n,e,s){for(void 0===s&&(s=[]);n>=32;n-=32)s.push(e),e=0;if(0===n)return s.concat(t);for(let r=0;r<t.length;r++)s.push(e|t[r]>>>n),e=t[r]<<32-n;const r=t.length?t[t.length-1]:0,o=T.l(r);return s.push(T.S(n+o&31,n+o>32?e:s.pop(),1)),s}},V={bytes:{v(t){const n=T.bitLength(t)/8,e=new o(n);let s;for(let r=0;r<n;r++)3&r||(s=t[r/4]),e[r]=s>>>24,s<<=8;return e},C(t){const n=[];let e,s=0;for(e=0;e<t.length;e++)s=s<<8|t[e],3&~e||(n.push(s),s=0);return 3&e&&n.push(T.S(8*(3&e),s)),n}}},K=class{constructor(t){const n=this;n.blockSize=512,n.I=[1732584193,4023233417,2562383102,271733878,3285377520],n.A=[1518500249,1859775393,2400959708,3395469782],t?(n.M=t.M.slice(0),n.P=t.P.slice(0),n.B=t.B):n.reset()}reset(){const t=this;return t.M=t.I.slice(0),t.P=[],t.B=0,t}update(t){const n=this;"string"==typeof t&&(t=V.D.C(t));const e=n.P=T.concat(n.P,t),s=n.B,o=n.B=s+T.bitLength(t);if(o>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const c=new i(e);let a=0;for(let t=n.blockSize+s-(n.blockSize+s&n.blockSize-1);t<=o;t+=n.blockSize)n.F(c.subarray(16*a,16*(a+1))),a+=1;return e.splice(0,16*a),n}R(){const t=this;let n=t.P;const e=t.M;n=T.concat(n,[T.S(1,1)]);for(let t=n.length+2;15&t;t++)n.push(0);for(n.push(s.floor(t.B/4294967296)),n.push(0|t.B);n.length;)t.F(n.splice(0,16));return t.reset(),e}U(t,n,e,s){return t<=19?n&e|~n&s:t<=39?n^e^s:t<=59?n&e|n&s|e&s:t<=79?n^e^s:void 0}W(t,n){return n<<t|n>>>32-t}F(n){const e=this,r=e.M,o=t(80);for(let t=0;t<16;t++)o[t]=n[t];let c=r[0],i=r[1],a=r[2],f=r[3],u=r[4];for(let t=0;t<=79;t++){t>=16&&(o[t]=e.W(1,o[t-3]^o[t-8]^o[t-14]^o[t-16]));const n=e.W(5,c)+e.U(t,i,a,f)+u+o[t]+e.A[s.floor(t/20)]|0;u=f,f=a,a=e.W(30,i),i=c,c=n}r[0]=r[0]+c|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+f|0,r[4]=r[4]+u|0}},E={importKey:t=>new E._(V.bytes.C(t)),T(t,n,e,s){if(e=e||1e4,s<0||e<0)throw new r("invalid params to pbkdf2");const o=1+(s>>5)<<2;let c,i,a,f,l;const w=new ArrayBuffer(o),h=new u(w);let p=0;const d=T;for(n=V.bytes.C(n),l=1;p<(o||1);l++){for(c=i=t.encrypt(d.concat(n,[l])),a=1;a<e;a++)for(i=t.encrypt(i),f=0;f<i.length;f++)c[f]^=i[f];for(a=0;p<(o||1)&&a<c.length;a++)h.setInt32(p,c[a]),p+=4}return w.slice(0,s/8)},_:class{constructor(t){const n=this,e=n.V=K,s=[[],[]];n.K=[new e,new e];const r=n.K[0].blockSize/32;t.length>r&&(t=(new e).update(t).R());for(let n=0;n<r;n++)s[0][n]=909522486^t[n],s[1][n]=1549556828^t[n];n.K[0].update(s[0]),n.K[1].update(s[1]),n.L=new e(n.K[0])}reset(){const t=this;t.L=new t.V(t.K[0]),t.O=!1}update(t){this.O=!0,this.L.update(t)}digest(){const t=this,n=t.L.R(),e=new t.V(t.K[1]).update(n).R();return t.reset(),e}encrypt(t){if(this.O)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},L=typeof h!=b&&typeof h.getRandomValues==k,O="Invalid password",j="Invalid signature",H=j,N="zipjs-abort-check-password";function q(t){if(L)return h.getRandomValues(t);throw new r("Crypto API not supported")}const G=16,J={name:"PBKDF2"},Q=n.assign({hash:{name:"HMAC"}},J),X=n.assign({iterations:1e3,hash:{name:"SHA-1"}},J),Y=["deriveBits"],Z=[8,12,16],$=[16,24,32],tt=10,nt=[0,0,0,0],et=typeof h!=b,st=et&&h.subtle,rt=et&&typeof st!=b,ot=V.bytes,ct=class{constructor(t){const n=this;n.j=[[[],[],[],[],[]],[[],[],[],[],[]]],n.j[0][0][0]||n.H();const e=n.j[0][4],s=n.j[1],o=t.length;let c,i,a,f=1;if(4!==o&&6!==o&&8!==o)throw new r("invalid aes key size");for(n.A=[i=t.slice(0),a=[]],c=o;c<4*o+28;c++){let t=i[c-1];(c%o===0||8===o&&c%o===4)&&(t=e[t>>>24]<<24^e[t>>16&255]<<16^e[t>>8&255]<<8^e[255&t],c%o===0&&(t=t<<8^t>>>24^f<<24,f=f<<1^283*(f>>7))),i[c]=i[c-o]^t}for(let t=0;c;t++,c--){const n=i[3&t?c:c-4];a[t]=c<=4||t<4?n:s[0][e[n>>>24]]^s[1][e[n>>16&255]]^s[2][e[n>>8&255]]^s[3][e[255&n]]}}encrypt(t){return this.N(t,0)}decrypt(t){return this.N(t,1)}H(){const t=this.j[0],n=this.j[1],e=t[4],s=n[4],r=[],o=[];let c,i,a,f;for(let t=0;t<256;t++)o[(r[t]=t<<1^283*(t>>7))^t]=t;for(let u=c=0;!e[u];u^=i||1,c=o[c]||1){let o=c^c<<1^c<<2^c<<3^c<<4;o=o>>8^255&o^99,e[u]=o,s[o]=u,f=r[a=r[i=r[u]]];let l=16843009*f^65537*a^257*i^16843008*u,w=257*r[o]^16843008*o;for(let e=0;e<4;e++)t[e][u]=w=w<<24^w>>>8,n[e][o]=l=l<<24^l>>>8}for(let e=0;e<5;e++)t[e]=t[e].slice(0),n[e]=n[e].slice(0)}N(t,n){if(4!==t.length)throw new r("invalid aes block size");const e=this.A[n],s=e.length/4-2,o=[0,0,0,0],c=this.j[n],i=c[0],a=c[1],f=c[2],u=c[3],l=c[4];let w,h,p,d=t[0]^e[0],y=t[n?3:1]^e[1],m=t[2]^e[2],S=t[n?1:3]^e[3],g=4;for(let t=0;t<s;t++)w=i[d>>>24]^a[y>>16&255]^f[m>>8&255]^u[255&S]^e[g],h=i[y>>>24]^a[m>>16&255]^f[S>>8&255]^u[255&d]^e[g+1],p=i[m>>>24]^a[S>>16&255]^f[d>>8&255]^u[255&y]^e[g+2],S=i[S>>>24]^a[d>>16&255]^f[y>>8&255]^u[255&m]^e[g+3],g+=4,d=w,y=h,m=p;for(let t=0;t<4;t++)o[n?3&-t:t]=l[d>>>24]<<24^l[y>>16&255]<<16^l[m>>8&255]<<8^l[255&S]^e[g++],w=d,d=y,y=m,m=S,S=w;return o}},it=class{constructor(t,n){this.G=t,this.J=n,this.X=n}reset(){this.X=this.J}update(t){return this.Y(this.G,t,this.X)}Z(t){if(255&~(t>>24))t+=1<<24;else{let n=t>>16&255,e=t>>8&255,s=255&t;255===n?(n=0,255===e?(e=0,255===s?s=0:++s):++e):++n,t=0,t+=n<<16,t+=e<<8,t+=s}return t}$(t){0===(t[0]=this.Z(t[0]))&&(t[1]=this.Z(t[1]))}Y(t,n,e){let s;if(!(s=n.length))return[];const r=T.bitLength(n);for(let r=0;r<s;r+=4){this.$(e);const s=t.encrypt(e);n[r]^=s[0],n[r+1]^=s[1],n[r+2]^=s[2],n[r+3]^=s[3]}return T.m(n,r)}},at=E._;let ft=et&&rt&&typeof st.importKey==k,ut=et&&rt&&typeof st.deriveBits==k;class lt extends d{constructor({password:t,rawPassword:n,encryptionStrength:e,checkPasswordOnly:s,checkAuthenticationCode:c=!0}){super({start(){ht(this,t,n,e)},async transform(t,n){const e=this,{password:c,strength:i,nt:a,ready:f}=e;c?(await async function(t,n,e,s){const o=await dt(t,n,e,mt(s,0,Z[n])),c=mt(s,Z[n]);if(o[0]!=c[0]||o[1]!=c[1])throw new r(O)}(e,i,c,mt(t,0,Z[i]+2)),t=mt(t,Z[i]+2),s?n.error(new r(N)):a()):await f;const u=new o(t.length-tt-(t.length-tt)%G);n.enqueue(pt(e,t,u,0,tt,!0))},async flush(t){const{et:n,st:e,ot:s,ready:o}=this;if(e&&n){await o;const i=mt(s,0,s.length-tt),a=mt(s,s.length-tt);let f=z;if(i.length){const t=gt(ot,i);e.update(t);const s=n.update(t);f=St(ot,s)}const u=mt(St(ot,e.digest()),0,tt);let l=s.length<tt?1:0;for(let t=0;t<tt;t++)l|=u[t]^a[t];if(l&&c)throw new r(H);t.enqueue(f)}}})}}class wt extends d{constructor({password:t,rawPassword:n,encryptionStrength:e}){super({start(){ht(this,t,n,e)},async transform(t,n){const e=this,{password:s,strength:r,nt:c,ready:i}=e;let a=z;s?(a=await async function(t,n,e){const s=q(new o(Z[n]));return W(s,await dt(t,n,e,s))}(e,r,s),c()):await i;const f=new o(a.length+t.length-t.length%G);f.set(a,0),n.enqueue(pt(e,t,f,a.length,0))},async flush(t){const{et:n,st:e,ot:s,ready:r}=this;if(e&&n){await r;let o=z;if(s.length){const t=n.update(gt(ot,s));e.update(t),o=St(ot,t)}const c=St(ot,e.digest()).slice(0,tt);t.enqueue(W(o,c))}}})}}function ht(t,e,s,r){n.assign(t,{ready:new l(n=>t.nt=n),password:yt(e,s),strength:r-1,ot:z})}function pt(t,n,e,s,r,c){const{et:i,st:a,ot:f}=t;f.length&&(n=W(f,n));const u=n.length-r;let l;for(e=function(t,n){if(n&&n>t.length){const e=t;(t=new o(n)).set(e,0)}return t}(e,s+(u-u%G)),l=0;l<=u-G;l+=G){const t=gt(ot,mt(n,l,l+G));c&&a.update(t);const r=i.update(t);c||a.update(r),e.set(St(ot,r),l+s)}return t.ot=mt(n,l),e}async function dt(e,s,r,c){e.password=null;const i=await async function(t,n,e,s,r){if(!ft)return E.importKey(n);try{return await st.importKey("raw",n,e,!1,r)}catch{return ft=!1,E.importKey(n)}}(0,r,Q,0,Y),a=await async function(t,n,e){if(!ut)return E.T(n,t.salt,X.iterations,e);try{return await st.deriveBits(t,n,e)}catch{return ut=!1,E.T(n,t.salt,X.iterations,e)}}(n.assign({salt:c},X),i,8*(2*$[s]+2)),f=new o(a),u=gt(ot,mt(f,0,$[s])),l=gt(ot,mt(f,$[s],2*$[s])),w=mt(f,2*$[s]);return n.assign(e,{keys:{key:u,ct:l,passwordVerification:w},et:new it(new ct(u),t.from(nt)),st:new at(l)}),w}function yt(t,n){return n===v?function(t){if(typeof w==b){t=unescape(encodeURIComponent(t));const n=new o(t.length);for(let e=0;e<n.length;e++)n[e]=t.charCodeAt(e);return n}return(new w).encode(t)}(t):n}function mt(t,n,e){return t.subarray(n,e)}function St(t,n){return t.v(n)}function gt(t,n){return t.C(n)}class vt extends d{constructor({password:t,rawPassword:n,passwordVerification:e,checkPasswordOnly:s}){super({start(){kt(this,t,n,e)},transform(t,n){const e=this;if(e.password||e.rawPassword){const n=zt(e,t.subarray(0,12));if(e.password=e.rawPassword=null,0!=(n[11]^e.passwordVerification))throw new r(O);t=t.subarray(12)}s?n.error(new r(N)):n.enqueue(zt(e,t))}})}}class bt extends d{constructor({password:t,rawPassword:n,passwordVerification:e}){super({start(){kt(this,t,n,e)},transform(t,n){const e=this;let s,r;if(e.password||e.rawPassword){e.password=e.rawPassword=null;const n=q(new o(12));n[11]=e.passwordVerification,s=new o(t.length+n.length),s.set(Ct(e,n),0),r=12}else s=new o(t.length),r=0;s.set(Ct(e,t),r),n.enqueue(s)}})}}function kt(t,e,s,r){n.assign(t,{password:e,rawPassword:s,passwordVerification:r}),function(t,e,s){const r=[305419896,591751049,878082192];if(n.assign(t,{keys:r,it:new R(r[0]),ft:new R(r[2])}),s)for(let n=0;n<s.length;n++)It(t,s[n]);else for(let n=0;n<e.length;n++)It(t,e.charCodeAt(n))}(t,e,s)}function zt(t,n){const e=new o(n.length);for(let s=0;s<n.length;s++)e[s]=At(t)^n[s],It(t,e[s]);return e}function Ct(t,n){const e=new o(n.length);for(let s=0;s<n.length;s++)e[s]=At(t)^n[s],It(t,n[s]);return e}function It(t,n){let[,e]=t.keys;t.it.append([n]);const r=~t.it.get();e=Mt(s.imul(Mt(e+xt(r)),134775813)+1),t.ft.append([e>>>24]);const o=~t.ft.get();t.keys=[r,e,o]}function At(t){const n=2|t.keys[2];return xt(s.imul(n,1^n)>>>8)}function xt(t){return 255&t}function Mt(t){return 4294967295&t}function Pt(t){if(t instanceof y)return t;const n=t.getReader();return new y({async pull(t){const{value:e,done:s}=await n.read();s?t.close():t.enqueue(e)},cancel:t=>n.cancel(t)})}const Bt=new f;function Dt(t){return Bt.get(t)}const Ft="Invalid uncompressed size",Rt=j,Ut="deflate-raw",Wt="gzip",_t=[31,139,8];class Tt extends d{constructor(t,{chunkSize:n,CompressionStreamFallback:e,CompressionStream:s}){super({});const{compressed:r,encrypted:o,useCompressionStream:c,zipCrypto:i,computeCrc32:a,level:f,deflate64:l,format:w,compressionMethod:h,inputSize:p}=t,d=this;let y,m,S,g=super.readable;const v=w&&Dt(w),b=a&&r&&!l&&!v&&(!o||i)&&Boolean(c&&s);if(o&&!i||!a||b||(y=new U,g=Ht(g,y)),r)if(v)g=Nt(g,Ot(v.CompressionStream,w,{level:f,chunkSize:n,compressionMethod:h,uncompressedSize:p}));else if(b)S=new Vt,g=Nt(g,new s(Wt)),g=Ht(g,S);else try{g=jt(g,c,{level:f,chunkSize:n},s,e)}catch(t){let n;try{n=new s(Wt)}catch{throw t}g=Nt(g,n),g=Ht(g,new Vt)}o&&(i?g=Ht(g,new bt(t)):(m=new wt(t),g=Ht(g,m))),Lt(d,g,()=>{o&&!i||!a||(d.crc32=b?S.crc32:new u(y.value.buffer).getUint32(0))})}}class Vt extends d{constructor(){let t,n=10,e=new o(0);super({transform(t,r){if(n){const e=s.min(n,t.length);if(n-=e,!(t=t.subarray(e)).length)return}const o=e.length+t.length;if(o<=8)return void(e=W(e,t));const c=o-8,i=s.min(c,e.length);r.enqueue(W(e.subarray(0,i),t.subarray(0,c-i))),e=W(e.subarray(i),t.subarray(c-i))},flush(){const n=_(e);t.crc32=n.getUint32(0,!0),t.uncompressedSize=n.getUint32(4,!0)}}),t=this}}class Kt extends d{constructor(t,{chunkSize:n,DecompressionStreamFallback:e,DecompressionStream:s}){super({});const{zipCrypto:c,encrypted:i,checkCrc32:a,crc32:f,compressed:w,useCompressionStream:h,deflate64:p,format:m,compressionMethod:S,rawBitFlag:g,outputSize:b}=t;let k,z,C=super.readable;if(i&&(c?C=Ht(C,new vt(t)):(z=new lt(t),C=Ht(C,z))),w){const t=m&&Dt(m);if(t)C=Nt(C,Ot(t.DecompressionStream,m,{chunkSize:n,compressionMethod:S,rawBitFlag:g,uncompressedSize:b}));else try{C=jt(C,h,{chunkSize:n,deflate64:p},s,e)}catch(t){if(p||b===v)throw t;let n;try{n=new s(Wt)}catch{throw t}C=function(t,n,e){const s=new R;let c,i,a,f=0,u=!1;const w=new l((t,n)=>{i=t,a=n});w.catch(()=>{}),e||i();const h=new d({start(t){const n=new o(10);n.set(_t),t.enqueue(n)},transform(t,n){n.enqueue(t)},async flush(t){u=!0,y();try{await w}finally{m()}const n=new o(8),r=_(n);r.setUint32(0,s.get(),!0),r.setUint32(4,e,!0),t.enqueue(n)},cancel(t){a(t)}}),p=new d({transform(t,n){s.append(t),f+=t.length,f>=e?i():u&&y(),n.enqueue(t)},cancel(t){a(t)}});return t=Ht(t,h),Ht(t=Nt(t,n),p);function y(){m(),c=setTimeout(()=>a(new r(Ft)),5e3)}function m(){clearTimeout(c)}}(C,n,b)}C=function(t){const n=t.getReader();return new y({async pull(t){let e;try{e=await n.read()}catch(t){if(t&&t.message)throw t;const n=new r("Invalid compressed data");throw n.cause=t,n}const{value:s,done:o}=e;o?t.close():t.enqueue(s)},cancel:t=>n.cancel(t)})}(C)}a&&(k=new U,C=Ht(C,k)),Lt(this,C,()=>{if(a){const t=new u(k.value.buffer);if(f!=t.getUint32(0,!1))throw new r(Rt)}})}}const Et=new f;function Lt(t,e,s){e=Ht(e,new d({flush:s})),n.defineProperty(t,"readable",{get:()=>e})}function Ot(t,n,e){if(!t)throw new r("Compression method not supported");return new t(n,e)}function jt(t,n,e,s,r){const o=n&&s?s:r||s,c=e.deflate64?"deflate64-raw":Ut;let i;try{i=new o(c,e)}catch(t){if(!n||!r||o==r)throw t;i=new r(c,e)}return Nt(t,i)}function Ht(t,n){return Pt(t).pipeThrough(n)}function Nt(t,n){const e=n.writable.getWriter(),s=t.getReader();return async function(){try{for(;;){await e.ready;const t=await s.read();if(t.done){await e.close();break}await e.write(t.value)}}catch(t){await async function(t,n){try{await t.abort(n)}catch{}}(e,t),await async function(t,n){try{await t.cancel(n)}catch{}}(s,t)}}(),n.readable}const qt="data",Gt="close",Jt="deflate";class Qt extends d{constructor(t,e){super({});const s=this,{codecType:o}=t;let c;o.startsWith(Jt)?c=Tt:o.startsWith("inflate")&&(c=Kt),s.outputSize=0;let i=0;const a=new c(t,e),f=super.readable,u=new d({transform(t,n){t&&t.length&&(i+=t.length,n.enqueue(t))},flush(){n.assign(s,{inputSize:i})}}),l=new d({transform(n,e){if(n&&n.length&&(e.enqueue(n),s.outputSize+=n.length,t.outputSize!==v&&s.outputSize>t.outputSize))throw new r(Ft)},flush(){const{crc32:t}=a;n.assign(s,{crc32:t,inputSize:i})}});n.defineProperty(s,"readable",{get:()=>f.pipeThrough(u).pipeThrough(a).pipeThrough(l)})}}class Xt extends d{constructor(t){const n=[];let s=0;function r(){const e=new o(t);let r=0;for(;r<t;){const s=n[0],o=t-r;s.length<=o?(e.set(s,r),r+=s.length,n.shift()):(e.set(s.subarray(0,o),r),n[0]=s.subarray(o),r+=o)}return s-=t,e}(!e.isFinite(t)||t<1)&&(t=65536),super({transform(e,o){for(n.push(e),s+=e.length;s>t;)o.enqueue(r())},flush(t){s&&t.enqueue(function(t,n){const e=new o(n);let s=0;for(const n of t)e.set(n,s),s+=n.length;return e}(n,s))}})}}let Yt=2;try{typeof navigator!=b&&navigator.hardwareConcurrency&&(Yt=navigator.hardwareConcurrency)}catch{}const Zt=new f,$t=new f;let tn,nn=0;async function en(t){let n,o;try{const{options:c,config:i}=t;if(c.format)try{await async function(t,n){!Bt.has(t)&&n&&function(t,n){const{CompressionStream:e,DecompressionStream:s}=n;if(typeof e!=k&&typeof s!=k)throw new r("Invalid codec module");Bt.set(t,{CompressionStream:e,DecompressionStream:s})}(t,await(import(n)))}(c.format,c.codecURI)}catch(t){throw t.codecImportFailed=!0,t}if(i.CompressionStream=self.CompressionStream,i.DecompressionStream=self.DecompressionStream,c.compressed&&!c.format)if(c.useCompressionStream){if(!function(t,n){if(!t)return!1;let e=Et.get(t);e||(e=new f,Et.set(t,e));let s=e.get(n);if(s===v){try{new t(n),s=!0}catch{s=!1}e.set(n,s)}return s}(c.codecType.startsWith(Jt)?i.CompressionStream:i.DecompressionStream,Ut))try{await self.initModule(t.config)}catch{}}else try{await self.initModule(t.config)}catch{c.useCompressionStream=!0}!i.CompressionStreamFallback&&i.CompressionStreamZlib&&(i.CompressionStreamFallback=i.CompressionStreamZlib),!i.DecompressionStreamFallback&&i.DecompressionStreamZlib&&(i.DecompressionStreamFallback=i.DecompressionStreamZlib);const a={highWaterMark:1},u=t.readable?Pt(t.readable):new y({async pull(t){const n=new l(t=>Zt.set(nn,t));sn({type:"pull",messageId:nn}),nn=(nn+1)%e.MAX_SAFE_INTEGER;const{value:s,done:r}=await n;t.enqueue(s),r&&t.close()}},a);o=t.writable?function(t){if(t instanceof m)return t;const n=t.getWriter();return new m({write:t=>n.write(t),close:()=>n.close(),abort:t=>n.abort(t)})}(t.writable):new m({async write(t){let n;const s=new l(t=>n=t);$t.set(nn,n),sn({type:qt,value:t,messageId:nn}),nn=(nn+1)%e.MAX_SAFE_INTEGER,await s}},a),n=new Qt(c,i),tn=new AbortController;const{signal:w}=tn;await u.pipeThrough(n).pipeThrough(new Xt(function(t){return r="string"==typeof(n=r=t.chunkSize)&&n.trim()?e(n):n,e.isInteger(r)&&r>=1?s.max(r,64):65536;var n,r}(i))).pipeTo(o,{signal:w,preventClose:!0,preventAbort:!0}),await o.getWriter().close();const{crc32:h,inputSize:p,outputSize:d}=n;sn({type:Gt,result:{crc32:h,inputSize:p,outputSize:d}})}catch(t){if(t.outputSize=n?n.outputSize:0,o&&!o.locked)try{await o.getWriter().close()}catch{}rn(t)}}function sn(t){const{value:n}=t;if(n)if(n.length)try{t.value=(e=n,e.byteOffset||e.byteLength!=e.buffer.byteLength?new o(e):e).buffer,p(t,[t.value])}catch{p(t)}else p(t);else p(t);var e}function rn(t=new r("Unknown error")){const{message:n,stack:e,code:s,name:o,outputSize:c,cause:i,codecImportFailed:a}=t,f={message:n,stack:e,code:s,name:o,outputSize:c};i&&(f.cause={name:i.name,message:i.message}),a&&(f.codecImportFailed=!0),p({error:f})}addEventListener("message",({data:t})=>{const{type:n,messageId:e,value:s,done:r}=t;try{if("start"==n&&en(t),n==qt){const t=Zt.get(e);Zt.delete(e),t({value:s||new o,done:r})}if("ack"==n){const t=$t.get(e);$t.delete(e),t()}n==Gt&&tn.abort()}catch(t){rn(t)}}),p({type:"ready"});const on="deflate",cn="deflate-raw",an="deflate64-raw",fn="gzip";let un,ln,wn,hn,pn;function dn(t,n,e={}){if(!un){const t=new r("WASM module not loaded");throw t.cause=pn,t}const c="number"==typeof e.level?e.level:-1,i="number"==typeof e.outBuffer?e.outBuffer:65536,a="number"==typeof e.inBufferSize?e.inBufferSize:65536;return new d({start(){try{let e;if(this.ut=ln(i),this.in=ln(a),this.inBufferSize=a,!this.ut||!this.in)throw new r("allocation failed");if(this.lt=new o(i),t?(this.wt=un.deflate_process,this.ht=un.deflate_last_consumed,this.yt=un.deflate_end,this.St=un.deflate_new(),e=n===fn?un.deflate_init_gzip(this.St,c):n===cn?un.deflate_init_raw(this.St,c):un.deflate_init(this.St,c)):n===an?(this.wt=un.inflate9_process,this.ht=un.inflate9_last_consumed,this.yt=un.inflate9_end,this.St=un.inflate9_new(),e=un.inflate9_init_raw(this.St)):(this.wt=un.inflate_process,this.ht=un.inflate_last_consumed,this.yt=un.inflate_end,this.St=un.inflate_new(),e=n===cn?un.inflate_init_raw(this.St):n===fn?un.inflate_init_gzip(this.St):un.inflate_init(this.St)),0!==e)throw new r("init failed:"+e)}catch(t){throw f(this),t}},transform(n,e){try{const c=n,a=new o(hn.buffer),f=this.wt,u=this.ht,l=this.ut,w=this.lt;let h=0;for(;h<c.length;){const n=s.min(c.length-h,32768);if((!this.in||this.inBufferSize<n)&&(this.in&&wn&&(wn(this.in),this.in=0),this.in=ln(n),this.inBufferSize=n,!this.in))throw new r("allocation failed");a.set(c.subarray(h,h+n),this.in);const o=f(this.St,this.in,n,l,i,0),p=16777215&o;if(p&&(w.set(a.subarray(l,l+p),0),e.enqueue(w.slice(0,p))),!t){const t=o>>24&255,n=128&t?t-256:t;if(n<0)throw new r("process error:"+n)}const d=u(this.St);if(0===d)break;h+=d}}catch(t){f(this),e.error(t)}},flush(n){try{const e=new o(hn.buffer),s=this.wt,c=this.ut,a=this.lt;for(;;){const o=s(this.St,0,0,c,i,4),f=16777215&o,u=o>>24&255;if(!t){const t=128&u?u-256:u;if(t<0)throw new r("process error:"+t)}if(f&&(a.set(e.subarray(c,c+f),0),n.enqueue(a.slice(0,f))),1===u||0===f)break}}catch(t){n.error(t)}finally{const t=f(this);0!==t&&n.error(new r("end error:"+t))}},cancel(){f(this)}});function f(t){let n=0;return t.St&&t.yt&&(n=t.yt(t.St)),t.St=0,t.in&&wn&&wn(t.in),t.in=0,t.ut&&wn&&wn(t.ut),t.ut=0,n}}class yn{constructor(t=on,n){return dn(!0,t,n)}}class mn{constructor(t=on,n){return dn(!1,t,n)}}yn.gt=!0,mn.gt=!0,yn.vt=[on,cn,fn],mn.vt=[on,cn,fn,an];let Sn=!1;!function(t={}){const{init:n}=t,e=t.CompressionStreamFallback||t.CompressionStreamZlib,s=t.DecompressionStreamFallback||t.DecompressionStreamZlib;self.initModule=async t=>{n&&await n(t),e&&(t.CompressionStreamFallback=e),s&&(t.DecompressionStreamFallback=s)}}({CompressionStreamFallback:yn,DecompressionStreamFallback:mn,init:t=>async function(t,{baseURI:n}){if(!Sn)try{await async function(t,n){let e,s;try{try{s=new URL(t,n)}catch{}const r=await fetch(s);e=await r.arrayBuffer()}catch(n){if(!t.startsWith("data:application/wasm;base64,"))throw n;e=function(t){const n=t.split(",")[1],e=atob(n),s=e.length,r=new o(s);for(let t=0;t<s;++t)r[t]=e.charCodeAt(t);return r.buffer}(t)}!function(t){if(un=t,({malloc:ln,free:wn,memory:hn}=un),"function"!=typeof ln||"function"!=typeof wn||!hn)throw un=ln=wn=hn=null,new r("Invalid WASM module")}((await WebAssembly.instantiate(e)).instance.exports)}(t,n),Sn=!0}catch(t){throw function(t){pn=t}(t),t}}(t.wasmURI,t)})});\n';
|
|
23929
24056
|
if ("string" == typeof s4 && (s4 = new TextEncoder().encode(s4)), t4) {
|
|
23930
24057
|
const t5 = new Blob([s4], { type: n3 });
|
|
23931
24058
|
return URL.createObjectURL(t5);
|
|
23932
24059
|
}
|
|
23933
|
-
return "data:" + n3 + ";base64," + (
|
|
24060
|
+
return "data:" + n3 + ";base64," + function(t5) {
|
|
23934
24061
|
let n4 = "";
|
|
23935
24062
|
const s5 = t5.length;
|
|
23936
24063
|
let r2 = 0;
|
|
@@ -23947,7 +24074,7 @@ var n = (t3) => t3({ workerURI: (t4) => {
|
|
|
23947
24074
|
n4 += e[s6 >> 18 & 63] + e[s6 >> 12 & 63] + e[s6 >> 6 & 63] + "=";
|
|
23948
24075
|
}
|
|
23949
24076
|
return n4;
|
|
23950
|
-
}
|
|
24077
|
+
}(s4);
|
|
23951
24078
|
} });
|
|
23952
24079
|
|
|
23953
24080
|
// ../../node_modules/@zip.js/zip.js/lib/zip-core-base.js
|
|
@@ -24404,150 +24531,146 @@ var ZipWriter = class {
|
|
|
24404
24531
|
offset: options[OPTION_OFFSET] === UNDEFINED_VALUE ? writer.size || writer.writable.size || 0 : options[OPTION_OFFSET],
|
|
24405
24532
|
initialOffset: options[OPTION_OFFSET] === UNDEFINED_VALUE ? 0 : options[OPTION_OFFSET] - (writer.size || writer.writable.size || 0),
|
|
24406
24533
|
pendingAddFileCalls: /* @__PURE__ */ new Set(),
|
|
24534
|
+
pendingErrors: [],
|
|
24407
24535
|
bufferedWrites: 0,
|
|
24408
24536
|
lastFileEntry: UNDEFINED_VALUE
|
|
24409
24537
|
});
|
|
24410
24538
|
}
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
throw new Error(ERR_ZIP_NOT_EMPTY);
|
|
24414
|
-
}
|
|
24415
|
-
reader = new GenericReader(reader);
|
|
24416
|
-
await initStream(reader);
|
|
24417
|
-
if (reader.size === UNDEFINED_VALUE || !reader.readUint8Array) {
|
|
24418
|
-
reader = new BlobReader(await streamToBlob(reader.readable));
|
|
24419
|
-
await initStream(reader);
|
|
24420
|
-
}
|
|
24421
|
-
const { ZipReader: ZipReader2 } = await Promise.resolve().then(() => (init_zip_reader(), zip_reader_exports));
|
|
24422
|
-
const zipReader = new ZipReader2(reader);
|
|
24423
|
-
const entries = await zipReader.getEntries();
|
|
24424
|
-
await zipReader.close();
|
|
24425
|
-
await initStream(this.writer);
|
|
24426
|
-
const { directoryOffset } = zipReader;
|
|
24427
|
-
if (this.addSplitZipSignature) {
|
|
24428
|
-
delete this.addSplitZipSignature;
|
|
24429
|
-
if (!await startsWithSplitZipSignature2(reader)) {
|
|
24430
|
-
await writeData(this.writer, getSplitZipSignatureArray());
|
|
24431
|
-
this.offset += SPLIT_ZIP_FILE_SIGNATURE_LENGTH;
|
|
24432
|
-
}
|
|
24433
|
-
}
|
|
24434
|
-
const entryPositions = await copyZipData(this, reader, entries, directoryOffset);
|
|
24435
|
-
this.filenames = new Set(entries.map((entry) => entry.filename));
|
|
24436
|
-
this.fileEntries = new Map(entries.map((entry) => {
|
|
24437
|
-
const {
|
|
24438
|
-
version: version2,
|
|
24439
|
-
rawLastModDate,
|
|
24440
|
-
lastAccessDate,
|
|
24441
|
-
creationDate,
|
|
24442
|
-
rawFilename,
|
|
24443
|
-
bitFlag,
|
|
24444
|
-
encrypted,
|
|
24445
|
-
uncompressedSize,
|
|
24446
|
-
compressedSize,
|
|
24447
|
-
extraFieldZip64
|
|
24448
|
-
} = entry;
|
|
24449
|
-
let {
|
|
24450
|
-
compressionMethod,
|
|
24451
|
-
rawExtraFieldZip64,
|
|
24452
|
-
rawExtraFieldAES,
|
|
24453
|
-
rawExtraFieldExtendedTimestamp,
|
|
24454
|
-
rawExtraFieldNTFS,
|
|
24455
|
-
rawExtraFieldUnix,
|
|
24456
|
-
rawExtraField
|
|
24457
|
-
} = entry;
|
|
24458
|
-
const { level, languageEncodingFlag, dataDescriptor } = bitFlag;
|
|
24459
|
-
rawExtraFieldZip64 = rawExtraFieldZip64 || EMPTY_UINT8_ARRAY;
|
|
24460
|
-
rawExtraFieldAES = rawExtraFieldAES || EMPTY_UINT8_ARRAY;
|
|
24461
|
-
rawExtraFieldExtendedTimestamp = rawExtraFieldExtendedTimestamp || EMPTY_UINT8_ARRAY;
|
|
24462
|
-
rawExtraFieldNTFS = rawExtraFieldNTFS || EMPTY_UINT8_ARRAY;
|
|
24463
|
-
rawExtraFieldUnix = rawExtraFieldUnix || EMPTY_UINT8_ARRAY;
|
|
24464
|
-
rawExtraField = removeExtraFieldZip64(rawExtraField || EMPTY_UINT8_ARRAY);
|
|
24465
|
-
if (entry.extraFieldAES) {
|
|
24466
|
-
compressionMethod = COMPRESSION_METHOD_AES;
|
|
24467
|
-
}
|
|
24468
|
-
const extraFieldLength = getLength(rawExtraFieldZip64, rawExtraFieldAES, rawExtraFieldExtendedTimestamp, rawExtraFieldNTFS, rawExtraFieldUnix, rawExtraField);
|
|
24469
|
-
const zip64UncompressedSize = Boolean(extraFieldZip64) && extraFieldZip64.uncompressedSize !== UNDEFINED_VALUE;
|
|
24470
|
-
const zip64CompressedSize = Boolean(extraFieldZip64) && extraFieldZip64.compressedSize !== UNDEFINED_VALUE;
|
|
24471
|
-
const bitFlagValue = getBitFlag(level, languageEncodingFlag, dataDescriptor, encrypted, compressionMethod) & ~BITFLAG_LEVEL | level << 1;
|
|
24472
|
-
const {
|
|
24473
|
-
headerArray,
|
|
24474
|
-
headerView
|
|
24475
|
-
} = getHeaderArrayData({
|
|
24476
|
-
version: version2,
|
|
24477
|
-
bitFlag: bitFlagValue,
|
|
24478
|
-
compressionMethod,
|
|
24479
|
-
uncompressedSize,
|
|
24480
|
-
compressedSize,
|
|
24481
|
-
rawLastModDate,
|
|
24482
|
-
rawFilename,
|
|
24483
|
-
zip64CompressedSize,
|
|
24484
|
-
zip64UncompressedSize,
|
|
24485
|
-
extraFieldLength
|
|
24486
|
-
});
|
|
24487
|
-
const { crc32 } = entry;
|
|
24488
|
-
if (crc32 !== UNDEFINED_VALUE) {
|
|
24489
|
-
setUint32(headerView, HEADER_OFFSET_SIGNATURE, crc32);
|
|
24490
|
-
}
|
|
24491
|
-
const { offset, diskNumberStart } = entryPositions.get(entry);
|
|
24492
|
-
Object.assign(entry, {
|
|
24493
|
-
zip64UncompressedSize,
|
|
24494
|
-
zip64CompressedSize,
|
|
24495
|
-
offset,
|
|
24496
|
-
diskNumberStart,
|
|
24497
|
-
zip64DiskNumberStart: false,
|
|
24498
|
-
rawExtraFieldZip64,
|
|
24499
|
-
rawExtraFieldAES,
|
|
24500
|
-
rawExtraFieldExtendedTimestamp,
|
|
24501
|
-
rawExtraFieldNTFS,
|
|
24502
|
-
rawExtraFieldUnix,
|
|
24503
|
-
rawExtraField,
|
|
24504
|
-
extendedTimestamp: rawExtraFieldExtendedTimestamp.length > 0 || rawExtraFieldNTFS.length > 0,
|
|
24505
|
-
extraFieldExtendedTimestampFlag: 1 + (lastAccessDate ? 2 : 0) + (creationDate ? 4 : 0),
|
|
24506
|
-
headerArray,
|
|
24507
|
-
headerView
|
|
24508
|
-
});
|
|
24509
|
-
return [entry.filename, entry];
|
|
24510
|
-
}));
|
|
24539
|
+
prependZip(reader) {
|
|
24540
|
+
return watchPromiseError(this, prependZipEntries(this, reader));
|
|
24511
24541
|
}
|
|
24512
|
-
|
|
24542
|
+
appendZip(reader) {
|
|
24543
|
+
return watchPromiseError(this, this.appendZipEntries(reader));
|
|
24544
|
+
}
|
|
24545
|
+
async appendZipEntries(reader) {
|
|
24513
24546
|
const zipWriter = this;
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
workers++;
|
|
24518
|
-
} else {
|
|
24519
|
-
await new Promise((resolve2) => pendingEntries.push(resolve2));
|
|
24547
|
+
const { pendingAddFileCalls, filenames, fileEntries } = zipWriter;
|
|
24548
|
+
while (pendingAddFileCalls.size) {
|
|
24549
|
+
await Promise.allSettled(Array.from(pendingAddFileCalls));
|
|
24520
24550
|
}
|
|
24521
|
-
let
|
|
24522
|
-
|
|
24551
|
+
let resolveAppendZip;
|
|
24552
|
+
const promiseAppendZip = new Promise((resolve2) => resolveAppendZip = resolve2);
|
|
24553
|
+
pendingAddFileCalls.add(promiseAppendZip);
|
|
24554
|
+
const appendedFilenames = [];
|
|
24555
|
+
let releaseLockWriter;
|
|
24523
24556
|
try {
|
|
24524
|
-
|
|
24525
|
-
|
|
24526
|
-
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
}
|
|
24531
|
-
|
|
24532
|
-
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24557
|
+
reader = new GenericReader(reader);
|
|
24558
|
+
await initStream(reader);
|
|
24559
|
+
if (reader.size === UNDEFINED_VALUE || !reader.readUint8Array) {
|
|
24560
|
+
reader = new BlobReader(await streamToBlob(reader.readable));
|
|
24561
|
+
await initStream(reader);
|
|
24562
|
+
}
|
|
24563
|
+
const { ZipReader: ZipReader2 } = await Promise.resolve().then(() => (init_zip_reader(), zip_reader_exports));
|
|
24564
|
+
const zipReader = new ZipReader2(reader);
|
|
24565
|
+
const entries = await zipReader.getEntries();
|
|
24566
|
+
await zipReader.close();
|
|
24567
|
+
await initStream(zipWriter.writer);
|
|
24568
|
+
const { directoryOffset } = zipReader;
|
|
24569
|
+
entries.forEach(({ filename }) => {
|
|
24570
|
+
if (filenames.has(filename)) {
|
|
24571
|
+
throw new Error(ERR_DUPLICATED_NAME);
|
|
24572
|
+
}
|
|
24573
|
+
filenames.add(filename);
|
|
24574
|
+
appendedFilenames.push(filename);
|
|
24575
|
+
});
|
|
24576
|
+
zipWriter.writerLocked = true;
|
|
24577
|
+
const { lockWriter } = zipWriter;
|
|
24578
|
+
zipWriter.lockWriter = new Promise((resolve2) => releaseLockWriter = () => {
|
|
24579
|
+
zipWriter.writerLocked = false;
|
|
24580
|
+
resolve2();
|
|
24581
|
+
});
|
|
24582
|
+
await lockWriter;
|
|
24583
|
+
if (zipWriter.addSplitZipSignature) {
|
|
24584
|
+
delete zipWriter.addSplitZipSignature;
|
|
24585
|
+
if (!await startsWithSplitZipSignature2(reader)) {
|
|
24586
|
+
await writeData(zipWriter.writer, getSplitZipSignatureArray());
|
|
24587
|
+
zipWriter.offset += SPLIT_ZIP_FILE_SIGNATURE_LENGTH;
|
|
24588
|
+
}
|
|
24539
24589
|
}
|
|
24590
|
+
const entryPositions = await copyZipData(zipWriter, reader, entries, directoryOffset);
|
|
24591
|
+
entries.forEach((entry) => {
|
|
24592
|
+
const {
|
|
24593
|
+
version: version2,
|
|
24594
|
+
rawLastModDate,
|
|
24595
|
+
rawFilename,
|
|
24596
|
+
bitFlag,
|
|
24597
|
+
encrypted,
|
|
24598
|
+
uncompressedSize,
|
|
24599
|
+
compressedSize,
|
|
24600
|
+
extraFieldZip64
|
|
24601
|
+
} = entry;
|
|
24602
|
+
let {
|
|
24603
|
+
compressionMethod,
|
|
24604
|
+
rawExtraField
|
|
24605
|
+
} = entry;
|
|
24606
|
+
const { level, languageEncodingFlag, dataDescriptor } = bitFlag;
|
|
24607
|
+
rawExtraField = removeExtraFieldZip64(rawExtraField || EMPTY_UINT8_ARRAY);
|
|
24608
|
+
if (entry.extraFieldAES) {
|
|
24609
|
+
compressionMethod = COMPRESSION_METHOD_AES;
|
|
24610
|
+
}
|
|
24611
|
+
const extraFieldLength = getLength(rawExtraField);
|
|
24612
|
+
const zip64UncompressedSize = Boolean(extraFieldZip64) && extraFieldZip64.uncompressedSize !== UNDEFINED_VALUE;
|
|
24613
|
+
const zip64CompressedSize = Boolean(extraFieldZip64) && extraFieldZip64.compressedSize !== UNDEFINED_VALUE;
|
|
24614
|
+
const bitFlagValue = getBitFlag(level, languageEncodingFlag, dataDescriptor, encrypted, compressionMethod) & ~BITFLAG_LEVEL | level << 1;
|
|
24615
|
+
const {
|
|
24616
|
+
headerArray,
|
|
24617
|
+
headerView
|
|
24618
|
+
} = getHeaderArrayData({
|
|
24619
|
+
version: version2,
|
|
24620
|
+
bitFlag: bitFlagValue,
|
|
24621
|
+
compressionMethod,
|
|
24622
|
+
uncompressedSize,
|
|
24623
|
+
compressedSize,
|
|
24624
|
+
rawLastModDate,
|
|
24625
|
+
rawFilename,
|
|
24626
|
+
zip64CompressedSize,
|
|
24627
|
+
zip64UncompressedSize,
|
|
24628
|
+
extraFieldLength
|
|
24629
|
+
});
|
|
24630
|
+
const { crc32 } = entry;
|
|
24631
|
+
if (crc32 !== UNDEFINED_VALUE) {
|
|
24632
|
+
setUint32(headerView, HEADER_OFFSET_SIGNATURE, crc32);
|
|
24633
|
+
}
|
|
24634
|
+
const { offset, diskNumberStart } = entryPositions.get(entry);
|
|
24635
|
+
Object.assign(entry, {
|
|
24636
|
+
zip64UncompressedSize,
|
|
24637
|
+
zip64CompressedSize,
|
|
24638
|
+
offset,
|
|
24639
|
+
diskNumberStart,
|
|
24640
|
+
zip64DiskNumberStart: false,
|
|
24641
|
+
rawExtraFieldZip64: EMPTY_UINT8_ARRAY,
|
|
24642
|
+
rawExtraFieldAES: EMPTY_UINT8_ARRAY,
|
|
24643
|
+
rawExtraFieldExtendedTimestamp: EMPTY_UINT8_ARRAY,
|
|
24644
|
+
rawExtraFieldNTFS: EMPTY_UINT8_ARRAY,
|
|
24645
|
+
rawExtraFieldUnix: EMPTY_UINT8_ARRAY,
|
|
24646
|
+
rawExtraField,
|
|
24647
|
+
rawCentralExtraField: EMPTY_UINT8_ARRAY,
|
|
24648
|
+
extendedTimestamp: false,
|
|
24649
|
+
headerArray,
|
|
24650
|
+
headerView
|
|
24651
|
+
});
|
|
24652
|
+
fileEntries.set(entry.filename, entry);
|
|
24653
|
+
});
|
|
24654
|
+
} catch (error) {
|
|
24655
|
+
appendedFilenames.forEach((filename) => filenames.delete(filename));
|
|
24540
24656
|
throw error;
|
|
24541
24657
|
} finally {
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
if (
|
|
24545
|
-
|
|
24546
|
-
} else {
|
|
24547
|
-
workers--;
|
|
24658
|
+
resolveAppendZip();
|
|
24659
|
+
pendingAddFileCalls.delete(promiseAppendZip);
|
|
24660
|
+
if (releaseLockWriter) {
|
|
24661
|
+
releaseLockWriter();
|
|
24548
24662
|
}
|
|
24549
24663
|
}
|
|
24550
24664
|
}
|
|
24665
|
+
add(name = "", reader, options = {}) {
|
|
24666
|
+
const zipWriter = this;
|
|
24667
|
+
const { pendingAddFileCalls } = zipWriter;
|
|
24668
|
+
const promiseAddFile = addFileEntry(zipWriter, name, reader, options);
|
|
24669
|
+
pendingAddFileCalls.add(promiseAddFile);
|
|
24670
|
+
const deletePendingAddFileCall = () => pendingAddFileCalls.delete(promiseAddFile);
|
|
24671
|
+
Promise.prototype.then.call(promiseAddFile, deletePendingAddFileCall, deletePendingAddFileCall);
|
|
24672
|
+
return watchPromiseError(zipWriter, promiseAddFile);
|
|
24673
|
+
}
|
|
24551
24674
|
remove(entry) {
|
|
24552
24675
|
const { filenames, fileEntries } = this;
|
|
24553
24676
|
if (typeof entry == STRING_TYPE) {
|
|
@@ -24576,6 +24699,18 @@ var ZipWriter = class {
|
|
|
24576
24699
|
while (pendingAddFileCalls.size) {
|
|
24577
24700
|
await Promise.allSettled(Array.from(pendingAddFileCalls));
|
|
24578
24701
|
}
|
|
24702
|
+
await Promise.allSettled(zipWriter.pendingErrors.map((watcher) => watcher.recorded));
|
|
24703
|
+
const unobservedWatchers = zipWriter.pendingErrors.filter((watcher) => watcher.error && !watcher.observed);
|
|
24704
|
+
if (unobservedWatchers.length) {
|
|
24705
|
+
const unobservedErrors = unobservedWatchers.map((watcher) => watcher.error);
|
|
24706
|
+
unobservedWatchers.forEach((watcher) => watcher.observed = true);
|
|
24707
|
+
const [error] = unobservedErrors;
|
|
24708
|
+
try {
|
|
24709
|
+
error.entryErrors = unobservedErrors;
|
|
24710
|
+
} catch {
|
|
24711
|
+
}
|
|
24712
|
+
throw error;
|
|
24713
|
+
}
|
|
24579
24714
|
await closeFile(zipWriter, comment, options);
|
|
24580
24715
|
const preventClose = !ownsWritable(writer) && getOptionValue2(zipWriter, options, OPTION_PREVENT_CLOSE);
|
|
24581
24716
|
if (!preventClose) {
|
|
@@ -24584,6 +24719,57 @@ var ZipWriter = class {
|
|
|
24584
24719
|
return writer.getData ? writer.getData() : writable;
|
|
24585
24720
|
}
|
|
24586
24721
|
};
|
|
24722
|
+
var WatchedPromise = class extends Promise {
|
|
24723
|
+
then(onFulfilled, onRejected) {
|
|
24724
|
+
const { watcher } = this;
|
|
24725
|
+
if (watcher) {
|
|
24726
|
+
watcher.observed = true;
|
|
24727
|
+
}
|
|
24728
|
+
return super.then(onFulfilled, onRejected);
|
|
24729
|
+
}
|
|
24730
|
+
};
|
|
24731
|
+
function watchPromiseError(zipWriter, promise) {
|
|
24732
|
+
const watchedPromise = new WatchedPromise((resolve2, reject) => Promise.prototype.then.call(promise, resolve2, reject));
|
|
24733
|
+
const watcher = {};
|
|
24734
|
+
watchedPromise.watcher = watcher;
|
|
24735
|
+
watcher.recorded = Promise.prototype.then.call(watchedPromise, UNDEFINED_VALUE, (error) => watcher.error = error);
|
|
24736
|
+
zipWriter.pendingErrors.push(watcher);
|
|
24737
|
+
return watchedPromise;
|
|
24738
|
+
}
|
|
24739
|
+
async function prependZipEntries(zipWriter, reader) {
|
|
24740
|
+
if (zipWriter.filenames.size) {
|
|
24741
|
+
throw new Error(ERR_ZIP_NOT_EMPTY);
|
|
24742
|
+
}
|
|
24743
|
+
await zipWriter.appendZipEntries(reader);
|
|
24744
|
+
}
|
|
24745
|
+
async function addFileEntry(zipWriter, name, reader, options) {
|
|
24746
|
+
options = Object.assign({}, options);
|
|
24747
|
+
if (getOptionValue2(zipWriter, options, PROPERTY_NAME_DIRECTORY) && !name.endsWith(DIRECTORY_SIGNATURE)) {
|
|
24748
|
+
name += DIRECTORY_SIGNATURE;
|
|
24749
|
+
}
|
|
24750
|
+
if (zipWriter.filenames.has(name)) {
|
|
24751
|
+
throw new Error(ERR_DUPLICATED_NAME);
|
|
24752
|
+
}
|
|
24753
|
+
zipWriter.filenames.add(name);
|
|
24754
|
+
if (workers < getConfiguration().maxWorkers) {
|
|
24755
|
+
workers++;
|
|
24756
|
+
} else {
|
|
24757
|
+
await new Promise((resolve2) => pendingEntries.push(resolve2));
|
|
24758
|
+
}
|
|
24759
|
+
try {
|
|
24760
|
+
return await addFile(zipWriter, name, reader, options);
|
|
24761
|
+
} catch (error) {
|
|
24762
|
+
zipWriter.filenames.delete(name);
|
|
24763
|
+
throw error;
|
|
24764
|
+
} finally {
|
|
24765
|
+
const pendingEntry = pendingEntries.shift();
|
|
24766
|
+
if (pendingEntry) {
|
|
24767
|
+
pendingEntry();
|
|
24768
|
+
} else {
|
|
24769
|
+
workers--;
|
|
24770
|
+
}
|
|
24771
|
+
}
|
|
24772
|
+
}
|
|
24587
24773
|
async function addFile(zipWriter, name, reader, options) {
|
|
24588
24774
|
const attributesInfo = resolveAttributes(zipWriter, name, options);
|
|
24589
24775
|
({ name } = attributesInfo);
|
|
@@ -24626,7 +24812,6 @@ async function addFile(zipWriter, name, reader, options) {
|
|
|
24626
24812
|
return new Entry(fileEntry);
|
|
24627
24813
|
}
|
|
24628
24814
|
function resolveAttributes(zipWriter, name, options) {
|
|
24629
|
-
name = name.trim();
|
|
24630
24815
|
let msDosCompatible = getOptionValue2(zipWriter, options, PROPERTY_NAME_MS_DOS_COMPATIBLE);
|
|
24631
24816
|
let versionMadeBy = getOptionValue2(zipWriter, options, PROPERTY_NAME_VERSION_MADE_BY, msDosCompatible ? VERSION_MADE_BY_MSDOS : VERSION_MADE_BY_UNIX);
|
|
24632
24817
|
const executable = getOptionValue2(zipWriter, options, PROPERTY_NAME_EXECUTABLE);
|
|
@@ -24767,11 +24952,12 @@ function resolveMetadata(zipWriter, name, options) {
|
|
|
24767
24952
|
if (getLength(rawComment) > MAX_16_BITS) {
|
|
24768
24953
|
throw new Error(ERR_INVALID_ENTRY_COMMENT);
|
|
24769
24954
|
}
|
|
24770
|
-
const version2 = getOptionValue2(zipWriter, options, PROPERTY_NAME_VERSION
|
|
24771
|
-
if (version2 > MAX_16_BITS) {
|
|
24955
|
+
const version2 = getOptionValue2(zipWriter, options, PROPERTY_NAME_VERSION);
|
|
24956
|
+
if (version2 !== UNDEFINED_VALUE && version2 > MAX_16_BITS) {
|
|
24772
24957
|
throw new Error(ERR_INVALID_VERSION);
|
|
24773
24958
|
}
|
|
24774
24959
|
const lastModDate = getDateOptionValue(zipWriter, options, PROPERTY_NAME_LAST_MODIFICATION_DATE, /* @__PURE__ */ new Date());
|
|
24960
|
+
const rawLastModDate = getOptionValue2(zipWriter, options, PROPERTY_NAME_RAW_LAST_MODIFICATION_DATE);
|
|
24775
24961
|
const lastAccessDate = getDateOptionValue(zipWriter, options, PROPERTY_NAME_LAST_ACCESS_DATE);
|
|
24776
24962
|
const creationDate = getDateOptionValue(zipWriter, options, PROPERTY_NAME_CREATION_DATE);
|
|
24777
24963
|
const internalFileAttributes = getAliasedOptionValue(zipWriter, options, PROPERTY_NAME_INTERNAL_FILE_ATTRIBUTES, PROPERTY_NAME_DEPRECATED_INTERNAL_FILE_ATTRIBUTES, 0);
|
|
@@ -24814,7 +25000,7 @@ function resolveMetadata(zipWriter, name, options) {
|
|
|
24814
25000
|
if (bufferedWrite && dataDescriptor === UNDEFINED_VALUE) {
|
|
24815
25001
|
dataDescriptor = false;
|
|
24816
25002
|
}
|
|
24817
|
-
if (dataDescriptor === UNDEFINED_VALUE || zipCrypto) {
|
|
25003
|
+
if (dataDescriptor === UNDEFINED_VALUE || zipCrypto && !passThrough) {
|
|
24818
25004
|
dataDescriptor = true;
|
|
24819
25005
|
}
|
|
24820
25006
|
if (level !== UNDEFINED_VALUE && level != 6) {
|
|
@@ -24826,6 +25012,7 @@ function resolveMetadata(zipWriter, name, options) {
|
|
|
24826
25012
|
}
|
|
24827
25013
|
const rawExtraField = serializeExtraField(options[PROPERTY_NAME_EXTRA_FIELD]);
|
|
24828
25014
|
const rawLocalExtraField = serializeExtraField(options[OPTION_LOCAL_EXTRA_FIELD]);
|
|
25015
|
+
const rawCentralExtraField = serializeExtraField(options[OPTION_CENTRAL_EXTRA_FIELD]);
|
|
24829
25016
|
return {
|
|
24830
25017
|
comment,
|
|
24831
25018
|
resolvedOptions: {
|
|
@@ -24833,6 +25020,7 @@ function resolveMetadata(zipWriter, name, options) {
|
|
|
24833
25020
|
rawComment,
|
|
24834
25021
|
version: version2,
|
|
24835
25022
|
lastModDate,
|
|
25023
|
+
rawLastModDate,
|
|
24836
25024
|
lastAccessDate,
|
|
24837
25025
|
creationDate,
|
|
24838
25026
|
internalFileAttributes,
|
|
@@ -24860,7 +25048,8 @@ function resolveMetadata(zipWriter, name, options) {
|
|
|
24860
25048
|
dataDescriptor,
|
|
24861
25049
|
zip64,
|
|
24862
25050
|
rawExtraField,
|
|
24863
|
-
rawLocalExtraField
|
|
25051
|
+
rawLocalExtraField,
|
|
25052
|
+
rawCentralExtraField
|
|
24864
25053
|
}
|
|
24865
25054
|
};
|
|
24866
25055
|
}
|
|
@@ -25025,10 +25214,8 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
25025
25214
|
}
|
|
25026
25215
|
await initStream(fileWriter);
|
|
25027
25216
|
const diskOffset = getDiskOffset2(writer);
|
|
25028
|
-
if (zipWriter.addSplitZipSignature) {
|
|
25029
|
-
|
|
25030
|
-
await writeData(writer, getSplitZipSignatureArray());
|
|
25031
|
-
zipWriter.offset += SPLIT_ZIP_FILE_SIGNATURE_LENGTH;
|
|
25217
|
+
if (zipWriter.addSplitZipSignature && !bufferedWrite) {
|
|
25218
|
+
await writeSplitZipSignature(zipWriter, writer);
|
|
25032
25219
|
}
|
|
25033
25220
|
if (usdz && !bufferedWrite) {
|
|
25034
25221
|
appendExtraFieldUSDZ(entryInfo, zipWriter.offset - diskOffset);
|
|
@@ -25055,6 +25242,9 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
25055
25242
|
if (bufferedWrite) {
|
|
25056
25243
|
await Promise.all([fileWriter.writable.getWriter().close(), lockPreviousFileEntry]);
|
|
25057
25244
|
await requestLockWriter();
|
|
25245
|
+
if (zipWriter.addSplitZipSignature) {
|
|
25246
|
+
await writeSplitZipSignature(zipWriter, writer);
|
|
25247
|
+
}
|
|
25058
25248
|
writingBufferedEntryData = true;
|
|
25059
25249
|
writerSizeBeforeEntry = writer.size;
|
|
25060
25250
|
await skipDiskIfNeeded();
|
|
@@ -25168,6 +25358,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lockFileEntry
|
|
|
25168
25358
|
versionMadeBy,
|
|
25169
25359
|
rawComment,
|
|
25170
25360
|
rawExtraField,
|
|
25361
|
+
rawCentralExtraField,
|
|
25171
25362
|
useWebWorkers,
|
|
25172
25363
|
transferStreams,
|
|
25173
25364
|
onstart,
|
|
@@ -25211,6 +25402,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lockFileEntry
|
|
|
25211
25402
|
rawExtraFieldUnix,
|
|
25212
25403
|
rawExtraFieldAES,
|
|
25213
25404
|
rawExtraField,
|
|
25405
|
+
rawCentralExtraField,
|
|
25214
25406
|
extendedTimestamp,
|
|
25215
25407
|
msDosCompatible,
|
|
25216
25408
|
internalFileAttributes,
|
|
@@ -25242,6 +25434,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lockFileEntry
|
|
|
25242
25434
|
const workerOptions = {
|
|
25243
25435
|
options: {
|
|
25244
25436
|
codecType: CODEC_DEFLATE,
|
|
25437
|
+
inputSize: size,
|
|
25245
25438
|
level,
|
|
25246
25439
|
rawPassword,
|
|
25247
25440
|
password,
|
|
@@ -25317,6 +25510,7 @@ function getHeaderInfo(options) {
|
|
|
25317
25510
|
const {
|
|
25318
25511
|
rawFilename,
|
|
25319
25512
|
lastModDate,
|
|
25513
|
+
rawLastModDate: rawLastModDateOption,
|
|
25320
25514
|
lastAccessDate,
|
|
25321
25515
|
creationDate,
|
|
25322
25516
|
level,
|
|
@@ -25448,6 +25642,9 @@ function getHeaderInfo(options) {
|
|
|
25448
25642
|
if (compressionMethod === UNDEFINED_VALUE) {
|
|
25449
25643
|
compressionMethod = compressed ? COMPRESSION_METHOD_DEFLATE : COMPRESSION_METHOD_STORE;
|
|
25450
25644
|
}
|
|
25645
|
+
if (version2 === UNDEFINED_VALUE) {
|
|
25646
|
+
version2 = compressionMethod == COMPRESSION_METHOD_STORE && !directory && !encrypted ? VERSION_STORE : VERSION_DEFLATE;
|
|
25647
|
+
}
|
|
25451
25648
|
const { codecVersionNeeded } = options;
|
|
25452
25649
|
if (compressed && codecVersionNeeded !== UNDEFINED_VALUE) {
|
|
25453
25650
|
version2 = version2 > codecVersionNeeded ? version2 : codecVersionNeeded;
|
|
@@ -25480,6 +25677,7 @@ function getHeaderInfo(options) {
|
|
|
25480
25677
|
compressionMethod,
|
|
25481
25678
|
uncompressedSize,
|
|
25482
25679
|
lastModDate: dosLastModDate < MIN_DATE ? MIN_DATE : dosLastModDate > MAX_DATE ? MAX_DATE : dosLastModDate,
|
|
25680
|
+
rawLastModDate: rawLastModDateOption,
|
|
25483
25681
|
rawFilename,
|
|
25484
25682
|
zip64CompressedSize,
|
|
25485
25683
|
zip64UncompressedSize,
|
|
@@ -25678,9 +25876,9 @@ function updateLocalHeader({
|
|
|
25678
25876
|
}
|
|
25679
25877
|
async function closeFile(zipWriter, comment, options) {
|
|
25680
25878
|
const directoryDataLength = createDirectoryRecords(zipWriter.fileEntries);
|
|
25681
|
-
const { directoryStart, directoryArray } = await writeDirectoryRecords(zipWriter, directoryDataLength, options);
|
|
25879
|
+
const { directoryStart, directoryEnd, directoryArray } = await writeDirectoryRecords(zipWriter, directoryDataLength, options);
|
|
25682
25880
|
const signatureLength = await writeDigitalSignatureRecord(zipWriter, directoryArray, options);
|
|
25683
|
-
await writeEndOfDirectoryRecord(zipWriter, comment, options, { directoryStart, directoryDataLength, signatureLength });
|
|
25881
|
+
await writeEndOfDirectoryRecord(zipWriter, comment, options, { directoryStart, directoryEnd, directoryDataLength, signatureLength });
|
|
25684
25882
|
}
|
|
25685
25883
|
function createDirectoryRecords(files) {
|
|
25686
25884
|
let directoryDataLength = 0;
|
|
@@ -25692,6 +25890,7 @@ function createDirectoryRecords(files) {
|
|
|
25692
25890
|
rawExtraFieldNTFS,
|
|
25693
25891
|
rawExtraFieldUnix,
|
|
25694
25892
|
rawExtraField,
|
|
25893
|
+
rawCentralExtraField,
|
|
25695
25894
|
extendedTimestamp,
|
|
25696
25895
|
extraFieldExtendedTimestampFlag,
|
|
25697
25896
|
lastModDate,
|
|
@@ -25746,7 +25945,8 @@ function createDirectoryRecords(files) {
|
|
|
25746
25945
|
rawExtraFieldNTFS,
|
|
25747
25946
|
rawExtraFieldUnix,
|
|
25748
25947
|
rawExtraFieldTimestamp,
|
|
25749
|
-
rawExtraField
|
|
25948
|
+
rawExtraField,
|
|
25949
|
+
rawCentralExtraField
|
|
25750
25950
|
);
|
|
25751
25951
|
if (extraFieldLength > MAX_16_BITS) {
|
|
25752
25952
|
throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
|
|
@@ -25763,6 +25963,7 @@ async function writeDirectoryRecords(zipWriter, directoryDataLength, options) {
|
|
|
25763
25963
|
let directoryDiskOffset = 0;
|
|
25764
25964
|
let directoryStartDiskNumber = getDiskNumber(writer);
|
|
25765
25965
|
let directoryStartDiskOffset = getDiskOffset2(writer);
|
|
25966
|
+
let directoryEndDiskEntriesLength = 0;
|
|
25766
25967
|
for (const [indexFileEntry, fileEntry] of Array.from(fileEntries.values()).entries()) {
|
|
25767
25968
|
const {
|
|
25768
25969
|
offset: fileEntryOffset,
|
|
@@ -25773,6 +25974,7 @@ async function writeDirectoryRecords(zipWriter, directoryDataLength, options) {
|
|
|
25773
25974
|
rawExtraFieldNTFS,
|
|
25774
25975
|
rawExtraFieldUnix,
|
|
25775
25976
|
rawExtraField,
|
|
25977
|
+
rawCentralExtraField,
|
|
25776
25978
|
rawComment,
|
|
25777
25979
|
versionMadeBy,
|
|
25778
25980
|
headerArray,
|
|
@@ -25787,11 +25989,12 @@ async function writeDirectoryRecords(zipWriter, directoryDataLength, options) {
|
|
|
25787
25989
|
uncompressedSize,
|
|
25788
25990
|
compressedSize
|
|
25789
25991
|
} = fileEntry;
|
|
25790
|
-
const extraFieldLength = getLength(rawExtraFieldZip64, rawExtraFieldAES, rawExtraFieldExtendedTimestamp, rawExtraFieldNTFS, rawExtraFieldUnix, rawExtraField);
|
|
25992
|
+
const extraFieldLength = getLength(rawExtraFieldZip64, rawExtraFieldAES, rawExtraFieldExtendedTimestamp, rawExtraFieldNTFS, rawExtraFieldUnix, rawExtraField, rawCentralExtraField);
|
|
25791
25993
|
const directoryRecordLength = CENTRAL_FILE_HEADER_LENGTH + getLength(rawFilename, rawComment) + extraFieldLength;
|
|
25792
25994
|
if (exceedsAvailableSize(writer, offset + directoryRecordLength - directoryDiskOffset)) {
|
|
25793
25995
|
await writeData(writer, directoryArray.slice(directoryDiskOffset, offset));
|
|
25794
25996
|
directoryDiskOffset = offset;
|
|
25997
|
+
directoryEndDiskEntriesLength = 0;
|
|
25795
25998
|
await writer.closeDisk();
|
|
25796
25999
|
}
|
|
25797
26000
|
if (indexFileEntry == 0) {
|
|
@@ -25824,9 +26027,11 @@ async function writeDirectoryRecords(zipWriter, directoryDataLength, options) {
|
|
|
25824
26027
|
directoryRecord.writeBytes(rawExtraFieldNTFS);
|
|
25825
26028
|
directoryRecord.writeBytes(rawExtraFieldUnix);
|
|
25826
26029
|
directoryRecord.writeBytes(rawExtraField);
|
|
26030
|
+
directoryRecord.writeBytes(rawCentralExtraField);
|
|
25827
26031
|
directoryRecord.writeBytes(rawComment);
|
|
25828
26032
|
arraySet(directoryArray, directoryRecord.array, offset);
|
|
25829
26033
|
offset += directoryRecordLength;
|
|
26034
|
+
directoryEndDiskEntriesLength++;
|
|
25830
26035
|
if (options.onprogress) {
|
|
25831
26036
|
try {
|
|
25832
26037
|
await options.onprogress(indexFileEntry + 1, fileEntries.size, new Entry(fileEntry));
|
|
@@ -25837,6 +26042,7 @@ async function writeDirectoryRecords(zipWriter, directoryDataLength, options) {
|
|
|
25837
26042
|
await writeData(writer, directoryDiskOffset ? directoryArray.slice(directoryDiskOffset) : directoryArray);
|
|
25838
26043
|
return {
|
|
25839
26044
|
directoryStart: { diskNumber: directoryStartDiskNumber, diskOffset: directoryStartDiskOffset },
|
|
26045
|
+
directoryEnd: { diskNumber: getDiskNumber(writer), entriesLength: directoryEndDiskEntriesLength },
|
|
25840
26046
|
directoryArray
|
|
25841
26047
|
};
|
|
25842
26048
|
}
|
|
@@ -25863,16 +26069,20 @@ async function writeDigitalSignatureRecord(zipWriter, directoryArray, options) {
|
|
|
25863
26069
|
}
|
|
25864
26070
|
async function writeEndOfDirectoryRecord(zipWriter, comment, options, cdInfo) {
|
|
25865
26071
|
const { writer } = zipWriter;
|
|
25866
|
-
const { directoryStart, signatureLength } = cdInfo;
|
|
26072
|
+
const { directoryStart, directoryEnd, signatureLength } = cdInfo;
|
|
25867
26073
|
let { directoryDataLength } = cdInfo;
|
|
25868
26074
|
let fileEntriesLength = zipWriter.fileEntries.size;
|
|
25869
26075
|
let diskNumber = directoryStart.diskNumber;
|
|
25870
26076
|
let directoryOffset = getSegmentOffset(zipWriter, directoryStart);
|
|
26077
|
+
const commentLength = getLength(comment);
|
|
26078
|
+
if (commentLength > MAX_16_BITS) {
|
|
26079
|
+
throw new Error(ERR_INVALID_COMMENT);
|
|
26080
|
+
}
|
|
26081
|
+
let zip64 = getOptionValue2(zipWriter, options, PROPERTY_NAME_ZIP64);
|
|
25871
26082
|
let lastDiskNumber = getDiskNumber(writer);
|
|
25872
|
-
if (exceedsAvailableSize(writer, END_OF_CENTRAL_DIR_LENGTH)) {
|
|
26083
|
+
if (exceedsAvailableSize(writer, (zip64 ? ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH : END_OF_CENTRAL_DIR_LENGTH) + commentLength)) {
|
|
25873
26084
|
lastDiskNumber++;
|
|
25874
26085
|
}
|
|
25875
|
-
let zip64 = getOptionValue2(zipWriter, options, PROPERTY_NAME_ZIP64);
|
|
25876
26086
|
if (directoryOffset >= MAX_32_BITS || directoryDataLength >= MAX_32_BITS || fileEntriesLength >= MAX_16_BITS || lastDiskNumber >= MAX_16_BITS) {
|
|
25877
26087
|
if (zip64 === false) {
|
|
25878
26088
|
throw new Error(ERR_UNSUPPORTED_FORMAT);
|
|
@@ -25880,15 +26090,12 @@ async function writeEndOfDirectoryRecord(zipWriter, comment, options, cdInfo) {
|
|
|
25880
26090
|
zip64 = true;
|
|
25881
26091
|
}
|
|
25882
26092
|
}
|
|
25883
|
-
const commentLength = getLength(comment);
|
|
25884
|
-
if (commentLength > MAX_16_BITS) {
|
|
25885
|
-
throw new Error(ERR_INVALID_COMMENT);
|
|
25886
|
-
}
|
|
25887
26093
|
const endOfdirectoryRecord = createRecordWriter(zip64 ? ZIP64_END_OF_CENTRAL_DIR_TOTAL_LENGTH : END_OF_CENTRAL_DIR_LENGTH);
|
|
25888
26094
|
if (exceedsAvailableSize(writer, getLength(endOfdirectoryRecord.array) + commentLength)) {
|
|
25889
26095
|
await writer.closeDisk();
|
|
25890
26096
|
}
|
|
25891
26097
|
lastDiskNumber = getDiskNumber(writer);
|
|
26098
|
+
let diskFileEntriesLength = lastDiskNumber == directoryEnd.diskNumber ? directoryEnd.entriesLength : 0;
|
|
25892
26099
|
if (zip64) {
|
|
25893
26100
|
endOfdirectoryRecord.writeUint32(ZIP64_END_OF_CENTRAL_DIR_SIGNATURE);
|
|
25894
26101
|
endOfdirectoryRecord.writeUint64(44);
|
|
@@ -25896,7 +26103,7 @@ async function writeEndOfDirectoryRecord(zipWriter, comment, options, cdInfo) {
|
|
|
25896
26103
|
endOfdirectoryRecord.writeUint16(45);
|
|
25897
26104
|
endOfdirectoryRecord.writeUint32(lastDiskNumber);
|
|
25898
26105
|
endOfdirectoryRecord.writeUint32(diskNumber);
|
|
25899
|
-
endOfdirectoryRecord.writeUint64(
|
|
26106
|
+
endOfdirectoryRecord.writeUint64(diskFileEntriesLength);
|
|
25900
26107
|
endOfdirectoryRecord.writeUint64(fileEntriesLength);
|
|
25901
26108
|
endOfdirectoryRecord.writeUint64(directoryDataLength);
|
|
25902
26109
|
endOfdirectoryRecord.writeUint64(directoryOffset);
|
|
@@ -25909,6 +26116,7 @@ async function writeEndOfDirectoryRecord(zipWriter, comment, options, cdInfo) {
|
|
|
25909
26116
|
lastDiskNumber = MAX_16_BITS;
|
|
25910
26117
|
diskNumber = MAX_16_BITS;
|
|
25911
26118
|
}
|
|
26119
|
+
diskFileEntriesLength = MAX_16_BITS;
|
|
25912
26120
|
fileEntriesLength = MAX_16_BITS;
|
|
25913
26121
|
directoryOffset = MAX_32_BITS;
|
|
25914
26122
|
directoryDataLength = MAX_32_BITS;
|
|
@@ -25916,7 +26124,7 @@ async function writeEndOfDirectoryRecord(zipWriter, comment, options, cdInfo) {
|
|
|
25916
26124
|
endOfdirectoryRecord.writeUint32(END_OF_CENTRAL_DIR_SIGNATURE);
|
|
25917
26125
|
endOfdirectoryRecord.writeUint16(lastDiskNumber);
|
|
25918
26126
|
endOfdirectoryRecord.writeUint16(diskNumber);
|
|
25919
|
-
endOfdirectoryRecord.writeUint16(
|
|
26127
|
+
endOfdirectoryRecord.writeUint16(diskFileEntriesLength);
|
|
25920
26128
|
endOfdirectoryRecord.writeUint16(fileEntriesLength);
|
|
25921
26129
|
endOfdirectoryRecord.writeUint32(directoryDataLength);
|
|
25922
26130
|
endOfdirectoryRecord.writeUint32(directoryOffset);
|
|
@@ -26021,9 +26229,20 @@ async function copyZipData(zipWriter, reader, entries, directoryOffset) {
|
|
|
26021
26229
|
async function copyData(zipWriter, reader, offset, size) {
|
|
26022
26230
|
if (size > 0) {
|
|
26023
26231
|
const { writer } = zipWriter;
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26232
|
+
let copiedLength = 0;
|
|
26233
|
+
try {
|
|
26234
|
+
await flushBufferedData(createReadable(reader, { offset, size }), writer, UNDEFINED_VALUE, (chunkLength) => copiedLength += chunkLength);
|
|
26235
|
+
} catch (error) {
|
|
26236
|
+
zipWriter.hasCorruptedEntries = true;
|
|
26237
|
+
try {
|
|
26238
|
+
error.corruptedEntry = true;
|
|
26239
|
+
} catch {
|
|
26240
|
+
}
|
|
26241
|
+
throw error;
|
|
26242
|
+
} finally {
|
|
26243
|
+
writer.size += copiedLength;
|
|
26244
|
+
zipWriter.offset += copiedLength;
|
|
26245
|
+
}
|
|
26027
26246
|
}
|
|
26028
26247
|
}
|
|
26029
26248
|
async function getLocalHeaderLength(reader, offset) {
|
|
@@ -26042,6 +26261,11 @@ function getSplitZipSignatureArray() {
|
|
|
26042
26261
|
setUint32(getDataView(signatureArray), 0, SPLIT_ZIP_FILE_SIGNATURE);
|
|
26043
26262
|
return signatureArray;
|
|
26044
26263
|
}
|
|
26264
|
+
async function writeSplitZipSignature(zipWriter, writer) {
|
|
26265
|
+
delete zipWriter.addSplitZipSignature;
|
|
26266
|
+
await writeData(writer, getSplitZipSignatureArray());
|
|
26267
|
+
zipWriter.offset += SPLIT_ZIP_FILE_SIGNATURE_LENGTH;
|
|
26268
|
+
}
|
|
26045
26269
|
async function writeData(writer, array) {
|
|
26046
26270
|
const { writable } = writer;
|
|
26047
26271
|
const streamWriter = writable.getWriter();
|
|
@@ -26219,6 +26443,12 @@ init_options();
|
|
|
26219
26443
|
init_configuration();
|
|
26220
26444
|
init_codec_registry();
|
|
26221
26445
|
|
|
26446
|
+
// ../../node_modules/@zip.js/zip.js/lib/core/compression-methods.js
|
|
26447
|
+
init_constants();
|
|
26448
|
+
init_configuration();
|
|
26449
|
+
init_codec_registry();
|
|
26450
|
+
init_zip_entry_stream();
|
|
26451
|
+
|
|
26222
26452
|
// ../../node_modules/@zip.js/zip.js/lib/core/util/opfs-temp-stream.js
|
|
26223
26453
|
var DEFAULT_THRESHOLD = 1024 * 1024;
|
|
26224
26454
|
|
|
@@ -26243,126 +26473,126 @@ init_configuration();
|
|
|
26243
26473
|
// ../../node_modules/@zip.js/zip.js/lib/core/zlib-streams-inline.js
|
|
26244
26474
|
var n2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258];
|
|
26245
26475
|
var c = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];
|
|
26246
|
-
var
|
|
26247
|
-
var
|
|
26248
|
-
var
|
|
26249
|
-
var
|
|
26250
|
-
|
|
26251
|
-
var
|
|
26476
|
+
var f2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
|
|
26477
|
+
var s3 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
|
|
26478
|
+
var t2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
26479
|
+
var u2 = new Uint8Array(288);
|
|
26480
|
+
u2.fill(8, 0, 144), u2.fill(9, 144, 256), u2.fill(7, 256, 280), u2.fill(8, 280, 288);
|
|
26481
|
+
var z2 = new Uint8Array(30).fill(5);
|
|
26252
26482
|
function r(n3) {
|
|
26253
26483
|
const c2 = new Uint16Array(16);
|
|
26254
|
-
for (const
|
|
26484
|
+
for (const f4 of n3) c2[f4]++;
|
|
26255
26485
|
c2[0] = 0;
|
|
26256
|
-
const
|
|
26257
|
-
for (let n4 = 1; n4 <= 15; n4++)
|
|
26258
|
-
const
|
|
26259
|
-
for (let c3 = 0; c3 < n3.length; c3++) n3[c3] && (f3[
|
|
26260
|
-
return { l: c2, symbols:
|
|
26261
|
-
}
|
|
26262
|
-
var
|
|
26263
|
-
function
|
|
26264
|
-
let
|
|
26265
|
-
|
|
26486
|
+
const f3 = new Uint16Array(17);
|
|
26487
|
+
for (let n4 = 1; n4 <= 15; n4++) f3[n4 + 1] = f3[n4] + c2[n4];
|
|
26488
|
+
const s4 = new Uint16Array(n3.length);
|
|
26489
|
+
for (let c3 = 0; c3 < n3.length; c3++) n3[c3] && (s4[f3[n3[c3]]++] = c3);
|
|
26490
|
+
return { l: c2, symbols: s4 };
|
|
26491
|
+
}
|
|
26492
|
+
var e2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26493
|
+
function l(l2) {
|
|
26494
|
+
let U2;
|
|
26495
|
+
l2({ wasmURI: () => (U2 || (U2 = "data:application/wasm;base64," + function(n3) {
|
|
26266
26496
|
let c2 = "";
|
|
26267
|
-
const
|
|
26268
|
-
let
|
|
26269
|
-
for (;
|
|
26270
|
-
const
|
|
26271
|
-
c2 +=
|
|
26272
|
-
}
|
|
26273
|
-
const
|
|
26274
|
-
if (1 ===
|
|
26275
|
-
const
|
|
26276
|
-
c2 +=
|
|
26277
|
-
} else if (2 ===
|
|
26278
|
-
const
|
|
26279
|
-
c2 +=
|
|
26497
|
+
const f3 = n3.length;
|
|
26498
|
+
let s4 = 0;
|
|
26499
|
+
for (; s4 + 2 < f3; s4 += 3) {
|
|
26500
|
+
const f4 = n3[s4] << 16 | n3[s4 + 1] << 8 | n3[s4 + 2];
|
|
26501
|
+
c2 += e2[f4 >> 18 & 63] + e2[f4 >> 12 & 63] + e2[f4 >> 6 & 63] + e2[63 & f4];
|
|
26502
|
+
}
|
|
26503
|
+
const t3 = f3 - s4;
|
|
26504
|
+
if (1 === t3) {
|
|
26505
|
+
const f4 = n3[s4] << 16;
|
|
26506
|
+
c2 += e2[f4 >> 18 & 63] + e2[f4 >> 12 & 63] + "==";
|
|
26507
|
+
} else if (2 === t3) {
|
|
26508
|
+
const f4 = n3[s4] << 16 | n3[s4 + 1] << 8;
|
|
26509
|
+
c2 += e2[f4 >> 18 & 63] + e2[f4 >> 12 & 63] + e2[f4 >> 6 & 63] + "=";
|
|
26280
26510
|
}
|
|
26281
26511
|
return c2;
|
|
26282
|
-
}
|
|
26283
|
-
let
|
|
26284
|
-
for (; !
|
|
26285
|
-
|
|
26512
|
+
}(function(e3) {
|
|
26513
|
+
let l3 = 0, U3 = 0, o = 0, i = new Uint8Array(1024), a = 0, y = 0;
|
|
26514
|
+
for (; !y; ) {
|
|
26515
|
+
y = w2(1);
|
|
26286
26516
|
const n3 = w2(2);
|
|
26287
26517
|
if (0 == n3) V2();
|
|
26288
|
-
else if (1 == n3) j2(r(
|
|
26518
|
+
else if (1 == n3) j2(r(u2), r(z2));
|
|
26289
26519
|
else {
|
|
26290
|
-
if (2 != n3) throw Error("invalid deflate block type");
|
|
26520
|
+
if (2 != n3) throw new Error("invalid deflate block type");
|
|
26291
26521
|
j2(...m2());
|
|
26292
26522
|
}
|
|
26293
26523
|
}
|
|
26294
|
-
return
|
|
26524
|
+
return i.subarray(0, a);
|
|
26295
26525
|
function b2() {
|
|
26296
|
-
if (
|
|
26297
|
-
return
|
|
26526
|
+
if (l3 >= e3.length) throw new Error("unexpected end of deflate data");
|
|
26527
|
+
return e3[l3++];
|
|
26298
26528
|
}
|
|
26299
26529
|
function w2(n3) {
|
|
26300
|
-
for (; o < n3; )
|
|
26301
|
-
const c2 =
|
|
26302
|
-
return
|
|
26530
|
+
for (; o < n3; ) U3 |= b2() << o, o += 8;
|
|
26531
|
+
const c2 = U3 & (1 << n3) - 1;
|
|
26532
|
+
return U3 >>>= n3, o -= n3, c2;
|
|
26303
26533
|
}
|
|
26304
26534
|
function V2() {
|
|
26305
|
-
|
|
26535
|
+
U3 = 0, o = 0;
|
|
26306
26536
|
const n3 = b2() | b2() << 8;
|
|
26307
|
-
|
|
26308
|
-
for (let c2 = 0; c2 < n3; c2++) a
|
|
26537
|
+
l3 += 2, L2(a + n3);
|
|
26538
|
+
for (let c2 = 0; c2 < n3; c2++) i[a++] = b2();
|
|
26309
26539
|
}
|
|
26310
|
-
function j2(
|
|
26311
|
-
let
|
|
26312
|
-
for (; 256 !=
|
|
26313
|
-
if (
|
|
26540
|
+
function j2(t3, u3) {
|
|
26541
|
+
let z3 = q2(t3);
|
|
26542
|
+
for (; 256 != z3; ) {
|
|
26543
|
+
if (z3 < 256) L2(a + 1), i[a++] = z3;
|
|
26314
26544
|
else {
|
|
26315
|
-
const
|
|
26316
|
-
L2(
|
|
26317
|
-
const
|
|
26318
|
-
for (let n3 = 0; n3 < r2; n3++) a
|
|
26545
|
+
const t4 = z3 - 257, r2 = n2[t4] + w2(c[t4]), e4 = q2(u3), l4 = f2[e4] + w2(s3[e4]);
|
|
26546
|
+
L2(a + r2);
|
|
26547
|
+
const U4 = a - l4;
|
|
26548
|
+
for (let n3 = 0; n3 < r2; n3++) i[a++] = i[U4 + n3];
|
|
26319
26549
|
}
|
|
26320
|
-
|
|
26550
|
+
z3 = q2(t3);
|
|
26321
26551
|
}
|
|
26322
26552
|
}
|
|
26323
26553
|
function m2() {
|
|
26324
|
-
const n3 = w2(5) + 257, c2 = w2(5) + 1,
|
|
26325
|
-
for (let n4 = 0; n4 <
|
|
26326
|
-
const
|
|
26327
|
-
let
|
|
26328
|
-
for (;
|
|
26329
|
-
const n4 = q2(
|
|
26330
|
-
if (n4 < 16)
|
|
26554
|
+
const n3 = w2(5) + 257, c2 = w2(5) + 1, f3 = w2(4) + 4, s4 = new Uint8Array(19);
|
|
26555
|
+
for (let n4 = 0; n4 < f3; n4++) s4[t2[n4]] = w2(3);
|
|
26556
|
+
const u3 = r(s4), z3 = new Uint8Array(n3 + c2);
|
|
26557
|
+
let e4 = 0;
|
|
26558
|
+
for (; e4 < z3.length; ) {
|
|
26559
|
+
const n4 = q2(u3);
|
|
26560
|
+
if (n4 < 16) z3[e4++] = n4;
|
|
26331
26561
|
else if (16 == n4) {
|
|
26332
|
-
const n5 =
|
|
26562
|
+
const n5 = z3[e4 - 1];
|
|
26333
26563
|
let c3 = w2(2) + 3;
|
|
26334
|
-
for (; c3--; )
|
|
26335
|
-
} else
|
|
26564
|
+
for (; c3--; ) z3[e4++] = n5;
|
|
26565
|
+
} else e4 += 17 == n4 ? w2(3) + 3 : w2(7) + 11;
|
|
26336
26566
|
}
|
|
26337
|
-
return [r(
|
|
26567
|
+
return [r(z3.subarray(0, n3)), r(z3.subarray(n3))];
|
|
26338
26568
|
}
|
|
26339
26569
|
function q2(n3) {
|
|
26340
|
-
const { l: c2, symbols:
|
|
26341
|
-
let
|
|
26570
|
+
const { l: c2, symbols: f3 } = n3;
|
|
26571
|
+
let s4 = 0, t3 = 0, u3 = 0;
|
|
26342
26572
|
for (let n4 = 1; n4 <= 15; n4++) {
|
|
26343
|
-
|
|
26344
|
-
const
|
|
26345
|
-
if (
|
|
26346
|
-
|
|
26573
|
+
s4 |= w2(1);
|
|
26574
|
+
const z3 = c2[n4];
|
|
26575
|
+
if (s4 - t3 < z3) return f3[u3 + (s4 - t3)];
|
|
26576
|
+
u3 += z3, t3 = t3 + z3 << 1, s4 <<= 1;
|
|
26347
26577
|
}
|
|
26348
|
-
throw Error("invalid huffman code");
|
|
26578
|
+
throw new Error("invalid huffman code");
|
|
26349
26579
|
}
|
|
26350
26580
|
function L2(n3) {
|
|
26351
|
-
if (
|
|
26352
|
-
let c2 = 2 *
|
|
26581
|
+
if (i.length < n3) {
|
|
26582
|
+
let c2 = 2 * i.length;
|
|
26353
26583
|
for (; c2 < n3; ) c2 *= 2;
|
|
26354
|
-
const
|
|
26355
|
-
|
|
26584
|
+
const f3 = new Uint8Array(c2);
|
|
26585
|
+
f3.set(i.subarray(0, a)), i = f3;
|
|
26356
26586
|
}
|
|
26357
26587
|
}
|
|
26358
|
-
}
|
|
26359
|
-
const c2 = (n3 = (n3
|
|
26360
|
-
for (let
|
|
26361
|
-
const c3 =
|
|
26362
|
-
|
|
26588
|
+
}(function(n3) {
|
|
26589
|
+
const c2 = (n3 = String(n3).replace(/[^A-Za-z0-9+/=]/g, "")).length, f3 = [];
|
|
26590
|
+
for (let s4 = 0; s4 < c2; s4 += 4) {
|
|
26591
|
+
const c3 = e2.indexOf(n3[s4]) << 18 | e2.indexOf(n3[s4 + 1]) << 12 | (63 & e2.indexOf(n3[s4 + 2])) << 6 | 63 & e2.indexOf(n3[s4 + 3]);
|
|
26592
|
+
f3.push(c3 >> 16 & 255), "=" !== n3[s4 + 2] && f3.push(c3 >> 8 & 255), "=" !== n3[s4 + 3] && f3.push(255 & c3);
|
|
26363
26593
|
}
|
|
26364
|
-
return new Uint8Array(
|
|
26365
|
-
})("zb19kF3XcSd2vu7He/fdmTvAABzigUTfK0gaSxiBkqghRarWc2jODIcgBCXRH/6DVSQEDkXcBwJ8M08Q5ZX5hp+mbUnLcqlcjEsbY72qWOVIFVWFu6GztEXb9Fq70Wa5iVKljVUp1WYrqz82tXJKteVKKUT46z73fQwGIEhq7XAKfOd+ndOnT5/uPn26+6jT249qpZS+t/OgGQ718EGN/5nhUD1oh+GGFNWDSj2o9PDBeMj/6eGDyXBUdE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vc13Bvv1IqUf7SXHZSNj/H/8yuf3bXP7frXzT1z7+wL9vcXdXuT5vX4/AvCf/S8K8V/rXDvyz864R/Of/zr+7P3tNUnzQTZ26fSpNW3I4y17G5mdGzyv/1/uzRhNt2KuV/iserUGkox6zVp+EdUGOLYSn4flPGKEmZ3iwrjTJKRisnZaONVkVL+R/PZy06oQWr/x8=")))), U2) });
|
|
26366
26596
|
}
|
|
26367
26597
|
|
|
26368
26598
|
// ../../node_modules/@zip.js/zip.js/lib/zip-module-wasm-base.js
|
|
@@ -26372,6 +26602,10 @@ init_codec_worker();
|
|
|
26372
26602
|
init_codec_pool();
|
|
26373
26603
|
|
|
26374
26604
|
// ../../node_modules/@zip.js/zip.js/lib/core/streams/zlib-wasm/zlib-streams.js
|
|
26605
|
+
var FORMAT_DEFLATE = "deflate";
|
|
26606
|
+
var FORMAT_DEFLATE_RAW2 = "deflate-raw";
|
|
26607
|
+
var FORMAT_DEFLATE64_RAW2 = "deflate64-raw";
|
|
26608
|
+
var FORMAT_GZIP2 = "gzip";
|
|
26375
26609
|
var wasm;
|
|
26376
26610
|
var malloc;
|
|
26377
26611
|
var free;
|
|
@@ -26413,15 +26647,15 @@ function _make(isCompress, type, options = {}) {
|
|
|
26413
26647
|
this._last_consumed = wasm.deflate_last_consumed;
|
|
26414
26648
|
this._end = wasm.deflate_end;
|
|
26415
26649
|
this.streamHandle = wasm.deflate_new();
|
|
26416
|
-
if (type ===
|
|
26650
|
+
if (type === FORMAT_GZIP2) {
|
|
26417
26651
|
result = wasm.deflate_init_gzip(this.streamHandle, level);
|
|
26418
|
-
} else if (type ===
|
|
26652
|
+
} else if (type === FORMAT_DEFLATE_RAW2) {
|
|
26419
26653
|
result = wasm.deflate_init_raw(this.streamHandle, level);
|
|
26420
26654
|
} else {
|
|
26421
26655
|
result = wasm.deflate_init(this.streamHandle, level);
|
|
26422
26656
|
}
|
|
26423
26657
|
} else {
|
|
26424
|
-
if (type ===
|
|
26658
|
+
if (type === FORMAT_DEFLATE64_RAW2) {
|
|
26425
26659
|
this._process = wasm.inflate9_process;
|
|
26426
26660
|
this._last_consumed = wasm.inflate9_last_consumed;
|
|
26427
26661
|
this._end = wasm.inflate9_end;
|
|
@@ -26432,9 +26666,9 @@ function _make(isCompress, type, options = {}) {
|
|
|
26432
26666
|
this._last_consumed = wasm.inflate_last_consumed;
|
|
26433
26667
|
this._end = wasm.inflate_end;
|
|
26434
26668
|
this.streamHandle = wasm.inflate_new();
|
|
26435
|
-
if (type ===
|
|
26669
|
+
if (type === FORMAT_DEFLATE_RAW2) {
|
|
26436
26670
|
result = wasm.inflate_init_raw(this.streamHandle);
|
|
26437
|
-
} else if (type ===
|
|
26671
|
+
} else if (type === FORMAT_GZIP2) {
|
|
26438
26672
|
result = wasm.inflate_init_gzip(this.streamHandle);
|
|
26439
26673
|
} else {
|
|
26440
26674
|
result = wasm.inflate_init(this.streamHandle);
|
|
@@ -26551,17 +26785,19 @@ function _make(isCompress, type, options = {}) {
|
|
|
26551
26785
|
}
|
|
26552
26786
|
}
|
|
26553
26787
|
var CompressionStreamZlib = class {
|
|
26554
|
-
constructor(type =
|
|
26788
|
+
constructor(type = FORMAT_DEFLATE, options) {
|
|
26555
26789
|
return _make(true, type, options);
|
|
26556
26790
|
}
|
|
26557
26791
|
};
|
|
26558
26792
|
var DecompressionStreamZlib = class {
|
|
26559
|
-
constructor(type =
|
|
26793
|
+
constructor(type = FORMAT_DEFLATE, options) {
|
|
26560
26794
|
return _make(false, type, options);
|
|
26561
26795
|
}
|
|
26562
26796
|
};
|
|
26563
26797
|
CompressionStreamZlib.requiresModule = true;
|
|
26564
26798
|
DecompressionStreamZlib.requiresModule = true;
|
|
26799
|
+
CompressionStreamZlib.supportedFormats = [FORMAT_DEFLATE, FORMAT_DEFLATE_RAW2, FORMAT_GZIP2];
|
|
26800
|
+
DecompressionStreamZlib.supportedFormats = [FORMAT_DEFLATE, FORMAT_DEFLATE_RAW2, FORMAT_GZIP2, FORMAT_DEFLATE64_RAW2];
|
|
26565
26801
|
|
|
26566
26802
|
// ../../node_modules/@zip.js/zip.js/lib/core/streams/zlib-wasm/zlib-streams-loader.js
|
|
26567
26803
|
var initializedModule = false;
|
|
@@ -26629,7 +26865,7 @@ setDefaultConfiguration({
|
|
|
26629
26865
|
});
|
|
26630
26866
|
|
|
26631
26867
|
// ../../node_modules/@zip.js/zip.js/lib/zip-module-wasm.js
|
|
26632
|
-
|
|
26868
|
+
l(setDefaultConfiguration);
|
|
26633
26869
|
|
|
26634
26870
|
// ../../node_modules/@zip.js/zip.js/lib/core/zip-fs.js
|
|
26635
26871
|
init_io();
|
|
@@ -29295,24 +29531,24 @@ function sha256Hex(value) {
|
|
|
29295
29531
|
const s1 = rotateRight(right, 17) ^ rotateRight(right, 19) ^ right >>> 10;
|
|
29296
29532
|
schedule[index] = add(schedule[index - 16], s0, schedule[index - 7], s1);
|
|
29297
29533
|
}
|
|
29298
|
-
let [a, b2, c2, d,
|
|
29534
|
+
let [a, b2, c2, d, e3, f3, g2, h] = state;
|
|
29299
29535
|
for (let index = 0; index < 64; index += 1) {
|
|
29300
|
-
const sum1 = rotateRight(
|
|
29301
|
-
const choice =
|
|
29536
|
+
const sum1 = rotateRight(e3, 6) ^ rotateRight(e3, 11) ^ rotateRight(e3, 25);
|
|
29537
|
+
const choice = e3 & f3 ^ ~e3 & g2;
|
|
29302
29538
|
const temporary1 = add(h, sum1, choice, constants[index], schedule[index]);
|
|
29303
29539
|
const sum0 = rotateRight(a, 2) ^ rotateRight(a, 13) ^ rotateRight(a, 22);
|
|
29304
29540
|
const majority = a & b2 ^ a & c2 ^ b2 & c2;
|
|
29305
29541
|
const temporary2 = add(sum0, majority);
|
|
29306
29542
|
h = g2;
|
|
29307
29543
|
g2 = f3;
|
|
29308
|
-
f3 =
|
|
29309
|
-
|
|
29544
|
+
f3 = e3;
|
|
29545
|
+
e3 = add(d, temporary1);
|
|
29310
29546
|
d = c2;
|
|
29311
29547
|
c2 = b2;
|
|
29312
29548
|
b2 = a;
|
|
29313
29549
|
a = add(temporary1, temporary2);
|
|
29314
29550
|
}
|
|
29315
|
-
state = state.map((value2, index) => add(value2, [a, b2, c2, d,
|
|
29551
|
+
state = state.map((value2, index) => add(value2, [a, b2, c2, d, e3, f3, g2, h][index]));
|
|
29316
29552
|
}
|
|
29317
29553
|
return state.map((value2) => (value2 >>> 0).toString(16).padStart(8, "0")).join("");
|
|
29318
29554
|
}
|
|
@@ -31434,11 +31670,11 @@ var addOption = (command, option) => {
|
|
|
31434
31670
|
};
|
|
31435
31671
|
var renderEnvironmentBlock = (environment) => {
|
|
31436
31672
|
if (!environment || environment.length === 0) return "";
|
|
31437
|
-
const colWidth = Math.max(16, ...environment.map((
|
|
31438
|
-
const lines = environment.map((
|
|
31439
|
-
const label =
|
|
31440
|
-
const tag =
|
|
31441
|
-
return ` ${label}${tag} ${
|
|
31673
|
+
const colWidth = Math.max(16, ...environment.map((e3) => e3.name.length + 2));
|
|
31674
|
+
const lines = environment.map((e3) => {
|
|
31675
|
+
const label = e3.name.padEnd(colWidth);
|
|
31676
|
+
const tag = e3.required ? "(required)" : "(optional)";
|
|
31677
|
+
return ` ${label}${tag} ${e3.description}`;
|
|
31442
31678
|
});
|
|
31443
31679
|
return `
|
|
31444
31680
|
Environment:
|