"use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(a,e)=>{for(var r in e)s(a,r,{get:e[r],enumerable:!0})},k=(a,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of d(e))!f.call(a,i)&&i!==r&&s(a,i,{get:()=>e[i],enumerable:!(t=l(e,i))||t.enumerable});return a};var u=a=>k(s({},"__esModule",{value:!0}),a);var g={};m(g,{RandomModule:()=>p});module.exports=u(g);var c=require("../../errors/faker-error"),n=require("../../internal/deprecated"),h=require("../../internal/module-base");class p extends h.ModuleBase{word(){(0,n.deprecated)({deprecated:"faker.random.word()",proposed:"faker.lorem.word() or faker.word.sample()",since:"8.0",until:"9.0"});const e=[()=>this.faker.location.cardinalDirection(),this.faker.location.country,this.faker.location.county,()=>this.faker.location.direction(),()=>this.faker.location.ordinalDirection(),this.faker.location.state,this.faker.location.street,this.faker.color.human,this.faker.commerce.department,this.faker.commerce.product,this.faker.commerce.productAdjective,this.faker.commerce.productMaterial,this.faker.commerce.productName,this.faker.company.buzzAdjective,this.faker.company.buzzNoun,this.faker.company.buzzVerb,this.faker.company.catchPhraseAdjective,this.faker.company.catchPhraseDescriptor,this.faker.company.catchPhraseNoun,this.faker.finance.accountName,this.faker.finance.currencyName,this.faker.finance.transactionType,this.faker.hacker.abbreviation,this.faker.hacker.adjective,this.faker.hacker.ingverb,this.faker.hacker.noun,this.faker.hacker.verb,this.faker.lorem.word,this.faker.music.genre,this.faker.person.gender,this.faker.person.jobArea,this.faker.person.jobDescriptor,this.faker.person.jobTitle,this.faker.person.jobType,this.faker.person.sex,()=>this.faker.science.chemicalElement().name,()=>this.faker.science.unit().name,this.faker.vehicle.bicycle,this.faker.vehicle.color,this.faker.vehicle.fuel,this.faker.vehicle.manufacturer,this.faker.vehicle.type,this.faker.word.adjective,this.faker.word.adverb,this.faker.word.conjunction,this.faker.word.interjection,this.faker.word.noun,this.faker.word.preposition,this.faker.word.verb],r=["!","#","%","&","*",")","(","+","=",".","<",">","{","}","[","]",":",";","'",'"',"_","-"];let t="",i=0;do{const o=this.faker.helpers.arrayElement(e);try{t=o()}catch{if(i++,i>100)throw new c.FakerError("No matching word data available for the current locale");continue}}while(!t||r.some(o=>t.includes(o)));return this.faker.helpers.arrayElement(t.split(" "))}words(e={min:1,max:3}){return(0,n.deprecated)({deprecated:"faker.random.words()",proposed:"faker.lorem.words() or faker.word.words()",since:"8.0",until:"9.0"}),this.faker.helpers.multiple(this.word,{count:e}).join(" ")}locale(){throw new c.FakerError("This method has been removed. Please use `faker.helpers.objectKey(allLocales/allFakers)` instead.")}alpha(e={}){return(0,n.deprecated)({deprecated:"faker.random.alpha()",proposed:"faker.string.alpha()",since:"8.0",until:"9.0"}),typeof e=="number"?this.faker.string.alpha(e):this.faker.string.alpha({length:e.count,casing:e.casing,exclude:e.bannedChars})}alphaNumeric(e=1,r={}){return(0,n.deprecated)({deprecated:"faker.random.alphaNumeric()",proposed:"faker.string.alphanumeric()",since:"8.0",until:"9.0"}),this.faker.string.alphanumeric({length:e,exclude:r.bannedChars,casing:r.casing})}numeric(e=1,r={}){return(0,n.deprecated)({deprecated:"faker.random.numeric()",proposed:"faker.string.numeric()",since:"8.0",until:"9.0"}),this.faker.string.numeric({length:e,allowLeadingZeros:r.allowLeadingZeros,exclude:r.bannedDigits})}}0&&(module.exports={RandomModule});
