XML 74 R61.htm IDEA: XBRL DOCUMENT v3.19.2
Notes Payable - Additional Information (Detail) - USD ($)
6 Months Ended 12 Months Ended
May 23, 2018
May 10, 2017
Jun. 30, 2019
Jun. 30, 2018
Dec. 31, 2018
Apr. 30, 2019
Oct. 23, 2018
Apr. 28, 2017
Dec. 31, 2016
Debt Instrument [Line Items]                  
Minimum advances available under facility           $ 5,000,000.0      
Debt covenant, market capitalization     $ 250,000,000            
Loss on extinguishment of notes payable     $ 0 $ (1,400,000)          
Issue of warrants to purchase shares of company's common stock (in shares)               24,900,000  
Notes Payable                  
Debt Instrument [Line Items]                  
Debt issuance cost                 $ 300,000
Hercules Loan Agreement                  
Debt Instrument [Line Items]                  
Debt discount liability, facility fee recorded as debt discount         $ 300,000        
Debt instrument, redemption price amount         700,000        
Hercules Loan Agreement | Notes Payable | Interest Expense                  
Debt Instrument [Line Items]                  
Loss on extinguishment of notes payable         (1,400,000)        
Hercules Loan Agreement | Term Loan                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount $ 40,000,000.0                
Debt instrument amortization period 18 months                
Debt discount liability, facility fee recorded as debt discount $ 400,000                
Debt issuance costs recorded as debt discount $ 1,100,000                
Prepayment fee percentage 6.95%                
Percentage outstanding principal balance of term loans required to be maintained 120.00%                
Percentage of maintained cash and investment property in accounts of aggregate cash of parent and subsidiaries 80.00%                
Amount of investment to any future equity offering $ 2,000,000.0                
Debt instrument repayment period after interest only period 18 months                
Hercules Loan Agreement | Term Loan | Fixed Rate and Prime Rate                  
Debt Instrument [Line Items]                  
Term loans interest rate 5.00%                
Hercules Loan Agreement | Term Loan | Maximum                  
Debt Instrument [Line Items]                  
Term loans fixed interest rate 10.05%                
Hercules Loan Agreement | Term Loan | First Year After Initial Funding Date                  
Debt Instrument [Line Items]                  
Prepayment fee percentage 3.00%                
Hercules Loan Agreement | Term Loan | Second Year After Initial Funding Date                  
Debt Instrument [Line Items]                  
Prepayment fee percentage 2.00%                
Hercules Loan Agreement | Term Loan | Second Year After Initial Funding Date And Thereafter                  
Debt Instrument [Line Items]                  
Prepayment fee percentage 1.00%                
Hercules Loan Agreement | Term Loan | First Tranche                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount $ 20,000,000.0                
Hercules Loan Agreement | Term Loan | Tranche Two                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount             $ 10,000,000.0    
Hercules Loan Agreement | Term Loan | Tranche Four                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount           $ 20,000,000.0      
Loan and Security Agreement | Term Loan                  
Debt Instrument [Line Items]                  
Debt issuance costs recorded as debt discount   $ 1,200,000              
Warrant expiration period   5 years              
Loan and Security Agreement | Term Loan | Innovatus Life Sciences Lending Fund I, LP                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount   $ 17,000,000.0              
Debt instrument amortization period   24 months              
Term loans fixed interest rate   11.00%              
Interest only payment period   24 months              
Debt instrument repayment period after interest only period   2 years              
Term loans fixed interest rate, paid in-kind percentage   2.50%              
Loan and Security Agreement | Term Loan | First Tranche                  
Debt Instrument [Line Items]                  
Debt discount liability, facility fee recorded as debt discount   $ 200,000              
Warrants, exercise price (in dollars per share)   $ 1.00              
Unamortized debt discount         $ 0        
Loan and Security Agreement | Term Loan | First Tranche | Innovatus Life Sciences Lending Fund I, LP                  
Debt Instrument [Line Items]                  
Term loans aggregate principal amount   $ 14,000,000.0              
Loan and Security Agreement | Term Loan | First Tranche | Maximum                  
Debt Instrument [Line Items]                  
Issue of warrants to purchase shares of company's common stock (in shares)   1,244,746