Quarterly report pursuant to Section 13 or 15(d)

Convertible Senior Notes (Details)

v3.22.2.2
Convertible Senior Notes (Details)
$ in Thousands
9 Months Ended
Nov. 01, 2022
Dec. 31, 2021
USD ($)
Feb. 01, 2021
USD ($)
Jan. 19, 2017
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Dec. 31, 2020
USD ($)
Debt Instrument, Redemption [Line Items]              
Repayment of convertible senior notes         $ 143,774 $ 143,118  
Convertible senior notes   $ 424,827     $ 282,096    
Subsequent Event [Member]              
Debt Instrument, Redemption [Line Items]              
Reverse stock split, conversion ratio 0.25            
Maturity Year 2026              
Debt Instrument, Redemption [Line Items]              
Convertible senior notes conversion ratio   0.0338753     0.0338753    
Convertible Debt [Member] | Maturity Year 2022              
Debt Instrument, Redemption [Line Items]              
Aggregate principal amount   $ 143,800         $ 287,500
Proceeds from convertible senior notes       $ 282,200      
Convertible senior notes interest rate per annum         6.25%    
Repayment of convertible senior notes     $ 143,700        
Convertible Debt [Member] | Maturity Year 2026              
Debt Instrument, Redemption [Line Items]              
Aggregate principal amount         $ 287,500    
Proceeds from convertible senior notes     $ 279,900        
Convertible senior notes interest rate per annum         6.25%