@quilted/create 0.1.41 → 0.1.42
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/CHANGELOG.md +12 -0
- package/build/cjs/_commonjsHelpers.cjs +10 -0
- package/build/cjs/app.cjs +5 -2
- package/build/cjs/index.cjs +28 -30
- package/build/cjs/index4.cjs +2 -4
- package/build/cjs/package.cjs +3 -1
- package/build/cjs/parser-babel.cjs +3 -3
- package/build/cjs/parser-typescript.cjs +3 -3
- package/build/cjs/parser-yaml.cjs +2 -2
- package/build/cjs/shared/package-manager.cjs +3 -2
- package/build/cjs/standalone.cjs +3 -3
- package/build/esm/_commonjsHelpers.mjs +7 -0
- package/build/esm/app.mjs +5 -2
- package/build/esm/index.mjs +29 -29
- package/build/esm/index4.mjs +1 -3
- package/build/esm/package.mjs +3 -1
- package/build/esm/parser-babel.mjs +1 -1
- package/build/esm/parser-typescript.mjs +1 -1
- package/build/esm/parser-yaml.mjs +1 -1
- package/build/esm/shared/package-manager.mjs +3 -2
- package/build/esm/standalone.mjs +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/app.d.ts.map +1 -1
- package/build/typescript/package.d.ts.map +1 -1
- package/build/typescript/shared/prompts.d.ts +2 -1
- package/build/typescript/shared/prompts.d.ts.map +1 -1
- package/package.json +1 -1
- package/source/app.ts +9 -2
- package/source/package.ts +5 -1
- package/source/shared/prompts.ts +5 -2
- package/templates/package/package.json +0 -4
- package/templates/workspace/_gitignore +1 -2
- package/templates/workspace/_prettierignore +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.1.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ff1e1a1d`](https://github.com/lemonmade/quilt/commit/ff1e1a1dad7bc7e5b8c9cf6b2d481cd164ea76b7) Thanks [@lemonmade](https://github.com/lemonmade)! - Default single-file app to not use monorepo
|
|
8
|
+
|
|
9
|
+
- [`8f1d275b`](https://github.com/lemonmade/quilt/commit/8f1d275b6de0abbc6f61bcd5401555f6480eb474) Thanks [@lemonmade](https://github.com/lemonmade)! - Remove need for @babel/runtime peer dependency
|
|
10
|
+
|
|
11
|
+
- [`6307c6f6`](https://github.com/lemonmade/quilt/commit/6307c6f6d6dcc5cadcea21f436cb1bb4ce4dfcff) Thanks [@lemonmade](https://github.com/lemonmade)! - Clean up template ignore files
|
|
12
|
+
|
|
13
|
+
- [`a19a0635`](https://github.com/lemonmade/quilt/commit/a19a0635227fcb07147e38edd57773452ef0d07b) Thanks [@lemonmade](https://github.com/lemonmade)! - Delete workspaces package.json key when creating a single app
|
|
14
|
+
|
|
3
15
|
## 0.1.41
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
10
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
package/build/cjs/app.cjs
CHANGED
|
@@ -253,7 +253,8 @@ async function createApp() {
|
|
|
253
253
|
});
|
|
254
254
|
const template = await getTemplate(argv);
|
|
255
255
|
const createAsMonorepo = !inWorkspace && (await packageManager.getCreateAsMonorepo(argv, {
|
|
256
|
-
type: 'app'
|
|
256
|
+
type: 'app',
|
|
257
|
+
default: template !== 'single-file'
|
|
257
258
|
}));
|
|
258
259
|
const setupExtras = await packageManager.getExtrasToSetup(argv, {
|
|
259
260
|
inWorkspace
|
|
@@ -291,7 +292,8 @@ async function createApp() {
|
|
|
291
292
|
if (file === 'quilt.workspace.ts') return createAsMonorepo;
|
|
292
293
|
|
|
293
294
|
// We need to make some adjustments to the root package.json
|
|
294
|
-
|
|
295
|
+
if (file === 'package.json') return false;
|
|
296
|
+
return true;
|
|
295
297
|
});
|
|
296
298
|
|
|
297
299
|
// If we are creating a monorepo, we need to add the root package.json and
|
|
@@ -317,6 +319,7 @@ async function createApp() {
|
|
|
317
319
|
const [projectPackageJson, projectTSConfig, workspacePackageJson] = await Promise.all([appTemplate.read('package.json').then(content => JSON.parse(content)), appTemplate.read('tsconfig.json').then(content => JSON.parse(content)), workspaceTemplate.read('package.json').then(content => JSON.parse(content))]);
|
|
318
320
|
const combinedPackageJson = packageManager.mergeWorkspaceAndProjectPackageJsons(projectPackageJson, workspacePackageJson);
|
|
319
321
|
combinedPackageJson.name = packageManager.toValidPackageName(name);
|
|
322
|
+
delete combinedPackageJson.workspaces;
|
|
320
323
|
let quiltProject = await appTemplate.read('quilt.project.ts');
|
|
321
324
|
quiltProject = quiltProject.replace('quiltApp', 'quiltWorkspace, quiltApp').replace('quiltApp(', 'quiltWorkspace(), quiltApp(');
|
|
322
325
|
await outputRoot.write('quilt.project.ts', await packageManager.format(quiltProject, {
|
package/build/cjs/index.cjs
CHANGED
|
@@ -4,12 +4,6 @@ var require$$0 = require('node:tty');
|
|
|
4
4
|
var require$$0$1 = require('node:readline');
|
|
5
5
|
var require$$2 = require('node:events');
|
|
6
6
|
|
|
7
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
|
-
|
|
9
|
-
function getDefaultExportFromCjs (x) {
|
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
7
|
var colorette = {};
|
|
14
8
|
|
|
15
9
|
Object.defineProperty(colorette, '__esModule', { value: true });
|
|
@@ -229,28 +223,34 @@ colorette.whiteBright = whiteBright;
|
|
|
229
223
|
colorette.yellow = yellow;
|
|
230
224
|
colorette.yellowBright = yellowBright;
|
|
231
225
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
226
|
+
function _defineProperty(obj, key, value) {
|
|
227
|
+
key = _toPropertyKey(key);
|
|
228
|
+
if (key in obj) {
|
|
229
|
+
Object.defineProperty(obj, key, {
|
|
230
|
+
value: value,
|
|
231
|
+
enumerable: true,
|
|
232
|
+
configurable: true,
|
|
233
|
+
writable: true
|
|
234
|
+
});
|
|
235
|
+
} else {
|
|
236
|
+
obj[key] = value;
|
|
237
|
+
}
|
|
238
|
+
return obj;
|
|
239
|
+
}
|
|
240
|
+
function _toPrimitive(input, hint) {
|
|
241
|
+
if (typeof input !== "object" || input === null) return input;
|
|
242
|
+
var prim = input[Symbol.toPrimitive];
|
|
243
|
+
if (prim !== undefined) {
|
|
244
|
+
var res = prim.call(input, hint || "default");
|
|
245
|
+
if (typeof res !== "object") return res;
|
|
246
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
247
|
+
}
|
|
248
|
+
return (hint === "string" ? String : Number)(input);
|
|
249
|
+
}
|
|
250
|
+
function _toPropertyKey(arg) {
|
|
251
|
+
var key = _toPrimitive(arg, "string");
|
|
252
|
+
return typeof key === "symbol" ? key : String(key);
|
|
253
|
+
}
|
|
254
254
|
|
|
255
255
|
// @see https://github.com/nodejs/node/blob/master/lib/internal/errors.js#L822-L834
|
|
256
256
|
class AbortError extends Error {
|
|
@@ -7262,10 +7262,8 @@ async function run() {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
|
|
7264
7264
|
exports.bold_1 = bold_1;
|
|
7265
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
7266
7265
|
exports.cyan_1 = cyan_1;
|
|
7267
7266
|
exports.dim_1 = dim_1;
|
|
7268
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
7269
7267
|
exports.magenta_1 = magenta_1;
|
|
7270
7268
|
exports.parseArguments = parseArguments;
|
|
7271
7269
|
exports.printHelp = printHelp;
|
package/build/cjs/index4.cjs
CHANGED
|
@@ -6,11 +6,9 @@ var require$$0 = require('node:stream');
|
|
|
6
6
|
var require$$2 = require('node:os');
|
|
7
7
|
var require$$0$1 = require('node:util');
|
|
8
8
|
var require$$2$1 = require('node:events');
|
|
9
|
-
var
|
|
9
|
+
var _commonjsHelpers = require('./_commonjsHelpers.cjs');
|
|
10
10
|
var process$1 = require('node:process');
|
|
11
11
|
var node_url = require('node:url');
|
|
12
|
-
require('node:tty');
|
|
13
|
-
require('node:readline');
|
|
14
12
|
|
|
15
13
|
/*
|
|
16
14
|
* merge2
|
|
@@ -4894,7 +4892,7 @@ var async$1 = {};
|
|
|
4894
4892
|
let promise;
|
|
4895
4893
|
|
|
4896
4894
|
var queueMicrotask_1 = typeof queueMicrotask === 'function'
|
|
4897
|
-
? queueMicrotask.bind(typeof window !== 'undefined' ? window :
|
|
4895
|
+
? queueMicrotask.bind(typeof window !== 'undefined' ? window : _commonjsHelpers.commonjsGlobal)
|
|
4898
4896
|
// reuse resolved promise, and allocate it lazily
|
|
4899
4897
|
: cb => (promise || (promise = Promise.resolve()))
|
|
4900
4898
|
.then(cb)
|
package/build/cjs/package.cjs
CHANGED
|
@@ -118,7 +118,8 @@ async function createProject() {
|
|
|
118
118
|
if (file === 'quilt.workspace.ts') return createAsMonorepo;
|
|
119
119
|
|
|
120
120
|
// We need to make some adjustments to the root package.json
|
|
121
|
-
|
|
121
|
+
if (file === 'package.json') return false;
|
|
122
|
+
return true;
|
|
122
123
|
});
|
|
123
124
|
|
|
124
125
|
// If we are creating a monorepo, we need to add the root package.json and
|
|
@@ -143,6 +144,7 @@ async function createProject() {
|
|
|
143
144
|
} else {
|
|
144
145
|
const [projectPackageJson, projectTSConfig, workspacePackageJson] = await Promise.all([packageTemplate.read('package.json').then(content => JSON.parse(content)), packageTemplate.read('tsconfig.json').then(content => JSON.parse(content)), workspaceTemplate.read('package.json').then(content => JSON.parse(content))]);
|
|
145
146
|
const mergedPackageJson = packageManager.mergeWorkspaceAndProjectPackageJsons(projectPackageJson, workspacePackageJson);
|
|
147
|
+
delete mergedPackageJson.workspaces;
|
|
146
148
|
adjustPackageJson(mergedPackageJson, {
|
|
147
149
|
name: packageManager.toValidPackageName(name),
|
|
148
150
|
description,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers.cjs');
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
m.forEach(function (e) {
|
|
@@ -20,7 +20,7 @@ function _mergeNamespaces(n, m) {
|
|
|
20
20
|
var parserBabel$2 = {exports: {}};
|
|
21
21
|
|
|
22
22
|
(function (module, exports) {
|
|
23
|
-
(function(e){module.exports=e();})(function(){var v=(h,l)=>()=>(l||h((l={exports:{}}).exports,l),l.exports);var W=v((Bf,Jr)=>{var Pt=function(h){return h&&h.Math==Math&&h};Jr.exports=Pt(typeof globalThis=="object"&&globalThis)||Pt(typeof window=="object"&&window)||Pt(typeof self=="object"&&self)||Pt(typeof index.commonjsGlobal=="object"&&index.commonjsGlobal)||function(){return this}()||Function("return this")();});var Ae=v((Mf,Yr)=>{Yr.exports=function(h){try{return !!h()}catch{return !0}};});var De=v((Rf,$r)=>{var rl=Ae();$r.exports=!rl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var Tt=v((jf,Qr)=>{var il=Ae();Qr.exports=!il(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")});});var bt=v((qf,Zr)=>{var al=Tt(),Et=Function.prototype.call;Zr.exports=al?Et.bind(Et):function(){return Et.apply(Et,arguments)};});var ri=v(si=>{var ei={}.propertyIsEnumerable,ti=Object.getOwnPropertyDescriptor,nl=ti&&!ei.call({1:2},1);si.f=nl?function(l){var p=ti(this,l);return !!p&&p.enumerable}:ei;});var ms=v((_f,ii)=>{ii.exports=function(h,l){return {enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:l}};});var ie=v((zf,oi)=>{var ai=Tt(),ni=Function.prototype,ol=ni.bind,ys=ni.call,hl=ai&&ol.bind(ys,ys);oi.exports=ai?function(h){return h&&hl(h)}:function(h){return h&&function(){return ys.apply(h,arguments)}};});var vt=v((Kf,li)=>{var hi=ie(),ll=hi({}.toString),ul=hi("".slice);li.exports=function(h){return ul(ll(h),8,-1)};});var ci=v((Vf,ui)=>{var cl=W(),pl=ie(),fl=Ae(),dl=vt(),xs=cl.Object,ml=pl("".split);ui.exports=fl(function(){return !xs("z").propertyIsEnumerable(0)})?function(h){return dl(h)=="String"?ml(h,""):xs(h)}:xs;});var gs=v((Hf,pi)=>{var yl=W(),xl=yl.TypeError;pi.exports=function(h){if(h==null)throw xl("Can't call method on "+h);return h};});var Ct=v((Wf,fi)=>{var gl=ci(),Al=gs();fi.exports=function(h){return gl(Al(h))};});var ae=v((Gf,di)=>{di.exports=function(h){return typeof h=="function"};});var Fe=v((Xf,mi)=>{var Pl=ae();mi.exports=function(h){return typeof h=="object"?h!==null:Pl(h)};});var $e=v((Jf,yi)=>{var As=W(),Tl=ae(),El=function(h){return Tl(h)?h:void 0};yi.exports=function(h,l){return arguments.length<2?El(As[h]):As[h]&&As[h][l]};});var gi=v((Yf,xi)=>{var bl=ie();xi.exports=bl({}.isPrototypeOf);});var Pi=v(($f,Ai)=>{var vl=$e();Ai.exports=vl("navigator","userAgent")||"";});var wi=v((Qf,Si)=>{var Ci=W(),Ps=Pi(),Ti=Ci.process,Ei=Ci.Deno,bi=Ti&&Ti.versions||Ei&&Ei.version,vi=bi&&bi.v8,he,St;vi&&(he=vi.split("."),St=he[0]>0&&he[0]<4?1:+(he[0]+he[1]));!St&&Ps&&(he=Ps.match(/Edge\/(\d+)/),(!he||he[1]>=74)&&(he=Ps.match(/Chrome\/(\d+)/),he&&(St=+he[1])));Si.exports=St;});var Ts=v((Zf,Ii)=>{var Ni=wi(),Cl=Ae();Ii.exports=!!Object.getOwnPropertySymbols&&!Cl(function(){var h=Symbol();return !String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&Ni&&Ni<41});});var Es=v((ed,ki)=>{var Sl=Ts();ki.exports=Sl&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var bs=v((td,Di)=>{var wl=W(),Nl=$e(),Il=ae(),kl=gi(),Dl=Es(),Fl=wl.Object;Di.exports=Dl?function(h){return typeof h=="symbol"}:function(h){var l=Nl("Symbol");return Il(l)&&kl(l.prototype,Fl(h))};});var Li=v((sd,Fi)=>{var Ll=W(),Ol=Ll.String;Fi.exports=function(h){try{return Ol(h)}catch{return "Object"}};});var wt=v((rd,Oi)=>{var Bl=W(),Ml=ae(),Rl=Li(),jl=Bl.TypeError;Oi.exports=function(h){if(Ml(h))return h;throw jl(Rl(h)+" is not a function")};});var Mi=v((id,Bi)=>{var ql=wt();Bi.exports=function(h,l){var p=h[l];return p==null?void 0:ql(p)};});var ji=v((ad,Ri)=>{var Ul=W(),vs=bt(),Cs=ae(),Ss=Fe(),_l=Ul.TypeError;Ri.exports=function(h,l){var p,d;if(l==="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h))||Cs(p=h.valueOf)&&!Ss(d=vs(p,h))||l!=="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h)))return d;throw _l("Can't convert object to primitive value")};});var Ui=v((nd,qi)=>{qi.exports=!1;});var Nt=v((od,zi)=>{var _i=W(),zl=Object.defineProperty;zi.exports=function(h,l){try{zl(_i,h,{value:l,configurable:!0,writable:!0});}catch{_i[h]=l;}return l};});var It=v((hd,Vi)=>{var Kl=W(),Vl=Nt(),Ki="__core-js_shared__",Hl=Kl[Ki]||Vl(Ki,{});Vi.exports=Hl;});var ws=v((ld,Wi)=>{var Wl=Ui(),Hi=It();(Wi.exports=function(h,l){return Hi[h]||(Hi[h]=l!==void 0?l:{})})("versions",[]).push({version:"3.21.1",mode:Wl?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var Ns=v((ud,Gi)=>{var Gl=W(),Xl=gs(),Jl=Gl.Object;Gi.exports=function(h){return Jl(Xl(h))};});var Ce=v((cd,Xi)=>{var Yl=ie(),$l=Ns(),Ql=Yl({}.hasOwnProperty);Xi.exports=Object.hasOwn||function(l,p){return Ql($l(l),p)};});var Is=v((pd,Ji)=>{var Zl=ie(),eu=0,tu=Math.random(),su=Zl(1 .toString);Ji.exports=function(h){return "Symbol("+(h===void 0?"":h)+")_"+su(++eu+tu,36)};});var Qe=v((fd,ea)=>{var ru=W(),iu=ws(),Yi=Ce(),au=Is(),$i=Ts(),Zi=Es(),ze=iu("wks"),Le=ru.Symbol,Qi=Le&&Le.for,nu=Zi?Le:Le&&Le.withoutSetter||au;ea.exports=function(h){if(!Yi(ze,h)||!($i||typeof ze[h]=="string")){var l="Symbol."+h;$i&&Yi(Le,h)?ze[h]=Le[h]:Zi&&Qi?ze[h]=Qi(l):ze[h]=nu(l);}return ze[h]};});var ia=v((dd,ra)=>{var ou=W(),hu=bt(),ta=Fe(),sa=bs(),lu=Mi(),uu=ji(),cu=Qe(),pu=ou.TypeError,fu=cu("toPrimitive");ra.exports=function(h,l){if(!ta(h)||sa(h))return h;var p=lu(h,fu),d;if(p){if(l===void 0&&(l="default"),d=hu(p,h,l),!ta(d)||sa(d))return d;throw pu("Can't convert object to primitive value")}return l===void 0&&(l="number"),uu(h,l)};});var ks=v((md,aa)=>{var du=ia(),mu=bs();aa.exports=function(h){var l=du(h,"string");return mu(l)?l:l+""};});var ha=v((yd,oa)=>{var yu=W(),na=Fe(),Ds=yu.document,xu=na(Ds)&&na(Ds.createElement);oa.exports=function(h){return xu?Ds.createElement(h):{}};});var Fs=v((xd,la)=>{var gu=De(),Au=Ae(),Pu=ha();la.exports=!gu&&!Au(function(){return Object.defineProperty(Pu("div"),"a",{get:function(){return 7}}).a!=7});});var Ls=v(ca=>{var Tu=De(),Eu=bt(),bu=ri(),vu=ms(),Cu=Ct(),Su=ks(),wu=Ce(),Nu=Fs(),ua=Object.getOwnPropertyDescriptor;ca.f=Tu?ua:function(l,p){if(l=Cu(l),p=Su(p),Nu)try{return ua(l,p)}catch{}if(wu(l,p))return vu(!Eu(bu.f,l,p),l[p])};});var fa=v((Ad,pa)=>{var Iu=De(),ku=Ae();pa.exports=Iu&&ku(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var Os=v((Pd,ma)=>{var da=W(),Du=Fe(),Fu=da.String,Lu=da.TypeError;ma.exports=function(h){if(Du(h))return h;throw Lu(Fu(h)+" is not an object")};});var qs=v(xa=>{var Ou=W(),Bu=De(),Mu=Fs(),Ru=fa(),kt=Os(),ya=ks(),ju=Ou.TypeError,Bs=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Ms="enumerable",Rs="configurable",js="writable";xa.f=Bu?Ru?function(l,p,d){if(kt(l),p=ya(p),kt(d),typeof l=="function"&&p==="prototype"&&"value"in d&&js in d&&!d[js]){var m=qu(l,p);m&&m[js]&&(l[p]=d.value,d={configurable:Rs in d?d[Rs]:m[Rs],enumerable:Ms in d?d[Ms]:m[Ms],writable:!1});}return Bs(l,p,d)}:Bs:function(l,p,d){if(kt(l),p=ya(p),kt(d),Mu)try{return Bs(l,p,d)}catch{}if("get"in d||"set"in d)throw ju("Accessors not supported");return "value"in d&&(l[p]=d.value),l};});var Dt=v((Ed,ga)=>{var Uu=De(),_u=qs(),zu=ms();ga.exports=Uu?function(h,l,p){return _u.f(h,l,zu(1,p))}:function(h,l,p){return h[l]=p,h};});var Ft=v((bd,Aa)=>{var Ku=ie(),Vu=ae(),Us=It(),Hu=Ku(Function.toString);Vu(Us.inspectSource)||(Us.inspectSource=function(h){return Hu(h)});Aa.exports=Us.inspectSource;});var Ea=v((vd,Ta)=>{var Wu=W(),Gu=ae(),Xu=Ft(),Pa=Wu.WeakMap;Ta.exports=Gu(Pa)&&/native code/.test(Xu(Pa));});var Ca=v((Cd,va)=>{var Ju=ws(),Yu=Is(),ba=Ju("keys");va.exports=function(h){return ba[h]||(ba[h]=Yu(h))};});var _s=v((Sd,Sa)=>{Sa.exports={};});var Fa=v((wd,Da)=>{var $u=Ea(),ka=W(),zs=ie(),Qu=Fe(),Zu=Dt(),Ks=Ce(),Vs=It(),ec=Ca(),tc=_s(),wa="Object already initialized",Ws=ka.TypeError,sc=ka.WeakMap,Lt,Ze,Ot,rc=function(h){return Ot(h)?Ze(h):Lt(h,{})},ic=function(h){return function(l){var p;if(!Qu(l)||(p=Ze(l)).type!==h)throw Ws("Incompatible receiver, "+h+" required");return p}};$u||Vs.state?(Se=Vs.state||(Vs.state=new sc),Na=zs(Se.get),Hs=zs(Se.has),Ia=zs(Se.set),Lt=function(h,l){if(Hs(Se,h))throw new Ws(wa);return l.facade=h,Ia(Se,h,l),l},Ze=function(h){return Na(Se,h)||{}},Ot=function(h){return Hs(Se,h)}):(Oe=ec("state"),tc[Oe]=!0,Lt=function(h,l){if(Ks(h,Oe))throw new Ws(wa);return l.facade=h,Zu(h,Oe,l),l},Ze=function(h){return Ks(h,Oe)?h[Oe]:{}},Ot=function(h){return Ks(h,Oe)});var Se,Na,Hs,Ia,Oe;Da.exports={set:Lt,get:Ze,has:Ot,enforce:rc,getterFor:ic};});var Ba=v((Nd,Oa)=>{var Gs=De(),ac=Ce(),La=Function.prototype,nc=Gs&&Object.getOwnPropertyDescriptor,Xs=ac(La,"name"),oc=Xs&&function(){}.name==="something",hc=Xs&&(!Gs||Gs&&nc(La,"name").configurable);Oa.exports={EXISTS:Xs,PROPER:oc,CONFIGURABLE:hc};});var Ua=v((Id,qa)=>{var lc=W(),Ma=ae(),uc=Ce(),Ra=Dt(),cc=Nt(),pc=Ft(),ja=Fa(),fc=Ba().CONFIGURABLE,dc=ja.get,mc=ja.enforce,yc=String(String).split("String");(qa.exports=function(h,l,p,d){var m=d?!!d.unsafe:!1,A=d?!!d.enumerable:!1,x=d?!!d.noTargetGet:!1,g=d&&d.name!==void 0?d.name:l,P;if(Ma(p)&&(String(g).slice(0,7)==="Symbol("&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uc(p,"name")||fc&&p.name!==g)&&Ra(p,"name",g),P=mc(p),P.source||(P.source=yc.join(typeof g=="string"?g:""))),h===lc){A?h[l]=p:cc(l,p);return}else m?!x&&h[l]&&(A=!0):delete h[l];A?h[l]=p:Ra(h,l,p);})(Function.prototype,"toString",function(){return Ma(this)&&dc(this).source||pc(this)});});var Js=v((kd,_a)=>{var xc=Math.ceil,gc=Math.floor;_a.exports=function(h){var l=+h;return l!==l||l===0?0:(l>0?gc:xc)(l)};});var Ka=v((Dd,za)=>{var Ac=Js(),Pc=Math.max,Tc=Math.min;za.exports=function(h,l){var p=Ac(h);return p<0?Pc(p+l,0):Tc(p,l)};});var Ha=v((Fd,Va)=>{var Ec=Js(),bc=Math.min;Va.exports=function(h){return h>0?bc(Ec(h),9007199254740991):0};});var Bt=v((Ld,Wa)=>{var vc=Ha();Wa.exports=function(h){return vc(h.length)};});var Ja=v((Od,Xa)=>{var Cc=Ct(),Sc=Ka(),wc=Bt(),Ga=function(h){return function(l,p,d){var m=Cc(l),A=wc(m),x=Sc(d,A),g;if(h&&p!=p){for(;A>x;)if(g=m[x++],g!=g)return !0}else for(;A>x;x++)if((h||x in m)&&m[x]===p)return h||x||0;return !h&&-1}};Xa.exports={includes:Ga(!0),indexOf:Ga(!1)};});var Qa=v((Bd,$a)=>{var Nc=ie(),Ys=Ce(),Ic=Ct(),kc=Ja().indexOf,Dc=_s(),Ya=Nc([].push);$a.exports=function(h,l){var p=Ic(h),d=0,m=[],A;for(A in p)!Ys(Dc,A)&&Ys(p,A)&&Ya(m,A);for(;l.length>d;)Ys(p,A=l[d++])&&(~kc(m,A)||Ya(m,A));return m};});var en=v((Md,Za)=>{Za.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sn=v(tn=>{var Fc=Qa(),Lc=en(),Oc=Lc.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(l){return Fc(l,Oc)};});var an=v(rn=>{rn.f=Object.getOwnPropertySymbols;});var on=v((qd,nn)=>{var Bc=$e(),Mc=ie(),Rc=sn(),jc=an(),qc=Os(),Uc=Mc([].concat);nn.exports=Bc("Reflect","ownKeys")||function(l){var p=Rc.f(qc(l)),d=jc.f;return d?Uc(p,d(l)):p};});var un=v((Ud,ln)=>{var hn=Ce(),_c=on(),zc=Ls(),Kc=qs();ln.exports=function(h,l,p){for(var d=_c(l),m=Kc.f,A=zc.f,x=0;x<d.length;x++){var g=d[x];!hn(h,g)&&!(p&&hn(p,g))&&m(h,g,A(l,g));}};});var pn=v((_d,cn)=>{var Vc=Ae(),Hc=ae(),Wc=/#|\.prototype\./,et=function(h,l){var p=Xc[Gc(h)];return p==Yc?!0:p==Jc?!1:Hc(l)?Vc(l):!!l},Gc=et.normalize=function(h){return String(h).replace(Wc,".").toLowerCase()},Xc=et.data={},Jc=et.NATIVE="N",Yc=et.POLYFILL="P";cn.exports=et;});var Qs=v((zd,fn)=>{var $s=W(),$c=Ls().f,Qc=Dt(),Zc=Ua(),ep=Nt(),tp=un(),sp=pn();fn.exports=function(h,l){var p=h.target,d=h.global,m=h.stat,A,x,g,P,N,D;if(d?x=$s:m?x=$s[p]||ep(p,{}):x=($s[p]||{}).prototype,x)for(g in l){if(N=l[g],h.noTargetGet?(D=$c(x,g),P=D&&D.value):P=x[g],A=sp(d?g:p+(m?".":"#")+g,h.forced),!A&&P!==void 0){if(typeof N==typeof P)continue;tp(N,P);}(h.sham||P&&P.sham)&&Qc(N,"sham",!0),Zc(x,g,N,h);}};});var dn=v(()=>{var rp=Qs(),ip=W();rp({global:!0},{globalThis:ip});});var mn=v(()=>{dn();});var Zs=v((Gd,yn)=>{var ap=vt();yn.exports=Array.isArray||function(l){return ap(l)=="Array"};});var An=v((Xd,gn)=>{var xn=ie(),np=wt(),op=Tt(),hp=xn(xn.bind);gn.exports=function(h,l){return np(h),l===void 0?h:op?hp(h,l):function(){return h.apply(l,arguments)}};});var En=v((Jd,Tn)=>{var lp=W(),up=Zs(),cp=Bt(),pp=An(),fp=lp.TypeError,Pn=function(h,l,p,d,m,A,x,g){for(var P=m,N=0,D=x?pp(x,g):!1,T,L;N<d;){if(N in p){if(T=D?D(p[N],N,l):p[N],A>0&&up(T))L=cp(T),P=Pn(h,l,T,L,P,A-1)-1;else {if(P>=9007199254740991)throw fp("Exceed the acceptable array length");h[P]=T;}P++;}N++;}return P};Tn.exports=Pn;});var Cn=v((Yd,vn)=>{var dp=Qe(),mp=dp("toStringTag"),bn={};bn[mp]="z";vn.exports=String(bn)==="[object z]";});var wn=v(($d,Sn)=>{var yp=W(),xp=Cn(),gp=ae(),Mt=vt(),Ap=Qe(),Pp=Ap("toStringTag"),Tp=yp.Object,Ep=Mt(function(){return arguments}())=="Arguments",bp=function(h,l){try{return h[l]}catch{}};Sn.exports=xp?Mt:function(h){var l,p,d;return h===void 0?"Undefined":h===null?"Null":typeof(p=bp(l=Tp(h),Pp))=="string"?p:Ep?Mt(l):(d=Mt(l))=="Object"&&gp(l.callee)?"Arguments":d};});var Ln=v((Qd,Fn)=>{var vp=ie(),Cp=Ae(),Nn=ae(),Sp=wn(),wp=$e(),Np=Ft(),In=function(){},Ip=[],kn=wp("Reflect","construct"),er=/^\s*(?:class|function)\b/,kp=vp(er.exec),Dp=!er.exec(In),tt=function(l){if(!Nn(l))return !1;try{return kn(In,Ip,l),!0}catch{return !1}},Dn=function(l){if(!Nn(l))return !1;switch(Sp(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Dp||!!kp(er,Np(l))}catch{return !0}};Dn.sham=!0;Fn.exports=!kn||Cp(function(){var h;return tt(tt.call)||!tt(Object)||!tt(function(){h=!0;})||h})?Dn:tt;});var Rn=v((Zd,Mn)=>{var Fp=W(),On=Zs(),Lp=Ln(),Op=Fe(),Bp=Qe(),Mp=Bp("species"),Bn=Fp.Array;Mn.exports=function(h){var l;return On(h)&&(l=h.constructor,Lp(l)&&(l===Bn||On(l.prototype))?l=void 0:Op(l)&&(l=l[Mp],l===null&&(l=void 0))),l===void 0?Bn:l};});var qn=v((em,jn)=>{var Rp=Rn();jn.exports=function(h,l){return new(Rp(h))(l===0?0:l)};});var Un=v(()=>{var jp=Qs(),qp=En(),Up=wt(),_p=Ns(),zp=Bt(),Kp=qn();jp({target:"Array",proto:!0},{flatMap:function(l){var p=_p(this),d=zp(p),m;return Up(l),m=Kp(p,0),m.length=qp(m,p,p,d,0,1,l,arguments.length>1?arguments[1]:void 0),m}});});var Ff=v((rm,Po)=>{var _n,zn,Kn,Vn,Hn;function st(h,l){return l||(l=h.slice(0)),Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(l)}}))}mn();Un();var ir=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,Hp=Object.prototype.hasOwnProperty,Yn=(h,l)=>function(){return h&&(l=(0, h[ar(h)[0]])(h=0)),l},H=(h,l)=>function(){return l||(0, h[ar(h)[0]])((l={exports:{}}).exports,l),l.exports},Wp=(h,l)=>{for(var p in l)ir(h,p,{get:l[p],enumerable:!0});},Gp=(h,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of ar(l))!Hp.call(h,m)&&m!==p&&ir(h,m,{get:()=>l[m],enumerable:!(d=Vp(l,m))||d.enumerable});return h},Xp=h=>Gp(ir({},"__esModule",{value:!0}),h),V=Yn({"<define:process>"(){}}),Jp=H({"src/utils/try-combinations.js"(h,l){V();function p(){let d;for(var m=arguments.length,A=new Array(m),x=0;x<m;x++)A[x]=arguments[x];for(let[g,P]of A.entries())try{return {result:P()}}catch(N){g===0&&(d=N);}return {error:d}}l.exports=p;}}),$n=H({"src/language-js/utils/get-shebang.js"(h,l){V();function p(d){if(!d.startsWith("#!"))return "";let m=d.indexOf(`
|
|
23
|
+
(function(e){module.exports=e();})(function(){var v=(h,l)=>()=>(l||h((l={exports:{}}).exports,l),l.exports);var W=v((Bf,Jr)=>{var Pt=function(h){return h&&h.Math==Math&&h};Jr.exports=Pt(typeof globalThis=="object"&&globalThis)||Pt(typeof window=="object"&&window)||Pt(typeof self=="object"&&self)||Pt(typeof _commonjsHelpers.commonjsGlobal=="object"&&_commonjsHelpers.commonjsGlobal)||function(){return this}()||Function("return this")();});var Ae=v((Mf,Yr)=>{Yr.exports=function(h){try{return !!h()}catch{return !0}};});var De=v((Rf,$r)=>{var rl=Ae();$r.exports=!rl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var Tt=v((jf,Qr)=>{var il=Ae();Qr.exports=!il(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")});});var bt=v((qf,Zr)=>{var al=Tt(),Et=Function.prototype.call;Zr.exports=al?Et.bind(Et):function(){return Et.apply(Et,arguments)};});var ri=v(si=>{var ei={}.propertyIsEnumerable,ti=Object.getOwnPropertyDescriptor,nl=ti&&!ei.call({1:2},1);si.f=nl?function(l){var p=ti(this,l);return !!p&&p.enumerable}:ei;});var ms=v((_f,ii)=>{ii.exports=function(h,l){return {enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:l}};});var ie=v((zf,oi)=>{var ai=Tt(),ni=Function.prototype,ol=ni.bind,ys=ni.call,hl=ai&&ol.bind(ys,ys);oi.exports=ai?function(h){return h&&hl(h)}:function(h){return h&&function(){return ys.apply(h,arguments)}};});var vt=v((Kf,li)=>{var hi=ie(),ll=hi({}.toString),ul=hi("".slice);li.exports=function(h){return ul(ll(h),8,-1)};});var ci=v((Vf,ui)=>{var cl=W(),pl=ie(),fl=Ae(),dl=vt(),xs=cl.Object,ml=pl("".split);ui.exports=fl(function(){return !xs("z").propertyIsEnumerable(0)})?function(h){return dl(h)=="String"?ml(h,""):xs(h)}:xs;});var gs=v((Hf,pi)=>{var yl=W(),xl=yl.TypeError;pi.exports=function(h){if(h==null)throw xl("Can't call method on "+h);return h};});var Ct=v((Wf,fi)=>{var gl=ci(),Al=gs();fi.exports=function(h){return gl(Al(h))};});var ae=v((Gf,di)=>{di.exports=function(h){return typeof h=="function"};});var Fe=v((Xf,mi)=>{var Pl=ae();mi.exports=function(h){return typeof h=="object"?h!==null:Pl(h)};});var $e=v((Jf,yi)=>{var As=W(),Tl=ae(),El=function(h){return Tl(h)?h:void 0};yi.exports=function(h,l){return arguments.length<2?El(As[h]):As[h]&&As[h][l]};});var gi=v((Yf,xi)=>{var bl=ie();xi.exports=bl({}.isPrototypeOf);});var Pi=v(($f,Ai)=>{var vl=$e();Ai.exports=vl("navigator","userAgent")||"";});var wi=v((Qf,Si)=>{var Ci=W(),Ps=Pi(),Ti=Ci.process,Ei=Ci.Deno,bi=Ti&&Ti.versions||Ei&&Ei.version,vi=bi&&bi.v8,he,St;vi&&(he=vi.split("."),St=he[0]>0&&he[0]<4?1:+(he[0]+he[1]));!St&&Ps&&(he=Ps.match(/Edge\/(\d+)/),(!he||he[1]>=74)&&(he=Ps.match(/Chrome\/(\d+)/),he&&(St=+he[1])));Si.exports=St;});var Ts=v((Zf,Ii)=>{var Ni=wi(),Cl=Ae();Ii.exports=!!Object.getOwnPropertySymbols&&!Cl(function(){var h=Symbol();return !String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&Ni&&Ni<41});});var Es=v((ed,ki)=>{var Sl=Ts();ki.exports=Sl&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var bs=v((td,Di)=>{var wl=W(),Nl=$e(),Il=ae(),kl=gi(),Dl=Es(),Fl=wl.Object;Di.exports=Dl?function(h){return typeof h=="symbol"}:function(h){var l=Nl("Symbol");return Il(l)&&kl(l.prototype,Fl(h))};});var Li=v((sd,Fi)=>{var Ll=W(),Ol=Ll.String;Fi.exports=function(h){try{return Ol(h)}catch{return "Object"}};});var wt=v((rd,Oi)=>{var Bl=W(),Ml=ae(),Rl=Li(),jl=Bl.TypeError;Oi.exports=function(h){if(Ml(h))return h;throw jl(Rl(h)+" is not a function")};});var Mi=v((id,Bi)=>{var ql=wt();Bi.exports=function(h,l){var p=h[l];return p==null?void 0:ql(p)};});var ji=v((ad,Ri)=>{var Ul=W(),vs=bt(),Cs=ae(),Ss=Fe(),_l=Ul.TypeError;Ri.exports=function(h,l){var p,d;if(l==="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h))||Cs(p=h.valueOf)&&!Ss(d=vs(p,h))||l!=="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h)))return d;throw _l("Can't convert object to primitive value")};});var Ui=v((nd,qi)=>{qi.exports=!1;});var Nt=v((od,zi)=>{var _i=W(),zl=Object.defineProperty;zi.exports=function(h,l){try{zl(_i,h,{value:l,configurable:!0,writable:!0});}catch{_i[h]=l;}return l};});var It=v((hd,Vi)=>{var Kl=W(),Vl=Nt(),Ki="__core-js_shared__",Hl=Kl[Ki]||Vl(Ki,{});Vi.exports=Hl;});var ws=v((ld,Wi)=>{var Wl=Ui(),Hi=It();(Wi.exports=function(h,l){return Hi[h]||(Hi[h]=l!==void 0?l:{})})("versions",[]).push({version:"3.21.1",mode:Wl?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var Ns=v((ud,Gi)=>{var Gl=W(),Xl=gs(),Jl=Gl.Object;Gi.exports=function(h){return Jl(Xl(h))};});var Ce=v((cd,Xi)=>{var Yl=ie(),$l=Ns(),Ql=Yl({}.hasOwnProperty);Xi.exports=Object.hasOwn||function(l,p){return Ql($l(l),p)};});var Is=v((pd,Ji)=>{var Zl=ie(),eu=0,tu=Math.random(),su=Zl(1 .toString);Ji.exports=function(h){return "Symbol("+(h===void 0?"":h)+")_"+su(++eu+tu,36)};});var Qe=v((fd,ea)=>{var ru=W(),iu=ws(),Yi=Ce(),au=Is(),$i=Ts(),Zi=Es(),ze=iu("wks"),Le=ru.Symbol,Qi=Le&&Le.for,nu=Zi?Le:Le&&Le.withoutSetter||au;ea.exports=function(h){if(!Yi(ze,h)||!($i||typeof ze[h]=="string")){var l="Symbol."+h;$i&&Yi(Le,h)?ze[h]=Le[h]:Zi&&Qi?ze[h]=Qi(l):ze[h]=nu(l);}return ze[h]};});var ia=v((dd,ra)=>{var ou=W(),hu=bt(),ta=Fe(),sa=bs(),lu=Mi(),uu=ji(),cu=Qe(),pu=ou.TypeError,fu=cu("toPrimitive");ra.exports=function(h,l){if(!ta(h)||sa(h))return h;var p=lu(h,fu),d;if(p){if(l===void 0&&(l="default"),d=hu(p,h,l),!ta(d)||sa(d))return d;throw pu("Can't convert object to primitive value")}return l===void 0&&(l="number"),uu(h,l)};});var ks=v((md,aa)=>{var du=ia(),mu=bs();aa.exports=function(h){var l=du(h,"string");return mu(l)?l:l+""};});var ha=v((yd,oa)=>{var yu=W(),na=Fe(),Ds=yu.document,xu=na(Ds)&&na(Ds.createElement);oa.exports=function(h){return xu?Ds.createElement(h):{}};});var Fs=v((xd,la)=>{var gu=De(),Au=Ae(),Pu=ha();la.exports=!gu&&!Au(function(){return Object.defineProperty(Pu("div"),"a",{get:function(){return 7}}).a!=7});});var Ls=v(ca=>{var Tu=De(),Eu=bt(),bu=ri(),vu=ms(),Cu=Ct(),Su=ks(),wu=Ce(),Nu=Fs(),ua=Object.getOwnPropertyDescriptor;ca.f=Tu?ua:function(l,p){if(l=Cu(l),p=Su(p),Nu)try{return ua(l,p)}catch{}if(wu(l,p))return vu(!Eu(bu.f,l,p),l[p])};});var fa=v((Ad,pa)=>{var Iu=De(),ku=Ae();pa.exports=Iu&&ku(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var Os=v((Pd,ma)=>{var da=W(),Du=Fe(),Fu=da.String,Lu=da.TypeError;ma.exports=function(h){if(Du(h))return h;throw Lu(Fu(h)+" is not an object")};});var qs=v(xa=>{var Ou=W(),Bu=De(),Mu=Fs(),Ru=fa(),kt=Os(),ya=ks(),ju=Ou.TypeError,Bs=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Ms="enumerable",Rs="configurable",js="writable";xa.f=Bu?Ru?function(l,p,d){if(kt(l),p=ya(p),kt(d),typeof l=="function"&&p==="prototype"&&"value"in d&&js in d&&!d[js]){var m=qu(l,p);m&&m[js]&&(l[p]=d.value,d={configurable:Rs in d?d[Rs]:m[Rs],enumerable:Ms in d?d[Ms]:m[Ms],writable:!1});}return Bs(l,p,d)}:Bs:function(l,p,d){if(kt(l),p=ya(p),kt(d),Mu)try{return Bs(l,p,d)}catch{}if("get"in d||"set"in d)throw ju("Accessors not supported");return "value"in d&&(l[p]=d.value),l};});var Dt=v((Ed,ga)=>{var Uu=De(),_u=qs(),zu=ms();ga.exports=Uu?function(h,l,p){return _u.f(h,l,zu(1,p))}:function(h,l,p){return h[l]=p,h};});var Ft=v((bd,Aa)=>{var Ku=ie(),Vu=ae(),Us=It(),Hu=Ku(Function.toString);Vu(Us.inspectSource)||(Us.inspectSource=function(h){return Hu(h)});Aa.exports=Us.inspectSource;});var Ea=v((vd,Ta)=>{var Wu=W(),Gu=ae(),Xu=Ft(),Pa=Wu.WeakMap;Ta.exports=Gu(Pa)&&/native code/.test(Xu(Pa));});var Ca=v((Cd,va)=>{var Ju=ws(),Yu=Is(),ba=Ju("keys");va.exports=function(h){return ba[h]||(ba[h]=Yu(h))};});var _s=v((Sd,Sa)=>{Sa.exports={};});var Fa=v((wd,Da)=>{var $u=Ea(),ka=W(),zs=ie(),Qu=Fe(),Zu=Dt(),Ks=Ce(),Vs=It(),ec=Ca(),tc=_s(),wa="Object already initialized",Ws=ka.TypeError,sc=ka.WeakMap,Lt,Ze,Ot,rc=function(h){return Ot(h)?Ze(h):Lt(h,{})},ic=function(h){return function(l){var p;if(!Qu(l)||(p=Ze(l)).type!==h)throw Ws("Incompatible receiver, "+h+" required");return p}};$u||Vs.state?(Se=Vs.state||(Vs.state=new sc),Na=zs(Se.get),Hs=zs(Se.has),Ia=zs(Se.set),Lt=function(h,l){if(Hs(Se,h))throw new Ws(wa);return l.facade=h,Ia(Se,h,l),l},Ze=function(h){return Na(Se,h)||{}},Ot=function(h){return Hs(Se,h)}):(Oe=ec("state"),tc[Oe]=!0,Lt=function(h,l){if(Ks(h,Oe))throw new Ws(wa);return l.facade=h,Zu(h,Oe,l),l},Ze=function(h){return Ks(h,Oe)?h[Oe]:{}},Ot=function(h){return Ks(h,Oe)});var Se,Na,Hs,Ia,Oe;Da.exports={set:Lt,get:Ze,has:Ot,enforce:rc,getterFor:ic};});var Ba=v((Nd,Oa)=>{var Gs=De(),ac=Ce(),La=Function.prototype,nc=Gs&&Object.getOwnPropertyDescriptor,Xs=ac(La,"name"),oc=Xs&&function(){}.name==="something",hc=Xs&&(!Gs||Gs&&nc(La,"name").configurable);Oa.exports={EXISTS:Xs,PROPER:oc,CONFIGURABLE:hc};});var Ua=v((Id,qa)=>{var lc=W(),Ma=ae(),uc=Ce(),Ra=Dt(),cc=Nt(),pc=Ft(),ja=Fa(),fc=Ba().CONFIGURABLE,dc=ja.get,mc=ja.enforce,yc=String(String).split("String");(qa.exports=function(h,l,p,d){var m=d?!!d.unsafe:!1,A=d?!!d.enumerable:!1,x=d?!!d.noTargetGet:!1,g=d&&d.name!==void 0?d.name:l,P;if(Ma(p)&&(String(g).slice(0,7)==="Symbol("&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uc(p,"name")||fc&&p.name!==g)&&Ra(p,"name",g),P=mc(p),P.source||(P.source=yc.join(typeof g=="string"?g:""))),h===lc){A?h[l]=p:cc(l,p);return}else m?!x&&h[l]&&(A=!0):delete h[l];A?h[l]=p:Ra(h,l,p);})(Function.prototype,"toString",function(){return Ma(this)&&dc(this).source||pc(this)});});var Js=v((kd,_a)=>{var xc=Math.ceil,gc=Math.floor;_a.exports=function(h){var l=+h;return l!==l||l===0?0:(l>0?gc:xc)(l)};});var Ka=v((Dd,za)=>{var Ac=Js(),Pc=Math.max,Tc=Math.min;za.exports=function(h,l){var p=Ac(h);return p<0?Pc(p+l,0):Tc(p,l)};});var Ha=v((Fd,Va)=>{var Ec=Js(),bc=Math.min;Va.exports=function(h){return h>0?bc(Ec(h),9007199254740991):0};});var Bt=v((Ld,Wa)=>{var vc=Ha();Wa.exports=function(h){return vc(h.length)};});var Ja=v((Od,Xa)=>{var Cc=Ct(),Sc=Ka(),wc=Bt(),Ga=function(h){return function(l,p,d){var m=Cc(l),A=wc(m),x=Sc(d,A),g;if(h&&p!=p){for(;A>x;)if(g=m[x++],g!=g)return !0}else for(;A>x;x++)if((h||x in m)&&m[x]===p)return h||x||0;return !h&&-1}};Xa.exports={includes:Ga(!0),indexOf:Ga(!1)};});var Qa=v((Bd,$a)=>{var Nc=ie(),Ys=Ce(),Ic=Ct(),kc=Ja().indexOf,Dc=_s(),Ya=Nc([].push);$a.exports=function(h,l){var p=Ic(h),d=0,m=[],A;for(A in p)!Ys(Dc,A)&&Ys(p,A)&&Ya(m,A);for(;l.length>d;)Ys(p,A=l[d++])&&(~kc(m,A)||Ya(m,A));return m};});var en=v((Md,Za)=>{Za.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sn=v(tn=>{var Fc=Qa(),Lc=en(),Oc=Lc.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(l){return Fc(l,Oc)};});var an=v(rn=>{rn.f=Object.getOwnPropertySymbols;});var on=v((qd,nn)=>{var Bc=$e(),Mc=ie(),Rc=sn(),jc=an(),qc=Os(),Uc=Mc([].concat);nn.exports=Bc("Reflect","ownKeys")||function(l){var p=Rc.f(qc(l)),d=jc.f;return d?Uc(p,d(l)):p};});var un=v((Ud,ln)=>{var hn=Ce(),_c=on(),zc=Ls(),Kc=qs();ln.exports=function(h,l,p){for(var d=_c(l),m=Kc.f,A=zc.f,x=0;x<d.length;x++){var g=d[x];!hn(h,g)&&!(p&&hn(p,g))&&m(h,g,A(l,g));}};});var pn=v((_d,cn)=>{var Vc=Ae(),Hc=ae(),Wc=/#|\.prototype\./,et=function(h,l){var p=Xc[Gc(h)];return p==Yc?!0:p==Jc?!1:Hc(l)?Vc(l):!!l},Gc=et.normalize=function(h){return String(h).replace(Wc,".").toLowerCase()},Xc=et.data={},Jc=et.NATIVE="N",Yc=et.POLYFILL="P";cn.exports=et;});var Qs=v((zd,fn)=>{var $s=W(),$c=Ls().f,Qc=Dt(),Zc=Ua(),ep=Nt(),tp=un(),sp=pn();fn.exports=function(h,l){var p=h.target,d=h.global,m=h.stat,A,x,g,P,N,D;if(d?x=$s:m?x=$s[p]||ep(p,{}):x=($s[p]||{}).prototype,x)for(g in l){if(N=l[g],h.noTargetGet?(D=$c(x,g),P=D&&D.value):P=x[g],A=sp(d?g:p+(m?".":"#")+g,h.forced),!A&&P!==void 0){if(typeof N==typeof P)continue;tp(N,P);}(h.sham||P&&P.sham)&&Qc(N,"sham",!0),Zc(x,g,N,h);}};});var dn=v(()=>{var rp=Qs(),ip=W();rp({global:!0},{globalThis:ip});});var mn=v(()=>{dn();});var Zs=v((Gd,yn)=>{var ap=vt();yn.exports=Array.isArray||function(l){return ap(l)=="Array"};});var An=v((Xd,gn)=>{var xn=ie(),np=wt(),op=Tt(),hp=xn(xn.bind);gn.exports=function(h,l){return np(h),l===void 0?h:op?hp(h,l):function(){return h.apply(l,arguments)}};});var En=v((Jd,Tn)=>{var lp=W(),up=Zs(),cp=Bt(),pp=An(),fp=lp.TypeError,Pn=function(h,l,p,d,m,A,x,g){for(var P=m,N=0,D=x?pp(x,g):!1,T,L;N<d;){if(N in p){if(T=D?D(p[N],N,l):p[N],A>0&&up(T))L=cp(T),P=Pn(h,l,T,L,P,A-1)-1;else {if(P>=9007199254740991)throw fp("Exceed the acceptable array length");h[P]=T;}P++;}N++;}return P};Tn.exports=Pn;});var Cn=v((Yd,vn)=>{var dp=Qe(),mp=dp("toStringTag"),bn={};bn[mp]="z";vn.exports=String(bn)==="[object z]";});var wn=v(($d,Sn)=>{var yp=W(),xp=Cn(),gp=ae(),Mt=vt(),Ap=Qe(),Pp=Ap("toStringTag"),Tp=yp.Object,Ep=Mt(function(){return arguments}())=="Arguments",bp=function(h,l){try{return h[l]}catch{}};Sn.exports=xp?Mt:function(h){var l,p,d;return h===void 0?"Undefined":h===null?"Null":typeof(p=bp(l=Tp(h),Pp))=="string"?p:Ep?Mt(l):(d=Mt(l))=="Object"&&gp(l.callee)?"Arguments":d};});var Ln=v((Qd,Fn)=>{var vp=ie(),Cp=Ae(),Nn=ae(),Sp=wn(),wp=$e(),Np=Ft(),In=function(){},Ip=[],kn=wp("Reflect","construct"),er=/^\s*(?:class|function)\b/,kp=vp(er.exec),Dp=!er.exec(In),tt=function(l){if(!Nn(l))return !1;try{return kn(In,Ip,l),!0}catch{return !1}},Dn=function(l){if(!Nn(l))return !1;switch(Sp(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Dp||!!kp(er,Np(l))}catch{return !0}};Dn.sham=!0;Fn.exports=!kn||Cp(function(){var h;return tt(tt.call)||!tt(Object)||!tt(function(){h=!0;})||h})?Dn:tt;});var Rn=v((Zd,Mn)=>{var Fp=W(),On=Zs(),Lp=Ln(),Op=Fe(),Bp=Qe(),Mp=Bp("species"),Bn=Fp.Array;Mn.exports=function(h){var l;return On(h)&&(l=h.constructor,Lp(l)&&(l===Bn||On(l.prototype))?l=void 0:Op(l)&&(l=l[Mp],l===null&&(l=void 0))),l===void 0?Bn:l};});var qn=v((em,jn)=>{var Rp=Rn();jn.exports=function(h,l){return new(Rp(h))(l===0?0:l)};});var Un=v(()=>{var jp=Qs(),qp=En(),Up=wt(),_p=Ns(),zp=Bt(),Kp=qn();jp({target:"Array",proto:!0},{flatMap:function(l){var p=_p(this),d=zp(p),m;return Up(l),m=Kp(p,0),m.length=qp(m,p,p,d,0,1,l,arguments.length>1?arguments[1]:void 0),m}});});var Ff=v((rm,Po)=>{var _n,zn,Kn,Vn,Hn;function st(h,l){return l||(l=h.slice(0)),Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(l)}}))}mn();Un();var ir=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,Hp=Object.prototype.hasOwnProperty,Yn=(h,l)=>function(){return h&&(l=(0, h[ar(h)[0]])(h=0)),l},H=(h,l)=>function(){return l||(0, h[ar(h)[0]])((l={exports:{}}).exports,l),l.exports},Wp=(h,l)=>{for(var p in l)ir(h,p,{get:l[p],enumerable:!0});},Gp=(h,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of ar(l))!Hp.call(h,m)&&m!==p&&ir(h,m,{get:()=>l[m],enumerable:!(d=Vp(l,m))||d.enumerable});return h},Xp=h=>Gp(ir({},"__esModule",{value:!0}),h),V=Yn({"<define:process>"(){}}),Jp=H({"src/utils/try-combinations.js"(h,l){V();function p(){let d;for(var m=arguments.length,A=new Array(m),x=0;x<m;x++)A[x]=arguments[x];for(let[g,P]of A.entries())try{return {result:P()}}catch(N){g===0&&(d=N);}return {error:d}}l.exports=p;}}),$n=H({"src/language-js/utils/get-shebang.js"(h,l){V();function p(d){if(!d.startsWith("#!"))return "";let m=d.indexOf(`
|
|
24
24
|
`);return m===-1?d:d.slice(0,m)}l.exports=p;}}),Yp=H({"src/utils/text/skip-inline-comment.js"(h,l){V();function p(d,m){if(m===!1)return !1;if(d.charAt(m)==="/"&&d.charAt(m+1)==="*"){for(let A=m+2;A<d.length;++A)if(d.charAt(A)==="*"&&d.charAt(A+1)==="/")return A+2}return m}l.exports=p;}}),$p=H({"src/utils/text/skip-newline.js"(h,l){V();function p(d,m,A){let x=A&&A.backwards;if(m===!1)return !1;let g=d.charAt(m);if(x){if(d.charAt(m-1)==="\r"&&g===`
|
|
25
25
|
`)return m-2;if(g===`
|
|
26
26
|
`||g==="\r"||g==="\u2028"||g==="\u2029")return m-1}else {if(g==="\r"&&d.charAt(m+1)===`
|
|
@@ -49,7 +49,7 @@ var parserBabel$2 = {exports: {}};
|
|
|
49
49
|
`),cooked:i===null?null:i.slice(1,c)},n.tail=o,this.next(),this.finishNode(n,"TemplateElement"),this.resetEndLocation(n,m(this.state.lastTokEndLoc,c)),n}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),n=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let f;e?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(r),this.checkProto(f,s,a,r)),s&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(u.InvalidRecordProperty,{at:f}),f.shorthand&&this.addExtra(f,"shorthand",!0),o.properties.push(f);}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(t){return !t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(u.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),r=!1,i=!1,a,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(a=this.state.start,n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let c=this.state.containsEsc,f=this.parsePropertyName(s,t);if(!o&&!c&&this.maybeAsyncOrAccessorProp(s)){let y=f.name;y==="async"&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(f),o=this.eat(55),this.parsePropertyName(s)),(y==="get"||y==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(f),s.kind=y,this.match(55)&&(o=!0,this.raise(u.AccessorIsGenerator,{at:this.state.curPosition(),kind:y}),this.next()),this.parsePropertyName(s));}return this.parseObjPropValue(s,a,n,o,r,!1,i,t),s}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t);r.length!==s&&this.raise(t.kind==="get"?u.BadGetterArity:u.BadSetterArity,{at:t}),t.kind==="set"&&((e=r[r.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(u.BadSetterRestParameter,{at:t});}parseObjectMethod(t,e,s,r,i){if(i)return this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t;if(s||e||this.match(10))return r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,r,i){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,s,ge(t.key));else if(this.match(29)){let a=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=a):this.raise(u.InvalidCoverInitializedName,{at:a}),t.value=this.parseMaybeDefault(e,s,ge(t.key));}else t.value=ge(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,r,i,a,n,o){let c=this.parseObjectMethod(t,r,i,a,n)||this.parseObjectProperty(t,e,s,a,o);return c||this.unexpected(),c}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:s,value:r}=this.state,i;if(pe(s))i=this.parseIdentifier(!0);else switch(s){case 130:i=this.parseNumericLiteral(r);break;case 129:i=this.parseStringLiteral(r);break;case 131:i=this.parseBigIntLiteral(r);break;case 132:i=this.parseDecimalLiteral(r);break;case 134:{let a=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=a):this.raise(u.UnexpectedPrivateField,{at:a}),i=this.parsePrivateName();break}default:throw this.unexpected()}t.key=i,s!==134&&(t.computed=!1);}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=!!e;}parseMethod(t,e,s,r,i,a){let n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(t,s),t.generator=!!e;let o=r;return this.scope.enter(me|ot|(n?we:0)|(i?gr:0)),this.prodParam.enter(xt(s,t.generator)),this.parseFunctionParams(t,o),this.parseFunctionBodyAndFinish(t,a,!0),this.prodParam.exit(),this.scope.exit(),t}parseArrayLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!s,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,r){this.scope.enter(me|Xt);let i=xt(s,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=Ue),this.prodParam.enter(i),this.initFunction(t,s);let a=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){t.params=this.toAssignableList(e,s,!1);}parseFunctionBodyAndFinish(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parseFunctionBody(t,!1,s),this.finishNode(t,e);}parseFunctionBody(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e&&!this.match(5);if(this.expressionScope.enter(Fr()),r)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else {let i=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Or),t.body=this.parseBlock(!0,!1,n=>{let o=!this.isSimpleParamList(t.params);n&&o&&this.raise(u.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&!!t.key?t.key.loc.end:t});let c=!i&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!o,e,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,Ho,c);}),this.prodParam.exit(),this.state.labels=a;}this.expressionScope.exit();}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e<s;e++)if(!this.isSimpleParameter(t[e]))return !1;return !0}checkParams(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=!e&&new Set,a={type:"FormalParameters"};for(let n of t.params)this.checkLVal(n,{in:a,binding:pt,checkClashes:i,strictModeChanged:r});}parseExprList(t,e,s,r){let i=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,s));}return i}parseExprListItem(t,e,s){let r;if(this.match(12))t||this.raise(u.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),r=null;else if(this.match(21)){let i=this.state.start,a=this.state.startLoc;r=this.parseParenItem(this.parseSpread(e),i,a);}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(u.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let i=this.startNode();this.next(),r=this.finishNode(i,"ArgumentPlaceholder");}else r=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return r}parseIdentifier(t){let e=this.startNode(),s=this.parseIdentifierName(e.start,t);return this.createIdentifier(e,s)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t,e){let s,{startLoc:r,type:i}=this.state;if(pe(i))s=this.state.value;else throw this.unexpected();let a=bo(i);return e?a&&this.replaceToken(128):this.checkReservedWord(s,r,a,!1),this.next(),s}checkReservedWord(t,e,s,r){if(t.length>10||!zo(t))return;if(t==="yield"){if(this.prodParam.hasYield){this.raise(u.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(u.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(u.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e});}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(u.ArgumentsInClass,{at:e});return}if(s&&qo(t)){this.raise(u.UnexpectedKeyword,{at:e,keyword:t});return}(this.state.strict?r?yr:dr:fr)(t,this.inModule)&&this.raise(u.UnexpectedReservedWord,{at:e,reservedWord:t});}isAwaitAllowed(){return !!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t,e){let s=this.startNodeAt(t,e);return this.expressionScope.recordParameterInitializerError(u.AwaitExpressionFormalParameter,{at:s}),this.eat(55)&&this.raise(u.ObsoleteAwaitStar,{at:s}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(s.argument=this.parseMaybeUnary(null,!0)),this.finishNode(s,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;let{type:t}=this.state;return t===53||t===10||t===0||nt(t)||t===133||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(u.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign();}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(u.PipelineHeadSequenceExpression,{at:e});}parseSmartPipelineBodyInStyle(t,e,s){let r=this.startNodeAt(e,s);return this.isSimpleReference(t)?(r.callee=t,this.finishNode(r,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(s),r.expression=t,this.finishNode(r,"PipelineTopicExpression"))}isSimpleReference(t){switch(t.type){case"MemberExpression":return !t.computed&&this.isSimpleReference(t.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(u.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(u.PipelineTopicUnused,{at:t});}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e;}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e;}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e;}}allowInAnd(t){let e=this.prodParam.currentFlags();if(Ue&~e){this.prodParam.enter(e|Ue);try{return t()}finally{this.prodParam.exit();}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(Ue&e){this.prodParam.enter(e&~Ue);try{return t()}finally{this.prodParam.exit();}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.start,s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,s,t);return this.state.inFSharpPipelineDirectBody=r,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.eat(5);let e=this.initializeScopes(!0);this.enterInitialScopes();let s=this.startNode();try{t.body=this.parseProgram(s,8,"module");}finally{e();}return this.eat(8),this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},ps={kind:"loop"},Wh={kind:"switch"},Gh=0,fs=1,Hr=2,Wr=4,Xh=/[\uD800-\uDFFF]/u,ds=/in(?:stanceof)?/y;function Jh(t,e){for(let s=0;s<t.length;s++){let r=t[s],{type:i}=r;if(typeof i=="number"){{if(i===134){let{loc:a,start:n,value:o,end:c}=r,f=n+1,y=m(a.start,1);t.splice(s,1,new be({type:fe(27),value:"#",start:n,end:f,startLoc:a.start,endLoc:y}),new be({type:fe(128),value:o,start:f,end:c,startLoc:y,endLoc:a.end})),s++;continue}if(nt(i)){let{loc:a,start:n,value:o,end:c}=r,f=n+1,y=m(a.start,1),C;e.charCodeAt(n)===96?C=new be({type:fe(22),value:"`",start:n,end:f,startLoc:a.start,endLoc:y}):C=new be({type:fe(8),value:"}",start:n,end:f,startLoc:a.start,endLoc:y});let S,I,M,R;i===24?(I=c-1,M=m(a.end,-1),S=o===null?null:o.slice(1,-1),R=new be({type:fe(22),value:"`",start:I,end:c,startLoc:M,endLoc:a.end})):(I=c-2,M=m(a.end,-2),S=o===null?null:o.slice(1,-2),R=new be({type:fe(23),value:"${",start:I,end:c,startLoc:M,endLoc:a.end})),t.splice(s,1,C,new be({type:fe(20),value:S,start:f,end:I,startLoc:y,endLoc:M}),R),s+=2;continue}}r.type=fe(i);}}return t}var Yh=class extends Hh{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.state.comments,this.options.tokens&&(t.tokens=Jh(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:135,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(t.sourceType=s,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[r,i]of Array.from(this.scope.undefinedExports))this.raise(u.ModuleExportUndefined,{at:i,localName:r});return this.finishNode(t,"Program")}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,r=s.value,i=this.input.slice(s.start,s.end),a=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",a),this.addExtra(s,"expressionValue",r),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(t){return this.isContextual(99)?this.isLetKeyword(t):!1}isLetKeyword(t){let e=this.nextTokenStart(),s=this.codePointAtPos(e);if(s===92||s===91)return !0;if(t)return !1;if(s===123)return !0;if(de(s)){if(ds.lastIndex=e,ds.test(this.input)){let r=this.codePointAtPos(ds.lastIndex);if(!Me(r)&&r!==92)return !1}return !0}return !1}parseStatement(t,e){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,r=this.startNode(),i;switch(this.isLet(t)&&(s=74,i="let"),s){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return t&&(this.state.strict?this.raise(u.StrictFunction,{at:this.state.startLoc}):t!=="if"&&t!=="label"&&this.raise(u.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(r,!1,!t);case 80:return t&&this.unexpected(),this.parseClass(r,!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 75:case 74:return i=i||this.state.value,t&&i!=="var"&&this.raise(u.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(r,i);case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let o=this.lookaheadCharCode();if(o===40||o===46)break}case 82:{!this.options.allowImportExportEverywhere&&!e&&this.raise(u.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let o;return s===83?(o=this.parseImport(r),o.type==="ImportDeclaration"&&(!o.importKind||o.importKind==="value")&&(this.sawUnambiguousESM=!0)):(o=this.parseExport(r),(o.type==="ExportNamedDeclaration"&&(!o.exportKind||o.exportKind==="value")||o.type==="ExportAllDeclaration"&&(!o.exportKind||o.exportKind==="value")||o.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(r),o}default:if(this.isAsyncFunction())return t&&this.raise(u.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(r,!0,!t)}let a=this.state.value,n=this.parseExpression();return K(s)&&n.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(r,a,n,t):this.parseExpressionStatement(r,n)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(u.ImportOutsideModule,{at:t});}takeDecorators(t){let e=this.state.decoratorStack[this.state.decoratorStack.length-1];e.length&&(t.decorators=e,this.resetStartLocationFromNode(t,e[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[]);}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let s=this.parseDecorator();e.push(s);}if(this.match(82))t||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(u.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(u.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let e=this.state.start,s=this.state.startLoc,r;if(this.eat(10))r=this.parseExpression(),this.expect(11);else for(r=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e,s);i.object=r,i.property=this.parseIdentifier(!0),i.computed=!1,r=this.finishNode(i,"MemberExpression");}t.expression=this.parseMaybeDecoratorArguments(r),this.state.decoratorStack.pop();}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;s<this.state.labels.length;++s){let r=this.state.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(e||r.kind==="loop")||t.label&&e))break}if(s===this.state.labels.length){let r=e?"BreakStatement":"ContinueStatement";this.raise(u.IllegalBreakContinue,{at:t,type:r});}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoStatement(t){return this.next(),this.state.labels.push(ps),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(ps);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(Re),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99),r=s&&this.isLetKeyword();if(this.match(74)||this.match(75)||r){let c=this.startNode(),f=r?"let":this.state.value;return this.next(),this.parseVar(c,!0,f),this.finishNode(c,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&c.declarations.length===1?this.parseForIn(t,c,e):(e!==null&&this.unexpected(e),this.parseFor(t,c))}let i=this.isContextual(95),a=new gt,n=this.parseExpression(!0,a),o=this.isContextual(101);if(o&&(s&&this.raise(u.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(u.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(n,!0);let c=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:c}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(a,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,fs|(s?0:Hr),e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return !this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(u.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(Wh),this.scope.enter(Re);let s;for(let r;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),i?s.test=this.parseExpression():(r&&this.raise(u.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),r=!0,s.test=null),this.expect(14);}else s?s.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(u.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom(),e=t.type==="Identifier";return this.scope.enter(e?xr:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:xe,allowingSloppyLetBinding:!0}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(Re)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause");}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(u.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ps),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(u.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,r){for(let a of this.state.labels)a.name===e&&this.raise(u.LabelRedeclaration,{at:s,labelName:e});let i=So(this.state.type)?"loop":this.match(71)?"switch":null;for(let a=this.state.labels.length-1;a>=0;a--){let n=this.state.labels[a];if(n.statementStart===t.start)n.statementStart=this.state.start,n.kind=i;else break}return this.state.labels.push({name:e,kind:i,statementStart:this.state.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0,r=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(Re),this.parseBlockBody(r,t,!1,8,s),e&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,r,i){let a=t.body=[],n=t.directives=[];this.parseBlockOrModuleBlockBody(a,e?n:void 0,s,r,i);}parseBlockOrModuleBlockBody(t,e,s,r,i){let a=this.state.strict,n=!1,o=!1;for(;!this.match(r);){let c=this.parseStatement(null,s);if(e&&!o){if(this.isValidDirective(c)){let f=this.stmtToDirective(c);e.push(f),!n&&f.value.value==="use strict"&&(n=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear();}t.push(c);}i&&i.call(this,n),a||this.setStrict(!1),this.next();}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let r=this.match(58);return this.next(),r?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(u.ForInOfLoopInitializer,{at:e,type:r?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(u.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")}parseVar(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t.declarations=[];for(t.kind=s;;){let a=this.startNode();if(this.parseVarId(a,s),a.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!r&&(a.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(u.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(u.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,{in:{type:"VariableDeclarator"},binding:e==="var"?pt:xe});}parseFunction(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gh,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e&fs,i=e&Hr,a=!!r&&!(e&Wr);this.initFunction(t,s),this.match(55)&&i&&this.raise(u.GeneratorInSingleStatementContext,{at:this.state.startLoc}),t.generator=this.eat(55),r&&(t.id=this.parseFunctionId(a));let n=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(me),this.prodParam.enter(xt(s,t.generator)),r||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,r?"FunctionDeclaration":"FunctionExpression");}),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=n,t}parseFunctionId(t){return t||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(mh()),t.params=this.parseBindingList(11,41,!1,e),this.expressionScope.exit();}registerFunctionStatementId(t){!t.id||this.scope.declareName(t.id.name,this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?pt:xe:Er,t.id.loc.start);}parseClass(t,e,s){this.next(),this.takeDecorators(t);let r=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,r),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return !t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(u.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){r.push(this.parseDecorator());continue}let a=this.startNode();r.length&&(a.decorators=r,this.resetStartLocationFromNode(a,r[0]),r=[]),this.parseClassMember(i,a,s),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(u.DecoratorConstructor,{at:a});}}),this.state.strict=e,this.next(),r.length)throw this.raise(u.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let r=e;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(t,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=e;return r.computed=!1,r.key=s,r.static=!1,t.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let r=this.isContextual(104);if(r){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,r);}parseClassMemberWithIsStatic(t,e,s,r){let i=e,a=e,n=e,o=e,c=e,f=i,y=i;if(e.static=r,this.parsePropertyNamePrefixOperator(e),this.eat(55)){f.kind="method";let R=this.match(134);if(this.parseClassElementName(f),R){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsGenerator,{at:i.key}),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let C=K(this.state.type)&&!this.state.containsEsc,S=this.match(134),I=this.parseClassElementName(e),M=this.state.startLoc;if(this.parsePostMemberNameModifiers(y),this.isClassMethod()){if(f.kind="method",S){this.pushClassPrivateMethod(t,a,!1,!1);return}let R=this.isNonstaticConstructor(i),$=!1;R&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(u.DuplicateConstructor,{at:I}),R&&this.hasPlugin("typescript")&&e.override&&this.raise(u.OverrideOnConstructor,{at:I}),s.hadConstructor=!0,$=s.hadSuperClass),this.pushClassMethod(t,i,!1,!1,R,$);}else if(this.isClassProperty())S?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n);else if(C&&I.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(I);let R=this.eat(55);y.optional&&this.unexpected(M),f.kind="method";let $=this.match(134);this.parseClassElementName(f),this.parsePostMemberNameModifiers(y),$?this.pushClassPrivateMethod(t,a,R,!0):(this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsAsync,{at:i.key}),this.pushClassMethod(t,i,R,!0,!1,!1));}else if(C&&(I.name==="get"||I.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(I),f.kind=I.name;let R=this.match(134);this.parseClassElementName(i),R?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsAccessor,{at:i.key}),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i);}else if(C&&I.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(I);let R=this.match(134);this.parseClassElementName(n),this.pushClassAccessorProperty(t,c,R);}else this.isLineTerminator()?S?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n):this.unexpected();}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===128||e===129)&&t.static&&s==="prototype"&&this.raise(u.StaticPrototype,{at:this.state.startLoc}),e===134){s==="constructor"&&this.raise(u.ConstructorClassPrivateField,{at:this.state.startLoc});let r=this.parsePrivateName();return t.key=r,r}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(we|Jt|ot);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(qe);let i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(u.DecoratorStaticBlock,{at:e});}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(u.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e));}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),rs,s.key.loc.start);}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let i=e.key;(i.name==="constructor"||i.value==="constructor")&&this.raise(u.ConstructorClassField,{at:i});}let r=this.parseClassAccessorProperty(e);t.body.push(r),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),rs,r.key.loc.start);}pushClassMethod(t,e,s,r,i,a){t.body.push(this.parseMethod(e,s,r,i,a,"ClassMethod",!0));}pushClassPrivateMethod(t,e,s,r){let i=this.parseMethod(e,s,r,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);let a=i.kind==="get"?i.static?Jo:$o:i.kind==="set"?i.static?Yo:Qo:rs;this.declareClassPrivateMethodInScope(i,a);}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start);}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(we|ot),this.expressionScope.enter(Fr()),this.prodParam.enter(qe),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Tr;if(K(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,r);else if(s||!e)t.id=null;else throw this.raise(u.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(t){let e=this.maybeParseExportDefaultSpecifier(t),s=!e||this.eat(12),r=s&&this.eatExportStar(t),i=r&&this.maybeParseExportNamespaceSpecifier(t),a=s&&(!i||this.eat(12)),n=e||r;if(r&&!i)return e&&this.unexpected(),this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration");let o=this.maybeParseExportNamedSpecifiers(t);if(e&&s&&!r&&!o||i&&a&&!o)throw this.unexpected(null,5);let c;if(n||o?(c=!1,this.parseExportFrom(t,n)):c=this.maybeParseExportDeclaration(t),n||o||c)return this.checkExport(t,!0,!1,!!t.source),this.finishNode(t,"ExportNamedDeclaration");if(this.eat(65))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let e=this.startNode();return e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return !1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return !1;let t=this.nextTokenStart();return !is.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode(),e=this.isAsyncFunction();if(this.match(68)||e)return this.next(),e&&this.next(),this.parseFunction(t,fs|Wr,e);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(u.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(u.UnsupportedDefaultExport,{at:this.state.startLoc});let s=this.parseMaybeAssignAllowIn();return this.semicolon(),s}parseExportDeclaration(t){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:t}=this.state;if(K(t)){if(t===95&&!this.state.containsEsc||t===99)return !1;if((t===126||t===125)&&!this.state.containsEsc){let{type:r}=this.lookahead();if(K(r)&&r!==97||r===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||K(this.state.type)&&s)return !0;if(this.match(65)&&s){let r=this.input.charCodeAt(this.nextTokenStartSince(e+4));return r===34||r===39}return !1}parseExportFrom(t,e){if(this.eatContextual(97)){t.source=this.parseImportSource(),this.checkExport(t);let s=this.maybeParseImportAssertions();s&&(t.assertions=s);}else e&&this.unexpected();this.semicolon();}shouldParseExportDeclaration(){let{type:t}=this.state;if(t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(u.DecoratorBeforeExport,{at:this.state.startLoc});return !0}return t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,r){if(e){if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;let n=t.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!((i=n.extra)!=null&&i.parenthesized)&&this.raise(u.ExportDefaultFromAsIdentifier,{at:n});}}else if(t.specifiers&&t.specifiers.length)for(let n of t.specifiers){let{exported:o}=n,c=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(n,c),!r&&n.local){let{local:f}=n;f.type!=="Identifier"?this.raise(u.ExportBindingIsString,{at:n,localName:f.value,exportName:c}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f));}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let n=t.declaration.id;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(t,n.name);}else if(t.declaration.type==="VariableDeclaration")for(let n of t.declaration.declarations)this.checkDeclaration(n.id);}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(u.UnsupportedDecoratorExport,{at:t})}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left);}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(u.DuplicateDefaultExport,{at:t}):this.raise(u.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e);}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(126),i=this.match(129),a=this.startNode();a.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(a,i,t,r));}return e}parseExportSpecifier(t,e,s,r){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Th(t.local):t.exported||(t.exported=ge(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(Xh);return e&&this.raise(u.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}parseImport(t){if(t.specifiers=[],!this.match(129)){let r=!this.maybeParseDefaultImportSpecifier(t)||this.eat(12),i=r&&this.maybeParseStarImportSpecifier(t);r&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(97);}t.source=this.parseImportSource();let e=this.maybeParseImportAssertions();if(e)t.assertions=e;else {let s=this.maybeParseModuleAttributes();s&&(t.attributes=s);}return this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return K(this.state.type)}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s));}finishImportSpecifier(t,e){return this.checkLVal(t.local,{in:t,binding:xe}),this.finishNode(t,e)}parseAssertEntries(){let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),r=this.state.value;if(e.has(r)&&this.raise(u.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:r}),e.add(r),this.match(129)?s.key=this.parseStringLiteral(r):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(u.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s);}while(this.eat(12));return t}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(u.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(u.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(129))throw this.raise(u.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s);}while(this.eat(12));return t}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let t=this.parseAssertEntries();return this.eat(8),t}maybeParseDefaultImportSpecifier(t){return this.shouldParseDefaultImport(t)?(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else {if(this.eat(14))throw this.raise(u.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),r=this.match(129),i=this.isContextual(126);s.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(s,r,t.importKind==="type"||t.importKind==="typeof",i);t.specifiers.push(a);}}parseImportSpecifier(t,e,s,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else {let{imported:i}=t;if(e)throw this.raise(u.ImportBindingIsString,{at:t,importName:i.value});this.checkReservedWord(i.name,t.loc.start,!0,!0),t.local||(t.local=ge(i));}return this.finishImportSpecifier(t,"ImportSpecifier")}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Gr=class extends Yh{constructor(t,e){t=zh(t);super(t,e);this.options=t,this.initializeScopes(),this.plugins=$h(this.options.plugins),this.filename=t.sourceFilename;}getScopeHandler(){return os}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function $h(t){let e=new Map;for(let s of t){let[r,i]=Array.isArray(s)?s:[s,{}];e.has(r)||e.set(r,i||{});}return e}function Qh(t,e){var s;if(((s=e)==null?void 0:s.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=Je(e,t),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Je(e,t).parse()}catch{}else i.program.sourceType="script";return i}catch(r){try{return e.sourceType="script",Je(e,t).parse()}catch{}throw r}}else return Je(e,t).parse()}function Zh(t,e){let s=Je(e,t);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()}function el(t){let e={};for(let s of Object.keys(t))e[s]=fe(t[s]);return e}var tl=el(Eo);function Je(t,e){let s=Gr;return t!=null&&t.plugins&&(Uh(t.plugins),s=sl(t.plugins)),new s(t,e)}var Xr={};function sl(t){let e=_h.filter(i=>Z(t,i)),s=e.join("/"),r=Xr[s];if(!r){r=Gr;for(let i of e)r=Kr[i](r);Xr[s]=r;}return r}h.parse=Qh,h.parseExpression=Zh,h.tokTypes=tl;}}),mf=H({"src/language-js/parse/json.js"(h,l){V();var p=po(),d=nr(),m=mo(),A=yo();function x(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:L=!0}=T;return function(_){let{parseExpression:se}=go(),B;try{B=se(_,{tokens:!0,ranges:!0});}catch(j){throw A(j)}if(!L&&p(B.comments))throw g(B.comments[0],"Comment");return P(B),B}}function g(T,L){let[b,_]=[T.loc.start,T.loc.end].map(se=>{let{line:B,column:j}=se;return {line:B,column:j+1}});return d("".concat(L," is not allowed in JSON."),{start:b,end:_})}function P(T){switch(T.type){case"ArrayExpression":for(let L of T.elements)L!==null&&P(L);return;case"ObjectExpression":for(let L of T.properties)P(L);return;case"ObjectProperty":if(T.computed)throw g(T.key,"Computed key");if(T.shorthand)throw g(T.key,"Shorthand property");T.key.type!=="Identifier"&&P(T.key),P(T.value);return;case"UnaryExpression":{let{operator:L,argument:b}=T;if(L!=="+"&&L!=="-")throw g(T,"Operator '".concat(T.operator,"'"));if(b.type==="NumericLiteral"||b.type==="Identifier"&&(b.name==="Infinity"||b.name==="NaN"))return;throw g(b,"Operator '".concat(L,"' before '").concat(b.type,"'"))}case"Identifier":if(T.name!=="Infinity"&&T.name!=="NaN"&&T.name!=="undefined")throw g(T,"Identifier '".concat(T.name,"'"));return;case"TemplateLiteral":if(p(T.expressions))throw g(T.expressions[0],"'TemplateLiteral' with expression");for(let L of T.quasis)P(L);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw g(T,"'".concat(T.type,"'"))}}var N=x(),D={json:m({parse:N,hasPragma(){return !0}}),json5:m(N),"json-stringify":m({parse:x({allowComments:!1}),astFormat:"estree-json"})};l.exports=D;}});V();var yf=Jp(),xf=$n(),gf=Zp(),rt=mo(),Af=yo(),Pf=df(),Tf=mf(),Ef={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},bf=["recordAndTuple",{syntaxType:"hash"}],Wn="v8intrinsic",Gn=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],Pe=function(h){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ef;return Object.assign(Object.assign({},l),{},{plugins:[...l.plugins,...h]})},vf=/@(?:no)?flow\b/;function Cf(h,l){if(l.filepath&&l.filepath.endsWith(".js.flow"))return !0;let p=xf(h);p&&(h=h.slice(p.length));let d=gf(h,0);return d!==!1&&(h=h.slice(0,d)),vf.test(h)}function Sf(h,l,p){let m=go()[h](l,p),A=m.errors.find(x=>!Df.has(x.reasonCode));if(A)throw A;return m}function it(h){for(var l=arguments.length,p=new Array(l>1?l-1:0),d=1;d<l;d++)p[d-1]=arguments[d];return function(m,A){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((x.parser==="babel"||x.parser==="__babel_estree")&&Cf(m,x))return x.parser="babel-flow",Ao(m,A,x);let g=p;x.__babelSourceType==="script"&&(g=g.map(T=>Object.assign(Object.assign({},T),{},{sourceType:"script"}))),/#[[{]/.test(m)&&(g=g.map(T=>Pe([bf],T)));let P=/%[A-Z]/.test(m);m.includes("|>")?g=(P?[...Gn,Wn]:Gn).flatMap(L=>g.map(b=>Pe([L],b))):P&&(g=g.map(T=>Pe([Wn],T)));let{result:N,error:D}=yf(...g.map(T=>()=>Sf(h,m,T)));if(!N)throw Af(D);return x.originalText=m,Pf(N,x)}}var wf=it("parse",Pe(["jsx","flow"])),Ao=it("parse",Pe(["jsx",["flow",{all:!0,enums:!0}]])),Nf=it("parse",Pe(["jsx","typescript"]),Pe(["typescript"])),If=it("parse",Pe(["jsx","flow","estree"])),kf=it("parseExpression",Pe(["jsx"])),Df=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Xn=rt(wf),Jn=rt(kf);Po.exports={parsers:Object.assign(Object.assign({babel:Xn,"babel-flow":rt(Ao),"babel-ts":rt(Nf)},Tf),{},{__js_expression:Jn,__vue_expression:Jn,__vue_event_binding:Xn,__babel_estree:rt(If)})};});return Ff();});
|
|
50
50
|
} (parserBabel$2));
|
|
51
51
|
|
|
52
|
-
var parserBabel = /*@__PURE__*/
|
|
52
|
+
var parserBabel = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parserBabel$2.exports);
|
|
53
53
|
|
|
54
54
|
var parserBabel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
55
55
|
__proto__: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers.cjs');
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
m.forEach(function (e) {
|
|
@@ -20,7 +20,7 @@ function _mergeNamespaces(n, m) {
|
|
|
20
20
|
var parserTypescript$2 = {exports: {}};
|
|
21
21
|
|
|
22
22
|
(function (module, exports) {
|
|
23
|
-
(function(e){module.exports=e();})(function(){var Un=(R,te)=>()=>(te||R((te={exports:{}}).exports,te),te.exports);var Rc=Un((KU,eA)=>{var L0=function(R){return R&&R.Math==Math&&R};eA.exports=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof index.commonjsGlobal=="object"&&index.commonjsGlobal)||function(){return this}()||Function("return this")();});var Vd=Un((GU,rA)=>{rA.exports=function(R){try{return !!R()}catch{return !0}};});var hm=Un((HU,iA)=>{var nL=Vd();iA.exports=!nL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var R0=Un((XU,tA)=>{var oL=Vd();tA.exports=!oL(function(){var R=function(){}.bind();return typeof R!="function"||R.hasOwnProperty("prototype")});});var J0=Un((QU,aA)=>{var sL=R0(),B0=Function.prototype.call;aA.exports=sL?B0.bind(B0):function(){return B0.apply(B0,arguments)};});var cA=Un(sA=>{var nA={}.propertyIsEnumerable,oA=Object.getOwnPropertyDescriptor,cL=oA&&!nA.call({1:2},1);sA.f=cL?function(te){var qe=oA(this,te);return !!qe&&qe.enumerable}:nA;});var AS=Un(($U,uA)=>{uA.exports=function(R,te){return {enumerable:!(R&1),configurable:!(R&2),writable:!(R&4),value:te}};});var sp=Un((ZU,_A)=>{var lA=R0(),fA=Function.prototype,uL=fA.bind,PS=fA.call,lL=lA&&uL.bind(PS,PS);_A.exports=lA?function(R){return R&&lL(R)}:function(R){return R&&function(){return PS.apply(R,arguments)}};});var j0=Un((ez,dA)=>{var pA=sp(),fL=pA({}.toString),_L=pA("".slice);dA.exports=function(R){return _L(fL(R),8,-1)};});var mA=Un((rz,gA)=>{var pL=Rc(),dL=sp(),gL=Vd(),mL=j0(),NS=pL.Object,vL=dL("".split);gA.exports=gL(function(){return !NS("z").propertyIsEnumerable(0)})?function(R){return mL(R)=="String"?vL(R,""):NS(R)}:NS;});var IS=Un((iz,vA)=>{var yL=Rc(),hL=yL.TypeError;vA.exports=function(R){if(R==null)throw hL("Can't call method on "+R);return R};});var U0=Un((tz,yA)=>{var DL=mA(),bL=IS();yA.exports=function(R){return DL(bL(R))};});var cp=Un((az,hA)=>{hA.exports=function(R){return typeof R=="function"};});var Dm=Un((nz,DA)=>{var SL=cp();DA.exports=function(R){return typeof R=="object"?R!==null:SL(R)};});var Py=Un((oz,bA)=>{var wS=Rc(),TL=cp(),xL=function(R){return TL(R)?R:void 0};bA.exports=function(R,te){return arguments.length<2?xL(wS[R]):wS[R]&&wS[R][te]};});var TA=Un((sz,SA)=>{var EL=sp();SA.exports=EL({}.isPrototypeOf);});var EA=Un((cz,xA)=>{var CL=Py();xA.exports=CL("navigator","userAgent")||"";});var wA=Un((uz,IA)=>{var NA=Rc(),OS=EA(),CA=NA.process,kA=NA.Deno,AA=CA&&CA.versions||kA&&kA.version,PA=AA&&AA.v8,Kp,z0;PA&&(Kp=PA.split("."),z0=Kp[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1]));!z0&&OS&&(Kp=OS.match(/Edge\/(\d+)/),(!Kp||Kp[1]>=74)&&(Kp=OS.match(/Chrome\/(\d+)/),Kp&&(z0=+Kp[1])));IA.exports=z0;});var FS=Un((lz,FA)=>{var OA=wA(),kL=Vd();FA.exports=!!Object.getOwnPropertySymbols&&!kL(function(){var R=Symbol();return !String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&OA&&OA<41});});var MS=Un((fz,MA)=>{var AL=FS();MA.exports=AL&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var LS=Un((_z,LA)=>{var PL=Rc(),NL=Py(),IL=cp(),wL=TA(),OL=MS(),FL=PL.Object;LA.exports=OL?function(R){return typeof R=="symbol"}:function(R){var te=NL("Symbol");return IL(te)&&wL(te.prototype,FL(R))};});var BA=Un((pz,RA)=>{var ML=Rc(),LL=ML.String;RA.exports=function(R){try{return LL(R)}catch{return "Object"}};});var W0=Un((dz,JA)=>{var RL=Rc(),BL=cp(),JL=BA(),jL=RL.TypeError;JA.exports=function(R){if(BL(R))return R;throw jL(JL(R)+" is not a function")};});var UA=Un((gz,jA)=>{var UL=W0();jA.exports=function(R,te){var qe=R[te];return qe==null?void 0:UL(qe)};});var WA=Un((mz,zA)=>{var zL=Rc(),RS=J0(),BS=cp(),JS=Dm(),WL=zL.TypeError;zA.exports=function(R,te){var qe,Ve;if(te==="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R))||BS(qe=R.valueOf)&&!JS(Ve=RS(qe,R))||te!=="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R)))return Ve;throw WL("Can't convert object to primitive value")};});var VA=Un((vz,qA)=>{qA.exports=!1;});var q0=Un((yz,GA)=>{var KA=Rc(),qL=Object.defineProperty;GA.exports=function(R,te){try{qL(KA,R,{value:te,configurable:!0,writable:!0});}catch{KA[R]=te;}return te};});var V0=Un((hz,XA)=>{var VL=Rc(),KL=q0(),HA="__core-js_shared__",GL=VL[HA]||KL(HA,{});XA.exports=GL;});var jS=Un((Dz,YA)=>{var HL=VA(),QA=V0();(YA.exports=function(R,te){return QA[R]||(QA[R]=te!==void 0?te:{})})("versions",[]).push({version:"3.21.1",mode:HL?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var US=Un((bz,$A)=>{var XL=Rc(),QL=IS(),YL=XL.Object;$A.exports=function(R){return YL(QL(R))};});var Cg=Un((Sz,ZA)=>{var $L=sp(),ZL=US(),eR=$L({}.hasOwnProperty);ZA.exports=Object.hasOwn||function(te,qe){return eR(ZL(te),qe)};});var zS=Un((Tz,e4)=>{var rR=sp(),iR=0,tR=Math.random(),aR=rR(1 .toString);e4.exports=function(R){return "Symbol("+(R===void 0?"":R)+")_"+aR(++iR+tR,36)};});var Ny=Un((xz,n4)=>{var nR=Rc(),oR=jS(),r4=Cg(),sR=zS(),i4=FS(),a4=MS(),mv=oR("wks"),bm=nR.Symbol,t4=bm&&bm.for,cR=a4?bm:bm&&bm.withoutSetter||sR;n4.exports=function(R){if(!r4(mv,R)||!(i4||typeof mv[R]=="string")){var te="Symbol."+R;i4&&r4(bm,R)?mv[R]=bm[R]:a4&&t4?mv[R]=t4(te):mv[R]=cR(te);}return mv[R]};});var u4=Un((Ez,c4)=>{var uR=Rc(),lR=J0(),o4=Dm(),s4=LS(),fR=UA(),_R=WA(),pR=Ny(),dR=uR.TypeError,gR=pR("toPrimitive");c4.exports=function(R,te){if(!o4(R)||s4(R))return R;var qe=fR(R,gR),Ve;if(qe){if(te===void 0&&(te="default"),Ve=lR(qe,R,te),!o4(Ve)||s4(Ve))return Ve;throw dR("Can't convert object to primitive value")}return te===void 0&&(te="number"),_R(R,te)};});var WS=Un((Cz,l4)=>{var mR=u4(),vR=LS();l4.exports=function(R){var te=mR(R,"string");return vR(te)?te:te+""};});var p4=Un((kz,_4)=>{var yR=Rc(),f4=Dm(),qS=yR.document,hR=f4(qS)&&f4(qS.createElement);_4.exports=function(R){return hR?qS.createElement(R):{}};});var VS=Un((Az,d4)=>{var DR=hm(),bR=Vd(),SR=p4();d4.exports=!DR&&!bR(function(){return Object.defineProperty(SR("div"),"a",{get:function(){return 7}}).a!=7});});var KS=Un(m4=>{var TR=hm(),xR=J0(),ER=cA(),CR=AS(),kR=U0(),AR=WS(),PR=Cg(),NR=VS(),g4=Object.getOwnPropertyDescriptor;m4.f=TR?g4:function(te,qe){if(te=kR(te),qe=AR(qe),NR)try{return g4(te,qe)}catch{}if(PR(te,qe))return CR(!xR(ER.f,te,qe),te[qe])};});var y4=Un((Nz,v4)=>{var IR=hm(),wR=Vd();v4.exports=IR&&wR(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var GS=Un((Iz,D4)=>{var h4=Rc(),OR=Dm(),FR=h4.String,MR=h4.TypeError;D4.exports=function(R){if(OR(R))return R;throw MR(FR(R)+" is not an object")};});var $S=Un(S4=>{var LR=Rc(),RR=hm(),BR=VS(),JR=y4(),K0=GS(),b4=WS(),jR=LR.TypeError,HS=Object.defineProperty,UR=Object.getOwnPropertyDescriptor,XS="enumerable",QS="configurable",YS="writable";S4.f=RR?JR?function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),typeof te=="function"&&qe==="prototype"&&"value"in Ve&&YS in Ve&&!Ve[YS]){var ni=UR(te,qe);ni&&ni[YS]&&(te[qe]=Ve.value,Ve={configurable:QS in Ve?Ve[QS]:ni[QS],enumerable:XS in Ve?Ve[XS]:ni[XS],writable:!1});}return HS(te,qe,Ve)}:HS:function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),BR)try{return HS(te,qe,Ve)}catch{}if("get"in Ve||"set"in Ve)throw jR("Accessors not supported");return "value"in Ve&&(te[qe]=Ve.value),te};});var G0=Un((Oz,T4)=>{var zR=hm(),WR=$S(),qR=AS();T4.exports=zR?function(R,te,qe){return WR.f(R,te,qR(1,qe))}:function(R,te,qe){return R[te]=qe,R};});var H0=Un((Fz,x4)=>{var VR=sp(),KR=cp(),ZS=V0(),GR=VR(Function.toString);KR(ZS.inspectSource)||(ZS.inspectSource=function(R){return GR(R)});x4.exports=ZS.inspectSource;});var k4=Un((Mz,C4)=>{var HR=Rc(),XR=cp(),QR=H0(),E4=HR.WeakMap;C4.exports=XR(E4)&&/native code/.test(QR(E4));});var N4=Un((Lz,P4)=>{var YR=jS(),$R=zS(),A4=YR("keys");P4.exports=function(R){return A4[R]||(A4[R]=$R(R))};});var eT=Un((Rz,I4)=>{I4.exports={};});var R4=Un((Bz,L4)=>{var ZR=k4(),M4=Rc(),rT=sp(),eB=Dm(),rB=G0(),iT=Cg(),tT=V0(),iB=N4(),tB=eT(),w4="Object already initialized",nT=M4.TypeError,aB=M4.WeakMap,X0,Iy,Q0,nB=function(R){return Q0(R)?Iy(R):X0(R,{})},oB=function(R){return function(te){var qe;if(!eB(te)||(qe=Iy(te)).type!==R)throw nT("Incompatible receiver, "+R+" required");return qe}};ZR||tT.state?(kg=tT.state||(tT.state=new aB),O4=rT(kg.get),aT=rT(kg.has),F4=rT(kg.set),X0=function(R,te){if(aT(kg,R))throw new nT(w4);return te.facade=R,F4(kg,R,te),te},Iy=function(R){return O4(kg,R)||{}},Q0=function(R){return aT(kg,R)}):(Sm=iB("state"),tB[Sm]=!0,X0=function(R,te){if(iT(R,Sm))throw new nT(w4);return te.facade=R,rB(R,Sm,te),te},Iy=function(R){return iT(R,Sm)?R[Sm]:{}},Q0=function(R){return iT(R,Sm)});var kg,O4,aT,F4,Sm;L4.exports={set:X0,get:Iy,has:Q0,enforce:nB,getterFor:oB};});var j4=Un((Jz,J4)=>{var oT=hm(),sB=Cg(),B4=Function.prototype,cB=oT&&Object.getOwnPropertyDescriptor,sT=sB(B4,"name"),uB=sT&&function(){}.name==="something",lB=sT&&(!oT||oT&&cB(B4,"name").configurable);J4.exports={EXISTS:sT,PROPER:uB,CONFIGURABLE:lB};});var V4=Un((jz,q4)=>{var fB=Rc(),U4=cp(),_B=Cg(),z4=G0(),pB=q0(),dB=H0(),W4=R4(),gB=j4().CONFIGURABLE,mB=W4.get,vB=W4.enforce,yB=String(String).split("String");(q4.exports=function(R,te,qe,Ve){var ni=Ve?!!Ve.unsafe:!1,wr=Ve?!!Ve.enumerable:!1,fr=Ve?!!Ve.noTargetGet:!1,Mr=Ve&&Ve.name!==void 0?Ve.name:te,ir;if(U4(qe)&&(String(Mr).slice(0,7)==="Symbol("&&(Mr="["+String(Mr).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_B(qe,"name")||gB&&qe.name!==Mr)&&z4(qe,"name",Mr),ir=vB(qe),ir.source||(ir.source=yB.join(typeof Mr=="string"?Mr:""))),R===fB){wr?R[te]=qe:pB(te,qe);return}else ni?!fr&&R[te]&&(wr=!0):delete R[te];wr?R[te]=qe:z4(R,te,qe);})(Function.prototype,"toString",function(){return U4(this)&&mB(this).source||dB(this)});});var cT=Un((Uz,K4)=>{var hB=Math.ceil,DB=Math.floor;K4.exports=function(R){var te=+R;return te!==te||te===0?0:(te>0?DB:hB)(te)};});var H4=Un((zz,G4)=>{var bB=cT(),SB=Math.max,TB=Math.min;G4.exports=function(R,te){var qe=bB(R);return qe<0?SB(qe+te,0):TB(qe,te)};});var Q4=Un((Wz,X4)=>{var xB=cT(),EB=Math.min;X4.exports=function(R){return R>0?EB(xB(R),9007199254740991):0};});var Y0=Un((qz,Y4)=>{var CB=Q4();Y4.exports=function(R){return CB(R.length)};});var eP=Un((Vz,Z4)=>{var kB=U0(),AB=H4(),PB=Y0(),$4=function(R){return function(te,qe,Ve){var ni=kB(te),wr=PB(ni),fr=AB(Ve,wr),Mr;if(R&&qe!=qe){for(;wr>fr;)if(Mr=ni[fr++],Mr!=Mr)return !0}else for(;wr>fr;fr++)if((R||fr in ni)&&ni[fr]===qe)return R||fr||0;return !R&&-1}};Z4.exports={includes:$4(!0),indexOf:$4(!1)};});var tP=Un((Kz,iP)=>{var NB=sp(),uT=Cg(),IB=U0(),wB=eP().indexOf,OB=eT(),rP=NB([].push);iP.exports=function(R,te){var qe=IB(R),Ve=0,ni=[],wr;for(wr in qe)!uT(OB,wr)&&uT(qe,wr)&&rP(ni,wr);for(;te.length>Ve;)uT(qe,wr=te[Ve++])&&(~wB(ni,wr)||rP(ni,wr));return ni};});var nP=Un((Gz,aP)=>{aP.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sP=Un(oP=>{var FB=tP(),MB=nP(),LB=MB.concat("length","prototype");oP.f=Object.getOwnPropertyNames||function(te){return FB(te,LB)};});var uP=Un(cP=>{cP.f=Object.getOwnPropertySymbols;});var fP=Un((Qz,lP)=>{var RB=Py(),BB=sp(),JB=sP(),jB=uP(),UB=GS(),zB=BB([].concat);lP.exports=RB("Reflect","ownKeys")||function(te){var qe=JB.f(UB(te)),Ve=jB.f;return Ve?zB(qe,Ve(te)):qe};});var dP=Un((Yz,pP)=>{var _P=Cg(),WB=fP(),qB=KS(),VB=$S();pP.exports=function(R,te,qe){for(var Ve=WB(te),ni=VB.f,wr=qB.f,fr=0;fr<Ve.length;fr++){var Mr=Ve[fr];!_P(R,Mr)&&!(qe&&_P(qe,Mr))&&ni(R,Mr,wr(te,Mr));}};});var mP=Un(($z,gP)=>{var KB=Vd(),GB=cp(),HB=/#|\.prototype\./,wy=function(R,te){var qe=QB[XB(R)];return qe==$B?!0:qe==YB?!1:GB(te)?KB(te):!!te},XB=wy.normalize=function(R){return String(R).replace(HB,".").toLowerCase()},QB=wy.data={},YB=wy.NATIVE="N",$B=wy.POLYFILL="P";gP.exports=wy;});var fT=Un((Zz,vP)=>{var lT=Rc(),ZB=KS().f,eJ=G0(),rJ=V4(),iJ=q0(),tJ=dP(),aJ=mP();vP.exports=function(R,te){var qe=R.target,Ve=R.global,ni=R.stat,wr,fr,Mr,ir,Pe,e;if(Ve?fr=lT:ni?fr=lT[qe]||iJ(qe,{}):fr=(lT[qe]||{}).prototype,fr)for(Mr in te){if(Pe=te[Mr],R.noTargetGet?(e=ZB(fr,Mr),ir=e&&e.value):ir=fr[Mr],wr=aJ(Ve?Mr:qe+(ni?".":"#")+Mr,R.forced),!wr&&ir!==void 0){if(typeof Pe==typeof ir)continue;tJ(Pe,ir);}(R.sham||ir&&ir.sham)&&eJ(Pe,"sham",!0),rJ(fr,Mr,Pe,R);}};});var yP=Un(()=>{var nJ=fT(),oJ=Rc();nJ({global:!0},{globalThis:oJ});});var hP=Un(()=>{yP();});var _T=Un((aW,DP)=>{var sJ=j0();DP.exports=Array.isArray||function(te){return sJ(te)=="Array"};});var TP=Un((nW,SP)=>{var bP=sp(),cJ=W0(),uJ=R0(),lJ=bP(bP.bind);SP.exports=function(R,te){return cJ(R),te===void 0?R:uJ?lJ(R,te):function(){return R.apply(te,arguments)}};});var CP=Un((oW,EP)=>{var fJ=Rc(),_J=_T(),pJ=Y0(),dJ=TP(),gJ=fJ.TypeError,xP=function(R,te,qe,Ve,ni,wr,fr,Mr){for(var ir=ni,Pe=0,e=fr?dJ(fr,Mr):!1,a,O;Pe<Ve;){if(Pe in qe){if(a=e?e(qe[Pe],Pe,te):qe[Pe],wr>0&&_J(a))O=pJ(a),ir=xP(R,te,a,O,ir,wr-1)-1;else {if(ir>=9007199254740991)throw gJ("Exceed the acceptable array length");R[ir]=a;}ir++;}Pe++;}return ir};EP.exports=xP;});var PP=Un((sW,AP)=>{var mJ=Ny(),vJ=mJ("toStringTag"),kP={};kP[vJ]="z";AP.exports=String(kP)==="[object z]";});var IP=Un((cW,NP)=>{var yJ=Rc(),hJ=PP(),DJ=cp(),$0=j0(),bJ=Ny(),SJ=bJ("toStringTag"),TJ=yJ.Object,xJ=$0(function(){return arguments}())=="Arguments",EJ=function(R,te){try{return R[te]}catch{}};NP.exports=hJ?$0:function(R){var te,qe,Ve;return R===void 0?"Undefined":R===null?"Null":typeof(qe=EJ(te=TJ(R),SJ))=="string"?qe:xJ?$0(te):(Ve=$0(te))=="Object"&&DJ(te.callee)?"Arguments":Ve};});var RP=Un((uW,LP)=>{var CJ=sp(),kJ=Vd(),wP=cp(),AJ=IP(),PJ=Py(),NJ=H0(),OP=function(){},IJ=[],FP=PJ("Reflect","construct"),pT=/^\s*(?:class|function)\b/,wJ=CJ(pT.exec),OJ=!pT.exec(OP),Oy=function(te){if(!wP(te))return !1;try{return FP(OP,IJ,te),!0}catch{return !1}},MP=function(te){if(!wP(te))return !1;switch(AJ(te)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return OJ||!!wJ(pT,NJ(te))}catch{return !0}};MP.sham=!0;LP.exports=!FP||kJ(function(){var R;return Oy(Oy.call)||!Oy(Object)||!Oy(function(){R=!0;})||R})?MP:Oy;});var UP=Un((lW,jP)=>{var FJ=Rc(),BP=_T(),MJ=RP(),LJ=Dm(),RJ=Ny(),BJ=RJ("species"),JP=FJ.Array;jP.exports=function(R){var te;return BP(R)&&(te=R.constructor,MJ(te)&&(te===JP||BP(te.prototype))?te=void 0:LJ(te)&&(te=te[BJ],te===null&&(te=void 0))),te===void 0?JP:te};});var WP=Un((fW,zP)=>{var JJ=UP();zP.exports=function(R,te){return new(JJ(R))(te===0?0:te)};});var qP=Un(()=>{var jJ=fT(),UJ=CP(),zJ=W0(),WJ=US(),qJ=Y0(),VJ=WP();jJ({target:"Array",proto:!0},{flatMap:function(te){var qe=WJ(this),Ve=qJ(qe),ni;return zJ(te),ni=VJ(qe,0),ni.length=UJ(ni,qe,qe,Ve,0,1,te,arguments.length>1?arguments[1]:void 0),ni}});});var qU=Un((dW,BN)=>{hP();qP();var bT=Object.defineProperty,KJ=Object.getOwnPropertyDescriptor,ST=Object.getOwnPropertyNames,GJ=Object.prototype.hasOwnProperty,My=(R,te)=>function(){return R&&(te=(0, R[ST(R)[0]])(R=0)),te},Aa=(R,te)=>function(){return te||(0, R[ST(R)[0]])((te={exports:{}}).exports,te),te.exports},t1=(R,te)=>{for(var qe in te)bT(R,qe,{get:te[qe],enumerable:!0});},HJ=(R,te,qe,Ve)=>{if(te&&typeof te=="object"||typeof te=="function")for(let ni of ST(te))!GJ.call(R,ni)&&ni!==qe&&bT(R,ni,{get:()=>te[ni],enumerable:!(Ve=KJ(te,ni))||Ve.enumerable});return R},up=R=>HJ(bT({},"__esModule",{value:!0}),R),VP,KP,yl,Sa=My({"<define:process>"(){VP={},KP=[],yl={env:VP,argv:KP};}}),QP=Aa({"src/common/parser-create-error.js"(R,te){Sa();function qe(Ve,ni){let wr=new SyntaxError(Ve+" ("+ni.start.line+":"+ni.start.column+")");return wr.loc=ni,wr}te.exports=qe;}}),XJ=Aa({"src/utils/try-combinations.js"(R,te){Sa();function qe(){let Ve;for(var ni=arguments.length,wr=new Array(ni),fr=0;fr<ni;fr++)wr[fr]=arguments[fr];for(let[Mr,ir]of wr.entries())try{return {result:ir()}}catch(Pe){Mr===0&&(Ve=Pe);}return {error:Ve}}te.exports=qe;}}),YP={};t1(YP,{EOL:()=>mT,arch:()=>QJ,cpus:()=>aN,default:()=>uN,endianness:()=>$P,freemem:()=>iN,getNetworkInterfaces:()=>cN,hostname:()=>ZP,loadavg:()=>eN,networkInterfaces:()=>sN,platform:()=>YJ,release:()=>oN,tmpDir:()=>dT,tmpdir:()=>gT,totalmem:()=>tN,type:()=>nN,uptime:()=>rN});function $P(){if(typeof Z0>"u"){var R=new ArrayBuffer(2),te=new Uint8Array(R),qe=new Uint16Array(R);if(te[0]=1,te[1]=2,qe[0]===258)Z0="BE";else if(qe[0]===513)Z0="LE";else throw new Error("unable to figure out endianess")}return Z0}function ZP(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function eN(){return []}function rN(){return 0}function iN(){return Number.MAX_VALUE}function tN(){return Number.MAX_VALUE}function aN(){return []}function nN(){return "Browser"}function oN(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function sN(){}function cN(){}function QJ(){return "javascript"}function YJ(){return "browser"}function dT(){return "/tmp"}var Z0,gT,mT,uN,$J=My({"node-modules-polyfills:os"(){Sa(),gT=dT,mT=`
|
|
23
|
+
(function(e){module.exports=e();})(function(){var Un=(R,te)=>()=>(te||R((te={exports:{}}).exports,te),te.exports);var Rc=Un((KU,eA)=>{var L0=function(R){return R&&R.Math==Math&&R};eA.exports=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof _commonjsHelpers.commonjsGlobal=="object"&&_commonjsHelpers.commonjsGlobal)||function(){return this}()||Function("return this")();});var Vd=Un((GU,rA)=>{rA.exports=function(R){try{return !!R()}catch{return !0}};});var hm=Un((HU,iA)=>{var nL=Vd();iA.exports=!nL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var R0=Un((XU,tA)=>{var oL=Vd();tA.exports=!oL(function(){var R=function(){}.bind();return typeof R!="function"||R.hasOwnProperty("prototype")});});var J0=Un((QU,aA)=>{var sL=R0(),B0=Function.prototype.call;aA.exports=sL?B0.bind(B0):function(){return B0.apply(B0,arguments)};});var cA=Un(sA=>{var nA={}.propertyIsEnumerable,oA=Object.getOwnPropertyDescriptor,cL=oA&&!nA.call({1:2},1);sA.f=cL?function(te){var qe=oA(this,te);return !!qe&&qe.enumerable}:nA;});var AS=Un(($U,uA)=>{uA.exports=function(R,te){return {enumerable:!(R&1),configurable:!(R&2),writable:!(R&4),value:te}};});var sp=Un((ZU,_A)=>{var lA=R0(),fA=Function.prototype,uL=fA.bind,PS=fA.call,lL=lA&&uL.bind(PS,PS);_A.exports=lA?function(R){return R&&lL(R)}:function(R){return R&&function(){return PS.apply(R,arguments)}};});var j0=Un((ez,dA)=>{var pA=sp(),fL=pA({}.toString),_L=pA("".slice);dA.exports=function(R){return _L(fL(R),8,-1)};});var mA=Un((rz,gA)=>{var pL=Rc(),dL=sp(),gL=Vd(),mL=j0(),NS=pL.Object,vL=dL("".split);gA.exports=gL(function(){return !NS("z").propertyIsEnumerable(0)})?function(R){return mL(R)=="String"?vL(R,""):NS(R)}:NS;});var IS=Un((iz,vA)=>{var yL=Rc(),hL=yL.TypeError;vA.exports=function(R){if(R==null)throw hL("Can't call method on "+R);return R};});var U0=Un((tz,yA)=>{var DL=mA(),bL=IS();yA.exports=function(R){return DL(bL(R))};});var cp=Un((az,hA)=>{hA.exports=function(R){return typeof R=="function"};});var Dm=Un((nz,DA)=>{var SL=cp();DA.exports=function(R){return typeof R=="object"?R!==null:SL(R)};});var Py=Un((oz,bA)=>{var wS=Rc(),TL=cp(),xL=function(R){return TL(R)?R:void 0};bA.exports=function(R,te){return arguments.length<2?xL(wS[R]):wS[R]&&wS[R][te]};});var TA=Un((sz,SA)=>{var EL=sp();SA.exports=EL({}.isPrototypeOf);});var EA=Un((cz,xA)=>{var CL=Py();xA.exports=CL("navigator","userAgent")||"";});var wA=Un((uz,IA)=>{var NA=Rc(),OS=EA(),CA=NA.process,kA=NA.Deno,AA=CA&&CA.versions||kA&&kA.version,PA=AA&&AA.v8,Kp,z0;PA&&(Kp=PA.split("."),z0=Kp[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1]));!z0&&OS&&(Kp=OS.match(/Edge\/(\d+)/),(!Kp||Kp[1]>=74)&&(Kp=OS.match(/Chrome\/(\d+)/),Kp&&(z0=+Kp[1])));IA.exports=z0;});var FS=Un((lz,FA)=>{var OA=wA(),kL=Vd();FA.exports=!!Object.getOwnPropertySymbols&&!kL(function(){var R=Symbol();return !String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&OA&&OA<41});});var MS=Un((fz,MA)=>{var AL=FS();MA.exports=AL&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var LS=Un((_z,LA)=>{var PL=Rc(),NL=Py(),IL=cp(),wL=TA(),OL=MS(),FL=PL.Object;LA.exports=OL?function(R){return typeof R=="symbol"}:function(R){var te=NL("Symbol");return IL(te)&&wL(te.prototype,FL(R))};});var BA=Un((pz,RA)=>{var ML=Rc(),LL=ML.String;RA.exports=function(R){try{return LL(R)}catch{return "Object"}};});var W0=Un((dz,JA)=>{var RL=Rc(),BL=cp(),JL=BA(),jL=RL.TypeError;JA.exports=function(R){if(BL(R))return R;throw jL(JL(R)+" is not a function")};});var UA=Un((gz,jA)=>{var UL=W0();jA.exports=function(R,te){var qe=R[te];return qe==null?void 0:UL(qe)};});var WA=Un((mz,zA)=>{var zL=Rc(),RS=J0(),BS=cp(),JS=Dm(),WL=zL.TypeError;zA.exports=function(R,te){var qe,Ve;if(te==="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R))||BS(qe=R.valueOf)&&!JS(Ve=RS(qe,R))||te!=="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R)))return Ve;throw WL("Can't convert object to primitive value")};});var VA=Un((vz,qA)=>{qA.exports=!1;});var q0=Un((yz,GA)=>{var KA=Rc(),qL=Object.defineProperty;GA.exports=function(R,te){try{qL(KA,R,{value:te,configurable:!0,writable:!0});}catch{KA[R]=te;}return te};});var V0=Un((hz,XA)=>{var VL=Rc(),KL=q0(),HA="__core-js_shared__",GL=VL[HA]||KL(HA,{});XA.exports=GL;});var jS=Un((Dz,YA)=>{var HL=VA(),QA=V0();(YA.exports=function(R,te){return QA[R]||(QA[R]=te!==void 0?te:{})})("versions",[]).push({version:"3.21.1",mode:HL?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var US=Un((bz,$A)=>{var XL=Rc(),QL=IS(),YL=XL.Object;$A.exports=function(R){return YL(QL(R))};});var Cg=Un((Sz,ZA)=>{var $L=sp(),ZL=US(),eR=$L({}.hasOwnProperty);ZA.exports=Object.hasOwn||function(te,qe){return eR(ZL(te),qe)};});var zS=Un((Tz,e4)=>{var rR=sp(),iR=0,tR=Math.random(),aR=rR(1 .toString);e4.exports=function(R){return "Symbol("+(R===void 0?"":R)+")_"+aR(++iR+tR,36)};});var Ny=Un((xz,n4)=>{var nR=Rc(),oR=jS(),r4=Cg(),sR=zS(),i4=FS(),a4=MS(),mv=oR("wks"),bm=nR.Symbol,t4=bm&&bm.for,cR=a4?bm:bm&&bm.withoutSetter||sR;n4.exports=function(R){if(!r4(mv,R)||!(i4||typeof mv[R]=="string")){var te="Symbol."+R;i4&&r4(bm,R)?mv[R]=bm[R]:a4&&t4?mv[R]=t4(te):mv[R]=cR(te);}return mv[R]};});var u4=Un((Ez,c4)=>{var uR=Rc(),lR=J0(),o4=Dm(),s4=LS(),fR=UA(),_R=WA(),pR=Ny(),dR=uR.TypeError,gR=pR("toPrimitive");c4.exports=function(R,te){if(!o4(R)||s4(R))return R;var qe=fR(R,gR),Ve;if(qe){if(te===void 0&&(te="default"),Ve=lR(qe,R,te),!o4(Ve)||s4(Ve))return Ve;throw dR("Can't convert object to primitive value")}return te===void 0&&(te="number"),_R(R,te)};});var WS=Un((Cz,l4)=>{var mR=u4(),vR=LS();l4.exports=function(R){var te=mR(R,"string");return vR(te)?te:te+""};});var p4=Un((kz,_4)=>{var yR=Rc(),f4=Dm(),qS=yR.document,hR=f4(qS)&&f4(qS.createElement);_4.exports=function(R){return hR?qS.createElement(R):{}};});var VS=Un((Az,d4)=>{var DR=hm(),bR=Vd(),SR=p4();d4.exports=!DR&&!bR(function(){return Object.defineProperty(SR("div"),"a",{get:function(){return 7}}).a!=7});});var KS=Un(m4=>{var TR=hm(),xR=J0(),ER=cA(),CR=AS(),kR=U0(),AR=WS(),PR=Cg(),NR=VS(),g4=Object.getOwnPropertyDescriptor;m4.f=TR?g4:function(te,qe){if(te=kR(te),qe=AR(qe),NR)try{return g4(te,qe)}catch{}if(PR(te,qe))return CR(!xR(ER.f,te,qe),te[qe])};});var y4=Un((Nz,v4)=>{var IR=hm(),wR=Vd();v4.exports=IR&&wR(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var GS=Un((Iz,D4)=>{var h4=Rc(),OR=Dm(),FR=h4.String,MR=h4.TypeError;D4.exports=function(R){if(OR(R))return R;throw MR(FR(R)+" is not an object")};});var $S=Un(S4=>{var LR=Rc(),RR=hm(),BR=VS(),JR=y4(),K0=GS(),b4=WS(),jR=LR.TypeError,HS=Object.defineProperty,UR=Object.getOwnPropertyDescriptor,XS="enumerable",QS="configurable",YS="writable";S4.f=RR?JR?function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),typeof te=="function"&&qe==="prototype"&&"value"in Ve&&YS in Ve&&!Ve[YS]){var ni=UR(te,qe);ni&&ni[YS]&&(te[qe]=Ve.value,Ve={configurable:QS in Ve?Ve[QS]:ni[QS],enumerable:XS in Ve?Ve[XS]:ni[XS],writable:!1});}return HS(te,qe,Ve)}:HS:function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),BR)try{return HS(te,qe,Ve)}catch{}if("get"in Ve||"set"in Ve)throw jR("Accessors not supported");return "value"in Ve&&(te[qe]=Ve.value),te};});var G0=Un((Oz,T4)=>{var zR=hm(),WR=$S(),qR=AS();T4.exports=zR?function(R,te,qe){return WR.f(R,te,qR(1,qe))}:function(R,te,qe){return R[te]=qe,R};});var H0=Un((Fz,x4)=>{var VR=sp(),KR=cp(),ZS=V0(),GR=VR(Function.toString);KR(ZS.inspectSource)||(ZS.inspectSource=function(R){return GR(R)});x4.exports=ZS.inspectSource;});var k4=Un((Mz,C4)=>{var HR=Rc(),XR=cp(),QR=H0(),E4=HR.WeakMap;C4.exports=XR(E4)&&/native code/.test(QR(E4));});var N4=Un((Lz,P4)=>{var YR=jS(),$R=zS(),A4=YR("keys");P4.exports=function(R){return A4[R]||(A4[R]=$R(R))};});var eT=Un((Rz,I4)=>{I4.exports={};});var R4=Un((Bz,L4)=>{var ZR=k4(),M4=Rc(),rT=sp(),eB=Dm(),rB=G0(),iT=Cg(),tT=V0(),iB=N4(),tB=eT(),w4="Object already initialized",nT=M4.TypeError,aB=M4.WeakMap,X0,Iy,Q0,nB=function(R){return Q0(R)?Iy(R):X0(R,{})},oB=function(R){return function(te){var qe;if(!eB(te)||(qe=Iy(te)).type!==R)throw nT("Incompatible receiver, "+R+" required");return qe}};ZR||tT.state?(kg=tT.state||(tT.state=new aB),O4=rT(kg.get),aT=rT(kg.has),F4=rT(kg.set),X0=function(R,te){if(aT(kg,R))throw new nT(w4);return te.facade=R,F4(kg,R,te),te},Iy=function(R){return O4(kg,R)||{}},Q0=function(R){return aT(kg,R)}):(Sm=iB("state"),tB[Sm]=!0,X0=function(R,te){if(iT(R,Sm))throw new nT(w4);return te.facade=R,rB(R,Sm,te),te},Iy=function(R){return iT(R,Sm)?R[Sm]:{}},Q0=function(R){return iT(R,Sm)});var kg,O4,aT,F4,Sm;L4.exports={set:X0,get:Iy,has:Q0,enforce:nB,getterFor:oB};});var j4=Un((Jz,J4)=>{var oT=hm(),sB=Cg(),B4=Function.prototype,cB=oT&&Object.getOwnPropertyDescriptor,sT=sB(B4,"name"),uB=sT&&function(){}.name==="something",lB=sT&&(!oT||oT&&cB(B4,"name").configurable);J4.exports={EXISTS:sT,PROPER:uB,CONFIGURABLE:lB};});var V4=Un((jz,q4)=>{var fB=Rc(),U4=cp(),_B=Cg(),z4=G0(),pB=q0(),dB=H0(),W4=R4(),gB=j4().CONFIGURABLE,mB=W4.get,vB=W4.enforce,yB=String(String).split("String");(q4.exports=function(R,te,qe,Ve){var ni=Ve?!!Ve.unsafe:!1,wr=Ve?!!Ve.enumerable:!1,fr=Ve?!!Ve.noTargetGet:!1,Mr=Ve&&Ve.name!==void 0?Ve.name:te,ir;if(U4(qe)&&(String(Mr).slice(0,7)==="Symbol("&&(Mr="["+String(Mr).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_B(qe,"name")||gB&&qe.name!==Mr)&&z4(qe,"name",Mr),ir=vB(qe),ir.source||(ir.source=yB.join(typeof Mr=="string"?Mr:""))),R===fB){wr?R[te]=qe:pB(te,qe);return}else ni?!fr&&R[te]&&(wr=!0):delete R[te];wr?R[te]=qe:z4(R,te,qe);})(Function.prototype,"toString",function(){return U4(this)&&mB(this).source||dB(this)});});var cT=Un((Uz,K4)=>{var hB=Math.ceil,DB=Math.floor;K4.exports=function(R){var te=+R;return te!==te||te===0?0:(te>0?DB:hB)(te)};});var H4=Un((zz,G4)=>{var bB=cT(),SB=Math.max,TB=Math.min;G4.exports=function(R,te){var qe=bB(R);return qe<0?SB(qe+te,0):TB(qe,te)};});var Q4=Un((Wz,X4)=>{var xB=cT(),EB=Math.min;X4.exports=function(R){return R>0?EB(xB(R),9007199254740991):0};});var Y0=Un((qz,Y4)=>{var CB=Q4();Y4.exports=function(R){return CB(R.length)};});var eP=Un((Vz,Z4)=>{var kB=U0(),AB=H4(),PB=Y0(),$4=function(R){return function(te,qe,Ve){var ni=kB(te),wr=PB(ni),fr=AB(Ve,wr),Mr;if(R&&qe!=qe){for(;wr>fr;)if(Mr=ni[fr++],Mr!=Mr)return !0}else for(;wr>fr;fr++)if((R||fr in ni)&&ni[fr]===qe)return R||fr||0;return !R&&-1}};Z4.exports={includes:$4(!0),indexOf:$4(!1)};});var tP=Un((Kz,iP)=>{var NB=sp(),uT=Cg(),IB=U0(),wB=eP().indexOf,OB=eT(),rP=NB([].push);iP.exports=function(R,te){var qe=IB(R),Ve=0,ni=[],wr;for(wr in qe)!uT(OB,wr)&&uT(qe,wr)&&rP(ni,wr);for(;te.length>Ve;)uT(qe,wr=te[Ve++])&&(~wB(ni,wr)||rP(ni,wr));return ni};});var nP=Un((Gz,aP)=>{aP.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sP=Un(oP=>{var FB=tP(),MB=nP(),LB=MB.concat("length","prototype");oP.f=Object.getOwnPropertyNames||function(te){return FB(te,LB)};});var uP=Un(cP=>{cP.f=Object.getOwnPropertySymbols;});var fP=Un((Qz,lP)=>{var RB=Py(),BB=sp(),JB=sP(),jB=uP(),UB=GS(),zB=BB([].concat);lP.exports=RB("Reflect","ownKeys")||function(te){var qe=JB.f(UB(te)),Ve=jB.f;return Ve?zB(qe,Ve(te)):qe};});var dP=Un((Yz,pP)=>{var _P=Cg(),WB=fP(),qB=KS(),VB=$S();pP.exports=function(R,te,qe){for(var Ve=WB(te),ni=VB.f,wr=qB.f,fr=0;fr<Ve.length;fr++){var Mr=Ve[fr];!_P(R,Mr)&&!(qe&&_P(qe,Mr))&&ni(R,Mr,wr(te,Mr));}};});var mP=Un(($z,gP)=>{var KB=Vd(),GB=cp(),HB=/#|\.prototype\./,wy=function(R,te){var qe=QB[XB(R)];return qe==$B?!0:qe==YB?!1:GB(te)?KB(te):!!te},XB=wy.normalize=function(R){return String(R).replace(HB,".").toLowerCase()},QB=wy.data={},YB=wy.NATIVE="N",$B=wy.POLYFILL="P";gP.exports=wy;});var fT=Un((Zz,vP)=>{var lT=Rc(),ZB=KS().f,eJ=G0(),rJ=V4(),iJ=q0(),tJ=dP(),aJ=mP();vP.exports=function(R,te){var qe=R.target,Ve=R.global,ni=R.stat,wr,fr,Mr,ir,Pe,e;if(Ve?fr=lT:ni?fr=lT[qe]||iJ(qe,{}):fr=(lT[qe]||{}).prototype,fr)for(Mr in te){if(Pe=te[Mr],R.noTargetGet?(e=ZB(fr,Mr),ir=e&&e.value):ir=fr[Mr],wr=aJ(Ve?Mr:qe+(ni?".":"#")+Mr,R.forced),!wr&&ir!==void 0){if(typeof Pe==typeof ir)continue;tJ(Pe,ir);}(R.sham||ir&&ir.sham)&&eJ(Pe,"sham",!0),rJ(fr,Mr,Pe,R);}};});var yP=Un(()=>{var nJ=fT(),oJ=Rc();nJ({global:!0},{globalThis:oJ});});var hP=Un(()=>{yP();});var _T=Un((aW,DP)=>{var sJ=j0();DP.exports=Array.isArray||function(te){return sJ(te)=="Array"};});var TP=Un((nW,SP)=>{var bP=sp(),cJ=W0(),uJ=R0(),lJ=bP(bP.bind);SP.exports=function(R,te){return cJ(R),te===void 0?R:uJ?lJ(R,te):function(){return R.apply(te,arguments)}};});var CP=Un((oW,EP)=>{var fJ=Rc(),_J=_T(),pJ=Y0(),dJ=TP(),gJ=fJ.TypeError,xP=function(R,te,qe,Ve,ni,wr,fr,Mr){for(var ir=ni,Pe=0,e=fr?dJ(fr,Mr):!1,a,O;Pe<Ve;){if(Pe in qe){if(a=e?e(qe[Pe],Pe,te):qe[Pe],wr>0&&_J(a))O=pJ(a),ir=xP(R,te,a,O,ir,wr-1)-1;else {if(ir>=9007199254740991)throw gJ("Exceed the acceptable array length");R[ir]=a;}ir++;}Pe++;}return ir};EP.exports=xP;});var PP=Un((sW,AP)=>{var mJ=Ny(),vJ=mJ("toStringTag"),kP={};kP[vJ]="z";AP.exports=String(kP)==="[object z]";});var IP=Un((cW,NP)=>{var yJ=Rc(),hJ=PP(),DJ=cp(),$0=j0(),bJ=Ny(),SJ=bJ("toStringTag"),TJ=yJ.Object,xJ=$0(function(){return arguments}())=="Arguments",EJ=function(R,te){try{return R[te]}catch{}};NP.exports=hJ?$0:function(R){var te,qe,Ve;return R===void 0?"Undefined":R===null?"Null":typeof(qe=EJ(te=TJ(R),SJ))=="string"?qe:xJ?$0(te):(Ve=$0(te))=="Object"&&DJ(te.callee)?"Arguments":Ve};});var RP=Un((uW,LP)=>{var CJ=sp(),kJ=Vd(),wP=cp(),AJ=IP(),PJ=Py(),NJ=H0(),OP=function(){},IJ=[],FP=PJ("Reflect","construct"),pT=/^\s*(?:class|function)\b/,wJ=CJ(pT.exec),OJ=!pT.exec(OP),Oy=function(te){if(!wP(te))return !1;try{return FP(OP,IJ,te),!0}catch{return !1}},MP=function(te){if(!wP(te))return !1;switch(AJ(te)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return OJ||!!wJ(pT,NJ(te))}catch{return !0}};MP.sham=!0;LP.exports=!FP||kJ(function(){var R;return Oy(Oy.call)||!Oy(Object)||!Oy(function(){R=!0;})||R})?MP:Oy;});var UP=Un((lW,jP)=>{var FJ=Rc(),BP=_T(),MJ=RP(),LJ=Dm(),RJ=Ny(),BJ=RJ("species"),JP=FJ.Array;jP.exports=function(R){var te;return BP(R)&&(te=R.constructor,MJ(te)&&(te===JP||BP(te.prototype))?te=void 0:LJ(te)&&(te=te[BJ],te===null&&(te=void 0))),te===void 0?JP:te};});var WP=Un((fW,zP)=>{var JJ=UP();zP.exports=function(R,te){return new(JJ(R))(te===0?0:te)};});var qP=Un(()=>{var jJ=fT(),UJ=CP(),zJ=W0(),WJ=US(),qJ=Y0(),VJ=WP();jJ({target:"Array",proto:!0},{flatMap:function(te){var qe=WJ(this),Ve=qJ(qe),ni;return zJ(te),ni=VJ(qe,0),ni.length=UJ(ni,qe,qe,Ve,0,1,te,arguments.length>1?arguments[1]:void 0),ni}});});var qU=Un((dW,BN)=>{hP();qP();var bT=Object.defineProperty,KJ=Object.getOwnPropertyDescriptor,ST=Object.getOwnPropertyNames,GJ=Object.prototype.hasOwnProperty,My=(R,te)=>function(){return R&&(te=(0, R[ST(R)[0]])(R=0)),te},Aa=(R,te)=>function(){return te||(0, R[ST(R)[0]])((te={exports:{}}).exports,te),te.exports},t1=(R,te)=>{for(var qe in te)bT(R,qe,{get:te[qe],enumerable:!0});},HJ=(R,te,qe,Ve)=>{if(te&&typeof te=="object"||typeof te=="function")for(let ni of ST(te))!GJ.call(R,ni)&&ni!==qe&&bT(R,ni,{get:()=>te[ni],enumerable:!(Ve=KJ(te,ni))||Ve.enumerable});return R},up=R=>HJ(bT({},"__esModule",{value:!0}),R),VP,KP,yl,Sa=My({"<define:process>"(){VP={},KP=[],yl={env:VP,argv:KP};}}),QP=Aa({"src/common/parser-create-error.js"(R,te){Sa();function qe(Ve,ni){let wr=new SyntaxError(Ve+" ("+ni.start.line+":"+ni.start.column+")");return wr.loc=ni,wr}te.exports=qe;}}),XJ=Aa({"src/utils/try-combinations.js"(R,te){Sa();function qe(){let Ve;for(var ni=arguments.length,wr=new Array(ni),fr=0;fr<ni;fr++)wr[fr]=arguments[fr];for(let[Mr,ir]of wr.entries())try{return {result:ir()}}catch(Pe){Mr===0&&(Ve=Pe);}return {error:Ve}}te.exports=qe;}}),YP={};t1(YP,{EOL:()=>mT,arch:()=>QJ,cpus:()=>aN,default:()=>uN,endianness:()=>$P,freemem:()=>iN,getNetworkInterfaces:()=>cN,hostname:()=>ZP,loadavg:()=>eN,networkInterfaces:()=>sN,platform:()=>YJ,release:()=>oN,tmpDir:()=>dT,tmpdir:()=>gT,totalmem:()=>tN,type:()=>nN,uptime:()=>rN});function $P(){if(typeof Z0>"u"){var R=new ArrayBuffer(2),te=new Uint8Array(R),qe=new Uint16Array(R);if(te[0]=1,te[1]=2,qe[0]===258)Z0="BE";else if(qe[0]===513)Z0="LE";else throw new Error("unable to figure out endianess")}return Z0}function ZP(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function eN(){return []}function rN(){return 0}function iN(){return Number.MAX_VALUE}function tN(){return Number.MAX_VALUE}function aN(){return []}function nN(){return "Browser"}function oN(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function sN(){}function cN(){}function QJ(){return "javascript"}function YJ(){return "browser"}function dT(){return "/tmp"}var Z0,gT,mT,uN,$J=My({"node-modules-polyfills:os"(){Sa(),gT=dT,mT=`
|
|
24
24
|
`,uN={EOL:mT,tmpdir:gT,tmpDir:dT,networkInterfaces:sN,getNetworkInterfaces:cN,release:oN,type:nN,cpus:aN,totalmem:tN,freemem:iN,uptime:rN,loadavg:eN,hostname:ZP,endianness:$P};}}),ZJ=Aa({"node-modules-polyfills-commonjs:os"(R,te){Sa();var qe=($J(),up(YP));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve];}else qe&&(te.exports=qe);}}),ej=Aa({"node_modules/detect-newline/index.js"(R,te){Sa();var qe=Ve=>{if(typeof Ve!="string")throw new TypeError("Expected a string");let ni=Ve.match(/(?:\r?\n)/g)||[];if(ni.length===0)return;let wr=ni.filter(Mr=>Mr===`\r
|
|
25
25
|
`).length,fr=ni.length-wr;return wr>fr?`\r
|
|
26
26
|
`:`
|
|
@@ -302,7 +302,7 @@ Verbose Debug Information: `+(typeof Tr=="string"?Tr:Tr())),G(Br,n||ue));}L.asse
|
|
|
302
302
|
`));}G=!0;}}function Y(f){if(yl.env.TSESTREE_SINGLE_RUN==="false"){C.singleRun=!1;return}if(yl.env.TSESTREE_SINGLE_RUN==="true"){C.singleRun=!0;return}if(f!=null&&f.allowAutomaticSingleRunInference&&(yl.env.CI==="true"||yl.argv[1].endsWith((0, ir.normalize)("node_modules/.bin/eslint")))){C.singleRun=!0;return}C.singleRun=!1;}function Z(f,P){let{ast:D}=k(f,P,!1);return D}R.parse=Z;function k(f,P,D){if(x(),P!=null&&P.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');f=B(f),C.code=f,typeof P<"u"&&ie(P),_e(),Y(P);let l=(0, N.createSourceFile)(f,C),{estree:_,astMaps:J}=(0, e.astConverter)(l,C,D);return {ast:_,esTreeNodeToTSNodeMap:J.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:J.tsNodeToESTreeNodeMap}}function I(f,P){return k(f,P,!0)}R.parseWithNodeMaps=I;var ne={};function ee(){ne={};}R.clearParseAndGenerateServicesCalls=ee;function A(f,P){var D;x(),f=B(f),C.code=f,typeof P<"u"&&(ie(P),typeof P.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&P.errorOnTypeScriptSyntacticAndSemanticIssues&&(C.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),_e(),Y(P),C.singleRun&&!C.programs&&((D=C.projects)===null||D===void 0?void 0:D.length)>0&&(C.programs={*[Symbol.iterator](){for(let z of C.projects){let y=E.get(z);if(y)yield y;else {g("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",z);let oe=(0, F.createProgramFromConfigFile)(z);E.set(z,oe),yield oe;}}}});let l=C.programs!=null||C.projects&&C.projects.length>0,_,J;if(C.singleRun&&P.filePath&&(ne[P.filePath]=(ne[P.filePath]||0)+1),C.singleRun&&P.filePath&&ne[P.filePath]>1){let z=(0, L.createIsolatedProgram)(f,C);_=z.ast,J=z.program;}else {let z=re(f,C.programs,l,C.createDefaultProgram);_=z.ast,J=z.program;}let w=typeof C.preserveNodeMaps=="boolean"?C.preserveNodeMaps:!0,{estree:j,astMaps:U}=(0, e.astConverter)(_,C,w);if(J&&C.errorOnTypeScriptSyntacticAndSemanticIssues){let z=(0, Q.getFirstSemanticOrSyntacticError)(J,_);if(z)throw (0, a.convertError)(z)}return {ast:j,services:{hasFullTypeInformation:l,program:J,esTreeNodeToTSNodeMap:U.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:U.tsNodeToESTreeNodeMap}}}R.parseAndGenerateServices=A;}}),FU=Aa({"node_modules/@typescript-eslint/typescript-estree/package.json"(R,te){te.exports={name:"@typescript-eslint/typescript-estree",version:"5.17.0",description:"A parser that converts TypeScript source code into an ESTree compatible form",main:"dist/index.js",types:"dist/index.d.ts",files:["dist","README.md","LICENSE"],engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"},repository:{type:"git",url:"https://github.com/typescript-eslint/typescript-eslint.git",directory:"packages/typescript-estree"},bugs:{url:"https://github.com/typescript-eslint/typescript-eslint/issues"},license:"BSD-2-Clause",keywords:["ast","estree","ecmascript","javascript","typescript","parser","syntax"],scripts:{build:"tsc -b tsconfig.build.json",postbuild:"downlevel-dts dist _ts3.4/dist",clean:"tsc -b tsconfig.build.json --clean",postclean:"rimraf dist && rimraf _ts3.4 && rimraf coverage",format:'prettier --write "./**/*.{ts,js,json,md}" --ignore-path ../../.prettierignore',lint:"eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",test:"jest --coverage",typecheck:"tsc -p tsconfig.json --noEmit"},dependencies:{"@typescript-eslint/types":"5.17.0","@typescript-eslint/visitor-keys":"5.17.0",debug:"^4.3.2",globby:"^11.0.4","is-glob":"^4.0.3",semver:"^7.3.5",tsutils:"^3.21.0"},devDependencies:{"@babel/code-frame":"^7.16.0","@babel/parser":"^7.16.0","@types/babel__code-frame":"^7.0.3","@types/debug":"*","@types/glob":"*","@types/is-glob":"*","@types/semver":"*","@types/tmp":"*","@typescript-eslint/shared-fixtures":"5.17.0",glob:"*","jest-specific-snapshot":"*","make-dir":"*",tmp:"*",typescript:"*"},peerDependenciesMeta:{typescript:{optional:!0}},funding:{type:"opencollective",url:"https://opencollective.com/typescript-eslint"},typesVersions:{"<3.8":{"*":["_ts3.4/*"]}},gitHead:"790a1eeac93cd3405a774db80a06da7bc15d0876"};}}),MU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/index.js"(R){Sa();var te=R&&R.__createBinding||(Object.create?function(ir,Pe,e,a){a===void 0&&(a=e);var O=Object.getOwnPropertyDescriptor(Pe,e);(!O||("get"in O?!Pe.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return Pe[e]}}),Object.defineProperty(ir,a,O);}:function(ir,Pe,e,a){a===void 0&&(a=e),ir[a]=Pe[e];}),qe=R&&R.__exportStar||function(ir,Pe){for(var e in ir)e!=="default"&&!Object.prototype.hasOwnProperty.call(Pe,e)&&te(Pe,ir,e);};Object.defineProperty(R,"__esModule",{value:!0}),R.version=R.visitorKeys=R.createProgram=R.clearCaches=R.simpleTraverse=R.clearProgramCache=R.parseWithNodeMaps=R.parseAndGenerateServices=R.parse=void 0;var Ve=OU();Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return Ve.parse}}),Object.defineProperty(R,"parseAndGenerateServices",{enumerable:!0,get:function(){return Ve.parseAndGenerateServices}}),Object.defineProperty(R,"parseWithNodeMaps",{enumerable:!0,get:function(){return Ve.parseWithNodeMaps}}),Object.defineProperty(R,"clearProgramCache",{enumerable:!0,get:function(){return Ve.clearProgramCache}});var ni=MN();Object.defineProperty(R,"simpleTraverse",{enumerable:!0,get:function(){return ni.simpleTraverse}}),qe(f1(),R);var wr=LN();Object.defineProperty(R,"clearCaches",{enumerable:!0,get:function(){return wr.clearWatchCaches}});var fr=RN();Object.defineProperty(R,"createProgram",{enumerable:!0,get:function(){return fr.createProgramFromConfigFile}});var Mr=FN();Object.defineProperty(R,"visitorKeys",{enumerable:!0,get:function(){return Mr.visitorKeys}}),R.version=FU().version;}});Sa();var LU=QP(),RU=XJ(),BU=oj(),JU=sj(),jU=pj(),XP={loc:!0,range:!0,comment:!0,jsx:!0,tokens:!0,loggerFn:!1,project:[]};function UU(R){let{message:te,lineNumber:qe,column:Ve}=R;return typeof qe!="number"?R:LU(te,{start:{line:qe,column:Ve+1}})}function zU(R,te){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ve=JU(R),ni=WU(R),{parseWithNodeMaps:wr}=MU(),{result:fr,error:Mr}=RU(()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:ni})),()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:!ni})));if(!fr)throw UU(Mr);return qe.originalText=R,qe.tsParseResult=fr,jU(fr.ast,qe)}function WU(R){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"m").test(R)}BN.exports={parsers:{typescript:BU(zU)}};});return qU();});
|
|
303
303
|
} (parserTypescript$2));
|
|
304
304
|
|
|
305
|
-
var parserTypescript = /*@__PURE__*/
|
|
305
|
+
var parserTypescript = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parserTypescript$2.exports);
|
|
306
306
|
|
|
307
307
|
var parserTypescript$1 = /*#__PURE__*/_mergeNamespaces({
|
|
308
308
|
__proto__: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers.cjs');
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
m.forEach(function (e) {
|
|
@@ -172,7 +172,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
|
|
|
172
172
|
`}};e._defineProperty(a,"defaults",y),r.Document=a,r.defaultOptions=h,r.scalarOptions=d;}}),Zn=F({"node_modules/yaml/dist/index.js"(r){D();var e=Gn(),n=zn(),c=ot(),h=Me(),d=it();ke();function y(C){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=arguments.length>2?arguments[2]:void 0;R===void 0&&typeof q=="string"&&(R=q,q=!0);let j=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new c.Schema(j).createNode(C,q,R)}var E=class extends n.Document{constructor(C){super(Object.assign({},n.defaultOptions,C));}};function I(C,q){let R=[],j;for(let K of e.parse(C)){let m=new E(q);m.parse(K,j),R.push(m),j=m;}return R}function S(C,q){let R=e.parse(C),j=new E(q).parse(R[0]);if(R.length>1){let K="Source contains multiple documents; please use YAML.parseAllDocuments()";j.errors.unshift(new h.YAMLSemanticError(R[1],K));}return j}function M(C,q){let R=S(C,q);if(R.warnings.forEach(j=>d.warn(j)),R.errors.length>0)throw R.errors[0];return R.toJSON()}function T(C,q){let R=new E(q);return R.contents=C,String(R)}var P={createNode:y,defaultOptions:n.defaultOptions,Document:E,parse:M,parseAllDocuments:I,parseCST:e.parse,parseDocument:S,scalarOptions:n.scalarOptions,stringify:T};r.YAML=P;}}),Je=F({"node_modules/yaml/index.js"(r,e){D(),e.exports=Zn().YAML;}}),Xn=F({"node_modules/yaml/dist/util.js"(r){D();var e=ke(),n=Me();r.findPair=e.findPair,r.parseMap=e.resolveMap,r.parseSeq=e.resolveSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.toJSON=e.toJSON,r.Type=n.Type,r.YAMLError=n.YAMLError,r.YAMLReferenceError=n.YAMLReferenceError,r.YAMLSemanticError=n.YAMLSemanticError,r.YAMLSyntaxError=n.YAMLSyntaxError,r.YAMLWarning=n.YAMLWarning;}}),er=F({"node_modules/yaml/util.js"(r){D();var e=Xn();r.findPair=e.findPair,r.toJSON=e.toJSON,r.parseMap=e.parseMap,r.parseSeq=e.parseSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.Type=e.Type,r.YAMLError=e.YAMLError,r.YAMLReferenceError=e.YAMLReferenceError,r.YAMLSemanticError=e.YAMLSemanticError,r.YAMLSyntaxError=e.YAMLSyntaxError,r.YAMLWarning=e.YAMLWarning;}}),tr=F({"node_modules/yaml-unist-parser/lib/yaml.js"(r){D(),r.__esModule=!0;var e=Je();r.Document=e.Document;var n=Je();r.parseCST=n.parseCST;var c=er();r.YAMLError=c.YAMLError,r.YAMLSyntaxError=c.YAMLSyntaxError,r.YAMLSemanticError=c.YAMLSemanticError;}}),nr=F({"node_modules/yaml-unist-parser/lib/parse.js"(r){D(),r.__esModule=!0;var e=xt(),n=Gt(),c=zt(),h=Zt(),d=Fn(),y=ze(),E=Vn(),I=Un(),S=Kn(),M=$n(),T=Jn(),P=Hn(),C=tr();function q(R){var j=C.parseCST(R);M.addOrigRange(j);for(var K=j.map(function(k){return new C.Document({merge:!1,keepCstNodes:!0}).parse(k)}),m=new e.default(R),a=[],t={text:R,locator:m,comments:a,transformOffset:function(k){return I.transformOffset(k,t)},transformRange:function(k){return S.transformRange(k,t)},transformNode:function(k){return d.transformNode(k,t)},transformContent:function(k){return y.transformContent(k,t)}},s=0,i=K;s<i.length;s++)for(var f=i[s],g=0,u=f.errors;g<u.length;g++){var p=u[g];if(!(p instanceof C.YAMLSemanticError&&p.message==='Map keys must be unique; "<<" is repeated'))throw E.transformError(p,t)}K.forEach(function(k){return h.removeCstBlankLine(k.cstNode)});var L=c.createRoot(t.transformRange({origStart:0,origEnd:t.text.length}),K.map(t.transformNode),a);return n.attachComments(L),P.updatePositions(L),T.removeFakeNodes(L),L}r.parse=q;}}),rr=F({"node_modules/yaml-unist-parser/lib/index.js"(r){D(),r.__esModule=!0;var e=(ae(),se(te));e.__exportStar(nr(),r);}});D();var sr=Lt(),{hasPragma:ar}=At(),{locStart:ir,locEnd:or}=Nt();function lr(r){let{parse:e}=rr();try{let n=e(r);return delete n.comments,n}catch(n){throw n&&n.position?sr(n.message,n.position):n}}var cr={astFormat:"yaml",parse:lr,hasPragma:ar,locStart:ir,locEnd:or};lt.exports={parsers:{yaml:cr}};});return ur();});
|
|
173
173
|
} (parserYaml$2));
|
|
174
174
|
|
|
175
|
-
var parserYaml = /*@__PURE__*/
|
|
175
|
+
var parserYaml = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parserYaml$2.exports);
|
|
176
176
|
|
|
177
177
|
var parserYaml$1 = /*#__PURE__*/_mergeNamespaces({
|
|
178
178
|
__proto__: null,
|
|
@@ -467,7 +467,8 @@ async function getInWorkspace(argv) {
|
|
|
467
467
|
return fs__namespace.existsSync('quilt.workspace.ts');
|
|
468
468
|
}
|
|
469
469
|
async function getCreateAsMonorepo(argv, {
|
|
470
|
-
type
|
|
470
|
+
type,
|
|
471
|
+
default: defaultCreateAsMonorepo = true
|
|
471
472
|
}) {
|
|
472
473
|
let createAsMonorepo;
|
|
473
474
|
if (argv['--monorepo' ]) {
|
|
@@ -478,7 +479,7 @@ async function getCreateAsMonorepo(argv, {
|
|
|
478
479
|
createAsMonorepo = await index.prompt({
|
|
479
480
|
type: 'confirm',
|
|
480
481
|
message: `Do you want to create this ${type} as a monorepo, with room for more projects?`,
|
|
481
|
-
initial:
|
|
482
|
+
initial: defaultCreateAsMonorepo
|
|
482
483
|
});
|
|
483
484
|
}
|
|
484
485
|
return createAsMonorepo;
|