| Share-Based Compensation (Tables) | 9 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sep. 30, 2019 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary of Restricted Ordinary Shares Activity | The following table summarizes restricted ordinary shares activity for the nine months ended September 30, 2019: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Assumptions Used to Determine Grant Date Fair Value of Employee and Director Options Granted | The assumptions that the Company used to determine the grant date fair value of employee and director options granted were as follows, presented on a weighted average basis: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary of Number of Options Outstanding and Weighted-average Exercise Price | The following table summarizes the number of options outstanding and the weighted-average exercise price: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary of Number of RSUs Granted and Weighted-average Grant Date Fair Value of RSUs | The table below shows the number of RSUs granted covering an equal number of the Company’s ordinary shares and the weighted-average grant date fair value of the RSUs granted: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary of Share-based Compensation Expense | The Company’s share-based compensation expense was classified in the condensed consolidated statements of operations and comprehensive loss as follows: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Performance RSUs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary of Number of RSUs Granted and Weighted-average Grant Date Fair Value of RSUs | The table below shows the number of Performance RSUs granted covering an equal number of the Company’s ordinary shares and the weighted-average grant date fair value of the Performance RSUs granted: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||