@nxtedition/types 23.0.22 → 23.0.23

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.
@@ -0,0 +1,1093 @@
1
+ import __typia from "typia";
2
+ export const isRenderQuery = input => {
3
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
4
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
5
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
6
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
7
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
8
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
9
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
10
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
11
+ const $io8 = input => "string" === typeof input.engine;
12
+ const $io9 = input => "string" === typeof input.language;
13
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
14
+ return "object" === typeof input && null !== input && $io0(input);
15
+ };
16
+ export const assertRenderQuery = (input, errorFactory) => {
17
+ const __is = input => {
18
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
19
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
20
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
21
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
22
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
23
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
24
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
25
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
26
+ const $io8 = input => "string" === typeof input.engine;
27
+ const $io9 = input => "string" === typeof input.language;
28
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
29
+ return "object" === typeof input && null !== input && $io0(input);
30
+ };
31
+ if (false === __is(input))
32
+ ((input, _path, _exceptionable = true) => {
33
+ const $guard = __typia.createAssert.guard;
34
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
35
+ path: _path + ".type",
36
+ expected: "string",
37
+ value: input.type
38
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
39
+ path: _path + ".title",
40
+ expected: "string",
41
+ value: input.title
42
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
43
+ path: _path + ".parent",
44
+ expected: "(string | undefined)",
45
+ value: input.parent
46
+ }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
47
+ path: _path + ".description",
48
+ expected: "(__type | undefined)",
49
+ value: input.description
50
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
51
+ path: _path + ".description",
52
+ expected: "(__type | undefined)",
53
+ value: input.description
54
+ }, errorFactory));
55
+ const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
56
+ path: _path + ".scene",
57
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
58
+ value: input.scene
59
+ }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
60
+ path: _path + ".scene[" + _index1 + "]",
61
+ expected: "(RenderSceneObject | string)",
62
+ value: elem
63
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
64
+ path: _path + ".scene[" + _index1 + "]",
65
+ expected: "(RenderSceneObject | string)",
66
+ value: elem
67
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
68
+ path: _path + ".scene[" + _index1 + "]",
69
+ expected: "(RenderSceneObject | string)",
70
+ value: elem
71
+ }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
72
+ path: _path + ".scene[" + _index1 + "]",
73
+ expected: "(RenderSceneObject | string)",
74
+ value: elem
75
+ }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
76
+ path: _path + ".scene",
77
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
78
+ value: input.scene
79
+ }, errorFactory)) || $guard(_exceptionable, {
80
+ path: _path + ".scene",
81
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
82
+ value: input.scene
83
+ }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
84
+ path: _path + ".profile",
85
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
86
+ value: input.profile
87
+ }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
88
+ path: _path + ".profile[" + _index2 + "]",
89
+ expected: "(RenderProfileObject | string)",
90
+ value: elem
91
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
92
+ path: _path + ".profile[" + _index2 + "]",
93
+ expected: "(RenderProfileObject | string)",
94
+ value: elem
95
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
96
+ path: _path + ".profile[" + _index2 + "]",
97
+ expected: "(RenderProfileObject | string)",
98
+ value: elem
99
+ }, errorFactory)) && $ao7(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
100
+ path: _path + ".profile[" + _index2 + "]",
101
+ expected: "(RenderProfileObject | string)",
102
+ value: elem
103
+ }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
104
+ path: _path + ".profile",
105
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
106
+ value: input.profile
107
+ }, errorFactory)) || $guard(_exceptionable, {
108
+ path: _path + ".profile",
109
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
110
+ value: input.profile
111
+ }, errorFactory)));
112
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
113
+ path: _path + ".id",
114
+ expected: "(string | undefined)",
115
+ value: input.id
116
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
117
+ path: _path + ".preset",
118
+ expected: "(string | undefined)",
119
+ value: input.preset
120
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
121
+ path: _path + ".input",
122
+ expected: "(__type.o1 | undefined)",
123
+ value: input.input
124
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
125
+ path: _path + ".input",
126
+ expected: "(__type.o1 | undefined)",
127
+ value: input.input
128
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
129
+ path: _path + ".lang",
130
+ expected: "(string | undefined)",
131
+ value: input.lang
132
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
133
+ path: _path + ".subtitle",
134
+ expected: "(string | undefined)",
135
+ value: input.subtitle
136
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
137
+ path: _path + ".video",
138
+ expected: "(__type.o2 | undefined)",
139
+ value: input.video
140
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
141
+ path: _path + ".video",
142
+ expected: "(__type.o2 | undefined)",
143
+ value: input.video
144
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
145
+ path: _path + ".start",
146
+ expected: "(number | undefined)",
147
+ value: input.start
148
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
149
+ path: _path + ".end",
150
+ expected: "(number | undefined)",
151
+ value: input.end
152
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
153
+ path: _path + ".transcribe",
154
+ expected: "(__type.o4 | undefined)",
155
+ value: input.transcribe
156
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
157
+ path: _path + ".transcribe",
158
+ expected: "(__type.o4 | undefined)",
159
+ value: input.transcribe
160
+ }, errorFactory));
161
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
162
+ path: _path + ".type",
163
+ expected: "(string | undefined)",
164
+ value: input.type
165
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
166
+ path: _path + ".file",
167
+ expected: "(null | string | undefined)",
168
+ value: input.file
169
+ }, errorFactory));
170
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
171
+ path: _path + ".crop",
172
+ expected: "(__type.o3 | undefined)",
173
+ value: input.crop
174
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
175
+ path: _path + ".crop",
176
+ expected: "(__type.o3 | undefined)",
177
+ value: input.crop
178
+ }, errorFactory);
179
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
180
+ path: _path + ".x",
181
+ expected: "(number | undefined)",
182
+ value: input.x
183
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
184
+ path: _path + ".y",
185
+ expected: "(number | undefined)",
186
+ value: input.y
187
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
188
+ path: _path + ".width",
189
+ expected: "(number | undefined)",
190
+ value: input.width
191
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
192
+ path: _path + ".height",
193
+ expected: "(number | undefined)",
194
+ value: input.height
195
+ }, errorFactory));
196
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
197
+ path: _path + ".language",
198
+ expected: "(string | undefined)",
199
+ value: input.language
200
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
201
+ path: _path + ".pan",
202
+ expected: "(Array<number> | undefined)",
203
+ value: input.pan
204
+ }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
205
+ path: _path + ".pan[" + _index3 + "]",
206
+ expected: "number",
207
+ value: elem
208
+ }, errorFactory)) || $guard(_exceptionable, {
209
+ path: _path + ".pan",
210
+ expected: "(Array<number> | undefined)",
211
+ value: input.pan
212
+ }, errorFactory));
213
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
214
+ path: _path + ".format",
215
+ expected: "string",
216
+ value: input.format
217
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
218
+ path: _path + ".transcribe",
219
+ expected: "(__type.o5 | undefined)",
220
+ value: input.transcribe
221
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
222
+ path: _path + ".transcribe",
223
+ expected: "(__type.o5 | undefined)",
224
+ value: input.transcribe
225
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
226
+ path: _path + ".translate",
227
+ expected: "(__type.o6 | undefined)",
228
+ value: input.translate
229
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
230
+ path: _path + ".translate",
231
+ expected: "(__type.o6 | undefined)",
232
+ value: input.translate
233
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
234
+ path: _path + ".audio",
235
+ expected: "(__type.o7 | undefined)",
236
+ value: input.audio
237
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
238
+ path: _path + ".audio",
239
+ expected: "(__type.o7 | undefined)",
240
+ value: input.audio
241
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
242
+ path: _path + ".pick",
243
+ expected: "(Array<string> | undefined)",
244
+ value: input.pick
245
+ }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
246
+ path: _path + ".pick[" + _index4 + "]",
247
+ expected: "string",
248
+ value: elem
249
+ }, errorFactory)) || $guard(_exceptionable, {
250
+ path: _path + ".pick",
251
+ expected: "(Array<string> | undefined)",
252
+ value: input.pick
253
+ }, errorFactory));
254
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
255
+ path: _path + ".engine",
256
+ expected: "string",
257
+ value: input.engine
258
+ }, errorFactory);
259
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
260
+ path: _path + ".language",
261
+ expected: "string",
262
+ value: input.language
263
+ }, errorFactory);
264
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
265
+ path: _path + ".pan",
266
+ expected: "(string | undefined)",
267
+ value: input.pan
268
+ }, errorFactory);
269
+ return ("object" === typeof input && null !== input || $guard(true, {
270
+ path: _path + "",
271
+ expected: "RenderQuery",
272
+ value: input
273
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
274
+ path: _path + "",
275
+ expected: "RenderQuery",
276
+ value: input
277
+ }, errorFactory);
278
+ })(input, "$input", true);
279
+ return input;
280
+ };
281
+ export const randomRenderQuery = generator => {
282
+ const $generator = __typia.createRandom.generator;
283
+ const $pick = __typia.createRandom.pick;
284
+ const $ro0 = (_recursive = false, _depth = 0) => ({
285
+ type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
286
+ title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
287
+ parent: $pick([
288
+ () => undefined,
289
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
290
+ ])(),
291
+ description: $pick([
292
+ () => undefined,
293
+ () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
294
+ ])()
295
+ });
296
+ const $ro1 = (_recursive = false, _depth = 0) => ({
297
+ scene: $pick([
298
+ () => undefined,
299
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
300
+ () => (generator?.array ?? $generator.array)(() => $pick([
301
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
302
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
303
+ ])()),
304
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
305
+ ])(),
306
+ profile: $pick([
307
+ () => undefined,
308
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
309
+ () => (generator?.array ?? $generator.array)(() => $pick([
310
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
311
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
312
+ ])()),
313
+ () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
314
+ ])()
315
+ });
316
+ const $ro2 = (_recursive = false, _depth = 0) => ({
317
+ id: $pick([
318
+ () => undefined,
319
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
320
+ ])(),
321
+ preset: $pick([
322
+ () => undefined,
323
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
324
+ ])(),
325
+ input: $pick([
326
+ () => undefined,
327
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
328
+ ])(),
329
+ lang: $pick([
330
+ () => undefined,
331
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
332
+ ])(),
333
+ subtitle: $pick([
334
+ () => undefined,
335
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
336
+ ])(),
337
+ video: $pick([
338
+ () => undefined,
339
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
340
+ ])(),
341
+ start: $pick([
342
+ () => undefined,
343
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
344
+ ])(),
345
+ end: $pick([
346
+ () => undefined,
347
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
348
+ ])(),
349
+ transcribe: $pick([
350
+ () => undefined,
351
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
352
+ ])()
353
+ });
354
+ const $ro3 = (_recursive = false, _depth = 0) => ({
355
+ type: $pick([
356
+ () => undefined,
357
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
358
+ ])(),
359
+ file: $pick([
360
+ () => undefined,
361
+ () => null,
362
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
363
+ ])()
364
+ });
365
+ const $ro4 = (_recursive = false, _depth = 0) => ({
366
+ crop: $pick([
367
+ () => undefined,
368
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
369
+ ])()
370
+ });
371
+ const $ro5 = (_recursive = false, _depth = 0) => ({
372
+ x: $pick([
373
+ () => undefined,
374
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
375
+ ])(),
376
+ y: $pick([
377
+ () => undefined,
378
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
379
+ ])(),
380
+ width: $pick([
381
+ () => undefined,
382
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
383
+ ])(),
384
+ height: $pick([
385
+ () => undefined,
386
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
387
+ ])()
388
+ });
389
+ const $ro6 = (_recursive = false, _depth = 0) => ({
390
+ language: $pick([
391
+ () => undefined,
392
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
393
+ ])(),
394
+ pan: $pick([
395
+ () => undefined,
396
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
397
+ ])()
398
+ });
399
+ const $ro7 = (_recursive = false, _depth = 0) => ({
400
+ format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
401
+ transcribe: $pick([
402
+ () => undefined,
403
+ () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
404
+ ])(),
405
+ translate: $pick([
406
+ () => undefined,
407
+ () => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
408
+ ])(),
409
+ audio: $pick([
410
+ () => undefined,
411
+ () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
412
+ ])(),
413
+ video: $pick([
414
+ () => "any type used...",
415
+ () => undefined
416
+ ])(),
417
+ pick: $pick([
418
+ () => undefined,
419
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
420
+ ])()
421
+ });
422
+ const $ro8 = (_recursive = false, _depth = 0) => ({
423
+ engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
424
+ });
425
+ const $ro9 = (_recursive = false, _depth = 0) => ({
426
+ language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
427
+ });
428
+ const $ro10 = (_recursive = false, _depth = 0) => ({
429
+ pan: $pick([
430
+ () => undefined,
431
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
432
+ ])()
433
+ });
434
+ return $ro0();
435
+ };
436
+ export const assertGuardRenderQuery = (input, errorFactory) => {
437
+ const __is = input => {
438
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
439
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
440
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
441
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
442
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
443
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
444
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
445
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
446
+ const $io8 = input => "string" === typeof input.engine;
447
+ const $io9 = input => "string" === typeof input.language;
448
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
449
+ return "object" === typeof input && null !== input && $io0(input);
450
+ };
451
+ if (false === __is(input))
452
+ ((input, _path, _exceptionable = true) => {
453
+ const $guard = __typia.createAssertGuard.guard;
454
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
455
+ path: _path + ".type",
456
+ expected: "string",
457
+ value: input.type
458
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
459
+ path: _path + ".title",
460
+ expected: "string",
461
+ value: input.title
462
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
463
+ path: _path + ".parent",
464
+ expected: "(string | undefined)",
465
+ value: input.parent
466
+ }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
467
+ path: _path + ".description",
468
+ expected: "(__type | undefined)",
469
+ value: input.description
470
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
471
+ path: _path + ".description",
472
+ expected: "(__type | undefined)",
473
+ value: input.description
474
+ }, errorFactory));
475
+ const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
476
+ path: _path + ".scene",
477
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
478
+ value: input.scene
479
+ }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
480
+ path: _path + ".scene[" + _index1 + "]",
481
+ expected: "(RenderSceneObject | string)",
482
+ value: elem
483
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
484
+ path: _path + ".scene[" + _index1 + "]",
485
+ expected: "(RenderSceneObject | string)",
486
+ value: elem
487
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
488
+ path: _path + ".scene[" + _index1 + "]",
489
+ expected: "(RenderSceneObject | string)",
490
+ value: elem
491
+ }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
492
+ path: _path + ".scene[" + _index1 + "]",
493
+ expected: "(RenderSceneObject | string)",
494
+ value: elem
495
+ }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
496
+ path: _path + ".scene",
497
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
498
+ value: input.scene
499
+ }, errorFactory)) || $guard(_exceptionable, {
500
+ path: _path + ".scene",
501
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
502
+ value: input.scene
503
+ }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
504
+ path: _path + ".profile",
505
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
506
+ value: input.profile
507
+ }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
508
+ path: _path + ".profile[" + _index2 + "]",
509
+ expected: "(RenderProfileObject | string)",
510
+ value: elem
511
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
512
+ path: _path + ".profile[" + _index2 + "]",
513
+ expected: "(RenderProfileObject | string)",
514
+ value: elem
515
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
516
+ path: _path + ".profile[" + _index2 + "]",
517
+ expected: "(RenderProfileObject | string)",
518
+ value: elem
519
+ }, errorFactory)) && $ao7(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
520
+ path: _path + ".profile[" + _index2 + "]",
521
+ expected: "(RenderProfileObject | string)",
522
+ value: elem
523
+ }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
524
+ path: _path + ".profile",
525
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
526
+ value: input.profile
527
+ }, errorFactory)) || $guard(_exceptionable, {
528
+ path: _path + ".profile",
529
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
530
+ value: input.profile
531
+ }, errorFactory)));
532
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
533
+ path: _path + ".id",
534
+ expected: "(string | undefined)",
535
+ value: input.id
536
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
537
+ path: _path + ".preset",
538
+ expected: "(string | undefined)",
539
+ value: input.preset
540
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
541
+ path: _path + ".input",
542
+ expected: "(__type.o1 | undefined)",
543
+ value: input.input
544
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
545
+ path: _path + ".input",
546
+ expected: "(__type.o1 | undefined)",
547
+ value: input.input
548
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
549
+ path: _path + ".lang",
550
+ expected: "(string | undefined)",
551
+ value: input.lang
552
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
553
+ path: _path + ".subtitle",
554
+ expected: "(string | undefined)",
555
+ value: input.subtitle
556
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
557
+ path: _path + ".video",
558
+ expected: "(__type.o2 | undefined)",
559
+ value: input.video
560
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
561
+ path: _path + ".video",
562
+ expected: "(__type.o2 | undefined)",
563
+ value: input.video
564
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
565
+ path: _path + ".start",
566
+ expected: "(number | undefined)",
567
+ value: input.start
568
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
569
+ path: _path + ".end",
570
+ expected: "(number | undefined)",
571
+ value: input.end
572
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
573
+ path: _path + ".transcribe",
574
+ expected: "(__type.o4 | undefined)",
575
+ value: input.transcribe
576
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
577
+ path: _path + ".transcribe",
578
+ expected: "(__type.o4 | undefined)",
579
+ value: input.transcribe
580
+ }, errorFactory));
581
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
582
+ path: _path + ".type",
583
+ expected: "(string | undefined)",
584
+ value: input.type
585
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
586
+ path: _path + ".file",
587
+ expected: "(null | string | undefined)",
588
+ value: input.file
589
+ }, errorFactory));
590
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
591
+ path: _path + ".crop",
592
+ expected: "(__type.o3 | undefined)",
593
+ value: input.crop
594
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
595
+ path: _path + ".crop",
596
+ expected: "(__type.o3 | undefined)",
597
+ value: input.crop
598
+ }, errorFactory);
599
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
600
+ path: _path + ".x",
601
+ expected: "(number | undefined)",
602
+ value: input.x
603
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
604
+ path: _path + ".y",
605
+ expected: "(number | undefined)",
606
+ value: input.y
607
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
608
+ path: _path + ".width",
609
+ expected: "(number | undefined)",
610
+ value: input.width
611
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
612
+ path: _path + ".height",
613
+ expected: "(number | undefined)",
614
+ value: input.height
615
+ }, errorFactory));
616
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
617
+ path: _path + ".language",
618
+ expected: "(string | undefined)",
619
+ value: input.language
620
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
621
+ path: _path + ".pan",
622
+ expected: "(Array<number> | undefined)",
623
+ value: input.pan
624
+ }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
625
+ path: _path + ".pan[" + _index3 + "]",
626
+ expected: "number",
627
+ value: elem
628
+ }, errorFactory)) || $guard(_exceptionable, {
629
+ path: _path + ".pan",
630
+ expected: "(Array<number> | undefined)",
631
+ value: input.pan
632
+ }, errorFactory));
633
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
634
+ path: _path + ".format",
635
+ expected: "string",
636
+ value: input.format
637
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
638
+ path: _path + ".transcribe",
639
+ expected: "(__type.o5 | undefined)",
640
+ value: input.transcribe
641
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
642
+ path: _path + ".transcribe",
643
+ expected: "(__type.o5 | undefined)",
644
+ value: input.transcribe
645
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
646
+ path: _path + ".translate",
647
+ expected: "(__type.o6 | undefined)",
648
+ value: input.translate
649
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
650
+ path: _path + ".translate",
651
+ expected: "(__type.o6 | undefined)",
652
+ value: input.translate
653
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
654
+ path: _path + ".audio",
655
+ expected: "(__type.o7 | undefined)",
656
+ value: input.audio
657
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
658
+ path: _path + ".audio",
659
+ expected: "(__type.o7 | undefined)",
660
+ value: input.audio
661
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
662
+ path: _path + ".pick",
663
+ expected: "(Array<string> | undefined)",
664
+ value: input.pick
665
+ }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
666
+ path: _path + ".pick[" + _index4 + "]",
667
+ expected: "string",
668
+ value: elem
669
+ }, errorFactory)) || $guard(_exceptionable, {
670
+ path: _path + ".pick",
671
+ expected: "(Array<string> | undefined)",
672
+ value: input.pick
673
+ }, errorFactory));
674
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
675
+ path: _path + ".engine",
676
+ expected: "string",
677
+ value: input.engine
678
+ }, errorFactory);
679
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
680
+ path: _path + ".language",
681
+ expected: "string",
682
+ value: input.language
683
+ }, errorFactory);
684
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
685
+ path: _path + ".pan",
686
+ expected: "(string | undefined)",
687
+ value: input.pan
688
+ }, errorFactory);
689
+ return ("object" === typeof input && null !== input || $guard(true, {
690
+ path: _path + "",
691
+ expected: "RenderQuery",
692
+ value: input
693
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
694
+ path: _path + "",
695
+ expected: "RenderQuery",
696
+ value: input
697
+ }, errorFactory);
698
+ })(input, "$input", true);
699
+ };
700
+ export const stringifyRenderQuery = input => {
701
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
702
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
703
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
704
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
705
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
706
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
707
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
708
+ const $io8 = input => "string" === typeof input.engine;
709
+ const $io9 = input => "string" === typeof input.language;
710
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
711
+ const $string = __typia.json.createStringify.string;
712
+ const $throws = __typia.json.createStringify.throws;
713
+ const $tail = __typia.json.createStringify.tail;
714
+ const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
715
+ const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
716
+ if ("string" === typeof input.scene)
717
+ return $string(input.scene);
718
+ if (Array.isArray(input.scene))
719
+ return `[${input.scene.map(elem => (() => {
720
+ if ("string" === typeof elem)
721
+ return $string(elem);
722
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
723
+ return $so2(elem);
724
+ $throws({
725
+ expected: "(RenderSceneObject | string)",
726
+ value: elem
727
+ });
728
+ })()).join(",")}]`;
729
+ if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
730
+ return $so2(input.scene);
731
+ $throws({
732
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
733
+ value: input.scene
734
+ });
735
+ })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
736
+ if ("string" === typeof input.profile)
737
+ return $string(input.profile);
738
+ if (Array.isArray(input.profile))
739
+ return `[${input.profile.map(elem => (() => {
740
+ if ("string" === typeof elem)
741
+ return $string(elem);
742
+ if ("object" === typeof elem && null !== elem)
743
+ return $so7(elem);
744
+ $throws({
745
+ expected: "(RenderProfileObject | string)",
746
+ value: elem
747
+ });
748
+ })()).join(",")}]`;
749
+ if ("object" === typeof input.profile && null !== input.profile)
750
+ return $so7(input.profile);
751
+ $throws({
752
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
753
+ value: input.profile
754
+ });
755
+ })() : undefined}`}`)}}`;
756
+ const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so4(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so6(input.transcribe) : undefined}`}`)}}`;
757
+ const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
758
+ const $so4 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so5(input.crop) : undefined}`}`)}}`;
759
+ const $so5 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
760
+ const $so6 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
761
+ const $so7 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so10(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
762
+ const $so10 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
763
+ return $so0(input);
764
+ };
765
+ export const assertStringifyRenderQuery = (input, errorFactory) => { const assert = (input, errorFactory) => {
766
+ const __is = input => {
767
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
768
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
769
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
770
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
771
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
772
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
773
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
774
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
775
+ const $io8 = input => "string" === typeof input.engine;
776
+ const $io9 = input => "string" === typeof input.language;
777
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
778
+ return "object" === typeof input && null !== input && $io0(input);
779
+ };
780
+ if (false === __is(input))
781
+ ((input, _path, _exceptionable = true) => {
782
+ const $guard = __typia.json.createAssertStringify.guard;
783
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
784
+ path: _path + ".type",
785
+ expected: "string",
786
+ value: input.type
787
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
788
+ path: _path + ".title",
789
+ expected: "string",
790
+ value: input.title
791
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
792
+ path: _path + ".parent",
793
+ expected: "(string | undefined)",
794
+ value: input.parent
795
+ }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
796
+ path: _path + ".description",
797
+ expected: "(__type | undefined)",
798
+ value: input.description
799
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
800
+ path: _path + ".description",
801
+ expected: "(__type | undefined)",
802
+ value: input.description
803
+ }, errorFactory));
804
+ const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
805
+ path: _path + ".scene",
806
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
807
+ value: input.scene
808
+ }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
809
+ path: _path + ".scene[" + _index1 + "]",
810
+ expected: "(RenderSceneObject | string)",
811
+ value: elem
812
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
813
+ path: _path + ".scene[" + _index1 + "]",
814
+ expected: "(RenderSceneObject | string)",
815
+ value: elem
816
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
817
+ path: _path + ".scene[" + _index1 + "]",
818
+ expected: "(RenderSceneObject | string)",
819
+ value: elem
820
+ }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
821
+ path: _path + ".scene[" + _index1 + "]",
822
+ expected: "(RenderSceneObject | string)",
823
+ value: elem
824
+ }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
825
+ path: _path + ".scene",
826
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
827
+ value: input.scene
828
+ }, errorFactory)) || $guard(_exceptionable, {
829
+ path: _path + ".scene",
830
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
831
+ value: input.scene
832
+ }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
833
+ path: _path + ".profile",
834
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
835
+ value: input.profile
836
+ }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
837
+ path: _path + ".profile[" + _index2 + "]",
838
+ expected: "(RenderProfileObject | string)",
839
+ value: elem
840
+ }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
841
+ path: _path + ".profile[" + _index2 + "]",
842
+ expected: "(RenderProfileObject | string)",
843
+ value: elem
844
+ }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
845
+ path: _path + ".profile[" + _index2 + "]",
846
+ expected: "(RenderProfileObject | string)",
847
+ value: elem
848
+ }, errorFactory)) && $ao7(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
849
+ path: _path + ".profile[" + _index2 + "]",
850
+ expected: "(RenderProfileObject | string)",
851
+ value: elem
852
+ }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
853
+ path: _path + ".profile",
854
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
855
+ value: input.profile
856
+ }, errorFactory)) || $guard(_exceptionable, {
857
+ path: _path + ".profile",
858
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
859
+ value: input.profile
860
+ }, errorFactory)));
861
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
862
+ path: _path + ".id",
863
+ expected: "(string | undefined)",
864
+ value: input.id
865
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
866
+ path: _path + ".preset",
867
+ expected: "(string | undefined)",
868
+ value: input.preset
869
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
870
+ path: _path + ".input",
871
+ expected: "(__type.o1 | undefined)",
872
+ value: input.input
873
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
874
+ path: _path + ".input",
875
+ expected: "(__type.o1 | undefined)",
876
+ value: input.input
877
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
878
+ path: _path + ".lang",
879
+ expected: "(string | undefined)",
880
+ value: input.lang
881
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
882
+ path: _path + ".subtitle",
883
+ expected: "(string | undefined)",
884
+ value: input.subtitle
885
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
886
+ path: _path + ".video",
887
+ expected: "(__type.o2 | undefined)",
888
+ value: input.video
889
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
890
+ path: _path + ".video",
891
+ expected: "(__type.o2 | undefined)",
892
+ value: input.video
893
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
894
+ path: _path + ".start",
895
+ expected: "(number | undefined)",
896
+ value: input.start
897
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
898
+ path: _path + ".end",
899
+ expected: "(number | undefined)",
900
+ value: input.end
901
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
902
+ path: _path + ".transcribe",
903
+ expected: "(__type.o4 | undefined)",
904
+ value: input.transcribe
905
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
906
+ path: _path + ".transcribe",
907
+ expected: "(__type.o4 | undefined)",
908
+ value: input.transcribe
909
+ }, errorFactory));
910
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
911
+ path: _path + ".type",
912
+ expected: "(string | undefined)",
913
+ value: input.type
914
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
915
+ path: _path + ".file",
916
+ expected: "(null | string | undefined)",
917
+ value: input.file
918
+ }, errorFactory));
919
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
920
+ path: _path + ".crop",
921
+ expected: "(__type.o3 | undefined)",
922
+ value: input.crop
923
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
924
+ path: _path + ".crop",
925
+ expected: "(__type.o3 | undefined)",
926
+ value: input.crop
927
+ }, errorFactory);
928
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
929
+ path: _path + ".x",
930
+ expected: "(number | undefined)",
931
+ value: input.x
932
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
933
+ path: _path + ".y",
934
+ expected: "(number | undefined)",
935
+ value: input.y
936
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
937
+ path: _path + ".width",
938
+ expected: "(number | undefined)",
939
+ value: input.width
940
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
941
+ path: _path + ".height",
942
+ expected: "(number | undefined)",
943
+ value: input.height
944
+ }, errorFactory));
945
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
946
+ path: _path + ".language",
947
+ expected: "(string | undefined)",
948
+ value: input.language
949
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
950
+ path: _path + ".pan",
951
+ expected: "(Array<number> | undefined)",
952
+ value: input.pan
953
+ }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
954
+ path: _path + ".pan[" + _index3 + "]",
955
+ expected: "number",
956
+ value: elem
957
+ }, errorFactory)) || $guard(_exceptionable, {
958
+ path: _path + ".pan",
959
+ expected: "(Array<number> | undefined)",
960
+ value: input.pan
961
+ }, errorFactory));
962
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
963
+ path: _path + ".format",
964
+ expected: "string",
965
+ value: input.format
966
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
967
+ path: _path + ".transcribe",
968
+ expected: "(__type.o5 | undefined)",
969
+ value: input.transcribe
970
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
971
+ path: _path + ".transcribe",
972
+ expected: "(__type.o5 | undefined)",
973
+ value: input.transcribe
974
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
975
+ path: _path + ".translate",
976
+ expected: "(__type.o6 | undefined)",
977
+ value: input.translate
978
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
979
+ path: _path + ".translate",
980
+ expected: "(__type.o6 | undefined)",
981
+ value: input.translate
982
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
983
+ path: _path + ".audio",
984
+ expected: "(__type.o7 | undefined)",
985
+ value: input.audio
986
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
987
+ path: _path + ".audio",
988
+ expected: "(__type.o7 | undefined)",
989
+ value: input.audio
990
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
991
+ path: _path + ".pick",
992
+ expected: "(Array<string> | undefined)",
993
+ value: input.pick
994
+ }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
995
+ path: _path + ".pick[" + _index4 + "]",
996
+ expected: "string",
997
+ value: elem
998
+ }, errorFactory)) || $guard(_exceptionable, {
999
+ path: _path + ".pick",
1000
+ expected: "(Array<string> | undefined)",
1001
+ value: input.pick
1002
+ }, errorFactory));
1003
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1004
+ path: _path + ".engine",
1005
+ expected: "string",
1006
+ value: input.engine
1007
+ }, errorFactory);
1008
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1009
+ path: _path + ".language",
1010
+ expected: "string",
1011
+ value: input.language
1012
+ }, errorFactory);
1013
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1014
+ path: _path + ".pan",
1015
+ expected: "(string | undefined)",
1016
+ value: input.pan
1017
+ }, errorFactory);
1018
+ return ("object" === typeof input && null !== input || $guard(true, {
1019
+ path: _path + "",
1020
+ expected: "RenderQuery",
1021
+ value: input
1022
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1023
+ path: _path + "",
1024
+ expected: "RenderQuery",
1025
+ value: input
1026
+ }, errorFactory);
1027
+ })(input, "$input", true);
1028
+ return input;
1029
+ }; const stringify = input => {
1030
+ const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem))) || "object" === typeof input.profile && null !== input.profile && $io7(input.profile))));
1031
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
1032
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1033
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
1034
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1035
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1036
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
1037
+ const $io8 = input => "string" === typeof input.engine;
1038
+ const $io9 = input => "string" === typeof input.language;
1039
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
1040
+ const $string = __typia.json.createAssertStringify.string;
1041
+ const $throws = __typia.json.createAssertStringify.throws;
1042
+ const $tail = __typia.json.createAssertStringify.tail;
1043
+ const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
1044
+ const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
1045
+ if ("string" === typeof input.scene)
1046
+ return $string(input.scene);
1047
+ if (Array.isArray(input.scene))
1048
+ return `[${input.scene.map(elem => (() => {
1049
+ if ("string" === typeof elem)
1050
+ return $string(elem);
1051
+ if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1052
+ return $so2(elem);
1053
+ $throws({
1054
+ expected: "(RenderSceneObject | string)",
1055
+ value: elem
1056
+ });
1057
+ })()).join(",")}]`;
1058
+ if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
1059
+ return $so2(input.scene);
1060
+ $throws({
1061
+ expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1062
+ value: input.scene
1063
+ });
1064
+ })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
1065
+ if ("string" === typeof input.profile)
1066
+ return $string(input.profile);
1067
+ if (Array.isArray(input.profile))
1068
+ return `[${input.profile.map(elem => (() => {
1069
+ if ("string" === typeof elem)
1070
+ return $string(elem);
1071
+ if ("object" === typeof elem && null !== elem)
1072
+ return $so7(elem);
1073
+ $throws({
1074
+ expected: "(RenderProfileObject | string)",
1075
+ value: elem
1076
+ });
1077
+ })()).join(",")}]`;
1078
+ if ("object" === typeof input.profile && null !== input.profile)
1079
+ return $so7(input.profile);
1080
+ $throws({
1081
+ expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1082
+ value: input.profile
1083
+ });
1084
+ })() : undefined}`}`)}}`;
1085
+ const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so4(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so6(input.transcribe) : undefined}`}`)}}`;
1086
+ const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
1087
+ const $so4 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so5(input.crop) : undefined}`}`)}}`;
1088
+ const $so5 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1089
+ const $so6 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1090
+ const $so7 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so10(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
1091
+ const $so10 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1092
+ return $so0(input);
1093
+ }; return stringify(assert(input, errorFactory)); };