XML 43 R66.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Debt - Convertible Notes and Senior Secured Term Loan (Details) - Convertible Notes - 2016 Convertible Notes - USD ($)
$ in Thousands
Dec. 31, 2019
Dec. 31, 2018
Debt Instruments    
Principal $ 152,825 $ 400,000
Less: debt discount (2,974) (74,145)
Less: deferred financing (346) (4,115)
Net carrying value of the debt $ 149,505 $ 321,740