v3.24.2.u1
Fair Value of Financial Instruments - Schedule of Fair Value of Financial Assets and Liabilities (Detail) - USD ($)
$ in Thousands
Jun. 30, 2024
Dec. 31, 2023
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of cash and cash equivalents $ 10,553 $ 20,003
Investment, Type [Extensible Enumeration] Money Market Funds [Member] Money Market Funds [Member]
Fair value of short and long term investments $ 1,147,822 $ 1,325,948
Fair value of restricted cash 4,053 4,053
Fair value of financial assets 1,604,411 1,371,646
Fair value of financial liabilities 390  
Fair Value, Inputs, Level 1 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of cash and cash equivalents $ 10,553 $ 20,003
Investment, Type [Extensible Enumeration] Money Market Funds [Member] Money Market Funds [Member]
Fair value of financial assets $ 10,553 $ 20,003
Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Investment, Type [Extensible Enumeration] Money Market Funds [Member] Money Market Funds [Member]
Fair value of restricted cash $ 4,053 $ 4,053
Fair value of financial assets 1,562,233 1,338,484
Fair value of financial liabilities 390  
Fair Value, Inputs, Level 3 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 31,625 13,159
Commercial Paper [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 24,099 13,504
Commercial Paper [Member] | Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 24,099 13,504
Corporate Bonds [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 243,346 237,406
Corporate Bonds [Member] | Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 243,346 237,406
U.S. Government Agency Securities [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 132,948 122,758
U.S. Government Agency Securities [Member] | Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 132,948 122,758
US Treasury Securities [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 1,157,787 960,763
US Treasury Securities [Member] | Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 1,157,787 960,763
Strategic Investments [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 31,625 13,159
Strategic Investments [Member] | Fair Value, Inputs, Level 3 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of short and long term investments 31,625 $ 13,159
Foreign Currency Derivative Liabilities [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of accrued expenses and other current liabilities 390  
Foreign Currency Derivative Liabilities [Member] | Fair Value, Inputs, Level 2 [Member]    
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]    
Fair value of accrued expenses and other current liabilities $ 390