import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
import * as __typia_transform__jsonStringifyNumber from "typia/lib/internal/_jsonStringifyNumber";
import * as __typia_transform__jsonStringifyString from "typia/lib/internal/_jsonStringifyString";
import * as __typia_transform__throwTypeGuardError from "typia/lib/internal/_throwTypeGuardError";
import * as __typia_transform__jsonStringifyTail from "typia/lib/internal/_jsonStringifyTail";
import typia from 'typia';
export const assertFileRef = (() => { const _io0 = 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); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".file",
    expected: "(string | undefined)",
    value: input.file
}, _errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".offset",
    expected: "(number | undefined)",
    value: input.offset
}, _errorFactory)) && (undefined === input.start || "number" === typeof input.start || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".start",
    expected: "(number | undefined)",
    value: input.start
}, _errorFactory)) && (undefined === input.end || "number" === typeof input.end || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".end",
    expected: "(number | undefined)",
    value: input.end
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
    if (false === __is(input)) {
        _errorFactory = errorFactory;
        ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileRef",
            value: input
        }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileRef",
            value: input
        }, _errorFactory))(input, "$input", true);
    }
    return input;
}; })();
export const assertFileRefs = (() => { const _io0 = 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); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".file",
    expected: "(string | undefined)",
    value: input.file
}, _errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".offset",
    expected: "(number | undefined)",
    value: input.offset
}, _errorFactory)) && (undefined === input.start || "number" === typeof input.start || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".start",
    expected: "(number | undefined)",
    value: input.start
}, _errorFactory)) && (undefined === input.end || "number" === typeof input.end || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".end",
    expected: "(number | undefined)",
    value: input.end
}, _errorFactory)); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
    if (false === __is(input)) {
        _errorFactory = errorFactory;
        ((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileRefs",
            value: input
        }, _errorFactory)) && input.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "[" + _index2 + "]",
            expected: "FileRef",
            value: elem
        }, _errorFactory)) && _ao0(elem, _path + "[" + _index2 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "[" + _index2 + "]",
            expected: "FileRef",
            value: elem
        }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileRefs",
            value: input
        }, _errorFactory))(input, "$input", true);
    }
    return input;
}; })();
export const assertFile = (() => { const _io0 = input => "string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "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.encoding && ("string" === typeof input.hash && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "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)))); 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); 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))); const _io3 = input => Object.keys(input).every(key => {
    const value = input[key];
    if (undefined === value)
        return true;
    return "string" === typeof value;
}); const _io4 = input => true; const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id && (RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".id",
    expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
    value: input.id
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".id",
    expected: "(string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">)",
    value: input.id
}, _errorFactory)) && (null === input.size || "number" === typeof input.size && (0 <= input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "number & Minimum<0>",
    value: input.size
}, _errorFactory)) && (__typia_transform__isTypeUint64._isTypeUint64(input.size) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "number & Type<\"uint64\">",
    value: input.size
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
    value: input.size
}, _errorFactory)) && ("boolean" === typeof input.seekable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".seekable",
    expected: "boolean",
    value: input.seekable
}, _errorFactory)) && ("boolean" === typeof input.deleted || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".deleted",
    expected: "boolean",
    value: input.deleted
}, _errorFactory)) && ((Array.isArray(input.refs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs",
    expected: "FileRefs",
    value: input.refs
}, _errorFactory)) && input.refs.every((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs[" + _index5 + "]",
    expected: "FileRef",
    value: elem
}, _errorFactory)) && _ao1(elem, _path + ".refs[" + _index5 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs[" + _index5 + "]",
    expected: "FileRef",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs",
    expected: "FileRefs",
    value: input.refs
}, _errorFactory)) && ((Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags",
    expected: "Array<string>",
    value: input.tags
}, _errorFactory)) && input.tags.every((elem, _index6) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags[" + _index6 + "]",
    expected: "string",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags",
    expected: "Array<string>",
    value: input.tags
}, _errorFactory)) && ("string" === typeof input.resumable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".resumable",
    expected: "string",
    value: input.resumable
}, _errorFactory)) && ("string" === typeof input.mimeType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".mimeType",
    expected: "string",
    value: input.mimeType
}, _errorFactory)) && ("string" === typeof input.encoding || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".encoding",
    expected: "string",
    value: input.encoding
}, _errorFactory)) && ("string" === typeof input.hash && (RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".hash",
    expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
    value: input.hash
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".hash",
    expected: "(string & Pattern<\"^([A-Fa-f0-9]{32})?$\">)",
    value: input.hash
}, _errorFactory)) && ("number" === typeof input.btime && (0 <= input.btime || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "number & Minimum<0>",
    value: input.btime
}, _errorFactory)) && (__typia_transform__isTypeUint64._isTypeUint64(input.btime) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "number & Type<\"uint64\">",
    value: input.btime
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "(number & Minimum<0> & Type<\"uint64\">)",
    value: input.btime
}, _errorFactory)) && ("boolean" === typeof input.completed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".completed",
    expected: "boolean",
    value: input.completed
}, _errorFactory)) && ((undefined !== input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index7) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error[" + _index7 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) && _ao2(elem, _path + ".error[" + _index7 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error[" + _index7 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) || "object" === typeof input.error && null !== input.error && _ao2(input.error, _path + ".error", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory))); const _ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".file",
    expected: "(string | undefined)",
    value: input.file
}, _errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".offset",
    expected: "(number | undefined)",
    value: input.offset
}, _errorFactory)) && (undefined === input.start || "number" === typeof input.start || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".start",
    expected: "(number | undefined)",
    value: input.start
}, _errorFactory)) && (undefined === input.end || "number" === typeof input.end || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".end",
    expected: "(number | undefined)",
    value: input.end
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".message",
    expected: "string",
    value: input.message
}, _errorFactory)) && (undefined === input.type || "string" === typeof input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".type",
    expected: "(string | undefined)",
    value: input.type
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".code",
    expected: "(string | undefined)",
    value: input.code
}, _errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".exitCode",
    expected: "(number | undefined)",
    value: input.exitCode
}, _errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".signalCode",
    expected: "(number | undefined)",
    value: input.signalCode
}, _errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".statusCode",
    expected: "(number | undefined)",
    value: input.statusCode
}, _errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".headers",
    expected: "(Record<string, string> | undefined)",
    value: input.headers
}, _errorFactory)) && _ao3(input.headers, _path + ".headers", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".headers",
    expected: "(Record<string, string> | undefined)",
    value: input.headers
}, _errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".data",
    expected: "(object | undefined)",
    value: input.data
}, _errorFactory)) && _ao4(input.data, _path + ".data", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".data",
    expected: "(object | undefined)",
    value: input.data
}, _errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".cause",
    expected: "(NxtError | null | undefined)",
    value: input.cause
}, _errorFactory)) && _ao2(input.cause, _path + ".cause", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".cause",
    expected: "(NxtError | null | undefined)",
    value: input.cause
}, _errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors",
    expected: "(Array<NxtError> | null | undefined)",
    value: input.errors
}, _errorFactory)) && input.errors.every((elem, _index8) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors[" + _index8 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) && _ao2(elem, _path + ".errors[" + _index8 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors[" + _index8 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors",
    expected: "(Array<NxtError> | null | undefined)",
    value: input.errors
}, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
    const value = input[key];
    if (undefined === value)
        return true;
    return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
        method: "typia.createAssert",
        path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
        expected: "string",
        value: value
    }, _errorFactory);
}); const _ao4 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
    if (false === __is(input)) {
        _errorFactory = errorFactory;
        ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "File",
            value: input
        }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "File",
            value: input
        }, _errorFactory))(input, "$input", true);
    }
    return input;
}; })();
export const assertFileStats = (() => { const _io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && __typia_transform__isTypeUint64._isTypeUint64(input.position))) && (null === input.uploading || "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.locations) && input.locations.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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && "boolean" === typeof input.complete && ("string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "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.encoding && ("string" === typeof input.hash && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "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)))); 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); 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))); const _io3 = input => Object.keys(input).every(key => {
    const value = input[key];
    if (undefined === value)
        return true;
    return "string" === typeof value;
}); const _io4 = input => true; const _ao0 = (input, _path, _exceptionable = true) => (null === input.position || "number" === typeof input.position && (0 <= input.position || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".position",
    expected: "number & Minimum<0>",
    value: input.position
}, _errorFactory)) && (__typia_transform__isTypeUint64._isTypeUint64(input.position) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".position",
    expected: "number & Type<\"uint64\">",
    value: input.position
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".position",
    expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
    value: input.position
}, _errorFactory)) && (null === input.uploading || "boolean" === typeof input.uploading || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".uploading",
    expected: "(boolean | null)",
    value: input.uploading
}, _errorFactory)) && ((Array.isArray(input.zones) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".zones",
    expected: "Array<string>",
    value: input.zones
}, _errorFactory)) && input.zones.every((elem, _index9) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".zones[" + _index9 + "]",
    expected: "string",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".zones",
    expected: "Array<string>",
    value: input.zones
}, _errorFactory)) && ((Array.isArray(input.replicas) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".replicas",
    expected: "Array<string>",
    value: input.replicas
}, _errorFactory)) && input.replicas.every((elem, _index10) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".replicas[" + _index10 + "]",
    expected: "string",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".replicas",
    expected: "Array<string>",
    value: input.replicas
}, _errorFactory)) && ((Array.isArray(input.locations) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".locations",
    expected: "Array<string>",
    value: input.locations
}, _errorFactory)) && input.locations.every((elem, _index11) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".locations[" + _index11 + "]",
    expected: "string",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".locations",
    expected: "Array<string>",
    value: input.locations
}, _errorFactory)) && ((Array.isArray(input.ranges) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges",
    expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
    value: input.ranges
}, _errorFactory)) && input.ranges.every((elem, _index12) => (Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "]",
    expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
    value: elem
}, _errorFactory)) && ((elem.length === 2 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "]",
    expected: "[(number & Minimum<0>), (number & Minimum<0>)]",
    value: elem
}, _errorFactory)) && ("number" === typeof elem[0] && (0 <= elem[0] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "][0]",
    expected: "number & Minimum<0>",
    value: elem[0]
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "][0]",
    expected: "(number & Minimum<0>)",
    value: elem[0]
}, _errorFactory)) && ("number" === typeof elem[1] && (0 <= elem[1] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "][1]",
    expected: "number & Minimum<0>",
    value: elem[1]
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "][1]",
    expected: "(number & Minimum<0>)",
    value: elem[1]
}, _errorFactory))) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges[" + _index12 + "]",
    expected: "[start: number & Minimum<0>, end: number & Minimum<0>]",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".ranges",
    expected: "Array<[start: number & Minimum<0>, end: number & Minimum<0>]>",
    value: input.ranges
}, _errorFactory)) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".progress",
    expected: "number & Minimum<0>",
    value: input.progress
}, _errorFactory)) && (input.progress <= 1 || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".progress",
    expected: "number & Maximum<1>",
    value: input.progress
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".progress",
    expected: "((number & Minimum<0> & Maximum<1>) | undefined)",
    value: input.progress
}, _errorFactory)) && (undefined === input.speed || "number" === typeof input.speed && (0 <= input.speed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".speed",
    expected: "number & Minimum<0>",
    value: input.speed
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".speed",
    expected: "((number & Minimum<0>) | undefined)",
    value: input.speed
}, _errorFactory)) && ("boolean" === typeof input.complete || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".complete",
    expected: "boolean",
    value: input.complete
}, _errorFactory)) && ("string" === typeof input.id && (RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".id",
    expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
    value: input.id
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".id",
    expected: "(string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">)",
    value: input.id
}, _errorFactory)) && (null === input.size || "number" === typeof input.size && (0 <= input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "number & Minimum<0>",
    value: input.size
}, _errorFactory)) && (__typia_transform__isTypeUint64._isTypeUint64(input.size) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "number & Type<\"uint64\">",
    value: input.size
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".size",
    expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
    value: input.size
}, _errorFactory)) && ("boolean" === typeof input.seekable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".seekable",
    expected: "boolean",
    value: input.seekable
}, _errorFactory)) && ("boolean" === typeof input.deleted || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".deleted",
    expected: "boolean",
    value: input.deleted
}, _errorFactory)) && ((Array.isArray(input.refs) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs",
    expected: "FileRefs",
    value: input.refs
}, _errorFactory)) && input.refs.every((elem, _index13) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs[" + _index13 + "]",
    expected: "FileRef",
    value: elem
}, _errorFactory)) && _ao1(elem, _path + ".refs[" + _index13 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs[" + _index13 + "]",
    expected: "FileRef",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".refs",
    expected: "FileRefs",
    value: input.refs
}, _errorFactory)) && ((Array.isArray(input.tags) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags",
    expected: "Array<string>",
    value: input.tags
}, _errorFactory)) && input.tags.every((elem, _index14) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags[" + _index14 + "]",
    expected: "string",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".tags",
    expected: "Array<string>",
    value: input.tags
}, _errorFactory)) && ("string" === typeof input.resumable || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".resumable",
    expected: "string",
    value: input.resumable
}, _errorFactory)) && ("string" === typeof input.mimeType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".mimeType",
    expected: "string",
    value: input.mimeType
}, _errorFactory)) && ("string" === typeof input.encoding || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".encoding",
    expected: "string",
    value: input.encoding
}, _errorFactory)) && ("string" === typeof input.hash && (RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".hash",
    expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
    value: input.hash
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".hash",
    expected: "(string & Pattern<\"^([A-Fa-f0-9]{32})?$\">)",
    value: input.hash
}, _errorFactory)) && ("number" === typeof input.btime && (0 <= input.btime || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "number & Minimum<0>",
    value: input.btime
}, _errorFactory)) && (__typia_transform__isTypeUint64._isTypeUint64(input.btime) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "number & Type<\"uint64\">",
    value: input.btime
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".btime",
    expected: "(number & Minimum<0> & Type<\"uint64\">)",
    value: input.btime
}, _errorFactory)) && ("boolean" === typeof input.completed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".completed",
    expected: "boolean",
    value: input.completed
}, _errorFactory)) && ((undefined !== input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index15) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error[" + _index15 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) && _ao2(elem, _path + ".error[" + _index15 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error[" + _index15 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) || "object" === typeof input.error && null !== input.error && _ao2(input.error, _path + ".error", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".error",
    expected: "(Array<NxtError> | NxtError | null)",
    value: input.error
}, _errorFactory))); const _ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".file",
    expected: "(string | undefined)",
    value: input.file
}, _errorFactory)) && (undefined === input.offset || "number" === typeof input.offset || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".offset",
    expected: "(number | undefined)",
    value: input.offset
}, _errorFactory)) && (undefined === input.start || "number" === typeof input.start || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".start",
    expected: "(number | undefined)",
    value: input.start
}, _errorFactory)) && (undefined === input.end || "number" === typeof input.end || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".end",
    expected: "(number | undefined)",
    value: input.end
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".message",
    expected: "string",
    value: input.message
}, _errorFactory)) && (undefined === input.type || "string" === typeof input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".type",
    expected: "(string | undefined)",
    value: input.type
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".code",
    expected: "(string | undefined)",
    value: input.code
}, _errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".exitCode",
    expected: "(number | undefined)",
    value: input.exitCode
}, _errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".signalCode",
    expected: "(number | undefined)",
    value: input.signalCode
}, _errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".statusCode",
    expected: "(number | undefined)",
    value: input.statusCode
}, _errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".headers",
    expected: "(Record<string, string> | undefined)",
    value: input.headers
}, _errorFactory)) && _ao3(input.headers, _path + ".headers", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".headers",
    expected: "(Record<string, string> | undefined)",
    value: input.headers
}, _errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".data",
    expected: "(object | undefined)",
    value: input.data
}, _errorFactory)) && _ao4(input.data, _path + ".data", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".data",
    expected: "(object | undefined)",
    value: input.data
}, _errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".cause",
    expected: "(NxtError | null | undefined)",
    value: input.cause
}, _errorFactory)) && _ao2(input.cause, _path + ".cause", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".cause",
    expected: "(NxtError | null | undefined)",
    value: input.cause
}, _errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors",
    expected: "(Array<NxtError> | null | undefined)",
    value: input.errors
}, _errorFactory)) && input.errors.every((elem, _index16) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors[" + _index16 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) && _ao2(elem, _path + ".errors[" + _index16 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors[" + _index16 + "]",
    expected: "NxtError",
    value: elem
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
    method: "typia.createAssert",
    path: _path + ".errors",
    expected: "(Array<NxtError> | null | undefined)",
    value: input.errors
}, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
    const value = input[key];
    if (undefined === value)
        return true;
    return "string" === typeof value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
        method: "typia.createAssert",
        path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
        expected: "string",
        value: value
    }, _errorFactory);
}); const _ao4 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
    if (false === __is(input)) {
        _errorFactory = errorFactory;
        ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileStats",
            value: input
        }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
            method: "typia.createAssert",
            path: _path + "",
            expected: "FileStats",
            value: input
        }, _errorFactory))(input, "$input", true);
    }
    return input;
}; })();
export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.progress)) : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.speed)) : undefined},`}"position":${null !== input.position ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.position)) : "null"},"uploading":${null !== input.uploading ? String(input.uploading) : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(elem[0]))},${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(elem[1]))}]`).join(",")}]`},"complete":${String(input.complete)},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)},"size":${null !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : "null"},"seekable":${String(input.seekable)},"deleted":${String(input.deleted)},"refs":${`[${input.refs.map(elem => _so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.btime))},"completed":${String(input.completed)},"error":${null !== input.error ? (() => {
    if (Array.isArray(input.error))
        return `[${input.error.map(elem => _so2(elem)).join(",")}]`;
    if ("object" === typeof input.error && null !== input.error)
        return _so2(input.error);
    __typia_transform__throwTypeGuardError._throwTypeGuardError({
        method: "typia.json.createStringify",
        expected: "(Array<NxtError> | NxtError | null)",
        value: input.error
    });
})() : "null"}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? __typia_transform__jsonStringifyString._jsonStringifyString(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset)) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.start)) : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.end)) : undefined}`}`)}}`; const _so2 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? __typia_transform__jsonStringifyString._jsonStringifyString(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.exitCode)) : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.signalCode)) : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.statusCode)) : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? _so3(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? _so4(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":${__typia_transform__jsonStringifyString._jsonStringifyString(input.message)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
    return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => "{}"; 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); 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))); const _io3 = input => Object.keys(input).every(key => {
    const value = input[key];
    if (undefined === value)
        return true;
    return "string" === typeof value;
}); const _io4 = input => true; return input => _so0(input); })();
