During the formation earth , from where does the water came ?

http://news.nationalgeographic.com/news/2014/10/141030-starstruck-earth-water-origin-vesta-science/