A right triangle $ABC$ has the right angle at vertex $A$. Circle $c$ passes through vertices $A$ and $B$ of the triangle $ABC$ and intersects the sides $AC$ and $BC$ correspondingly at points $D$ and $E$. The line segment $CD$ has the same length as the diameter of the circle $c$. Prove that the triangle $ABE$ is isosceles.