Quarterly report pursuant to Section 13 or 15(d)

Convertible Debt (Details)

v3.22.2.2
Convertible Debt (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 06, 2022
Jul. 22, 2022
Jul. 21, 2022
Jul. 20, 2022
May 10, 2022
Sep. 30, 2022
Jun. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Dec. 31, 2021
Debt Conversion [Line Items]                        
Purchase price of common stock, percent       95.00% 120.00%              
Purchase share price (in dollars per share) $ 3.63           $ 3.63     $ 3.63    
Proceeds from PPA                   $ 89,100 $ 0  
Convertible debt, current $ 12,500           $ 12,500     12,500   $ 0
Pre-paid advance to minimum of settlement $ 1,000           1,000     1,000    
Interest (expense) income             $ (2,179)   $ 33 (2,189) 79  
Other Noncash Income (Expense)                   300    
Amortization of Debt Issuance Costs                   1,000    
Non-cash debt discount                   $ 900 $ 0  
Convertible Note (If-Converted Basis)                        
Debt Conversion [Line Items]                        
Antidilutive securities excluded from computation of loss per share amount                   7,451 0  
Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Redemption premium     3.00%                  
Common stock                        
Debt Conversion [Line Items]                        
Purchase share price (in dollars per share)           $ 3.65            
Common stock | Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares)               27,015        
Yorkville                        
Debt Conversion [Line Items]                        
Pre-paid advance agreement, in cash advances         $ 50,000              
Pre-paid advance agreement, in commitment amount         $ 300,000              
Purchase share price (in dollars per share)         $ 1.00              
Pre-paid advance agreement, annual rate           5.00%            
Pre-paid advance agreement, increase upon to default           15.00%            
Yorkville | First Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Proceeds from PPA     $ 49,500                  
Yorkville | Second Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Proceeds from PPA     39,600                  
Convertible debt, current     $ 12,500                  
Yorkville | Common stock | First Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares)   15,100                    
Yorkville | Common stock                        
Debt Conversion [Line Items]                        
Exchange cap, maximum ownership percent           19.90%            
Issuance of shares - SEPA and PIPE (in shares)             0     14,200    
Yorkville | Common stock | Pre-Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares) 11,900