@evlop/commons 1.0.242 → 1.0.243
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/edl/index.d.ts +21 -5
- package/dist/src/edl/index.d.ts.map +1 -1
- package/dist/src/edl/index.js +38 -11
- package/dist/src/edl/index.js.map +1 -1
- package/dist/src/edl/parser.d.ts +1 -1
- package/dist/src/edl/parser.d.ts.map +1 -1
- package/dist/src/edl/parser.js +10 -7
- package/dist/src/edl/parser.js.map +1 -1
- package/dist/src/reducers/pages/index.d.ts.map +1 -1
- package/dist/src/reducers/pages/index.js +17 -0
- package/dist/src/reducers/pages/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/edl/index.d.ts
CHANGED
@@ -1,9 +1,21 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
declare type RenderContextStaticValues = {
|
3
|
+
[key: string]: any;
|
4
|
+
};
|
5
|
+
declare type RenderContextScope = string | [scopeName: string, variableName: string];
|
6
|
+
declare type EDLOptions = {
|
7
|
+
/**
|
8
|
+
* Allow any tags to be rendered, by default only tags defined in edlElements are allowed, to any html tags for web, but should not be enabled for mobile app
|
9
|
+
*/
|
10
|
+
allowAnyTags?: boolean;
|
11
|
+
};
|
2
12
|
declare function registerElement(name: any, element: any): void;
|
3
13
|
declare function registerElements(newElements: any): void;
|
4
|
-
declare function
|
5
|
-
declare function
|
6
|
-
declare function
|
14
|
+
declare function registerRenderContextVariable(name: string, value: any): void;
|
15
|
+
declare function registerRenderContextVariables(newContextValues: RenderContextStaticValues): void;
|
16
|
+
declare function registerRenderContextScope(scope: RenderContextScope): void;
|
17
|
+
declare function registerRenderContextScopes(scopes: RenderContextScope[]): void;
|
18
|
+
declare function setOptions(newOptions: EDLOptions): void;
|
7
19
|
export declare const EDL: {
|
8
20
|
Render: ({ edl, data: _data, dataSources }: {
|
9
21
|
edl: any;
|
@@ -12,8 +24,12 @@ export declare const EDL: {
|
|
12
24
|
}) => React.JSX.Element;
|
13
25
|
registerElement: typeof registerElement;
|
14
26
|
registerElements: typeof registerElements;
|
15
|
-
registerContextValue: typeof
|
16
|
-
registerContextValues: typeof
|
27
|
+
registerContextValue: typeof registerRenderContextVariable;
|
28
|
+
registerContextValues: typeof registerRenderContextVariables;
|
29
|
+
registerRenderContextVariable: typeof registerRenderContextVariable;
|
30
|
+
registerRenderContextVariables: typeof registerRenderContextVariables;
|
31
|
+
registerRenderContextScopes: typeof registerRenderContextScopes;
|
32
|
+
registerRenderContextScope: typeof registerRenderContextScope;
|
17
33
|
setOptions: typeof setOptions;
|
18
34
|
elements: {
|
19
35
|
UseEffect: ({ ":function": fn, ":dependencies": deps }: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAO5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAkED,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaf,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
package/dist/src/edl/index.js
CHANGED
@@ -34,16 +34,26 @@ const hooks_1 = require("../hooks");
|
|
34
34
|
const localStorage_1 = __importDefault(require("./localStorage"));
|
35
35
|
const EDLContext_1 = require("../contexts/EDLContext");
|
36
36
|
const lodash = require('lodash');
|
37
|
+
// actual elements that are availabe to render, these are react components
|
37
38
|
const edlElements = {
|
38
39
|
...elements_1.default,
|
39
40
|
};
|
40
|
-
const
|
41
|
+
const renderContextStaticValues = {
|
41
42
|
axios: helpers_1.axiosClient,
|
42
43
|
_: lodash,
|
43
44
|
localStorage: localStorage_1.default,
|
44
45
|
};
|
46
|
+
// scopes that are available in the render context directly as variable
|
47
|
+
// variableName : scopeName
|
48
|
+
const renderContextScopes = {
|
49
|
+
config: 'config',
|
50
|
+
params: 'params',
|
51
|
+
};
|
45
52
|
const options = {};
|
46
|
-
const renderContextVariables = [
|
53
|
+
const renderContextVariables = new Set([
|
54
|
+
...Object.keys(renderContextStaticValues),
|
55
|
+
...Object.keys(renderContextScopes),
|
56
|
+
]);
|
47
57
|
// should be called before EDL.Render
|
48
58
|
function registerElement(name, element) {
|
49
59
|
edlElements[name] = element;
|
@@ -52,13 +62,25 @@ function registerElements(newElements) {
|
|
52
62
|
Object.assign(edlElements, newElements);
|
53
63
|
}
|
54
64
|
// should be called before EDL.Render
|
55
|
-
function
|
56
|
-
|
57
|
-
renderContextVariables.
|
65
|
+
function registerRenderContextVariable(name, value) {
|
66
|
+
renderContextStaticValues[name] = value;
|
67
|
+
renderContextVariables.add(name);
|
68
|
+
}
|
69
|
+
function registerRenderContextVariables(newContextValues) {
|
70
|
+
Object.assign(renderContextStaticValues, newContextValues);
|
71
|
+
Object.keys(newContextValues).forEach(name => renderContextVariables.add(name));
|
72
|
+
}
|
73
|
+
function registerRenderContextScope(scope) {
|
74
|
+
if (typeof scope === 'string') {
|
75
|
+
renderContextScopes[scope] = scope;
|
76
|
+
}
|
77
|
+
else if (Array.isArray(scope)) {
|
78
|
+
const [scopeName, variableName] = scope;
|
79
|
+
renderContextScopes[variableName] = scopeName;
|
80
|
+
}
|
58
81
|
}
|
59
|
-
function
|
60
|
-
|
61
|
-
renderContextVariables.push(...lodash_1.keys(newContextValues));
|
82
|
+
function registerRenderContextScopes(scopes) {
|
83
|
+
scopes.forEach(scope => registerRenderContextScope(scope));
|
62
84
|
}
|
63
85
|
function setOptions(newOptions) {
|
64
86
|
Object.assign(options, newOptions);
|
@@ -101,8 +123,9 @@ const RenderEDL = ({ edl, data: _data, dataSources }) => {
|
|
101
123
|
createAction: action => actionable(action),
|
102
124
|
context: scope,
|
103
125
|
setRuntimeData,
|
104
|
-
...
|
126
|
+
...renderContextStaticValues,
|
105
127
|
...runtimeData,
|
128
|
+
...lodash_1.mapValues(renderContextScopes, scopeName => scope[scopeName]),
|
106
129
|
}), [scope, setState, runtimeData, setRuntimeData, state, renderData]);
|
107
130
|
const dataSourceLoaders = react_1.useMemo(() => lodash_1.map(dataSources, (dataSource, name) => (react_1.default.createElement(DataSourceLoader_1.default, { key: name, name: name, dataSource: dataSource, setDatasourceData: setDatasourceData }))), [dataSources]);
|
108
131
|
const renderedBlocks = react_1.useMemo(() => edlBlockRenderer.renderBlocks(blocks, renderContext, null), [blocks, renderContext]);
|
@@ -112,8 +135,12 @@ exports.EDL = {
|
|
112
135
|
Render: RenderEDL,
|
113
136
|
registerElement,
|
114
137
|
registerElements,
|
115
|
-
registerContextValue:
|
116
|
-
registerContextValues,
|
138
|
+
registerContextValue: registerRenderContextVariable,
|
139
|
+
registerContextValues: registerRenderContextVariables,
|
140
|
+
registerRenderContextVariable,
|
141
|
+
registerRenderContextVariables,
|
142
|
+
registerRenderContextScopes,
|
143
|
+
registerRenderContextScope,
|
117
144
|
setOptions,
|
118
145
|
elements: edlElements,
|
119
146
|
parse: parseEDLMemoized,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edl/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAyD;AACzD,+CAA8D;AAC9D,0EAAkD;AAClD,0DAAsC;AACtC,oEAA+C;AAC/C,sDAAgC;AAChC,wCAAyC;AACzC,oCAAmD;AACnD,kEAA0C;AAC1C,uDAAqD;AACrD,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEjC,0EAA0E;AAC1E,MAAM,WAAW,GAAG;IAChB,GAAG,kBAAY;CAClB,CAAA;AAMD,MAAM,yBAAyB,GAA8B;IACzD,KAAK,EAAE,qBAAW;IAClB,CAAC,EAAE,MAAM;IACT,YAAY,EAAZ,sBAAY;CACf,CAAC;AAIF,uEAAuE;AACvE,2BAA2B;AAC3B,MAAM,mBAAmB,GAA2B;IAClD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACjB,CAAA;AAQD,MAAM,OAAO,GAAe,EAAE,CAAA;AAE9B,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,GAAG,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC;IACzC,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC;CACpC,CAAC,CAAC;AAEH,qCAAqC;AACrC,SAAS,eAAe,CAAC,IAAI,EAAE,OAAO;IAClC,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CAAC,WAAW;IACjC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAC5C,CAAC;AAED,qCAAqC;AACrC,SAAS,6BAA6B,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AAiB,GAAI,CAAC,CAC/I,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IAEjB,MAAM,cAAc,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,gBAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;IAEvH,OAAO,eAAO,CAAC,GAAE,EAAE,CAAA,8BAAC,wBAAW,IAAC,KAAK,EAAE,EAAC,cAAc,EAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,iBAAiB,EAAE,GAAG,cAAc,CAAC,GAAI,EAAE,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC,CAAC;AACzJ,CAAC,CAAC;AAEW,QAAA,GAAG,GAAG;IACf,MAAM,EAAE,SAAS;IACjB,eAAe;IACf,gBAAgB;IAChB,oBAAoB,EAAE,6BAA6B;IACnD,qBAAqB,EAAE,8BAA8B;IACrD,6BAA6B;IAC7B,8BAA8B;IAC9B,2BAA2B;IAC3B,0BAA0B;IAC1B,UAAU;IACV,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,gBAAgB;CAC1B,CAAC;AAEF,kBAAe,WAAG,CAAC"}
|
package/dist/src/edl/parser.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names":[],"mappings":"AAkFA,iBAAS,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,SAuHlE;AAGD,eAAe,QAAQ,CAAC"}
|
package/dist/src/edl/parser.js
CHANGED
@@ -2,7 +2,16 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const lodash_1 = require("lodash");
|
4
4
|
const inbuiltVariables = ['context', 'data', 'setRuntimeData', 'setState', 'setStates', 'state', 'dispatchAction', 'createAction'];
|
5
|
+
// Regex to match expressions in EDL
|
5
6
|
const expressionRegex = /{(\((?:(?!\)\}).)*\)|[^{}]*)}/g;
|
7
|
+
// Regex to match opening tag in EDL
|
8
|
+
const openingTagRegex = /<([a-zA-Z0-9_]+)((?:\s+[a-zA-Z0-9_\-\.\:]+=(?:"[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\}))*)\s*(\/)?>/s;
|
9
|
+
// Regex to match closing tag in EDL
|
10
|
+
const closingTagRegex = /<\/([a-zA-Z0-9_]+)>/;
|
11
|
+
// Regex to match attributes
|
12
|
+
const attributeRegex = /([a-zA-Z0-9_\-\.\:]+)=("[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\})/sg;
|
13
|
+
// Regex to split the JSX string into tokens using opening or closing tag regex pattern
|
14
|
+
const openingOrClosingTagRegex = /(<(?:\/)?(?:[a-zA-Z0-9_]+)(?:(?:\s+[a-zA-Z0-9_\-\.\:]+=(?:"[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\}))*)\s*(?:\/)?>)/s;
|
6
15
|
const TemplateCompiler = {
|
7
16
|
compileStringTemplate: (variables) => {
|
8
17
|
const variableNamesString = `{ ${variables.join(', ')} }`;
|
@@ -60,19 +69,13 @@ function parseEDL(edlString, additionalVariables) {
|
|
60
69
|
const { cleanedString: _edlString, scriptsById, variables: scriptVariables } = extractScriptsAndVariables(edlString);
|
61
70
|
// Extract :as variables and include them in the union
|
62
71
|
const asVariables = extractAsVariables(edlString);
|
63
|
-
const variables = lodash_1.union(inbuiltVariables, additionalVariables, scriptVariables, asVariables);
|
72
|
+
const variables = lodash_1.union(inbuiltVariables, Array.from(additionalVariables), scriptVariables, asVariables);
|
64
73
|
const compileStringTemplate = TemplateCompiler.compileStringTemplate(variables);
|
65
74
|
const compileExpression = TemplateCompiler.compileExpression(variables);
|
66
75
|
// Initialize an empty array to store the final JSX objects
|
67
76
|
const jsxObjects = [];
|
68
77
|
// Initialize an empty stack to keep track of the nested JSX elements
|
69
78
|
const jsxStack = [];
|
70
|
-
// Define regular expressions to match opening and closing JSX tags and attributes
|
71
|
-
const openingTagRegex = /<([a-zA-Z0-9_]+)((?:\s+[a-zA-Z0-9_\-\.\:]+=(?:"[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\}))*)\s*(\/)?>/s;
|
72
|
-
const closingTagRegex = /<\/([a-zA-Z0-9_]+)>/;
|
73
|
-
const attributeRegex = /([a-zA-Z0-9_\-\.\:]+)=("[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\})/sg;
|
74
|
-
// Split the JSX string into tokens using opening or closing tag regex pattern
|
75
|
-
const openingOrClosingTagRegex = /(<(?:\/)?(?:[a-zA-Z0-9_]+)(?:(?:\s+[a-zA-Z0-9_\-\.\:]+=(?:"[^"]*"|'[^']*'|`[^`]*`|\{\{(?:(?!\}\}).)*\}\}|\{\[(?:(?!\]\}).)*\]\}|\{\((?:(?!\)\}).)*\)\}|\{[^\}]*\}))*)\s*(?:\/)?>)/s;
|
76
79
|
String(_edlString).split(openingOrClosingTagRegex).forEach(token => {
|
77
80
|
// If the token is an empty string, skip it
|
78
81
|
if (token.trim() === '') {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../src/edl/parser.ts"],"names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AG,KAAK,QAAQ,EAAC;gBAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBACrD,OAAO,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBAE3C,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;gBACxC,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;gBAExD,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAAC,SAAS,IAAI,wBAAwB,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACpI;YAED,8EAA8E;YAC9E,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvB,MAAM,UAAU,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACjD,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACtC;iBAAM;gBACL,oFAAoF;gBACpF,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC7B;YAED,0EAA0E;YAC1E,IAAI,CAAC,aAAa,EAAE;gBAClB,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC3B;SACF;IAEH,CAAC,CAAC,CAAC;IACH,OAAO,UAAU,CAAC;AACpB,CAAC;AAGD,kBAAe,QAAQ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,KAAK;yBAA2C,GAAG;;CAkKxD,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
@@ -15,6 +15,7 @@ const REST_QUERY_PAGE_RUNNING = "REST_QUERY_PAGE_RUNNING";
|
|
15
15
|
const REST_QUERY_PAGE_FAILED = "REST_QUERY_PAGE_FAILED";
|
16
16
|
const PAGE_BLOCKS_UPDATED = "PAGE_BLOCKS_UPDATED";
|
17
17
|
const PAGE_DATA_UPDATED = "PAGE_DATA_UPDATED";
|
18
|
+
const PAGE_CREATED = "PAGE_CREATED";
|
18
19
|
const initialState = initialState_1.default;
|
19
20
|
const pages = function (state = initialState, action) {
|
20
21
|
switch (action.type) {
|
@@ -107,6 +108,22 @@ const pages = function (state = initialState, action) {
|
|
107
108
|
isLoading: state.isLoading - 1,
|
108
109
|
};
|
109
110
|
}
|
111
|
+
case PAGE_CREATED: {
|
112
|
+
const { records: oldRecordState = {}, collection = {} } = state;
|
113
|
+
const newCollection = { ...collection };
|
114
|
+
const newData = [...oldRecordState.data];
|
115
|
+
const newItem = { id: action.pageId, ...action.data };
|
116
|
+
newData.splice(0, 0, newItem);
|
117
|
+
newCollection[action.pageId] = newItem;
|
118
|
+
return {
|
119
|
+
...state,
|
120
|
+
collection: newCollection,
|
121
|
+
records: {
|
122
|
+
...oldRecordState,
|
123
|
+
data: newData,
|
124
|
+
},
|
125
|
+
};
|
126
|
+
}
|
110
127
|
case PAGE_BLOCKS_UPDATED: {
|
111
128
|
const { records: oldRecordState = {}, collection = {} } = state;
|
112
129
|
const { data: oldData = [] } = oldRecordState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAChC,kEAA+C;AAE/C,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,wBAAwB,GAAG,0BAA0B,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