CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Unaudited) - USD ($) $ in Thousands |
Total |
Class A and B common stock |
Additional paid-in capital |
Accumulated other comprehensive loss |
Accumulated deficit |
| Beginning balance (in shares) at Dec. 31, 2017 |
|
395,194,075
|
|
|
|
| Beginning balance at Dec. 31, 2017 |
$ 786,333
|
$ 0
|
$ 1,630,386
|
$ (1,318)
|
$ (842,735)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
(23,986)
|
|
|
|
(23,986)
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
4,213,775
|
|
|
|
| Exercise of stock options |
31,354
|
|
31,354
|
|
|
| Vesting of early exercised stock options and other |
136
|
|
136
|
|
|
| Vesting of restricted stock units (in shares) |
|
1,625,534
|
|
|
|
| Change in other comprehensive loss |
24
|
|
|
24
|
|
| Share-based compensation |
48,356
|
|
48,356
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(649,305)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(27,651)
|
|
(27,651)
|
|
|
| Ending balance (in shares) at Mar. 31, 2018 |
|
400,384,079
|
|
|
|
| Ending balance at Mar. 31, 2018 |
809,980
|
$ 0
|
1,682,581
|
(1,294)
|
(871,307)
|
| Beginning balance (in shares) at Dec. 31, 2017 |
|
395,194,075
|
|
|
|
| Beginning balance at Dec. 31, 2017 |
786,333
|
$ 0
|
1,630,386
|
(1,318)
|
(842,735)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
(10,249)
|
|
|
|
|
| Ending balance (in shares) at Sep. 30, 2018 |
|
412,372,832
|
|
|
|
| Ending balance at Sep. 30, 2018 |
1,122,144
|
$ 0
|
1,986,059
|
(6,345)
|
(857,570)
|
| Beginning balance (in shares) at Mar. 31, 2018 |
|
400,384,079
|
|
|
|
| Beginning balance at Mar. 31, 2018 |
809,980
|
$ 0
|
1,682,581
|
(1,294)
|
(871,307)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
(5,906)
|
|
|
|
(5,906)
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
3,246,683
|
|
|
|
| Exercise of stock options |
23,267
|
|
23,267
|
|
|
| Vesting of early exercised stock options and other |
19
|
|
19
|
|
|
| Purchases under employee stock purchase plan (in shares) |
|
450,236
|
|
|
|
| Purchases under employee stock purchase plan |
12,578
|
|
12,578
|
|
|
| Vesting of restricted stock units (in shares) |
|
2,385,704
|
|
|
|
| Issuance of common stock in connection with business combination (in shares) |
|
2,658,139
|
|
|
|
| Issuance of common stock in connection with business combination |
140,154
|
|
140,154
|
|
|
| Change in other comprehensive loss |
(3,162)
|
|
|
(3,162)
|
|
| Share-based compensation |
54,810
|
|
54,810
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(773,120)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(40,924)
|
|
(40,924)
|
|
|
| Conversion feature of convertible senior notes, due 2023, net of allocated costs |
154,019
|
|
154,019
|
|
|
| Purchase of bond hedges in conjunction with issuance of convertible senior notes, due 2023 |
(172,586)
|
|
(172,586)
|
|
|
| Sale of warrants in conjunction with issuance of convertible senior notes, due 2023 |
112,125
|
|
112,125
|
|
|
| Recovery of common stock in connection with indemnification settlement agreement (in shares) |
|
(469,898)
|
|
|
|
| Recovery of common stock in connection with indemnification settlement agreement |
(2,745)
|
|
(2,745)
|
|
|
| Ending balance (in shares) at Jun. 30, 2018 |
|
407,881,823
|
|
|
|
| Ending balance at Jun. 30, 2018 |
1,081,629
|
$ 0
|
1,963,298
|
(4,456)
|
(877,213)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
19,643
|
|
|
|
19,643
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
3,200,992
|
|
|
|
| Exercise of stock options |
27,580
|
|
27,580
|
|
|
| Vesting of early exercised stock options and other (in shares) |
|
347
|
|
|
|
| Vesting of early exercised stock options and other |
12
|
|
12
|
|
|
| Vesting of restricted stock units (in shares) |
|
2,088,191
|
|
|
|
| Issuance of common stock in connection with business combination (in shares) |
|
1,542
|
|
|
|
| Issuance of common stock in connection with business combination |
853
|
|
853
|
|
|
| Change in other comprehensive loss |
(1,889)
|
|
|
(1,889)
|
|
| Share-based compensation |
60,945
|
|
60,945
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(800,065)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(57,324)
|
|
(57,324)
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
2,161,631
|
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 |
(9,305)
|
|
(9,305)
|
|
|
| Exercise of bond hedges in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
(2,161,629)
|
|
|
|
| Ending balance (in shares) at Sep. 30, 2018 |
|
412,372,832
|
|
|
|
| Ending balance at Sep. 30, 2018 |
1,122,144
|
$ 0
|
1,986,059
|
(6,345)
|
(857,570)
|
| Beginning balance (in shares) at Dec. 31, 2018 |
|
417,048,006
|
|
|
|
| Beginning balance at Dec. 31, 2018 |
1,120,501
|
$ 0
|
2,012,328
|
(6,053)
|
(885,774)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
(38,151)
|
|
|
|
(38,151)
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
3,588,052
|
|
|
|
| Exercise of stock options |
25,328
|
|
25,328
|
|
|
| Vesting of early exercised stock options and other (in shares) |
|
425
|
|
|
|
| Vesting of early exercised stock options and other |
36
|
|
36
|
|
|
| Vesting of restricted stock units (in shares) |
|
1,994,156
|
|
|
|
| Change in other comprehensive loss |
2,629
|
|
|
2,629
|
|
| Share-based compensation |
62,835
|
|
62,835
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(741,324)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(50,801)
|
|
(50,801)
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
43
|
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 |
1
|
|
1
|
|
|
| Exercise of bond hedges in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
(250,614)
|
|
|
|
| Recovery of common stock in connection with indemnification settlement agreement (in shares) |
|
(14,798)
|
|
|
|
| Recovery of common stock in connection with indemnification settlement agreement |
(789)
|
|
(789)
|
|
|
| Ending balance (in shares) at Mar. 31, 2019 |
|
421,623,946
|
|
|
|
| Ending balance at Mar. 31, 2019 |
1,121,589
|
$ 0
|
2,048,938
|
(3,424)
|
(923,925)
|
| Beginning balance (in shares) at Dec. 31, 2018 |
|
417,048,006
|
|
|
|
| Beginning balance at Dec. 31, 2018 |
1,120,501
|
$ 0
|
2,012,328
|
(6,053)
|
(885,774)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
$ (15,494)
|
|
|
|
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
7,881,289
|
|
|
|
|
| Ending balance (in shares) at Sep. 30, 2019 |
|
429,073,808
|
|
|
|
| Ending balance at Sep. 30, 2019 |
$ 1,249,794
|
$ 0
|
2,153,449
|
(2,387)
|
(901,268)
|
| Beginning balance (in shares) at Mar. 31, 2019 |
|
421,623,946
|
|
|
|
| Beginning balance at Mar. 31, 2019 |
1,121,589
|
$ 0
|
2,048,938
|
(3,424)
|
(923,925)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
(6,740)
|
|
|
|
(6,740)
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
2,671,530
|
|
|
|
| Exercise of stock options |
22,651
|
|
22,651
|
|
|
| Purchases under employee stock purchase plan (in shares) |
|
360,328
|
|
|
|
| Purchases under employee stock purchase plan |
18,942
|
|
18,942
|
|
|
| Vesting of restricted stock units (in shares) |
|
2,339,193
|
|
|
|
| Change in other comprehensive loss |
2,498
|
|
|
2,498
|
|
| Share-based compensation |
81,392
|
|
81,392
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(777,006)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(55,862)
|
|
(55,862)
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
86
|
|
|
|
| Issuance of common stock in conjunction with the conversion of senior notes, due 2022 |
2
|
|
2
|
|
|
| Exercise of bond hedges in conjunction with the conversion of senior notes, due 2022 (in shares) |
|
(84)
|
|
|
|
| Ending balance (in shares) at Jun. 30, 2019 |
|
426,217,993
|
|
|
|
| Ending balance at Jun. 30, 2019 |
1,184,472
|
$ 0
|
2,116,063
|
(926)
|
(930,665)
|
| Increase (Decrease) in Stockholders' Equity [Roll Forward] |
|
|
|
|
|
| Net income (loss) |
29,397
|
|
|
|
29,397
|
| Shares issued in connection with: |
|
|
|
|
|
| Exercise of stock options (in shares) |
|
1,621,707
|
|
|
|
| Exercise of stock options |
14,860
|
|
14,860
|
|
|
| Vesting of restricted stock units (in shares) |
|
2,035,852
|
|
|
|
| Change in other comprehensive loss |
(1,461)
|
|
|
(1,461)
|
|
| Share-based compensation |
79,907
|
|
79,907
|
|
|
| Tax withholding related to vesting of restricted stock units (in shares) |
|
(801,744)
|
|
|
|
| Tax withholding related to vesting of restricted stock units |
(57,381)
|
|
(57,381)
|
|
|
| Ending balance (in shares) at Sep. 30, 2019 |
|
429,073,808
|
|
|
|
| Ending balance at Sep. 30, 2019 |
$ 1,249,794
|
$ 0
|
$ 2,153,449
|
$ (2,387)
|
$ (901,268)
|