it was thus in origin an alta ribagorza barony