Sri Lanka's embattled President Gotabaya Rajapaksa fled to the Maldives on a military jet on Wednesday, hours before he was supposed to quit in the face of a public revolt against his government for mishandling the economy that has bankrupted the country.