Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity - Additional Information (Details)

v3.23.2
Stockholders' Equity - Additional Information (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Sep. 16, 2022
USD ($)
$ / shares
shares
Sep. 15, 2022
shares
Jan. 22, 2021
USD ($)
$ / shares
shares
Dec. 08, 2020
USD ($)
$ / shares
shares
Apr. 09, 2019
USD ($)
Agreement
$ / shares
shares
Jun. 30, 2023
USD ($)
$ / shares
shares
Jun. 30, 2022
USD ($)
shares
Jun. 30, 2023
USD ($)
$ / shares
shares
Jun. 30, 2022
USD ($)
shares
Mar. 31, 2023
shares
Dec. 31, 2022
USD ($)
shares
Sep. 14, 2022
shares
Mar. 31, 2022
shares
Dec. 31, 2021
shares
Nov. 30, 2019
shares
Class Of Stock [Line Items]                              
Increase in common stock authorized   700,000,000       70,000,000   70,000,000     70,000,000 200,000,000      
Effective date of share increase amendment               Sep. 15, 2022              
Reverse stock split number of authorized common stock proportionately adjusted 70,000,000 700,000,000                          
Public offering price per share | $ / shares     $ 140                        
Remeasured fair value of warrants | $           $ 18,712   $ 18,712     $ 24,472        
Change in fair value of warrant liabilities | $           $ (3,105) $ 157 $ 5,760 $ 2,604            
Common stock, shares outstanding           20,708,356   20,708,356     20,263,116        
Reverse stock split fractional shares issued 0                            
Number of underwriting agreements | Agreement         2                    
Aggregate gross proceeds from public offerings | $         $ 70,000                    
Underwriting discounts and commissions and estimated offering expenses payable | $         $ 5,000                    
Preferred stock, shares outstanding           0   0     0        
Warrants issued to purchase common stock             211,709   211,709            
Series A Preferred Stock                              
Class Of Stock [Line Items]                              
Preferred stock, shares outstanding           0   0             666
Class A Warrants                              
Class Of Stock [Line Items]                              
Warrant exercise price of common stock per share | $ / shares           $ 86.25   $ 86.25              
Warrants expiration date               Oct. 10, 2022              
Maximum ownership percentage to total number stock issued and outstanding holder is prohibited from conversion               4.99%              
Notice period for change in owning percentage               61 days              
Common Stock                              
Class Of Stock [Line Items]                              
Common stock, shares outstanding           20,708,356 6,298,900 20,708,356 6,298,900 20,409,130 20,263,116   6,280,129 6,202,403  
Common Stock | Series A Preferred Stock                              
Class Of Stock [Line Items]                              
Conversion of series A stock into common stock                             66,600
Underwritten Public Offering                              
Class Of Stock [Line Items]                              
Shares issued     540,000                        
Gross proceeds from common stock | $     $ 75,600                        
Underwriting discounts and commissions and other transaction expenses | $     $ 5,100                        
Private Placement                              
Class Of Stock [Line Items]                              
Gross proceeds of private placement | $ $ 129,900     $ 90,500                      
Transaction costs | $ $ 10,100     $ 400                      
Change in fair value of warrant liabilities | $           $ (3,100) $ (200) $ (5,800) $ (2,600)            
Private Placement | Common Stock                              
Class Of Stock [Line Items]                              
Shares issued 6,387,173     1,031,250                      
Private Placement | 2022 Pre-Funded Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares $ 10.34                            
Warrants issued to purchase common stock 7,426,739                            
Private Placement | 2020 Pre-Funded Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares       $ 80                      
Warrants issued to purchase common stock       100,000                      
Private Placement | 2020 Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares       $ 79.9                      
Initial fair value of warrants at issuance | $       $ 19,300                      
Private Placement | 2020 Warrants | Maximum                              
Class Of Stock [Line Items]                              
Warrants issued to purchase common stock       282,809                      
Private Placement | 2022 Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares $ 10.33                            
Initial fair value of warrants at issuance | $ $ 64,700                            
Remeasured fair value of warrants | $           $ 18,700   $ 18,700     $ 24,500        
Private Placement | 2022 Warrants | Maximum                              
Class Of Stock [Line Items]                              
Warrants issued to purchase common stock 13,813,912     282,809                      
Private Placement | Merger Agreement                              
Class Of Stock [Line Items]                              
Common stock, shares outstanding 6,300,000                            
Public Offering | Common Stock Agreement | Class A Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares         $ 75.0                    
Warrants issued to purchase common stock         195,184                    
Public Offering | Preferred Stock Agreement | Series A Preferred Stock                              
Class Of Stock [Line Items]                              
Shares issued         666                    
Public Offering | Preferred Stock Agreement | Class A Warrants                              
Class Of Stock [Line Items]                              
Share price (in dollars per share) | $ / shares         $ 75,000                    
Warrants issued to purchase common stock         16,650                    
Public Offering | Common Stock | Common Stock Agreement                              
Class Of Stock [Line Items]                              
Shares issued         866,733