Spanish authorities are bracing for potentially violent protests in Catalonia as the region counts down to the possible jailing of separatist leaders.