Annual report pursuant to Section 13 and 15(d)

Notes Payable - Additional Information (Details)

v3.22.4
Notes Payable - Additional Information (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 2 Months Ended 12 Months Ended
Nov. 21, 2022
USD ($)
$ / shares
shares
May 06, 2021
USD ($)
day
$ / shares
shares
Feb. 28, 2021
USD ($)
May 31, 2020
USD ($)
$ / shares
shares
Feb. 29, 2020
USD ($)
item
Mar. 31, 2015
USD ($)
Sep. 30, 2020
USD ($)
shares
Dec. 31, 2022
USD ($)
$ / shares
Dec. 31, 2021
USD ($)
$ / shares
shares
Sep. 30, 2021
USD ($)
$ / shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Notes Payable                        
Interest rate (as a percent)                   8.00%    
Conversion price (in usd per share) | $ / shares       $ 1.66           $ 1.66    
Percentage of stock price trigger             75.00%          
Number of common stock issued on conversion of notes (in shares) | shares             5,830,723          
Gain on extinguishment of debt               $ (2,921) $ (2,194)      
Common stock, par value (in usd per share) | $ / shares   $ 0.0001           $ 0.0001 $ 0.0001      
Amortization of debt discount               $ 9,356 $ 6,670      
Warrants outstanding       $ 336                
Threshold limit for change in control             $ 200,000          
Aggregated gross proceeds from debt and equity financing             10,000          
Beneficial conversion feature             $ 3,071          
Proceeds from unsecured credit facility           $ 1,500            
Short term warrants exercisable into shares (in shares) | shares       3,614,457                
Long term warrants exercisable into shares (in shares) | shares       831,326                
Other Affiliates | Convertible Notes Payable                        
Notes Payable                        
Interest rate (as a percent)         8.00%              
Conversion price (in usd per share) | $ / shares       $ 1.42                
Number of common stock issued on conversion of notes (in shares) | shares       2,118,819                
Debt amount borrowed         $ 3,000              
Number of convertible note payable agreements | item         2              
Redemption of debt       $ 3,000                
Excess fair value recorded as additional pain in capital       $ 1,844                
Convertible note warrants                        
Notes Payable                        
Warrants issued in connection with the convertible note   $ 14,522                    
Convertible Note due in May 2024                        
Notes Payable                        
Convertible note   $ 100,000           $ 73,863 87,863      
Interest rate (as a percent)   7.50%           7.50%        
Fair value of convertible debt   $ 17,063           $ 58,155 76,614      
Debt conversion, original amount $ 14,000               12,137      
Number of common stock issued on conversion of notes (in shares) | shares 13,276,430                      
Gain on extinguishment of debt               (2,921) 2,194      
Fair value of common stock issued               8,138 10,089      
Cash paid for remaining annual interest due                 668      
Fair value of convertible note derivative liability               38 4,985      
Share issue price (in usd per share) | $ / shares $ 1.05                      
Common stock, par value (in usd per share) | $ / shares $ 0.0001                      
Interest expense               15,800 9,911      
Contractual interest expense               6,459 4,544      
Amortization of debt discount               9,341 5,367      
Debt amount borrowed   $ 100,000           $ 11,021 $ 7,966      
Convertible Note due in May 2024 | Common Stock                        
Notes Payable                        
Number of common stock issued on conversion of notes (in shares) | shares                 1,055,388      
Convertible Note due in May 2024 | Convertible note warrants                        
Notes Payable                        
Percentage of stock price trigger   65.00%                    
Trading days | day   20                    
Convertible Note due in May 2024 | Convertible note warrants | Period Two                        
Notes Payable                        
Stock price trigger (in usd per share) | $ / shares   $ 11.50                    
Convertible Note due in May 2024 | Convertible note warrants | Period Three                        
Notes Payable                        
Stock price trigger (in usd per share) | $ / shares   $ 9.20                    
Convertible Note due in May 2024 | Senior Notes                        
Notes Payable                        
Payment of issuance costs   $ 5,000                    
Conversion price (in usd per share) | $ / shares   $ 11.50                    
Warrants to purchase shares (in shares) | shares   8,695,641                    
Warrant exercise price (in usd per share) | $ / shares   $ 11.50                    
Percentage of stock price trigger   120.00%                    
Trading days | day   20                    
Threshold consecutive trading days | day   30                    
Average daily trading volume   $ 3,000                    
Convertible Note due in May 2024 | Senior Notes | Period One                        
Notes Payable                        
Stock price trigger (in usd per share) | $ / shares   $ 13.80                    
Term note and revolving working capital facility                        
Notes Payable                        
Interest rate (as a percent)               15.00%        
Warrants to purchase shares (in shares) | shares                     60,241 301,205
Warrant exercise price (in usd per share) | $ / shares                     $ 1.66 $ 1.66
Interest expense               $ 465 $ 1,265      
Maximum borrowing capacity               9,900        
Threshold indebtedness               5,000        
Borrowings under line of credit               3,000 3,000      
Warrants outstanding                     $ 6 $ 66
2020 short-term convertible notes payable                        
Notes Payable                        
Amortization of debt discount               $ 0 $ 1,296      
Debt amount borrowed                   $ 9,679    
Conversion of convertible notes, adjustment to additional paid in capital   $ 9,679                    
2020 short-term convertible notes payable | Convertible Notes Payable                        
Notes Payable                        
Debt amount borrowed                   6,454    
2020 short-term convertible notes payable | Other Affiliates                        
Notes Payable                        
Debt amount borrowed                   $ 3,225    
Third party secured promissory note                        
Notes Payable                        
Interest rate (as a percent)     20.00%                  
Debt amount borrowed     $ 3,000                  
Percentage of cash interest     10.00%                  
Percentage of paid-in kind interest     10.00%                  
Period after the closing of business combination for quarterly interest payments     14 days