XML 75 R62.htm IDEA: XBRL DOCUMENT v3.22.0.1
Debt - Additional Information (Details)
1 Months Ended 3 Months Ended 12 Months Ended
Sep. 09, 2021
USD ($)
$ / shares
Aug. 04, 2020
USD ($)
shares
Feb. 28, 2020
USD ($)
$ / shares
shares
Sep. 30, 2021
USD ($)
Day
$ / shares
shares
Aug. 31, 2020
shares
Mar. 31, 2020
USD ($)
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Jun. 04, 2019
USD ($)
Oct. 27, 2017
USD ($)
Debt Instrument [Line Items]                      
Transaction costs attributable to issuance of notes             $ 9,463,000        
Conversion of convertible debt into common stock upon initial public offering               $ 50,173,000      
Gain on fair value of put option           $ 4,400,000   $ 4,413,000      
Contractual interest expense             $ 9,500,000        
Mezzanine Loan And Security Agreement | WestRiver                      
Debt Instrument [Line Items]                      
Credit facility maximum borrowing capacity     $ 10,000,000.0                
Credit facility, maturity date     Nov. 06, 2020                
Warrants, exercise price per share | $ / shares     $ 9.21                
Warrants expiration date     Mar. 01, 2023                
Warrants to purchase shares of common stock | shares         49,500,000            
Fair value of warrants issued     $ 300,000                
Silicon Valley Bank | Revolving Line                      
Debt Instrument [Line Items]                      
Weighted average interest rate               4.00%      
Credit facility maximum borrowing capacity               $ 20,000,000.0      
Credit facility, outstanding amount               $ 0      
Silicon Valley Bank | Revolving Line | Mezzanine Loan And Security Agreement                      
Debt Instrument [Line Items]                      
Credit facility maximum borrowing capacity                   $ 25,000,000.0 $ 20,000,000.0
Line Of Credit Facility Increase Amended                   $ 5,000,000.0  
Maximum | Mezzanine Loan And Security Agreement | WestRiver                      
Debt Instrument [Line Items]                      
Warrants to purchase shares of common stock | shares     99,000,000                
0.25% Convertible Senior Notes Due 2026                      
Debt Instrument [Line Items]                      
Debt principal amount       $ 345,000,000.0              
Debt instrument, interest rate       0.25%              
Net proceeds from sale of convertible senior notes       $ 335,000,000.0              
Debt instrument, frequency of periodic payment             semi-annually        
Debt instrument, payment terms             semi-annually in arrears on April 1 and October 1 of each year        
Debt instrument, maturity date       Oct. 01, 2026              
Debt instrument, convertible trading days | Day       20              
Debt instrument, convertible consecutive trading days | Day       30              
Principal amount of each convertible note       $ 1,000              
Conversion of debt to shares | shares       13.6783              
Debt instrument, principal amount converted       $ 1,000              
Debt instrument, initial conversion price | $ / shares       $ 73.11              
Debt instrument, effective interest rate       0.84%              
Transaction costs attributable to issuance of notes       $ 10,000,000.0              
Interest expense             $ 828,000        
Contractual interest expense             254,000   $ 0    
0.25% Convertible Senior Notes Due 2026 | 2021 Capped Call Transactions                      
Debt Instrument [Line Items]                      
Net proceeds from notes used for capped call transactions $ 35,600,000                    
Initial cap price of capped call transactions | $ / shares 106.34                    
Percentage of premium of cap price over last reported sale price per common share 100.00%                    
Sale price of common stock per share | $ / shares $ 53.17                    
0.25% Convertible Senior Notes Due 2026 | Minimum                      
Debt Instrument [Line Items]                      
Debt principal amount       $ 150,000,000.0              
0.25% Convertible Senior Notes Due 2026 | Minimum | 20 Trading Days Period                      
Debt Instrument [Line Items]                      
Debt instrument, conversion price percentage       130.00%              
0.25% Convertible Senior Notes Due 2026 | Maximum | 10 Trading Days Period                      
Debt Instrument [Line Items]                      
Debt instrument, conversion price percentage       98.00%              
Convertible Term Loan | Silicon Valley Bank                      
Debt Instrument [Line Items]                      
Debt principal amount   $ 55,000,000.0                  
Conversion of convertible debt into common stock upon initial public offering   $ 35,000,000.0                  
Weighted average interest rate               5.80%      
Convertible Term Loan | Series 1 Common Stock | Silicon Valley Bank                      
Debt Instrument [Line Items]                      
Conversion of debt to shares | shares   5,249,534,000                  
Initial public offering completion date   Aug. 05, 2020                  
Repayment of paid principal amount   $ 1,100,000                  
Conversion of convertible debt into common stock upon initial public offering   $ 53,900,000                  
2020 Convertible Loan                      
Debt Instrument [Line Items]                      
Derivative liability             $ 4,400,000        
Interest expense               $ 400,000      
2018 Term Loan | Silicon Valley Bank | Revolving Line                      
Debt Instrument [Line Items]                      
Credit facility maximum borrowing capacity               $ 5,000,000.0      
2018 Term Loan | Silicon Valley Bank | Revolving Line | Mezzanine Loan And Security Agreement                      
Debt Instrument [Line Items]                      
Credit facility maximum borrowing capacity                     $ 5,000,000.0