XML 16 R2.htm IDEA: XBRL DOCUMENT v3.20.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Cash flows from operating activities        
Net loss $ (325,951) $ (255,174) $ (631,887) $ (565,581)
Adjustments to reconcile net loss to net cash used in operating activities:        
Depreciation and amortization 20,925 22,660 42,129 45,979
Stock-based compensation 186,171 195,574 358,220 358,130
Deferred income taxes (2,118) 291 (2,512) 25
Gain on divestiture   (39,883)   (39,883)
Amortization of debt discount and issuance costs 20,412   31,975  
Other (2,307) (1,399) 8,117 (3,316)
Change in operating assets and liabilities, net of effect of acquisitions:        
Accounts receivable, net of allowance 15,654 (39,751) 108,546 32,119
Prepaid expenses and other current assets 4,123 (4,761) (8,744) (4,490)
Operating lease right-of-use assets 9,537 11,809 18,253 21,621
Other assets 108 2,769 (1,047) 2,401
Accounts payable 2,279 21,009 8,013 24,099
Accrued expenses and other current liabilities 14,863 7,735 32,773 (6,588)
Operating lease liabilities (10,985) (16,781) (24,979) (27,251)
Other liabilities 735 113 872 768
Net cash used in operating activities (66,554) (95,789) (60,271) (161,967)
Cash flows from investing activities        
Purchases of property and equipment (15,767) (7,633) (26,658) (19,447)
Proceeds from divestiture, net   73,796   73,796
Non-marketable investments (56,341) (450) (91,841) (2,700)
Cash paid for acquisitions, net of cash acquired (20,204)   (20,204)  
Purchases of marketable securities (875,873) (283,520) (1,428,548) (809,040)
Sales of marketable securities   77,489 217,958 77,489
Maturities of marketable securities 476,561 324,033 1,229,246 782,660
Other (500) 1,000 (500) 1,029
Net cash provided by (used in) investing activities (492,124) 184,715 (120,547) 103,787
Cash flows from financing activities        
Proceeds from issuance of convertible notes, net of issuance costs 988,582   988,582  
Purchase of capped calls (100,000)   (100,000)  
Proceeds from the exercise of stock options 20,477 1,342 23,607 6,938
Net cash provided by financing activities 909,059 1,342 912,189 6,938
Change in cash, cash equivalents, and restricted cash 350,381 90,268 731,371 (51,242)
Cash, cash equivalents, and restricted cash, beginning of period 902,250 247,464 521,260 388,974
Cash, cash equivalents, and restricted cash, end of period 1,252,631 337,732 1,252,631 337,732
Supplemental disclosures        
Cash paid for income taxes, net 562 (399) 1,370 (79)
Cash paid for interest $ 366 $ 438 $ 5,265 $ 796