@pie-element/shared-theming 0.1.0 → 0.1.1-next.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/dist/constants.d.ts +28 -29
- package/dist/css-variables.d.ts +2 -3
- package/dist/index.d.ts +4 -8
- package/dist/index.js +473 -851
- package/dist/pie-themes.d.ts +2 -3
- package/dist/types.d.ts +0 -36
- package/package.json +15 -13
- package/dist/constants.d.ts.map +0 -1
- package/dist/css-variables.d.ts.map +0 -1
- package/dist/hooks.d.ts +0 -109
- package/dist/hooks.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mui-integration.d.ts +0 -39
- package/dist/mui-integration.d.ts.map +0 -1
- package/dist/pie-themes.d.ts.map +0 -1
- package/dist/provider.d.ts +0 -30
- package/dist/provider.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/dist/pie-themes.d.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* These themes provide good defaults while remaining fully customizable.
|
|
8
8
|
*/
|
|
9
|
-
import type { PieThemeExtended } from './types';
|
|
9
|
+
import type { PieThemeExtended } from './types.js';
|
|
10
10
|
/**
|
|
11
11
|
* PIE Orange - Primary brand color
|
|
12
12
|
*/
|
|
13
|
-
export declare const PIE_ORANGE
|
|
13
|
+
export declare const PIE_ORANGE = "#FF6F00";
|
|
14
14
|
/**
|
|
15
15
|
* PIE Light Theme
|
|
16
16
|
*
|
|
@@ -34,4 +34,3 @@ export declare function getPieTheme(theme: 'light' | 'dark'): Partial<PieThemeEx
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const PIE_THEME_NAMES: readonly ["light", "dark"];
|
|
36
36
|
export type PieThemeName = (typeof PIE_THEME_NAMES)[number];
|
|
37
|
-
//# sourceMappingURL=pie-themes.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PieTheme } from '@pie-element/shared-types';
|
|
2
|
-
import type { Theme } from '@mui/material/styles';
|
|
3
2
|
/**
|
|
4
3
|
* Extended PIE theme with all 45+ color properties
|
|
5
4
|
* Extends base PieTheme from shared-types
|
|
@@ -76,38 +75,3 @@ export interface CssVariableMapping {
|
|
|
76
75
|
themeKey: keyof PieThemeExtended;
|
|
77
76
|
fallback: string;
|
|
78
77
|
}
|
|
79
|
-
/**
|
|
80
|
-
* MUI theme integration options
|
|
81
|
-
*/
|
|
82
|
-
export interface MuiThemeOptions {
|
|
83
|
-
useThemePalette?: boolean;
|
|
84
|
-
injectCssVariables?: boolean;
|
|
85
|
-
preserveMuiDefaults?: boolean;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Theme configuration for PieThemeProvider
|
|
89
|
-
*/
|
|
90
|
-
export interface ThemeConfig {
|
|
91
|
-
theme: Partial<PieThemeExtended>;
|
|
92
|
-
muiOptions?: MuiThemeOptions;
|
|
93
|
-
injectGlobally?: boolean;
|
|
94
|
-
prefix?: string;
|
|
95
|
-
mappings?: CssVariableMapping[];
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Theme context value
|
|
99
|
-
*/
|
|
100
|
-
export interface ThemeContextValue {
|
|
101
|
-
theme: Partial<PieThemeExtended>;
|
|
102
|
-
cssVariables: Record<string, string>;
|
|
103
|
-
muiTheme: Theme;
|
|
104
|
-
setTheme: (theme: Partial<PieThemeExtended>) => void;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* PieThemeProvider props
|
|
108
|
-
*/
|
|
109
|
-
export interface PieThemeProviderProps {
|
|
110
|
-
children: React.ReactNode;
|
|
111
|
-
config: ThemeConfig;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/shared-theming",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1-next.2",
|
|
4
|
+
"description": "Core theming system for PIE elements",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -21,23 +21,25 @@
|
|
|
21
21
|
"clean": "rm -rf dist"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pie-element/shared-types": "
|
|
25
|
-
"@mui/material": "^7.3.4",
|
|
26
|
-
"@emotion/react": "^11.14.0",
|
|
27
|
-
"@emotion/styled": "^11.14.1",
|
|
28
|
-
"react": "^18.3.0"
|
|
24
|
+
"@pie-element/shared-types": "0.2.0-next.0"
|
|
29
25
|
},
|
|
30
26
|
"devDependencies": {
|
|
31
27
|
"@types/react": "^18.3.0",
|
|
32
28
|
"typescript": "^5.9.3",
|
|
33
|
-
"vite": "^
|
|
34
|
-
"vitest": "^4.
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"react": "^18.0.0"
|
|
29
|
+
"vite": "^8.1.5",
|
|
30
|
+
"vitest": "^4.1.11"
|
|
38
31
|
},
|
|
39
32
|
"publishConfig": {
|
|
40
33
|
"access": "public"
|
|
41
34
|
},
|
|
42
|
-
"license": "MIT"
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
39
|
+
"directory": "packages/shared/theming"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/pie-framework/pie-elements-ng#readme",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/pie-framework/pie-elements-ng/issues"
|
|
44
|
+
}
|
|
43
45
|
}
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;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N;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,MAAM,GAAE,WAAwF,GAC/F,IAAI,CAQN"}
|
package/dist/hooks.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { Theme } from '@mui/material/styles';
|
|
2
|
-
import type { PieThemeExtended, ThemeContextValue } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Hook to access the PIE theme context
|
|
5
|
-
* Provides theme state, CSS variables, MUI theme, and update function
|
|
6
|
-
*
|
|
7
|
-
* @returns Theme context value
|
|
8
|
-
* @throws Error if used outside PieThemeProvider
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* function MyComponent() {
|
|
13
|
-
* const { theme, cssVariables, muiTheme, setTheme } = usePieTheme();
|
|
14
|
-
*
|
|
15
|
-
* const handleThemeChange = () => {
|
|
16
|
-
* setTheme({ ...theme, primary: '#FF0000' });
|
|
17
|
-
* };
|
|
18
|
-
*
|
|
19
|
-
* return <div style={cssVariablesToReactStyle(cssVariables)}>...</div>;
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function usePieTheme(): ThemeContextValue;
|
|
24
|
-
/**
|
|
25
|
-
* Hook to get CSS variables from current theme
|
|
26
|
-
* Returns a record of CSS variable names to values
|
|
27
|
-
*
|
|
28
|
-
* @returns CSS variables object
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* function MyComponent() {
|
|
33
|
-
* const cssVars = usePieThemeVariables();
|
|
34
|
-
* // { '--pie-text': 'black', '--pie-primary': '#3F51B5', ... }
|
|
35
|
-
*
|
|
36
|
-
* return <div style={cssVariablesToReactStyle(cssVars)}>...</div>;
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function usePieThemeVariables(): Record<string, string>;
|
|
41
|
-
/**
|
|
42
|
-
* Hook to get CSS variables as a React style object
|
|
43
|
-
* Ready for use in inline styles
|
|
44
|
-
*
|
|
45
|
-
* @returns React CSSProperties object with CSS variables
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```typescript
|
|
49
|
-
* function MyComponent() {
|
|
50
|
-
* const style = usePieThemeStyle();
|
|
51
|
-
* return <div style={style}>...</div>;
|
|
52
|
-
* }
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function usePieThemeStyle(): React.CSSProperties;
|
|
56
|
-
/**
|
|
57
|
-
* Hook to get the current PIE theme colors
|
|
58
|
-
* Returns the theme object without CSS variables or MUI theme
|
|
59
|
-
*
|
|
60
|
-
* @returns Current PIE theme
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* function MyComponent() {
|
|
65
|
-
* const theme = usePieThemeColors();
|
|
66
|
-
* return <div>Primary: {theme.primary}</div>;
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare function usePieThemeColors(): Partial<PieThemeExtended>;
|
|
71
|
-
/**
|
|
72
|
-
* Hook to get the MUI theme
|
|
73
|
-
* Returns the Material-UI theme object
|
|
74
|
-
*
|
|
75
|
-
* @returns MUI Theme
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* import { styled } from '@mui/material/styles';
|
|
80
|
-
*
|
|
81
|
-
* function MyComponent() {
|
|
82
|
-
* const muiTheme = usePieMuiTheme();
|
|
83
|
-
* const spacing = muiTheme.spacing(2); // 16px
|
|
84
|
-
* return <div>...</div>;
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
export declare function usePieMuiTheme(): Theme;
|
|
89
|
-
/**
|
|
90
|
-
* Hook to update the current theme
|
|
91
|
-
* Returns a function to update the theme
|
|
92
|
-
*
|
|
93
|
-
* @returns Theme update function
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```typescript
|
|
97
|
-
* function ThemeSwitcher() {
|
|
98
|
-
* const updateTheme = useSetPieTheme();
|
|
99
|
-
*
|
|
100
|
-
* const switchToDark = () => {
|
|
101
|
-
* updateTheme({ 'base-content': '#fff', 'base-100': '#000' });
|
|
102
|
-
* };
|
|
103
|
-
*
|
|
104
|
-
* return <button onClick={switchToDark}>Dark Mode</button>;
|
|
105
|
-
* }
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
export declare function useSetPieTheme(): (theme: Partial<PieThemeExtended>) => void;
|
|
109
|
-
//# sourceMappingURL=hooks.d.ts.map
|
package/dist/hooks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,CAM/C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAG7D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,aAAa,CAGtD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAG7D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAGtC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAG3E"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGvE,OAAO,EACL,UAAU,EACV,eAAe,EACf,cAAc,EACd,WAAW,EACX,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG/D,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type Theme } from '@mui/material/styles';
|
|
2
|
-
import type { PieThemeExtended, MuiThemeOptions } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Create MUI theme from PIE theme
|
|
5
|
-
* Uses CSS variables in component overrides for compatibility
|
|
6
|
-
*
|
|
7
|
-
* This function creates a Material-UI theme that works alongside PIE's CSS variable system.
|
|
8
|
-
* By default, it preserves MUI's existing styles and optionally injects CSS variables.
|
|
9
|
-
*
|
|
10
|
-
* @param pieTheme - PIE theme with color values
|
|
11
|
-
* @param options - MUI theme configuration options
|
|
12
|
-
* @returns MUI Theme object
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const pieTheme = { primary: '#3F51B5', 'base-content': '#000' };
|
|
17
|
-
* const muiTheme = createPieMuiTheme(pieTheme, {
|
|
18
|
-
* useThemePalette: true,
|
|
19
|
-
* injectCssVariables: true,
|
|
20
|
-
* preserveMuiDefaults: false
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function createPieMuiTheme(pieTheme: Partial<PieThemeExtended>, options?: MuiThemeOptions): Theme;
|
|
25
|
-
/**
|
|
26
|
-
* Update existing MUI theme with PIE colors
|
|
27
|
-
* Useful for dynamically updating a theme without recreating it
|
|
28
|
-
*
|
|
29
|
-
* @param existingTheme - Existing MUI theme
|
|
30
|
-
* @param pieTheme - New PIE theme colors
|
|
31
|
-
* @returns Updated MUI theme
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* const updated = updateMuiThemeFromPie(currentTheme, newPieTheme);
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function updateMuiThemeFromPie(existingTheme: Theme, pieTheme: Partial<PieThemeExtended>): Theme;
|
|
39
|
-
//# sourceMappingURL=mui-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mui-integration.d.ts","sourceRoot":"","sources":["../src/mui-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACnC,OAAO,GAAE,eAAoB,GAC5B,KAAK,CA0GP;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAClC,KAAK,CA4BP"}
|
package/dist/pie-themes.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pie-themes.d.ts","sourceRoot":"","sources":["../src/pie-themes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,UAAU,WAAc,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,gBAAgB,CAkFrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,gBAAgB,CAkFpD,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAE9E;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,4BAA6B,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/provider.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ThemeContextValue, PieThemeProviderProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* PIE Theme Context
|
|
5
|
-
* Provides theme state and update functions to child components
|
|
6
|
-
*/
|
|
7
|
-
export declare const PieThemeContext: React.Context<ThemeContextValue | undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* PIE Theme Provider
|
|
10
|
-
* Manages theme state and generates CSS variables + MUI theme
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* function App() {
|
|
15
|
-
* const config: ThemeConfig = {
|
|
16
|
-
* theme: { primary: '#3F51B5', 'base-content': '#000' },
|
|
17
|
-
* injectGlobally: true,
|
|
18
|
-
* muiOptions: { preserveMuiDefaults: true }
|
|
19
|
-
* };
|
|
20
|
-
*
|
|
21
|
-
* return (
|
|
22
|
-
* <PieThemeProvider config={config}>
|
|
23
|
-
* <YourApp />
|
|
24
|
-
* </PieThemeProvider>
|
|
25
|
-
* );
|
|
26
|
-
* }
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function PieThemeProvider({ children, config }: PieThemeProviderProps): JSX.Element;
|
|
30
|
-
//# sourceMappingURL=provider.d.ts.map
|
package/dist/provider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAGlE,OAAO,KAAK,EAAoB,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI1F;;;GAGG;AACH,eAAO,MAAM,eAAe,8CAA0D,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAsCzF"}
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAEhD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,M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