2026-07-25 08:10:48 +00:00
// Module ID: 12026
// Function ID: 93490
2026-07-23 10:11:24 +00:00
// Name: cached
2026-07-25 08:10:48 +00:00
// Dependencies: [12015]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 12026 (cached)
2026-07-23 10:11:24 +00:00
const self = this ;
let self2 = this ;
if ( this ) {
self2 = self . _ _createBinding ;
}
if ( self2 ) {
let _ _setModuleDefault = self ;
if ( self ) {
_ _setModuleDefault = self . _ _setModuleDefault ;
}
if ( _ _setModuleDefault ) {
let fn = self ;
if ( self ) {
fn = self . _ _importStar ;
}
if ( ! fn ) {
fn = ( _ _esModule ) => {
if ( _ _esModule ) {
if ( _ _esModule . _ _esModule ) {
return _ _esModule ;
}
}
const obj = { } ;
if ( null != _ _esModule ) {
for ( const key10009 in arg0 ) {
let tmp7 = key10009 ;
let callResult = "default" !== key10009 ;
if ( callResult ) {
let _Object = Object ;
callResult = hasOwnProperty . call ( arg0 , key10009 ) ;
}
if ( ! callResult ) {
continue ;
} else {
let tmp4 = self2 ;
let tmp5 = self2 ( obj , arg0 , key10009 ) ;
continue ;
}
continue ;
}
}
_ _setModuleDefault ( obj , _ _esModule ) ;
return obj ;
} ;
}
const _Object3 = Object ;
let obj = { value : true } ;
exports . default = function default _1 ( ) {
return { localeError : error ( ) } ;
} ;
let closure _2 = fn ( require ( "cached" ) ) ;
function error ( ) {
function getSizing ( arg0 ) {
let tmp2 = null ;
if ( null != table [ arg0 ] ) {
tmp2 = tmp ;
}
return tmp2 ;
}
2026-07-25 08:10:48 +00:00
let closure _0 = { string : { unit : "car\u00E0cters" , verb : "contenir" } , file : { unit : "bytes" , verb : "contenir" } , array : { unit : "elements" , verb : "contenir" } , set : { unit : "elements" , verb : "contenir" } } ;
let closure _1 = { regex : "entrada" , email : "adre\u00E7a electr\u00F2nica" , 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 : "data i hora ISO" , date : "data ISO" , time : "hora ISO" , duration : "durada ISO" , ipv4 : "adre\u00E7a IPv4" , ipv6 : "adre\u00E7a IPv6" , cidrv4 : "rang IPv4" , cidrv6 : "rang IPv6" , base64 : "cadena codificada en base64" , base64url : "cadena codificada en base64url" , json _string : "cadena JSON" , e164 : "n\u00FAmero E.164" , jwt : "JWT" , template _literal : "entrada" } ;
let closure _2 = { nan : "NaN" } ;
2026-07-23 10:11:24 +00:00
return ( code ) => {
let minimum ;
let origin ;
code = code . code ;
if ( "invalid_type" === code ) {
let expected = closure _2 [ code . expected ] ;
if ( null == expected ) {
expected = code . expected ;
}
const parsedTypeResult = closure _2 . parsedType ( code . input ) ;
let tmp53 = parsedTypeResult ;
if ( null != closure _2 [ parsedTypeResult ] ) {
tmp53 = tmp52 ;
}
if ( obj . test ( code . expected ) ) {
const _HermesInternal17 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined = "Tipus inv\u00E0lid: s'esperava instanceof " + code . expected + ", s'ha rebut " + tmp53 ;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal16 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined = "Tipus inv\u00E0lid: s'esperava " + expected + ", s'ha rebut " + tmp53 ;
2026-07-23 10:11:24 +00:00
}
return combined ;
} else if ( "invalid_value" === code ) {
if ( 1 === code . values . length ) {
const _HermesInternal15 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined1 = "Valor inv\u00E0lid: s'esperava " + closure _2 . stringifyPrimitive ( code . values [ 0 ] ) ;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal14 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined1 = "Opci\u00F3 inv\u00E0lida: s'esperava una de " + closure _2 . joinValues ( code . values , " o " ) ;
2026-07-23 10:11:24 +00:00
}
return combined1 ;
} else if ( "too_big" === code ) {
2026-07-25 08:10:48 +00:00
let str33 = "menys de" ;
2026-07-23 10:11:24 +00:00
if ( code . inclusive ) {
2026-07-25 08:10:48 +00:00
str33 = "com a m\u00E0xim" ;
2026-07-23 10:11:24 +00:00
}
const tmp28 = getSizing ( code . origin ) ;
const origin2 = code . origin ;
2026-07-25 08:10:48 +00:00
let str34 = "el valor" ;
2026-07-23 10:11:24 +00:00
if ( tmp28 ) {
if ( tmp30 ) {
2026-07-25 08:10:48 +00:00
str34 = origin2 ;
2026-07-23 10:11:24 +00:00
}
let str = code . maximum . toString ( ) ;
const unit = tmp28 . unit ;
2026-07-25 08:10:48 +00:00
let str40 = "elements" ;
2026-07-23 10:11:24 +00:00
if ( null != unit ) {
2026-07-25 08:10:48 +00:00
str40 = unit ;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal13 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined2 = "Massa gran: s'esperava que " + str34 + " contingu\u00E9s " + str33 + " " + str + " " + str40 ;
const str39 = code . maximum ;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
let tmp31 = str34 ;
2026-07-23 10:11:24 +00:00
if ( tmp30 ) {
tmp31 = origin2 ;
}
const _HermesInternal12 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined2 = "Massa gran: s'esperava que " + tmp31 + " fos " + str33 + " " + code . maximum . toString ( ) ;
const str35 = code . maximum ;
2026-07-23 10:11:24 +00:00
}
return combined2 ;
} else if ( "too_small" === code ) {
2026-07-25 08:10:48 +00:00
let str24 = "m\u00E9s de" ;
2026-07-23 10:11:24 +00:00
if ( code . inclusive ) {
2026-07-25 08:10:48 +00:00
str24 = "com a m\u00EDnim" ;
2026-07-23 10:11:24 +00:00
}
const tmp17 = getSizing ( code . origin ) ;
( { origin , minimum } = code ) ;
const str1 = minimum . toString ( ) ;
if ( tmp17 ) {
const _HermesInternal11 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined3 = "Massa petit: s'esperava que " + origin + " contingu\u00E9s " + str24 + " " + str1 + " " + tmp17 . unit ;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal10 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined3 = "Massa petit: s'esperava que " + origin + " fos " + str24 + " " + str1 ;
2026-07-23 10:11:24 +00:00
}
return combined3 ;
} else if ( "invalid_format" === code ) {
if ( "starts_with" === code . format ) {
const _HermesInternal9 = HermesInternal ;
2026-07-25 08:10:48 +00:00
let combined4 = "Format inv\u00E0lid: ha de comen\u00E7ar amb \"" + code . prefix + "\"" ;
2026-07-23 10:11:24 +00:00
} else if ( "ends_with" === code . format ) {
const _HermesInternal8 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined4 = "Format inv\u00E0lid: ha d'acabar amb \"" + code . suffix + "\"" ;
2026-07-23 10:11:24 +00:00
} else if ( "includes" === code . format ) {
const _HermesInternal7 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined4 = "Format inv\u00E0lid: ha d'incloure \"" + code . includes + "\"" ;
2026-07-23 10:11:24 +00:00
} else if ( "regex" === code . format ) {
const _HermesInternal6 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined4 = "Format inv\u00E0lid: ha de coincidir amb el patr\u00F3 " + code . pattern ;
2026-07-23 10:11:24 +00:00
} else {
let format = table2 [ code . format ] ;
if ( null == format ) {
format = code . format ;
}
const _HermesInternal5 = HermesInternal ;
2026-07-25 08:10:48 +00:00
combined4 = "Format inv\u00E0lid per a " + format ;
2026-07-23 10:11:24 +00:00
}
return combined4 ;
} else if ( "not_multiple_of" === code ) {
const _HermesInternal4 = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "N\u00FAmero inv\u00E0lid: ha de ser m\u00FAltiple de " + code . divisor ;
2026-07-23 10:11:24 +00:00
} else if ( "unrecognized_keys" === code ) {
2026-07-25 08:10:48 +00:00
let str7 = "" ;
2026-07-23 10:11:24 +00:00
let str8 = "" ;
if ( code . keys . length > 1 ) {
2026-07-25 08:10:48 +00:00
str8 = "s" ;
2026-07-23 10:11:24 +00:00
}
if ( code . keys . length > 1 ) {
2026-07-25 08:10:48 +00:00
str7 = "s" ;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal3 = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "Clau" + str8 + " no reconeguda" + str7 + ": " + closure _2 . joinValues ( code . keys , ", " ) ;
2026-07-23 10:11:24 +00:00
} else {
str = "invalid_key" ;
if ( "invalid_key" === code ) {
const _HermesInternal2 = HermesInternal ;
2026-07-25 08:10:48 +00:00
return "Clau inv\u00E0lida a " + code . origin ;
2026-07-23 10:11:24 +00:00
} else {
2026-07-25 08:10:48 +00:00
if ( "invalid_union" !== code ) {
if ( "invalid_element" === code ) {
const _HermesInternal = HermesInternal ;
return "Element inv\u00E0lid a " + code . origin ;
}
}
return "Entrada inv\u00E0lida" ;
2026-07-23 10:11:24 +00:00
}
}
} ;
}
module . exports = exports . default ;
} else {
const _Object2 = Object ;
}
} else {
let _Object = Object ;
}