Quarterly report pursuant to Section 13 or 15(d)

Debt and Interest (Narrative) (Details)

v3.22.2.2
Debt and Interest (Narrative) (Details)
3 Months Ended 9 Months Ended
Mar. 04, 2022
USD ($)
$ / shares
shares
Jan. 12, 2022
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Dec. 31, 2021
USD ($)
Aug. 29, 2020
$ / shares
shares
Aug. 27, 2020
USD ($)
Debt Instrument [Line Items]                  
Total notes payable     $ 91,165,000   $ 91,165,000   $ 42,937,000    
Unamortized debt discount fees     9,885,000   9,885,000   7,063,000    
Debt instrument, interest expense     2,839,000 $ 3,724,000 7,397,000 $ 7,770,000      
Debt prepayment penalties         0 450,000      
Fair Value Adjustment of Warrants       2,000   184,000      
Amortization of debt discount         1,500,000 1,623,000      
East West Bank ("EWB Loan") [Member]                  
Debt Instrument [Line Items]                  
Amount outstanding             $ 800,000    
Maximum borrowing capacity   $ 7,500,000              
EWB Amendment [Member]                  
Debt Instrument [Line Items]                  
Amount outstanding     0   0        
Debt instrument term   4 years              
Maximum borrowing capacity   $ 10,000,000.0              
Prime Rate [Member] | EWB Amendment [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate   0.70%              
Letter of Credit [Member]                  
Debt Instrument [Line Items]                  
Debt instrument, interest expense     11,000 14,000 37,000 37,000      
Oaktree Note [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount                 $ 60,000,000.0
Debt instrument, interest expense     $ 1,406,000 $ 2,136,000 $ 4,171,000 $ 5,455,000      
Debt instrument, stated interest rate     11.00%   11.00%        
Exercise price of warrants | $ / shares               $ 3.20  
Oaktree Note [Member] | Maximum [Member]                  
Debt Instrument [Line Items]                  
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | shares               1,749,450  
EWB Term Loan [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount   $ 20,000,000.0              
Debt instrument, stated interest rate     8.38%   8.38%        
Debt instrument term   4 years              
EWB Term Loan [Member] | Prime Rate [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate   1.73%              
Runway Note [Member]                  
Debt Instrument [Line Items]                  
Proceeds from debt $ 30,000,000.0                
Debt instrument face amount $ 75,000,000.0                
Debt, effective interest rate     11.69%   11.69%        
Debt instrument, stated interest rate 8.75%   11.69%   11.69%        
Debt prepayment penalties $ 1,100,000                
Percentage of upfront commitment fee 1.00%                
Upfront Commitment Fee $ 400,000                
Advisory and legal fees $ 2,300,000                
Percent of Outstanding Loan Principal Amount for Calculation of Repayment Change 3.50%                
Legal fees $ 2,300,000                
Deposit on commitment fee 100,000                
Amortization of debt discount     $ 100,000   $ 100,000        
Runway Note [Member] | Financial Milestones [Member]                  
Debt Instrument [Line Items]                  
Debt instrument face amount $ 45,000,000.0                
Runway Note [Member] | LIBOR Rate [Member]                  
Debt Instrument [Line Items]                  
Basis spread on variable rate 0.50%                
Runway Note [Member] | Minimum [Member]                  
Debt Instrument [Line Items]                  
Debt, effective interest rate 9.25%                
Warrants to Purchase Common Stock [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Warrants, fair value $ 400,000                
Number of shares called by warrants | shares 748,036                
Exercise price of warrants | $ / shares $ 0.8021                
Warrants to Purchase Common Stock [Member] | Risk Free Interest Rate [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 1.74                
Warrants to Purchase Common Stock [Member] | Expected Volatility [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 57.3                
Warrants to Purchase Common Stock [Member] | Expected Term [Member] | Runway Note [Member]                  
Debt Instrument [Line Items]                  
Fair value of warrants assumptions 10