YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix #1506
Louis Beaumont0bb17e1e3dde
diff --git a/screenpipe-js/cli/bun.lockb b/screenpipe-js/cli/bun.lockbindex c0b6a0e8b..eb6c14ee4 100755Binary files a/screenpipe-js/cli/bun.lockb and b/screenpipe-js/cli/bun.lockb differdiff --git a/screenpipe-js/cli/dist/index.js b/screenpipe-js/cli/dist/index.jsindex 1757621d6..72ccf76c0 100755--- a/screenpipe-js/cli/dist/index.js+++ b/screenpipe-js/cli/dist/index.js@@ -18,6 +18,15 @@ var __toESM = (mod, isNodeMode, target) => {return to;};var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);+var __export = (target, all) => {+ for (var name in all)+ __defProp(target, name, {+ get: all[name],+ enumerable: true,+ configurable: true,+ set: (newValue) => all[name] = () => newValue+ });+};var __require = /* @__PURE__ */ createRequire(import.meta.url);// node_modules/commander/lib/error.js@@ -10100,7 +10109,7 @@ var require_defaults = __commonJS((exports, module) => {// node_modules/readable-stream/lib/ours/primordials.jsvar require_primordials = __commonJS((exports, module) => {- class AggregateError extends Error {+ class AggregateError2 extends Error {constructor(errors) {if (!Array.isArray(errors)) {throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);@@ -10116,7 +10125,7 @@ var require_primordials = __commonJS((exports, module) => {}}module.exports = {- AggregateError,+ AggregateError: AggregateError2,ArrayIsArray(self2) {return Array.isArray(self2);},@@ -10268,7 +10277,7 @@ var require_inspect = __commonJS((exports, module) => {var require_errors = __commonJS((exports, module) => {var { format, inspect } = require_inspect();var { AggregateError: CustomAggregateError } = require_primordials();- var AggregateError = globalThis.AggregateError || CustomAggregateError;+ var AggregateError2 = globalThis.AggregateError || CustomAggregateError;var kIsNodeError = Symbol("kIsNodeError");var kTypes = ["string",@@ -10356,7 +10365,7 @@ var require_errors = __commonJS((exports, module) => {outerError.errors.push(innerError);return outerError;}- const err = new AggregateError([outerError, innerError], outerError.message);+ const err = new AggregateError2([outerError, innerError], outerError.message);err.code = outerError.code;return err;}@@ -11081,14 +11090,14 @@ var require_util2 = __commonJS((exports, module) => {var {codes: { ERR_INVALID_ARG_TYPE }} = require_errors();- var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials();+ var { kResistStopPropagation, AggregateError: AggregateError2, SymbolDispose } = require_primordials();var AbortSignal = globalThis.AbortSignal || require_abort_controller().AbortSignal;var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;var AsyncFunction = Object.getPrototypeOf(async function() {}).constructor;- var Blob = globalThis.Blob || bufferModule.Blob;- var isBlob = typeof Blob !== "undefined" ? function isBlob(b2) {- return b2 instanceof Blob;+ var Blob2 = globalThis.Blob || bufferModule.Blob;+ var isBlob = typeof Blob2 !== "undefined" ? function isBlob(b2) {+ return b2 instanceof Blob2;} : function isBlob(b2) {return false;};@@ -11103,7 +11112,7 @@ var require_util2 = __commonJS((exports, module) => {}};module.exports = {- AggregateError,+ AggregateError: AggregateError2,kEmptyObject: Object.freeze({}),once(callback) {let called = false;@@ -14574,9 +14583,9 @@ var require_duplexify = __commonJS((exports, module) => {var Writable = require_writable();var { createDeferredPromise } = require_util2();var from = require_from();- var Blob = globalThis.Blob || bufferModule.Blob;- var isBlob = typeof Blob !== "undefined" ? function isBlob(b2) {- return b2 instanceof Blob;+ var Blob2 = globalThis.Blob || bufferModule.Blob;+ var isBlob = typeof Blob2 !== "undefined" ? function isBlob(b2) {+ return b2 instanceof Blob2;} : function isBlob(b2) {return false;};@@ -17137,10 +17146,10 @@ var require_brace_expressions = __commonJS((exports) => {var require_unescape = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.unescape = undefined;- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {+ var unescape2 = (s, { windowsPathsNoEscape = false } = {}) => {return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");};- exports.unescape = unescape;+ exports.unescape = unescape2;});// node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js@@ -27656,1936 +27665,12607 @@ var require_ignore2 = __commonJS((exports, module) => {module.exports.isPathValid = isPathValid;});-// node_modules/universalify/index.js-var require_universalify = __commonJS((exports) => {- exports.fromCallback = function(fn) {- return Object.defineProperty(function(...args) {- if (typeof args[args.length - 1] === "function")- fn.apply(this, args);- else {- return new Promise((resolve, reject) => {- args.push((err, res) => err != null ? reject(err) : resolve(res));- fn.apply(this, args);- });- }- }, "name", { value: fn.name });- };- exports.fromPromise = function(fn) {- return Object.defineProperty(function(...args) {- const cb = args[args.length - 1];- if (typeof cb !== "function")- return fn.apply(this, args);- else {- args.pop();- fn.apply(this, args).then((r2) => cb(null, r2), cb);- }- }, "name", { value: fn.name });- };-});--// node_modules/fs-extra/lib/fs/index.js-var require_fs = __commonJS((exports) => {- var u2 = require_universalify().fromCallback;- var fs4 = require_graceful_fs();- var api = [- "access",- "appendFile",- "chmod",- "chown",- "close",- "copyFile",- "cp",- "fchmod",- "fchown",- "fdatasync",- "fstat",- "fsync",- "ftruncate",- "futimes",- "glob",- "lchmod",- "lchown",- "lutimes",- "link",- "lstat",- "mkdir",- "mkdtemp",- "open",- "opendir",- "readdir",- "readFile",- "readlink",- "realpath",- "rename",- "rm",- "rmdir",- "stat",- "statfs",- "symlink",- "truncate",- "unlink",- "utimes",- "writeFile"- ].filter((key) => {- return typeof fs4[key] === "function";- });- Object.assign(exports, fs4);- api.forEach((method) => {- exports[method] = u2(fs4[method]);- });- exports.exists = function(filename, callback) {- if (typeof callback === "function") {- return fs4.exists(filename, callback);- }- return new Promise((resolve) => {- return fs4.exists(filename, resolve);- });- };- exports.read = function(fd, buffer, offset, length, position, callback) {- if (typeof callback === "function") {- return fs4.read(fd, buffer, offset, length, position, callback);- }- return new Promise((resolve, reject) => {- fs4.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {- if (err)- return reject(err);- resolve({ bytesRead, buffer: buffer2 });- });- });- };- exports.write = function(fd, buffer, ...args) {- if (typeof args[args.length - 1] === "function") {- return fs4.write(fd, buffer, ...args);- }- return new Promise((resolve, reject) => {- fs4.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {- if (err)- return reject(err);- resolve({ bytesWritten, buffer: buffer2 });- });+// node_modules/delayed-stream/lib/delayed_stream.js+var require_delayed_stream = __commonJS((exports, module) => {+ var Stream = __require("stream").Stream;+ var util2 = __require("util");+ module.exports = DelayedStream;+ function DelayedStream() {+ this.source = null;+ this.dataSize = 0;+ this.maxDataSize = 1024 * 1024;+ this.pauseStream = true;+ this._maxDataSizeExceeded = false;+ this._released = false;+ this._bufferedEvents = [];+ }+ util2.inherits(DelayedStream, Stream);+ DelayedStream.create = function(source, options) {+ var delayedStream = new this;+ options = options || {};+ for (var option in options) {+ delayedStream[option] = options[option];+ }+ delayedStream.source = source;+ var realEmit = source.emit;+ source.emit = function() {+ delayedStream._handleEmit(arguments);+ return realEmit.apply(source, arguments);+ };+ source.on("error", function() {});- };- exports.readv = function(fd, buffers, ...args) {- if (typeof args[args.length - 1] === "function") {- return fs4.readv(fd, buffers, ...args);+ if (delayedStream.pauseStream) {+ source.pause();}- return new Promise((resolve, reject) => {- fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {- if (err)- return reject(err);- resolve({ bytesRead, buffers: buffers2 });- });- });+ return delayedStream;};- exports.writev = function(fd, buffers, ...args) {- if (typeof args[args.length - 1] === "function") {- return fs4.writev(fd, buffers, ...args);+ Object.defineProperty(DelayedStream.prototype, "readable", {+ configurable: true,+ enumerable: true,+ get: function() {+ return this.source.readable;}- return new Promise((resolve, reject) => {- fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {- if (err)- return reject(err);- resolve({ bytesWritten, buffers: buffers2 });- });- });+ });+ DelayedStream.prototype.setEncoding = function() {+ return this.source.setEncoding.apply(this.source, arguments);};- if (typeof fs4.realpath.native === "function") {- exports.realpath.native = u2(fs4.realpath.native);- } else {- process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");- }-});--// node_modules/fs-extra/lib/mkdirs/utils.js-var require_utils2 = __commonJS((exports, module) => {- var path3 = __require("path");- exports.checkPath = function checkPath(pth) {- if (process.platform === "win32") {- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));- if (pathHasInvalidWinCharacters) {- const error = new Error(`Path contains invalid characters: ${pth}`);- error.code = "EINVAL";- throw error;- }+ DelayedStream.prototype.resume = function() {+ if (!this._released) {+ this.release();}+ this.source.resume();};-});--// node_modules/fs-extra/lib/mkdirs/make-dir.js-var require_make_dir = __commonJS((exports, module) => {- var fs4 = require_fs();- var { checkPath } = require_utils2();- var getMode = (options) => {- const defaults = { mode: 511 };- if (typeof options === "number")- return options;- return { ...defaults, ...options }.mode;- };- exports.makeDir = async (dir, options) => {- checkPath(dir);- return fs4.mkdir(dir, {- mode: getMode(options),- recursive: true- });+ DelayedStream.prototype.pause = function() {+ this.source.pause();};- exports.makeDirSync = (dir, options) => {- checkPath(dir);- return fs4.mkdirSync(dir, {- mode: getMode(options),- recursive: true- });+ DelayedStream.prototype.release = function() {+ this._released = true;+ this._bufferedEvents.forEach(function(args) {+ this.emit.apply(this, args);+ }.bind(this));+ this._bufferedEvents = [];};-});--// node_modules/fs-extra/lib/mkdirs/index.js-var require_mkdirs = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var { makeDir: _makeDir, makeDirSync } = require_make_dir();- var makeDir = u2(_makeDir);- module.exports = {- mkdirs: makeDir,- mkdirsSync: makeDirSync,- mkdirp: makeDir,- mkdirpSync: makeDirSync,- ensureDir: makeDir,- ensureDirSync: makeDirSync+ DelayedStream.prototype.pipe = function() {+ var r2 = Stream.prototype.pipe.apply(this, arguments);+ this.resume();+ return r2;};-});--// node_modules/fs-extra/lib/path-exists/index.js-var require_path_exists = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var fs4 = require_fs();- function pathExists(path3) {- return fs4.access(path3).then(() => true).catch(() => false);- }- module.exports = {- pathExists: u2(pathExists),- pathExistsSync: fs4.existsSync+ DelayedStream.prototype._handleEmit = function(args) {+ if (this._released) {+ this.emit.apply(this, args);+ return;+ }+ if (args[0] === "data") {+ this.dataSize += args[1].length;+ this._checkIfMaxDataSizeExceeded();+ }+ this._bufferedEvents.push(args);};-});--// node_modules/fs-extra/lib/util/utimes.js-var require_utimes = __commonJS((exports, module) => {- var fs4 = require_fs();- var u2 = require_universalify().fromPromise;- async function utimesMillis(path3, atime, mtime) {- const fd = await fs4.open(path3, "r+");- let closeErr = null;- try {- await fs4.futimes(fd, atime, mtime);- } finally {- try {- await fs4.close(fd);- } catch (e2) {- closeErr = e2;- }+ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {+ if (this._maxDataSizeExceeded) {+ return;}- if (closeErr) {- throw closeErr;+ if (this.dataSize <= this.maxDataSize) {+ return;}- }- function utimesMillisSync(path3, atime, mtime) {- const fd = fs4.openSync(path3, "r+");- fs4.futimesSync(fd, atime, mtime);- return fs4.closeSync(fd);- }- module.exports = {- utimesMillis: u2(utimesMillis),- utimesMillisSync+ this._maxDataSizeExceeded = true;+ var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded.";+ this.emit("error", new Error(message));};});-// node_modules/fs-extra/lib/util/stat.js-var require_stat = __commonJS((exports, module) => {- var fs4 = require_fs();- var path3 = __require("path");- var u2 = require_universalify().fromPromise;- function getStats(src, dest, opts) {- const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true });- return Promise.all([- statFunc(src),- statFunc(dest).catch((err) => {- if (err.code === "ENOENT")- return null;- throw err;- })- ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));- }- function getStatsSync(src, dest, opts) {- let destStat;- const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true });- const srcStat = statFunc(src);- try {- destStat = statFunc(dest);- } catch (err) {- if (err.code === "ENOENT")- return { srcStat, destStat: null };- throw err;- }- return { srcStat, destStat };+// node_modules/combined-stream/lib/combined_stream.js+var require_combined_stream = __commonJS((exports, module) => {+ var util2 = __require("util");+ var Stream = __require("stream").Stream;+ var DelayedStream = require_delayed_stream();+ module.exports = CombinedStream;+ function CombinedStream() {+ this.writable = false;+ this.readable = true;+ this.dataSize = 0;+ this.maxDataSize = 2 * 1024 * 1024;+ this.pauseStreams = true;+ this._released = false;+ this._streams = [];+ this._currentStream = null;+ this._insideLoop = false;+ this._pendingNext = false;}- async function checkPaths(src, dest, funcName, opts) {- const { srcStat, destStat } = await getStats(src, dest, opts);- if (destStat) {- if (areIdentical(srcStat, destStat)) {- const srcBaseName = path3.basename(src);- const destBaseName = path3.basename(dest);- if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {- return { srcStat, destStat, isChangingCase: true };- }- throw new Error("Source and destination must not be the same.");- }- if (srcStat.isDirectory() && !destStat.isDirectory()) {- throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);- }- if (!srcStat.isDirectory() && destStat.isDirectory()) {- throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);- }- }- if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {- throw new Error(errMsg(src, dest, funcName));+ util2.inherits(CombinedStream, Stream);+ CombinedStream.create = function(options) {+ var combinedStream = new this;+ options = options || {};+ for (var option in options) {+ combinedStream[option] = options[option];}- return { srcStat, destStat };- }- function checkPathsSync(src, dest, funcName, opts) {- const { srcStat, destStat } = getStatsSync(src, dest, opts);- if (destStat) {- if (areIdentical(srcStat, destStat)) {- const srcBaseName = path3.basename(src);- const destBaseName = path3.basename(dest);- if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {- return { srcStat, destStat, isChangingCase: true };- }- throw new Error("Source and destination must not be the same.");- }- if (srcStat.isDirectory() && !destStat.isDirectory()) {- throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);+ return combinedStream;+ };+ CombinedStream.isStreamLike = function(stream) {+ return typeof stream !== "function" && typeof stream !== "string" && typeof stream !== "boolean" && typeof stream !== "number" && !Buffer.isBuffer(stream);+ };+ CombinedStream.prototype.append = function(stream) {+ var isStreamLike = CombinedStream.isStreamLike(stream);+ if (isStreamLike) {+ if (!(stream instanceof DelayedStream)) {+ var newStream = DelayedStream.create(stream, {+ maxDataSize: Infinity,+ pauseStream: this.pauseStreams+ });+ stream.on("data", this._checkDataSize.bind(this));+ stream = newStream;}- if (!srcStat.isDirectory() && destStat.isDirectory()) {- throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);+ this._handleErrors(stream);+ if (this.pauseStreams) {+ stream.pause();}}- if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {- throw new Error(errMsg(src, dest, funcName));- }- return { srcStat, destStat };- }- async function checkParentPaths(src, srcStat, dest, funcName) {- const srcParent = path3.resolve(path3.dirname(src));- const destParent = path3.resolve(path3.dirname(dest));- if (destParent === srcParent || destParent === path3.parse(destParent).root)+ this._streams.push(stream);+ return this;+ };+ CombinedStream.prototype.pipe = function(dest, options) {+ Stream.prototype.pipe.call(this, dest, options);+ this.resume();+ return dest;+ };+ CombinedStream.prototype._getNext = function() {+ this._currentStream = null;+ if (this._insideLoop) {+ this._pendingNext = true;return;- let destStat;- try {- destStat = await fs4.stat(destParent, { bigint: true });- } catch (err) {- if (err.code === "ENOENT")- return;- throw err;- }- if (areIdentical(srcStat, destStat)) {- throw new Error(errMsg(src, dest, funcName));}- return checkParentPaths(src, srcStat, destParent, funcName);- }- function checkParentPathsSync(src, srcStat, dest, funcName) {- const srcParent = path3.resolve(path3.dirname(src));- const destParent = path3.resolve(path3.dirname(dest));- if (destParent === srcParent || destParent === path3.parse(destParent).root)- return;- let destStat;+ this._insideLoop = true;try {- destStat = fs4.statSync(destParent, { bigint: true });- } catch (err) {- if (err.code === "ENOENT")- return;- throw err;- }- if (areIdentical(srcStat, destStat)) {- throw new Error(errMsg(src, dest, funcName));+ do {+ this._pendingNext = false;+ this._realGetNext();+ } while (this._pendingNext);+ } finally {+ this._insideLoop = false;}- return checkParentPathsSync(src, srcStat, destParent, funcName);- }- function areIdentical(srcStat, destStat) {- return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;- }- function isSrcSubdir(src, dest) {- const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);- const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);- return srcArr.every((cur, i) => destArr[i] === cur);- }- function errMsg(src, dest, funcName) {- return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;- }- module.exports = {- checkPaths: u2(checkPaths),- checkPathsSync,- checkParentPaths: u2(checkParentPaths),- checkParentPathsSync,- isSrcSubdir,- areIdentical};-});--// node_modules/fs-extra/lib/copy/copy.js-var require_copy = __commonJS((exports, module) => {- var fs4 = require_fs();- var path3 = __require("path");- var { mkdirs } = require_mkdirs();- var { pathExists } = require_path_exists();- var { utimesMillis } = require_utimes();- var stat = require_stat();- async function copy(src, dest, opts = {}) {- if (typeof opts === "function") {- opts = { filter: opts };- }- opts.clobber = "clobber" in opts ? !!opts.clobber : true;- opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;- if (opts.preserveTimestamps && process.arch === "ia32") {- process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;--` + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");- }- const { srcStat, destStat } = await stat.checkPaths(src, dest, "copy", opts);- await stat.checkParentPaths(src, srcStat, dest, "copy");- const include = await runFilter(src, dest, opts);- if (!include)+ CombinedStream.prototype._realGetNext = function() {+ var stream = this._streams.shift();+ if (typeof stream == "undefined") {+ this.end();return;- const destParent = path3.dirname(dest);- const dirExists = await pathExists(destParent);- if (!dirExists) {- await mkdirs(destParent);- }- await getStatsAndPerformCopy(destStat, src, dest, opts);- }- async function runFilter(src, dest, opts) {- if (!opts.filter)- return true;- return opts.filter(src, dest);- }- async function getStatsAndPerformCopy(destStat, src, dest, opts) {- const statFn = opts.dereference ? fs4.stat : fs4.lstat;- const srcStat = await statFn(src);- if (srcStat.isDirectory())- return onDir(srcStat, destStat, src, dest, opts);- if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())- return onFile(srcStat, destStat, src, dest, opts);- if (srcStat.isSymbolicLink())- return onLink(destStat, src, dest, opts);- if (srcStat.isSocket())- throw new Error(`Cannot copy a socket file: ${src}`);- if (srcStat.isFIFO())- throw new Error(`Cannot copy a FIFO pipe: ${src}`);- throw new Error(`Unknown file: ${src}`);- }- async function onFile(srcStat, destStat, src, dest, opts) {- if (!destStat)- return copyFile(srcStat, src, dest, opts);- if (opts.overwrite) {- await fs4.unlink(dest);- return copyFile(srcStat, src, dest, opts);}- if (opts.errorOnExist) {- throw new Error(`'${dest}' already exists`);+ if (typeof stream !== "function") {+ this._pipeNext(stream);+ return;}- }- async function copyFile(srcStat, src, dest, opts) {- await fs4.copyFile(src, dest);- if (opts.preserveTimestamps) {- if (fileIsNotWritable(srcStat.mode)) {- await makeFileWritable(dest, srcStat.mode);+ var getStream = stream;+ getStream(function(stream2) {+ var isStreamLike = CombinedStream.isStreamLike(stream2);+ if (isStreamLike) {+ stream2.on("data", this._checkDataSize.bind(this));+ this._handleErrors(stream2);}- const updatedSrcStat = await fs4.stat(src);- await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);- }- return fs4.chmod(dest, srcStat.mode);- }- function fileIsNotWritable(srcMode) {- return (srcMode & 128) === 0;- }- function makeFileWritable(dest, srcMode) {- return fs4.chmod(dest, srcMode | 128);- }- async function onDir(srcStat, destStat, src, dest, opts) {- if (!destStat) {- await fs4.mkdir(dest);- }- const promises = [];- for await (const item of await fs4.opendir(src)) {- const srcItem = path3.join(src, item.name);- const destItem = path3.join(dest, item.name);- promises.push(runFilter(srcItem, destItem, opts).then((include) => {- if (include) {- return stat.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat: destStat2 }) => {- return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);- });- }- }));+ this._pipeNext(stream2);+ }.bind(this));+ };+ CombinedStream.prototype._pipeNext = function(stream) {+ this._currentStream = stream;+ var isStreamLike = CombinedStream.isStreamLike(stream);+ if (isStreamLike) {+ stream.on("end", this._getNext.bind(this));+ stream.pipe(this, { end: false });+ return;}- await Promise.all(promises);- if (!destStat) {- await fs4.chmod(dest, srcStat.mode);+ var value = stream;+ this.write(value);+ this._getNext();+ };+ CombinedStream.prototype._handleErrors = function(stream) {+ var self2 = this;+ stream.on("error", function(err) {+ self2._emitError(err);+ });+ };+ CombinedStream.prototype.write = function(data) {+ this.emit("data", data);+ };+ CombinedStream.prototype.pause = function() {+ if (!this.pauseStreams) {+ return;}- }- async function onLink(destStat, src, dest, opts) {- let resolvedSrc = await fs4.readlink(src);- if (opts.dereference) {- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);+ if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function")+ this._currentStream.pause();+ this.emit("pause");+ };+ CombinedStream.prototype.resume = function() {+ if (!this._released) {+ this._released = true;+ this.writable = true;+ this._getNext();}- if (!destStat) {- return fs4.symlink(resolvedSrc, dest);+ if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function")+ this._currentStream.resume();+ this.emit("resume");+ };+ CombinedStream.prototype.end = function() {+ this._reset();+ this.emit("end");+ };+ CombinedStream.prototype.destroy = function() {+ this._reset();+ this.emit("close");+ };+ CombinedStream.prototype._reset = function() {+ this.writable = false;+ this._streams = [];+ this._currentStream = null;+ };+ CombinedStream.prototype._checkDataSize = function() {+ this._updateDataSize();+ if (this.dataSize <= this.maxDataSize) {+ return;}- let resolvedDest = null;- try {- resolvedDest = await fs4.readlink(dest);- } catch (e2) {- if (e2.code === "EINVAL" || e2.code === "UNKNOWN")- return fs4.symlink(resolvedSrc, dest);- throw e2;+ var message = "DelayedStream#maxDataSize of " + this.maxDataSize + " bytes exceeded.";+ this._emitError(new Error(message));+ };+ CombinedStream.prototype._updateDataSize = function() {+ this.dataSize = 0;+ var self2 = this;+ this._streams.forEach(function(stream) {+ if (!stream.dataSize) {+ return;+ }+ self2.dataSize += stream.dataSize;+ });+ if (this._currentStream && this._currentStream.dataSize) {+ this.dataSize += this._currentStream.dataSize;}- if (opts.dereference) {- resolvedDest = path3.resolve(process.cwd(), resolvedDest);- }- if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {- throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);- }- if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {- throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);- }- await fs4.unlink(dest);- return fs4.symlink(resolvedSrc, dest);- }- module.exports = copy;-});--// node_modules/fs-extra/lib/copy/copy-sync.js-var require_copy_sync = __commonJS((exports, module) => {- var fs4 = require_graceful_fs();- var path3 = __require("path");- var mkdirsSync = require_mkdirs().mkdirsSync;- var utimesMillisSync = require_utimes().utimesMillisSync;- var stat = require_stat();- function copySync(src, dest, opts) {- if (typeof opts === "function") {- opts = { filter: opts };- }- opts = opts || {};- opts.clobber = "clobber" in opts ? !!opts.clobber : true;- opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;- if (opts.preserveTimestamps && process.arch === "ia32") {- process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;--` + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");- }- const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);- stat.checkParentPathsSync(src, srcStat, dest, "copy");- if (opts.filter && !opts.filter(src, dest))- return;- const destParent = path3.dirname(dest);- if (!fs4.existsSync(destParent))- mkdirsSync(destParent);- return getStats(destStat, src, dest, opts);- }- function getStats(destStat, src, dest, opts) {- const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync;- const srcStat = statSync(src);- if (srcStat.isDirectory())- return onDir(srcStat, destStat, src, dest, opts);- else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())- return onFile(srcStat, destStat, src, dest, opts);- else if (srcStat.isSymbolicLink())- return onLink(destStat, src, dest, opts);- else if (srcStat.isSocket())- throw new Error(`Cannot copy a socket file: ${src}`);- else if (srcStat.isFIFO())- throw new Error(`Cannot copy a FIFO pipe: ${src}`);- throw new Error(`Unknown file: ${src}`);- }- function onFile(srcStat, destStat, src, dest, opts) {- if (!destStat)- return copyFile(srcStat, src, dest, opts);- return mayCopyFile(srcStat, src, dest, opts);- }- function mayCopyFile(srcStat, src, dest, opts) {- if (opts.overwrite) {- fs4.unlinkSync(dest);- return copyFile(srcStat, src, dest, opts);- } else if (opts.errorOnExist) {- throw new Error(`'${dest}' already exists`);- }- }- function copyFile(srcStat, src, dest, opts) {- fs4.copyFileSync(src, dest);- if (opts.preserveTimestamps)- handleTimestamps(srcStat.mode, src, dest);- return setDestMode(dest, srcStat.mode);- }- function handleTimestamps(srcMode, src, dest) {- if (fileIsNotWritable(srcMode))- makeFileWritable(dest, srcMode);- return setDestTimestamps(src, dest);- }- function fileIsNotWritable(srcMode) {- return (srcMode & 128) === 0;- }- function makeFileWritable(dest, srcMode) {- return setDestMode(dest, srcMode | 128);- }- function setDestMode(dest, srcMode) {- return fs4.chmodSync(dest, srcMode);- }- function setDestTimestamps(src, dest) {- const updatedSrcStat = fs4.statSync(src);- return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);- }- function onDir(srcStat, destStat, src, dest, opts) {- if (!destStat)- return mkDirAndCopy(srcStat.mode, src, dest, opts);- return copyDir(src, dest, opts);- }- function mkDirAndCopy(srcMode, src, dest, opts) {- fs4.mkdirSync(dest);- copyDir(src, dest, opts);- return setDestMode(dest, srcMode);- }- function copyDir(src, dest, opts) {- const dir = fs4.opendirSync(src);- try {- let dirent;- while ((dirent = dir.readSync()) !== null) {- copyDirItem(dirent.name, src, dest, opts);- }- } finally {- dir.closeSync();- }- }- function copyDirItem(item, src, dest, opts) {- const srcItem = path3.join(src, item);- const destItem = path3.join(dest, item);- if (opts.filter && !opts.filter(srcItem, destItem))- return;- const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);- return getStats(destStat, srcItem, destItem, opts);- }- function onLink(destStat, src, dest, opts) {- let resolvedSrc = fs4.readlinkSync(src);- if (opts.dereference) {- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);- }- if (!destStat) {- return fs4.symlinkSync(resolvedSrc, dest);- } else {- let resolvedDest;- try {- resolvedDest = fs4.readlinkSync(dest);- } catch (err) {- if (err.code === "EINVAL" || err.code === "UNKNOWN")- return fs4.symlinkSync(resolvedSrc, dest);- throw err;- }- if (opts.dereference) {- resolvedDest = path3.resolve(process.cwd(), resolvedDest);- }- if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {- throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);- }- if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {- throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);- }- return copyLink(resolvedSrc, dest);- }- }- function copyLink(resolvedSrc, dest) {- fs4.unlinkSync(dest);- return fs4.symlinkSync(resolvedSrc, dest);- }- module.exports = copySync;-});--// node_modules/fs-extra/lib/copy/index.js-var require_copy2 = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- module.exports = {- copy: u2(require_copy()),- copySync: require_copy_sync()- };-});--// node_modules/fs-extra/lib/remove/index.js-var require_remove = __commonJS((exports, module) => {- var fs4 = require_graceful_fs();- var u2 = require_universalify().fromCallback;- function remove(path3, callback) {- fs4.rm(path3, { recursive: true, force: true }, callback);- }- function removeSync(path3) {- fs4.rmSync(path3, { recursive: true, force: true });- }- module.exports = {- remove: u2(remove),- removeSync- };-});--// node_modules/fs-extra/lib/empty/index.js-var require_empty = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var fs4 = require_fs();- var path3 = __require("path");- var mkdir = require_mkdirs();- var remove = require_remove();- var emptyDir = u2(async function emptyDir(dir) {- let items;- try {- items = await fs4.readdir(dir);- } catch {- return mkdir.mkdirs(dir);- }- return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));- });- function emptyDirSync(dir) {- let items;- try {- items = fs4.readdirSync(dir);- } catch {- return mkdir.mkdirsSync(dir);- }- items.forEach((item) => {- item = path3.join(dir, item);- remove.removeSync(item);- });- }- module.exports = {- emptyDirSync,- emptydirSync: emptyDirSync,- emptyDir,- emptydir: emptyDir- };-});--// node_modules/fs-extra/lib/ensure/file.js-var require_file2 = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var path3 = __require("path");- var fs4 = require_fs();- var mkdir = require_mkdirs();- async function createFile(file) {- let stats;- try {- stats = await fs4.stat(file);- } catch {- }- if (stats && stats.isFile())- return;- const dir = path3.dirname(file);- let dirStats = null;- try {- dirStats = await fs4.stat(dir);- } catch (err) {- if (err.code === "ENOENT") {- await mkdir.mkdirs(dir);- await fs4.writeFile(file, "");- return;- } else {- throw err;- }- }- if (dirStats.isDirectory()) {- await fs4.writeFile(file, "");- } else {- await fs4.readdir(dir);- }- }- function createFileSync(file) {- let stats;- try {- stats = fs4.statSync(file);- } catch {- }- if (stats && stats.isFile())- return;- const dir = path3.dirname(file);- try {- if (!fs4.statSync(dir).isDirectory()) {- fs4.readdirSync(dir);- }- } catch (err) {- if (err && err.code === "ENOENT")- mkdir.mkdirsSync(dir);- else- throw err;- }- fs4.writeFileSync(file, "");- }- module.exports = {- createFile: u2(createFile),- createFileSync- };-});--// node_modules/fs-extra/lib/ensure/link.js-var require_link = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var path3 = __require("path");- var fs4 = require_fs();- var mkdir = require_mkdirs();- var { pathExists } = require_path_exists();- var { areIdentical } = require_stat();- async function createLink(srcpath, dstpath) {- let dstStat;- try {- dstStat = await fs4.lstat(dstpath);- } catch {- }- let srcStat;- try {- srcStat = await fs4.lstat(srcpath);- } catch (err) {- err.message = err.message.replace("lstat", "ensureLink");- throw err;- }- if (dstStat && areIdentical(srcStat, dstStat))- return;- const dir = path3.dirname(dstpath);- const dirExists = await pathExists(dir);- if (!dirExists) {- await mkdir.mkdirs(dir);- }- await fs4.link(srcpath, dstpath);- }- function createLinkSync(srcpath, dstpath) {- let dstStat;- try {- dstStat = fs4.lstatSync(dstpath);- } catch {- }- try {- const srcStat = fs4.lstatSync(srcpath);- if (dstStat && areIdentical(srcStat, dstStat))- return;- } catch (err) {- err.message = err.message.replace("lstat", "ensureLink");- throw err;- }- const dir = path3.dirname(dstpath);- const dirExists = fs4.existsSync(dir);- if (dirExists)- return fs4.linkSync(srcpath, dstpath);- mkdir.mkdirsSync(dir);- return fs4.linkSync(srcpath, dstpath);- }- module.exports = {- createLink: u2(createLink),- createLinkSync- };-});--// node_modules/fs-extra/lib/ensure/symlink-paths.js-var require_symlink_paths = __commonJS((exports, module) => {- var path3 = __require("path");- var fs4 = require_fs();- var { pathExists } = require_path_exists();- var u2 = require_universalify().fromPromise;- async function symlinkPaths(srcpath, dstpath) {- if (path3.isAbsolute(srcpath)) {- try {- await fs4.lstat(srcpath);- } catch (err) {- err.message = err.message.replace("lstat", "ensureSymlink");- throw err;- }- return {- toCwd: srcpath,- toDst: srcpath- };- }- const dstdir = path3.dirname(dstpath);- const relativeToDst = path3.join(dstdir, srcpath);- const exists = await pathExists(relativeToDst);- if (exists) {- return {- toCwd: relativeToDst,- toDst: srcpath- };- }- try {- await fs4.lstat(srcpath);- } catch (err) {- err.message = err.message.replace("lstat", "ensureSymlink");- throw err;- }- return {- toCwd: srcpath,- toDst: path3.relative(dstdir, srcpath)- };- }- function symlinkPathsSync(srcpath, dstpath) {- if (path3.isAbsolute(srcpath)) {- const exists2 = fs4.existsSync(srcpath);- if (!exists2)- throw new Error("absolute srcpath does not exist");- return {- toCwd: srcpath,- toDst: srcpath- };- }- const dstdir = path3.dirname(dstpath);- const relativeToDst = path3.join(dstdir, srcpath);- const exists = fs4.existsSync(relativeToDst);- if (exists) {- return {- toCwd: relativeToDst,- toDst: srcpath- };- }- const srcExists = fs4.existsSync(srcpath);- if (!srcExists)- throw new Error("relative srcpath does not exist");- return {- toCwd: srcpath,- toDst: path3.relative(dstdir, srcpath)- };- }- module.exports = {- symlinkPaths: u2(symlinkPaths),- symlinkPathsSync- };-});--// node_modules/fs-extra/lib/ensure/symlink-type.js-var require_symlink_type = __commonJS((exports, module) => {- var fs4 = require_fs();- var u2 = require_universalify().fromPromise;- async function symlinkType(srcpath, type) {- if (type)- return type;- let stats;- try {- stats = await fs4.lstat(srcpath);- } catch {- return "file";- }- return stats && stats.isDirectory() ? "dir" : "file";- }- function symlinkTypeSync(srcpath, type) {- if (type)- return type;- let stats;- try {- stats = fs4.lstatSync(srcpath);- } catch {- return "file";- }- return stats && stats.isDirectory() ? "dir" : "file";- }- module.exports = {- symlinkType: u2(symlinkType),- symlinkTypeSync};-});--// node_modules/fs-extra/lib/ensure/symlink.js-var require_symlink = __commonJS((exports, module) => {- var u2 = require_universalify().fromPromise;- var path3 = __require("path");- var fs4 = require_fs();- var { mkdirs, mkdirsSync } = require_mkdirs();- var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();- var { symlinkType, symlinkTypeSync } = require_symlink_type();- var { pathExists } = require_path_exists();- var { areIdentical } = require_stat();- async function createSymlink(srcpath, dstpath, type) {- let stats;- try {- stats = await fs4.lstat(dstpath);- } catch {- }- if (stats && stats.isSymbolicLink()) {- const [srcStat, dstStat] = await Promise.all([- fs4.stat(srcpath),- fs4.stat(dstpath)- ]);- if (areIdentical(srcStat, dstStat))- return;- }- const relative = await symlinkPaths(srcpath, dstpath);- srcpath = relative.toDst;- const toType = await symlinkType(relative.toCwd, type);- const dir = path3.dirname(dstpath);- if (!await pathExists(dir)) {- await mkdirs(dir);- }- return fs4.symlink(srcpath, dstpath, toType);- }- function createSymlinkSync(srcpath, dstpath, type) {- let stats;- try {- stats = fs4.lstatSync(dstpath);- } catch {- }- if (stats && stats.isSymbolicLink()) {- const srcStat = fs4.statSync(srcpath);- const dstStat = fs4.statSync(dstpath);- if (areIdentical(srcStat, dstStat))- return;- }- const relative = symlinkPathsSync(srcpath, dstpath);- srcpath = relative.toDst;- type = symlinkTypeSync(relative.toCwd, type);- const dir = path3.dirname(dstpath);- const exists = fs4.existsSync(dir);- if (exists)- return fs4.symlinkSync(srcpath, dstpath, type);- mkdirsSync(dir);- return fs4.symlinkSync(srcpath, dstpath, type);- }- module.exports = {- createSymlink: u2(createSymlink),- createSymlinkSync+ CombinedStream.prototype._emitError = function(err) {+ this._reset();+ this.emit("error", err);};});-// node_modules/fs-extra/lib/ensure/index.js-var require_ensure = __commonJS((exports, module) => {- var { createFile, createFileSync } = require_file2();- var { createLink, createLinkSync } = require_link();- var { createSymlink, createSymlinkSync } = require_symlink();+// node_modules/mime-db/db.json+var require_db = __commonJS((exports, module) => {module.exports = {- createFile,- createFileSync,- ensureFile: createFile,- ensureFileSync: createFileSync,- createLink,- createLinkSync,- ensureLink: createLink,- ensureLinkSync: createLinkSync,- createSymlink,- createSymlinkSync,- ensureSymlink: createSymlink,- ensureSymlinkSync: createSymlinkSync+ "application/1d-interleaved-parityfec": {+ source: "iana"+ },+ "application/3gpdash-qoe-report+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/3gpp-ims+xml": {+ source: "iana",+ compressible: true+ },+ "application/3gpphal+json": {+ source: "iana",+ compressible: true+ },+ "application/3gpphalforms+json": {+ source: "iana",+ compressible: true+ },+ "application/a2l": {+ source: "iana"+ },+ "application/ace+cbor": {+ source: "iana"+ },+ "application/activemessage": {+ source: "iana"+ },+ "application/activity+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-costmap+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-costmapfilter+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-directory+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-endpointcost+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-endpointcostparams+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-endpointprop+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-endpointpropparams+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-error+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-networkmap+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-networkmapfilter+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-updatestreamcontrol+json": {+ source: "iana",+ compressible: true+ },+ "application/alto-updatestreamparams+json": {+ source: "iana",+ compressible: true+ },+ "application/aml": {+ source: "iana"+ },+ "application/andrew-inset": {+ source: "iana",+ extensions: ["ez"]+ },+ "application/applefile": {+ source: "iana"+ },+ "application/applixware": {+ source: "apache",+ extensions: ["aw"]+ },+ "application/at+jwt": {+ source: "iana"+ },+ "application/atf": {+ source: "iana"+ },+ "application/atfx": {+ source: "iana"+ },+ "application/atom+xml": {+ source: "iana",+ compressible: true,+ extensions: ["atom"]+ },+ "application/atomcat+xml": {+ source: "iana",+ compressible: true,+ extensions: ["atomcat"]+ },+ "application/atomdeleted+xml": {+ source: "iana",+ compressible: true,+ extensions: ["atomdeleted"]+ },+ "application/atomicmail": {+ source: "iana"+ },+ "application/atomsvc+xml": {+ source: "iana",+ compressible: true,+ extensions: ["atomsvc"]+ },+ "application/atsc-dwd+xml": {+ source: "iana",+ compressible: true,+ extensions: ["dwd"]+ },+ "application/atsc-dynamic-event-message": {+ source: "iana"+ },+ "application/atsc-held+xml": {+ source: "iana",+ compressible: true,+ extensions: ["held"]+ },+ "application/atsc-rdt+json": {+ source: "iana",+ compressible: true+ },+ "application/atsc-rsat+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rsat"]+ },+ "application/atxml": {+ source: "iana"+ },+ "application/auth-policy+xml": {+ source: "iana",+ compressible: true+ },+ "application/bacnet-xdd+zip": {+ source: "iana",+ compressible: false+ },+ "application/batch-smtp": {+ source: "iana"+ },+ "application/bdoc": {+ compressible: false,+ extensions: ["bdoc"]+ },+ "application/beep+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/calendar+json": {+ source: "iana",+ compressible: true+ },+ "application/calendar+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xcs"]+ },+ "application/call-completion": {+ source: "iana"+ },+ "application/cals-1840": {+ source: "iana"+ },+ "application/captive+json": {+ source: "iana",+ compressible: true+ },+ "application/cbor": {+ source: "iana"+ },+ "application/cbor-seq": {+ source: "iana"+ },+ "application/cccex": {+ source: "iana"+ },+ "application/ccmp+xml": {+ source: "iana",+ compressible: true+ },+ "application/ccxml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["ccxml"]+ },+ "application/cdfx+xml": {+ source: "iana",+ compressible: true,+ extensions: ["cdfx"]+ },+ "application/cdmi-capability": {+ source: "iana",+ extensions: ["cdmia"]+ },+ "application/cdmi-container": {+ source: "iana",+ extensions: ["cdmic"]+ },+ "application/cdmi-domain": {+ source: "iana",+ extensions: ["cdmid"]+ },+ "application/cdmi-object": {+ source: "iana",+ extensions: ["cdmio"]+ },+ "application/cdmi-queue": {+ source: "iana",+ extensions: ["cdmiq"]+ },+ "application/cdni": {+ source: "iana"+ },+ "application/cea": {+ source: "iana"+ },+ "application/cea-2018+xml": {+ source: "iana",+ compressible: true+ },+ "application/cellml+xml": {+ source: "iana",+ compressible: true+ },+ "application/cfw": {+ source: "iana"+ },+ "application/city+json": {+ source: "iana",+ compressible: true+ },+ "application/clr": {+ source: "iana"+ },+ "application/clue+xml": {+ source: "iana",+ compressible: true+ },+ "application/clue_info+xml": {+ source: "iana",+ compressible: true+ },+ "application/cms": {+ source: "iana"+ },+ "application/cnrp+xml": {+ source: "iana",+ compressible: true+ },+ "application/coap-group+json": {+ source: "iana",+ compressible: true+ },+ "application/coap-payload": {+ source: "iana"+ },+ "application/commonground": {+ source: "iana"+ },+ "application/conference-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/cose": {+ source: "iana"+ },+ "application/cose-key": {+ source: "iana"+ },+ "application/cose-key-set": {+ source: "iana"+ },+ "application/cpl+xml": {+ source: "iana",+ compressible: true,+ extensions: ["cpl"]+ },+ "application/csrattrs": {+ source: "iana"+ },+ "application/csta+xml": {+ source: "iana",+ compressible: true+ },+ "application/cstadata+xml": {+ source: "iana",+ compressible: true+ },+ "application/csvm+json": {+ source: "iana",+ compressible: true+ },+ "application/cu-seeme": {+ source: "apache",+ extensions: ["cu"]+ },+ "application/cwt": {+ source: "iana"+ },+ "application/cybercash": {+ source: "iana"+ },+ "application/dart": {+ compressible: true+ },+ "application/dash+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mpd"]+ },+ "application/dash-patch+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mpp"]+ },+ "application/dashdelta": {+ source: "iana"+ },+ "application/davmount+xml": {+ source: "iana",+ compressible: true,+ extensions: ["davmount"]+ },+ "application/dca-rft": {+ source: "iana"+ },+ "application/dcd": {+ source: "iana"+ },+ "application/dec-dx": {+ source: "iana"+ },+ "application/dialog-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/dicom": {+ source: "iana"+ },+ "application/dicom+json": {+ source: "iana",+ compressible: true+ },+ "application/dicom+xml": {+ source: "iana",+ compressible: true+ },+ "application/dii": {+ source: "iana"+ },+ "application/dit": {+ source: "iana"+ },+ "application/dns": {+ source: "iana"+ },+ "application/dns+json": {+ source: "iana",+ compressible: true+ },+ "application/dns-message": {+ source: "iana"+ },+ "application/docbook+xml": {+ source: "apache",+ compressible: true,+ extensions: ["dbk"]+ },+ "application/dots+cbor": {+ source: "iana"+ },+ "application/dskpp+xml": {+ source: "iana",+ compressible: true+ },+ "application/dssc+der": {+ source: "iana",+ extensions: ["dssc"]+ },+ "application/dssc+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xdssc"]+ },+ "application/dvcs": {+ source: "iana"+ },+ "application/ecmascript": {+ source: "iana",+ compressible: true,+ extensions: ["es", "ecma"]+ },+ "application/edi-consent": {+ source: "iana"+ },+ "application/edi-x12": {+ source: "iana",+ compressible: false+ },+ "application/edifact": {+ source: "iana",+ compressible: false+ },+ "application/efi": {+ source: "iana"+ },+ "application/elm+json": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/elm+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.cap+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/emergencycalldata.comment+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.control+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.deviceinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.ecall.msd": {+ source: "iana"+ },+ "application/emergencycalldata.providerinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.serviceinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.subscriberinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/emergencycalldata.veds+xml": {+ source: "iana",+ compressible: true+ },+ "application/emma+xml": {+ source: "iana",+ compressible: true,+ extensions: ["emma"]+ },+ "application/emotionml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["emotionml"]+ },+ "application/encaprtp": {+ source: "iana"+ },+ "application/epp+xml": {+ source: "iana",+ compressible: true+ },+ "application/epub+zip": {+ source: "iana",+ compressible: false,+ extensions: ["epub"]+ },+ "application/eshop": {+ source: "iana"+ },+ "application/exi": {+ source: "iana",+ extensions: ["exi"]+ },+ "application/expect-ct-report+json": {+ source: "iana",+ compressible: true+ },+ "application/express": {+ source: "iana",+ extensions: ["exp"]+ },+ "application/fastinfoset": {+ source: "iana"+ },+ "application/fastsoap": {+ source: "iana"+ },+ "application/fdt+xml": {+ source: "iana",+ compressible: true,+ extensions: ["fdt"]+ },+ "application/fhir+json": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/fhir+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/fido.trusted-apps+json": {+ compressible: true+ },+ "application/fits": {+ source: "iana"+ },+ "application/flexfec": {+ source: "iana"+ },+ "application/font-sfnt": {+ source: "iana"+ },+ "application/font-tdpfr": {+ source: "iana",+ extensions: ["pfr"]+ },+ "application/font-woff": {+ source: "iana",+ compressible: false+ },+ "application/framework-attributes+xml": {+ source: "iana",+ compressible: true+ },+ "application/geo+json": {+ source: "iana",+ compressible: true,+ extensions: ["geojson"]+ },+ "application/geo+json-seq": {+ source: "iana"+ },+ "application/geopackage+sqlite3": {+ source: "iana"+ },+ "application/geoxacml+xml": {+ source: "iana",+ compressible: true+ },+ "application/gltf-buffer": {+ source: "iana"+ },+ "application/gml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["gml"]+ },+ "application/gpx+xml": {+ source: "apache",+ compressible: true,+ extensions: ["gpx"]+ },+ "application/gxf": {+ source: "apache",+ extensions: ["gxf"]+ },+ "application/gzip": {+ source: "iana",+ compressible: false,+ extensions: ["gz"]+ },+ "application/h224": {+ source: "iana"+ },+ "application/held+xml": {+ source: "iana",+ compressible: true+ },+ "application/hjson": {+ extensions: ["hjson"]+ },+ "application/http": {+ source: "iana"+ },+ "application/hyperstudio": {+ source: "iana",+ extensions: ["stk"]+ },+ "application/ibe-key-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/ibe-pkg-reply+xml": {+ source: "iana",+ compressible: true+ },+ "application/ibe-pp-data": {+ source: "iana"+ },+ "application/iges": {+ source: "iana"+ },+ "application/im-iscomposing+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/index": {+ source: "iana"+ },+ "application/index.cmd": {+ source: "iana"+ },+ "application/index.obj": {+ source: "iana"+ },+ "application/index.response": {+ source: "iana"+ },+ "application/index.vnd": {+ source: "iana"+ },+ "application/inkml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["ink", "inkml"]+ },+ "application/iotp": {+ source: "iana"+ },+ "application/ipfix": {+ source: "iana",+ extensions: ["ipfix"]+ },+ "application/ipp": {+ source: "iana"+ },+ "application/isup": {+ source: "iana"+ },+ "application/its+xml": {+ source: "iana",+ compressible: true,+ extensions: ["its"]+ },+ "application/java-archive": {+ source: "apache",+ compressible: false,+ extensions: ["jar", "war", "ear"]+ },+ "application/java-serialized-object": {+ source: "apache",+ compressible: false,+ extensions: ["ser"]+ },+ "application/java-vm": {+ source: "apache",+ compressible: false,+ extensions: ["class"]+ },+ "application/javascript": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["js", "mjs"]+ },+ "application/jf2feed+json": {+ source: "iana",+ compressible: true+ },+ "application/jose": {+ source: "iana"+ },+ "application/jose+json": {+ source: "iana",+ compressible: true+ },+ "application/jrd+json": {+ source: "iana",+ compressible: true+ },+ "application/jscalendar+json": {+ source: "iana",+ compressible: true+ },+ "application/json": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["json", "map"]+ },+ "application/json-patch+json": {+ source: "iana",+ compressible: true+ },+ "application/json-seq": {+ source: "iana"+ },+ "application/json5": {+ extensions: ["json5"]+ },+ "application/jsonml+json": {+ source: "apache",+ compressible: true,+ extensions: ["jsonml"]+ },+ "application/jwk+json": {+ source: "iana",+ compressible: true+ },+ "application/jwk-set+json": {+ source: "iana",+ compressible: true+ },+ "application/jwt": {+ source: "iana"+ },+ "application/kpml-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/kpml-response+xml": {+ source: "iana",+ compressible: true+ },+ "application/ld+json": {+ source: "iana",+ compressible: true,+ extensions: ["jsonld"]+ },+ "application/lgr+xml": {+ source: "iana",+ compressible: true,+ extensions: ["lgr"]+ },+ "application/link-format": {+ source: "iana"+ },+ "application/load-control+xml": {+ source: "iana",+ compressible: true+ },+ "application/lost+xml": {+ source: "iana",+ compressible: true,+ extensions: ["lostxml"]+ },+ "application/lostsync+xml": {+ source: "iana",+ compressible: true+ },+ "application/lpf+zip": {+ source: "iana",+ compressible: false+ },+ "application/lxf": {+ source: "iana"+ },+ "application/mac-binhex40": {+ source: "iana",+ extensions: ["hqx"]+ },+ "application/mac-compactpro": {+ source: "apache",+ extensions: ["cpt"]+ },+ "application/macwriteii": {+ source: "iana"+ },+ "application/mads+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mads"]+ },+ "application/manifest+json": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["webmanifest"]+ },+ "application/marc": {+ source: "iana",+ extensions: ["mrc"]+ },+ "application/marcxml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mrcx"]+ },+ "application/mathematica": {+ source: "iana",+ extensions: ["ma", "nb", "mb"]+ },+ "application/mathml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mathml"]+ },+ "application/mathml-content+xml": {+ source: "iana",+ compressible: true+ },+ "application/mathml-presentation+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-associated-procedure-description+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-deregister+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-envelope+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-msk+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-msk-response+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-protection-description+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-reception-report+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-register+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-register-response+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-schedule+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbms-user-service-description+xml": {+ source: "iana",+ compressible: true+ },+ "application/mbox": {+ source: "iana",+ extensions: ["mbox"]+ },+ "application/media-policy-dataset+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mpf"]+ },+ "application/media_control+xml": {+ source: "iana",+ compressible: true+ },+ "application/mediaservercontrol+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mscml"]+ },+ "application/merge-patch+json": {+ source: "iana",+ compressible: true+ },+ "application/metalink+xml": {+ source: "apache",+ compressible: true,+ extensions: ["metalink"]+ },+ "application/metalink4+xml": {+ source: "iana",+ compressible: true,+ extensions: ["meta4"]+ },+ "application/mets+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mets"]+ },+ "application/mf4": {+ source: "iana"+ },+ "application/mikey": {+ source: "iana"+ },+ "application/mipc": {+ source: "iana"+ },+ "application/missing-blocks+cbor-seq": {+ source: "iana"+ },+ "application/mmt-aei+xml": {+ source: "iana",+ compressible: true,+ extensions: ["maei"]+ },+ "application/mmt-usd+xml": {+ source: "iana",+ compressible: true,+ extensions: ["musd"]+ },+ "application/mods+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mods"]+ },+ "application/moss-keys": {+ source: "iana"+ },+ "application/moss-signature": {+ source: "iana"+ },+ "application/mosskey-data": {+ source: "iana"+ },+ "application/mosskey-request": {+ source: "iana"+ },+ "application/mp21": {+ source: "iana",+ extensions: ["m21", "mp21"]+ },+ "application/mp4": {+ source: "iana",+ extensions: ["mp4s", "m4p"]+ },+ "application/mpeg4-generic": {+ source: "iana"+ },+ "application/mpeg4-iod": {+ source: "iana"+ },+ "application/mpeg4-iod-xmt": {+ source: "iana"+ },+ "application/mrb-consumer+xml": {+ source: "iana",+ compressible: true+ },+ "application/mrb-publish+xml": {+ source: "iana",+ compressible: true+ },+ "application/msc-ivr+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/msc-mixer+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/msword": {+ source: "iana",+ compressible: false,+ extensions: ["doc", "dot"]+ },+ "application/mud+json": {+ source: "iana",+ compressible: true+ },+ "application/multipart-core": {+ source: "iana"+ },+ "application/mxf": {+ source: "iana",+ extensions: ["mxf"]+ },+ "application/n-quads": {+ source: "iana",+ extensions: ["nq"]+ },+ "application/n-triples": {+ source: "iana",+ extensions: ["nt"]+ },+ "application/nasdata": {+ source: "iana"+ },+ "application/news-checkgroups": {+ source: "iana",+ charset: "US-ASCII"+ },+ "application/news-groupinfo": {+ source: "iana",+ charset: "US-ASCII"+ },+ "application/news-transmission": {+ source: "iana"+ },+ "application/nlsml+xml": {+ source: "iana",+ compressible: true+ },+ "application/node": {+ source: "iana",+ extensions: ["cjs"]+ },+ "application/nss": {+ source: "iana"+ },+ "application/oauth-authz-req+jwt": {+ source: "iana"+ },+ "application/oblivious-dns-message": {+ source: "iana"+ },+ "application/ocsp-request": {+ source: "iana"+ },+ "application/ocsp-response": {+ source: "iana"+ },+ "application/octet-stream": {+ source: "iana",+ compressible: false,+ extensions: ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"]+ },+ "application/oda": {+ source: "iana",+ extensions: ["oda"]+ },+ "application/odm+xml": {+ source: "iana",+ compressible: true+ },+ "application/odx": {+ source: "iana"+ },+ "application/oebps-package+xml": {+ source: "iana",+ compressible: true,+ extensions: ["opf"]+ },+ "application/ogg": {+ source: "iana",+ compressible: false,+ extensions: ["ogx"]+ },+ "application/omdoc+xml": {+ source: "apache",+ compressible: true,+ extensions: ["omdoc"]+ },+ "application/onenote": {+ source: "apache",+ extensions: ["onetoc", "onetoc2", "onetmp", "onepkg"]+ },+ "application/opc-nodeset+xml": {+ source: "iana",+ compressible: true+ },+ "application/oscore": {+ source: "iana"+ },+ "application/oxps": {+ source: "iana",+ extensions: ["oxps"]+ },+ "application/p21": {+ source: "iana"+ },+ "application/p21+zip": {+ source: "iana",+ compressible: false+ },+ "application/p2p-overlay+xml": {+ source: "iana",+ compressible: true,+ extensions: ["relo"]+ },+ "application/parityfec": {+ source: "iana"+ },+ "application/passport": {+ source: "iana"+ },+ "application/patch-ops-error+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xer"]+ },+ "application/pdf": {+ source: "iana",+ compressible: false,+ extensions: ["pdf"]+ },+ "application/pdx": {+ source: "iana"+ },+ "application/pem-certificate-chain": {+ source: "iana"+ },+ "application/pgp-encrypted": {+ source: "iana",+ compressible: false,+ extensions: ["pgp"]+ },+ "application/pgp-keys": {+ source: "iana",+ extensions: ["asc"]+ },+ "application/pgp-signature": {+ source: "iana",+ extensions: ["asc", "sig"]+ },+ "application/pics-rules": {+ source: "apache",+ extensions: ["prf"]+ },+ "application/pidf+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/pidf-diff+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/pkcs10": {+ source: "iana",+ extensions: ["p10"]+ },+ "application/pkcs12": {+ source: "iana"+ },+ "application/pkcs7-mime": {+ source: "iana",+ extensions: ["p7m", "p7c"]+ },+ "application/pkcs7-signature": {+ source: "iana",+ extensions: ["p7s"]+ },+ "application/pkcs8": {+ source: "iana",+ extensions: ["p8"]+ },+ "application/pkcs8-encrypted": {+ source: "iana"+ },+ "application/pkix-attr-cert": {+ source: "iana",+ extensions: ["ac"]+ },+ "application/pkix-cert": {+ source: "iana",+ extensions: ["cer"]+ },+ "application/pkix-crl": {+ source: "iana",+ extensions: ["crl"]+ },+ "application/pkix-pkipath": {+ source: "iana",+ extensions: ["pkipath"]+ },+ "application/pkixcmp": {+ source: "iana",+ extensions: ["pki"]+ },+ "application/pls+xml": {+ source: "iana",+ compressible: true,+ extensions: ["pls"]+ },+ "application/poc-settings+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/postscript": {+ source: "iana",+ compressible: true,+ extensions: ["ai", "eps", "ps"]+ },+ "application/ppsp-tracker+json": {+ source: "iana",+ compressible: true+ },+ "application/problem+json": {+ source: "iana",+ compressible: true+ },+ "application/problem+xml": {+ source: "iana",+ compressible: true+ },+ "application/provenance+xml": {+ source: "iana",+ compressible: true,+ extensions: ["provx"]+ },+ "application/prs.alvestrand.titrax-sheet": {+ source: "iana"+ },+ "application/prs.cww": {+ source: "iana",+ extensions: ["cww"]+ },+ "application/prs.cyn": {+ source: "iana",+ charset: "7-BIT"+ },+ "application/prs.hpub+zip": {+ source: "iana",+ compressible: false+ },+ "application/prs.nprend": {+ source: "iana"+ },+ "application/prs.plucker": {+ source: "iana"+ },+ "application/prs.rdf-xml-crypt": {+ source: "iana"+ },+ "application/prs.xsf+xml": {+ source: "iana",+ compressible: true+ },+ "application/pskc+xml": {+ source: "iana",+ compressible: true,+ extensions: ["pskcxml"]+ },+ "application/pvd+json": {+ source: "iana",+ compressible: true+ },+ "application/qsig": {+ source: "iana"+ },+ "application/raml+yaml": {+ compressible: true,+ extensions: ["raml"]+ },+ "application/raptorfec": {+ source: "iana"+ },+ "application/rdap+json": {+ source: "iana",+ compressible: true+ },+ "application/rdf+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rdf", "owl"]+ },+ "application/reginfo+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rif"]+ },+ "application/relax-ng-compact-syntax": {+ source: "iana",+ extensions: ["rnc"]+ },+ "application/remote-printing": {+ source: "iana"+ },+ "application/reputon+json": {+ source: "iana",+ compressible: true+ },+ "application/resource-lists+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rl"]+ },+ "application/resource-lists-diff+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rld"]+ },+ "application/rfc+xml": {+ source: "iana",+ compressible: true+ },+ "application/riscos": {+ source: "iana"+ },+ "application/rlmi+xml": {+ source: "iana",+ compressible: true+ },+ "application/rls-services+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rs"]+ },+ "application/route-apd+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rapd"]+ },+ "application/route-s-tsid+xml": {+ source: "iana",+ compressible: true,+ extensions: ["sls"]+ },+ "application/route-usd+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rusd"]+ },+ "application/rpki-ghostbusters": {+ source: "iana",+ extensions: ["gbr"]+ },+ "application/rpki-manifest": {+ source: "iana",+ extensions: ["mft"]+ },+ "application/rpki-publication": {+ source: "iana"+ },+ "application/rpki-roa": {+ source: "iana",+ extensions: ["roa"]+ },+ "application/rpki-updown": {+ source: "iana"+ },+ "application/rsd+xml": {+ source: "apache",+ compressible: true,+ extensions: ["rsd"]+ },+ "application/rss+xml": {+ source: "apache",+ compressible: true,+ extensions: ["rss"]+ },+ "application/rtf": {+ source: "iana",+ compressible: true,+ extensions: ["rtf"]+ },+ "application/rtploopback": {+ source: "iana"+ },+ "application/rtx": {+ source: "iana"+ },+ "application/samlassertion+xml": {+ source: "iana",+ compressible: true+ },+ "application/samlmetadata+xml": {+ source: "iana",+ compressible: true+ },+ "application/sarif+json": {+ source: "iana",+ compressible: true+ },+ "application/sarif-external-properties+json": {+ source: "iana",+ compressible: true+ },+ "application/sbe": {+ source: "iana"+ },+ "application/sbml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["sbml"]+ },+ "application/scaip+xml": {+ source: "iana",+ compressible: true+ },+ "application/scim+json": {+ source: "iana",+ compressible: true+ },+ "application/scvp-cv-request": {+ source: "iana",+ extensions: ["scq"]+ },+ "application/scvp-cv-response": {+ source: "iana",+ extensions: ["scs"]+ },+ "application/scvp-vp-request": {+ source: "iana",+ extensions: ["spq"]+ },+ "application/scvp-vp-response": {+ source: "iana",+ extensions: ["spp"]+ },+ "application/sdp": {+ source: "iana",+ extensions: ["sdp"]+ },+ "application/secevent+jwt": {+ source: "iana"+ },+ "application/senml+cbor": {+ source: "iana"+ },+ "application/senml+json": {+ source: "iana",+ compressible: true+ },+ "application/senml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["senmlx"]+ },+ "application/senml-etch+cbor": {+ source: "iana"+ },+ "application/senml-etch+json": {+ source: "iana",+ compressible: true+ },+ "application/senml-exi": {+ source: "iana"+ },+ "application/sensml+cbor": {+ source: "iana"+ },+ "application/sensml+json": {+ source: "iana",+ compressible: true+ },+ "application/sensml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["sensmlx"]+ },+ "application/sensml-exi": {+ source: "iana"+ },+ "application/sep+xml": {+ source: "iana",+ compressible: true+ },+ "application/sep-exi": {+ source: "iana"+ },+ "application/session-info": {+ source: "iana"+ },+ "application/set-payment": {+ source: "iana"+ },+ "application/set-payment-initiation": {+ source: "iana",+ extensions: ["setpay"]+ },+ "application/set-registration": {+ source: "iana"+ },+ "application/set-registration-initiation": {+ source: "iana",+ extensions: ["setreg"]+ },+ "application/sgml": {+ source: "iana"+ },+ "application/sgml-open-catalog": {+ source: "iana"+ },+ "application/shf+xml": {+ source: "iana",+ compressible: true,+ extensions: ["shf"]+ },+ "application/sieve": {+ source: "iana",+ extensions: ["siv", "sieve"]+ },+ "application/simple-filter+xml": {+ source: "iana",+ compressible: true+ },+ "application/simple-message-summary": {+ source: "iana"+ },+ "application/simplesymbolcontainer": {+ source: "iana"+ },+ "application/sipc": {+ source: "iana"+ },+ "application/slate": {+ source: "iana"+ },+ "application/smil": {+ source: "iana"+ },+ "application/smil+xml": {+ source: "iana",+ compressible: true,+ extensions: ["smi", "smil"]+ },+ "application/smpte336m": {+ source: "iana"+ },+ "application/soap+fastinfoset": {+ source: "iana"+ },+ "application/soap+xml": {+ source: "iana",+ compressible: true+ },+ "application/sparql-query": {+ source: "iana",+ extensions: ["rq"]+ },+ "application/sparql-results+xml": {+ source: "iana",+ compressible: true,+ extensions: ["srx"]+ },+ "application/spdx+json": {+ source: "iana",+ compressible: true+ },+ "application/spirits-event+xml": {+ source: "iana",+ compressible: true+ },+ "application/sql": {+ source: "iana"+ },+ "application/srgs": {+ source: "iana",+ extensions: ["gram"]+ },+ "application/srgs+xml": {+ source: "iana",+ compressible: true,+ extensions: ["grxml"]+ },+ "application/sru+xml": {+ source: "iana",+ compressible: true,+ extensions: ["sru"]+ },+ "application/ssdl+xml": {+ source: "apache",+ compressible: true,+ extensions: ["ssdl"]+ },+ "application/ssml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["ssml"]+ },+ "application/stix+json": {+ source: "iana",+ compressible: true+ },+ "application/swid+xml": {+ source: "iana",+ compressible: true,+ extensions: ["swidtag"]+ },+ "application/tamp-apex-update": {+ source: "iana"+ },+ "application/tamp-apex-update-confirm": {+ source: "iana"+ },+ "application/tamp-community-update": {+ source: "iana"+ },+ "application/tamp-community-update-confirm": {+ source: "iana"+ },+ "application/tamp-error": {+ source: "iana"+ },+ "application/tamp-sequence-adjust": {+ source: "iana"+ },+ "application/tamp-sequence-adjust-confirm": {+ source: "iana"+ },+ "application/tamp-status-query": {+ source: "iana"+ },+ "application/tamp-status-response": {+ source: "iana"+ },+ "application/tamp-update": {+ source: "iana"+ },+ "application/tamp-update-confirm": {+ source: "iana"+ },+ "application/tar": {+ compressible: true+ },+ "application/taxii+json": {+ source: "iana",+ compressible: true+ },+ "application/td+json": {+ source: "iana",+ compressible: true+ },+ "application/tei+xml": {+ source: "iana",+ compressible: true,+ extensions: ["tei", "teicorpus"]+ },+ "application/tetra_isi": {+ source: "iana"+ },+ "application/thraud+xml": {+ source: "iana",+ compressible: true,+ extensions: ["tfi"]+ },+ "application/timestamp-query": {+ source: "iana"+ },+ "application/timestamp-reply": {+ source: "iana"+ },+ "application/timestamped-data": {+ source: "iana",+ extensions: ["tsd"]+ },+ "application/tlsrpt+gzip": {+ source: "iana"+ },+ "application/tlsrpt+json": {+ source: "iana",+ compressible: true+ },+ "application/tnauthlist": {+ source: "iana"+ },+ "application/token-introspection+jwt": {+ source: "iana"+ },+ "application/toml": {+ compressible: true,+ extensions: ["toml"]+ },+ "application/trickle-ice-sdpfrag": {+ source: "iana"+ },+ "application/trig": {+ source: "iana",+ extensions: ["trig"]+ },+ "application/ttml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["ttml"]+ },+ "application/tve-trigger": {+ source: "iana"+ },+ "application/tzif": {+ source: "iana"+ },+ "application/tzif-leap": {+ source: "iana"+ },+ "application/ubjson": {+ compressible: false,+ extensions: ["ubj"]+ },+ "application/ulpfec": {+ source: "iana"+ },+ "application/urc-grpsheet+xml": {+ source: "iana",+ compressible: true+ },+ "application/urc-ressheet+xml": {+ source: "iana",+ compressible: true,+ extensions: ["rsheet"]+ },+ "application/urc-targetdesc+xml": {+ source: "iana",+ compressible: true,+ extensions: ["td"]+ },+ "application/urc-uisocketdesc+xml": {+ source: "iana",+ compressible: true+ },+ "application/vcard+json": {+ source: "iana",+ compressible: true+ },+ "application/vcard+xml": {+ source: "iana",+ compressible: true+ },+ "application/vemmi": {+ source: "iana"+ },+ "application/vividence.scriptfile": {+ source: "apache"+ },+ "application/vnd.1000minds.decision-model+xml": {+ source: "iana",+ compressible: true,+ extensions: ["1km"]+ },+ "application/vnd.3gpp-prose+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp-prose-pc3ch+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp-v2x-local-service-information": {+ source: "iana"+ },+ "application/vnd.3gpp.5gnas": {+ source: "iana"+ },+ "application/vnd.3gpp.access-transfer-events+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.bsf+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.gmop+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.gtpc": {+ source: "iana"+ },+ "application/vnd.3gpp.interworking-data": {+ source: "iana"+ },+ "application/vnd.3gpp.lpp": {+ source: "iana"+ },+ "application/vnd.3gpp.mc-signalling-ear": {+ source: "iana"+ },+ "application/vnd.3gpp.mcdata-affiliation-command+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcdata-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcdata-payload": {+ source: "iana"+ },+ "application/vnd.3gpp.mcdata-service-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcdata-signalling": {+ source: "iana"+ },+ "application/vnd.3gpp.mcdata-ue-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcdata-user-profile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-affiliation-command+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-floor-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-location-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-mbms-usage-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-service-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-signed+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-ue-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-ue-init-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcptt-user-profile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-affiliation-command+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-affiliation-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-location-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-service-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-transmission-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-ue-config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mcvideo-user-profile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.mid-call+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.ngap": {+ source: "iana"+ },+ "application/vnd.3gpp.pfcp": {+ source: "iana"+ },+ "application/vnd.3gpp.pic-bw-large": {+ source: "iana",+ extensions: ["plb"]+ },+ "application/vnd.3gpp.pic-bw-small": {+ source: "iana",+ extensions: ["psb"]+ },+ "application/vnd.3gpp.pic-bw-var": {+ source: "iana",+ extensions: ["pvb"]+ },+ "application/vnd.3gpp.s1ap": {+ source: "iana"+ },+ "application/vnd.3gpp.sms": {+ source: "iana"+ },+ "application/vnd.3gpp.sms+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.srvcc-ext+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.srvcc-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.state-and-event-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp.ussd+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp2.bcmcsinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.3gpp2.sms": {+ source: "iana"+ },+ "application/vnd.3gpp2.tcap": {+ source: "iana",+ extensions: ["tcap"]+ },+ "application/vnd.3lightssoftware.imagescal": {+ source: "iana"+ },+ "application/vnd.3m.post-it-notes": {+ source: "iana",+ extensions: ["pwn"]+ },+ "application/vnd.accpac.simply.aso": {+ source: "iana",+ extensions: ["aso"]+ },+ "application/vnd.accpac.simply.imp": {+ source: "iana",+ extensions: ["imp"]+ },+ "application/vnd.acucobol": {+ source: "iana",+ extensions: ["acu"]+ },+ "application/vnd.acucorp": {+ source: "iana",+ extensions: ["atc", "acutc"]+ },+ "application/vnd.adobe.air-application-installer-package+zip": {+ source: "apache",+ compressible: false,+ extensions: ["air"]+ },+ "application/vnd.adobe.flash.movie": {+ source: "iana"+ },+ "application/vnd.adobe.formscentral.fcdt": {+ source: "iana",+ extensions: ["fcdt"]+ },+ "application/vnd.adobe.fxp": {+ source: "iana",+ extensions: ["fxp", "fxpl"]+ },+ "application/vnd.adobe.partial-upload": {+ source: "iana"+ },+ "application/vnd.adobe.xdp+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xdp"]+ },+ "application/vnd.adobe.xfdf": {+ source: "iana",+ extensions: ["xfdf"]+ },+ "application/vnd.aether.imp": {+ source: "iana"+ },+ "application/vnd.afpc.afplinedata": {+ source: "iana"+ },+ "application/vnd.afpc.afplinedata-pagedef": {+ source: "iana"+ },+ "application/vnd.afpc.cmoca-cmresource": {+ source: "iana"+ },+ "application/vnd.afpc.foca-charset": {+ source: "iana"+ },+ "application/vnd.afpc.foca-codedfont": {+ source: "iana"+ },+ "application/vnd.afpc.foca-codepage": {+ source: "iana"+ },+ "application/vnd.afpc.modca": {+ source: "iana"+ },+ "application/vnd.afpc.modca-cmtable": {+ source: "iana"+ },+ "application/vnd.afpc.modca-formdef": {+ source: "iana"+ },+ "application/vnd.afpc.modca-mediummap": {+ source: "iana"+ },+ "application/vnd.afpc.modca-objectcontainer": {+ source: "iana"+ },+ "application/vnd.afpc.modca-overlay": {+ source: "iana"+ },+ "application/vnd.afpc.modca-pagesegment": {+ source: "iana"+ },+ "application/vnd.age": {+ source: "iana",+ extensions: ["age"]+ },+ "application/vnd.ah-barcode": {+ source: "iana"+ },+ "application/vnd.ahead.space": {+ source: "iana",+ extensions: ["ahead"]+ },+ "application/vnd.airzip.filesecure.azf": {+ source: "iana",+ extensions: ["azf"]+ },+ "application/vnd.airzip.filesecure.azs": {+ source: "iana",+ extensions: ["azs"]+ },+ "application/vnd.amadeus+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.amazon.ebook": {+ source: "apache",+ extensions: ["azw"]+ },+ "application/vnd.amazon.mobi8-ebook": {+ source: "iana"+ },+ "application/vnd.americandynamics.acc": {+ source: "iana",+ extensions: ["acc"]+ },+ "application/vnd.amiga.ami": {+ source: "iana",+ extensions: ["ami"]+ },+ "application/vnd.amundsen.maze+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.android.ota": {+ source: "iana"+ },+ "application/vnd.android.package-archive": {+ source: "apache",+ compressible: false,+ extensions: ["apk"]+ },+ "application/vnd.anki": {+ source: "iana"+ },+ "application/vnd.anser-web-certificate-issue-initiation": {+ source: "iana",+ extensions: ["cii"]+ },+ "application/vnd.anser-web-funds-transfer-initiation": {+ source: "apache",+ extensions: ["fti"]+ },+ "application/vnd.antix.game-component": {+ source: "iana",+ extensions: ["atx"]+ },+ "application/vnd.apache.arrow.file": {+ source: "iana"+ },+ "application/vnd.apache.arrow.stream": {+ source: "iana"+ },+ "application/vnd.apache.thrift.binary": {+ source: "iana"+ },+ "application/vnd.apache.thrift.compact": {+ source: "iana"+ },+ "application/vnd.apache.thrift.json": {+ source: "iana"+ },+ "application/vnd.api+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.aplextor.warrp+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.apothekende.reservation+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.apple.installer+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mpkg"]+ },+ "application/vnd.apple.keynote": {+ source: "iana",+ extensions: ["key"]+ },+ "application/vnd.apple.mpegurl": {+ source: "iana",+ extensions: ["m3u8"]+ },+ "application/vnd.apple.numbers": {+ source: "iana",+ extensions: ["numbers"]+ },+ "application/vnd.apple.pages": {+ source: "iana",+ extensions: ["pages"]+ },+ "application/vnd.apple.pkpass": {+ compressible: false,+ extensions: ["pkpass"]+ },+ "application/vnd.arastra.swi": {+ source: "iana"+ },+ "application/vnd.aristanetworks.swi": {+ source: "iana",+ extensions: ["swi"]+ },+ "application/vnd.artisan+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.artsquare": {+ source: "iana"+ },+ "application/vnd.astraea-software.iota": {+ source: "iana",+ extensions: ["iota"]+ },+ "application/vnd.audiograph": {+ source: "iana",+ extensions: ["aep"]+ },+ "application/vnd.autopackage": {+ source: "iana"+ },+ "application/vnd.avalon+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.avistar+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.balsamiq.bmml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["bmml"]+ },+ "application/vnd.balsamiq.bmpr": {+ source: "iana"+ },+ "application/vnd.banana-accounting": {+ source: "iana"+ },+ "application/vnd.bbf.usp.error": {+ source: "iana"+ },+ "application/vnd.bbf.usp.msg": {+ source: "iana"+ },+ "application/vnd.bbf.usp.msg+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.bekitzur-stech+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.bint.med-content": {+ source: "iana"+ },+ "application/vnd.biopax.rdf+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.blink-idb-value-wrapper": {+ source: "iana"+ },+ "application/vnd.blueice.multipass": {+ source: "iana",+ extensions: ["mpm"]+ },+ "application/vnd.bluetooth.ep.oob": {+ source: "iana"+ },+ "application/vnd.bluetooth.le.oob": {+ source: "iana"+ },+ "application/vnd.bmi": {+ source: "iana",+ extensions: ["bmi"]+ },+ "application/vnd.bpf": {+ source: "iana"+ },+ "application/vnd.bpf3": {+ source: "iana"+ },+ "application/vnd.businessobjects": {+ source: "iana",+ extensions: ["rep"]+ },+ "application/vnd.byu.uapi+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cab-jscript": {+ source: "iana"+ },+ "application/vnd.canon-cpdl": {+ source: "iana"+ },+ "application/vnd.canon-lips": {+ source: "iana"+ },+ "application/vnd.capasystems-pg+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cendio.thinlinc.clientconf": {+ source: "iana"+ },+ "application/vnd.century-systems.tcp_stream": {+ source: "iana"+ },+ "application/vnd.chemdraw+xml": {+ source: "iana",+ compressible: true,+ extensions: ["cdxml"]+ },+ "application/vnd.chess-pgn": {+ source: "iana"+ },+ "application/vnd.chipnuts.karaoke-mmd": {+ source: "iana",+ extensions: ["mmd"]+ },+ "application/vnd.ciedi": {+ source: "iana"+ },+ "application/vnd.cinderella": {+ source: "iana",+ extensions: ["cdy"]+ },+ "application/vnd.cirpack.isdn-ext": {+ source: "iana"+ },+ "application/vnd.citationstyles.style+xml": {+ source: "iana",+ compressible: true,+ extensions: ["csl"]+ },+ "application/vnd.claymore": {+ source: "iana",+ extensions: ["cla"]+ },+ "application/vnd.cloanto.rp9": {+ source: "iana",+ extensions: ["rp9"]+ },+ "application/vnd.clonk.c4group": {+ source: "iana",+ extensions: ["c4g", "c4d", "c4f", "c4p", "c4u"]+ },+ "application/vnd.cluetrust.cartomobile-config": {+ source: "iana",+ extensions: ["c11amc"]+ },+ "application/vnd.cluetrust.cartomobile-config-pkg": {+ source: "iana",+ extensions: ["c11amz"]+ },+ "application/vnd.coffeescript": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.document": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.document-template": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.presentation": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.presentation-template": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.spreadsheet": {+ source: "iana"+ },+ "application/vnd.collabio.xodocuments.spreadsheet-template": {+ source: "iana"+ },+ "application/vnd.collection+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.collection.doc+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.collection.next+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.comicbook+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.comicbook-rar": {+ source: "iana"+ },+ "application/vnd.commerce-battelle": {+ source: "iana"+ },+ "application/vnd.commonspace": {+ source: "iana",+ extensions: ["csp"]+ },+ "application/vnd.contact.cmsg": {+ source: "iana",+ extensions: ["cdbcmsg"]+ },+ "application/vnd.coreos.ignition+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cosmocaller": {+ source: "iana",+ extensions: ["cmc"]+ },+ "application/vnd.crick.clicker": {+ source: "iana",+ extensions: ["clkx"]+ },+ "application/vnd.crick.clicker.keyboard": {+ source: "iana",+ extensions: ["clkk"]+ },+ "application/vnd.crick.clicker.palette": {+ source: "iana",+ extensions: ["clkp"]+ },+ "application/vnd.crick.clicker.template": {+ source: "iana",+ extensions: ["clkt"]+ },+ "application/vnd.crick.clicker.wordbank": {+ source: "iana",+ extensions: ["clkw"]+ },+ "application/vnd.criticaltools.wbs+xml": {+ source: "iana",+ compressible: true,+ extensions: ["wbs"]+ },+ "application/vnd.cryptii.pipe+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.crypto-shade-file": {+ source: "iana"+ },+ "application/vnd.cryptomator.encrypted": {+ source: "iana"+ },+ "application/vnd.cryptomator.vault": {+ source: "iana"+ },+ "application/vnd.ctc-posml": {+ source: "iana",+ extensions: ["pml"]+ },+ "application/vnd.ctct.ws+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cups-pdf": {+ source: "iana"+ },+ "application/vnd.cups-postscript": {+ source: "iana"+ },+ "application/vnd.cups-ppd": {+ source: "iana",+ extensions: ["ppd"]+ },+ "application/vnd.cups-raster": {+ source: "iana"+ },+ "application/vnd.cups-raw": {+ source: "iana"+ },+ "application/vnd.curl": {+ source: "iana"+ },+ "application/vnd.curl.car": {+ source: "apache",+ extensions: ["car"]+ },+ "application/vnd.curl.pcurl": {+ source: "apache",+ extensions: ["pcurl"]+ },+ "application/vnd.cyan.dean.root+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cybank": {+ source: "iana"+ },+ "application/vnd.cyclonedx+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.cyclonedx+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.d2l.coursepackage1p0+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.d3m-dataset": {+ source: "iana"+ },+ "application/vnd.d3m-problem": {+ source: "iana"+ },+ "application/vnd.dart": {+ source: "iana",+ compressible: true,+ extensions: ["dart"]+ },+ "application/vnd.data-vision.rdz": {+ source: "iana",+ extensions: ["rdz"]+ },+ "application/vnd.datapackage+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dataresource+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dbf": {+ source: "iana",+ extensions: ["dbf"]+ },+ "application/vnd.debian.binary-package": {+ source: "iana"+ },+ "application/vnd.dece.data": {+ source: "iana",+ extensions: ["uvf", "uvvf", "uvd", "uvvd"]+ },+ "application/vnd.dece.ttml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["uvt", "uvvt"]+ },+ "application/vnd.dece.unspecified": {+ source: "iana",+ extensions: ["uvx", "uvvx"]+ },+ "application/vnd.dece.zip": {+ source: "iana",+ extensions: ["uvz", "uvvz"]+ },+ "application/vnd.denovo.fcselayout-link": {+ source: "iana",+ extensions: ["fe_launch"]+ },+ "application/vnd.desmume.movie": {+ source: "iana"+ },+ "application/vnd.dir-bi.plate-dl-nosuffix": {+ source: "iana"+ },+ "application/vnd.dm.delegation+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dna": {+ source: "iana",+ extensions: ["dna"]+ },+ "application/vnd.document+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dolby.mlp": {+ source: "apache",+ extensions: ["mlp"]+ },+ "application/vnd.dolby.mobile.1": {+ source: "iana"+ },+ "application/vnd.dolby.mobile.2": {+ source: "iana"+ },+ "application/vnd.doremir.scorecloud-binary-document": {+ source: "iana"+ },+ "application/vnd.dpgraph": {+ source: "iana",+ extensions: ["dpg"]+ },+ "application/vnd.dreamfactory": {+ source: "iana",+ extensions: ["dfac"]+ },+ "application/vnd.drive+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ds-keypoint": {+ source: "apache",+ extensions: ["kpxx"]+ },+ "application/vnd.dtg.local": {+ source: "iana"+ },+ "application/vnd.dtg.local.flash": {+ source: "iana"+ },+ "application/vnd.dtg.local.html": {+ source: "iana"+ },+ "application/vnd.dvb.ait": {+ source: "iana",+ extensions: ["ait"]+ },+ "application/vnd.dvb.dvbisl+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.dvbj": {+ source: "iana"+ },+ "application/vnd.dvb.esgcontainer": {+ source: "iana"+ },+ "application/vnd.dvb.ipdcdftnotifaccess": {+ source: "iana"+ },+ "application/vnd.dvb.ipdcesgaccess": {+ source: "iana"+ },+ "application/vnd.dvb.ipdcesgaccess2": {+ source: "iana"+ },+ "application/vnd.dvb.ipdcesgpdd": {+ source: "iana"+ },+ "application/vnd.dvb.ipdcroaming": {+ source: "iana"+ },+ "application/vnd.dvb.iptv.alfec-base": {+ source: "iana"+ },+ "application/vnd.dvb.iptv.alfec-enhancement": {+ source: "iana"+ },+ "application/vnd.dvb.notif-aggregate-root+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-container+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-generic+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-ia-msglist+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-ia-registration-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-ia-registration-response+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.notif-init+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.dvb.pfr": {+ source: "iana"+ },+ "application/vnd.dvb.service": {+ source: "iana",+ extensions: ["svc"]+ },+ "application/vnd.dxr": {+ source: "iana"+ },+ "application/vnd.dynageo": {+ source: "iana",+ extensions: ["geo"]+ },+ "application/vnd.dzr": {+ source: "iana"+ },+ "application/vnd.easykaraoke.cdgdownload": {+ source: "iana"+ },+ "application/vnd.ecdis-update": {+ source: "iana"+ },+ "application/vnd.ecip.rlp": {+ source: "iana"+ },+ "application/vnd.eclipse.ditto+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ecowin.chart": {+ source: "iana",+ extensions: ["mag"]+ },+ "application/vnd.ecowin.filerequest": {+ source: "iana"+ },+ "application/vnd.ecowin.fileupdate": {+ source: "iana"+ },+ "application/vnd.ecowin.series": {+ source: "iana"+ },+ "application/vnd.ecowin.seriesrequest": {+ source: "iana"+ },+ "application/vnd.ecowin.seriesupdate": {+ source: "iana"+ },+ "application/vnd.efi.img": {+ source: "iana"+ },+ "application/vnd.efi.iso": {+ source: "iana"+ },+ "application/vnd.emclient.accessrequest+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.enliven": {+ source: "iana",+ extensions: ["nml"]+ },+ "application/vnd.enphase.envoy": {+ source: "iana"+ },+ "application/vnd.eprints.data+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.epson.esf": {+ source: "iana",+ extensions: ["esf"]+ },+ "application/vnd.epson.msf": {+ source: "iana",+ extensions: ["msf"]+ },+ "application/vnd.epson.quickanime": {+ source: "iana",+ extensions: ["qam"]+ },+ "application/vnd.epson.salt": {+ source: "iana",+ extensions: ["slt"]+ },+ "application/vnd.epson.ssf": {+ source: "iana",+ extensions: ["ssf"]+ },+ "application/vnd.ericsson.quickcall": {+ source: "iana"+ },+ "application/vnd.espass-espass+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.eszigno3+xml": {+ source: "iana",+ compressible: true,+ extensions: ["es3", "et3"]+ },+ "application/vnd.etsi.aoc+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.asic-e+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.etsi.asic-s+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.etsi.cug+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvcommand+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvdiscovery+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvprofile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvsad-bc+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvsad-cod+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvsad-npvr+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvservice+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvsync+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.iptvueprofile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.mcid+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.mheg5": {+ source: "iana"+ },+ "application/vnd.etsi.overload-control-policy-dataset+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.pstn+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.sci+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.simservs+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.timestamp-token": {+ source: "iana"+ },+ "application/vnd.etsi.tsl+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.etsi.tsl.der": {+ source: "iana"+ },+ "application/vnd.eu.kasparian.car+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.eudora.data": {+ source: "iana"+ },+ "application/vnd.evolv.ecig.profile": {+ source: "iana"+ },+ "application/vnd.evolv.ecig.settings": {+ source: "iana"+ },+ "application/vnd.evolv.ecig.theme": {+ source: "iana"+ },+ "application/vnd.exstream-empower+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.exstream-package": {+ source: "iana"+ },+ "application/vnd.ezpix-album": {+ source: "iana",+ extensions: ["ez2"]+ },+ "application/vnd.ezpix-package": {+ source: "iana",+ extensions: ["ez3"]+ },+ "application/vnd.f-secure.mobile": {+ source: "iana"+ },+ "application/vnd.familysearch.gedcom+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.fastcopy-disk-image": {+ source: "iana"+ },+ "application/vnd.fdf": {+ source: "iana",+ extensions: ["fdf"]+ },+ "application/vnd.fdsn.mseed": {+ source: "iana",+ extensions: ["mseed"]+ },+ "application/vnd.fdsn.seed": {+ source: "iana",+ extensions: ["seed", "dataless"]+ },+ "application/vnd.ffsns": {+ source: "iana"+ },+ "application/vnd.ficlab.flb+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.filmit.zfc": {+ source: "iana"+ },+ "application/vnd.fints": {+ source: "iana"+ },+ "application/vnd.firemonkeys.cloudcell": {+ source: "iana"+ },+ "application/vnd.flographit": {+ source: "iana",+ extensions: ["gph"]+ },+ "application/vnd.fluxtime.clip": {+ source: "iana",+ extensions: ["ftc"]+ },+ "application/vnd.font-fontforge-sfd": {+ source: "iana"+ },+ "application/vnd.framemaker": {+ source: "iana",+ extensions: ["fm", "frame", "maker", "book"]+ },+ "application/vnd.frogans.fnc": {+ source: "iana",+ extensions: ["fnc"]+ },+ "application/vnd.frogans.ltf": {+ source: "iana",+ extensions: ["ltf"]+ },+ "application/vnd.fsc.weblaunch": {+ source: "iana",+ extensions: ["fsc"]+ },+ "application/vnd.fujifilm.fb.docuworks": {+ source: "iana"+ },+ "application/vnd.fujifilm.fb.docuworks.binder": {+ source: "iana"+ },+ "application/vnd.fujifilm.fb.docuworks.container": {+ source: "iana"+ },+ "application/vnd.fujifilm.fb.jfi+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.fujitsu.oasys": {+ source: "iana",+ extensions: ["oas"]+ },+ "application/vnd.fujitsu.oasys2": {+ source: "iana",+ extensions: ["oa2"]+ },+ "application/vnd.fujitsu.oasys3": {+ source: "iana",+ extensions: ["oa3"]+ },+ "application/vnd.fujitsu.oasysgp": {+ source: "iana",+ extensions: ["fg5"]+ },+ "application/vnd.fujitsu.oasysprs": {+ source: "iana",+ extensions: ["bh2"]+ },+ "application/vnd.fujixerox.art-ex": {+ source: "iana"+ },+ "application/vnd.fujixerox.art4": {+ source: "iana"+ },+ "application/vnd.fujixerox.ddd": {+ source: "iana",+ extensions: ["ddd"]+ },+ "application/vnd.fujixerox.docuworks": {+ source: "iana",+ extensions: ["xdw"]+ },+ "application/vnd.fujixerox.docuworks.binder": {+ source: "iana",+ extensions: ["xbd"]+ },+ "application/vnd.fujixerox.docuworks.container": {+ source: "iana"+ },+ "application/vnd.fujixerox.hbpl": {+ source: "iana"+ },+ "application/vnd.fut-misnet": {+ source: "iana"+ },+ "application/vnd.futoin+cbor": {+ source: "iana"+ },+ "application/vnd.futoin+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.fuzzysheet": {+ source: "iana",+ extensions: ["fzs"]+ },+ "application/vnd.genomatix.tuxedo": {+ source: "iana",+ extensions: ["txd"]+ },+ "application/vnd.gentics.grd+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.geo+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.geocube+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.geogebra.file": {+ source: "iana",+ extensions: ["ggb"]+ },+ "application/vnd.geogebra.slides": {+ source: "iana"+ },+ "application/vnd.geogebra.tool": {+ source: "iana",+ extensions: ["ggt"]+ },+ "application/vnd.geometry-explorer": {+ source: "iana",+ extensions: ["gex", "gre"]+ },+ "application/vnd.geonext": {+ source: "iana",+ extensions: ["gxt"]+ },+ "application/vnd.geoplan": {+ source: "iana",+ extensions: ["g2w"]+ },+ "application/vnd.geospace": {+ source: "iana",+ extensions: ["g3w"]+ },+ "application/vnd.gerber": {+ source: "iana"+ },+ "application/vnd.globalplatform.card-content-mgt": {+ source: "iana"+ },+ "application/vnd.globalplatform.card-content-mgt-response": {+ source: "iana"+ },+ "application/vnd.gmx": {+ source: "iana",+ extensions: ["gmx"]+ },+ "application/vnd.google-apps.document": {+ compressible: false,+ extensions: ["gdoc"]+ },+ "application/vnd.google-apps.presentation": {+ compressible: false,+ extensions: ["gslides"]+ },+ "application/vnd.google-apps.spreadsheet": {+ compressible: false,+ extensions: ["gsheet"]+ },+ "application/vnd.google-earth.kml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["kml"]+ },+ "application/vnd.google-earth.kmz": {+ source: "iana",+ compressible: false,+ extensions: ["kmz"]+ },+ "application/vnd.gov.sk.e-form+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.gov.sk.e-form+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.gov.sk.xmldatacontainer+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.grafeq": {+ source: "iana",+ extensions: ["gqf", "gqs"]+ },+ "application/vnd.gridmp": {+ source: "iana"+ },+ "application/vnd.groove-account": {+ source: "iana",+ extensions: ["gac"]+ },+ "application/vnd.groove-help": {+ source: "iana",+ extensions: ["ghf"]+ },+ "application/vnd.groove-identity-message": {+ source: "iana",+ extensions: ["gim"]+ },+ "application/vnd.groove-injector": {+ source: "iana",+ extensions: ["grv"]+ },+ "application/vnd.groove-tool-message": {+ source: "iana",+ extensions: ["gtm"]+ },+ "application/vnd.groove-tool-template": {+ source: "iana",+ extensions: ["tpl"]+ },+ "application/vnd.groove-vcard": {+ source: "iana",+ extensions: ["vcg"]+ },+ "application/vnd.hal+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hal+xml": {+ source: "iana",+ compressible: true,+ extensions: ["hal"]+ },+ "application/vnd.handheld-entertainment+xml": {+ source: "iana",+ compressible: true,+ extensions: ["zmm"]+ },+ "application/vnd.hbci": {+ source: "iana",+ extensions: ["hbci"]+ },+ "application/vnd.hc+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hcl-bireports": {+ source: "iana"+ },+ "application/vnd.hdt": {+ source: "iana"+ },+ "application/vnd.heroku+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hhe.lesson-player": {+ source: "iana",+ extensions: ["les"]+ },+ "application/vnd.hl7cda+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.hl7v2+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.hp-hpgl": {+ source: "iana",+ extensions: ["hpgl"]+ },+ "application/vnd.hp-hpid": {+ source: "iana",+ extensions: ["hpid"]+ },+ "application/vnd.hp-hps": {+ source: "iana",+ extensions: ["hps"]+ },+ "application/vnd.hp-jlyt": {+ source: "iana",+ extensions: ["jlt"]+ },+ "application/vnd.hp-pcl": {+ source: "iana",+ extensions: ["pcl"]+ },+ "application/vnd.hp-pclxl": {+ source: "iana",+ extensions: ["pclxl"]+ },+ "application/vnd.httphone": {+ source: "iana"+ },+ "application/vnd.hydrostatix.sof-data": {+ source: "iana",+ extensions: ["sfd-hdstx"]+ },+ "application/vnd.hyper+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hyper-item+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hyperdrive+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.hzn-3d-crossword": {+ source: "iana"+ },+ "application/vnd.ibm.afplinedata": {+ source: "iana"+ },+ "application/vnd.ibm.electronic-media": {+ source: "iana"+ },+ "application/vnd.ibm.minipay": {+ source: "iana",+ extensions: ["mpy"]+ },+ "application/vnd.ibm.modcap": {+ source: "iana",+ extensions: ["afp", "listafp", "list3820"]+ },+ "application/vnd.ibm.rights-management": {+ source: "iana",+ extensions: ["irm"]+ },+ "application/vnd.ibm.secure-container": {+ source: "iana",+ extensions: ["sc"]+ },+ "application/vnd.iccprofile": {+ source: "iana",+ extensions: ["icc", "icm"]+ },+ "application/vnd.ieee.1905": {+ source: "iana"+ },+ "application/vnd.igloader": {+ source: "iana",+ extensions: ["igl"]+ },+ "application/vnd.imagemeter.folder+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.imagemeter.image+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.immervision-ivp": {+ source: "iana",+ extensions: ["ivp"]+ },+ "application/vnd.immervision-ivu": {+ source: "iana",+ extensions: ["ivu"]+ },+ "application/vnd.ims.imsccv1p1": {+ source: "iana"+ },+ "application/vnd.ims.imsccv1p2": {+ source: "iana"+ },+ "application/vnd.ims.imsccv1p3": {+ source: "iana"+ },+ "application/vnd.ims.lis.v2.result+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ims.lti.v2.toolconsumerprofile+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ims.lti.v2.toolproxy+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ims.lti.v2.toolproxy.id+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ims.lti.v2.toolsettings+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ims.lti.v2.toolsettings.simple+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.informedcontrol.rms+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.informix-visionary": {+ source: "iana"+ },+ "application/vnd.infotech.project": {+ source: "iana"+ },+ "application/vnd.infotech.project+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.innopath.wamp.notification": {+ source: "iana"+ },+ "application/vnd.insors.igm": {+ source: "iana",+ extensions: ["igm"]+ },+ "application/vnd.intercon.formnet": {+ source: "iana",+ extensions: ["xpw", "xpx"]+ },+ "application/vnd.intergeo": {+ source: "iana",+ extensions: ["i2g"]+ },+ "application/vnd.intertrust.digibox": {+ source: "iana"+ },+ "application/vnd.intertrust.nncp": {+ source: "iana"+ },+ "application/vnd.intu.qbo": {+ source: "iana",+ extensions: ["qbo"]+ },+ "application/vnd.intu.qfx": {+ source: "iana",+ extensions: ["qfx"]+ },+ "application/vnd.iptc.g2.catalogitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.conceptitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.knowledgeitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.newsitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.newsmessage+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.packageitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.iptc.g2.planningitem+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ipunplugged.rcprofile": {+ source: "iana",+ extensions: ["rcprofile"]+ },+ "application/vnd.irepository.package+xml": {+ source: "iana",+ compressible: true,+ extensions: ["irp"]+ },+ "application/vnd.is-xpr": {+ source: "iana",+ extensions: ["xpr"]+ },+ "application/vnd.isac.fcs": {+ source: "iana",+ extensions: ["fcs"]+ },+ "application/vnd.iso11783-10+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.jam": {+ source: "iana",+ extensions: ["jam"]+ },+ "application/vnd.japannet-directory-service": {+ source: "iana"+ },+ "application/vnd.japannet-jpnstore-wakeup": {+ source: "iana"+ },+ "application/vnd.japannet-payment-wakeup": {+ source: "iana"+ },+ "application/vnd.japannet-registration": {+ source: "iana"+ },+ "application/vnd.japannet-registration-wakeup": {+ source: "iana"+ },+ "application/vnd.japannet-setstore-wakeup": {+ source: "iana"+ },+ "application/vnd.japannet-verification": {+ source: "iana"+ },+ "application/vnd.japannet-verification-wakeup": {+ source: "iana"+ },+ "application/vnd.jcp.javame.midlet-rms": {+ source: "iana",+ extensions: ["rms"]+ },+ "application/vnd.jisp": {+ source: "iana",+ extensions: ["jisp"]+ },+ "application/vnd.joost.joda-archive": {+ source: "iana",+ extensions: ["joda"]+ },+ "application/vnd.jsk.isdn-ngn": {+ source: "iana"+ },+ "application/vnd.kahootz": {+ source: "iana",+ extensions: ["ktz", "ktr"]+ },+ "application/vnd.kde.karbon": {+ source: "iana",+ extensions: ["karbon"]+ },+ "application/vnd.kde.kchart": {+ source: "iana",+ extensions: ["chrt"]+ },+ "application/vnd.kde.kformula": {+ source: "iana",+ extensions: ["kfo"]+ },+ "application/vnd.kde.kivio": {+ source: "iana",+ extensions: ["flw"]+ },+ "application/vnd.kde.kontour": {+ source: "iana",+ extensions: ["kon"]+ },+ "application/vnd.kde.kpresenter": {+ source: "iana",+ extensions: ["kpr", "kpt"]+ },+ "application/vnd.kde.kspread": {+ source: "iana",+ extensions: ["ksp"]+ },+ "application/vnd.kde.kword": {+ source: "iana",+ extensions: ["kwd", "kwt"]+ },+ "application/vnd.kenameaapp": {+ source: "iana",+ extensions: ["htke"]+ },+ "application/vnd.kidspiration": {+ source: "iana",+ extensions: ["kia"]+ },+ "application/vnd.kinar": {+ source: "iana",+ extensions: ["kne", "knp"]+ },+ "application/vnd.koan": {+ source: "iana",+ extensions: ["skp", "skd", "skt", "skm"]+ },+ "application/vnd.kodak-descriptor": {+ source: "iana",+ extensions: ["sse"]+ },+ "application/vnd.las": {+ source: "iana"+ },+ "application/vnd.las.las+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.las.las+xml": {+ source: "iana",+ compressible: true,+ extensions: ["lasxml"]+ },+ "application/vnd.laszip": {+ source: "iana"+ },+ "application/vnd.leap+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.liberty-request+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.llamagraphics.life-balance.desktop": {+ source: "iana",+ extensions: ["lbd"]+ },+ "application/vnd.llamagraphics.life-balance.exchange+xml": {+ source: "iana",+ compressible: true,+ extensions: ["lbe"]+ },+ "application/vnd.logipipe.circuit+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.loom": {+ source: "iana"+ },+ "application/vnd.lotus-1-2-3": {+ source: "iana",+ extensions: ["123"]+ },+ "application/vnd.lotus-approach": {+ source: "iana",+ extensions: ["apr"]+ },+ "application/vnd.lotus-freelance": {+ source: "iana",+ extensions: ["pre"]+ },+ "application/vnd.lotus-notes": {+ source: "iana",+ extensions: ["nsf"]+ },+ "application/vnd.lotus-organizer": {+ source: "iana",+ extensions: ["org"]+ },+ "application/vnd.lotus-screencam": {+ source: "iana",+ extensions: ["scm"]+ },+ "application/vnd.lotus-wordpro": {+ source: "iana",+ extensions: ["lwp"]+ },+ "application/vnd.macports.portpkg": {+ source: "iana",+ extensions: ["portpkg"]+ },+ "application/vnd.mapbox-vector-tile": {+ source: "iana",+ extensions: ["mvt"]+ },+ "application/vnd.marlin.drm.actiontoken+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.marlin.drm.conftoken+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.marlin.drm.license+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.marlin.drm.mdcf": {+ source: "iana"+ },+ "application/vnd.mason+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.maxar.archive.3tz+zip": {+ source: "iana",+ compressible: false+ },+ "application/vnd.maxmind.maxmind-db": {+ source: "iana"+ },+ "application/vnd.mcd": {+ source: "iana",+ extensions: ["mcd"]+ },+ "application/vnd.medcalcdata": {+ source: "iana",+ extensions: ["mc1"]+ },+ "application/vnd.mediastation.cdkey": {+ source: "iana",+ extensions: ["cdkey"]+ },+ "application/vnd.meridian-slingshot": {+ source: "iana"+ },+ "application/vnd.mfer": {+ source: "iana",+ extensions: ["mwf"]+ },+ "application/vnd.mfmp": {+ source: "iana",+ extensions: ["mfm"]+ },+ "application/vnd.micro+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.micrografx.flo": {+ source: "iana",+ extensions: ["flo"]+ },+ "application/vnd.micrografx.igx": {+ source: "iana",+ extensions: ["igx"]+ },+ "application/vnd.microsoft.portable-executable": {+ source: "iana"+ },+ "application/vnd.microsoft.windows.thumbnail-cache": {+ source: "iana"+ },+ "application/vnd.miele+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.mif": {+ source: "iana",+ extensions: ["mif"]+ },+ "application/vnd.minisoft-hp3000-save": {+ source: "iana"+ },+ "application/vnd.mitsubishi.misty-guard.trustweb": {+ source: "iana"+ },+ "application/vnd.mobius.daf": {+ source: "iana",+ extensions: ["daf"]+ },+ "application/vnd.mobius.dis": {+ source: "iana",+ extensions: ["dis"]+ },+ "application/vnd.mobius.mbk": {+ source: "iana",+ extensions: ["mbk"]+ },+ "application/vnd.mobius.mqy": {+ source: "iana",+ extensions: ["mqy"]+ },+ "application/vnd.mobius.msl": {+ source: "iana",+ extensions: ["msl"]+ },+ "application/vnd.mobius.plc": {+ source: "iana",+ extensions: ["plc"]+ },+ "application/vnd.mobius.txf": {+ source: "iana",+ extensions: ["txf"]+ },+ "application/vnd.mophun.application": {+ source: "iana",+ extensions: ["mpn"]+ },+ "application/vnd.mophun.certificate": {+ source: "iana",+ extensions: ["mpc"]+ },+ "application/vnd.motorola.flexsuite": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.adsi": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.fis": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.gotap": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.kmr": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.ttc": {+ source: "iana"+ },+ "application/vnd.motorola.flexsuite.wem": {+ source: "iana"+ },+ "application/vnd.motorola.iprm": {+ source: "iana"+ },+ "application/vnd.mozilla.xul+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xul"]+ },+ "application/vnd.ms-3mfdocument": {+ source: "iana"+ },+ "application/vnd.ms-artgalry": {+ source: "iana",+ extensions: ["cil"]+ },+ "application/vnd.ms-asf": {+ source: "iana"+ },+ "application/vnd.ms-cab-compressed": {+ source: "iana",+ extensions: ["cab"]+ },+ "application/vnd.ms-color.iccprofile": {+ source: "apache"+ },+ "application/vnd.ms-excel": {+ source: "iana",+ compressible: false,+ extensions: ["xls", "xlm", "xla", "xlc", "xlt", "xlw"]+ },+ "application/vnd.ms-excel.addin.macroenabled.12": {+ source: "iana",+ extensions: ["xlam"]+ },+ "application/vnd.ms-excel.sheet.binary.macroenabled.12": {+ source: "iana",+ extensions: ["xlsb"]+ },+ "application/vnd.ms-excel.sheet.macroenabled.12": {+ source: "iana",+ extensions: ["xlsm"]+ },+ "application/vnd.ms-excel.template.macroenabled.12": {+ source: "iana",+ extensions: ["xltm"]+ },+ "application/vnd.ms-fontobject": {+ source: "iana",+ compressible: true,+ extensions: ["eot"]+ },+ "application/vnd.ms-htmlhelp": {+ source: "iana",+ extensions: ["chm"]+ },+ "application/vnd.ms-ims": {+ source: "iana",+ extensions: ["ims"]+ },+ "application/vnd.ms-lrm": {+ source: "iana",+ extensions: ["lrm"]+ },+ "application/vnd.ms-office.activex+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ms-officetheme": {+ source: "iana",+ extensions: ["thmx"]+ },+ "application/vnd.ms-opentype": {+ source: "apache",+ compressible: true+ },+ "application/vnd.ms-outlook": {+ compressible: false,+ extensions: ["msg"]+ },+ "application/vnd.ms-package.obfuscated-opentype": {+ source: "apache"+ },+ "application/vnd.ms-pki.seccat": {+ source: "apache",+ extensions: ["cat"]+ },+ "application/vnd.ms-pki.stl": {+ source: "apache",+ extensions: ["stl"]+ },+ "application/vnd.ms-playready.initiator+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ms-powerpoint": {+ source: "iana",+ compressible: false,+ extensions: ["ppt", "pps", "pot"]+ },+ "application/vnd.ms-powerpoint.addin.macroenabled.12": {+ source: "iana",+ extensions: ["ppam"]+ },+ "application/vnd.ms-powerpoint.presentation.macroenabled.12": {+ source: "iana",+ extensions: ["pptm"]+ },+ "application/vnd.ms-powerpoint.slide.macroenabled.12": {+ source: "iana",+ extensions: ["sldm"]+ },+ "application/vnd.ms-powerpoint.slideshow.macroenabled.12": {+ source: "iana",+ extensions: ["ppsm"]+ },+ "application/vnd.ms-powerpoint.template.macroenabled.12": {+ source: "iana",+ extensions: ["potm"]+ },+ "application/vnd.ms-printdevicecapabilities+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ms-printing.printticket+xml": {+ source: "apache",+ compressible: true+ },+ "application/vnd.ms-printschematicket+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ms-project": {+ source: "iana",+ extensions: ["mpp", "mpt"]+ },+ "application/vnd.ms-tnef": {+ source: "iana"+ },+ "application/vnd.ms-windows.devicepairing": {+ source: "iana"+ },+ "application/vnd.ms-windows.nwprinting.oob": {+ source: "iana"+ },+ "application/vnd.ms-windows.printerpairing": {+ source: "iana"+ },+ "application/vnd.ms-windows.wsd.oob": {+ source: "iana"+ },+ "application/vnd.ms-wmdrm.lic-chlg-req": {+ source: "iana"+ },+ "application/vnd.ms-wmdrm.lic-resp": {+ source: "iana"+ },+ "application/vnd.ms-wmdrm.meter-chlg-req": {+ source: "iana"+ },+ "application/vnd.ms-wmdrm.meter-resp": {+ source: "iana"+ },+ "application/vnd.ms-word.document.macroenabled.12": {+ source: "iana",+ extensions: ["docm"]+ },+ "application/vnd.ms-word.template.macroenabled.12": {+ source: "iana",+ extensions: ["dotm"]+ },+ "application/vnd.ms-works": {+ source: "iana",+ extensions: ["wps", "wks", "wcm", "wdb"]+ },+ "application/vnd.ms-wpl": {+ source: "iana",+ extensions: ["wpl"]+ },+ "application/vnd.ms-xpsdocument": {+ source: "iana",+ compressible: false,+ extensions: ["xps"]+ },+ "application/vnd.msa-disk-image": {+ source: "iana"+ },+ "application/vnd.mseq": {+ source: "iana",+ extensions: ["mseq"]+ },+ "application/vnd.msign": {+ source: "iana"+ },+ "application/vnd.multiad.creator": {+ source: "iana"+ },+ "application/vnd.multiad.creator.cif": {+ source: "iana"+ },+ "application/vnd.music-niff": {+ source: "iana"+ },+ "application/vnd.musician": {+ source: "iana",+ extensions: ["mus"]+ },+ "application/vnd.muvee.style": {+ source: "iana",+ extensions: ["msty"]+ },+ "application/vnd.mynfc": {+ source: "iana",+ extensions: ["taglet"]+ },+ "application/vnd.nacamar.ybrid+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.ncd.control": {+ source: "iana"+ },+ "application/vnd.ncd.reference": {+ source: "iana"+ },+ "application/vnd.nearst.inv+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nebumind.line": {+ source: "iana"+ },+ "application/vnd.nervana": {+ source: "iana"+ },+ "application/vnd.netfpx": {+ source: "iana"+ },+ "application/vnd.neurolanguage.nlu": {+ source: "iana",+ extensions: ["nlu"]+ },+ "application/vnd.nimn": {+ source: "iana"+ },+ "application/vnd.nintendo.nitro.rom": {+ source: "iana"+ },+ "application/vnd.nintendo.snes.rom": {+ source: "iana"+ },+ "application/vnd.nitf": {+ source: "iana",+ extensions: ["ntf", "nitf"]+ },+ "application/vnd.noblenet-directory": {+ source: "iana",+ extensions: ["nnd"]+ },+ "application/vnd.noblenet-sealer": {+ source: "iana",+ extensions: ["nns"]+ },+ "application/vnd.noblenet-web": {+ source: "iana",+ extensions: ["nnw"]+ },+ "application/vnd.nokia.catalogs": {+ source: "iana"+ },+ "application/vnd.nokia.conml+wbxml": {+ source: "iana"+ },+ "application/vnd.nokia.conml+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nokia.iptv.config+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nokia.isds-radio-presets": {+ source: "iana"+ },+ "application/vnd.nokia.landmark+wbxml": {+ source: "iana"+ },+ "application/vnd.nokia.landmark+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nokia.landmarkcollection+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nokia.n-gage.ac+xml": {+ source: "iana",+ compressible: true,+ extensions: ["ac"]+ },+ "application/vnd.nokia.n-gage.data": {+ source: "iana",+ extensions: ["ngdat"]+ },+ "application/vnd.nokia.n-gage.symbian.install": {+ source: "iana",+ extensions: ["n-gage"]+ },+ "application/vnd.nokia.ncd": {+ source: "iana"+ },+ "application/vnd.nokia.pcd+wbxml": {+ source: "iana"+ },+ "application/vnd.nokia.pcd+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.nokia.radio-preset": {+ source: "iana",+ extensions: ["rpst"]+ },+ "application/vnd.nokia.radio-presets": {+ source: "iana",+ extensions: ["rpss"]+ },+ "application/vnd.novadigm.edm": {+ source: "iana",+ extensions: ["edm"]+ },+ "application/vnd.novadigm.edx": {+ source: "iana",+ extensions: ["edx"]+ },+ "application/vnd.novadigm.ext": {+ source: "iana",+ extensions: ["ext"]+ },+ "application/vnd.ntt-local.content-share": {+ source: "iana"+ },+ "application/vnd.ntt-local.file-transfer": {+ source: "iana"+ },+ "application/vnd.ntt-local.ogw_remote-access": {+ source: "iana"+ },+ "application/vnd.ntt-local.sip-ta_remote": {+ source: "iana"+ },+ "application/vnd.ntt-local.sip-ta_tcp_stream": {+ source: "iana"+ },+ "application/vnd.oasis.opendocument.chart": {+ source: "iana",+ extensions: ["odc"]+ },+ "application/vnd.oasis.opendocument.chart-template": {+ source: "iana",+ extensions: ["otc"]+ },+ "application/vnd.oasis.opendocument.database": {+ source: "iana",+ extensions: ["odb"]+ },+ "application/vnd.oasis.opendocument.formula": {+ source: "iana",+ extensions: ["odf"]+ },+ "application/vnd.oasis.opendocument.formula-template": {+ source: "iana",+ extensions: ["odft"]+ },+ "application/vnd.oasis.opendocument.graphics": {+ source: "iana",+ compressible: false,+ extensions: ["odg"]+ },+ "application/vnd.oasis.opendocument.graphics-template": {+ source: "iana",+ extensions: ["otg"]+ },+ "application/vnd.oasis.opendocument.image": {+ source: "iana",+ extensions: ["odi"]+ },+ "application/vnd.oasis.opendocument.image-template": {+ source: "iana",+ extensions: ["oti"]+ },+ "application/vnd.oasis.opendocument.presentation": {+ source: "iana",+ compressible: false,+ extensions: ["odp"]+ },+ "application/vnd.oasis.opendocument.presentation-template": {+ source: "iana",+ extensions: ["otp"]+ },+ "application/vnd.oasis.opendocument.spreadsheet": {+ source: "iana",+ compressible: false,+ extensions: ["ods"]+ },+ "application/vnd.oasis.opendocument.spreadsheet-template": {+ source: "iana",+ extensions: ["ots"]+ },+ "application/vnd.oasis.opendocument.text": {+ source: "iana",+ compressible: false,+ extensions: ["odt"]+ },+ "application/vnd.oasis.opendocument.text-master": {+ source: "iana",+ extensions: ["odm"]+ },+ "application/vnd.oasis.opendocument.text-template": {+ source: "iana",+ extensions: ["ott"]+ },+ "application/vnd.oasis.opendocument.text-web": {+ source: "iana",+ extensions: ["oth"]+ },+ "application/vnd.obn": {+ source: "iana"+ },+ "application/vnd.ocf+cbor": {+ source: "iana"+ },+ "application/vnd.oci.image.manifest.v1+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oftn.l10n+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.contentaccessdownload+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.contentaccessstreaming+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.cspg-hexbinary": {+ source: "iana"+ },+ "application/vnd.oipf.dae.svg+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.dae.xhtml+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.mippvcontrolmessage+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.pae.gem": {+ source: "iana"+ },+ "application/vnd.oipf.spdiscovery+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.spdlist+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.ueprofile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oipf.userprofile+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.olpc-sugar": {+ source: "iana",+ extensions: ["xo"]+ },+ "application/vnd.oma-scws-config": {+ source: "iana"+ },+ "application/vnd.oma-scws-http-request": {+ source: "iana"+ },+ "application/vnd.oma-scws-http-response": {+ source: "iana"+ },+ "application/vnd.oma.bcast.associated-procedure-parameter+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.drm-trigger+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.imd+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.ltkm": {+ source: "iana"+ },+ "application/vnd.oma.bcast.notification+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.provisioningtrigger": {+ source: "iana"+ },+ "application/vnd.oma.bcast.sgboot": {+ source: "iana"+ },+ "application/vnd.oma.bcast.sgdd+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.sgdu": {+ source: "iana"+ },+ "application/vnd.oma.bcast.simple-symbol-container": {+ source: "iana"+ },+ "application/vnd.oma.bcast.smartcard-trigger+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.sprov+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.bcast.stkm": {+ source: "iana"+ },+ "application/vnd.oma.cab-address-book+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.cab-feature-handler+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.cab-pcc+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.cab-subs-invite+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.cab-user-prefs+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.dcd": {+ source: "iana"+ },+ "application/vnd.oma.dcdc": {+ source: "iana"+ },+ "application/vnd.oma.dd2+xml": {+ source: "iana",+ compressible: true,+ extensions: ["dd2"]+ },+ "application/vnd.oma.drm.risd+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.group-usage-list+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.lwm2m+cbor": {+ source: "iana"+ },+ "application/vnd.oma.lwm2m+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.lwm2m+tlv": {+ source: "iana"+ },+ "application/vnd.oma.pal+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.poc.detailed-progress-report+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.poc.final-report+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.poc.groups+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.poc.invocation-descriptor+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.poc.optimized-progress-report+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.push": {+ source: "iana"+ },+ "application/vnd.oma.scidm.messages+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oma.xcap-directory+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.omads-email+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.omads-file+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.omads-folder+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.omaloc-supl-init": {+ source: "iana"+ },+ "application/vnd.onepager": {+ source: "iana"+ },+ "application/vnd.onepagertamp": {+ source: "iana"+ },+ "application/vnd.onepagertamx": {+ source: "iana"+ },+ "application/vnd.onepagertat": {+ source: "iana"+ },+ "application/vnd.onepagertatp": {+ source: "iana"+ },+ "application/vnd.onepagertatx": {+ source: "iana"+ },+ "application/vnd.openblox.game+xml": {+ source: "iana",+ compressible: true,+ extensions: ["obgx"]+ },+ "application/vnd.openblox.game-binary": {+ source: "iana"+ },+ "application/vnd.openeye.oeb": {+ source: "iana"+ },+ "application/vnd.openofficeorg.extension": {+ source: "apache",+ extensions: ["oxt"]+ },+ "application/vnd.openstreetmap.data+xml": {+ source: "iana",+ compressible: true,+ extensions: ["osm"]+ },+ "application/vnd.opentimestamps.ots": {+ source: "iana"+ },+ "application/vnd.openxmlformats-officedocument.custom-properties+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawing+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.extended-properties+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": {+ source: "iana",+ compressible: false,+ extensions: ["pptx"]+ },+ "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slide": {+ source: "iana",+ extensions: ["sldx"]+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow": {+ source: "iana",+ extensions: ["ppsx"]+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.template": {+ source: "iana",+ extensions: ["potx"]+ },+ "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {+ source: "iana",+ compressible: false,+ extensions: ["xlsx"]+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.template": {+ source: "iana",+ extensions: ["xltx"]+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.theme+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.themeoverride+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.vmldrawing": {+ source: "iana"+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {+ source: "iana",+ compressible: false,+ extensions: ["docx"]+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.template": {+ source: "iana",+ extensions: ["dotx"]+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-package.core-properties+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.openxmlformats-package.relationships+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oracle.resource+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.orange.indata": {+ source: "iana"+ },+ "application/vnd.osa.netdeploy": {+ source: "iana"+ },+ "application/vnd.osgeo.mapguide.package": {+ source: "iana",+ extensions: ["mgp"]+ },+ "application/vnd.osgi.bundle": {+ source: "iana"+ },+ "application/vnd.osgi.dp": {+ source: "iana",+ extensions: ["dp"]+ },+ "application/vnd.osgi.subsystem": {+ source: "iana",+ extensions: ["esa"]+ },+ "application/vnd.otps.ct-kip+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.oxli.countgraph": {+ source: "iana"+ },+ "application/vnd.pagerduty+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.palm": {+ source: "iana",+ extensions: ["pdb", "pqa", "oprc"]+ },+ "application/vnd.panoply": {+ source: "iana"+ },+ "application/vnd.paos.xml": {+ source: "iana"+ },+ "application/vnd.patentdive": {+ source: "iana"+ },+ "application/vnd.patientecommsdoc": {+ source: "iana"+ },+ "application/vnd.pawaafile": {+ source: "iana",+ extensions: ["paw"]+ },+ "application/vnd.pcos": {+ source: "iana"+ },+ "application/vnd.pg.format": {+ source: "iana",+ extensions: ["str"]+ },+ "application/vnd.pg.osasli": {+ source: "iana",+ extensions: ["ei6"]+ },+ "application/vnd.piaccess.application-licence": {+ source: "iana"+ },+ "application/vnd.picsel": {+ source: "iana",+ extensions: ["efif"]+ },+ "application/vnd.pmi.widget": {+ source: "iana",+ extensions: ["wg"]+ },+ "application/vnd.poc.group-advertisement+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.pocketlearn": {+ source: "iana",+ extensions: ["plf"]+ },+ "application/vnd.powerbuilder6": {+ source: "iana",+ extensions: ["pbd"]+ },+ "application/vnd.powerbuilder6-s": {+ source: "iana"+ },+ "application/vnd.powerbuilder7": {+ source: "iana"+ },+ "application/vnd.powerbuilder7-s": {+ source: "iana"+ },+ "application/vnd.powerbuilder75": {+ source: "iana"+ },+ "application/vnd.powerbuilder75-s": {+ source: "iana"+ },+ "application/vnd.preminet": {+ source: "iana"+ },+ "application/vnd.previewsystems.box": {+ source: "iana",+ extensions: ["box"]+ },+ "application/vnd.proteus.magazine": {+ source: "iana",+ extensions: ["mgz"]+ },+ "application/vnd.psfs": {+ source: "iana"+ },+ "application/vnd.publishare-delta-tree": {+ source: "iana",+ extensions: ["qps"]+ },+ "application/vnd.pvi.ptid1": {+ source: "iana",+ extensions: ["ptid"]+ },+ "application/vnd.pwg-multiplexed": {+ source: "iana"+ },+ "application/vnd.pwg-xhtml-print+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.qualcomm.brew-app-res": {+ source: "iana"+ },+ "application/vnd.quarantainenet": {+ source: "iana"+ },+ "application/vnd.quark.quarkxpress": {+ source: "iana",+ extensions: ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"]+ },+ "application/vnd.quobject-quoxdocument": {+ source: "iana"+ },+ "application/vnd.radisys.moml+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-audit+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-audit-conf+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-audit-conn+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-audit-dialog+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-audit-stream+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-conf+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-base+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-fax-detect+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-group+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-speech+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.radisys.msml-dialog-transform+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.rainstor.data": {+ source: "iana"+ },+ "application/vnd.rapid": {+ source: "iana"+ },+ "application/vnd.rar": {+ source: "iana",+ extensions: ["rar"]+ },+ "application/vnd.realvnc.bed": {+ source: "iana",+ extensions: ["bed"]+ },+ "application/vnd.recordare.musicxml": {+ source: "iana",+ extensions: ["mxl"]+ },+ "application/vnd.recordare.musicxml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["musicxml"]+ },+ "application/vnd.renlearn.rlprint": {+ source: "iana"+ },+ "application/vnd.resilient.logic": {+ source: "iana"+ },+ "application/vnd.restful+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.rig.cryptonote": {+ source: "iana",+ extensions: ["cryptonote"]+ },+ "application/vnd.rim.cod": {+ source: "apache",+ extensions: ["cod"]+ },+ "application/vnd.rn-realmedia": {+ source: "apache",+ extensions: ["rm"]+ },+ "application/vnd.rn-realmedia-vbr": {+ source: "apache",+ extensions: ["rmvb"]+ },+ "application/vnd.route66.link66+xml": {+ source: "iana",+ compressible: true,+ extensions: ["link66"]+ },+ "application/vnd.rs-274x": {+ source: "iana"+ },+ "application/vnd.ruckus.download": {+ source: "iana"+ },+ "application/vnd.s3sms": {+ source: "iana"+ },+ "application/vnd.sailingtracker.track": {+ source: "iana",+ extensions: ["st"]+ },+ "application/vnd.sar": {+ source: "iana"+ },+ "application/vnd.sbm.cid": {+ source: "iana"+ },+ "application/vnd.sbm.mid2": {+ source: "iana"+ },+ "application/vnd.scribus": {+ source: "iana"+ },+ "application/vnd.sealed.3df": {+ source: "iana"+ },+ "application/vnd.sealed.csf": {+ source: "iana"+ },+ "application/vnd.sealed.doc": {+ source: "iana"+ },+ "application/vnd.sealed.eml": {+ source: "iana"+ },+ "application/vnd.sealed.mht": {+ source: "iana"+ },+ "application/vnd.sealed.net": {+ source: "iana"+ },+ "application/vnd.sealed.ppt": {+ source: "iana"+ },+ "application/vnd.sealed.tiff": {+ source: "iana"+ },+ "application/vnd.sealed.xls": {+ source: "iana"+ },+ "application/vnd.sealedmedia.softseal.html": {+ source: "iana"+ },+ "application/vnd.sealedmedia.softseal.pdf": {+ source: "iana"+ },+ "application/vnd.seemail": {+ source: "iana",+ extensions: ["see"]+ },+ "application/vnd.seis+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.sema": {+ source: "iana",+ extensions: ["sema"]+ },+ "application/vnd.semd": {+ source: "iana",+ extensions: ["semd"]+ },+ "application/vnd.semf": {+ source: "iana",+ extensions: ["semf"]+ },+ "application/vnd.shade-save-file": {+ source: "iana"+ },+ "application/vnd.shana.informed.formdata": {+ source: "iana",+ extensions: ["ifm"]+ },+ "application/vnd.shana.informed.formtemplate": {+ source: "iana",+ extensions: ["itp"]+ },+ "application/vnd.shana.informed.interchange": {+ source: "iana",+ extensions: ["iif"]+ },+ "application/vnd.shana.informed.package": {+ source: "iana",+ extensions: ["ipk"]+ },+ "application/vnd.shootproof+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.shopkick+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.shp": {+ source: "iana"+ },+ "application/vnd.shx": {+ source: "iana"+ },+ "application/vnd.sigrok.session": {+ source: "iana"+ },+ "application/vnd.simtech-mindmapper": {+ source: "iana",+ extensions: ["twd", "twds"]+ },+ "application/vnd.siren+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.smaf": {+ source: "iana",+ extensions: ["mmf"]+ },+ "application/vnd.smart.notebook": {+ source: "iana"+ },+ "application/vnd.smart.teacher": {+ source: "iana",+ extensions: ["teacher"]+ },+ "application/vnd.snesdev-page-table": {+ source: "iana"+ },+ "application/vnd.software602.filler.form+xml": {+ source: "iana",+ compressible: true,+ extensions: ["fo"]+ },+ "application/vnd.software602.filler.form-xml-zip": {+ source: "iana"+ },+ "application/vnd.solent.sdkm+xml": {+ source: "iana",+ compressible: true,+ extensions: ["sdkm", "sdkd"]+ },+ "application/vnd.spotfire.dxp": {+ source: "iana",+ extensions: ["dxp"]+ },+ "application/vnd.spotfire.sfs": {+ source: "iana",+ extensions: ["sfs"]+ },+ "application/vnd.sqlite3": {+ source: "iana"+ },+ "application/vnd.sss-cod": {+ source: "iana"+ },+ "application/vnd.sss-dtf": {+ source: "iana"+ },+ "application/vnd.sss-ntf": {+ source: "iana"+ },+ "application/vnd.stardivision.calc": {+ source: "apache",+ extensions: ["sdc"]+ },+ "application/vnd.stardivision.draw": {+ source: "apache",+ extensions: ["sda"]+ },+ "application/vnd.stardivision.impress": {+ source: "apache",+ extensions: ["sdd"]+ },+ "application/vnd.stardivision.math": {+ source: "apache",+ extensions: ["smf"]+ },+ "application/vnd.stardivision.writer": {+ source: "apache",+ extensions: ["sdw", "vor"]+ },+ "application/vnd.stardivision.writer-global": {+ source: "apache",+ extensions: ["sgl"]+ },+ "application/vnd.stepmania.package": {+ source: "iana",+ extensions: ["smzip"]+ },+ "application/vnd.stepmania.stepchart": {+ source: "iana",+ extensions: ["sm"]+ },+ "application/vnd.street-stream": {+ source: "iana"+ },+ "application/vnd.sun.wadl+xml": {+ source: "iana",+ compressible: true,+ extensions: ["wadl"]+ },+ "application/vnd.sun.xml.calc": {+ source: "apache",+ extensions: ["sxc"]+ },+ "application/vnd.sun.xml.calc.template": {+ source: "apache",+ extensions: ["stc"]+ },+ "application/vnd.sun.xml.draw": {+ source: "apache",+ extensions: ["sxd"]+ },+ "application/vnd.sun.xml.draw.template": {+ source: "apache",+ extensions: ["std"]+ },+ "application/vnd.sun.xml.impress": {+ source: "apache",+ extensions: ["sxi"]+ },+ "application/vnd.sun.xml.impress.template": {+ source: "apache",+ extensions: ["sti"]+ },+ "application/vnd.sun.xml.math": {+ source: "apache",+ extensions: ["sxm"]+ },+ "application/vnd.sun.xml.writer": {+ source: "apache",+ extensions: ["sxw"]+ },+ "application/vnd.sun.xml.writer.global": {+ source: "apache",+ extensions: ["sxg"]+ },+ "application/vnd.sun.xml.writer.template": {+ source: "apache",+ extensions: ["stw"]+ },+ "application/vnd.sus-calendar": {+ source: "iana",+ extensions: ["sus", "susp"]+ },+ "application/vnd.svd": {+ source: "iana",+ extensions: ["svd"]+ },+ "application/vnd.swiftview-ics": {+ source: "iana"+ },+ "application/vnd.sycle+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.syft+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.symbian.install": {+ source: "apache",+ extensions: ["sis", "sisx"]+ },+ "application/vnd.syncml+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["xsm"]+ },+ "application/vnd.syncml.dm+wbxml": {+ source: "iana",+ charset: "UTF-8",+ extensions: ["bdm"]+ },+ "application/vnd.syncml.dm+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["xdm"]+ },+ "application/vnd.syncml.dm.notification": {+ source: "iana"+ },+ "application/vnd.syncml.dmddf+wbxml": {+ source: "iana"+ },+ "application/vnd.syncml.dmddf+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["ddf"]+ },+ "application/vnd.syncml.dmtnds+wbxml": {+ source: "iana"+ },+ "application/vnd.syncml.dmtnds+xml": {+ source: "iana",+ charset: "UTF-8",+ compressible: true+ },+ "application/vnd.syncml.ds.notification": {+ source: "iana"+ },+ "application/vnd.tableschema+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.tao.intent-module-archive": {+ source: "iana",+ extensions: ["tao"]+ },+ "application/vnd.tcpdump.pcap": {+ source: "iana",+ extensions: ["pcap", "cap", "dmp"]+ },+ "application/vnd.think-cell.ppttc+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.tmd.mediaflex.api+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.tml": {+ source: "iana"+ },+ "application/vnd.tmobile-livetv": {+ source: "iana",+ extensions: ["tmo"]+ },+ "application/vnd.tri.onesource": {+ source: "iana"+ },+ "application/vnd.trid.tpt": {+ source: "iana",+ extensions: ["tpt"]+ },+ "application/vnd.triscape.mxs": {+ source: "iana",+ extensions: ["mxs"]+ },+ "application/vnd.trueapp": {+ source: "iana",+ extensions: ["tra"]+ },+ "application/vnd.truedoc": {+ source: "iana"+ },+ "application/vnd.ubisoft.webplayer": {+ source: "iana"+ },+ "application/vnd.ufdl": {+ source: "iana",+ extensions: ["ufd", "ufdl"]+ },+ "application/vnd.uiq.theme": {+ source: "iana",+ extensions: ["utz"]+ },+ "application/vnd.umajin": {+ source: "iana",+ extensions: ["umj"]+ },+ "application/vnd.unity": {+ source: "iana",+ extensions: ["unityweb"]+ },+ "application/vnd.uoml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["uoml"]+ },+ "application/vnd.uplanet.alert": {+ source: "iana"+ },+ "application/vnd.uplanet.alert-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.bearer-choice": {+ source: "iana"+ },+ "application/vnd.uplanet.bearer-choice-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.cacheop": {+ source: "iana"+ },+ "application/vnd.uplanet.cacheop-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.channel": {+ source: "iana"+ },+ "application/vnd.uplanet.channel-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.list": {+ source: "iana"+ },+ "application/vnd.uplanet.list-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.listcmd": {+ source: "iana"+ },+ "application/vnd.uplanet.listcmd-wbxml": {+ source: "iana"+ },+ "application/vnd.uplanet.signal": {+ source: "iana"+ },+ "application/vnd.uri-map": {+ source: "iana"+ },+ "application/vnd.valve.source.material": {+ source: "iana"+ },+ "application/vnd.vcx": {+ source: "iana",+ extensions: ["vcx"]+ },+ "application/vnd.vd-study": {+ source: "iana"+ },+ "application/vnd.vectorworks": {+ source: "iana"+ },+ "application/vnd.vel+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.verimatrix.vcas": {+ source: "iana"+ },+ "application/vnd.veritone.aion+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.veryant.thin": {+ source: "iana"+ },+ "application/vnd.ves.encrypted": {+ source: "iana"+ },+ "application/vnd.vidsoft.vidconference": {+ source: "iana"+ },+ "application/vnd.visio": {+ source: "iana",+ extensions: ["vsd", "vst", "vss", "vsw"]+ },+ "application/vnd.visionary": {+ source: "iana",+ extensions: ["vis"]+ },+ "application/vnd.vividence.scriptfile": {+ source: "iana"+ },+ "application/vnd.vsf": {+ source: "iana",+ extensions: ["vsf"]+ },+ "application/vnd.wap.sic": {+ source: "iana"+ },+ "application/vnd.wap.slc": {+ source: "iana"+ },+ "application/vnd.wap.wbxml": {+ source: "iana",+ charset: "UTF-8",+ extensions: ["wbxml"]+ },+ "application/vnd.wap.wmlc": {+ source: "iana",+ extensions: ["wmlc"]+ },+ "application/vnd.wap.wmlscriptc": {+ source: "iana",+ extensions: ["wmlsc"]+ },+ "application/vnd.webturbo": {+ source: "iana",+ extensions: ["wtb"]+ },+ "application/vnd.wfa.dpp": {+ source: "iana"+ },+ "application/vnd.wfa.p2p": {+ source: "iana"+ },+ "application/vnd.wfa.wsc": {+ source: "iana"+ },+ "application/vnd.windows.devicepairing": {+ source: "iana"+ },+ "application/vnd.wmc": {+ source: "iana"+ },+ "application/vnd.wmf.bootstrap": {+ source: "iana"+ },+ "application/vnd.wolfram.mathematica": {+ source: "iana"+ },+ "application/vnd.wolfram.mathematica.package": {+ source: "iana"+ },+ "application/vnd.wolfram.player": {+ source: "iana",+ extensions: ["nbp"]+ },+ "application/vnd.wordperfect": {+ source: "iana",+ extensions: ["wpd"]+ },+ "application/vnd.wqd": {+ source: "iana",+ extensions: ["wqd"]+ },+ "application/vnd.wrq-hp3000-labelled": {+ source: "iana"+ },+ "application/vnd.wt.stf": {+ source: "iana",+ extensions: ["stf"]+ },+ "application/vnd.wv.csp+wbxml": {+ source: "iana"+ },+ "application/vnd.wv.csp+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.wv.ssp+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.xacml+json": {+ source: "iana",+ compressible: true+ },+ "application/vnd.xara": {+ source: "iana",+ extensions: ["xar"]+ },+ "application/vnd.xfdl": {+ source: "iana",+ extensions: ["xfdl"]+ },+ "application/vnd.xfdl.webform": {+ source: "iana"+ },+ "application/vnd.xmi+xml": {+ source: "iana",+ compressible: true+ },+ "application/vnd.xmpie.cpkg": {+ source: "iana"+ },+ "application/vnd.xmpie.dpkg": {+ source: "iana"+ },+ "application/vnd.xmpie.plan": {+ source: "iana"+ },+ "application/vnd.xmpie.ppkg": {+ source: "iana"+ },+ "application/vnd.xmpie.xlim": {+ source: "iana"+ },+ "application/vnd.yamaha.hv-dic": {+ source: "iana",+ extensions: ["hvd"]+ },+ "application/vnd.yamaha.hv-script": {+ source: "iana",+ extensions: ["hvs"]+ },+ "application/vnd.yamaha.hv-voice": {+ source: "iana",+ extensions: ["hvp"]+ },+ "application/vnd.yamaha.openscoreformat": {+ source: "iana",+ extensions: ["osf"]+ },+ "application/vnd.yamaha.openscoreformat.osfpvg+xml": {+ source: "iana",+ compressible: true,+ extensions: ["osfpvg"]+ },+ "application/vnd.yamaha.remote-setup": {+ source: "iana"+ },+ "application/vnd.yamaha.smaf-audio": {+ source: "iana",+ extensions: ["saf"]+ },+ "application/vnd.yamaha.smaf-phrase": {+ source: "iana",+ extensions: ["spf"]+ },+ "application/vnd.yamaha.through-ngn": {+ source: "iana"+ },+ "application/vnd.yamaha.tunnel-udpencap": {+ source: "iana"+ },+ "application/vnd.yaoweme": {+ source: "iana"+ },+ "application/vnd.yellowriver-custom-menu": {+ source: "iana",+ extensions: ["cmp"]+ },+ "application/vnd.youtube.yt": {+ source: "iana"+ },+ "application/vnd.zul": {+ source: "iana",+ extensions: ["zir", "zirz"]+ },+ "application/vnd.zzazz.deck+xml": {+ source: "iana",+ compressible: true,+ extensions: ["zaz"]+ },+ "application/voicexml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["vxml"]+ },+ "application/voucher-cms+json": {+ source: "iana",+ compressible: true+ },+ "application/vq-rtcpxr": {+ source: "iana"+ },+ "application/wasm": {+ source: "iana",+ compressible: true,+ extensions: ["wasm"]+ },+ "application/watcherinfo+xml": {+ source: "iana",+ compressible: true,+ extensions: ["wif"]+ },+ "application/webpush-options+json": {+ source: "iana",+ compressible: true+ },+ "application/whoispp-query": {+ source: "iana"+ },+ "application/whoispp-response": {+ source: "iana"+ },+ "application/widget": {+ source: "iana",+ extensions: ["wgt"]+ },+ "application/winhlp": {+ source: "apache",+ extensions: ["hlp"]+ },+ "application/wita": {+ source: "iana"+ },+ "application/wordperfect5.1": {+ source: "iana"+ },+ "application/wsdl+xml": {+ source: "iana",+ compressible: true,+ extensions: ["wsdl"]+ },+ "application/wspolicy+xml": {+ source: "iana",+ compressible: true,+ extensions: ["wspolicy"]+ },+ "application/x-7z-compressed": {+ source: "apache",+ compressible: false,+ extensions: ["7z"]+ },+ "application/x-abiword": {+ source: "apache",+ extensions: ["abw"]+ },+ "application/x-ace-compressed": {+ source: "apache",+ extensions: ["ace"]+ },+ "application/x-amf": {+ source: "apache"+ },+ "application/x-apple-diskimage": {+ source: "apache",+ extensions: ["dmg"]+ },+ "application/x-arj": {+ compressible: false,+ extensions: ["arj"]+ },+ "application/x-authorware-bin": {+ source: "apache",+ extensions: ["aab", "x32", "u32", "vox"]+ },+ "application/x-authorware-map": {+ source: "apache",+ extensions: ["aam"]+ },+ "application/x-authorware-seg": {+ source: "apache",+ extensions: ["aas"]+ },+ "application/x-bcpio": {+ source: "apache",+ extensions: ["bcpio"]+ },+ "application/x-bdoc": {+ compressible: false,+ extensions: ["bdoc"]+ },+ "application/x-bittorrent": {+ source: "apache",+ extensions: ["torrent"]+ },+ "application/x-blorb": {+ source: "apache",+ extensions: ["blb", "blorb"]+ },+ "application/x-bzip": {+ source: "apache",+ compressible: false,+ extensions: ["bz"]+ },+ "application/x-bzip2": {+ source: "apache",+ compressible: false,+ extensions: ["bz2", "boz"]+ },+ "application/x-cbr": {+ source: "apache",+ extensions: ["cbr", "cba", "cbt", "cbz", "cb7"]+ },+ "application/x-cdlink": {+ source: "apache",+ extensions: ["vcd"]+ },+ "application/x-cfs-compressed": {+ source: "apache",+ extensions: ["cfs"]+ },+ "application/x-chat": {+ source: "apache",+ extensions: ["chat"]+ },+ "application/x-chess-pgn": {+ source: "apache",+ extensions: ["pgn"]+ },+ "application/x-chrome-extension": {+ extensions: ["crx"]+ },+ "application/x-cocoa": {+ source: "nginx",+ extensions: ["cco"]+ },+ "application/x-compress": {+ source: "apache"+ },+ "application/x-conference": {+ source: "apache",+ extensions: ["nsc"]+ },+ "application/x-cpio": {+ source: "apache",+ extensions: ["cpio"]+ },+ "application/x-csh": {+ source: "apache",+ extensions: ["csh"]+ },+ "application/x-deb": {+ compressible: false+ },+ "application/x-debian-package": {+ source: "apache",+ extensions: ["deb", "udeb"]+ },+ "application/x-dgc-compressed": {+ source: "apache",+ extensions: ["dgc"]+ },+ "application/x-director": {+ source: "apache",+ extensions: ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"]+ },+ "application/x-doom": {+ source: "apache",+ extensions: ["wad"]+ },+ "application/x-dtbncx+xml": {+ source: "apache",+ compressible: true,+ extensions: ["ncx"]+ },+ "application/x-dtbook+xml": {+ source: "apache",+ compressible: true,+ extensions: ["dtb"]+ },+ "application/x-dtbresource+xml": {+ source: "apache",+ compressible: true,+ extensions: ["res"]+ },+ "application/x-dvi": {+ source: "apache",+ compressible: false,+ extensions: ["dvi"]+ },+ "application/x-envoy": {+ source: "apache",+ extensions: ["evy"]+ },+ "application/x-eva": {+ source: "apache",+ extensions: ["eva"]+ },+ "application/x-font-bdf": {+ source: "apache",+ extensions: ["bdf"]+ },+ "application/x-font-dos": {+ source: "apache"+ },+ "application/x-font-framemaker": {+ source: "apache"+ },+ "application/x-font-ghostscript": {+ source: "apache",+ extensions: ["gsf"]+ },+ "application/x-font-libgrx": {+ source: "apache"+ },+ "application/x-font-linux-psf": {+ source: "apache",+ extensions: ["psf"]+ },+ "application/x-font-pcf": {+ source: "apache",+ extensions: ["pcf"]+ },+ "application/x-font-snf": {+ source: "apache",+ extensions: ["snf"]+ },+ "application/x-font-speedo": {+ source: "apache"+ },+ "application/x-font-sunos-news": {+ source: "apache"+ },+ "application/x-font-type1": {+ source: "apache",+ extensions: ["pfa", "pfb", "pfm", "afm"]+ },+ "application/x-font-vfont": {+ source: "apache"+ },+ "application/x-freearc": {+ source: "apache",+ extensions: ["arc"]+ },+ "application/x-futuresplash": {+ source: "apache",+ extensions: ["spl"]+ },+ "application/x-gca-compressed": {+ source: "apache",+ extensions: ["gca"]+ },+ "application/x-glulx": {+ source: "apache",+ extensions: ["ulx"]+ },+ "application/x-gnumeric": {+ source: "apache",+ extensions: ["gnumeric"]+ },+ "application/x-gramps-xml": {+ source: "apache",+ extensions: ["gramps"]+ },+ "application/x-gtar": {+ source: "apache",+ extensions: ["gtar"]+ },+ "application/x-gzip": {+ source: "apache"+ },+ "application/x-hdf": {+ source: "apache",+ extensions: ["hdf"]+ },+ "application/x-httpd-php": {+ compressible: true,+ extensions: ["php"]+ },+ "application/x-install-instructions": {+ source: "apache",+ extensions: ["install"]+ },+ "application/x-iso9660-image": {+ source: "apache",+ extensions: ["iso"]+ },+ "application/x-iwork-keynote-sffkey": {+ extensions: ["key"]+ },+ "application/x-iwork-numbers-sffnumbers": {+ extensions: ["numbers"]+ },+ "application/x-iwork-pages-sffpages": {+ extensions: ["pages"]+ },+ "application/x-java-archive-diff": {+ source: "nginx",+ extensions: ["jardiff"]+ },+ "application/x-java-jnlp-file": {+ source: "apache",+ compressible: false,+ extensions: ["jnlp"]+ },+ "application/x-javascript": {+ compressible: true+ },+ "application/x-keepass2": {+ extensions: ["kdbx"]+ },+ "application/x-latex": {+ source: "apache",+ compressible: false,+ extensions: ["latex"]+ },+ "application/x-lua-bytecode": {+ extensions: ["luac"]+ },+ "application/x-lzh-compressed": {+ source: "apache",+ extensions: ["lzh", "lha"]+ },+ "application/x-makeself": {+ source: "nginx",+ extensions: ["run"]+ },+ "application/x-mie": {+ source: "apache",+ extensions: ["mie"]+ },+ "application/x-mobipocket-ebook": {+ source: "apache",+ extensions: ["prc", "mobi"]+ },+ "application/x-mpegurl": {+ compressible: false+ },+ "application/x-ms-application": {+ source: "apache",+ extensions: ["application"]+ },+ "application/x-ms-shortcut": {+ source: "apache",+ extensions: ["lnk"]+ },+ "application/x-ms-wmd": {+ source: "apache",+ extensions: ["wmd"]+ },+ "application/x-ms-wmz": {+ source: "apache",+ extensions: ["wmz"]+ },+ "application/x-ms-xbap": {+ source: "apache",+ extensions: ["xbap"]+ },+ "application/x-msaccess": {+ source: "apache",+ extensions: ["mdb"]+ },+ "application/x-msbinder": {+ source: "apache",+ extensions: ["obd"]+ },+ "application/x-mscardfile": {+ source: "apache",+ extensions: ["crd"]+ },+ "application/x-msclip": {+ source: "apache",+ extensions: ["clp"]+ },+ "application/x-msdos-program": {+ extensions: ["exe"]+ },+ "application/x-msdownload": {+ source: "apache",+ extensions: ["exe", "dll", "com", "bat", "msi"]+ },+ "application/x-msmediaview": {+ source: "apache",+ extensions: ["mvb", "m13", "m14"]+ },+ "application/x-msmetafile": {+ source: "apache",+ extensions: ["wmf", "wmz", "emf", "emz"]+ },+ "application/x-msmoney": {+ source: "apache",+ extensions: ["mny"]+ },+ "application/x-mspublisher": {+ source: "apache",+ extensions: ["pub"]+ },+ "application/x-msschedule": {+ source: "apache",+ extensions: ["scd"]+ },+ "application/x-msterminal": {+ source: "apache",+ extensions: ["trm"]+ },+ "application/x-mswrite": {+ source: "apache",+ extensions: ["wri"]+ },+ "application/x-netcdf": {+ source: "apache",+ extensions: ["nc", "cdf"]+ },+ "application/x-ns-proxy-autoconfig": {+ compressible: true,+ extensions: ["pac"]+ },+ "application/x-nzb": {+ source: "apache",+ extensions: ["nzb"]+ },+ "application/x-perl": {+ source: "nginx",+ extensions: ["pl", "pm"]+ },+ "application/x-pilot": {+ source: "nginx",+ extensions: ["prc", "pdb"]+ },+ "application/x-pkcs12": {+ source: "apache",+ compressible: false,+ extensions: ["p12", "pfx"]+ },+ "application/x-pkcs7-certificates": {+ source: "apache",+ extensions: ["p7b", "spc"]+ },+ "application/x-pkcs7-certreqresp": {+ source: "apache",+ extensions: ["p7r"]+ },+ "application/x-pki-message": {+ source: "iana"+ },+ "application/x-rar-compressed": {+ source: "apache",+ compressible: false,+ extensions: ["rar"]+ },+ "application/x-redhat-package-manager": {+ source: "nginx",+ extensions: ["rpm"]+ },+ "application/x-research-info-systems": {+ source: "apache",+ extensions: ["ris"]+ },+ "application/x-sea": {+ source: "nginx",+ extensions: ["sea"]+ },+ "application/x-sh": {+ source: "apache",+ compressible: true,+ extensions: ["sh"]+ },+ "application/x-shar": {+ source: "apache",+ extensions: ["shar"]+ },+ "application/x-shockwave-flash": {+ source: "apache",+ compressible: false,+ extensions: ["swf"]+ },+ "application/x-silverlight-app": {+ source: "apache",+ extensions: ["xap"]+ },+ "application/x-sql": {+ source: "apache",+ extensions: ["sql"]+ },+ "application/x-stuffit": {+ source: "apache",+ compressible: false,+ extensions: ["sit"]+ },+ "application/x-stuffitx": {+ source: "apache",+ extensions: ["sitx"]+ },+ "application/x-subrip": {+ source: "apache",+ extensions: ["srt"]+ },+ "application/x-sv4cpio": {+ source: "apache",+ extensions: ["sv4cpio"]+ },+ "application/x-sv4crc": {+ source: "apache",+ extensions: ["sv4crc"]+ },+ "application/x-t3vm-image": {+ source: "apache",+ extensions: ["t3"]+ },+ "application/x-tads": {+ source: "apache",+ extensions: ["gam"]+ },+ "application/x-tar": {+ source: "apache",+ compressible: true,+ extensions: ["tar"]+ },+ "application/x-tcl": {+ source: "apache",+ extensions: ["tcl", "tk"]+ },+ "application/x-tex": {+ source: "apache",+ extensions: ["tex"]+ },+ "application/x-tex-tfm": {+ source: "apache",+ extensions: ["tfm"]+ },+ "application/x-texinfo": {+ source: "apache",+ extensions: ["texinfo", "texi"]+ },+ "application/x-tgif": {+ source: "apache",+ extensions: ["obj"]+ },+ "application/x-ustar": {+ source: "apache",+ extensions: ["ustar"]+ },+ "application/x-virtualbox-hdd": {+ compressible: true,+ extensions: ["hdd"]+ },+ "application/x-virtualbox-ova": {+ compressible: true,+ extensions: ["ova"]+ },+ "application/x-virtualbox-ovf": {+ compressible: true,+ extensions: ["ovf"]+ },+ "application/x-virtualbox-vbox": {+ compressible: true,+ extensions: ["vbox"]+ },+ "application/x-virtualbox-vbox-extpack": {+ compressible: false,+ extensions: ["vbox-extpack"]+ },+ "application/x-virtualbox-vdi": {+ compressible: true,+ extensions: ["vdi"]+ },+ "application/x-virtualbox-vhd": {+ compressible: true,+ extensions: ["vhd"]+ },+ "application/x-virtualbox-vmdk": {+ compressible: true,+ extensions: ["vmdk"]+ },+ "application/x-wais-source": {+ source: "apache",+ extensions: ["src"]+ },+ "application/x-web-app-manifest+json": {+ compressible: true,+ extensions: ["webapp"]+ },+ "application/x-www-form-urlencoded": {+ source: "iana",+ compressible: true+ },+ "application/x-x509-ca-cert": {+ source: "iana",+ extensions: ["der", "crt", "pem"]+ },+ "application/x-x509-ca-ra-cert": {+ source: "iana"+ },+ "application/x-x509-next-ca-cert": {+ source: "iana"+ },+ "application/x-xfig": {+ source: "apache",+ extensions: ["fig"]+ },+ "application/x-xliff+xml": {+ source: "apache",+ compressible: true,+ extensions: ["xlf"]+ },+ "application/x-xpinstall": {+ source: "apache",+ compressible: false,+ extensions: ["xpi"]+ },+ "application/x-xz": {+ source: "apache",+ extensions: ["xz"]+ },+ "application/x-zmachine": {+ source: "apache",+ extensions: ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"]+ },+ "application/x400-bp": {+ source: "iana"+ },+ "application/xacml+xml": {+ source: "iana",+ compressible: true+ },+ "application/xaml+xml": {+ source: "apache",+ compressible: true,+ extensions: ["xaml"]+ },+ "application/xcap-att+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xav"]+ },+ "application/xcap-caps+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xca"]+ },+ "application/xcap-diff+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xdf"]+ },+ "application/xcap-el+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xel"]+ },+ "application/xcap-error+xml": {+ source: "iana",+ compressible: true+ },+ "application/xcap-ns+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xns"]+ },+ "application/xcon-conference-info+xml": {+ source: "iana",+ compressible: true+ },+ "application/xcon-conference-info-diff+xml": {+ source: "iana",+ compressible: true+ },+ "application/xenc+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xenc"]+ },+ "application/xhtml+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xhtml", "xht"]+ },+ "application/xhtml-voice+xml": {+ source: "apache",+ compressible: true+ },+ "application/xliff+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xlf"]+ },+ "application/xml": {+ source: "iana",+ compressible: true,+ extensions: ["xml", "xsl", "xsd", "rng"]+ },+ "application/xml-dtd": {+ source: "iana",+ compressible: true,+ extensions: ["dtd"]+ },+ "application/xml-external-parsed-entity": {+ source: "iana"+ },+ "application/xml-patch+xml": {+ source: "iana",+ compressible: true+ },+ "application/xmpp+xml": {+ source: "iana",+ compressible: true+ },+ "application/xop+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xop"]+ },+ "application/xproc+xml": {+ source: "apache",+ compressible: true,+ extensions: ["xpl"]+ },+ "application/xslt+xml": {+ source: "iana",+ compressible: true,+ extensions: ["xsl", "xslt"]+ },+ "application/xspf+xml": {+ source: "apache",+ compressible: true,+ extensions: ["xspf"]+ },+ "application/xv+xml": {+ source: "iana",+ compressible: true,+ extensions: ["mxml", "xhvml", "xvml", "xvm"]+ },+ "application/yang": {+ source: "iana",+ extensions: ["yang"]+ },+ "application/yang-data+json": {+ source: "iana",+ compressible: true+ },+ "application/yang-data+xml": {+ source: "iana",+ compressible: true+ },+ "application/yang-patch+json": {+ source: "iana",+ compressible: true+ },+ "application/yang-patch+xml": {+ source: "iana",+ compressible: true+ },+ "application/yin+xml": {+ source: "iana",+ compressible: true,+ extensions: ["yin"]+ },+ "application/zip": {+ source: "iana",+ compressible: false,+ extensions: ["zip"]+ },+ "application/zlib": {+ source: "iana"+ },+ "application/zstd": {+ source: "iana"+ },+ "audio/1d-interleaved-parityfec": {+ source: "iana"+ },+ "audio/32kadpcm": {+ source: "iana"+ },+ "audio/3gpp": {+ source: "iana",+ compressible: false,+ extensions: ["3gpp"]+ },+ "audio/3gpp2": {+ source: "iana"+ },+ "audio/aac": {+ source: "iana"+ },+ "audio/ac3": {+ source: "iana"+ },+ "audio/adpcm": {+ source: "apache",+ extensions: ["adp"]+ },+ "audio/amr": {+ source: "iana",+ extensions: ["amr"]+ },+ "audio/amr-wb": {+ source: "iana"+ },+ "audio/amr-wb+": {+ source: "iana"+ },+ "audio/aptx": {+ source: "iana"+ },+ "audio/asc": {+ source: "iana"+ },+ "audio/atrac-advanced-lossless": {+ source: "iana"+ },+ "audio/atrac-x": {+ source: "iana"+ },+ "audio/atrac3": {+ source: "iana"+ },+ "audio/basic": {+ source: "iana",+ compressible: false,+ extensions: ["au", "snd"]+ },+ "audio/bv16": {+ source: "iana"+ },+ "audio/bv32": {+ source: "iana"+ },+ "audio/clearmode": {+ source: "iana"+ },+ "audio/cn": {+ source: "iana"+ },+ "audio/dat12": {+ source: "iana"+ },+ "audio/dls": {+ source: "iana"+ },+ "audio/dsr-es201108": {+ source: "iana"+ },+ "audio/dsr-es202050": {+ source: "iana"+ },+ "audio/dsr-es202211": {+ source: "iana"+ },+ "audio/dsr-es202212": {+ source: "iana"+ },+ "audio/dv": {+ source: "iana"+ },+ "audio/dvi4": {+ source: "iana"+ },+ "audio/eac3": {+ source: "iana"+ },+ "audio/encaprtp": {+ source: "iana"+ },+ "audio/evrc": {+ source: "iana"+ },+ "audio/evrc-qcp": {+ source: "iana"+ },+ "audio/evrc0": {+ source: "iana"+ },+ "audio/evrc1": {+ source: "iana"+ },+ "audio/evrcb": {+ source: "iana"+ },+ "audio/evrcb0": {+ source: "iana"+ },+ "audio/evrcb1": {+ source: "iana"+ },+ "audio/evrcnw": {+ source: "iana"+ },+ "audio/evrcnw0": {+ source: "iana"+ },+ "audio/evrcnw1": {+ source: "iana"+ },+ "audio/evrcwb": {+ source: "iana"+ },+ "audio/evrcwb0": {+ source: "iana"+ },+ "audio/evrcwb1": {+ source: "iana"+ },+ "audio/evs": {+ source: "iana"+ },+ "audio/flexfec": {+ source: "iana"+ },+ "audio/fwdred": {+ source: "iana"+ },+ "audio/g711-0": {+ source: "iana"+ },+ "audio/g719": {+ source: "iana"+ },+ "audio/g722": {+ source: "iana"+ },+ "audio/g7221": {+ source: "iana"+ },+ "audio/g723": {+ source: "iana"+ },+ "audio/g726-16": {+ source: "iana"+ },+ "audio/g726-24": {+ source: "iana"+ },+ "audio/g726-32": {+ source: "iana"+ },+ "audio/g726-40": {+ source: "iana"+ },+ "audio/g728": {+ source: "iana"+ },+ "audio/g729": {+ source: "iana"+ },+ "audio/g7291": {+ source: "iana"+ },+ "audio/g729d": {+ source: "iana"+ },+ "audio/g729e": {+ source: "iana"+ },+ "audio/gsm": {+ source: "iana"+ },+ "audio/gsm-efr": {+ source: "iana"+ },+ "audio/gsm-hr-08": {+ source: "iana"+ },+ "audio/ilbc": {+ source: "iana"+ },+ "audio/ip-mr_v2.5": {+ source: "iana"+ },+ "audio/isac": {+ source: "apache"+ },+ "audio/l16": {+ source: "iana"+ },+ "audio/l20": {+ source: "iana"+ },+ "audio/l24": {+ source: "iana",+ compressible: false+ },+ "audio/l8": {+ source: "iana"+ },+ "audio/lpc": {+ source: "iana"+ },+ "audio/melp": {+ source: "iana"+ },+ "audio/melp1200": {+ source: "iana"+ },+ "audio/melp2400": {+ source: "iana"+ },+ "audio/melp600": {+ source: "iana"+ },+ "audio/mhas": {+ source: "iana"+ },+ "audio/midi": {+ source: "apache",+ extensions: ["mid", "midi", "kar", "rmi"]+ },+ "audio/mobile-xmf": {+ source: "iana",+ extensions: ["mxmf"]+ },+ "audio/mp3": {+ compressible: false,+ extensions: ["mp3"]+ },+ "audio/mp4": {+ source: "iana",+ compressible: false,+ extensions: ["m4a", "mp4a"]+ },+ "audio/mp4a-latm": {+ source: "iana"+ },+ "audio/mpa": {+ source: "iana"+ },+ "audio/mpa-robust": {+ source: "iana"+ },+ "audio/mpeg": {+ source: "iana",+ compressible: false,+ extensions: ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"]+ },+ "audio/mpeg4-generic": {+ source: "iana"+ },+ "audio/musepack": {+ source: "apache"+ },+ "audio/ogg": {+ source: "iana",+ compressible: false,+ extensions: ["oga", "ogg", "spx", "opus"]+ },+ "audio/opus": {+ source: "iana"+ },+ "audio/parityfec": {+ source: "iana"+ },+ "audio/pcma": {+ source: "iana"+ },+ "audio/pcma-wb": {+ source: "iana"+ },+ "audio/pcmu": {+ source: "iana"+ },+ "audio/pcmu-wb": {+ source: "iana"+ },+ "audio/prs.sid": {+ source: "iana"+ },+ "audio/qcelp": {+ source: "iana"+ },+ "audio/raptorfec": {+ source: "iana"+ },+ "audio/red": {+ source: "iana"+ },+ "audio/rtp-enc-aescm128": {+ source: "iana"+ },+ "audio/rtp-midi": {+ source: "iana"+ },+ "audio/rtploopback": {+ source: "iana"+ },+ "audio/rtx": {+ source: "iana"+ },+ "audio/s3m": {+ source: "apache",+ extensions: ["s3m"]+ },+ "audio/scip": {+ source: "iana"+ },+ "audio/silk": {+ source: "apache",+ extensions: ["sil"]+ },+ "audio/smv": {+ source: "iana"+ },+ "audio/smv-qcp": {+ source: "iana"+ },+ "audio/smv0": {+ source: "iana"+ },+ "audio/sofa": {+ source: "iana"+ },+ "audio/sp-midi": {+ source: "iana"+ },+ "audio/speex": {+ source: "iana"+ },+ "audio/t140c": {+ source: "iana"+ },+ "audio/t38": {+ source: "iana"+ },+ "audio/telephone-event": {+ source: "iana"+ },+ "audio/tetra_acelp": {+ source: "iana"+ },+ "audio/tetra_acelp_bb": {+ source: "iana"+ },+ "audio/tone": {+ source: "iana"+ },+ "audio/tsvcis": {+ source: "iana"+ },+ "audio/uemclip": {+ source: "iana"+ },+ "audio/ulpfec": {+ source: "iana"+ },+ "audio/usac": {+ source: "iana"+ },+ "audio/vdvi": {+ source: "iana"+ },+ "audio/vmr-wb": {+ source: "iana"+ },+ "audio/vnd.3gpp.iufp": {+ source: "iana"+ },+ "audio/vnd.4sb": {+ source: "iana"+ },+ "audio/vnd.audiokoz": {+ source: "iana"+ },+ "audio/vnd.celp": {+ source: "iana"+ },+ "audio/vnd.cisco.nse": {+ source: "iana"+ },+ "audio/vnd.cmles.radio-events": {+ source: "iana"+ },+ "audio/vnd.cns.anp1": {+ source: "iana"+ },+ "audio/vnd.cns.inf1": {+ source: "iana"+ },+ "audio/vnd.dece.audio": {+ source: "iana",+ extensions: ["uva", "uvva"]+ },+ "audio/vnd.digital-winds": {+ source: "iana",+ extensions: ["eol"]+ },+ "audio/vnd.dlna.adts": {+ source: "iana"+ },+ "audio/vnd.dolby.heaac.1": {+ source: "iana"+ },+ "audio/vnd.dolby.heaac.2": {+ source: "iana"+ },+ "audio/vnd.dolby.mlp": {+ source: "iana"+ },+ "audio/vnd.dolby.mps": {+ source: "iana"+ },+ "audio/vnd.dolby.pl2": {+ source: "iana"+ },+ "audio/vnd.dolby.pl2x": {+ source: "iana"+ },+ "audio/vnd.dolby.pl2z": {+ source: "iana"+ },+ "audio/vnd.dolby.pulse.1": {+ source: "iana"+ },+ "audio/vnd.dra": {+ source: "iana",+ extensions: ["dra"]+ },+ "audio/vnd.dts": {+ source: "iana",+ extensions: ["dts"]+ },+ "audio/vnd.dts.hd": {+ source: "iana",+ extensions: ["dtshd"]+ },+ "audio/vnd.dts.uhd": {+ source: "iana"+ },+ "audio/vnd.dvb.file": {+ source: "iana"+ },+ "audio/vnd.everad.plj": {+ source: "iana"+ },+ "audio/vnd.hns.audio": {+ source: "iana"+ },+ "audio/vnd.lucent.voice": {+ source: "iana",+ extensions: ["lvp"]+ },+ "audio/vnd.ms-playready.media.pya": {+ source: "iana",+ extensions: ["pya"]+ },+ "audio/vnd.nokia.mobile-xmf": {+ source: "iana"+ },+ "audio/vnd.nortel.vbk": {+ source: "iana"+ },+ "audio/vnd.nuera.ecelp4800": {+ source: "iana",+ extensions: ["ecelp4800"]+ },+ "audio/vnd.nuera.ecelp7470": {+ source: "iana",+ extensions: ["ecelp7470"]+ },+ "audio/vnd.nuera.ecelp9600": {+ source: "iana",+ extensions: ["ecelp9600"]+ },+ "audio/vnd.octel.sbc": {+ source: "iana"+ },+ "audio/vnd.presonus.multitrack": {+ source: "iana"+ },+ "audio/vnd.qcelp": {+ source: "iana"+ },+ "audio/vnd.rhetorex.32kadpcm": {+ source: "iana"+ },+ "audio/vnd.rip": {+ source: "iana",+ extensions: ["rip"]+ },+ "audio/vnd.rn-realaudio": {+ compressible: false+ },+ "audio/vnd.sealedmedia.softseal.mpeg": {+ source: "iana"+ },+ "audio/vnd.vmx.cvsd": {+ source: "iana"+ },+ "audio/vnd.wave": {+ compressible: false+ },+ "audio/vorbis": {+ source: "iana",+ compressible: false+ },+ "audio/vorbis-config": {+ source: "iana"+ },+ "audio/wav": {+ compressible: false,+ extensions: ["wav"]+ },+ "audio/wave": {+ compressible: false,+ extensions: ["wav"]+ },+ "audio/webm": {+ source: "apache",+ compressible: false,+ extensions: ["weba"]+ },+ "audio/x-aac": {+ source: "apache",+ compressible: false,+ extensions: ["aac"]+ },+ "audio/x-aiff": {+ source: "apache",+ extensions: ["aif", "aiff", "aifc"]+ },+ "audio/x-caf": {+ source: "apache",+ compressible: false,+ extensions: ["caf"]+ },+ "audio/x-flac": {+ source: "apache",+ extensions: ["flac"]+ },+ "audio/x-m4a": {+ source: "nginx",+ extensions: ["m4a"]+ },+ "audio/x-matroska": {+ source: "apache",+ extensions: ["mka"]+ },+ "audio/x-mpegurl": {+ source: "apache",+ extensions: ["m3u"]+ },+ "audio/x-ms-wax": {+ source: "apache",+ extensions: ["wax"]+ },+ "audio/x-ms-wma": {+ source: "apache",+ extensions: ["wma"]+ },+ "audio/x-pn-realaudio": {+ source: "apache",+ extensions: ["ram", "ra"]+ },+ "audio/x-pn-realaudio-plugin": {+ source: "apache",+ extensions: ["rmp"]+ },+ "audio/x-realaudio": {+ source: "nginx",+ extensions: ["ra"]+ },+ "audio/x-tta": {+ source: "apache"+ },+ "audio/x-wav": {+ source: "apache",+ extensions: ["wav"]+ },+ "audio/xm": {+ source: "apache",+ extensions: ["xm"]+ },+ "chemical/x-cdx": {+ source: "apache",+ extensions: ["cdx"]+ },+ "chemical/x-cif": {+ source: "apache",+ extensions: ["cif"]+ },+ "chemical/x-cmdf": {+ source: "apache",+ extensions: ["cmdf"]+ },+ "chemical/x-cml": {+ source: "apache",+ extensions: ["cml"]+ },+ "chemical/x-csml": {+ source: "apache",+ extensions: ["csml"]+ },+ "chemical/x-pdb": {+ source: "apache"+ },+ "chemical/x-xyz": {+ source: "apache",+ extensions: ["xyz"]+ },+ "font/collection": {+ source: "iana",+ extensions: ["ttc"]+ },+ "font/otf": {+ source: "iana",+ compressible: true,+ extensions: ["otf"]+ },+ "font/sfnt": {+ source: "iana"+ },+ "font/ttf": {+ source: "iana",+ compressible: true,+ extensions: ["ttf"]+ },+ "font/woff": {+ source: "iana",+ extensions: ["woff"]+ },+ "font/woff2": {+ source: "iana",+ extensions: ["woff2"]+ },+ "image/aces": {+ source: "iana",+ extensions: ["exr"]+ },+ "image/apng": {+ compressible: false,+ extensions: ["apng"]+ },+ "image/avci": {+ source: "iana",+ extensions: ["avci"]+ },+ "image/avcs": {+ source: "iana",+ extensions: ["avcs"]+ },+ "image/avif": {+ source: "iana",+ compressible: false,+ extensions: ["avif"]+ },+ "image/bmp": {+ source: "iana",+ compressible: true,+ extensions: ["bmp"]+ },+ "image/cgm": {+ source: "iana",+ extensions: ["cgm"]+ },+ "image/dicom-rle": {+ source: "iana",+ extensions: ["drle"]+ },+ "image/emf": {+ source: "iana",+ extensions: ["emf"]+ },+ "image/fits": {+ source: "iana",+ extensions: ["fits"]+ },+ "image/g3fax": {+ source: "iana",+ extensions: ["g3"]+ },+ "image/gif": {+ source: "iana",+ compressible: false,+ extensions: ["gif"]+ },+ "image/heic": {+ source: "iana",+ extensions: ["heic"]+ },+ "image/heic-sequence": {+ source: "iana",+ extensions: ["heics"]+ },+ "image/heif": {+ source: "iana",+ extensions: ["heif"]+ },+ "image/heif-sequence": {+ source: "iana",+ extensions: ["heifs"]+ },+ "image/hej2k": {+ source: "iana",+ extensions: ["hej2"]+ },+ "image/hsj2": {+ source: "iana",+ extensions: ["hsj2"]+ },+ "image/ief": {+ source: "iana",+ extensions: ["ief"]+ },+ "image/jls": {+ source: "iana",+ extensions: ["jls"]+ },+ "image/jp2": {+ source: "iana",+ compressible: false,+ extensions: ["jp2", "jpg2"]+ },+ "image/jpeg": {+ source: "iana",+ compressible: false,+ extensions: ["jpeg", "jpg", "jpe"]+ },+ "image/jph": {+ source: "iana",+ extensions: ["jph"]+ },+ "image/jphc": {+ source: "iana",+ extensions: ["jhc"]+ },+ "image/jpm": {+ source: "iana",+ compressible: false,+ extensions: ["jpm"]+ },+ "image/jpx": {+ source: "iana",+ compressible: false,+ extensions: ["jpx", "jpf"]+ },+ "image/jxr": {+ source: "iana",+ extensions: ["jxr"]+ },+ "image/jxra": {+ source: "iana",+ extensions: ["jxra"]+ },+ "image/jxrs": {+ source: "iana",+ extensions: ["jxrs"]+ },+ "image/jxs": {+ source: "iana",+ extensions: ["jxs"]+ },+ "image/jxsc": {+ source: "iana",+ extensions: ["jxsc"]+ },+ "image/jxsi": {+ source: "iana",+ extensions: ["jxsi"]+ },+ "image/jxss": {+ source: "iana",+ extensions: ["jxss"]+ },+ "image/ktx": {+ source: "iana",+ extensions: ["ktx"]+ },+ "image/ktx2": {+ source: "iana",+ extensions: ["ktx2"]+ },+ "image/naplps": {+ source: "iana"+ },+ "image/pjpeg": {+ compressible: false+ },+ "image/png": {+ source: "iana",+ compressible: false,+ extensions: ["png"]+ },+ "image/prs.btif": {+ source: "iana",+ extensions: ["btif"]+ },+ "image/prs.pti": {+ source: "iana",+ extensions: ["pti"]+ },+ "image/pwg-raster": {+ source: "iana"+ },+ "image/sgi": {+ source: "apache",+ extensions: ["sgi"]+ },+ "image/svg+xml": {+ source: "iana",+ compressible: true,+ extensions: ["svg", "svgz"]+ },+ "image/t38": {+ source: "iana",+ extensions: ["t38"]+ },+ "image/tiff": {+ source: "iana",+ compressible: false,+ extensions: ["tif", "tiff"]+ },+ "image/tiff-fx": {+ source: "iana",+ extensions: ["tfx"]+ },+ "image/vnd.adobe.photoshop": {+ source: "iana",+ compressible: true,+ extensions: ["psd"]+ },+ "image/vnd.airzip.accelerator.azv": {+ source: "iana",+ extensions: ["azv"]+ },+ "image/vnd.cns.inf2": {+ source: "iana"+ },+ "image/vnd.dece.graphic": {+ source: "iana",+ extensions: ["uvi", "uvvi", "uvg", "uvvg"]+ },+ "image/vnd.djvu": {+ source: "iana",+ extensions: ["djvu", "djv"]+ },+ "image/vnd.dvb.subtitle": {+ source: "iana",+ extensions: ["sub"]+ },+ "image/vnd.dwg": {+ source: "iana",+ extensions: ["dwg"]+ },+ "image/vnd.dxf": {+ source: "iana",+ extensions: ["dxf"]+ },+ "image/vnd.fastbidsheet": {+ source: "iana",+ extensions: ["fbs"]+ },+ "image/vnd.fpx": {+ source: "iana",+ extensions: ["fpx"]+ },+ "image/vnd.fst": {+ source: "iana",+ extensions: ["fst"]+ },+ "image/vnd.fujixerox.edmics-mmr": {+ source: "iana",+ extensions: ["mmr"]+ },+ "image/vnd.fujixerox.edmics-rlc": {+ source: "iana",+ extensions: ["rlc"]+ },+ "image/vnd.globalgraphics.pgb": {+ source: "iana"+ },+ "image/vnd.microsoft.icon": {+ source: "iana",+ compressible: true,+ extensions: ["ico"]+ },+ "image/vnd.mix": {+ source: "iana"+ },+ "image/vnd.mozilla.apng": {+ source: "iana"+ },+ "image/vnd.ms-dds": {+ compressible: true,+ extensions: ["dds"]+ },+ "image/vnd.ms-modi": {+ source: "iana",+ extensions: ["mdi"]+ },+ "image/vnd.ms-photo": {+ source: "apache",+ extensions: ["wdp"]+ },+ "image/vnd.net-fpx": {+ source: "iana",+ extensions: ["npx"]+ },+ "image/vnd.pco.b16": {+ source: "iana",+ extensions: ["b16"]+ },+ "image/vnd.radiance": {+ source: "iana"+ },+ "image/vnd.sealed.png": {+ source: "iana"+ },+ "image/vnd.sealedmedia.softseal.gif": {+ source: "iana"+ },+ "image/vnd.sealedmedia.softseal.jpg": {+ source: "iana"+ },+ "image/vnd.svf": {+ source: "iana"+ },+ "image/vnd.tencent.tap": {+ source: "iana",+ extensions: ["tap"]+ },+ "image/vnd.valve.source.texture": {+ source: "iana",+ extensions: ["vtf"]+ },+ "image/vnd.wap.wbmp": {+ source: "iana",+ extensions: ["wbmp"]+ },+ "image/vnd.xiff": {+ source: "iana",+ extensions: ["xif"]+ },+ "image/vnd.zbrush.pcx": {+ source: "iana",+ extensions: ["pcx"]+ },+ "image/webp": {+ source: "apache",+ extensions: ["webp"]+ },+ "image/wmf": {+ source: "iana",+ extensions: ["wmf"]+ },+ "image/x-3ds": {+ source: "apache",+ extensions: ["3ds"]+ },+ "image/x-cmu-raster": {+ source: "apache",+ extensions: ["ras"]+ },+ "image/x-cmx": {+ source: "apache",+ extensions: ["cmx"]+ },+ "image/x-freehand": {+ source: "apache",+ extensions: ["fh", "fhc", "fh4", "fh5", "fh7"]+ },+ "image/x-icon": {+ source: "apache",+ compressible: true,+ extensions: ["ico"]+ },+ "image/x-jng": {+ source: "nginx",+ extensions: ["jng"]+ },+ "image/x-mrsid-image": {+ source: "apache",+ extensions: ["sid"]+ },+ "image/x-ms-bmp": {+ source: "nginx",+ compressible: true,+ extensions: ["bmp"]+ },+ "image/x-pcx": {+ source: "apache",+ extensions: ["pcx"]+ },+ "image/x-pict": {+ source: "apache",+ extensions: ["pic", "pct"]+ },+ "image/x-portable-anymap": {+ source: "apache",+ extensions: ["pnm"]+ },+ "image/x-portable-bitmap": {+ source: "apache",+ extensions: ["pbm"]+ },+ "image/x-portable-graymap": {+ source: "apache",+ extensions: ["pgm"]+ },+ "image/x-portable-pixmap": {+ source: "apache",+ extensions: ["ppm"]+ },+ "image/x-rgb": {+ source: "apache",+ extensions: ["rgb"]+ },+ "image/x-tga": {+ source: "apache",+ extensions: ["tga"]+ },+ "image/x-xbitmap": {+ source: "apache",+ extensions: ["xbm"]+ },+ "image/x-xcf": {+ compressible: false+ },+ "image/x-xpixmap": {+ source: "apache",+ extensions: ["xpm"]+ },+ "image/x-xwindowdump": {+ source: "apache",+ extensions: ["xwd"]+ },+ "message/cpim": {+ source: "iana"+ },+ "message/delivery-status": {+ source: "iana"+ },+ "message/disposition-notification": {+ source: "iana",+ extensions: [+ "disposition-notification"+ ]+ },+ "message/external-body": {+ source: "iana"+ },+ "message/feedback-report": {+ source: "iana"+ },+ "message/global": {+ source: "iana",+ extensions: ["u8msg"]+ },+ "message/global-delivery-status": {+ source: "iana",+ extensions: ["u8dsn"]+ },+ "message/global-disposition-notification": {+ source: "iana",+ extensions: ["u8mdn"]+ },+ "message/global-headers": {+ source: "iana",+ extensions: ["u8hdr"]+ },+ "message/http": {+ source: "iana",+ compressible: false+ },+ "message/imdn+xml": {+ source: "iana",+ compressible: true+ },+ "message/news": {+ source: "iana"+ },+ "message/partial": {+ source: "iana",+ compressible: false+ },+ "message/rfc822": {+ source: "iana",+ compressible: true,+ extensions: ["eml", "mime"]+ },+ "message/s-http": {+ source: "iana"+ },+ "message/sip": {+ source: "iana"+ },+ "message/sipfrag": {+ source: "iana"+ },+ "message/tracking-status": {+ source: "iana"+ },+ "message/vnd.si.simp": {+ source: "iana"+ },+ "message/vnd.wfa.wsc": {+ source: "iana",+ extensions: ["wsc"]+ },+ "model/3mf": {+ source: "iana",+ extensions: ["3mf"]+ },+ "model/e57": {+ source: "iana"+ },+ "model/gltf+json": {+ source: "iana",+ compressible: true,+ extensions: ["gltf"]+ },+ "model/gltf-binary": {+ source: "iana",+ compressible: true,+ extensions: ["glb"]+ },+ "model/iges": {+ source: "iana",+ compressible: false,+ extensions: ["igs", "iges"]+ },+ "model/mesh": {+ source: "iana",+ compressible: false,+ extensions: ["msh", "mesh", "silo"]+ },+ "model/mtl": {+ source: "iana",+ extensions: ["mtl"]+ },+ "model/obj": {+ source: "iana",+ extensions: ["obj"]+ },+ "model/step": {+ source: "iana"+ },+ "model/step+xml": {+ source: "iana",+ compressible: true,+ extensions: ["stpx"]+ },+ "model/step+zip": {+ source: "iana",+ compressible: false,+ extensions: ["stpz"]+ },+ "model/step-xml+zip": {+ source: "iana",+ compressible: false,+ extensions: ["stpxz"]+ },+ "model/stl": {+ source: "iana",+ extensions: ["stl"]+ },+ "model/vnd.collada+xml": {+ source: "iana",+ compressible: true,+ extensions: ["dae"]+ },+ "model/vnd.dwf": {+ source: "iana",+ extensions: ["dwf"]+ },+ "model/vnd.flatland.3dml": {+ source: "iana"+ },+ "model/vnd.gdl": {+ source: "iana",+ extensions: ["gdl"]+ },+ "model/vnd.gs-gdl": {+ source: "apache"+ },+ "model/vnd.gs.gdl": {+ source: "iana"+ },+ "model/vnd.gtw": {+ source: "iana",+ extensions: ["gtw"]+ },+ "model/vnd.moml+xml": {+ source: "iana",+ compressible: true+ },+ "model/vnd.mts": {+ source: "iana",+ extensions: ["mts"]+ },+ "model/vnd.opengex": {+ source: "iana",+ extensions: ["ogex"]+ },+ "model/vnd.parasolid.transmit.binary": {+ source: "iana",+ extensions: ["x_b"]+ },+ "model/vnd.parasolid.transmit.text": {+ source: "iana",+ extensions: ["x_t"]+ },+ "model/vnd.pytha.pyox": {+ source: "iana"+ },+ "model/vnd.rosette.annotated-data-model": {+ source: "iana"+ },+ "model/vnd.sap.vds": {+ source: "iana",+ extensions: ["vds"]+ },+ "model/vnd.usdz+zip": {+ source: "iana",+ compressible: false,+ extensions: ["usdz"]+ },+ "model/vnd.valve.source.compiled-map": {+ source: "iana",+ extensions: ["bsp"]+ },+ "model/vnd.vtu": {+ source: "iana",+ extensions: ["vtu"]+ },+ "model/vrml": {+ source: "iana",+ compressible: false,+ extensions: ["wrl", "vrml"]+ },+ "model/x3d+binary": {+ source: "apache",+ compressible: false,+ extensions: ["x3db", "x3dbz"]+ },+ "model/x3d+fastinfoset": {+ source: "iana",+ extensions: ["x3db"]+ },+ "model/x3d+vrml": {+ source: "apache",+ compressible: false,+ extensions: ["x3dv", "x3dvz"]+ },+ "model/x3d+xml": {+ source: "iana",+ compressible: true,+ extensions: ["x3d", "x3dz"]+ },+ "model/x3d-vrml": {+ source: "iana",+ extensions: ["x3dv"]+ },+ "multipart/alternative": {+ source: "iana",+ compressible: false+ },+ "multipart/appledouble": {+ source: "iana"+ },+ "multipart/byteranges": {+ source: "iana"+ },+ "multipart/digest": {+ source: "iana"+ },+ "multipart/encrypted": {+ source: "iana",+ compressible: false+ },+ "multipart/form-data": {+ source: "iana",+ compressible: false+ },+ "multipart/header-set": {+ source: "iana"+ },+ "multipart/mixed": {+ source: "iana"+ },+ "multipart/multilingual": {+ source: "iana"+ },+ "multipart/parallel": {+ source: "iana"+ },+ "multipart/related": {+ source: "iana",+ compressible: false+ },+ "multipart/report": {+ source: "iana"+ },+ "multipart/signed": {+ source: "iana",+ compressible: false+ },+ "multipart/vnd.bint.med-plus": {+ source: "iana"+ },+ "multipart/voice-message": {+ source: "iana"+ },+ "multipart/x-mixed-replace": {+ source: "iana"+ },+ "text/1d-interleaved-parityfec": {+ source: "iana"+ },+ "text/cache-manifest": {+ source: "iana",+ compressible: true,+ extensions: ["appcache", "manifest"]+ },+ "text/calendar": {+ source: "iana",+ extensions: ["ics", "ifb"]+ },+ "text/calender": {+ compressible: true+ },+ "text/cmd": {+ compressible: true+ },+ "text/coffeescript": {+ extensions: ["coffee", "litcoffee"]+ },+ "text/cql": {+ source: "iana"+ },+ "text/cql-expression": {+ source: "iana"+ },+ "text/cql-identifier": {+ source: "iana"+ },+ "text/css": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["css"]+ },+ "text/csv": {+ source: "iana",+ compressible: true,+ extensions: ["csv"]+ },+ "text/csv-schema": {+ source: "iana"+ },+ "text/directory": {+ source: "iana"+ },+ "text/dns": {+ source: "iana"+ },+ "text/ecmascript": {+ source: "iana"+ },+ "text/encaprtp": {+ source: "iana"+ },+ "text/enriched": {+ source: "iana"+ },+ "text/fhirpath": {+ source: "iana"+ },+ "text/flexfec": {+ source: "iana"+ },+ "text/fwdred": {+ source: "iana"+ },+ "text/gff3": {+ source: "iana"+ },+ "text/grammar-ref-list": {+ source: "iana"+ },+ "text/html": {+ source: "iana",+ compressible: true,+ extensions: ["html", "htm", "shtml"]+ },+ "text/jade": {+ extensions: ["jade"]+ },+ "text/javascript": {+ source: "iana",+ compressible: true+ },+ "text/jcr-cnd": {+ source: "iana"+ },+ "text/jsx": {+ compressible: true,+ extensions: ["jsx"]+ },+ "text/less": {+ compressible: true,+ extensions: ["less"]+ },+ "text/markdown": {+ source: "iana",+ compressible: true,+ extensions: ["markdown", "md"]+ },+ "text/mathml": {+ source: "nginx",+ extensions: ["mml"]+ },+ "text/mdx": {+ compressible: true,+ extensions: ["mdx"]+ },+ "text/mizar": {+ source: "iana"+ },+ "text/n3": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["n3"]+ },+ "text/parameters": {+ source: "iana",+ charset: "UTF-8"+ },+ "text/parityfec": {+ source: "iana"+ },+ "text/plain": {+ source: "iana",+ compressible: true,+ extensions: ["txt", "text", "conf", "def", "list", "log", "in", "ini"]+ },+ "text/provenance-notation": {+ source: "iana",+ charset: "UTF-8"+ },+ "text/prs.fallenstein.rst": {+ source: "iana"+ },+ "text/prs.lines.tag": {+ source: "iana",+ extensions: ["dsc"]+ },+ "text/prs.prop.logic": {+ source: "iana"+ },+ "text/raptorfec": {+ source: "iana"+ },+ "text/red": {+ source: "iana"+ },+ "text/rfc822-headers": {+ source: "iana"+ },+ "text/richtext": {+ source: "iana",+ compressible: true,+ extensions: ["rtx"]+ },+ "text/rtf": {+ source: "iana",+ compressible: true,+ extensions: ["rtf"]+ },+ "text/rtp-enc-aescm128": {+ source: "iana"+ },+ "text/rtploopback": {+ source: "iana"+ },+ "text/rtx": {+ source: "iana"+ },+ "text/sgml": {+ source: "iana",+ extensions: ["sgml", "sgm"]+ },+ "text/shaclc": {+ source: "iana"+ },+ "text/shex": {+ source: "iana",+ extensions: ["shex"]+ },+ "text/slim": {+ extensions: ["slim", "slm"]+ },+ "text/spdx": {+ source: "iana",+ extensions: ["spdx"]+ },+ "text/strings": {+ source: "iana"+ },+ "text/stylus": {+ extensions: ["stylus", "styl"]+ },+ "text/t140": {+ source: "iana"+ },+ "text/tab-separated-values": {+ source: "iana",+ compressible: true,+ extensions: ["tsv"]+ },+ "text/troff": {+ source: "iana",+ extensions: ["t", "tr", "roff", "man", "me", "ms"]+ },+ "text/turtle": {+ source: "iana",+ charset: "UTF-8",+ extensions: ["ttl"]+ },+ "text/ulpfec": {+ source: "iana"+ },+ "text/uri-list": {+ source: "iana",+ compressible: true,+ extensions: ["uri", "uris", "urls"]+ },+ "text/vcard": {+ source: "iana",+ compressible: true,+ extensions: ["vcard"]+ },+ "text/vnd.a": {+ source: "iana"+ },+ "text/vnd.abc": {+ source: "iana"+ },+ "text/vnd.ascii-art": {+ source: "iana"+ },+ "text/vnd.curl": {+ source: "iana",+ extensions: ["curl"]+ },+ "text/vnd.curl.dcurl": {+ source: "apache",+ extensions: ["dcurl"]+ },+ "text/vnd.curl.mcurl": {+ source: "apache",+ extensions: ["mcurl"]+ },+ "text/vnd.curl.scurl": {+ source: "apache",+ extensions: ["scurl"]+ },+ "text/vnd.debian.copyright": {+ source: "iana",+ charset: "UTF-8"+ },+ "text/vnd.dmclientscript": {+ source: "iana"+ },+ "text/vnd.dvb.subtitle": {+ source: "iana",+ extensions: ["sub"]+ },+ "text/vnd.esmertec.theme-descriptor": {+ source: "iana",+ charset: "UTF-8"+ },+ "text/vnd.familysearch.gedcom": {+ source: "iana",+ extensions: ["ged"]+ },+ "text/vnd.ficlab.flt": {+ source: "iana"+ },+ "text/vnd.fly": {+ source: "iana",+ extensions: ["fly"]+ },+ "text/vnd.fmi.flexstor": {+ source: "iana",+ extensions: ["flx"]+ },+ "text/vnd.gml": {+ source: "iana"+ },+ "text/vnd.graphviz": {+ source: "iana",+ extensions: ["gv"]+ },+ "text/vnd.hans": {+ source: "iana"+ },+ "text/vnd.hgl": {+ source: "iana"+ },+ "text/vnd.in3d.3dml": {+ source: "iana",+ extensions: ["3dml"]+ },+ "text/vnd.in3d.spot": {+ source: "iana",+ extensions: ["spot"]+ },+ "text/vnd.iptc.newsml": {+ source: "iana"+ },+ "text/vnd.iptc.nitf": {+ source: "iana"+ },+ "text/vnd.latex-z": {+ source: "iana"+ },+ "text/vnd.motorola.reflex": {+ source: "iana"+ },+ "text/vnd.ms-mediapackage": {+ source: "iana"+ },+ "text/vnd.net2phone.commcenter.command": {+ source: "iana"+ },+ "text/vnd.radisys.msml-basic-layout": {+ source: "iana"+ },+ "text/vnd.senx.warpscript": {+ source: "iana"+ },+ "text/vnd.si.uricatalogue": {+ source: "iana"+ },+ "text/vnd.sosi": {+ source: "iana"+ },+ "text/vnd.sun.j2me.app-descriptor": {+ source: "iana",+ charset: "UTF-8",+ extensions: ["jad"]+ },+ "text/vnd.trolltech.linguist": {+ source: "iana",+ charset: "UTF-8"+ },+ "text/vnd.wap.si": {+ source: "iana"+ },+ "text/vnd.wap.sl": {+ source: "iana"+ },+ "text/vnd.wap.wml": {+ source: "iana",+ extensions: ["wml"]+ },+ "text/vnd.wap.wmlscript": {+ source: "iana",+ extensions: ["wmls"]+ },+ "text/vtt": {+ source: "iana",+ charset: "UTF-8",+ compressible: true,+ extensions: ["vtt"]+ },+ "text/x-asm": {+ source: "apache",+ extensions: ["s", "asm"]+ },+ "text/x-c": {+ source: "apache",+ extensions: ["c", "cc", "cxx", "cpp", "h", "hh", "dic"]+ },+ "text/x-component": {+ source: "nginx",+ extensions: ["htc"]+ },+ "text/x-fortran": {+ source: "apache",+ extensions: ["f", "for", "f77", "f90"]+ },+ "text/x-gwt-rpc": {+ compressible: true+ },+ "text/x-handlebars-template": {+ extensions: ["hbs"]+ },+ "text/x-java-source": {+ source: "apache",+ extensions: ["java"]+ },+ "text/x-jquery-tmpl": {+ compressible: true+ },+ "text/x-lua": {+ extensions: ["lua"]+ },+ "text/x-markdown": {+ compressible: true,+ extensions: ["mkd"]+ },+ "text/x-nfo": {+ source: "apache",+ extensions: ["nfo"]+ },+ "text/x-opml": {+ source: "apache",+ extensions: ["opml"]+ },+ "text/x-org": {+ compressible: true,+ extensions: ["org"]+ },+ "text/x-pascal": {+ source: "apache",+ extensions: ["p", "pas"]+ },+ "text/x-processing": {+ compressible: true,+ extensions: ["pde"]+ },+ "text/x-sass": {+ extensions: ["sass"]+ },+ "text/x-scss": {+ extensions: ["scss"]+ },+ "text/x-setext": {+ source: "apache",+ extensions: ["etx"]+ },+ "text/x-sfv": {+ source: "apache",+ extensions: ["sfv"]+ },+ "text/x-suse-ymp": {+ compressible: true,+ extensions: ["ymp"]+ },+ "text/x-uuencode": {+ source: "apache",+ extensions: ["uu"]+ },+ "text/x-vcalendar": {+ source: "apache",+ extensions: ["vcs"]+ },+ "text/x-vcard": {+ source: "apache",+ extensions: ["vcf"]+ },+ "text/xml": {+ source: "iana",+ compressible: true,+ extensions: ["xml"]+ },+ "text/xml-external-parsed-entity": {+ source: "iana"+ },+ "text/yaml": {+ compressible: true,+ extensions: ["yaml", "yml"]+ },+ "video/1d-interleaved-parityfec": {+ source: "iana"+ },+ "video/3gpp": {+ source: "iana",+ extensions: ["3gp", "3gpp"]+ },+ "video/3gpp-tt": {+ source: "iana"+ },+ "video/3gpp2": {+ source: "iana",+ extensions: ["3g2"]+ },+ "video/av1": {+ source: "iana"+ },+ "video/bmpeg": {+ source: "iana"+ },+ "video/bt656": {+ source: "iana"+ },+ "video/celb": {+ source: "iana"+ },+ "video/dv": {+ source: "iana"+ },+ "video/encaprtp": {+ source: "iana"+ },+ "video/ffv1": {+ source: "iana"+ },+ "video/flexfec": {+ source: "iana"+ },+ "video/h261": {+ source: "iana",+ extensions: ["h261"]+ },+ "video/h263": {+ source: "iana",+ extensions: ["h263"]+ },+ "video/h263-1998": {+ source: "iana"+ },+ "video/h263-2000": {+ source: "iana"+ },+ "video/h264": {+ source: "iana",+ extensions: ["h264"]+ },+ "video/h264-rcdo": {+ source: "iana"+ },+ "video/h264-svc": {+ source: "iana"+ },+ "video/h265": {+ source: "iana"+ },+ "video/iso.segment": {+ source: "iana",+ extensions: ["m4s"]+ },+ "video/jpeg": {+ source: "iana",+ extensions: ["jpgv"]+ },+ "video/jpeg2000": {+ source: "iana"+ },+ "video/jpm": {+ source: "apache",+ extensions: ["jpm", "jpgm"]+ },+ "video/jxsv": {+ source: "iana"+ },+ "video/mj2": {+ source: "iana",+ extensions: ["mj2", "mjp2"]+ },+ "video/mp1s": {+ source: "iana"+ },+ "video/mp2p": {+ source: "iana"+ },+ "video/mp2t": {+ source: "iana",+ extensions: ["ts"]+ },+ "video/mp4": {+ source: "iana",+ compressible: false,+ extensions: ["mp4", "mp4v", "mpg4"]+ },+ "video/mp4v-es": {+ source: "iana"+ },+ "video/mpeg": {+ source: "iana",+ compressible: false,+ extensions: ["mpeg", "mpg", "mpe", "m1v", "m2v"]+ },+ "video/mpeg4-generic": {+ source: "iana"+ },+ "video/mpv": {+ source: "iana"+ },+ "video/nv": {+ source: "iana"+ },+ "video/ogg": {+ source: "iana",+ compressible: false,+ extensions: ["ogv"]+ },+ "video/parityfec": {+ source: "iana"+ },+ "video/pointer": {+ source: "iana"+ },+ "video/quicktime": {+ source: "iana",+ compressible: false,+ extensions: ["qt", "mov"]+ },+ "video/raptorfec": {+ source: "iana"+ },+ "video/raw": {+ source: "iana"+ },+ "video/rtp-enc-aescm128": {+ source: "iana"+ },+ "video/rtploopback": {+ source: "iana"+ },+ "video/rtx": {+ source: "iana"+ },+ "video/scip": {+ source: "iana"+ },+ "video/smpte291": {+ source: "iana"+ },+ "video/smpte292m": {+ source: "iana"+ },+ "video/ulpfec": {+ source: "iana"+ },+ "video/vc1": {+ source: "iana"+ },+ "video/vc2": {+ source: "iana"+ },+ "video/vnd.cctv": {+ source: "iana"+ },+ "video/vnd.dece.hd": {+ source: "iana",+ extensions: ["uvh", "uvvh"]+ },+ "video/vnd.dece.mobile": {+ source: "iana",+ extensions: ["uvm", "uvvm"]+ },+ "video/vnd.dece.mp4": {+ source: "iana"+ },+ "video/vnd.dece.pd": {+ source: "iana",+ extensions: ["uvp", "uvvp"]+ },+ "video/vnd.dece.sd": {+ source: "iana",+ extensions: ["uvs", "uvvs"]+ },+ "video/vnd.dece.video": {+ source: "iana",+ extensions: ["uvv", "uvvv"]+ },+ "video/vnd.directv.mpeg": {+ source: "iana"+ },+ "video/vnd.directv.mpeg-tts": {+ source: "iana"+ },+ "video/vnd.dlna.mpeg-tts": {+ source: "iana"+ },+ "video/vnd.dvb.file": {+ source: "iana",+ extensions: ["dvb"]+ },+ "video/vnd.fvt": {+ source: "iana",+ extensions: ["fvt"]+ },+ "video/vnd.hns.video": {+ source: "iana"+ },+ "video/vnd.iptvforum.1dparityfec-1010": {+ source: "iana"+ },+ "video/vnd.iptvforum.1dparityfec-2005": {+ source: "iana"+ },+ "video/vnd.iptvforum.2dparityfec-1010": {+ source: "iana"+ },+ "video/vnd.iptvforum.2dparityfec-2005": {+ source: "iana"+ },+ "video/vnd.iptvforum.ttsavc": {+ source: "iana"+ },+ "video/vnd.iptvforum.ttsmpeg2": {+ source: "iana"+ },+ "video/vnd.motorola.video": {+ source: "iana"+ },+ "video/vnd.motorola.videop": {+ source: "iana"+ },+ "video/vnd.mpegurl": {+ source: "iana",+ extensions: ["mxu", "m4u"]+ },+ "video/vnd.ms-playready.media.pyv": {+ source: "iana",+ extensions: ["pyv"]+ },+ "video/vnd.nokia.interleaved-multimedia": {+ source: "iana"+ },+ "video/vnd.nokia.mp4vr": {+ source: "iana"+ },+ "video/vnd.nokia.videovoip": {+ source: "iana"+ },+ "video/vnd.objectvideo": {+ source: "iana"+ },+ "video/vnd.radgamettools.bink": {+ source: "iana"+ },+ "video/vnd.radgamettools.smacker": {+ source: "iana"+ },+ "video/vnd.sealed.mpeg1": {+ source: "iana"+ },+ "video/vnd.sealed.mpeg4": {+ source: "iana"+ },+ "video/vnd.sealed.swf": {+ source: "iana"+ },+ "video/vnd.sealedmedia.softseal.mov": {+ source: "iana"+ },+ "video/vnd.uvvu.mp4": {+ source: "iana",+ extensions: ["uvu", "uvvu"]+ },+ "video/vnd.vivo": {+ source: "iana",+ extensions: ["viv"]+ },+ "video/vnd.youtube.yt": {+ source: "iana"+ },+ "video/vp8": {+ source: "iana"+ },+ "video/vp9": {+ source: "iana"+ },+ "video/webm": {+ source: "apache",+ compressible: false,+ extensions: ["webm"]+ },+ "video/x-f4v": {+ source: "apache",+ extensions: ["f4v"]+ },+ "video/x-fli": {+ source: "apache",+ extensions: ["fli"]+ },+ "video/x-flv": {+ source: "apache",+ compressible: false,+ extensions: ["flv"]+ },+ "video/x-m4v": {+ source: "apache",+ extensions: ["m4v"]+ },+ "video/x-matroska": {+ source: "apache",+ compressible: false,+ extensions: ["mkv", "mk3d", "mks"]+ },+ "video/x-mng": {+ source: "apache",+ extensions: ["mng"]+ },+ "video/x-ms-asf": {+ source: "apache",+ extensions: ["asf", "asx"]+ },+ "video/x-ms-vob": {+ source: "apache",+ extensions: ["vob"]+ },+ "video/x-ms-wm": {+ source: "apache",+ extensions: ["wm"]+ },+ "video/x-ms-wmv": {+ source: "apache",+ compressible: false,+ extensions: ["wmv"]+ },+ "video/x-ms-wmx": {+ source: "apache",+ extensions: ["wmx"]+ },+ "video/x-ms-wvx": {+ source: "apache",+ extensions: ["wvx"]+ },+ "video/x-msvideo": {+ source: "apache",+ extensions: ["avi"]+ },+ "video/x-sgi-movie": {+ source: "apache",+ extensions: ["movie"]+ },+ "video/x-smv": {+ source: "apache",+ extensions: ["smv"]+ },+ "x-conference/x-cooltalk": {+ source: "apache",+ extensions: ["ice"]+ },+ "x-shader/x-fragment": {+ compressible: true+ },+ "x-shader/x-vertex": {+ compressible: true+ }+ };+});++// node_modules/mime-db/index.js+var require_mime_db = __commonJS((exports, module) => {+ /*!+ * mime-db+ * Copyright(c) 2014 Jonathan Ong+ * Copyright(c) 2015-2022 Douglas Christopher Wilson+ * MIT Licensed+ */+ module.exports = require_db();+});++// node_modules/mime-types/index.js+var require_mime_types = __commonJS((exports) => {+ /*!+ * mime-types+ * Copyright(c) 2014 Jonathan Ong+ * Copyright(c) 2015 Douglas Christopher Wilson+ * MIT Licensed+ */+ var db = require_mime_db();+ var extname = __require("path").extname;+ var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;+ var TEXT_TYPE_REGEXP = /^text\//i;+ exports.charset = charset;+ exports.charsets = { lookup: charset };+ exports.contentType = contentType;+ exports.extension = extension;+ exports.extensions = Object.create(null);+ exports.lookup = lookup;+ exports.types = Object.create(null);+ populateMaps(exports.extensions, exports.types);+ function charset(type) {+ if (!type || typeof type !== "string") {+ return false;+ }+ var match = EXTRACT_TYPE_REGEXP.exec(type);+ var mime = match && db[match[1].toLowerCase()];+ if (mime && mime.charset) {+ return mime.charset;+ }+ if (match && TEXT_TYPE_REGEXP.test(match[1])) {+ return "UTF-8";+ }+ return false;+ }+ function contentType(str) {+ if (!str || typeof str !== "string") {+ return false;+ }+ var mime = str.indexOf("/") === -1 ? exports.lookup(str) : str;+ if (!mime) {+ return false;+ }+ if (mime.indexOf("charset") === -1) {+ var charset2 = exports.charset(mime);+ if (charset2)+ mime += "; charset=" + charset2.toLowerCase();+ }+ return mime;+ }+ function extension(type) {+ if (!type || typeof type !== "string") {+ return false;+ }+ var match = EXTRACT_TYPE_REGEXP.exec(type);+ var exts = match && exports.extensions[match[1].toLowerCase()];+ if (!exts || !exts.length) {+ return false;+ }+ return exts[0];+ }+ function lookup(path2) {+ if (!path2 || typeof path2 !== "string") {+ return false;+ }+ var extension2 = extname("x." + path2).toLowerCase().substr(1);+ if (!extension2) {+ return false;+ }+ return exports.types[extension2] || false;+ }+ function populateMaps(extensions, types) {+ var preference = ["nginx", "apache", undefined, "iana"];+ Object.keys(db).forEach(function forEachMimeType(type) {+ var mime = db[type];+ var exts = mime.extensions;+ if (!exts || !exts.length) {+ return;+ }+ extensions[type] = exts;+ for (var i = 0;i < exts.length; i++) {+ var extension2 = exts[i];+ if (types[extension2]) {+ var from = preference.indexOf(db[types[extension2]].source);+ var to = preference.indexOf(mime.source);+ if (types[extension2] !== "application/octet-stream" && (from > to || from === to && types[extension2].substr(0, 12) === "application/")) {+ continue;+ }+ }+ types[extension2] = type;+ }+ });+ }+});++// node_modules/asynckit/lib/defer.js+var require_defer = __commonJS((exports, module) => {+ module.exports = defer;+ function defer(fn) {+ var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;+ if (nextTick) {+ nextTick(fn);+ } else {+ setTimeout(fn, 0);+ }+ }+});++// node_modules/asynckit/lib/async.js+var require_async2 = __commonJS((exports, module) => {+ var defer = require_defer();+ module.exports = async;+ function async(callback) {+ var isAsync2 = false;+ defer(function() {+ isAsync2 = true;+ });+ return function async_callback(err, result) {+ if (isAsync2) {+ callback(err, result);+ } else {+ defer(function nextTick_callback() {+ callback(err, result);+ });+ }+ };+ }+});++// node_modules/asynckit/lib/abort.js+var require_abort = __commonJS((exports, module) => {+ module.exports = abort;+ function abort(state) {+ Object.keys(state.jobs).forEach(clean.bind(state));+ state.jobs = {};+ }+ function clean(key) {+ if (typeof this.jobs[key] == "function") {+ this.jobs[key]();+ }+ }+});++// node_modules/asynckit/lib/iterate.js+var require_iterate = __commonJS((exports, module) => {+ var async = require_async2();+ var abort = require_abort();+ module.exports = iterate;+ function iterate(list, iterator, state, callback) {+ var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;+ state.jobs[key] = runJob(iterator, key, list[key], function(error, output) {+ if (!(key in state.jobs)) {+ return;+ }+ delete state.jobs[key];+ if (error) {+ abort(state);+ } else {+ state.results[key] = output;+ }+ callback(error, state.results);+ });+ }+ function runJob(iterator, key, item, callback) {+ var aborter;+ if (iterator.length == 2) {+ aborter = iterator(item, async(callback));+ } else {+ aborter = iterator(item, key, async(callback));+ }+ return aborter;+ }+});++// node_modules/asynckit/lib/state.js+var require_state2 = __commonJS((exports, module) => {+ module.exports = state;+ function state(list, sortMethod) {+ var isNamedList = !Array.isArray(list), initState = {+ index: 0,+ keyedList: isNamedList || sortMethod ? Object.keys(list) : null,+ jobs: {},+ results: isNamedList ? {} : [],+ size: isNamedList ? Object.keys(list).length : list.length+ };+ if (sortMethod) {+ initState.keyedList.sort(isNamedList ? sortMethod : function(a, b2) {+ return sortMethod(list[a], list[b2]);+ });+ }+ return initState;+ }+});++// node_modules/asynckit/lib/terminator.js+var require_terminator = __commonJS((exports, module) => {+ var abort = require_abort();+ var async = require_async2();+ module.exports = terminator;+ function terminator(callback) {+ if (!Object.keys(this.jobs).length) {+ return;+ }+ this.index = this.size;+ abort(this);+ async(callback)(null, this.results);+ }+});++// node_modules/asynckit/parallel.js+var require_parallel = __commonJS((exports, module) => {+ var iterate = require_iterate();+ var initState = require_state2();+ var terminator = require_terminator();+ module.exports = parallel;+ function parallel(list, iterator, callback) {+ var state = initState(list);+ while (state.index < (state["keyedList"] || list).length) {+ iterate(list, iterator, state, function(error, result) {+ if (error) {+ callback(error, result);+ return;+ }+ if (Object.keys(state.jobs).length === 0) {+ callback(null, state.results);+ return;+ }+ });+ state.index++;+ }+ return terminator.bind(state, callback);+ }+});++// node_modules/asynckit/serialOrdered.js+var require_serialOrdered = __commonJS((exports, module) => {+ var iterate = require_iterate();+ var initState = require_state2();+ var terminator = require_terminator();+ module.exports = serialOrdered;+ module.exports.ascending = ascending;+ module.exports.descending = descending;+ function serialOrdered(list, iterator, sortMethod, callback) {+ var state = initState(list, sortMethod);+ iterate(list, iterator, state, function iteratorHandler(error, result) {+ if (error) {+ callback(error, result);+ return;+ }+ state.index++;+ if (state.index < (state["keyedList"] || list).length) {+ iterate(list, iterator, state, iteratorHandler);+ return;+ }+ callback(null, state.results);+ });+ return terminator.bind(state, callback);+ }+ function ascending(a, b2) {+ return a < b2 ? -1 : a > b2 ? 1 : 0;+ }+ function descending(a, b2) {+ return -1 * ascending(a, b2);+ }+});++// node_modules/asynckit/serial.js+var require_serial = __commonJS((exports, module) => {+ var serialOrdered = require_serialOrdered();+ module.exports = serial;+ function serial(list, iterator, callback) {+ return serialOrdered(list, iterator, null, callback);+ }+});++// node_modules/asynckit/index.js+var require_asynckit = __commonJS((exports, module) => {+ module.exports = {+ parallel: require_parallel(),+ serial: require_serial(),+ serialOrdered: require_serialOrdered()+ };+});++// node_modules/es-object-atoms/index.js+var require_es_object_atoms = __commonJS((exports, module) => {+ module.exports = Object;+});++// node_modules/es-errors/index.js+var require_es_errors = __commonJS((exports, module) => {+ module.exports = Error;+});++// node_modules/es-errors/eval.js+var require_eval = __commonJS((exports, module) => {+ module.exports = EvalError;+});++// node_modules/es-errors/range.js+var require_range = __commonJS((exports, module) => {+ module.exports = RangeError;+});++// node_modules/es-errors/ref.js+var require_ref = __commonJS((exports, module) => {+ module.exports = ReferenceError;+});++// node_modules/es-errors/syntax.js+var require_syntax = __commonJS((exports, module) => {+ module.exports = SyntaxError;+});++// node_modules/es-errors/type.js+var require_type = __commonJS((exports, module) => {+ module.exports = TypeError;+});++// node_modules/es-errors/uri.js+var require_uri = __commonJS((exports, module) => {+ module.exports = URIError;+});++// node_modules/math-intrinsics/abs.js+var require_abs = __commonJS((exports, module) => {+ module.exports = Math.abs;+});++// node_modules/math-intrinsics/floor.js+var require_floor = __commonJS((exports, module) => {+ module.exports = Math.floor;+});++// node_modules/math-intrinsics/max.js+var require_max = __commonJS((exports, module) => {+ module.exports = Math.max;+});++// node_modules/math-intrinsics/min.js+var require_min = __commonJS((exports, module) => {+ module.exports = Math.min;+});++// node_modules/math-intrinsics/pow.js+var require_pow = __commonJS((exports, module) => {+ module.exports = Math.pow;+});++// node_modules/math-intrinsics/round.js+var require_round = __commonJS((exports, module) => {+ module.exports = Math.round;+});++// node_modules/math-intrinsics/isNaN.js+var require_isNaN = __commonJS((exports, module) => {+ module.exports = Number.isNaN || function isNaN(a) {+ return a !== a;+ };+});++// node_modules/math-intrinsics/sign.js+var require_sign = __commonJS((exports, module) => {+ var $isNaN = require_isNaN();+ module.exports = function sign(number) {+ if ($isNaN(number) || number === 0) {+ return number;+ }+ return number < 0 ? -1 : 1;+ };+});++// node_modules/gopd/gOPD.js+var require_gOPD = __commonJS((exports, module) => {+ module.exports = Object.getOwnPropertyDescriptor;+});++// node_modules/gopd/index.js+var require_gopd = __commonJS((exports, module) => {+ var $gOPD = require_gOPD();+ if ($gOPD) {+ try {+ $gOPD([], "length");+ } catch (e2) {+ $gOPD = null;+ }+ }+ module.exports = $gOPD;+});++// node_modules/es-define-property/index.js+var require_es_define_property = __commonJS((exports, module) => {+ var $defineProperty = Object.defineProperty || false;+ if ($defineProperty) {+ try {+ $defineProperty({}, "a", { value: 1 });+ } catch (e2) {+ $defineProperty = false;+ }+ }+ module.exports = $defineProperty;+});++// node_modules/has-symbols/shams.js+var require_shams = __commonJS((exports, module) => {+ module.exports = function hasSymbols() {+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {+ return false;+ }+ if (typeof Symbol.iterator === "symbol") {+ return true;+ }+ var obj = {};+ var sym = Symbol("test");+ var symObj = Object(sym);+ if (typeof sym === "string") {+ return false;+ }+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {+ return false;+ }+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {+ return false;+ }+ var symVal = 42;+ obj[sym] = symVal;+ for (var _4 in obj) {+ return false;+ }+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {+ return false;+ }+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {+ return false;+ }+ var syms = Object.getOwnPropertySymbols(obj);+ if (syms.length !== 1 || syms[0] !== sym) {+ return false;+ }+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {+ return false;+ }+ if (typeof Object.getOwnPropertyDescriptor === "function") {+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {+ return false;+ }+ }+ return true;+ };+});++// node_modules/has-symbols/index.js+var require_has_symbols = __commonJS((exports, module) => {+ var origSymbol = typeof Symbol !== "undefined" && Symbol;+ var hasSymbolSham = require_shams();+ module.exports = function hasNativeSymbols() {+ if (typeof origSymbol !== "function") {+ return false;+ }+ if (typeof Symbol !== "function") {+ return false;+ }+ if (typeof origSymbol("foo") !== "symbol") {+ return false;+ }+ if (typeof Symbol("bar") !== "symbol") {+ return false;+ }+ return hasSymbolSham();+ };+});++// node_modules/get-proto/Reflect.getPrototypeOf.js+var require_Reflect_getPrototypeOf = __commonJS((exports, module) => {+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;+});++// node_modules/get-proto/Object.getPrototypeOf.js+var require_Object_getPrototypeOf = __commonJS((exports, module) => {+ var $Object = require_es_object_atoms();+ module.exports = $Object.getPrototypeOf || null;+});++// node_modules/function-bind/implementation.js+var require_implementation = __commonJS((exports, module) => {+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";+ var toStr = Object.prototype.toString;+ var max = Math.max;+ var funcType = "[object Function]";+ var concatty = function concatty(a, b2) {+ var arr = [];+ for (var i = 0;i < a.length; i += 1) {+ arr[i] = a[i];+ }+ for (var j2 = 0;j2 < b2.length; j2 += 1) {+ arr[j2 + a.length] = b2[j2];+ }+ return arr;+ };+ var slicy = function slicy(arrLike, offset) {+ var arr = [];+ for (var i = offset || 0, j2 = 0;i < arrLike.length; i += 1, j2 += 1) {+ arr[j2] = arrLike[i];+ }+ return arr;+ };+ var joiny = function(arr, joiner) {+ var str = "";+ for (var i = 0;i < arr.length; i += 1) {+ str += arr[i];+ if (i + 1 < arr.length) {+ str += joiner;+ }+ }+ return str;+ };+ module.exports = function bind(that) {+ var target = this;+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {+ throw new TypeError(ERROR_MESSAGE + target);+ }+ var args = slicy(arguments, 1);+ var bound;+ var binder = function() {+ if (this instanceof bound) {+ var result = target.apply(this, concatty(args, arguments));+ if (Object(result) === result) {+ return result;+ }+ return this;+ }+ return target.apply(that, concatty(args, arguments));+ };+ var boundLength = max(0, target.length - args.length);+ var boundArgs = [];+ for (var i = 0;i < boundLength; i++) {+ boundArgs[i] = "$" + i;+ }+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);+ if (target.prototype) {+ var Empty = function Empty() {+ };+ Empty.prototype = target.prototype;+ bound.prototype = new Empty;+ Empty.prototype = null;+ }+ return bound;+ };+});++// node_modules/function-bind/index.js+var require_function_bind = __commonJS((exports, module) => {+ var implementation = require_implementation();+ module.exports = Function.prototype.bind || implementation;+});++// node_modules/call-bind-apply-helpers/functionCall.js+var require_functionCall = __commonJS((exports, module) => {+ module.exports = Function.prototype.call;+});++// node_modules/call-bind-apply-helpers/functionApply.js+var require_functionApply = __commonJS((exports, module) => {+ module.exports = Function.prototype.apply;+});++// node_modules/call-bind-apply-helpers/reflectApply.js+var require_reflectApply = __commonJS((exports, module) => {+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;+});++// node_modules/call-bind-apply-helpers/actualApply.js+var require_actualApply = __commonJS((exports, module) => {+ var bind2 = require_function_bind();+ var $apply = require_functionApply();+ var $call = require_functionCall();+ var $reflectApply = require_reflectApply();+ module.exports = $reflectApply || bind2.call($call, $apply);+});++// node_modules/call-bind-apply-helpers/index.js+var require_call_bind_apply_helpers = __commonJS((exports, module) => {+ var bind2 = require_function_bind();+ var $TypeError = require_type();+ var $call = require_functionCall();+ var $actualApply = require_actualApply();+ module.exports = function callBindBasic(args) {+ if (args.length < 1 || typeof args[0] !== "function") {+ throw new $TypeError("a function is required");+ }+ return $actualApply(bind2, $call, args);+ };+});++// node_modules/dunder-proto/get.js+var require_get = __commonJS((exports, module) => {+ var callBind = require_call_bind_apply_helpers();+ var gOPD = require_gopd();+ var hasProtoAccessor;+ try {+ hasProtoAccessor = [].__proto__ === Array.prototype;+ } catch (e2) {+ if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") {+ throw e2;+ }+ }+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");+ var $Object = Object;+ var $getPrototypeOf = $Object.getPrototypeOf;+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {+ return $getPrototypeOf(value == null ? value : $Object(value));+ } : false;+});++// node_modules/get-proto/index.js+var require_get_proto = __commonJS((exports, module) => {+ var reflectGetProto = require_Reflect_getPrototypeOf();+ var originalGetProto = require_Object_getPrototypeOf();+ var getDunderProto = require_get();+ module.exports = reflectGetProto ? function getProto(O2) {+ return reflectGetProto(O2);+ } : originalGetProto ? function getProto(O2) {+ if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {+ throw new TypeError("getProto: not an object");+ }+ return originalGetProto(O2);+ } : getDunderProto ? function getProto(O2) {+ return getDunderProto(O2);+ } : null;+});++// node_modules/hasown/index.js+var require_hasown = __commonJS((exports, module) => {+ var call = Function.prototype.call;+ var $hasOwn = Object.prototype.hasOwnProperty;+ var bind2 = require_function_bind();+ module.exports = bind2.call(call, $hasOwn);+});++// node_modules/get-intrinsic/index.js+var require_get_intrinsic = __commonJS((exports, module) => {+ var undefined2;+ var $Object = require_es_object_atoms();+ var $Error = require_es_errors();+ var $EvalError = require_eval();+ var $RangeError = require_range();+ var $ReferenceError = require_ref();+ var $SyntaxError = require_syntax();+ var $TypeError = require_type();+ var $URIError = require_uri();+ var abs = require_abs();+ var floor = require_floor();+ var max = require_max();+ var min = require_min();+ var pow = require_pow();+ var round = require_round();+ var sign = require_sign();+ var $Function = Function;+ var getEvalledConstructor = function(expressionSyntax) {+ try {+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();+ } catch (e2) {+ }+ };+ var $gOPD = require_gopd();+ var $defineProperty = require_es_define_property();+ var throwTypeError = function() {+ throw new $TypeError;+ };+ var ThrowTypeError = $gOPD ? function() {+ try {+ arguments.callee;+ return throwTypeError;+ } catch (calleeThrows) {+ try {+ return $gOPD(arguments, "callee").get;+ } catch (gOPDthrows) {+ return throwTypeError;+ }+ }+ }() : throwTypeError;+ var hasSymbols = require_has_symbols()();+ var getProto = require_get_proto();+ var $ObjectGPO = require_Object_getPrototypeOf();+ var $ReflectGPO = require_Reflect_getPrototypeOf();+ var $apply = require_functionApply();+ var $call = require_functionCall();+ var needsEval = {};+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);+ var INTRINSICS = {+ __proto__: null,+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,+ "%Array%": Array,+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,+ "%AsyncFromSyncIteratorPrototype%": undefined2,+ "%AsyncFunction%": needsEval,+ "%AsyncGenerator%": needsEval,+ "%AsyncGeneratorFunction%": needsEval,+ "%AsyncIteratorPrototype%": needsEval,+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,+ "%Boolean%": Boolean,+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,+ "%Date%": Date,+ "%decodeURI%": decodeURI,+ "%decodeURIComponent%": decodeURIComponent,+ "%encodeURI%": encodeURI,+ "%encodeURIComponent%": encodeURIComponent,+ "%Error%": $Error,+ "%eval%": eval,+ "%EvalError%": $EvalError,+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,+ "%Function%": $Function,+ "%GeneratorFunction%": needsEval,+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,+ "%isFinite%": isFinite,+ "%isNaN%": isNaN,+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto(new Map()[Symbol.iterator]()),+ "%Math%": Math,+ "%Number%": Number,+ "%Object%": $Object,+ "%Object.getOwnPropertyDescriptor%": $gOPD,+ "%parseFloat%": parseFloat,+ "%parseInt%": parseInt,+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,+ "%RangeError%": $RangeError,+ "%ReferenceError%": $ReferenceError,+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,+ "%RegExp%": RegExp,+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto(new Set()[Symbol.iterator]()),+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,+ "%String%": String,+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,+ "%Symbol%": hasSymbols ? Symbol : undefined2,+ "%SyntaxError%": $SyntaxError,+ "%ThrowTypeError%": ThrowTypeError,+ "%TypedArray%": TypedArray,+ "%TypeError%": $TypeError,+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,+ "%URIError%": $URIError,+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,+ "%Function.prototype.call%": $call,+ "%Function.prototype.apply%": $apply,+ "%Object.defineProperty%": $defineProperty,+ "%Object.getPrototypeOf%": $ObjectGPO,+ "%Math.abs%": abs,+ "%Math.floor%": floor,+ "%Math.max%": max,+ "%Math.min%": min,+ "%Math.pow%": pow,+ "%Math.round%": round,+ "%Math.sign%": sign,+ "%Reflect.getPrototypeOf%": $ReflectGPO+ };+ if (getProto) {+ try {+ null.error;+ } catch (e2) {+ errorProto = getProto(getProto(e2));+ INTRINSICS["%Error.prototype%"] = errorProto;+ }+ }+ var errorProto;+ var doEval = function doEval(name) {+ var value;+ if (name === "%AsyncFunction%") {+ value = getEvalledConstructor("async function () {}");+ } else if (name === "%GeneratorFunction%") {+ value = getEvalledConstructor("function* () {}");+ } else if (name === "%AsyncGeneratorFunction%") {+ value = getEvalledConstructor("async function* () {}");+ } else if (name === "%AsyncGenerator%") {+ var fn = doEval("%AsyncGeneratorFunction%");+ if (fn) {+ value = fn.prototype;+ }+ } else if (name === "%AsyncIteratorPrototype%") {+ var gen = doEval("%AsyncGenerator%");+ if (gen && getProto) {+ value = getProto(gen.prototype);+ }+ }+ INTRINSICS[name] = value;+ return value;+ };+ var LEGACY_ALIASES = {+ __proto__: null,+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],+ "%ArrayPrototype%": ["Array", "prototype"],+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],+ "%ArrayProto_values%": ["Array", "prototype", "values"],+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],+ "%BooleanPrototype%": ["Boolean", "prototype"],+ "%DataViewPrototype%": ["DataView", "prototype"],+ "%DatePrototype%": ["Date", "prototype"],+ "%ErrorPrototype%": ["Error", "prototype"],+ "%EvalErrorPrototype%": ["EvalError", "prototype"],+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],+ "%FunctionPrototype%": ["Function", "prototype"],+ "%Generator%": ["GeneratorFunction", "prototype"],+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],+ "%JSONParse%": ["JSON", "parse"],+ "%JSONStringify%": ["JSON", "stringify"],+ "%MapPrototype%": ["Map", "prototype"],+ "%NumberPrototype%": ["Number", "prototype"],+ "%ObjectPrototype%": ["Object", "prototype"],+ "%ObjProto_toString%": ["Object", "prototype", "toString"],+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],+ "%PromisePrototype%": ["Promise", "prototype"],+ "%PromiseProto_then%": ["Promise", "prototype", "then"],+ "%Promise_all%": ["Promise", "all"],+ "%Promise_reject%": ["Promise", "reject"],+ "%Promise_resolve%": ["Promise", "resolve"],+ "%RangeErrorPrototype%": ["RangeError", "prototype"],+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],+ "%RegExpPrototype%": ["RegExp", "prototype"],+ "%SetPrototype%": ["Set", "prototype"],+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],+ "%StringPrototype%": ["String", "prototype"],+ "%SymbolPrototype%": ["Symbol", "prototype"],+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],+ "%TypeErrorPrototype%": ["TypeError", "prototype"],+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],+ "%URIErrorPrototype%": ["URIError", "prototype"],+ "%WeakMapPrototype%": ["WeakMap", "prototype"],+ "%WeakSetPrototype%": ["WeakSet", "prototype"]+ };+ var bind2 = require_function_bind();+ var hasOwn = require_hasown();+ var $concat = bind2.call($call, Array.prototype.concat);+ var $spliceApply = bind2.call($apply, Array.prototype.splice);+ var $replace = bind2.call($call, String.prototype.replace);+ var $strSlice = bind2.call($call, String.prototype.slice);+ var $exec = bind2.call($call, RegExp.prototype.exec);+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;+ var reEscapeChar = /\\(\\)?/g;+ var stringToPath = function stringToPath(string) {+ var first = $strSlice(string, 0, 1);+ var last = $strSlice(string, -1);+ if (first === "%" && last !== "%") {+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");+ } else if (last === "%" && first !== "%") {+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");+ }+ var result = [];+ $replace(string, rePropName, function(match, number, quote, subString) {+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;+ });+ return result;+ };+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {+ var intrinsicName = name;+ var alias;+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {+ alias = LEGACY_ALIASES[intrinsicName];+ intrinsicName = "%" + alias[0] + "%";+ }+ if (hasOwn(INTRINSICS, intrinsicName)) {+ var value = INTRINSICS[intrinsicName];+ if (value === needsEval) {+ value = doEval(intrinsicName);+ }+ if (typeof value === "undefined" && !allowMissing) {+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");+ }+ return {+ alias,+ name: intrinsicName,+ value+ };+ }+ throw new $SyntaxError("intrinsic " + name + " does not exist!");+ };+ module.exports = function GetIntrinsic(name, allowMissing) {+ if (typeof name !== "string" || name.length === 0) {+ throw new $TypeError("intrinsic name must be a non-empty string");+ }+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {+ throw new $TypeError('"allowMissing" argument must be a boolean');+ }+ if ($exec(/^%?[^%]*%?$/, name) === null) {+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");+ }+ var parts = stringToPath(name);+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);+ var intrinsicRealName = intrinsic.name;+ var value = intrinsic.value;+ var skipFurtherCaching = false;+ var alias = intrinsic.alias;+ if (alias) {+ intrinsicBaseName = alias[0];+ $spliceApply(parts, $concat([0, 1], alias));+ }+ for (var i = 1, isOwn = true;i < parts.length; i += 1) {+ var part = parts[i];+ var first = $strSlice(part, 0, 1);+ var last = $strSlice(part, -1);+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {+ throw new $SyntaxError("property names with quotes must have matching quotes");+ }+ if (part === "constructor" || !isOwn) {+ skipFurtherCaching = true;+ }+ intrinsicBaseName += "." + part;+ intrinsicRealName = "%" + intrinsicBaseName + "%";+ if (hasOwn(INTRINSICS, intrinsicRealName)) {+ value = INTRINSICS[intrinsicRealName];+ } else if (value != null) {+ if (!(part in value)) {+ if (!allowMissing) {+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");+ }+ return;+ }+ if ($gOPD && i + 1 >= parts.length) {+ var desc = $gOPD(value, part);+ isOwn = !!desc;+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {+ value = desc.get;+ } else {+ value = value[part];+ }+ } else {+ isOwn = hasOwn(value, part);+ value = value[part];+ }+ if (isOwn && !skipFurtherCaching) {+ INTRINSICS[intrinsicRealName] = value;+ }+ }+ }+ return value;+ };+});++// node_modules/has-tostringtag/shams.js+var require_shams2 = __commonJS((exports, module) => {+ var hasSymbols = require_shams();+ module.exports = function hasToStringTagShams() {+ return hasSymbols() && !!Symbol.toStringTag;+ };+});++// node_modules/es-set-tostringtag/index.js+var require_es_set_tostringtag = __commonJS((exports, module) => {+ var GetIntrinsic = require_get_intrinsic();+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);+ var hasToStringTag = require_shams2()();+ var hasOwn = require_hasown();+ var $TypeError = require_type();+ var toStringTag = hasToStringTag ? Symbol.toStringTag : null;+ module.exports = function setToStringTag(object, value) {+ var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;+ var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;+ if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {+ throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");+ }+ if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {+ if ($defineProperty) {+ $defineProperty(object, toStringTag, {+ configurable: !nonConfigurable,+ enumerable: false,+ value,+ writable: false+ });+ } else {+ object[toStringTag] = value;+ }+ }+ };+});++// node_modules/form-data/lib/populate.js+var require_populate = __commonJS((exports, module) => {+ module.exports = function(dst, src) {+ Object.keys(src).forEach(function(prop) {+ dst[prop] = dst[prop] || src[prop];+ });+ return dst;+ };+});++// node_modules/form-data/lib/form_data.js+var require_form_data = __commonJS((exports, module) => {+ var CombinedStream = require_combined_stream();+ var util2 = __require("util");+ var path2 = __require("path");+ var http2 = __require("http");+ var https = __require("https");+ var parseUrl = __require("url").parse;+ var fs3 = __require("fs");+ var Stream = __require("stream").Stream;+ var mime = require_mime_types();+ var asynckit = require_asynckit();+ var setToStringTag = require_es_set_tostringtag();+ var populate = require_populate();+ module.exports = FormData2;+ util2.inherits(FormData2, CombinedStream);+ function FormData2(options) {+ if (!(this instanceof FormData2)) {+ return new FormData2(options);+ }+ this._overheadLength = 0;+ this._valueLength = 0;+ this._valuesToMeasure = [];+ CombinedStream.call(this);+ options = options || {};+ for (var option in options) {+ this[option] = options[option];+ }+ }+ FormData2.LINE_BREAK = `\r+`;+ FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";+ FormData2.prototype.append = function(field, value, options) {+ options = options || {};+ if (typeof options == "string") {+ options = { filename: options };+ }+ var append = CombinedStream.prototype.append.bind(this);+ if (typeof value == "number") {+ value = "" + value;+ }+ if (Array.isArray(value)) {+ this._error(new Error("Arrays are not supported."));+ return;+ }+ var header = this._multiPartHeader(field, value, options);+ var footer = this._multiPartFooter();+ append(header);+ append(value);+ append(footer);+ this._trackLength(header, value, options);+ };+ FormData2.prototype._trackLength = function(header, value, options) {+ var valueLength = 0;+ if (options.knownLength != null) {+ valueLength += +options.knownLength;+ } else if (Buffer.isBuffer(value)) {+ valueLength = value.length;+ } else if (typeof value === "string") {+ valueLength = Buffer.byteLength(value);+ }+ this._valueLength += valueLength;+ this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;+ if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {+ return;+ }+ if (!options.knownLength) {+ this._valuesToMeasure.push(value);+ }+ };+ FormData2.prototype._lengthRetriever = function(value, callback) {+ if (Object.prototype.hasOwnProperty.call(value, "fd")) {+ if (value.end != null && value.end != Infinity && value.start != null) {+ callback(null, value.end + 1 - (value.start ? value.start : 0));+ } else {+ fs3.stat(value.path, function(err, stat) {+ var fileSize;+ if (err) {+ callback(err);+ return;+ }+ fileSize = stat.size - (value.start ? value.start : 0);+ callback(null, fileSize);+ });+ }+ } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {+ callback(null, +value.headers["content-length"]);+ } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {+ value.on("response", function(response) {+ value.pause();+ callback(null, +response.headers["content-length"]);+ });+ value.resume();+ } else {+ callback("Unknown stream");+ }+ };+ FormData2.prototype._multiPartHeader = function(field, value, options) {+ if (typeof options.header == "string") {+ return options.header;+ }+ var contentDisposition = this._getContentDisposition(value, options);+ var contentType = this._getContentType(value, options);+ var contents = "";+ var headers = {+ "Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),+ "Content-Type": [].concat(contentType || [])+ };+ if (typeof options.header == "object") {+ populate(headers, options.header);+ }+ var header;+ for (var prop in headers) {+ if (Object.prototype.hasOwnProperty.call(headers, prop)) {+ header = headers[prop];+ if (header == null) {+ continue;+ }+ if (!Array.isArray(header)) {+ header = [header];+ }+ if (header.length) {+ contents += prop + ": " + header.join("; ") + FormData2.LINE_BREAK;+ }+ }+ }+ return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;+ };+ FormData2.prototype._getContentDisposition = function(value, options) {+ var filename, contentDisposition;+ if (typeof options.filepath === "string") {+ filename = path2.normalize(options.filepath).replace(/\\/g, "/");+ } else if (options.filename || value.name || value.path) {+ filename = path2.basename(options.filename || value.name || value.path);+ } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {+ filename = path2.basename(value.client._httpMessage.path || "");+ }+ if (filename) {+ contentDisposition = 'filename="' + filename + '"';+ }+ return contentDisposition;+ };+ FormData2.prototype._getContentType = function(value, options) {+ var contentType = options.contentType;+ if (!contentType && value.name) {+ contentType = mime.lookup(value.name);+ }+ if (!contentType && value.path) {+ contentType = mime.lookup(value.path);+ }+ if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {+ contentType = value.headers["content-type"];+ }+ if (!contentType && (options.filepath || options.filename)) {+ contentType = mime.lookup(options.filepath || options.filename);+ }+ if (!contentType && typeof value == "object") {+ contentType = FormData2.DEFAULT_CONTENT_TYPE;+ }+ return contentType;+ };+ FormData2.prototype._multiPartFooter = function() {+ return function(next) {+ var footer = FormData2.LINE_BREAK;+ var lastPart = this._streams.length === 0;+ if (lastPart) {+ footer += this._lastBoundary();+ }+ next(footer);+ }.bind(this);+ };+ FormData2.prototype._lastBoundary = function() {+ return "--" + this.getBoundary() + "--" + FormData2.LINE_BREAK;+ };+ FormData2.prototype.getHeaders = function(userHeaders) {+ var header;+ var formHeaders = {+ "content-type": "multipart/form-data; boundary=" + this.getBoundary()+ };+ for (header in userHeaders) {+ if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {+ formHeaders[header.toLowerCase()] = userHeaders[header];+ }+ }+ return formHeaders;+ };+ FormData2.prototype.setBoundary = function(boundary) {+ this._boundary = boundary;+ };+ FormData2.prototype.getBoundary = function() {+ if (!this._boundary) {+ this._generateBoundary();+ }+ return this._boundary;+ };+ FormData2.prototype.getBuffer = function() {+ var dataBuffer = new Buffer.alloc(0);+ var boundary = this.getBoundary();+ for (var i = 0, len = this._streams.length;i < len; i++) {+ if (typeof this._streams[i] !== "function") {+ if (Buffer.isBuffer(this._streams[i])) {+ dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);+ } else {+ dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);+ }+ if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {+ dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);+ }+ }+ }+ return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);+ };+ FormData2.prototype._generateBoundary = function() {+ var boundary = "--------------------------";+ for (var i = 0;i < 24; i++) {+ boundary += Math.floor(Math.random() * 10).toString(16);+ }+ this._boundary = boundary;+ };+ FormData2.prototype.getLengthSync = function() {+ var knownLength = this._overheadLength + this._valueLength;+ if (this._streams.length) {+ knownLength += this._lastBoundary().length;+ }+ if (!this.hasKnownLength()) {+ this._error(new Error("Cannot calculate proper length in synchronous way."));+ }+ return knownLength;+ };+ FormData2.prototype.hasKnownLength = function() {+ var hasKnownLength = true;+ if (this._valuesToMeasure.length) {+ hasKnownLength = false;+ }+ return hasKnownLength;+ };+ FormData2.prototype.getLength = function(cb) {+ var knownLength = this._overheadLength + this._valueLength;+ if (this._streams.length) {+ knownLength += this._lastBoundary().length;+ }+ if (!this._valuesToMeasure.length) {+ process.nextTick(cb.bind(this, null, knownLength));+ return;+ }+ asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {+ if (err) {+ cb(err);+ return;+ }+ values.forEach(function(length) {+ knownLength += length;+ });+ cb(null, knownLength);+ });+ };+ FormData2.prototype.submit = function(params, cb) {+ var request, options, defaults = { method: "post" };+ if (typeof params == "string") {+ params = parseUrl(params);+ options = populate({+ port: params.port,+ path: params.pathname,+ host: params.hostname,+ protocol: params.protocol+ }, defaults);+ } else {+ options = populate(params, defaults);+ if (!options.port) {+ options.port = options.protocol == "https:" ? 443 : 80;+ }+ }+ options.headers = this.getHeaders(params.headers);+ if (options.protocol == "https:") {+ request = https.request(options);+ } else {+ request = http2.request(options);+ }+ this.getLength(function(err, length) {+ if (err && err !== "Unknown stream") {+ this._error(err);+ return;+ }+ if (length) {+ request.setHeader("Content-Length", length);+ }+ this.pipe(request);+ if (cb) {+ var onResponse;+ var callback = function(error, responce) {+ request.removeListener("error", callback);+ request.removeListener("response", onResponse);+ return cb.call(this, error, responce);+ };+ onResponse = callback.bind(this, null);+ request.on("error", callback);+ request.on("response", onResponse);+ }+ }.bind(this));+ return request;+ };+ FormData2.prototype._error = function(err) {+ if (!this.error) {+ this.error = err;+ this.pause();+ this.emit("error", err);+ }+ };+ FormData2.prototype.toString = function() {+ return "[object FormData]";+ };+ setToStringTag(FormData2, "FormData");+});++// node_modules/proxy-from-env/index.js+var require_proxy_from_env = __commonJS((exports) => {+ var parseUrl = __require("url").parse;+ var DEFAULT_PORTS = {+ ftp: 21,+ gopher: 70,+ http: 80,+ https: 443,+ ws: 80,+ wss: 443+ };+ var stringEndsWith = String.prototype.endsWith || function(s) {+ return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;+ };+ function getProxyForUrl(url3) {+ var parsedUrl = typeof url3 === "string" ? parseUrl(url3) : url3 || {};+ var proto2 = parsedUrl.protocol;+ var hostname = parsedUrl.host;+ var port = parsedUrl.port;+ if (typeof hostname !== "string" || !hostname || typeof proto2 !== "string") {+ return "";+ }+ proto2 = proto2.split(":", 1)[0];+ hostname = hostname.replace(/:\d*$/, "");+ port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;+ if (!shouldProxy(hostname, port)) {+ return "";+ }+ var proxy = getEnv("npm_config_" + proto2 + "_proxy") || getEnv(proto2 + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");+ if (proxy && proxy.indexOf("://") === -1) {+ proxy = proto2 + "://" + proxy;+ }+ return proxy;+ }+ function shouldProxy(hostname, port) {+ var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();+ if (!NO_PROXY) {+ return true;+ }+ if (NO_PROXY === "*") {+ return false;+ }+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {+ if (!proxy) {+ return true;+ }+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;+ if (parsedProxyPort && parsedProxyPort !== port) {+ return true;+ }+ if (!/^[.*]/.test(parsedProxyHostname)) {+ return hostname !== parsedProxyHostname;+ }+ if (parsedProxyHostname.charAt(0) === "*") {+ parsedProxyHostname = parsedProxyHostname.slice(1);+ }+ return !stringEndsWith.call(hostname, parsedProxyHostname);+ });+ }+ function getEnv(key) {+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";+ }+ exports.getProxyForUrl = getProxyForUrl;+});++// node_modules/ms/index.js+var require_ms = __commonJS((exports, module) => {+ var s = 1000;+ var m2 = s * 60;+ var h2 = m2 * 60;+ var d3 = h2 * 24;+ var w3 = d3 * 7;+ var y2 = d3 * 365.25;+ module.exports = function(val, options) {+ options = options || {};+ var type = typeof val;+ if (type === "string" && val.length > 0) {+ return parse(val);+ } else if (type === "number" && isFinite(val)) {+ return options.long ? fmtLong(val) : fmtShort(val);+ }+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));+ };+ function parse(str) {+ str = String(str);+ if (str.length > 100) {+ return;+ }+ 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(str);+ if (!match) {+ return;+ }+ var n = parseFloat(match[1]);+ var type = (match[2] || "ms").toLowerCase();+ switch (type) {+ case "years":+ case "year":+ case "yrs":+ case "yr":+ case "y":+ return n * y2;+ case "weeks":+ case "week":+ case "w":+ return n * w3;+ case "days":+ case "day":+ case "d":+ return n * d3;+ case "hours":+ case "hour":+ case "hrs":+ case "hr":+ case "h":+ return n * h2;+ case "minutes":+ case "minute":+ case "mins":+ case "min":+ case "m":+ return n * m2;+ case "seconds":+ case "second":+ case "secs":+ case "sec":+ case "s":+ return n * s;+ case "milliseconds":+ case "millisecond":+ case "msecs":+ case "msec":+ case "ms":+ return n;+ default:+ return;+ }+ }+ function fmtShort(ms) {+ var msAbs = Math.abs(ms);+ if (msAbs >= d3) {+ return Math.round(ms / d3) + "d";+ }+ if (msAbs >= h2) {+ return Math.round(ms / h2) + "h";+ }+ if (msAbs >= m2) {+ return Math.round(ms / m2) + "m";+ }+ if (msAbs >= s) {+ return Math.round(ms / s) + "s";+ }+ return ms + "ms";+ }+ function fmtLong(ms) {+ var msAbs = Math.abs(ms);+ if (msAbs >= d3) {+ return plural(ms, msAbs, d3, "day");+ }+ if (msAbs >= h2) {+ return plural(ms, msAbs, h2, "hour");+ }+ if (msAbs >= m2) {+ return plural(ms, msAbs, m2, "minute");+ }+ if (msAbs >= s) {+ return plural(ms, msAbs, s, "second");+ }+ return ms + " ms";+ }+ function plural(ms, msAbs, n, name) {+ var isPlural = msAbs >= n * 1.5;+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");+ }+});++// node_modules/debug/src/common.js+var require_common = __commonJS((exports, module) => {+ function setup(env2) {+ createDebug.debug = createDebug;+ createDebug.default = createDebug;+ createDebug.coerce = coerce2;+ createDebug.disable = disable;+ createDebug.enable = enable;+ createDebug.enabled = enabled;+ createDebug.humanize = require_ms();+ createDebug.destroy = destroy;+ Object.keys(env2).forEach((key) => {+ createDebug[key] = env2[key];+ });+ createDebug.names = [];+ createDebug.skips = [];+ createDebug.formatters = {};+ function selectColor(namespace) {+ let hash = 0;+ for (let i = 0;i < namespace.length; i++) {+ hash = (hash << 5) - hash + namespace.charCodeAt(i);+ hash |= 0;+ }+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];+ }+ createDebug.selectColor = selectColor;+ function createDebug(namespace) {+ let prevTime;+ let enableOverride = null;+ let namespacesCache;+ let enabledCache;+ function debug(...args) {+ if (!debug.enabled) {+ return;+ }+ const self2 = debug;+ const curr = Number(new Date);+ const ms = curr - (prevTime || curr);+ self2.diff = ms;+ self2.prev = prevTime;+ self2.curr = curr;+ prevTime = curr;+ args[0] = createDebug.coerce(args[0]);+ if (typeof args[0] !== "string") {+ args.unshift("%O");+ }+ let index = 0;+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {+ if (match === "%%") {+ return "%";+ }+ index++;+ const formatter = createDebug.formatters[format];+ if (typeof formatter === "function") {+ const val = args[index];+ match = formatter.call(self2, val);+ args.splice(index, 1);+ index--;+ }+ return match;+ });+ createDebug.formatArgs.call(self2, args);+ const logFn = self2.log || createDebug.log;+ logFn.apply(self2, args);+ }+ debug.namespace = namespace;+ debug.useColors = createDebug.useColors();+ debug.color = createDebug.selectColor(namespace);+ debug.extend = extend2;+ debug.destroy = createDebug.destroy;+ Object.defineProperty(debug, "enabled", {+ enumerable: true,+ configurable: false,+ get: () => {+ if (enableOverride !== null) {+ return enableOverride;+ }+ if (namespacesCache !== createDebug.namespaces) {+ namespacesCache = createDebug.namespaces;+ enabledCache = createDebug.enabled(namespace);+ }+ return enabledCache;+ },+ set: (v2) => {+ enableOverride = v2;+ }+ });+ if (typeof createDebug.init === "function") {+ createDebug.init(debug);+ }+ return debug;+ }+ function extend2(namespace, delimiter) {+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);+ newDebug.log = this.log;+ return newDebug;+ }+ function enable(namespaces) {+ createDebug.save(namespaces);+ createDebug.namespaces = namespaces;+ createDebug.names = [];+ createDebug.skips = [];+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);+ for (const ns of split) {+ if (ns[0] === "-") {+ createDebug.skips.push(ns.slice(1));+ } else {+ createDebug.names.push(ns);+ }+ }+ }+ function matchesTemplate(search, template) {+ let searchIndex = 0;+ let templateIndex = 0;+ let starIndex = -1;+ let matchIndex = 0;+ while (searchIndex < search.length) {+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {+ if (template[templateIndex] === "*") {+ starIndex = templateIndex;+ matchIndex = searchIndex;+ templateIndex++;+ } else {+ searchIndex++;+ templateIndex++;+ }+ } else if (starIndex !== -1) {+ templateIndex = starIndex + 1;+ matchIndex++;+ searchIndex = matchIndex;+ } else {+ return false;+ }+ }+ while (templateIndex < template.length && template[templateIndex] === "*") {+ templateIndex++;+ }+ return templateIndex === template.length;+ }+ function disable() {+ const namespaces = [+ ...createDebug.names,+ ...createDebug.skips.map((namespace) => "-" + namespace)+ ].join(",");+ createDebug.enable("");+ return namespaces;+ }+ function enabled(name) {+ for (const skip of createDebug.skips) {+ if (matchesTemplate(name, skip)) {+ return false;+ }+ }+ for (const ns of createDebug.names) {+ if (matchesTemplate(name, ns)) {+ return true;+ }+ }+ return false;+ }+ function coerce2(val) {+ if (val instanceof Error) {+ return val.stack || val.message;+ }+ return val;+ }+ function destroy() {+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");+ }+ createDebug.enable(createDebug.load());+ return createDebug;+ }+ module.exports = setup;+});++// node_modules/debug/src/browser.js+var require_browser = __commonJS((exports, module) => {+ exports.formatArgs = formatArgs;+ exports.save = save;+ exports.load = load;+ exports.useColors = useColors;+ exports.storage = localstorage();+ exports.destroy = (() => {+ let warned = false;+ return () => {+ if (!warned) {+ warned = true;+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");+ }+ };+ })();+ exports.colors = [+ "#0000CC",+ "#0000FF",+ "#0033CC",+ "#0033FF",+ "#0066CC",+ "#0066FF",+ "#0099CC",+ "#0099FF",+ "#00CC00",+ "#00CC33",+ "#00CC66",+ "#00CC99",+ "#00CCCC",+ "#00CCFF",+ "#3300CC",+ "#3300FF",+ "#3333CC",+ "#3333FF",+ "#3366CC",+ "#3366FF",+ "#3399CC",+ "#3399FF",+ "#33CC00",+ "#33CC33",+ "#33CC66",+ "#33CC99",+ "#33CCCC",+ "#33CCFF",+ "#6600CC",+ "#6600FF",+ "#6633CC",+ "#6633FF",+ "#66CC00",+ "#66CC33",+ "#9900CC",+ "#9900FF",+ "#9933CC",+ "#9933FF",+ "#99CC00",+ "#99CC33",+ "#CC0000",+ "#CC0033",+ "#CC0066",+ "#CC0099",+ "#CC00CC",+ "#CC00FF",+ "#CC3300",+ "#CC3333",+ "#CC3366",+ "#CC3399",+ "#CC33CC",+ "#CC33FF",+ "#CC6600",+ "#CC6633",+ "#CC9900",+ "#CC9933",+ "#CCCC00",+ "#CCCC33",+ "#FF0000",+ "#FF0033",+ "#FF0066",+ "#FF0099",+ "#FF00CC",+ "#FF00FF",+ "#FF3300",+ "#FF3333",+ "#FF3366",+ "#FF3399",+ "#FF33CC",+ "#FF33FF",+ "#FF6600",+ "#FF6633",+ "#FF9900",+ "#FF9933",+ "#FFCC00",+ "#FFCC33"+ ];+ function useColors() {+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {+ return true;+ }+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {+ return false;+ }+ let m2;+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m2 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m2[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);+ }+ function formatArgs(args) {+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);+ if (!this.useColors) {+ return;+ }+ const c2 = "color: " + this.color;+ args.splice(1, 0, c2, "color: inherit");+ let index = 0;+ let lastC = 0;+ args[0].replace(/%[a-zA-Z%]/g, (match) => {+ if (match === "%%") {+ return;+ }+ index++;+ if (match === "%c") {+ lastC = index;+ }+ });+ args.splice(lastC, 0, c2);+ }+ exports.log = console.debug || console.log || (() => {+ });+ function save(namespaces) {+ try {+ if (namespaces) {+ exports.storage.setItem("debug", namespaces);+ } else {+ exports.storage.removeItem("debug");+ }+ } catch (error) {+ }+ }+ function load() {+ let r2;+ try {+ r2 = exports.storage.getItem("debug");+ } catch (error) {+ }+ if (!r2 && typeof process !== "undefined" && "env" in process) {+ r2 = process.env.DEBUG;+ }+ return r2;+ }+ function localstorage() {+ try {+ return localStorage;+ } catch (error) {+ }+ }+ module.exports = require_common()(exports);+ var { formatters } = module.exports;+ formatters.j = function(v2) {+ try {+ return JSON.stringify(v2);+ } catch (error) {+ return "[UnexpectedJSONParseError]: " + error.message;+ }+ };+});++// node_modules/debug/src/node.js+var require_node2 = __commonJS((exports, module) => {+ var tty2 = __require("tty");+ var util2 = __require("util");+ exports.init = init2;+ exports.log = log;+ exports.formatArgs = formatArgs;+ exports.save = save;+ exports.load = load;+ exports.useColors = useColors;+ exports.destroy = util2.deprecate(() => {+ }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");+ exports.colors = [6, 2, 3, 4, 5, 1];+ try {+ const supportsColor2 = (()=>{throw new Error("Cannot require module "+"supports-color");})();+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {+ exports.colors = [+ 20,+ 21,+ 26,+ 27,+ 32,+ 33,+ 38,+ 39,+ 40,+ 41,+ 42,+ 43,+ 44,+ 45,+ 56,+ 57,+ 62,+ 63,+ 68,+ 69,+ 74,+ 75,+ 76,+ 77,+ 78,+ 79,+ 80,+ 81,+ 92,+ 93,+ 98,+ 99,+ 112,+ 113,+ 128,+ 129,+ 134,+ 135,+ 148,+ 149,+ 160,+ 161,+ 162,+ 163,+ 164,+ 165,+ 166,+ 167,+ 168,+ 169,+ 170,+ 171,+ 172,+ 173,+ 178,+ 179,+ 184,+ 185,+ 196,+ 197,+ 198,+ 199,+ 200,+ 201,+ 202,+ 203,+ 204,+ 205,+ 206,+ 207,+ 208,+ 209,+ 214,+ 215,+ 220,+ 221+ ];+ }+ } catch (error) {+ }+ exports.inspectOpts = Object.keys(process.env).filter((key) => {+ return /^debug_/i.test(key);+ }).reduce((obj, key) => {+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_4, k3) => {+ return k3.toUpperCase();+ });+ let val = process.env[key];+ if (/^(yes|on|true|enabled)$/i.test(val)) {+ val = true;+ } else if (/^(no|off|false|disabled)$/i.test(val)) {+ val = false;+ } else if (val === "null") {+ val = null;+ } else {+ val = Number(val);+ }+ obj[prop] = val;+ return obj;+ }, {});+ function useColors() {+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);+ }+ function formatArgs(args) {+ const { namespace: name, useColors: useColors2 } = this;+ if (useColors2) {+ const c2 = this.color;+ const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;+ args[0] = prefix + args[0].split(`+`).join(`+` + prefix);+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");+ } else {+ args[0] = getDate() + name + " " + args[0];+ }+ }+ function getDate() {+ if (exports.inspectOpts.hideDate) {+ return "";+ }+ return new Date().toISOString() + " ";+ }+ function log(...args) {+ return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + `+`);+ }+ function save(namespaces) {+ if (namespaces) {+ process.env.DEBUG = namespaces;+ } else {+ delete process.env.DEBUG;+ }+ }+ function load() {+ return process.env.DEBUG;+ }+ function init2(debug) {+ debug.inspectOpts = {};+ const keys = Object.keys(exports.inspectOpts);+ for (let i = 0;i < keys.length; i++) {+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];+ }+ }+ module.exports = require_common()(exports);+ var { formatters } = module.exports;+ formatters.o = function(v2) {+ this.inspectOpts.colors = this.useColors;+ return util2.inspect(v2, this.inspectOpts).split(`+`).map((str) => str.trim()).join(" ");+ };+ formatters.O = function(v2) {+ this.inspectOpts.colors = this.useColors;+ return util2.inspect(v2, this.inspectOpts);+ };+});++// node_modules/debug/src/index.js+var require_src2 = __commonJS((exports, module) => {+ if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {+ module.exports = require_browser();+ } else {+ module.exports = require_node2();+ }+});++// node_modules/follow-redirects/debug.js+var require_debug = __commonJS((exports, module) => {+ var debug;+ module.exports = function() {+ if (!debug) {+ try {+ debug = require_src2()("follow-redirects");+ } catch (error) {+ }+ if (typeof debug !== "function") {+ debug = function() {+ };+ }+ }+ debug.apply(null, arguments);+ };+});++// node_modules/follow-redirects/index.js+var require_follow_redirects = __commonJS((exports, module) => {+ var url3 = __require("url");+ var URL2 = url3.URL;+ var http2 = __require("http");+ var https = __require("https");+ var Writable = __require("stream").Writable;+ var assert = __require("assert");+ var debug = require_debug();+ (function detectUnsupportedEnvironment() {+ var looksLikeNode = typeof process !== "undefined";+ var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";+ var looksLikeV8 = isFunction2(Error.captureStackTrace);+ if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {+ console.warn("The follow-redirects package should be excluded from browser builds.");+ }+ })();+ var useNativeURL = false;+ try {+ assert(new URL2(""));+ } catch (error) {+ useNativeURL = error.code === "ERR_INVALID_URL";+ }+ var preservedUrlFields = [+ "auth",+ "host",+ "hostname",+ "href",+ "path",+ "pathname",+ "port",+ "protocol",+ "query",+ "search",+ "hash"+ ];+ var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];+ var eventHandlers = Object.create(null);+ events.forEach(function(event) {+ eventHandlers[event] = function(arg1, arg2, arg3) {+ this._redirectable.emit(event, arg1, arg2, arg3);+ };+ });+ var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);+ var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");+ var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded", RedirectionError);+ var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");+ var WriteAfterEndError = createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");+ var destroy = Writable.prototype.destroy || noop2;+ function RedirectableRequest(options, responseCallback) {+ Writable.call(this);+ this._sanitizeOptions(options);+ this._options = options;+ this._ended = false;+ this._ending = false;+ this._redirectCount = 0;+ this._redirects = [];+ this._requestBodyLength = 0;+ this._requestBodyBuffers = [];+ if (responseCallback) {+ this.on("response", responseCallback);+ }+ var self2 = this;+ this._onNativeResponse = function(response) {+ try {+ self2._processResponse(response);+ } catch (cause) {+ self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));+ }+ };+ this._performRequest();+ }+ RedirectableRequest.prototype = Object.create(Writable.prototype);+ RedirectableRequest.prototype.abort = function() {+ destroyRequest(this._currentRequest);+ this._currentRequest.abort();+ this.emit("abort");+ };+ RedirectableRequest.prototype.destroy = function(error) {+ destroyRequest(this._currentRequest, error);+ destroy.call(this, error);+ return this;+ };+ RedirectableRequest.prototype.write = function(data, encoding, callback) {+ if (this._ending) {+ throw new WriteAfterEndError;+ }+ if (!isString2(data) && !isBuffer2(data)) {+ throw new TypeError("data should be a string, Buffer or Uint8Array");+ }+ if (isFunction2(encoding)) {+ callback = encoding;+ encoding = null;+ }+ if (data.length === 0) {+ if (callback) {+ callback();+ }+ return;+ }+ if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {+ this._requestBodyLength += data.length;+ this._requestBodyBuffers.push({ data, encoding });+ this._currentRequest.write(data, encoding, callback);+ } else {+ this.emit("error", new MaxBodyLengthExceededError);+ this.abort();+ }+ };+ RedirectableRequest.prototype.end = function(data, encoding, callback) {+ if (isFunction2(data)) {+ callback = data;+ data = encoding = null;+ } else if (isFunction2(encoding)) {+ callback = encoding;+ encoding = null;+ }+ if (!data) {+ this._ended = this._ending = true;+ this._currentRequest.end(null, null, callback);+ } else {+ var self2 = this;+ var currentRequest = this._currentRequest;+ this.write(data, encoding, function() {+ self2._ended = true;+ currentRequest.end(null, null, callback);+ });+ this._ending = true;+ }+ };+ RedirectableRequest.prototype.setHeader = function(name, value) {+ this._options.headers[name] = value;+ this._currentRequest.setHeader(name, value);+ };+ RedirectableRequest.prototype.removeHeader = function(name) {+ delete this._options.headers[name];+ this._currentRequest.removeHeader(name);+ };+ RedirectableRequest.prototype.setTimeout = function(msecs, callback) {+ var self2 = this;+ function destroyOnTimeout(socket) {+ socket.setTimeout(msecs);+ socket.removeListener("timeout", socket.destroy);+ socket.addListener("timeout", socket.destroy);+ }+ function startTimer(socket) {+ if (self2._timeout) {+ clearTimeout(self2._timeout);+ }+ self2._timeout = setTimeout(function() {+ self2.emit("timeout");+ clearTimer();+ }, msecs);+ destroyOnTimeout(socket);+ }+ function clearTimer() {+ if (self2._timeout) {+ clearTimeout(self2._timeout);+ self2._timeout = null;+ }+ self2.removeListener("abort", clearTimer);+ self2.removeListener("error", clearTimer);+ self2.removeListener("response", clearTimer);+ self2.removeListener("close", clearTimer);+ if (callback) {+ self2.removeListener("timeout", callback);+ }+ if (!self2.socket) {+ self2._currentRequest.removeListener("socket", startTimer);+ }+ }+ if (callback) {+ this.on("timeout", callback);+ }+ if (this.socket) {+ startTimer(this.socket);+ } else {+ this._currentRequest.once("socket", startTimer);+ }+ this.on("socket", destroyOnTimeout);+ this.on("abort", clearTimer);+ this.on("error", clearTimer);+ this.on("response", clearTimer);+ this.on("close", clearTimer);+ return this;+ };+ [+ "flushHeaders",+ "getHeader",+ "setNoDelay",+ "setSocketKeepAlive"+ ].forEach(function(method) {+ RedirectableRequest.prototype[method] = function(a, b2) {+ return this._currentRequest[method](a, b2);+ };+ });+ ["aborted", "connection", "socket"].forEach(function(property) {+ Object.defineProperty(RedirectableRequest.prototype, property, {+ get: function() {+ return this._currentRequest[property];+ }+ });+ });+ RedirectableRequest.prototype._sanitizeOptions = function(options) {+ if (!options.headers) {+ options.headers = {};+ }+ if (options.host) {+ if (!options.hostname) {+ options.hostname = options.host;+ }+ delete options.host;+ }+ if (!options.pathname && options.path) {+ var searchPos = options.path.indexOf("?");+ if (searchPos < 0) {+ options.pathname = options.path;+ } else {+ options.pathname = options.path.substring(0, searchPos);+ options.search = options.path.substring(searchPos);+ }+ }+ };+ RedirectableRequest.prototype._performRequest = function() {+ var protocol = this._options.protocol;+ var nativeProtocol = this._options.nativeProtocols[protocol];+ if (!nativeProtocol) {+ throw new TypeError("Unsupported protocol " + protocol);+ }+ if (this._options.agents) {+ var scheme = protocol.slice(0, -1);+ this._options.agent = this._options.agents[scheme];+ }+ var request = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse);+ request._redirectable = this;+ for (var event of events) {+ request.on(event, eventHandlers[event]);+ }+ this._currentUrl = /^\//.test(this._options.path) ? url3.format(this._options) : this._options.path;+ if (this._isRedirect) {+ var i = 0;+ var self2 = this;+ var buffers = this._requestBodyBuffers;+ (function writeNext(error) {+ if (request === self2._currentRequest) {+ if (error) {+ self2.emit("error", error);+ } else if (i < buffers.length) {+ var buffer = buffers[i++];+ if (!request.finished) {+ request.write(buffer.data, buffer.encoding, writeNext);+ }+ } else if (self2._ended) {+ request.end();+ }+ }+ })();+ }+ };+ RedirectableRequest.prototype._processResponse = function(response) {+ var statusCode = response.statusCode;+ if (this._options.trackRedirects) {+ this._redirects.push({+ url: this._currentUrl,+ headers: response.headers,+ statusCode+ });+ }+ var location = response.headers.location;+ if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {+ response.responseUrl = this._currentUrl;+ response.redirects = this._redirects;+ this.emit("response", response);+ this._requestBodyBuffers = [];+ return;+ }+ destroyRequest(this._currentRequest);+ response.destroy();+ if (++this._redirectCount > this._options.maxRedirects) {+ throw new TooManyRedirectsError;+ }+ var requestHeaders;+ var beforeRedirect = this._options.beforeRedirect;+ if (beforeRedirect) {+ requestHeaders = Object.assign({+ Host: response.req.getHeader("host")+ }, this._options.headers);+ }+ var method = this._options.method;+ if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {+ this._options.method = "GET";+ this._requestBodyBuffers = [];+ removeMatchingHeaders(/^content-/i, this._options.headers);+ }+ var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);+ var currentUrlParts = parseUrl(this._currentUrl);+ var currentHost = currentHostHeader || currentUrlParts.host;+ var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url3.format(Object.assign(currentUrlParts, { host: currentHost }));+ var redirectUrl = resolveUrl(location, currentUrl);+ debug("redirecting to", redirectUrl.href);+ this._isRedirect = true;+ spreadUrlObject(redirectUrl, this._options);+ if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);+ }+ if (isFunction2(beforeRedirect)) {+ var responseDetails = {+ headers: response.headers,+ statusCode+ };+ var requestDetails = {+ url: currentUrl,+ method,+ headers: requestHeaders+ };+ beforeRedirect(this._options, responseDetails, requestDetails);+ this._sanitizeOptions(this._options);+ }+ this._performRequest();+ };+ function wrap(protocols) {+ var exports2 = {+ maxRedirects: 21,+ maxBodyLength: 10 * 1024 * 1024+ };+ var nativeProtocols = {};+ Object.keys(protocols).forEach(function(scheme) {+ var protocol = scheme + ":";+ var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];+ var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);+ function request(input, options, callback) {+ if (isURL(input)) {+ input = spreadUrlObject(input);+ } else if (isString2(input)) {+ input = spreadUrlObject(parseUrl(input));+ } else {+ callback = options;+ options = validateUrl(input);+ input = { protocol };+ }+ if (isFunction2(options)) {+ callback = options;+ options = null;+ }+ options = Object.assign({+ maxRedirects: exports2.maxRedirects,+ maxBodyLength: exports2.maxBodyLength+ }, input, options);+ options.nativeProtocols = nativeProtocols;+ if (!isString2(options.host) && !isString2(options.hostname)) {+ options.hostname = "::1";+ }+ assert.equal(options.protocol, protocol, "protocol mismatch");+ debug("options", options);+ return new RedirectableRequest(options, callback);+ }+ function get(input, options, callback) {+ var wrappedRequest = wrappedProtocol.request(input, options, callback);+ wrappedRequest.end();+ return wrappedRequest;+ }+ Object.defineProperties(wrappedProtocol, {+ request: { value: request, configurable: true, enumerable: true, writable: true },+ get: { value: get, configurable: true, enumerable: true, writable: true }+ });+ });+ return exports2;+ }+ function noop2() {+ }+ function parseUrl(input) {+ var parsed;+ if (useNativeURL) {+ parsed = new URL2(input);+ } else {+ parsed = validateUrl(url3.parse(input));+ if (!isString2(parsed.protocol)) {+ throw new InvalidUrlError({ input });+ }+ }+ return parsed;+ }+ function resolveUrl(relative, base) {+ return useNativeURL ? new URL2(relative, base) : parseUrl(url3.resolve(base, relative));+ }+ function validateUrl(input) {+ if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {+ throw new InvalidUrlError({ input: input.href || input });+ }+ if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {+ throw new InvalidUrlError({ input: input.href || input });+ }+ return input;+ }+ function spreadUrlObject(urlObject, target) {+ var spread = target || {};+ for (var key of preservedUrlFields) {+ spread[key] = urlObject[key];+ }+ if (spread.hostname.startsWith("[")) {+ spread.hostname = spread.hostname.slice(1, -1);+ }+ if (spread.port !== "") {+ spread.port = Number(spread.port);+ }+ spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;+ return spread;+ }+ function removeMatchingHeaders(regex2, headers) {+ var lastValue;+ for (var header in headers) {+ if (regex2.test(header)) {+ lastValue = headers[header];+ delete headers[header];+ }+ }+ return lastValue === null || typeof lastValue === "undefined" ? undefined : String(lastValue).trim();+ }+ function createErrorType(code, message, baseClass) {+ function CustomError(properties) {+ if (isFunction2(Error.captureStackTrace)) {+ Error.captureStackTrace(this, this.constructor);+ }+ Object.assign(this, properties || {});+ this.code = code;+ this.message = this.cause ? message + ": " + this.cause.message : message;+ }+ CustomError.prototype = new (baseClass || Error);+ Object.defineProperties(CustomError.prototype, {+ constructor: {+ value: CustomError,+ enumerable: false+ },+ name: {+ value: "Error [" + code + "]",+ enumerable: false+ }+ });+ return CustomError;+ }+ function destroyRequest(request, error) {+ for (var event of events) {+ request.removeListener(event, eventHandlers[event]);+ }+ request.on("error", noop2);+ request.destroy(error);+ }+ function isSubdomain(subdomain, domain) {+ assert(isString2(subdomain) && isString2(domain));+ var dot = subdomain.length - domain.length - 1;+ return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);+ }+ function isString2(value) {+ return typeof value === "string" || value instanceof String;+ }+ function isFunction2(value) {+ return typeof value === "function";+ }+ function isBuffer2(value) {+ return typeof value === "object" && "length" in value;+ }+ function isURL(value) {+ return URL2 && value instanceof URL2;+ }+ module.exports = wrap({ http: http2, https });+ module.exports.wrap = wrap;+});++// node_modules/universalify/index.js+var require_universalify = __commonJS((exports) => {+ exports.fromCallback = function(fn) {+ return Object.defineProperty(function(...args) {+ if (typeof args[args.length - 1] === "function")+ fn.apply(this, args);+ else {+ return new Promise((resolve, reject) => {+ args.push((err, res) => err != null ? reject(err) : resolve(res));+ fn.apply(this, args);+ });+ }+ }, "name", { value: fn.name });+ };+ exports.fromPromise = function(fn) {+ return Object.defineProperty(function(...args) {+ const cb = args[args.length - 1];+ if (typeof cb !== "function")+ return fn.apply(this, args);+ else {+ args.pop();+ fn.apply(this, args).then((r2) => cb(null, r2), cb);+ }+ }, "name", { value: fn.name });+ };+});++// node_modules/fs-extra/lib/fs/index.js+var require_fs = __commonJS((exports) => {+ var u2 = require_universalify().fromCallback;+ var fs4 = require_graceful_fs();+ var api = [+ "access",+ "appendFile",+ "chmod",+ "chown",+ "close",+ "copyFile",+ "cp",+ "fchmod",+ "fchown",+ "fdatasync",+ "fstat",+ "fsync",+ "ftruncate",+ "futimes",+ "glob",+ "lchmod",+ "lchown",+ "lutimes",+ "link",+ "lstat",+ "mkdir",+ "mkdtemp",+ "open",+ "opendir",+ "readdir",+ "readFile",+ "readlink",+ "realpath",+ "rename",+ "rm",+ "rmdir",+ "stat",+ "statfs",+ "symlink",+ "truncate",+ "unlink",+ "utimes",+ "writeFile"+ ].filter((key) => {+ return typeof fs4[key] === "function";+ });+ Object.assign(exports, fs4);+ api.forEach((method) => {+ exports[method] = u2(fs4[method]);+ });+ exports.exists = function(filename, callback) {+ if (typeof callback === "function") {+ return fs4.exists(filename, callback);+ }+ return new Promise((resolve) => {+ return fs4.exists(filename, resolve);+ });+ };+ exports.read = function(fd, buffer, offset, length, position, callback) {+ if (typeof callback === "function") {+ return fs4.read(fd, buffer, offset, length, position, callback);+ }+ return new Promise((resolve, reject) => {+ fs4.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {+ if (err)+ return reject(err);+ resolve({ bytesRead, buffer: buffer2 });+ });+ });};-});--// node_modules/jsonfile/utils.js-var require_utils3 = __commonJS((exports, module) => {- function stringify(obj, { EOL = `-`, finalEOL = true, replacer = null, spaces } = {}) {- const EOF = finalEOL ? EOL : "";- const str = JSON.stringify(obj, replacer, spaces);- return str.replace(/\n/g, EOL) + EOF;- }- function stripBom(content) {- if (Buffer.isBuffer(content))- content = content.toString("utf8");- return content.replace(/^\uFEFF/, "");- }- module.exports = { stringify, stripBom };-});--// node_modules/jsonfile/index.js-var require_jsonfile = __commonJS((exports, module) => {- var _fs;- try {- _fs = require_graceful_fs();- } catch (_4) {- _fs = __require("fs");- }- var universalify = require_universalify();- var { stringify, stripBom } = require_utils3();- async function _readFile(file, options = {}) {- if (typeof options === "string") {- options = { encoding: options };+ exports.write = function(fd, buffer, ...args) {+ if (typeof args[args.length - 1] === "function") {+ return fs4.write(fd, buffer, ...args);}- const fs4 = options.fs || _fs;- const shouldThrow = "throws" in options ? options.throws : true;- let data = await universalify.fromCallback(fs4.readFile)(file, options);- data = stripBom(data);- let obj;- try {- obj = JSON.parse(data, options ? options.reviver : null);- } catch (err) {- if (shouldThrow) {- err.message = `${file}: ${err.message}`;- throw err;- } else {- return null;- }+ return new Promise((resolve, reject) => {+ fs4.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {+ if (err)+ return reject(err);+ resolve({ bytesWritten, buffer: buffer2 });+ });+ });+ };+ exports.readv = function(fd, buffers, ...args) {+ if (typeof args[args.length - 1] === "function") {+ return fs4.readv(fd, buffers, ...args);}- return obj;- }- var readFile = universalify.fromPromise(_readFile);- function readFileSync(file, options = {}) {- if (typeof options === "string") {- options = { encoding: options };+ return new Promise((resolve, reject) => {+ fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {+ if (err)+ return reject(err);+ resolve({ bytesRead, buffers: buffers2 });+ });+ });+ };+ exports.writev = function(fd, buffers, ...args) {+ if (typeof args[args.length - 1] === "function") {+ return fs4.writev(fd, buffers, ...args);}- const fs4 = options.fs || _fs;- const shouldThrow = "throws" in options ? options.throws : true;- try {- let content = fs4.readFileSync(file, options);- content = stripBom(content);- return JSON.parse(content, options.reviver);- } catch (err) {- if (shouldThrow) {- err.message = `${file}: ${err.message}`;- throw err;- } else {- return null;+ return new Promise((resolve, reject) => {+ fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {+ if (err)+ return reject(err);+ resolve({ bytesWritten, buffers: buffers2 });+ });+ });+ };+ if (typeof fs4.realpath.native === "function") {+ exports.realpath.native = u2(fs4.realpath.native);+ } else {+ process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");+ }+});++// node_modules/fs-extra/lib/mkdirs/utils.js+var require_utils2 = __commonJS((exports, module) => {+ var path3 = __require("path");+ exports.checkPath = function checkPath(pth) {+ if (process.platform === "win32") {+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));+ if (pathHasInvalidWinCharacters) {+ const error = new Error(`Path contains invalid characters: ${pth}`);+ error.code = "EINVAL";+ throw error;}}- }- async function _writeFile(file, obj, options = {}) {- const fs4 = options.fs || _fs;- const str = stringify(obj, options);- await universalify.fromCallback(fs4.writeFile)(file, str, options);- }- var writeFile = universalify.fromPromise(_writeFile);- function writeFileSync(file, obj, options = {}) {- const fs4 = options.fs || _fs;- const str = stringify(obj, options);- return fs4.writeFileSync(file, str, options);- }- var jsonfile = {- readFile,- readFileSync,- writeFile,- writeFileSync};- module.exports = jsonfile;});-// node_modules/fs-extra/lib/json/jsonfile.js-var require_jsonfile2 = __commonJS((exports, module) => {- var jsonFile = require_jsonfile();+// node_modules/fs-extra/lib/mkdirs/make-dir.js+var require_make_dir = __commonJS((exports, module) => {+ var fs4 = require_fs();+ var { checkPath } = require_utils2();+ var getMode = (options) => {+ const defaults2 = { mode: 511 };+ if (typeof options === "number")+ return options;+ return { ...defaults2, ...options }.mode;+ };+ exports.makeDir = async (dir, options) => {+ checkPath(dir);+ return fs4.mkdir(dir, {+ mode: getMode(options),+ recursive: true+ });+ };+ exports.makeDirSync = (dir, options) => {+ checkPath(dir);+ return fs4.mkdirSync(dir, {+ mode: getMode(options),+ recursive: true+ });+ };+});++// node_modules/fs-extra/lib/mkdirs/index.js+var require_mkdirs = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var { makeDir: _makeDir, makeDirSync } = require_make_dir();+ var makeDir = u2(_makeDir);module.exports = {- readJson: jsonFile.readFile,- readJsonSync: jsonFile.readFileSync,- writeJson: jsonFile.writeFile,- writeJsonSync: jsonFile.writeFileSync+ mkdirs: makeDir,+ mkdirsSync: makeDirSync,+ mkdirp: makeDir,+ mkdirpSync: makeDirSync,+ ensureDir: makeDir,+ ensureDirSync: makeDirSync};});-// node_modules/fs-extra/lib/output-file/index.js-var require_output_file = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/path-exists/index.js+var require_path_exists = __commonJS((exports, module) => {var u2 = require_universalify().fromPromise;var fs4 = require_fs();- var path3 = __require("path");- var mkdir = require_mkdirs();- var pathExists = require_path_exists().pathExists;- async function outputFile(file, data, encoding = "utf-8") {- const dir = path3.dirname(file);- if (!await pathExists(dir)) {- await mkdir.mkdirs(dir);- }- return fs4.writeFile(file, data, encoding);- }- function outputFileSync(file, ...args) {- const dir = path3.dirname(file);- if (!fs4.existsSync(dir)) {- mkdir.mkdirsSync(dir);- }- fs4.writeFileSync(file, ...args);+ function pathExists(path3) {+ return fs4.access(path3).then(() => true).catch(() => false);}module.exports = {- outputFile: u2(outputFile),- outputFileSync+ pathExists: u2(pathExists),+ pathExistsSync: fs4.existsSync};});-// node_modules/fs-extra/lib/json/output-json.js-var require_output_json = __commonJS((exports, module) => {- var { stringify } = require_utils3();- var { outputFile } = require_output_file();- async function outputJson(file, data, options = {}) {- const str = stringify(data, options);- await outputFile(file, str, options);+// node_modules/fs-extra/lib/util/utimes.js+var require_utimes = __commonJS((exports, module) => {+ var fs4 = require_fs();+ var u2 = require_universalify().fromPromise;+ async function utimesMillis(path3, atime, mtime) {+ const fd = await fs4.open(path3, "r+");+ let closeErr = null;+ try {+ await fs4.futimes(fd, atime, mtime);+ } finally {+ try {+ await fs4.close(fd);+ } catch (e2) {+ closeErr = e2;+ }+ }+ if (closeErr) {+ throw closeErr;+ }}- module.exports = outputJson;-});--// node_modules/fs-extra/lib/json/output-json-sync.js-var require_output_json_sync = __commonJS((exports, module) => {- var { stringify } = require_utils3();- var { outputFileSync } = require_output_file();- function outputJsonSync(file, data, options) {- const str = stringify(data, options);- outputFileSync(file, str, options);+ function utimesMillisSync(path3, atime, mtime) {+ const fd = fs4.openSync(path3, "r+");+ fs4.futimesSync(fd, atime, mtime);+ return fs4.closeSync(fd);}- module.exports = outputJsonSync;+ module.exports = {+ utimesMillis: u2(utimesMillis),+ utimesMillisSync+ };});-// node_modules/fs-extra/lib/json/index.js-var require_json2 = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/util/stat.js+var require_stat = __commonJS((exports, module) => {+ var fs4 = require_fs();+ var path3 = __require("path");var u2 = require_universalify().fromPromise;- var jsonFile = require_jsonfile2();- jsonFile.outputJson = u2(require_output_json());- jsonFile.outputJsonSync = require_output_json_sync();- jsonFile.outputJSON = jsonFile.outputJson;- jsonFile.outputJSONSync = jsonFile.outputJsonSync;- jsonFile.writeJSON = jsonFile.writeJson;- jsonFile.writeJSONSync = jsonFile.writeJsonSync;- jsonFile.readJSON = jsonFile.readJson;- jsonFile.readJSONSync = jsonFile.readJsonSync;- module.exports = jsonFile;+ function getStats(src, dest, opts) {+ const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true });+ return Promise.all([+ statFunc(src),+ statFunc(dest).catch((err) => {+ if (err.code === "ENOENT")+ return null;+ throw err;+ })+ ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));+ }+ function getStatsSync(src, dest, opts) {+ let destStat;+ const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true });+ const srcStat = statFunc(src);+ try {+ destStat = statFunc(dest);+ } catch (err) {+ if (err.code === "ENOENT")+ return { srcStat, destStat: null };+ throw err;+ }+ return { srcStat, destStat };+ }+ async function checkPaths(src, dest, funcName, opts) {+ const { srcStat, destStat } = await getStats(src, dest, opts);+ if (destStat) {+ if (areIdentical(srcStat, destStat)) {+ const srcBaseName = path3.basename(src);+ const destBaseName = path3.basename(dest);+ if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {+ return { srcStat, destStat, isChangingCase: true };+ }+ throw new Error("Source and destination must not be the same.");+ }+ if (srcStat.isDirectory() && !destStat.isDirectory()) {+ throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);+ }+ if (!srcStat.isDirectory() && destStat.isDirectory()) {+ throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);+ }+ }+ if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {+ throw new Error(errMsg(src, dest, funcName));+ }+ return { srcStat, destStat };+ }+ function checkPathsSync(src, dest, funcName, opts) {+ const { srcStat, destStat } = getStatsSync(src, dest, opts);+ if (destStat) {+ if (areIdentical(srcStat, destStat)) {+ const srcBaseName = path3.basename(src);+ const destBaseName = path3.basename(dest);+ if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {+ return { srcStat, destStat, isChangingCase: true };+ }+ throw new Error("Source and destination must not be the same.");+ }+ if (srcStat.isDirectory() && !destStat.isDirectory()) {+ throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);+ }+ if (!srcStat.isDirectory() && destStat.isDirectory()) {+ throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);+ }+ }+ if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {+ throw new Error(errMsg(src, dest, funcName));+ }+ return { srcStat, destStat };+ }+ async function checkParentPaths(src, srcStat, dest, funcName) {+ const srcParent = path3.resolve(path3.dirname(src));+ const destParent = path3.resolve(path3.dirname(dest));+ if (destParent === srcParent || destParent === path3.parse(destParent).root)+ return;+ let destStat;+ try {+ destStat = await fs4.stat(destParent, { bigint: true });+ } catch (err) {+ if (err.code === "ENOENT")+ return;+ throw err;+ }+ if (areIdentical(srcStat, destStat)) {+ throw new Error(errMsg(src, dest, funcName));+ }+ return checkParentPaths(src, srcStat, destParent, funcName);+ }+ function checkParentPathsSync(src, srcStat, dest, funcName) {+ const srcParent = path3.resolve(path3.dirname(src));+ const destParent = path3.resolve(path3.dirname(dest));+ if (destParent === srcParent || destParent === path3.parse(destParent).root)+ return;+ let destStat;+ try {+ destStat = fs4.statSync(destParent, { bigint: true });+ } catch (err) {+ if (err.code === "ENOENT")+ return;+ throw err;+ }+ if (areIdentical(srcStat, destStat)) {+ throw new Error(errMsg(src, dest, funcName));+ }+ return checkParentPathsSync(src, srcStat, destParent, funcName);+ }+ function areIdentical(srcStat, destStat) {+ return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;+ }+ function isSrcSubdir(src, dest) {+ const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);+ const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);+ return srcArr.every((cur, i) => destArr[i] === cur);+ }+ function errMsg(src, dest, funcName) {+ return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;+ }+ module.exports = {+ checkPaths: u2(checkPaths),+ checkPathsSync,+ checkParentPaths: u2(checkParentPaths),+ checkParentPathsSync,+ isSrcSubdir,+ areIdentical+ };});-// node_modules/fs-extra/lib/move/move.js-var require_move = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/copy/copy.js+var require_copy = __commonJS((exports, module) => {var fs4 = require_fs();var path3 = __require("path");- var { copy } = require_copy2();- var { remove } = require_remove();- var { mkdirp } = require_mkdirs();+ var { mkdirs } = require_mkdirs();var { pathExists } = require_path_exists();+ var { utimesMillis } = require_utimes();var stat = require_stat();- async function move(src, dest, opts = {}) {- const overwrite = opts.overwrite || opts.clobber || false;- const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);- await stat.checkParentPaths(src, srcStat, dest, "move");+ async function copy(src, dest, opts = {}) {+ if (typeof opts === "function") {+ opts = { filter: opts };+ }+ opts.clobber = "clobber" in opts ? !!opts.clobber : true;+ opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;+ if (opts.preserveTimestamps && process.arch === "ia32") {+ process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;++` + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");+ }+ const { srcStat, destStat } = await stat.checkPaths(src, dest, "copy", opts);+ await stat.checkParentPaths(src, srcStat, dest, "copy");+ const include = await runFilter(src, dest, opts);+ if (!include)+ return;const destParent = path3.dirname(dest);- const parsedParentPath = path3.parse(destParent);- if (parsedParentPath.root !== destParent) {- await mkdirp(destParent);+ const dirExists = await pathExists(destParent);+ if (!dirExists) {+ await mkdirs(destParent);}- return doRename(src, dest, overwrite, isChangingCase);+ await getStatsAndPerformCopy(destStat, src, dest, opts);}- async function doRename(src, dest, overwrite, isChangingCase) {- if (!isChangingCase) {- if (overwrite) {- await remove(dest);- } else if (await pathExists(dest)) {- throw new Error("dest already exists.");+ async function runFilter(src, dest, opts) {+ if (!opts.filter)+ return true;+ return opts.filter(src, dest);+ }+ async function getStatsAndPerformCopy(destStat, src, dest, opts) {+ const statFn = opts.dereference ? fs4.stat : fs4.lstat;+ const srcStat = await statFn(src);+ if (srcStat.isDirectory())+ return onDir(srcStat, destStat, src, dest, opts);+ if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())+ return onFile(srcStat, destStat, src, dest, opts);+ if (srcStat.isSymbolicLink())+ return onLink(destStat, src, dest, opts);+ if (srcStat.isSocket())+ throw new Error(`Cannot copy a socket file: ${src}`);+ if (srcStat.isFIFO())+ throw new Error(`Cannot copy a FIFO pipe: ${src}`);+ throw new Error(`Unknown file: ${src}`);+ }+ async function onFile(srcStat, destStat, src, dest, opts) {+ if (!destStat)+ return copyFile(srcStat, src, dest, opts);+ if (opts.overwrite) {+ await fs4.unlink(dest);+ return copyFile(srcStat, src, dest, opts);+ }+ if (opts.errorOnExist) {+ throw new Error(`'${dest}' already exists`);+ }+ }+ async function copyFile(srcStat, src, dest, opts) {+ await fs4.copyFile(src, dest);+ if (opts.preserveTimestamps) {+ if (fileIsNotWritable(srcStat.mode)) {+ await makeFileWritable(dest, srcStat.mode);}+ const updatedSrcStat = await fs4.stat(src);+ await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);+ }+ return fs4.chmod(dest, srcStat.mode);+ }+ function fileIsNotWritable(srcMode) {+ return (srcMode & 128) === 0;+ }+ function makeFileWritable(dest, srcMode) {+ return fs4.chmod(dest, srcMode | 128);+ }+ async function onDir(srcStat, destStat, src, dest, opts) {+ if (!destStat) {+ await fs4.mkdir(dest);+ }+ const promises = [];+ for await (const item of await fs4.opendir(src)) {+ const srcItem = path3.join(src, item.name);+ const destItem = path3.join(dest, item.name);+ promises.push(runFilter(srcItem, destItem, opts).then((include) => {+ if (include) {+ return stat.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat: destStat2 }) => {+ return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);+ });+ }+ }));+ }+ await Promise.all(promises);+ if (!destStat) {+ await fs4.chmod(dest, srcStat.mode);+ }+ }+ async function onLink(destStat, src, dest, opts) {+ let resolvedSrc = await fs4.readlink(src);+ if (opts.dereference) {+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);+ }+ if (!destStat) {+ return fs4.symlink(resolvedSrc, dest);+ }+ let resolvedDest = null;+ try {+ resolvedDest = await fs4.readlink(dest);+ } catch (e2) {+ if (e2.code === "EINVAL" || e2.code === "UNKNOWN")+ return fs4.symlink(resolvedSrc, dest);+ throw e2;}- try {- await fs4.rename(src, dest);- } catch (err) {- if (err.code !== "EXDEV") {- throw err;- }- await moveAcrossDevice(src, dest, overwrite);+ if (opts.dereference) {+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);}+ if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {+ throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);+ }+ if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {+ throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);+ }+ await fs4.unlink(dest);+ return fs4.symlink(resolvedSrc, dest);}- async function moveAcrossDevice(src, dest, overwrite) {- const opts = {- overwrite,- errorOnExist: true,- preserveTimestamps: true- };- await copy(src, dest, opts);- return remove(src);- }- module.exports = move;+ module.exports = copy;});-// node_modules/fs-extra/lib/move/move-sync.js-var require_move_sync = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/copy/copy-sync.js+var require_copy_sync = __commonJS((exports, module) => {var fs4 = require_graceful_fs();var path3 = __require("path");- var copySync = require_copy2().copySync;- var removeSync = require_remove().removeSync;- var mkdirpSync = require_mkdirs().mkdirpSync;+ var mkdirsSync = require_mkdirs().mkdirsSync;+ var utimesMillisSync = require_utimes().utimesMillisSync;var stat = require_stat();- function moveSync(src, dest, opts) {+ function copySync(src, dest, opts) {+ if (typeof opts === "function") {+ opts = { filter: opts };+ }opts = opts || {};- const overwrite = opts.overwrite || opts.clobber || false;- const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);- stat.checkParentPathsSync(src, srcStat, dest, "move");- if (!isParentRoot(dest))- mkdirpSync(path3.dirname(dest));- return doRename(src, dest, overwrite, isChangingCase);+ opts.clobber = "clobber" in opts ? !!opts.clobber : true;+ opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;+ if (opts.preserveTimestamps && process.arch === "ia32") {+ process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;++` + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");+ }+ const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);+ stat.checkParentPathsSync(src, srcStat, dest, "copy");+ if (opts.filter && !opts.filter(src, dest))+ return;+ const destParent = path3.dirname(dest);+ if (!fs4.existsSync(destParent))+ mkdirsSync(destParent);+ return getStats(destStat, src, dest, opts);}- function isParentRoot(dest) {- const parent = path3.dirname(dest);- const parsedPath = path3.parse(parent);- return parsedPath.root === parent;+ function getStats(destStat, src, dest, opts) {+ const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync;+ const srcStat = statSync(src);+ if (srcStat.isDirectory())+ return onDir(srcStat, destStat, src, dest, opts);+ else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())+ return onFile(srcStat, destStat, src, dest, opts);+ else if (srcStat.isSymbolicLink())+ return onLink(destStat, src, dest, opts);+ else if (srcStat.isSocket())+ throw new Error(`Cannot copy a socket file: ${src}`);+ else if (srcStat.isFIFO())+ throw new Error(`Cannot copy a FIFO pipe: ${src}`);+ throw new Error(`Unknown file: ${src}`);}- function doRename(src, dest, overwrite, isChangingCase) {- if (isChangingCase)- return rename(src, dest, overwrite);- if (overwrite) {- removeSync(dest);- return rename(src, dest, overwrite);+ function onFile(srcStat, destStat, src, dest, opts) {+ if (!destStat)+ return copyFile(srcStat, src, dest, opts);+ return mayCopyFile(srcStat, src, dest, opts);+ }+ function mayCopyFile(srcStat, src, dest, opts) {+ if (opts.overwrite) {+ fs4.unlinkSync(dest);+ return copyFile(srcStat, src, dest, opts);+ } else if (opts.errorOnExist) {+ throw new Error(`'${dest}' already exists`);}- if (fs4.existsSync(dest))- throw new Error("dest already exists.");- return rename(src, dest, overwrite);}- function rename(src, dest, overwrite) {+ function copyFile(srcStat, src, dest, opts) {+ fs4.copyFileSync(src, dest);+ if (opts.preserveTimestamps)+ handleTimestamps(srcStat.mode, src, dest);+ return setDestMode(dest, srcStat.mode);+ }+ function handleTimestamps(srcMode, src, dest) {+ if (fileIsNotWritable(srcMode))+ makeFileWritable(dest, srcMode);+ return setDestTimestamps(src, dest);+ }+ function fileIsNotWritable(srcMode) {+ return (srcMode & 128) === 0;+ }+ function makeFileWritable(dest, srcMode) {+ return setDestMode(dest, srcMode | 128);+ }+ function setDestMode(dest, srcMode) {+ return fs4.chmodSync(dest, srcMode);+ }+ function setDestTimestamps(src, dest) {+ const updatedSrcStat = fs4.statSync(src);+ return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);+ }+ function onDir(srcStat, destStat, src, dest, opts) {+ if (!destStat)+ return mkDirAndCopy(srcStat.mode, src, dest, opts);+ return copyDir(src, dest, opts);+ }+ function mkDirAndCopy(srcMode, src, dest, opts) {+ fs4.mkdirSync(dest);+ copyDir(src, dest, opts);+ return setDestMode(dest, srcMode);+ }+ function copyDir(src, dest, opts) {+ const dir = fs4.opendirSync(src);try {- fs4.renameSync(src, dest);- } catch (err) {- if (err.code !== "EXDEV")+ let dirent;+ while ((dirent = dir.readSync()) !== null) {+ copyDirItem(dirent.name, src, dest, opts);+ }+ } finally {+ dir.closeSync();+ }+ }+ function copyDirItem(item, src, dest, opts) {+ const srcItem = path3.join(src, item);+ const destItem = path3.join(dest, item);+ if (opts.filter && !opts.filter(srcItem, destItem))+ return;+ const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);+ return getStats(destStat, srcItem, destItem, opts);+ }+ function onLink(destStat, src, dest, opts) {+ let resolvedSrc = fs4.readlinkSync(src);+ if (opts.dereference) {+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);+ }+ if (!destStat) {+ return fs4.symlinkSync(resolvedSrc, dest);+ } else {+ let resolvedDest;+ try {+ resolvedDest = fs4.readlinkSync(dest);+ } catch (err) {+ if (err.code === "EINVAL" || err.code === "UNKNOWN")+ return fs4.symlinkSync(resolvedSrc, dest);throw err;- return moveAcrossDevice(src, dest, overwrite);+ }+ if (opts.dereference) {+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);+ }+ if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {+ throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);+ }+ if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {+ throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);+ }+ return copyLink(resolvedSrc, dest);}}- function moveAcrossDevice(src, dest, overwrite) {- const opts = {- overwrite,- errorOnExist: true,- preserveTimestamps: true- };- copySync(src, dest, opts);- return removeSync(src);+ function copyLink(resolvedSrc, dest) {+ fs4.unlinkSync(dest);+ return fs4.symlinkSync(resolvedSrc, dest);}- module.exports = moveSync;+ module.exports = copySync;});-// node_modules/fs-extra/lib/move/index.js-var require_move2 = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/copy/index.js+var require_copy2 = __commonJS((exports, module) => {var u2 = require_universalify().fromPromise;module.exports = {- move: u2(require_move()),- moveSync: require_move_sync()+ copy: u2(require_copy()),+ copySync: require_copy_sync()};});-// node_modules/fs-extra/lib/index.js-var require_lib2 = __commonJS((exports, module) => {+// node_modules/fs-extra/lib/remove/index.js+var require_remove = __commonJS((exports, module) => {+ var fs4 = require_graceful_fs();+ var u2 = require_universalify().fromCallback;+ function remove(path3, callback) {+ fs4.rm(path3, { recursive: true, force: true }, callback);+ }+ function removeSync(path3) {+ fs4.rmSync(path3, { recursive: true, force: true });+ }module.exports = {- ...require_fs(),- ...require_copy2(),- ...require_empty(),- ...require_ensure(),- ...require_json2(),- ...require_mkdirs(),- ...require_move2(),- ...require_output_file(),- ...require_path_exists(),- ...require_remove()+ remove: u2(remove),+ removeSync};});-// node_modules/ms/index.js-var require_ms = __commonJS((exports, module) => {- var s = 1000;- var m2 = s * 60;- var h2 = m2 * 60;- var d3 = h2 * 24;- var w3 = d3 * 7;- var y2 = d3 * 365.25;- module.exports = function(val, options) {- options = options || {};- var type = typeof val;- if (type === "string" && val.length > 0) {- return parse(val);- } else if (type === "number" && isFinite(val)) {- return options.long ? fmtLong(val) : fmtShort(val);+// node_modules/fs-extra/lib/empty/index.js+var require_empty = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var fs4 = require_fs();+ var path3 = __require("path");+ var mkdir = require_mkdirs();+ var remove = require_remove();+ var emptyDir = u2(async function emptyDir(dir) {+ let items;+ try {+ items = await fs4.readdir(dir);+ } catch {+ return mkdir.mkdirs(dir);}- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));+ return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));+ });+ function emptyDirSync(dir) {+ let items;+ try {+ items = fs4.readdirSync(dir);+ } catch {+ return mkdir.mkdirsSync(dir);+ }+ items.forEach((item) => {+ item = path3.join(dir, item);+ remove.removeSync(item);+ });+ }+ module.exports = {+ emptyDirSync,+ emptydirSync: emptyDirSync,+ emptyDir,+ emptydir: emptyDir};- function parse(str) {- str = String(str);- if (str.length > 100) {- return;+});++// node_modules/fs-extra/lib/ensure/file.js+var require_file2 = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var path3 = __require("path");+ var fs4 = require_fs();+ var mkdir = require_mkdirs();+ async function createFile(file) {+ let stats;+ try {+ stats = await fs4.stat(file);+ } catch {}- 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(str);- if (!match) {+ if (stats && stats.isFile())return;- }- var n = parseFloat(match[1]);- var type = (match[2] || "ms").toLowerCase();- switch (type) {- case "years":- case "year":- case "yrs":- case "yr":- case "y":- return n * y2;- case "weeks":- case "week":- case "w":- return n * w3;- case "days":- case "day":- case "d":- return n * d3;- case "hours":- case "hour":- case "hrs":- case "hr":- case "h":- return n * h2;- case "minutes":- case "minute":- case "mins":- case "min":- case "m":- return n * m2;- case "seconds":- case "second":- case "secs":- case "sec":- case "s":- return n * s;- case "milliseconds":- case "millisecond":- case "msecs":- case "msec":- case "ms":- return n;- default:+ const dir = path3.dirname(file);+ let dirStats = null;+ try {+ dirStats = await fs4.stat(dir);+ } catch (err) {+ if (err.code === "ENOENT") {+ await mkdir.mkdirs(dir);+ await fs4.writeFile(file, "");return;+ } else {+ throw err;+ }}- }- function fmtShort(ms) {- var msAbs = Math.abs(ms);- if (msAbs >= d3) {- return Math.round(ms / d3) + "d";- }- if (msAbs >= h2) {- return Math.round(ms / h2) + "h";- }- if (msAbs >= m2) {- return Math.round(ms / m2) + "m";- }- if (msAbs >= s) {- return Math.round(ms / s) + "s";+ if (dirStats.isDirectory()) {+ await fs4.writeFile(file, "");+ } else {+ await fs4.readdir(dir);}- return ms + "ms";}- function fmtLong(ms) {- var msAbs = Math.abs(ms);- if (msAbs >= d3) {- return plural(ms, msAbs, d3, "day");- }- if (msAbs >= h2) {- return plural(ms, msAbs, h2, "hour");- }- if (msAbs >= m2) {- return plural(ms, msAbs, m2, "minute");+ function createFileSync(file) {+ let stats;+ try {+ stats = fs4.statSync(file);+ } catch {}- if (msAbs >= s) {- return plural(ms, msAbs, s, "second");+ if (stats && stats.isFile())+ return;+ const dir = path3.dirname(file);+ try {+ if (!fs4.statSync(dir).isDirectory()) {+ fs4.readdirSync(dir);+ }+ } catch (err) {+ if (err && err.code === "ENOENT")+ mkdir.mkdirsSync(dir);+ else+ throw err;}- return ms + " ms";- }- function plural(ms, msAbs, n, name) {- var isPlural = msAbs >= n * 1.5;- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");+ fs4.writeFileSync(file, "");}+ module.exports = {+ createFile: u2(createFile),+ createFileSync+ };});-// node_modules/debug/src/common.js-var require_common = __commonJS((exports, module) => {- function setup(env2) {- createDebug.debug = createDebug;- createDebug.default = createDebug;- createDebug.coerce = coerce2;- createDebug.disable = disable;- createDebug.enable = enable;- createDebug.enabled = enabled;- createDebug.humanize = require_ms();- createDebug.destroy = destroy;- Object.keys(env2).forEach((key) => {- createDebug[key] = env2[key];- });- createDebug.names = [];- createDebug.skips = [];- createDebug.formatters = {};- function selectColor(namespace) {- let hash = 0;- for (let i = 0;i < namespace.length; i++) {- hash = (hash << 5) - hash + namespace.charCodeAt(i);- hash |= 0;- }- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];+// node_modules/fs-extra/lib/ensure/link.js+var require_link = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var path3 = __require("path");+ var fs4 = require_fs();+ var mkdir = require_mkdirs();+ var { pathExists } = require_path_exists();+ var { areIdentical } = require_stat();+ async function createLink(srcpath, dstpath) {+ let dstStat;+ try {+ dstStat = await fs4.lstat(dstpath);+ } catch {}- createDebug.selectColor = selectColor;- function createDebug(namespace) {- let prevTime;- let enableOverride = null;- let namespacesCache;- let enabledCache;- function debug(...args) {- if (!debug.enabled) {- return;- }- const self2 = debug;- const curr = Number(new Date);- const ms = curr - (prevTime || curr);- self2.diff = ms;- self2.prev = prevTime;- self2.curr = curr;- prevTime = curr;- args[0] = createDebug.coerce(args[0]);- if (typeof args[0] !== "string") {- args.unshift("%O");- }- let index = 0;- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {- if (match === "%%") {- return "%";- }- index++;- const formatter = createDebug.formatters[format];- if (typeof formatter === "function") {- const val = args[index];- match = formatter.call(self2, val);- args.splice(index, 1);- index--;- }- return match;- });- createDebug.formatArgs.call(self2, args);- const logFn = self2.log || createDebug.log;- logFn.apply(self2, args);- }- debug.namespace = namespace;- debug.useColors = createDebug.useColors();- debug.color = createDebug.selectColor(namespace);- debug.extend = extend;- debug.destroy = createDebug.destroy;- Object.defineProperty(debug, "enabled", {- enumerable: true,- configurable: false,- get: () => {- if (enableOverride !== null) {- return enableOverride;- }- if (namespacesCache !== createDebug.namespaces) {- namespacesCache = createDebug.namespaces;- enabledCache = createDebug.enabled(namespace);- }- return enabledCache;- },- set: (v2) => {- enableOverride = v2;- }- });- if (typeof createDebug.init === "function") {- createDebug.init(debug);- }- return debug;+ let srcStat;+ try {+ srcStat = await fs4.lstat(srcpath);+ } catch (err) {+ err.message = err.message.replace("lstat", "ensureLink");+ throw err;}- function extend(namespace, delimiter) {- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);- newDebug.log = this.log;- return newDebug;+ if (dstStat && areIdentical(srcStat, dstStat))+ return;+ const dir = path3.dirname(dstpath);+ const dirExists = await pathExists(dir);+ if (!dirExists) {+ await mkdir.mkdirs(dir);}- function enable(namespaces) {- createDebug.save(namespaces);- createDebug.namespaces = namespaces;- createDebug.names = [];- createDebug.skips = [];- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);- for (const ns of split) {- if (ns[0] === "-") {- createDebug.skips.push(ns.slice(1));- } else {- createDebug.names.push(ns);- }- }+ await fs4.link(srcpath, dstpath);+ }+ function createLinkSync(srcpath, dstpath) {+ let dstStat;+ try {+ dstStat = fs4.lstatSync(dstpath);+ } catch {}- function matchesTemplate(search, template) {- let searchIndex = 0;- let templateIndex = 0;- let starIndex = -1;- let matchIndex = 0;- while (searchIndex < search.length) {- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {- if (template[templateIndex] === "*") {- starIndex = templateIndex;- matchIndex = searchIndex;- templateIndex++;- } else {- searchIndex++;- templateIndex++;- }- } else if (starIndex !== -1) {- templateIndex = starIndex + 1;- matchIndex++;- searchIndex = matchIndex;- } else {- return false;- }- }- while (templateIndex < template.length && template[templateIndex] === "*") {- templateIndex++;+ try {+ const srcStat = fs4.lstatSync(srcpath);+ if (dstStat && areIdentical(srcStat, dstStat))+ return;+ } catch (err) {+ err.message = err.message.replace("lstat", "ensureLink");+ throw err;+ }+ const dir = path3.dirname(dstpath);+ const dirExists = fs4.existsSync(dir);+ if (dirExists)+ return fs4.linkSync(srcpath, dstpath);+ mkdir.mkdirsSync(dir);+ return fs4.linkSync(srcpath, dstpath);+ }+ module.exports = {+ createLink: u2(createLink),+ createLinkSync+ };+});++// node_modules/fs-extra/lib/ensure/symlink-paths.js+var require_symlink_paths = __commonJS((exports, module) => {+ var path3 = __require("path");+ var fs4 = require_fs();+ var { pathExists } = require_path_exists();+ var u2 = require_universalify().fromPromise;+ async function symlinkPaths(srcpath, dstpath) {+ if (path3.isAbsolute(srcpath)) {+ try {+ await fs4.lstat(srcpath);+ } catch (err) {+ err.message = err.message.replace("lstat", "ensureSymlink");+ throw err;}- return templateIndex === template.length;+ return {+ toCwd: srcpath,+ toDst: srcpath+ };}- function disable() {- const namespaces = [- ...createDebug.names,- ...createDebug.skips.map((namespace) => "-" + namespace)- ].join(",");- createDebug.enable("");- return namespaces;+ const dstdir = path3.dirname(dstpath);+ const relativeToDst = path3.join(dstdir, srcpath);+ const exists = await pathExists(relativeToDst);+ if (exists) {+ return {+ toCwd: relativeToDst,+ toDst: srcpath+ };}- function enabled(name) {- for (const skip of createDebug.skips) {- if (matchesTemplate(name, skip)) {- return false;- }- }- for (const ns of createDebug.names) {- if (matchesTemplate(name, ns)) {- return true;- }- }- return false;+ try {+ await fs4.lstat(srcpath);+ } catch (err) {+ err.message = err.message.replace("lstat", "ensureSymlink");+ throw err;}- function coerce2(val) {- if (val instanceof Error) {- return val.stack || val.message;- }- return val;+ return {+ toCwd: srcpath,+ toDst: path3.relative(dstdir, srcpath)+ };+ }+ function symlinkPathsSync(srcpath, dstpath) {+ if (path3.isAbsolute(srcpath)) {+ const exists2 = fs4.existsSync(srcpath);+ if (!exists2)+ throw new Error("absolute srcpath does not exist");+ return {+ toCwd: srcpath,+ toDst: srcpath+ };}- function destroy() {- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");+ const dstdir = path3.dirname(dstpath);+ const relativeToDst = path3.join(dstdir, srcpath);+ const exists = fs4.existsSync(relativeToDst);+ if (exists) {+ return {+ toCwd: relativeToDst,+ toDst: srcpath+ };}- createDebug.enable(createDebug.load());- return createDebug;+ const srcExists = fs4.existsSync(srcpath);+ if (!srcExists)+ throw new Error("relative srcpath does not exist");+ return {+ toCwd: srcpath,+ toDst: path3.relative(dstdir, srcpath)+ };}- module.exports = setup;+ module.exports = {+ symlinkPaths: u2(symlinkPaths),+ symlinkPathsSync+ };});-// node_modules/debug/src/browser.js-var require_browser = __commonJS((exports, module) => {- exports.formatArgs = formatArgs;- exports.save = save;- exports.load = load;- exports.useColors = useColors;- exports.storage = localstorage();- exports.destroy = (() => {- let warned = false;- return () => {- if (!warned) {- warned = true;- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");- }- };- })();- exports.colors = [- "#0000CC",- "#0000FF",- "#0033CC",- "#0033FF",- "#0066CC",- "#0066FF",- "#0099CC",- "#0099FF",- "#00CC00",- "#00CC33",- "#00CC66",- "#00CC99",- "#00CCCC",- "#00CCFF",- "#3300CC",- "#3300FF",- "#3333CC",- "#3333FF",- "#3366CC",- "#3366FF",- "#3399CC",- "#3399FF",- "#33CC00",- "#33CC33",- "#33CC66",- "#33CC99",- "#33CCCC",- "#33CCFF",- "#6600CC",- "#6600FF",- "#6633CC",- "#6633FF",- "#66CC00",- "#66CC33",- "#9900CC",- "#9900FF",- "#9933CC",- "#9933FF",- "#99CC00",- "#99CC33",- "#CC0000",- "#CC0033",- "#CC0066",- "#CC0099",- "#CC00CC",- "#CC00FF",- "#CC3300",- "#CC3333",- "#CC3366",- "#CC3399",- "#CC33CC",- "#CC33FF",- "#CC6600",- "#CC6633",- "#CC9900",- "#CC9933",- "#CCCC00",- "#CCCC33",- "#FF0000",- "#FF0033",- "#FF0066",- "#FF0099",- "#FF00CC",- "#FF00FF",- "#FF3300",- "#FF3333",- "#FF3366",- "#FF3399",- "#FF33CC",- "#FF33FF",- "#FF6600",- "#FF6633",- "#FF9900",- "#FF9933",- "#FFCC00",- "#FFCC33"- ];- function useColors() {- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {- return true;+// node_modules/fs-extra/lib/ensure/symlink-type.js+var require_symlink_type = __commonJS((exports, module) => {+ var fs4 = require_fs();+ var u2 = require_universalify().fromPromise;+ async function symlinkType(srcpath, type) {+ if (type)+ return type;+ let stats;+ try {+ stats = await fs4.lstat(srcpath);+ } catch {+ return "file";}- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {- return false;+ return stats && stats.isDirectory() ? "dir" : "file";+ }+ function symlinkTypeSync(srcpath, type) {+ if (type)+ return type;+ let stats;+ try {+ stats = fs4.lstatSync(srcpath);+ } catch {+ return "file";}- let m2;- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m2 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m2[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);+ return stats && stats.isDirectory() ? "dir" : "file";}- function formatArgs(args) {- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);- if (!this.useColors) {- return;+ module.exports = {+ symlinkType: u2(symlinkType),+ symlinkTypeSync+ };+});++// node_modules/fs-extra/lib/ensure/symlink.js+var require_symlink = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var path3 = __require("path");+ var fs4 = require_fs();+ var { mkdirs, mkdirsSync } = require_mkdirs();+ var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();+ var { symlinkType, symlinkTypeSync } = require_symlink_type();+ var { pathExists } = require_path_exists();+ var { areIdentical } = require_stat();+ async function createSymlink(srcpath, dstpath, type) {+ let stats;+ try {+ stats = await fs4.lstat(dstpath);+ } catch {}- const c2 = "color: " + this.color;- args.splice(1, 0, c2, "color: inherit");- let index = 0;- let lastC = 0;- args[0].replace(/%[a-zA-Z%]/g, (match) => {- if (match === "%%") {+ if (stats && stats.isSymbolicLink()) {+ const [srcStat, dstStat] = await Promise.all([+ fs4.stat(srcpath),+ fs4.stat(dstpath)+ ]);+ if (areIdentical(srcStat, dstStat))return;- }- index++;- if (match === "%c") {- lastC = index;- }- });- args.splice(lastC, 0, c2);+ }+ const relative = await symlinkPaths(srcpath, dstpath);+ srcpath = relative.toDst;+ const toType = await symlinkType(relative.toCwd, type);+ const dir = path3.dirname(dstpath);+ if (!await pathExists(dir)) {+ await mkdirs(dir);+ }+ return fs4.symlink(srcpath, dstpath, toType);}- exports.log = console.debug || console.log || (() => {- });- function save(namespaces) {+ function createSymlinkSync(srcpath, dstpath, type) {+ let stats;try {- if (namespaces) {- exports.storage.setItem("debug", namespaces);+ stats = fs4.lstatSync(dstpath);+ } catch {+ }+ if (stats && stats.isSymbolicLink()) {+ const srcStat = fs4.statSync(srcpath);+ const dstStat = fs4.statSync(dstpath);+ if (areIdentical(srcStat, dstStat))+ return;+ }+ const relative = symlinkPathsSync(srcpath, dstpath);+ srcpath = relative.toDst;+ type = symlinkTypeSync(relative.toCwd, type);+ const dir = path3.dirname(dstpath);+ const exists = fs4.existsSync(dir);+ if (exists)+ return fs4.symlinkSync(srcpath, dstpath, type);+ mkdirsSync(dir);+ return fs4.symlinkSync(srcpath, dstpath, type);+ }+ module.exports = {+ createSymlink: u2(createSymlink),+ createSymlinkSync+ };+});++// node_modules/fs-extra/lib/ensure/index.js+var require_ensure = __commonJS((exports, module) => {+ var { createFile, createFileSync } = require_file2();+ var { createLink, createLinkSync } = require_link();+ var { createSymlink, createSymlinkSync } = require_symlink();+ module.exports = {+ createFile,+ createFileSync,+ ensureFile: createFile,+ ensureFileSync: createFileSync,+ createLink,+ createLinkSync,+ ensureLink: createLink,+ ensureLinkSync: createLinkSync,+ createSymlink,+ createSymlinkSync,+ ensureSymlink: createSymlink,+ ensureSymlinkSync: createSymlinkSync+ };+});++// node_modules/jsonfile/utils.js+var require_utils3 = __commonJS((exports, module) => {+ function stringify(obj, { EOL = `+`, finalEOL = true, replacer = null, spaces } = {}) {+ const EOF = finalEOL ? EOL : "";+ const str = JSON.stringify(obj, replacer, spaces);+ return str.replace(/\n/g, EOL) + EOF;+ }+ function stripBom(content) {+ if (Buffer.isBuffer(content))+ content = content.toString("utf8");+ return content.replace(/^\uFEFF/, "");+ }+ module.exports = { stringify, stripBom };+});++// node_modules/jsonfile/index.js+var require_jsonfile = __commonJS((exports, module) => {+ var _fs;+ try {+ _fs = require_graceful_fs();+ } catch (_4) {+ _fs = __require("fs");+ }+ var universalify = require_universalify();+ var { stringify, stripBom } = require_utils3();+ async function _readFile(file, options = {}) {+ if (typeof options === "string") {+ options = { encoding: options };+ }+ const fs4 = options.fs || _fs;+ const shouldThrow = "throws" in options ? options.throws : true;+ let data = await universalify.fromCallback(fs4.readFile)(file, options);+ data = stripBom(data);+ let obj;+ try {+ obj = JSON.parse(data, options ? options.reviver : null);+ } catch (err) {+ if (shouldThrow) {+ err.message = `${file}: ${err.message}`;+ throw err;} else {- exports.storage.removeItem("debug");+ return null;}- } catch (error) {}+ return obj;}- function load() {- let r2;+ var readFile = universalify.fromPromise(_readFile);+ function readFileSync(file, options = {}) {+ if (typeof options === "string") {+ options = { encoding: options };+ }+ const fs4 = options.fs || _fs;+ const shouldThrow = "throws" in options ? options.throws : true;try {- r2 = exports.storage.getItem("debug");- } catch (error) {+ let content = fs4.readFileSync(file, options);+ content = stripBom(content);+ return JSON.parse(content, options.reviver);+ } catch (err) {+ if (shouldThrow) {+ err.message = `${file}: ${err.message}`;+ throw err;+ } else {+ return null;+ }}- if (!r2 && typeof process !== "undefined" && "env" in process) {- r2 = process.env.DEBUG;+ }+ async function _writeFile(file, obj, options = {}) {+ const fs4 = options.fs || _fs;+ const str = stringify(obj, options);+ await universalify.fromCallback(fs4.writeFile)(file, str, options);+ }+ var writeFile = universalify.fromPromise(_writeFile);+ function writeFileSync(file, obj, options = {}) {+ const fs4 = options.fs || _fs;+ const str = stringify(obj, options);+ return fs4.writeFileSync(file, str, options);+ }+ var jsonfile = {+ readFile,+ readFileSync,+ writeFile,+ writeFileSync+ };+ module.exports = jsonfile;+});++// node_modules/fs-extra/lib/json/jsonfile.js+var require_jsonfile2 = __commonJS((exports, module) => {+ var jsonFile = require_jsonfile();+ module.exports = {+ readJson: jsonFile.readFile,+ readJsonSync: jsonFile.readFileSync,+ writeJson: jsonFile.writeFile,+ writeJsonSync: jsonFile.writeFileSync+ };+});++// node_modules/fs-extra/lib/output-file/index.js+var require_output_file = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var fs4 = require_fs();+ var path3 = __require("path");+ var mkdir = require_mkdirs();+ var pathExists = require_path_exists().pathExists;+ async function outputFile(file, data, encoding = "utf-8") {+ const dir = path3.dirname(file);+ if (!await pathExists(dir)) {+ await mkdir.mkdirs(dir);}- return r2;+ return fs4.writeFile(file, data, encoding);}- function localstorage() {- try {- return localStorage;- } catch (error) {+ function outputFileSync(file, ...args) {+ const dir = path3.dirname(file);+ if (!fs4.existsSync(dir)) {+ mkdir.mkdirsSync(dir);}+ fs4.writeFileSync(file, ...args);}- module.exports = require_common()(exports);- var { formatters } = module.exports;- formatters.j = function(v2) {- try {- return JSON.stringify(v2);- } catch (error) {- return "[UnexpectedJSONParseError]: " + error.message;- }+ module.exports = {+ outputFile: u2(outputFile),+ outputFileSync};});-// node_modules/debug/src/node.js-var require_node2 = __commonJS((exports, module) => {- var tty2 = __require("tty");- var util2 = __require("util");- exports.init = init2;- exports.log = log;- exports.formatArgs = formatArgs;- exports.save = save;- exports.load = load;- exports.useColors = useColors;- exports.destroy = util2.deprecate(() => {- }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");- exports.colors = [6, 2, 3, 4, 5, 1];- try {- const supportsColor2 = (()=>{throw new Error("Cannot require module "+"supports-color");})();- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {- exports.colors = [- 20,- 21,- 26,- 27,- 32,- 33,- 38,- 39,- 40,- 41,- 42,- 43,- 44,- 45,- 56,- 57,- 62,- 63,- 68,- 69,- 74,- 75,- 76,- 77,- 78,- 79,- 80,- 81,- 92,- 93,- 98,- 99,- 112,- 113,- 128,- 129,- 134,- 135,- 148,- 149,- 160,- 161,- 162,- 163,- 164,- 165,- 166,- 167,- 168,- 169,- 170,- 171,- 172,- 173,- 178,- 179,- 184,- 185,- 196,- 197,- 198,- 199,- 200,- 201,- 202,- 203,- 204,- 205,- 206,- 207,- 208,- 209,- 214,- 215,- 220,- 221- ];- }- } catch (error) {+// node_modules/fs-extra/lib/json/output-json.js+var require_output_json = __commonJS((exports, module) => {+ var { stringify } = require_utils3();+ var { outputFile } = require_output_file();+ async function outputJson(file, data, options = {}) {+ const str = stringify(data, options);+ await outputFile(file, str, options);}- exports.inspectOpts = Object.keys(process.env).filter((key) => {- return /^debug_/i.test(key);- }).reduce((obj, key) => {- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_4, k3) => {- return k3.toUpperCase();- });- let val = process.env[key];- if (/^(yes|on|true|enabled)$/i.test(val)) {- val = true;- } else if (/^(no|off|false|disabled)$/i.test(val)) {- val = false;- } else if (val === "null") {- val = null;- } else {- val = Number(val);- }- obj[prop] = val;- return obj;- }, {});- function useColors() {- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);+ module.exports = outputJson;+});++// node_modules/fs-extra/lib/json/output-json-sync.js+var require_output_json_sync = __commonJS((exports, module) => {+ var { stringify } = require_utils3();+ var { outputFileSync } = require_output_file();+ function outputJsonSync(file, data, options) {+ const str = stringify(data, options);+ outputFileSync(file, str, options);}- function formatArgs(args) {- const { namespace: name, useColors: useColors2 } = this;- if (useColors2) {- const c2 = this.color;- const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);- const prefix = ` ${colorCode};1m${name} \x1B[0m`;- args[0] = prefix + args[0].split(`-`).join(`-` + prefix);- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");- } else {- args[0] = getDate() + name + " " + args[0];+ module.exports = outputJsonSync;+});++// node_modules/fs-extra/lib/json/index.js+var require_json2 = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ var jsonFile = require_jsonfile2();+ jsonFile.outputJson = u2(require_output_json());+ jsonFile.outputJsonSync = require_output_json_sync();+ jsonFile.outputJSON = jsonFile.outputJson;+ jsonFile.outputJSONSync = jsonFile.outputJsonSync;+ jsonFile.writeJSON = jsonFile.writeJson;+ jsonFile.writeJSONSync = jsonFile.writeJsonSync;+ jsonFile.readJSON = jsonFile.readJson;+ jsonFile.readJSONSync = jsonFile.readJsonSync;+ module.exports = jsonFile;+});++// node_modules/fs-extra/lib/move/move.js+var require_move = __commonJS((exports, module) => {+ var fs4 = require_fs();+ var path3 = __require("path");+ var { copy } = require_copy2();+ var { remove } = require_remove();+ var { mkdirp } = require_mkdirs();+ var { pathExists } = require_path_exists();+ var stat = require_stat();+ async function move(src, dest, opts = {}) {+ const overwrite = opts.overwrite || opts.clobber || false;+ const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);+ await stat.checkParentPaths(src, srcStat, dest, "move");+ const destParent = path3.dirname(dest);+ const parsedParentPath = path3.parse(destParent);+ if (parsedParentPath.root !== destParent) {+ await mkdirp(destParent);}+ return doRename(src, dest, overwrite, isChangingCase);}- function getDate() {- if (exports.inspectOpts.hideDate) {- return "";+ async function doRename(src, dest, overwrite, isChangingCase) {+ if (!isChangingCase) {+ if (overwrite) {+ await remove(dest);+ } else if (await pathExists(dest)) {+ throw new Error("dest already exists.");+ }+ }+ try {+ await fs4.rename(src, dest);+ } catch (err) {+ if (err.code !== "EXDEV") {+ throw err;+ }+ await moveAcrossDevice(src, dest, overwrite);}- return new Date().toISOString() + " ";}- function log(...args) {- return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + `-`);+ async function moveAcrossDevice(src, dest, overwrite) {+ const opts = {+ overwrite,+ errorOnExist: true,+ preserveTimestamps: true+ };+ await copy(src, dest, opts);+ return remove(src);}- function save(namespaces) {- if (namespaces) {- process.env.DEBUG = namespaces;- } else {- delete process.env.DEBUG;- }+ module.exports = move;+});++// node_modules/fs-extra/lib/move/move-sync.js+var require_move_sync = __commonJS((exports, module) => {+ var fs4 = require_graceful_fs();+ var path3 = __require("path");+ var copySync = require_copy2().copySync;+ var removeSync = require_remove().removeSync;+ var mkdirpSync = require_mkdirs().mkdirpSync;+ var stat = require_stat();+ function moveSync(src, dest, opts) {+ opts = opts || {};+ const overwrite = opts.overwrite || opts.clobber || false;+ const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);+ stat.checkParentPathsSync(src, srcStat, dest, "move");+ if (!isParentRoot(dest))+ mkdirpSync(path3.dirname(dest));+ return doRename(src, dest, overwrite, isChangingCase);}- function load() {- return process.env.DEBUG;+ function isParentRoot(dest) {+ const parent = path3.dirname(dest);+ const parsedPath = path3.parse(parent);+ return parsedPath.root === parent;}- function init2(debug) {- debug.inspectOpts = {};- const keys = Object.keys(exports.inspectOpts);- for (let i = 0;i < keys.length; i++) {- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];+ function doRename(src, dest, overwrite, isChangingCase) {+ if (isChangingCase)+ return rename(src, dest, overwrite);+ if (overwrite) {+ removeSync(dest);+ return rename(src, dest, overwrite);}+ if (fs4.existsSync(dest))+ throw new Error("dest already exists.");+ return rename(src, dest, overwrite);}- module.exports = require_common()(exports);- var { formatters } = module.exports;- formatters.o = function(v2) {- this.inspectOpts.colors = this.useColors;- return util2.inspect(v2, this.inspectOpts).split(`-`).map((str) => str.trim()).join(" ");- };- formatters.O = function(v2) {- this.inspectOpts.colors = this.useColors;- return util2.inspect(v2, this.inspectOpts);+ function rename(src, dest, overwrite) {+ try {+ fs4.renameSync(src, dest);+ } catch (err) {+ if (err.code !== "EXDEV")+ throw err;+ return moveAcrossDevice(src, dest, overwrite);+ }+ }+ function moveAcrossDevice(src, dest, overwrite) {+ const opts = {+ overwrite,+ errorOnExist: true,+ preserveTimestamps: true+ };+ copySync(src, dest, opts);+ return removeSync(src);+ }+ module.exports = moveSync;+});++// node_modules/fs-extra/lib/move/index.js+var require_move2 = __commonJS((exports, module) => {+ var u2 = require_universalify().fromPromise;+ module.exports = {+ move: u2(require_move()),+ moveSync: require_move_sync()};});-// node_modules/debug/src/index.js-var require_src2 = __commonJS((exports, module) => {- if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {- module.exports = require_browser();- } else {- module.exports = require_node2();- }+// node_modules/fs-extra/lib/index.js+var require_lib2 = __commonJS((exports, module) => {+ module.exports = {+ ...require_fs(),+ ...require_copy2(),+ ...require_empty(),+ ...require_ensure(),+ ...require_json2(),+ ...require_mkdirs(),+ ...require_move2(),+ ...require_output_file(),+ ...require_path_exists(),+ ...require_remove()+ };});// node_modules/@kwsites/file-exists/dist/src/index.js@@ -29597,11 +40277,11 @@ var require_src3 = __commonJS((exports) => {var fs_1 = __require("fs");var debug_1 = __importDefault(require_src2());var log = debug_1.default("@kwsites/file-exists");- function check(path4, isFile, isDirectory) {+ function check(path4, isFile2, isDirectory) {log(`checking %s`, path4);try {const stat = fs_1.statSync(path4);- if (stat.isFile() && isFile) {+ if (stat.isFile() && isFile2) {log(`[OK] path represents a file`);return true;}@@ -29631,13 +40311,13 @@ var require_src3 = __commonJS((exports) => {// node_modules/@kwsites/file-exists/dist/index.jsvar require_dist3 = __commonJS((exports) => {- function __export(m2) {+ function __export2(m2) {for (var p in m2)if (!exports.hasOwnProperty(p))exports[p] = m2[p];}Object.defineProperty(exports, "__esModule", { value: true });- __export(require_src3());+ __export2(require_src3());});// node_modules/@kwsites/promise-deferred/dist/index.js@@ -30646,13 +41326,13 @@ var require_ansi_escapes = __commonJS((exports, module) => {ansiEscapes.clearScreen = "\x1Bc";ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;ansiEscapes.beep = BEL;- ansiEscapes.link = (text, url2) => {+ ansiEscapes.link = (text, url3) => {return [OSC,"8",SEP,SEP,- url2,+ url3,BEL,text,OSC,@@ -30769,7 +41449,7 @@ var require_utf8 = __commonJS((exports, module) => {// node_modules/chardet/encoding/unicode.jsvar require_unicode = __commonJS((exports, module) => {- var util2 = __require("util");+ var util4 = __require("util");var Match = require_match();exports.UTF_16BE = function() {this.name = function() {@@ -30837,7 +41517,7 @@ var require_unicode = __commonJS((exports, module) => {return (input[index + 0] & 255) << 24 | (input[index + 1] & 255) << 16 | (input[index + 2] & 255) << 8 | input[index + 3] & 255;};};- util2.inherits(exports.UTF_32BE, UTF_32);+ util4.inherits(exports.UTF_32BE, UTF_32);exports.UTF_32LE = function() {this.name = function() {return "UTF-32LE";@@ -30846,12 +41526,12 @@ var require_unicode = __commonJS((exports, module) => {return (input[index + 3] & 255) << 24 | (input[index + 2] & 255) << 16 | (input[index + 1] & 255) << 8 | input[index + 0] & 255;};};- util2.inherits(exports.UTF_32LE, UTF_32);+ util4.inherits(exports.UTF_32LE, UTF_32);});// node_modules/chardet/encoding/mbcs.jsvar require_mbcs = __commonJS((exports, module) => {- var util2 = __require("util");+ var util4 = __require("util");var Match = require_match();function binarySearch(arr, searchValue) {function find(arr2, searchValue2, left, right) {@@ -31028,7 +41708,7 @@ var require_mbcs = __commonJS((exports, module) => {return true;};};- util2.inherits(exports.sjis, mbcs);+ util4.inherits(exports.sjis, mbcs);exports.big5 = function() {this.name = function() {return "Big5";@@ -31151,7 +41831,7 @@ var require_mbcs = __commonJS((exports, module) => {return true;};};- util2.inherits(exports.big5, mbcs);+ util4.inherits(exports.big5, mbcs);function eucNextChar(iter, det) {iter.index = iter.nextIndex;iter.error = false;@@ -31302,7 +41982,7 @@ var require_mbcs = __commonJS((exports, module) => {];this.nextChar = eucNextChar;};- util2.inherits(exports.euc_jp, mbcs);+ util4.inherits(exports.euc_jp, mbcs);exports.euc_kr = function() {this.name = function() {return "EUC-KR";@@ -31414,7 +42094,7 @@ var require_mbcs = __commonJS((exports, module) => {];this.nextChar = eucNextChar;};- util2.inherits(exports.euc_kr, mbcs);+ util4.inherits(exports.euc_kr, mbcs);exports.gb_18030 = function() {this.name = function() {return "GB18030";@@ -31563,12 +42243,12 @@ var require_mbcs = __commonJS((exports, module) => {54992];};- util2.inherits(exports.gb_18030, mbcs);+ util4.inherits(exports.gb_18030, mbcs);});// node_modules/chardet/encoding/sbcs.jsvar require_sbcs = __commonJS((exports, module) => {- var util2 = __require("util");+ var util4 = __require("util");var Match = require_match();function NGramParser(theNgramList, theByteMap) {var N_GRAM_MASK = 16777215;@@ -32595,7 +43275,7 @@ var require_sbcs = __commonJS((exports, module) => {return det && det.fC1Bytes ? "windows-1252" : "ISO-8859-1";};};- util2.inherits(exports.ISO_8859_1, sbcs);+ util4.inherits(exports.ISO_8859_1, sbcs);exports.ISO_8859_2 = function() {this.byteMap = function() {return [@@ -33129,7 +43809,7 @@ var require_sbcs = __commonJS((exports, module) => {return det && det.fC1Bytes ? "windows-1250" : "ISO-8859-2";};};- util2.inherits(exports.ISO_8859_2, sbcs);+ util4.inherits(exports.ISO_8859_2, sbcs);exports.ISO_8859_5 = function() {this.byteMap = function() {return [@@ -33466,7 +44146,7 @@ var require_sbcs = __commonJS((exports, module) => {return "ru";};};- util2.inherits(exports.ISO_8859_5, sbcs);+ util4.inherits(exports.ISO_8859_5, sbcs);exports.ISO_8859_6 = function() {this.byteMap = function() {return [@@ -33803,7 +44483,7 @@ var require_sbcs = __commonJS((exports, module) => {return "ar";};};- util2.inherits(exports.ISO_8859_6, sbcs);+ util4.inherits(exports.ISO_8859_6, sbcs);exports.ISO_8859_7 = function() {this.byteMap = function() {return [@@ -34140,7 +44820,7 @@ var require_sbcs = __commonJS((exports, module) => {return "el";};};- util2.inherits(exports.ISO_8859_7, sbcs);+ util4.inherits(exports.ISO_8859_7, sbcs);exports.ISO_8859_8 = function() {this.byteMap = function() {return [@@ -34545,7 +45225,7 @@ var require_sbcs = __commonJS((exports, module) => {return "he";};};- util2.inherits(exports.ISO_8859_8, sbcs);+ util4.inherits(exports.ISO_8859_8, sbcs);exports.ISO_8859_9 = function() {this.byteMap = function() {return [@@ -34882,7 +45562,7 @@ var require_sbcs = __commonJS((exports, module) => {return "tr";};};- util2.inherits(exports.ISO_8859_9, sbcs);+ util4.inherits(exports.ISO_8859_9, sbcs);exports.windows_1251 = function() {this.byteMap = function() {return [@@ -35219,7 +45899,7 @@ var require_sbcs = __commonJS((exports, module) => {return "ru";};};- util2.inherits(exports.windows_1251, sbcs);+ util4.inherits(exports.windows_1251, sbcs);exports.windows_1256 = function() {this.byteMap = function() {return [@@ -35556,7 +46236,7 @@ var require_sbcs = __commonJS((exports, module) => {return "ar";};};- util2.inherits(exports.windows_1256, sbcs);+ util4.inherits(exports.windows_1256, sbcs);exports.KOI8_R = function() {this.byteMap = function() {return [@@ -35893,12 +46573,12 @@ var require_sbcs = __commonJS((exports, module) => {return "ru";};};- util2.inherits(exports.KOI8_R, sbcs);+ util4.inherits(exports.KOI8_R, sbcs);});// node_modules/chardet/encoding/iso2022.jsvar require_iso2022 = __commonJS((exports, module) => {- var util2 = __require("util");+ var util4 = __require("util");var Match = require_match();function ISO_2022() {}@@ -35957,7 +46637,7 @@ var require_iso2022 = __commonJS((exports, module) => {[27, 46, 70]];};- util2.inherits(exports.ISO_2022_JP, ISO_2022);+ util4.inherits(exports.ISO_2022_JP, ISO_2022);exports.ISO_2022_KR = function() {this.name = function() {return "ISO-2022-KR";@@ -35966,7 +46646,7 @@ var require_iso2022 = __commonJS((exports, module) => {[27, 36, 41, 67]];};- util2.inherits(exports.ISO_2022_KR, ISO_2022);+ util4.inherits(exports.ISO_2022_KR, ISO_2022);exports.ISO_2022_CN = function() {this.name = function() {return "ISO-2022-CN";@@ -35985,7 +46665,7 @@ var require_iso2022 = __commonJS((exports, module) => {[27, 79]];};- util2.inherits(exports.ISO_2022_CN, ISO_2022);+ util4.inherits(exports.ISO_2022_CN, ISO_2022);});// node_modules/chardet/index.js@@ -39306,13 +49986,13 @@ var require_extend_node = __commonJS((exports, module) => {return length;};if (iconv.supportsStreams) {- var Readable5 = __require("stream").Readable;- original.ReadableSetEncoding = Readable5.prototype.setEncoding;- Readable5.prototype.setEncoding = function setEncoding(enc, options) {+ var Readable6 = __require("stream").Readable;+ original.ReadableSetEncoding = Readable6.prototype.setEncoding;+ Readable6.prototype.setEncoding = function setEncoding(enc, options) {this._readableState.decoder = iconv.getDecoder(enc, options);this._readableState.encoding = enc;};- Readable5.prototype.collect = iconv._collect;+ Readable6.prototype.collect = iconv._collect;}};iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() {@@ -39329,9 +50009,9 @@ var require_extend_node = __commonJS((exports, module) => {Buffer5.prototype.toString = original.BufferToString;Buffer5.prototype.write = original.BufferWrite;if (iconv.supportsStreams) {- var Readable5 = __require("stream").Readable;- Readable5.prototype.setEncoding = original.ReadableSetEncoding;- delete Readable5.prototype.collect;+ var Readable6 = __require("stream").Readable;+ Readable6.prototype.setEncoding = original.ReadableSetEncoding;+ delete Readable6.prototype.collect;}original = undefined;};@@ -39466,7 +50146,7 @@ var require_tmp = __commonJS((exports, module) => {*/var fs8 = __require("fs");var path11 = __require("path");- var crypto3 = __require("crypto");+ var crypto4 = __require("crypto");var osTmpDir = require_os_tmpdir();var _c = process.binding("constants");var tmpDir = osTmpDir();@@ -39484,9 +50164,9 @@ var require_tmp = __commonJS((exports, module) => {function _randomChars(howMany) {var value = [], rnd = null;try {- rnd = crypto3.randomBytes(howMany);+ rnd = crypto4.randomBytes(howMany);} catch (e2) {- rnd = crypto3.pseudoRandomBytes(howMany);+ rnd = crypto4.pseudoRandomBytes(howMany);}for (var i2 = 0;i2 < howMany; i2++) {value.push(RANDOM_CHARS[rnd[i2] % RANDOM_CHARS.length]);@@ -40089,10 +50769,10 @@ var require_main = __commonJS((exports) => {var require_isFunction2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.isFunction = undefined;- function isFunction(value) {+ function isFunction2(value) {return typeof value === "function";}- exports.isFunction = isFunction;+ exports.isFunction = isFunction2;});// node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js@@ -40416,9 +51096,9 @@ var require_reportUnhandledError = __commonJS((exports) => {var require_noop2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.noop = undefined;- function noop3() {+ function noop4() {}- exports.noop = noop3;+ exports.noop = noop4;});// node_modules/rxjs/dist/cjs/internal/NotificationFactories.js@@ -40582,7 +51262,7 @@ var require_Subscriber = __commonJS((exports) => {}(Subscription_1.Subscription);exports.Subscriber = Subscriber;var _bind = Function.prototype.bind;- function bind(fn, thisArg) {+ function bind2(fn, thisArg) {return _bind.call(fn, thisArg);}var ConsumerObserver = function() {@@ -40642,9 +51322,9 @@ var require_Subscriber = __commonJS((exports) => {return _this.unsubscribe();};partialObserver = {- next: observerOrNext.next && bind(observerOrNext.next, context_1),- error: observerOrNext.error && bind(observerOrNext.error, context_1),- complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)+ next: observerOrNext.next && bind2(observerOrNext.next, context_1),+ error: observerOrNext.error && bind2(observerOrNext.error, context_1),+ complete: observerOrNext.complete && bind2(observerOrNext.complete, context_1)};} else {partialObserver = observerOrNext;@@ -42138,7 +52818,7 @@ var require_asap = __commonJS((exports) => {});// node_modules/rxjs/dist/cjs/internal/scheduler/async.js-var require_async2 = __commonJS((exports) => {+var require_async3 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.async = exports.asyncScheduler = undefined;var AsyncAction_1 = require_AsyncAction();@@ -42762,11 +53442,11 @@ var require_isReadableStreamLike = __commonJS((exports) => {try {step(g3[n2](v2));} catch (e2) {- settle(q3[0][3], e2);+ settle2(q3[0][3], e2);}}function step(r2) {- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q3[0][2], r2);+ r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle2(q3[0][2], r2);}function fulfill(value) {resume("next", value);@@ -42774,7 +53454,7 @@ var require_isReadableStreamLike = __commonJS((exports) => {function reject(value) {resume("throw", value);}- function settle(f2, v2) {+ function settle2(f2, v2) {if (f2(v2), q3.shift(), q3.length)resume(q3[0][0], q3[0][1]);}@@ -42944,11 +53624,11 @@ var require_innerFrom = __commonJS((exports) => {function verb(n2) {i2[n2] = o3[n2] && function(v2) {return new Promise(function(resolve, reject) {- v2 = o3[n2](v2), settle(resolve, reject, v2.done, v2.value);+ v2 = o3[n2](v2), settle2(resolve, reject, v2.done, v2.value);});};}- function settle(resolve, reject, d3, v2) {+ function settle2(resolve, reject, d3, v2) {Promise.resolve(v2).then(function(v3) {resolve({ value: v3, done: d3 });}, reject);@@ -43635,7 +54315,7 @@ var require_isDate = __commonJS((exports) => {var require_timeout = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.timeout = exports.TimeoutError = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var isDate_1 = require_isDate();var lift_1 = require_lift();var innerFrom_1 = require_innerFrom();@@ -43745,9 +54425,9 @@ var require_mapOneOrManyArgs = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.mapOneOrManyArgs = undefined;var map_1 = require_map();- var isArray = Array.isArray;+ var isArray2 = Array.isArray;function callOrApply(fn, args) {- return isArray(args) ? fn.apply(undefined, __spreadArray([], __read(args))) : fn(args);+ return isArray2(args) ? fn.apply(undefined, __spreadArray([], __read(args))) : fn(args);}function mapOneOrManyArgs(fn) {return map_1.map(function(args) {@@ -43888,14 +54568,14 @@ var require_bindNodeCallback = __commonJS((exports) => {var require_argsArgArrayOrObject = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.argsArgArrayOrObject = undefined;- var isArray = Array.isArray;- var getPrototypeOf = Object.getPrototypeOf;+ var isArray2 = Array.isArray;+ var getPrototypeOf2 = Object.getPrototypeOf;var objectProto = Object.prototype;var getKeys = Object.keys;function argsArgArrayOrObject(args) {if (args.length === 1) {var first_1 = args[0];- if (isArray(first_1)) {+ if (isArray2(first_1)) {return { args: first_1, keys: null };}if (isPOJO(first_1)) {@@ -43912,7 +54592,7 @@ var require_argsArgArrayOrObject = __commonJS((exports) => {}exports.argsArgArrayOrObject = argsArgArrayOrObject;function isPOJO(obj) {- return obj && typeof obj === "object" && getPrototypeOf(obj) === objectProto;+ return obj && typeof obj === "object" && getPrototypeOf2(obj) === objectProto;}});@@ -44145,7 +54825,7 @@ var require_concat = __commonJS((exports) => {});// node_modules/rxjs/dist/cjs/internal/observable/defer.js-var require_defer = __commonJS((exports) => {+var require_defer2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.defer = undefined;var Observable_1 = require_Observable();@@ -44164,7 +54844,7 @@ var require_connectable = __commonJS((exports) => {exports.connectable = undefined;var Subject_1 = require_Subject();var Observable_1 = require_Observable();- var defer_1 = require_defer();+ var defer_1 = require_defer2();var DEFAULT_CONFIG = {connector: function() {return new Subject_1.Subject;@@ -44454,7 +55134,7 @@ var require_generate = __commonJS((exports) => {exports.generate = undefined;var identity_1 = require_identity2();var isScheduler_1 = require_isScheduler();- var defer_1 = require_defer();+ var defer_1 = require_defer2();var scheduleIterable_1 = require_scheduleIterable();function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler3) {var _a2, _b;@@ -44504,7 +55184,7 @@ var require_generate = __commonJS((exports) => {var require_iif = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.iif = undefined;- var defer_1 = require_defer();+ var defer_1 = require_defer2();function iif(condition, trueResult, falseResult) {return defer_1.defer(function() {return condition() ? trueResult : falseResult;@@ -44518,7 +55198,7 @@ var require_timer = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.timer = undefined;var Observable_1 = require_Observable();- var async_1 = require_async2();+ var async_1 = require_async3();var isScheduler_1 = require_isScheduler();var isDate_1 = require_isDate();function timer(dueTime, intervalOrScheduler, scheduler3) {@@ -44561,7 +55241,7 @@ var require_timer = __commonJS((exports) => {var require_interval = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.interval = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var timer_1 = require_timer();function interval(period, scheduler3) {if (period === undefined) {@@ -44587,7 +55267,7 @@ var require_merge = __commonJS((exports) => {var empty_1 = require_empty2();var args_1 = require_args();var from_1 = require_from2();- function merge() {+ function merge2() {var args = [];for (var _i = 0;_i < arguments.length; _i++) {args[_i] = arguments[_i];@@ -44597,7 +55277,7 @@ var require_merge = __commonJS((exports) => {var sources = args;return !sources.length ? empty_1.EMPTY : sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler3));}- exports.merge = merge;+ exports.merge = merge2;});// node_modules/rxjs/dist/cjs/internal/observable/never.js@@ -44617,9 +55297,9 @@ var require_never = __commonJS((exports) => {var require_argsOrArgArray = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.argsOrArgArray = undefined;- var isArray = Array.isArray;+ var isArray2 = Array.isArray;function argsOrArgArray(args) {- return args.length === 1 && isArray(args[0]) ? args[0] : args;+ return args.length === 1 && isArray2(args[0]) ? args[0] : args;}exports.argsOrArgArray = argsOrArgArray;});@@ -44692,7 +55372,7 @@ var require_filter = __commonJS((exports) => {exports.filter = undefined;var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();- function filter(predicate, thisArg) {+ function filter2(predicate, thisArg) {return lift_1.operate(function(source, subscriber) {var index = 0;source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {@@ -44700,7 +55380,7 @@ var require_filter = __commonJS((exports) => {}));});}- exports.filter = filter;+ exports.filter = filter2;});// node_modules/rxjs/dist/cjs/internal/observable/partition.js@@ -44756,7 +55436,7 @@ var require_race = __commonJS((exports) => {});// node_modules/rxjs/dist/cjs/internal/observable/range.js-var require_range = __commonJS((exports) => {+var require_range2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.range = undefined;var Observable_1 = require_Observable();@@ -44951,7 +55631,7 @@ var require_audit = __commonJS((exports) => {var require_auditTime = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.auditTime = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var audit_1 = require_audit();var timer_1 = require_timer();function auditTime(duration, scheduler3) {@@ -45118,7 +55798,7 @@ var require_bufferTime = __commonJS((exports) => {var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();var arrRemove_1 = require_arrRemove();- var async_1 = require_async2();+ var async_1 = require_async3();var args_1 = require_args();var executeSchedule_1 = require_executeSchedule();function bufferTime(bufferTimeSpan) {@@ -45374,12 +56054,12 @@ var require_toArray = __commonJS((exports) => {var arrReducer = function(arr, value) {return arr.push(value), arr;};- function toArray() {+ function toArray2() {return lift_1.operate(function(source, subscriber) {reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber);});}- exports.toArray = toArray;+ exports.toArray = toArray2;});// node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js@@ -45722,7 +56402,7 @@ var require_debounce = __commonJS((exports) => {var require_debounceTime = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.debounceTime = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();function debounceTime(dueTime, scheduler3) {@@ -45873,7 +56553,7 @@ var require_delayWhen = __commonJS((exports) => {var require_delay = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.delay = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var delayWhen_1 = require_delayWhen();var timer_1 = require_timer();function delay2(due, scheduler3) {@@ -46454,7 +57134,7 @@ var require_materialize = __commonJS((exports) => {});// node_modules/rxjs/dist/cjs/internal/operators/max.js-var require_max = __commonJS((exports) => {+var require_max2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.max = undefined;var reduce_1 = require_reduce();@@ -46561,7 +57241,7 @@ var require_merge2 = __commonJS((exports) => {var mergeAll_1 = require_mergeAll();var args_1 = require_args();var from_1 = require_from2();- function merge() {+ function merge2() {var args = [];for (var _i = 0;_i < arguments.length; _i++) {args[_i] = arguments[_i];@@ -46573,7 +57253,7 @@ var require_merge2 = __commonJS((exports) => {mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler3)).subscribe(subscriber);});}- exports.merge = merge;+ exports.merge = merge2;});// node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js@@ -46618,7 +57298,7 @@ var require_mergeWith = __commonJS((exports) => {});// node_modules/rxjs/dist/cjs/internal/operators/min.js-var require_min = __commonJS((exports) => {+var require_min2 = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.min = undefined;var reduce_1 = require_reduce();@@ -47125,7 +57805,7 @@ var require_sample = __commonJS((exports) => {var require_sampleTime = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.sampleTime = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var sample_1 = require_sample();var interval_1 = require_interval();function sampleTime(period, scheduler3) {@@ -47658,7 +58338,7 @@ var require_throttle = __commonJS((exports) => {var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();var innerFrom_1 = require_innerFrom();- function throttle(durationSelector, config) {+ function throttle2(durationSelector, config) {return lift_1.operate(function(source, subscriber) {var _a2 = config !== null && config !== undefined ? config : {}, _b = _a2.leading, leading = _b === undefined ? true : _b, _c = _a2.trailing, trailing = _c === undefined ? false : _c;var hasValue = false;@@ -47699,14 +58379,14 @@ var require_throttle = __commonJS((exports) => {}));});}- exports.throttle = throttle;+ exports.throttle = throttle2;});// node_modules/rxjs/dist/cjs/internal/operators/throttleTime.jsvar require_throttleTime = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.throttleTime = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var throttle_1 = require_throttle();var timer_1 = require_timer();function throttleTime(duration, scheduler3, config) {@@ -47725,7 +58405,7 @@ var require_throttleTime = __commonJS((exports) => {var require_timeInterval = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.TimeInterval = exports.timeInterval = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();function timeInterval(scheduler3) {@@ -47757,7 +58437,7 @@ var require_timeInterval = __commonJS((exports) => {var require_timeoutWith = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.timeoutWith = undefined;- var async_1 = require_async2();+ var async_1 = require_async3();var isDate_1 = require_isDate();var timeout_1 = require_timeout();function timeoutWith(due, withObservable, scheduler3) {@@ -47925,7 +58605,7 @@ var require_windowTime = __commonJS((exports) => {Object.defineProperty(exports, "__esModule", { value: true });exports.windowTime = undefined;var Subject_1 = require_Subject();- var async_1 = require_async2();+ var async_1 = require_async3();var Subscription_1 = require_Subscription();var lift_1 = require_lift();var OperatorSubscriber_1 = require_OperatorSubscriber();@@ -48370,7 +59050,7 @@ var require_cjs2 = __commonJS((exports) => {Object.defineProperty(exports, "asapScheduler", { enumerable: true, get: function() {return asap_1.asapScheduler;} });- var async_1 = require_async2();+ var async_1 = require_async3();Object.defineProperty(exports, "async", { enumerable: true, get: function() {return async_1.async;} });@@ -48489,7 +59169,7 @@ var require_cjs2 = __commonJS((exports) => {Object.defineProperty(exports, "connectable", { enumerable: true, get: function() {return connectable_1.connectable;} });- var defer_1 = require_defer();+ var defer_1 = require_defer2();Object.defineProperty(exports, "defer", { enumerable: true, get: function() {return defer_1.defer;} });@@ -48553,7 +59233,7 @@ var require_cjs2 = __commonJS((exports) => {Object.defineProperty(exports, "race", { enumerable: true, get: function() {return race_1.race;} });- var range_1 = require_range();+ var range_1 = require_range2();Object.defineProperty(exports, "range", { enumerable: true, get: function() {return range_1.range;} });@@ -48770,7 +59450,7 @@ var require_cjs2 = __commonJS((exports) => {Object.defineProperty(exports, "materialize", { enumerable: true, get: function() {return materialize_1.materialize;} });- var max_1 = require_max();+ var max_1 = require_max2();Object.defineProperty(exports, "max", { enumerable: true, get: function() {return max_1.max;} });@@ -48798,7 +59478,7 @@ var require_cjs2 = __commonJS((exports) => {Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function() {return mergeWith_1.mergeWith;} });- var min_1 = require_min();+ var min_1 = require_min2();Object.defineProperty(exports, "min", { enumerable: true, get: function() {return min_1.min;} });@@ -49020,6275 +59700,9379 @@ var require_cjs2 = __commonJS((exports) => {} });});-// node_modules/run-async/index.js-var require_run_async = __commonJS((exports, module) => {- function isPromise(obj) {- return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";+// node_modules/run-async/index.js+var require_run_async = __commonJS((exports, module) => {+ function isPromise(obj) {+ return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";+ }+ var runAsync = module.exports = function(func, cb, proxyProperty = "async") {+ if (typeof cb === "string") {+ proxyProperty = cb;+ cb = undefined;+ }+ cb = cb || function() {+ };+ return function() {+ var args = arguments;+ var originalThis = this;+ var promise = new Promise(function(resolve, reject) {+ var resolved = false;+ const wrappedResolve = function(value) {+ if (resolved) {+ console.warn("Run-async promise already resolved.");+ }+ resolved = true;+ resolve(value);+ };+ var rejected = false;+ const wrappedReject = function(value) {+ if (rejected) {+ console.warn("Run-async promise already rejected.");+ }+ rejected = true;+ reject(value);+ };+ var usingCallback = false;+ var callbackConflict = false;+ var contextEnded = false;+ var doneFactory = function() {+ if (contextEnded) {+ console.warn("Run-async async() called outside a valid run-async context, callback will be ignored.");+ return function() {+ };+ }+ if (callbackConflict) {+ console.warn(`Run-async wrapped function (async) returned a promise.+Calls to async() callback can have unexpected results.`);+ }+ usingCallback = true;+ return function(err, value) {+ if (err) {+ wrappedReject(err);+ } else {+ wrappedResolve(value);+ }+ };+ };+ var _this;+ if (originalThis && proxyProperty && Proxy) {+ _this = new Proxy(originalThis, {+ get(_target, prop) {+ if (prop === proxyProperty) {+ if (prop in _target) {+ console.warn(`${proxyProperty} property is been shadowed by run-sync`);+ }+ return doneFactory;+ }+ return Reflect.get(...arguments);+ }+ });+ } else {+ _this = { [proxyProperty]: doneFactory };+ }+ var answer = func.apply(_this, Array.prototype.slice.call(args));+ if (usingCallback) {+ if (isPromise(answer)) {+ console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.");+ }+ } else {+ if (isPromise(answer)) {+ callbackConflict = true;+ answer.then(wrappedResolve, wrappedReject);+ } else {+ wrappedResolve(answer);+ }+ }+ contextEnded = true;+ });+ promise.then(cb.bind(null, null), cb);+ return promise;+ };+ };+ runAsync.cb = function(func, cb) {+ return runAsync(function() {+ var args = Array.prototype.slice.call(arguments);+ if (args.length === func.length - 1) {+ args.push(this.async());+ }+ return func.apply(this, args);+ }, cb);+ };+});++// node_modules/commander/esm.mjs+var import__ = __toESM(require_commander(), 1);+var {+ program,+ createCommand,+ createArgument,+ createOption,+ CommanderError,+ InvalidArgumentError,+ InvalidOptionArgumentError,+ Command,+ Argument,+ Option,+ Help+} = import__.default;++// node_modules/@clack/core/dist/index.mjs+var import_sisteransi = __toESM(require_src(), 1);+var import_picocolors = __toESM(require_picocolors(), 1);+import { stdin as $, stdout as j } from "node:process";+import * as f from "node:readline";+import M from "node:readline";+import { WriteStream as U } from "node:tty";+function J({ onlyFirst: t = false } = {}) {+ const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");+ return new RegExp(F, t ? undefined : "g");+}+var Q = J();+function T(t) {+ if (typeof t != "string")+ throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);+ return t.replace(Q, "");+}+function O(t) {+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;+}+var P = { exports: {} };+(function(t) {+ var u = {};+ t.exports = u, u.eastAsianWidth = function(e) {+ var s = e.charCodeAt(0), i = e.length == 2 ? e.charCodeAt(1) : 0, D = s;+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";+ }, u.characterLength = function(e) {+ var s = this.eastAsianWidth(e);+ return s == "F" || s == "W" || s == "A" ? 2 : 1;+ };+ function F(e) {+ return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];+ }+ u.length = function(e) {+ for (var s = F(e), i = 0, D = 0;D < s.length; D++)+ i = i + this.characterLength(s[D]);+ return i;+ }, u.slice = function(e, s, i) {+ textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);+ for (var D = "", C = 0, o = F(e), E = 0;E < o.length; E++) {+ var a = o[E], n = u.length(a);+ if (C >= s - (n == 2 ? 1 : 0))+ if (C + n <= i)+ D += a;+ else+ break;+ C += n;+ }+ return D;+ };+})(P);+var X = P.exports;+var DD = O(X);+var uD = function() {+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;+};+var FD = O(uD);+function A(t, u = {}) {+ if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = T(t), t.length === 0))+ return 0;+ t = t.replace(FD(), " ");+ const F = u.ambiguousIsNarrow ? 1 : 2;+ let e = 0;+ for (const s of t) {+ const i = s.codePointAt(0);+ if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879)+ continue;+ switch (DD.eastAsianWidth(s)) {+ case "F":+ case "W":+ e += 2;+ break;+ case "A":+ e += F;+ break;+ default:+ e += 1;+ }+ }+ return e;+}+var m = 10;+var L = (t = 0) => (u) => `\x1B[${u + t}m`;+var N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;+var I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;+var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };+Object.keys(r.modifier);+var tD = Object.keys(r.color);+var eD = Object.keys(r.bgColor);+[...tD];+function sD() {+ const t = new Map;+ for (const [u, F] of Object.entries(r)) {+ for (const [e, s] of Object.entries(F))+ r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);+ Object.defineProperty(r, u, { value: F, enumerable: false });+ }+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {+ const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));+ if (!F)+ return [0, 0, 0];+ let [e] = F;+ e.length === 3 && (e = [...e].map((i) => i + i).join(""));+ const s = Number.parseInt(e, 16);+ return [s >> 16 & 255, s >> 8 & 255, s & 255];+ }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {+ if (u < 8)+ return 30 + u;+ if (u < 16)+ return 90 + (u - 8);+ let F, e, s;+ if (u >= 232)+ F = ((u - 232) * 10 + 8) / 255, e = F, s = F;+ else {+ u -= 16;+ const C = u % 36;+ F = Math.floor(u / 36) / 5, e = Math.floor(C / 6) / 5, s = C % 6 / 5;+ }+ const i = Math.max(F, e, s) * 2;+ if (i === 0)+ return 30;+ let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));+ return i === 2 && (D += 60), D;+ }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;+}+var iD = sD();+var v = new Set(["\x1B", ""]);+var CD = 39;+var w = "\x07";+var W = "[";+var rD = "]";+var R = "m";+var y = `${rD}8;;`;+var V = (t) => `${v.values().next().value}${W}${t}${R}`;+var z = (t) => `${v.values().next().value}${y}${t}${w}`;+var ED = (t) => t.split(" ").map((u) => A(u));+var _2 = (t, u, F) => {+ const e = [...u];+ let s = false, i = false, D = A(T(t[t.length - 1]));+ for (const [C, o] of e.entries()) {+ const E = A(o);+ if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i = e.slice(C + 1).join("").startsWith(y)), s) {+ i ? o === w && (s = false, i = false) : o === R && (s = false);+ continue;+ }+ D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);+ }+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());+};+var nD = (t) => {+ const u = t.split(" ");+ let F = u.length;+ for (;F > 0 && !(A(u[F - 1]) > 0); )+ F--;+ return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");+};+var oD = (t, u, F = {}) => {+ if (F.trim !== false && t.trim() === "")+ return "";+ let e = "", s, i;+ const D = ED(t);+ let C = [""];+ for (const [E, a] of t.split(" ").entries()) {+ F.trim !== false && (C[C.length - 1] = C[C.length - 1].trimStart());+ let n = A(C[C.length - 1]);+ if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (C.push(""), n = 0), (n > 0 || F.trim === false) && (C[C.length - 1] += " ", n++)), F.hard && D[E] > u) {+ const B = u - n, p = 1 + Math.floor((D[E] - B - 1) / u);+ Math.floor((D[E] - 1) / u) < p && C.push(""), _2(C, a, u);+ continue;+ }+ if (n + D[E] > u && n > 0 && D[E] > 0) {+ if (F.wordWrap === false && n < u) {+ _2(C, a, u);+ continue;+ }+ C.push("");+ }+ if (n + D[E] > u && F.wordWrap === false) {+ _2(C, a, u);+ continue;+ }+ C[C.length - 1] += a;+ }+ F.trim !== false && (C = C.map((E) => nD(E)));+ const o = [...C.join(`+`)];+ for (const [E, a] of o.entries()) {+ if (e += a, v.has(a)) {+ const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o.slice(E).join("")) || { groups: {} };+ if (B.code !== undefined) {+ const p = Number.parseFloat(B.code);+ s = p === CD ? undefined : p;+ } else+ B.uri !== undefined && (i = B.uri.length === 0 ? undefined : B.uri);+ }+ const n = iD.codes.get(Number(s));+ o[E + 1] === `+` ? (i && (e += z("")), s && n && (e += V(n))) : a === `+` && (s && n && (e += V(s)), i && (e += z(i)));+ }+ return e;+};+function G(t, u, F) {+ return String(t).normalize().replace(/\r\n/g, `+`).split(`+`).map((e) => oD(e, u, F)).join(`+`);+}+var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];+var c = { actions: new Set(aD), aliases: new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["\x03", "cancel"], ["escape", "cancel"]]) };+function k(t, u) {+ if (typeof t == "string")+ return c.aliases.get(t) === u;+ for (const F of t)+ if (F !== undefined && k(F, u))+ return true;+ return false;+}+function lD(t, u) {+ if (t === u)+ return;+ const F = t.split(`+`), e = u.split(`+`), s = [];+ for (let i = 0;i < Math.max(F.length, e.length); i++)+ F[i] !== e[i] && s.push(i);+ return s;+}+var xD = globalThis.process.platform.startsWith("win");+var S = Symbol("clack:cancel");+function BD(t) {+ return t === S;+}+function d(t, u) {+ const F = t;+ F.isTTY && F.setRawMode(u);+}+function cD({ input: t = $, output: u = j, overwrite: F = true, hideCursor: e = true } = {}) {+ const s = f.createInterface({ input: t, output: u, prompt: "", tabSize: 1 });+ f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);+ const i = (D, { name: C, sequence: o }) => {+ const E = String(D);+ if (k([E, C, o], "cancel")) {+ e && u.write(import_sisteransi.cursor.show), process.exit(0);+ return;+ }+ if (!F)+ return;+ const a = C === "return" ? 0 : -1, n = C === "return" ? -1 : 0;+ f.moveCursor(u, a, n, () => {+ f.clearLine(u, 1, () => {+ t.once("keypress", i);+ });+ });+ };+ return e && u.write(import_sisteransi.cursor.hide), t.once("keypress", i), () => {+ t.off("keypress", i), e && u.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();+ };+}+var AD = Object.defineProperty;+var pD = (t, u, F) => (u in t) ? AD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;+var h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);++class x {+ constructor(u, F = true) {+ h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", new Map), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");+ const { input: e = $, output: s = j, render: i, signal: D, ...C } = u;+ this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input = e, this.output = s;+ }+ unsubscribe() {+ this._subscribers.clear();+ }+ setSubscriber(u, F) {+ const e = this._subscribers.get(u) ?? [];+ e.push(F), this._subscribers.set(u, e);+ }+ on(u, F) {+ this.setSubscriber(u, { cb: F });+ }+ once(u, F) {+ this.setSubscriber(u, { cb: F, once: true });+ }+ emit(u, ...F) {+ const e = this._subscribers.get(u) ?? [], s = [];+ for (const i of e)+ i.cb(...F), i.once && s.push(() => e.splice(e.indexOf(i), 1));+ for (const i of s)+ i();+ }+ prompt() {+ return new Promise((u, F) => {+ if (this._abortSignal) {+ if (this._abortSignal.aborted)+ return this.state = "cancel", this.close(), u(S);+ this._abortSignal.addEventListener("abort", () => {+ this.state = "cancel", this.close();+ }, { once: true });+ }+ const e = new U(0);+ e._write = (s, i, D) => {+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();+ }, this.input.pipe(e), this.rl = M.createInterface({ input: this.input, output: e, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u(this.value);+ }), this.once("cancel", () => {+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u(S);+ });+ });+ }+ onKeypress(u, F) {+ if (this.state === "error" && (this.state = "active"), F?.name && (!this._track && c.aliases.has(F.name) && this.emit("cursor", c.aliases.get(F.name)), c.actions.has(F.name) && this.emit("cursor", F.name)), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u === "\t" && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {+ if (this.opts.validate) {+ const e = this.opts.validate(this.value);+ e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.value));+ }+ this.state !== "error" && (this.state = "submit");+ }+ k([u, F?.name, F?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();+ }+ close() {+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`+`), d(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();+ }+ restoreCursor() {+ const u = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`+`).length - 1;+ this.output.write(import_sisteransi.cursor.move(-999, u * -1));+ }+ render() {+ const u = G(this._render(this) ?? "", process.stdout.columns, { hard: true });+ if (u !== this._prevFrame) {+ if (this.state === "initial")+ this.output.write(import_sisteransi.cursor.hide);+ else {+ const F = lD(this._prevFrame, u);+ if (this.restoreCursor(), F && F?.length === 1) {+ const e = F[0];+ this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.lines(1));+ const s = u.split(`+`);+ this.output.write(s[e]), this._prevFrame = u, this.output.write(import_sisteransi.cursor.move(0, s.length - e - 1));+ return;+ }+ if (F && F?.length > 1) {+ const e = F[0];+ this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.down());+ const s = u.split(`+`).slice(e);+ this.output.write(s.join(`+`)), this._prevFrame = u;+ return;+ }+ this.output.write(import_sisteransi.erase.down());+ }+ this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;+ }+ }+}++class fD extends x {+ get cursor() {+ return this.value ? 0 : 1;+ }+ get _value() {+ return this.cursor === 0;+ }+ constructor(u) {+ super(u, false), this.value = !!u.initialValue, this.on("value", () => {+ this.value = this._value;+ }), this.on("confirm", (F) => {+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();+ }), this.on("cursor", () => {+ this.value = !this.value;+ });+ }+}+var bD = Object.defineProperty;+var mD = (t, u, F) => (u in t) ? bD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;+var Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);+var wD = class extends x {+ constructor(u) {+ super(u, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {+ F === "a" && this.toggleAll();+ }), this.on("cursor", (F) => {+ switch (F) {+ case "left":+ case "up":+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;+ break;+ case "down":+ case "right":+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;+ break;+ case "space":+ this.toggleValue();+ break;+ }+ });+ }+ get _value() {+ return this.options[this.cursor].value;+ }+ toggleAll() {+ const u = this.value.length === this.options.length;+ this.value = u ? [] : this.options.map((F) => F.value);+ }+ toggleValue() {+ const u = this.value.includes(this._value);+ this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];+ }+};+var SD = Object.defineProperty;+var $D = (t, u, F) => (u in t) ? SD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;+var q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);++class jD extends x {+ constructor(u) {+ super(u, false), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {+ switch (F) {+ case "left":+ case "up":+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;+ break;+ case "down":+ case "right":+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;+ break;+ }+ this.changeValue();+ });+ }+ get _value() {+ return this.options[this.cursor];+ }+ changeValue() {+ this.value = this._value.value;+ }+}+class PD extends x {+ get valueWithCursor() {+ if (this.state === "submit")+ return this.value;+ if (this.cursor >= this.value.length)+ return `${this.value}█`;+ const u = this.value.slice(0, this.cursor), [F, ...e] = this.value.slice(this.cursor);+ return `${u}${import_picocolors.default.inverse(F)}${e.join("")}`;+ }+ get cursor() {+ return this._cursor;+ }+ constructor(u) {+ super(u), this.on("finalize", () => {+ this.value || (this.value = u.defaultValue);+ });+ }+}++// node_modules/@clack/prompts/dist/index.mjs+var import_picocolors2 = __toESM(require_picocolors(), 1);+var import_sisteransi2 = __toESM(require_src(), 1);+import g2 from "node:process";+function ce() {+ return g2.platform !== "win32" ? g2.env.TERM !== "linux" : !!g2.env.CI || !!g2.env.WT_SESSION || !!g2.env.TERMINUS_SUBLIME || g2.env.ConEmuTask === "{cmd::Cmder}" || g2.env.TERM_PROGRAM === "Terminus-Sublime" || g2.env.TERM_PROGRAM === "vscode" || g2.env.TERM === "xterm-256color" || g2.env.TERM === "alacritty" || g2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";+}+var V2 = ce();+var u = (t, n) => V2 ? t : n;+var le = u("◆", "*");+var L2 = u("■", "x");+var W2 = u("▲", "x");+var C = u("◇", "o");+var ue = u("┌", "T");+var o = u("│", "|");+var d2 = u("└", "—");+var k2 = u("●", ">");+var P2 = u("○", " ");+var A2 = u("◻", "[•]");+var T2 = u("◼", "[+]");+var F = u("◻", "[ ]");+var $e = u("▪", "•");+var _3 = u("─", "-");+var me = u("╮", "+");+var de = u("├", "+");+var pe = u("╯", "+");+var q2 = u("●", "•");+var D = u("◆", "*");+var U2 = u("▲", "!");+var K = u("■", "x");+var w2 = (t) => {+ switch (t) {+ case "initial":+ case "active":+ return import_picocolors2.default.cyan(le);+ case "cancel":+ return import_picocolors2.default.red(L2);+ case "error":+ return import_picocolors2.default.yellow(W2);+ case "submit":+ return import_picocolors2.default.green(C);+ }+};+var B = (t) => {+ const { cursor: n, options: s, style: r2 } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c2 = Math.min(a, Math.max(i, 5));+ let l2 = 0;+ n >= l2 + c2 - 3 ? l2 = Math.max(Math.min(n - c2 + 3, s.length - c2), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));+ const $2 = c2 < s.length && l2 > 0, p = c2 < s.length && l2 + c2 < s.length;+ return s.slice(l2, l2 + c2).map((M2, v2, x2) => {+ const j2 = v2 === 0 && $2, E = v2 === x2.length - 1 && p;+ return j2 || E ? import_picocolors2.default.dim("...") : r2(M2, v2 + l2 === n);+ });+};+var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {+ const n = `${import_picocolors2.default.gray(o)}+${w2(this.state)} ${t.message}+`, s = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), r2 = this.value ? this.valueWithCursor : s;+ switch (this.state) {+ case "error":+ return `${n.trim()}+${import_picocolors2.default.yellow(o)} ${r2}+${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}+`;+ case "submit":+ return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;+ case "cancel":+ return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `+${import_picocolors2.default.gray(o)}` : ""}`;+ default:+ return `${n}${import_picocolors2.default.cyan(o)} ${r2}+${import_picocolors2.default.cyan(d2)}+`;+ }+} }).prompt();+var ye = (t) => {+ const n = t.active ?? "Yes", s = t.inactive ?? "No";+ return new fD({ active: n, inactive: s, initialValue: t.initialValue ?? true, render() {+ const r2 = `${import_picocolors2.default.gray(o)}+${w2(this.state)} ${t.message}+`, i = this.value ? n : s;+ switch (this.state) {+ case "submit":+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(i)}`;+ case "cancel":+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}+${import_picocolors2.default.gray(o)}`;+ default:+ return `${r2}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(k2)} ${s}`}+${import_picocolors2.default.cyan(d2)}+`;+ }+ } }).prompt();+};+var ve = (t) => {+ const n = (s, r2) => {+ const i = s.label ?? String(s.value);+ switch (r2) {+ case "selected":+ return `${import_picocolors2.default.dim(i)}`;+ case "active":+ return `${import_picocolors2.default.green(k2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;+ case "cancelled":+ return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}`;+ default:+ return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(i)}`;+ }+ };+ return new jD({ options: t.options, initialValue: t.initialValue, render() {+ const s = `${import_picocolors2.default.gray(o)}+${w2(this.state)} ${t.message}+`;+ switch (this.state) {+ case "submit":+ return `${s}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;+ case "cancel":+ return `${s}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}+${import_picocolors2.default.gray(o)}`;+ default:+ return `${s}${import_picocolors2.default.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r2, i) => n(r2, i ? "active" : "inactive") }).join(`+${import_picocolors2.default.cyan(o)} `)}+${import_picocolors2.default.cyan(d2)}+`;+ }+ } }).prompt();+};+var fe = (t) => {+ const n = (s, r2) => {+ const i = s.label ?? String(s.value);+ return r2 === "active" ? `${import_picocolors2.default.cyan(A2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : r2 === "selected" ? `${import_picocolors2.default.green(T2)} ${import_picocolors2.default.dim(i)}` : r2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}` : r2 === "active-selected" ? `${import_picocolors2.default.green(T2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : r2 === "submitted" ? `${import_picocolors2.default.dim(i)}` : `${import_picocolors2.default.dim(F)} ${import_picocolors2.default.dim(i)}`;+ };+ return new wD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(s) {+ if (this.required && s.length === 0)+ return `Please select at least one option.+${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;+ }, render() {+ const s = `${import_picocolors2.default.gray(o)}+${w2(this.state)} ${t.message}+`, r2 = (i, a) => {+ const c2 = this.value.includes(i.value);+ return a && c2 ? n(i, "active-selected") : c2 ? n(i, "selected") : n(i, a ? "active" : "inactive");+ };+ switch (this.state) {+ case "submit":+ return `${s}${import_picocolors2.default.gray(o)} ${this.options.filter(({ value: i }) => this.value.includes(i)).map((i) => n(i, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;+ case "cancel": {+ const i = this.options.filter(({ value: a }) => this.value.includes(a)).map((a) => n(a, "cancelled")).join(import_picocolors2.default.dim(", "));+ return `${s}${import_picocolors2.default.gray(o)} ${i.trim() ? `${i}+${import_picocolors2.default.gray(o)}` : ""}`;+ }+ case "error": {+ const i = this.error.split(`+`).map((a, c2) => c2 === 0 ? `${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(a)}` : ` ${a}`).join(`+`);+ return `${s + import_picocolors2.default.yellow(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`+${import_picocolors2.default.yellow(o)} `)}+${i}+`;+ }+ default:+ return `${s}${import_picocolors2.default.cyan(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`+${import_picocolors2.default.cyan(o)} `)}+${import_picocolors2.default.cyan(d2)}+`;+ }+ } }).prompt();+};+var xe = (t = "") => {+ process.stdout.write(`${import_picocolors2.default.gray(d2)} ${import_picocolors2.default.red(t)}++`);+};+var Ie = (t = "") => {+ process.stdout.write(`${import_picocolors2.default.gray(ue)} ${t}+`);+};+var Se = (t = "") => {+ process.stdout.write(`${import_picocolors2.default.gray(o)}+${import_picocolors2.default.gray(d2)} ${t}++`);+};+var J2 = `${import_picocolors2.default.gray(o)} `;+var Y2 = ({ indicator: t = "dots" } = {}) => {+ const n = V2 ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], s = V2 ? 80 : 120, r2 = process.env.CI === "true";+ let i, a, c2 = false, l2 = "", $2, p = performance.now();+ const M2 = (m2) => {+ const h2 = m2 > 1 ? "Something went wrong" : "Canceled";+ c2 && N2(h2, m2);+ }, v2 = () => M2(2), x2 = () => M2(1), j2 = () => {+ process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", x2), process.on("SIGTERM", x2), process.on("exit", M2);+ }, E = () => {+ process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", x2), process.removeListener("SIGTERM", x2), process.removeListener("exit", M2);+ }, O2 = () => {+ if ($2 === undefined)+ return;+ r2 && process.stdout.write(`+`);+ const m2 = $2.split(`+`);+ process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));+ }, R2 = (m2) => m2.replace(/\.+$/, ""), G2 = (m2) => {+ const h2 = (performance.now() - m2) / 1000, y2 = Math.floor(h2 / 60), I2 = Math.floor(h2 % 60);+ return y2 > 0 ? `[${y2}m ${I2}s]` : `[${I2}s]`;+ }, H = (m2 = "") => {+ c2 = true, i = cD(), l2 = R2(m2), p = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}+`);+ let h2 = 0, y2 = 0;+ j2(), a = setInterval(() => {+ if (r2 && l2 === $2)+ return;+ O2(), $2 = l2;+ const I2 = import_picocolors2.default.magenta(n[h2]);+ if (r2)+ process.stdout.write(`${I2} ${l2}...`);+ else if (t === "timer")+ process.stdout.write(`${I2} ${l2} ${G2(p)}`);+ else {+ const z2 = ".".repeat(Math.floor(y2)).slice(0, 3);+ process.stdout.write(`${I2} ${l2}${z2}`);+ }+ h2 = h2 + 1 < n.length ? h2 + 1 : 0, y2 = y2 < n.length ? y2 + 0.125 : 0;+ }, s);+ }, N2 = (m2 = "", h2 = 0) => {+ c2 = false, clearInterval(a), O2();+ const y2 = h2 === 0 ? import_picocolors2.default.green(C) : h2 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);+ l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${y2} ${l2} ${G2(p)}+`) : process.stdout.write(`${y2} ${l2}+`), E(), i();+ };+ return { start: H, stop: N2, message: (m2 = "") => {+ l2 = R2(m2 ?? l2);+ } };+};++// src/commands/login/utils/cli-login.ts+var import_async_listen = __toESM(require_dist(), 1);+import http from "http";+import { spawn } from "child_process";+import url from "url";++// node_modules/nanoid/index.js+import { webcrypto as crypto } from "node:crypto";+var POOL_SIZE_MULTIPLIER = 128;+var pool;+var poolOffset;+function fillPool(bytes) {+ if (!pool || pool.length < bytes) {+ pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);+ crypto.getRandomValues(pool);+ poolOffset = 0;+ } else if (poolOffset + bytes > pool.length) {+ crypto.getRandomValues(pool);+ poolOffset = 0;+ }+ poolOffset += bytes;+}+function random(bytes) {+ fillPool(bytes |= 0);+ return pool.subarray(poolOffset - bytes, poolOffset);+}+function customRandom(alphabet, defaultSize, getRandom) {+ let mask = (2 << 31 - Math.clz32(alphabet.length - 1 | 1)) - 1;+ let step = Math.ceil(1.6 * mask * defaultSize / alphabet.length);+ return (size = defaultSize) => {+ let id = "";+ while (true) {+ let bytes = getRandom(step);+ let i = step;+ while (i--) {+ id += alphabet[bytes[i] & mask] || "";+ if (id.length >= size)+ return id;+ }+ }+ };+}+function customAlphabet(alphabet, size = 21) {+ return customRandom(alphabet, size, random);+}++// node_modules/@topcli/spinner/dist/index.js+var import_cli_spinners = __toESM(require_cli_spinners(), 1);+import { EventEmitter } from "events";+import { performance as performance2 } from "perf_hooks";+import readline from "readline";++// node_modules/ansi-regex/index.js+function ansiRegex({ onlyFirst = false } = {}) {+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";+ const pattern = [+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"+ ].join("|");+ return new RegExp(pattern, onlyFirst ? undefined : "g");+}++// node_modules/strip-ansi/index.js+var regex = ansiRegex();+function stripAnsi(string) {+ if (typeof string !== "string") {+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);+ }+ return string.replace(regex, "");+}++// node_modules/@topcli/wcwidth/src/combining.js+var combining_default = [+ [768, 879],+ [1155, 1158],+ [1160, 1161],+ [1425, 1469],+ [1471, 1471],+ [1473, 1474],+ [1476, 1477],+ [1479, 1479],+ [1536, 1539],+ [1552, 1557],+ [1611, 1630],+ [1648, 1648],+ [1750, 1764],+ [1767, 1768],+ [1770, 1773],+ [1807, 1807],+ [1809, 1809],+ [1840, 1866],+ [1958, 1968],+ [2027, 2035],+ [2305, 2306],+ [2364, 2364],+ [2369, 2376],+ [2381, 2381],+ [2385, 2388],+ [2402, 2403],+ [2433, 2433],+ [2492, 2492],+ [2497, 2500],+ [2509, 2509],+ [2530, 2531],+ [2561, 2562],+ [2620, 2620],+ [2625, 2626],+ [2631, 2632],+ [2635, 2637],+ [2672, 2673],+ [2689, 2690],+ [2748, 2748],+ [2753, 2757],+ [2759, 2760],+ [2765, 2765],+ [2786, 2787],+ [2817, 2817],+ [2876, 2876],+ [2879, 2879],+ [2881, 2883],+ [2893, 2893],+ [2902, 2902],+ [2946, 2946],+ [3008, 3008],+ [3021, 3021],+ [3134, 3136],+ [3142, 3144],+ [3146, 3149],+ [3157, 3158],+ [3260, 3260],+ [3263, 3263],+ [3270, 3270],+ [3276, 3277],+ [3298, 3299],+ [3393, 3395],+ [3405, 3405],+ [3530, 3530],+ [3538, 3540],+ [3542, 3542],+ [3633, 3633],+ [3636, 3642],+ [3655, 3662],+ [3761, 3761],+ [3764, 3769],+ [3771, 3772],+ [3784, 3789],+ [3864, 3865],+ [3893, 3893],+ [3895, 3895],+ [3897, 3897],+ [3953, 3966],+ [3968, 3972],+ [3974, 3975],+ [3984, 3991],+ [3993, 4028],+ [4038, 4038],+ [4141, 4144],+ [4146, 4146],+ [4150, 4151],+ [4153, 4153],+ [4184, 4185],+ [4448, 4607],+ [4959, 4959],+ [5906, 5908],+ [5938, 5940],+ [5970, 5971],+ [6002, 6003],+ [6068, 6069],+ [6071, 6077],+ [6086, 6086],+ [6089, 6099],+ [6109, 6109],+ [6155, 6157],+ [6313, 6313],+ [6432, 6434],+ [6439, 6440],+ [6450, 6450],+ [6457, 6459],+ [6679, 6680],+ [6912, 6915],+ [6964, 6964],+ [6966, 6970],+ [6972, 6972],+ [6978, 6978],+ [7019, 7027],+ [7616, 7626],+ [7678, 7679],+ [8203, 8207],+ [8234, 8238],+ [8288, 8291],+ [8298, 8303],+ [8400, 8431],+ [12330, 12335],+ [12441, 12442],+ [43014, 43014],+ [43019, 43019],+ [43045, 43046],+ [64286, 64286],+ [65024, 65039],+ [65056, 65059],+ [65279, 65279],+ [65529, 65531],+ [68097, 68099],+ [68101, 68102],+ [68108, 68111],+ [68152, 68154],+ [68159, 68159],+ [119143, 119145],+ [119155, 119170],+ [119173, 119179],+ [119210, 119213],+ [119362, 119364],+ [917505, 917505],+ [917536, 917631],+ [917760, 917999]+];++// node_modules/@topcli/wcwidth/index.js+var kDefaultOptions = {+ nul: 0,+ control: 0+};+function wcswidth(str, opts = kDefaultOptions) {+ if (typeof str !== "string") {+ return wcwidth(str, opts);+ }+ let width = 0;+ for (let id = 0;id < str.length; id++) {+ const charWidth = wcwidth(str.charCodeAt(id), opts);+ if (charWidth < 0) {+ return -1;+ }+ width += charWidth;+ }+ return width;+}+function wcwidth(ucs, opts) {+ if (ucs === 0) {+ return opts.nul;+ }+ if (ucs < 32 || ucs >= 127 && ucs < 160) {+ return opts.control;+ }+ if (bisearch(ucs)) {+ return 0;+ }+ return 1 + (ucs >= 4352 && (ucs <= 4447 || ucs === 9001 || ucs === 9002 || ucs >= 11904 && ucs <= 42191 && ucs !== 12351 || ucs >= 44032 && ucs <= 55203 || ucs >= 63744 && ucs <= 64255 || ucs >= 65040 && ucs <= 65049 || ucs >= 65072 && ucs <= 65135 || ucs >= 65280 && ucs <= 65376 || ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141));+}+function bisearch(ucs) {+ let min = 0;+ let max = combining_default.length - 1;+ if (ucs < combining_default[0][0] || ucs > combining_default[max][1]) {+ return false;+ }+ while (max >= min) {+ const mid = Math.floor((min + max) / 2);+ if (ucs > combining_default[mid][1]) {+ min = mid + 1;+ } else if (ucs < combining_default[mid][0]) {+ max = mid - 1;+ } else {+ return true;+ }+ }+ return false;+}++// node_modules/@topcli/spinner/node_modules/kleur/index.mjs+var FORCE_COLOR;+var NODE_DISABLE_COLORS;+var NO_COLOR;+var TERM;+var isTTY = true;+if (typeof process !== "undefined") {+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});+ isTTY = process.stdout && process.stdout.isTTY;+}+var $2 = {+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),+ reset: init(0, 0),+ bold: init(1, 22),+ dim: init(2, 22),+ italic: init(3, 23),+ underline: init(4, 24),+ inverse: init(7, 27),+ hidden: init(8, 28),+ strikethrough: init(9, 29),+ black: init(30, 39),+ red: init(31, 39),+ green: init(32, 39),+ yellow: init(33, 39),+ blue: init(34, 39),+ magenta: init(35, 39),+ cyan: init(36, 39),+ white: init(37, 39),+ gray: init(90, 39),+ grey: init(90, 39),+ bgBlack: init(40, 49),+ bgRed: init(41, 49),+ bgGreen: init(42, 49),+ bgYellow: init(43, 49),+ bgBlue: init(44, 49),+ bgMagenta: init(45, 49),+ bgCyan: init(46, 49),+ bgWhite: init(47, 49)+};+function run(arr, str) {+ let i = 0, tmp, beg = "", end = "";+ for (;i < arr.length; i++) {+ tmp = arr[i];+ beg += tmp.open;+ end += tmp.close;+ if (!!~str.indexOf(tmp.close)) {+ str = str.replace(tmp.rgx, tmp.close + tmp.open);+ }+ }+ return beg + str + end;+}+function chain(has, keys) {+ let ctx = { has, keys };+ ctx.reset = $2.reset.bind(ctx);+ ctx.bold = $2.bold.bind(ctx);+ ctx.dim = $2.dim.bind(ctx);+ ctx.italic = $2.italic.bind(ctx);+ ctx.underline = $2.underline.bind(ctx);+ ctx.inverse = $2.inverse.bind(ctx);+ ctx.hidden = $2.hidden.bind(ctx);+ ctx.strikethrough = $2.strikethrough.bind(ctx);+ ctx.black = $2.black.bind(ctx);+ ctx.red = $2.red.bind(ctx);+ ctx.green = $2.green.bind(ctx);+ ctx.yellow = $2.yellow.bind(ctx);+ ctx.blue = $2.blue.bind(ctx);+ ctx.magenta = $2.magenta.bind(ctx);+ ctx.cyan = $2.cyan.bind(ctx);+ ctx.white = $2.white.bind(ctx);+ ctx.gray = $2.gray.bind(ctx);+ ctx.grey = $2.grey.bind(ctx);+ ctx.bgBlack = $2.bgBlack.bind(ctx);+ ctx.bgRed = $2.bgRed.bind(ctx);+ ctx.bgGreen = $2.bgGreen.bind(ctx);+ ctx.bgYellow = $2.bgYellow.bind(ctx);+ ctx.bgBlue = $2.bgBlue.bind(ctx);+ ctx.bgMagenta = $2.bgMagenta.bind(ctx);+ ctx.bgCyan = $2.bgCyan.bind(ctx);+ ctx.bgWhite = $2.bgWhite.bind(ctx);+ return ctx;+}+function init(open, close) {+ let blk = {+ open: `\x1B[${open}m`,+ close: `\x1B[${close}m`,+ rgx: new RegExp(`\\x1b\\[${close}m`, "g")+ };+ return function(txt) {+ if (this !== undefined && this.has !== undefined) {+ !!~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));+ return txt === undefined ? this : $2.enabled ? run(this.keys, txt + "") : txt + "";+ }+ return txt === undefined ? chain([open], [blk]) : $2.enabled ? run([blk], txt + "") : txt + "";+ };+}+var kleur_default = $2;++// node_modules/@topcli/spinner/dist/index.js+var __accessCheck = (obj, member, msg) => {+ if (!member.has(obj))+ throw TypeError("Cannot " + msg);+};+var __privateGet = (obj, member, getter) => {+ __accessCheck(obj, member, "read from private field");+ return getter ? getter.call(obj) : member.get(obj);+};+var __privateAdd = (obj, member, value) => {+ if (member.has(obj))+ throw TypeError("Cannot add the same private member more than once");+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);+};+var __privateSet = (obj, member, value, setter) => {+ __accessCheck(obj, member, "write to private field");+ setter ? setter.call(obj, value) : member.set(obj, value);+ return value;+};+var __privateWrapper = (obj, member, setter, getter) => ({+ set _(value) {+ __privateSet(obj, member, value, setter);+ },+ get _() {+ return __privateGet(obj, member, getter);+ }+});+var __privateMethod = (obj, member, method) => {+ __accessCheck(obj, member, "access private method");+ return method;+};+var internalSpinnerCount = 0;+var kDefaultSpinnerName = "dots";+var kLogSymbols = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color" ? { success: kleur_default.bold().green("✔"), error: kleur_default.bold().red("✖") } : { success: kleur_default.bold().green("√"), error: kleur_default.bold().red("×") };+var _verbose;+var _started;+var _spinner;+var _text;+var _prefix;+var _color;+var _interval;+var _frameIndex;+var _spinnerPos;+var _startTime;+var _getSpinnerFrame;+var getSpinnerFrame_fn;+var _lineToRender;+var lineToRender_fn;+var _renderLine;+var renderLine_fn;+var _stop;+var stop_fn;+var Spinner = class extends EventEmitter {+ constructor(options = {}) {+ super();+ __privateAdd(this, _getSpinnerFrame);+ __privateAdd(this, _lineToRender);+ __privateAdd(this, _renderLine);+ __privateAdd(this, _stop);+ this.stream = process.stdout;+ __privateAdd(this, _verbose, true);+ __privateAdd(this, _started, false);+ __privateAdd(this, _spinner, undefined);+ __privateAdd(this, _text, "");+ __privateAdd(this, _prefix, "");+ __privateAdd(this, _color, undefined);+ __privateAdd(this, _interval, null);+ __privateAdd(this, _frameIndex, 0);+ __privateAdd(this, _spinnerPos, 0);+ __privateAdd(this, _startTime, undefined);+ __privateSet(this, _verbose, options.verbose ?? true);+ if (!__privateGet(this, _verbose)) {+ return;+ }+ const { name = kDefaultSpinnerName, color = null } = options;+ __privateSet(this, _spinner, name in import_cli_spinners.default ? import_cli_spinners.default[name] : import_cli_spinners.default[kDefaultSpinnerName]);+ if (color === null) {+ __privateSet(this, _color, (str) => str);+ } else {+ __privateSet(this, _color, color in kleur_default ? kleur_default[color] : kleur_default.white);+ }+ }+ static reset() {+ internalSpinnerCount = 0;+ }+ get started() {+ return __privateGet(this, _started);+ }+ get verbose() {+ return __privateGet(this, _verbose);+ }+ get elapsedTime() {+ return performance2.now() - __privateGet(this, _startTime);+ }+ get startTime() {+ return __privateGet(this, _startTime);+ }+ set text(value) {+ if (typeof value == "string") {+ __privateSet(this, _text, value.replaceAll(/\r?\n|\r/gm, ""));+ }+ }+ get text() {+ return __privateGet(this, _text);+ }+ start(text, options = {}) {+ __privateSet(this, _started, true);+ this.text = text;+ if (typeof options.withPrefix === "string") {+ __privateSet(this, _prefix, options.withPrefix);+ }+ this.emit("start");+ __privateSet(this, _spinnerPos, internalSpinnerCount++);+ __privateSet(this, _startTime, performance2.now());+ if (!__privateGet(this, _verbose)) {+ return this;+ }+ __privateSet(this, _frameIndex, 0);+ this.stream.write(__privateMethod(this, _lineToRender, lineToRender_fn).call(this) + `+`);+ __privateSet(this, _interval, setInterval(() => __privateMethod(this, _renderLine, renderLine_fn).call(this), __privateGet(this, _spinner).interval));+ return this;+ }+ succeed(text) {+ if (__privateGet(this, _started)) {+ __privateMethod(this, _stop, stop_fn).call(this, text);+ __privateMethod(this, _renderLine, renderLine_fn).call(this, kLogSymbols.success);+ this.emit("succeed");+ }+ return this;+ }+ failed(text) {+ if (__privateGet(this, _started)) {+ __privateMethod(this, _stop, stop_fn).call(this, text);+ __privateMethod(this, _renderLine, renderLine_fn).call(this, kLogSymbols.error);+ this.emit("failed");+ }+ return this;+ }+};+_verbose = new WeakMap;+_started = new WeakMap;+_spinner = new WeakMap;+_text = new WeakMap;+_prefix = new WeakMap;+_color = new WeakMap;+_interval = new WeakMap;+_frameIndex = new WeakMap;+_spinnerPos = new WeakMap;+_startTime = new WeakMap;+_getSpinnerFrame = new WeakSet;+getSpinnerFrame_fn = function(spinnerSymbol) {+ if (typeof spinnerSymbol === "string") {+ return spinnerSymbol;+ }+ const { frames } = __privateGet(this, _spinner);+ const frame = frames[__privateGet(this, _frameIndex)];+ __privateSet(this, _frameIndex, ++__privateWrapper(this, _frameIndex)._ < frames.length ? __privateGet(this, _frameIndex) : 0);+ return __privateGet(this, _color).call(this, frame);+};+_lineToRender = new WeakSet;+lineToRender_fn = function(spinnerSymbol) {+ const terminalCol = this.stream.columns;+ const defaultRaw = `${__privateMethod(this, _getSpinnerFrame, getSpinnerFrame_fn).call(this, spinnerSymbol)} ${__privateGet(this, _prefix)}${this.text}`;+ let regexArray = [];+ let count = 0;+ while (true) {+ regexArray = defaultRaw.slice(0, terminalCol + count).match(ansiRegex()) ?? [];+ if (regexArray.length === count) {+ break;+ }+ count = regexArray.length;+ }+ count += regexArray.reduce((prev, curr) => prev + wcswidth(curr), 0);+ return wcswidth(stripAnsi(defaultRaw)) > terminalCol ? `${defaultRaw.slice(0, terminalCol + count)}\x1B[0m` : defaultRaw;+};+_renderLine = new WeakSet;+renderLine_fn = function(spinnerSymbol) {+ if (!__privateGet(this, _verbose)) {+ return;+ }+ const moveCursorPos = internalSpinnerCount - __privateGet(this, _spinnerPos);+ readline.moveCursor(this.stream, 0, -moveCursorPos);+ const line = __privateMethod(this, _lineToRender, lineToRender_fn).call(this, spinnerSymbol);+ readline.clearLine(this.stream, 0);+ this.stream.write(line);+ readline.moveCursor(this.stream, -wcswidth(line), moveCursorPos);+};+_stop = new WeakSet;+stop_fn = function(text) {+ this.text = text;+ __privateSet(this, _started, false);+ if (__privateGet(this, _interval) !== null) {+ clearInterval(__privateGet(this, _interval));+ }+};++// node_modules/chalk/source/vendor/ansi-styles/index.js+var ANSI_BACKGROUND_OFFSET = 10;+var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;+var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;+var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;+var styles = {+ modifier: {+ reset: [0, 0],+ bold: [1, 22],+ dim: [2, 22],+ italic: [3, 23],+ underline: [4, 24],+ overline: [53, 55],+ inverse: [7, 27],+ hidden: [8, 28],+ strikethrough: [9, 29]+ },+ color: {+ black: [30, 39],+ red: [31, 39],+ green: [32, 39],+ yellow: [33, 39],+ blue: [34, 39],+ magenta: [35, 39],+ cyan: [36, 39],+ white: [37, 39],+ blackBright: [90, 39],+ gray: [90, 39],+ grey: [90, 39],+ redBright: [91, 39],+ greenBright: [92, 39],+ yellowBright: [93, 39],+ blueBright: [94, 39],+ magentaBright: [95, 39],+ cyanBright: [96, 39],+ whiteBright: [97, 39]+ },+ bgColor: {+ bgBlack: [40, 49],+ bgRed: [41, 49],+ bgGreen: [42, 49],+ bgYellow: [43, 49],+ bgBlue: [44, 49],+ bgMagenta: [45, 49],+ bgCyan: [46, 49],+ bgWhite: [47, 49],+ bgBlackBright: [100, 49],+ bgGray: [100, 49],+ bgGrey: [100, 49],+ bgRedBright: [101, 49],+ bgGreenBright: [102, 49],+ bgYellowBright: [103, 49],+ bgBlueBright: [104, 49],+ bgMagentaBright: [105, 49],+ bgCyanBright: [106, 49],+ bgWhiteBright: [107, 49]}- var runAsync = module.exports = function(func, cb, proxyProperty = "async") {- if (typeof cb === "string") {- proxyProperty = cb;- cb = undefined;+};+var modifierNames = Object.keys(styles.modifier);+var foregroundColorNames = Object.keys(styles.color);+var backgroundColorNames = Object.keys(styles.bgColor);+var colorNames = [...foregroundColorNames, ...backgroundColorNames];+function assembleStyles() {+ const codes = new Map;+ for (const [groupName, group] of Object.entries(styles)) {+ for (const [styleName, style] of Object.entries(group)) {+ styles[styleName] = {+ open: `\x1B[${style[0]}m`,+ close: `\x1B[${style[1]}m`+ };+ group[styleName] = styles[styleName];+ codes.set(style[0], style[1]);}- cb = cb || function() {- };- return function() {- var args = arguments;- var originalThis = this;- var promise = new Promise(function(resolve, reject) {- var resolved = false;- const wrappedResolve = function(value) {- if (resolved) {- console.warn("Run-async promise already resolved.");- }- resolved = true;- resolve(value);- };- var rejected = false;- const wrappedReject = function(value) {- if (rejected) {- console.warn("Run-async promise already rejected.");- }- rejected = true;- reject(value);- };- var usingCallback = false;- var callbackConflict = false;- var contextEnded = false;- var doneFactory = function() {- if (contextEnded) {- console.warn("Run-async async() called outside a valid run-async context, callback will be ignored.");- return function() {- };+ Object.defineProperty(styles, groupName, {+ value: group,+ enumerable: false+ });+ }+ Object.defineProperty(styles, "codes", {+ value: codes,+ enumerable: false+ });+ styles.color.close = "\x1B[39m";+ styles.bgColor.close = "\x1B[49m";+ styles.color.ansi = wrapAnsi16();+ styles.color.ansi256 = wrapAnsi256();+ styles.color.ansi16m = wrapAnsi16m();+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);+ Object.defineProperties(styles, {+ rgbToAnsi256: {+ value(red, green, blue) {+ if (red === green && green === blue) {+ if (red < 8) {+ return 16;}- if (callbackConflict) {- console.warn(`Run-async wrapped function (async) returned a promise.-Calls to async() callback can have unexpected results.`);+ if (red > 248) {+ return 231;}- usingCallback = true;- return function(err, value) {- if (err) {- wrappedReject(err);- } else {- wrappedResolve(value);- }- };- };- var _this;- if (originalThis && proxyProperty && Proxy) {- _this = new Proxy(originalThis, {- get(_target, prop) {- if (prop === proxyProperty) {- if (prop in _target) {- console.warn(`${proxyProperty} property is been shadowed by run-sync`);- }- return doneFactory;- }- return Reflect.get(...arguments);- }- });- } else {- _this = { [proxyProperty]: doneFactory };+ return Math.round((red - 8) / 247 * 24) + 232;}- var answer = func.apply(_this, Array.prototype.slice.call(args));- if (usingCallback) {- if (isPromise(answer)) {- console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.");- }+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);+ },+ enumerable: false+ },+ hexToRgb: {+ value(hex) {+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));+ if (!matches) {+ return [0, 0, 0];+ }+ let [colorString] = matches;+ if (colorString.length === 3) {+ colorString = [...colorString].map((character) => character + character).join("");+ }+ const integer = Number.parseInt(colorString, 16);+ return [+ integer >> 16 & 255,+ integer >> 8 & 255,+ integer & 255+ ];+ },+ enumerable: false+ },+ hexToAnsi256: {+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),+ enumerable: false+ },+ ansi256ToAnsi: {+ value(code) {+ if (code < 8) {+ return 30 + code;+ }+ if (code < 16) {+ return 90 + (code - 8);+ }+ let red;+ let green;+ let blue;+ if (code >= 232) {+ red = ((code - 232) * 10 + 8) / 255;+ green = red;+ blue = red;} else {- if (isPromise(answer)) {- callbackConflict = true;- answer.then(wrappedResolve, wrappedReject);- } else {- wrappedResolve(answer);- }+ code -= 16;+ const remainder = code % 36;+ red = Math.floor(code / 36) / 5;+ green = Math.floor(remainder / 6) / 5;+ blue = remainder % 6 / 5;}- contextEnded = true;- });- promise.then(cb.bind(null, null), cb);- return promise;- };- };- runAsync.cb = function(func, cb) {- return runAsync(function() {- var args = Array.prototype.slice.call(arguments);- if (args.length === func.length - 1) {- args.push(this.async());- }- return func.apply(this, args);- }, cb);- };-});--// node_modules/commander/esm.mjs-var import__ = __toESM(require_commander(), 1);-var {- program,- createCommand,- createArgument,- createOption,- CommanderError,- InvalidArgumentError,- InvalidOptionArgumentError,- Command,- Argument,- Option,- Help-} = import__.default;--// node_modules/@clack/core/dist/index.mjs-var import_sisteransi = __toESM(require_src(), 1);-var import_picocolors = __toESM(require_picocolors(), 1);-import { stdin as $, stdout as j } from "node:process";-import * as f from "node:readline";-import M from "node:readline";-import { WriteStream as U } from "node:tty";-function J({ onlyFirst: t = false } = {}) {- const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");- return new RegExp(F, t ? undefined : "g");-}-var Q = J();-function T(t) {- if (typeof t != "string")- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);- return t.replace(Q, "");+ const value = Math.max(red, green, blue) * 2;+ if (value === 0) {+ return 30;+ }+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));+ if (value === 2) {+ result += 60;+ }+ return result;+ },+ enumerable: false+ },+ rgbToAnsi: {+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),+ enumerable: false+ },+ hexToAnsi: {+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),+ enumerable: false+ }+ });+ return styles;}-function O(t) {- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;+var ansiStyles = assembleStyles();+var ansi_styles_default = ansiStyles;++// node_modules/chalk/source/vendor/supports-color/index.js+import process2 from "node:process";+import os from "node:os";+import tty from "node:tty";+function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";+ const position = argv.indexOf(prefix + flag);+ const terminatorPosition = argv.indexOf("--");+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);}-var P = { exports: {} };-(function(t) {- var u = {};- t.exports = u, u.eastAsianWidth = function(e) {- var s = e.charCodeAt(0), i = e.length == 2 ? e.charCodeAt(1) : 0, D = s;- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";- }, u.characterLength = function(e) {- var s = this.eastAsianWidth(e);- return s == "F" || s == "W" || s == "A" ? 2 : 1;- };- function F(e) {- return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];- }- u.length = function(e) {- for (var s = F(e), i = 0, D = 0;D < s.length; D++)- i = i + this.characterLength(s[D]);- return i;- }, u.slice = function(e, s, i) {- textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);- for (var D = "", C = 0, o = F(e), E = 0;E < o.length; E++) {- var a = o[E], n = u.length(a);- if (C >= s - (n == 2 ? 1 : 0))- if (C + n <= i)- D += a;- else- break;- C += n;+var { env } = process2;+var flagForceColor;+if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {+ flagForceColor = 0;+} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {+ flagForceColor = 1;+}+function envForceColor() {+ if ("FORCE_COLOR" in env) {+ if (env.FORCE_COLOR === "true") {+ return 1;}- return D;- };-})(P);-var X = P.exports;-var DD = O(X);-var uD = function() {- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;-};-var FD = O(uD);-function A(t, u = {}) {- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = T(t), t.length === 0))- return 0;- t = t.replace(FD(), " ");- const F = u.ambiguousIsNarrow ? 1 : 2;- let e = 0;- for (const s of t) {- const i = s.codePointAt(0);- if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879)- continue;- switch (DD.eastAsianWidth(s)) {- case "F":- case "W":- e += 2;- break;- case "A":- e += F;- break;- default:- e += 1;+ if (env.FORCE_COLOR === "false") {+ return 0;}+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);}- return e;}-var m = 10;-var L = (t = 0) => (u) => `\x1B[${u + t}m`;-var N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;-var I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;-var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };-Object.keys(r.modifier);-var tD = Object.keys(r.color);-var eD = Object.keys(r.bgColor);-[...tD];-function sD() {- const t = new Map;- for (const [u, F] of Object.entries(r)) {- for (const [e, s] of Object.entries(F))- r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);- Object.defineProperty(r, u, { value: F, enumerable: false });+function translateLevel(level) {+ if (level === 0) {+ return false;}- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {- const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));- if (!F)- return [0, 0, 0];- let [e] = F;- e.length === 3 && (e = [...e].map((i) => i + i).join(""));- const s = Number.parseInt(e, 16);- return [s >> 16 & 255, s >> 8 & 255, s & 255];- }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {- if (u < 8)- return 30 + u;- if (u < 16)- return 90 + (u - 8);- let F, e, s;- if (u >= 232)- F = ((u - 232) * 10 + 8) / 255, e = F, s = F;- else {- u -= 16;- const C = u % 36;- F = Math.floor(u / 36) / 5, e = Math.floor(C / 6) / 5, s = C % 6 / 5;- }- const i = Math.max(F, e, s) * 2;- if (i === 0)- return 30;- let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));- return i === 2 && (D += 60), D;- }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;+ return {+ level,+ hasBasic: true,+ has256: level >= 2,+ has16m: level >= 3+ };}-var iD = sD();-var v = new Set(["\x1B", ""]);-var CD = 39;-var w = "\x07";-var W = "[";-var rD = "]";-var R = "m";-var y = `${rD}8;;`;-var V = (t) => `${v.values().next().value}${W}${t}${R}`;-var z = (t) => `${v.values().next().value}${y}${t}${w}`;-var ED = (t) => t.split(" ").map((u) => A(u));-var _2 = (t, u, F) => {- const e = [...u];- let s = false, i = false, D = A(T(t[t.length - 1]));- for (const [C, o] of e.entries()) {- const E = A(o);- if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i = e.slice(C + 1).join("").startsWith(y)), s) {- i ? o === w && (s = false, i = false) : o === R && (s = false);- continue;- }- D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);+function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {+ const noFlagForceColor = envForceColor();+ if (noFlagForceColor !== undefined) {+ flagForceColor = noFlagForceColor;}- !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());-};-var nD = (t) => {- const u = t.split(" ");- let F = u.length;- for (;F > 0 && !(A(u[F - 1]) > 0); )- F--;- return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");-};-var oD = (t, u, F = {}) => {- if (F.trim !== false && t.trim() === "")- return "";- let e = "", s, i;- const D = ED(t);- let C = [""];- for (const [E, a] of t.split(" ").entries()) {- F.trim !== false && (C[C.length - 1] = C[C.length - 1].trimStart());- let n = A(C[C.length - 1]);- if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (C.push(""), n = 0), (n > 0 || F.trim === false) && (C[C.length - 1] += " ", n++)), F.hard && D[E] > u) {- const B = u - n, p = 1 + Math.floor((D[E] - B - 1) / u);- Math.floor((D[E] - 1) / u) < p && C.push(""), _2(C, a, u);- continue;- }- if (n + D[E] > u && n > 0 && D[E] > 0) {- if (F.wordWrap === false && n < u) {- _2(C, a, u);- continue;- }- C.push("");+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;+ if (forceColor === 0) {+ return 0;+ }+ if (sniffFlags) {+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {+ return 3;}- if (n + D[E] > u && F.wordWrap === false) {- _2(C, a, u);- continue;+ if (hasFlag("color=256")) {+ return 2;}- C[C.length - 1] += a;}- F.trim !== false && (C = C.map((E) => nD(E)));- const o = [...C.join(`-`)];- for (const [E, a] of o.entries()) {- if (e += a, v.has(a)) {- const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o.slice(E).join("")) || { groups: {} };- if (B.code !== undefined) {- const p = Number.parseFloat(B.code);- s = p === CD ? undefined : p;- } else- B.uri !== undefined && (i = B.uri.length === 0 ? undefined : B.uri);- }- const n = iD.codes.get(Number(s));- o[E + 1] === `-` ? (i && (e += z("")), s && n && (e += V(n))) : a === `-` && (s && n && (e += V(s)), i && (e += z(i)));+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {+ return 1;}- return e;-};-function G(t, u, F) {- return String(t).normalize().replace(/\r\n/g, `-`).split(`-`).map((e) => oD(e, u, F)).join(`-`);-}-var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];-var c = { actions: new Set(aD), aliases: new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["\x03", "cancel"], ["escape", "cancel"]]) };-function k(t, u) {- if (typeof t == "string")- return c.aliases.get(t) === u;- for (const F of t)- if (F !== undefined && k(F, u))- return true;- return false;-}-function lD(t, u) {- if (t === u)- return;- const F = t.split(`-`), e = u.split(`-`), s = [];- for (let i = 0;i < Math.max(F.length, e.length); i++)- F[i] !== e[i] && s.push(i);- return s;-}-var xD = globalThis.process.platform.startsWith("win");-var S = Symbol("clack:cancel");-function BD(t) {- return t === S;-}-function d(t, u) {- const F = t;- F.isTTY && F.setRawMode(u);-}-function cD({ input: t = $, output: u = j, overwrite: F = true, hideCursor: e = true } = {}) {- const s = f.createInterface({ input: t, output: u, prompt: "", tabSize: 1 });- f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);- const i = (D, { name: C, sequence: o }) => {- const E = String(D);- if (k([E, C, o], "cancel")) {- e && u.write(import_sisteransi.cursor.show), process.exit(0);- return;- }- if (!F)- return;- const a = C === "return" ? 0 : -1, n = C === "return" ? -1 : 0;- f.moveCursor(u, a, n, () => {- f.clearLine(u, 1, () => {- t.once("keypress", i);- });- });- };- return e && u.write(import_sisteransi.cursor.hide), t.once("keypress", i), () => {- t.off("keypress", i), e && u.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();- };-}-var AD = Object.defineProperty;-var pD = (t, u, F) => (u in t) ? AD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;-var h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);--class x {- constructor(u, F = true) {- h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", new Map), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");- const { input: e = $, output: s = j, render: i, signal: D, ...C } = u;- this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input = e, this.output = s;+ if (haveStream && !streamIsTTY && forceColor === undefined) {+ return 0;}- unsubscribe() {- this._subscribers.clear();+ const min = forceColor || 0;+ if (env.TERM === "dumb") {+ return min;}- setSubscriber(u, F) {- const e = this._subscribers.get(u) ?? [];- e.push(F), this._subscribers.set(u, e);+ if (process2.platform === "win32") {+ const osRelease = os.release().split(".");+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {+ return Number(osRelease[2]) >= 14931 ? 3 : 2;+ }+ return 1;}- on(u, F) {- this.setSubscriber(u, { cb: F });+ if ("CI" in env) {+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {+ return 3;+ }+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {+ return 1;+ }+ return min;}- once(u, F) {- this.setSubscriber(u, { cb: F, once: true });+ if ("TEAMCITY_VERSION" in env) {+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;}- emit(u, ...F) {- const e = this._subscribers.get(u) ?? [], s = [];- for (const i of e)- i.cb(...F), i.once && s.push(() => e.splice(e.indexOf(i), 1));- for (const i of s)- i();+ if (env.COLORTERM === "truecolor") {+ return 3;}- prompt() {- return new Promise((u, F) => {- if (this._abortSignal) {- if (this._abortSignal.aborted)- return this.state = "cancel", this.close(), u(S);- this._abortSignal.addEventListener("abort", () => {- this.state = "cancel", this.close();- }, { once: true });- }- const e = new U(0);- e._write = (s, i, D) => {- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();- }, this.input.pipe(e), this.rl = M.createInterface({ input: this.input, output: e, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== undefined && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u(this.value);- }), this.once("cancel", () => {- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u(S);- });- });+ if (env.TERM === "xterm-kitty") {+ return 3;}- onKeypress(u, F) {- if (this.state === "error" && (this.state = "active"), F?.name && (!this._track && c.aliases.has(F.name) && this.emit("cursor", c.aliases.get(F.name)), c.actions.has(F.name) && this.emit("cursor", F.name)), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u === "\t" && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {- if (this.opts.validate) {- const e = this.opts.validate(this.value);- e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.value));+ if ("TERM_PROGRAM" in env) {+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);+ switch (env.TERM_PROGRAM) {+ case "iTerm.app": {+ return version >= 3 ? 3 : 2;+ }+ case "Apple_Terminal": {+ return 2;}- this.state !== "error" && (this.state = "submit");}- k([u, F?.name, F?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();}- close() {- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`-`), d(this.input, false), this.rl?.close(), this.rl = undefined, this.emit(`${this.state}`, this.value), this.unsubscribe();+ if (/-256(color)?$/i.test(env.TERM)) {+ return 2;}- restoreCursor() {- const u = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`-`).length - 1;- this.output.write(import_sisteransi.cursor.move(-999, u * -1));+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {+ return 1;}- render() {- const u = G(this._render(this) ?? "", process.stdout.columns, { hard: true });- if (u !== this._prevFrame) {- if (this.state === "initial")- this.output.write(import_sisteransi.cursor.hide);- else {- const F = lD(this._prevFrame, u);- if (this.restoreCursor(), F && F?.length === 1) {- const e = F[0];- this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.lines(1));- const s = u.split(`-`);- this.output.write(s[e]), this._prevFrame = u, this.output.write(import_sisteransi.cursor.move(0, s.length - e - 1));- return;- }- if (F && F?.length > 1) {- const e = F[0];- this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.down());- const s = u.split(`-`).slice(e);- this.output.write(s.join(`-`)), this._prevFrame = u;- return;- }- this.output.write(import_sisteransi.erase.down());- }- this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;- }+ if ("COLORTERM" in env) {+ return 1;}+ return min;+}+function createSupportsColor(stream, options = {}) {+ const level = _supportsColor(stream, {+ streamIsTTY: stream && stream.isTTY,+ ...options+ });+ return translateLevel(level);}+var supportsColor = {+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })+};+var supports_color_default = supportsColor;-class fD extends x {- get cursor() {- return this.value ? 0 : 1;+// node_modules/chalk/source/utilities.js+function stringReplaceAll(string, substring, replacer) {+ let index = string.indexOf(substring);+ if (index === -1) {+ return string;}- get _value() {- return this.cursor === 0;+ const substringLength = substring.length;+ let endIndex = 0;+ let returnValue = "";+ do {+ returnValue += string.slice(endIndex, index) + substring + replacer;+ endIndex = index + substringLength;+ index = string.indexOf(substring, endIndex);+ } while (index !== -1);+ returnValue += string.slice(endIndex);+ return returnValue;+}+function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {+ let endIndex = 0;+ let returnValue = "";+ do {+ const gotCR = string[index - 1] === "\r";+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r+` : `+`) + postfix;+ endIndex = index + 1;+ index = string.indexOf(`+`, endIndex);+ } while (index !== -1);+ returnValue += string.slice(endIndex);+ return returnValue;+}++// node_modules/chalk/source/index.js+var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;+var GENERATOR = Symbol("GENERATOR");+var STYLER = Symbol("STYLER");+var IS_EMPTY = Symbol("IS_EMPTY");+var levelMapping = [+ "ansi",+ "ansi",+ "ansi256",+ "ansi16m"+];+var styles2 = Object.create(null);+var applyOptions = (object, options = {}) => {+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {+ throw new Error("The `level` option should be an integer from 0 to 3");}- constructor(u) {- super(u, false), this.value = !!u.initialValue, this.on("value", () => {- this.value = this._value;- }), this.on("confirm", (F) => {- this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();- }), this.on("cursor", () => {- this.value = !this.value;- });+ const colorLevel = stdoutColor ? stdoutColor.level : 0;+ object.level = options.level === undefined ? colorLevel : options.level;+};+var chalkFactory = (options) => {+ const chalk = (...strings) => strings.join(" ");+ applyOptions(chalk, options);+ Object.setPrototypeOf(chalk, createChalk.prototype);+ return chalk;+};+function createChalk(options) {+ return chalkFactory(options);+}+Object.setPrototypeOf(createChalk.prototype, Function.prototype);+for (const [styleName, style] of Object.entries(ansi_styles_default)) {+ styles2[styleName] = {+ get() {+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);+ Object.defineProperty(this, styleName, { value: builder });+ return builder;+ }+ };+}+styles2.visible = {+ get() {+ const builder = createBuilder(this, this[STYLER], true);+ Object.defineProperty(this, "visible", { value: builder });+ return builder;+ }+};+var getModelAnsi = (model, level, type, ...arguments_) => {+ if (model === "rgb") {+ if (level === "ansi16m") {+ return ansi_styles_default[type].ansi16m(...arguments_);+ }+ if (level === "ansi256") {+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));+ }+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));+ }+ if (model === "hex") {+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));+ }+ return ansi_styles_default[type][model](...arguments_);+};+var usedModels = ["rgb", "hex", "ansi256"];+for (const model of usedModels) {+ styles2[model] = {+ get() {+ const { level } = this;+ return function(...arguments_) {+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);+ return createBuilder(this, styler, this[IS_EMPTY]);+ };+ }+ };+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);+ styles2[bgModel] = {+ get() {+ const { level } = this;+ return function(...arguments_) {+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);+ return createBuilder(this, styler, this[IS_EMPTY]);+ };+ }+ };+}+var proto = Object.defineProperties(() => {+}, {+ ...styles2,+ level: {+ enumerable: true,+ get() {+ return this[GENERATOR].level;+ },+ set(level) {+ this[GENERATOR].level = level;+ }}-}-var bD = Object.defineProperty;-var mD = (t, u, F) => (u in t) ? bD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;-var Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);-var wD = class extends x {- constructor(u) {- super(u, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {- F === "a" && this.toggleAll();- }), this.on("cursor", (F) => {- switch (F) {- case "left":- case "up":- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;- break;- case "down":- case "right":- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;- break;- case "space":- this.toggleValue();- break;- }- });+});+var createStyler = (open, close, parent) => {+ let openAll;+ let closeAll;+ if (parent === undefined) {+ openAll = open;+ closeAll = close;+ } else {+ openAll = parent.openAll + open;+ closeAll = close + parent.closeAll;}- get _value() {- return this.options[this.cursor].value;+ return {+ open,+ close,+ openAll,+ closeAll,+ parent+ };+};+var createBuilder = (self2, _styler, _isEmpty) => {+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));+ Object.setPrototypeOf(builder, proto);+ builder[GENERATOR] = self2;+ builder[STYLER] = _styler;+ builder[IS_EMPTY] = _isEmpty;+ return builder;+};+var applyStyle = (self2, string) => {+ if (self2.level <= 0 || !string) {+ return self2[IS_EMPTY] ? "" : string;}- toggleAll() {- const u = this.value.length === this.options.length;- this.value = u ? [] : this.options.map((F) => F.value);+ let styler = self2[STYLER];+ if (styler === undefined) {+ return string;}- toggleValue() {- const u = this.value.includes(this._value);- this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];+ const { openAll, closeAll } = styler;+ if (string.includes("\x1B")) {+ while (styler !== undefined) {+ string = stringReplaceAll(string, styler.close, styler.open);+ styler = styler.parent;+ }+ }+ const lfIndex = string.indexOf(`+`);+ if (lfIndex !== -1) {+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);}+ return openAll + string + closeAll;};-var SD = Object.defineProperty;-var $D = (t, u, F) => (u in t) ? SD(t, u, { enumerable: true, configurable: true, writable: true, value: F }) : t[u] = F;-var q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);+Object.defineProperties(createChalk.prototype, styles2);+var chalk = createChalk();+var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });+var source_default = chalk;-class jD extends x {- constructor(u) {- super(u, false), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {- switch (F) {- case "left":- case "up":- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;- break;- case "down":- case "right":- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;- break;- }- this.changeValue();- });- }- get _value() {- return this.options[this.cursor];- }- changeValue() {- this.value = this._value.value;+// src/utils/colors.ts+var colors = {+ primary: source_default.cyan,+ success: source_default.green,+ error: source_default.red,+ warning: source_default.yellow,+ info: source_default.blue,+ dim: source_default.gray,+ highlight: source_default.magenta,+ bold: source_default.bold,+ header: (text) => source_default.bold.cyan(`+${text}`),+ subHeader: (text) => source_default.dim(`${text}`),+ listItem: (text) => source_default.cyan(` * ${text}`),+ label: (text) => source_default.bold.blue(`${text}:`),+ value: (text) => source_default.white(`${text}`)+};+var symbols = {+ success: "+",+ error: "x",+ warning: "!",+ info: "i",+ arrow: ">"+};++// src/commands/components/commands/add/utils/logger.ts+var highlighter = {+ error: colors.error,+ warn: colors.warning,+ info: colors.info,+ success: colors.success+};+var logger = {+ error(...args) {+ console.log(highlighter.error(args.join(" ").toLowerCase()));+ },+ warn(...args) {+ console.log(highlighter.warn(args.join(" ").toLowerCase()));+ },+ info(...args) {+ console.log(highlighter.info(args.join(" ").toLowerCase()));+ },+ success(...args) {+ console.log(highlighter.success(args.join(" ").toLowerCase()));+ },+ log(...args) {+ console.log(args.join(" ").toLowerCase());+ },+ break() {+ console.log("");}+};+function spinner(text, options) {+ return new Spinner({+ verbose: !options?.silent,+ color: "white"+ }).start(text);}-class PD extends x {- get valueWithCursor() {- if (this.state === "submit")- return this.value;- if (this.cursor >= this.value.length)- return `${this.value}█`;- const u = this.value.slice(0, this.cursor), [F, ...e] = this.value.slice(this.cursor);- return `${u}${import_picocolors.default.inverse(F)}${e.join("")}`;++// node_modules/zod/lib/index.mjs+var util;+(function(util2) {+ util2.assertEqual = (val) => val;+ function assertIs(_arg) {}- get cursor() {- return this._cursor;+ util2.assertIs = assertIs;+ function assertNever(_x) {+ throw new Error;}- constructor(u) {- super(u), this.on("finalize", () => {- this.value || (this.value = u.defaultValue);+ util2.assertNever = assertNever;+ util2.arrayToEnum = (items) => {+ const obj = {};+ for (const item of items) {+ obj[item] = item;+ }+ return obj;+ };+ util2.getValidEnumValues = (obj) => {+ const validKeys = util2.objectKeys(obj).filter((k3) => typeof obj[obj[k3]] !== "number");+ const filtered = {};+ for (const k3 of validKeys) {+ filtered[k3] = obj[k3];+ }+ return util2.objectValues(filtered);+ };+ util2.objectValues = (obj) => {+ return util2.objectKeys(obj).map(function(e2) {+ return obj[e2];});+ };+ util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {+ const keys = [];+ for (const key in object) {+ if (Object.prototype.hasOwnProperty.call(object, key)) {+ keys.push(key);+ }+ }+ return keys;+ };+ util2.find = (arr, checker) => {+ for (const item of arr) {+ if (checker(item))+ return item;+ }+ return;+ };+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;+ function joinValues(array, separator = " | ") {+ return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);}-}--// node_modules/@clack/prompts/dist/index.mjs-var import_picocolors2 = __toESM(require_picocolors(), 1);-var import_sisteransi2 = __toESM(require_src(), 1);-import g2 from "node:process";-function ce() {- return g2.platform !== "win32" ? g2.env.TERM !== "linux" : !!g2.env.CI || !!g2.env.WT_SESSION || !!g2.env.TERMINUS_SUBLIME || g2.env.ConEmuTask === "{cmd::Cmder}" || g2.env.TERM_PROGRAM === "Terminus-Sublime" || g2.env.TERM_PROGRAM === "vscode" || g2.env.TERM === "xterm-256color" || g2.env.TERM === "alacritty" || g2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";-}-var V2 = ce();-var u = (t, n) => V2 ? t : n;-var le = u("◆", "*");-var L2 = u("■", "x");-var W2 = u("▲", "x");-var C = u("◇", "o");-var ue = u("┌", "T");-var o = u("│", "|");-var d2 = u("└", "—");-var k2 = u("●", ">");-var P2 = u("○", " ");-var A2 = u("◻", "[•]");-var T2 = u("◼", "[+]");-var F = u("◻", "[ ]");-var $e = u("▪", "•");-var _3 = u("─", "-");-var me = u("╮", "+");-var de = u("├", "+");-var pe = u("╯", "+");-var q2 = u("●", "•");-var D = u("◆", "*");-var U2 = u("▲", "!");-var K = u("■", "x");-var w2 = (t) => {+ util2.joinValues = joinValues;+ util2.jsonStringifyReplacer = (_4, value) => {+ if (typeof value === "bigint") {+ return value.toString();+ }+ return value;+ };+})(util || (util = {}));+var objectUtil;+(function(objectUtil2) {+ objectUtil2.mergeShapes = (first, second) => {+ return {+ ...first,+ ...second+ };+ };+})(objectUtil || (objectUtil = {}));+var ZodParsedType = util.arrayToEnum([+ "string",+ "nan",+ "number",+ "integer",+ "float",+ "boolean",+ "date",+ "bigint",+ "symbol",+ "function",+ "undefined",+ "null",+ "array",+ "object",+ "unknown",+ "promise",+ "void",+ "never",+ "map",+ "set"+]);+var getParsedType = (data) => {+ const t = typeof data;switch (t) {- case "initial":- case "active":- return import_picocolors2.default.cyan(le);- case "cancel":- return import_picocolors2.default.red(L2);- case "error":- return import_picocolors2.default.yellow(W2);- case "submit":- return import_picocolors2.default.green(C);+ case "undefined":+ return ZodParsedType.undefined;+ case "string":+ return ZodParsedType.string;+ case "number":+ return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;+ case "boolean":+ return ZodParsedType.boolean;+ case "function":+ return ZodParsedType.function;+ case "bigint":+ return ZodParsedType.bigint;+ case "symbol":+ return ZodParsedType.symbol;+ case "object":+ if (Array.isArray(data)) {+ return ZodParsedType.array;+ }+ if (data === null) {+ return ZodParsedType.null;+ }+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {+ return ZodParsedType.promise;+ }+ if (typeof Map !== "undefined" && data instanceof Map) {+ return ZodParsedType.map;+ }+ if (typeof Set !== "undefined" && data instanceof Set) {+ return ZodParsedType.set;+ }+ if (typeof Date !== "undefined" && data instanceof Date) {+ return ZodParsedType.date;+ }+ return ZodParsedType.object;+ default:+ return ZodParsedType.unknown;}};-var B = (t) => {- const { cursor: n, options: s, style: r2 } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c2 = Math.min(a, Math.max(i, 5));- let l2 = 0;- n >= l2 + c2 - 3 ? l2 = Math.max(Math.min(n - c2 + 3, s.length - c2), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));- const $2 = c2 < s.length && l2 > 0, p = c2 < s.length && l2 + c2 < s.length;- return s.slice(l2, l2 + c2).map((M2, v2, x2) => {- const j2 = v2 === 0 && $2, E = v2 === x2.length - 1 && p;- return j2 || E ? import_picocolors2.default.dim("...") : r2(M2, v2 + l2 === n);- });+var ZodIssueCode = util.arrayToEnum([+ "invalid_type",+ "invalid_literal",+ "custom",+ "invalid_union",+ "invalid_union_discriminator",+ "invalid_enum_value",+ "unrecognized_keys",+ "invalid_arguments",+ "invalid_return_type",+ "invalid_date",+ "invalid_string",+ "too_small",+ "too_big",+ "invalid_intersection_types",+ "not_multiple_of",+ "not_finite"+]);+var quotelessJson = (obj) => {+ const json = JSON.stringify(obj, null, 2);+ return json.replace(/"([^"]+)":/g, "$1:");};-var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {- const n = `${import_picocolors2.default.gray(o)}-${w2(this.state)} ${t.message}-`, s = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), r2 = this.value ? this.valueWithCursor : s;- switch (this.state) {- case "error":- return `${n.trim()}-${import_picocolors2.default.yellow(o)} ${r2}-${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}-`;- case "submit":- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;- case "cancel":- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `-${import_picocolors2.default.gray(o)}` : ""}`;- default:- return `${n}${import_picocolors2.default.cyan(o)} ${r2}-${import_picocolors2.default.cyan(d2)}-`;++class ZodError extends Error {+ get errors() {+ return this.issues;}-} }).prompt();-var ye = (t) => {- const n = t.active ?? "Yes", s = t.inactive ?? "No";- return new fD({ active: n, inactive: s, initialValue: t.initialValue ?? true, render() {- const r2 = `${import_picocolors2.default.gray(o)}-${w2(this.state)} ${t.message}-`, i = this.value ? n : s;- switch (this.state) {- case "submit":- return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(i)}`;- case "cancel":- return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}-${import_picocolors2.default.gray(o)}`;- default:- return `${r2}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(k2)} ${s}`}-${import_picocolors2.default.cyan(d2)}-`;- }- } }).prompt();-};-var ve = (t) => {- const n = (s, r2) => {- const i = s.label ?? String(s.value);- switch (r2) {- case "selected":- return `${import_picocolors2.default.dim(i)}`;- case "active":- return `${import_picocolors2.default.green(k2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;- case "cancelled":- return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}`;- default:- return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(i)}`;- }- };- return new jD({ options: t.options, initialValue: t.initialValue, render() {- const s = `${import_picocolors2.default.gray(o)}-${w2(this.state)} ${t.message}-`;- switch (this.state) {- case "submit":- return `${s}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;- case "cancel":- return `${s}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}-${import_picocolors2.default.gray(o)}`;- default:- return `${s}${import_picocolors2.default.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r2, i) => n(r2, i ? "active" : "inactive") }).join(`-${import_picocolors2.default.cyan(o)} `)}-${import_picocolors2.default.cyan(d2)}-`;+ constructor(issues) {+ super();+ this.issues = [];+ this.addIssue = (sub) => {+ this.issues = [...this.issues, sub];+ };+ this.addIssues = (subs = []) => {+ this.issues = [...this.issues, ...subs];+ };+ const actualProto = new.target.prototype;+ if (Object.setPrototypeOf) {+ Object.setPrototypeOf(this, actualProto);+ } else {+ this.__proto__ = actualProto;}- } }).prompt();-};-var fe = (t) => {- const n = (s, r2) => {- const i = s.label ?? String(s.value);- return r2 === "active" ? `${import_picocolors2.default.cyan(A2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : r2 === "selected" ? `${import_picocolors2.default.green(T2)} ${import_picocolors2.default.dim(i)}` : r2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i))}` : r2 === "active-selected" ? `${import_picocolors2.default.green(T2)} ${i} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}` : r2 === "submitted" ? `${import_picocolors2.default.dim(i)}` : `${import_picocolors2.default.dim(F)} ${import_picocolors2.default.dim(i)}`;- };- return new wD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(s) {- if (this.required && s.length === 0)- return `Please select at least one option.-${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;- }, render() {- const s = `${import_picocolors2.default.gray(o)}-${w2(this.state)} ${t.message}-`, r2 = (i, a) => {- const c2 = this.value.includes(i.value);- return a && c2 ? n(i, "active-selected") : c2 ? n(i, "selected") : n(i, a ? "active" : "inactive");+ this.name = "ZodError";+ this.issues = issues;+ }+ format(_mapper) {+ const mapper = _mapper || function(issue) {+ return issue.message;};- switch (this.state) {- case "submit":- return `${s}${import_picocolors2.default.gray(o)} ${this.options.filter(({ value: i }) => this.value.includes(i)).map((i) => n(i, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;- case "cancel": {- const i = this.options.filter(({ value: a }) => this.value.includes(a)).map((a) => n(a, "cancelled")).join(import_picocolors2.default.dim(", "));- return `${s}${import_picocolors2.default.gray(o)} ${i.trim() ? `${i}-${import_picocolors2.default.gray(o)}` : ""}`;+ const fieldErrors = { _errors: [] };+ const processError = (error) => {+ for (const issue of error.issues) {+ if (issue.code === "invalid_union") {+ issue.unionErrors.map(processError);+ } else if (issue.code === "invalid_return_type") {+ processError(issue.returnTypeError);+ } else if (issue.code === "invalid_arguments") {+ processError(issue.argumentsError);+ } else if (issue.path.length === 0) {+ fieldErrors._errors.push(mapper(issue));+ } else {+ let curr = fieldErrors;+ let i = 0;+ while (i < issue.path.length) {+ const el = issue.path[i];+ const terminal = i === issue.path.length - 1;+ if (!terminal) {+ curr[el] = curr[el] || { _errors: [] };+ } else {+ curr[el] = curr[el] || { _errors: [] };+ curr[el]._errors.push(mapper(issue));+ }+ curr = curr[el];+ i++;+ }+ }}- case "error": {- const i = this.error.split(`-`).map((a, c2) => c2 === 0 ? `${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(a)}` : ` ${a}`).join(`-`);- return `${s + import_picocolors2.default.yellow(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`-${import_picocolors2.default.yellow(o)} `)}-${i}-`;+ };+ processError(this);+ return fieldErrors;+ }+ static assert(value) {+ if (!(value instanceof ZodError)) {+ throw new Error(`Not a ZodError: ${value}`);+ }+ }+ toString() {+ return this.message;+ }+ get message() {+ return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);+ }+ get isEmpty() {+ return this.issues.length === 0;+ }+ flatten(mapper = (issue) => issue.message) {+ const fieldErrors = {};+ const formErrors = [];+ for (const sub of this.issues) {+ if (sub.path.length > 0) {+ fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];+ fieldErrors[sub.path[0]].push(mapper(sub));+ } else {+ formErrors.push(mapper(sub));}- default:- return `${s}${import_picocolors2.default.cyan(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`-${import_picocolors2.default.cyan(o)} `)}-${import_picocolors2.default.cyan(d2)}-`;}- } }).prompt();-};-var xe = (t = "") => {- process.stdout.write(`${import_picocolors2.default.gray(d2)} ${import_picocolors2.default.red(t)}--`);-};-var Ie = (t = "") => {- process.stdout.write(`${import_picocolors2.default.gray(ue)} ${t}-`);-};-var Se = (t = "") => {- process.stdout.write(`${import_picocolors2.default.gray(o)}-${import_picocolors2.default.gray(d2)} ${t}--`);+ return { formErrors, fieldErrors };+ }+ get formErrors() {+ return this.flatten();+ }+}+ZodError.create = (issues) => {+ const error = new ZodError(issues);+ return error;};-var J2 = `${import_picocolors2.default.gray(o)} `;-var Y2 = ({ indicator: t = "dots" } = {}) => {- const n = V2 ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], s = V2 ? 80 : 120, r2 = process.env.CI === "true";- let i, a, c2 = false, l2 = "", $2, p = performance.now();- const M2 = (m2) => {- const h2 = m2 > 1 ? "Something went wrong" : "Canceled";- c2 && N2(h2, m2);- }, v2 = () => M2(2), x2 = () => M2(1), j2 = () => {- process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", x2), process.on("SIGTERM", x2), process.on("exit", M2);- }, E = () => {- process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", x2), process.removeListener("SIGTERM", x2), process.removeListener("exit", M2);- }, O2 = () => {- if ($2 === undefined)- return;- r2 && process.stdout.write(`-`);- const m2 = $2.split(`-`);- process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));- }, R2 = (m2) => m2.replace(/\.+$/, ""), G2 = (m2) => {- const h2 = (performance.now() - m2) / 1000, y2 = Math.floor(h2 / 60), I2 = Math.floor(h2 % 60);- return y2 > 0 ? `[${y2}m ${I2}s]` : `[${I2}s]`;- }, H = (m2 = "") => {- c2 = true, i = cD(), l2 = R2(m2), p = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}-`);- let h2 = 0, y2 = 0;- j2(), a = setInterval(() => {- if (r2 && l2 === $2)- return;- O2(), $2 = l2;- const I2 = import_picocolors2.default.magenta(n[h2]);- if (r2)- process.stdout.write(`${I2} ${l2}...`);- else if (t === "timer")- process.stdout.write(`${I2} ${l2} ${G2(p)}`);- else {- const z2 = ".".repeat(Math.floor(y2)).slice(0, 3);- process.stdout.write(`${I2} ${l2}${z2}`);+var errorMap = (issue, _ctx) => {+ let message;+ switch (issue.code) {+ case ZodIssueCode.invalid_type:+ if (issue.received === ZodParsedType.undefined) {+ message = "Required";+ } else {+ message = `Expected ${issue.expected}, received ${issue.received}`;}- h2 = h2 + 1 < n.length ? h2 + 1 : 0, y2 = y2 < n.length ? y2 + 0.125 : 0;- }, s);- }, N2 = (m2 = "", h2 = 0) => {- c2 = false, clearInterval(a), O2();- const y2 = h2 === 0 ? import_picocolors2.default.green(C) : h2 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);- l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${y2} ${l2} ${G2(p)}-`) : process.stdout.write(`${y2} ${l2}-`), E(), i();- };- return { start: H, stop: N2, message: (m2 = "") => {- l2 = R2(m2 ?? l2);- } };-};--// src/commands/login/utils/cli-login.ts-var import_async_listen = __toESM(require_dist(), 1);-import http from "http";-import { spawn } from "child_process";-import url from "url";--// node_modules/nanoid/index.js-import { webcrypto as crypto } from "node:crypto";-var POOL_SIZE_MULTIPLIER = 128;-var pool;-var poolOffset;-function fillPool(bytes) {- if (!pool || pool.length < bytes) {- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);- crypto.getRandomValues(pool);- poolOffset = 0;- } else if (poolOffset + bytes > pool.length) {- crypto.getRandomValues(pool);- poolOffset = 0;+ break;+ case ZodIssueCode.invalid_literal:+ message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;+ break;+ case ZodIssueCode.unrecognized_keys:+ message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;+ break;+ case ZodIssueCode.invalid_union:+ message = `Invalid input`;+ break;+ case ZodIssueCode.invalid_union_discriminator:+ message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;+ break;+ case ZodIssueCode.invalid_enum_value:+ message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;+ break;+ case ZodIssueCode.invalid_arguments:+ message = `Invalid function arguments`;+ break;+ case ZodIssueCode.invalid_return_type:+ message = `Invalid function return type`;+ break;+ case ZodIssueCode.invalid_date:+ message = `Invalid date`;+ break;+ case ZodIssueCode.invalid_string:+ if (typeof issue.validation === "object") {+ if ("includes" in issue.validation) {+ message = `Invalid input: must include "${issue.validation.includes}"`;+ if (typeof issue.validation.position === "number") {+ message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;+ }+ } else if ("startsWith" in issue.validation) {+ message = `Invalid input: must start with "${issue.validation.startsWith}"`;+ } else if ("endsWith" in issue.validation) {+ message = `Invalid input: must end with "${issue.validation.endsWith}"`;+ } else {+ util.assertNever(issue.validation);+ }+ } else if (issue.validation !== "regex") {+ message = `Invalid ${issue.validation}`;+ } else {+ message = "Invalid";+ }+ break;+ case ZodIssueCode.too_small:+ if (issue.type === "array")+ message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;+ else if (issue.type === "string")+ message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;+ else if (issue.type === "number")+ message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;+ else if (issue.type === "date")+ message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;+ else+ message = "Invalid input";+ break;+ case ZodIssueCode.too_big:+ if (issue.type === "array")+ message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;+ else if (issue.type === "string")+ message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;+ else if (issue.type === "number")+ message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;+ else if (issue.type === "bigint")+ message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;+ else if (issue.type === "date")+ message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;+ else+ message = "Invalid input";+ break;+ case ZodIssueCode.custom:+ message = `Invalid input`;+ break;+ case ZodIssueCode.invalid_intersection_types:+ message = `Intersection results could not be merged`;+ break;+ case ZodIssueCode.not_multiple_of:+ message = `Number must be a multiple of ${issue.multipleOf}`;+ break;+ case ZodIssueCode.not_finite:+ message = "Number must be finite";+ break;+ default:+ message = _ctx.defaultError;+ util.assertNever(issue);}- poolOffset += bytes;+ return { message };+};+var overrideErrorMap = errorMap;+function setErrorMap(map) {+ overrideErrorMap = map;}-function random(bytes) {- fillPool(bytes |= 0);- return pool.subarray(poolOffset - bytes, poolOffset);+function getErrorMap() {+ return overrideErrorMap;}-function customRandom(alphabet, defaultSize, getRandom) {- let mask = (2 << 31 - Math.clz32(alphabet.length - 1 | 1)) - 1;- let step = Math.ceil(1.6 * mask * defaultSize / alphabet.length);- return (size = defaultSize) => {- let id = "";- while (true) {- let bytes = getRandom(step);- let i = step;- while (i--) {- id += alphabet[bytes[i] & mask] || "";- if (id.length >= size)- return id;- }- }+var makeIssue = (params) => {+ const { data, path, errorMaps, issueData } = params;+ const fullPath = [...path, ...issueData.path || []];+ const fullIssue = {+ ...issueData,+ path: fullPath};-}-function customAlphabet(alphabet, size = 21) {- return customRandom(alphabet, size, random);-}--// node_modules/@topcli/spinner/dist/index.js-var import_cli_spinners = __toESM(require_cli_spinners(), 1);-import { EventEmitter } from "events";-import { performance as performance2 } from "perf_hooks";-import readline from "readline";--// node_modules/ansi-regex/index.js-function ansiRegex({ onlyFirst = false } = {}) {- const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";- const pattern = [- `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"- ].join("|");- return new RegExp(pattern, onlyFirst ? undefined : "g");-}--// node_modules/strip-ansi/index.js-var regex = ansiRegex();-function stripAnsi(string) {- if (typeof string !== "string") {- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);+ if (issueData.message !== undefined) {+ return {+ ...issueData,+ path: fullPath,+ message: issueData.message+ };}- return string.replace(regex, "");+ let errorMessage = "";+ const maps = errorMaps.filter((m2) => !!m2).slice().reverse();+ for (const map of maps) {+ errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;+ }+ return {+ ...issueData,+ path: fullPath,+ message: errorMessage+ };+};+var EMPTY_PATH = [];+function addIssueToContext(ctx, issueData) {+ const overrideMap = getErrorMap();+ const issue = makeIssue({+ issueData,+ data: ctx.data,+ path: ctx.path,+ errorMaps: [+ ctx.common.contextualErrorMap,+ ctx.schemaErrorMap,+ overrideMap,+ overrideMap === errorMap ? undefined : errorMap+ ].filter((x2) => !!x2)+ });+ ctx.common.issues.push(issue);}-// node_modules/@topcli/wcwidth/src/combining.js-var combining_default = [- [768, 879],- [1155, 1158],- [1160, 1161],- [1425, 1469],- [1471, 1471],- [1473, 1474],- [1476, 1477],- [1479, 1479],- [1536, 1539],- [1552, 1557],- [1611, 1630],- [1648, 1648],- [1750, 1764],- [1767, 1768],- [1770, 1773],- [1807, 1807],- [1809, 1809],- [1840, 1866],- [1958, 1968],- [2027, 2035],- [2305, 2306],- [2364, 2364],- [2369, 2376],- [2381, 2381],- [2385, 2388],- [2402, 2403],- [2433, 2433],- [2492, 2492],- [2497, 2500],- [2509, 2509],- [2530, 2531],- [2561, 2562],- [2620, 2620],- [2625, 2626],- [2631, 2632],- [2635, 2637],- [2672, 2673],- [2689, 2690],- [2748, 2748],- [2753, 2757],- [2759, 2760],- [2765, 2765],- [2786, 2787],- [2817, 2817],- [2876, 2876],- [2879, 2879],- [2881, 2883],- [2893, 2893],- [2902, 2902],- [2946, 2946],- [3008, 3008],- [3021, 3021],- [3134, 3136],- [3142, 3144],- [3146, 3149],- [3157, 3158],- [3260, 3260],- [3263, 3263],- [3270, 3270],- [3276, 3277],- [3298, 3299],- [3393, 3395],- [3405, 3405],- [3530, 3530],- [3538, 3540],- [3542, 3542],- [3633, 3633],- [3636, 3642],- [3655, 3662],- [3761, 3761],- [3764, 3769],- [3771, 3772],- [3784, 3789],- [3864, 3865],- [3893, 3893],- [3895, 3895],- [3897, 3897],- [3953, 3966],- [3968, 3972],- [3974, 3975],- [3984, 3991],- [3993, 4028],- [4038, 4038],- [4141, 4144],- [4146, 4146],- [4150, 4151],- [4153, 4153],- [4184, 4185],- [4448, 4607],- [4959, 4959],- [5906, 5908],- [5938, 5940],- [5970, 5971],- [6002, 6003],- [6068, 6069],- [6071, 6077],- [6086, 6086],- [6089, 6099],- [6109, 6109],- [6155, 6157],- [6313, 6313],- [6432, 6434],- [6439, 6440],- [6450, 6450],- [6457, 6459],- [6679, 6680],- [6912, 6915],- [6964, 6964],- [6966, 6970],- [6972, 6972],- [6978, 6978],- [7019, 7027],- [7616, 7626],- [7678, 7679],- [8203, 8207],- [8234, 8238],- [8288, 8291],- [8298, 8303],- [8400, 8431],- [12330, 12335],- [12441, 12442],- [43014, 43014],- [43019, 43019],- [43045, 43046],- [64286, 64286],- [65024, 65039],- [65056, 65059],- [65279, 65279],- [65529, 65531],- [68097, 68099],- [68101, 68102],- [68108, 68111],- [68152, 68154],- [68159, 68159],- [119143, 119145],- [119155, 119170],- [119173, 119179],- [119210, 119213],- [119362, 119364],- [917505, 917505],- [917536, 917631],- [917760, 917999]-];--// node_modules/@topcli/wcwidth/index.js-var kDefaultOptions = {- nul: 0,- control: 0-};-function wcswidth(str, opts = kDefaultOptions) {- if (typeof str !== "string") {- return wcwidth(str, opts);+class ParseStatus {+ constructor() {+ this.value = "valid";}- let width = 0;- for (let id = 0;id < str.length; id++) {- const charWidth = wcwidth(str.charCodeAt(id), opts);- if (charWidth < 0) {- return -1;+ dirty() {+ if (this.value === "valid")+ this.value = "dirty";+ }+ abort() {+ if (this.value !== "aborted")+ this.value = "aborted";+ }+ static mergeArray(status, results) {+ const arrayValue = [];+ for (const s of results) {+ if (s.status === "aborted")+ return INVALID;+ if (s.status === "dirty")+ status.dirty();+ arrayValue.push(s.value);+ }+ return { status: status.value, value: arrayValue };+ }+ static async mergeObjectAsync(status, pairs) {+ const syncPairs = [];+ for (const pair of pairs) {+ const key = await pair.key;+ const value = await pair.value;+ syncPairs.push({+ key,+ value+ });+ }+ return ParseStatus.mergeObjectSync(status, syncPairs);+ }+ static mergeObjectSync(status, pairs) {+ const finalObject = {};+ for (const pair of pairs) {+ const { key, value } = pair;+ if (key.status === "aborted")+ return INVALID;+ if (value.status === "aborted")+ return INVALID;+ if (key.status === "dirty")+ status.dirty();+ if (value.status === "dirty")+ status.dirty();+ if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {+ finalObject[key.value] = value.value;+ }}- width += charWidth;+ return { status: status.value, value: finalObject };}- return width;}-function wcwidth(ucs, opts) {- if (ucs === 0) {- return opts.nul;- }- if (ucs < 32 || ucs >= 127 && ucs < 160) {- return opts.control;- }- if (bisearch(ucs)) {- return 0;- }- return 1 + (ucs >= 4352 && (ucs <= 4447 || ucs === 9001 || ucs === 9002 || ucs >= 11904 && ucs <= 42191 && ucs !== 12351 || ucs >= 44032 && ucs <= 55203 || ucs >= 63744 && ucs <= 64255 || ucs >= 65040 && ucs <= 65049 || ucs >= 65072 && ucs <= 65135 || ucs >= 65280 && ucs <= 65376 || ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141));+var INVALID = Object.freeze({+ status: "aborted"+});+var DIRTY = (value) => ({ status: "dirty", value });+var OK = (value) => ({ status: "valid", value });+var isAborted = (x2) => x2.status === "aborted";+var isDirty = (x2) => x2.status === "dirty";+var isValid = (x2) => x2.status === "valid";+var isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;+function __classPrivateFieldGet(receiver, state, kind, f2) {+ if (kind === "a" && !f2)+ throw new TypeError("Private accessor was defined without a getter");+ if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))+ throw new TypeError("Cannot read private member from an object whose class did not declare it");+ return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);}-function bisearch(ucs) {- let min = 0;- let max = combining_default.length - 1;- if (ucs < combining_default[0][0] || ucs > combining_default[max][1]) {- return false;+function __classPrivateFieldSet(receiver, state, value, kind, f2) {+ if (kind === "m")+ throw new TypeError("Private method is not writable");+ if (kind === "a" && !f2)+ throw new TypeError("Private accessor was defined without a setter");+ if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))+ throw new TypeError("Cannot write private member to an object whose class did not declare it");+ return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;+}+var errorUtil;+(function(errorUtil2) {+ errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};+ errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === undefined ? undefined : message.message;+})(errorUtil || (errorUtil = {}));+var _ZodEnum_cache;+var _ZodNativeEnum_cache;++class ParseInputLazyPath {+ constructor(parent, value, path, key) {+ this._cachedPath = [];+ this.parent = parent;+ this.data = value;+ this._path = path;+ this._key = key;}- while (max >= min) {- const mid = Math.floor((min + max) / 2);- if (ucs > combining_default[mid][1]) {- min = mid + 1;- } else if (ucs < combining_default[mid][0]) {- max = mid - 1;- } else {- return true;+ get path() {+ if (!this._cachedPath.length) {+ if (this._key instanceof Array) {+ this._cachedPath.push(...this._path, ...this._key);+ } else {+ this._cachedPath.push(...this._path, this._key);+ }}+ return this._cachedPath;}- return false;-}--// node_modules/@topcli/spinner/node_modules/kleur/index.mjs-var FORCE_COLOR;-var NODE_DISABLE_COLORS;-var NO_COLOR;-var TERM;-var isTTY = true;-if (typeof process !== "undefined") {- ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});- isTTY = process.stdout && process.stdout.isTTY;}-var $2 = {- enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),- reset: init(0, 0),- bold: init(1, 22),- dim: init(2, 22),- italic: init(3, 23),- underline: init(4, 24),- inverse: init(7, 27),- hidden: init(8, 28),- strikethrough: init(9, 29),- black: init(30, 39),- red: init(31, 39),- green: init(32, 39),- yellow: init(33, 39),- blue: init(34, 39),- magenta: init(35, 39),- cyan: init(36, 39),- white: init(37, 39),- gray: init(90, 39),- grey: init(90, 39),- bgBlack: init(40, 49),- bgRed: init(41, 49),- bgGreen: init(42, 49),- bgYellow: init(43, 49),- bgBlue: init(44, 49),- bgMagenta: init(45, 49),- bgCyan: init(46, 49),- bgWhite: init(47, 49)-};-function run(arr, str) {- let i = 0, tmp, beg = "", end = "";- for (;i < arr.length; i++) {- tmp = arr[i];- beg += tmp.open;- end += tmp.close;- if (!!~str.indexOf(tmp.close)) {- str = str.replace(tmp.rgx, tmp.close + tmp.open);+var handleResult = (ctx, result) => {+ if (isValid(result)) {+ return { success: true, data: result.value };+ } else {+ if (!ctx.common.issues.length) {+ throw new Error("Validation failed but no issues detected.");}+ return {+ success: false,+ get error() {+ if (this._error)+ return this._error;+ const error = new ZodError(ctx.common.issues);+ this._error = error;+ return this._error;+ }+ };}- return beg + str + end;-}-function chain(has, keys) {- let ctx = { has, keys };- ctx.reset = $2.reset.bind(ctx);- ctx.bold = $2.bold.bind(ctx);- ctx.dim = $2.dim.bind(ctx);- ctx.italic = $2.italic.bind(ctx);- ctx.underline = $2.underline.bind(ctx);- ctx.inverse = $2.inverse.bind(ctx);- ctx.hidden = $2.hidden.bind(ctx);- ctx.strikethrough = $2.strikethrough.bind(ctx);- ctx.black = $2.black.bind(ctx);- ctx.red = $2.red.bind(ctx);- ctx.green = $2.green.bind(ctx);- ctx.yellow = $2.yellow.bind(ctx);- ctx.blue = $2.blue.bind(ctx);- ctx.magenta = $2.magenta.bind(ctx);- ctx.cyan = $2.cyan.bind(ctx);- ctx.white = $2.white.bind(ctx);- ctx.gray = $2.gray.bind(ctx);- ctx.grey = $2.grey.bind(ctx);- ctx.bgBlack = $2.bgBlack.bind(ctx);- ctx.bgRed = $2.bgRed.bind(ctx);- ctx.bgGreen = $2.bgGreen.bind(ctx);- ctx.bgYellow = $2.bgYellow.bind(ctx);- ctx.bgBlue = $2.bgBlue.bind(ctx);- ctx.bgMagenta = $2.bgMagenta.bind(ctx);- ctx.bgCyan = $2.bgCyan.bind(ctx);- ctx.bgWhite = $2.bgWhite.bind(ctx);- return ctx;-}-function init(open, close) {- let blk = {- open: `\x1B[${open}m`,- close: `\x1B[${close}m`,- rgx: new RegExp(`\\x1b\\[${close}m`, "g")- };- return function(txt) {- if (this !== undefined && this.has !== undefined) {- !!~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));- return txt === undefined ? this : $2.enabled ? run(this.keys, txt + "") : txt + "";+};+function processCreateParams(params) {+ if (!params)+ return {};+ const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;+ if (errorMap2 && (invalid_type_error || required_error)) {+ throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);+ }+ if (errorMap2)+ return { errorMap: errorMap2, description };+ const customMap = (iss, ctx) => {+ var _a, _b;+ const { message } = params;+ if (iss.code === "invalid_enum_value") {+ return { message: message !== null && message !== undefined ? message : ctx.defaultError };}- return txt === undefined ? chain([open], [blk]) : $2.enabled ? run([blk], txt + "") : txt + "";+ if (typeof ctx.data === "undefined") {+ return { message: (_a = message !== null && message !== undefined ? message : required_error) !== null && _a !== undefined ? _a : ctx.defaultError };+ }+ if (iss.code !== "invalid_type")+ return { message: ctx.defaultError };+ return { message: (_b = message !== null && message !== undefined ? message : invalid_type_error) !== null && _b !== undefined ? _b : ctx.defaultError };};+ return { errorMap: customMap, description };}-var kleur_default = $2;-// node_modules/@topcli/spinner/dist/index.js-var __accessCheck = (obj, member, msg) => {- if (!member.has(obj))- throw TypeError("Cannot " + msg);-};-var __privateGet = (obj, member, getter) => {- __accessCheck(obj, member, "read from private field");- return getter ? getter.call(obj) : member.get(obj);-};-var __privateAdd = (obj, member, value) => {- if (member.has(obj))- throw TypeError("Cannot add the same private member more than once");- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);-};-var __privateSet = (obj, member, value, setter) => {- __accessCheck(obj, member, "write to private field");- setter ? setter.call(obj, value) : member.set(obj, value);- return value;-};-var __privateWrapper = (obj, member, setter, getter) => ({- set _(value) {- __privateSet(obj, member, value, setter);- },- get _() {- return __privateGet(obj, member, getter);+class ZodType {+ get description() {+ return this._def.description;}-});-var __privateMethod = (obj, member, method) => {- __accessCheck(obj, member, "access private method");- return method;-};-var internalSpinnerCount = 0;-var kDefaultSpinnerName = "dots";-var kLogSymbols = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color" ? { success: kleur_default.bold().green("✔"), error: kleur_default.bold().red("✖") } : { success: kleur_default.bold().green("√"), error: kleur_default.bold().red("×") };-var _verbose;-var _started;-var _spinner;-var _text;-var _prefix;-var _color;-var _interval;-var _frameIndex;-var _spinnerPos;-var _startTime;-var _getSpinnerFrame;-var getSpinnerFrame_fn;-var _lineToRender;-var lineToRender_fn;-var _renderLine;-var renderLine_fn;-var _stop;-var stop_fn;-var Spinner = class extends EventEmitter {- constructor(options = {}) {- super();- __privateAdd(this, _getSpinnerFrame);- __privateAdd(this, _lineToRender);- __privateAdd(this, _renderLine);- __privateAdd(this, _stop);- this.stream = process.stdout;- __privateAdd(this, _verbose, true);- __privateAdd(this, _started, false);- __privateAdd(this, _spinner, undefined);- __privateAdd(this, _text, "");- __privateAdd(this, _prefix, "");- __privateAdd(this, _color, undefined);- __privateAdd(this, _interval, null);- __privateAdd(this, _frameIndex, 0);- __privateAdd(this, _spinnerPos, 0);- __privateAdd(this, _startTime, undefined);- __privateSet(this, _verbose, options.verbose ?? true);- if (!__privateGet(this, _verbose)) {- return;+ _getType(input) {+ return getParsedType(input.data);+ }+ _getOrReturnCtx(input, ctx) {+ return ctx || {+ common: input.parent.common,+ data: input.data,+ parsedType: getParsedType(input.data),+ schemaErrorMap: this._def.errorMap,+ path: input.path,+ parent: input.parent+ };+ }+ _processInputParams(input) {+ return {+ status: new ParseStatus,+ ctx: {+ common: input.parent.common,+ data: input.data,+ parsedType: getParsedType(input.data),+ schemaErrorMap: this._def.errorMap,+ path: input.path,+ parent: input.parent+ }+ };+ }+ _parseSync(input) {+ const result = this._parse(input);+ if (isAsync(result)) {+ throw new Error("Synchronous parse encountered promise.");}- const { name = kDefaultSpinnerName, color = null } = options;- __privateSet(this, _spinner, name in import_cli_spinners.default ? import_cli_spinners.default[name] : import_cli_spinners.default[kDefaultSpinnerName]);- if (color === null) {- __privateSet(this, _color, (str) => str);- } else {- __privateSet(this, _color, color in kleur_default ? kleur_default[color] : kleur_default.white);+ return result;+ }+ _parseAsync(input) {+ const result = this._parse(input);+ return Promise.resolve(result);+ }+ parse(data, params) {+ const result = this.safeParse(data, params);+ if (result.success)+ return result.data;+ throw result.error;+ }+ safeParse(data, params) {+ var _a;+ const ctx = {+ common: {+ issues: [],+ async: (_a = params === null || params === undefined ? undefined : params.async) !== null && _a !== undefined ? _a : false,+ contextualErrorMap: params === null || params === undefined ? undefined : params.errorMap+ },+ path: (params === null || params === undefined ? undefined : params.path) || [],+ schemaErrorMap: this._def.errorMap,+ parent: null,+ data,+ parsedType: getParsedType(data)+ };+ const result = this._parseSync({ data, path: ctx.path, parent: ctx });+ return handleResult(ctx, result);+ }+ "~validate"(data) {+ var _a, _b;+ const ctx = {+ common: {+ issues: [],+ async: !!this["~standard"].async+ },+ path: [],+ schemaErrorMap: this._def.errorMap,+ parent: null,+ data,+ parsedType: getParsedType(data)+ };+ if (!this["~standard"].async) {+ try {+ const result = this._parseSync({ data, path: [], parent: ctx });+ return isValid(result) ? {+ value: result.value+ } : {+ issues: ctx.common.issues+ };+ } catch (err) {+ if ((_b = (_a = err === null || err === undefined ? undefined : err.message) === null || _a === undefined ? undefined : _a.toLowerCase()) === null || _b === undefined ? undefined : _b.includes("encountered")) {+ this["~standard"].async = true;+ }+ ctx.common = {+ issues: [],+ async: true+ };+ }}+ return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {+ value: result.value+ } : {+ issues: ctx.common.issues+ });+ }+ async parseAsync(data, params) {+ const result = await this.safeParseAsync(data, params);+ if (result.success)+ return result.data;+ throw result.error;+ }+ async safeParseAsync(data, params) {+ const ctx = {+ common: {+ issues: [],+ contextualErrorMap: params === null || params === undefined ? undefined : params.errorMap,+ async: true+ },+ path: (params === null || params === undefined ? undefined : params.path) || [],+ schemaErrorMap: this._def.errorMap,+ parent: null,+ data,+ parsedType: getParsedType(data)+ };+ const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });+ const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));+ return handleResult(ctx, result);+ }+ refine(check, message) {+ const getIssueProperties = (val) => {+ if (typeof message === "string" || typeof message === "undefined") {+ return { message };+ } else if (typeof message === "function") {+ return message(val);+ } else {+ return message;+ }+ };+ return this._refinement((val, ctx) => {+ const result = check(val);+ const setError = () => ctx.addIssue({+ code: ZodIssueCode.custom,+ ...getIssueProperties(val)+ });+ if (typeof Promise !== "undefined" && result instanceof Promise) {+ return result.then((data) => {+ if (!data) {+ setError();+ return false;+ } else {+ return true;+ }+ });+ }+ if (!result) {+ setError();+ return false;+ } else {+ return true;+ }+ });+ }+ refinement(check, refinementData) {+ return this._refinement((val, ctx) => {+ if (!check(val)) {+ ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);+ return false;+ } else {+ return true;+ }+ });+ }+ _refinement(refinement) {+ return new ZodEffects({+ schema: this,+ typeName: ZodFirstPartyTypeKind.ZodEffects,+ effect: { type: "refinement", refinement }+ });+ }+ superRefine(refinement) {+ return this._refinement(refinement);+ }+ constructor(def) {+ this.spa = this.safeParseAsync;+ this._def = def;+ this.parse = this.parse.bind(this);+ this.safeParse = this.safeParse.bind(this);+ this.parseAsync = this.parseAsync.bind(this);+ this.safeParseAsync = this.safeParseAsync.bind(this);+ this.spa = this.spa.bind(this);+ this.refine = this.refine.bind(this);+ this.refinement = this.refinement.bind(this);+ this.superRefine = this.superRefine.bind(this);+ this.optional = this.optional.bind(this);+ this.nullable = this.nullable.bind(this);+ this.nullish = this.nullish.bind(this);+ this.array = this.array.bind(this);+ this.promise = this.promise.bind(this);+ this.or = this.or.bind(this);+ this.and = this.and.bind(this);+ this.transform = this.transform.bind(this);+ this.brand = this.brand.bind(this);+ this.default = this.default.bind(this);+ this.catch = this.catch.bind(this);+ this.describe = this.describe.bind(this);+ this.pipe = this.pipe.bind(this);+ this.readonly = this.readonly.bind(this);+ this.isNullable = this.isNullable.bind(this);+ this.isOptional = this.isOptional.bind(this);+ this["~standard"] = {+ version: 1,+ vendor: "zod",+ validate: (data) => this["~validate"](data)+ };+ }+ optional() {+ return ZodOptional.create(this, this._def);+ }+ nullable() {+ return ZodNullable.create(this, this._def);}- static reset() {- internalSpinnerCount = 0;+ nullish() {+ return this.nullable().optional();}- get started() {- return __privateGet(this, _started);+ array() {+ return ZodArray.create(this);}- get verbose() {- return __privateGet(this, _verbose);+ promise() {+ return ZodPromise.create(this, this._def);}- get elapsedTime() {- return performance2.now() - __privateGet(this, _startTime);+ or(option) {+ return ZodUnion.create([this, option], this._def);}- get startTime() {- return __privateGet(this, _startTime);+ and(incoming) {+ return ZodIntersection.create(this, incoming, this._def);}- set text(value) {- if (typeof value == "string") {- __privateSet(this, _text, value.replaceAll(/\r?\n|\r/gm, ""));- }+ transform(transform) {+ return new ZodEffects({+ ...processCreateParams(this._def),+ schema: this,+ typeName: ZodFirstPartyTypeKind.ZodEffects,+ effect: { type: "transform", transform }+ });}- get text() {- return __privateGet(this, _text);+ default(def) {+ const defaultValueFunc = typeof def === "function" ? def : () => def;+ return new ZodDefault({+ ...processCreateParams(this._def),+ innerType: this,+ defaultValue: defaultValueFunc,+ typeName: ZodFirstPartyTypeKind.ZodDefault+ });}- start(text, options = {}) {- __privateSet(this, _started, true);- this.text = text;- if (typeof options.withPrefix === "string") {- __privateSet(this, _prefix, options.withPrefix);- }- this.emit("start");- __privateSet(this, _spinnerPos, internalSpinnerCount++);- __privateSet(this, _startTime, performance2.now());- if (!__privateGet(this, _verbose)) {- return this;- }- __privateSet(this, _frameIndex, 0);- this.stream.write(__privateMethod(this, _lineToRender, lineToRender_fn).call(this) + `-`);- __privateSet(this, _interval, setInterval(() => __privateMethod(this, _renderLine, renderLine_fn).call(this), __privateGet(this, _spinner).interval));- return this;+ brand() {+ return new ZodBranded({+ typeName: ZodFirstPartyTypeKind.ZodBranded,+ type: this,+ ...processCreateParams(this._def)+ });}- succeed(text) {- if (__privateGet(this, _started)) {- __privateMethod(this, _stop, stop_fn).call(this, text);- __privateMethod(this, _renderLine, renderLine_fn).call(this, kLogSymbols.success);- this.emit("succeed");- }- return this;+ catch(def) {+ const catchValueFunc = typeof def === "function" ? def : () => def;+ return new ZodCatch({+ ...processCreateParams(this._def),+ innerType: this,+ catchValue: catchValueFunc,+ typeName: ZodFirstPartyTypeKind.ZodCatch+ });}- failed(text) {- if (__privateGet(this, _started)) {- __privateMethod(this, _stop, stop_fn).call(this, text);- __privateMethod(this, _renderLine, renderLine_fn).call(this, kLogSymbols.error);- this.emit("failed");- }- return this;+ describe(description) {+ const This = this.constructor;+ return new This({+ ...this._def,+ description+ });}-};-_verbose = new WeakMap;-_started = new WeakMap;-_spinner = new WeakMap;-_text = new WeakMap;-_prefix = new WeakMap;-_color = new WeakMap;-_interval = new WeakMap;-_frameIndex = new WeakMap;-_spinnerPos = new WeakMap;-_startTime = new WeakMap;-_getSpinnerFrame = new WeakSet;-getSpinnerFrame_fn = function(spinnerSymbol) {- if (typeof spinnerSymbol === "string") {- return spinnerSymbol;+ pipe(target) {+ return ZodPipeline.create(this, target);}- const { frames } = __privateGet(this, _spinner);- const frame = frames[__privateGet(this, _frameIndex)];- __privateSet(this, _frameIndex, ++__privateWrapper(this, _frameIndex)._ < frames.length ? __privateGet(this, _frameIndex) : 0);- return __privateGet(this, _color).call(this, frame);-};-_lineToRender = new WeakSet;-lineToRender_fn = function(spinnerSymbol) {- const terminalCol = this.stream.columns;- const defaultRaw = `${__privateMethod(this, _getSpinnerFrame, getSpinnerFrame_fn).call(this, spinnerSymbol)} ${__privateGet(this, _prefix)}${this.text}`;- let regexArray = [];- let count = 0;- while (true) {- regexArray = defaultRaw.slice(0, terminalCol + count).match(ansiRegex()) ?? [];- if (regexArray.length === count) {- break;- }- count = regexArray.length;+ readonly() {+ return ZodReadonly.create(this);}- count += regexArray.reduce((prev, curr) => prev + wcswidth(curr), 0);- return wcswidth(stripAnsi(defaultRaw)) > terminalCol ? `${defaultRaw.slice(0, terminalCol + count)}\x1B[0m` : defaultRaw;-};-_renderLine = new WeakSet;-renderLine_fn = function(spinnerSymbol) {- if (!__privateGet(this, _verbose)) {- return;+ isOptional() {+ return this.safeParse(undefined).success;}- const moveCursorPos = internalSpinnerCount - __privateGet(this, _spinnerPos);- readline.moveCursor(this.stream, 0, -moveCursorPos);- const line = __privateMethod(this, _lineToRender, lineToRender_fn).call(this, spinnerSymbol);- readline.clearLine(this.stream, 0);- this.stream.write(line);- readline.moveCursor(this.stream, -wcswidth(line), moveCursorPos);-};-_stop = new WeakSet;-stop_fn = function(text) {- this.text = text;- __privateSet(this, _started, false);- if (__privateGet(this, _interval) !== null) {- clearInterval(__privateGet(this, _interval));+ isNullable() {+ return this.safeParse(null).success;}-};--// node_modules/chalk/source/vendor/ansi-styles/index.js-var ANSI_BACKGROUND_OFFSET = 10;-var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;-var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;-var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;-var styles = {- modifier: {- reset: [0, 0],- bold: [1, 22],- dim: [2, 22],- italic: [3, 23],- underline: [4, 24],- overline: [53, 55],- inverse: [7, 27],- hidden: [8, 28],- strikethrough: [9, 29]- },- color: {- black: [30, 39],- red: [31, 39],- green: [32, 39],- yellow: [33, 39],- blue: [34, 39],- magenta: [35, 39],- cyan: [36, 39],- white: [37, 39],- blackBright: [90, 39],- gray: [90, 39],- grey: [90, 39],- redBright: [91, 39],- greenBright: [92, 39],- yellowBright: [93, 39],- blueBright: [94, 39],- magentaBright: [95, 39],- cyanBright: [96, 39],- whiteBright: [97, 39]- },- bgColor: {- bgBlack: [40, 49],- bgRed: [41, 49],- bgGreen: [42, 49],- bgYellow: [43, 49],- bgBlue: [44, 49],- bgMagenta: [45, 49],- bgCyan: [46, 49],- bgWhite: [47, 49],- bgBlackBright: [100, 49],- bgGray: [100, 49],- bgGrey: [100, 49],- bgRedBright: [101, 49],- bgGreenBright: [102, 49],- bgYellowBright: [103, 49],- bgBlueBright: [104, 49],- bgMagentaBright: [105, 49],- bgCyanBright: [106, 49],- bgWhiteBright: [107, 49]+}+var cuidRegex = /^c[^\s-]{8,}$/i;+var cuid2Regex = /^[0-9a-z]+$/;+var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;+var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;+var nanoidRegex = /^[a-z0-9_-]{21}$/i;+var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;+var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;+var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;+var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;+var emojiRegex;+var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;+var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;+var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;+var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;+var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;+var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;+var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;+var dateRegex = new RegExp(`^${dateRegexSource}$`);+function timeRegexSource(args) {+ let regex2 = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;+ if (args.precision) {+ regex2 = `${regex2}\\.\\d{${args.precision}}`;+ } else if (args.precision == null) {+ regex2 = `${regex2}(\\.\\d+)?`;}-};-var modifierNames = Object.keys(styles.modifier);-var foregroundColorNames = Object.keys(styles.color);-var backgroundColorNames = Object.keys(styles.bgColor);-var colorNames = [...foregroundColorNames, ...backgroundColorNames];-function assembleStyles() {- const codes = new Map;- for (const [groupName, group] of Object.entries(styles)) {- for (const [styleName, style] of Object.entries(group)) {- styles[styleName] = {- open: `\x1B[${style[0]}m`,- close: `\x1B[${style[1]}m`- };- group[styleName] = styles[styleName];- codes.set(style[0], style[1]);- }- Object.defineProperty(styles, groupName, {- value: group,- enumerable: false- });+ return regex2;+}+function timeRegex(args) {+ return new RegExp(`^${timeRegexSource(args)}$`);+}+function datetimeRegex(args) {+ let regex2 = `${dateRegexSource}T${timeRegexSource(args)}`;+ const opts = [];+ opts.push(args.local ? `Z?` : `Z`);+ if (args.offset)+ opts.push(`([+-]\\d{2}:?\\d{2})`);+ regex2 = `${regex2}(${opts.join("|")})`;+ return new RegExp(`^${regex2}$`);+}+function isValidIP(ip, version) {+ if ((version === "v4" || !version) && ipv4Regex.test(ip)) {+ return true;}- Object.defineProperty(styles, "codes", {- value: codes,- enumerable: false- });- styles.color.close = "\x1B[39m";- styles.bgColor.close = "\x1B[49m";- styles.color.ansi = wrapAnsi16();- styles.color.ansi256 = wrapAnsi256();- styles.color.ansi16m = wrapAnsi16m();- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);- Object.defineProperties(styles, {- rgbToAnsi256: {- value(red, green, blue) {- if (red === green && green === blue) {- if (red < 8) {- return 16;- }- if (red > 248) {- return 231;+ if ((version === "v6" || !version) && ipv6Regex.test(ip)) {+ return true;+ }+ return false;+}+function isValidJWT(jwt, alg) {+ if (!jwtRegex.test(jwt))+ return false;+ try {+ const [header] = jwt.split(".");+ const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");+ const decoded = JSON.parse(atob(base64));+ if (typeof decoded !== "object" || decoded === null)+ return false;+ if (!decoded.typ || !decoded.alg)+ return false;+ if (alg && decoded.alg !== alg)+ return false;+ return true;+ } catch (_a) {+ return false;+ }+}+function isValidCidr(ip, version) {+ if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {+ return true;+ }+ if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {+ return true;+ }+ return false;+}++class ZodString extends ZodType {+ _parse(input) {+ if (this._def.coerce) {+ input.data = String(input.data);+ }+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.string) {+ const ctx2 = this._getOrReturnCtx(input);+ addIssueToContext(ctx2, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.string,+ received: ctx2.parsedType+ });+ return INVALID;+ }+ const status = new ParseStatus;+ let ctx = undefined;+ for (const check of this._def.checks) {+ if (check.kind === "min") {+ if (input.data.length < check.value) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: check.value,+ type: "string",+ inclusive: true,+ exact: false,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "max") {+ if (input.data.length > check.value) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: check.value,+ type: "string",+ inclusive: true,+ exact: false,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "length") {+ const tooBig = input.data.length > check.value;+ const tooSmall = input.data.length < check.value;+ if (tooBig || tooSmall) {+ ctx = this._getOrReturnCtx(input, ctx);+ if (tooBig) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: check.value,+ type: "string",+ inclusive: true,+ exact: true,+ message: check.message+ });+ } else if (tooSmall) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: check.value,+ type: "string",+ inclusive: true,+ exact: true,+ message: check.message+ });}- return Math.round((red - 8) / 247 * 24) + 232;+ status.dirty();+ }+ } else if (check.kind === "email") {+ if (!emailRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "email",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "emoji") {+ if (!emojiRegex) {+ emojiRegex = new RegExp(_emojiRegex, "u");+ }+ if (!emojiRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "emoji",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "uuid") {+ if (!uuidRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "uuid",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "nanoid") {+ if (!nanoidRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "nanoid",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "cuid") {+ if (!cuidRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "cuid",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "cuid2") {+ if (!cuid2Regex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "cuid2",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "ulid") {+ if (!ulidRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "ulid",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "url") {+ try {+ new URL(input.data);+ } catch (_a) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "url",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "regex") {+ check.regex.lastIndex = 0;+ const testResult = check.regex.test(input.data);+ if (!testResult) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "regex",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "trim") {+ input.data = input.data.trim();+ } else if (check.kind === "includes") {+ if (!input.data.includes(check.value, check.position)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: { includes: check.value, position: check.position },+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "toLowerCase") {+ input.data = input.data.toLowerCase();+ } else if (check.kind === "toUpperCase") {+ input.data = input.data.toUpperCase();+ } else if (check.kind === "startsWith") {+ if (!input.data.startsWith(check.value)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: { startsWith: check.value },+ message: check.message+ });+ status.dirty();}- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);- },- enumerable: false- },- hexToRgb: {- value(hex) {- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));- if (!matches) {- return [0, 0, 0];+ } else if (check.kind === "endsWith") {+ if (!input.data.endsWith(check.value)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: { endsWith: check.value },+ message: check.message+ });+ status.dirty();}- let [colorString] = matches;- if (colorString.length === 3) {- colorString = [...colorString].map((character) => character + character).join("");+ } else if (check.kind === "datetime") {+ const regex2 = datetimeRegex(check);+ if (!regex2.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: "datetime",+ message: check.message+ });+ status.dirty();}- const integer = Number.parseInt(colorString, 16);- return [- integer >> 16 & 255,- integer >> 8 & 255,- integer & 255- ];- },- enumerable: false- },- hexToAnsi256: {- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),- enumerable: false- },- ansi256ToAnsi: {- value(code) {- if (code < 8) {- return 30 + code;+ } else if (check.kind === "date") {+ const regex2 = dateRegex;+ if (!regex2.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: "date",+ message: check.message+ });+ status.dirty();}- if (code < 16) {- return 90 + (code - 8);+ } else if (check.kind === "time") {+ const regex2 = timeRegex(check);+ if (!regex2.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_string,+ validation: "time",+ message: check.message+ });+ status.dirty();}- let red;- let green;- let blue;- if (code >= 232) {- red = ((code - 232) * 10 + 8) / 255;- green = red;- blue = red;- } else {- code -= 16;- const remainder = code % 36;- red = Math.floor(code / 36) / 5;- green = Math.floor(remainder / 6) / 5;- blue = remainder % 6 / 5;+ } else if (check.kind === "duration") {+ if (!durationRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "duration",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();}- const value = Math.max(red, green, blue) * 2;- if (value === 0) {- return 30;+ } else if (check.kind === "ip") {+ if (!isValidIP(input.data, check.version)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "ip",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();}- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));- if (value === 2) {- result += 60;+ } else if (check.kind === "jwt") {+ if (!isValidJWT(input.data, check.alg)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "jwt",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();}- return result;- },- enumerable: false- },- rgbToAnsi: {- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),- enumerable: false- },- hexToAnsi: {- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),- enumerable: false- }- });- return styles;-}-var ansiStyles = assembleStyles();-var ansi_styles_default = ansiStyles;--// node_modules/chalk/source/vendor/supports-color/index.js-import process2 from "node:process";-import os from "node:os";-import tty from "node:tty";-function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";- const position = argv.indexOf(prefix + flag);- const terminatorPosition = argv.indexOf("--");- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);-}-var { env } = process2;-var flagForceColor;-if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {- flagForceColor = 0;-} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {- flagForceColor = 1;-}-function envForceColor() {- if ("FORCE_COLOR" in env) {- if (env.FORCE_COLOR === "true") {- return 1;- }- if (env.FORCE_COLOR === "false") {- return 0;+ } else if (check.kind === "cidr") {+ if (!isValidCidr(input.data, check.version)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "cidr",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "base64") {+ if (!base64Regex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "base64",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "base64url") {+ if (!base64urlRegex.test(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ validation: "base64url",+ code: ZodIssueCode.invalid_string,+ message: check.message+ });+ status.dirty();+ }+ } else {+ util.assertNever(check);+ }}- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);+ return { status: status.value, value: input.data };}-}-function translateLevel(level) {- if (level === 0) {- return false;+ _regex(regex2, validation, message) {+ return this.refinement((data) => regex2.test(data), {+ validation,+ code: ZodIssueCode.invalid_string,+ ...errorUtil.errToObj(message)+ });}- return {- level,- hasBasic: true,- has256: level >= 2,- has16m: level >= 3- };-}-function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {- const noFlagForceColor = envForceColor();- if (noFlagForceColor !== undefined) {- flagForceColor = noFlagForceColor;+ _addCheck(check) {+ return new ZodString({+ ...this._def,+ checks: [...this._def.checks, check]+ });}- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;- if (forceColor === 0) {- return 0;+ email(message) {+ return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });}- if (sniffFlags) {- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {- return 3;- }- if (hasFlag("color=256")) {- return 2;- }+ url(message) {+ return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });}- if ("TF_BUILD" in env && "AGENT_NAME" in env) {- return 1;+ emoji(message) {+ return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });}- if (haveStream && !streamIsTTY && forceColor === undefined) {- return 0;+ uuid(message) {+ return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });}- const min = forceColor || 0;- if (env.TERM === "dumb") {- return min;+ nanoid(message) {+ return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });}- if (process2.platform === "win32") {- const osRelease = os.release().split(".");- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {- return Number(osRelease[2]) >= 14931 ? 3 : 2;- }- return 1;+ cuid(message) {+ return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });}- if ("CI" in env) {- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {- return 3;+ cuid2(message) {+ return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });+ }+ ulid(message) {+ return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });+ }+ base64(message) {+ return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });+ }+ base64url(message) {+ return this._addCheck({+ kind: "base64url",+ ...errorUtil.errToObj(message)+ });+ }+ jwt(options) {+ return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });+ }+ ip(options) {+ return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });+ }+ cidr(options) {+ return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });+ }+ datetime(options) {+ var _a, _b;+ if (typeof options === "string") {+ return this._addCheck({+ kind: "datetime",+ precision: null,+ offset: false,+ local: false,+ message: options+ });}- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {- return 1;+ return this._addCheck({+ kind: "datetime",+ precision: typeof (options === null || options === undefined ? undefined : options.precision) === "undefined" ? null : options === null || options === undefined ? undefined : options.precision,+ offset: (_a = options === null || options === undefined ? undefined : options.offset) !== null && _a !== undefined ? _a : false,+ local: (_b = options === null || options === undefined ? undefined : options.local) !== null && _b !== undefined ? _b : false,+ ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)+ });+ }+ date(message) {+ return this._addCheck({ kind: "date", message });+ }+ time(options) {+ if (typeof options === "string") {+ return this._addCheck({+ kind: "time",+ precision: null,+ message: options+ });}- return min;+ return this._addCheck({+ kind: "time",+ precision: typeof (options === null || options === undefined ? undefined : options.precision) === "undefined" ? null : options === null || options === undefined ? undefined : options.precision,+ ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)+ });}- if ("TEAMCITY_VERSION" in env) {- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;+ duration(message) {+ return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });}- if (env.COLORTERM === "truecolor") {- return 3;+ regex(regex2, message) {+ return this._addCheck({+ kind: "regex",+ regex: regex2,+ ...errorUtil.errToObj(message)+ });}- if (env.TERM === "xterm-kitty") {- return 3;+ includes(value, options) {+ return this._addCheck({+ kind: "includes",+ value,+ position: options === null || options === undefined ? undefined : options.position,+ ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)+ });}- if ("TERM_PROGRAM" in env) {- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);- switch (env.TERM_PROGRAM) {- case "iTerm.app": {- return version >= 3 ? 3 : 2;- }- case "Apple_Terminal": {- return 2;- }- }+ startsWith(value, message) {+ return this._addCheck({+ kind: "startsWith",+ value,+ ...errorUtil.errToObj(message)+ });}- if (/-256(color)?$/i.test(env.TERM)) {- return 2;+ endsWith(value, message) {+ return this._addCheck({+ kind: "endsWith",+ value,+ ...errorUtil.errToObj(message)+ });}- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {- return 1;+ min(minLength, message) {+ return this._addCheck({+ kind: "min",+ value: minLength,+ ...errorUtil.errToObj(message)+ });}- if ("COLORTERM" in env) {- return 1;+ max(maxLength, message) {+ return this._addCheck({+ kind: "max",+ value: maxLength,+ ...errorUtil.errToObj(message)+ });}- return min;-}-function createSupportsColor(stream, options = {}) {- const level = _supportsColor(stream, {- streamIsTTY: stream && stream.isTTY,- ...options- });- return translateLevel(level);-}-var supportsColor = {- stdout: createSupportsColor({ isTTY: tty.isatty(1) }),- stderr: createSupportsColor({ isTTY: tty.isatty(2) })-};-var supports_color_default = supportsColor;--// node_modules/chalk/source/utilities.js-function stringReplaceAll(string, substring, replacer) {- let index = string.indexOf(substring);- if (index === -1) {- return string;+ length(len, message) {+ return this._addCheck({+ kind: "length",+ value: len,+ ...errorUtil.errToObj(message)+ });}- const substringLength = substring.length;- let endIndex = 0;- let returnValue = "";- do {- returnValue += string.slice(endIndex, index) + substring + replacer;- endIndex = index + substringLength;- index = string.indexOf(substring, endIndex);- } while (index !== -1);- returnValue += string.slice(endIndex);- return returnValue;-}-function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {- let endIndex = 0;- let returnValue = "";- do {- const gotCR = string[index - 1] === "\r";- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r-` : `-`) + postfix;- endIndex = index + 1;- index = string.indexOf(`-`, endIndex);- } while (index !== -1);- returnValue += string.slice(endIndex);- return returnValue;-}--// node_modules/chalk/source/index.js-var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;-var GENERATOR = Symbol("GENERATOR");-var STYLER = Symbol("STYLER");-var IS_EMPTY = Symbol("IS_EMPTY");-var levelMapping = [- "ansi",- "ansi",- "ansi256",- "ansi16m"-];-var styles2 = Object.create(null);-var applyOptions = (object, options = {}) => {- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {- throw new Error("The `level` option should be an integer from 0 to 3");+ nonempty(message) {+ return this.min(1, errorUtil.errToObj(message));}- const colorLevel = stdoutColor ? stdoutColor.level : 0;- object.level = options.level === undefined ? colorLevel : options.level;-};-var chalkFactory = (options) => {- const chalk = (...strings) => strings.join(" ");- applyOptions(chalk, options);- Object.setPrototypeOf(chalk, createChalk.prototype);- return chalk;-};-function createChalk(options) {- return chalkFactory(options);-}-Object.setPrototypeOf(createChalk.prototype, Function.prototype);-for (const [styleName, style] of Object.entries(ansi_styles_default)) {- styles2[styleName] = {- get() {- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);- Object.defineProperty(this, styleName, { value: builder });- return builder;- }- };-}-styles2.visible = {- get() {- const builder = createBuilder(this, this[STYLER], true);- Object.defineProperty(this, "visible", { value: builder });- return builder;+ trim() {+ return new ZodString({+ ...this._def,+ checks: [...this._def.checks, { kind: "trim" }]+ });+ }+ toLowerCase() {+ return new ZodString({+ ...this._def,+ checks: [...this._def.checks, { kind: "toLowerCase" }]+ });+ }+ toUpperCase() {+ return new ZodString({+ ...this._def,+ checks: [...this._def.checks, { kind: "toUpperCase" }]+ });+ }+ get isDatetime() {+ return !!this._def.checks.find((ch) => ch.kind === "datetime");+ }+ get isDate() {+ return !!this._def.checks.find((ch) => ch.kind === "date");+ }+ get isTime() {+ return !!this._def.checks.find((ch) => ch.kind === "time");+ }+ get isDuration() {+ return !!this._def.checks.find((ch) => ch.kind === "duration");+ }+ get isEmail() {+ return !!this._def.checks.find((ch) => ch.kind === "email");}-};-var getModelAnsi = (model, level, type, ...arguments_) => {- if (model === "rgb") {- if (level === "ansi16m") {- return ansi_styles_default[type].ansi16m(...arguments_);- }- if (level === "ansi256") {- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));- }- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));+ get isURL() {+ return !!this._def.checks.find((ch) => ch.kind === "url");}- if (model === "hex") {- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));+ get isEmoji() {+ return !!this._def.checks.find((ch) => ch.kind === "emoji");}- return ansi_styles_default[type][model](...arguments_);-};-var usedModels = ["rgb", "hex", "ansi256"];-for (const model of usedModels) {- styles2[model] = {- get() {- const { level } = this;- return function(...arguments_) {- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);- return createBuilder(this, styler, this[IS_EMPTY]);- };- }- };- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);- styles2[bgModel] = {- get() {- const { level } = this;- return function(...arguments_) {- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);- return createBuilder(this, styler, this[IS_EMPTY]);- };- }- };-}-var proto = Object.defineProperties(() => {-}, {- ...styles2,- level: {- enumerable: true,- get() {- return this[GENERATOR].level;- },- set(level) {- this[GENERATOR].level = level;- }+ get isUUID() {+ return !!this._def.checks.find((ch) => ch.kind === "uuid");}-});-var createStyler = (open, close, parent) => {- let openAll;- let closeAll;- if (parent === undefined) {- openAll = open;- closeAll = close;- } else {- openAll = parent.openAll + open;- closeAll = close + parent.closeAll;+ get isNANOID() {+ return !!this._def.checks.find((ch) => ch.kind === "nanoid");}- return {- open,- close,- openAll,- closeAll,- parent- };-};-var createBuilder = (self2, _styler, _isEmpty) => {- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));- Object.setPrototypeOf(builder, proto);- builder[GENERATOR] = self2;- builder[STYLER] = _styler;- builder[IS_EMPTY] = _isEmpty;- return builder;-};-var applyStyle = (self2, string) => {- if (self2.level <= 0 || !string) {- return self2[IS_EMPTY] ? "" : string;+ get isCUID() {+ return !!this._def.checks.find((ch) => ch.kind === "cuid");}- let styler = self2[STYLER];- if (styler === undefined) {- return string;+ get isCUID2() {+ return !!this._def.checks.find((ch) => ch.kind === "cuid2");}- const { openAll, closeAll } = styler;- if (string.includes("\x1B")) {- while (styler !== undefined) {- string = stringReplaceAll(string, styler.close, styler.open);- styler = styler.parent;- }+ get isULID() {+ return !!this._def.checks.find((ch) => ch.kind === "ulid");}- const lfIndex = string.indexOf(`-`);- if (lfIndex !== -1) {- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);+ get isIP() {+ return !!this._def.checks.find((ch) => ch.kind === "ip");}- return openAll + string + closeAll;-};-Object.defineProperties(createChalk.prototype, styles2);-var chalk = createChalk();-var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });-var source_default = chalk;--// src/utils/colors.ts-var colors = {- primary: source_default.cyan,- success: source_default.green,- error: source_default.red,- warning: source_default.yellow,- info: source_default.blue,- dim: source_default.gray,- highlight: source_default.magenta,- bold: source_default.bold,- header: (text) => source_default.bold.cyan(`-${text}`),- subHeader: (text) => source_default.dim(`${text}`),- listItem: (text) => source_default.cyan(` * ${text}`),- label: (text) => source_default.bold.blue(`${text}:`),- value: (text) => source_default.white(`${text}`)-};-var symbols = {- success: "+",- error: "x",- warning: "!",- info: "i",- arrow: ">"-};--// src/commands/components/commands/add/utils/logger.ts-var highlighter = {- error: colors.error,- warn: colors.warning,- info: colors.info,- success: colors.success-};-var logger = {- error(...args) {- console.log(highlighter.error(args.join(" ").toLowerCase()));- },- warn(...args) {- console.log(highlighter.warn(args.join(" ").toLowerCase()));- },- info(...args) {- console.log(highlighter.info(args.join(" ").toLowerCase()));- },- success(...args) {- console.log(highlighter.success(args.join(" ").toLowerCase()));- },- log(...args) {- console.log(args.join(" ").toLowerCase());- },- break() {- console.log("");+ get isCIDR() {+ return !!this._def.checks.find((ch) => ch.kind === "cidr");}-};-function spinner(text, options) {- return new Spinner({- verbose: !options?.silent,- color: "white"- }).start(text);-}--// node_modules/zod/lib/index.mjs-var util;-(function(util2) {- util2.assertEqual = (val) => val;- function assertIs(_arg) {+ get isBase64() {+ return !!this._def.checks.find((ch) => ch.kind === "base64");}- util2.assertIs = assertIs;- function assertNever(_x) {- throw new Error;+ get isBase64url() {+ return !!this._def.checks.find((ch) => ch.kind === "base64url");}- util2.assertNever = assertNever;- util2.arrayToEnum = (items) => {- const obj = {};- for (const item of items) {- obj[item] = item;- }- return obj;- };- util2.getValidEnumValues = (obj) => {- const validKeys = util2.objectKeys(obj).filter((k3) => typeof obj[obj[k3]] !== "number");- const filtered = {};- for (const k3 of validKeys) {- filtered[k3] = obj[k3];- }- return util2.objectValues(filtered);- };- util2.objectValues = (obj) => {- return util2.objectKeys(obj).map(function(e2) {- return obj[e2];- });- };- util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {- const keys = [];- for (const key in object) {- if (Object.prototype.hasOwnProperty.call(object, key)) {- keys.push(key);+ get minLength() {+ let min = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "min") {+ if (min === null || ch.value > min)+ min = ch.value;}}- return keys;- };- util2.find = (arr, checker) => {- for (const item of arr) {- if (checker(item))- return item;- }- return;- };- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;- function joinValues(array, separator = " | ") {- return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);+ return min;}- util2.joinValues = joinValues;- util2.jsonStringifyReplacer = (_4, value) => {- if (typeof value === "bigint") {- return value.toString();- }- return value;- };-})(util || (util = {}));-var objectUtil;-(function(objectUtil2) {- objectUtil2.mergeShapes = (first, second) => {- return {- ...first,- ...second- };- };-})(objectUtil || (objectUtil = {}));-var ZodParsedType = util.arrayToEnum([- "string",- "nan",- "number",- "integer",- "float",- "boolean",- "date",- "bigint",- "symbol",- "function",- "undefined",- "null",- "array",- "object",- "unknown",- "promise",- "void",- "never",- "map",- "set"-]);-var getParsedType = (data) => {- const t = typeof data;- switch (t) {- case "undefined":- return ZodParsedType.undefined;- case "string":- return ZodParsedType.string;- case "number":- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;- case "boolean":- return ZodParsedType.boolean;- case "function":- return ZodParsedType.function;- case "bigint":- return ZodParsedType.bigint;- case "symbol":- return ZodParsedType.symbol;- case "object":- if (Array.isArray(data)) {- return ZodParsedType.array;- }- if (data === null) {- return ZodParsedType.null;- }- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {- return ZodParsedType.promise;- }- if (typeof Map !== "undefined" && data instanceof Map) {- return ZodParsedType.map;- }- if (typeof Set !== "undefined" && data instanceof Set) {- return ZodParsedType.set;- }- if (typeof Date !== "undefined" && data instanceof Date) {- return ZodParsedType.date;+ get maxLength() {+ let max = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "max") {+ if (max === null || ch.value < max)+ max = ch.value;}- return ZodParsedType.object;- default:- return ZodParsedType.unknown;+ }+ return max;}+}+ZodString.create = (params) => {+ var _a;+ return new ZodString({+ checks: [],+ typeName: ZodFirstPartyTypeKind.ZodString,+ coerce: (_a = params === null || params === undefined ? undefined : params.coerce) !== null && _a !== undefined ? _a : false,+ ...processCreateParams(params)+ });};-var ZodIssueCode = util.arrayToEnum([- "invalid_type",- "invalid_literal",- "custom",- "invalid_union",- "invalid_union_discriminator",- "invalid_enum_value",- "unrecognized_keys",- "invalid_arguments",- "invalid_return_type",- "invalid_date",- "invalid_string",- "too_small",- "too_big",- "invalid_intersection_types",- "not_multiple_of",- "not_finite"-]);-var quotelessJson = (obj) => {- const json = JSON.stringify(obj, null, 2);- return json.replace(/"([^"]+)":/g, "$1:");-};+function floatSafeRemainder(val, step) {+ const valDecCount = (val.toString().split(".")[1] || "").length;+ const stepDecCount = (step.toString().split(".")[1] || "").length;+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;+ const valInt = parseInt(val.toFixed(decCount).replace(".", ""));+ const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));+ return valInt % stepInt / Math.pow(10, decCount);+}-class ZodError extends Error {- get errors() {- return this.issues;+class ZodNumber extends ZodType {+ constructor() {+ super(...arguments);+ this.min = this.gte;+ this.max = this.lte;+ this.step = this.multipleOf;}- constructor(issues) {- super();- this.issues = [];- this.addIssue = (sub) => {- this.issues = [...this.issues, sub];- };- this.addIssues = (subs = []) => {- this.issues = [...this.issues, ...subs];- };- const actualProto = new.target.prototype;- if (Object.setPrototypeOf) {- Object.setPrototypeOf(this, actualProto);- } else {- this.__proto__ = actualProto;+ _parse(input) {+ if (this._def.coerce) {+ input.data = Number(input.data);}- this.name = "ZodError";- this.issues = issues;- }- format(_mapper) {- const mapper = _mapper || function(issue) {- return issue.message;- };- const fieldErrors = { _errors: [] };- const processError = (error) => {- for (const issue of error.issues) {- if (issue.code === "invalid_union") {- issue.unionErrors.map(processError);- } else if (issue.code === "invalid_return_type") {- processError(issue.returnTypeError);- } else if (issue.code === "invalid_arguments") {- processError(issue.argumentsError);- } else if (issue.path.length === 0) {- fieldErrors._errors.push(mapper(issue));- } else {- let curr = fieldErrors;- let i = 0;- while (i < issue.path.length) {- const el = issue.path[i];- const terminal = i === issue.path.length - 1;- if (!terminal) {- curr[el] = curr[el] || { _errors: [] };- } else {- curr[el] = curr[el] || { _errors: [] };- curr[el]._errors.push(mapper(issue));- }- curr = curr[el];- i++;- }+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.number) {+ const ctx2 = this._getOrReturnCtx(input);+ addIssueToContext(ctx2, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.number,+ received: ctx2.parsedType+ });+ return INVALID;+ }+ let ctx = undefined;+ const status = new ParseStatus;+ for (const check of this._def.checks) {+ if (check.kind === "int") {+ if (!util.isInteger(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: "integer",+ received: "float",+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "min") {+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;+ if (tooSmall) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: check.value,+ type: "number",+ inclusive: check.inclusive,+ exact: false,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "max") {+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;+ if (tooBig) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: check.value,+ type: "number",+ inclusive: check.inclusive,+ exact: false,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "multipleOf") {+ if (floatSafeRemainder(input.data, check.value) !== 0) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.not_multiple_of,+ multipleOf: check.value,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "finite") {+ if (!Number.isFinite(input.data)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.not_finite,+ message: check.message+ });+ status.dirty();}+ } else {+ util.assertNever(check);}- };- processError(this);- return fieldErrors;- }- static assert(value) {- if (!(value instanceof ZodError)) {- throw new Error(`Not a ZodError: ${value}`);}+ return { status: status.value, value: input.data };}- toString() {- return this.message;+ gte(value, message) {+ return this.setLimit("min", value, true, errorUtil.toString(message));}- get message() {- return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);+ gt(value, message) {+ return this.setLimit("min", value, false, errorUtil.toString(message));+ }+ lte(value, message) {+ return this.setLimit("max", value, true, errorUtil.toString(message));+ }+ lt(value, message) {+ return this.setLimit("max", value, false, errorUtil.toString(message));+ }+ setLimit(kind, value, inclusive, message) {+ return new ZodNumber({+ ...this._def,+ checks: [+ ...this._def.checks,+ {+ kind,+ value,+ inclusive,+ message: errorUtil.toString(message)+ }+ ]+ });}- get isEmpty() {- return this.issues.length === 0;+ _addCheck(check) {+ return new ZodNumber({+ ...this._def,+ checks: [...this._def.checks, check]+ });}- flatten(mapper = (issue) => issue.message) {- const fieldErrors = {};- const formErrors = [];- for (const sub of this.issues) {- if (sub.path.length > 0) {- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];- fieldErrors[sub.path[0]].push(mapper(sub));- } else {- formErrors.push(mapper(sub));- }- }- return { formErrors, fieldErrors };+ int(message) {+ return this._addCheck({+ kind: "int",+ message: errorUtil.toString(message)+ });}- get formErrors() {- return this.flatten();+ positive(message) {+ return this._addCheck({+ kind: "min",+ value: 0,+ inclusive: false,+ message: errorUtil.toString(message)+ });}-}-ZodError.create = (issues) => {- const error = new ZodError(issues);- return error;-};-var errorMap = (issue, _ctx) => {- let message;- switch (issue.code) {- case ZodIssueCode.invalid_type:- if (issue.received === ZodParsedType.undefined) {- message = "Required";- } else {- message = `Expected ${issue.expected}, received ${issue.received}`;- }- break;- case ZodIssueCode.invalid_literal:- message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;- break;- case ZodIssueCode.unrecognized_keys:- message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;- break;- case ZodIssueCode.invalid_union:- message = `Invalid input`;- break;- case ZodIssueCode.invalid_union_discriminator:- message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;- break;- case ZodIssueCode.invalid_enum_value:- message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;- break;- case ZodIssueCode.invalid_arguments:- message = `Invalid function arguments`;- break;- case ZodIssueCode.invalid_return_type:- message = `Invalid function return type`;- break;- case ZodIssueCode.invalid_date:- message = `Invalid date`;- break;- case ZodIssueCode.invalid_string:- if (typeof issue.validation === "object") {- if ("includes" in issue.validation) {- message = `Invalid input: must include "${issue.validation.includes}"`;- if (typeof issue.validation.position === "number") {- message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;- }- } else if ("startsWith" in issue.validation) {- message = `Invalid input: must start with "${issue.validation.startsWith}"`;- } else if ("endsWith" in issue.validation) {- message = `Invalid input: must end with "${issue.validation.endsWith}"`;- } else {- util.assertNever(issue.validation);- }- } else if (issue.validation !== "regex") {- message = `Invalid ${issue.validation}`;- } else {- message = "Invalid";- }- break;- case ZodIssueCode.too_small:- if (issue.type === "array")- message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;- else if (issue.type === "string")- message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;- else if (issue.type === "number")- message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;- else if (issue.type === "date")- message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;- else- message = "Invalid input";- break;- case ZodIssueCode.too_big:- if (issue.type === "array")- message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;- else if (issue.type === "string")- message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;- else if (issue.type === "number")- message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;- else if (issue.type === "bigint")- message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;- else if (issue.type === "date")- message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;- else- message = "Invalid input";- break;- case ZodIssueCode.custom:- message = `Invalid input`;- break;- case ZodIssueCode.invalid_intersection_types:- message = `Intersection results could not be merged`;- break;- case ZodIssueCode.not_multiple_of:- message = `Number must be a multiple of ${issue.multipleOf}`;- break;- case ZodIssueCode.not_finite:- message = "Number must be finite";- break;- default:- message = _ctx.defaultError;- util.assertNever(issue);+ negative(message) {+ return this._addCheck({+ kind: "max",+ value: 0,+ inclusive: false,+ message: errorUtil.toString(message)+ });}- return { message };-};-var overrideErrorMap = errorMap;-function setErrorMap(map) {- overrideErrorMap = map;-}-function getErrorMap() {- return overrideErrorMap;-}-var makeIssue = (params) => {- const { data, path, errorMaps, issueData } = params;- const fullPath = [...path, ...issueData.path || []];- const fullIssue = {- ...issueData,- path: fullPath- };- if (issueData.message !== undefined) {- return {- ...issueData,- path: fullPath,- message: issueData.message- };+ nonpositive(message) {+ return this._addCheck({+ kind: "max",+ value: 0,+ inclusive: true,+ message: errorUtil.toString(message)+ });}- let errorMessage = "";- const maps = errorMaps.filter((m2) => !!m2).slice().reverse();- for (const map of maps) {- errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;+ nonnegative(message) {+ return this._addCheck({+ kind: "min",+ value: 0,+ inclusive: true,+ message: errorUtil.toString(message)+ });}- return {- ...issueData,- path: fullPath,- message: errorMessage- };-};-var EMPTY_PATH = [];-function addIssueToContext(ctx, issueData) {- const overrideMap = getErrorMap();- const issue = makeIssue({- issueData,- data: ctx.data,- path: ctx.path,- errorMaps: [- ctx.common.contextualErrorMap,- ctx.schemaErrorMap,- overrideMap,- overrideMap === errorMap ? undefined : errorMap- ].filter((x2) => !!x2)- });- ctx.common.issues.push(issue);-}--class ParseStatus {- constructor() {- this.value = "valid";+ multipleOf(value, message) {+ return this._addCheck({+ kind: "multipleOf",+ value,+ message: errorUtil.toString(message)+ });}- dirty() {- if (this.value === "valid")- this.value = "dirty";+ finite(message) {+ return this._addCheck({+ kind: "finite",+ message: errorUtil.toString(message)+ });}- abort() {- if (this.value !== "aborted")- this.value = "aborted";+ safe(message) {+ return this._addCheck({+ kind: "min",+ inclusive: true,+ value: Number.MIN_SAFE_INTEGER,+ message: errorUtil.toString(message)+ })._addCheck({+ kind: "max",+ inclusive: true,+ value: Number.MAX_SAFE_INTEGER,+ message: errorUtil.toString(message)+ });}- static mergeArray(status, results) {- const arrayValue = [];- for (const s of results) {- if (s.status === "aborted")- return INVALID;- if (s.status === "dirty")- status.dirty();- arrayValue.push(s.value);+ get minValue() {+ let min = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "min") {+ if (min === null || ch.value > min)+ min = ch.value;+ }}- return { status: status.value, value: arrayValue };+ return min;}- static async mergeObjectAsync(status, pairs) {- const syncPairs = [];- for (const pair of pairs) {- const key = await pair.key;- const value = await pair.value;- syncPairs.push({- key,- value- });+ get maxValue() {+ let max = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "max") {+ if (max === null || ch.value < max)+ max = ch.value;+ }}- return ParseStatus.mergeObjectSync(status, syncPairs);+ return max;}- static mergeObjectSync(status, pairs) {- const finalObject = {};- for (const pair of pairs) {- const { key, value } = pair;- if (key.status === "aborted")- return INVALID;- if (value.status === "aborted")- return INVALID;- if (key.status === "dirty")- status.dirty();- if (value.status === "dirty")- status.dirty();- if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {- finalObject[key.value] = value.value;+ get isInt() {+ return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));+ }+ get isFinite() {+ let max = null, min = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {+ return true;+ } else if (ch.kind === "min") {+ if (min === null || ch.value > min)+ min = ch.value;+ } else if (ch.kind === "max") {+ if (max === null || ch.value < max)+ max = ch.value;}}- return { status: status.value, value: finalObject };+ return Number.isFinite(min) && Number.isFinite(max);}}-var INVALID = Object.freeze({- status: "aborted"-});-var DIRTY = (value) => ({ status: "dirty", value });-var OK = (value) => ({ status: "valid", value });-var isAborted = (x2) => x2.status === "aborted";-var isDirty = (x2) => x2.status === "dirty";-var isValid = (x2) => x2.status === "valid";-var isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;-function __classPrivateFieldGet(receiver, state, kind, f2) {- if (kind === "a" && !f2)- throw new TypeError("Private accessor was defined without a getter");- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))- throw new TypeError("Cannot read private member from an object whose class did not declare it");- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);-}-function __classPrivateFieldSet(receiver, state, value, kind, f2) {- if (kind === "m")- throw new TypeError("Private method is not writable");- if (kind === "a" && !f2)- throw new TypeError("Private accessor was defined without a setter");- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))- throw new TypeError("Cannot write private member to an object whose class did not declare it");- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;-}-var errorUtil;-(function(errorUtil2) {- errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};- errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === undefined ? undefined : message.message;-})(errorUtil || (errorUtil = {}));-var _ZodEnum_cache;-var _ZodNativeEnum_cache;+ZodNumber.create = (params) => {+ return new ZodNumber({+ checks: [],+ typeName: ZodFirstPartyTypeKind.ZodNumber,+ coerce: (params === null || params === undefined ? undefined : params.coerce) || false,+ ...processCreateParams(params)+ });+};-class ParseInputLazyPath {- constructor(parent, value, path, key) {- this._cachedPath = [];- this.parent = parent;- this.data = value;- this._path = path;- this._key = key;+class ZodBigInt extends ZodType {+ constructor() {+ super(...arguments);+ this.min = this.gte;+ this.max = this.lte;}- get path() {- if (!this._cachedPath.length) {- if (this._key instanceof Array) {- this._cachedPath.push(...this._path, ...this._key);- } else {- this._cachedPath.push(...this._path, this._key);+ _parse(input) {+ if (this._def.coerce) {+ try {+ input.data = BigInt(input.data);+ } catch (_a) {+ return this._getInvalidInput(input);}}- return this._cachedPath;- }-}-var handleResult = (ctx, result) => {- if (isValid(result)) {- return { success: true, data: result.value };- } else {- if (!ctx.common.issues.length) {- throw new Error("Validation failed but no issues detected.");+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.bigint) {+ return this._getInvalidInput(input);}- return {- success: false,- get error() {- if (this._error)- return this._error;- const error = new ZodError(ctx.common.issues);- this._error = error;- return this._error;+ let ctx = undefined;+ const status = new ParseStatus;+ for (const check of this._def.checks) {+ if (check.kind === "min") {+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;+ if (tooSmall) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ type: "bigint",+ minimum: check.value,+ inclusive: check.inclusive,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "max") {+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;+ if (tooBig) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ type: "bigint",+ maximum: check.value,+ inclusive: check.inclusive,+ message: check.message+ });+ status.dirty();+ }+ } else if (check.kind === "multipleOf") {+ if (input.data % check.value !== BigInt(0)) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.not_multiple_of,+ multipleOf: check.value,+ message: check.message+ });+ status.dirty();+ }+ } else {+ util.assertNever(check);}- };+ }+ return { status: status.value, value: input.data };}-};-function processCreateParams(params) {- if (!params)- return {};- const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;- if (errorMap2 && (invalid_type_error || required_error)) {- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);+ _getInvalidInput(input) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.bigint,+ received: ctx.parsedType+ });+ return INVALID;}- if (errorMap2)- return { errorMap: errorMap2, description };- const customMap = (iss, ctx) => {- var _a, _b;- const { message } = params;- if (iss.code === "invalid_enum_value") {- return { message: message !== null && message !== undefined ? message : ctx.defaultError };- }- if (typeof ctx.data === "undefined") {- return { message: (_a = message !== null && message !== undefined ? message : required_error) !== null && _a !== undefined ? _a : ctx.defaultError };- }- if (iss.code !== "invalid_type")- return { message: ctx.defaultError };- return { message: (_b = message !== null && message !== undefined ? message : invalid_type_error) !== null && _b !== undefined ? _b : ctx.defaultError };- };- return { errorMap: customMap, description };-}--class ZodType {- get description() {- return this._def.description;+ gte(value, message) {+ return this.setLimit("min", value, true, errorUtil.toString(message));}- _getType(input) {- return getParsedType(input.data);+ gt(value, message) {+ return this.setLimit("min", value, false, errorUtil.toString(message));}- _getOrReturnCtx(input, ctx) {- return ctx || {- common: input.parent.common,- data: input.data,- parsedType: getParsedType(input.data),- schemaErrorMap: this._def.errorMap,- path: input.path,- parent: input.parent- };+ lte(value, message) {+ return this.setLimit("max", value, true, errorUtil.toString(message));+ }+ lt(value, message) {+ return this.setLimit("max", value, false, errorUtil.toString(message));+ }+ setLimit(kind, value, inclusive, message) {+ return new ZodBigInt({+ ...this._def,+ checks: [+ ...this._def.checks,+ {+ kind,+ value,+ inclusive,+ message: errorUtil.toString(message)+ }+ ]+ });+ }+ _addCheck(check) {+ return new ZodBigInt({+ ...this._def,+ checks: [...this._def.checks, check]+ });}- _processInputParams(input) {- return {- status: new ParseStatus,- ctx: {- common: input.parent.common,- data: input.data,- parsedType: getParsedType(input.data),- schemaErrorMap: this._def.errorMap,- path: input.path,- parent: input.parent- }- };+ positive(message) {+ return this._addCheck({+ kind: "min",+ value: BigInt(0),+ inclusive: false,+ message: errorUtil.toString(message)+ });}- _parseSync(input) {- const result = this._parse(input);- if (isAsync(result)) {- throw new Error("Synchronous parse encountered promise.");- }- return result;+ negative(message) {+ return this._addCheck({+ kind: "max",+ value: BigInt(0),+ inclusive: false,+ message: errorUtil.toString(message)+ });}- _parseAsync(input) {- const result = this._parse(input);- return Promise.resolve(result);+ nonpositive(message) {+ return this._addCheck({+ kind: "max",+ value: BigInt(0),+ inclusive: true,+ message: errorUtil.toString(message)+ });}- parse(data, params) {- const result = this.safeParse(data, params);- if (result.success)- return result.data;- throw result.error;+ nonnegative(message) {+ return this._addCheck({+ kind: "min",+ value: BigInt(0),+ inclusive: true,+ message: errorUtil.toString(message)+ });}- safeParse(data, params) {- var _a;- const ctx = {- common: {- issues: [],- async: (_a = params === null || params === undefined ? undefined : params.async) !== null && _a !== undefined ? _a : false,- contextualErrorMap: params === null || params === undefined ? undefined : params.errorMap- },- path: (params === null || params === undefined ? undefined : params.path) || [],- schemaErrorMap: this._def.errorMap,- parent: null,- data,- parsedType: getParsedType(data)- };- const result = this._parseSync({ data, path: ctx.path, parent: ctx });- return handleResult(ctx, result);+ multipleOf(value, message) {+ return this._addCheck({+ kind: "multipleOf",+ value,+ message: errorUtil.toString(message)+ });}- "~validate"(data) {- var _a, _b;- const ctx = {- common: {- issues: [],- async: !!this["~standard"].async- },- path: [],- schemaErrorMap: this._def.errorMap,- parent: null,- data,- parsedType: getParsedType(data)- };- if (!this["~standard"].async) {- try {- const result = this._parseSync({ data, path: [], parent: ctx });- return isValid(result) ? {- value: result.value- } : {- issues: ctx.common.issues- };- } catch (err) {- if ((_b = (_a = err === null || err === undefined ? undefined : err.message) === null || _a === undefined ? undefined : _a.toLowerCase()) === null || _b === undefined ? undefined : _b.includes("encountered")) {- this["~standard"].async = true;- }- ctx.common = {- issues: [],- async: true- };+ get minValue() {+ let min = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "min") {+ if (min === null || ch.value > min)+ min = ch.value;}}- return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {- value: result.value- } : {- issues: ctx.common.issues- });+ return min;}- async parseAsync(data, params) {- const result = await this.safeParseAsync(data, params);- if (result.success)- return result.data;- throw result.error;+ get maxValue() {+ let max = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "max") {+ if (max === null || ch.value < max)+ max = ch.value;+ }+ }+ return max;}- async safeParseAsync(data, params) {- const ctx = {- common: {- issues: [],- contextualErrorMap: params === null || params === undefined ? undefined : params.errorMap,- async: true- },- path: (params === null || params === undefined ? undefined : params.path) || [],- schemaErrorMap: this._def.errorMap,- parent: null,- data,- parsedType: getParsedType(data)- };- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });- const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));- return handleResult(ctx, result);+}+ZodBigInt.create = (params) => {+ var _a;+ return new ZodBigInt({+ checks: [],+ typeName: ZodFirstPartyTypeKind.ZodBigInt,+ coerce: (_a = params === null || params === undefined ? undefined : params.coerce) !== null && _a !== undefined ? _a : false,+ ...processCreateParams(params)+ });+};++class ZodBoolean extends ZodType {+ _parse(input) {+ if (this._def.coerce) {+ input.data = Boolean(input.data);+ }+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.boolean) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.boolean,+ received: ctx.parsedType+ });+ return INVALID;+ }+ return OK(input.data);}- refine(check, message) {- const getIssueProperties = (val) => {- if (typeof message === "string" || typeof message === "undefined") {- return { message };- } else if (typeof message === "function") {- return message(val);- } else {- return message;- }- };- return this._refinement((val, ctx) => {- const result = check(val);- const setError = () => ctx.addIssue({- code: ZodIssueCode.custom,- ...getIssueProperties(val)+}+ZodBoolean.create = (params) => {+ return new ZodBoolean({+ typeName: ZodFirstPartyTypeKind.ZodBoolean,+ coerce: (params === null || params === undefined ? undefined : params.coerce) || false,+ ...processCreateParams(params)+ });+};++class ZodDate extends ZodType {+ _parse(input) {+ if (this._def.coerce) {+ input.data = new Date(input.data);+ }+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.date) {+ const ctx2 = this._getOrReturnCtx(input);+ addIssueToContext(ctx2, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.date,+ received: ctx2.parsedType});- if (typeof Promise !== "undefined" && result instanceof Promise) {- return result.then((data) => {- if (!data) {- setError();- return false;- } else {- return true;- }- });- }- if (!result) {- setError();- return false;+ return INVALID;+ }+ if (isNaN(input.data.getTime())) {+ const ctx2 = this._getOrReturnCtx(input);+ addIssueToContext(ctx2, {+ code: ZodIssueCode.invalid_date+ });+ return INVALID;+ }+ const status = new ParseStatus;+ let ctx = undefined;+ for (const check of this._def.checks) {+ if (check.kind === "min") {+ if (input.data.getTime() < check.value) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ message: check.message,+ inclusive: true,+ exact: false,+ minimum: check.value,+ type: "date"+ });+ status.dirty();+ }+ } else if (check.kind === "max") {+ if (input.data.getTime() > check.value) {+ ctx = this._getOrReturnCtx(input, ctx);+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ message: check.message,+ inclusive: true,+ exact: false,+ maximum: check.value,+ type: "date"+ });+ status.dirty();+ }} else {- return true;+ util.assertNever(check);}+ }+ return {+ status: status.value,+ value: new Date(input.data.getTime())+ };+ }+ _addCheck(check) {+ return new ZodDate({+ ...this._def,+ checks: [...this._def.checks, check]});}- refinement(check, refinementData) {- return this._refinement((val, ctx) => {- if (!check(val)) {- ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);- return false;- } else {- return true;- }+ min(minDate, message) {+ return this._addCheck({+ kind: "min",+ value: minDate.getTime(),+ message: errorUtil.toString(message)});}- _refinement(refinement) {- return new ZodEffects({- schema: this,- typeName: ZodFirstPartyTypeKind.ZodEffects,- effect: { type: "refinement", refinement }+ max(maxDate, message) {+ return this._addCheck({+ kind: "max",+ value: maxDate.getTime(),+ message: errorUtil.toString(message)});}- superRefine(refinement) {- return this._refinement(refinement);+ get minDate() {+ let min = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "min") {+ if (min === null || ch.value > min)+ min = ch.value;+ }+ }+ return min != null ? new Date(min) : null;}- constructor(def) {- this.spa = this.safeParseAsync;- this._def = def;- this.parse = this.parse.bind(this);- this.safeParse = this.safeParse.bind(this);- this.parseAsync = this.parseAsync.bind(this);- this.safeParseAsync = this.safeParseAsync.bind(this);- this.spa = this.spa.bind(this);- this.refine = this.refine.bind(this);- this.refinement = this.refinement.bind(this);- this.superRefine = this.superRefine.bind(this);- this.optional = this.optional.bind(this);- this.nullable = this.nullable.bind(this);- this.nullish = this.nullish.bind(this);- this.array = this.array.bind(this);- this.promise = this.promise.bind(this);- this.or = this.or.bind(this);- this.and = this.and.bind(this);- this.transform = this.transform.bind(this);- this.brand = this.brand.bind(this);- this.default = this.default.bind(this);- this.catch = this.catch.bind(this);- this.describe = this.describe.bind(this);- this.pipe = this.pipe.bind(this);- this.readonly = this.readonly.bind(this);- this.isNullable = this.isNullable.bind(this);- this.isOptional = this.isOptional.bind(this);- this["~standard"] = {- version: 1,- vendor: "zod",- validate: (data) => this["~validate"](data)- };+ get maxDate() {+ let max = null;+ for (const ch of this._def.checks) {+ if (ch.kind === "max") {+ if (max === null || ch.value < max)+ max = ch.value;+ }+ }+ return max != null ? new Date(max) : null;}- optional() {- return ZodOptional.create(this, this._def);+}+ZodDate.create = (params) => {+ return new ZodDate({+ checks: [],+ coerce: (params === null || params === undefined ? undefined : params.coerce) || false,+ typeName: ZodFirstPartyTypeKind.ZodDate,+ ...processCreateParams(params)+ });+};++class ZodSymbol extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.symbol) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.symbol,+ received: ctx.parsedType+ });+ return INVALID;+ }+ return OK(input.data);}- nullable() {- return ZodNullable.create(this, this._def);+}+ZodSymbol.create = (params) => {+ return new ZodSymbol({+ typeName: ZodFirstPartyTypeKind.ZodSymbol,+ ...processCreateParams(params)+ });+};++class ZodUndefined extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.undefined) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.undefined,+ received: ctx.parsedType+ });+ return INVALID;+ }+ return OK(input.data);}- nullish() {- return this.nullable().optional();+}+ZodUndefined.create = (params) => {+ return new ZodUndefined({+ typeName: ZodFirstPartyTypeKind.ZodUndefined,+ ...processCreateParams(params)+ });+};++class ZodNull extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.null) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.null,+ received: ctx.parsedType+ });+ return INVALID;+ }+ return OK(input.data);}- array() {- return ZodArray.create(this);+}+ZodNull.create = (params) => {+ return new ZodNull({+ typeName: ZodFirstPartyTypeKind.ZodNull,+ ...processCreateParams(params)+ });+};++class ZodAny extends ZodType {+ constructor() {+ super(...arguments);+ this._any = true;}- promise() {- return ZodPromise.create(this, this._def);+ _parse(input) {+ return OK(input.data);}- or(option) {- return ZodUnion.create([this, option], this._def);+}+ZodAny.create = (params) => {+ return new ZodAny({+ typeName: ZodFirstPartyTypeKind.ZodAny,+ ...processCreateParams(params)+ });+};++class ZodUnknown extends ZodType {+ constructor() {+ super(...arguments);+ this._unknown = true;}- and(incoming) {- return ZodIntersection.create(this, incoming, this._def);+ _parse(input) {+ return OK(input.data);}- transform(transform) {- return new ZodEffects({- ...processCreateParams(this._def),- schema: this,- typeName: ZodFirstPartyTypeKind.ZodEffects,- effect: { type: "transform", transform }+}+ZodUnknown.create = (params) => {+ return new ZodUnknown({+ typeName: ZodFirstPartyTypeKind.ZodUnknown,+ ...processCreateParams(params)+ });+};++class ZodNever extends ZodType {+ _parse(input) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.never,+ received: ctx.parsedType+ });+ return INVALID;+ }+}+ZodNever.create = (params) => {+ return new ZodNever({+ typeName: ZodFirstPartyTypeKind.ZodNever,+ ...processCreateParams(params)+ });+};++class ZodVoid extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.undefined) {+ const ctx = this._getOrReturnCtx(input);+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.void,+ received: ctx.parsedType+ });+ return INVALID;+ }+ return OK(input.data);+ }+}+ZodVoid.create = (params) => {+ return new ZodVoid({+ typeName: ZodFirstPartyTypeKind.ZodVoid,+ ...processCreateParams(params)+ });+};++class ZodArray extends ZodType {+ _parse(input) {+ const { ctx, status } = this._processInputParams(input);+ const def = this._def;+ if (ctx.parsedType !== ZodParsedType.array) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.array,+ received: ctx.parsedType+ });+ return INVALID;+ }+ if (def.exactLength !== null) {+ const tooBig = ctx.data.length > def.exactLength.value;+ const tooSmall = ctx.data.length < def.exactLength.value;+ if (tooBig || tooSmall) {+ addIssueToContext(ctx, {+ code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,+ minimum: tooSmall ? def.exactLength.value : undefined,+ maximum: tooBig ? def.exactLength.value : undefined,+ type: "array",+ inclusive: true,+ exact: true,+ message: def.exactLength.message+ });+ status.dirty();+ }+ }+ if (def.minLength !== null) {+ if (ctx.data.length < def.minLength.value) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: def.minLength.value,+ type: "array",+ inclusive: true,+ exact: false,+ message: def.minLength.message+ });+ status.dirty();+ }+ }+ if (def.maxLength !== null) {+ if (ctx.data.length > def.maxLength.value) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: def.maxLength.value,+ type: "array",+ inclusive: true,+ exact: false,+ message: def.maxLength.message+ });+ status.dirty();+ }+ }+ if (ctx.common.async) {+ return Promise.all([...ctx.data].map((item, i) => {+ return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));+ })).then((result2) => {+ return ParseStatus.mergeArray(status, result2);+ });+ }+ const result = [...ctx.data].map((item, i) => {+ return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));});+ return ParseStatus.mergeArray(status, result);}- default(def) {- const defaultValueFunc = typeof def === "function" ? def : () => def;- return new ZodDefault({- ...processCreateParams(this._def),- innerType: this,- defaultValue: defaultValueFunc,- typeName: ZodFirstPartyTypeKind.ZodDefault- });+ get element() {+ return this._def.type;}- brand() {- return new ZodBranded({- typeName: ZodFirstPartyTypeKind.ZodBranded,- type: this,- ...processCreateParams(this._def)+ min(minLength, message) {+ return new ZodArray({+ ...this._def,+ minLength: { value: minLength, message: errorUtil.toString(message) }});}- catch(def) {- const catchValueFunc = typeof def === "function" ? def : () => def;- return new ZodCatch({- ...processCreateParams(this._def),- innerType: this,- catchValue: catchValueFunc,- typeName: ZodFirstPartyTypeKind.ZodCatch+ max(maxLength, message) {+ return new ZodArray({+ ...this._def,+ maxLength: { value: maxLength, message: errorUtil.toString(message) }});}- describe(description) {- const This = this.constructor;- return new This({+ length(len, message) {+ return new ZodArray({...this._def,- description+ exactLength: { value: len, message: errorUtil.toString(message) }});}- pipe(target) {- return ZodPipeline.create(this, target);- }- readonly() {- return ZodReadonly.create(this);- }- isOptional() {- return this.safeParse(undefined).success;- }- isNullable() {- return this.safeParse(null).success;- }-}-var cuidRegex = /^c[^\s-]{8,}$/i;-var cuid2Regex = /^[0-9a-z]+$/;-var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;-var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;-var nanoidRegex = /^[a-z0-9_-]{21}$/i;-var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;-var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;-var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;-var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;-var emojiRegex;-var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;-var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;-var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;-var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;-var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;-var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;-var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;-var dateRegex = new RegExp(`^${dateRegexSource}$`);-function timeRegexSource(args) {- let regex2 = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;- if (args.precision) {- regex2 = `${regex2}\\.\\d{${args.precision}}`;- } else if (args.precision == null) {- regex2 = `${regex2}(\\.\\d+)?`;- }- return regex2;-}-function timeRegex(args) {- return new RegExp(`^${timeRegexSource(args)}$`);-}-function datetimeRegex(args) {- let regex2 = `${dateRegexSource}T${timeRegexSource(args)}`;- const opts = [];- opts.push(args.local ? `Z?` : `Z`);- if (args.offset)- opts.push(`([+-]\\d{2}:?\\d{2})`);- regex2 = `${regex2}(${opts.join("|")})`;- return new RegExp(`^${regex2}$`);-}-function isValidIP(ip, version) {- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {- return true;- }- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {- return true;+ nonempty(message) {+ return this.min(1, message);}- return false;}-function isValidJWT(jwt, alg) {- if (!jwtRegex.test(jwt))- return false;- try {- const [header] = jwt.split(".");- const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");- const decoded = JSON.parse(atob(base64));- if (typeof decoded !== "object" || decoded === null)- return false;- if (!decoded.typ || !decoded.alg)- return false;- if (alg && decoded.alg !== alg)- return false;- return true;- } catch (_a) {- return false;+ZodArray.create = (schema, params) => {+ return new ZodArray({+ type: schema,+ minLength: null,+ maxLength: null,+ exactLength: null,+ typeName: ZodFirstPartyTypeKind.ZodArray,+ ...processCreateParams(params)+ });+};+function deepPartialify(schema) {+ if (schema instanceof ZodObject) {+ const newShape = {};+ for (const key in schema.shape) {+ const fieldSchema = schema.shape[key];+ newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));+ }+ return new ZodObject({+ ...schema._def,+ shape: () => newShape+ });+ } else if (schema instanceof ZodArray) {+ return new ZodArray({+ ...schema._def,+ type: deepPartialify(schema.element)+ });+ } else if (schema instanceof ZodOptional) {+ return ZodOptional.create(deepPartialify(schema.unwrap()));+ } else if (schema instanceof ZodNullable) {+ return ZodNullable.create(deepPartialify(schema.unwrap()));+ } else if (schema instanceof ZodTuple) {+ return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));+ } else {+ return schema;}}-function isValidCidr(ip, version) {- if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {- return true;++class ZodObject extends ZodType {+ constructor() {+ super(...arguments);+ this._cached = null;+ this.nonstrict = this.passthrough;+ this.augment = this.extend;}- if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {- return true;+ _getCached() {+ if (this._cached !== null)+ return this._cached;+ const shape = this._def.shape();+ const keys = util.objectKeys(shape);+ return this._cached = { shape, keys };}- return false;-}--class ZodString extends ZodType {_parse(input) {- if (this._def.coerce) {- input.data = String(input.data);- }const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.string) {+ if (parsedType !== ZodParsedType.object) {const ctx2 = this._getOrReturnCtx(input);addIssueToContext(ctx2, {code: ZodIssueCode.invalid_type,- expected: ZodParsedType.string,+ expected: ZodParsedType.object,received: ctx2.parsedType});return INVALID;}- const status = new ParseStatus;- let ctx = undefined;- for (const check of this._def.checks) {- if (check.kind === "min") {- if (input.data.length < check.value) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: check.value,- type: "string",- inclusive: true,- exact: false,- message: check.message- });- status.dirty();- }- } else if (check.kind === "max") {- if (input.data.length > check.value) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: check.value,- type: "string",- inclusive: true,- exact: false,- message: check.message- });- status.dirty();- }- } else if (check.kind === "length") {- const tooBig = input.data.length > check.value;- const tooSmall = input.data.length < check.value;- if (tooBig || tooSmall) {- ctx = this._getOrReturnCtx(input, ctx);- if (tooBig) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: check.value,- type: "string",- inclusive: true,- exact: true,- message: check.message- });- } else if (tooSmall) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: check.value,- type: "string",- inclusive: true,- exact: true,- message: check.message- });- }- status.dirty();- }- } else if (check.kind === "email") {- if (!emailRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "email",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "emoji") {- if (!emojiRegex) {- emojiRegex = new RegExp(_emojiRegex, "u");- }- if (!emojiRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "emoji",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "uuid") {- if (!uuidRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "uuid",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "nanoid") {- if (!nanoidRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "nanoid",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "cuid") {- if (!cuidRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "cuid",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "cuid2") {- if (!cuid2Regex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "cuid2",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "ulid") {- if (!ulidRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "ulid",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "url") {- try {- new URL(input.data);- } catch (_a) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "url",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "regex") {- check.regex.lastIndex = 0;- const testResult = check.regex.test(input.data);- if (!testResult) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "regex",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "trim") {- input.data = input.data.trim();- } else if (check.kind === "includes") {- if (!input.data.includes(check.value, check.position)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: { includes: check.value, position: check.position },- message: check.message- });- status.dirty();- }- } else if (check.kind === "toLowerCase") {- input.data = input.data.toLowerCase();- } else if (check.kind === "toUpperCase") {- input.data = input.data.toUpperCase();- } else if (check.kind === "startsWith") {- if (!input.data.startsWith(check.value)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: { startsWith: check.value },- message: check.message- });- status.dirty();- }- } else if (check.kind === "endsWith") {- if (!input.data.endsWith(check.value)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: { endsWith: check.value },- message: check.message- });- status.dirty();- }- } else if (check.kind === "datetime") {- const regex2 = datetimeRegex(check);- if (!regex2.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: "datetime",- message: check.message- });- status.dirty();- }- } else if (check.kind === "date") {- const regex2 = dateRegex;- if (!regex2.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: "date",- message: check.message- });- status.dirty();- }- } else if (check.kind === "time") {- const regex2 = timeRegex(check);- if (!regex2.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_string,- validation: "time",- message: check.message- });- status.dirty();- }- } else if (check.kind === "duration") {- if (!durationRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "duration",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "ip") {- if (!isValidIP(input.data, check.version)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "ip",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();- }- } else if (check.kind === "jwt") {- if (!isValidJWT(input.data, check.alg)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "jwt",- code: ZodIssueCode.invalid_string,- message: check.message- });- status.dirty();+ const { status, ctx } = this._processInputParams(input);+ const { shape, keys: shapeKeys } = this._getCached();+ const extraKeys = [];+ if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {+ for (const key in ctx.data) {+ if (!shapeKeys.includes(key)) {+ extraKeys.push(key);}- } else if (check.kind === "cidr") {- if (!isValidCidr(input.data, check.version)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "cidr",- code: ZodIssueCode.invalid_string,- message: check.message+ }+ }+ const pairs = [];+ for (const key of shapeKeys) {+ const keyValidator = shape[key];+ const value = ctx.data[key];+ pairs.push({+ key: { status: "valid", value: key },+ value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),+ alwaysSet: key in ctx.data+ });+ }+ if (this._def.catchall instanceof ZodNever) {+ const unknownKeys = this._def.unknownKeys;+ if (unknownKeys === "passthrough") {+ for (const key of extraKeys) {+ pairs.push({+ key: { status: "valid", value: key },+ value: { status: "valid", value: ctx.data[key] }});- status.dirty();}- } else if (check.kind === "base64") {- if (!base64Regex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);+ } else if (unknownKeys === "strict") {+ if (extraKeys.length > 0) {addIssueToContext(ctx, {- validation: "base64",- code: ZodIssueCode.invalid_string,- message: check.message+ code: ZodIssueCode.unrecognized_keys,+ keys: extraKeys});status.dirty();}- } else if (check.kind === "base64url") {- if (!base64urlRegex.test(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- validation: "base64url",- code: ZodIssueCode.invalid_string,- message: check.message+ } else if (unknownKeys === "strip")+ ;+ else {+ throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);+ }+ } else {+ const catchall = this._def.catchall;+ for (const key of extraKeys) {+ const value = ctx.data[key];+ pairs.push({+ key: { status: "valid", value: key },+ value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),+ alwaysSet: key in ctx.data+ });+ }+ }+ if (ctx.common.async) {+ return Promise.resolve().then(async () => {+ const syncPairs = [];+ for (const pair of pairs) {+ const key = await pair.key;+ const value = await pair.value;+ syncPairs.push({+ key,+ value,+ alwaysSet: pair.alwaysSet});- status.dirty();}- } else {- util.assertNever(check);- }+ return syncPairs;+ }).then((syncPairs) => {+ return ParseStatus.mergeObjectSync(status, syncPairs);+ });+ } else {+ return ParseStatus.mergeObjectSync(status, pairs);}- return { status: status.value, value: input.data };}- _regex(regex2, validation, message) {- return this.refinement((data) => regex2.test(data), {- validation,- code: ZodIssueCode.invalid_string,- ...errorUtil.errToObj(message)- });+ get shape() {+ return this._def.shape();}- _addCheck(check) {- return new ZodString({+ strict(message) {+ errorUtil.errToObj;+ return new ZodObject({...this._def,- checks: [...this._def.checks, check]+ unknownKeys: "strict",+ ...message !== undefined ? {+ errorMap: (issue, ctx) => {+ var _a, _b, _c, _d;+ const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === undefined ? undefined : _b.call(_a, issue, ctx).message) !== null && _c !== undefined ? _c : ctx.defaultError;+ if (issue.code === "unrecognized_keys")+ return {+ message: (_d = errorUtil.errToObj(message).message) !== null && _d !== undefined ? _d : defaultError+ };+ return {+ message: defaultError+ };+ }+ } : {}});}- email(message) {- return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });- }- url(message) {- return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });- }- emoji(message) {- return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });- }- uuid(message) {- return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });- }- nanoid(message) {- return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });- }- cuid(message) {- return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });- }- cuid2(message) {- return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });- }- ulid(message) {- return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });- }- base64(message) {- return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });- }- base64url(message) {- return this._addCheck({- kind: "base64url",- ...errorUtil.errToObj(message)+ strip() {+ return new ZodObject({+ ...this._def,+ unknownKeys: "strip"});}- jwt(options) {- return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });- }- ip(options) {- return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });- }- cidr(options) {- return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });- }- datetime(options) {- var _a, _b;- if (typeof options === "string") {- return this._addCheck({- kind: "datetime",- precision: null,- offset: false,- local: false,- message: options- });- }- return this._addCheck({- kind: "datetime",- precision: typeof (options === null || options === undefined ? undefined : options.precision) === "undefined" ? null : options === null || options === undefined ? undefined : options.precision,- offset: (_a = options === null || options === undefined ? undefined : options.offset) !== null && _a !== undefined ? _a : false,- local: (_b = options === null || options === undefined ? undefined : options.local) !== null && _b !== undefined ? _b : false,- ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)+ passthrough() {+ return new ZodObject({+ ...this._def,+ unknownKeys: "passthrough"});}- date(message) {- return this._addCheck({ kind: "date", message });- }- time(options) {- if (typeof options === "string") {- return this._addCheck({- kind: "time",- precision: null,- message: options- });- }- return this._addCheck({- kind: "time",- precision: typeof (options === null || options === undefined ? undefined : options.precision) === "undefined" ? null : options === null || options === undefined ? undefined : options.precision,- ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)+ extend(augmentation) {+ return new ZodObject({+ ...this._def,+ shape: () => ({+ ...this._def.shape(),+ ...augmentation+ })});}- duration(message) {- return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });- }- regex(regex2, message) {- return this._addCheck({- kind: "regex",- regex: regex2,- ...errorUtil.errToObj(message)+ merge(merging) {+ const merged = new ZodObject({+ unknownKeys: merging._def.unknownKeys,+ catchall: merging._def.catchall,+ shape: () => ({+ ...this._def.shape(),+ ...merging._def.shape()+ }),+ typeName: ZodFirstPartyTypeKind.ZodObject});+ return merged;}- includes(value, options) {- return this._addCheck({- kind: "includes",- value,- position: options === null || options === undefined ? undefined : options.position,- ...errorUtil.errToObj(options === null || options === undefined ? undefined : options.message)- });+ setKey(key, schema) {+ return this.augment({ [key]: schema });}- startsWith(value, message) {- return this._addCheck({- kind: "startsWith",- value,- ...errorUtil.errToObj(message)+ catchall(index) {+ return new ZodObject({+ ...this._def,+ catchall: index});}- endsWith(value, message) {- return this._addCheck({- kind: "endsWith",- value,- ...errorUtil.errToObj(message)+ pick(mask) {+ const shape = {};+ util.objectKeys(mask).forEach((key) => {+ if (mask[key] && this.shape[key]) {+ shape[key] = this.shape[key];+ }});- }- min(minLength, message) {- return this._addCheck({- kind: "min",- value: minLength,- ...errorUtil.errToObj(message)+ return new ZodObject({+ ...this._def,+ shape: () => shape});}- max(maxLength, message) {- return this._addCheck({- kind: "max",- value: maxLength,- ...errorUtil.errToObj(message)+ omit(mask) {+ const shape = {};+ util.objectKeys(this.shape).forEach((key) => {+ if (!mask[key]) {+ shape[key] = this.shape[key];+ }});- }- length(len, message) {- return this._addCheck({- kind: "length",- value: len,- ...errorUtil.errToObj(message)+ return new ZodObject({+ ...this._def,+ shape: () => shape});}- nonempty(message) {- return this.min(1, errorUtil.errToObj(message));+ deepPartial() {+ return deepPartialify(this);}- trim() {- return new ZodString({- ...this._def,- checks: [...this._def.checks, { kind: "trim" }]+ partial(mask) {+ const newShape = {};+ util.objectKeys(this.shape).forEach((key) => {+ const fieldSchema = this.shape[key];+ if (mask && !mask[key]) {+ newShape[key] = fieldSchema;+ } else {+ newShape[key] = fieldSchema.optional();+ }});- }- toLowerCase() {- return new ZodString({+ return new ZodObject({...this._def,- checks: [...this._def.checks, { kind: "toLowerCase" }]+ shape: () => newShape});}- toUpperCase() {- return new ZodString({+ required(mask) {+ const newShape = {};+ util.objectKeys(this.shape).forEach((key) => {+ if (mask && !mask[key]) {+ newShape[key] = this.shape[key];+ } else {+ const fieldSchema = this.shape[key];+ let newField = fieldSchema;+ while (newField instanceof ZodOptional) {+ newField = newField._def.innerType;+ }+ newShape[key] = newField;+ }+ });+ return new ZodObject({...this._def,- checks: [...this._def.checks, { kind: "toUpperCase" }]+ shape: () => newShape});}- get isDatetime() {- return !!this._def.checks.find((ch) => ch.kind === "datetime");- }- get isDate() {- return !!this._def.checks.find((ch) => ch.kind === "date");- }- get isTime() {- return !!this._def.checks.find((ch) => ch.kind === "time");- }- get isDuration() {- return !!this._def.checks.find((ch) => ch.kind === "duration");- }- get isEmail() {- return !!this._def.checks.find((ch) => ch.kind === "email");- }- get isURL() {- return !!this._def.checks.find((ch) => ch.kind === "url");- }- get isEmoji() {- return !!this._def.checks.find((ch) => ch.kind === "emoji");- }- get isUUID() {- return !!this._def.checks.find((ch) => ch.kind === "uuid");+ keyof() {+ return createZodEnum(util.objectKeys(this.shape));}- get isNANOID() {- return !!this._def.checks.find((ch) => ch.kind === "nanoid");+}+ZodObject.create = (shape, params) => {+ return new ZodObject({+ shape: () => shape,+ unknownKeys: "strip",+ catchall: ZodNever.create(),+ typeName: ZodFirstPartyTypeKind.ZodObject,+ ...processCreateParams(params)+ });+};+ZodObject.strictCreate = (shape, params) => {+ return new ZodObject({+ shape: () => shape,+ unknownKeys: "strict",+ catchall: ZodNever.create(),+ typeName: ZodFirstPartyTypeKind.ZodObject,+ ...processCreateParams(params)+ });+};+ZodObject.lazycreate = (shape, params) => {+ return new ZodObject({+ shape,+ unknownKeys: "strip",+ catchall: ZodNever.create(),+ typeName: ZodFirstPartyTypeKind.ZodObject,+ ...processCreateParams(params)+ });+};++class ZodUnion extends ZodType {+ _parse(input) {+ const { ctx } = this._processInputParams(input);+ const options = this._def.options;+ function handleResults(results) {+ for (const result of results) {+ if (result.result.status === "valid") {+ return result.result;+ }+ }+ for (const result of results) {+ if (result.result.status === "dirty") {+ ctx.common.issues.push(...result.ctx.common.issues);+ return result.result;+ }+ }+ const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_union,+ unionErrors+ });+ return INVALID;+ }+ if (ctx.common.async) {+ return Promise.all(options.map(async (option) => {+ const childCtx = {+ ...ctx,+ common: {+ ...ctx.common,+ issues: []+ },+ parent: null+ };+ return {+ result: await option._parseAsync({+ data: ctx.data,+ path: ctx.path,+ parent: childCtx+ }),+ ctx: childCtx+ };+ })).then(handleResults);+ } else {+ let dirty = undefined;+ const issues = [];+ for (const option of options) {+ const childCtx = {+ ...ctx,+ common: {+ ...ctx.common,+ issues: []+ },+ parent: null+ };+ const result = option._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: childCtx+ });+ if (result.status === "valid") {+ return result;+ } else if (result.status === "dirty" && !dirty) {+ dirty = { result, ctx: childCtx };+ }+ if (childCtx.common.issues.length) {+ issues.push(childCtx.common.issues);+ }+ }+ if (dirty) {+ ctx.common.issues.push(...dirty.ctx.common.issues);+ return dirty.result;+ }+ const unionErrors = issues.map((issues2) => new ZodError(issues2));+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_union,+ unionErrors+ });+ return INVALID;+ }}- get isCUID() {- return !!this._def.checks.find((ch) => ch.kind === "cuid");+ get options() {+ return this._def.options;}- get isCUID2() {- return !!this._def.checks.find((ch) => ch.kind === "cuid2");+}+ZodUnion.create = (types, params) => {+ return new ZodUnion({+ options: types,+ typeName: ZodFirstPartyTypeKind.ZodUnion,+ ...processCreateParams(params)+ });+};+var getDiscriminator = (type) => {+ if (type instanceof ZodLazy) {+ return getDiscriminator(type.schema);+ } else if (type instanceof ZodEffects) {+ return getDiscriminator(type.innerType());+ } else if (type instanceof ZodLiteral) {+ return [type.value];+ } else if (type instanceof ZodEnum) {+ return type.options;+ } else if (type instanceof ZodNativeEnum) {+ return util.objectValues(type.enum);+ } else if (type instanceof ZodDefault) {+ return getDiscriminator(type._def.innerType);+ } else if (type instanceof ZodUndefined) {+ return [undefined];+ } else if (type instanceof ZodNull) {+ return [null];+ } else if (type instanceof ZodOptional) {+ return [undefined, ...getDiscriminator(type.unwrap())];+ } else if (type instanceof ZodNullable) {+ return [null, ...getDiscriminator(type.unwrap())];+ } else if (type instanceof ZodBranded) {+ return getDiscriminator(type.unwrap());+ } else if (type instanceof ZodReadonly) {+ return getDiscriminator(type.unwrap());+ } else if (type instanceof ZodCatch) {+ return getDiscriminator(type._def.innerType);+ } else {+ return [];}- get isULID() {- return !!this._def.checks.find((ch) => ch.kind === "ulid");+};++class ZodDiscriminatedUnion extends ZodType {+ _parse(input) {+ const { ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.object) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.object,+ received: ctx.parsedType+ });+ return INVALID;+ }+ const discriminator = this.discriminator;+ const discriminatorValue = ctx.data[discriminator];+ const option = this.optionsMap.get(discriminatorValue);+ if (!option) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_union_discriminator,+ options: Array.from(this.optionsMap.keys()),+ path: [discriminator]+ });+ return INVALID;+ }+ if (ctx.common.async) {+ return option._parseAsync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ } else {+ return option._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ }}- get isIP() {- return !!this._def.checks.find((ch) => ch.kind === "ip");+ get discriminator() {+ return this._def.discriminator;}- get isCIDR() {- return !!this._def.checks.find((ch) => ch.kind === "cidr");+ get options() {+ return this._def.options;}- get isBase64() {- return !!this._def.checks.find((ch) => ch.kind === "base64");+ get optionsMap() {+ return this._def.optionsMap;}- get isBase64url() {- return !!this._def.checks.find((ch) => ch.kind === "base64url");+ static create(discriminator, options, params) {+ const optionsMap = new Map;+ for (const type of options) {+ const discriminatorValues = getDiscriminator(type.shape[discriminator]);+ if (!discriminatorValues.length) {+ throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);+ }+ for (const value of discriminatorValues) {+ if (optionsMap.has(value)) {+ throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);+ }+ optionsMap.set(value, type);+ }+ }+ return new ZodDiscriminatedUnion({+ typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,+ discriminator,+ options,+ optionsMap,+ ...processCreateParams(params)+ });}- get minLength() {- let min = null;- for (const ch of this._def.checks) {- if (ch.kind === "min") {- if (min === null || ch.value > min)- min = ch.value;+}+function mergeValues(a, b2) {+ const aType = getParsedType(a);+ const bType = getParsedType(b2);+ if (a === b2) {+ return { valid: true, data: a };+ } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {+ const bKeys = util.objectKeys(b2);+ const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);+ const newObj = { ...a, ...b2 };+ for (const key of sharedKeys) {+ const sharedValue = mergeValues(a[key], b2[key]);+ if (!sharedValue.valid) {+ return { valid: false };}+ newObj[key] = sharedValue.data;}- return min;+ return { valid: true, data: newObj };+ } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {+ if (a.length !== b2.length) {+ return { valid: false };+ }+ const newArray = [];+ for (let index = 0;index < a.length; index++) {+ const itemA = a[index];+ const itemB = b2[index];+ const sharedValue = mergeValues(itemA, itemB);+ if (!sharedValue.valid) {+ return { valid: false };+ }+ newArray.push(sharedValue.data);+ }+ return { valid: true, data: newArray };+ } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b2) {+ return { valid: true, data: a };+ } else {+ return { valid: false };}- get maxLength() {- let max = null;- for (const ch of this._def.checks) {- if (ch.kind === "max") {- if (max === null || ch.value < max)- max = ch.value;+}++class ZodIntersection extends ZodType {+ _parse(input) {+ const { status, ctx } = this._processInputParams(input);+ const handleParsed = (parsedLeft, parsedRight) => {+ if (isAborted(parsedLeft) || isAborted(parsedRight)) {+ return INVALID;+ }+ const merged = mergeValues(parsedLeft.value, parsedRight.value);+ if (!merged.valid) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_intersection_types+ });+ return INVALID;+ }+ if (isDirty(parsedLeft) || isDirty(parsedRight)) {+ status.dirty();}+ return { status: status.value, value: merged.data };+ };+ if (ctx.common.async) {+ return Promise.all([+ this._def.left._parseAsync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ }),+ this._def.right._parseAsync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ })+ ]).then(([left, right]) => handleParsed(left, right));+ } else {+ return handleParsed(this._def.left._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ }), this._def.right._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ }));}- return max;}}-ZodString.create = (params) => {- var _a;- return new ZodString({- checks: [],- typeName: ZodFirstPartyTypeKind.ZodString,- coerce: (_a = params === null || params === undefined ? undefined : params.coerce) !== null && _a !== undefined ? _a : false,+ZodIntersection.create = (left, right, params) => {+ return new ZodIntersection({+ left,+ right,+ typeName: ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(params)});};-function floatSafeRemainder(val, step) {- const valDecCount = (val.toString().split(".")[1] || "").length;- const stepDecCount = (step.toString().split(".")[1] || "").length;- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));- return valInt % stepInt / Math.pow(10, decCount);-}-class ZodNumber extends ZodType {- constructor() {- super(...arguments);- this.min = this.gte;- this.max = this.lte;- this.step = this.multipleOf;- }+class ZodTuple extends ZodType {_parse(input) {- if (this._def.coerce) {- input.data = Number(input.data);- }- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.number) {- const ctx2 = this._getOrReturnCtx(input);- addIssueToContext(ctx2, {+ const { status, ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.array) {+ addIssueToContext(ctx, {code: ZodIssueCode.invalid_type,- expected: ZodParsedType.number,- received: ctx2.parsedType+ expected: ZodParsedType.array,+ received: ctx.parsedType});return INVALID;}- let ctx = undefined;- const status = new ParseStatus;- for (const check of this._def.checks) {- if (check.kind === "int") {- if (!util.isInteger(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: "integer",- received: "float",- message: check.message- });- status.dirty();- }- } else if (check.kind === "min") {- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;- if (tooSmall) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: check.value,- type: "number",- inclusive: check.inclusive,- exact: false,- message: check.message- });- status.dirty();- }- } else if (check.kind === "max") {- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;- if (tooBig) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: check.value,- type: "number",- inclusive: check.inclusive,- exact: false,- message: check.message- });- status.dirty();- }- } else if (check.kind === "multipleOf") {- if (floatSafeRemainder(input.data, check.value) !== 0) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.not_multiple_of,- multipleOf: check.value,- message: check.message- });- status.dirty();- }- } else if (check.kind === "finite") {- if (!Number.isFinite(input.data)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.not_finite,- message: check.message- });- status.dirty();- }- } else {- util.assertNever(check);- }+ if (ctx.data.length < this._def.items.length) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: this._def.items.length,+ inclusive: true,+ exact: false,+ type: "array"+ });+ return INVALID;+ }+ const rest = this._def.rest;+ if (!rest && ctx.data.length > this._def.items.length) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: this._def.items.length,+ inclusive: true,+ exact: false,+ type: "array"+ });+ status.dirty();+ }+ const items = [...ctx.data].map((item, itemIndex) => {+ const schema = this._def.items[itemIndex] || this._def.rest;+ if (!schema)+ return null;+ return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));+ }).filter((x2) => !!x2);+ if (ctx.common.async) {+ return Promise.all(items).then((results) => {+ return ParseStatus.mergeArray(status, results);+ });+ } else {+ return ParseStatus.mergeArray(status, items);}- return { status: status.value, value: input.data };- }- gte(value, message) {- return this.setLimit("min", value, true, errorUtil.toString(message));- }- gt(value, message) {- return this.setLimit("min", value, false, errorUtil.toString(message));- }- lte(value, message) {- return this.setLimit("max", value, true, errorUtil.toString(message));- }- lt(value, message) {- return this.setLimit("max", value, false, errorUtil.toString(message));}- setLimit(kind, value, inclusive, message) {- return new ZodNumber({- ...this._def,- checks: [- ...this._def.checks,- {- kind,- value,- inclusive,- message: errorUtil.toString(message)- }- ]- });+ get items() {+ return this._def.items;}- _addCheck(check) {- return new ZodNumber({+ rest(rest) {+ return new ZodTuple({...this._def,- checks: [...this._def.checks, check]- });- }- int(message) {- return this._addCheck({- kind: "int",- message: errorUtil.toString(message)+ rest});}- positive(message) {- return this._addCheck({- kind: "min",- value: 0,- inclusive: false,- message: errorUtil.toString(message)- });+}+ZodTuple.create = (schemas, params) => {+ if (!Array.isArray(schemas)) {+ throw new Error("You must pass an array of schemas to z.tuple([ ... ])");}- negative(message) {- return this._addCheck({- kind: "max",- value: 0,- inclusive: false,- message: errorUtil.toString(message)- });+ return new ZodTuple({+ items: schemas,+ typeName: ZodFirstPartyTypeKind.ZodTuple,+ rest: null,+ ...processCreateParams(params)+ });+};++class ZodRecord extends ZodType {+ get keySchema() {+ return this._def.keyType;}- nonpositive(message) {- return this._addCheck({- kind: "max",- value: 0,- inclusive: true,- message: errorUtil.toString(message)- });+ get valueSchema() {+ return this._def.valueType;}- nonnegative(message) {- return this._addCheck({- kind: "min",- value: 0,- inclusive: true,- message: errorUtil.toString(message)- });+ _parse(input) {+ const { status, ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.object) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.object,+ received: ctx.parsedType+ });+ return INVALID;+ }+ const pairs = [];+ const keyType = this._def.keyType;+ const valueType = this._def.valueType;+ for (const key in ctx.data) {+ pairs.push({+ key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),+ value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),+ alwaysSet: key in ctx.data+ });+ }+ if (ctx.common.async) {+ return ParseStatus.mergeObjectAsync(status, pairs);+ } else {+ return ParseStatus.mergeObjectSync(status, pairs);+ }}- multipleOf(value, message) {- return this._addCheck({- kind: "multipleOf",- value,- message: errorUtil.toString(message)- });+ get element() {+ return this._def.valueType;}- finite(message) {- return this._addCheck({- kind: "finite",- message: errorUtil.toString(message)+ static create(first, second, third) {+ if (second instanceof ZodType) {+ return new ZodRecord({+ keyType: first,+ valueType: second,+ typeName: ZodFirstPartyTypeKind.ZodRecord,+ ...processCreateParams(third)+ });+ }+ return new ZodRecord({+ keyType: ZodString.create(),+ valueType: first,+ typeName: ZodFirstPartyTypeKind.ZodRecord,+ ...processCreateParams(second)});}- safe(message) {- return this._addCheck({- kind: "min",- inclusive: true,- value: Number.MIN_SAFE_INTEGER,- message: errorUtil.toString(message)- })._addCheck({- kind: "max",- inclusive: true,- value: Number.MAX_SAFE_INTEGER,- message: errorUtil.toString(message)- });+}++class ZodMap extends ZodType {+ get keySchema() {+ return this._def.keyType;}- get minValue() {- let min = null;- for (const ch of this._def.checks) {- if (ch.kind === "min") {- if (min === null || ch.value > min)- min = ch.value;- }- }- return min;+ get valueSchema() {+ return this._def.valueType;}- get maxValue() {- let max = null;- for (const ch of this._def.checks) {- if (ch.kind === "max") {- if (max === null || ch.value < max)- max = ch.value;- }+ _parse(input) {+ const { status, ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.map) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.map,+ received: ctx.parsedType+ });+ return INVALID;}- return max;- }- get isInt() {- return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));- }- get isFinite() {- let max = null, min = null;- for (const ch of this._def.checks) {- if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {- return true;- } else if (ch.kind === "min") {- if (min === null || ch.value > min)- min = ch.value;- } else if (ch.kind === "max") {- if (max === null || ch.value < max)- max = ch.value;+ const keyType = this._def.keyType;+ const valueType = this._def.valueType;+ const pairs = [...ctx.data.entries()].map(([key, value], index) => {+ return {+ key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),+ value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))+ };+ });+ if (ctx.common.async) {+ const finalMap = new Map;+ return Promise.resolve().then(async () => {+ for (const pair of pairs) {+ const key = await pair.key;+ const value = await pair.value;+ if (key.status === "aborted" || value.status === "aborted") {+ return INVALID;+ }+ if (key.status === "dirty" || value.status === "dirty") {+ status.dirty();+ }+ finalMap.set(key.value, value.value);+ }+ return { status: status.value, value: finalMap };+ });+ } else {+ const finalMap = new Map;+ for (const pair of pairs) {+ const key = pair.key;+ const value = pair.value;+ if (key.status === "aborted" || value.status === "aborted") {+ return INVALID;+ }+ if (key.status === "dirty" || value.status === "dirty") {+ status.dirty();+ }+ finalMap.set(key.value, value.value);}+ return { status: status.value, value: finalMap };}- return Number.isFinite(min) && Number.isFinite(max);}}-ZodNumber.create = (params) => {- return new ZodNumber({- checks: [],- typeName: ZodFirstPartyTypeKind.ZodNumber,- coerce: (params === null || params === undefined ? undefined : params.coerce) || false,+ZodMap.create = (keyType, valueType, params) => {+ return new ZodMap({+ valueType,+ keyType,+ typeName: ZodFirstPartyTypeKind.ZodMap,...processCreateParams(params)});};-class ZodBigInt extends ZodType {- constructor() {- super(...arguments);- this.min = this.gte;- this.max = this.lte;- }+class ZodSet extends ZodType {_parse(input) {- if (this._def.coerce) {- try {- input.data = BigInt(input.data);- } catch (_a) {- return this._getInvalidInput(input);+ const { status, ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.set) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.set,+ received: ctx.parsedType+ });+ return INVALID;+ }+ const def = this._def;+ if (def.minSize !== null) {+ if (ctx.data.size < def.minSize.value) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_small,+ minimum: def.minSize.value,+ type: "set",+ inclusive: true,+ exact: false,+ message: def.minSize.message+ });+ status.dirty();}}- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.bigint) {- return this._getInvalidInput(input);+ if (def.maxSize !== null) {+ if (ctx.data.size > def.maxSize.value) {+ addIssueToContext(ctx, {+ code: ZodIssueCode.too_big,+ maximum: def.maxSize.value,+ type: "set",+ inclusive: true,+ exact: false,+ message: def.maxSize.message+ });+ status.dirty();+ }}- let ctx = undefined;- const status = new ParseStatus;- for (const check of this._def.checks) {- if (check.kind === "min") {- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;- if (tooSmall) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- type: "bigint",- minimum: check.value,- inclusive: check.inclusive,- message: check.message- });- status.dirty();- }- } else if (check.kind === "max") {- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;- if (tooBig) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- type: "bigint",- maximum: check.value,- inclusive: check.inclusive,- message: check.message- });- status.dirty();- }- } else if (check.kind === "multipleOf") {- if (input.data % check.value !== BigInt(0)) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.not_multiple_of,- multipleOf: check.value,- message: check.message- });+ const valueType = this._def.valueType;+ function finalizeSet(elements2) {+ const parsedSet = new Set;+ for (const element of elements2) {+ if (element.status === "aborted")+ return INVALID;+ if (element.status === "dirty")status.dirty();- }- } else {- util.assertNever(check);+ parsedSet.add(element.value);}+ return { status: status.value, value: parsedSet };+ }+ const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));+ if (ctx.common.async) {+ return Promise.all(elements).then((elements2) => finalizeSet(elements2));+ } else {+ return finalizeSet(elements);}- return { status: status.value, value: input.data };- }- _getInvalidInput(input) {- const ctx = this._getOrReturnCtx(input);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.bigint,- received: ctx.parsedType- });- return INVALID;- }- gte(value, message) {- return this.setLimit("min", value, true, errorUtil.toString(message));- }- gt(value, message) {- return this.setLimit("min", value, false, errorUtil.toString(message));- }- lte(value, message) {- return this.setLimit("max", value, true, errorUtil.toString(message));- }- lt(value, message) {- return this.setLimit("max", value, false, errorUtil.toString(message));}- setLimit(kind, value, inclusive, message) {- return new ZodBigInt({+ min(minSize, message) {+ return new ZodSet({...this._def,- checks: [- ...this._def.checks,- {- kind,- value,- inclusive,- message: errorUtil.toString(message)- }- ]+ minSize: { value: minSize, message: errorUtil.toString(message) }});}- _addCheck(check) {- return new ZodBigInt({+ max(maxSize, message) {+ return new ZodSet({...this._def,- checks: [...this._def.checks, check]- });- }- positive(message) {- return this._addCheck({- kind: "min",- value: BigInt(0),- inclusive: false,- message: errorUtil.toString(message)- });- }- negative(message) {- return this._addCheck({- kind: "max",- value: BigInt(0),- inclusive: false,- message: errorUtil.toString(message)- });- }- nonpositive(message) {- return this._addCheck({- kind: "max",- value: BigInt(0),- inclusive: true,- message: errorUtil.toString(message)- });- }- nonnegative(message) {- return this._addCheck({- kind: "min",- value: BigInt(0),- inclusive: true,- message: errorUtil.toString(message)- });- }- multipleOf(value, message) {- return this._addCheck({- kind: "multipleOf",- value,- message: errorUtil.toString(message)+ maxSize: { value: maxSize, message: errorUtil.toString(message) }});}- get minValue() {- let min = null;- for (const ch of this._def.checks) {- if (ch.kind === "min") {- if (min === null || ch.value > min)- min = ch.value;- }- }- return min;+ size(size, message) {+ return this.min(size, message).max(size, message);}- get maxValue() {- let max = null;- for (const ch of this._def.checks) {- if (ch.kind === "max") {- if (max === null || ch.value < max)- max = ch.value;- }- }- return max;+ nonempty(message) {+ return this.min(1, message);}}-ZodBigInt.create = (params) => {- var _a;- return new ZodBigInt({- checks: [],- typeName: ZodFirstPartyTypeKind.ZodBigInt,- coerce: (_a = params === null || params === undefined ? undefined : params.coerce) !== null && _a !== undefined ? _a : false,+ZodSet.create = (valueType, params) => {+ return new ZodSet({+ valueType,+ minSize: null,+ maxSize: null,+ typeName: ZodFirstPartyTypeKind.ZodSet,...processCreateParams(params)});};-class ZodBoolean extends ZodType {+class ZodFunction extends ZodType {+ constructor() {+ super(...arguments);+ this.validate = this.implement;+ }_parse(input) {- if (this._def.coerce) {- input.data = Boolean(input.data);- }- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.boolean) {- const ctx = this._getOrReturnCtx(input);+ const { ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.function) {addIssueToContext(ctx, {code: ZodIssueCode.invalid_type,- expected: ZodParsedType.boolean,+ expected: ZodParsedType.function,received: ctx.parsedType});return INVALID;}- return OK(input.data);- }-}-ZodBoolean.create = (params) => {- return new ZodBoolean({- typeName: ZodFirstPartyTypeKind.ZodBoolean,- coerce: (params === null || params === undefined ? undefined : params.coerce) || false,- ...processCreateParams(params)- });-};--class ZodDate extends ZodType {- _parse(input) {- if (this._def.coerce) {- input.data = new Date(input.data);- }- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.date) {- const ctx2 = this._getOrReturnCtx(input);- addIssueToContext(ctx2, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.date,- received: ctx2.parsedType+ function makeArgsIssue(args, error) {+ return makeIssue({+ data: args,+ path: ctx.path,+ errorMaps: [+ ctx.common.contextualErrorMap,+ ctx.schemaErrorMap,+ getErrorMap(),+ errorMap+ ].filter((x2) => !!x2),+ issueData: {+ code: ZodIssueCode.invalid_arguments,+ argumentsError: error+ }});- return INVALID;}- if (isNaN(input.data.getTime())) {- const ctx2 = this._getOrReturnCtx(input);- addIssueToContext(ctx2, {- code: ZodIssueCode.invalid_date+ function makeReturnsIssue(returns, error) {+ return makeIssue({+ data: returns,+ path: ctx.path,+ errorMaps: [+ ctx.common.contextualErrorMap,+ ctx.schemaErrorMap,+ getErrorMap(),+ errorMap+ ].filter((x2) => !!x2),+ issueData: {+ code: ZodIssueCode.invalid_return_type,+ returnTypeError: error+ }});- return INVALID;}- const status = new ParseStatus;- let ctx = undefined;- for (const check of this._def.checks) {- if (check.kind === "min") {- if (input.data.getTime() < check.value) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- message: check.message,- inclusive: true,- exact: false,- minimum: check.value,- type: "date"- });- status.dirty();+ const params = { errorMap: ctx.common.contextualErrorMap };+ const fn = ctx.data;+ if (this._def.returns instanceof ZodPromise) {+ const me2 = this;+ return OK(async function(...args) {+ const error = new ZodError([]);+ const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e2) => {+ error.addIssue(makeArgsIssue(args, e2));+ throw error;+ });+ const result = await Reflect.apply(fn, this, parsedArgs);+ const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e2) => {+ error.addIssue(makeReturnsIssue(result, e2));+ throw error;+ });+ return parsedReturns;+ });+ } else {+ const me2 = this;+ return OK(function(...args) {+ const parsedArgs = me2._def.args.safeParse(args, params);+ if (!parsedArgs.success) {+ throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);}- } else if (check.kind === "max") {- if (input.data.getTime() > check.value) {- ctx = this._getOrReturnCtx(input, ctx);- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- message: check.message,- inclusive: true,- exact: false,- maximum: check.value,- type: "date"- });- status.dirty();+ const result = Reflect.apply(fn, this, parsedArgs.data);+ const parsedReturns = me2._def.returns.safeParse(result, params);+ if (!parsedReturns.success) {+ throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);}- } else {- util.assertNever(check);- }+ return parsedReturns.data;+ });}- return {- status: status.value,- value: new Date(input.data.getTime())- };}- _addCheck(check) {- return new ZodDate({+ parameters() {+ return this._def.args;+ }+ returnType() {+ return this._def.returns;+ }+ args(...items) {+ return new ZodFunction({...this._def,- checks: [...this._def.checks, check]+ args: ZodTuple.create(items).rest(ZodUnknown.create())});}- min(minDate, message) {- return this._addCheck({- kind: "min",- value: minDate.getTime(),- message: errorUtil.toString(message)+ returns(returnType) {+ return new ZodFunction({+ ...this._def,+ returns: returnType});}- max(maxDate, message) {- return this._addCheck({- kind: "max",- value: maxDate.getTime(),- message: errorUtil.toString(message)+ implement(func) {+ const validatedFunc = this.parse(func);+ return validatedFunc;+ }+ strictImplement(func) {+ const validatedFunc = this.parse(func);+ return validatedFunc;+ }+ static create(args, returns, params) {+ return new ZodFunction({+ args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),+ returns: returns || ZodUnknown.create(),+ typeName: ZodFirstPartyTypeKind.ZodFunction,+ ...processCreateParams(params)});}- get minDate() {- let min = null;- for (const ch of this._def.checks) {- if (ch.kind === "min") {- if (min === null || ch.value > min)- min = ch.value;- }- }- return min != null ? new Date(min) : null;+}++class ZodLazy extends ZodType {+ get schema() {+ return this._def.getter();}- get maxDate() {- let max = null;- for (const ch of this._def.checks) {- if (ch.kind === "max") {- if (max === null || ch.value < max)- max = ch.value;- }- }- return max != null ? new Date(max) : null;+ _parse(input) {+ const { ctx } = this._processInputParams(input);+ const lazySchema = this._def.getter();+ return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });}}-ZodDate.create = (params) => {- return new ZodDate({- checks: [],- coerce: (params === null || params === undefined ? undefined : params.coerce) || false,- typeName: ZodFirstPartyTypeKind.ZodDate,+ZodLazy.create = (getter, params) => {+ return new ZodLazy({+ getter,+ typeName: ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(params)});};-class ZodSymbol extends ZodType {+class ZodLiteral extends ZodType {_parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.symbol) {+ if (input.data !== this._def.value) {const ctx = this._getOrReturnCtx(input);addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.symbol,- received: ctx.parsedType+ received: ctx.data,+ code: ZodIssueCode.invalid_literal,+ expected: this._def.value});return INVALID;}- return OK(input.data);+ return { status: "valid", value: input.data };+ }+ get value() {+ return this._def.value;}}-ZodSymbol.create = (params) => {- return new ZodSymbol({- typeName: ZodFirstPartyTypeKind.ZodSymbol,+ZodLiteral.create = (value, params) => {+ return new ZodLiteral({+ value,+ typeName: ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(params)});};+function createZodEnum(values, params) {+ return new ZodEnum({+ values,+ typeName: ZodFirstPartyTypeKind.ZodEnum,+ ...processCreateParams(params)+ });+}-class ZodUndefined extends ZodType {+class ZodEnum extends ZodType {+ constructor() {+ super(...arguments);+ _ZodEnum_cache.set(this, undefined);+ }_parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.undefined) {+ if (typeof input.data !== "string") {const ctx = this._getOrReturnCtx(input);+ const expectedValues = this._def.values;addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.undefined,- received: ctx.parsedType+ expected: util.joinValues(expectedValues),+ received: ctx.parsedType,+ code: ZodIssueCode.invalid_type});return INVALID;}- return OK(input.data);- }-}-ZodUndefined.create = (params) => {- return new ZodUndefined({- typeName: ZodFirstPartyTypeKind.ZodUndefined,- ...processCreateParams(params)- });-};--class ZodNull extends ZodType {- _parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.null) {+ if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {+ __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");+ }+ if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {const ctx = this._getOrReturnCtx(input);+ const expectedValues = this._def.values;addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.null,- received: ctx.parsedType+ received: ctx.data,+ code: ZodIssueCode.invalid_enum_value,+ options: expectedValues});return INVALID;}- return OK(input.data);+ return OK(input.data);+ }+ get options() {+ return this._def.values;+ }+ get enum() {+ const enumValues = {};+ for (const val of this._def.values) {+ enumValues[val] = val;+ }+ return enumValues;+ }+ get Values() {+ const enumValues = {};+ for (const val of this._def.values) {+ enumValues[val] = val;+ }+ return enumValues;}-}-ZodNull.create = (params) => {- return new ZodNull({- typeName: ZodFirstPartyTypeKind.ZodNull,- ...processCreateParams(params)- });-};--class ZodAny extends ZodType {- constructor() {- super(...arguments);- this._any = true;+ get Enum() {+ const enumValues = {};+ for (const val of this._def.values) {+ enumValues[val] = val;+ }+ return enumValues;}- _parse(input) {- return OK(input.data);+ extract(values, newDef = this._def) {+ return ZodEnum.create(values, {+ ...this._def,+ ...newDef+ });+ }+ exclude(values, newDef = this._def) {+ return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {+ ...this._def,+ ...newDef+ });}}-ZodAny.create = (params) => {- return new ZodAny({- typeName: ZodFirstPartyTypeKind.ZodAny,- ...processCreateParams(params)- });-};+_ZodEnum_cache = new WeakMap;+ZodEnum.create = createZodEnum;-class ZodUnknown extends ZodType {+class ZodNativeEnum extends ZodType {constructor() {super(...arguments);- this._unknown = true;- }- _parse(input) {- return OK(input.data);+ _ZodNativeEnum_cache.set(this, undefined);}-}-ZodUnknown.create = (params) => {- return new ZodUnknown({- typeName: ZodFirstPartyTypeKind.ZodUnknown,- ...processCreateParams(params)- });-};--class ZodNever extends ZodType {_parse(input) {+ const nativeEnumValues = util.getValidEnumValues(this._def.values);const ctx = this._getOrReturnCtx(input);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.never,- received: ctx.parsedType- });- return INVALID;- }-}-ZodNever.create = (params) => {- return new ZodNever({- typeName: ZodFirstPartyTypeKind.ZodNever,- ...processCreateParams(params)- });-};--class ZodVoid extends ZodType {- _parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.undefined) {- const ctx = this._getOrReturnCtx(input);+ if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {+ const expectedValues = util.objectValues(nativeEnumValues);addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.void,- received: ctx.parsedType+ expected: util.joinValues(expectedValues),+ received: ctx.parsedType,+ code: ZodIssueCode.invalid_type+ });+ return INVALID;+ }+ if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {+ __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");+ }+ if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {+ const expectedValues = util.objectValues(nativeEnumValues);+ addIssueToContext(ctx, {+ received: ctx.data,+ code: ZodIssueCode.invalid_enum_value,+ options: expectedValues});return INVALID;}return OK(input.data);}+ get enum() {+ return this._def.values;+ }}-ZodVoid.create = (params) => {- return new ZodVoid({- typeName: ZodFirstPartyTypeKind.ZodVoid,+_ZodNativeEnum_cache = new WeakMap;+ZodNativeEnum.create = (values, params) => {+ return new ZodNativeEnum({+ values,+ typeName: ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(params)});};-class ZodArray extends ZodType {+class ZodPromise extends ZodType {+ unwrap() {+ return this._def.type;+ }_parse(input) {- const { ctx, status } = this._processInputParams(input);- const def = this._def;- if (ctx.parsedType !== ZodParsedType.array) {+ const { ctx } = this._processInputParams(input);+ if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {addIssueToContext(ctx, {code: ZodIssueCode.invalid_type,- expected: ZodParsedType.array,+ expected: ZodParsedType.promise,received: ctx.parsedType});return INVALID;}- if (def.exactLength !== null) {- const tooBig = ctx.data.length > def.exactLength.value;- const tooSmall = ctx.data.length < def.exactLength.value;- if (tooBig || tooSmall) {- addIssueToContext(ctx, {- code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,- minimum: tooSmall ? def.exactLength.value : undefined,- maximum: tooBig ? def.exactLength.value : undefined,- type: "array",- inclusive: true,- exact: true,- message: def.exactLength.message- });- status.dirty();- }- }- if (def.minLength !== null) {- if (ctx.data.length < def.minLength.value) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: def.minLength.value,- type: "array",- inclusive: true,- exact: false,- message: def.minLength.message- });- status.dirty();- }- }- if (def.maxLength !== null) {- if (ctx.data.length > def.maxLength.value) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: def.maxLength.value,- type: "array",- inclusive: true,- exact: false,- message: def.maxLength.message- });- status.dirty();- }- }- if (ctx.common.async) {- return Promise.all([...ctx.data].map((item, i) => {- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));- })).then((result2) => {- return ParseStatus.mergeArray(status, result2);+ const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);+ return OK(promisified.then((data) => {+ return this._def.type.parseAsync(data, {+ path: ctx.path,+ errorMap: ctx.common.contextualErrorMap});- }- const result = [...ctx.data].map((item, i) => {- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));- });- return ParseStatus.mergeArray(status, result);- }- get element() {- return this._def.type;- }- min(minLength, message) {- return new ZodArray({- ...this._def,- minLength: { value: minLength, message: errorUtil.toString(message) }- });- }- max(maxLength, message) {- return new ZodArray({- ...this._def,- maxLength: { value: maxLength, message: errorUtil.toString(message) }- });- }- length(len, message) {- return new ZodArray({- ...this._def,- exactLength: { value: len, message: errorUtil.toString(message) }- });- }- nonempty(message) {- return this.min(1, message);+ }));}}-ZodArray.create = (schema, params) => {- return new ZodArray({+ZodPromise.create = (schema, params) => {+ return new ZodPromise({type: schema,- minLength: null,- maxLength: null,- exactLength: null,- typeName: ZodFirstPartyTypeKind.ZodArray,+ typeName: ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(params)});};-function deepPartialify(schema) {- if (schema instanceof ZodObject) {- const newShape = {};- for (const key in schema.shape) {- const fieldSchema = schema.shape[key];- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));- }- return new ZodObject({- ...schema._def,- shape: () => newShape- });- } else if (schema instanceof ZodArray) {- return new ZodArray({- ...schema._def,- type: deepPartialify(schema.element)- });- } else if (schema instanceof ZodOptional) {- return ZodOptional.create(deepPartialify(schema.unwrap()));- } else if (schema instanceof ZodNullable) {- return ZodNullable.create(deepPartialify(schema.unwrap()));- } else if (schema instanceof ZodTuple) {- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));- } else {- return schema;- }-}-class ZodObject extends ZodType {- constructor() {- super(...arguments);- this._cached = null;- this.nonstrict = this.passthrough;- this.augment = this.extend;+class ZodEffects extends ZodType {+ innerType() {+ return this._def.schema;}- _getCached() {- if (this._cached !== null)- return this._cached;- const shape = this._def.shape();- const keys = util.objectKeys(shape);- return this._cached = { shape, keys };+ sourceType() {+ return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema;}_parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.object) {- const ctx2 = this._getOrReturnCtx(input);- addIssueToContext(ctx2, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.object,- received: ctx2.parsedType- });- return INVALID;- }const { status, ctx } = this._processInputParams(input);- const { shape, keys: shapeKeys } = this._getCached();- const extraKeys = [];- if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {- for (const key in ctx.data) {- if (!shapeKeys.includes(key)) {- extraKeys.push(key);- }- }- }- const pairs = [];- for (const key of shapeKeys) {- const keyValidator = shape[key];- const value = ctx.data[key];- pairs.push({- key: { status: "valid", value: key },- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),- alwaysSet: key in ctx.data- });- }- if (this._def.catchall instanceof ZodNever) {- const unknownKeys = this._def.unknownKeys;- if (unknownKeys === "passthrough") {- for (const key of extraKeys) {- pairs.push({- key: { status: "valid", value: key },- value: { status: "valid", value: ctx.data[key] }- });- }- } else if (unknownKeys === "strict") {- if (extraKeys.length > 0) {- addIssueToContext(ctx, {- code: ZodIssueCode.unrecognized_keys,- keys: extraKeys- });+ const effect = this._def.effect || null;+ const checkCtx = {+ addIssue: (arg) => {+ addIssueToContext(ctx, arg);+ if (arg.fatal) {+ status.abort();+ } else {status.dirty();}- } else if (unknownKeys === "strip")- ;- else {- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);+ },+ get path() {+ return ctx.path;}- } else {- const catchall = this._def.catchall;- for (const key of extraKeys) {- const value = ctx.data[key];- pairs.push({- key: { status: "valid", value: key },- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),- alwaysSet: key in ctx.data+ };+ checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);+ if (effect.type === "preprocess") {+ const processed = effect.transform(ctx.data, checkCtx);+ if (ctx.common.async) {+ return Promise.resolve(processed).then(async (processed2) => {+ if (status.value === "aborted")+ return INVALID;+ const result = await this._def.schema._parseAsync({+ data: processed2,+ path: ctx.path,+ parent: ctx+ });+ if (result.status === "aborted")+ return INVALID;+ if (result.status === "dirty")+ return DIRTY(result.value);+ if (status.value === "dirty")+ return DIRTY(result.value);+ return result;+ });+ } else {+ if (status.value === "aborted")+ return INVALID;+ const result = this._def.schema._parseSync({+ data: processed,+ path: ctx.path,+ parent: ctx});+ if (result.status === "aborted")+ return INVALID;+ if (result.status === "dirty")+ return DIRTY(result.value);+ if (status.value === "dirty")+ return DIRTY(result.value);+ return result;}}- if (ctx.common.async) {- return Promise.resolve().then(async () => {- const syncPairs = [];- for (const pair of pairs) {- const key = await pair.key;- const value = await pair.value;- syncPairs.push({- key,- value,- alwaysSet: pair.alwaysSet- });+ if (effect.type === "refinement") {+ const executeRefinement = (acc) => {+ const result = effect.refinement(acc, checkCtx);+ if (ctx.common.async) {+ return Promise.resolve(result);}- return syncPairs;- }).then((syncPairs) => {- return ParseStatus.mergeObjectSync(status, syncPairs);- });- } else {- return ParseStatus.mergeObjectSync(status, pairs);- }- }- get shape() {- return this._def.shape();- }- strict(message) {- errorUtil.errToObj;- return new ZodObject({- ...this._def,- unknownKeys: "strict",- ...message !== undefined ? {- errorMap: (issue, ctx) => {- var _a, _b, _c, _d;- const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === undefined ? undefined : _b.call(_a, issue, ctx).message) !== null && _c !== undefined ? _c : ctx.defaultError;- if (issue.code === "unrecognized_keys")- return {- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== undefined ? _d : defaultError- };- return {- message: defaultError- };+ if (result instanceof Promise) {+ throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");}- } : {}- });- }- strip() {- return new ZodObject({- ...this._def,- unknownKeys: "strip"- });- }- passthrough() {- return new ZodObject({- ...this._def,- unknownKeys: "passthrough"- });- }- extend(augmentation) {- return new ZodObject({- ...this._def,- shape: () => ({- ...this._def.shape(),- ...augmentation- })- });- }- merge(merging) {- const merged = new ZodObject({- unknownKeys: merging._def.unknownKeys,- catchall: merging._def.catchall,- shape: () => ({- ...this._def.shape(),- ...merging._def.shape()- }),- typeName: ZodFirstPartyTypeKind.ZodObject- });- return merged;- }- setKey(key, schema) {- return this.augment({ [key]: schema });- }- catchall(index) {- return new ZodObject({- ...this._def,- catchall: index- });- }- pick(mask) {- const shape = {};- util.objectKeys(mask).forEach((key) => {- if (mask[key] && this.shape[key]) {- shape[key] = this.shape[key];- }- });- return new ZodObject({- ...this._def,- shape: () => shape- });- }- omit(mask) {- const shape = {};- util.objectKeys(this.shape).forEach((key) => {- if (!mask[key]) {- shape[key] = this.shape[key];+ return acc;+ };+ if (ctx.common.async === false) {+ const inner = this._def.schema._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ if (inner.status === "aborted")+ return INVALID;+ if (inner.status === "dirty")+ status.dirty();+ executeRefinement(inner.value);+ return { status: status.value, value: inner.value };+ } else {+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {+ if (inner.status === "aborted")+ return INVALID;+ if (inner.status === "dirty")+ status.dirty();+ return executeRefinement(inner.value).then(() => {+ return { status: status.value, value: inner.value };+ });+ });}- });- return new ZodObject({- ...this._def,- shape: () => shape- });- }- deepPartial() {- return deepPartialify(this);- }- partial(mask) {- const newShape = {};- util.objectKeys(this.shape).forEach((key) => {- const fieldSchema = this.shape[key];- if (mask && !mask[key]) {- newShape[key] = fieldSchema;+ }+ if (effect.type === "transform") {+ if (ctx.common.async === false) {+ const base = this._def.schema._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ if (!isValid(base))+ return base;+ const result = effect.transform(base.value, checkCtx);+ if (result instanceof Promise) {+ throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);+ }+ return { status: status.value, value: result };} else {- newShape[key] = fieldSchema.optional();+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {+ if (!isValid(base))+ return base;+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));+ });}- });- return new ZodObject({- ...this._def,- shape: () => newShape- });+ }+ util.assertNever(effect);}- required(mask) {- const newShape = {};- util.objectKeys(this.shape).forEach((key) => {- if (mask && !mask[key]) {- newShape[key] = this.shape[key];- } else {- const fieldSchema = this.shape[key];- let newField = fieldSchema;- while (newField instanceof ZodOptional) {- newField = newField._def.innerType;- }- newShape[key] = newField;- }- });- return new ZodObject({- ...this._def,- shape: () => newShape- });+}+ZodEffects.create = (schema, effect, params) => {+ return new ZodEffects({+ schema,+ typeName: ZodFirstPartyTypeKind.ZodEffects,+ effect,+ ...processCreateParams(params)+ });+};+ZodEffects.createWithPreprocess = (preprocess, schema, params) => {+ return new ZodEffects({+ schema,+ effect: { type: "preprocess", transform: preprocess },+ typeName: ZodFirstPartyTypeKind.ZodEffects,+ ...processCreateParams(params)+ });+};++class ZodOptional extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType === ZodParsedType.undefined) {+ return OK(undefined);+ }+ return this._def.innerType._parse(input);}- keyof() {- return createZodEnum(util.objectKeys(this.shape));+ unwrap() {+ return this._def.innerType;}}-ZodObject.create = (shape, params) => {- return new ZodObject({- shape: () => shape,- unknownKeys: "strip",- catchall: ZodNever.create(),- typeName: ZodFirstPartyTypeKind.ZodObject,+ZodOptional.create = (type, params) => {+ return new ZodOptional({+ innerType: type,+ typeName: ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(params)});};-ZodObject.strictCreate = (shape, params) => {- return new ZodObject({- shape: () => shape,- unknownKeys: "strict",- catchall: ZodNever.create(),- typeName: ZodFirstPartyTypeKind.ZodObject,++class ZodNullable extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType === ZodParsedType.null) {+ return OK(null);+ }+ return this._def.innerType._parse(input);+ }+ unwrap() {+ return this._def.innerType;+ }+}+ZodNullable.create = (type, params) => {+ return new ZodNullable({+ innerType: type,+ typeName: ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(params)});};-ZodObject.lazycreate = (shape, params) => {- return new ZodObject({- shape,- unknownKeys: "strip",- catchall: ZodNever.create(),- typeName: ZodFirstPartyTypeKind.ZodObject,++class ZodDefault extends ZodType {+ _parse(input) {+ const { ctx } = this._processInputParams(input);+ let data = ctx.data;+ if (ctx.parsedType === ZodParsedType.undefined) {+ data = this._def.defaultValue();+ }+ return this._def.innerType._parse({+ data,+ path: ctx.path,+ parent: ctx+ });+ }+ removeDefault() {+ return this._def.innerType;+ }+}+ZodDefault.create = (type, params) => {+ return new ZodDefault({+ innerType: type,+ typeName: ZodFirstPartyTypeKind.ZodDefault,+ defaultValue: typeof params.default === "function" ? params.default : () => params.default,...processCreateParams(params)});};-class ZodUnion extends ZodType {+class ZodCatch extends ZodType {_parse(input) {const { ctx } = this._processInputParams(input);- const options = this._def.options;- function handleResults(results) {- for (const result of results) {- if (result.result.status === "valid") {- return result.result;- }+ const newCtx = {+ ...ctx,+ common: {+ ...ctx.common,+ issues: []}- for (const result of results) {- if (result.result.status === "dirty") {- ctx.common.issues.push(...result.ctx.common.issues);- return result.result;- }+ };+ const result = this._def.innerType._parse({+ data: newCtx.data,+ path: newCtx.path,+ parent: {+ ...newCtx}- const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));+ });+ if (isAsync(result)) {+ return result.then((result2) => {+ return {+ status: "valid",+ value: result2.status === "valid" ? result2.value : this._def.catchValue({+ get error() {+ return new ZodError(newCtx.common.issues);+ },+ input: newCtx.data+ })+ };+ });+ } else {+ return {+ status: "valid",+ value: result.status === "valid" ? result.value : this._def.catchValue({+ get error() {+ return new ZodError(newCtx.common.issues);+ },+ input: newCtx.data+ })+ };+ }+ }+ removeCatch() {+ return this._def.innerType;+ }+}+ZodCatch.create = (type, params) => {+ return new ZodCatch({+ innerType: type,+ typeName: ZodFirstPartyTypeKind.ZodCatch,+ catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,+ ...processCreateParams(params)+ });+};++class ZodNaN extends ZodType {+ _parse(input) {+ const parsedType = this._getType(input);+ if (parsedType !== ZodParsedType.nan) {+ const ctx = this._getOrReturnCtx(input);addIssueToContext(ctx, {- code: ZodIssueCode.invalid_union,- unionErrors+ code: ZodIssueCode.invalid_type,+ expected: ZodParsedType.nan,+ received: ctx.parsedType});return INVALID;}+ return { status: "valid", value: input.data };+ }+}+ZodNaN.create = (params) => {+ return new ZodNaN({+ typeName: ZodFirstPartyTypeKind.ZodNaN,+ ...processCreateParams(params)+ });+};+var BRAND = Symbol("zod_brand");++class ZodBranded extends ZodType {+ _parse(input) {+ const { ctx } = this._processInputParams(input);+ const data = ctx.data;+ return this._def.type._parse({+ data,+ path: ctx.path,+ parent: ctx+ });+ }+ unwrap() {+ return this._def.type;+ }+}++class ZodPipeline extends ZodType {+ _parse(input) {+ const { status, ctx } = this._processInputParams(input);if (ctx.common.async) {- return Promise.all(options.map(async (option) => {- const childCtx = {- ...ctx,- common: {- ...ctx.common,- issues: []- },- parent: null- };- return {- result: await option._parseAsync({- data: ctx.data,+ const handleAsync = async () => {+ const inResult = await this._def.in._parseAsync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ if (inResult.status === "aborted")+ return INVALID;+ if (inResult.status === "dirty") {+ status.dirty();+ return DIRTY(inResult.value);+ } else {+ return this._def.out._parseAsync({+ data: inResult.value,path: ctx.path,- parent: childCtx- }),- ctx: childCtx- };- })).then(handleResults);+ parent: ctx+ });+ }+ };+ return handleAsync();} else {- let dirty = undefined;- const issues = [];- for (const option of options) {- const childCtx = {- ...ctx,- common: {- ...ctx.common,- issues: []- },- parent: null+ const inResult = this._def.in._parseSync({+ data: ctx.data,+ path: ctx.path,+ parent: ctx+ });+ if (inResult.status === "aborted")+ return INVALID;+ if (inResult.status === "dirty") {+ status.dirty();+ return {+ status: "dirty",+ value: inResult.value};- const result = option._parseSync({- data: ctx.data,+ } else {+ return this._def.out._parseSync({+ data: inResult.value,path: ctx.path,- parent: childCtx+ parent: ctx});- if (result.status === "valid") {- return result;- } else if (result.status === "dirty" && !dirty) {- dirty = { result, ctx: childCtx };- }- if (childCtx.common.issues.length) {- issues.push(childCtx.common.issues);- }}- if (dirty) {- ctx.common.issues.push(...dirty.ctx.common.issues);- return dirty.result;+ }+ }+ static create(a, b2) {+ return new ZodPipeline({+ in: a,+ out: b2,+ typeName: ZodFirstPartyTypeKind.ZodPipeline+ });+ }+}++class ZodReadonly extends ZodType {+ _parse(input) {+ const result = this._def.innerType._parse(input);+ const freeze = (data) => {+ if (isValid(data)) {+ data.value = Object.freeze(data.value);}- const unionErrors = issues.map((issues2) => new ZodError(issues2));- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_union,- unionErrors- });- return INVALID;+ return data;+ };+ return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);+ }+ unwrap() {+ return this._def.innerType;+ }+}+ZodReadonly.create = (type, params) => {+ return new ZodReadonly({+ innerType: type,+ typeName: ZodFirstPartyTypeKind.ZodReadonly,+ ...processCreateParams(params)+ });+};+function custom(check, params = {}, fatal) {+ if (check)+ return ZodAny.create().superRefine((data, ctx) => {+ var _a, _b;+ if (!check(data)) {+ const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;+ const _fatal = (_b = (_a = p.fatal) !== null && _a !== undefined ? _a : fatal) !== null && _b !== undefined ? _b : true;+ const p2 = typeof p === "string" ? { message: p } : p;+ ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });+ }+ });+ return ZodAny.create();+}+var late = {+ object: ZodObject.lazycreate+};+var ZodFirstPartyTypeKind;+(function(ZodFirstPartyTypeKind2) {+ ZodFirstPartyTypeKind2["ZodString"] = "ZodString";+ ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";+ ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";+ ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";+ ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";+ ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";+ ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";+ ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";+ ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";+ ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";+ ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";+ ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";+ ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";+ ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";+ ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";+ ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";+ ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";+ ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";+ ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";+ ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";+ ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";+ ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";+ ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";+ ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";+ ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";+ ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";+ ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";+ ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";+ ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";+ ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";+ ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";+ ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";+ ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";+ ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";+ ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";+ ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";+})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));+var instanceOfType = (cls, params = {+ message: `Input not instance of ${cls.name}`+}) => custom((data) => data instanceof cls, params);+var stringType = ZodString.create;+var numberType = ZodNumber.create;+var nanType = ZodNaN.create;+var bigIntType = ZodBigInt.create;+var booleanType = ZodBoolean.create;+var dateType = ZodDate.create;+var symbolType = ZodSymbol.create;+var undefinedType = ZodUndefined.create;+var nullType = ZodNull.create;+var anyType = ZodAny.create;+var unknownType = ZodUnknown.create;+var neverType = ZodNever.create;+var voidType = ZodVoid.create;+var arrayType = ZodArray.create;+var objectType = ZodObject.create;+var strictObjectType = ZodObject.strictCreate;+var unionType = ZodUnion.create;+var discriminatedUnionType = ZodDiscriminatedUnion.create;+var intersectionType = ZodIntersection.create;+var tupleType = ZodTuple.create;+var recordType = ZodRecord.create;+var mapType = ZodMap.create;+var setType = ZodSet.create;+var functionType = ZodFunction.create;+var lazyType = ZodLazy.create;+var literalType = ZodLiteral.create;+var enumType = ZodEnum.create;+var nativeEnumType = ZodNativeEnum.create;+var promiseType = ZodPromise.create;+var effectsType = ZodEffects.create;+var optionalType = ZodOptional.create;+var nullableType = ZodNullable.create;+var preprocessType = ZodEffects.createWithPreprocess;+var pipelineType = ZodPipeline.create;+var ostring = () => stringType().optional();+var onumber = () => numberType().optional();+var oboolean = () => booleanType().optional();+var coerce = {+ string: (arg) => ZodString.create({ ...arg, coerce: true }),+ number: (arg) => ZodNumber.create({ ...arg, coerce: true }),+ boolean: (arg) => ZodBoolean.create({+ ...arg,+ coerce: true+ }),+ bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),+ date: (arg) => ZodDate.create({ ...arg, coerce: true })+};+var NEVER = INVALID;+var z2 = /* @__PURE__ */ Object.freeze({+ __proto__: null,+ defaultErrorMap: errorMap,+ setErrorMap,+ getErrorMap,+ makeIssue,+ EMPTY_PATH,+ addIssueToContext,+ ParseStatus,+ INVALID,+ DIRTY,+ OK,+ isAborted,+ isDirty,+ isValid,+ isAsync,+ get util() {+ return util;+ },+ get objectUtil() {+ return objectUtil;+ },+ ZodParsedType,+ getParsedType,+ ZodType,+ datetimeRegex,+ ZodString,+ ZodNumber,+ ZodBigInt,+ ZodBoolean,+ ZodDate,+ ZodSymbol,+ ZodUndefined,+ ZodNull,+ ZodAny,+ ZodUnknown,+ ZodNever,+ ZodVoid,+ ZodArray,+ ZodObject,+ ZodUnion,+ ZodDiscriminatedUnion,+ ZodIntersection,+ ZodTuple,+ ZodRecord,+ ZodMap,+ ZodSet,+ ZodFunction,+ ZodLazy,+ ZodLiteral,+ ZodEnum,+ ZodNativeEnum,+ ZodPromise,+ ZodEffects,+ ZodTransformer: ZodEffects,+ ZodOptional,+ ZodNullable,+ ZodDefault,+ ZodCatch,+ ZodNaN,+ BRAND,+ ZodBranded,+ ZodPipeline,+ ZodReadonly,+ custom,+ Schema: ZodType,+ ZodSchema: ZodType,+ late,+ get ZodFirstPartyTypeKind() {+ return ZodFirstPartyTypeKind;+ },+ coerce,+ any: anyType,+ array: arrayType,+ bigint: bigIntType,+ boolean: booleanType,+ date: dateType,+ discriminatedUnion: discriminatedUnionType,+ effect: effectsType,+ enum: enumType,+ function: functionType,+ instanceof: instanceOfType,+ intersection: intersectionType,+ lazy: lazyType,+ literal: literalType,+ map: mapType,+ nan: nanType,+ nativeEnum: nativeEnumType,+ never: neverType,+ null: nullType,+ nullable: nullableType,+ number: numberType,+ object: objectType,+ oboolean,+ onumber,+ optional: optionalType,+ ostring,+ pipeline: pipelineType,+ preprocess: preprocessType,+ promise: promiseType,+ record: recordType,+ set: setType,+ strictObject: strictObjectType,+ string: stringType,+ symbol: symbolType,+ transformer: effectsType,+ tuple: tupleType,+ undefined: undefinedType,+ union: unionType,+ unknown: unknownType,+ void: voidType,+ NEVER,+ ZodIssueCode,+ quotelessJson,+ ZodError+});++// src/commands/components/commands/add/utils/handle-error.ts+function handleError(error) {+ logger.error(`something went wrong. please check the error below for more details.`);+ logger.error(`if the problem persists, please open an issue on github.`);+ logger.error("");+ if (typeof error === "string") {+ logger.error(error);+ logger.break();+ process.exit(1);+ }+ if (error instanceof z2.ZodError) {+ logger.error("validation failed:");+ for (const [key, value] of Object.entries(error.flatten().fieldErrors)) {+ logger.error(`- ${highlighter.info(key)}: ${value}`);}+ logger.break();+ process.exit(1);}- get options() {- return this._def.options;+ if (error instanceof Error) {+ logger.error(error.message);+ logger.break();+ process.exit(1);}+ logger.break();+ process.exit(1);}-ZodUnion.create = (types, params) => {- return new ZodUnion({- options: types,- typeName: ZodFirstPartyTypeKind.ZodUnion,- ...processCreateParams(params)- });-};-var getDiscriminator = (type) => {- if (type instanceof ZodLazy) {- return getDiscriminator(type.schema);- } else if (type instanceof ZodEffects) {- return getDiscriminator(type.innerType());- } else if (type instanceof ZodLiteral) {- return [type.value];- } else if (type instanceof ZodEnum) {- return type.options;- } else if (type instanceof ZodNativeEnum) {- return util.objectValues(type.enum);- } else if (type instanceof ZodDefault) {- return getDiscriminator(type._def.innerType);- } else if (type instanceof ZodUndefined) {- return [undefined];- } else if (type instanceof ZodNull) {- return [null];- } else if (type instanceof ZodOptional) {- return [undefined, ...getDiscriminator(type.unwrap())];- } else if (type instanceof ZodNullable) {- return [null, ...getDiscriminator(type.unwrap())];- } else if (type instanceof ZodBranded) {- return getDiscriminator(type.unwrap());- } else if (type instanceof ZodReadonly) {- return getDiscriminator(type.unwrap());- } else if (type instanceof ZodCatch) {- return getDiscriminator(type._def.innerType);- } else {- return [];- }+var ERRORS = {+ MISSING_DIR_OR_EMPTY_PIPE: "1",+ COMPONENT_NOT_FOUND: "2",+ BUILD_MISSING_REGISTRY_FILE: "3"};-class ZodDiscriminatedUnion extends ZodType {- _parse(input) {- const { ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.object) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.object,- received: ctx.parsedType- });- return INVALID;- }- const discriminator = this.discriminator;- const discriminatorValue = ctx.data[discriminator];- const option = this.optionsMap.get(discriminatorValue);- if (!option) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_union_discriminator,- options: Array.from(this.optionsMap.keys()),- path: [discriminator]- });- return INVALID;- }- if (ctx.common.async) {- return option._parseAsync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- } else {- return option._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- }- }- get discriminator() {- return this._def.discriminator;- }- get options() {- return this._def.options;- }- get optionsMap() {- return this._def.optionsMap;- }- static create(discriminator, options, params) {- const optionsMap = new Map;- for (const type of options) {- const discriminatorValues = getDiscriminator(type.shape[discriminator]);- if (!discriminatorValues.length) {- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);- }- for (const value of discriminatorValues) {- if (optionsMap.has(value)) {- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);- }- optionsMap.set(value, type);+// src/utils/credentials.ts+import os2 from "os";+import fs from "fs";+import path from "path";++class Credentials {+ static configDir = path.join(os2.homedir(), ".screenpipe");+ static configFile = path.join(this.configDir, "config-developer.json");+ static getApiKey() {+ try {+ if (!fs.existsSync(this.configFile)) {+ return null;}+ const config = JSON.parse(fs.readFileSync(this.configFile, "utf-8"));+ return config.apiKey || null;+ } catch (error) {+ return null;}- return new ZodDiscriminatedUnion({- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,- discriminator,- options,- optionsMap,- ...processCreateParams(params)- });}-}-function mergeValues(a, b2) {- const aType = getParsedType(a);- const bType = getParsedType(b2);- if (a === b2) {- return { valid: true, data: a };- } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {- const bKeys = util.objectKeys(b2);- const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);- const newObj = { ...a, ...b2 };- for (const key of sharedKeys) {- const sharedValue = mergeValues(a[key], b2[key]);- if (!sharedValue.valid) {- return { valid: false };- }- newObj[key] = sharedValue.data;- }- return { valid: true, data: newObj };- } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {- if (a.length !== b2.length) {- return { valid: false };+ static setApiKey(apiKey, developerId) {+ if (!fs.existsSync(this.configDir)) {+ fs.mkdirSync(this.configDir);}- const newArray = [];- for (let index = 0;index < a.length; index++) {- const itemA = a[index];- const itemB = b2[index];- const sharedValue = mergeValues(itemA, itemB);- if (!sharedValue.valid) {- return { valid: false };- }- newArray.push(sharedValue.data);+ fs.writeFileSync(this.configFile, JSON.stringify({+ apiKey,+ developerId+ }, null, 2));+ }+ static clearCredentials() {+ if (fs.existsSync(this.configFile)) {+ fs.unlinkSync(this.configFile);}- return { valid: true, data: newArray };- } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b2) {- return { valid: true, data: a };- } else {- return { valid: false };}}-class ZodIntersection extends ZodType {- _parse(input) {- const { status, ctx } = this._processInputParams(input);- const handleParsed = (parsedLeft, parsedRight) => {- if (isAborted(parsedLeft) || isAborted(parsedRight)) {- return INVALID;- }- const merged = mergeValues(parsedLeft.value, parsedRight.value);- if (!merged.valid) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_intersection_types- });- return INVALID;- }- if (isDirty(parsedLeft) || isDirty(parsedRight)) {- status.dirty();- }- return { status: status.value, value: merged.data };- };- if (ctx.common.async) {- return Promise.all([- this._def.left._parseAsync({- data: ctx.data,- path: ctx.path,- parent: ctx- }),- this._def.right._parseAsync({- data: ctx.data,- path: ctx.path,- parent: ctx- })- ]).then(([left, right]) => handleParsed(left, right));- } else {- return handleParsed(this._def.left._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- }), this._def.right._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- }));- }+// src/commands/login/utils/cli-login.ts+class UserCancellationError extends Error {+ constructor(message) {+ super(message);+ this.name = "UserCancellationError";}}-ZodIntersection.create = (left, right, params) => {- return new ZodIntersection({- left,- right,- typeName: ZodFirstPartyTypeKind.ZodIntersection,- ...processCreateParams(params)- });-};--class ZodTuple extends ZodType {- _parse(input) {- const { status, ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.array) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.array,- received: ctx.parsedType- });- return INVALID;- }- if (ctx.data.length < this._def.items.length) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: this._def.items.length,- inclusive: true,- exact: false,- type: "array"- });- return INVALID;- }- const rest = this._def.rest;- if (!rest && ctx.data.length > this._def.items.length) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: this._def.items.length,- inclusive: true,- exact: false,- type: "array"- });- status.dirty();+var authPayload = z2.object({+ token: z2.string(),+ email: z2.string(),+ user_id: z2.string(),+ developer_id: z2.string(),+ api_key: z2.string()+});+async function sendAuthData(authPayload2) {+ try {+ const response = await fetch(`http://localhost:11435/auth`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json"+ },+ body: JSON.stringify(authPayload2)+ });+ if (!response.ok) {+ throw new Error("failed to send auth data");}- const items = [...ctx.data].map((item, itemIndex) => {- const schema = this._def.items[itemIndex] || this._def.rest;- if (!schema)- return null;- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));- }).filter((x2) => !!x2);- if (ctx.common.async) {- return Promise.all(items).then((results) => {- return ParseStatus.mergeArray(status, results);- });- } else {- return ParseStatus.mergeArray(status, items);+ const data = await response.json();+ return data;+ } catch (error) {+ if (error instanceof TypeError && error.message.includes("fetch")) {+ throw new Error("Make sure to run the app before attempting to login");}- }- get items() {- return this._def.items;- }- rest(rest) {- return new ZodTuple({- ...this._def,- rest- });+ throw error;}}-ZodTuple.create = (schemas, params) => {- if (!Array.isArray(schemas)) {- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");- }- return new ZodTuple({- items: schemas,- typeName: ZodFirstPartyTypeKind.ZodTuple,- rest: null,- ...processCreateParams(params)+var nanoid = customAlphabet("123456789qazwsxedcrfvtgbyhnujmikolp", 8);+async function cliLogin() {+ const server = http.createServer();+ const { port } = await import_async_listen.listen(server, 0, "127.0.0.1");+ logger.info(`server listening on http://127.0.0.1:${port}`);+ const authPromise = new Promise((resolve, reject) => {+ server.on("request", (req, res) => {+ res.setHeader("Access-Control-Allow-Origin", "*");+ res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");+ res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");+ if (req.method === "OPTIONS") {+ res.writeHead(200);+ res.end();+ } else if (req.method === "GET") {+ const parsedUrl = url.parse(req.url, true);+ const queryParams = parsedUrl.query;+ if (queryParams.cancelled) {+ res.writeHead(200);+ res.end("Cancelled");+ reject(new UserCancellationError("Login process cancelled by user."));+ } else {+ res.writeHead(200);+ res.end("Success");+ const authData = authPayload.parse(queryParams);+ if (!authData) {+ reject(new Error("invalid response from server"));+ }+ resolve(authData);+ }+ } else {+ res.writeHead(405);+ res.end("Method not allowed");+ }+ });});-};--class ZodRecord extends ZodType {- get keySchema() {- return this._def.keyType;- }- get valueSchema() {- return this._def.valueType;- }- _parse(input) {- const { status, ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.object) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.object,- received: ctx.parsedType- });- return INVALID;- }- const pairs = [];- const keyType = this._def.keyType;- const valueType = this._def.valueType;- for (const key in ctx.data) {- pairs.push({- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),- alwaysSet: key in ctx.data- });- }- if (ctx.common.async) {- return ParseStatus.mergeObjectAsync(status, pairs);- } else {- return ParseStatus.mergeObjectSync(status, pairs);+ const redirect = `http://127.0.0.1:${port}`;+ const code = nanoid();+ const confirmationUrl = new URL("http://screenpi.pe/login");+ confirmationUrl.searchParams.append("code", code);+ confirmationUrl.searchParams.append("redirect", redirect);+ logger.log(`confirmation code: ${colors.bold(code)}+`);+ logger.log(`if something goes wrong, copy and paste this url into your browser: ${colors.bold(confirmationUrl.toString())}+`);+ const openBrowser = (url2) => {+ const platform = process.platform;+ switch (platform) {+ case "win32":+ const escapedUrl = url2.replace(/&/g, "^&");+ return spawn("cmd", ["/c", "start", "", escapedUrl]);+ case "darwin":+ return spawn("open", [url2]);+ default:+ return spawn("xdg-open", [url2]);}- }- get element() {- return this._def.valueType;- }- static create(first, second, third) {- if (second instanceof ZodType) {- return new ZodRecord({- keyType: first,- valueType: second,- typeName: ZodFirstPartyTypeKind.ZodRecord,- ...processCreateParams(third)- });+ };+ openBrowser(confirmationUrl.toString());+ const loadingSpinner = spinner("waiting for authentication...");+ try {+ loadingSpinner.start();+ const authData = await authPromise;+ Credentials.setApiKey(authData.api_key, authData.developer_id);+ await sendAuthData(authData).catch((_4) => {+ logger.warn(`could not set app credentials, is it app running?+ignore this warning if you're just trying to publish a pipe!`);+ });+ loadingSpinner.succeed("authentication successful");+ server.close();+ } catch (error) {+ if (error instanceof UserCancellationError) {+ server.close();+ logger.log(`+`);+ logger.error(`authentication cancelled.+`);+ process.exit(0);+ } else {+ server.close();+ handleError(`authentication failed: + ${error}`);}- return new ZodRecord({- keyType: ZodString.create(),- valueType: first,- typeName: ZodFirstPartyTypeKind.ZodRecord,- ...processCreateParams(second)- });+ } finally {+ server.close();+ process.exit(0);}}-class ZodMap extends ZodType {- get keySchema() {- return this._def.keyType;- }- get valueSchema() {- return this._def.valueType;- }- _parse(input) {- const { status, ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.map) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.map,- received: ctx.parsedType- });- return INVALID;- }- const keyType = this._def.keyType;- const valueType = this._def.valueType;- const pairs = [...ctx.data.entries()].map(([key, value], index) => {- return {- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))- };+// src/constants.ts+var API_BASE_URL = process.env.SC_API_BASE_URL || "https://screenpi.pe";++// src/commands/login/utils/api-key-login.ts+async function apiKeyLogin(apiKey) {+ try {+ logger.info(`+${symbols.info} validating API key...`);+ const response = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {+ method: "GET",+ headers: {+ Authorization: `Bearer ${apiKey}`,+ "Content-Type": "application/json"+ }});- if (ctx.common.async) {- const finalMap = new Map;- return Promise.resolve().then(async () => {- for (const pair of pairs) {- const key = await pair.key;- const value = await pair.value;- if (key.status === "aborted" || value.status === "aborted") {- return INVALID;+ if (!response.ok) {+ const error = await response.json();+ throw new Error(`Failed to validate API key ${error.error}`);+ }+ const data = await response.json();+ if (data.data.needs_name) {+ const developerName = await he({+ message: "enter your developer name:",+ validate: (input) => {+ if (input.length < 2) {+ return "developer name must be at least 2 characters";}- if (key.status === "dirty" || value.status === "dirty") {- status.dirty();+ if (input.length > 50) {+ return "developer name must be less than 50 characters";}- finalMap.set(key.value, value.value);+ return;}- return { status: status.value, value: finalMap };});- } else {- const finalMap = new Map;- for (const pair of pairs) {- const key = pair.key;- const value = pair.value;- if (key.status === "aborted" || value.status === "aborted") {- return INVALID;- }- if (key.status === "dirty" || value.status === "dirty") {- status.dirty();- }- finalMap.set(key.value, value.value);+ if (BD(developerName)) {+ xe("Operation cancelled");+ process.exit(1);}- return { status: status.value, value: finalMap };- }- }-}-ZodMap.create = (keyType, valueType, params) => {- return new ZodMap({- valueType,- keyType,- typeName: ZodFirstPartyTypeKind.ZodMap,- ...processCreateParams(params)- });-};--class ZodSet extends ZodType {- _parse(input) {- const { status, ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.set) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.set,- received: ctx.parsedType+ const updateResponse = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {+ method: "POST",+ headers: {+ Authorization: `Bearer ${apiKey}`,+ "Content-Type": "application/json"+ },+ body: JSON.stringify({ developer_name: developerName })});- return INVALID;- }- const def = this._def;- if (def.minSize !== null) {- if (ctx.data.size < def.minSize.value) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_small,- minimum: def.minSize.value,- type: "set",- inclusive: true,- exact: false,- message: def.minSize.message- });- status.dirty();- }- }- if (def.maxSize !== null) {- if (ctx.data.size > def.maxSize.value) {- addIssueToContext(ctx, {- code: ZodIssueCode.too_big,- maximum: def.maxSize.value,- type: "set",- inclusive: true,- exact: false,- message: def.maxSize.message- });- status.dirty();- }- }- const valueType = this._def.valueType;- function finalizeSet(elements2) {- const parsedSet = new Set;- for (const element of elements2) {- if (element.status === "aborted")- return INVALID;- if (element.status === "dirty")- status.dirty();- parsedSet.add(element.value);+ if (!updateResponse.ok) {+ const error = await updateResponse.json();+ throw new Error(`failed to set developer name: ${error.error}`);}- return { status: status.value, value: parsedSet };+ const updateData = await updateResponse.json();+ data.data.developer_name = updateData.data.developer_name;}- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));- if (ctx.common.async) {- return Promise.all(elements).then((elements2) => finalizeSet(elements2));+ logger.info(`+${symbols.success} successfully logged in!`);+ console.log(colors.listItem(`${colors.label("developer id")} ${data.data.developer_id}`));+ console.log(colors.listItem(`${colors.label("developer name")} ${data.data.developer_name}`));+ Credentials.setApiKey(apiKey, data.data.developer_id);+ } catch (error) {+ if (error instanceof Error) {+ handleError(`+${symbols.error} login failed: ${error.message}`);} else {- return finalizeSet(elements);+ handleError(`+${symbols.error} login failed with unexpected error`);}+ process.exit(1);}- min(minSize, message) {- return new ZodSet({- ...this._def,- minSize: { value: minSize, message: errorUtil.toString(message) }- });+}++// src/commands/login/index.ts+var loginCommand = new Command().name("login").description("authenticate with screenpipe").action(async () => {+ Ie("Welcome to Screenpipe");+ const type = await ve({+ message: "Select login type",+ options: [+ { value: "browser", label: "Browser" },+ { value: "apiKey", label: "API Key" }+ ]+ });+ if (BD(type)) {+ xe("Login cancelled");+ process.exit(1);}- max(maxSize, message) {- return new ZodSet({- ...this._def,- maxSize: { value: maxSize, message: errorUtil.toString(message) }+ if (type === "browser") {+ await cliLogin();+ } else {+ const apiKey = await he({+ message: "Enter your API key"});+ if (BD(apiKey)) {+ xe("Login cancelled");+ process.exit(1);+ }+ await apiKeyLogin(apiKey);}- size(size, message) {- return this.min(size, message).max(size, message);- }- nonempty(message) {- return this.min(1, message);+ Se("Login complete");+});+// src/commands/logout.ts+var logoutCommand = new Command().name("logout").description("end current session").action(async () => {+ Credentials.clearCredentials();+ logger.success(`+${symbols.success} successfully logged out`);+ logger.info(`${symbols.info} thanks for using screenpipe! come back soon.`);+});+// src/commands/pipe/register.ts+import fs2 from "fs";+var registerCommand = new Command().name("register").description("register a new pipe").requiredOption("--name <name>", "name of the pipe").option("--paid", "set this flag to create a paid pipe").option("--price <price>", "price in usd (required for paid pipes)", parseFloat).option("--source <source>", "source code url (e.g., github repository)").action(async (opts) => {+ if (opts.paid && opts.price == null) {+ handleError("error: price is required for paid pipes, i.e., --price <amount>");}-}-ZodSet.create = (valueType, params) => {- return new ZodSet({- valueType,- minSize: null,- maxSize: null,- typeName: ZodFirstPartyTypeKind.ZodSet,- ...processCreateParams(params)- });-};--class ZodFunction extends ZodType {- constructor() {- super(...arguments);- this.validate = this.implement;+ if (opts.paid && opts.price <= 0) {+ handleError("error: price must be positive for paid pipes");}- _parse(input) {- const { ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.function) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.function,- received: ctx.parsedType- });- return INVALID;+ try {+ const apiKey = Credentials.getApiKey();+ if (!apiKey) {+ handleError(symbols.error + " not logged in. please login first using" + colors.highlight("screenpipe login"));}- function makeArgsIssue(args, error) {- return makeIssue({- data: args,- path: ctx.path,- errorMaps: [- ctx.common.contextualErrorMap,- ctx.schemaErrorMap,- getErrorMap(),- errorMap- ].filter((x2) => !!x2),- issueData: {- code: ZodIssueCode.invalid_arguments,- argumentsError: error- }- });+ let packageJson;+ try {+ packageJson = JSON.parse(fs2.readFileSync("package.json", "utf-8"));+ } catch (error) {+ handleError(`${symbols.error} failed to read package.json. make sure you're in the correct directory.`);}- function makeReturnsIssue(returns, error) {- return makeIssue({- data: returns,- path: ctx.path,- errorMaps: [- ctx.common.contextualErrorMap,- ctx.schemaErrorMap,- getErrorMap(),- errorMap- ].filter((x2) => !!x2),- issueData: {- code: ZodIssueCode.invalid_return_type,- returnTypeError: error- }- });+ const isPaid = opts.paid || false;+ const price = opts.price;+ let description = null;+ try {+ const readmeContent = fs2.readFileSync("README.md", "utf-8");+ if (readmeContent) {+ description = readmeContent;+ }+ } catch (error) {+ logger.warn(`${symbols.arrow} no README.md found, required for description`);}- const params = { errorMap: ctx.common.contextualErrorMap };- const fn = ctx.data;- if (this._def.returns instanceof ZodPromise) {- const me2 = this;- return OK(async function(...args) {- const error = new ZodError([]);- const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e2) => {- error.addIssue(makeArgsIssue(args, e2));- throw error;- });- const result = await Reflect.apply(fn, this, parsedArgs);- const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e2) => {- error.addIssue(makeReturnsIssue(result, e2));- throw error;- });- return parsedReturns;- });+ const response = await fetch(`${API_BASE_URL}/api/plugins/create`, {+ method: "POST",+ headers: {+ Authorization: `Bearer ${apiKey}`,+ "Content-Type": "application/json"+ },+ body: JSON.stringify({+ name: opts.name,+ description,+ is_paid: isPaid,+ price: isPaid ? price : null,+ source_url: opts.source || null+ })+ });+ if (!response.ok) {+ const errorData = await response.json();+ handleError(errorData.error || "failed to create plugin");+ }+ const data = await response.json();+ logger.success(`+${symbols.success} successfully created pipe: ${colors.highlight(opts.name)}`);+ logger.info(`+${symbols.info} plugin details:`);+ console.log(colors.listItem(`${colors.label("name")} ${opts.name}`));+ console.log(colors.listItem(`${colors.label("type")} ${isPaid ? `paid ($${price})` : "free"}`));+ if (opts.source) {+ console.log(colors.listItem(`${colors.label("source")} ${opts.source}`));+ }+ } catch (error) {+ if (error instanceof Error) {+ handleError(`+${symbols.error} creating failed: ${error.message}`);} else {- const me2 = this;- return OK(function(...args) {- const parsedArgs = me2._def.args.safeParse(args, params);- if (!parsedArgs.success) {- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);- }- const result = Reflect.apply(fn, this, parsedArgs.data);- const parsedReturns = me2._def.returns.safeParse(result, params);- if (!parsedReturns.success) {- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);- }- return parsedReturns.data;- });+ handleError(`+${symbols.error} creating failed with unexpected error`);}}- parameters() {- return this._def.args;- }- returnType() {- return this._def.returns;+});++// src/commands/pipe/publish.ts+import fs3 from "fs";+import path2 from "path";+var import_archiver = __toESM(require_archiver(), 1);+var import_ignore = __toESM(require_ignore2(), 1);+import crypto3 from "crypto";+import { execSync } from "child_process";++// node_modules/axios/lib/helpers/bind.js+function bind(fn, thisArg) {+ return function wrap() {+ return fn.apply(thisArg, arguments);+ };+}++// node_modules/axios/lib/utils.js+var { toString } = Object.prototype;+var { getPrototypeOf } = Object;+var kindOf = ((cache) => (thing) => {+ const str = toString.call(thing);+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());+})(Object.create(null));+var kindOfTest = (type) => {+ type = type.toLowerCase();+ return (thing) => kindOf(thing) === type;+};+var typeOfTest = (type) => (thing) => typeof thing === type;+var { isArray } = Array;+var isUndefined = typeOfTest("undefined");+function isBuffer(val) {+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);+}+var isArrayBuffer = kindOfTest("ArrayBuffer");+function isArrayBufferView(val) {+ let result;+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {+ result = ArrayBuffer.isView(val);+ } else {+ result = val && val.buffer && isArrayBuffer(val.buffer);}- args(...items) {- return new ZodFunction({- ...this._def,- args: ZodTuple.create(items).rest(ZodUnknown.create())- });+ return result;+}+var isString = typeOfTest("string");+var isFunction = typeOfTest("function");+var isNumber = typeOfTest("number");+var isObject = (thing) => thing !== null && typeof thing === "object";+var isBoolean = (thing) => thing === true || thing === false;+var isPlainObject = (val) => {+ if (kindOf(val) !== "object") {+ return false;}- returns(returnType) {- return new ZodFunction({- ...this._def,- returns: returnType- });+ const prototype = getPrototypeOf(val);+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);+};+var isDate = kindOfTest("Date");+var isFile = kindOfTest("File");+var isBlob = kindOfTest("Blob");+var isFileList = kindOfTest("FileList");+var isStream = (val) => isObject(val) && isFunction(val.pipe);+var isFormData = (thing) => {+ let kind;+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));+};+var isURLSearchParams = kindOfTest("URLSearchParams");+var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);+var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");+function forEach(obj, fn, { allOwnKeys = false } = {}) {+ if (obj === null || typeof obj === "undefined") {+ return;}- implement(func) {- const validatedFunc = this.parse(func);- return validatedFunc;+ let i;+ let l2;+ if (typeof obj !== "object") {+ obj = [obj];}- strictImplement(func) {- const validatedFunc = this.parse(func);- return validatedFunc;+ if (isArray(obj)) {+ for (i = 0, l2 = obj.length;i < l2; i++) {+ fn.call(null, obj[i], i, obj);+ }+ } else {+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);+ const len = keys.length;+ let key;+ for (i = 0;i < len; i++) {+ key = keys[i];+ fn.call(null, obj[key], key, obj);+ }}- static create(args, returns, params) {- return new ZodFunction({- args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),- returns: returns || ZodUnknown.create(),- typeName: ZodFirstPartyTypeKind.ZodFunction,- ...processCreateParams(params)- });+}+function findKey(obj, key) {+ key = key.toLowerCase();+ const keys = Object.keys(obj);+ let i = keys.length;+ let _key;+ while (i-- > 0) {+ _key = keys[i];+ if (key === _key.toLowerCase()) {+ return _key;+ }+ }+ return null;+}+var _global = (() => {+ if (typeof globalThis !== "undefined")+ return globalThis;+ return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;+})();+var isContextDefined = (context) => !isUndefined(context) && context !== _global;+function merge() {+ const { caseless } = isContextDefined(this) && this || {};+ const result = {};+ const assignValue = (val, key) => {+ const targetKey = caseless && findKey(result, key) || key;+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {+ result[targetKey] = merge(result[targetKey], val);+ } else if (isPlainObject(val)) {+ result[targetKey] = merge({}, val);+ } else if (isArray(val)) {+ result[targetKey] = val.slice();+ } else {+ result[targetKey] = val;+ }+ };+ for (let i = 0, l2 = arguments.length;i < l2; i++) {+ arguments[i] && forEach(arguments[i], assignValue);}+ return result;}--class ZodLazy extends ZodType {- get schema() {- return this._def.getter();+var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {+ forEach(b2, (val, key) => {+ if (thisArg && isFunction(val)) {+ a[key] = bind(val, thisArg);+ } else {+ a[key] = val;+ }+ }, { allOwnKeys });+ return a;+};+var stripBOM = (content) => {+ if (content.charCodeAt(0) === 65279) {+ content = content.slice(1);}- _parse(input) {- const { ctx } = this._processInputParams(input);- const lazySchema = this._def.getter();- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });+ return content;+};+var inherits = (constructor, superConstructor, props, descriptors) => {+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);+ constructor.prototype.constructor = constructor;+ Object.defineProperty(constructor, "super", {+ value: superConstructor.prototype+ });+ props && Object.assign(constructor.prototype, props);+};+var toFlatObject = (sourceObj, destObj, filter, propFilter) => {+ let props;+ let i;+ let prop;+ const merged = {};+ destObj = destObj || {};+ if (sourceObj == null)+ return destObj;+ do {+ props = Object.getOwnPropertyNames(sourceObj);+ i = props.length;+ while (i-- > 0) {+ prop = props[i];+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {+ destObj[prop] = sourceObj[prop];+ merged[prop] = true;+ }+ }+ sourceObj = filter !== false && getPrototypeOf(sourceObj);+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);+ return destObj;+};+var endsWith = (str, searchString, position) => {+ str = String(str);+ if (position === undefined || position > str.length) {+ position = str.length;+ }+ position -= searchString.length;+ const lastIndex = str.indexOf(searchString, position);+ return lastIndex !== -1 && lastIndex === position;+};+var toArray = (thing) => {+ if (!thing)+ return null;+ if (isArray(thing))+ return thing;+ let i = thing.length;+ if (!isNumber(i))+ return null;+ const arr = new Array(i);+ while (i-- > 0) {+ arr[i] = thing[i];}-}-ZodLazy.create = (getter, params) => {- return new ZodLazy({- getter,- typeName: ZodFirstPartyTypeKind.ZodLazy,- ...processCreateParams(params)+ return arr;+};+var isTypedArray = ((TypedArray) => {+ return (thing) => {+ return TypedArray && thing instanceof TypedArray;+ };+})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));+var forEachEntry = (obj, fn) => {+ const generator = obj && obj[Symbol.iterator];+ const iterator = generator.call(obj);+ let result;+ while ((result = iterator.next()) && !result.done) {+ const pair = result.value;+ fn.call(obj, pair[0], pair[1]);+ }+};+var matchAll = (regExp, str) => {+ let matches;+ const arr = [];+ while ((matches = regExp.exec(str)) !== null) {+ arr.push(matches);+ }+ return arr;+};+var isHTMLForm = kindOfTest("HTMLFormElement");+var toCamelCase = (str) => {+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {+ return p1.toUpperCase() + p2;});};--class ZodLiteral extends ZodType {- _parse(input) {- if (input.data !== this._def.value) {- const ctx = this._getOrReturnCtx(input);- addIssueToContext(ctx, {- received: ctx.data,- code: ZodIssueCode.invalid_literal,- expected: this._def.value- });- return INVALID;+var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);+var isRegExp = kindOfTest("RegExp");+var reduceDescriptors = (obj, reducer) => {+ const descriptors = Object.getOwnPropertyDescriptors(obj);+ const reducedDescriptors = {};+ forEach(descriptors, (descriptor, name) => {+ let ret;+ if ((ret = reducer(descriptor, name, obj)) !== false) {+ reducedDescriptors[name] = ret || descriptor;}- return { status: "valid", value: input.data };+ });+ Object.defineProperties(obj, reducedDescriptors);+};+var freezeMethods = (obj) => {+ reduceDescriptors(obj, (descriptor, name) => {+ if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {+ return false;+ }+ const value = obj[name];+ if (!isFunction(value))+ return;+ descriptor.enumerable = false;+ if ("writable" in descriptor) {+ descriptor.writable = false;+ return;+ }+ if (!descriptor.set) {+ descriptor.set = () => {+ throw Error("Can not rewrite read-only method '" + name + "'");+ };+ }+ });+};+var toObjectSet = (arrayOrString, delimiter) => {+ const obj = {};+ const define2 = (arr) => {+ arr.forEach((value) => {+ obj[value] = true;+ });+ };+ isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));+ return obj;+};+var noop = () => {+};+var toFiniteNumber = (value, defaultValue) => {+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;+};+function isSpecCompliantForm(thing) {+ return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);+}+var toJSONObject = (obj) => {+ const stack = new Array(10);+ const visit = (source, i) => {+ if (isObject(source)) {+ if (stack.indexOf(source) >= 0) {+ return;+ }+ if (!("toJSON" in source)) {+ stack[i] = source;+ const target = isArray(source) ? [] : {};+ forEach(source, (value, key) => {+ const reducedValue = visit(value, i + 1);+ !isUndefined(reducedValue) && (target[key] = reducedValue);+ });+ stack[i] = undefined;+ return target;+ }+ }+ return source;+ };+ return visit(obj, 0);+};+var isAsyncFn = kindOfTest("AsyncFunction");+var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);+var _setImmediate = ((setImmediateSupported, postMessageSupported) => {+ if (setImmediateSupported) {+ return setImmediate;}- get value() {- return this._def.value;+ return postMessageSupported ? ((token, callbacks) => {+ _global.addEventListener("message", ({ source, data }) => {+ if (source === _global && data === token) {+ callbacks.length && callbacks.shift()();+ }+ }, false);+ return (cb) => {+ callbacks.push(cb);+ _global.postMessage(token, "*");+ };+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);+})(typeof setImmediate === "function", isFunction(_global.postMessage));+var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;+var utils_default = {+ isArray,+ isArrayBuffer,+ isBuffer,+ isFormData,+ isArrayBufferView,+ isString,+ isNumber,+ isBoolean,+ isObject,+ isPlainObject,+ isReadableStream,+ isRequest,+ isResponse,+ isHeaders,+ isUndefined,+ isDate,+ isFile,+ isBlob,+ isRegExp,+ isFunction,+ isStream,+ isURLSearchParams,+ isTypedArray,+ isFileList,+ forEach,+ merge,+ extend,+ trim,+ stripBOM,+ inherits,+ toFlatObject,+ kindOf,+ kindOfTest,+ endsWith,+ toArray,+ forEachEntry,+ matchAll,+ isHTMLForm,+ hasOwnProperty,+ hasOwnProp: hasOwnProperty,+ reduceDescriptors,+ freezeMethods,+ toObjectSet,+ toCamelCase,+ noop,+ toFiniteNumber,+ findKey,+ global: _global,+ isContextDefined,+ isSpecCompliantForm,+ toJSONObject,+ isAsyncFn,+ isThenable,+ setImmediate: _setImmediate,+ asap+};++// node_modules/axios/lib/core/AxiosError.js+function AxiosError(message, code, config, request, response) {+ Error.call(this);+ if (Error.captureStackTrace) {+ Error.captureStackTrace(this, this.constructor);+ } else {+ this.stack = new Error().stack;+ }+ this.message = message;+ this.name = "AxiosError";+ code && (this.code = code);+ config && (this.config = config);+ request && (this.request = request);+ if (response) {+ this.response = response;+ this.status = response.status ? response.status : null;}}-ZodLiteral.create = (value, params) => {- return new ZodLiteral({- value,- typeName: ZodFirstPartyTypeKind.ZodLiteral,- ...processCreateParams(params)+utils_default.inherits(AxiosError, Error, {+ toJSON: function toJSON() {+ return {+ message: this.message,+ name: this.name,+ description: this.description,+ number: this.number,+ fileName: this.fileName,+ lineNumber: this.lineNumber,+ columnNumber: this.columnNumber,+ stack: this.stack,+ config: utils_default.toJSONObject(this.config),+ code: this.code,+ status: this.status+ };+ }+});+var prototype = AxiosError.prototype;+var descriptors = {};+[+ "ERR_BAD_OPTION_VALUE",+ "ERR_BAD_OPTION",+ "ECONNABORTED",+ "ETIMEDOUT",+ "ERR_NETWORK",+ "ERR_FR_TOO_MANY_REDIRECTS",+ "ERR_DEPRECATED",+ "ERR_BAD_RESPONSE",+ "ERR_BAD_REQUEST",+ "ERR_CANCELED",+ "ERR_NOT_SUPPORT",+ "ERR_INVALID_URL"+].forEach((code) => {+ descriptors[code] = { value: code };+});+Object.defineProperties(AxiosError, descriptors);+Object.defineProperty(prototype, "isAxiosError", { value: true });+AxiosError.from = (error, code, config, request, response, customProps) => {+ const axiosError = Object.create(prototype);+ utils_default.toFlatObject(error, axiosError, function filter(obj) {+ return obj !== Error.prototype;+ }, (prop) => {+ return prop !== "isAxiosError";});+ AxiosError.call(axiosError, error.message, code, config, request, response);+ axiosError.cause = error;+ axiosError.name = error.name;+ customProps && Object.assign(axiosError, customProps);+ return axiosError;};-function createZodEnum(values, params) {- return new ZodEnum({- values,- typeName: ZodFirstPartyTypeKind.ZodEnum,- ...processCreateParams(params)- });-}+var AxiosError_default = AxiosError;-class ZodEnum extends ZodType {- constructor() {- super(...arguments);- _ZodEnum_cache.set(this, undefined);- }- _parse(input) {- if (typeof input.data !== "string") {- const ctx = this._getOrReturnCtx(input);- const expectedValues = this._def.values;- addIssueToContext(ctx, {- expected: util.joinValues(expectedValues),- received: ctx.parsedType,- code: ZodIssueCode.invalid_type- });- return INVALID;+// node_modules/axios/lib/platform/node/classes/FormData.js+var import_form_data = __toESM(require_form_data(), 1);+var FormData_default = import_form_data.default;++// node_modules/axios/lib/helpers/toFormData.js+function isVisitable(thing) {+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);+}+function removeBrackets(key) {+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;+}+function renderKey(path2, key, dots) {+ if (!path2)+ return key;+ return path2.concat(key).map(function each(token, i) {+ token = removeBrackets(token);+ return !dots && i ? "[" + token + "]" : token;+ }).join(dots ? "." : "");+}+function isFlatArray(arr) {+ return utils_default.isArray(arr) && !arr.some(isVisitable);+}+var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {+ return /^is[A-Z]/.test(prop);+});+function toFormData(obj, formData, options) {+ if (!utils_default.isObject(obj)) {+ throw new TypeError("target must be an object");+ }+ formData = formData || new (FormData_default || FormData);+ options = utils_default.toFlatObject(options, {+ metaTokens: true,+ dots: false,+ indexes: false+ }, false, function defined(option, source) {+ return !utils_default.isUndefined(source[option]);+ });+ const metaTokens = options.metaTokens;+ const visitor = options.visitor || defaultVisitor;+ const dots = options.dots;+ const indexes = options.indexes;+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);+ if (!utils_default.isFunction(visitor)) {+ throw new TypeError("visitor must be a function");+ }+ function convertValue(value) {+ if (value === null)+ return "";+ if (utils_default.isDate(value)) {+ return value.toISOString();}- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");+ if (!useBlob && utils_default.isBlob(value)) {+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");}- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {- const ctx = this._getOrReturnCtx(input);- const expectedValues = this._def.values;- addIssueToContext(ctx, {- received: ctx.data,- code: ZodIssueCode.invalid_enum_value,- options: expectedValues- });- return INVALID;+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);}- return OK(input.data);- }- get options() {- return this._def.values;+ return value;}- get enum() {- const enumValues = {};- for (const val of this._def.values) {- enumValues[val] = val;+ function defaultVisitor(value, key, path2) {+ let arr = value;+ if (value && !path2 && typeof value === "object") {+ if (utils_default.endsWith(key, "{}")) {+ key = metaTokens ? key : key.slice(0, -2);+ value = JSON.stringify(value);+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {+ key = removeBrackets(key);+ arr.forEach(function each(el, index) {+ !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));+ });+ return false;+ }}- return enumValues;- }- get Values() {- const enumValues = {};- for (const val of this._def.values) {- enumValues[val] = val;+ if (isVisitable(value)) {+ return true;}- return enumValues;+ formData.append(renderKey(path2, key, dots), convertValue(value));+ return false;}- get Enum() {- const enumValues = {};- for (const val of this._def.values) {- enumValues[val] = val;+ const stack = [];+ const exposedHelpers = Object.assign(predicates, {+ defaultVisitor,+ convertValue,+ isVisitable+ });+ function build(value, path2) {+ if (utils_default.isUndefined(value))+ return;+ if (stack.indexOf(value) !== -1) {+ throw Error("Circular reference detected in " + path2.join("."));}- return enumValues;- }- extract(values, newDef = this._def) {- return ZodEnum.create(values, {- ...this._def,- ...newDef+ stack.push(value);+ utils_default.forEach(value, function each(el, key) {+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path2, exposedHelpers);+ if (result === true) {+ build(el, path2 ? path2.concat(key) : [key]);+ }});+ stack.pop();}- exclude(values, newDef = this._def) {- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {- ...this._def,- ...newDef- });+ if (!utils_default.isObject(obj)) {+ throw new TypeError("data must be an object");}+ build(obj);+ return formData;+}+var toFormData_default = toFormData;++// node_modules/axios/lib/helpers/AxiosURLSearchParams.js+function encode(str) {+ const charMap = {+ "!": "%21",+ "'": "%27",+ "(": "%28",+ ")": "%29",+ "~": "%7E",+ "%20": "+",+ "%00": "\x00"+ };+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {+ return charMap[match];+ });+}+function AxiosURLSearchParams(params, options) {+ this._pairs = [];+ params && toFormData_default(params, this, options);+}+var prototype2 = AxiosURLSearchParams.prototype;+prototype2.append = function append(name, value) {+ this._pairs.push([name, value]);+};+prototype2.toString = function toString2(encoder) {+ const _encode = encoder ? function(value) {+ return encoder.call(this, value, encode);+ } : encode;+ return this._pairs.map(function each(pair) {+ return _encode(pair[0]) + "=" + _encode(pair[1]);+ }, "").join("&");+};+var AxiosURLSearchParams_default = AxiosURLSearchParams;++// node_modules/axios/lib/helpers/buildURL.js+function encode2(val) {+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");+}+function buildURL(url2, params, options) {+ if (!params) {+ return url2;+ }+ const _encode = options && options.encode || encode2;+ if (utils_default.isFunction(options)) {+ options = {+ serialize: options+ };+ }+ const serializeFn = options && options.serialize;+ let serializedParams;+ if (serializeFn) {+ serializedParams = serializeFn(params, options);+ } else {+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);+ }+ if (serializedParams) {+ const hashmarkIndex = url2.indexOf("#");+ if (hashmarkIndex !== -1) {+ url2 = url2.slice(0, hashmarkIndex);+ }+ url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;+ }+ return url2;}-_ZodEnum_cache = new WeakMap;-ZodEnum.create = createZodEnum;-class ZodNativeEnum extends ZodType {+// node_modules/axios/lib/core/InterceptorManager.js+class InterceptorManager {constructor() {- super(...arguments);- _ZodNativeEnum_cache.set(this, undefined);+ this.handlers = [];+ }+ use(fulfilled, rejected, options) {+ this.handlers.push({+ fulfilled,+ rejected,+ synchronous: options ? options.synchronous : false,+ runWhen: options ? options.runWhen : null+ });+ return this.handlers.length - 1;}- _parse(input) {- const nativeEnumValues = util.getValidEnumValues(this._def.values);- const ctx = this._getOrReturnCtx(input);- if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {- const expectedValues = util.objectValues(nativeEnumValues);- addIssueToContext(ctx, {- expected: util.joinValues(expectedValues),- received: ctx.parsedType,- code: ZodIssueCode.invalid_type- });- return INVALID;- }- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");+ eject(id) {+ if (this.handlers[id]) {+ this.handlers[id] = null;}- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {- const expectedValues = util.objectValues(nativeEnumValues);- addIssueToContext(ctx, {- received: ctx.data,- code: ZodIssueCode.invalid_enum_value,- options: expectedValues- });- return INVALID;+ }+ clear() {+ if (this.handlers) {+ this.handlers = [];}- return OK(input.data);}- get enum() {- return this._def.values;+ forEach(fn) {+ utils_default.forEach(this.handlers, function forEachHandler(h2) {+ if (h2 !== null) {+ fn(h2);+ }+ });}}-_ZodNativeEnum_cache = new WeakMap;-ZodNativeEnum.create = (values, params) => {- return new ZodNativeEnum({- values,- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,- ...processCreateParams(params)- });+var InterceptorManager_default = InterceptorManager;++// node_modules/axios/lib/defaults/transitional.js+var transitional_default = {+ silentJSONParsing: true,+ forcedJSONParsing: true,+ clarifyTimeoutError: false};-class ZodPromise extends ZodType {- unwrap() {- return this._def.type;+// node_modules/axios/lib/platform/node/index.js+import crypto2 from "crypto";++// node_modules/axios/lib/platform/node/classes/URLSearchParams.js+import url2 from "url";+var URLSearchParams_default = url2.URLSearchParams;++// node_modules/axios/lib/platform/node/index.js+var ALPHA = "abcdefghijklmnopqrstuvwxyz";+var DIGIT = "0123456789";+var ALPHABET = {+ DIGIT,+ ALPHA,+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT+};+var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {+ let str = "";+ const { length } = alphabet;+ const randomValues = new Uint32Array(size);+ crypto2.randomFillSync(randomValues);+ for (let i = 0;i < size; i++) {+ str += alphabet[randomValues[i] % length];+ }+ return str;+};+var node_default = {+ isNode: true,+ classes: {+ URLSearchParams: URLSearchParams_default,+ FormData: FormData_default,+ Blob: typeof Blob !== "undefined" && Blob || null+ },+ ALPHABET,+ generateString,+ protocols: ["http", "https", "file", "data"]+};++// node_modules/axios/lib/platform/common/utils.js+var exports_utils = {};+__export(exports_utils, {+ origin: () => origin,+ navigator: () => _navigator,+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,+ hasBrowserEnv: () => hasBrowserEnv+});+var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";+var _navigator = typeof navigator === "object" && navigator || undefined;+var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);+var hasStandardBrowserWebWorkerEnv = (() => {+ return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";+})();+var origin = hasBrowserEnv && window.location.href || "http://localhost";++// node_modules/axios/lib/platform/index.js+var platform_default = {+ ...exports_utils,+ ...node_default+};++// node_modules/axios/lib/helpers/toURLEncodedForm.js+function toURLEncodedForm(data, options) {+ return toFormData_default(data, new platform_default.classes.URLSearchParams, Object.assign({+ visitor: function(value, key, path2, helpers) {+ if (platform_default.isNode && utils_default.isBuffer(value)) {+ this.append(key, value.toString("base64"));+ return false;+ }+ return helpers.defaultVisitor.apply(this, arguments);+ }+ }, options));+}++// node_modules/axios/lib/helpers/formDataToJSON.js+function parsePropPath(name) {+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {+ return match[0] === "[]" ? "" : match[1] || match[0];+ });+}+function arrayToObject(arr) {+ const obj = {};+ const keys = Object.keys(arr);+ let i;+ const len = keys.length;+ let key;+ for (i = 0;i < len; i++) {+ key = keys[i];+ obj[key] = arr[key];+ }+ return obj;+}+function formDataToJSON(formData) {+ function buildPath(path2, value, target, index) {+ let name = path2[index++];+ if (name === "__proto__")+ return true;+ const isNumericKey = Number.isFinite(+name);+ const isLast = index >= path2.length;+ name = !name && utils_default.isArray(target) ? target.length : name;+ if (isLast) {+ if (utils_default.hasOwnProp(target, name)) {+ target[name] = [target[name], value];+ } else {+ target[name] = value;+ }+ return !isNumericKey;+ }+ if (!target[name] || !utils_default.isObject(target[name])) {+ target[name] = [];+ }+ const result = buildPath(path2, value, target[name], index);+ if (result && utils_default.isArray(target[name])) {+ target[name] = arrayToObject(target[name]);+ }+ return !isNumericKey;}- _parse(input) {- const { ctx } = this._processInputParams(input);- if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.promise,- received: ctx.parsedType- });- return INVALID;+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {+ const obj = {};+ utils_default.forEachEntry(formData, (name, value) => {+ buildPath(parsePropPath(name), value, obj, 0);+ });+ return obj;+ }+ return null;+}+var formDataToJSON_default = formDataToJSON;++// node_modules/axios/lib/defaults/index.js+function stringifySafely(rawValue, parser, encoder) {+ if (utils_default.isString(rawValue)) {+ try {+ (parser || JSON.parse)(rawValue);+ return utils_default.trim(rawValue);+ } catch (e2) {+ if (e2.name !== "SyntaxError") {+ throw e2;+ }}- const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);- return OK(promisified.then((data) => {- return this._def.type.parseAsync(data, {- path: ctx.path,- errorMap: ctx.common.contextualErrorMap- });- }));}+ return (encoder || JSON.stringify)(rawValue);}-ZodPromise.create = (schema, params) => {- return new ZodPromise({- type: schema,- typeName: ZodFirstPartyTypeKind.ZodPromise,- ...processCreateParams(params)+var defaults = {+ transitional: transitional_default,+ adapter: ["xhr", "http", "fetch"],+ transformRequest: [function transformRequest(data, headers) {+ const contentType = headers.getContentType() || "";+ const hasJSONContentType = contentType.indexOf("application/json") > -1;+ const isObjectPayload = utils_default.isObject(data);+ if (isObjectPayload && utils_default.isHTMLForm(data)) {+ data = new FormData(data);+ }+ const isFormData2 = utils_default.isFormData(data);+ if (isFormData2) {+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;+ }+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {+ return data;+ }+ if (utils_default.isArrayBufferView(data)) {+ return data.buffer;+ }+ if (utils_default.isURLSearchParams(data)) {+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);+ return data.toString();+ }+ let isFileList2;+ if (isObjectPayload) {+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {+ return toURLEncodedForm(data, this.formSerializer).toString();+ }+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {+ const _FormData = this.env && this.env.FormData;+ return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);+ }+ }+ if (isObjectPayload || hasJSONContentType) {+ headers.setContentType("application/json", false);+ return stringifySafely(data);+ }+ return data;+ }],+ transformResponse: [function transformResponse(data) {+ const transitional = this.transitional || defaults.transitional;+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;+ const JSONRequested = this.responseType === "json";+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {+ return data;+ }+ if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {+ const silentJSONParsing = transitional && transitional.silentJSONParsing;+ const strictJSONParsing = !silentJSONParsing && JSONRequested;+ try {+ return JSON.parse(data);+ } catch (e2) {+ if (strictJSONParsing) {+ if (e2.name === "SyntaxError") {+ throw AxiosError_default.from(e2, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);+ }+ throw e2;+ }+ }+ }+ return data;+ }],+ timeout: 0,+ xsrfCookieName: "XSRF-TOKEN",+ xsrfHeaderName: "X-XSRF-TOKEN",+ maxContentLength: -1,+ maxBodyLength: -1,+ env: {+ FormData: platform_default.classes.FormData,+ Blob: platform_default.classes.Blob+ },+ validateStatus: function validateStatus(status) {+ return status >= 200 && status < 300;+ },+ headers: {+ common: {+ Accept: "application/json, text/plain, */*",+ "Content-Type": undefined+ }+ }+};+utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {+ defaults.headers[method] = {};+});+var defaults_default = defaults;++// node_modules/axios/lib/helpers/parseHeaders.js+var ignoreDuplicateOf = utils_default.toObjectSet([+ "age",+ "authorization",+ "content-length",+ "content-type",+ "etag",+ "expires",+ "from",+ "host",+ "if-modified-since",+ "if-unmodified-since",+ "last-modified",+ "location",+ "max-forwards",+ "proxy-authorization",+ "referer",+ "retry-after",+ "user-agent"+]);+var parseHeaders_default = (rawHeaders) => {+ const parsed = {};+ let key;+ let val;+ let i;+ rawHeaders && rawHeaders.split(`+`).forEach(function parser(line) {+ i = line.indexOf(":");+ key = line.substring(0, i).trim().toLowerCase();+ val = line.substring(i + 1).trim();+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {+ return;+ }+ if (key === "set-cookie") {+ if (parsed[key]) {+ parsed[key].push(val);+ } else {+ parsed[key] = [val];+ }+ } else {+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;+ }});+ return parsed;};-class ZodEffects extends ZodType {- innerType() {- return this._def.schema;+// node_modules/axios/lib/core/AxiosHeaders.js+var $internals = Symbol("internals");+function normalizeHeader(header) {+ return header && String(header).trim().toLowerCase();+}+function normalizeValue(value) {+ if (value === false || value == null) {+ return value;}- sourceType() {- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema;+ return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);+}+function parseTokens(str) {+ const tokens = Object.create(null);+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;+ let match;+ while (match = tokensRE.exec(str)) {+ tokens[match[1]] = match[2];}- _parse(input) {- const { status, ctx } = this._processInputParams(input);- const effect = this._def.effect || null;- const checkCtx = {- addIssue: (arg) => {- addIssueToContext(ctx, arg);- if (arg.fatal) {- status.abort();- } else {- status.dirty();- }+ return tokens;+}+var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());+function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {+ if (utils_default.isFunction(filter2)) {+ return filter2.call(this, value, header);+ }+ if (isHeaderNameFilter) {+ value = header;+ }+ if (!utils_default.isString(value))+ return;+ if (utils_default.isString(filter2)) {+ return value.indexOf(filter2) !== -1;+ }+ if (utils_default.isRegExp(filter2)) {+ return filter2.test(value);+ }+}+function formatHeader(header) {+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w3, char, str) => {+ return char.toUpperCase() + str;+ });+}+function buildAccessors(obj, header) {+ const accessorName = utils_default.toCamelCase(" " + header);+ ["get", "set", "has"].forEach((methodName) => {+ Object.defineProperty(obj, methodName + accessorName, {+ value: function(arg1, arg2, arg3) {+ return this[methodName].call(this, header, arg1, arg2, arg3);},- get path() {- return ctx.path;+ configurable: true+ });+ });+}++class AxiosHeaders {+ constructor(headers) {+ headers && this.set(headers);+ }+ set(header, valueOrRewrite, rewrite) {+ const self2 = this;+ function setHeader(_value, _header, _rewrite) {+ const lHeader = normalizeHeader(_header);+ if (!lHeader) {+ throw new Error("header name must be a non-empty string");}- };- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);- if (effect.type === "preprocess") {- const processed = effect.transform(ctx.data, checkCtx);- if (ctx.common.async) {- return Promise.resolve(processed).then(async (processed2) => {- if (status.value === "aborted")- return INVALID;- const result = await this._def.schema._parseAsync({- data: processed2,- path: ctx.path,- parent: ctx- });- if (result.status === "aborted")- return INVALID;- if (result.status === "dirty")- return DIRTY(result.value);- if (status.value === "dirty")- return DIRTY(result.value);- return result;- });- } else {- if (status.value === "aborted")- return INVALID;- const result = this._def.schema._parseSync({- data: processed,- path: ctx.path,- parent: ctx- });- if (result.status === "aborted")- return INVALID;- if (result.status === "dirty")- return DIRTY(result.value);- if (status.value === "dirty")- return DIRTY(result.value);- return result;+ const key = utils_default.findKey(self2, lHeader);+ if (!key || self2[key] === undefined || _rewrite === true || _rewrite === undefined && self2[key] !== false) {+ self2[key || _header] = normalizeValue(_value);}}- if (effect.type === "refinement") {- const executeRefinement = (acc) => {- const result = effect.refinement(acc, checkCtx);- if (ctx.common.async) {- return Promise.resolve(result);+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {+ setHeaders(header, valueOrRewrite);+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {+ setHeaders(parseHeaders_default(header), valueOrRewrite);+ } else if (utils_default.isHeaders(header)) {+ for (const [key, value] of header.entries()) {+ setHeader(value, key, rewrite);+ }+ } else {+ header != null && setHeader(valueOrRewrite, header, rewrite);+ }+ return this;+ }+ get(header, parser) {+ header = normalizeHeader(header);+ if (header) {+ const key = utils_default.findKey(this, header);+ if (key) {+ const value = this[key];+ if (!parser) {+ return value;}- if (result instanceof Promise) {- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");+ if (parser === true) {+ return parseTokens(value);}- return acc;- };- if (ctx.common.async === false) {- const inner = this._def.schema._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- if (inner.status === "aborted")- return INVALID;- if (inner.status === "dirty")- status.dirty();- executeRefinement(inner.value);- return { status: status.value, value: inner.value };- } else {- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {- if (inner.status === "aborted")- return INVALID;- if (inner.status === "dirty")- status.dirty();- return executeRefinement(inner.value).then(() => {- return { status: status.value, value: inner.value };- });- });+ if (utils_default.isFunction(parser)) {+ return parser.call(this, value, key);+ }+ if (utils_default.isRegExp(parser)) {+ return parser.exec(value);+ }+ throw new TypeError("parser must be boolean|regexp|function");}}- if (effect.type === "transform") {- if (ctx.common.async === false) {- const base = this._def.schema._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- if (!isValid(base))- return base;- const result = effect.transform(base.value, checkCtx);- if (result instanceof Promise) {- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);+ }+ has(header, matcher) {+ header = normalizeHeader(header);+ if (header) {+ const key = utils_default.findKey(this, header);+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));+ }+ return false;+ }+ delete(header, matcher) {+ const self2 = this;+ let deleted = false;+ function deleteHeader(_header) {+ _header = normalizeHeader(_header);+ if (_header) {+ const key = utils_default.findKey(self2, _header);+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {+ delete self2[key];+ deleted = true;}- return { status: status.value, value: result };- } else {- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {- if (!isValid(base))- return base;- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));- });}}- util.assertNever(effect);+ if (utils_default.isArray(header)) {+ header.forEach(deleteHeader);+ } else {+ deleteHeader(header);+ }+ return deleted;}-}-ZodEffects.create = (schema, effect, params) => {- return new ZodEffects({- schema,- typeName: ZodFirstPartyTypeKind.ZodEffects,- effect,- ...processCreateParams(params)- });-};-ZodEffects.createWithPreprocess = (preprocess, schema, params) => {- return new ZodEffects({- schema,- effect: { type: "preprocess", transform: preprocess },- typeName: ZodFirstPartyTypeKind.ZodEffects,- ...processCreateParams(params)- });-};--class ZodOptional extends ZodType {- _parse(input) {- const parsedType = this._getType(input);- if (parsedType === ZodParsedType.undefined) {- return OK(undefined);+ clear(matcher) {+ const keys = Object.keys(this);+ let i = keys.length;+ let deleted = false;+ while (i--) {+ const key = keys[i];+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {+ delete this[key];+ deleted = true;+ }}- return this._def.innerType._parse(input);+ return deleted;}- unwrap() {- return this._def.innerType;+ normalize(format) {+ const self2 = this;+ const headers = {};+ utils_default.forEach(this, (value, header) => {+ const key = utils_default.findKey(headers, header);+ if (key) {+ self2[key] = normalizeValue(value);+ delete self2[header];+ return;+ }+ const normalized = format ? formatHeader(header) : String(header).trim();+ if (normalized !== header) {+ delete self2[header];+ }+ self2[normalized] = normalizeValue(value);+ headers[normalized] = true;+ });+ return this;+ }+ concat(...targets) {+ return this.constructor.concat(this, ...targets);+ }+ toJSON(asStrings) {+ const obj = Object.create(null);+ utils_default.forEach(this, (value, header) => {+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);+ });+ return obj;+ }+ [Symbol.iterator]() {+ return Object.entries(this.toJSON())[Symbol.iterator]();+ }+ toString() {+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`+`);+ }+ get [Symbol.toStringTag]() {+ return "AxiosHeaders";+ }+ static from(thing) {+ return thing instanceof this ? thing : new this(thing);+ }+ static concat(first, ...targets) {+ const computed = new this(first);+ targets.forEach((target) => computed.set(target));+ return computed;+ }+ static accessor(header) {+ const internals = this[$internals] = this[$internals] = {+ accessors: {}+ };+ const accessors = internals.accessors;+ const prototype3 = this.prototype;+ function defineAccessor(_header) {+ const lHeader = normalizeHeader(_header);+ if (!accessors[lHeader]) {+ buildAccessors(prototype3, _header);+ accessors[lHeader] = true;+ }+ }+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);+ return this;}}-ZodOptional.create = (type, params) => {- return new ZodOptional({- innerType: type,- typeName: ZodFirstPartyTypeKind.ZodOptional,- ...processCreateParams(params)+AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);+utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {+ let mapped = key[0].toUpperCase() + key.slice(1);+ return {+ get: () => value,+ set(headerValue) {+ this[mapped] = headerValue;+ }+ };+});+utils_default.freezeMethods(AxiosHeaders);+var AxiosHeaders_default = AxiosHeaders;++// node_modules/axios/lib/core/transformData.js+function transformData(fns, response) {+ const config = this || defaults_default;+ const context = response || config;+ const headers = AxiosHeaders_default.from(context.headers);+ let data = context.data;+ utils_default.forEach(fns, function transform(fn) {+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);});-};+ headers.normalize();+ return data;+}-class ZodNullable extends ZodType {- _parse(input) {- const parsedType = this._getType(input);- if (parsedType === ZodParsedType.null) {- return OK(null);- }- return this._def.innerType._parse(input);+// node_modules/axios/lib/cancel/isCancel.js+function isCancel(value) {+ return !!(value && value.__CANCEL__);+}++// node_modules/axios/lib/cancel/CanceledError.js+function CanceledError(message, config, request) {+ AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);+ this.name = "CanceledError";+}+utils_default.inherits(CanceledError, AxiosError_default, {+ __CANCEL__: true+});+var CanceledError_default = CanceledError;++// node_modules/axios/lib/core/settle.js+function settle(resolve, reject, response) {+ const validateStatus2 = response.config.validateStatus;+ if (!response.status || !validateStatus2 || validateStatus2(response.status)) {+ resolve(response);+ } else {+ reject(new AxiosError_default("Request failed with status code " + response.status, [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));}- unwrap() {- return this._def.innerType;+}++// node_modules/axios/lib/helpers/isAbsoluteURL.js+function isAbsoluteURL(url3) {+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url3);+}++// node_modules/axios/lib/helpers/combineURLs.js+function combineURLs(baseURL, relativeURL) {+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;+}++// node_modules/axios/lib/core/buildFullPath.js+function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {+ let isRelativeUrl = !isAbsoluteURL(requestedURL);+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {+ return combineURLs(baseURL, requestedURL);}+ return requestedURL;}-ZodNullable.create = (type, params) => {- return new ZodNullable({- innerType: type,- typeName: ZodFirstPartyTypeKind.ZodNullable,- ...processCreateParams(params)- });-};-class ZodDefault extends ZodType {- _parse(input) {- const { ctx } = this._processInputParams(input);- let data = ctx.data;- if (ctx.parsedType === ZodParsedType.undefined) {- data = this._def.defaultValue();+// node_modules/axios/lib/adapters/http.js+var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);+var import_follow_redirects = __toESM(require_follow_redirects(), 1);+import http2 from "http";+import https from "https";+import util3 from "util";+import zlib from "zlib";++// node_modules/axios/lib/env/data.js+var VERSION = "1.8.1";++// node_modules/axios/lib/helpers/parseProtocol.js+function parseProtocol(url3) {+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url3);+ return match && match[1] || "";+}++// node_modules/axios/lib/helpers/fromDataURI.js+var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;+function fromDataURI(uri, asBlob, options) {+ const _Blob = options && options.Blob || platform_default.classes.Blob;+ const protocol = parseProtocol(uri);+ if (asBlob === undefined && _Blob) {+ asBlob = true;+ }+ if (protocol === "data") {+ uri = protocol.length ? uri.slice(protocol.length + 1) : uri;+ const match = DATA_URL_PATTERN.exec(uri);+ if (!match) {+ throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);}- return this._def.innerType._parse({- data,- path: ctx.path,- parent: ctx- });- }- removeDefault() {- return this._def.innerType;+ const mime = match[1];+ const isBase64 = match[2];+ const body = match[3];+ const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");+ if (asBlob) {+ if (!_Blob) {+ throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);+ }+ return new _Blob([buffer], { type: mime });+ }+ return buffer;}+ throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);}-ZodDefault.create = (type, params) => {- return new ZodDefault({- innerType: type,- typeName: ZodFirstPartyTypeKind.ZodDefault,- defaultValue: typeof params.default === "function" ? params.default : () => params.default,- ...processCreateParams(params)- });-};-class ZodCatch extends ZodType {- _parse(input) {- const { ctx } = this._processInputParams(input);- const newCtx = {- ...ctx,- common: {- ...ctx.common,- issues: []- }- };- const result = this._def.innerType._parse({- data: newCtx.data,- path: newCtx.path,- parent: {- ...newCtx- }+// node_modules/axios/lib/adapters/http.js+import stream3 from "stream";++// node_modules/axios/lib/helpers/AxiosTransformStream.js+import stream from "stream";+var kInternals = Symbol("internals");++class AxiosTransformStream extends stream.Transform {+ constructor(options) {+ options = utils_default.toFlatObject(options, {+ maxRate: 0,+ chunkSize: 64 * 1024,+ minChunkSize: 100,+ timeWindow: 500,+ ticksRate: 2,+ samplesCount: 15+ }, null, (prop, source) => {+ return !utils_default.isUndefined(source[prop]);+ });+ super({+ readableHighWaterMark: options.chunkSize+ });+ const internals = this[kInternals] = {+ timeWindow: options.timeWindow,+ chunkSize: options.chunkSize,+ maxRate: options.maxRate,+ minChunkSize: options.minChunkSize,+ bytesSeen: 0,+ isCaptured: false,+ notifiedBytesLoaded: 0,+ ts: Date.now(),+ bytes: 0,+ onReadCallback: null+ };+ this.on("newListener", (event) => {+ if (event === "progress") {+ if (!internals.isCaptured) {+ internals.isCaptured = true;+ }+ }});- if (isAsync(result)) {- return result.then((result2) => {- return {- status: "valid",- value: result2.status === "valid" ? result2.value : this._def.catchValue({- get error() {- return new ZodError(newCtx.common.issues);- },- input: newCtx.data- })- };- });- } else {- return {- status: "valid",- value: result.status === "valid" ? result.value : this._def.catchValue({- get error() {- return new ZodError(newCtx.common.issues);- },- input: newCtx.data- })- };- }}- removeCatch() {- return this._def.innerType;+ _read(size) {+ const internals = this[kInternals];+ if (internals.onReadCallback) {+ internals.onReadCallback();+ }+ return super._read(size);+ }+ _transform(chunk, encoding, callback) {+ const internals = this[kInternals];+ const maxRate = internals.maxRate;+ const readableHighWaterMark = this.readableHighWaterMark;+ const timeWindow = internals.timeWindow;+ const divider = 1000 / timeWindow;+ const bytesThreshold = maxRate / divider;+ const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;+ const pushChunk = (_chunk, _callback) => {+ const bytes = Buffer.byteLength(_chunk);+ internals.bytesSeen += bytes;+ internals.bytes += bytes;+ internals.isCaptured && this.emit("progress", internals.bytesSeen);+ if (this.push(_chunk)) {+ process.nextTick(_callback);+ } else {+ internals.onReadCallback = () => {+ internals.onReadCallback = null;+ process.nextTick(_callback);+ };+ }+ };+ const transformChunk = (_chunk, _callback) => {+ const chunkSize = Buffer.byteLength(_chunk);+ let chunkRemainder = null;+ let maxChunkSize = readableHighWaterMark;+ let bytesLeft;+ let passed = 0;+ if (maxRate) {+ const now = Date.now();+ if (!internals.ts || (passed = now - internals.ts) >= timeWindow) {+ internals.ts = now;+ bytesLeft = bytesThreshold - internals.bytes;+ internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;+ passed = 0;+ }+ bytesLeft = bytesThreshold - internals.bytes;+ }+ if (maxRate) {+ if (bytesLeft <= 0) {+ return setTimeout(() => {+ _callback(null, _chunk);+ }, timeWindow - passed);+ }+ if (bytesLeft < maxChunkSize) {+ maxChunkSize = bytesLeft;+ }+ }+ if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {+ chunkRemainder = _chunk.subarray(maxChunkSize);+ _chunk = _chunk.subarray(0, maxChunkSize);+ }+ pushChunk(_chunk, chunkRemainder ? () => {+ process.nextTick(_callback, null, chunkRemainder);+ } : _callback);+ };+ transformChunk(chunk, function transformNextChunk(err, _chunk) {+ if (err) {+ return callback(err);+ }+ if (_chunk) {+ transformChunk(_chunk, transformNextChunk);+ } else {+ callback(null);+ }+ });}}-ZodCatch.create = (type, params) => {- return new ZodCatch({- innerType: type,- typeName: ZodFirstPartyTypeKind.ZodCatch,- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,- ...processCreateParams(params)- });+var AxiosTransformStream_default = AxiosTransformStream;++// node_modules/axios/lib/adapters/http.js+import { EventEmitter as EventEmitter2 } from "events";++// node_modules/axios/lib/helpers/formDataToStream.js+import util2 from "util";+import { Readable } from "stream";++// node_modules/axios/lib/helpers/readBlob.js+var { asyncIterator } = Symbol;+var readBlob = async function* (blob) {+ if (blob.stream) {+ yield* blob.stream();+ } else if (blob.arrayBuffer) {+ yield await blob.arrayBuffer();+ } else if (blob[asyncIterator]) {+ yield* blob[asyncIterator]();+ } else {+ yield blob;+ }};+var readBlob_default = readBlob;-class ZodNaN extends ZodType {- _parse(input) {- const parsedType = this._getType(input);- if (parsedType !== ZodParsedType.nan) {- const ctx = this._getOrReturnCtx(input);- addIssueToContext(ctx, {- code: ZodIssueCode.invalid_type,- expected: ZodParsedType.nan,- received: ctx.parsedType- });- return INVALID;+// node_modules/axios/lib/helpers/formDataToStream.js+var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";+var textEncoder = typeof TextEncoder === "function" ? new TextEncoder : new util2.TextEncoder;+var CRLF = `\r+`;+var CRLF_BYTES = textEncoder.encode(CRLF);+var CRLF_BYTES_COUNT = 2;++class FormDataPart {+ constructor(name, value) {+ const { escapeName } = this.constructor;+ const isStringValue = utils_default.isString(value);+ let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;+ if (isStringValue) {+ value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));+ } else {+ headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;}- return { status: "valid", value: input.data };+ this.headers = textEncoder.encode(headers + CRLF);+ this.contentLength = isStringValue ? value.byteLength : value.size;+ this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;+ this.name = name;+ this.value = value;+ }+ async* encode() {+ yield this.headers;+ const { value } = this;+ if (utils_default.isTypedArray(value)) {+ yield value;+ } else {+ yield* readBlob_default(value);+ }+ yield CRLF_BYTES;+ }+ static escapeName(name) {+ return String(name).replace(/[\r\n"]/g, (match) => ({+ "\r": "%0D",+ "\n": "%0A",+ '"': "%22"+ })[match]);}}-ZodNaN.create = (params) => {- return new ZodNaN({- typeName: ZodFirstPartyTypeKind.ZodNaN,- ...processCreateParams(params)+var formDataToStream = (form, headersHandler, options) => {+ const {+ tag = "form-data-boundary",+ size = 25,+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)+ } = options || {};+ if (!utils_default.isFormData(form)) {+ throw TypeError("FormData instance required");+ }+ if (boundary.length < 1 || boundary.length > 70) {+ throw Error("boundary must be 10-70 characters long");+ }+ const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);+ const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF + CRLF);+ let contentLength = footerBytes.byteLength;+ const parts = Array.from(form.entries()).map(([name, value]) => {+ const part = new FormDataPart(name, value);+ contentLength += part.size;+ return part;});+ contentLength += boundaryBytes.byteLength * parts.length;+ contentLength = utils_default.toFiniteNumber(contentLength);+ const computedHeaders = {+ "Content-Type": `multipart/form-data; boundary=${boundary}`+ };+ if (Number.isFinite(contentLength)) {+ computedHeaders["Content-Length"] = contentLength;+ }+ headersHandler && headersHandler(computedHeaders);+ return Readable.from(async function* () {+ for (const part of parts) {+ yield boundaryBytes;+ yield* part.encode();+ }+ yield footerBytes;+ }());};-var BRAND = Symbol("zod_brand");+var formDataToStream_default = formDataToStream;-class ZodBranded extends ZodType {- _parse(input) {- const { ctx } = this._processInputParams(input);- const data = ctx.data;- return this._def.type._parse({- data,- path: ctx.path,- parent: ctx- });+// node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js+import stream2 from "stream";++class ZlibHeaderTransformStream extends stream2.Transform {+ __transform(chunk, encoding, callback) {+ this.push(chunk);+ callback();}- unwrap() {- return this._def.type;+ _transform(chunk, encoding, callback) {+ if (chunk.length !== 0) {+ this._transform = this.__transform;+ if (chunk[0] !== 120) {+ const header = Buffer.alloc(2);+ header[0] = 120;+ header[1] = 156;+ this.push(header, encoding);+ }+ }+ this.__transform(chunk, encoding, callback);}}+var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;-class ZodPipeline extends ZodType {- _parse(input) {- const { status, ctx } = this._processInputParams(input);- if (ctx.common.async) {- const handleAsync = async () => {- const inResult = await this._def.in._parseAsync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- if (inResult.status === "aborted")- return INVALID;- if (inResult.status === "dirty") {- status.dirty();- return DIRTY(inResult.value);- } else {- return this._def.out._parseAsync({- data: inResult.value,- path: ctx.path,- parent: ctx- });- }- };- return handleAsync();+// node_modules/axios/lib/helpers/callbackify.js+var callbackify = (fn, reducer) => {+ return utils_default.isAsyncFn(fn) ? function(...args) {+ const cb = args.pop();+ fn.apply(this, args).then((value) => {+ try {+ reducer ? cb(null, ...reducer(value)) : cb(null, value);+ } catch (err) {+ cb(err);+ }+ }, cb);+ } : fn;+};+var callbackify_default = callbackify;++// node_modules/axios/lib/helpers/speedometer.js+function speedometer(samplesCount, min) {+ samplesCount = samplesCount || 10;+ const bytes = new Array(samplesCount);+ const timestamps = new Array(samplesCount);+ let head = 0;+ let tail = 0;+ let firstSampleTS;+ min = min !== undefined ? min : 1000;+ return function push(chunkLength) {+ const now = Date.now();+ const startedAt = timestamps[tail];+ if (!firstSampleTS) {+ firstSampleTS = now;+ }+ bytes[head] = chunkLength;+ timestamps[head] = now;+ let i = tail;+ let bytesCount = 0;+ while (i !== head) {+ bytesCount += bytes[i++];+ i = i % samplesCount;+ }+ head = (head + 1) % samplesCount;+ if (head === tail) {+ tail = (tail + 1) % samplesCount;+ }+ if (now - firstSampleTS < min) {+ return;+ }+ const passed = startedAt && now - startedAt;+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;+ };+}+var speedometer_default = speedometer;++// node_modules/axios/lib/helpers/throttle.js+function throttle(fn, freq) {+ let timestamp = 0;+ let threshold = 1000 / freq;+ let lastArgs;+ let timer;+ const invoke = (args, now = Date.now()) => {+ timestamp = now;+ lastArgs = null;+ if (timer) {+ clearTimeout(timer);+ timer = null;+ }+ fn.apply(null, args);+ };+ const throttled = (...args) => {+ const now = Date.now();+ const passed = now - timestamp;+ if (passed >= threshold) {+ invoke(args, now);} else {- const inResult = this._def.in._parseSync({- data: ctx.data,- path: ctx.path,- parent: ctx- });- if (inResult.status === "aborted")- return INVALID;- if (inResult.status === "dirty") {- status.dirty();- return {- status: "dirty",- value: inResult.value- };- } else {- return this._def.out._parseSync({- data: inResult.value,- path: ctx.path,- parent: ctx- });+ lastArgs = args;+ if (!timer) {+ timer = setTimeout(() => {+ timer = null;+ invoke(lastArgs);+ }, threshold - passed);}}+ };+ const flush = () => lastArgs && invoke(lastArgs);+ return [throttled, flush];+}+var throttle_default = throttle;++// node_modules/axios/lib/helpers/progressEventReducer.js+var progressEventReducer = (listener, isDownloadStream, freq = 3) => {+ let bytesNotified = 0;+ const _speedometer = speedometer_default(50, 250);+ return throttle_default((e2) => {+ const loaded = e2.loaded;+ const total = e2.lengthComputable ? e2.total : undefined;+ const progressBytes = loaded - bytesNotified;+ const rate = _speedometer(progressBytes);+ const inRange = loaded <= total;+ bytesNotified = loaded;+ const data = {+ loaded,+ total,+ progress: total ? loaded / total : undefined,+ bytes: progressBytes,+ rate: rate ? rate : undefined,+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,+ event: e2,+ lengthComputable: total != null,+ [isDownloadStream ? "download" : "upload"]: true+ };+ listener(data);+ }, freq);+};+var progressEventDecorator = (total, throttled) => {+ const lengthComputable = total != null;+ return [(loaded) => throttled[0]({+ lengthComputable,+ total,+ loaded+ }), throttled[1]];+};+var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));++// node_modules/axios/lib/adapters/http.js+var zlibOptions = {+ flush: zlib.constants.Z_SYNC_FLUSH,+ finishFlush: zlib.constants.Z_SYNC_FLUSH+};+var brotliOptions = {+ flush: zlib.constants.BROTLI_OPERATION_FLUSH,+ finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH+};+var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);+var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;+var isHttps = /https:?/;+var supportedProtocols = platform_default.protocols.map((protocol) => {+ return protocol + ":";+});+var flushOnFinish = (stream4, [throttled, flush]) => {+ stream4.on("end", flush).on("error", flush);+ return throttled;+};+function dispatchBeforeRedirect(options, responseDetails) {+ if (options.beforeRedirects.proxy) {+ options.beforeRedirects.proxy(options);}- static create(a, b2) {- return new ZodPipeline({- in: a,- out: b2,- typeName: ZodFirstPartyTypeKind.ZodPipeline- });+ if (options.beforeRedirects.config) {+ options.beforeRedirects.config(options, responseDetails);}}--class ZodReadonly extends ZodType {- _parse(input) {- const result = this._def.innerType._parse(input);- const freeze = (data) => {- if (isValid(data)) {- data.value = Object.freeze(data.value);- }- return data;- };- return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);+function setProxy(options, configProxy, location) {+ let proxy = configProxy;+ if (!proxy && proxy !== false) {+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);+ if (proxyUrl) {+ proxy = new URL(proxyUrl);+ }}- unwrap() {- return this._def.innerType;+ if (proxy) {+ if (proxy.username) {+ proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");+ }+ if (proxy.auth) {+ if (proxy.auth.username || proxy.auth.password) {+ proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");+ }+ const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");+ options.headers["Proxy-Authorization"] = "Basic " + base64;+ }+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");+ const proxyHost = proxy.hostname || proxy.host;+ options.hostname = proxyHost;+ options.host = proxyHost;+ options.port = proxy.port;+ options.path = location;+ if (proxy.protocol) {+ options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;+ }}+ options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {+ setProxy(redirectOptions, configProxy, redirectOptions.href);+ };}-ZodReadonly.create = (type, params) => {- return new ZodReadonly({- innerType: type,- typeName: ZodFirstPartyTypeKind.ZodReadonly,- ...processCreateParams(params)+var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";+var wrapAsync = (asyncExecutor) => {+ return new Promise((resolve, reject) => {+ let onDone;+ let isDone;+ const done = (value, isRejected) => {+ if (isDone)+ return;+ isDone = true;+ onDone && onDone(value, isRejected);+ };+ const _resolve = (value) => {+ done(value);+ resolve(value);+ };+ const _reject = (reason) => {+ done(reason, true);+ reject(reason);+ };+ asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);});};-function custom(check, params = {}, fatal) {- if (check)- return ZodAny.create().superRefine((data, ctx) => {- var _a, _b;- if (!check(data)) {- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;- const _fatal = (_b = (_a = p.fatal) !== null && _a !== undefined ? _a : fatal) !== null && _b !== undefined ? _b : true;- const p2 = typeof p === "string" ? { message: p } : p;- ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });+var resolveFamily = ({ address, family }) => {+ if (!utils_default.isString(address)) {+ throw TypeError("address must be a string");+ }+ return {+ address,+ family: family || (address.indexOf(".") < 0 ? 6 : 4)+ };+};+var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });+var http_default = isHttpAdapterSupported && function httpAdapter(config) {+ return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {+ let { data, lookup, family } = config;+ const { responseType, responseEncoding } = config;+ const method = config.method.toUpperCase();+ let isDone;+ let rejected = false;+ let req;+ if (lookup) {+ const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);+ lookup = (hostname, opt, cb) => {+ _lookup(hostname, opt, (err, arg0, arg1) => {+ if (err) {+ return cb(err);+ }+ const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);+ });+ };+ }+ const emitter = new EventEmitter2;+ const onFinished = () => {+ if (config.cancelToken) {+ config.cancelToken.unsubscribe(abort);+ }+ if (config.signal) {+ config.signal.removeEventListener("abort", abort);+ }+ emitter.removeAllListeners();+ };+ onDone((value, isRejected) => {+ isDone = true;+ if (isRejected) {+ rejected = true;+ onFinished();}});- return ZodAny.create();-}-var late = {- object: ZodObject.lazycreate-};-var ZodFirstPartyTypeKind;-(function(ZodFirstPartyTypeKind2) {- ZodFirstPartyTypeKind2["ZodString"] = "ZodString";- ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";- ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";- ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";- ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";- ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";- ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";- ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";- ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";- ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";- ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";- ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";- ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";- ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";- ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";- ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";- ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";- ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";- ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";- ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";- ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";- ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";- ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";- ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";- ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";- ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";- ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";- ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";- ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";- ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";- ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";- ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";- ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";- ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";- ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";- ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";-})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));-var instanceOfType = (cls, params = {- message: `Input not instance of ${cls.name}`-}) => custom((data) => data instanceof cls, params);-var stringType = ZodString.create;-var numberType = ZodNumber.create;-var nanType = ZodNaN.create;-var bigIntType = ZodBigInt.create;-var booleanType = ZodBoolean.create;-var dateType = ZodDate.create;-var symbolType = ZodSymbol.create;-var undefinedType = ZodUndefined.create;-var nullType = ZodNull.create;-var anyType = ZodAny.create;-var unknownType = ZodUnknown.create;-var neverType = ZodNever.create;-var voidType = ZodVoid.create;-var arrayType = ZodArray.create;-var objectType = ZodObject.create;-var strictObjectType = ZodObject.strictCreate;-var unionType = ZodUnion.create;-var discriminatedUnionType = ZodDiscriminatedUnion.create;-var intersectionType = ZodIntersection.create;-var tupleType = ZodTuple.create;-var recordType = ZodRecord.create;-var mapType = ZodMap.create;-var setType = ZodSet.create;-var functionType = ZodFunction.create;-var lazyType = ZodLazy.create;-var literalType = ZodLiteral.create;-var enumType = ZodEnum.create;-var nativeEnumType = ZodNativeEnum.create;-var promiseType = ZodPromise.create;-var effectsType = ZodEffects.create;-var optionalType = ZodOptional.create;-var nullableType = ZodNullable.create;-var preprocessType = ZodEffects.createWithPreprocess;-var pipelineType = ZodPipeline.create;-var ostring = () => stringType().optional();-var onumber = () => numberType().optional();-var oboolean = () => booleanType().optional();-var coerce = {- string: (arg) => ZodString.create({ ...arg, coerce: true }),- number: (arg) => ZodNumber.create({ ...arg, coerce: true }),- boolean: (arg) => ZodBoolean.create({- ...arg,- coerce: true- }),- bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),- date: (arg) => ZodDate.create({ ...arg, coerce: true })+ function abort(reason) {+ emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);+ }+ emitter.once("abort", reject);+ if (config.cancelToken || config.signal) {+ config.cancelToken && config.cancelToken.subscribe(abort);+ if (config.signal) {+ config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);+ }+ }+ const fullPath = buildFullPath(config.baseURL, config.url);+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : undefined);+ const protocol = parsed.protocol || supportedProtocols[0];+ if (protocol === "data:") {+ let convertedData;+ if (method !== "GET") {+ return settle(resolve, reject, {+ status: 405,+ statusText: "method not allowed",+ headers: {},+ config+ });+ }+ try {+ convertedData = fromDataURI(config.url, responseType === "blob", {+ Blob: config.env && config.env.Blob+ });+ } catch (err) {+ throw AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config);+ }+ if (responseType === "text") {+ convertedData = convertedData.toString(responseEncoding);+ if (!responseEncoding || responseEncoding === "utf8") {+ convertedData = utils_default.stripBOM(convertedData);+ }+ } else if (responseType === "stream") {+ convertedData = stream3.Readable.from(convertedData);+ }+ return settle(resolve, reject, {+ data: convertedData,+ status: 200,+ statusText: "OK",+ headers: new AxiosHeaders_default,+ config+ });+ }+ if (supportedProtocols.indexOf(protocol) === -1) {+ return reject(new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config));+ }+ const headers = AxiosHeaders_default.from(config.headers).normalize();+ headers.set("User-Agent", "axios/" + VERSION, false);+ const { onUploadProgress, onDownloadProgress } = config;+ const maxRate = config.maxRate;+ let maxUploadRate = undefined;+ let maxDownloadRate = undefined;+ if (utils_default.isSpecCompliantForm(data)) {+ const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);+ data = formDataToStream_default(data, (formHeaders) => {+ headers.set(formHeaders);+ }, {+ tag: `axios-${VERSION}-boundary`,+ boundary: userBoundary && userBoundary[1] || undefined+ });+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {+ headers.set(data.getHeaders());+ if (!headers.hasContentLength()) {+ try {+ const knownLength = await util3.promisify(data.getLength).call(data);+ Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);+ } catch (e2) {+ }+ }+ } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {+ data.size && headers.setContentType(data.type || "application/octet-stream");+ headers.setContentLength(data.size || 0);+ data = stream3.Readable.from(readBlob_default(data));+ } else if (data && !utils_default.isStream(data)) {+ if (Buffer.isBuffer(data)) {+ } else if (utils_default.isArrayBuffer(data)) {+ data = Buffer.from(new Uint8Array(data));+ } else if (utils_default.isString(data)) {+ data = Buffer.from(data, "utf-8");+ } else {+ return reject(new AxiosError_default("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError_default.ERR_BAD_REQUEST, config));+ }+ headers.setContentLength(data.length, false);+ if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {+ return reject(new AxiosError_default("Request body larger than maxBodyLength limit", AxiosError_default.ERR_BAD_REQUEST, config));+ }+ }+ const contentLength = utils_default.toFiniteNumber(headers.getContentLength());+ if (utils_default.isArray(maxRate)) {+ maxUploadRate = maxRate[0];+ maxDownloadRate = maxRate[1];+ } else {+ maxUploadRate = maxDownloadRate = maxRate;+ }+ if (data && (onUploadProgress || maxUploadRate)) {+ if (!utils_default.isStream(data)) {+ data = stream3.Readable.from(data, { objectMode: false });+ }+ data = stream3.pipeline([data, new AxiosTransformStream_default({+ maxRate: utils_default.toFiniteNumber(maxUploadRate)+ })], utils_default.noop);+ onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));+ }+ let auth = undefined;+ if (config.auth) {+ const username = config.auth.username || "";+ const password = config.auth.password || "";+ auth = username + ":" + password;+ }+ if (!auth && parsed.username) {+ const urlUsername = parsed.username;+ const urlPassword = parsed.password;+ auth = urlUsername + ":" + urlPassword;+ }+ auth && headers.delete("authorization");+ let path2;+ try {+ path2 = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");+ } catch (err) {+ const customErr = new Error(err.message);+ customErr.config = config;+ customErr.url = config.url;+ customErr.exists = true;+ return reject(customErr);+ }+ headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);+ const options = {+ path: path2,+ method,+ headers: headers.toJSON(),+ agents: { http: config.httpAgent, https: config.httpsAgent },+ auth,+ protocol,+ family,+ beforeRedirect: dispatchBeforeRedirect,+ beforeRedirects: {}+ };+ !utils_default.isUndefined(lookup) && (options.lookup = lookup);+ if (config.socketPath) {+ options.socketPath = config.socketPath;+ } else {+ options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;+ options.port = parsed.port;+ setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);+ }+ let transport;+ const isHttpsRequest = isHttps.test(options.protocol);+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;+ if (config.transport) {+ transport = config.transport;+ } else if (config.maxRedirects === 0) {+ transport = isHttpsRequest ? https : http2;+ } else {+ if (config.maxRedirects) {+ options.maxRedirects = config.maxRedirects;+ }+ if (config.beforeRedirect) {+ options.beforeRedirects.config = config.beforeRedirect;+ }+ transport = isHttpsRequest ? httpsFollow : httpFollow;+ }+ if (config.maxBodyLength > -1) {+ options.maxBodyLength = config.maxBodyLength;+ } else {+ options.maxBodyLength = Infinity;+ }+ if (config.insecureHTTPParser) {+ options.insecureHTTPParser = config.insecureHTTPParser;+ }+ req = transport.request(options, function handleResponse(res) {+ if (req.destroyed)+ return;+ const streams = [res];+ const responseLength = +res.headers["content-length"];+ if (onDownloadProgress || maxDownloadRate) {+ const transformStream = new AxiosTransformStream_default({+ maxRate: utils_default.toFiniteNumber(maxDownloadRate)+ });+ onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));+ streams.push(transformStream);+ }+ let responseStream = res;+ const lastRequest = res.req || req;+ if (config.decompress !== false && res.headers["content-encoding"]) {+ if (method === "HEAD" || res.statusCode === 204) {+ delete res.headers["content-encoding"];+ }+ switch ((res.headers["content-encoding"] || "").toLowerCase()) {+ case "gzip":+ case "x-gzip":+ case "compress":+ case "x-compress":+ streams.push(zlib.createUnzip(zlibOptions));+ delete res.headers["content-encoding"];+ break;+ case "deflate":+ streams.push(new ZlibHeaderTransformStream_default);+ streams.push(zlib.createUnzip(zlibOptions));+ delete res.headers["content-encoding"];+ break;+ case "br":+ if (isBrotliSupported) {+ streams.push(zlib.createBrotliDecompress(brotliOptions));+ delete res.headers["content-encoding"];+ }+ }+ }+ responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];+ const offListeners = stream3.finished(responseStream, () => {+ offListeners();+ onFinished();+ });+ const response = {+ status: res.statusCode,+ statusText: res.statusMessage,+ headers: new AxiosHeaders_default(res.headers),+ config,+ request: lastRequest+ };+ if (responseType === "stream") {+ response.data = responseStream;+ settle(resolve, reject, response);+ } else {+ const responseBuffer = [];+ let totalResponseBytes = 0;+ responseStream.on("data", function handleStreamData(chunk) {+ responseBuffer.push(chunk);+ totalResponseBytes += chunk.length;+ if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {+ rejected = true;+ responseStream.destroy();+ reject(new AxiosError_default("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest));+ }+ });+ responseStream.on("aborted", function handlerStreamAborted() {+ if (rejected) {+ return;+ }+ const err = new AxiosError_default("stream has been aborted", AxiosError_default.ERR_BAD_RESPONSE, config, lastRequest);+ responseStream.destroy(err);+ reject(err);+ });+ responseStream.on("error", function handleStreamError(err) {+ if (req.destroyed)+ return;+ reject(AxiosError_default.from(err, null, config, lastRequest));+ });+ responseStream.on("end", function handleStreamEnd() {+ try {+ let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);+ if (responseType !== "arraybuffer") {+ responseData = responseData.toString(responseEncoding);+ if (!responseEncoding || responseEncoding === "utf8") {+ responseData = utils_default.stripBOM(responseData);+ }+ }+ response.data = responseData;+ } catch (err) {+ return reject(AxiosError_default.from(err, null, config, response.request, response));+ }+ settle(resolve, reject, response);+ });+ }+ emitter.once("abort", (err) => {+ if (!responseStream.destroyed) {+ responseStream.emit("error", err);+ responseStream.destroy();+ }+ });+ });+ emitter.once("abort", (err) => {+ reject(err);+ req.destroy(err);+ });+ req.on("error", function handleRequestError(err) {+ reject(AxiosError_default.from(err, null, config, req));+ });+ req.on("socket", function handleRequestSocket(socket) {+ socket.setKeepAlive(true, 1000 * 60);+ });+ if (config.timeout) {+ const timeout = parseInt(config.timeout, 10);+ if (Number.isNaN(timeout)) {+ reject(new AxiosError_default("error trying to parse `config.timeout` to int", AxiosError_default.ERR_BAD_OPTION_VALUE, config, req));+ return;+ }+ req.setTimeout(timeout, function handleRequestTimeout() {+ if (isDone)+ return;+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";+ const transitional = config.transitional || transitional_default;+ if (config.timeoutErrorMessage) {+ timeoutErrorMessage = config.timeoutErrorMessage;+ }+ reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, req));+ abort();+ });+ }+ if (utils_default.isStream(data)) {+ let ended = false;+ let errored = false;+ data.on("end", () => {+ ended = true;+ });+ data.once("error", (err) => {+ errored = true;+ req.destroy(err);+ });+ data.on("close", () => {+ if (!ended && !errored) {+ abort(new CanceledError_default("Request stream has been aborted", config, req));+ }+ });+ data.pipe(req);+ } else {+ req.end(data);+ }+ });};-var NEVER = INVALID;-var z2 = /* @__PURE__ */ Object.freeze({- __proto__: null,- defaultErrorMap: errorMap,- setErrorMap,- getErrorMap,- makeIssue,- EMPTY_PATH,- addIssueToContext,- ParseStatus,- INVALID,- DIRTY,- OK,- isAborted,- isDirty,- isValid,- isAsync,- get util() {- return util;++// node_modules/axios/lib/helpers/isURLSameOrigin.js+var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url3) => {+ url3 = new URL(url3, platform_default.origin);+ return origin2.protocol === url3.protocol && origin2.host === url3.host && (isMSIE || origin2.port === url3.port);+})(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;++// node_modules/axios/lib/helpers/cookies.js+var cookies_default = platform_default.hasStandardBrowserEnv ? {+ write(name, value, expires, path2, domain, secure) {+ const cookie = [name + "=" + encodeURIComponent(value)];+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());+ utils_default.isString(path2) && cookie.push("path=" + path2);+ utils_default.isString(domain) && cookie.push("domain=" + domain);+ secure === true && cookie.push("secure");+ document.cookie = cookie.join("; ");},- get objectUtil() {- return objectUtil;+ read(name) {+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));+ return match ? decodeURIComponent(match[3]) : null;},- ZodParsedType,- getParsedType,- ZodType,- datetimeRegex,- ZodString,- ZodNumber,- ZodBigInt,- ZodBoolean,- ZodDate,- ZodSymbol,- ZodUndefined,- ZodNull,- ZodAny,- ZodUnknown,- ZodNever,- ZodVoid,- ZodArray,- ZodObject,- ZodUnion,- ZodDiscriminatedUnion,- ZodIntersection,- ZodTuple,- ZodRecord,- ZodMap,- ZodSet,- ZodFunction,- ZodLazy,- ZodLiteral,- ZodEnum,- ZodNativeEnum,- ZodPromise,- ZodEffects,- ZodTransformer: ZodEffects,- ZodOptional,- ZodNullable,- ZodDefault,- ZodCatch,- ZodNaN,- BRAND,- ZodBranded,- ZodPipeline,- ZodReadonly,- custom,- Schema: ZodType,- ZodSchema: ZodType,- late,- get ZodFirstPartyTypeKind() {- return ZodFirstPartyTypeKind;+ remove(name) {+ this.write(name, "", Date.now() - 86400000);+ }+} : {+ write() {},- coerce,- any: anyType,- array: arrayType,- bigint: bigIntType,- boolean: booleanType,- date: dateType,- discriminatedUnion: discriminatedUnionType,- effect: effectsType,- enum: enumType,- function: functionType,- instanceof: instanceOfType,- intersection: intersectionType,- lazy: lazyType,- literal: literalType,- map: mapType,- nan: nanType,- nativeEnum: nativeEnumType,- never: neverType,- null: nullType,- nullable: nullableType,- number: numberType,- object: objectType,- oboolean,- onumber,- optional: optionalType,- ostring,- pipeline: pipelineType,- preprocess: preprocessType,- promise: promiseType,- record: recordType,- set: setType,- strictObject: strictObjectType,- string: stringType,- symbol: symbolType,- transformer: effectsType,- tuple: tupleType,- undefined: undefinedType,- union: unionType,- unknown: unknownType,- void: voidType,- NEVER,- ZodIssueCode,- quotelessJson,- ZodError-});+ read() {+ return null;+ },+ remove() {+ }+};++// node_modules/axios/lib/core/mergeConfig.js+var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;+function mergeConfig(config1, config2) {+ config2 = config2 || {};+ const config = {};+ function getMergedValue(target, source, prop, caseless) {+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {+ return utils_default.merge.call({ caseless }, target, source);+ } else if (utils_default.isPlainObject(source)) {+ return utils_default.merge({}, source);+ } else if (utils_default.isArray(source)) {+ return source.slice();+ }+ return source;+ }+ function mergeDeepProperties(a, b2, prop, caseless) {+ if (!utils_default.isUndefined(b2)) {+ return getMergedValue(a, b2, prop, caseless);+ } else if (!utils_default.isUndefined(a)) {+ return getMergedValue(undefined, a, prop, caseless);+ }+ }+ function valueFromConfig2(a, b2) {+ if (!utils_default.isUndefined(b2)) {+ return getMergedValue(undefined, b2);+ }+ }+ function defaultToConfig2(a, b2) {+ if (!utils_default.isUndefined(b2)) {+ return getMergedValue(undefined, b2);+ } else if (!utils_default.isUndefined(a)) {+ return getMergedValue(undefined, a);+ }+ }+ function mergeDirectKeys(a, b2, prop) {+ if (prop in config2) {+ return getMergedValue(a, b2);+ } else if (prop in config1) {+ return getMergedValue(undefined, a);+ }+ }+ const mergeMap = {+ url: valueFromConfig2,+ method: valueFromConfig2,+ data: valueFromConfig2,+ baseURL: defaultToConfig2,+ transformRequest: defaultToConfig2,+ transformResponse: defaultToConfig2,+ paramsSerializer: defaultToConfig2,+ timeout: defaultToConfig2,+ timeoutMessage: defaultToConfig2,+ withCredentials: defaultToConfig2,+ withXSRFToken: defaultToConfig2,+ adapter: defaultToConfig2,+ responseType: defaultToConfig2,+ xsrfCookieName: defaultToConfig2,+ xsrfHeaderName: defaultToConfig2,+ onUploadProgress: defaultToConfig2,+ onDownloadProgress: defaultToConfig2,+ decompress: defaultToConfig2,+ maxContentLength: defaultToConfig2,+ maxBodyLength: defaultToConfig2,+ beforeRedirect: defaultToConfig2,+ transport: defaultToConfig2,+ httpAgent: defaultToConfig2,+ httpsAgent: defaultToConfig2,+ cancelToken: defaultToConfig2,+ socketPath: defaultToConfig2,+ responseEncoding: defaultToConfig2,+ validateStatus: mergeDirectKeys,+ headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)+ };+ utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {+ const merge2 = mergeMap[prop] || mergeDeepProperties;+ const configValue = merge2(config1[prop], config2[prop], prop);+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);+ });+ return config;+}++// node_modules/axios/lib/helpers/resolveConfig.js+var resolveConfig_default = (config) => {+ const newConfig = mergeConfig({}, config);+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;+ newConfig.headers = headers = AxiosHeaders_default.from(headers);+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);+ if (auth) {+ headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));+ }+ let contentType;+ if (utils_default.isFormData(data)) {+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {+ headers.setContentType(undefined);+ } else if ((contentType = headers.getContentType()) !== false) {+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];+ headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));+ }+ }+ if (platform_default.hasStandardBrowserEnv) {+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);+ if (xsrfValue) {+ headers.set(xsrfHeaderName, xsrfValue);+ }+ }+ }+ return newConfig;+};++// node_modules/axios/lib/adapters/xhr.js+var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";+var xhr_default = isXHRAdapterSupported && function(config) {+ return new Promise(function dispatchXhrRequest(resolve, reject) {+ const _config = resolveConfig_default(config);+ let requestData = _config.data;+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();+ let { responseType, onUploadProgress, onDownloadProgress } = _config;+ let onCanceled;+ let uploadThrottled, downloadThrottled;+ let flushUpload, flushDownload;+ function done() {+ flushUpload && flushUpload();+ flushDownload && flushDownload();+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);+ }+ let request = new XMLHttpRequest;+ request.open(_config.method.toUpperCase(), _config.url, true);+ request.timeout = _config.timeout;+ function onloadend() {+ if (!request) {+ return;+ }+ const responseHeaders = AxiosHeaders_default.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());+ const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;+ const response = {+ data: responseData,+ status: request.status,+ statusText: request.statusText,+ headers: responseHeaders,+ config,+ request+ };+ settle(function _resolve(value) {+ resolve(value);+ done();+ }, function _reject(err) {+ reject(err);+ done();+ }, response);+ request = null;+ }+ if ("onloadend" in request) {+ request.onloadend = onloadend;+ } else {+ request.onreadystatechange = function handleLoad() {+ if (!request || request.readyState !== 4) {+ return;+ }+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {+ return;+ }+ setTimeout(onloadend);+ };+ }+ request.onabort = function handleAbort() {+ if (!request) {+ return;+ }+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));+ request = null;+ };+ request.onerror = function handleError() {+ reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request));+ request = null;+ };+ request.ontimeout = function handleTimeout() {+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";+ const transitional = _config.transitional || transitional_default;+ if (_config.timeoutErrorMessage) {+ timeoutErrorMessage = _config.timeoutErrorMessage;+ }+ reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config, request));+ request = null;+ };+ requestData === undefined && requestHeaders.setContentType(null);+ if ("setRequestHeader" in request) {+ utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {+ request.setRequestHeader(key, val);+ });+ }+ if (!utils_default.isUndefined(_config.withCredentials)) {+ request.withCredentials = !!_config.withCredentials;+ }+ if (responseType && responseType !== "json") {+ request.responseType = _config.responseType;+ }+ if (onDownloadProgress) {+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);+ request.addEventListener("progress", downloadThrottled);+ }+ if (onUploadProgress && request.upload) {+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);+ request.upload.addEventListener("progress", uploadThrottled);+ request.upload.addEventListener("loadend", flushUpload);+ }+ if (_config.cancelToken || _config.signal) {+ onCanceled = (cancel) => {+ if (!request) {+ return;+ }+ reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);+ request.abort();+ request = null;+ };+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);+ if (_config.signal) {+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);+ }+ }+ const protocol = parseProtocol(_config.url);+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {+ reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));+ return;+ }+ request.send(requestData || null);+ });+};-// src/commands/components/commands/add/utils/handle-error.ts-function handleError(error) {- logger.error(`something went wrong. please check the error below for more details.`);- logger.error(`if the problem persists, please open an issue on github.`);- logger.error("");- if (typeof error === "string") {- logger.error(error);- logger.break();- process.exit(1);+// node_modules/axios/lib/helpers/composeSignals.js+var composeSignals = (signals, timeout) => {+ const { length } = signals = signals ? signals.filter(Boolean) : [];+ if (timeout || length) {+ let controller = new AbortController;+ let aborted;+ const onabort = function(reason) {+ if (!aborted) {+ aborted = true;+ unsubscribe();+ const err = reason instanceof Error ? reason : this.reason;+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));+ }+ };+ let timer = timeout && setTimeout(() => {+ timer = null;+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));+ }, timeout);+ const unsubscribe = () => {+ if (signals) {+ timer && clearTimeout(timer);+ timer = null;+ signals.forEach((signal2) => {+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);+ });+ signals = null;+ }+ };+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));+ const { signal } = controller;+ signal.unsubscribe = () => utils_default.asap(unsubscribe);+ return signal;}- if (error instanceof z2.ZodError) {- logger.error("validation failed:");- for (const [key, value] of Object.entries(error.flatten().fieldErrors)) {- logger.error(`- ${highlighter.info(key)}: ${value}`);- }- logger.break();- process.exit(1);+};+var composeSignals_default = composeSignals;++// node_modules/axios/lib/helpers/trackStream.js+var streamChunk = function* (chunk, chunkSize) {+ let len = chunk.byteLength;+ if (!chunkSize || len < chunkSize) {+ yield chunk;+ return;}- if (error instanceof Error) {- logger.error(error.message);- logger.break();- process.exit(1);+ let pos = 0;+ let end;+ while (pos < len) {+ end = pos + chunkSize;+ yield chunk.slice(pos, end);+ pos = end;}- logger.break();- process.exit(1);-}-var ERRORS = {- MISSING_DIR_OR_EMPTY_PIPE: "1",- COMPONENT_NOT_FOUND: "2",- BUILD_MISSING_REGISTRY_FILE: "3"};--// src/utils/credentials.ts-import os2 from "os";-import fs from "fs";-import path from "path";--class Credentials {- static configDir = path.join(os2.homedir(), ".screenpipe");- static configFile = path.join(this.configDir, "config-developer.json");- static getApiKey() {- try {- if (!fs.existsSync(this.configFile)) {- return null;+var readBytes = async function* (iterable, chunkSize) {+ for await (const chunk of readStream(iterable)) {+ yield* streamChunk(chunk, chunkSize);+ }+};+var readStream = async function* (stream4) {+ if (stream4[Symbol.asyncIterator]) {+ yield* stream4;+ return;+ }+ const reader = stream4.getReader();+ try {+ for (;; ) {+ const { done, value } = await reader.read();+ if (done) {+ break;}- const config = JSON.parse(fs.readFileSync(this.configFile, "utf-8"));- return config.apiKey || null;- } catch (error) {- return null;+ yield value;}+ } finally {+ await reader.cancel();}- static setApiKey(apiKey, developerId) {- if (!fs.existsSync(this.configDir)) {- fs.mkdirSync(this.configDir);+};+var trackStream = (stream4, chunkSize, onProgress, onFinish) => {+ const iterator = readBytes(stream4, chunkSize);+ let bytes = 0;+ let done;+ let _onFinish = (e2) => {+ if (!done) {+ done = true;+ onFinish && onFinish(e2);}- fs.writeFileSync(this.configFile, JSON.stringify({- apiKey,- developerId- }, null, 2));- }- static clearCredentials() {- if (fs.existsSync(this.configFile)) {- fs.unlinkSync(this.configFile);+ };+ return new ReadableStream({+ async pull(controller) {+ try {+ const { done: done2, value } = await iterator.next();+ if (done2) {+ _onFinish();+ controller.close();+ return;+ }+ let len = value.byteLength;+ if (onProgress) {+ let loadedBytes = bytes += len;+ onProgress(loadedBytes);+ }+ controller.enqueue(new Uint8Array(value));+ } catch (err) {+ _onFinish(err);+ throw err;+ }+ },+ cancel(reason) {+ _onFinish(reason);+ return iterator.return();}- }-}+ }, {+ highWaterMark: 2+ });+};-// src/commands/login/utils/cli-login.ts-class UserCancellationError extends Error {- constructor(message) {- super(message);- this.name = "UserCancellationError";+// node_modules/axios/lib/adapters/fetch.js+var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";+var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";+var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));+var test = (fn, ...args) => {+ try {+ return !!fn(...args);+ } catch (e2) {+ return false;}-}-var authPayload = z2.object({- token: z2.string(),- email: z2.string(),- user_id: z2.string(),- developer_id: z2.string(),- api_key: z2.string()+};+var supportsRequestStream = isReadableStreamSupported && test(() => {+ let duplexAccessed = false;+ const hasContentType = new Request(platform_default.origin, {+ body: new ReadableStream,+ method: "POST",+ get duplex() {+ duplexAccessed = true;+ return "half";+ }+ }).headers.has("Content-Type");+ return duplexAccessed && !hasContentType;});-async function sendAuthData(authPayload2) {- try {- const response = await fetch(`http://localhost:11435/auth`, {+var DEFAULT_CHUNK_SIZE = 64 * 1024;+var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));+var resolvers = {+ stream: supportsResponseStream && ((res) => res.body)+};+isFetchSupported && ((res) => {+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {+ !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_4, config) => {+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);+ });+ });+})(new Response);+var getBodyLength = async (body) => {+ if (body == null) {+ return 0;+ }+ if (utils_default.isBlob(body)) {+ return body.size;+ }+ if (utils_default.isSpecCompliantForm(body)) {+ const _request = new Request(platform_default.origin, {method: "POST",- headers: {- "Content-Type": "application/json"- },- body: JSON.stringify(authPayload2)+ body});- if (!response.ok) {- throw new Error("failed to send auth data");+ return (await _request.arrayBuffer()).byteLength;+ }+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {+ return body.byteLength;+ }+ if (utils_default.isURLSearchParams(body)) {+ body = body + "";+ }+ if (utils_default.isString(body)) {+ return (await encodeText(body)).byteLength;+ }+};+var resolveBodyLength = async (headers, body) => {+ const length = utils_default.toFiniteNumber(headers.getContentLength());+ return length == null ? getBodyLength(body) : length;+};+var fetch_default = isFetchSupported && (async (config) => {+ let {+ url: url3,+ method,+ data,+ signal,+ cancelToken,+ timeout,+ onDownloadProgress,+ onUploadProgress,+ responseType,+ headers,+ withCredentials = "same-origin",+ fetchOptions+ } = resolveConfig_default(config);+ responseType = responseType ? (responseType + "").toLowerCase() : "text";+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);+ let request;+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {+ composedSignal.unsubscribe();+ });+ let requestContentLength;+ try {+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {+ let _request = new Request(url3, {+ method: "POST",+ body: data,+ duplex: "half"+ });+ let contentTypeHeader;+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {+ headers.setContentType(contentTypeHeader);+ }+ if (_request.body) {+ const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);+ }+ }+ if (!utils_default.isString(withCredentials)) {+ withCredentials = withCredentials ? "include" : "omit";+ }+ const isCredentialsSupported = "credentials" in Request.prototype;+ request = new Request(url3, {+ ...fetchOptions,+ signal: composedSignal,+ method: method.toUpperCase(),+ headers: headers.normalize().toJSON(),+ body: data,+ duplex: "half",+ credentials: isCredentialsSupported ? withCredentials : undefined+ });+ let response = await fetch(request);+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {+ const options = {};+ ["status", "statusText", "headers"].forEach((prop) => {+ options[prop] = response[prop];+ });+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {+ flush && flush();+ unsubscribe && unsubscribe();+ }), options);+ }+ responseType = responseType || "text";+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);+ !isStreamResponse && unsubscribe && unsubscribe();+ return await new Promise((resolve, reject) => {+ settle(resolve, reject, {+ data: responseData,+ headers: AxiosHeaders_default.from(response.headers),+ status: response.status,+ statusText: response.statusText,+ config,+ request+ });+ });+ } catch (err) {+ unsubscribe && unsubscribe();+ if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {+ throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request), {+ cause: err.cause || err+ });}- const data = await response.json();- return data;- } catch (error) {- if (error instanceof TypeError && error.message.includes("fetch")) {- throw new Error("Make sure to run the app before attempting to login");+ throw AxiosError_default.from(err, err && err.code, config, request);+ }+});++// node_modules/axios/lib/adapters/adapters.js+var knownAdapters = {+ http: http_default,+ xhr: xhr_default,+ fetch: fetch_default+};+utils_default.forEach(knownAdapters, (fn, value) => {+ if (fn) {+ try {+ Object.defineProperty(fn, "name", { value });+ } catch (e2) {}- throw error;+ Object.defineProperty(fn, "adapterName", { value });+ }+});+var renderReason = (reason) => `- ${reason}`;+var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;+var adapters_default = {+ getAdapter: (adapters) => {+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];+ const { length } = adapters;+ let nameOrAdapter;+ let adapter;+ const rejectedReasons = {};+ for (let i = 0;i < length; i++) {+ nameOrAdapter = adapters[i];+ let id;+ adapter = nameOrAdapter;+ if (!isResolvedHandle(nameOrAdapter)) {+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];+ if (adapter === undefined) {+ throw new AxiosError_default(`Unknown adapter '${id}'`);+ }+ }+ if (adapter) {+ break;+ }+ rejectedReasons[id || "#" + i] = adapter;+ }+ if (!adapter) {+ const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));+ let s = length ? reasons.length > 1 ? `since :+` + reasons.map(renderReason).join(`+`) : " " + renderReason(reasons[0]) : "as no adapter specified";+ throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");+ }+ return adapter;+ },+ adapters: knownAdapters+};++// node_modules/axios/lib/core/dispatchRequest.js+function throwIfCancellationRequested(config) {+ if (config.cancelToken) {+ config.cancelToken.throwIfRequested();+ }+ if (config.signal && config.signal.aborted) {+ throw new CanceledError_default(null, config);}}-var nanoid = customAlphabet("123456789qazwsxedcrfvtgbyhnujmikolp", 8);-async function cliLogin() {- const server = http.createServer();- const { port } = await import_async_listen.listen(server, 0, "127.0.0.1");- logger.info(`server listening on http://127.0.0.1:${port}`);- const authPromise = new Promise((resolve, reject) => {- server.on("request", (req, res) => {- res.setHeader("Access-Control-Allow-Origin", "*");- res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");- res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");- if (req.method === "OPTIONS") {- res.writeHead(200);- res.end();- } else if (req.method === "GET") {- const parsedUrl = url.parse(req.url, true);- const queryParams = parsedUrl.query;- if (queryParams.cancelled) {- res.writeHead(200);- res.end("Cancelled");- reject(new UserCancellationError("Login process cancelled by user."));- } else {- res.writeHead(200);- res.end("Success");- const authData = authPayload.parse(queryParams);- if (!authData) {- reject(new Error("invalid response from server"));- }- resolve(authData);- }- } else {- res.writeHead(405);- res.end("Method not allowed");- }- });+function dispatchRequest(config) {+ throwIfCancellationRequested(config);+ config.headers = AxiosHeaders_default.from(config.headers);+ config.data = transformData.call(config, config.transformRequest);+ if (["post", "put", "patch"].indexOf(config.method) !== -1) {+ config.headers.setContentType("application/x-www-form-urlencoded", false);+ }+ const adapter = adapters_default.getAdapter(config.adapter || defaults_default.adapter);+ return adapter(config).then(function onAdapterResolution(response) {+ throwIfCancellationRequested(config);+ response.data = transformData.call(config, config.transformResponse, response);+ response.headers = AxiosHeaders_default.from(response.headers);+ return response;+ }, function onAdapterRejection(reason) {+ if (!isCancel(reason)) {+ throwIfCancellationRequested(config);+ if (reason && reason.response) {+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);+ }+ }+ return Promise.reject(reason);});- const redirect = `http://127.0.0.1:${port}`;- const code = nanoid();- const confirmationUrl = new URL("http://screenpi.pe/login");- confirmationUrl.searchParams.append("code", code);- confirmationUrl.searchParams.append("redirect", redirect);- logger.log(`confirmation code: ${colors.bold(code)}-`);- logger.log(`if something goes wrong, copy and paste this url into your browser: ${colors.bold(confirmationUrl.toString())}-`);- const openBrowser = (url2) => {- const platform = process.platform;- switch (platform) {- case "win32":- const escapedUrl = url2.replace(/&/g, "^&");- return spawn("cmd", ["/c", "start", "", escapedUrl]);- case "darwin":- return spawn("open", [url2]);- default:- return spawn("xdg-open", [url2]);+}++// node_modules/axios/lib/helpers/validator.js+var validators = {};+["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {+ validators[type] = function validator(thing) {+ return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;+ };+});+var deprecatedWarnings = {};+validators.transitional = function transitional(validator, version, message) {+ function formatMessage(opt, desc) {+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");+ }+ return (value, opt, opts) => {+ if (validator === false) {+ throw new AxiosError_default(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError_default.ERR_DEPRECATED);}+ if (version && !deprecatedWarnings[opt]) {+ deprecatedWarnings[opt] = true;+ console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));+ }+ return validator ? validator(value, opt, opts) : true;};- openBrowser(confirmationUrl.toString());- const loadingSpinner = spinner("waiting for authentication...");- try {- loadingSpinner.start();- const authData = await authPromise;- Credentials.setApiKey(authData.api_key, authData.developer_id);- await sendAuthData(authData).catch((_4) => {- logger.warn(`could not set app credentials, is it app running?-ignore this warning if you're just trying to publish a pipe!`);- });- loadingSpinner.succeed("authentication successful");- server.close();- } catch (error) {- if (error instanceof UserCancellationError) {- server.close();- logger.log(`-`);- logger.error(`authentication cancelled.-`);- process.exit(0);- } else {- server.close();- handleError(`authentication failed: + ${error}`);+};+validators.spelling = function spelling(correctSpelling) {+ return (value, opt) => {+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);+ return true;+ };+};+function assertOptions(options, schema, allowUnknown) {+ if (typeof options !== "object") {+ throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);+ }+ const keys = Object.keys(options);+ let i = keys.length;+ while (i-- > 0) {+ const opt = keys[i];+ const validator = schema[opt];+ if (validator) {+ const value = options[opt];+ const result = value === undefined || validator(value, opt, options);+ if (result !== true) {+ throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);+ }+ continue;+ }+ if (allowUnknown !== true) {+ throw new AxiosError_default("Unknown option " + opt, AxiosError_default.ERR_BAD_OPTION);}- } finally {- server.close();- process.exit(0);}}+var validator_default = {+ assertOptions,+ validators+};-// src/constants.ts-var API_BASE_URL = process.env.SC_API_BASE_URL || "https://screenpi.pe";+// node_modules/axios/lib/core/Axios.js+var validators2 = validator_default.validators;-// src/commands/login/utils/api-key-login.ts-async function apiKeyLogin(apiKey) {- try {- logger.info(`-${symbols.info} validating API key...`);- const response = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {- method: "GET",- headers: {- Authorization: `Bearer ${apiKey}`,- "Content-Type": "application/json"- }- });- if (!response.ok) {- const error = await response.json();- throw new Error(`Failed to validate API key ${error.error}`);- }- const data = await response.json();- if (data.data.needs_name) {- const developerName = await he({- message: "enter your developer name:",- validate: (input) => {- if (input.length < 2) {- return "developer name must be at least 2 characters";- }- if (input.length > 50) {- return "developer name must be less than 50 characters";+class Axios {+ constructor(instanceConfig) {+ this.defaults = instanceConfig;+ this.interceptors = {+ request: new InterceptorManager_default,+ response: new InterceptorManager_default+ };+ }+ async request(configOrUrl, config) {+ try {+ return await this._request(configOrUrl, config);+ } catch (err) {+ if (err instanceof Error) {+ let dummy = {};+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error;+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";+ try {+ if (!err.stack) {+ err.stack = stack;+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {+ err.stack += `+` + stack;}- return;+ } catch (e2) {}- });- if (BD(developerName)) {- xe("Operation cancelled");- process.exit(1);- }- const updateResponse = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {- method: "POST",- headers: {- Authorization: `Bearer ${apiKey}`,- "Content-Type": "application/json"- },- body: JSON.stringify({ developer_name: developerName })- });- if (!updateResponse.ok) {- const error = await updateResponse.json();- throw new Error(`failed to set developer name: ${error.error}`);}- const updateData = await updateResponse.json();- data.data.developer_name = updateData.data.developer_name;+ throw err;}- logger.info(`-${symbols.success} successfully logged in!`);- console.log(colors.listItem(`${colors.label("developer id")} ${data.data.developer_id}`));- console.log(colors.listItem(`${colors.label("developer name")} ${data.data.developer_name}`));- Credentials.setApiKey(apiKey, data.data.developer_id);- } catch (error) {- if (error instanceof Error) {- handleError(`-${symbols.error} login failed: ${error.message}`);+ }+ _request(configOrUrl, config) {+ if (typeof configOrUrl === "string") {+ config = config || {};+ config.url = configOrUrl;} else {- handleError(`-${symbols.error} login failed with unexpected error`);+ config = configOrUrl || {};+ }+ config = mergeConfig(this.defaults, config);+ const { transitional: transitional2, paramsSerializer, headers } = config;+ if (transitional2 !== undefined) {+ validator_default.assertOptions(transitional2, {+ silentJSONParsing: validators2.transitional(validators2.boolean),+ forcedJSONParsing: validators2.transitional(validators2.boolean),+ clarifyTimeoutError: validators2.transitional(validators2.boolean)+ }, false);+ }+ if (paramsSerializer != null) {+ if (utils_default.isFunction(paramsSerializer)) {+ config.paramsSerializer = {+ serialize: paramsSerializer+ };+ } else {+ validator_default.assertOptions(paramsSerializer, {+ encode: validators2.function,+ serialize: validators2.function+ }, true);+ }}- process.exit(1);- }-}--// src/commands/login/index.ts-var loginCommand = new Command().name("login").description("authenticate with screenpipe").action(async () => {- Ie("Welcome to Screenpipe");- const type = await ve({- message: "Select login type",- options: [- { value: "browser", label: "Browser" },- { value: "apiKey", label: "API Key" }- ]- });- if (BD(type)) {- xe("Login cancelled");- process.exit(1);- }- if (type === "browser") {- await cliLogin();- } else {- const apiKey = await he({- message: "Enter your API key"+ if (config.allowAbsoluteUrls !== undefined) {+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;+ } else {+ config.allowAbsoluteUrls = true;+ }+ validator_default.assertOptions(config, {+ baseUrl: validators2.spelling("baseURL"),+ withXsrfToken: validators2.spelling("withXSRFToken")+ }, true);+ config.method = (config.method || this.defaults.method || "get").toLowerCase();+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {+ delete headers[method];});- if (BD(apiKey)) {- xe("Login cancelled");- process.exit(1);+ config.headers = AxiosHeaders_default.concat(contextHeaders, headers);+ const requestInterceptorChain = [];+ let synchronousRequestInterceptors = true;+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {+ if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {+ return;+ }+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);+ });+ const responseInterceptorChain = [];+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);+ });+ let promise;+ let i = 0;+ let len;+ if (!synchronousRequestInterceptors) {+ const chain2 = [dispatchRequest.bind(this), undefined];+ chain2.unshift.apply(chain2, requestInterceptorChain);+ chain2.push.apply(chain2, responseInterceptorChain);+ len = chain2.length;+ promise = Promise.resolve(config);+ while (i < len) {+ promise = promise.then(chain2[i++], chain2[i++]);+ }+ return promise;}- await apiKeyLogin(apiKey);- }- Se("Login complete");-});-// src/commands/logout.ts-var logoutCommand = new Command().name("logout").description("end current session").action(async () => {- Credentials.clearCredentials();- logger.success(`-${symbols.success} successfully logged out`);- logger.info(`${symbols.info} thanks for using screenpipe! come back soon.`);-});-// src/commands/pipe/register.ts-import fs2 from "fs";-var registerCommand = new Command().name("register").description("register a new pipe").requiredOption("--name <name>", "name of the pipe").option("--paid", "set this flag to create a paid pipe").option("--price <price>", "price in usd (required for paid pipes)", parseFloat).option("--source <source>", "source code url (e.g., github repository)").action(async (opts) => {- if (opts.paid && opts.price == null) {- handleError("error: price is required for paid pipes, i.e., --price <amount>");- }- if (opts.paid && opts.price <= 0) {- handleError("error: price must be positive for paid pipes");- }- try {- const apiKey = Credentials.getApiKey();- if (!apiKey) {- handleError(symbols.error + " not logged in. please login first using" + colors.highlight("screenpipe login"));+ len = requestInterceptorChain.length;+ let newConfig = config;+ i = 0;+ while (i < len) {+ const onFulfilled = requestInterceptorChain[i++];+ const onRejected = requestInterceptorChain[i++];+ try {+ newConfig = onFulfilled(newConfig);+ } catch (error) {+ onRejected.call(this, error);+ break;+ }}- let packageJson;try {- packageJson = JSON.parse(fs2.readFileSync("package.json", "utf-8"));+ promise = dispatchRequest.call(this, newConfig);} catch (error) {- handleError(`${symbols.error} failed to read package.json. make sure you're in the correct directory.`);+ return Promise.reject(error);}- const isPaid = opts.paid || false;- const price = opts.price;- let description = null;- try {- const readmeContent = fs2.readFileSync("README.md", "utf-8");- if (readmeContent) {- description = readmeContent;- }- } catch (error) {- logger.warn(`${symbols.arrow} no README.md found, required for description`);+ i = 0;+ len = responseInterceptorChain.length;+ while (i < len) {+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);}- const response = await fetch(`${API_BASE_URL}/api/plugins/create`, {- method: "POST",- headers: {- Authorization: `Bearer ${apiKey}`,- "Content-Type": "application/json"- },- body: JSON.stringify({- name: opts.name,- description,- is_paid: isPaid,- price: isPaid ? price : null,- source_url: opts.source || null- })+ return promise;+ }+ getUri(config) {+ config = mergeConfig(this.defaults, config);+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);+ return buildURL(fullPath, config.params, config.paramsSerializer);+ }+}+utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {+ Axios.prototype[method] = function(url3, config) {+ return this.request(mergeConfig(config || {}, {+ method,+ url: url3,+ data: (config || {}).data+ }));+ };+});+utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {+ function generateHTTPMethod(isForm) {+ return function httpMethod(url3, data, config) {+ return this.request(mergeConfig(config || {}, {+ method,+ headers: isForm ? {+ "Content-Type": "multipart/form-data"+ } : {},+ url: url3,+ data+ }));+ };+ }+ Axios.prototype[method] = generateHTTPMethod();+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);+});+var Axios_default = Axios;++// node_modules/axios/lib/cancel/CancelToken.js+class CancelToken {+ constructor(executor) {+ if (typeof executor !== "function") {+ throw new TypeError("executor must be a function.");+ }+ let resolvePromise;+ this.promise = new Promise(function promiseExecutor(resolve) {+ resolvePromise = resolve;});- if (!response.ok) {- const errorData = await response.json();- handleError(errorData.error || "failed to create plugin");+ const token = this;+ this.promise.then((cancel) => {+ if (!token._listeners)+ return;+ let i = token._listeners.length;+ while (i-- > 0) {+ token._listeners[i](cancel);+ }+ token._listeners = null;+ });+ this.promise.then = (onfulfilled) => {+ let _resolve;+ const promise = new Promise((resolve) => {+ token.subscribe(resolve);+ _resolve = resolve;+ }).then(onfulfilled);+ promise.cancel = function reject() {+ token.unsubscribe(_resolve);+ };+ return promise;+ };+ executor(function cancel(message, config, request) {+ if (token.reason) {+ return;+ }+ token.reason = new CanceledError_default(message, config, request);+ resolvePromise(token.reason);+ });+ }+ throwIfRequested() {+ if (this.reason) {+ throw this.reason;}- const data = await response.json();- logger.success(`-${symbols.success} successfully created pipe: ${colors.highlight(opts.name)}`);- logger.info(`-${symbols.info} plugin details:`);- console.log(colors.listItem(`${colors.label("name")} ${opts.name}`));- console.log(colors.listItem(`${colors.label("type")} ${isPaid ? `paid ($${price})` : "free"}`));- if (opts.source) {- console.log(colors.listItem(`${colors.label("source")} ${opts.source}`));+ }+ subscribe(listener) {+ if (this.reason) {+ listener(this.reason);+ return;}- } catch (error) {- if (error instanceof Error) {- handleError(`-${symbols.error} creating failed: ${error.message}`);+ if (this._listeners) {+ this._listeners.push(listener);} else {- handleError(`-${symbols.error} creating failed with unexpected error`);+ this._listeners = [listener];}}-});+ unsubscribe(listener) {+ if (!this._listeners) {+ return;+ }+ const index = this._listeners.indexOf(listener);+ if (index !== -1) {+ this._listeners.splice(index, 1);+ }+ }+ toAbortSignal() {+ const controller = new AbortController;+ const abort = (err) => {+ controller.abort(err);+ };+ this.subscribe(abort);+ controller.signal.unsubscribe = () => this.unsubscribe(abort);+ return controller.signal;+ }+ static source() {+ let cancel;+ const token = new CancelToken(function executor(c2) {+ cancel = c2;+ });+ return {+ token,+ cancel+ };+ }+}+var CancelToken_default = CancelToken;++// node_modules/axios/lib/helpers/spread.js+function spread(callback) {+ return function wrap(arr) {+ return callback.apply(null, arr);+ };+}++// node_modules/axios/lib/helpers/isAxiosError.js+function isAxiosError(payload) {+ return utils_default.isObject(payload) && payload.isAxiosError === true;+}++// node_modules/axios/lib/helpers/HttpStatusCode.js+var HttpStatusCode = {+ Continue: 100,+ SwitchingProtocols: 101,+ Processing: 102,+ EarlyHints: 103,+ Ok: 200,+ Created: 201,+ Accepted: 202,+ NonAuthoritativeInformation: 203,+ NoContent: 204,+ ResetContent: 205,+ PartialContent: 206,+ MultiStatus: 207,+ AlreadyReported: 208,+ ImUsed: 226,+ MultipleChoices: 300,+ MovedPermanently: 301,+ Found: 302,+ SeeOther: 303,+ NotModified: 304,+ UseProxy: 305,+ Unused: 306,+ TemporaryRedirect: 307,+ PermanentRedirect: 308,+ BadRequest: 400,+ Unauthorized: 401,+ PaymentRequired: 402,+ Forbidden: 403,+ NotFound: 404,+ MethodNotAllowed: 405,+ NotAcceptable: 406,+ ProxyAuthenticationRequired: 407,+ RequestTimeout: 408,+ Conflict: 409,+ Gone: 410,+ LengthRequired: 411,+ PreconditionFailed: 412,+ PayloadTooLarge: 413,+ UriTooLong: 414,+ UnsupportedMediaType: 415,+ RangeNotSatisfiable: 416,+ ExpectationFailed: 417,+ ImATeapot: 418,+ MisdirectedRequest: 421,+ UnprocessableEntity: 422,+ Locked: 423,+ FailedDependency: 424,+ TooEarly: 425,+ UpgradeRequired: 426,+ PreconditionRequired: 428,+ TooManyRequests: 429,+ RequestHeaderFieldsTooLarge: 431,+ UnavailableForLegalReasons: 451,+ InternalServerError: 500,+ NotImplemented: 501,+ BadGateway: 502,+ ServiceUnavailable: 503,+ GatewayTimeout: 504,+ HttpVersionNotSupported: 505,+ VariantAlsoNegotiates: 506,+ InsufficientStorage: 507,+ LoopDetected: 508,+ NotExtended: 510,+ NetworkAuthenticationRequired: 511+};+Object.entries(HttpStatusCode).forEach(([key, value]) => {+ HttpStatusCode[value] = key;+});+var HttpStatusCode_default = HttpStatusCode;++// node_modules/axios/lib/axios.js+function createInstance(defaultConfig) {+ const context = new Axios_default(defaultConfig);+ const instance = bind(Axios_default.prototype.request, context);+ utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });+ utils_default.extend(instance, context, null, { allOwnKeys: true });+ instance.create = function create(instanceConfig) {+ return createInstance(mergeConfig(defaultConfig, instanceConfig));+ };+ return instance;+}+var axios = createInstance(defaults_default);+axios.Axios = Axios_default;+axios.CanceledError = CanceledError_default;+axios.CancelToken = CancelToken_default;+axios.isCancel = isCancel;+axios.VERSION = VERSION;+axios.toFormData = toFormData_default;+axios.AxiosError = AxiosError_default;+axios.Cancel = axios.CanceledError;+axios.all = function all(promises) {+ return Promise.all(promises);+};+axios.spread = spread;+axios.isAxiosError = isAxiosError;+axios.mergeConfig = mergeConfig;+axios.AxiosHeaders = AxiosHeaders_default;+axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);+axios.getAdapter = adapters_default.getAdapter;+axios.HttpStatusCode = HttpStatusCode_default;+axios.default = axios;+var axios_default = axios;// src/commands/pipe/publish.ts-import fs3 from "fs";-import path2 from "path";-var import_archiver = __toESM(require_archiver(), 1);-var import_ignore = __toESM(require_ignore2(), 1);-import crypto2 from "crypto";-import { execSync } from "child_process";var NEXTJS_FILES = {required: ["package.json", ".next"],optional: [@@ -55326,24 +69110,6 @@ function archiveStandardProject(archive, ig) {mark: true});}-async function retryFetch(url2, options, maxRetries = 3, baseDelay = 1000) {- for (let attempt = 1;attempt <= maxRetries; attempt++) {- try {- const response = await fetch(url2, options);- if (response.ok)- return response;- if (attempt === maxRetries) {- throw new Error(`Failed after ${maxRetries} attempts: ${await response.text()}`);- }- } catch (error) {- if (attempt === maxRetries)- throw error;- }- const delay = baseDelay * Math.pow(2, attempt - 1);- await new Promise((resolve) => setTimeout(resolve, delay));- }- throw new Error("Retry failed");-}function isProjectBuilt() {if (fs3.existsSync("next.config.js") || fs3.existsSync("next.config.mjs") || fs3.existsSync("next.config.ts")) {return fs3.existsSync(".next") && fs3.existsSync(".next/server");@@ -55425,7 +69191,7 @@ ${symbols.info} publishing ${colors.highlight(packageJson.name)} v${packageJson.console.log(colors.dim(`${symbols.arrow} starting archive creation...`));}const fileBuffer = fs3.readFileSync(zipPath);- const hashSum = crypto2.createHash("sha256");+ const hashSum = crypto3.createHash("sha256");hashSum.update(fileBuffer);const fileHash = hashSum.digest("hex");const fileSize = fs3.statSync(zipPath).size;@@ -55475,20 +69241,18 @@ ${symbols.info} publishing ${colors.highlight(packageJson.name)} v${packageJson.})});if (!urlResponse.ok) {- throw new Error(`Failed to get upload URL: ${await urlResponse.text()}`);+ throw new Error(`Failed to get upload URL: ${await urlResponse.text()} ${urlResponse.status}`);}const { uploadUrl, path: path3 } = await urlResponse.json();logger.log(colors.dim(`${symbols.arrow} uploading to storage...`));- const uploadResponse = await retryFetch(uploadUrl, {- method: "PUT",+ const uploadResponse = await axios_default.put(uploadUrl, fileBuffer, {headers: {"Content-Type": "application/zip"},- body: fileBuffer+ maxBodyLength: Infinity});- if (!uploadResponse.ok) {- const text = await uploadResponse.text();- throw new Error(`Failed to upload file to storage: ${text}`);+ if (uploadResponse.status !== 200) {+ throw new Error(`Failed to upload file to storage: code:${uploadResponse.status} body: ${JSON.stringify(uploadResponse.data)}`);}logger.log(colors.dim(`${symbols.arrow} finalizing upload...`));const finalizeResponse = await fetch(`${API_BASE_URL}/api/plugins/publish/finalize`, {@@ -55598,7 +69362,7 @@ var import_fs_extra = __toESM(require_lib2(), 1);import path3 from "path";var import_tar_stream = __toESM(require_tar_stream(), 1);import { createGunzip } from "zlib";-import { Readable } from "stream";+import { Readable as Readable2 } from "stream";process.removeAllListeners("warning");var PIPE_ADDITIONS = {dependencies: {@@ -55651,7 +69415,7 @@ async function extractTarball(buffer, tempDir, targetSubdir) {return new Promise((resolve, reject) => {const extractor = import_tar_stream.extract();let extractedDirName = "";- extractor.on("entry", async (header, stream, next) => {+ extractor.on("entry", async (header, stream4, next) => {const parts = header.name.split("/");if (parts.length > 0 && !extractedDirName) {extractedDirName = parts[0];@@ -55660,15 +69424,15 @@ async function extractTarball(buffer, tempDir, targetSubdir) {const filePath = path3.join(tempDir, header.name);if (header.type === "directory") {await import_fs_extra.default.ensureDir(filePath);- stream.resume();+ stream4.resume();} else {await import_fs_extra.default.ensureDir(path3.dirname(filePath));- stream.pipe(import_fs_extra.default.createWriteStream(filePath));+ stream4.pipe(import_fs_extra.default.createWriteStream(filePath));}} else {- stream.resume();+ stream4.resume();}- stream.on("end", next);+ stream4.on("end", next);});extractor.on("finish", () => {if (!extractedDirName) {@@ -55678,7 +69442,7 @@ async function extractTarball(buffer, tempDir, targetSubdir) {}});extractor.on("error", reject);- const bufferStream = Readable.from(buffer);+ const bufferStream = Readable2.from(buffer);bufferStream.pipe(createGunzip()).pipe(extractor);});}@@ -55758,7 +69522,7 @@ var import_debug = __toESM(require_src2(), 1);var import_promise_deferred = __toESM(require_dist4(), 1);var import_promise_deferred2 = __toESM(require_dist4(), 1);import { spawn as spawn2 } from "child_process";-import { EventEmitter as EventEmitter2 } from "node:events";+import { EventEmitter as EventEmitter3 } from "node:events";var __defProp2 = Object.defineProperty;var __defProps = Object.defineProperties;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;@@ -55786,9 +69550,9 @@ var __esm = (fn, res) => function __init() {var __commonJS2 = (cb, mod) => function __require() {return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;};-var __export = (target, all) => {- for (var name in all)- __defProp2(target, name, { get: all[name], enumerable: true });+var __export2 = (target, all2) => {+ for (var name in all2)+ __defProp2(target, name, { get: all2[name], enumerable: true });};var __copyProps = (to, from, except, desc) => {if (from && typeof from === "object" || typeof from === "function") {@@ -55911,7 +69675,7 @@ function forEachLineWithContent(input, callback) {function folderExists(path4) {return import_file_exists.exists(path4, import_file_exists.FOLDER);}-function append(target, item) {+function append2(target, item) {if (Array.isArray(target)) {if (!target.includes(item)) {target.push(item);@@ -55989,8 +69753,8 @@ var init_util = __esm({objectToString = Object.prototype.toString.call.bind(Object.prototype.toString);}});-function filterType(input, filter, def) {- if (filter(input)) {+function filterType(input, filter2, def) {+ if (filter2(input)) {return input;}return arguments.length > 2 ? def : undefined;@@ -56180,9 +69944,9 @@ var init_task_options = __esm({function callTaskParser(parser4, streams) {return parser4(streams.stdOut, streams.stdErr);}-function parseStringResponse(result, parsers12, texts, trim = true) {+function parseStringResponse(result, parsers12, texts, trim2 = true) {asArray(texts).forEach((text) => {- for (let lines = toLinesWithContent(text, trim), i = 0, max = lines.length;i < max; i++) {+ for (let lines = toLinesWithContent(text, trim2), i = 0, max = lines.length;i < max; i++) {const line = (offset = 0) => {if (i + offset >= max) {return;@@ -56200,14 +69964,14 @@ var init_task_parser = __esm({}});var utils_exports = {};-__export(utils_exports, {+__export2(utils_exports, {ExitCodes: () => ExitCodes,GitOutputStreams: () => GitOutputStreams,LineParser: () => LineParser,NOOP: () => NOOP,NULL: () => NULL,RemoteLineParser: () => RemoteLineParser,- append: () => append,+ append: () => append2,appendTaskOptions: () => appendTaskOptions,asArray: () => asArray,asCamelCase: () => asCamelCase,@@ -56258,7 +70022,7 @@ var init_utils = __esm({}});var check_is_repo_exports = {};-__export(check_is_repo_exports, {+__export2(check_is_repo_exports, {CheckRepoActions: () => CheckRepoActions,checkIsBareRepoTask: () => checkIsBareRepoTask,checkIsRepoRootTask: () => checkIsRepoRootTask,@@ -56356,7 +70120,7 @@ var init_CleanSummary = __esm({}});var task_exports = {};-__export(task_exports, {+__export2(task_exports, {EMPTY_COMMANDS: () => EMPTY_COMMANDS,adhocExecTask: () => adhocExecTask,configurationErrorTask: () => configurationErrorTask,@@ -56413,7 +70177,7 @@ var init_task = __esm({}});var clean_exports = {};-__export(clean_exports, {+__export2(clean_exports, {CONFIG_ERROR_INTERACTIVE_MODE: () => CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED: () => CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION: () => CONFIG_ERROR_UNKNOWN_OPTION,@@ -56447,7 +70211,7 @@ function cleanTask(mode, customArgs) {};}function isCleanOptionsArray(input) {- return Array.isArray(input) && input.every((test) => CleanOptionValues.has(test));+ return Array.isArray(input) && input.every((test2) => CleanOptionValues.has(test2));}function getCleanOptions(input) {let cleanMode;@@ -56567,8 +70331,8 @@ var init_ConfigList = __esm({}get all() {if (!this._all) {- this._all = this.files.reduce((all, file) => {- return Object.assign(all, this.values[file]);+ this._all = this.files.reduce((all2, file) => {+ return Object.assign(all2, this.values[file]);}, {});}return this._all;@@ -56601,9 +70365,9 @@ function asConfigScope(scope, fallback) {}return fallback;}-function addConfigTask(key, value, append2, scope) {+function addConfigTask(key, value, append22, scope) {const commands = ["config", `--${scope}`];- if (append2) {+ if (append22) {commands.push("--add");}commands.push(key, value);@@ -56765,7 +70529,7 @@ var init_grep = __esm({}});var reset_exports = {};-__export(reset_exports, {+__export2(reset_exports, {ResetMode: () => ResetMode,getResetMode: () => getResetMode,resetTask: () => resetTask@@ -56842,7 +70606,7 @@ function createLogger(label, verbose, initialStep, infoDebugger = createLog()) {const key = childLoggerName(filterType(verbose, filterString), debugDebugger, infoDebugger);return step(initialStep);function sibling(name, initial) {- return append(spawned, createLogger(label, key.replace(/^[^:]+/, name), initial, infoDebugger));+ return append2(spawned, createLogger(label, key.replace(/^[^:]+/, name), initial, infoDebugger));}function step(phase) {const stepPrefix = phase && `[${phase}]` || "";@@ -57116,7 +70880,7 @@ var init_git_executor_chain = __esm({}});var git_executor_exports = {};-__export(git_executor_exports, {+__export2(git_executor_exports, {GitExecutor: () => GitExecutor});var GitExecutor;@@ -57156,11 +70920,11 @@ function addDeprecationNoticeToError(err) {log = NOOP;};return Object.create(err, Object.getOwnPropertyNames(err.git).reduce(descriptorReducer, {}));- function descriptorReducer(all, name) {+ function descriptorReducer(all2, name) {if (name in err) {- return all;+ return all2;}- all[name] = {+ all2[name] = {enumerable: false,configurable: false,get() {@@ -57168,7 +70932,7 @@ function addDeprecationNoticeToError(err) {return err.git[name];}};- return all;+ return all2;}}var init_task_callback = __esm({@@ -57567,7 +71331,7 @@ function lineBuilder(tokens, fields) {function createListLogSummaryParser(splitter = SPLITTER, fields = defaultFieldNames, logFormat = "") {const parseDiffResult = getDiffParser(logFormat);return function(stdOut) {- const all = toLinesWithContent(stdOut.trim(), false, START_BOUNDARY).map(function(item) {+ const all2 = toLinesWithContent(stdOut.trim(), false, START_BOUNDARY).map(function(item) {const lineDetail = item.split(COMMIT_BOUNDARY);const listLogLine = lineBuilder(lineDetail[0].split(splitter), fields);if (lineDetail.length > 1 && !!lineDetail[1].trim()) {@@ -57576,9 +71340,9 @@ function createListLogSummaryParser(splitter = SPLITTER, fields = defaultFieldNareturn listLogLine;});return {- all,- latest: all.length && all[0] || null,- total: all.length+ all: all2,+ latest: all2.length && all2[0] || null,+ total: all2.length};};}@@ -57598,7 +71362,7 @@ var init_parse_list_log_summary = __esm({}});var diff_exports = {};-__export(diff_exports, {+__export2(diff_exports, {diffSummaryTask: () => diffSummaryTask,validateLogFormatConfig: () => validateLogFormatConfig});@@ -57870,11 +71634,11 @@ var init_parse_remote_messages = __esm({new RemoteLineParser([/create a (?:pull|merge) request/i, /\s(https?:\/\/\S+)$/], (result, [pullRequestUrl]) => {result.remoteMessages.pullRequestUrl = pullRequestUrl;}),- new RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i, /\s(https?:\/\/\S+)$/], (result, [count, summary, url2]) => {+ new RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i, /\s(https?:\/\/\S+)$/], (result, [count, summary, url3]) => {result.remoteMessages.vulnerabilities = {count: asNumber(count),summary,- url: url2+ url: url3};})];@@ -57924,8 +71688,8 @@ var init_parse_pull = __esm({return false;}),new LineParser(ACTION_REGEX, (result, [action, file]) => {- append(result.files, file);- append(action === "create" ? result.created : result.deleted, file);+ append2(result.files, file);+ append2(action === "create" ? result.created : result.deleted, file);})];errorParsers = [@@ -57987,11 +71751,11 @@ function mergeTask(customArgs) {commands: ["merge", ...customArgs],format: "utf-8",parser(stdOut, stdErr) {- const merge = parseMergeResult(stdOut, stdErr);- if (merge.failed) {- throw new GitResponseError(merge);+ const merge2 = parseMergeResult(stdOut, stdErr);+ if (merge2.failed) {+ throw new GitResponseError(merge2);}- return merge;+ return merge2;}};}@@ -58066,12 +71830,12 @@ var init_parse_push = __esm({}});var push_exports = {};-__export(push_exports, {+__export2(push_exports, {pushTagsTask: () => pushTagsTask,pushTask: () => pushTask});function pushTagsTask(ref = {}, customArgs) {- append(customArgs, "--tags");+ append2(customArgs, "--tags");return pushTask(ref, customArgs);}function pushTask(ref = {}, customArgs) {@@ -58083,8 +71847,8 @@ function pushTask(ref = {}, customArgs) {commands.splice(1, 0, ref.remote);}remove(commands, "-v");- append(commands, "--verbose");- append(commands, "--porcelain");+ append2(commands, "--verbose");+ append2(commands, "--porcelain");return {commands,format: "utf-8",@@ -58148,7 +71912,7 @@ function parser3(indexX, indexY, handler) {return [`${indexX}${indexY}`, handler];}function conflicts(indexX, ...indexY) {- return indexY.map((y2) => parser3(indexX, y2, (result, file) => append(result.conflicted, file)));+ return indexY.map((y2) => parser3(indexX, y2, (result, file) => append2(result.conflicted, file)));}function splitLine(result, lineStr) {const trimmed2 = lineStr.trim();@@ -58200,26 +71964,26 @@ var init_StatusSummary = __esm({}};parsers6 = new Map([- parser3(" ", "A", (result, file) => append(result.created, file)),- parser3(" ", "D", (result, file) => append(result.deleted, file)),- parser3(" ", "M", (result, file) => append(result.modified, file)),- parser3("A", " ", (result, file) => append(result.created, file) && append(result.staged, file)),- parser3("A", "M", (result, file) => append(result.created, file) && append(result.staged, file) && append(result.modified, file)),- parser3("D", " ", (result, file) => append(result.deleted, file) && append(result.staged, file)),- parser3("M", " ", (result, file) => append(result.modified, file) && append(result.staged, file)),- parser3("M", "M", (result, file) => append(result.modified, file) && append(result.staged, file)),+ parser3(" ", "A", (result, file) => append2(result.created, file)),+ parser3(" ", "D", (result, file) => append2(result.deleted, file)),+ parser3(" ", "M", (result, file) => append2(result.modified, file)),+ parser3("A", " ", (result, file) => append2(result.created, file) && append2(result.staged, file)),+ parser3("A", "M", (result, file) => append2(result.created, file) && append2(result.staged, file) && append2(result.modified, file)),+ parser3("D", " ", (result, file) => append2(result.deleted, file) && append2(result.staged, file)),+ parser3("M", " ", (result, file) => append2(result.modified, file) && append2(result.staged, file)),+ parser3("M", "M", (result, file) => append2(result.modified, file) && append2(result.staged, file)),parser3("R", " ", (result, file) => {- append(result.renamed, renamedFile(file));+ append2(result.renamed, renamedFile(file));}),parser3("R", "M", (result, file) => {const renamed = renamedFile(file);- append(result.renamed, renamed);- append(result.modified, renamed.to);+ append2(result.renamed, renamed);+ append2(result.modified, renamed.to);}),parser3("!", "!", (_result, _file) => {- append(_result.ignored = _result.ignored || [], _file);+ append2(_result.ignored = _result.ignored || [], _file);}),- parser3("?", "?", (result, file) => append(result.not_added, file)),+ parser3("?", "?", (result, file) => append2(result.not_added, file)),...conflicts("A", "A", "U"),...conflicts("D", "D", "U"),...conflicts("U", "A", "D", "U"),@@ -58345,7 +72109,7 @@ var init_version = __esm({}});var simple_git_api_exports = {};-__export(simple_git_api_exports, {+__export2(simple_git_api_exports, {SimpleGitApi: () => SimpleGitApi});var SimpleGitApi;@@ -58435,7 +72199,7 @@ var init_simple_git_api = __esm({}});var scheduler_exports = {};-__export(scheduler_exports, {+__export2(scheduler_exports, {Scheduler: () => Scheduler});var createScheduledTask;@@ -58469,7 +72233,7 @@ var init_scheduler = __esm({this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`, this.pending.length, this.running.length, this.concurrency);return;}- const task = append(this.running, this.pending.shift());+ const task = append2(this.running, this.pending.shift());this.logger(`Attempting id=%s`, task.id);task.done(() => {this.logger(`Completing id=`, task.id);@@ -58478,7 +72242,7 @@ var init_scheduler = __esm({});}next() {- const { promise, id } = append(this.pending, createScheduledTask());+ const { promise, id } = append2(this.pending, createScheduledTask());this.logger(`Scheduling id=%s`, id);this.schedule();return promise;@@ -58487,7 +72251,7 @@ var init_scheduler = __esm({}});var apply_patch_exports = {};-__export(apply_patch_exports, {+__export2(apply_patch_exports, {applyPatchTask: () => applyPatchTask});function applyPatchTask(patches, customArgs) {@@ -58607,7 +72371,7 @@ var init_parse_branch = __esm({}});var branch_exports = {};-__export(branch_exports, {+__export2(branch_exports, {branchLocalTask: () => branchLocalTask,branchTask: () => branchTask,containsDeleteBranchCommand: () => containsDeleteBranchCommand,@@ -58694,7 +72458,7 @@ var init_CheckIgnore = __esm({}});var check_ignore_exports = {};-__export(check_ignore_exports, {+__export2(check_ignore_exports, {checkIgnoreTask: () => checkIgnoreTask});function checkIgnoreTask(paths) {@@ -58710,7 +72474,7 @@ var init_check_ignore = __esm({}});var clone_exports = {};-__export(clone_exports, {+__export2(clone_exports, {cloneMirrorTask: () => cloneMirrorTask,cloneTask: () => cloneTask});@@ -58728,7 +72492,7 @@ function cloneTask(repo, directory, customArgs) {return straightThroughStringTask(commands);}function cloneMirrorTask(repo, directory, customArgs) {- append(customArgs, "--mirror");+ append2(customArgs, "--mirror");return cloneTask(repo, directory, customArgs);}var init_clone = __esm({@@ -58785,7 +72549,7 @@ var init_parse_fetch = __esm({}});var fetch_exports = {};-__export(fetch_exports, {+__export2(fetch_exports, {fetchTask: () => fetchTask});function disallowedCommand2(command) {@@ -58827,7 +72591,7 @@ var init_parse_move = __esm({}});var move_exports = {};-__export(move_exports, {+__export2(move_exports, {moveTask: () => moveTask});function moveTask(from, to) {@@ -58844,7 +72608,7 @@ var init_move = __esm({}});var pull_exports = {};-__export(pull_exports, {+__export2(pull_exports, {pullTask: () => pullTask});function pullTask(remote, branch, customArgs) {@@ -58876,25 +72640,25 @@ var init_pull = __esm({});function parseGetRemotes(text) {const remotes = {};- forEach(text, ([name]) => remotes[name] = { name });+ forEach2(text, ([name]) => remotes[name] = { name });return Object.values(remotes);}function parseGetRemotesVerbose(text) {const remotes = {};- forEach(text, ([name, url2, purpose]) => {+ forEach2(text, ([name, url3, purpose]) => {if (!remotes.hasOwnProperty(name)) {remotes[name] = {name,refs: { fetch: "", push: "" }};}- if (purpose && url2) {- remotes[name].refs[purpose.replace(/[^a-z]/g, "")] = url2;+ if (purpose && url3) {+ remotes[name].refs[purpose.replace(/[^a-z]/g, "")] = url3;}});return Object.values(remotes);}-function forEach(text, handler) {+function forEach2(text, handler) {forEachLineWithContent(text, (line) => handler(line.split(/\s+/)));}var init_GetRemoteSummary = __esm({@@ -58903,7 +72667,7 @@ var init_GetRemoteSummary = __esm({}});var remote_exports = {};-__export(remote_exports, {+__export2(remote_exports, {addRemoteTask: () => addRemoteTask,getRemotesTask: () => getRemotesTask,listRemotesTask: () => listRemotesTask,@@ -58948,7 +72712,7 @@ var init_remote = __esm({}});var stash_list_exports = {};-__export(stash_list_exports, {+__export2(stash_list_exports, {stashListTask: () => stashListTask});function stashListTask(opt = {}, customArgs) {@@ -58970,7 +72734,7 @@ var init_stash_list = __esm({}});var sub_module_exports = {};-__export(sub_module_exports, {+__export2(sub_module_exports, {addSubModuleTask: () => addSubModuleTask,initSubModuleTask: () => initSubModuleTask,subModuleTask: () => subModuleTask,@@ -59022,8 +72786,8 @@ var parseTagList;var init_TagList = __esm({"src/lib/responses/TagList.ts"() {TagList = class {- constructor(all, latest) {- this.all = all;+ constructor(all2, latest) {+ this.all = all2;this.latest = latest;}};@@ -59052,7 +72816,7 @@ var init_TagList = __esm({}});var tag_exports = {};-__export(tag_exports, {+__export2(tag_exports, {addAnnotatedTagTask: () => addAnnotatedTagTask,addTagTask: () => addTagTask,tagListTask: () => tagListTask@@ -59595,7 +73359,7 @@ init_utils();var PluginStore = class {constructor() {this.plugins = /* @__PURE__ */ new Set;- this.events = new EventEmitter2;+ this.events = new EventEmitter3;}on(type, listener) {this.events.on(type, listener);@@ -59604,12 +73368,12 @@ var PluginStore = class {this.events.emit(type, data);}append(type, action) {- const plugin = append(this.plugins, { type, action });+ const plugin = append2(this.plugins, { type, action });return () => this.plugins.delete(plugin);}add(plugin) {const plugins = [];- asArray(plugin).forEach((plugin2) => plugin2 && this.plugins.add(append(plugins, plugin2)));+ asArray(plugin).forEach((plugin2) => plugin2 && this.plugins.add(append2(plugins, plugin2)));return () => {plugins.forEach((plugin2) => this.plugins.delete(plugin2));};@@ -59718,17 +73482,17 @@ function suffixPathsPlugin() {action(data) {const prefix = [];let suffix;- function append2(args) {+ function append22(args) {(suffix = suffix || []).push(...args);}for (let i = 0;i < data.length; i++) {const param = data[i];if (isPathSpec(param)) {- append2(toPaths(param));+ append22(toPaths(param));continue;}if (param === "--") {- append2(data.slice(i + 1).flatMap((item) => isPathSpec(item) && toPaths(item) || item));+ append22(data.slice(i + 1).flatMap((item) => isPathSpec(item) && toPaths(item) || item));break;}prefix.push(param);@@ -60011,14 +73775,14 @@ function registryResolveItemsTree(names) {}// src/commands/components/commands/add/utils/prompt-for-component.ts-async function promptForRegistryComponents(all) {+async function promptForRegistryComponents(all2) {const registryIndex = getRegistry();if (!registryIndex) {logger.break();handleError(new Error("Failed to fetch registry index."));return [];}- if (all) {+ if (all2) {return Object.values(registryIndex).map((entry) => entry.name);}const components = await fe({@@ -60061,12 +73825,12 @@ function preFlightAdd(cwd) {}// node_modules/is-plain-obj/index.js-function isPlainObject(value) {+function isPlainObject2(value) {if (typeof value !== "object" || value === null) {return false;}- const prototype = Object.getPrototypeOf(value);- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);+ const prototype3 = Object.getPrototypeOf(value);+ return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);}// node_modules/execa/lib/arguments/file-url.js@@ -60085,7 +73849,7 @@ var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : fil// node_modules/execa/lib/methods/parameters.jsvar normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {const filePath = safeNormalizeFileUrl(rawFile, "First argument");- const [commandArguments, options] = isPlainObject(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];+ const [commandArguments, options] = isPlainObject2(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];if (!Array.isArray(commandArguments)) {throw new TypeError(`Second argument must be either an array of arguments or an options object: ${commandArguments}`);}@@ -60097,7 +73861,7 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {if (nullByteArgument !== undefined) {throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${nullByteArgument}`);}- if (!isPlainObject(options)) {+ if (!isPlainObject2(options)) {throw new TypeError(`Last argument must be an options object: ${options}`);}return [filePath, normalizedArguments, options];@@ -60109,11 +73873,11 @@ import { ChildProcess } from "node:child_process";// node_modules/execa/lib/utils/uint-array.jsimport { StringDecoder } from "node:string_decoder";var { toString: objectToString2 } = Object.prototype;-var isArrayBuffer = (value) => objectToString2.call(value) === "[object ArrayBuffer]";+var isArrayBuffer2 = (value) => objectToString2.call(value) === "[object ArrayBuffer]";var isUint8Array = (value) => objectToString2.call(value) === "[object Uint8Array]";var bufferToUint8Array = (buffer) => new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);-var textEncoder = new TextEncoder;-var stringToUint8Array = (string) => textEncoder.encode(string);+var textEncoder2 = new TextEncoder;+var stringToUint8Array = (string) => textEncoder2.encode(string);var textDecoder = new TextDecoder;var uint8ArrayToString = (uint8Array) => textDecoder.decode(uint8Array);var joinToString = (uint8ArraysOrStrings, encoding) => {@@ -60234,7 +73998,7 @@ var parseExpression = (expression) => {if (typeOfExpression === "number") {return String(expression);}- if (isPlainObject(expression) && (("stdout" in expression) || ("isMaxBuffer" in expression))) {+ if (isPlainObject2(expression) && (("stdout" in expression) || ("isMaxBuffer" in expression))) {return getSubprocessResult(expression);}if (expression instanceof ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {@@ -60263,7 +74027,7 @@ import { debuglog } from "node:util";// node_modules/execa/lib/utils/standard-stream.jsimport process3 from "node:process";-var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);+var isStandardStream = (stream4) => STANDARD_STREAMS.includes(stream4);var STANDARD_STREAMS = [process3.stdin, process3.stdout, process3.stderr];var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;@@ -60282,7 +74046,7 @@ var normalizeFdSpecificOption = (options, optionName) => {return addDefaultValue(optionArray, optionName);};var getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;-var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);+var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject2(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);var normalizeOptionObject = (optionValue, optionArray, optionName) => {for (const fdName of Object.keys(optionValue).sort(compareFdName)) {for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {@@ -61710,7 +75474,7 @@ var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {};// node_modules/execa/lib/ipc/forward.js-import { EventEmitter as EventEmitter3 } from "node:events";+import { EventEmitter as EventEmitter4 } from "node:events";// node_modules/execa/lib/ipc/incoming.jsimport { once as once2 } from "node:events";@@ -61792,7 +75556,7 @@ var getIpcEmitter = (anyProcess, channel, isSubprocess) => {if (IPC_EMITTERS.has(anyProcess)) {return IPC_EMITTERS.get(anyProcess);}- const ipcEmitter = new EventEmitter3;+ const ipcEmitter = new EventEmitter4;ipcEmitter.connected = true;IPC_EMITTERS.set(anyProcess, ipcEmitter);forwardEvents({@@ -62312,7 +76076,7 @@ var addDefaultOptions = ({encoding = "utf8",reject = true,cleanup = true,- all = false,+ all: all2 = false,windowsHide = true,killSignal = "SIGTERM",forceKillAfterDelay = true,@@ -62330,7 +76094,7 @@ var addDefaultOptions = ({encoding,reject,cleanup,- all,+ all: all2,windowsHide,killSignal,forceKillAfterDelay,@@ -62379,17 +76143,17 @@ import { on } from "node:events";import { finished } from "node:stream/promises";// node_modules/is-stream/index.js-function isStream(stream, { checkOpen = true } = {}) {- return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === undefined && stream.readable === undefined) && typeof stream.pipe === "function";+function isStream2(stream4, { checkOpen = true } = {}) {+ return stream4 !== null && typeof stream4 === "object" && (stream4.writable || stream4.readable || !checkOpen || stream4.writable === undefined && stream4.readable === undefined) && typeof stream4.pipe === "function";}-function isWritableStream(stream, { checkOpen = true } = {}) {- return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";+function isWritableStream(stream4, { checkOpen = true } = {}) {+ return isStream2(stream4, { checkOpen }) && (stream4.writable || !checkOpen) && typeof stream4.write === "function" && typeof stream4.end === "function" && typeof stream4.writable === "boolean" && typeof stream4.writableObjectMode === "boolean" && typeof stream4.destroy === "function" && typeof stream4.destroyed === "boolean";}-function isReadableStream(stream, { checkOpen = true } = {}) {- return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";+function isReadableStream2(stream4, { checkOpen = true } = {}) {+ return isStream2(stream4, { checkOpen }) && (stream4.readable || !checkOpen) && typeof stream4.read === "function" && typeof stream4.readable === "boolean" && typeof stream4.readableObjectMode === "boolean" && typeof stream4.destroy === "function" && typeof stream4.destroyed === "boolean";}-function isDuplexStream(stream, options) {- return isWritableStream(stream, options) && isReadableStream(stream, options);+function isDuplexStream(stream4, options) {+ return isWritableStream(stream4, options) && isReadableStream2(stream4, options);}// node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js@@ -62474,25 +76238,25 @@ function h2({ preventCancel: r2 = false } = {}) {}// node_modules/get-stream/source/stream.js-var getAsyncIterable = (stream) => {- if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== undefined) {- return getStreamIterable(stream);+var getAsyncIterable = (stream4) => {+ if (isReadableStream2(stream4, { checkOpen: false }) && nodeImports.on !== undefined) {+ return getStreamIterable(stream4);}- if (typeof stream?.[Symbol.asyncIterator] === "function") {- return stream;+ if (typeof stream4?.[Symbol.asyncIterator] === "function") {+ return stream4;}- if (toString.call(stream) === "[object ReadableStream]") {- return h2.call(stream);+ if (toString3.call(stream4) === "[object ReadableStream]") {+ return h2.call(stream4);}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");};-var { toString } = Object.prototype;-var getStreamIterable = async function* (stream) {+var { toString: toString3 } = Object.prototype;+var getStreamIterable = async function* (stream4) {const controller = new AbortController;const state = {};- handleStreamEnd(stream, controller, state);+ handleStreamEnd(stream4, controller, state);try {- for await (const [chunk] of nodeImports.on(stream, "data", { signal: controller.signal })) {+ for await (const [chunk] of nodeImports.on(stream4, "data", { signal: controller.signal })) {yield chunk;}} catch (error) {@@ -62502,12 +76266,12 @@ var getStreamIterable = async function* (stream) {throw error;}} finally {- stream.destroy();+ stream4.destroy();}};-var handleStreamEnd = async (stream, controller, state) => {+var handleStreamEnd = async (stream4, controller, state) => {try {- await nodeImports.finished(stream, {+ await nodeImports.finished(stream4, {cleanup: true,readable: true,writable: false,@@ -62522,8 +76286,8 @@ var handleStreamEnd = async (stream, controller, state) => {var nodeImports = {};// node_modules/get-stream/source/contents.js-var getStreamContents = async (stream, { init: init2, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {- const asyncIterable = getAsyncIterable(stream);+var getStreamContents = async (stream4, { init: init2, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {+ const asyncIterable = getAsyncIterable(stream4);const state = init2();state.length = 0;try {@@ -62619,7 +76383,7 @@ class MaxBufferError extends Error {// node_modules/get-stream/source/utils.jsvar identity2 = (value) => value;-var noop = () => {+var noop2 = () => {return;};var getContentsProperty = ({ contents }) => contents;@@ -62629,8 +76393,8 @@ var throwObjectStream = (chunk) => {var getLengthProperty = (convertedChunk) => convertedChunk.length;// node_modules/get-stream/source/array.js-async function getStreamAsArray(stream, options) {- return getStreamContents(stream, arrayMethods, options);+async function getStreamAsArray(stream4, options) {+ return getStreamContents(stream4, arrayMethods, options);}var initArray = () => ({ contents: [] });var increment = () => 1;@@ -62649,18 +76413,18 @@ var arrayMethods = {others: identity2},getSize: increment,- truncateChunk: noop,+ truncateChunk: noop2,addChunk: addArrayChunk,- getFinalChunk: noop,+ getFinalChunk: noop2,finalize: getContentsProperty};// node_modules/get-stream/source/array-buffer.js-async function getStreamAsArrayBuffer(stream, options) {- return getStreamContents(stream, arrayBufferMethods, options);+async function getStreamAsArrayBuffer(stream4, options) {+ return getStreamContents(stream4, arrayBufferMethods, options);}var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });-var useTextEncoder = (chunk) => textEncoder2.encode(chunk);-var textEncoder2 = new TextEncoder;+var useTextEncoder = (chunk) => textEncoder3.encode(chunk);+var textEncoder3 = new TextEncoder;var useUint8Array = (chunk) => new Uint8Array(chunk);var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);@@ -62703,12 +76467,12 @@ var arrayBufferMethods = {getSize: getLengthProperty,truncateChunk: truncateArrayBufferChunk,addChunk: addArrayBufferChunk,- getFinalChunk: noop,+ getFinalChunk: noop2,finalize: finalizeArrayBuffer};// node_modules/get-stream/source/string.js-async function getStreamAsString(stream, options) {- return getStreamContents(stream, stringMethods, options);+async function getStreamAsString(stream4, options) {+ return getStreamContents(stream4, stringMethods, options);}var initString = () => ({ contents: "", textDecoder: new TextDecoder });var useTextDecoder = (chunk, { textDecoder: textDecoder2 }) => textDecoder2.decode(chunk, { stream: true });@@ -62738,7 +76502,7 @@ var stringMethods = {Object.assign(nodeImports, { on, finished });// node_modules/execa/lib/io/max-buffer.js-var handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {+var handleMaxBuffer = ({ error, stream: stream4, readableObjectMode, lines, encoding, fdNumber }) => {if (!(error instanceof MaxBufferError)) {throw error;}@@ -62747,7 +76511,7 @@ var handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdN}const unit = getMaxBufferUnit(readableObjectMode, lines, encoding);error.maxBufferInfo = { fdNumber, unit };- stream.destroy();+ stream4.destroy();throw error;};var getMaxBufferUnit = (readableObjectMode, lines, encoding) => {@@ -62799,7 +76563,7 @@ var getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;// node_modules/execa/lib/return/message.jsvar createMessages = ({stdio,- all,+ all: all2,ipcOutput,originalError,signal,@@ -62838,7 +76602,7 @@ var createMessages = ({const suffix = originalMessage === undefined ? "" : `${originalMessage}`;const shortMessage = `${prefix}: ${escapedCommand}${suffix}`;- const messageStdio = all === undefined ? [stdio[2], stdio[1]] : [all];+ const messageStdio = all2 === undefined ? [stdio[2], stdio[1]] : [all2];const message = [shortMessage,...messageStdio,@@ -62923,7 +76687,7 @@ var makeSuccessResult = ({command,escapedCommand,stdio,- all,+ all: all2,ipcOutput,options: { cwd },startTime@@ -62942,7 +76706,7 @@ var makeSuccessResult = ({exitCode: 0,stdout: stdio[1],stderr: stdio[2],- all,+ all: all2,stdio,ipcOutput,pipedFrom: []@@ -62983,7 +76747,7 @@ var makeError = ({exitCode: rawExitCode,signal: rawSignal,stdio,- all,+ all: all2,ipcOutput,options: {timeoutDuration,@@ -62998,7 +76762,7 @@ var makeError = ({const { exitCode, signal, signalDescription } = normalizeExitPayload(rawExitCode, rawSignal);const { originalMessage, shortMessage, message } = createMessages({stdio,- all,+ all: all2,ipcOutput,originalError,signal,@@ -63031,7 +76795,7 @@ var makeError = ({signal,signalDescription,stdio,- all,+ all: all2,ipcOutput,cwd,originalMessage,@@ -63053,7 +76817,7 @@ var getErrorProperties = ({signal,signalDescription,stdio,- all,+ all: all2,ipcOutput,cwd,originalMessage,@@ -63078,7 +76842,7 @@ var getErrorProperties = ({code: error.cause?.code,stdout: stdio[1],stderr: stdio[2],- all,+ all: all2,stdio,ipcOutput,pipedFrom: []@@ -63283,7 +77047,7 @@ var getStdioItemType = (value, optionName) => {if (isWebStream(value)) {return "webStream";}- if (isStream(value, { checkOpen: false })) {+ if (isStream2(value, { checkOpen: false })) {return "native";}if (isUint8Array(value)) {@@ -63355,21 +77119,21 @@ var checkBooleanOption = (value, optionName) => {var isGenerator = (value) => isAsyncGenerator(value) || isSyncGenerator(value);var isAsyncGenerator = (value) => Object.prototype.toString.call(value) === "[object AsyncGeneratorFunction]";var isSyncGenerator = (value) => Object.prototype.toString.call(value) === "[object GeneratorFunction]";-var isTransformOptions = (value) => isPlainObject(value) && (value.transform !== undefined || value.final !== undefined);+var isTransformOptions = (value) => isPlainObject2(value) && (value.transform !== undefined || value.final !== undefined);var isUrl = (value) => Object.prototype.toString.call(value) === "[object URL]";var isRegularUrl = (value) => isUrl(value) && value.protocol !== "file:";-var isFilePathObject = (value) => isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value).every((key) => FILE_PATH_KEYS.has(key)) && isFilePathString(value.file);+var isFilePathObject = (value) => isPlainObject2(value) && Object.keys(value).length > 0 && Object.keys(value).every((key) => FILE_PATH_KEYS.has(key)) && isFilePathString(value.file);var FILE_PATH_KEYS = new Set(["file", "append"]);var isFilePathString = (file) => typeof file === "string";var isUnknownStdioString = (type, value) => type === "native" && typeof value === "string" && !KNOWN_STDIO_STRINGS.has(value);var KNOWN_STDIO_STRINGS = new Set(["ipc", "ignore", "inherit", "overlapped", "pipe"]);-var isReadableStream2 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";+var isReadableStream3 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";var isWritableStream2 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";-var isWebStream = (value) => isReadableStream2(value) || isWritableStream2(value);-var isTransformStream = (value) => isReadableStream2(value?.readable) && isWritableStream2(value?.writable);-var isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";-var isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";-var isObject = (value) => typeof value === "object" && value !== null;+var isWebStream = (value) => isReadableStream3(value) || isWritableStream2(value);+var isTransformStream = (value) => isReadableStream3(value?.readable) && isWritableStream2(value?.writable);+var isAsyncIterableObject = (value) => isObject2(value) && typeof value[Symbol.asyncIterator] === "function";+var isIterableObject = (value) => isObject2(value) && typeof value[Symbol.iterator] === "function";+var isObject2 = (value) => typeof value === "object" && value !== null;var TRANSFORM_TYPES = new Set(["generator", "asyncGenerator", "duplex", "webTransform"]);var FILE_TYPES = new Set(["fileUrl", "filePath", "fileNumber"]);var SPECIAL_DUPLICATE_TYPES_SYNC = new Set(["fileUrl", "filePath"]);@@ -63475,7 +77239,7 @@ var normalizeDuplex = ({};};var normalizeTransformStream = ({ stdioItem, stdioItem: { value }, index, newTransforms, direction }) => {- const { transform, objectMode } = isPlainObject(value) ? value : { transform: value };+ const { transform, objectMode } = isPlainObject2(value) ? value : { transform: value };const { writableObjectMode, readableObjectMode } = getTransformObjectModes(objectMode, index, newTransforms, direction);return {...stdioItem,@@ -63489,7 +77253,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransformbinary: binaryOption = false,preserveNewlines = false,objectMode- } = isPlainObject(value) ? value : { transform: value };+ } = isPlainObject2(value) ? value : { transform: value };const binary = binaryOption || BINARY_ENCODINGS.has(encoding);const { writableObjectMode, readableObjectMode } = getTransformObjectModes(objectMode, index, newTransforms, direction);return {@@ -63531,7 +77295,7 @@ var guessStreamDirection = {uint8Array: alwaysInput,webStream: (value) => isWritableStream2(value) ? "output" : "input",nodeStream(value) {- if (!isReadableStream(value, { checkOpen: false })) {+ if (!isReadableStream2(value, { checkOpen: false })) {return "output";}return isWritableStream(value, { checkOpen: false }) ? undefined : "input";@@ -63543,7 +77307,7 @@ var guessStreamDirection = {if (standardStreamDirection !== undefined) {return standardStreamDirection;}- if (isStream(value, { checkOpen: false })) {+ if (isStream2(value, { checkOpen: false })) {return guessStreamDirection.nodeStream(value);}}@@ -63614,7 +77378,7 @@ var handleNativeStreamSync = ({ stdioItem, stdioItem: { value, optionName }, fdNif (targetFd !== undefined) {return targetFd;}- if (isStream(value, { checkOpen: false })) {+ if (isStream2(value, { checkOpen: false })) {throw new TypeError(`The \`${optionName}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);}return stdioItem;@@ -63651,7 +77415,7 @@ var handleNativeStreamAsync = ({ stdioItem, stdioItem: { value, optionName }, fdif (typeof value === "number") {return { type: "nodeStream", value: getStandardStream(value, value, optionName), optionName };}- if (isStream(value, { checkOpen: false })) {+ if (isStream2(value, { checkOpen: false })) {return { type: "nodeStream", value, optionName };}return stdioItem;@@ -63675,7 +77439,7 @@ var handleInputOption = (input) => input === undefined ? [] : [{optionName: "input"}];var getInputType = (input) => {- if (isReadableStream(input, { checkOpen: false })) {+ if (isReadableStream2(input, { checkOpen: false })) {return "nodeStream";}if (typeof input === "string") {@@ -63920,9 +77684,9 @@ var addStreamProperties = ({ stdioItem, addProperties, direction, options, fileD};var cleanupCustomStreams = (fileDescriptors) => {for (const { stdioItems } of fileDescriptors) {- for (const { stream } of stdioItems) {- if (stream !== undefined && !isStandardStream(stream)) {- stream.destroy();+ for (const { stream: stream4 } of stdioItems) {+ if (stream4 !== undefined && !isStandardStream(stream4)) {+ stream4.destroy();}}}@@ -63973,7 +77737,7 @@ var addPropertiesSync = {output: {...addProperties,fileUrl: ({ value }) => ({ path: value }),- filePath: ({ value: { file, append: append2 } }) => ({ path: file, append: append2 }),+ filePath: ({ value: { file, append: append3 } }) => ({ path: file, append: append3 }),fileNumber: ({ value }) => ({ path: value }),iterable: forbiddenIfSync,string: forbiddenIfSync,@@ -64117,11 +77881,11 @@ var getEncodingTransformGenerator = (binary, encoding, skipped) => {final: encodingStringFinal.bind(undefined, stringDecoder)};};-var encodingUint8ArrayGenerator = function* (textEncoder3, chunk) {+var encodingUint8ArrayGenerator = function* (textEncoder4, chunk) {if (Buffer3.isBuffer(chunk)) {yield bufferToUint8Array(chunk);} else if (typeof chunk === "string") {- yield textEncoder3.encode(chunk);+ yield textEncoder4.encode(chunk);} else {yield chunk;}@@ -64137,8 +77901,8 @@ var encodingStringFinal = function* (stringDecoder) {};// node_modules/execa/lib/transform/run-async.js-import { callbackify } from "node:util";-var pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {+import { callbackify as callbackify2 } from "node:util";+var pushChunks = callbackify2(async (getChunks, state, getChunksArguments, transformStream) => {state.currentIterable = getChunks(...getChunksArguments);try {for await (const chunk of state.currentIterable) {@@ -64171,7 +77935,7 @@ var generatorFinalChunks = async function* (final, index, generators) {yield* transformChunk(finalChunk, generators, index + 1);}};-var destroyTransform = callbackify(async ({ currentIterable }, error) => {+var destroyTransform = callbackify2(async ({ currentIterable }, error) => {if (currentIterable !== undefined) {await (error ? currentIterable.throw(error) : currentIterable.return());return;@@ -64239,7 +78003,7 @@ var generatorToStream = ({const transformMethod = transformAsync ? pushChunks.bind(undefined, transformChunk, state) : pushChunksSync.bind(undefined, transformChunkSync);const finalMethod = transformAsync || finalAsync ? pushChunks.bind(undefined, finalChunks, state) : pushChunksSync.bind(undefined, finalChunksSync);const destroyMethod = transformAsync || finalAsync ? destroyTransform.bind(undefined, state) : undefined;- const stream = new Transform({+ const stream4 = new Transform({writableObjectMode,writableHighWaterMark: getDefaultHighWaterMark(writableObjectMode),readableObjectMode,@@ -64252,7 +78016,7 @@ var generatorToStream = ({},destroy: destroyMethod});- return { stream };+ return { stream: stream4 };};var runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {const generators = stdioItems.filter(({ type }) => type === "generator");@@ -64320,9 +78084,9 @@ import { writeFileSync, appendFileSync } from "node:fs";var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));var fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;var PIPED_STDIO_VALUES = new Set(["pipe", "overlapped"]);-var logLines = async (linesIterable, stream, fdNumber, verboseInfo) => {+var logLines = async (linesIterable, stream4, fdNumber, verboseInfo) => {for await (const line of linesIterable) {- if (!isPipingStream(stream)) {+ if (!isPipingStream(stream4)) {logLine(line, fdNumber, verboseInfo);}}@@ -64332,7 +78096,7 @@ var logLinesSync = (linesArray, fdNumber, verboseInfo) => {logLine(line, fdNumber, verboseInfo);}};-var isPipingStream = (stream) => stream._readableState.pipes.length > 0;+var isPipingStream = (stream4) => stream4._readableState.pipes.length > 0;var logLine = (line, fdNumber, verboseInfo) => {const verboseMessage = serializeVerboseMessage(line);verboseLog({@@ -64435,9 +78199,9 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,}};var writeToFiles = (serializedResult, stdioItems, outputFiles) => {- for (const { path: path10, append: append2 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {+ for (const { path: path10, append: append3 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {const pathString = typeof path10 === "string" ? path10 : path10.toString();- if (append2 || outputFiles.has(pathString)) {+ if (append3 || outputFiles.has(pathString)) {appendFileSync(path10, serializedResult);} else {outputFiles.add(pathString);@@ -64595,7 +78359,7 @@ var spawnSubprocessSync = ({ file, commandArguments, options, command, escapedCoverboseInfo});const stdio = output.map((stdioOutput, fdNumber) => stripNewline(stdioOutput, options, fdNumber));- const all = stripNewline(getAllSync(output, options), options, "all");+ const all2 = stripNewline(getAllSync(output, options), options, "all");return getSyncResult({error,exitCode,@@ -64603,7 +78367,7 @@ var spawnSubprocessSync = ({ file, commandArguments, options, command, escapedCotimedOut,isMaxBuffer,stdio,- all,+ all: all2,options,command,escapedCommand,@@ -64628,11 +78392,11 @@ var runSubprocessSync = ({ file, commandArguments, options, command, escapedComm}};var normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({ ...options, encoding: "buffer", maxBuffer: getMaxBufferSync(maxBuffer) });-var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, all, options, command, escapedCommand, startTime }) => error === undefined ? makeSuccessResult({+var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, all: all2, options, command, escapedCommand, startTime }) => error === undefined ? makeSuccessResult({command,escapedCommand,stdio,- all,+ all: all2,ipcOutput: [],options,startTime@@ -64648,7 +78412,7 @@ var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, alexitCode,signal,stdio,- all,+ all: all2,ipcOutput: [],options,startTime,@@ -64664,7 +78428,7 @@ import process9 from "node:process";// node_modules/execa/lib/ipc/get-one.jsimport { once as once5, on as on2 } from "node:events";-var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {+var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter: filter2 } = {}) => {validateIpcMethod({methodName: "getOneMessage",isSubprocess,@@ -64675,17 +78439,17 @@ var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = tanyProcess,channel,isSubprocess,- filter,+ filter: filter2,reference});};-var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, reference }) => {+var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter: filter2, reference }) => {addReference(channel, reference);const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);const controller = new AbortController;try {return await Promise.race([- getMessage(ipcEmitter, filter, controller),+ getMessage(ipcEmitter, filter2, controller),throwOnDisconnect2(ipcEmitter, isSubprocess, controller),throwOnStrictError(ipcEmitter, isSubprocess, controller)]);@@ -64697,13 +78461,13 @@ var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, refremoveReference(channel, reference);}};-var getMessage = async (ipcEmitter, filter, { signal }) => {- if (filter === undefined) {+var getMessage = async (ipcEmitter, filter2, { signal }) => {+ if (filter2 === undefined) {const [message] = await once5(ipcEmitter, "message", { signal });return message;}for await (const [message] of on2(ipcEmitter, "message", { signal })) {- if (filter(message)) {+ if (filter2(message)) {return message;}}@@ -64839,7 +78603,7 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({import { ChildProcess as ChildProcess2 } from "node:child_process";import {PassThrough,- Readable as Readable2,+ Readable as Readable3,Writable,Duplex} from "node:stream";@@ -64865,22 +78629,22 @@ var createDummyStreams = (subprocess, fileDescriptors) => {const stdout = createDummyStream();const stderr = createDummyStream();const extraStdio = Array.from({ length: fileDescriptors.length - 3 }, createDummyStream);- const all = createDummyStream();+ const all2 = createDummyStream();const stdio = [stdin, stdout, stderr, ...extraStdio];Object.assign(subprocess, {stdin,stdout,stderr,- all,+ all: all2,stdio});};var createDummyStream = () => {- const stream = new PassThrough;- stream.end();- return stream;+ const stream4 = new PassThrough;+ stream4.end();+ return stream4;};-var readable = () => new Readable2({ read() {+var readable = () => new Readable3({ read() {} });var writable = () => new Writable({ write() {} });@@ -64892,7 +78656,7 @@ var handleDummyPromise = async (error, verboseInfo, options) => handleResult2(er// node_modules/execa/lib/stdio/handle-async.jsimport { createReadStream, createWriteStream } from "node:fs";import { Buffer as Buffer4 } from "node:buffer";-import { Readable as Readable3, Writable as Writable2, Duplex as Duplex2 } from "node:stream";+import { Readable as Readable4, Writable as Writable2, Duplex as Duplex2 } from "node:stream";var handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);var forbiddenIfAsync = ({ type, optionName }) => {throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);@@ -64904,8 +78668,8 @@ var addProperties2 = {nodeStream: ({ value }) => ({ stream: value }),webTransform({ value: { transform, writableObjectMode, readableObjectMode } }) {const objectMode = writableObjectMode || readableObjectMode;- const stream = Duplex2.fromWeb(transform, { objectMode });- return { stream };+ const stream4 = Duplex2.fromWeb(transform, { objectMode });+ return { stream: stream4 };},duplex: ({ value: { transform } }) => ({ stream: transform }),native() {@@ -64916,16 +78680,16 @@ var addPropertiesAsync = {...addProperties2,fileUrl: ({ value }) => ({ stream: createReadStream(value) }),filePath: ({ value: { file } }) => ({ stream: createReadStream(file) }),- webStream: ({ value }) => ({ stream: Readable3.fromWeb(value) }),- iterable: ({ value }) => ({ stream: Readable3.from(value) }),- asyncIterable: ({ value }) => ({ stream: Readable3.from(value) }),- string: ({ value }) => ({ stream: Readable3.from(value) }),- uint8Array: ({ value }) => ({ stream: Readable3.from(Buffer4.from(value)) })+ webStream: ({ value }) => ({ stream: Readable4.fromWeb(value) }),+ iterable: ({ value }) => ({ stream: Readable4.from(value) }),+ asyncIterable: ({ value }) => ({ stream: Readable4.from(value) }),+ string: ({ value }) => ({ stream: Readable4.from(value) }),+ uint8Array: ({ value }) => ({ stream: Readable4.from(Buffer4.from(value)) })},output: {...addProperties2,fileUrl: ({ value }) => ({ stream: createWriteStream(value) }),- filePath: ({ value: { file, append: append2 } }) => ({ stream: createWriteStream(file, append2 ? { flags: "a" } : {}) }),+ filePath: ({ value: { file, append: append3 } }) => ({ stream: createWriteStream(file, append3 ? { flags: "a" } : {}) }),webStream: ({ value }) => ({ stream: Writable2.fromWeb(value) }),iterable: forbiddenIfAsync,asyncIterable: forbiddenIfAsync,@@ -64942,8 +78706,8 @@ function mergeStreams(streams) {if (!Array.isArray(streams)) {throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);}- for (const stream of streams) {- validateStream(stream);+ for (const stream4 of streams) {+ validateStream(stream4);}const objectMode = streams.some(({ readableObjectMode }) => readableObjectMode);const highWaterMark = getHighWaterMark(streams, objectMode);@@ -64952,8 +78716,8 @@ function mergeStreams(streams) {writableHighWaterMark: highWaterMark,readableHighWaterMark: highWaterMark});- for (const stream of streams) {- passThroughStream.add(stream);+ for (const stream4 of streams) {+ passThroughStream.add(stream4);}return passThroughStream;}@@ -64972,36 +78736,36 @@ class MergedStream extends PassThroughStream {#onFinished;#unpipeEvent = Symbol("unpipe");#streamPromises = new WeakMap;- add(stream) {- validateStream(stream);- if (this.#streams.has(stream)) {+ add(stream4) {+ validateStream(stream4);+ if (this.#streams.has(stream4)) {return;}- this.#streams.add(stream);+ this.#streams.add(stream4);this.#onFinished ??= onMergedStreamFinished(this, this.#streams, this.#unpipeEvent);const streamPromise = endWhenStreamsDone({passThroughStream: this,- stream,+ stream: stream4,streams: this.#streams,ended: this.#ended,aborted: this.#aborted,onFinished: this.#onFinished,unpipeEvent: this.#unpipeEvent});- this.#streamPromises.set(stream, streamPromise);- stream.pipe(this, { end: false });+ this.#streamPromises.set(stream4, streamPromise);+ stream4.pipe(this, { end: false });}- async remove(stream) {- validateStream(stream);- if (!this.#streams.has(stream)) {+ async remove(stream4) {+ validateStream(stream4);+ if (!this.#streams.has(stream4)) {return false;}- const streamPromise = this.#streamPromises.get(stream);+ const streamPromise = this.#streamPromises.get(stream4);if (streamPromise === undefined) {return false;}- this.#streamPromises.delete(stream);- stream.unpipe(this);+ this.#streamPromises.delete(stream4);+ stream4.unpipe(this);await streamPromise;return true;}@@ -65034,27 +78798,27 @@ var onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { sig}}};-var validateStream = (stream) => {- if (typeof stream?.pipe !== "function") {- throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);+var validateStream = (stream4) => {+ if (typeof stream4?.pipe !== "function") {+ throw new TypeError(`Expected a readable stream, got: \`${typeof stream4}\`.`);}};-var endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {+var endWhenStreamsDone = async ({ passThroughStream, stream: stream4, streams, ended, aborted, onFinished, unpipeEvent }) => {updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);const controller = new AbortController;try {await Promise.race([- afterMergedStreamFinished(onFinished, stream, controller),+ afterMergedStreamFinished(onFinished, stream4, controller),onInputStreamEnd({passThroughStream,- stream,+ stream: stream4,streams,ended,aborted,controller}),onInputStreamUnpipe({- stream,+ stream: stream4,streams,ended,aborted,@@ -65074,74 +78838,74 @@ var endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, abo}}};-var afterMergedStreamFinished = async (onFinished, stream, { signal }) => {+var afterMergedStreamFinished = async (onFinished, stream4, { signal }) => {try {await onFinished;if (!signal.aborted) {- abortStream(stream);+ abortStream(stream4);}} catch (error) {if (!signal.aborted) {- errorOrAbortStream(stream, error);+ errorOrAbortStream(stream4, error);}}};-var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {+var onInputStreamEnd = async ({ passThroughStream, stream: stream4, streams, ended, aborted, controller: { signal } }) => {try {- await finished2(stream, {+ await finished2(stream4, {signal,cleanup: true,readable: true,writable: false});- if (streams.has(stream)) {- ended.add(stream);+ if (streams.has(stream4)) {+ ended.add(stream4);}} catch (error) {- if (signal.aborted || !streams.has(stream)) {+ if (signal.aborted || !streams.has(stream4)) {return;}if (isAbortError(error)) {- aborted.add(stream);+ aborted.add(stream4);} else {errorStream(passThroughStream, error);}}};-var onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {- await once7(stream, unpipeEvent, { signal });- if (!stream.readable) {+var onInputStreamUnpipe = async ({ stream: stream4, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {+ await once7(stream4, unpipeEvent, { signal });+ if (!stream4.readable) {return once7(signal, "abort", { signal });}- streams.delete(stream);- ended.delete(stream);- aborted.delete(stream);+ streams.delete(stream4);+ ended.delete(stream4);+ aborted.delete(stream4);};-var endStream = (stream) => {- if (stream.writable) {- stream.end();+var endStream = (stream4) => {+ if (stream4.writable) {+ stream4.end();}};-var errorOrAbortStream = (stream, error) => {+var errorOrAbortStream = (stream4, error) => {if (isAbortError(error)) {- abortStream(stream);+ abortStream(stream4);} else {- errorStream(stream, error);+ errorStream(stream4, error);}};var isAbortError = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";-var abortStream = (stream) => {- if (stream.readable || stream.writable) {- stream.destroy();+var abortStream = (stream4) => {+ if (stream4.readable || stream4.writable) {+ stream4.destroy();}};-var errorStream = (stream, error) => {- if (!stream.destroyed) {- stream.once("error", noop2);- stream.destroy(error);+var errorStream = (stream4, error) => {+ if (!stream4.destroyed) {+ stream4.once("error", noop3);+ stream4.destroy(error);}};-var noop2 = () => {+var noop3 = () => {};var updateMaxListeners = (passThroughStream, increment2) => {const maxListeners = passThroughStream.getMaxListeners();@@ -65194,13 +78958,13 @@ var abortSourceStream = (source) => {var pipeOutputAsync = (subprocess, fileDescriptors, controller) => {const pipeGroups = new Map;for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {- for (const { stream } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) {- pipeTransform(subprocess, stream, direction, fdNumber);+ for (const { stream: stream4 } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) {+ pipeTransform(subprocess, stream4, direction, fdNumber);}- for (const { stream } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) {+ for (const { stream: stream4 } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) {pipeStdioItem({subprocess,- stream,+ stream: stream4,direction,fdNumber,pipeGroups,@@ -65213,31 +78977,31 @@ var pipeOutputAsync = (subprocess, fileDescriptors, controller) => {pipeStreams(inputStream, outputStream);}};-var pipeTransform = (subprocess, stream, direction, fdNumber) => {+var pipeTransform = (subprocess, stream4, direction, fdNumber) => {if (direction === "output") {- pipeStreams(subprocess.stdio[fdNumber], stream);+ pipeStreams(subprocess.stdio[fdNumber], stream4);} else {- pipeStreams(stream, subprocess.stdio[fdNumber]);+ pipeStreams(stream4, subprocess.stdio[fdNumber]);}const streamProperty = SUBPROCESS_STREAM_PROPERTIES[fdNumber];if (streamProperty !== undefined) {- subprocess[streamProperty] = stream;+ subprocess[streamProperty] = stream4;}- subprocess.stdio[fdNumber] = stream;+ subprocess.stdio[fdNumber] = stream4;};var SUBPROCESS_STREAM_PROPERTIES = ["stdin", "stdout", "stderr"];-var pipeStdioItem = ({ subprocess, stream, direction, fdNumber, pipeGroups, controller }) => {- if (stream === undefined) {+var pipeStdioItem = ({ subprocess, stream: stream4, direction, fdNumber, pipeGroups, controller }) => {+ if (stream4 === undefined) {return;}- setStandardStreamMaxListeners(stream, controller);- const [inputStream, outputStream] = direction === "output" ? [stream, subprocess.stdio[fdNumber]] : [subprocess.stdio[fdNumber], stream];+ setStandardStreamMaxListeners(stream4, controller);+ const [inputStream, outputStream] = direction === "output" ? [stream4, subprocess.stdio[fdNumber]] : [subprocess.stdio[fdNumber], stream4];const outputStreams = pipeGroups.get(inputStream) ?? [];pipeGroups.set(inputStream, [...outputStreams, outputStream]);};-var setStandardStreamMaxListeners = (stream, { signal }) => {- if (isStandardStream(stream)) {- incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);+var setStandardStreamMaxListeners = (stream4, { signal }) => {+ if (isStandardStream(stream4)) {+ incrementMaxListeners(stream4, MAX_LISTENERS_INCREMENT, signal);}};var MAX_LISTENERS_INCREMENT = 2;@@ -65660,7 +79424,7 @@ var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fil// node_modules/execa/lib/pipe/setup.jsvar pipeToSubprocess = (sourceInfo, ...pipeArguments) => {- if (isPlainObject(pipeArguments[0])) {+ if (isPlainObject2(pipeArguments[0])) {return pipeToSubprocess.bind(undefined, {...sourceInfo,boundOptions: { ...sourceInfo.boundOptions, ...pipeArguments[0] }@@ -65744,12 +79508,12 @@ var stopReadingOnExit = async (subprocess, controller) => {controller.abort();}};-var iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline2, allMixed }) => {+var iterateForResult = ({ stream: stream4, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline2, allMixed }) => {const controller = new AbortController;- stopReadingOnStreamEnd(onStreamEnd, controller, stream);- const objectMode = stream.readableObjectMode && !allMixed;+ stopReadingOnStreamEnd(onStreamEnd, controller, stream4);+ const objectMode = stream4.readableObjectMode && !allMixed;return iterateOnStream({- stream,+ stream: stream4,controller,binary: encoding === "buffer",shouldEncode: !objectMode,@@ -65758,17 +79522,17 @@ var iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewlinpreserveNewlines: !stripFinalNewline2});};-var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {+var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream4) => {try {await onStreamEnd;} catch {- stream.destroy();+ stream4.destroy();} finally {controller.abort();}};-var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {- const onStdoutChunk = on5(stream, "data", {+var iterateOnStream = ({ stream: stream4, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {+ const onStdoutChunk = on5(stream4, "data", {signal: controller.signal,highWaterMark: HIGH_WATER_MARK,highWatermark: HIGH_WATER_MARK@@ -65811,9 +79575,9 @@ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewl].filter(Boolean);// node_modules/execa/lib/io/contents.js-var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {+var getStreamOutput = async ({ stream: stream4, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {const logPromise = logOutputAsync({- stream,+ stream: stream4,onStreamEnd,fdNumber,encoding,@@ -65822,12 +79586,12 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,streamInfo});if (!buffer) {- await Promise.all([resumeStream(stream), logPromise]);+ await Promise.all([resumeStream(stream4), logPromise]);return;}const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline2, fdNumber);const iterable = iterateForResult({- stream,+ stream: stream4,onStreamEnd,lines,encoding,@@ -65836,7 +79600,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,});const [output] = await Promise.all([getStreamContents2({- stream,+ stream: stream4,iterable,fdNumber,encoding,@@ -65847,7 +79611,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,]);return output;};-var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {+var logOutputAsync = async ({ stream: stream4, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {if (!shouldLogOutput({stdioItems: fileDescriptors[fdNumber]?.stdioItems,encoding,@@ -65857,22 +79621,22 @@ var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed,return;}const linesIterable = iterateForResult({- stream,+ stream: stream4,onStreamEnd,lines: true,encoding,stripFinalNewline: true,allMixed});- await logLines(linesIterable, stream, fdNumber, verboseInfo);+ await logLines(linesIterable, stream4, fdNumber, verboseInfo);};-var resumeStream = async (stream) => {+var resumeStream = async (stream4) => {await setImmediate2();- if (stream.readableFlowing === null) {- stream.resume();+ if (stream4.readableFlowing === null) {+ stream4.resume();}};-var getStreamContents2 = async ({ stream, stream: { readableObjectMode }, iterable, fdNumber, encoding, maxBuffer, lines }) => {+var getStreamContents2 = async ({ stream: stream4, stream: { readableObjectMode }, iterable, fdNumber, encoding, maxBuffer, lines }) => {try {if (readableObjectMode || lines) {return await getStreamAsArray(iterable, { maxBuffer });@@ -65884,7 +79648,7 @@ var getStreamContents2 = async ({ stream, stream: { readableObjectMode }, iterab} catch (error) {return handleBufferedData(handleMaxBuffer({error,- stream,+ stream: stream4,readableObjectMode,lines,encoding,@@ -65899,17 +79663,17 @@ var getBufferedData = async (streamPromise) => {return handleBufferedData(error);}};-var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;+var handleBufferedData = ({ bufferedData }) => isArrayBuffer2(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;// node_modules/execa/lib/resolve/wait-stream.jsimport { finished as finished5 } from "node:stream/promises";-var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {- const state = handleStdinDestroy(stream, streamInfo);+var waitForStream = async (stream4, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {+ const state = handleStdinDestroy(stream4, streamInfo);const abortController = new AbortController;try {await Promise.race([...stopOnExit ? [streamInfo.exitPromise] : [],- finished5(stream, { cleanup: true, signal: abortController.signal })+ finished5(stream4, { cleanup: true, signal: abortController.signal })]);} catch (error) {if (!state.stdinCleanedUp) {@@ -65919,10 +79683,10 @@ var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopabortController.abort();}};-var handleStdinDestroy = (stream, { originalStreams: [originalStdin], subprocess }) => {+var handleStdinDestroy = (stream4, { originalStreams: [originalStdin], subprocess }) => {const state = { stdinCleanedUp: false };- if (stream === originalStdin) {- spyOnStdinDestroy(stream, subprocess, state);+ if (stream4 === originalStdin) {+ spyOnStdinDestroy(stream4, subprocess, state);}return state;};@@ -65955,8 +79719,8 @@ var isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";var isStreamEpipe = (error) => error?.code === "EPIPE";// node_modules/execa/lib/resolve/stdio.js-var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({- stream,+var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream4, fdNumber) => waitForSubprocessStream({+ stream: stream4,fdNumber,encoding,buffer: buffer[fdNumber],@@ -65967,18 +79731,18 @@ var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, strverboseInfo,streamInfo}));-var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {- if (!stream) {+var waitForSubprocessStream = async ({ stream: stream4, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {+ if (!stream4) {return;}- const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);+ const onStreamEnd = waitForStream(stream4, fdNumber, streamInfo);if (isInputFileDescriptor(streamInfo, fdNumber)) {await onStreamEnd;return;}const [output] = await Promise.all([getStreamOutput({- stream,+ stream: stream4,onStreamEnd,fdNumber,encoding,@@ -65996,7 +79760,7 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBu};// node_modules/execa/lib/resolve/all-async.js-var makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : undefined;+var makeAllStream = ({ stdout, stderr }, { all: all2 }) => all2 && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : undefined;var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({...getAllStream(subprocess, buffer),fdNumber: "all",@@ -66008,10 +79772,10 @@ var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFverboseInfo,streamInfo});-var getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) => {+var getAllStream = ({ stdout, stderr, all: all2 }, [, bufferStdout, bufferStderr]) => {const buffer = bufferStdout || bufferStderr;if (!buffer) {- return { stream: all, buffer };+ return { stream: all2, buffer };}if (!bufferStdout) {return { stream: stderr, buffer };@@ -66019,9 +79783,9 @@ var getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =>if (!bufferStderr) {return { stream: stdout, buffer };}- return { stream: all, buffer };+ return { stream: all2, buffer };};-var getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;+var getAllMixed = ({ all: all2, stdout, stderr }) => all2 && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;// node_modules/execa/lib/resolve/wait-subprocess.jsimport { once as once8 } from "node:events";@@ -66182,8 +79946,8 @@ var waitForSubprocessResult = async ({]);}};-var waitForOriginalStreams = (originalStreams, subprocess, streamInfo) => originalStreams.map((stream, fdNumber) => stream === subprocess.stdio[fdNumber] ? undefined : waitForStream(stream, fdNumber, streamInfo));-var waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors.flatMap(({ stdioItems }, fdNumber) => stdioItems.filter(({ value, stream = value }) => isStream(stream, { checkOpen: false }) && !isStandardStream(stream)).map(({ type, value, stream = value }) => waitForStream(stream, fdNumber, streamInfo, {+var waitForOriginalStreams = (originalStreams, subprocess, streamInfo) => originalStreams.map((stream4, fdNumber) => stream4 === subprocess.stdio[fdNumber] ? undefined : waitForStream(stream4, fdNumber, streamInfo));+var waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors.flatMap(({ stdioItems }, fdNumber) => stdioItems.filter(({ value, stream: stream4 = value }) => isStream2(stream4, { checkOpen: false }) && !isStandardStream(stream4)).map(({ type, value, stream: stream4 = value }) => waitForStream(stream4, fdNumber, streamInfo, {isSameDirection: TRANSFORM_TYPES.has(type),stopOnExit: type === "native"})));@@ -66198,12 +79962,12 @@ var initializeConcurrentStreams = () => ({writableFinal: new WeakMap,writableDestroy: new WeakMap});-var addConcurrentStream = (concurrentStreams, stream, waitName) => {+var addConcurrentStream = (concurrentStreams, stream4, waitName) => {const weakMap = concurrentStreams[waitName];- if (!weakMap.has(stream)) {- weakMap.set(stream, []);+ if (!weakMap.has(stream4)) {+ weakMap.set(stream4, []);}- const promises = weakMap.get(stream);+ const promises = weakMap.get(stream4);const promise = createDeferred2();promises.push(promise);const resolve = promise.resolve.bind(promise);@@ -66219,8 +79983,8 @@ var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {};// node_modules/execa/lib/convert/readable.js-import { Readable as Readable4 } from "node:stream";-import { callbackify as callbackify2 } from "node:util";+import { Readable as Readable5 } from "node:stream";+import { callbackify as callbackify3 } from "node:util";// node_modules/execa/lib/convert/shared.jsimport { finished as finished6 } from "node:stream/promises";@@ -66254,11 +80018,11 @@ var waitForSubprocess = async (subprocess, error) => {throw error;}};-var destroyOtherStream = (stream, isOpen, error) => {+var destroyOtherStream = (stream4, isOpen, error) => {if (error && !isStreamAbort(error)) {- stream.destroy(error);+ stream4.destroy(error);} else if (isOpen) {- stream.destroy();+ stream4.destroy();}};@@ -66274,9 +80038,9 @@ var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binarencoding,preserveNewlines});- const readable2 = new Readable4({+ const readable2 = new Readable5({read,- destroy: callbackify2(onReadableDestroy.bind(undefined, { subprocessStdout, subprocess, waitReadableDestroy })),+ destroy: callbackify3(onReadableDestroy.bind(undefined, { subprocessStdout, subprocess, waitReadableDestroy })),highWaterMark: readableHighWaterMark,objectMode: readableObjectMode,encoding: readableEncoding@@ -66343,18 +80107,18 @@ var onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestrawait waitForSubprocess(subprocess, error);}};-var destroyOtherReadable = (stream, error) => {- destroyOtherStream(stream, stream.readable, error);+var destroyOtherReadable = (stream4, error) => {+ destroyOtherStream(stream4, stream4.readable, error);};// node_modules/execa/lib/convert/writable.jsimport { Writable as Writable3 } from "node:stream";-import { callbackify as callbackify3 } from "node:util";+import { callbackify as callbackify4 } from "node:util";var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);const writable2 = new Writable3({...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),- destroy: callbackify3(onWritableDestroy.bind(undefined, {+ destroy: callbackify4(onWritableDestroy.bind(undefined, {subprocessStdin,subprocess,waitWritableFinal,@@ -66374,7 +80138,7 @@ var getSubprocessStdin = (subprocess, to, concurrentStreams) => {};var getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({write: onWrite.bind(undefined, subprocessStdin),- final: callbackify3(onWritableFinal.bind(undefined, subprocessStdin, subprocess, waitWritableFinal))+ final: callbackify4(onWritableFinal.bind(undefined, subprocessStdin, subprocess, waitWritableFinal))});var onWrite = (subprocessStdin, chunk, encoding, done) => {if (subprocessStdin.write(chunk, encoding)) {@@ -66409,13 +80173,13 @@ var onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal,await waitForSubprocess(subprocess, error);}};-var destroyOtherWritable = (stream, error) => {- destroyOtherStream(stream, stream.writable, error);+var destroyOtherWritable = (stream4, error) => {+ destroyOtherStream(stream4, stream4.writable, error);};// node_modules/execa/lib/convert/duplex.jsimport { Duplex as Duplex3 } from "node:stream";-import { callbackify as callbackify4 } from "node:util";+import { callbackify as callbackify5 } from "node:util";var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {const binary = binaryOption || BINARY_ENCODINGS.has(encoding);const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);@@ -66431,7 +80195,7 @@ var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binconst duplex2 = new Duplex3({read,...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),- destroy: callbackify4(onDuplexDestroy.bind(undefined, {+ destroy: callbackify5(onDuplexDestroy.bind(undefined, {subprocessStdout,subprocessStdin,subprocess,@@ -66508,14 +80272,14 @@ var addConvertedStreams = (subprocess, { encoding }) => {// node_modules/execa/lib/methods/promise.jsvar mergePromise = (subprocess, promise) => {- for (const [property, descriptor] of descriptors) {+ for (const [property, descriptor] of descriptors2) {const value = descriptor.value.bind(promise);Reflect.defineProperty(subprocess, property, { ...descriptor, value });}};var nativePromisePrototype = (async () => {})().constructor.prototype;-var descriptors = ["then", "catch", "finally"].map((property) => [+var descriptors2 = ["then", "catch", "finally"].map((property) => [property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);@@ -66632,13 +80396,13 @@ var handlePromise = async ({ subprocess, options, startTime, verboseInfo, fileDecontroller.abort();onInternalError.resolve();const stdio = stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber));- const all = stripNewline(allResult, options, "all");+ const all2 = stripNewline(allResult, options, "all");const result = getAsyncResult({errorInfo,exitCode,signal,stdio,- all,+ all: all2,ipcOutput,context,options,@@ -66648,7 +80412,7 @@ var handlePromise = async ({ subprocess, options, startTime, verboseInfo, fileDe});return handleResult2(result, verboseInfo, options);};-var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, context, options, command, escapedCommand, startTime }) => ("error" in errorInfo) ? makeError({+var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all: all2, ipcOutput, context, options, command, escapedCommand, startTime }) => ("error" in errorInfo) ? makeError({error: errorInfo.error,command,escapedCommand,@@ -66660,7 +80424,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, contexitCode,signal,stdio,- all,+ all: all2,ipcOutput,options,startTime,@@ -66669,7 +80433,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, contcommand,escapedCommand,stdio,- all,+ all: all2,ipcOutput,options,startTime@@ -66684,7 +80448,7 @@ var mergeOptions = (boundOptions, options) => {return { ...boundOptions, ...newOptions };};var mergeOption = (optionName, boundOptionValue, optionValue) => {- if (DEEP_OPTIONS.has(optionName) && isPlainObject(boundOptionValue) && isPlainObject(optionValue)) {+ if (DEEP_OPTIONS.has(optionName) && isPlainObject2(boundOptionValue) && isPlainObject2(optionValue)) {return { ...boundOptionValue, ...optionValue };}return optionValue;@@ -66707,7 +80471,7 @@ var createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {return boundExeca;};var callBoundExeca = ({ mapArguments, deepOptions = {}, boundOptions = {}, setBoundExeca, createNested }, firstArgument, ...nextArguments) => {- if (isPlainObject(firstArgument)) {+ if (isPlainObject2(firstArgument)) {return createNested(mapArguments, mergeOptions(boundOptions, firstArgument), setBoundExeca);}const { file, commandArguments, options, isSync } = parseArguments({@@ -67462,7 +81226,7 @@ var defaultTheme = {};// node_modules/@inquirer/core/dist/esm/lib/make-theme.js-function isPlainObject2(value) {+function isPlainObject3(value) {if (typeof value !== "object" || value === null)return false;let proto2 = value;@@ -67476,7 +81240,7 @@ function deepMerge(...objects) {for (const obj of objects) {for (const [key, value] of Object.entries(obj)) {const prevValue = output[key];- output[key] = isPlainObject2(prevValue) && isPlainObject2(value) ? deepMerge(prevValue, value) : value;+ output[key] = isPlainObject3(prevValue) && isPlainObject3(value) ? deepMerge(prevValue, value) : value;}}return output;@@ -69361,11 +83125,11 @@ class PromptsRunner {moduleSignal.removeEventListener("abort", abort);};}- const { filter: filter2 = (value) => value } = question;+ const { filter: filter3 = (value) => value } = question;const { signal } = this.abortController;return promptFn(question, { ...this.opt, signal }).then((answer) => ({name: question.name,- answer: filter2(answer, this.answers)+ answer: filter3(answer, this.answers)})).finally(() => {cleanupSignal?.();cleanupModuleSignal?.();diff --git a/screenpipe-js/cli/package.json b/screenpipe-js/cli/package.jsonindex 374a343d9..bd885dbd8 100644--- a/screenpipe-js/cli/package.json+++ b/screenpipe-js/cli/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/dev",- "version": "1.1.24",+ "version": "1.1.25","description": "screenpipe development CLI","type": "module","main": "dist/index.js",@@ -20,6 +20,7 @@"@types/tar-stream": "^3.1.3","archiver": "^7.0.1","async-listen": "^3.0.1",+ "axios": "^1.8.1","chalk": "^5.4.1","commander": "^11.1.0","deepmerge": "^4.3.1",diff --git a/screenpipe-js/cli/src/commands/pipe/publish.ts b/screenpipe-js/cli/src/commands/pipe/publish.tsindex b55677b68..73b8fda9c 100644--- a/screenpipe-js/cli/src/commands/pipe/publish.ts+++ b/screenpipe-js/cli/src/commands/pipe/publish.ts@@ -9,6 +9,7 @@ import { colors, symbols } from "../../utils/colors";import { Command } from "commander";import { logger } from "../components/commands/add/utils/logger";import { execSync } from "child_process";+import axios from "axios";interface ProjectFiles {required: string[];@@ -349,7 +350,9 @@ export const publishCommand = new Command("publish")if (!urlResponse.ok) {throw new Error(- `Failed to get upload URL: ${await urlResponse.text()}`+ `Failed to get upload URL: ${await urlResponse.text()} ${+ urlResponse.status+ }`);}@@ -357,17 +360,18 @@ export const publishCommand = new Command("publish")// Upload directly to Supabaselogger.log(colors.dim(`${symbols.arrow} uploading to storage...`));- const uploadResponse = await retryFetch(uploadUrl, {- method: "PUT",+ const uploadResponse = await axios.put(uploadUrl, fileBuffer, {headers: {"Content-Type": "application/zip",},- body: fileBuffer,+ maxBodyLength: Infinity,});-- if (!uploadResponse.ok) {- const text = await uploadResponse.text();- throw new Error(`Failed to upload file to storage: ${text}`);+ if (uploadResponse.status !== 200) {+ throw new Error(+ `Failed to upload file to storage: code:${+ uploadResponse.status+ } body: ${JSON.stringify(uploadResponse.data)}`+ );}// Notify server that upload is complete