@base44-preview/cli 0.2.3-pr.681.1d316b6 → 0.2.3-pr.682.9217d4b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1275 -646
- package/dist/cli/index.js.map +20 -14
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -29726,6 +29726,389 @@ var require_kebabCase = __commonJS(function(exports, module) {
|
|
|
29726
29726
|
module.exports = kebabCase;
|
|
29727
29727
|
});
|
|
29728
29728
|
|
|
29729
|
+
// ../../node_modules/tmp/lib/tmp.js
|
|
29730
|
+
var require_tmp = __commonJS(function(exports, module) {
|
|
29731
|
+
/*!
|
|
29732
|
+
* Tmp
|
|
29733
|
+
*
|
|
29734
|
+
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
29735
|
+
*
|
|
29736
|
+
* MIT Licensed
|
|
29737
|
+
*/
|
|
29738
|
+
var fs = __require("fs");
|
|
29739
|
+
var os = __require("os");
|
|
29740
|
+
var path = __require("path");
|
|
29741
|
+
var crypto = __require("crypto");
|
|
29742
|
+
var _c = { fs: fs.constants, os: os.constants };
|
|
29743
|
+
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
29744
|
+
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
29745
|
+
var DEFAULT_TRIES = 3;
|
|
29746
|
+
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
29747
|
+
var IS_WIN32 = os.platform() === "win32";
|
|
29748
|
+
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
29749
|
+
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
29750
|
+
var DIR_MODE = 448;
|
|
29751
|
+
var FILE_MODE = 384;
|
|
29752
|
+
var EXIT = "exit";
|
|
29753
|
+
var _removeObjects = [];
|
|
29754
|
+
var FN_RMDIR_SYNC = fs.rmdirSync.bind(fs);
|
|
29755
|
+
var _gracefulCleanup = false;
|
|
29756
|
+
function rimraf(dirPath, callback) {
|
|
29757
|
+
return fs.rm(dirPath, { recursive: true }, callback);
|
|
29758
|
+
}
|
|
29759
|
+
function FN_RIMRAF_SYNC(dirPath) {
|
|
29760
|
+
return fs.rmSync(dirPath, { recursive: true });
|
|
29761
|
+
}
|
|
29762
|
+
function tmpName(options, callback) {
|
|
29763
|
+
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
29764
|
+
_assertAndSanitizeOptions(opts, function(err, sanitizedOptions) {
|
|
29765
|
+
if (err)
|
|
29766
|
+
return cb(err);
|
|
29767
|
+
let tries = sanitizedOptions.tries;
|
|
29768
|
+
(function _getUniqueName() {
|
|
29769
|
+
try {
|
|
29770
|
+
const name = _generateTmpName(sanitizedOptions);
|
|
29771
|
+
fs.stat(name, function(err) {
|
|
29772
|
+
if (!err) {
|
|
29773
|
+
if (tries-- > 0)
|
|
29774
|
+
return _getUniqueName();
|
|
29775
|
+
return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
|
|
29776
|
+
}
|
|
29777
|
+
cb(null, name);
|
|
29778
|
+
});
|
|
29779
|
+
} catch (err) {
|
|
29780
|
+
cb(err);
|
|
29781
|
+
}
|
|
29782
|
+
})();
|
|
29783
|
+
});
|
|
29784
|
+
}
|
|
29785
|
+
function tmpNameSync(options) {
|
|
29786
|
+
const args = _parseArguments(options), opts = args[0];
|
|
29787
|
+
const sanitizedOptions = _assertAndSanitizeOptionsSync(opts);
|
|
29788
|
+
let tries = sanitizedOptions.tries;
|
|
29789
|
+
do {
|
|
29790
|
+
const name = _generateTmpName(sanitizedOptions);
|
|
29791
|
+
try {
|
|
29792
|
+
fs.statSync(name);
|
|
29793
|
+
} catch (e) {
|
|
29794
|
+
return name;
|
|
29795
|
+
}
|
|
29796
|
+
} while (tries-- > 0);
|
|
29797
|
+
throw new Error("Could not get a unique tmp filename, max tries reached");
|
|
29798
|
+
}
|
|
29799
|
+
function file(options, callback) {
|
|
29800
|
+
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
29801
|
+
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
29802
|
+
if (err)
|
|
29803
|
+
return cb(err);
|
|
29804
|
+
fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
|
|
29805
|
+
if (err)
|
|
29806
|
+
return cb(err);
|
|
29807
|
+
if (opts.discardDescriptor) {
|
|
29808
|
+
return fs.close(fd, function _discardCallback(possibleErr) {
|
|
29809
|
+
return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
|
|
29810
|
+
});
|
|
29811
|
+
} else {
|
|
29812
|
+
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
29813
|
+
cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
|
|
29814
|
+
}
|
|
29815
|
+
});
|
|
29816
|
+
});
|
|
29817
|
+
}
|
|
29818
|
+
function fileSync(options) {
|
|
29819
|
+
const args = _parseArguments(options), opts = args[0];
|
|
29820
|
+
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
29821
|
+
const name = tmpNameSync(opts);
|
|
29822
|
+
let fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
29823
|
+
if (opts.discardDescriptor) {
|
|
29824
|
+
fs.closeSync(fd);
|
|
29825
|
+
fd = undefined;
|
|
29826
|
+
}
|
|
29827
|
+
return {
|
|
29828
|
+
name,
|
|
29829
|
+
fd,
|
|
29830
|
+
removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
|
|
29831
|
+
};
|
|
29832
|
+
}
|
|
29833
|
+
function dir(options, callback) {
|
|
29834
|
+
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
29835
|
+
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
29836
|
+
if (err)
|
|
29837
|
+
return cb(err);
|
|
29838
|
+
fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
|
|
29839
|
+
if (err)
|
|
29840
|
+
return cb(err);
|
|
29841
|
+
cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
|
|
29842
|
+
});
|
|
29843
|
+
});
|
|
29844
|
+
}
|
|
29845
|
+
function dirSync(options) {
|
|
29846
|
+
const args = _parseArguments(options), opts = args[0];
|
|
29847
|
+
const name = tmpNameSync(opts);
|
|
29848
|
+
fs.mkdirSync(name, opts.mode || DIR_MODE);
|
|
29849
|
+
return {
|
|
29850
|
+
name,
|
|
29851
|
+
removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
|
|
29852
|
+
};
|
|
29853
|
+
}
|
|
29854
|
+
function _removeFileAsync(fdPath, next) {
|
|
29855
|
+
const _handler = function(err) {
|
|
29856
|
+
if (err && !_isENOENT(err)) {
|
|
29857
|
+
return next(err);
|
|
29858
|
+
}
|
|
29859
|
+
next();
|
|
29860
|
+
};
|
|
29861
|
+
if (0 <= fdPath[0])
|
|
29862
|
+
fs.close(fdPath[0], function() {
|
|
29863
|
+
fs.unlink(fdPath[1], _handler);
|
|
29864
|
+
});
|
|
29865
|
+
else
|
|
29866
|
+
fs.unlink(fdPath[1], _handler);
|
|
29867
|
+
}
|
|
29868
|
+
function _removeFileSync(fdPath) {
|
|
29869
|
+
let rethrownException = null;
|
|
29870
|
+
try {
|
|
29871
|
+
if (0 <= fdPath[0])
|
|
29872
|
+
fs.closeSync(fdPath[0]);
|
|
29873
|
+
} catch (e) {
|
|
29874
|
+
if (!_isEBADF(e) && !_isENOENT(e))
|
|
29875
|
+
throw e;
|
|
29876
|
+
} finally {
|
|
29877
|
+
try {
|
|
29878
|
+
fs.unlinkSync(fdPath[1]);
|
|
29879
|
+
} catch (e) {
|
|
29880
|
+
if (!_isENOENT(e))
|
|
29881
|
+
rethrownException = e;
|
|
29882
|
+
}
|
|
29883
|
+
}
|
|
29884
|
+
if (rethrownException !== null) {
|
|
29885
|
+
throw rethrownException;
|
|
29886
|
+
}
|
|
29887
|
+
}
|
|
29888
|
+
function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
|
|
29889
|
+
const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
|
|
29890
|
+
const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
|
|
29891
|
+
if (!opts.keep)
|
|
29892
|
+
_removeObjects.unshift(removeCallbackSync);
|
|
29893
|
+
return sync ? removeCallbackSync : removeCallback;
|
|
29894
|
+
}
|
|
29895
|
+
function _prepareTmpDirRemoveCallback(name, opts, sync) {
|
|
29896
|
+
const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
|
|
29897
|
+
const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
|
|
29898
|
+
const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
|
|
29899
|
+
const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
|
|
29900
|
+
if (!opts.keep)
|
|
29901
|
+
_removeObjects.unshift(removeCallbackSync);
|
|
29902
|
+
return sync ? removeCallbackSync : removeCallback;
|
|
29903
|
+
}
|
|
29904
|
+
function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
|
|
29905
|
+
let called = false;
|
|
29906
|
+
return function _cleanupCallback(next) {
|
|
29907
|
+
if (!called) {
|
|
29908
|
+
const toRemove = cleanupCallbackSync || _cleanupCallback;
|
|
29909
|
+
const index = _removeObjects.indexOf(toRemove);
|
|
29910
|
+
if (index >= 0)
|
|
29911
|
+
_removeObjects.splice(index, 1);
|
|
29912
|
+
called = true;
|
|
29913
|
+
if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
|
|
29914
|
+
return removeFunction(fileOrDirName);
|
|
29915
|
+
} else {
|
|
29916
|
+
return removeFunction(fileOrDirName, next || function() {});
|
|
29917
|
+
}
|
|
29918
|
+
}
|
|
29919
|
+
};
|
|
29920
|
+
}
|
|
29921
|
+
function _garbageCollector() {
|
|
29922
|
+
if (!_gracefulCleanup)
|
|
29923
|
+
return;
|
|
29924
|
+
while (_removeObjects.length) {
|
|
29925
|
+
try {
|
|
29926
|
+
_removeObjects[0]();
|
|
29927
|
+
} catch (e) {}
|
|
29928
|
+
}
|
|
29929
|
+
}
|
|
29930
|
+
function _randomChars(howMany) {
|
|
29931
|
+
let value = [], rnd = null;
|
|
29932
|
+
try {
|
|
29933
|
+
rnd = crypto.randomBytes(howMany);
|
|
29934
|
+
} catch (e) {
|
|
29935
|
+
rnd = crypto.pseudoRandomBytes(howMany);
|
|
29936
|
+
}
|
|
29937
|
+
for (let i = 0;i < howMany; i++) {
|
|
29938
|
+
value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
|
|
29939
|
+
}
|
|
29940
|
+
return value.join("");
|
|
29941
|
+
}
|
|
29942
|
+
function _isUndefined(obj) {
|
|
29943
|
+
return typeof obj === "undefined";
|
|
29944
|
+
}
|
|
29945
|
+
function _parseArguments(options, callback) {
|
|
29946
|
+
if (typeof options === "function") {
|
|
29947
|
+
return [{}, options];
|
|
29948
|
+
}
|
|
29949
|
+
if (_isUndefined(options)) {
|
|
29950
|
+
return [{}, callback];
|
|
29951
|
+
}
|
|
29952
|
+
const actualOptions = {};
|
|
29953
|
+
for (const key of Object.getOwnPropertyNames(options)) {
|
|
29954
|
+
actualOptions[key] = options[key];
|
|
29955
|
+
}
|
|
29956
|
+
return [actualOptions, callback];
|
|
29957
|
+
}
|
|
29958
|
+
function _resolvePath(name, tmpDir, cb) {
|
|
29959
|
+
const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
|
|
29960
|
+
fs.stat(pathToResolve, function(err) {
|
|
29961
|
+
if (err) {
|
|
29962
|
+
fs.realpath(path.dirname(pathToResolve), function(err, parentDir) {
|
|
29963
|
+
if (err)
|
|
29964
|
+
return cb(err);
|
|
29965
|
+
cb(null, path.join(parentDir, path.basename(pathToResolve)));
|
|
29966
|
+
});
|
|
29967
|
+
} else {
|
|
29968
|
+
fs.realpath(pathToResolve, cb);
|
|
29969
|
+
}
|
|
29970
|
+
});
|
|
29971
|
+
}
|
|
29972
|
+
function _resolvePathSync(name, tmpDir) {
|
|
29973
|
+
const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
|
|
29974
|
+
try {
|
|
29975
|
+
fs.statSync(pathToResolve);
|
|
29976
|
+
return fs.realpathSync(pathToResolve);
|
|
29977
|
+
} catch (_err) {
|
|
29978
|
+
const parentDir = fs.realpathSync(path.dirname(pathToResolve));
|
|
29979
|
+
return path.join(parentDir, path.basename(pathToResolve));
|
|
29980
|
+
}
|
|
29981
|
+
}
|
|
29982
|
+
function _generateTmpName(opts) {
|
|
29983
|
+
const tmpDir = opts.tmpdir;
|
|
29984
|
+
if (!_isUndefined(opts.name)) {
|
|
29985
|
+
return path.join(tmpDir, opts.dir, opts.name);
|
|
29986
|
+
}
|
|
29987
|
+
if (!_isUndefined(opts.template)) {
|
|
29988
|
+
return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
29989
|
+
}
|
|
29990
|
+
const name = [
|
|
29991
|
+
opts.prefix ? opts.prefix : "tmp",
|
|
29992
|
+
"-",
|
|
29993
|
+
process.pid,
|
|
29994
|
+
"-",
|
|
29995
|
+
_randomChars(12),
|
|
29996
|
+
opts.postfix ? "-" + opts.postfix : ""
|
|
29997
|
+
].join("");
|
|
29998
|
+
return path.join(tmpDir, opts.dir, name);
|
|
29999
|
+
}
|
|
30000
|
+
function _assertOptionsBase(options) {
|
|
30001
|
+
if (!_isUndefined(options.name)) {
|
|
30002
|
+
const name = options.name;
|
|
30003
|
+
if (path.isAbsolute(name))
|
|
30004
|
+
throw new Error(`name option must not contain an absolute path, found "${name}".`);
|
|
30005
|
+
const basename2 = path.basename(name);
|
|
30006
|
+
if (basename2 === ".." || basename2 === "." || basename2 !== name)
|
|
30007
|
+
throw new Error(`name option must not contain a path, found "${name}".`);
|
|
30008
|
+
}
|
|
30009
|
+
if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
|
|
30010
|
+
throw new Error(`Invalid template, found "${options.template}".`);
|
|
30011
|
+
}
|
|
30012
|
+
if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
|
|
30013
|
+
throw new Error(`Invalid tries, found "${options.tries}".`);
|
|
30014
|
+
}
|
|
30015
|
+
options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
|
|
30016
|
+
options.keep = !!options.keep;
|
|
30017
|
+
options.detachDescriptor = !!options.detachDescriptor;
|
|
30018
|
+
options.discardDescriptor = !!options.discardDescriptor;
|
|
30019
|
+
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
30020
|
+
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
30021
|
+
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
30022
|
+
}
|
|
30023
|
+
function _getRelativePath(option, name, tmpDir, cb) {
|
|
30024
|
+
if (_isUndefined(name))
|
|
30025
|
+
return cb(null);
|
|
30026
|
+
_resolvePath(name, tmpDir, function(err, resolvedPath) {
|
|
30027
|
+
if (err)
|
|
30028
|
+
return cb(err);
|
|
30029
|
+
const relativePath = path.relative(tmpDir, resolvedPath);
|
|
30030
|
+
if (!resolvedPath.startsWith(tmpDir)) {
|
|
30031
|
+
return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
|
|
30032
|
+
}
|
|
30033
|
+
cb(null, relativePath);
|
|
30034
|
+
});
|
|
30035
|
+
}
|
|
30036
|
+
function _getRelativePathSync(option, name, tmpDir) {
|
|
30037
|
+
if (_isUndefined(name))
|
|
30038
|
+
return;
|
|
30039
|
+
const resolvedPath = _resolvePathSync(name, tmpDir);
|
|
30040
|
+
const relativePath = path.relative(tmpDir, resolvedPath);
|
|
30041
|
+
if (!resolvedPath.startsWith(tmpDir)) {
|
|
30042
|
+
throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
|
|
30043
|
+
}
|
|
30044
|
+
return relativePath;
|
|
30045
|
+
}
|
|
30046
|
+
function _assertAndSanitizeOptions(options, cb) {
|
|
30047
|
+
_getTmpDir(options, function(err, tmpDir) {
|
|
30048
|
+
if (err)
|
|
30049
|
+
return cb(err);
|
|
30050
|
+
options.tmpdir = tmpDir;
|
|
30051
|
+
try {
|
|
30052
|
+
_assertOptionsBase(options, tmpDir);
|
|
30053
|
+
} catch (err) {
|
|
30054
|
+
return cb(err);
|
|
30055
|
+
}
|
|
30056
|
+
_getRelativePath("dir", options.dir, tmpDir, function(err, dir) {
|
|
30057
|
+
if (err)
|
|
30058
|
+
return cb(err);
|
|
30059
|
+
options.dir = _isUndefined(dir) ? "" : dir;
|
|
30060
|
+
_getRelativePath("template", options.template, tmpDir, function(err, template) {
|
|
30061
|
+
if (err)
|
|
30062
|
+
return cb(err);
|
|
30063
|
+
options.template = template;
|
|
30064
|
+
cb(null, options);
|
|
30065
|
+
});
|
|
30066
|
+
});
|
|
30067
|
+
});
|
|
30068
|
+
}
|
|
30069
|
+
function _assertAndSanitizeOptionsSync(options) {
|
|
30070
|
+
const tmpDir = options.tmpdir = _getTmpDirSync(options);
|
|
30071
|
+
_assertOptionsBase(options, tmpDir);
|
|
30072
|
+
const dir = _getRelativePathSync("dir", options.dir, tmpDir);
|
|
30073
|
+
options.dir = _isUndefined(dir) ? "" : dir;
|
|
30074
|
+
options.template = _getRelativePathSync("template", options.template, tmpDir);
|
|
30075
|
+
return options;
|
|
30076
|
+
}
|
|
30077
|
+
function _isEBADF(error) {
|
|
30078
|
+
return _isExpectedError(error, -EBADF, "EBADF");
|
|
30079
|
+
}
|
|
30080
|
+
function _isENOENT(error) {
|
|
30081
|
+
return _isExpectedError(error, -ENOENT, "ENOENT");
|
|
30082
|
+
}
|
|
30083
|
+
function _isExpectedError(error, errno, code) {
|
|
30084
|
+
return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
|
|
30085
|
+
}
|
|
30086
|
+
function setGracefulCleanup() {
|
|
30087
|
+
_gracefulCleanup = true;
|
|
30088
|
+
}
|
|
30089
|
+
function _getTmpDir(options, cb) {
|
|
30090
|
+
return fs.realpath(options && options.tmpdir || os.tmpdir(), cb);
|
|
30091
|
+
}
|
|
30092
|
+
function _getTmpDirSync(options) {
|
|
30093
|
+
return fs.realpathSync(options && options.tmpdir || os.tmpdir());
|
|
30094
|
+
}
|
|
30095
|
+
process.addListener(EXIT, _garbageCollector);
|
|
30096
|
+
Object.defineProperty(exports, "tmpdir", {
|
|
30097
|
+
enumerable: true,
|
|
30098
|
+
configurable: false,
|
|
30099
|
+
get: function() {
|
|
30100
|
+
return _getTmpDirSync();
|
|
30101
|
+
}
|
|
30102
|
+
});
|
|
30103
|
+
exports.dir = dir;
|
|
30104
|
+
exports.dirSync = dirSync;
|
|
30105
|
+
exports.file = file;
|
|
30106
|
+
exports.fileSync = fileSync;
|
|
30107
|
+
exports.tmpName = tmpName;
|
|
30108
|
+
exports.tmpNameSync = tmpNameSync;
|
|
30109
|
+
exports.setGracefulCleanup = setGracefulCleanup;
|
|
30110
|
+
});
|
|
30111
|
+
|
|
29729
30112
|
// ../../node_modules/common-tags/lib/TemplateTag/TemplateTag.js
|
|
29730
30113
|
var require_TemplateTag = __commonJS(function(exports, module) {
|
|
29731
30114
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -31177,7 +31560,7 @@ function cleanDoc(doc) {
|
|
|
31177
31560
|
return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
|
|
31178
31561
|
}
|
|
31179
31562
|
function replaceEndOfLine(doc, replacement = literalline) {
|
|
31180
|
-
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ?
|
|
31563
|
+
return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join32(replacement, currentDoc.split(`
|
|
31181
31564
|
`)) : currentDoc);
|
|
31182
31565
|
}
|
|
31183
31566
|
function canBreakFn(doc) {
|
|
@@ -31257,7 +31640,7 @@ function indentIfBreak(contents, options) {
|
|
|
31257
31640
|
negate: options.negate
|
|
31258
31641
|
};
|
|
31259
31642
|
}
|
|
31260
|
-
function
|
|
31643
|
+
function join32(separator, docs) {
|
|
31261
31644
|
assertDoc(separator);
|
|
31262
31645
|
assertDocArray(docs);
|
|
31263
31646
|
const parts = [];
|
|
@@ -31968,7 +32351,7 @@ var init_doc = __esm(() => {
|
|
|
31968
32351
|
MODE_FLAT = Symbol("MODE_FLAT");
|
|
31969
32352
|
DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
31970
32353
|
builders = {
|
|
31971
|
-
join:
|
|
32354
|
+
join: join32,
|
|
31972
32355
|
line,
|
|
31973
32356
|
softline,
|
|
31974
32357
|
hardline,
|
|
@@ -37494,7 +37877,7 @@ function Qt2(e) {
|
|
|
37494
37877
|
return ft3(e, (t) => Dc(t));
|
|
37495
37878
|
}
|
|
37496
37879
|
function qe(e, t = $r2) {
|
|
37497
|
-
return ft3(e, (r) => typeof r == "string" ?
|
|
37880
|
+
return ft3(e, (r) => typeof r == "string" ? L3(t, r.split(`
|
|
37498
37881
|
`)) : r);
|
|
37499
37882
|
}
|
|
37500
37883
|
function fc(e) {
|
|
@@ -37559,7 +37942,7 @@ function P2(e, t = "", r = {}) {
|
|
|
37559
37942
|
function yt4(e, t) {
|
|
37560
37943
|
return de2(e), { type: Ve3, contents: e, groupId: t.groupId, negate: t.negate };
|
|
37561
37944
|
}
|
|
37562
|
-
function
|
|
37945
|
+
function L3(e, t) {
|
|
37563
37946
|
de2(e), Kr(t);
|
|
37564
37947
|
let r = [];
|
|
37565
37948
|
for (let n = 0;n < t.length; n++)
|
|
@@ -37908,7 +38291,7 @@ function bc(e, t, r) {
|
|
|
37908
38291
|
for (let { cells: D } of y.filter((F) => !F.hasLineBreak))
|
|
37909
38292
|
for (let [F, C] of D.entries())
|
|
37910
38293
|
c[F] = Math.max(c[F], ot3(C));
|
|
37911
|
-
return [je2, "`", m([E,
|
|
38294
|
+
return [je2, "`", m([E, L3(E, y.map((D) => L3(" | ", D.cells.map((F, C) => D.hasLineBreak ? F : F + " ".repeat(c[C] - ot3(F))))))]), E, "`"];
|
|
37912
38295
|
}
|
|
37913
38296
|
}
|
|
37914
38297
|
function Pc(e, t) {
|
|
@@ -37919,9 +38302,9 @@ function zt3(e, t) {
|
|
|
37919
38302
|
return e.map(() => Pc(e, t), "expressions");
|
|
37920
38303
|
}
|
|
37921
38304
|
function tn2(e, t) {
|
|
37922
|
-
return ft3(e, (r) => typeof r == "string" ? t ? W4(0, r, /(\\*)`/gu, "$1$1\\`") :
|
|
38305
|
+
return ft3(e, (r) => typeof r == "string" ? t ? W4(0, r, /(\\*)`/gu, "$1$1\\`") : ms3(r) : r);
|
|
37923
38306
|
}
|
|
37924
|
-
function
|
|
38307
|
+
function ms3(e) {
|
|
37925
38308
|
return W4(0, e, /([\\`]|\$\{)/gu, "\\$1");
|
|
37926
38309
|
}
|
|
37927
38310
|
function kc({ node: e, parent: t }) {
|
|
@@ -37998,13 +38381,13 @@ async function co2(e, t, r) {
|
|
|
37998
38381
|
let h = null;
|
|
37999
38382
|
O ? h = Mc(F) : h = await e(D, { parser: "graphql" }), h ? (h = tn2(h, false), !c && b && o.push(""), o.push(h), !y && B && o.push("")) : !c && !y && b && o.push(""), d && o.push(d);
|
|
38000
38383
|
}
|
|
38001
|
-
return ["`", m([E,
|
|
38384
|
+
return ["`", m([E, L3(E, o)]), E, "`"];
|
|
38002
38385
|
}
|
|
38003
38386
|
function Mc(e) {
|
|
38004
38387
|
let t = [], r = false, n = e.map((s) => s.trim());
|
|
38005
38388
|
for (let [s, i] of n.entries())
|
|
38006
38389
|
i !== "" && (n[s - 1] === "" && r ? t.push([E, i]) : t.push(i), r = true);
|
|
38007
|
-
return t.length === 0 ? null :
|
|
38390
|
+
return t.length === 0 ? null : L3(E, t);
|
|
38008
38391
|
}
|
|
38009
38392
|
function lo2({ node: e, parent: t }) {
|
|
38010
38393
|
return rn2({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
|
|
@@ -38021,7 +38404,7 @@ async function mo(e, t, r, n, s) {
|
|
|
38021
38404
|
for (let S = 0;S < g.length; S++) {
|
|
38022
38405
|
let j = g[S];
|
|
38023
38406
|
if (S % 2 === 0) {
|
|
38024
|
-
j && (j =
|
|
38407
|
+
j && (j = ms3(j), s.__embeddedInHtml && (j = W4(0, j, /<\/(?=script\b)/giu, "<\\/")), h.push(j));
|
|
38025
38408
|
continue;
|
|
38026
38409
|
}
|
|
38027
38410
|
let U = Number(j);
|
|
@@ -38158,7 +38541,7 @@ function wo(e, t) {
|
|
|
38158
38541
|
function Kc(e) {
|
|
38159
38542
|
let t = e.value.split(`
|
|
38160
38543
|
`);
|
|
38161
|
-
return ["/*",
|
|
38544
|
+
return ["/*", L3(E, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
|
|
38162
38545
|
}
|
|
38163
38546
|
function ds(e, t) {
|
|
38164
38547
|
if (e.isRoot)
|
|
@@ -38636,7 +39019,7 @@ function v2(e, t, r = {}) {
|
|
|
38636
39019
|
c.leading || c.trailing || c.marker !== i || !o(c) || u.push(As(e, t));
|
|
38637
39020
|
}, "comments"), u.length === 0)
|
|
38638
39021
|
return "";
|
|
38639
|
-
let p =
|
|
39022
|
+
let p = L3(E, u);
|
|
38640
39023
|
return s ? m([E, p]) : p;
|
|
38641
39024
|
}
|
|
38642
39025
|
function Mt3(e, t) {
|
|
@@ -38768,7 +39151,7 @@ function Ts(e, t, r, n, s) {
|
|
|
38768
39151
|
return [l(r())];
|
|
38769
39152
|
let o = [];
|
|
38770
39153
|
dr2(i.operator, i.left.operator) ? o = e.call(() => Ts(e, t, r, true, s), "left") : o.push(l(r("left")));
|
|
38771
|
-
let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ",
|
|
39154
|
+
let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ", L3([A, ": "], e.map(() => xe(2, l(r())), "arguments"))])) : "", d;
|
|
38772
39155
|
if (u)
|
|
38773
39156
|
d = [F, Ee2(t.originalText, p) ? m([A, r("right"), C]) : [" ", r("right"), C]];
|
|
38774
39157
|
else {
|
|
@@ -38816,8 +39199,8 @@ function un2(e, t, r) {
|
|
|
38816
39199
|
return o || (C = xe(2, C)), De2(e, C, t);
|
|
38817
39200
|
}, "types"), p = "", c = "";
|
|
38818
39201
|
if (Yr2(e) && ({ leading: p, trailing: c } = Mt3(e, t)), o)
|
|
38819
|
-
return [p,
|
|
38820
|
-
let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]),
|
|
39202
|
+
return [p, L3(" | ", u), c];
|
|
39203
|
+
let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]), L3([A, "| "], u)];
|
|
38821
39204
|
if (ge2(e, t))
|
|
38822
39205
|
return [p, l([m(D), f]), c];
|
|
38823
39206
|
let F = [p, l(D)];
|
|
@@ -39079,7 +39462,7 @@ function Xo(e, t, r) {
|
|
|
39079
39462
|
return _.length > 0 && N4(0, _, -1).needsParens ? ["(", ...re, ")"] : re;
|
|
39080
39463
|
}
|
|
39081
39464
|
function O(_) {
|
|
39082
|
-
return _.length === 0 ? "" : m([E,
|
|
39465
|
+
return _.length === 0 ? "" : m([E, L3(E, _.map(B))]);
|
|
39083
39466
|
}
|
|
39084
39467
|
let h = p.map(B), g = h, S = b ? 3 : 2, j = p.flat(), U = j.slice(1, -1).some((_) => T2(_.node, x3.Leading)) || j.slice(0, -1).some((_) => T2(_.node, x3.Trailing)) || p[S] && T2(p[S][0].node, x3.Leading);
|
|
39085
39468
|
if (p.length <= S && !U && !p.some((_) => N4(0, _, -1).hasTrailingEmptyLine))
|
|
@@ -39099,7 +39482,7 @@ function vt4(e, t, r) {
|
|
|
39099
39482
|
if ($t3(e, () => {
|
|
39100
39483
|
D.push(r());
|
|
39101
39484
|
}), !(p && D[0].label?.embed))
|
|
39102
|
-
return [s ? "new " : "", $o(e, r), i, u, "(",
|
|
39485
|
+
return [s ? "new " : "", $o(e, r), i, u, "(", L3(", ", D), ")"];
|
|
39103
39486
|
}
|
|
39104
39487
|
let c = n.type === "ImportExpression" || n.type === "TSImportType" || n.type === "TSExternalModuleReference";
|
|
39105
39488
|
if (!c && !s && Tt4(n.callee) && !e.call(() => ge2(e, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : []))
|
|
@@ -39570,9 +39953,9 @@ function tm(e, t, r) {
|
|
|
39570
39953
|
return l(["<", r("name"), r("typeArguments"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
|
|
39571
39954
|
let i = n.attributes?.some((u) => V3(u.value) && u.value.value.includes(`
|
|
39572
39955
|
`)), o = t.singleAttributePerLine && n.attributes.length > 1 ? E : A;
|
|
39573
|
-
return l(["<", r("name"), r("typeArguments"), m(e.map(() => [o, r()], "attributes")), ...
|
|
39956
|
+
return l(["<", r("name"), r("typeArguments"), m(e.map(() => [o, r()], "attributes")), ...rm4(n, t, s)], { shouldBreak: i });
|
|
39574
39957
|
}
|
|
39575
|
-
function
|
|
39958
|
+
function rm4(e, t, r) {
|
|
39576
39959
|
return e.selfClosing ? [A, "/>"] : nm(e, t, r) ? [">"] : [f, ">"];
|
|
39577
39960
|
}
|
|
39578
39961
|
function nm(e, t, r) {
|
|
@@ -39611,9 +39994,9 @@ function mu(e, t, r) {
|
|
|
39611
39994
|
case "JSXIdentifier":
|
|
39612
39995
|
return n.name;
|
|
39613
39996
|
case "JSXNamespacedName":
|
|
39614
|
-
return
|
|
39997
|
+
return L3(":", [r("namespace"), r("name")]);
|
|
39615
39998
|
case "JSXMemberExpression":
|
|
39616
|
-
return
|
|
39999
|
+
return L3(".", [r("object"), r("property")]);
|
|
39617
40000
|
case "JSXSpreadAttribute":
|
|
39618
40001
|
case "JSXSpreadChild":
|
|
39619
40002
|
return am(e, t, r);
|
|
@@ -39677,7 +40060,7 @@ function yu(e, t, r) {
|
|
|
39677
40060
|
case "NGPipeExpression":
|
|
39678
40061
|
return on7(e, t, r);
|
|
39679
40062
|
case "NGChainedExpression":
|
|
39680
|
-
return l(
|
|
40063
|
+
return l(L3([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
|
|
39681
40064
|
case "NGEmptyExpression":
|
|
39682
40065
|
return "";
|
|
39683
40066
|
case "NGMicrosyntax":
|
|
@@ -39710,17 +40093,17 @@ function fm({ node: e }) {
|
|
|
39710
40093
|
}
|
|
39711
40094
|
function Ms2(e, t, r) {
|
|
39712
40095
|
let { node: n } = e;
|
|
39713
|
-
return l([
|
|
40096
|
+
return l([L3(A, e.map(r, "decorators")), du(n, t) ? E : A]);
|
|
39714
40097
|
}
|
|
39715
40098
|
function Eu(e, t, r) {
|
|
39716
|
-
return Cu(e.node) ? [
|
|
40099
|
+
return Cu(e.node) ? [L3(E, e.map(r, "declaration", "decorators")), E] : "";
|
|
39717
40100
|
}
|
|
39718
40101
|
function Fu(e, t, r) {
|
|
39719
40102
|
let { node: n, parent: s } = e, { decorators: i } = n;
|
|
39720
40103
|
if (!R3(i) || Cu(s) || nr2(e))
|
|
39721
40104
|
return "";
|
|
39722
40105
|
let o = n.type === "ClassExpression" || n.type === "ClassDeclaration" || du(n, t);
|
|
39723
|
-
return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "",
|
|
40106
|
+
return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "", L3(A, e.map(r, "decorators")), A];
|
|
39724
40107
|
}
|
|
39725
40108
|
function du(e, t) {
|
|
39726
40109
|
return e.decorators.some((r) => Z3(t.originalText, I3(r)));
|
|
@@ -39775,7 +40158,7 @@ function dm(e, t, { signatureDocs: r, shouldBreak: n }) {
|
|
|
39775
40158
|
if (r.length === 1)
|
|
39776
40159
|
return r[0];
|
|
39777
40160
|
let { parent: s, key: i } = e;
|
|
39778
|
-
return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A,
|
|
40161
|
+
return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A, L3([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L3([" =>", A], r), { shouldBreak: n }) : l(m(L3([" =>", A], r)), { shouldBreak: n });
|
|
39779
40162
|
}
|
|
39780
40163
|
function Cm(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: i, shouldPutBodyOnSameLine: o }) {
|
|
39781
40164
|
let { node: u, parent: p } = e, c = r.expandLastArg && ie(t, "all") ? P2(",") : "", y = (r.expandLastArg || p.type === "JSXExpressionContainer") && !T2(u) ? f : "";
|
|
@@ -39957,7 +40340,7 @@ function vs2(e, t, r, n) {
|
|
|
39957
40340
|
let { node: s } = e;
|
|
39958
40341
|
if (!R3(s[n]))
|
|
39959
40342
|
return "";
|
|
39960
|
-
let i = v2(e, t, { marker: n }), o =
|
|
40343
|
+
let i = v2(e, t, { marker: n }), o = L3([",", A], e.map(r, n));
|
|
39961
40344
|
if (!Pu(s)) {
|
|
39962
40345
|
let u = [`${n} `, i, o];
|
|
39963
40346
|
return ku(e) ? [A, l(u)] : [" ", u];
|
|
@@ -39999,12 +40382,12 @@ function wu(e, t, r) {
|
|
|
39999
40382
|
let n = e.map(r, "program", "body", 0, "params");
|
|
40000
40383
|
if (n.length === 1)
|
|
40001
40384
|
return n[0];
|
|
40002
|
-
let s =
|
|
40385
|
+
let s = L3([",", A], n);
|
|
40003
40386
|
return t.__isVueForBindingLeft ? ["(", m([f, l(s)]), f, ")"] : s;
|
|
40004
40387
|
}
|
|
40005
40388
|
if (t.__isEmbeddedTypescriptGenericParameters) {
|
|
40006
40389
|
let n = e.map(r, "program", "body", 0, "typeParameters", "params");
|
|
40007
|
-
return
|
|
40390
|
+
return L3([",", A], n);
|
|
40008
40391
|
}
|
|
40009
40392
|
}
|
|
40010
40393
|
function Nu(e, t) {
|
|
@@ -40140,7 +40523,7 @@ function Gu(e, t, r) {
|
|
|
40140
40523
|
o.push(r());
|
|
40141
40524
|
else
|
|
40142
40525
|
throw new Qe2(n, "specifier");
|
|
40143
|
-
}, "specifiers"), s.push(
|
|
40526
|
+
}, "specifiers"), s.push(L3(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p) => T2(p)) ? s.push(l(["{", m([t.bracketSpacing ? A : f, L3([",", A], o)]), P2(ie(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
|
|
40144
40527
|
} else
|
|
40145
40528
|
s.push("{}");
|
|
40146
40529
|
return s;
|
|
@@ -40390,7 +40773,7 @@ function Hu(e, t, r, n) {
|
|
|
40390
40773
|
p ? u.push(r()) : u.push(",", m([A, r()]));
|
|
40391
40774
|
}, "expressions"), l(u);
|
|
40392
40775
|
}
|
|
40393
|
-
let o =
|
|
40776
|
+
let o = L3([",", A], e.map(r, "expressions"));
|
|
40394
40777
|
return (i.type === "ReturnStatement" || i.type === "ThrowStatement") && e.key === "argument" || i.type === "ArrowFunctionExpression" && e.key === "body" ? l(P2([m([f, o]), f], o)) : l(o);
|
|
40395
40778
|
}
|
|
40396
40779
|
case "ThisExpression":
|
|
@@ -40451,7 +40834,7 @@ function Hu(e, t, r, n) {
|
|
|
40451
40834
|
}
|
|
40452
40835
|
return ["catch ", r("body")];
|
|
40453
40836
|
case "SwitchStatement":
|
|
40454
|
-
return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E,
|
|
40837
|
+
return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E, L3(E, e.map(({ node: i, isLast: o }) => [r(), !o && oe(i, t) ? E : ""], "cases"))]) : "", E, "}"];
|
|
40455
40838
|
case "SwitchCase": {
|
|
40456
40839
|
let i = [];
|
|
40457
40840
|
s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T2(s, x3.Dangling) && i.push(" ", v2(e, t));
|
|
@@ -40631,7 +41014,7 @@ function na(e, t, r) {
|
|
|
40631
41014
|
}
|
|
40632
41015
|
function sa(e, t, r) {
|
|
40633
41016
|
let { node: n } = e;
|
|
40634
|
-
return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E,
|
|
41017
|
+
return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E, L3(E, e.map(({ node: s, isLast: i }) => [r(), !i && oe(s, t) ? E : ""], "cases"))]) : "", E, "}"];
|
|
40635
41018
|
}
|
|
40636
41019
|
function ia(e, t, r) {
|
|
40637
41020
|
let { node: n } = e, s = T2(n, x3.Dangling) ? [" ", v2(e, t)] : [], i = n.type === "MatchStatementCase" ? [" ", r("body")] : m([A, r("body"), ","]);
|
|
@@ -40660,11 +41043,11 @@ function oa(e, t, r) {
|
|
|
40660
41043
|
return [n.kind, " ", r("id")];
|
|
40661
41044
|
case "MatchObjectPattern": {
|
|
40662
41045
|
let s = e.map(r, "properties");
|
|
40663
|
-
return n.rest && s.push(r("rest")), l(["{", m([f,
|
|
41046
|
+
return n.rest && s.push(r("rest")), l(["{", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
|
|
40664
41047
|
}
|
|
40665
41048
|
case "MatchArrayPattern": {
|
|
40666
41049
|
let s = e.map(r, "elements");
|
|
40667
|
-
return n.rest && s.push(r("rest")), l(["[", m([f,
|
|
41050
|
+
return n.rest && s.push(r("rest")), l(["[", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
|
|
40668
41051
|
}
|
|
40669
41052
|
case "MatchObjectPatternProperty":
|
|
40670
41053
|
return n.shorthand ? r("pattern") : l([r("key"), ":", m([A, r("pattern")])]);
|
|
@@ -40690,8 +41073,8 @@ function uD(e, t, r) {
|
|
|
40690
41073
|
return o || (c = xe(2, c)), De2(e, c, t);
|
|
40691
41074
|
}, "patterns");
|
|
40692
41075
|
if (o)
|
|
40693
|
-
return
|
|
40694
|
-
let p = [P2(["| "]),
|
|
41076
|
+
return L3(" | ", u);
|
|
41077
|
+
let p = [P2(["| "]), L3([A, "| "], u)];
|
|
40695
41078
|
return ge2(e, t) ? l([m([P2([f]), p]), f]) : s.type === "MatchArrayPattern" && s.elements.length > 1 ? l([m([P2(["(", f]), p]), f, P2(")")]) : l(i ? m(p) : p);
|
|
40696
41079
|
}
|
|
40697
41080
|
function aa(e, t, r) {
|
|
@@ -40726,9 +41109,9 @@ function Gt2(e, t, r, n) {
|
|
|
40726
41109
|
return r(n);
|
|
40727
41110
|
let i = It3(e.grandparent), o = e.match((c) => !(c[n].length === 1 && Je3(c[n][0])), undefined, (c, y) => y === "typeAnnotation", (c) => c.type === "Identifier", Bs2);
|
|
40728
41111
|
if (s[n].length === 0 || !o && (i || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || Jo(s[n][0]))))
|
|
40729
|
-
return ["<",
|
|
41112
|
+
return ["<", L3(", ", e.map(r, n)), pD(e, t), ">"];
|
|
40730
41113
|
let p = s.type === "TSTypeParameterInstantiation" ? "" : aD(e, t, n) ? "," : ie(t) ? P2(",") : "";
|
|
40731
|
-
return l(["<", m([f,
|
|
41114
|
+
return l(["<", m([f, L3([",", A], e.map(r, n))]), p, f, ">"]);
|
|
40732
41115
|
}
|
|
40733
41116
|
function pD(e, t) {
|
|
40734
41117
|
let { node: r } = e;
|
|
@@ -40928,7 +41311,7 @@ function pa(e, t, r) {
|
|
|
40928
41311
|
}
|
|
40929
41312
|
}
|
|
40930
41313
|
function ca(e, t, r) {
|
|
40931
|
-
let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f,
|
|
41314
|
+
let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f, L3([", ", f], e.map(r, "parameters"))]), s, f]);
|
|
40932
41315
|
return [e.key === "body" && e.parent.type === "ClassBody" && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? i : "", "]", G2(e, r), he2(e, t)];
|
|
40933
41316
|
}
|
|
40934
41317
|
function Us2(e, t, r) {
|
|
@@ -41104,10 +41487,10 @@ function yD(e, t, r) {
|
|
|
41104
41487
|
if (n.elements.length === 0)
|
|
41105
41488
|
return "[]";
|
|
41106
41489
|
let s = e.map(() => e.node === null ? "null" : r(), "elements");
|
|
41107
|
-
return ["[", m([E,
|
|
41490
|
+
return ["[", m([E, L3([",", E], s)]), E, "]"];
|
|
41108
41491
|
}
|
|
41109
41492
|
case "ObjectExpression":
|
|
41110
|
-
return n.properties.length === 0 ? "{}" : ["{", m([E,
|
|
41493
|
+
return n.properties.length === 0 ? "{}" : ["{", m([E, L3([",", E], e.map(r, "properties"))]), E, "}"];
|
|
41111
41494
|
case "ObjectProperty":
|
|
41112
41495
|
return [r("key"), ": ", r("value")];
|
|
41113
41496
|
case "UnaryExpression":
|
|
@@ -41615,7 +41998,7 @@ function ds2(e) {
|
|
|
41615
41998
|
function qt2(e) {
|
|
41616
41999
|
return Ut3(e) || e === 95;
|
|
41617
42000
|
}
|
|
41618
|
-
function
|
|
42001
|
+
function ms4(e) {
|
|
41619
42002
|
return qt2(e) || Ee3(e);
|
|
41620
42003
|
}
|
|
41621
42004
|
function xs3(e) {
|
|
@@ -41954,7 +42337,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
|
|
|
41954
42337
|
return e;
|
|
41955
42338
|
}, ut2 = (e, t, i) => (i = e != null ? Ii3(Ri3(e)) : {}, Bi3(t || !e || !e.__esModule ? Be2(i, "default", { value: e, enumerable: true }) : i, e)), Qt3, $e2, Pi3, Di3, dt5, Mi2 = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", mt5 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", De3, Me3 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Fi3, ji3, Ui3, Gi3, C2 = function(t, i) {
|
|
41956
42339
|
i === undefined && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
41957
|
-
}, O2, N5, Je4, a3,
|
|
42340
|
+
}, O2, N5, Je4, a3, L4, qi3, yt5, k4, gt5, Ji3, Ki3, $3, ht5, pt5, Hi3, ne3 = function(t, i) {
|
|
41958
42341
|
this.line = t, this.column = i;
|
|
41959
42342
|
}, be3 = function(t, i, s) {
|
|
41960
42343
|
this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
@@ -41964,7 +42347,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
|
|
|
41964
42347
|
t.allowReserved !== true && (r = De3[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H4(r);
|
|
41965
42348
|
var o = (r ? r + " " : "") + De3.strict;
|
|
41966
42349
|
this.reservedWordsStrict = H4(o), this.reservedWordsStrictBind = H4(o + " " + De3.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
41967
|
-
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(
|
|
42350
|
+
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L4).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a3.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe2), this.regexpState = null, this.privateNameStack = [];
|
|
41968
42351
|
}, U4, w2, zi3, Ce4 = function() {
|
|
41969
42352
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
41970
42353
|
}, d2, ze3, Qi3, Yi3, ae2 = 1, Ge4 = 2, At5 = 4, D3, F2 = function(t, i, s, r, o) {
|
|
@@ -42288,8 +42671,8 @@ var init_acorn = __esm(() => {
|
|
|
42288
42671
|
N5 = { startsExpr: true };
|
|
42289
42672
|
Je4 = {};
|
|
42290
42673
|
a3 = { num: new C2("num", N5), regexp: new C2("regexp", N5), string: new C2("string", N5), name: new C2("name", N5), privateId: new C2("privateId", N5), eof: new C2("eof"), bracketL: new C2("[", { beforeExpr: true, startsExpr: true }), bracketR: new C2("]"), braceL: new C2("{", { beforeExpr: true, startsExpr: true }), braceR: new C2("}"), parenL: new C2("(", { beforeExpr: true, startsExpr: true }), parenR: new C2(")"), comma: new C2(",", O2), semi: new C2(";", O2), colon: new C2(":", O2), dot: new C2("."), question: new C2("?", O2), questionDot: new C2("?."), arrow: new C2("=>", O2), template: new C2("template"), invalidTemplate: new C2("invalidTemplate"), ellipsis: new C2("...", O2), backQuote: new C2("`", N5), dollarBraceL: new C2("${", { beforeExpr: true, startsExpr: true }), eq: new C2("=", { beforeExpr: true, isAssign: true }), assign: new C2("_=", { beforeExpr: true, isAssign: true }), incDec: new C2("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new C2("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: V4("||", 1), logicalAND: V4("&&", 2), bitwiseOR: V4("|", 3), bitwiseXOR: V4("^", 4), bitwiseAND: V4("&", 5), equality: V4("==/!=/===/!==", 6), relational: V4("</>/<=/>=", 7), bitShift: V4("<</>>/>>>", 8), plusMin: new C2("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: V4("%", 10), star: V4("*", 10), slash: V4("/", 10), starstar: new C2("**", { beforeExpr: true }), coalesce: V4("??", 1), _break: _3("break"), _case: _3("case", O2), _catch: _3("catch"), _continue: _3("continue"), _debugger: _3("debugger"), _default: _3("default", O2), _do: _3("do", { isLoop: true, beforeExpr: true }), _else: _3("else", O2), _finally: _3("finally"), _for: _3("for", { isLoop: true }), _function: _3("function", N5), _if: _3("if"), _return: _3("return", O2), _switch: _3("switch"), _throw: _3("throw", O2), _try: _3("try"), _var: _3("var"), _const: _3("const"), _while: _3("while", { isLoop: true }), _with: _3("with"), _new: _3("new", { beforeExpr: true, startsExpr: true }), _this: _3("this", N5), _super: _3("super", N5), _class: _3("class", N5), _extends: _3("extends", O2), _export: _3("export"), _import: _3("import", N5), _null: _3("null", N5), _true: _3("true", N5), _false: _3("false", N5), _in: _3("in", { beforeExpr: true, binop: 7 }), _instanceof: _3("instanceof", { beforeExpr: true, binop: 7 }), _typeof: _3("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: _3("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: _3("delete", { beforeExpr: true, prefix: true, startsExpr: true }) };
|
|
42291
|
-
|
|
42292
|
-
qi3 = new RegExp(
|
|
42674
|
+
L4 = /\r\n?|\n|\u2028|\u2029/;
|
|
42675
|
+
qi3 = new RegExp(L4.source, "g");
|
|
42293
42676
|
yt5 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
42294
42677
|
k4 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
42295
42678
|
gt5 = Object.prototype;
|
|
@@ -42384,7 +42767,7 @@ var init_acorn = __esm(() => {
|
|
|
42384
42767
|
if ((t[1] || t[2]) === "use strict") {
|
|
42385
42768
|
k4.lastIndex = e + t[0].length;
|
|
42386
42769
|
var i = k4.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
|
|
42387
|
-
return r === ";" || r === "}" ||
|
|
42770
|
+
return r === ";" || r === "}" || L4.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
|
|
42388
42771
|
}
|
|
42389
42772
|
e += t[0].length, k4.lastIndex = e, e += k4.exec(this.input)[0].length, this.input[e] === ";" && e++;
|
|
42390
42773
|
}
|
|
@@ -42402,7 +42785,7 @@ var init_acorn = __esm(() => {
|
|
|
42402
42785
|
this.eatContextual(e) || this.unexpected();
|
|
42403
42786
|
};
|
|
42404
42787
|
w2.canInsertSemicolon = function() {
|
|
42405
|
-
return this.type === a3.eof || this.type === a3.braceR ||
|
|
42788
|
+
return this.type === a3.eof || this.type === a3.braceR || L4.test(this.input.slice(this.lastTokEnd, this.start));
|
|
42406
42789
|
};
|
|
42407
42790
|
w2.insertSemicolon = function() {
|
|
42408
42791
|
if (this.canInsertSemicolon())
|
|
@@ -42485,14 +42868,14 @@ var init_acorn = __esm(() => {
|
|
|
42485
42868
|
return false;
|
|
42486
42869
|
k4.lastIndex = this.pos;
|
|
42487
42870
|
var e = k4.exec(this.input), t = this.pos + e[0].length, i;
|
|
42488
|
-
return !
|
|
42871
|
+
return !L4.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X5(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
42489
42872
|
};
|
|
42490
42873
|
d2.isUsingKeyword = function(e, t) {
|
|
42491
42874
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
42492
42875
|
return false;
|
|
42493
42876
|
k4.lastIndex = this.pos;
|
|
42494
42877
|
var i = k4.exec(this.input), s = this.pos + i[0].length;
|
|
42495
|
-
if (
|
|
42878
|
+
if (L4.test(this.input.slice(this.pos, s)))
|
|
42496
42879
|
return false;
|
|
42497
42880
|
if (e) {
|
|
42498
42881
|
var r = s + 5, o;
|
|
@@ -42500,7 +42883,7 @@ var init_acorn = __esm(() => {
|
|
|
42500
42883
|
return false;
|
|
42501
42884
|
k4.lastIndex = r;
|
|
42502
42885
|
var u = k4.exec(this.input);
|
|
42503
|
-
if (u &&
|
|
42886
|
+
if (u && L4.test(this.input.slice(r, r + u[0].length)))
|
|
42504
42887
|
return false;
|
|
42505
42888
|
}
|
|
42506
42889
|
if (t) {
|
|
@@ -42630,7 +43013,7 @@ var init_acorn = __esm(() => {
|
|
|
42630
43013
|
return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
|
|
42631
43014
|
};
|
|
42632
43015
|
d2.parseThrowStatement = function(e) {
|
|
42633
|
-
return this.next(),
|
|
43016
|
+
return this.next(), L4.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
42634
43017
|
};
|
|
42635
43018
|
Yi3 = [];
|
|
42636
43019
|
d2.parseCatchClauseParam = function() {
|
|
@@ -43097,7 +43480,7 @@ var init_acorn = __esm(() => {
|
|
|
43097
43480
|
};
|
|
43098
43481
|
ee.braceIsBlock = function(e) {
|
|
43099
43482
|
var t = this.curContext();
|
|
43100
|
-
return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ?
|
|
43483
|
+
return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ? L4.test(this.input.slice(this.lastTokEnd, this.start)) : e === a3._else || e === a3.semi || e === a3.eof || e === a3.parenR || e === a3.arrow ? true : e === a3.braceL ? t === T3.b_stat : e === a3._var || e === a3._const || e === a3.name ? false : !this.exprAllowed;
|
|
43101
43484
|
};
|
|
43102
43485
|
ee.inGeneratorContext = function() {
|
|
43103
43486
|
for (var e = this.context.length - 1;e >= 1; e--) {
|
|
@@ -43134,7 +43517,7 @@ var init_acorn = __esm(() => {
|
|
|
43134
43517
|
};
|
|
43135
43518
|
a3.incDec.updateContext = function() {};
|
|
43136
43519
|
a3._function.updateContext = a3._class.updateContext = function(e) {
|
|
43137
|
-
e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return &&
|
|
43520
|
+
e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return && L4.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a3.colon || e === a3.braceL) && this.curContext() === T3.b_stat) ? this.context.push(T3.f_expr) : this.context.push(T3.f_stat), this.exprAllowed = false;
|
|
43138
43521
|
};
|
|
43139
43522
|
a3.colon.updateContext = function() {
|
|
43140
43523
|
this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
|
|
@@ -43467,7 +43850,7 @@ var init_acorn = __esm(() => {
|
|
|
43467
43850
|
return this.next(), this.finishNode(i, "TemplateLiteral");
|
|
43468
43851
|
};
|
|
43469
43852
|
g.isAsyncProp = function(e) {
|
|
43470
|
-
return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !
|
|
43853
|
+
return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !L4.test(this.input.slice(this.lastTokEnd, this.start));
|
|
43471
43854
|
};
|
|
43472
43855
|
g.parseObj = function(e, t) {
|
|
43473
43856
|
var i = this.startNode(), s = true, r = {};
|
|
@@ -44055,7 +44438,7 @@ var init_acorn = __esm(() => {
|
|
|
44055
44438
|
};
|
|
44056
44439
|
f2.regexp_eatUnicodePropertyValue = function(e) {
|
|
44057
44440
|
var t = 0;
|
|
44058
|
-
for (e.lastStringValue = "";
|
|
44441
|
+
for (e.lastStringValue = "";ms4(t = e.current()); )
|
|
44059
44442
|
e.lastStringValue += q5(t), e.advance();
|
|
44060
44443
|
return e.lastStringValue !== "";
|
|
44061
44444
|
};
|
|
@@ -44370,7 +44753,7 @@ var init_acorn = __esm(() => {
|
|
|
44370
44753
|
};
|
|
44371
44754
|
b2.readToken_plus_min = function(e) {
|
|
44372
44755
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
44373
|
-
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 ||
|
|
44756
|
+
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L4.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a3.incDec, 2) : t === 61 ? this.finishOp(a3.assign, 2) : this.finishOp(a3.plusMin, 1);
|
|
44374
44757
|
};
|
|
44375
44758
|
b2.readToken_lt_gt = function(e) {
|
|
44376
44759
|
var t = this.input.charCodeAt(this.pos + 1), i = 1;
|
|
@@ -44491,7 +44874,7 @@ var init_acorn = __esm(() => {
|
|
|
44491
44874
|
for (var e, t, i = this.pos;; ) {
|
|
44492
44875
|
this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
|
|
44493
44876
|
var s = this.input.charAt(this.pos);
|
|
44494
|
-
if (
|
|
44877
|
+
if (L4.test(s) && this.raise(i, "Unterminated regular expression"), e)
|
|
44495
44878
|
e = false;
|
|
44496
44879
|
else {
|
|
44497
44880
|
if (s === "[")
|
|
@@ -44699,7 +45082,7 @@ var init_acorn = __esm(() => {
|
|
|
44699
45082
|
var e = this.readWord1(), t = a3.name;
|
|
44700
45083
|
return this.keywords.test(e) && (t = Je4[e]), this.finishToken(t, e);
|
|
44701
45084
|
};
|
|
44702
|
-
A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak:
|
|
45085
|
+
A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak: L4, lineBreakG: qi3, nonASCIIwhitespace: yt5 };
|
|
44703
45086
|
Si3 = ut2($e2(), 1);
|
|
44704
45087
|
Ae4 = As2;
|
|
44705
45088
|
ks2 = Array.prototype.findLast ?? function(e) {
|
|
@@ -45290,7 +45673,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
|
|
|
45290
45673
|
for (let s of e)
|
|
45291
45674
|
this.visit(s, n);
|
|
45292
45675
|
}
|
|
45293
|
-
}, kn2, bn2,
|
|
45676
|
+
}, kn2, bn2, L5, An2, pe3 = 0, os6 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt5 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q6 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe4 = 47, j3 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te4 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs22 = 122, Ve5 = 123, Ln2 = 124, K5 = 125, ds3 = 160, $t4 = 96, Ue3 = class t {
|
|
45294
45677
|
file;
|
|
45295
45678
|
offset;
|
|
45296
45679
|
line;
|
|
@@ -45348,7 +45731,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
|
|
|
45348
45731
|
toString() {
|
|
45349
45732
|
return this.start.file.content.substring(this.start.offset, this.end.offset);
|
|
45350
45733
|
}
|
|
45351
|
-
}, qe3, Ce5, Rn2, $n2, Dn2, Yi4 = "(:(where|is)\\()?",
|
|
45734
|
+
}, qe3, Ce5, Rn2, $n2, Dn2, Yi4 = "(:(where|is)\\()?", ms5 = "-shadowcsshost", Qi4 = "-shadowcsscontext", Bt3 = "[^)(]*", Ki4, Zi4, zt4, Yr3, Qr3, er4, Kr2, tr4, Zr2, gs3 = "%COMMENT%", eo3, to3, nr4 = "%COMMA_IN_PLACEHOLDER%", sr4 = "%SEMI_IN_PLACEHOLDER%", ir4 = "%COLON_IN_PLACEHOLDER%", no3, so3, io3, f3, ie3, Bn2, On2, Fn2, M5, Vn2, Un2, Hn3, Wn2, R5, qn3, jn2, rr4, vs4, Te4, Gt4, ro3, oo3, ao3, je4 = class {
|
|
45352
45735
|
strings;
|
|
45353
45736
|
expressions;
|
|
45354
45737
|
i18nPlaceholders;
|
|
@@ -47400,7 +47783,7 @@ var init_angular = __esm(() => {
|
|
|
47400
47783
|
})(bn2 || (bn2 = {}));
|
|
47401
47784
|
(function(t) {
|
|
47402
47785
|
t[t.Property = 0] = "Property", t[t.Attribute = 1] = "Attribute", t[t.Class = 2] = "Class", t[t.Style = 3] = "Style", t[t.LegacyAnimation = 4] = "LegacyAnimation", t[t.TwoWay = 5] = "TwoWay", t[t.Animation = 6] = "Animation";
|
|
47403
|
-
})(
|
|
47786
|
+
})(L5 || (L5 = {}));
|
|
47404
47787
|
(function(t) {
|
|
47405
47788
|
t[t.RAW_TEXT = 0] = "RAW_TEXT", t[t.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t[t.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
47406
47789
|
})(An2 || (An2 = {}));
|
|
@@ -47437,10 +47820,10 @@ var init_angular = __esm(() => {
|
|
|
47437
47820
|
Zi4 = `(?:\\(${Ki4}\\)|${Bt3})+?`;
|
|
47438
47821
|
zt4 = `(?:\\((${Zi4})\\))`;
|
|
47439
47822
|
Yr3 = new RegExp("(:nth-[-\\w]+)" + zt4, "g");
|
|
47440
|
-
Qr3 = new RegExp(
|
|
47823
|
+
Qr3 = new RegExp(ms5 + zt4 + "?([^,{]*)", "gim");
|
|
47441
47824
|
er4 = Qi4 + zt4 + "?([^{]*)";
|
|
47442
47825
|
Kr2 = new RegExp(`${Yi4}(${er4})`, "gim");
|
|
47443
|
-
tr4 =
|
|
47826
|
+
tr4 = ms5 + "-no-combinator";
|
|
47444
47827
|
Zr2 = new RegExp(`${tr4}(?![^(]*\\))`, "g");
|
|
47445
47828
|
eo3 = new RegExp(gs3, "g");
|
|
47446
47829
|
to3 = new RegExp(`(\\s*(?:${gs3}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
@@ -47558,7 +47941,7 @@ var init_angular = __esm(() => {
|
|
|
47558
47941
|
(function(t) {
|
|
47559
47942
|
t[t.None = 0] = "None", t[t.ViewContextRead = 1] = "ViewContextRead", t[t.ViewContextWrite = 2] = "ViewContextWrite", t[t.SideEffectful = 4] = "SideEffectful";
|
|
47560
47943
|
})(ns3 || (ns3 = {}));
|
|
47561
|
-
Ao2 = new Map([[
|
|
47944
|
+
Ao2 = new Map([[L5.Property, M5.Property], [L5.TwoWay, M5.TwoWayProperty], [L5.Attribute, M5.Attribute], [L5.Class, M5.ClassName], [L5.Style, M5.StyleProperty], [L5.LegacyAnimation, M5.LegacyAnimation], [L5.Animation, M5.Animation]]);
|
|
47562
47945
|
Io2 = Symbol("queryAdvancePlaceholder");
|
|
47563
47946
|
(function(t) {
|
|
47564
47947
|
t[t.NG_CONTENT = 0] = "NG_CONTENT", t[t.STYLE = 1] = "STYLE", t[t.STYLESHEET = 2] = "STYLESHEET", t[t.SCRIPT = 3] = "SCRIPT", t[t.OTHER = 4] = "OTHER";
|
|
@@ -48430,7 +48813,7 @@ function M6(a) {
|
|
|
48430
48813
|
let t = a.range?.[0] ?? a.start, e = (a.declaration?.decorators ?? a.decorators)?.[0];
|
|
48431
48814
|
return e ? Math.min(M6(e), t) : t;
|
|
48432
48815
|
}
|
|
48433
|
-
function
|
|
48816
|
+
function L6(a) {
|
|
48434
48817
|
return a.range?.[1] ?? a.end;
|
|
48435
48818
|
}
|
|
48436
48819
|
function yr4(a) {
|
|
@@ -48456,7 +48839,7 @@ function Ar4(a) {
|
|
|
48456
48839
|
let t;
|
|
48457
48840
|
for (let e = a.length - 1;e >= 0; e--) {
|
|
48458
48841
|
let s = a[e];
|
|
48459
|
-
if (t &&
|
|
48842
|
+
if (t && L6(s) === M6(t) && Ct7(s) && Ct7(t) && (a.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M6(s), L6(t)]), !gs4(s) && !se5(s))
|
|
48460
48843
|
throw new TypeError(`Unknown comment type: "${s.type}".`);
|
|
48461
48844
|
t = s;
|
|
48462
48845
|
}
|
|
@@ -48514,13 +48897,13 @@ function Ir3(a, t) {
|
|
|
48514
48897
|
case "ParenthesizedExpression": {
|
|
48515
48898
|
let { expression: l } = h, u = M6(h);
|
|
48516
48899
|
if (l.type === "TypeCastExpression")
|
|
48517
|
-
return l.range = [u,
|
|
48900
|
+
return l.range = [u, L6(h)], l;
|
|
48518
48901
|
let f = false;
|
|
48519
48902
|
if (!r) {
|
|
48520
48903
|
if (!o) {
|
|
48521
48904
|
o = [];
|
|
48522
48905
|
for (let x of i)
|
|
48523
|
-
Ts3(x) && o.push(
|
|
48906
|
+
Ts3(x) && o.push(L6(x));
|
|
48524
48907
|
}
|
|
48525
48908
|
let d = xs5(0, o, (x) => x <= u);
|
|
48526
48909
|
f = d && s.slice(d, u).trim().length === 0;
|
|
@@ -48533,13 +48916,13 @@ function Ir3(a, t) {
|
|
|
48533
48916
|
break;
|
|
48534
48917
|
case "TemplateElement":
|
|
48535
48918
|
if (e === "flow" || e === "hermes" || e === "espree" || e === "typescript" || r) {
|
|
48536
|
-
let l = M6(h) + 1, u =
|
|
48919
|
+
let l = M6(h) + 1, u = L6(h) - (h.tail ? 1 : 2);
|
|
48537
48920
|
h.range = [l, u];
|
|
48538
48921
|
}
|
|
48539
48922
|
break;
|
|
48540
48923
|
case "VariableDeclaration": {
|
|
48541
48924
|
let l = Ps5(0, h.declarations, -1);
|
|
48542
|
-
l?.init && s[
|
|
48925
|
+
l?.init && s[L6(l)] !== ";" && (h.range = [M6(h), L6(l)]);
|
|
48543
48926
|
break;
|
|
48544
48927
|
}
|
|
48545
48928
|
case "TSParenthesizedType":
|
|
@@ -48572,7 +48955,7 @@ function Is5(a) {
|
|
|
48572
48955
|
return a.type === "LogicalExpression" && a.right.type === "LogicalExpression" && a.operator === a.right.operator;
|
|
48573
48956
|
}
|
|
48574
48957
|
function It6(a) {
|
|
48575
|
-
return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left),
|
|
48958
|
+
return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left), L6(a.right.left)] }), right: a.right.right, range: [M6(a), L6(a)] }) : a;
|
|
48576
48959
|
}
|
|
48577
48960
|
function Nr4(a, t) {
|
|
48578
48961
|
let e = new SyntaxError(a + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
|
|
@@ -48625,7 +49008,7 @@ function Us5(a) {
|
|
|
48625
49008
|
return Os4.some((e) => Object.prototype.hasOwnProperty.call(t, e));
|
|
48626
49009
|
}
|
|
48627
49010
|
function _r4(a) {
|
|
48628
|
-
return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd:
|
|
49011
|
+
return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd: L6, ...a };
|
|
48629
49012
|
}
|
|
48630
49013
|
function _s4(a) {
|
|
48631
49014
|
if (typeof a == "string") {
|
|
@@ -48644,7 +49027,7 @@ function qr3(a, t) {
|
|
|
48644
49027
|
return true;
|
|
48645
49028
|
let e = ve6(a);
|
|
48646
49029
|
e && (a = a.slice(e.length));
|
|
48647
|
-
let s =
|
|
49030
|
+
let s = ms6(a, 0);
|
|
48648
49031
|
return s !== false && (a = a.slice(0, s)), zr3.test(a);
|
|
48649
49032
|
}
|
|
48650
49033
|
function $r4(a, t, e) {
|
|
@@ -52298,7 +52681,7 @@ var Hs5, Re5 = (a, t) => {
|
|
|
52298
52681
|
return this.parseV8Intrinsic() || super.parseExprAtom(e);
|
|
52299
52682
|
}
|
|
52300
52683
|
}, Kt5, Ht6, hs4, tr5, pt7, ze5, sr5, ir5, qe4, ut4, Ee5, ua2, Wt6, da2, cs4, ma2, ls4, ps4, us4 = (a) => a === `
|
|
52301
|
-
` || a === "\r" || a === "\u2028" || a === "\u2029", fs23, ds4,
|
|
52684
|
+
` || a === "\r" || a === "\u2028" || a === "\u2029", fs23, ds4, ms6, ve6, ee3 = (a, t) => (e, s, ...i) => e | 1 && s == null ? undefined : (t.call(s) ?? s[a]).apply(s, i), ur5, fr5, xs5, mr3, Ps5, te5, xr4, se5, Pr3, gs4, St6, Ts3, wt6, Ct7, bs4, As4, me6 = null, wr4 = 10, Ss3, c4, ws4, Er4, Cs3, Es3, fn4, Ns4, De5, ks4 = "Unexpected parseExpression() input: ", Me5, vr4, Lr4, xe4, Dr4, Mr4, Or4, Fr4, vs5, Br4, Ls5, Rr4, Ur4, Os4, Fs5, H6, Oe5 = "module", Nt6 = "commonjs", Fe5, ie4 = (a) => H6(Kr3(a)), Vr4, js5 = "v8intrinsic", Vs4, _4 = (a, t = Vr4) => ({ ...t, plugins: [...t.plugins, ...a] }), zr3, Hr3, zs5, Wr2, Jr2, Gr3, Xr2, qs5, Yr4, Lt7, vt7, $s4, ea2, ta2, sa2, ia2, ra2;
|
|
52302
52685
|
var init_babel = __esm(() => {
|
|
52303
52686
|
Hs5 = Object.defineProperty;
|
|
52304
52687
|
Ks4 = {};
|
|
@@ -55433,7 +55816,7 @@ var init_babel = __esm(() => {
|
|
|
55433
55816
|
ps4 = or5;
|
|
55434
55817
|
fs23 = hr5;
|
|
55435
55818
|
ds4 = cr4;
|
|
55436
|
-
|
|
55819
|
+
ms6 = lr4;
|
|
55437
55820
|
ve6 = pr5;
|
|
55438
55821
|
ur5 = Array.prototype.findLast ?? function(a) {
|
|
55439
55822
|
for (let t = this.length - 1;t >= 0; t--) {
|
|
@@ -85877,7 +86260,7 @@ function ps5(e) {
|
|
|
85877
86260
|
function fs24(e, t) {
|
|
85878
86261
|
return { open: e.charAt(2) === "~", close: t.charAt(t.length - 3) === "~" };
|
|
85879
86262
|
}
|
|
85880
|
-
function
|
|
86263
|
+
function ms7(e) {
|
|
85881
86264
|
return e.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
|
|
85882
86265
|
}
|
|
85883
86266
|
function ds5(e, t, r, s) {
|
|
@@ -87725,7 +88108,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
87725
88108
|
};
|
|
87726
88109
|
jr3 = G6;
|
|
87727
88110
|
Ft7 = {};
|
|
87728
|
-
Oe6(Ft7, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () =>
|
|
88111
|
+
Oe6(Ft7, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () => ms7, stripFlags: () => fs24 });
|
|
87729
88112
|
Qr5 = {};
|
|
87730
88113
|
for (ue5 in Ft7)
|
|
87731
88114
|
Object.prototype.hasOwnProperty.call(Ft7, ue5) && (Qr5[ue5] = Ft7[ue5]);
|
|
@@ -88962,7 +89345,7 @@ function Pt8(e) {
|
|
|
88962
89345
|
function tt8(e) {
|
|
88963
89346
|
return e === o3.BANG || e === o3.DOLLAR || e === o3.AMP || e === o3.PAREN_L || e === o3.PAREN_R || e === o3.DOT || e === o3.SPREAD || e === o3.COLON || e === o3.EQUALS || e === o3.AT || e === o3.BRACKET_L || e === o3.BRACKET_R || e === o3.BRACE_L || e === o3.PIPE || e === o3.BRACE_R;
|
|
88964
89347
|
}
|
|
88965
|
-
function
|
|
89348
|
+
function L7(e) {
|
|
88966
89349
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
88967
89350
|
}
|
|
88968
89351
|
function K8(e, t) {
|
|
@@ -89044,7 +89427,7 @@ function wt8(e, t) {
|
|
|
89044
89427
|
return Mt8(e, r, s);
|
|
89045
89428
|
if (pe6(s))
|
|
89046
89429
|
return jt6(e, r);
|
|
89047
|
-
throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
89430
|
+
throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : L7(s) || K8(n, r) ? `Unexpected character: ${R8(e, r)}.` : `Invalid character: ${R8(e, r)}.`);
|
|
89048
89431
|
}
|
|
89049
89432
|
return m4(e, o3.EOF, i, i);
|
|
89050
89433
|
}
|
|
@@ -89054,7 +89437,7 @@ function Ft8(e, t) {
|
|
|
89054
89437
|
let s = n.charCodeAt(r);
|
|
89055
89438
|
if (s === 10 || s === 13)
|
|
89056
89439
|
break;
|
|
89057
|
-
if (
|
|
89440
|
+
if (L7(s))
|
|
89058
89441
|
++r;
|
|
89059
89442
|
else if (K8(n, r))
|
|
89060
89443
|
r += 2;
|
|
@@ -89096,7 +89479,7 @@ function Vt8(e, t) {
|
|
|
89096
89479
|
}
|
|
89097
89480
|
if (u === 10 || u === 13)
|
|
89098
89481
|
break;
|
|
89099
|
-
if (
|
|
89482
|
+
if (L7(u))
|
|
89100
89483
|
++r;
|
|
89101
89484
|
else if (K8(n, r))
|
|
89102
89485
|
r += 2;
|
|
@@ -89110,7 +89493,7 @@ function Bt6(e, t) {
|
|
|
89110
89493
|
for (;r < 12; ) {
|
|
89111
89494
|
let s = n.charCodeAt(t + r++);
|
|
89112
89495
|
if (s === 125) {
|
|
89113
|
-
if (r < 5 || !
|
|
89496
|
+
if (r < 5 || !L7(i))
|
|
89114
89497
|
break;
|
|
89115
89498
|
return { value: String.fromCodePoint(i), size: r };
|
|
89116
89499
|
}
|
|
@@ -89121,7 +89504,7 @@ function Bt6(e, t) {
|
|
|
89121
89504
|
}
|
|
89122
89505
|
function Ut7(e, t) {
|
|
89123
89506
|
let n = e.source.body, i = et9(n, t + 2);
|
|
89124
|
-
if (
|
|
89507
|
+
if (L7(i))
|
|
89125
89508
|
return { value: String.fromCodePoint(i), size: 6 };
|
|
89126
89509
|
if (nt9(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
|
|
89127
89510
|
let r = et9(n, t + 8);
|
|
@@ -89177,7 +89560,7 @@ function Yt5(e, t) {
|
|
|
89177
89560
|
u += n.slice(a, s), p.push(u), T === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, u = "", a = s, r = s;
|
|
89178
89561
|
continue;
|
|
89179
89562
|
}
|
|
89180
|
-
if (
|
|
89563
|
+
if (L7(T))
|
|
89181
89564
|
++s;
|
|
89182
89565
|
else if (K8(n, s))
|
|
89183
89566
|
s += 2;
|
|
@@ -89973,7 +90356,7 @@ spurious results.`);
|
|
|
89973
90356
|
var exports_html = {};
|
|
89974
90357
|
__export(exports_html, {
|
|
89975
90358
|
default: () => ws6,
|
|
89976
|
-
languages: () =>
|
|
90359
|
+
languages: () => ms8,
|
|
89977
90360
|
options: () => ds6,
|
|
89978
90361
|
parsers: () => Qr6,
|
|
89979
90362
|
printers: () => Ll2
|
|
@@ -90047,7 +90430,7 @@ function ar7(e, t) {
|
|
|
90047
90430
|
}
|
|
90048
90431
|
}
|
|
90049
90432
|
}
|
|
90050
|
-
function
|
|
90433
|
+
function L8(e, t = nn6) {
|
|
90051
90434
|
return ar7(e, (r) => typeof r == "string" ? q9(t, r.split(`
|
|
90052
90435
|
`)) : r);
|
|
90053
90436
|
}
|
|
@@ -90425,7 +90808,7 @@ function Hn4(e, t) {
|
|
|
90425
90808
|
return n === "script" && i === "setup" || n === "style" && i === "vars";
|
|
90426
90809
|
}
|
|
90427
90810
|
function Dt8(e, t = e.value) {
|
|
90428
|
-
return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ?
|
|
90811
|
+
return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? L8(t) : L8(y4.dedentString(fr7(t)), v7) : q9(_7, y4.split(t));
|
|
90429
90812
|
}
|
|
90430
90813
|
function It9(e, t) {
|
|
90431
90814
|
return me9(e, t) && e.name === "script";
|
|
@@ -90444,12 +90827,12 @@ async function Wn4(e, t, r) {
|
|
|
90444
90827
|
let n = b6(r.node), i = [];
|
|
90445
90828
|
for (let [s, a] of n.split(Vn3).entries())
|
|
90446
90829
|
if (s % 2 === 0)
|
|
90447
|
-
i.push(
|
|
90830
|
+
i.push(L8(a));
|
|
90448
90831
|
else
|
|
90449
90832
|
try {
|
|
90450
90833
|
i.push(C5(["{{", A6([_7, await x6(a, e, { parser: "__ng_interpolation", __isInHtmlInterpolation: true })]), _7, "}}"]));
|
|
90451
90834
|
} catch {
|
|
90452
|
-
i.push("{{",
|
|
90835
|
+
i.push("{{", L8(a), "}}");
|
|
90453
90836
|
}
|
|
90454
90837
|
return i;
|
|
90455
90838
|
}
|
|
@@ -90683,7 +91066,7 @@ function Ga3(e, t, r) {
|
|
|
90683
91066
|
let { node: n } = e;
|
|
90684
91067
|
if (!Ie8(n.attrs))
|
|
90685
91068
|
return n.isSelfClosing ? " " : "";
|
|
90686
|
-
let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ?
|
|
91069
|
+
let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ? L8(t.originalText.slice(Q9(d), te8(d))) : r(), "attrs"), o = n.kind === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, u = t.singleAttributePerLine && n.attrs.length > 1 && !me9(n, t) ? v7 : _7, p = [A6([o ? " " : _7, q9(u, a)])];
|
|
90687
91070
|
return n.firstChild && tt9(n.firstChild) || n.isSelfClosing && ge8(n.parent) || o ? p.push(n.isSelfClosing ? " " : "") : p.push(t.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? _7 : k8), p;
|
|
90688
91071
|
}
|
|
90689
91072
|
function $a4(e) {
|
|
@@ -90813,7 +91196,7 @@ function st8(e, t, r) {
|
|
|
90813
91196
|
let n = e.node;
|
|
90814
91197
|
if (he8(n)) {
|
|
90815
91198
|
let i = ki7(n);
|
|
90816
|
-
return [U8(n, t),
|
|
91199
|
+
return [U8(n, t), L8(y4.trimEnd(t.originalText.slice(Q9(n) + (n.prev && et10(n.prev) ? Bt7(n).length : 0), i - (n.next && $8(n.next) ? de7(n, t).length : 0)))), V8(n, t)];
|
|
90817
91200
|
}
|
|
90818
91201
|
return r();
|
|
90819
91202
|
}
|
|
@@ -90877,7 +91260,7 @@ function Li6(e, t, r) {
|
|
|
90877
91260
|
function Pi6(e, t, r) {
|
|
90878
91261
|
let { node: n } = e;
|
|
90879
91262
|
if (Nt9(n, t))
|
|
90880
|
-
return [U8(n, t), C5(rt10(e, t, r)),
|
|
91263
|
+
return [U8(n, t), C5(rt10(e, t, r)), L8(qt7(n, t)), ...Ze9(n, t), V8(n, t)];
|
|
90881
91264
|
let i = n.children.length === 1 && (n.firstChild.kind === "interpolation" || n.firstChild.kind === "angularIcuExpression") && n.firstChild.isLeadingSpaceSensitive && !n.firstChild.hasLeadingSpaces && n.lastChild.isTrailingSpaceSensitive && !n.lastChild.hasTrailingSpaces, s = Symbol("element-attr-group-id"), a = (p) => C5([C5(rt10(e, t, r), { id: s }), p, Ze9(n, t)]), o = (p) => i ? ln5(p, { groupId: s }) : (H9(n, t) || Je9(n, t)) && n.parent.kind === "root" && t.parser === "vue" && !t.vueIndentScriptAndStyle ? p : A6(p), c = () => i ? X9(k8, "", { groupId: s }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? _7 : n.firstChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? on9(k8) : k8, u = () => (n.next ? $8(n.next) : ge8(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : i ? X9(k8, "", { groupId: s }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? _7 : (n.lastChild.kind === "comment" || n.lastChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${t.tabWidth * (e.ancestors.length - 1)}}$`, "u").test(n.lastChild.value) ? "" : k8;
|
|
90882
91265
|
return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? _7 : "") : a([Pn4(n) ? j6 : "", o([c(), Re8(e, t, r)]), u()]);
|
|
90883
91266
|
}
|
|
@@ -91215,7 +91598,7 @@ function sl3(e, t, r) {
|
|
|
91215
91598
|
case "text": {
|
|
91216
91599
|
if (n.parent.kind === "interpolation") {
|
|
91217
91600
|
let o = /\n[^\S\n]*$/u, c = o.test(n.value), u = c ? n.value.replace(o, "") : n.value;
|
|
91218
|
-
return [
|
|
91601
|
+
return [L8(u), c ? v7 : ""];
|
|
91219
91602
|
}
|
|
91220
91603
|
let i = U8(n, t), s = Dt8(n), a = V8(n, t);
|
|
91221
91604
|
return s[0] = [i, s[0]], s.push([s.pop(), a]), xt8(s);
|
|
@@ -91223,12 +91606,12 @@ function sl3(e, t, r) {
|
|
|
91223
91606
|
case "docType":
|
|
91224
91607
|
return [C5([Se8(n, t), " ", w5(0, n.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), fe7(n, t)];
|
|
91225
91608
|
case "comment":
|
|
91226
|
-
return [U8(n, t),
|
|
91609
|
+
return [U8(n, t), L8(t.originalText.slice(Q9(n), te8(n))), V8(n, t)];
|
|
91227
91610
|
case "attribute": {
|
|
91228
91611
|
if (n.value === null)
|
|
91229
91612
|
return n.rawName;
|
|
91230
91613
|
let i = Sr5(n.value), s = Rt8(n, t) ? "" : pn5(i, '"');
|
|
91231
|
-
return [n.rawName, "=", s,
|
|
91614
|
+
return [n.rawName, "=", s, L8(s === '"' ? w5(0, i, '"', """) : w5(0, i, "'", "'")), s];
|
|
91232
91615
|
}
|
|
91233
91616
|
case "frontMatter":
|
|
91234
91617
|
case "cdata":
|
|
@@ -92502,7 +92885,7 @@ ${e}`, wi7, Ja3 = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "c
|
|
|
92502
92885
|
}
|
|
92503
92886
|
return i;
|
|
92504
92887
|
}
|
|
92505
|
-
}, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6,
|
|
92888
|
+
}, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6, ms8, Wr4, fs25 = "HTML", ol3, ds6, Qr6, gs6, cl2, Zt8, _s6, er7, Ss5, oe7, $r6, zr5, We9 = class We {
|
|
92506
92889
|
constructor(t = {}) {
|
|
92507
92890
|
tn6(this, oe7);
|
|
92508
92891
|
ir7(this, "kind");
|
|
@@ -92597,7 +92980,7 @@ ${e}`, wi7, Ja3 = (e) => e?.kind === "angularControlFlowBlock" && (e.name === "c
|
|
|
92597
92980
|
var init_html = __esm(() => {
|
|
92598
92981
|
Jr4 = Object.defineProperty;
|
|
92599
92982
|
ws6 = {};
|
|
92600
|
-
en6(ws6, { languages: () =>
|
|
92983
|
+
en6(ws6, { languages: () => ms8, options: () => ds6, parsers: () => Qr6, printers: () => Ll2 });
|
|
92601
92984
|
As6 = String.prototype.replaceAll ?? function(e, t) {
|
|
92602
92985
|
return e.global ? this.replace(e, t) : this.split(e).join(t);
|
|
92603
92986
|
};
|
|
@@ -92998,7 +93381,7 @@ If '${e}' is a directive input, make sure the directive is imported by the curre
|
|
|
92998
93381
|
ps6 = Yo2;
|
|
92999
93382
|
al2 = { features: { experimental_frontMatterSupport: { massageAstNode: true, embed: true, print: true } }, preprocess: ps6, print: sl3, insertPragma: bi7, massageAstNode: dn5, embed: fi7, getVisitorKeys: _i6 };
|
|
93000
93383
|
hs6 = al2;
|
|
93001
|
-
|
|
93384
|
+
ms8 = [{ name: "Angular", type: "markup", aceMode: "html", extensions: [".component.html"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "HTML", type: "markup", aceMode: "html", extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["html"], vscodeLanguageIds: ["html"], linguistLanguageId: 146 }, { name: "Lightning Web Components", type: "markup", aceMode: "html", extensions: [], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "MJML", type: "markup", aceMode: "html", extensions: [".mjml"], tmScope: "text.mjml.basic", aliases: ["MJML", "mjml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["mjml"], filenames: [], vscodeLanguageIds: ["mjml"], linguistLanguageId: 146 }, { name: "Vue", type: "markup", aceMode: "vue", extensions: [".vue"], tmScope: "source.vue", codemirrorMode: "vue", codemirrorMimeType: "text/x-vue", parsers: ["vue"], vscodeLanguageIds: ["vue"], linguistLanguageId: 391 }];
|
|
93002
93385
|
Wr4 = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
|
|
93003
93386
|
ol3 = { bracketSameLine: Wr4.bracketSameLine, htmlWhitespaceSensitivity: { category: fs25, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: Wr4.singleAttributePerLine, vueIndentScriptAndStyle: { category: fs25, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
|
|
93004
93387
|
ds6 = ol3;
|
|
@@ -94224,7 +94607,7 @@ var El3, Ft10, Cl3, vl3, Al3, bl3, x7 = (e, r) => () => (r || e((r = { exports:
|
|
|
94224
94607
|
for (let i of vl3(r))
|
|
94225
94608
|
!bl3.call(e, i) && i !== t && Ft10(e, i, { get: () => r[i], enumerable: !(n = Cl3(r, i)) || n.enumerable });
|
|
94226
94609
|
return e;
|
|
94227
|
-
}, Re9 = (e, r, t) => (t = e != null ? El3(Al3(e)) : {}, xl3(r || !e || !e.__esModule ? Ft10(t, "default", { value: e, enumerable: true }) : t, e)), Tr6, Qi7, Mt10, uu2, lu2, Du2, Ie9, hu2, Fu2, Eu2, vu2, bu2, xu2, yu2, Se9, Tu2, $e8, Ou2, qu2, Iu2, mr6, Ju2, ea4, na3, ua4, Kt8, sa4, fa3, pa3, Fa4, Ea3, va3, xa3, wa3, Zr6, Qt8, Oa3, Pa3, Le9, rt11, Ua4, za3, ja4, nn7, Ja4, no5, oo5, cn6, po5, se8, ln6, bo3, wo4, Bo3, Oo3, Io4, hn6, Yo3, zo3, jo3, Jo3, rs6, us7, ss7, yn6,
|
|
94610
|
+
}, Re9 = (e, r, t) => (t = e != null ? El3(Al3(e)) : {}, xl3(r || !e || !e.__esModule ? Ft10(t, "default", { value: e, enumerable: true }) : t, e)), Tr6, Qi7, Mt10, uu2, lu2, Du2, Ie9, hu2, Fu2, Eu2, vu2, bu2, xu2, yu2, Se9, Tu2, $e8, Ou2, qu2, Iu2, mr6, Ju2, ea4, na3, ua4, Kt8, sa4, fa3, pa3, Fa4, Ea3, va3, xa3, wa3, Zr6, Qt8, Oa3, Pa3, Le9, rt11, Ua4, za3, ja4, nn7, Ja4, no5, oo5, cn6, po5, se8, ln6, bo3, wo4, Bo3, Oo3, Io4, hn6, Yo3, zo3, jo3, Jo3, rs6, us7, ss7, yn6, ms9, Es6, vs8, ys7, ks7, Bs8, Ps8, Ss6, Ys8, zs8, js8, Hs8, Js8, Zs8, nc2, oc2, cc2, Pn5, Ec2, vc2, bc2, Tc2, qc2, Ic2, Sc2, Rc2, Yc2, zc2, Vc2, el3, gl3, Me9 = (e, r) => (t, n, ...i) => t | 1 && n == null ? undefined : (r.call(n) ?? n[e]).apply(n, i), wl3, U9, kl3, Tl3, R10, $i7, _l3 = () => {}, tr8, V9 = "string", j7 = "array", be9 = "cursor", ee6 = "indent", re6 = "align", De8 = "trim", X10 = "group", J11 = "fill", Q10 = "if-break", pe8 = "indent-if-break", he9 = "line-suffix", de8 = "line-suffix-boundary", $9 = "line", me10 = "label", te9 = "break-parent", Br6, W10, ql2 = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e), gt10, Be8, $n5, Hn5, ne9, Or6, Jn4, Qn5, Ue7, qr5, Nr6, ar8, M9, Sl3, nr7, Ll3 = "cr", Rl2 = "crlf", Ml2 = "\r", Ul2 = `\r
|
|
94228
94611
|
`, Yl2 = `
|
|
94229
94612
|
`, Gl2, ri8 = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g, ti8 = "©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇", zl2, Wl2, or8, jl2, $l2, vt11, H10, ue8, bt11, Ir5, oi8, si8, ci8, Jl2, Ql2, li8, xt9, fi8, bi8, ef, rf, Di7, nf, hi8 = (e) => String(e).split(/[/\\]/u).pop(), di8 = (e) => String(e).startsWith("file:"), sf = undefined, wt10, Sr6, kt11, sr8 = 3, _e8, gi8 = "format", Ei8, Ci7, Lr7 = (e) => _e8(e).content.trimStart().match(Ci7)?.index === 0, vi8 = (e) => _e8(e).content.trimStart().match(Ei8)?.index === 0, Ai8 = (e) => {
|
|
94230
94613
|
let { frontMatter: r } = _e8(e), t = `<!-- @${gi8} -->`;
|
|
@@ -95901,7 +96284,7 @@ $$`;
|
|
|
95901
96284
|
return n === -1 || t < n ? t : n;
|
|
95902
96285
|
}
|
|
95903
96286
|
});
|
|
95904
|
-
|
|
96287
|
+
ms9 = x7((i2, ds) => {
|
|
95905
96288
|
var br = se8(), T0 = yn6();
|
|
95906
96289
|
ds.exports = hs;
|
|
95907
96290
|
hs.locator = T0;
|
|
@@ -96210,7 +96593,7 @@ $$`;
|
|
|
96210
96593
|
Y.interruptList = [["atxHeading", { pedantic: false }], ["fencedCode", { pedantic: false }], ["thematicBreak", { pedantic: false }], ["definition", { commonmark: false }]];
|
|
96211
96594
|
Y.interruptBlockquote = [["indentedCode", { commonmark: true }], ["fencedCode", { commonmark: true }], ["atxHeading", { commonmark: true }], ["setextHeading", { commonmark: true }], ["thematicBreak", { commonmark: true }], ["html", { commonmark: true }], ["list", { commonmark: true }], ["definition", { commonmark: false }]];
|
|
96212
96595
|
Y.blockTokenizers = { blankLine: wa3(), indentedCode: Oa3(), fencedCode: Pa3(), blockquote: Ua4(), atxHeading: za3(), thematicBreak: ja4(), list: no5(), setextHeading: oo5(), html: po5(), definition: bo3(), table: wo4(), paragraph: Bo3() };
|
|
96213
|
-
Y.inlineTokenizers = { escape: Io4(), autoLink: Yo3(), url: Jo3(), email: us7(), html: ss7(), link:
|
|
96596
|
+
Y.inlineTokenizers = { escape: Io4(), autoLink: Yo3(), url: Jo3(), email: us7(), html: ss7(), link: ms9(), reference: Es6(), strong: ys7(), emphasis: Ps8(), deletion: Ys8(), code: js8(), break: Js8(), text: Zs8() };
|
|
96214
96597
|
Y.blockMethods = rc(Y.blockTokenizers);
|
|
96215
96598
|
Y.inlineMethods = rc(Y.inlineTokenizers);
|
|
96216
96599
|
Y.tokenizeBlock = Nn("block");
|
|
@@ -98043,7 +98426,7 @@ function ue9(e, t, n, u, o, i) {
|
|
|
98043
98426
|
function At12(e, t, n, u, o, i) {
|
|
98044
98427
|
let { tokenStart: l } = e, f = e.getToken(), c = null, g = Zt9(e, t, n, u, o, i);
|
|
98045
98428
|
if (e.getToken() === 1077936155) {
|
|
98046
|
-
if (r(e, t | 32), c =
|
|
98429
|
+
if (r(e, t | 32), c = L9(e, t, u, 1, 0, e.tokenStart), (i & 32 || (f & 2097152) === 0) && (e.getToken() === 471156 || e.getToken() === 8673330 && (f & 2097152 || (o & 4) === 0 || t & 1)))
|
|
98047
98430
|
throw new q11(l, e.currentLocation, 60, e.getToken() === 471156 ? "of" : "in");
|
|
98048
98431
|
} else
|
|
98049
98432
|
(o & 16 || (f & 2097152) > 0) && (e.getToken() & 262144) !== 262144 && e.report(59, o & 16 ? "const" : "destructuring");
|
|
@@ -98066,7 +98449,7 @@ function Ln5(e, t, n, u, o) {
|
|
|
98066
98449
|
d = _8(e, t | 131072, u, 1, 0, 1);
|
|
98067
98450
|
if ((e.getToken() & 262144) === 262144) {
|
|
98068
98451
|
if (e.getToken() === 471156) {
|
|
98069
|
-
e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h =
|
|
98452
|
+
e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h = L9(e, t, u, 1, 0, e.tokenStart), y5(e, t | 32, 16);
|
|
98070
98453
|
let D = de9(e, t, n, u, o);
|
|
98071
98454
|
return e.finishNode({ type: "ForOfStatement", left: d, right: h, body: D, await: l }, i);
|
|
98072
98455
|
}
|
|
@@ -98167,7 +98550,7 @@ function Pn6(e, t, n) {
|
|
|
98167
98550
|
break;
|
|
98168
98551
|
}
|
|
98169
98552
|
default:
|
|
98170
|
-
i =
|
|
98553
|
+
i = L9(e, t, undefined, 1, 0, e.tokenStart), M10(e, t | 32);
|
|
98171
98554
|
}
|
|
98172
98555
|
return n && e.declareUnboundVariable("default"), e.finishNode({ type: "ExportDefaultDeclaration", declaration: i }, u);
|
|
98173
98556
|
}
|
|
@@ -98220,25 +98603,25 @@ function Pn6(e, t, n) {
|
|
|
98220
98603
|
let c = { type: "ExportNamedDeclaration", declaration: i, specifiers: o, source: l, attributes: f };
|
|
98221
98604
|
return e.finishNode(c, u);
|
|
98222
98605
|
}
|
|
98223
|
-
function
|
|
98606
|
+
function L9(e, t, n, u, o, i) {
|
|
98224
98607
|
let l = U10(e, t, n, 2, 0, u, o, 1, i);
|
|
98225
98608
|
return l = F8(e, t, n, l, o, 0, i), I8(e, t, n, o, 0, i, l);
|
|
98226
98609
|
}
|
|
98227
98610
|
function W11(e, t, n, u, o, i) {
|
|
98228
98611
|
let l = [i];
|
|
98229
98612
|
for (;C6(e, t | 32, 18); )
|
|
98230
|
-
l.push(
|
|
98613
|
+
l.push(L9(e, t, n, 1, u, e.tokenStart));
|
|
98231
98614
|
return e.finishNode({ type: "SequenceExpression", expressions: l }, o);
|
|
98232
98615
|
}
|
|
98233
98616
|
function V10(e, t, n, u, o, i) {
|
|
98234
|
-
let l =
|
|
98617
|
+
let l = L9(e, t, n, o, u, i);
|
|
98235
98618
|
return e.getToken() === 18 ? W11(e, t, n, u, i, l) : l;
|
|
98236
98619
|
}
|
|
98237
98620
|
function I8(e, t, n, u, o, i, l) {
|
|
98238
98621
|
let f = e.getToken();
|
|
98239
98622
|
if ((f & 4194304) === 4194304) {
|
|
98240
98623
|
e.assignable & 2 && e.report(26), (!o && f === 1077936155 && l.type === "ArrayExpression" || l.type === "ObjectExpression") && K10(e, l), r(e, t | 32);
|
|
98241
|
-
let c =
|
|
98624
|
+
let c = L9(e, t, n, 1, u, e.tokenStart);
|
|
98242
98625
|
return e.assignable = 2, e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i);
|
|
98243
98626
|
}
|
|
98244
98627
|
return (f & 8388608) === 8388608 && (l = G9(e, t, n, u, i, 4, f, l)), C6(e, t | 32, 22) && (l = ee7(e, t, n, l, i)), l;
|
|
@@ -98246,13 +98629,13 @@ function I8(e, t, n, u, o, i, l) {
|
|
|
98246
98629
|
function be10(e, t, n, u, o, i, l) {
|
|
98247
98630
|
let f = e.getToken();
|
|
98248
98631
|
r(e, t | 32);
|
|
98249
|
-
let c =
|
|
98632
|
+
let c = L9(e, t, n, 1, u, e.tokenStart);
|
|
98250
98633
|
return l = e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i), e.assignable = 2, l;
|
|
98251
98634
|
}
|
|
98252
98635
|
function ee7(e, t, n, u, o) {
|
|
98253
|
-
let i =
|
|
98636
|
+
let i = L9(e, (t | 131072) ^ 131072, n, 1, 0, e.tokenStart);
|
|
98254
98637
|
y5(e, t | 32, 21), e.assignable = 1;
|
|
98255
|
-
let l =
|
|
98638
|
+
let l = L9(e, t, n, 1, 0, e.tokenStart);
|
|
98256
98639
|
return e.assignable = 2, e.finishNode({ type: "ConditionalExpression", test: u, consequent: i, alternate: l }, o);
|
|
98257
98640
|
}
|
|
98258
98641
|
function G9(e, t, n, u, o, i, l, f) {
|
|
@@ -98282,7 +98665,7 @@ function Rn4(e, t, n, u, o, i) {
|
|
|
98282
98665
|
if (u && (e.destructible |= 256), t & 1024) {
|
|
98283
98666
|
r(e, t | 32), t & 8192 && e.report(32), o || e.report(26), e.getToken() === 22 && e.report(124);
|
|
98284
98667
|
let l = null, f = false;
|
|
98285
|
-
return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l =
|
|
98668
|
+
return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l = L9(e, t, n, 1, 0, e.tokenStart))) : e.getToken() === 8391476 && e.report(30, B6[e.getToken() & 255]), e.assignable = 2, e.finishNode({ type: "YieldExpression", argument: l, delegate: f }, i);
|
|
98286
98669
|
}
|
|
98287
98670
|
return t & 1 && e.report(97, "yield"), nt11(e, t, n);
|
|
98288
98671
|
}
|
|
@@ -98505,11 +98888,11 @@ function Xt8(e, t, n, u) {
|
|
|
98505
98888
|
}
|
|
98506
98889
|
function jt7(e, t, n, u, o) {
|
|
98507
98890
|
y5(e, t | 32, 67174411), e.getToken() === 14 && e.report(143);
|
|
98508
|
-
let i =
|
|
98891
|
+
let i = L9(e, t, n, 1, u, e.tokenStart), l = null;
|
|
98509
98892
|
if (e.getToken() === 18) {
|
|
98510
98893
|
if (y5(e, t, 18), e.getToken() !== 16) {
|
|
98511
98894
|
let c = (t | 131072) ^ 131072;
|
|
98512
|
-
l =
|
|
98895
|
+
l = L9(e, c, n, 1, u, e.tokenStart);
|
|
98513
98896
|
}
|
|
98514
98897
|
C6(e, t, 18);
|
|
98515
98898
|
}
|
|
@@ -98586,7 +98969,7 @@ function Ee9(e, t, n, u, o) {
|
|
|
98586
98969
|
function zn6(e, t, n) {
|
|
98587
98970
|
let u = e.tokenStart;
|
|
98588
98971
|
t = (t | 131072) ^ 131072, y5(e, t | 32, 14);
|
|
98589
|
-
let o =
|
|
98972
|
+
let o = L9(e, t, n, 1, 0, e.tokenStart);
|
|
98590
98973
|
return e.assignable = 1, e.finishNode({ type: "SpreadElement", argument: o }, u);
|
|
98591
98974
|
}
|
|
98592
98975
|
function tt10(e, t, n, u) {
|
|
@@ -98594,7 +98977,7 @@ function tt10(e, t, n, u) {
|
|
|
98594
98977
|
let o = [];
|
|
98595
98978
|
if (e.getToken() === 16)
|
|
98596
98979
|
return r(e, t | 64), o;
|
|
98597
|
-
for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(
|
|
98980
|
+
for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(L9(e, t, n, 1, u, e.tokenStart)), !(e.getToken() !== 18 || (r(e, t | 32), e.getToken() === 16))); )
|
|
98598
98981
|
;
|
|
98599
98982
|
return y5(e, t | 64, 16), o;
|
|
98600
98983
|
}
|
|
@@ -98653,7 +99036,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
|
|
|
98653
99036
|
if (T & 143360)
|
|
98654
99037
|
if (A = U10(e, t, u, f, 0, 1, i, 1, b), e.getToken() === 1077936155) {
|
|
98655
99038
|
e.assignable & 2 && e.report(26), r(e, t | 32), n?.addVarOrBlock(t, w, f, c);
|
|
98656
|
-
let D =
|
|
99039
|
+
let D = L9(e, t, u, 1, i, e.tokenStart);
|
|
98657
99040
|
A = e.finishNode(l ? { type: "AssignmentPattern", left: A, right: D } : { type: "AssignmentExpression", operator: "=", left: A, right: D }, b), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0;
|
|
98658
99041
|
} else
|
|
98659
99042
|
e.getToken() === 18 || e.getToken() === 20 ? (e.assignable & 2 ? a |= 16 : n?.addVarOrBlock(t, w, f, c), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0) : (a |= f & 1 ? 32 : (f & 2) === 0 ? 16 : 0, A = F8(e, t, u, A, i, 0, b), e.getToken() !== 18 && e.getToken() !== 20 ? (e.getToken() !== 1077936155 && (a |= 16), A = I8(e, t, u, i, l, b, A)) : e.getToken() !== 1077936155 && (a |= e.assignable & 2 ? 16 : 32));
|
|
@@ -98671,7 +99054,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
|
|
|
98671
99054
|
}
|
|
98672
99055
|
function Kt9(e, t, n, u, o, i, l, f) {
|
|
98673
99056
|
e.getToken() !== 1077936155 && e.report(26), r(e, t | 32), u & 16 && e.report(26), i || K10(e, f);
|
|
98674
|
-
let { tokenStart: c } = e, g =
|
|
99057
|
+
let { tokenStart: c } = e, g = L9(e, t, n, 1, o, c);
|
|
98675
99058
|
return e.destructible = (u | 64 | 8) ^ 72 | (e.destructible & 128 ? 128 : 0) | (e.destructible & 256 ? 256 : 0), e.finishNode(i ? { type: "AssignmentPattern", left: f, right: g } : { type: "AssignmentExpression", left: f, operator: "=", right: g }, l);
|
|
98676
99059
|
}
|
|
98677
99060
|
function oe8(e, t, n, u, o, i, l, f, c, g) {
|
|
@@ -98692,7 +99075,7 @@ function oe8(e, t, n, u, o, i, l, f, c, g) {
|
|
|
98692
99075
|
if (e.getToken() !== o)
|
|
98693
99076
|
if (i & 1 && (h |= f ? 16 : 32), C6(e, t | 32, 1077936155)) {
|
|
98694
99077
|
h & 16 && e.report(26), K10(e, a);
|
|
98695
|
-
let T =
|
|
99078
|
+
let T = L9(e, t, u, 1, c, e.tokenStart);
|
|
98696
99079
|
a = e.finishNode(g ? { type: "AssignmentPattern", left: a, right: T } : { type: "AssignmentExpression", left: a, operator: "=", right: T }, b), h = 16;
|
|
98697
99080
|
} else
|
|
98698
99081
|
h |= 16;
|
|
@@ -98724,7 +99107,7 @@ function j8(e, t, n, u, o, i, l, f, c) {
|
|
|
98724
99107
|
if (e.getToken() === -2147483527 && (a |= 16), R = N9(e, t), e.getToken() === 18 || e.getToken() === 1074790415 || e.getToken() === 1077936155)
|
|
98725
99108
|
if (D |= 4, t & 1 && (T & 537079808) === 537079808 ? a |= 16 : Be9(e, t, f, T, 0), n?.addVarOrBlock(t, b, f, c), C6(e, t | 32, 1077936155)) {
|
|
98726
99109
|
a |= 8;
|
|
98727
|
-
let E =
|
|
99110
|
+
let E = L9(e, t, u, 1, i, e.tokenStart);
|
|
98728
99111
|
a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0, k = e.finishNode({ type: "AssignmentPattern", left: e.cloneIdentifier(R), right: E }, w);
|
|
98729
99112
|
} else
|
|
98730
99113
|
a |= (T === 209006 ? 128 : 0) | (T === -2147483528 ? 16 : 0), k = e.cloneIdentifier(R);
|
|
@@ -98795,7 +99178,7 @@ function Qn6(e, t, n, u, o, i, l) {
|
|
|
98795
99178
|
let d = null, { tokenStart: a } = e;
|
|
98796
99179
|
if (e.getToken() & 143360 ? ((t & 1) === 0 && ((e.getToken() & 36864) === 36864 && (e.flags |= 256), (e.getToken() & 537079808) === 537079808 && (e.flags |= 512)), d = it9(e, t, n, o | 1, 0)) : (e.getToken() === 2162700 ? d = j8(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 69271571 ? d = X11(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 14 && (d = oe8(e, t, n, u, 16, i, 0, 0, l, 1)), g = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
|
|
98797
99180
|
r(e, t | 32), g = 1;
|
|
98798
|
-
let h =
|
|
99181
|
+
let h = L9(e, t, u, 1, 0, e.tokenStart);
|
|
98799
99182
|
d = e.finishNode({ type: "AssignmentPattern", left: d, right: h }, a);
|
|
98800
99183
|
}
|
|
98801
99184
|
if (c++, f.push(d), !C6(e, t, 18) || e.getToken() === 16)
|
|
@@ -98805,7 +99188,7 @@ function Qn6(e, t, n, u, o, i, l) {
|
|
|
98805
99188
|
}
|
|
98806
99189
|
function ne10(e, t, n, u) {
|
|
98807
99190
|
r(e, t | 32);
|
|
98808
|
-
let o =
|
|
99191
|
+
let o = L9(e, (t | 131072) ^ 131072, n, 1, u, e.tokenStart);
|
|
98809
99192
|
return y5(e, t, 20), o;
|
|
98810
99193
|
}
|
|
98811
99194
|
function Zn7(e, t, n, u, o, i, l) {
|
|
@@ -98828,9 +99211,9 @@ function Zn7(e, t, n, u, o, i, l) {
|
|
|
98828
99211
|
d = oe8(e, t, c, n, 16, o, i, 0, 1, 0), e.destructible & 16 && e.report(74), A = 1, h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), g |= 8;
|
|
98829
99212
|
break;
|
|
98830
99213
|
} else {
|
|
98831
|
-
if (g |= 16, d =
|
|
99214
|
+
if (g |= 16, d = L9(e, t, n, 1, 1, T), h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), e.getToken() === 18 && (h || (h = 1, a = [d])), h) {
|
|
98832
99215
|
for (;C6(e, t | 32, 18); )
|
|
98833
|
-
a.push(
|
|
99216
|
+
a.push(L9(e, t, n, 1, 1, e.tokenStart));
|
|
98834
99217
|
e.assignable = 2, d = e.finishNode({ type: "SequenceExpression", expressions: a }, w);
|
|
98835
99218
|
}
|
|
98836
99219
|
return y5(e, t, 16), e.destructible = g, e.options.preserveParens ? e.finishNode({ type: "ParenthesizedExpression", expression: d }, f) : d;
|
|
@@ -98871,7 +99254,7 @@ function ke9(e, t, n, u, o, i, l) {
|
|
|
98871
99254
|
t = (t | f) ^ f | (i ? 2048 : 0);
|
|
98872
99255
|
let c = e.getToken() !== 2162700, g;
|
|
98873
99256
|
if (n?.reportScopeError(), c)
|
|
98874
|
-
e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g =
|
|
99257
|
+
e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g = L9(e, t, u, 1, 0, e.tokenStart);
|
|
98875
99258
|
else {
|
|
98876
99259
|
n = n?.createChildScope(64);
|
|
98877
99260
|
let d = 131084;
|
|
@@ -98902,7 +99285,7 @@ function $t8(e, t, n, u, o, i) {
|
|
|
98902
99285
|
let c, { tokenStart: g } = e, d = e.getToken();
|
|
98903
99286
|
if (d & 143360 ? ((t & 1) === 0 && ((d & 36864) === 36864 && (e.flags |= 256), (d & 537079808) === 537079808 && (e.flags |= 512)), c = it9(e, t, n, i | 1, 0)) : (d === 2162700 ? c = j8(e, t, n, u, 1, o, 1, i, 0) : d === 69271571 ? c = X11(e, t, n, u, 1, o, 1, i, 0) : d === 14 ? c = oe8(e, t, n, u, 16, i, 0, 0, o, 1) : e.report(30, B6[d & 255]), f = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
|
|
98904
99287
|
r(e, t | 32), f = 1;
|
|
98905
|
-
let a =
|
|
99288
|
+
let a = L9(e, t, u, 1, o, e.tokenStart);
|
|
98906
99289
|
c = e.finishNode({ type: "AssignmentPattern", left: c, right: a }, g);
|
|
98907
99290
|
}
|
|
98908
99291
|
if (l.push(c), !C6(e, t, 18) || e.getToken() === 16)
|
|
@@ -98963,8 +99346,8 @@ function ut8(e, t, n, u, o, i, l, f, c) {
|
|
|
98963
99346
|
else if (w === 14)
|
|
98964
99347
|
a = oe8(e, t, g, n, 16, i, l, 1, 1, 0), d |= (e.getToken() === 16 ? 0 : 16) | e.destructible, h = 1;
|
|
98965
99348
|
else {
|
|
98966
|
-
for (a =
|
|
98967
|
-
A.push(
|
|
99349
|
+
for (a = L9(e, t, n, 1, 0, b), d = e.assignable, A.push(a);C6(e, t | 32, 18); )
|
|
99350
|
+
A.push(L9(e, t, n, 1, 0, b));
|
|
98968
99351
|
return d |= e.assignable, y5(e, t, 16), e.destructible = d | 16, e.assignable = 2, e.finishNode({ type: "CallExpression", callee: u, arguments: A, optional: false }, c);
|
|
98969
99352
|
}
|
|
98970
99353
|
if (A.push(a), !C6(e, t | 32, 18))
|
|
@@ -99213,7 +99596,7 @@ function au2(e, t, n) {
|
|
|
99213
99596
|
function gu2(e, t, n) {
|
|
99214
99597
|
let u = e.tokenStart;
|
|
99215
99598
|
r(e, t), y5(e, t, 14);
|
|
99216
|
-
let o =
|
|
99599
|
+
let o = L9(e, t, n, 1, 0, e.tokenStart);
|
|
99217
99600
|
return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadAttribute", argument: o }, u);
|
|
99218
99601
|
}
|
|
99219
99602
|
function mu2(e, t, n) {
|
|
@@ -99250,11 +99633,11 @@ function ot9(e, t, n, u, o) {
|
|
|
99250
99633
|
if (e.getToken() === 14)
|
|
99251
99634
|
return ru2(e, t, n, i);
|
|
99252
99635
|
let f = null;
|
|
99253
|
-
return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f =
|
|
99636
|
+
return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f = L9(e, t, n, 1, 0, l), e.getToken() !== 1074790415 && e.report(25, B6[15]), u ? me11(e) : r(e, t), e.finishNode({ type: "JSXExpressionContainer", expression: f }, i);
|
|
99254
99637
|
}
|
|
99255
99638
|
function ru2(e, t, n, u) {
|
|
99256
99639
|
y5(e, t, 14);
|
|
99257
|
-
let o =
|
|
99640
|
+
let o = L9(e, t, n, 1, 0, e.tokenStart);
|
|
99258
99641
|
return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadChild", expression: o }, u);
|
|
99259
99642
|
}
|
|
99260
99643
|
function hu3(e, t) {
|
|
@@ -99871,7 +100254,7 @@ function Ml3(t) {
|
|
|
99871
100254
|
function on11(t) {
|
|
99872
100255
|
return Dl3(t, Ml3);
|
|
99873
100256
|
}
|
|
99874
|
-
function
|
|
100257
|
+
function L10(t) {
|
|
99875
100258
|
return $10(t), { type: ie9, contents: t };
|
|
99876
100259
|
}
|
|
99877
100260
|
function Bl2(t, e) {
|
|
@@ -100449,7 +100832,7 @@ function hc2(t, e, s) {
|
|
|
100449
100832
|
}
|
|
100450
100833
|
}
|
|
100451
100834
|
}
|
|
100452
|
-
return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(
|
|
100835
|
+
return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(L10(c)) : Qn7(t) ? D6(Pe9(c)) : D6(L10(Pe9(c)));
|
|
100453
100836
|
}
|
|
100454
100837
|
function hi9(t) {
|
|
100455
100838
|
if (t?.type === "value-number")
|
|
@@ -100539,7 +100922,7 @@ function bi9(t, e, s) {
|
|
|
100539
100922
|
let g = is7(t);
|
|
100540
100923
|
ye11(i);
|
|
100541
100924
|
let b = Ac2(Y6(",", i), 2), d = Y6(g ? T6 : C7, b);
|
|
100542
|
-
return
|
|
100925
|
+
return L10(g ? [T6, d] : D6([Tc3(t) ? M11 : "", Pe9(d)]));
|
|
100543
100926
|
}
|
|
100544
100927
|
let o = t.map(({ node: g, isLast: b, index: d }) => {
|
|
100545
100928
|
let p = i[d];
|
|
@@ -100550,7 +100933,7 @@ function bi9(t, e, s) {
|
|
|
100550
100933
|
!y.source && y.close && (y = y.close), y.source && Vt11(e.originalText, R11(y)) && m.push(T6);
|
|
100551
100934
|
}
|
|
100552
100935
|
return m;
|
|
100553
|
-
}, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "",
|
|
100936
|
+
}, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "", L10([M11, Y6(C7, o)]), M11, r.close ? s("close") : ""], { shouldBreak: f });
|
|
100554
100937
|
return h ? le8(c) : c;
|
|
100555
100938
|
}
|
|
100556
100939
|
function is7(t) {
|
|
@@ -100587,10 +100970,10 @@ function Cc2(t, e, s) {
|
|
|
100587
100970
|
return n ? i.trimEnd() : i;
|
|
100588
100971
|
}
|
|
100589
100972
|
case "css-rule":
|
|
100590
|
-
return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ?
|
|
100973
|
+
return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ? L10([T6, De10(t, e, s)]) : "", T6, "}", Zn8(r) ? ";" : ""] : ";"];
|
|
100591
100974
|
case "css-decl": {
|
|
100592
100975
|
let n = t.parent, { between: i } = r.raws, o = i.trim(), u = o === ":", a = typeof r.value == "string" && /^ *$/u.test(r.value), l = typeof r.value == "string" ? r.value : s("value");
|
|
100593
|
-
return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l =
|
|
100976
|
+
return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l = L10([T6, le8(l)])), [E5(0, r.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || Kn8(t) ? r.prop : Ie11(r.prop), o.startsWith("//") ? " " : "", o, r.extend || a ? "" : " ", e.parser === "less" && r.extend && r.selector ? ["extend(", s("selector"), ")"] : "", l, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", L10([M11, De10(t, e, s)]), M11, "}"] : ii9(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";" ? "" : e.__isHTMLStyleAttribute && t.isLast ? Ct13(";") : ";"];
|
|
100594
100977
|
}
|
|
100595
100978
|
case "css-atrule": {
|
|
100596
100979
|
let n = t.parent, i = Mt12(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";";
|
|
@@ -100600,16 +100983,16 @@ function Cc2(t, e, s) {
|
|
|
100600
100983
|
if (r.function)
|
|
100601
100984
|
return [r.name, typeof r.params == "string" ? r.params : s("params"), i ? "" : ";"];
|
|
100602
100985
|
if (r.variable)
|
|
100603
|
-
return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{",
|
|
100986
|
+
return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : "", i ? "" : ";"];
|
|
100604
100987
|
}
|
|
100605
100988
|
let o = r.name === "import" && r.params?.type === "value-unknown" && r.params.value.endsWith(";");
|
|
100606
|
-
return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ?
|
|
100989
|
+
return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ? L10([" ", s("selector")]) : "", r.value ? D6([" ", s("value"), Je11(r, e) ? ui9(r) ? " " : C7 : ""]) : r.name === "else" ? " " : "", r.nodes ? [Je11(r, e) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && Le11(r.selector.value) || !r.selector && typeof r.params == "string" && Le11(r.params) ? C7 : " ", "{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : i || o ? "" : ";"];
|
|
100607
100990
|
}
|
|
100608
100991
|
case "media-query-list": {
|
|
100609
100992
|
let n = [];
|
|
100610
100993
|
return t.each(({ node: i }) => {
|
|
100611
100994
|
i.type === "media-query" && i.value === "" || n.push(s());
|
|
100612
|
-
}, "nodes"), D6(
|
|
100995
|
+
}, "nodes"), D6(L10(Y6(C7, n)));
|
|
100613
100996
|
}
|
|
100614
100997
|
case "media-query":
|
|
100615
100998
|
return [Y6(" ", t.map(s, "nodes")), t.isLast ? "" : ","];
|
|
@@ -100633,7 +101016,7 @@ function Cc2(t, e, s) {
|
|
|
100633
101016
|
return D6([we9(t, "custom-selector") ? [t.findAncestor((n) => n.type === "css-atrule").customSelector, C7] : "", Y6([",", we9(t, ["extend", "custom-selector", "nest"]) ? C7 : T6], t.map(s, "nodes"))]);
|
|
100634
101017
|
case "selector-selector": {
|
|
100635
101018
|
let n = r.nodes.length > 2;
|
|
100636
|
-
return D6((n ?
|
|
101019
|
+
return D6((n ? L10 : (i) => i)(t.map(s, "nodes")));
|
|
100637
101020
|
}
|
|
100638
101021
|
case "selector-comment":
|
|
100639
101022
|
return r.value;
|
|
@@ -100658,7 +101041,7 @@ function Cc2(t, e, s) {
|
|
|
100658
101041
|
case "selector-universal":
|
|
100659
101042
|
return [r.namespace ? [r.namespace === true ? "" : r.namespace.trim(), "|"] : "", r.value];
|
|
100660
101043
|
case "selector-pseudo":
|
|
100661
|
-
return [Ie11(r.value), ce8(r.nodes) ? D6(["(",
|
|
101044
|
+
return [Ie11(r.value), ce8(r.nodes) ? D6(["(", L10([M11, Y6([",", C7], t.map(s, "nodes"))]), M11, ")"]) : ""];
|
|
100662
101045
|
case "selector-nesting":
|
|
100663
101046
|
return r.value;
|
|
100664
101047
|
case "selector-unknown": {
|
|
@@ -111521,7 +111904,7 @@ function N62(e) {
|
|
|
111521
111904
|
function nm2(e, t, a) {
|
|
111522
111905
|
return ie10(t, a, e.typeParameters) || ie10(t, a, e.parameters) || S7(t, e.type);
|
|
111523
111906
|
}
|
|
111524
|
-
function
|
|
111907
|
+
function rm5(e, t, a) {
|
|
111525
111908
|
return ie10(t, a, e.types);
|
|
111526
111909
|
}
|
|
111527
111910
|
function im2(e, t, a) {
|
|
@@ -114489,7 +114872,7 @@ ${Me.join(`
|
|
|
114489
114872
|
return S7(a, t.elementType);
|
|
114490
114873
|
}, 190: function(t, a, _) {
|
|
114491
114874
|
return ie10(a, _, t.elements);
|
|
114492
|
-
}, 193:
|
|
114875
|
+
}, 193: rm5, 194: rm5, 195: function(t, a, _) {
|
|
114493
114876
|
return S7(a, t.checkType) || S7(a, t.extendsType) || S7(a, t.trueType) || S7(a, t.falseType);
|
|
114494
114877
|
}, 196: function(t, a, _) {
|
|
114495
114878
|
return S7(a, t.typeParameter);
|
|
@@ -124807,7 +125190,7 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
|
|
|
124807
125190
|
}
|
|
124808
125191
|
}
|
|
124809
125192
|
}, ast_path_default, is_object_default, skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine, isNewlineCharacter = (character) => character === `
|
|
124810
|
-
` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2,
|
|
125193
|
+
` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2, join34, line22, lineSuffix2, create_print_pre_check_function_default = () => noop_default2, core_options_evaluate_default, arrayToReversed, toReversed, method_to_reversed_default, import_n_readlines, get_interpreter_default, getFileBasename = (file) => {
|
|
124811
125194
|
try {
|
|
124812
125195
|
return path112.basename(toPath3(file));
|
|
124813
125196
|
} catch {
|
|
@@ -134836,7 +135219,7 @@ ${codeblock}`, options8);
|
|
|
134836
135219
|
breakParent: breakParent2,
|
|
134837
135220
|
hardline: hardline2,
|
|
134838
135221
|
indent: indent2,
|
|
134839
|
-
join:
|
|
135222
|
+
join: join34,
|
|
134840
135223
|
line: line22,
|
|
134841
135224
|
lineSuffix: lineSuffix2
|
|
134842
135225
|
} = builders);
|
|
@@ -171037,389 +171420,6 @@ var require_dist2 = __commonJS(function(exports) {
|
|
|
171037
171420
|
__exportStar(require_legacy(), exports);
|
|
171038
171421
|
});
|
|
171039
171422
|
|
|
171040
|
-
// ../../node_modules/tmp/lib/tmp.js
|
|
171041
|
-
var require_tmp = __commonJS(function(exports, module) {
|
|
171042
|
-
/*!
|
|
171043
|
-
* Tmp
|
|
171044
|
-
*
|
|
171045
|
-
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
171046
|
-
*
|
|
171047
|
-
* MIT Licensed
|
|
171048
|
-
*/
|
|
171049
|
-
var fs = __require("fs");
|
|
171050
|
-
var os = __require("os");
|
|
171051
|
-
var path = __require("path");
|
|
171052
|
-
var crypto = __require("crypto");
|
|
171053
|
-
var _c = { fs: fs.constants, os: os.constants };
|
|
171054
|
-
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
171055
|
-
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
171056
|
-
var DEFAULT_TRIES = 3;
|
|
171057
|
-
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
171058
|
-
var IS_WIN32 = os.platform() === "win32";
|
|
171059
|
-
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
171060
|
-
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
171061
|
-
var DIR_MODE = 448;
|
|
171062
|
-
var FILE_MODE = 384;
|
|
171063
|
-
var EXIT = "exit";
|
|
171064
|
-
var _removeObjects = [];
|
|
171065
|
-
var FN_RMDIR_SYNC = fs.rmdirSync.bind(fs);
|
|
171066
|
-
var _gracefulCleanup = false;
|
|
171067
|
-
function rimraf(dirPath, callback) {
|
|
171068
|
-
return fs.rm(dirPath, { recursive: true }, callback);
|
|
171069
|
-
}
|
|
171070
|
-
function FN_RIMRAF_SYNC(dirPath) {
|
|
171071
|
-
return fs.rmSync(dirPath, { recursive: true });
|
|
171072
|
-
}
|
|
171073
|
-
function tmpName(options, callback) {
|
|
171074
|
-
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
171075
|
-
_assertAndSanitizeOptions(opts, function(err, sanitizedOptions) {
|
|
171076
|
-
if (err)
|
|
171077
|
-
return cb(err);
|
|
171078
|
-
let tries = sanitizedOptions.tries;
|
|
171079
|
-
(function _getUniqueName() {
|
|
171080
|
-
try {
|
|
171081
|
-
const name = _generateTmpName(sanitizedOptions);
|
|
171082
|
-
fs.stat(name, function(err) {
|
|
171083
|
-
if (!err) {
|
|
171084
|
-
if (tries-- > 0)
|
|
171085
|
-
return _getUniqueName();
|
|
171086
|
-
return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
|
|
171087
|
-
}
|
|
171088
|
-
cb(null, name);
|
|
171089
|
-
});
|
|
171090
|
-
} catch (err) {
|
|
171091
|
-
cb(err);
|
|
171092
|
-
}
|
|
171093
|
-
})();
|
|
171094
|
-
});
|
|
171095
|
-
}
|
|
171096
|
-
function tmpNameSync(options) {
|
|
171097
|
-
const args = _parseArguments(options), opts = args[0];
|
|
171098
|
-
const sanitizedOptions = _assertAndSanitizeOptionsSync(opts);
|
|
171099
|
-
let tries = sanitizedOptions.tries;
|
|
171100
|
-
do {
|
|
171101
|
-
const name = _generateTmpName(sanitizedOptions);
|
|
171102
|
-
try {
|
|
171103
|
-
fs.statSync(name);
|
|
171104
|
-
} catch (e) {
|
|
171105
|
-
return name;
|
|
171106
|
-
}
|
|
171107
|
-
} while (tries-- > 0);
|
|
171108
|
-
throw new Error("Could not get a unique tmp filename, max tries reached");
|
|
171109
|
-
}
|
|
171110
|
-
function file(options, callback) {
|
|
171111
|
-
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
171112
|
-
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
171113
|
-
if (err)
|
|
171114
|
-
return cb(err);
|
|
171115
|
-
fs.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err, fd) {
|
|
171116
|
-
if (err)
|
|
171117
|
-
return cb(err);
|
|
171118
|
-
if (opts.discardDescriptor) {
|
|
171119
|
-
return fs.close(fd, function _discardCallback(possibleErr) {
|
|
171120
|
-
return cb(possibleErr, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts, false));
|
|
171121
|
-
});
|
|
171122
|
-
} else {
|
|
171123
|
-
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
171124
|
-
cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
|
|
171125
|
-
}
|
|
171126
|
-
});
|
|
171127
|
-
});
|
|
171128
|
-
}
|
|
171129
|
-
function fileSync(options) {
|
|
171130
|
-
const args = _parseArguments(options), opts = args[0];
|
|
171131
|
-
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
171132
|
-
const name = tmpNameSync(opts);
|
|
171133
|
-
let fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
171134
|
-
if (opts.discardDescriptor) {
|
|
171135
|
-
fs.closeSync(fd);
|
|
171136
|
-
fd = undefined;
|
|
171137
|
-
}
|
|
171138
|
-
return {
|
|
171139
|
-
name,
|
|
171140
|
-
fd,
|
|
171141
|
-
removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, true)
|
|
171142
|
-
};
|
|
171143
|
-
}
|
|
171144
|
-
function dir(options, callback) {
|
|
171145
|
-
const args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
171146
|
-
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
171147
|
-
if (err)
|
|
171148
|
-
return cb(err);
|
|
171149
|
-
fs.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err) {
|
|
171150
|
-
if (err)
|
|
171151
|
-
return cb(err);
|
|
171152
|
-
cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
|
|
171153
|
-
});
|
|
171154
|
-
});
|
|
171155
|
-
}
|
|
171156
|
-
function dirSync(options) {
|
|
171157
|
-
const args = _parseArguments(options), opts = args[0];
|
|
171158
|
-
const name = tmpNameSync(opts);
|
|
171159
|
-
fs.mkdirSync(name, opts.mode || DIR_MODE);
|
|
171160
|
-
return {
|
|
171161
|
-
name,
|
|
171162
|
-
removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
|
|
171163
|
-
};
|
|
171164
|
-
}
|
|
171165
|
-
function _removeFileAsync(fdPath, next) {
|
|
171166
|
-
const _handler = function(err) {
|
|
171167
|
-
if (err && !_isENOENT(err)) {
|
|
171168
|
-
return next(err);
|
|
171169
|
-
}
|
|
171170
|
-
next();
|
|
171171
|
-
};
|
|
171172
|
-
if (0 <= fdPath[0])
|
|
171173
|
-
fs.close(fdPath[0], function() {
|
|
171174
|
-
fs.unlink(fdPath[1], _handler);
|
|
171175
|
-
});
|
|
171176
|
-
else
|
|
171177
|
-
fs.unlink(fdPath[1], _handler);
|
|
171178
|
-
}
|
|
171179
|
-
function _removeFileSync(fdPath) {
|
|
171180
|
-
let rethrownException = null;
|
|
171181
|
-
try {
|
|
171182
|
-
if (0 <= fdPath[0])
|
|
171183
|
-
fs.closeSync(fdPath[0]);
|
|
171184
|
-
} catch (e) {
|
|
171185
|
-
if (!_isEBADF(e) && !_isENOENT(e))
|
|
171186
|
-
throw e;
|
|
171187
|
-
} finally {
|
|
171188
|
-
try {
|
|
171189
|
-
fs.unlinkSync(fdPath[1]);
|
|
171190
|
-
} catch (e) {
|
|
171191
|
-
if (!_isENOENT(e))
|
|
171192
|
-
rethrownException = e;
|
|
171193
|
-
}
|
|
171194
|
-
}
|
|
171195
|
-
if (rethrownException !== null) {
|
|
171196
|
-
throw rethrownException;
|
|
171197
|
-
}
|
|
171198
|
-
}
|
|
171199
|
-
function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
|
|
171200
|
-
const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
|
|
171201
|
-
const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
|
|
171202
|
-
if (!opts.keep)
|
|
171203
|
-
_removeObjects.unshift(removeCallbackSync);
|
|
171204
|
-
return sync ? removeCallbackSync : removeCallback;
|
|
171205
|
-
}
|
|
171206
|
-
function _prepareTmpDirRemoveCallback(name, opts, sync) {
|
|
171207
|
-
const removeFunction = opts.unsafeCleanup ? rimraf : fs.rmdir.bind(fs);
|
|
171208
|
-
const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
|
|
171209
|
-
const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
|
|
171210
|
-
const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
|
|
171211
|
-
if (!opts.keep)
|
|
171212
|
-
_removeObjects.unshift(removeCallbackSync);
|
|
171213
|
-
return sync ? removeCallbackSync : removeCallback;
|
|
171214
|
-
}
|
|
171215
|
-
function _prepareRemoveCallback(removeFunction, fileOrDirName, sync, cleanupCallbackSync) {
|
|
171216
|
-
let called = false;
|
|
171217
|
-
return function _cleanupCallback(next) {
|
|
171218
|
-
if (!called) {
|
|
171219
|
-
const toRemove = cleanupCallbackSync || _cleanupCallback;
|
|
171220
|
-
const index = _removeObjects.indexOf(toRemove);
|
|
171221
|
-
if (index >= 0)
|
|
171222
|
-
_removeObjects.splice(index, 1);
|
|
171223
|
-
called = true;
|
|
171224
|
-
if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
|
|
171225
|
-
return removeFunction(fileOrDirName);
|
|
171226
|
-
} else {
|
|
171227
|
-
return removeFunction(fileOrDirName, next || function() {});
|
|
171228
|
-
}
|
|
171229
|
-
}
|
|
171230
|
-
};
|
|
171231
|
-
}
|
|
171232
|
-
function _garbageCollector() {
|
|
171233
|
-
if (!_gracefulCleanup)
|
|
171234
|
-
return;
|
|
171235
|
-
while (_removeObjects.length) {
|
|
171236
|
-
try {
|
|
171237
|
-
_removeObjects[0]();
|
|
171238
|
-
} catch (e) {}
|
|
171239
|
-
}
|
|
171240
|
-
}
|
|
171241
|
-
function _randomChars(howMany) {
|
|
171242
|
-
let value = [], rnd = null;
|
|
171243
|
-
try {
|
|
171244
|
-
rnd = crypto.randomBytes(howMany);
|
|
171245
|
-
} catch (e) {
|
|
171246
|
-
rnd = crypto.pseudoRandomBytes(howMany);
|
|
171247
|
-
}
|
|
171248
|
-
for (let i = 0;i < howMany; i++) {
|
|
171249
|
-
value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
|
|
171250
|
-
}
|
|
171251
|
-
return value.join("");
|
|
171252
|
-
}
|
|
171253
|
-
function _isUndefined(obj) {
|
|
171254
|
-
return typeof obj === "undefined";
|
|
171255
|
-
}
|
|
171256
|
-
function _parseArguments(options, callback) {
|
|
171257
|
-
if (typeof options === "function") {
|
|
171258
|
-
return [{}, options];
|
|
171259
|
-
}
|
|
171260
|
-
if (_isUndefined(options)) {
|
|
171261
|
-
return [{}, callback];
|
|
171262
|
-
}
|
|
171263
|
-
const actualOptions = {};
|
|
171264
|
-
for (const key of Object.getOwnPropertyNames(options)) {
|
|
171265
|
-
actualOptions[key] = options[key];
|
|
171266
|
-
}
|
|
171267
|
-
return [actualOptions, callback];
|
|
171268
|
-
}
|
|
171269
|
-
function _resolvePath(name, tmpDir, cb) {
|
|
171270
|
-
const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
|
|
171271
|
-
fs.stat(pathToResolve, function(err) {
|
|
171272
|
-
if (err) {
|
|
171273
|
-
fs.realpath(path.dirname(pathToResolve), function(err, parentDir) {
|
|
171274
|
-
if (err)
|
|
171275
|
-
return cb(err);
|
|
171276
|
-
cb(null, path.join(parentDir, path.basename(pathToResolve)));
|
|
171277
|
-
});
|
|
171278
|
-
} else {
|
|
171279
|
-
fs.realpath(pathToResolve, cb);
|
|
171280
|
-
}
|
|
171281
|
-
});
|
|
171282
|
-
}
|
|
171283
|
-
function _resolvePathSync(name, tmpDir) {
|
|
171284
|
-
const pathToResolve = path.isAbsolute(name) ? name : path.join(tmpDir, name);
|
|
171285
|
-
try {
|
|
171286
|
-
fs.statSync(pathToResolve);
|
|
171287
|
-
return fs.realpathSync(pathToResolve);
|
|
171288
|
-
} catch (_err) {
|
|
171289
|
-
const parentDir = fs.realpathSync(path.dirname(pathToResolve));
|
|
171290
|
-
return path.join(parentDir, path.basename(pathToResolve));
|
|
171291
|
-
}
|
|
171292
|
-
}
|
|
171293
|
-
function _generateTmpName(opts) {
|
|
171294
|
-
const tmpDir = opts.tmpdir;
|
|
171295
|
-
if (!_isUndefined(opts.name)) {
|
|
171296
|
-
return path.join(tmpDir, opts.dir, opts.name);
|
|
171297
|
-
}
|
|
171298
|
-
if (!_isUndefined(opts.template)) {
|
|
171299
|
-
return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
171300
|
-
}
|
|
171301
|
-
const name = [
|
|
171302
|
-
opts.prefix ? opts.prefix : "tmp",
|
|
171303
|
-
"-",
|
|
171304
|
-
process.pid,
|
|
171305
|
-
"-",
|
|
171306
|
-
_randomChars(12),
|
|
171307
|
-
opts.postfix ? "-" + opts.postfix : ""
|
|
171308
|
-
].join("");
|
|
171309
|
-
return path.join(tmpDir, opts.dir, name);
|
|
171310
|
-
}
|
|
171311
|
-
function _assertOptionsBase(options) {
|
|
171312
|
-
if (!_isUndefined(options.name)) {
|
|
171313
|
-
const name = options.name;
|
|
171314
|
-
if (path.isAbsolute(name))
|
|
171315
|
-
throw new Error(`name option must not contain an absolute path, found "${name}".`);
|
|
171316
|
-
const basename2 = path.basename(name);
|
|
171317
|
-
if (basename2 === ".." || basename2 === "." || basename2 !== name)
|
|
171318
|
-
throw new Error(`name option must not contain a path, found "${name}".`);
|
|
171319
|
-
}
|
|
171320
|
-
if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
|
|
171321
|
-
throw new Error(`Invalid template, found "${options.template}".`);
|
|
171322
|
-
}
|
|
171323
|
-
if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
|
|
171324
|
-
throw new Error(`Invalid tries, found "${options.tries}".`);
|
|
171325
|
-
}
|
|
171326
|
-
options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
|
|
171327
|
-
options.keep = !!options.keep;
|
|
171328
|
-
options.detachDescriptor = !!options.detachDescriptor;
|
|
171329
|
-
options.discardDescriptor = !!options.discardDescriptor;
|
|
171330
|
-
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
171331
|
-
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
171332
|
-
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
171333
|
-
}
|
|
171334
|
-
function _getRelativePath(option, name, tmpDir, cb) {
|
|
171335
|
-
if (_isUndefined(name))
|
|
171336
|
-
return cb(null);
|
|
171337
|
-
_resolvePath(name, tmpDir, function(err, resolvedPath) {
|
|
171338
|
-
if (err)
|
|
171339
|
-
return cb(err);
|
|
171340
|
-
const relativePath = path.relative(tmpDir, resolvedPath);
|
|
171341
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
171342
|
-
return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
|
|
171343
|
-
}
|
|
171344
|
-
cb(null, relativePath);
|
|
171345
|
-
});
|
|
171346
|
-
}
|
|
171347
|
-
function _getRelativePathSync(option, name, tmpDir) {
|
|
171348
|
-
if (_isUndefined(name))
|
|
171349
|
-
return;
|
|
171350
|
-
const resolvedPath = _resolvePathSync(name, tmpDir);
|
|
171351
|
-
const relativePath = path.relative(tmpDir, resolvedPath);
|
|
171352
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
171353
|
-
throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
|
|
171354
|
-
}
|
|
171355
|
-
return relativePath;
|
|
171356
|
-
}
|
|
171357
|
-
function _assertAndSanitizeOptions(options, cb) {
|
|
171358
|
-
_getTmpDir(options, function(err, tmpDir) {
|
|
171359
|
-
if (err)
|
|
171360
|
-
return cb(err);
|
|
171361
|
-
options.tmpdir = tmpDir;
|
|
171362
|
-
try {
|
|
171363
|
-
_assertOptionsBase(options, tmpDir);
|
|
171364
|
-
} catch (err) {
|
|
171365
|
-
return cb(err);
|
|
171366
|
-
}
|
|
171367
|
-
_getRelativePath("dir", options.dir, tmpDir, function(err, dir) {
|
|
171368
|
-
if (err)
|
|
171369
|
-
return cb(err);
|
|
171370
|
-
options.dir = _isUndefined(dir) ? "" : dir;
|
|
171371
|
-
_getRelativePath("template", options.template, tmpDir, function(err, template) {
|
|
171372
|
-
if (err)
|
|
171373
|
-
return cb(err);
|
|
171374
|
-
options.template = template;
|
|
171375
|
-
cb(null, options);
|
|
171376
|
-
});
|
|
171377
|
-
});
|
|
171378
|
-
});
|
|
171379
|
-
}
|
|
171380
|
-
function _assertAndSanitizeOptionsSync(options) {
|
|
171381
|
-
const tmpDir = options.tmpdir = _getTmpDirSync(options);
|
|
171382
|
-
_assertOptionsBase(options, tmpDir);
|
|
171383
|
-
const dir = _getRelativePathSync("dir", options.dir, tmpDir);
|
|
171384
|
-
options.dir = _isUndefined(dir) ? "" : dir;
|
|
171385
|
-
options.template = _getRelativePathSync("template", options.template, tmpDir);
|
|
171386
|
-
return options;
|
|
171387
|
-
}
|
|
171388
|
-
function _isEBADF(error) {
|
|
171389
|
-
return _isExpectedError(error, -EBADF, "EBADF");
|
|
171390
|
-
}
|
|
171391
|
-
function _isENOENT(error) {
|
|
171392
|
-
return _isExpectedError(error, -ENOENT, "ENOENT");
|
|
171393
|
-
}
|
|
171394
|
-
function _isExpectedError(error, errno, code) {
|
|
171395
|
-
return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
|
|
171396
|
-
}
|
|
171397
|
-
function setGracefulCleanup() {
|
|
171398
|
-
_gracefulCleanup = true;
|
|
171399
|
-
}
|
|
171400
|
-
function _getTmpDir(options, cb) {
|
|
171401
|
-
return fs.realpath(options && options.tmpdir || os.tmpdir(), cb);
|
|
171402
|
-
}
|
|
171403
|
-
function _getTmpDirSync(options) {
|
|
171404
|
-
return fs.realpathSync(options && options.tmpdir || os.tmpdir());
|
|
171405
|
-
}
|
|
171406
|
-
process.addListener(EXIT, _garbageCollector);
|
|
171407
|
-
Object.defineProperty(exports, "tmpdir", {
|
|
171408
|
-
enumerable: true,
|
|
171409
|
-
configurable: false,
|
|
171410
|
-
get: function() {
|
|
171411
|
-
return _getTmpDirSync();
|
|
171412
|
-
}
|
|
171413
|
-
});
|
|
171414
|
-
exports.dir = dir;
|
|
171415
|
-
exports.dirSync = dirSync;
|
|
171416
|
-
exports.file = file;
|
|
171417
|
-
exports.fileSync = fileSync;
|
|
171418
|
-
exports.tmpName = tmpName;
|
|
171419
|
-
exports.tmpNameSync = tmpNameSync;
|
|
171420
|
-
exports.setGracefulCleanup = setGracefulCleanup;
|
|
171421
|
-
});
|
|
171422
|
-
|
|
171423
171423
|
// ../../node_modules/@seald-io/nedb/lib/utils.js
|
|
171424
171424
|
var require_utils11 = __commonJS(function(exports, module) {
|
|
171425
171425
|
var uniq = (array, iteratee) => {
|
|
@@ -228838,7 +228838,7 @@ function normalizeBase44Env() {
|
|
|
228838
228838
|
loadProjectEnvFiles();
|
|
228839
228839
|
|
|
228840
228840
|
// src/cli/index.ts
|
|
228841
|
-
import { dirname as
|
|
228841
|
+
import { dirname as dirname31, join as join42 } from "node:path";
|
|
228842
228842
|
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
228843
228843
|
|
|
228844
228844
|
// ../../node_modules/@clack/core/dist/index.mjs
|
|
@@ -230795,7 +230795,8 @@ var TestOverridesSchema = object({
|
|
|
230795
230795
|
id: string2(),
|
|
230796
230796
|
projectRoot: string2()
|
|
230797
230797
|
}).optional(),
|
|
230798
|
-
latestVersion: string2().nullable().optional()
|
|
230798
|
+
latestVersion: string2().nullable().optional(),
|
|
230799
|
+
claudeBin: string2().optional()
|
|
230799
230800
|
});
|
|
230800
230801
|
|
|
230801
230802
|
// src/core/config.ts
|
|
@@ -230832,7 +230833,6 @@ function getTestOverrides() {
|
|
|
230832
230833
|
var TOKEN_REFRESH_BUFFER_MS = 60 * 1000;
|
|
230833
230834
|
var WORKSPACE_API_KEY_PREFIX = "b44k_";
|
|
230834
230835
|
var refreshPromise = null;
|
|
230835
|
-
var envAccessTokenAuth = null;
|
|
230836
230836
|
function getWorkspaceApiKeyFromEnv() {
|
|
230837
230837
|
const key = process.env.BASE44_API_KEY?.trim();
|
|
230838
230838
|
return key ? key : null;
|
|
@@ -230854,17 +230854,7 @@ async function seedAuthFromEnv() {
|
|
|
230854
230854
|
const payload = claims !== null && typeof claims === "object" ? claims : null;
|
|
230855
230855
|
const sub = typeof payload?.sub === "string" ? payload.sub : undefined;
|
|
230856
230856
|
const exp = typeof payload?.exp === "number" ? payload.exp : undefined;
|
|
230857
|
-
if (!sub || !exp) {
|
|
230858
|
-
return;
|
|
230859
|
-
}
|
|
230860
|
-
if (!refreshToken) {
|
|
230861
|
-
envAccessTokenAuth = {
|
|
230862
|
-
accessToken,
|
|
230863
|
-
refreshToken: "",
|
|
230864
|
-
expiresAt: exp * 1000,
|
|
230865
|
-
email: sub,
|
|
230866
|
-
name: sub
|
|
230867
|
-
};
|
|
230857
|
+
if (!refreshToken || !sub || !exp) {
|
|
230868
230858
|
return;
|
|
230869
230859
|
}
|
|
230870
230860
|
await writeAuth({
|
|
@@ -230876,9 +230866,6 @@ async function seedAuthFromEnv() {
|
|
|
230876
230866
|
});
|
|
230877
230867
|
}
|
|
230878
230868
|
async function readAuth() {
|
|
230879
|
-
if (envAccessTokenAuth) {
|
|
230880
|
-
return envAccessTokenAuth;
|
|
230881
|
-
}
|
|
230882
230869
|
try {
|
|
230883
230870
|
const authData = await readJsonFile(getAuthFilePath());
|
|
230884
230871
|
const result = AuthDataSchema.safeParse(authData);
|
|
@@ -230915,9 +230902,6 @@ function isTokenExpired(auth) {
|
|
|
230915
230902
|
return Date.now() >= auth.expiresAt - TOKEN_REFRESH_BUFFER_MS;
|
|
230916
230903
|
}
|
|
230917
230904
|
async function refreshAndSaveTokens() {
|
|
230918
|
-
if (envAccessTokenAuth) {
|
|
230919
|
-
return null;
|
|
230920
|
-
}
|
|
230921
230905
|
if (refreshPromise) {
|
|
230922
230906
|
return refreshPromise;
|
|
230923
230907
|
}
|
|
@@ -246875,6 +246859,23 @@ var GIT_HASH_PATTERN = /^[a-fA-F0-9]{7,64}$/;
|
|
|
246875
246859
|
function isGitCommitHash(value) {
|
|
246876
246860
|
return GIT_HASH_PATTERN.test(value);
|
|
246877
246861
|
}
|
|
246862
|
+
async function readGitState(cwd) {
|
|
246863
|
+
const status = await execa("git", ["status", "--porcelain", "--branch"], {
|
|
246864
|
+
cwd,
|
|
246865
|
+
reject: false
|
|
246866
|
+
});
|
|
246867
|
+
if (status.exitCode !== 0)
|
|
246868
|
+
return;
|
|
246869
|
+
const [header = "", ...changes] = status.stdout.split(`
|
|
246870
|
+
`).filter(Boolean);
|
|
246871
|
+
const head = await execa("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
|
|
246872
|
+
cwd,
|
|
246873
|
+
reject: false
|
|
246874
|
+
});
|
|
246875
|
+
const branch = head.exitCode === 0 && head.stdout !== "HEAD" ? head.stdout : undefined;
|
|
246876
|
+
const offRemote = branch !== undefined && (!header.includes("...") || /\[(ahead|gone)/.test(header));
|
|
246877
|
+
return { branch, unpushed: changes.length > 0 || offRemote };
|
|
246878
|
+
}
|
|
246878
246879
|
|
|
246879
246880
|
// src/core/site/git-hash.ts
|
|
246880
246881
|
function workerBuildNeedsGitHashError() {
|
|
@@ -258238,6 +258239,150 @@ function asset(name) {
|
|
|
258238
258239
|
// ../functions-compiler/src/esbuild/private-data-sources-virtual.ts
|
|
258239
258240
|
import path19 from "node:path";
|
|
258240
258241
|
|
|
258242
|
+
// ../functions-compiler/src/error-records.ts
|
|
258243
|
+
var FEED_CONTEXT_HEADER = "x-b44-feed-context";
|
|
258244
|
+
var ERROR_RECORD_LIMITS = {
|
|
258245
|
+
bodyBytes: 2048,
|
|
258246
|
+
bodyDeadlineMs: 50,
|
|
258247
|
+
nameChars: 64,
|
|
258248
|
+
messageBytes: 500,
|
|
258249
|
+
stackBytes: 4096,
|
|
258250
|
+
minSecretChars: 8,
|
|
258251
|
+
loggedErrors: 8
|
|
258252
|
+
};
|
|
258253
|
+
var L2 = ERROR_RECORD_LIMITS;
|
|
258254
|
+
var ERROR_RECORDS_PATCH = [
|
|
258255
|
+
`const _b44ErrorStore = (request) => request.headers.has(${JSON.stringify(FEED_CONTEXT_HEADER)}) ? { errorRecord: { logged: [] } } : {};`,
|
|
258256
|
+
"const _b44NoteError = (a) => {",
|
|
258257
|
+
" const c = _b44Context();",
|
|
258258
|
+
" if (!c || !c.errorRecord) return;",
|
|
258259
|
+
" for (const x of a) {",
|
|
258260
|
+
" if (!(x instanceof Error)) continue;",
|
|
258261
|
+
" const r = (k) => { try { const v = x[k]; return typeof v === 'string' ? v : undefined; } catch (e) { return undefined; } };",
|
|
258262
|
+
" const logged = c.errorRecord.logged;",
|
|
258263
|
+
" logged.push({ name: r('name'), message: r('message'), stack: r('stack') });",
|
|
258264
|
+
` if (logged.length > ${L2.loggedErrors}) logged.shift();`,
|
|
258265
|
+
" }",
|
|
258266
|
+
"};",
|
|
258267
|
+
"for (const _l of ['log', 'info', 'warn', 'error', 'debug']) { const _f = console[_l]; console[_l] = (...a) => { try { _b44NoteError(a); } catch (e) {} return _f(...a); }; }",
|
|
258268
|
+
"const _b44ReadJson = async (res) => {",
|
|
258269
|
+
" if (!res.body) return undefined;",
|
|
258270
|
+
" const reader = res.body.getReader();",
|
|
258271
|
+
" const chunks = [];",
|
|
258272
|
+
" let size = 0;",
|
|
258273
|
+
" let timer;",
|
|
258274
|
+
` const deadline = new Promise((r) => { timer = setTimeout(() => r(null), ${L2.bodyDeadlineMs}); });`,
|
|
258275
|
+
" try {",
|
|
258276
|
+
" for (;;) {",
|
|
258277
|
+
" const step = await Promise.race([reader.read(), deadline]);",
|
|
258278
|
+
" if (step === null) return undefined;",
|
|
258279
|
+
" if (step.done) break;",
|
|
258280
|
+
" size += step.value.byteLength;",
|
|
258281
|
+
` if (size > ${L2.bodyBytes}) return undefined;`,
|
|
258282
|
+
" chunks.push(step.value);",
|
|
258283
|
+
" }",
|
|
258284
|
+
" } finally {",
|
|
258285
|
+
" clearTimeout(timer);",
|
|
258286
|
+
" try { reader.cancel().catch(() => {}); } catch (e) {}",
|
|
258287
|
+
" }",
|
|
258288
|
+
" const buf = new Uint8Array(size);",
|
|
258289
|
+
" let o = 0;",
|
|
258290
|
+
" for (const ch of chunks) { buf.set(ch, o); o += ch.byteLength; }",
|
|
258291
|
+
" try { return JSON.parse(new TextDecoder().decode(buf)); } catch (e) { return undefined; }",
|
|
258292
|
+
"};",
|
|
258293
|
+
"const _b44HasString = (v, s, d = 0) => {",
|
|
258294
|
+
" if (v === s) return true;",
|
|
258295
|
+
" if (d > 16 || !v || typeof v !== 'object') return false;",
|
|
258296
|
+
" for (const k of Object.keys(v)) if (_b44HasString(v[k], s, d + 1)) return true;",
|
|
258297
|
+
" return false;",
|
|
258298
|
+
"};",
|
|
258299
|
+
"const _b44BodyMessage = (b) => {",
|
|
258300
|
+
" if (!b || typeof b !== 'object' || Array.isArray(b)) return undefined;",
|
|
258301
|
+
" const s = (v) => (typeof v === 'string' && v.trim() !== '' ? v : undefined);",
|
|
258302
|
+
" const skipError = Object.prototype.hasOwnProperty.call(b, 'details') && b.error === 'Internal server error';",
|
|
258303
|
+
" const nested = b.error && typeof b.error === 'object' ? b.error.message : undefined;",
|
|
258304
|
+
" return (skipError ? undefined : s(b.error)) ?? s(b.message) ?? s(b.detail) ?? s(b.details) ?? s(nested);",
|
|
258305
|
+
"};",
|
|
258306
|
+
"const _b44SecretValues = (c) => {",
|
|
258307
|
+
" const out = new Set();",
|
|
258308
|
+
" let budget = 10000;",
|
|
258309
|
+
" const add = (v, d) => {",
|
|
258310
|
+
" if (--budget < 0) return;",
|
|
258311
|
+
" if (typeof v === 'string') {",
|
|
258312
|
+
` if (v.length >= ${L2.minSecretChars}) out.add(v);`,
|
|
258313
|
+
" const t = v.trimStart();",
|
|
258314
|
+
" if (d < 2 && (t[0] === '{' || t[0] === '[')) { try { add(JSON.parse(v), d + 1); } catch (e) {} }",
|
|
258315
|
+
" } else if (d > 0 && d < 16 && v && typeof v === 'object') {",
|
|
258316
|
+
" for (const k of Object.keys(v)) add(v[k], d + 1);",
|
|
258317
|
+
" }",
|
|
258318
|
+
" };",
|
|
258319
|
+
" for (const src of [c.secrets, c.workerEnv]) {",
|
|
258320
|
+
" if (!src || typeof src !== 'object') continue;",
|
|
258321
|
+
" for (const k of Object.keys(src)) { try { add(src[k], 0); } catch (e) {} }",
|
|
258322
|
+
" }",
|
|
258323
|
+
" return [...out].sort((x, y) => y.length - x.length);",
|
|
258324
|
+
"};",
|
|
258325
|
+
"const _b44Scrub = (s, secrets) => { let out = s; for (const v of secrets) if (out.includes(v)) out = out.split(v).join('[redacted]'); return out; };",
|
|
258326
|
+
"const _b44Well = (s) => (typeof s.toWellFormed === 'function' ? s.toWellFormed() : s);",
|
|
258327
|
+
"const _b44Bytes = (s) => new TextEncoder().encode(s).length;",
|
|
258328
|
+
"const _b44CutBytes = (s, max) => {",
|
|
258329
|
+
" if (_b44Bytes(s) <= max) return s;",
|
|
258330
|
+
" let n = 0;",
|
|
258331
|
+
" let out = '';",
|
|
258332
|
+
" for (const ch of s) {",
|
|
258333
|
+
" const cp = ch.codePointAt(0);",
|
|
258334
|
+
" const b = cp < 0x80 ? 1 : cp < 0x800 ? 2 : cp < 0x10000 ? 3 : 4;",
|
|
258335
|
+
" if (n + b > max) break;",
|
|
258336
|
+
" n += b;",
|
|
258337
|
+
" out += ch;",
|
|
258338
|
+
" }",
|
|
258339
|
+
" return out;",
|
|
258340
|
+
"};",
|
|
258341
|
+
"const _b44CutLines = (s, max) => {",
|
|
258342
|
+
" if (_b44Bytes(s) <= max) return s;",
|
|
258343
|
+
" let n = 0;",
|
|
258344
|
+
" let out = '';",
|
|
258345
|
+
" for (const line of s.split('\\n')) {",
|
|
258346
|
+
" const b = _b44Bytes(line) + (out ? 1 : 0);",
|
|
258347
|
+
" if (n + b > max) break;",
|
|
258348
|
+
" out += (out ? '\\n' : '') + line;",
|
|
258349
|
+
" n += b;",
|
|
258350
|
+
" }",
|
|
258351
|
+
" return out;",
|
|
258352
|
+
"};",
|
|
258353
|
+
"const _b44WriteErrorRecord = async (c, status, copy, logged) => {",
|
|
258354
|
+
" try {",
|
|
258355
|
+
" const body = await _b44ReadJson(copy);",
|
|
258356
|
+
" const usable = logged.filter((e) => e.message);",
|
|
258357
|
+
" let chosen;",
|
|
258358
|
+
" if (body !== undefined) {",
|
|
258359
|
+
" for (let i = usable.length - 1; i >= 0; i--) if (_b44HasString(body, usable[i].message)) { chosen = usable[i]; break; }",
|
|
258360
|
+
" }",
|
|
258361
|
+
" let message = chosen ? chosen.message : _b44BodyMessage(body);",
|
|
258362
|
+
" if (message === undefined && usable.length > 0) { chosen = usable[usable.length - 1]; message = chosen.message; }",
|
|
258363
|
+
" if (message === undefined) return;",
|
|
258364
|
+
" const secrets = _b44SecretValues(c);",
|
|
258365
|
+
" const clean = (s) => _b44Well(_b44Scrub(s, secrets));",
|
|
258366
|
+
" const rec = { v: 1, kind: 'response', status };",
|
|
258367
|
+
` const name = chosen && chosen.name ? Array.from(clean(chosen.name)).slice(0, ${L2.nameChars}).join('') : '';`,
|
|
258368
|
+
" if (name) rec.name = name;",
|
|
258369
|
+
` rec.message = _b44CutBytes(clean(message), ${L2.messageBytes});`,
|
|
258370
|
+
` const stack = chosen && chosen.stack ? _b44CutLines(clean(chosen.stack), ${L2.stackBytes}) : '';`,
|
|
258371
|
+
" if (stack) rec.stack = stack;",
|
|
258372
|
+
" console.error({ _b44_error: rec });",
|
|
258373
|
+
" } catch (e) {}",
|
|
258374
|
+
"};",
|
|
258375
|
+
"const _b44RecordError = (res) => {",
|
|
258376
|
+
" try {",
|
|
258377
|
+
" const c = _b44Context();",
|
|
258378
|
+
" if (!c || !c.errorRecord || !c.waitUntil || !(res instanceof Response) || !(res.status >= 500)) return res;",
|
|
258379
|
+
" c.waitUntil(_b44WriteErrorRecord(c, res.status, res.clone(), c.errorRecord.logged.slice()));",
|
|
258380
|
+
" } catch (e) {}",
|
|
258381
|
+
" return res;",
|
|
258382
|
+
"};"
|
|
258383
|
+
].join(`
|
|
258384
|
+
`);
|
|
258385
|
+
|
|
258241
258386
|
// ../functions-compiler/src/errors.ts
|
|
258242
258387
|
class DenoCompatError extends Error {
|
|
258243
258388
|
file;
|
|
@@ -258332,7 +258477,7 @@ var TELEMETRY_PATCH = [
|
|
|
258332
258477
|
var TELEMETRY_STORE_FIELDS = "reqId: crypto.randomUUID(), respondedAt: null, inflight: new Map(), inflightTotal: 0, hadRejection: false, hadNonOk: false, logBudget: 5";
|
|
258333
258478
|
|
|
258334
258479
|
// ../functions-compiler/src/version.ts
|
|
258335
|
-
var COMPILER_VERSION = "0.
|
|
258480
|
+
var COMPILER_VERSION = "0.2.0";
|
|
258336
258481
|
|
|
258337
258482
|
// ../functions-compiler/src/worker-entry.ts
|
|
258338
258483
|
function denoShimSource() {
|
|
@@ -258434,13 +258579,14 @@ var ACTIVATION_TAKE = ` const _b44Taken = takeActivationChallenge(request); r
|
|
|
258434
258579
|
function activationGuard(runtimeSecrets) {
|
|
258435
258580
|
return (expr) => runtimeSecrets ? `withoutActivationHeaders(${expr}, _b44Activation)` : expr;
|
|
258436
258581
|
}
|
|
258582
|
+
var HANDLER_CALL = "_b44RecordError(await handler(request, info))";
|
|
258437
258583
|
function activationImport(runtimeSecrets) {
|
|
258438
258584
|
return runtimeSecrets ? `
|
|
258439
258585
|
import { ensureActivation, takeActivationChallenge, withoutActivationHeaders } from "./${ACTIVATION_FILENAME}";` : "";
|
|
258440
258586
|
}
|
|
258441
258587
|
function buildEntrySource(userEntry, telemetry, runtimeSecrets = false) {
|
|
258442
258588
|
const userImport = `./${userEntry.replace(/^\.\//, "")}`;
|
|
258443
|
-
const handlerExpr = telemetry ?
|
|
258589
|
+
const handlerExpr = telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL;
|
|
258444
258590
|
const guard = activationGuard(runtimeSecrets);
|
|
258445
258591
|
const returnExpr = guard(handlerExpr);
|
|
258446
258592
|
return `// Auto-generated by the base44 bundler. Do not edit.
|
|
@@ -258449,6 +258595,7 @@ import { currentWorkerRuntimeContext as _b44Context, runWithWorkerEnvironment as
|
|
|
258449
258595
|
import { getRegisteredHandler, installStaticEgressFetch } from "./${SHIM_FILENAME}";${activationImport(runtimeSecrets)}
|
|
258450
258596
|
|
|
258451
258597
|
${consolePatch(runtimeSecrets)}
|
|
258598
|
+
${ERROR_RECORDS_PATCH}
|
|
258452
258599
|
// Static egress reads workerEnv from the active request store. Install it
|
|
258453
258600
|
// before telemetry so telemetry remains the outermost fetch wrapper.
|
|
258454
258601
|
installStaticEgressFetch();
|
|
@@ -258458,7 +258605,7 @@ let _b44Init = null;
|
|
|
258458
258605
|
export default {
|
|
258459
258606
|
async fetch(request, env, ctx) {
|
|
258460
258607
|
${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
|
|
258461
|
-
return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
258608
|
+
return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
258462
258609
|
${runtimeSecrets ? ACTIVATION_GATE : ""} if (!_b44Init) _b44Init = import(${JSON.stringify(userImport)}).catch(e => { _b44Init = null; throw e; });
|
|
258463
258610
|
const _b44Mod = await _b44Init;
|
|
258464
258611
|
// Deno.serve capture wins (legacy contract, zero behavior change);
|
|
@@ -258493,7 +258640,7 @@ registerLazy(${JSON.stringify(functionName)}, () => import(${JSON.stringify(user
|
|
|
258493
258640
|
function buildAppEntrySource(functionModules, telemetry, runtimeSecrets = false) {
|
|
258494
258641
|
const moduleImports = functionModules.map((file) => `import "./${file}";`).join(`
|
|
258495
258642
|
`);
|
|
258496
|
-
const handlerExpr = `_b44AttachInvocationLogs(${telemetry ?
|
|
258643
|
+
const handlerExpr = `_b44AttachInvocationLogs(${telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL})`;
|
|
258497
258644
|
const guard = activationGuard(runtimeSecrets);
|
|
258498
258645
|
const returnExpr = guard(handlerExpr);
|
|
258499
258646
|
return `// Auto-generated by the base44 bundler. Do not edit.
|
|
@@ -258504,6 +258651,7 @@ ${moduleImports}
|
|
|
258504
258651
|
|
|
258505
258652
|
${consolePatch(runtimeSecrets)}
|
|
258506
258653
|
${INVOCATION_LOGS_PATCH}
|
|
258654
|
+
${ERROR_RECORDS_PATCH}
|
|
258507
258655
|
// Static egress reads workerEnv from the active request store. Install it
|
|
258508
258656
|
// before telemetry so telemetry remains the outermost fetch wrapper.
|
|
258509
258657
|
installStaticEgressFetch();
|
|
@@ -258513,7 +258661,7 @@ export default {
|
|
|
258513
258661
|
async fetch(request, env, ctx) {
|
|
258514
258662
|
${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
|
|
258515
258663
|
const functionName = request.headers.get("Base44-Function-Name");
|
|
258516
|
-
return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
258664
|
+
return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
|
|
258517
258665
|
${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs through the patch first: per-function log
|
|
258518
258666
|
// queries on per-app scripts keep only stamped lines, so a bare return
|
|
258519
258667
|
// would leave the failing invocation with no trace in its own logs.
|
|
@@ -262876,25 +263024,30 @@ var pipelineType = ZodPipeline.create;
|
|
|
262876
263024
|
var fileMapSchema = recordType(stringType().min(1), stringType()).refine((files) => Object.keys(files).length > 0, {
|
|
262877
263025
|
message: "must contain at least one file"
|
|
262878
263026
|
});
|
|
263027
|
+
var entryPathSchema = stringType().min(1).max(200);
|
|
262879
263028
|
var bundleRequestSchema = objectType({
|
|
262880
263029
|
entry: stringType().min(1),
|
|
262881
263030
|
files: fileMapSchema,
|
|
263031
|
+
entryPath: entryPathSchema.optional(),
|
|
262882
263032
|
postResponseTelemetry: booleanType().optional(),
|
|
262883
|
-
runtimeSecrets: booleanType().optional()
|
|
263033
|
+
runtimeSecrets: booleanType().optional(),
|
|
263034
|
+
sourceMap: booleanType().optional()
|
|
262884
263035
|
}).refine((body) => (body.entry in body.files), {
|
|
262885
263036
|
message: "`entry` must be a key in `files`"
|
|
262886
263037
|
});
|
|
262887
263038
|
var appFunctionSchema = objectType({
|
|
262888
263039
|
name: stringType().min(1),
|
|
262889
263040
|
entry: stringType().min(1),
|
|
262890
|
-
files: fileMapSchema
|
|
263041
|
+
files: fileMapSchema,
|
|
263042
|
+
entryPath: entryPathSchema.optional()
|
|
262891
263043
|
}).refine((fn) => (fn.entry in fn.files), {
|
|
262892
263044
|
message: "`entry` must be a key in `files`"
|
|
262893
263045
|
});
|
|
262894
263046
|
var bundleAppRequestSchema = objectType({
|
|
262895
263047
|
functions: arrayType(appFunctionSchema).min(1),
|
|
262896
263048
|
postResponseTelemetry: booleanType().optional(),
|
|
262897
|
-
runtimeSecrets: booleanType().optional()
|
|
263049
|
+
runtimeSecrets: booleanType().optional(),
|
|
263050
|
+
sourceMap: booleanType().optional()
|
|
262898
263051
|
}).refine((body) => new Set(body.functions.map((fn) => fn.name)).size === body.functions.length, { message: "function names must be unique" });
|
|
262899
263052
|
var ACTIVATION_MODE = "pull";
|
|
262900
263053
|
|
|
@@ -263459,7 +263612,8 @@ function wsNativeVirtualPlugin() {
|
|
|
263459
263612
|
}
|
|
263460
263613
|
|
|
263461
263614
|
// ../functions-compiler/src/deno-bundle.ts
|
|
263462
|
-
|
|
263615
|
+
var MAIN_MODULE = "_bundled.mjs";
|
|
263616
|
+
async function bundleToModule(prepared, nodeModulesDir = "none", sourceMap = false) {
|
|
263463
263617
|
const dir = await mkdtemp(path21.join(tmpdir2(), "b44-bundle-"));
|
|
263464
263618
|
try {
|
|
263465
263619
|
await writeFile2(path21.join(dir, "deno.json"), JSON.stringify({ nodeModulesDir }));
|
|
@@ -263478,7 +263632,7 @@ async function bundleToModule(prepared, nodeModulesDir = "none") {
|
|
|
263478
263632
|
define: { __dirname: '"/"', __filename: '"/index.js"' },
|
|
263479
263633
|
minify: true,
|
|
263480
263634
|
...prepared.banner ? { banner: { js: prepared.banner } } : {},
|
|
263481
|
-
sourcemap: false,
|
|
263635
|
+
...sourceMap ? { sourcemap: "linked", sourcesContent: false, outfile: MAIN_MODULE } : { sourcemap: false },
|
|
263482
263636
|
logLevel: "silent",
|
|
263483
263637
|
plugins: [
|
|
263484
263638
|
wsNativeVirtualPlugin(),
|
|
@@ -263497,14 +263651,19 @@ async function bundleToModule(prepared, nodeModulesDir = "none") {
|
|
|
263497
263651
|
throw e;
|
|
263498
263652
|
}
|
|
263499
263653
|
const outputs = result.outputFiles ?? [];
|
|
263500
|
-
|
|
263501
|
-
|
|
263654
|
+
const warnings = result.warnings.map((w) => w.text);
|
|
263655
|
+
if (!sourceMap) {
|
|
263656
|
+
if (outputs.length !== 1) {
|
|
263657
|
+
throw new Error(`expected single-module output, got ${outputs.length} file(s)`);
|
|
263658
|
+
}
|
|
263659
|
+
return { ok: true, module: outputs[0].text, warnings };
|
|
263502
263660
|
}
|
|
263503
|
-
|
|
263504
|
-
|
|
263505
|
-
|
|
263506
|
-
|
|
263507
|
-
}
|
|
263661
|
+
const module = outputs.find((o) => o.path.endsWith(".mjs"));
|
|
263662
|
+
const map = outputs.find((o) => o.path.endsWith(".map"));
|
|
263663
|
+
if (outputs.length !== 2 || !module || !map) {
|
|
263664
|
+
throw new Error(`expected a module and its source map, got ${outputs.map((o) => path21.basename(o.path)).join(", ") || "no files"}`);
|
|
263665
|
+
}
|
|
263666
|
+
return { ok: true, module: module.text, map: map.text, warnings };
|
|
263508
263667
|
} finally {
|
|
263509
263668
|
await rm2(dir, { recursive: true, force: true });
|
|
263510
263669
|
}
|
|
@@ -263550,6 +263709,36 @@ function relativizeFile(file, dir) {
|
|
|
263550
263709
|
return file.startsWith(prefix) ? file.slice(prefix.length) : file;
|
|
263551
263710
|
}
|
|
263552
263711
|
|
|
263712
|
+
// ../functions-compiler/src/source-map.ts
|
|
263713
|
+
var INTERNAL_SOURCE_PREFIX = "base44-internal:";
|
|
263714
|
+
var USER_PREFIX = `${USER_NAMESPACE}:`;
|
|
263715
|
+
var APP_FUNCTION_PATH = /^fn_(\d+)\/(.*)$/;
|
|
263716
|
+
function functionSourceMap(raw, fn) {
|
|
263717
|
+
return rewriteSources(raw, (key) => appPath(fn, key));
|
|
263718
|
+
}
|
|
263719
|
+
function appSourceMap(raw, functions) {
|
|
263720
|
+
return rewriteSources(raw, (key) => {
|
|
263721
|
+
const match = key.match(APP_FUNCTION_PATH);
|
|
263722
|
+
const fn = match ? functions[Number(match[1])] : undefined;
|
|
263723
|
+
return fn && match ? appPath(fn, match[2]) : undefined;
|
|
263724
|
+
});
|
|
263725
|
+
}
|
|
263726
|
+
function appPath(fn, key) {
|
|
263727
|
+
if (!Object.hasOwn(fn.files, key))
|
|
263728
|
+
return;
|
|
263729
|
+
return key === fn.entry && fn.entryPath ? fn.entryPath : key;
|
|
263730
|
+
}
|
|
263731
|
+
function rewriteSources(raw, appPathOf) {
|
|
263732
|
+
const map = JSON.parse(raw);
|
|
263733
|
+
map.sources = (map.sources ?? []).map((source) => {
|
|
263734
|
+
const app = source.startsWith(USER_PREFIX) ? appPathOf(source.slice(USER_PREFIX.length)) : undefined;
|
|
263735
|
+
return app ?? `${INTERNAL_SOURCE_PREFIX}${source}`;
|
|
263736
|
+
});
|
|
263737
|
+
delete map.sourceRoot;
|
|
263738
|
+
delete map.sourcesContent;
|
|
263739
|
+
return JSON.stringify(map);
|
|
263740
|
+
}
|
|
263741
|
+
|
|
263553
263742
|
// ../functions-compiler/src/tracing.ts
|
|
263554
263743
|
var noopTracer = {
|
|
263555
263744
|
withSpan: (_name, fn) => fn(),
|
|
@@ -263564,7 +263753,6 @@ function setSpanTags(tags) {
|
|
|
263564
263753
|
}
|
|
263565
263754
|
|
|
263566
263755
|
// ../functions-compiler/src/bundler.ts
|
|
263567
|
-
var NORMALIZED_MAIN_MODULE = "_bundled.mjs";
|
|
263568
263756
|
var MAX_PARALLEL_COMPILES = 4;
|
|
263569
263757
|
async function bundle(req) {
|
|
263570
263758
|
let actor;
|
|
@@ -263585,7 +263773,7 @@ async function bundle(req) {
|
|
|
263585
263773
|
return {
|
|
263586
263774
|
ok: true,
|
|
263587
263775
|
module: outcome.module,
|
|
263588
|
-
main_module:
|
|
263776
|
+
main_module: MAIN_MODULE,
|
|
263589
263777
|
warnings: outcome.warnings,
|
|
263590
263778
|
handler_name: actor.handlerName,
|
|
263591
263779
|
do_class_name: actor.doClassName
|
|
@@ -263599,12 +263787,13 @@ async function bundle(req) {
|
|
|
263599
263787
|
} catch (e) {
|
|
263600
263788
|
return denoCompatErrorOrThrow(e);
|
|
263601
263789
|
}
|
|
263602
|
-
const outcome = await installAndCompile(prepared);
|
|
263790
|
+
const outcome = await installAndCompile(prepared, req.sourceMap ?? false);
|
|
263603
263791
|
if (outcome.ok) {
|
|
263604
263792
|
return {
|
|
263605
263793
|
ok: true,
|
|
263606
263794
|
module: outcome.module,
|
|
263607
|
-
|
|
263795
|
+
...outcome.map ? { source_map: functionSourceMap(outcome.map, req) } : {},
|
|
263796
|
+
main_module: MAIN_MODULE,
|
|
263608
263797
|
warnings: outcome.warnings,
|
|
263609
263798
|
...activationField(req.runtimeSecrets ?? false)
|
|
263610
263799
|
};
|
|
@@ -263619,26 +263808,29 @@ async function bundleApp(req) {
|
|
|
263619
263808
|
return result.ok ? { ...result, ...activationField(req.runtimeSecrets ?? false) } : result;
|
|
263620
263809
|
}
|
|
263621
263810
|
async function assembleApp(req) {
|
|
263622
|
-
const
|
|
263623
|
-
|
|
263811
|
+
const build = {
|
|
263812
|
+
telemetry: req.postResponseTelemetry ?? false,
|
|
263813
|
+
runtimeSecrets: req.runtimeSecrets ?? false,
|
|
263814
|
+
sourceMap: req.sourceMap ?? false
|
|
263815
|
+
};
|
|
263624
263816
|
const entries = req.functions.map((fn, index) => ({
|
|
263625
263817
|
index,
|
|
263626
263818
|
fn
|
|
263627
263819
|
}));
|
|
263628
263820
|
let combined;
|
|
263629
263821
|
try {
|
|
263630
|
-
combined = await compileApp(entries,
|
|
263822
|
+
combined = await compileApp(entries, build);
|
|
263631
263823
|
} catch (e) {
|
|
263632
263824
|
if (e instanceof DenoCompatError)
|
|
263633
|
-
return bundleAppPerFunction(entries,
|
|
263825
|
+
return bundleAppPerFunction(entries, build);
|
|
263634
263826
|
throw e;
|
|
263635
263827
|
}
|
|
263636
263828
|
if (combined.ok) {
|
|
263637
|
-
return appResponse(combined
|
|
263829
|
+
return appResponse(combined, allOk(entries));
|
|
263638
263830
|
}
|
|
263639
263831
|
const { byIndex, unattributable } = classifyAppErrors(combined.errors);
|
|
263640
263832
|
if (unattributable.length > 0) {
|
|
263641
|
-
return bundleAppPerFunction(entries,
|
|
263833
|
+
return bundleAppPerFunction(entries, build);
|
|
263642
263834
|
}
|
|
263643
263835
|
const functions = entries.map((e) => byIndex.has(e.index) ? { name: e.fn.name, ok: false, errors: byIndex.get(e.index) } : { name: e.fn.name, ok: true });
|
|
263644
263836
|
const survivors = entries.filter((e) => !byIndex.has(e.index));
|
|
@@ -263647,25 +263839,42 @@ async function assembleApp(req) {
|
|
|
263647
263839
|
}
|
|
263648
263840
|
let rebuilt;
|
|
263649
263841
|
try {
|
|
263650
|
-
rebuilt = await compileApp(survivors,
|
|
263842
|
+
rebuilt = await compileApp(survivors, build);
|
|
263651
263843
|
} catch (e) {
|
|
263652
263844
|
if (e instanceof DenoCompatError)
|
|
263653
|
-
return bundleAppPerFunction(entries,
|
|
263845
|
+
return bundleAppPerFunction(entries, build);
|
|
263654
263846
|
throw e;
|
|
263655
263847
|
}
|
|
263656
263848
|
if (rebuilt.ok)
|
|
263657
|
-
return appResponse(rebuilt
|
|
263658
|
-
return bundleAppPerFunction(entries,
|
|
263659
|
-
}
|
|
263660
|
-
async function compileApp(entries,
|
|
263661
|
-
const outcome = await installAndCompile(prepareApp(entries, telemetry, runtimeSecrets));
|
|
263662
|
-
|
|
263849
|
+
return appResponse(rebuilt, functions);
|
|
263850
|
+
return bundleAppPerFunction(entries, build);
|
|
263851
|
+
}
|
|
263852
|
+
async function compileApp(entries, build) {
|
|
263853
|
+
const outcome = await installAndCompile(prepareApp(entries, build.telemetry, build.runtimeSecrets), build.sourceMap);
|
|
263854
|
+
if (!outcome.ok)
|
|
263855
|
+
return { ok: false, errors: outcome.errors };
|
|
263856
|
+
if (!outcome.map)
|
|
263857
|
+
return { ok: true, module: outcome.module };
|
|
263858
|
+
const functions = [];
|
|
263859
|
+
for (const { index, fn } of entries)
|
|
263860
|
+
functions[index] = fn;
|
|
263861
|
+
return {
|
|
263862
|
+
ok: true,
|
|
263863
|
+
module: outcome.module,
|
|
263864
|
+
map: appSourceMap(outcome.map, functions)
|
|
263865
|
+
};
|
|
263663
263866
|
}
|
|
263664
263867
|
function allOk(entries) {
|
|
263665
263868
|
return entries.map((e) => ({ name: e.fn.name, ok: true }));
|
|
263666
263869
|
}
|
|
263667
|
-
function appResponse(
|
|
263668
|
-
return {
|
|
263870
|
+
function appResponse(built, functions) {
|
|
263871
|
+
return {
|
|
263872
|
+
ok: true,
|
|
263873
|
+
module: built.module,
|
|
263874
|
+
...built.map ? { source_map: built.map } : {},
|
|
263875
|
+
main_module: MAIN_MODULE,
|
|
263876
|
+
functions
|
|
263877
|
+
};
|
|
263669
263878
|
}
|
|
263670
263879
|
function classifyAppErrors(errors) {
|
|
263671
263880
|
const byIndex = new Map;
|
|
@@ -263683,19 +263892,19 @@ function classifyAppErrors(errors) {
|
|
|
263683
263892
|
}
|
|
263684
263893
|
return { byIndex, unattributable };
|
|
263685
263894
|
}
|
|
263686
|
-
async function bundleAppPerFunction(entries,
|
|
263687
|
-
const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, runtimeSecrets));
|
|
263895
|
+
async function bundleAppPerFunction(entries, build) {
|
|
263896
|
+
const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, build.runtimeSecrets));
|
|
263688
263897
|
const functions = probes.map((p) => p.ok ? { name: p.entry.fn.name, ok: true } : { name: p.entry.fn.name, ok: false, errors: p.errors });
|
|
263689
263898
|
const survivors = probes.filter((p) => p.ok).map((p) => p.entry);
|
|
263690
263899
|
if (survivors.length === 0) {
|
|
263691
263900
|
return { ok: false, module: null, functions };
|
|
263692
263901
|
}
|
|
263693
|
-
const combined = await compileApp(survivors,
|
|
263902
|
+
const combined = await compileApp(survivors, build);
|
|
263694
263903
|
if (combined.ok)
|
|
263695
|
-
return appResponse(combined
|
|
263696
|
-
return assembleWithoutConflicting(survivors, functions, combined.errors,
|
|
263904
|
+
return appResponse(combined, functions);
|
|
263905
|
+
return assembleWithoutConflicting(survivors, functions, combined.errors, build);
|
|
263697
263906
|
}
|
|
263698
|
-
async function assembleWithoutConflicting(survivors, functions, errors,
|
|
263907
|
+
async function assembleWithoutConflicting(survivors, functions, errors, build) {
|
|
263699
263908
|
const failWith = (entries, items) => {
|
|
263700
263909
|
for (const e of entries) {
|
|
263701
263910
|
functions[e.index] = { name: e.fn.name, ok: false, errors: items };
|
|
@@ -263710,10 +263919,10 @@ async function assembleWithoutConflicting(survivors, functions, errors, telemetr
|
|
|
263710
263919
|
const blamed = survivors.filter((e) => importsConflictingPackage(e, errors));
|
|
263711
263920
|
const rest = survivors.filter((e) => !blamed.includes(e));
|
|
263712
263921
|
if (blamed.length > 0 && rest.length > 0) {
|
|
263713
|
-
const rebuilt = await compileApp(rest,
|
|
263922
|
+
const rebuilt = await compileApp(rest, build);
|
|
263714
263923
|
if (rebuilt.ok) {
|
|
263715
263924
|
failWith(blamed, conflictErrors);
|
|
263716
|
-
return appResponse(rebuilt
|
|
263925
|
+
return appResponse(rebuilt, functions);
|
|
263717
263926
|
}
|
|
263718
263927
|
failWith(blamed, conflictErrors);
|
|
263719
263928
|
failWith(rest, [conflictErrors[0], ...rebuilt.errors]);
|
|
@@ -263750,7 +263959,11 @@ function escapeRegExp(s) {
|
|
|
263750
263959
|
async function probeFunction(entry, runtimeSecrets = false) {
|
|
263751
263960
|
let outcome;
|
|
263752
263961
|
try {
|
|
263753
|
-
outcome = await compileApp([entry],
|
|
263962
|
+
outcome = await compileApp([entry], {
|
|
263963
|
+
telemetry: false,
|
|
263964
|
+
runtimeSecrets,
|
|
263965
|
+
sourceMap: false
|
|
263966
|
+
});
|
|
263754
263967
|
} catch (e) {
|
|
263755
263968
|
if (e instanceof DenoCompatError) {
|
|
263756
263969
|
return { ok: false, entry, errors: [denoCompatErrorItem(e)] };
|
|
@@ -263780,20 +263993,25 @@ async function mapWithConcurrency(items, limit, fn) {
|
|
|
263780
263993
|
return results;
|
|
263781
263994
|
}
|
|
263782
263995
|
var NODE_MODULES_FALLBACK = /ERR_MODULE_NOT_FOUND|Could not find referrer npm package/;
|
|
263783
|
-
async function installAndCompile(prepared) {
|
|
263996
|
+
async function installAndCompile(prepared, sourceMap = false) {
|
|
263784
263997
|
return withSpan("base44.bundler.compile", async () => {
|
|
263785
263998
|
let mode = "none";
|
|
263786
|
-
let result = await bundleToModule(prepared, mode);
|
|
263999
|
+
let result = await bundleToModule(prepared, mode, sourceMap);
|
|
263787
264000
|
if (!result.ok && result.errors.some((e) => NODE_MODULES_FALLBACK.test(e.message))) {
|
|
263788
264001
|
mode = "auto";
|
|
263789
|
-
result = await bundleToModule(prepared, mode);
|
|
264002
|
+
result = await bundleToModule(prepared, mode, sourceMap);
|
|
263790
264003
|
}
|
|
263791
264004
|
await setSpanTags({
|
|
263792
264005
|
node_modules_mode: mode,
|
|
263793
264006
|
outcome: result.ok ? "ok" : "failed"
|
|
263794
264007
|
});
|
|
263795
264008
|
if (result.ok) {
|
|
263796
|
-
return {
|
|
264009
|
+
return {
|
|
264010
|
+
ok: true,
|
|
264011
|
+
module: result.module,
|
|
264012
|
+
...result.map ? { map: result.map } : {},
|
|
264013
|
+
warnings: result.warnings
|
|
264014
|
+
};
|
|
263797
264015
|
}
|
|
263798
264016
|
return { ok: false, stage: "esbuild", errors: result.errors };
|
|
263799
264017
|
});
|
|
@@ -264786,6 +265004,425 @@ function getSecretsCommand() {
|
|
|
264786
265004
|
return new Command2("secrets").description("Manage project secrets (environment variables)").addCommand(getSecretsListCommand()).addCommand(getSecretsSetCommand()).addCommand(getSecretsDeleteCommand());
|
|
264787
265005
|
}
|
|
264788
265006
|
|
|
265007
|
+
// src/cli/commands/sessions/import.ts
|
|
265008
|
+
var import_ms2 = __toESM(require_ms(), 1);
|
|
265009
|
+
|
|
265010
|
+
// src/core/session-import/api.ts
|
|
265011
|
+
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
265012
|
+
var MAX_SESSION_BYTES = 25 * 1024 * 1024;
|
|
265013
|
+
var SessionImportResponseSchema = object({
|
|
265014
|
+
branch_id: string2(),
|
|
265015
|
+
branch_name: string2(),
|
|
265016
|
+
source: _enum(["claude_code", "codex"]),
|
|
265017
|
+
turn_count: number2(),
|
|
265018
|
+
branch_url: string2(),
|
|
265019
|
+
continued: boolean2(),
|
|
265020
|
+
source_ref: string2()
|
|
265021
|
+
}).transform((data) => ({
|
|
265022
|
+
branchId: data.branch_id,
|
|
265023
|
+
branchName: data.branch_name,
|
|
265024
|
+
source: data.source,
|
|
265025
|
+
turnCount: data.turn_count,
|
|
265026
|
+
branchUrl: data.branch_url,
|
|
265027
|
+
continued: data.continued,
|
|
265028
|
+
sourceRef: data.source_ref
|
|
265029
|
+
}));
|
|
265030
|
+
var ErrorEnvelopeSchema = object({
|
|
265031
|
+
error: object({
|
|
265032
|
+
code: string2().optional(),
|
|
265033
|
+
details: object({ branch_name: string2(), branch_url: string2() }).partial().optional()
|
|
265034
|
+
})
|
|
265035
|
+
});
|
|
265036
|
+
var NETWORK_BLOCKED = "Your Claude cloud environment can't reach Base44 yet. In the environment's settings, open Network access, add `app.base44.com` to Allowed domains, and try again.";
|
|
265037
|
+
function messageFor(status, code, details, viaToken) {
|
|
265038
|
+
if (code === "branch_exists" && details?.branch_url) {
|
|
265039
|
+
return `Base Code already has ${details.branch_name ?? "a branch for this session"}. Open it: ${new URL(details.branch_url, getBase44ApiUrl())}`;
|
|
265040
|
+
}
|
|
265041
|
+
if (code === "idempotency_key_in_use") {
|
|
265042
|
+
return "An import of this session is still running. Wait a moment and try again.";
|
|
265043
|
+
}
|
|
265044
|
+
if (code === "repository_not_connected") {
|
|
265045
|
+
return "Connect this app to its GitHub repository in Base Code first.";
|
|
265046
|
+
}
|
|
265047
|
+
if (status === 401 && viaToken) {
|
|
265048
|
+
return "This import key expired or was already used. In Base Code, open Import session and copy a new prompt.";
|
|
265049
|
+
}
|
|
265050
|
+
if (status === 403) {
|
|
265051
|
+
return "You don't have edit access to this app, or this key was made for a different app.";
|
|
265052
|
+
}
|
|
265053
|
+
if (status === 404)
|
|
265054
|
+
return "Session import isn't available for this app.";
|
|
265055
|
+
if (status === 413)
|
|
265056
|
+
return "This session is over 25 MB and can't be imported.";
|
|
265057
|
+
if (code === "unsupported_file") {
|
|
265058
|
+
return "That file isn't a Claude Code or Codex session.";
|
|
265059
|
+
}
|
|
265060
|
+
if (code === "repository_mismatch") {
|
|
265061
|
+
return "This session is from a different repository than the app.";
|
|
265062
|
+
}
|
|
265063
|
+
if (status === 429)
|
|
265064
|
+
return "Too many imports. Wait a minute and try again.";
|
|
265065
|
+
return;
|
|
265066
|
+
}
|
|
265067
|
+
async function toImportError(error, viaToken) {
|
|
265068
|
+
if (!(error instanceof HTTPError)) {
|
|
265069
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
265070
|
+
return new ApiError(process.env.CLAUDE_CODE_REMOTE ? NETWORK_BLOCKED : `Couldn't reach Base44: ${reason}`, { hints: [] });
|
|
265071
|
+
}
|
|
265072
|
+
const { status } = error.response;
|
|
265073
|
+
const fallback = await ApiError.fromHttpError(error, "importing session");
|
|
265074
|
+
const envelope = ErrorEnvelopeSchema.safeParse(fallback.responseBody);
|
|
265075
|
+
const { code, details } = envelope.success ? envelope.data.error : {};
|
|
265076
|
+
const blocked = process.env.CLAUDE_CODE_REMOTE && status === 403 && typeof fallback.responseBody !== "object";
|
|
265077
|
+
const known = blocked ? NETWORK_BLOCKED : messageFor(status, code, details, viaToken);
|
|
265078
|
+
return new ApiError(known ?? fallback.message, {
|
|
265079
|
+
statusCode: status,
|
|
265080
|
+
requestUrl: error.request.url,
|
|
265081
|
+
requestMethod: error.request.method,
|
|
265082
|
+
requestId: fallback.requestId,
|
|
265083
|
+
hints: known ? [] : fallback.hints
|
|
265084
|
+
});
|
|
265085
|
+
}
|
|
265086
|
+
async function uploadSession(appId, content, { token, sourceBranch } = {}) {
|
|
265087
|
+
const form = new FormData;
|
|
265088
|
+
form.append("file", new Blob([content]), "session.jsonl");
|
|
265089
|
+
if (sourceBranch)
|
|
265090
|
+
form.append("source_branch", sourceBranch);
|
|
265091
|
+
const idempotencyKey = randomUUID5();
|
|
265092
|
+
let response;
|
|
265093
|
+
try {
|
|
265094
|
+
response = token ? await distribution_default.post(new URL(`/api/apps/${appId}/imported/session-imports`, getBase44ApiUrl()), {
|
|
265095
|
+
body: form,
|
|
265096
|
+
headers: {
|
|
265097
|
+
Authorization: `Bearer ${token}`,
|
|
265098
|
+
"User-Agent": "Base44 CLI",
|
|
265099
|
+
"Idempotency-Key": idempotencyKey
|
|
265100
|
+
},
|
|
265101
|
+
timeout: 180000
|
|
265102
|
+
}) : await getAppClient().post("imported/session-imports", {
|
|
265103
|
+
body: form,
|
|
265104
|
+
headers: { "Idempotency-Key": idempotencyKey },
|
|
265105
|
+
timeout: 180000
|
|
265106
|
+
});
|
|
265107
|
+
} catch (error) {
|
|
265108
|
+
throw await toImportError(error, Boolean(token));
|
|
265109
|
+
}
|
|
265110
|
+
const result = SessionImportResponseSchema.safeParse(await response.json());
|
|
265111
|
+
if (!result.success) {
|
|
265112
|
+
throw new SchemaValidationError("Invalid session import response from server", result.error);
|
|
265113
|
+
}
|
|
265114
|
+
return result.data;
|
|
265115
|
+
}
|
|
265116
|
+
|
|
265117
|
+
// src/core/session-import/sessions.ts
|
|
265118
|
+
import { createReadStream as createReadStream3 } from "node:fs";
|
|
265119
|
+
import { realpath, rm as rm3, stat as stat4 } from "node:fs/promises";
|
|
265120
|
+
import { homedir as homedir4 } from "node:os";
|
|
265121
|
+
import { dirname as dirname23, join as join31 } from "node:path";
|
|
265122
|
+
import { createInterface as createInterface2 } from "node:readline";
|
|
265123
|
+
|
|
265124
|
+
// ../../node_modules/tmp-promise/index.js
|
|
265125
|
+
var { promisify: promisify12 } = __require("util");
|
|
265126
|
+
var tmp = require_tmp();
|
|
265127
|
+
var fileWithOptions = promisify12((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(undefined, { path, fd, cleanup: promisify12(cleanup) })));
|
|
265128
|
+
var $file = async (options) => fileWithOptions(options);
|
|
265129
|
+
var dirWithOptions = promisify12((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(undefined, { path, cleanup: promisify12(cleanup) })));
|
|
265130
|
+
var $dir = async (options) => dirWithOptions(options);
|
|
265131
|
+
var $tmpName = promisify12(tmp.tmpName);
|
|
265132
|
+
|
|
265133
|
+
// src/core/session-import/sessions.ts
|
|
265134
|
+
var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join31(homedir4(), ".claude");
|
|
265135
|
+
var codexDir = () => process.env.CODEX_HOME || join31(homedir4(), ".codex");
|
|
265136
|
+
async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
|
|
265137
|
+
const lines = createInterface2({ input: createReadStream3(path) });
|
|
265138
|
+
let count = 0;
|
|
265139
|
+
try {
|
|
265140
|
+
for await (const line of lines) {
|
|
265141
|
+
if (++count > maxLines)
|
|
265142
|
+
return;
|
|
265143
|
+
try {
|
|
265144
|
+
const found = pick(JSON.parse(line));
|
|
265145
|
+
if (found !== undefined)
|
|
265146
|
+
return found;
|
|
265147
|
+
} catch {}
|
|
265148
|
+
}
|
|
265149
|
+
} finally {
|
|
265150
|
+
lines.close();
|
|
265151
|
+
}
|
|
265152
|
+
return;
|
|
265153
|
+
}
|
|
265154
|
+
var asRecord = (value) => value && typeof value === "object" ? value : {};
|
|
265155
|
+
var codexCwd = (entry) => entry.type === "session_meta" ? String(asRecord(entry.payload).cwd ?? "") : undefined;
|
|
265156
|
+
async function newest(paths) {
|
|
265157
|
+
let best;
|
|
265158
|
+
for (const path of paths) {
|
|
265159
|
+
const { mtimeMs } = await stat4(path);
|
|
265160
|
+
if (!best || mtimeMs > best.mtime)
|
|
265161
|
+
best = { path, mtime: mtimeMs };
|
|
265162
|
+
}
|
|
265163
|
+
return best?.path;
|
|
265164
|
+
}
|
|
265165
|
+
async function sameDir(a, b) {
|
|
265166
|
+
if (a === b)
|
|
265167
|
+
return true;
|
|
265168
|
+
const [ra, rb] = await Promise.all([
|
|
265169
|
+
realpath(a).catch(() => a),
|
|
265170
|
+
realpath(b).catch(() => b)
|
|
265171
|
+
]);
|
|
265172
|
+
return ra === rb;
|
|
265173
|
+
}
|
|
265174
|
+
var codexRollouts = () => globby("sessions/*/*/*/rollout-*.jsonl", {
|
|
265175
|
+
cwd: codexDir(),
|
|
265176
|
+
absolute: true
|
|
265177
|
+
});
|
|
265178
|
+
async function codexRolloutsIn(cwd) {
|
|
265179
|
+
const matches = [];
|
|
265180
|
+
for (const path of await codexRollouts()) {
|
|
265181
|
+
const recorded = await scanLines(path, codexCwd, 1);
|
|
265182
|
+
if (recorded && await sameDir(recorded, cwd))
|
|
265183
|
+
matches.push(path);
|
|
265184
|
+
}
|
|
265185
|
+
return matches;
|
|
265186
|
+
}
|
|
265187
|
+
async function findCurrentSession(cwd) {
|
|
265188
|
+
const claudeId = process.env.CLAUDE_CODE_SESSION_ID;
|
|
265189
|
+
if (claudeId) {
|
|
265190
|
+
const [path] = await globby(`projects/*/${claudeId}.jsonl`, {
|
|
265191
|
+
cwd: claudeDir(),
|
|
265192
|
+
absolute: true
|
|
265193
|
+
});
|
|
265194
|
+
return path;
|
|
265195
|
+
}
|
|
265196
|
+
const codexId = process.env.CODEX_THREAD_ID;
|
|
265197
|
+
if (codexId) {
|
|
265198
|
+
const rollouts = await codexRollouts();
|
|
265199
|
+
const rollout = rollouts.find((path) => path.endsWith(`-${codexId}.jsonl`));
|
|
265200
|
+
if (!rollout) {
|
|
265201
|
+
throw new InvalidInputError("Codex cloud sessions can't be imported yet. Run this from the Codex app or CLI on your computer.", { hints: [] });
|
|
265202
|
+
}
|
|
265203
|
+
return rollout;
|
|
265204
|
+
}
|
|
265205
|
+
return newest(await codexRolloutsIn(cwd));
|
|
265206
|
+
}
|
|
265207
|
+
function claudeUserText(entry) {
|
|
265208
|
+
if (entry.type !== "user" || entry.isMeta || entry.isSidechain)
|
|
265209
|
+
return;
|
|
265210
|
+
const content = asRecord(entry.message).content;
|
|
265211
|
+
return typeof content === "string" && !content.startsWith("<") ? content : undefined;
|
|
265212
|
+
}
|
|
265213
|
+
function codexUserText(entry) {
|
|
265214
|
+
const payload = asRecord(entry.payload);
|
|
265215
|
+
return entry.type === "event_msg" && payload.type === "user_message" ? String(payload.message ?? "") : undefined;
|
|
265216
|
+
}
|
|
265217
|
+
var PICKER_LIMIT = 20;
|
|
265218
|
+
async function listSessions(cwd) {
|
|
265219
|
+
const claudeFolder = cwd.replace(/[^a-zA-Z0-9]/g, "-");
|
|
265220
|
+
const claude = await globby(`projects/${claudeFolder}/*.jsonl`, {
|
|
265221
|
+
cwd: claudeDir(),
|
|
265222
|
+
absolute: true
|
|
265223
|
+
});
|
|
265224
|
+
const candidates = [
|
|
265225
|
+
...claude.map((path) => ({ tool: "claude_code", path })),
|
|
265226
|
+
...(await codexRolloutsIn(cwd)).map((path) => ({
|
|
265227
|
+
tool: "codex",
|
|
265228
|
+
path
|
|
265229
|
+
}))
|
|
265230
|
+
];
|
|
265231
|
+
const dated = await Promise.all(candidates.map(async (c) => ({
|
|
265232
|
+
...c,
|
|
265233
|
+
updatedAt: (await stat4(c.path)).mtime
|
|
265234
|
+
})));
|
|
265235
|
+
dated.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime());
|
|
265236
|
+
const sessions = [];
|
|
265237
|
+
for (const candidate of dated.slice(0, PICKER_LIMIT)) {
|
|
265238
|
+
const firstMessage = await scanLines(candidate.path, candidate.tool === "claude_code" ? claudeUserText : codexUserText);
|
|
265239
|
+
if (firstMessage)
|
|
265240
|
+
sessions.push({ ...candidate, firstMessage });
|
|
265241
|
+
}
|
|
265242
|
+
return sessions;
|
|
265243
|
+
}
|
|
265244
|
+
var SESSION_ID = /session_[A-Za-z0-9]+/;
|
|
265245
|
+
function parseSessionLink(link) {
|
|
265246
|
+
if (/cshk_/.test(link) || !SESSION_ID.test(link)) {
|
|
265247
|
+
throw new InvalidInputError(`That isn't a claude.ai session address. Copy it from your browser's address bar (not "Copy link").`, { hints: [] });
|
|
265248
|
+
}
|
|
265249
|
+
return link.match(SESSION_ID)[0];
|
|
265250
|
+
}
|
|
265251
|
+
var TELEPORT_PROMPT = "Reply with OK.";
|
|
265252
|
+
var TELEPORT_NOTE = "This session is being continued from another machine";
|
|
265253
|
+
function parseLine(line) {
|
|
265254
|
+
try {
|
|
265255
|
+
return asRecord(JSON.parse(line));
|
|
265256
|
+
} catch {
|
|
265257
|
+
return {};
|
|
265258
|
+
}
|
|
265259
|
+
}
|
|
265260
|
+
function stripTeleportExchange(content) {
|
|
265261
|
+
const lines = content.split(`
|
|
265262
|
+
`);
|
|
265263
|
+
const entries = lines.map(parseLine);
|
|
265264
|
+
const userText = (entry) => entry.type === "user" ? asRecord(entry.message).content : undefined;
|
|
265265
|
+
let end = lines.length;
|
|
265266
|
+
for (let i = lines.length - 1;i >= 0; i--) {
|
|
265267
|
+
if (userText(entries[i] ?? {}) === TELEPORT_PROMPT) {
|
|
265268
|
+
end = i;
|
|
265269
|
+
break;
|
|
265270
|
+
}
|
|
265271
|
+
}
|
|
265272
|
+
return lines.slice(0, end).filter((_, i) => {
|
|
265273
|
+
const entry = entries[i] ?? {};
|
|
265274
|
+
const text = userText(entry);
|
|
265275
|
+
const queued = entry.type === "queue-operation" && entry.content === TELEPORT_PROMPT;
|
|
265276
|
+
const note = typeof text === "string" && text.startsWith(TELEPORT_NOTE);
|
|
265277
|
+
return !queued && !note;
|
|
265278
|
+
}).join(`
|
|
265279
|
+
`);
|
|
265280
|
+
}
|
|
265281
|
+
var NEEDS_CLAUDE = "Claude Code must be installed and signed in to the same claude.ai account to import a claude.ai session.";
|
|
265282
|
+
async function teleportSession(sessionId, cwd) {
|
|
265283
|
+
const origin = await execa("git", ["remote", "get-url", "origin"], {
|
|
265284
|
+
cwd,
|
|
265285
|
+
reject: false
|
|
265286
|
+
});
|
|
265287
|
+
if (origin.exitCode !== 0 || !origin.stdout) {
|
|
265288
|
+
throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
|
|
265289
|
+
}
|
|
265290
|
+
const tmp = await $dir({ unsafeCleanup: true });
|
|
265291
|
+
const repo = join31(tmp.path, "repo");
|
|
265292
|
+
let projectFolder;
|
|
265293
|
+
try {
|
|
265294
|
+
await execa("git", ["clone", "--quiet", origin.stdout, repo]);
|
|
265295
|
+
const repoReal = await realpath(repo);
|
|
265296
|
+
const startedAt = Date.now();
|
|
265297
|
+
const claudeBin = getTestOverrides()?.claudeBin ?? "claude";
|
|
265298
|
+
try {
|
|
265299
|
+
await execa(claudeBin, ["--teleport", sessionId, "-p", TELEPORT_PROMPT], {
|
|
265300
|
+
cwd: repo,
|
|
265301
|
+
stdin: "ignore"
|
|
265302
|
+
});
|
|
265303
|
+
} catch {
|
|
265304
|
+
throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
|
|
265305
|
+
}
|
|
265306
|
+
const fresh = [];
|
|
265307
|
+
for (const path of await globby("projects/*/*.jsonl", {
|
|
265308
|
+
cwd: claudeDir(),
|
|
265309
|
+
absolute: true
|
|
265310
|
+
})) {
|
|
265311
|
+
if ((await stat4(path)).mtimeMs < startedAt)
|
|
265312
|
+
continue;
|
|
265313
|
+
const sessionCwd = await scanLines(path, (entry) => typeof entry.cwd === "string" ? entry.cwd : undefined, 50);
|
|
265314
|
+
if (sessionCwd === repo || sessionCwd === repoReal)
|
|
265315
|
+
fresh.push(path);
|
|
265316
|
+
}
|
|
265317
|
+
const file = await newest(fresh);
|
|
265318
|
+
if (!file)
|
|
265319
|
+
throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
|
|
265320
|
+
projectFolder = dirname23(file);
|
|
265321
|
+
return stripTeleportExchange((await readFile(file)).toString("utf8"));
|
|
265322
|
+
} finally {
|
|
265323
|
+
if (projectFolder)
|
|
265324
|
+
await rm3(projectFolder, { recursive: true, force: true });
|
|
265325
|
+
await tmp.cleanup();
|
|
265326
|
+
}
|
|
265327
|
+
}
|
|
265328
|
+
|
|
265329
|
+
// src/cli/commands/sessions/import.ts
|
|
265330
|
+
var TOOL_LABELS = {
|
|
265331
|
+
claude_code: "Claude Code",
|
|
265332
|
+
codex: "Codex"
|
|
265333
|
+
};
|
|
265334
|
+
async function pickSession(cwd) {
|
|
265335
|
+
const sessions = await listSessions(cwd);
|
|
265336
|
+
if (sessions.length === 0) {
|
|
265337
|
+
throw new InvalidInputError("No Claude Code or Codex sessions found in this folder. Pass --file <path>.");
|
|
265338
|
+
}
|
|
265339
|
+
const choice = await Je({
|
|
265340
|
+
message: "Which session do you want to continue in Base Code?",
|
|
265341
|
+
options: sessions.map((session) => ({
|
|
265342
|
+
value: session.path,
|
|
265343
|
+
label: session.firstMessage.replace(/\s+/g, " ").slice(0, 70),
|
|
265344
|
+
hint: `${TOOL_LABELS[session.tool]}, ${import_ms2.default(Date.now() - session.updatedAt.getTime())} ago`
|
|
265345
|
+
}))
|
|
265346
|
+
});
|
|
265347
|
+
if (Ct(choice)) {
|
|
265348
|
+
Ne("Operation cancelled.");
|
|
265349
|
+
throw new CLIExitError(0);
|
|
265350
|
+
}
|
|
265351
|
+
return choice;
|
|
265352
|
+
}
|
|
265353
|
+
async function readSession(ctx, link, options) {
|
|
265354
|
+
const cwd = process.cwd();
|
|
265355
|
+
if (options.file)
|
|
265356
|
+
return readFile(options.file);
|
|
265357
|
+
if (link) {
|
|
265358
|
+
const sessionId = parseSessionLink(link);
|
|
265359
|
+
const content = await ctx.runTask("Downloading the claude.ai session", () => teleportSession(sessionId, cwd));
|
|
265360
|
+
return Buffer.from(content);
|
|
265361
|
+
}
|
|
265362
|
+
if (options.current) {
|
|
265363
|
+
const path = await findCurrentSession(cwd);
|
|
265364
|
+
if (!path) {
|
|
265365
|
+
throw new InvalidInputError("Couldn't find the current session. Run this from inside Claude Code or Codex, or pass --file <path>.", { hints: [] });
|
|
265366
|
+
}
|
|
265367
|
+
return readFile(path);
|
|
265368
|
+
}
|
|
265369
|
+
if (ctx.isNonInteractive || ctx.jsonMode) {
|
|
265370
|
+
throw new InvalidInputError("Choose a session: pass --current, a claude.ai session link, or --file <path>.");
|
|
265371
|
+
}
|
|
265372
|
+
return readFile(await pickSession(cwd));
|
|
265373
|
+
}
|
|
265374
|
+
async function importAction(ctx, link, options, command) {
|
|
265375
|
+
ctx.errorReporter.setContext({
|
|
265376
|
+
command: {
|
|
265377
|
+
name: "sessions import",
|
|
265378
|
+
args: link ? ["[not reported]"] : [],
|
|
265379
|
+
options: {
|
|
265380
|
+
...command.opts(),
|
|
265381
|
+
...options.token ? { token: "[not reported]" } : {}
|
|
265382
|
+
}
|
|
265383
|
+
}
|
|
265384
|
+
});
|
|
265385
|
+
const chosen = [link, options.current, options.file].filter(Boolean).length;
|
|
265386
|
+
if (chosen > 1) {
|
|
265387
|
+
throw new InvalidInputError("Pass only one of: a session link, --current, or --file.");
|
|
265388
|
+
}
|
|
265389
|
+
const appId = requireApp(ctx).id;
|
|
265390
|
+
const content = await readSession(ctx, link, options);
|
|
265391
|
+
if (content.length > MAX_SESSION_BYTES) {
|
|
265392
|
+
throw new InvalidInputError("This session is over 25 MB and can't be imported.", { hints: [] });
|
|
265393
|
+
}
|
|
265394
|
+
const git = link || options.file ? undefined : await readGitState(process.cwd());
|
|
265395
|
+
if (git?.unpushed && !options.skipPushCheck) {
|
|
265396
|
+
throw new InvalidInputError("Your changes aren't on GitHub yet. Ask the user whether to commit and push them (to a new branch if on main or master), then run this again. If they don't want to, run it again with --skip-push-check.", { hints: [] });
|
|
265397
|
+
}
|
|
265398
|
+
const note = git?.unpushed ? "Base Code started from what's on GitHub; your local changes aren't included." : undefined;
|
|
265399
|
+
if (!options.token)
|
|
265400
|
+
await ensureAuth(ctx);
|
|
265401
|
+
ctx.log.info("This uploads the full conversation to Base Code.");
|
|
265402
|
+
const imported = await ctx.runTask("Importing session", () => uploadSession(appId, content, {
|
|
265403
|
+
token: options.token,
|
|
265404
|
+
sourceBranch: git?.branch
|
|
265405
|
+
}));
|
|
265406
|
+
const url = `${getBase44ApiUrl()}${imported.branchUrl}`;
|
|
265407
|
+
return {
|
|
265408
|
+
outroMessage: [
|
|
265409
|
+
imported.continued ? `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]}. Continued on "${imported.branchName}".` : `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]} into branch "${imported.branchName}".`,
|
|
265410
|
+
...note ? [note] : [],
|
|
265411
|
+
`Open it: ${url}`
|
|
265412
|
+
].join(`
|
|
265413
|
+
`),
|
|
265414
|
+
stdout: ctx.jsonMode ? toJsonStdout({ ...imported, url, ...note ? { note } : {} }) : undefined
|
|
265415
|
+
};
|
|
265416
|
+
}
|
|
265417
|
+
function getSessionsImportCommand() {
|
|
265418
|
+
return new Base44Command("import", { requireAuth: false }).description("Continue a Claude Code or Codex session in Base Code").argument("[session-link]", "A claude.ai session address (https://claude.ai/code/session_…)").option("--current", "Import the session this command runs inside").option("--file <path>", "Import this session file as is").option("--skip-push-check", "Import even though local changes aren't on GitHub (they won't be included)").option("--token <key>", "One-time import key from Base Code (no login needed)").action(importAction);
|
|
265419
|
+
}
|
|
265420
|
+
|
|
265421
|
+
// src/cli/commands/sessions/index.ts
|
|
265422
|
+
function getSessionsCommand() {
|
|
265423
|
+
return new Command2("sessions").description("Move Claude Code and Codex sessions to Base Code").addCommand(getSessionsImportCommand());
|
|
265424
|
+
}
|
|
265425
|
+
|
|
264789
265426
|
// src/cli/commands/site/deploy.ts
|
|
264790
265427
|
import { resolve as resolve16 } from "node:path";
|
|
264791
265428
|
async function deployAction2(ctx, options) {
|
|
@@ -265205,10 +265842,10 @@ function toPascalCase(name) {
|
|
|
265205
265842
|
return name.split(/[-_\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
|
|
265206
265843
|
}
|
|
265207
265844
|
// src/core/types/update-project.ts
|
|
265208
|
-
import { join as
|
|
265845
|
+
import { join as join35 } from "node:path";
|
|
265209
265846
|
var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
|
|
265210
265847
|
async function updateProjectConfig(projectRoot) {
|
|
265211
|
-
const tsconfigPath =
|
|
265848
|
+
const tsconfigPath = join35(projectRoot, "tsconfig.json");
|
|
265212
265849
|
if (!await pathExists(tsconfigPath)) {
|
|
265213
265850
|
return false;
|
|
265214
265851
|
}
|
|
@@ -265286,11 +265923,11 @@ function getVersionCreateCommand() {
|
|
|
265286
265923
|
}
|
|
265287
265924
|
|
|
265288
265925
|
// src/cli/commands/versions/deploy.ts
|
|
265289
|
-
import { randomUUID as
|
|
265926
|
+
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
265290
265927
|
async function deployAction3({ runTask, jsonMode }, versionId, options) {
|
|
265291
265928
|
const environment = options.target ?? DEFAULT_ENVIRONMENT;
|
|
265292
265929
|
const result = await runTask(`Pointing ${environment} at ${versionId}...`, async () => await setEnvironmentVersion(environment, versionId, {
|
|
265293
|
-
idempotencyKey:
|
|
265930
|
+
idempotencyKey: randomUUID6()
|
|
265294
265931
|
}), {
|
|
265295
265932
|
successMessage: "Environment updated",
|
|
265296
265933
|
errorMessage: "Could not update the environment"
|
|
@@ -265689,7 +266326,7 @@ function getWorkspaceCommand() {
|
|
|
265689
266326
|
// src/cli/dev/dev-server/main.ts
|
|
265690
266327
|
var import_cors = __toESM(require_lib4(), 1);
|
|
265691
266328
|
var import_express6 = __toESM(require_express(), 1);
|
|
265692
|
-
import { dirname as
|
|
266329
|
+
import { dirname as dirname29, join as join40 } from "node:path";
|
|
265693
266330
|
|
|
265694
266331
|
// ../../node_modules/get-port/index.js
|
|
265695
266332
|
import net from "node:net";
|
|
@@ -265808,18 +266445,9 @@ async function getPorts(options) {
|
|
|
265808
266445
|
// src/cli/dev/dev-server/main.ts
|
|
265809
266446
|
var import_http_proxy_middleware2 = __toESM(require_dist2(), 1);
|
|
265810
266447
|
|
|
265811
|
-
// ../../node_modules/tmp-promise/index.js
|
|
265812
|
-
var { promisify: promisify12 } = __require("util");
|
|
265813
|
-
var tmp = require_tmp();
|
|
265814
|
-
var fileWithOptions = promisify12((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(undefined, { path, fd, cleanup: promisify12(cleanup) })));
|
|
265815
|
-
var $file = async (options) => fileWithOptions(options);
|
|
265816
|
-
var dirWithOptions = promisify12((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(undefined, { path, cleanup: promisify12(cleanup) })));
|
|
265817
|
-
var $dir = async (options) => dirWithOptions(options);
|
|
265818
|
-
var $tmpName = promisify12(tmp.tmpName);
|
|
265819
|
-
|
|
265820
266448
|
// src/cli/dev/dev-server/function-manager.ts
|
|
265821
266449
|
import { spawn as spawn3 } from "node:child_process";
|
|
265822
|
-
import { dirname as
|
|
266450
|
+
import { dirname as dirname26, join as join36 } from "node:path";
|
|
265823
266451
|
import { pathToFileURL as pathToFileURL6 } from "node:url";
|
|
265824
266452
|
|
|
265825
266453
|
// src/cli/dev/dev-server/base-function-manager.ts
|
|
@@ -265924,7 +266552,7 @@ class FunctionManager extends BaseFunctionManager {
|
|
|
265924
266552
|
}
|
|
265925
266553
|
spawnFunction(func, port) {
|
|
265926
266554
|
this.logger.log(`Spawning function "${func.name}" on port ${port}`);
|
|
265927
|
-
const importMapPath =
|
|
266555
|
+
const importMapPath = join36(dirname26(this.wrapperPath), "import-map.json");
|
|
265928
266556
|
const process2 = spawn3("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
|
|
265929
266557
|
env: {
|
|
265930
266558
|
...globalThis.process.env,
|
|
@@ -265997,8 +266625,8 @@ class FunctionManager extends BaseFunctionManager {
|
|
|
265997
266625
|
// src/cli/dev/dev-server/function-bundler.ts
|
|
265998
266626
|
import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
265999
266627
|
import { isBuiltin as isBuiltin3 } from "node:module";
|
|
266000
|
-
import { homedir as
|
|
266001
|
-
import { join as
|
|
266628
|
+
import { homedir as homedir5 } from "node:os";
|
|
266629
|
+
import { join as join37 } from "node:path";
|
|
266002
266630
|
import { pathToFileURL as pathToFileURL7 } from "node:url";
|
|
266003
266631
|
var depsPromise;
|
|
266004
266632
|
function loadDeps() {
|
|
@@ -266119,9 +266747,9 @@ export default {
|
|
|
266119
266747
|
};
|
|
266120
266748
|
`;
|
|
266121
266749
|
function ensureBundlerConfig() {
|
|
266122
|
-
const dir =
|
|
266750
|
+
const dir = join37(homedir5(), ".base44", "function-bundler");
|
|
266123
266751
|
mkdirSync2(dir, { recursive: true });
|
|
266124
|
-
const configPath =
|
|
266752
|
+
const configPath = join37(dir, "deno.json");
|
|
266125
266753
|
writeFileSync2(configPath, `${JSON.stringify({ nodeModulesDir: "auto" }, null, 2)}
|
|
266126
266754
|
`);
|
|
266127
266755
|
return configPath;
|
|
@@ -267564,7 +268192,7 @@ async function createEntityRoutes(db, logger, broadcast) {
|
|
|
267564
268192
|
// src/cli/dev/dev-server/routes/integrations.ts
|
|
267565
268193
|
var import_express5 = __toESM(require_express(), 1);
|
|
267566
268194
|
var import_multer = __toESM(require_multer(), 1);
|
|
267567
|
-
import { createHash as createHash4, randomUUID as
|
|
268195
|
+
import { createHash as createHash4, randomUUID as randomUUID7 } from "node:crypto";
|
|
267568
268196
|
import fs28 from "node:fs";
|
|
267569
268197
|
import path24 from "node:path";
|
|
267570
268198
|
function createFileToken(fileUri) {
|
|
@@ -267581,14 +268209,14 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
267581
268209
|
destination: mediaFilesDir,
|
|
267582
268210
|
filename: (_req, file, cb) => {
|
|
267583
268211
|
const ext = path24.extname(file.originalname);
|
|
267584
|
-
cb(null, `${
|
|
268212
|
+
cb(null, `${randomUUID7()}${ext}`);
|
|
267585
268213
|
}
|
|
267586
268214
|
});
|
|
267587
268215
|
const privateStorage = import_multer.default.diskStorage({
|
|
267588
268216
|
destination: privateFilesDir,
|
|
267589
268217
|
filename: (_req, file, cb) => {
|
|
267590
268218
|
const ext = path24.extname(file.originalname);
|
|
267591
|
-
cb(null, `${
|
|
268219
|
+
cb(null, `${randomUUID7()}${ext}`);
|
|
267592
268220
|
}
|
|
267593
268221
|
});
|
|
267594
268222
|
const upload = import_multer.default({ storage, limits: { fileSize: MAX_FILE_SIZE } });
|
|
@@ -267658,11 +268286,11 @@ import { relative as relative11 } from "node:path";
|
|
|
267658
268286
|
// ../../node_modules/chokidar/index.js
|
|
267659
268287
|
import { EventEmitter as EventEmitter3 } from "node:events";
|
|
267660
268288
|
import { stat as statcb, Stats } from "node:fs";
|
|
267661
|
-
import { readdir as readdir3, stat as
|
|
268289
|
+
import { readdir as readdir3, stat as stat8 } from "node:fs/promises";
|
|
267662
268290
|
import * as sp3 from "node:path";
|
|
267663
268291
|
|
|
267664
268292
|
// ../../node_modules/readdirp/index.js
|
|
267665
|
-
import { lstat as lstat2, readdir as readdir2, realpath, stat as
|
|
268293
|
+
import { lstat as lstat2, readdir as readdir2, realpath as realpath2, stat as stat6 } from "node:fs/promises";
|
|
267666
268294
|
import { join as pjoin, relative as prelative, resolve as presolve, sep as psep } from "node:path";
|
|
267667
268295
|
import { Readable as Readable6 } from "node:stream";
|
|
267668
268296
|
var EntryTypes = {
|
|
@@ -267744,7 +268372,7 @@ class ReaddirpStream extends Readable6 {
|
|
|
267744
268372
|
const { root, type } = opts;
|
|
267745
268373
|
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
267746
268374
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
267747
|
-
const statMethod = opts.lstat ? lstat2 :
|
|
268375
|
+
const statMethod = opts.lstat ? lstat2 : stat6;
|
|
267748
268376
|
if (wantBigintFsStats) {
|
|
267749
268377
|
this._stat = (path) => statMethod(path, { bigint: true });
|
|
267750
268378
|
} else {
|
|
@@ -267853,7 +268481,7 @@ class ReaddirpStream extends Readable6 {
|
|
|
267853
268481
|
if (stats && stats.isSymbolicLink()) {
|
|
267854
268482
|
const full = entry.fullPath;
|
|
267855
268483
|
try {
|
|
267856
|
-
const entryRealPath = await
|
|
268484
|
+
const entryRealPath = await realpath2(full);
|
|
267857
268485
|
const entryRealPathStats = await lstat2(entryRealPath);
|
|
267858
268486
|
if (entryRealPathStats.isFile()) {
|
|
267859
268487
|
return "file";
|
|
@@ -267897,7 +268525,7 @@ function readdirp(root, options = {}) {
|
|
|
267897
268525
|
|
|
267898
268526
|
// ../../node_modules/chokidar/handler.js
|
|
267899
268527
|
import { watch as fs_watch, unwatchFile, watchFile } from "node:fs";
|
|
267900
|
-
import { realpath as fsrealpath, lstat as lstat3, open as open2, stat as
|
|
268528
|
+
import { realpath as fsrealpath, lstat as lstat3, open as open2, stat as stat7 } from "node:fs/promises";
|
|
267901
268529
|
import { type as osType } from "node:os";
|
|
267902
268530
|
import * as sp2 from "node:path";
|
|
267903
268531
|
var STR_DATA = "data";
|
|
@@ -267923,7 +268551,7 @@ var EVENTS = {
|
|
|
267923
268551
|
};
|
|
267924
268552
|
var EV = EVENTS;
|
|
267925
268553
|
var THROTTLE_MODE_WATCH = "watch";
|
|
267926
|
-
var statMethods = { lstat: lstat3, stat:
|
|
268554
|
+
var statMethods = { lstat: lstat3, stat: stat7 };
|
|
267927
268555
|
var KEY_LISTENERS = "listeners";
|
|
267928
268556
|
var KEY_ERR = "errHandlers";
|
|
267929
268557
|
var KEY_RAW = "rawEmitters";
|
|
@@ -268394,7 +269022,7 @@ class NodeFsHandler {
|
|
|
268394
269022
|
return;
|
|
268395
269023
|
if (!newStats || newStats.mtimeMs === 0) {
|
|
268396
269024
|
try {
|
|
268397
|
-
const newStats = await
|
|
269025
|
+
const newStats = await stat7(file);
|
|
268398
269026
|
if (this.fsw.closed)
|
|
268399
269027
|
return;
|
|
268400
269028
|
const at = newStats.atimeMs;
|
|
@@ -269066,7 +269694,7 @@ class FSWatcher extends EventEmitter3 {
|
|
|
269066
269694
|
const fullPath = opts.cwd ? sp3.join(opts.cwd, path) : path;
|
|
269067
269695
|
let stats;
|
|
269068
269696
|
try {
|
|
269069
|
-
stats = await
|
|
269697
|
+
stats = await stat8(fullPath);
|
|
269070
269698
|
} catch (err) {}
|
|
269071
269699
|
if (!stats || this.closed)
|
|
269072
269700
|
return;
|
|
@@ -269450,8 +270078,8 @@ async function createDevServer(options) {
|
|
|
269450
270078
|
broadcastEntityEvent(io, appId, entityName, event);
|
|
269451
270079
|
};
|
|
269452
270080
|
const base44ConfigWatcher = new WatchBase44({
|
|
269453
|
-
functions:
|
|
269454
|
-
entities:
|
|
270081
|
+
functions: join40(dirname29(project.configPath), project.functionsDir),
|
|
270082
|
+
entities: join40(dirname29(project.configPath), project.entitiesDir)
|
|
269455
270083
|
}, devLogger);
|
|
269456
270084
|
base44ConfigWatcher.on("change", async (name) => {
|
|
269457
270085
|
try {
|
|
@@ -269654,7 +270282,7 @@ function readExecEnvTarget(env = process.env) {
|
|
|
269654
270282
|
// src/core/exec/run-script.ts
|
|
269655
270283
|
import { spawn as spawn4 } from "node:child_process";
|
|
269656
270284
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "node:fs";
|
|
269657
|
-
import { join as
|
|
270285
|
+
import { join as join41 } from "node:path";
|
|
269658
270286
|
var SDK_SPECIFIER = '"npm:@base44/sdk"';
|
|
269659
270287
|
function wrapperSource(sdkVersion) {
|
|
269660
270288
|
const source = readFileSync4(getExecWrapperPath(), "utf-8");
|
|
@@ -269690,7 +270318,7 @@ async function runScript(options) {
|
|
|
269690
270318
|
writeFileSync3(tempWrapper.path, wrapperSource(sdkVersion), "utf-8");
|
|
269691
270319
|
const configDir = await $dir({ unsafeCleanup: true });
|
|
269692
270320
|
cleanupFns.push(configDir.cleanup);
|
|
269693
|
-
const configPath =
|
|
270321
|
+
const configPath = join41(configDir.path, "deno.json");
|
|
269694
270322
|
writeFileSync3(configPath, JSON.stringify(DENO_CONFIG), "utf-8");
|
|
269695
270323
|
try {
|
|
269696
270324
|
const exitCode = await new Promise((resolvePromise) => {
|
|
@@ -269973,6 +270601,7 @@ function createProgram(context) {
|
|
|
269973
270601
|
program.addCommand(getExecCommand());
|
|
269974
270602
|
program.addCommand(getDevCommand());
|
|
269975
270603
|
program.addCommand(getLogsCommand());
|
|
270604
|
+
program.addCommand(getSessionsCommand());
|
|
269976
270605
|
return program;
|
|
269977
270606
|
}
|
|
269978
270607
|
|
|
@@ -269981,7 +270610,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
|
|
|
269981
270610
|
import { release, type } from "node:os";
|
|
269982
270611
|
|
|
269983
270612
|
// ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
269984
|
-
import { dirname as
|
|
270613
|
+
import { dirname as dirname30, posix, sep as sep2 } from "path";
|
|
269985
270614
|
function createModulerModifier() {
|
|
269986
270615
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
269987
270616
|
return async (frames) => {
|
|
@@ -269990,7 +270619,7 @@ function createModulerModifier() {
|
|
|
269990
270619
|
return frames;
|
|
269991
270620
|
};
|
|
269992
270621
|
}
|
|
269993
|
-
function createGetModuleFromFilename(basePath = process.argv[1] ?
|
|
270622
|
+
function createGetModuleFromFilename(basePath = process.argv[1] ? dirname30(process.argv[1]) : process.cwd(), isWindows = sep2 === "\\") {
|
|
269994
270623
|
const normalizedBase = isWindows ? normalizeWindowsPath2(basePath) : basePath;
|
|
269995
270624
|
return (filename) => {
|
|
269996
270625
|
if (!filename)
|
|
@@ -272025,8 +272654,8 @@ class ReduceableCache {
|
|
|
272025
272654
|
}
|
|
272026
272655
|
}
|
|
272027
272656
|
// ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
272028
|
-
import { createReadStream as
|
|
272029
|
-
import { createInterface as
|
|
272657
|
+
import { createReadStream as createReadStream4 } from "node:fs";
|
|
272658
|
+
import { createInterface as createInterface3 } from "node:readline";
|
|
272030
272659
|
var LRU_FILE_CONTENTS_CACHE = new ReduceableCache(25);
|
|
272031
272660
|
var LRU_FILE_CONTENTS_FS_READ_FAILED = new ReduceableCache(20);
|
|
272032
272661
|
var DEFAULT_LINES_OF_CONTEXT = 7;
|
|
@@ -272069,8 +272698,8 @@ async function addSourceContext(frames) {
|
|
|
272069
272698
|
}
|
|
272070
272699
|
function getContextLinesFromFile(path, ranges, output) {
|
|
272071
272700
|
return new Promise((resolve) => {
|
|
272072
|
-
const stream =
|
|
272073
|
-
const lineReaded =
|
|
272701
|
+
const stream = createReadStream4(path);
|
|
272702
|
+
const lineReaded = createInterface3({
|
|
272074
272703
|
input: stream
|
|
272075
272704
|
});
|
|
272076
272705
|
function destroyStreamAndResolve() {
|
|
@@ -273979,9 +274608,9 @@ function addCommandInfoToErrorReporter(program, errorReporter) {
|
|
|
273979
274608
|
});
|
|
273980
274609
|
}
|
|
273981
274610
|
// src/cli/index.ts
|
|
273982
|
-
var __dirname4 =
|
|
274611
|
+
var __dirname4 = dirname31(fileURLToPath7(import.meta.url));
|
|
273983
274612
|
async function runCLI(options) {
|
|
273984
|
-
ensureNpmAssets(
|
|
274613
|
+
ensureNpmAssets(join42(__dirname4, "../assets"));
|
|
273985
274614
|
const errorReporter = new ErrorReporter;
|
|
273986
274615
|
errorReporter.registerProcessErrorHandlers();
|
|
273987
274616
|
const jsonMode = process.argv.includes("--json");
|
|
@@ -274020,4 +274649,4 @@ export {
|
|
|
274020
274649
|
runCLI
|
|
274021
274650
|
};
|
|
274022
274651
|
|
|
274023
|
-
//# debugId=
|
|
274652
|
+
//# debugId=B7C73C57031F826A64756E2164756E21
|