Balance Sheet Details - Prepaid and Other Current Assets (Detail) - USD ($)
$ in Thousands
1 Months Ended
Jul. 31, 2016
Dec. 31, 2021
Dec. 31, 2020
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   $ 3,229 $ 18,050
Consideration transferred $ 1,900    
Cash received 600    
Payable due in consideration $ 1,300    
Interest rate (percent) 5.00%    
Annual principal payment $ 300    
Insurance      
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   1,144 900
Selling and marketing related costs      
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   1,134 15,414
Manufacturing related costs      
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   322 382
Flex note receivable      
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   0 250
Other      
Prepaid Expenses And Other Current Assets [Line Items]      
Prepaid and other current assets   $ 629 $ 1,104