Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details)

v3.24.0.1
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Dec. 31, 2023
Dec. 31, 2022
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments $ 828,233 $ 910,692
Warrant liability 62,936 28,783
Earnout shares liability 95,969 44,055
Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 42,538 40,709
Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 27,469 54,707
Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 265,681 362,851
Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 492,545 452,425
Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 197,543 108,119
Available-for-sale investments 828,233 910,692
Total fair value of assets 1,025,776 1,018,811
Warrant liability 62,936 28,783
Earnout shares liability 95,969 44,055
Total fair value of liabilities 158,905 72,838
Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 21,097 8,318
Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 14,105 5,561
Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 27,734 14,903
Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 197,543 108,119
Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 42,538 40,709
Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 27,469 54,707
Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 265,681 362,851
Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 492,545 452,425
Level 1 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 197,543 108,119
Available-for-sale investments 0 0
Total fair value of assets 197,543 108,119
Warrant liability 21,097 8,318
Earnout shares liability 0 0
Total fair value of liabilities 21,097 8,318
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 21,097 8,318
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 1 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 1 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 197,543 108,119
Level 1 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 1 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 2 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Available-for-sale investments 828,233 910,692
Total fair value of assets 828,233 910,692
Warrant liability 14,105 5,561
Earnout shares liability 0 0
Total fair value of liabilities 14,105 5,561
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 14,105 5,561
Level 2 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 2 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Level 2 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 42,538 40,709
Level 2 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 27,469 54,707
Level 2 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 265,681 362,851
Level 2 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 492,545 452,425
Level 3 | Fair Value Measurements Recurring    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Available-for-sale investments 0 0
Total fair value of assets 0 0
Warrant liability 27,734 14,903
Earnout shares liability 95,969 44,055
Total fair value of liabilities 123,703 58,958
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Public)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Private Placement)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 0 0
Level 3 | Fair Value Measurements Recurring | Common stock warrant liabilities (Delta)    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Warrant liability 27,734 14,903
Level 3 | Fair Value Measurements Recurring | Money market funds    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Cash equivalents 0 0
Level 3 | Fair Value Measurements Recurring | Term deposits    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Asset backed securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Government debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments 0 0
Level 3 | Fair Value Measurements Recurring | Corporate debt securities    
Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]    
Available-for-sale investments $ 0 $ 0