v3.22.0.1
Long-Term Debt - Summary of Convertible Notes (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Apr. 30, 2021
Dec. 31, 2020
Apr. 30, 2020
Aug. 31, 2019
2027 Notes          
Debt Instrument [Line Items]          
Principal $ 1,150,000 $ 1,150,000      
Unamortized debt discount and issuance costs (11,361)        
Net carrying amount 1,138,639        
2025 Notes          
Debt Instrument [Line Items]          
Principal 284,105   $ 1,000,000 $ 1,000,000  
Unamortized debt discount and issuance costs (2,168)   (263,956)    
Net carrying amount 281,937   736,044    
2026 Notes          
Debt Instrument [Line Items]          
Principal 838,493   1,265,000   $ 1,265,000
Unamortized debt discount and issuance costs (5,982)   (325,875)    
Net carrying amount $ 832,511   $ 939,125