var e=(e,t)=>{let n=e.trim();return n?n.length<1||n.length>20?{isValid:!1,message:`Username must be between 1 and 20 characters`}:/^User \d+$/.test(n)?{isValid:!1,message:`'User number' formatted usernames are reserved`}:t?{isValid:!0,message:`Username available`}:{isValid:!1,message:`Username is already taken`}:{isValid:!1,message:null}};exports.validateUsername=e;