Exact solutions for the electromagnetic fields of a flying focus