Income Taxes - Summary of Reconciliation of the Gross Unrecognized Tax Benefits (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
| Income Tax Disclosure [Abstract] | |||
| Unrecognized tax benefit beginning of year | $ 75,557 | $ 31,702 | $ 27,812 |
| Increases in current year tax positions | 19,638 | 43,855 | 6,301 |
| Increases in prior year tax positions | 967 | 0 | 114 |
| Decreases in prior year tax positions | (30,895) | 0 | (1,829) |
| Decreases in prior year tax positions due to settlements | (197) | 0 | (696) |
| Decreases in prior year tax positions due to lapse of statute of limitations | 0 | 0 | 0 |
| Unrecognized tax benefit end of year | $ 65,070 | $ 75,557 | $ 31,702 |