CONDENSED CONSOLIDATED STATEMENTS OF REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' EQUITY (DEFICIT) - USD ($) $ in Thousands | Total | Common Stock | Additional Paid-In Capital | Accumulated Other Comprehensive Income (Loss) | Accumulated Deficit |
Beginning balance, shares (in shares) at Dec. 31, 2017 | 308,373,000 | | | | |
Beginning balance at Dec. 31, 2017 | $ 1,465,399 | | | | |
Ending balance at Jun. 30, 2018 | 308,373,000 | | | | |
Ending balance at Jun. 30, 2018 | $ 1,465,399 | | | | |
Beginning balance (in shares) at Dec. 31, 2017 | | 126,771,000 | | | |
Beginning balance at Dec. 31, 2017 | (546,464) | $ 1 | $ 236,682 | $ (766) | $ (782,381) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Issuance of common stock for cash upon exercise of stock options, net (in shares) | | 339,000 | | | |
Issuance of common stock for cash upon exercise of stock options, net | 861 | | 861 | | |
Share-based compensation expense | 8,793 | | 8,793 | | |
Other comprehensive income (loss) | (1,010) | | | (1,010) | |
Net loss | (91,116) | | | | (91,116) |
Ending balance (in shares) at Jun. 30, 2018 | | 127,110,000 | | | |
Ending balance at Jun. 30, 2018 | $ (628,936) | $ 1 | 246,336 | (1,776) | (873,497) |
Beginning balance, shares (in shares) at Mar. 31, 2018 | 308,373,000 | | | | |
Beginning balance at Mar. 31, 2018 | $ 1,465,399 | | | | |
Ending balance at Jun. 30, 2018 | 308,373,000 | | | | |
Ending balance at Jun. 30, 2018 | $ 1,465,399 | | | | |
Beginning balance (in shares) at Mar. 31, 2018 | | 126,911,000 | | | |
Beginning balance at Mar. 31, 2018 | (594,963) | $ 1 | 241,951 | (1,825) | (835,090) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Issuance of common stock for cash upon exercise of stock options, net (in shares) | | 199,000 | | | |
Issuance of common stock for cash upon exercise of stock options, net | 426 | | 426 | | |
Share-based compensation expense | 3,959 | | 3,959 | | |
Other comprehensive income (loss) | 49 | | | 49 | |
Net loss | (38,407) | | | | (38,407) |
Ending balance (in shares) at Jun. 30, 2018 | | 127,110,000 | | | |
Ending balance at Jun. 30, 2018 | $ (628,936) | $ 1 | 246,336 | (1,776) | (873,497) |
Beginning balance, shares (in shares) at Dec. 31, 2018 | 308,373,000 | | | | |
Beginning balance at Dec. 31, 2018 | $ 1,465,399 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering (in shares) | (308,373,000) | | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering | $ (1,465,399) | | | | |
Ending balance at Jun. 30, 2019 | 0 | | | | |
Ending balance at Jun. 30, 2019 | $ 0 | | | | |
Beginning balance (in shares) at Dec. 31, 2018 | | 127,298,000 | | | |
Beginning balance at Dec. 31, 2018 | (594,563) | $ 1 | 252,212 | (1,421) | (845,355) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Release of restricted stock units (in shares) | | 20,257,000 | | | |
Shares repurchased for tax withholdings on release of restricted stock units (in shares) | | 0 | | | |
Shares repurchased for tax withholdings on release of restricted stock units | (302,675) | | (302,675) | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering (in shares) | | 308,622,000 | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering | 1,470,077 | $ 3 | 1,470,074 | | |
Issuance of common stock in connection with initial public offering net of underwriters' discounts and commissions and offering costs (in shares) | | 86,250,000 | | | |
Issuance of common stock in connection with initial public offering net of underwriters' discounts and commissions and offering costs | $ 1,563,383 | $ 1 | 1,563,382 | | |
Issuance of common stock for cash upon exercise of stock options, net (in shares) | 277,000 | 277,000 | | | |
Issuance of common stock for cash upon exercise of stock options, net | $ 702 | | 702 | | |
Share-based compensation expense | 1,135,293 | | 1,135,293 | | |
Other comprehensive income (loss) | 1,944 | | | 1,944 | |
Net loss | (1,200,921) | | | | (1,200,921) |
Ending balance (in shares) at Jun. 30, 2019 | | 542,704,000 | | | |
Ending balance at Jun. 30, 2019 | $ 2,073,240 | $ 5 | 4,118,988 | 523 | (2,046,276) |
Beginning balance, shares (in shares) at Mar. 31, 2019 | 308,373,000 | | | | |
Beginning balance at Mar. 31, 2019 | $ 1,465,399 | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering (in shares) | (308,373,000) | | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering | $ (1,465,399) | | | | |
Ending balance at Jun. 30, 2019 | 0 | | | | |
Ending balance at Jun. 30, 2019 | $ 0 | | | | |
Beginning balance (in shares) at Mar. 31, 2019 | | 127,371,000 | | | |
Beginning balance at Mar. 31, 2019 | (633,989) | $ 1 | 253,016 | (231) | (886,775) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Release of restricted stock units (in shares) | | 20,257,000 | | | |
Shares repurchased for tax withholdings on release of restricted stock units (in shares) | | 0 | | | |
Shares repurchased for tax withholdings on release of restricted stock units | (302,675) | | (302,675) | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering (in shares) | | 308,622,000 | | | |
Conversion of redeemable convertible preferred stock and redeemable convertible preferred stock warrants to common stock in connection with initial public offering | 1,470,077 | $ 3 | 1,470,074 | | |
Issuance of common stock in connection with initial public offering net of underwriters' discounts and commissions and offering costs (in shares) | | 86,250,000 | | | |
Issuance of common stock in connection with initial public offering net of underwriters' discounts and commissions and offering costs | 1,563,383 | $ 1 | 1,563,382 | | |
Issuance of common stock for cash upon exercise of stock options, net (in shares) | | 204,000 | | | |
Issuance of common stock for cash upon exercise of stock options, net | 592 | | 592 | | |
Share-based compensation expense | 1,134,599 | | 1,134,599 | | |
Other comprehensive income (loss) | 754 | | | 754 | |
Net loss | (1,159,501) | | | | (1,159,501) |
Ending balance (in shares) at Jun. 30, 2019 | | 542,704,000 | | | |
Ending balance at Jun. 30, 2019 | $ 2,073,240 | $ 5 | $ 4,118,988 | $ 523 | $ (2,046,276) |