How Tesla weathered global supply chain issues that knocked rivals