The unprecedented attacks on Iran have unexpectedly led to increased internal unity, boosted the legitimacy of the Islamic Republic, and even drawn support from some of its critics. What was…