XML 70 R58.htm IDEA: XBRL DOCUMENT v3.20.2
Debt (Details)
1 Months Ended 3 Months Ended 6 Months Ended
Jun. 30, 2020
USD ($)
$ / shares
shares
Apr. 30, 2020
USD ($)
D
Jun. 30, 2020
USD ($)
$ / shares
shares
Jun. 30, 2019
USD ($)
Jun. 30, 2020
USD ($)
$ / shares
shares
Jun. 30, 2019
USD ($)
Dec. 31, 2019
$ / shares
shares
Apr. 30, 2019
shares
Aug. 31, 2017
USD ($)
shares
Aug. 08, 2017
USD ($)
Sep. 30, 2015
USD ($)
Debt Instrument [Line Items]                      
Proceeds from Convertible Notes         $ 278,317,000            
Common Stock, Par or Stated Value Per Share | $ / shares $ 0.0001   $ 0.0001   $ 0.0001   $ 0.0001        
Issuance of common stock to Orbimed (in shares) | shares         25,000            
Issuance of common stock to Orbimed       $ 506,000   $ 506,000          
Common stock, shares issued | shares 79,717,000   79,717,000   79,717,000   78,005,000        
Debt, repayment amount         $ 79,200,000            
Payment of accrued interest         400,000            
Amortization of debt discount and issuance cost       215,000 2,180,000            
Interest expense     $ 4,038,000 2,721,000 6,502,000 5,445,000          
Convertible Notes                      
Debt Instrument [Line Items]                      
Aggregate principal amount $ 287,500,000 $ 287,500,000 287,500,000   $ 287,500,000            
Additional aggregate principal amount   37,500,000                  
Proceeds from Convertible Notes   $ 278,300,000                  
Per annum interest rate (as a percent)   2.25%     2.25%            
Interest expense         $ 3,378,000            
Unamortized debt discount $ 8,625,000   $ 8,625,000   $ 8,625,000            
Common Stock, Par or Stated Value Per Share | $ / shares $ 0.001   $ 0.001   $ 0.001            
Debt instrument, term   7 years                  
Effective interest rate (as a percent)   8.27%                  
Principal amount per convertible note   $ 1,000                  
Number of threshold consecutive trading days | D   30                  
Threshold business days | D   5                  
Convertible, If-converted value in excess of principal $ 39,800,000                    
Conversion price (in dollars per share) | $ / shares $ 38.79   $ 38.79   $ 38.79            
Initial conversion rate 25.7785                    
Convertible to shares of common stock 7,411,704                    
Percentage of principal amount converted 100.00%                    
Fair value of liability   $ 201,900,000                  
Carrying value $ 197,476,000   $ 197,476,000   $ 197,476,000            
Equity component 82,873,000 85,600,000 82,873,000   82,873,000            
Debt Instrument, debt discount, Equity Component 83,700,000   83,700,000   83,700,000            
Debt Instrument, debt discount, Liability Component 5,900,000   5,900,000   5,900,000            
Debt issuance costs 558,000 $ 600,000 558,000   558,000            
5 consecutive trading day period | Convertible Notes                      
Debt Instrument [Line Items]                      
Threshold trading days | D   5                  
Percentage of conversion price   98.00%                  
20 trading days period | Convertible Notes                      
Debt Instrument [Line Items]                      
Threshold trading days | D   20                  
Percentage of conversion price   130.00%                  
Redeemable for cash on or after May 2024                      
Debt Instrument [Line Items]                      
Number of threshold consecutive trading days | D   20                  
Threshold trading days | D   30                  
Percentage of conversion price   130.00%                  
Percentage of principal amount converted   100.00%                  
Debt Component | Convertible Notes                      
Debt Instrument [Line Items]                      
Unamortized debt discount 6,057,000   6,057,000   6,057,000            
Debt issuance costs 392,000   392,000   392,000            
Measurement input, risk free interest rate | Convertible Notes                      
Debt Instrument [Line Items]                      
Debt Instrument, Measurement Input   7.832                  
Level 2 | Convertible Notes                      
Debt Instrument [Line Items]                      
Fair value of liability 201,900,000   201,900,000   201,900,000            
Line Of Credit-UBS                      
Debt Instrument [Line Items]                      
Maximum borrowing capacity                     $ 50,000,000.0
Outstanding balance 49,000,000.0   49,000,000.0   49,000,000.0            
Accrued interest 1,100,000   1,100,000   1,100,000            
Interest expense     200,000 500,000 $ 500,000 900,000          
Line Of Credit-UBS | LIBOR                      
Debt Instrument [Line Items]                      
Spread on interest rate (as a percent)         1.10%            
2017 Term Loan                      
Debt Instrument [Line Items]                      
Maximum borrowing capacity                 $ 100,000,000.0    
Remaining borrowing capacity 50,000,000.0   50,000,000.0   $ 50,000,000.0       $ 50,000,000.0 $ 25,000,000.0  
Outstanding balance                   $ 75,000,000.0  
Unamortized debt discount 2,091,000   2,091,000   2,091,000            
Common stock, shares issued | shares               25,000 300,000    
Debt, repayment amount   $ 79,200,000                  
Amortization of debt discount and issuance cost       100,000 100,000 200,000          
Interest expense     400,000 $ 2,200,000 2,500,000 $ 4,500,000          
2017 Term Loan | Minimum                      
Debt Instrument [Line Items]                      
Remaining borrowing capacity $ 25,000,000.0   $ 25,000,000.0   $ 25,000,000.0            
2017 Term Loan | LIBOR                      
Debt Instrument [Line Items]                      
Spread on interest rate (as a percent)         8.75%            
Base interest rate (as a percent)         1.00%            
2017 Term Loan | LIBOR | Minimum borrowing capacity drawn                      
Debt Instrument [Line Items]                      
Spread on interest rate (as a percent)         8.25%            
Base interest rate (as a percent)         1.00%            
2017 Term Loan | Noncurrent assets                      
Debt Instrument [Line Items]                      
Debt instrument, fee amount                 $ 1,200,000