XML 50 R38.htm IDEA: XBRL DOCUMENT v3.22.1
Long-Term Debt - Additional Information (Details) - USD ($)
12 Months Ended
Oct. 01, 2021
Aug. 27, 2019
Dec. 31, 2021
Dec. 31, 2020
Sep. 01, 2023
Feb. 28, 2022
Debt Instrument [Line Items]            
Long-term debt     $ 15,000,000 $ 10,000,000    
Lender Warrant | Series C Convertible Preferred Stock            
Debt Instrument [Line Items]            
Warrant exercise price per share     $ 10.812      
Warrant expiration date     Aug. 27, 2029      
Warrant to purchase number of shares of common stock     23,122      
Second Amendment To Loan Agreement | Lender Warrant            
Debt Instrument [Line Items]            
Warrants issued to purchase shares of common stock     $ 400,000      
Second Amendment To Loan Agreement | Lender Warrant | Common Stock            
Debt Instrument [Line Items]            
Warrant exercise price per share     $ 2.86      
Warrant expiration date     Oct. 01, 2031      
Percentage of common shares issuable on aggregate term loans upon exercise of warrant     2.50%      
Fair value of liabilities     $ 400,000      
Term Loans            
Debt Instrument [Line Items]            
Loan agreement date   Aug. 27, 2019        
Long-term debt   $ 10,000,000.0 $ 15,000,000.0 10,000,000.0    
Debt instrument, interest rate terms     Prior to the Second Amendment, the Term Loans accrued interest at a floating annual rate equal to the greater of (i) the prime rate used by the Lender plus 2% and (ii) 7.25%. Subsequent to the Second Amendment, the Term Loans accrue interest at a floating annual rate equal to the greater of (i) the prime rate used by the Lender plus 4.5% and (ii) and 7.75%      
Debt instrument, frequency of periodic payment     monthly      
Debt instrument, final payment fee percentage     5.75%      
Debt instrument, final payment fee     $ 1,400,000 $ 500,000    
Debt instrument, prepayment fee percentage     3.00% 3.00%    
Debt instrument, subjective acceleration clause     The Loan Agreement includes customary affirmative and negative covenants and also includes standard events of default, including an event of default based on the occurrence of a material adverse event, and a default under any agreement with a third party resulting in a right of such third party to accelerate the maturity of any debt in excess of $0.3 million      
Debt instrument, acceleration of maturity of debt, threshold amount     $ 300,000      
Debt instrument, covenant compliance     As of December 31, 2021 and 2020, the Company was in compliance with all applicable covenants under the Loan Agreement.      
Debt interest expense     $ 1,200,000 $ 1,000,000.0    
Debt discount amortization     300,000 300,000    
Accrued interest     $ 100,000 $ 100,000    
Term Loans | Minimum            
Debt Instrument [Line Items]            
Debt instrument, variable rate     7.25%      
Term Loans | Prime Rate            
Debt Instrument [Line Items]            
Debt instrument, basis spread on variable rate     2.00%      
Term Loans | Second Amendment To Loan Agreement            
Debt Instrument [Line Items]            
Debt instrument, maximum borrowing capacity $ 45,000,000.0          
Debt instrument, final payment fee     $ 900,000   $ 500,000  
Debt issuance costs     $ 200,000      
Term Loans | Second Amendment To Loan Agreement | Maximum            
Debt Instrument [Line Items]            
Debt instrument, variable rate 7.75%          
Debt instrument, prepayment fee percentage     3.00%      
Term Loans | Second Amendment To Loan Agreement | Prime Rate            
Debt Instrument [Line Items]            
Debt instrument, basis spread on variable rate 4.50%          
Term Loans | Second Amendment            
Debt Instrument [Line Items]            
Debt instrument, convertible outstanding principal     $ 3,000,000      
Debt instrument, convertible, conversion price     $ 3.86      
First Tranche Term Loan            
Debt Instrument [Line Items]            
Debt instrument, maturity date     Apr. 01, 2025      
First Tranche Term Loan | Second Amendment To Loan Agreement            
Debt Instrument [Line Items]            
Long-term debt $ 15,000,000.0          
Second Tranche Term Loan | Second Amendment To Loan Agreement            
Debt Instrument [Line Items]            
Long-term debt     $ 30,000,000.0      
Two Term Loan Tranche | Subsequent Event            
Debt Instrument [Line Items]            
Debt instrument, unable to borrow capacity amount           $ 10,000,000.0