tsconfig-migrate 0.0.0 → 0.1.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/oxc.d.ts +2 -2
- package/oxc.d.ts.map +1 -1
- package/oxc.js +18 -11
- package/oxc.js.map +1 -1
- package/package.json +4 -4
- package/src/loose-types.ts +3 -3
- package/src/oxc.ts +19 -12
- package/src/swc.ts +19 -11
- package/swc.d.ts +1 -0
- package/swc.d.ts.map +1 -1
- package/swc.js +18 -11
- package/swc.js.map +1 -1
package/oxc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TransformOptions } from "oxc-transform";
|
|
2
2
|
import type { CompilerOptions } from "./loose-types.js";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
export declare const migrateOptions: ({ target, declaration, declarationMap, sourceMap, jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, experimentalDecorators, emitDecoratorMetadata, useDefineForClassFields, stripInternal, }: CompilerOptions) => TransformOptions;
|
|
4
|
+
export default migrateOptions;
|
|
5
5
|
//# sourceMappingURL=oxc.d.ts.map
|
package/oxc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxc.d.ts","sourceRoot":"","sources":["src/oxc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6D,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAiDxD,
|
|
1
|
+
{"version":3,"file":"oxc.d.ts","sourceRoot":"","sources":["src/oxc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6D,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAiDxD,eAAO,MAAM,cAAc,GAAI,kMAa5B,eAAe,KAAG,gBAuBpB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/oxc.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const normalizeDeclaration = ({ declaration, declarationMap, stripInternal, }) => {
|
|
2
2
|
if (declaration) {
|
|
3
3
|
return {
|
|
4
|
-
sourcemap: declarationMap,
|
|
5
|
-
stripInternal,
|
|
4
|
+
sourcemap: !!declarationMap,
|
|
5
|
+
stripInternal: !!stripInternal,
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ const normalizeDecorator = ({ experimentalDecorators, emitDecoratorMetadata, })
|
|
|
11
11
|
if (emitDecorator) {
|
|
12
12
|
return {
|
|
13
13
|
legacy: experimentalDecorators,
|
|
14
|
-
emitDecoratorMetadata: experimentalDecorators && emitDecoratorMetadata,
|
|
14
|
+
emitDecoratorMetadata: !!(experimentalDecorators && emitDecoratorMetadata),
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
};
|
|
@@ -24,28 +24,35 @@ const normalizeJSX = ({ jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, })
|
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
26
|
runtime: jsx === "react" ? "classic" : "automatic",
|
|
27
|
-
importSource: jsxImportSource,
|
|
28
|
-
pragmaFrag: jsxFragmentFactory,
|
|
29
|
-
pragma: jsxFactory,
|
|
27
|
+
importSource: jsxImportSource ?? undefined,
|
|
28
|
+
pragmaFrag: jsxFragmentFactory ?? undefined,
|
|
29
|
+
pragma: jsxFactory ?? undefined,
|
|
30
30
|
development: jsx === "react-jsxdev",
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
const
|
|
33
|
+
export const migrateOptions = ({ target, declaration, declarationMap, sourceMap, jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, experimentalDecorators, emitDecoratorMetadata, useDefineForClassFields, stripInternal, }) => {
|
|
34
34
|
return {
|
|
35
35
|
target: target?.toLowerCase(),
|
|
36
|
-
sourcemap: sourceMap,
|
|
36
|
+
sourcemap: !!sourceMap,
|
|
37
37
|
sourceType: "module",
|
|
38
38
|
assumptions: {
|
|
39
39
|
setPublicClassFields: !useDefineForClassFields,
|
|
40
40
|
},
|
|
41
41
|
jsx: normalizeJSX({ jsx, jsxFactory, jsxFragmentFactory, jsxImportSource }),
|
|
42
|
-
decorator: normalizeDecorator({
|
|
42
|
+
decorator: normalizeDecorator({
|
|
43
|
+
experimentalDecorators,
|
|
44
|
+
emitDecoratorMetadata,
|
|
45
|
+
}),
|
|
43
46
|
typescript: {
|
|
44
47
|
removeClassFieldsWithoutInitializer: !useDefineForClassFields,
|
|
45
48
|
rewriteImportExtensions: true,
|
|
46
|
-
declaration: normalizeDeclaration({
|
|
49
|
+
declaration: normalizeDeclaration({
|
|
50
|
+
declaration,
|
|
51
|
+
declarationMap,
|
|
52
|
+
stripInternal,
|
|
53
|
+
}),
|
|
47
54
|
},
|
|
48
55
|
};
|
|
49
56
|
};
|
|
50
|
-
export default
|
|
57
|
+
export default migrateOptions;
|
|
51
58
|
//# sourceMappingURL=oxc.js.map
|
package/oxc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxc.js","sourceRoot":"","sources":["src/oxc.ts"],"names":[],"mappings":"AAGA,MAAM,oBAAoB,GAAG,CAAC,EAC5B,WAAW,EACX,cAAc,EACd,aAAa,GAC6D,
|
|
1
|
+
{"version":3,"file":"oxc.js","sourceRoot":"","sources":["src/oxc.ts"],"names":[],"mappings":"AAGA,MAAM,oBAAoB,GAAG,CAAC,EAC5B,WAAW,EACX,cAAc,EACd,aAAa,GAC6D,EAA2C,EAAE;IACvH,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO;YACL,SAAS,EAAE,CAAC,CAAC,cAAc;YAC3B,aAAa,EAAE,CAAC,CAAC,aAAa;SAC/B,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,EAC1B,sBAAsB,EACtB,qBAAqB,GACqD,EAAgC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AE,kBAAkB,EAAE,eAAe,EAAE,CAAC;QAC3E,SAAS,EAAE,kBAAkB,CAAC;YAC5B,sBAAsB;YACtB,qBAAqB;SACtB,CAAC;QACF,UAAU,EAAE;YACV,mCAAmC,EAAE,CAAC,uBAAuB;YAC7D,uBAAuB,EAAE,IAAI;YAC7B,WAAW,EAAE,oBAAoB,CAAC;gBAChC,WAAW;gBACX,cAAc;gBACd,aAAa;aACd,CAAC;SACH;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsconfig-migrate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "tsconfig migration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@swc/core": "^1.
|
|
11
|
-
"oxc-transform": "^0.
|
|
12
|
-
"typescript": "^5.
|
|
10
|
+
"@swc/core": "^1.13.5",
|
|
11
|
+
"oxc-transform": "^0.82.3",
|
|
12
|
+
"typescript": "^5.9.2"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./swc.js": "./swc.js",
|
package/src/loose-types.ts
CHANGED
|
@@ -10,12 +10,12 @@ export type CompilerOptions = NullableOptions<{
|
|
|
10
10
|
esModuleInterop: boolean;
|
|
11
11
|
verbatimModuleSyntax: boolean;
|
|
12
12
|
importHelpers: boolean;
|
|
13
|
-
|
|
14
|
-
jsx: string;
|
|
13
|
+
|
|
14
|
+
jsx: string;
|
|
15
15
|
jsxFactory: string;
|
|
16
16
|
jsxFragmentFactory: string;
|
|
17
17
|
jsxImportSource: string;
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
declaration: boolean;
|
|
20
20
|
declarationMap: boolean;
|
|
21
21
|
stripInternal: boolean;
|
package/src/oxc.ts
CHANGED
|
@@ -5,11 +5,11 @@ const normalizeDeclaration = ({
|
|
|
5
5
|
declaration,
|
|
6
6
|
declarationMap,
|
|
7
7
|
stripInternal,
|
|
8
|
-
}: Pick<CompilerOptions, "declaration" | "declarationMap" | "stripInternal">): IsolatedDeclarationsOptions => {
|
|
8
|
+
}: Pick<CompilerOptions, "declaration" | "declarationMap" | "stripInternal">): IsolatedDeclarationsOptions | undefined => {
|
|
9
9
|
if (declaration) {
|
|
10
10
|
return {
|
|
11
|
-
sourcemap: declarationMap,
|
|
12
|
-
stripInternal,
|
|
11
|
+
sourcemap: !!declarationMap,
|
|
12
|
+
stripInternal: !!stripInternal,
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -22,7 +22,7 @@ const normalizeDecorator = ({
|
|
|
22
22
|
if (emitDecorator) {
|
|
23
23
|
return {
|
|
24
24
|
legacy: experimentalDecorators,
|
|
25
|
-
emitDecoratorMetadata: experimentalDecorators && emitDecoratorMetadata,
|
|
25
|
+
emitDecoratorMetadata: !!(experimentalDecorators && emitDecoratorMetadata),
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -41,14 +41,14 @@ const normalizeJSX = ({
|
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
43
|
runtime: jsx === "react" ? "classic" : "automatic",
|
|
44
|
-
importSource: jsxImportSource,
|
|
45
|
-
pragmaFrag: jsxFragmentFactory,
|
|
46
|
-
pragma: jsxFactory,
|
|
44
|
+
importSource: jsxImportSource ?? undefined,
|
|
45
|
+
pragmaFrag: jsxFragmentFactory ?? undefined,
|
|
46
|
+
pragma: jsxFactory ?? undefined,
|
|
47
47
|
development: jsx === "react-jsxdev",
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
export const migrateOptions = ({
|
|
52
52
|
target,
|
|
53
53
|
declaration,
|
|
54
54
|
declarationMap,
|
|
@@ -64,19 +64,26 @@ const migrate = ({
|
|
|
64
64
|
}: CompilerOptions): TransformOptions => {
|
|
65
65
|
return {
|
|
66
66
|
target: target?.toLowerCase(),
|
|
67
|
-
sourcemap: sourceMap,
|
|
67
|
+
sourcemap: !!sourceMap,
|
|
68
68
|
sourceType: "module",
|
|
69
69
|
assumptions: {
|
|
70
70
|
setPublicClassFields: !useDefineForClassFields,
|
|
71
71
|
},
|
|
72
72
|
jsx: normalizeJSX({ jsx, jsxFactory, jsxFragmentFactory, jsxImportSource }),
|
|
73
|
-
decorator: normalizeDecorator({
|
|
73
|
+
decorator: normalizeDecorator({
|
|
74
|
+
experimentalDecorators,
|
|
75
|
+
emitDecoratorMetadata,
|
|
76
|
+
}),
|
|
74
77
|
typescript: {
|
|
75
78
|
removeClassFieldsWithoutInitializer: !useDefineForClassFields,
|
|
76
79
|
rewriteImportExtensions: true,
|
|
77
|
-
declaration: normalizeDeclaration({
|
|
80
|
+
declaration: normalizeDeclaration({
|
|
81
|
+
declaration,
|
|
82
|
+
declarationMap,
|
|
83
|
+
stripInternal,
|
|
84
|
+
}),
|
|
78
85
|
},
|
|
79
86
|
};
|
|
80
87
|
};
|
|
81
88
|
|
|
82
|
-
export default
|
|
89
|
+
export default migrateOptions;
|
package/src/swc.ts
CHANGED
|
@@ -12,9 +12,9 @@ const normalizeJSX = ({
|
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
14
|
runtime: jsx === "react" ? "classic" : "automatic",
|
|
15
|
-
importSource: jsxImportSource,
|
|
16
|
-
pragmaFrag: jsxFragmentFactory,
|
|
17
|
-
pragma: jsxFactory,
|
|
15
|
+
importSource: jsxImportSource ?? undefined,
|
|
16
|
+
pragmaFrag: jsxFragmentFactory ?? undefined,
|
|
17
|
+
pragma: jsxFactory ?? undefined,
|
|
18
18
|
development: jsx === "react-jsxdev",
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -63,27 +63,35 @@ export const migrateOptions = ({
|
|
|
63
63
|
},
|
|
64
64
|
jsc: {
|
|
65
65
|
target: target?.toLowerCase() as JscTarget,
|
|
66
|
-
externalHelpers: importHelpers,
|
|
66
|
+
externalHelpers: !!importHelpers,
|
|
67
67
|
parser: {
|
|
68
68
|
syntax: "typescript",
|
|
69
69
|
tsx: !!jsx,
|
|
70
70
|
decorators: emitDecorator,
|
|
71
71
|
},
|
|
72
72
|
transform: {
|
|
73
|
-
decoratorMetadata: emitDecorator && experimentalDecorators && emitDecoratorMetadata,
|
|
73
|
+
decoratorMetadata: !!(emitDecorator && experimentalDecorators && emitDecoratorMetadata),
|
|
74
74
|
decoratorVersion: emitDecorator ? (experimentalDecorators ? "2021-12" : "2022-03") : undefined,
|
|
75
75
|
legacyDecorator: emitDecorator ? experimentalDecorators : undefined,
|
|
76
|
-
useDefineForClassFields,
|
|
77
|
-
verbatimModuleSyntax: verbatimModuleSyntax,
|
|
78
|
-
react: normalizeJSX({
|
|
76
|
+
useDefineForClassFields: !!useDefineForClassFields,
|
|
77
|
+
verbatimModuleSyntax: !!verbatimModuleSyntax,
|
|
78
|
+
react: normalizeJSX({
|
|
79
|
+
jsx,
|
|
80
|
+
jsxFactory,
|
|
81
|
+
jsxFragmentFactory,
|
|
82
|
+
jsxImportSource,
|
|
83
|
+
}),
|
|
79
84
|
},
|
|
80
85
|
experimental: {
|
|
81
|
-
emitIsolatedDts: declaration,
|
|
86
|
+
emitIsolatedDts: !!declaration,
|
|
87
|
+
keepImportAssertions: true,
|
|
82
88
|
},
|
|
83
89
|
},
|
|
84
|
-
sourceMaps: inlineSourceMap ? "inline" : sourceMap,
|
|
85
|
-
sourceRoot: sourceRoot,
|
|
90
|
+
sourceMaps: inlineSourceMap ? "inline" : sourceMap || false,
|
|
91
|
+
sourceRoot: sourceRoot ?? undefined,
|
|
86
92
|
inlineSourcesContent: inlineSources ?? true,
|
|
87
93
|
isModule: module !== "none",
|
|
88
94
|
};
|
|
89
95
|
};
|
|
96
|
+
|
|
97
|
+
export default migrateOptions;
|
package/swc.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CompilerOptions } from "./loose-types.js";
|
|
2
2
|
import type { Options } from "@swc/core";
|
|
3
3
|
export declare const migrateOptions: ({ target, sourceMap, jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, experimentalDecorators, emitDecoratorMetadata, useDefineForClassFields, inlineSourceMap, declaration, sourceRoot, inlineSources, module, esModuleInterop, verbatimModuleSyntax, importHelpers, }: CompilerOptions) => Options;
|
|
4
|
+
export default migrateOptions;
|
|
4
5
|
//# sourceMappingURL=swc.d.ts.map
|
package/swc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swc.d.ts","sourceRoot":"","sources":["src/swc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAA2B,OAAO,EAAe,MAAM,WAAW,CAAC;AAoB/E,eAAO,MAAM,cAAc,GAAI,6QAkB5B,eAAe,KAAG,
|
|
1
|
+
{"version":3,"file":"swc.d.ts","sourceRoot":"","sources":["src/swc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAA2B,OAAO,EAAe,MAAM,WAAW,CAAC;AAoB/E,eAAO,MAAM,cAAc,GAAI,6QAkB5B,eAAe,KAAG,OAuDpB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/swc.js
CHANGED
|
@@ -4,9 +4,9 @@ const normalizeJSX = ({ jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, })
|
|
|
4
4
|
}
|
|
5
5
|
return {
|
|
6
6
|
runtime: jsx === "react" ? "classic" : "automatic",
|
|
7
|
-
importSource: jsxImportSource,
|
|
8
|
-
pragmaFrag: jsxFragmentFactory,
|
|
9
|
-
pragma: jsxFactory,
|
|
7
|
+
importSource: jsxImportSource ?? undefined,
|
|
8
|
+
pragmaFrag: jsxFragmentFactory ?? undefined,
|
|
9
|
+
pragma: jsxFactory ?? undefined,
|
|
10
10
|
development: jsx === "react-jsxdev",
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -34,28 +34,35 @@ export const migrateOptions = ({ target, sourceMap, jsx, jsxFactory, jsxFragment
|
|
|
34
34
|
},
|
|
35
35
|
jsc: {
|
|
36
36
|
target: target?.toLowerCase(),
|
|
37
|
-
externalHelpers: importHelpers,
|
|
37
|
+
externalHelpers: !!importHelpers,
|
|
38
38
|
parser: {
|
|
39
39
|
syntax: "typescript",
|
|
40
40
|
tsx: !!jsx,
|
|
41
41
|
decorators: emitDecorator,
|
|
42
42
|
},
|
|
43
43
|
transform: {
|
|
44
|
-
decoratorMetadata: emitDecorator && experimentalDecorators && emitDecoratorMetadata,
|
|
44
|
+
decoratorMetadata: !!(emitDecorator && experimentalDecorators && emitDecoratorMetadata),
|
|
45
45
|
decoratorVersion: emitDecorator ? (experimentalDecorators ? "2021-12" : "2022-03") : undefined,
|
|
46
46
|
legacyDecorator: emitDecorator ? experimentalDecorators : undefined,
|
|
47
|
-
useDefineForClassFields,
|
|
48
|
-
verbatimModuleSyntax: verbatimModuleSyntax,
|
|
49
|
-
react: normalizeJSX({
|
|
47
|
+
useDefineForClassFields: !!useDefineForClassFields,
|
|
48
|
+
verbatimModuleSyntax: !!verbatimModuleSyntax,
|
|
49
|
+
react: normalizeJSX({
|
|
50
|
+
jsx,
|
|
51
|
+
jsxFactory,
|
|
52
|
+
jsxFragmentFactory,
|
|
53
|
+
jsxImportSource,
|
|
54
|
+
}),
|
|
50
55
|
},
|
|
51
56
|
experimental: {
|
|
52
|
-
emitIsolatedDts: declaration,
|
|
57
|
+
emitIsolatedDts: !!declaration,
|
|
58
|
+
keepImportAssertions: true,
|
|
53
59
|
},
|
|
54
60
|
},
|
|
55
|
-
sourceMaps: inlineSourceMap ? "inline" : sourceMap,
|
|
56
|
-
sourceRoot: sourceRoot,
|
|
61
|
+
sourceMaps: inlineSourceMap ? "inline" : sourceMap || false,
|
|
62
|
+
sourceRoot: sourceRoot ?? undefined,
|
|
57
63
|
inlineSourcesContent: inlineSources ?? true,
|
|
58
64
|
isModule: module !== "none",
|
|
59
65
|
};
|
|
60
66
|
};
|
|
67
|
+
export default migrateOptions;
|
|
61
68
|
//# sourceMappingURL=swc.js.map
|
package/swc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swc.js","sourceRoot":"","sources":["src/swc.ts"],"names":[],"mappings":"AAGA,MAAM,YAAY,GAAG,CAAC,EACpB,GAAG,EACH,UAAU,EACV,kBAAkB,EAClB,eAAe,GACwE,EAA2B,EAAE;IACpH,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,cAAc,EAAE,CAAC;QACzD,OAAO;IACT,CAAC;IACD,OAAO;QACL,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW;QAClD,YAAY,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"swc.js","sourceRoot":"","sources":["src/swc.ts"],"names":[],"mappings":"AAGA,MAAM,YAAY,GAAG,CAAC,EACpB,GAAG,EACH,UAAU,EACV,kBAAkB,EAClB,eAAe,GACwE,EAA2B,EAAE;IACpH,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,cAAc,EAAE,CAAC;QACzD,OAAO;IACT,CAAC;IACD,OAAO;QACL,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW;QAClD,YAAY,EAAE,eAAe,IAAI,SAAS;QAC1C,UAAU,EAAE,kBAAkB,IAAI,SAAS;QAC3C,MAAM,EAAE,UAAU,IAAI,SAAS;QAC/B,WAAW,EAAE,GAAG,KAAK,cAAc;KACpC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,MAAM,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