XML 17 R6.htm IDEA: XBRL DOCUMENT v3.21.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Operating activities    
Net loss $ (179,879) $ (95,009)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 5,262 4,036
Premium amortization and discount accretion on investment securities 3,790 1,887
(Gain) loss on investments (35)  
Stock-based compensation 58,335 19,374
Non-cash lease expense 5,357 3,880
Amortization of debt discount and issuance cost 610 2,180
Inventory reserve adjustments 612  
Other non-cash benefits (charges) 117 (341)
Provision for credit losses 63 1,445
Loss on Debt Extinguishment   5,848
Changes in operating assets and liabilities    
Accounts receivable (21,628) (5,972)
Inventory (8,991) (5,410)
Prepaid expenses and other current assets (7,466) (5,610)
Other assets (23) 99
Accounts payable 12,313 (4,684)
Accrued compensation 471 495
Other accrued liabilities 24,374 6,602
Deferred revenue (38,721) (4,900)
Net cash used in operating activities (145,439) (76,080)
Investing activities    
Purchases of investments (71,054) (266,139)
Proceeds from sale of investments 31,144 11,500
Proceeds from maturity of investments 205,510 142,815
Purchases of property and equipment, net (18,891) (10,130)
Net cash provided by (used in) investing activities 146,709 (121,954)
Financing activities    
Proceeds from exercise of stock options 6,829 10,808
Proceeds from issuance of common stock under employee stock purchase plan 6,085 3,062
Proceeds from Convertible Note, net of issuance costs   278,317
Loan payment   (78,757)
Net cash provided by financing activities 12,914 213,430
Net increase in cash, cash equivalents and restricted cash 14,184 15,396
Cash, cash equivalents and restricted cash, beginning of period 48,855 61,981
Cash, cash equivalents and restricted cash, end of period 63,039 77,377
Supplemental disclosure of cash flow information:    
Cash paid for interest 3,538 2,976
Non-cash investing and financing activities:    
Purchases of property and equipment in accounts payable and accruals $ 4,688 $ 255