XML 60 R46.htm IDEA: XBRL DOCUMENT v3.22.0.1
Summary of Significant Accounting Policies - Accounting Pronouncements (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Outstanding principle $ 287,500  
Net carrying amount 280,394  
Accumulated deficit (1,394,836) $ (929,318)
Convertible Notes    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Interest expense 7,696  
Outstanding principle 287,500  
Previously reported    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Interest expense $ 9,400  
Previously reported | Convertible Notes    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Outstanding principle   287,500
Unamortized debt discount and issuance cost   (85,007)
Net carrying amount   202,493
Additional paid-in-capital   (1,411,286)
Accumulated deficit   (929,318)
Adoption Adjustment | Cumulative effect adjustment    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Accumulated deficit   404
Accounting Standards Update 2020-06 | Convertible Notes    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Outstanding principle   287,500
Unamortized debt discount and issuance cost   (8,333)
Net carrying amount   279,167
Additional paid-in-capital   (1,328,410)
Accumulated deficit   (923,120)
Accounting Standards Update 2020-06 | Adoption Adjustment    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Reduction in net loss from continuing operations per share $ 0.10  
Accounting Standards Update 2020-06 | Adoption Adjustment | Convertible Notes    
New Accounting Pronouncements or Change in Accounting Principle [Line Items]    
Unamortized debt discount and issuance cost   76,674
Net carrying amount   76,674
Additional paid-in-capital   82,876
Accumulated deficit   $ 6,198