@danielx/civet 0.10.5 → 0.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -2
- package/dist/babel-plugin.js +1 -1
- package/dist/babel-plugin.mjs +1 -1
- package/dist/browser.js +154 -114
- package/dist/civet +2 -1
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/dist/esbuild-plugin.js +1 -1
- package/dist/esm.mjs +1 -1
- package/dist/main.js +195 -155
- package/dist/main.mjs +194 -154
- package/dist/node-worker.mjs +1 -1
- package/dist/unplugin/astro.js +1 -1
- package/dist/unplugin/astro.mjs +1 -1
- package/dist/unplugin/esbuild.js +1 -1
- package/dist/unplugin/esbuild.mjs +1 -1
- package/dist/unplugin/farm.js +1 -1
- package/dist/unplugin/farm.mjs +1 -1
- package/dist/unplugin/rolldown.js +1 -1
- package/dist/unplugin/rolldown.mjs +1 -1
- package/dist/unplugin/rollup.js +1 -1
- package/dist/unplugin/rollup.mjs +1 -1
- package/dist/unplugin/rspack.js +1 -1
- package/dist/unplugin/rspack.mjs +1 -1
- package/dist/unplugin/unplugin.js +4 -4
- package/dist/unplugin/unplugin.mjs +4 -4
- package/dist/unplugin/vite.js +1 -1
- package/dist/unplugin/vite.mjs +1 -1
- package/dist/unplugin/webpack.js +1 -1
- package/dist/unplugin/webpack.mjs +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -400,7 +400,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
|
|
403
|
-
// unplugin-civet
|
|
403
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\browser.civet.jsx
|
|
404
404
|
var browser_civet_exports = {};
|
|
405
405
|
__export(browser_civet_exports, {
|
|
406
406
|
ParseError: () => import_lib2.ParseError,
|
|
@@ -422,7 +422,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
422
422
|
// source/parser.hera
|
|
423
423
|
var import_lib2 = __toESM(require_machine());
|
|
424
424
|
|
|
425
|
-
// unplugin-civet
|
|
425
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\lib.civet.jsx
|
|
426
426
|
var lib_civet_exports = {};
|
|
427
427
|
__export(lib_civet_exports, {
|
|
428
428
|
addPostfixStatement: () => addPostfixStatement,
|
|
@@ -433,6 +433,8 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
433
433
|
blockWithPrefix: () => blockWithPrefix,
|
|
434
434
|
braceBlock: () => braceBlock,
|
|
435
435
|
bracedBlock: () => bracedBlock,
|
|
436
|
+
convertArrowFunctionToMethod: () => convertArrowFunctionToMethod,
|
|
437
|
+
convertFunctionToMethod: () => convertFunctionToMethod,
|
|
436
438
|
convertNamedImportsToObject: () => convertNamedImportsToObject,
|
|
437
439
|
convertObjectToJSXAttributes: () => convertObjectToJSXAttributes,
|
|
438
440
|
convertWithClause: () => convertWithClause,
|
|
@@ -502,7 +504,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
502
504
|
wrapTypeInPromise: () => wrapTypeInPromise
|
|
503
505
|
});
|
|
504
506
|
|
|
505
|
-
// unplugin-civet
|
|
507
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\util.civet.jsx
|
|
506
508
|
function len(arr, length) {
|
|
507
509
|
return arr.length === length;
|
|
508
510
|
}
|
|
@@ -1238,7 +1240,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1238
1240
|
return result;
|
|
1239
1241
|
}
|
|
1240
1242
|
|
|
1241
|
-
// unplugin-civet
|
|
1243
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\traversal.civet.jsx
|
|
1242
1244
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1243
1245
|
return gatherRecursive(node, predicate, isFunction);
|
|
1244
1246
|
}
|
|
@@ -1312,7 +1314,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1312
1314
|
return predicate(node) && nodes.push(node), nodes;
|
|
1313
1315
|
}
|
|
1314
1316
|
|
|
1315
|
-
// unplugin-civet
|
|
1317
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\ref.civet.jsx
|
|
1316
1318
|
var range = (start, end) => {
|
|
1317
1319
|
let length = end - start;
|
|
1318
1320
|
if (length <= 0) return [];
|
|
@@ -1388,7 +1390,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1388
1390
|
}
|
|
1389
1391
|
}
|
|
1390
1392
|
|
|
1391
|
-
// unplugin-civet
|
|
1393
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\binding.civet.jsx
|
|
1392
1394
|
function adjustAtBindings(statements, asThis = !1) {
|
|
1393
1395
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1394
1396
|
let binding = ref1[i1], { ref } = binding;
|
|
@@ -1586,12 +1588,12 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1586
1588
|
return pattern;
|
|
1587
1589
|
}
|
|
1588
1590
|
|
|
1589
|
-
// unplugin-civet
|
|
1591
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\comptime.civet.jsx
|
|
1590
1592
|
init_browser_shim();
|
|
1591
1593
|
init_browser_shim();
|
|
1592
1594
|
init_browser_shim();
|
|
1593
1595
|
|
|
1594
|
-
// unplugin-civet
|
|
1596
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\helper.civet.jsx
|
|
1595
1597
|
var preludeVar = "var ";
|
|
1596
1598
|
function ts(children) {
|
|
1597
1599
|
return {
|
|
@@ -1927,7 +1929,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1927
1929
|
}
|
|
1928
1930
|
}
|
|
1929
1931
|
|
|
1930
|
-
// unplugin-civet
|
|
1932
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\generate.civet.jsx
|
|
1931
1933
|
function stringify(node) {
|
|
1932
1934
|
try {
|
|
1933
1935
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -1995,7 +1997,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1995
1997
|
}
|
|
1996
1998
|
}
|
|
1997
1999
|
|
|
1998
|
-
// unplugin-civet
|
|
2000
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\comptime.civet.jsx
|
|
1999
2001
|
function expressionizeComptime(statement) {
|
|
2000
2002
|
let { expressions } = statement.block, expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
2001
2003
|
return makeNode({
|
|
@@ -2229,7 +2231,7 @@ ${js}`
|
|
|
2229
2231
|
return recurse(value);
|
|
2230
2232
|
}
|
|
2231
2233
|
|
|
2232
|
-
// unplugin-civet
|
|
2234
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\function.civet.jsx
|
|
2233
2235
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2234
2236
|
function getTypeArguments(args) {
|
|
2235
2237
|
for (; typeof args == "object" && args != null && "args" in args; )
|
|
@@ -3258,7 +3260,7 @@ ${js}`
|
|
|
3258
3260
|
).length > 1 && (fn.ampersandBlock = !1), fn;
|
|
3259
3261
|
}
|
|
3260
3262
|
|
|
3261
|
-
// unplugin-civet
|
|
3263
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\block.civet.jsx
|
|
3262
3264
|
function blockWithPrefix(prefixStatements, block) {
|
|
3263
3265
|
if (prefixStatements && prefixStatements.length) {
|
|
3264
3266
|
let expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -3408,7 +3410,7 @@ ${js}`
|
|
|
3408
3410
|
};
|
|
3409
3411
|
}
|
|
3410
3412
|
|
|
3411
|
-
// unplugin-civet
|
|
3413
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\op.civet.jsx
|
|
3412
3414
|
var precedenceOrder = [
|
|
3413
3415
|
["||", "??"],
|
|
3414
3416
|
["^^"],
|
|
@@ -3602,7 +3604,7 @@ ${js}`
|
|
|
3602
3604
|
}
|
|
3603
3605
|
}
|
|
3604
3606
|
|
|
3605
|
-
// unplugin-civet
|
|
3607
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\pattern-matching.civet.jsx
|
|
3606
3608
|
function processPatternTest(lhs, patterns) {
|
|
3607
3609
|
let { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m"), conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
3608
3610
|
return makeLeftHandSideExpression(makeNode({
|
|
@@ -4006,7 +4008,7 @@ ${js}`
|
|
|
4006
4008
|
}
|
|
4007
4009
|
}
|
|
4008
4010
|
|
|
4009
|
-
// unplugin-civet
|
|
4011
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\declaration.civet.jsx
|
|
4010
4012
|
function len2(arr, length) {
|
|
4011
4013
|
return arr.length === length;
|
|
4012
4014
|
}
|
|
@@ -4415,7 +4417,7 @@ ${js}`
|
|
|
4415
4417
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
4416
4418
|
}
|
|
4417
4419
|
|
|
4418
|
-
// unplugin-civet
|
|
4420
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\unary.civet.jsx
|
|
4419
4421
|
function processUnaryExpression(pre, exp, post) {
|
|
4420
4422
|
if (!(pre.length || post))
|
|
4421
4423
|
return exp;
|
|
@@ -4526,7 +4528,7 @@ ${js}`
|
|
|
4526
4528
|
return processUnaryExpression(pre, args, post);
|
|
4527
4529
|
}
|
|
4528
4530
|
|
|
4529
|
-
// unplugin-civet
|
|
4531
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\pipe.civet.jsx
|
|
4530
4532
|
function constructInvocation(fn, arg) {
|
|
4531
4533
|
let expr = fn.expr;
|
|
4532
4534
|
for (; expr.type === "ParenthesizedExpression"; )
|
|
@@ -4687,7 +4689,7 @@ ${js}`
|
|
|
4687
4689
|
}
|
|
4688
4690
|
}
|
|
4689
4691
|
|
|
4690
|
-
// unplugin-civet
|
|
4692
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\for.civet.jsx
|
|
4691
4693
|
function processRangeExpression(start, ws1, range2, end) {
|
|
4692
4694
|
ws1 = [ws1, range2.children[0]];
|
|
4693
4695
|
let ws2 = range2.children[1], comma = { $loc: range2.$loc, token: "," }, ref;
|
|
@@ -5010,7 +5012,7 @@ ${js}`
|
|
|
5010
5012
|
};
|
|
5011
5013
|
}
|
|
5012
5014
|
|
|
5013
|
-
// unplugin-civet
|
|
5015
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\auto-dec.civet.jsx
|
|
5014
5016
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
5015
5017
|
function findDecs(statements) {
|
|
5016
5018
|
let declarationNames = gatherNodes(statements, ($) => $.type === "Declaration").flatMap((d) => d.names), globals = getConfig().globals || [];
|
|
@@ -5071,13 +5073,13 @@ ${js}`
|
|
|
5071
5073
|
return assignmentStatements2.length && concatAssign2(
|
|
5072
5074
|
assignmentStatements2,
|
|
5073
5075
|
findAssignments(assignmentStatements2.map((s) => s.children), decs2)
|
|
5074
|
-
), assignmentStatements2;
|
|
5076
|
+
), assignmentStatements2.filter(($4) => $4.parent?.type !== "CoffeeClassPublic");
|
|
5075
5077
|
}
|
|
5076
5078
|
pushVar ??= (name) => (varIds.push(name), decs.add(name));
|
|
5077
5079
|
let { expressions: statements } = block, decs = findDecs(statements);
|
|
5078
5080
|
scopes.push(decs);
|
|
5079
5081
|
let varIds = [];
|
|
5080
|
-
findAssignments(statements, scopes).flatMap(($
|
|
5082
|
+
findAssignments(statements, scopes).flatMap(($5) => $5?.names || []).filter((x, i, a) => {
|
|
5081
5083
|
if (!hasDec(x)) return a.indexOf(x) === i;
|
|
5082
5084
|
}).forEach(pushVar);
|
|
5083
5085
|
let fnNodes = gatherNodes(statements, isFunction), forNodes = gatherNodes(statements, (s) => s.type === "ForStatement"), blockNodes = new Set(gatherNodes(statements, (s) => s.type === "BlockStatement"));
|
|
@@ -5092,7 +5094,7 @@ ${js}`
|
|
|
5092
5094
|
scopes.pop();
|
|
5093
5095
|
}
|
|
5094
5096
|
|
|
5095
|
-
// unplugin-civet
|
|
5097
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\string.civet.jsx
|
|
5096
5098
|
function getIndentLevel(str, tab) {
|
|
5097
5099
|
if (tab != null && tab != 1) {
|
|
5098
5100
|
let tabs = str.match(/\t/g), numTabs = tabs ? tabs.length : 0;
|
|
@@ -5202,7 +5204,7 @@ ${js}`
|
|
|
5202
5204
|
return JSON.stringify(str);
|
|
5203
5205
|
}
|
|
5204
5206
|
|
|
5205
|
-
// unplugin-civet
|
|
5207
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\parser\lib.civet.jsx
|
|
5206
5208
|
var xor = (a, b) => a ? !b && a : b;
|
|
5207
5209
|
function addPostfixStatement(statement, ws, post) {
|
|
5208
5210
|
let expressions = [
|
|
@@ -5725,6 +5727,34 @@ ${js}`
|
|
|
5725
5727
|
block
|
|
5726
5728
|
};
|
|
5727
5729
|
}
|
|
5730
|
+
function convertFunctionToMethod(id, exp) {
|
|
5731
|
+
let fnTokenIndex = exp.children.findIndex(function(c) {
|
|
5732
|
+
return c?.token?.startsWith("function");
|
|
5733
|
+
}), children = exp.children.slice();
|
|
5734
|
+
return exp.generator ? children.splice(fnTokenIndex, 2, children[fnTokenIndex + 1], id) : children.splice(fnTokenIndex, 1, id), {
|
|
5735
|
+
...exp,
|
|
5736
|
+
type: "MethodDefinition",
|
|
5737
|
+
name: id.name,
|
|
5738
|
+
signature: { ...exp.signature, id, name: id.name },
|
|
5739
|
+
children
|
|
5740
|
+
};
|
|
5741
|
+
}
|
|
5742
|
+
function convertArrowFunctionToMethod(id, exp) {
|
|
5743
|
+
let block = { ...exp.block }, children = exp.children.filter(function(c) {
|
|
5744
|
+
return !(Array.isArray(c) && c[c.length - 1]?.token?.includes("=>"));
|
|
5745
|
+
}).map(function(c) {
|
|
5746
|
+
return c === exp.block ? block : c;
|
|
5747
|
+
});
|
|
5748
|
+
return children.unshift(id), exp = {
|
|
5749
|
+
...exp,
|
|
5750
|
+
type: "MethodDefinition",
|
|
5751
|
+
name: id.name,
|
|
5752
|
+
signature: { ...exp.signature, id, name: id.name },
|
|
5753
|
+
block,
|
|
5754
|
+
children,
|
|
5755
|
+
autoBind: !0
|
|
5756
|
+
}, block.parent = exp, braceBlock(block), exp;
|
|
5757
|
+
}
|
|
5728
5758
|
function convertNamedImportsToObject(node, pattern) {
|
|
5729
5759
|
let properties = node.specifiers.map((specifier) => {
|
|
5730
5760
|
if (specifier.ts)
|
|
@@ -6282,7 +6312,17 @@ ${js}`
|
|
|
6282
6312
|
})()
|
|
6283
6313
|
);
|
|
6284
6314
|
}
|
|
6285
|
-
let
|
|
6315
|
+
let public_static_function_assignments = expressions.filter(($15) => $15[1]?.type === "CoffeeClassPublic" && $15[1].assignment?.expression?.type === "FunctionExpression").map(($16) => $16[1].assignment);
|
|
6316
|
+
for (let public_static_function_assignment of public_static_function_assignments) {
|
|
6317
|
+
let id = public_static_function_assignment.lhs[0][1];
|
|
6318
|
+
replaceNode(public_static_function_assignment, convertFunctionToMethod(id, public_static_function_assignment.expression));
|
|
6319
|
+
}
|
|
6320
|
+
let public_static_arrow_function_assignments = expressions.filter(($17) => $17[1]?.type === "CoffeeClassPublic" && $17[1].assignment?.expression?.type === "ArrowFunction").map(($18) => $18[1].assignment);
|
|
6321
|
+
for (let public_static_arrow_function_assignment of public_static_arrow_function_assignments) {
|
|
6322
|
+
let id = public_static_arrow_function_assignment.lhs[0][1];
|
|
6323
|
+
replaceNode(public_static_arrow_function_assignment, convertArrowFunctionToMethod(id, public_static_arrow_function_assignment.expression));
|
|
6324
|
+
}
|
|
6325
|
+
let privates = expressions.filter(($19) => $19[1]?.type === "CoffeeClassPrivate");
|
|
6286
6326
|
if (!privates.length)
|
|
6287
6327
|
continue;
|
|
6288
6328
|
let { parent } = ce;
|
|
@@ -6319,30 +6359,30 @@ ${js}`
|
|
|
6319
6359
|
root.expressions,
|
|
6320
6360
|
root.topLevelAwait,
|
|
6321
6361
|
root.topLevelYield ? "*" : void 0
|
|
6322
|
-
), statements = [["", rootIIFE]], root.children = root.children.map(($
|
|
6362
|
+
), statements = [["", rootIIFE]], root.children = root.children.map(($20) => $20 === root.expressions ? statements : $20), root.expressions = statements), hoistRefDecs(statements), processFunctions(statements, config2), config2.coffeeClasses && processCoffeeClasses(statements), statements.unshift(...extractPreludeFor(statements)), config2.autoLet ? createConstLetDecs(statements, [], "let") : config2.autoConst ? createConstLetDecs(statements, [], "const") : config2.autoVar && createVarDecs(root, []), config2.repl && processRepl(root, rootIIFE), processBlocks(statements), populateRefs(statements), adjustAtBindings(statements), getSync() && processComptime(statements);
|
|
6323
6363
|
}
|
|
6324
6364
|
async function processProgramAsync(root) {
|
|
6325
6365
|
let { expressions: statements } = root;
|
|
6326
6366
|
await processComptime(statements);
|
|
6327
6367
|
}
|
|
6328
6368
|
function processRepl(root, rootIIFE) {
|
|
6329
|
-
let topBlock = gatherRecursive(rootIIFE, ($
|
|
6330
|
-
for (let ref23 = gatherRecursiveWithinFunction(topBlock, ($
|
|
6369
|
+
let topBlock = gatherRecursive(rootIIFE, ($21) => $21.type === "BlockStatement")[0], i = 0;
|
|
6370
|
+
for (let ref23 = gatherRecursiveWithinFunction(topBlock, ($22) => $22.type === "Declaration"), i14 = 0, len11 = ref23.length; i14 < len11; i14++) {
|
|
6331
6371
|
let decl = ref23[i14];
|
|
6332
6372
|
decl.names?.length && (decl.parent === topBlock || decl.decl === "var") && (decl.children.shift(), decl.bindings[0]?.pattern?.type === "ObjectBindingPattern" && (decl.children.unshift("("), decl.children.push(")")), root.expressions.splice(i++, 0, ["", `var ${decl.names.join(",")}`, ";"]));
|
|
6333
6373
|
}
|
|
6334
|
-
for (let ref24 = gatherRecursive(topBlock, ($
|
|
6374
|
+
for (let ref24 = gatherRecursive(topBlock, ($23) => $23.type === "FunctionExpression"), i15 = 0, len12 = ref24.length; i15 < len12; i15++) {
|
|
6335
6375
|
let func = ref24[i15];
|
|
6336
6376
|
func.name && func.parent?.type === "BlockStatement" && (func.parent === topBlock ? (replaceNode(func, void 0), root.expressions.splice(i++, 0, ["", func]), func.parent = root) : (func.children.unshift(func.name, "="), root.expressions.splice(i++, 0, ["", `var ${func.name}`, ";"])));
|
|
6337
6377
|
}
|
|
6338
|
-
for (let ref25 = gatherRecursiveWithinFunction(topBlock, ($
|
|
6378
|
+
for (let ref25 = gatherRecursiveWithinFunction(topBlock, ($24) => $24.type === "ClassExpression"), i16 = 0, len13 = ref25.length; i16 < len13; i16++) {
|
|
6339
6379
|
let classExp = ref25[i16], m8;
|
|
6340
6380
|
(classExp.name && classExp.parent === topBlock || (m8 = classExp.parent, typeof m8 == "object" && m8 != null && "type" in m8 && m8.type === "ReturnStatement" && "parent" in m8 && m8.parent === topBlock)) && (classExp.children.unshift(classExp.name, "="), root.expressions.splice(i++, 0, ["", `var ${classExp.name}`, ";"]));
|
|
6341
6381
|
}
|
|
6342
6382
|
}
|
|
6343
6383
|
function processPlaceholders(statements) {
|
|
6344
6384
|
let placeholderMap = /* @__PURE__ */ new Map(), liftedIfs = /* @__PURE__ */ new Set();
|
|
6345
|
-
for (let ref26 = gatherRecursiveAll(statements, ($
|
|
6385
|
+
for (let ref26 = gatherRecursiveAll(statements, ($25) => $25.type === "Placeholder"), i17 = 0, len14 = ref26.length; i17 < len14; i17++) {
|
|
6346
6386
|
let exp = ref26[i17], ancestor;
|
|
6347
6387
|
if (exp.subtype === ".") {
|
|
6348
6388
|
({ ancestor } = findAncestor(
|
|
@@ -7369,7 +7409,7 @@ ${js}`
|
|
|
7369
7409
|
SameLineOrIndentedFurther,
|
|
7370
7410
|
Dedented,
|
|
7371
7411
|
PushExtraIndent1
|
|
7372
|
-
}, $L0 = (0, import_lib2.$L)(""), $L1 = (0, import_lib2.$L)("{"), $L2 = (0, import_lib2.$L)("/ "), $L3 = (0, import_lib2.$L)("="), $L4 = (0, import_lib2.$L)("("), $L5 = (0, import_lib2.$L)("... "), $L6 = (0, import_lib2.$L)("?"), $L7 = (0, import_lib2.$L)("."), $L8 = (0, import_lib2.$L)("tuple"), $L9 = (0, import_lib2.$L)("++"), $L10 = (0, import_lib2.$L)("--"), $L11 = (0, import_lib2.$L)("\u29FA"), $L12 = (0, import_lib2.$L)("\u2014"), $L13 = (0, import_lib2.$L)("=>"), $L14 = (0, import_lib2.$L)("\u21D2"), $L15 = (0, import_lib2.$L)("import"), $L16 = (0, import_lib2.$L)(":"), $L17 = (0, import_lib2.$L)(" "), $L18 = (0, import_lib2.$L)("<"), $L19 = (0, import_lib2.$L)("implements"), $L20 = (0, import_lib2.$L)("<:"), $L21 = (0, import_lib2.$L)("^"), $L22 = (0, import_lib2.$L)("<?"), $L23 = (0, import_lib2.$L)("-"), $L24 = (0, import_lib2.$L)("import.meta"), $L25 = (0, import_lib2.$L)("return.value"), $L26 = (0, import_lib2.$L)(","), $L27 = (0, import_lib2.$L)("tighter"), $L28 = (0, import_lib2.$L)("looser"), $L29 = (0, import_lib2.$L)("same"), $L30 = (0, import_lib2.$L)("left"), $L31 = (0, import_lib2.$L)("right"), $L32 = (0, import_lib2.$L)("non"), $L33 = (0, import_lib2.$L)("relational"), $L34 = (0, import_lib2.$L)("arguments"), $L35 = (0, import_lib2.$L)("->"), $L36 = (0, import_lib2.$L)("\u2192"), $L37 = (0, import_lib2.$L)("}"), $L38 = (0, import_lib2.$L)("null"), $L39 = (0, import_lib2.$L)("true"), $L40 = (0, import_lib2.$L)("false"), $L41 = (0, import_lib2.$L)("yes"), $L42 = (0, import_lib2.$L)("on"), $L43 = (0, import_lib2.$L)("no"), $L44 = (0, import_lib2.$L)("off"), $L45 = (0, import_lib2.$L)(">"), $L46 = (0, import_lib2.$L)("]"), $L47 = (0, import_lib2.$L)("\u2022"), $L48 = (0, import_lib2.$L)("//"), $L49 = (0, import_lib2.$L)("**="), $L50 = (0, import_lib2.$L)("*="), $L51 = (0, import_lib2.$L)("%/"), $L52 = (0, import_lib2.$L)("\xF7"), $L53 = (0, import_lib2.$L)("%%"), $L54 = (0, import_lib2.$L)("/="), $L55 = (0, import_lib2.$L)("%="), $L56 = (0, import_lib2.$L)("+="), $L57 = (0, import_lib2.$L)("-="), $L58 = (0, import_lib2.$L)("<<="), $L59 = (0, import_lib2.$L)("\u226A="), $L60 = (0, import_lib2.$L)(">>>="), $L61 = (0, import_lib2.$L)("\u22D9="), $L62 = (0, import_lib2.$L)(">>="), $L63 = (0, import_lib2.$L)("\u226B="), $L64 = (0, import_lib2.$L)("&&="), $L65 = (0, import_lib2.$L)("&="), $L66 = (0, import_lib2.$L)("^="), $L67 = (0, import_lib2.$L)("||="), $L68 = (0, import_lib2.$L)("\u2016="), $L69 = (0, import_lib2.$L)("|="), $L70 = (0, import_lib2.$L)("??="), $L71 = (0, import_lib2.$L)("\u2047="), $L72 = (0, import_lib2.$L)("?="), $L73 = (0, import_lib2.$L)("and="), $L74 = (0, import_lib2.$L)("or="), $L75 = (0, import_lib2.$L)("*"), $L76 = (0, import_lib2.$L)("**"), $L77 = (0, import_lib2.$L)("/"), $L78 = (0, import_lib2.$L)("%"), $L79 = (0, import_lib2.$L)("+"), $L80 = (0, import_lib2.$L)("<="), $L81 = (0, import_lib2.$L)("\u2264"), $L82 = (0, import_lib2.$L)(">="), $L83 = (0, import_lib2.$L)("\u2265"), $L84 = (0, import_lib2.$L)("!<?"), $L85 = (0, import_lib2.$L)("<<"), $L86 = (0, import_lib2.$L)("\u226A"), $L87 = (0, import_lib2.$L)(">>>"), $L88 = (0, import_lib2.$L)("\u22D9"), $L89 = (0, import_lib2.$L)(">>"), $L90 = (0, import_lib2.$L)("\u226B"), $L91 = (0, import_lib2.$L)("!=="), $L92 = (0, import_lib2.$L)("\u2262"), $L93 = (0, import_lib2.$L)("!="), $L94 = (0, import_lib2.$L)("\u2260"), $L95 = (0, import_lib2.$L)("isnt"), $L96 = (0, import_lib2.$L)("==="), $L97 = (0, import_lib2.$L)("\u2263"), $L98 = (0, import_lib2.$L)("\u2A76"), $L99 = (0, import_lib2.$L)("=="), $L100 = (0, import_lib2.$L)("\u2261"), $L101 = (0, import_lib2.$L)("\u2A75"), $L102 = (0, import_lib2.$L)("and"), $L103 = (0, import_lib2.$L)("&&"), $L104 = (0, import_lib2.$L)("or"), $L105 = (0, import_lib2.$L)("||"), $L106 = (0, import_lib2.$L)("\u2016"), $L107 = (0, import_lib2.$L)("^^"), $L108 = (0, import_lib2.$L)("xor"), $L109 = (0, import_lib2.$L)("xnor"), $L110 = (0, import_lib2.$L)("??"), $L111 = (0, import_lib2.$L)("\u2047"), $L112 = (0, import_lib2.$L)("instanceof"), $L113 = (0, import_lib2.$L)("\u2208"), $L114 = (0, import_lib2.$L)("\u220B"), $L115 = (0, import_lib2.$L)("\u220C"), $L116 = (0, import_lib2.$L)("\u2209"), $L117 = (0, import_lib2.$L)("&"), $L118 = (0, import_lib2.$L)("|"), $L119 = (0, import_lib2.$L)(";"), $L120 = (0, import_lib2.$L)("some"), $L121 = (0, import_lib2.$L)("every"), $L122 = (0, import_lib2.$L)("count"), $L123 = (0, import_lib2.$L)("first"), $L124 = (0, import_lib2.$L)("sum"), $L125 = (0, import_lib2.$L)("product"), $L126 = (0, import_lib2.$L)("min"), $L127 = (0, import_lib2.$L)("max"), $L128 = (0, import_lib2.$L)("join"), $L129 = (0, import_lib2.$L)("concat"), $L130 = (0, import_lib2.$L)("break"), $L131 = (0, import_lib2.$L)("continue"), $L132 = (0, import_lib2.$L)("debugger"), $L133 = (0, import_lib2.$L)("require"), $L134 = (0, import_lib2.$L)("with"), $L135 = (0, import_lib2.$L)("assert"), $L136 = (0, import_lib2.$L)(":="), $L137 = (0, import_lib2.$L)("\u2254"), $L138 = (0, import_lib2.$L)(".="), $L139 = (0, import_lib2.$L)("::="), $L140 = (0, import_lib2.$L)("/*"), $L141 = (0, import_lib2.$L)("*/"), $L142 = (0, import_lib2.$L)("\\"), $L143 = (0, import_lib2.$L)(")"), $L144 = (0, import_lib2.$L)("abstract"), $L145 = (0, import_lib2.$L)("as"), $L146 = (0, import_lib2.$L)("@"), $L147 = (0, import_lib2.$L)("@@"), $L148 = (0, import_lib2.$L)("async"), $L149 = (0, import_lib2.$L)("await"), $L150 = (0, import_lib2.$L)("`"), $L151 = (0, import_lib2.$L)("by"), $L152 = (0, import_lib2.$L)("case"), $L153 = (0, import_lib2.$L)("catch"), $L154 = (0, import_lib2.$L)("class"), $L155 = (0, import_lib2.$L)("#{"), $L156 = (0, import_lib2.$L)("comptime"), $L157 = (0, import_lib2.$L)("declare"), $L158 = (0, import_lib2.$L)("default"), $L159 = (0, import_lib2.$L)("delete"), $L160 = (0, import_lib2.$L)("do"), $L161 = (0, import_lib2.$L)(".."), $L162 = (0, import_lib2.$L)("\u2025"), $L163 = (0, import_lib2.$L)("..."), $L164 = (0, import_lib2.$L)("\u2026"), $L165 = (0, import_lib2.$L)("::"), $L166 = (0, import_lib2.$L)('"'), $L167 = (0, import_lib2.$L)("each"), $L168 = (0, import_lib2.$L)("else"), $L169 = (0, import_lib2.$L)("!"), $L170 = (0, import_lib2.$L)("export"), $L171 = (0, import_lib2.$L)("extends"), $L172 = (0, import_lib2.$L)("finally"), $L173 = (0, import_lib2.$L)("for"), $L174 = (0, import_lib2.$L)("from"), $L175 = (0, import_lib2.$L)("function"), $L176 = (0, import_lib2.$L)("get"), $L177 = (0, import_lib2.$L)("set"), $L178 = (0, import_lib2.$L)("#"), $L179 = (0, import_lib2.$L)("if"), $L180 = (0, import_lib2.$L)("in"), $L181 = (0, import_lib2.$L)("infer"), $L182 = (0, import_lib2.$L)("let"), $L183 = (0, import_lib2.$L)("const"), $L184 = (0, import_lib2.$L)("is"), $L185 = (0, import_lib2.$L)("var"), $L186 = (0, import_lib2.$L)("like"), $L187 = (0, import_lib2.$L)("loop"), $L188 = (0, import_lib2.$L)("new"), $L189 = (0, import_lib2.$L)("not"), $L190 = (0, import_lib2.$L)("of"), $L191 = (0, import_lib2.$L)("["), $L192 = (0, import_lib2.$L)("operator"), $L193 = (0, import_lib2.$L)("override"), $L194 = (0, import_lib2.$L)("own"), $L195 = (0, import_lib2.$L)("public"), $L196 = (0, import_lib2.$L)("private"), $L197 = (0, import_lib2.$L)("protected"), $L198 = (0, import_lib2.$L)("||>"), $L199 = (0, import_lib2.$L)("|\u25B7"), $L200 = (0, import_lib2.$L)("|>="), $L201 = (0, import_lib2.$L)("\u25B7="), $L202 = (0, import_lib2.$L)("|>"), $L203 = (0, import_lib2.$L)("\u25B7"), $L204 = (0, import_lib2.$L)("readonly"), $L205 = (0, import_lib2.$L)("return"), $L206 = (0, import_lib2.$L)("satisfies"), $L207 = (0, import_lib2.$L)("'"), $L208 = (0, import_lib2.$L)("static"), $L209 = (0, import_lib2.$L)("${"), $L210 = (0, import_lib2.$L)("super"), $L211 = (0, import_lib2.$L)("switch"), $L212 = (0, import_lib2.$L)("target"), $L213 = (0, import_lib2.$L)("then"), $L214 = (0, import_lib2.$L)("this"), $L215 = (0, import_lib2.$L)("throw"), $L216 = (0, import_lib2.$L)('"""'), $L217 = (0, import_lib2.$L)("'''"), $L218 = (0, import_lib2.$L)("///"), $L219 = (0, import_lib2.$L)("```"), $L220 = (0, import_lib2.$L)("try"), $L221 = (0, import_lib2.$L)("typeof"), $L222 = (0, import_lib2.$L)("undefined"), $L223 = (0, import_lib2.$L)("unless"), $L224 = (0, import_lib2.$L)("until"), $L225 = (0, import_lib2.$L)("using"), $L226 = (0, import_lib2.$L)("void"), $L227 = (0, import_lib2.$L)("when"), $L228 = (0, import_lib2.$L)("while"), $L229 = (0, import_lib2.$L)("yield"), $L230 = (0, import_lib2.$L)("/>"), $L231 = (0, import_lib2.$L)("</"), $L232 = (0, import_lib2.$L)("<>"), $L233 = (0, import_lib2.$L)("</>"), $L234 = (0, import_lib2.$L)("<!--"), $L235 = (0, import_lib2.$L)("-->"), $L236 = (0, import_lib2.$L)("type"), $L237 = (0, import_lib2.$L)("enum"), $L238 = (0, import_lib2.$L)("interface"), $L239 = (0, import_lib2.$L)("global"), $L240 = (0, import_lib2.$L)("module"), $L241 = (0, import_lib2.$L)("namespace"), $L242 = (0, import_lib2.$L)("asserts"), $L243 = (0, import_lib2.$L)("keyof"), $L244 = (0, import_lib2.$L)("???"), $L245 = (0, import_lib2.$L)("unique"), $L246 = (0, import_lib2.$L)("symbol"), $L247 = (0, import_lib2.$L)("[]"), $L248 = (0, import_lib2.$L)("civet"), $R0 = (0, import_lib2.$R)(new RegExp("(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)", "suy")), $R1 = (0, import_lib2.$R)(new RegExp("&(?=\\s)", "suy")), $R2 = (0, import_lib2.$R)(new RegExp("(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R3 = (0, import_lib2.$R)(new RegExp("[0-9]", "suy")), $R4 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Start}|[_$0-9(\\[{])", "suy")), $R5 = (0, import_lib2.$R)(new RegExp("[ \\t]", "suy")), $R6 = (0, import_lib2.$R)(new RegExp("\\p{ID_Continue}|[\\u200C\\u200D$.#{=]", "suy")), $R7 = (0, import_lib2.$R)(new RegExp("[&=]", "suy")), $R8 = (0, import_lib2.$R)(new RegExp("(?=['\"`])", "suy")), $R9 = (0, import_lib2.$R)(new RegExp("(?=[\\/?])", "suy")), $R10 = (0, import_lib2.$R)(new RegExp("(?=[\\/\\[{?.!@#'\u2019:])", "suy")), $R11 = (0, import_lib2.$R)(new RegExp("%%?", "suy")), $R12 = (0, import_lib2.$R)(new RegExp("[.\\s]", "suy")), $R13 = (0, import_lib2.$R)(new RegExp("[)}]", "suy")), $R14 = (0, import_lib2.$R)(new RegExp("[+-]", "suy")), $R15 = (0, import_lib2.$R)(new RegExp("\\+\\+|--|\u29FA|\u2014|[\\+\\-&]\\S", "suy")), $R16 = (0, import_lib2.$R)(new RegExp(`(?=[0-9.'"tfyno])`, "suy")), $R17 = (0, import_lib2.$R)(new RegExp("(?=true|false|yes|no|on|off)", "suy")), $R18 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$])", "suy")), $R19 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy")), $R20 = (0, import_lib2.$R)(new RegExp("(?=\\[|\\s*[.\u2022\\/])", "suy")), $R21 = (0, import_lib2.$R)(new RegExp("([<>])(=?)|([\u2264\u2265])", "suy")), $R22 = (0, import_lib2.$R)(new RegExp("[ \\t]*", "suy")), $R23 = (0, import_lib2.$R)(new RegExp("[ \\t]+", "suy")), $R24 = (0, import_lib2.$R)(new RegExp("[!+-]?", "suy")), $R25 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R26 = (0, import_lib2.$R)(new RegExp("[=>]", "suy")), $R27 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$^\u226A\u226B\u22D9\u2264\u2265\u2208\u220B\u2209\u220C\u2263\u2261\u2262\u2260=\u2A76\u2A75\u2016\u2047&|*\\/!?%\xF7<>\u29FA+-])", "suy")), $R28 = (0, import_lib2.$R)(new RegExp("!\\^\\^?", "suy")), $R29 = (0, import_lib2.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy")), $R30 = (0, import_lib2.$R)(new RegExp("[:.]", "suy")), $R31 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy")), $R32 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy")), $R33 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy")), $R34 = (0, import_lib2.$R)(new RegExp('[^;"\\s=>]+', "suy")), $R35 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy")), $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy")), $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy")), $R38 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy")), $R39 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy")), $R40 = (0, import_lib2.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy")), $R41 = (0, import_lib2.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy")), $R42 = (0, import_lib2.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy")), $R43 = (0, import_lib2.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy")), $R44 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy")), $R45 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy")), $R46 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy")), $R47 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy")), $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy")), $R49 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy")), $R50 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy")), $R51 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy")), $R52 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy")), $R53 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy")), $R54 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy")), $R55 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy")), $R56 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy")), $R57 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy")), $R58 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy")), $R59 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy")), $R60 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy")), $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy")), $R62 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy")), $R63 = (0, import_lib2.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy")), $R64 = (0, import_lib2.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy")), $R65 = (0, import_lib2.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy")), $R66 = (0, import_lib2.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy")), $R67 = (0, import_lib2.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy")), $R68 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy")), $R69 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy")), $R70 = (0, import_lib2.$R)(new RegExp(".", "suy")), $R71 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy")), $R72 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy")), $R73 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy")), $R74 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy")), $R75 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy")), $R76 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy")), $R77 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue})", "suy")), $R78 = (0, import_lib2.$R)(new RegExp("[=:]", "suy")), $R79 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy")), $R80 = (0, import_lib2.$R)(new RegExp("\\s", "suy")), $R81 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy")), $R82 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R83 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy")), $R84 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy")), $R85 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy")), $R86 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy")), $R87 = (0, import_lib2.$R)(new RegExp("[<>]", "suy")), $R88 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy")), $R89 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy")), $R90 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy")), $R91 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy")), $R92 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy")), $R93 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy")), $R94 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R95 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy")), $R96 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy")), $R97 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy")), $R98 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy")), $R99 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy")), $R100 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy")), $R101 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy")), $R102 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy")), $R103 = (0, import_lib2.$R)(new RegExp("[^]*", "suy")), Program$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
7412
|
+
}, $L0 = (0, import_lib2.$L)(""), $L1 = (0, import_lib2.$L)("{"), $L2 = (0, import_lib2.$L)("/ "), $L3 = (0, import_lib2.$L)("="), $L4 = (0, import_lib2.$L)("("), $L5 = (0, import_lib2.$L)("... "), $L6 = (0, import_lib2.$L)("?"), $L7 = (0, import_lib2.$L)("."), $L8 = (0, import_lib2.$L)("tuple"), $L9 = (0, import_lib2.$L)("++"), $L10 = (0, import_lib2.$L)("--"), $L11 = (0, import_lib2.$L)("\u29FA"), $L12 = (0, import_lib2.$L)("\u2014"), $L13 = (0, import_lib2.$L)("=>"), $L14 = (0, import_lib2.$L)("\u21D2"), $L15 = (0, import_lib2.$L)("import"), $L16 = (0, import_lib2.$L)(":"), $L17 = (0, import_lib2.$L)(" "), $L18 = (0, import_lib2.$L)("<"), $L19 = (0, import_lib2.$L)("implements"), $L20 = (0, import_lib2.$L)("<:"), $L21 = (0, import_lib2.$L)("^"), $L22 = (0, import_lib2.$L)("<?"), $L23 = (0, import_lib2.$L)("-"), $L24 = (0, import_lib2.$L)("import.meta"), $L25 = (0, import_lib2.$L)("return.value"), $L26 = (0, import_lib2.$L)(","), $L27 = (0, import_lib2.$L)("tighter"), $L28 = (0, import_lib2.$L)("looser"), $L29 = (0, import_lib2.$L)("same"), $L30 = (0, import_lib2.$L)("left"), $L31 = (0, import_lib2.$L)("right"), $L32 = (0, import_lib2.$L)("non"), $L33 = (0, import_lib2.$L)("relational"), $L34 = (0, import_lib2.$L)("arguments"), $L35 = (0, import_lib2.$L)("->"), $L36 = (0, import_lib2.$L)("\u2192"), $L37 = (0, import_lib2.$L)("}"), $L38 = (0, import_lib2.$L)("null"), $L39 = (0, import_lib2.$L)("true"), $L40 = (0, import_lib2.$L)("false"), $L41 = (0, import_lib2.$L)("yes"), $L42 = (0, import_lib2.$L)("on"), $L43 = (0, import_lib2.$L)("no"), $L44 = (0, import_lib2.$L)("off"), $L45 = (0, import_lib2.$L)(">"), $L46 = (0, import_lib2.$L)("]"), $L47 = (0, import_lib2.$L)("\u2022"), $L48 = (0, import_lib2.$L)("//"), $L49 = (0, import_lib2.$L)("**="), $L50 = (0, import_lib2.$L)("*="), $L51 = (0, import_lib2.$L)("%/"), $L52 = (0, import_lib2.$L)("\xF7"), $L53 = (0, import_lib2.$L)("%%"), $L54 = (0, import_lib2.$L)("/="), $L55 = (0, import_lib2.$L)("%="), $L56 = (0, import_lib2.$L)("+="), $L57 = (0, import_lib2.$L)("-="), $L58 = (0, import_lib2.$L)("<<="), $L59 = (0, import_lib2.$L)("\u226A="), $L60 = (0, import_lib2.$L)(">>>="), $L61 = (0, import_lib2.$L)("\u22D9="), $L62 = (0, import_lib2.$L)(">>="), $L63 = (0, import_lib2.$L)("\u226B="), $L64 = (0, import_lib2.$L)("&&="), $L65 = (0, import_lib2.$L)("&="), $L66 = (0, import_lib2.$L)("^="), $L67 = (0, import_lib2.$L)("||="), $L68 = (0, import_lib2.$L)("\u2016="), $L69 = (0, import_lib2.$L)("|="), $L70 = (0, import_lib2.$L)("??="), $L71 = (0, import_lib2.$L)("\u2047="), $L72 = (0, import_lib2.$L)("?="), $L73 = (0, import_lib2.$L)("and="), $L74 = (0, import_lib2.$L)("or="), $L75 = (0, import_lib2.$L)("*"), $L76 = (0, import_lib2.$L)("**"), $L77 = (0, import_lib2.$L)("/"), $L78 = (0, import_lib2.$L)("%"), $L79 = (0, import_lib2.$L)("+"), $L80 = (0, import_lib2.$L)("<="), $L81 = (0, import_lib2.$L)("\u2264"), $L82 = (0, import_lib2.$L)(">="), $L83 = (0, import_lib2.$L)("\u2265"), $L84 = (0, import_lib2.$L)("!<?"), $L85 = (0, import_lib2.$L)("<<"), $L86 = (0, import_lib2.$L)("\u226A"), $L87 = (0, import_lib2.$L)(">>>"), $L88 = (0, import_lib2.$L)("\u22D9"), $L89 = (0, import_lib2.$L)(">>"), $L90 = (0, import_lib2.$L)("\u226B"), $L91 = (0, import_lib2.$L)("!=="), $L92 = (0, import_lib2.$L)("\u2262"), $L93 = (0, import_lib2.$L)("!="), $L94 = (0, import_lib2.$L)("\u2260"), $L95 = (0, import_lib2.$L)("isnt"), $L96 = (0, import_lib2.$L)("==="), $L97 = (0, import_lib2.$L)("\u2263"), $L98 = (0, import_lib2.$L)("\u2A76"), $L99 = (0, import_lib2.$L)("=="), $L100 = (0, import_lib2.$L)("\u2261"), $L101 = (0, import_lib2.$L)("\u2A75"), $L102 = (0, import_lib2.$L)("and"), $L103 = (0, import_lib2.$L)("&&"), $L104 = (0, import_lib2.$L)("or"), $L105 = (0, import_lib2.$L)("||"), $L106 = (0, import_lib2.$L)("\u2016"), $L107 = (0, import_lib2.$L)("^^"), $L108 = (0, import_lib2.$L)("xor"), $L109 = (0, import_lib2.$L)("xnor"), $L110 = (0, import_lib2.$L)("??"), $L111 = (0, import_lib2.$L)("\u2047"), $L112 = (0, import_lib2.$L)("instanceof"), $L113 = (0, import_lib2.$L)("\u2208"), $L114 = (0, import_lib2.$L)("\u220B"), $L115 = (0, import_lib2.$L)("\u220C"), $L116 = (0, import_lib2.$L)("\u2209"), $L117 = (0, import_lib2.$L)("&"), $L118 = (0, import_lib2.$L)("|"), $L119 = (0, import_lib2.$L)(";"), $L120 = (0, import_lib2.$L)("some"), $L121 = (0, import_lib2.$L)("every"), $L122 = (0, import_lib2.$L)("count"), $L123 = (0, import_lib2.$L)("first"), $L124 = (0, import_lib2.$L)("sum"), $L125 = (0, import_lib2.$L)("product"), $L126 = (0, import_lib2.$L)("min"), $L127 = (0, import_lib2.$L)("max"), $L128 = (0, import_lib2.$L)("join"), $L129 = (0, import_lib2.$L)("concat"), $L130 = (0, import_lib2.$L)("break"), $L131 = (0, import_lib2.$L)("continue"), $L132 = (0, import_lib2.$L)("debugger"), $L133 = (0, import_lib2.$L)("require"), $L134 = (0, import_lib2.$L)("with"), $L135 = (0, import_lib2.$L)("assert"), $L136 = (0, import_lib2.$L)(":="), $L137 = (0, import_lib2.$L)("\u2254"), $L138 = (0, import_lib2.$L)(".="), $L139 = (0, import_lib2.$L)("::="), $L140 = (0, import_lib2.$L)("/*"), $L141 = (0, import_lib2.$L)("*/"), $L142 = (0, import_lib2.$L)("\\"), $L143 = (0, import_lib2.$L)(")"), $L144 = (0, import_lib2.$L)("abstract"), $L145 = (0, import_lib2.$L)("as"), $L146 = (0, import_lib2.$L)("@"), $L147 = (0, import_lib2.$L)("@@"), $L148 = (0, import_lib2.$L)("async"), $L149 = (0, import_lib2.$L)("await"), $L150 = (0, import_lib2.$L)("`"), $L151 = (0, import_lib2.$L)("by"), $L152 = (0, import_lib2.$L)("case"), $L153 = (0, import_lib2.$L)("catch"), $L154 = (0, import_lib2.$L)("class"), $L155 = (0, import_lib2.$L)("#{"), $L156 = (0, import_lib2.$L)("comptime"), $L157 = (0, import_lib2.$L)("declare"), $L158 = (0, import_lib2.$L)("default"), $L159 = (0, import_lib2.$L)("delete"), $L160 = (0, import_lib2.$L)("do"), $L161 = (0, import_lib2.$L)(".."), $L162 = (0, import_lib2.$L)("\u2025"), $L163 = (0, import_lib2.$L)("..."), $L164 = (0, import_lib2.$L)("\u2026"), $L165 = (0, import_lib2.$L)("::"), $L166 = (0, import_lib2.$L)('"'), $L167 = (0, import_lib2.$L)("each"), $L168 = (0, import_lib2.$L)("else"), $L169 = (0, import_lib2.$L)("!"), $L170 = (0, import_lib2.$L)("export"), $L171 = (0, import_lib2.$L)("extends"), $L172 = (0, import_lib2.$L)("finally"), $L173 = (0, import_lib2.$L)("for"), $L174 = (0, import_lib2.$L)("from"), $L175 = (0, import_lib2.$L)("function"), $L176 = (0, import_lib2.$L)("get"), $L177 = (0, import_lib2.$L)("set"), $L178 = (0, import_lib2.$L)("#"), $L179 = (0, import_lib2.$L)("if"), $L180 = (0, import_lib2.$L)("in"), $L181 = (0, import_lib2.$L)("infer"), $L182 = (0, import_lib2.$L)("let"), $L183 = (0, import_lib2.$L)("const"), $L184 = (0, import_lib2.$L)("is"), $L185 = (0, import_lib2.$L)("var"), $L186 = (0, import_lib2.$L)("like"), $L187 = (0, import_lib2.$L)("loop"), $L188 = (0, import_lib2.$L)("new"), $L189 = (0, import_lib2.$L)("not"), $L190 = (0, import_lib2.$L)("of"), $L191 = (0, import_lib2.$L)("["), $L192 = (0, import_lib2.$L)("operator"), $L193 = (0, import_lib2.$L)("override"), $L194 = (0, import_lib2.$L)("own"), $L195 = (0, import_lib2.$L)("public"), $L196 = (0, import_lib2.$L)("private"), $L197 = (0, import_lib2.$L)("protected"), $L198 = (0, import_lib2.$L)("||>"), $L199 = (0, import_lib2.$L)("|\u25B7"), $L200 = (0, import_lib2.$L)("|>="), $L201 = (0, import_lib2.$L)("\u25B7="), $L202 = (0, import_lib2.$L)("|>"), $L203 = (0, import_lib2.$L)("\u25B7"), $L204 = (0, import_lib2.$L)("readonly"), $L205 = (0, import_lib2.$L)("return"), $L206 = (0, import_lib2.$L)("satisfies"), $L207 = (0, import_lib2.$L)("'"), $L208 = (0, import_lib2.$L)("static"), $L209 = (0, import_lib2.$L)("${"), $L210 = (0, import_lib2.$L)("super"), $L211 = (0, import_lib2.$L)("switch"), $L212 = (0, import_lib2.$L)("target"), $L213 = (0, import_lib2.$L)("then"), $L214 = (0, import_lib2.$L)("this"), $L215 = (0, import_lib2.$L)("throw"), $L216 = (0, import_lib2.$L)('"""'), $L217 = (0, import_lib2.$L)("'''"), $L218 = (0, import_lib2.$L)("///"), $L219 = (0, import_lib2.$L)("```"), $L220 = (0, import_lib2.$L)("try"), $L221 = (0, import_lib2.$L)("typeof"), $L222 = (0, import_lib2.$L)("undefined"), $L223 = (0, import_lib2.$L)("unless"), $L224 = (0, import_lib2.$L)("until"), $L225 = (0, import_lib2.$L)("using"), $L226 = (0, import_lib2.$L)("void"), $L227 = (0, import_lib2.$L)("when"), $L228 = (0, import_lib2.$L)("while"), $L229 = (0, import_lib2.$L)("yield"), $L230 = (0, import_lib2.$L)("/>"), $L231 = (0, import_lib2.$L)("</"), $L232 = (0, import_lib2.$L)("<>"), $L233 = (0, import_lib2.$L)("</>"), $L234 = (0, import_lib2.$L)("<!--"), $L235 = (0, import_lib2.$L)("-->"), $L236 = (0, import_lib2.$L)("type"), $L237 = (0, import_lib2.$L)("enum"), $L238 = (0, import_lib2.$L)("interface"), $L239 = (0, import_lib2.$L)("global"), $L240 = (0, import_lib2.$L)("module"), $L241 = (0, import_lib2.$L)("namespace"), $L242 = (0, import_lib2.$L)("asserts"), $L243 = (0, import_lib2.$L)("keyof"), $L244 = (0, import_lib2.$L)("???"), $L245 = (0, import_lib2.$L)("unique"), $L246 = (0, import_lib2.$L)("symbol"), $L247 = (0, import_lib2.$L)("[]"), $L248 = (0, import_lib2.$L)("civet"), $R0 = (0, import_lib2.$R)(new RegExp("(?=async|debugger|if|unless|comptime|do|for|loop|until|while|switch|throw|try)", "suy")), $R1 = (0, import_lib2.$R)(new RegExp("&(?=\\s)", "suy")), $R2 = (0, import_lib2.$R)(new RegExp("(as|of|by|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R3 = (0, import_lib2.$R)(new RegExp("[0-9]", "suy")), $R4 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Start}|[_$0-9(\\[{])", "suy")), $R5 = (0, import_lib2.$R)(new RegExp("[ \\t]", "suy")), $R6 = (0, import_lib2.$R)(new RegExp("\\p{ID_Continue}|[\\u200C\\u200D$.#{=]", "suy")), $R7 = (0, import_lib2.$R)(new RegExp("[&=]", "suy")), $R8 = (0, import_lib2.$R)(new RegExp("(?=['\"`])", "suy")), $R9 = (0, import_lib2.$R)(new RegExp("(?=[\\/?])", "suy")), $R10 = (0, import_lib2.$R)(new RegExp("(?=[\\/\\[{?.!@#'\u2019:])", "suy")), $R11 = (0, import_lib2.$R)(new RegExp("%%?", "suy")), $R12 = (0, import_lib2.$R)(new RegExp("[.\\s]", "suy")), $R13 = (0, import_lib2.$R)(new RegExp("[)\\]}]", "suy")), $R14 = (0, import_lib2.$R)(new RegExp("[+-]", "suy")), $R15 = (0, import_lib2.$R)(new RegExp("\\+\\+|--|\u29FA|\u2014|[\\+\\-&]\\S", "suy")), $R16 = (0, import_lib2.$R)(new RegExp(`(?=[0-9.'"tfyno])`, "suy")), $R17 = (0, import_lib2.$R)(new RegExp("(?=true|false|yes|no|on|off)", "suy")), $R18 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$])", "suy")), $R19 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy")), $R20 = (0, import_lib2.$R)(new RegExp("(?=\\[|\\s*[.\u2022\\/])", "suy")), $R21 = (0, import_lib2.$R)(new RegExp("([<>])(=?)|([\u2264\u2265])", "suy")), $R22 = (0, import_lib2.$R)(new RegExp("[ \\t]*", "suy")), $R23 = (0, import_lib2.$R)(new RegExp("[ \\t]+", "suy")), $R24 = (0, import_lib2.$R)(new RegExp("[!+-]?", "suy")), $R25 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R26 = (0, import_lib2.$R)(new RegExp("[=>]", "suy")), $R27 = (0, import_lib2.$R)(new RegExp("(?=\\p{ID_Start}|[_$^\u226A\u226B\u22D9\u2264\u2265\u2208\u220B\u2209\u220C\u2263\u2261\u2262\u2260=\u2A76\u2A75\u2016\u2047&|*\\/!?%\xF7<>\u29FA+-])", "suy")), $R28 = (0, import_lib2.$R)(new RegExp("!\\^\\^?", "suy")), $R29 = (0, import_lib2.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy")), $R30 = (0, import_lib2.$R)(new RegExp("[:.]", "suy")), $R31 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy")), $R32 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy")), $R33 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy")), $R34 = (0, import_lib2.$R)(new RegExp('[^;"\\s=>]+', "suy")), $R35 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy")), $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy")), $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy")), $R38 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy")), $R39 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy")), $R40 = (0, import_lib2.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy")), $R41 = (0, import_lib2.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy")), $R42 = (0, import_lib2.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy")), $R43 = (0, import_lib2.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy")), $R44 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy")), $R45 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy")), $R46 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy")), $R47 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy")), $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy")), $R49 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy")), $R50 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy")), $R51 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy")), $R52 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy")), $R53 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy")), $R54 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy")), $R55 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy")), $R56 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy")), $R57 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy")), $R58 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy")), $R59 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy")), $R60 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy")), $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy")), $R62 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy")), $R63 = (0, import_lib2.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy")), $R64 = (0, import_lib2.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy")), $R65 = (0, import_lib2.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy")), $R66 = (0, import_lib2.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy")), $R67 = (0, import_lib2.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy")), $R68 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy")), $R69 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy")), $R70 = (0, import_lib2.$R)(new RegExp(".", "suy")), $R71 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy")), $R72 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy")), $R73 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy")), $R74 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy")), $R75 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy")), $R76 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy")), $R77 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue})", "suy")), $R78 = (0, import_lib2.$R)(new RegExp("[=:]", "suy")), $R79 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy")), $R80 = (0, import_lib2.$R)(new RegExp("\\s", "suy")), $R81 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy")), $R82 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy")), $R83 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy")), $R84 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy")), $R85 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy")), $R86 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy")), $R87 = (0, import_lib2.$R)(new RegExp("[<>]", "suy")), $R88 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy")), $R89 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy")), $R90 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy")), $R91 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy")), $R92 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy")), $R93 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy")), $R94 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy")), $R95 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy")), $R96 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy")), $R97 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy")), $R98 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy")), $R99 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy")), $R100 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy")), $R101 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy")), $R102 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy")), $R103 = (0, import_lib2.$R)(new RegExp("[^]*", "suy")), Program$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
7373
7413
|
var reset = $1, init = $2, ws1 = $3, statements = $4, ws2 = $5;
|
|
7374
7414
|
let program = {
|
|
7375
7415
|
type: "BlockStatement",
|
|
@@ -8349,7 +8389,14 @@ ${js}`
|
|
|
8349
8389
|
function NestedClassElement(ctx, state2) {
|
|
8350
8390
|
return (0, import_lib2.$EVENT)(ctx, state2, "NestedClassElement", NestedClassElement$0);
|
|
8351
8391
|
}
|
|
8352
|
-
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)((0, import_lib2.$S)(Declare, (0, import_lib2.$E)(_))), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))),
|
|
8392
|
+
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeClassesEnabled, (0, import_lib2.$E)(Decorators), (0, import_lib2.$E)((0, import_lib2.$S)(Declare, (0, import_lib2.$E)(_))), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ActualAssignment), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
|
|
8393
|
+
var decorators = $2, declare = $3, access = $4, static_ = $5, override = $6, assignment = $7;
|
|
8394
|
+
return {
|
|
8395
|
+
type: static_ ? "CoffeeClassPublic" : "CoffeeClassPrivate",
|
|
8396
|
+
children: [decorators, declare, access, static_, override, assignment],
|
|
8397
|
+
assignment
|
|
8398
|
+
};
|
|
8399
|
+
}), ClassElement$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)((0, import_lib2.$S)(Declare, (0, import_lib2.$E)(_))), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ClassElementDefinition), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
8353
8400
|
var decorators = $1, declare = $2, access = $3, static_ = $4, override = $5, definition = $6;
|
|
8354
8401
|
let ts2 = definition.ts || !!declare;
|
|
8355
8402
|
return definition.type === "MultiMethodDefinition" ? {
|
|
@@ -8364,12 +8411,12 @@ ${js}`
|
|
|
8364
8411
|
ts: ts2,
|
|
8365
8412
|
children: [decorators, declare, access, static_, override, ...definition.children]
|
|
8366
8413
|
};
|
|
8367
|
-
}), ClassElement$
|
|
8414
|
+
}), ClassElement$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(Static, BracedBlock), function($skip, $loc, $0, $1, $2) {
|
|
8368
8415
|
return {
|
|
8369
8416
|
type: "ClassStaticBlock",
|
|
8370
8417
|
children: $0
|
|
8371
8418
|
};
|
|
8372
|
-
}), ClassElement$
|
|
8419
|
+
}), ClassElement$3 = EmptyStatement, ClassElement$$ = [ClassElement$0, ClassElement$1, ClassElement$2, ClassElement$3];
|
|
8373
8420
|
function ClassElement(ctx, state2) {
|
|
8374
8421
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ClassElement", ClassElement$$);
|
|
8375
8422
|
}
|
|
@@ -8412,28 +8459,10 @@ ${js}`
|
|
|
8412
8459
|
var FieldDefinition$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeClassesEnabled, ClassElementName, (0, import_lib2.$E)(_), Colon, __, AssignmentExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
8413
8460
|
var id = $2, exp = $6;
|
|
8414
8461
|
switch (exp.type) {
|
|
8415
|
-
case "FunctionExpression":
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
type: "MethodDefinition",
|
|
8420
|
-
name: id.name,
|
|
8421
|
-
signature: { ...exp.signature, id, name: id.name },
|
|
8422
|
-
children
|
|
8423
|
-
};
|
|
8424
|
-
}
|
|
8425
|
-
case "ArrowFunction": {
|
|
8426
|
-
let block = { ...exp.block }, children = exp.children.filter((c) => !(Array.isArray(c) && c[c.length - 1]?.token?.includes("=>"))).map((c) => c === exp.block ? block : c);
|
|
8427
|
-
return children.unshift(id), exp = {
|
|
8428
|
-
...exp,
|
|
8429
|
-
type: "MethodDefinition",
|
|
8430
|
-
name: id.name,
|
|
8431
|
-
signature: { ...exp.signature, id, name: id.name },
|
|
8432
|
-
block,
|
|
8433
|
-
children,
|
|
8434
|
-
autoBind: !0
|
|
8435
|
-
}, block.parent = exp, braceBlock(block), exp;
|
|
8436
|
-
}
|
|
8462
|
+
case "FunctionExpression":
|
|
8463
|
+
return convertFunctionToMethod(id, exp);
|
|
8464
|
+
case "ArrowFunction":
|
|
8465
|
+
return convertArrowFunctionToMethod(id, exp);
|
|
8437
8466
|
default:
|
|
8438
8467
|
return {
|
|
8439
8468
|
type: "FieldDefinition",
|
|
@@ -8453,14 +8482,7 @@ ${js}`
|
|
|
8453
8482
|
children: $0,
|
|
8454
8483
|
readonly
|
|
8455
8484
|
};
|
|
8456
|
-
}), FieldDefinition$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(
|
|
8457
|
-
var assignment = $2;
|
|
8458
|
-
return {
|
|
8459
|
-
type: "CoffeeClassPrivate",
|
|
8460
|
-
children: [assignment],
|
|
8461
|
-
assignment
|
|
8462
|
-
};
|
|
8463
|
-
}), FieldDefinition$3 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)(Abstract, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Readonly, (0, import_lib2.$E)(_))), ClassElementName, (0, import_lib2.$E)(TypeSuffix), (0, import_lib2.$E)(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
8485
|
+
}), FieldDefinition$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)(Abstract, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Readonly, (0, import_lib2.$E)(_))), ClassElementName, (0, import_lib2.$E)(TypeSuffix), (0, import_lib2.$E)(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
8464
8486
|
var abstract = $1, readonly = $2, id = $3, typeSuffix = $4, initializer = $5;
|
|
8465
8487
|
return {
|
|
8466
8488
|
type: "FieldDefinition",
|
|
@@ -8472,7 +8494,7 @@ ${js}`
|
|
|
8472
8494
|
readonly,
|
|
8473
8495
|
initializer
|
|
8474
8496
|
};
|
|
8475
|
-
}), FieldDefinition$$ = [FieldDefinition$0, FieldDefinition$1, FieldDefinition$2
|
|
8497
|
+
}), FieldDefinition$$ = [FieldDefinition$0, FieldDefinition$1, FieldDefinition$2];
|
|
8476
8498
|
function FieldDefinition(ctx, state2) {
|
|
8477
8499
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
8478
8500
|
}
|
|
@@ -9053,7 +9075,7 @@ ${js}`
|
|
|
9053
9075
|
function ParameterElement(ctx, state2) {
|
|
9054
9076
|
return (0, import_lib2.$EVENT)(ctx, state2, "ParameterElement", ParameterElement$0);
|
|
9055
9077
|
}
|
|
9056
|
-
var ParameterElementDelimiter$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), Comma), ParameterElementDelimiter$1 = (0, import_lib2.$Y)((0, import_lib2.$S)(__, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R13, "ParameterElementDelimiter /[)}]/")))), ParameterElementDelimiter$2 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$Y)(EOS), InsertComma), function(value) {
|
|
9078
|
+
var ParameterElementDelimiter$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), Comma), ParameterElementDelimiter$1 = (0, import_lib2.$Y)((0, import_lib2.$S)(__, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R13, "ParameterElementDelimiter /[)\\]}]/")))), ParameterElementDelimiter$2 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$Y)(EOS), InsertComma), function(value) {
|
|
9057
9079
|
return value[1];
|
|
9058
9080
|
}), ParameterElementDelimiter$$ = [ParameterElementDelimiter$0, ParameterElementDelimiter$1, ParameterElementDelimiter$2];
|
|
9059
9081
|
function ParameterElementDelimiter(ctx, state2) {
|
|
@@ -10537,7 +10559,7 @@ ${js}`
|
|
|
10537
10559
|
function InlineObjectPropertyDelimiter(ctx, state2) {
|
|
10538
10560
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineObjectPropertyDelimiter", InlineObjectPropertyDelimiter$0);
|
|
10539
10561
|
}
|
|
10540
|
-
var ObjectPropertyDelimiter$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), Comma), ObjectPropertyDelimiter$1 = (0, import_lib2.$Y)((0, import_lib2.$S)(__, (0, import_lib2.$EXPECT)($
|
|
10562
|
+
var ObjectPropertyDelimiter$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), Comma), ObjectPropertyDelimiter$1 = (0, import_lib2.$Y)((0, import_lib2.$S)(__, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R13, "ObjectPropertyDelimiter /[)\\]}]/")))), ObjectPropertyDelimiter$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$Y)(EOS), InsertComma), function($skip, $loc, $0, $1, $2) {
|
|
10541
10563
|
return { ...$2, implicit: !0 };
|
|
10542
10564
|
}), ObjectPropertyDelimiter$$ = [ObjectPropertyDelimiter$0, ObjectPropertyDelimiter$1, ObjectPropertyDelimiter$2];
|
|
10543
10565
|
function ObjectPropertyDelimiter(ctx, state2) {
|
|
@@ -16125,11 +16147,12 @@ ${js}`
|
|
|
16125
16147
|
"unscopables"
|
|
16126
16148
|
];
|
|
16127
16149
|
|
|
16128
|
-
// unplugin-civet
|
|
16150
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\sourcemap.civet.jsx
|
|
16129
16151
|
var sourcemap_civet_exports = {};
|
|
16130
16152
|
__export(sourcemap_civet_exports, {
|
|
16131
16153
|
SourceMap: () => SourceMap,
|
|
16132
16154
|
base64Encode: () => base64Encode,
|
|
16155
|
+
decodeVLQ: () => decodeVLQ,
|
|
16133
16156
|
locationTable: () => locationTable,
|
|
16134
16157
|
lookupLineColumn: () => lookupLineColumn
|
|
16135
16158
|
});
|
|
@@ -16152,11 +16175,10 @@ ${js}`
|
|
|
16152
16175
|
// relative to previous entry
|
|
16153
16176
|
srcLine;
|
|
16154
16177
|
srcColumn;
|
|
16155
|
-
srcOffset;
|
|
16156
16178
|
srcTable;
|
|
16157
16179
|
source;
|
|
16158
16180
|
constructor(source1) {
|
|
16159
|
-
this.source = source1, this.lines = [[]], this.line = 0, this.colOffset = 0, this.srcLine = 0, this.srcColumn = 0, this.
|
|
16181
|
+
this.source = source1, this.lines = [[]], this.line = 0, this.colOffset = 0, this.srcLine = 0, this.srcColumn = 0, this.srcTable = locationTable(this.source);
|
|
16160
16182
|
}
|
|
16161
16183
|
renderMappings() {
|
|
16162
16184
|
let lastSourceLine = 0, lastSourceColumn = 0;
|
|
@@ -16193,9 +16215,13 @@ ${js}`
|
|
|
16193
16215
|
}
|
|
16194
16216
|
};
|
|
16195
16217
|
}
|
|
16218
|
+
/** Generate a comment with the source mapping URL. */
|
|
16219
|
+
comment(srcFileName, outFileName) {
|
|
16220
|
+
return `//# sourceMappingURL=data:application/json;base64,${base64Encode(JSON.stringify(this.json(srcFileName, outFileName)))}`;
|
|
16221
|
+
}
|
|
16196
16222
|
updateSourceMap(outputStr, inputPos, colOffset = 0) {
|
|
16197
16223
|
let outLines = outputStr.split(EOL2), srcLine, srcCol;
|
|
16198
|
-
inputPos != null && ([srcLine, srcCol] = lookupLineColumn(this.srcTable, inputPos), srcCol += colOffset, this.srcLine = srcLine, this.srcColumn = srcCol
|
|
16224
|
+
inputPos != null && ([srcLine, srcCol] = lookupLineColumn(this.srcTable, inputPos), srcCol += colOffset, this.srcLine = srcLine, this.srcColumn = srcCol);
|
|
16199
16225
|
for (let i3 = 0, len22 = outLines.length; i3 < len22; i3++) {
|
|
16200
16226
|
let i = i3, line = outLines[i3];
|
|
16201
16227
|
i > 0 && (this.line++, this.srcLine++, this.colOffset = 0, this.lines[this.line] = [], this.srcColumn = srcCol = colOffset);
|
|
@@ -16203,17 +16229,24 @@ ${js}`
|
|
|
16203
16229
|
this.colOffset = line.length, this.srcColumn += line.length, inputPos != null ? this.lines[this.line].push([l, 0, srcLine + i, srcCol]) : l != 0 && this.lines[this.line].push([l]);
|
|
16204
16230
|
}
|
|
16205
16231
|
}
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16232
|
+
/**
|
|
16233
|
+
Remap a string with compiled code and a source map to use a new source map
|
|
16234
|
+
referencing upstream source files.
|
|
16235
|
+
This modifies the upstream map in place.
|
|
16236
|
+
*/
|
|
16237
|
+
static remap = (codeWithSourceMap, upstreamMap, sourcePath, targetPath) => {
|
|
16238
|
+
let sourceMapText, codeWithoutSourceMap = codeWithSourceMap.replace(smRegexp, (_match, sm) => (sourceMapText = sm, ""));
|
|
16239
|
+
if (sourceMapText) {
|
|
16240
|
+
let parsed = this.parseWithLines(sourceMapText), composedLines = this.composeLines(upstreamMap.lines, parsed.lines);
|
|
16241
|
+
upstreamMap.lines = composedLines;
|
|
16242
|
+
}
|
|
16243
|
+
return `${codeWithoutSourceMap}
|
|
16244
|
+
${upstreamMap.comment(sourcePath, targetPath)}`;
|
|
16245
|
+
};
|
|
16246
|
+
/**
|
|
16247
|
+
Compose lines from an upstream source map with lines from a downstream source map.
|
|
16248
|
+
*/
|
|
16249
|
+
static composeLines = (upstreamMapping, lines) => lines.map((line) => line.map((entry) => {
|
|
16217
16250
|
if (entry.length === 1)
|
|
16218
16251
|
return entry;
|
|
16219
16252
|
let [colDelta, sourceFileIndex, srcLine, srcCol] = entry, srcPos = remapPosition([srcLine, srcCol], upstreamMapping);
|
|
@@ -16222,38 +16255,44 @@ ${js}`
|
|
|
16222
16255
|
let [upstreamLine, upstreamCol] = srcPos;
|
|
16223
16256
|
return entry.length === 4 ? [colDelta, sourceFileIndex, upstreamLine, upstreamCol] : [colDelta, sourceFileIndex, upstreamLine, upstreamCol, entry[4]];
|
|
16224
16257
|
}));
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16258
|
+
/**
|
|
16259
|
+
Parse a base64 encoded source map string into a SourceMapJSON object with lines.
|
|
16260
|
+
*/
|
|
16261
|
+
static parseWithLines = (base64encodedJSONstr) => {
|
|
16262
|
+
let json = JSON.parse(Buffer.from(base64encodedJSONstr, "base64").toString("utf8")), sourceLine = 0, sourceColumn = 0, lines = json.mappings.split(";").map((line) => line.length === 0 ? [] : line.split(",").map((entry) => {
|
|
16263
|
+
let result = decodeVLQ(entry);
|
|
16264
|
+
switch (result.length) {
|
|
16265
|
+
case 1:
|
|
16266
|
+
break;
|
|
16267
|
+
case 4:
|
|
16268
|
+
case 5: {
|
|
16269
|
+
sourceLine += result[2], result[2] = sourceLine, sourceColumn += result[3], result[3] = sourceColumn;
|
|
16270
|
+
break;
|
|
16271
|
+
}
|
|
16272
|
+
default:
|
|
16273
|
+
throw new Error(`Unknown source map entry ${JSON.stringify(result)}`);
|
|
16274
|
+
}
|
|
16275
|
+
return result;
|
|
16276
|
+
}));
|
|
16277
|
+
return { ...json, lines };
|
|
16278
|
+
};
|
|
16279
|
+
}, smRegexp = /(?:\r?\n|\r)\/\/# sourceMappingURL=data:application\/json;(?:charset=[^;]*;)?base64,([+a-zA-Z0-9\/]*=?=?)(?:\s*)$/;
|
|
16242
16280
|
var VLQ_SHIFT = 5, VLQ_CONTINUATION_BIT = 1 << VLQ_SHIFT, VLQ_VALUE_MASK = VLQ_CONTINUATION_BIT - 1, encodeVlq = function(value) {
|
|
16243
16281
|
let answer = "", ref2;
|
|
16244
16282
|
value < 0 ? ref2 = 1 : ref2 = 0;
|
|
16245
16283
|
let signBit = ref2, valueToEncode = (Math.abs(value) << 1) + signBit;
|
|
16246
16284
|
for (; valueToEncode || !answer; ) {
|
|
16247
16285
|
let nextChunk = valueToEncode & VLQ_VALUE_MASK;
|
|
16248
|
-
valueToEncode = valueToEncode >> VLQ_SHIFT, valueToEncode && (nextChunk |= VLQ_CONTINUATION_BIT), answer +=
|
|
16286
|
+
valueToEncode = valueToEncode >> VLQ_SHIFT, valueToEncode && (nextChunk |= VLQ_CONTINUATION_BIT), answer += BASE64_CHARS[nextChunk];
|
|
16249
16287
|
}
|
|
16250
16288
|
return answer;
|
|
16251
|
-
}, BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
16256
|
-
|
|
16289
|
+
}, BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", base64Encode = function(src) {
|
|
16290
|
+
if (typeof Buffer < "u")
|
|
16291
|
+
return Buffer.from(src).toString("base64");
|
|
16292
|
+
{
|
|
16293
|
+
let bytes = new TextEncoder().encode(src), binaryString = String.fromCodePoint(...bytes);
|
|
16294
|
+
return btoa(binaryString);
|
|
16295
|
+
}
|
|
16257
16296
|
}, vlqTable = new Uint8Array(128), vlqChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
16258
16297
|
{
|
|
16259
16298
|
let i = 0, l = vlqTable.length;
|
|
@@ -16264,22 +16303,22 @@ ${js}`
|
|
|
16264
16303
|
}
|
|
16265
16304
|
var decodeError = function(message) {
|
|
16266
16305
|
throw new Error(message);
|
|
16267
|
-
}, decodeVLQ =
|
|
16306
|
+
}, decodeVLQ = (mapping) => {
|
|
16268
16307
|
let i = 0, l = mapping.length, result = [];
|
|
16269
16308
|
for (; i < l; ) {
|
|
16270
16309
|
let shift = 0, vlq = 0, v = 0;
|
|
16271
16310
|
for (; ; ) {
|
|
16272
16311
|
i >= l && decodeError("Unexpected early end of mapping data");
|
|
16273
16312
|
let c = mapping.charCodeAt(i);
|
|
16274
|
-
(c & 127) != c && decodeError(
|
|
16313
|
+
(c & 127) != c && decodeError(`Invalid mapping character: ${JSON.stringify(String.fromCharCode(c))}`);
|
|
16275
16314
|
let index = vlqTable[c & 127];
|
|
16276
|
-
if (index === 255 && decodeError(
|
|
16315
|
+
if (index === 255 && decodeError(`Invalid mapping character: ${JSON.stringify(String.fromCharCode(c))}`), i++, vlq |= (index & 31) << shift, shift += 5, !(index & 32))
|
|
16277
16316
|
break;
|
|
16278
16317
|
}
|
|
16279
16318
|
vlq & 1 ? v = -(vlq >> 1) : v = vlq >> 1, result.push(v);
|
|
16280
16319
|
}
|
|
16281
16320
|
return result;
|
|
16282
|
-
}, remapPosition =
|
|
16321
|
+
}, remapPosition = (position, sourcemapLines) => {
|
|
16283
16322
|
let [line, character] = position, textLine = sourcemapLines[line];
|
|
16284
16323
|
if (!textLine?.length)
|
|
16285
16324
|
return;
|
|
@@ -16294,7 +16333,7 @@ ${js}`
|
|
|
16294
16333
|
return [lastMapping[2], lastMapping[3]];
|
|
16295
16334
|
};
|
|
16296
16335
|
|
|
16297
|
-
// unplugin-civet
|
|
16336
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\state-cache.civet.jsx
|
|
16298
16337
|
var StateCache = class {
|
|
16299
16338
|
cache = /* @__PURE__ */ new Map();
|
|
16300
16339
|
get(key) {
|
|
@@ -16317,7 +16356,7 @@ ${js}`
|
|
|
16317
16356
|
}
|
|
16318
16357
|
};
|
|
16319
16358
|
|
|
16320
|
-
// unplugin-civet
|
|
16359
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\main.civet.jsx
|
|
16321
16360
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
16322
16361
|
var ParseErrors = class extends Error {
|
|
16323
16362
|
name = "ParseErrors";
|
|
@@ -16424,7 +16463,8 @@ ${counts}`;
|
|
|
16424
16463
|
if (options.sourceMap || options.inlineMap) {
|
|
16425
16464
|
options.sourceMap = new SourceMap2(src);
|
|
16426
16465
|
let code = generate_civet_default(ast2, options);
|
|
16427
|
-
return checkErrors(), options.inlineMap ?
|
|
16466
|
+
return checkErrors(), options.inlineMap ? `${code}
|
|
16467
|
+
${options.sourceMap.comment(filename2, filename2 + ".tsx")}` : {
|
|
16428
16468
|
code,
|
|
16429
16469
|
sourceMap: options.sourceMap
|
|
16430
16470
|
};
|
|
@@ -16467,7 +16507,7 @@ ${counts}`;
|
|
|
16467
16507
|
return err instanceof import_lib2.ParseError || err instanceof ParseErrors;
|
|
16468
16508
|
};
|
|
16469
16509
|
|
|
16470
|
-
// unplugin-civet
|
|
16510
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\browser.civet.jsx
|
|
16471
16511
|
async function runScripts(type = "text/civet") {
|
|
16472
16512
|
let scripts = window.document.querySelectorAll(`script[type=${JSON.stringify(type)}]`);
|
|
16473
16513
|
for (let i1 = 0, len3 = scripts.length; i1 < len3; i1++) {
|