Jessica Pegula digs deep to beat Victoria Azarenka in the US Open third round and keep alive her hopes of winning a career-first Grand Slam on home soil.