const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
const require_util = require('./util.cjs');
const require_checks = require('./checks.cjs');

//#region ../../node_modules/zod/v4/core/api.js
function _string(Class, params) {
	return new Class({
		type: "string",
		...require_util.normalizeParams(params)
	});
}
function _email(Class, params) {
	return new Class({
		type: "string",
		format: "email",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _guid(Class, params) {
	return new Class({
		type: "string",
		format: "guid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _uuid(Class, params) {
	return new Class({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _uuidv4(Class, params) {
	return new Class({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: false,
		version: "v4",
		...require_util.normalizeParams(params)
	});
}
function _uuidv6(Class, params) {
	return new Class({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: false,
		version: "v6",
		...require_util.normalizeParams(params)
	});
}
function _uuidv7(Class, params) {
	return new Class({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: false,
		version: "v7",
		...require_util.normalizeParams(params)
	});
}
function _url(Class, params) {
	return new Class({
		type: "string",
		format: "url",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _emoji(Class, params) {
	return new Class({
		type: "string",
		format: "emoji",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _nanoid(Class, params) {
	return new Class({
		type: "string",
		format: "nanoid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _cuid(Class, params) {
	return new Class({
		type: "string",
		format: "cuid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _cuid2(Class, params) {
	return new Class({
		type: "string",
		format: "cuid2",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _ulid(Class, params) {
	return new Class({
		type: "string",
		format: "ulid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _xid(Class, params) {
	return new Class({
		type: "string",
		format: "xid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _ksuid(Class, params) {
	return new Class({
		type: "string",
		format: "ksuid",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _ipv4(Class, params) {
	return new Class({
		type: "string",
		format: "ipv4",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _ipv6(Class, params) {
	return new Class({
		type: "string",
		format: "ipv6",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _cidrv4(Class, params) {
	return new Class({
		type: "string",
		format: "cidrv4",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _cidrv6(Class, params) {
	return new Class({
		type: "string",
		format: "cidrv6",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _base64(Class, params) {
	return new Class({
		type: "string",
		format: "base64",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _base64url(Class, params) {
	return new Class({
		type: "string",
		format: "base64url",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _e164(Class, params) {
	return new Class({
		type: "string",
		format: "e164",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _jwt(Class, params) {
	return new Class({
		type: "string",
		format: "jwt",
		check: "string_format",
		abort: false,
		...require_util.normalizeParams(params)
	});
}
function _isoDateTime(Class, params) {
	return new Class({
		type: "string",
		format: "datetime",
		check: "string_format",
		offset: false,
		local: false,
		precision: null,
		...require_util.normalizeParams(params)
	});
}
function _isoDate(Class, params) {
	return new Class({
		type: "string",
		format: "date",
		check: "string_format",
		...require_util.normalizeParams(params)
	});
}
function _isoTime(Class, params) {
	return new Class({
		type: "string",
		format: "time",
		check: "string_format",
		precision: null,
		...require_util.normalizeParams(params)
	});
}
function _isoDuration(Class, params) {
	return new Class({
		type: "string",
		format: "duration",
		check: "string_format",
		...require_util.normalizeParams(params)
	});
}
function _boolean(Class, params) {
	return new Class({
		type: "boolean",
		...require_util.normalizeParams(params)
	});
}
function _any(Class) {
	return new Class({ type: "any" });
}
function _unknown(Class) {
	return new Class({ type: "unknown" });
}
function _never(Class, params) {
	return new Class({
		type: "never",
		...require_util.normalizeParams(params)
	});
}
function _maxLength(maximum, params) {
	return new require_checks.$ZodCheckMaxLength({
		check: "max_length",
		...require_util.normalizeParams(params),
		maximum
	});
}
function _minLength(minimum, params) {
	return new require_checks.$ZodCheckMinLength({
		check: "min_length",
		...require_util.normalizeParams(params),
		minimum
	});
}
function _length(length, params) {
	return new require_checks.$ZodCheckLengthEquals({
		check: "length_equals",
		...require_util.normalizeParams(params),
		length
	});
}
function _regex(pattern, params) {
	return new require_checks.$ZodCheckRegex({
		check: "string_format",
		format: "regex",
		...require_util.normalizeParams(params),
		pattern
	});
}
function _lowercase(params) {
	return new require_checks.$ZodCheckLowerCase({
		check: "string_format",
		format: "lowercase",
		...require_util.normalizeParams(params)
	});
}
function _uppercase(params) {
	return new require_checks.$ZodCheckUpperCase({
		check: "string_format",
		format: "uppercase",
		...require_util.normalizeParams(params)
	});
}
function _includes(includes, params) {
	return new require_checks.$ZodCheckIncludes({
		check: "string_format",
		format: "includes",
		...require_util.normalizeParams(params),
		includes
	});
}
function _startsWith(prefix, params) {
	return new require_checks.$ZodCheckStartsWith({
		check: "string_format",
		format: "starts_with",
		...require_util.normalizeParams(params),
		prefix
	});
}
function _endsWith(suffix, params) {
	return new require_checks.$ZodCheckEndsWith({
		check: "string_format",
		format: "ends_with",
		...require_util.normalizeParams(params),
		suffix
	});
}
function _overwrite(tx) {
	return new require_checks.$ZodCheckOverwrite({
		check: "overwrite",
		tx
	});
}
function _normalize(form) {
	return _overwrite((input) => input.normalize(form));
}
function _trim() {
	return _overwrite((input) => input.trim());
}
function _toLowerCase() {
	return _overwrite((input) => input.toLowerCase());
}
function _toUpperCase() {
	return _overwrite((input) => input.toUpperCase());
}
function _array(Class, element, params) {
	return new Class({
		type: "array",
		element,
		...require_util.normalizeParams(params)
	});
}
function _refine(Class, fn, _params) {
	return new Class({
		type: "custom",
		check: "custom",
		fn,
		...require_util.normalizeParams(_params)
	});
}
function _superRefine(fn) {
	const ch = _check((payload) => {
		payload.addIssue = (issue$1) => {
			if (typeof issue$1 === "string") payload.issues.push(require_util.issue(issue$1, payload.value, ch._zod.def));
			else {
				const _issue = issue$1;
				if (_issue.fatal) _issue.continue = false;
				_issue.code ?? (_issue.code = "custom");
				_issue.input ?? (_issue.input = payload.value);
				_issue.inst ?? (_issue.inst = ch);
				_issue.continue ?? (_issue.continue = !ch._zod.def.abort);
				payload.issues.push(require_util.issue(_issue));
			}
		};
		return fn(payload.value, payload);
	});
	return ch;
}
function _check(fn, params) {
	const ch = new require_checks.$ZodCheck({
		check: "custom",
		...require_util.normalizeParams(params)
	});
	ch._zod.check = fn;
	return ch;
}

//#endregion
exports._any = _any;
exports._array = _array;
exports._base64 = _base64;
exports._base64url = _base64url;
exports._boolean = _boolean;
exports._cidrv4 = _cidrv4;
exports._cidrv6 = _cidrv6;
exports._cuid = _cuid;
exports._cuid2 = _cuid2;
exports._e164 = _e164;
exports._email = _email;
exports._emoji = _emoji;
exports._endsWith = _endsWith;
exports._guid = _guid;
exports._includes = _includes;
exports._ipv4 = _ipv4;
exports._ipv6 = _ipv6;
exports._isoDate = _isoDate;
exports._isoDateTime = _isoDateTime;
exports._isoDuration = _isoDuration;
exports._isoTime = _isoTime;
exports._jwt = _jwt;
exports._ksuid = _ksuid;
exports._length = _length;
exports._lowercase = _lowercase;
exports._maxLength = _maxLength;
exports._minLength = _minLength;
exports._nanoid = _nanoid;
exports._never = _never;
exports._normalize = _normalize;
exports._overwrite = _overwrite;
exports._refine = _refine;
exports._regex = _regex;
exports._startsWith = _startsWith;
exports._string = _string;
exports._superRefine = _superRefine;
exports._toLowerCase = _toLowerCase;
exports._toUpperCase = _toUpperCase;
exports._trim = _trim;
exports._ulid = _ulid;
exports._unknown = _unknown;
exports._uppercase = _uppercase;
exports._url = _url;
exports._uuid = _uuid;
exports._uuidv4 = _uuidv4;
exports._uuidv6 = _uuidv6;
exports._uuidv7 = _uuidv7;
exports._xid = _xid;
//# sourceMappingURL=api.cjs.map