Credit Facilities | Credit Facilities Long-term debt consisted of the following: March 31, December 31, Term loan facility $ 163,584 $ 161,622 Revolving loan facility — — Convertible senior notes 84,500 84,500 Other debt 4,281 4,281 Debt discounts and deferred financing costs (48,883 ) (52,325 ) Long-term debt, including current portion 203,482 198,078 Less current portion — — Long-term debt $ 203,482 $ 198,078 Deerfield Facility Agreement, as Amended On April 3, 2017 (the “Agreement Date”), the Company entered into a facility agreement with affiliates of Deerfield Management Company, L.P. (collectively, “Deerfield”), pursuant to which Deerfield agreed to loan to the Company up to $120.0 million (the “Term Loan”), subject to the terms and conditions set forth in the facility agreement (the “Facility Agreement”). The Company drew the entire principal amount of the Term Loan on the Agreement Date. Deferred financing costs of $5.1 million were recorded on the Company’s Condensed Consolidated Balance Sheets as a direct reduction of the Term Loan, to be subsequently amortized as interest expense over the effective period of the Term Loan. On August 9, 2018 (the “New Agreement Date”), the Company entered into an amended and restated facility agreement (the “Amended Facility Agreement”) with Deerfield, pursuant to which Deerfield and the Company canceled and extinguished the $40.5 million principal amount of 3.25% Convertible Senior Notes due 2020 (the “3.25% Senior Notes”) held by Deerfield in exchange for an additional $40.5 million of indebtedness under the Amended Facility Agreement (as a last-out waterfall tranche under the Amended Facility Agreement). The Company entered into the Amended Facility Agreement with Deerfield in order to, among other things, allow for the Company’s entry into the New Credit Agreement (as defined in the “Deerfield Revolver” section below) and the transactions contemplated therein. The Amended Facility Agreement amends and restates in its entirety the Company’s Facility Agreement with Deerfield. Any outstanding principal under the Amended Facility Agreement will accrue interest at a rate equal to 5.00% payable in cash and 4.75% payable in kind. The Amended Facility Agreement contains the same operating covenants applicable to the New Credit Agreement. The Company may issue up to a maximum of 252,680 shares of the Company’s common stock to Deerfield pursuant to the Amended Facility Agreement in lieu of paying cash to satisfy a portion of its obligation to pay interest owed to Deerfield. Each share of the Company’s common stock issued to Deerfield in respect of an obligation to pay interest will be valued at 96% of the lesser of the (i) trailing 10-day volume weighted average price per share ending on the last trading date prior to issuance and (ii) the last closing bid price of the Company’s common stock on the last trading date prior to issuance. The Company’s obligations under the Amended Facility Agreement are secured by a first priority security interest in substantially all of the Company’s assets including intellectual property, with the priority of such security interest being pari passu with the security interest granted to Deerfield pursuant to the New Credit Agreement. Pursuant to the Amended Facility Agreement, Deerfield has the right, but not the obligation, to convert a portion of the outstanding principal amount of the loan into shares of the Company’s common stock at 96% of the trailing 3-day volume weighted average price per share on the date of conversion into a maximum of 1,430,001 shares of the Company’s common stock. The first $60.0 million of the principal amount of the loan (or exercise price of the Warrants elected to be paid through a reduction in principal, as described below) converted into the Company’s common stock will be credited first against principal and payable in kind interest payments due in 2021 and then against principal and payable in kind interest payments due in 2022. Any additional amounts will be split between principal and payment in kind interest payments due in 2022 and 2023. The Company also agreed to pay Deerfield a $6.1 million fee upon the termination of the Amended Facility Agreement and to reimburse Deerfield for all reasonable out-of-pocket expenses incurred by Deerfield in connection with the negotiation and documentation of the New Credit Agreement and the Amended Facility Agreement. The Company evaluated the August 9, 2018 transaction to determine whether it represented an extinguishment of previously issued debt instruments. The Company noted in the analysis that the cancellation of 3.25% Senior Notes and the issuance of the last-out waterfall tranche of term loans resulted in the removal of a conversion feature. The Company concluded that the conversion option was not substantive, and the removal of this feature did not trigger extinguishment accounting. Thus, the 3.25% Senior Notes were treated as non-convertible instruments for purposes of the analysis. The restructuring of each of the outstanding instruments were negotiated concurrently and in contemplation of each other, and required that the Company assess the impact of the modifications, replacement instruments, and Warrants on the entire portfolio of term debt instruments (the New Credit Agreement was assessed separately). Under this approach, the Company determined that the lender did not provide a concession in connection with the transactions completed on the New Agreement Date. Pursuant to the guidance in ASU 470-50, “Debt - Modifications and Extinguishments,” the Company determined that the exchange of instruments, the modifications of terms, the issuance of Warrants, and removal of the conversion feature resulted in changes to the debt portfolio that were not substantial. As of the New Agreement Date, the new carrying amount of the Term Loan under the Amended Facility Agreement was $113.1 million , representing a discount of $47.4 million from par value of $160.5 million . The discount was determined based on the fees and consideration paid to Deerfield in connection with the restructuring, the previously deferred but unamortized costs of the original debt, and the unamortized discounts on the original debt. Under modification accounting, fees and consideration paid to the lender in connection with the restructuring should be reflected as an additional debt discount and accreted as an adjustment to interest expense over the remaining term of the modified debt portfolio using the effective interest method. The Warrants issued to Deerfield (see “Deerfield Warrants” section below) were treated as consideration paid to the lender and their associated fair values were treated as an additional debt discount. Likewise, the bifurcated derivative for the share settlement provision in the Amended Facility Agreement, outlined in the disclosures above, was also reflected as a discount. The original discount and deferred fees from the existing debt will continue to be accreted to interest expense throughout the life of the Term Loan via the effective interest method. As of March 31, 2019 , the Company had a carrying amount of $122.2 million , inclusive of deferred financing costs of $4.0 million and interest paid in kind of $3.1 million , related to the Term Loan. As of March 31, 2019 , annual interest expense on the Term Loan will range from $4.2 million to $31.0 million from the New Agreement Date through maturity. Upon a change of control of the Company, if the acquirer satisfies certain conditions set forth in the Amended Facility Agreement, such acquirer may assume the outstanding principal amount under the Amended Facility Agreement without penalty. If such acquirer does not satisfy the conditions set forth in the Amended Facility Agreement, Deerfield may, at its option, require the Company to repay the outstanding principal balance under the Facility Agreement plus, depending on the timing of the change of control transaction, the Company may be required to pay a make-whole premium and will be required to pay a change of control fee. At any time on or after April 2, 2021 (the “First Amortization Date”), the Company has the right to prepay any amounts owed under the Amended Facility Agreement without premium or penalty, unless such prepayment occurs in connection with a change of control of the Company, in which case the Company must pay Deerfield a change of control fee unless such change of control occurs beyond a certain period after the maturity date. At any time prior to the First Amortization Date, any prepayment made by the Company will be subject to a make-whole premium and, if such prepayment occurs in connection with a change of control of the Company, a change of control fee. Any amounts drawn under the Amended Facility Agreement may become immediately due and payable upon customary events of default, as defined in the Amended Facility Agreement, or the consummation of certain change of control transactions, as described above. Deerfield Warrants In connection with the execution of the Facility Agreement and the Amended Facility Agreement, the Company issued warrants to Deerfield (the “2017 Deerfield Warrants” and the “2018 Deerfield Warrants,” respectively; collectively, the “Warrants”) as summarized below: Number of shares of common stock Exercise price 2017 Deerfield Warrants 647,001 $ 92.30 2018 Deerfield Warrants 875,001 $ 47.10 The number of shares of common stock of the Company into which the Warrants are exercisable and the exercise price of the Warrants will be adjusted to reflect any stock splits, recapitalizations or similar adjustments in the number of outstanding shares of common stock of the Company. The 2017 Deerfield Warrants expire on the 7 th anniversary of the Agreement Date. Subject to certain exceptions, the 2017 Deerfield Warrants contain limitations such that the Company may not issue shares of common stock of the Company to Deerfield upon the exercise of the 2017 Deerfield Warrants if such issuance would result in Deerfield beneficially owning in excess of 4.985% of the total number of shares of common stock of the Company then issued and outstanding. The holders of the 2017 Deerfield Warrants may exercise the 2017 Deerfield Warrants for cash, on a cashless basis or through a reduction of an amount of principal outstanding under the Term Loan. In connection with certain major transactions, the holders may have the option to convert the 2017 Deerfield Warrants, in whole or in part, into the right to receive the transaction consideration payable upon consummation of such major transaction in respect of a number of shares of common stock of the Company equal to the Black-Scholes value of the 2017 Deerfield Warrants, as defined therein, and in the case of other major transactions, the holders may have the right to exercise the 2017 Deerfield Warrants, in whole or in part, for a number of shares of common stock of the Company equal to the Black-Scholes value of the 2017 Deerfield Warrants. The Company measured the initial fair value of the shares underlying the 2017 Deerfield Warrants at $14.3 million , net of issuance costs of $0.4 million , and recorded the amount in additional paid-in-capital and as a direct reduction of the Term Loan, to be subsequently amortized as interest expense over the effective period of the Term Loan. The 2018 Deerfield Warrants are exercisable commencing on February 9, 2019, and expire on the 7th anniversary of the New Agreement Date. The holders of the 2018 Deerfield Warrants may exercise the 2018 Deerfield Warrants for cash, on a cashless basis, or by reduction of the principal owed to Deerfield pursuant to the Amended Facility Agreement. The Company measured the initial fair value of the shares underlying the 2018 Deerfield Warrants at $10.3 million , net of issuance costs of $0.1 million , and recorded the amount in additional paid-in-capital and as a direct reduction of the Term Loan, to be subsequently amortized as interest expense over the effective period of the Term Loan. Derivative Liabilities In accordance with Accounting Standards Codification (“ASC”) 815, “Derivatives and Hedging”, and ASC 470, “Debt”, the Company assessed whether any provisions within the Amended Facility Agreement constitute embedded derivatives requiring bifurcation from the host instrument, and assessed the fair values of any such features. The Company determined that the provision allowing the holders to convert a portion of the outstanding principal of the Term Loan into shares of the Company’s common stock at a discount effectively provided the holders with an embedded put option derivative meeting the definition of an “embedded derivative” pursuant to ASC 815. Consequently, the embedded derivative was bifurcated and accounted for separately. The Amended Facility Agreement retained a provision that, upon a change of control of the Company, Deerfield may declare the outstanding principal of the loans to be immediately due and payable in full, together with any accrued and unpaid interest, a “Change of Control” fee, and a specified make-whole amount (prior to prior to the First Amortization Date). This feature remained substantively the same as outlined under the previous Facility Agreement. The Company concluded that this provision continues to meet the definition of a derivative and requires bifurcation and separate accounting pursuant to ASC 815. As of the New Agreement Date, the Company measured the fair value of the above embedded derivatives at $16.4 million and recorded the amount in derivative liabilities in the Condensed Consolidated Balance Sheet. For the three months ended March 31, 2019 , the Company recorded expense of $2.0 million as a fair value adjustment of the derivative liabilities. The primary factor causing the change in the fair value of the derivative liabilities was the decrease in the Company’s stock price from the New Agreement Date. Adjustments to the fair value of the derivative liabilities are recognized within other income (expense), net in the Condensed Consolidated Statements of Operations and Comprehensive Loss. Deerfield Revolver On the Agreement Date, the Company entered into a Credit and Security Agreement (the “Credit Agreement”) with Deerfield ELGX Revolver, LLC (“Deerfield Revolver”) pursuant to which the Company could borrow up to the lesser of $50.0 million or its applicable borrowing base (the “Previous Revolver”). The Company recorded $1.2 million in deferred financing costs related to the Previous Revolver and presented these costs as a deferred asset and amortized as interest expense over the term of the Previous Revolver on the Company’s Condensed Consolidated Balance Sheets. Effective January 12, 2018, the Company terminated its Credit Agreement with Deerfield Revolver and paid $1.3 million in termination fees. Additionally, the Company wrote off $1.0 million in unamortized deferred financing costs as of the termination date. The total of $2.3 million was charged to loss on debt extinguishment on the Company’s Condensed Consolidated Statements of Operations and Comprehensive Loss. On the New Agreement Date, the Company entered into a Credit Agreement (the “New Credit Agreement”) with Deerfield Revolver, pursuant to which the Company may borrow up to the lesser of $50.0 million or its applicable borrowing base from time to time prior to April 2, 2022 (the “ABL Facility”). The borrowing base consists of eligible accounts, eligible inventory and eligible equipment. On the New Agreement Date, availability under the ABL Facility was $24.0 million . Any outstanding principal under the ABL Facility will accrue interest at a rate equal to the London Interbank Offered Rate (“LIBOR”) (with a 1% floor) plus 5.50% payable in cash. The interest rate will accrue on a minimum amount of $9.75 million , whether or not such amount is drawn (which amount in excess of the revolver usage accruing interest will not be subject to the unused line fee). The Company is subject to other fees in addition to interest on the outstanding principal amount under the ABL Facility, including a commitment fee of $0.5 million ( $0.2 million payable upon closing, $0.2 million payable on the 1st anniversary of the closing and $0.1 million payable on the 2nd anniversary of the closing), a $1.0 million fee upon the expiration of the ABL Facility, and an early commitment termination or reduction fee of 2.5% in the 1st year, 1.5% in the 2nd year, 0.5% in the 3rd year and 0% thereafter. The Company recorded $0.6 million in deferred financing costs, including the commitment fee, related to the ABL Facility and presented these costs as a deferred asset, to be subsequently amortized as interest expense over the term of the ABL Facility, on the Company’s Condensed Consolidated Balance Sheets. The New Credit Agreement has a $22.5 million minimum global liquidity requirement, net revenue tests, fixed charge coverage, capital expenditure limitations and operating expense tests. No event of default with respect the Company’s financial covenants had been declared as of March 31, 2019 . The New Credit Agreement also contains various representations and warranties, events of default, and affirmative and negative covenants, customary for financings of this type, including reporting requirements, requirements that the Company maintain timely reporting with the SEC and restrictions on the ability of the Company and its subsidiaries to incur additional liens on their assets, incur additional indebtedness and acquire and dispose of assets outside the ordinary course of business. The Company’s obligations under the New Credit Agreement are secured by a first priority security interest in substantially all of the Company’s assets including intellectual property, with the priority of such security interest being pari passu with the security interest granted to Deerfield pursuant to the Company’s Amended Facility Agreement (as described above). As of March 31, 2019 , the Company had no outstanding borrowings and $0.6 million in deferred financing costs relating to the ABL Facility. Assuming the Credit Amendment (as defined in Note 12 below) had been effective as of March 31, 2019 , the remaining borrowings available would have been $22.1 million . 3.25% Convertible Senior Notes due 2020 On November 2, 2015, the Company issued $125.0 million aggregate principal amount of 3.25% Senior Notes in an underwritten public offering. The 3.25% Senior Notes are governed by a base indenture (“Base Indenture”), as amended and supplemented by the second supplemental indenture relating to the 3.25% Senior Notes (the “Second Supplemental Indenture,” and together with the Base Indenture, the “ 3.25% Senior Notes Indenture”), dated as of November 2, 2015, by and between the Company and the Trustee (as defined therein). The 3.25% Senior Notes are senior unsecured obligations and are: senior in right of payment to the Company’s future indebtedness that is expressly subordinated in right of payment to the 3.25% Senior Notes; equal in right of payment to the Company’s existing and future unsecured indebtedness that is not so subordinated, including the 2.25% Senior Notes; effectively junior to any of the Company’s secured indebtedness to the extent of the value of the assets securing such indebtedness; and structurally junior to all existing and future indebtedness (including trade payables) incurred by the Company’s subsidiaries. The 3.25% Senior Notes accrue interest at a rate of 3.25% per year, payable semi-annually. The 3.25% Senior Notes mature on November 1, 2020, unless earlier purchased, redeemed or converted into shares of common stock in accordance with the terms of the 3.25% Senior Notes Indenture. On or after November 1, 2018, the Company may redeem for cash all or any portion of the 3.25% Senior Notes, at its option, but only if the closing sale price of the Company’s common stock for at least 20 trading days (whether or not consecutive) during any 30 consecutive trading day period ending on, and including, the second trading day immediately preceding the date on which the Company provides notice of redemption, exceeds 130% of the conversion price on each applicable trading day. The redemption date can be no sooner than 30 trading days from the date on which notice of redemption is provided to the holders, during which time, up until 2 trading days prior to the redemption, the holders may elect to convert all or a portion of the 3.25% Senior Notes into shares of the Company’s common stock. The redemption price will equal 100% of the principal amount of the 3.25% Senior Notes to be redeemed, plus accrued and unpaid interest until, but excluding, the redemption date. No sinking fund is provided for the 3.25% Senior Notes. The 3.25% Senior Notes are convertible at the option of the holders: (i) in the calendar quarter following any quarter in which, for at least 20 out of the 30 consecutive trading days (whether or not consecutive) ending on the last day of the quarter, the closing price of the Company’s common stock is more than 130% of the then-current conversion price of the 3.25% Senior Notes; (ii) in the 5 business days following any 5 -day period in which the trading price per $1,000 note was less than 98% of the product of the closing sale price of the Company’s common stock and the current conversion rate; (iii) in the event that the Company has provided notice of redemption, but no later than 2 trading days prior to the Company’s proposed redemption date; or (iv) upon the occurrence of specified corporate events. On or after August 1, 2020 until the close of business on the second scheduled trading day immediately preceding the stated maturity date, holders may surrender their 3.25% Senior Notes for conversion at any time, regardless of the foregoing circumstances. The initial conversion rate of the 3.25% Senior Notes is 8.9431 shares of the Company’s common stock per $1,000 principal amount of the 3.25% Senior Notes, which is equivalent to an initial conversion price of approximately $111.82 per share. The conversion rate is subject to adjustment upon the occurrence of certain specified events. Upon conversion, the Company will at its election pay or deliver, as the case may be, cash, shares of the Company’s common stock or a combination of cash and shares of the Company’s common stock. If a fundamental change (as defined in the 3.25% Senior Notes Indenture) occurs prior to the stated maturity date, holders may require the Company to purchase for cash all or any portion of their 3.25% Senior Notes at a fundamental change purchase price equal to 100% of the principal amount of the 3.25% Senior Notes to be purchased, plus accrued and unpaid interest. The 3.25% Senior Notes Indenture contains customary terms and covenants and events of default with respect to the 3.25% Senior Notes. If an event of default (as defined in the 3.25% Senior Notes Indenture) occurs and is continuing, either the Trustee or the holders of at least 25% in aggregate principal amount of the outstanding 3.25% Senior Notes may declare the principal amount of the 3.25% Senior Notes to be due and payable immediately by notice to the Company (with a copy to the Trustee). If an event of default arising out of certain events of bankruptcy, insolvency or reorganization involving the Company or a significant subsidiary (as set forth in the 3.25% Senior Notes Indenture) occurs with respect to the Company, the principal amount of the 3.25% Senior Notes and accrued and unpaid interest, if any, will automatically become immediately due and payable. Upon issuance and through December 31, 2015, the Company was not required to separate the conversion option from the 3.25% Senior Notes under ASC 815, “Derivatives and Hedging”. However, because the Company has the ability to settle the 3.25% Senior Notes in cash, common stock or a combination of cash and common stock, the Company applied the cash conversion guidance contained in ASC 470-20, “Debt With Conversion and other Options”, and accounted for the 3.25% Senior Notes by allocating the issuance proceeds between the liability-classified debt component and a separate equity component attributable to the conversion option. The equity component is classified in stockholders’ equity and the resulting discount on the liability component is accreted such that interest expense equals the Company’s borrowing rate for nonconvertible loan products of similar duration. The separation was performed by first determining the fair value of a similar debt that does not have an associated equity component. That amount was then deducted from the initial proceeds of the 3.25% Senior Notes as a whole to arrive at a residual amount, which was allocated to the conversion feature that is classified as equity. The initial fair value of the indebtedness was $97.8 million resulting in a $27.2 million allocation to the embedded conversion option. The embedded conversion option was recorded in stockholders’ equity and as a debt discount, to be subsequently accreted to interest expense over the term of the 3.25% Senior Notes. Underwriting discounts and commissions and offering expenses totaled $3.7 million and were allocated between the liability and the equity components in proportion to the allocation of proceeds and accounted for as debt issuance costs and equity issuance costs, respectively. As a result, $2.9 million attributable to the indebtedness was recorded as deferred financing costs, to be subsequently amortized as interest expense over the term of the 3.25% Senior Notes, and $0.8 million attributable to the equity component was recorded as a reduction to additional paid-in-capital in stockholders’ equity. As of March 31, 2019 , the Company had outstanding borrowings of $77.7 million , and deferred financing costs of $0.7 million , related to the 3.25% Senior Notes. There were no principal payments due during the term. Annual interest expense on these 3.25% Senior Notes will range from $6.4 million to $7.2 million through maturity. The value of the derivative liabilities was estimated using a “with” and “without” approach utilizing Level 3 inputs. In the “with” scenario, the value of the Senior Notes were estimated in a binomial lattice model that considered all terms of the Senior Notes, including the conversion features, with a range of probabilities and assumptions related to the timing and likelihood of the conversion features being exercised by either the Company or the holders of the Senior Notes. In the “without” scenario the value of the Senior Notes absent the conversion options was estimated. The difference between the values estimated in the “with” and “without” scenarios represents the value of the derivative liabilities. Changes in the value of the derivative liabilities were driven by changes in the Company’s stock price, expected volatility, credit spreads and market yields. Japan Lifeline Co., Ltd. Subordinated Promissory Note On November 20, 2018, the Company issued a subordinated promissory note to Japan Lifeline Co., Ltd. (“JLL”), the Company’s Japanese distributor, pursuant to which the Company converted a $4.3 million refund payable to a note payable (the “JLL Note”). The amount owing under the JLL Note accrues interest at a rate of 2.5% per annum and, subject to the terms of the subordination agreement among the Company, JLL and certain Deerfield entities entered into on November 20, 2018, would become due and payable on the earlier of: (i) December 31, 2023; or (ii) the date the JLL Note is declared due and payable by JLL upon the occurrence of certain events of default. Principal Maturities of Long-term Debt The aggregate principal maturities of long-term debt as of March 31, 2019 are as follows: Term loan facility Convertible senior notes Other debt Total Year ending December 31, 2019 $ — $ — $ — $ — 2020 — 84,500 — 84,500 2021 40,768 — — 40,768 2022 61,408 — — 61,408 2023 61,408 — 4,281 65,689 $ 163,584 $ 84,500 $ 4,281 $ 252,365 |