| Fair Value Measurements - (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021 | |
| Fair Value Measurements | ||||
| Change in fair value of warrant liability | $ (3,913) | $ (5,930) | $ (1,750) | $ 7,986 | 
| X | ||||||||||
| 
- Definition Amount of expense (income) related to adjustment to fair value of warrant liability. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 |