Income Taxes - Summary of Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Income Tax Disclosure [Abstract] | ||
| Unrecognized tax benefits at beginning of year | $ 5,843 | $ 4,368 |
| Gross increase for tax positions of current years | 7,053 | 1,475 |
| Gross increase for tax positions of prior year | 1,645 | |
| Unrecognized tax benefits balance at end of year | $ 14,541 | $ 5,843 |