XML 75 R62.htm IDEA: XBRL DOCUMENT v3.22.1
Debt (Details)
12 Months Ended
Feb. 05, 2021
USD ($)
Tranche
May 11, 2020
USD ($)
Apr. 20, 2020
USD ($)
Mar. 11, 2020
USD ($)
$ / shares
Nov. 07, 2019
Jul. 01, 2019
USD ($)
Jul. 25, 2017
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Jul. 01, 2022
USD ($)
Sep. 28, 2021
USD ($)
$ / shares
Jul. 01, 2021
USD ($)
Jul. 01, 2020
May 10, 2020
USD ($)
Line Of Credit Facility [Line Items]                              
Term loan credit and security agreement entered date             Jul. 25, 2017                
Borrowing base of finished goods inventory (as a percent)           40.00%                  
Borrowing base availability from finished goods inventory (as a percent)           20.00%                  
Additional interest (as a percent)             5.00%                
Amortization of debt issuance costs and discounts               $ 3,587,000 $ 4,347,000 $ 359,000          
Gain on extinguishment of PPP loan               $ 6,652,000              
Paycheck Protection Program                              
Line Of Credit Facility [Line Items]                              
Debt maturity date     Apr. 20, 2022                        
Debt instrument interest rate     1.00%                        
Debt instrument principal     $ 6,700,000                        
Debt instrument, payment terms               Company made no payments until the date which forgiveness of the PPP Loan is determined, which can be up to 10 months following the end of the covered period (which is defined as 24 weeks from the date of the loan), or the Deferral Period. Commencing one month after the expiration of the Deferral Period, and continuing on the same day of each month until the Maturity Date, the Company would have paid to Lender monthly payments of principal and interest, in an amount required to fully amortize the principal amount outstanding on the PPP Loan on the last day of the Deferral Period by the Maturity Date.              
Gain on extinguishment of PPP loan               $ 6,700,000              
Convertible Note                              
Line Of Credit Facility [Line Items]                              
Carrying Value               47,477,000 44,436,000            
Term Loan Credit and Security Agreement and Revolving Loan Credit and Security Agreement                              
Line Of Credit Facility [Line Items]                              
Agreements amended and restated date           Jul. 01, 2019                  
Restated Term Loan Agreement                              
Line Of Credit Facility [Line Items]                              
Agreements amended date         Nov. 07, 2019                    
Line of credit facility, remaining borrowing capacity $ 15,000,000         $ 35,000,000     10,000,000.0            
Debt maturity date           Jul. 01, 2024                  
Exit fee percentage to aggregate amount of all term loans funded           5.00%                  
Periodic commitment amount $ 1,000,000 $ 15,000,000                          
Unfunded tranche revised number | Tranche 2                            
Debt instrument amendment fee $ 750,000                            
Loan amount outstanding               16,000,000.0              
Unamortized debt issuance costs               1,000,000.0              
Restated Term Loan Agreement | Tranche 4                              
Line Of Credit Facility [Line Items]                              
Periodic commitment amount                         $ 5,000,000    
Restated Term Loan Agreement | Tranche 5 | Scenario Forecast                              
Line Of Credit Facility [Line Items]                              
Periodic commitment amount                     $ 5,000,000        
Restated Term Loan Agreement | London Interbank Offered Rate (LIBOR)                              
Line Of Credit Facility [Line Items]                              
Spread on variable rate basis (as a percent)           7.50%                  
Additional Term Loan                              
Line Of Credit Facility [Line Items]                              
Line of credit facility, remaining borrowing capacity           $ 5,000,000     15,000,000.0            
Minimum revenue required to satisfy additional term loan facility           $ 100,000,000.0                  
Term Amendment                              
Line Of Credit Facility [Line Items]                              
Prepaid principal amount   25,000,000.0                          
Accrued interest prepaid   100,000                          
Prepaid exit fee   1,250,000                          
Minimum unrestricted cash amount   5,000,000.0                         $ 20,000,000.0
Term Amendment | Tranche 3                              
Line Of Credit Facility [Line Items]                              
Minimum revenue required to satisfy additional term loan facility   30,000,000.0                          
Periodic commitment amount   $ 15,000,000.0                         $ 10,000,000.0
Revolving Loan                              
Line Of Credit Facility [Line Items]                              
Amount available under revolving loan               0              
Debt maturity date           Jul. 01, 2024                  
Loan amount outstanding               2,200,000              
Borrowing base of accounts receivable (as a percent)           85.00%                  
Revolving Loan | Maximum                              
Line Of Credit Facility [Line Items]                              
Loan amount outstanding           $ 10,000,000.0                  
Revolving Loan | Other Assets                              
Line Of Credit Facility [Line Items]                              
Unamortized debt issuance costs               46,000              
Revolving Loan | London Interbank Offered Rate (LIBOR)                              
Line Of Credit Facility [Line Items]                              
Spread on variable rate basis (as a percent)           4.50%                  
Term Loan and Revolving Loan                              
Line Of Credit Facility [Line Items]                              
Amortization of debt issuance costs               $ 500,000 900,000 $ 400,000          
Deerfield Facility Agreement                              
Line Of Credit Facility [Line Items]                              
Derivative liability fair value                       $ 41,000,000.0      
Deerfield Facility Agreement | Convertible Note                              
Line Of Credit Facility [Line Items]                              
Term loan credit and security agreement entered date       Mar. 11, 2020                      
Debt maturity date       Mar. 11, 2025                      
Carrying Value       $ 60,000,000.0                      
Debt instrument interest rate       4.00%       12.00%           4.00%  
Debt instrument conversion rate per principal amount       14,634                      
Debt instrument principal amount per conversion unit       $ 1,000                      
Debt instrument conversion price | $ / shares       $ 4.10                      
Debt instrument principal       $ 60,000,000.0                      
Minimum percentage of number of shares of common stock owned by conversion of debt instrument       4.985%                      
Minimum percentage of change in ownership percentage entitling lender to demand repayment of all outstanding debt       50.00%                      
Debt instrument, call feature               Deerfield has the option to demand repayment of all outstanding principal, and any unpaid interest accrued thereon, in connection with a Major Transaction (as defined in the Convertible Note), which shall include, among others, any acquisition or other change of control of the Company; the sale or transfer of assets of the Company equal to more than 50% of the Enterprise Value (as defined in the Convertible Note) of the Company; a liquidation, bankruptcy or other dissolution of the Company; or if at any time shares of the Company’s common stock are not listed on an Eligible Market (as defined in the Convertible Note). The Convertible Note is subject to specified events of default, the occurrence of which would entitle Deerfield to immediately demand repayment of all outstanding principal and accrued interest on the Convertible Note. Such events of default include, among others, failure to make any payment under the Convertible Note when due, failure to observe or perform any covenant under the Deerfield Facility Agreement or the other transaction documents related thereto (subject to a standard cure period), the failure of the Company to be able to pay debts as they come due, the commencement of bankruptcy or insolvency proceedings against the Company, a material judgement levied against the Company and a material default by the Company under the Convertible Note.              
Unamortized debt discount and issuance costs               $ 12,500,000              
Amortization of debt issuance costs and discounts               $ 3,000,000.0 $ 2,200,000            
Deerfield Facility Agreement | Maximum                              
Line Of Credit Facility [Line Items]                              
Share price | $ / shares                       $ 1.50      
Deerfield Facility Agreement | Minimum                              
Line Of Credit Facility [Line Items]                              
Share price | $ / shares                       $ 30.00