sync from git://git.zx2c4.com/psd.js