A bug in WebKit used by Safari 10.1 is causing the problems in multiple libraries used in ripple-lib (bignumber.js, etc...). More information is available here.
We have tested the developer version of Safari (11) which seems to solve the problem. Please update your Safari to version 11.
If the issue persists, we advise you to use Google Chrome browser on PC or Mac.