angular-smooth-scrollbar
Advanced tools
Comparing version 0.1.5 to 0.2.0
{ | ||
"name": "angular-smooth-scrollbar", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Dolphin Wood <dolphin.w.e@gmail.com>" |
@@ -6,3 +6,3 @@ (function(angular) { | ||
app.controller('GetDataCtrl', function($scope, ScrollbarService) { | ||
app.controller('GetDataCtrl', function($scope, $timeout, ScrollbarService) { | ||
$scope.offset = { | ||
@@ -25,9 +25,9 @@ x: 0, | ||
var lastTime, mustRun; | ||
var scrollbarPromise = ScrollbarService.getInstance('getData'); | ||
ScrollbarService.getInstance('getData', function(scrollbar) { | ||
console.log(scrollbar) | ||
scrollbarPromise.then(function (scrollbar) { | ||
$scope.offset = scrollbar.offset; | ||
$scope.$apply(); | ||
var lastTime, mustRun; | ||
scrollbar.addListener(function(status) { | ||
@@ -37,9 +37,7 @@ var now = (new Date()).getTime(); | ||
clearTimeout(mustRun); | ||
$timeout.cancel(mustRun); | ||
mustRun = setTimeout(function() { | ||
$scope.$apply(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}); | ||
mustRun = $timeout(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}, 300); | ||
@@ -50,8 +48,11 @@ | ||
lastTime = now; | ||
$scope.$apply(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}); | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
$scope.$apply(); | ||
}); | ||
}); | ||
scrollbarPromise.then(function (scrollbar) { | ||
console.log(scrollbar) | ||
var count = 0; | ||
@@ -61,15 +62,13 @@ scrollbar.infiniteScroll(function() { | ||
$scope.loading = 'the end'; | ||
return; | ||
} | ||
} else { | ||
$scope.loading = 'loading...'; | ||
$scope.$apply(function() { | ||
$scope.loading = 'loading...'; | ||
setTimeout(function() { | ||
$timeout(function() { | ||
$scope.loading = 'pending...'; | ||
article.push(paragraphTmpl); | ||
article.push(paragraphTmpl); | ||
$scope.$apply(); | ||
article.push(paragraphTmpl, paragraphTmpl); | ||
scrollbar.update(); | ||
}, 500); | ||
}); | ||
} | ||
$scope.$apply(); | ||
}); | ||
@@ -76,0 +75,0 @@ }); |
@@ -1,1 +0,2 @@ | ||
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(1)["default"],o=n(5)["default"],i=n(6);n(83),n(91),n(100),angular.module("SmoothScrollbar",[]).service("ScrollbarService",function(){function t(){o(this,t),this.scrollbarInstances={},this.deferreds={}}return r(t,[{key:"getInstance",value:function(t,e){if("function"==typeof e){var n=this.scrollbarInstances,r=this.deferreds;setTimeout(function(){return n.hasOwnProperty(t)?e(n[t]):(r[t]=r[t]||[],void r[t].push(e))})}}},{key:"createInstance",value:function(t,e,n){var r=this.scrollbarInstances,o=this.deferreds;if(r.hasOwnProperty(t))return r[t];var a=r[t]=new i.SmoothScrollbar(e,n);o.hasOwnProperty(t)&&(o[t].forEach(function(t){setTimeout(function(){return t(a)})}),delete o[t])}},{key:"destroyInstance",value:function(t){var e=this.scrollbarInstances,n=e[t];n&&(n.destroy(),delete e[t])}}]),t}()).directive("scrollbar",["ScrollbarService",function(t){return{restrict:"AE",transclude:!0,template:'\n <article class="scroll-content" ng-transclude></article>\n <aside class="scrollbar-track scrollbar-track-x">\n <div class="scrollbar-thumb scrollbar-thumb-x"></div>\n </aside>\n <aside class="scrollbar-track scrollbar-track-y">\n <div class="scrollbar-thumb scrollbar-thumb-y"></div>\n </aside>\n ',scope:{name:"@scrollbar",speed:"@",stepLength:"@",easingDuration:"@",easingCurve:"@"},link:function(e,n){var r=e.name,o=e.speed,i=e.stepLength,a=e.easingDuration,u=e.easingCurve;if(!r)throw new Error("scrollbar name is required");t.destroyInstance(e.name),t.createInstance(r,n[0],{speed:o,stepLength:i,easingDuration:a,easingCurve:u})}}}])},function(t,e,n){"use strict";var r=n(2)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){t.exports={"default":n(3),__esModule:!0}},function(t,e,n){var r=n(4);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";var r=n(5)["default"],o=n(7)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),a=n(82),u=function s(t,e){var n=this,u=e.speed,c=e.stepLength,l=e.easingDuration,f=e.easingCurve;r(this,s);var d=i.findChild(t,"scrollbar-track-x"),h=i.findChild(t,"scrollbar-track-y");o(this,{target:{value:{container:t,content:i.findChild(t,"scroll-content"),xAxis:{track:d,thumb:i.findChild(d,"scrollbar-thumb-x")},yAxis:{track:h,thumb:i.findChild(h,"scrollbar-thumb-y")}}},offset:{value:{x:0,y:0},writable:!0},__listeners:{value:[],writable:!0},__motionBuilder:{value:i.motionBuilder(f)},__updateThrottle:{value:i.debounce(this.update.bind(this))},__scrollAnimation:{writable:!0},__lastScrollTime:{writable:!0},__resetScrollTime:{value:i.debounce(function(){n.__lastScrollTime=void 0},{leading:!1,duration:100})}}),this.showTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?"both":arguments[0];t=t.toLowerCase(),"both"===t&&(d.classList.add("show"),h.classList.add("show")),"x"===t&&d.classList.add("show"),"y"===t&&h.classList.add("show")},this.hideTrack=i.debounce(function(){d.classList.remove("show"),h.classList.remove("show")},!1,1e3),this.__initScrollbar({speed:parseFloat(u)||a.DEFAULT_OPTIONS.SPEED,stepLength:parseFloat(c)||a.DEFAULT_OPTIONS.STEP_LENGTH,easingDuration:parseFloat(l)||a.DEFAULT_OPTIONS.EASING_DURATION})};e.SmoothScrollbar=u},function(t,e,n){t.exports={"default":n(8),__esModule:!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){return r.setDescs(t,e)}},function(t,e,n){"use strict";var r=n(10)["default"],o=n(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=n(28);r(e,o(i,r));var a=n(29);r(e,o(a,r));var u=n(34);r(e,o(u,r));var s=n(36);r(e,o(s,r));var c=n(64);r(e,o(c,r));var l=n(66);r(e,o(l,r));var f=n(67);r(e,o(f,r));var d=n(68);r(e,o(d,r));var h=n(65);r(e,o(h,r));var v=n(35);r(e,o(v,r))},function(t,e,n){"use strict";var r=n(11)["default"],o=n(24)["default"],i=n(2)["default"];e["default"]=function(t,e){for(var n=r(e),a=0;a<n.length;a++){var u=n[a],s=o(e,u);s&&s.configurable&&void 0===t[u]&&i(t,u,s)}return t},e.__esModule=!0},function(t,e,n){t.exports={"default":n(12),__esModule:!0}},function(t,e,n){var r=n(4);n(13),t.exports=function(t){return r.getNames(t)}},function(t,e,n){n(14)("getOwnPropertyNames",function(){return n(19).get})},function(t,e,n){t.exports=function(t,e){var r=n(15),o=(n(17).Object||{})[t]||Object[t],i={};i[t]=e(o),r(r.S+r.F*n(18)(function(){o(1)}),"Object",i)}},function(t,e,n){var r=n(16),o=n(17),i="prototype",a=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e,n){var s,c,l,f,d=t&u.G,h=t&u.P,v=d?r:t&u.S?r[e]:(r[e]||{})[i],p=d?o:o[e]||(o[e]={});d&&(n=e);for(s in n)c=!(t&u.F)&&v&&s in v,c&&s in p||(l=c?v[s]:n[s],d&&"function"!=typeof v[s]?f=n[s]:t&u.B&&c?f=a(l,r):t&u.W&&v[s]==l?!function(t){f=function(e){return this instanceof t?new t(e):t(e)},f[i]=t[i]}(l):f=h&&"function"==typeof l?a(Function.call,l):l,p[s]=f,h&&((p[i]||(p[i]={}))[s]=l))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},function(t,e){var n="undefined",r=t.exports=typeof window!=n&&window.Math==Math?window:typeof self!=n&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var n=t.exports={version:"1.2.1"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r={}.toString,o=n(20),i=n(4).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==r.call(t)?u(t):i(o(t))}},function(t,e,n){var r=n(21),o=n(23);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){t.exports={"default":n(25),__esModule:!0}},function(t,e,n){var r=n(4);n(26),t.exports=function(t,e){return r.getDesc(t,e)}},function(t,e,n){var r=n(20);n(14)("getOwnPropertyDescriptor",function(t){return function(e,n){return t(r(e),n)}})},function(t,e){"use strict";e["default"]=function(t,e){var n=e({},t);return delete n["default"],n},e.__esModule=!0},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=100,r=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.delay,o=void 0===r?n:r,i=e.leading,a=void 0===i?!0:i,u=e.trailing,s=void 0===u?!0:u;if("function"==typeof t){var c=void 0;return function(){for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];!c&&a&&setTimeout(function(){return t.apply(void 0,n)}),clearTimeout(c),c=setTimeout(function(){c=void 0,s&&t.apply(void 0,n)},o)}}};e.debounce=r},function(t,e,n){"use strict";var r=n(30)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){r(e).forEach(function(n){var r=n.replace(/^-/,"").replace(/-([a-z])/g,function(t,e){return e.toUpperCase()});t.style[r]=e[n]})};e.setStyle=o},function(t,e,n){t.exports={"default":n(31),__esModule:!0}},function(t,e,n){n(32),t.exports=n(17).Object.keys},function(t,e,n){var r=n(33);n(14)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(35),o={STANDARD:40,OTHERS:-120},i=function(t){return t=r.getOriginalEvent(t),"deltaX"in t?{x:t.deltaX/o.STANDARD,y:t.deltaY/o.STANDARD}:"wheelDeltaX"in t?{x:t.wheelDeltaX/o.OTHERS,y:t.wheelDeltaY/o.OTHERS}:{x:0,y:t.wheelDelta/o.OTHERS}};e.getDelta=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t.originalEvent||t};e.getOriginalEvent=n},function(t,e,n){"use strict";var r=n(37)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){var n=t.children;if(!n)return null;var o=!0,i=!1,a=void 0;try{for(var u,s=r(n);!(o=(u=s.next()).done);o=!0){var c=u.value;if(c.className.match(e))return c}}catch(l){i=!0,a=l}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return null};e.findChild=o},function(t,e,n){t.exports={"default":n(38),__esModule:!0}},function(t,e,n){n(39),n(56),t.exports=n(59)},function(t,e,n){n(40);var r=n(43);r.NodeList=r.HTMLCollection=r.Array},function(t,e,n){"use strict";var r=n(41),o=n(42),i=n(43),a=n(20);n(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(45),o=n(15),i=n(46),a=n(47),u=n(50),s=n(51)("iterator"),c=n(43),l=!([].keys&&"next"in[].keys()),f="@@iterator",d="keys",h="values",v=function(){return this};t.exports=function(t,e,p,y,m,g,_){n(54)(p,e,y);var b,S,x=function(t){switch(t){case d:return function(){return new p(this,t)};case h:return function(){return new p(this,t)}}return function(){return new p(this,t)}},w=e+" Iterator",O=t.prototype,P=O[s]||O[f]||m&&O[m],E=P||x(m);if(P){var T=n(4).getProto(E.call(new t));n(55)(T,w,!0),!r&&u(O,f)&&a(T,s,v)}if((!r||_)&&a(O,s,E),c[e]=E,c[w]=v,m)if(b={keys:g?E:x(d),values:m==h?E:x(h),entries:m!=h?E:x("entries")},_)for(S in b)S in O||i(O,S,b[S]);else o(o.P+o.F*l,e,b)}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(47)},function(t,e,n){var r=n(4),o=n(48);t.exports=n(49)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(52)("wks"),o=n(16).Symbol;t.exports=function(t){return r[t]||(r[t]=o&&o[t]||(o||n(53))("Symbol."+t))}},function(t,e,n){var r=n(16),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";var r=n(4),o={};n(47)(o,n(51)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=r.create(o,{next:n(48)(1,i)}),n(55)(t,e+" Iterator")}},function(t,e,n){var r=n(50),o=n(47),i=n(51)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,e)}},function(t,e,n){"use strict";var r=n(57)(!0);n(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(58),o=n(23);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return 0>s||s>=c?t?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(60),o=n(62);t.exports=n(17).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(61);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(63),o=n(51)("iterator"),i=n(43);t.exports=n(17).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[r(t)]:void 0}},function(t,e,n){var r=n(22),o=n(51)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=(e=Object(t))[o])?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(35),o=n(65),i=function(t){t=r.getOriginalEvent(t);var e=o.getPointerData(t);return e.identifier};e.getTouchID=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t.touches?t.touches[t.touches.length-1]:t};e.getPointerData=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(35),o=n(65),i=function(t){t=r.getOriginalEvent(t);var e=o.getPointerData(t);return{x:e.clientX,y:e.clientY}};e.getPosition=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return Math.max(e,Math.min(t,n))};e.pickInRange=n},function(t,e,n){"use strict";var r=n(69)["default"],o=n(79)["default"],i=n(80)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=n(81),u=i(a),s=n(82),c="function"==typeof Float32Array?Float32Array:Array,l=["ease","linear","ease-in","ease-out","ease-in-out"],f={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},d=function(t){if(t=t||s.DEFAULT_OPTIONS.EASING_CURVE,-1!==l.indexOf(t))return u["default"][t.replace(/\-[a-z]/g,function(t){return t[1].toUpperCase()})];if(f.hasOwnProperty(t))return new(o.apply(u["default"],[null].concat(r(f[t]))));if(/^cubic\-bezier/i.test(t)){var e=t.match(/-?[0-9.]+/g)||defaultCurve;return new(o.apply(u["default"],[null].concat(r(e.map(function(t){return parseFloat(t)})))))}return u["default"].linear},h=function(t){var e=d(t);return function(t,n,r){for(var o=Math.floor(r/1e3*60+1),i=new c(o),a=1;o>=a;a++)i[a-1]=t+n*e.get(a/o);return i}};e.motionBuilder=h},function(t,e,n){"use strict";var r=n(70)["default"];e["default"]=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return r(t)},e.__esModule=!0},function(t,e,n){t.exports={"default":n(71),__esModule:!0}},function(t,e,n){n(56),n(72),t.exports=n(17).Array.from},function(t,e,n){"use strict";var r=n(73),o=n(15),i=n(33),a=n(75),u=n(76),s=n(77),c=n(62);o(o.S+o.F*!n(78)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,f=i(t),d="function"==typeof this?this:Array,h=arguments[1],v=void 0!==h,p=0,y=c(f);if(v&&(h=r(h,arguments[2],2)),void 0==y||d==Array&&u(y))for(e=s(f.length),n=new d(e);e>p;p++)n[p]=v?h(f[p],p):f[p];else for(l=y.call(f),n=new d;!(o=l.next()).done;p++)n[p]=v?a(l,h,[o.value,p],!0):o.value;return n.length=p,n}})},function(t,e,n){var r=n(74);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(60);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(i){var a=t["return"];throw void 0!==a&&r(a.call(t)),i}}},function(t,e,n){var r=n(43),o=n(51)("iterator");t.exports=function(t){return(r.Array||Array.prototype[o])===t}},function(t,e,n){var r=n(58),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(51)("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t){if(!o)return!1;var e=!1;try{var n=[7],i=n[r]();i.next=function(){e=!0},n[r]=function(){return i},t(n)}catch(a){}return e}},function(t,e){"use strict";e["default"]=Function.prototype.bind,e.__esModule=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e){function n(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function o(t){return 3*t}function i(t,e,i){return((n(e,i)*t+r(e,i))*t+o(e))*t}function a(t,e,i){return 3*n(e,i)*t*t+2*r(e,i)*t+o(e)}function u(t,e,n,r,o){var a,u,s=0;do u=e+(n-e)/2,a=i(u,r,o)-t,a>0?n=u:e=u;while(Math.abs(a)>d&&++s<h);return u}function s(t,e,n,r){for(var o=0;l>o;++o){var u=a(e,n,r);if(0===u)return e;var s=i(e,n,r)-t;e-=s/u}return e}function c(t,e,n,r){if(4===arguments.length)return new c([t,e,n,r]);if(!(this instanceof c))return new c(t);if(!t||4!==t.length)throw new Error("BezierEasing: points must contains 4 values");for(var o=0;4>o;++o)if("number"!=typeof t[o]||isNaN(t[o])||!isFinite(t[o]))throw new Error("BezierEasing: points should be integers.");if(t[0]<0||t[0]>1||t[2]<0||t[2]>1)throw new Error("BezierEasing x values must be in [0, 1] range.");this._str="BezierEasing("+t+")",this._css="cubic-bezier("+t+")",this._p=t,this._mSampleValues=y?new Float32Array(v):new Array(v),this._precomputed=!1,this.get=this.get.bind(this)}var l=4,f=.001,d=1e-7,h=10,v=11,p=1/(v-1),y="function"==typeof Float32Array;c.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===n&&r===o?t:0===t?0:1===t?1:i(this._getTForX(t),n,o)},getPoints:function(){return this._p},toString:function(){return this._str},toCSS:function(){return this._css},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,(t!==e||n!==r)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;v>n;++n)this._mSampleValues[n]=i(n*p,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,o=0,i=1,c=v-1;i!==c&&r[i]<=t;++i)o+=p;--i;var l=(t-r[i])/(r[i+1]-r[i]),d=o+l*p,h=a(d,e,n);return h>=f?s(t,d,e,n):0===h?d:u(t,o,o+p,e,n)}},c.css={ease:c.ease=c(.25,.1,.25,1),linear:c.linear=c(0,0,1,1),"ease-in":c.easeIn=c(.42,0,1,1),"ease-out":c.easeOut=c(0,0,.58,1),"ease-in-out":c.easeInOut=c(.42,0,.58,1)},t.exports=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={SPEED:1,STEP_LENGTH:40,EASING_DURATION:1e3,EASING_CURVE:"cubic-bezier(0.1, 0.57, 0.1, 1)"};e.DEFAULT_OPTIONS=n},function(t,e,n){"use strict";var r=n(10)["default"],o=n(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=n(84);r(e,o(i,r));var a=n(85);r(e,o(a,r));var u=n(87);r(e,o(u,r));var s=n(88);r(e,o(s,r));var c=n(89);r(e,o(c,r));var l=n(90);r(e,o(l,r))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(85),n(86);var r=n(9),o=n(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.update=function(t){var e=this;requestAnimationFrame(function(){var n=e.size=e.getSize(),o={x:n.content.width-n.container.width,y:n.content.height-n.container.height};if(!e.limit||o.x!==e.limit.x||o.y!==e.limit.y){e.limit=o;var i=e.target,a=i.xAxis,u=i.yAxis;r.setStyle(a.track,{display:n.content.width<=n.container.width?"none":"block"}),r.setStyle(u.track,{display:n.content.height<=n.container.height?"none":"block"}),r.setStyle(a.thumb,{width:100*r.pickInRange(n.container.width/n.content.width,0,1)+"%"}),r.setStyle(u.thumb,{height:100*r.pickInRange(n.container.height/n.content.height,0,1)+"%"}),e.__setThumbPosition(),"function"==typeof t&&t(e)}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6);e.SmoothScrollbar=r.SmoothScrollbar,r.SmoothScrollbar.prototype.getSize=function(){var t=this.target.container,e=this.target.content;return{container:{width:t.clientWidth,height:t.clientHeight},content:{width:e.offsetWidth,height:e.offsetHeight}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=n(6);e.SmoothScrollbar=o.SmoothScrollbar;var i=function(){var t=this.offset,e=t.x,n=t.y,o=this.target,i=o.xAxis,a=o.yAxis,u="translate3d("+e/this.size.content.width*this.size.container.width+"px, 0, 0)",s="translate3d(0, "+n/this.size.content.height*this.size.container.height+"px, 0)";r.setStyle(i.thumb,{"-webkit-transform":u,transform:u}),r.setStyle(a.thumb,{"-webkit-transform":s,transform:s})};Object.defineProperty(o.SmoothScrollbar.prototype,"__setThumbPosition",{value:i,writable:!0,configurable:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6);e.SmoothScrollbar=r.SmoothScrollbar,r.SmoothScrollbar.prototype.addListener=function(t){"function"==typeof t&&this.__listeners.push(t)},r.SmoothScrollbar.prototype.removeListener=function(t){"function"==typeof t&&this.__listeners.some(function(e,n,r){return e===t&&r.splice(n,1)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(89);var r=n(9),o=n(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.scrollTo=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1],n=this,o=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],a=this.offset,u=this.limit,s=r.pickInRange(t,0,u.x),c=r.pickInRange(e,0,u.y);if(s!==a.x||c!==a.y){var l={x:this.__motionBuilder(a.x,s-a.x,o),y:this.__motionBuilder(a.y,c-a.y,o)},f=0,d=l.x.length,h=function v(){return f===d?"function"==typeof i&&i(n):(n.setPosition(l.x[f],l.y[f]),f++,void(n.__scrollAnimation=requestAnimationFrame(v)))};h()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(86);var r=n(9),o=n(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.setPosition=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1];cancelAnimationFrame(this.__scrollAnimation),this.__resetScrollTime(),this.__updateThrottle();var n={},o=this.offset,i=this.limit,a=this.target,u=this.__listeners;if(Math.abs(t-o.x)>1&&this.showTrack("x"),Math.abs(e-o.y)>1&&this.showTrack("y"),t=r.pickInRange(t,0,i.x),e=r.pickInRange(e,0,i.y),this.hideTrack(),t!==o.x||e!==o.y){var s=(new Date).getTime(),c=this.__lastScrollTime;c||(c=this.__lastScrollTime=s);var l=s-c||1;this.__lastScrollTime=s,n.direction={x:t===o.x?"none":t>o.x?"right":"left",y:e===o.y?"none":e>o.y?"down":"up"},n.limit={x:i.x,y:i.y},n.velocity={x:(t-o.x)/l,y:(e-o.y)/l},n.offset=this.offset={x:t,y:e},this.__setThumbPosition();var f="translate3d("+-t+"px, "+-e+"px, 0)";r.setStyle(a.content,{"-webkit-transform":f,transform:f}),u.forEach(function(t){return t(n)})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(87);var r=n(6);e.SmoothScrollbar=r.SmoothScrollbar,r.SmoothScrollbar.prototype.infiniteScroll=function(t){var e=arguments.length<=1||void 0===arguments[1]?50:arguments[1];if("function"==typeof t){var n={x:0,y:0},r=!1;this.addListener(function(o){var i=o.offset,a=o.limit;a.y-i.y<=e&&i.y>n.y&&!r&&(r=!0,setTimeout(function(){return t(o)})),a.y-i.y>e&&(r=!1),n=i})}}},function(t,e,n){"use strict";var r=n(10)["default"],o=n(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=n(92);r(e,o(i,r));var a=n(93);r(e,o(a,r));var u=n(94);r(e,o(u,r));var s=n(95);r(e,o(s,r))},function(t,e,n){"use strict";var r=n(30)["default"];Object.defineProperty(e,"__esModule",{value:!0}),n(88),n(89);var o=n(6),i=n(9);e.SmoothScrollbar=o.SmoothScrollbar;var a=function(t){var e=this,n=t.easingDuration,o=void 0,a=void 0,u={},s={},c={},l=function(t){var e=i.getOriginalEvent(t).touches;r(e).forEach(function(t){if("length"!==t){var n=e[t];c[n.identifier]=i.getPosition(n)}})},f=function(t){cancelAnimationFrame(e.scrollAnimation),l(t),a=i.getTouchID(t),s=i.getPosition(t),o=(new Date).getTime(),u.x=u.y=0},d=function(t){l(t);var n=i.getTouchID(t),r=e.offset,f=e.limit;if(void 0===a)a=n,s=c[n],o=(new Date).getTime();else if(n!==a)return;if(s){var d=(new Date).getTime()-o,h=s,v=h.x,p=h.y,y=s=i.getPosition(t),m=y.x,g=y.y;d=d||1,u.x=(v-m)/d,u.y=(p-g)/d;var _=i.pickInRange(v-m+r.x,0,f.x),b=i.pickInRange(p-g+r.y,0,f.y);if(Math.abs(_-r.x)<1&&Math.abs(b-r.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation(),e.setPosition(_,b)}},h=function(t){delete c[a],a=void 0;var r=u.x,o=u.y,i=.01;(Math.abs(r)>i||Math.abs(o)>i)&&e.scrollTo(r*n+e.offset.x,o*n+e.offset.y,n),u.x=u.y=0};return{start:f,move:d,end:h}};Object.defineProperty(o.SmoothScrollbar.prototype,"__touchHandlers",{value:a,writable:!0,configurable:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(85),n(88),n(89);var r=n(6),o=n(9);e.SmoothScrollbar=r.SmoothScrollbar;var i=function(t){var e=t.match(/scrollbar\-(?:track|thumb)\-([xy])/);return e&&e[1]},a=function(t){var e=this,n=t.speed,r=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=function(t){if(!a&&/track/.test(t.target.className)){var r=t.target,u=i(r.className),s=r.getBoundingClientRect(),c=o.getPosition(t),l=e.size,f=e.offset,d=1e3/n;if("x"===u){var h=o.pickInRange(l.container.width/l.content.width,0,1),v=(c.x-s.left)/l.container.width;return e.scrollTo((v-h/2)*l.content.width,f.y,d)}var p=o.pickInRange(l.container.height/l.content.height,0,1),y=(c.y-s.top)/l.container.height;e.scrollTo(f.x,(y-p/2)*l.content.height,d)}},f=function(t){if(/thumb/.test(t.target.className)){r=!0;var n=o.getPosition(t),a=t.target.getBoundingClientRect();s=i(t.target.className),u={x:n.x-a.left,y:n.y-a.top},c=e.target.container.getBoundingClientRect()}},d=function(t){if(r){a=!0,t.preventDefault();var n=e.size,i=e.offset,l=o.getPosition(t);return"x"===s?void e.setPosition((l.x-u.x-c.left)/(c.right-c.left)*n.content.width,i.y):void e.setPosition(i.x,(l.y-u.y-c.top)/(c.bottom-c.top)*n.content.height)}},h=function(){r=a=!1};return{click:l,down:f,move:d,up:h}};Object.defineProperty(r.SmoothScrollbar.prototype,"__mouseHandlers",{value:a,writable:!0,configurable:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(88);var r=n(6),o=n(9);e.SmoothScrollbar=r.SmoothScrollbar;var i=function(t){var e=this,n=t.speed,r=t.stepLength;return function(t){var i=e.offset,a=e.limit,u=o.getDelta(t),s=u.x,c=u.y,l=o.pickInRange(s*n*r+i.x,0,a.x),f=o.pickInRange(c*n*r+i.y,0,a.y);if(Math.abs(l-i.x)<1&&Math.abs(f-i.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation();var d=120*Math.sqrt(Math.max(Math.abs(s),Math.abs(c)));e.scrollTo(l,f,d/n)}};Object.defineProperty(r.SmoothScrollbar.prototype,"__wheelHandler",{value:i,writable:!0,configurable:!0})},function(t,e,n){"use strict";var r=n(96)["default"];Object.defineProperty(e,"__esModule",{value:!0}),n(88);var o=n(9),i=n(6);e.SmoothScrollbar=i.SmoothScrollbar;var a={37:[-1,0],38:[0,-1],39:[1,0],40:[0,1]},u=function(t){var e=this,n=t.speed,i=t.stepLength,u=void 0,s=this.target.container;return s.addEventListener("mousedown",function(t){t.stopPropagation(),u=!0}),document.addEventListener("mousedown",function(){return u=!1}),function(t){if(u){t=o.getOriginalEvent(t);var s=t.keyCode||t.which;if(a.hasOwnProperty(s)){var c=e.offset,l=e.limit,f=r(a[s],2),d=f[0],h=f[1],v=o.pickInRange(d*n*i+c.x,0,l.x),p=o.pickInRange(h*n*i+c.y,0,l.y);if(Math.abs(v-c.x)<1&&Math.abs(p-c.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation(),e.scrollTo(v,p,600/n)}}}};Object.defineProperty(i.SmoothScrollbar.prototype,"__keyboardHandler",{value:u,writable:!0,configurable:!0})},function(t,e,n){"use strict";var r=n(37)["default"],o=n(97)["default"];e["default"]=function(){function t(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var u,s=r(t);!(o=(u=s.next()).done)&&(n.push(u.value),!e||n.length!==e);o=!0);}catch(c){i=!0,a=c}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if(o(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e.__esModule=!0},function(t,e,n){t.exports={"default":n(98),__esModule:!0}},function(t,e,n){n(39),n(56),t.exports=n(99)},function(t,e,n){var r=n(63),o=n(51)("iterator"),i=n(43);t.exports=n(17).isIterable=function(t){var e=Object(t);return o in e||"@@iterator"in e||i.hasOwnProperty(r(e))}},function(t,e,n){"use strict";var r=n(10)["default"],o=n(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=n(101);r(e,o(i,r));var a=n(86);r(e,o(a,r))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(91);var r=n(6);e.SmoothScrollbar=r.SmoothScrollbar;var o="onwheel"in window?"wheel":"mousewheel",i=function(t){this.update();var e=this.target.container,n=this.__wheelHandler(t),r=this.__keyboardHandler(t),i=this.__touchHandlers(t),a=this.__mouseHandlers(t),u=this.__updateThrottle;e.addEventListener(o,n),e.addEventListener("touchstart",i.start),e.addEventListener("touchmove",i.move),e.addEventListener("touchend",i.end),e.addEventListener("click",a.click),e.addEventListener("mousedown",a.down),window.addEventListener("mousemove",a.move),window.addEventListener("mouseup",a.up),window.addEventListener("keydown",r),window.addEventListener("blur",a.up),window.addEventListener("resize",u),this.destroy=function(){e.removeEventListener(o,n),e.removeEventListener("touchstart",i.start),e.removeEventListener("touchmove",i.move),e.removeEventListener("touchend",i.end),e.removeEventListener("click",a.click),e.removeEventListener("mousedown",a.down),window.removeEventListener("keydown",r),window.removeEventListener("mousemove",a.move),window.removeEventListener("mouseup",a.up),window.removeEventListener("blur",a.up),window.removeEventListener("resize",u)}};Object.defineProperty(r.SmoothScrollbar.prototype,"__initScrollbar",{value:i,writable:!0,configurable:!0})}]); | ||
!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";var n=r(1)["default"],o=r(5)["default"],i=r(6);r(84),r(92),r(101),angular.module("SmoothScrollbar",[]).service("ScrollbarService",function(){function t(e){o(this,t),this.scrollbarInstances={},this.deferreds={},this.$q=e}return n(t,null,[{key:"$inject",value:["$q"],enumerable:!0}]),n(t,[{key:"getInstance",value:function(t){var e=this.deferreds,r=this.$q,n=e[t]=e[t]||r.defer();return n.promise}},{key:"createInstance",value:function(t,e,r){var n=this.scrollbarInstances,o=this.deferreds;if(n.hasOwnProperty(t))return n[t];var a=n[t]=new i.SmoothScrollbar(e,r);return o.hasOwnProperty(t)&&o[t].resolve(a),a}},{key:"destroyInstance",value:function(t){var e=this.scrollbarInstances,r=e[t];r&&(r.destroy(),delete e[t])}}]),t}()).directive("scrollbar",["ScrollbarService",function(t){return{restrict:"AE",transclude:!0,template:'\n <article class="scroll-content" ng-transclude></article>\n <aside class="scrollbar-track scrollbar-track-x">\n <div class="scrollbar-thumb scrollbar-thumb-x"></div>\n </aside>\n <aside class="scrollbar-track scrollbar-track-y">\n <div class="scrollbar-thumb scrollbar-thumb-y"></div>\n </aside>\n ',scope:{name:"@scrollbar",speed:"@",stepLength:"@",easingDuration:"@",easingCurve:"@"},link:function(e,r){var n=e.name,o=e.speed,i=e.stepLength,a=e.easingDuration,u=e.easingCurve;if(!n)throw new Error("scrollbar name is required");t.destroyInstance(e.name),t.createInstance(n,r[0],{speed:o,stepLength:i,easingDuration:a,easingCurve:u})}}}])},function(t,e,r){"use strict";var n=r(2)["default"];e["default"]=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e.__esModule=!0},function(t,e,r){t.exports={"default":r(3),__esModule:!0}},function(t,e,r){var n=r(4);t.exports=function(t,e,r){return n.setDesc(t,e,r)}},function(t,e){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,r){"use strict";var n=r(5)["default"],o=r(7)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),a=r(83),u=[],s=function(){u.forEach(function(t){return t.__updateChildren()})},c=function l(t,e){var r=this,c=e.speed,f=e.stepLength,d=e.easingDuration,h=e.easingCurve;n(this,l);var v=i.findChild(t,"scrollbar-track-x"),p=i.findChild(t,"scrollbar-track-y");o(this,{target:{value:{container:t,content:i.findChild(t,"scroll-content"),xAxis:{track:v,thumb:i.findChild(v,"scrollbar-thumb-x")},yAxis:{track:p,thumb:i.findChild(p,"scrollbar-thumb-y")}}},offset:{value:{x:0,y:0},writable:!0},__listeners:{value:[],writable:!0},__motionBuilder:{value:i.motionBuilder(h)},__updateThrottle:{value:i.debounce(this.update.bind(this))},__scrollAnimation:{writable:!0},__lastScrollTime:{writable:!0},__resetScrollTime:{value:i.debounce(function(){r.__lastScrollTime=void 0},{leading:!1,duration:100})}}),this.showTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?"both":arguments[0];t=t.toLowerCase(),"both"===t&&(v.classList.add("show"),p.classList.add("show")),"x"===t&&v.classList.add("show"),"y"===t&&p.classList.add("show")},this.hideTrack=i.debounce(function(){v.classList.remove("show"),p.classList.remove("show")},!1,1e3),this.__initScrollbar({speed:parseFloat(c)||a.DEFAULT_OPTIONS.SPEED,stepLength:parseFloat(f)||a.DEFAULT_OPTIONS.STEP_LENGTH,easingDuration:parseFloat(d)||a.DEFAULT_OPTIONS.EASING_DURATION}),u.push(this),s()};e.SmoothScrollbar=c},function(t,e,r){t.exports={"default":r(8),__esModule:!0}},function(t,e,r){var n=r(4);t.exports=function(t,e){return n.setDescs(t,e)}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(28);n(e,o(i,n));var a=r(29);n(e,o(a,n));var u=r(34);n(e,o(u,n));var s=r(36);n(e,o(s,n));var c=r(64);n(e,o(c,n));var l=r(66);n(e,o(l,n));var f=r(67);n(e,o(f,n));var d=r(68);n(e,o(d,n));var h=r(69);n(e,o(h,n));var v=r(65);n(e,o(v,n));var p=r(35);n(e,o(p,n))},function(t,e,r){"use strict";var n=r(11)["default"],o=r(24)["default"],i=r(2)["default"];e["default"]=function(t,e){for(var r=n(e),a=0;a<r.length;a++){var u=r[a],s=o(e,u);s&&s.configurable&&void 0===t[u]&&i(t,u,s)}return t},e.__esModule=!0},function(t,e,r){t.exports={"default":r(12),__esModule:!0}},function(t,e,r){var n=r(4);r(13),t.exports=function(t){return n.getNames(t)}},function(t,e,r){r(14)("getOwnPropertyNames",function(){return r(19).get})},function(t,e,r){t.exports=function(t,e){var n=r(15),o=(r(17).Object||{})[t]||Object[t],i={};i[t]=e(o),n(n.S+n.F*r(18)(function(){o(1)}),"Object",i)}},function(t,e,r){var n=r(16),o=r(17),i="prototype",a=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e,r){var s,c,l,f,d=t&u.G,h=t&u.P,v=d?n:t&u.S?n[e]:(n[e]||{})[i],p=d?o:o[e]||(o[e]={});d&&(r=e);for(s in r)c=!(t&u.F)&&v&&s in v,c&&s in p||(l=c?v[s]:r[s],d&&"function"!=typeof v[s]?f=r[s]:t&u.B&&c?f=a(l,n):t&u.W&&v[s]==l?!function(t){f=function(e){return this instanceof t?new t(e):t(e)},f[i]=t[i]}(l):f=h&&"function"==typeof l?a(Function.call,l):l,p[s]=f,h&&((p[i]||(p[i]={}))[s]=l))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},function(t,e){var r="undefined",n=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var r=t.exports={version:"1.2.1"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,r){var n={}.toString,o=r(20),i=r(4).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==n.call(t)?u(t):i(o(t))}},function(t,e,r){var n=r(21),o=r(23);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(22);t.exports=0 in Object("z")?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){t.exports={"default":r(25),__esModule:!0}},function(t,e,r){var n=r(4);r(26),t.exports=function(t,e){return n.getDesc(t,e)}},function(t,e,r){var n=r(20);r(14)("getOwnPropertyDescriptor",function(t){return function(e,r){return t(n(e),r)}})},function(t,e){"use strict";e["default"]=function(t,e){var r=e({},t);return delete r["default"],r},e.__esModule=!0},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=100,n=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.delay,o=void 0===n?r:n,i=e.leading,a=void 0===i?!0:i,u=e.trailing,s=void 0===u?!0:u;if("function"==typeof t){var c=void 0;return function(){for(var e=arguments.length,r=Array(e),n=0;e>n;n++)r[n]=arguments[n];!c&&a&&setTimeout(function(){return t.apply(void 0,r)}),clearTimeout(c),c=setTimeout(function(){c=void 0,s&&t.apply(void 0,r)},o)}}};e.debounce=n},function(t,e,r){"use strict";var n=r(30)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){n(e).forEach(function(r){var n=r.replace(/^-/,"").replace(/-([a-z])/g,function(t,e){return e.toUpperCase()});t.style[n]=e[r]})};e.setStyle=o},function(t,e,r){t.exports={"default":r(31),__esModule:!0}},function(t,e,r){r(32),t.exports=r(17).Object.keys},function(t,e,r){var n=r(33);r(14)("keys",function(t){return function(e){return t(n(e))}})},function(t,e,r){var n=r(23);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o={STANDARD:40,OTHERS:-120},i=function(t){return t=n.getOriginalEvent(t),"deltaX"in t?{x:t.deltaX/o.STANDARD,y:t.deltaY/o.STANDARD}:"wheelDeltaX"in t?{x:t.wheelDeltaX/o.OTHERS,y:t.wheelDeltaY/o.OTHERS}:{x:0,y:t.wheelDelta/o.OTHERS}};e.getDelta=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t.originalEvent||t};e.getOriginalEvent=r},function(t,e,r){"use strict";var n=r(37)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){var r=t.children;if(!r)return null;var o=!0,i=!1,a=void 0;try{for(var u,s=n(r);!(o=(u=s.next()).done);o=!0){var c=u.value;if(c.className.match(e))return c}}catch(l){i=!0,a=l}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return null};e.findChild=o},function(t,e,r){t.exports={"default":r(38),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(59)},function(t,e,r){r(40);var n=r(43);n.NodeList=n.HTMLCollection=n.Array},function(t,e,r){"use strict";var n=r(41),o=r(42),i=r(43),a=r(20);r(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(45),o=r(15),i=r(46),a=r(47),u=r(50),s=r(51)("iterator"),c=r(43),l=!([].keys&&"next"in[].keys()),f="@@iterator",d="keys",h="values",v=function(){return this};t.exports=function(t,e,p,m,y,g,_){r(54)(p,e,m);var b,S,w=function(t){switch(t){case d:return function(){return new p(this,t)};case h:return function(){return new p(this,t)}}return function(){return new p(this,t)}},x=e+" Iterator",O=t.prototype,P=O[s]||O[f]||y&&O[y],E=P||w(y);if(P){var M=r(4).getProto(E.call(new t));r(55)(M,x,!0),!n&&u(O,f)&&a(M,s,v)}if((!n||_)&&a(O,s,E),c[e]=E,c[x]=v,y)if(b={keys:g?E:w(d),values:y==h?E:w(h),entries:y!=h?E:w("entries")},_)for(S in b)S in O||i(O,S,b[S]);else o(o.P+o.F*l,e,b)}},function(t,e){t.exports=!0},function(t,e,r){t.exports=r(47)},function(t,e,r){var n=r(4),o=r(48);t.exports=r(49)?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){t.exports=!r(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(52)("wks"),o=r(16).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||r(53))("Symbol."+t))}},function(t,e,r){var n=r(16),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){"use strict";var n=r(4),o={};r(47)(o,r(51)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n.create(o,{next:r(48)(1,i)}),r(55)(t,e+" Iterator")}},function(t,e,r){var n=r(50),o=r(47),i=r(51)("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?t:t.prototype,i)&&o(t,i,e)}},function(t,e,r){"use strict";var n=r(57)(!0);r(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(58),o=r(23);t.exports=function(t){return function(e,r){var i,a,u=String(o(e)),s=n(r),c=u.length;return 0>s||s>=c?t?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(60),o=r(62);t.exports=r(17).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){var n=r(61);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},function(t,e,r){var n=r(22),o=r(51)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(e=Object(t))[o])?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=r(65),i=function(t){t=n.getOriginalEvent(t);var e=o.getPointerData(t);return e.identifier};e.getTouchID=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=function(t){return t=n.getOriginalEvent(t),t.touches?t.touches[t.touches.length-1]:t};e.getPointerData=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=r(65),i=function(t){t=n.getOriginalEvent(t);var e=o.getPointerData(t);return{x:e.clientX,y:e.clientY}};e.getPosition=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(35),o=function(t,e){return t=n.getOriginalEvent(t),t.target?e.some(function(e){return e.contains(t.target)}):!1};e.fromChildSB=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return Math.max(e,Math.min(t,r))};e.pickInRange=r},function(t,e,r){"use strict";var n=r(70)["default"],o=r(80)["default"],i=r(81)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=r(82),u=i(a),s=r(83),c="function"==typeof Float32Array?Float32Array:Array,l=["ease","linear","ease-in","ease-out","ease-in-out"],f={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},d=function(t){if(t=t||s.DEFAULT_OPTIONS.EASING_CURVE,-1!==l.indexOf(t))return u["default"][t.replace(/\-[a-z]/g,function(t){return t[1].toUpperCase()})];if(f.hasOwnProperty(t))return new(o.apply(u["default"],[null].concat(n(f[t]))));if(/^cubic\-bezier/i.test(t)){var e=t.match(/-?[0-9.]+/g)||defaultCurve;return new(o.apply(u["default"],[null].concat(n(e.map(function(t){return parseFloat(t)})))))}return u["default"].linear},h=function(t){var e=d(t);return function(t,r,n){for(var o=Math.floor(n/1e3*60+1),i=new c(o),a=1;o>=a;a++)i[a-1]=t+r*e.get(a/o);return i}};e.motionBuilder=h},function(t,e,r){"use strict";var n=r(71)["default"];e["default"]=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return n(t)},e.__esModule=!0},function(t,e,r){t.exports={"default":r(72),__esModule:!0}},function(t,e,r){r(56),r(73),t.exports=r(17).Array.from},function(t,e,r){"use strict";var n=r(74),o=r(15),i=r(33),a=r(76),u=r(77),s=r(78),c=r(62);o(o.S+o.F*!r(79)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,o,l,f=i(t),d="function"==typeof this?this:Array,h=arguments[1],v=void 0!==h,p=0,m=c(f);if(v&&(h=n(h,arguments[2],2)),void 0==m||d==Array&&u(m))for(e=s(f.length),r=new d(e);e>p;p++)r[p]=v?h(f[p],p):f[p];else for(l=m.call(f),r=new d;!(o=l.next()).done;p++)r[p]=v?a(l,h,[o.value,p],!0):o.value;return r.length=p,r}})},function(t,e,r){var n=r(75);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(60);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(i){var a=t["return"];throw void 0!==a&&n(a.call(t)),i}}},function(t,e,r){var n=r(43),o=r(51)("iterator");t.exports=function(t){return(n.Array||Array.prototype[o])===t}},function(t,e,r){var n=r(58),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(51)("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}t.exports=function(t){if(!o)return!1;var e=!1;try{var r=[7],i=r[n]();i.next=function(){e=!0},r[n]=function(){return i},t(r)}catch(a){}return e}},function(t,e){"use strict";e["default"]=Function.prototype.bind,e.__esModule=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e){function r(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function o(t){return 3*t}function i(t,e,i){return((r(e,i)*t+n(e,i))*t+o(e))*t}function a(t,e,i){return 3*r(e,i)*t*t+2*n(e,i)*t+o(e)}function u(t,e,r,n,o){var a,u,s=0;do u=e+(r-e)/2,a=i(u,n,o)-t,a>0?r=u:e=u;while(Math.abs(a)>d&&++s<h);return u}function s(t,e,r,n){for(var o=0;l>o;++o){var u=a(e,r,n);if(0===u)return e;var s=i(e,r,n)-t;e-=s/u}return e}function c(t,e,r,n){if(4===arguments.length)return new c([t,e,r,n]);if(!(this instanceof c))return new c(t);if(!t||4!==t.length)throw new Error("BezierEasing: points must contains 4 values");for(var o=0;4>o;++o)if("number"!=typeof t[o]||isNaN(t[o])||!isFinite(t[o]))throw new Error("BezierEasing: points should be integers.");if(t[0]<0||t[0]>1||t[2]<0||t[2]>1)throw new Error("BezierEasing x values must be in [0, 1] range.");this._str="BezierEasing("+t+")",this._css="cubic-bezier("+t+")",this._p=t,this._mSampleValues=m?new Float32Array(v):new Array(v),this._precomputed=!1,this.get=this.get.bind(this)}var l=4,f=.001,d=1e-7,h=10,v=11,p=1/(v-1),m="function"==typeof Float32Array;c.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===r&&n===o?t:0===t?0:1===t?1:i(this._getTForX(t),r,o)},getPoints:function(){return this._p},toString:function(){return this._str},toCSS:function(){return this._css},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,(t!==e||r!==n)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;v>r;++r)this._mSampleValues[r]=i(r*p,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],n=this._mSampleValues,o=0,i=1,c=v-1;i!==c&&n[i]<=t;++i)o+=p;--i;var l=(t-n[i])/(n[i+1]-n[i]),d=o+l*p,h=a(d,e,r);return h>=f?s(t,d,e,r):0===h?d:u(t,o,o+p,e,r)}},c.css={ease:c.ease=c(.25,.1,.25,1),linear:c.linear=c(0,0,1,1),"ease-in":c.easeIn=c(.42,0,1,1),"ease-out":c.easeOut=c(0,0,.58,1),"ease-in-out":c.easeInOut=c(.42,0,.58,1)},t.exports=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={SPEED:1,STEP_LENGTH:40,EASING_DURATION:1e3,EASING_CURVE:"cubic-bezier(0.1, 0.57, 0.1, 1)"};e.DEFAULT_OPTIONS=r},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(85);n(e,o(i,n));var a=r(86);n(e,o(a,n));var u=r(88);n(e,o(u,n));var s=r(89);n(e,o(s,n));var c=r(90);n(e,o(c,n));var l=r(91);n(e,o(l,n))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(86),r(87);var n=r(9),o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.update=function(t){var e=this;requestAnimationFrame(function(){var r=e.size=e.getSize(),o={x:r.content.width-r.container.width,y:r.content.height-r.container.height};if(!e.limit||o.x!==e.limit.x||o.y!==e.limit.y){e.limit=o;var i=e.target,a=i.xAxis,u=i.yAxis;n.setStyle(a.track,{display:r.content.width<=r.container.width?"none":"block"}),n.setStyle(u.track,{display:r.content.height<=r.container.height?"none":"block"}),n.setStyle(a.thumb,{width:100*n.pickInRange(r.container.width/r.content.width,0,1)+"%"}),n.setStyle(u.thumb,{height:100*n.pickInRange(r.container.height/r.content.height,0,1)+"%"}),e.__setThumbPosition(),"function"==typeof t&&t(e)}})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.getSize=function(){var t=this.target.container,e=this.target.content;return{container:{width:t.clientWidth,height:t.clientHeight},content:{width:e.offsetWidth,height:e.offsetHeight}}}},function(t,e,r){"use strict";function n(){var t=this.offset,e=t.x,r=t.y,n=this.target,i=n.xAxis,a=n.yAxis,u="translate3d("+e/this.size.content.width*this.size.container.width+"px, 0, 0)",s="translate3d(0, "+r/this.size.content.height*this.size.container.height+"px, 0)";o.setStyle(i.thumb,{"-webkit-transform":u,transform:u}),o.setStyle(a.thumb,{"-webkit-transform":s,transform:s})}Object.defineProperty(e,"__esModule",{value:!0});var o=r(9),i=r(6);e.SmoothScrollbar=i.SmoothScrollbar,Object.defineProperty(i.SmoothScrollbar.prototype,"__setThumbPosition",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.addListener=function(t){"function"==typeof t&&this.__listeners.push(t)},n.SmoothScrollbar.prototype.removeListener=function(t){"function"==typeof t&&this.__listeners.some(function(e,r,n){return e===t&&n.splice(r,1)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(90);var n=r(9),o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.scrollTo=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1],r=this,o=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],a=this.offset,u=this.limit,s=n.pickInRange(t,0,u.x),c=n.pickInRange(e,0,u.y);if(s!==a.x||c!==a.y){var l={x:this.__motionBuilder(a.x,s-a.x,o),y:this.__motionBuilder(a.y,c-a.y,o)},f=0,d=l.x.length,h=function v(){return f===d?"function"==typeof i&&i(r):(r.setPosition(l.x[f],l.y[f]),f++,void(r.__scrollAnimation=requestAnimationFrame(v)))};h()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(87);var n=r(9),o=r(6);e.SmoothScrollbar=o.SmoothScrollbar,o.SmoothScrollbar.prototype.setPosition=function(){var t=arguments.length<=0||void 0===arguments[0]?this.offset.x:arguments[0],e=arguments.length<=1||void 0===arguments[1]?this.offset.y:arguments[1];cancelAnimationFrame(this.__scrollAnimation),this.__resetScrollTime(),this.__updateThrottle();var r={},o=this.offset,i=this.limit,a=this.target,u=this.__listeners;if(Math.abs(t-o.x)>1&&this.showTrack("x"),Math.abs(e-o.y)>1&&this.showTrack("y"),t=n.pickInRange(t,0,i.x),e=n.pickInRange(e,0,i.y),this.hideTrack(),t!==o.x||e!==o.y){var s=(new Date).getTime(),c=this.__lastScrollTime;c||(c=this.__lastScrollTime=s);var l=s-c||1;this.__lastScrollTime=s,r.direction={x:t===o.x?"none":t>o.x?"right":"left",y:e===o.y?"none":e>o.y?"down":"up"},r.limit={x:i.x,y:i.y},r.velocity={x:(t-o.x)/l,y:(e-o.y)/l},r.offset=this.offset={x:t,y:e},this.__setThumbPosition();var f="translate3d("+-t+"px, "+-e+"px, 0)";n.setStyle(a.content,{"-webkit-transform":f,transform:f}),u.forEach(function(t){return t(r)})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(88);var n=r(6);e.SmoothScrollbar=n.SmoothScrollbar,n.SmoothScrollbar.prototype.infiniteScroll=function(t){var e=arguments.length<=1||void 0===arguments[1]?50:arguments[1];if("function"==typeof t){var r={x:0,y:0},n=!1;this.addListener(function(o){var i=o.offset,a=o.limit;a.y-i.y<=e&&i.y>r.y&&!n&&(n=!0,setTimeout(function(){return t(o)})),a.y-i.y>e&&(n=!1),r=i})}}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(93);n(e,o(i,n));var a=r(94);n(e,o(a,n));var u=r(95);n(e,o(u,n));var s=r(96);n(e,o(s,n))},function(t,e,r){"use strict";var n=r(30)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89),r(90);var o=r(6),i=r(9);e.SmoothScrollbar=o.SmoothScrollbar;var a=function(t){var e=this,r=t.easingDuration,o=void 0,a=void 0,u={},s={},c={},l=function(t){var e=i.getOriginalEvent(t).touches;n(e).forEach(function(t){if("length"!==t){var r=e[t];c[r.identifier]=i.getPosition(r)}})},f=function(t){cancelAnimationFrame(e.scrollAnimation),l(t),a=i.getTouchID(t),s=i.getPosition(t),o=(new Date).getTime(),u.x=u.y=0},d=function(t){l(t);var r=i.getTouchID(t),n=e.offset,f=e.limit;if(void 0===a)a=r,s=c[r],o=(new Date).getTime();else if(r!==a)return;if(s){var d=(new Date).getTime()-o,h=s,v=h.x,p=h.y,m=s=i.getPosition(t),y=m.x,g=m.y;d=d||1,u.x=(v-y)/d,u.y=(p-g)/d;var _=i.pickInRange(v-y+n.x,0,f.x),b=i.pickInRange(p-g+n.y,0,f.y);return Math.abs(_-n.x)<1&&Math.abs(b-n.y)<1?e.__updateThrottle():void(i.fromChildSB(t,e.__children)||(t.preventDefault(),e.setPosition(_,b)))}},h=function(t){if(!i.fromChildSB(t,e.__children)){delete c[a],a=void 0;var n=u.x,o=u.y,s=.01;(Math.abs(n)>s||Math.abs(o)>s)&&e.scrollTo(n*r+e.offset.x,o*r+e.offset.y,r),u.x=u.y=0}};return{start:f,move:d,end:h}};Object.defineProperty(o.SmoothScrollbar.prototype,"__touchHandlers",{value:a,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(86),r(89),r(90);var n=r(6),o=r(9);e.SmoothScrollbar=n.SmoothScrollbar;var i=function(t){var e=t.match(/scrollbar\-(?:track|thumb)\-([xy])/);return e&&e[1]},a=function(t){var e=this,r=t.speed,n=void 0,a=void 0,u=void 0,s=void 0,c=void 0,l=function(t){if(!a&&/track/.test(t.target.className)&&!o.fromChildSB(t,e.__children)){var n=t.target,u=i(n.className),s=n.getBoundingClientRect(),c=o.getPosition(t),l=e.size,f=e.offset,d=1e3/r;if("x"===u){var h=o.pickInRange(l.container.width/l.content.width,0,1),v=(c.x-s.left)/l.container.width;return e.scrollTo((v-h/2)*l.content.width,f.y,d)}var p=o.pickInRange(l.container.height/l.content.height,0,1),m=(c.y-s.top)/l.container.height;e.scrollTo(f.x,(m-p/2)*l.content.height,d)}},f=function(t){if(/thumb/.test(t.target.className)&&!o.fromChildSB(t,e.__children)){n=!0;var r=o.getPosition(t),a=t.target.getBoundingClientRect();s=i(t.target.className),u={x:r.x-a.left,y:r.y-a.top},c=e.target.container.getBoundingClientRect()}},d=function(t){if(n){a=!0,t.preventDefault();var r=e.size,i=e.offset,l=o.getPosition(t);return"x"===s?void e.setPosition((l.x-u.x-c.left)/(c.right-c.left)*r.content.width,i.y):void e.setPosition(i.x,(l.y-u.y-c.top)/(c.bottom-c.top)*r.content.height)}},h=function(){n=a=!1};return{click:l,down:f,move:d,up:h}};Object.defineProperty(n.SmoothScrollbar.prototype,"__mouseHandlers",{value:a,writable:!0,configurable:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(89);var n=r(6),o=r(9);e.SmoothScrollbar=n.SmoothScrollbar;var i=function(t){var e=this,r=t.speed,n=t.stepLength;return function(t){var i=e.offset,a=e.limit,u=o.getDelta(t),s=u.x,c=u.y,l=o.pickInRange(s*r*n+i.x,0,a.x),f=o.pickInRange(c*r*n+i.y,0,a.y);if(Math.abs(l-i.x)<1&&Math.abs(f-i.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation();var d=120*Math.sqrt(Math.max(Math.abs(s),Math.abs(c)));e.scrollTo(l,f,d/r)}};Object.defineProperty(n.SmoothScrollbar.prototype,"__wheelHandler",{value:i,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(97)["default"];Object.defineProperty(e,"__esModule",{value:!0}),r(89);var o=r(9),i=r(6);e.SmoothScrollbar=i.SmoothScrollbar;var a={37:[-1,0],38:[0,-1],39:[1,0],40:[0,1]},u=function(t){var e=this,r=t.speed,i=t.stepLength,u=void 0,s=this.target.container;return s.addEventListener("mousedown",function(t){t.stopPropagation(),u=!0}),document.addEventListener("mousedown",function(){return u=!1}),function(t){if(u){t=o.getOriginalEvent(t);var s=t.keyCode||t.which;if(a.hasOwnProperty(s)){var c=e.offset,l=e.limit,f=n(a[s],2),d=f[0],h=f[1],v=o.pickInRange(d*r*i+c.x,0,l.x),p=o.pickInRange(h*r*i+c.y,0,l.y);if(Math.abs(v-c.x)<1&&Math.abs(p-c.y)<1)return e.__updateThrottle();t.preventDefault(),t.stopPropagation(),e.scrollTo(v,p,600/r)}}}};Object.defineProperty(i.SmoothScrollbar.prototype,"__keyboardHandler",{value:u,writable:!0,configurable:!0})},function(t,e,r){"use strict";var n=r(37)["default"],o=r(98)["default"];e["default"]=function(){function t(t,e){var r=[],o=!0,i=!1,a=void 0;try{for(var u,s=n(t);!(o=(u=s.next()).done)&&(r.push(u.value),!e||r.length!==e);o=!0);}catch(c){i=!0,a=c}finally{try{!o&&s["return"]&&s["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(o(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e.__esModule=!0},function(t,e,r){t.exports={"default":r(99),__esModule:!0}},function(t,e,r){r(39),r(56),t.exports=r(100)},function(t,e,r){var n=r(63),o=r(51)("iterator"),i=r(43);t.exports=r(17).isIterable=function(t){var e=Object(t);return o in e||"@@iterator"in e||i.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(10)["default"],o=r(27)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(102);n(e,o(i,n));var a=r(103);n(e,o(a,n));var u=r(87);n(e,o(u,n))},function(t,e,r){"use strict";function n(t){this.update();var e=this.target.container,r=this.__wheelHandler(t),n=this.__keyboardHandler(t),o=this.__touchHandlers(t),a=this.__mouseHandlers(t),u=this.__updateThrottle;e.addEventListener(i,r),e.addEventListener("touchstart",o.start),e.addEventListener("touchmove",o.move),e.addEventListener("touchend",o.end),e.addEventListener("click",a.click),e.addEventListener("mousedown",a.down),window.addEventListener("mousemove",a.move),window.addEventListener("mouseup",a.up),window.addEventListener("keydown",n),window.addEventListener("blur",a.up),window.addEventListener("resize",u),this.destroy=function(){e.removeEventListener(i,r),e.removeEventListener("touchstart",o.start),e.removeEventListener("touchmove",o.move),e.removeEventListener("touchend",o.end),e.removeEventListener("click",a.click),e.removeEventListener("mousedown",a.down),window.removeEventListener("keydown",n),window.removeEventListener("mousemove",a.move),window.removeEventListener("mouseup",a.up),window.removeEventListener("blur",a.up),window.removeEventListener("resize",u)}}Object.defineProperty(e,"__esModule",{value:!0}),r(92);var o=r(6);e.SmoothScrollbar=o.SmoothScrollbar;var i="onwheel"in window?"wheel":"mousewheel";Object.defineProperty(o.SmoothScrollbar.prototype,"__initScrollbar",{value:n,writable:!0,configurable:!0})},function(t,e,r){"use strict";function n(){Object.defineProperty(this,"__children",{value:[].concat(o(this.target.content.querySelectorAll("[scrollbar]"))),writable:!0})}var o=r(70)["default"];Object.defineProperty(e,"__esModule",{value:!0});var i=r(6);e.SmoothScrollbar=i.SmoothScrollbar, | ||
Object.defineProperty(i.SmoothScrollbar.prototype,"__updateChildren",{value:n,writable:!0,configurable:!0})}]); |
{ | ||
"name": "angular-smooth-scrollbar", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "An angular module that allows you customize smooth scrollbars", | ||
@@ -27,4 +27,3 @@ "main": "dist/smooth_scrollbar.js", | ||
"dependencies": { | ||
"babel-runtime": "^5.8.20", | ||
"bezier-easing": "gre/bezier-easing" | ||
"babel-runtime": "^5.8.20" | ||
}, | ||
@@ -31,0 +30,0 @@ "devDependencies": { |
@@ -57,5 +57,5 @@ # angular-smooth-scrollbar | ||
### ScrollbarService.getInstance( name, cb ) | ||
### ScrollbarService.getInstance( name ) | ||
Get scrollbar instance by giving the name, and instance is passed through callback function. If the named instance is already existed, callback will be invoked as soon as possible, otherwise callback will not be called until that instance is created. | ||
Get scrollbar instance by giving the name, and return a promise with instance. | ||
@@ -156,2 +156,4 @@ ### ScrollbarService.destroyInstance( name ) | ||
### 2. SmoothScrollbar for non-angular project | ||
### 2. SmoothScrollbar for non-angular project | ||
I prefer to use SmoothScrollbar as an universal components, so I am using some DOM-related operations in this project. I wish to build another repo for SmoothScrollbar and let current one to be an extension for angular projects if I have time. |
/** | ||
* @module | ||
* @prototype {Function} __mouseHandlers | ||
* @dependencies [ SmoothScrollbar, #getSize, #scrollTo, #setPosition, getPosition, getTouchID, pickInRange ] | ||
* @dependencies [ SmoothScrollbar, #getSize, #scrollTo, #setPosition, getPosition, getTouchID, pickInRange, fromChildSB ] | ||
*/ | ||
@@ -11,3 +11,3 @@ | ||
import { SmoothScrollbar } from '../smooth_scrollbar'; | ||
import { getPosition, getTouchID, pickInRange } from '../utils/index'; | ||
import { getPosition, getTouchID, pickInRange, fromChildSB } from '../utils/index'; | ||
@@ -43,3 +43,3 @@ export { SmoothScrollbar }; | ||
let clickHandler = (evt) => { | ||
if (isMouseMove || !/track/.test(evt.target.className)) return; | ||
if (isMouseMove || !/track/.test(evt.target.className) || fromChildSB(evt, this.__children)) return; | ||
@@ -78,3 +78,3 @@ let track = evt.target; | ||
let mousedownHandler = (evt) => { | ||
if (!/thumb/.test(evt.target.className)) return; | ||
if (!/thumb/.test(evt.target.className) || fromChildSB(evt, this.__children)) return; | ||
isMouseDown = true; | ||
@@ -81,0 +81,0 @@ |
/** | ||
* @module | ||
* @prototype {Function} __touchHandlers | ||
* @dependencies [ SmoothScrollbar, #scrollTo, #setPosition, getOriginalEvent, getPosition, getTouchID, pickInRange ] | ||
* @dependencies [ SmoothScrollbar, #scrollTo, #setPosition, getOriginalEvent, getPosition, getTouchID, pickInRange, fromChildSB ] | ||
*/ | ||
@@ -10,3 +10,3 @@ | ||
import { SmoothScrollbar } from '../smooth_scrollbar'; | ||
import { getOriginalEvent, getPosition, getTouchID, pickInRange } from '../utils/index'; | ||
import { getOriginalEvent, getPosition, getTouchID, pickInRange, fromChildSB } from '../utils/index'; | ||
@@ -88,4 +88,6 @@ export { SmoothScrollbar }; | ||
if (fromChildSB(evt, this.__children)) return; | ||
evt.preventDefault(); | ||
evt.stopPropagation(); | ||
// evt.stopPropagation(); | ||
@@ -97,2 +99,4 @@ // don't need easing too | ||
let endHandler = (evt) => { | ||
if (fromChildSB(evt, this.__children)) return; | ||
// release current touch | ||
@@ -99,0 +103,0 @@ delete touchRecords[lastTouchID]; |
@@ -9,5 +9,8 @@ import { SmoothScrollbar } from './smooth_scrollbar'; | ||
.service('ScrollbarService', class ScrollbarService{ | ||
constructor() { | ||
static $inject = ['$q']; | ||
constructor($q) { | ||
this.scrollbarInstances = {}; | ||
this.deferreds = {}; | ||
this.$q = $q; | ||
} | ||
@@ -24,16 +27,8 @@ | ||
*/ | ||
getInstance(name, cb) { | ||
if (typeof cb !== 'function') return; | ||
getInstance(name) { | ||
let { deferreds, $q } = this; | ||
let { scrollbarInstances, deferreds } = this; | ||
let deferred = deferreds[name] = deferreds[name] || $q.defer(); | ||
// execute async to avoid `destroy` executed after `get` | ||
setTimeout(() => { | ||
if (scrollbarInstances.hasOwnProperty(name)) { | ||
return cb(scrollbarInstances[name]); | ||
} | ||
deferreds[name] = deferreds[name] || []; | ||
deferreds[name].push(cb); | ||
}); | ||
return deferred.promise; | ||
} | ||
@@ -48,2 +43,4 @@ | ||
* @param {Object} options: as is explained in scrollbar constructor | ||
* | ||
* @return {Scrollbar} scrollbar instance | ||
*/ | ||
@@ -60,9 +57,6 @@ createInstance(name, elem, options) { | ||
if (deferreds.hasOwnProperty(name)) { | ||
// invoke delaied callbacks | ||
deferreds[name].forEach((cb) => { | ||
setTimeout(() => cb(instance)); | ||
}); | ||
deferreds[name].resolve(instance); | ||
} | ||
delete deferreds[name]; | ||
} | ||
return instance; | ||
} | ||
@@ -69,0 +63,0 @@ |
export * from './init_scrollbar'; | ||
export * from './update_children'; | ||
export * from './set_thumb_position'; |
@@ -25,46 +25,46 @@ /** | ||
*/ | ||
let __initScrollbar = function(options) { | ||
this.update(); // initialize thumb position | ||
function __initScrollbar(options) { | ||
this.update(); // initialize thumb position | ||
let container = this.target.container; | ||
let wheelHandler = this.__wheelHandler(options); | ||
let keyboardHandler = this.__keyboardHandler(options); | ||
let touchHandlers = this.__touchHandlers(options); | ||
let mouseHandlers = this.__mouseHandlers(options); | ||
let resizeHandler = this.__updateThrottle; | ||
let container = this.target.container; | ||
let wheelHandler = this.__wheelHandler(options); | ||
let keyboardHandler = this.__keyboardHandler(options); | ||
let touchHandlers = this.__touchHandlers(options); | ||
let mouseHandlers = this.__mouseHandlers(options); | ||
let resizeHandler = this.__updateThrottle; | ||
container.addEventListener(WHEEL_EVENT, wheelHandler); | ||
container.addEventListener(WHEEL_EVENT, wheelHandler); | ||
container.addEventListener('touchstart', touchHandlers.start); | ||
container.addEventListener('touchmove', touchHandlers.move); | ||
container.addEventListener('touchend', touchHandlers.end); | ||
container.addEventListener('touchstart', touchHandlers.start); | ||
container.addEventListener('touchmove', touchHandlers.move); | ||
container.addEventListener('touchend', touchHandlers.end); | ||
// init drag and click on scrollbar track | ||
container.addEventListener('click', mouseHandlers.click); | ||
container.addEventListener('mousedown', mouseHandlers.down); | ||
window.addEventListener('mousemove', mouseHandlers.move); | ||
window.addEventListener('mouseup', mouseHandlers.up); | ||
// init drag and click on scrollbar track | ||
container.addEventListener('click', mouseHandlers.click); | ||
container.addEventListener('mousedown', mouseHandlers.down); | ||
window.addEventListener('mousemove', mouseHandlers.move); | ||
window.addEventListener('mouseup', mouseHandlers.up); | ||
window.addEventListener('keydown', keyboardHandler); | ||
window.addEventListener('keydown', keyboardHandler); | ||
// release mousemove spy on window lost focus | ||
window.addEventListener('blur', mouseHandlers.up); | ||
// update on resize | ||
window.addEventListener('resize', resizeHandler); | ||
// release mousemove spy on window lost focus | ||
window.addEventListener('blur', mouseHandlers.up); | ||
// update on resize | ||
window.addEventListener('resize', resizeHandler); | ||
this.destroy = () => { | ||
container.removeEventListener(WHEEL_EVENT, wheelHandler); | ||
container.removeEventListener('touchstart', touchHandlers.start); | ||
container.removeEventListener('touchmove', touchHandlers.move); | ||
container.removeEventListener('touchend', touchHandlers.end); | ||
container.removeEventListener('click', mouseHandlers.click); | ||
container.removeEventListener('mousedown', mouseHandlers.down); | ||
this.destroy = () => { | ||
container.removeEventListener(WHEEL_EVENT, wheelHandler); | ||
container.removeEventListener('touchstart', touchHandlers.start); | ||
container.removeEventListener('touchmove', touchHandlers.move); | ||
container.removeEventListener('touchend', touchHandlers.end); | ||
container.removeEventListener('click', mouseHandlers.click); | ||
container.removeEventListener('mousedown', mouseHandlers.down); | ||
window.removeEventListener('keydown', keyboardHandler); | ||
window.removeEventListener('mousemove', mouseHandlers.move); | ||
window.removeEventListener('mouseup', mouseHandlers.up); | ||
window.removeEventListener('blur', mouseHandlers.up); | ||
window.removeEventListener('resize', resizeHandler); | ||
}; | ||
}; | ||
window.removeEventListener('keydown', keyboardHandler); | ||
window.removeEventListener('mousemove', mouseHandlers.move); | ||
window.removeEventListener('mouseup', mouseHandlers.up); | ||
window.removeEventListener('blur', mouseHandlers.up); | ||
window.removeEventListener('resize', resizeHandler); | ||
}; | ||
}; | ||
@@ -71,0 +71,0 @@ Object.defineProperty(SmoothScrollbar.prototype, '__initScrollbar', { |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
let __setThumbPosition = function() { | ||
function __setThumbPosition() { | ||
let { x, y } = this.offset; | ||
@@ -20,0 +20,0 @@ let { xAxis, yAxis } = this.target; |
@@ -10,2 +10,7 @@ /** | ||
let sbList = []; | ||
let updateChild = () => { | ||
sbList.forEach((sb) => sb.__updateChildren()); | ||
}; | ||
/** | ||
@@ -97,3 +102,6 @@ * @constructor | ||
}); | ||
sbList.push(this); | ||
updateChild(); | ||
} | ||
} |
/** | ||
* @module | ||
* @export {Function} getPointerData | ||
* @dependencies [ getOriginalEvent ] | ||
*/ | ||
import { getOriginalEvent } from './get_original_event'; | ||
/** | ||
* Get pointer/touch data | ||
* @param {EventObject} evt: original DOM event | ||
* @param {Object} evt: event object | ||
*/ | ||
@@ -13,3 +16,5 @@ export let getPointerData = (evt) => { | ||
// else return original event | ||
evt = getOriginalEvent(evt); | ||
return evt.touches ? evt.touches[evt.touches.length - 1] : evt; | ||
}; |
@@ -7,2 +7,3 @@ export * from './debounce'; | ||
export * from './get_position'; | ||
export * from './from_child_sb'; | ||
export * from './pick_in_range'; | ||
@@ -9,0 +10,0 @@ export * from './motion_builder'; |
@@ -6,3 +6,3 @@ (function(angular) { | ||
app.controller('GetDataCtrl', function($scope, ScrollbarService) { | ||
app.controller('GetDataCtrl', function($scope, $timeout, ScrollbarService) { | ||
$scope.offset = { | ||
@@ -25,9 +25,9 @@ x: 0, | ||
var lastTime, mustRun; | ||
var scrollbarPromise = ScrollbarService.getInstance('getData'); | ||
ScrollbarService.getInstance('getData', function(scrollbar) { | ||
console.log(scrollbar) | ||
scrollbarPromise.then(function (scrollbar) { | ||
$scope.offset = scrollbar.offset; | ||
$scope.$apply(); | ||
var lastTime, mustRun; | ||
scrollbar.addListener(function(status) { | ||
@@ -37,9 +37,7 @@ var now = (new Date()).getTime(); | ||
clearTimeout(mustRun); | ||
$timeout.cancel(mustRun); | ||
mustRun = setTimeout(function() { | ||
$scope.$apply(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}); | ||
mustRun = $timeout(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}, 300); | ||
@@ -50,8 +48,11 @@ | ||
lastTime = now; | ||
$scope.$apply(function() { | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
}); | ||
$scope.offset = status.offset; | ||
$scope.velocity = status.velocity; | ||
$scope.$apply(); | ||
}); | ||
}); | ||
scrollbarPromise.then(function (scrollbar) { | ||
console.log(scrollbar) | ||
var count = 0; | ||
@@ -61,15 +62,13 @@ scrollbar.infiniteScroll(function() { | ||
$scope.loading = 'the end'; | ||
return; | ||
} | ||
} else { | ||
$scope.loading = 'loading...'; | ||
$scope.$apply(function() { | ||
$scope.loading = 'loading...'; | ||
setTimeout(function() { | ||
$timeout(function() { | ||
$scope.loading = 'pending...'; | ||
article.push(paragraphTmpl); | ||
article.push(paragraphTmpl); | ||
$scope.$apply(); | ||
article.push(paragraphTmpl, paragraphTmpl); | ||
scrollbar.update(); | ||
}, 500); | ||
}); | ||
} | ||
$scope.$apply(); | ||
}); | ||
@@ -76,0 +75,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
873397
1
49
1708
157
0
0
- Removedbezier-easing@gre/bezier-easing