XML 95 R81.htm IDEA: XBRL DOCUMENT v3.22.0.1
DEBT - Long-term debt (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Debt Instrument [Line Items]    
Total carrying amount of debt $ 1,037,646 $ 330,865
Less: current portion of convertible notes and long-term financing receivable recorded as debt (86,052) (325,967)
Debt, non-current 951,594 4,898
Convertible Notes | Convertible Senior Notes Due 2028    
Debt Instrument [Line Items]    
Long-term debt, gross 575,000 0
Less unamortized discount and issuance costs (149,411) 0
Total carrying amount of debt 425,589 0
Convertible Notes | Convertible Senior Notes Due 2026    
Debt Instrument [Line Items]    
Long-term debt, gross 632,500 0
Less unamortized discount and issuance costs (111,433) 0
Total carrying amount of debt 521,067 0
Convertible Notes | Convertible Senior Notes Due 2025    
Debt Instrument [Line Items]    
Long-term debt, gross 102,175 320,000
Less unamortized discount and issuance costs (16,123) (64,979)
Total carrying amount of debt 86,052 255,021
Less: current portion of convertible notes and long-term financing receivable recorded as debt (102,200)  
Convertible Notes | Convertible Senior Notes Due 2024    
Debt Instrument [Line Items]    
Long-term debt, gross 0 88,140
Less unamortized discount and issuance costs 0 (19,119)
Total carrying amount of debt 0 69,021
Convertible Notes | Convertible Senior Notes Due 2023    
Debt Instrument [Line Items]    
Long-term debt, gross 5,000 5,000
Less unamortized discount and issuance costs (62) (102)
Total carrying amount of debt 4,938 4,898
Financing Receivable | Financing Receivable Recorded as Debt    
Debt Instrument [Line Items]    
Long-term debt, gross $ 0 $ 1,925