@litsx/babel-preset-litsx 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/internal/transform-litsx-components.cjs +126 -38
- package/dist/internal/transform-litsx-components.cjs.map +1 -1
- package/dist/internal/transform-litsx-hooks.cjs +648 -6
- package/dist/internal/transform-litsx-hooks.cjs.map +1 -1
- package/dist/internal/transform-litsx-renderer-props.cjs +2 -1
- package/dist/internal/transform-litsx-renderer-props.cjs.map +1 -1
- package/dist/internal/transform-litsx-static-ir.cjs +189 -0
- package/dist/internal/transform-litsx-static-ir.cjs.map +1 -0
- package/dist/pipeline.cjs +15 -7
- package/dist/pipeline.cjs.map +1 -1
- package/dist/shared/{transform-litsx-element-candidates-JMFlPFXK.cjs → transform-litsx-element-candidates-D8pSZxpL.cjs} +106 -14
- package/dist/shared/transform-litsx-element-candidates-D8pSZxpL.cjs.map +1 -0
- package/package.json +10 -5
- package/src/internal/transform-litsx-class-generation.js +0 -1
- package/src/internal/transform-litsx-components.js +18 -20
- package/src/internal/transform-litsx-element-candidates.js +106 -11
- package/src/internal/transform-litsx-hooks.js +646 -6
- package/src/internal/transform-litsx-param-rewrites.js +55 -1
- package/src/internal/transform-litsx-static-hoists.js +57 -15
- package/src/internal/transform-litsx-static-ir.js +176 -0
- package/src/pipeline.js +9 -2
- package/dist/shared/transform-litsx-element-candidates-JMFlPFXK.cjs.map +0 -1
|
@@ -81,6 +81,42 @@ function createThisMemberExpression(propName) {
|
|
|
81
81
|
return t.memberExpression(t.thisExpression(), t.identifier(propName));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function createPropsObjectExpression(bindingInfo, propertyMap = new Map()) {
|
|
85
|
+
if (
|
|
86
|
+
bindingInfo &&
|
|
87
|
+
typeof bindingInfo !== "object" &&
|
|
88
|
+
bindingInfo !== "props"
|
|
89
|
+
) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const propNames = new Set([
|
|
94
|
+
...(bindingInfo && typeof bindingInfo === "object" && bindingInfo.kind === "alias"
|
|
95
|
+
? Array.from(bindingInfo.properties?.keys?.() || [])
|
|
96
|
+
: []),
|
|
97
|
+
...Array.from(propertyMap.keys?.() || []),
|
|
98
|
+
]);
|
|
99
|
+
const properties = Array.from(propNames)
|
|
100
|
+
.filter((propName) => typeof propName === "string" && propName.length > 0)
|
|
101
|
+
.sort()
|
|
102
|
+
.map((propName) =>
|
|
103
|
+
t.objectProperty(
|
|
104
|
+
t.isValidIdentifier(propName) ? t.identifier(propName) : t.stringLiteral(propName),
|
|
105
|
+
createThisMemberExpression(propName)
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
return t.objectExpression(properties);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function isObjectDestructuringInitializer(refPath) {
|
|
113
|
+
return (
|
|
114
|
+
refPath.parentPath?.isVariableDeclarator() &&
|
|
115
|
+
refPath.parentKey === "init" &&
|
|
116
|
+
t.isObjectPattern(refPath.parentPath.node.id)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
84
120
|
export function transformJSXExpressions(jsxPath, bindings, state = null) {
|
|
85
121
|
const localNames = Array.from(bindings.keys());
|
|
86
122
|
|
|
@@ -218,10 +254,20 @@ export function replaceParamReferences(functionPath, bindings, propertyMap = new
|
|
|
218
254
|
refPath.parentPath.isObjectProperty({ shorthand: true }) &&
|
|
219
255
|
refPath.parentKey === "value"
|
|
220
256
|
) {
|
|
257
|
+
const propsObject = createPropsObjectExpression(bindingInfo, propertyMap);
|
|
258
|
+
if (propsObject) {
|
|
259
|
+
refPath.parentPath.node.shorthand = false;
|
|
260
|
+
refPath.replaceWith(propsObject);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
221
263
|
return;
|
|
222
264
|
}
|
|
223
265
|
|
|
224
|
-
refPath.replaceWith(
|
|
266
|
+
refPath.replaceWith(
|
|
267
|
+
isObjectDestructuringInitializer(refPath)
|
|
268
|
+
? t.thisExpression()
|
|
269
|
+
: createPropsObjectExpression(bindingInfo, propertyMap) ?? t.thisExpression()
|
|
270
|
+
);
|
|
225
271
|
return;
|
|
226
272
|
}
|
|
227
273
|
|
|
@@ -303,6 +349,14 @@ export function replaceParamReferences(functionPath, bindings, propertyMap = new
|
|
|
303
349
|
}
|
|
304
350
|
}
|
|
305
351
|
|
|
352
|
+
if (localName === "props") {
|
|
353
|
+
const propsObject = createPropsObjectExpression(bindingInfo, propertyMap);
|
|
354
|
+
if (propsObject) {
|
|
355
|
+
refPath.replaceWith(propsObject);
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
306
360
|
refPath.replaceWith(getReplacementForProp(targetProp || localName, refPath));
|
|
307
361
|
});
|
|
308
362
|
});
|
|
@@ -238,6 +238,46 @@ function mergeStaticPropsIntoProperties(propertiesStatic, staticProps) {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
function normalizePropertiesIr(staticIr, renderStatements) {
|
|
242
|
+
const properties = {
|
|
243
|
+
inferred: (staticIr?.properties?.inferred || []).map((entry, index) => ({
|
|
244
|
+
index: entry.index ?? index,
|
|
245
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
246
|
+
})),
|
|
247
|
+
authored: (staticIr?.properties?.authored || []).map((entry, index) => ({
|
|
248
|
+
index: entry.index ?? index,
|
|
249
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
250
|
+
})),
|
|
251
|
+
legacy: (staticIr?.properties?.legacy || []).map((entry, index) => ({
|
|
252
|
+
index: entry.index ?? index,
|
|
253
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
254
|
+
})),
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
if (!staticIr && Array.isArray(renderStatements)) {
|
|
258
|
+
renderStatements.forEach((statement, index) => {
|
|
259
|
+
const propertyOptions = getStaticPropsExpression(statement);
|
|
260
|
+
if (!propertyOptions) return;
|
|
261
|
+
|
|
262
|
+
if (propertyOptions.__litsxHoistedProperties) {
|
|
263
|
+
properties.authored.push({
|
|
264
|
+
index,
|
|
265
|
+
expression: propertyOptions.expression,
|
|
266
|
+
});
|
|
267
|
+
} else {
|
|
268
|
+
properties.legacy.push({
|
|
269
|
+
index,
|
|
270
|
+
expression: propertyOptions,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
properties.authored.sort((left, right) => left.index - right.index);
|
|
277
|
+
properties.legacy.sort((left, right) => left.index - right.index);
|
|
278
|
+
return properties;
|
|
279
|
+
}
|
|
280
|
+
|
|
241
281
|
function normalizeStylesTemplate(argument, functionPath) {
|
|
242
282
|
if (t.isTemplateLiteral(argument)) {
|
|
243
283
|
if (
|
|
@@ -615,28 +655,30 @@ export function processStaticHoists({
|
|
|
615
655
|
node,
|
|
616
656
|
renderStatements,
|
|
617
657
|
programPath,
|
|
618
|
-
|
|
658
|
+
staticIr = null,
|
|
619
659
|
classMembers,
|
|
620
660
|
options = {},
|
|
621
661
|
getOrCreateModuleStaticHoistSymbol,
|
|
622
662
|
}) {
|
|
623
663
|
const staticStyles = [];
|
|
624
|
-
const
|
|
625
|
-
const
|
|
664
|
+
const propertiesIr = normalizePropertiesIr(staticIr, renderStatements);
|
|
665
|
+
const effectivePropertiesStatic = propertiesIr.inferred
|
|
666
|
+
.map((entry) => entry.expression)
|
|
667
|
+
.filter(Boolean);
|
|
668
|
+
const staticProps = propertiesIr.legacy
|
|
669
|
+
.map((entry) => entry.expression)
|
|
670
|
+
.filter(Boolean);
|
|
671
|
+
const staticHoists = propertiesIr.authored
|
|
672
|
+
.map((entry) => ({
|
|
673
|
+
name: "properties",
|
|
674
|
+
expression: entry.expression,
|
|
675
|
+
}));
|
|
626
676
|
let lightDomRequested = options.defaultDomMode === "light";
|
|
627
677
|
|
|
628
678
|
if (t.isBlockStatement(node.body)) {
|
|
629
679
|
for (let index = renderStatements.length - 1; index >= 0; index -= 1) {
|
|
630
680
|
const propertyOptions = getStaticPropsExpression(renderStatements[index]);
|
|
631
681
|
if (propertyOptions) {
|
|
632
|
-
if (propertyOptions.__litsxHoistedProperties) {
|
|
633
|
-
staticHoists.unshift({
|
|
634
|
-
name: "properties",
|
|
635
|
-
expression: propertyOptions.expression,
|
|
636
|
-
});
|
|
637
|
-
} else {
|
|
638
|
-
staticProps.unshift(propertyOptions);
|
|
639
|
-
}
|
|
640
682
|
renderStatements.splice(index, 1);
|
|
641
683
|
continue;
|
|
642
684
|
}
|
|
@@ -678,14 +720,14 @@ export function processStaticHoists({
|
|
|
678
720
|
}
|
|
679
721
|
|
|
680
722
|
if (staticProps.length > 0) {
|
|
681
|
-
mergeStaticPropsIntoProperties(
|
|
723
|
+
mergeStaticPropsIntoProperties(effectivePropertiesStatic, staticProps);
|
|
682
724
|
}
|
|
683
725
|
|
|
684
726
|
const hasHoistedProperties = staticHoists.some((entry) => entry.name === "properties");
|
|
685
|
-
if (
|
|
727
|
+
if (effectivePropertiesStatic.length > 0 && !hasHoistedProperties) {
|
|
686
728
|
const classProperties = t.classProperty(
|
|
687
729
|
t.identifier("properties"),
|
|
688
|
-
t.objectExpression(
|
|
730
|
+
t.objectExpression(effectivePropertiesStatic),
|
|
689
731
|
null,
|
|
690
732
|
[],
|
|
691
733
|
false
|
|
@@ -729,7 +771,7 @@ export function processStaticHoists({
|
|
|
729
771
|
return createStaticHoistGetter(
|
|
730
772
|
"properties",
|
|
731
773
|
symbolId,
|
|
732
|
-
createPropertiesHoistResolver(
|
|
774
|
+
createPropertiesHoistResolver(effectivePropertiesStatic, staticProps, hoist.expression)
|
|
733
775
|
);
|
|
734
776
|
}
|
|
735
777
|
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
let t;
|
|
2
|
+
|
|
3
|
+
export function setStaticIrBabelTypes(nextTypes) {
|
|
4
|
+
t = nextTypes;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function createEmptyStaticIr() {
|
|
8
|
+
return {
|
|
9
|
+
properties: {
|
|
10
|
+
inferred: [],
|
|
11
|
+
authored: [],
|
|
12
|
+
legacy: [],
|
|
13
|
+
},
|
|
14
|
+
elements: {
|
|
15
|
+
localCandidates: [],
|
|
16
|
+
importedCandidates: [],
|
|
17
|
+
needsRegistry: false,
|
|
18
|
+
},
|
|
19
|
+
lightDom: false,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function cloneImportedCandidate(candidate) {
|
|
24
|
+
if (!candidate || typeof candidate !== "object") {
|
|
25
|
+
return candidate;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
...candidate,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function normalizeStaticIr(ir = null) {
|
|
34
|
+
const next = createEmptyStaticIr();
|
|
35
|
+
if (!ir) {
|
|
36
|
+
return next;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
next.properties.inferred = (ir.properties?.inferred || []).map((entry) => ({
|
|
40
|
+
...entry,
|
|
41
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
42
|
+
}));
|
|
43
|
+
next.properties.authored = (ir.properties?.authored || []).map((entry) => ({
|
|
44
|
+
...entry,
|
|
45
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
46
|
+
}));
|
|
47
|
+
next.properties.legacy = (ir.properties?.legacy || []).map((entry) => ({
|
|
48
|
+
...entry,
|
|
49
|
+
expression: entry.expression ? t.cloneNode(entry.expression) : null,
|
|
50
|
+
}));
|
|
51
|
+
next.elements.localCandidates = [...(ir.elements?.localCandidates || [])];
|
|
52
|
+
next.elements.importedCandidates = (ir.elements?.importedCandidates || [])
|
|
53
|
+
.map(cloneImportedCandidate);
|
|
54
|
+
next.elements.needsRegistry = Boolean(ir.elements?.needsRegistry);
|
|
55
|
+
next.lightDom = Boolean(ir.lightDom);
|
|
56
|
+
return next;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ensureStaticIr(node) {
|
|
60
|
+
if (!node) {
|
|
61
|
+
return createEmptyStaticIr();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
node._litsxStaticIr = normalizeStaticIr(node._litsxStaticIr);
|
|
65
|
+
return node._litsxStaticIr;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function isStaticPropertiesCall(statement) {
|
|
69
|
+
if (!t.isExpressionStatement(statement)) return null;
|
|
70
|
+
if (!t.isCallExpression(statement.expression)) return null;
|
|
71
|
+
if (statement.expression.arguments.length !== 1) return null;
|
|
72
|
+
|
|
73
|
+
const callee = statement.expression.callee;
|
|
74
|
+
if (t.isIdentifier(callee, { name: "__litsx_static_properties" })) {
|
|
75
|
+
return "authored";
|
|
76
|
+
}
|
|
77
|
+
if (t.isIdentifier(callee, { name: "staticProps" })) {
|
|
78
|
+
return "legacy";
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function isStaticLightDomCall(statement) {
|
|
84
|
+
if (!t.isExpressionStatement(statement)) return false;
|
|
85
|
+
if (!t.isCallExpression(statement.expression)) return false;
|
|
86
|
+
if (!t.isIdentifier(statement.expression.callee, { name: "__litsx_static_lightDom" })) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const args = statement.expression.arguments;
|
|
91
|
+
return args.length === 0 || (
|
|
92
|
+
args.length === 1 &&
|
|
93
|
+
t.isBooleanLiteral(args[0], { value: true })
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function collectStaticIr({
|
|
98
|
+
functionPath,
|
|
99
|
+
elementCandidates = new Set(),
|
|
100
|
+
importedElementCandidates = [],
|
|
101
|
+
} = {}) {
|
|
102
|
+
const ir = createEmptyStaticIr();
|
|
103
|
+
|
|
104
|
+
if (elementCandidates instanceof Set) {
|
|
105
|
+
ir.elements.localCandidates = [...elementCandidates];
|
|
106
|
+
} else if (Array.isArray(elementCandidates)) {
|
|
107
|
+
ir.elements.localCandidates = [...elementCandidates];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
ir.elements.importedCandidates = importedElementCandidates.map(cloneImportedCandidate);
|
|
111
|
+
|
|
112
|
+
const statements = functionPath?.node?.body?.body;
|
|
113
|
+
if (!Array.isArray(statements)) {
|
|
114
|
+
return ir;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
statements.forEach((statement, index) => {
|
|
118
|
+
const propertiesKind = isStaticPropertiesCall(statement);
|
|
119
|
+
if (propertiesKind) {
|
|
120
|
+
const [expression] = statement.expression.arguments;
|
|
121
|
+
ir.properties[propertiesKind].push({
|
|
122
|
+
index,
|
|
123
|
+
expression: t.cloneNode(expression),
|
|
124
|
+
});
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (isStaticLightDomCall(statement)) {
|
|
129
|
+
ir.lightDom = true;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return ir;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function setStaticIrInferredProperties(ir, properties = []) {
|
|
137
|
+
if (!ir) {
|
|
138
|
+
return ir;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
ir.properties ||= {
|
|
142
|
+
inferred: [],
|
|
143
|
+
authored: [],
|
|
144
|
+
legacy: [],
|
|
145
|
+
};
|
|
146
|
+
ir.properties.inferred = properties.map((expression, index) => ({
|
|
147
|
+
index,
|
|
148
|
+
expression: t.cloneNode(expression),
|
|
149
|
+
}));
|
|
150
|
+
return ir;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function attachStaticIr(node, ir) {
|
|
154
|
+
if (!node) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
node._litsxStaticIr = normalizeStaticIr(ir);
|
|
159
|
+
return node._litsxStaticIr;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function getStaticIr(node) {
|
|
163
|
+
if (!node?._litsxStaticIr) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return normalizeStaticIr(node._litsxStaticIr);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function consumeStaticIr(node) {
|
|
171
|
+
const ir = getStaticIr(node);
|
|
172
|
+
if (node) {
|
|
173
|
+
delete node._litsxStaticIr;
|
|
174
|
+
}
|
|
175
|
+
return ir;
|
|
176
|
+
}
|
package/src/pipeline.js
CHANGED
|
@@ -9,12 +9,13 @@ const NATIVE_TRANSFORM_OPTION_KEYS = [
|
|
|
9
9
|
"defaultDomMode",
|
|
10
10
|
"typeResolutionMode",
|
|
11
11
|
"inMemoryFiles",
|
|
12
|
+
"compilerOptions",
|
|
12
13
|
"typescriptSession",
|
|
13
14
|
"suppressNativeClassNameWarning",
|
|
14
15
|
"__litsxCompilationSession",
|
|
15
16
|
];
|
|
16
17
|
|
|
17
|
-
const HOOK_FEATURE_PATTERN = /\b(?:useOnConnect|useAfterUpdate|useOnCommit|useMemoValue|useStableCallback|useEvent|useEmit|usePrevious|useReducedState|useState|useControlledState|useAsyncState|useOptimistic|useExpose|useExternalStore|useHost|useHostContent|useSlot|useTextContent|useTransition|useDeferredValue|useStyle|useRef|useCallbackRef)\b/;
|
|
18
|
+
const HOOK_FEATURE_PATTERN = /\b(?:defineHook|useOnConnect|useAfterUpdate|useOnCommit|useMemoValue|useStableCallback|useEvent|useEmit|usePrevious|useReducedState|useState|useControlledState|useAsyncState|useOptimistic|useExpose|useExternalStore|useHost|useHostContent|useSlot|useTextContent|useTransition|useDeferredValue|useStyle|useRef|useCallbackRef|useStableId)\b/;
|
|
18
19
|
const REF_FEATURE_PATTERN = /\buseRef\b|\bref\s*=/;
|
|
19
20
|
const SCOPED_ELEMENTS_PATTERN = /<\s*(?:[A-Z][\w.]*(?=[\s/>])|[a-z][\w]*-[\w-]*(?=[\s/>]))/;
|
|
20
21
|
const LIGHT_DOM_PATTERN = /\^lightDom\b|static\s+lightDom\s*=\s*true\b/;
|
|
@@ -62,7 +63,13 @@ export function createLitsxPresetPlugins(options = {}, sourceFeatures = null) {
|
|
|
62
63
|
];
|
|
63
64
|
|
|
64
65
|
if (shouldIncludeFeaturePlugin(sourceFeatures, "hooks")) {
|
|
65
|
-
plugins.push([
|
|
66
|
+
plugins.push([
|
|
67
|
+
transformLitsxHooks,
|
|
68
|
+
{
|
|
69
|
+
...normalizeTransformLitsxOptions(options),
|
|
70
|
+
...(options.transformLitsxHooks || {}),
|
|
71
|
+
},
|
|
72
|
+
]);
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
if (shouldIncludeFeaturePlugin(sourceFeatures, "domRefs")) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transform-litsx-element-candidates-JMFlPFXK.cjs","sources":["../../src/internal/transform-litsx-element-candidates.js"],"sourcesContent":["import helperPluginUtils from \"@babel/helper-plugin-utils\";\nimport babelTraverse from \"@babel/traverse\";\nimport jsxSyntaxPlugin from \"@babel/plugin-syntax-jsx\";\nimport parser from \"@litsx/babel-parser\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport { normalizeFilePath } from \"@litsx/typescript-session\";\nimport { ensureTypescriptModule } from \"./transform-litsx-properties.js\";\n\nconst { declare } = helperPluginUtils;\nconst traverse = babelTraverse.default || babelTraverse;\nconst IMPORT_RESOLUTION_EXTENSIONS = [\n \".litsx\",\n \".litsx.jsx\",\n \".jsx\",\n \".js\",\n \".tsx\",\n \".ts\",\n];\nconst DEFAULT_MODULE_RESOLUTION_OPTIONS = {\n moduleResolution: 100,\n allowJs: true,\n checkJs: false,\n jsx: 1,\n target: 99,\n module: 99,\n esModuleInterop: true,\n allowSyntheticDefaultImports: true,\n};\n\nlet t;\n\nexport function setElementCandidatesBabelTypes(nextTypes) {\n t = nextTypes;\n}\n\nfunction isInsideFunctionOrClass(path) {\n return path.findParent(\n (p) =>\n p.isFunctionDeclaration() ||\n p.isFunctionExpression() ||\n p.isArrowFunctionExpression() ||\n p.isClassDeclaration()\n );\n}\n\nfunction isRelativeSpecifier(value) {\n return typeof value === \"string\" && (\n value.startsWith(\"./\") ||\n value.startsWith(\"../\") ||\n value.startsWith(\"/\")\n );\n}\n\nfunction createEmptyCandidateResult() {\n return {\n localCandidates: new Set(),\n importedCandidates: new Map(),\n };\n}\n\nfunction cloneCandidateResult(result) {\n return {\n localCandidates: new Set(result?.localCandidates || []),\n importedCandidates: new Map(result?.importedCandidates || []),\n };\n}\n\nfunction mergeCandidateResults(target, source) {\n source.localCandidates.forEach((candidate) => target.localCandidates.add(candidate));\n source.importedCandidates.forEach((candidate, key) => {\n if (!target.importedCandidates.has(key)) {\n target.importedCandidates.set(key, candidate);\n }\n });\n}\n\nfunction toImportRecordKey(record) {\n return `${record.sourceFile}:${record.importedName}:${record.tagName}`;\n}\n\nfunction toRelativeModuleSpecifier(fromFilename, targetFilename) {\n const fromDir = path.dirname(fromFilename);\n let relativePath = normalizeFilePath(path.relative(fromDir, targetFilename));\n\n if (!relativePath.startsWith(\".\") && !relativePath.startsWith(\"/\")) {\n relativePath = `./${relativePath}`;\n }\n\n return relativePath;\n}\n\nfunction hasSupportedExtension(filePath) {\n return IMPORT_RESOLUTION_EXTENSIONS.some((extension) => filePath.endsWith(extension));\n}\n\nfunction resolveImportSource(fromFilename, sourceValue, context) {\n const cacheKey = `${normalizeFilePath(fromFilename)}::${sourceValue}`;\n if (context.resolvedImportCache.has(cacheKey)) {\n return context.resolvedImportCache.get(cacheKey);\n }\n\n const existingFile = (candidatePath) => {\n try {\n return fs.existsSync(candidatePath) && fs.statSync(candidatePath).isFile();\n } catch {\n return false;\n }\n };\n\n const resolveWithExtensions = (basePath) => {\n const normalizedBasePath = normalizeFilePath(basePath);\n const candidates = [];\n\n if (hasSupportedExtension(normalizedBasePath)) {\n candidates.push(normalizedBasePath);\n } else {\n IMPORT_RESOLUTION_EXTENSIONS.forEach((extension) => {\n candidates.push(`${normalizedBasePath}${extension}`);\n });\n IMPORT_RESOLUTION_EXTENSIONS.forEach((extension) => {\n candidates.push(normalizeFilePath(path.join(normalizedBasePath, `index${extension}`)));\n });\n }\n\n return candidates.find(existingFile) || null;\n };\n\n const resolvePathAlias = () => {\n const compilerOptions = context.getCompilerOptions?.(fromFilename) || {};\n const baseUrl = compilerOptions.baseUrl\n ? normalizeFilePath(\n path.isAbsolute(compilerOptions.baseUrl)\n ? compilerOptions.baseUrl\n : path.resolve(path.dirname(fromFilename), compilerOptions.baseUrl)\n )\n : normalizeFilePath(path.dirname(fromFilename));\n const pathMappings = compilerOptions.paths || {};\n\n for (const [pattern, substitutions] of Object.entries(pathMappings)) {\n const starIndex = pattern.indexOf(\"*\");\n const isStarPattern = starIndex !== -1;\n const prefix = isStarPattern ? pattern.slice(0, starIndex) : pattern;\n const suffix = isStarPattern ? pattern.slice(starIndex + 1) : \"\";\n\n if (isStarPattern) {\n if (!sourceValue.startsWith(prefix) || !sourceValue.endsWith(suffix)) {\n continue;\n }\n } else if (sourceValue !== pattern) {\n continue;\n }\n\n const wildcardValue = isStarPattern\n ? sourceValue.slice(prefix.length, sourceValue.length - suffix.length)\n : \"\";\n\n for (const substitution of substitutions || []) {\n const substituted = isStarPattern\n ? substitution.replace(\"*\", wildcardValue)\n : substitution;\n const candidateBase = path.isAbsolute(substituted)\n ? substituted\n : path.join(baseUrl, substituted);\n const resolvedPath = resolveWithExtensions(candidateBase);\n if (resolvedPath) {\n return resolvedPath;\n }\n }\n }\n\n return null;\n };\n\n let resolved = null;\n if (fromFilename && isRelativeSpecifier(sourceValue)) {\n resolved = resolveWithExtensions(\n path.resolve(path.dirname(fromFilename), sourceValue)\n );\n } else if (fromFilename) {\n resolved = resolvePathAlias();\n if (!resolved) {\n const ts = ensureTypescriptModule();\n const compilerOptions = context.getCompilerOptions?.(fromFilename) || DEFAULT_MODULE_RESOLUTION_OPTIONS;\n const moduleResolutionHost = context.getModuleResolutionHost?.(fromFilename) || ts.sys;\n try {\n const resolution = ts.resolveModuleName(\n sourceValue,\n normalizeFilePath(fromFilename),\n compilerOptions,\n moduleResolutionHost\n );\n const resolvedFileName = resolution?.resolvedModule?.resolvedFileName;\n if (resolvedFileName) {\n resolved = resolveWithExtensions(resolvedFileName) || normalizeFilePath(resolvedFileName);\n }\n } catch {\n resolved = null;\n }\n }\n }\n\n context.resolvedImportCache.set(cacheKey, resolved);\n return resolved;\n}\n\nfunction createCompilerContextResolver(options = {}) {\n const providedTypescriptSession =\n options?.typescriptSession?.projectSession || options?.typescriptSession || null;\n\n const compilerOptionsCache = new Map();\n const moduleResolutionHostCache = new Map();\n\n function getProgramForFile(filename) {\n if (!providedTypescriptSession?.getProgram || !filename) {\n return null;\n }\n\n try {\n if (providedTypescriptSession.kind === \"project\") {\n return providedTypescriptSession.getProgram();\n }\n\n if (providedTypescriptSession.kind === \"standalone\") {\n return providedTypescriptSession.getProgram(normalizeFilePath(filename));\n }\n } catch {\n return null;\n }\n\n return null;\n }\n\n return {\n getCompilerOptions(filename) {\n const cacheKey = normalizeFilePath(filename);\n if (compilerOptionsCache.has(cacheKey)) {\n return compilerOptionsCache.get(cacheKey);\n }\n\n const program = getProgramForFile(filename);\n const compilerOptions = program?.getCompilerOptions?.() || DEFAULT_MODULE_RESOLUTION_OPTIONS;\n compilerOptionsCache.set(cacheKey, compilerOptions);\n return compilerOptions;\n },\n getModuleResolutionHost(filename) {\n const cacheKey = normalizeFilePath(filename);\n if (moduleResolutionHostCache.has(cacheKey)) {\n return moduleResolutionHostCache.get(cacheKey);\n }\n\n const ts = ensureTypescriptModule();\n const program = getProgramForFile(filename);\n const host = providedTypescriptSession?.host || ts.sys;\n moduleResolutionHostCache.set(cacheKey, host);\n return host;\n },\n };\n}\n\nfunction getOrCreateAvailableNames(programPath) {\n const cached = programPath.getData(\"__litsxAvailableNames\");\n if (cached) {\n return cached;\n }\n\n const availableNames = new Set();\n programPath.get(\"body\").forEach((nodePath) => {\n if (nodePath.isImportDeclaration()) {\n nodePath.node.specifiers.forEach((specifier) => {\n if (specifier.local?.name) {\n availableNames.add(specifier.local.name);\n }\n });\n return;\n }\n\n if (nodePath.isClassDeclaration() && nodePath.node.id?.name) {\n availableNames.add(nodePath.node.id.name);\n return;\n }\n\n if (\n (nodePath.isExportNamedDeclaration() || nodePath.isExportDefaultDeclaration()) &&\n nodePath.get(\"declaration\")?.isClassDeclaration?.() &&\n nodePath.node.declaration?.id?.name\n ) {\n availableNames.add(nodePath.node.declaration.id.name);\n return;\n }\n\n if (nodePath.isFunctionDeclaration() && nodePath.node.id?.name) {\n availableNames.add(nodePath.node.id.name);\n return;\n }\n\n if (\n (nodePath.isExportNamedDeclaration() || nodePath.isExportDefaultDeclaration()) &&\n nodePath.get(\"declaration\")?.isFunctionDeclaration?.() &&\n nodePath.node.declaration?.id?.name\n ) {\n availableNames.add(nodePath.node.declaration.id.name);\n return;\n }\n\n if (\n (nodePath.isExportNamedDeclaration() || nodePath.isExportDefaultDeclaration()) &&\n nodePath.get(\"declaration\")?.isVariableDeclaration?.()\n ) {\n nodePath.get(\"declaration.declarations\").forEach((declaratorPath) => {\n const declarator = declaratorPath.node;\n if (t.isIdentifier(declarator.id)) {\n availableNames.add(declarator.id.name);\n }\n });\n return;\n }\n\n if (!nodePath.isVariableDeclaration()) return;\n nodePath.get(\"declarations\").forEach((declaratorPath) => {\n const declarator = declaratorPath.node;\n if (t.isIdentifier(declarator.id)) {\n availableNames.add(declarator.id.name);\n }\n });\n });\n\n programPath.setData(\"__litsxAvailableNames\", availableNames);\n return availableNames;\n}\n\nfunction getOrCreateHelperPaths(programPath) {\n const cached = programPath.getData(\"__litsxHelperPaths\");\n if (cached) {\n return cached;\n }\n\n const helperPaths = new Map();\n programPath.get(\"body\").forEach((nodePath) => {\n if (nodePath.isFunctionDeclaration() && nodePath.node.id?.name) {\n helperPaths.set(nodePath.node.id.name, nodePath);\n return;\n }\n\n if (\n (nodePath.isExportNamedDeclaration() || nodePath.isExportDefaultDeclaration()) &&\n nodePath.get(\"declaration\")?.isFunctionDeclaration?.() &&\n nodePath.node.declaration?.id?.name\n ) {\n helperPaths.set(nodePath.node.declaration.id.name, nodePath.get(\"declaration\"));\n return;\n }\n\n if (\n (nodePath.isExportNamedDeclaration() || nodePath.isExportDefaultDeclaration()) &&\n nodePath.get(\"declaration\")?.isVariableDeclaration?.()\n ) {\n nodePath.get(\"declaration.declarations\").forEach((declaratorPath) => {\n const declarator = declaratorPath.node;\n if (!t.isIdentifier(declarator.id)) {\n return;\n }\n\n const initPath = declaratorPath.get(\"init\");\n if (\n initPath?.isArrowFunctionExpression?.() ||\n initPath?.isFunctionExpression?.()\n ) {\n helperPaths.set(declarator.id.name, initPath);\n }\n });\n return;\n }\n\n if (!nodePath.isVariableDeclaration()) return;\n nodePath.get(\"declarations\").forEach((declaratorPath) => {\n const declarator = declaratorPath.node;\n if (!t.isIdentifier(declarator.id)) {\n return;\n }\n\n const initPath = declaratorPath.get(\"init\");\n if (\n initPath?.isArrowFunctionExpression?.() ||\n initPath?.isFunctionExpression?.()\n ) {\n helperPaths.set(declarator.id.name, initPath);\n }\n });\n });\n\n programPath.setData(\"__litsxHelperPaths\", helperPaths);\n return helperPaths;\n}\n\nfunction buildModuleAnalysis(programPath, filename, context) {\n const availableNames = getOrCreateAvailableNames(programPath);\n const helperPaths = getOrCreateHelperPaths(programPath);\n const importBindings = new Map();\n const exportBindings = new Map();\n\n programPath.get(\"body\").forEach((nodePath) => {\n if (nodePath.isImportDeclaration()) {\n const sourceValue = nodePath.node.source.value;\n const resolvedSource = resolveImportSource(filename, sourceValue, context);\n\n nodePath.node.specifiers.forEach((specifier) => {\n if (!specifier.local?.name) {\n return;\n }\n\n let importedName = null;\n if (specifier.type === \"ImportDefaultSpecifier\") {\n importedName = \"default\";\n } else if (specifier.type === \"ImportSpecifier\") {\n importedName = specifier.imported?.name ?? specifier.imported?.value ?? null;\n } else if (specifier.type === \"ImportNamespaceSpecifier\") {\n importedName = \"*\";\n }\n\n importBindings.set(specifier.local.name, {\n localName: specifier.local.name,\n importedName,\n sourceValue,\n resolvedSource,\n });\n });\n\n return;\n }\n\n if (nodePath.isExportNamedDeclaration()) {\n const declarationPath = nodePath.get(\"declaration\");\n if (declarationPath?.node) {\n if (declarationPath.isFunctionDeclaration() || declarationPath.isClassDeclaration()) {\n const localName = declarationPath.node.id?.name;\n if (localName) {\n exportBindings.set(localName, { localName });\n }\n } else if (declarationPath.isVariableDeclaration()) {\n declarationPath.get(\"declarations\").forEach((declaratorPath) => {\n const localName = declaratorPath.node.id?.name;\n if (localName) {\n exportBindings.set(localName, { localName });\n }\n });\n }\n }\n\n nodePath.get(\"specifiers\").forEach((specifierPath) => {\n const exportedName =\n specifierPath.node.exported?.name ?? specifierPath.node.exported?.value ?? null;\n if (!exportedName) {\n return;\n }\n\n const sourceValue = nodePath.node.source?.value ?? null;\n if (sourceValue) {\n const localName =\n specifierPath.node.local?.name ?? specifierPath.node.local?.value ?? exportedName;\n exportBindings.set(exportedName, {\n reexportSource: resolveImportSource(filename, sourceValue, context),\n importedName: localName === \"default\" ? \"default\" : localName,\n });\n return;\n }\n\n const localName =\n specifierPath.node.local?.name ?? specifierPath.node.local?.value ?? null;\n if (localName) {\n exportBindings.set(exportedName, { localName });\n }\n });\n\n return;\n }\n\n if (!nodePath.isExportDefaultDeclaration()) {\n return;\n }\n\n const declarationPath = nodePath.get(\"declaration\");\n if (declarationPath.isIdentifier()) {\n exportBindings.set(\"default\", { localName: declarationPath.node.name });\n return;\n }\n\n if (\n declarationPath.isFunctionDeclaration() ||\n declarationPath.isClassDeclaration()\n ) {\n const localName = declarationPath.node.id?.name;\n if (localName) {\n exportBindings.set(\"default\", { localName });\n } else {\n exportBindings.set(\"default\", { path: declarationPath });\n }\n return;\n }\n\n if (\n declarationPath.isArrowFunctionExpression() ||\n declarationPath.isFunctionExpression()\n ) {\n exportBindings.set(\"default\", { path: declarationPath });\n }\n });\n\n return {\n filename,\n programPath,\n availableNames,\n helperPaths,\n importBindings,\n exportBindings,\n compatPascalNames: new Set(),\n };\n}\n\nfunction getOrCreateModuleAnalysis(filename, context) {\n const normalizedFilename = normalizeFilePath(filename);\n if (!normalizedFilename) {\n return null;\n }\n\n if (context.moduleAnalysisCache.has(normalizedFilename)) {\n return context.moduleAnalysisCache.get(normalizedFilename);\n }\n\n let source;\n try {\n source = fs.readFileSync(normalizedFilename, \"utf8\");\n } catch {\n return null;\n }\n\n let programPath = null;\n try {\n const ast = parser.parse(source, { sourceType: \"module\" });\n traverse(ast, {\n Program(path) {\n if (!programPath) {\n programPath = path;\n path.scope.crawl();\n }\n },\n });\n } catch {\n return null;\n }\n\n if (!programPath) {\n return null;\n }\n\n const analysis = buildModuleAnalysis(programPath, normalizedFilename, context);\n context.moduleAnalysisCache.set(normalizedFilename, analysis);\n return analysis;\n}\n\nfunction isCapitalizedName(name) {\n if (typeof name !== \"string\" || name.length === 0) {\n return false;\n }\n\n const first = name[0];\n return first === first.toUpperCase() && first !== first.toLowerCase();\n}\n\nfunction isProgramLevelBinding(binding) {\n return binding?.scope?.path?.isProgram?.() === true;\n}\n\nfunction validateComponentName(nameNode, pathForErrors, context) {\n if (!nameNode || nameNode.type !== \"JSXIdentifier\") return null;\n const originalName = nameNode.__scopedOriginal || nameNode.name;\n if (!isCapitalizedName(originalName)) return null;\n\n const binding = pathForErrors?.scope?.getBinding?.(originalName) || null;\n if (!binding) {\n if (context.availableNames.has(originalName)) {\n return originalName;\n }\n if (context.compatPascalNames.has(originalName)) {\n return null;\n }\n if (context.options?.allowUnknownPascalCase === true) {\n return null;\n }\n throw (pathForErrors?.buildCodeFrameError?.(\n `Unknown LitSX component \"${originalName}\". Add an import or declare it in this module before using it in JSX.`\n ) || new Error(\n `Unknown LitSX component \"${originalName}\". Add an import or declare it in this module before using it in JSX.`\n ));\n }\n\n if (!isProgramLevelBinding(binding)) {\n return null;\n }\n\n return originalName;\n}\n\nfunction resolveImportedHelper(moduleAnalysis, helperName, context, seen = new Set()) {\n const importInfo = moduleAnalysis.importBindings.get(helperName);\n if (!importInfo?.resolvedSource || importInfo.importedName === \"*\") {\n return null;\n }\n\n const visitedKey = `${moduleAnalysis.filename}:${helperName}:${importInfo.resolvedSource}:${importInfo.importedName}`;\n if (seen.has(visitedKey)) {\n return null;\n }\n const nextSeen = new Set(seen);\n nextSeen.add(visitedKey);\n\n const importedModule = getOrCreateModuleAnalysis(importInfo.resolvedSource, context);\n if (!importedModule) {\n return null;\n }\n\n return resolveExportedHelper(importedModule, importInfo.importedName, context, nextSeen);\n}\n\nfunction resolveExportedHelper(moduleAnalysis, exportedName, context, seen = new Set()) {\n const exportInfo = moduleAnalysis.exportBindings.get(exportedName);\n if (!exportInfo) {\n return null;\n }\n\n if (exportInfo.path?.node) {\n return {\n moduleAnalysis,\n path: exportInfo.path,\n };\n }\n\n if (exportInfo.localName) {\n const helperPath = moduleAnalysis.helperPaths.get(exportInfo.localName);\n if (!helperPath?.node) {\n if (moduleAnalysis.importBindings.has(exportInfo.localName)) {\n return resolveImportedHelper(moduleAnalysis, exportInfo.localName, context, seen);\n }\n return null;\n }\n return {\n moduleAnalysis,\n path: helperPath,\n };\n }\n\n if (exportInfo.reexportSource) {\n const reexportedModule = getOrCreateModuleAnalysis(exportInfo.reexportSource, context);\n if (!reexportedModule) {\n return null;\n }\n return resolveExportedHelper(\n reexportedModule,\n exportInfo.importedName,\n context,\n seen\n );\n }\n\n return null;\n}\n\nfunction resolveImportedElementRequirement(candidateName, moduleAnalysis, context, rootFilename) {\n const binding = moduleAnalysis.programPath.scope.getBinding(candidateName);\n if (!binding || !isProgramLevelBinding(binding)) {\n return null;\n }\n\n if (\n binding.path.isImportSpecifier?.() ||\n binding.path.isImportDefaultSpecifier?.()\n ) {\n const importInfo = moduleAnalysis.importBindings.get(candidateName);\n if (!importInfo?.resolvedSource || importInfo.importedName === \"*\") {\n return null;\n }\n\n return {\n sourceFile: importInfo.resolvedSource,\n sourceSpecifier: isRelativeSpecifier(importInfo.sourceValue)\n ? null\n : importInfo.sourceValue,\n importedName: importInfo.importedName,\n originalName: candidateName,\n tagName: candidateName.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase(),\n rootFilename,\n };\n }\n\n const exportInfo =\n moduleAnalysis.exportBindings.get(candidateName) ||\n moduleAnalysis.exportBindings.get(\"default\");\n if (!exportInfo) {\n throw new Error(\n `Imported renderer helper transitively renders \"${candidateName}\" from \"${moduleAnalysis.filename}\", but that symbol is not exported and cannot be added to static elements in \"${rootFilename}\".`\n );\n }\n\n const importedName = exportInfo.localName === candidateName\n ? candidateName\n : [...moduleAnalysis.exportBindings.entries()].find(\n ([, entry]) => entry.localName === candidateName\n )?.[0] ?? null;\n\n if (!importedName) {\n throw new Error(\n `Imported renderer helper transitively renders \"${candidateName}\" from \"${moduleAnalysis.filename}\", but that symbol cannot be resolved as an importable export for \"${rootFilename}\".`\n );\n }\n\n return {\n sourceFile: moduleAnalysis.filename,\n sourceSpecifier: null,\n importedName,\n originalName: candidateName,\n tagName: candidateName.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase(),\n rootFilename,\n };\n}\n\nfunction collectCandidateResult(functionPath, programPath, options = {}) {\n const result = createEmptyCandidateResult();\n if (!programPath || !functionPath?.node) return result;\n programPath.scope.crawl();\n const compilationSession = options.__litsxCompilationSession || null;\n\n const rootFilename = normalizeFilePath(\n options.filename || programPath.hub.file?.opts?.filename || \"\"\n );\n const helperCandidateCache =\n programPath.getData(\"__litsxHelperCandidateCache\") || new WeakMap();\n programPath.setData(\"__litsxHelperCandidateCache\", helperCandidateCache);\n const moduleAnalysisCache =\n compilationSession?.importedModuleAnalysisCache ||\n programPath.getData(\"__litsxImportedModuleAnalyses\") ||\n new Map();\n programPath.setData(\"__litsxImportedModuleAnalyses\", moduleAnalysisCache);\n const resolvedImportCache =\n compilationSession?.resolvedImportCache ||\n programPath.getData(\"__litsxResolvedImports\") ||\n new Map();\n programPath.setData(\"__litsxResolvedImports\", resolvedImportCache);\n\n const rootModule = {\n filename: rootFilename,\n programPath,\n availableNames: getOrCreateAvailableNames(programPath),\n helperPaths: getOrCreateHelperPaths(programPath),\n compatPascalNames: programPath.getData(\"__litsxCompatPascalNames\") || new Set(),\n importBindings: new Map(),\n exportBindings: new Map(),\n };\n\n programPath.get(\"body\").forEach((nodePath) => {\n if (!nodePath.isImportDeclaration()) {\n return;\n }\n\n const sourceValue = nodePath.node.source.value;\n const resolvedSource = resolveImportSource(rootFilename, sourceValue, {\n moduleAnalysisCache,\n resolvedImportCache,\n });\n\n nodePath.node.specifiers.forEach((specifier) => {\n if (!specifier.local?.name) {\n return;\n }\n\n let importedName = null;\n if (specifier.type === \"ImportDefaultSpecifier\") {\n importedName = \"default\";\n } else if (specifier.type === \"ImportSpecifier\") {\n importedName = specifier.imported?.name ?? specifier.imported?.value ?? null;\n } else if (specifier.type === \"ImportNamespaceSpecifier\") {\n importedName = \"*\";\n }\n\n rootModule.importBindings.set(specifier.local.name, {\n localName: specifier.local.name,\n importedName,\n sourceValue,\n resolvedSource,\n });\n });\n });\n\n const context = {\n rootFilename,\n rootModule,\n options,\n helperCandidateCache,\n moduleAnalysisCache,\n resolvedImportCache,\n ...createCompilerContextResolver(options),\n };\n\n function scanFunction(path, moduleAnalysis, seen = new Set()) {\n if (!path?.node) {\n return createEmptyCandidateResult();\n }\n\n if (context.helperCandidateCache.has(path.node)) {\n return cloneCandidateResult(context.helperCandidateCache.get(path.node));\n }\n\n if (seen.has(path.node)) {\n return createEmptyCandidateResult();\n }\n\n const nextSeen = new Set(seen);\n nextSeen.add(path.node);\n const localResult = createEmptyCandidateResult();\n const referencedHelpers = [];\n const scanContext = {\n availableNames: moduleAnalysis.availableNames,\n helperPaths: moduleAnalysis.helperPaths,\n compatPascalNames: moduleAnalysis.compatPascalNames,\n options,\n };\n\n path.traverse({\n JSXOpeningElement(jsxPath) {\n const candidate = validateComponentName(jsxPath.node.name, jsxPath, scanContext);\n if (candidate) {\n if (moduleAnalysis.filename === context.rootFilename) {\n localResult.localCandidates.add(candidate);\n } else {\n const requirement = resolveImportedElementRequirement(\n candidate,\n moduleAnalysis,\n context,\n context.rootFilename\n );\n if (requirement) {\n localResult.importedCandidates.set(\n toImportRecordKey(requirement),\n requirement\n );\n }\n }\n }\n },\n JSXClosingElement(jsxPath) {\n validateComponentName(jsxPath.node.name, jsxPath, scanContext);\n },\n Identifier(identifierPath) {\n if (!identifierPath.isReferencedIdentifier()) {\n return;\n }\n\n if (moduleAnalysis.helperPaths.has(identifierPath.node.name)) {\n referencedHelpers.push({\n moduleAnalysis,\n path: moduleAnalysis.helperPaths.get(identifierPath.node.name),\n });\n return;\n }\n\n const binding = identifierPath.scope.getBinding(identifierPath.node.name);\n if (!binding) {\n return;\n }\n\n if (\n !binding.path.isImportSpecifier?.() &&\n !binding.path.isImportDefaultSpecifier?.()\n ) {\n return;\n }\n\n const resolvedHelper = resolveImportedHelper(\n moduleAnalysis,\n identifierPath.node.name,\n context\n );\n if (!resolvedHelper?.path?.node) {\n return;\n }\n\n referencedHelpers.push(resolvedHelper);\n },\n });\n\n referencedHelpers.forEach((helperEntry) => {\n const helperCandidates = scanFunction(\n helperEntry.path,\n helperEntry.moduleAnalysis,\n nextSeen\n );\n mergeCandidateResults(localResult, helperCandidates);\n });\n\n context.helperCandidateCache.set(path.node, cloneCandidateResult(localResult));\n return localResult;\n }\n\n return scanFunction(functionPath, rootModule);\n}\n\nexport function getAnnotatedElementCandidates(path, programPath, options = {}) {\n if (path?.node?._litsxElementCandidates instanceof Set) {\n return new Set(path.node._litsxElementCandidates);\n }\n\n return collectCandidateResult(path, programPath, options).localCandidates;\n}\n\nexport function getAnnotatedImportedElementCandidates(path, programPath, options = {}) {\n if (Array.isArray(path?.node?._litsxImportedElementCandidates)) {\n return [...path.node._litsxImportedElementCandidates];\n }\n\n return [...collectCandidateResult(path, programPath, options).importedCandidates.values()];\n}\n\nexport function importedBindingNeedsRendererContext(programPath, localName, options = {}) {\n if (!programPath?.node || !localName) {\n return false;\n }\n\n programPath.scope.crawl();\n const compilationSession = options.__litsxCompilationSession || null;\n const rootFilename = normalizeFilePath(\n options.filename || programPath.hub.file?.opts?.filename || \"\"\n );\n const helperCandidateCache =\n programPath.getData(\"__litsxHelperCandidateCache\") || new WeakMap();\n programPath.setData(\"__litsxHelperCandidateCache\", helperCandidateCache);\n const moduleAnalysisCache =\n compilationSession?.importedModuleAnalysisCache ||\n programPath.getData(\"__litsxImportedModuleAnalyses\") ||\n new Map();\n programPath.setData(\"__litsxImportedModuleAnalyses\", moduleAnalysisCache);\n const resolvedImportCache =\n compilationSession?.resolvedImportCache ||\n programPath.getData(\"__litsxResolvedImports\") ||\n new Map();\n programPath.setData(\"__litsxResolvedImports\", resolvedImportCache);\n\n const rootModule = {\n filename: rootFilename,\n programPath,\n availableNames: getOrCreateAvailableNames(programPath),\n helperPaths: getOrCreateHelperPaths(programPath),\n compatPascalNames: programPath.getData(\"__litsxCompatPascalNames\") || new Set(),\n importBindings: new Map(),\n exportBindings: new Map(),\n };\n\n programPath.get(\"body\").forEach((nodePath) => {\n if (!nodePath.isImportDeclaration()) {\n return;\n }\n\n const sourceValue = nodePath.node.source.value;\n const resolvedSource = resolveImportSource(rootFilename, sourceValue, {\n moduleAnalysisCache,\n resolvedImportCache,\n });\n\n nodePath.node.specifiers.forEach((specifier) => {\n if (!specifier.local?.name) {\n return;\n }\n\n let importedName = null;\n if (specifier.type === \"ImportDefaultSpecifier\") {\n importedName = \"default\";\n } else if (specifier.type === \"ImportSpecifier\") {\n importedName = specifier.imported?.name ?? specifier.imported?.value ?? null;\n } else if (specifier.type === \"ImportNamespaceSpecifier\") {\n importedName = \"*\";\n }\n\n rootModule.importBindings.set(specifier.local.name, {\n localName: specifier.local.name,\n importedName,\n sourceValue,\n resolvedSource,\n });\n });\n });\n\n const context = {\n rootFilename,\n rootModule,\n options,\n helperCandidateCache,\n moduleAnalysisCache,\n resolvedImportCache,\n ...createCompilerContextResolver(options),\n };\n\n const resolvedHelper = resolveImportedHelper(rootModule, localName, context);\n if (!resolvedHelper?.path?.node) {\n return false;\n }\n\n function scanFunction(path, moduleAnalysis, seen = new Set()) {\n if (!path?.node) {\n return false;\n }\n\n const cacheKey = path.node;\n if (context.helperCandidateCache.has(cacheKey)) {\n const cached = context.helperCandidateCache.get(cacheKey);\n return cached.localCandidates.size > 0 || cached.importedCandidates.size > 0;\n }\n\n if (seen.has(path.node)) {\n return false;\n }\n\n const nextSeen = new Set(seen);\n nextSeen.add(path.node);\n let needsContext = false;\n const referencedHelpers = [];\n const scanContext = {\n availableNames: moduleAnalysis.availableNames,\n helperPaths: moduleAnalysis.helperPaths,\n compatPascalNames: moduleAnalysis.compatPascalNames,\n options,\n };\n\n path.traverse({\n JSXOpeningElement(jsxPath) {\n const candidate = validateComponentName(jsxPath.node.name, jsxPath, scanContext);\n if (candidate) {\n needsContext = true;\n }\n },\n JSXClosingElement(jsxPath) {\n validateComponentName(jsxPath.node.name, jsxPath, scanContext);\n },\n Identifier(identifierPath) {\n if (!identifierPath.isReferencedIdentifier()) {\n return;\n }\n\n if (moduleAnalysis.helperPaths.has(identifierPath.node.name)) {\n referencedHelpers.push({\n moduleAnalysis,\n path: moduleAnalysis.helperPaths.get(identifierPath.node.name),\n });\n return;\n }\n\n const binding = identifierPath.scope.getBinding(identifierPath.node.name);\n if (\n !binding ||\n (\n !binding.path.isImportSpecifier?.() &&\n !binding.path.isImportDefaultSpecifier?.()\n )\n ) {\n return;\n }\n\n const importedHelper = resolveImportedHelper(\n moduleAnalysis,\n identifierPath.node.name,\n context\n );\n if (importedHelper?.path?.node) {\n referencedHelpers.push(importedHelper);\n }\n },\n });\n\n if (!needsContext) {\n needsContext = referencedHelpers.some((helperEntry) =>\n scanFunction(helperEntry.path, helperEntry.moduleAnalysis, nextSeen)\n );\n }\n\n context.helperCandidateCache.set(cacheKey, needsContext\n ? {\n localCandidates: new Set([\"__context\"]),\n importedCandidates: new Map(),\n }\n : createEmptyCandidateResult()\n );\n\n return needsContext;\n }\n\n return scanFunction(resolvedHelper.path, resolvedHelper.moduleAnalysis);\n}\n\nexport default declare((api) => {\n api.assertVersion(7);\n t = api.types;\n\n return {\n name: \"transform-litsx-element-candidates\",\n inherits: jsxSyntaxPlugin.default || jsxSyntaxPlugin,\n visitor: {\n Program: {\n enter(path) {\n path.scope.crawl();\n path.setData(\"__litsxAvailableNames\", null);\n path.setData(\"__litsxHelperPaths\", null);\n path.setData(\"__litsxHelperCandidateCache\", new WeakMap());\n path.setData(\"__litsxImportedModuleAnalyses\", new Map());\n path.setData(\"__litsxResolvedImports\", new Map());\n },\n },\n FunctionDeclaration: {\n exit(path, state) {\n if (isInsideFunctionOrClass(path)) {\n return;\n }\n\n const programPath = path.findParent((entry) => entry.isProgram());\n const result = collectCandidateResult(\n path,\n programPath,\n {\n ...(state.opts || {}),\n filename: state.file?.opts?.filename || \"\",\n }\n );\n path.node._litsxElementCandidates = result.localCandidates;\n path.node._litsxImportedElementCandidates = [...result.importedCandidates.values()];\n },\n },\n ArrowFunctionExpression: {\n exit(path, state) {\n if (isInsideFunctionOrClass(path)) {\n return;\n }\n\n const programPath = path.findParent((entry) => entry.isProgram());\n const result = collectCandidateResult(\n path,\n programPath,\n {\n ...(state.opts || {}),\n filename: state.file?.opts?.filename || \"\",\n }\n );\n path.node._litsxElementCandidates = result.localCandidates;\n path.node._litsxImportedElementCandidates = [...result.importedCandidates.values()];\n },\n },\n FunctionExpression: {\n exit(path, state) {\n if (isInsideFunctionOrClass(path)) {\n return;\n }\n\n const programPath = path.findParent((entry) => entry.isProgram());\n const result = collectCandidateResult(\n path,\n programPath,\n {\n ...(state.opts || {}),\n filename: state.file?.opts?.filename || \"\",\n }\n );\n path.node._litsxElementCandidates = result.localCandidates;\n path.node._litsxImportedElementCandidates = [...result.importedCandidates.values()];\n },\n },\n },\n };\n});\n"],"names":["normalizeF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