Consolidated Statements of Cash Flows - USD ($) $ in Thousands |
6 Months Ended |
Jun. 30, 2018 |
Jun. 30, 2017 |
| Cash Flows From Operating Activities: |
|
|
| Net loss attributable to the Company |
$ (45,703)
|
$ (66,658)
|
| Adjustments to reconcile net loss to net cash used in operating activities: |
|
|
| Depreciation of property, plant and equipment, and leased property |
5,795
|
4,183
|
| Amortization of intangible assets |
335
|
290
|
| Stock-based compensation |
4,325
|
4,792
|
| Amortization of debt issuance costs and discount on convertible senior notes |
2,438
|
296
|
| Provision for common stock warrants |
5,806
|
8,513
|
| Change in fair value of common stock warrant liability |
(1,592)
|
14,576
|
| Income tax benefit |
(5,865)
|
|
| Changes in operating assets and liabilities that provide (use) cash: |
|
|
| Accounts receivable |
(16,178)
|
(3,345)
|
| Inventory |
6,488
|
(12,763)
|
| Prepaid expenses and other assets |
1,556
|
66
|
| Accounts payable, accrued expenses, and other liabilities |
(6,685)
|
(6,746)
|
| Accrual for loss contracts related to service |
|
(752)
|
| Deferred revenue |
4,101
|
(787)
|
| Net cash used in operating activities |
(45,179)
|
(58,335)
|
| Cash Flows From Investing Activities: |
|
|
| Purchases of property, plant and equipment |
(2,343)
|
(1,057)
|
| Purchase of intangible asset |
(879)
|
|
| Purchases for construction of leased property |
(13,138)
|
(19,488)
|
| Net cash used in investing activities |
(16,360)
|
(20,545)
|
| Cash Flows From Financing Activities: |
|
|
| Proceeds from exercise of warrants, net of transaction costs |
|
17,702
|
| Proceeds from exercise of stock options |
67
|
37
|
| Payments for redemption of preferred stock |
|
(3,700)
|
| Proceeds from public offerings, net of transaction costs |
|
19,534
|
| Proceeds from issuance of convertible senior notes, net |
95,856
|
|
| Purchase of capped call and common stock forward |
(43,500)
|
|
| Proceeds from borrowing of long-term debt, net of transaction costs |
|
621
|
| Principal payments on long-term debt |
(5,721)
|
(1,278)
|
| Proceeds from sale/leaseback transactions accounted for as capital leases |
20,000
|
3,613
|
| Repayments of finance obligations |
(17,760)
|
(4,321)
|
| Net cash provided by financing activities |
48,942
|
32,208
|
| Effect of exchange rate changes on cash |
(36)
|
158
|
| Decrease in cash, cash equivalents and restricted cash |
(12,633)
|
(46,514)
|
| Cash, cash equivalents, and restricted cash beginning of period |
68,055
|
100,636
|
| Cash, cash equivalents, and restricted cash end of period |
55,422
|
54,122
|
| Other Supplemental Cash Flow Information: |
|
|
| Cash paid for interest |
$ 4,915
|
3,848
|
| Noncash financing activity-conversion of preferred stock to common stock |
|
$ 7,778
|