// Metro module 12098 (f12099). import * as _mergeDefs from "./mergeDefs"; const r2 = (this ? this.__createBinding : this) || (Object.create ? function(a0, a1, a2, a3) { const r6 = a3 === void 0 ? a2 : a3; let r9 = Object.getOwnPropertyDescriptor(a1, a2); if (!(r9 ? !("get" in r9 ? !a1.__esModule : r9.writable || r9.configurable) : r9)) { r9 = { enumerable: true, get: function get() { return a1[a2]; } }; } Object.defineProperty(a0, r6, r9); } : function(a0, a1, a2, a3) { a0[a3 === void 0 ? a2 : a3] = a1[a2]; }); let c8330_2, error; let c8330_0 = r2; let c8330_1 = (this ? this.__setModuleDefault : this) || (Object.create ? function(a0, a1) { Object.defineProperty(a0, "default", { enumerable: true, value: a1 }); } : function(a0, a1) { a0.default = a1; }); const r5 = (this ? this.__importStar : this) || function(a0) { if (a0 && a0.__esModule) { return a0; } const r15 = {}; if (a0 != null) { for (const key in a0) { if (key !== "default" && Object.prototype.hasOwnProperty.call(a0, key)) { c8330_0(r15, a0, key); } } } c8330_1(r15, a0); return r15; }; export default function default_1() { let c19528_0 = { string: { unit: "characters", verb: "to have" }, file: { unit: "bytes", verb: "to have" }, array: { unit: "items", verb: "to have" }, set: { unit: "items", verb: "to have" }, map: { unit: "entries", verb: "to have" } }; let c19528_1 = { regex: "input", email: "email address", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datetime", date: "ISO date", time: "ISO time", duration: "ISO duration", ipv4: "IPv4 address", ipv6: "IPv6 address", mac: "MAC address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded string", base64url: "base64url-encoded string", json_string: "JSON string", e164: "E.164 number", jwt: "JWT", template_literal: "input" }; let c19528_2 = { nan: "NaN" }; return { localeError: (a0) => { let r65, r124; L53: { switch (a0.code) { case "invalid_type": let r165 = c19528_2[a0.expected]; if (r165 == null) { r165 = a0.expected; } const r171 = c8330_2.parsedType(a0.input); let r172 = c19528_2[r171]; if (r172 == null) { r172 = r171; } return `Invalid input: expected ${r165}, received ${r172}`; case "invalid_value": return a0.values.length === 1 ? `Invalid input: expected ${c8330_2.stringifyPrimitive(a0.values[0])}` : `Invalid option: expected one of ${c8330_2.joinValues(a0.values, "|")}`; case "too_big": const r108 = a0.inclusive ? "<=" : "<"; let r111 = c19528_0[a0.origin]; if (r111 == null) { r111 = null; } let origin2 = a0.origin; if (r111) { if (origin2 == null) { origin2 = "value"; } const r127 = a0.maximum.toString(); let unit = r111.unit; if (unit == null) { unit = "elements"; } r124 = `Too big: expected ${origin2} to have ${r108}${r127} ${unit}`; } else { r124 = `Too big: expected ${origin2 == null ? "value" : origin2} to be ${r108}${a0.maximum.toString()}`; } return r124; case "too_small": const r12 = a0.inclusive ? ">=" : ">"; let r92 = c19528_0[a0.origin]; if (r92 == null) { r92 = null; } const origin = a0.origin; const r10 = a0.minimum.toString(); return r92 ? `Too small: expected ${origin} to have ${r12}${r10} ${r92.unit}` : `Too small: expected ${origin} to be ${r12}${r10}`; case "invalid_format": if (a0.format === "starts_with") { r65 = `Invalid string: must start with "${a0.prefix}"`; } else if (a0.format === "ends_with") { r65 = `Invalid string: must end with "${a0.suffix}"`; } else if (a0.format === "includes") { r65 = `Invalid string: must include "${a0.includes}"`; } else if (a0.format === "regex") { r65 = `Invalid string: must match pattern ${a0.pattern}`; } else { let r59 = c19528_1[a0.format]; if (r59 == null) { r59 = a0.format; } r65 = `Invalid ${r59}`; } return r65; case "not_multiple_of": return `Invalid number: must be a multiple of ${a0.divisor}`; case "unrecognized_keys": return `Unrecognized key${a0.keys.length > 1 ? "s" : ""}: ${c8330_2.joinValues(a0.keys, ", ")}`; case "invalid_key": return `Invalid key in ${a0.origin}`; case "invalid_union": default: break L53; case "invalid_element": return `Invalid value in ${a0.origin}`; } } return "Invalid input"; } }; }; c8330_2 = r5(_mergeDefs); error = () => {}; module.exports = exports.default;