vercel 28.10.1 → 28.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +356 -1698
- package/package.json +15 -15
package/dist/index.js
CHANGED
@@ -110340,7 +110340,7 @@ const parse = (input, options) => {
|
|
110340
110340
|
START_ANCHOR
|
110341
110341
|
} = PLATFORM_CHARS;
|
110342
110342
|
|
110343
|
-
const globstar =
|
110343
|
+
const globstar = opts => {
|
110344
110344
|
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
110345
110345
|
};
|
110346
110346
|
|
@@ -110390,12 +110390,13 @@ const parse = (input, options) => {
|
|
110390
110390
|
|
110391
110391
|
const eos = () => state.index === len - 1;
|
110392
110392
|
const peek = state.peek = (n = 1) => input[state.index + n];
|
110393
|
-
const advance = state.advance = () => input[++state.index];
|
110393
|
+
const advance = state.advance = () => input[++state.index] || '';
|
110394
110394
|
const remaining = () => input.slice(state.index + 1);
|
110395
110395
|
const consume = (value = '', num = 0) => {
|
110396
110396
|
state.consumed += value;
|
110397
110397
|
state.index += num;
|
110398
110398
|
};
|
110399
|
+
|
110399
110400
|
const append = token => {
|
110400
110401
|
state.output += token.output != null ? token.output : token.value;
|
110401
110402
|
consume(token.value);
|
@@ -110451,7 +110452,7 @@ const parse = (input, options) => {
|
|
110451
110452
|
}
|
110452
110453
|
}
|
110453
110454
|
|
110454
|
-
if (extglobs.length && tok.type !== 'paren'
|
110455
|
+
if (extglobs.length && tok.type !== 'paren') {
|
110455
110456
|
extglobs[extglobs.length - 1].inner += tok.value;
|
110456
110457
|
}
|
110457
110458
|
|
@@ -110483,6 +110484,7 @@ const parse = (input, options) => {
|
|
110483
110484
|
|
110484
110485
|
const extglobClose = token => {
|
110485
110486
|
let output = token.close + (opts.capture ? ')' : '');
|
110487
|
+
let rest;
|
110486
110488
|
|
110487
110489
|
if (token.type === 'negate') {
|
110488
110490
|
let extglobStar = star;
|
@@ -110495,7 +110497,11 @@ const parse = (input, options) => {
|
|
110495
110497
|
output = token.close = `)$))${extglobStar}`;
|
110496
110498
|
}
|
110497
110499
|
|
110498
|
-
if (token.
|
110500
|
+
if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
110501
|
+
output = token.close = `)${rest})${extglobStar})`;
|
110502
|
+
}
|
110503
|
+
|
110504
|
+
if (token.prev.type === 'bos') {
|
110499
110505
|
state.negatedExtglob = true;
|
110500
110506
|
}
|
110501
110507
|
}
|
@@ -110604,9 +110610,9 @@ const parse = (input, options) => {
|
|
110604
110610
|
}
|
110605
110611
|
|
110606
110612
|
if (opts.unescape === true) {
|
110607
|
-
value = advance()
|
110613
|
+
value = advance();
|
110608
110614
|
} else {
|
110609
|
-
value += advance()
|
110615
|
+
value += advance();
|
110610
110616
|
}
|
110611
110617
|
|
110612
110618
|
if (state.brackets === 0) {
|
@@ -111270,7 +111276,7 @@ parse.fastpaths = (input, options) => {
|
|
111270
111276
|
star = `(${star})`;
|
111271
111277
|
}
|
111272
111278
|
|
111273
|
-
const globstar =
|
111279
|
+
const globstar = opts => {
|
111274
111280
|
if (opts.noglobstar === true) return star;
|
111275
111281
|
return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
111276
111282
|
};
|
@@ -111565,68 +111571,71 @@ picomatch.parse = (pattern, options) => {
|
|
111565
111571
|
picomatch.scan = (input, options) => scan(input, options);
|
111566
111572
|
|
111567
111573
|
/**
|
111568
|
-
*
|
111574
|
+
* Compile a regular expression from the `state` object returned by the
|
111575
|
+
* [parse()](#parse) method.
|
111569
111576
|
*
|
111570
|
-
*
|
111571
|
-
* const picomatch = require('picomatch');
|
111572
|
-
* const state = picomatch.parse('*.js');
|
111573
|
-
* // picomatch.compileRe(state[, options]);
|
111574
|
-
*
|
111575
|
-
* console.log(picomatch.compileRe(state));
|
111576
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
111577
|
-
* ```
|
111578
|
-
* @param {String} `state` The object returned from the `.parse` method.
|
111577
|
+
* @param {Object} `state`
|
111579
111578
|
* @param {Object} `options`
|
111580
|
-
* @
|
111579
|
+
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
111580
|
+
* @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
|
111581
|
+
* @return {RegExp}
|
111581
111582
|
* @api public
|
111582
111583
|
*/
|
111583
111584
|
|
111584
|
-
picomatch.compileRe = (
|
111585
|
+
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
111585
111586
|
if (returnOutput === true) {
|
111586
|
-
return
|
111587
|
+
return state.output;
|
111587
111588
|
}
|
111588
111589
|
|
111589
111590
|
const opts = options || {};
|
111590
111591
|
const prepend = opts.contains ? '' : '^';
|
111591
111592
|
const append = opts.contains ? '' : '$';
|
111592
111593
|
|
111593
|
-
let source = `${prepend}(?:${
|
111594
|
-
if (
|
111594
|
+
let source = `${prepend}(?:${state.output})${append}`;
|
111595
|
+
if (state && state.negated === true) {
|
111595
111596
|
source = `^(?!${source}).*$`;
|
111596
111597
|
}
|
111597
111598
|
|
111598
111599
|
const regex = picomatch.toRegex(source, options);
|
111599
111600
|
if (returnState === true) {
|
111600
|
-
regex.state =
|
111601
|
+
regex.state = state;
|
111601
111602
|
}
|
111602
111603
|
|
111603
111604
|
return regex;
|
111604
111605
|
};
|
111605
111606
|
|
111606
|
-
|
111607
|
+
/**
|
111608
|
+
* Create a regular expression from a parsed glob pattern.
|
111609
|
+
*
|
111610
|
+
* ```js
|
111611
|
+
* const picomatch = require('picomatch');
|
111612
|
+
* const state = picomatch.parse('*.js');
|
111613
|
+
* // picomatch.compileRe(state[, options]);
|
111614
|
+
*
|
111615
|
+
* console.log(picomatch.compileRe(state));
|
111616
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
111617
|
+
* ```
|
111618
|
+
* @param {String} `state` The object returned from the `.parse` method.
|
111619
|
+
* @param {Object} `options`
|
111620
|
+
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
|
111621
|
+
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
|
111622
|
+
* @return {RegExp} Returns a regex created from the given pattern.
|
111623
|
+
* @api public
|
111624
|
+
*/
|
111625
|
+
|
111626
|
+
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
111607
111627
|
if (!input || typeof input !== 'string') {
|
111608
111628
|
throw new TypeError('Expected a non-empty string');
|
111609
111629
|
}
|
111610
111630
|
|
111611
|
-
const opts = options || {};
|
111612
111631
|
let parsed = { negated: false, fastpaths: true };
|
111613
|
-
let prefix = '';
|
111614
|
-
let output;
|
111615
|
-
|
111616
|
-
if (input.startsWith('./')) {
|
111617
|
-
input = input.slice(2);
|
111618
|
-
prefix = parsed.prefix = './';
|
111619
|
-
}
|
111620
111632
|
|
111621
|
-
if (
|
111622
|
-
output = parse.fastpaths(input, options);
|
111633
|
+
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
111634
|
+
parsed.output = parse.fastpaths(input, options);
|
111623
111635
|
}
|
111624
111636
|
|
111625
|
-
if (output
|
111637
|
+
if (!parsed.output) {
|
111626
111638
|
parsed = parse(input, options);
|
111627
|
-
parsed.prefix = prefix + (parsed.prefix || '');
|
111628
|
-
} else {
|
111629
|
-
parsed.output = output;
|
111630
111639
|
}
|
111631
111640
|
|
111632
111641
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
@@ -111713,7 +111722,8 @@ const depth = token => {
|
|
111713
111722
|
/**
|
111714
111723
|
* Quickly scans a glob pattern and returns an object with a handful of
|
111715
111724
|
* useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
|
111716
|
-
* `glob` (the actual pattern),
|
111725
|
+
* `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
|
111726
|
+
* with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
|
111717
111727
|
*
|
111718
111728
|
* ```js
|
111719
111729
|
* const pm = require('picomatch');
|
@@ -111747,6 +111757,7 @@ const scan = (input, options) => {
|
|
111747
111757
|
let braceEscaped = false;
|
111748
111758
|
let backslashes = false;
|
111749
111759
|
let negated = false;
|
111760
|
+
let negatedExtglob = false;
|
111750
111761
|
let finished = false;
|
111751
111762
|
let braces = 0;
|
111752
111763
|
let prev;
|
@@ -111858,6 +111869,9 @@ const scan = (input, options) => {
|
|
111858
111869
|
isGlob = token.isGlob = true;
|
111859
111870
|
isExtglob = token.isExtglob = true;
|
111860
111871
|
finished = true;
|
111872
|
+
if (code === CHAR_EXCLAMATION_MARK && index === start) {
|
111873
|
+
negatedExtglob = true;
|
111874
|
+
}
|
111861
111875
|
|
111862
111876
|
if (scanToEnd === true) {
|
111863
111877
|
while (eos() !== true && (code = advance())) {
|
@@ -111912,13 +111926,15 @@ const scan = (input, options) => {
|
|
111912
111926
|
isBracket = token.isBracket = true;
|
111913
111927
|
isGlob = token.isGlob = true;
|
111914
111928
|
finished = true;
|
111915
|
-
|
111916
|
-
if (scanToEnd === true) {
|
111917
|
-
continue;
|
111918
|
-
}
|
111919
111929
|
break;
|
111920
111930
|
}
|
111921
111931
|
}
|
111932
|
+
|
111933
|
+
if (scanToEnd === true) {
|
111934
|
+
continue;
|
111935
|
+
}
|
111936
|
+
|
111937
|
+
break;
|
111922
111938
|
}
|
111923
111939
|
|
111924
111940
|
if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
|
@@ -112009,7 +112025,8 @@ const scan = (input, options) => {
|
|
112009
112025
|
isGlob,
|
112010
112026
|
isExtglob,
|
112011
112027
|
isGlobstar,
|
112012
|
-
negated
|
112028
|
+
negated,
|
112029
|
+
negatedExtglob
|
112013
112030
|
};
|
112014
112031
|
|
112015
112032
|
if (opts.tokens === true) {
|
@@ -156745,7 +156762,7 @@ module.exports = v4;
|
|
156745
156762
|
|
156746
156763
|
|
156747
156764
|
var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$')
|
156748
|
-
var builtins = __webpack_require__(
|
156765
|
+
var builtins = __webpack_require__(67977)
|
156749
156766
|
var blacklist = [
|
156750
156767
|
'node_modules',
|
156751
156768
|
'favicon.ico'
|
@@ -191596,23 +191613,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191596
191613
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
191597
191614
|
};
|
191598
191615
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191599
|
-
exports.downloadFile = exports.
|
191616
|
+
exports.downloadFile = exports.isSymbolicLink = void 0;
|
191600
191617
|
const path_1 = __importDefault(__nested_webpack_require_846983__(5622));
|
191601
191618
|
const debug_1 = __importDefault(__nested_webpack_require_846983__(1868));
|
191602
191619
|
const file_fs_ref_1 = __importDefault(__nested_webpack_require_846983__(9331));
|
191603
191620
|
const fs_extra_1 = __nested_webpack_require_846983__(5392);
|
191604
191621
|
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_846983__(2560));
|
191605
|
-
const
|
191622
|
+
const S_IFMT = 61440; /* 0170000 type of file */
|
191623
|
+
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
191606
191624
|
function isSymbolicLink(mode) {
|
191607
|
-
|
191608
|
-
return STAT.isSymbolicLink();
|
191625
|
+
return (mode & S_IFMT) === S_IFLNK;
|
191609
191626
|
}
|
191610
191627
|
exports.isSymbolicLink = isSymbolicLink;
|
191611
|
-
function isDirectory(mode) {
|
191612
|
-
STAT.mode = mode;
|
191613
|
-
return STAT.isDirectory();
|
191614
|
-
}
|
191615
|
-
exports.isDirectory = isDirectory;
|
191616
191628
|
async function prepareSymlinkTarget(file, fsPath) {
|
191617
191629
|
const mkdirPromise = fs_extra_1.mkdirp(path_1.default.dirname(fsPath));
|
191618
191630
|
if (file.type === 'FileFsRef') {
|
@@ -191631,10 +191643,6 @@ async function prepareSymlinkTarget(file, fsPath) {
|
|
191631
191643
|
}
|
191632
191644
|
async function downloadFile(file, fsPath) {
|
191633
191645
|
const { mode } = file;
|
191634
|
-
if (isDirectory(mode)) {
|
191635
|
-
await fs_extra_1.mkdirp(fsPath);
|
191636
|
-
return file_fs_ref_1.default.fromFsPath({ mode, fsPath });
|
191637
|
-
}
|
191638
191646
|
// If the source is a symlink, try to create it instead of copying the file.
|
191639
191647
|
// Note: creating symlinks on Windows requires admin priviliges or symlinks
|
191640
191648
|
// enabled in the group policy. We may want to improve the error message.
|
@@ -191701,14 +191709,14 @@ exports.default = download;
|
|
191701
191709
|
/***/ }),
|
191702
191710
|
|
191703
191711
|
/***/ 3838:
|
191704
|
-
/***/ ((__unused_webpack_module, exports,
|
191712
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_851418__) => {
|
191705
191713
|
|
191706
191714
|
"use strict";
|
191707
191715
|
|
191708
191716
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191709
|
-
const path_1 =
|
191710
|
-
const os_1 =
|
191711
|
-
const fs_extra_1 =
|
191717
|
+
const path_1 = __nested_webpack_require_851418__(5622);
|
191718
|
+
const os_1 = __nested_webpack_require_851418__(2087);
|
191719
|
+
const fs_extra_1 = __nested_webpack_require_851418__(5392);
|
191712
191720
|
async function getWritableDirectory() {
|
191713
191721
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
191714
191722
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -191721,7 +191729,7 @@ exports.default = getWritableDirectory;
|
|
191721
191729
|
/***/ }),
|
191722
191730
|
|
191723
191731
|
/***/ 4240:
|
191724
|
-
/***/ (function(__unused_webpack_module, exports,
|
191732
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_851998__) {
|
191725
191733
|
|
191726
191734
|
"use strict";
|
191727
191735
|
|
@@ -191729,16 +191737,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191729
191737
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
191730
191738
|
};
|
191731
191739
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191732
|
-
const path_1 = __importDefault(
|
191733
|
-
const assert_1 = __importDefault(
|
191734
|
-
const glob_1 = __importDefault(
|
191735
|
-
const util_1 =
|
191736
|
-
const fs_extra_1 =
|
191737
|
-
const normalize_path_1 =
|
191738
|
-
const file_fs_ref_1 = __importDefault(
|
191740
|
+
const path_1 = __importDefault(__nested_webpack_require_851998__(5622));
|
191741
|
+
const assert_1 = __importDefault(__nested_webpack_require_851998__(2357));
|
191742
|
+
const glob_1 = __importDefault(__nested_webpack_require_851998__(1104));
|
191743
|
+
const util_1 = __nested_webpack_require_851998__(1669);
|
191744
|
+
const fs_extra_1 = __nested_webpack_require_851998__(5392);
|
191745
|
+
const normalize_path_1 = __nested_webpack_require_851998__(6261);
|
191746
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_851998__(9331));
|
191739
191747
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
191740
191748
|
async function glob(pattern, opts, mountpoint) {
|
191741
|
-
|
191749
|
+
let options;
|
191750
|
+
if (typeof opts === 'string') {
|
191751
|
+
options = { cwd: opts };
|
191752
|
+
}
|
191753
|
+
else {
|
191754
|
+
options = opts;
|
191755
|
+
}
|
191742
191756
|
if (!options.cwd) {
|
191743
191757
|
throw new Error('Second argument (basePath) must be specified for names of resulting files');
|
191744
191758
|
}
|
@@ -191747,32 +191761,20 @@ async function glob(pattern, opts, mountpoint) {
|
|
191747
191761
|
}
|
191748
191762
|
const results = {};
|
191749
191763
|
const statCache = {};
|
191750
|
-
|
191751
|
-
|
191752
|
-
|
191753
|
-
|
191754
|
-
|
191755
|
-
stat: true,
|
191756
|
-
dot: true,
|
191757
|
-
});
|
191758
|
-
const dirs = new Set();
|
191759
|
-
const dirsWithEntries = new Set();
|
191764
|
+
options.symlinks = {};
|
191765
|
+
options.statCache = statCache;
|
191766
|
+
options.stat = true;
|
191767
|
+
options.dot = true;
|
191768
|
+
const files = await vanillaGlob(pattern, options);
|
191760
191769
|
for (const relativePath of files) {
|
191761
191770
|
const fsPath = normalize_path_1.normalizePath(path_1.default.join(options.cwd, relativePath));
|
191762
191771
|
let stat = statCache[fsPath];
|
191763
191772
|
assert_1.default(stat, `statCache does not contain value for ${relativePath} (resolved to ${fsPath})`);
|
191764
|
-
const isSymlink = symlinks[fsPath];
|
191765
|
-
if (isSymlink || stat.isFile()
|
191773
|
+
const isSymlink = options.symlinks[fsPath];
|
191774
|
+
if (isSymlink || stat.isFile()) {
|
191766
191775
|
if (isSymlink) {
|
191767
191776
|
stat = await fs_extra_1.lstat(fsPath);
|
191768
191777
|
}
|
191769
|
-
// Some bookkeeping to track which directories already have entries within
|
191770
|
-
const dirname = path_1.default.dirname(relativePath);
|
191771
|
-
dirsWithEntries.add(dirname);
|
191772
|
-
if (stat.isDirectory()) {
|
191773
|
-
dirs.add(relativePath);
|
191774
|
-
continue;
|
191775
|
-
}
|
191776
191778
|
let finalPath = relativePath;
|
191777
191779
|
if (mountpoint) {
|
191778
191780
|
finalPath = path_1.default.join(mountpoint, finalPath);
|
@@ -191780,18 +191782,6 @@ async function glob(pattern, opts, mountpoint) {
|
|
191780
191782
|
results[finalPath] = new file_fs_ref_1.default({ mode: stat.mode, fsPath });
|
191781
191783
|
}
|
191782
191784
|
}
|
191783
|
-
// Add empty directory entries
|
191784
|
-
for (const relativePath of dirs) {
|
191785
|
-
if (dirsWithEntries.has(relativePath))
|
191786
|
-
continue;
|
191787
|
-
let finalPath = relativePath;
|
191788
|
-
if (mountpoint) {
|
191789
|
-
finalPath = path_1.default.join(mountpoint, finalPath);
|
191790
|
-
}
|
191791
|
-
const fsPath = normalize_path_1.normalizePath(path_1.default.join(options.cwd, relativePath));
|
191792
|
-
const stat = statCache[fsPath];
|
191793
|
-
results[finalPath] = new file_fs_ref_1.default({ mode: stat.mode, fsPath });
|
191794
|
-
}
|
191795
191785
|
return results;
|
191796
191786
|
}
|
191797
191787
|
exports.default = glob;
|
@@ -191800,7 +191790,7 @@ exports.default = glob;
|
|
191800
191790
|
/***/ }),
|
191801
191791
|
|
191802
191792
|
/***/ 7903:
|
191803
|
-
/***/ (function(__unused_webpack_module, exports,
|
191793
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_854219__) {
|
191804
191794
|
|
191805
191795
|
"use strict";
|
191806
191796
|
|
@@ -191809,9 +191799,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191809
191799
|
};
|
191810
191800
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191811
191801
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
191812
|
-
const semver_1 =
|
191813
|
-
const errors_1 =
|
191814
|
-
const debug_1 = __importDefault(
|
191802
|
+
const semver_1 = __nested_webpack_require_854219__(2879);
|
191803
|
+
const errors_1 = __nested_webpack_require_854219__(3983);
|
191804
|
+
const debug_1 = __importDefault(__nested_webpack_require_854219__(1868));
|
191815
191805
|
function getOptions() {
|
191816
191806
|
const options = [
|
191817
191807
|
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
|
@@ -191914,7 +191904,7 @@ exports.normalizePath = normalizePath;
|
|
191914
191904
|
/***/ }),
|
191915
191905
|
|
191916
191906
|
/***/ 7792:
|
191917
|
-
/***/ (function(__unused_webpack_module, exports,
|
191907
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_858271__) {
|
191918
191908
|
|
191919
191909
|
"use strict";
|
191920
191910
|
|
@@ -191923,9 +191913,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191923
191913
|
};
|
191924
191914
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191925
191915
|
exports.readConfigFile = void 0;
|
191926
|
-
const js_yaml_1 = __importDefault(
|
191927
|
-
const toml_1 = __importDefault(
|
191928
|
-
const fs_extra_1 =
|
191916
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_858271__(6540));
|
191917
|
+
const toml_1 = __importDefault(__nested_webpack_require_858271__(9434));
|
191918
|
+
const fs_extra_1 = __nested_webpack_require_858271__(5392);
|
191929
191919
|
async function readFileOrNull(file) {
|
191930
191920
|
try {
|
191931
191921
|
const data = await fs_extra_1.readFile(file);
|
@@ -191980,7 +191970,7 @@ exports.default = rename;
|
|
191980
191970
|
/***/ }),
|
191981
191971
|
|
191982
191972
|
/***/ 1442:
|
191983
|
-
/***/ (function(__unused_webpack_module, exports,
|
191973
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_860064__) {
|
191984
191974
|
|
191985
191975
|
"use strict";
|
191986
191976
|
|
@@ -191989,18 +191979,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191989
191979
|
};
|
191990
191980
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191991
191981
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
191992
|
-
const assert_1 = __importDefault(
|
191993
|
-
const fs_extra_1 = __importDefault(
|
191994
|
-
const path_1 = __importDefault(
|
191995
|
-
const async_sema_1 = __importDefault(
|
191996
|
-
const cross_spawn_1 = __importDefault(
|
191997
|
-
const semver_1 =
|
191998
|
-
const util_1 =
|
191999
|
-
const debug_1 = __importDefault(
|
192000
|
-
const errors_1 =
|
192001
|
-
const node_version_1 =
|
192002
|
-
const read_config_file_1 =
|
192003
|
-
const clone_env_1 =
|
191982
|
+
const assert_1 = __importDefault(__nested_webpack_require_860064__(2357));
|
191983
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_860064__(5392));
|
191984
|
+
const path_1 = __importDefault(__nested_webpack_require_860064__(5622));
|
191985
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_860064__(5758));
|
191986
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_860064__(7618));
|
191987
|
+
const semver_1 = __nested_webpack_require_860064__(2879);
|
191988
|
+
const util_1 = __nested_webpack_require_860064__(1669);
|
191989
|
+
const debug_1 = __importDefault(__nested_webpack_require_860064__(1868));
|
191990
|
+
const errors_1 = __nested_webpack_require_860064__(3983);
|
191991
|
+
const node_version_1 = __nested_webpack_require_860064__(7903);
|
191992
|
+
const read_config_file_1 = __nested_webpack_require_860064__(7792);
|
191993
|
+
const clone_env_1 = __nested_webpack_require_860064__(6548);
|
192004
191994
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
192005
191995
|
const runNpmInstallSema = new async_sema_1.default(1);
|
192006
191996
|
function spawnAsync(command, args, opts = {}) {
|
@@ -192471,7 +192461,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
192471
192461
|
/***/ }),
|
192472
192462
|
|
192473
192463
|
/***/ 2560:
|
192474
|
-
/***/ (function(__unused_webpack_module, exports,
|
192464
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_880398__) {
|
192475
192465
|
|
192476
192466
|
"use strict";
|
192477
192467
|
|
@@ -192479,7 +192469,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192479
192469
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
192480
192470
|
};
|
192481
192471
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192482
|
-
const end_of_stream_1 = __importDefault(
|
192472
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_880398__(687));
|
192483
192473
|
function streamToBuffer(stream) {
|
192484
192474
|
return new Promise((resolve, reject) => {
|
192485
192475
|
const buffers = [];
|
@@ -192508,7 +192498,7 @@ exports.default = streamToBuffer;
|
|
192508
192498
|
/***/ }),
|
192509
192499
|
|
192510
192500
|
/***/ 1148:
|
192511
|
-
/***/ (function(__unused_webpack_module, exports,
|
192501
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_881466__) {
|
192512
192502
|
|
192513
192503
|
"use strict";
|
192514
192504
|
|
@@ -192516,9 +192506,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192516
192506
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
192517
192507
|
};
|
192518
192508
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192519
|
-
const path_1 = __importDefault(
|
192520
|
-
const fs_extra_1 = __importDefault(
|
192521
|
-
const ignore_1 = __importDefault(
|
192509
|
+
const path_1 = __importDefault(__nested_webpack_require_881466__(5622));
|
192510
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_881466__(5392));
|
192511
|
+
const ignore_1 = __importDefault(__nested_webpack_require_881466__(3556));
|
192522
192512
|
function isCodedError(error) {
|
192523
192513
|
return (error !== null &&
|
192524
192514
|
error !== undefined &&
|
@@ -192575,13 +192565,13 @@ exports.default = default_1;
|
|
192575
192565
|
/***/ }),
|
192576
192566
|
|
192577
192567
|
/***/ 4678:
|
192578
|
-
/***/ ((__unused_webpack_module, exports,
|
192568
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_883840__) => {
|
192579
192569
|
|
192580
192570
|
"use strict";
|
192581
192571
|
|
192582
192572
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192583
192573
|
exports.getPlatformEnv = void 0;
|
192584
|
-
const errors_1 =
|
192574
|
+
const errors_1 = __nested_webpack_require_883840__(3983);
|
192585
192575
|
/**
|
192586
192576
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
192587
192577
|
* Throws an error if *both* env vars are defined.
|
@@ -192645,7 +192635,7 @@ exports.getPrefixedEnvVars = getPrefixedEnvVars;
|
|
192645
192635
|
/***/ }),
|
192646
192636
|
|
192647
192637
|
/***/ 2855:
|
192648
|
-
/***/ (function(__unused_webpack_module, exports,
|
192638
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_886099__) {
|
192649
192639
|
|
192650
192640
|
"use strict";
|
192651
192641
|
|
@@ -192676,31 +192666,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192676
192666
|
};
|
192677
192667
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192678
192668
|
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.cloneEnv = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPrefixedEnvVars = exports.getPlatformEnv = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.downloadFile = exports.download = exports.Prerender = exports.createLambda = exports.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
192679
|
-
const file_blob_1 = __importDefault(
|
192669
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_886099__(2397));
|
192680
192670
|
exports.FileBlob = file_blob_1.default;
|
192681
|
-
const file_fs_ref_1 = __importDefault(
|
192671
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_886099__(9331));
|
192682
192672
|
exports.FileFsRef = file_fs_ref_1.default;
|
192683
|
-
const file_ref_1 = __importDefault(
|
192673
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_886099__(5187));
|
192684
192674
|
exports.FileRef = file_ref_1.default;
|
192685
|
-
const lambda_1 =
|
192675
|
+
const lambda_1 = __nested_webpack_require_886099__(6721);
|
192686
192676
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
192687
192677
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
192688
192678
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
192689
|
-
const nodejs_lambda_1 =
|
192679
|
+
const nodejs_lambda_1 = __nested_webpack_require_886099__(7049);
|
192690
192680
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
192691
|
-
const prerender_1 =
|
192681
|
+
const prerender_1 = __nested_webpack_require_886099__(2850);
|
192692
192682
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
192693
|
-
const download_1 = __importStar(
|
192683
|
+
const download_1 = __importStar(__nested_webpack_require_886099__(1611));
|
192694
192684
|
exports.download = download_1.default;
|
192695
192685
|
Object.defineProperty(exports, "downloadFile", ({ enumerable: true, get: function () { return download_1.downloadFile; } }));
|
192696
192686
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
192697
|
-
const get_writable_directory_1 = __importDefault(
|
192687
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_886099__(3838));
|
192698
192688
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
192699
|
-
const glob_1 = __importDefault(
|
192689
|
+
const glob_1 = __importDefault(__nested_webpack_require_886099__(4240));
|
192700
192690
|
exports.glob = glob_1.default;
|
192701
|
-
const rename_1 = __importDefault(
|
192691
|
+
const rename_1 = __importDefault(__nested_webpack_require_886099__(6718));
|
192702
192692
|
exports.rename = rename_1.default;
|
192703
|
-
const run_user_scripts_1 =
|
192693
|
+
const run_user_scripts_1 = __nested_webpack_require_886099__(1442);
|
192704
192694
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
192705
192695
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
192706
192696
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -192719,37 +192709,37 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
192719
192709
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
192720
192710
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
192721
192711
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
192722
|
-
const node_version_1 =
|
192712
|
+
const node_version_1 = __nested_webpack_require_886099__(7903);
|
192723
192713
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
192724
192714
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
192725
|
-
const stream_to_buffer_1 = __importDefault(
|
192715
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_886099__(2560));
|
192726
192716
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
192727
|
-
const debug_1 = __importDefault(
|
192717
|
+
const debug_1 = __importDefault(__nested_webpack_require_886099__(1868));
|
192728
192718
|
exports.debug = debug_1.default;
|
192729
|
-
const get_ignore_filter_1 = __importDefault(
|
192719
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_886099__(1148));
|
192730
192720
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
192731
|
-
const get_platform_env_1 =
|
192721
|
+
const get_platform_env_1 = __nested_webpack_require_886099__(4678);
|
192732
192722
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
192733
|
-
const get_prefixed_env_vars_1 =
|
192723
|
+
const get_prefixed_env_vars_1 = __nested_webpack_require_886099__(6838);
|
192734
192724
|
Object.defineProperty(exports, "getPrefixedEnvVars", ({ enumerable: true, get: function () { return get_prefixed_env_vars_1.getPrefixedEnvVars; } }));
|
192735
|
-
const clone_env_1 =
|
192725
|
+
const clone_env_1 = __nested_webpack_require_886099__(6548);
|
192736
192726
|
Object.defineProperty(exports, "cloneEnv", ({ enumerable: true, get: function () { return clone_env_1.cloneEnv; } }));
|
192737
|
-
var edge_function_1 =
|
192727
|
+
var edge_function_1 = __nested_webpack_require_886099__(8038);
|
192738
192728
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
192739
|
-
var read_config_file_1 =
|
192729
|
+
var read_config_file_1 = __nested_webpack_require_886099__(7792);
|
192740
192730
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
192741
|
-
var normalize_path_1 =
|
192731
|
+
var normalize_path_1 = __nested_webpack_require_886099__(6261);
|
192742
192732
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
192743
|
-
__exportStar(
|
192744
|
-
__exportStar(
|
192745
|
-
__exportStar(
|
192746
|
-
__exportStar(
|
192733
|
+
__exportStar(__nested_webpack_require_886099__(2564), exports);
|
192734
|
+
__exportStar(__nested_webpack_require_886099__(2416), exports);
|
192735
|
+
__exportStar(__nested_webpack_require_886099__(5748), exports);
|
192736
|
+
__exportStar(__nested_webpack_require_886099__(3983), exports);
|
192747
192737
|
|
192748
192738
|
|
192749
192739
|
/***/ }),
|
192750
192740
|
|
192751
192741
|
/***/ 6721:
|
192752
|
-
/***/ (function(__unused_webpack_module, exports,
|
192742
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_894917__) {
|
192753
192743
|
|
192754
192744
|
"use strict";
|
192755
192745
|
|
@@ -192758,13 +192748,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192758
192748
|
};
|
192759
192749
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192760
192750
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
192761
|
-
const assert_1 = __importDefault(
|
192762
|
-
const async_sema_1 = __importDefault(
|
192763
|
-
const yazl_1 =
|
192764
|
-
const minimatch_1 = __importDefault(
|
192765
|
-
const fs_extra_1 =
|
192766
|
-
const download_1 =
|
192767
|
-
const stream_to_buffer_1 = __importDefault(
|
192751
|
+
const assert_1 = __importDefault(__nested_webpack_require_894917__(2357));
|
192752
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_894917__(5758));
|
192753
|
+
const yazl_1 = __nested_webpack_require_894917__(1223);
|
192754
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_894917__(9566));
|
192755
|
+
const fs_extra_1 = __nested_webpack_require_894917__(5392);
|
192756
|
+
const download_1 = __nested_webpack_require_894917__(1611);
|
192757
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_894917__(2560));
|
192768
192758
|
class Lambda {
|
192769
192759
|
constructor(opts) {
|
192770
192760
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, experimentalResponseStreaming, operationType, } = opts;
|
@@ -192892,13 +192882,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
192892
192882
|
/***/ }),
|
192893
192883
|
|
192894
192884
|
/***/ 7049:
|
192895
|
-
/***/ ((__unused_webpack_module, exports,
|
192885
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_900766__) => {
|
192896
192886
|
|
192897
192887
|
"use strict";
|
192898
192888
|
|
192899
192889
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192900
192890
|
exports.NodejsLambda = void 0;
|
192901
|
-
const lambda_1 =
|
192891
|
+
const lambda_1 = __nested_webpack_require_900766__(6721);
|
192902
192892
|
class NodejsLambda extends lambda_1.Lambda {
|
192903
192893
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
192904
192894
|
super(opts);
|
@@ -193053,13 +193043,13 @@ exports.buildsSchema = {
|
|
193053
193043
|
/***/ }),
|
193054
193044
|
|
193055
193045
|
/***/ 2564:
|
193056
|
-
/***/ ((__unused_webpack_module, exports,
|
193046
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_906098__) => {
|
193057
193047
|
|
193058
193048
|
"use strict";
|
193059
193049
|
|
193060
193050
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
193061
193051
|
exports.shouldServe = void 0;
|
193062
|
-
const path_1 =
|
193052
|
+
const path_1 = __nested_webpack_require_906098__(5622);
|
193063
193053
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
193064
193054
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
193065
193055
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -193304,7 +193294,7 @@ module.exports = __webpack_require__(78761);
|
|
193304
193294
|
/******/ var __webpack_module_cache__ = {};
|
193305
193295
|
/******/
|
193306
193296
|
/******/ // The require function
|
193307
|
-
/******/ function
|
193297
|
+
/******/ function __nested_webpack_require_1283463__(moduleId) {
|
193308
193298
|
/******/ // Check if module is in cache
|
193309
193299
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
193310
193300
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -193319,7 +193309,7 @@ module.exports = __webpack_require__(78761);
|
|
193319
193309
|
/******/ // Execute the module function
|
193320
193310
|
/******/ var threw = true;
|
193321
193311
|
/******/ try {
|
193322
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
193312
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1283463__);
|
193323
193313
|
/******/ threw = false;
|
193324
193314
|
/******/ } finally {
|
193325
193315
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -193332,11 +193322,11 @@ module.exports = __webpack_require__(78761);
|
|
193332
193322
|
/************************************************************************/
|
193333
193323
|
/******/ /* webpack/runtime/compat */
|
193334
193324
|
/******/
|
193335
|
-
/******/
|
193325
|
+
/******/ __nested_webpack_require_1283463__.ab = __dirname + "/";/************************************************************************/
|
193336
193326
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
193337
193327
|
/******/ // startup
|
193338
193328
|
/******/ // Load entry module and return exports
|
193339
|
-
/******/ return
|
193329
|
+
/******/ return __nested_webpack_require_1283463__(2855);
|
193340
193330
|
/******/ })()
|
193341
193331
|
;
|
193342
193332
|
|
@@ -202280,1437 +202270,6 @@ isStream.transform = stream =>
|
|
202280
202270
|
module.exports = isStream;
|
202281
202271
|
|
202282
202272
|
|
202283
|
-
/***/ }),
|
202284
|
-
|
202285
|
-
/***/ 72606:
|
202286
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
202287
|
-
|
202288
|
-
const parse = __webpack_require__(34967)
|
202289
|
-
const stringify = __webpack_require__(49785)
|
202290
|
-
|
202291
|
-
const JSON5 = {
|
202292
|
-
parse,
|
202293
|
-
stringify,
|
202294
|
-
}
|
202295
|
-
|
202296
|
-
module.exports = JSON5
|
202297
|
-
|
202298
|
-
|
202299
|
-
/***/ }),
|
202300
|
-
|
202301
|
-
/***/ 34967:
|
202302
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
202303
|
-
|
202304
|
-
const util = __webpack_require__(3825)
|
202305
|
-
|
202306
|
-
let source
|
202307
|
-
let parseState
|
202308
|
-
let stack
|
202309
|
-
let pos
|
202310
|
-
let line
|
202311
|
-
let column
|
202312
|
-
let token
|
202313
|
-
let key
|
202314
|
-
let root
|
202315
|
-
|
202316
|
-
module.exports = function parse (text, reviver) {
|
202317
|
-
source = String(text)
|
202318
|
-
parseState = 'start'
|
202319
|
-
stack = []
|
202320
|
-
pos = 0
|
202321
|
-
line = 1
|
202322
|
-
column = 0
|
202323
|
-
token = undefined
|
202324
|
-
key = undefined
|
202325
|
-
root = undefined
|
202326
|
-
|
202327
|
-
do {
|
202328
|
-
token = lex()
|
202329
|
-
|
202330
|
-
// This code is unreachable.
|
202331
|
-
// if (!parseStates[parseState]) {
|
202332
|
-
// throw invalidParseState()
|
202333
|
-
// }
|
202334
|
-
|
202335
|
-
parseStates[parseState]()
|
202336
|
-
} while (token.type !== 'eof')
|
202337
|
-
|
202338
|
-
if (typeof reviver === 'function') {
|
202339
|
-
return internalize({'': root}, '', reviver)
|
202340
|
-
}
|
202341
|
-
|
202342
|
-
return root
|
202343
|
-
}
|
202344
|
-
|
202345
|
-
function internalize (holder, name, reviver) {
|
202346
|
-
const value = holder[name]
|
202347
|
-
if (value != null && typeof value === 'object') {
|
202348
|
-
for (const key in value) {
|
202349
|
-
const replacement = internalize(value, key, reviver)
|
202350
|
-
if (replacement === undefined) {
|
202351
|
-
delete value[key]
|
202352
|
-
} else {
|
202353
|
-
value[key] = replacement
|
202354
|
-
}
|
202355
|
-
}
|
202356
|
-
}
|
202357
|
-
|
202358
|
-
return reviver.call(holder, name, value)
|
202359
|
-
}
|
202360
|
-
|
202361
|
-
let lexState
|
202362
|
-
let buffer
|
202363
|
-
let doubleQuote
|
202364
|
-
let sign
|
202365
|
-
let c
|
202366
|
-
|
202367
|
-
function lex () {
|
202368
|
-
lexState = 'default'
|
202369
|
-
buffer = ''
|
202370
|
-
doubleQuote = false
|
202371
|
-
sign = 1
|
202372
|
-
|
202373
|
-
for (;;) {
|
202374
|
-
c = peek()
|
202375
|
-
|
202376
|
-
// This code is unreachable.
|
202377
|
-
// if (!lexStates[lexState]) {
|
202378
|
-
// throw invalidLexState(lexState)
|
202379
|
-
// }
|
202380
|
-
|
202381
|
-
const token = lexStates[lexState]()
|
202382
|
-
if (token) {
|
202383
|
-
return token
|
202384
|
-
}
|
202385
|
-
}
|
202386
|
-
}
|
202387
|
-
|
202388
|
-
function peek () {
|
202389
|
-
if (source[pos]) {
|
202390
|
-
return String.fromCodePoint(source.codePointAt(pos))
|
202391
|
-
}
|
202392
|
-
}
|
202393
|
-
|
202394
|
-
function read () {
|
202395
|
-
const c = peek()
|
202396
|
-
|
202397
|
-
if (c === '\n') {
|
202398
|
-
line++
|
202399
|
-
column = 0
|
202400
|
-
} else if (c) {
|
202401
|
-
column += c.length
|
202402
|
-
} else {
|
202403
|
-
column++
|
202404
|
-
}
|
202405
|
-
|
202406
|
-
if (c) {
|
202407
|
-
pos += c.length
|
202408
|
-
}
|
202409
|
-
|
202410
|
-
return c
|
202411
|
-
}
|
202412
|
-
|
202413
|
-
const lexStates = {
|
202414
|
-
default () {
|
202415
|
-
switch (c) {
|
202416
|
-
case '\t':
|
202417
|
-
case '\v':
|
202418
|
-
case '\f':
|
202419
|
-
case ' ':
|
202420
|
-
case '\u00A0':
|
202421
|
-
case '\uFEFF':
|
202422
|
-
case '\n':
|
202423
|
-
case '\r':
|
202424
|
-
case '\u2028':
|
202425
|
-
case '\u2029':
|
202426
|
-
read()
|
202427
|
-
return
|
202428
|
-
|
202429
|
-
case '/':
|
202430
|
-
read()
|
202431
|
-
lexState = 'comment'
|
202432
|
-
return
|
202433
|
-
|
202434
|
-
case undefined:
|
202435
|
-
read()
|
202436
|
-
return newToken('eof')
|
202437
|
-
}
|
202438
|
-
|
202439
|
-
if (util.isSpaceSeparator(c)) {
|
202440
|
-
read()
|
202441
|
-
return
|
202442
|
-
}
|
202443
|
-
|
202444
|
-
// This code is unreachable.
|
202445
|
-
// if (!lexStates[parseState]) {
|
202446
|
-
// throw invalidLexState(parseState)
|
202447
|
-
// }
|
202448
|
-
|
202449
|
-
return lexStates[parseState]()
|
202450
|
-
},
|
202451
|
-
|
202452
|
-
comment () {
|
202453
|
-
switch (c) {
|
202454
|
-
case '*':
|
202455
|
-
read()
|
202456
|
-
lexState = 'multiLineComment'
|
202457
|
-
return
|
202458
|
-
|
202459
|
-
case '/':
|
202460
|
-
read()
|
202461
|
-
lexState = 'singleLineComment'
|
202462
|
-
return
|
202463
|
-
}
|
202464
|
-
|
202465
|
-
throw invalidChar(read())
|
202466
|
-
},
|
202467
|
-
|
202468
|
-
multiLineComment () {
|
202469
|
-
switch (c) {
|
202470
|
-
case '*':
|
202471
|
-
read()
|
202472
|
-
lexState = 'multiLineCommentAsterisk'
|
202473
|
-
return
|
202474
|
-
|
202475
|
-
case undefined:
|
202476
|
-
throw invalidChar(read())
|
202477
|
-
}
|
202478
|
-
|
202479
|
-
read()
|
202480
|
-
},
|
202481
|
-
|
202482
|
-
multiLineCommentAsterisk () {
|
202483
|
-
switch (c) {
|
202484
|
-
case '*':
|
202485
|
-
read()
|
202486
|
-
return
|
202487
|
-
|
202488
|
-
case '/':
|
202489
|
-
read()
|
202490
|
-
lexState = 'default'
|
202491
|
-
return
|
202492
|
-
|
202493
|
-
case undefined:
|
202494
|
-
throw invalidChar(read())
|
202495
|
-
}
|
202496
|
-
|
202497
|
-
read()
|
202498
|
-
lexState = 'multiLineComment'
|
202499
|
-
},
|
202500
|
-
|
202501
|
-
singleLineComment () {
|
202502
|
-
switch (c) {
|
202503
|
-
case '\n':
|
202504
|
-
case '\r':
|
202505
|
-
case '\u2028':
|
202506
|
-
case '\u2029':
|
202507
|
-
read()
|
202508
|
-
lexState = 'default'
|
202509
|
-
return
|
202510
|
-
|
202511
|
-
case undefined:
|
202512
|
-
read()
|
202513
|
-
return newToken('eof')
|
202514
|
-
}
|
202515
|
-
|
202516
|
-
read()
|
202517
|
-
},
|
202518
|
-
|
202519
|
-
value () {
|
202520
|
-
switch (c) {
|
202521
|
-
case '{':
|
202522
|
-
case '[':
|
202523
|
-
return newToken('punctuator', read())
|
202524
|
-
|
202525
|
-
case 'n':
|
202526
|
-
read()
|
202527
|
-
literal('ull')
|
202528
|
-
return newToken('null', null)
|
202529
|
-
|
202530
|
-
case 't':
|
202531
|
-
read()
|
202532
|
-
literal('rue')
|
202533
|
-
return newToken('boolean', true)
|
202534
|
-
|
202535
|
-
case 'f':
|
202536
|
-
read()
|
202537
|
-
literal('alse')
|
202538
|
-
return newToken('boolean', false)
|
202539
|
-
|
202540
|
-
case '-':
|
202541
|
-
case '+':
|
202542
|
-
if (read() === '-') {
|
202543
|
-
sign = -1
|
202544
|
-
}
|
202545
|
-
|
202546
|
-
lexState = 'sign'
|
202547
|
-
return
|
202548
|
-
|
202549
|
-
case '.':
|
202550
|
-
buffer = read()
|
202551
|
-
lexState = 'decimalPointLeading'
|
202552
|
-
return
|
202553
|
-
|
202554
|
-
case '0':
|
202555
|
-
buffer = read()
|
202556
|
-
lexState = 'zero'
|
202557
|
-
return
|
202558
|
-
|
202559
|
-
case '1':
|
202560
|
-
case '2':
|
202561
|
-
case '3':
|
202562
|
-
case '4':
|
202563
|
-
case '5':
|
202564
|
-
case '6':
|
202565
|
-
case '7':
|
202566
|
-
case '8':
|
202567
|
-
case '9':
|
202568
|
-
buffer = read()
|
202569
|
-
lexState = 'decimalInteger'
|
202570
|
-
return
|
202571
|
-
|
202572
|
-
case 'I':
|
202573
|
-
read()
|
202574
|
-
literal('nfinity')
|
202575
|
-
return newToken('numeric', Infinity)
|
202576
|
-
|
202577
|
-
case 'N':
|
202578
|
-
read()
|
202579
|
-
literal('aN')
|
202580
|
-
return newToken('numeric', NaN)
|
202581
|
-
|
202582
|
-
case '"':
|
202583
|
-
case "'":
|
202584
|
-
doubleQuote = (read() === '"')
|
202585
|
-
buffer = ''
|
202586
|
-
lexState = 'string'
|
202587
|
-
return
|
202588
|
-
}
|
202589
|
-
|
202590
|
-
throw invalidChar(read())
|
202591
|
-
},
|
202592
|
-
|
202593
|
-
identifierNameStartEscape () {
|
202594
|
-
if (c !== 'u') {
|
202595
|
-
throw invalidChar(read())
|
202596
|
-
}
|
202597
|
-
|
202598
|
-
read()
|
202599
|
-
const u = unicodeEscape()
|
202600
|
-
switch (u) {
|
202601
|
-
case '$':
|
202602
|
-
case '_':
|
202603
|
-
break
|
202604
|
-
|
202605
|
-
default:
|
202606
|
-
if (!util.isIdStartChar(u)) {
|
202607
|
-
throw invalidIdentifier()
|
202608
|
-
}
|
202609
|
-
|
202610
|
-
break
|
202611
|
-
}
|
202612
|
-
|
202613
|
-
buffer += u
|
202614
|
-
lexState = 'identifierName'
|
202615
|
-
},
|
202616
|
-
|
202617
|
-
identifierName () {
|
202618
|
-
switch (c) {
|
202619
|
-
case '$':
|
202620
|
-
case '_':
|
202621
|
-
case '\u200C':
|
202622
|
-
case '\u200D':
|
202623
|
-
buffer += read()
|
202624
|
-
return
|
202625
|
-
|
202626
|
-
case '\\':
|
202627
|
-
read()
|
202628
|
-
lexState = 'identifierNameEscape'
|
202629
|
-
return
|
202630
|
-
}
|
202631
|
-
|
202632
|
-
if (util.isIdContinueChar(c)) {
|
202633
|
-
buffer += read()
|
202634
|
-
return
|
202635
|
-
}
|
202636
|
-
|
202637
|
-
return newToken('identifier', buffer)
|
202638
|
-
},
|
202639
|
-
|
202640
|
-
identifierNameEscape () {
|
202641
|
-
if (c !== 'u') {
|
202642
|
-
throw invalidChar(read())
|
202643
|
-
}
|
202644
|
-
|
202645
|
-
read()
|
202646
|
-
const u = unicodeEscape()
|
202647
|
-
switch (u) {
|
202648
|
-
case '$':
|
202649
|
-
case '_':
|
202650
|
-
case '\u200C':
|
202651
|
-
case '\u200D':
|
202652
|
-
break
|
202653
|
-
|
202654
|
-
default:
|
202655
|
-
if (!util.isIdContinueChar(u)) {
|
202656
|
-
throw invalidIdentifier()
|
202657
|
-
}
|
202658
|
-
|
202659
|
-
break
|
202660
|
-
}
|
202661
|
-
|
202662
|
-
buffer += u
|
202663
|
-
lexState = 'identifierName'
|
202664
|
-
},
|
202665
|
-
|
202666
|
-
sign () {
|
202667
|
-
switch (c) {
|
202668
|
-
case '.':
|
202669
|
-
buffer = read()
|
202670
|
-
lexState = 'decimalPointLeading'
|
202671
|
-
return
|
202672
|
-
|
202673
|
-
case '0':
|
202674
|
-
buffer = read()
|
202675
|
-
lexState = 'zero'
|
202676
|
-
return
|
202677
|
-
|
202678
|
-
case '1':
|
202679
|
-
case '2':
|
202680
|
-
case '3':
|
202681
|
-
case '4':
|
202682
|
-
case '5':
|
202683
|
-
case '6':
|
202684
|
-
case '7':
|
202685
|
-
case '8':
|
202686
|
-
case '9':
|
202687
|
-
buffer = read()
|
202688
|
-
lexState = 'decimalInteger'
|
202689
|
-
return
|
202690
|
-
|
202691
|
-
case 'I':
|
202692
|
-
read()
|
202693
|
-
literal('nfinity')
|
202694
|
-
return newToken('numeric', sign * Infinity)
|
202695
|
-
|
202696
|
-
case 'N':
|
202697
|
-
read()
|
202698
|
-
literal('aN')
|
202699
|
-
return newToken('numeric', NaN)
|
202700
|
-
}
|
202701
|
-
|
202702
|
-
throw invalidChar(read())
|
202703
|
-
},
|
202704
|
-
|
202705
|
-
zero () {
|
202706
|
-
switch (c) {
|
202707
|
-
case '.':
|
202708
|
-
buffer += read()
|
202709
|
-
lexState = 'decimalPoint'
|
202710
|
-
return
|
202711
|
-
|
202712
|
-
case 'e':
|
202713
|
-
case 'E':
|
202714
|
-
buffer += read()
|
202715
|
-
lexState = 'decimalExponent'
|
202716
|
-
return
|
202717
|
-
|
202718
|
-
case 'x':
|
202719
|
-
case 'X':
|
202720
|
-
buffer += read()
|
202721
|
-
lexState = 'hexadecimal'
|
202722
|
-
return
|
202723
|
-
}
|
202724
|
-
|
202725
|
-
return newToken('numeric', sign * 0)
|
202726
|
-
},
|
202727
|
-
|
202728
|
-
decimalInteger () {
|
202729
|
-
switch (c) {
|
202730
|
-
case '.':
|
202731
|
-
buffer += read()
|
202732
|
-
lexState = 'decimalPoint'
|
202733
|
-
return
|
202734
|
-
|
202735
|
-
case 'e':
|
202736
|
-
case 'E':
|
202737
|
-
buffer += read()
|
202738
|
-
lexState = 'decimalExponent'
|
202739
|
-
return
|
202740
|
-
}
|
202741
|
-
|
202742
|
-
if (util.isDigit(c)) {
|
202743
|
-
buffer += read()
|
202744
|
-
return
|
202745
|
-
}
|
202746
|
-
|
202747
|
-
return newToken('numeric', sign * Number(buffer))
|
202748
|
-
},
|
202749
|
-
|
202750
|
-
decimalPointLeading () {
|
202751
|
-
if (util.isDigit(c)) {
|
202752
|
-
buffer += read()
|
202753
|
-
lexState = 'decimalFraction'
|
202754
|
-
return
|
202755
|
-
}
|
202756
|
-
|
202757
|
-
throw invalidChar(read())
|
202758
|
-
},
|
202759
|
-
|
202760
|
-
decimalPoint () {
|
202761
|
-
switch (c) {
|
202762
|
-
case 'e':
|
202763
|
-
case 'E':
|
202764
|
-
buffer += read()
|
202765
|
-
lexState = 'decimalExponent'
|
202766
|
-
return
|
202767
|
-
}
|
202768
|
-
|
202769
|
-
if (util.isDigit(c)) {
|
202770
|
-
buffer += read()
|
202771
|
-
lexState = 'decimalFraction'
|
202772
|
-
return
|
202773
|
-
}
|
202774
|
-
|
202775
|
-
return newToken('numeric', sign * Number(buffer))
|
202776
|
-
},
|
202777
|
-
|
202778
|
-
decimalFraction () {
|
202779
|
-
switch (c) {
|
202780
|
-
case 'e':
|
202781
|
-
case 'E':
|
202782
|
-
buffer += read()
|
202783
|
-
lexState = 'decimalExponent'
|
202784
|
-
return
|
202785
|
-
}
|
202786
|
-
|
202787
|
-
if (util.isDigit(c)) {
|
202788
|
-
buffer += read()
|
202789
|
-
return
|
202790
|
-
}
|
202791
|
-
|
202792
|
-
return newToken('numeric', sign * Number(buffer))
|
202793
|
-
},
|
202794
|
-
|
202795
|
-
decimalExponent () {
|
202796
|
-
switch (c) {
|
202797
|
-
case '+':
|
202798
|
-
case '-':
|
202799
|
-
buffer += read()
|
202800
|
-
lexState = 'decimalExponentSign'
|
202801
|
-
return
|
202802
|
-
}
|
202803
|
-
|
202804
|
-
if (util.isDigit(c)) {
|
202805
|
-
buffer += read()
|
202806
|
-
lexState = 'decimalExponentInteger'
|
202807
|
-
return
|
202808
|
-
}
|
202809
|
-
|
202810
|
-
throw invalidChar(read())
|
202811
|
-
},
|
202812
|
-
|
202813
|
-
decimalExponentSign () {
|
202814
|
-
if (util.isDigit(c)) {
|
202815
|
-
buffer += read()
|
202816
|
-
lexState = 'decimalExponentInteger'
|
202817
|
-
return
|
202818
|
-
}
|
202819
|
-
|
202820
|
-
throw invalidChar(read())
|
202821
|
-
},
|
202822
|
-
|
202823
|
-
decimalExponentInteger () {
|
202824
|
-
if (util.isDigit(c)) {
|
202825
|
-
buffer += read()
|
202826
|
-
return
|
202827
|
-
}
|
202828
|
-
|
202829
|
-
return newToken('numeric', sign * Number(buffer))
|
202830
|
-
},
|
202831
|
-
|
202832
|
-
hexadecimal () {
|
202833
|
-
if (util.isHexDigit(c)) {
|
202834
|
-
buffer += read()
|
202835
|
-
lexState = 'hexadecimalInteger'
|
202836
|
-
return
|
202837
|
-
}
|
202838
|
-
|
202839
|
-
throw invalidChar(read())
|
202840
|
-
},
|
202841
|
-
|
202842
|
-
hexadecimalInteger () {
|
202843
|
-
if (util.isHexDigit(c)) {
|
202844
|
-
buffer += read()
|
202845
|
-
return
|
202846
|
-
}
|
202847
|
-
|
202848
|
-
return newToken('numeric', sign * Number(buffer))
|
202849
|
-
},
|
202850
|
-
|
202851
|
-
string () {
|
202852
|
-
switch (c) {
|
202853
|
-
case '\\':
|
202854
|
-
read()
|
202855
|
-
buffer += escape()
|
202856
|
-
return
|
202857
|
-
|
202858
|
-
case '"':
|
202859
|
-
if (doubleQuote) {
|
202860
|
-
read()
|
202861
|
-
return newToken('string', buffer)
|
202862
|
-
}
|
202863
|
-
|
202864
|
-
buffer += read()
|
202865
|
-
return
|
202866
|
-
|
202867
|
-
case "'":
|
202868
|
-
if (!doubleQuote) {
|
202869
|
-
read()
|
202870
|
-
return newToken('string', buffer)
|
202871
|
-
}
|
202872
|
-
|
202873
|
-
buffer += read()
|
202874
|
-
return
|
202875
|
-
|
202876
|
-
case '\n':
|
202877
|
-
case '\r':
|
202878
|
-
throw invalidChar(read())
|
202879
|
-
|
202880
|
-
case '\u2028':
|
202881
|
-
case '\u2029':
|
202882
|
-
separatorChar(c)
|
202883
|
-
break
|
202884
|
-
|
202885
|
-
case undefined:
|
202886
|
-
throw invalidChar(read())
|
202887
|
-
}
|
202888
|
-
|
202889
|
-
buffer += read()
|
202890
|
-
},
|
202891
|
-
|
202892
|
-
start () {
|
202893
|
-
switch (c) {
|
202894
|
-
case '{':
|
202895
|
-
case '[':
|
202896
|
-
return newToken('punctuator', read())
|
202897
|
-
|
202898
|
-
// This code is unreachable since the default lexState handles eof.
|
202899
|
-
// case undefined:
|
202900
|
-
// return newToken('eof')
|
202901
|
-
}
|
202902
|
-
|
202903
|
-
lexState = 'value'
|
202904
|
-
},
|
202905
|
-
|
202906
|
-
beforePropertyName () {
|
202907
|
-
switch (c) {
|
202908
|
-
case '$':
|
202909
|
-
case '_':
|
202910
|
-
buffer = read()
|
202911
|
-
lexState = 'identifierName'
|
202912
|
-
return
|
202913
|
-
|
202914
|
-
case '\\':
|
202915
|
-
read()
|
202916
|
-
lexState = 'identifierNameStartEscape'
|
202917
|
-
return
|
202918
|
-
|
202919
|
-
case '}':
|
202920
|
-
return newToken('punctuator', read())
|
202921
|
-
|
202922
|
-
case '"':
|
202923
|
-
case "'":
|
202924
|
-
doubleQuote = (read() === '"')
|
202925
|
-
lexState = 'string'
|
202926
|
-
return
|
202927
|
-
}
|
202928
|
-
|
202929
|
-
if (util.isIdStartChar(c)) {
|
202930
|
-
buffer += read()
|
202931
|
-
lexState = 'identifierName'
|
202932
|
-
return
|
202933
|
-
}
|
202934
|
-
|
202935
|
-
throw invalidChar(read())
|
202936
|
-
},
|
202937
|
-
|
202938
|
-
afterPropertyName () {
|
202939
|
-
if (c === ':') {
|
202940
|
-
return newToken('punctuator', read())
|
202941
|
-
}
|
202942
|
-
|
202943
|
-
throw invalidChar(read())
|
202944
|
-
},
|
202945
|
-
|
202946
|
-
beforePropertyValue () {
|
202947
|
-
lexState = 'value'
|
202948
|
-
},
|
202949
|
-
|
202950
|
-
afterPropertyValue () {
|
202951
|
-
switch (c) {
|
202952
|
-
case ',':
|
202953
|
-
case '}':
|
202954
|
-
return newToken('punctuator', read())
|
202955
|
-
}
|
202956
|
-
|
202957
|
-
throw invalidChar(read())
|
202958
|
-
},
|
202959
|
-
|
202960
|
-
beforeArrayValue () {
|
202961
|
-
if (c === ']') {
|
202962
|
-
return newToken('punctuator', read())
|
202963
|
-
}
|
202964
|
-
|
202965
|
-
lexState = 'value'
|
202966
|
-
},
|
202967
|
-
|
202968
|
-
afterArrayValue () {
|
202969
|
-
switch (c) {
|
202970
|
-
case ',':
|
202971
|
-
case ']':
|
202972
|
-
return newToken('punctuator', read())
|
202973
|
-
}
|
202974
|
-
|
202975
|
-
throw invalidChar(read())
|
202976
|
-
},
|
202977
|
-
|
202978
|
-
end () {
|
202979
|
-
// This code is unreachable since it's handled by the default lexState.
|
202980
|
-
// if (c === undefined) {
|
202981
|
-
// read()
|
202982
|
-
// return newToken('eof')
|
202983
|
-
// }
|
202984
|
-
|
202985
|
-
throw invalidChar(read())
|
202986
|
-
},
|
202987
|
-
}
|
202988
|
-
|
202989
|
-
function newToken (type, value) {
|
202990
|
-
return {
|
202991
|
-
type,
|
202992
|
-
value,
|
202993
|
-
line,
|
202994
|
-
column,
|
202995
|
-
}
|
202996
|
-
}
|
202997
|
-
|
202998
|
-
function literal (s) {
|
202999
|
-
for (const c of s) {
|
203000
|
-
const p = peek()
|
203001
|
-
|
203002
|
-
if (p !== c) {
|
203003
|
-
throw invalidChar(read())
|
203004
|
-
}
|
203005
|
-
|
203006
|
-
read()
|
203007
|
-
}
|
203008
|
-
}
|
203009
|
-
|
203010
|
-
function escape () {
|
203011
|
-
const c = peek()
|
203012
|
-
switch (c) {
|
203013
|
-
case 'b':
|
203014
|
-
read()
|
203015
|
-
return '\b'
|
203016
|
-
|
203017
|
-
case 'f':
|
203018
|
-
read()
|
203019
|
-
return '\f'
|
203020
|
-
|
203021
|
-
case 'n':
|
203022
|
-
read()
|
203023
|
-
return '\n'
|
203024
|
-
|
203025
|
-
case 'r':
|
203026
|
-
read()
|
203027
|
-
return '\r'
|
203028
|
-
|
203029
|
-
case 't':
|
203030
|
-
read()
|
203031
|
-
return '\t'
|
203032
|
-
|
203033
|
-
case 'v':
|
203034
|
-
read()
|
203035
|
-
return '\v'
|
203036
|
-
|
203037
|
-
case '0':
|
203038
|
-
read()
|
203039
|
-
if (util.isDigit(peek())) {
|
203040
|
-
throw invalidChar(read())
|
203041
|
-
}
|
203042
|
-
|
203043
|
-
return '\0'
|
203044
|
-
|
203045
|
-
case 'x':
|
203046
|
-
read()
|
203047
|
-
return hexEscape()
|
203048
|
-
|
203049
|
-
case 'u':
|
203050
|
-
read()
|
203051
|
-
return unicodeEscape()
|
203052
|
-
|
203053
|
-
case '\n':
|
203054
|
-
case '\u2028':
|
203055
|
-
case '\u2029':
|
203056
|
-
read()
|
203057
|
-
return ''
|
203058
|
-
|
203059
|
-
case '\r':
|
203060
|
-
read()
|
203061
|
-
if (peek() === '\n') {
|
203062
|
-
read()
|
203063
|
-
}
|
203064
|
-
|
203065
|
-
return ''
|
203066
|
-
|
203067
|
-
case '1':
|
203068
|
-
case '2':
|
203069
|
-
case '3':
|
203070
|
-
case '4':
|
203071
|
-
case '5':
|
203072
|
-
case '6':
|
203073
|
-
case '7':
|
203074
|
-
case '8':
|
203075
|
-
case '9':
|
203076
|
-
throw invalidChar(read())
|
203077
|
-
|
203078
|
-
case undefined:
|
203079
|
-
throw invalidChar(read())
|
203080
|
-
}
|
203081
|
-
|
203082
|
-
return read()
|
203083
|
-
}
|
203084
|
-
|
203085
|
-
function hexEscape () {
|
203086
|
-
let buffer = ''
|
203087
|
-
let c = peek()
|
203088
|
-
|
203089
|
-
if (!util.isHexDigit(c)) {
|
203090
|
-
throw invalidChar(read())
|
203091
|
-
}
|
203092
|
-
|
203093
|
-
buffer += read()
|
203094
|
-
|
203095
|
-
c = peek()
|
203096
|
-
if (!util.isHexDigit(c)) {
|
203097
|
-
throw invalidChar(read())
|
203098
|
-
}
|
203099
|
-
|
203100
|
-
buffer += read()
|
203101
|
-
|
203102
|
-
return String.fromCodePoint(parseInt(buffer, 16))
|
203103
|
-
}
|
203104
|
-
|
203105
|
-
function unicodeEscape () {
|
203106
|
-
let buffer = ''
|
203107
|
-
let count = 4
|
203108
|
-
|
203109
|
-
while (count-- > 0) {
|
203110
|
-
const c = peek()
|
203111
|
-
if (!util.isHexDigit(c)) {
|
203112
|
-
throw invalidChar(read())
|
203113
|
-
}
|
203114
|
-
|
203115
|
-
buffer += read()
|
203116
|
-
}
|
203117
|
-
|
203118
|
-
return String.fromCodePoint(parseInt(buffer, 16))
|
203119
|
-
}
|
203120
|
-
|
203121
|
-
const parseStates = {
|
203122
|
-
start () {
|
203123
|
-
if (token.type === 'eof') {
|
203124
|
-
throw invalidEOF()
|
203125
|
-
}
|
203126
|
-
|
203127
|
-
push()
|
203128
|
-
},
|
203129
|
-
|
203130
|
-
beforePropertyName () {
|
203131
|
-
switch (token.type) {
|
203132
|
-
case 'identifier':
|
203133
|
-
case 'string':
|
203134
|
-
key = token.value
|
203135
|
-
parseState = 'afterPropertyName'
|
203136
|
-
return
|
203137
|
-
|
203138
|
-
case 'punctuator':
|
203139
|
-
// This code is unreachable since it's handled by the lexState.
|
203140
|
-
// if (token.value !== '}') {
|
203141
|
-
// throw invalidToken()
|
203142
|
-
// }
|
203143
|
-
|
203144
|
-
pop()
|
203145
|
-
return
|
203146
|
-
|
203147
|
-
case 'eof':
|
203148
|
-
throw invalidEOF()
|
203149
|
-
}
|
203150
|
-
|
203151
|
-
// This code is unreachable since it's handled by the lexState.
|
203152
|
-
// throw invalidToken()
|
203153
|
-
},
|
203154
|
-
|
203155
|
-
afterPropertyName () {
|
203156
|
-
// This code is unreachable since it's handled by the lexState.
|
203157
|
-
// if (token.type !== 'punctuator' || token.value !== ':') {
|
203158
|
-
// throw invalidToken()
|
203159
|
-
// }
|
203160
|
-
|
203161
|
-
if (token.type === 'eof') {
|
203162
|
-
throw invalidEOF()
|
203163
|
-
}
|
203164
|
-
|
203165
|
-
parseState = 'beforePropertyValue'
|
203166
|
-
},
|
203167
|
-
|
203168
|
-
beforePropertyValue () {
|
203169
|
-
if (token.type === 'eof') {
|
203170
|
-
throw invalidEOF()
|
203171
|
-
}
|
203172
|
-
|
203173
|
-
push()
|
203174
|
-
},
|
203175
|
-
|
203176
|
-
beforeArrayValue () {
|
203177
|
-
if (token.type === 'eof') {
|
203178
|
-
throw invalidEOF()
|
203179
|
-
}
|
203180
|
-
|
203181
|
-
if (token.type === 'punctuator' && token.value === ']') {
|
203182
|
-
pop()
|
203183
|
-
return
|
203184
|
-
}
|
203185
|
-
|
203186
|
-
push()
|
203187
|
-
},
|
203188
|
-
|
203189
|
-
afterPropertyValue () {
|
203190
|
-
// This code is unreachable since it's handled by the lexState.
|
203191
|
-
// if (token.type !== 'punctuator') {
|
203192
|
-
// throw invalidToken()
|
203193
|
-
// }
|
203194
|
-
|
203195
|
-
if (token.type === 'eof') {
|
203196
|
-
throw invalidEOF()
|
203197
|
-
}
|
203198
|
-
|
203199
|
-
switch (token.value) {
|
203200
|
-
case ',':
|
203201
|
-
parseState = 'beforePropertyName'
|
203202
|
-
return
|
203203
|
-
|
203204
|
-
case '}':
|
203205
|
-
pop()
|
203206
|
-
}
|
203207
|
-
|
203208
|
-
// This code is unreachable since it's handled by the lexState.
|
203209
|
-
// throw invalidToken()
|
203210
|
-
},
|
203211
|
-
|
203212
|
-
afterArrayValue () {
|
203213
|
-
// This code is unreachable since it's handled by the lexState.
|
203214
|
-
// if (token.type !== 'punctuator') {
|
203215
|
-
// throw invalidToken()
|
203216
|
-
// }
|
203217
|
-
|
203218
|
-
if (token.type === 'eof') {
|
203219
|
-
throw invalidEOF()
|
203220
|
-
}
|
203221
|
-
|
203222
|
-
switch (token.value) {
|
203223
|
-
case ',':
|
203224
|
-
parseState = 'beforeArrayValue'
|
203225
|
-
return
|
203226
|
-
|
203227
|
-
case ']':
|
203228
|
-
pop()
|
203229
|
-
}
|
203230
|
-
|
203231
|
-
// This code is unreachable since it's handled by the lexState.
|
203232
|
-
// throw invalidToken()
|
203233
|
-
},
|
203234
|
-
|
203235
|
-
end () {
|
203236
|
-
// This code is unreachable since it's handled by the lexState.
|
203237
|
-
// if (token.type !== 'eof') {
|
203238
|
-
// throw invalidToken()
|
203239
|
-
// }
|
203240
|
-
},
|
203241
|
-
}
|
203242
|
-
|
203243
|
-
function push () {
|
203244
|
-
let value
|
203245
|
-
|
203246
|
-
switch (token.type) {
|
203247
|
-
case 'punctuator':
|
203248
|
-
switch (token.value) {
|
203249
|
-
case '{':
|
203250
|
-
value = {}
|
203251
|
-
break
|
203252
|
-
|
203253
|
-
case '[':
|
203254
|
-
value = []
|
203255
|
-
break
|
203256
|
-
}
|
203257
|
-
|
203258
|
-
break
|
203259
|
-
|
203260
|
-
case 'null':
|
203261
|
-
case 'boolean':
|
203262
|
-
case 'numeric':
|
203263
|
-
case 'string':
|
203264
|
-
value = token.value
|
203265
|
-
break
|
203266
|
-
|
203267
|
-
// This code is unreachable.
|
203268
|
-
// default:
|
203269
|
-
// throw invalidToken()
|
203270
|
-
}
|
203271
|
-
|
203272
|
-
if (root === undefined) {
|
203273
|
-
root = value
|
203274
|
-
} else {
|
203275
|
-
const parent = stack[stack.length - 1]
|
203276
|
-
if (Array.isArray(parent)) {
|
203277
|
-
parent.push(value)
|
203278
|
-
} else {
|
203279
|
-
parent[key] = value
|
203280
|
-
}
|
203281
|
-
}
|
203282
|
-
|
203283
|
-
if (value !== null && typeof value === 'object') {
|
203284
|
-
stack.push(value)
|
203285
|
-
|
203286
|
-
if (Array.isArray(value)) {
|
203287
|
-
parseState = 'beforeArrayValue'
|
203288
|
-
} else {
|
203289
|
-
parseState = 'beforePropertyName'
|
203290
|
-
}
|
203291
|
-
} else {
|
203292
|
-
const current = stack[stack.length - 1]
|
203293
|
-
if (current == null) {
|
203294
|
-
parseState = 'end'
|
203295
|
-
} else if (Array.isArray(current)) {
|
203296
|
-
parseState = 'afterArrayValue'
|
203297
|
-
} else {
|
203298
|
-
parseState = 'afterPropertyValue'
|
203299
|
-
}
|
203300
|
-
}
|
203301
|
-
}
|
203302
|
-
|
203303
|
-
function pop () {
|
203304
|
-
stack.pop()
|
203305
|
-
|
203306
|
-
const current = stack[stack.length - 1]
|
203307
|
-
if (current == null) {
|
203308
|
-
parseState = 'end'
|
203309
|
-
} else if (Array.isArray(current)) {
|
203310
|
-
parseState = 'afterArrayValue'
|
203311
|
-
} else {
|
203312
|
-
parseState = 'afterPropertyValue'
|
203313
|
-
}
|
203314
|
-
}
|
203315
|
-
|
203316
|
-
// This code is unreachable.
|
203317
|
-
// function invalidParseState () {
|
203318
|
-
// return new Error(`JSON5: invalid parse state '${parseState}'`)
|
203319
|
-
// }
|
203320
|
-
|
203321
|
-
// This code is unreachable.
|
203322
|
-
// function invalidLexState (state) {
|
203323
|
-
// return new Error(`JSON5: invalid lex state '${state}'`)
|
203324
|
-
// }
|
203325
|
-
|
203326
|
-
function invalidChar (c) {
|
203327
|
-
if (c === undefined) {
|
203328
|
-
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203329
|
-
}
|
203330
|
-
|
203331
|
-
return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
|
203332
|
-
}
|
203333
|
-
|
203334
|
-
function invalidEOF () {
|
203335
|
-
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203336
|
-
}
|
203337
|
-
|
203338
|
-
// This code is unreachable.
|
203339
|
-
// function invalidToken () {
|
203340
|
-
// if (token.type === 'eof') {
|
203341
|
-
// return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203342
|
-
// }
|
203343
|
-
|
203344
|
-
// const c = String.fromCodePoint(token.value.codePointAt(0))
|
203345
|
-
// return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
|
203346
|
-
// }
|
203347
|
-
|
203348
|
-
function invalidIdentifier () {
|
203349
|
-
column -= 5
|
203350
|
-
return syntaxError(`JSON5: invalid identifier character at ${line}:${column}`)
|
203351
|
-
}
|
203352
|
-
|
203353
|
-
function separatorChar (c) {
|
203354
|
-
console.warn(`JSON5: '${formatChar(c)}' in strings is not valid ECMAScript; consider escaping`)
|
203355
|
-
}
|
203356
|
-
|
203357
|
-
function formatChar (c) {
|
203358
|
-
const replacements = {
|
203359
|
-
"'": "\\'",
|
203360
|
-
'"': '\\"',
|
203361
|
-
'\\': '\\\\',
|
203362
|
-
'\b': '\\b',
|
203363
|
-
'\f': '\\f',
|
203364
|
-
'\n': '\\n',
|
203365
|
-
'\r': '\\r',
|
203366
|
-
'\t': '\\t',
|
203367
|
-
'\v': '\\v',
|
203368
|
-
'\0': '\\0',
|
203369
|
-
'\u2028': '\\u2028',
|
203370
|
-
'\u2029': '\\u2029',
|
203371
|
-
}
|
203372
|
-
|
203373
|
-
if (replacements[c]) {
|
203374
|
-
return replacements[c]
|
203375
|
-
}
|
203376
|
-
|
203377
|
-
if (c < ' ') {
|
203378
|
-
const hexString = c.charCodeAt(0).toString(16)
|
203379
|
-
return '\\x' + ('00' + hexString).substring(hexString.length)
|
203380
|
-
}
|
203381
|
-
|
203382
|
-
return c
|
203383
|
-
}
|
203384
|
-
|
203385
|
-
function syntaxError (message) {
|
203386
|
-
const err = new SyntaxError(message)
|
203387
|
-
err.lineNumber = line
|
203388
|
-
err.columnNumber = column
|
203389
|
-
return err
|
203390
|
-
}
|
203391
|
-
|
203392
|
-
|
203393
|
-
/***/ }),
|
203394
|
-
|
203395
|
-
/***/ 49785:
|
203396
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
203397
|
-
|
203398
|
-
const util = __webpack_require__(3825)
|
203399
|
-
|
203400
|
-
module.exports = function stringify (value, replacer, space) {
|
203401
|
-
const stack = []
|
203402
|
-
let indent = ''
|
203403
|
-
let propertyList
|
203404
|
-
let replacerFunc
|
203405
|
-
let gap = ''
|
203406
|
-
let quote
|
203407
|
-
|
203408
|
-
if (
|
203409
|
-
replacer != null &&
|
203410
|
-
typeof replacer === 'object' &&
|
203411
|
-
!Array.isArray(replacer)
|
203412
|
-
) {
|
203413
|
-
space = replacer.space
|
203414
|
-
quote = replacer.quote
|
203415
|
-
replacer = replacer.replacer
|
203416
|
-
}
|
203417
|
-
|
203418
|
-
if (typeof replacer === 'function') {
|
203419
|
-
replacerFunc = replacer
|
203420
|
-
} else if (Array.isArray(replacer)) {
|
203421
|
-
propertyList = []
|
203422
|
-
for (const v of replacer) {
|
203423
|
-
let item
|
203424
|
-
|
203425
|
-
if (typeof v === 'string') {
|
203426
|
-
item = v
|
203427
|
-
} else if (
|
203428
|
-
typeof v === 'number' ||
|
203429
|
-
v instanceof String ||
|
203430
|
-
v instanceof Number
|
203431
|
-
) {
|
203432
|
-
item = String(v)
|
203433
|
-
}
|
203434
|
-
|
203435
|
-
if (item !== undefined && propertyList.indexOf(item) < 0) {
|
203436
|
-
propertyList.push(item)
|
203437
|
-
}
|
203438
|
-
}
|
203439
|
-
}
|
203440
|
-
|
203441
|
-
if (space instanceof Number) {
|
203442
|
-
space = Number(space)
|
203443
|
-
} else if (space instanceof String) {
|
203444
|
-
space = String(space)
|
203445
|
-
}
|
203446
|
-
|
203447
|
-
if (typeof space === 'number') {
|
203448
|
-
if (space > 0) {
|
203449
|
-
space = Math.min(10, Math.floor(space))
|
203450
|
-
gap = ' '.substr(0, space)
|
203451
|
-
}
|
203452
|
-
} else if (typeof space === 'string') {
|
203453
|
-
gap = space.substr(0, 10)
|
203454
|
-
}
|
203455
|
-
|
203456
|
-
return serializeProperty('', {'': value})
|
203457
|
-
|
203458
|
-
function serializeProperty (key, holder) {
|
203459
|
-
let value = holder[key]
|
203460
|
-
if (value != null) {
|
203461
|
-
if (typeof value.toJSON5 === 'function') {
|
203462
|
-
value = value.toJSON5(key)
|
203463
|
-
} else if (typeof value.toJSON === 'function') {
|
203464
|
-
value = value.toJSON(key)
|
203465
|
-
}
|
203466
|
-
}
|
203467
|
-
|
203468
|
-
if (replacerFunc) {
|
203469
|
-
value = replacerFunc.call(holder, key, value)
|
203470
|
-
}
|
203471
|
-
|
203472
|
-
if (value instanceof Number) {
|
203473
|
-
value = Number(value)
|
203474
|
-
} else if (value instanceof String) {
|
203475
|
-
value = String(value)
|
203476
|
-
} else if (value instanceof Boolean) {
|
203477
|
-
value = value.valueOf()
|
203478
|
-
}
|
203479
|
-
|
203480
|
-
switch (value) {
|
203481
|
-
case null: return 'null'
|
203482
|
-
case true: return 'true'
|
203483
|
-
case false: return 'false'
|
203484
|
-
}
|
203485
|
-
|
203486
|
-
if (typeof value === 'string') {
|
203487
|
-
return quoteString(value, false)
|
203488
|
-
}
|
203489
|
-
|
203490
|
-
if (typeof value === 'number') {
|
203491
|
-
return String(value)
|
203492
|
-
}
|
203493
|
-
|
203494
|
-
if (typeof value === 'object') {
|
203495
|
-
return Array.isArray(value) ? serializeArray(value) : serializeObject(value)
|
203496
|
-
}
|
203497
|
-
|
203498
|
-
return undefined
|
203499
|
-
}
|
203500
|
-
|
203501
|
-
function quoteString (value) {
|
203502
|
-
const quotes = {
|
203503
|
-
"'": 0.1,
|
203504
|
-
'"': 0.2,
|
203505
|
-
}
|
203506
|
-
|
203507
|
-
const replacements = {
|
203508
|
-
"'": "\\'",
|
203509
|
-
'"': '\\"',
|
203510
|
-
'\\': '\\\\',
|
203511
|
-
'\b': '\\b',
|
203512
|
-
'\f': '\\f',
|
203513
|
-
'\n': '\\n',
|
203514
|
-
'\r': '\\r',
|
203515
|
-
'\t': '\\t',
|
203516
|
-
'\v': '\\v',
|
203517
|
-
'\0': '\\0',
|
203518
|
-
'\u2028': '\\u2028',
|
203519
|
-
'\u2029': '\\u2029',
|
203520
|
-
}
|
203521
|
-
|
203522
|
-
let product = ''
|
203523
|
-
|
203524
|
-
for (let i = 0; i < value.length; i++) {
|
203525
|
-
const c = value[i]
|
203526
|
-
switch (c) {
|
203527
|
-
case "'":
|
203528
|
-
case '"':
|
203529
|
-
quotes[c]++
|
203530
|
-
product += c
|
203531
|
-
continue
|
203532
|
-
|
203533
|
-
case '\0':
|
203534
|
-
if (util.isDigit(value[i + 1])) {
|
203535
|
-
product += '\\x00'
|
203536
|
-
continue
|
203537
|
-
}
|
203538
|
-
}
|
203539
|
-
|
203540
|
-
if (replacements[c]) {
|
203541
|
-
product += replacements[c]
|
203542
|
-
continue
|
203543
|
-
}
|
203544
|
-
|
203545
|
-
if (c < ' ') {
|
203546
|
-
let hexString = c.charCodeAt(0).toString(16)
|
203547
|
-
product += '\\x' + ('00' + hexString).substring(hexString.length)
|
203548
|
-
continue
|
203549
|
-
}
|
203550
|
-
|
203551
|
-
product += c
|
203552
|
-
}
|
203553
|
-
|
203554
|
-
const quoteChar = quote || Object.keys(quotes).reduce((a, b) => (quotes[a] < quotes[b]) ? a : b)
|
203555
|
-
|
203556
|
-
product = product.replace(new RegExp(quoteChar, 'g'), replacements[quoteChar])
|
203557
|
-
|
203558
|
-
return quoteChar + product + quoteChar
|
203559
|
-
}
|
203560
|
-
|
203561
|
-
function serializeObject (value) {
|
203562
|
-
if (stack.indexOf(value) >= 0) {
|
203563
|
-
throw TypeError('Converting circular structure to JSON5')
|
203564
|
-
}
|
203565
|
-
|
203566
|
-
stack.push(value)
|
203567
|
-
|
203568
|
-
let stepback = indent
|
203569
|
-
indent = indent + gap
|
203570
|
-
|
203571
|
-
let keys = propertyList || Object.keys(value)
|
203572
|
-
let partial = []
|
203573
|
-
for (const key of keys) {
|
203574
|
-
const propertyString = serializeProperty(key, value)
|
203575
|
-
if (propertyString !== undefined) {
|
203576
|
-
let member = serializeKey(key) + ':'
|
203577
|
-
if (gap !== '') {
|
203578
|
-
member += ' '
|
203579
|
-
}
|
203580
|
-
member += propertyString
|
203581
|
-
partial.push(member)
|
203582
|
-
}
|
203583
|
-
}
|
203584
|
-
|
203585
|
-
let final
|
203586
|
-
if (partial.length === 0) {
|
203587
|
-
final = '{}'
|
203588
|
-
} else {
|
203589
|
-
let properties
|
203590
|
-
if (gap === '') {
|
203591
|
-
properties = partial.join(',')
|
203592
|
-
final = '{' + properties + '}'
|
203593
|
-
} else {
|
203594
|
-
let separator = ',\n' + indent
|
203595
|
-
properties = partial.join(separator)
|
203596
|
-
final = '{\n' + indent + properties + ',\n' + stepback + '}'
|
203597
|
-
}
|
203598
|
-
}
|
203599
|
-
|
203600
|
-
stack.pop()
|
203601
|
-
indent = stepback
|
203602
|
-
return final
|
203603
|
-
}
|
203604
|
-
|
203605
|
-
function serializeKey (key) {
|
203606
|
-
if (key.length === 0) {
|
203607
|
-
return quoteString(key, true)
|
203608
|
-
}
|
203609
|
-
|
203610
|
-
const firstChar = String.fromCodePoint(key.codePointAt(0))
|
203611
|
-
if (!util.isIdStartChar(firstChar)) {
|
203612
|
-
return quoteString(key, true)
|
203613
|
-
}
|
203614
|
-
|
203615
|
-
for (let i = firstChar.length; i < key.length; i++) {
|
203616
|
-
if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))) {
|
203617
|
-
return quoteString(key, true)
|
203618
|
-
}
|
203619
|
-
}
|
203620
|
-
|
203621
|
-
return key
|
203622
|
-
}
|
203623
|
-
|
203624
|
-
function serializeArray (value) {
|
203625
|
-
if (stack.indexOf(value) >= 0) {
|
203626
|
-
throw TypeError('Converting circular structure to JSON5')
|
203627
|
-
}
|
203628
|
-
|
203629
|
-
stack.push(value)
|
203630
|
-
|
203631
|
-
let stepback = indent
|
203632
|
-
indent = indent + gap
|
203633
|
-
|
203634
|
-
let partial = []
|
203635
|
-
for (let i = 0; i < value.length; i++) {
|
203636
|
-
const propertyString = serializeProperty(String(i), value)
|
203637
|
-
partial.push((propertyString !== undefined) ? propertyString : 'null')
|
203638
|
-
}
|
203639
|
-
|
203640
|
-
let final
|
203641
|
-
if (partial.length === 0) {
|
203642
|
-
final = '[]'
|
203643
|
-
} else {
|
203644
|
-
if (gap === '') {
|
203645
|
-
let properties = partial.join(',')
|
203646
|
-
final = '[' + properties + ']'
|
203647
|
-
} else {
|
203648
|
-
let separator = ',\n' + indent
|
203649
|
-
let properties = partial.join(separator)
|
203650
|
-
final = '[\n' + indent + properties + ',\n' + stepback + ']'
|
203651
|
-
}
|
203652
|
-
}
|
203653
|
-
|
203654
|
-
stack.pop()
|
203655
|
-
indent = stepback
|
203656
|
-
return final
|
203657
|
-
}
|
203658
|
-
}
|
203659
|
-
|
203660
|
-
|
203661
|
-
/***/ }),
|
203662
|
-
|
203663
|
-
/***/ 83977:
|
203664
|
-
/***/ ((module) => {
|
203665
|
-
|
203666
|
-
// This is a generated file. Do not edit.
|
203667
|
-
module.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/
|
203668
|
-
module.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/
|
203669
|
-
module.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
|
203670
|
-
|
203671
|
-
|
203672
|
-
/***/ }),
|
203673
|
-
|
203674
|
-
/***/ 3825:
|
203675
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
203676
|
-
|
203677
|
-
const unicode = __webpack_require__(83977)
|
203678
|
-
|
203679
|
-
module.exports = {
|
203680
|
-
isSpaceSeparator (c) {
|
203681
|
-
return typeof c === 'string' && unicode.Space_Separator.test(c)
|
203682
|
-
},
|
203683
|
-
|
203684
|
-
isIdStartChar (c) {
|
203685
|
-
return typeof c === 'string' && (
|
203686
|
-
(c >= 'a' && c <= 'z') ||
|
203687
|
-
(c >= 'A' && c <= 'Z') ||
|
203688
|
-
(c === '$') || (c === '_') ||
|
203689
|
-
unicode.ID_Start.test(c)
|
203690
|
-
)
|
203691
|
-
},
|
203692
|
-
|
203693
|
-
isIdContinueChar (c) {
|
203694
|
-
return typeof c === 'string' && (
|
203695
|
-
(c >= 'a' && c <= 'z') ||
|
203696
|
-
(c >= 'A' && c <= 'Z') ||
|
203697
|
-
(c >= '0' && c <= '9') ||
|
203698
|
-
(c === '$') || (c === '_') ||
|
203699
|
-
(c === '\u200C') || (c === '\u200D') ||
|
203700
|
-
unicode.ID_Continue.test(c)
|
203701
|
-
)
|
203702
|
-
},
|
203703
|
-
|
203704
|
-
isDigit (c) {
|
203705
|
-
return typeof c === 'string' && /[0-9]/.test(c)
|
203706
|
-
},
|
203707
|
-
|
203708
|
-
isHexDigit (c) {
|
203709
|
-
return typeof c === 'string' && /[0-9A-Fa-f]/.test(c)
|
203710
|
-
},
|
203711
|
-
}
|
203712
|
-
|
203713
|
-
|
203714
202273
|
/***/ }),
|
203715
202274
|
|
203716
202275
|
/***/ 74862:
|
@@ -214435,9 +212994,12 @@ exports.frameworks = [
|
|
214435
212994
|
envPrefix: 'NEXT_PUBLIC_',
|
214436
212995
|
useRuntime: { src: 'package.json', use: '@vercel/next' },
|
214437
212996
|
detectors: {
|
214438
|
-
|
212997
|
+
some: [
|
214439
212998
|
{
|
214440
|
-
path: 'blitz.config.
|
212999
|
+
path: 'blitz.config.js',
|
213000
|
+
},
|
213001
|
+
{
|
213002
|
+
path: 'blitz.config.ts',
|
214441
213003
|
},
|
214442
213004
|
],
|
214443
213005
|
},
|
@@ -216088,7 +214650,7 @@ exports.frameworks = [
|
|
216088
214650
|
{
|
216089
214651
|
name: 'VitePress',
|
216090
214652
|
slug: 'vitepress',
|
216091
|
-
demo: 'https://vitepress-starter-template.vercel.app
|
214653
|
+
demo: 'https://vitepress-starter-template.vercel.app',
|
216092
214654
|
logo: 'https://api-frameworks.vercel.sh/framework-logos/vite.svg',
|
216093
214655
|
tagline: "VitePress is VuePress' little brother, built on top of Vite.",
|
216094
214656
|
description: 'VuePress on top of Vite',
|
@@ -221804,10 +220366,20 @@ exports.getProjectPaths = getProjectPaths;
|
|
221804
220366
|
/***/ }),
|
221805
220367
|
|
221806
220368
|
/***/ 20302:
|
221807
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
220369
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
221808
220370
|
|
221809
220371
|
"use strict";
|
221810
220372
|
|
220373
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
220374
|
+
if (k2 === undefined) k2 = k;
|
220375
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
220376
|
+
}) : (function(o, m, k, k2) {
|
220377
|
+
if (k2 === undefined) k2 = k;
|
220378
|
+
o[k2] = m[k];
|
220379
|
+
}));
|
220380
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
220381
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
220382
|
+
};
|
221811
220383
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
221812
220384
|
exports.packageManagers = exports.isStaticRuntime = exports.isOfficialRuntime = exports.monorepoManagers = exports.getWorkspacePackagePaths = exports.getWorkspaces = exports.workspaceManagers = exports.LocalFileSystemDetector = exports.DetectorFilesystem = exports.getProjectPaths = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = void 0;
|
221813
220385
|
var detect_builders_1 = __webpack_require__(48163);
|
@@ -221838,6 +220410,7 @@ Object.defineProperty(exports, "isOfficialRuntime", ({ enumerable: true, get: fu
|
|
221838
220410
|
Object.defineProperty(exports, "isStaticRuntime", ({ enumerable: true, get: function () { return is_official_runtime_1.isStaticRuntime; } }));
|
221839
220411
|
var package_managers_1 = __webpack_require__(3334);
|
221840
220412
|
Object.defineProperty(exports, "packageManagers", ({ enumerable: true, get: function () { return package_managers_1.packageManagers; } }));
|
220413
|
+
__exportStar(__webpack_require__(97995), exports);
|
221841
220414
|
//# sourceMappingURL=index.js.map
|
221842
220415
|
|
221843
220416
|
/***/ }),
|
@@ -221873,6 +220446,128 @@ exports.isStaticRuntime = isStaticRuntime;
|
|
221873
220446
|
|
221874
220447
|
/***/ }),
|
221875
220448
|
|
220449
|
+
/***/ 97995:
|
220450
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
220451
|
+
|
220452
|
+
"use strict";
|
220453
|
+
|
220454
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
220455
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
220456
|
+
};
|
220457
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220458
|
+
exports.getMonorepoDefaultSettings = exports.MissingBuildTarget = exports.MissingBuildPipeline = void 0;
|
220459
|
+
const path_1 = __webpack_require__(85622);
|
220460
|
+
const monorepo_managers_1 = __webpack_require__(35057);
|
220461
|
+
const package_managers_1 = __webpack_require__(3334);
|
220462
|
+
const detect_framework_1 = __webpack_require__(74912);
|
220463
|
+
const json5_1 = __importDefault(__webpack_require__(65056));
|
220464
|
+
class MissingBuildPipeline extends Error {
|
220465
|
+
constructor() {
|
220466
|
+
super('Missing required `build` pipeline in turbo.json or package.json Turbo configuration.');
|
220467
|
+
}
|
220468
|
+
}
|
220469
|
+
exports.MissingBuildPipeline = MissingBuildPipeline;
|
220470
|
+
class MissingBuildTarget extends Error {
|
220471
|
+
constructor() {
|
220472
|
+
super('Missing required `build` target in either nx.json, project.json, or package.json Nx configuration.');
|
220473
|
+
}
|
220474
|
+
}
|
220475
|
+
exports.MissingBuildTarget = MissingBuildTarget;
|
220476
|
+
async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRoot, detectorFilesystem) {
|
220477
|
+
const [monorepoManager, packageManager] = await Promise.all([
|
220478
|
+
detect_framework_1.detectFramework({
|
220479
|
+
fs: detectorFilesystem,
|
220480
|
+
frameworkList: monorepo_managers_1.monorepoManagers,
|
220481
|
+
}),
|
220482
|
+
detect_framework_1.detectFramework({
|
220483
|
+
fs: detectorFilesystem,
|
220484
|
+
frameworkList: package_managers_1.packageManagers,
|
220485
|
+
}),
|
220486
|
+
]);
|
220487
|
+
if (monorepoManager === 'turbo') {
|
220488
|
+
const [turboJSONBuf, packageJSONBuf] = await Promise.all([
|
220489
|
+
detectorFilesystem.readFile('turbo.json').catch(() => null),
|
220490
|
+
detectorFilesystem.readFile('package.json').catch(() => null),
|
220491
|
+
]);
|
220492
|
+
let hasBuildPipeline = false;
|
220493
|
+
if (turboJSONBuf !== null) {
|
220494
|
+
const turboJSON = json5_1.default.parse(turboJSONBuf.toString('utf-8'));
|
220495
|
+
if (turboJSON?.pipeline?.build) {
|
220496
|
+
hasBuildPipeline = true;
|
220497
|
+
}
|
220498
|
+
}
|
220499
|
+
else if (packageJSONBuf !== null) {
|
220500
|
+
const packageJSON = JSON.parse(packageJSONBuf.toString('utf-8'));
|
220501
|
+
if (packageJSON?.turbo?.pipeline?.build) {
|
220502
|
+
hasBuildPipeline = true;
|
220503
|
+
}
|
220504
|
+
}
|
220505
|
+
if (!hasBuildPipeline) {
|
220506
|
+
throw new MissingBuildPipeline();
|
220507
|
+
}
|
220508
|
+
return {
|
220509
|
+
monorepoManager: 'turbo',
|
220510
|
+
buildCommand: `cd ${relativeToRoot} && npx turbo run build --filter=${projectName}...`,
|
220511
|
+
installCommand: `cd ${relativeToRoot} && ${packageManager} install`,
|
220512
|
+
commandForIgnoringBuildStep: `cd ${relativeToRoot} && npx turbo-ignore`,
|
220513
|
+
};
|
220514
|
+
}
|
220515
|
+
else if (monorepoManager === 'nx') {
|
220516
|
+
// No ENOENT handling required here since conditional wouldn't be `true` unless `nx.json` was found.
|
220517
|
+
const nxJSONBuf = await detectorFilesystem.readFile('nx.json');
|
220518
|
+
const nxJSON = json5_1.default.parse(nxJSONBuf.toString('utf-8'));
|
220519
|
+
if (!nxJSON?.targetDefaults?.build) {
|
220520
|
+
const [projectJSONBuf, packageJSONBuf] = await Promise.all([
|
220521
|
+
detectorFilesystem
|
220522
|
+
.readFile(path_1.join(projectPath, 'project.json'))
|
220523
|
+
.catch(() => null),
|
220524
|
+
detectorFilesystem
|
220525
|
+
.readFile(path_1.join(projectPath, 'package.json'))
|
220526
|
+
.catch(() => null),
|
220527
|
+
]);
|
220528
|
+
let hasBuildTarget = false;
|
220529
|
+
if (projectJSONBuf) {
|
220530
|
+
const projectJSON = json5_1.default.parse(projectJSONBuf.toString('utf-8'));
|
220531
|
+
if (projectJSON?.targets?.build) {
|
220532
|
+
hasBuildTarget = true;
|
220533
|
+
}
|
220534
|
+
}
|
220535
|
+
if (packageJSONBuf) {
|
220536
|
+
const packageJSON = json5_1.default.parse(packageJSONBuf.toString('utf-8'));
|
220537
|
+
if (packageJSON?.nx) {
|
220538
|
+
if (packageJSON.nx.targets?.build) {
|
220539
|
+
hasBuildTarget = true;
|
220540
|
+
}
|
220541
|
+
}
|
220542
|
+
}
|
220543
|
+
if (!hasBuildTarget) {
|
220544
|
+
throw new MissingBuildTarget();
|
220545
|
+
}
|
220546
|
+
}
|
220547
|
+
return {
|
220548
|
+
monorepoManager: 'nx',
|
220549
|
+
buildCommand: `cd ${relativeToRoot} && npx nx build ${projectName}`,
|
220550
|
+
installCommand: `cd ${relativeToRoot} && ${packageManager} install`,
|
220551
|
+
};
|
220552
|
+
}
|
220553
|
+
// TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
|
220554
|
+
/* else if (monorepoManager === 'rush') {
|
220555
|
+
setCommand(
|
220556
|
+
'buildCommand',
|
220557
|
+
`node ${relativeToRoot}/common/scripts/install-run-rush.js build --to ${projectName}`
|
220558
|
+
);
|
220559
|
+
setCommand(
|
220560
|
+
'installCommand',
|
220561
|
+
`node ${relativeToRoot}/common/scripts/install-run-rush.js install`
|
220562
|
+
);
|
220563
|
+
} */
|
220564
|
+
return null;
|
220565
|
+
}
|
220566
|
+
exports.getMonorepoDefaultSettings = getMonorepoDefaultSettings;
|
220567
|
+
//# sourceMappingURL=get-monorepo-default-settings.js.map
|
220568
|
+
|
220569
|
+
/***/ }),
|
220570
|
+
|
221876
220571
|
/***/ 35057:
|
221877
220572
|
/***/ ((__unused_webpack_module, exports) => {
|
221878
220573
|
|
@@ -229007,12 +227702,34 @@ module.exports = function parse (text, reviver) {
|
|
229007
227702
|
function internalize (holder, name, reviver) {
|
229008
227703
|
const value = holder[name]
|
229009
227704
|
if (value != null && typeof value === 'object') {
|
229010
|
-
|
229011
|
-
|
229012
|
-
|
229013
|
-
|
229014
|
-
|
229015
|
-
|
227705
|
+
if (Array.isArray(value)) {
|
227706
|
+
for (let i = 0; i < value.length; i++) {
|
227707
|
+
const key = String(i)
|
227708
|
+
const replacement = internalize(value, key, reviver)
|
227709
|
+
if (replacement === undefined) {
|
227710
|
+
delete value[key]
|
227711
|
+
} else {
|
227712
|
+
Object.defineProperty(value, key, {
|
227713
|
+
value: replacement,
|
227714
|
+
writable: true,
|
227715
|
+
enumerable: true,
|
227716
|
+
configurable: true,
|
227717
|
+
})
|
227718
|
+
}
|
227719
|
+
}
|
227720
|
+
} else {
|
227721
|
+
for (const key in value) {
|
227722
|
+
const replacement = internalize(value, key, reviver)
|
227723
|
+
if (replacement === undefined) {
|
227724
|
+
delete value[key]
|
227725
|
+
} else {
|
227726
|
+
Object.defineProperty(value, key, {
|
227727
|
+
value: replacement,
|
227728
|
+
writable: true,
|
227729
|
+
enumerable: true,
|
227730
|
+
configurable: true,
|
227731
|
+
})
|
227732
|
+
}
|
229016
227733
|
}
|
229017
227734
|
}
|
229018
227735
|
}
|
@@ -229938,7 +228655,12 @@ function push () {
|
|
229938
228655
|
if (Array.isArray(parent)) {
|
229939
228656
|
parent.push(value)
|
229940
228657
|
} else {
|
229941
|
-
parent
|
228658
|
+
Object.defineProperty(parent, key, {
|
228659
|
+
value,
|
228660
|
+
writable: true,
|
228661
|
+
enumerable: true,
|
228662
|
+
configurable: true,
|
228663
|
+
})
|
229942
228664
|
}
|
229943
228665
|
}
|
229944
228666
|
|
@@ -242327,23 +241049,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
242327
241049
|
};
|
242328
241050
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
242329
241051
|
exports.setMonorepoDefaultSettings = void 0;
|
242330
|
-
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
242331
241052
|
const path_1 = __webpack_require__(85622);
|
242332
241053
|
const fs_detectors_1 = __webpack_require__(20302);
|
242333
241054
|
const title_1 = __importDefault(__webpack_require__(45676));
|
242334
|
-
const json5_1 = __importDefault(__webpack_require__(72606));
|
242335
241055
|
async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output) {
|
242336
241056
|
const localFileSystem = new fs_detectors_1.LocalFileSystemDetector(cwd);
|
242337
|
-
const [monorepoManager, packageManager] = await Promise.all([
|
242338
|
-
(0, fs_detectors_1.detectFramework)({
|
242339
|
-
fs: localFileSystem,
|
242340
|
-
frameworkList: fs_detectors_1.monorepoManagers,
|
242341
|
-
}),
|
242342
|
-
(0, fs_detectors_1.detectFramework)({
|
242343
|
-
fs: localFileSystem,
|
242344
|
-
frameworkList: fs_detectors_1.packageManagers,
|
242345
|
-
}),
|
242346
|
-
]);
|
242347
241057
|
const projectName = (0, path_1.basename)(workPath);
|
242348
241058
|
const relativeToRoot = (0, path_1.relative)(workPath, cwd);
|
242349
241059
|
const setCommand = (command, value) => {
|
@@ -242354,79 +241064,27 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
242354
241064
|
projectSettings[command] = value;
|
242355
241065
|
}
|
242356
241066
|
};
|
242357
|
-
|
242358
|
-
|
242359
|
-
|
242360
|
-
if (monorepoManager === 'turbo') {
|
242361
|
-
const [turboJSONBuf, packageJSONBuf] = await Promise.all([
|
242362
|
-
fs_extra_1.default.readFile((0, path_1.join)(cwd, 'turbo.json')).catch(() => null),
|
242363
|
-
fs_extra_1.default.readFile((0, path_1.join)(cwd, 'package.json')).catch(() => null),
|
242364
|
-
]);
|
242365
|
-
let hasBuildPipeline = false;
|
242366
|
-
if (turboJSONBuf !== null) {
|
242367
|
-
const turboJSON = json5_1.default.parse(turboJSONBuf.toString('utf-8'));
|
242368
|
-
if (turboJSON?.pipeline?.build) {
|
242369
|
-
hasBuildPipeline = true;
|
242370
|
-
}
|
242371
|
-
}
|
242372
|
-
else if (packageJSONBuf !== null) {
|
242373
|
-
const packageJSON = JSON.parse(packageJSONBuf.toString('utf-8'));
|
242374
|
-
if (packageJSON?.turbo?.pipeline?.build) {
|
242375
|
-
hasBuildPipeline = true;
|
242376
|
-
}
|
242377
|
-
}
|
242378
|
-
if (!hasBuildPipeline) {
|
242379
|
-
output.warn('Missing required `build` pipeline in turbo.json or package.json Turbo configuration. Skipping automatic setting assignment.');
|
241067
|
+
try {
|
241068
|
+
const result = await (0, fs_detectors_1.getMonorepoDefaultSettings)(projectName, (0, path_1.relative)(cwd, workPath), relativeToRoot, localFileSystem);
|
241069
|
+
if (result === null) {
|
242380
241070
|
return;
|
242381
241071
|
}
|
242382
|
-
|
242383
|
-
|
241072
|
+
const { monorepoManager, ...commands } = result;
|
241073
|
+
output.log(`Automatically detected ${(0, title_1.default)(monorepoManager)} monorepo manager. Attempting to assign default settings.`);
|
241074
|
+
setCommand('buildCommand', commands.buildCommand);
|
241075
|
+
setCommand('installCommand', commands.installCommand);
|
241076
|
+
if (commands.commandForIgnoringBuildStep) {
|
241077
|
+
setCommand('commandForIgnoringBuildStep', commands.commandForIgnoringBuildStep);
|
241078
|
+
}
|
242384
241079
|
}
|
242385
|
-
|
242386
|
-
|
242387
|
-
|
242388
|
-
|
242389
|
-
|
242390
|
-
const [projectJSONBuf, packageJSONBuf] = await Promise.all([
|
242391
|
-
fs_extra_1.default.readFile((0, path_1.join)(workPath, 'project.json')).catch(() => null),
|
242392
|
-
fs_extra_1.default.readFile((0, path_1.join)(workPath, 'package.json')).catch(() => null),
|
242393
|
-
]);
|
242394
|
-
let hasBuildTarget = false;
|
242395
|
-
if (projectJSONBuf) {
|
242396
|
-
output.log('Found project.json Nx configuration.');
|
242397
|
-
const projectJSON = json5_1.default.parse(projectJSONBuf.toString('utf-8'));
|
242398
|
-
if (projectJSON?.targets?.build) {
|
242399
|
-
hasBuildTarget = true;
|
242400
|
-
}
|
242401
|
-
}
|
242402
|
-
if (packageJSONBuf) {
|
242403
|
-
const packageJSON = json5_1.default.parse(packageJSONBuf.toString('utf-8'));
|
242404
|
-
if (packageJSON?.nx) {
|
242405
|
-
output.log('Found package.json Nx configuration.');
|
242406
|
-
if (packageJSON.nx.targets?.build) {
|
242407
|
-
hasBuildTarget = true;
|
242408
|
-
}
|
242409
|
-
}
|
242410
|
-
}
|
242411
|
-
if (!hasBuildTarget) {
|
242412
|
-
output.warn('Missing required `build` target in either project.json or package.json Nx configuration. Skipping automatic setting assignment.');
|
242413
|
-
return;
|
242414
|
-
}
|
241080
|
+
catch (error) {
|
241081
|
+
if (error instanceof fs_detectors_1.MissingBuildPipeline ||
|
241082
|
+
error instanceof fs_detectors_1.MissingBuildTarget) {
|
241083
|
+
output.warn(`${error.message} Skipping automatic setting assignment.`);
|
241084
|
+
return;
|
242415
241085
|
}
|
242416
|
-
|
242417
|
-
setCommand('installCommand', `cd ${relativeToRoot} && ${packageManager} install`);
|
241086
|
+
throw error;
|
242418
241087
|
}
|
242419
|
-
// TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
|
242420
|
-
/* else if (monorepoManager === 'rush') {
|
242421
|
-
setCommand(
|
242422
|
-
'buildCommand',
|
242423
|
-
`node ${relativeToRoot}/common/scripts/install-run-rush.js build --to ${projectName}`
|
242424
|
-
);
|
242425
|
-
setCommand(
|
242426
|
-
'installCommand',
|
242427
|
-
`node ${relativeToRoot}/common/scripts/install-run-rush.js install`
|
242428
|
-
);
|
242429
|
-
} */
|
242430
241088
|
}
|
242431
241089
|
exports.setMonorepoDefaultSettings = setMonorepoDefaultSettings;
|
242432
241090
|
|
@@ -256326,7 +254984,7 @@ module.exports = JSON.parse("[\"3dm\",\"3ds\",\"3g2\",\"3gp\",\"7z\",\"a\",\"aac
|
|
256326
254984
|
|
256327
254985
|
/***/ }),
|
256328
254986
|
|
256329
|
-
/***/
|
254987
|
+
/***/ 67977:
|
256330
254988
|
/***/ ((module) => {
|
256331
254989
|
|
256332
254990
|
"use strict";
|
@@ -256618,7 +255276,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
256618
255276
|
/***/ ((module) => {
|
256619
255277
|
|
256620
255278
|
"use strict";
|
256621
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.10.
|
255279
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.10.3\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.7.3\",\"@vercel/go\":\"2.2.22\",\"@vercel/hydrogen\":\"0.0.36\",\"@vercel/next\":\"3.3.7\",\"@vercel/node\":\"2.8.4\",\"@vercel/python\":\"3.1.32\",\"@vercel/redwood\":\"1.0.43\",\"@vercel/remix\":\"1.1.5\",\"@vercel/ruby\":\"1.3.48\",\"@vercel/static-build\":\"1.0.46\",\"update-notifier\":\"5.1.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.2.24\",\"@vercel/error-utils\":\"1.0.3\",\"@vercel/frameworks\":\"1.1.17\",\"@vercel/fs-detectors\":\"3.6.0\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.7.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
|
256622
255280
|
|
256623
255281
|
/***/ }),
|
256624
255282
|
|
@@ -256626,7 +255284,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.10.1\",\"pref
|
|
256626
255284
|
/***/ ((module) => {
|
256627
255285
|
|
256628
255286
|
"use strict";
|
256629
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
255287
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.24\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"yarn test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"5.7.3\",\"@vercel/routing-utils\":\"2.1.3\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
256630
255288
|
|
256631
255289
|
/***/ }),
|
256632
255290
|
|