The United Nations and the African Union , sponsor of the talks , have given the government of Sudan and the Darfur rebels until Sunday to reach agreement on a draft treaty that the mediators wrote and handed to both parties on Tuesday .