XML 56 R42.htm IDEA: XBRL DOCUMENT v3.8.0.1
Net Income (Loss) Per Share Attributable to Common Stockholders - Computation of Numerators and Denominators of Basic and Diluted Net Income (Loss) Per Share Attributable to Common Stockholders (Detail)
$ / shares in Units, shares in Thousands, $ in Thousands
1 Months Ended 12 Months Ended
Feb. 29, 2016
USD ($)
Dec. 31, 2017
USD ($)
Class
$ / shares
shares
Dec. 31, 2016
USD ($)
Class
$ / shares
shares
Dec. 31, 2015
USD ($)
$ / shares
shares
Sep. 30, 2016
Class
Earnings Per Share          
Number of classes of common stock | Class   2 2   2
Numerator:          
Net income   $ 50,798 $ 20,482 $ 15,929  
Less: Income attributable to convertible preferred stock       (10,958)  
Add: Preferred stock modification       3,793  
Repurchase of convertible preferred stock $ (47,200)   (47,209)    
Net income (loss) attributable to common stockholders   $ 50,798 $ (26,727) $ 8,764  
Denominator:          
Weighted-average shares outstanding | shares   40,262 18,280 10,290  
Net income (loss) per share attributable to common stockholders—basic | $ / shares   $ 1.26 $ (1.46) $ 0.85  
Numerator:          
Net income (loss) attributable to common stockholders—basic   $ 50,798 $ (26,727) $ 8,764  
Add: Income attributable to dilutive convertible preferred stock       1,624  
Less: Preferred stock modification       (3,793)  
Net income (loss) attributable to common stockholders—diluted   $ 50,798 $ (26,727) $ 6,595  
Denominator:          
Weighted-average shares outstanding | shares   40,262 18,280 10,290  
Dilutive convertible preferred stock | shares       2,790  
Options to purchase common stock | shares   3,415   3,699  
Employee stock purchase plan shares | shares   268      
Restricted stock | shares   111      
Weighted-average shares outstanding—diluted | shares   44,056 18,280 16,779  
Net income (loss) per share attributable to common stockholders—diluted | $ / shares   $ 1.15 $ (1.46) $ 0.39