(function(n,t,i){"use strict";function wt(n,t,i){if(!n)throw ngMinErr("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function bt(n,t){return!n&&!t?"":n?t?(h(n)&&(n=n.join(" ")),h(t)&&(t=t.join(" ")),n+" "+t):n:t}function ci(n){var t={};return n&&(n.to||n.from)&&(t.to=n.to,t.from=n.from),t}function l(n,t,i){var u="";return n=h(n)?n:n&&w(n)&&n.length?n.split(/\s+/):[],r(n,function(n,r){n&&n.length>0&&(u+=r>0?" ":"",u+=i?t+n:n+t)}),u}function li(n,t){var i=n.indexOf(t);t>=0&&n.splice(i,1)}function ai(n){if(n instanceof s)switch(n.length){case 0:return[];case 1:if(n[0].nodeType===c)return n;break;default:return s(ut(n))}if(n.nodeType===c)return s(n)}function ut(n){var t,i;if(!n[0])return n;for(t=0;t<n.length;t++)if(i=n[t],i.nodeType==c)return i}function vi(n,t,i){r(t,function(t){n.addClass(t,i)})}function yi(n,t,i){r(t,function(t){n.removeClass(t,i)})}function b(n){return function(t,i){i.addClass&&(vi(n,t,i.addClass),i.addClass=null);i.removeClass&&(yi(n,t,i.removeClass),i.removeClass=null)}}function k(n){if(n=n||{},!n.$$prepared){var t=n.domOperation||o;n.domOperation=function(){n.$$domOperationFired=!0;t();t=o};n.$$prepared=!0}return n}function a(n,t){kt(n,t);dt(n,t)}function kt(n,t){t.from&&(n.css(t.from),t.from=null)}function dt(n,t){t.to&&(n.css(t.to),t.to=null)}function d(n,t,i){var u=(t.addClass||"")+" "+(i.addClass||""),f=(t.removeClass||"")+" "+(i.removeClass||""),r=pi(n.attr("class"),u,f);return vt(t,i),t.addClass=r.addClass?r.addClass:null,t.removeClass=r.removeClass?r.removeClass:null,t}function pi(n,t,i){function o(n){w(n)&&(n=n.split(" "));var t={};return r(n,function(n){n.length&&(t[n]=!0)}),t}var e=1,s=-1,f={},u;return n=o(n),t=o(t),r(t,function(n,t){f[t]=e}),i=o(i),r(i,function(n,t){f[t]=f[t]===e?null:s}),u={addClass:"",removeClass:""},r(f,function(t,i){var r,f;t===e?(r="addClass",f=!n[i]):t===s&&(r="removeClass",f=n[i]);f&&(u[r].length&&(u[r]+=" "),u[r]+=i)}),u}function u(n){return n instanceof t.element?n[0]:n}function ui(n,t,i){var u=Object.create(null),f=n.getComputedStyle(t)||{};return r(i,function(n,t){var i=f[n],r;i&&(r=i.charAt(0),(r==="-"||r==="+"||r>=0)&&(i=rr(i)),i===0&&(i=null),u[t]=i)}),u}function rr(n){var t=0,i=n.split(/\s*,\s*/);return r(i,function(n){n.charAt(n.length-1)=="s"&&(n=n.substring(0,n.length-1));n=parseFloat(n)||0;t=t?Math.max(n,t):n}),t}function ct(n){return n===0||n!=null}function fi(n,t){var i=f,r=n+"s";return t?i+=ot:r+=" linear all",[i,r]}function ur(n){return[ht,n+"s"]}function ei(n,t){var i=t?st:y;return[i,n+"s"]}function g(n,t){var i=t?"-"+t+"s":"";return p(n,[y,i]),[y,i]}function lt(n,t){var i=t?"paused":"",r=e+ki;return p(n,[r,i]),[r,i]}function p(n,t){var i=t[0],r=t[1];n.style[i]=r}function oi(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){var i=n[t];return i?i.total:0},get:function(t){var i=n[t];return i&&i.value},put:function(t,i){n[t]?n[t].total++:n[t]={total:1,value:i}}}}var o=t.noop,vt=t.extend,s=t.element,r=t.forEach,h=t.isArray,w=t.isString,tt=t.isObject,si=t.isUndefined,hi=t.isDefined,yt=t.isFunction,it=t.isElement,c=1,pt="ng-animate",rt="$$ngAnimateChildren",vr=function(n){return n&&n.then?!0:!1},wi=["$$rAF",function(n){function u(n){i.push([].concat(n));r()}function r(){var o,u,e;if(i.length){for(o=[],u=0;u<i.length;u++)e=i[u],f(e),e.length&&o.push(e);i=o;t||n(function(){t||r()})}}function f(n){var t=n.shift();t()}var i=[],t;return u.waitUntilQuiet=function(i){t&&t();t=n(function(){t=null;i();r()})},u}],bi=[function(){return function(n,i,r){var u=r.ngAnimateChildren;t.isString(u)&&u.length===0?i.data(rt,!0):r.$observe("ngAnimateChildren",function(n){n=n==="on"||n==="true";i.data(rt,n)})}}],gt="",f,ft,e,et;n.ontransitionend===i&&n.onwebkittransitionend!==i?(gt="-webkit-",f="WebkitTransition",ft="webkitTransitionEnd transitionend"):(f="transition",ft="transitionend");n.onanimationend===i&&n.onwebkitanimationend!==i?(gt="-webkit-",e="WebkitAnimation",et="webkitAnimationEnd animationend"):(e="animation",et="animationend");var ot="Duration",ni="Property",ti="Delay",ii="TimingFunction",ki="PlayState",di=3,gi=1.5,v=1e3,nr=9999,st=e+ti,ht=e+ot,y=f+ti,ri=f+ot,tr={transitionDuration:ri,transitionDelay:y,transitionProperty:f+ni,animationDuration:ht,animationDelay:st,animationIterationCount:e+"IterationCount"},ir={transitionDuration:ri,transitionDelay:y,animationDuration:ht,animationDelay:st};var fr=["$animateProvider",function(){var n=oi(),t=oi();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(i,o,s,c,y,w,d){function it(n,t){var i="$$ngAnimateParentKey",r=n.parentNode,u=r[i]||(r[i]=++ut);return u+"-"+n.getAttribute("class")+"-"+t}function ot(t,r,u,f){var e=n.get(u);return e||(e=ui(i,t,f),e.animationIterationCount==="infinite"&&(e.animationIterationCount=1)),n.put(u,e),e}function st(r,u,f,e){var s,h;return n.count(f)>0&&(s=t.get(f),s||(h=l(u,"-stagger"),o.addClass(r,h),s=ui(i,r,e),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),o.removeClass(r,h),t.put(f,s))),s||{}}function at(i){nt.push(i);d.waitUntilQuiet(function(){var r,i;for(n.flush(),t.flush(),r=ht.offsetWidth+1,i=0;i<nt.length;i++)nt[i](r);nt.length=0})}function rt(n,t,i){var r=ot(n,t,i,tr),u=r.animationDelay,f=r.transitionDelay;return r.maxDelay=u&&f?Math.max(u,f):u||f,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}function vt(t,i){function yi(){wt()}function lr(){wt(!0)}function wt(n){ti||pi&&yt||(ti=!0,yt=!1,o.removeClass(t,pt),o.removeClass(t,hr),lt(b,!1),g(b,!1),r(ut,function(n){b.style[n[0]]=""}),tt(t,i),a(t,i),i.onDone&&i.onDone(),bt&&bt.complete(!n))}function ar(n){y.blockTransition&&g(b,n);y.blockKeyframeAnimation&&lt(b,!!n)}function or(){return bt=new s({end:yi,cancel:lr}),wt(),{$$willAnimate:!1,start:function(){return bt},end:yi}}function pr(){function l(){var s,h,l;if(!ti){if(ar(!1),r(ut,function(n){var t=n[0],i=n[1];b.style[t]=i}),tt(t,i),o.addClass(t,hr),y.recalculateTimingStyles){if(ui=b.className+" "+pt,gt=it(b,ui),d=rt(b,ui,gt),ot=d.maxDelay,ri=Math.max(ot,0),nt=d.maxDuration,nt===0){wt();return}y.hasTransitions=d.transitionDuration>0;y.hasAnimations=d.animationDuration>0}(y.applyTransitionDelay||y.applyAnimationDelay)&&(ot=typeof i.delay!="boolean"&&ct(i.delay)?parseFloat(i.delay):ot,ri=Math.max(ot,0),y.applyTransitionDelay&&(d.transitionDelay=ot,s=ei(ot),ut.push(s),b.style[s[0]]=s[1]),y.applyAnimationDelay&&(d.animationDelay=ot,s=ei(ot,!0),ut.push(s),b.style[s[0]]=s[1]));si=ri*v;wi=nt*v;i.easing&&(l=i.easing,y.hasTransitions&&(h=f+ii,ut.push([h,l]),b.style[h]=l),y.hasAnimations&&(h=e+ii,ut.push([h,l]),b.style[h]=l));d.transitionDuration&&n.push(ft);d.animationDuration&&n.push(et);u=Date.now();t.on(n.join(" "),p);c(a,si+gi*wi);dt(t,i)}}function a(){wt()}function p(n){n.stopPropagation();var t=n.originalEvent||n,i=t.$manualTimeStamp||t.timeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(di));Math.max(i-u,0)>=si&&r>=nt&&(pi=!0,wt())}if(!ti){var u,n=[],s=function(n){if(pi)yt&&n&&(yt=!1,wt());else if(yt=!n,d.animationDuration){var t=lt(b,yt);yt?ut.push(t):li(ut,t)}},h=vi>0&&(d.transitionDuration&&ht.transitionDuration===0||d.animationDuration&&ht.animationDuration===0)&&Math.max(ht.animationDelay,ht.transitionDelay);h?c(l,Math.floor(h*vi*v),!1):l();oi.resume=function(){s(!0)};oi.pause=function(){s(!1)}}}var b=u(t),gt,ht,ki,ai,tr,rr,fr,vi,er,d,ot,y;i=k(i);var ut=[],vr=t.attr("class"),sr=ci(i),ti,yt,pi,bt,oi,ri,si,nt,wi;if(i.duration===0||!w.animations&&!w.transitions)return or();var hi=i.event&&h(i.event)?i.event.join(" "):i.event,yr=hi&&i.structural,bi="",vt="";yr?bi=l(hi,"ng-",!0):hi&&(bi=hi);i.addClass&&(vt+=l(i.addClass,"-add"));i.removeClass&&(vt.length&&(vt+=" "),vt+=l(i.removeClass,"-remove"));i.applyClassesEarly&&vt.length&&(tt(t,i),vt="");var pt=[bi,vt].join(" ").trim(),ui=vr+" "+pt,hr=l(pt,"-active"),cr=sr.to&&Object.keys(sr.to).length>0;return!cr&&!pt?or():(i.stagger>0?(ki=parseFloat(i.stagger),ht={transitionDelay:ki,animationDelay:ki,transitionDuration:0,animationDuration:0}):(gt=it(b,ui),ht=st(b,pt,gt,ir)),o.addClass(t,pt),i.transitionStyle&&(tr=[f,i.transitionStyle],p(b,tr),ut.push(tr)),i.duration>=0&&(ai=b.style[f].length>0,rr=fi(i.duration,ai),p(b,rr),ut.push(rr)),i.keyframeStyle&&(fr=[e,i.keyframeStyle],p(b,fr),ut.push(fr)),vi=ht?i.staggerIndex>=0?i.staggerIndex:n.count(gt):0,er=vi===0,er&&g(b,nr),d=rt(b,ui,gt),ot=d.maxDelay,ri=Math.max(ot,0),nt=d.maxDuration,y={},y.hasTransitions=d.transitionDuration>0,y.hasAnimations=d.animationDuration>0,y.hasTransitionAll=y.hasTransitions&&d.transitionProperty=="all",y.applyTransitionDuration=cr&&(y.hasTransitions&&!y.hasTransitionAll||y.hasAnimations&&!y.hasTransitions),y.applyAnimationDuration=i.duration&&y.hasAnimations,y.applyTransitionDelay=ct(i.delay)&&(y.applyTransitionDuration||y.hasTransitions),y.applyAnimationDelay=ct(i.delay)&&y.hasAnimations,y.recalculateTimingStyles=vt.length>0,(y.applyTransitionDuration||y.applyAnimationDuration)&&(nt=i.duration?parseFloat(i.duration):nt,y.applyTransitionDuration&&(y.hasTransitions=!0,d.transitionDuration=nt,ai=b.style[f+ni].length>0,ut.push(fi(nt,ai))),y.applyAnimationDuration&&(y.hasAnimations=!0,d.animationDuration=nt,ut.push(ur(nt)))),nt===0&&!y.recalculateTimingStyles)?or():(i.duration==null&&d.transitionDuration>0&&(y.recalculateTimingStyles=y.recalculateTimingStyles||er),si=ri*v,wi=nt*v,i.skipBlocking||(y.blockTransition=d.transitionDuration>0,y.blockKeyframeAnimation=d.animationDuration>0&&ht.animationDelay>0&&ht.animationDuration===0),kt(t,i),y.blockTransition||g(b,!1),ar(nt),{$$willAnimate:!0,end:yi,start:function(){if(!ti)return oi={end:yi,cancel:lr,resume:null,pause:null},bt=new s(oi),at(pr),bt}})}var tt=b(o),ut=0,ht=u(y).body,nt=[];return vt}]}],er=["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver");var t="ng-animate-shim",f="ng-anchor",i="ng-anchor-out",e="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(n,h,c,l,a,v){function k(n){return n.replace(/\bng-\S+\b/g,"")}function d(n,t){return w(n)&&(n=n.split(" ")),w(t)&&(t=t.split(" ")),n.filter(function(n){return t.indexOf(n)===-1}).join(" ")}function nt(o,h,l){function tt(n){var t={},i=u(n).getBoundingClientRect();return r(["width","height","top","left"],function(n){var r=i[n];switch(n){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}t[n]=Math.floor(r)+"px"}),t}function ut(){var t=n(v,{addClass:i,delay:!0,from:tt(h)});return t.$$willAnimate?t:null}function it(n){return n.attr("class")||""}function rt(){var t=k(it(l)),u=d(t,b),f=d(b,t),r=n(v,{to:tt(l),addClass:e+" "+u,removeClass:i+" "+f,delay:!0});return r.$$willAnimate?r:null}function w(){v.remove();h.removeClass(t);l.removeClass(t)}var v=s(u(h).cloneNode(!0)),b=k(it(v)),a,p,nt;return(h.addClass(t),l.addClass(t),v.addClass(f),g.append(v),p=ut(),!p&&(a=rt(),!a))?w():(nt=p||a,{start:function(){function i(){n&&n.end()}var t,n=nt.start();return n.done(function(){if(n=null,!a&&(a=rt(),a))return n=a.start(),n.done(function(){n=null;w();t.complete()}),n;w();t.complete()}),t=new c({end:i,cancel:i})}})}function tt(n,t,i,u){var f=p(n),e=p(t),o=[];if(r(u,function(n){var r=n.out,u=n["in"],t=nt(i,r,u);t&&o.push(t)}),f||e||o.length!==0)return{start:function(){function i(){r(n,function(n){n.end()})}var n=[],t;return f&&n.push(f.start()),e&&n.push(e.start()),r(o,function(t){n.push(t.start())}),t=new c({end:i,cancel:i}),c.all(n,function(n){t.complete(n)}),t}}}function p(t){var u=t.element,i=t.options||{},r;return t.structural?(i.structural=i.applyClassesEarly=!0,i.event=t.event,i.event==="leave"&&(i.onDone=i.domOperation)):i.event=null,r=n(u,i),r.$$willAnimate?r:null}if(!v.animations&&!v.transitions)return o;var y=u(a).body,b=u(l),g=s(y.parentNode===b?y:b);return function(n){return n.from&&n.to?tt(n.from,n.to,n.classes,n.anchors):p(n)}}]}],or=["$animateProvider",function(n){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(t,i,u,f){function s(i){var f,e,r,u,o;for(i=h(i)?i:i.split(" "),f=[],e={},r=0;r<i.length;r++)u=i[r],o=n.$$registeredAnimations[u],o&&!e[u]&&(f.push(t.get(o)),e[u]=!0);return f}var e=b(f);return function(n,t,u,f){function w(){f.domOperation();e(n,f)}function nt(n,t,r,u,f){var s,e;switch(r){case"animate":s=[t,u.from,u.to,f];break;case"setClass":s=[t,b,d,f];break;case"addClass":s=[t,b,f];break;case"removeClass":s=[t,d,f];break;default:s=[t,f]}if(s.push(u),e=n.apply(n,s),e)if(yt(e.start)&&(e=e.start()),e instanceof i)e.done(f);else if(yt(e))return e;return o}function h(n,t,u,f,e){var s=[];return r(f,function(r){var f=r[e];f&&s.push(function(){var r,s,h=!1,e=function(n){h||(h=!0,(s||o)(n),r.complete(!n))};return r=new i({end:function(){e()},cancel:function(){e(!0)}}),s=nt(f,n,t,u,function(n){var t=n===!1;e(t)}),r})}),s}function g(n,t,u,f,e){var o=h(n,t,u,f,e),s,c;if(o.length===0&&(e==="beforeSetClass"?(s=h(n,"removeClass",u,f,"beforeRemoveClass"),c=h(n,"addClass",u,f,"beforeAddClass")):e==="setClass"&&(s=h(n,"removeClass",u,f,"removeClass"),c=h(n,"addClass",u,f,"addClass")),s&&(o=o.concat(s)),c&&(o=o.concat(c))),o.length!==0)return function(n){var t=[];return o.length&&r(o,function(n){t.push(n())}),t.length?i.all(t,n):n(),function(n){r(t,function(t){n?t.cancel():t.end()})}}}var y,p;arguments.length===3&&tt(u)&&(f=u,u=null);f=k(f);u||(u=n.attr("class")||"",f.addClass&&(u+=" "+f.addClass),f.removeClass&&(u+=" "+f.removeClass));var b=f.addClass,d=f.removeClass,v=s(u),c,l;if(v.length&&(t=="leave"?(p="leave",y="afterLeave"):(p="before"+t.charAt(0).toUpperCase()+t.substr(1),y=t),t!=="enter"&&t!=="move"&&(c=g(n,t,f,v,p)),l=g(n,t,f,v,y)),c||l)return{start:function(){function s(t){u=!0;w();a(n,f);e.complete(t)}function h(n){u||((r||o)(n),s(n))}var r,t=[],u,e;return c&&t.push(function(n){r=c(n)}),t.length?t.push(function(n){w();n(!0)}):w(),l&&t.push(function(n){r=l(n)}),u=!1,e=new i({end:function(){h()},cancel:function(){h(!0)}}),i.chain(t,s),e}}}}]}],sr=["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(n,t){function i(t){var i=t.element,r=t.event,u=t.options,f=t.classes;return n(i,r,f,u)}return function(n){if(n.from&&n.to){var u=i(n.from),f=i(n.to);return!u&&!f?void 0:{start:function(){function e(){return function(){r(n,function(n){n.end()})}}function o(n){i.complete(n)}var n=[],i;return u&&n.push(u.start()),f&&n.push(f.start()),t.all(n,o),i=new t({end:e(),cancel:e()})}}}return i(n)}}]}],nt="data-ng-animate",at="$ngAnimatePin",hr=["$animateProvider",function(n){function o(n,i,r,u){return t[n].some(function(n){return n(i,r,u)})}function f(n,t){n=n||{};var i=(n.addClass||"").length>0,r=(n.removeClass||"").length>0;return t?i&&r:i||r}var e=1,i=2,t=this.rules={skip:[],cancel:[],join:[]};t.join.push(function(n,t){return!t.structural&&f(t.options)});t.skip.push(function(n,t){return!t.structural&&!f(t.options)});t.skip.push(function(n,t,i){return i.event=="leave"&&t.structural});t.skip.push(function(n,t,i){return i.structural&&!t.structural});t.cancel.push(function(n,t,i){return i.structural&&t.structural});t.cancel.push(function(n,t,r){return r.state===i&&t.structural});t.cancel.push(function(n,t,i){var r=t.options,u=i.options;return r.addClass&&r.addClass===u.removeClass||r.removeClass&&r.removeClass===u.addClass});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(t,l,v,y,p,w,g,ft,et){function kt(n,t){return d(n,t,{})}function ri(n,t){var e=u(n),i=[],f=st[t];return f&&r(f,function(n){n.node.contains(e)&&i.push(n.callback)}),i}function ui(n,i,u,f){t(function(){r(ri(i,n),function(n){n(i,u,f)})})}function fi(n,t,r){function yt(t,i,r,u){ui(i,n,r,u);t.progress(i,r,u)}function p(t){bt(n,r);a(n,r);r.domOperation();c.complete(!t)}var y,ut,c,ft,v,st,at,vt,it,rt;if((n=ai(n),n&&(y=u(n),ut=n.parent()),r=k(r),c=new g,!y)||(h(r.addClass)&&(r.addClass=r.addClass.join(" ")),h(r.removeClass)&&(r.removeClass=r.removeClass.join(" ")),r.from&&!tt(r.from)&&(r.from=null),r.to&&!tt(r.to)&&(r.to=null),ft=[y.className,r.addClass,r.removeClass].join(" "),!ii(ft)))return p(),c;var b=["enter","move","leave"].indexOf(t)>=0,nt=!ct||ht.get(y),s=!nt&&ot.get(y)||{},et=!!s.state;if(nt||et&&s.state==e||(nt=!oi(n,ut,t)),nt)return p(),c;if(b&&ei(n),v={structural:b,element:n,event:t,close:p,options:r,runner:c},et){if(st=o("skip",n,v,s),st)return s.state===i?(p(),c):(d(n,s.options,r),s.runner);if(at=o("cancel",n,v,s),at)s.state===i?s.runner.end():s.structural?s.close():d(n,v.options,s.options);else if(vt=o("join",n,v,s),vt)if(s.state===i)kt(n,r);else return t=v.event=s.event,r=d(n,s.options,v.options),c}else kt(n,r);return(it=v.structural,it||(it=v.event==="animate"&&Object.keys(v.options.to||{}).length>0||f(v.options)),!it)?(p(),lt(n),c):(b&&dt(ut),rt=(s.counter||0)+1,v.counter=rt,gt(n,e,v),l.$$postDigest(function(){var e=ot.get(y),o=!e,s,h,l;if(e=e||{},s=n.parent()||[],h=s.length>0&&(e.event==="animate"||e.structural||f(e.options)),o||e.counter!==rt||!h){o&&(bt(n,r),a(n,r));(o||b&&e.event!==t)&&(r.domOperation(),c.end());h||lt(n);return}t=!e.structural&&f(e.options,!0)?"setClass":e.event;e.structural&&dt(s);gt(n,i);l=w(n,t,e.options);l.done(function(i){p(!i);var r=ot.get(y);r&&r.counter===rt&&lt(u(n));yt(c,t,"close",{})});c.setHost(l);yt(c,t,"start",{})}),c)}function ei(n){var t=u(n),f=t.querySelectorAll("["+nt+"]");r(f,function(n){var r=parseInt(n.getAttribute(nt)),t=ot.get(n);switch(r){case i:t.runner.end();case e:t&&ot.remove(n)}})}function lt(n){var t=u(n);t.removeAttribute(nt);ot.remove(t)}function yt(n,t){return u(n)===u(t)}function dt(n){function e(n,t){!t.structural&&f(t.options)&&(t.state===i&&t.runner.end(),lt(n))}var t=u(n),r;do{if(!t||t.nodeType!==c)break;r=ot.get(t);r&&e(t,r);t=t.parentNode}while(1)}function oi(n,t){var o=!1,i=!1,f=!1,r,u=n.data(at),e,h,s,l;for(u&&(t=u);t&&t.length;){if(i||(i=yt(t,v)),e=t[0],e.nodeType!==c)break;if(h=ot.get(e)||{},f||(f=h.structural||ht.get(e)),(si(r)||r===!0)&&(s=t.data(rt),hi(s)&&(r=s)),f&&r===!1)break;i||(i=yt(t,v),i||(u=t.data(at),u&&(t=u)));o||(o=yt(t,ti));t=t.parent()}return l=!f||r,l&&i&&o}function gt(n,t,i){var r,f,e;i=i||{};i.state=t;r=u(n);r.setAttribute(nt,t);f=ot.get(r);e=f?vt(f,i):i;ot.put(r,e)}var ot=new p,ht=new p,ct=null,ni=l.$watch(function(){return ft.totalPendingRequests===0},function(n){n&&(ni(),l.$$postDigest(function(){l.$$postDigest(function(){ct===null&&(ct=!0)})}))}),ti=s(y[0].body),st={},pt=n.classNameFilter(),ii=pt?function(n){return pt.test(n)}:function(){return!0},bt=b(et);return{on:function(n,t,i){var r=ut(t);st[n]=st[n]||[];st[n].push({node:r,callback:i})},off:function(n,t,i){function u(n,t,i){var r=ut(t);return n.filter(function(n){var t=n.node===r&&(!i||n.callback===i);return!t})}var r=st[n];r&&(st[n]=arguments.length===1?null:u(r,t,i))},pin:function(n,t){wt(it(n),"element","not an element");wt(it(t),"parentElement","not an element");n.data(at,t)},push:function(n,t,i,r){return i=i||{},i.domOperation=r,fi(n,t,i)},enabled:function(n,t){var f=arguments.length,e,i,r;return f===0?t=!!ct:(e=it(n),e?(i=u(n),r=ht.get(i),f===1?t=!r:(t=!!t,t?r&&ht.remove(i):ht.put(i,!0))):t=ct=!!n),t}}}]}],cr=["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(i){t?i():n(i)}}}],lr=["$q","$$rAFMutex",function(n,t){function i(n){this.setHost(n);this._doneCallbacks=[];this._runInAnimationFrame=t();this._state=0}var f=0,e=1,u=2;return i.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},i.all=function(n,t){function f(r){i=i&&r;++u===n.length&&t(i)}var u=0,i=!0;r(n,function(n){n.done(f)})},i.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===u?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===f&&(t._state=e,t._runInAnimationFrame(function(){t._resolve(n)}))},_resolve:function(n){this._state!==u&&(r(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=u)}},i}],ar=["$animateProvider",function(){function e(n,t){n.data(f,t)}function o(n){n.removeData(f)}function t(n){return n.data(f)}var n="ng-animate-ref",i=this.drivers=[],f="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(f,h,c,l,v){var p=[],g=b(f),w=0,d=0,y=[];return function(b,nt,tt){function ht(t){var u="["+n+"]",f=t.hasAttribute(n)?[t]:t.querySelectorAll(u),i=[];return r(f,function(t){var r=t.getAttribute(n);r&&r.length&&i.push(t)}),i}function ct(t){var i=[],f={},o,e;return r(t,function(t,e){var c=t.element,l=u(c),a=t.event,v=["enter","move"].indexOf(a)>=0,o=t.structural?ht(l):[],h;o.length?(h=v?"to":"from",r(o,function(t){var i=t.getAttribute(n);f[i]=f[i]||{};f[i][h]={animationID:e,element:s(t)}})):i.push(t)}),o={},e={},r(f,function(n){var r=n.from,s=n.to,h,c,a;if(!r||!s){h=r?r.animationID:s.animationID;c=h.toString();o[c]||(o[c]=!0,i.push(t[h]));return}var u=t[r.animationID],f=t[s.animationID],l=r.animationID.toString();e[l]||(a=e[l]={structural:!0,beforeStart:function(){u.beforeStart();f.beforeStart()},close:function(){u.close();f.close()},classes:lt(u.classes,f.classes),from:u,to:f,anchors:[]},a.classes.length?i.push(a):(i.push(u),i.push(f)));e[l].anchors.push({out:r.element,"in":s.element})}),i}function lt(n,t){var f,i,r,u;for(n=n.split(" "),t=t.split(" "),f=[],i=0;i<n.length;i++)if(r=n[i],r.substring(0,3)!=="ng-")for(u=0;u<t.length;u++)if(r===t[u]){f.push(r);break}return f.join(" ")}function at(n){for(var r,f,u,t=i.length-1;t>=0;t--)if((r=i[t],c.has(r))&&(f=c.get(r),u=f(n),u))return u}function vt(){b.addClass(pt);it&&f.addClass(b,it)}function yt(n,i){function r(n){t(n).setHost(i)}n.from&&n.to?(r(n.from.element),r(n.to.element)):r(n.element)}function st(){var n=t(b);n&&(nt!=="leave"||!tt.$$domOperationFired)&&n.end()}function ut(n){b.off("$destroy",st);o(b);g(b,tt);a(b,tt);tt.domOperation();it&&f.removeClass(b,it);b.removeClass(pt);rt.complete(!n)}var ft,rt,et,it,ot;if(tt=k(tt),ft=["enter","move","leave"].indexOf(nt)>=0,rt=new l({end:function(){ut()},cancel:function(){ut(!0)}}),!i.length)return ut(),rt;e(b,rt);et=bt(b.attr("class"),bt(tt.addClass,tt.removeClass));it=tt.tempClasses;it&&(et+=" "+it,tt.tempClasses=null);ft||(ot=w,w+=1);p.push({element:b,classes:et,event:nt,classBasedIndex:ot,structural:ft,options:tt,beforeStart:vt,close:ut});b.on("$destroy",st);return p.length>1?rt:(h.$$postDigest(function(){d=w;w=0;y.length=0;var n=[];r(p,function(i){t(i.element)&&n.push(i)});p.length=0;r(ct(n),function(n){function i(){var i,r,e,u,f;n.beforeStart();r=n.close;e=n.anchors?n.from.element||n.to.element:n.element;t(e)&&(u=at(n),u&&(i=u.start));i?(f=i(),f.done(function(n){r(!n)}),yt(n,f)):r()}n.structural?i():(y.push({node:u(n.element),fn:i}),n.classBasedIndex===d-1&&(y=y.sort(function(n,t){return t.node.contains(n.node)}).map(function(n){return n.fn}),v(y)))})}),rt)}}]}];t.module("ngAnimate",[]).directive("ngAnimateChildren",bi).factory("$$rAFMutex",cr).factory("$$rAFScheduler",wi).factory("$$AnimateRunner",lr).provider("$$animateQueue",hr).provider("$$animation",ar).provider("$animateCss",fr).provider("$$animateCssDriver",er).provider("$$animateJs",or).provider("$$animateJsDriver",sr)})(window,window.angular)