This is a straightforward conversion with decaffeinate, followed by manual fixups of lint errors etc.
Attach a file by drag & drop or click to upload