@makeswift/runtime 0.0.0-f5b044f → 0.0.1

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 (98) hide show
  1. package/controls.js +1 -0
  2. package/dist/Page.cjs.js +10 -3
  3. package/dist/Page.cjs.js.map +1 -1
  4. package/dist/Page.es.js +10 -3
  5. package/dist/Page.es.js.map +1 -1
  6. package/dist/builder.cjs.js +1 -0
  7. package/dist/builder.cjs.js.map +1 -1
  8. package/dist/builder.es.js +1 -0
  9. package/dist/builder.es.js.map +1 -1
  10. package/dist/components.cjs.js +1 -0
  11. package/dist/components.cjs.js.map +1 -1
  12. package/dist/components.es.js +1 -0
  13. package/dist/components.es.js.map +1 -1
  14. package/dist/control-serialization.cjs.js +198 -0
  15. package/dist/control-serialization.cjs.js.map +1 -1
  16. package/dist/control-serialization.es.js +198 -0
  17. package/dist/control-serialization.es.js.map +1 -1
  18. package/dist/controls.cjs.js +7 -0
  19. package/dist/controls.cjs.js.map +1 -0
  20. package/dist/controls.es.js +2 -0
  21. package/dist/controls.es.js.map +1 -0
  22. package/dist/descriptors.cjs.js +3 -1
  23. package/dist/descriptors.cjs.js.map +1 -1
  24. package/dist/descriptors.es.js +3 -1
  25. package/dist/descriptors.es.js.map +1 -1
  26. package/dist/index.cjs.js +320 -153
  27. package/dist/index.cjs.js.map +1 -1
  28. package/dist/index.es.js +313 -146
  29. package/dist/index.es.js.map +1 -1
  30. package/dist/main.cjs.js +1 -0
  31. package/dist/main.cjs.js.map +1 -1
  32. package/dist/main.es.js +1 -0
  33. package/dist/main.es.js.map +1 -1
  34. package/dist/next.cjs.js +1 -0
  35. package/dist/next.cjs.js.map +1 -1
  36. package/dist/next.es.js +1 -0
  37. package/dist/next.es.js.map +1 -1
  38. package/dist/prop-controllers.cjs.js +1 -0
  39. package/dist/prop-controllers.cjs.js.map +1 -1
  40. package/dist/prop-controllers.es.js +1 -0
  41. package/dist/prop-controllers.es.js.map +1 -1
  42. package/dist/react-builder-preview.cjs.js +1 -0
  43. package/dist/react-builder-preview.cjs.js.map +1 -1
  44. package/dist/react-builder-preview.es.js +1 -0
  45. package/dist/react-builder-preview.es.js.map +1 -1
  46. package/dist/react.cjs.js +1 -0
  47. package/dist/react.cjs.js.map +1 -1
  48. package/dist/react.es.js +1 -0
  49. package/dist/react.es.js.map +1 -1
  50. package/dist/style.cjs.js +38 -0
  51. package/dist/style.cjs.js.map +1 -0
  52. package/dist/style.es.js +35 -0
  53. package/dist/style.es.js.map +1 -0
  54. package/dist/types/builder/serialization/control-serialization.d.ts +156 -3
  55. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
  56. package/dist/types/components/builtin/Button/Button.d.ts +2 -1
  57. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
  58. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
  59. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
  60. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -1
  61. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
  62. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
  63. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
  64. package/dist/types/components/page/Page.d.ts +4 -0
  65. package/dist/types/components/page/Page.d.ts.map +1 -1
  66. package/dist/types/controls/index.d.ts +2 -0
  67. package/dist/types/controls/index.d.ts.map +1 -0
  68. package/dist/types/controls/style.d.ts +141 -0
  69. package/dist/types/controls/style.d.ts.map +1 -0
  70. package/dist/types/controls/types.d.ts +11 -0
  71. package/dist/types/controls/types.d.ts.map +1 -0
  72. package/dist/types/prop-controllers/descriptors.d.ts +32 -27
  73. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  74. package/dist/types/prop-controllers/index.d.ts +1 -1
  75. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  76. package/dist/types/runtimes/react/controls/style.d.ts +4 -0
  77. package/dist/types/runtimes/react/controls/style.d.ts.map +1 -0
  78. package/dist/types/runtimes/react/controls.d.ts +2 -5
  79. package/dist/types/runtimes/react/controls.d.ts.map +1 -1
  80. package/dist/types/runtimes/react/index.d.ts +2 -3
  81. package/dist/types/runtimes/react/index.d.ts.map +1 -1
  82. package/package.json +10 -3
  83. package/dist/react.cjs2.js +0 -7992
  84. package/dist/react.cjs2.js.map +0 -1
  85. package/dist/react.es2.js +0 -7911
  86. package/dist/react.es2.js.map +0 -1
  87. package/dist/types/controls/select.d.ts +0 -19
  88. package/dist/types/controls/select.d.ts.map +0 -1
  89. package/dist/types/controls.d.ts +0 -4
  90. package/dist/types/controls.d.ts.map +0 -1
  91. package/dist/types/prop-controllers/instances/slot.d.ts +0 -2
  92. package/dist/types/prop-controllers/instances/slot.d.ts.map +0 -1
  93. package/dist/types/runtimes/index.d.ts +0 -43
  94. package/dist/types/runtimes/index.d.ts.map +0 -1
  95. package/dist/types/runtimes/react/react.d.ts +0 -43
  96. package/dist/types/runtimes/react/react.d.ts.map +0 -1
  97. package/dist/types/runtimes/react.d.ts +0 -43
  98. package/dist/types/runtimes/react.d.ts.map +0 -1
@@ -1,19 +0,0 @@
1
- declare const SelectControlType = "select";
2
- declare type SelectControlRawValue<T extends string> = T;
3
- declare type SelectControlConfigOption<T extends string> = {
4
- value: SelectControlRawValue<T>;
5
- label: string;
6
- };
7
- declare type SelectControlConfig<T extends string, U extends T = T> = {
8
- options: SelectControlConfigOption<T>[];
9
- defaultValue?: SelectControlRawValue<U>;
10
- };
11
- export declare type SelectControl<T extends string, U extends SelectControlConfig<T> = SelectControlConfig<T>> = {
12
- type: typeof SelectControlType;
13
- config: U;
14
- };
15
- export declare function Select<T extends string, U extends SelectControlConfig<T>>(config: U & {
16
- options: SelectControlConfigOption<T>[];
17
- }): Readonly<SelectControl<T, U>>;
18
- export {};
19
- //# sourceMappingURL=select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/controls/select.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,WAAW,CAAA;AAElC,aAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAA;AAEhD,aAAK,yBAAyB,CAAC,CAAC,SAAS,MAAM,IAAI;IACjD,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,aAAK,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI;IAC5D,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,EAAE,CAAA;IACvC,YAAY,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAA;CACxC,CAAA;AAED,oBAAY,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,IACvD;IAAE,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE,CAAA;AAEjD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EACvE,MAAM,EAAE,CAAC,GAAG;IAAE,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,EAAE,CAAA;CAAE,GACtD,QAAQ,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAE/B"}
@@ -1,4 +0,0 @@
1
- declare type Serializable = undefined | null | boolean | number | string | Serializable[] | {
2
- [key: string]: Serializable;
3
- } | ((...args: Serializable[]) => Promise<Serializable>);
4
- //# sourceMappingURL=controls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/controls.ts"],"names":[],"mappings":"AAAA,aAAK,YAAY,GACb,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,GAC/B,CAAC,CAAC,GAAG,IAAI,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=slot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../../../src/prop-controllers/instances/slot.tsx"],"names":[],"mappings":""}
@@ -1,43 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import * as ReactPage from '../../state/react-page';
3
- import type { PropControllerDescriptor, PropControllerDescriptorValueType } from '../../prop-controllers';
4
- import { ComponentIcon } from '../../state/modules/components-meta';
5
- import { MakeswiftClient } from '../../api/react';
6
- export interface ReactRuntime {
7
- registerComponent<P extends Record<string, PropControllerDescriptor>, C extends ReactPage.ComponentType<{
8
- [K in keyof P]?: PropControllerDescriptorValueType<P[K]>;
9
- }>>(component: C, meta: {
10
- type: string;
11
- label: string;
12
- icon?: ComponentIcon;
13
- hidden?: boolean;
14
- props?: P;
15
- }): () => void;
16
- }
17
- export declare function createReactRuntime(store: ReactPage.Store): ReactRuntime;
18
- export declare const ReactRuntime: ReactRuntime;
19
- declare type RuntimeProviderProps = {
20
- client: MakeswiftClient;
21
- rootElements?: Map<string, ReactPage.Element>;
22
- children?: ReactNode;
23
- };
24
- export declare function RuntimeProvider({ client, children, rootElements, }: RuntimeProviderProps): JSX.Element;
25
- declare const PageContext: import("react").Context<string | null>;
26
- export declare function usePageId(): string;
27
- declare type PageProviderProps = {
28
- id: string;
29
- children: ComponentPropsWithoutRef<typeof PageContext['Provider']>['children'];
30
- };
31
- export declare function PageProvider({ id, children }: PageProviderProps): JSX.Element;
32
- export declare function useElementId(elementKey: string | null | undefined): string | null;
33
- export declare function useIsInBuilder(): boolean;
34
- declare type ElementProps = {
35
- element: ReactPage.Element;
36
- };
37
- export declare const Element: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ElementProps & import("react").RefAttributes<unknown>>>;
38
- declare type DocumentReferenceProps = {
39
- documentReference: ReactPage.DocumentReference;
40
- };
41
- export declare const DocumentReference: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DocumentReferenceProps & import("react").RefAttributes<unknown>>>;
42
- export {};
43
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtimes/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAIxB,SAAS,EAMV,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AASnD,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAEnE,OAAO,EAAqB,eAAe,EAAY,MAAM,iBAAiB,CAAA;AAK9E,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CACf,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAClD,CAAC,SAAS,SAAS,CAAC,aAAa,CAAC;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC,EAE/F,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KAAE,GACvF,MAAM,IAAI,CAAA;CACd;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,GAAG,YAAY,CAiBvE;AAED,eAAO,MAAM,YAAY,cAA0C,CAAA;AAInE,aAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,QAAQ,EACR,YAAY,GACb,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAwFpC;AAED,QAAA,MAAM,WAAW,wCAAqC,CAAA;AAMtD,wBAAgB,SAAS,IAAI,MAAM,CAMlC;AAED,aAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,wBAAwB,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;CAC/E,CAAA;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,iBAAiB,eAE/D;AAoBD,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAQjF;AAMD,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAyED,aAAK,YAAY,GAAG;IAClB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,uIA2BnB,CAAA;AAgBD,aAAK,sBAAsB,GAAG;IAC5B,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAA;CAC/C,CAAA;AAED,eAAO,MAAM,iBAAiB,iJAa7B,CAAA"}
@@ -1,43 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import * as ReactPage from '../state/react-page';
3
- import type { PropControllerDescriptor, PropControllerDescriptorValueType } from '../prop-controllers';
4
- import { ComponentIcon } from '../state/modules/components-meta';
5
- import { MakeswiftClient } from '../api/react';
6
- export interface ReactRuntime {
7
- registerComponent<P extends Record<string, PropControllerDescriptor>, C extends ReactPage.ComponentType<{
8
- [K in keyof P]?: PropControllerDescriptorValueType<P[K]>;
9
- }>>(component: C, meta: {
10
- type: string;
11
- label: string;
12
- icon?: ComponentIcon;
13
- hidden?: boolean;
14
- props?: P;
15
- }): () => void;
16
- }
17
- export declare function createReactRuntime(store: ReactPage.Store): ReactRuntime;
18
- export declare const ReactRuntime: ReactRuntime;
19
- declare type RuntimeProviderProps = {
20
- client: MakeswiftClient;
21
- rootElements?: Map<string, ReactPage.Element>;
22
- children?: ReactNode;
23
- };
24
- export declare function RuntimeProvider({ client, children, rootElements, }: RuntimeProviderProps): JSX.Element;
25
- declare const PageContext: import("react").Context<string | null>;
26
- export declare function usePageId(): string;
27
- declare type PageProviderProps = {
28
- id: string;
29
- children: ComponentPropsWithoutRef<typeof PageContext['Provider']>['children'];
30
- };
31
- export declare function PageProvider({ id, children }: PageProviderProps): JSX.Element;
32
- export declare function useElementId(elementKey: string | null | undefined): string | null;
33
- export declare function useIsInBuilder(): boolean;
34
- declare type ElementProps = {
35
- element: ReactPage.Element;
36
- };
37
- export declare const Element: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ElementProps & import("react").RefAttributes<unknown>>>;
38
- declare type DocumentReferenceProps = {
39
- documentReference: ReactPage.DocumentReference;
40
- };
41
- export declare const DocumentReference: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DocumentReferenceProps & import("react").RefAttributes<unknown>>>;
42
- export {};
43
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAIxB,SAAS,EAMV,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAShD,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE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wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,iBAAiB,eAE/D;AAoBD,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAQjF;AAMD,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAyED,aAAK,YAAY,GAAG;IAClB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,uIA2BnB,CAAA;AAgBD,aAAK,sBAAsB,GAAG;IAC5B,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAA;CAC/C,CAAA;AAED,eAAO,MAAM,iBAAiB,iJAa7B,CAAA"}
@@ -1,43 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import * as ReactPage from '../state/react-page';
3
- import type { PropControllerDescriptor, PropControllerDescriptorValueType } from '../prop-controllers';
4
- import { ComponentIcon } from '../state/modules/components-meta';
5
- import { MakeswiftClient } from '../api/react';
6
- export interface ReactRuntime {
7
- registerComponent<P extends Record<string, PropControllerDescriptor>, C extends ReactPage.ComponentType<{
8
- [K in keyof P]?: PropControllerDescriptorValueType<P[K]>;
9
- }>>(component: C, meta: {
10
- type: string;
11
- label: string;
12
- icon?: ComponentIcon;
13
- hidden?: boolean;
14
- props?: P;
15
- }): () => void;
16
- }
17
- export declare function createReactRuntime(store: ReactPage.Store): ReactRuntime;
18
- export declare const ReactRuntime: ReactRuntime;
19
- declare type RuntimeProviderProps = {
20
- client: MakeswiftClient;
21
- rootElements?: Map<string, ReactPage.Element>;
22
- children?: ReactNode;
23
- };
24
- export declare function RuntimeProvider({ client, children, rootElements, }: RuntimeProviderProps): JSX.Element;
25
- declare const PageContext: import("react").Context<string | null>;
26
- export declare function usePageId(): string;
27
- declare type PageProviderProps = {
28
- id: string;
29
- children: ComponentPropsWithoutRef<typeof PageContext['Provider']>['children'];
30
- };
31
- export declare function PageProvider({ id, children }: PageProviderProps): JSX.Element;
32
- export declare function useElementId(elementKey: string | null | undefined): string | null;
33
- export declare function useIsInBuilder(): boolean;
34
- declare type ElementProps = {
35
- element: ReactPage.Element;
36
- };
37
- export declare const Element: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ElementProps & import("react").RefAttributes<unknown>>>;
38
- declare type DocumentReferenceProps = {
39
- documentReference: ReactPage.DocumentReference;
40
- };
41
- export declare const DocumentReference: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DocumentReferenceProps & import("react").RefAttributes<unknown>>>;
42
- export {};
43
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAIxB,SAAS,EAMV,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAShD,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,OAAO,EAAqB,eAAe,EAAY,MAAM,cAAc,CAAA;AAK3E,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CACf,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAClD,CAAC,SAAS,SAAS,CAAC,aAAa,CAAC;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC,EAE/F,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KAAE,GACvF,MA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