eslint-config-sukka 4.0.0 → 4.0.2
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.cjs +5 -761
- package/dist/index.d.ts +5 -9
- package/dist/index.js +5 -761
- package/dist/index.mjs +6 -758
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -1,761 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const foxquire = (id) => Promise.resolve(require(id));
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function getAugmentedNamespace(n) {
|
|
9
|
-
if (n.__esModule) return n;
|
|
10
|
-
var f = n.default;
|
|
11
|
-
if (typeof f == "function") {
|
|
12
|
-
var a = function a () {
|
|
13
|
-
if (this instanceof a) {
|
|
14
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
15
|
-
}
|
|
16
|
-
return f.apply(this, arguments);
|
|
17
|
-
};
|
|
18
|
-
a.prototype = f.prototype;
|
|
19
|
-
} else a = {};
|
|
20
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
21
|
-
Object.keys(n).forEach(function (k) {
|
|
22
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
23
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return n[k];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
return a;
|
|
31
|
-
}var require$$1 = /*@__PURE__*/getAugmentedNamespace(fs__namespace);/*!
|
|
32
|
-
* parse-gitignore <https://github.com/jonschlinkert/parse-gitignore>
|
|
33
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
34
|
-
* Released under the MIT License.
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
const fs$1 = require$$1;
|
|
38
|
-
const isObject = v => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
39
|
-
|
|
40
|
-
// eslint-disable-next-line no-control-regex
|
|
41
|
-
const INVALID_PATH_CHARS_REGEX = /[<>:"|?*\n\r\t\f\x00-\x1F]/;
|
|
42
|
-
const GLOBSTAR_REGEX = /(?:^|\/)[*]{2}($|\/)/;
|
|
43
|
-
const MAX_PATH_LENGTH = 260 - 12;
|
|
44
|
-
|
|
45
|
-
const isValidPath = input => {
|
|
46
|
-
if (typeof input === 'string') {
|
|
47
|
-
return input.length <= MAX_PATH_LENGTH && !INVALID_PATH_CHARS_REGEX.test(input);
|
|
48
|
-
}
|
|
49
|
-
return false;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const split = str => String(str).split(/\r\n?|\n/);
|
|
53
|
-
const isComment = str => str.startsWith('#');
|
|
54
|
-
const isParsed = input => isObject(input) && input.patterns && input.sections;
|
|
55
|
-
|
|
56
|
-
const patterns = input => {
|
|
57
|
-
return split(input).map(l => l.trim()).filter(line => line !== '' && !isComment(line));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const parse = (input, options = {}) => {
|
|
61
|
-
let filepath = options.path;
|
|
62
|
-
|
|
63
|
-
if (isParsed(input)) return input;
|
|
64
|
-
if (isValidPath(input) && fs$1.existsSync(input)) {
|
|
65
|
-
filepath = input;
|
|
66
|
-
input = fs$1.readFileSync(input);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const lines = split(input);
|
|
70
|
-
const names = new Map();
|
|
71
|
-
|
|
72
|
-
let parsed = { sections: [], patterns: [] };
|
|
73
|
-
let section = { name: 'default', patterns: [] };
|
|
74
|
-
let prev;
|
|
75
|
-
|
|
76
|
-
for (const line of lines) {
|
|
77
|
-
const value = line.trim();
|
|
78
|
-
|
|
79
|
-
if (value.startsWith('#')) {
|
|
80
|
-
const [, name] = /^#+\s*(.*)\s*$/.exec(value);
|
|
81
|
-
|
|
82
|
-
if (prev) {
|
|
83
|
-
names.delete(prev.name);
|
|
84
|
-
prev.comment += value ? `\n${value}` : '';
|
|
85
|
-
prev.name = name ? `${prev.name.trim()}\n${name.trim()}` : prev.name.trim();
|
|
86
|
-
names.set(prev.name.toLowerCase().trim(), prev);
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
section = { name: name.trim(), comment: value, patterns: [] };
|
|
91
|
-
names.set(section.name.toLowerCase(), section);
|
|
92
|
-
parsed.sections.push(section);
|
|
93
|
-
prev = section;
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (value !== '') {
|
|
98
|
-
section.patterns.push(value);
|
|
99
|
-
parsed.patterns.push(value);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
prev = null;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (options.dedupe === true || options.unique === true) {
|
|
106
|
-
parsed = dedupe(parsed, { ...options, format: false });
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
parsed.path = filepath;
|
|
110
|
-
parsed.input = Buffer.from(input);
|
|
111
|
-
parsed.format = opts => format(parsed, { ...options, ...opts });
|
|
112
|
-
parsed.dedupe = opts => dedupe(parsed, { ...options, ...opts });
|
|
113
|
-
parsed.globs = opts => globs(parsed, { path: filepath, ...options, ...opts });
|
|
114
|
-
return parsed;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const parseFile = (filepath, options) => {
|
|
118
|
-
return parse(fs$1.readFileSync(filepath, 'utf8'), options);
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const dedupe = (input, options) => {
|
|
122
|
-
const parsed = parse(input, { ...options, dedupe: false });
|
|
123
|
-
|
|
124
|
-
const names = new Map();
|
|
125
|
-
const res = { sections: [], patterns: new Set() };
|
|
126
|
-
let current;
|
|
127
|
-
|
|
128
|
-
// first, combine duplicate sections
|
|
129
|
-
for (const section of parsed.sections) {
|
|
130
|
-
const { name = '', comment, patterns } = section;
|
|
131
|
-
const key = name.trim().toLowerCase();
|
|
132
|
-
|
|
133
|
-
for (const pattern of patterns) {
|
|
134
|
-
res.patterns.add(pattern);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (name && names.has(key)) {
|
|
138
|
-
current = names.get(key);
|
|
139
|
-
current.patterns = [...current.patterns, ...patterns];
|
|
140
|
-
} else {
|
|
141
|
-
current = { name, comment, patterns };
|
|
142
|
-
res.sections.push(current);
|
|
143
|
-
names.set(key, current);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// next, de-dupe patterns in each section
|
|
148
|
-
for (const section of res.sections) {
|
|
149
|
-
section.patterns = [...new Set(section.patterns)];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
res.patterns = [...res.patterns];
|
|
153
|
-
return res;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const glob = (pattern, options) => {
|
|
157
|
-
// Return if a glob pattern has already been specified for sub-directories
|
|
158
|
-
if (GLOBSTAR_REGEX.test(pattern)) {
|
|
159
|
-
return pattern;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// If there is a separator at the beginning or middle (or both) of the pattern,
|
|
163
|
-
// then the pattern is relative to the directory level of the particular .gitignore
|
|
164
|
-
// file itself. Otherwise the pattern may also match at any level below the
|
|
165
|
-
// .gitignore level. relative paths only
|
|
166
|
-
let relative = false;
|
|
167
|
-
if (pattern.startsWith('/')) {
|
|
168
|
-
pattern = pattern.slice(1);
|
|
169
|
-
relative = true;
|
|
170
|
-
} else if (pattern.slice(1, pattern.length - 1).includes('/')) {
|
|
171
|
-
relative = true;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// If there is a separator at the end of the pattern then the pattern will only match directories.
|
|
175
|
-
pattern += pattern.endsWith('/') ? '**/' : '/**';
|
|
176
|
-
|
|
177
|
-
// If not relative, the pattern can match any files and directories.
|
|
178
|
-
return relative ? pattern : `**/${pattern}`;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
const globs = (input, options = {}) => {
|
|
182
|
-
const parsed = parse(input, options);
|
|
183
|
-
const result = [];
|
|
184
|
-
let index = 0;
|
|
185
|
-
|
|
186
|
-
const patterns = parsed.patterns
|
|
187
|
-
.concat(options.ignore || [])
|
|
188
|
-
.concat((options.unignore || []).map(p => !p.startsWith('!') ? '!' + p : p));
|
|
189
|
-
|
|
190
|
-
const push = (prefix, pattern) => {
|
|
191
|
-
const prev = result[result.length - 1];
|
|
192
|
-
const type = prefix ? 'unignore' : 'ignore';
|
|
193
|
-
|
|
194
|
-
if (prev && prev.type === type) {
|
|
195
|
-
if (!prev.patterns.includes(pattern)) {
|
|
196
|
-
prev.patterns.push(pattern);
|
|
197
|
-
}
|
|
198
|
-
} else {
|
|
199
|
-
result.push({ type, path: options.path || null, patterns: [pattern], index });
|
|
200
|
-
index++;
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
for (let pattern of patterns) {
|
|
205
|
-
let prefix = '';
|
|
206
|
-
|
|
207
|
-
// An optional prefix "!" which negates the pattern; any matching file excluded by
|
|
208
|
-
// a previous pattern will become included again
|
|
209
|
-
if (pattern.startsWith('!')) {
|
|
210
|
-
pattern = pattern.slice(1);
|
|
211
|
-
prefix = '!';
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// add the raw pattern to the results
|
|
215
|
-
push(prefix, (pattern.startsWith('/') ? pattern.slice(1) : pattern));
|
|
216
|
-
|
|
217
|
-
// add the glob pattern to the results
|
|
218
|
-
push(prefix, glob(pattern));
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return result;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Formats a .gitignore section
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
|
-
const formatSection = (section = {}) => {
|
|
229
|
-
const output = [section.comment || ''];
|
|
230
|
-
|
|
231
|
-
if (section.patterns?.length) {
|
|
232
|
-
output.push(section.patterns.join('\n'));
|
|
233
|
-
output.push('');
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
return output.join('\n');
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Format a .gitignore file from the given input or object from `.parse()`.
|
|
241
|
-
* @param {String} input File path or contents.
|
|
242
|
-
* @param {Object} options
|
|
243
|
-
* @return {String} Returns formatted string.
|
|
244
|
-
* @api public
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
const format = (input, options = {}) => {
|
|
248
|
-
const parsed = parse(input, options);
|
|
249
|
-
|
|
250
|
-
const fn = options.formatSection || formatSection;
|
|
251
|
-
const sections = parsed.sections || parsed;
|
|
252
|
-
const output = [];
|
|
253
|
-
|
|
254
|
-
for (const section of [].concat(sections)) {
|
|
255
|
-
output.push(fn(section));
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
return output.join('\n');
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
parse.file = parseFile;
|
|
262
|
-
parse.parse = parse;
|
|
263
|
-
parse.dedupe = dedupe;
|
|
264
|
-
parse.format = format;
|
|
265
|
-
parse.globs = globs;
|
|
266
|
-
parse.formatSection = formatSection;
|
|
267
|
-
parse.patterns = patterns;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Expose `parse`
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
var parseGitignore = parse;
|
|
274
|
-
|
|
275
|
-
var parse$1 = /*@__PURE__*/getDefaultExportFromCjs(parseGitignore);function ignore(options = {}) {
|
|
276
|
-
const ignores = [];
|
|
277
|
-
const {
|
|
278
|
-
files: _files = ".gitignore"
|
|
279
|
-
} = options;
|
|
280
|
-
const files = Array.isArray(_files) ? _files : [_files];
|
|
281
|
-
for (const file of files) {
|
|
282
|
-
const content = fs$3.readFileSync(file, "utf8");
|
|
283
|
-
const parsed = parse$1(content);
|
|
284
|
-
const globs = parsed.globs();
|
|
285
|
-
for (const glob of globs) {
|
|
286
|
-
if (glob.type === "ignore")
|
|
287
|
-
ignores.push(...glob.patterns);
|
|
288
|
-
else if (glob.type === "unignore")
|
|
289
|
-
ignores.push(...glob.patterns.map((pattern) => `!${pattern}`));
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
return {
|
|
293
|
-
ignores
|
|
294
|
-
};
|
|
295
|
-
}const ignores = (options = {})=>{
|
|
296
|
-
const { customGlobs = null, gitignore = [
|
|
297
|
-
'.gitignore'
|
|
298
|
-
] } = options;
|
|
299
|
-
const configs = [];
|
|
300
|
-
let ignores = [];
|
|
301
|
-
if (customGlobs === false || customGlobs === null) {
|
|
302
|
-
ignores = shared$1.constants.GLOB_EXCLUDE;
|
|
303
|
-
} else if (typeof customGlobs === 'string') {
|
|
304
|
-
ignores.push(customGlobs);
|
|
305
|
-
} else if (Array.isArray(customGlobs)) {
|
|
306
|
-
ignores = customGlobs;
|
|
307
|
-
} else ;
|
|
308
|
-
configs.push({
|
|
309
|
-
ignores
|
|
310
|
-
});
|
|
311
|
-
if (gitignore === false || gitignore === null) ; else if (gitignore === true) {
|
|
312
|
-
configs.push(ignore({
|
|
313
|
-
files: [
|
|
314
|
-
'.gitignore'
|
|
315
|
-
]
|
|
316
|
-
}));
|
|
317
|
-
} else if (typeof gitignore === 'string') {
|
|
318
|
-
configs.push(ignore({
|
|
319
|
-
files: [
|
|
320
|
-
gitignore
|
|
321
|
-
]
|
|
322
|
-
}));
|
|
323
|
-
} else if (Array.isArray(gitignore)) {
|
|
324
|
-
configs.push(ignore({
|
|
325
|
-
files: gitignore
|
|
326
|
-
}));
|
|
327
|
-
} else ;
|
|
328
|
-
return configs;
|
|
329
|
-
};function commonjsRequire(path) {
|
|
330
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
331
|
-
}var localPkg = {exports: {}};var require$$0 = /*@__PURE__*/getAugmentedNamespace(path2__namespace);var __defProp = Object.defineProperty;
|
|
332
|
-
var __defProps = Object.defineProperties;
|
|
333
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
334
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
335
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
336
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
337
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
338
|
-
var __spreadValues = (a, b) => {
|
|
339
|
-
for (var prop in b || (b = {}))
|
|
340
|
-
if (__hasOwnProp.call(b, prop))
|
|
341
|
-
__defNormalProp(a, prop, b[prop]);
|
|
342
|
-
if (__getOwnPropSymbols)
|
|
343
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
344
|
-
if (__propIsEnum.call(b, prop))
|
|
345
|
-
__defNormalProp(a, prop, b[prop]);
|
|
346
|
-
}
|
|
347
|
-
return a;
|
|
348
|
-
};
|
|
349
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
350
|
-
var __publicField = (obj, key, value) => {
|
|
351
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
352
|
-
return value;
|
|
353
|
-
};
|
|
354
|
-
var __accessCheck = (obj, member, msg) => {
|
|
355
|
-
if (!member.has(obj))
|
|
356
|
-
throw TypeError("Cannot " + msg);
|
|
357
|
-
};
|
|
358
|
-
var __privateGet = (obj, member, getter) => {
|
|
359
|
-
__accessCheck(obj, member, "read from private field");
|
|
360
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
361
|
-
};
|
|
362
|
-
var __privateAdd = (obj, member, value) => {
|
|
363
|
-
if (member.has(obj))
|
|
364
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
365
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
366
|
-
};
|
|
367
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
368
|
-
__accessCheck(obj, member, "write to private field");
|
|
369
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
370
|
-
return value;
|
|
371
|
-
};
|
|
372
|
-
var __privateWrapper = (obj, member, setter, getter) => ({
|
|
373
|
-
set _(value) {
|
|
374
|
-
__privateSet(obj, member, value, setter);
|
|
375
|
-
},
|
|
376
|
-
get _() {
|
|
377
|
-
return __privateGet(obj, member, getter);
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
|
|
381
|
-
// node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
|
|
382
|
-
var Node = class {
|
|
383
|
-
constructor(value) {
|
|
384
|
-
__publicField(this, "value");
|
|
385
|
-
__publicField(this, "next");
|
|
386
|
-
this.value = value;
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
var _head, _tail, _size;
|
|
390
|
-
var Queue = class {
|
|
391
|
-
constructor() {
|
|
392
|
-
__privateAdd(this, _head, void 0);
|
|
393
|
-
__privateAdd(this, _tail, void 0);
|
|
394
|
-
__privateAdd(this, _size, void 0);
|
|
395
|
-
this.clear();
|
|
396
|
-
}
|
|
397
|
-
enqueue(value) {
|
|
398
|
-
const node = new Node(value);
|
|
399
|
-
if (__privateGet(this, _head)) {
|
|
400
|
-
__privateGet(this, _tail).next = node;
|
|
401
|
-
__privateSet(this, _tail, node);
|
|
402
|
-
} else {
|
|
403
|
-
__privateSet(this, _head, node);
|
|
404
|
-
__privateSet(this, _tail, node);
|
|
405
|
-
}
|
|
406
|
-
__privateWrapper(this, _size)._++;
|
|
407
|
-
}
|
|
408
|
-
dequeue() {
|
|
409
|
-
const current = __privateGet(this, _head);
|
|
410
|
-
if (!current) {
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
__privateSet(this, _head, __privateGet(this, _head).next);
|
|
414
|
-
__privateWrapper(this, _size)._--;
|
|
415
|
-
return current.value;
|
|
416
|
-
}
|
|
417
|
-
clear() {
|
|
418
|
-
__privateSet(this, _head, void 0);
|
|
419
|
-
__privateSet(this, _tail, void 0);
|
|
420
|
-
__privateSet(this, _size, 0);
|
|
421
|
-
}
|
|
422
|
-
get size() {
|
|
423
|
-
return __privateGet(this, _size);
|
|
424
|
-
}
|
|
425
|
-
*[Symbol.iterator]() {
|
|
426
|
-
let current = __privateGet(this, _head);
|
|
427
|
-
while (current) {
|
|
428
|
-
yield current.value;
|
|
429
|
-
current = current.next;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
_head = new WeakMap();
|
|
434
|
-
_tail = new WeakMap();
|
|
435
|
-
_size = new WeakMap();
|
|
436
|
-
|
|
437
|
-
// node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
|
|
438
|
-
function pLimit(concurrency) {
|
|
439
|
-
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
440
|
-
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
441
|
-
}
|
|
442
|
-
const queue = new Queue();
|
|
443
|
-
let activeCount = 0;
|
|
444
|
-
const next = () => {
|
|
445
|
-
activeCount--;
|
|
446
|
-
if (queue.size > 0) {
|
|
447
|
-
queue.dequeue()();
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
const run = async (fn, resolve, args) => {
|
|
451
|
-
activeCount++;
|
|
452
|
-
const result = (async () => fn(...args))();
|
|
453
|
-
resolve(result);
|
|
454
|
-
try {
|
|
455
|
-
await result;
|
|
456
|
-
} catch (e) {
|
|
457
|
-
}
|
|
458
|
-
next();
|
|
459
|
-
};
|
|
460
|
-
const enqueue = (fn, resolve, args) => {
|
|
461
|
-
queue.enqueue(run.bind(void 0, fn, resolve, args));
|
|
462
|
-
(async () => {
|
|
463
|
-
await Promise.resolve();
|
|
464
|
-
if (activeCount < concurrency && queue.size > 0) {
|
|
465
|
-
queue.dequeue()();
|
|
466
|
-
}
|
|
467
|
-
})();
|
|
468
|
-
};
|
|
469
|
-
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
470
|
-
enqueue(fn, resolve, args);
|
|
471
|
-
});
|
|
472
|
-
Object.defineProperties(generator, {
|
|
473
|
-
activeCount: {
|
|
474
|
-
get: () => activeCount
|
|
475
|
-
},
|
|
476
|
-
pendingCount: {
|
|
477
|
-
get: () => queue.size
|
|
478
|
-
},
|
|
479
|
-
clearQueue: {
|
|
480
|
-
value: () => {
|
|
481
|
-
queue.clear();
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
return generator;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
// node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
|
|
489
|
-
var EndError = class extends Error {
|
|
490
|
-
constructor(value) {
|
|
491
|
-
super();
|
|
492
|
-
this.value = value;
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
var testElement = async (element, tester) => tester(await element);
|
|
496
|
-
var finder = async (element) => {
|
|
497
|
-
const values = await Promise.all(element);
|
|
498
|
-
if (values[1] === true) {
|
|
499
|
-
throw new EndError(values[0]);
|
|
500
|
-
}
|
|
501
|
-
return false;
|
|
502
|
-
};
|
|
503
|
-
async function pLocate(iterable, tester, {
|
|
504
|
-
concurrency = Number.POSITIVE_INFINITY,
|
|
505
|
-
preserveOrder = true
|
|
506
|
-
} = {}) {
|
|
507
|
-
const limit = pLimit(concurrency);
|
|
508
|
-
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
|
509
|
-
const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
|
|
510
|
-
try {
|
|
511
|
-
await Promise.all(items.map((element) => checkLimit(finder, element)));
|
|
512
|
-
} catch (error) {
|
|
513
|
-
if (error instanceof EndError) {
|
|
514
|
-
return error.value;
|
|
515
|
-
}
|
|
516
|
-
throw error;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
// node_modules/.pnpm/locate-path@7.1.1/node_modules/locate-path/index.js
|
|
521
|
-
var typeMappings = {
|
|
522
|
-
directory: "isDirectory",
|
|
523
|
-
file: "isFile"
|
|
524
|
-
};
|
|
525
|
-
function checkType(type) {
|
|
526
|
-
if (Object.hasOwnProperty.call(typeMappings, type)) {
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
throw new Error(`Invalid type specified: ${type}`);
|
|
530
|
-
}
|
|
531
|
-
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
532
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
|
|
533
|
-
async function locatePath(paths, {
|
|
534
|
-
cwd = process2.cwd(),
|
|
535
|
-
type = "file",
|
|
536
|
-
allowSymlinks = true,
|
|
537
|
-
concurrency,
|
|
538
|
-
preserveOrder
|
|
539
|
-
} = {}) {
|
|
540
|
-
checkType(type);
|
|
541
|
-
cwd = toPath(cwd);
|
|
542
|
-
const statFunction = allowSymlinks ? fs$2.promises.stat : fs$2.promises.lstat;
|
|
543
|
-
return pLocate(paths, async (path_) => {
|
|
544
|
-
try {
|
|
545
|
-
const stat = await statFunction(path2.resolve(cwd, path_));
|
|
546
|
-
return matchType(type, stat);
|
|
547
|
-
} catch (e) {
|
|
548
|
-
return false;
|
|
549
|
-
}
|
|
550
|
-
}, { concurrency, preserveOrder });
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
// node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js
|
|
554
|
-
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
|
|
555
|
-
var findUpStop = Symbol("findUpStop");
|
|
556
|
-
async function findUpMultiple(name, options = {}) {
|
|
557
|
-
let directory = path2.resolve(toPath2(options.cwd) || "");
|
|
558
|
-
const { root } = path2.parse(directory);
|
|
559
|
-
const stopAt = path2.resolve(directory, options.stopAt || root);
|
|
560
|
-
const limit = options.limit || Number.POSITIVE_INFINITY;
|
|
561
|
-
const paths = [name].flat();
|
|
562
|
-
const runMatcher = async (locateOptions) => {
|
|
563
|
-
if (typeof name !== "function") {
|
|
564
|
-
return locatePath(paths, locateOptions);
|
|
565
|
-
}
|
|
566
|
-
const foundPath = await name(locateOptions.cwd);
|
|
567
|
-
if (typeof foundPath === "string") {
|
|
568
|
-
return locatePath([foundPath], locateOptions);
|
|
569
|
-
}
|
|
570
|
-
return foundPath;
|
|
571
|
-
};
|
|
572
|
-
const matches = [];
|
|
573
|
-
while (true) {
|
|
574
|
-
const foundPath = await runMatcher(__spreadProps(__spreadValues({}, options), { cwd: directory }));
|
|
575
|
-
if (foundPath === findUpStop) {
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
if (foundPath) {
|
|
579
|
-
matches.push(path2.resolve(directory, foundPath));
|
|
580
|
-
}
|
|
581
|
-
if (directory === stopAt || matches.length >= limit) {
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
directory = path2.dirname(directory);
|
|
585
|
-
}
|
|
586
|
-
return matches;
|
|
587
|
-
}
|
|
588
|
-
async function findUp(name, options = {}) {
|
|
589
|
-
const matches = await findUpMultiple(name, __spreadProps(__spreadValues({}, options), { limit: 1 }));
|
|
590
|
-
return matches[0];
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
// shared.ts
|
|
594
|
-
async function loadPackageJSON$1(cwd = process.cwd()) {
|
|
595
|
-
const path3 = await findUp("package.json", { cwd });
|
|
596
|
-
if (!path3 || !fs$2.existsSync(path3))
|
|
597
|
-
return null;
|
|
598
|
-
return JSON.parse(await fs$2.promises.readFile(path3, "utf-8"));
|
|
599
|
-
}
|
|
600
|
-
async function isPackageListed$1(name, cwd) {
|
|
601
|
-
const pkg = await loadPackageJSON$1(cwd) || {};
|
|
602
|
-
return name in (pkg.dependencies || {}) || name in (pkg.devDependencies || {});
|
|
603
|
-
}var shared={__proto__:null,isPackageListed:isPackageListed$1,loadPackageJSON:loadPackageJSON$1};var require$$2 = /*@__PURE__*/getAugmentedNamespace(shared);const { dirname, join } = require$$0;
|
|
604
|
-
const { existsSync, readFileSync } = require$$1;
|
|
605
|
-
const fs = require$$1.promises;
|
|
606
|
-
const { loadPackageJSON, isPackageListed } = require$$2;
|
|
607
|
-
|
|
608
|
-
function resolveModule(name, options) {
|
|
609
|
-
try {
|
|
610
|
-
return require.resolve(name, options)
|
|
611
|
-
}
|
|
612
|
-
catch (e) {
|
|
613
|
-
return undefined
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
function importModule(path) {
|
|
618
|
-
const mod = commonjsRequire(path);
|
|
619
|
-
if (mod.__esModule)
|
|
620
|
-
return Promise.resolve(mod)
|
|
621
|
-
else
|
|
622
|
-
return Promise.resolve({ default: mod })
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
function isPackageExists(name, options) {
|
|
626
|
-
return !!resolvePackage(name, options)
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
function getPackageJsonPath(name, options) {
|
|
630
|
-
const entry = resolvePackage(name, options);
|
|
631
|
-
if (!entry)
|
|
632
|
-
return
|
|
633
|
-
return searchPackageJSON(entry)
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
async function getPackageInfo(name, options) {
|
|
637
|
-
const packageJsonPath = getPackageJsonPath(name, options);
|
|
638
|
-
if (!packageJsonPath)
|
|
639
|
-
return
|
|
640
|
-
|
|
641
|
-
const pkg = JSON.parse(await fs.readFile(packageJsonPath, 'utf8'));
|
|
642
|
-
|
|
643
|
-
return {
|
|
644
|
-
name,
|
|
645
|
-
version: pkg.version,
|
|
646
|
-
rootPath: dirname(packageJsonPath),
|
|
647
|
-
packageJsonPath,
|
|
648
|
-
packageJson: pkg,
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
function getPackageInfoSync(name, options) {
|
|
653
|
-
const packageJsonPath = getPackageJsonPath(name, options);
|
|
654
|
-
if (!packageJsonPath)
|
|
655
|
-
return
|
|
656
|
-
|
|
657
|
-
const pkg = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
|
658
|
-
|
|
659
|
-
return {
|
|
660
|
-
name,
|
|
661
|
-
version: pkg.version,
|
|
662
|
-
rootPath: dirname(packageJsonPath),
|
|
663
|
-
packageJsonPath,
|
|
664
|
-
packageJson: pkg,
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
function resolvePackage(name, options = {}) {
|
|
669
|
-
try {
|
|
670
|
-
return require.resolve(`${name}/package.json`, options)
|
|
671
|
-
}
|
|
672
|
-
catch {
|
|
673
|
-
}
|
|
674
|
-
try {
|
|
675
|
-
return require.resolve(name, options)
|
|
676
|
-
}
|
|
677
|
-
catch (e) {
|
|
678
|
-
if (e.code !== 'MODULE_NOT_FOUND')
|
|
679
|
-
throw e
|
|
680
|
-
return false
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
function searchPackageJSON(dir) {
|
|
685
|
-
let packageJsonPath;
|
|
686
|
-
while (true) {
|
|
687
|
-
if (!dir)
|
|
688
|
-
return
|
|
689
|
-
const newDir = dirname(dir);
|
|
690
|
-
if (newDir === dir)
|
|
691
|
-
return
|
|
692
|
-
dir = newDir;
|
|
693
|
-
packageJsonPath = join(dir, 'package.json');
|
|
694
|
-
if (existsSync(packageJsonPath))
|
|
695
|
-
break
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
return packageJsonPath
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
localPkg.exports = {
|
|
702
|
-
resolveModule,
|
|
703
|
-
importModule,
|
|
704
|
-
isPackageExists,
|
|
705
|
-
getPackageInfo,
|
|
706
|
-
getPackageInfoSync,
|
|
707
|
-
loadPackageJSON,
|
|
708
|
-
isPackageListed,
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
Object.defineProperty(localPkg.exports, '__esModule', { value: true, enumerable: false });
|
|
712
|
-
|
|
713
|
-
var localPkgExports = localPkg.exports;function enabled(options, defaults) {
|
|
714
|
-
if (typeof options === 'boolean') return options;
|
|
715
|
-
return options?.enable ?? !!defaults;
|
|
716
|
-
}
|
|
717
|
-
function config(options) {
|
|
718
|
-
if (typeof options === 'boolean' || typeof options === 'undefined') return;
|
|
719
|
-
const { enable, ...rest } = options;
|
|
720
|
-
return {
|
|
721
|
-
...rest
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
const sukka = async (options, ...userConfig)=>{
|
|
725
|
-
const isInEditor = options.isInEditor ?? !!((process.env.VSCODE_PID || process.env.JETBRAINS_IDE) && !process.env.CI);
|
|
726
|
-
const flatConfigs = [];
|
|
727
|
-
// ignores
|
|
728
|
-
flatConfigs.push(ignores(options.ignores));
|
|
729
|
-
// javascript
|
|
730
|
-
if (enabled(options.js, true)) {
|
|
731
|
-
flatConfigs.push((await foxquire('@eslint-sukka/js')).javascript({
|
|
732
|
-
...config(options.js),
|
|
733
|
-
isInEditor
|
|
734
|
-
}));
|
|
735
|
-
}
|
|
736
|
-
// typescript
|
|
737
|
-
if (options.ts) {
|
|
738
|
-
if (typeof options.ts === 'boolean') {
|
|
739
|
-
throw new TypeError('You must provide `tsconfigPath` settings for @eslint-sukka/ts');
|
|
740
|
-
} else if (options.ts.enable ?? localPkgExports.isPackageExists('typescript')) {
|
|
741
|
-
if (!options.ts.tsconfigPath) {
|
|
742
|
-
throw new TypeError('You must provide `tsconfigPath` settings for @eslint-sukka/ts');
|
|
743
|
-
}
|
|
744
|
-
flatConfigs.push((await foxquire('@eslint-sukka/ts')).typescript(options.ts));
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
// react
|
|
748
|
-
if (enabled(options.react)) {
|
|
749
|
-
flatConfigs.push((await foxquire('@eslint-sukka/react')).react(config(options.react)));
|
|
750
|
-
}
|
|
751
|
-
// node
|
|
752
|
-
if (enabled(options.node)) {
|
|
753
|
-
flatConfigs.push((await foxquire('@eslint-sukka/node')).node(config(options.node)));
|
|
754
|
-
}
|
|
755
|
-
// legacy
|
|
756
|
-
if (enabled(options.legacy)) {
|
|
757
|
-
flatConfigs.push((await foxquire('@eslint-sukka/legacy')).legacy(config(options.legacy)));
|
|
758
|
-
}
|
|
759
|
-
flatConfigs.push(userConfig);
|
|
760
|
-
return flatConfigs.flat();
|
|
761
|
-
};Object.defineProperty(exports,'constants',{enumerable:true,get:function(){return shared$1.constants}});exports.ignores=ignores;exports.sukka=sukka;
|
|
1
|
+
"use strict";let t;const e=t=>Promise.resolve(require(t));var i,s=require("@eslint-sukka/shared"),r=require("node:fs"),n=require("fs"),a=require("node:path");require("node:fs/promises");var o=require("node:process"),h=require("node:module"),p=require("node:url"),c=require("node:assert"),l=require("node:v8"),u=require("node:util"),d=require("ci-info"),f=function(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var i=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var s=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:function(){return t[e]}})}),i}((i=Object.create(null),n&&Object.keys(n).forEach(function(t){if("default"!==t){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}}),i.default=n,i));const m=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),g=/[<>:"|?*\n\r\t\f\x00-\x1F]/,x=/(?:^|\/)[*]{2}($|\/)/,v=t=>"string"==typeof t&&t.length<=248&&!g.test(t),y=t=>String(t).split(/\r\n?|\n/),_=t=>t.startsWith("#"),b=t=>m(t)&&t.patterns&&t.sections,k=(t,e={})=>{let i,s=e.path;if(b(t))return t;v(t)&&f.existsSync(t)&&(s=t,t=f.readFileSync(t));let r=y(t),n=new Map,a={sections:[],patterns:[]},o={name:"default",patterns:[]};for(let t of r){let e=t.trim();if(e.startsWith("#")){let[,t]=/^#+\s*(.*)\s*$/.exec(e);if(i){n.delete(i.name),i.comment+=e?`
|
|
2
|
+
${e}`:"",i.name=t?`${i.name.trim()}
|
|
3
|
+
${t.trim()}`:i.name.trim(),n.set(i.name.toLowerCase().trim(),i);continue}o={name:t.trim(),comment:e,patterns:[]},n.set(o.name.toLowerCase(),o),a.sections.push(o),i=o;continue}""!==e&&(o.patterns.push(e),a.patterns.push(e)),i=null}return(!0===e.dedupe||!0===e.unique)&&(a=E(a,{...e,format:!1})),a.path=s,a.input=Buffer.from(t),a.format=t=>P(a,{...e,...t}),a.dedupe=t=>E(a,{...e,...t}),a.globs=t=>S(a,{path:s,...e,...t}),a},E=(t,e)=>{let i;let s=k(t,{...e,dedupe:!1}),r=new Map,n={sections:[],patterns:new Set};for(let t of s.sections){let{name:e="",comment:s,patterns:a}=t,o=e.trim().toLowerCase();for(let t of a)n.patterns.add(t);e&&r.has(o)?(i=r.get(o)).patterns=[...i.patterns,...a]:(i={name:e,comment:s,patterns:a},n.sections.push(i),r.set(o,i))}for(let t of n.sections)t.patterns=[...new Set(t.patterns)];return n.patterns=[...n.patterns],n},w=(t,e)=>{if(x.test(t))return t;let i=!1;return t.startsWith("/")?(t=t.slice(1),i=!0):t.slice(1,t.length-1).includes("/")&&(i=!0),t+=t.endsWith("/")?"**/":"/**",i?t:`**/${t}`},S=(t,e={})=>{let i=k(t,e),s=[],r=0,n=i.patterns.concat(e.ignore||[]).concat((e.unignore||[]).map(t=>t.startsWith("!")?t:"!"+t)),a=(t,i)=>{let n=s[s.length-1],a=t?"unignore":"ignore";n&&n.type===a?n.patterns.includes(i)||n.patterns.push(i):(s.push({type:a,path:e.path||null,patterns:[i],index:r}),r++)};for(let t of n){let e="";t.startsWith("!")&&(t=t.slice(1),e="!"),a(e,t.startsWith("/")?t.slice(1):t),a(e,w(t))}return s},C=(t={})=>{let e=[t.comment||""];return t.patterns?.length&&(e.push(t.patterns.join("\n")),e.push("")),e.join("\n")},P=(t,e={})=>{let i=k(t,e),s=e.formatSection||C,r=i.sections||i,n=[];for(let t of[].concat(r))n.push(s(t));return n.join("\n")};k.file=(t,e)=>k(f.readFileSync(t,"utf8"),e),k.parse=k,k.dedupe=E,k.format=P,k.globs=S,k.formatSection=C,k.patterns=t=>y(t).map(t=>t.trim()).filter(t=>""!==t&&!_(t));var I=k&&k.__esModule&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k;function A(t={}){let e=[],{files:i=".gitignore"}=t,s=Array.isArray(i)?i:[i];for(let t of s){let i=r.readFileSync(t,"utf8"),s=I(i),n=s.globs();for(let t of n)"ignore"===t.type?e.push(...t.patterns):"unignore"===t.type&&e.push(...t.patterns.map(t=>`!${t}`))}return{ignores:e}}const R=(t={})=>{let{customGlobs:e=null,gitignore:i=[".gitignore"]}=t,r=[],n=[];return!1===e||null===e?n=s.constants.GLOB_EXCLUDE:"string"==typeof e?n.push(e):Array.isArray(e)&&(n=e),r.push({ignores:n}),!1===i||null===i||(!0===i?r.push(A({files:[".gitignore"]})):"string"==typeof i?r.push(A({files:[i]})):Array.isArray(i)&&r.push(A({files:i}))),r};var T=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],L=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],N="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",V={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},O="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",D={5:O,"5module":O+" export import",6:O+" const class extends export import super"},U=/^in(stanceof)?$/,M=RegExp("["+N+"]"),j=RegExp("["+N+"\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function B(t,e){for(var i=65536,s=0;s<e.length&&!((i+=e[s])>t);s+=2)if((i+=e[s+1])>=t)return!0;return!1}function F(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&M.test(String.fromCharCode(t)):!1!==e&&B(t,L)))}function $(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&j.test(String.fromCharCode(t)):!1!==e&&(B(t,L)||B(t,T)))))}var W=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function q(t,e){return new W(t,{beforeExpr:!0,binop:e})}var G={beforeExpr:!0},H={startsExpr:!0},z={};function K(t,e){return void 0===e&&(e={}),e.keyword=t,z[t]=new W(t,e)}var Q={num:new W("num",H),regexp:new W("regexp",H),string:new W("string",H),name:new W("name",H),privateId:new W("privateId",H),eof:new W("eof"),bracketL:new W("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new W("]"),braceL:new W("{",{beforeExpr:!0,startsExpr:!0}),braceR:new W("}"),parenL:new W("(",{beforeExpr:!0,startsExpr:!0}),parenR:new W(")"),comma:new W(",",G),semi:new W(";",G),colon:new W(":",G),dot:new W("."),question:new W("?",G),questionDot:new W("?."),arrow:new W("=>",G),template:new W("template"),invalidTemplate:new W("invalidTemplate"),ellipsis:new W("...",G),backQuote:new W("`",H),dollarBraceL:new W("${",{beforeExpr:!0,startsExpr:!0}),eq:new W("=",{beforeExpr:!0,isAssign:!0}),assign:new W("_=",{beforeExpr:!0,isAssign:!0}),incDec:new W("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new W("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:q("||",1),logicalAND:q("&&",2),bitwiseOR:q("|",3),bitwiseXOR:q("^",4),bitwiseAND:q("&",5),equality:q("==/!=/===/!==",6),relational:q("</>/<=/>=",7),bitShift:q("<</>>/>>>",8),plusMin:new W("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:q("%",10),star:q("*",10),slash:q("/",10),starstar:new W("**",{beforeExpr:!0}),coalesce:q("??",1),_break:K("break"),_case:K("case",G),_catch:K("catch"),_continue:K("continue"),_debugger:K("debugger"),_default:K("default",G),_do:K("do",{isLoop:!0,beforeExpr:!0}),_else:K("else",G),_finally:K("finally"),_for:K("for",{isLoop:!0}),_function:K("function",H),_if:K("if"),_return:K("return",G),_switch:K("switch"),_throw:K("throw",G),_try:K("try"),_var:K("var"),_const:K("const"),_while:K("while",{isLoop:!0}),_with:K("with"),_new:K("new",{beforeExpr:!0,startsExpr:!0}),_this:K("this",H),_super:K("super",H),_class:K("class",H),_extends:K("extends",G),_export:K("export"),_import:K("import",H),_null:K("null",H),_true:K("true",H),_false:K("false",H),_in:K("in",{beforeExpr:!0,binop:7}),_instanceof:K("instanceof",{beforeExpr:!0,binop:7}),_typeof:K("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:K("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:K("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},X=/\r\n?|\n|\u2028|\u2029/,Y=RegExp(X.source,"g");function Z(t){return 10===t||13===t||8232===t||8233===t}function J(t,e,i){void 0===i&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(Z(r))return s<i-1&&13===r&&10===t.charCodeAt(s+1)?s+2:s+1}return -1}var tt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,te=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ti=Object.prototype,ts=ti.hasOwnProperty,tr=ti.toString,tn=Object.hasOwn||function(t,e){return ts.call(t,e)},ta=Array.isArray||function(t){return"[object Array]"===tr.call(t)};function to(t){return RegExp("^(?:"+t.replace(/ /g,"|")+")$")}function th(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}var tp=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,tc=function(t,e){this.line=t,this.column=e};tc.prototype.offset=function(t){return new tc(this.line,this.column+t)};var tl=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function tu(t,e){for(var i=1,s=0;;){var r=J(t,s,e);if(r<0)return new tc(i,e-s);++i,s=r}}var td={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},tf=!1;function tm(t,e){return 2|(t?4:0)|(e?8:0)}var tg=function(t,e,i){this.options=t=function(t){var e,i={};for(var s in td)i[s]=t&&tn(t,s)?t[s]:td[s];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!tf&&"object"==typeof console&&console.warn&&(tf=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),t&&null!=t.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),ta(i.onToken)){var r=i.onToken;i.onToken=function(t){return r.push(t)}}return ta(i.onComment)&&(i.onComment=(e=i.onComment,function(t,s,r,n,a,o){var h={type:t?"Block":"Line",value:s,start:r,end:n};i.locations&&(h.loc=new tl(this,a,o)),i.ranges&&(h.range=[r,n]),e.push(h)})),i}(t),this.sourceFile=t.sourceFile,this.keywords=to(D[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var s="";!0!==t.allowReserved&&(s=V[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(s+=" await")),this.reservedWords=to(s);var r=(s?s+" ":"")+V.strict;this.reservedWordsStrict=to(r),this.reservedWordsStrictBind=to(r+" "+V.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(X).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Q.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},tx={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};tg.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},tx.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},tx.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},tx.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},tx.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},tx.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},tx.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},tx.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},tx.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},tx.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},tg.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},tg.parse=function(t,e){return new this(e,t).parse()},tg.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},tg.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(tg.prototype,tx);var tv=tg.prototype,ty=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;tv.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){te.lastIndex=t,t+=te.exec(this.input)[0].length;var e=ty.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){te.lastIndex=t+e[0].length;var i=te.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||X.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,te.lastIndex=t,t+=te.exec(this.input)[0].length,";"===this.input[t]&&t++}},tv.eat=function(t){return this.type===t&&(this.next(),!0)},tv.isContextual=function(t){return this.type===Q.name&&this.value===t&&!this.containsEsc},tv.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},tv.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},tv.canInsertSemicolon=function(){return this.type===Q.eof||this.type===Q.braceR||X.test(this.input.slice(this.lastTokEnd,this.start))},tv.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tv.semicolon=function(){this.eat(Q.semi)||this.insertSemicolon()||this.unexpected()},tv.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},tv.expect=function(t){this.eat(t)||this.unexpected()},tv.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var t_=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};tv.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},tv.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},tv.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tv.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var tb=tg.prototype;tb.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==Q.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var tk={kind:"loop"},tE={kind:"switch"};tb.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;te.lastIndex=this.pos;var e=te.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(91===s||92===s)return!0;if(t)return!1;if(123===s||s>55295&&s<56320)return!0;if(F(s,!0)){for(var r=i+1;$(s=this.input.charCodeAt(r),!0);)++r;if(92===s||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!U.test(n))return!0}return!1},tb.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;te.lastIndex=this.pos;var t,e=te.exec(this.input),i=this.pos+e[0].length;return!X.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!($(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},tb.parseStatement=function(t,e,i){var s,r=this.type,n=this.startNode();switch(this.isLet(t)&&(r=Q._var,s="let"),r){case Q._break:case Q._continue:return this.parseBreakContinueStatement(n,r.keyword);case Q._debugger:return this.parseDebuggerStatement(n);case Q._do:return this.parseDoStatement(n);case Q._for:return this.parseForStatement(n);case Q._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case Q._class:return t&&this.unexpected(),this.parseClass(n,!0);case Q._if:return this.parseIfStatement(n);case Q._return:return this.parseReturnStatement(n);case Q._switch:return this.parseSwitchStatement(n);case Q._throw:return this.parseThrowStatement(n);case Q._try:return this.parseTryStatement(n);case Q._const:case Q._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case Q._while:return this.parseWhileStatement(n);case Q._with:return this.parseWithStatement(n);case Q.braceL:return this.parseBlock(!0,n);case Q.semi:return this.parseEmptyStatement(n);case Q._export:case Q._import:if(this.options.ecmaVersion>10&&r===Q._import){te.lastIndex=this.pos;var a=te.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===Q._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var p=this.value,c=this.parseExpression();if(r===Q.name&&"Identifier"===c.type&&this.eat(Q.colon))return this.parseLabeledStatement(n,p,c,t);return this.parseExpressionStatement(n,c)}},tb.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(Q.semi)||this.insertSemicolon()?t.label=null:this.type!==Q.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((null==t.label||r.name===t.label.name)&&(null!=r.kind&&(i||"loop"===r.kind)||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},tb.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},tb.parseDoStatement=function(t){return this.next(),this.labels.push(tk),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(Q._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Q.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},tb.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(tk),this.enterScope(0),this.expect(Q.parenL),this.type===Q.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===Q._var||this.type===Q._const||i){var s=this.startNode(),r=i?"let":this.value;return(this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===Q._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===Q._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var n=this.isContextual("let"),a=!1,o=new t_,h=this.parseExpression(!(e>-1)||"await",o);return this.type===Q._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===Q._in?e>-1&&this.unexpected(e):t.await=e>-1),n&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,o),this.checkLValPattern(h),this.parseForIn(t,h)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,h))},tb.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,tS|(i?0:tC),!1,e)},tb.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(Q._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},tb.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Q.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},tb.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Q.braceL),this.labels.push(tE),this.enterScope(0);for(var e,i=!1;this.type!==Q.braceR;)if(this.type===Q._case||this.type===Q._default){var s=this.type===Q._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(Q.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},tb.parseThrowStatement=function(t){return this.next(),X.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var tw=[];tb.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(Q.parenR),t},tb.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Q._catch){var e=this.startNode();this.next(),this.eat(Q.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Q._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},tb.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},tb.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(tk),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},tb.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},tb.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},tb.parseLabeledStatement=function(t,e,i,s){for(var r=0,n=this.labels;r<n.length;r+=1)n[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===Q._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var h=this.labels[o];if(h.statementStart===t.start)h.statementStart=this.start,h.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},tb.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},tb.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(Q.braceL),t&&this.enterScope(0);this.type!==Q.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},tb.parseFor=function(t,e){return t.init=e,this.expect(Q.semi),t.test=this.type===Q.semi?null:this.parseExpression(),this.expect(Q.semi),t.update=this.type===Q.parenR?null:this.parseExpression(),this.expect(Q.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},tb.parseForIn=function(t,e){var i=this.type===Q._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(Q.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},tb.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(Q.eq)?r.init=this.parseMaybeAssign(e):s||"const"!==i||this.type===Q._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"Identifier"===r.id.type||e&&(this.type===Q._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Q.comma))break}return t},tb.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var tS=1,tC=2;function tP(t,e){var i=t.computed,s=t.key;return!i&&("Identifier"===s.type&&s.name===e||"Literal"===s.type&&s.value===e)}tb.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===Q.star&&e&tC&&this.unexpected(),t.generator=this.eat(Q.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&tS&&(t.id=4&e&&this.type!==Q.name?null:this.parseIdent(),t.id&&!(e&tC)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(tm(t.async,t.generator)),e&tS||(t.id=this.type===Q.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&tS?"FunctionDeclaration":"FunctionExpression")},tb.parseFunctionParams=function(t){this.expect(Q.parenL),t.params=this.parseBindingList(Q.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},tb.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(Q.braceL);this.type!==Q.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(t,e){var i=e.key.name,s=t[i],r="true";return("MethodDefinition"===e.type&&("get"===e.kind||"set"===e.kind)&&(r=(e.static?"s":"i")+e.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r)?(t[i]="true",!1):!!s||(t[i]=r,!1)}(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},tb.parseClassElement=function(t){if(this.eat(Q.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(Q.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===Q.star?o=!0:s="static"}if(i.static=o,!s&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===Q.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(e>=9||!n)&&this.eat(Q.star)&&(r=!0),!s&&!n&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===Q.parenL||"method"!==a||r||n){var p=!i.static&&tP(i,"constructor"),c=p&&t;p&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=p?"constructor":a,this.parseClassMethod(i,r,n,c)}else this.parseClassField(i);return i},tb.isClassElementNameStart=function(){return this.type===Q.name||this.type===Q.privateId||this.type===Q.num||this.type===Q.string||this.type===Q.bracketL||this.type.keyword},tb.parseClassElementName=function(t){this.type===Q.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},tb.parseClassMethod=function(t,e,i,s){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&tP(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,i,s);return"get"===t.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===t.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},tb.parseClassField=function(t){if(tP(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&tP(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Q.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},tb.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Q.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},tb.parseClassId=function(t,e){this.type===Q.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},tb.parseClassSuper=function(t){t.superClass=this.eat(Q._extends)?this.parseExprSubscripts(null,!1):null},tb.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},tb.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var a=i[n];tn(e,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},tb.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==Q.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},tb.parseExport=function(t,e){if(this.next(),this.eat(Q.star))return this.parseExportAllDeclaration(t,e);if(this.eat(Q._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Q.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},tb.parseExportDeclaration=function(t){return this.parseStatement(null)},tb.parseExportDefaultDeclaration=function(){if(this.type===Q._function||(t=this.isAsyncFunction())){var t,e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|tS,!1,t)}if(this.type===Q._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},tb.checkExport=function(t,e,i){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),tn(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},tb.checkPatternExport=function(t,e){var i=e.type;if("Identifier"===i)this.checkExport(t,e,e.start);else if("ObjectPattern"===i)for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(t,n)}else if("ArrayPattern"===i)for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(t,h)}else"Property"===i?this.checkPatternExport(t,e.value):"AssignmentPattern"===i?this.checkPatternExport(t,e.left):"RestElement"===i?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(t,e.expression)},tb.checkVariableExport=function(t,e){if(t)for(var i=0;i<e.length;i+=1){var s=e[i];this.checkPatternExport(t,s.id)}},tb.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},tb.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},tb.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(Q.braceL);!this.eat(Q.braceR);){if(i)i=!1;else if(this.expect(Q.comma),this.afterTrailingComma(Q.braceR))break;e.push(this.parseExportSpecifier(t))}return e},tb.parseImport=function(t){return this.next(),this.type===Q.string?(t.specifiers=tw,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Q.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},tb.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},tb.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},tb.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},tb.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Q.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(Q.comma)))return t;if(this.type===Q.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(Q.braceL);!this.eat(Q.braceR);){if(e)e=!1;else if(this.expect(Q.comma),this.afterTrailingComma(Q.braceR))break;t.push(this.parseImportSpecifier())}return t},tb.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Q.string){var t=this.parseLiteral(this.value);return tp.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},tb.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},tb.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var tI=tg.prototype;tI.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,e),"RestElement"===n.type&&("ArrayPattern"===n.argument.type||"ObjectPattern"===n.argument.type)&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},tI.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var n=t[i-1];6===this.options.ecmaVersion&&e&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return t},tI.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},tI.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Q.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},tI.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Q.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Q.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Q.braceL:return this.parseObj(!0)}return this.parseIdent()},tI.parseBindingList=function(t,e,i,s){for(var r=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(Q.comma),e&&this.type===Q.comma)r.push(null);else if(i&&this.afterTrailingComma(t))break;else if(this.type===Q.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===Q.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else r.push(this.parseAssignableListItem(s));return r},tI.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},tI.parseBindingListItem=function(t){return t},tI.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Q.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},tI.checkLValSimple=function(t,e,i){void 0===e&&(e=0);var s=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(tn(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},tI.checkLValPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,e,i)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}},tI.checkLValInnerPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var tA=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},tR={b_stat:new tA("{",!1),b_expr:new tA("{",!0),b_tmpl:new tA("${",!1),p_stat:new tA("(",!1),p_expr:new tA("(",!0),q_tmpl:new tA("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new tA("function",!1),f_expr:new tA("function",!0),f_expr_gen:new tA("function",!0,!1,null,!0),f_gen:new tA("function",!1,!1,null,!0)},tT=tg.prototype;tT.initialContext=function(){return[tR.b_stat]},tT.curContext=function(){return this.context[this.context.length-1]},tT.braceIsBlock=function(t){var e=this.curContext();return e===tR.f_expr||e===tR.f_stat||(t===Q.colon&&(e===tR.b_stat||e===tR.b_expr)?!e.isExpr:t===Q._return||t===Q.name&&this.exprAllowed?X.test(this.input.slice(this.lastTokEnd,this.start)):t===Q._else||t===Q.semi||t===Q.eof||t===Q.parenR||t===Q.arrow||(t===Q.braceL?e===tR.b_stat:t!==Q._var&&t!==Q._const&&t!==Q.name&&!this.exprAllowed))},tT.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},tT.updateContext=function(t){var e,i=this.type;i.keyword&&t===Q.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},tT.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},Q.parenR.updateContext=Q.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var t=this.context.pop();t===tR.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr},Q.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?tR.b_stat:tR.b_expr),this.exprAllowed=!0},Q.dollarBraceL.updateContext=function(){this.context.push(tR.b_tmpl),this.exprAllowed=!0},Q.parenL.updateContext=function(t){var e=t===Q._if||t===Q._for||t===Q._with||t===Q._while;this.context.push(e?tR.p_stat:tR.p_expr),this.exprAllowed=!0},Q.incDec.updateContext=function(){},Q._function.updateContext=Q._class.updateContext=function(t){!t.beforeExpr||t===Q._else||t===Q.semi&&this.curContext()!==tR.p_stat||t===Q._return&&X.test(this.input.slice(this.lastTokEnd,this.start))||(t===Q.colon||t===Q.braceL)&&this.curContext()===tR.b_stat?this.context.push(tR.f_stat):this.context.push(tR.f_expr),this.exprAllowed=!1},Q.backQuote.updateContext=function(){this.curContext()===tR.q_tmpl?this.context.pop():this.context.push(tR.q_tmpl),this.exprAllowed=!1},Q.star.updateContext=function(t){if(t===Q._function){var e=this.context.length-1;this.context[e]===tR.f_expr?this.context[e]=tR.f_expr_gen:this.context[e]=tR.f_gen}this.exprAllowed=!0},Q.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==Q.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var tL=tg.prototype;tL.checkPropClash=function(t,e,i){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==t.type)&&(!(this.options.ecmaVersion>=6)||!t.computed&&!t.method&&!t.shorthand)){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6){"__proto__"===s&&"init"===n&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);return}var a=e[s="$"+s];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[s]={init:!1,get:!1,set:!1},a[n]=!0}},tL.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===Q.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(Q.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return r},tL.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,n=-1,a=-1;e?(r=e.parenthesizedAssign,n=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new t_,s=!0);var o=this.start,h=this.startLoc;(this.type===Q.parenL||this.type===Q.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var p=this.parseMaybeConditional(t,e);if(i&&(p=i.call(this,p,o,h)),this.type.isAssign){var c=this.startNodeAt(o,h);return c.operator=this.value,this.type===Q.eq&&(p=this.toAssignable(p,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=p.start&&(e.shorthandAssign=-1),this.type===Q.eq?this.checkLValPattern(p):this.checkLValSimple(p),c.left=p,this.next(),c.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),n>-1&&(e.trailingComma=n),p},tL.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(Q.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(Q.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return r},tL.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)?r:r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,t)},tL.parseExprOp=function(t,e,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==Q._in)&&n>s){var a=this.type===Q.logicalOR||this.type===Q.logicalAND,o=this.type===Q.coalesce;o&&(n=Q.logicalAND.binop);var h=this.value;this.next();var p=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),p,c,n,r),u=this.buildBinary(e,i,t,l,h,a||o);return(a&&this.type===Q.coalesce||o&&(this.type===Q.logicalOR||this.type===Q.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,i,s,r)}return t},tL.buildBinary=function(t,e,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=i,a.operator=r,a.right=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},tL.parseMaybeUnary=function(t,e,i,s){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===Q.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function t(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&t(e.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==Q.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(n,a);p.operator=this.value,p.prefix=!1,p.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(p,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==Q._in&&this.unexpected();return!i&&this.eat(Q.starstar)?e?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1):r},tL.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,e);return t&&"MemberExpression"===n.type&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n},tL.parseSubscripts=function(t,e,i,s,r){for(var n=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,i,s,n,a,r);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var h=this.startNodeAt(e,i);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}t=o}},tL.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Q.arrow)},tL.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},tL.parseSubscript=function(t,e,i,s,r,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(Q.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(Q.bracketL);if(p||h&&this.type!==Q.parenL&&this.type!==Q.backQuote||this.eat(Q.dot)){var c=this.startNodeAt(e,i);c.object=t,p?(c.property=this.parseExpression(),this.expect(Q.bracketR)):this.type===Q.privateId&&"Super"!==t.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!p,o&&(c.optional=h),t=this.finishNode(c,"MemberExpression")}else if(!s&&this.eat(Q.parenL)){var l=new t_,u=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(Q.parenR,this.options.ecmaVersion>=8,!1,l);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(e,i,m,a);this.checkExpressionErrors(l,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(e,i);g.callee=t,g.arguments=m,o&&(g.optional=h),t=this.finishNode(g,"CallExpression")}else if(this.type===Q.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(e,i);x.tag=t,x.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(x,"TaggedTemplateExpression")}return t},tL.parseExprAtom=function(t,e,i){this.type===Q.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Q._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Q.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Q.dot&&this.type!==Q.bracketL&&this.type!==Q.parenL&&this.unexpected(),this.finishNode(s,"Super");case Q._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Q.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===h.name&&!this.canInsertSemicolon()&&this.eat(Q._function))return this.overrideContext(tR.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(Q.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,e);if(this.options.ecmaVersion>=8&&"async"===h.name&&this.type===Q.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(Q.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,e)}return h;case Q.regexp:var p=this.value;return(s=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},s;case Q.num:case Q.string:return this.parseLiteral(this.value);case Q._null:case Q._true:case Q._false:return(s=this.startNode()).value=this.type===Q._null?null:this.type===Q._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Q.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),l;case Q.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Q.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case Q.braceL:return this.overrideContext(tR.b_expr),this.parseObj(!1,t);case Q._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Q._class:return this.parseClass(this.startNode(),!1);case Q._new:return this.parseNew();case Q.backQuote:return this.parseTemplate();case Q._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(i);return this.unexpected();default:return this.parseExprAtomDefault()}},tL.parseExprAtomDefault=function(){this.unexpected()},tL.parseExprImport=function(t){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==Q.parenL||t?this.type===Q.dot?(e.meta=i,this.parseImportMeta(e)):void this.unexpected():this.parseDynamicImport(e)},tL.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(Q.parenR)){var e=this.start;this.eat(Q.comma)&&this.eat(Q.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},tL.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},tL.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},tL.parseParenExpression=function(){this.expect(Q.parenL);var t=this.parseExpression();return this.expect(Q.parenR),t},tL.shouldParseArrow=function(t){return!this.canInsertSemicolon()},tL.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,h=this.startLoc,p=[],c=!0,l=!1,u=new t_,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Q.parenR;){if(c?c=!1:this.expect(Q.comma),n&&this.afterTrailingComma(Q.parenR,!0)){l=!0;break}if(this.type===Q.ellipsis){a=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===Q.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(Q.parenR),t&&this.shouldParseArrow(p)&&this.eat(Q.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(s,r,p,e);(!p.length||l)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,p.length>1?((i=this.startNodeAt(o,h)).expressions=p,this.finishNodeAt(i,"SequenceExpression",m,g)):i=p[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var x=this.startNodeAt(s,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")},tL.parseParenItem=function(t){return t},tL.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var tN=[];tL.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Q.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(Q.parenL)?t.arguments=this.parseExprList(Q.parenR,this.options.ecmaVersion>=8,!1):t.arguments=tN,this.finishNode(t,"NewExpression")},tL.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===Q.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===Q.backQuote,this.finishNode(i,"TemplateElement")},tL.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===Q.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Q.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(Q.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},tL.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Q.name||this.type===Q.num||this.type===Q.string||this.type===Q.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Q.star)&&!X.test(this.input.slice(this.lastTokEnd,this.start))},tL.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(Q.braceR);){if(s)s=!1;else if(this.expect(Q.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Q.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,r,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},tL.parseProperty=function(t,e){var i,s,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Q.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===Q.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===Q.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,n=this.startLoc),t||(i=this.eat(Q.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(Q.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,t,i,s,r,n,e,o),this.finishNode(a,"Property")},tL.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},tL.parsePropertyValue=function(t,e,i,s,r,n,a,o){(i||s)&&this.type===Q.colon&&this.unexpected(),this.eat(Q.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===Q.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Q.comma||this.type===Q.braceR||this.type===Q.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key)):this.type===Q.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},tL.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Q.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Q.bracketR),t.key;t.computed=!1}return t.key=this.type===Q.num||this.type===Q.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tL.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},tL.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|tm(e,s.generator)|(i?128:0)),this.expect(Q.parenL),s.params=this.parseBindingList(Q.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},tL.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|tm(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},tL.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==Q.braceL,n=this.strict,a=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!n||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!n&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},tL.isSimpleParamList=function(t){for(var e=0;e<t.length;e+=1)if("Identifier"!==t[e].type)return!1;return!0},tL.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,1,e?null:i)}},tL.parseExprList=function(t,e,i,s){for(var r=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(Q.comma),e&&this.afterTrailingComma(t))break;var a=void 0;i&&this.type===Q.comma?a=null:this.type===Q.ellipsis?(a=this.parseSpread(s),s&&this.type===Q.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},tL.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===s&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===s||"await"===s)&&this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(e,i).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},tL.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},tL.parseIdentNode=function(){var t=this.startNode();return this.type===Q.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,("class"===t.name||"function"===t.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop()):this.unexpected(),t},tL.parsePrivateIdent=function(){var t=this.startNode();return this.type===Q.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},tL.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===Q.semi||this.canInsertSemicolon()||this.type!==Q.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(Q.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},tL.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var tV=tg.prototype;tV.raise=function(t,e){var i=tu(this.input,t),s=SyntaxError(e+=" ("+i.line+":"+i.column+")");throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},tV.raiseRecoverable=tV.raise,tV.curPosition=function(){if(this.options.locations)return new tc(this.curLine,this.pos-this.lineStart)};var tO=tg.prototype,tD=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};tO.enterScope=function(t){this.scopeStack.push(new tD(t))},tO.exitScope=function(){this.scopeStack.pop()},tO.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},tO.declareName=function(t,e,i){var s=!1;if(2===e){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(t)>-1:n.lexical.indexOf(t)>-1||n.var.indexOf(t)>-1,n.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},tO.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},tO.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tO.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},tO.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var tU=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new tl(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tM=tg.prototype;function tj(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}tM.startNode=function(){return new tU(this,this.start,this.startLoc)},tM.startNodeAt=function(t,e){return new tU(this,t,e)},tM.finishNode=function(t,e){return tj.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tM.finishNodeAt=function(t,e,i,s){return tj.call(this,t,e,i,s)},tM.copyNode=function(t){var e=new tU(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};for(var tB="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",tF=tB+" Extended_Pictographic",t$=tF+" EBase EComp EMod EPres ExtPict",tW={9:tB,10:tF,11:tF,12:t$,13:t$,14:t$},tq={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tG="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tH="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",tz=tH+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tK=tz+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tQ=tK+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tX=tQ+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tY={9:tH,10:tz,11:tK,12:tQ,13:tX,14:tX+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tZ={},tJ=0,t1=[9,10,11,12,13,14];tJ<t1.length;tJ+=1)!function(t){var e=tZ[t]={binary:to(tW[t]+" "+tG),binaryOfStrings:to(tq[t]),nonBinary:{General_Category:to(tG),Script:to(tY[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}(t1[tJ]);var t0=tg.prototype,t2=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tZ[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function t3(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function t4(t){return t>=65&&t<=90||t>=97&&t<=122}function t6(t){return t4(t)||95===t}function t5(t){return t>=48&&t<=57}function t9(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function t8(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function t7(t){return t>=48&&t<=55}t2.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},t2.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},t2.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return -1;var r=i.charCodeAt(t);if(!(e||this.switchU)||r<=55295||r>=57344||t+1>=s)return r;var n=i.charCodeAt(t+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},t2.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,n=i.charCodeAt(t);return!(e||this.switchU)||n<=55295||n>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},t2.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},t2.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},t2.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},t2.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},t2.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,s=0;s<t.length;s+=1){var r=t[s],n=this.at(i,e);if(-1===n||n!==r)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},t0.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,n=0;n<i.length;n++){var a=i.charAt(n);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},t0.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},t0.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];-1===t.groupNames.indexOf(s)&&t.raise("Invalid named capture referenced")}},t0.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},t0.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},t0.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?!!this.regexp_eatAtom(t):!!this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},t0.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},t0.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},t0.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},t0.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return -1!==r&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},t0.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},t0.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},t0.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},t0.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},t0.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},t0.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},t0.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!t3(e)&&(t.lastIntValue=e,t.advance(),!0)},t0.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!t3(i);)t.advance();return t.pos!==e},t0.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return -1!==e&&36!==e&&(!(e>=40)||!(e<=43))&&46!==e&&63!==e&&91!==e&&94!==e&&124!==e&&(t.advance(),!0)},t0.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}},t0.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},t0.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=th(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=th(t.lastIntValue);return!0}return!1},t0.regexp_eatRegExpIdentifierStart=function(t){var e,i=t.pos,s=this.options.ecmaVersion>=11,r=t.current(s);return(t.advance(s),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(r=t.lastIntValue),F(e=r,!0)||36===e||95===e)?(t.lastIntValue=r,!0):(t.pos=i,!1)},t0.regexp_eatRegExpIdentifierPart=function(t){var e,i=t.pos,s=this.options.ecmaVersion>=11,r=t.current(s);return(t.advance(s),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(r=t.lastIntValue),$(e=r,!0)||36===e||95===e||8204===e||8205===e)?(t.lastIntValue=r,!0):(t.pos=i,!1)},t0.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},t0.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},t0.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},t0.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},t0.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},t0.regexp_eatZero=function(t){return!(48!==t.current()||t5(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},t0.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},t0.regexp_eatControlLetter=function(t){var e=t.current();return!!t4(e)&&(t.lastIntValue=e%32,t.advance(),!0)},t0.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r,n=t.lastIntValue;if(s&&n>=55296&&n<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=n}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(r=t.lastIntValue)>=0&&r<=1114111)return!0;s&&t.raise("Invalid unicode escape"),t.pos=i}return!1},t0.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return 99!==e&&(!t.switchN||107!==e)&&(t.lastIntValue=e,t.advance(),!0)},t0.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1},t0.regexp_eatCharacterClassEscape=function(t){var e,i=t.current();if(100===i||68===i||115===i||83===i||119===i||87===i)return t.lastIntValue=-1,t.advance(),1;var s=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((s=80===i)||112===i)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(e=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return s&&2===e&&t.raise("Invalid property name"),e;t.raise("Invalid property name")}return 0},t0.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},t0.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){tn(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},t0.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},t0.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";t6(e=t.current());)t.lastStringValue+=th(e),t.advance();return""!==t.lastStringValue},t0.regexp_eatUnicodePropertyValue=function(t){var e,i=0;for(t.lastStringValue="";t6(e=i=t.current())||t5(e);)t.lastStringValue+=th(i),t.advance();return""!==t.lastStringValue},t0.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},t0.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},t0.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},t0.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},t0.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||t7(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},t0.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},t0.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var s=t.pos;t.eatChars([38,38]);){if(38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))){2!==e&&(i=1);continue}t.raise("Invalid character in character class")}if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},t0.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return -1!==i&&-1!==s&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},t0.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},t0.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&2===s&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},t0.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},t0.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},t0.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},t0.regexp_eatClassSetCharacter=function(t){var e,i=t.pos;if(t.eat(92))return!!(this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1));var s=t.current();return!(s<0||s===t.lookahead()&&(33===s||s>=35&&s<=38||s>=42&&s<=44||46===s||s>=58&&s<=64||94===s||96===s||126===s)||40===(e=s)||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125)&&(t.advance(),t.lastIntValue=s,!0)},t0.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e)&&(t.lastIntValue=e,t.advance(),!0)},t0.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!t5(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},t0.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},t0.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;t5(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},t0.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;t9(i=t.current());)t.lastIntValue=16*t.lastIntValue+t8(i),t.advance();return t.pos!==e},t0.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},t0.regexp_eatOctalDigit=function(t){var e=t.current();return t7(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},t0.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!t9(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+t8(r),t.advance()}return!0};var et=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new tl(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ee=tg.prototype;function ei(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}ee.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new et(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ee.getToken=function(){return this.next(),new et(this)},"undefined"!=typeof Symbol&&(ee[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Q.eof,value:e}}}}),ee.nextToken=function(){var t=this.curContext();return(t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(Q.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},ee.readToken=function(t){return F(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},ee.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},ee.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=J(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},ee.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Z(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},ee.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(t>8&&t<14||t>=5760&&tt.test(String.fromCharCode(t)))++this.pos;else break t}}},ee.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},ee.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(Q.ellipsis)):(++this.pos,this.finishToken(Q.dot))},ee.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Q.assign,2):this.finishOp(Q.slash,1)},ee.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?Q.star:Q.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=Q.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(Q.assign,i+1):this.finishOp(s,i)},ee.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(Q.assign,3):this.finishOp(124===t?Q.logicalOR:Q.logicalAND,2):61===e?this.finishOp(Q.assign,2):this.finishOp(124===t?Q.bitwiseOR:Q.bitwiseAND,1)},ee.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Q.assign,2):this.finishOp(Q.bitwiseXOR,1)},ee.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45===e&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||X.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(Q.incDec,2):61===e?this.finishOp(Q.assign,2):this.finishOp(Q.plusMin,1)},ee.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(Q.assign,i+1):this.finishOp(Q.bitShift,i):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(Q.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ee.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Q.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Q.arrow)):this.finishOp(61===t?Q.eq:Q.prefix,1)},ee.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(Q.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(Q.assign,3):this.finishOp(Q.coalesce,2)}return this.finishOp(Q.question,1)},ee.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,F(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(Q.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+th(e)+"'")},ee.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Q.parenL);case 41:return++this.pos,this.finishToken(Q.parenR);case 59:return++this.pos,this.finishToken(Q.semi);case 44:return++this.pos,this.finishToken(Q.comma);case 91:return++this.pos,this.finishToken(Q.bracketL);case 93:return++this.pos,this.finishToken(Q.bracketR);case 123:return++this.pos,this.finishToken(Q.braceL);case 125:return++this.pos,this.finishToken(Q.braceR);case 58:return++this.pos,this.finishToken(Q.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Q.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(Q.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+th(t)+"'")},ee.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},ee.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(X.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new t2(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,a)}catch(t){}return this.finishToken(Q.regexp,{pattern:r,flags:a,value:h})},ee.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,h=0,p=null==e?1/0:e;h<p;++h,++this.pos){var c=this.input.charCodeAt(this.pos),l=void 0;if(s&&95===c){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if((l=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;o=c,a=a*t+l}return(s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=e&&this.pos-n!==e)?null:a},ee.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=ei(this.input.slice(e,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Q.num,i)},ee.readNumber=function(t){var e,i=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(i,"Invalid number");var s=this.pos-i>=2&&48===this.input.charCodeAt(i);s&&this.strict&&this.raise(i,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&110===r){var n=ei(this.input.slice(i,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Q.num,n)}s&&/[89]/.test(this.input.slice(i,this.pos))&&(s=!1),46!==r||s||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||s||((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),s?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(Q.num,a)},ee.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},ee.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Z(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(Q.string,e)};var es={};ee.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===es)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},ee.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw es;this.raise(t,e)},ee.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===Q.template||this.type===Q.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(Q.dollarBraceL);return++this.pos,this.finishToken(Q.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(Q.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(Z(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},ee.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Q.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},ee.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return th(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(r=parseInt(s=s.slice(0,-1),8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),("0"!==s||56===e||57===e)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}if(Z(e))return"";return String.fromCharCode(e)}},ee.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},ee.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if($(r,s))this.pos+=r<=65535?1:2;else if(92===r){this.containsEsc=!0,t+=this.input.slice(i,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?F:$)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=th(a),i=this.pos}else break;e=!1}return t+this.input.slice(i,this.pos)},ee.readWord=function(){var t=this.readWord1(),e=Q.name;return this.keywords.test(t)&&(e=z[t]),this.finishToken(e,t)},tg.acorn={Parser:tg,version:"8.10.0",defaultOptions:td,Position:tc,SourceLocation:tl,getLineInfo:tu,Node:tU,TokenType:W,tokTypes:Q,keywordTypes:z,TokContext:tA,tokContexts:tR,isIdentifierChar:$,isIdentifierStart:F,Token:et,isNewLine:Z,lineBreak:X,lineBreakG:Y,nonASCIIwhitespace:tt};const er=/\/$|\/\?/,en=/^\.?\//;var ea=function(t,...e){let i=t||"";for(let t of e.filter(t=>t&&"/"!==t))if(i){let e=t.replace(en,"");i=function(t="",e=!1){if(!e)return t.endsWith("/")?t:t+"/";if(function(t="",e=!1){return e?er.test(t):t.endsWith("/")}(t,!0))return t||"/";let[i,...s]=t.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")}(i)+e}else i=t;return i};const eo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,eh=new Set(h.builtinModules);function ep(t){return t.replace(/\\/g,"/")}const ec="win32"===o.platform,el={}.hasOwnProperty,eu=/^([A-Z][a-z\d]*)+$/,ed=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),ef={};function em(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}const eg=new Map;function ex(t,e,i){return eg.set(t,e),function(...e){let s=Error.stackTraceLimit;ev()&&(Error.stackTraceLimit=0);let r=new i;ev()&&(Error.stackTraceLimit=s);let n=function(t,e,i){let s=eg.get(t);if(c(void 0!==s,"expected `message` to be found"),"function"==typeof s)return c(s.length<=e.length,`Code: ${t}; The provided arguments length (${e.length}) does not match the required ones (${s.length}).`),Reflect.apply(s,i,e);let r=/%[dfijoOs]/g,n=0;for(;null!==r.exec(s);)n++;return(c(n===e.length,`Code: ${t}; The provided arguments length (${e.length}) does not match the required ones (${n}).`),0===e.length)?s:(e.unshift(s),Reflect.apply(u.format,null,e))}(t,e,r);return Object.defineProperties(r,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),ey(r),r.code=t,r}}function ev(){try{if(l.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===t?Object.isExtensible(Error):el.call(t,"writable")&&void 0!==t.writable?t.writable:void 0!==t.set}ef.ERR_INVALID_ARG_TYPE=ex("ERR_INVALID_ARG_TYPE",(t,e,i)=>{c("string"==typeof t,"'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";if(t.endsWith(" argument"))s+=`${t} `;else{let e=t.includes(".")?"property":"argument";s+=`"${t}" ${e} `}s+="must be ";let r=[],n=[],a=[];for(let t of e)c("string"==typeof t,"All expected entries have to be of type string"),ed.has(t)?r.push(t.toLowerCase()):null===eu.exec(t)?(c("object"!==t,'The value "object" should be written as "Object"'),a.push(t)):n.push(t);if(n.length>0){let t=r.indexOf("object");-1!==t&&(r.slice(t,1),n.push("Object"))}return r.length>0&&(s+=`${r.length>1?"one of type":"of type"} ${em(r,"or")}`,(n.length>0||a.length>0)&&(s+=" or ")),n.length>0&&(s+=`an instance of ${em(n,"or")}`,a.length>0&&(s+=" or ")),a.length>0&&(a.length>1?s+=`one of ${em(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(s+="an "),s+=`${a[0]}`)),s+=`. Received ${function(t){if(null==t)return String(t);if("function"==typeof t&&t.name)return`function ${t.name}`;if("object"==typeof t)return t.constructor&&t.constructor.name?`an instance of ${t.constructor.name}`:`${u.inspect(t,{depth:-1})}`;let e=u.inspect(t,{colors:!1});return e.length>28&&(e=`${e.slice(0,25)}...`),`type ${typeof t} (${e})`}(i)}`},TypeError),ef.ERR_INVALID_MODULE_SPECIFIER=ex("ERR_INVALID_MODULE_SPECIFIER",(t,e,i)=>`Invalid module "${t}" ${e}${i?` imported from ${i}`:""}`,TypeError),ef.ERR_INVALID_PACKAGE_CONFIG=ex("ERR_INVALID_PACKAGE_CONFIG",(t,e,i)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${i?`. ${i}`:""}`,Error),ef.ERR_INVALID_PACKAGE_TARGET=ex("ERR_INVALID_PACKAGE_TARGET",(t,e,i,s=!1,r)=>{let n="string"==typeof i&&!s&&i.length>0&&!i.startsWith("./");return"."===e?(c(!1===s),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r?` imported from ${r}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r?` imported from ${r}`:""}${n?'; targets must start with "./"':""}`},Error),ef.ERR_MODULE_NOT_FOUND=ex("ERR_MODULE_NOT_FOUND",(t,e,i="package")=>`Cannot find ${i} '${t}' imported from ${e}`,Error),ef.ERR_NETWORK_IMPORT_DISALLOWED=ex("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),ef.ERR_PACKAGE_IMPORT_NOT_DEFINED=ex("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,i)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${i}`,TypeError),ef.ERR_PACKAGE_PATH_NOT_EXPORTED=ex("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,i)=>"."===e?`No "exports" main defined in ${t}package.json${i?` imported from ${i}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${i?` imported from ${i}`:""}`,Error),ef.ERR_UNSUPPORTED_DIR_IMPORT=ex("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),ef.ERR_UNKNOWN_FILE_EXTENSION=ex("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),ef.ERR_INVALID_ARG_VALUE=ex("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let s=u.inspect(e);s.length>128&&(s=`${s.slice(0,128)}...`);let r=t.includes(".")?"property":"argument";return`The ${r} '${t}' ${i}. Received ${s}`},TypeError),ef.ERR_UNSUPPORTED_ESM_URL_SCHEME=ex("ERR_UNSUPPORTED_ESM_URL_SCHEME",(t,e)=>{let i=`Only URLs with a scheme in: ${em(e)} are supported by the default ESM loader`;return ec&&2===t.protocol.length&&(i+=". On Windows, absolute paths must be valid file:// URLs"),i+=`. Received protocol '${t.protocol}'`},Error);const ey=function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}(function(e){let i=ev();return i&&(t=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),i&&(Error.stackTraceLimit=t),e}),e_={read:function(t){try{let e=r.readFileSync(a.toNamespacedPath(a.join(a.dirname(t),"package.json")),"utf8");return{string:e}}catch(t){if("ENOENT"===t.code)return{string:void 0};throw t}}},{ERR_INVALID_PACKAGE_CONFIG:eb}=ef,ek=new Map;function eE(t,e,i){let s;let r=ek.get(t);if(void 0!==r)return r;let n=e_.read(t).string;if(void 0===n){let e={pjsonPath:t,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return ek.set(t,e),e}try{s=JSON.parse(n)}catch(s){throw new eb(t,(i?`"${e}" from `:"")+p.fileURLToPath(i||e),s.message)}let{exports:a,imports:o,main:h,name:c,type:l}=s,u={pjsonPath:t,exists:!0,main:"string"==typeof h?h:void 0,name:"string"==typeof c?c:void 0,type:"module"===l||"commonjs"===l?l:"none",exports:a,imports:o&&"object"==typeof o?o:void 0};return ek.set(t,u),u}function ew(t){let e=new p.URL("package.json",t);for(;;){let i=e.pathname;if(i.endsWith("node_modules/package.json"))break;let s=eE(p.fileURLToPath(e),t);if(s.exists)return s;let r=e;if((e=new p.URL("../package.json",e)).pathname===r.pathname)break}let i=p.fileURLToPath(e),s={pjsonPath:i,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return ek.set(i,s),s}const{ERR_UNKNOWN_FILE_EXTENSION:eS}=ef,eC={}.hasOwnProperty,eP={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},eI={__proto__:null,"data:":function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":"application/json"===e?"json":null},"file:":function(t,e,i){let s=function(t){let e=t.pathname,i=e.length;for(;i--;){let t=e.codePointAt(i);if(47===t)break;if(46===t)return 47===e.codePointAt(i-1)?"":e.slice(i)}return""}(t);if(".js"===s)return"module"===function(t){let e=ew(t);return e.type}(t)?"module":"commonjs";let r=eP[s];if(r)return r;if(i)return;let n=p.fileURLToPath(t);throw new eS(s,n)},"http:":eA,"https:":eA,"node:":()=>"builtin"};function eA(){}const eR=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:eT,ERR_INVALID_MODULE_SPECIFIER:eL,ERR_INVALID_PACKAGE_CONFIG:eN,ERR_INVALID_PACKAGE_TARGET:eV,ERR_MODULE_NOT_FOUND:eO,ERR_PACKAGE_IMPORT_NOT_DEFINED:eD,ERR_PACKAGE_PATH_NOT_EXPORTED:eU,ERR_UNSUPPORTED_DIR_IMPORT:eM,ERR_UNSUPPORTED_ESM_URL_SCHEME:ej}=ef,eB={}.hasOwnProperty,eF=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,e$=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,eW=/^\.|%|\\/,eq=/\*/g,eG=/%2f|%5c/i,eH=new Set,ez=/[/\\]{2}/;function eK(t,e,i,s,r,n,a){let h=p.fileURLToPath(s),c=null!==ez.exec(a?t:e);o.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===i?"":`matched to "${i}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${h}${n?` imported from ${p.fileURLToPath(n)}`:""}.`,"DeprecationWarning","DEP0166")}function eQ(t,e,i,s){var r;let n=(r={parentURL:i.href},eC.call(eI,t.protocol)&&eI[t.protocol](t,r,!0)||null);if("module"!==n)return;let a=p.fileURLToPath(t.href),h=p.fileURLToPath(new p.URL(".",e)),c=p.fileURLToPath(i);s?o.emitWarning(`Package ${h} has a "main" field set to ${JSON.stringify(s)}, excluding the full filename and extension to the resolved file at "${a.slice(h.length)}", imported from ${c}.
|
|
4
|
+
Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):o.emitWarning(`No "main" or "exports" field defined in the package.json for ${h} resolving the main entry point "${a.slice(h.length)}", imported from ${c}.
|
|
5
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function eX(t){try{return r.statSync(t)}catch{return new r.Stats}}function eY(t){let e=r.statSync(t,{throwIfNoEntry:!1}),i=e?e.isFile():void 0;return null!=i&&i}function eZ(t,e,i){return new eU(p.fileURLToPath(new p.URL(".",e)),t,i&&p.fileURLToPath(i))}function eJ(t,e,i,s,r){return e="object"==typeof e&&null!==e?JSON.stringify(e,null,""):`${e}`,new eV(p.fileURLToPath(new p.URL(".",i)),t,e,s,r&&p.fileURLToPath(r))}function e1(t,e,i,s,r,n,a,o,h){if("string"==typeof e)return function(t,e,i,s,r,n,a,o,h){if(""!==e&&!n&&"/"!==t[t.length-1])throw eJ(i,t,s,a,r);if(!t.startsWith("./")){if(a&&!t.startsWith("../")&&!t.startsWith("/")){let i=!1;try{new p.URL(t),i=!0}catch{}if(!i){let i=n?eR.call(eq,t,()=>e):t+e;return e3(i,s,h)}}throw eJ(i,t,s,a,r)}if(null!==eF.exec(t.slice(2))){if(null===e$.exec(t.slice(2))){if(!o){let o=n?i.replace("*",()=>e):i+e,h=n?eR.call(eq,t,()=>e):t;eK(h,o,i,s,a,r,!0)}}else throw eJ(i,t,s,a,r)}let c=new p.URL(t,s),l=c.pathname,u=new p.URL(".",s).pathname;if(!l.startsWith(u))throw eJ(i,t,s,a,r);if(""===e)return c;if(null!==eF.exec(e)){let h=n?i.replace("*",()=>e):i+e;if(null===e$.exec(e)){if(!o){let o=n?eR.call(eq,t,()=>e):t;eK(o,h,i,s,a,r,!1)}}else!function(t,e,i,s,r){let n=`request is not a valid match in pattern "${e}" for the "${s?"imports":"exports"}" resolution of ${p.fileURLToPath(i)}`;throw new eL(t,n,r&&p.fileURLToPath(r))}(h,i,s,a,r)}return n?new p.URL(eR.call(eq,c.href,()=>e)):new p.URL(e,c)}(e,i,s,t,r,n,a,o,h);if(Array.isArray(e)){let p;if(0===e.length)return null;let c=-1;for(;++c<e.length;){let l;let u=e[c];try{l=e1(t,u,i,s,r,n,a,o,h)}catch(t){if(p=t,"ERR_INVALID_PACKAGE_TARGET"===t.code)continue;throw t}if(void 0!==l){if(null===l){p=null;continue}return l}}if(null==p)return null;throw p}if("object"==typeof e&&null!==e){let c=Object.getOwnPropertyNames(e),l=-1;for(;++l<c.length;){let e=c[l];if(function(t){let e=Number(t);return`${e}`===t&&e>=0&&e<4294967295}(e))throw new eN(p.fileURLToPath(t),r,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<c.length;){let p=c[l];if("default"===p||h&&h.has(p)){let c=e[p],l=e1(t,c,i,s,r,n,a,o,h);if(void 0===l)continue;return l}}return null}if(null===e)return null;throw eJ(s,e,t,a,r)}function e0(t,e,i,s,r){let n=i.exports;if(function(t,e,i){if("string"==typeof t||Array.isArray(t))return!0;if("object"!=typeof t||null===t)return!1;let s=Object.getOwnPropertyNames(t),r=!1,n=0,a=-1;for(;++a<s.length;){let t=s[a],o=""===t||"."!==t[0];if(0==n++)r=o;else if(r!==o)throw new eN(p.fileURLToPath(e),i,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return r}(n,t,s)&&(n={".":n}),eB.call(n,e)&&!e.includes("*")&&!e.endsWith("/")){let i=n[e],a=e1(t,i,"",e,s,!1,!1,!1,r);if(null==a)throw eZ(e,t,s);return a}let a="",h="",c=Object.getOwnPropertyNames(n),l=-1;for(;++l<c.length;){let i=c[l],r=i.indexOf("*");if(-1!==r&&e.startsWith(i.slice(0,r))){e.endsWith("/")&&function(t,e,i){let s=p.fileURLToPath(e);eH.has(s+"|"+t)||(eH.add(s+"|"+t),o.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i?` imported from ${p.fileURLToPath(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}(e,t,s);let n=i.slice(r+1);e.length>=i.length&&e.endsWith(n)&&1===e2(a,i)&&i.lastIndexOf("*")===r&&(a=i,h=e.slice(r,e.length-n.length))}}if(a){let i=n[a],o=e1(t,i,h,a,s,!0,!1,e.endsWith("/"),r);if(null==o)throw eZ(e,t,s);return o}throw eZ(e,t,s)}function e2(t,e){let i=t.indexOf("*"),s=e.indexOf("*"),r=-1===i?t.length:i+1,n=-1===s?e.length:s+1;return r>n?-1:n>r||-1===i?1:-1===s||t.length>e.length?-1:e.length>t.length?1:0}function e3(t,e,i){let s;if(h.builtinModules.includes(t))return new p.URL("node:"+t);let{packageName:r,packageSubpath:n,isScoped:a}=function(t,e){let i=t.indexOf("/"),s=!0,r=!1;"@"===t[0]&&(r=!0,-1===i||0===t.length?s=!1:i=t.indexOf("/",i+1));let n=-1===i?t:t.slice(0,i);if(null!==eW.exec(n)&&(s=!1),!s)throw new eL(t,"is not a valid package name",p.fileURLToPath(e));let a="."+(-1===i?"":t.slice(i));return{packageName:n,packageSubpath:a,isScoped:r}}(t,e),o=ew(e);if(o.exists){let t=p.pathToFileURL(o.pjsonPath);if(o.name===r&&void 0!==o.exports&&null!==o.exports)return e0(t,n,o,e,i)}let c=new p.URL("./node_modules/"+r+"/package.json",e),l=p.fileURLToPath(c);do{let o=eX(l.slice(0,-13));if(!o.isDirectory()){s=l,c=new p.URL((a?"../../../../node_modules/":"../../../node_modules/")+r+"/package.json",c),l=p.fileURLToPath(c);continue}let h=eE(l,t,e);if(void 0!==h.exports&&null!==h.exports)return e0(c,n,h,e,i);if("."===n)return function(t,e,i){let s;if(void 0!==e.main){if(eY(s=new p.URL(e.main,t)))return s;let r=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],n=-1;for(;++n<r.length&&!eY(s=new p.URL(r[n],t));)s=void 0;if(s)return eQ(s,t,i,e.main),s}let r=["./index.js","./index.json","./index.node"],n=-1;for(;++n<r.length&&!eY(s=new p.URL(r[n],t));)s=void 0;if(s)return eQ(s,t,i,e.main),s;throw new eO(p.fileURLToPath(new p.URL(".",t)),p.fileURLToPath(i))}(c,h,e);return new p.URL(n,c)}while(l.length!==s.length);throw new eO(r,p.fileURLToPath(e))}function e4(t){return"string"!=typeof t||t.startsWith("file://")?ep(p.fileURLToPath(t)):ep(t)}const e6=new Set(["node","import"]),e5=p.pathToFileURL(process.cwd()),e9=[".mjs",".cjs",".js",".json"],e8=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function e7(t,e,i){try{return function(t,e,i,s){var n;let o;let h=e.protocol,l="http:"===h||"https:"===h;if(n=t,""!==n&&("/"===n[0]||"."===n[0]&&(1===n.length||"/"===n[1]||"."===n[1]&&(2===n.length||"/"===n[2]))))o=new p.URL(t,e);else if(l||"#"!==t[0])try{o=new p.URL(t)}catch{l||(o=e3(t,e,i))}else o=function(t,e,i){var s;let r;if("#"===t||t.startsWith("#/")||t.endsWith("/"))throw new eL(t,"is not a valid internal imports specifier name",p.fileURLToPath(e));let n=ew(e);if(n.exists){r=p.pathToFileURL(n.pjsonPath);let s=n.imports;if(s){if(eB.call(s,t)&&!t.includes("*")){let n=e1(r,s[t],"",t,e,!1,!0,!1,i);if(null!=n)return n}else{let n="",a="",o=Object.getOwnPropertyNames(s),h=-1;for(;++h<o.length;){let e=o[h],i=e.indexOf("*");if(-1!==i&&t.startsWith(e.slice(0,-1))){let s=e.slice(i+1);t.length>=e.length&&t.endsWith(s)&&1===e2(n,e)&&e.lastIndexOf("*")===i&&(n=e,a=t.slice(i,t.length-s.length))}}if(n){let t=s[n],o=e1(r,t,a,n,e,!0,!0,!1,i);if(null!=o)return o}}}}throw s=r,new eD(t,s&&p.fileURLToPath(new p.URL(".",s)),p.fileURLToPath(e))}(t,e,i);return(c(void 0!==o,"expected to be defined"),"file:"!==o.protocol)?o:function(t,e,i){if(null!==eG.exec(t.pathname))throw new eL(t.pathname,'must not include encoded "/" or "\\" characters',p.fileURLToPath(e));let s=p.fileURLToPath(t),n=eX(s.endsWith("/")?s.slice(-1):s);if(n.isDirectory()){let i=new eM(s,p.fileURLToPath(e));throw i.url=String(t),i}if(!n.isFile())throw new eO(s||t.pathname,e&&p.fileURLToPath(e),"module");if(!i){let e=r.realpathSync(s),{search:i,hash:n}=t;(t=p.pathToFileURL(e+(s.endsWith(a.sep)?"/":""))).search=i,t.hash=n}return t}(o,e,void 0)}(t,e,i)}catch(t){if(!e8.has(t.code))throw t}}function it(t,e={}){"auto"!==e.platform&&e.platform||(e.platform="win32"===o.platform?"win32":"posix");let i=e4(function(t,e={}){let i;if(/(node|data|http|https):/.test(t))return t;if(eh.has(t))return"node:"+t;if(eo.test(t)&&r.existsSync(t)){let e=r.realpathSync(e4(t));return p.pathToFileURL(e).toString()}let s=e.conditions?new Set(e.conditions):e6,n=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map(t=>{var e;return new URL(("string"!=typeof(e=t.toString())&&(e=e.toString()),/(node|data|http|https|file):/.test(e))?e:eh.has(e)?"node:"+e:"file://"+encodeURI(ep(e)))});0===n.length&&n.push(e5);let a=[...n];for(let t of n)"file:"===t.protocol&&a.push(new URL("./",t),new URL(ea(t.pathname,"_index.js"),t),new URL("node_modules",t));for(let r of a){if(i=e7(t,r,s))break;for(let n of["","/index"]){for(let a of e.extensions||e9)if(i=e7(t+n+a,r,s))break;if(i)break}if(i)break}if(!i){let e=Error(`Cannot find module ${t} imported from ${a.join(", ")}`);throw e.code="ERR_MODULE_NOT_FOUND",e}let o=r.realpathSync(e4(i));return p.pathToFileURL(o).toString()}(t,{url:e.paths}));return"win32"===e.platform?a.win32.normalize(i):i}function ie(t,e){return"boolean"==typeof t?t:t?.enable??!!e}function ii(t){if("boolean"==typeof t||void 0===t)return;let{enable:e,...i}=t;return{...i}}const is=async(t,...i)=>{let s=t?.isInEditor??!!((process.env.VSCODE_PID||process.env.JETBRAINS_IDE)&&!d.isCI),r=[];if(r.push(R(t?.ignores)),ie(t?.js,!0)&&r.push((await e("@eslint-sukka/js")).javascript({...ii(t?.js),isInEditor:s})),t?.ts){if("boolean"==typeof t.ts)throw TypeError("You must provide `tsconfigPath` settings for @eslint-sukka/ts");if(t.ts.enable??function(t,e={}){return!!function(t,e={}){try{return it(`${t}/package.json`,e)}catch{}try{return it(t,e)}catch(t){return"MODULE_NOT_FOUND"!==t.code&&"ERR_MODULE_NOT_FOUND"!==t.code&&console.error(t),!1}}(t,e)}("typescript")){if(!t.ts.tsconfigPath)throw TypeError("You must provide `tsconfigPath` settings for @eslint-sukka/ts");r.push((await e("@eslint-sukka/ts")).typescript(t.ts))}}return ie(t?.react)&&r.push((await e("@eslint-sukka/react")).react(ii(t?.react))),ie(t?.node)&&r.push((await e("@eslint-sukka/node")).node(ii(t?.node))),ie(t?.legacy)&&r.push((await e("@eslint-sukka/legacy")).legacy(ii(t?.legacy))),r.push(i),r.flat()};Object.defineProperty(exports,"constants",{enumerable:!0,get:function(){return s.constants}}),exports.ignores=R,exports.sukka=is;
|