1/*! 2 * MoveTo - A lightweight scroll animation javascript library without any dependency. 3 * Version 1.7.1 (22-10-2017 02:28) 4 * Licensed under MIT 5 * Copyright 2017 Hasan AydoÄdu <[email protected]> 6 */ 7 8"use strict";var MoveTo=function(){function t(t,e,n,o){return t/=o,t--,-n*(t*t*t*t-1)+e}function e(t,e){var n={};return Object.keys(t).forEach(function(e){n[e]=t[e]}),Object.keys(e).forEach(function(t){n[t]=e[t]}),n}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function o(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=e(r,n),this.easeFunctions=e({easeOutQuart:t},o)}function i(t,e){var o={};return Object.keys(e).forEach(function(e){var i=t.getAttribute("data-mt-"+n(e));i&&(o[e]=isNaN(i)?i:parseInt(i,10))}),o}var r={tolerance:0,duration:800,easing:"easeOutQuart",callback:function(){}};return o.prototype.registerTrigger=function(t,n){var o=this;if(t){var r=t.getAttribute("href")||t.getAttribute("data-target"),a=r&&"#"!==r?document.getElementById(r.substring(1)):document.body,u=e(this.options,i(t,this.options));"function"==typeof n&&(u.callback=n);var c=function(t){t.preventDefault(),o.move(a,u)};return t.addEventListener("click",c,!1),function(){return t.removeEventListener("click",c,!1)}}},o.prototype.move=function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===t||t){o=e(this.options,o);var i="number"==typeof t?t:t.getBoundingClientRect().top,r=window.pageYOffset,a=null,u=void 0;i-=o.tolerance;var c=function e(c){var s=window.pageYOffset;a||(a=c-1);var f=c-a;if(u&&(i>0&&u>s||i<0&&u<s))return o.callback(t);u=s;var d=n.easeFunctions[o.easing](f,r,i,o.duration);window.scroll(0,d),f<o.duration?window.requestAnimationFrame(e):(window.scroll(0,i+r),o.callback(t))};window.requestAnimationFrame(c)}},o.prototype.addEaseFunction=function(t,e){this.easeFunctions[t]=e},o}();"undefined"!=typeof module?module.exports=MoveTo:window.MoveTo=MoveTo;
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.