v3.22.2.2
Net (Loss) Income Per Share - Schedule of Shares Excluded from the Calculation of Diluted Net Income Per Share (Details) - shares
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities excluded from computation of earnings per share (in shares) 23,737,030 248,108 23,291,906 610,654
Stock options        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities excluded from computation of earnings per share (in shares) 2,999,502 193,919 3,197,330 135,179
Restricted stock units        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities excluded from computation of earnings per share (in shares) 6,021,635 54,189 5,377,776 475,475
Convertible senior notes        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities excluded from computation of earnings per share (in shares) 14,715,893 0 14,716,800 0