@nxtedition/types 1.6.6 → 1.6.8

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,35 +1,29 @@
1
1
  import __typia from "typia";
2
2
  export const isFile = input => {
3
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
3
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
4
4
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
5
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
6
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
7
- const $io4 = input => 0 === input.minimum;
8
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
9
- const $io6 = input => Object.keys(input).every(key => {
5
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
6
+ const $io3 = input => Object.keys(input).every(key => {
10
7
  const value = input[key];
11
8
  if (undefined === value)
12
9
  return true;
13
10
  return "string" === typeof value;
14
11
  });
15
- const $io7 = input => true;
12
+ const $io4 = input => true;
16
13
  return "object" === typeof input && null !== input && $io0(input);
17
14
  };
18
15
  export const assertFile = (input, errorFactory) => {
19
16
  const __is = input => {
20
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
17
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
21
18
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
22
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
23
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
24
- const $io4 = input => 0 === input.minimum;
25
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
26
- const $io6 = input => Object.keys(input).every(key => {
19
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
20
+ const $io3 = input => Object.keys(input).every(key => {
27
21
  const value = input[key];
28
22
  if (undefined === value)
29
23
  return true;
30
24
  return "string" === typeof value;
31
25
  });
32
- const $io7 = input => true;
26
+ const $io4 = input => true;
33
27
  return "object" === typeof input && null !== input && $io0(input);
34
28
  };
35
29
  if (false === __is(input))
@@ -100,42 +94,6 @@ export const assertFile = (input, errorFactory) => {
100
94
  path: _path + ".mimeType",
101
95
  expected: "string",
102
96
  value: input.mimeType
103
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
104
- path: _path + ".ranges",
105
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
106
- value: input.ranges
107
- }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
108
- path: _path + ".ranges[" + _index3 + "]",
109
- expected: "[start: Minimum<0>, end: Minimum<0>]",
110
- value: elem
111
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
112
- path: _path + ".ranges[" + _index3 + "]",
113
- expected: "[Minimum<0>, Minimum<0>]",
114
- value: elem
115
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
116
- path: _path + ".ranges[" + _index3 + "][0]",
117
- expected: "Minimum<0>",
118
- value: elem[0]
119
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
120
- path: _path + ".ranges[" + _index3 + "][0]",
121
- expected: "Minimum<0>",
122
- value: elem[0]
123
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
124
- path: _path + ".ranges[" + _index3 + "][1]",
125
- expected: "Minimum<0>",
126
- value: elem[1]
127
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
128
- path: _path + ".ranges[" + _index3 + "][1]",
129
- expected: "Minimum<0>",
130
- value: elem[1]
131
- }, errorFactory))) || $guard(_exceptionable, {
132
- path: _path + ".ranges[" + _index3 + "]",
133
- expected: "[start: Minimum<0>, end: Minimum<0>]",
134
- value: elem
135
- }, errorFactory)) || $guard(_exceptionable, {
136
- path: _path + ".ranges",
137
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
138
- value: input.ranges
139
97
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
140
98
  path: _path + ".hash",
141
99
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -164,15 +122,15 @@ export const assertFile = (input, errorFactory) => {
164
122
  path: _path + ".error",
165
123
  expected: "(Array<NxtError> | NxtError | null)",
166
124
  value: input.error
167
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
168
- path: _path + ".error[" + _index4 + "]",
125
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
126
+ path: _path + ".error[" + _index3 + "]",
169
127
  expected: "NxtError",
170
128
  value: elem
171
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
172
- path: _path + ".error[" + _index4 + "]",
129
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
130
+ path: _path + ".error[" + _index3 + "]",
173
131
  expected: "NxtError",
174
132
  value: elem
175
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
133
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
176
134
  path: _path + ".error",
177
135
  expected: "(Array<NxtError> | NxtError | null)",
178
136
  value: input.error
@@ -198,66 +156,7 @@ export const assertFile = (input, errorFactory) => {
198
156
  expected: "(number | undefined)",
199
157
  value: input.end
200
158
  }, errorFactory));
201
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
202
- path: _path + "[\"typia.tag\"]",
203
- expected: "(__type.o1 | undefined)",
204
- value: input["typia.tag"]
205
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
206
- path: _path + "[\"typia.tag\"]",
207
- expected: "(__type.o1 | undefined)",
208
- value: input["typia.tag"]
209
- }, errorFactory);
210
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
211
- path: _path + ".target",
212
- expected: "\"number\"",
213
- value: input.target
214
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
215
- path: _path + ".kind",
216
- expected: "\"minimum\"",
217
- value: input.kind
218
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
219
- path: _path + ".value",
220
- expected: "0",
221
- value: input.value
222
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
223
- path: _path + ".validate",
224
- expected: "\"0 <= $input\"",
225
- value: input.validate
226
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
227
- path: _path + ".exclusive",
228
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
229
- value: input.exclusive
230
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
231
- path: _path + ".exclusive",
232
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
233
- value: input.exclusive
234
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
235
- path: _path + ".exclusive[0]",
236
- expected: "\"minimum\"",
237
- value: input.exclusive[0]
238
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
239
- path: _path + ".exclusive[1]",
240
- expected: "\"exclusiveMinimum\"",
241
- value: input.exclusive[1]
242
- }, errorFactory))) || $guard(_exceptionable, {
243
- path: _path + ".exclusive",
244
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
245
- value: input.exclusive
246
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
247
- path: _path + ".schema",
248
- expected: "__type.o2",
249
- value: input.schema
250
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
251
- path: _path + ".schema",
252
- expected: "__type.o2",
253
- value: input.schema
254
- }, errorFactory));
255
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
256
- path: _path + ".minimum",
257
- expected: "0",
258
- value: input.minimum
259
- }, errorFactory);
260
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
159
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
261
160
  path: _path + ".message",
262
161
  expected: "string",
263
162
  value: input.message
@@ -285,7 +184,7 @@ export const assertFile = (input, errorFactory) => {
285
184
  path: _path + ".headers",
286
185
  expected: "(Record<string, string> | undefined)",
287
186
  value: input.headers
288
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
187
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
289
188
  path: _path + ".headers",
290
189
  expected: "(Record<string, string> | undefined)",
291
190
  value: input.headers
@@ -293,7 +192,7 @@ export const assertFile = (input, errorFactory) => {
293
192
  path: _path + ".data",
294
193
  expected: "(object | undefined)",
295
194
  value: input.data
296
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
195
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
297
196
  path: _path + ".data",
298
197
  expected: "(object | undefined)",
299
198
  value: input.data
@@ -301,7 +200,7 @@ export const assertFile = (input, errorFactory) => {
301
200
  path: _path + ".cause",
302
201
  expected: "(NxtError | null | undefined)",
303
202
  value: input.cause
304
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
203
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
305
204
  path: _path + ".cause",
306
205
  expected: "(NxtError | null | undefined)",
307
206
  value: input.cause
@@ -309,12 +208,12 @@ export const assertFile = (input, errorFactory) => {
309
208
  path: _path + ".errors",
310
209
  expected: "(Array<NxtError> | null | undefined)",
311
210
  value: input.errors
312
- }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
313
- path: _path + ".errors[" + _index5 + "]",
211
+ }, errorFactory)) && input.errors.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
212
+ path: _path + ".errors[" + _index4 + "]",
314
213
  expected: "NxtError",
315
214
  value: elem
316
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
317
- path: _path + ".errors[" + _index5 + "]",
215
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
216
+ path: _path + ".errors[" + _index4 + "]",
318
217
  expected: "NxtError",
319
218
  value: elem
320
219
  }, errorFactory)) || $guard(_exceptionable, {
@@ -322,7 +221,7 @@ export const assertFile = (input, errorFactory) => {
322
221
  expected: "(Array<NxtError> | null | undefined)",
323
222
  value: input.errors
324
223
  }, errorFactory));
325
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
224
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
326
225
  const value = input[key];
327
226
  if (undefined === value)
328
227
  return true;
@@ -332,7 +231,7 @@ export const assertFile = (input, errorFactory) => {
332
231
  value: value
333
232
  }, errorFactory);
334
233
  });
335
- const $ao7 = (input, _path, _exceptionable = true) => true;
234
+ const $ao4 = (input, _path, _exceptionable = true) => true;
336
235
  return ("object" === typeof input && null !== input || $guard(true, {
337
236
  path: _path + "",
338
237
  expected: "File",
@@ -377,10 +276,6 @@ export const randomFile = generator => {
377
276
  tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
378
277
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
379
278
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
380
- ranges: (generator?.array ?? $generator.array)(() => [
381
- $ro2(_recursive, _recursive ? 1 + _depth : _depth),
382
- $ro2(_recursive, _recursive ? 1 + _depth : _depth)
383
- ]),
384
279
  hash: (generator?.customs ?? $generator.customs)?.string?.([
385
280
  {
386
281
  name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -403,8 +298,8 @@ export const randomFile = generator => {
403
298
  completed: (generator?.boolean ?? $generator.boolean)(),
404
299
  error: $pick([
405
300
  () => null,
406
- () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
407
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
301
+ () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)),
302
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
408
303
  ])()
409
304
  });
410
305
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -425,27 +320,7 @@ export const randomFile = generator => {
425
320
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
426
321
  ])()
427
322
  });
428
- const $ro2 = (_recursive = false, _depth = 0) => ({
429
- "typia.tag": $pick([
430
- () => undefined,
431
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
432
- ])()
433
- });
434
- const $ro3 = (_recursive = false, _depth = 0) => ({
435
- target: "number",
436
- kind: "minimum",
437
- value: 0,
438
- validate: "0 <= $input",
439
- exclusive: [
440
- "minimum",
441
- "exclusiveMinimum"
442
- ],
443
- schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
444
- });
445
- const $ro4 = (_recursive = false, _depth = 0) => ({
446
- minimum: 0
447
- });
448
- const $ro5 = (_recursive = true, _depth = 0) => ({
323
+ const $ro2 = (_recursive = true, _depth = 0) => ({
449
324
  message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
450
325
  type: $pick([
451
326
  () => undefined,
@@ -469,46 +344,43 @@ export const randomFile = generator => {
469
344
  ])(),
470
345
  headers: $pick([
471
346
  () => undefined,
472
- () => $ro6(true, _recursive ? 1 + _depth : _depth)
347
+ () => $ro3(true, _recursive ? 1 + _depth : _depth)
473
348
  ])(),
474
349
  data: $pick([
475
350
  () => undefined,
476
- () => $ro7(true, _recursive ? 1 + _depth : _depth)
351
+ () => $ro4(true, _recursive ? 1 + _depth : _depth)
477
352
  ])(),
478
353
  cause: $pick([
479
354
  () => undefined,
480
355
  () => null,
481
- () => $ro5(true, _recursive ? 1 + _depth : _depth)
356
+ () => $ro2(true, _recursive ? 1 + _depth : _depth)
482
357
  ])(),
483
358
  errors: $pick([
484
359
  () => undefined,
485
360
  () => null,
486
- () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
361
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro2(true, _recursive ? 1 + _depth : _depth)) : []
487
362
  ])()
488
363
  });
489
- const $ro6 = (_recursive = false, _depth = 0) => {
364
+ const $ro3 = (_recursive = false, _depth = 0) => {
490
365
  const output = {};
491
366
  (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
492
367
  return output;
493
368
  };
494
- const $ro7 = (_recursive = false, _depth = 0) => {};
369
+ const $ro4 = (_recursive = false, _depth = 0) => {};
495
370
  return $ro0();
496
371
  };
497
372
  export const assertGuardFile = (input, errorFactory) => {
498
373
  const __is = input => {
499
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
374
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
500
375
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
501
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
502
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
503
- const $io4 = input => 0 === input.minimum;
504
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
505
- const $io6 = input => Object.keys(input).every(key => {
376
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
377
+ const $io3 = input => Object.keys(input).every(key => {
506
378
  const value = input[key];
507
379
  if (undefined === value)
508
380
  return true;
509
381
  return "string" === typeof value;
510
382
  });
511
- const $io7 = input => true;
383
+ const $io4 = input => true;
512
384
  return "object" === typeof input && null !== input && $io0(input);
513
385
  };
514
386
  if (false === __is(input))
@@ -579,42 +451,6 @@ export const assertGuardFile = (input, errorFactory) => {
579
451
  path: _path + ".mimeType",
580
452
  expected: "string",
581
453
  value: input.mimeType
582
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
583
- path: _path + ".ranges",
584
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
585
- value: input.ranges
586
- }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
587
- path: _path + ".ranges[" + _index3 + "]",
588
- expected: "[start: Minimum<0>, end: Minimum<0>]",
589
- value: elem
590
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
591
- path: _path + ".ranges[" + _index3 + "]",
592
- expected: "[Minimum<0>, Minimum<0>]",
593
- value: elem
594
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
595
- path: _path + ".ranges[" + _index3 + "][0]",
596
- expected: "Minimum<0>",
597
- value: elem[0]
598
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
599
- path: _path + ".ranges[" + _index3 + "][0]",
600
- expected: "Minimum<0>",
601
- value: elem[0]
602
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
603
- path: _path + ".ranges[" + _index3 + "][1]",
604
- expected: "Minimum<0>",
605
- value: elem[1]
606
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
607
- path: _path + ".ranges[" + _index3 + "][1]",
608
- expected: "Minimum<0>",
609
- value: elem[1]
610
- }, errorFactory))) || $guard(_exceptionable, {
611
- path: _path + ".ranges[" + _index3 + "]",
612
- expected: "[start: Minimum<0>, end: Minimum<0>]",
613
- value: elem
614
- }, errorFactory)) || $guard(_exceptionable, {
615
- path: _path + ".ranges",
616
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
617
- value: input.ranges
618
454
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
619
455
  path: _path + ".hash",
620
456
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -643,15 +479,15 @@ export const assertGuardFile = (input, errorFactory) => {
643
479
  path: _path + ".error",
644
480
  expected: "(Array<NxtError> | NxtError | null)",
645
481
  value: input.error
646
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
647
- path: _path + ".error[" + _index4 + "]",
482
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
483
+ path: _path + ".error[" + _index3 + "]",
648
484
  expected: "NxtError",
649
485
  value: elem
650
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
651
- path: _path + ".error[" + _index4 + "]",
486
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
487
+ path: _path + ".error[" + _index3 + "]",
652
488
  expected: "NxtError",
653
489
  value: elem
654
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
490
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
655
491
  path: _path + ".error",
656
492
  expected: "(Array<NxtError> | NxtError | null)",
657
493
  value: input.error
@@ -677,66 +513,7 @@ export const assertGuardFile = (input, errorFactory) => {
677
513
  expected: "(number | undefined)",
678
514
  value: input.end
679
515
  }, errorFactory));
680
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
681
- path: _path + "[\"typia.tag\"]",
682
- expected: "(__type.o1 | undefined)",
683
- value: input["typia.tag"]
684
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
685
- path: _path + "[\"typia.tag\"]",
686
- expected: "(__type.o1 | undefined)",
687
- value: input["typia.tag"]
688
- }, errorFactory);
689
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
690
- path: _path + ".target",
691
- expected: "\"number\"",
692
- value: input.target
693
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
694
- path: _path + ".kind",
695
- expected: "\"minimum\"",
696
- value: input.kind
697
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
698
- path: _path + ".value",
699
- expected: "0",
700
- value: input.value
701
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
702
- path: _path + ".validate",
703
- expected: "\"0 <= $input\"",
704
- value: input.validate
705
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
706
- path: _path + ".exclusive",
707
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
708
- value: input.exclusive
709
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
710
- path: _path + ".exclusive",
711
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
712
- value: input.exclusive
713
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
714
- path: _path + ".exclusive[0]",
715
- expected: "\"minimum\"",
716
- value: input.exclusive[0]
717
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
718
- path: _path + ".exclusive[1]",
719
- expected: "\"exclusiveMinimum\"",
720
- value: input.exclusive[1]
721
- }, errorFactory))) || $guard(_exceptionable, {
722
- path: _path + ".exclusive",
723
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
724
- value: input.exclusive
725
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
726
- path: _path + ".schema",
727
- expected: "__type.o2",
728
- value: input.schema
729
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
730
- path: _path + ".schema",
731
- expected: "__type.o2",
732
- value: input.schema
733
- }, errorFactory));
734
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
735
- path: _path + ".minimum",
736
- expected: "0",
737
- value: input.minimum
738
- }, errorFactory);
739
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
516
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
740
517
  path: _path + ".message",
741
518
  expected: "string",
742
519
  value: input.message
@@ -764,7 +541,7 @@ export const assertGuardFile = (input, errorFactory) => {
764
541
  path: _path + ".headers",
765
542
  expected: "(Record<string, string> | undefined)",
766
543
  value: input.headers
767
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
544
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
768
545
  path: _path + ".headers",
769
546
  expected: "(Record<string, string> | undefined)",
770
547
  value: input.headers
@@ -772,7 +549,7 @@ export const assertGuardFile = (input, errorFactory) => {
772
549
  path: _path + ".data",
773
550
  expected: "(object | undefined)",
774
551
  value: input.data
775
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
552
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
776
553
  path: _path + ".data",
777
554
  expected: "(object | undefined)",
778
555
  value: input.data
@@ -780,7 +557,7 @@ export const assertGuardFile = (input, errorFactory) => {
780
557
  path: _path + ".cause",
781
558
  expected: "(NxtError | null | undefined)",
782
559
  value: input.cause
783
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
560
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
784
561
  path: _path + ".cause",
785
562
  expected: "(NxtError | null | undefined)",
786
563
  value: input.cause
@@ -788,12 +565,12 @@ export const assertGuardFile = (input, errorFactory) => {
788
565
  path: _path + ".errors",
789
566
  expected: "(Array<NxtError> | null | undefined)",
790
567
  value: input.errors
791
- }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
792
- path: _path + ".errors[" + _index5 + "]",
568
+ }, errorFactory)) && input.errors.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
569
+ path: _path + ".errors[" + _index4 + "]",
793
570
  expected: "NxtError",
794
571
  value: elem
795
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
796
- path: _path + ".errors[" + _index5 + "]",
572
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
573
+ path: _path + ".errors[" + _index4 + "]",
797
574
  expected: "NxtError",
798
575
  value: elem
799
576
  }, errorFactory)) || $guard(_exceptionable, {
@@ -801,7 +578,7 @@ export const assertGuardFile = (input, errorFactory) => {
801
578
  expected: "(Array<NxtError> | null | undefined)",
802
579
  value: input.errors
803
580
  }, errorFactory));
804
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
581
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
805
582
  const value = input[key];
806
583
  if (undefined === value)
807
584
  return true;
@@ -811,7 +588,7 @@ export const assertGuardFile = (input, errorFactory) => {
811
588
  value: value
812
589
  }, errorFactory);
813
590
  });
814
- const $ao7 = (input, _path, _exceptionable = true) => true;
591
+ const $ao4 = (input, _path, _exceptionable = true) => true;
815
592
  return ("object" === typeof input && null !== input || $guard(true, {
816
593
  path: _path + "",
817
594
  expected: "File",
@@ -825,99 +602,45 @@ export const assertGuardFile = (input, errorFactory) => {
825
602
  };
826
603
  export const stringifyFile = input => {
827
604
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
828
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
829
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
830
- const $io4 = input => 0 === input.minimum;
831
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
832
- const $io6 = input => Object.keys(input).every(key => {
605
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
606
+ const $io3 = input => Object.keys(input).every(key => {
833
607
  const value = input[key];
834
608
  if (undefined === value)
835
609
  return true;
836
610
  return "string" === typeof value;
837
611
  });
838
- const $io7 = input => true;
612
+ const $io4 = input => true;
839
613
  const $string = __typia.json.createStringify.string;
840
614
  const $throws = __typia.json.createStringify.throws;
841
615
  const $tail = __typia.json.createStringify.tail;
842
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
616
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
843
617
  if (Array.isArray(input.error))
844
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
618
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
845
619
  if ("object" === typeof input.error && null !== input.error)
846
- return $so5(input.error);
620
+ return $so2(input.error);
847
621
  $throws({
848
622
  expected: "(Array<NxtError> | NxtError | null)",
849
623
  value: input.error
850
624
  });
851
625
  })() : "null"}}`;
852
626
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
853
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
854
- const $so3 = input => `{"target":${(() => {
855
- if ("string" === typeof input.target)
856
- return $string(input.target);
857
- if ("string" === typeof input.target)
858
- return "\"" + input.target + "\"";
859
- $throws({
860
- expected: "\"number\"",
861
- value: input.target
862
- });
863
- })()},"kind":${(() => {
864
- if ("string" === typeof input.kind)
865
- return $string(input.kind);
866
- if ("string" === typeof input.kind)
867
- return "\"" + input.kind + "\"";
868
- $throws({
869
- expected: "\"minimum\"",
870
- value: input.kind
871
- });
872
- })()},"value":${input.value},"validate":${(() => {
873
- if ("string" === typeof input.validate)
874
- return $string(input.validate);
875
- if ("string" === typeof input.validate)
876
- return "\"" + input.validate + "\"";
877
- $throws({
878
- expected: "\"0 <= $input\"",
879
- value: input.validate
880
- });
881
- })()},"exclusive":${`[${(() => {
882
- if ("string" === typeof input.exclusive[0])
883
- return $string(input.exclusive[0]);
884
- if ("string" === typeof input.exclusive[0])
885
- return "\"" + input.exclusive[0] + "\"";
886
- $throws({
887
- expected: "\"minimum\"",
888
- value: input.exclusive[0]
889
- });
890
- })()},${(() => {
891
- if ("string" === typeof input.exclusive[1])
892
- return $string(input.exclusive[1]);
893
- if ("string" === typeof input.exclusive[1])
894
- return "\"" + input.exclusive[1] + "\"";
895
- $throws({
896
- expected: "\"exclusiveMinimum\"",
897
- value: input.exclusive[1]
898
- });
899
- })()}]`},"schema":${$so4(input.schema)}}`;
900
- const $so4 = input => `{"minimum":${input.minimum}}`;
901
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
902
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
627
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
628
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
903
629
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
904
630
  return $so0(input);
905
631
  };
906
632
  export const assertStringifyFile = (input, errorFactory) => { const assert = (input, errorFactory) => {
907
633
  const __is = input => {
908
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
634
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
909
635
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
910
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
911
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
912
- const $io4 = input => 0 === input.minimum;
913
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
914
- const $io6 = input => Object.keys(input).every(key => {
636
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
637
+ const $io3 = input => Object.keys(input).every(key => {
915
638
  const value = input[key];
916
639
  if (undefined === value)
917
640
  return true;
918
641
  return "string" === typeof value;
919
642
  });
920
- const $io7 = input => true;
643
+ const $io4 = input => true;
921
644
  return "object" === typeof input && null !== input && $io0(input);
922
645
  };
923
646
  if (false === __is(input))
@@ -988,42 +711,6 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
988
711
  path: _path + ".mimeType",
989
712
  expected: "string",
990
713
  value: input.mimeType
991
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
992
- path: _path + ".ranges",
993
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
994
- value: input.ranges
995
- }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
996
- path: _path + ".ranges[" + _index3 + "]",
997
- expected: "[start: Minimum<0>, end: Minimum<0>]",
998
- value: elem
999
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1000
- path: _path + ".ranges[" + _index3 + "]",
1001
- expected: "[Minimum<0>, Minimum<0>]",
1002
- value: elem
1003
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1004
- path: _path + ".ranges[" + _index3 + "][0]",
1005
- expected: "Minimum<0>",
1006
- value: elem[0]
1007
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1008
- path: _path + ".ranges[" + _index3 + "][0]",
1009
- expected: "Minimum<0>",
1010
- value: elem[0]
1011
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1012
- path: _path + ".ranges[" + _index3 + "][1]",
1013
- expected: "Minimum<0>",
1014
- value: elem[1]
1015
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1016
- path: _path + ".ranges[" + _index3 + "][1]",
1017
- expected: "Minimum<0>",
1018
- value: elem[1]
1019
- }, errorFactory))) || $guard(_exceptionable, {
1020
- path: _path + ".ranges[" + _index3 + "]",
1021
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1022
- value: elem
1023
- }, errorFactory)) || $guard(_exceptionable, {
1024
- path: _path + ".ranges",
1025
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1026
- value: input.ranges
1027
714
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1028
715
  path: _path + ".hash",
1029
716
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -1052,15 +739,15 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1052
739
  path: _path + ".error",
1053
740
  expected: "(Array<NxtError> | NxtError | null)",
1054
741
  value: input.error
1055
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1056
- path: _path + ".error[" + _index4 + "]",
742
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
743
+ path: _path + ".error[" + _index3 + "]",
1057
744
  expected: "NxtError",
1058
745
  value: elem
1059
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1060
- path: _path + ".error[" + _index4 + "]",
746
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
747
+ path: _path + ".error[" + _index3 + "]",
1061
748
  expected: "NxtError",
1062
749
  value: elem
1063
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
750
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1064
751
  path: _path + ".error",
1065
752
  expected: "(Array<NxtError> | NxtError | null)",
1066
753
  value: input.error
@@ -1086,66 +773,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1086
773
  expected: "(number | undefined)",
1087
774
  value: input.end
1088
775
  }, errorFactory));
1089
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1090
- path: _path + "[\"typia.tag\"]",
1091
- expected: "(__type.o1 | undefined)",
1092
- value: input["typia.tag"]
1093
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1094
- path: _path + "[\"typia.tag\"]",
1095
- expected: "(__type.o1 | undefined)",
1096
- value: input["typia.tag"]
1097
- }, errorFactory);
1098
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1099
- path: _path + ".target",
1100
- expected: "\"number\"",
1101
- value: input.target
1102
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1103
- path: _path + ".kind",
1104
- expected: "\"minimum\"",
1105
- value: input.kind
1106
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1107
- path: _path + ".value",
1108
- expected: "0",
1109
- value: input.value
1110
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1111
- path: _path + ".validate",
1112
- expected: "\"0 <= $input\"",
1113
- value: input.validate
1114
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1115
- path: _path + ".exclusive",
1116
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1117
- value: input.exclusive
1118
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1119
- path: _path + ".exclusive",
1120
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1121
- value: input.exclusive
1122
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1123
- path: _path + ".exclusive[0]",
1124
- expected: "\"minimum\"",
1125
- value: input.exclusive[0]
1126
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1127
- path: _path + ".exclusive[1]",
1128
- expected: "\"exclusiveMinimum\"",
1129
- value: input.exclusive[1]
1130
- }, errorFactory))) || $guard(_exceptionable, {
1131
- path: _path + ".exclusive",
1132
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1133
- value: input.exclusive
1134
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1135
- path: _path + ".schema",
1136
- expected: "__type.o2",
1137
- value: input.schema
1138
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1139
- path: _path + ".schema",
1140
- expected: "__type.o2",
1141
- value: input.schema
1142
- }, errorFactory));
1143
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1144
- path: _path + ".minimum",
1145
- expected: "0",
1146
- value: input.minimum
1147
- }, errorFactory);
1148
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
776
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1149
777
  path: _path + ".message",
1150
778
  expected: "string",
1151
779
  value: input.message
@@ -1173,7 +801,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1173
801
  path: _path + ".headers",
1174
802
  expected: "(Record<string, string> | undefined)",
1175
803
  value: input.headers
1176
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
804
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1177
805
  path: _path + ".headers",
1178
806
  expected: "(Record<string, string> | undefined)",
1179
807
  value: input.headers
@@ -1181,7 +809,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1181
809
  path: _path + ".data",
1182
810
  expected: "(object | undefined)",
1183
811
  value: input.data
1184
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
812
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1185
813
  path: _path + ".data",
1186
814
  expected: "(object | undefined)",
1187
815
  value: input.data
@@ -1189,7 +817,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1189
817
  path: _path + ".cause",
1190
818
  expected: "(NxtError | null | undefined)",
1191
819
  value: input.cause
1192
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
820
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1193
821
  path: _path + ".cause",
1194
822
  expected: "(NxtError | null | undefined)",
1195
823
  value: input.cause
@@ -1197,12 +825,12 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1197
825
  path: _path + ".errors",
1198
826
  expected: "(Array<NxtError> | null | undefined)",
1199
827
  value: input.errors
1200
- }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1201
- path: _path + ".errors[" + _index5 + "]",
828
+ }, errorFactory)) && input.errors.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
829
+ path: _path + ".errors[" + _index4 + "]",
1202
830
  expected: "NxtError",
1203
831
  value: elem
1204
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
1205
- path: _path + ".errors[" + _index5 + "]",
832
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
833
+ path: _path + ".errors[" + _index4 + "]",
1206
834
  expected: "NxtError",
1207
835
  value: elem
1208
836
  }, errorFactory)) || $guard(_exceptionable, {
@@ -1210,7 +838,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1210
838
  expected: "(Array<NxtError> | null | undefined)",
1211
839
  value: input.errors
1212
840
  }, errorFactory));
1213
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
841
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1214
842
  const value = input[key];
1215
843
  if (undefined === value)
1216
844
  return true;
@@ -1220,7 +848,7 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1220
848
  value: value
1221
849
  }, errorFactory);
1222
850
  });
1223
- const $ao7 = (input, _path, _exceptionable = true) => true;
851
+ const $ao4 = (input, _path, _exceptionable = true) => true;
1224
852
  return ("object" === typeof input && null !== input || $guard(true, {
1225
853
  path: _path + "",
1226
854
  expected: "File",
@@ -1234,115 +862,58 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
1234
862
  return input;
1235
863
  }; const stringify = input => {
1236
864
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1237
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1238
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1239
- const $io4 = input => 0 === input.minimum;
1240
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1241
- const $io6 = input => Object.keys(input).every(key => {
865
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
866
+ const $io3 = input => Object.keys(input).every(key => {
1242
867
  const value = input[key];
1243
868
  if (undefined === value)
1244
869
  return true;
1245
870
  return "string" === typeof value;
1246
871
  });
1247
- const $io7 = input => true;
872
+ const $io4 = input => true;
1248
873
  const $string = __typia.json.createAssertStringify.string;
1249
874
  const $throws = __typia.json.createAssertStringify.throws;
1250
875
  const $tail = __typia.json.createAssertStringify.tail;
1251
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
876
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1252
877
  if (Array.isArray(input.error))
1253
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
878
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
1254
879
  if ("object" === typeof input.error && null !== input.error)
1255
- return $so5(input.error);
880
+ return $so2(input.error);
1256
881
  $throws({
1257
882
  expected: "(Array<NxtError> | NxtError | null)",
1258
883
  value: input.error
1259
884
  });
1260
885
  })() : "null"}}`;
1261
886
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
1262
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
1263
- const $so3 = input => `{"target":${(() => {
1264
- if ("string" === typeof input.target)
1265
- return $string(input.target);
1266
- if ("string" === typeof input.target)
1267
- return "\"" + input.target + "\"";
1268
- $throws({
1269
- expected: "\"number\"",
1270
- value: input.target
1271
- });
1272
- })()},"kind":${(() => {
1273
- if ("string" === typeof input.kind)
1274
- return $string(input.kind);
1275
- if ("string" === typeof input.kind)
1276
- return "\"" + input.kind + "\"";
1277
- $throws({
1278
- expected: "\"minimum\"",
1279
- value: input.kind
1280
- });
1281
- })()},"value":${input.value},"validate":${(() => {
1282
- if ("string" === typeof input.validate)
1283
- return $string(input.validate);
1284
- if ("string" === typeof input.validate)
1285
- return "\"" + input.validate + "\"";
1286
- $throws({
1287
- expected: "\"0 <= $input\"",
1288
- value: input.validate
1289
- });
1290
- })()},"exclusive":${`[${(() => {
1291
- if ("string" === typeof input.exclusive[0])
1292
- return $string(input.exclusive[0]);
1293
- if ("string" === typeof input.exclusive[0])
1294
- return "\"" + input.exclusive[0] + "\"";
1295
- $throws({
1296
- expected: "\"minimum\"",
1297
- value: input.exclusive[0]
1298
- });
1299
- })()},${(() => {
1300
- if ("string" === typeof input.exclusive[1])
1301
- return $string(input.exclusive[1]);
1302
- if ("string" === typeof input.exclusive[1])
1303
- return "\"" + input.exclusive[1] + "\"";
1304
- $throws({
1305
- expected: "\"exclusiveMinimum\"",
1306
- value: input.exclusive[1]
1307
- });
1308
- })()}]`},"schema":${$so4(input.schema)}}`;
1309
- const $so4 = input => `{"minimum":${input.minimum}}`;
1310
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1311
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
887
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
888
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1312
889
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
1313
890
  return $so0(input);
1314
891
  }; return stringify(assert(input, errorFactory)); };
1315
892
  export const isFileStats = input => {
1316
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
893
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1317
894
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1318
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1319
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1320
- const $io4 = input => 0 === input.minimum;
1321
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1322
- const $io6 = input => Object.keys(input).every(key => {
895
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
896
+ const $io3 = input => Object.keys(input).every(key => {
1323
897
  const value = input[key];
1324
898
  if (undefined === value)
1325
899
  return true;
1326
900
  return "string" === typeof value;
1327
901
  });
1328
- const $io7 = input => true;
902
+ const $io4 = input => true;
1329
903
  return "object" === typeof input && null !== input && $io0(input);
1330
904
  };
1331
905
  export const assertFileStats = (input, errorFactory) => {
1332
906
  const __is = input => {
1333
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
907
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1334
908
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1335
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1336
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1337
- const $io4 = input => 0 === input.minimum;
1338
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1339
- const $io6 = input => Object.keys(input).every(key => {
909
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
910
+ const $io3 = input => Object.keys(input).every(key => {
1340
911
  const value = input[key];
1341
912
  if (undefined === value)
1342
913
  return true;
1343
914
  return "string" === typeof value;
1344
915
  });
1345
- const $io7 = input => true;
916
+ const $io4 = input => true;
1346
917
  return "object" === typeof input && null !== input && $io0(input);
1347
918
  };
1348
919
  if (false === __is(input))
@@ -1389,6 +960,42 @@ export const assertFileStats = (input, errorFactory) => {
1389
960
  path: _path + ".replicas",
1390
961
  expected: "Array<string>",
1391
962
  value: input.replicas
963
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
964
+ path: _path + ".ranges",
965
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
966
+ value: input.ranges
967
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
968
+ path: _path + ".ranges[" + _index3 + "]",
969
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
970
+ value: elem
971
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
972
+ path: _path + ".ranges[" + _index3 + "]",
973
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
974
+ value: elem
975
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
976
+ path: _path + ".ranges[" + _index3 + "][0]",
977
+ expected: "number & Minimum<0>",
978
+ value: elem[0]
979
+ }, errorFactory)) || $guard(_exceptionable, {
980
+ path: _path + ".ranges[" + _index3 + "][0]",
981
+ expected: "(number & Minimum<0>)",
982
+ value: elem[0]
983
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
984
+ path: _path + ".ranges[" + _index3 + "][1]",
985
+ expected: "number & Minimum<0>",
986
+ value: elem[1]
987
+ }, errorFactory)) || $guard(_exceptionable, {
988
+ path: _path + ".ranges[" + _index3 + "][1]",
989
+ expected: "(number & Minimum<0>)",
990
+ value: elem[1]
991
+ }, errorFactory))) || $guard(_exceptionable, {
992
+ path: _path + ".ranges[" + _index3 + "]",
993
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
994
+ value: elem
995
+ }, errorFactory)) || $guard(_exceptionable, {
996
+ path: _path + ".ranges",
997
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
998
+ value: input.ranges
1392
999
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
1393
1000
  path: _path + ".id",
1394
1001
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -1421,12 +1028,12 @@ export const assertFileStats = (input, errorFactory) => {
1421
1028
  path: _path + ".refs",
1422
1029
  expected: "Array<__type>",
1423
1030
  value: input.refs
1424
- }, errorFactory)) && input.refs.every((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1425
- path: _path + ".refs[" + _index3 + "]",
1031
+ }, errorFactory)) && input.refs.every((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1032
+ path: _path + ".refs[" + _index4 + "]",
1426
1033
  expected: "__type",
1427
1034
  value: elem
1428
- }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
1429
- path: _path + ".refs[" + _index3 + "]",
1035
+ }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1036
+ path: _path + ".refs[" + _index4 + "]",
1430
1037
  expected: "__type",
1431
1038
  value: elem
1432
1039
  }, errorFactory)) || $guard(_exceptionable, {
@@ -1437,8 +1044,8 @@ export const assertFileStats = (input, errorFactory) => {
1437
1044
  path: _path + ".tags",
1438
1045
  expected: "Array<string>",
1439
1046
  value: input.tags
1440
- }, errorFactory)) && input.tags.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1441
- path: _path + ".tags[" + _index4 + "]",
1047
+ }, errorFactory)) && input.tags.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
1048
+ path: _path + ".tags[" + _index5 + "]",
1442
1049
  expected: "string",
1443
1050
  value: elem
1444
1051
  }, errorFactory)) || $guard(_exceptionable, {
@@ -1453,42 +1060,6 @@ export const assertFileStats = (input, errorFactory) => {
1453
1060
  path: _path + ".mimeType",
1454
1061
  expected: "string",
1455
1062
  value: input.mimeType
1456
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1457
- path: _path + ".ranges",
1458
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1459
- value: input.ranges
1460
- }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1461
- path: _path + ".ranges[" + _index5 + "]",
1462
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1463
- value: elem
1464
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1465
- path: _path + ".ranges[" + _index5 + "]",
1466
- expected: "[Minimum<0>, Minimum<0>]",
1467
- value: elem
1468
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1469
- path: _path + ".ranges[" + _index5 + "][0]",
1470
- expected: "Minimum<0>",
1471
- value: elem[0]
1472
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1473
- path: _path + ".ranges[" + _index5 + "][0]",
1474
- expected: "Minimum<0>",
1475
- value: elem[0]
1476
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1477
- path: _path + ".ranges[" + _index5 + "][1]",
1478
- expected: "Minimum<0>",
1479
- value: elem[1]
1480
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1481
- path: _path + ".ranges[" + _index5 + "][1]",
1482
- expected: "Minimum<0>",
1483
- value: elem[1]
1484
- }, errorFactory))) || $guard(_exceptionable, {
1485
- path: _path + ".ranges[" + _index5 + "]",
1486
- expected: "[start: Minimum<0>, end: Minimum<0>]",
1487
- value: elem
1488
- }, errorFactory)) || $guard(_exceptionable, {
1489
- path: _path + ".ranges",
1490
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1491
- value: input.ranges
1492
1063
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1493
1064
  path: _path + ".hash",
1494
1065
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -1521,11 +1092,11 @@ export const assertFileStats = (input, errorFactory) => {
1521
1092
  path: _path + ".error[" + _index6 + "]",
1522
1093
  expected: "NxtError",
1523
1094
  value: elem
1524
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1095
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1525
1096
  path: _path + ".error[" + _index6 + "]",
1526
1097
  expected: "NxtError",
1527
1098
  value: elem
1528
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1099
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1529
1100
  path: _path + ".error",
1530
1101
  expected: "(Array<NxtError> | NxtError | null)",
1531
1102
  value: input.error
@@ -1551,66 +1122,7 @@ export const assertFileStats = (input, errorFactory) => {
1551
1122
  expected: "(number | undefined)",
1552
1123
  value: input.end
1553
1124
  }, errorFactory));
1554
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1555
- path: _path + "[\"typia.tag\"]",
1556
- expected: "(__type.o1 | undefined)",
1557
- value: input["typia.tag"]
1558
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1559
- path: _path + "[\"typia.tag\"]",
1560
- expected: "(__type.o1 | undefined)",
1561
- value: input["typia.tag"]
1562
- }, errorFactory);
1563
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1564
- path: _path + ".target",
1565
- expected: "\"number\"",
1566
- value: input.target
1567
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1568
- path: _path + ".kind",
1569
- expected: "\"minimum\"",
1570
- value: input.kind
1571
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1572
- path: _path + ".value",
1573
- expected: "0",
1574
- value: input.value
1575
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1576
- path: _path + ".validate",
1577
- expected: "\"0 <= $input\"",
1578
- value: input.validate
1579
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1580
- path: _path + ".exclusive",
1581
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1582
- value: input.exclusive
1583
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1584
- path: _path + ".exclusive",
1585
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1586
- value: input.exclusive
1587
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1588
- path: _path + ".exclusive[0]",
1589
- expected: "\"minimum\"",
1590
- value: input.exclusive[0]
1591
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1592
- path: _path + ".exclusive[1]",
1593
- expected: "\"exclusiveMinimum\"",
1594
- value: input.exclusive[1]
1595
- }, errorFactory))) || $guard(_exceptionable, {
1596
- path: _path + ".exclusive",
1597
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
1598
- value: input.exclusive
1599
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1600
- path: _path + ".schema",
1601
- expected: "__type.o2",
1602
- value: input.schema
1603
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1604
- path: _path + ".schema",
1605
- expected: "__type.o2",
1606
- value: input.schema
1607
- }, errorFactory));
1608
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1609
- path: _path + ".minimum",
1610
- expected: "0",
1611
- value: input.minimum
1612
- }, errorFactory);
1613
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1125
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1614
1126
  path: _path + ".message",
1615
1127
  expected: "string",
1616
1128
  value: input.message
@@ -1638,7 +1150,7 @@ export const assertFileStats = (input, errorFactory) => {
1638
1150
  path: _path + ".headers",
1639
1151
  expected: "(Record<string, string> | undefined)",
1640
1152
  value: input.headers
1641
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1153
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1642
1154
  path: _path + ".headers",
1643
1155
  expected: "(Record<string, string> | undefined)",
1644
1156
  value: input.headers
@@ -1646,7 +1158,7 @@ export const assertFileStats = (input, errorFactory) => {
1646
1158
  path: _path + ".data",
1647
1159
  expected: "(object | undefined)",
1648
1160
  value: input.data
1649
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1161
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1650
1162
  path: _path + ".data",
1651
1163
  expected: "(object | undefined)",
1652
1164
  value: input.data
@@ -1654,7 +1166,7 @@ export const assertFileStats = (input, errorFactory) => {
1654
1166
  path: _path + ".cause",
1655
1167
  expected: "(NxtError | null | undefined)",
1656
1168
  value: input.cause
1657
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1169
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1658
1170
  path: _path + ".cause",
1659
1171
  expected: "(NxtError | null | undefined)",
1660
1172
  value: input.cause
@@ -1666,7 +1178,7 @@ export const assertFileStats = (input, errorFactory) => {
1666
1178
  path: _path + ".errors[" + _index7 + "]",
1667
1179
  expected: "NxtError",
1668
1180
  value: elem
1669
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1181
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1670
1182
  path: _path + ".errors[" + _index7 + "]",
1671
1183
  expected: "NxtError",
1672
1184
  value: elem
@@ -1675,7 +1187,7 @@ export const assertFileStats = (input, errorFactory) => {
1675
1187
  expected: "(Array<NxtError> | null | undefined)",
1676
1188
  value: input.errors
1677
1189
  }, errorFactory));
1678
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1190
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1679
1191
  const value = input[key];
1680
1192
  if (undefined === value)
1681
1193
  return true;
@@ -1685,7 +1197,7 @@ export const assertFileStats = (input, errorFactory) => {
1685
1197
  value: value
1686
1198
  }, errorFactory);
1687
1199
  });
1688
- const $ao7 = (input, _path, _exceptionable = true) => true;
1200
+ const $ao4 = (input, _path, _exceptionable = true) => true;
1689
1201
  return ("object" === typeof input && null !== input || $guard(true, {
1690
1202
  path: _path + "",
1691
1203
  expected: "FileStats",
@@ -1720,6 +1232,22 @@ export const randomFileStats = generator => {
1720
1232
  uploading: (generator?.boolean ?? $generator.boolean)(),
1721
1233
  zones: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1722
1234
  replicas: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1235
+ ranges: (generator?.array ?? $generator.array)(() => [
1236
+ (generator?.customs ?? $generator.customs)?.number?.([
1237
+ {
1238
+ name: "Minimum<0>",
1239
+ kind: "minimum",
1240
+ value: 0
1241
+ }
1242
+ ]) ?? (generator?.number ?? $generator.number)(0, 10),
1243
+ (generator?.customs ?? $generator.customs)?.number?.([
1244
+ {
1245
+ name: "Minimum<0>",
1246
+ kind: "minimum",
1247
+ value: 0
1248
+ }
1249
+ ]) ?? (generator?.number ?? $generator.number)(0, 10)
1250
+ ]),
1723
1251
  id: (generator?.customs ?? $generator.customs)?.string?.([
1724
1252
  {
1725
1253
  name: "Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -1748,10 +1276,6 @@ export const randomFileStats = generator => {
1748
1276
  tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1749
1277
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1750
1278
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1751
- ranges: (generator?.array ?? $generator.array)(() => [
1752
- $ro2(_recursive, _recursive ? 1 + _depth : _depth),
1753
- $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1754
- ]),
1755
1279
  hash: (generator?.customs ?? $generator.customs)?.string?.([
1756
1280
  {
1757
1281
  name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -1774,8 +1298,8 @@ export const randomFileStats = generator => {
1774
1298
  completed: (generator?.boolean ?? $generator.boolean)(),
1775
1299
  error: $pick([
1776
1300
  () => null,
1777
- () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
1778
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
1301
+ () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth)),
1302
+ () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1779
1303
  ])()
1780
1304
  });
1781
1305
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -1796,27 +1320,7 @@ export const randomFileStats = generator => {
1796
1320
  () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1797
1321
  ])()
1798
1322
  });
1799
- const $ro2 = (_recursive = false, _depth = 0) => ({
1800
- "typia.tag": $pick([
1801
- () => undefined,
1802
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
1803
- ])()
1804
- });
1805
- const $ro3 = (_recursive = false, _depth = 0) => ({
1806
- target: "number",
1807
- kind: "minimum",
1808
- value: 0,
1809
- validate: "0 <= $input",
1810
- exclusive: [
1811
- "minimum",
1812
- "exclusiveMinimum"
1813
- ],
1814
- schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1815
- });
1816
- const $ro4 = (_recursive = false, _depth = 0) => ({
1817
- minimum: 0
1818
- });
1819
- const $ro5 = (_recursive = true, _depth = 0) => ({
1323
+ const $ro2 = (_recursive = true, _depth = 0) => ({
1820
1324
  message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1821
1325
  type: $pick([
1822
1326
  () => undefined,
@@ -1840,46 +1344,43 @@ export const randomFileStats = generator => {
1840
1344
  ])(),
1841
1345
  headers: $pick([
1842
1346
  () => undefined,
1843
- () => $ro6(true, _recursive ? 1 + _depth : _depth)
1347
+ () => $ro3(true, _recursive ? 1 + _depth : _depth)
1844
1348
  ])(),
1845
1349
  data: $pick([
1846
1350
  () => undefined,
1847
- () => $ro7(true, _recursive ? 1 + _depth : _depth)
1351
+ () => $ro4(true, _recursive ? 1 + _depth : _depth)
1848
1352
  ])(),
1849
1353
  cause: $pick([
1850
1354
  () => undefined,
1851
1355
  () => null,
1852
- () => $ro5(true, _recursive ? 1 + _depth : _depth)
1356
+ () => $ro2(true, _recursive ? 1 + _depth : _depth)
1853
1357
  ])(),
1854
1358
  errors: $pick([
1855
1359
  () => undefined,
1856
1360
  () => null,
1857
- () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
1361
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro2(true, _recursive ? 1 + _depth : _depth)) : []
1858
1362
  ])()
1859
1363
  });
1860
- const $ro6 = (_recursive = false, _depth = 0) => {
1364
+ const $ro3 = (_recursive = false, _depth = 0) => {
1861
1365
  const output = {};
1862
1366
  (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
1863
1367
  return output;
1864
1368
  };
1865
- const $ro7 = (_recursive = false, _depth = 0) => {};
1369
+ const $ro4 = (_recursive = false, _depth = 0) => {};
1866
1370
  return $ro0();
1867
1371
  };
1868
1372
  export const assertGuardFileStats = (input, errorFactory) => {
1869
1373
  const __is = input => {
1870
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1374
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1871
1375
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1872
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1873
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1874
- const $io4 = input => 0 === input.minimum;
1875
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1876
- const $io6 = input => Object.keys(input).every(key => {
1376
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1377
+ const $io3 = input => Object.keys(input).every(key => {
1877
1378
  const value = input[key];
1878
1379
  if (undefined === value)
1879
1380
  return true;
1880
1381
  return "string" === typeof value;
1881
1382
  });
1882
- const $io7 = input => true;
1383
+ const $io4 = input => true;
1883
1384
  return "object" === typeof input && null !== input && $io0(input);
1884
1385
  };
1885
1386
  if (false === __is(input))
@@ -1926,6 +1427,42 @@ export const assertGuardFileStats = (input, errorFactory) => {
1926
1427
  path: _path + ".replicas",
1927
1428
  expected: "Array<string>",
1928
1429
  value: input.replicas
1430
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1431
+ path: _path + ".ranges",
1432
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1433
+ value: input.ranges
1434
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
1435
+ path: _path + ".ranges[" + _index3 + "]",
1436
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1437
+ value: elem
1438
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1439
+ path: _path + ".ranges[" + _index3 + "]",
1440
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
1441
+ value: elem
1442
+ }, errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || $guard(_exceptionable, {
1443
+ path: _path + ".ranges[" + _index3 + "][0]",
1444
+ expected: "number & Minimum<0>",
1445
+ value: elem[0]
1446
+ }, errorFactory)) || $guard(_exceptionable, {
1447
+ path: _path + ".ranges[" + _index3 + "][0]",
1448
+ expected: "(number & Minimum<0>)",
1449
+ value: elem[0]
1450
+ }, errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || $guard(_exceptionable, {
1451
+ path: _path + ".ranges[" + _index3 + "][1]",
1452
+ expected: "number & Minimum<0>",
1453
+ value: elem[1]
1454
+ }, errorFactory)) || $guard(_exceptionable, {
1455
+ path: _path + ".ranges[" + _index3 + "][1]",
1456
+ expected: "(number & Minimum<0>)",
1457
+ value: elem[1]
1458
+ }, errorFactory))) || $guard(_exceptionable, {
1459
+ path: _path + ".ranges[" + _index3 + "]",
1460
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1461
+ value: elem
1462
+ }, errorFactory)) || $guard(_exceptionable, {
1463
+ path: _path + ".ranges",
1464
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1465
+ value: input.ranges
1929
1466
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
1930
1467
  path: _path + ".id",
1931
1468
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -1958,12 +1495,12 @@ export const assertGuardFileStats = (input, errorFactory) => {
1958
1495
  path: _path + ".refs",
1959
1496
  expected: "Array<__type>",
1960
1497
  value: input.refs
1961
- }, errorFactory)) && input.refs.every((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1962
- path: _path + ".refs[" + _index3 + "]",
1498
+ }, errorFactory)) && input.refs.every((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1499
+ path: _path + ".refs[" + _index4 + "]",
1963
1500
  expected: "__type",
1964
1501
  value: elem
1965
- }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
1966
- path: _path + ".refs[" + _index3 + "]",
1502
+ }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1503
+ path: _path + ".refs[" + _index4 + "]",
1967
1504
  expected: "__type",
1968
1505
  value: elem
1969
1506
  }, errorFactory)) || $guard(_exceptionable, {
@@ -1974,8 +1511,8 @@ export const assertGuardFileStats = (input, errorFactory) => {
1974
1511
  path: _path + ".tags",
1975
1512
  expected: "Array<string>",
1976
1513
  value: input.tags
1977
- }, errorFactory)) && input.tags.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1978
- path: _path + ".tags[" + _index4 + "]",
1514
+ }, errorFactory)) && input.tags.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
1515
+ path: _path + ".tags[" + _index5 + "]",
1979
1516
  expected: "string",
1980
1517
  value: elem
1981
1518
  }, errorFactory)) || $guard(_exceptionable, {
@@ -1990,42 +1527,6 @@ export const assertGuardFileStats = (input, errorFactory) => {
1990
1527
  path: _path + ".mimeType",
1991
1528
  expected: "string",
1992
1529
  value: input.mimeType
1993
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1994
- path: _path + ".ranges",
1995
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1996
- value: input.ranges
1997
- }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1998
- path: _path + ".ranges[" + _index5 + "]",
1999
- expected: "[start: Minimum<0>, end: Minimum<0>]",
2000
- value: elem
2001
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2002
- path: _path + ".ranges[" + _index5 + "]",
2003
- expected: "[Minimum<0>, Minimum<0>]",
2004
- value: elem
2005
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
2006
- path: _path + ".ranges[" + _index5 + "][0]",
2007
- expected: "Minimum<0>",
2008
- value: elem[0]
2009
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
2010
- path: _path + ".ranges[" + _index5 + "][0]",
2011
- expected: "Minimum<0>",
2012
- value: elem[0]
2013
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
2014
- path: _path + ".ranges[" + _index5 + "][1]",
2015
- expected: "Minimum<0>",
2016
- value: elem[1]
2017
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
2018
- path: _path + ".ranges[" + _index5 + "][1]",
2019
- expected: "Minimum<0>",
2020
- value: elem[1]
2021
- }, errorFactory))) || $guard(_exceptionable, {
2022
- path: _path + ".ranges[" + _index5 + "]",
2023
- expected: "[start: Minimum<0>, end: Minimum<0>]",
2024
- value: elem
2025
- }, errorFactory)) || $guard(_exceptionable, {
2026
- path: _path + ".ranges",
2027
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2028
- value: input.ranges
2029
1530
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
2030
1531
  path: _path + ".hash",
2031
1532
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -2058,11 +1559,11 @@ export const assertGuardFileStats = (input, errorFactory) => {
2058
1559
  path: _path + ".error[" + _index6 + "]",
2059
1560
  expected: "NxtError",
2060
1561
  value: elem
2061
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1562
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2062
1563
  path: _path + ".error[" + _index6 + "]",
2063
1564
  expected: "NxtError",
2064
1565
  value: elem
2065
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1566
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2066
1567
  path: _path + ".error",
2067
1568
  expected: "(Array<NxtError> | NxtError | null)",
2068
1569
  value: input.error
@@ -2088,66 +1589,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2088
1589
  expected: "(number | undefined)",
2089
1590
  value: input.end
2090
1591
  }, errorFactory));
2091
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2092
- path: _path + "[\"typia.tag\"]",
2093
- expected: "(__type.o1 | undefined)",
2094
- value: input["typia.tag"]
2095
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2096
- path: _path + "[\"typia.tag\"]",
2097
- expected: "(__type.o1 | undefined)",
2098
- value: input["typia.tag"]
2099
- }, errorFactory);
2100
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2101
- path: _path + ".target",
2102
- expected: "\"number\"",
2103
- value: input.target
2104
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2105
- path: _path + ".kind",
2106
- expected: "\"minimum\"",
2107
- value: input.kind
2108
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2109
- path: _path + ".value",
2110
- expected: "0",
2111
- value: input.value
2112
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2113
- path: _path + ".validate",
2114
- expected: "\"0 <= $input\"",
2115
- value: input.validate
2116
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2117
- path: _path + ".exclusive",
2118
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2119
- value: input.exclusive
2120
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2121
- path: _path + ".exclusive",
2122
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2123
- value: input.exclusive
2124
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2125
- path: _path + ".exclusive[0]",
2126
- expected: "\"minimum\"",
2127
- value: input.exclusive[0]
2128
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2129
- path: _path + ".exclusive[1]",
2130
- expected: "\"exclusiveMinimum\"",
2131
- value: input.exclusive[1]
2132
- }, errorFactory))) || $guard(_exceptionable, {
2133
- path: _path + ".exclusive",
2134
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2135
- value: input.exclusive
2136
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2137
- path: _path + ".schema",
2138
- expected: "__type.o2",
2139
- value: input.schema
2140
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2141
- path: _path + ".schema",
2142
- expected: "__type.o2",
2143
- value: input.schema
2144
- }, errorFactory));
2145
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2146
- path: _path + ".minimum",
2147
- expected: "0",
2148
- value: input.minimum
2149
- }, errorFactory);
2150
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1592
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
2151
1593
  path: _path + ".message",
2152
1594
  expected: "string",
2153
1595
  value: input.message
@@ -2175,7 +1617,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2175
1617
  path: _path + ".headers",
2176
1618
  expected: "(Record<string, string> | undefined)",
2177
1619
  value: input.headers
2178
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1620
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2179
1621
  path: _path + ".headers",
2180
1622
  expected: "(Record<string, string> | undefined)",
2181
1623
  value: input.headers
@@ -2183,7 +1625,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2183
1625
  path: _path + ".data",
2184
1626
  expected: "(object | undefined)",
2185
1627
  value: input.data
2186
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1628
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2187
1629
  path: _path + ".data",
2188
1630
  expected: "(object | undefined)",
2189
1631
  value: input.data
@@ -2191,7 +1633,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2191
1633
  path: _path + ".cause",
2192
1634
  expected: "(NxtError | null | undefined)",
2193
1635
  value: input.cause
2194
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1636
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2195
1637
  path: _path + ".cause",
2196
1638
  expected: "(NxtError | null | undefined)",
2197
1639
  value: input.cause
@@ -2203,7 +1645,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2203
1645
  path: _path + ".errors[" + _index7 + "]",
2204
1646
  expected: "NxtError",
2205
1647
  value: elem
2206
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1648
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2207
1649
  path: _path + ".errors[" + _index7 + "]",
2208
1650
  expected: "NxtError",
2209
1651
  value: elem
@@ -2212,7 +1654,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2212
1654
  expected: "(Array<NxtError> | null | undefined)",
2213
1655
  value: input.errors
2214
1656
  }, errorFactory));
2215
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1657
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2216
1658
  const value = input[key];
2217
1659
  if (undefined === value)
2218
1660
  return true;
@@ -2222,7 +1664,7 @@ export const assertGuardFileStats = (input, errorFactory) => {
2222
1664
  value: value
2223
1665
  }, errorFactory);
2224
1666
  });
2225
- const $ao7 = (input, _path, _exceptionable = true) => true;
1667
+ const $ao4 = (input, _path, _exceptionable = true) => true;
2226
1668
  return ("object" === typeof input && null !== input || $guard(true, {
2227
1669
  path: _path + "",
2228
1670
  expected: "FileStats",
@@ -2236,99 +1678,45 @@ export const assertGuardFileStats = (input, errorFactory) => {
2236
1678
  };
2237
1679
  export const stringifyFileStats = input => {
2238
1680
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
2239
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2240
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2241
- const $io4 = input => 0 === input.minimum;
2242
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2243
- const $io6 = input => Object.keys(input).every(key => {
1681
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1682
+ const $io3 = input => Object.keys(input).every(key => {
2244
1683
  const value = input[key];
2245
1684
  if (undefined === value)
2246
1685
  return true;
2247
1686
  return "string" === typeof value;
2248
1687
  });
2249
- const $io7 = input => true;
1688
+ const $io4 = input => true;
2250
1689
  const $string = __typia.json.createStringify.string;
2251
1690
  const $throws = __typia.json.createStringify.throws;
2252
1691
  const $tail = __typia.json.createStringify.tail;
2253
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1692
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2254
1693
  if (Array.isArray(input.error))
2255
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
1694
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2256
1695
  if ("object" === typeof input.error && null !== input.error)
2257
- return $so5(input.error);
1696
+ return $so2(input.error);
2258
1697
  $throws({
2259
1698
  expected: "(Array<NxtError> | NxtError | null)",
2260
1699
  value: input.error
2261
1700
  });
2262
1701
  })() : "null"}}`;
2263
1702
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2264
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2265
- const $so3 = input => `{"target":${(() => {
2266
- if ("string" === typeof input.target)
2267
- return $string(input.target);
2268
- if ("string" === typeof input.target)
2269
- return "\"" + input.target + "\"";
2270
- $throws({
2271
- expected: "\"number\"",
2272
- value: input.target
2273
- });
2274
- })()},"kind":${(() => {
2275
- if ("string" === typeof input.kind)
2276
- return $string(input.kind);
2277
- if ("string" === typeof input.kind)
2278
- return "\"" + input.kind + "\"";
2279
- $throws({
2280
- expected: "\"minimum\"",
2281
- value: input.kind
2282
- });
2283
- })()},"value":${input.value},"validate":${(() => {
2284
- if ("string" === typeof input.validate)
2285
- return $string(input.validate);
2286
- if ("string" === typeof input.validate)
2287
- return "\"" + input.validate + "\"";
2288
- $throws({
2289
- expected: "\"0 <= $input\"",
2290
- value: input.validate
2291
- });
2292
- })()},"exclusive":${`[${(() => {
2293
- if ("string" === typeof input.exclusive[0])
2294
- return $string(input.exclusive[0]);
2295
- if ("string" === typeof input.exclusive[0])
2296
- return "\"" + input.exclusive[0] + "\"";
2297
- $throws({
2298
- expected: "\"minimum\"",
2299
- value: input.exclusive[0]
2300
- });
2301
- })()},${(() => {
2302
- if ("string" === typeof input.exclusive[1])
2303
- return $string(input.exclusive[1]);
2304
- if ("string" === typeof input.exclusive[1])
2305
- return "\"" + input.exclusive[1] + "\"";
2306
- $throws({
2307
- expected: "\"exclusiveMinimum\"",
2308
- value: input.exclusive[1]
2309
- });
2310
- })()}]`},"schema":${$so4(input.schema)}}`;
2311
- const $so4 = input => `{"minimum":${input.minimum}}`;
2312
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2313
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1703
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1704
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2314
1705
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
2315
1706
  return $so0(input);
2316
1707
  };
2317
1708
  export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
2318
1709
  const __is = input => {
2319
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1710
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2320
1711
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
2321
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2322
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2323
- const $io4 = input => 0 === input.minimum;
2324
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2325
- const $io6 = input => Object.keys(input).every(key => {
1712
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1713
+ const $io3 = input => Object.keys(input).every(key => {
2326
1714
  const value = input[key];
2327
1715
  if (undefined === value)
2328
1716
  return true;
2329
1717
  return "string" === typeof value;
2330
1718
  });
2331
- const $io7 = input => true;
1719
+ const $io4 = input => true;
2332
1720
  return "object" === typeof input && null !== input && $io0(input);
2333
1721
  };
2334
1722
  if (false === __is(input))
@@ -2375,6 +1763,50 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2375
1763
  path: _path + ".replicas",
2376
1764
  expected: "Array<string>",
2377
1765
  value: input.replicas
1766
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1767
+ path: _path + ".ranges",
1768
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1769
+ value: input.ranges
1770
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
1771
+ path: _path + ".ranges[" + _index3 + "]",
1772
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1773
+ value: elem
1774
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1775
+ path: _path + ".ranges[" + _index3 + "]",
1776
+ expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
1777
+ value: elem
1778
+ }, errorFactory)) && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) || $guard(_exceptionable, {
1779
+ path: _path + ".ranges[" + _index3 + "][0]",
1780
+ expected: "number",
1781
+ value: elem[0]
1782
+ }, errorFactory)) && (0 <= elem[0] || $guard(_exceptionable, {
1783
+ path: _path + ".ranges[" + _index3 + "][0]",
1784
+ expected: "number & Minimum<0>",
1785
+ value: elem[0]
1786
+ }, errorFactory)) || $guard(_exceptionable, {
1787
+ path: _path + ".ranges[" + _index3 + "][0]",
1788
+ expected: "(number & Minimum<0>)",
1789
+ value: elem[0]
1790
+ }, errorFactory)) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) || $guard(_exceptionable, {
1791
+ path: _path + ".ranges[" + _index3 + "][1]",
1792
+ expected: "number",
1793
+ value: elem[1]
1794
+ }, errorFactory)) && (0 <= elem[1] || $guard(_exceptionable, {
1795
+ path: _path + ".ranges[" + _index3 + "][1]",
1796
+ expected: "number & Minimum<0>",
1797
+ value: elem[1]
1798
+ }, errorFactory)) || $guard(_exceptionable, {
1799
+ path: _path + ".ranges[" + _index3 + "][1]",
1800
+ expected: "(number & Minimum<0>)",
1801
+ value: elem[1]
1802
+ }, errorFactory))) || $guard(_exceptionable, {
1803
+ path: _path + ".ranges[" + _index3 + "]",
1804
+ expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
1805
+ value: elem
1806
+ }, errorFactory)) || $guard(_exceptionable, {
1807
+ path: _path + ".ranges",
1808
+ expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
1809
+ value: input.ranges
2378
1810
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
2379
1811
  path: _path + ".id",
2380
1812
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -2407,12 +1839,12 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2407
1839
  path: _path + ".refs",
2408
1840
  expected: "Array<__type>",
2409
1841
  value: input.refs
2410
- }, errorFactory)) && input.refs.every((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
2411
- path: _path + ".refs[" + _index3 + "]",
1842
+ }, errorFactory)) && input.refs.every((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1843
+ path: _path + ".refs[" + _index4 + "]",
2412
1844
  expected: "__type",
2413
1845
  value: elem
2414
- }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
2415
- path: _path + ".refs[" + _index3 + "]",
1846
+ }, errorFactory)) && $ao1(elem, _path + ".refs[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1847
+ path: _path + ".refs[" + _index4 + "]",
2416
1848
  expected: "__type",
2417
1849
  value: elem
2418
1850
  }, errorFactory)) || $guard(_exceptionable, {
@@ -2423,8 +1855,8 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2423
1855
  path: _path + ".tags",
2424
1856
  expected: "Array<string>",
2425
1857
  value: input.tags
2426
- }, errorFactory)) && input.tags.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
2427
- path: _path + ".tags[" + _index4 + "]",
1858
+ }, errorFactory)) && input.tags.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
1859
+ path: _path + ".tags[" + _index5 + "]",
2428
1860
  expected: "string",
2429
1861
  value: elem
2430
1862
  }, errorFactory)) || $guard(_exceptionable, {
@@ -2439,42 +1871,6 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2439
1871
  path: _path + ".mimeType",
2440
1872
  expected: "string",
2441
1873
  value: input.mimeType
2442
- }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
2443
- path: _path + ".ranges",
2444
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2445
- value: input.ranges
2446
- }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
2447
- path: _path + ".ranges[" + _index5 + "]",
2448
- expected: "[start: Minimum<0>, end: Minimum<0>]",
2449
- value: elem
2450
- }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2451
- path: _path + ".ranges[" + _index5 + "]",
2452
- expected: "[Minimum<0>, Minimum<0>]",
2453
- value: elem
2454
- }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
2455
- path: _path + ".ranges[" + _index5 + "][0]",
2456
- expected: "Minimum<0>",
2457
- value: elem[0]
2458
- }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
2459
- path: _path + ".ranges[" + _index5 + "][0]",
2460
- expected: "Minimum<0>",
2461
- value: elem[0]
2462
- }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
2463
- path: _path + ".ranges[" + _index5 + "][1]",
2464
- expected: "Minimum<0>",
2465
- value: elem[1]
2466
- }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
2467
- path: _path + ".ranges[" + _index5 + "][1]",
2468
- expected: "Minimum<0>",
2469
- value: elem[1]
2470
- }, errorFactory))) || $guard(_exceptionable, {
2471
- path: _path + ".ranges[" + _index5 + "]",
2472
- expected: "[start: Minimum<0>, end: Minimum<0>]",
2473
- value: elem
2474
- }, errorFactory)) || $guard(_exceptionable, {
2475
- path: _path + ".ranges",
2476
- expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2477
- value: input.ranges
2478
1874
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
2479
1875
  path: _path + ".hash",
2480
1876
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -2507,11 +1903,11 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2507
1903
  path: _path + ".error[" + _index6 + "]",
2508
1904
  expected: "NxtError",
2509
1905
  value: elem
2510
- }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1906
+ }, errorFactory)) && $ao2(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2511
1907
  path: _path + ".error[" + _index6 + "]",
2512
1908
  expected: "NxtError",
2513
1909
  value: elem
2514
- }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1910
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao2(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2515
1911
  path: _path + ".error",
2516
1912
  expected: "(Array<NxtError> | NxtError | null)",
2517
1913
  value: input.error
@@ -2537,66 +1933,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2537
1933
  expected: "(number | undefined)",
2538
1934
  value: input.end
2539
1935
  }, errorFactory));
2540
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2541
- path: _path + "[\"typia.tag\"]",
2542
- expected: "(__type.o1 | undefined)",
2543
- value: input["typia.tag"]
2544
- }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2545
- path: _path + "[\"typia.tag\"]",
2546
- expected: "(__type.o1 | undefined)",
2547
- value: input["typia.tag"]
2548
- }, errorFactory);
2549
- const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2550
- path: _path + ".target",
2551
- expected: "\"number\"",
2552
- value: input.target
2553
- }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2554
- path: _path + ".kind",
2555
- expected: "\"minimum\"",
2556
- value: input.kind
2557
- }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2558
- path: _path + ".value",
2559
- expected: "0",
2560
- value: input.value
2561
- }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2562
- path: _path + ".validate",
2563
- expected: "\"0 <= $input\"",
2564
- value: input.validate
2565
- }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2566
- path: _path + ".exclusive",
2567
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2568
- value: input.exclusive
2569
- }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2570
- path: _path + ".exclusive",
2571
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2572
- value: input.exclusive
2573
- }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2574
- path: _path + ".exclusive[0]",
2575
- expected: "\"minimum\"",
2576
- value: input.exclusive[0]
2577
- }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2578
- path: _path + ".exclusive[1]",
2579
- expected: "\"exclusiveMinimum\"",
2580
- value: input.exclusive[1]
2581
- }, errorFactory))) || $guard(_exceptionable, {
2582
- path: _path + ".exclusive",
2583
- expected: "[\"minimum\", \"exclusiveMinimum\"]",
2584
- value: input.exclusive
2585
- }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2586
- path: _path + ".schema",
2587
- expected: "__type.o2",
2588
- value: input.schema
2589
- }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2590
- path: _path + ".schema",
2591
- expected: "__type.o2",
2592
- value: input.schema
2593
- }, errorFactory));
2594
- const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2595
- path: _path + ".minimum",
2596
- expected: "0",
2597
- value: input.minimum
2598
- }, errorFactory);
2599
- const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1936
+ const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
2600
1937
  path: _path + ".message",
2601
1938
  expected: "string",
2602
1939
  value: input.message
@@ -2624,7 +1961,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2624
1961
  path: _path + ".headers",
2625
1962
  expected: "(Record<string, string> | undefined)",
2626
1963
  value: input.headers
2627
- }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1964
+ }, errorFactory)) && $ao3(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2628
1965
  path: _path + ".headers",
2629
1966
  expected: "(Record<string, string> | undefined)",
2630
1967
  value: input.headers
@@ -2632,7 +1969,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2632
1969
  path: _path + ".data",
2633
1970
  expected: "(object | undefined)",
2634
1971
  value: input.data
2635
- }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1972
+ }, errorFactory)) && $ao4(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2636
1973
  path: _path + ".data",
2637
1974
  expected: "(object | undefined)",
2638
1975
  value: input.data
@@ -2640,7 +1977,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2640
1977
  path: _path + ".cause",
2641
1978
  expected: "(NxtError | null | undefined)",
2642
1979
  value: input.cause
2643
- }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1980
+ }, errorFactory)) && $ao2(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2644
1981
  path: _path + ".cause",
2645
1982
  expected: "(NxtError | null | undefined)",
2646
1983
  value: input.cause
@@ -2652,7 +1989,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2652
1989
  path: _path + ".errors[" + _index7 + "]",
2653
1990
  expected: "NxtError",
2654
1991
  value: elem
2655
- }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1992
+ }, errorFactory)) && $ao2(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2656
1993
  path: _path + ".errors[" + _index7 + "]",
2657
1994
  expected: "NxtError",
2658
1995
  value: elem
@@ -2661,7 +1998,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2661
1998
  expected: "(Array<NxtError> | null | undefined)",
2662
1999
  value: input.errors
2663
2000
  }, errorFactory));
2664
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2001
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2665
2002
  const value = input[key];
2666
2003
  if (undefined === value)
2667
2004
  return true;
@@ -2671,7 +2008,7 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2671
2008
  value: value
2672
2009
  }, errorFactory);
2673
2010
  });
2674
- const $ao7 = (input, _path, _exceptionable = true) => true;
2011
+ const $ao4 = (input, _path, _exceptionable = true) => true;
2675
2012
  return ("object" === typeof input && null !== input || $guard(true, {
2676
2013
  path: _path + "",
2677
2014
  expected: "FileStats",
@@ -2685,81 +2022,30 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
2685
2022
  return input;
2686
2023
  }; const stringify = input => {
2687
2024
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
2688
- const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2689
- const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2690
- const $io4 = input => 0 === input.minimum;
2691
- const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2692
- const $io6 = input => Object.keys(input).every(key => {
2025
+ const $io2 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
2026
+ const $io3 = input => Object.keys(input).every(key => {
2693
2027
  const value = input[key];
2694
2028
  if (undefined === value)
2695
2029
  return true;
2696
2030
  return "string" === typeof value;
2697
2031
  });
2698
- const $io7 = input => true;
2032
+ const $io4 = input => true;
2699
2033
  const $string = __typia.json.createAssertStringify.string;
2700
2034
  const $throws = __typia.json.createAssertStringify.throws;
2701
2035
  const $tail = __typia.json.createAssertStringify.tail;
2702
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2036
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2703
2037
  if (Array.isArray(input.error))
2704
- return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
2038
+ return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2705
2039
  if ("object" === typeof input.error && null !== input.error)
2706
- return $so5(input.error);
2040
+ return $so2(input.error);
2707
2041
  $throws({
2708
2042
  expected: "(Array<NxtError> | NxtError | null)",
2709
2043
  value: input.error
2710
2044
  });
2711
2045
  })() : "null"}}`;
2712
2046
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2713
- const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2714
- const $so3 = input => `{"target":${(() => {
2715
- if ("string" === typeof input.target)
2716
- return $string(input.target);
2717
- if ("string" === typeof input.target)
2718
- return "\"" + input.target + "\"";
2719
- $throws({
2720
- expected: "\"number\"",
2721
- value: input.target
2722
- });
2723
- })()},"kind":${(() => {
2724
- if ("string" === typeof input.kind)
2725
- return $string(input.kind);
2726
- if ("string" === typeof input.kind)
2727
- return "\"" + input.kind + "\"";
2728
- $throws({
2729
- expected: "\"minimum\"",
2730
- value: input.kind
2731
- });
2732
- })()},"value":${input.value},"validate":${(() => {
2733
- if ("string" === typeof input.validate)
2734
- return $string(input.validate);
2735
- if ("string" === typeof input.validate)
2736
- return "\"" + input.validate + "\"";
2737
- $throws({
2738
- expected: "\"0 <= $input\"",
2739
- value: input.validate
2740
- });
2741
- })()},"exclusive":${`[${(() => {
2742
- if ("string" === typeof input.exclusive[0])
2743
- return $string(input.exclusive[0]);
2744
- if ("string" === typeof input.exclusive[0])
2745
- return "\"" + input.exclusive[0] + "\"";
2746
- $throws({
2747
- expected: "\"minimum\"",
2748
- value: input.exclusive[0]
2749
- });
2750
- })()},${(() => {
2751
- if ("string" === typeof input.exclusive[1])
2752
- return $string(input.exclusive[1]);
2753
- if ("string" === typeof input.exclusive[1])
2754
- return "\"" + input.exclusive[1] + "\"";
2755
- $throws({
2756
- expected: "\"exclusiveMinimum\"",
2757
- value: input.exclusive[1]
2758
- });
2759
- })()}]`},"schema":${$so4(input.schema)}}`;
2760
- const $so4 = input => `{"minimum":${input.minimum}}`;
2761
- const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2762
- const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2047
+ const $so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so2(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so2(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2048
+ const $so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2763
2049
  return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
2764
2050
  return $so0(input);
2765
2051
  }; return stringify(assert(input, errorFactory)); };