Annual report pursuant to Section 13 and 15(d)

Net Income (Loss) Per Share Attributable to Common Stockholders - Summary of Common Stock Equivalents Excluded from Computation of Diluted Net Income (Loss) Per Share (Details)

v3.19.1
Net Income (Loss) Per Share Attributable to Common Stockholders - Summary of Common Stock Equivalents Excluded from Computation of Diluted Net Income (Loss) Per Share (Details) - shares
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share 3,524,187 5,995,724 5,953,317
Redeemable Convertible Preferred Stock      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share   5,063,404 5,063,404
Common stock options and award issued and outstanding      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share 3,422,958 835,320 796,907
Warrants to Purchase Redeemable Convertible Preferred Stock      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share   93,527 74,767
Warrants to Purchase Common Stock      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share 71,813 1,099 1,099
Early Exercised Shares of Common Stock      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share   2,374 17,140
Shares to be issued under ESPP      
Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net (loss) income per share 29,416