@bemoje/fs 0.0.2 → 0.0.4
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/README.md +2 -3
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +30 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/absoluteToRelativePath.d.ts +14 -0
- package/dist/types/lib/absoluteToRelativePath.d.ts.map +1 -0
- package/dist/types/lib/appendLineToFile.d.ts +12 -0
- package/dist/types/lib/appendLineToFile.d.ts.map +1 -0
- package/dist/types/lib/cleanDirectorySync.d.ts +17 -0
- package/dist/types/lib/cleanDirectorySync.d.ts.map +1 -0
- package/dist/types/lib/createDirectory.d.ts +14 -0
- package/dist/types/lib/createDirectory.d.ts.map +1 -0
- package/dist/types/lib/createDirectorySync.d.ts +11 -0
- package/dist/types/lib/createDirectorySync.d.ts.map +1 -0
- package/dist/types/lib/createFileExtensionFilter.d.ts +14 -0
- package/dist/types/lib/createFileExtensionFilter.d.ts.map +1 -0
- package/dist/types/lib/cwdpath.d.ts +13 -0
- package/dist/types/lib/cwdpath.d.ts.map +1 -0
- package/dist/types/lib/deleteDirectory.d.ts +13 -0
- package/dist/types/lib/deleteDirectory.d.ts.map +1 -0
- package/dist/types/lib/deleteDirectorySafe.d.ts +14 -0
- package/dist/types/lib/deleteDirectorySafe.d.ts.map +1 -0
- package/dist/types/lib/deleteDirectorySafeSync.d.ts +12 -0
- package/dist/types/lib/deleteDirectorySafeSync.d.ts.map +1 -0
- package/dist/types/lib/deleteDirectorySync.d.ts +13 -0
- package/dist/types/lib/deleteDirectorySync.d.ts.map +1 -0
- package/dist/types/lib/ensureValidWindowsPath.d.ts +23 -0
- package/dist/types/lib/ensureValidWindowsPath.d.ts.map +1 -0
- package/dist/types/lib/getDiskDrivesWindows.d.ts +2 -0
- package/dist/types/lib/getDiskDrivesWindows.d.ts.map +1 -0
- package/dist/types/lib/getDownloadsDirectory.d.ts +2 -0
- package/dist/types/lib/getDownloadsDirectory.d.ts.map +1 -0
- package/dist/types/lib/getHomeDirectory.d.ts +2 -0
- package/dist/types/lib/getHomeDirectory.d.ts.map +1 -0
- package/dist/types/lib/getLastMofifiedFileIn.d.ts +2 -0
- package/dist/types/lib/getLastMofifiedFileIn.d.ts.map +1 -0
- package/dist/types/lib/getRootDir.d.ts +2 -0
- package/dist/types/lib/getRootDir.d.ts.map +1 -0
- package/dist/types/lib/isWindows.d.ts +2 -0
- package/dist/types/lib/isWindows.d.ts.map +1 -0
- package/dist/types/lib/normalizeFileExtension.d.ts +23 -0
- package/dist/types/lib/normalizeFileExtension.d.ts.map +1 -0
- package/dist/types/lib/readJsonFile.d.ts +13 -0
- package/dist/types/lib/readJsonFile.d.ts.map +1 -0
- package/dist/types/lib/readJsonFileSync.d.ts +13 -0
- package/dist/types/lib/readJsonFileSync.d.ts.map +1 -0
- package/dist/types/lib/readPackageJson.d.ts +2 -0
- package/dist/types/lib/readPackageJson.d.ts.map +1 -0
- package/dist/types/lib/removeIllegalFilenameCharacters.d.ts +2 -0
- package/dist/types/lib/removeIllegalFilenameCharacters.d.ts.map +1 -0
- package/dist/types/lib/types/IEnsureValidWindowsPathOptions.d.ts +11 -0
- package/dist/types/lib/types/IEnsureValidWindowsPathOptions.d.ts.map +1 -0
- package/dist/types/lib/unzipFile.d.ts +2 -0
- package/dist/types/lib/unzipFile.d.ts.map +1 -0
- package/dist/types/lib/unzipMergeFiles.d.ts +5 -0
- package/dist/types/lib/unzipMergeFiles.d.ts.map +1 -0
- package/dist/types/lib/wipeDirectorySafe.d.ts +2 -0
- package/dist/types/lib/wipeDirectorySafe.d.ts.map +1 -0
- package/dist/types/lib/writeJsonFile.d.ts +15 -0
- package/dist/types/lib/writeJsonFile.d.ts.map +1 -0
- package/dist/types/lib/writeJsonFileSync.d.ts +14 -0
- package/dist/types/lib/writeJsonFileSync.d.ts.map +1 -0
- package/package.json +10 -39
- package/project.json +8 -0
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../regex/src/lib/regexEscapeString.ts","../src/lib/absoluteToRelativePath.ts","../src/lib/createDirectory.ts","../src/lib/appendLineToFile.ts","../src/lib/cleanDirectorySync.ts","../src/lib/createDirectorySync.ts","../src/lib/normalizeFileExtension.ts","../src/lib/createFileExtensionFilter.ts","../src/lib/cwdpath.ts","../src/lib/deleteDirectory.ts","../src/lib/deleteDirectorySafe.ts","../src/lib/deleteDirectorySafeSync.ts","../src/lib/deleteDirectorySync.ts","../src/lib/ensureValidWindowsPath.ts","../src/lib/getDiskDrivesWindows.ts","../src/lib/getHomeDirectory.ts","../src/lib/getDownloadsDirectory.ts","../../fspath/src/lib/core/AbstractFsPath.ts","../../fspath/src/lib/FilePath.ts","../../fspath/src/lib/core/BlockDevicePath.ts","../../fspath/src/lib/core/CharacterDevicePath.ts","../../fspath/src/lib/core/FIFOPath.ts","../../fspath/src/lib/core/SocketPath.ts","../../fspath/src/lib/core/SymbolicLinkPath.ts","../../fspath/src/lib/core/instantiateCorrectFsPathSubclass.ts","../../fspath/src/lib/DirectoryPath.ts","../src/lib/getLastMofifiedFileIn.ts","../src/lib/getRootDir.ts","../src/lib/isWindows.ts","../src/lib/readJsonFile.ts","../src/lib/readJsonFileSync.ts","../src/lib/readPackageJson.ts","../src/lib/removeIllegalFilenameCharacters.ts","../../../node_modules/ms/index.js","../../../node_modules/debug/src/common.js","../../../node_modules/debug/src/browser.js","../../../node_modules/has-flag/index.js","../../../node_modules/supports-color/index.js","../../../node_modules/debug/src/node.js","../../../node_modules/debug/src/index.js","../../../node_modules/wrappy/wrappy.js","../../../node_modules/once/once.js","../../../node_modules/end-of-stream/index.js","../../../node_modules/pump/index.js","../../../node_modules/extract-zip/node_modules/get-stream/buffer-stream.js","../../../node_modules/extract-zip/node_modules/get-stream/index.js","../../../node_modules/pend/index.js","../../../node_modules/fd-slicer/index.js","../../../node_modules/buffer-crc32/index.js","../../../node_modules/yauzl/index.js","../../../node_modules/extract-zip/index.js","../src/lib/unzipFile.ts","../src/lib/unzipMergeFiles.ts","../src/lib/wipeDirectorySafe.ts","../src/lib/writeJsonFile.ts","../src/lib/writeJsonFileSync.ts"],"sourcesContent":["/**\n * Escapes special characters in a string to be used in a regular expression.\n * @param str The input string to escape.\n * @returns The escaped string.\n * @example ```ts\n * const input = 'Hello, world!';\n * regexEscapeString(input);;\n * //=> 'Hello, world!'\n * ```\n */\nexport function regexEscapeString(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&') // $& means the whole matched string\n}\n","import { regexEscapeString } from '@bemoje/regex'\r\nimport path from 'path'\r\n\r\n/**\r\n * If the filepath is somewhere in the current working directory, it can be converted into a relative path.\r\n * @remarks This function takes an absolute path as input and returns a relative path. It replaces the current working directory in the path with an empty string,\r\n * replaces all backslashes with forward slashes, and removes any leading forward slashes.\r\n * @param workingDirectory The directory relative to which the path should be converted. Defaults to the current working directory.\r\n * @returns The relative path.\r\n * @param absolute the absolute filepath to convert.\r\n * @example ```ts\r\n * absoluteToRelativePath(__filename)\r\n * //=> 'src/absoluteToRelativePath.ts'\r\n * ```\r\n */\r\nexport function absoluteToRelativePath(absolute: string, workingDirectory = process.cwd()): string {\r\n return path\r\n .normalize(absolute)\r\n .replace(new RegExp(regexEscapeString(path.normalize(workingDirectory) + path.sep), 'i'), '')\r\n}\r\n","import fs from 'fs'\n/**\n * Create a directory at a given path if it does not exist.\n * Automatically creates parent directories if they do not exist.\n * @param dirpath The path where the directory should be created.\n * @returns The path of the directory.\n * @throws Will throw an error if the directory cannot be created.\n * @example ```ts\n * createDirectory('/path/to/directory').then((dirpath) => {\n * //=> `Directory created at ${dirpath}`\n * });\n * ```\n */\nexport async function createDirectory(dirpath: string): Promise<string> {\n await fs.promises.mkdir(dirpath, { recursive: true })\n return dirpath\n}\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { createDirectory } from './createDirectory'\r\n\r\n/**\r\n * Append a line to a file. Creates the file if it does not exist.\r\n * @param filepath The path of the file.\r\n * @param line The string data to append.\r\n * @returns A Promise that resolves when the line has been appended to the file.\r\n * @throws Will throw an error if the operation fails.\r\n * @example ```ts\r\n * await appendLineToFile('/path/to/file', 'This is a new line')\r\n * ```\r\n */\r\nexport async function appendLineToFile(filepath: string, line: string, linebreakBefore = false): Promise<void> {\r\n if (!fs.existsSync(filepath)) {\r\n await createDirectory(path.dirname(filepath))\r\n await fs.promises.writeFile(filepath, '')\r\n }\r\n await fs.promises.appendFile(filepath, linebreakBefore ? '\\n' + line : line + '\\n')\r\n}\r\n","import type { Stats } from 'fs'\r\nimport fs from 'fs'\r\nimport path from 'path'\r\n\r\n/**\r\n * Synchronously cleans a directory by removing files that satisfy a given predicate.\r\n * @remarks This function is a part of the File System module.\r\n * @param dirpath - The path to the directory that needs to be cleaned.\r\n * @param predicate - A function that takes a filepath and its stats as arguments and returns a boolean. If the function returns true for a file, that file is removed from the directory.\r\n * @throws If the directory at the provided path does not exist or cannot be read.\r\n * @example ```ts\r\n * import { Stats } from 'fs';\r\n * const dirpath = './my-directory';\r\n * const predicate = (filepath: string, stat: Stats) => stat.size > 1024;\r\n * cleanDirectorySync(dirpath, predicate);\r\n * ```\r\n */\r\nexport function cleanDirectorySync(dirpath: string, predicate: (filepath: string, stat: Stats) => boolean): void {\r\n for (const filename of fs.readdirSync(dirpath)) {\r\n const filepath = path.join(dirpath, filename)\r\n const stat = fs.statSync(filepath)\r\n if (predicate(filepath, stat)) fs.unlinkSync(filepath)\r\n }\r\n}\r\n","import fs from 'fs'\n\n/**\n * Create a directory at a given path if it does not exist.\n * Automatically creates parent directories if they do not exist.\n * @param dirpath The path where the directory should be created.\n * @returns The path of the directory.\n * @example ```ts\n * createDirectorySync('/path/to/directory')\n * ```\n */\nexport function createDirectorySync(dirpath: string): string {\n fs.mkdirSync(dirpath, { recursive: true })\n return dirpath\n}\n","/**\r\n * Normalize a file extension to the form: .[ext]\r\n * Anything before the last \".\" is not returned.\r\n * @returns The normalized file extension.\r\n * @throws If the extension contains illegal characters.\r\n * @param ext file extension\r\n * @example ```ts\r\n * normalizeFileExtension('jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('.jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('..jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('');;\r\n * //=> ''\r\n * normalizeFileExtension('.');;\r\n * //=> ''\r\n * normalizeFileExtension('jpg|png');;\r\n * //=> Error\r\n * ```\r\n */\r\nexport function normalizeFileExtension(ext: string): string {\r\n if (ext === '' || ext === '.') return ''\r\n if (/[<>\"|?*:]/g.test(ext)) {\r\n throw new Error(`Illegal characters in file extension: ${ext} | Illegal characters are: <>\"|?:*`)\r\n }\r\n if (!ext.includes('.')) return '.' + ext\r\n return ext.substring(ext.lastIndexOf('.'))\r\n}\r\n","import path from 'path'\nimport { normalizeFileExtension } from './normalizeFileExtension'\n\n/**\n * Takes a list of file extensions and returns a filter function that returns true if a filepath/filename passed to it contains one of the given file extensions.\n * @remarks If no file extensions are provided, the filter will always return true.\n * @returns A function that takes a filepath and returns true if the filepath has one of the specified file extensions, false otherwise.\n * @param fileExtensions file extensions\n * @example ```ts\n * createFileExtensionFilter('.ts', '.tsx')('index.ts');;\n * //=> true\n * createFileExtensionFilter('.ts', '.tsx')('index.js');;\n * //=> false\n * ```\n */\nexport function createFileExtensionFilter(...fileExtensions: string[]): (filepath: string) => boolean {\n if (!fileExtensions.length) return () => true\n return (filepath: string) => {\n for (const ext of fileExtensions.map(normalizeFileExtension)) {\n if (path.extname(filepath) === ext) {\n return true\n }\n }\n return false\n }\n}\n","import path from 'path'\r\n\r\n/**\r\n * Joins the given path segments to the current working directory path, and normalizes the resulting path.\r\n * @remarks\r\n * The function uses the `path.join` method from the Node.js `path` module, and the `process.cwd` method from the Node.js `process` module.\r\n * @param paths - The path segments to join to the current working directory path.\r\n * @returns The resulting path.\r\n * @example ```ts\r\n * console.log(cwdpath('src', 'index.ts'));\r\n * //=> '{working_directory}/src/index.ts'\r\n * ```\r\n */\r\nexport function cwdpath(...paths: string[]): string {\r\n return path.join(process.cwd(), ...paths)\r\n}\r\n","import fs from 'fs'\n\n/**\n * Deletes a directory and all of its contents.\n * @remarks This function uses Node.js's `fs.promises.rm` method with the `recursive` and `force` options set to `true`.\n * This means it will delete the directory and all of its contents, even if the directory is not empty.\n * @param dirpath The path to the directory to delete.\n * @returns A Promise that resolves when the directory has been deleted.\n * @throws Will throw an error if the directory does not exist, or if there was a problem deleting the directory.\n * @example ```ts\n * deleteDirectory('/path/to/directory');\n * ```\n */\nexport async function deleteDirectory(dirpath: string): Promise<void> {\n await fs.promises.rm(dirpath, { recursive: true, force: true })\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory safely if it exists.\n * @remarks This function uses Node.js' `fs.promises.rm` method with the `recursive` and `force` options set to `true`.\n * This means it will delete the directory and all its contents, even if the directory is not empty.\n * @param dirpath The path of the directory to delete.\n * @returns A promise that resolves to `void` when the directory has been deleted.\n * @throws Will throw an error if the `fs.promises.rm` operation fails.\n * @example ```ts\n * deleteDirectorySafe('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport async function deleteDirectorySafe(dirpath: string): Promise<void> {\n if (fs.existsSync(dirpath)) await fs.promises.rm(dirpath, { recursive: true, force: true })\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory synchronously in a safe manner. If the directory does not exist, it will simply return the directory path without throwing an error.\n * @param dirpath The path of the directory to be deleted.\n * @returns The path of the directory that was intended to be deleted.\n * @throws Will throw an error if the operation fails for reasons other than the directory not existing.\n * @example ```ts\n * deleteDirectorySafeSync('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport function deleteDirectorySafeSync(dirpath: string): string {\n if (!fs.existsSync(dirpath)) return dirpath\n fs.rmSync(dirpath, { recursive: true, force: true })\n return dirpath\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory synchronously.\n * @remarks This function uses Node.js's `fs.rmSync` method with the options `{ recursive: true, force: true }`.\n * @param dirpath The path of the directory to delete.\n * @returns The path of the deleted directory.\n * @throws Will throw an error if the directory does not exist or if the process lacks permissions to delete it.\n * @example ```ts\n * deleteDirectorySync('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport function deleteDirectorySync(dirpath: string): string {\n fs.rmSync(dirpath, { recursive: true, force: true })\n return dirpath\n}\n","import { IEnsureValidWindowsPathOptions } from './types/IEnsureValidWindowsPathOptions'\r\n\r\n/**\r\n * Check whether a provided windows filesystem path string is valid according to:\r\n * https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx\r\n * @param path The path to validate.\r\n * @returns A boolean indicating whether the path is valid. If the `assert` option is true, the function will throw an error instead of returning false.\r\n * @throws Will throw an error if the `assert` option is true and the path is invalid.\r\n * @param options An optional object that may contain the following properties:\r\n * - `assert`: If true, the function will throw an error if the path is invalid. Default is false.\r\n * - `extendedMaxLength`: If true, the function will allow paths up to 32767 characters long. Default is false.\r\n * @example ```ts\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt');;\r\n * //=> true\r\n * ensureValidWindowsPath('C:/Users/User/Documents/file.txt');;\r\n * //=> false\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt', { assert: true });;\r\n * //=> throws an error\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt', { extendedMaxLength: true });;\r\n * //=> true\r\n * ```\r\n */\r\nexport function ensureValidWindowsPath(path: string, options?: IEnsureValidWindowsPathOptions): boolean {\r\n const throwOrFalse = (msg: string) => {\r\n if (options && options.assert === true) {\r\n throw new Error(`Invalid windows path. ${msg} | input received: ${path}`)\r\n }\r\n return false\r\n }\r\n\r\n if (path.length === 0) {\r\n return throwOrFalse('Path string is length 0.')\r\n }\r\n\r\n if (path.indexOf('/') !== -1 && path.indexOf('\\\\') !== -1) {\r\n return throwOrFalse('Path contains both backslash and forward slash.')\r\n }\r\n\r\n const maxLength = (options && options.extendedMaxLength ? 32767 : 260) - 12\r\n if (path.length > maxLength) {\r\n return throwOrFalse(`Maximum length of ${maxLength} exceeded`)\r\n }\r\n\r\n let noDriveLetter = path\r\n if (/^\\w:(\\\\|\\/)/g.test(path)) {\r\n noDriveLetter = path.substring(2)\r\n }\r\n if (/[<>\"|?*:]/g.test(noDriveLetter)) {\r\n return throwOrFalse(`Illegal characters in: ${path} | Illegal characters are: <>\"|?:*`)\r\n }\r\n\r\n if (/(\\\\|\\/)(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])((\\\\|\\/)|$)/g.test(path)) {\r\n return throwOrFalse('Illegal name in path string')\r\n }\r\n\r\n return true\r\n}\r\n","import { isWindows } from '@bemoje/fs'\r\nimport { execSync } from 'child_process'\r\nimport path from 'path'\r\n\r\nexport function getDiskDrivesWindows(): string[] {\r\n if (!isWindows()) throw new Error('This function is only available on Windows.')\r\n return execSync('wmic logicaldisk get name')\r\n .toString()\r\n .split('\\n')\r\n .map((s) => s.trim())\r\n .filter((s) => /^[a-z]:/i.test(s))\r\n .map((s) => s.substring(0, 2) + path.sep)\r\n}\r\n","import path from 'path'\r\n\r\nexport function getHomeDirectory(): string {\r\n const home = path.resolve(process.env['HOME'] || process.env['USERPROFILE'] || '')\r\n if (!home) throw new Error('Home directory not found')\r\n return home\r\n}\r\n","import path from 'path'\r\nimport { getHomeDirectory } from './getHomeDirectory'\r\n\r\nexport function getDownloadsDirectory() {\r\n return path.join(getHomeDirectory(), 'Downloads')\r\n}\r\n","import { absoluteToRelativePath, ensureValidWindowsPath } from '@bemoje/fs'\r\nimport fs from 'fs'\r\nimport path from 'path'\r\n\r\n/**\r\n * Abstract extension of the native String class, representing a path to a filesystem object, such as directory or file.\r\n * Some of the classes extending this one are @see DirectoryPath or @see FilePath\r\n */\r\nexport abstract class AbstractFsPath extends String {\r\n /**\r\n * @param absolute The absolute path to the filesystem object either as a string or an array of path segments.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n * @throws If the path is not absolute.\r\n */\r\n protected constructor(absolute: string | string[], _unsafe = false) {\r\n if (_unsafe) {\r\n super(absolute as string)\r\n return\r\n }\r\n if (typeof absolute !== 'string') {\r\n absolute = path.join(...absolute)\r\n }\r\n if (!absolute || !path.isAbsolute(absolute)) {\r\n throw new Error(`Expected absolute filepath. Got: ${absolute}`)\r\n }\r\n super(path.normalize(absolute))\r\n }\r\n\r\n get absolute(): string {\r\n return super.toString()\r\n }\r\n\r\n /**\r\n * The relative path to the filesystem object from the working directory.\r\n */\r\n get relative(): string {\r\n return absoluteToRelativePath(this.absolute)\r\n }\r\n\r\n /**\r\n * The root directory of the disk containing the filesystem object.\r\n */\r\n get root(): string {\r\n return path.parse(this.absolute).root\r\n }\r\n\r\n /**\r\n * The file/directory name (for files, including the file extension).\r\n */\r\n get base(): string {\r\n return path.basename(this.absolute)\r\n }\r\n\r\n /**\r\n * The file/directory name (for files, not including the file extension).\r\n */\r\n get name(): string {\r\n return path.parse(this.absolute).name\r\n }\r\n\r\n /**\r\n * The absolute path to the directory of the filesystem object.\r\n */\r\n get parentPath(): string {\r\n return path.dirname(this.absolute)\r\n }\r\n\r\n /**\r\n * Returns whether the file exists.\r\n */\r\n get exists(): boolean {\r\n return fs.existsSync(this.absolute)\r\n }\r\n\r\n /**\r\n * Get fs.Stats synchronously\r\n */\r\n statSync(): fs.Stats {\r\n return fs.statSync(this.absolute)\r\n }\r\n\r\n /**\r\n * Get fs.Stats asynchronously\r\n */\r\n async stat(): Promise<fs.Stats> {\r\n return fs.promises.stat(this.absolute)\r\n }\r\n\r\n /**\r\n * Returns whether the path is valid on Windows.\r\n * @param extendedMaxLength If true, we are assuming the OS configuration allows paths to be up to 32767 characters long.\r\n */\r\n isValidWindowsPath(extendedMaxLength = false): boolean {\r\n return ensureValidWindowsPath(this.absolute, { extendedMaxLength })\r\n }\r\n\r\n /**\r\n * Split the absolute path into an array of path segments.\r\n */\r\n toArray(): string[] {\r\n return this.absolute.split(path.sep)\r\n }\r\n\r\n /**\r\n * Split the relative path into an array of path segments.\r\n * @see relative\r\n */\r\n relativeToArray(): string[] {\r\n return this.relative.split(path.sep)\r\n }\r\n\r\n /**\r\n * Returns whether this is an DirectoryPath instance.\r\n */\r\n get isDirectoryPath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an FilePath instance.\r\n */\r\n get isFilePath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an BlockDevicePath instance.\r\n */\r\n get isBlockDevicePath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an FsSymbolcLink instance.\r\n */\r\n get isSymbolicLinkPath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an CharacterDevicePath instance.\r\n */\r\n get isCharacterDevicePath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an FIFOPath instance.\r\n */\r\n get isFIFOPath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this is an SocketPath instance.\r\n */\r\n get isSocketPath(): boolean {\r\n return false\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a directory.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isDirectory(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isDirectory()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a file.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isFile(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isFile()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a block device.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isBlockDevice(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isBlockDevice()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a symbolic link.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isSymbolicLink(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isSymbolicLink()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a character device.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isCharacterDevice(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isCharacterDevice()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a FIFO device.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isFIFO(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isFIFO()\r\n }\r\n\r\n /**\r\n * Returns whether this actually is a path to a socket.\r\n * @param stat The fs.Stats object to check. If not provided, it is retrieved synchronously.\r\n * @throws If the path does not exist.\r\n */\r\n isSocket(stat: fs.Stats = this.statSync()): boolean {\r\n return stat.isSocket()\r\n }\r\n}\r\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { DirectoryPath } from './DirectoryPath'\r\nimport { AbstractFsPath } from './core/AbstractFsPath'\r\nimport { NodeJsBufferEncoding } from './types/NodeJsBufferEncoding'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a file.\r\n * @see AbstractFsPath\r\n */\r\nexport class FilePath extends AbstractFsPath {\r\n /**\r\n * Creates a new FilePath instance.\r\n * @param filepath The absolute path\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(filepath: string, _unsafe = false) {\r\n super(filepath, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an FilePath instance.\r\n */\r\n override get isFilePath(): boolean {\r\n return true\r\n }\r\n\r\n /**\r\n * The absolute path to the directory of the filesystem object.\r\n */\r\n get parent(): DirectoryPath {\r\n return new DirectoryPath(this.parentPath, true)\r\n }\r\n\r\n /**\r\n * The absolute path to the file.\r\n */\r\n get filepath(): string {\r\n return this.absolute\r\n }\r\n\r\n /**\r\n * The filename (including the file extension).\r\n */\r\n get filename(): string {\r\n return path.basename(this.filepath)\r\n }\r\n\r\n /**\r\n * The file extension of the source file.\r\n * @returns The file extension, including the leading dot.\r\n */\r\n get extension(): string {\r\n return path.extname(this.filepath)\r\n }\r\n\r\n /**\r\n * Read the file synchronously with fs.readFileSync.\r\n * @param encoding The encoding to use. If none is specified, a Buffer is returned.\r\n */\r\n readFileSync(encoding?: NodeJsBufferEncoding): string | Buffer {\r\n return fs.readFileSync(this.filepath, encoding)\r\n }\r\n\r\n /**\r\n * Read the file asynchronously with fs.promises.readFile.\r\n * @param encoding The encoding to use. If none is specified, a Buffer is returned.\r\n */\r\n async readFile(encoding?: NodeJsBufferEncoding): Promise<string | Buffer> {\r\n return fs.promises.readFile(this.filepath, encoding)\r\n }\r\n\r\n /**\r\n * Read the file synchronously as a string with fs.readFileSync.\r\n * @param encoding The encoding to use. Defaults to 'utf8'.\r\n */\r\n readFileStringSync(encoding: NodeJsBufferEncoding = 'utf8'): string {\r\n return fs.readFileSync(this.filepath, encoding)\r\n }\r\n\r\n /**\r\n * Read the file asynchronously as a string with fs.promises.readFile.\r\n * @param encoding The encoding to use. Defaults to 'utf8'.\r\n */\r\n async readFileString(encoding: NodeJsBufferEncoding = 'utf8'): Promise<string> {\r\n return fs.promises.readFile(this.filepath, encoding)\r\n }\r\n\r\n /**\r\n * Write or overwrite the file synchronously with fs.writeFileSync.\r\n * If the directory path does not exist, it is created and no error is thrown.\r\n * @param data A string or Buffer to write to the file.\r\n * @param encoding The encoding to use. Defaults to 'utf8'.\r\n */\r\n writeFileSync(data: string | NodeJS.ArrayBufferView, encoding: NodeJsBufferEncoding = 'utf8'): void {\r\n fs.mkdirSync(this.parentPath, { recursive: true })\r\n fs.writeFileSync(this.filepath, data, encoding)\r\n }\r\n\r\n /**\r\n * Write or overwrite the file asynchronously with fs.promises.writeFile.\r\n * If the directory path does not exist, it is created and no error is thrown.\r\n * @param data A string or Buffer to write to the file.\r\n * @param encoding The encoding to use. Defaults to 'utf8'.\r\n */\r\n async writeFile(data: string | NodeJS.ArrayBufferView, encoding: NodeJsBufferEncoding = 'utf8'): Promise<void> {\r\n await fs.promises.mkdir(this.parentPath, { recursive: true })\r\n await fs.promises.writeFile(this.filepath, data, encoding)\r\n }\r\n}\r\n","import { AbstractFsPath } from './AbstractFsPath'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a block device.\r\n * @see AbstractFsPath\r\n * @remarks\r\n * This represents a device file that provides buffered I/O access in fixed-size blocks. Block devices usually correspond to devices with data storage like hard drives.\r\n * This class has no special methods or properties. It is only used to distinguish between different types of filesystem objects.\r\n */\r\nexport class BlockDevicePath extends AbstractFsPath {\r\n /**\r\n * Creates a new BlockDevicePath instance.\r\n * @param abolsute The absolute path.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(absolute: string, _unsafe = false) {\r\n super(absolute, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an BlockDevicePath instance.\r\n */\r\n override get isBlockDevicePath(): boolean {\r\n return true\r\n }\r\n}\r\n","import { AbstractFsPath } from './AbstractFsPath'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a character device.\r\n * @see AbstractFsPath\r\n * @remarks\r\n * This represents a device file that provides unbuffered I/O access in variable block sizes. Character devices might correspond to hardware like keyboards or mice.\r\n * This class has no special methods or properties. It is only used to distinguish between different types of filesystem objects.\r\n */\r\nexport class CharacterDevicePath extends AbstractFsPath {\r\n /**\r\n * Creates a new CharacterDevicePath instance.\r\n * @param abolsute The absolute path.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(absolute: string, _unsafe = false) {\r\n super(absolute, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an CharacterDevicePath instance.\r\n */\r\n override get isCharacterDevicePath(): boolean {\r\n return true\r\n }\r\n}\r\n","import { AbstractFsPath } from './AbstractFsPath'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a FIFO.\r\n * @see AbstractFsPath\r\n * @remarks\r\n * FIFO stands for First In, First Out and refers to a method for organizing and manipulating a data buffer. It's a special type of file which is used for interprocess communication.\r\n * This class has no special methods or properties. It is only used to distinguish between different types of filesystem objects.\r\n */\r\nexport class FIFOPath extends AbstractFsPath {\r\n /**\r\n * Creates a new FIFOPath instance.\r\n * @param abolsute The absolute path.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(absolute: string, _unsafe = false) {\r\n super(absolute, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an FIFOPath instance.\r\n */\r\n override get isFIFOPath(): boolean {\r\n return true\r\n }\r\n}\r\n","import { AbstractFsPath } from './AbstractFsPath'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a socket.\r\n * @see AbstractFsPath\r\n * @remarks\r\n * This is a special file used for inter-process communication. It provides a communication interface between a client process and a server process.\r\n * This class has no special methods or properties. It is only used to distinguish between different types of filesystem objects.\r\n */\r\nexport class SocketPath extends AbstractFsPath {\r\n /**\r\n * Creates a new SocketPath instance.\r\n * @param abolsute The absolute path.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(absolute: string, _unsafe = false) {\r\n super(absolute, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an SocketPath instance.\r\n */\r\n override get isSocketPath(): boolean {\r\n return true\r\n }\r\n}\r\n","import { AbstractFsPath } from './AbstractFsPath'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a symbolic link.\r\n * @see AbstractFsPath\r\n * @remarks\r\n * This is a file that points to another file or directory. It's a reference or shortcut.\r\n * This class has no special methods or properties. It is only used to distinguish between different types of filesystem objects.\r\n */\r\nexport class SymbolicLinkPath extends AbstractFsPath {\r\n /**\r\n * Creates a new SymbolicLinkPath instance.\r\n * @param abolsute The absolute path.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(absolute: string, _unsafe = false) {\r\n super(absolute, _unsafe)\r\n }\r\n\r\n /**\r\n * Returns whether this is an SymbolcLinkPath instance.\r\n */\r\n override get isSymbolicLinkPath(): boolean {\r\n return true\r\n }\r\n}\r\n","import fs from 'fs'\r\nimport { DirectoryPath } from '../DirectoryPath'\r\nimport { FilePath } from '../FilePath'\r\nimport { AbstractFsPath } from './AbstractFsPath'\r\nimport { BlockDevicePath } from './BlockDevicePath'\r\nimport { CharacterDevicePath } from './CharacterDevicePath'\r\nimport { FIFOPath } from './FIFOPath'\r\nimport { SocketPath } from './SocketPath'\r\nimport { SymbolicLinkPath } from './SymbolicLinkPath'\r\n\r\n/**\r\n * Creates a new FsObject instance of the correct type.\r\n * @param absolute The absolute path to the filesystem object.\r\n * @param stat The fs.Stats object of the filesystem object.\r\n * @returns an instance of the correct subclass of @see AbstractFsPath.\r\n */\r\nexport function instantiateCorrectFsPathSubclass(absolute: string, stat: fs.Stats): AbstractFsPath {\r\n if (stat.isFile()) return new FilePath(absolute, true)\r\n if (stat.isDirectory()) return new DirectoryPath(absolute, true)\r\n if (stat.isSymbolicLink()) return new SymbolicLinkPath(absolute, true)\r\n if (stat.isBlockDevice()) return new BlockDevicePath(absolute, true)\r\n if (stat.isCharacterDevice()) return new CharacterDevicePath(absolute, true)\r\n if (stat.isFIFO()) return new FIFOPath(absolute, true)\r\n return new SocketPath(absolute, true)\r\n}\r\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { FilePath } from './FilePath'\r\nimport { AbstractFsPath } from './core/AbstractFsPath'\r\nimport { instantiateCorrectFsPathSubclass } from './core/instantiateCorrectFsPathSubclass'\r\n\r\n/**\r\n * Extension class of AbstractFsObject, which extends the native String class, representing a path to a directory.\r\n * @see AbstractFsPath\r\n */\r\nexport class DirectoryPath extends AbstractFsPath {\r\n /**\r\n * Creates a new DirectoryPath instance.\r\n * @param dirpath The absolute path to the directory.\r\n * @param _unsafe Used internally changing it is not recommended. If true, the path is not checked for whether it is actually absolute, it is not normalized and it is assumed to be of type string.\r\n */\r\n constructor(dirpath: string, _unsafe = false) {\r\n super(dirpath, _unsafe)\r\n }\r\n\r\n /**\r\n * The absolute path to the directory.\r\n */\r\n get dirpath(): string {\r\n return this.absolute\r\n }\r\n\r\n /**\r\n * Returns whether this is an DirectoryPath instance.\r\n */\r\n override get isDirectoryPath(): boolean {\r\n return true\r\n }\r\n\r\n /**\r\n * The absolute path to the directory of the filesystem object.\r\n */\r\n get parent(): DirectoryPath {\r\n return new DirectoryPath(this.parentPath)\r\n }\r\n\r\n /**\r\n * Returns a new DirectoryPath instance representing a subdirectory of this directory.\r\n * @param paths The path segments to join to the directory path.\r\n */\r\n subdir(...paths: string[]): DirectoryPath {\r\n return new DirectoryPath(path.join(this.dirpath, ...paths), true)\r\n }\r\n\r\n /**\r\n * Returns a new FilePath instance representing a file in this directory.\r\n * @param filename The name (including extension) of the file.\r\n */\r\n file(filename: string): FilePath {\r\n return new FilePath(path.join(this.dirpath, filename), true)\r\n }\r\n\r\n /**\r\n * Synchronously reads the directory with fs.readdir and returns its contents as as FsObject instances.\r\n * @throws If the path does not exist.\r\n */\r\n readdirSync(): AbstractFsPath[] {\r\n return fs.readdirSync(this.dirpath).map((filename: string) => {\r\n const absolute = path.join(this.dirpath, filename)\r\n const stat = fs.statSync(absolute)\r\n return instantiateCorrectFsPathSubclass(absolute, stat)\r\n })\r\n }\r\n\r\n /**\r\n * Asynchronously reads the directory with fs.promises.readdir and returns its contents as as FsObject instances.\r\n * @throws If the path does not exist.\r\n */\r\n async readdir(): Promise<AbstractFsPath[]> {\r\n return await Promise.all(\r\n (await fs.promises.readdir(this.dirpath)).map(async (filename: string) => {\r\n const absolute = path.join(this.dirpath, filename)\r\n const stat = await fs.promises.stat(absolute)\r\n return instantiateCorrectFsPathSubclass(absolute, stat)\r\n }),\r\n )\r\n }\r\n}\r\n","import { AbstractFsPath, DirectoryPath, FilePath } from '@bemoje/fspath'\r\n\r\nexport async function getLastMofifiedFileIn(dirpath: string, filter: (file: FilePath) => boolean): Promise<FilePath> {\r\n const dir = new DirectoryPath(dirpath)\r\n const children = await dir.readdir()\r\n const filtered: FilePath[] = children.filter(\r\n (p: AbstractFsPath) => p.isFilePath && filter(p as FilePath),\r\n ) as FilePath[]\r\n const withStat: [FilePath, number][] = await Promise.all(\r\n filtered.map(async (filepath) => [filepath, (await filepath.stat()).mtimeMs]),\r\n )\r\n const sorted = withStat.sort((a, b) => b[1] - a[1])\r\n return sorted[0][0]\r\n}\r\n","import path from 'path'\r\n\r\nexport function getRootDir() {\r\n return path.parse(process.cwd()).root\r\n}\r\n","export function isWindows() {\r\n return process.platform.includes('win')\r\n}\r\n","import fs from 'fs'\r\n\r\n/**\r\n * Reads a JSON file from the given filepath and returns its content as a Promise.\r\n * The Promise will resolve with the parsed JSON content as an object of type T.\r\n * @template T The expected return type of the JSON object.\r\n * @param filepath The path to the JSON file to read.\r\n * @returns A Promise that resolves with the parsed JSON content as an object of type T.\r\n * @throws Will throw an error if reading the file fails for any reason.\r\n * @example ```ts\r\n * const data: MyType = await readJsonFile<MyType>('path/to/myfile.json');\r\n * ```\r\n */\r\nexport async function readJsonFile<T>(filepath: string): Promise<T> {\r\n return JSON.parse(await fs.promises.readFile(filepath, 'utf8'))\r\n}\r\n","import fs from 'fs'\r\n\r\n/**\r\n * Reads a JSON file synchronously and returns a Promise that resolves with the parsed JSON data.\r\n * @template T The expected return type of the JSON data.\r\n * @param filepath The path to the JSON file to read.\r\n * @returns A Promise that resolves with the parsed JSON data.\r\n * @throws If the file cannot be read or the content cannot be parsed as JSON.\r\n * @example ```ts\r\n * const data = await readJsonFileSync<MyType>('/path/to/file.json');\r\n * console.log(data);\r\n * ```\r\n */\r\nexport function readJsonFileSync<T>(filepath: string): T {\r\n return JSON.parse(fs.readFileSync(filepath, 'utf8'))\r\n}\r\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { readJsonFileSync } from './readJsonFileSync'\r\n\r\nexport function readPackageJson(projectRoot = process.cwd()): Record<string, any> | undefined {\r\n const filepath = path.join(projectRoot, 'package.json')\r\n if (!fs.existsSync(filepath)) return\r\n return readJsonFileSync(filepath)\r\n}\r\n","export function removeIllegalFilenameCharacters(string: string) {\r\n return string.replace(/[/\\\\?%*:|\"<>]/g, '')\r\n}\r\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n","var wrappy = require('wrappy')\nmodule.exports = wrappy(once)\nmodule.exports.strict = wrappy(onceStrict)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n\n Object.defineProperty(Function.prototype, 'onceStrict', {\n value: function () {\n return onceStrict(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\nfunction onceStrict (fn) {\n var f = function () {\n if (f.called)\n throw new Error(f.onceError)\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n var name = fn.name || 'Function wrapped with `once`'\n f.onceError = name + \" shouldn't be called more than once\"\n f.called = false\n return f\n}\n","var once = require('once');\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar isChildProcess = function(stream) {\n\treturn stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\tvar cancelled = false;\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback.call(stream);\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback.call(stream);\n\t};\n\n\tvar onexit = function(exitCode) {\n\t\tcallback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);\n\t};\n\n\tvar onerror = function(err) {\n\t\tcallback.call(stream, err);\n\t};\n\n\tvar onclose = function() {\n\t\tprocess.nextTick(onclosenexttick);\n\t};\n\n\tvar onclosenexttick = function() {\n\t\tif (cancelled) return;\n\t\tif (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));\n\t\tif (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tif (isChildProcess(stream)) stream.on('exit', onexit);\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', onerror);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tcancelled = true;\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('exit', onexit);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', onerror);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n","var once = require('once')\nvar eos = require('end-of-stream')\nvar fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes\n\nvar noop = function () {}\nvar ancient = /^v?\\.0/.test(process.version)\n\nvar isFn = function (fn) {\n return typeof fn === 'function'\n}\n\nvar isFS = function (stream) {\n if (!ancient) return false // newer node version do not need to care about fs is a special way\n if (!fs) return false // browser\n return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)\n}\n\nvar isRequest = function (stream) {\n return stream.setHeader && isFn(stream.abort)\n}\n\nvar destroyer = function (stream, reading, writing, callback) {\n callback = once(callback)\n\n var closed = false\n stream.on('close', function () {\n closed = true\n })\n\n eos(stream, {readable: reading, writable: writing}, function (err) {\n if (err) return callback(err)\n closed = true\n callback()\n })\n\n var destroyed = false\n return function (err) {\n if (closed) return\n if (destroyed) return\n destroyed = true\n\n if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks\n if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want\n\n if (isFn(stream.destroy)) return stream.destroy()\n\n callback(err || new Error('stream was destroyed'))\n }\n}\n\nvar call = function (fn) {\n fn()\n}\n\nvar pipe = function (from, to) {\n return from.pipe(to)\n}\n\nvar pump = function () {\n var streams = Array.prototype.slice.call(arguments)\n var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop\n\n if (Array.isArray(streams[0])) streams = streams[0]\n if (streams.length < 2) throw new Error('pump requires two streams per minimum')\n\n var error\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1\n var writing = i > 0\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err\n if (err) destroys.forEach(call)\n if (reading) return\n destroys.forEach(call)\n callback(error)\n })\n })\n\n return streams.reduce(pipe)\n}\n\nmodule.exports = pump\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst pump = require('pump');\nconst bufferStream = require('./buffer-stream');\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\treturn Promise.reject(new Error('Expected a stream'));\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\n\tlet stream;\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\tstream = pump(inputStream, bufferStream(options), error => {\n\t\t\tif (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tresolve();\n\t\t});\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\n// TODO: Remove this for the next major release\nmodule.exports.default = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","module.exports = Pend;\n\nfunction Pend() {\n this.pending = 0;\n this.max = Infinity;\n this.listeners = [];\n this.waiting = [];\n this.error = null;\n}\n\nPend.prototype.go = function(fn) {\n if (this.pending < this.max) {\n pendGo(this, fn);\n } else {\n this.waiting.push(fn);\n }\n};\n\nPend.prototype.wait = function(cb) {\n if (this.pending === 0) {\n cb(this.error);\n } else {\n this.listeners.push(cb);\n }\n};\n\nPend.prototype.hold = function() {\n return pendHold(this);\n};\n\nfunction pendHold(self) {\n self.pending += 1;\n var called = false;\n return onCb;\n function onCb(err) {\n if (called) throw new Error(\"callback called twice\");\n called = true;\n self.error = self.error || err;\n self.pending -= 1;\n if (self.waiting.length > 0 && self.pending < self.max) {\n pendGo(self, self.waiting.shift());\n } else if (self.pending === 0) {\n var listeners = self.listeners;\n self.listeners = [];\n listeners.forEach(cbListener);\n }\n }\n function cbListener(listener) {\n listener(self.error);\n }\n}\n\nfunction pendGo(self, fn) {\n fn(pendHold(self));\n}\n","var fs = require('fs');\nvar util = require('util');\nvar stream = require('stream');\nvar Readable = stream.Readable;\nvar Writable = stream.Writable;\nvar PassThrough = stream.PassThrough;\nvar Pend = require('pend');\nvar EventEmitter = require('events').EventEmitter;\n\nexports.createFromBuffer = createFromBuffer;\nexports.createFromFd = createFromFd;\nexports.BufferSlicer = BufferSlicer;\nexports.FdSlicer = FdSlicer;\n\nutil.inherits(FdSlicer, EventEmitter);\nfunction FdSlicer(fd, options) {\n options = options || {};\n EventEmitter.call(this);\n\n this.fd = fd;\n this.pend = new Pend();\n this.pend.max = 1;\n this.refCount = 0;\n this.autoClose = !!options.autoClose;\n}\n\nFdSlicer.prototype.read = function(buffer, offset, length, position, callback) {\n var self = this;\n self.pend.go(function(cb) {\n fs.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {\n cb();\n callback(err, bytesRead, buffer);\n });\n });\n};\n\nFdSlicer.prototype.write = function(buffer, offset, length, position, callback) {\n var self = this;\n self.pend.go(function(cb) {\n fs.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {\n cb();\n callback(err, written, buffer);\n });\n });\n};\n\nFdSlicer.prototype.createReadStream = function(options) {\n return new ReadStream(this, options);\n};\n\nFdSlicer.prototype.createWriteStream = function(options) {\n return new WriteStream(this, options);\n};\n\nFdSlicer.prototype.ref = function() {\n this.refCount += 1;\n};\n\nFdSlicer.prototype.unref = function() {\n var self = this;\n self.refCount -= 1;\n\n if (self.refCount > 0) return;\n if (self.refCount < 0) throw new Error(\"invalid unref\");\n\n if (self.autoClose) {\n fs.close(self.fd, onCloseDone);\n }\n\n function onCloseDone(err) {\n if (err) {\n self.emit('error', err);\n } else {\n self.emit('close');\n }\n }\n};\n\nutil.inherits(ReadStream, Readable);\nfunction ReadStream(context, options) {\n options = options || {};\n Readable.call(this, options);\n\n this.context = context;\n this.context.ref();\n\n this.start = options.start || 0;\n this.endOffset = options.end;\n this.pos = this.start;\n this.destroyed = false;\n}\n\nReadStream.prototype._read = function(n) {\n var self = this;\n if (self.destroyed) return;\n\n var toRead = Math.min(self._readableState.highWaterMark, n);\n if (self.endOffset != null) {\n toRead = Math.min(toRead, self.endOffset - self.pos);\n }\n if (toRead <= 0) {\n self.destroyed = true;\n self.push(null);\n self.context.unref();\n return;\n }\n self.context.pend.go(function(cb) {\n if (self.destroyed) return cb();\n var buffer = new Buffer(toRead);\n fs.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {\n if (err) {\n self.destroy(err);\n } else if (bytesRead === 0) {\n self.destroyed = true;\n self.push(null);\n self.context.unref();\n } else {\n self.pos += bytesRead;\n self.push(buffer.slice(0, bytesRead));\n }\n cb();\n });\n });\n};\n\nReadStream.prototype.destroy = function(err) {\n if (this.destroyed) return;\n err = err || new Error(\"stream destroyed\");\n this.destroyed = true;\n this.emit('error', err);\n this.context.unref();\n};\n\nutil.inherits(WriteStream, Writable);\nfunction WriteStream(context, options) {\n options = options || {};\n Writable.call(this, options);\n\n this.context = context;\n this.context.ref();\n\n this.start = options.start || 0;\n this.endOffset = (options.end == null) ? Infinity : +options.end;\n this.bytesWritten = 0;\n this.pos = this.start;\n this.destroyed = false;\n\n this.on('finish', this.destroy.bind(this));\n}\n\nWriteStream.prototype._write = function(buffer, encoding, callback) {\n var self = this;\n if (self.destroyed) return;\n\n if (self.pos + buffer.length > self.endOffset) {\n var err = new Error(\"maximum file length exceeded\");\n err.code = 'ETOOBIG';\n self.destroy();\n callback(err);\n return;\n }\n self.context.pend.go(function(cb) {\n if (self.destroyed) return cb();\n fs.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {\n if (err) {\n self.destroy();\n cb();\n callback(err);\n } else {\n self.bytesWritten += bytes;\n self.pos += bytes;\n self.emit('progress');\n cb();\n callback();\n }\n });\n });\n};\n\nWriteStream.prototype.destroy = function() {\n if (this.destroyed) return;\n this.destroyed = true;\n this.context.unref();\n};\n\nutil.inherits(BufferSlicer, EventEmitter);\nfunction BufferSlicer(buffer, options) {\n EventEmitter.call(this);\n\n options = options || {};\n this.refCount = 0;\n this.buffer = buffer;\n this.maxChunkSize = options.maxChunkSize || Number.MAX_SAFE_INTEGER;\n}\n\nBufferSlicer.prototype.read = function(buffer, offset, length, position, callback) {\n var end = position + length;\n var delta = end - this.buffer.length;\n var written = (delta > 0) ? delta : length;\n this.buffer.copy(buffer, offset, position, end);\n setImmediate(function() {\n callback(null, written);\n });\n};\n\nBufferSlicer.prototype.write = function(buffer, offset, length, position, callback) {\n buffer.copy(this.buffer, position, offset, offset + length);\n setImmediate(function() {\n callback(null, length, buffer);\n });\n};\n\nBufferSlicer.prototype.createReadStream = function(options) {\n options = options || {};\n var readStream = new PassThrough(options);\n readStream.destroyed = false;\n readStream.start = options.start || 0;\n readStream.endOffset = options.end;\n // by the time this function returns, we'll be done.\n readStream.pos = readStream.endOffset || this.buffer.length;\n\n // respect the maxChunkSize option to slice up the chunk into smaller pieces.\n var entireSlice = this.buffer.slice(readStream.start, readStream.pos);\n var offset = 0;\n while (true) {\n var nextOffset = offset + this.maxChunkSize;\n if (nextOffset >= entireSlice.length) {\n // last chunk\n if (offset < entireSlice.length) {\n readStream.write(entireSlice.slice(offset, entireSlice.length));\n }\n break;\n }\n readStream.write(entireSlice.slice(offset, nextOffset));\n offset = nextOffset;\n }\n\n readStream.end();\n readStream.destroy = function() {\n readStream.destroyed = true;\n };\n return readStream;\n};\n\nBufferSlicer.prototype.createWriteStream = function(options) {\n var bufferSlicer = this;\n options = options || {};\n var writeStream = new Writable(options);\n writeStream.start = options.start || 0;\n writeStream.endOffset = (options.end == null) ? this.buffer.length : +options.end;\n writeStream.bytesWritten = 0;\n writeStream.pos = writeStream.start;\n writeStream.destroyed = false;\n writeStream._write = function(buffer, encoding, callback) {\n if (writeStream.destroyed) return;\n\n var end = writeStream.pos + buffer.length;\n if (end > writeStream.endOffset) {\n var err = new Error(\"maximum file length exceeded\");\n err.code = 'ETOOBIG';\n writeStream.destroyed = true;\n callback(err);\n return;\n }\n buffer.copy(bufferSlicer.buffer, writeStream.pos, 0, buffer.length);\n\n writeStream.bytesWritten += buffer.length;\n writeStream.pos = end;\n writeStream.emit('progress');\n callback();\n };\n writeStream.destroy = function() {\n writeStream.destroyed = true;\n };\n return writeStream;\n};\n\nBufferSlicer.prototype.ref = function() {\n this.refCount += 1;\n};\n\nBufferSlicer.prototype.unref = function() {\n this.refCount -= 1;\n\n if (this.refCount < 0) {\n throw new Error(\"invalid unref\");\n }\n};\n\nfunction createFromBuffer(buffer, options) {\n return new BufferSlicer(buffer, options);\n}\n\nfunction createFromFd(fd, options) {\n return new FdSlicer(fd, options);\n}\n","var Buffer = require('buffer').Buffer;\n\nvar CRC_TABLE = [\n 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,\n 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4,\n 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07,\n 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,\n 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856,\n 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,\n 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4,\n 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,\n 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3,\n 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a,\n 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599,\n 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,\n 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190,\n 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f,\n 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e,\n 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,\n 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed,\n 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,\n 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3,\n 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,\n 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a,\n 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5,\n 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010,\n 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,\n 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17,\n 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6,\n 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615,\n 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,\n 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344,\n 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,\n 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a,\n 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,\n 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1,\n 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c,\n 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef,\n 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,\n 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe,\n 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31,\n 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c,\n 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,\n 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b,\n 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,\n 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1,\n 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,\n 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278,\n 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7,\n 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66,\n 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,\n 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605,\n 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8,\n 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b,\n 0x2d02ef8d\n];\n\nif (typeof Int32Array !== 'undefined') {\n CRC_TABLE = new Int32Array(CRC_TABLE);\n}\n\nfunction ensureBuffer(input) {\n if (Buffer.isBuffer(input)) {\n return input;\n }\n\n var hasNewBufferAPI =\n typeof Buffer.alloc === \"function\" &&\n typeof Buffer.from === \"function\";\n\n if (typeof input === \"number\") {\n return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input);\n }\n else if (typeof input === \"string\") {\n return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input);\n }\n else {\n throw new Error(\"input must be buffer, number, or string, received \" +\n typeof input);\n }\n}\n\nfunction bufferizeInt(num) {\n var tmp = ensureBuffer(4);\n tmp.writeInt32BE(num, 0);\n return tmp;\n}\n\nfunction _crc32(buf, previous) {\n buf = ensureBuffer(buf);\n if (Buffer.isBuffer(previous)) {\n previous = previous.readUInt32BE(0);\n }\n var crc = ~~previous ^ -1;\n for (var n = 0; n < buf.length; n++) {\n crc = CRC_TABLE[(crc ^ buf[n]) & 0xff] ^ (crc >>> 8);\n }\n return (crc ^ -1);\n}\n\nfunction crc32() {\n return bufferizeInt(_crc32.apply(null, arguments));\n}\ncrc32.signed = function () {\n return _crc32.apply(null, arguments);\n};\ncrc32.unsigned = function () {\n return _crc32.apply(null, arguments) >>> 0;\n};\n\nmodule.exports = crc32;\n","var fs = require(\"fs\");\nvar zlib = require(\"zlib\");\nvar fd_slicer = require(\"fd-slicer\");\nvar crc32 = require(\"buffer-crc32\");\nvar util = require(\"util\");\nvar EventEmitter = require(\"events\").EventEmitter;\nvar Transform = require(\"stream\").Transform;\nvar PassThrough = require(\"stream\").PassThrough;\nvar Writable = require(\"stream\").Writable;\n\nexports.open = open;\nexports.fromFd = fromFd;\nexports.fromBuffer = fromBuffer;\nexports.fromRandomAccessReader = fromRandomAccessReader;\nexports.dosDateTimeToDate = dosDateTimeToDate;\nexports.validateFileName = validateFileName;\nexports.ZipFile = ZipFile;\nexports.Entry = Entry;\nexports.RandomAccessReader = RandomAccessReader;\n\nfunction open(path, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n if (options == null) options = {};\n if (options.autoClose == null) options.autoClose = true;\n if (options.lazyEntries == null) options.lazyEntries = false;\n if (options.decodeStrings == null) options.decodeStrings = true;\n if (options.validateEntrySizes == null) options.validateEntrySizes = true;\n if (options.strictFileNames == null) options.strictFileNames = false;\n if (callback == null) callback = defaultCallback;\n fs.open(path, \"r\", function(err, fd) {\n if (err) return callback(err);\n fromFd(fd, options, function(err, zipfile) {\n if (err) fs.close(fd, defaultCallback);\n callback(err, zipfile);\n });\n });\n}\n\nfunction fromFd(fd, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n if (options == null) options = {};\n if (options.autoClose == null) options.autoClose = false;\n if (options.lazyEntries == null) options.lazyEntries = false;\n if (options.decodeStrings == null) options.decodeStrings = true;\n if (options.validateEntrySizes == null) options.validateEntrySizes = true;\n if (options.strictFileNames == null) options.strictFileNames = false;\n if (callback == null) callback = defaultCallback;\n fs.fstat(fd, function(err, stats) {\n if (err) return callback(err);\n var reader = fd_slicer.createFromFd(fd, {autoClose: true});\n fromRandomAccessReader(reader, stats.size, options, callback);\n });\n}\n\nfunction fromBuffer(buffer, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n if (options == null) options = {};\n options.autoClose = false;\n if (options.lazyEntries == null) options.lazyEntries = false;\n if (options.decodeStrings == null) options.decodeStrings = true;\n if (options.validateEntrySizes == null) options.validateEntrySizes = true;\n if (options.strictFileNames == null) options.strictFileNames = false;\n // limit the max chunk size. see https://github.com/thejoshwolfe/yauzl/issues/87\n var reader = fd_slicer.createFromBuffer(buffer, {maxChunkSize: 0x10000});\n fromRandomAccessReader(reader, buffer.length, options, callback);\n}\n\nfunction fromRandomAccessReader(reader, totalSize, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = null;\n }\n if (options == null) options = {};\n if (options.autoClose == null) options.autoClose = true;\n if (options.lazyEntries == null) options.lazyEntries = false;\n if (options.decodeStrings == null) options.decodeStrings = true;\n var decodeStrings = !!options.decodeStrings;\n if (options.validateEntrySizes == null) options.validateEntrySizes = true;\n if (options.strictFileNames == null) options.strictFileNames = false;\n if (callback == null) callback = defaultCallback;\n if (typeof totalSize !== \"number\") throw new Error(\"expected totalSize parameter to be a number\");\n if (totalSize > Number.MAX_SAFE_INTEGER) {\n throw new Error(\"zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.\");\n }\n\n // the matching unref() call is in zipfile.close()\n reader.ref();\n\n // eocdr means End of Central Directory Record.\n // search backwards for the eocdr signature.\n // the last field of the eocdr is a variable-length comment.\n // the comment size is encoded in a 2-byte field in the eocdr, which we can't find without trudging backwards through the comment to find it.\n // as a consequence of this design decision, it's possible to have ambiguous zip file metadata if a coherent eocdr was in the comment.\n // we search backwards for a eocdr signature, and hope that whoever made the zip file was smart enough to forbid the eocdr signature in the comment.\n var eocdrWithoutCommentSize = 22;\n var maxCommentSize = 0xffff; // 2-byte size\n var bufferSize = Math.min(eocdrWithoutCommentSize + maxCommentSize, totalSize);\n var buffer = newBuffer(bufferSize);\n var bufferReadStart = totalSize - buffer.length;\n readAndAssertNoEof(reader, buffer, 0, bufferSize, bufferReadStart, function(err) {\n if (err) return callback(err);\n for (var i = bufferSize - eocdrWithoutCommentSize; i >= 0; i -= 1) {\n if (buffer.readUInt32LE(i) !== 0x06054b50) continue;\n // found eocdr\n var eocdrBuffer = buffer.slice(i);\n\n // 0 - End of central directory signature = 0x06054b50\n // 4 - Number of this disk\n var diskNumber = eocdrBuffer.readUInt16LE(4);\n if (diskNumber !== 0) {\n return callback(new Error(\"multi-disk zip files are not supported: found disk number: \" + diskNumber));\n }\n // 6 - Disk where central directory starts\n // 8 - Number of central directory records on this disk\n // 10 - Total number of central directory records\n var entryCount = eocdrBuffer.readUInt16LE(10);\n // 12 - Size of central directory (bytes)\n // 16 - Offset of start of central directory, relative to start of archive\n var centralDirectoryOffset = eocdrBuffer.readUInt32LE(16);\n // 20 - Comment length\n var commentLength = eocdrBuffer.readUInt16LE(20);\n var expectedCommentLength = eocdrBuffer.length - eocdrWithoutCommentSize;\n if (commentLength !== expectedCommentLength) {\n return callback(new Error(\"invalid comment length. expected: \" + expectedCommentLength + \". found: \" + commentLength));\n }\n // 22 - Comment\n // the encoding is always cp437.\n var comment = decodeStrings ? decodeBuffer(eocdrBuffer, 22, eocdrBuffer.length, false)\n : eocdrBuffer.slice(22);\n\n if (!(entryCount === 0xffff || centralDirectoryOffset === 0xffffffff)) {\n return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));\n }\n\n // ZIP64 format\n\n // ZIP64 Zip64 end of central directory locator\n var zip64EocdlBuffer = newBuffer(20);\n var zip64EocdlOffset = bufferReadStart + i - zip64EocdlBuffer.length;\n readAndAssertNoEof(reader, zip64EocdlBuffer, 0, zip64EocdlBuffer.length, zip64EocdlOffset, function(err) {\n if (err) return callback(err);\n\n // 0 - zip64 end of central dir locator signature = 0x07064b50\n if (zip64EocdlBuffer.readUInt32LE(0) !== 0x07064b50) {\n return callback(new Error(\"invalid zip64 end of central directory locator signature\"));\n }\n // 4 - number of the disk with the start of the zip64 end of central directory\n // 8 - relative offset of the zip64 end of central directory record\n var zip64EocdrOffset = readUInt64LE(zip64EocdlBuffer, 8);\n // 16 - total number of disks\n\n // ZIP64 end of central directory record\n var zip64EocdrBuffer = newBuffer(56);\n readAndAssertNoEof(reader, zip64EocdrBuffer, 0, zip64EocdrBuffer.length, zip64EocdrOffset, function(err) {\n if (err) return callback(err);\n\n // 0 - zip64 end of central dir signature 4 bytes (0x06064b50)\n if (zip64EocdrBuffer.readUInt32LE(0) !== 0x06064b50) {\n return callback(new Error(\"invalid zip64 end of central directory record signature\"));\n }\n // 4 - size of zip64 end of central directory record 8 bytes\n // 12 - version made by 2 bytes\n // 14 - version needed to extract 2 bytes\n // 16 - number of this disk 4 bytes\n // 20 - number of the disk with the start of the central directory 4 bytes\n // 24 - total number of entries in the central directory on this disk 8 bytes\n // 32 - total number of entries in the central directory 8 bytes\n entryCount = readUInt64LE(zip64EocdrBuffer, 32);\n // 40 - size of the central directory 8 bytes\n // 48 - offset of start of central directory with respect to the starting disk number 8 bytes\n centralDirectoryOffset = readUInt64LE(zip64EocdrBuffer, 48);\n // 56 - zip64 extensible data sector (variable size)\n return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));\n });\n });\n return;\n }\n callback(new Error(\"end of central directory record signature not found\"));\n });\n}\n\nutil.inherits(ZipFile, EventEmitter);\nfunction ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {\n var self = this;\n EventEmitter.call(self);\n self.reader = reader;\n // forward close events\n self.reader.on(\"error\", function(err) {\n // error closing the fd\n emitError(self, err);\n });\n self.reader.once(\"close\", function() {\n self.emit(\"close\");\n });\n self.readEntryCursor = centralDirectoryOffset;\n self.fileSize = fileSize;\n self.entryCount = entryCount;\n self.comment = comment;\n self.entriesRead = 0;\n self.autoClose = !!autoClose;\n self.lazyEntries = !!lazyEntries;\n self.decodeStrings = !!decodeStrings;\n self.validateEntrySizes = !!validateEntrySizes;\n self.strictFileNames = !!strictFileNames;\n self.isOpen = true;\n self.emittedError = false;\n\n if (!self.lazyEntries) self._readEntry();\n}\nZipFile.prototype.close = function() {\n if (!this.isOpen) return;\n this.isOpen = false;\n this.reader.unref();\n};\n\nfunction emitErrorAndAutoClose(self, err) {\n if (self.autoClose) self.close();\n emitError(self, err);\n}\nfunction emitError(self, err) {\n if (self.emittedError) return;\n self.emittedError = true;\n self.emit(\"error\", err);\n}\n\nZipFile.prototype.readEntry = function() {\n if (!this.lazyEntries) throw new Error(\"readEntry() called without lazyEntries:true\");\n this._readEntry();\n};\nZipFile.prototype._readEntry = function() {\n var self = this;\n if (self.entryCount === self.entriesRead) {\n // done with metadata\n setImmediate(function() {\n if (self.autoClose) self.close();\n if (self.emittedError) return;\n self.emit(\"end\");\n });\n return;\n }\n if (self.emittedError) return;\n var buffer = newBuffer(46);\n readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {\n if (err) return emitErrorAndAutoClose(self, err);\n if (self.emittedError) return;\n var entry = new Entry();\n // 0 - Central directory file header signature\n var signature = buffer.readUInt32LE(0);\n if (signature !== 0x02014b50) return emitErrorAndAutoClose(self, new Error(\"invalid central directory file header signature: 0x\" + signature.toString(16)));\n // 4 - Version made by\n entry.versionMadeBy = buffer.readUInt16LE(4);\n // 6 - Version needed to extract (minimum)\n entry.versionNeededToExtract = buffer.readUInt16LE(6);\n // 8 - General purpose bit flag\n entry.generalPurposeBitFlag = buffer.readUInt16LE(8);\n // 10 - Compression method\n entry.compressionMethod = buffer.readUInt16LE(10);\n // 12 - File last modification time\n entry.lastModFileTime = buffer.readUInt16LE(12);\n // 14 - File last modification date\n entry.lastModFileDate = buffer.readUInt16LE(14);\n // 16 - CRC-32\n entry.crc32 = buffer.readUInt32LE(16);\n // 20 - Compressed size\n entry.compressedSize = buffer.readUInt32LE(20);\n // 24 - Uncompressed size\n entry.uncompressedSize = buffer.readUInt32LE(24);\n // 28 - File name length (n)\n entry.fileNameLength = buffer.readUInt16LE(28);\n // 30 - Extra field length (m)\n entry.extraFieldLength = buffer.readUInt16LE(30);\n // 32 - File comment length (k)\n entry.fileCommentLength = buffer.readUInt16LE(32);\n // 34 - Disk number where file starts\n // 36 - Internal file attributes\n entry.internalFileAttributes = buffer.readUInt16LE(36);\n // 38 - External file attributes\n entry.externalFileAttributes = buffer.readUInt32LE(38);\n // 42 - Relative offset of local file header\n entry.relativeOffsetOfLocalHeader = buffer.readUInt32LE(42);\n\n if (entry.generalPurposeBitFlag & 0x40) return emitErrorAndAutoClose(self, new Error(\"strong encryption is not supported\"));\n\n self.readEntryCursor += 46;\n\n buffer = newBuffer(entry.fileNameLength + entry.extraFieldLength + entry.fileCommentLength);\n readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {\n if (err) return emitErrorAndAutoClose(self, err);\n if (self.emittedError) return;\n // 46 - File name\n var isUtf8 = (entry.generalPurposeBitFlag & 0x800) !== 0;\n entry.fileName = self.decodeStrings ? decodeBuffer(buffer, 0, entry.fileNameLength, isUtf8)\n : buffer.slice(0, entry.fileNameLength);\n\n // 46+n - Extra field\n var fileCommentStart = entry.fileNameLength + entry.extraFieldLength;\n var extraFieldBuffer = buffer.slice(entry.fileNameLength, fileCommentStart);\n entry.extraFields = [];\n var i = 0;\n while (i < extraFieldBuffer.length - 3) {\n var headerId = extraFieldBuffer.readUInt16LE(i + 0);\n var dataSize = extraFieldBuffer.readUInt16LE(i + 2);\n var dataStart = i + 4;\n var dataEnd = dataStart + dataSize;\n if (dataEnd > extraFieldBuffer.length) return emitErrorAndAutoClose(self, new Error(\"extra field length exceeds extra field buffer size\"));\n var dataBuffer = newBuffer(dataSize);\n extraFieldBuffer.copy(dataBuffer, 0, dataStart, dataEnd);\n entry.extraFields.push({\n id: headerId,\n data: dataBuffer,\n });\n i = dataEnd;\n }\n\n // 46+n+m - File comment\n entry.fileComment = self.decodeStrings ? decodeBuffer(buffer, fileCommentStart, fileCommentStart + entry.fileCommentLength, isUtf8)\n : buffer.slice(fileCommentStart, fileCommentStart + entry.fileCommentLength);\n // compatibility hack for https://github.com/thejoshwolfe/yauzl/issues/47\n entry.comment = entry.fileComment;\n\n self.readEntryCursor += buffer.length;\n self.entriesRead += 1;\n\n if (entry.uncompressedSize === 0xffffffff ||\n entry.compressedSize === 0xffffffff ||\n entry.relativeOffsetOfLocalHeader === 0xffffffff) {\n // ZIP64 format\n // find the Zip64 Extended Information Extra Field\n var zip64EiefBuffer = null;\n for (var i = 0; i < entry.extraFields.length; i++) {\n var extraField = entry.extraFields[i];\n if (extraField.id === 0x0001) {\n zip64EiefBuffer = extraField.data;\n break;\n }\n }\n if (zip64EiefBuffer == null) {\n return emitErrorAndAutoClose(self, new Error(\"expected zip64 extended information extra field\"));\n }\n var index = 0;\n // 0 - Original Size 8 bytes\n if (entry.uncompressedSize === 0xffffffff) {\n if (index + 8 > zip64EiefBuffer.length) {\n return emitErrorAndAutoClose(self, new Error(\"zip64 extended information extra field does not include uncompressed size\"));\n }\n entry.uncompressedSize = readUInt64LE(zip64EiefBuffer, index);\n index += 8;\n }\n // 8 - Compressed Size 8 bytes\n if (entry.compressedSize === 0xffffffff) {\n if (index + 8 > zip64EiefBuffer.length) {\n return emitErrorAndAutoClose(self, new Error(\"zip64 extended information extra field does not include compressed size\"));\n }\n entry.compressedSize = readUInt64LE(zip64EiefBuffer, index);\n index += 8;\n }\n // 16 - Relative Header Offset 8 bytes\n if (entry.relativeOffsetOfLocalHeader === 0xffffffff) {\n if (index + 8 > zip64EiefBuffer.length) {\n return emitErrorAndAutoClose(self, new Error(\"zip64 extended information extra field does not include relative header offset\"));\n }\n entry.relativeOffsetOfLocalHeader = readUInt64LE(zip64EiefBuffer, index);\n index += 8;\n }\n // 24 - Disk Start Number 4 bytes\n }\n\n // check for Info-ZIP Unicode Path Extra Field (0x7075)\n // see https://github.com/thejoshwolfe/yauzl/issues/33\n if (self.decodeStrings) {\n for (var i = 0; i < entry.extraFields.length; i++) {\n var extraField = entry.extraFields[i];\n if (extraField.id === 0x7075) {\n if (extraField.data.length < 6) {\n // too short to be meaningful\n continue;\n }\n // Version 1 byte version of this extra field, currently 1\n if (extraField.data.readUInt8(0) !== 1) {\n // > Changes may not be backward compatible so this extra\n // > field should not be used if the version is not recognized.\n continue;\n }\n // NameCRC32 4 bytes File Name Field CRC32 Checksum\n var oldNameCrc32 = extraField.data.readUInt32LE(1);\n if (crc32.unsigned(buffer.slice(0, entry.fileNameLength)) !== oldNameCrc32) {\n // > If the CRC check fails, this UTF-8 Path Extra Field should be\n // > ignored and the File Name field in the header should be used instead.\n continue;\n }\n // UnicodeName Variable UTF-8 version of the entry File Name\n entry.fileName = decodeBuffer(extraField.data, 5, extraField.data.length, true);\n break;\n }\n }\n }\n\n // validate file size\n if (self.validateEntrySizes && entry.compressionMethod === 0) {\n var expectedCompressedSize = entry.uncompressedSize;\n if (entry.isEncrypted()) {\n // traditional encryption prefixes the file data with a header\n expectedCompressedSize += 12;\n }\n if (entry.compressedSize !== expectedCompressedSize) {\n var msg = \"compressed/uncompressed size mismatch for stored file: \" + entry.compressedSize + \" != \" + entry.uncompressedSize;\n return emitErrorAndAutoClose(self, new Error(msg));\n }\n }\n\n if (self.decodeStrings) {\n if (!self.strictFileNames) {\n // allow backslash\n entry.fileName = entry.fileName.replace(/\\\\/g, \"/\");\n }\n var errorMessage = validateFileName(entry.fileName, self.validateFileNameOptions);\n if (errorMessage != null) return emitErrorAndAutoClose(self, new Error(errorMessage));\n }\n self.emit(\"entry\", entry);\n\n if (!self.lazyEntries) self._readEntry();\n });\n });\n};\n\nZipFile.prototype.openReadStream = function(entry, options, callback) {\n var self = this;\n // parameter validation\n var relativeStart = 0;\n var relativeEnd = entry.compressedSize;\n if (callback == null) {\n callback = options;\n options = {};\n } else {\n // validate options that the caller has no excuse to get wrong\n if (options.decrypt != null) {\n if (!entry.isEncrypted()) {\n throw new Error(\"options.decrypt can only be specified for encrypted entries\");\n }\n if (options.decrypt !== false) throw new Error(\"invalid options.decrypt value: \" + options.decrypt);\n if (entry.isCompressed()) {\n if (options.decompress !== false) throw new Error(\"entry is encrypted and compressed, and options.decompress !== false\");\n }\n }\n if (options.decompress != null) {\n if (!entry.isCompressed()) {\n throw new Error(\"options.decompress can only be specified for compressed entries\");\n }\n if (!(options.decompress === false || options.decompress === true)) {\n throw new Error(\"invalid options.decompress value: \" + options.decompress);\n }\n }\n if (options.start != null || options.end != null) {\n if (entry.isCompressed() && options.decompress !== false) {\n throw new Error(\"start/end range not allowed for compressed entry without options.decompress === false\");\n }\n if (entry.isEncrypted() && options.decrypt !== false) {\n throw new Error(\"start/end range not allowed for encrypted entry without options.decrypt === false\");\n }\n }\n if (options.start != null) {\n relativeStart = options.start;\n if (relativeStart < 0) throw new Error(\"options.start < 0\");\n if (relativeStart > entry.compressedSize) throw new Error(\"options.start > entry.compressedSize\");\n }\n if (options.end != null) {\n relativeEnd = options.end;\n if (relativeEnd < 0) throw new Error(\"options.end < 0\");\n if (relativeEnd > entry.compressedSize) throw new Error(\"options.end > entry.compressedSize\");\n if (relativeEnd < relativeStart) throw new Error(\"options.end < options.start\");\n }\n }\n // any further errors can either be caused by the zipfile,\n // or were introduced in a minor version of yauzl,\n // so should be passed to the client rather than thrown.\n if (!self.isOpen) return callback(new Error(\"closed\"));\n if (entry.isEncrypted()) {\n if (options.decrypt !== false) return callback(new Error(\"entry is encrypted, and options.decrypt !== false\"));\n }\n // make sure we don't lose the fd before we open the actual read stream\n self.reader.ref();\n var buffer = newBuffer(30);\n readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader, function(err) {\n try {\n if (err) return callback(err);\n // 0 - Local file header signature = 0x04034b50\n var signature = buffer.readUInt32LE(0);\n if (signature !== 0x04034b50) {\n return callback(new Error(\"invalid local file header signature: 0x\" + signature.toString(16)));\n }\n // all this should be redundant\n // 4 - Version needed to extract (minimum)\n // 6 - General purpose bit flag\n // 8 - Compression method\n // 10 - File last modification time\n // 12 - File last modification date\n // 14 - CRC-32\n // 18 - Compressed size\n // 22 - Uncompressed size\n // 26 - File name length (n)\n var fileNameLength = buffer.readUInt16LE(26);\n // 28 - Extra field length (m)\n var extraFieldLength = buffer.readUInt16LE(28);\n // 30 - File name\n // 30+n - Extra field\n var localFileHeaderEnd = entry.relativeOffsetOfLocalHeader + buffer.length + fileNameLength + extraFieldLength;\n var decompress;\n if (entry.compressionMethod === 0) {\n // 0 - The file is stored (no compression)\n decompress = false;\n } else if (entry.compressionMethod === 8) {\n // 8 - The file is Deflated\n decompress = options.decompress != null ? options.decompress : true;\n } else {\n return callback(new Error(\"unsupported compression method: \" + entry.compressionMethod));\n }\n var fileDataStart = localFileHeaderEnd;\n var fileDataEnd = fileDataStart + entry.compressedSize;\n if (entry.compressedSize !== 0) {\n // bounds check now, because the read streams will probably not complain loud enough.\n // since we're dealing with an unsigned offset plus an unsigned size,\n // we only have 1 thing to check for.\n if (fileDataEnd > self.fileSize) {\n return callback(new Error(\"file data overflows file bounds: \" +\n fileDataStart + \" + \" + entry.compressedSize + \" > \" + self.fileSize));\n }\n }\n var readStream = self.reader.createReadStream({\n start: fileDataStart + relativeStart,\n end: fileDataStart + relativeEnd,\n });\n var endpointStream = readStream;\n if (decompress) {\n var destroyed = false;\n var inflateFilter = zlib.createInflateRaw();\n readStream.on(\"error\", function(err) {\n // setImmediate here because errors can be emitted during the first call to pipe()\n setImmediate(function() {\n if (!destroyed) inflateFilter.emit(\"error\", err);\n });\n });\n readStream.pipe(inflateFilter);\n\n if (self.validateEntrySizes) {\n endpointStream = new AssertByteCountStream(entry.uncompressedSize);\n inflateFilter.on(\"error\", function(err) {\n // forward zlib errors to the client-visible stream\n setImmediate(function() {\n if (!destroyed) endpointStream.emit(\"error\", err);\n });\n });\n inflateFilter.pipe(endpointStream);\n } else {\n // the zlib filter is the client-visible stream\n endpointStream = inflateFilter;\n }\n // this is part of yauzl's API, so implement this function on the client-visible stream\n endpointStream.destroy = function() {\n destroyed = true;\n if (inflateFilter !== endpointStream) inflateFilter.unpipe(endpointStream);\n readStream.unpipe(inflateFilter);\n // TODO: the inflateFilter may cause a memory leak. see Issue #27.\n readStream.destroy();\n };\n }\n callback(null, endpointStream);\n } finally {\n self.reader.unref();\n }\n });\n};\n\nfunction Entry() {\n}\nEntry.prototype.getLastModDate = function() {\n return dosDateTimeToDate(this.lastModFileDate, this.lastModFileTime);\n};\nEntry.prototype.isEncrypted = function() {\n return (this.generalPurposeBitFlag & 0x1) !== 0;\n};\nEntry.prototype.isCompressed = function() {\n return this.compressionMethod === 8;\n};\n\nfunction dosDateTimeToDate(date, time) {\n var day = date & 0x1f; // 1-31\n var month = (date >> 5 & 0xf) - 1; // 1-12, 0-11\n var year = (date >> 9 & 0x7f) + 1980; // 0-128, 1980-2108\n\n var millisecond = 0;\n var second = (time & 0x1f) * 2; // 0-29, 0-58 (even numbers)\n var minute = time >> 5 & 0x3f; // 0-59\n var hour = time >> 11 & 0x1f; // 0-23\n\n return new Date(year, month, day, hour, minute, second, millisecond);\n}\n\nfunction validateFileName(fileName) {\n if (fileName.indexOf(\"\\\\\") !== -1) {\n return \"invalid characters in fileName: \" + fileName;\n }\n if (/^[a-zA-Z]:/.test(fileName) || /^\\//.test(fileName)) {\n return \"absolute path: \" + fileName;\n }\n if (fileName.split(\"/\").indexOf(\"..\") !== -1) {\n return \"invalid relative path: \" + fileName;\n }\n // all good\n return null;\n}\n\nfunction readAndAssertNoEof(reader, buffer, offset, length, position, callback) {\n if (length === 0) {\n // fs.read will throw an out-of-bounds error if you try to read 0 bytes from a 0 byte file\n return setImmediate(function() { callback(null, newBuffer(0)); });\n }\n reader.read(buffer, offset, length, position, function(err, bytesRead) {\n if (err) return callback(err);\n if (bytesRead < length) {\n return callback(new Error(\"unexpected EOF\"));\n }\n callback();\n });\n}\n\nutil.inherits(AssertByteCountStream, Transform);\nfunction AssertByteCountStream(byteCount) {\n Transform.call(this);\n this.actualByteCount = 0;\n this.expectedByteCount = byteCount;\n}\nAssertByteCountStream.prototype._transform = function(chunk, encoding, cb) {\n this.actualByteCount += chunk.length;\n if (this.actualByteCount > this.expectedByteCount) {\n var msg = \"too many bytes in the stream. expected \" + this.expectedByteCount + \". got at least \" + this.actualByteCount;\n return cb(new Error(msg));\n }\n cb(null, chunk);\n};\nAssertByteCountStream.prototype._flush = function(cb) {\n if (this.actualByteCount < this.expectedByteCount) {\n var msg = \"not enough bytes in the stream. expected \" + this.expectedByteCount + \". got only \" + this.actualByteCount;\n return cb(new Error(msg));\n }\n cb();\n};\n\nutil.inherits(RandomAccessReader, EventEmitter);\nfunction RandomAccessReader() {\n EventEmitter.call(this);\n this.refCount = 0;\n}\nRandomAccessReader.prototype.ref = function() {\n this.refCount += 1;\n};\nRandomAccessReader.prototype.unref = function() {\n var self = this;\n self.refCount -= 1;\n\n if (self.refCount > 0) return;\n if (self.refCount < 0) throw new Error(\"invalid unref\");\n\n self.close(onCloseDone);\n\n function onCloseDone(err) {\n if (err) return self.emit('error', err);\n self.emit('close');\n }\n};\nRandomAccessReader.prototype.createReadStream = function(options) {\n var start = options.start;\n var end = options.end;\n if (start === end) {\n var emptyStream = new PassThrough();\n setImmediate(function() {\n emptyStream.end();\n });\n return emptyStream;\n }\n var stream = this._readStreamForRange(start, end);\n\n var destroyed = false;\n var refUnrefFilter = new RefUnrefFilter(this);\n stream.on(\"error\", function(err) {\n setImmediate(function() {\n if (!destroyed) refUnrefFilter.emit(\"error\", err);\n });\n });\n refUnrefFilter.destroy = function() {\n stream.unpipe(refUnrefFilter);\n refUnrefFilter.unref();\n stream.destroy();\n };\n\n var byteCounter = new AssertByteCountStream(end - start);\n refUnrefFilter.on(\"error\", function(err) {\n setImmediate(function() {\n if (!destroyed) byteCounter.emit(\"error\", err);\n });\n });\n byteCounter.destroy = function() {\n destroyed = true;\n refUnrefFilter.unpipe(byteCounter);\n refUnrefFilter.destroy();\n };\n\n return stream.pipe(refUnrefFilter).pipe(byteCounter);\n};\nRandomAccessReader.prototype._readStreamForRange = function(start, end) {\n throw new Error(\"not implemented\");\n};\nRandomAccessReader.prototype.read = function(buffer, offset, length, position, callback) {\n var readStream = this.createReadStream({start: position, end: position + length});\n var writeStream = new Writable();\n var written = 0;\n writeStream._write = function(chunk, encoding, cb) {\n chunk.copy(buffer, offset + written, 0, chunk.length);\n written += chunk.length;\n cb();\n };\n writeStream.on(\"finish\", callback);\n readStream.on(\"error\", function(error) {\n callback(error);\n });\n readStream.pipe(writeStream);\n};\nRandomAccessReader.prototype.close = function(callback) {\n setImmediate(callback);\n};\n\nutil.inherits(RefUnrefFilter, PassThrough);\nfunction RefUnrefFilter(context) {\n PassThrough.call(this);\n this.context = context;\n this.context.ref();\n this.unreffedYet = false;\n}\nRefUnrefFilter.prototype._flush = function(cb) {\n this.unref();\n cb();\n};\nRefUnrefFilter.prototype.unref = function(cb) {\n if (this.unreffedYet) return;\n this.unreffedYet = true;\n this.context.unref();\n};\n\nvar cp437 = '\\u0000☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ';\nfunction decodeBuffer(buffer, start, end, isUtf8) {\n if (isUtf8) {\n return buffer.toString(\"utf8\", start, end);\n } else {\n var result = \"\";\n for (var i = start; i < end; i++) {\n result += cp437[buffer[i]];\n }\n return result;\n }\n}\n\nfunction readUInt64LE(buffer, offset) {\n // there is no native function for this, because we can't actually store 64-bit integers precisely.\n // after 53 bits, JavaScript's Number type (IEEE 754 double) can't store individual integers anymore.\n // but since 53 bits is a whole lot more than 32 bits, we do our best anyway.\n var lower32 = buffer.readUInt32LE(offset);\n var upper32 = buffer.readUInt32LE(offset + 4);\n // we can't use bitshifting here, because JavaScript bitshifting only works on 32-bit integers.\n return upper32 * 0x100000000 + lower32;\n // as long as we're bounds checking the result of this function against the total file size,\n // we'll catch any overflow errors, because we already made sure the total file size was within reason.\n}\n\n// Node 10 deprecated new Buffer().\nvar newBuffer;\nif (typeof Buffer.allocUnsafe === \"function\") {\n newBuffer = function(len) {\n return Buffer.allocUnsafe(len);\n };\n} else {\n newBuffer = function(len) {\n return new Buffer(len);\n };\n}\n\nfunction defaultCallback(err) {\n if (err) throw err;\n}\n","const debug = require('debug')('extract-zip')\n// eslint-disable-next-line node/no-unsupported-features/node-builtins\nconst { createWriteStream, promises: fs } = require('fs')\nconst getStream = require('get-stream')\nconst path = require('path')\nconst { promisify } = require('util')\nconst stream = require('stream')\nconst yauzl = require('yauzl')\n\nconst openZip = promisify(yauzl.open)\nconst pipeline = promisify(stream.pipeline)\n\nclass Extractor {\n constructor (zipPath, opts) {\n this.zipPath = zipPath\n this.opts = opts\n }\n\n async extract () {\n debug('opening', this.zipPath, 'with opts', this.opts)\n\n this.zipfile = await openZip(this.zipPath, { lazyEntries: true })\n this.canceled = false\n\n return new Promise((resolve, reject) => {\n this.zipfile.on('error', err => {\n this.canceled = true\n reject(err)\n })\n this.zipfile.readEntry()\n\n this.zipfile.on('close', () => {\n if (!this.canceled) {\n debug('zip extraction complete')\n resolve()\n }\n })\n\n this.zipfile.on('entry', async entry => {\n /* istanbul ignore if */\n if (this.canceled) {\n debug('skipping entry', entry.fileName, { cancelled: this.canceled })\n return\n }\n\n debug('zipfile entry', entry.fileName)\n\n if (entry.fileName.startsWith('__MACOSX/')) {\n this.zipfile.readEntry()\n return\n }\n\n const destDir = path.dirname(path.join(this.opts.dir, entry.fileName))\n\n try {\n await fs.mkdir(destDir, { recursive: true })\n\n const canonicalDestDir = await fs.realpath(destDir)\n const relativeDestDir = path.relative(this.opts.dir, canonicalDestDir)\n\n if (relativeDestDir.split(path.sep).includes('..')) {\n throw new Error(`Out of bound path \"${canonicalDestDir}\" found while processing file ${entry.fileName}`)\n }\n\n await this.extractEntry(entry)\n debug('finished processing', entry.fileName)\n this.zipfile.readEntry()\n } catch (err) {\n this.canceled = true\n this.zipfile.close()\n reject(err)\n }\n })\n })\n }\n\n async extractEntry (entry) {\n /* istanbul ignore if */\n if (this.canceled) {\n debug('skipping entry extraction', entry.fileName, { cancelled: this.canceled })\n return\n }\n\n if (this.opts.onEntry) {\n this.opts.onEntry(entry, this.zipfile)\n }\n\n const dest = path.join(this.opts.dir, entry.fileName)\n\n // convert external file attr int into a fs stat mode int\n const mode = (entry.externalFileAttributes >> 16) & 0xFFFF\n // check if it's a symlink or dir (using stat mode constants)\n const IFMT = 61440\n const IFDIR = 16384\n const IFLNK = 40960\n const symlink = (mode & IFMT) === IFLNK\n let isDir = (mode & IFMT) === IFDIR\n\n // Failsafe, borrowed from jsZip\n if (!isDir && entry.fileName.endsWith('/')) {\n isDir = true\n }\n\n // check for windows weird way of specifying a directory\n // https://github.com/maxogden/extract-zip/issues/13#issuecomment-154494566\n const madeBy = entry.versionMadeBy >> 8\n if (!isDir) isDir = (madeBy === 0 && entry.externalFileAttributes === 16)\n\n debug('extracting entry', { filename: entry.fileName, isDir: isDir, isSymlink: symlink })\n\n const procMode = this.getExtractedMode(mode, isDir) & 0o777\n\n // always ensure folders are created\n const destDir = isDir ? dest : path.dirname(dest)\n\n const mkdirOptions = { recursive: true }\n if (isDir) {\n mkdirOptions.mode = procMode\n }\n debug('mkdir', { dir: destDir, ...mkdirOptions })\n await fs.mkdir(destDir, mkdirOptions)\n if (isDir) return\n\n debug('opening read stream', dest)\n const readStream = await promisify(this.zipfile.openReadStream.bind(this.zipfile))(entry)\n\n if (symlink) {\n const link = await getStream(readStream)\n debug('creating symlink', link, dest)\n await fs.symlink(link, dest)\n } else {\n await pipeline(readStream, createWriteStream(dest, { mode: procMode }))\n }\n }\n\n getExtractedMode (entryMode, isDir) {\n let mode = entryMode\n // Set defaults, if necessary\n if (mode === 0) {\n if (isDir) {\n if (this.opts.defaultDirMode) {\n mode = parseInt(this.opts.defaultDirMode, 10)\n }\n\n if (!mode) {\n mode = 0o755\n }\n } else {\n if (this.opts.defaultFileMode) {\n mode = parseInt(this.opts.defaultFileMode, 10)\n }\n\n if (!mode) {\n mode = 0o644\n }\n }\n }\n\n return mode\n }\n}\n\nmodule.exports = async function (zipPath, opts) {\n debug('creating target directory', opts.dir)\n\n if (!path.isAbsolute(opts.dir)) {\n throw new Error('Target directory is expected to be absolute')\n }\n\n await fs.mkdir(opts.dir, { recursive: true })\n opts.dir = await fs.realpath(opts.dir)\n return new Extractor(zipPath, opts).extract()\n}\n","import extract from 'extract-zip'\r\n\r\nexport async function unzipFile(filepath: string, outdir: string) {\r\n await extract(filepath, { dir: outdir })\r\n}\r\n","import extract from 'extract-zip'\r\nimport fs from 'fs'\r\nimport path from 'path'\r\n\r\n/**\r\n * @param source Either a directory containing zip files or an array of zip file paths.\r\n */\r\nexport async function unzipMergeFiles(source: string | string[], target: string) {\r\n if (typeof source === 'string') {\r\n source = fs.readdirSync(source).map((filename) => {\r\n return path.join(source as string, filename)\r\n })\r\n }\r\n for (const filepath of source) {\r\n const stat = await fs.promises.stat(filepath)\r\n if (stat.isDirectory()) continue\r\n if (!filepath.endsWith('.zip')) continue\r\n await extract(filepath, { dir: target })\r\n }\r\n}\r\n","import { createDirectory } from './createDirectory'\r\nimport { deleteDirectorySafe } from './deleteDirectorySafe'\r\n\r\nexport async function wipeDirectorySafe(dirpath: string) {\r\n await deleteDirectorySafe(dirpath)\r\n await createDirectory(dirpath)\r\n}\r\n","import fs from 'fs'\n\n/**\n * Writes a JSON file to the specified filepath. The data to be written is passed as an argument.\n * If the 'pretty' argument is set to true, the JSON data will be formatted in a more human-readable way.\n * @template T - The type of the data to be written to the file.\n * @param filepath - The path to the file where the data should be written.\n * @param data - The data to be written to the file.\n * @param pretty - Optional. If set to true, formats the JSON data in a more human-readable way. Default is false.\n * @returns A Promise that resolves when the file has been successfully written.\n * @example ```ts\n * const data = { name: 'John', age: 30 };\n * await writeJsonFile('./data.json', data, true);\n * ```\n */\nexport async function writeJsonFile<T>(filepath: string, data: T, pretty = false): Promise<void> {\n await fs.promises.writeFile(filepath, JSON.stringify(data, null, pretty ? 2 : undefined))\n}\n","import fs from 'fs'\n\n/**\n * Writes a JSON object to a file synchronously.\n * @typeParam T - The type of the JSON object.\n * @param filepath - The path of the file where the JSON object will be written.\n * @param data - The JSON object that will be written to the file.\n * @param pretty - If true, the JSON object will be formatted with indentation and line breaks. Default is false.\n * @throws If the file cannot be written.\n * @example ```ts\n * const data = { name: 'John', age: 30 };\n * writeJsonFileSync('./data.json', data, true);\n * ```\n */\nexport function writeJsonFileSync<T>(filepath: string, data: T, pretty = false): void {\n fs.writeFileSync(filepath, JSON.stringify(data, null, pretty ? 2 : undefined))\n}\n"],"names":["regexEscapeString","str","replace","absoluteToRelativePath","absolute","workingDirectory","process","cwd","path","normalize","RegExp","sep","createDirectory","dirpath","fs","promises","mkdir","recursive","appendLineToFile","filepath","line","linebreakBefore","existsSync","dirname","writeFile","appendFile","cleanDirectorySync","predicate","filename","readdirSync","join","stat","statSync","unlinkSync","createDirectorySync","mkdirSync","normalizeFileExtension","ext","test","Error","includes","substring","lastIndexOf","createFileExtensionFilter","fileExtensions","length","map","extname","cwdpath","paths","deleteDirectory","rm","force","deleteDirectorySafe","deleteDirectorySafeSync","rmSync","deleteDirectorySync","ensureValidWindowsPath","options","throwOrFalse","msg","assert","indexOf","maxLength","extendedMaxLength","noDriveLetter","getDiskDrivesWindows","isWindows","execSync","toString","split","s","trim","filter","getHomeDirectory","home","resolve","env","HOME","USERPROFILE","getDownloadsDirectory","AbstractFsPath","String","constructor","_unsafe","isAbsolute","relative","root","parse","base","basename","name","parentPath","exists","isValidWindowsPath","toArray","relativeToArray","isDirectoryPath","isFilePath","isBlockDevicePath","isSymbolicLinkPath","isCharacterDevicePath","isFIFOPath","isSocketPath","isDirectory","isFile","isBlockDevice","isSymbolicLink","isCharacterDevice","isFIFO","isSocket","FilePath","parent","DirectoryPath","extension","readFileSync","encoding","readFile","readFileStringSync","readFileString","writeFileSync","data","BlockDevicePath","CharacterDevicePath","FIFOPath","SocketPath","SymbolicLinkPath","instantiateCorrectFsPathSubclass","subdir","file","readdir","Promise","all","__awaiter","getLastMofifiedFileIn","dir","children","filtered","p","withStat","mtimeMs","sorted","sort","a","b","getRootDir","platform","readJsonFile","JSON","readJsonFileSync","readPackageJson","projectRoot","removeIllegalFilenameCharacters","string","match","exec","n","parseFloat","type","toLowerCase","fmtShort","ms","msAbs","Math","abs","round","fmtLong","plural","isPlural","m","h","d","w","y","val","isFinite","long","stringify","setup","selectColor","namespace","hash","i","charCodeAt","createDebug","colors","debug","args","enabled","self","curr","Date","prevTime","diff","prev","coerce","unshift","index","format","formatter","formatters","call","splice","formatArgs","logFn","log","apply","namespacesCache","enabledCache","enableOverride","useColors","color","extend","destroy","Object","defineProperty","enumerable","configurable","get","namespaces","set","v","init","delimiter","newDebug","enable","save","names","skips","len","push","slice","disable","toNamespace","regexp","stack","message","console","warn","default","humanize","require$$0","keys","forEach","key","load","common","window","__nwjs","navigator","userAgent","document","documentElement","style","WebkitAppearance","firebug","exception","table","parseInt","$1","module","exports","c","lastC","storage","setItem","removeItem","error","r","getItem","DEBUG","localstorage","localStorage","warned","j","hasFlag","flag","argv","prefix","startsWith","position","terminatorPosition","translateLevel","level","hasBasic","has256","has16m","supportsColor","haveStream","streamIsTTY","forceColor","min","TERM","osRelease","os","release","some","sign","CI_NAME","TEAMCITY_VERSION","COLORTERM","version","TERM_PROGRAM_VERSION","TERM_PROGRAM","getSupportLevel","stream","isTTY","tty","require$$1","require$$2","FORCE_COLOR","supportsColor_1","stdout","isatty","stderr","inspectOpts","fd","colorCode","getDate","hideDate","toISOString","write","util","deprecate","reduce","obj","prop","_","k","toUpperCase","require$$3","o","inspect","O","srcModule","browser","wrappy_1","wrappy","wrappy$1","fn","cb","wrapper","Array","arguments","ret","TypeError","onceModule","once","strict","onceStrict","proto","Function","prototype","value","once$2","f","called","onceError","noop","noop$1","isRequest","isRequest$1","setHeader","abort","isChildProcess","stdio","isArray","eos","eos$1","opts","callback","ws","_writableState","rs","_readableState","readable","writable","cancelled","onlegacyfinish","onfinish","onend","onexit","exitCode","onerror","err","onclose","nextTick","onclosenexttick","ended","destroyed","onrequest","req","on","removeListener","endOfStream","ancient","isFn","isFS","ReadStream","WriteStream","close","destroyer","reading","writing","closed","pipe","from","to","pump","pump$1","streams","pop","destroys","pump_1","PassThrough","PassThroughStream","bufferStream","array","isBuffer","objectMode","setEncoding","chunks","chunk","getBufferedValue","Buffer","concat","getBufferedLength","constants","BufferConstants","MaxBufferError","getStream","getStream$1","inputStream","reject","maxBuffer","rejectPromise","MAX_LENGTH","bufferedData","getStreamModule","buffer","pend","Pend","Pend$1","pending","max","listeners","waiting","go","pendGo","wait","hold","pendHold","onCb","shift","cbListener","listener","Readable","Writable","EventEmitter","require$$4","fdSlicer","createFromBuffer","createFromFd","BufferSlicer","FdSlicer","inherits","refCount","autoClose","read","offset","bytesRead","written","createReadStream","createWriteStream","ref","unref","onCloseDone","emit","context","start","endOffset","end","pos","_read","toRead","highWaterMark","bytesWritten","bind","_write","code","bytes","maxChunkSize","Number","MAX_SAFE_INTEGER","delta","copy","setImmediate","readStream","nextOffset","entireSlice","bufferSlicer","writeStream","CRC_TABLE","Int32Array","ensureBuffer","input","hasNewBufferAPI","alloc","bufferizeInt","num","tmp","writeInt32BE","_crc32","buf","previous","readUInt32BE","crc","crc32","crc32$1","signed","unsigned","bufferCrc32","zlib","fd_slicer","require$$5","Transform","require$$6","yauzl","open","fromFd","fromBuffer","fromRandomAccessReader","dosDateTimeToDate","validateFileName","ZipFile","Entry","RandomAccessReader","lazyEntries","decodeStrings","validateEntrySizes","strictFileNames","defaultCallback","zipfile","fstat","stats","reader","size","totalSize","eocdrWithoutCommentSize","maxCommentSize","bufferSize","newBuffer","bufferReadStart","readAndAssertNoEof","readUInt32LE","eocdrBuffer","diskNumber","readUInt16LE","entryCount","centralDirectoryOffset","commentLength","expectedCommentLength","comment","decodeBuffer","zip64EocdlBuffer","zip64EocdlOffset","zip64EocdrOffset","readUInt64LE","zip64EocdrBuffer","fileSize","emitError","readEntryCursor","entriesRead","isOpen","emittedError","_readEntry","emitErrorAndAutoClose","readEntry","entry","signature","versionMadeBy","versionNeededToExtract","generalPurposeBitFlag","compressionMethod","lastModFileTime","lastModFileDate","compressedSize","uncompressedSize","fileNameLength","extraFieldLength","fileCommentLength","internalFileAttributes","externalFileAttributes","relativeOffsetOfLocalHeader","isUtf8","fileName","fileCommentStart","extraFieldBuffer","extraFields","headerId","dataSize","dataStart","dataEnd","dataBuffer","id","fileComment","extraField","zip64EiefBuffer","readUInt8","oldNameCrc32","expectedCompressedSize","isEncrypted","errorMessage","validateFileNameOptions","openReadStream","relativeStart","relativeEnd","decrypt","isCompressed","decompress","localFileHeaderEnd","fileDataStart","fileDataEnd","endpointStream","inflateFilter","createInflateRaw","AssertByteCountStream","unpipe","getLastModDate","date","time","day","month","year","millisecond","second","minute","hour","byteCount","actualByteCount","expectedByteCount","_transform","_flush","emptyStream","_readStreamForRange","refUnrefFilter","RefUnrefFilter","byteCounter","unreffedYet","cp437","result","lower32","upper32","allocUnsafe","promisify","openZip","pipeline","Extractor","zipPath","extract","canceled","destDir","canonicalDestDir","realpath","relativeDestDir","extractEntry","onEntry","dest","mode","IFMT","IFDIR","IFLNK","symlink","isDir","endsWith","madeBy","isSymlink","procMode","getExtractedMode","mkdirOptions","link","entryMode","defaultDirMode","defaultFileMode","extractZip","unzipFile","outdir","unzipMergeFiles","source","target","wipeDirectorySafe","writeJsonFile","pretty","writeJsonFileSync"],"mappings":";;;;kVAUM,QAAU,CAAAA,iBAAiBA,CAACC,GAAW,CAAA,CAC3C,MAAO,CAAAA,GAAG,CAACC,OAAO,CAAC,qBAAqB,CAAE,MAAM,CAClD,CCGM,QAAU,CAAAC,sBAAsBA,CAACC,QAAgB,CAAEC,gBAAgB,CAAGC,OAAO,CAACC,GAAG,CAAA,CAAE,CAAA,CACvF,MAAOC,CAAAA,MAAI,CACRC,SAAS,CAACL,QAAQ,CAAC,CACnBF,OAAO,CAAC,GAAI,CAAAQ,MAAM,CAACV,iBAAiB,CAACQ,MAAI,CAACC,SAAS,CAACJ,gBAAgB,CAAC,CAAGG,MAAI,CAACG,GAAG,CAAC,CAAE,GAAG,CAAC,CAAE,EAAE,CAChG,ssBCNM,QAAgB,CAAAC,eAAeA,CAACC,OAAe,CAAA,iDAEnD,MADA,MAAMC,CAAAA,IAAE,CAACC,QAAQ,CAACC,KAAK,CAACH,OAAO,CAAE,CAAEI,SAAS,GAAM,CAAE,CAAC,CAC9CJ,QACR,CAAA,CCFK,QAAgB,CAAAK,gBAAgBA,CAACC,QAAgB,CAAEC,IAAY,CAAEC,eAAe,GAAQ,CAAA,iDACvFP,IAAE,CAACQ,UAAU,CAACH,QAAQ,CAAC,GAC1B,KAAM,CAAAP,eAAe,CAACJ,MAAI,CAACe,OAAO,CAACJ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QAAgB,CAAAsqB,aAAaA,CAAIhqB,QAAgB,CAAEsG,IAAO,CAAE2jB,MAAM,GAAQ,CAAA,iDAC9E,KAAMtqB,CAAAA,IAAE,CAACC,QAAQ,CAACS,SAAS,CAACL,QAAQ,CAAEiI,IAAI,CAAC6B,SAAS,CAACxD,IAAI,CAAE,IAAI,CAAE2jB,MAAM,CAAG,CAAC,OAAY,CAAC,EACzF,CAAA,CCHK,QAAU,CAAAC,iBAAiBA,CAAIlqB,QAAgB,CAAEsG,IAAO,CAAE2jB,MAAM,GAAQ,CAAA,CAC5EtqB,IAAE,CAAC0G,aAAa,CAACrG,QAAQ,CAAEiI,IAAI,CAAC6B,SAAS,CAACxD,IAAI,CAAE,IAAI,CAAE2jB,MAAM,CAAG,CAAC,OAAY,CAAC,CAC/E","x_google_ignoreList":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/lib/absoluteToRelativePath.ts","../src/lib/createDirectory.ts","../src/lib/appendLineToFile.ts","../src/lib/cleanDirectorySync.ts","../src/lib/createDirectorySync.ts","../src/lib/normalizeFileExtension.ts","../src/lib/createFileExtensionFilter.ts","../src/lib/cwdpath.ts","../src/lib/deleteDirectory.ts","../src/lib/deleteDirectorySafe.ts","../src/lib/deleteDirectorySafeSync.ts","../src/lib/deleteDirectorySync.ts","../src/lib/ensureValidWindowsPath.ts","../src/lib/isWindows.ts","../src/lib/getDiskDrivesWindows.ts","../src/lib/getHomeDirectory.ts","../src/lib/getDownloadsDirectory.ts","../src/lib/getLastMofifiedFileIn.ts","../src/lib/getRootDir.ts","../src/lib/readJsonFile.ts","../src/lib/readJsonFileSync.ts","../src/lib/readPackageJson.ts","../src/lib/removeIllegalFilenameCharacters.ts","../src/lib/unzipFile.ts","../src/lib/unzipMergeFiles.ts","../src/lib/wipeDirectorySafe.ts","../src/lib/writeJsonFile.ts","../src/lib/writeJsonFileSync.ts"],"sourcesContent":["import { regexEscapeString } from '@bemoje/string'\r\nimport path from 'path'\r\n\r\n/**\r\n * If the filepath is somewhere in the current working directory, it can be converted into a relative path.\r\n * @remarks This function takes an absolute path as input and returns a relative path. It replaces the current working directory in the path with an empty string,\r\n * replaces all backslashes with forward slashes, and removes any leading forward slashes.\r\n * @param workingDirectory The directory relative to which the path should be converted. Defaults to the current working directory.\r\n * @returns The relative path.\r\n * @param absolute the absolute filepath to convert.\r\n * @example ```ts\r\n * absoluteToRelativePath(__filename)\r\n * //=> 'src/absoluteToRelativePath.ts'\r\n * ```\r\n */\r\nexport function absoluteToRelativePath(absolute: string, workingDirectory = process.cwd()): string {\r\n return path\r\n .normalize(absolute)\r\n .replace(new RegExp(regexEscapeString(path.normalize(workingDirectory) + path.sep), 'i'), '')\r\n}\r\n","import fs from 'fs'\n/**\n * Create a directory at a given path if it does not exist.\n * Automatically creates parent directories if they do not exist.\n * @param dirpath The path where the directory should be created.\n * @returns The path of the directory.\n * @throws Will throw an error if the directory cannot be created.\n * @example ```ts\n * createDirectory('/path/to/directory').then((dirpath) => {\n * //=> `Directory created at ${dirpath}`\n * });\n * ```\n */\nexport async function createDirectory(dirpath: string): Promise<string> {\n await fs.promises.mkdir(dirpath, { recursive: true })\n return dirpath\n}\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { createDirectory } from './createDirectory'\r\n\r\n/**\r\n * Append a line to a file. Creates the file if it does not exist.\r\n * @param filepath The path of the file.\r\n * @param line The string data to append.\r\n * @returns A Promise that resolves when the line has been appended to the file.\r\n * @throws Will throw an error if the operation fails.\r\n * @example ```ts\r\n * await appendLineToFile('/path/to/file', 'This is a new line')\r\n * ```\r\n */\r\nexport async function appendLineToFile(filepath: string, line: string, linebreakBefore = false): Promise<void> {\r\n if (!fs.existsSync(filepath)) {\r\n await createDirectory(path.dirname(filepath))\r\n await fs.promises.writeFile(filepath, '')\r\n }\r\n await fs.promises.appendFile(filepath, linebreakBefore ? '\\n' + line : line + '\\n')\r\n}\r\n","import type { Stats } from 'fs'\r\nimport fs from 'fs'\r\nimport path from 'path'\r\n\r\n/**\r\n * Synchronously cleans a directory by removing files that satisfy a given predicate.\r\n * @remarks This function is a part of the File System module.\r\n * @param dirpath - The path to the directory that needs to be cleaned.\r\n * @param predicate - A function that takes a filepath and its stats as arguments and returns a boolean. If the function returns true for a file, that file is removed from the directory.\r\n * @throws If the directory at the provided path does not exist or cannot be read.\r\n * @example ```ts\r\n * import { Stats } from 'fs';\r\n * const dirpath = './my-directory';\r\n * const predicate = (filepath: string, stat: Stats) => stat.size > 1024;\r\n * cleanDirectorySync(dirpath, predicate);\r\n * ```\r\n */\r\nexport function cleanDirectorySync(dirpath: string, predicate: (filepath: string, stat: Stats) => boolean): void {\r\n for (const filename of fs.readdirSync(dirpath)) {\r\n const filepath = path.join(dirpath, filename)\r\n const stat = fs.statSync(filepath)\r\n if (predicate(filepath, stat)) fs.unlinkSync(filepath)\r\n }\r\n}\r\n","import fs from 'fs'\n\n/**\n * Create a directory at a given path if it does not exist.\n * Automatically creates parent directories if they do not exist.\n * @param dirpath The path where the directory should be created.\n * @returns The path of the directory.\n * @example ```ts\n * createDirectorySync('/path/to/directory')\n * ```\n */\nexport function createDirectorySync(dirpath: string): string {\n fs.mkdirSync(dirpath, { recursive: true })\n return dirpath\n}\n","/**\r\n * Normalize a file extension to the form: .[ext]\r\n * Anything before the last \".\" is not returned.\r\n * @returns The normalized file extension.\r\n * @throws If the extension contains illegal characters.\r\n * @param ext file extension\r\n * @example ```ts\r\n * normalizeFileExtension('jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('.jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('..jpg');;\r\n * //=> '.jpg'\r\n * normalizeFileExtension('');;\r\n * //=> ''\r\n * normalizeFileExtension('.');;\r\n * //=> ''\r\n * normalizeFileExtension('jpg|png');;\r\n * //=> Error\r\n * ```\r\n */\r\nexport function normalizeFileExtension(ext: string): string {\r\n if (ext === '' || ext === '.') return ''\r\n if (/[<>\"|?*:]/g.test(ext)) {\r\n throw new Error(`Illegal characters in file extension: ${ext} | Illegal characters are: <>\"|?:*`)\r\n }\r\n if (!ext.includes('.')) return '.' + ext\r\n return ext.substring(ext.lastIndexOf('.'))\r\n}\r\n","import path from 'path'\nimport { normalizeFileExtension } from './normalizeFileExtension'\n\n/**\n * Takes a list of file extensions and returns a filter function that returns true if a filepath/filename passed to it contains one of the given file extensions.\n * @remarks If no file extensions are provided, the filter will always return true.\n * @returns A function that takes a filepath and returns true if the filepath has one of the specified file extensions, false otherwise.\n * @param fileExtensions file extensions\n * @example ```ts\n * createFileExtensionFilter('.ts', '.tsx')('index.ts');;\n * //=> true\n * createFileExtensionFilter('.ts', '.tsx')('index.js');;\n * //=> false\n * ```\n */\nexport function createFileExtensionFilter(...fileExtensions: string[]): (filepath: string) => boolean {\n if (!fileExtensions.length) return () => true\n return (filepath: string) => {\n for (const ext of fileExtensions.map(normalizeFileExtension)) {\n if (path.extname(filepath) === ext) {\n return true\n }\n }\n return false\n }\n}\n","import path from 'path'\r\n\r\n/**\r\n * Joins the given path segments to the current working directory path, and normalizes the resulting path.\r\n * @remarks\r\n * The function uses the `path.join` method from the Node.js `path` module, and the `process.cwd` method from the Node.js `process` module.\r\n * @param paths - The path segments to join to the current working directory path.\r\n * @returns The resulting path.\r\n * @example ```ts\r\n * console.log(cwdpath('src', 'index.ts'));\r\n * //=> '{working_directory}/src/index.ts'\r\n * ```\r\n */\r\nexport function cwdpath(...paths: string[]): string {\r\n return path.join(process.cwd(), ...paths)\r\n}\r\n","import fs from 'fs'\n\n/**\n * Deletes a directory and all of its contents.\n * @remarks This function uses Node.js's `fs.promises.rm` method with the `recursive` and `force` options set to `true`.\n * This means it will delete the directory and all of its contents, even if the directory is not empty.\n * @param dirpath The path to the directory to delete.\n * @returns A Promise that resolves when the directory has been deleted.\n * @throws Will throw an error if the directory does not exist, or if there was a problem deleting the directory.\n * @example ```ts\n * deleteDirectory('/path/to/directory');\n * ```\n */\nexport async function deleteDirectory(dirpath: string): Promise<void> {\n await fs.promises.rm(dirpath, { recursive: true, force: true })\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory safely if it exists.\n * @remarks This function uses Node.js' `fs.promises.rm` method with the `recursive` and `force` options set to `true`.\n * This means it will delete the directory and all its contents, even if the directory is not empty.\n * @param dirpath The path of the directory to delete.\n * @returns A promise that resolves to `void` when the directory has been deleted.\n * @throws Will throw an error if the `fs.promises.rm` operation fails.\n * @example ```ts\n * deleteDirectorySafe('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport async function deleteDirectorySafe(dirpath: string): Promise<void> {\n if (fs.existsSync(dirpath)) await fs.promises.rm(dirpath, { recursive: true, force: true })\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory synchronously in a safe manner. If the directory does not exist, it will simply return the directory path without throwing an error.\n * @param dirpath The path of the directory to be deleted.\n * @returns The path of the directory that was intended to be deleted.\n * @throws Will throw an error if the operation fails for reasons other than the directory not existing.\n * @example ```ts\n * deleteDirectorySafeSync('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport function deleteDirectorySafeSync(dirpath: string): string {\n if (!fs.existsSync(dirpath)) return dirpath\n fs.rmSync(dirpath, { recursive: true, force: true })\n return dirpath\n}\n","import fs from 'fs'\n\n/**\n * Deletes a directory synchronously.\n * @remarks This function uses Node.js's `fs.rmSync` method with the options `{ recursive: true, force: true }`.\n * @param dirpath The path of the directory to delete.\n * @returns The path of the deleted directory.\n * @throws Will throw an error if the directory does not exist or if the process lacks permissions to delete it.\n * @example ```ts\n * deleteDirectorySync('/path/to/directory');;\n * //=> undefined\n * ```\n */\nexport function deleteDirectorySync(dirpath: string): string {\n fs.rmSync(dirpath, { recursive: true, force: true })\n return dirpath\n}\n","import { IEnsureValidWindowsPathOptions } from './types/IEnsureValidWindowsPathOptions'\r\n\r\n/**\r\n * Check whether a provided windows filesystem path string is valid according to:\r\n * https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx\r\n * @param path The path to validate.\r\n * @returns A boolean indicating whether the path is valid. If the `assert` option is true, the function will throw an error instead of returning false.\r\n * @throws Will throw an error if the `assert` option is true and the path is invalid.\r\n * @param options An optional object that may contain the following properties:\r\n * - `assert`: If true, the function will throw an error if the path is invalid. Default is false.\r\n * - `extendedMaxLength`: If true, the function will allow paths up to 32767 characters long. Default is false.\r\n * @example ```ts\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt');;\r\n * //=> true\r\n * ensureValidWindowsPath('C:/Users/User/Documents/file.txt');;\r\n * //=> false\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt', { assert: true });;\r\n * //=> throws an error\r\n * ensureValidWindowsPath('C:\\\\Users\\\\User\\\\Documents\\\\file.txt', { extendedMaxLength: true });;\r\n * //=> true\r\n * ```\r\n */\r\nexport function ensureValidWindowsPath(path: string, options?: IEnsureValidWindowsPathOptions): boolean {\r\n const throwOrFalse = (msg: string) => {\r\n if (options && options.assert === true) {\r\n throw new Error(`Invalid windows path. ${msg} | input received: ${path}`)\r\n }\r\n return false\r\n }\r\n\r\n if (path.length === 0) {\r\n return throwOrFalse('Path string is length 0.')\r\n }\r\n\r\n if (path.indexOf('/') !== -1 && path.indexOf('\\\\') !== -1) {\r\n return throwOrFalse('Path contains both backslash and forward slash.')\r\n }\r\n\r\n const maxLength = (options && options.extendedMaxLength ? 32767 : 260) - 12\r\n if (path.length > maxLength) {\r\n return throwOrFalse(`Maximum length of ${maxLength} exceeded`)\r\n }\r\n\r\n let noDriveLetter = path\r\n if (/^\\w:(\\\\|\\/)/g.test(path)) {\r\n noDriveLetter = path.substring(2)\r\n }\r\n if (/[<>\"|?*:]/g.test(noDriveLetter)) {\r\n return throwOrFalse(`Illegal characters in: ${path} | Illegal characters are: <>\"|?:*`)\r\n }\r\n\r\n if (/(\\\\|\\/)(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])((\\\\|\\/)|$)/g.test(path)) {\r\n return throwOrFalse('Illegal name in path string')\r\n }\r\n\r\n return true\r\n}\r\n","export function isWindows() {\r\n return process.platform.includes('win')\r\n}\r\n","import { execSync } from 'child_process'\r\nimport path from 'path'\r\nimport { isWindows } from './isWindows'\r\n\r\nexport function getDiskDrivesWindows(): string[] {\r\n if (!isWindows()) throw new Error('This function is only available on Windows.')\r\n return execSync('wmic logicaldisk get name')\r\n .toString()\r\n .split('\\n')\r\n .map((s) => s.trim())\r\n .filter((s) => /^[a-z]:/i.test(s))\r\n .map((s) => s.substring(0, 2) + path.sep)\r\n}\r\n","import path from 'path'\r\n\r\nexport function getHomeDirectory(): string {\r\n const home = path.resolve(process.env['HOME'] || process.env['USERPROFILE'] || '')\r\n if (!home) throw new Error('Home directory not found')\r\n return home\r\n}\r\n","import path from 'path'\r\nimport { getHomeDirectory } from './getHomeDirectory'\r\n\r\nexport function getDownloadsDirectory() {\r\n return path.join(getHomeDirectory(), 'Downloads')\r\n}\r\n","import fs from 'fs'\r\nimport path from 'path'\r\n\r\nexport async function getLastMofifiedFileIn(dirpath: string): Promise<string> {\r\n const children = await fs.promises.readdir(dirpath)\r\n const filtered = children\r\n .map((fname: string) => {\r\n const fpath = path.join(dirpath, fname)\r\n const stat = fs.statSync(fpath)\r\n return [fpath, stat.mtimeMs, stat.isFile()]\r\n })\r\n .filter((a) => a[2]) as [string, number, boolean][]\r\n const sorted = filtered.sort((a, b) => b[1] - a[1])\r\n return sorted[0][0]\r\n}\r\n","import path from 'path'\r\n\r\nexport function getRootDir() {\r\n return path.parse(process.cwd()).root\r\n}\r\n","import fs from 'fs'\r\n\r\n/**\r\n * Reads a JSON file from the given filepath and returns its content as a Promise.\r\n * The Promise will resolve with the parsed JSON content as an object of type T.\r\n * @template T The expected return type of the JSON object.\r\n * @param filepath The path to the JSON file to read.\r\n * @returns A Promise that resolves with the parsed JSON content as an object of type T.\r\n * @throws Will throw an error if reading the file fails for any reason.\r\n * @example ```ts\r\n * const data: MyType = await readJsonFile<MyType>('path/to/myfile.json');\r\n * ```\r\n */\r\nexport async function readJsonFile<T>(filepath: string): Promise<T> {\r\n return JSON.parse(await fs.promises.readFile(filepath, 'utf8'))\r\n}\r\n","import fs from 'fs'\r\n\r\n/**\r\n * Reads a JSON file synchronously and returns a Promise that resolves with the parsed JSON data.\r\n * @template T The expected return type of the JSON data.\r\n * @param filepath The path to the JSON file to read.\r\n * @returns A Promise that resolves with the parsed JSON data.\r\n * @throws If the file cannot be read or the content cannot be parsed as JSON.\r\n * @example ```ts\r\n * const data = await readJsonFileSync<MyType>('/path/to/file.json');\r\n * console.log(data);\r\n * ```\r\n */\r\nexport function readJsonFileSync<T>(filepath: string): T {\r\n return JSON.parse(fs.readFileSync(filepath, 'utf8'))\r\n}\r\n","import fs from 'fs'\r\nimport path from 'path'\r\nimport { readJsonFileSync } from './readJsonFileSync'\r\n\r\nexport function readPackageJson(projectRoot = process.cwd()): Record<string, any> | undefined {\r\n const filepath = path.join(projectRoot, 'package.json')\r\n if (!fs.existsSync(filepath)) return\r\n return readJsonFileSync(filepath)\r\n}\r\n","export function removeIllegalFilenameCharacters(string: string) {\r\n return string.replace(/[/\\\\?%*:|\"<>]/g, '')\r\n}\r\n","import extract from 'extract-zip'\r\n\r\nexport async function unzipFile(filepath: string, outdir: string) {\r\n await extract(filepath, { dir: outdir })\r\n}\r\n","import extract from 'extract-zip'\r\nimport fs from 'fs'\r\nimport path from 'path'\r\n\r\n/**\r\n * @param source Either a directory containing zip files or an array of zip file paths.\r\n */\r\nexport async function unzipMergeFiles(source: string | string[], target: string) {\r\n if (typeof source === 'string') {\r\n source = fs.readdirSync(source).map((filename) => {\r\n return path.join(source as string, filename)\r\n })\r\n }\r\n for (const filepath of source) {\r\n const stat = await fs.promises.stat(filepath)\r\n if (stat.isDirectory()) continue\r\n if (!filepath.endsWith('.zip')) continue\r\n await extract(filepath, { dir: target })\r\n }\r\n}\r\n","import { createDirectory } from './createDirectory'\r\nimport { deleteDirectorySafe } from './deleteDirectorySafe'\r\n\r\nexport async function wipeDirectorySafe(dirpath: string) {\r\n await deleteDirectorySafe(dirpath)\r\n await createDirectory(dirpath)\r\n}\r\n","import fs from 'fs'\n\n/**\n * Writes a JSON file to the specified filepath. The data to be written is passed as an argument.\n * If the 'pretty' argument is set to true, the JSON data will be formatted in a more human-readable way.\n * @template T - The type of the data to be written to the file.\n * @param filepath - The path to the file where the data should be written.\n * @param data - The data to be written to the file.\n * @param pretty - Optional. If set to true, formats the JSON data in a more human-readable way. Default is false.\n * @returns A Promise that resolves when the file has been successfully written.\n * @example ```ts\n * const data = { name: 'John', age: 30 };\n * await writeJsonFile('./data.json', data, true);\n * ```\n */\nexport async function writeJsonFile<T>(filepath: string, data: T, pretty = false): Promise<void> {\n await fs.promises.writeFile(filepath, JSON.stringify(data, null, pretty ? 2 : undefined))\n}\n","import fs from 'fs'\n\n/**\n * Writes a JSON object to a file synchronously.\n * @typeParam T - The type of the JSON object.\n * @param filepath - The path of the file where the JSON object will be written.\n * @param data - The JSON object that will be written to the file.\n * @param pretty - If true, the JSON object will be formatted with indentation and line breaks. Default is false.\n * @throws If the file cannot be written.\n * @example ```ts\n * const data = { name: 'John', age: 30 };\n * writeJsonFileSync('./data.json', data, true);\n * ```\n */\nexport function writeJsonFileSync<T>(filepath: string, data: T, pretty = false): void {\n fs.writeFileSync(filepath, JSON.stringify(data, null, pretty ? 2 : undefined))\n}\n"],"names":["absoluteToRelativePath","absolute","workingDirectory","process","cwd","path","normalize","replace","RegExp","regexEscapeString","sep","createDirectory","dirpath","fs","promises","mkdir","recursive","appendLineToFile","filepath","line","linebreakBefore","existsSync","dirname","writeFile","appendFile","cleanDirectorySync","predicate","filename","readdirSync","join","stat","statSync","unlinkSync","createDirectorySync","mkdirSync","normalizeFileExtension","ext","test","Error","includes","substring","lastIndexOf","createFileExtensionFilter","fileExtensions","length","map","extname","cwdpath","paths","deleteDirectory","rm","force","deleteDirectorySafe","deleteDirectorySafeSync","rmSync","deleteDirectorySync","ensureValidWindowsPath","options","throwOrFalse","msg","assert","indexOf","maxLength","extendedMaxLength","noDriveLetter","isWindows","platform","getDiskDrivesWindows","execSync","toString","split","s","trim","filter","getHomeDirectory","home","resolve","env","HOME","USERPROFILE","getDownloadsDirectory","getLastMofifiedFileIn","children","readdir","filtered","fname","fpath","mtimeMs","isFile","a","sorted","sort","b","getRootDir","parse","root","readJsonFile","JSON","readFile","readJsonFileSync","readFileSync","readPackageJson","projectRoot","removeIllegalFilenameCharacters","string","unzipFile","outdir","extract","dir","unzipMergeFiles","source","target","isDirectory","endsWith","wipeDirectorySafe","writeJsonFile","data","pretty","stringify","writeJsonFileSync","writeFileSync"],"mappings":";;;;gKAeM,QAAU,CAAAA,sBAAsBA,CAACC,QAAgB,CAAEC,gBAAgB,CAAGC,OAAO,CAACC,GAAG,CAAA,CAAE,CAAA,CACvF,MAAO,CAAAC,IAAI,CACRC,SAAS,CAACL,QAAQ,CAAC,CACnBM,OAAO,CAAC,GAAI,CAAAC,MAAM,CAACC,iBAAiB,CAACJ,IAAI,CAACC,SAAS,CAACJ,gBAAgB,CAAC,CAAGG,IAAI,CAACK,GAAG,CAAC,CAAE,GAAG,CAAC,CAAE,EAAE,CAChG,ssBCNM,QAAgB,CAAAC,eAAeA,CAACC,OAAe,CAAA,iDAEnD,MADA,MAAM,CAAAC,EAAE,CAACC,QAAQ,CAACC,KAAK,CAACH,OAAO,CAAE,CAAEI,SAAS,GAAM,CAAE,CAAC,CAC9CJ,QACR,CAAA,CCFK,QAAgB,CAAAK,gBAAgBA,CAACC,QAAgB,CAAEC,IAAY,CAAEC,eAAe,GAAQ,CAAA,iDACvFP,EAAE,CAACQ,UAAU,CAACH,QAAQ,CAAC,GAC1B,KAAM,CAAAP,eAAe,CAACN,IAAI,CAACiB,OAAO,CAACJ,QAAQ,CAAC,CAAC,CAC7C,KAAM,CAAAL,EAAE,CAACC,QAAQ,CAACS,SAAS,CAACL,QAAQ,CAAE,EAAE,CAAC,EAE3C,KAAM,CAAAL,EAAE,CAACC,QAAQ,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