lemonldap-ng/lemonldap-ng-manager/site/htdocs/static/bwr/angular-animate/angular-animate.min.js
2021-04-02 16:17:37 +02:00

1 line
25 KiB
JavaScript

!function(f,n){"use strict";var tn,en,K=1,an="-add",rn="-remove",on="ng-",k="ng-animate",L="$$ngAnimateChildren",sn=void 0===f.ontransitionend&&void 0!==f.onwebkittransitionend?(tn="WebkitTransition","webkitTransitionEnd transitionend"):(tn="transition","transitionend"),un=void 0===f.onanimationend&&void 0!==f.onwebkitanimationend?(en="WebkitAnimation","webkitAnimationEnd animationend"):(en="animation","animationend"),a="Duration",ln="Property",cn="TimingFunction",r="PlayState",e=en+($="Delay"),fn=en+a,i=tn+$,t=tn+a,o=n.$$minErr("ng");function d(n,t,e){if(!n)throw o("areq","Argument '{0}' is {1}",t||"?",e||"required");return n}function w(n,t){return n||t?n?t?(n=On(n)?n.join(" "):n)+" "+(t=On(t)?t.join(" "):t):n:t:""}function dn(n,e,a){var r="";return n=On(n)?n:n&&V(n)&&n.length?n.split(/\s+/):[],xn(n,function(n,t){n&&0<n.length&&(r+=0<t?" ":"",r+=a?e+n:n+e)}),r}function H(n){if(n instanceof G)switch(n.length){case 0:return n;case 1:if(n[0].nodeType===K)return n;break;default:return G(m(n))}if(n.nodeType===K)return G(n)}function m(n){if(!n[0])return n;for(var t=0;t<n.length;t++){var e=n[t];if(e.nodeType===K)return e}}function W(s){return function(n,t){var e,a,r,i,o;t.addClass&&(e=s,a=n,r=t.addClass,xn(a,function(n){e.addClass(n,r)}),t.addClass=null),t.removeClass&&(i=s,n=n,o=t.removeClass,xn(n,function(n){i.removeClass(n,o)}),t.removeClass=null)}}function mn(n){var t;return(n=n||{}).$$prepared||(t=n.domOperation||Pn,n.domOperation=function(){n.$$domOperationFired=!0,t(),t=Pn},n.$$prepared=!0),n}function vn(n,t){pn(n,t),hn(n,t)}function pn(n,t){t.from&&(n.css(t.from),t.from=null)}function hn(n,t){t.to&&(n.css(t.to),t.to=null)}function B(n,t,e){var a=t.options||{},r=e.options||{},i=(a.addClass||"")+" "+(r.addClass||""),e=(a.removeClass||"")+" "+(r.removeClass||""),i=function(r,n,t){var e={};r=a(r),n=a(n),xn(n,function(n,t){e[t]=1}),t=a(t),xn(t,function(n,t){e[t]=1===e[t]?null:-1});var i={addClass:"",removeClass:""};function a(n){V(n)&&(n=n.split(" "));var t={};return xn(n,function(n){n.length&&(t[n]=!0)}),t}return xn(e,function(n,t){var e,a;1===n?(e="addClass",a=!r[t]||r[t+rn]):-1===n&&(e="removeClass",a=r[t]||r[t+an]),a&&(i[e].length&&(i[e]+=" "),i[e]+=t)}),i}(n.attr("class"),i,e);r.preparationClasses&&(a.preparationClasses=J(r.preparationClasses,a.preparationClasses),delete r.preparationClasses);e=a.domOperation!==Pn?a.domOperation:null;return v(a,r),e&&(a.domOperation=e),i.addClass?a.addClass=i.addClass:a.addClass=null,i.removeClass?a.removeClass=i.removeClass:a.removeClass=null,t.addClass=a.addClass,t.removeClass=a.removeClass,a}function gn(n){return n instanceof G?n[0]:n}function $n(n,t){var e=t?"paused":"",t=en+r;return Cn(n,[t,e]),[t,e]}function Cn(n,t){var e=t[0],t=t[1];n.style[e]=t}function J(n,t){return n?t?n+" "+t:n:t}var yn=function(n,t){t=t?"-"+t+"s":"";return Cn(n,[i,t]),[i,t]},s=["$interpolate",function(i){return{link:function(n,t,e){var a=e.ngAnimateChildren;function r(n){n="on"===n||"true"===n,t.data(L,n)}V(a)&&0===a.length?t.data(L,!0):(r(i(a)(n)),e.$observe("ngAnimateChildren",r))}}}],Dn="$$animateCss",u={transitionDuration:t,transitionDelay:i,transitionProperty:tn+ln,animationDuration:fn,animationDelay:e,animationIterationCount:en+"IterationCount"},An={transitionDuration:t,transitionDelay:i,animationDuration:fn,animationDelay:e};function bn(n,t){return[t?e:i,n+"s"]}function kn(n,t,e){var r=Object.create(null),i=n.getComputedStyle(t)||{};return xn(e,function(n,t){var e,a=i[n];a&&(("-"===(n=a.charAt(0))||"+"===n||0<=n)&&(e=0,n=(n=a).split(/\s*,\s*/),xn(n,function(n){"s"===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1)),n=parseFloat(n)||0,e=e?Math.max(n,e):n}),a=e),0===a&&(a=null),r[t]=a)}),r}function wn(n){return 0===n||null!=n}function Tn(n,t){var e=tn,n=n+"s";return t?e+=a:n+=" linear all",[e,n]}function Sn(t,e,n){xn(n,function(n){t[n]=Q(t[n])?t[n]:e.style.getPropertyValue(n)})}var jn,v,xn,On,Q,p,y,U,V,z,G,Pn,l=["$animateProvider",function(n){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(Q,U,V,z,G,e,X,t,Y){var Z=W(U);var a=[];function _(n){a.push(n),t.waitUntilQuiet(function(){G.flush();for(var n=e(),t=0;t<a.length;t++)a[t](n);a.length=0})}function nn(n,t,e,a){var r,i,i=(r=n,i=e,n=a,e=u,(a=G.get(i))||"infinite"===(a=kn(Q,r,e)).animationIterationCount&&(a.animationIterationCount=1),n=n||0<a.transitionDuration||0<a.animationDuration,G.put(i,a,n),a),n=i.animationDelay,a=i.transitionDelay;return i.maxDelay=n&&a?Math.max(n,a):n||a,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(o,n){var s=n||{};s.$$prepared||(s=mn(jn(s)));var u={},l=gn(o);if(!l||!l.parentNode||!Y.enabled())return W();var c,a,r,e,f,d,m,v,p=[],t=o.attr("class"),i=(b={},(D=s)&&(D.to||D.from)&&(b.to=D.to,b.from=D.from),b),h=[];if(0===s.duration||!X.animations&&!X.transitions)return W();var g=s.event&&On(s.event)?s.event.join(" "):s.event,$=g&&s.structural,C="",n="";$?C=dn(g,on,!0):g&&(C=g),s.addClass&&(n+=dn(s.addClass,an)),s.removeClass&&(n.length&&(n+=" "),n+=dn(s.removeClass,rn)),s.applyClassesEarly&&n.length&&Z(o,s);var y=[C,n].join(" ").trim(),D=i.to&&0<Object.keys(i.to).length;if(!(0<(s.keyframeStyle||"").length)&&!D&&!y)return W();var A,b,k,w,T,S,j=G.cacheKey(l,g,s.addClass,s.removeClass);if(G.containsCachedAnimationWithoutDuration(j))return y=null,W();A=0<s.stagger?{transitionDelay:w=parseFloat(s.stagger),animationDelay:w,transitionDuration:0,animationDuration:0}:(b=l,C=y,t=An,w="stagger-"+(i=j),0<G.count(i)&&((k=G.get(w))||(C=dn(C,"-stagger"),U.addClass(b,C),(k=kn(Q,b,t)).animationDuration=Math.max(k.animationDuration,0),k.transitionDuration=Math.max(k.transitionDuration,0),U.removeClass(b,C),G.put(w,k,!0))),k||{}),s.$$skipPreparationClasses||U.addClass(o,y),s.transitionStyle&&(S=[tn,s.transitionStyle],Cn(l,S),p.push(S)),0<=s.duration&&(T=0<l.style[tn].length,S=Tn(s.duration,T),Cn(l,S),p.push(S)),s.keyframeStyle&&(O=[en,s.keyframeStyle],Cn(l,O),p.push(O));var x=A?0<=s.staggerIndex?s.staggerIndex:G.count(j):0,O=0===x;O&&!s.skipBlocking&&yn(l,9999);var P=nn(l,0,j,!$),N=P.maxDelay,F=Math.max(N,0),M=P.maxDuration,E={};if(E.hasTransitions=0<P.transitionDuration,E.hasAnimations=0<P.animationDuration,E.hasTransitionAll=E.hasTransitions&&"all"===P.transitionProperty,E.applyTransitionDuration=D&&(E.hasTransitions&&!E.hasTransitionAll||E.hasAnimations&&!E.hasTransitions),E.applyAnimationDuration=s.duration&&E.hasAnimations,E.applyTransitionDelay=wn(s.delay)&&(E.applyTransitionDuration||E.hasTransitions),E.applyAnimationDelay=wn(s.delay)&&E.hasAnimations,E.recalculateTimingStyles=0<n.length,(E.applyTransitionDuration||E.applyAnimationDuration)&&(M=s.duration?parseFloat(s.duration):M,E.applyTransitionDuration&&(E.hasTransitions=!0,P.transitionDuration=M,T=0<l.style[tn+ln].length,p.push(Tn(M,T))),E.applyAnimationDuration&&(E.hasAnimations=!0,P.animationDuration=M,p.push([fn,M+"s"]))),0===M&&!E.recalculateTimingStyles)return W();var I,R=dn(y,"-active");return null!=s.delay&&("boolean"!=typeof s.delay&&(I=parseFloat(s.delay),F=Math.max(I,0)),E.applyTransitionDelay&&p.push(bn(I)),E.applyAnimationDelay&&p.push(bn(I,!0))),null==s.duration&&0<P.transitionDuration&&(E.recalculateTimingStyles=E.recalculateTimingStyles||O),d=1e3*F,m=1e3*M,s.skipBlocking||(E.blockTransition=0<P.transitionDuration,E.blockKeyframeAnimation=0<P.animationDuration&&0<A.animationDelay&&0===A.animationDuration),s.from&&(s.cleanupStyles&&Sn(u,l,Object.keys(s.from)),pn(o,s)),E.blockTransition||E.blockKeyframeAnimation?H(M):s.skipBlocking||yn(l,!1),{$$willAnimate:!0,end:q,start:function(){if(!c)return e=new V(f={end:q,cancel:K,resume:null,pause:null}),_(J),e}};function q(){L()}function K(){L(!0)}function L(n){var t;c||r&&a||(a=!(c=!0),y&&!s.$$skipPreparationClasses&&U.removeClass(o,y),R&&U.removeClass(o,R),$n(l,!1),yn(l,!1),xn(p,function(n){l.style[n[0]]=""}),Z(o,s),vn(o,s),Object.keys(u).length&&xn(u,function(n,t){n?l.style.setProperty(t,n):l.style.removeProperty(t)}),s.onDone&&s.onDone(),h&&h.length&&o.off(h.join(" "),B),(t=o.data(Dn))&&(z.cancel(t[0].timer),o.removeData(Dn)),e&&e.complete(!n))}function H(n){E.blockTransition&&yn(l,n),E.blockKeyframeAnimation&&$n(l,!!n)}function W(){return e=new V({end:q,cancel:K}),_(Pn),L(),{$$willAnimate:!1,start:function(){return e},end:q}}function B(n){n.stopPropagation();var t=n.originalEvent||n;t.target===l&&(n=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(n-v,0)>=d&&M<=t&&(r=!0,L()))}function J(){var n,t;function e(){if(!c){if(H(!1),xn(p,function(n){var t=n[0],n=n[1];l.style[t]=n}),Z(o,s),U.addClass(o,R),E.recalculateTimingStyles){if(l.getAttribute("class"),j=G.cacheKey(l,g,s.addClass,s.removeClass),P=nn(l,0,j,!1),N=P.maxDelay,F=Math.max(N,0),0===(M=P.maxDuration))return void L();E.hasTransitions=0<P.transitionDuration,E.hasAnimations=0<P.animationDuration}E.applyAnimationDelay&&(N="boolean"!=typeof s.delay&&wn(s.delay)?parseFloat(s.delay):N,F=Math.max(N,0),P.animationDelay=N,I=bn(N,!0),p.push(I),l.style[I[0]]=I[1]),d=1e3*F,m=1e3*M,s.easing&&(n=s.easing,E.hasTransitions&&(r=tn+cn,p.push([r,n]),l.style[r]=n),E.hasAnimations&&(r=en+cn,p.push([r,n]),l.style[r]=n)),P.transitionDuration&&h.push(sn),P.animationDuration&&h.push(un),v=Date.now();var n,t=d+1.5*m,e=v+t,a=o.data(Dn)||[],r=!0;a.length&&((r=e>(n=a[0]).expectedEndTime)?z.cancel(n.timer):a.push(L)),r&&(t=z(i,t,!1),a[0]={timer:t,expectedEndTime:e},a.push(L),o.data(Dn,a)),h.length&&o.on(h.join(" "),B),s.to&&(s.cleanupStyles&&Sn(u,l,Object.keys(s.to)),hn(o,s))}}function i(){var n=o.data(Dn);if(n){for(var t=1;t<n.length;t++)n[t]();o.removeData(Dn)}}c||(l.parentNode?(n=function(n){var t,e;r?a&&n&&(a=!1,L()):(a=!n,P.animationDuration&&(e=$n(l,a),a?p.push(e):(t=e,e=(n=p).indexOf(t),0<=t&&n.splice(e,1))))},(t=0<x&&(P.transitionDuration&&0===A.transitionDuration||P.animationDuration&&0===A.animationDuration)&&Math.max(A.animationDelay,A.transitionDelay))?z(e,Math.floor(t*x*1e3),!1):e(),f.resume=function(){n(!0)},f.pause=function(){n(!1)}):L())}}}]}],c=["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver");var g="ng-animate-shim",$="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(f,n,d,t,e,a,r){if(!e.animations&&!e.transitions)return Pn;var m=r[0].body,r=gn(t),v=G((t=r).parentNode&&11===t.parentNode.nodeType||m.contains(r)?r:m);return function(n){return n.from&&n.to?(t=n.from,e=n.to,n.classes,a=n.anchors,r=s(t),i=s(e),o=[],xn(a,function(n){n=function(t,e){var a=G(gn(t).cloneNode(!0)),r=p(u(a));t.addClass(g),e.addClass(g),a.addClass("ng-anchor"),v.append(a);var i,n=function(){var n=f(a,{addClass:$,delay:!0,from:s(t)});return n.$$willAnimate?n:null}();if(!n&&!(i=l()))return c();var o=n||i;return{start:function(){var n,t=o.start();return t.done(function(){return t=null,!i&&(i=l())?((t=i.start()).done(function(){t=null,c(),n.complete()}),t):(c(),void n.complete())}),n=new d({end:e,cancel:e});function e(){t&&t.end()}}};function s(n){var e={},a=gn(n).getBoundingClientRect();return xn(["width","height","top","left"],function(n){var t=a[n];switch(n){case"top":t+=m.scrollTop;break;case"left":t+=m.scrollLeft}e[n]=Math.floor(t)+"px"}),e}function u(n){return n.attr("class")||""}function l(){var n=p(u(e)),t=h(n,r),n=h(r,n),n=f(a,{to:s(e),addClass:"ng-anchor-in "+t,removeClass:$+" "+n,delay:!0});return n.$$willAnimate?n:null}function c(){a.remove(),t.removeClass(g),e.removeClass(g)}}(n.out,n.in);n&&o.push(n)}),r||i||0!==o.length?{start:function(){var t=[];r&&t.push(r.start()),i&&t.push(i.start()),xn(o,function(n){t.push(n.start())});var e=new d({end:n,cancel:n});return d.all(t,function(n){e.complete(n)}),e;function n(){xn(t,function(n){n.end()})}}}:void 0):s(n);var t,e,a,r,i,o};function p(n){return n.replace(/\bng-\S+\b/g,"")}function h(n,t){return V(n)&&(n=n.split(" ")),V(t)&&(t=t.split(" ")),n.filter(function(n){return-1===t.indexOf(n)}).join(" ")}function s(n){var t=n.element,e=n.options||{};n.structural&&(e.event=n.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===n.event&&(e.onDone=e.domOperation)),e.preparationClasses&&(e.event=J(e.event,e.preparationClasses));e=f(t,e);return e.$$willAnimate?e:null}}]}],h=["$animateProvider",function(C){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(h,g,n){var $=W(n);return function(n,t,e,a){var r=!1;3===arguments.length&&U(e)&&(a=e,e=null),a=mn(a),e||(e=n.attr("class")||"",a.addClass&&(e+=" "+a.addClass),a.removeClass&&(e+=" "+a.removeClass));var i,o,s,u,l=a.addClass,c=a.removeClass,f=function(n){n=On(n)?n:n.split(" ");for(var t=[],e={},a=0;a<n.length;a++){var r=n[a],i=C.$$registeredAnimations[r];i&&!e[r]&&(t.push(h.get(i)),e[r]=!0)}return t}(e);if(f.length&&(e="leave"===t?(s="leave","afterLeave"):(s="before"+t.charAt(0).toUpperCase()+t.substr(1),t),"enter"!==t&&"move"!==t&&(i=p(n,t,a,f,s)),o=p(n,t,a,f,e)),i||o)return{$$willAnimate:!0,end:function(){return u?u.end():(m(),(u=new g).complete(!0)),u},start:function(){if(u)return u;var t;u=new g;var n=[];return i&&n.push(function(n){t=i(n)}),n.length?n.push(function(n){d(),n(!0)}):d(),o&&n.push(function(n){t=o(n)}),u.setHost({end:function(){a()},cancel:function(){a(!0)}}),g.chain(n,e),u;function e(n){m(),u.complete(n)}function a(n){r||((t||Pn)(n),e(n))}}};function d(){a.domOperation(),$(n,a)}function m(){r=!0,d(),vn(n,a)}function v(o,s,u,n,t){var e=[];return xn(n,function(n){var i=n[t];i&&e.push(function(){function t(n){e||(e=!0,(r||Pn)(n),a.complete(!n))}var e=!1,a=new g({end:function(){t()},cancel:function(){t(!0)}}),r=function(n,t,e,a,r){var i;switch(e){case"animate":i=[t,a.from,a.to,r];break;case"setClass":i=[t,l,c,r];break;case"addClass":i=[t,l,r];break;case"removeClass":i=[t,c,r];break;default:i=[t,r]}if(i.push(a),n=n.apply(n,i))if((n=y(n.start)?n.start():n)instanceof g)n.done(r);else if(y(n))return n;return Pn}(i,o,s,u,function(n){t(!1===n)});return a})}),e}function p(n,t,e,a,r){var i,o,s=v(n,t,e,a,r);if(0===s.length&&("beforeSetClass"===r?(i=v(n,"removeClass",e,a,"beforeRemoveClass"),o=v(n,"addClass",e,a,"beforeAddClass")):"setClass"===r&&(i=v(n,"removeClass",e,a,"removeClass"),o=v(n,"addClass",e,a,"addClass")),i&&(s=s.concat(i)),o&&(s=s.concat(o))),0!==s.length)return function(n){var e=[];return s.length&&xn(s,function(n){e.push(n())}),e.length?g.all(e,n):n(),function(t){xn(e,function(n){t?n.cancel():n.end()})}}}}}]}],g=["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(r,i){return function(n){if(!n.from||!n.to)return t(n);var a=t(n.from),r=t(n.to);return a||r?{start:function(){var n=[];a&&n.push(a.start()),r&&n.push(r.start()),i.all(n,function(n){t.complete(n)});var t=new i({end:e(),cancel:e()});return t;function e(){return function(){xn(n,function(n){n.end()})}}}}:void 0};function t(n){var t=n.element,e=n.event,a=n.options,n=n.classes;return r(t,e,n,a)}}]}],X="data-ng-animate",Y="$ngAnimatePin",$=["$animateProvider",function(c){var a=" ",r=this.rules={skip:[],cancel:[],join:[]};function I(n){return{addClass:n.addClass,removeClass:n.removeClass,from:n.from,to:n.to}}function i(n,t){if(n&&t){var e=function(n){if(!n)return null;var n=n.split(a),t=Object.create(null);return xn(n,function(n){t[n]=!0}),t}(t);return n.split(a).some(function(n){return e[n]})}}function R(n,t,e){return r[n].some(function(n){return n(t,e)})}function q(n,t){var e=0<(n.addClass||"").length,n=0<(n.removeClass||"").length;return t?e&&n:e||n}r.join.push(function(n,t){return!n.structural&&q(n)}),r.skip.push(function(n,t){return!n.structural&&!q(n)}),r.skip.push(function(n,t){return"leave"===t.event&&n.structural}),r.skip.push(function(n,t){return t.structural&&2===t.state&&!n.structural}),r.cancel.push(function(n,t){return t.structural&&n.structural}),r.cancel.push(function(n,t){return 2===t.state&&n.structural}),r.cancel.push(function(n,t){if(t.structural)return!1;var e=n.addClass,a=n.removeClass,n=t.addClass,t=t.removeClass;return!(z(e)&&z(a)||z(n)&&z(t))&&(i(e,t)||i(a,n))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(g,$,C,y,n,D,A,t,e,a,b){var k=new n,w=new n,T=null;function r(n){w.delete(n.target)}var i=$.$watch(function(){return 0===t.totalPendingRequests},function(n){n&&(i(),$.$$postDigest(function(){$.$$postDigest(function(){null===T&&(T=!0)})}))}),S=Object.create(null),o=c.customFilter(),s=c.classNameFilter(),n=function(){return!0},j=o||n,x=s?function(n,t){t=[n.getAttribute("class"),t.addClass,t.removeClass].join(" ");return s.test(t)}:n,O=W(e);function P(n,t){return B(n,t,{})}var N=f.Node.prototype.contains||function(n){return this===n||!!(16&this.compareDocumentPosition(n))};function u(n,t,e){var a=m(t);return n.filter(function(n){return!(n.node===a&&(!e||n.callback===e))})}function F(n,t){"close"!==n||t.parentNode||l.off(t)}var l={on:function(n,t,e){var a=m(t);S[n]=S[n]||[],S[n].push({node:a,callback:e}),G(t).on("$destroy",function(){k.get(a)||l.off(n,t,e)})},off:function(n,t,e){if(1!==arguments.length||V(n)){var a=S[n];a&&(S[n]=1===arguments.length?null:u(a,t,e))}else for(var r in t=n,S)S[r]=u(S[r],t)},pin:function(n,t){d(p(n),"element","not an element"),d(p(t),"parentElement","not an element"),n.data(Y,t)},push:function(n,t,e,a){return(e=e||{}).domOperation=a,function(a,r,n){var i=jn(n),l=H(a),c=gn(l),f=c&&c.parentNode;i=mn(i);var o=new A,t=function(){var t=!1;return function(n){t?n():$.$$postDigest(function(){t=!0,n()})}}();On(i.addClass)&&(i.addClass=i.addClass.join(" "));i.addClass&&!V(i.addClass)&&(i.addClass=null);On(i.removeClass)&&(i.removeClass=i.removeClass.join(" "));i.removeClass&&!V(i.removeClass)&&(i.removeClass=null);i.from&&!U(i.from)&&(i.from=null);i.to&&!U(i.to)&&(i.to=null);if(!(T&&c&&j(c,r,n)&&x(c,i)))return h(),o;var s=0<=["enter","move","leave"].indexOf(r),e=b(),u=e||w.get(c),d=!u&&k.get(c)||{},n=!!d.state;u||n&&1===d.state||(u=!function(n,t){var e,a=y[0].body,r=gn(C),i=n===a||"HTML"===n.nodeName,o=n===r,s=!1,u=w.get(n),l=G.data(n,Y);l&&(t=gn(l));for(;t&&(o=o||t===r,t.nodeType===K);){var c=k.get(t)||{};if(!s){var f=w.get(t);if(!0===f&&!1!==u){u=!0;break}!1===f&&(u=!1),s=c.structural}if(!z(e)&&!0!==e||(c=G.data(t,L),Q(c)&&(e=c)),s&&!1===e)break;if((i=i||t===a)&&o)break;t=o||!(l=G.data(t,Y))?t.parentNode:gn(l)}return(!s||e)&&!0!==u&&o&&i}(c,f));if(u)return e&&p(o,r,"start",I(i)),h(),e&&p(o,r,"close",I(i)),o;s&&function(n){n=n.querySelectorAll("["+X+"]"),xn(n,function(n){var t=parseInt(n.getAttribute(X),10),e=k.get(n);if(e)switch(t){case 2:e.runner.end();case 1:k.delete(n)}})}(c);e={structural:s,element:l,event:r,addClass:i.addClass,removeClass:i.removeClass,close:h,options:i,runner:o};if(n){if(R("skip",e,d))return 2===d.state?(h(),o):(B(l,d,e),d.runner);var m=R("cancel",e,d);if(m)if(2===d.state)d.runner.end();else{if(!d.structural)return B(l,d,e),d.runner;d.close()}else if(R("join",e,d)){if(2!==d.state)return function(n,t,e){var a="";t&&(a=dn(t,on,!0)),e.addClass&&(a=J(a,dn(e.addClass,an))),(a=e.removeClass?J(a,dn(e.removeClass,rn)):a).length&&(e.preparationClasses=a,n.addClass(a))}(l,s?r:null,i),r=e.event=d.event,i=B(l,d,e),d.runner;P(l,e)}}else P(l,e);m=e.structural;m=m||("animate"===e.event&&0<Object.keys(e.options.to||{}).length||q(e));if(!m)return h(),M(c),o;var v=(d.counter||0)+1;return e.counter=v,E(c,1,e),$.$$postDigest(function(){l=H(a);var n=!(t=k.get(c)),t=t||{},e=0<(l.parent()||[]).length&&("animate"===t.event||t.structural||q(t));if(n||t.counter!==v||!e)return n&&(O(l,i),vn(l,i)),(n||s&&t.event!==r)&&(i.domOperation(),o.end()),void(e||M(c));r=!t.structural&&q(t,!0)?"setClass":t.event,E(c,2);t=D(l,r,t.options);o.setHost(t),p(o,r,"start",I(i)),t.done(function(n){h(!n);n=k.get(c);n&&n.counter===v&&M(c),p(o,r,"close",I(i))})}),o;function p(n,o,s,u){t(function(){var t,e,a,r,n,i=(t=f,e=c,r=[],(n=S[a=o])&&xn(n,function(n){(N.call(n.node,e)||"leave"===a&&N.call(n.node,t))&&r.push(n.callback)}),r);i.length?g(function(){xn(i,function(n){n(l,s,u)}),F(s,c)}):F(s,c)}),n.progress(o,s,u)}function h(n){var t,e;t=l,(e=i).preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null),O(l,i),vn(l,i),i.domOperation(),o.complete(!n)}}(n,t,e)},enabled:function(n,t){var e,a=arguments.length;return 0===a?t=!!T:p(n)?(e=gn(n),1===a?t=!w.get(e):(w.has(e)||G(n).on("$destroy",r),w.set(e,!t))):t=T=!!n,t}};return l;function M(n){n.removeAttribute(X),k.delete(n)}function E(n,t,e){(e=e||{}).state=t,n.setAttribute(X,t);t=k.get(n),e=t?v(t,e):e;k.set(n,e)}}]}],t=["$animateProvider",function(n){var C="ng-animate-ref",y=this.drivers=[],D="$$animationRunner",A="$$animatePrepareClasses";function b(n){return n.data(D)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(c,f,d,m,a,v,p){var h=[],g=W(c);function $(n){for(var i={children:[]},o=new a,t=0;t<n.length;t++){var e=n[t];o.set(e.domNode,n[t]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(t=0;t<n.length;t++)!function n(t){if(t.processed)return t;t.processed=!0;var e=t.domNode;var a=e.parentNode;o.set(e,t);var r;for(;a;){if(r=o.get(a)){r.processed||(r=n(r));break}a=a.parentNode}(r||i).children.push(t);return t}(n[t]);return function(n){var t,e=[],a=[];for(t=0;t<n.children.length;t++)a.push(n.children[t]);var r=a.length,i=0,o=[];for(t=0;t<a.length;t++){var s=a[t];r<=0&&(r=i,i=0,e.push(o),o=[]),o.push(s),s.children.forEach(function(n){i++,a.push(n)}),r--}o.length&&e.push(o);return e}(i)}return function(t,e,l){l=mn(l);var n=0<=["enter","move","leave"].indexOf(e),a=new m({end:function(){u()},cancel:function(){u(!0)}});if(!y.length)return u(),a;var r,i=w(t.attr("class"),w(l.addClass,l.removeClass)),o=l.tempClasses;return o&&(i+=" "+o,l.tempClasses=null),n&&t.data(A,"ng-"+e+"-prepare"),r=a,t.data(D,r),h.push({element:t,classes:i,event:e,structural:n,options:l,beforeStart:function(){o=(o?o+" ":"")+k,c.addClass(t,o);var n=t.data(A);n&&(c.removeClass(t,n),n=null)},close:u}),t.on("$destroy",s),1<h.length||f.$$postDigest(function(){var t=[];xn(h,function(n){b(n.element)?t.push(n):n.close()}),h.length=0;var n=function(s){var u=[],l={};xn(s,function(n,e){var t,a,r,i=gn(n.element),o=n.event,o=0<=["enter","move"].indexOf(o),t=n.structural?(t=(t=i).hasAttribute(C)?[t]:t.querySelectorAll("[ng-animate-ref]"),a=[],xn(t,function(n){var t=n.getAttribute(C);t&&t.length&&a.push(n)}),a):[];t.length?(r=o?"to":"from",xn(t,function(n){var t=n.getAttribute(C);l[t]=l[t]||{},l[t][r]={animationID:e,element:G(n)}})):u.push(n)});var c={},f={};return xn(l,function(n,t){var e,a,r,i=n.from,o=n.to;i&&o?(e=s[i.animationID],a=s[o.animationID],r=i.animationID.toString(),f[r]||((n=f[r]={structural:!0,beforeStart:function(){e.beforeStart(),a.beforeStart()},close:function(){e.close(),a.close()},classes:function(n,t){n=n.split(" "),t=t.split(" ");for(var e=[],a=0;a<n.length;a++){var r=n[a];if("ng-"!==r.substring(0,3))for(var i=0;i<t.length;i++)if(r===t[i]){e.push(r);break}}return e.join(" ")}(e.classes,a.classes),from:e,to:a,anchors:[]}).classes.length?u.push(n):(u.push(e),u.push(a))),f[r].anchors.push({out:i.element,in:o.element})):(o=(i=(i||o).animationID).toString(),c[o]||(c[o]=!0,u.push(s[i])))}),u}(t),e=[];xn(n,function(i){var n=(i.from||i).element,t=((t=l.addClass)?t+" ":"")+k,o=p.cacheKey(n[0],i.event,t,l.removeClass);e.push({element:n,domNode:gn(n),fn:function(){var n,t,e,a=i.close;function r(n){n=b(n);n&&n.setHost(e)}p.containsCachedAnimationWithoutDuration(o)?a():(i.beforeStart(),!b(i.anchors?i.from.element||i.to.element:i.element)||(n=function(n){for(var t=y.length-1;0<=t;t--){var e=y[t],e=d.get(e)(n);if(e)return e}}(i))&&(t=n.start),t?((t=t()).done(function(n){a(!n)}),e=t,(t=i).from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element)):a())}})});for(var a=$(e),r=0;r<a.length;r++)for(var i=a[r],o=0;o<i.length;o++){var s=i[o],u=s.element;a[r][o]=s.fn,0!==r?(s=u.data(A))&&c.addClass(u,s):u.removeData(A)}v(a)}),a;function s(){var n=b(t);!n||"leave"===e&&l.$$domOperationFired||n.end()}function u(n){t.off("$destroy",s),t.removeData(D),g(t,l),vn(t,l),l.domOperation(),o&&c.removeClass(t,o),a.complete(!n)}}}]}];n.module("ngAnimate",[],function(){Pn=n.noop,jn=n.copy,v=n.extend,G=n.element,xn=n.forEach,On=n.isArray,V=n.isString,U=n.isObject,z=n.isUndefined,Q=n.isDefined,y=n.isFunction,p=n.isElement}).info({angularVersion:"1.8.1"}).directive("ngAnimateSwap",["$animate",function(s){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(n,e,t,a,r){var i,o;n.$watchCollection(t.ngAnimateSwap||t.for,function(n){i&&s.leave(i),o&&(o.$destroy(),o=null),!n&&0!==n||r(function(n,t){i=n,o=t,s.enter(n,null,e)})})}}}]).directive("ngAnimateChildren",s).factory("$$rAFScheduler",["$$rAF",function(e){var a,r;function n(n){a=a.concat(n),i()}return a=n.queue=[],n.waitUntilQuiet=function(n){r&&r(),r=e(function(){r=null,n(),i()})},n;function i(){if(a.length){for(var n=a.shift(),t=0;t<n.length;t++)n[t]();r||e(function(){r||i()})}}}]).provider("$$animateQueue",$).provider("$$animateCache",function(){var i="$$ngAnimateParentKey",o=0,a=Object.create(null);this.$get=[function(){return{cacheKey:function(n,t,e,a){var r=n.parentNode,n=[r[i]||(r[i]=++o),t,n.getAttribute("class")];return e&&n.push(e),a&&n.push(a),n.join(" ")},containsCachedAnimationWithoutDuration:function(n){n=a[n];return n&&!n.isValid||!1},flush:function(){a=Object.create(null)},count:function(n){n=a[n];return n?n.total:0},get:function(n){n=a[n];return n&&n.value},put:function(n,t,e){a[n]?(a[n].total++,a[n].value=t):a[n]={total:1,value:t,isValid:e}}}}]}).provider("$$animation",t).provider("$animateCss",l).provider("$$animateCssDriver",c).provider("$$animateJs",h).provider("$$animateJsDriver",g)}(window,window.angular);