@appartmint/mint 2.4.4 → 2.6.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.
Files changed (36) hide show
  1. package/dist/css/mint.css +187 -50
  2. package/dist/css/mint.css.map +1 -1
  3. package/dist/css/mint.min.css +1 -1
  4. package/dist/css/mint.min.css.map +1 -1
  5. package/dist/js/imports/abstract/attaches-events.d.ts +26 -0
  6. package/dist/js/imports/abstract/attaches-events.d.ts.map +1 -0
  7. package/dist/js/imports/abstract/index.d.ts +5 -0
  8. package/dist/js/imports/abstract/index.d.ts.map +1 -0
  9. package/dist/js/imports/components/header.d.ts +10 -111
  10. package/dist/js/imports/components/header.d.ts.map +1 -1
  11. package/dist/js/imports/components/index.d.ts +2 -0
  12. package/dist/js/imports/components/index.d.ts.map +1 -1
  13. package/dist/js/imports/components/menu.d.ts +92 -0
  14. package/dist/js/imports/components/menu.d.ts.map +1 -0
  15. package/dist/js/imports/components/panel.d.ts +66 -0
  16. package/dist/js/imports/components/panel.d.ts.map +1 -0
  17. package/dist/js/imports/index.d.ts +2 -1
  18. package/dist/js/imports/index.d.ts.map +1 -1
  19. package/dist/js/imports/models/event.d.ts +9 -0
  20. package/dist/js/imports/models/event.d.ts.map +1 -0
  21. package/dist/js/imports/models/index.d.ts +1 -0
  22. package/dist/js/imports/models/index.d.ts.map +1 -1
  23. package/dist/js/imports/util/selectors.d.ts +1 -1
  24. package/dist/js/imports/util/selectors.d.ts.map +1 -1
  25. package/dist/js/index.js +455 -227
  26. package/dist/js/index.js.map +1 -1
  27. package/dist/js/index.min.js +1 -1
  28. package/dist/js/index.min.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/scss/imports/components/partial/_chat.scss +131 -0
  31. package/src/scss/imports/components/partial/_header.scss +6 -61
  32. package/src/scss/imports/components/partial/_index.scss +1 -0
  33. package/src/scss/imports/components/widget/_button.scss +2 -0
  34. package/src/scss/imports/components/widget/_index.scss +2 -0
  35. package/src/scss/imports/components/widget/_menu.scss +0 -0
  36. package/src/scss/imports/components/widget/_panel.scss +95 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Imports
3
+ */
4
+ import { MintModelEvent } from '../models';
5
+ /**
6
+ * Attaches Events
7
+ * @description Extended by classes that attach and detach events
8
+ */
9
+ export declare abstract class MintAttachesEvents {
10
+ /**
11
+ * Event handlers
12
+ */
13
+ events: MintModelEvent[];
14
+ /**
15
+ * Attach event to the given element
16
+ * @param element - Element to attach event to
17
+ * @param event - Event to attach
18
+ * @param handler - Handler to attach
19
+ */
20
+ attachEvent(element: HTMLElement | Window | null | undefined, event: string, handler: EventListener): void;
21
+ /**
22
+ * Detach events
23
+ */
24
+ detachEvents(): void;
25
+ }
26
+ //# sourceMappingURL=attaches-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attaches-events.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/abstract/attaches-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C;;;GAGG;AACH,8BAAsB,kBAAkB;IAEvC;;OAEG;IACH,MAAM,EAAE,cAAc,EAAE,CAAM;IAG9B;;;;;OAKG;IACH,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAI,IAAI;IAiB3G;;OAEG;IACH,YAAY;CAQZ"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Forward all abstract exports
3
+ */
4
+ export * from './attaches-events';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/abstract/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,mBAAmB,CAAC"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Imports
3
+ */
4
+ import { MintPanel } from "./panel";
5
+ import { MintMenu } from "./menu";
1
6
  /**
2
7
  * Main header functionality
3
8
  * @public
@@ -16,13 +21,10 @@ export declare class MintHeader {
16
21
  [key: string]: HTMLElement | null;
17
22
  };
18
23
  /**
19
- * Event handlers
24
+ * Navigation functionality
20
25
  */
21
- events: {
22
- el: HTMLElement | Window | null;
23
- handlers: EventListener[];
24
- events: string[];
25
- }[];
26
+ panel?: MintPanel;
27
+ menu?: MintMenu;
26
28
  /**
27
29
  * Initializes and closes the menu
28
30
  */
@@ -30,119 +32,16 @@ export declare class MintHeader {
30
32
  [key: string]: any;
31
33
  });
32
34
  /**
33
- * Destroys the header
35
+ * Detach events
34
36
  */
35
- destroy(): void;
37
+ detachEvents(): void;
36
38
  /**
37
39
  * Adds elements to {@link el | `this.el`}
38
40
  */
39
41
  attachElements(): void;
40
- /**
41
- * Attach event to the given element
42
- * @param element - Element to attach event to
43
- * @param event - Event to attach
44
- * @param handler - Handler to attach
45
- */
46
- attachEvent(element: HTMLElement | Window | null | undefined, event: string, handler: EventListener): void;
47
- /**
48
- * Adds events to the dom
49
- */
50
- attachEvents(): void;
51
42
  /**
52
43
  * Adds classes that inform the styles based on settings
53
44
  */
54
45
  addClasses(): void;
55
- /**
56
- * Sets the state of the mobile menu
57
- * @param open - `true` to open the menu or `false` to close it
58
- */
59
- setMobileMenu(open?: boolean): void;
60
- /**
61
- * Toggles the state of the mobile menu
62
- */
63
- toggleMobileMenu(): void;
64
- /**
65
- * Sets the state of the provided button's menu
66
- * @param button - Button element to set
67
- * @param open - `true` to open the menu or `false` to close it
68
- */
69
- setMenu(button?: HTMLElement | null, open?: boolean): void;
70
- /**
71
- * Toggles the state of the provided button's menu
72
- * @param button - Button element to toggle
73
- */
74
- toggleMenu(button?: HTMLElement | null): void;
75
- /**
76
- * Closes all submenus of the provided button's menu
77
- * @param button - Button element of the parent menu
78
- */
79
- closeSubMenus(button?: HTMLElement | null): void;
80
- /**
81
- * Closes all sibling menus of the provided button's menu
82
- * @param button - Button element of the sibling menus
83
- */
84
- closeSiblingMenus(button?: HTMLElement | null): void;
85
- /**
86
- * Closes all submenus of the n4vbar
87
- */
88
- closeAllMenus(): void;
89
- /**
90
- * Opens the menu closest to the document's focus
91
- */
92
- openClosestMenu(): void;
93
- /**
94
- * Closes the menu closest to the document's focus
95
- */
96
- closeClosestMenu(): void;
97
- /**
98
- * Toggles the menu closest to the document's focus
99
- */
100
- toggleClosestMenu(): void;
101
- /**
102
- * Closes the mobile menu when the window resizes
103
- */
104
- eHandleResize(): void;
105
- /**
106
- * Closes all submenus when the page is scrolled
107
- */
108
- eHandleScroll(): void;
109
- /**
110
- * Sends the focus to the menu button after tabbing past the last menu item
111
- * @param e - Keyboard event
112
- */
113
- eWrapTab(e: KeyboardEvent): void;
114
- /**
115
- * Handles keypresses on n4vbar buttons
116
- * @param e - Keyboard event
117
- */
118
- eHandleButtonKeypress(e: KeyboardEvent): void;
119
- /**
120
- * Handles keypresses on n4vbar links
121
- * @param e - Keyboard event
122
- */
123
- eHandleLinkKeypress(e: KeyboardEvent): void;
124
- /**
125
- * Handles keypresses on the n4vbar
126
- * @param e - Keyboard event
127
- */
128
- eHandleKeypress(e: KeyboardEvent): void;
129
- /**
130
- * Toggles the mobile menu
131
- */
132
- eToggleMobileMenu(): void;
133
- /**
134
- * Closes the mobile menu
135
- */
136
- eCloseMobileMenu(): void;
137
- /**
138
- * Toggles the clicked submenu
139
- * @param e - Mouse event
140
- */
141
- eToggleMenu(e: MouseEvent): void;
142
- /**
143
- * Runs after the mobile menu transitions
144
- */
145
- eTransitionEnd(): void;
146
46
  }
147
- export default MintHeader;
148
47
  //# sourceMappingURL=header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/header.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,qBAAa,UAAU;IAEtB;;OAEM;IACF,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAA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IAAI,IAAI;IAKpB;;OAEG;IACH,cAAc,IAAI,IAAI;IAItB;;OAEG;IACH,UAAU,IAAI,IAAI;CAKlB"}
@@ -3,4 +3,6 @@
3
3
  */
4
4
  export * from './grid';
5
5
  export * from './header';
6
+ export * from './menu';
7
+ export * from './panel';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Imports
3
+ */
4
+ import { MintAttachesEvents } from '../abstract';
5
+ /**
6
+ * Menu (dropdown) functionality
7
+ * @public
8
+ */
9
+ export declare class MintMenu extends MintAttachesEvents {
10
+ /**
11
+ * Tray settings
12
+ */
13
+ settings: Record<string, any>;
14
+ /**
15
+ * Frequently-referenced elements
16
+ */
17
+ el: Record<string, HTMLElement | null>;
18
+ /**
19
+ * Initializes and closes the tray
20
+ */
21
+ constructor(settings?: Record<string, any>);
22
+ /**
23
+ * Adds elements to {@link el | `this.el`}
24
+ */
25
+ attachElements(): void;
26
+ /**
27
+ * Adds events to the dom
28
+ */
29
+ attachEvents(): void;
30
+ /**
31
+ * Sets the state of the provided button's menu
32
+ * @param button - Button element to set
33
+ * @param open - `true` to open the menu or `false` to close it
34
+ */
35
+ setMenu(button?: HTMLElement | null, open?: boolean): void;
36
+ /**
37
+ * Toggles the state of the provided button's menu
38
+ * @param button - Button element to toggle
39
+ */
40
+ toggleMenu(button?: HTMLElement | null): void;
41
+ /**
42
+ * Closes all submenus of the provided button's menu
43
+ * @param button - Button element of the parent menu
44
+ */
45
+ closeSubMenus(button?: HTMLElement | null): void;
46
+ /**
47
+ * Closes all sibling menus of the provided button's menu
48
+ * @param button - Button element of the sibling menus
49
+ */
50
+ closeSiblingMenus(button?: HTMLElement | null): void;
51
+ /**
52
+ * Closes all submenus of the menu
53
+ */
54
+ closeAllMenus(): void;
55
+ /**
56
+ * Opens the menu closest to the document's focus
57
+ */
58
+ openClosestMenu(): void;
59
+ /**
60
+ * Closes the menu closest to the document's focus
61
+ */
62
+ closeClosestMenu(): void;
63
+ /**
64
+ * Toggles the menu closest to the document's focus
65
+ */
66
+ toggleClosestMenu(): void;
67
+ /**
68
+ * Closes all submenus when the page is scrolled
69
+ */
70
+ eHandleScroll(): void;
71
+ /**
72
+ * Handles keypresses on menu buttons
73
+ * @param e - Keyboard event
74
+ */
75
+ eHandleButtonKeypress(e: KeyboardEvent): void;
76
+ /**
77
+ * Handles keypresses on menu links
78
+ * @param e - Keyboard event
79
+ */
80
+ eHandleLinkKeypress(e: KeyboardEvent): void;
81
+ /**
82
+ * Handles keypresses on the menu
83
+ * @param e - Keyboard event
84
+ */
85
+ eHandleKeypress(e: KeyboardEvent): void;
86
+ /**
87
+ * Toggles the clicked submenu
88
+ * @param e - Mouse event
89
+ */
90
+ eToggleMenu(e: MouseEvent): void;
91
+ }
92
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/menu.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD;;;GAGG;AACH,qBAAa,QAAS,SAAQ,kBAAkB;IAE/C;;OAEM;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAEpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAM;IAG5C;;OAEG;gBACU,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAgB3C;;OAEG;IACH,cAAc,IAAM,IAAI;IAIxB;;OAEG;IACH,YAAY,IAAM,IAAI;IActB;;;;OAIG;IACH,OAAO,CAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,EAC3B,IAAI,GAAE,OAAe,GAAI,IAAI;IActC;;;OAGG;IACH,UAAU,CAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAI,IAAI;IAI/C;;;OAGG;IACH,aAAa,CAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAI,IAAI;IAWlD;;;OAGG;IACH,iBAAiB,CAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAI,IAAI;IAUtD;;OAEG;IACH,aAAa,IAAM,IAAI;IAOvB;;OAEG;IACH,eAAe,IAAM,IAAI;IAezB;;OAEG;IACH,gBAAgB,IAAM,IAAI;IAc1B;;OAEG;IACH,iBAAiB,IAAM,IAAI;IAQ3B;;OAEG;IACH,aAAa,IAAM,IAAI;IAIvB;;;OAGG;IACH,qBAAqB,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAsB/C;;;OAGG;IACH,mBAAmB,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAiB7C;;;OAGG;IACH,eAAe,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAezC;;;OAGG;IACH,WAAW,CAAE,CAAC,EAAE,UAAU,GAAI,IAAI;CAKrC"}
@@ -0,0 +1,66 @@
1
+ import { MintAttachesEvents } from '../abstract';
2
+ /**
3
+ * Panel (sidebar) functionality
4
+ * @public
5
+ */
6
+ export declare class MintPanel extends MintAttachesEvents {
7
+ /**
8
+ * Panel settings
9
+ */
10
+ settings: Record<string, any>;
11
+ /**
12
+ * Frequently-referenced elements
13
+ */
14
+ el: Record<string, HTMLElement | null>;
15
+ /**
16
+ * Initializes and closes the panel
17
+ */
18
+ constructor(settings?: Record<string, any>);
19
+ /**
20
+ * Adds elements to {@link el | `this.el`}
21
+ */
22
+ attachElements(): void;
23
+ /**
24
+ * Adds events to the dom
25
+ */
26
+ attachEvents(): void;
27
+ /**
28
+ * Adds classes that inform the styles based on settings
29
+ */
30
+ addClasses(): void;
31
+ /**
32
+ * Sets the state of the panel
33
+ * @param open - `true` to open the panel or `false` to close it
34
+ */
35
+ setPanel(open?: boolean): void;
36
+ /**
37
+ * Toggles the state of the panel
38
+ */
39
+ togglePanel(): void;
40
+ /**
41
+ * Closes other panels
42
+ */
43
+ closeOtherPanels(): void;
44
+ /**
45
+ * Closes the panel when the window resizes
46
+ */
47
+ eHandleResize(): void;
48
+ /**
49
+ * Sends the focus to the toggle button after tabbing past the last focusable element
50
+ * @param e - Keyboard event
51
+ */
52
+ eWrapTab(e: KeyboardEvent): void;
53
+ /**
54
+ * Toggles the panel
55
+ */
56
+ eToggle(): void;
57
+ /**
58
+ * Closes the panel
59
+ */
60
+ eClose(): void;
61
+ /**
62
+ * Runs after the panel transitions
63
+ */
64
+ eTransitionEnd(): void;
65
+ }
66
+ //# sourceMappingURL=panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/panel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD;;;GAGG;AACH,qBAAa,SAAU,SAAQ,kBAAkB;IAEhD;;OAEM;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI5B;IAEF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAM;IAG5C;;OAEG;gBACU,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAiB3C;;OAEG;IACH,cAAc,IAAM,IAAI;IAQxB;;OAEG;IACH,YAAY,IAAM,IAAI;IAatB;;OAEG;IACH,UAAU,IAAM,IAAI;IAepB;;;OAGG;IACH,QAAQ,CAAE,IAAI,GAAE,OAAe,GAAI,IAAI;IAuDvC;;OAEG;IACH,WAAW,IAAM,IAAI;IAIxB;;OAEG;IACH,gBAAgB,IAAM,IAAI;IAMvB;;OAEG;IACH,aAAa,IAAM,IAAI;IA+BvB;;;OAGG;IACH,QAAQ,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAelC;;OAEG;IACH,OAAO,IAAM,IAAI;IAIpB;;OAEG;IACH,MAAM,IAAM,IAAI;IAIb;;OAEG;IACH,cAAc,IAAM,IAAI;CAK3B"}
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Forward all exports from the imports directory
2
+ * Forward all imports exports
3
3
  */
4
+ export * from './abstract';
4
5
  export * from './components';
5
6
  export * from './enums';
6
7
  export * from './models';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/imports/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/imports/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Event data
3
+ */
4
+ export interface MintModelEvent {
5
+ el: HTMLElement | Window | null;
6
+ handlers: EventListener[];
7
+ events: string[];
8
+ }
9
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/event.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAA;CAChB"}
@@ -2,6 +2,7 @@
2
2
  * Forward all exports from the models directory
3
3
  */
4
4
  export * from './color';
5
+ export * from './event';
5
6
  export * from './file';
6
7
  export * from './item';
7
8
  export * from './minify';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
@@ -108,7 +108,7 @@ export declare abstract class MintSelectors {
108
108
  * @param el - the element whose focusable children will be returned
109
109
  * @returns - the elements within the given element that are focusable
110
110
  */
111
- static getFocusables(el?: HTMLElement): HTMLElement[];
111
+ static getFocusables(el?: HTMLElement | null): HTMLElement[];
112
112
  /**
113
113
  * Returns true if an element is focusable and false if not,
114
114
  * based on styles (i.e. a parent has display: none;)
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/selectors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,8BAAsB,aAAa;IAC/B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,CAAU;IAE5B;;OAEG;IACH,MAAM,CAAC,GAAG,E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