@sdk-it/core 0.41.0 → 0.42.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod-jsonschema.d.ts","sourceRoot":"","sources":["../../src/lib/zod-jsonschema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAOF,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,YAAY,EAAO,
|
|
1
|
+
{"version":3,"file":"zod-jsonschema.d.ts","sourceRoot":"","sources":["../../src/lib/zod-jsonschema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAOF,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,YAAY,EAAO,gBAgRzE"}
|
|
@@ -10,6 +10,224 @@ async function evalZod(schema, imports = []) {
|
|
|
10
10
|
...imports.map((imp) => `const ${imp.import} = require('${imp.from}');`),
|
|
11
11
|
`const {zodToJsonSchema, ignoreOverride} = require('zod-to-json-schema');`,
|
|
12
12
|
`let optional = false;`,
|
|
13
|
+
`function unwrapSchemaDef(def) {
|
|
14
|
+
while (def) {
|
|
15
|
+
if (
|
|
16
|
+
def.typeName === 'ZodOptional' ||
|
|
17
|
+
def.typeName === 'ZodDefault' ||
|
|
18
|
+
def.typeName === 'ZodNullable' ||
|
|
19
|
+
def.typeName === 'ZodCatch' ||
|
|
20
|
+
def.typeName === 'ZodBranded' ||
|
|
21
|
+
def.typeName === 'ZodReadonly'
|
|
22
|
+
) {
|
|
23
|
+
def = def.innerType?._def;
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (def.typeName === 'ZodEffects') {
|
|
27
|
+
def = def.schema?._def;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
if (def.typeName === 'ZodPipeline') {
|
|
31
|
+
def = def.in?._def;
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
return def;
|
|
35
|
+
}
|
|
36
|
+
return def;
|
|
37
|
+
}`,
|
|
38
|
+
`function matchesDefType(schema, typeName) {
|
|
39
|
+
if (!schema || typeof schema !== 'object') return false;
|
|
40
|
+
if (typeName === 'ZodNumber') {
|
|
41
|
+
return schema.type === 'number' || schema.type === 'integer';
|
|
42
|
+
}
|
|
43
|
+
if (typeName === 'ZodBigInt') {
|
|
44
|
+
return schema.type === 'integer';
|
|
45
|
+
}
|
|
46
|
+
if (typeName === 'ZodString') {
|
|
47
|
+
return schema.type === 'string';
|
|
48
|
+
}
|
|
49
|
+
if (typeName === 'ZodBoolean') {
|
|
50
|
+
return schema.type === 'boolean';
|
|
51
|
+
}
|
|
52
|
+
if (typeName === 'ZodDate') {
|
|
53
|
+
return schema.type === 'string' && schema.format === 'date-time';
|
|
54
|
+
}
|
|
55
|
+
return typeof schema.type === 'string';
|
|
56
|
+
}`,
|
|
57
|
+
`function applyZodType(schema, zodType, typeName) {
|
|
58
|
+
if (!schema || typeof schema !== 'object') return false;
|
|
59
|
+
if (schema['x-zod-type']) return true;
|
|
60
|
+
if (matchesDefType(schema, typeName)) {
|
|
61
|
+
schema['x-zod-type'] = zodType;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
for (const key of ['anyOf', 'oneOf', 'allOf']) {
|
|
65
|
+
if (!Array.isArray(schema[key])) continue;
|
|
66
|
+
const candidates = schema[key].filter(
|
|
67
|
+
(candidate) => candidate && candidate.type !== 'null',
|
|
68
|
+
);
|
|
69
|
+
if (candidates.length === 1 && applyZodType(candidates[0], zodType, typeName)) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
for (const candidate of candidates) {
|
|
73
|
+
if (applyZodType(candidate, zodType, typeName)) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}`,
|
|
80
|
+
`function normalizeDefaultValue(value) {
|
|
81
|
+
return value instanceof Date ? value.toISOString() : value;
|
|
82
|
+
}`,
|
|
83
|
+
`function mergeComparableValue(target, key, value) {
|
|
84
|
+
if (value === undefined) return true;
|
|
85
|
+
const normalized = normalizeDefaultValue(value);
|
|
86
|
+
if (target[key] === undefined) {
|
|
87
|
+
target[key] = normalized;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
return Object.is(target[key], normalized);
|
|
91
|
+
}`,
|
|
92
|
+
`function mergeLowerBound(target, key, value) {
|
|
93
|
+
if (value === undefined) return true;
|
|
94
|
+
if (typeof value !== 'number') return false;
|
|
95
|
+
if (target[key] === undefined || value > target[key]) {
|
|
96
|
+
target[key] = value;
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}`,
|
|
100
|
+
`function mergeUpperBound(target, key, value) {
|
|
101
|
+
if (value === undefined) return true;
|
|
102
|
+
if (typeof value !== 'number') return false;
|
|
103
|
+
if (target[key] === undefined || value < target[key]) {
|
|
104
|
+
target[key] = value;
|
|
105
|
+
}
|
|
106
|
+
return true;
|
|
107
|
+
}`,
|
|
108
|
+
`function mergeEnumValues(target, values) {
|
|
109
|
+
if (!Array.isArray(values)) return false;
|
|
110
|
+
if (!Array.isArray(target.enum)) {
|
|
111
|
+
target.enum = [...values];
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
target.enum = target.enum.filter((candidate) =>
|
|
115
|
+
values.some((value) => Object.is(candidate, value)),
|
|
116
|
+
);
|
|
117
|
+
return target.enum.length > 0;
|
|
118
|
+
}`,
|
|
119
|
+
`function isMergeablePrimitiveSchema(schema) {
|
|
120
|
+
return (
|
|
121
|
+
schema &&
|
|
122
|
+
typeof schema === 'object' &&
|
|
123
|
+
!schema.$ref &&
|
|
124
|
+
!schema.anyOf &&
|
|
125
|
+
!schema.oneOf &&
|
|
126
|
+
!schema.allOf &&
|
|
127
|
+
(schema.type === 'string' ||
|
|
128
|
+
schema.type === 'boolean' ||
|
|
129
|
+
schema.type === 'number' ||
|
|
130
|
+
schema.type === 'integer')
|
|
131
|
+
);
|
|
132
|
+
}`,
|
|
133
|
+
`function mergePrimitiveSchemas(schemas) {
|
|
134
|
+
const merged = {};
|
|
135
|
+
for (const schema of schemas) {
|
|
136
|
+
if (!isMergeablePrimitiveSchema(schema)) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
if (merged.type === undefined) {
|
|
140
|
+
merged.type = schema.type;
|
|
141
|
+
} else if (merged.type !== schema.type) {
|
|
142
|
+
const numericPair =
|
|
143
|
+
(merged.type === 'number' && schema.type === 'integer') ||
|
|
144
|
+
(merged.type === 'integer' && schema.type === 'number');
|
|
145
|
+
if (!numericPair) {
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
merged.type = 'integer';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
for (const [key, value] of Object.entries(schema)) {
|
|
152
|
+
if (key === 'type') {
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
switch (key) {
|
|
156
|
+
case 'minimum':
|
|
157
|
+
case 'exclusiveMinimum':
|
|
158
|
+
case 'minLength':
|
|
159
|
+
case 'minItems':
|
|
160
|
+
case 'minProperties':
|
|
161
|
+
if (!mergeLowerBound(merged, key, value)) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
case 'maximum':
|
|
166
|
+
case 'exclusiveMaximum':
|
|
167
|
+
case 'maxLength':
|
|
168
|
+
case 'maxItems':
|
|
169
|
+
case 'maxProperties':
|
|
170
|
+
if (!mergeUpperBound(merged, key, value)) {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
break;
|
|
174
|
+
case 'enum':
|
|
175
|
+
if (!mergeEnumValues(merged, value)) {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
break;
|
|
179
|
+
default:
|
|
180
|
+
if (!mergeComparableValue(merged, key, value)) {
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return merged;
|
|
187
|
+
}`,
|
|
188
|
+
`function normalizeSchema(schema) {
|
|
189
|
+
if (!schema || typeof schema !== 'object') {
|
|
190
|
+
return schema;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (schema.default !== undefined) {
|
|
194
|
+
schema.default = normalizeDefaultValue(schema.default);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (Array.isArray(schema.items)) {
|
|
198
|
+
schema.items = schema.items.map((item) => normalizeSchema(item));
|
|
199
|
+
} else if (schema.items && typeof schema.items === 'object') {
|
|
200
|
+
schema.items = normalizeSchema(schema.items);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (schema.properties && typeof schema.properties === 'object') {
|
|
204
|
+
for (const [key, value] of Object.entries(schema.properties)) {
|
|
205
|
+
schema.properties[key] = normalizeSchema(value);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (
|
|
210
|
+
schema.additionalProperties &&
|
|
211
|
+
typeof schema.additionalProperties === 'object'
|
|
212
|
+
) {
|
|
213
|
+
schema.additionalProperties = normalizeSchema(schema.additionalProperties);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
for (const key of ['anyOf', 'oneOf', 'allOf']) {
|
|
217
|
+
if (!Array.isArray(schema[key])) continue;
|
|
218
|
+
schema[key] = schema[key].map((candidate) => normalizeSchema(candidate));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (Array.isArray(schema.allOf)) {
|
|
222
|
+
const merged = mergePrimitiveSchemas(schema.allOf);
|
|
223
|
+
if (merged) {
|
|
224
|
+
const { allOf, ...rest } = schema;
|
|
225
|
+
return { ...rest, ...merged };
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return schema;
|
|
230
|
+
}`,
|
|
13
231
|
`function toJsonSchema(schema) {
|
|
14
232
|
return zodToJsonSchema(schema, {
|
|
15
233
|
$refStrategy: 'root',
|
|
@@ -21,6 +239,7 @@ async function evalZod(schema, imports = []) {
|
|
|
21
239
|
if (def.typeName === 'ZodOptional') {
|
|
22
240
|
optional = true;
|
|
23
241
|
const { $schema, ...result } = toJsonSchema(def.innerType);
|
|
242
|
+
if (def.description) { result.description = def.description; }
|
|
24
243
|
return result;
|
|
25
244
|
}
|
|
26
245
|
if (def.typeName === 'ZodDate') {
|
|
@@ -28,6 +247,7 @@ async function evalZod(schema, imports = []) {
|
|
|
28
247
|
type: 'string',
|
|
29
248
|
format: 'date-time',
|
|
30
249
|
'x-zod-type': def.coerce ? 'coerce-date' : 'date',
|
|
250
|
+
...(def.description ? { description: def.description } : {}),
|
|
31
251
|
};
|
|
32
252
|
}
|
|
33
253
|
return ignoreOverride;
|
|
@@ -35,13 +255,14 @@ async function evalZod(schema, imports = []) {
|
|
|
35
255
|
});
|
|
36
256
|
}`,
|
|
37
257
|
`const zodSchema = ${removeUnsupportedMethods(schema)};`,
|
|
38
|
-
`const { $schema, ...
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
innerDef = innerDef.innerType?._def;
|
|
42
|
-
}
|
|
258
|
+
`const { $schema, ...rawResult } = toJsonSchema(zodSchema);
|
|
259
|
+
const result = normalizeSchema(rawResult);`,
|
|
260
|
+
`const innerDef = unwrapSchemaDef(zodSchema._def);
|
|
43
261
|
if (innerDef?.coerce && !result['x-zod-type']) {
|
|
44
|
-
|
|
262
|
+
const zodType = 'coerce-' + innerDef.typeName.replace('Zod', '').toLowerCase();
|
|
263
|
+
if (!applyZodType(result, zodType, innerDef.typeName)) {
|
|
264
|
+
result['x-zod-type'] = zodType;
|
|
265
|
+
}
|
|
45
266
|
}`,
|
|
46
267
|
`export default {schema: result, optional}`
|
|
47
268
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/lib/zod-jsonschema.ts"],
|
|
4
|
-
"sourcesContent": ["export type InjectImport = {\n import: string;\n from: string;\n};\n\nfunction removeUnsupportedMethods(schema: string) {\n
|
|
5
|
-
"mappings": "AAKA,SAAS,yBAAyB,QAAgB;AAEhD,SAAO,OAAO,WAAW,qBAAqB,oBAAoB;AACpE;AAEA,eAAsB,QAAQ,QAAgB,UAA0B,CAAC,GAAG;AAE1E,QAAM,QAAQ;AAAA,IACZ;AAAA,IACA,qBAAqB,YAAY,GAAG;AAAA,IACpC;AAAA,IACA;AAAA,IACA,GAAG,QAAQ,IAAI,CAAC,QAAQ,SAAS,IAAI,MAAM,eAAe,IAAI,IAAI,KAAK;AAAA,IACvE;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["export type InjectImport = {\n import: string;\n from: string;\n};\n\nfunction removeUnsupportedMethods(schema: string) {\n // fixme: use overrides to detect instanceOf\n return schema.replaceAll('.instanceof(File)', '.string().base64()');\n}\n\nexport async function evalZod(schema: string, imports: InjectImport[] = []) {\n // https://github.com/nodejs/node/issues/51956\n const lines = [\n `import { createRequire } from \"node:module\";`,\n `const filename = \"${import.meta.url}\";`,\n `const require = createRequire(filename);`,\n `const z = require(\"zod\");`,\n ...imports.map((imp) => `const ${imp.import} = require('${imp.from}');`),\n `const {zodToJsonSchema, ignoreOverride} = require('zod-to-json-schema');`,\n `let optional = false;`,\n `function unwrapSchemaDef(def) {\n while (def) {\n if (\n def.typeName === 'ZodOptional' ||\n def.typeName === 'ZodDefault' ||\n def.typeName === 'ZodNullable' ||\n def.typeName === 'ZodCatch' ||\n def.typeName === 'ZodBranded' ||\n def.typeName === 'ZodReadonly'\n ) {\n def = def.innerType?._def;\n continue;\n }\n if (def.typeName === 'ZodEffects') {\n def = def.schema?._def;\n continue;\n }\n if (def.typeName === 'ZodPipeline') {\n def = def.in?._def;\n continue;\n }\n return def;\n }\n return def;\n }`,\n `function matchesDefType(schema, typeName) {\n if (!schema || typeof schema !== 'object') return false;\n if (typeName === 'ZodNumber') {\n return schema.type === 'number' || schema.type === 'integer';\n }\n if (typeName === 'ZodBigInt') {\n return schema.type === 'integer';\n }\n if (typeName === 'ZodString') {\n return schema.type === 'string';\n }\n if (typeName === 'ZodBoolean') {\n return schema.type === 'boolean';\n }\n if (typeName === 'ZodDate') {\n return schema.type === 'string' && schema.format === 'date-time';\n }\n return typeof schema.type === 'string';\n }`,\n `function applyZodType(schema, zodType, typeName) {\n if (!schema || typeof schema !== 'object') return false;\n if (schema['x-zod-type']) return true;\n if (matchesDefType(schema, typeName)) {\n schema['x-zod-type'] = zodType;\n return true;\n }\n for (const key of ['anyOf', 'oneOf', 'allOf']) {\n if (!Array.isArray(schema[key])) continue;\n const candidates = schema[key].filter(\n (candidate) => candidate && candidate.type !== 'null',\n );\n if (candidates.length === 1 && applyZodType(candidates[0], zodType, typeName)) {\n return true;\n }\n for (const candidate of candidates) {\n if (applyZodType(candidate, zodType, typeName)) {\n return true;\n }\n }\n }\n return false;\n }`,\n `function normalizeDefaultValue(value) {\n return value instanceof Date ? value.toISOString() : value;\n }`,\n `function mergeComparableValue(target, key, value) {\n if (value === undefined) return true;\n const normalized = normalizeDefaultValue(value);\n if (target[key] === undefined) {\n target[key] = normalized;\n return true;\n }\n return Object.is(target[key], normalized);\n }`,\n `function mergeLowerBound(target, key, value) {\n if (value === undefined) return true;\n if (typeof value !== 'number') return false;\n if (target[key] === undefined || value > target[key]) {\n target[key] = value;\n }\n return true;\n }`,\n `function mergeUpperBound(target, key, value) {\n if (value === undefined) return true;\n if (typeof value !== 'number') return false;\n if (target[key] === undefined || value < target[key]) {\n target[key] = value;\n }\n return true;\n }`,\n `function mergeEnumValues(target, values) {\n if (!Array.isArray(values)) return false;\n if (!Array.isArray(target.enum)) {\n target.enum = [...values];\n return true;\n }\n target.enum = target.enum.filter((candidate) =>\n values.some((value) => Object.is(candidate, value)),\n );\n return target.enum.length > 0;\n }`,\n `function isMergeablePrimitiveSchema(schema) {\n return (\n schema &&\n typeof schema === 'object' &&\n !schema.$ref &&\n !schema.anyOf &&\n !schema.oneOf &&\n !schema.allOf &&\n (schema.type === 'string' ||\n schema.type === 'boolean' ||\n schema.type === 'number' ||\n schema.type === 'integer')\n );\n }`,\n `function mergePrimitiveSchemas(schemas) {\n const merged = {};\n for (const schema of schemas) {\n if (!isMergeablePrimitiveSchema(schema)) {\n return null;\n }\n if (merged.type === undefined) {\n merged.type = schema.type;\n } else if (merged.type !== schema.type) {\n const numericPair =\n (merged.type === 'number' && schema.type === 'integer') ||\n (merged.type === 'integer' && schema.type === 'number');\n if (!numericPair) {\n return null;\n }\n merged.type = 'integer';\n }\n\n for (const [key, value] of Object.entries(schema)) {\n if (key === 'type') {\n continue;\n }\n switch (key) {\n case 'minimum':\n case 'exclusiveMinimum':\n case 'minLength':\n case 'minItems':\n case 'minProperties':\n if (!mergeLowerBound(merged, key, value)) {\n return null;\n }\n break;\n case 'maximum':\n case 'exclusiveMaximum':\n case 'maxLength':\n case 'maxItems':\n case 'maxProperties':\n if (!mergeUpperBound(merged, key, value)) {\n return null;\n }\n break;\n case 'enum':\n if (!mergeEnumValues(merged, value)) {\n return null;\n }\n break;\n default:\n if (!mergeComparableValue(merged, key, value)) {\n return null;\n }\n }\n }\n }\n return merged;\n }`,\n `function normalizeSchema(schema) {\n if (!schema || typeof schema !== 'object') {\n return schema;\n }\n\n if (schema.default !== undefined) {\n schema.default = normalizeDefaultValue(schema.default);\n }\n\n if (Array.isArray(schema.items)) {\n schema.items = schema.items.map((item) => normalizeSchema(item));\n } else if (schema.items && typeof schema.items === 'object') {\n schema.items = normalizeSchema(schema.items);\n }\n\n if (schema.properties && typeof schema.properties === 'object') {\n for (const [key, value] of Object.entries(schema.properties)) {\n schema.properties[key] = normalizeSchema(value);\n }\n }\n\n if (\n schema.additionalProperties &&\n typeof schema.additionalProperties === 'object'\n ) {\n schema.additionalProperties = normalizeSchema(schema.additionalProperties);\n }\n\n for (const key of ['anyOf', 'oneOf', 'allOf']) {\n if (!Array.isArray(schema[key])) continue;\n schema[key] = schema[key].map((candidate) => normalizeSchema(candidate));\n }\n\n if (Array.isArray(schema.allOf)) {\n const merged = mergePrimitiveSchemas(schema.allOf);\n if (merged) {\n const { allOf, ...rest } = schema;\n return { ...rest, ...merged };\n }\n }\n\n return schema;\n }`,\n `function toJsonSchema(schema) {\n return zodToJsonSchema(schema, {\n $refStrategy: 'root',\n basePath: ['#', 'components', 'schemas'],\n target: 'jsonSchema7',\n base64Strategy: 'format:binary',\n effectStrategy: 'input',\n override: (def) => {\n if (def.typeName === 'ZodOptional') {\n\t\t\t\t\t\toptional = true;\n\t\t\t\t\t\tconst { $schema, ...result } = toJsonSchema(def.innerType);\n if (def.description) { result.description = def.description; }\n return result;\n }\n if (def.typeName === 'ZodDate') {\n return {\n type: 'string',\n format: 'date-time',\n 'x-zod-type': def.coerce ? 'coerce-date' : 'date',\n ...(def.description ? { description: def.description } : {}),\n };\n }\n return ignoreOverride;\n },\n });\n }`,\n `const zodSchema = ${removeUnsupportedMethods(schema)};`,\n `const { $schema, ...rawResult } = toJsonSchema(zodSchema);\n const result = normalizeSchema(rawResult);`,\n `const innerDef = unwrapSchemaDef(zodSchema._def);\n if (innerDef?.coerce && !result['x-zod-type']) {\n const zodType = 'coerce-' + innerDef.typeName.replace('Zod', '').toLowerCase();\n if (!applyZodType(result, zodType, innerDef.typeName)) {\n result['x-zod-type'] = zodType;\n }\n }`,\n `export default {schema: result, optional}`,\n ];\n\n const base64 = Buffer.from(lines.join('\\n')).toString('base64');\n return import(\n /* @vite-ignore */\n `data:text/javascript;base64,${base64}`\n ).then((mod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