@stencil/core 4.21.0-dev.1724907702.f741f44 → 4.21.0-dev.1724994101.9c09faa
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.es2023.array.d.ts +5 -5
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +246 -154
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/compiler/stencil.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Compiler v4.21.0-dev.
|
|
2
|
+
Stencil Compiler v4.21.0-dev.1724994101.9c09faa | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -2312,9 +2312,9 @@ var require_source_map_support = __commonJS({
|
|
|
2312
2312
|
}
|
|
2313
2313
|
});
|
|
2314
2314
|
|
|
2315
|
-
// scripts/build/typescript-
|
|
2316
|
-
var
|
|
2317
|
-
"scripts/build/typescript-
|
|
2315
|
+
// scripts/build/typescript-5_5_4-bundle-cache.min.js
|
|
2316
|
+
var require_typescript_5_5_4_bundle_cache_min = __commonJS({
|
|
2317
|
+
"scripts/build/typescript-5_5_4-bundle-cache.min.js"(exports2, module2) {
|
|
2318
2318
|
"use strict";
|
|
2319
2319
|
/*! *****************************************************************************
|
|
2320
2320
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4571,6 +4571,7 @@ var require_typescript_5_5_3_bundle_cache_min = __commonJS({
|
|
|
4571
4571
|
trace: () => trace,
|
|
4572
4572
|
tracing: () => tracing,
|
|
4573
4573
|
tracingEnabled: () => tracingEnabled,
|
|
4574
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
4574
4575
|
transform: () => transform2,
|
|
4575
4576
|
transformClassFields: () => transformClassFields,
|
|
4576
4577
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -4681,7 +4682,7 @@ var require_typescript_5_5_3_bundle_cache_min = __commonJS({
|
|
|
4681
4682
|
});
|
|
4682
4683
|
module3.exports = __toCommonJS2(typescript_exports);
|
|
4683
4684
|
var versionMajorMinor = "5.5";
|
|
4684
|
-
var version3 = "5.5.
|
|
4685
|
+
var version3 = "5.5.4";
|
|
4685
4686
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
4686
4687
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
4687
4688
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7555,10 +7556,12 @@ ${lanes.join("\n")}
|
|
|
7555
7556
|
if (isNodeLikeSystem()) {
|
|
7556
7557
|
try {
|
|
7557
7558
|
const { performance: performance2 } = require("perf_hooks");
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7559
|
+
if (performance2) {
|
|
7560
|
+
return {
|
|
7561
|
+
shouldWriteNativeEvents: false,
|
|
7562
|
+
performance: performance2
|
|
7563
|
+
};
|
|
7564
|
+
}
|
|
7562
7565
|
} catch {
|
|
7563
7566
|
}
|
|
7564
7567
|
}
|
|
@@ -8706,6 +8709,7 @@ ${lanes.join("\n")}
|
|
|
8706
8709
|
var EmitOnly = /* @__PURE__ */ ((EmitOnly4) => {
|
|
8707
8710
|
EmitOnly4[EmitOnly4["Js"] = 0] = "Js";
|
|
8708
8711
|
EmitOnly4[EmitOnly4["Dts"] = 1] = "Dts";
|
|
8712
|
+
EmitOnly4[EmitOnly4["BuilderSignature"] = 2] = "BuilderSignature";
|
|
8709
8713
|
return EmitOnly4;
|
|
8710
8714
|
})(EmitOnly || {});
|
|
8711
8715
|
var StructureIsReused = /* @__PURE__ */ ((StructureIsReused2) => {
|
|
@@ -14892,6 +14896,7 @@ ${lanes.join("\n")}
|
|
|
14892
14896
|
var tokenFlags;
|
|
14893
14897
|
var commentDirectives;
|
|
14894
14898
|
var skipJsDocLeadingAsterisks = 0;
|
|
14899
|
+
var asteriskSeen = false;
|
|
14895
14900
|
var scriptKind = 0;
|
|
14896
14901
|
var jsDocParsingMode = 0;
|
|
14897
14902
|
setText(text, start, length22);
|
|
@@ -14943,6 +14948,7 @@ ${lanes.join("\n")}
|
|
|
14943
14948
|
resetTokenState,
|
|
14944
14949
|
setTextPos: resetTokenState,
|
|
14945
14950
|
setSkipJsDocLeadingAsterisks,
|
|
14951
|
+
hasLeadingAsterisks,
|
|
14946
14952
|
tryScan,
|
|
14947
14953
|
lookAhead,
|
|
14948
14954
|
scanRange
|
|
@@ -15552,7 +15558,7 @@ ${lanes.join("\n")}
|
|
|
15552
15558
|
function scan() {
|
|
15553
15559
|
fullStartPos = pos;
|
|
15554
15560
|
tokenFlags = 0;
|
|
15555
|
-
|
|
15561
|
+
asteriskSeen = false;
|
|
15556
15562
|
while (true) {
|
|
15557
15563
|
tokenStart = pos;
|
|
15558
15564
|
if (pos >= end) {
|
|
@@ -17427,6 +17433,9 @@ ${lanes.join("\n")}
|
|
|
17427
17433
|
function setSkipJsDocLeadingAsterisks(skip) {
|
|
17428
17434
|
skipJsDocLeadingAsterisks += skip ? 1 : -1;
|
|
17429
17435
|
}
|
|
17436
|
+
function hasLeadingAsterisks() {
|
|
17437
|
+
return asteriskSeen;
|
|
17438
|
+
}
|
|
17430
17439
|
}
|
|
17431
17440
|
function codePointAt(s, i) {
|
|
17432
17441
|
return s.codePointAt(i);
|
|
@@ -19391,7 +19400,7 @@ ${lanes.join("\n")}
|
|
|
19391
19400
|
}
|
|
19392
19401
|
if (isJSDocNode(node) || node.kind === 12) {
|
|
19393
19402
|
return skipTrivia(
|
|
19394
|
-
(sourceFile
|
|
19403
|
+
(sourceFile != null ? sourceFile : getSourceFileOfNode(node)).text,
|
|
19395
19404
|
node.pos,
|
|
19396
19405
|
/*stopAfterLineBreak*/
|
|
19397
19406
|
false,
|
|
@@ -19403,13 +19412,14 @@ ${lanes.join("\n")}
|
|
|
19403
19412
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
19404
19413
|
}
|
|
19405
19414
|
if (node.kind === 352) {
|
|
19406
|
-
|
|
19415
|
+
sourceFile != null ? sourceFile : sourceFile = getSourceFileOfNode(node);
|
|
19416
|
+
const first2 = firstOrUndefined(getNodeChildren(node, sourceFile));
|
|
19407
19417
|
if (first2) {
|
|
19408
19418
|
return getTokenPosOfNode(first2, sourceFile, includeJsDoc);
|
|
19409
19419
|
}
|
|
19410
19420
|
}
|
|
19411
19421
|
return skipTrivia(
|
|
19412
|
-
(sourceFile
|
|
19422
|
+
(sourceFile != null ? sourceFile : getSourceFileOfNode(node)).text,
|
|
19413
19423
|
node.pos,
|
|
19414
19424
|
/*stopAfterLineBreak*/
|
|
19415
19425
|
false,
|
|
@@ -23013,11 +23023,11 @@ ${lanes.join("\n")}
|
|
|
23013
23023
|
return emitOutputFilePathWithoutExtension + extension;
|
|
23014
23024
|
}
|
|
23015
23025
|
function getDeclarationEmitOutputFilePath(fileName, host) {
|
|
23016
|
-
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host
|
|
23026
|
+
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host);
|
|
23017
23027
|
}
|
|
23018
|
-
function getDeclarationEmitOutputFilePathWorker(fileName, options,
|
|
23028
|
+
function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
|
|
23019
23029
|
const outputDir = options.declarationDir || options.outDir;
|
|
23020
|
-
const path6 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir,
|
|
23030
|
+
const path6 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
|
|
23021
23031
|
const declarationExtension = getDeclarationEmitExtensionForPath(path6);
|
|
23022
23032
|
return removeFileExtension(path6) + declarationExtension;
|
|
23023
23033
|
}
|
|
@@ -31606,7 +31616,7 @@ ${lanes.join("\n")}
|
|
|
31606
31616
|
352
|
|
31607
31617
|
/* SyntaxList */
|
|
31608
31618
|
);
|
|
31609
|
-
|
|
31619
|
+
node._children = children;
|
|
31610
31620
|
return node;
|
|
31611
31621
|
}
|
|
31612
31622
|
function createNotEmittedStatement(original) {
|
|
@@ -34550,17 +34560,43 @@ ${lanes.join("\n")}
|
|
|
34550
34560
|
function isSyntaxList(n3) {
|
|
34551
34561
|
return n3.kind === 352;
|
|
34552
34562
|
}
|
|
34553
|
-
var
|
|
34554
|
-
function getNodeChildren(node) {
|
|
34555
|
-
|
|
34556
|
-
|
|
34563
|
+
var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap();
|
|
34564
|
+
function getNodeChildren(node, sourceFile) {
|
|
34565
|
+
var _a2;
|
|
34566
|
+
const kind = node.kind;
|
|
34567
|
+
if (!isNodeKind(kind)) {
|
|
34568
|
+
return emptyArray;
|
|
34569
|
+
}
|
|
34570
|
+
if (kind === 352) {
|
|
34571
|
+
return node._children;
|
|
34572
|
+
}
|
|
34573
|
+
return (_a2 = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a2.get(node);
|
|
34557
34574
|
}
|
|
34558
|
-
function setNodeChildren(node, children) {
|
|
34559
|
-
|
|
34575
|
+
function setNodeChildren(node, sourceFile, children) {
|
|
34576
|
+
if (node.kind === 352) {
|
|
34577
|
+
Debug.fail("Should not need to re-set the children of a SyntaxList.");
|
|
34578
|
+
}
|
|
34579
|
+
let map22 = sourceFileToNodeChildren.get(sourceFile);
|
|
34580
|
+
if (map22 === void 0) {
|
|
34581
|
+
map22 = /* @__PURE__ */ new WeakMap();
|
|
34582
|
+
sourceFileToNodeChildren.set(sourceFile, map22);
|
|
34583
|
+
}
|
|
34584
|
+
map22.set(node, children);
|
|
34560
34585
|
return children;
|
|
34561
34586
|
}
|
|
34562
|
-
function unsetNodeChildren(node) {
|
|
34563
|
-
|
|
34587
|
+
function unsetNodeChildren(node, origSourceFile) {
|
|
34588
|
+
var _a2;
|
|
34589
|
+
if (node.kind === 352) {
|
|
34590
|
+
Debug.fail("Did not expect to unset the children of a SyntaxList.");
|
|
34591
|
+
}
|
|
34592
|
+
(_a2 = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a2.delete(node);
|
|
34593
|
+
}
|
|
34594
|
+
function transferSourceFileChildren(sourceFile, targetSourceFile) {
|
|
34595
|
+
const map22 = sourceFileToNodeChildren.get(sourceFile);
|
|
34596
|
+
if (map22 !== void 0) {
|
|
34597
|
+
sourceFileToNodeChildren.delete(sourceFile);
|
|
34598
|
+
sourceFileToNodeChildren.set(targetSourceFile, map22);
|
|
34599
|
+
}
|
|
34564
34600
|
}
|
|
34565
34601
|
function createEmptyExports(factory2) {
|
|
34566
34602
|
return factory2.createExportDeclaration(
|
|
@@ -37869,7 +37905,7 @@ ${lanes.join("\n")}
|
|
|
37869
37905
|
function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) {
|
|
37870
37906
|
if (isIdentifier3) {
|
|
37871
37907
|
identifierCount++;
|
|
37872
|
-
const pos = getNodePos();
|
|
37908
|
+
const pos = scanner2.hasLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos();
|
|
37873
37909
|
const originalKeywordKind = token();
|
|
37874
37910
|
const text = internIdentifier(scanner2.getTokenValue());
|
|
37875
37911
|
const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape();
|
|
@@ -44711,6 +44747,7 @@ ${lanes.join("\n")}
|
|
|
44711
44747
|
aggressiveChecks
|
|
44712
44748
|
);
|
|
44713
44749
|
result2.impliedNodeFormat = sourceFile.impliedNodeFormat;
|
|
44750
|
+
transferSourceFileChildren(sourceFile, result2);
|
|
44714
44751
|
return result2;
|
|
44715
44752
|
}
|
|
44716
44753
|
IncrementalParser2.updateSourceFile = updateSourceFile2;
|
|
@@ -44746,7 +44783,7 @@ ${lanes.join("\n")}
|
|
|
44746
44783
|
}
|
|
44747
44784
|
}
|
|
44748
44785
|
}
|
|
44749
|
-
function moveElementEntirelyPastChangeRange(element, isArray22, delta, oldText, newText, aggressiveChecks) {
|
|
44786
|
+
function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray22, delta, oldText, newText, aggressiveChecks) {
|
|
44750
44787
|
if (isArray22) {
|
|
44751
44788
|
visitArray2(element);
|
|
44752
44789
|
} else {
|
|
@@ -44758,7 +44795,7 @@ ${lanes.join("\n")}
|
|
|
44758
44795
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
44759
44796
|
text = oldText.substring(node.pos, node.end);
|
|
44760
44797
|
}
|
|
44761
|
-
unsetNodeChildren(node);
|
|
44798
|
+
unsetNodeChildren(node, origSourceFile);
|
|
44762
44799
|
setTextRangePosEnd(node, node.pos + delta, node.end + delta);
|
|
44763
44800
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
44764
44801
|
Debug.assert(text === newText.substring(node.pos, node.end));
|
|
@@ -44832,6 +44869,7 @@ ${lanes.join("\n")}
|
|
|
44832
44869
|
if (child.pos > changeRangeOldEnd) {
|
|
44833
44870
|
moveElementEntirelyPastChangeRange(
|
|
44834
44871
|
child,
|
|
44872
|
+
sourceFile,
|
|
44835
44873
|
/*isArray*/
|
|
44836
44874
|
false,
|
|
44837
44875
|
delta,
|
|
@@ -44844,7 +44882,7 @@ ${lanes.join("\n")}
|
|
|
44844
44882
|
const fullEnd = child.end;
|
|
44845
44883
|
if (fullEnd >= changeStart) {
|
|
44846
44884
|
markAsIntersectingIncrementalChange(child);
|
|
44847
|
-
unsetNodeChildren(child);
|
|
44885
|
+
unsetNodeChildren(child, sourceFile);
|
|
44848
44886
|
adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
44849
44887
|
forEachChild(child, visitNode3, visitArray2);
|
|
44850
44888
|
if (hasJSDocNodes(child)) {
|
|
@@ -44862,6 +44900,7 @@ ${lanes.join("\n")}
|
|
|
44862
44900
|
if (array.pos > changeRangeOldEnd) {
|
|
44863
44901
|
moveElementEntirelyPastChangeRange(
|
|
44864
44902
|
array,
|
|
44903
|
+
sourceFile,
|
|
44865
44904
|
/*isArray*/
|
|
44866
44905
|
true,
|
|
44867
44906
|
delta,
|
|
@@ -45574,7 +45613,6 @@ ${lanes.join("\n")}
|
|
|
45574
45613
|
affectsBuildInfo: true,
|
|
45575
45614
|
showInSimplifiedHelpView: true,
|
|
45576
45615
|
category: Diagnostics.Emit,
|
|
45577
|
-
transpileOptionValue: void 0,
|
|
45578
45616
|
defaultValueDescription: false,
|
|
45579
45617
|
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
|
45580
45618
|
},
|
|
@@ -45903,6 +45941,7 @@ ${lanes.join("\n")}
|
|
|
45903
45941
|
type: "boolean",
|
|
45904
45942
|
affectsEmit: true,
|
|
45905
45943
|
affectsBuildInfo: true,
|
|
45944
|
+
affectsSourceFile: true,
|
|
45906
45945
|
category: Diagnostics.Emit,
|
|
45907
45946
|
description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
|
|
45908
45947
|
defaultValueDescription: false
|
|
@@ -46370,6 +46409,7 @@ ${lanes.join("\n")}
|
|
|
46370
46409
|
affectsEmit: true,
|
|
46371
46410
|
affectsBuildInfo: true,
|
|
46372
46411
|
affectsModuleResolution: true,
|
|
46412
|
+
affectsSourceFile: true,
|
|
46373
46413
|
category: Diagnostics.Language_and_Environment,
|
|
46374
46414
|
description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
|
|
46375
46415
|
defaultValueDescription: "react"
|
|
@@ -56009,7 +56049,8 @@ ${lanes.join("\n")}
|
|
|
56009
56049
|
isUndefinedIdentifierExpression(node) {
|
|
56010
56050
|
Debug.assert(isExpressionNode(node));
|
|
56011
56051
|
return getSymbolAtLocation(node) === undefinedSymbol;
|
|
56012
|
-
}
|
|
56052
|
+
},
|
|
56053
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
56013
56054
|
});
|
|
56014
56055
|
var evaluate = createEvaluator({
|
|
56015
56056
|
evaluateElementAccessExpression,
|
|
@@ -56874,6 +56915,7 @@ ${lanes.join("\n")}
|
|
|
56874
56915
|
};
|
|
56875
56916
|
var amalgamatedDuplicates;
|
|
56876
56917
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
56918
|
+
var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map();
|
|
56877
56919
|
var ambientModulesCache;
|
|
56878
56920
|
var patternAmbientModules;
|
|
56879
56921
|
var patternAmbientModuleAugmentations;
|
|
@@ -57001,6 +57043,21 @@ ${lanes.join("\n")}
|
|
|
57001
57043
|
];
|
|
57002
57044
|
initializeTypeChecker();
|
|
57003
57045
|
return checker;
|
|
57046
|
+
function isDefinitelyReferenceToGlobalSymbolObject(node) {
|
|
57047
|
+
if (!isPropertyAccessExpression(node)) return false;
|
|
57048
|
+
if (!isIdentifier(node.name)) return false;
|
|
57049
|
+
if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false;
|
|
57050
|
+
if (isIdentifier(node.expression)) {
|
|
57051
|
+
return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol(
|
|
57052
|
+
"Symbol",
|
|
57053
|
+
111551 | 1048576,
|
|
57054
|
+
/*diagnostic*/
|
|
57055
|
+
void 0
|
|
57056
|
+
) || unknownSymbol);
|
|
57057
|
+
}
|
|
57058
|
+
if (!isIdentifier(node.expression.expression)) return false;
|
|
57059
|
+
return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol;
|
|
57060
|
+
}
|
|
57004
57061
|
function getCachedType(key) {
|
|
57005
57062
|
return key ? cachedTypes.get(key) : void 0;
|
|
57006
57063
|
}
|
|
@@ -60392,11 +60449,11 @@ ${lanes.join("\n")}
|
|
|
60392
60449
|
function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) {
|
|
60393
60450
|
const originalType = type;
|
|
60394
60451
|
if (addUndefined) {
|
|
60395
|
-
type = getOptionalType(type);
|
|
60452
|
+
type = getOptionalType(type, !isParameter(host2));
|
|
60396
60453
|
}
|
|
60397
60454
|
const clone22 = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2);
|
|
60398
60455
|
if (clone22) {
|
|
60399
|
-
if (addUndefined && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
60456
|
+
if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
60400
60457
|
return factory.createUnionTypeNode([clone22, factory.createKeywordTypeNode(
|
|
60401
60458
|
157
|
|
60402
60459
|
/* UndefinedKeyword */
|
|
@@ -61382,7 +61439,22 @@ ${lanes.join("\n")}
|
|
|
61382
61439
|
}
|
|
61383
61440
|
function shouldUsePlaceholderForProperty(propertySymbol, context) {
|
|
61384
61441
|
var _a2;
|
|
61385
|
-
|
|
61442
|
+
const depth = 3;
|
|
61443
|
+
return !!(getCheckFlags(propertySymbol) & 8192) && (contains2(context.reverseMappedStack, propertySymbol) || ((_a2 = context.reverseMappedStack) == null ? void 0 : _a2[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16) || isDeeplyNestedReverseMappedTypeProperty());
|
|
61444
|
+
function isDeeplyNestedReverseMappedTypeProperty() {
|
|
61445
|
+
var _a3;
|
|
61446
|
+
var _a22;
|
|
61447
|
+
if (((_a3 = (_a22 = context.reverseMappedStack) == null ? void 0 : _a22.length) != null ? _a3 : 0) < depth) {
|
|
61448
|
+
return false;
|
|
61449
|
+
}
|
|
61450
|
+
for (let i = 0; i < depth; i++) {
|
|
61451
|
+
const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i];
|
|
61452
|
+
if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) {
|
|
61453
|
+
return false;
|
|
61454
|
+
}
|
|
61455
|
+
}
|
|
61456
|
+
return true;
|
|
61457
|
+
}
|
|
61386
61458
|
}
|
|
61387
61459
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
61388
61460
|
var _a2;
|
|
@@ -62590,8 +62662,8 @@ ${lanes.join("\n")}
|
|
|
62590
62662
|
}
|
|
62591
62663
|
function serializeTypeForDeclaration(context, declaration, type, symbol) {
|
|
62592
62664
|
var _a3;
|
|
62593
|
-
var _a2;
|
|
62594
|
-
const
|
|
62665
|
+
var _a2, _b;
|
|
62666
|
+
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration);
|
|
62595
62667
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
62596
62668
|
const oldFlags = context.flags;
|
|
62597
62669
|
if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648)) {
|
|
@@ -62602,6 +62674,7 @@ ${lanes.join("\n")}
|
|
|
62602
62674
|
const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol);
|
|
62603
62675
|
if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) {
|
|
62604
62676
|
const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation);
|
|
62677
|
+
const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 && symbol.flags & 16777216 && isOptionalDeclaration(declWithExistingAnnotation) && ((_a2 = symbol.links) == null ? void 0 : _a2.mappedType) && containsNonMissingUndefinedType(type));
|
|
62605
62678
|
const result22 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined);
|
|
62606
62679
|
if (result22) {
|
|
62607
62680
|
context.flags = oldFlags;
|
|
@@ -62612,9 +62685,9 @@ ${lanes.join("\n")}
|
|
|
62612
62685
|
if (type.flags & 8192 && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) {
|
|
62613
62686
|
context.flags |= 1048576;
|
|
62614
62687
|
}
|
|
62615
|
-
const decl = (_a3 = declaration != null ? declaration : symbol.valueDeclaration) != null ? _a3 : (
|
|
62688
|
+
const decl = (_a3 = declaration != null ? declaration : symbol.valueDeclaration) != null ? _a3 : (_b = symbol.declarations) == null ? void 0 : _b[0];
|
|
62616
62689
|
const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0;
|
|
62617
|
-
const result2 = expressionOrTypeToTypeNode(context, expr, type,
|
|
62690
|
+
const result2 = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter);
|
|
62618
62691
|
context.flags = oldFlags;
|
|
62619
62692
|
return result2;
|
|
62620
62693
|
}
|
|
@@ -62656,9 +62729,9 @@ ${lanes.join("\n")}
|
|
|
62656
62729
|
const typePredicate = getTypePredicateOfSignature(signature);
|
|
62657
62730
|
const type = getReturnTypeOfSignature(signature);
|
|
62658
62731
|
if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
|
|
62659
|
-
const annotation =
|
|
62660
|
-
if (annotation
|
|
62661
|
-
const result2 =
|
|
62732
|
+
const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
|
|
62733
|
+
if (annotation) {
|
|
62734
|
+
const result2 = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
|
|
62662
62735
|
if (result2) {
|
|
62663
62736
|
return result2;
|
|
62664
62737
|
}
|
|
@@ -63185,7 +63258,10 @@ ${lanes.join("\n")}
|
|
|
63185
63258
|
);
|
|
63186
63259
|
}
|
|
63187
63260
|
if (isNamedDeclaration(node) && node.name.kind === 167 && !isLateBindableName(node.name)) {
|
|
63188
|
-
if (!
|
|
63261
|
+
if (!hasDynamicName(node)) {
|
|
63262
|
+
return visitEachChild2(node, visitExistingNodeTreeSymbols);
|
|
63263
|
+
}
|
|
63264
|
+
if (!(context.flags & 1 && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1)) {
|
|
63189
63265
|
return void 0;
|
|
63190
63266
|
}
|
|
63191
63267
|
}
|
|
@@ -63318,7 +63394,7 @@ ${lanes.join("\n")}
|
|
|
63318
63394
|
if (result2) {
|
|
63319
63395
|
if (result2.pos !== -1 || result2.end !== -1) {
|
|
63320
63396
|
if (result2 === nodes) {
|
|
63321
|
-
result2 = factory.createNodeArray(nodes, nodes.hasTrailingComma);
|
|
63397
|
+
result2 = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
|
|
63322
63398
|
}
|
|
63323
63399
|
setTextRangePosEnd(result2, -1, -1);
|
|
63324
63400
|
}
|
|
@@ -69753,7 +69829,7 @@ ${lanes.join("\n")}
|
|
|
69753
69829
|
);
|
|
69754
69830
|
}
|
|
69755
69831
|
function createSignatureTypeMapper(signature, typeArguments) {
|
|
69756
|
-
return createTypeMapper(signature.typeParameters, typeArguments);
|
|
69832
|
+
return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments);
|
|
69757
69833
|
}
|
|
69758
69834
|
function getErasedSignature(signature) {
|
|
69759
69835
|
return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature;
|
|
@@ -74602,6 +74678,10 @@ ${lanes.join("\n")}
|
|
|
74602
74678
|
function containsUndefinedType(type) {
|
|
74603
74679
|
return !!((type.flags & 1048576 ? type.types[0] : type).flags & 32768);
|
|
74604
74680
|
}
|
|
74681
|
+
function containsNonMissingUndefinedType(type) {
|
|
74682
|
+
const candidate = type.flags & 1048576 ? type.types[0] : type;
|
|
74683
|
+
return !!(candidate.flags & 32768) && candidate !== missingType;
|
|
74684
|
+
}
|
|
74605
74685
|
function isStringIndexSignatureOnlyType(type) {
|
|
74606
74686
|
return type.flags & 524288 && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 && every(type.types, isStringIndexSignatureOnlyType) || false;
|
|
74607
74687
|
}
|
|
@@ -78482,11 +78562,11 @@ ${lanes.join("\n")}
|
|
|
78482
78562
|
}
|
|
78483
78563
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
78484
78564
|
const cacheKey = source.id + "," + target.id + "," + constraint.id;
|
|
78485
|
-
if (
|
|
78486
|
-
return
|
|
78565
|
+
if (reverseHomomorphicMappedCache.has(cacheKey)) {
|
|
78566
|
+
return reverseHomomorphicMappedCache.get(cacheKey);
|
|
78487
78567
|
}
|
|
78488
78568
|
const type = createReverseMappedType(source, target, constraint);
|
|
78489
|
-
|
|
78569
|
+
reverseHomomorphicMappedCache.set(cacheKey, type);
|
|
78490
78570
|
return type;
|
|
78491
78571
|
}
|
|
78492
78572
|
function isPartiallyInferableType(type) {
|
|
@@ -82041,7 +82121,7 @@ ${lanes.join("\n")}
|
|
|
82041
82121
|
if (!canCollectSymbolAliasAccessabilityData) {
|
|
82042
82122
|
return;
|
|
82043
82123
|
}
|
|
82044
|
-
if (location.flags & 33554432) {
|
|
82124
|
+
if (location.flags & 33554432 && !isPropertySignature(location) && !isPropertyDeclaration(location)) {
|
|
82045
82125
|
return;
|
|
82046
82126
|
}
|
|
82047
82127
|
switch (hint) {
|
|
@@ -85238,11 +85318,7 @@ ${lanes.join("\n")}
|
|
|
85238
85318
|
checkGrammarJsxElement(node);
|
|
85239
85319
|
}
|
|
85240
85320
|
checkJsxPreconditions(node);
|
|
85241
|
-
|
|
85242
|
-
node,
|
|
85243
|
-
4
|
|
85244
|
-
/* Jsx */
|
|
85245
|
-
);
|
|
85321
|
+
markJsxAliasReferenced(node);
|
|
85246
85322
|
if (isNodeOpeningLikeElement) {
|
|
85247
85323
|
const jsxOpeningLikeNode = node;
|
|
85248
85324
|
const sig = getResolvedSignature(jsxOpeningLikeNode);
|
|
@@ -99025,15 +99101,15 @@ ${lanes.join("\n")}
|
|
|
99025
99101
|
function checkChildIdentifiers(node2) {
|
|
99026
99102
|
forEachNodeRecursively(node2, checkIdentifiers);
|
|
99027
99103
|
}
|
|
99104
|
+
function isExpressionNodeOrShorthandPropertyAssignmentName(node2) {
|
|
99105
|
+
var _a2;
|
|
99106
|
+
return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && ((_a2 = node2.parent.objectAssignmentInitializer) != null ? _a2 : node2.parent.name) === node2;
|
|
99107
|
+
}
|
|
99028
99108
|
function checkSingleIdentifier(node2) {
|
|
99029
99109
|
const nodeLinks2 = getNodeLinks(node2);
|
|
99030
99110
|
nodeLinks2.calculatedFlags |= 536870912 | 16384 | 32768;
|
|
99031
|
-
if (isIdentifier(node2) &&
|
|
99032
|
-
const s =
|
|
99033
|
-
node2,
|
|
99034
|
-
/*ignoreErrors*/
|
|
99035
|
-
true
|
|
99036
|
-
);
|
|
99111
|
+
if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) {
|
|
99112
|
+
const s = getResolvedSymbol(node2);
|
|
99037
99113
|
if (s && s !== unknownSymbol) {
|
|
99038
99114
|
checkIdentifierCalculateNodeCheckFlags(node2, s);
|
|
99039
99115
|
}
|
|
@@ -99551,7 +99627,8 @@ ${lanes.join("\n")}
|
|
|
99551
99627
|
resolveExternalModuleSymbol(sym);
|
|
99552
99628
|
return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
|
|
99553
99629
|
},
|
|
99554
|
-
isImportRequiredByAugmentation
|
|
99630
|
+
isImportRequiredByAugmentation,
|
|
99631
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
99555
99632
|
};
|
|
99556
99633
|
function isImportRequiredByAugmentation(node) {
|
|
99557
99634
|
const file = getSourceFileOfNode(node);
|
|
@@ -126862,6 +126939,7 @@ ${lanes.join("\n")}
|
|
|
126862
126939
|
}
|
|
126863
126940
|
function reportInferenceFallback(node) {
|
|
126864
126941
|
if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return;
|
|
126942
|
+
if (getSourceFileOfNode(node) !== currentSourceFile) return;
|
|
126865
126943
|
if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) {
|
|
126866
126944
|
reportExpandoFunctionErrors(node);
|
|
126867
126945
|
} else {
|
|
@@ -127521,15 +127599,17 @@ ${lanes.join("\n")}
|
|
|
127521
127599
|
if (isDeclarationAndNotVisible(input)) return;
|
|
127522
127600
|
if (hasDynamicName(input)) {
|
|
127523
127601
|
if (isolatedDeclarations) {
|
|
127524
|
-
if (
|
|
127525
|
-
|
|
127526
|
-
|
|
127527
|
-
|
|
127528
|
-
|
|
127529
|
-
|
|
127530
|
-
|
|
127531
|
-
|
|
127532
|
-
|
|
127602
|
+
if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
|
|
127603
|
+
if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
|
|
127604
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
|
|
127605
|
+
return;
|
|
127606
|
+
} else if (
|
|
127607
|
+
// Type declarations just need to double-check that the input computed name is an entity name expression
|
|
127608
|
+
(isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression)
|
|
127609
|
+
) {
|
|
127610
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));
|
|
127611
|
+
return;
|
|
127612
|
+
}
|
|
127533
127613
|
}
|
|
127534
127614
|
} else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
|
|
127535
127615
|
return;
|
|
@@ -129409,7 +129489,7 @@ ${lanes.join("\n")}
|
|
|
129409
129489
|
noEmitHelpers: true,
|
|
129410
129490
|
module: compilerOptions.module,
|
|
129411
129491
|
target: compilerOptions.target,
|
|
129412
|
-
sourceMap:
|
|
129492
|
+
sourceMap: emitOnly !== 2 && compilerOptions.declarationMap,
|
|
129413
129493
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
129414
129494
|
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
129415
129495
|
onlyPrintJsDocStyle: true,
|
|
@@ -129636,7 +129716,8 @@ ${lanes.join("\n")}
|
|
|
129636
129716
|
getJsxFragmentFactoryEntity: notImplemented,
|
|
129637
129717
|
isBindingCapturedByNode: notImplemented,
|
|
129638
129718
|
getDeclarationStatementsForSourceFile: notImplemented,
|
|
129639
|
-
isImportRequiredByAugmentation: notImplemented
|
|
129719
|
+
isImportRequiredByAugmentation: notImplemented,
|
|
129720
|
+
isDefinitelyReferenceToGlobalSymbolObject: notImplemented
|
|
129640
129721
|
};
|
|
129641
129722
|
var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
|
|
129642
129723
|
var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
|
|
@@ -138034,7 +138115,8 @@ ${lanes.join("\n")}
|
|
|
138034
138115
|
if (options.outDir || // there is --outDir specified
|
|
138035
138116
|
options.rootDir || // there is --rootDir specified
|
|
138036
138117
|
options.sourceRoot || // there is --sourceRoot specified
|
|
138037
|
-
options.mapRoot
|
|
138118
|
+
options.mapRoot || // there is --mapRoot specified
|
|
138119
|
+
getEmitDeclarations(options) && options.declarationDir) {
|
|
138038
138120
|
const dir = getCommonSourceDirectory2();
|
|
138039
138121
|
if (options.outDir && dir === "" && files.some((file) => getRootLength2(file.fileName) > 1)) {
|
|
138040
138122
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
@@ -139142,8 +139224,7 @@ ${lanes.join("\n")}
|
|
|
139142
139224
|
);
|
|
139143
139225
|
},
|
|
139144
139226
|
cancellationToken,
|
|
139145
|
-
|
|
139146
|
-
true,
|
|
139227
|
+
2,
|
|
139147
139228
|
/*customTransformers*/
|
|
139148
139229
|
void 0,
|
|
139149
139230
|
/*forceDtsEmit*/
|
|
@@ -146602,7 +146683,7 @@ ${lanes.join("\n")}
|
|
|
146602
146683
|
expression,
|
|
146603
146684
|
/*includeBigInt*/
|
|
146604
146685
|
false
|
|
146605
|
-
)) {
|
|
146686
|
+
) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) {
|
|
146606
146687
|
context.tracker.reportInferenceFallback(prop.name);
|
|
146607
146688
|
result2 = false;
|
|
146608
146689
|
}
|
|
@@ -150720,6 +150801,7 @@ ${lanes.join("\n")}
|
|
|
150720
150801
|
function forEachNameOfDefaultExport(defaultExport, checker, compilerOptions, preferCapitalizedNames, cb) {
|
|
150721
150802
|
let chain;
|
|
150722
150803
|
let current2 = defaultExport;
|
|
150804
|
+
const seen = /* @__PURE__ */ new Map();
|
|
150723
150805
|
while (current2) {
|
|
150724
150806
|
const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current2);
|
|
150725
150807
|
if (fromDeclaration) {
|
|
@@ -150731,6 +150813,7 @@ ${lanes.join("\n")}
|
|
|
150731
150813
|
if (final) return final;
|
|
150732
150814
|
}
|
|
150733
150815
|
chain = append4(chain, current2);
|
|
150816
|
+
if (!addToSeen(seen, current2)) break;
|
|
150734
150817
|
current2 = current2.flags & 2097152 ? checker.getImmediateAliasedSymbol(current2) : void 0;
|
|
150735
150818
|
}
|
|
150736
150819
|
for (const symbol of chain != null ? chain : emptyArray) {
|
|
@@ -153342,7 +153425,7 @@ ${lanes.join("\n")}
|
|
|
153342
153425
|
}
|
|
153343
153426
|
const options = program.getCompilerOptions();
|
|
153344
153427
|
const outPath = options.outFile;
|
|
153345
|
-
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(),
|
|
153428
|
+
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), program);
|
|
153346
153429
|
if (declarationPath === void 0) return void 0;
|
|
153347
153430
|
const newLoc = getDocumentPositionMapper2(declarationPath, info.fileName).getGeneratedPosition(info);
|
|
153348
153431
|
return newLoc === info ? void 0 : newLoc;
|
|
@@ -160437,10 +160520,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160437
160520
|
getChildAt(index2, sourceFile) {
|
|
160438
160521
|
return this.getChildren(sourceFile)[index2];
|
|
160439
160522
|
}
|
|
160440
|
-
getChildren(sourceFile) {
|
|
160523
|
+
getChildren(sourceFile = getSourceFileOfNode(this)) {
|
|
160441
160524
|
var _a2;
|
|
160442
160525
|
this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");
|
|
160443
|
-
return (_a2 = getNodeChildren(this)) != null ? _a2 : setNodeChildren(this, createChildren(this, sourceFile));
|
|
160526
|
+
return (_a2 = getNodeChildren(this, sourceFile)) != null ? _a2 : setNodeChildren(this, sourceFile, createChildren(this, sourceFile));
|
|
160444
160527
|
}
|
|
160445
160528
|
getFirstToken(sourceFile) {
|
|
160446
160529
|
this.assertHasRealPosition();
|
|
@@ -160525,7 +160608,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160525
160608
|
pos = node.end;
|
|
160526
160609
|
}
|
|
160527
160610
|
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
160528
|
-
|
|
160611
|
+
list._children = children;
|
|
160529
160612
|
return list;
|
|
160530
160613
|
}
|
|
160531
160614
|
var TokenOrIdentifierObject = class {
|
|
@@ -174128,6 +174211,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
174128
174211
|
function visit2(node) {
|
|
174129
174212
|
if (isLiteralImportTypeNode(node) && node.qualifier) {
|
|
174130
174213
|
const firstIdentifier = getFirstIdentifier(node.qualifier);
|
|
174214
|
+
if (!firstIdentifier.symbol) {
|
|
174215
|
+
return visitEachChild(
|
|
174216
|
+
node,
|
|
174217
|
+
visit2,
|
|
174218
|
+
/*context*/
|
|
174219
|
+
void 0
|
|
174220
|
+
);
|
|
174221
|
+
}
|
|
174131
174222
|
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
|
|
174132
174223
|
const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;
|
|
174133
174224
|
symbols = append4(symbols, firstIdentifier.symbol);
|
|
@@ -180714,7 +180805,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
180714
180805
|
return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);
|
|
180715
180806
|
}
|
|
180716
180807
|
function getSourceFileLikeForImportDeclaration(node) {
|
|
180717
|
-
if (node.kind === 213) {
|
|
180808
|
+
if (node.kind === 213 || node.kind === 351) {
|
|
180718
180809
|
return node.getSourceFile();
|
|
180719
180810
|
}
|
|
180720
180811
|
const { parent: parent2 } = node;
|
|
@@ -195116,6 +195207,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
195116
195207
|
trace: () => trace,
|
|
195117
195208
|
tracing: () => tracing,
|
|
195118
195209
|
tracingEnabled: () => tracingEnabled,
|
|
195210
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
195119
195211
|
transform: () => transform2,
|
|
195120
195212
|
transformClassFields: () => transformClassFields,
|
|
195121
195213
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -197930,7 +198022,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
197930
198022
|
this.generatedFilesMap.forEach((watcher, source) => {
|
|
197931
198023
|
const sourceFile = this.program.getSourceFileByPath(source);
|
|
197932
198024
|
if (!sourceFile || sourceFile.resolvedPath !== source || !this.isValidGeneratedFileWatcher(
|
|
197933
|
-
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.
|
|
198025
|
+
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.program),
|
|
197934
198026
|
watcher
|
|
197935
198027
|
)) {
|
|
197936
198028
|
closeFileWatcherOf(watcher);
|
|
@@ -233455,19 +233547,19 @@ __export(compiler_exports, {
|
|
|
233455
233547
|
versions: () => versions
|
|
233456
233548
|
});
|
|
233457
233549
|
module.exports = __toCommonJS(compiler_exports);
|
|
233458
|
-
var import_typescript69 = __toESM(
|
|
233550
|
+
var import_typescript69 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
233459
233551
|
|
|
233460
233552
|
// src/version.ts
|
|
233461
|
-
var buildId = "
|
|
233553
|
+
var buildId = "1724994101";
|
|
233462
233554
|
var minfyJsId = "terser5.31.1_7";
|
|
233463
233555
|
var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
|
|
233464
233556
|
var parse5Version = "7.1.2";
|
|
233465
233557
|
var rollupVersion = "2.56.3";
|
|
233466
233558
|
var jqueryVersion = "4.0.0-pre";
|
|
233467
233559
|
var terserVersion = "5.31.1";
|
|
233468
|
-
var typescriptVersion = "5.5.
|
|
233469
|
-
var vermoji = "\u{
|
|
233470
|
-
var version = "4.21.0-dev.
|
|
233560
|
+
var typescriptVersion = "5.5.4";
|
|
233561
|
+
var vermoji = "\u{1F43F}";
|
|
233562
|
+
var version = "4.21.0-dev.1724994101.9c09faa";
|
|
233471
233563
|
var versions = {
|
|
233472
233564
|
stencil: version,
|
|
233473
233565
|
parse5: parse5Version,
|
|
@@ -234705,7 +234797,7 @@ var validateComponentTag = (tag) => {
|
|
|
234705
234797
|
};
|
|
234706
234798
|
|
|
234707
234799
|
// src/compiler/compiler.ts
|
|
234708
|
-
var import_typescript65 = __toESM(
|
|
234800
|
+
var import_typescript65 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234709
234801
|
|
|
234710
234802
|
// src/compiler/build/compiler-ctx.ts
|
|
234711
234803
|
var import_path4 = require("path");
|
|
@@ -234894,10 +234986,10 @@ var resetModuleLegacy = (moduleFile) => {
|
|
|
234894
234986
|
};
|
|
234895
234987
|
|
|
234896
234988
|
// src/compiler/transpile/create-build-program.ts
|
|
234897
|
-
var import_typescript2 = __toESM(
|
|
234989
|
+
var import_typescript2 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234898
234990
|
|
|
234899
234991
|
// src/compiler/transpile/ts-config.ts
|
|
234900
|
-
var import_typescript = __toESM(
|
|
234992
|
+
var import_typescript = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234901
234993
|
var getTsOptionsToExtend = (config) => {
|
|
234902
234994
|
const tsOptions = {
|
|
234903
234995
|
experimentalDecorators: true,
|
|
@@ -236507,17 +236599,17 @@ var transformToAbs = (copyTask, dest) => {
|
|
|
236507
236599
|
};
|
|
236508
236600
|
|
|
236509
236601
|
// src/compiler/output-targets/dist-collection/index.ts
|
|
236510
|
-
var import_typescript6 = __toESM(
|
|
236602
|
+
var import_typescript6 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236511
236603
|
|
|
236512
236604
|
// src/compiler/transformers/map-imports-to-path-aliases.ts
|
|
236513
236605
|
var import_path7 = require("path");
|
|
236514
|
-
var import_typescript5 = __toESM(
|
|
236606
|
+
var import_typescript5 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236515
236607
|
|
|
236516
236608
|
// src/compiler/transformers/transform-utils.ts
|
|
236517
|
-
var import_typescript4 = __toESM(
|
|
236609
|
+
var import_typescript4 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236518
236610
|
|
|
236519
236611
|
// src/compiler/transformers/type-library.ts
|
|
236520
|
-
var import_typescript3 = __toESM(
|
|
236612
|
+
var import_typescript3 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236521
236613
|
var TYPE_LIBRARY = {};
|
|
236522
236614
|
function addToLibrary(type, typeName, checker, pathToTypeModule) {
|
|
236523
236615
|
pathToTypeModule = relative(process.cwd(), pathToTypeModule);
|
|
@@ -239703,10 +239795,10 @@ var createCustomResolverAsync = (sys, inMemoryFs, exts) => {
|
|
|
239703
239795
|
|
|
239704
239796
|
// src/compiler/bundle/app-data-plugin.ts
|
|
239705
239797
|
var import_path13 = require("path");
|
|
239706
|
-
var import_typescript8 = __toESM(
|
|
239798
|
+
var import_typescript8 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
239707
239799
|
|
|
239708
239800
|
// src/compiler/transformers/remove-collection-imports.ts
|
|
239709
|
-
var import_typescript7 = __toESM(
|
|
239801
|
+
var import_typescript7 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
239710
239802
|
var removeCollectionImports = (compilerCtx) => {
|
|
239711
239803
|
return () => {
|
|
239712
239804
|
return (tsSourceFile) => {
|
|
@@ -241100,15 +241192,15 @@ var serverPlugin = (config, platform) => {
|
|
|
241100
241192
|
|
|
241101
241193
|
// src/compiler/bundle/typescript-plugin.ts
|
|
241102
241194
|
var import_path24 = require("path");
|
|
241103
|
-
var import_typescript11 = __toESM(
|
|
241195
|
+
var import_typescript11 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241104
241196
|
|
|
241105
241197
|
// src/compiler/sys/typescript/typescript-resolve-module.ts
|
|
241106
241198
|
var import_path23 = require("path");
|
|
241107
|
-
var import_typescript10 = __toESM(
|
|
241199
|
+
var import_typescript10 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241108
241200
|
|
|
241109
241201
|
// src/compiler/sys/typescript/typescript-sys.ts
|
|
241110
241202
|
var import_path22 = require("path");
|
|
241111
|
-
var import_typescript9 = __toESM(
|
|
241203
|
+
var import_typescript9 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241112
241204
|
|
|
241113
241205
|
// src/compiler/sys/environment.ts
|
|
241114
241206
|
var IS_WINDOWS_ENV = process.platform === "win32";
|
|
@@ -241451,7 +241543,7 @@ var userIndexPlugin = (config, compilerCtx) => {
|
|
|
241451
241543
|
|
|
241452
241544
|
// src/compiler/optimize/optimize-module.ts
|
|
241453
241545
|
var import_merge_source_map = __toESM(require_merge_source_map());
|
|
241454
|
-
var import_typescript12 = __toESM(
|
|
241546
|
+
var import_typescript12 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241455
241547
|
|
|
241456
241548
|
// node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
241457
241549
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
@@ -250613,7 +250705,7 @@ var getTreeshakeOption = (config, bundleOpts) => {
|
|
|
250613
250705
|
};
|
|
250614
250706
|
|
|
250615
250707
|
// src/compiler/transformers/component-native/add-define-custom-element-function.ts
|
|
250616
|
-
var import_typescript13 = __toESM(
|
|
250708
|
+
var import_typescript13 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250617
250709
|
var addDefineCustomElementFunctions = (compilerCtx, components, outputTarget) => {
|
|
250618
250710
|
return () => {
|
|
250619
250711
|
return (tsSourceFile) => {
|
|
@@ -250752,10 +250844,10 @@ function createAutoDefinitionExpression(componentName) {
|
|
|
250752
250844
|
}
|
|
250753
250845
|
|
|
250754
250846
|
// src/compiler/transformers/component-native/proxy-custom-element-function.ts
|
|
250755
|
-
var import_typescript16 = __toESM(
|
|
250847
|
+
var import_typescript16 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250756
250848
|
|
|
250757
250849
|
// src/compiler/transformers/add-component-meta-proxy.ts
|
|
250758
|
-
var import_typescript14 = __toESM(
|
|
250850
|
+
var import_typescript14 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250759
250851
|
|
|
250760
250852
|
// src/compiler/transformers/core-runtime-apis.ts
|
|
250761
250853
|
var CREATE_EVENT = "__stencil_createEvent";
|
|
@@ -250822,7 +250914,7 @@ var createClassMetadataProxy = (compilerMeta, clazz) => {
|
|
|
250822
250914
|
};
|
|
250823
250915
|
|
|
250824
250916
|
// src/compiler/transformers/add-imports.ts
|
|
250825
|
-
var import_typescript15 = __toESM(
|
|
250917
|
+
var import_typescript15 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250826
250918
|
var addImports = (transformOpts, tsSourceFile, importFnNames, importPath) => {
|
|
250827
250919
|
if (importFnNames.length === 0) {
|
|
250828
250920
|
return tsSourceFile;
|
|
@@ -250905,10 +250997,10 @@ var proxyCustomElement = (compilerCtx, transformOpts) => {
|
|
|
250905
250997
|
};
|
|
250906
250998
|
|
|
250907
250999
|
// src/compiler/transformers/component-native/tranform-to-native-component.ts
|
|
250908
|
-
var import_typescript30 = __toESM(
|
|
251000
|
+
var import_typescript30 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250909
251001
|
|
|
250910
251002
|
// src/compiler/transformers/define-custom-element.ts
|
|
250911
|
-
var import_typescript17 = __toESM(
|
|
251003
|
+
var import_typescript17 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250912
251004
|
var defineCustomElement = (tsSourceFile, moduleFile, transformOpts) => {
|
|
250913
251005
|
let statements = tsSourceFile.statements.slice();
|
|
250914
251006
|
statements.push(
|
|
@@ -250974,7 +251066,7 @@ var removeComponentCjsExport = (statements, moduleFile) => {
|
|
|
250974
251066
|
};
|
|
250975
251067
|
|
|
250976
251068
|
// src/compiler/transformers/style-imports.ts
|
|
250977
|
-
var import_typescript18 = __toESM(
|
|
251069
|
+
var import_typescript18 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250978
251070
|
var updateStyleImports = (transformOpts, tsSourceFile, moduleFile) => {
|
|
250979
251071
|
if (transformOpts.module === "cjs") {
|
|
250980
251072
|
return updateCjsStyleRequires(transformOpts, tsSourceFile, moduleFile);
|
|
@@ -251096,10 +251188,10 @@ var getStyleImportPath = (transformOpts, tsSourceFile, cmp, style, importPath) =
|
|
|
251096
251188
|
};
|
|
251097
251189
|
|
|
251098
251190
|
// src/compiler/transformers/component-native/native-component.ts
|
|
251099
|
-
var import_typescript29 = __toESM(
|
|
251191
|
+
var import_typescript29 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251100
251192
|
|
|
251101
251193
|
// src/compiler/transformers/host-data-transform.ts
|
|
251102
|
-
var import_typescript19 = __toESM(
|
|
251194
|
+
var import_typescript19 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251103
251195
|
var transformHostData = (classElements, moduleFile) => {
|
|
251104
251196
|
const hasHostData = classElements.some(
|
|
251105
251197
|
(e) => import_typescript19.default.isMethodDeclaration(e) && e.name.escapedText === "hostData"
|
|
@@ -251166,7 +251258,7 @@ var syntheticRender = (moduleFile, hasRender) => {
|
|
|
251166
251258
|
var INTERNAL_RENDER = "__stencil_render";
|
|
251167
251259
|
|
|
251168
251260
|
// src/compiler/transformers/remove-static-meta-properties.ts
|
|
251169
|
-
var import_typescript20 = __toESM(
|
|
251261
|
+
var import_typescript20 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251170
251262
|
var removeStaticMetaProperties = (classNode) => {
|
|
251171
251263
|
if (classNode.members == null) {
|
|
251172
251264
|
return [];
|
|
@@ -251206,7 +251298,7 @@ var STATIC_GETTERS_TO_REMOVE = [
|
|
|
251206
251298
|
];
|
|
251207
251299
|
|
|
251208
251300
|
// src/compiler/transformers/update-component-class.ts
|
|
251209
|
-
var import_typescript21 = __toESM(
|
|
251301
|
+
var import_typescript21 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251210
251302
|
var updateComponentClass = (transformOpts, classNode, heritageClauses, members) => {
|
|
251211
251303
|
var _a, _b, _c;
|
|
251212
251304
|
let classModifiers = (_b = (_a = retrieveTsModifiers(classNode)) == null ? void 0 : _a.slice()) != null ? _b : [];
|
|
@@ -251274,7 +251366,7 @@ var addWatchers = (classMembers, cmp) => {
|
|
|
251274
251366
|
};
|
|
251275
251367
|
|
|
251276
251368
|
// src/compiler/transformers/component-native/native-connected-callback.ts
|
|
251277
|
-
var import_typescript22 = __toESM(
|
|
251369
|
+
var import_typescript22 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251278
251370
|
var addNativeConnectedCallback = (classMembers, cmp) => {
|
|
251279
251371
|
if (cmp.isPlain && cmp.hasRenderFn) {
|
|
251280
251372
|
const fnCall = import_typescript22.default.factory.createExpressionStatement(
|
|
@@ -251321,10 +251413,10 @@ var addNativeConnectedCallback = (classMembers, cmp) => {
|
|
|
251321
251413
|
var CONNECTED_CALLBACK = "connectedCallback";
|
|
251322
251414
|
|
|
251323
251415
|
// src/compiler/transformers/component-native/native-constructor.ts
|
|
251324
|
-
var import_typescript25 = __toESM(
|
|
251416
|
+
var import_typescript25 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251325
251417
|
|
|
251326
251418
|
// src/compiler/transformers/create-event.ts
|
|
251327
|
-
var import_typescript23 = __toESM(
|
|
251419
|
+
var import_typescript23 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251328
251420
|
var addCreateEvents = (moduleFile, cmp) => {
|
|
251329
251421
|
return cmp.events.map((ev) => {
|
|
251330
251422
|
addCoreRuntimeApi(moduleFile, RUNTIME_APIS.createEvent);
|
|
@@ -251355,7 +251447,7 @@ var computeFlags = (eventMeta) => {
|
|
|
251355
251447
|
};
|
|
251356
251448
|
|
|
251357
251449
|
// src/compiler/transformers/component-native/attach-internals.ts
|
|
251358
|
-
var import_typescript24 = __toESM(
|
|
251450
|
+
var import_typescript24 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251359
251451
|
function createNativeAttachInternalsBinding(cmp) {
|
|
251360
251452
|
if (cmp.formAssociated && cmp.attachInternalsMemberName) {
|
|
251361
251453
|
return [
|
|
@@ -251422,7 +251514,7 @@ var nativeAttachShadowStatement = () => {
|
|
|
251422
251514
|
};
|
|
251423
251515
|
|
|
251424
251516
|
// src/compiler/transformers/component-native/native-element-getter.ts
|
|
251425
|
-
var import_typescript26 = __toESM(
|
|
251517
|
+
var import_typescript26 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251426
251518
|
var addNativeElementGetter = (classMembers, cmp) => {
|
|
251427
251519
|
if (cmp.elementRef) {
|
|
251428
251520
|
const getter = import_typescript26.default.factory.createGetAccessorDeclaration(
|
|
@@ -251779,10 +251871,10 @@ var scopeCss = (cssText, scopeId) => {
|
|
|
251779
251871
|
};
|
|
251780
251872
|
|
|
251781
251873
|
// src/compiler/transformers/component-native/native-static-style.ts
|
|
251782
|
-
var import_typescript28 = __toESM(
|
|
251874
|
+
var import_typescript28 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251783
251875
|
|
|
251784
251876
|
// src/compiler/transformers/add-static-style.ts
|
|
251785
|
-
var import_typescript27 = __toESM(
|
|
251877
|
+
var import_typescript27 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251786
251878
|
var addStaticStyleGetterWithinClass = (classMembers, cmp) => {
|
|
251787
251879
|
const styleLiteral = getStyleLiteral(cmp);
|
|
251788
251880
|
if (styleLiteral) {
|
|
@@ -252000,7 +252092,7 @@ var nativeComponentTransform = (compilerCtx, transformOpts) => {
|
|
|
252000
252092
|
|
|
252001
252093
|
// src/compiler/transformers/rewrite-aliased-paths.ts
|
|
252002
252094
|
var import_path25 = require("path");
|
|
252003
|
-
var import_typescript31 = __toESM(
|
|
252095
|
+
var import_typescript31 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252004
252096
|
function rewriteAliasedDTSImportPaths(transformCtx) {
|
|
252005
252097
|
const compilerHost = import_typescript31.default.createCompilerHost(transformCtx.getCompilerOptions());
|
|
252006
252098
|
return (tsBundleOrSourceFile) => {
|
|
@@ -252087,7 +252179,7 @@ function rewriteAliasedImport(compilerHost, transformCtx, sourceFilePath, node)
|
|
|
252087
252179
|
}
|
|
252088
252180
|
|
|
252089
252181
|
// src/compiler/transformers/update-stencil-core-import.ts
|
|
252090
|
-
var import_typescript32 = __toESM(
|
|
252182
|
+
var import_typescript32 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252091
252183
|
var updateStencilCoreImports = (updatedCoreImportPath) => {
|
|
252092
252184
|
return () => {
|
|
252093
252185
|
return (tsSourceFile) => {
|
|
@@ -252507,16 +252599,16 @@ var getCustomBeforeTransformers = (config, compilerCtx, components, outputTarget
|
|
|
252507
252599
|
};
|
|
252508
252600
|
|
|
252509
252601
|
// src/compiler/transformers/component-hydrate/tranform-to-hydrate-component.ts
|
|
252510
|
-
var import_typescript37 = __toESM(
|
|
252602
|
+
var import_typescript37 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252511
252603
|
|
|
252512
252604
|
// src/compiler/transformers/component-hydrate/hydrate-component.ts
|
|
252513
|
-
var import_typescript36 = __toESM(
|
|
252605
|
+
var import_typescript36 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252514
252606
|
|
|
252515
252607
|
// src/compiler/transformers/component-lazy/lazy-constructor.ts
|
|
252516
|
-
var import_typescript34 = __toESM(
|
|
252608
|
+
var import_typescript34 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252517
252609
|
|
|
252518
252610
|
// src/compiler/transformers/component-lazy/attach-internals.ts
|
|
252519
|
-
var import_typescript33 = __toESM(
|
|
252611
|
+
var import_typescript33 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252520
252612
|
|
|
252521
252613
|
// src/compiler/transformers/component-lazy/constants.ts
|
|
252522
252614
|
var HOST_REF_ARG = "hostRef";
|
|
@@ -252640,7 +252732,7 @@ var registerInstanceStatement = (moduleFile) => {
|
|
|
252640
252732
|
};
|
|
252641
252733
|
|
|
252642
252734
|
// src/compiler/transformers/component-lazy/lazy-element-getter.ts
|
|
252643
|
-
var import_typescript35 = __toESM(
|
|
252735
|
+
var import_typescript35 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252644
252736
|
var addLazyElementGetter = (classMembers, moduleFile, cmp) => {
|
|
252645
252737
|
if (cmp.elementRef) {
|
|
252646
252738
|
addCoreRuntimeApi(moduleFile, RUNTIME_APIS.getElement);
|
|
@@ -253355,7 +253447,7 @@ var generateModuleGraph = (cmps, bundleModules) => {
|
|
|
253355
253447
|
};
|
|
253356
253448
|
|
|
253357
253449
|
// src/compiler/transformers/component-lazy/transform-lazy-component.ts
|
|
253358
|
-
var import_typescript38 = __toESM(
|
|
253450
|
+
var import_typescript38 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
253359
253451
|
|
|
253360
253452
|
// src/compiler/transformers/component-lazy/lazy-component.ts
|
|
253361
253453
|
var updateLazyComponentClass = (transformOpts, styleStatements, classNode, moduleFile, cmp) => {
|
|
@@ -257097,7 +257189,7 @@ var sortImportNames = (a, b) => {
|
|
|
257097
257189
|
|
|
257098
257190
|
// src/compiler/types/update-import-refs.ts
|
|
257099
257191
|
var import_path41 = require("path");
|
|
257100
|
-
var import_typescript39 = __toESM(
|
|
257192
|
+
var import_typescript39 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
257101
257193
|
var updateReferenceTypeImports = (importDataObj, typeCounts, cmp, filePath, config) => {
|
|
257102
257194
|
const updateImportReferences = updateImportReferenceFactory(typeCounts, filePath, config);
|
|
257103
257195
|
return [...cmp.properties, ...cmp.events, ...cmp.methods].filter(
|
|
@@ -257650,7 +257742,7 @@ var getRegisterSwScript = (doc, buildCtx, swUrl) => {
|
|
|
257650
257742
|
};
|
|
257651
257743
|
|
|
257652
257744
|
// src/compiler/html/inline-esm-import.ts
|
|
257653
|
-
var import_typescript40 = __toESM(
|
|
257745
|
+
var import_typescript40 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
257654
257746
|
|
|
257655
257747
|
// src/compiler/output-targets/copy/hashed-copy.ts
|
|
257656
257748
|
var import_path44 = require("path");
|
|
@@ -258115,7 +258207,7 @@ function resolveTransitiveDependents(cmp, cmps) {
|
|
|
258115
258207
|
}
|
|
258116
258208
|
|
|
258117
258209
|
// src/compiler/transformers/automatic-key-insertion/index.ts
|
|
258118
|
-
var import_typescript41 = __toESM(
|
|
258210
|
+
var import_typescript41 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258119
258211
|
|
|
258120
258212
|
// src/compiler/transformers/automatic-key-insertion/utils.ts
|
|
258121
258213
|
var import_crypto2 = require("crypto");
|
|
@@ -258232,13 +258324,13 @@ function attrNameToString(attr) {
|
|
|
258232
258324
|
}
|
|
258233
258325
|
|
|
258234
258326
|
// src/compiler/transformers/decorators-to-static/convert-decorators.ts
|
|
258235
|
-
var import_typescript54 = __toESM(
|
|
258327
|
+
var import_typescript54 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258236
258328
|
|
|
258237
258329
|
// src/compiler/transformers/decorators-to-static/attach-internals.ts
|
|
258238
|
-
var import_typescript43 = __toESM(
|
|
258330
|
+
var import_typescript43 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258239
258331
|
|
|
258240
258332
|
// src/compiler/transformers/decorators-to-static/decorator-utils.ts
|
|
258241
|
-
var import_typescript42 = __toESM(
|
|
258333
|
+
var import_typescript42 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258242
258334
|
var getDecoratorParameters = (decorator, typeChecker) => {
|
|
258243
258335
|
if (!import_typescript42.default.isCallExpression(decorator.expression)) {
|
|
258244
258336
|
return [];
|
|
@@ -258284,11 +258376,11 @@ var attachInternalsDecoratorsToStatic = (diagnostics, decoratedMembers, newMembe
|
|
|
258284
258376
|
};
|
|
258285
258377
|
|
|
258286
258378
|
// src/compiler/transformers/decorators-to-static/component-decorator.ts
|
|
258287
|
-
var import_typescript45 = __toESM(
|
|
258379
|
+
var import_typescript45 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258288
258380
|
|
|
258289
258381
|
// src/compiler/transformers/decorators-to-static/style-to-static.ts
|
|
258290
258382
|
var import_path45 = require("path");
|
|
258291
|
-
var import_typescript44 = __toESM(
|
|
258383
|
+
var import_typescript44 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258292
258384
|
var styleToStatic = (newMembers, componentOptions) => {
|
|
258293
258385
|
const defaultModeStyles = [];
|
|
258294
258386
|
if (componentOptions.styleUrls) {
|
|
@@ -258496,7 +258588,7 @@ var MEMBER_DECORATORS_TO_REMOVE = [
|
|
|
258496
258588
|
var CONSTRUCTOR_DEFINED_MEMBER_DECORATORS = ["State", "Prop"];
|
|
258497
258589
|
|
|
258498
258590
|
// src/compiler/transformers/decorators-to-static/element-decorator.ts
|
|
258499
|
-
var import_typescript46 = __toESM(
|
|
258591
|
+
var import_typescript46 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258500
258592
|
var elementDecoratorsToStatic = (diagnostics, decoratedMembers, newMembers, decoratorName) => {
|
|
258501
258593
|
const elementRefs = decoratedMembers.filter(import_typescript46.default.isPropertyDeclaration).map((prop) => parseElementDecorator(prop, decoratorName)).filter((element) => !!element);
|
|
258502
258594
|
if (elementRefs.length > 0) {
|
|
@@ -258517,7 +258609,7 @@ var parseElementDecorator = (prop, decoratorName) => {
|
|
|
258517
258609
|
};
|
|
258518
258610
|
|
|
258519
258611
|
// src/compiler/transformers/decorators-to-static/event-decorator.ts
|
|
258520
|
-
var import_typescript47 = __toESM(
|
|
258612
|
+
var import_typescript47 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258521
258613
|
var eventDecoratorsToStatic = (diagnostics, decoratedProps, typeChecker, program, newMembers, decoratorName) => {
|
|
258522
258614
|
const events = decoratedProps.filter(import_typescript47.default.isPropertyDeclaration).map((prop) => parseEventDecorator(diagnostics, typeChecker, program, prop, decoratorName)).filter((ev) => !!ev);
|
|
258523
258615
|
if (events.length > 0) {
|
|
@@ -258860,7 +258952,7 @@ var DOM_EVENT_NAMES = new Set(
|
|
|
258860
258952
|
);
|
|
258861
258953
|
|
|
258862
258954
|
// src/compiler/transformers/decorators-to-static/import-alias-map.ts
|
|
258863
|
-
var import_typescript48 = __toESM(
|
|
258955
|
+
var import_typescript48 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258864
258956
|
var ImportAliasMap = class extends Map {
|
|
258865
258957
|
constructor(sourceFile) {
|
|
258866
258958
|
super();
|
|
@@ -258897,7 +258989,7 @@ var ImportAliasMap = class extends Map {
|
|
|
258897
258989
|
};
|
|
258898
258990
|
|
|
258899
258991
|
// src/compiler/transformers/decorators-to-static/listen-decorator.ts
|
|
258900
|
-
var import_typescript49 = __toESM(
|
|
258992
|
+
var import_typescript49 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258901
258993
|
var listenDecoratorsToStatic = (diagnostics, typeChecker, decoratedMembers, newMembers, decoratorName) => {
|
|
258902
258994
|
const listeners = decoratedMembers.filter(import_typescript49.default.isMethodDeclaration).map((method) => parseListenDecorators(diagnostics, typeChecker, method, decoratorName));
|
|
258903
258995
|
const flatListeners = flatOne(listeners);
|
|
@@ -258979,7 +259071,7 @@ var PASSIVE_TRUE_DEFAULTS = /* @__PURE__ */ new Set([
|
|
|
258979
259071
|
]);
|
|
258980
259072
|
|
|
258981
259073
|
// src/compiler/transformers/decorators-to-static/method-decorator.ts
|
|
258982
|
-
var import_typescript50 = __toESM(
|
|
259074
|
+
var import_typescript50 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258983
259075
|
|
|
258984
259076
|
// src/compiler/transformers/reserved-public-members.ts
|
|
258985
259077
|
var validatePublicName = (diagnostics, memberName, decorator, memberType, node) => {
|
|
@@ -259336,7 +259428,7 @@ var validateMethods = (diagnostics, members) => {
|
|
|
259336
259428
|
};
|
|
259337
259429
|
|
|
259338
259430
|
// src/compiler/transformers/decorators-to-static/prop-decorator.ts
|
|
259339
|
-
var import_typescript51 = __toESM(
|
|
259431
|
+
var import_typescript51 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259340
259432
|
var propDecoratorsToStatic = (diagnostics, decoratedProps, typeChecker, program, newMembers, decoratorName) => {
|
|
259341
259433
|
const properties = decoratedProps.filter(import_typescript51.default.isPropertyDeclaration).map((prop) => parsePropDecorator(diagnostics, typeChecker, program, prop, decoratorName)).filter((prop) => prop != null);
|
|
259342
259434
|
if (properties.length > 0) {
|
|
@@ -259490,7 +259582,7 @@ var isAny = (t) => {
|
|
|
259490
259582
|
};
|
|
259491
259583
|
|
|
259492
259584
|
// src/compiler/transformers/decorators-to-static/state-decorator.ts
|
|
259493
|
-
var import_typescript52 = __toESM(
|
|
259585
|
+
var import_typescript52 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259494
259586
|
var stateDecoratorsToStatic = (decoratedProps, newMembers, typeChecker, decoratorName) => {
|
|
259495
259587
|
const states = decoratedProps.filter(import_typescript52.default.isPropertyDeclaration).map((prop) => stateDecoratorToStatic(prop, typeChecker, decoratorName)).filter((state) => !!state);
|
|
259496
259588
|
if (states.length > 0) {
|
|
@@ -259511,7 +259603,7 @@ var stateDecoratorToStatic = (prop, typeChecker, decoratorName) => {
|
|
|
259511
259603
|
};
|
|
259512
259604
|
|
|
259513
259605
|
// src/compiler/transformers/decorators-to-static/watch-decorator.ts
|
|
259514
|
-
var import_typescript53 = __toESM(
|
|
259606
|
+
var import_typescript53 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259515
259607
|
var watchDecoratorsToStatic = (typeChecker, decoratedProps, newMembers, decoratorName) => {
|
|
259516
259608
|
const watchers = decoratedProps.filter(import_typescript53.default.isMethodDeclaration).map((method) => parseWatchDecorator(typeChecker, method, decoratorName));
|
|
259517
259609
|
const flatWatchers = flatOne(watchers);
|
|
@@ -259725,13 +259817,13 @@ var shouldInitializeInConstructor = (member2, importAliasMap) => {
|
|
|
259725
259817
|
|
|
259726
259818
|
// src/compiler/transformers/static-to-meta/parse-static.ts
|
|
259727
259819
|
var import_path51 = require("path");
|
|
259728
|
-
var import_typescript62 = __toESM(
|
|
259820
|
+
var import_typescript62 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259729
259821
|
|
|
259730
259822
|
// src/compiler/transformers/static-to-meta/call-expression.ts
|
|
259731
|
-
var import_typescript56 = __toESM(
|
|
259823
|
+
var import_typescript56 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259732
259824
|
|
|
259733
259825
|
// src/compiler/transformers/static-to-meta/vdom.ts
|
|
259734
|
-
var import_typescript55 = __toESM(
|
|
259826
|
+
var import_typescript55 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259735
259827
|
var gatherVdomMeta = (m, args) => {
|
|
259736
259828
|
m.hasVdomRender = true;
|
|
259737
259829
|
const hTag = args[0];
|
|
@@ -259846,10 +259938,10 @@ var visitCallExpressionArg = (m, arg) => {
|
|
|
259846
259938
|
|
|
259847
259939
|
// src/compiler/transformers/static-to-meta/component.ts
|
|
259848
259940
|
var import_path47 = require("path");
|
|
259849
|
-
var import_typescript59 = __toESM(
|
|
259941
|
+
var import_typescript59 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259850
259942
|
|
|
259851
259943
|
// src/compiler/transformers/add-component-meta-static.ts
|
|
259852
|
-
var import_typescript57 = __toESM(
|
|
259944
|
+
var import_typescript57 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259853
259945
|
var addComponentMetaStatic = (cmpNode, cmpMeta) => {
|
|
259854
259946
|
const publicCompilerMeta = getPublicCompilerMeta(cmpMeta);
|
|
259855
259947
|
const cmpMetaStaticProp = createStaticGetter("COMPILER_META", convertValueToLiteral(publicCompilerMeta));
|
|
@@ -259929,7 +260021,7 @@ var parseAttachInternals = (staticMembers) => {
|
|
|
259929
260021
|
};
|
|
259930
260022
|
|
|
259931
260023
|
// src/compiler/transformers/static-to-meta/class-methods.ts
|
|
259932
|
-
var import_typescript58 = __toESM(
|
|
260024
|
+
var import_typescript58 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259933
260025
|
var parseClassMethods = (cmpNode, cmpMeta) => {
|
|
259934
260026
|
const classMembers = cmpNode.members;
|
|
259935
260027
|
if (!classMembers || classMembers.length === 0) {
|
|
@@ -260411,7 +260503,7 @@ var parseAssetsDirs = (staticMembers, componentFilePath) => {
|
|
|
260411
260503
|
|
|
260412
260504
|
// src/compiler/transformers/static-to-meta/import.ts
|
|
260413
260505
|
var import_path50 = require("path");
|
|
260414
|
-
var import_typescript61 = __toESM(
|
|
260506
|
+
var import_typescript61 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
260415
260507
|
|
|
260416
260508
|
// src/compiler/transformers/collections/add-external-import.ts
|
|
260417
260509
|
var import_path49 = require("path");
|
|
@@ -260420,7 +260512,7 @@ var import_path49 = require("path");
|
|
|
260420
260512
|
var import_path48 = require("path");
|
|
260421
260513
|
|
|
260422
260514
|
// src/compiler/transformers/collections/parse-collection-components.ts
|
|
260423
|
-
var import_typescript60 = __toESM(
|
|
260515
|
+
var import_typescript60 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
260424
260516
|
var parseCollectionComponents = (config, compilerCtx, buildCtx, collectionDir, collectionManifest, collection) => {
|
|
260425
260517
|
if (collectionManifest.entries) {
|
|
260426
260518
|
collectionManifest.entries.forEach((entryPath) => {
|
|
@@ -261894,7 +261986,7 @@ var isWatchIgnorePath = (config, path6) => {
|
|
|
261894
261986
|
};
|
|
261895
261987
|
|
|
261896
261988
|
// src/compiler/transpile/create-watch-program.ts
|
|
261897
|
-
var import_typescript63 = __toESM(
|
|
261989
|
+
var import_typescript63 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
261898
261990
|
var createTsWatchProgram = async (config, buildCallback) => {
|
|
261899
261991
|
let isRunning = false;
|
|
261900
261992
|
let lastTsBuilder;
|
|
@@ -263998,7 +264090,7 @@ var extname8 = (str) => {
|
|
|
263998
264090
|
var SKIP_EXT = /* @__PURE__ */ new Set(["zip", "rar", "tar", "gz", "bz2", "png", "jpeg", "jpg", "gif", "pdf", "tiff", "psd"]);
|
|
263999
264091
|
|
|
264000
264092
|
// src/compiler/sys/node-require.ts
|
|
264001
|
-
var import_typescript64 = __toESM(
|
|
264093
|
+
var import_typescript64 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
264002
264094
|
var nodeRequire = (id) => {
|
|
264003
264095
|
const results = {
|
|
264004
264096
|
module: void 0,
|
|
@@ -264855,7 +264947,7 @@ var import_path63 = require("path");
|
|
|
264855
264947
|
|
|
264856
264948
|
// src/compiler/sys/typescript/typescript-config.ts
|
|
264857
264949
|
var import_path62 = require("path");
|
|
264858
|
-
var import_typescript66 = __toESM(
|
|
264950
|
+
var import_typescript66 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
264859
264951
|
var validateTsConfig = async (config, sys, init) => {
|
|
264860
264952
|
var _a;
|
|
264861
264953
|
const tsconfig = {
|
|
@@ -266334,11 +266426,11 @@ var VALID_TARGET = /* @__PURE__ */ new Set(["latest", "esnext", "es2020", "es201
|
|
|
266334
266426
|
|
|
266335
266427
|
// src/compiler/transpile/transpile-module.ts
|
|
266336
266428
|
var import_sys_api_node5 = require("../sys/node/index.js");
|
|
266337
|
-
var import_typescript68 = __toESM(
|
|
266429
|
+
var import_typescript68 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
266338
266430
|
|
|
266339
266431
|
// src/compiler/transformers/static-to-meta/visitor.ts
|
|
266340
266432
|
var import_path67 = require("path");
|
|
266341
|
-
var import_typescript67 = __toESM(
|
|
266433
|
+
var import_typescript67 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
266342
266434
|
var convertStaticToMeta = (config, compilerCtx, buildCtx, typeChecker, collection, transformOpts) => {
|
|
266343
266435
|
return (transformCtx) => {
|
|
266344
266436
|
let dirPath;
|