A chord $AB$ is drawn in the circle, on which the point $P$ is selected in such a way that $AP = 2PB$. The chord $DE$ is perpendicular to the chord $AB $ and passes through the point $P$. Prove that the midpoint of the segment $AP$ is the orthocener of the triangle $AED$.