Quarterly report pursuant to Section 13 or 15(d)

Debt - Summary of Outstanding Debt (Details)

v3.23.1
Debt - Summary of Outstanding Debt (Details) - USD ($)
$ in Thousands
Mar. 31, 2023
Dec. 31, 2022
Convertible Notes Payable    
Debt Instrument [Line Items]    
Issuance Amount $ 937,500 $ 937,500
Unamortized Issuance Costs (19,578) (20,845)
Carrying Value 917,922 916,655
Convertible Notes Payable | Level II    
Debt Instrument [Line Items]    
Fair Value (Level II) 926,658 945,865
Convertible Notes Payable | Convertible Notes due 2023    
Debt Instrument [Line Items]    
Issuance Amount 45,000 45,000
Unamortized Issuance Costs (46) (114)
Carrying Value 44,954 44,886
Convertible Notes Payable | Convertible Notes due 2023 | Level II    
Debt Instrument [Line Items]    
Fair Value (Level II) 44,168 46,058
Convertible Notes Payable | Convertible Notes due 2025    
Debt Instrument [Line Items]    
Issuance Amount 317,500 317,500
Unamortized Issuance Costs (4,318) (4,765)
Carrying Value 313,182 312,735
Convertible Notes Payable | Convertible Notes due 2025 | Level II    
Debt Instrument [Line Items]    
Fair Value (Level II) 284,220 293,688
Convertible Notes Payable | Convertible Notes due 2027    
Debt Instrument [Line Items]    
Issuance Amount 575,000 575,000
Unamortized Issuance Costs (15,214) (15,966)
Carrying Value 559,786 559,034
Convertible Notes Payable | Convertible Notes due 2027 | Level II    
Debt Instrument [Line Items]    
Fair Value (Level II) 598,270 606,119
Revolving Credit Facility | Line of Credit | Third Credit Agreement    
Debt Instrument [Line Items]    
Issuance Amount 0 0
Unamortized Issuance Costs 0 0
Carrying Value 0 0
Revolving Credit Facility | Line of Credit | Third Credit Agreement | Level II    
Debt Instrument [Line Items]    
Fair Value (Level II) $ 0 $ 0