v3.22.1
Net Income (Loss) per Share - Schedule of securities with antidilutive effect (Details) - shares
shares in Thousands
3 Months Ended
Mar. 31, 2022
Mar. 31, 2021
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 70,950 106,361
2026 Notes    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 11,086 11,086
Warrants    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 7,935 7,935
Escrow shares    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 74 431
Stock options    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 23,801 36,718
Restricted stock awards    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 105 192
Restricted stock units    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 27,571 49,440
Employee stock purchase plan    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Antidilutive securities (in shares) 378 559