@milaboratories/pl-model-middle-layer 1.8.27 → 1.8.29
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/block_meta/block_description.d.ts +14 -0
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +39 -0
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_meta.cjs +15 -1
- package/dist/block_meta/block_meta.cjs.map +1 -1
- package/dist/block_meta/block_meta.d.ts +48 -0
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js +15 -2
- package/dist/block_meta/block_meta.js.map +1 -1
- package/dist/block_registry/overview.d.ts +132 -0
- package/dist/block_registry/overview.d.ts.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/block_meta/block_meta.ts +16 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const BlockPlatform: z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>;
|
|
3
|
+
export type BlockPlatform = z.infer<typeof BlockPlatform>;
|
|
2
4
|
export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny, const BinaryType extends z.ZodTypeAny>(longString: LongStringType, binary: BinaryType): z.ZodObject<{
|
|
3
5
|
title: z.ZodString;
|
|
4
6
|
description: z.ZodString;
|
|
@@ -35,6 +37,11 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
|
|
|
35
37
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
36
38
|
*/
|
|
37
39
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
/**
|
|
41
|
+
* Supported operating systems.
|
|
42
|
+
* If not provided, the block is supported on all operating systems.
|
|
43
|
+
*/
|
|
44
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
38
45
|
}, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
39
46
|
title: z.ZodString;
|
|
40
47
|
description: z.ZodString;
|
|
@@ -71,6 +78,11 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
|
|
|
71
78
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
72
79
|
*/
|
|
73
80
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
81
|
+
/**
|
|
82
|
+
* Supported operating systems.
|
|
83
|
+
* If not provided, the block is supported on all operating systems.
|
|
84
|
+
*/
|
|
85
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
74
86
|
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
75
87
|
title: z.ZodString;
|
|
76
88
|
description: z.ZodString;
|
|
@@ -107,6 +119,11 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
|
|
|
107
119
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
108
120
|
*/
|
|
109
121
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
122
|
+
/**
|
|
123
|
+
* Supported operating systems.
|
|
124
|
+
* If not provided, the block is supported on all operating systems.
|
|
125
|
+
*/
|
|
126
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
110
127
|
}>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
|
|
111
128
|
title: z.ZodString;
|
|
112
129
|
description: z.ZodString;
|
|
@@ -143,6 +160,11 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
|
|
|
143
160
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
144
161
|
*/
|
|
145
162
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
163
|
+
/**
|
|
164
|
+
* Supported operating systems.
|
|
165
|
+
* If not provided, the block is supported on all operating systems.
|
|
166
|
+
*/
|
|
167
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
146
168
|
}>]: z.baseObjectInputType<{
|
|
147
169
|
title: z.ZodString;
|
|
148
170
|
description: z.ZodString;
|
|
@@ -179,6 +201,11 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
|
|
|
179
201
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
180
202
|
*/
|
|
181
203
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
204
|
+
/**
|
|
205
|
+
* Supported operating systems.
|
|
206
|
+
* If not provided, the block is supported on all operating systems.
|
|
207
|
+
*/
|
|
208
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
182
209
|
}>[k_1]; }>;
|
|
183
210
|
export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
184
211
|
title: z.ZodString;
|
|
@@ -430,6 +457,11 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
430
457
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
431
458
|
*/
|
|
432
459
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
460
|
+
/**
|
|
461
|
+
* Supported operating systems.
|
|
462
|
+
* If not provided, the block is supported on all operating systems.
|
|
463
|
+
*/
|
|
464
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
433
465
|
}, "strip", z.ZodTypeAny, {
|
|
434
466
|
organization: {
|
|
435
467
|
url: string;
|
|
@@ -488,6 +520,7 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
488
520
|
marketplaceRanking?: number | undefined;
|
|
489
521
|
deprecated?: boolean | undefined;
|
|
490
522
|
termsOfServiceUrl?: string | undefined;
|
|
523
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
491
524
|
}, {
|
|
492
525
|
organization: {
|
|
493
526
|
url: string;
|
|
@@ -546,6 +579,7 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
|
|
|
546
579
|
marketplaceRanking?: number | undefined;
|
|
547
580
|
deprecated?: boolean | undefined;
|
|
548
581
|
termsOfServiceUrl?: string | undefined;
|
|
582
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
549
583
|
}>;
|
|
550
584
|
export type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;
|
|
551
585
|
export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
@@ -632,6 +666,11 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
632
666
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
633
667
|
*/
|
|
634
668
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
669
|
+
/**
|
|
670
|
+
* Supported operating systems.
|
|
671
|
+
* If not provided, the block is supported on all operating systems.
|
|
672
|
+
*/
|
|
673
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
635
674
|
}, "strip", z.ZodTypeAny, {
|
|
636
675
|
organization: {
|
|
637
676
|
url: string;
|
|
@@ -660,6 +699,7 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
660
699
|
marketplaceRanking?: number | undefined;
|
|
661
700
|
deprecated?: boolean | undefined;
|
|
662
701
|
termsOfServiceUrl?: string | undefined;
|
|
702
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
663
703
|
}, {
|
|
664
704
|
organization: {
|
|
665
705
|
url: string;
|
|
@@ -688,6 +728,7 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
|
|
|
688
728
|
marketplaceRanking?: number | undefined;
|
|
689
729
|
deprecated?: boolean | undefined;
|
|
690
730
|
termsOfServiceUrl?: string | undefined;
|
|
731
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
691
732
|
}>;
|
|
692
733
|
export type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
|
|
693
734
|
export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
@@ -774,6 +815,11 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
|
774
815
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
775
816
|
*/
|
|
776
817
|
termsOfServiceUrl: z.ZodOptional<z.ZodString>;
|
|
818
|
+
/**
|
|
819
|
+
* Supported operating systems.
|
|
820
|
+
* If not provided, the block is supported on all operating systems.
|
|
821
|
+
*/
|
|
822
|
+
supportedPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>, "many">>;
|
|
777
823
|
}, "strip", z.ZodTypeAny, {
|
|
778
824
|
organization: {
|
|
779
825
|
url: string;
|
|
@@ -802,6 +848,7 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
|
802
848
|
marketplaceRanking?: number | undefined;
|
|
803
849
|
deprecated?: boolean | undefined;
|
|
804
850
|
termsOfServiceUrl?: string | undefined;
|
|
851
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
805
852
|
}, {
|
|
806
853
|
organization: {
|
|
807
854
|
url: string;
|
|
@@ -830,6 +877,7 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
|
|
|
830
877
|
marketplaceRanking?: number | undefined;
|
|
831
878
|
deprecated?: boolean | undefined;
|
|
832
879
|
termsOfServiceUrl?: string | undefined;
|
|
880
|
+
supportedPlatforms?: ("windows-x64" | "windows-aarch64" | "macosx-x64" | "macosx-aarch64" | "linux-x64" | "linux-aarch64")[] | undefined;
|
|
833
881
|
}>;
|
|
834
882
|
export type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;
|
|
835
883
|
//# sourceMappingURL=block_meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_meta.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,wBAAgB,aAAa,CAC3B,KAAK,CAAC,cAAc,SAAS,CAAC,CAAC,UAAU,EACzC,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,UAAU,EACrC,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;IAtBpC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASN,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGtF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA7BpC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBN,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGtF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IApCnC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBN,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DescriptionContentBinary, DescriptionContentText, ContentExplicitBytes, ContentExplicitBase64 } from './content_types.js';
|
|
3
3
|
|
|
4
|
+
const BlockPlatform = z.enum([
|
|
5
|
+
'windows-x64',
|
|
6
|
+
'windows-aarch64',
|
|
7
|
+
'macosx-x64',
|
|
8
|
+
'macosx-aarch64',
|
|
9
|
+
'linux-x64',
|
|
10
|
+
'linux-aarch64'
|
|
11
|
+
]);
|
|
4
12
|
function BlockPackMeta(longString, binary) {
|
|
5
13
|
return z.object({
|
|
6
14
|
title: z.string(),
|
|
@@ -29,7 +37,12 @@ function BlockPackMeta(longString, binary) {
|
|
|
29
37
|
/**
|
|
30
38
|
* The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
|
|
31
39
|
*/
|
|
32
|
-
termsOfServiceUrl: z.string().url().optional()
|
|
40
|
+
termsOfServiceUrl: z.string().url().optional(),
|
|
41
|
+
/**
|
|
42
|
+
* Supported operating systems.
|
|
43
|
+
* If not provided, the block is supported on all operating systems.
|
|
44
|
+
*/
|
|
45
|
+
supportedPlatforms: z.array(BlockPlatform).optional()
|
|
33
46
|
});
|
|
34
47
|
}
|
|
35
48
|
// prettier-ignore
|
|
@@ -39,5 +52,5 @@ const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBas
|
|
|
39
52
|
// prettier-ignore
|
|
40
53
|
const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);
|
|
41
54
|
|
|
42
|
-
export { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes };
|
|
55
|
+
export { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform };
|
|
43
56
|
//# sourceMappingURL=block_meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport const BlockPlatform = z.enum([\n 'windows-x64',\n 'windows-aarch64',\n 'macosx-x64',\n 'macosx-aarch64',\n 'linux-x64',\n 'linux-aarch64'\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;AAQO,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX;AACD,CAAA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