Quarterly report pursuant to Section 13 or 15(d)

Notes Payable - Additional Information (Details)

v3.22.2.2
Notes Payable - Additional Information (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 2 Months Ended 3 Months Ended 9 Months Ended
May 06, 2021
USD ($)
day
$ / shares
shares
Feb. 28, 2021
USD ($)
May 31, 2020
USD ($)
$ / shares
shares
Feb. 29, 2020
USD ($)
note
$ / shares
shares
Mar. 31, 2015
USD ($)
Sep. 30, 2020
USD ($)
$ / shares
shares
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
shares
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
shares
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Notes Payable                          
Conversion price (in dollars per share) | $ / shares       $ 1.66                  
Gain on extinguishment of debt             $ 0 $ (2,194) $ 0 $ (2,194)      
Warrants issued in connection with the Convertible Note                   14,522      
Amortization of debt discount                 6,899 4,598      
Warrant liability       $ 336     335   335   $ 2,185    
Proceeds from unsecured credit facility         $ 1,500                
Short term warrants exercisable into shares | shares       3,614,457                  
Long term warrants exercisable into shares | shares       831,326                  
Other Affiliates | Convertible Notes Payable                          
Notes Payable                          
Interest rate (as a percent)       8.00%                  
Conversion price (in dollars per share) | $ / shares     $ 1.42                    
Common stock issued on conversion of notes (in shares) | shares     2,118,819                    
Amount borrowed       $ 3,000                  
Number of convertible note payable agreements | note       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                          
Interest rate (as a percent) 7.50%                        
Convertible note $ 100,000           87,863 7,966 87,863 7,966 87,863    
Issuance costs $ 5,000                        
Conversion price (in dollars per share) | $ / shares $ 11.50                        
Warrants to purchase shares (in shares) | shares 8,695,641                        
Warrant exercise price (in dollars per share) | $ / shares $ 11.50                        
Percentage of stock price trigger 120.00%                        
Stock price trigger (in dollars per share) | $ / shares $ 13.80                        
Threshold trading days | day 20                        
Threshold consecutive trading days | day 30                        
Average daily trading volume $ 3,000                        
Fair value of convertible debt $ 17,063           62,874   62,874   76,614    
Debt conversion, original amount               $ 12,137   12,137      
Common stock issued on conversion of notes (in shares) | shares               1,055,388          
Gain on extinguishment of debt               $ (2,194)   (2,194)      
Fair value of common stock issued               10,089   10,089      
Cash paid for remaining annual interest due               668   668      
Fair value of convertible note derivative liability               4,985   4,985      
Interest expense             4,129 3,875 11,830 6,183      
Contractual interest expense             1,647 1,798 4,942 2,887      
Amortization of debt discount             $ 2,482 2,077 $ 6,888 $ 3,296      
Convertible Note due in May 2024 | Common Stock                          
Notes Payable                          
Common stock issued on conversion of notes (in shares) | shares                   1,055,388      
Convertible Note due in May 2024 | Convertible note warrants                          
Notes Payable                          
Stock price trigger (in dollars per share) | $ / shares $ 11.50                        
Facility                          
Notes Payable                          
Interest rate (as a percent)             15.00%   15.00%        
Warrants to purchase shares (in shares) | shares                       60,241 301,205
Warrant exercise price (in dollars per share) | $ / shares                       $ 1.66 $ 1.66
Interest expense             $ 118 104 $ 348 $ 1,165      
Maximum borrowing capacity             13,000   13,000        
Threshold indebtedness             5,000   5,000        
Borrowings under line of credit             $ 3,000   $ 3,000   $ 3,000    
Warrant liability                       $ 6 $ 66
2020 short-term convertible notes payable                          
Notes Payable                          
Interest rate (as a percent)           8.00%              
Conversion price (in dollars per share) | $ / shares           $ 1.66              
Percentage of stock price trigger           75.00%              
Common stock issued on conversion of notes (in shares) | shares           5,830,723              
Amortization of debt discount               $ 0   $ 1,296      
Amount borrowed           $ 9,679              
Threshold limit for change in control           200,000              
Aggregated gross proceeds from debt and equity financing           10,000              
Beneficial conversion feature           3,071              
Conversion of convertible notes, adjustment to additional paid in capital $ 9,679                        
2020 short-term convertible notes payable | Convertible Notes Payable                          
Notes Payable                          
Amount borrowed           6,454              
2020 short-term convertible notes payable | Other Affiliates                          
Notes Payable                          
Amount borrowed           $ 3,225              
Third party secured promissory note                          
Notes Payable                          
Interest rate (as a percent)   20.00%                      
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