/** * Minified by jsDelivr using Terser v3.14.1. * Original file: /npm/vue-scrollto@2.18.1/vue-scrollto.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self)["vue-scrollto"]=n()}(this,function(){"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function n(){return(n=Object.assign||function(e){for(var n=1;n=o?function(e,n,o,r){for(var i=0;i0?t=a:n=a}while(Math.abs(f)>r&&++c3&&void 0!==arguments[3]?arguments[3]:{passive:!1};n instanceof Array||(n=[n]);for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if("object"===e(C)?D=C:"number"==typeof C&&(D.duration=C),!(n=g.$(A)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+A);t=g.$(D.container||L.container),o=D.duration||L.duration,r=D.easing||L.easing,i=D.hasOwnProperty("offset")?D.offset:L.offset,u=D.hasOwnProperty("force")?!1!==D.force:L.force,f=D.hasOwnProperty("cancelable")?!1!==D.cancelable:L.cancelable,a=D.onStart||L.onStart,c=D.onDone||L.onDone,l=D.onCancel||L.onCancel,s=void 0===D.x?L.x:D.x,d=void 0===D.y?L.y:D.y;var F=g.cumulativeOffset(t),H=g.cumulativeOffset(n);if("function"==typeof i&&(i=i(n,t)),w=function(e){var n=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(n=n||document.documentElement.scrollTop),n}(t),b=H.top-F.top+i,v=function(e){var n=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(n=n||document.documentElement.scrollLeft),n}(t),y=H.left-F.left+i,T=!1,O=b-w,S=y-v,!u){var M="body"===t.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:t.offsetHeight,N=w,V=N+M,$=b-i,k=$+n.offsetHeight;if($>=N&&k<=V)return void(c&&c(n))}if(a&&a(n),O||S)return"string"==typeof r&&(r=m[r]||m.ease),x=p.apply(p,r),g.on(t,h,P,{passive:!0}),window.requestAnimationFrame(j),function(){E=null,T=!0};c&&c(n)}}(),T=[];function E(e){var n=function(e){for(var n=0;n