@rxap/plugin-storybook 20.1.0-dev.0 → 20.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +6 -6
- package/src/lib/coerce-main.js +37 -40
- package/src/lib/coerce-main.js.map +1 -1
- package/src/lib/coerce-preview.js +81 -84
- package/src/lib/coerce-preview.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.1.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.1.0-dev.1...@rxap/plugin-storybook@20.1.0-dev.2) (2026-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
9
|
+
|
|
10
|
+
# [20.1.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.1.0-dev.0...@rxap/plugin-storybook@20.1.0-dev.1) (2026-01-12)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- update package groups ([ba8753f](https://gitlab.com/rxap/packages/commit/ba8753f5f34680adc282d84c557fc43385bfa987))
|
|
15
|
+
|
|
6
16
|
# [20.1.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.5-dev.3...@rxap/plugin-storybook@20.1.0-dev.0) (2026-01-12)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.1.0-dev.
|
|
2
|
+
"version": "20.1.0-dev.2",
|
|
3
3
|
"name": "@rxap/plugin-storybook",
|
|
4
4
|
"description": "This package provides generators to initialize Storybook for Angular projects within an Nx workspace. It automates the configuration of Storybook, including adding dependencies, setting up configurations, and generating stories. It supports both application and library projects, and offers options to customize the setup, such as enabling Compodoc integration and skipping format checks.\n",
|
|
5
5
|
"license": "MIT",
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"@nx/angular": "20.5.0",
|
|
8
8
|
"@nx/devkit": "20.5.0",
|
|
9
9
|
"@nx/eslint": "^20.5.0",
|
|
10
|
-
"@rxap/ts-morph": "^1.6.0-dev.
|
|
11
|
-
"@rxap/utilities": "^16.5.0-dev.
|
|
12
|
-
"@rxap/workspace-ts-morph": "^19.1.13-dev.
|
|
13
|
-
"@rxap/workspace-utilities": "^19.8.1-dev.
|
|
10
|
+
"@rxap/ts-morph": "^1.6.0-dev.3",
|
|
11
|
+
"@rxap/utilities": "^16.5.0-dev.1",
|
|
12
|
+
"@rxap/workspace-ts-morph": "^19.1.13-dev.4",
|
|
13
|
+
"@rxap/workspace-utilities": "^19.8.1-dev.3",
|
|
14
14
|
"colors": "^1.4.0",
|
|
15
15
|
"ts-morph": "^18.0.0",
|
|
16
16
|
"tslib": "2.6.2"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"schematics": "./generators.json",
|
|
46
46
|
"type": "commonjs",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "69d6ee61a20632f52b77de621089334a34f45e03",
|
|
48
48
|
"types": "./src/index.d.ts",
|
|
49
49
|
"main": "./src/index.js"
|
|
50
50
|
}
|
package/src/lib/coerce-main.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.coerceMain = coerceMain;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
6
5
|
const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
7
6
|
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
@@ -20,44 +19,42 @@ function CoerceObjectLiteralExpressionPropertyAssignment(objectLiteralExpression
|
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
function coerceMain(tree, projectName, project, options) {
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, '.storybook/main.ts');
|
|
61
|
-
});
|
|
22
|
+
return (0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
23
|
+
project: projectName,
|
|
24
|
+
}, (_, sourceFile) => {
|
|
25
|
+
const config = (0, ts_morph_1.CoerceVariableDeclaration)(sourceFile, 'config', { initializer: '{}' });
|
|
26
|
+
const objectLiteralExpression = config.getInitializerIfKind(ts_morph_2.SyntaxKind.ObjectLiteralExpression);
|
|
27
|
+
// region staticDirs
|
|
28
|
+
const projectRoot = (0, workspace_utilities_1.GetProjectRoot)(tree, projectName);
|
|
29
|
+
if ((0, workspace_utilities_1.IsApplicationProject)(project)) {
|
|
30
|
+
const storiesPA = CoerceObjectLiteralExpressionPropertyAssignment(objectLiteralExpression, 'stories', { initializer: '[]' });
|
|
31
|
+
const storiesArrayLiteralExpression = storiesPA.getInitializerIfKind(ts_morph_2.SyntaxKind.ArrayLiteralExpression);
|
|
32
|
+
(0, ts_morph_1.CoerceArrayElement)(storiesArrayLiteralExpression, `'../src/feature/**/*.stories.@(js|jsx|ts|tsx|mdx)'`);
|
|
33
|
+
}
|
|
34
|
+
CoerceObjectLiteralExpressionPropertyAssignment(objectLiteralExpression, 'staticDirs', {
|
|
35
|
+
initializer: w => {
|
|
36
|
+
w.writeLine('[');
|
|
37
|
+
ts_morph_2.Writers.object({
|
|
38
|
+
from: w => w.quote((0, path_1.join)((0, path_1.relative)((0, path_1.join)(projectRoot, '.storybook'), tree.root), 'shared/angular/assets')),
|
|
39
|
+
to: w => w.quote('/'),
|
|
40
|
+
})(w);
|
|
41
|
+
w.writeLine(']');
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
// endregion
|
|
45
|
+
// region docs
|
|
46
|
+
const docs = CoerceObjectLiteralExpressionPropertyAssignment(objectLiteralExpression, 'docs', {
|
|
47
|
+
initializer: '{}',
|
|
48
|
+
});
|
|
49
|
+
const docsObjectLiteralExpression = docs.getInitializerIfKind(ts_morph_2.SyntaxKind.ObjectLiteralExpression);
|
|
50
|
+
CoerceObjectLiteralExpressionPropertyAssignment(docsObjectLiteralExpression, 'autodocs', { initializer: 'true' });
|
|
51
|
+
// endregion
|
|
52
|
+
// region addons
|
|
53
|
+
const addons = CoerceObjectLiteralExpressionPropertyAssignment(objectLiteralExpression, 'addons', { initializer: '[]' });
|
|
54
|
+
const addonsArrayLiteralExpression = addons.getInitializerIfKind(ts_morph_2.SyntaxKind.ArrayLiteralExpression);
|
|
55
|
+
(0, ts_morph_1.CoerceArrayElement)(addonsArrayLiteralExpression, `'@storybook/addon-interactions'`);
|
|
56
|
+
(0, ts_morph_1.CoerceArrayElement)(addonsArrayLiteralExpression, `'@storybook/addon-themes'`);
|
|
57
|
+
// endregion
|
|
58
|
+
}, '.storybook/main.ts');
|
|
62
59
|
}
|
|
63
60
|
//# sourceMappingURL=coerce-main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-main.js","sourceRoot":"","sources":["../../../../../../packages/plugin/storybook/src/lib/coerce-main.ts"],"names":[],"mappings":";;AA6CA,gCA4CC
|
|
1
|
+
{"version":3,"file":"coerce-main.js","sourceRoot":"","sources":["../../../../../../packages/plugin/storybook/src/lib/coerce-main.ts"],"names":[],"mappings":";;AA6CA,gCA4CC;AArFD,6CAGwB;AACxB,iEAAmE;AACnE,mEAGmC;AACnC,+BAGc;AACd,uCAOkB;AAGlB,SAAS,+CAA+C,CACtD,uBAAgD,EAChD,YAAoB,EACpB,SAAkE;IAGlE,MAAM,QAAQ,GAAG,uBAAuB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IACnE,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC,aAAa,CAAC,qBAAU,CAAC,kBAAkB,CAAC,CAAC;IAC/D,CAAC;SAAM,CAAC;QACN,OAAO,uBAAuB,CAAC,qBAAqB,CAAC;YACnD,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,SAAS,CAAC,WAAW;SACnC,CAAC,CAAC;IACL,CAAC;AAEH,CAAC;AAED,SAAgB,UAAU,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAmC;IAE5H,OAAO,IAAA,4CAAuB,EAAC,IAAI,EAAE;QACnC,OAAO,EAAE,WAAW;KACrB,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;QAEnB,MAAM,MAAM,GAAG,IAAA,oCAAyB,EAAC,UAAU,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QACtF,MAAM,uBAAuB,GAAG,MAAM,CAAC,oBAAoB,CAAC,qBAAU,CAAC,uBAAuB,CAAC,CAAC;QAChG,oBAAoB;QACpB,MAAM,WAAW,GAAG,IAAA,oCAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACtD,IAAI,IAAA,0CAAoB,EAAC,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,SAAS,GAAG,+CAA+C,CAAC,uBAAuB,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;YAC7H,MAAM,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QACpG,IAAA,6BAAkB,EAAC,4BAA4B,EAAE,iCAAiC,CAAC,CAAC;QACpF,IAAA,6BAAkB,EAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAAC;QAC9E,YAAY;IAEd,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAG3B,CAAC"}
|
|
@@ -1,99 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.coercePreview = coercePreview;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
6
5
|
const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
7
6
|
const ts_morph_2 = require("ts-morph");
|
|
8
7
|
function coercePreview(tree, projectName, options) {
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (options.compodoc) {
|
|
14
|
-
(0, ts_morph_1.CoerceImports)(sourceFile, [
|
|
15
|
-
{
|
|
16
|
-
defaultImport: 'docJson',
|
|
17
|
-
moduleSpecifier: '../documentation.json',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
namedImports: ['setCompodocJson'],
|
|
21
|
-
moduleSpecifier: '@storybook/addon-docs/angular',
|
|
22
|
-
}
|
|
23
|
-
]);
|
|
24
|
-
// add the setCompodocJson call to the preview.ts file if not already exists
|
|
25
|
-
if (!sourceFile.getStatements().find(statement => statement.getText().includes('setCompodocJson(docJson)'))) {
|
|
26
|
-
sourceFile.addStatements(['setCompodocJson(docJson);']);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
const decoratorsDeclaration = (0, ts_morph_1.CoerceVariableDeclaration)(sourceFile, 'decorators', { initializer: '[]' });
|
|
30
|
-
const arrayLiteralExpression = decoratorsDeclaration.getInitializerIfKind(ts_morph_2.SyntaxKind.ArrayLiteralExpression);
|
|
31
|
-
(0, ts_morph_1.CoerceArrayElement)(arrayLiteralExpression, w => {
|
|
32
|
-
w.write('withThemeByClassName(');
|
|
33
|
-
ts_morph_2.Writers.object({
|
|
34
|
-
themes: ts_morph_2.Writers.object({
|
|
35
|
-
// nameOfTheme: 'classNameForTheme',
|
|
36
|
-
light: w => w.quote(''),
|
|
37
|
-
dark: w => w.quote('dark'),
|
|
38
|
-
}),
|
|
39
|
-
defaultTheme: w => w.quote('light'),
|
|
40
|
-
parentSelector: w => w.quote('body'),
|
|
41
|
-
})(w);
|
|
42
|
-
w.write(')');
|
|
43
|
-
}, e => e.getText().startsWith('withThemeByClassName'));
|
|
44
|
-
(0, ts_morph_1.CoerceArrayElement)(arrayLiteralExpression, w => {
|
|
45
|
-
w.write('applicationConfig(');
|
|
46
|
-
ts_morph_2.Writers.object({
|
|
47
|
-
providers: w => {
|
|
48
|
-
w.writeLine('[');
|
|
49
|
-
w.writeLine('provideHttpClient(),');
|
|
50
|
-
w.writeLine('ProvideIconAssetPath([');
|
|
51
|
-
w.quote('mdi.svg');
|
|
52
|
-
w.write(',');
|
|
53
|
-
w.quote('custom.svg');
|
|
54
|
-
w.writeLine(']),');
|
|
55
|
-
w.writeLine('provideNoopAnimations(),');
|
|
56
|
-
w.writeLine('ProvideConfig(),');
|
|
57
|
-
w.writeLine(`ProvideEnvironment({app: '${projectName}-storybook', production: false}),`);
|
|
58
|
-
w.writeLine('],');
|
|
59
|
-
}
|
|
60
|
-
})(w);
|
|
61
|
-
w.write(')');
|
|
62
|
-
}, e => e.getText().startsWith('applicationConfig'));
|
|
8
|
+
return (0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
9
|
+
project: projectName,
|
|
10
|
+
}, (project, sourceFile) => {
|
|
11
|
+
if (options.compodoc) {
|
|
63
12
|
(0, ts_morph_1.CoerceImports)(sourceFile, [
|
|
64
13
|
{
|
|
65
|
-
|
|
66
|
-
moduleSpecifier: '
|
|
14
|
+
defaultImport: 'docJson',
|
|
15
|
+
moduleSpecifier: '../documentation.json',
|
|
67
16
|
},
|
|
68
17
|
{
|
|
69
|
-
namedImports: ['
|
|
70
|
-
moduleSpecifier: '@
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
namedImports: ['ProvideIconAssetPath'],
|
|
74
|
-
moduleSpecifier: '@rxap/icon',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
namedImports: ['ProvideConfig'],
|
|
78
|
-
moduleSpecifier: '@rxap/config',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
namedImports: ['ProvideEnvironment'],
|
|
82
|
-
moduleSpecifier: '@rxap/environment',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
namedImports: ['withThemeByClassName'],
|
|
86
|
-
moduleSpecifier: '@storybook/addon-themes',
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
namedImports: ['applicationConfig'],
|
|
90
|
-
moduleSpecifier: '@storybook/angular',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
moduleSpecifier: '@angular/localize/init',
|
|
18
|
+
namedImports: ['setCompodocJson'],
|
|
19
|
+
moduleSpecifier: '@storybook/addon-docs/angular',
|
|
94
20
|
}
|
|
95
21
|
]);
|
|
96
|
-
|
|
97
|
-
|
|
22
|
+
// add the setCompodocJson call to the preview.ts file if not already exists
|
|
23
|
+
if (!sourceFile.getStatements().find(statement => statement.getText().includes('setCompodocJson(docJson)'))) {
|
|
24
|
+
sourceFile.addStatements(['setCompodocJson(docJson);']);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const decoratorsDeclaration = (0, ts_morph_1.CoerceVariableDeclaration)(sourceFile, 'decorators', { initializer: '[]' });
|
|
28
|
+
const arrayLiteralExpression = decoratorsDeclaration.getInitializerIfKind(ts_morph_2.SyntaxKind.ArrayLiteralExpression);
|
|
29
|
+
(0, ts_morph_1.CoerceArrayElement)(arrayLiteralExpression, w => {
|
|
30
|
+
w.write('withThemeByClassName(');
|
|
31
|
+
ts_morph_2.Writers.object({
|
|
32
|
+
themes: ts_morph_2.Writers.object({
|
|
33
|
+
// nameOfTheme: 'classNameForTheme',
|
|
34
|
+
light: w => w.quote(''),
|
|
35
|
+
dark: w => w.quote('dark'),
|
|
36
|
+
}),
|
|
37
|
+
defaultTheme: w => w.quote('light'),
|
|
38
|
+
parentSelector: w => w.quote('body'),
|
|
39
|
+
})(w);
|
|
40
|
+
w.write(')');
|
|
41
|
+
}, e => e.getText().startsWith('withThemeByClassName'));
|
|
42
|
+
(0, ts_morph_1.CoerceArrayElement)(arrayLiteralExpression, w => {
|
|
43
|
+
w.write('applicationConfig(');
|
|
44
|
+
ts_morph_2.Writers.object({
|
|
45
|
+
providers: w => {
|
|
46
|
+
w.writeLine('[');
|
|
47
|
+
w.writeLine('provideHttpClient(),');
|
|
48
|
+
w.writeLine('ProvideIconAssetPath([');
|
|
49
|
+
w.quote('mdi.svg');
|
|
50
|
+
w.write(',');
|
|
51
|
+
w.quote('custom.svg');
|
|
52
|
+
w.writeLine(']),');
|
|
53
|
+
w.writeLine('provideNoopAnimations(),');
|
|
54
|
+
w.writeLine('ProvideConfig(),');
|
|
55
|
+
w.writeLine(`ProvideEnvironment({app: '${projectName}-storybook', production: false}),`);
|
|
56
|
+
w.writeLine('],');
|
|
57
|
+
}
|
|
58
|
+
})(w);
|
|
59
|
+
w.write(')');
|
|
60
|
+
}, e => e.getText().startsWith('applicationConfig'));
|
|
61
|
+
(0, ts_morph_1.CoerceImports)(sourceFile, [
|
|
62
|
+
{
|
|
63
|
+
namedImports: ['provideHttpClient'],
|
|
64
|
+
moduleSpecifier: '@angular/common/http',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
namedImports: ['provideNoopAnimations'],
|
|
68
|
+
moduleSpecifier: '@angular/platform-browser/animations',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
namedImports: ['ProvideIconAssetPath'],
|
|
72
|
+
moduleSpecifier: '@rxap/icon',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
namedImports: ['ProvideConfig'],
|
|
76
|
+
moduleSpecifier: '@rxap/config',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
namedImports: ['ProvideEnvironment'],
|
|
80
|
+
moduleSpecifier: '@rxap/environment',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
namedImports: ['withThemeByClassName'],
|
|
84
|
+
moduleSpecifier: '@storybook/addon-themes',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
namedImports: ['applicationConfig'],
|
|
88
|
+
moduleSpecifier: '@storybook/angular',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
moduleSpecifier: '@angular/localize/init',
|
|
92
|
+
}
|
|
93
|
+
]);
|
|
94
|
+
}, '.storybook/preview.ts');
|
|
98
95
|
}
|
|
99
96
|
//# sourceMappingURL=coerce-preview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-preview.js","sourceRoot":"","sources":["../../../../../../packages/plugin/storybook/src/lib/coerce-preview.ts"],"names":[],"mappings":";;AAaA,sCA8FC
|
|
1
|
+
{"version":3,"file":"coerce-preview.js","sourceRoot":"","sources":["../../../../../../packages/plugin/storybook/src/lib/coerce-preview.ts"],"names":[],"mappings":";;AAaA,sCA8FC;AA1GD,6CAIwB;AACxB,iEAAmE;AACnE,uCAGkB;AAGlB,SAAgB,aAAa,CAAC,IAAU,EAAE,WAAmB,EAAE,OAAmC;IAEhG,OAAO,IAAA,4CAAuB,EAAC,IAAI,EAAE;QACnC,OAAO,EAAE,WAAW;KACrB,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE;QAEzB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB;oBACE,aAAa,EAAE,SAAS;oBACxB,eAAe,EAAE,uBAAuB;iBACzC;gBACD;oBACE,YAAY,EAAE,CAAE,iBAAiB,CAAE;oBACnC,eAAe,EAAE,+BAA+B;iBACjD;aACF,CAAC,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