Short-Term and Long-Term Investments Schedule of Investments in an Unrealized Loss Position (Details) - USD ($) $ in Thousands | Jun. 30, 2019 | Dec. 31, 2018 |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | | $ 202,019 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | | (380) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | | 143,370 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | | (525) |
Debt Securities, Available-for-sale, Unrealized Loss Position | | 345,389 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | | (905) |
Short-term investments | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | $ 4,995 | 180,775 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | (2) | (274) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | 52,735 | 143,370 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | (40) | (525) |
Debt Securities, Available-for-sale, Unrealized Loss Position | 57,730 | 324,145 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | (42) | (799) |
Short-term investments | U.S. treasury securities | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | 0 | 89,320 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | 0 | (143) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | 39,900 | 79,472 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | (29) | (314) |
Debt Securities, Available-for-sale, Unrealized Loss Position | 39,900 | 168,792 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | (29) | (457) |
Short-term investments | U.S. agency securities | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | 0 | 0 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | 0 | 0 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | 3,572 | 18,515 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | (3) | (61) |
Debt Securities, Available-for-sale, Unrealized Loss Position | 3,572 | 18,515 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | (3) | (61) |
Short-term investments | Corporate bonds | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | 4,995 | 91,455 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | (2) | (131) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | 9,263 | 45,383 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | (8) | (150) |
Debt Securities, Available-for-sale, Unrealized Loss Position | 14,258 | 136,838 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | $ (10) | (281) |
Long-term investments | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | | 21,244 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | | (106) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | | 0 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | | 0 |
Debt Securities, Available-for-sale, Unrealized Loss Position | | 21,244 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | | (106) |
Long-term investments | U.S. treasury securities | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | | 9,855 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | | (50) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | | 0 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | | 0 |
Debt Securities, Available-for-sale, Unrealized Loss Position | | 9,855 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | | (50) |
Long-term investments | Corporate bonds | | |
Schedule of Short-Term and Long-Term Investments | | |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months | | 11,389 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss | | (56) |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer | | 0 |
Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | | 0 |
Debt Securities, Available-for-sale, Unrealized Loss Position | | 11,389 |
Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss | | $ (56) |