Iran says thousands of protesters pardoned