Quarterly report pursuant to Section 13 or 15(d)

Organization and Description of Business - Summary of Effects of the Adjustment on the Line items Within Consolidated Financial Statements (Detail)

v3.22.2.2
Organization and Description of Business - Summary of Effects of the Adjustment on the Line items Within Consolidated Financial Statements (Detail) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2022
Jun. 30, 2021
Dec. 31, 2021
Mar. 31, 2022
Jan. 01, 2022
Mar. 31, 2021
Dec. 31, 2020
Error Corrections and Prior Period Adjustments Restatement [Line Items]                  
Inventories $ 29,138   $ 29,138   $ 28,692        
Current assets 68,561   68,561   53,646        
Total Assets 364,295   364,295   344,989        
Accrued and other current liabilities 72,763   72,763   98,933        
Current liabilities 106,993   106,993   285,308        
Total Liabilities 293,319   293,319   368,628        
Accumulated deficit (1,185,296)   (1,185,296)   (801,632)   $ (801,632)    
Total Shareholders' Equity (Deficit) 70,976 $ 15,916 70,976 $ 15,916 (23,639) $ (32,277) (23,639) $ 29,511 $ 47,329
Total Liabilities and Shareholders' Equity (Deficit) 364,295   364,295   344,989        
Costs and expenses applicable to revenues (23,813) (22,917) (44,111) (45,001) (93,490)        
Gross profit 19,668 31,311 42,160 61,032 109,528        
Loss from operations (45,426) 933 (54,803) (665) (23,780)        
Loss from operations before income tax         (55,754)        
Income tax expense 5,391 7,884 10,266 15,175 21,736        
Net loss $ (373,562) $ (15,256) $ (383,664) $ (34,708) $ (77,490)        
Earnings per share $ (0.65) $ (0.09) $ (1.03) $ (0.2) $ (0.45)        
Previously Reported [Member]                  
Error Corrections and Prior Period Adjustments Restatement [Line Items]                  
Inventories         $ 30,447        
Current assets         55,401        
Total Assets         346,744        
Accrued and other current liabilities         99,446        
Current liabilities         285,821        
Total Liabilities         369,141        
Accumulated deficit         (800,390)   (800,390)    
Total Shareholders' Equity (Deficit)         (22,397)   (22,397)    
Total Liabilities and Shareholders' Equity (Deficit)         346,744        
Costs and expenses applicable to revenues         (91,735)        
Gross profit         111,283        
Loss from operations         (22,025)        
Loss from operations before income tax         (53,999)        
Income tax expense         22,249        
Net loss         $ (76,248)        
Earnings per share         $ (0.44)        
Revision of Prior Period, Adjustment [Member]                  
Error Corrections and Prior Period Adjustments Restatement [Line Items]                  
Inventories         $ (1,755)        
Current assets         (1,755)        
Total Assets         (1,755)        
Accrued and other current liabilities         (513)        
Current liabilities         (513)        
Total Liabilities         (513)        
Accumulated deficit         (1,242)   (1,242)    
Total Shareholders' Equity (Deficit)         (1,242)   $ (1,242)    
Total Liabilities and Shareholders' Equity (Deficit)         (1,755)        
Costs and expenses applicable to revenues         (1,755)        
Gross profit         (1,755)        
Loss from operations         (1,755)        
Loss from operations before income tax         (1,755)        
Income tax expense         (513)        
Net loss         $ (1,242)        
Earnings per share         $ (0.01)