Modafinil is a sleep-disorder smart pill that has been used to treat excessive daytime sleepiness, or…