XML 16 R2.htm IDEA: XBRL DOCUMENT v3.21.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2021
Mar. 31, 2020
Cash flows from operating activities    
Net loss $ (286,882) $ (305,936)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 23,498 21,204
Stock-based compensation 237,073 172,049
Amortization of debt discount and issuance costs 1,044 11,563
Other (15,682) 10,030
Change in operating assets and liabilities, net of effect of acquisitions:    
Accounts receivable, net of allowance 129,316 92,892
Prepaid expenses and other current assets (12,436) (12,867)
Operating lease right-of-use assets 11,198 8,716
Other assets (898) (1,155)
Accounts payable 56,505 5,734
Accrued expenses and other current liabilities 5,349 17,910
Operating lease liabilities (13,295) (13,994)
Other liabilities 2,096 137
Net cash provided by operating activities 136,886 6,283
Cash flows from investing activities    
Purchases of property and equipment (10,851) (10,891)
Non-marketable investments (1,350) (35,500)
Cash paid for acquisitions, net of cash acquired (108,912)  
Purchases of marketable securities (523,219) (552,675)
Sales of marketable securities 108,056 217,958
Maturities of marketable securities 816,931 752,685
Other (100)  
Net cash provided by investing activities 280,555 371,577
Cash flows from financing activities    
Proceeds from the exercise of stock options 4,453 3,130
Net cash provided by financing activities 4,453 3,130
Change in cash, cash equivalents, and restricted cash 421,894 380,990
Cash, cash equivalents, and restricted cash, beginning of period 546,543 521,260
Cash, cash equivalents, and restricted cash, end of period 968,437 902,250
Supplemental disclosures    
Cash paid for income taxes, net 11,008 808
Cash paid for interest $ 5,127 $ 4,899