nitro-nightly 3.0.1-20260119-145349-d0c4950f → 3.0.1-20260120-133205-cbfce96c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_build/common.mjs +542 -542
- package/dist/_build/rolldown.mjs +5 -5
- package/dist/_build/rollup.mjs +3 -3
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_chunks/dev.mjs +4 -4
- package/dist/_chunks/nitro.mjs +3 -3
- package/dist/_chunks/nitro2.mjs +1 -1
- package/dist/_chunks/utils.mjs +1 -1
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +2 -2
- package/dist/_libs/@jridgewell/gen-mapping.mjs +1 -1
- package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +19 -19
- package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
- package/dist/_libs/c12.d.mts +214 -0
- package/dist/_libs/c12.mjs +6 -6
- package/dist/_libs/chokidar.mjs +2 -2
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +2 -2
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/giget.mjs +1305 -1305
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +1 -1
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/unimport.d.mts +426 -0
- package/dist/_libs/unimport.mjs +11 -11
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +1 -1
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
- package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/runtime-config.d.mts +0 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/virtual/renderer-template.d.mts +0 -1
- package/dist/types/index.d.mts +962 -1095
- package/dist/vite.d.mts +13 -13
- package/dist/vite.mjs +10 -9
- package/package.json +9 -9
package/dist/_build/common.mjs
CHANGED
|
@@ -822,10 +822,10 @@ function resolvePackageTarget$1(packageJsonUrl, target, subpath, packageSubpath,
|
|
|
822
822
|
if (target === null) return null;
|
|
823
823
|
throw invalidPackageTarget$1(packageSubpath, target, packageJsonUrl, internal, base);
|
|
824
824
|
}
|
|
825
|
-
function isConditionalExportsMainSugar$1(exports
|
|
826
|
-
if (typeof exports
|
|
827
|
-
if (typeof exports
|
|
828
|
-
const keys = Object.getOwnPropertyNames(exports
|
|
825
|
+
function isConditionalExportsMainSugar$1(exports, packageJsonUrl, base) {
|
|
826
|
+
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
827
|
+
if (typeof exports !== "object" || exports === null) return false;
|
|
828
|
+
const keys = Object.getOwnPropertyNames(exports);
|
|
829
829
|
let isConditionalSugar = false;
|
|
830
830
|
let i$2 = 0;
|
|
831
831
|
let keyIndex = -1;
|
|
@@ -845,17 +845,17 @@ function emitTrailingSlashPatternDeprecation$1(match, pjsonUrl, base) {
|
|
|
845
845
|
process$1.emitWarning(`Use of deprecated trailing slash pattern mapping "${match}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${fileURLToPath(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
|
|
846
846
|
}
|
|
847
847
|
function packageExportsResolve$1(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
848
|
-
let exports
|
|
849
|
-
if (isConditionalExportsMainSugar$1(exports
|
|
850
|
-
if (own$2.call(exports
|
|
851
|
-
const target = exports
|
|
848
|
+
let exports = packageConfig.exports;
|
|
849
|
+
if (isConditionalExportsMainSugar$1(exports, packageJsonUrl, base)) exports = { ".": exports };
|
|
850
|
+
if (own$2.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
851
|
+
const target = exports[packageSubpath];
|
|
852
852
|
const resolveResult = resolvePackageTarget$1(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
853
853
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound$1(packageSubpath, packageJsonUrl, base);
|
|
854
854
|
return resolveResult;
|
|
855
855
|
}
|
|
856
856
|
let bestMatch = "";
|
|
857
857
|
let bestMatchSubpath = "";
|
|
858
|
-
const keys = Object.getOwnPropertyNames(exports
|
|
858
|
+
const keys = Object.getOwnPropertyNames(exports);
|
|
859
859
|
let i$2 = -1;
|
|
860
860
|
while (++i$2 < keys.length) {
|
|
861
861
|
const key = keys[i$2];
|
|
@@ -870,7 +870,7 @@ function packageExportsResolve$1(packageJsonUrl, packageSubpath, packageConfig,
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
if (bestMatch) {
|
|
873
|
-
const target = exports
|
|
873
|
+
const target = exports[bestMatch];
|
|
874
874
|
const resolveResult = resolvePackageTarget$1(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
875
875
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound$1(packageSubpath, packageJsonUrl, base);
|
|
876
876
|
return resolveResult;
|
|
@@ -7226,10 +7226,10 @@ var nonASCIIidentifierStart = /* @__PURE__ */ new RegExp("[" + nonASCIIidentifie
|
|
|
7226
7226
|
var nonASCIIidentifier = /* @__PURE__ */ new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
7227
7227
|
function isInAstralSet(code, set) {
|
|
7228
7228
|
var pos = 65536;
|
|
7229
|
-
for (var i
|
|
7230
|
-
pos += set[i
|
|
7229
|
+
for (var i = 0; i < set.length; i += 2) {
|
|
7230
|
+
pos += set[i];
|
|
7231
7231
|
if (pos > code) return false;
|
|
7232
|
-
pos += set[i
|
|
7232
|
+
pos += set[i + 1];
|
|
7233
7233
|
if (pos >= code) return true;
|
|
7234
7234
|
}
|
|
7235
7235
|
return false;
|
|
@@ -7254,7 +7254,7 @@ function isIdentifierChar(code, astral) {
|
|
|
7254
7254
|
if (astral === false) return false;
|
|
7255
7255
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
7256
7256
|
}
|
|
7257
|
-
var TokenType = function TokenType
|
|
7257
|
+
var TokenType = function TokenType(label, conf) {
|
|
7258
7258
|
if (conf === void 0) conf = {};
|
|
7259
7259
|
this.label = label;
|
|
7260
7260
|
this.keyword = conf.keyword;
|
|
@@ -7421,9 +7421,9 @@ function isNewLine(code) {
|
|
|
7421
7421
|
}
|
|
7422
7422
|
function nextLineBreak(code, from, end) {
|
|
7423
7423
|
if (end === void 0) end = code.length;
|
|
7424
|
-
for (var i
|
|
7425
|
-
var next = code.charCodeAt(i
|
|
7426
|
-
if (isNewLine(next)) return i
|
|
7424
|
+
for (var i = from; i < end; i++) {
|
|
7425
|
+
var next = code.charCodeAt(i);
|
|
7426
|
+
if (isNewLine(next)) return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;
|
|
7427
7427
|
}
|
|
7428
7428
|
return -1;
|
|
7429
7429
|
}
|
|
@@ -7448,14 +7448,14 @@ function codePointToString(code) {
|
|
|
7448
7448
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
7449
7449
|
}
|
|
7450
7450
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
7451
|
-
var Position = function Position
|
|
7451
|
+
var Position = function Position(line, col) {
|
|
7452
7452
|
this.line = line;
|
|
7453
7453
|
this.column = col;
|
|
7454
7454
|
};
|
|
7455
7455
|
Position.prototype.offset = function offset(n$2) {
|
|
7456
7456
|
return new Position(this.line, this.column + n$2);
|
|
7457
7457
|
};
|
|
7458
|
-
var SourceLocation = function SourceLocation
|
|
7458
|
+
var SourceLocation = function SourceLocation(p$1, start, end) {
|
|
7459
7459
|
this.start = start;
|
|
7460
7460
|
this.end = end;
|
|
7461
7461
|
if (p$1.sourceFile !== null) this.source = p$1.sourceFile;
|
|
@@ -7530,7 +7530,7 @@ function functionFlags(async, generator) {
|
|
|
7530
7530
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
7531
7531
|
}
|
|
7532
7532
|
var BIND_NONE = 0, BIND_VAR = 1, BIND_LEXICAL = 2, BIND_FUNCTION = 3, BIND_SIMPLE_CATCH = 4, BIND_OUTSIDE = 5;
|
|
7533
|
-
var Parser = function Parser
|
|
7533
|
+
var Parser = function Parser(options, input, startPos) {
|
|
7534
7534
|
this.options = options = getOptions(options);
|
|
7535
7535
|
this.sourceFile = options.sourceFile;
|
|
7536
7536
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -7585,7 +7585,7 @@ var prototypeAccessors = {
|
|
|
7585
7585
|
allowNewDotTarget: { configurable: true },
|
|
7586
7586
|
inClassStaticBlock: { configurable: true }
|
|
7587
7587
|
};
|
|
7588
|
-
Parser.prototype.parse = function parse
|
|
7588
|
+
Parser.prototype.parse = function parse() {
|
|
7589
7589
|
var node = this.options.program || this.startNode();
|
|
7590
7590
|
this.nextToken();
|
|
7591
7591
|
return this.parseTopLevel(node);
|
|
@@ -7600,8 +7600,8 @@ prototypeAccessors.inAsync.get = function() {
|
|
|
7600
7600
|
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
|
7601
7601
|
};
|
|
7602
7602
|
prototypeAccessors.canAwait.get = function() {
|
|
7603
|
-
for (var i
|
|
7604
|
-
var flags = this.scopeStack[i
|
|
7603
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
7604
|
+
var flags = this.scopeStack[i].flags;
|
|
7605
7605
|
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) return false;
|
|
7606
7606
|
if (flags & SCOPE_FUNCTION) return (flags & SCOPE_ASYNC) > 0;
|
|
7607
7607
|
}
|
|
@@ -7617,8 +7617,8 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
|
|
|
7617
7617
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
7618
7618
|
};
|
|
7619
7619
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
|
7620
|
-
for (var i
|
|
7621
|
-
var flags = this.scopeStack[i
|
|
7620
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
7621
|
+
var flags = this.scopeStack[i].flags;
|
|
7622
7622
|
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) return true;
|
|
7623
7623
|
}
|
|
7624
7624
|
return false;
|
|
@@ -7630,10 +7630,10 @@ Parser.extend = function extend() {
|
|
|
7630
7630
|
var plugins$1 = [], len = arguments.length;
|
|
7631
7631
|
while (len--) plugins$1[len] = arguments[len];
|
|
7632
7632
|
var cls = this;
|
|
7633
|
-
for (var i
|
|
7633
|
+
for (var i = 0; i < plugins$1.length; i++) cls = plugins$1[i](cls);
|
|
7634
7634
|
return cls;
|
|
7635
7635
|
};
|
|
7636
|
-
Parser.parse = function parse
|
|
7636
|
+
Parser.parse = function parse(input, options) {
|
|
7637
7637
|
return new this(options, input).parse();
|
|
7638
7638
|
};
|
|
7639
7639
|
Parser.parseExpressionAt = function parseExpressionAt(input, pos, options) {
|
|
@@ -7641,7 +7641,7 @@ Parser.parseExpressionAt = function parseExpressionAt(input, pos, options) {
|
|
|
7641
7641
|
parser.nextToken();
|
|
7642
7642
|
return parser.parseExpression();
|
|
7643
7643
|
};
|
|
7644
|
-
Parser.tokenizer = function tokenizer
|
|
7644
|
+
Parser.tokenizer = function tokenizer(input, options) {
|
|
7645
7645
|
return new this(options, input);
|
|
7646
7646
|
};
|
|
7647
7647
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
@@ -7708,7 +7708,7 @@ pp$9.expect = function(type$1) {
|
|
|
7708
7708
|
pp$9.unexpected = function(pos) {
|
|
7709
7709
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
7710
7710
|
};
|
|
7711
|
-
var DestructuringErrors = function DestructuringErrors
|
|
7711
|
+
var DestructuringErrors = function DestructuringErrors() {
|
|
7712
7712
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
7713
7713
|
};
|
|
7714
7714
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -7735,14 +7735,14 @@ pp$9.isSimpleAssignTarget = function(expr) {
|
|
|
7735
7735
|
};
|
|
7736
7736
|
var pp$8 = Parser.prototype;
|
|
7737
7737
|
pp$8.parseTopLevel = function(node) {
|
|
7738
|
-
var exports
|
|
7738
|
+
var exports = Object.create(null);
|
|
7739
7739
|
if (!node.body) node.body = [];
|
|
7740
7740
|
while (this.type !== types$1.eof) {
|
|
7741
|
-
var stmt = this.parseStatement(null, true, exports
|
|
7741
|
+
var stmt = this.parseStatement(null, true, exports);
|
|
7742
7742
|
node.body.push(stmt);
|
|
7743
7743
|
}
|
|
7744
|
-
if (this.inModule) for (var i
|
|
7745
|
-
var name = list
|
|
7744
|
+
if (this.inModule) for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) {
|
|
7745
|
+
var name = list[i];
|
|
7746
7746
|
this.raiseRecoverable(this.undefinedExports[name].start, "Export '" + name + "' is not defined");
|
|
7747
7747
|
}
|
|
7748
7748
|
this.adaptDirectivePrologue(node.body);
|
|
@@ -7803,7 +7803,7 @@ pp$8.isAwaitUsing = function(isFor) {
|
|
|
7803
7803
|
pp$8.isUsing = function(isFor) {
|
|
7804
7804
|
return this.isUsingKeyword(false, isFor);
|
|
7805
7805
|
};
|
|
7806
|
-
pp$8.parseStatement = function(context, topLevel, exports
|
|
7806
|
+
pp$8.parseStatement = function(context, topLevel, exports) {
|
|
7807
7807
|
var starttype = this.type, node = this.startNode(), kind;
|
|
7808
7808
|
if (this.isLet(context)) {
|
|
7809
7809
|
starttype = types$1._var;
|
|
@@ -7847,7 +7847,7 @@ pp$8.parseStatement = function(context, topLevel, exports$1) {
|
|
|
7847
7847
|
if (!topLevel) this.raise(this.start, "'import' and 'export' may only appear at the top level");
|
|
7848
7848
|
if (!this.inModule) this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'");
|
|
7849
7849
|
}
|
|
7850
|
-
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports
|
|
7850
|
+
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports);
|
|
7851
7851
|
default:
|
|
7852
7852
|
if (this.isAsyncFunction()) {
|
|
7853
7853
|
if (context) this.unexpected();
|
|
@@ -7880,15 +7880,15 @@ pp$8.parseBreakContinueStatement = function(node, keyword) {
|
|
|
7880
7880
|
node.label = this.parseIdent();
|
|
7881
7881
|
this.semicolon();
|
|
7882
7882
|
}
|
|
7883
|
-
var i
|
|
7884
|
-
for (; i
|
|
7885
|
-
var lab = this.labels[i
|
|
7883
|
+
var i = 0;
|
|
7884
|
+
for (; i < this.labels.length; ++i) {
|
|
7885
|
+
var lab = this.labels[i];
|
|
7886
7886
|
if (node.label == null || lab.name === node.label.name) {
|
|
7887
7887
|
if (lab.kind != null && (isBreak || lab.kind === "loop")) break;
|
|
7888
7888
|
if (node.label && isBreak) break;
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
7891
|
-
if (i
|
|
7891
|
+
if (i === this.labels.length) this.raise(node.start, "Unsyntactic " + keyword);
|
|
7892
7892
|
return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
|
|
7893
7893
|
};
|
|
7894
7894
|
pp$8.parseDebuggerStatement = function(node) {
|
|
@@ -8080,10 +8080,10 @@ pp$8.parseEmptyStatement = function(node) {
|
|
|
8080
8080
|
return this.finishNode(node, "EmptyStatement");
|
|
8081
8081
|
};
|
|
8082
8082
|
pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {
|
|
8083
|
-
for (var i$1$1 = 0, list
|
|
8083
|
+
for (var i$1$1 = 0, list = this.labels; i$1$1 < list.length; i$1$1 += 1) if (list[i$1$1].name === maybeName) this.raise(expr.start, "Label '" + maybeName + "' is already declared");
|
|
8084
8084
|
var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null;
|
|
8085
|
-
for (var i
|
|
8086
|
-
var label$1 = this.labels[i
|
|
8085
|
+
for (var i = this.labels.length - 1; i >= 0; i--) {
|
|
8086
|
+
var label$1 = this.labels[i];
|
|
8087
8087
|
if (label$1.statementStart === node.start) {
|
|
8088
8088
|
label$1.statementStart = this.start;
|
|
8089
8089
|
label$1.kind = kind;
|
|
@@ -8222,7 +8222,7 @@ pp$8.parseClass = function(node, isStatement) {
|
|
|
8222
8222
|
};
|
|
8223
8223
|
pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
8224
8224
|
if (this.eat(types$1.semi)) return null;
|
|
8225
|
-
var ecmaVersion
|
|
8225
|
+
var ecmaVersion = this.options.ecmaVersion;
|
|
8226
8226
|
var node = this.startNode();
|
|
8227
8227
|
var keyName = "";
|
|
8228
8228
|
var isGenerator = false;
|
|
@@ -8230,7 +8230,7 @@ pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
|
8230
8230
|
var kind = "method";
|
|
8231
8231
|
var isStatic = false;
|
|
8232
8232
|
if (this.eatContextual("static")) {
|
|
8233
|
-
if (ecmaVersion
|
|
8233
|
+
if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {
|
|
8234
8234
|
this.parseClassStaticBlock(node);
|
|
8235
8235
|
return node;
|
|
8236
8236
|
}
|
|
@@ -8238,9 +8238,9 @@ pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
|
8238
8238
|
else keyName = "static";
|
|
8239
8239
|
}
|
|
8240
8240
|
node.static = isStatic;
|
|
8241
|
-
if (!keyName && ecmaVersion
|
|
8241
|
+
if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
|
|
8242
8242
|
else keyName = "async";
|
|
8243
|
-
if (!keyName && (ecmaVersion
|
|
8243
|
+
if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) isGenerator = true;
|
|
8244
8244
|
if (!keyName && !isAsync && !isGenerator) {
|
|
8245
8245
|
var lastValue = this.value;
|
|
8246
8246
|
if (this.eatContextual("get") || this.eatContextual("set")) if (this.isClassElementNameStart()) kind = lastValue;
|
|
@@ -8252,7 +8252,7 @@ pp$8.parseClassElement = function(constructorAllowsSuper) {
|
|
|
8252
8252
|
node.key.name = keyName;
|
|
8253
8253
|
this.finishNode(node.key, "Identifier");
|
|
8254
8254
|
} else this.parseClassElementName(node);
|
|
8255
|
-
if (ecmaVersion
|
|
8255
|
+
if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
|
|
8256
8256
|
var isConstructor = !node.static && checkKeyName(node, "constructor");
|
|
8257
8257
|
var allowsDirectSuper = isConstructor && constructorAllowsSuper;
|
|
8258
8258
|
if (isConstructor && kind !== "method") this.raise(node.key.start, "Constructor can't have get/set modifier");
|
|
@@ -8329,14 +8329,14 @@ pp$8.enterClassBody = function() {
|
|
|
8329
8329
|
return element.declared;
|
|
8330
8330
|
};
|
|
8331
8331
|
pp$8.exitClassBody = function() {
|
|
8332
|
-
var ref
|
|
8333
|
-
var declared = ref
|
|
8334
|
-
var used = ref
|
|
8332
|
+
var ref = this.privateNameStack.pop();
|
|
8333
|
+
var declared = ref.declared;
|
|
8334
|
+
var used = ref.used;
|
|
8335
8335
|
if (!this.options.checkPrivateFields) return;
|
|
8336
8336
|
var len = this.privateNameStack.length;
|
|
8337
8337
|
var parent = len === 0 ? null : this.privateNameStack[len - 1];
|
|
8338
|
-
for (var i
|
|
8339
|
-
var id = used[i
|
|
8338
|
+
for (var i = 0; i < used.length; ++i) {
|
|
8339
|
+
var id = used[i];
|
|
8340
8340
|
if (!hasOwn(declared, id.name)) if (parent) parent.used.push(id);
|
|
8341
8341
|
else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
|
|
8342
8342
|
}
|
|
@@ -8359,10 +8359,10 @@ function checkKeyName(node, name) {
|
|
|
8359
8359
|
var key = node.key;
|
|
8360
8360
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
8361
8361
|
}
|
|
8362
|
-
pp$8.parseExportAllDeclaration = function(node, exports
|
|
8362
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
8363
8363
|
if (this.options.ecmaVersion >= 11) if (this.eatContextual("as")) {
|
|
8364
8364
|
node.exported = this.parseModuleExportName();
|
|
8365
|
-
this.checkExport(exports
|
|
8365
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
8366
8366
|
} else node.exported = null;
|
|
8367
8367
|
this.expectContextual("from");
|
|
8368
8368
|
if (this.type !== types$1.string) this.unexpected();
|
|
@@ -8371,31 +8371,31 @@ pp$8.parseExportAllDeclaration = function(node, exports$1) {
|
|
|
8371
8371
|
this.semicolon();
|
|
8372
8372
|
return this.finishNode(node, "ExportAllDeclaration");
|
|
8373
8373
|
};
|
|
8374
|
-
pp$8.parseExport = function(node, exports
|
|
8374
|
+
pp$8.parseExport = function(node, exports) {
|
|
8375
8375
|
this.next();
|
|
8376
|
-
if (this.eat(types$1.star)) return this.parseExportAllDeclaration(node, exports
|
|
8376
|
+
if (this.eat(types$1.star)) return this.parseExportAllDeclaration(node, exports);
|
|
8377
8377
|
if (this.eat(types$1._default)) {
|
|
8378
|
-
this.checkExport(exports
|
|
8378
|
+
this.checkExport(exports, "default", this.lastTokStart);
|
|
8379
8379
|
node.declaration = this.parseExportDefaultDeclaration();
|
|
8380
8380
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
8381
8381
|
}
|
|
8382
8382
|
if (this.shouldParseExportStatement()) {
|
|
8383
8383
|
node.declaration = this.parseExportDeclaration(node);
|
|
8384
|
-
if (node.declaration.type === "VariableDeclaration") this.checkVariableExport(exports
|
|
8385
|
-
else this.checkExport(exports
|
|
8384
|
+
if (node.declaration.type === "VariableDeclaration") this.checkVariableExport(exports, node.declaration.declarations);
|
|
8385
|
+
else this.checkExport(exports, node.declaration.id, node.declaration.id.start);
|
|
8386
8386
|
node.specifiers = [];
|
|
8387
8387
|
node.source = null;
|
|
8388
8388
|
if (this.options.ecmaVersion >= 16) node.attributes = [];
|
|
8389
8389
|
} else {
|
|
8390
8390
|
node.declaration = null;
|
|
8391
|
-
node.specifiers = this.parseExportSpecifiers(exports
|
|
8391
|
+
node.specifiers = this.parseExportSpecifiers(exports);
|
|
8392
8392
|
if (this.eatContextual("from")) {
|
|
8393
8393
|
if (this.type !== types$1.string) this.unexpected();
|
|
8394
8394
|
node.source = this.parseExprAtom();
|
|
8395
8395
|
if (this.options.ecmaVersion >= 16) node.attributes = this.parseWithClause();
|
|
8396
8396
|
} else {
|
|
8397
|
-
for (var i
|
|
8398
|
-
var spec = list
|
|
8397
|
+
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
8398
|
+
var spec = list[i];
|
|
8399
8399
|
this.checkUnreserved(spec.local);
|
|
8400
8400
|
this.checkLocalExport(spec.local);
|
|
8401
8401
|
if (spec.local.type === "Literal") this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
@@ -8426,45 +8426,45 @@ pp$8.parseExportDefaultDeclaration = function() {
|
|
|
8426
8426
|
return declaration;
|
|
8427
8427
|
}
|
|
8428
8428
|
};
|
|
8429
|
-
pp$8.checkExport = function(exports
|
|
8430
|
-
if (!exports
|
|
8429
|
+
pp$8.checkExport = function(exports, name, pos) {
|
|
8430
|
+
if (!exports) return;
|
|
8431
8431
|
if (typeof name !== "string") name = name.type === "Identifier" ? name.name : name.value;
|
|
8432
|
-
if (hasOwn(exports
|
|
8433
|
-
exports
|
|
8432
|
+
if (hasOwn(exports, name)) this.raiseRecoverable(pos, "Duplicate export '" + name + "'");
|
|
8433
|
+
exports[name] = true;
|
|
8434
8434
|
};
|
|
8435
|
-
pp$8.checkPatternExport = function(exports
|
|
8435
|
+
pp$8.checkPatternExport = function(exports, pat) {
|
|
8436
8436
|
var type$1 = pat.type;
|
|
8437
|
-
if (type$1 === "Identifier") this.checkExport(exports
|
|
8438
|
-
else if (type$1 === "ObjectPattern") for (var i
|
|
8439
|
-
var prop = list
|
|
8440
|
-
this.checkPatternExport(exports
|
|
8437
|
+
if (type$1 === "Identifier") this.checkExport(exports, pat, pat.start);
|
|
8438
|
+
else if (type$1 === "ObjectPattern") for (var i = 0, list = pat.properties; i < list.length; i += 1) {
|
|
8439
|
+
var prop = list[i];
|
|
8440
|
+
this.checkPatternExport(exports, prop);
|
|
8441
8441
|
}
|
|
8442
|
-
else if (type$1 === "ArrayPattern") for (var i$1$1 = 0, list$1
|
|
8443
|
-
var elt = list$1
|
|
8444
|
-
if (elt) this.checkPatternExport(exports
|
|
8442
|
+
else if (type$1 === "ArrayPattern") for (var i$1$1 = 0, list$1 = pat.elements; i$1$1 < list$1.length; i$1$1 += 1) {
|
|
8443
|
+
var elt = list$1[i$1$1];
|
|
8444
|
+
if (elt) this.checkPatternExport(exports, elt);
|
|
8445
8445
|
}
|
|
8446
|
-
else if (type$1 === "Property") this.checkPatternExport(exports
|
|
8447
|
-
else if (type$1 === "AssignmentPattern") this.checkPatternExport(exports
|
|
8448
|
-
else if (type$1 === "RestElement") this.checkPatternExport(exports
|
|
8446
|
+
else if (type$1 === "Property") this.checkPatternExport(exports, pat.value);
|
|
8447
|
+
else if (type$1 === "AssignmentPattern") this.checkPatternExport(exports, pat.left);
|
|
8448
|
+
else if (type$1 === "RestElement") this.checkPatternExport(exports, pat.argument);
|
|
8449
8449
|
};
|
|
8450
|
-
pp$8.checkVariableExport = function(exports
|
|
8451
|
-
if (!exports
|
|
8452
|
-
for (var i
|
|
8453
|
-
var decl = list
|
|
8454
|
-
this.checkPatternExport(exports
|
|
8450
|
+
pp$8.checkVariableExport = function(exports, decls) {
|
|
8451
|
+
if (!exports) return;
|
|
8452
|
+
for (var i = 0, list = decls; i < list.length; i += 1) {
|
|
8453
|
+
var decl = list[i];
|
|
8454
|
+
this.checkPatternExport(exports, decl.id);
|
|
8455
8455
|
}
|
|
8456
8456
|
};
|
|
8457
8457
|
pp$8.shouldParseExportStatement = function() {
|
|
8458
8458
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
8459
8459
|
};
|
|
8460
|
-
pp$8.parseExportSpecifier = function(exports
|
|
8460
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
8461
8461
|
var node = this.startNode();
|
|
8462
8462
|
node.local = this.parseModuleExportName();
|
|
8463
8463
|
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
8464
|
-
this.checkExport(exports
|
|
8464
|
+
this.checkExport(exports, node.exported, node.exported.start);
|
|
8465
8465
|
return this.finishNode(node, "ExportSpecifier");
|
|
8466
8466
|
};
|
|
8467
|
-
pp$8.parseExportSpecifiers = function(exports
|
|
8467
|
+
pp$8.parseExportSpecifiers = function(exports) {
|
|
8468
8468
|
var nodes = [], first = true;
|
|
8469
8469
|
this.expect(types$1.braceL);
|
|
8470
8470
|
while (!this.eat(types$1.braceR)) {
|
|
@@ -8472,7 +8472,7 @@ pp$8.parseExportSpecifiers = function(exports$1) {
|
|
|
8472
8472
|
this.expect(types$1.comma);
|
|
8473
8473
|
if (this.afterTrailingComma(types$1.braceR)) break;
|
|
8474
8474
|
} else first = false;
|
|
8475
|
-
nodes.push(this.parseExportSpecifier(exports
|
|
8475
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
8476
8476
|
}
|
|
8477
8477
|
return nodes;
|
|
8478
8478
|
};
|
|
@@ -8571,7 +8571,7 @@ pp$8.parseModuleExportName = function() {
|
|
|
8571
8571
|
return this.parseIdent(true);
|
|
8572
8572
|
};
|
|
8573
8573
|
pp$8.adaptDirectivePrologue = function(statements) {
|
|
8574
|
-
for (var i
|
|
8574
|
+
for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) statements[i].directive = statements[i].expression.raw.slice(1, -1);
|
|
8575
8575
|
};
|
|
8576
8576
|
pp$8.isDirectiveCandidate = function(statement) {
|
|
8577
8577
|
return this.options.ecmaVersion >= 5 && statement.type === "ExpressionStatement" && statement.expression.type === "Literal" && typeof statement.expression.value === "string" && (this.input[statement.start] === "\"" || this.input[statement.start] === "'");
|
|
@@ -8589,8 +8589,8 @@ pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
|
|
|
8589
8589
|
case "ObjectExpression":
|
|
8590
8590
|
node.type = "ObjectPattern";
|
|
8591
8591
|
if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);
|
|
8592
|
-
for (var i
|
|
8593
|
-
var prop = list
|
|
8592
|
+
for (var i = 0, list = node.properties; i < list.length; i += 1) {
|
|
8593
|
+
var prop = list[i];
|
|
8594
8594
|
this.toAssignable(prop, isBinding);
|
|
8595
8595
|
if (prop.type === "RestElement" && (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern")) this.raise(prop.argument.start, "Unexpected token");
|
|
8596
8596
|
}
|
|
@@ -8629,8 +8629,8 @@ pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
|
|
|
8629
8629
|
};
|
|
8630
8630
|
pp$7.toAssignableList = function(exprList, isBinding) {
|
|
8631
8631
|
var end = exprList.length;
|
|
8632
|
-
for (var i
|
|
8633
|
-
var elt = exprList[i
|
|
8632
|
+
for (var i = 0; i < end; i++) {
|
|
8633
|
+
var elt = exprList[i];
|
|
8634
8634
|
if (elt) this.toAssignable(elt, isBinding);
|
|
8635
8635
|
}
|
|
8636
8636
|
if (end) {
|
|
@@ -8728,14 +8728,14 @@ pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
|
|
|
8728
8728
|
if (bindingType === void 0) bindingType = BIND_NONE;
|
|
8729
8729
|
switch (expr.type) {
|
|
8730
8730
|
case "ObjectPattern":
|
|
8731
|
-
for (var i
|
|
8732
|
-
var prop = list
|
|
8731
|
+
for (var i = 0, list = expr.properties; i < list.length; i += 1) {
|
|
8732
|
+
var prop = list[i];
|
|
8733
8733
|
this.checkLValInnerPattern(prop, bindingType, checkClashes);
|
|
8734
8734
|
}
|
|
8735
8735
|
break;
|
|
8736
8736
|
case "ArrayPattern":
|
|
8737
|
-
for (var i$1$1 = 0, list$1
|
|
8738
|
-
var elem = list$1
|
|
8737
|
+
for (var i$1$1 = 0, list$1 = expr.elements; i$1$1 < list$1.length; i$1$1 += 1) {
|
|
8738
|
+
var elem = list$1[i$1$1];
|
|
8739
8739
|
if (elem) this.checkLValInnerPattern(elem, bindingType, checkClashes);
|
|
8740
8740
|
}
|
|
8741
8741
|
break;
|
|
@@ -8757,7 +8757,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
8757
8757
|
default: this.checkLValPattern(expr, bindingType, checkClashes);
|
|
8758
8758
|
}
|
|
8759
8759
|
};
|
|
8760
|
-
var TokContext = function TokContext
|
|
8760
|
+
var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
|
|
8761
8761
|
this.token = token;
|
|
8762
8762
|
this.isExpr = !!isExpr;
|
|
8763
8763
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -8796,8 +8796,8 @@ pp$6.braceIsBlock = function(prevType) {
|
|
|
8796
8796
|
return !this.exprAllowed;
|
|
8797
8797
|
};
|
|
8798
8798
|
pp$6.inGeneratorContext = function() {
|
|
8799
|
-
for (var i
|
|
8800
|
-
var context = this.context[i
|
|
8799
|
+
for (var i = this.context.length - 1; i >= 1; i--) {
|
|
8800
|
+
var context = this.context[i];
|
|
8801
8801
|
if (context.token === "function") return context.generator;
|
|
8802
8802
|
}
|
|
8803
8803
|
return false;
|
|
@@ -9338,8 +9338,8 @@ pp$5.parseNew = function() {
|
|
|
9338
9338
|
else node.arguments = empty;
|
|
9339
9339
|
return this.finishNode(node, "NewExpression");
|
|
9340
9340
|
};
|
|
9341
|
-
pp$5.parseTemplateElement = function(ref
|
|
9342
|
-
var isTagged = ref
|
|
9341
|
+
pp$5.parseTemplateElement = function(ref) {
|
|
9342
|
+
var isTagged = ref.isTagged;
|
|
9343
9343
|
var elem = this.startNode();
|
|
9344
9344
|
if (this.type === types$1.invalidTemplate) {
|
|
9345
9345
|
if (!isTagged) this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal");
|
|
@@ -9355,9 +9355,9 @@ pp$5.parseTemplateElement = function(ref$1) {
|
|
|
9355
9355
|
elem.tail = this.type === types$1.backQuote;
|
|
9356
9356
|
return this.finishNode(elem, "TemplateElement");
|
|
9357
9357
|
};
|
|
9358
|
-
pp$5.parseTemplate = function(ref
|
|
9359
|
-
if (ref
|
|
9360
|
-
var isTagged = ref
|
|
9358
|
+
pp$5.parseTemplate = function(ref) {
|
|
9359
|
+
if (ref === void 0) ref = {};
|
|
9360
|
+
var isTagged = ref.isTagged;
|
|
9361
9361
|
if (isTagged === void 0) isTagged = false;
|
|
9362
9362
|
var node = this.startNode();
|
|
9363
9363
|
this.next();
|
|
@@ -9534,13 +9534,13 @@ pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {
|
|
|
9534
9534
|
this.exitScope();
|
|
9535
9535
|
};
|
|
9536
9536
|
pp$5.isSimpleParamList = function(params) {
|
|
9537
|
-
for (var i
|
|
9537
|
+
for (var i = 0, list = params; i < list.length; i += 1) if (list[i].type !== "Identifier") return false;
|
|
9538
9538
|
return true;
|
|
9539
9539
|
};
|
|
9540
9540
|
pp$5.checkParams = function(node, allowDuplicates) {
|
|
9541
9541
|
var nameHash = Object.create(null);
|
|
9542
|
-
for (var i
|
|
9543
|
-
var param = list
|
|
9542
|
+
for (var i = 0, list = node.params; i < list.length; i += 1) {
|
|
9543
|
+
var param = list[i];
|
|
9544
9544
|
this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);
|
|
9545
9545
|
}
|
|
9546
9546
|
};
|
|
@@ -9561,10 +9561,10 @@ pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestruct
|
|
|
9561
9561
|
}
|
|
9562
9562
|
return elts;
|
|
9563
9563
|
};
|
|
9564
|
-
pp$5.checkUnreserved = function(ref
|
|
9565
|
-
var start = ref
|
|
9566
|
-
var end = ref
|
|
9567
|
-
var name = ref
|
|
9564
|
+
pp$5.checkUnreserved = function(ref) {
|
|
9565
|
+
var start = ref.start;
|
|
9566
|
+
var end = ref.end;
|
|
9567
|
+
var name = ref.name;
|
|
9568
9568
|
if (this.inGenerator && name === "yield") this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator");
|
|
9569
9569
|
if (this.inAsync && name === "await") this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function");
|
|
9570
9570
|
if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments") this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer");
|
|
@@ -9670,8 +9670,8 @@ pp$3.declareName = function(name, bindingType, pos) {
|
|
|
9670
9670
|
if (this.treatFunctionsAsVar) redeclared = scope$2.lexical.indexOf(name) > -1;
|
|
9671
9671
|
else redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1;
|
|
9672
9672
|
scope$2.functions.push(name);
|
|
9673
|
-
} else for (var i
|
|
9674
|
-
var scope$3 = this.scopeStack[i
|
|
9673
|
+
} else for (var i = this.scopeStack.length - 1; i >= 0; --i) {
|
|
9674
|
+
var scope$3 = this.scopeStack[i];
|
|
9675
9675
|
if (scope$3.lexical.indexOf(name) > -1 && !(scope$3.flags & SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {
|
|
9676
9676
|
redeclared = true;
|
|
9677
9677
|
break;
|
|
@@ -9689,18 +9689,18 @@ pp$3.currentScope = function() {
|
|
|
9689
9689
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
9690
9690
|
};
|
|
9691
9691
|
pp$3.currentVarScope = function() {
|
|
9692
|
-
for (var i
|
|
9693
|
-
var scope = this.scopeStack[i
|
|
9692
|
+
for (var i = this.scopeStack.length - 1;; i--) {
|
|
9693
|
+
var scope = this.scopeStack[i];
|
|
9694
9694
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) return scope;
|
|
9695
9695
|
}
|
|
9696
9696
|
};
|
|
9697
9697
|
pp$3.currentThisScope = function() {
|
|
9698
|
-
for (var i
|
|
9699
|
-
var scope = this.scopeStack[i
|
|
9698
|
+
for (var i = this.scopeStack.length - 1;; i--) {
|
|
9699
|
+
var scope = this.scopeStack[i];
|
|
9700
9700
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) return scope;
|
|
9701
9701
|
}
|
|
9702
9702
|
};
|
|
9703
|
-
var Node = function Node
|
|
9703
|
+
var Node = function Node(parser, pos, loc) {
|
|
9704
9704
|
this.type = "";
|
|
9705
9705
|
this.start = pos;
|
|
9706
9706
|
this.end = 0;
|
|
@@ -9773,13 +9773,13 @@ var unicodeScriptValues = {
|
|
|
9773
9773
|
14: ecma14ScriptValues
|
|
9774
9774
|
};
|
|
9775
9775
|
var data = {};
|
|
9776
|
-
function buildUnicodeData(ecmaVersion
|
|
9777
|
-
var d$2 = data[ecmaVersion
|
|
9778
|
-
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion
|
|
9779
|
-
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion
|
|
9776
|
+
function buildUnicodeData(ecmaVersion) {
|
|
9777
|
+
var d$2 = data[ecmaVersion] = {
|
|
9778
|
+
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
|
|
9779
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
|
|
9780
9780
|
nonBinary: {
|
|
9781
9781
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
9782
|
-
Script: wordsRegexp(unicodeScriptValues[ecmaVersion
|
|
9782
|
+
Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
|
|
9783
9783
|
}
|
|
9784
9784
|
};
|
|
9785
9785
|
d$2.nonBinary.Script_Extensions = d$2.nonBinary.Script;
|
|
@@ -9799,7 +9799,7 @@ for (var i = 0, list = [
|
|
|
9799
9799
|
buildUnicodeData(ecmaVersion);
|
|
9800
9800
|
}
|
|
9801
9801
|
var pp$1 = Parser.prototype;
|
|
9802
|
-
var BranchID = function BranchID
|
|
9802
|
+
var BranchID = function BranchID(parent, base) {
|
|
9803
9803
|
this.parent = parent;
|
|
9804
9804
|
this.base = base || this;
|
|
9805
9805
|
};
|
|
@@ -9810,7 +9810,7 @@ BranchID.prototype.separatedFrom = function separatedFrom(alt) {
|
|
|
9810
9810
|
BranchID.prototype.sibling = function sibling() {
|
|
9811
9811
|
return new BranchID(this.parent, this.base);
|
|
9812
9812
|
};
|
|
9813
|
-
var RegExpValidationState = function RegExpValidationState
|
|
9813
|
+
var RegExpValidationState = function RegExpValidationState(parser) {
|
|
9814
9814
|
this.parser = parser;
|
|
9815
9815
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
9816
9816
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -9849,24 +9849,24 @@ RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {
|
|
|
9849
9849
|
RegExpValidationState.prototype.raise = function raise(message) {
|
|
9850
9850
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
9851
9851
|
};
|
|
9852
|
-
RegExpValidationState.prototype.at = function at(i
|
|
9852
|
+
RegExpValidationState.prototype.at = function at(i, forceU) {
|
|
9853
9853
|
if (forceU === void 0) forceU = false;
|
|
9854
9854
|
var s = this.source;
|
|
9855
9855
|
var l$1 = s.length;
|
|
9856
|
-
if (i
|
|
9857
|
-
var c$1 = s.charCodeAt(i
|
|
9858
|
-
if (!(forceU || this.switchU) || c$1 <= 55295 || c$1 >= 57344 || i
|
|
9859
|
-
var next = s.charCodeAt(i
|
|
9856
|
+
if (i >= l$1) return -1;
|
|
9857
|
+
var c$1 = s.charCodeAt(i);
|
|
9858
|
+
if (!(forceU || this.switchU) || c$1 <= 55295 || c$1 >= 57344 || i + 1 >= l$1) return c$1;
|
|
9859
|
+
var next = s.charCodeAt(i + 1);
|
|
9860
9860
|
return next >= 56320 && next <= 57343 ? (c$1 << 10) + next - 56613888 : c$1;
|
|
9861
9861
|
};
|
|
9862
|
-
RegExpValidationState.prototype.nextIndex = function nextIndex(i
|
|
9862
|
+
RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {
|
|
9863
9863
|
if (forceU === void 0) forceU = false;
|
|
9864
9864
|
var s = this.source;
|
|
9865
9865
|
var l$1 = s.length;
|
|
9866
|
-
if (i
|
|
9867
|
-
var c$1 = s.charCodeAt(i
|
|
9868
|
-
if (!(forceU || this.switchU) || c$1 <= 55295 || c$1 >= 57344 || i
|
|
9869
|
-
return i
|
|
9866
|
+
if (i >= l$1) return l$1;
|
|
9867
|
+
var c$1 = s.charCodeAt(i), next;
|
|
9868
|
+
if (!(forceU || this.switchU) || c$1 <= 55295 || c$1 >= 57344 || i + 1 >= l$1 || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) return i + 1;
|
|
9869
|
+
return i + 2;
|
|
9870
9870
|
};
|
|
9871
9871
|
RegExpValidationState.prototype.current = function current(forceU) {
|
|
9872
9872
|
if (forceU === void 0) forceU = false;
|
|
@@ -9891,8 +9891,8 @@ RegExpValidationState.prototype.eat = function eat(ch, forceU) {
|
|
|
9891
9891
|
RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
|
|
9892
9892
|
if (forceU === void 0) forceU = false;
|
|
9893
9893
|
var pos = this.pos;
|
|
9894
|
-
for (var i
|
|
9895
|
-
var ch = list
|
|
9894
|
+
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
9895
|
+
var ch = list[i];
|
|
9896
9896
|
var current = this.at(pos, forceU);
|
|
9897
9897
|
if (current === -1 || current !== ch) return false;
|
|
9898
9898
|
pos = this.nextIndex(pos, forceU);
|
|
@@ -9911,10 +9911,10 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
9911
9911
|
var flags = state.flags;
|
|
9912
9912
|
var u$1 = false;
|
|
9913
9913
|
var v$3 = false;
|
|
9914
|
-
for (var i
|
|
9915
|
-
var flag = flags.charAt(i
|
|
9914
|
+
for (var i = 0; i < flags.length; i++) {
|
|
9915
|
+
var flag = flags.charAt(i);
|
|
9916
9916
|
if (validFlags.indexOf(flag) === -1) this.raise(state.start, "Invalid regular expression flag");
|
|
9917
|
-
if (flags.indexOf(flag, i
|
|
9917
|
+
if (flags.indexOf(flag, i + 1) > -1) this.raise(state.start, "Duplicate regular expression flag");
|
|
9918
9918
|
if (flag === "u") u$1 = true;
|
|
9919
9919
|
if (flag === "v") v$3 = true;
|
|
9920
9920
|
}
|
|
@@ -9953,8 +9953,8 @@ pp$1.regexp_pattern = function(state) {
|
|
|
9953
9953
|
if (state.eat(93) || state.eat(125)) state.raise("Lone quantifier brackets");
|
|
9954
9954
|
}
|
|
9955
9955
|
if (state.maxBackReference > state.numCapturingParens) state.raise("Invalid escape");
|
|
9956
|
-
for (var i
|
|
9957
|
-
var name = list
|
|
9956
|
+
for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
|
|
9957
|
+
var name = list[i];
|
|
9958
9958
|
if (!state.groupNames[name]) state.raise("Invalid named capture referenced");
|
|
9959
9959
|
}
|
|
9960
9960
|
};
|
|
@@ -10054,9 +10054,9 @@ pp$1.regexp_eatUncapturingGroup = function(state) {
|
|
|
10054
10054
|
var addModifiers = this.regexp_eatModifiers(state);
|
|
10055
10055
|
var hasHyphen = state.eat(45);
|
|
10056
10056
|
if (addModifiers || hasHyphen) {
|
|
10057
|
-
for (var i
|
|
10058
|
-
var modifier = addModifiers.charAt(i
|
|
10059
|
-
if (addModifiers.indexOf(modifier, i
|
|
10057
|
+
for (var i = 0; i < addModifiers.length; i++) {
|
|
10058
|
+
var modifier = addModifiers.charAt(i);
|
|
10059
|
+
if (addModifiers.indexOf(modifier, i + 1) > -1) state.raise("Duplicate regular expression modifiers");
|
|
10060
10060
|
}
|
|
10061
10061
|
if (hasHyphen) {
|
|
10062
10062
|
var removeModifiers = this.regexp_eatModifiers(state);
|
|
@@ -10142,7 +10142,7 @@ pp$1.regexp_groupSpecifier = function(state) {
|
|
|
10142
10142
|
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
10143
10143
|
var known = state.groupNames[state.lastStringValue];
|
|
10144
10144
|
if (known) if (trackDisjunction) {
|
|
10145
|
-
for (var i
|
|
10145
|
+
for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
|
|
10146
10146
|
} else state.raise("Duplicate capture group name");
|
|
10147
10147
|
if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
|
|
10148
10148
|
else state.groupNames[state.lastStringValue] = true;
|
|
@@ -10683,7 +10683,7 @@ function isOctalDigit(ch) {
|
|
|
10683
10683
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
10684
10684
|
var start = state.pos;
|
|
10685
10685
|
state.lastIntValue = 0;
|
|
10686
|
-
for (var i
|
|
10686
|
+
for (var i = 0; i < length; ++i) {
|
|
10687
10687
|
var ch = state.current();
|
|
10688
10688
|
if (!isHexDigit(ch)) {
|
|
10689
10689
|
state.pos = start;
|
|
@@ -10694,7 +10694,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
10694
10694
|
}
|
|
10695
10695
|
return true;
|
|
10696
10696
|
};
|
|
10697
|
-
var Token = function Token
|
|
10697
|
+
var Token = function Token(p$1) {
|
|
10698
10698
|
this.type = p$1.type;
|
|
10699
10699
|
this.value = p$1.value;
|
|
10700
10700
|
this.start = p$1.start;
|
|
@@ -10892,15 +10892,15 @@ pp.readToken_eq_excl = function(code) {
|
|
|
10892
10892
|
return this.finishOp(code === 61 ? types$1.eq : types$1.prefix, 1);
|
|
10893
10893
|
};
|
|
10894
10894
|
pp.readToken_question = function() {
|
|
10895
|
-
var ecmaVersion
|
|
10896
|
-
if (ecmaVersion
|
|
10895
|
+
var ecmaVersion = this.options.ecmaVersion;
|
|
10896
|
+
if (ecmaVersion >= 11) {
|
|
10897
10897
|
var next = this.input.charCodeAt(this.pos + 1);
|
|
10898
10898
|
if (next === 46) {
|
|
10899
10899
|
var next2 = this.input.charCodeAt(this.pos + 2);
|
|
10900
10900
|
if (next2 < 48 || next2 > 57) return this.finishOp(types$1.questionDot, 2);
|
|
10901
10901
|
}
|
|
10902
10902
|
if (next === 63) {
|
|
10903
|
-
if (ecmaVersion
|
|
10903
|
+
if (ecmaVersion >= 12) {
|
|
10904
10904
|
if (this.input.charCodeAt(this.pos + 2) === 61) return this.finishOp(types$1.assign, 3);
|
|
10905
10905
|
}
|
|
10906
10906
|
return this.finishOp(types$1.coalesce, 2);
|
|
@@ -10909,9 +10909,9 @@ pp.readToken_question = function() {
|
|
|
10909
10909
|
return this.finishOp(types$1.question, 1);
|
|
10910
10910
|
};
|
|
10911
10911
|
pp.readToken_numberSign = function() {
|
|
10912
|
-
var ecmaVersion
|
|
10912
|
+
var ecmaVersion = this.options.ecmaVersion;
|
|
10913
10913
|
var code = 35;
|
|
10914
|
-
if (ecmaVersion
|
|
10914
|
+
if (ecmaVersion >= 13) {
|
|
10915
10915
|
++this.pos;
|
|
10916
10916
|
code = this.fullCharCodeAtPos();
|
|
10917
10917
|
if (isIdentifierStart(code, true) || code === 92) return this.finishToken(types$1.privateId, this.readWord1());
|
|
@@ -11030,12 +11030,12 @@ pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
|
|
|
11030
11030
|
var allowSeparators = this.options.ecmaVersion >= 12 && len === void 0;
|
|
11031
11031
|
var isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48;
|
|
11032
11032
|
var start = this.pos, total = 0, lastCode = 0;
|
|
11033
|
-
for (var i
|
|
11033
|
+
for (var i = 0, e = len == null ? Infinity : len; i < e; ++i, ++this.pos) {
|
|
11034
11034
|
var code = this.input.charCodeAt(this.pos), val = void 0;
|
|
11035
11035
|
if (allowSeparators && code === 95) {
|
|
11036
11036
|
if (isLegacyOctalNumericLiteral) this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals");
|
|
11037
11037
|
if (lastCode === 95) this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore");
|
|
11038
|
-
if (i
|
|
11038
|
+
if (i === 0) this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits");
|
|
11039
11039
|
lastCode = code;
|
|
11040
11040
|
continue;
|
|
11041
11041
|
}
|
|
@@ -12656,10 +12656,10 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
12656
12656
|
* @param {URL} base
|
|
12657
12657
|
* @returns {boolean}
|
|
12658
12658
|
*/
|
|
12659
|
-
function isConditionalExportsMainSugar(exports
|
|
12660
|
-
if (typeof exports
|
|
12661
|
-
if (typeof exports
|
|
12662
|
-
const keys = Object.getOwnPropertyNames(exports
|
|
12659
|
+
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
12660
|
+
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
12661
|
+
if (typeof exports !== "object" || exports === null) return false;
|
|
12662
|
+
const keys = Object.getOwnPropertyNames(exports);
|
|
12663
12663
|
let isConditionalSugar = false;
|
|
12664
12664
|
let i$2 = 0;
|
|
12665
12665
|
let keyIndex = -1;
|
|
@@ -12692,17 +12692,17 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
12692
12692
|
* @returns {URL}
|
|
12693
12693
|
*/
|
|
12694
12694
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
12695
|
-
let exports
|
|
12696
|
-
if (isConditionalExportsMainSugar(exports
|
|
12697
|
-
if (own.call(exports
|
|
12698
|
-
const target = exports
|
|
12695
|
+
let exports = packageConfig.exports;
|
|
12696
|
+
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) exports = { ".": exports };
|
|
12697
|
+
if (own.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
|
|
12698
|
+
const target = exports[packageSubpath];
|
|
12699
12699
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
|
|
12700
12700
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
12701
12701
|
return resolveResult;
|
|
12702
12702
|
}
|
|
12703
12703
|
let bestMatch = "";
|
|
12704
12704
|
let bestMatchSubpath = "";
|
|
12705
|
-
const keys = Object.getOwnPropertyNames(exports
|
|
12705
|
+
const keys = Object.getOwnPropertyNames(exports);
|
|
12706
12706
|
let i$2 = -1;
|
|
12707
12707
|
while (++i$2 < keys.length) {
|
|
12708
12708
|
const key = keys[i$2];
|
|
@@ -12717,7 +12717,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
12717
12717
|
}
|
|
12718
12718
|
}
|
|
12719
12719
|
if (bestMatch) {
|
|
12720
|
-
const target = exports
|
|
12720
|
+
const target = exports[bestMatch];
|
|
12721
12721
|
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
|
|
12722
12722
|
if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
12723
12723
|
return resolveResult;
|
|
@@ -13013,21 +13013,21 @@ async function lookupNodeModuleSubpath(path$2) {
|
|
|
13013
13013
|
path$2 = normalize$2(fileURLToPath$2(path$2));
|
|
13014
13014
|
const { name, subpath } = parseNodeModulePath(path$2);
|
|
13015
13015
|
if (!name || !subpath) return subpath;
|
|
13016
|
-
const { exports
|
|
13017
|
-
if (exports
|
|
13018
|
-
const resolvedSubpath = _findSubpath(subpath, exports
|
|
13016
|
+
const { exports } = await readPackageJSON(path$2).catch(() => {}) || {};
|
|
13017
|
+
if (exports) {
|
|
13018
|
+
const resolvedSubpath = _findSubpath(subpath, exports);
|
|
13019
13019
|
if (resolvedSubpath) return resolvedSubpath;
|
|
13020
13020
|
}
|
|
13021
13021
|
return subpath;
|
|
13022
13022
|
}
|
|
13023
|
-
function _findSubpath(subpath, exports
|
|
13024
|
-
if (typeof exports
|
|
13023
|
+
function _findSubpath(subpath, exports) {
|
|
13024
|
+
if (typeof exports === "string") exports = { ".": exports };
|
|
13025
13025
|
if (!subpath.startsWith(".")) subpath = subpath.startsWith("/") ? `.${subpath}` : `./${subpath}`;
|
|
13026
|
-
if (subpath in (exports
|
|
13027
|
-
return _flattenExports(exports
|
|
13026
|
+
if (subpath in (exports || {})) return subpath;
|
|
13027
|
+
return _flattenExports(exports).find((p$1) => p$1.fsPath === subpath)?.subpath;
|
|
13028
13028
|
}
|
|
13029
|
-
function _flattenExports(exports
|
|
13030
|
-
return Object.entries(exports
|
|
13029
|
+
function _flattenExports(exports = {}, parentSubpath = "./") {
|
|
13030
|
+
return Object.entries(exports).flatMap(([key, value]) => {
|
|
13031
13031
|
const [subpath, condition] = key.startsWith(".") ? [key.slice(1), void 0] : ["", key];
|
|
13032
13032
|
const _subPath = joinURL(parentSubpath, subpath);
|
|
13033
13033
|
if (typeof value === "string") return [{
|
|
@@ -13092,7 +13092,7 @@ function findExports(code) {
|
|
|
13092
13092
|
});
|
|
13093
13093
|
const defaultClassExports = matchAll(EXPORT_DEFAULT_CLASS_RE, code, { type: "declaration" });
|
|
13094
13094
|
const starExports = matchAll(EXPORT_STAR_RE, code, { type: "star" });
|
|
13095
|
-
const exports
|
|
13095
|
+
const exports = normalizeExports([
|
|
13096
13096
|
...declaredExports,
|
|
13097
13097
|
...namedExports,
|
|
13098
13098
|
...destructuredExports,
|
|
@@ -13100,10 +13100,10 @@ function findExports(code) {
|
|
|
13100
13100
|
...defaultClassExports,
|
|
13101
13101
|
...starExports
|
|
13102
13102
|
]);
|
|
13103
|
-
if (exports
|
|
13103
|
+
if (exports.length === 0) return [];
|
|
13104
13104
|
const exportLocations = _tryGetLocations(code, "export");
|
|
13105
13105
|
if (exportLocations && exportLocations.length === 0) return [];
|
|
13106
|
-
return _filterStatement(exportLocations, exports
|
|
13106
|
+
return _filterStatement(exportLocations, exports).filter((exp, index, exports2) => {
|
|
13107
13107
|
const nextExport = exports2[index + 1];
|
|
13108
13108
|
return !nextExport || exp.type !== nextExport.type || !exp.name || exp.name !== nextExport.name;
|
|
13109
13109
|
});
|
|
@@ -13111,17 +13111,17 @@ function findExports(code) {
|
|
|
13111
13111
|
function findTypeExports(code) {
|
|
13112
13112
|
const declaredExports = matchAll(EXPORT_DECAL_TYPE_RE, code, { type: "declaration" });
|
|
13113
13113
|
const namedExports = normalizeNamedExports(matchAll(EXPORT_NAMED_TYPE_RE, code, { type: "named" }));
|
|
13114
|
-
const exports
|
|
13115
|
-
if (exports
|
|
13114
|
+
const exports = normalizeExports([...declaredExports, ...namedExports]);
|
|
13115
|
+
if (exports.length === 0) return [];
|
|
13116
13116
|
const exportLocations = _tryGetLocations(code, "export");
|
|
13117
13117
|
if (exportLocations && exportLocations.length === 0) return [];
|
|
13118
|
-
return _filterStatement(exportLocations, exports
|
|
13118
|
+
return _filterStatement(exportLocations, exports).filter((exp, index, exports2) => {
|
|
13119
13119
|
const nextExport = exports2[index + 1];
|
|
13120
13120
|
return !nextExport || exp.type !== nextExport.type || !exp.name || exp.name !== nextExport.name;
|
|
13121
13121
|
});
|
|
13122
13122
|
}
|
|
13123
|
-
function normalizeExports(exports
|
|
13124
|
-
for (const exp of exports
|
|
13123
|
+
function normalizeExports(exports) {
|
|
13124
|
+
for (const exp of exports) {
|
|
13125
13125
|
if (!exp.name && exp.names && exp.names.length === 1) exp.name = exp.names[0];
|
|
13126
13126
|
if (exp.name === "default" && exp.type !== "default") {
|
|
13127
13127
|
exp._type = exp.type;
|
|
@@ -13130,7 +13130,7 @@ function normalizeExports(exports$1) {
|
|
|
13130
13130
|
if (!exp.names && exp.name) exp.names = [exp.name];
|
|
13131
13131
|
if (exp.type === "declaration" && exp.declaration) exp.declarationType = exp.declaration.replace(/^declare\s*/, "");
|
|
13132
13132
|
}
|
|
13133
|
-
return exports
|
|
13133
|
+
return exports;
|
|
13134
13134
|
}
|
|
13135
13135
|
function normalizeNamedExports(namedExports) {
|
|
13136
13136
|
for (const namedExport of namedExports) namedExport.names = namedExport.exports.replace(/^\r?\n?/, "").split(/\s*,\s*/g).filter((name) => !TYPE_RE.test(name)).map((name) => name.replace(/^.*?\sas\s/, "").trim());
|
|
@@ -13138,9 +13138,9 @@ function normalizeNamedExports(namedExports) {
|
|
|
13138
13138
|
}
|
|
13139
13139
|
async function resolveModuleExportNames(id, options) {
|
|
13140
13140
|
const url = await resolvePath$1(id, options);
|
|
13141
|
-
const exports
|
|
13142
|
-
const exportNames = new Set(exports
|
|
13143
|
-
for (const exp of exports
|
|
13141
|
+
const exports = findExports(await loadURL(url));
|
|
13142
|
+
const exportNames = new Set(exports.flatMap((exp) => exp.names).filter(Boolean));
|
|
13143
|
+
for (const exp of exports) {
|
|
13144
13144
|
if (exp.type !== "star" || !exp.specifier) continue;
|
|
13145
13145
|
const subExports = await resolveModuleExportNames(exp.specifier, {
|
|
13146
13146
|
...options,
|
|
@@ -13799,11 +13799,11 @@ var BitSet = class BitSet {
|
|
|
13799
13799
|
constructor(arg) {
|
|
13800
13800
|
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
|
|
13801
13801
|
}
|
|
13802
|
-
add(n
|
|
13803
|
-
this.bits[n
|
|
13802
|
+
add(n) {
|
|
13803
|
+
this.bits[n >> 5] |= 1 << (n & 31);
|
|
13804
13804
|
}
|
|
13805
|
-
has(n
|
|
13806
|
-
return !!(this.bits[n
|
|
13805
|
+
has(n) {
|
|
13806
|
+
return !!(this.bits[n >> 5] & 1 << (n & 31));
|
|
13807
13807
|
}
|
|
13808
13808
|
};
|
|
13809
13809
|
var Chunk = class Chunk {
|
|
@@ -15300,24 +15300,24 @@ ${items.map((i$2) => ` ${i$2}`).join("\n")}
|
|
|
15300
15300
|
}`;
|
|
15301
15301
|
return declaration;
|
|
15302
15302
|
}
|
|
15303
|
-
function makeTypeModulesMap(imports, resolvePath
|
|
15303
|
+
function makeTypeModulesMap(imports, resolvePath) {
|
|
15304
15304
|
const modulesMap = /* @__PURE__ */ new Map();
|
|
15305
|
-
const resolveImportFrom = typeof resolvePath
|
|
15306
|
-
return resolvePath
|
|
15305
|
+
const resolveImportFrom = typeof resolvePath === "function" ? (i$2) => {
|
|
15306
|
+
return resolvePath(i$2) || stripFileExtension(i$2.typeFrom || i$2.from);
|
|
15307
15307
|
} : (i$2) => stripFileExtension(i$2.typeFrom || i$2.from);
|
|
15308
15308
|
for (const import_ of imports) {
|
|
15309
15309
|
const from = resolveImportFrom(import_);
|
|
15310
|
-
let module
|
|
15311
|
-
if (!module
|
|
15312
|
-
module
|
|
15310
|
+
let module = modulesMap.get(from);
|
|
15311
|
+
if (!module) {
|
|
15312
|
+
module = {
|
|
15313
15313
|
typeImports: /* @__PURE__ */ new Set(),
|
|
15314
15314
|
starTypeImport: void 0
|
|
15315
15315
|
};
|
|
15316
|
-
modulesMap.set(from, module
|
|
15316
|
+
modulesMap.set(from, module);
|
|
15317
15317
|
}
|
|
15318
15318
|
if (import_.name === "*") {
|
|
15319
|
-
if (import_.as) module
|
|
15320
|
-
} else module
|
|
15319
|
+
if (import_.as) module.starTypeImport = import_;
|
|
15320
|
+
} else module.typeImports.add(import_);
|
|
15321
15321
|
}
|
|
15322
15322
|
return modulesMap;
|
|
15323
15323
|
}
|
|
@@ -15325,9 +15325,9 @@ function toTypeReExports(imports, options) {
|
|
|
15325
15325
|
const importsMap = makeTypeModulesMap(imports, options?.resolvePath);
|
|
15326
15326
|
return `// for type re-export
|
|
15327
15327
|
declare global {
|
|
15328
|
-
${Array.from(importsMap).flatMap(([from, module
|
|
15328
|
+
${Array.from(importsMap).flatMap(([from, module]) => {
|
|
15329
15329
|
from = from.replace(/\.d\.([cm]?)ts$/i, ".$1js");
|
|
15330
|
-
const { starTypeImport, typeImports } = module
|
|
15330
|
+
const { starTypeImport, typeImports } = module;
|
|
15331
15331
|
const strings = [];
|
|
15332
15332
|
if (typeImports.size) {
|
|
15333
15333
|
const typeImportNames = Array.from(typeImports).map(({ name, as }) => {
|
|
@@ -15899,7 +15899,7 @@ function parseVirtualImportsRegex(strippedCode, importMap, virtualImports) {
|
|
|
15899
15899
|
};
|
|
15900
15900
|
}
|
|
15901
15901
|
async function detectImports(code, ctx, options) {
|
|
15902
|
-
if (options?.parser === "acorn") return import("../_libs/unimport.mjs").then((n) => n.
|
|
15902
|
+
if (options?.parser === "acorn") return import("../_libs/unimport.mjs").then((n) => n.n).then((r$3) => r$3.detectImportsAcorn(code, ctx, options));
|
|
15903
15903
|
return detectImportsRegex(code, ctx, options);
|
|
15904
15904
|
}
|
|
15905
15905
|
const FileExtensionLookup = [
|
|
@@ -15966,11 +15966,11 @@ async function scanDirExports(dirs, options) {
|
|
|
15966
15966
|
const isIncludeTypes = (file) => includeTypesDirs.some((dir) => import_picomatch.default.isMatch(file, dir.glob));
|
|
15967
15967
|
return dedupeDtsExports((await Promise.all(files.map((file) => scanExports(file, isIncludeTypes(file))))).flat());
|
|
15968
15968
|
}
|
|
15969
|
-
function dedupeDtsExports(exports
|
|
15970
|
-
return exports
|
|
15969
|
+
function dedupeDtsExports(exports) {
|
|
15970
|
+
return exports.filter((i$2) => {
|
|
15971
15971
|
if (!i$2.type) return true;
|
|
15972
15972
|
if (i$2.declarationType === "enum" || i$2.declarationType === "const enum" || i$2.declarationType === "class") return true;
|
|
15973
|
-
return !exports
|
|
15973
|
+
return !exports.find((e) => e.as === i$2.as && e.name === i$2.name && !e.type);
|
|
15974
15974
|
});
|
|
15975
15975
|
}
|
|
15976
15976
|
async function scanExports(filepath, includeTypes, seen = /* @__PURE__ */ new Set()) {
|
|
@@ -15981,8 +15981,8 @@ async function scanExports(filepath, includeTypes, seen = /* @__PURE__ */ new Se
|
|
|
15981
15981
|
seen.add(filepath);
|
|
15982
15982
|
const imports = [];
|
|
15983
15983
|
const code = await readFile(filepath, "utf-8");
|
|
15984
|
-
const exports
|
|
15985
|
-
if (exports
|
|
15984
|
+
const exports = findExports(code);
|
|
15985
|
+
if (exports.find((i$2) => i$2.type === "default")) {
|
|
15986
15986
|
let name = parse$1(filepath).name;
|
|
15987
15987
|
if (name === "index") name = parse$1(filepath.split("/").slice(0, -1).join("/")).name;
|
|
15988
15988
|
const as = /[-_.]/.test(name) ? camelCase(name) : name;
|
|
@@ -16052,11 +16052,11 @@ async function scanExports(filepath, includeTypes, seen = /* @__PURE__ */ new Se
|
|
|
16052
16052
|
}
|
|
16053
16053
|
if (filepath.match(/\.d\.[mc]?ts$/)) {
|
|
16054
16054
|
if (includeTypes) {
|
|
16055
|
-
await toImport$1(exports
|
|
16055
|
+
await toImport$1(exports, { type: true });
|
|
16056
16056
|
await toImport$1(findTypeExports(code), { type: true });
|
|
16057
16057
|
}
|
|
16058
16058
|
} else {
|
|
16059
|
-
await toImport$1(exports
|
|
16059
|
+
await toImport$1(exports);
|
|
16060
16060
|
if (includeTypes) await toImport$1(findTypeExports(code), { type: true });
|
|
16061
16061
|
}
|
|
16062
16062
|
return imports;
|
|
@@ -17533,7 +17533,7 @@ const extractors = {
|
|
|
17533
17533
|
extractors[param.argument.type](names, param.argument);
|
|
17534
17534
|
}
|
|
17535
17535
|
};
|
|
17536
|
-
const extractAssignedNames = function extractAssignedNames
|
|
17536
|
+
const extractAssignedNames = function extractAssignedNames(param) {
|
|
17537
17537
|
const names = [];
|
|
17538
17538
|
extractors[param.type](names, param);
|
|
17539
17539
|
return names;
|
|
@@ -17563,7 +17563,7 @@ var Scope = class {
|
|
|
17563
17563
|
return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
|
|
17564
17564
|
}
|
|
17565
17565
|
};
|
|
17566
|
-
const attachScopes = function attachScopes
|
|
17566
|
+
const attachScopes = function attachScopes(ast, propertyName = "scope") {
|
|
17567
17567
|
let scope = new Scope();
|
|
17568
17568
|
walk(ast, {
|
|
17569
17569
|
enter(n$2, parent) {
|
|
@@ -17622,7 +17622,7 @@ function ensureArray(thing) {
|
|
|
17622
17622
|
return [thing];
|
|
17623
17623
|
}
|
|
17624
17624
|
const normalizePathRegExp = new RegExp(`\\${win32.sep}`, "g");
|
|
17625
|
-
const normalizePath = function normalizePath
|
|
17625
|
+
const normalizePath = function normalizePath(filename) {
|
|
17626
17626
|
return filename.replace(normalizePathRegExp, posix.sep);
|
|
17627
17627
|
};
|
|
17628
17628
|
function getMatcherString(id, resolutionBase) {
|
|
@@ -17630,7 +17630,7 @@ function getMatcherString(id, resolutionBase) {
|
|
|
17630
17630
|
const basePath = normalizePath(resolve(resolutionBase || "")).replace(/[-^$*+?.()|[\]{}]/g, "\\$&");
|
|
17631
17631
|
return posix.join(basePath, normalizePath(id));
|
|
17632
17632
|
}
|
|
17633
|
-
const createFilter = function createFilter
|
|
17633
|
+
const createFilter = function createFilter(include, exclude, options) {
|
|
17634
17634
|
const resolutionBase = options && options.resolve;
|
|
17635
17635
|
const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => {
|
|
17636
17636
|
return (0, import_picomatch.default)(getMatcherString(id, resolutionBase), { dot: true })(what);
|
|
@@ -17657,7 +17657,7 @@ const createFilter = function createFilter$1(include, exclude, options) {
|
|
|
17657
17657
|
};
|
|
17658
17658
|
const forbiddenIdentifiers = new Set(`break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl`.split(" "));
|
|
17659
17659
|
forbiddenIdentifiers.add("");
|
|
17660
|
-
const makeLegalIdentifier = function makeLegalIdentifier
|
|
17660
|
+
const makeLegalIdentifier = function makeLegalIdentifier(str) {
|
|
17661
17661
|
let identifier = str.replace(/-(\w)/g, (_$2, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, "_");
|
|
17662
17662
|
if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) identifier = `_${identifier}`;
|
|
17663
17663
|
return identifier || "_";
|
|
@@ -17710,7 +17710,7 @@ function isWellFormedString(input) {
|
|
|
17710
17710
|
if (hasStringIsWellFormed) return input.isWellFormed();
|
|
17711
17711
|
return !/\p{Surrogate}/u.test(input);
|
|
17712
17712
|
}
|
|
17713
|
-
const dataToEsm = function dataToEsm
|
|
17713
|
+
const dataToEsm = function dataToEsm(data$1, options = {}) {
|
|
17714
17714
|
var _a, _b;
|
|
17715
17715
|
const t$1 = options.compact ? "" : "indent" in options ? options.indent : " ";
|
|
17716
17716
|
const _$2 = options.compact ? "" : " ";
|
|
@@ -17933,7 +17933,7 @@ function featureFlags(nitro) {
|
|
|
17933
17933
|
return {
|
|
17934
17934
|
id: "#nitro/virtual/feature-flags",
|
|
17935
17935
|
template: () => {
|
|
17936
|
-
const featureFlags
|
|
17936
|
+
const featureFlags = {
|
|
17937
17937
|
hasRoutes: nitro.routing.routes.hasRoutes(),
|
|
17938
17938
|
hasRouteRules: nitro.routing.routeRules.hasRoutes(),
|
|
17939
17939
|
hasRoutedMiddleware: nitro.routing.routedMiddleware.hasRoutes(),
|
|
@@ -17942,7 +17942,7 @@ function featureFlags(nitro) {
|
|
|
17942
17942
|
hasHooks: nitro.options.features?.runtimeHooks ?? nitro.options.plugins.length > 0,
|
|
17943
17943
|
hasWebSocket: nitro.options.features?.websocket ?? nitro.options.experimental.websocket ?? false
|
|
17944
17944
|
};
|
|
17945
|
-
return Object.entries(featureFlags
|
|
17945
|
+
return Object.entries(featureFlags).map(([key, value]) => `export const ${key} = ${Boolean(value)};`).join("\n");
|
|
17946
17946
|
}
|
|
17947
17947
|
};
|
|
17948
17948
|
}
|
|
@@ -17967,12 +17967,12 @@ function plugins(nitro) {
|
|
|
17967
17967
|
|
|
17968
17968
|
//#endregion
|
|
17969
17969
|
//#region src/build/virtual/polyfills.ts
|
|
17970
|
-
function polyfills(_nitro, polyfills
|
|
17970
|
+
function polyfills(_nitro, polyfills) {
|
|
17971
17971
|
return {
|
|
17972
17972
|
id: "#nitro/virtual/polyfills",
|
|
17973
17973
|
moduleSideEffects: true,
|
|
17974
17974
|
template: () => {
|
|
17975
|
-
return polyfills
|
|
17975
|
+
return polyfills.map((p$1) => `import '${p$1}';`).join("\n") || `/* No polyfills */`;
|
|
17976
17976
|
}
|
|
17977
17977
|
};
|
|
17978
17978
|
}
|
|
@@ -17995,7 +17995,7 @@ var require_etag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17995
17995
|
* @private
|
|
17996
17996
|
*/
|
|
17997
17997
|
var crypto = __require$1("crypto");
|
|
17998
|
-
var Stats = __require$1("fs").Stats;
|
|
17998
|
+
var Stats$1 = __require$1("fs").Stats;
|
|
17999
17999
|
/**
|
|
18000
18000
|
* Module variables.
|
|
18001
18001
|
* @private
|
|
@@ -18038,7 +18038,7 @@ var require_etag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18038
18038
|
* @api private
|
|
18039
18039
|
*/
|
|
18040
18040
|
function isstats(obj) {
|
|
18041
|
-
if (typeof Stats === "function" && obj instanceof Stats) return true;
|
|
18041
|
+
if (typeof Stats$1 === "function" && obj instanceof Stats$1) return true;
|
|
18042
18042
|
return obj && typeof obj === "object" && "ctime" in obj && toString.call(obj.ctime) === "[object Date]" && "mtime" in obj && toString.call(obj.mtime) === "[object Date]" && "ino" in obj && typeof obj.ino === "number" && "size" in obj && typeof obj.size === "number";
|
|
18043
18043
|
}
|
|
18044
18044
|
/**
|
|
@@ -18616,7 +18616,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
18616
18616
|
value: mod,
|
|
18617
18617
|
enumerable: true
|
|
18618
18618
|
}) : target, mod));
|
|
18619
|
-
var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-error@1.13.2/node_modules/@webassemblyjs/helper-api-error/lib/index.js"(exports
|
|
18619
|
+
var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-error@1.13.2/node_modules/@webassemblyjs/helper-api-error/lib/index.js"(exports) {
|
|
18620
18620
|
"use strict";
|
|
18621
18621
|
function _typeof(obj) {
|
|
18622
18622
|
"@babel/helpers - typeof";
|
|
@@ -18628,8 +18628,8 @@ var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-err
|
|
|
18628
18628
|
};
|
|
18629
18629
|
return _typeof(obj);
|
|
18630
18630
|
}
|
|
18631
|
-
Object.defineProperty(exports
|
|
18632
|
-
exports
|
|
18631
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18632
|
+
exports.LinkError = exports.CompileError = exports.RuntimeError = void 0;
|
|
18633
18633
|
function _classCallCheck(instance, Constructor) {
|
|
18634
18634
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
18635
18635
|
}
|
|
@@ -18722,7 +18722,7 @@ var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-err
|
|
|
18722
18722
|
};
|
|
18723
18723
|
return _getPrototypeOf(o$1);
|
|
18724
18724
|
}
|
|
18725
|
-
exports
|
|
18725
|
+
exports.RuntimeError = /* @__PURE__ */ (function(_Error) {
|
|
18726
18726
|
_inherits(RuntimeError2, _Error);
|
|
18727
18727
|
var _super = _createSuper(RuntimeError2);
|
|
18728
18728
|
function RuntimeError2() {
|
|
@@ -18731,7 +18731,7 @@ var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-err
|
|
|
18731
18731
|
}
|
|
18732
18732
|
return RuntimeError2;
|
|
18733
18733
|
})(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
18734
|
-
exports
|
|
18734
|
+
exports.CompileError = /* @__PURE__ */ (function(_Error2) {
|
|
18735
18735
|
_inherits(CompileError2, _Error2);
|
|
18736
18736
|
var _super2 = _createSuper(CompileError2);
|
|
18737
18737
|
function CompileError2() {
|
|
@@ -18740,7 +18740,7 @@ var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-err
|
|
|
18740
18740
|
}
|
|
18741
18741
|
return CompileError2;
|
|
18742
18742
|
})(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
18743
|
-
exports
|
|
18743
|
+
exports.LinkError = /* @__PURE__ */ (function(_Error3) {
|
|
18744
18744
|
_inherits(LinkError2, _Error3);
|
|
18745
18745
|
var _super3 = _createSuper(LinkError2);
|
|
18746
18746
|
function LinkError2() {
|
|
@@ -18750,11 +18750,11 @@ var require_lib = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-api-err
|
|
|
18750
18750
|
return LinkError2;
|
|
18751
18751
|
})(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
18752
18752
|
} });
|
|
18753
|
-
var require_index_cjs = __commonJS({ "node_modules/.pnpm/@xtuc+ieee754@1.2.0/node_modules/@xtuc/ieee754/dist/index.cjs.js"(exports
|
|
18753
|
+
var require_index_cjs = __commonJS({ "node_modules/.pnpm/@xtuc+ieee754@1.2.0/node_modules/@xtuc/ieee754/dist/index.cjs.js"(exports) {
|
|
18754
18754
|
"use strict";
|
|
18755
|
-
Object.defineProperty(exports
|
|
18756
|
-
exports
|
|
18757
|
-
exports
|
|
18755
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18756
|
+
exports.read = read$2;
|
|
18757
|
+
exports.write = write;
|
|
18758
18758
|
function read$2(buffer, offset, isLE, mLen, nBytes) {
|
|
18759
18759
|
var e, m$3;
|
|
18760
18760
|
var eLen = nBytes * 8 - mLen - 1;
|
|
@@ -18824,23 +18824,23 @@ var require_index_cjs = __commonJS({ "node_modules/.pnpm/@xtuc+ieee754@1.2.0/nod
|
|
|
18824
18824
|
buffer[offset + i$2 - d$2] |= s * 128;
|
|
18825
18825
|
}
|
|
18826
18826
|
} });
|
|
18827
|
-
var require_lib2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ieee754@1.14.1/node_modules/@webassemblyjs/ieee754/lib/index.js"(exports
|
|
18827
|
+
var require_lib2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ieee754@1.14.1/node_modules/@webassemblyjs/ieee754/lib/index.js"(exports) {
|
|
18828
18828
|
"use strict";
|
|
18829
|
-
Object.defineProperty(exports
|
|
18830
|
-
exports
|
|
18831
|
-
exports
|
|
18832
|
-
exports
|
|
18833
|
-
exports
|
|
18834
|
-
exports
|
|
18829
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18830
|
+
exports.encodeF32 = encodeF32;
|
|
18831
|
+
exports.encodeF64 = encodeF64;
|
|
18832
|
+
exports.decodeF32 = decodeF32;
|
|
18833
|
+
exports.decodeF64 = decodeF64;
|
|
18834
|
+
exports.DOUBLE_PRECISION_MANTISSA = exports.SINGLE_PRECISION_MANTISSA = exports.NUMBER_OF_BYTE_F64 = exports.NUMBER_OF_BYTE_F32 = void 0;
|
|
18835
18835
|
var _ieee = require_index_cjs();
|
|
18836
18836
|
var NUMBER_OF_BYTE_F32 = 4;
|
|
18837
|
-
exports
|
|
18837
|
+
exports.NUMBER_OF_BYTE_F32 = NUMBER_OF_BYTE_F32;
|
|
18838
18838
|
var NUMBER_OF_BYTE_F64 = 8;
|
|
18839
|
-
exports
|
|
18839
|
+
exports.NUMBER_OF_BYTE_F64 = NUMBER_OF_BYTE_F64;
|
|
18840
18840
|
var SINGLE_PRECISION_MANTISSA = 23;
|
|
18841
|
-
exports
|
|
18841
|
+
exports.SINGLE_PRECISION_MANTISSA = SINGLE_PRECISION_MANTISSA;
|
|
18842
18842
|
var DOUBLE_PRECISION_MANTISSA = 52;
|
|
18843
|
-
exports
|
|
18843
|
+
exports.DOUBLE_PRECISION_MANTISSA = DOUBLE_PRECISION_MANTISSA;
|
|
18844
18844
|
function encodeF32(v$3) {
|
|
18845
18845
|
var buffer = [];
|
|
18846
18846
|
(0, _ieee.write)(buffer, v$3, 0, true, SINGLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F32);
|
|
@@ -18860,10 +18860,10 @@ var require_lib2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ieee754@1.14.
|
|
|
18860
18860
|
return (0, _ieee.read)(buffer, 0, true, DOUBLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F64);
|
|
18861
18861
|
}
|
|
18862
18862
|
} });
|
|
18863
|
-
var require_decoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/decoder.js"(exports
|
|
18863
|
+
var require_decoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/decoder.js"(exports) {
|
|
18864
18864
|
"use strict";
|
|
18865
|
-
Object.defineProperty(exports
|
|
18866
|
-
exports
|
|
18865
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18866
|
+
exports.decode = decode2;
|
|
18867
18867
|
function con(b$2) {
|
|
18868
18868
|
if ((b$2 & 192) === 128) return b$2 & 63;
|
|
18869
18869
|
else throw new Error("invalid UTF-8 encoding");
|
|
@@ -18910,10 +18910,10 @@ var require_decoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.
|
|
|
18910
18910
|
return result;
|
|
18911
18911
|
}
|
|
18912
18912
|
} });
|
|
18913
|
-
var require_encoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/encoder.js"(exports
|
|
18913
|
+
var require_encoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/encoder.js"(exports) {
|
|
18914
18914
|
"use strict";
|
|
18915
|
-
Object.defineProperty(exports
|
|
18916
|
-
exports
|
|
18915
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18916
|
+
exports.encode = encode$1;
|
|
18917
18917
|
function _toConsumableArray(arr) {
|
|
18918
18918
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
18919
18919
|
}
|
|
@@ -18976,16 +18976,16 @@ var require_encoder = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.
|
|
|
18976
18976
|
throw new Error("utf8");
|
|
18977
18977
|
}
|
|
18978
18978
|
} });
|
|
18979
|
-
var require_lib3 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/index.js"(exports
|
|
18979
|
+
var require_lib3 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/node_modules/@webassemblyjs/utf8/lib/index.js"(exports) {
|
|
18980
18980
|
"use strict";
|
|
18981
|
-
Object.defineProperty(exports
|
|
18982
|
-
Object.defineProperty(exports
|
|
18981
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18982
|
+
Object.defineProperty(exports, "decode", {
|
|
18983
18983
|
enumerable: true,
|
|
18984
18984
|
get: function get() {
|
|
18985
18985
|
return _decoder.decode;
|
|
18986
18986
|
}
|
|
18987
18987
|
});
|
|
18988
|
-
Object.defineProperty(exports
|
|
18988
|
+
Object.defineProperty(exports, "encode", {
|
|
18989
18989
|
enumerable: true,
|
|
18990
18990
|
get: function get() {
|
|
18991
18991
|
return _encoder.encode;
|
|
@@ -18994,58 +18994,58 @@ var require_lib3 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+utf8@1.14.1/n
|
|
|
18994
18994
|
var _decoder = require_decoder();
|
|
18995
18995
|
var _encoder = require_encoder();
|
|
18996
18996
|
} });
|
|
18997
|
-
var require_nodes = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/nodes.js"(exports
|
|
18997
|
+
var require_nodes = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/nodes.js"(exports) {
|
|
18998
18998
|
"use strict";
|
|
18999
|
-
Object.defineProperty(exports
|
|
19000
|
-
exports
|
|
19001
|
-
exports
|
|
19002
|
-
exports
|
|
19003
|
-
exports
|
|
19004
|
-
exports
|
|
19005
|
-
exports
|
|
19006
|
-
exports
|
|
19007
|
-
exports
|
|
19008
|
-
exports
|
|
19009
|
-
exports
|
|
19010
|
-
exports
|
|
19011
|
-
exports
|
|
19012
|
-
exports
|
|
19013
|
-
exports
|
|
19014
|
-
exports
|
|
19015
|
-
exports
|
|
19016
|
-
exports
|
|
19017
|
-
exports
|
|
19018
|
-
exports
|
|
19019
|
-
exports
|
|
19020
|
-
exports
|
|
19021
|
-
exports
|
|
19022
|
-
exports
|
|
19023
|
-
exports
|
|
19024
|
-
exports
|
|
19025
|
-
exports
|
|
19026
|
-
exports
|
|
19027
|
-
exports
|
|
19028
|
-
exports
|
|
19029
|
-
exports
|
|
19030
|
-
exports
|
|
19031
|
-
exports
|
|
19032
|
-
exports
|
|
19033
|
-
exports
|
|
19034
|
-
exports
|
|
19035
|
-
exports
|
|
19036
|
-
exports
|
|
19037
|
-
exports
|
|
19038
|
-
exports
|
|
19039
|
-
exports
|
|
19040
|
-
exports
|
|
19041
|
-
exports
|
|
19042
|
-
exports
|
|
19043
|
-
exports
|
|
19044
|
-
exports
|
|
19045
|
-
exports
|
|
19046
|
-
exports
|
|
19047
|
-
exports
|
|
19048
|
-
exports
|
|
18999
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19000
|
+
exports.module = _module;
|
|
19001
|
+
exports.moduleMetadata = moduleMetadata;
|
|
19002
|
+
exports.moduleNameMetadata = moduleNameMetadata;
|
|
19003
|
+
exports.functionNameMetadata = functionNameMetadata;
|
|
19004
|
+
exports.localNameMetadata = localNameMetadata;
|
|
19005
|
+
exports.binaryModule = binaryModule;
|
|
19006
|
+
exports.quoteModule = quoteModule;
|
|
19007
|
+
exports.sectionMetadata = sectionMetadata;
|
|
19008
|
+
exports.producersSectionMetadata = producersSectionMetadata;
|
|
19009
|
+
exports.producerMetadata = producerMetadata;
|
|
19010
|
+
exports.producerMetadataVersionedName = producerMetadataVersionedName;
|
|
19011
|
+
exports.loopInstruction = loopInstruction;
|
|
19012
|
+
exports.instr = instr;
|
|
19013
|
+
exports.ifInstruction = ifInstruction;
|
|
19014
|
+
exports.stringLiteral = stringLiteral;
|
|
19015
|
+
exports.numberLiteral = numberLiteral;
|
|
19016
|
+
exports.longNumberLiteral = longNumberLiteral;
|
|
19017
|
+
exports.floatLiteral = floatLiteral;
|
|
19018
|
+
exports.elem = elem;
|
|
19019
|
+
exports.indexInFuncSection = indexInFuncSection;
|
|
19020
|
+
exports.valtypeLiteral = valtypeLiteral;
|
|
19021
|
+
exports.typeInstruction = typeInstruction;
|
|
19022
|
+
exports.start = start;
|
|
19023
|
+
exports.globalType = globalType;
|
|
19024
|
+
exports.leadingComment = leadingComment;
|
|
19025
|
+
exports.blockComment = blockComment;
|
|
19026
|
+
exports.data = data$1;
|
|
19027
|
+
exports.global = global;
|
|
19028
|
+
exports.table = table;
|
|
19029
|
+
exports.memory = memory;
|
|
19030
|
+
exports.funcImportDescr = funcImportDescr;
|
|
19031
|
+
exports.moduleImport = moduleImport;
|
|
19032
|
+
exports.moduleExportDescr = moduleExportDescr;
|
|
19033
|
+
exports.moduleExport = moduleExport;
|
|
19034
|
+
exports.limit = limit;
|
|
19035
|
+
exports.signature = signature;
|
|
19036
|
+
exports.program = program;
|
|
19037
|
+
exports.identifier = identifier;
|
|
19038
|
+
exports.blockInstruction = blockInstruction;
|
|
19039
|
+
exports.callInstruction = callInstruction;
|
|
19040
|
+
exports.callIndirectInstruction = callIndirectInstruction;
|
|
19041
|
+
exports.byteArray = byteArray;
|
|
19042
|
+
exports.func = func;
|
|
19043
|
+
exports.internalBrUnless = internalBrUnless;
|
|
19044
|
+
exports.internalGoto = internalGoto;
|
|
19045
|
+
exports.internalCallExtern = internalCallExtern;
|
|
19046
|
+
exports.internalEndAndReturn = internalEndAndReturn;
|
|
19047
|
+
exports.assertInternalCallExtern = exports.assertInternalGoto = exports.assertInternalBrUnless = exports.assertFunc = exports.assertByteArray = exports.assertCallIndirectInstruction = exports.assertCallInstruction = exports.assertBlockInstruction = exports.assertIdentifier = exports.assertProgram = exports.assertSignature = exports.assertLimit = exports.assertModuleExport = exports.assertModuleExportDescr = exports.assertModuleImport = exports.assertFuncImportDescr = exports.assertMemory = exports.assertTable = exports.assertGlobal = exports.assertData = exports.assertBlockComment = exports.assertLeadingComment = exports.assertGlobalType = exports.assertStart = exports.assertTypeInstruction = exports.assertValtypeLiteral = exports.assertIndexInFuncSection = exports.assertElem = exports.assertFloatLiteral = exports.assertLongNumberLiteral = exports.assertNumberLiteral = exports.assertStringLiteral = exports.assertIfInstruction = exports.assertInstr = exports.assertLoopInstruction = exports.assertProducerMetadataVersionedName = exports.assertProducerMetadata = exports.assertProducersSectionMetadata = exports.assertSectionMetadata = exports.assertQuoteModule = exports.assertBinaryModule = exports.assertLocalNameMetadata = exports.assertFunctionNameMetadata = exports.assertModuleNameMetadata = exports.assertModuleMetadata = exports.assertModule = exports.isIntrinsic = exports.isImportDescr = exports.isNumericLiteral = exports.isExpression = exports.isInstruction = exports.isBlock = exports.isNode = exports.isInternalEndAndReturn = exports.isInternalCallExtern = exports.isInternalGoto = exports.isInternalBrUnless = exports.isFunc = exports.isByteArray = exports.isCallIndirectInstruction = exports.isCallInstruction = exports.isBlockInstruction = exports.isIdentifier = exports.isProgram = exports.isSignature = exports.isLimit = exports.isModuleExport = exports.isModuleExportDescr = exports.isModuleImport = exports.isFuncImportDescr = exports.isMemory = exports.isTable = exports.isGlobal = exports.isData = exports.isBlockComment = exports.isLeadingComment = exports.isGlobalType = exports.isStart = exports.isTypeInstruction = exports.isValtypeLiteral = exports.isIndexInFuncSection = exports.isElem = exports.isFloatLiteral = exports.isLongNumberLiteral = exports.isNumberLiteral = exports.isStringLiteral = exports.isIfInstruction = exports.isInstr = exports.isLoopInstruction = exports.isProducerMetadataVersionedName = exports.isProducerMetadata = exports.isProducersSectionMetadata = exports.isSectionMetadata = exports.isQuoteModule = exports.isBinaryModule = exports.isLocalNameMetadata = exports.isFunctionNameMetadata = exports.isModuleNameMetadata = exports.isModuleMetadata = exports.isModule = void 0;
|
|
19048
|
+
exports.nodeAndUnionTypes = exports.unionTypesMap = exports.assertInternalEndAndReturn = void 0;
|
|
19049
19049
|
function _typeof(obj) {
|
|
19050
19050
|
"@babel/helpers - typeof";
|
|
19051
19051
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") _typeof = function _typeof2(obj2) {
|
|
@@ -19517,168 +19517,168 @@ var require_nodes = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/n
|
|
|
19517
19517
|
return { type: "InternalEndAndReturn" };
|
|
19518
19518
|
}
|
|
19519
19519
|
var isModule = isTypeOf("Module");
|
|
19520
|
-
exports
|
|
19520
|
+
exports.isModule = isModule;
|
|
19521
19521
|
var isModuleMetadata = isTypeOf("ModuleMetadata");
|
|
19522
|
-
exports
|
|
19522
|
+
exports.isModuleMetadata = isModuleMetadata;
|
|
19523
19523
|
var isModuleNameMetadata = isTypeOf("ModuleNameMetadata");
|
|
19524
|
-
exports
|
|
19524
|
+
exports.isModuleNameMetadata = isModuleNameMetadata;
|
|
19525
19525
|
var isFunctionNameMetadata = isTypeOf("FunctionNameMetadata");
|
|
19526
|
-
exports
|
|
19526
|
+
exports.isFunctionNameMetadata = isFunctionNameMetadata;
|
|
19527
19527
|
var isLocalNameMetadata = isTypeOf("LocalNameMetadata");
|
|
19528
|
-
exports
|
|
19528
|
+
exports.isLocalNameMetadata = isLocalNameMetadata;
|
|
19529
19529
|
var isBinaryModule = isTypeOf("BinaryModule");
|
|
19530
|
-
exports
|
|
19530
|
+
exports.isBinaryModule = isBinaryModule;
|
|
19531
19531
|
var isQuoteModule = isTypeOf("QuoteModule");
|
|
19532
|
-
exports
|
|
19532
|
+
exports.isQuoteModule = isQuoteModule;
|
|
19533
19533
|
var isSectionMetadata = isTypeOf("SectionMetadata");
|
|
19534
|
-
exports
|
|
19534
|
+
exports.isSectionMetadata = isSectionMetadata;
|
|
19535
19535
|
var isProducersSectionMetadata = isTypeOf("ProducersSectionMetadata");
|
|
19536
|
-
exports
|
|
19536
|
+
exports.isProducersSectionMetadata = isProducersSectionMetadata;
|
|
19537
19537
|
var isProducerMetadata = isTypeOf("ProducerMetadata");
|
|
19538
|
-
exports
|
|
19538
|
+
exports.isProducerMetadata = isProducerMetadata;
|
|
19539
19539
|
var isProducerMetadataVersionedName = isTypeOf("ProducerMetadataVersionedName");
|
|
19540
|
-
exports
|
|
19540
|
+
exports.isProducerMetadataVersionedName = isProducerMetadataVersionedName;
|
|
19541
19541
|
var isLoopInstruction = isTypeOf("LoopInstruction");
|
|
19542
|
-
exports
|
|
19542
|
+
exports.isLoopInstruction = isLoopInstruction;
|
|
19543
19543
|
var isInstr = isTypeOf("Instr");
|
|
19544
|
-
exports
|
|
19544
|
+
exports.isInstr = isInstr;
|
|
19545
19545
|
var isIfInstruction = isTypeOf("IfInstruction");
|
|
19546
|
-
exports
|
|
19546
|
+
exports.isIfInstruction = isIfInstruction;
|
|
19547
19547
|
var isStringLiteral = isTypeOf("StringLiteral");
|
|
19548
|
-
exports
|
|
19548
|
+
exports.isStringLiteral = isStringLiteral;
|
|
19549
19549
|
var isNumberLiteral = isTypeOf("NumberLiteral");
|
|
19550
|
-
exports
|
|
19550
|
+
exports.isNumberLiteral = isNumberLiteral;
|
|
19551
19551
|
var isLongNumberLiteral = isTypeOf("LongNumberLiteral");
|
|
19552
|
-
exports
|
|
19552
|
+
exports.isLongNumberLiteral = isLongNumberLiteral;
|
|
19553
19553
|
var isFloatLiteral = isTypeOf("FloatLiteral");
|
|
19554
|
-
exports
|
|
19554
|
+
exports.isFloatLiteral = isFloatLiteral;
|
|
19555
19555
|
var isElem = isTypeOf("Elem");
|
|
19556
|
-
exports
|
|
19556
|
+
exports.isElem = isElem;
|
|
19557
19557
|
var isIndexInFuncSection = isTypeOf("IndexInFuncSection");
|
|
19558
|
-
exports
|
|
19558
|
+
exports.isIndexInFuncSection = isIndexInFuncSection;
|
|
19559
19559
|
var isValtypeLiteral = isTypeOf("ValtypeLiteral");
|
|
19560
|
-
exports
|
|
19560
|
+
exports.isValtypeLiteral = isValtypeLiteral;
|
|
19561
19561
|
var isTypeInstruction = isTypeOf("TypeInstruction");
|
|
19562
|
-
exports
|
|
19562
|
+
exports.isTypeInstruction = isTypeInstruction;
|
|
19563
19563
|
var isStart = isTypeOf("Start");
|
|
19564
|
-
exports
|
|
19564
|
+
exports.isStart = isStart;
|
|
19565
19565
|
var isGlobalType = isTypeOf("GlobalType");
|
|
19566
|
-
exports
|
|
19566
|
+
exports.isGlobalType = isGlobalType;
|
|
19567
19567
|
var isLeadingComment = isTypeOf("LeadingComment");
|
|
19568
|
-
exports
|
|
19568
|
+
exports.isLeadingComment = isLeadingComment;
|
|
19569
19569
|
var isBlockComment = isTypeOf("BlockComment");
|
|
19570
|
-
exports
|
|
19570
|
+
exports.isBlockComment = isBlockComment;
|
|
19571
19571
|
var isData = isTypeOf("Data");
|
|
19572
|
-
exports
|
|
19572
|
+
exports.isData = isData;
|
|
19573
19573
|
var isGlobal = isTypeOf("Global");
|
|
19574
|
-
exports
|
|
19574
|
+
exports.isGlobal = isGlobal;
|
|
19575
19575
|
var isTable = isTypeOf("Table");
|
|
19576
|
-
exports
|
|
19576
|
+
exports.isTable = isTable;
|
|
19577
19577
|
var isMemory = isTypeOf("Memory");
|
|
19578
|
-
exports
|
|
19578
|
+
exports.isMemory = isMemory;
|
|
19579
19579
|
var isFuncImportDescr = isTypeOf("FuncImportDescr");
|
|
19580
|
-
exports
|
|
19580
|
+
exports.isFuncImportDescr = isFuncImportDescr;
|
|
19581
19581
|
var isModuleImport = isTypeOf("ModuleImport");
|
|
19582
|
-
exports
|
|
19582
|
+
exports.isModuleImport = isModuleImport;
|
|
19583
19583
|
var isModuleExportDescr = isTypeOf("ModuleExportDescr");
|
|
19584
|
-
exports
|
|
19584
|
+
exports.isModuleExportDescr = isModuleExportDescr;
|
|
19585
19585
|
var isModuleExport = isTypeOf("ModuleExport");
|
|
19586
|
-
exports
|
|
19586
|
+
exports.isModuleExport = isModuleExport;
|
|
19587
19587
|
var isLimit = isTypeOf("Limit");
|
|
19588
|
-
exports
|
|
19588
|
+
exports.isLimit = isLimit;
|
|
19589
19589
|
var isSignature = isTypeOf("Signature");
|
|
19590
|
-
exports
|
|
19590
|
+
exports.isSignature = isSignature;
|
|
19591
19591
|
var isProgram = isTypeOf("Program");
|
|
19592
|
-
exports
|
|
19592
|
+
exports.isProgram = isProgram;
|
|
19593
19593
|
var isIdentifier = isTypeOf("Identifier");
|
|
19594
|
-
exports
|
|
19594
|
+
exports.isIdentifier = isIdentifier;
|
|
19595
19595
|
var isBlockInstruction = isTypeOf("BlockInstruction");
|
|
19596
|
-
exports
|
|
19596
|
+
exports.isBlockInstruction = isBlockInstruction;
|
|
19597
19597
|
var isCallInstruction = isTypeOf("CallInstruction");
|
|
19598
|
-
exports
|
|
19598
|
+
exports.isCallInstruction = isCallInstruction;
|
|
19599
19599
|
var isCallIndirectInstruction = isTypeOf("CallIndirectInstruction");
|
|
19600
|
-
exports
|
|
19600
|
+
exports.isCallIndirectInstruction = isCallIndirectInstruction;
|
|
19601
19601
|
var isByteArray = isTypeOf("ByteArray");
|
|
19602
|
-
exports
|
|
19602
|
+
exports.isByteArray = isByteArray;
|
|
19603
19603
|
var isFunc = isTypeOf("Func");
|
|
19604
|
-
exports
|
|
19604
|
+
exports.isFunc = isFunc;
|
|
19605
19605
|
var isInternalBrUnless = isTypeOf("InternalBrUnless");
|
|
19606
|
-
exports
|
|
19606
|
+
exports.isInternalBrUnless = isInternalBrUnless;
|
|
19607
19607
|
var isInternalGoto = isTypeOf("InternalGoto");
|
|
19608
|
-
exports
|
|
19608
|
+
exports.isInternalGoto = isInternalGoto;
|
|
19609
19609
|
var isInternalCallExtern = isTypeOf("InternalCallExtern");
|
|
19610
|
-
exports
|
|
19610
|
+
exports.isInternalCallExtern = isInternalCallExtern;
|
|
19611
19611
|
var isInternalEndAndReturn = isTypeOf("InternalEndAndReturn");
|
|
19612
|
-
exports
|
|
19613
|
-
exports
|
|
19612
|
+
exports.isInternalEndAndReturn = isInternalEndAndReturn;
|
|
19613
|
+
exports.isNode = function isNode2(node) {
|
|
19614
19614
|
return isModule(node) || isModuleMetadata(node) || isModuleNameMetadata(node) || isFunctionNameMetadata(node) || isLocalNameMetadata(node) || isBinaryModule(node) || isQuoteModule(node) || isSectionMetadata(node) || isProducersSectionMetadata(node) || isProducerMetadata(node) || isProducerMetadataVersionedName(node) || isLoopInstruction(node) || isInstr(node) || isIfInstruction(node) || isStringLiteral(node) || isNumberLiteral(node) || isLongNumberLiteral(node) || isFloatLiteral(node) || isElem(node) || isIndexInFuncSection(node) || isValtypeLiteral(node) || isTypeInstruction(node) || isStart(node) || isGlobalType(node) || isLeadingComment(node) || isBlockComment(node) || isData(node) || isGlobal(node) || isTable(node) || isMemory(node) || isFuncImportDescr(node) || isModuleImport(node) || isModuleExportDescr(node) || isModuleExport(node) || isLimit(node) || isSignature(node) || isProgram(node) || isIdentifier(node) || isBlockInstruction(node) || isCallInstruction(node) || isCallIndirectInstruction(node) || isByteArray(node) || isFunc(node) || isInternalBrUnless(node) || isInternalGoto(node) || isInternalCallExtern(node) || isInternalEndAndReturn(node);
|
|
19615
19615
|
};
|
|
19616
|
-
exports
|
|
19616
|
+
exports.isBlock = function isBlock2(node) {
|
|
19617
19617
|
return isLoopInstruction(node) || isBlockInstruction(node) || isFunc(node);
|
|
19618
19618
|
};
|
|
19619
|
-
exports
|
|
19619
|
+
exports.isInstruction = function isInstruction2(node) {
|
|
19620
19620
|
return isLoopInstruction(node) || isInstr(node) || isIfInstruction(node) || isTypeInstruction(node) || isBlockInstruction(node) || isCallInstruction(node) || isCallIndirectInstruction(node);
|
|
19621
19621
|
};
|
|
19622
|
-
exports
|
|
19622
|
+
exports.isExpression = function isExpression2(node) {
|
|
19623
19623
|
return isInstr(node) || isStringLiteral(node) || isNumberLiteral(node) || isLongNumberLiteral(node) || isFloatLiteral(node) || isValtypeLiteral(node) || isIdentifier(node);
|
|
19624
19624
|
};
|
|
19625
|
-
exports
|
|
19625
|
+
exports.isNumericLiteral = function isNumericLiteral2(node) {
|
|
19626
19626
|
return isNumberLiteral(node) || isLongNumberLiteral(node) || isFloatLiteral(node);
|
|
19627
19627
|
};
|
|
19628
|
-
exports
|
|
19628
|
+
exports.isImportDescr = function isImportDescr2(node) {
|
|
19629
19629
|
return isGlobalType(node) || isTable(node) || isMemory(node) || isFuncImportDescr(node);
|
|
19630
19630
|
};
|
|
19631
|
-
exports
|
|
19631
|
+
exports.isIntrinsic = function isIntrinsic2(node) {
|
|
19632
19632
|
return isInternalBrUnless(node) || isInternalGoto(node) || isInternalCallExtern(node) || isInternalEndAndReturn(node);
|
|
19633
19633
|
};
|
|
19634
|
-
exports
|
|
19635
|
-
exports
|
|
19636
|
-
exports
|
|
19637
|
-
exports
|
|
19638
|
-
exports
|
|
19639
|
-
exports
|
|
19640
|
-
exports
|
|
19641
|
-
exports
|
|
19642
|
-
exports
|
|
19643
|
-
exports
|
|
19644
|
-
exports
|
|
19645
|
-
exports
|
|
19646
|
-
exports
|
|
19647
|
-
exports
|
|
19648
|
-
exports
|
|
19649
|
-
exports
|
|
19650
|
-
exports
|
|
19651
|
-
exports
|
|
19652
|
-
exports
|
|
19653
|
-
exports
|
|
19654
|
-
exports
|
|
19655
|
-
exports
|
|
19656
|
-
exports
|
|
19657
|
-
exports
|
|
19658
|
-
exports
|
|
19659
|
-
exports
|
|
19660
|
-
exports
|
|
19661
|
-
exports
|
|
19662
|
-
exports
|
|
19663
|
-
exports
|
|
19664
|
-
exports
|
|
19665
|
-
exports
|
|
19666
|
-
exports
|
|
19667
|
-
exports
|
|
19668
|
-
exports
|
|
19669
|
-
exports
|
|
19670
|
-
exports
|
|
19671
|
-
exports
|
|
19672
|
-
exports
|
|
19673
|
-
exports
|
|
19674
|
-
exports
|
|
19675
|
-
exports
|
|
19676
|
-
exports
|
|
19677
|
-
exports
|
|
19678
|
-
exports
|
|
19679
|
-
exports
|
|
19680
|
-
exports
|
|
19681
|
-
exports
|
|
19634
|
+
exports.assertModule = assertTypeOf("Module");
|
|
19635
|
+
exports.assertModuleMetadata = assertTypeOf("ModuleMetadata");
|
|
19636
|
+
exports.assertModuleNameMetadata = assertTypeOf("ModuleNameMetadata");
|
|
19637
|
+
exports.assertFunctionNameMetadata = assertTypeOf("FunctionNameMetadata");
|
|
19638
|
+
exports.assertLocalNameMetadata = assertTypeOf("LocalNameMetadata");
|
|
19639
|
+
exports.assertBinaryModule = assertTypeOf("BinaryModule");
|
|
19640
|
+
exports.assertQuoteModule = assertTypeOf("QuoteModule");
|
|
19641
|
+
exports.assertSectionMetadata = assertTypeOf("SectionMetadata");
|
|
19642
|
+
exports.assertProducersSectionMetadata = assertTypeOf("ProducersSectionMetadata");
|
|
19643
|
+
exports.assertProducerMetadata = assertTypeOf("ProducerMetadata");
|
|
19644
|
+
exports.assertProducerMetadataVersionedName = assertTypeOf("ProducerMetadataVersionedName");
|
|
19645
|
+
exports.assertLoopInstruction = assertTypeOf("LoopInstruction");
|
|
19646
|
+
exports.assertInstr = assertTypeOf("Instr");
|
|
19647
|
+
exports.assertIfInstruction = assertTypeOf("IfInstruction");
|
|
19648
|
+
exports.assertStringLiteral = assertTypeOf("StringLiteral");
|
|
19649
|
+
exports.assertNumberLiteral = assertTypeOf("NumberLiteral");
|
|
19650
|
+
exports.assertLongNumberLiteral = assertTypeOf("LongNumberLiteral");
|
|
19651
|
+
exports.assertFloatLiteral = assertTypeOf("FloatLiteral");
|
|
19652
|
+
exports.assertElem = assertTypeOf("Elem");
|
|
19653
|
+
exports.assertIndexInFuncSection = assertTypeOf("IndexInFuncSection");
|
|
19654
|
+
exports.assertValtypeLiteral = assertTypeOf("ValtypeLiteral");
|
|
19655
|
+
exports.assertTypeInstruction = assertTypeOf("TypeInstruction");
|
|
19656
|
+
exports.assertStart = assertTypeOf("Start");
|
|
19657
|
+
exports.assertGlobalType = assertTypeOf("GlobalType");
|
|
19658
|
+
exports.assertLeadingComment = assertTypeOf("LeadingComment");
|
|
19659
|
+
exports.assertBlockComment = assertTypeOf("BlockComment");
|
|
19660
|
+
exports.assertData = assertTypeOf("Data");
|
|
19661
|
+
exports.assertGlobal = assertTypeOf("Global");
|
|
19662
|
+
exports.assertTable = assertTypeOf("Table");
|
|
19663
|
+
exports.assertMemory = assertTypeOf("Memory");
|
|
19664
|
+
exports.assertFuncImportDescr = assertTypeOf("FuncImportDescr");
|
|
19665
|
+
exports.assertModuleImport = assertTypeOf("ModuleImport");
|
|
19666
|
+
exports.assertModuleExportDescr = assertTypeOf("ModuleExportDescr");
|
|
19667
|
+
exports.assertModuleExport = assertTypeOf("ModuleExport");
|
|
19668
|
+
exports.assertLimit = assertTypeOf("Limit");
|
|
19669
|
+
exports.assertSignature = assertTypeOf("Signature");
|
|
19670
|
+
exports.assertProgram = assertTypeOf("Program");
|
|
19671
|
+
exports.assertIdentifier = assertTypeOf("Identifier");
|
|
19672
|
+
exports.assertBlockInstruction = assertTypeOf("BlockInstruction");
|
|
19673
|
+
exports.assertCallInstruction = assertTypeOf("CallInstruction");
|
|
19674
|
+
exports.assertCallIndirectInstruction = assertTypeOf("CallIndirectInstruction");
|
|
19675
|
+
exports.assertByteArray = assertTypeOf("ByteArray");
|
|
19676
|
+
exports.assertFunc = assertTypeOf("Func");
|
|
19677
|
+
exports.assertInternalBrUnless = assertTypeOf("InternalBrUnless");
|
|
19678
|
+
exports.assertInternalGoto = assertTypeOf("InternalGoto");
|
|
19679
|
+
exports.assertInternalCallExtern = assertTypeOf("InternalCallExtern");
|
|
19680
|
+
exports.assertInternalEndAndReturn = assertTypeOf("InternalEndAndReturn");
|
|
19681
|
+
exports.unionTypesMap = {
|
|
19682
19682
|
Module: ["Node"],
|
|
19683
19683
|
ModuleMetadata: ["Node"],
|
|
19684
19684
|
ModuleNameMetadata: ["Node"],
|
|
@@ -19751,7 +19751,7 @@ var require_nodes = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/n
|
|
|
19751
19751
|
InternalCallExtern: ["Node", "Intrinsic"],
|
|
19752
19752
|
InternalEndAndReturn: ["Node", "Intrinsic"]
|
|
19753
19753
|
};
|
|
19754
|
-
exports
|
|
19754
|
+
exports.nodeAndUnionTypes = [
|
|
19755
19755
|
"Module",
|
|
19756
19756
|
"ModuleMetadata",
|
|
19757
19757
|
"ModuleNameMetadata",
|
|
@@ -19808,8 +19808,8 @@ var require_nodes = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/n
|
|
|
19808
19808
|
"Intrinsic"
|
|
19809
19809
|
];
|
|
19810
19810
|
} });
|
|
19811
|
-
var require_long = __commonJS({ "node_modules/.pnpm/@xtuc+long@4.2.2/node_modules/@xtuc/long/src/long.js"(exports
|
|
19812
|
-
module
|
|
19811
|
+
var require_long = __commonJS({ "node_modules/.pnpm/@xtuc+long@4.2.2/node_modules/@xtuc/long/src/long.js"(exports, module) {
|
|
19812
|
+
module.exports = Long;
|
|
19813
19813
|
var wasm = null;
|
|
19814
19814
|
try {
|
|
19815
19815
|
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
|
@@ -20556,10 +20556,10 @@ var require_long = __commonJS({ "node_modules/.pnpm/@xtuc+long@4.2.2/node_module
|
|
|
20556
20556
|
return new Long(bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7], bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], unsigned);
|
|
20557
20557
|
};
|
|
20558
20558
|
} });
|
|
20559
|
-
var require_lib4 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+floating-point-hex-parser@1.13.2/node_modules/@webassemblyjs/floating-point-hex-parser/lib/index.js"(exports
|
|
20559
|
+
var require_lib4 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+floating-point-hex-parser@1.13.2/node_modules/@webassemblyjs/floating-point-hex-parser/lib/index.js"(exports) {
|
|
20560
20560
|
"use strict";
|
|
20561
|
-
Object.defineProperty(exports
|
|
20562
|
-
exports
|
|
20561
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20562
|
+
exports["default"] = parse$2;
|
|
20563
20563
|
function parse$2(input) {
|
|
20564
20564
|
input = input.toUpperCase();
|
|
20565
20565
|
var splitIndex = input.indexOf("P");
|
|
@@ -20587,16 +20587,16 @@ var require_lib4 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+floating-poin
|
|
|
20587
20587
|
return mantissa * (splitIndex !== -1 ? Math.pow(2, exponent) : 1);
|
|
20588
20588
|
}
|
|
20589
20589
|
} });
|
|
20590
|
-
var require_lib5 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-numbers@1.13.2/node_modules/@webassemblyjs/helper-numbers/lib/index.js"(exports
|
|
20590
|
+
var require_lib5 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-numbers@1.13.2/node_modules/@webassemblyjs/helper-numbers/lib/index.js"(exports) {
|
|
20591
20591
|
"use strict";
|
|
20592
|
-
Object.defineProperty(exports
|
|
20593
|
-
exports
|
|
20594
|
-
exports
|
|
20595
|
-
exports
|
|
20596
|
-
exports
|
|
20597
|
-
exports
|
|
20598
|
-
exports
|
|
20599
|
-
exports
|
|
20592
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20593
|
+
exports.parse32F = parse32F;
|
|
20594
|
+
exports.parse64F = parse64F;
|
|
20595
|
+
exports.parse32I = parse32I;
|
|
20596
|
+
exports.parseU32 = parseU32;
|
|
20597
|
+
exports.parse64I = parse64I;
|
|
20598
|
+
exports.isInfLiteral = isInfLiteral;
|
|
20599
|
+
exports.isNanLiteral = isNanLiteral;
|
|
20600
20600
|
var _long2 = _interopRequireDefault(require_long());
|
|
20601
20601
|
var _floatingPointHexParser = _interopRequireDefault(require_lib4());
|
|
20602
20602
|
var _helperApiError = require_lib();
|
|
@@ -20653,17 +20653,17 @@ var require_lib5 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-number
|
|
|
20653
20653
|
return sourceString.substring(0, 2).toUpperCase() === "0X" || sourceString.substring(0, 3).toUpperCase() === "-0X";
|
|
20654
20654
|
}
|
|
20655
20655
|
} });
|
|
20656
|
-
var require_node_helpers = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/node-helpers.js"(exports
|
|
20656
|
+
var require_node_helpers = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/node-helpers.js"(exports) {
|
|
20657
20657
|
"use strict";
|
|
20658
|
-
Object.defineProperty(exports
|
|
20659
|
-
exports
|
|
20660
|
-
exports
|
|
20661
|
-
exports
|
|
20662
|
-
exports
|
|
20663
|
-
exports
|
|
20664
|
-
exports
|
|
20665
|
-
exports
|
|
20666
|
-
exports
|
|
20658
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20659
|
+
exports.numberLiteralFromRaw = numberLiteralFromRaw;
|
|
20660
|
+
exports.instruction = instruction;
|
|
20661
|
+
exports.objectInstruction = objectInstruction;
|
|
20662
|
+
exports.withLoc = withLoc;
|
|
20663
|
+
exports.withRaw = withRaw;
|
|
20664
|
+
exports.funcParam = funcParam;
|
|
20665
|
+
exports.indexLiteral = indexLiteral;
|
|
20666
|
+
exports.memIndexLiteral = memIndexLiteral;
|
|
20667
20667
|
var _helperNumbers = require_lib5();
|
|
20668
20668
|
var _nodes = require_nodes();
|
|
20669
20669
|
function numberLiteralFromRaw(rawValue) {
|
|
@@ -20713,10 +20713,10 @@ var require_node_helpers = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1
|
|
|
20713
20713
|
return numberLiteralFromRaw(value, "u32");
|
|
20714
20714
|
}
|
|
20715
20715
|
} });
|
|
20716
|
-
var require_node_path = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/node-path.js"(exports
|
|
20716
|
+
var require_node_path = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/node-path.js"(exports) {
|
|
20717
20717
|
"use strict";
|
|
20718
|
-
Object.defineProperty(exports
|
|
20719
|
-
exports
|
|
20718
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20719
|
+
exports.createPath = createPath;
|
|
20720
20720
|
function ownKeys(object, enumerableOnly) {
|
|
20721
20721
|
var keys = Object.keys(object);
|
|
20722
20722
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -20828,10 +20828,10 @@ var require_node_path = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14
|
|
|
20828
20828
|
return path$2;
|
|
20829
20829
|
}
|
|
20830
20830
|
} });
|
|
20831
|
-
var require_traverse = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/traverse.js"(exports
|
|
20831
|
+
var require_traverse = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/traverse.js"(exports) {
|
|
20832
20832
|
"use strict";
|
|
20833
|
-
Object.defineProperty(exports
|
|
20834
|
-
exports
|
|
20833
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20834
|
+
exports.traverse = traverse;
|
|
20835
20835
|
var _nodePath = require_node_path();
|
|
20836
20836
|
var _nodes = require_nodes();
|
|
20837
20837
|
function walk$1(context, callback$1) {
|
|
@@ -20897,10 +20897,10 @@ var require_traverse = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.
|
|
|
20897
20897
|
});
|
|
20898
20898
|
}
|
|
20899
20899
|
} });
|
|
20900
|
-
var require_signatures = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/signatures.js"(exports
|
|
20900
|
+
var require_signatures = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/signatures.js"(exports) {
|
|
20901
20901
|
"use strict";
|
|
20902
|
-
Object.defineProperty(exports
|
|
20903
|
-
exports
|
|
20902
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20903
|
+
exports.signatures = void 0;
|
|
20904
20904
|
function sign(input, output) {
|
|
20905
20905
|
return [input, output];
|
|
20906
20906
|
}
|
|
@@ -21090,12 +21090,12 @@ var require_signatures = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.1
|
|
|
21090
21090
|
"f32.reinterpret/i32": sign([i32], [f32]),
|
|
21091
21091
|
"f64.reinterpret/i64": sign([i64], [f64])
|
|
21092
21092
|
};
|
|
21093
|
-
exports
|
|
21093
|
+
exports.signatures = Object.assign({}, controlInstructions, parametricInstructions, variableInstructions, memoryInstructions, numericInstructions);
|
|
21094
21094
|
} });
|
|
21095
|
-
var require_section = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-bytecode@1.14.1_patch_hash=339774429611ed34bc80bc6bbe80b2e7a85c850a1f7612f4e8d36151bf486101/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js"(exports
|
|
21095
|
+
var require_section = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-bytecode@1.14.1_patch_hash=339774429611ed34bc80bc6bbe80b2e7a85c850a1f7612f4e8d36151bf486101/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js"(exports) {
|
|
21096
21096
|
"use strict";
|
|
21097
|
-
Object.defineProperty(exports
|
|
21098
|
-
exports
|
|
21097
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21098
|
+
exports.getSectionForNode = getSectionForNode;
|
|
21099
21099
|
function getSectionForNode(n$2) {
|
|
21100
21100
|
switch (n$2.type) {
|
|
21101
21101
|
case "ModuleImport": return "import";
|
|
@@ -21112,16 +21112,16 @@ var require_section = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-was
|
|
|
21112
21112
|
}
|
|
21113
21113
|
}
|
|
21114
21114
|
} });
|
|
21115
|
-
var require_lib6 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-bytecode@1.14.1_patch_hash=339774429611ed34bc80bc6bbe80b2e7a85c850a1f7612f4e8d36151bf486101/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/index.js"(exports
|
|
21115
|
+
var require_lib6 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-bytecode@1.14.1_patch_hash=339774429611ed34bc80bc6bbe80b2e7a85c850a1f7612f4e8d36151bf486101/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/index.js"(exports) {
|
|
21116
21116
|
"use strict";
|
|
21117
|
-
Object.defineProperty(exports
|
|
21118
|
-
Object.defineProperty(exports
|
|
21117
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21118
|
+
Object.defineProperty(exports, "getSectionForNode", {
|
|
21119
21119
|
enumerable: true,
|
|
21120
21120
|
get: function get() {
|
|
21121
21121
|
return _section.getSectionForNode;
|
|
21122
21122
|
}
|
|
21123
21123
|
});
|
|
21124
|
-
exports
|
|
21124
|
+
exports["default"] = void 0;
|
|
21125
21125
|
var _section = require_section();
|
|
21126
21126
|
var illegalop = "illegal";
|
|
21127
21127
|
var magicModuleHeader = [
|
|
@@ -21510,7 +21510,7 @@ var require_lib6 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-b
|
|
|
21510
21510
|
219: illegalop,
|
|
21511
21511
|
220: illegalop
|
|
21512
21512
|
};
|
|
21513
|
-
exports
|
|
21513
|
+
exports["default"] = {
|
|
21514
21514
|
symbolsByByte,
|
|
21515
21515
|
sections,
|
|
21516
21516
|
magicModuleHeader,
|
|
@@ -21531,25 +21531,25 @@ var require_lib6 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+helper-wasm-b
|
|
|
21531
21531
|
})
|
|
21532
21532
|
};
|
|
21533
21533
|
} });
|
|
21534
|
-
var require_utils = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/utils.js"(exports
|
|
21534
|
+
var require_utils = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/utils.js"(exports) {
|
|
21535
21535
|
"use strict";
|
|
21536
|
-
Object.defineProperty(exports
|
|
21537
|
-
exports
|
|
21538
|
-
exports
|
|
21539
|
-
exports
|
|
21540
|
-
exports
|
|
21541
|
-
exports
|
|
21542
|
-
exports
|
|
21543
|
-
exports
|
|
21544
|
-
exports
|
|
21545
|
-
exports
|
|
21546
|
-
exports
|
|
21547
|
-
exports
|
|
21548
|
-
exports
|
|
21549
|
-
exports
|
|
21550
|
-
exports
|
|
21551
|
-
exports
|
|
21552
|
-
exports
|
|
21536
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21537
|
+
exports.isAnonymous = isAnonymous;
|
|
21538
|
+
exports.getSectionMetadata = getSectionMetadata;
|
|
21539
|
+
exports.getSectionMetadatas = getSectionMetadatas;
|
|
21540
|
+
exports.sortSectionMetadata = sortSectionMetadata;
|
|
21541
|
+
exports.orderedInsertNode = orderedInsertNode;
|
|
21542
|
+
exports.assertHasLoc = assertHasLoc;
|
|
21543
|
+
exports.getEndOfSection = getEndOfSection;
|
|
21544
|
+
exports.shiftLoc = shiftLoc;
|
|
21545
|
+
exports.shiftSection = shiftSection;
|
|
21546
|
+
exports.signatureForOpcode = signatureForOpcode;
|
|
21547
|
+
exports.getUniqueNameGenerator = getUniqueNameGenerator;
|
|
21548
|
+
exports.getStartByteOffset = getStartByteOffset;
|
|
21549
|
+
exports.getEndByteOffset = getEndByteOffset;
|
|
21550
|
+
exports.getFunctionBeginingByteOffset = getFunctionBeginingByteOffset;
|
|
21551
|
+
exports.getEndBlockByteOffset = getEndBlockByteOffset;
|
|
21552
|
+
exports.getStartBlockByteOffset = getStartBlockByteOffset;
|
|
21553
21553
|
var _signatures = require_signatures();
|
|
21554
21554
|
var _traverse = require_traverse();
|
|
21555
21555
|
var _helperWasmBytecode = _interopRequireWildcard(require_lib6());
|
|
@@ -21767,19 +21767,19 @@ var require_utils = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/n
|
|
|
21767
21767
|
return getStartByteOffset(fistInstruction);
|
|
21768
21768
|
}
|
|
21769
21769
|
} });
|
|
21770
|
-
var require_clone = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/clone.js"(exports
|
|
21770
|
+
var require_clone = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/clone.js"(exports) {
|
|
21771
21771
|
"use strict";
|
|
21772
|
-
Object.defineProperty(exports
|
|
21773
|
-
exports
|
|
21772
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21773
|
+
exports.cloneNode = cloneNode;
|
|
21774
21774
|
function cloneNode(n$2) {
|
|
21775
21775
|
return Object.assign({}, n$2);
|
|
21776
21776
|
}
|
|
21777
21777
|
} });
|
|
21778
|
-
var require_ast_module_to_module_context = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/transform/ast-module-to-module-context/index.js"(exports
|
|
21778
|
+
var require_ast_module_to_module_context = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/transform/ast-module-to-module-context/index.js"(exports) {
|
|
21779
21779
|
"use strict";
|
|
21780
|
-
Object.defineProperty(exports
|
|
21781
|
-
exports
|
|
21782
|
-
exports
|
|
21780
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21781
|
+
exports.moduleContextFromModuleAST = moduleContextFromModuleAST;
|
|
21782
|
+
exports.ModuleContext = void 0;
|
|
21783
21783
|
var _nodes = require_nodes();
|
|
21784
21784
|
function _classCallCheck(instance, Constructor) {
|
|
21785
21785
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -22072,11 +22072,11 @@ var require_ast_module_to_module_context = __commonJS({ "node_modules/.pnpm/@web
|
|
|
22072
22072
|
]);
|
|
22073
22073
|
return ModuleContext2;
|
|
22074
22074
|
})();
|
|
22075
|
-
exports
|
|
22075
|
+
exports.ModuleContext = ModuleContext;
|
|
22076
22076
|
} });
|
|
22077
|
-
var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/index.js"(exports
|
|
22077
|
+
var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/node_modules/@webassemblyjs/ast/lib/index.js"(exports) {
|
|
22078
22078
|
"use strict";
|
|
22079
|
-
Object.defineProperty(exports
|
|
22079
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22080
22080
|
var _exportNames = {
|
|
22081
22081
|
numberLiteralFromRaw: true,
|
|
22082
22082
|
withLoc: true,
|
|
@@ -22091,73 +22091,73 @@ var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/no
|
|
|
22091
22091
|
cloneNode: true,
|
|
22092
22092
|
moduleContextFromModuleAST: true
|
|
22093
22093
|
};
|
|
22094
|
-
Object.defineProperty(exports
|
|
22094
|
+
Object.defineProperty(exports, "numberLiteralFromRaw", {
|
|
22095
22095
|
enumerable: true,
|
|
22096
22096
|
get: function get() {
|
|
22097
22097
|
return _nodeHelpers.numberLiteralFromRaw;
|
|
22098
22098
|
}
|
|
22099
22099
|
});
|
|
22100
|
-
Object.defineProperty(exports
|
|
22100
|
+
Object.defineProperty(exports, "withLoc", {
|
|
22101
22101
|
enumerable: true,
|
|
22102
22102
|
get: function get() {
|
|
22103
22103
|
return _nodeHelpers.withLoc;
|
|
22104
22104
|
}
|
|
22105
22105
|
});
|
|
22106
|
-
Object.defineProperty(exports
|
|
22106
|
+
Object.defineProperty(exports, "withRaw", {
|
|
22107
22107
|
enumerable: true,
|
|
22108
22108
|
get: function get() {
|
|
22109
22109
|
return _nodeHelpers.withRaw;
|
|
22110
22110
|
}
|
|
22111
22111
|
});
|
|
22112
|
-
Object.defineProperty(exports
|
|
22112
|
+
Object.defineProperty(exports, "funcParam", {
|
|
22113
22113
|
enumerable: true,
|
|
22114
22114
|
get: function get() {
|
|
22115
22115
|
return _nodeHelpers.funcParam;
|
|
22116
22116
|
}
|
|
22117
22117
|
});
|
|
22118
|
-
Object.defineProperty(exports
|
|
22118
|
+
Object.defineProperty(exports, "indexLiteral", {
|
|
22119
22119
|
enumerable: true,
|
|
22120
22120
|
get: function get() {
|
|
22121
22121
|
return _nodeHelpers.indexLiteral;
|
|
22122
22122
|
}
|
|
22123
22123
|
});
|
|
22124
|
-
Object.defineProperty(exports
|
|
22124
|
+
Object.defineProperty(exports, "memIndexLiteral", {
|
|
22125
22125
|
enumerable: true,
|
|
22126
22126
|
get: function get() {
|
|
22127
22127
|
return _nodeHelpers.memIndexLiteral;
|
|
22128
22128
|
}
|
|
22129
22129
|
});
|
|
22130
|
-
Object.defineProperty(exports
|
|
22130
|
+
Object.defineProperty(exports, "instruction", {
|
|
22131
22131
|
enumerable: true,
|
|
22132
22132
|
get: function get() {
|
|
22133
22133
|
return _nodeHelpers.instruction;
|
|
22134
22134
|
}
|
|
22135
22135
|
});
|
|
22136
|
-
Object.defineProperty(exports
|
|
22136
|
+
Object.defineProperty(exports, "objectInstruction", {
|
|
22137
22137
|
enumerable: true,
|
|
22138
22138
|
get: function get() {
|
|
22139
22139
|
return _nodeHelpers.objectInstruction;
|
|
22140
22140
|
}
|
|
22141
22141
|
});
|
|
22142
|
-
Object.defineProperty(exports
|
|
22142
|
+
Object.defineProperty(exports, "traverse", {
|
|
22143
22143
|
enumerable: true,
|
|
22144
22144
|
get: function get() {
|
|
22145
22145
|
return _traverse.traverse;
|
|
22146
22146
|
}
|
|
22147
22147
|
});
|
|
22148
|
-
Object.defineProperty(exports
|
|
22148
|
+
Object.defineProperty(exports, "signatures", {
|
|
22149
22149
|
enumerable: true,
|
|
22150
22150
|
get: function get() {
|
|
22151
22151
|
return _signatures.signatures;
|
|
22152
22152
|
}
|
|
22153
22153
|
});
|
|
22154
|
-
Object.defineProperty(exports
|
|
22154
|
+
Object.defineProperty(exports, "cloneNode", {
|
|
22155
22155
|
enumerable: true,
|
|
22156
22156
|
get: function get() {
|
|
22157
22157
|
return _clone.cloneNode;
|
|
22158
22158
|
}
|
|
22159
22159
|
});
|
|
22160
|
-
Object.defineProperty(exports
|
|
22160
|
+
Object.defineProperty(exports, "moduleContextFromModuleAST", {
|
|
22161
22161
|
enumerable: true,
|
|
22162
22162
|
get: function get() {
|
|
22163
22163
|
return _astModuleToModuleContext.moduleContextFromModuleAST;
|
|
@@ -22167,8 +22167,8 @@ var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/no
|
|
|
22167
22167
|
Object.keys(_nodes).forEach(function(key) {
|
|
22168
22168
|
if (key === "default" || key === "__esModule") return;
|
|
22169
22169
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
22170
|
-
if (key in exports
|
|
22171
|
-
Object.defineProperty(exports
|
|
22170
|
+
if (key in exports && exports[key] === _nodes[key]) return;
|
|
22171
|
+
Object.defineProperty(exports, key, {
|
|
22172
22172
|
enumerable: true,
|
|
22173
22173
|
get: function get() {
|
|
22174
22174
|
return _nodes[key];
|
|
@@ -22182,8 +22182,8 @@ var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/no
|
|
|
22182
22182
|
Object.keys(_utils).forEach(function(key) {
|
|
22183
22183
|
if (key === "default" || key === "__esModule") return;
|
|
22184
22184
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
22185
|
-
if (key in exports
|
|
22186
|
-
Object.defineProperty(exports
|
|
22185
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
22186
|
+
Object.defineProperty(exports, key, {
|
|
22187
22187
|
enumerable: true,
|
|
22188
22188
|
get: function get() {
|
|
22189
22189
|
return _utils[key];
|
|
@@ -22193,13 +22193,13 @@ var require_lib7 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+ast@1.14.1/no
|
|
|
22193
22193
|
var _clone = require_clone();
|
|
22194
22194
|
var _astModuleToModuleContext = require_ast_module_to_module_context();
|
|
22195
22195
|
} });
|
|
22196
|
-
var require_bits = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/bits.js"(exports
|
|
22196
|
+
var require_bits = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/bits.js"(exports) {
|
|
22197
22197
|
"use strict";
|
|
22198
|
-
Object.defineProperty(exports
|
|
22199
|
-
exports
|
|
22200
|
-
exports
|
|
22201
|
-
exports
|
|
22202
|
-
exports
|
|
22198
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22199
|
+
exports.extract = extract;
|
|
22200
|
+
exports.inject = inject;
|
|
22201
|
+
exports.getSign = getSign;
|
|
22202
|
+
exports.highOrder = highOrder;
|
|
22203
22203
|
function extract(buffer, bitIndex, bitLength, defaultBit) {
|
|
22204
22204
|
if (bitLength < 0 || bitLength > 32) throw new Error("Bad value for bitLength.");
|
|
22205
22205
|
if (defaultBit === void 0) defaultBit = 0;
|
|
@@ -22255,16 +22255,16 @@ var require_bits = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1
|
|
|
22255
22255
|
return result;
|
|
22256
22256
|
}
|
|
22257
22257
|
} });
|
|
22258
|
-
var require_bufs = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/bufs.js"(exports
|
|
22258
|
+
var require_bufs = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/bufs.js"(exports) {
|
|
22259
22259
|
"use strict";
|
|
22260
|
-
Object.defineProperty(exports
|
|
22261
|
-
exports
|
|
22262
|
-
exports
|
|
22263
|
-
exports
|
|
22264
|
-
exports
|
|
22265
|
-
exports
|
|
22266
|
-
exports
|
|
22267
|
-
exports
|
|
22260
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22261
|
+
exports.alloc = alloc;
|
|
22262
|
+
exports.free = free;
|
|
22263
|
+
exports.resize = resize;
|
|
22264
|
+
exports.readInt = readInt;
|
|
22265
|
+
exports.readUInt = readUInt;
|
|
22266
|
+
exports.writeInt64 = writeInt64;
|
|
22267
|
+
exports.writeUInt64 = writeUInt64;
|
|
22268
22268
|
var bufPool = [];
|
|
22269
22269
|
var TEMP_BUF_MAXIMUM_LENGTH = 20;
|
|
22270
22270
|
var MIN_EXACT_INT64 = -0x8000000000000000;
|
|
@@ -22352,7 +22352,7 @@ var require_bufs = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1
|
|
|
22352
22352
|
buffer[7] = highWord >> 24 & 255;
|
|
22353
22353
|
}
|
|
22354
22354
|
} });
|
|
22355
|
-
var require_leb = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/leb.js"(exports
|
|
22355
|
+
var require_leb = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/leb.js"(exports) {
|
|
22356
22356
|
"use strict";
|
|
22357
22357
|
function _typeof(obj) {
|
|
22358
22358
|
"@babel/helpers - typeof";
|
|
@@ -22364,8 +22364,8 @@ var require_leb = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/
|
|
|
22364
22364
|
};
|
|
22365
22365
|
return _typeof(obj);
|
|
22366
22366
|
}
|
|
22367
|
-
Object.defineProperty(exports
|
|
22368
|
-
exports
|
|
22367
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22368
|
+
exports["default"] = void 0;
|
|
22369
22369
|
var _long = _interopRequireDefault(require_long());
|
|
22370
22370
|
var bits = _interopRequireWildcard(require_bits());
|
|
22371
22371
|
var bufs = _interopRequireWildcard(require_bufs());
|
|
@@ -22551,7 +22551,7 @@ var require_leb = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/
|
|
|
22551
22551
|
lossy: false
|
|
22552
22552
|
};
|
|
22553
22553
|
}
|
|
22554
|
-
exports
|
|
22554
|
+
exports["default"] = {
|
|
22555
22555
|
decodeInt32,
|
|
22556
22556
|
decodeInt64,
|
|
22557
22557
|
decodeIntBuffer,
|
|
@@ -22566,23 +22566,23 @@ var require_leb = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/
|
|
|
22566
22566
|
encodeUIntBuffer
|
|
22567
22567
|
};
|
|
22568
22568
|
} });
|
|
22569
|
-
var require_lib8 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/index.js"(exports
|
|
22569
|
+
var require_lib8 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1/node_modules/@webassemblyjs/leb128/lib/index.js"(exports) {
|
|
22570
22570
|
"use strict";
|
|
22571
|
-
Object.defineProperty(exports
|
|
22572
|
-
exports
|
|
22573
|
-
exports
|
|
22574
|
-
exports
|
|
22575
|
-
exports
|
|
22576
|
-
exports
|
|
22577
|
-
exports
|
|
22578
|
-
exports
|
|
22579
|
-
exports
|
|
22571
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22572
|
+
exports.decodeInt64 = decodeInt64;
|
|
22573
|
+
exports.decodeUInt64 = decodeUInt64;
|
|
22574
|
+
exports.decodeInt32 = decodeInt32;
|
|
22575
|
+
exports.decodeUInt32 = decodeUInt32;
|
|
22576
|
+
exports.encodeU32 = encodeU32;
|
|
22577
|
+
exports.encodeI32 = encodeI32;
|
|
22578
|
+
exports.encodeI64 = encodeI64;
|
|
22579
|
+
exports.MAX_NUMBER_OF_BYTE_U64 = exports.MAX_NUMBER_OF_BYTE_U32 = void 0;
|
|
22580
22580
|
var _leb = _interopRequireDefault(require_leb());
|
|
22581
22581
|
function _interopRequireDefault(obj) {
|
|
22582
22582
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
22583
22583
|
}
|
|
22584
|
-
exports
|
|
22585
|
-
exports
|
|
22584
|
+
exports.MAX_NUMBER_OF_BYTE_U32 = 5;
|
|
22585
|
+
exports.MAX_NUMBER_OF_BYTE_U64 = 10;
|
|
22586
22586
|
function decodeInt64(encodedBuffer, index) {
|
|
22587
22587
|
return _leb["default"].decodeInt64(encodedBuffer, index);
|
|
22588
22588
|
}
|
|
@@ -22605,7 +22605,7 @@ var require_lib8 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+leb128@1.14.1
|
|
|
22605
22605
|
return _leb["default"].encodeInt64(v$3);
|
|
22606
22606
|
}
|
|
22607
22607
|
} });
|
|
22608
|
-
var require_decoder2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-parser@1.14.1/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js"(exports
|
|
22608
|
+
var require_decoder2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-parser@1.14.1/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js"(exports) {
|
|
22609
22609
|
"use strict";
|
|
22610
22610
|
function _typeof(obj) {
|
|
22611
22611
|
"@babel/helpers - typeof";
|
|
@@ -22617,8 +22617,8 @@ var require_decoder2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-pars
|
|
|
22617
22617
|
};
|
|
22618
22618
|
return _typeof(obj);
|
|
22619
22619
|
}
|
|
22620
|
-
Object.defineProperty(exports
|
|
22621
|
-
exports
|
|
22620
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22621
|
+
exports.decode = decode2;
|
|
22622
22622
|
var _helperApiError = require_lib();
|
|
22623
22623
|
var ieee754 = _interopRequireWildcard(require_lib2());
|
|
22624
22624
|
var utf8 = _interopRequireWildcard(require_lib3());
|
|
@@ -23907,7 +23907,7 @@ var require_decoder2 = __commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-pars
|
|
|
23907
23907
|
return t$1.program([module2]);
|
|
23908
23908
|
}
|
|
23909
23909
|
} });
|
|
23910
|
-
var export_decode = __toESM(__commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-parser@1.14.1/node_modules/@webassemblyjs/wasm-parser/lib/index.js"(exports
|
|
23910
|
+
var export_decode = __toESM(__commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm-parser@1.14.1/node_modules/@webassemblyjs/wasm-parser/lib/index.js"(exports) {
|
|
23911
23911
|
"use strict";
|
|
23912
23912
|
function _typeof(obj) {
|
|
23913
23913
|
"@babel/helpers - typeof";
|
|
@@ -23919,8 +23919,8 @@ var export_decode = __toESM(__commonJS({ "node_modules/.pnpm/@webassemblyjs+wasm
|
|
|
23919
23919
|
};
|
|
23920
23920
|
return _typeof(obj);
|
|
23921
23921
|
}
|
|
23922
|
-
Object.defineProperty(exports
|
|
23923
|
-
exports
|
|
23922
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23923
|
+
exports.decode = decode2;
|
|
23924
23924
|
var decoder = _interopRequireWildcard(require_decoder2());
|
|
23925
23925
|
var t$1 = _interopRequireWildcard(require_lib7());
|
|
23926
23926
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -24125,12 +24125,12 @@ function parseWasm(source, opts = {}) {
|
|
|
24125
24125
|
}
|
|
24126
24126
|
const modules = [];
|
|
24127
24127
|
for (const body of ast.body) if (body.type === "Module") {
|
|
24128
|
-
const module
|
|
24128
|
+
const module = {
|
|
24129
24129
|
imports: [],
|
|
24130
24130
|
exports: []
|
|
24131
24131
|
};
|
|
24132
|
-
modules.push(module
|
|
24133
|
-
for (const field of body.fields) if (field.type === "ModuleImport") module
|
|
24132
|
+
modules.push(module);
|
|
24133
|
+
for (const field of body.fields) if (field.type === "ModuleImport") module.imports.push({
|
|
24134
24134
|
module: field.module,
|
|
24135
24135
|
name: field.name,
|
|
24136
24136
|
returnType: field.descr?.signature?.results?.[0],
|
|
@@ -24139,7 +24139,7 @@ function parseWasm(source, opts = {}) {
|
|
|
24139
24139
|
type: p$1.valtype
|
|
24140
24140
|
}))
|
|
24141
24141
|
});
|
|
24142
|
-
else if (field.type === "ModuleExport") module
|
|
24142
|
+
else if (field.type === "ModuleExport") module.exports.push({
|
|
24143
24143
|
name: field.name,
|
|
24144
24144
|
id: field.descr.id.value,
|
|
24145
24145
|
type: field.descr.exportType
|
|
@@ -24333,11 +24333,11 @@ function unwasm(opts) {
|
|
|
24333
24333
|
function parse$2(name, source) {
|
|
24334
24334
|
if (_parseCache[name]) return _parseCache[name];
|
|
24335
24335
|
const imports = Object.create(null);
|
|
24336
|
-
const exports
|
|
24336
|
+
const exports = [];
|
|
24337
24337
|
try {
|
|
24338
24338
|
const parsed = parseWasm(source, { name });
|
|
24339
24339
|
for (const mod of parsed.modules) {
|
|
24340
|
-
exports
|
|
24340
|
+
exports.push(...mod.exports.map((e) => e.name));
|
|
24341
24341
|
for (const imp of mod.imports) {
|
|
24342
24342
|
if (!imports[imp.module]) imports[imp.module] = [];
|
|
24343
24343
|
imports[imp.module].push(imp.name);
|
|
@@ -24348,7 +24348,7 @@ function unwasm(opts) {
|
|
|
24348
24348
|
}
|
|
24349
24349
|
_parseCache[name] = {
|
|
24350
24350
|
imports,
|
|
24351
|
-
exports
|
|
24351
|
+
exports
|
|
24352
24352
|
};
|
|
24353
24353
|
return _parseCache[name];
|
|
24354
24354
|
}
|
|
@@ -24827,9 +24827,9 @@ function toImport(id) {
|
|
|
24827
24827
|
function guessSubpath(path$2, conditions) {
|
|
24828
24828
|
const { dir, name, subpath } = NODE_MODULES_RE.exec(path$2)?.groups || {};
|
|
24829
24829
|
if (!dir || !name || !subpath) return;
|
|
24830
|
-
const exports
|
|
24831
|
-
if (!exports
|
|
24832
|
-
for (const e of flattenExports(exports
|
|
24830
|
+
const exports = getPkgJSON(join$2(dir, name) + "/")?.exports;
|
|
24831
|
+
if (!exports || typeof exports !== "object") return;
|
|
24832
|
+
for (const e of flattenExports(exports)) {
|
|
24833
24833
|
if (!conditions.includes(e.condition || "default")) continue;
|
|
24834
24834
|
if (e.fsPath === subpath) return join$2(name, e.subpath);
|
|
24835
24835
|
if (e.fsPath.includes("*")) {
|
|
@@ -24850,8 +24850,8 @@ function getPkgJSON(dir) {
|
|
|
24850
24850
|
return pkg;
|
|
24851
24851
|
} catch {}
|
|
24852
24852
|
}
|
|
24853
|
-
function flattenExports(exports
|
|
24854
|
-
return Object.entries(exports
|
|
24853
|
+
function flattenExports(exports = {}, parentSubpath = "./") {
|
|
24854
|
+
return Object.entries(exports).flatMap(([key, value]) => {
|
|
24855
24855
|
const [subpath, condition] = key.startsWith(".") ? [key.slice(1)] : [void 0, key];
|
|
24856
24856
|
const _subPath = join$2(parentSubpath, subpath || "");
|
|
24857
24857
|
if (typeof value === "string") return [{
|
|
@@ -24872,7 +24872,7 @@ async function baseBuildPlugins(nitro, base) {
|
|
|
24872
24872
|
nitro.vfs = virtualPlugin.api.modules;
|
|
24873
24873
|
plugins$1.push(virtualPlugin, virtualDeps());
|
|
24874
24874
|
if (nitro.options.imports) {
|
|
24875
|
-
const unimportPlugin = await import("../_libs/unimport.mjs").then((n) => n.
|
|
24875
|
+
const unimportPlugin = await import("../_libs/unimport.mjs").then((n) => n.t);
|
|
24876
24876
|
plugins$1.push(unimportPlugin.default.rollup(nitro.options.imports));
|
|
24877
24877
|
}
|
|
24878
24878
|
if (nitro.options.wasm !== false) plugins$1.push(unwasm(nitro.options.wasm || {}));
|
|
@@ -24928,4 +24928,4 @@ function oxc(options) {
|
|
|
24928
24928
|
}
|
|
24929
24929
|
|
|
24930
24930
|
//#endregion
|
|
24931
|
-
export {
|
|
24931
|
+
export { resolveModulePath as $, compressPublicAssets as A, T as B, decode as C, prepare as D, parse as E, Builder as F, findFile$1 as G, d as H, prettyPath as I, readGitConfig as J, findNearestFile$1 as K, resolveNitroPath as L, build as M, glob as N, copyPublicAssets as O, require_picomatch as P, N$4 as Q, writeFile$1 as R, MagicString as S, Parser as T, p as U, a as V, dist_exports$1 as W, h$2 as X, readPackageJSON$1 as Y, C$1 as Z, writeTypes as _, libChunkName as a, join$2 as at, getMagicString as b, createFilter as c, resolve$3 as ct, makeLegalIdentifier as d, resolveModuleURL as et, walk as f, writeDevBuildInfo as g, writeBuildInfo as h, getChunkName as i, isAbsolute$2 as it, src_default as j, scanUnprefixedPublicAssets as k, dataToEsm as l, getBuildInfo as m, baseBuildPlugins as n, dirname$2 as nt, baseBuildConfig as o, normalize$2 as ot, runParallel as p, findWorkspaceDir as q, NODE_MODULES_RE$1 as r, extname$4 as rt, attachScopes as s, relative$2 as st, oxc as t, basename$2 as tt, extractAssignedNames as u, dist_exports as v, encode as w, stripLiteral as x, createUnimport as y, K$1 as z };
|