@azlib/editor 0.2.0 → 0.3.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 +861 -226
- package/dist/index.d.cts +43 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +43 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +860 -229
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -48,6 +48,8 @@ interface CommandResult {
|
|
|
48
48
|
interface EditorConfig {
|
|
49
49
|
initialContent?: EditorInput;
|
|
50
50
|
commandCapabilities?: string[];
|
|
51
|
+
toolbar?: boolean | string[];
|
|
52
|
+
placeholder?: string;
|
|
51
53
|
onChange?: (document: EditorDocument) => void;
|
|
52
54
|
onError?: (error: EditorErrorEnvelope) => void;
|
|
53
55
|
}
|
|
@@ -59,6 +61,16 @@ interface EditorInstance {
|
|
|
59
61
|
mount: (target: Element) => void;
|
|
60
62
|
unmount: () => void;
|
|
61
63
|
destroy: () => void;
|
|
64
|
+
isMarkActive: (name: string) => boolean;
|
|
65
|
+
getActiveBlockType: () => string;
|
|
66
|
+
on: (event: "change" | "selectionchange", callback: () => void) => () => void;
|
|
67
|
+
toolbar?: boolean | string[];
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
_registerActiveHandler?: (handler: {
|
|
70
|
+
isMarkActive: (name: string) => boolean;
|
|
71
|
+
getActiveBlockType: () => string;
|
|
72
|
+
} | null) => void;
|
|
73
|
+
_triggerSelectionChange?: () => void;
|
|
62
74
|
}
|
|
63
75
|
//#endregion
|
|
64
76
|
//#region src/core/createEditor.d.ts
|
|
@@ -74,15 +86,23 @@ declare const editorNodeNames: {
|
|
|
74
86
|
readonly orderedList: "ordered_list";
|
|
75
87
|
readonly listItem: "list_item";
|
|
76
88
|
readonly hardBreak: "hard_break";
|
|
89
|
+
readonly blockquote: "blockquote";
|
|
90
|
+
readonly codeBlock: "code_block";
|
|
91
|
+
readonly image: "image";
|
|
92
|
+
readonly video: "video";
|
|
77
93
|
};
|
|
78
94
|
declare const editorMarkNames: {
|
|
79
95
|
readonly strong: "strong";
|
|
80
96
|
readonly em: "em";
|
|
81
97
|
readonly underline: "underline";
|
|
82
98
|
readonly link: "link";
|
|
99
|
+
readonly strike: "strike";
|
|
100
|
+
readonly code: "code";
|
|
101
|
+
readonly style: "style";
|
|
102
|
+
readonly formula: "formula";
|
|
83
103
|
};
|
|
84
|
-
declare const createEditorSchema: () => Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break", "strong" | "em" | "underline" | "link">;
|
|
85
|
-
declare const editorSchema: Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break", "strong" | "em" | "underline" | "link">;
|
|
104
|
+
declare const createEditorSchema: () => Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break" | "blockquote" | "code_block" | "image" | "video", "strong" | "em" | "underline" | "link" | "strike" | "code" | "style" | "formula">;
|
|
105
|
+
declare const editorSchema: Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break" | "blockquote" | "code_block" | "image" | "video", "strong" | "em" | "underline" | "link" | "strike" | "code" | "style" | "formula">;
|
|
86
106
|
//#endregion
|
|
87
107
|
//#region src/core/toolbarModel.d.ts
|
|
88
108
|
interface ToolbarAction {
|
|
@@ -101,11 +121,27 @@ interface DomEditorAdapter {
|
|
|
101
121
|
declare const createDomAdapter: (editor: EditorInstance) => DomEditorAdapter;
|
|
102
122
|
//#endregion
|
|
103
123
|
//#region src/adapters/react/useEditorAdapter.d.ts
|
|
124
|
+
declare const EditorContext: import("react").Context<EditorInstance | null>;
|
|
125
|
+
declare const useEditor: () => EditorInstance | null;
|
|
126
|
+
declare const useEditorState: () => {
|
|
127
|
+
editor: EditorInstance;
|
|
128
|
+
document: EditorDocument;
|
|
129
|
+
isMarkActive: (name: string) => boolean;
|
|
130
|
+
activeBlockType: string;
|
|
131
|
+
};
|
|
132
|
+
declare function EditorProvider({
|
|
133
|
+
editor,
|
|
134
|
+
children
|
|
135
|
+
}: {
|
|
136
|
+
editor: EditorInstance;
|
|
137
|
+
children: React.ReactNode;
|
|
138
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
104
139
|
declare const useEditorAdapter: (config: EditorConfig) => EditorInstance;
|
|
105
140
|
interface RichEditorAdapterProps extends EditorConfig {
|
|
106
141
|
className?: string;
|
|
107
142
|
disabled?: boolean;
|
|
108
143
|
onRequestEmbedValue?: (type: "link" | "image" | "video" | "formula") => Promise<string | null> | string | null;
|
|
144
|
+
editor?: EditorInstance;
|
|
109
145
|
}
|
|
110
146
|
declare function RichEditorAdapter({
|
|
111
147
|
className,
|
|
@@ -113,7 +149,10 @@ declare function RichEditorAdapter({
|
|
|
113
149
|
initialContent,
|
|
114
150
|
onChange,
|
|
115
151
|
onError,
|
|
116
|
-
onRequestEmbedValue
|
|
152
|
+
onRequestEmbedValue,
|
|
153
|
+
toolbar,
|
|
154
|
+
placeholder,
|
|
155
|
+
editor: propEditor
|
|
117
156
|
}: RichEditorAdapterProps): import("react/jsx-runtime").JSX.Element;
|
|
118
157
|
//#endregion
|
|
119
158
|
//#region src/transforms/representationSwitch.d.ts
|
|
@@ -124,5 +163,5 @@ interface ImportResult {
|
|
|
124
163
|
declare const importRepresentation: (input: EditorInput, base: EditorDocument) => ImportResult;
|
|
125
164
|
declare const exportRepresentation: (document: EditorDocument, format: ContentFormat) => EditorExport;
|
|
126
165
|
//#endregion
|
|
127
|
-
export { type CommandResult, type ContentFormat, type DiagnosticSeverity, type EditorConfig, type EditorDocument, type EditorErrorEnvelope, type EditorExport, type EditorInput, type EditorInstance, type RepresentationDiagnostic, RichEditorAdapter, type RichEditorAdapterProps, type ToolbarAction, createDomAdapter, createEditor, createEditorSchema, defaultToolbarActions, editorMarkNames, editorNodeNames, editorSchema, exportRepresentation, importRepresentation, useEditorAdapter };
|
|
166
|
+
export { type CommandResult, type ContentFormat, type DiagnosticSeverity, type EditorConfig, EditorContext, type EditorDocument, type EditorErrorEnvelope, type EditorExport, type EditorInput, type EditorInstance, EditorProvider, type RepresentationDiagnostic, RichEditorAdapter, type RichEditorAdapterProps, type ToolbarAction, createDomAdapter, createEditor, createEditorSchema, defaultToolbarActions, editorMarkNames, editorNodeNames, editorSchema, exportRepresentation, importRepresentation, useEditor, useEditorAdapter, useEditorState };
|
|
128
167
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/core/types.ts","../src/core/createEditor.ts","../src/core/schema.ts","../src/core/toolbarModel.ts","../src/adapters/dom/createDomAdapter.ts","../src/adapters/react/useEditorAdapter.tsx","../src/transforms/representationSwitch.ts"],"mappings":";;;KAAY,aAAA;AAAA,KAEA,kBAAA;AAAA,UAEK,wBAAA;EACf,IAAA;EACA,QAAA,EAAU,kBAAkB;EAC5B,OAAA;EACA,QAAA;IACE,KAAA;IACA,GAAA;IACA,IAAA;EAAA;AAAA;AAAA,UAIa,aAAA;EACf,QAAA;EACA,IAAI;AAAA;AAAA,UAGW,cAAA;EACf,EAAA;EACA,KAAA;EACA,OAAA,EAAS,aAAA;EACT,QAAA,EAAU,MAAM;EAChB,QAAA;AAAA;AAAA,UAGe,WAAA;EACf,MAAA,EAAQ,aAAa;EACrB,OAAA;AAAA;AAAA,UAGe,YAAA;EACf,MAAA,EAAQ,aAAA;EACR,OAAA;EACA,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,mBAAA;EACf,IAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,OAAA,GAAU,MAAM;AAAA;AAAA,UAGD,aAAA;EACf,EAAA;EACA,QAAA,EAAU,cAAA;EACV,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,YAAA;EACf,cAAA,GAAiB,WAAA;EACjB,mBAAA;EACA,QAAA,IAAY,QAAA,EAAU,cAAA;EACtB,OAAA,IAAW,KAAA,EAAO,mBAAA;AAAA;AAAA,UAGH,cAAA;EACf,WAAA,QAAmB,cAAA;EACnB,OAAA,GAAU,WAAA,UAAqB,MAAA,GAAS,MAAA,sBAA4B,aAAA;EACpE,MAAA,GAAS,MAAA,EAAQ,aAAA,KAAkB,YAAA;EACnC,MAAA,GAAS,KAAA,EAAO,WAAA,KAAgB,aAAA;EAChC,KAAA,GAAQ,MAAA,EAAQ,OAAA;EAChB,OAAA;EACA,OAAA;AAAA;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/core/types.ts","../src/core/createEditor.ts","../src/core/schema.ts","../src/core/toolbarModel.ts","../src/adapters/dom/createDomAdapter.ts","../src/adapters/react/useEditorAdapter.tsx","../src/transforms/representationSwitch.ts"],"mappings":";;;KAAY,aAAA;AAAA,KAEA,kBAAA;AAAA,UAEK,wBAAA;EACf,IAAA;EACA,QAAA,EAAU,kBAAkB;EAC5B,OAAA;EACA,QAAA;IACE,KAAA;IACA,GAAA;IACA,IAAA;EAAA;AAAA;AAAA,UAIa,aAAA;EACf,QAAA;EACA,IAAI;AAAA;AAAA,UAGW,cAAA;EACf,EAAA;EACA,KAAA;EACA,OAAA,EAAS,aAAA;EACT,QAAA,EAAU,MAAM;EAChB,QAAA;AAAA;AAAA,UAGe,WAAA;EACf,MAAA,EAAQ,aAAa;EACrB,OAAA;AAAA;AAAA,UAGe,YAAA;EACf,MAAA,EAAQ,aAAA;EACR,OAAA;EACA,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,mBAAA;EACf,IAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,OAAA,GAAU,MAAM;AAAA;AAAA,UAGD,aAAA;EACf,EAAA;EACA,QAAA,EAAU,cAAA;EACV,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,YAAA;EACf,cAAA,G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AA,OAAA;AAAA,cAQ7F,gBAAA,GAAgB,MAAA,EAAY,YAAA,KAAY,cAQpD;AAAA,UAEgB,sBAAA,SAA+B,YAAA;EAC9C,SAAA;EACA,QAAA;EACA,mBAAA,IAAuB,IAAA,6CAAiD,OAAA;EACxE,MAAA,GAAS,cAAA;AAAA;AAAA,iBAGK,iBAAA,CAAA;EACd,SAAA;EACA,QAAA;EACA,cAAA;EACA,QAAA;EACA,OAAA;EACA,mBAAA;EACA,OAAA;EACA,WAAA;EACA,MAAA,EAAQ;AAAA,GACP,sBAAA,+BAAsB,GAAA,CAAA,OAAA;;;UC3ER,YAAA;EACf,QAAA,EAAU,cAAA;EACV,WAAA,EAAa,wBAAwB;AAAA;AAAA,cAG1B,oBAAA,GAAoB,KAAA,EAAW,WAAA,EAAW,IAAA,EAAQ,cAAA,KAAiB,YAAA;AAAA,cA6DnE,oBAAA,GAAoB,QAAA,EAAc,cAAA,EAAc,MAAA,EAAU,aAAA,KAAgB,YAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -48,6 +48,8 @@ interface CommandResult {
|
|
|
48
48
|
interface EditorConfig {
|
|
49
49
|
initialContent?: EditorInput;
|
|
50
50
|
commandCapabilities?: string[];
|
|
51
|
+
toolbar?: boolean | string[];
|
|
52
|
+
placeholder?: string;
|
|
51
53
|
onChange?: (document: EditorDocument) => void;
|
|
52
54
|
onError?: (error: EditorErrorEnvelope) => void;
|
|
53
55
|
}
|
|
@@ -59,6 +61,16 @@ interface EditorInstance {
|
|
|
59
61
|
mount: (target: Element) => void;
|
|
60
62
|
unmount: () => void;
|
|
61
63
|
destroy: () => void;
|
|
64
|
+
isMarkActive: (name: string) => boolean;
|
|
65
|
+
getActiveBlockType: () => string;
|
|
66
|
+
on: (event: "change" | "selectionchange", callback: () => void) => () => void;
|
|
67
|
+
toolbar?: boolean | string[];
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
_registerActiveHandler?: (handler: {
|
|
70
|
+
isMarkActive: (name: string) => boolean;
|
|
71
|
+
getActiveBlockType: () => string;
|
|
72
|
+
} | null) => void;
|
|
73
|
+
_triggerSelectionChange?: () => void;
|
|
62
74
|
}
|
|
63
75
|
//#endregion
|
|
64
76
|
//#region src/core/createEditor.d.ts
|
|
@@ -74,15 +86,23 @@ declare const editorNodeNames: {
|
|
|
74
86
|
readonly orderedList: "ordered_list";
|
|
75
87
|
readonly listItem: "list_item";
|
|
76
88
|
readonly hardBreak: "hard_break";
|
|
89
|
+
readonly blockquote: "blockquote";
|
|
90
|
+
readonly codeBlock: "code_block";
|
|
91
|
+
readonly image: "image";
|
|
92
|
+
readonly video: "video";
|
|
77
93
|
};
|
|
78
94
|
declare const editorMarkNames: {
|
|
79
95
|
readonly strong: "strong";
|
|
80
96
|
readonly em: "em";
|
|
81
97
|
readonly underline: "underline";
|
|
82
98
|
readonly link: "link";
|
|
99
|
+
readonly strike: "strike";
|
|
100
|
+
readonly code: "code";
|
|
101
|
+
readonly style: "style";
|
|
102
|
+
readonly formula: "formula";
|
|
83
103
|
};
|
|
84
|
-
declare const createEditorSchema: () => Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break", "strong" | "em" | "underline" | "link">;
|
|
85
|
-
declare const editorSchema: Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break", "strong" | "em" | "underline" | "link">;
|
|
104
|
+
declare const createEditorSchema: () => Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break" | "blockquote" | "code_block" | "image" | "video", "strong" | "em" | "underline" | "link" | "strike" | "code" | "style" | "formula">;
|
|
105
|
+
declare const editorSchema: Schema<"doc" | "paragraph" | "heading" | "text" | "bullet_list" | "ordered_list" | "list_item" | "hard_break" | "blockquote" | "code_block" | "image" | "video", "strong" | "em" | "underline" | "link" | "strike" | "code" | "style" | "formula">;
|
|
86
106
|
//#endregion
|
|
87
107
|
//#region src/core/toolbarModel.d.ts
|
|
88
108
|
interface ToolbarAction {
|
|
@@ -101,11 +121,27 @@ interface DomEditorAdapter {
|
|
|
101
121
|
declare const createDomAdapter: (editor: EditorInstance) => DomEditorAdapter;
|
|
102
122
|
//#endregion
|
|
103
123
|
//#region src/adapters/react/useEditorAdapter.d.ts
|
|
124
|
+
declare const EditorContext: import("react").Context<EditorInstance | null>;
|
|
125
|
+
declare const useEditor: () => EditorInstance | null;
|
|
126
|
+
declare const useEditorState: () => {
|
|
127
|
+
editor: EditorInstance;
|
|
128
|
+
document: EditorDocument;
|
|
129
|
+
isMarkActive: (name: string) => boolean;
|
|
130
|
+
activeBlockType: string;
|
|
131
|
+
};
|
|
132
|
+
declare function EditorProvider({
|
|
133
|
+
editor,
|
|
134
|
+
children
|
|
135
|
+
}: {
|
|
136
|
+
editor: EditorInstance;
|
|
137
|
+
children: React.ReactNode;
|
|
138
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
104
139
|
declare const useEditorAdapter: (config: EditorConfig) => EditorInstance;
|
|
105
140
|
interface RichEditorAdapterProps extends EditorConfig {
|
|
106
141
|
className?: string;
|
|
107
142
|
disabled?: boolean;
|
|
108
143
|
onRequestEmbedValue?: (type: "link" | "image" | "video" | "formula") => Promise<string | null> | string | null;
|
|
144
|
+
editor?: EditorInstance;
|
|
109
145
|
}
|
|
110
146
|
declare function RichEditorAdapter({
|
|
111
147
|
className,
|
|
@@ -113,7 +149,10 @@ declare function RichEditorAdapter({
|
|
|
113
149
|
initialContent,
|
|
114
150
|
onChange,
|
|
115
151
|
onError,
|
|
116
|
-
onRequestEmbedValue
|
|
152
|
+
onRequestEmbedValue,
|
|
153
|
+
toolbar,
|
|
154
|
+
placeholder,
|
|
155
|
+
editor: propEditor
|
|
117
156
|
}: RichEditorAdapterProps): import("react/jsx-runtime").JSX.Element;
|
|
118
157
|
//#endregion
|
|
119
158
|
//#region src/transforms/representationSwitch.d.ts
|
|
@@ -124,5 +163,5 @@ interface ImportResult {
|
|
|
124
163
|
declare const importRepresentation: (input: EditorInput, base: EditorDocument) => ImportResult;
|
|
125
164
|
declare const exportRepresentation: (document: EditorDocument, format: ContentFormat) => EditorExport;
|
|
126
165
|
//#endregion
|
|
127
|
-
export { type CommandResult, type ContentFormat, type DiagnosticSeverity, type EditorConfig, type EditorDocument, type EditorErrorEnvelope, type EditorExport, type EditorInput, type EditorInstance, type RepresentationDiagnostic, RichEditorAdapter, type RichEditorAdapterProps, type ToolbarAction, createDomAdapter, createEditor, createEditorSchema, defaultToolbarActions, editorMarkNames, editorNodeNames, editorSchema, exportRepresentation, importRepresentation, useEditorAdapter };
|
|
166
|
+
export { type CommandResult, type ContentFormat, type DiagnosticSeverity, type EditorConfig, EditorContext, type EditorDocument, type EditorErrorEnvelope, type EditorExport, type EditorInput, type EditorInstance, EditorProvider, type RepresentationDiagnostic, RichEditorAdapter, type RichEditorAdapterProps, type ToolbarAction, createDomAdapter, createEditor, createEditorSchema, defaultToolbarActions, editorMarkNames, editorNodeNames, editorSchema, exportRepresentation, importRepresentation, useEditor, useEditorAdapter, useEditorState };
|
|
128
167
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/types.ts","../src/core/createEditor.ts","../src/core/schema.ts","../src/core/toolbarModel.ts","../src/adapters/dom/createDomAdapter.ts","../src/adapters/react/useEditorAdapter.tsx","../src/transforms/representationSwitch.ts"],"mappings":";;;KAAY,aAAA;AAAA,KAEA,kBAAA;AAAA,UAEK,wBAAA;EACf,IAAA;EACA,QAAA,EAAU,kBAAkB;EAC5B,OAAA;EACA,QAAA;IACE,KAAA;IACA,GAAA;IACA,IAAA;EAAA;AAAA;AAAA,UAIa,aAAA;EACf,QAAA;EACA,IAAI;AAAA;AAAA,UAGW,cAAA;EACf,EAAA;EACA,KAAA;EACA,OAAA,EAAS,aAAA;EACT,QAAA,EAAU,MAAM;EAChB,QAAA;AAAA;AAAA,UAGe,WAAA;EACf,MAAA,EAAQ,aAAa;EACrB,OAAA;AAAA;AAAA,UAGe,YAAA;EACf,MAAA,EAAQ,aAAA;EACR,OAAA;EACA,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,mBAAA;EACf,IAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,OAAA,GAAU,MAAM;AAAA;AAAA,UAGD,aAAA;EACf,EAAA;EACA,QAAA,EAAU,cAAA;EACV,WAAA,EAAa,wBAAwB;AAAA;AAAA,UAGtB,YAAA;EACf,cAAA,GAAiB,WAAA;EACjB,mBAAA;EACA,QAAA,IAAY,QAAA,EAAU,cAAA;EACtB,OAAA,IAAW,KAAA,EAAO,mBAAA;AAAA;AAAA,UAGH,cAAA;EACf,WAAA,QAAmB,cAAA;EACnB,OAAA,GAAU,WAAA,UAAqB,MAAA,GAAS,MAAA,sBAA4B,aAAA;EACpE,MAAA,GAAS,MAAA,EAAQ,aAAA,KAAkB,YAAA;EACnC,MAAA,GAAS,KAAA,EAAO,WAAA,KAAgB,aAAA;EAChC,KAAA,GAAQ,MAAA,EAAQ,OAAA;EAChB,OAAA;EACA,OAAA;AAAA;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/types.ts","../src/core/createEditor.ts","../src/core/schema.ts","../src/core/toolbarModel.ts","../src/adapters/dom/createDomAdapter.ts","../src/adapters/react/useEditorAdapter.tsx","../src/transforms/representationSwitch.ts"],"mappings":";;;KAAY,aAAA;AAAA,KAEA,kBAAA;AAAA,UAEK,wBAAA;EACf,IAAA;EACA,QAAA,EAAU,kBAAkB;EAC5B,OAAA;EACA,QAAA;IACE,KAAA;IACA,GAAA;IACA,IAAA;EAAA;AAAA;AAAA,UAIa,aAAA;EACf,QAAA;EACA,IAAI;AAAA;AAAA,UAGW,cAAA;EACf,EAAA;EACA,KAAA;EACA,OAAA,EAAS,aAAA;EACT,QAAA,EAAU,MAAM;EAChB,QAAA;AAAA;AAAA,UAGe,W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