XML 21 R6.htm IDEA: XBRL DOCUMENT v3.22.4
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities:      
Net income (loss) $ 147,139 $ (60,018) $ (1,724)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:      
Depreciation and amortization 24,381 18,694 12,475
Amortization of issuance cost 198    
Coupon interest expense 211    
Purchase accounting adjustments to goodwill 58    
Loss on disposal and abandonment of intangible assets 110 146 320
Loss on disposal and impairment of property, equipment, and other assets, net 5,452 92 1,722
Realized and unrealized gains on strategic investments and marketable securities, net (98,943) (23,035)  
Stock-based compensation 106,176 303,331 133,572
Deferred income taxes 22,090 (81,303) (16,528)
Unrecognized tax benefits 3,475 (706) 671
Bond amortization (1,463) 5,217 3,345
Noncash lease expense 6,725 5,573 4,104
Provision for expected credit losses 699 (214) 1,302
Change in assets and liabilities:      
Accounts and notes receivable and contract assets (73,228) (205,769) (107,762)
Inventory (95,987) (18,272) (52,156)
Prepaid expenses and other assets (52,207) (40,158) (14,885)
Accounts payable, accrued and other liabilities 80,757 45,301 8,886
Deferred revenue 159,718 175,615 65,139
Net cash provided by operating activities 235,361 124,494 38,481
Cash flows from investing activities:      
Purchases of investments (764,374) (362,479) (656,522)
Proceeds from call / maturity of investments 72,138 718,617 379,839
Exercise of warrants of strategic investments (6,555)    
Proceeds from sale of strategic investments   14,546  
Purchases of property and equipment (55,802) (49,886) (72,629)
Proceeds from disposal of property and equipment 287 43 95
Purchases of intangible assets (307) (392) (241)
Strategic investments (74,250) (45,500) (7,068)
Business acquisition, net of cash acquired (2,104) (22,393)  
Net cash provided by (used in) investing activities (830,967) 252,556 (356,526)
Cash flows from financing activities:      
Net proceeds from equity offering (74) 105,514 306,779
Proceeds from options exercised   51,614 295
Income and payroll tax payments for net-settled stock awards (4,870) (331,309) (7,809)
Net proceeds from issuance of convertible senior notes 673,769    
Proceeds from issuance of warrants 124,269    
Purchase of convertible note hedge (194,994)    
Net cash provided by (used in) financing activities 598,100 (174,181) 299,265
Effect of exchange rate changes on cash and cash equivalents (3,380) (1,982) 1,976
Net increase (decrease) in cash and cash equivalents (886) 200,887 (16,804)
Cash and cash equivalents and restricted cash, beginning of period 356,438 155,551 172,355
Cash and cash equivalents and restricted cash, end of period $ 355,552 $ 356,438 $ 155,551