text: !function(n,e,t){"use strict";function c(n,t,c){o.directive(n,["$parse","$swipe",function(o,i){return function(a,u,r){function s(n){if(!l)return!1;var e=Math.abs(n.y-l.y);return n=(n.x-l.x)*t,h&&75>e&&0<n&&30<n&&.3>e/n}var l,h,f=o(r[n]),v=["touch"];e.isDefined(r.ngSwipeDisableMouse)||v.push("mouse"),i.bind(u,{start:function(n,e){l=n,h=!0},cancel:function(n){h=!1},end:function(n,e){s(n)&&a.$apply(function(){u.triggerHandler(c),f(a,{$event:e})})}},v)}}])}var o=e.module("ngTouch",[]);o.factory("$swipe",[function(){function n(n){n=n.originalEvent||n;var e=n.touches&&n.touches.length?n.touches:[n];return n=n.changedTouches&&n.changedTouches[0]||e[0],{x:n.clientX,y:n.clientY}}function t(n,t){var o=[];return e.forEach(n,function(n){(n=c[n][t])&&o.push(n)}),o.join(" ")}var c={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(e,c,o){var i,a,u,r,s=!1;o=o||["mouse","touch"],e.on(t(o,"start"),function(e){u=n(e),s=!0,a=i=0,r=u,c.start&&c.start(u,e)});var l=t(o,"cancel");l&&e.on(l,function(n){s=!1,c.cancel&&c.cancel(n)}),e.on(t(o,"move"),function(e){if(s&&u){var t=n(e);i+=Math.abs(t.x-r.x),a+=Math.abs(t.y-r.y),r=t,10>i&&10>a||(a>i?(s=!1,c.cancel&&c.cancel(e)):(e.preventDefault(),c.move&&c.move(t,e)))}}),e.on(t(o,"end"),function(e){s&&(s=!1,c.end&&c.end(n(e),e))})}}}]),o.config(["$provide",function(n){n.decorator("ngClickDirective",["$delegate",function(n){return n.shift(),n}])}]),o.directive("ngClick",["$parse","$timeout","$rootElement",function(n,t,c){function o(n,e,t){for(var c=0;c<n.length;c+=2){var o=n[c+1],i=t;if(25>Math.abs(n[c]-e)&&25>Math.abs(o-i))return n.splice(c,c+2),!0}return!1}function i(n){if(!(2500<Date.now()-u)){var t=n.touches&&n.touches.length?n.touches:[n],c=t[0].clientX,t=t[0].clientY;if(!(1>c&&1>t||s&&s[0]===c&&s[1]===t)){s&&(s=null);var i=n.target;"label"===e.lowercase(i.nodeName||i[0]&&i[0].nodeName)&&(s=[c,t]),o(r,c,t)||(n.stopPropagation(),n.preventDefault(),n.target&&n.target.blur&&n.target.blur())}}}function a(n){n=n.touches&&n.touches.length?n.touches:[n];var e=n[0].clientX,c=n[0].clientY;r.push(e,c),t(function(){for(var n=0;n<r.length;n+=2)if(r[n]==e&&r[n+1]==c){r.splice(n,n+2);break}},2500,!1)}var u,r,s;return function(t,s,l){function h(){m=!1,s.removeClass("ng-click-active")}var f,v,d,g,p=n(l.ngClick),m=!1;s.on("touchstart",function(n){m=!0,f=n.target?n.target:n.srcElement,3==f.nodeType&&(f=f.parentNode),s.addClass("ng-click-active"),v=Date.now(),n=n.originalEvent||n,n=(n.touches&&n.touches.length?n.touches:[n])[0],d=n.clientX,g=n.clientY}),s.on("touchmove",function(n){h()}),s.on("touchcancel",function(n){h()}),s.on("touchend",function(n){var t=Date.now()-v,p=n.originalEvent||n,w=(p.changedTouches&&p.changedTouches.length?p.changedTouches:p.touches&&p.touches.length?p.touches:[p])[0],p=w.clientX,w=w.clientY,b=Math.sqrt(Math.pow(p-d,2)+Math.pow(w-g,2));m&&750>t&&12>b&&(r||(c[0].addEventListener("click",i,!0),c[0].addEventListener("touchstart",a,!0),r=[]),u=Date.now(),o(r,p,w),f&&f.blur(),e.isDefined(l.disabled)&&!1!==l.disabled||s.triggerHandler("click",[n])),h()}),s.onclick=function(n){},s.on("click",function(n,e){t.$apply(function(){p(t,{$event:e||n})})}),s.on("mousedown",function(n){s.addClass("ng-click-active")}),s.on("mousemove mouseup",function(n){s.removeClass("ng-click-active")})}}]),c("ngSwipeLeft",-1,"swipeleft"),c("ngSwipeRight",1,"swiperight")}(window,window.angular);