1! function(a, n) { 2 "function" == typeof define && define.amd ? define(n) : "object" == typeof exports ? module.exports = n(require, exports, module) : a.CountUp = n() 3}(this, function(a, n, t) { 4 var e = function(a, n, t, e, i, r) { 5 function o(a) { 6 var n, t, e, i, r, o, s = a < 0; 7 if (a = Math.abs(a).toFixed(l.decimals), a += "", n = a.split("."), t = n[0], e = n.length > 1 ? l.options.decimal + n[1] : "", l.options.useGrouping) { 8 for (i = "", r = 0, o = t.length; r < o; ++r) 0 !== r && r % 3 === 0 && (i = l.options.separator + i), i = t[o - r - 1] + i; 9 t = i 10 } 11 return l.options.numerals.length && (t = t.replace(/[0-9]/g, function(a) { 12 return l.options.numerals[+a] 13 }), e = e.replace(/[0-9]/g, function(a) { 14 return l.options.numerals[+a] 15 })), (s ? "-" : "") + l.options.prefix + t + e + l.options.suffix 16 } 17 18 function s(a, n, t, e) { 19 return t * (-Math.pow(2, -10 * a / e) + 1) * 1024 / 1023 + n 20 } 21 22 function u(a) { 23 return "number" == typeof a && !isNaN(a) 24 } 25 var l = this; 26 if (l.version = function() { 27 return "1.9.3" 28 }, l.options = { 29 useEasing: !0, 30 useGrouping: !0, 31 separator: ",", 32 decimal: ".", 33 easingFn: s, 34 formattingFn: o, 35 prefix: "", 36 suffix: "", 37 numerals: [] 38 }, r && "object" == typeof r) 39 for (var m in l.options) r.hasOwnProperty(m) && null !== r[m] && (l.options[m] = r[m]); 40 "" === l.options.separator ? l.options.useGrouping = !1 : l.options.separator = "" + l.options.separator; 41 for (var d = 0, c = ["webkit", "moz", "ms", "o"], f = 0; f < c.length && !window.requestAnimationFrame; ++f) window.requestAnimationFrame = window[c[f] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[c[f] + "CancelAnimationFrame"] || window[c[f] + "CancelRequestAnimationFrame"]; 42 window.requestAnimationFrame || (window.requestAnimationFrame = function(a, n) { 43 var t = (new Date).getTime(), 44 e = Math.max(0, 16 - (t - d)), 45 i = window.setTimeout(function() { 46 a(t + e) 47 }, e); 48 return d = t + e, i 49 }), window.cancelAnimationFrame || (window.cancelAnimationFrame = function(a) { 50 clearTimeout(a) 51 }), l.initialize = function() { 52 return !!l.initialized || (l.error = "", l.d = "string" == typeof a ? document.getElementById(a) : a, l.d ? (l.startVal = Number(n), l.endVal = Number(t), u(l.startVal) && u(l.endVal) ? (l.decimals = Math.max(0, e || 0), l.dec = Math.pow(10, l.decimals), l.duration = 1e3 * Number(i) || 2e3, l.countDown = l.startVal > l.endVal, l.frameVal = l.startVal, l.initialized = !0, !0) : (l.error = "[CountUp] startVal (" + n + ") or endVal (" + t + ") is not a number", !1)) : (l.error = "[CountUp] target is null or undefined", !1)) 53 }, l.printValue = function(a) { 54 var n = l.options.formattingFn(a); 55 "INPUT" === l.d.tagName ? this.d.value = n : "text" === l.d.tagName || "tspan" === l.d.tagName ? this.d.textContent = n : this.d.innerHTML = n 56 }, l.count = function(a) { 57 l.startTime || (l.startTime = a), l.timestamp = a; 58 var n = a - l.startTime; 59 l.remaining = l.duration - n, l.options.useEasing ? l.countDown ? l.frameVal = l.startVal - l.options.easingFn(n, 0, l.startVal - l.endVal, l.duration) : l.frameVal = l.options.easingFn(n, l.startVal, l.endVal - l.startVal, l.duration) : l.countDown ? l.frameVal = l.startVal - (l.startVal - l.endVal) * (n / l.duration) : l.frameVal = l.startVal + (l.endVal - l.startVal) * (n / l.duration), l.countDown ? l.frameVal = l.frameVal < l.endVal ? l.endVal : l.frameVal : l.frameVal = l.frameVal > l.endVal ? l.endVal : l.frameVal, l.frameVal = Math.round(l.frameVal * l.dec) / l.dec, l.printValue(l.frameVal), n < l.duration ? l.rAF = requestAnimationFrame(l.count) : l.callback && l.callback() 60 }, l.start = function(a) { 61 l.initialize() && (l.callback = a, l.rAF = requestAnimationFrame(l.count)) 62 }, l.pauseResume = function() { 63 l.paused ? (l.paused = !1, delete l.startTime, l.duration = l.remaining, l.startVal = l.frameVal, requestAnimationFrame(l.count)) : (l.paused = !0, cancelAnimationFrame(l.rAF)) 64 }, l.reset = function() { 65 l.paused = !1, delete l.startTime, l.initialized = !1, l.initialize() && (cancelAnimationFrame(l.rAF), l.printValue(l.startVal)) 66 }, l.update = function(a) { 67 if (l.initialize()) { 68 if (a = Number(a), !u(a)) return void(l.error = "[CountUp] update(
68) - new endVal is not a number: " + a); 69 l.error = "", a !== l.frameVal && (cancelAnimationFrame(l.rAF), l.paused = !1, delete l.startTime, l.startVal = l.frameVal, l.endVal = a, l.countDown = l.startVal > l.endVal, l.rAF = requestAnimationFrame(l.count)) 70 } 71 }, l.initialize() && l.printValue(l.startVal) 72 }; 73 return e 74});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.