PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` exports.nano = time => +time[0] * 1e9 + +time[1]; exports.scale = { 'w': 6048e11, 'd': 864e11, 'h': 36e11, 'm': 6e10, 's': 1e9, 'ms': 1e6, 'μs': 1e3, 'ns': 1, }; exports.regex = { 'w': /^(w((ee)?k)?s?)$/, 'd': /^(d(ay)?s?)$/, 'h': /^(h((ou)?r)?s?)$/, 'm': /^(min(ute)?s?|m)$/, 's': /^((sec(ond)?)s?|s)$/, 'ms': /^(milli(second)?s?|ms)$/, 'μs': /^(micro(second)?s?|μs)$/, 'ns': /^(nano(second)?s?|ns?)$/, }; exports.isSmallest = function(uom, unit) { return exports.regex[uom].test(unit); }; exports.round = function(num, digits) { const n = Math.abs(num); return /[0-9]/.test(digits) ? n.toFixed(digits) : Math.round(n); };