Second seed Bia Haddad Maia was just two points away from defeat but battled through to win the three-and-a-half-hour marathon against Aliaksandra Sasnovich 7-6(3) 3-6 7-6(3).