Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements - Fair Value Measured on a Recurring Basis (Details)

v3.22.1
Fair Value Measurements - Fair Value Measured on a Recurring Basis (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value $ 288,036 $ 37,813  
Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Contingent consideration 100 0 $ 0
Recurring      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 335,228 37,813  
Contingent consideration 100    
Warrant liabilities   (17,740)  
Total liabilities at fair value (100) (17,740)  
Recurring | Fair Value, Inputs, Level 1, 2 and 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 326,304 37,756  
Recurring | Level 1      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 82,472 5,380  
Contingent consideration 0    
Warrant liabilities   0  
Total liabilities at fair value 0 0  
Recurring | Level 2      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 243,832 32,376  
Contingent consideration 0    
Warrant liabilities   0  
Total liabilities at fair value 0 0  
Recurring | Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Contingent consideration 100    
Warrant liabilities   (17,740)  
Total liabilities at fair value (100) (17,740)  
Recurring | Commercial paper      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 128,867 11,932  
Recurring | Commercial paper | Level 1      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Commercial paper | Level 2      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 128,867 11,932  
Recurring | Commercial paper | Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | U.S. Treasuries      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 82,472 5,380  
Recurring | U.S. Treasuries | Level 1      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 82,472 5,380  
Recurring | U.S. Treasuries | Level 2      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | U.S. Treasuries | Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Corporate bonds      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 114,965 20,444  
Recurring | Corporate bonds | Level 1      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Corporate bonds | Level 2      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 114,965 20,444  
Recurring | Corporate bonds | Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Money Market Funds | Level 1      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Money Market Funds | Level 2      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Money Market Funds | Level 3      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value 0 0  
Recurring | Money Market Funds | Fair Value Measured at Net Asset Value Per Share      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Total investments at fair value $ 8,924 $ 57