{"version":3,"file":"_randomFormatPassword.mjs","names":[],"sources":["../../src/internal/_randomFormatPassword.ts"],"sourcesContent":["import { _randomString } from \"./_randomString\";\nimport { _ILengthProps } from \"./_randomStringLength\";\n\n/**\n * Generate a password, which is any string within the bounds.\n *\n * Produces lowercase sample data for the documentation-only password format.\n * This helper uses the platform's Math.random source, without a password\n * strength or cryptographic randomness contract. Inclusive code-point bounds\n * are forwarded to the string generator; the default length is four to 16.\n *\n * @evidence contracts/common.md#principled-implementation The password format has no grammar, so any string within the bounds is valid; the generator draws a random lowercase string of four to sixteen characters unless a bound is given.\n * @evidence contracts/common.md#clear-and-simple-design One expression over the string generator.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The format is documentation-only.\n * @evidence contracts/common.md#meaningful-documentation Native prose states the sample alphabet/default length, forwarded code-point bounds and absence of strength or cryptographic randomness guarantees.\n */\nexport const _randomFormatPassword = (props?: _ILengthProps): string =>\n  _randomString(\n    props?.minLength === undefined && props?.maxLength === undefined\n      ? { type: \"string\", minLength: 4, maxLength: 16 }\n      : {\n          type: \"string\",\n          minLength: props?.minLength,\n          maxLength: props?.maxLength,\n        },\n  );\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAa,yBAAyB,UACpC,cACE,OAAO,cAAc,KAAA,KAAa,OAAO,cAAc,KAAA,IACnD;CAAE,MAAM;CAAU,WAAW;CAAG,WAAW;AAAG,IAC9C;CACE,MAAM;CACN,WAAW,OAAO;CAClB,WAAW,OAAO;AACpB,CACN"}