angular-animate
Advanced tools
Comparing version 1.5.0-rc.0 to 1.5.0-rc.1
/* | ||
AngularJS v1.5.0-rc.0 | ||
(c) 2010-2015 Google, Inc. http://angularjs.org | ||
AngularJS v1.5.0-rc.1 | ||
(c) 2010-2016 Google, Inc. http://angularjs.org | ||
License: MIT | ||
*/ | ||
(function(J,t,Ta){'use strict';function xa(a,b,c){if(!a)throw ngMinErr("areq",b||"?",c||"required");return a}function ya(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;Z(a)&&(a=a.join(" "));Z(b)&&(b=b.join(" "));return a+" "+b}function Ka(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function U(a,b,c){var d="";a=Z(a)?a:a&&H(a)&&a.length?a.split(/\s+/):[];w(a,function(a,r){a&&0<a.length&&(d+=0<r?" ":"",d+=c?b+a:a+b)});return d}function La(a){if(a instanceof L)switch(a.length){case 0:return[]; | ||
case 1:if(1===a[0].nodeType)return a;break;default:return L($(a))}if(1===a.nodeType)return L(a)}function $(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1==c.nodeType)return c}}function Ma(a,b,c){w(b,function(b){a.addClass(b,c)})}function Na(a,b,c){w(b,function(b){a.removeClass(b,c)})}function O(a){return function(b,c){c.addClass&&(Ma(a,b,c.addClass),c.addClass=null);c.removeClass&&(Na(a,b,c.removeClass),c.removeClass=null)}}function ma(a){a=a||{};if(!a.$$prepared){var b=a.domOperation|| | ||
M;a.domOperation=function(){a.$$domOperationFired=!0;b();b=M};a.$$prepared=!0}return a}function ha(a,b){za(a,b);Aa(a,b)}function za(a,b){b.from&&(a.css(b.from),b.from=null)}function Aa(a,b){b.to&&(a.css(b.to),b.to=null)}function R(a,b,c){var d=(b.addClass||"")+" "+(c.addClass||""),f=(b.removeClass||"")+" "+(c.removeClass||"");a=Oa(a.attr("class"),d,f);c.preparationClasses&&(b.preparationClasses=V(c.preparationClasses,b.preparationClasses),delete c.preparationClasses);d=b.domOperation!==M?b.domOperation: | ||
null;Ba(b,c);d&&(b.domOperation=d);b.addClass=a.addClass?a.addClass:null;b.removeClass=a.removeClass?a.removeClass:null;return b}function Oa(a,b,c){function d(a){H(a)&&(a=a.split(" "));var b={};w(a,function(a){a.length&&(b[a]=!0)});return b}var f={};a=d(a);b=d(b);w(b,function(a,b){f[b]=1});c=d(c);w(c,function(a,b){f[b]=1===f[b]?null:-1});var r={addClass:"",removeClass:""};w(f,function(b,c){var d,f;1===b?(d="addClass",f=!a[c]):-1===b&&(d="removeClass",f=a[c]);f&&(r[d].length&&(r[d]+=" "),r[d]+=c)}); | ||
return r}function G(a){return a instanceof t.element?a[0]:a}function Pa(a,b,c){var d="";b&&(d=U(b,"ng-",!0));c.addClass&&(d=V(d,U(c.addClass,"-add")));c.removeClass&&(d=V(d,U(c.removeClass,"-remove")));d.length&&(c.preparationClasses=d,a.addClass(d))}function na(a,b){var c=b?"-"+b+"s":"";ia(a,[ja,c]);return[ja,c]}function pa(a,b){var c=b?"paused":"",d=W+"PlayState";ia(a,[d,c]);return[d,c]}function ia(a,b){a.style[b[0]]=b[1]}function V(a,b){return a?b?a+" "+b:a:b}function Ca(a,b,c){var d=Object.create(null), | ||
f=a.getComputedStyle(b)||{};w(c,function(a,b){var c=f[a];if(c){var h=c.charAt(0);if("-"===h||"+"===h||0<=h)c=Qa(c);0===c&&(c=null);d[b]=c}});return d}function Qa(a){var b=0;a=a.split(/\s*,\s*/);w(a,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function qa(a){return 0===a||null!=a}function Da(a,b){var c=P,d=a+"s";b?c+="Duration":d+=" linear all";return[c,d]}function Ea(){var a=Object.create(null);return{flush:function(){a=Object.create(null)}, | ||
count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function Fa(a,b,c){w(c,function(c){a[c]=aa(a[c])?a[c]:b.style.getPropertyValue(c)})}var M=t.noop,Ga=t.copy,Ba=t.extend,L=t.element,w=t.forEach,Z=t.isArray,H=t.isString,ra=t.isObject,sa=t.isUndefined,aa=t.isDefined,Ha=t.isFunction,ta=t.isElement,P,ua,W,va;sa(J.ontransitionend)&&aa(J.onwebkittransitionend)?(P="WebkitTransition",ua="webkitTransitionEnd transitionend"): | ||
(P="transition",ua="transitionend");sa(J.onanimationend)&&aa(J.onwebkitanimationend)?(W="WebkitAnimation",va="webkitAnimationEnd animationend"):(W="animation",va="animationend");var oa=W+"Delay",wa=W+"Duration",ja=P+"Delay";J=P+"Duration";var Ra={transitionDuration:J,transitionDelay:ja,transitionProperty:P+"Property",animationDuration:wa,animationDelay:oa,animationIterationCount:W+"IterationCount"},Sa={transitionDuration:J,transitionDelay:ja,animationDuration:wa,animationDelay:oa};t.module("ngAnimate", | ||
[]).directive("ngAnimateSwap",["$animate","$rootScope",function(a,b){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(b,d,f,r,A){var u,h;b.$watchCollection(f.ngAnimateSwap||f["for"],function(f){u&&a.leave(u);h&&(h.$destroy(),h=null);if(f||0===f)h=b.$new(),A(h,function(b){u=b;a.enter(b,null,d)})})}}}]).directive("ngAnimateChildren",[function(){return function(a,b,c){a=c.ngAnimateChildren;t.isString(a)&&0===a.length?b.data("$$ngAnimateChildren",!0):c.$observe("ngAnimateChildren", | ||
function(a){b.data("$$ngAnimateChildren","on"===a||"true"===a)})}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),A=0;A<b.length;A++)b[A]();f||a(function(){f||c()})}}var d,f;d=b.queue=[];b.waitUntilQuiet=function(b){f&&f();f=a(function(){f=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a,b,c,u){return d[a].some(function(a){return a(b,c,u)})}function c(a,b){a=a||{};var c= | ||
0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var d=this.rules={skip:[],cancel:[],join:[]};d.join.push(function(a,b,d){return!b.structural&&c(b.options)});d.skip.push(function(a,b,d){return!b.structural&&!c(b.options)});d.skip.push(function(a,b,c){return"leave"==c.event&&b.structural});d.skip.push(function(a,b,c){return c.structural&&2===c.state&&!b.structural});d.cancel.push(function(a,b,c){return c.structural&&b.structural});d.cancel.push(function(a,b,c){return 2=== | ||
c.state&&b.structural});d.cancel.push(function(a,b,c){a=b.options;c=c.options;return a.addClass&&a.addClass===c.removeClass||a.removeClass&&a.removeClass===c.addClass});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(d,r,A,u,h,v,ea,t,g,I){function C(){var a=!1;return function(b){a?b():r.$$postDigest(function(){a=!0;b()})}}function ba(a,b,c){var d=G(b),l=G(a),k=[];(a=e[c])&&w(a,function(a){a.node.contains(d)? | ||
k.push(a.callback):"leave"===c&&a.node.contains(l)&&k.push(a.callback)});return k}function s(a,e,x){function la(b,c,e,D){A(function(){var b=ba(h,a,c);b.length&&d(function(){w(b,function(b){b(a,e,D)})})});b.progress(c,e,D)}function B(b){var c=a,e=m;e.preparationClasses&&(c.removeClass(e.preparationClasses),e.preparationClasses=null);e.activeClasses&&(c.removeClass(e.activeClasses),e.activeClasses=null);Ja(a,m);ha(a,m);m.domOperation();g.complete(!b)}var m=Ga(x),p,h;if(a=La(a))p=G(a),h=a.parent();var m= | ||
ma(m),g=new ea,A=C();Z(m.addClass)&&(m.addClass=m.addClass.join(" "));m.addClass&&!H(m.addClass)&&(m.addClass=null);Z(m.removeClass)&&(m.removeClass=m.removeClass.join(" "));m.removeClass&&!H(m.removeClass)&&(m.removeClass=null);m.from&&!ra(m.from)&&(m.from=null);m.to&&!ra(m.to)&&(m.to=null);if(!p)return B(),g;x=[p.className,m.addClass,m.removeClass].join(" ");if(!l(x))return B(),g;var u=0<=["enter","move","leave"].indexOf(e),s=!N||E.get(p);x=!s&&k.get(p)||{};var I=!!x.state;s||I&&1==x.state||(s= | ||
!T(a,h,e));if(s)return B(),g;u&&y(a);s={structural:u,element:a,event:e,close:B,options:m,runner:g};if(I){if(b("skip",a,s,x)){if(2===x.state)return B(),g;R(a,x.options,m);return x.runner}if(b("cancel",a,s,x))if(2===x.state)x.runner.end();else if(x.structural)x.close();else return R(a,x.options,s.options),x.runner;else if(b("join",a,s,x))if(2===x.state)R(a,m,{});else return Pa(a,u?e:null,m),e=s.event=x.event,m=R(a,x.options,s.options),x.runner}else R(a,m,{});(I=s.structural)||(I="animate"===s.event&& | ||
0<Object.keys(s.options.to||{}).length||c(s.options));if(!I)return B(),z(a),g;var t=(x.counter||0)+1;s.counter=t;n(a,1,s);r.$$postDigest(function(){var b=k.get(p),d=!b,b=b||{},x=0<(a.parent()||[]).length&&("animate"===b.event||b.structural||c(b.options));if(d||b.counter!==t||!x){d&&(Ja(a,m),ha(a,m));if(d||u&&b.event!==e)m.domOperation(),g.end();x||z(a)}else e=!b.structural&&c(b.options,!0)?"setClass":b.event,n(a,2),b=v(a,e,b.options),b.done(function(b){B(!b);(b=k.get(p))&&b.counter===t&&z(G(a));la(g, | ||
e,"close",{})}),g.setHost(b),la(g,e,"start",{})});return g}function y(a){a=G(a).querySelectorAll("[data-ng-animate]");w(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate")),c=k.get(a);if(c)switch(b){case 2:c.runner.end();case 1:k.remove(a)}})}function z(a){a=G(a);a.removeAttribute("data-ng-animate");k.remove(a)}function B(a,b){return G(a)===G(b)}function T(a,b,c){c=L(u[0].body);var e=B(a,c)||"HTML"===a[0].nodeName,d=B(a,A),l=!1,z;for((a=a.data("$ngAnimatePin"))&&(b=a);b&&b.length;){d|| | ||
(d=B(b,A));a=b[0];if(1!==a.nodeType)break;var n=k.get(a)||{};l||(l=n.structural||E.get(a));if(sa(z)||!0===z)a=b.data("$$ngAnimateChildren"),aa(a)&&(z=a);if(l&&!1===z)break;d||(d=B(b,A),d||(a=b.data("$ngAnimatePin"))&&(b=a));e||(e=B(b,c));b=b.parent()}return(!l||z)&&d&&e}function n(a,b,c){c=c||{};c.state=b;a=G(a);a.setAttribute("data-ng-animate",b);c=(b=k.get(a))?Ba(b,c):c;k.put(a,c)}var k=new h,E=new h,N=null,p=r.$watch(function(){return 0===t.totalPendingRequests},function(a){a&&(p(),r.$$postDigest(function(){r.$$postDigest(function(){null=== | ||
N&&(N=!0)})}))}),e={},la=a.classNameFilter(),l=la?function(a){return la.test(a)}:function(){return!0},Ja=O(g);return{on:function(a,b,c){b=$(b);e[a]=e[a]||[];e[a].push({node:b,callback:c})},off:function(a,b,c){function d(a,b,c){var e=$(b);return a.filter(function(a){return!(a.node===e&&(!c||a.callback===c))})}var l=e[a];l&&(e[a]=1===arguments.length?null:d(l,b,c))},pin:function(a,b){xa(ta(a),"element","not an element");xa(ta(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a, | ||
b,c,e){c=c||{};c.domOperation=e;return s(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!N;else if(ta(a)){var e=G(a),d=E.get(e);1===c?b=!d:(b=!!b)?d&&E.remove(e):E.put(e,!0)}else b=N=!!a;return b}}}]}]).provider("$$animation",["$animateProvider",function(a){function b(a){return a.data("$$animationRunner")}var c=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,f,r,A,u,h){function v(a){function b(a){if(a.processed)return a; | ||
a.processed=!0;var d=a.domNode,T=d.parentNode;f.put(d,a);for(var n;T;){if(n=f.get(T)){n.processed||(n=b(n));break}T=T.parentNode}(n||c).children.push(a);return a}var c={children:[]},d,f=new u;for(d=0;d<a.length;d++){var h=a[d];f.put(h.domNode,a[d]={domNode:h.domNode,fn:h.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var k=0,f=[];for(d=0;d<c.length;d++){var h=c[d];0>=a&&(a=k,k=0,b.push(f),f=[]);f.push(h.fn); | ||
h.children.forEach(function(a){k++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var ea=[],t=O(a);return function(g,u,C){function ba(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];w(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function s(a){var b=[],c={};w(a,function(a,e){var d=G(a.element),k=0<=["enter","move"].indexOf(a.event),d=a.structural?ba(d):[];if(d.length){var f=k?"to":"from";w(d,function(a){var b=a.getAttribute("ng-animate-ref"); | ||
c[b]=c[b]||{};c[b][f]={animationID:e,element:L(a)}})}else b.push(a)});var e={},d={};w(c,function(c,k){var f=c.from,z=c.to;if(f&&z){var n=a[f.animationID],p=a[z.animationID],h=f.animationID.toString();if(!d[h]){var B=d[h]={structural:!0,beforeStart:function(){n.beforeStart();p.beforeStart()},close:function(){n.close();p.close()},classes:y(n.classes,p.classes),from:n,to:p,anchors:[]};B.classes.length?b.push(B):(b.push(n),b.push(p))}d[h].anchors.push({out:f.element,"in":z.element})}else f=f?f.animationID: | ||
z.animationID,z=f.toString(),e[z]||(e[z]=!0,b.push(a[f]))});return b}function y(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],e=0;e<a.length;e++){var d=a[e];if("ng-"!==d.substring(0,3))for(var k=0;k<b.length;k++)if(d===b[k]){c.push(d);break}}return c.join(" ")}function z(a){for(var b=c.length-1;0<=b;b--){var e=c[b];if(r.has(e)&&(e=r.get(e)(a)))return e}}function B(a,c){a.from&&a.to?(b(a.from.element).setHost(c),b(a.to.element).setHost(c)):b(a.element).setHost(c)}function T(){var a=b(g);!a||"leave"=== | ||
u&&C.$$domOperationFired||a.end()}function n(b){g.off("$destroy",T);g.removeData("$$animationRunner");t(g,C);ha(g,C);C.domOperation();p&&a.removeClass(g,p);g.removeClass("ng-animate");E.complete(!b)}C=ma(C);var k=0<=["enter","move","leave"].indexOf(u),E=new A({end:function(){n()},cancel:function(){n(!0)}});if(!c.length)return n(),E;g.data("$$animationRunner",E);var N=ya(g.attr("class"),ya(C.addClass,C.removeClass)),p=C.tempClasses;p&&(N+=" "+p,C.tempClasses=null);var e;k&&(e="ng-"+u+"-prepare",a.addClass(g, | ||
e));ea.push({element:g,classes:N,event:u,structural:k,options:C,beforeStart:function(){g.addClass("ng-animate");p&&a.addClass(g,p);e&&(a.removeClass(g,e),e=null)},close:n});g.on("$destroy",T);if(1<ea.length)return E;f.$$postDigest(function(){var a=[];w(ea,function(c){b(c.element)?a.push(c):c.close()});ea.length=0;var c=s(a),e=[];w(c,function(a){e.push({domNode:G(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var c,e=a.close;if(b(a.anchors?a.from.element||a.to.element:a.element)){var d= | ||
z(a);d&&(c=d.start)}c?(c=c(),c.done(function(a){e(!a)}),B(a,c)):e()}})});h(v(e))});return E}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=Ea(),c=Ea();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$animate",function(a,f,r,A,u,h,v,t){function Ia(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++s))+"-"+a.getAttribute("class")+"-"+b}function g(z,h,g,n){var k;0<b.count(g)&&(k=c.get(g),k||(h= | ||
U(h,"-stagger"),f.addClass(z,h),k=Ca(a,z,n),k.animationDuration=Math.max(k.animationDuration,0),k.transitionDuration=Math.max(k.transitionDuration,0),f.removeClass(z,h),c.put(g,k)));return k||{}}function I(a){y.push(a);v.waitUntilQuiet(function(){b.flush();c.flush();for(var a=u(),d=0;d<y.length;d++)y[d](a);y.length=0})}function C(c,f,h){f=b.get(h);f||(f=Ca(a,c,Ra),"infinite"===f.animationIterationCount&&(f.animationIterationCount=1));b.put(h,f);c=f;h=c.animationDelay;f=c.transitionDelay;c.maxDelay= | ||
h&&f?Math.max(h,f):h||f;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var ba=O(f),s=0,y=[];return function(a,c){function d(){k()}function n(){k(!0)}function k(b){if(!(x||J&&ca)){x=!0;ca=!1;e.$$skipPreparationClasses||f.removeClass(a,da);f.removeClass(a,aa);pa(l,!1);na(l,!1);w(y,function(a){l.style[a[0]]=""});ba(a,e);ha(a,e);Object.keys(u).length&&w(u,function(a,b){a?l.style.setProperty(b,a):l.style.removeProperty(b)});if(e.onDone)e.onDone();m&& | ||
m.complete(!b)}}function E(a){q.blockTransition&&na(l,a);q.blockKeyframeAnimation&&pa(l,!!a)}function s(){m=new r({end:d,cancel:n});I(M);k();return{$$willAnimate:!1,start:function(){return m},end:d}}function p(){function b(){if(!x){E(!1);w(y,function(a){l.style[a[0]]=a[1]});ba(a,e);f.addClass(a,aa);if(q.recalculateTimingStyles){ka=l.className+" "+da;fa=Ia(l,ka);F=C(l,ka,fa);X=F.maxDelay;H=Math.max(X,0);K=F.maxDuration;if(0===K){k();return}q.hasTransitions=0<F.transitionDuration;q.hasAnimations=0< | ||
F.animationDuration}q.applyAnimationDelay&&(X="boolean"!==typeof e.delay&&qa(e.delay)?parseFloat(e.delay):X,H=Math.max(X,0),F.animationDelay=X,Y=[oa,X+"s"],y.push(Y),l.style[Y[0]]=Y[1]);O=1E3*H;R=1E3*K;if(e.easing){var p,g=e.easing;q.hasTransitions&&(p=P+"TimingFunction",y.push([p,g]),l.style[p]=g);q.hasAnimations&&(p=W+"TimingFunction",y.push([p,g]),l.style[p]=g)}F.transitionDuration&&n.push(ua);F.animationDuration&&n.push(va);h=Date.now();var s=O+1.5*R;p=h+s;var g=a.data("$$animateCss")||[],m=!0; | ||
if(g.length){var v=g[0];(m=p>v.expectedEndTime)?A.cancel(v.timer):g.push(k)}m&&(s=A(c,s,!1),g[0]={timer:s,expectedEndTime:p},g.push(k),a.data("$$animateCss",g));a.on(n.join(" "),d);e.to&&(e.cleanupStyles&&Fa(u,l,Object.keys(e.to)),Aa(a,e))}}function c(){var b=a.data("$$animateCss");if(b){for(var e=1;e<b.length;e++)b[e]();a.removeData("$$animateCss")}}function d(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||b.timeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(3));Math.max(a- | ||
h,0)>=O&&b>=K&&(J=!0,k())}if(!x)if(l.parentNode){var h,n=[],p=function(a){if(J)ca&&a&&(ca=!1,k());else if(ca=!a,F.animationDuration)if(a=pa(l,ca),ca)y.push(a);else{var b=y,c=b.indexOf(a);0<=a&&b.splice(c,1)}},g=0<$&&(F.transitionDuration&&0===S.transitionDuration||F.animationDuration&&0===S.animationDuration)&&Math.max(S.animationDelay,S.transitionDelay);g?A(b,Math.floor(g*$*1E3),!1):b();L.resume=function(){p(!0)};L.pause=function(){p(!1)}}else k()}var e=Ga(c),u={},l=G(a);if(!l||!l.parentNode||!t.enabled())return s(); | ||
var e=ma(e),y=[],v=a.attr("class"),D=Ka(e),x,ca,J,m,L,H,O,K,R;if(0===e.duration||!h.animations&&!h.transitions)return s();var ga=e.event&&Z(e.event)?e.event.join(" "):e.event,V="",Q="";ga&&e.structural?V=U(ga,"ng-",!0):ga&&(V=ga);e.addClass&&(Q+=U(e.addClass,"-add"));e.removeClass&&(Q.length&&(Q+=" "),Q+=U(e.removeClass,"-remove"));e.applyClassesEarly&&Q.length&&ba(a,e);var da=[V,Q].join(" ").trim(),ka=v+" "+da,aa=U(da,"-active"),v=D.to&&0<Object.keys(D.to).length;if(!(0<(e.keyframeStyle||"").length|| | ||
v||da))return s();var fa,S;0<e.stagger?(D=parseFloat(e.stagger),S={transitionDelay:D,animationDelay:D,transitionDuration:0,animationDuration:0}):(fa=Ia(l,ka),S=g(l,da,fa,Sa));e.$$skipPreparationClasses||f.addClass(a,da);e.transitionStyle&&(D=[P,e.transitionStyle],ia(l,D),y.push(D));0<=e.duration&&(D=0<l.style[P].length,D=Da(e.duration,D),ia(l,D),y.push(D));e.keyframeStyle&&(D=[W,e.keyframeStyle],ia(l,D),y.push(D));var $=S?0<=e.staggerIndex?e.staggerIndex:b.count(fa):0;(ga=0===$)&&!e.skipBlocking&& | ||
na(l,9999);var F=C(l,ka,fa),X=F.maxDelay;H=Math.max(X,0);K=F.maxDuration;var q={};q.hasTransitions=0<F.transitionDuration;q.hasAnimations=0<F.animationDuration;q.hasTransitionAll=q.hasTransitions&&"all"==F.transitionProperty;q.applyTransitionDuration=v&&(q.hasTransitions&&!q.hasTransitionAll||q.hasAnimations&&!q.hasTransitions);q.applyAnimationDuration=e.duration&&q.hasAnimations;q.applyTransitionDelay=qa(e.delay)&&(q.applyTransitionDuration||q.hasTransitions);q.applyAnimationDelay=qa(e.delay)&&q.hasAnimations; | ||
q.recalculateTimingStyles=0<Q.length;if(q.applyTransitionDuration||q.applyAnimationDuration)K=e.duration?parseFloat(e.duration):K,q.applyTransitionDuration&&(q.hasTransitions=!0,F.transitionDuration=K,D=0<l.style[P+"Property"].length,y.push(Da(K,D))),q.applyAnimationDuration&&(q.hasAnimations=!0,F.animationDuration=K,y.push([wa,K+"s"]));if(0===K&&!q.recalculateTimingStyles)return s();if(null!=e.delay){var Y;"boolean"!==typeof e.delay&&(Y=parseFloat(e.delay),H=Math.max(Y,0));q.applyTransitionDelay&& | ||
y.push([ja,Y+"s"]);q.applyAnimationDelay&&y.push([oa,Y+"s"])}null==e.duration&&0<F.transitionDuration&&(q.recalculateTimingStyles=q.recalculateTimingStyles||ga);O=1E3*H;R=1E3*K;e.skipBlocking||(q.blockTransition=0<F.transitionDuration,q.blockKeyframeAnimation=0<F.animationDuration&&0<S.animationDelay&&0===S.animationDuration);e.from&&(e.cleanupStyles&&Fa(u,l,Object.keys(e.from)),za(a,e));q.blockTransition||q.blockKeyframeAnimation?E(K):e.skipBlocking||na(l,!1);return{$$willAnimate:!0,end:d,start:function(){if(!x)return L= | ||
{end:d,cancel:n,resume:null,pause:null},m=new r(L),I(p),m}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,f,r,A,u){function h(a){return a.replace(/\bng-\S+\b/g,"")}function v(a,b){H(a)&&(a=a.split(" "));H(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function t(c,f,g){function u(a){var b= | ||
{},c=G(a).getBoundingClientRect();w(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=I.scrollTop;break;case "left":d+=I.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function A(){var c=h(g.attr("class")||""),e=v(c,k),c=v(k,c),e=a(n,{to:u(g),addClass:"ng-anchor-in "+e,removeClass:"ng-anchor-out "+c,delay:!0});return e.$$willAnimate?e:null}function r(){n.remove();f.removeClass("ng-animate-shim");g.removeClass("ng-animate-shim")}var n=L(G(f).cloneNode(!0)),k=h(n.attr("class")|| | ||
"");f.addClass("ng-animate-shim");g.addClass("ng-animate-shim");n.addClass("ng-anchor");C.append(n);var E;c=function(){var c=a(n,{addClass:"ng-anchor-out",delay:!0,from:u(f)});return c.$$willAnimate?c:null}();if(!c&&(E=A(),!E))return r();var N=c||E;return{start:function(){function a(){c&&c.end()}var b,c=N.start();c.done(function(){c=null;if(!E&&(E=A()))return c=E.start(),c.done(function(){c=null;r();b.complete()}),c;r();b.complete()});return b=new d({end:a,cancel:a})}}}function J(a,b,c,f){var h=g(a, | ||
M),u=g(b,M),n=[];w(f,function(a){(a=t(c,a.out,a["in"]))&&n.push(a)});if(h||u||0!==n.length)return{start:function(){function a(){w(b,function(a){a.end()})}var b=[];h&&b.push(h.start());u&&b.push(u.start());w(n,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function g(c){var d=c.element,f=c.options||{};c.structural&&(f.event=c.event,f.structural=!0,f.applyClassesEarly=!0,"leave"===c.event&&(f.onDone=f.domOperation));f.preparationClasses&& | ||
(f.event=V(f.event,f.preparationClasses));c=a(d,f);return c.$$willAnimate?c:null}if(!r.animations&&!r.transitions)return M;var I=u[0].body;c=G(f);var C=L(c.parentNode&&11===c.parentNode.nodeType||I.contains(c)?c:I);O(A);return function(a){return a.from&&a.to?J(a.from,a.to,a.classes,a.anchors):g(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function f(c){c=Z(c)?c:c.split(" ");for(var d=[],f={},v=0;v<c.length;v++){var r= | ||
c[v],w=a.$$registeredAnimations[r];w&&!f[r]&&(d.push(b.get(w)),f[r]=!0)}return d}var r=O(d);return function(a,b,d,v){function t(){v.domOperation();r(a,v)}function G(a,b,d,f,g){switch(d){case "animate":b=[b,f.from,f.to,g];break;case "setClass":b=[b,C,J,g];break;case "addClass":b=[b,C,g];break;case "removeClass":b=[b,J,g];break;default:b=[b,g]}b.push(f);if(a=a.apply(a,b))if(Ha(a.start)&&(a=a.start()),a instanceof c)a.done(g);else if(Ha(a))return a;return M}function g(a,b,d,f,g){var e=[];w(f,function(f){var h= | ||
f[g];h&&e.push(function(){var e,f,g=!1,p=function(a){g||(g=!0,(f||M)(a),e.complete(!a))};e=new c({end:function(){p()},cancel:function(){p(!0)}});f=G(h,a,b,d,function(a){p(!1===a)});return e})});return e}function I(a,b,d,f,h){var e=g(a,b,d,f,h);if(0===e.length){var r,l;"beforeSetClass"===h?(r=g(a,"removeClass",d,f,"beforeRemoveClass"),l=g(a,"addClass",d,f,"beforeAddClass")):"setClass"===h&&(r=g(a,"removeClass",d,f,"removeClass"),l=g(a,"addClass",d,f,"addClass"));r&&(e=e.concat(r));l&&(e=e.concat(l))}if(0!== | ||
e.length)return function(a){var b=[];e.length&&w(e,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){w(b,function(b){a?b.cancel():b.end()})}}}3===arguments.length&&ra(d)&&(v=d,d=null);v=ma(v);d||(d=a.attr("class")||"",v.addClass&&(d+=" "+v.addClass),v.removeClass&&(d+=" "+v.removeClass));var C=v.addClass,J=v.removeClass,s=f(d),y,z;if(s.length){var B,H;"leave"==b?(H="leave",B="afterLeave"):(H="before"+b.charAt(0).toUpperCase()+b.substr(1),B=b);"enter"!==b&&"move"!==b&&(y=I(a,b,v, | ||
s,H));z=I(a,b,v,s,B)}if(y||z)return{start:function(){function b(c){g=!0;t();ha(a,v);h.complete(c)}var d,f=[];y&&f.push(function(a){d=y(a)});f.length?f.push(function(a){t();a(!0)}):t();z&&f.push(function(a){d=z(a)});var g=!1,h=new c({end:function(){g||((d||M)(void 0),b(void 0))},cancel:function(){g||((d||M)(!0),b(!0))}});c.chain(f,b);return h}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a, | ||
c){function d(c){return a(c.element,c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),t=d(a.to);if(b||t)return{start:function(){function a(){return function(){w(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());t&&d.push(t.start());c.all(d,function(a){f.complete(a)});var f=new c({end:a(),cancel:a()});return f}}}else return d(a)}}]}])})(window,window.angular); | ||
(function(B,q,Wa){'use strict';function za(a,b,c){if(!a)throw La("areq",b||"?",c||"required");return a}function Aa(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;aa(a)&&(a=a.join(" "));aa(b)&&(b=b.join(" "));return a+" "+b}function Ma(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function W(a,b,c){var d="";a=aa(a)?a:a&&Q(a)&&a.length?a.split(/\s+/):[];r(a,function(a,l){a&&0<a.length&&(d+=0<l?" ":"",d+=c?b+a:a+b)});return d}function Na(a){if(a instanceof I)switch(a.length){case 0:return[]; | ||
case 1:if(1===a[0].nodeType)return a;break;default:return I(pa(a))}if(1===a.nodeType)return I(a)}function pa(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1==c.nodeType)return c}}function Oa(a,b,c){r(b,function(b){a.addClass(b,c)})}function Pa(a,b,c){r(b,function(b){a.removeClass(b,c)})}function T(a){return function(b,c){c.addClass&&(Oa(a,b,c.addClass),c.addClass=null);c.removeClass&&(Pa(a,b,c.removeClass),c.removeClass=null)}}function la(a){a=a||{};if(!a.$$prepared){var b=a.domOperation|| | ||
P;a.domOperation=function(){a.$$domOperationFired=!0;b();b=P};a.$$prepared=!0}return a}function fa(a,b){Ba(a,b);Ca(a,b)}function Ba(a,b){b.from&&(a.css(b.from),b.from=null)}function Ca(a,b){b.to&&(a.css(b.to),b.to=null)}function U(a,b,c){var d=(b.addClass||"")+" "+(c.addClass||""),g=(b.removeClass||"")+" "+(c.removeClass||"");a=Qa(a.attr("class"),d,g);c.preparationClasses&&(b.preparationClasses=ba(c.preparationClasses,b.preparationClasses),delete c.preparationClasses);d=b.domOperation!==P?b.domOperation: | ||
null;Da(b,c);d&&(b.domOperation=d);b.addClass=a.addClass?a.addClass:null;b.removeClass=a.removeClass?a.removeClass:null;return b}function Qa(a,b,c){function d(a){Q(a)&&(a=a.split(" "));var b={};r(a,function(a){a.length&&(b[a]=!0)});return b}var g={};a=d(a);b=d(b);r(b,function(a,b){g[b]=1});c=d(c);r(c,function(a,b){g[b]=1===g[b]?null:-1});var l={addClass:"",removeClass:""};r(g,function(b,c){var d,g;1===b?(d="addClass",g=!a[c]):-1===b&&(d="removeClass",g=a[c]);g&&(l[d].length&&(l[d]+=" "),l[d]+=c)}); | ||
return l}function F(a){return a instanceof q.element?a[0]:a}function Ra(a,b,c){var d="";b&&(d=W(b,"ng-",!0));c.addClass&&(d=ba(d,W(c.addClass,"-add")));c.removeClass&&(d=ba(d,W(c.removeClass,"-remove")));d.length&&(c.preparationClasses=d,a.addClass(d))}function ma(a,b){var c=b?"-"+b+"s":"";ia(a,[ja,c]);return[ja,c]}function qa(a,b){var c=b?"paused":"",d=X+"PlayState";ia(a,[d,c]);return[d,c]}function ia(a,b){a.style[b[0]]=b[1]}function ba(a,b){return a?b?a+" "+b:a:b}function Ea(a,b,c){var d=Object.create(null), | ||
g=a.getComputedStyle(b)||{};r(c,function(a,b){var c=g[a];if(c){var u=c.charAt(0);if("-"===u||"+"===u||0<=u)c=Sa(c);0===c&&(c=null);d[b]=c}});return d}function Sa(a){var b=0;a=a.split(/\s*,\s*/);r(a,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function ra(a){return 0===a||null!=a}function Fa(a,b){var c=R,d=a+"s";b?c+="Duration":d+=" linear all";return[c,d]}function Ga(){var a=Object.create(null);return{flush:function(){a=Object.create(null)}, | ||
count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function Ha(a,b,c){r(c,function(c){a[c]=Y(a[c])?a[c]:b.style.getPropertyValue(c)})}var P=q.noop,Ia=q.copy,Da=q.extend,I=q.element,r=q.forEach,aa=q.isArray,Q=q.isString,sa=q.isObject,O=q.isUndefined,Y=q.isDefined,Ja=q.isFunction,ta=q.isElement,R,ua,X,va;O(B.ontransitionend)&&Y(B.onwebkittransitionend)?(R="WebkitTransition",ua="webkitTransitionEnd transitionend"): | ||
(R="transition",ua="transitionend");O(B.onanimationend)&&Y(B.onwebkitanimationend)?(X="WebkitAnimation",va="webkitAnimationEnd animationend"):(X="animation",va="animationend");var na=X+"Delay",wa=X+"Duration",ja=R+"Delay";B=R+"Duration";var La=q.$$minErr("ng"),Ta={transitionDuration:B,transitionDelay:ja,transitionProperty:R+"Property",animationDuration:wa,animationDelay:na,animationIterationCount:X+"IterationCount"},Ua={transitionDuration:B,transitionDelay:ja,animationDuration:wa,animationDelay:na}; | ||
q.module("ngAnimate",[]).directive("ngAnimateSwap",["$animate","$rootScope",function(a,b){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(b,d,g,l,E){var A,u;b.$watchCollection(g.ngAnimateSwap||g["for"],function(g){A&&a.leave(A);u&&(u.$destroy(),u=null);if(g||0===g)u=b.$new(),E(u,function(b){A=b;a.enter(b,null,d)})})}}}]).directive("ngAnimateChildren",[function(){return function(a,b,c){a=c.ngAnimateChildren;q.isString(a)&&0===a.length?b.data("$$ngAnimateChildren",!0): | ||
c.$observe("ngAnimateChildren",function(a){b.data("$$ngAnimateChildren","on"===a||"true"===a)})}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),E=0;E<b.length;E++)b[E]();g||a(function(){g||c()})}}var d,g;d=b.queue=[];b.waitUntilQuiet=function(b){g&&g();g=a(function(){g=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){if(!a)return null;a=a.split(" ");var b=Object.create(null); | ||
r(a,function(a){b[a]=!0});return b}function c(a,c){if(a&&c){var d=b(c);return a.split(" ").some(function(a){return d[a]})}}function d(a,b,c,d){return l[a].some(function(a){return a(b,c,d)})}function g(a,b){a=a||{};var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var l=this.rules={skip:[],cancel:[],join:[]};l.join.push(function(a,b,c){return!b.structural&&g(b.options)});l.skip.push(function(a,b,c){return!b.structural&&!g(b.options)});l.skip.push(function(a,b,c){return"leave"== | ||
c.event&&b.structural});l.skip.push(function(a,b,c){return c.structural&&2===c.state&&!b.structural});l.cancel.push(function(a,b,c){return c.structural&&b.structural});l.cancel.push(function(a,b,c){return 2===c.state&&b.structural});l.cancel.push(function(a,b,d){a=b.options.addClass;b=b.options.removeClass;var g=d.options.addClass;d=d.options.removeClass;return O(a)&&O(b)||O(g)&&O(d)?!1:c(a,d)||c(b,g)});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner", | ||
"$templateRequest","$$jqLite","$$forceReflow",function(b,c,u,l,K,q,w,oa,x,y){function M(){var a=!1;return function(b){a?b():c.$$postDigest(function(){a=!0;b()})}}function v(a,b,c){var f=F(b),d=F(a),h=[];(a=z[c])&&r(a,function(a){s.call(a.node,f)?h.push(a.callback):"leave"===c&&s.call(a.node,d)&&h.push(a.callback)});return h}function h(a,f,h){function k(f,c,h,d){u(function(){var f=v(H,a,c);f.length&&b(function(){r(f,function(b){b(a,h,d)})})});f.progress(c,h,d)}function z(b){var f=a,c=m;c.preparationClasses&& | ||
(f.removeClass(c.preparationClasses),c.preparationClasses=null);c.activeClasses&&(f.removeClass(c.activeClasses),c.activeClasses=null);Ka(a,m);fa(a,m);m.domOperation();s.complete(!b)}var m=Ia(h),y,H;if(a=Na(a))y=F(a),H=a.parent();var m=la(m),s=new w,u=M();aa(m.addClass)&&(m.addClass=m.addClass.join(" "));m.addClass&&!Q(m.addClass)&&(m.addClass=null);aa(m.removeClass)&&(m.removeClass=m.removeClass.join(" "));m.removeClass&&!Q(m.removeClass)&&(m.removeClass=null);m.from&&!sa(m.from)&&(m.from=null); | ||
m.to&&!sa(m.to)&&(m.to=null);if(!y)return z(),s;h=[y.className,m.addClass,m.removeClass].join(" ");if(!Va(h))return z(),s;var l=0<=["enter","move","leave"].indexOf(f),e=!J||C.get(y);h=!e&&t.get(y)||{};var x=!!h.state;e||x&&1==h.state||(e=!n(a,H,f));if(e)return z(),s;l&&ya(a);e={structural:l,element:a,event:f,close:z,options:m,runner:s};if(x){if(d("skip",a,e,h)){if(2===h.state)return z(),s;U(a,h.options,m);return h.runner}if(d("cancel",a,e,h))if(2===h.state)h.runner.end();else if(h.structural)h.close(); | ||
else return U(a,h.options,e.options),h.runner;else if(d("join",a,e,h))if(2===h.state)U(a,m,{});else return Ra(a,l?f:null,m),f=e.event=h.event,m=U(a,h.options,e.options),h.runner}else U(a,m,{});(x=e.structural)||(x="animate"===e.event&&0<Object.keys(e.options.to||{}).length||g(e.options));if(!x)return z(),L(a),s;var K=(h.counter||0)+1;e.counter=K;G(a,1,e);c.$$postDigest(function(){var b=t.get(y),c=!b,b=b||{},h=0<(a.parent()||[]).length&&("animate"===b.event||b.structural||g(b.options));if(c||b.counter!== | ||
K||!h){c&&(Ka(a,m),fa(a,m));if(c||l&&b.event!==f)m.domOperation(),s.end();h||L(a)}else f=!b.structural&&g(b.options,!0)?"setClass":b.event,G(a,2),b=q(a,f,b.options),b.done(function(b){z(!b);(b=t.get(y))&&b.counter===K&&L(F(a));k(s,f,"close",{})}),s.setHost(b),k(s,f,"start",{})});return s}function ya(a){a=F(a).querySelectorAll("[data-ng-animate]");r(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate")),c=t.get(a);if(c)switch(b){case 2:c.runner.end();case 1:t.remove(a)}})}function L(a){a= | ||
F(a);a.removeAttribute("data-ng-animate");t.remove(a)}function H(a,b){return F(a)===F(b)}function n(a,b,c){c=I(l[0].body);var f=H(a,c)||"HTML"===a[0].nodeName,h=H(a,u),d=!1,k,z=C.get(F(a));for((a=a.data("$ngAnimatePin"))&&(b=a);b&&b.length;){h||(h=H(b,u));var g=b[0];if(1!==g.nodeType)break;a=t.get(g)||{};d||(d=C.get(g),!0===d&&!1!==z?z=!0:!1===d&&(z=!1),d=a.structural);if(O(k)||!0===k)a=b.data("$$ngAnimateChildren"),Y(a)&&(k=a);if(d&&!1===k)break;h||(h=H(b,u),h||!(a=b.data("$ngAnimatePin")))||(b= | ||
a,h=!0);f||(f=H(b,c));b=b.parent()}return(!d||k)&&!0!==z&&h&&f}function G(a,b,c){c=c||{};c.state=b;a=F(a);a.setAttribute("data-ng-animate",b);c=(b=t.get(a))?Da(b,c):c;t.put(a,c)}var t=new K,C=new K,J=null,f=c.$watch(function(){return 0===oa.totalPendingRequests},function(a){a&&(f(),c.$$postDigest(function(){c.$$postDigest(function(){null===J&&(J=!0)})}))}),z={},k=a.classNameFilter(),Va=k?function(a){return k.test(a)}:function(){return!0},Ka=T(x),s=Node.prototype.contains||function(a){return this=== | ||
a||!!(this.compareDocumentPosition(a)&16)};return{on:function(a,b,c){b=pa(b);z[a]=z[a]||[];z[a].push({node:b,callback:c})},off:function(a,b,c){function f(a,b,c){var h=pa(b);return a.filter(function(a){return!(a.node===h&&(!c||a.callback===c))})}var h=z[a];h&&(z[a]=1===arguments.length?null:f(h,b,c))},pin:function(a,b){za(ta(a),"element","not an element");za(ta(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a,b,c,f){c=c||{};c.domOperation=f;return h(a,b,c)},enabled:function(a, | ||
b){var c=arguments.length;if(0===c)b=!!J;else if(ta(a)){var f=F(a),h=C.get(f);1===c?b=!h:C.put(f,!b)}else b=J=!!a;return b}}}]}]).provider("$$animation",["$animateProvider",function(a){function b(a){return a.data("$$animationRunner")}var c=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,g,l,E,A,u){function e(a){function b(a){if(a.processed)return a;a.processed=!0;var d=a.domNode,L=d.parentNode;g.put(d,a);for(var e;L;){if(e=g.get(L)){e.processed|| | ||
(e=b(e));break}L=L.parentNode}(e||c).children.push(a);return a}var c={children:[]},d,g=new A;for(d=0;d<a.length;d++){var e=a[d];g.put(e.domNode,a[d]={domNode:e.domNode,fn:e.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var g=0,e=[];for(d=0;d<c.length;d++){var t=c[d];0>=a&&(a=g,g=0,b.push(e),e=[]);e.push(t.fn);t.children.forEach(function(a){g++;c.push(a)});a--}e.length&&b.push(e);return b}(c)}var K= | ||
[],q=T(a);return function(w,A,x){function y(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];r(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function M(a){var b=[],c={};r(a,function(a,f){var d=F(a.element),h=0<=["enter","move"].indexOf(a.event),d=a.structural?y(d):[];if(d.length){var g=h?"to":"from";r(d,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][g]={animationID:f,element:I(a)}})}else b.push(a)}); | ||
var d={},h={};r(c,function(c,g){var k=c.from,e=c.to;if(k&&e){var C=a[k.animationID],t=a[e.animationID],y=k.animationID.toString();if(!h[y]){var n=h[y]={structural:!0,beforeStart:function(){C.beforeStart();t.beforeStart()},close:function(){C.close();t.close()},classes:v(C.classes,t.classes),from:C,to:t,anchors:[]};n.classes.length?b.push(n):(b.push(C),b.push(t))}h[y].anchors.push({out:k.element,"in":e.element})}else k=k?k.animationID:e.animationID,e=k.toString(),d[e]||(d[e]=!0,b.push(a[k]))});return b} | ||
function v(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var h=a[d];if("ng-"!==h.substring(0,3))for(var g=0;g<b.length;g++)if(h===b[g]){c.push(h);break}}return c.join(" ")}function h(a){for(var b=c.length-1;0<=b;b--){var d=c[b];if(l.has(d)&&(d=l.get(d)(a)))return d}}function ya(a,c){a.from&&a.to?(b(a.from.element).setHost(c),b(a.to.element).setHost(c)):b(a.element).setHost(c)}function L(){var a=b(w);!a||"leave"===A&&x.$$domOperationFired||a.end()}function H(b){w.off("$destroy", | ||
L);w.removeData("$$animationRunner");q(w,x);fa(w,x);x.domOperation();C&&a.removeClass(w,C);w.removeClass("ng-animate");G.complete(!b)}x=la(x);var n=0<=["enter","move","leave"].indexOf(A),G=new E({end:function(){H()},cancel:function(){H(!0)}});if(!c.length)return H(),G;w.data("$$animationRunner",G);var t=Aa(w.attr("class"),Aa(x.addClass,x.removeClass)),C=x.tempClasses;C&&(t+=" "+C,x.tempClasses=null);var J;n&&(J="ng-"+A+"-prepare",a.addClass(w,J));K.push({element:w,classes:t,event:A,structural:n,options:x, | ||
beforeStart:function(){w.addClass("ng-animate");C&&a.addClass(w,C);J&&(a.removeClass(w,J),J=null)},close:H});w.on("$destroy",L);if(1<K.length)return G;g.$$postDigest(function(){var a=[];r(K,function(c){b(c.element)?a.push(c):c.close()});K.length=0;var c=M(a),d=[];r(c,function(a){d.push({domNode:F(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var c,d=a.close;if(b(a.anchors?a.from.element||a.to.element:a.element)){var f=h(a);f&&(c=f.start)}c?(c=c(),c.done(function(a){d(!a)}),ya(a,c)): | ||
d()}})});u(e(d))});return G}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=Ga(),c=Ga();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,g,l,E,A,u,e,K){function q(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++M))+"-"+a.getAttribute("class")+"-"+b}function w(h,e,y,u){var n;0<b.count(y)&&(n=c.get(y),n||(e=W(e,"-stagger"),g.addClass(h,e),n=Ea(a,h,u),n.animationDuration= | ||
Math.max(n.animationDuration,0),n.transitionDuration=Math.max(n.transitionDuration,0),g.removeClass(h,e),c.put(y,n)));return n||{}}function oa(a){v.push(a);e.waitUntilQuiet(function(){b.flush();c.flush();for(var a=A(),d=0;d<v.length;d++)v[d](a);v.length=0})}function x(c,g,e){g=b.get(e);g||(g=Ea(a,c,Ta),"infinite"===g.animationIterationCount&&(g.animationIterationCount=1));b.put(e,g);c=g;e=c.animationDelay;g=c.transitionDelay;c.maxDelay=e&&g?Math.max(e,g):e||g;c.maxDuration=Math.max(c.animationDuration* | ||
c.animationIterationCount,c.transitionDuration);return c}var y=T(g),M=0,v=[];return function(a,c){function d(){n()}function e(){n(!0)}function n(b){if(!(M||xa&&ca)){M=!0;ca=!1;f.$$skipPreparationClasses||g.removeClass(a,da);g.removeClass(a,ba);qa(k,!1);ma(k,!1);r(v,function(a){k.style[a[0]]=""});y(a,f);fa(a,f);Object.keys(z).length&&r(z,function(a,b){a?k.style.setProperty(b,a):k.style.removeProperty(b)});if(f.onDone)f.onDone();ea&&ea.length&&a.off(ea.join(" "),C);B&&B.complete(!b)}}function G(a){p.blockTransition&& | ||
ma(k,a);p.blockKeyframeAnimation&&qa(k,!!a)}function t(){B=new l({end:d,cancel:e});oa(P);n();return{$$willAnimate:!1,start:function(){return B},end:d}}function C(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(3));Math.max(a-T,0)>=O&&b>=N&&(xa=!0,n())}function J(){function b(){if(!M){G(!1);r(v,function(a){k.style[a[0]]=a[1]});y(a,f);g.addClass(a,ba);if(p.recalculateTimingStyles){ka=k.className+" "+da;ga=q(k,ka);D=x(k,ka,ga);Z=D.maxDelay; | ||
m=Math.max(Z,0);N=D.maxDuration;if(0===N){n();return}p.hasTransitions=0<D.transitionDuration;p.hasAnimations=0<D.animationDuration}p.applyAnimationDelay&&(Z="boolean"!==typeof f.delay&&ra(f.delay)?parseFloat(f.delay):Z,m=Math.max(Z,0),D.animationDelay=Z,$=[na,Z+"s"],v.push($),k.style[$[0]]=$[1]);O=1E3*m;Q=1E3*N;if(f.easing){var d,e=f.easing;p.hasTransitions&&(d=R+"TimingFunction",v.push([d,e]),k.style[d]=e);p.hasAnimations&&(d=X+"TimingFunction",v.push([d,e]),k.style[d]=e)}D.transitionDuration&&ea.push(ua); | ||
D.animationDuration&&ea.push(va);T=Date.now();var t=O+1.5*Q;d=T+t;var e=a.data("$$animateCss")||[],J=!0;if(e.length){var u=e[0];(J=d>u.expectedEndTime)?E.cancel(u.timer):e.push(n)}J&&(t=E(c,t,!1),e[0]={timer:t,expectedEndTime:d},e.push(n),a.data("$$animateCss",e));if(ea.length)a.on(ea.join(" "),C);f.to&&(f.cleanupStyles&&Ha(z,k,Object.keys(f.to)),Ca(a,f))}}function c(){var b=a.data("$$animateCss");if(b){for(var d=1;d<b.length;d++)b[d]();a.removeData("$$animateCss")}}if(!M)if(k.parentNode){var d=function(a){if(xa)ca&& | ||
a&&(ca=!1,n());else if(ca=!a,D.animationDuration)if(a=qa(k,ca),ca)v.push(a);else{var b=v,c=b.indexOf(a);0<=a&&b.splice(c,1)}},e=0<Y&&(D.transitionDuration&&0===V.transitionDuration||D.animationDuration&&0===V.animationDuration)&&Math.max(V.animationDelay,V.transitionDelay);e?E(b,Math.floor(e*Y*1E3),!1):b();I.resume=function(){d(!0)};I.pause=function(){d(!1)}}else n()}var f=c||{};f.$$prepared||(f=la(Ia(f)));var z={},k=F(a);if(!k||!k.parentNode||!K.enabled())return t();var v=[],A=a.attr("class"),s= | ||
Ma(f),M,ca,xa,B,I,m,O,N,Q,T,ea=[];if(0===f.duration||!u.animations&&!u.transitions)return t();var ha=f.event&&aa(f.event)?f.event.join(" "):f.event,U="",S="";ha&&f.structural?U=W(ha,"ng-",!0):ha&&(U=ha);f.addClass&&(S+=W(f.addClass,"-add"));f.removeClass&&(S.length&&(S+=" "),S+=W(f.removeClass,"-remove"));f.applyClassesEarly&&S.length&&y(a,f);var da=[U,S].join(" ").trim(),ka=A+" "+da,ba=W(da,"-active"),A=s.to&&0<Object.keys(s.to).length;if(!(0<(f.keyframeStyle||"").length||A||da))return t();var ga, | ||
V;0<f.stagger?(s=parseFloat(f.stagger),V={transitionDelay:s,animationDelay:s,transitionDuration:0,animationDuration:0}):(ga=q(k,ka),V=w(k,da,ga,Ua));f.$$skipPreparationClasses||g.addClass(a,da);f.transitionStyle&&(s=[R,f.transitionStyle],ia(k,s),v.push(s));0<=f.duration&&(s=0<k.style[R].length,s=Fa(f.duration,s),ia(k,s),v.push(s));f.keyframeStyle&&(s=[X,f.keyframeStyle],ia(k,s),v.push(s));var Y=V?0<=f.staggerIndex?f.staggerIndex:b.count(ga):0;(ha=0===Y)&&!f.skipBlocking&&ma(k,9999);var D=x(k,ka,ga), | ||
Z=D.maxDelay;m=Math.max(Z,0);N=D.maxDuration;var p={};p.hasTransitions=0<D.transitionDuration;p.hasAnimations=0<D.animationDuration;p.hasTransitionAll=p.hasTransitions&&"all"==D.transitionProperty;p.applyTransitionDuration=A&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions);p.applyAnimationDuration=f.duration&&p.hasAnimations;p.applyTransitionDelay=ra(f.delay)&&(p.applyTransitionDuration||p.hasTransitions);p.applyAnimationDelay=ra(f.delay)&&p.hasAnimations;p.recalculateTimingStyles= | ||
0<S.length;if(p.applyTransitionDuration||p.applyAnimationDuration)N=f.duration?parseFloat(f.duration):N,p.applyTransitionDuration&&(p.hasTransitions=!0,D.transitionDuration=N,s=0<k.style[R+"Property"].length,v.push(Fa(N,s))),p.applyAnimationDuration&&(p.hasAnimations=!0,D.animationDuration=N,v.push([wa,N+"s"]));if(0===N&&!p.recalculateTimingStyles)return t();if(null!=f.delay){var $;"boolean"!==typeof f.delay&&($=parseFloat(f.delay),m=Math.max($,0));p.applyTransitionDelay&&v.push([ja,$+"s"]);p.applyAnimationDelay&& | ||
v.push([na,$+"s"])}null==f.duration&&0<D.transitionDuration&&(p.recalculateTimingStyles=p.recalculateTimingStyles||ha);O=1E3*m;Q=1E3*N;f.skipBlocking||(p.blockTransition=0<D.transitionDuration,p.blockKeyframeAnimation=0<D.animationDuration&&0<V.animationDelay&&0===V.animationDuration);f.from&&(f.cleanupStyles&&Ha(z,k,Object.keys(f.from)),Ba(a,f));p.blockTransition||p.blockKeyframeAnimation?G(N):f.skipBlocking||ma(k,!1);return{$$willAnimate:!0,end:d,start:function(){if(!M)return I={end:d,cancel:e, | ||
resume:null,pause:null},B=new l(I),oa(J),B}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,g,l,E,A){function u(a){return a.replace(/\bng-\S+\b/g,"")}function e(a,b){Q(a)&&(a=a.split(" "));Q(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function K(c,g,v){function h(a){var b={},c=F(a).getBoundingClientRect(); | ||
r(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=B.scrollTop;break;case "left":d+=B.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function l(){var c=u(v.attr("class")||""),d=e(c,n),c=e(n,c),d=a(E,{to:h(v),addClass:"ng-anchor-in "+d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?d:null}function A(){E.remove();g.removeClass("ng-animate-shim");v.removeClass("ng-animate-shim")}var E=I(F(g).cloneNode(!0)),n=u(E.attr("class")||"");g.addClass("ng-animate-shim"); | ||
v.addClass("ng-animate-shim");E.addClass("ng-anchor");x.append(E);var G;c=function(){var c=a(E,{addClass:"ng-anchor-out",delay:!0,from:h(g)});return c.$$willAnimate?c:null}();if(!c&&(G=l(),!G))return A();var t=c||G;return{start:function(){function a(){c&&c.end()}var b,c=t.start();c.done(function(){c=null;if(!G&&(G=l()))return c=G.start(),c.done(function(){c=null;A();b.complete()}),c;A();b.complete()});return b=new d({end:a,cancel:a})}}}function q(a,b,c,e){var g=w(a,P),u=w(b,P),l=[];r(e,function(a){(a= | ||
K(c,a.out,a["in"]))&&l.push(a)});if(g||u||0!==l.length)return{start:function(){function a(){r(b,function(a){a.end()})}var b=[];g&&b.push(g.start());u&&b.push(u.start());r(l,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function w(c){var d=c.element,e=c.options||{};c.structural&&(e.event=c.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===c.event&&(e.onDone=e.domOperation));e.preparationClasses&&(e.event=ba(e.event,e.preparationClasses)); | ||
c=a(d,e);return c.$$willAnimate?c:null}if(!l.animations&&!l.transitions)return P;var B=A[0].body;c=F(g);var x=I(c.parentNode&&11===c.parentNode.nodeType||B.contains(c)?c:B);T(E);return function(a){return a.from&&a.to?q(a.from,a.to,a.classes,a.anchors):w(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function g(c){c=aa(c)?c:c.split(" ");for(var d=[],g={},e=0;e<c.length;e++){var l=c[e],r=a.$$registeredAnimations[l]; | ||
r&&!g[l]&&(d.push(b.get(r)),g[l]=!0)}return d}var l=T(d);return function(a,b,d,e){function q(){e.domOperation();l(a,e)}function B(a,b,d,e,f){switch(d){case "animate":b=[b,e.from,e.to,f];break;case "setClass":b=[b,y,M,f];break;case "addClass":b=[b,y,f];break;case "removeClass":b=[b,M,f];break;default:b=[b,f]}b.push(e);if(a=a.apply(a,b))if(Ja(a.start)&&(a=a.start()),a instanceof c)a.done(f);else if(Ja(a))return a;return P}function w(a,b,d,e,f){var g=[];r(e,function(e){var h=e[f];h&&g.push(function(){var e, | ||
f,g=!1,k=function(a){g||(g=!0,(f||P)(a),e.complete(!a))};e=new c({end:function(){k()},cancel:function(){k(!0)}});f=B(h,a,b,d,function(a){k(!1===a)});return e})});return g}function F(a,b,d,e,f){var g=w(a,b,d,e,f);if(0===g.length){var h,l;"beforeSetClass"===f?(h=w(a,"removeClass",d,e,"beforeRemoveClass"),l=w(a,"addClass",d,e,"beforeAddClass")):"setClass"===f&&(h=w(a,"removeClass",d,e,"removeClass"),l=w(a,"addClass",d,e,"addClass"));h&&(g=g.concat(h));l&&(g=g.concat(l))}if(0!==g.length)return function(a){var b= | ||
[];g.length&&r(g,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){r(b,function(b){a?b.cancel():b.end()})}}}var x=!1;3===arguments.length&&sa(d)&&(e=d,d=null);e=la(e);d||(d=a.attr("class")||"",e.addClass&&(d+=" "+e.addClass),e.removeClass&&(d+=" "+e.removeClass));var y=e.addClass,M=e.removeClass,v=g(d),h,I;if(v.length){var L,H;"leave"==b?(H="leave",L="afterLeave"):(H="before"+b.charAt(0).toUpperCase()+b.substr(1),L=b);"enter"!==b&&"move"!==b&&(h=F(a,b,e,v,H));I=F(a,b,e,v,L)}if(h|| | ||
I){var n;return{$$willAnimate:!0,end:function(){n?n.end():(x=!0,q(),fa(a,e),n=new c,n.complete(!0));return n},start:function(){function b(c){x=!0;q();fa(a,e);n.complete(c)}if(n)return n;n=new c;var d,g=[];h&&g.push(function(a){d=h(a)});g.length?g.push(function(a){q();a(!0)}):q();I&&g.push(function(a){d=I(a)});n.setHost({end:function(){x||((d||P)(void 0),b(void 0))},cancel:function(){x||((d||P)(!0),b(!0))}});c.chain(g,b);return n}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver"); | ||
this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),q=d(a.to);if(b||q)return{start:function(){function a(){return function(){r(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());q&&d.push(q.start());c.all(d,function(a){e.complete(a)});var e=new c({end:a(),cancel:a()});return e}}}else return d(a)}}]}])})(window,window.angular); | ||
//# sourceMappingURL=angular-animate.min.js.map |
{ | ||
"name": "angular-animate", | ||
"version": "1.5.0-rc.0", | ||
"version": "1.5.0-rc.1", | ||
"main": "./angular-animate.js", | ||
"ignore": [], | ||
"dependencies": { | ||
"angular": "1.5.0-rc.0" | ||
"angular": "1.5.0-rc.1" | ||
} | ||
} |
{ | ||
"name": "angular-animate", | ||
"version": "1.5.0-rc.0", | ||
"version": "1.5.0-rc.1", | ||
"description": "AngularJS module for animations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242945
3660