XML 16 R2.htm IDEA: XBRL DOCUMENT v3.21.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Sep. 30, 2021
Sep. 30, 2020
Cash flows from operating activities        
Net loss $ (71,959) $ (199,853) $ (510,505) $ (831,740)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:        
Depreciation and amortization 32,510 21,804 84,278 63,933
Stock-based compensation 300,898 192,080 794,571 550,300
Amortization of debt discount and issuance costs 1,109 24,503 3,301 56,478
(Gains) losses on debt and equity securities, net (121,007) 4,142 (223,527) 12,114
Induced conversion expense related to convertible notes 4,536   41,538  
Other (732) 1,924 4,019 (443)
Change in operating assets and liabilities, net of effect of acquisitions:        
Accounts receivable, net of allowance (132,908) (151,856) (178,044) (43,310)
Prepaid expenses and other current assets (4,191) (10,608) (15,562) (19,352)
Operating lease right-of-use assets 11,470 10,054 35,217 28,307
Other assets (4,204) 3,390 (5,440) 2,343
Accounts payable 11,084 3,435 17,430 11,448
Accrued expenses and other current liabilities 56,687 61,595 89,726 94,368
Operating lease liabilities (13,911) (15,760) (35,265) (40,739)
Other liabilities 2,170 322 5,615 1,194
Net cash provided by (used in) operating activities 71,552 (54,828) 107,352 (115,099)
Cash flows from investing activities        
Purchases of property and equipment (19,836) (14,727) (45,310) (41,385)
Strategic investments (735) (3,500) (33,510) (95,341)
Cash paid for acquisitions, net of cash acquired (37,375) (33,508) (176,591) (53,712)
Purchases of marketable securities (609,176) (1,148,344) (1,896,766) (2,576,892)
Sales of marketable securities 19,999 155,899 367,555 373,857
Maturities of marketable securities 492,921 668,930 2,006,744 1,898,176
Other (1,000)   35,100 (500)
Net cash provided by (used in) investing activities (155,202) (375,250) 257,222 (495,797)
Cash flows from financing activities        
Proceeds from issuance of convertible notes, net of issuance costs     1,137,227 988,582
Purchase of capped calls     (86,825) (100,000)
Proceeds from the exercise of stock options 4,045 2,434 11,755 26,041
Net cash provided by financing activities 4,045 2,434 1,062,157 914,623
Change in cash, cash equivalents, and restricted cash (79,605) (427,644) 1,426,731 303,727
Cash, cash equivalents, and restricted cash, beginning of period 2,052,879 1,252,631 546,543 521,260
Cash, cash equivalents, and restricted cash, end of period 1,973,274 824,987 1,973,274 824,987
Supplemental disclosures        
Cash paid for income taxes, net 1,940 1,309 16,228 2,679
Cash paid for interest $ 3,508 $ 5,113 $ 10,249 $ 10,378