var Konami=function(n){var t={addEvent:function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&(n["e"+t+i]=i,n[t+i]=function(){n["e"+t+i](window.event,r)},n.attachEvent("on"+t,n[t+i]))},input:"",pattern:"38384040373937396665",load:function(n){this.addEvent(document,"keydown",function(i,r){return r&&(t=r),t.input+=i?i.keyCode:event.keyCode,t.input.length>t.pattern.length&&(t.input=t.input.substr(t.input.length-t.pattern.length)),t.input==t.pattern?(t.code(n),t.input="",i.preventDefault(),!1):void 0},this)},code:function(n){window.location=n}};return typeof n=="string"&&t.load(n),typeof n=="function"&&(t.code=n,t.load()),t},ngMap,iarApp,iarServices;!function(n){var t={speed:0,interaction:!0,size:2,count:200,opacity:0,color:"#ffffff",windPower:0,image:!1};n.fn.let_it_snow=function(i){function o(){var e;for(f.clearRect(0,0,u.width,u.height),e=0;e<c;e++){var t=h[e],v=l,y=a,k=100,p=t.x,w=t.y,i=Math.sqrt((p-v)*(p-v)+(w-y)*(w-y)),ut=p-v,ft=w-y;if(i<k){var g=k/(i*i),nt=(v-p)/i,tt=(y-w)/i,d=g/2;t.velX-=d*nt;t.velY-=d*tt}else{t.velX*=.98;t.velY<=t.speed&&(t.velY=t.speed);switch(r.windPower){case!1:t.velX+=Math.cos(t.step+=.05)*t.stepSize;break;case 0:t.velX+=Math.cos(t.step+=.05)*t.stepSize;break;default:t.velX+=.01+r.windPower/100}}var it=r.color,b=/^#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/.exec(it),rt=parseInt(b[1],16)+","+parseInt(b[2],16)+","+parseInt(b[3],16);t.y+=t.velY;t.x+=t.velX;(t.y>=u.height||t.y<=0)&&s(t);(t.x>=u.width||t.x<=0)&&s(t);r.image==!1?(f.fillStyle="rgba("+rt+","+t.opacity+")",f.beginPath(),f.arc(t.x,t.y,t.size,0,Math.PI*2),f.fill()):f.drawImage(n("img#lis_flake").get(0),t.x,t.y,t.size*2,t.size*2)}requestAnimationFrame(o)}function s(n){if(r.windPower==!1||r.windPower==0)n.x=Math.floor(Math.random()*u.width),n.y=0;else if(r.windPower>0){var f=Array(Math.floor(Math.random()*u.width),0),e=Array(0,Math.floor(Math.random()*u.height)),t=Array(f,e),i=t[Math.floor(Math.random()*t.length)];n.x=i[0];n.y=i[1]}else{var f=Array(Math.floor(Math.random()*u.width),0),e=Array(u.width,Math.floor(Math.random()*u.height)),t=Array(f,e),i=t[Math.floor(Math.random()*t.length)];n.x=i[0];n.y=i[1]}n.size=Math.random()*3+r.size;n.speed=Math.random()*1+r.speed;n.velY=n.speed;n.velX=0;n.opacity=Math.random()*.5+r.opacity}function v(){for(var n=0;n<c;n++){var i=Math.floor(Math.random()*u.width),f=Math.floor(Math.random()*u.height),e=Math.random()*3+r.size,t=Math.random()*1+r.speed,s=Math.random()*.5+r.opacity;h.push({speed:t,velY:t,velX:0,x:i,y:f,size:e,stepSize:Math.random()/30,step:0,angle:180,opacity:s})}o()}var r=n.extend({},t,i),e=n(this),h=[],u=e.get(0),f=u.getContext("2d"),c=r.count,l=-100,a=-100;u.width=window.innerWidth;u.height=window.innerHeight;e.on("letItSnow.set",function(n,t,i){r[t]=i});(function(){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)};window.requestAnimationFrame=n})();r.image!=!1&&n("<img src='"+r.image+"' style='display: none' id='lis_flake'>").prependTo("body");v();n(window).resize(function(){this.resizeTO&&clearTimeout(this.resizeTO);this.resizeTO=setTimeout(function(){el2=e.clone();el2.insertAfter(e);e.remove();el2.let_it_snow(r)},200)});r.interaction==!0&&u.addEventListener("mousemove",function(n){l=n.clientX;a=n.clientY})}}(window.jQuery),function(n,t){"use strict";var i,r=[],u=/@-skrollr-keyframes\s+([\w-]+)/g,o=/\s*\{\s*((?:[^{]+\{[^}]*\}\s*)+?)\s*\}/g,s=/([\w\-]+)\s*\{([^}]+)\}/g,h="skrollr-",f=/-skrollr-animation-name\s*:\s*([\w-]+)/g,e=/-skrollr-(anchor-target|smooth-scrolling|emit-events|menu-offset)\s*:\s*['"]([^'"]+)['"]/g,l=function(t){var i=new XMLHttpRequest;try{i.open("GET",t,!1);i.send(null)}catch(r){n.XDomainRequest&&(i=new XDomainRequest,i.open("GET",t,!1),i.send(null))}return i.responseText},a=function(t){for(var u,e,f=0;t.length>f;f++){if(u=t[f],"LINK"===u.tagName){if(null===u.getAttribute("data-skrollr-stylesheet"))continue;if(n.matchMedia&&(e=u.getAttribute("media"),e&&!matchMedia(e).matches))continue;i=l(u.href)}else i=u.textContent||u.innerText||u.innerHTML;i&&r.push(i)}r.reverse();for(var s={},h=[],c=[],o=0;r.length>o;o++)i=r[o],v(i,s),y(i,h),p(i,c);w(s,h);b(c)},v=function(n,t){u.lastIndex=0;for(var r,f,i,e;null!==(r=u.exec(n));)for(o.lastIndex=u.lastIndex,f=o.exec(n),s.lastIndex=0,e=t[r[1]]={};null!==(i=s.exec(f[1]));)e[i[1]]=i[2].replace(/[\n\r\t]/g,"")},c=function(n,t){for(var i,r=t;r--&&"{"!==n.charAt(r););for(i=r;i--&&"}"!==n.charAt(i-1););return n.substring(i,r).replace(/[\n\r\t]/g,"")},y=function(n,t){var i,r;for(f.lastIndex=0;null!==(i=f.exec(n));)r=c(n,f.lastIndex),t.push([r,i[1]])},p=function(n,t){var i,r;for(e.lastIndex=0;null!==(i=e.exec(n));)r=c(n,e.lastIndex),t.push([r,i[1],i[2]])},w=function(n,i){for(var s,c,r,a,u,f,l,e,o=0;i.length>o;o++)if(s=t.querySelectorAll(i[o][0])){c=n[i[o][1]];for(r in c)for(a=0===r.indexOf(h)?r.substring(h.length):r,u=0;s.length>u;u++)e=s[u],f="data-"+a,l=c[r],e.hasAttribute(f)&&(l+=e.getAttribute(f)),e.setAttribute(f,l)}},b=function(n){for(var i,r,e,o,u,f=0;n.length>f;f++)if(i=n[f],r=t.querySelectorAll(i[0]),e="data-"+i[1],o=i[2],r)for(u=0;r.length>u;u++)r[u].setAttribute(e,o)};a(t.querySelectorAll("link, style"))}(window,document),function(n,t,i){"use strict";function c(i){var u,e;if(f=t.documentElement,y=t.body,nu(),r=this,i=i||{},ct=i.constants||{},i.easing)for(u in i.easing)st[u]=i.easing[u];return ui=i.edgeStrategy||"set",p={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},it=i.forceHeight!==!1,it&&(fi=i.scale||1),lt=i.mobileDeceleration||vr,ri=i.smoothScrolling!==!1,at=i.smoothScrollingDuration||pr,k={targetTop:r.getScrollTop()},a=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||n.opera)})(),a?(l=t.getElementById(i.skrollrBody||yr),l&&lu(),ru(),w(f,[nt,pi],[ti])):w(f,[nt,yi],[ti]),r.refresh(),hr(n,"resize orientationchange",function(){var n=f.clientWidth,t=f.clientHeight;(t!==si||n!==oi)&&(si=t,oi=n,pt=!0)}),e=tu(),function o(){eu();sr=e(o)}(),r}var f,y,v={get:function(){return r},init:function(n){return r||new c(n)},VERSION:"0.6.29"},bt=Object.prototype.hasOwnProperty,e=n.Math,kt=n.getComputedStyle,ci="touchstart",li="touchmove",ai="touchcancel",vi="touchend",ft="skrollable",dt=ft+"-before",gt=ft+"-between",ni=ft+"-after",nt="skrollr",ti="no-"+nt,yi=nt+"-desktop",pi=nt+"-mobile",wi="linear",bi=1e3,vr=.004,yr="skrollr-body",pr=200,wr="start",ki="end",di="center",gi="bottom",g="___skrollable_id",ii=/^(?:input|textarea|button|select)$/i,br=/^\s+|\s+$/g,kr=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,dr=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,gr=/^(@?[a-z\-]+)\[(\w+)\]$/,nr=/-([a-z0-9_])/g,tr=function(n,t){return t.toUpperCase()},ir=/[\-+]?[\d]*\.?[\d]+/g,rr=/\{\?\}/g,ur=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,fr=/[a-z\-]+-gradient/g,s="",tt="",nu=function(){var r=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/,t,n;if(kt){t=kt(y,null);for(n in t)if(s=n.match(r)||+n==n&&t[n].match(r))break;if(!s)return s=tt="",i;s=s[0];"-"===s.slice(0,1)?(tt=s,s={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[s]):tt="-"+s.toLowerCase()+"-"}},tu=function(){var t=n.requestAnimationFrame||n[s.toLowerCase()+"RequestAnimationFrame"],i=ut();return(a||!t)&&(t=function(t){var r=ut()-i,u=e.max(0,1e3/60-r);return n.setTimeout(function(){i=ut();t()},u)}),t},iu=function(){var t=n.cancelAnimationFrame||n[s.toLowerCase()+"CancelAnimationFrame"];return(a||!t)&&(t=function(t){return n.clearTimeout(t)}),t},st={begin:function(){return 0},end:function(){return 1},linear:function(n){return n},quadratic:function(n){return n*n},cubic:function(n){return n*n*n},swing:function(n){return-e.cos(n*e.PI)/2+.5},sqrt:function(n){return e.sqrt(n)},outCubic:function(n){return e.pow(n-1,3)+1},bounce:function(n){var t;if(.5083>=n)t=3;else if(.8489>=n)t=9;else if(.96208>=n)t=27;else{if(!(.99981>=n))return 1;t=91}return 1-e.abs(3*e.cos(1.028*n*t)/t)}};c.prototype.refresh=function(n){var o,a,b=!1,v,rt,e,c,f,k,y,s,ut,d,nt,l,p;for(n===i?(b=!0,h=[],hi=0,n=t.getElementsByTagName("*")):n.length===i&&(n=[n]),o=0,a=n.length;a>o;o++){var u=n[o],tt=u,it=[],et=ri,ot=ui,st=!1;if(b&&g in u&&delete u[g],u.attributes){for(v=0,rt=u.attributes.length;rt>v;v++)if(e=u.attributes[v],"data-anchor-target"!==e.name)"data-smooth-scrolling"!==e.name?"data-edge-strategy"!==e.name?"data-emit-events"!==e.name?(c=e.name.match(kr),null!==c&&(f={props:e.value,element:u,eventType:e.name.replace(nr,tr)},it.push(f),k=c[1],k&&(f.constant=k.substr(1)),y=c[2],/p$/.test(y)?(f.isPercentage=!0,f.offset=(0|y.slice(0,-1))/100):f.offset=0|y,s=c[3],ut=c[4]||s,s&&s!==wr&&s!==ki?(f.mode="relative",f.anchors=[s,ut]):(f.mode="absolute",s===ki?f.isEnd=!0:f.isPercentage||(f.offset=f.offset*fi)))):st=!0:ot=e.value:et="off"!==e.value;else if(tt=t.querySelector(e.value),null===tt)throw'Unable to find anchor target "'+e.value+'"';it.length&&(!b&&g in u?(l=u[g],d=h[l].styleAttr,nt=h[l].classAttr):(l=u[g]=hi++,d=u.style.cssText,nt=lr(u)),h[l]={element:u,styleAttr:d,classAttr:nt,anchorTarget:tt,keyFrames:it,smoothScrolling:et,edgeStrategy:ot,emitEvents:st,lastFrameIndex:-1},w(u,[ft],[]))}}for(cr(),o=0,a=n.length;a>o;o++)p=h[n[o][g]],p!==i&&(ou(p),hu(p));return r};c.prototype.relativeToAbsolute=function(n,t,i){var o=f.clientHeight,e=n.getBoundingClientRect(),u=e.top,s=e.bottom-e.top;return t===gi?u-=o:t===di&&(u-=o/2),i===gi?u+=s:i===di&&(u+=s/2),u+=r.getScrollTop(),0|u+.5};c.prototype.animateTo=function(n,t){t=t||{};var f=ut(),e=r.getScrollTop();return u={startTop:e,topDiff:n-e,targetTop:n,duration:t.duration||bi,startTime:f,endTime:f+(t.duration||bi),easing:st[t.easing||wi],done:t.done},u.topDiff||(u.done&&u.done.call(r,!1),u=i),r};c.prototype.stopAnimateTo=function(){u&&u.done&&u.done.call(r,!0);u=i};c.prototype.isAnimatingTo=function(){return!!u};c.prototype.isMobile=function(){return a};c.prototype.setScrollTop=function(t,i){return rt=i===!0,a?ot=e.min(e.max(t,0),o):n.scrollTo(0,t),r};c.prototype.getScrollTop=function(){return a?ot:n.pageYOffset||f.scrollTop||y.scrollTop||0};c.prototype.getMaxScrollTop=function(){return o};c.prototype.on=function(n,t){return p[n]=t,r};c.prototype.off=function(n){return delete p[n],r};c.prototype.destroy=function(){var e=iu(),n,t;for(e(sr),vu(),w(f,[ti],[nt,yi,pi]),n=0,t=h.length;t>n;n++)ht(h[n].element);f.style.overflow=y.style.overflow="";f.style.height=y.style.height="";l&&v.setStyle(l,"transform","none");r=i;l=i;p=i;it=i;o=0;fi=1;ct=i;lt=i;b="down";d=-1;oi=0;si=0;pt=!1;u=i;ri=i;at=i;k=i;rt=i;hi=0;ui=i;a=!1;ot=0;et=i};var ru=function(){var s,p,w,u,h,l,a,v,d,c,b,k;hr(f,[ci,li,ai,vi].join(" "),function(n){var y=n.changedTouches[0],tt,g;for(u=n.target;3===u.nodeType;)u=u.parentNode;switch(h=y.clientY,l=y.clientX,c=n.timeStamp,ii.test(u.tagName)||n.preventDefault(),n.type){case ci:s&&s.blur();r.stopAnimateTo();s=u;p=a=h;w=l;d=c;break;case li:ii.test(u.tagName)&&t.activeElement!==u&&n.preventDefault();v=h-a;k=c-b;r.setScrollTop(ot-v,!0);a=h;b=c;break;default:case ai:case vi:var ut=p-h,ft=w-l,et=ft*ft+ut*ut;if(49>et){ii.test(s.tagName)||(s.focus(),tt=t.createEvent("MouseEvents"),tt.initMouseEvent("click",!0,!0,n.view,1,y.screenX,y.screenY,y.clientX,y.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,0,null),s.dispatchEvent(tt));return}s=i;g=v/k;g=e.max(e.min(g,3),-3);var nt=e.abs(g/lt),it=g*nt+.5*lt*nt*nt,f=r.getScrollTop()-it,rt=0;f>o?(rt=(o-f)/it,f=o):0>f&&(rt=-f/it,f=0);nt*=1-rt;r.animateTo(0|f+.5,{easing:"outCubic",duration:nt})}});n.scrollTo(0,0);f.style.overflow=y.style.overflow="hidden"},uu=function(){for(var i,v,p,s,t,l,n,c,a,b=f.clientHeight,w=yu(),u=0,y=h.length;y>u;u++)for(i=h[u],v=i.element,p=i.anchorTarget,s=i.keyFrames,t=0,l=s.length;l>t;t++)n=s[t],c=n.offset,a=w[n.constant]||0,n.frame=c,n.isPercentage&&(c*=b,n.frame=c),"relative"===n.mode&&(ht(v),n.frame=r.relativeToAbsolute(p,n.anchors[0],n.anchors[1])-c,ht(v,!0)),n.frame+=a,it&&!n.isEnd&&n.frame>o&&(o=n.frame);for(o=e.max(o,pu()),u=0,y=h.length;y>u;u++){for(i=h[u],s=i.keyFrames,t=0,l=s.length;l>t;t++)n=s[t],a=w[n.constant]||0,n.isEnd&&(n.frame=o-n.offset+a);i.keyFrames.sort(wu)}},fu=function(n,t){for(var a,f,e,y,p,k=0,rt=h.length;rt>k;k++){var i,o,r=h[k],u=r.element,c=r.smoothScrolling?n:t,s=r.keyFrames,d=s.length,g=s[0],nt=s[s.length-1],l=g.frame>c,ut=c>nt.frame,et=l?g:nt,tt=r.emitEvents,it=r.lastFrameIndex;if(l||ut){if(l&&-1===r.edge||ut&&1===r.edge)continue;switch(l?(w(u,[dt],[ni,gt]),tt&&it>-1&&(vt(u,g.eventType,b),r.lastFrameIndex=-1)):(w(u,[ni],[dt,gt]),tt&&d>it&&(vt(u,nt.eventType,b),r.lastFrameIndex=d)),r.edge=l?-1:1,r.edgeStrategy){case"reset":ht(u);continue;case"ease":c=et.frame;break;default:case"set":a=et.props;for(i in a)bt.call(a,i)&&(o=or(a[i].value),0===i.indexOf("@")?u.setAttribute(i.substr(1),o):v.setStyle(u,i,o));continue}}else 0!==r.edge&&(w(u,[ft,gt],[dt,ni]),r.edge=0);for(f=0;d-1>f;f++)if(c>=s[f].frame&&s[f+1].frame>=c){e=s[f];y=s[f+1];for(i in e.props)bt.call(e.props,i)&&(p=(c-e.frame)/(y.frame-e.frame),p=e.props[i].easing(p),o=cu(e.props[i].value,y.props[i].value,p),o=or(o),0===i.indexOf("@")?u.setAttribute(i.substr(1),o):v.setStyle(u,i,o));tt&&it!==f&&("down"===b?vt(u,e.eventType,b):vt(u,y.eventType,b),r.lastFrameIndex=f);break}}},eu=function(){var e,f,n,t,h,s,c;pt&&(pt=!1,cr());n=r.getScrollTop();t=ut();u?(t>=u.endTime?(n=u.targetTop,e=u.done,u=i):(f=u.easing((t-u.startTime)/u.duration),n=0|u.startTop+f*u.topDiff),r.setScrollTop(n,!0)):rt||(h=k.targetTop-n,h&&(k={startTop:d,topDiff:n-d,targetTop:n,startTime:ei,endTime:ei+at}),k.endTime>=t&&(f=st.sqrt((t-k.startTime)/at),n=0|k.startTop+f*k.topDiff));(a&&l&&v.setStyle(l,"transform","translate(0, "+-ot+"px) "+et),rt||d!==n)&&(b=n>d?"down":d>n?"up":b,rt=!1,s={curTop:n,lastTop:d,maxTop:o,direction:b},c=p.beforerender&&p.beforerender.call(r,s),c!==!1&&(fu(n,r.getScrollTop()),d=n,p.render&&p.render.call(r,s)),e&&e.call(r,!1));ei=t},ou=function(n){for(var t,i,r,u,f,e,o=0,s=n.keyFrames.length;s>o;o++){for(f=n.keyFrames[o],e={};null!==(u=dr.exec(f.props));)r=u[1],i=u[2],t=r.match(gr),null!==t?(r=t[1],t=t[2]):t=wi,i=i.indexOf("!")?su(i):[i.slice(1)],e[r]={value:i,easing:st[t]};f.props=e}},su=function(n){var t=[];return ur.lastIndex=0,n=n.replace(ur,function(n){return n.replace(ir,function(n){return 100*(n/255)+"%"})}),tt&&(fr.lastIndex=0,n=n.replace(fr,function(n){return tt+n})),n=n.replace(ir,function(n){return t.push(+n),"{?}"}),t.unshift(n),t},hu=function(n){for(var i={},t=0,r=n.keyFrames.length;r>t;t++)er(n.keyFrames[t],i);for(i={},t=n.keyFrames.length-1;t>=0;t--)er(n.keyFrames[t],i)},er=function(n,t){var i;for(i in t)bt.call(n.props,i)||(n.props[i]=t[i]);for(i in n.props)t[i]=n.props[i]},cu=function(n,t,i){var r,f=n.length,u;if(f!==t.length)throw"Can't interpolate between \""+n[0]+'" and "'+t[0]+'"';for(u=[n[0]],r=1;f>r;r++)u[r]=n[r]+(t[r]-n[r])*i;return u},or=function(n){var t=1;return rr.lastIndex=0,n[0].replace(rr,function(){return n[t++]})},ht=function(n,t){n=[].concat(n);for(var i,r,u=0,f=n.length;f>u;u++)r=n[u],i=h[r[g]],i&&(t?(r.style.cssText=i.dirtyStyleAttr,w(r,i.dirtyClassAttr)):(i.dirtyStyleAttr=r.style.cssText,i.dirtyClassAttr=lr(r),r.style.cssText=i.styleAttr,w(r,i.classAttr)))},lu=function(){et="translateZ(0)";v.setStyle(l,"transform",et);var n=kt(l),t=n.getPropertyValue("transform"),i=n.getPropertyValue(tt+"transform"),r=t&&"none"!==t||i&&"none"!==i;r||(et="")};v.setStyle=function(n,t,i){var r=n.style;if(t=t.replace(nr,tr).replace("-",""),"zIndex"===t)r[t]=isNaN(i)?i:""+(0|i);else if("float"===t)r.styleFloat=r.cssFloat=i;else try{s&&(r[s+t.slice(0,1).toUpperCase()+t.slice(1)]=i);r[t]=i}catch(u){}};var r,h,l,p,it,ct,lt,u,ri,at,k,rt,ui,et,sr,hr=v.addEvent=function(t,i,r){var o=function(t){return t=t||n.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1;t.defaultPrevented=!0}),r.call(this,t)},u,f,e;for(i=i.split(" "),f=0,e=i.length;e>f;f++)u=i[f],t.addEventListener?t.addEventListener(u,r,!1):t.attachEvent("on"+u,o),wt.push({element:t,name:u,listener:r})},au=v.removeEvent=function(n,t,i){t=t.split(" ");for(var r=0,u=t.length;u>r;r++)n.removeEventListener?n.removeEventListener(t[r],i,!1):n.detachEvent("on"+t[r],i)},vu=function(){for(var n,t=0,i=wt.length;i>t;t++)n=wt[t],au(n.element,n.name,n.listener);wt=[]},vt=function(n,t,i){p.keyframe&&p.keyframe.call(r,n,t,i)},cr=function(){var n=r.getScrollTop();o=0;it&&!a&&(y.style.height="");uu();it&&!a&&(y.style.height=o+f.clientHeight+"px");a?r.setScrollTop(e.min(r.getScrollTop(),o)):r.setScrollTop(n,!0);rt=!0},yu=function(){var t,n,u=f.clientHeight,i={};for(t in ct)n=ct[t],"function"==typeof n?n=n.call(r):/p$/.test(n)&&(n=n.slice(0,-1)/100*u),i[t]=n;return i},pu=function(){var n,t=0;return l&&(t=e.max(l.offsetHeight,l.scrollHeight)),n=e.max(t,y.scrollHeight,y.offsetHeight,f.scrollHeight,f.offsetHeight,f.clientHeight),n-f.clientHeight},lr=function(t){var i="className";return n.SVGElement&&t instanceof n.SVGElement&&(t=t[i],i="baseVal"),t[i]},w=function(t,r,u){var e="className",o,h;if(n.SVGElement&&t instanceof n.SVGElement&&(t=t[e],e="baseVal"),u===i)return t[e]=r,i;for(var f=t[e],s=0,c=u.length;c>s;s++)f=yt(f).replace(yt(u[s])," ");for(f=ar(f),o=0,h=r.length;h>o;o++)-1===yt(f).indexOf(yt(r[o]))&&(f+=" "+r[o]);t[e]=ar(f)},ar=function(n){return n.replace(br,"")},yt=function(n){return" "+n+" "},ut=Date.now||function(){return+new Date},wu=function(n,t){return n.frame-t.frame},o=0,fi=1,b="down",d=-1,ei=ut(),oi=0,si=0,pt=!1,hi=0,a=!1,ot=0,wt=[];"function"==typeof define&&define.amd?define([],function(){return v}):"undefined"!=typeof module&&module.exports?module.exports=v:n.skrollr=v}(window,document),function(n){n.fn.snapHeights=function(t){var i=this,u=n.extend({tolerance:100,maxIterations:20,resetIterationsTimeoutLimit:2e3},t),r=0,f=null,o=function(){r=0},e=function(t){var s,h;if(i=i.filter(function(){return n(this).is(":visible")}),r<u.maxIterations){if(t!=!0&&i.css("height","auto").removeClass("height-adjusted"),window.matchMedia("(max-width: 480px)").matches)return;s=i.map(function(t,i){return{i:t,bottom:n(i).offset().top+n(i).height(),noAdjust:n(i).hasClass("no-height-adjust")}});s=s.sort(function(n,t){return t.bottom-n.bottom});h=0;s.each(function(t,r){var e,f,o;t>0&&!s[t].noAdjust&&(e=s[t-1].bottom,f=e-r.bottom,f>=1&&f<u.tolerance?(o=n(i[r.i]).height()+f,n(i[r.i]).css("height",o+"px").addClass("height-adjusted"),r.bottom=e,h++):n(i[r.i]).css("height",n(i[r.i]).height()+"px"))});window.console&&console.log("Snap-height: Iteration: "+r+" (Number of adjustments: "+h+")");r++;clearTimeout(f);f=setTimeout(o,u.resetIterationsTimeoutLimit);h>0&&e(!0)}};return e(),this}}(jQuery);typeof String.prototype.startsWith!="function"&&(String.prototype.startsWith=function(n){return this.slice(0,n.length)==n});$(function(){IAR.Products.Init()});var IAR=IAR||{},suppUrl="http://supp.iar.com/Updates/?sfkey=",key=null;IAR.Ajax={SalesForce:function(n,t,i,r,u,f,e){$.ajax({type:"GET",url:"/api/licensing/downloadkey?licenseNumber="+n+"&networkLicense="+t+"&users="+i+"&supportType="+r+"&supportEndDate="+u+"&product="+f+"&country="+e,dataType:"json",success:function(n){window.location.href=suppUrl+n},error:function(){}})}};IAR.Products={Customer1:function(n,t,i){var r,u,f,e;r=!0;u=1e3;f="SUA";e="Germany";IAR.Ajax.SalesForce(n,r,u,f,i,t,e)},Init:function(){var n=$("table.customerdownload"),t=n.find("tr");t.each(function(){var n=$(this),t;n.click(IAR.Products.Click);t=n.find("td").last();$(t).hide()})},Click:function(){var n=$(this),t=n.find("td").eq(3).text(),i=n.find("td").eq(0).text(),r=n.find("td").eq(4).text();IAR.Products.Customer1(t,i,r)}};$(document).ready(function(){prettyPrint();$("input").iCheck({checkboxClass:"icheckbox_flat-yellow",radioClass:"iradio_flat-yellow"});$(".selectpicker").selectpicker({style:"form-control",caretHTML:'<i class="fa fa-chevron-down fa-lg">',size:5});$(".owl-carousel").each(function(){var n=$(this).data("single"),t=$(this).data("items"),i=$(this).data("showpage");$(this).owlCarousel({items:t,singleItem:n,pagination:i,navigation:!1,slideSpeed:300,paginationSpeed:400,autoPlay:!1})});$(window).on("resize load",function(){$(".snap-height .panel:not(.ignore-height-adjust)").snapHeights()});$(document).on("mouseenter",".auto-tooltip",function(){var n=$(this);this.offsetWidth<this.scrollWidth&&!n.attr("title")&&(n.tooltip({title:n.text(),placement:"bottom",container:"body"}),n.tooltip("show"))});var n=skrollr.init({forceHeight:!1,smoothScrollingDuration:20});if(n.isMobile())n.destroy();else $(window).on("load",skrollr.get().refresh);$(document).on("click",".reportClick",function(){ga("send","event","report","click")});setTimeout(function(){var n=$("#iyp__spacer_top").height();n&&$("#navbar").css("margin-top",n)},2e3);Konami(function(){$("body").prepend('<canvas class="snow" style="position: absolute;z-index: 200;" width="100%" height="100%"><\/canvas>');$("canvas.snow").let_it_snow({speed:1,interaction:!0,size:20,count:40,windPower:0,image:"Content/images/chip.png"});ga("send","event","konami","click")})}),function(n,t,i){"use strict";function y(n){return function(){var r=arguments[0],f="["+(n?n+":":"")+r+"] ",e=arguments[1],u=arguments,o=function(n){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):typeof n=="undefined"?"undefined":typeof n!="string"?JSON.stringify(n):n},t,i;for(t=f+e.replace(/\{\d+\}/g,function(n){var i=+n.slice(1,-1),t;return i+2<u.length?(t=u[i+2],typeof t=="function")?t.toString().replace(/ ?\{[\s\S]*$/,""):typeof t=="undefined"?"undefined":typeof t!="string"?ot(t):t:n}),t=t+"\nhttp://errors.angularjs.org/1.2.28/"+(n?n+"/":"")+r,i=2;i<arguments.length;i++)t=t+(i==2?"?":"&")+"p"+(i-2)+"="+encodeURIComponent(o(arguments[i]));return new Error(t)}}function bi(n){if(n==null||si(n))return!1;var t=n.length;return n.nodeType===1&&t?!0:e(n)||o(n)||t===0||typeof t=="number"&&t>0&&t-1 in n}function r(n,t,i){var u;if(n)if(c(n))for(u in n)u!="prototype"&&u!="length"&&u!="name"&&(!n.hasOwnProperty||n.hasOwnProperty(u))&&t.call(i,n[u],u);else if(o(n)||bi(n))for(u=0;u<n.length;u++)t.call(i,n[u],u);else if(n.forEach&&n.forEach!==r)n.forEach(t,i);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u);return n}function df(n){var i=[],t;for(t in n)n.hasOwnProperty(t)&&i.push(t);return i.sort()}function ls(n,t,i){for(var r=df(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function gf(n){return function(t,i){n(i,t)}}function ar(){for(var n=pt.length,t;n;){if(n--,t=pt[n].charCodeAt(0),t==57)return pt[n]="A",pt.join("");if(t==90)pt[n]="0";else return pt[n]=String.fromCharCode(t+1),pt.join("")}return pt.unshift("0"),pt.join("")}function ne(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function h(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),ne(n,t),n}function k(n){return parseInt(n,10)}function te(n,t){return h(new(h(function(){},{prototype:n})),t)}function s(){}function ft(n){return n}function nt(n){return function(){return n}}function l(n){return typeof n=="undefined"}function f(n){return typeof n!="undefined"}function a(n){return n!=null&&typeof n=="object"}function e(n){return typeof n=="string"}function vr(n){return typeof n=="number"}function wt(n){return oi.call(n)==="[object Date]"}function c(n){return typeof n=="function"}function yr(n){return oi.call(n)==="[object RegExp]"}function si(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function pr(n){return n&&n.$evalAsync&&n.$watch}function as(n){return oi.call(n)==="[object File]"}function vs(n){return oi.call(n)==="[object Blob]"}function wr(n){return n&&c(n.then)}function ys(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function ps(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function ws(n,t){return ki(n,t)!=-1}function ki(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1}function di(n,t){var i=ki(n,t);return i>=0&&n.splice(i,1),t}function hi(n,t,i,u){var h,f,e,c,s;if(si(n)||pr(n))throw fr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(n===t)throw fr("cpi","Can't copy! Source and destination are identical.");if(i=i||[],u=u||[],a(n)){if(h=ki(i,n),h!==-1)return u[h];i.push(n);u.push(t)}if(o(n))for(t.length=0,e=0;e<n.length;e++)f=hi(n[e],null,i,u),a(n[e])&&(i.push(n[e]),u.push(f)),t.push(f);else{c=t.$$hashKey;o(t)?t.length=0:r(t,function(n,i){delete t[i]});for(s in n)f=hi(n[s],null,i,u),a(n[s])&&(i.push(n[s]),u.push(f)),t[s]=f;ne(t,c)}}else t=n,n&&(o(n)?t=hi(n,[],i,u):wt(n)?t=new Date(n.getTime()):yr(n)?(t=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):a(n)&&(t=hi(n,{},i,u)));return t}function et(n,t){var r,i;if(o(n))for(t=t||[],r=0;r<n.length;r++)t[r]=n[r];else if(a(n)){t=t||{};for(i in n)fu.call(n,i)&&(i.charAt(0)!=="$"||i.charAt(1)!=="$")&&(t[i]=n[i])}return t||n}function ti(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var f=typeof n,s=typeof t,e,r,u;if(f==s&&f=="object")if(o(n)){if(!o(t))return!1;if((e=n.length)==t.length){for(r=0;r<e;r++)if(!ti(n[r],t[r]))return!1;return!0}}else{if(wt(n))return wt(t)?isNaN(n.getTime())&&isNaN(t.getTime())||n.getTime()===t.getTime():!1;if(yr(n)&&yr(t))return n.toString()==t.toString();if(pr(n)||pr(t)||si(n)||si(t)||o(t))return!1;u={};for(r in n)if(r.charAt(0)!=="$"&&!c(n[r])){if(!ti(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&r.charAt(0)!=="$"&&t[r]!==i&&!c(t[r]))return!1;return!0}return!1}function au(n,t,i){return n.concat(ou.call(t,i))}function vu(n,t){return ou.call(n,t||0)}function yu(n,t){var i=arguments.length>2?vu(arguments,2):[];return!c(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(ou.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function bs(n,r){var u=r;return typeof n=="string"&&n.charAt(0)==="$"?u=i:si(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":pr(r)&&(u="$SCOPE"),u}function ot(n,t){return typeof n=="undefined"?i:JSON.stringify(n,bs,t?"  ":null)}function ie(n){return e(n)?JSON.parse(n):n}function gi(n){if(typeof n=="function")n=!0;else if(n&&n.length!==0){var t=v(""+n);n=!(t=="f"||t=="0"||t=="false"||t=="no"||t=="n"||t=="[]")}else n=!1;return n}function st(n){n=u(n).clone();try{n.empty()}catch(i){}var t=u("<div>").append(n).html();try{return n[0].nodeType===3?v(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+v(t)})}catch(i){return v(t)}}function re(n){try{return decodeURIComponent(n)}catch(t){}}function ue(n){var i={},u,t;return r((n||"").split("&"),function(n){if(n&&(u=n.replace(/\+/g,"%20").split("="),t=re(u[0]),f(t))){var r=f(u[1])?re(u[1]):!0;fu.call(i,t)?o(i[t])?i[t].push(r):i[t]=[i[t],r]:i[t]=r}}),i}function pu(n){var t=[];return r(n,function(n,i){o(n)?r(n,function(n){t.push(ii(i,!0)+(n===!0?"":"="+ii(n,!0)))}):t.push(ii(i,!0)+(n===!0?"":"="+ii(n,!0)))}),t.length?t.join("&"):""}function br(n){return ii(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ii(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function ks(n,i){function f(n){n&&s.push(n)}var s=[n],u,e,o=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(o,function(i){o[i]=!0;f(t.getElementById(i));i=i.replace(":","\\:");n.querySelectorAll&&(r(n.querySelectorAll("."+i),f),r(n.querySelectorAll("."+i+"\\:"),f),r(n.querySelectorAll("["+i+"]"),f))});r(s,function(n){if(!u){var i=" "+n.className+" ",t=h.exec(i);t?(u=n,e=(t[2]||"").replace(/\s+/g,",")):r(n.attributes,function(t){!u&&o[t.name]&&(u=n,e=t.value)})}});u&&i(u,e?[e]:[])}function fe(i,f){var e=function(){var r,n;if(i=u(i),i.injector()){r=i[0]===t?"document":st(i);throw fr("btstrpd","App Already Bootstrapped with this Element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"));}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=ae(f),n.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},o=/^NG_DEFER_BOOTSTRAP!/;if(n&&!o.test(n.name))return e();n.name=n.name.replace(o,"");er.resumeBootstrap=function(n){r(n,function(n){f.push(n)});e()}}function kr(n,t){return t=t||"_",n.replace(yo,function(n,i){return(i?t:"")+n.toLowerCase()})}function ds(){ni=n.jQuery;ni&&ni.fn.on?(u=ni,h(ni.fn,{scope:ei.scope,isolateScope:ei.isolateScope,controller:ei.controller,injector:ei.injector,inheritedData:ei.inheritedData}),ku("remove",!0,!0,!1),ku("empty",!1,!1,!1),ku("html",!1,!1,!0)):u=w;er.element=u}function wu(n,t,i){if(!n)throw fr("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function nr(n,t,i){return i&&o(n)&&(n=n[n.length-1]),wu(c(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function ri(n,t){if(n==="hasOwnProperty")throw fr("badname","hasOwnProperty is not a valid {0} name",t);}function ee(n,t,i){var r;if(!t)return n;var u=t.split("."),f,e=n,o=u.length;for(r=0;r<o;r++)f=u[r],n&&(n=(e=n)[f]);return!i&&c(n)?yu(e,n):n}function bu(n){var i=n[0],f=n[n.length-1],t,r;if(i===f)return u(i);t=i;r=[t];do{if(t=t.nextSibling,!t)break;r.push(t)}while(t!==f);return u(r)}function gs(n){function t(n,t,i){return n[t]||(n[t]=i())}var r=y("$injector"),u=y("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||y,t(i,"module",function(){var n={};return function(i,f,e){var o=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return o(i,"module"),f&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function n(n,i,r){return function(){return t[r||"push"]([n,i,arguments]),s}}if(!f)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],u=[],o=n("$injector","invoke"),s={_invokeQueue:t,_runBlocks:u,requires:f,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:o,run:function(n){return u.push(n),this}};return e&&o(e),s})}})}function nh(t){h(t,{bootstrap:fe,copy:hi,extend:h,equals:ti,element:u,forEach:r,injector:ae,noop:s,bind:yu,toJson:ot,fromJson:ie,identity:ft,isUndefined:l,isDefined:f,isString:e,isFunction:c,isObject:a,isNumber:vr,isElement:ys,isArray:o,version:po,isDate:wt,lowercase:v,uppercase:fi,callbacks:{counter:0},$$minErr:y,$$csp:vi});or=gs(n);try{or("ngLocale")}catch(i){or("ngLocale",[]).provider("$locale",gh)}or("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:cc});n.provider("$compile",ve).directive({a:rs,input:ss,textarea:ss,form:la,script:ry,select:ey,style:sy,option:oy,ngBind:tv,ngBindHtml:rv,ngBindTemplate:iv,ngClass:uv,ngClassEven:ev,ngClassOdd:fv,ngCloak:ov,ngController:sv,ngForm:aa,ngHide:kv,ngIf:cv,ngInclude:lv,ngInit:vv,ngNonBindable:yv,ngPluralize:pv,ngRepeat:wv,ngShow:bv,ngStyle:dv,ngSwitch:gv,ngSwitchWhen:ny,ngSwitchDefault:ty,ngOptions:fy,ngTransclude:iy,ngModel:ba,ngList:da,ngChange:ka,required:hs,ngRequired:hs,ngValue:nv}).directive({ngInclude:av}).directive(eu).directive(cs);n.provider({$anchorScroll:fh,$animate:bo,$browser:sh,$cacheFactory:hh,$controller:lh,$document:ah,$exceptionHandler:vh,$filter:eo,$interpolate:kh,$interval:dh,$http:yh,$httpBackend:wh,$location:tc,$log:ic,$parse:fc,$rootScope:hc,$q:ec,$sce:yc,$sceDelegate:vc,$sniffer:pc,$templateCache:ch,$timeout:wc,$window:bc,$$rAF:sc,$$asyncCallback:eh})}])}function th(){return++al}function tr(n){return n.replace(vl,function(n,t,i,r){return r?i.toUpperCase():i}).replace(yl,"Moz$1")}function ku(n,t,i,r){function e(n){var s=i&&n?[this.filter(n)]:[this],h=t,c,e,a,l,o,v,y;if(!r||n!=null)while(s.length)for(c=s.shift(),e=0,a=c.length;e<a;e++)for(l=u(c[e]),h?l.triggerHandler("$destroy"):h=!h,o=0,v=(y=l.children()).length;o<v;o++)s.push(ni(y[o]));return f.apply(this,arguments)}var f=ni.fn[n];f=f.$original||f;e.$original=f;ni.fn[n]=e}function du(n){return!wl.test(n)}function ih(n,t){var i,o,r,u=t.createDocumentFragment(),e=[],s,f,h;if(du(n))e.push(t.createTextNode(n));else{for(i=u.appendChild(t.createElement("div")),o=(bl.exec(n)||["",""])[1].toLowerCase(),r=ut[o]||ut._default,i.innerHTML="<div>&#160;<\/div>"+r[1]+n.replace(kl,"<$1><\/$2>")+r[2],i.removeChild(i.firstChild),s=r[0];s--;)i=i.lastChild;for(f=0,h=i.childNodes.length;f<h;++f)e.push(i.childNodes[f]);i=u.firstChild;i.textContent=""}return u.textContent="",u.innerHTML="",e}function rh(n,i){i=i||t;var r;return(r=pl.exec(n))?[i.createElement(r[1])]:ih(n,i)}function w(n){if(n instanceof w)return n;if(e(n)&&(n=g(n)),!(this instanceof w)){if(e(n)&&n.charAt(0)!="<")throw wf("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new w(n)}if(e(n)){uf(this,rh(n));var i=u(t.createDocumentFragment());i.append(this)}else uf(this,n)}function gu(n){return n.cloneNode(!0)}function ci(n){nf(n);for(var t=0,i=n.childNodes||[];t<i.length;t++)ci(i[t])}function oe(n,t,i,u){if(f(u))throw wf("offargs","jqLite#off() does not support the `selector` argument");var e=lt(n,"events"),o=lt(n,"handle");o&&(l(t)?r(e,function(t,i){hr(n,i,t);delete e[i]}):r(t.split(" "),function(t){l(i)?(hr(n,t,e[t]),delete e[t]):di(e[t]||[],i)}))}function nf(n,t){var u=n.ng339,r=sr[u];if(r){if(t){delete sr[u].data[t];return}r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),oe(n));delete sr[u];n.ng339=i}}function lt(n,t,i){var u=n.ng339,r=sr[u||-1];if(f(i))r||(n.ng339=u=th(),r=sr[u]={}),r[t]=i;else return r&&r[t]}function tf(n,t,i){var r=lt(n,"data"),u=f(i),e=!u&&f(t),o=e&&!a(t);if(r||o||lt(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];h(r,t)}else return r}function rf(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function dr(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",g((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+g(t)+" "," ")))})}function gr(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=g(n);i.indexOf(" "+n+" ")===-1&&(i+=n+" ")});n.setAttribute("class",g(i))}}function uf(n,t){if(t){t=!t.nodeName&&f(t.length)&&!si(t)?t:[t];for(var i=0;i<t.length;i++)n.push(t[i])}}function se(n,t){return nu(n,"$"+(t||"ngController")+"Controller")}function nu(n,t,r){var e,f,s;for(n.nodeType==9&&(n=n.documentElement),e=o(t)?t:[t];n;){for(f=0,s=e.length;f<s;f++)if((r=u.data(n,e[f]))!==i)return r;n=n.parentNode||n.nodeType===11&&n.host}}function he(n){for(var t=0,i=n.childNodes;t<i.length;t++)ci(i[t]);while(n.firstChild)n.removeChild(n.firstChild)}function ce(n,t){var i=rr[t.toLowerCase()];return i&&lf[n.nodeName]&&i}function uh(n,i){var u=function(u,f){var e,o;u.preventDefault||(u.preventDefault=function(){u.returnValue=!1});u.stopPropagation||(u.stopPropagation=function(){u.cancelBubble=!0});u.target||(u.target=u.srcElement||t);l(u.defaultPrevented)&&(e=u.preventDefault,u.preventDefault=function(){u.defaultPrevented=!0;e.call(u)},u.defaultPrevented=!1);u.isDefaultPrevented=function(){return u.defaultPrevented||u.returnValue===!1};o=et(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});p<=8?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function li(n,t){var u=typeof n,r;return u=="function"||u=="object"&&n!==null?typeof(r=n.$$hashKey)=="function"?r=n.$$hashKey():r===i&&(r=n.$$hashKey=(t||ar)()):r=n,u+":"+r}function ir(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function le(n){var t,u,f,i;return typeof n=="function"?(t=n.$inject)||(t=[],n.length&&(u=n.toString().replace(ia,""),f=u.match(gl),r(f[1].split(na),function(n){n.replace(ta,function(n,i,r){t.push(r)})})),n.$inject=t):o(n)?(i=n.length-1,nr(n[i],"fn"),t=n.slice(0,i)):nr(n,"fn",!0),t}function ae(n){function i(n){return function(t,i){if(a(t))r(t,gf(n));else return n(t,i)}}function w(n,i){if(ri(n,"service"),(c(i)||o(i))&&(i=t.instantiate(i)),!i.$get)throw cr("pget","Provider '{0}' must define $get factory method.",n);return u[n+h]=i}function v(n,t){return w(n,{$get:t})}function g(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}function tt(n,t){return v(n,nt(t))}function it(n,t){ri(n,"constant");u[n]=t;p[n]=t}function rt(n,i){var r=t.get(n+h),u=r.$get;r.$get=function(){var n=f.invoke(u,r);return f.invoke(i,null,{$delegate:n})}}function b(n){var i=[],u,s,f,h;return r(n,function(n){if(!d.get(n)){d.put(n,!0);try{if(e(n))for(u=or(n),i=i.concat(b(u.requires)).concat(u._runBlocks),s=u._invokeQueue,f=0,h=s.length;f<h;f++){var l=s[f],a=t.get(l[0]);a[l[1]].apply(a,l[2])}else c(n)?i.push(t.invoke(n)):o(n)?i.push(t.invoke(n)):nr(n,"module")}catch(r){o(n)&&(n=n[n.length-1]);r.message&&r.stack&&r.stack.indexOf(r.message)==-1&&(r=r.message+"\n"+r.stack);throw cr("modulerr","Failed to instantiate module {0} due to:\n{1}",n,r.stack||r.message||r);}}}),i}function k(n,t){function i(i){if(n.hasOwnProperty(i)){if(n[i]===y)throw cr("cdep","Circular dependency found: {0}",i+" <- "+l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=y,n[i]=t(i)}catch(r){n[i]===y&&delete n[i];throw r;}finally{l.shift()}}function r(n,t,r){for(var e=[],s=le(n),u,f=0,h=s.length;f<h;f++){if(u=s[f],typeof u!="string")throw cr("itkn","Incorrect injection token! Expected service name as string, got {0}",u);e.push(r&&r.hasOwnProperty(u)?r[u]:i(u))}return o(n)&&(n=n[h]),n.apply(t,e)}function f(n,t){var f=function(){},u,i;return f.prototype=(o(n)?n[n.length-1]:n).prototype,u=new f,i=r(n,u,t),a(i)||c(i)?i:u}return{invoke:r,instantiate:f,get:i,annotate:le,has:function(t){return u.hasOwnProperty(t+h)||n.hasOwnProperty(t)}}}var y={},h="Provider",l=[],d=new ir([],!0),u={$provide:{provider:i(w),factory:i(v),service:i(g),value:i(tt),constant:i(it),decorator:rt}},t=u.$injector=k(u,function(){throw cr("unpr","Unknown provider: {0}",l.join(" <- "));}),p={},f=p.$injector=k(p,function(n){var i=t.get(n+h);return f.invoke(i.$get,i)});return r(b(n),function(n){f.invoke(n||s)}),f}function fh(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,u){function o(n){var t=null;return r(n,function(n){t||v(n.nodeName)!=="a"||(t=n)}),t}function f(){var n=i.hash(),r;n?(r=e.getElementById(n))?r.scrollIntoView():(r=o(e.getElementsByName(n)))?r.scrollIntoView():n==="top"&&t.scrollTo(0,0):t.scrollTo(0,0)}var e=t.document;return n&&u.$watch(function(){return i.hash()},function(){u.$evalAsync(f)}),f}]}function eh(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function oh(n,t,f,o){function nt(n){try{n.apply(null,vu(arguments,1))}finally{if(a--,a===0)while(k.length)try{k.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(d,function(n){n()});et=t(i,n)})()}function y(){v!=h.url()&&(v=h.url(),r(tt,function(n){n(h.url())}))}var h=this,p=t[0],c=n.location,w=n.history,ft=n.setTimeout,ct=n.clearTimeout,b={},a,k,d,et,tt,it;h.isMock=!1;a=0;k=[];h.$$completeOutstandingRequest=nt;h.$$incOutstandingRequestCount=function(){a++};h.notifyWhenNoOutstandingRequests=function(n){r(d,function(n){n()});a===0?n():k.push(n)};d=[];h.addPollFn=function(n){return l(et)&&ht(100,ft),d.push(n),n};var v=c.href,rt=t.find("base"),ot=null;h.url=function(t,i){if(c!==n.location&&(c=n.location),w!==n.history&&(w=n.history),t){if(v==t)return;var r=v&&ui(v)===ui(t);return v=t,!r&&o.history?i?w.replaceState(null,"",t):(w.pushState(null,"",t),rt.attr("href",rt.attr("href"))):(r||(ot=t),i?c.replace(t):c.href=t),h}return ot||c.href.replace(/%27/g,"'")};tt=[];it=!1;h.onUrlChange=function(t){if(!it){if(o.history)u(n).on("popstate",y);if(o.hashchange)u(n).on("hashchange",y);else h.addPollFn(y);it=!0}return tt.push(t),t};h.$$checkUrlChange=y;h.baseHref=function(){var n=rt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var g={},ut="",st=h.baseHref();h.cookies=function(n,t){var s,h,r,u,o;if(n)t===i?p.cookie=escape(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":e(t)&&(s=(p.cookie=escape(n)+"="+escape(t)+";path="+st).length+1,s>4096&&f.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+s+" > 4096 bytes)!"));else{if(p.cookie!==ut)for(ut=p.cookie,h=ut.split("; "),g={},u=0;u<h.length;u++)r=h[u],o=r.indexOf("="),o>0&&(n=unescape(r.substring(0,o)),g[n]===i&&(g[n]=unescape(r.substring(o+1))));return g}};h.defer=function(n,t){var i;return a++,i=ft(function(){delete b[i];nt(n)},t||0),b[i]=!0,i};h.defer.cancel=function(n){return b[n]?(delete b[n],ct(n),nt(s),!0):!1}}function sh(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new oh(n,r,t,i)}]}function hh(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,c(n.n,n.p),c(n,f),f=n,f.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw y("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var o=0,v=h({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!l(t))return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);c(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){e=null;v=null;u=null;delete n[t]},info:function(){return h({},v,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function ch(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ve(n,s){var l={},v="Directive",y=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,w=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,b=/^(on[a-z]+|formaction)$/;this.directive=function k(t,i){return ri(t,"directive"),e(t)?(wu(i,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],n.factory(t+v,["$injector","$exceptionHandler",function(n,i){var u=[];return r(l[t],function(r,f){try{var e=n.invoke(r);c(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"A";u.push(e)}catch(o){i(o)}}),u}])),l[t].push(i)):r(t,gf(k)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(s.aHrefSanitizationWhitelist(n),this):s.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(s.imgSrcSanitizationWhitelist(n),this):s.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,s,k,d,nt,tt,rt,ut,ot,ht,ct){function bt(n,t,i,f,e){n instanceof u||(n=u(n));r(n,function(t,i){t.nodeType==3&&t.nodeValue.match(/\S+/)&&(n[i]=t=u(t).wrap("<span><\/span>").parent()[0])});var o=kt(n,t,n,i,f,e);return lt(n,"ng-scope"),function(t,i,u,f){var e,s,c,l,h;for(wu(t,"scope"),e=i?ei.clone.call(n):n,r(u,function(n,t){e.data("$"+t+"Controller",n)}),s=0,c=e.length;s<c;s++)l=e[s],h=l.nodeType,(h===1||h===9)&&e.eq(s).data("$scope",t);return i&&i(e,t),o&&o(t,e,e,f),e}}function lt(n,t){try{n.addClass(t)}catch(i){}}function kt(n,t,r,f,e,o){function w(n,r,f,e){for(var s,h,l,a,y,v,p,w=r.length,b=new Array(w),o=0;o<w;o++)b[o]=r[o];for(o=0,v=0,y=c.length;o<y;v++)l=b[v],s=c[o++],h=c[o++],s?(s.scope?(a=n.$new(),u.data(l,"$scope",a)):a=n,p=s.transcludeOnThisElement?yt(n,s.transclude,e):!s.templateOnThisElement&&e?e:!e&&t?yt(n,t):null,s(h,a,l,f,p)):h&&h(n,l.childNodes,i,e)}for(var c=[],l,a,s,v,y,p,h=0;h<n.length;h++)l=new gt,a=dt(n[h],[],l,h===0?f:i,e),s=a.length?ri(a,n[h],l,t,r,null,[],[],o):null,s&&s.scope&&lt(l.$$element,"ng-scope"),y=s&&s.terminal||!(v=n[h].childNodes)||!v.length?null:kt(v,s?(s.transcludeOnThisElement||!s.templateOnThisElement)&&s.transclude:t),c.push(s,y),p=p||s||y,o=null;return p?w:null}function yt(n,t,i){return function(r,u,f){var o=!1,e;if(r||(r=n.$new(),r.$$transcluded=!0,o=!0),e=t(r,u,f,i),o)e.on("$destroy",function(){r.$destroy()});return e}}function dt(n,t,i,r,u){var it=n.nodeType,rt=i.$attr,s,h,a,v,nt;switch(it){case 1:pt(t,at(pi(n).toLowerCase()),"E",r,u);for(var l,o,f,c,b,tt,k=n.attributes,d=0,ut=k&&k.length;d<ut;d++)a=!1,v=!1,l=k[d],(!p||p>=8||l.specified)&&(o=l.name,b=g(l.value),c=at(o),(tt=bi.test(c))&&(o=kr(c.substr(6),"-")),nt=c.replace(/(Start|End)$/,""),c===nt+"Start"&&(a=o,v=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),f=at(o.toLowerCase()),rt[f]=o,(tt||!i.hasOwnProperty(f))&&(i[f]=b,ce(n,f)&&(i[f]=!0)),wi(n,t,b,f),pt(t,f,"A",r,u,a,v));if(h=n.className,e(h)&&h!=="")while(s=w.exec(h))f=at(s[2]),pt(t,f,"C",r,u)&&(i[f]=g(s[3])),h=h.substr(s.index+s[0].length);break;case 3:vi(t,n.nodeValue);break;case 8:try{s=y.exec(n.nodeValue);s&&(f=at(s[1]),pt(t,f,"M",r,u)&&(i[f]=g(s[2])))}catch(ft){}}return t.sort(ai),t}function ni(n,t,i){var r=[],f=0,e;if(t&&n.hasAttribute&&n.hasAttribute(t)){e=n;do{if(!n)throw it("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType==1&&(n.hasAttribute(t)&&f++,n.hasAttribute(i)&&f--);r.push(n);n=n.nextSibling}while(f>0)}else r.push(n);return u(r)}function ii(n,t,i){return function(r,u,f,e,o){return u=ni(u[0],t,i),n(r,u,f,e,o)}}function ri(n,h,l,v,y,p,w,b,k){function gi(n,t,i,r){n&&(i&&(n=ii(n,i,r)),n.require=d.require,n.directiveName=ot,(rt===d||d.$$isolateScope)&&(n=oi(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ii(t,i,r)),t.require=d.require,t.directiveName=ot,(rt===d||d.$$isolateScope)&&(t=oi(t,{isolateScope:!0})),b.push(t))}function bi(n,t,i,u){var f,s="data",h=!1;if(e(t)){while((f=t.charAt(0))=="^"||f=="?")t=t.substr(1),f=="^"&&(s="inheritedData"),h=h||f=="?";if(f=null,u&&s==="data"&&(f=u[t]),f=f||i[s]("$"+t+"Controller"),!f&&!h)throw it("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,n);return f}return o(t)&&(f=[],r(t,function(t){f.push(bi(n,t,i,u))})),f}function yt(n,t,e,o,c){function vt(n,t){var r;return arguments.length<2&&(t=n,n=i),pi&&(r=g),c(n,t,r)}var v,y,k,ot,p,d,a,g={},ut,ht,ft;for(v=h===e?l:et(l,new gt(u(e),l.$attr)),y=v.$$element,rt&&(ht=/^\s*([@=&])(\??)\s*(\w*)\s*$/,a=t.$new(!0),at&&(at===rt||at===rt.$$originalDirective)?y.data("$isolateScope",a):y.data("$isolateScopeNoTemplate",a),lt(y,"ng-isolate-scope"),r(rt.scope,function(n,i){var o=n.match(ht)||[],r=o[3]||i,l=o[2]=="?",h=o[1],e,u,c,s;a.$$isolateBindings[i]=h+r;switch(h){case"@":v.$observe(r,function(n){a[i]=n});v.$$observers[r].$$scope=t;v[r]&&(a[i]=f(v[r])(t));break;case"=":if(l&&!v[r])return;u=nt(v[r]);s=u.literal?ti:function(n,t){return n===t||n!==n&&t!==t};c=u.assign||function(){e=a[i]=u(t);throw it("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",v[r],rt.name);};e=a[i]=u(t);a.$watch(function(){var n=u(t);return s(n,a[i])||(s(n,e)?c(t,n=a[i]):a[i]=n),e=n},null,u.literal);break;case"&":u=nt(v[r]);a[i]=function(n){return u(t,n)};break;default:throw it("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",rt.name,i,n);}})),ut=c&&vt,pt&&r(pt,function(n){var r={$scope:n===rt||n.$$isolateScope?a:t,$element:y,$attrs:v,$transclude:ut},i;d=n.controller;d=="@"&&(d=v[n.name]);i=tt(d,r);g[n.name]=i;pi||y.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),k=0,ot=w.length;k<ot;k++)try{p=w[k];p(p.isolateScope?a:t,y,v,p.require&&bi(p.directiveName,p.require,y,g),ut)}catch(ct){s(ct,st(y))}for(ft=t,rt&&(rt.template||rt.templateUrl===null)&&(ft=a),n&&n(ft,e.childNodes,i,c),k=b.length-1;k>=0;k--)try{p=b[k];p(p.isolateScope?a:t,y,v,p.require&&bi(p.directiveName,p.require,y,g),ut)}catch(ct){s(ct,st(y))}}var ct,hi,ri,ai;k=k||{};var ei=-Number.MAX_VALUE,vi,pt=k.controllerDirectives,rt=k.newIsolateScopeDirective,at=k.templateDirective,yi=k.nonTlbTranscludeDirective,ki=!1,di=!1,pi=k.hasElementTranscludeDirective,ut=l.$$element=u(h),d,ot,ht,wi=p,si=v,kt,ft;for(ct=0,hi=n.length;ct<hi;ct++){if(d=n[ct],ri=d.$$start,ai=d.$$end,ri&&(ut=ni(h,ri,ai)),ht=i,ei>d.priority)break;if((ft=d.scope)&&(vi=vi||d,d.templateUrl||(vt("new/isolated scope",rt,d,ut),a(ft)&&(rt=d))),ot=d.name,!d.templateUrl&&d.controller&&(ft=d.controller,pt=pt||{},vt("'"+ot+"' controller",pt[ot],d,ut),pt[ot]=d),(ft=d.transclude)&&(ki=!0,d.$$tlb||(vt("transclusion",yi,d,ut),yi=d),ft=="element"?(pi=!0,ei=d.priority,ht=ut,ut=l.$$element=u(t.createComment(" "+ot+": "+l[ot]+" ")),h=ut[0],wt(y,vu(ht),h),si=bt(ht,v,ei,wi&&wi.name,{nonTlbTranscludeDirective:yi})):(ht=u(gu(h)).contents(),ut.empty(),si=bt(ht,v))),d.template)if(di=!0,vt("template",at,d,ut),at=d,ft=c(d.template)?d.template(ut,l):d.template,ft=ci(ft),d.replace){if(wi=d,ht=du(ft)?[]:u(g(ft)),h=ht[0],ht.length!=1||h.nodeType!==1)throw it("tplrt","Template for directive '{0}' must have exactly one root element. {1}",ot,"");wt(y,ut,h);var nr={$attr:{}},tr=dt(h,[],nr),ir=n.splice(ct+1,n.length-(ct+1));rt&&ui(tr);n=n.concat(tr).concat(ir);fi(l,nr);hi=n.length}else ut.html(ft);if(d.templateUrl)di=!0,vt("template",at,d,ut),at=d,d.replace&&(wi=d),yt=li(n.splice(ct,n.length-ct),ut,l,y,ki&&si,w,b,{controllerDirectives:pt,newIsolateScopeDirective:rt,templateDirective:at,nonTlbTranscludeDirective:yi}),hi=n.length;else if(d.compile)try{kt=d.compile(ut,l,si);c(kt)?gi(null,kt,ri,ai):kt&&gi(kt.pre,kt.post,ri,ai)}catch(rr){s(rr,st(ut))}d.terminal&&(yt.terminal=!0,ei=Math.max(ei,d.priority))}return yt.scope=vi&&vi.scope===!0,yt.transcludeOnThisElement=ki,yt.templateOnThisElement=di,yt.transclude=si,k.hasElementTranscludeDirective=pi,yt}function ui(n){for(var t=0,i=n.length;t<i;t++)n[t]=te(n[t],{$$isolateScope:!0})}function pt(t,r,u,f,e,o,h){var a;if(r===e)return null;if(a=null,l.hasOwnProperty(r))for(var c,p=n.get(r+v),y=0,w=p.length;y<w;y++)try{c=p[y];(f===i||f>c.priority)&&c.restrict.indexOf(u)!=-1&&(o&&(c=te(c,{$$start:o,$$end:h})),t.push(c),a=c)}catch(b){s(b)}return a}function fi(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){r.charAt(0)!="$"&&(t[r]&&t[r]!==i&&(i+=(r==="style"?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){r=="class"?(lt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):r=="style"?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):r.charAt(0)=="$"||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function li(n,t,i,f,e,o,s,l){var v=[],p,w,b=t[0],y=n.shift(),tt=h({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),nt=c(y.templateUrl)?y.templateUrl(t,i):y.templateUrl;return t.empty(),k.get(ot.getTrustedResourceUrl(nt),{cache:d}).success(function(h){var c,d,rt,et,ut,ot;if(h=ci(h),y.replace){if(rt=du(h)?[]:u(g(h)),c=rt[0],rt.length!=1||c.nodeType!==1)throw it("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y.name,nt);d={$attr:{}};wt(f,t,c);ut=dt(c,[],d);a(y.scope)&&ui(ut);n=ut.concat(n);fi(i,d)}else c=b,t.html(h);for(n.unshift(tt),p=ri(n,c,i,e,t,y,o,s,l),r(f,function(n,i){n==c&&(f[i]=t[0])}),w=kt(t[0].childNodes,e);v.length;){var st=v.shift(),ft=v.shift(),ct=v.shift(),ht=v.shift(),k=t[0];ft!==b&&(ot=ft.className,l.hasElementTranscludeDirective&&y.replace||(k=gu(c)),wt(ct,u(ft),k),lt(u(k),ot));et=p.transcludeOnThisElement?yt(st,p.transclude,ht):ht;p(w,st,k,f,et)}v=null}).error(function(n,t,i,r){throw it("tpload","Failed to load template: {0}",r.url);}),function(n,t,i,r,u){var f=u;v?(v.push(t),v.push(i),v.push(r),v.push(f)):(p.transcludeOnThisElement&&(f=yt(t,p.transclude,u)),p(w,t,i,r,f))}}function ai(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function vt(n,t,i,r){if(t)throw it("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,i.name,n,st(r));}function vi(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:function(n){var r=n.parent(),t=r.length;return t&&lt(n.parent(),"ng-binding"),function(n,r){var u=r.parent(),f=u.data("$binding")||[];f.push(i);u.data("$binding",f);t||lt(u,"ng-binding");n.$watch(i,function(n){r[0].nodeValue=n})}}})}function yi(n,t){if(t=="srcdoc")return ot.HTML;var i=pi(n);if(t=="xlinkHref"||i=="FORM"&&t=="action"||i!="IMG"&&(t=="src"||t=="ngSrc"))return ot.RESOURCE_URL}function wi(n,t,i,r){var u=f(i,!0);if(u){if(r==="multiple"&&pi(n)==="SELECT")throw it("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",st(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){var o=e.$$observers||(e.$$observers={});if(b.test(r))throw it("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");(u=f(e[r],!0,yi(n,r)),u)&&(e[r]=u(t),(o[r]||(o[r]=[])).$$inter=!0,(e.$$observers&&e.$$observers[r].$$scope||t).$watch(u,function(n,t){r==="class"&&n!=t?e.$updateClass(n,t):e.$set(r,n)}))}}}})}}function wt(n,i,r){var e=i[0],a=i.length,v=e.parentNode,f,y,h,o,p,c;if(n)for(f=0,y=n.length;f<y;f++)if(n[f]==e){n[f++]=r;for(var s=f,l=s+a-1,w=n.length;s<w;s++,l++)l<w?n[s]=n[l]:delete n[s];n.length-=a-1;break}for(v&&v.replaceChild(r,e),h=t.createDocumentFragment(),h.appendChild(e),r[u.expando]=e[u.expando],o=1,p=i.length;o<p;o++)c=i[o],u(c).remove(),h.appendChild(c),delete i[o];i[0]=r;i.length=1}function oi(n,t){return h(function(){return n.apply(null,arguments)},n,t)}var gt=function(n,t){this.$$element=n;this.$attr=t||{}};gt.prototype={$normalize:at,$addClass:function(n){n&&n.length>0&&ht.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&ht.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=ye(n,t),r=ye(t,n);i.length===0?ht.removeClass(this.$$element,r):r.length===0?ht.addClass(this.$$element,i):ht.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var h=ce(this.$$element[0],n),e,o;h&&(this.$$element.prop(n,t),f=h);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n],f||(this.$attr[n]=f=kr(n,"-")));e=pi(this.$$element);(e==="A"&&n==="href"||e==="IMG"&&n==="src")&&(this[n]=t=ct(t,n==="src"));u!==!1&&(t===null||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));o=this.$$observers;o&&r(o[n],function(n){try{n(t)}catch(i){s(i)}})},$observe:function(n,t){var i=this,r=i.$$observers||(i.$$observers={}),u=r[n]||(r[n]=[]);return u.push(t),rt.$evalAsync(function(){u.$$inter||t(i[n])}),t}};var si=f.startSymbol(),hi=f.endSymbol(),ci=si=="{{"||hi=="}}"?ft:function(n){return n.replace(/\{\{/g,si).replace(/}}/g,hi)},bi=/^ngAttr[A-Z]/;return bt}]}function at(n){return tr(n.replace(ko,""))}function ye(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f==o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function lh(){var n={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){ri(t,"controller");a(t)?h(n,t):n[t]=i};this.$get=["$injector","$window",function(i,r){return function(u,f){var h,c,o,s;if(e(u)&&(c=u.match(t),o=c[1],s=c[3],u=n.hasOwnProperty(o)?n[o]:ee(f.$scope,o,!0)||ee(r,o,!0),nr(u,o,!0)),h=i.instantiate(u,f),s){if(!(f&&typeof f.$scope=="object"))throw y("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",o||u.name,s);f.$scope[s]=h}return h}}]}function ah(){this.$get=["$window",function(n){return u(n.document)}]}function vh(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function pe(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=v(g(n.substr(0,f)));u=g(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function we(n){var t=a(n)?n:i;return function(i){return(t||(t=pe(n)),i)?t[v(i)]||null:t}}function be(n,t,i){return c(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function ff(n){return 200<=n&&n<300}function yh(){var u=/^\s*(\[|\{[^\{])/,s=/[\}\]]\s*$/,y=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return e(n)&&(n=n.replace(y,""),u.test(n)&&s.test(n)&&(n=ie(n))),n}],transformRequest:[function(n){return a(n)&&!as(n)&&!vs(n)?ot(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:et(t),put:et(t),patch:et(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[],w=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,s,y,b,k){function d(t){function s(n){var t=h({},n,{data:be(n.data,n.headers,f.transformResponse)});return ff(n.status)?t:b.reject(t)}function p(t){function s(n){var t;r(n,function(i,r){c(i)&&(t=i(),t!=null?n[r]=t:delete n[r])})}var i=n.headers,u=h({},t.headers),f,e,o;i=h({},i.common,i[v(t.method)]);n:for(f in i){e=v(f);for(o in u)if(v(o)===e)continue n;u[f]=i[f]}return s(u),u}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},e=p(t),a,y;h(f,t);f.headers=e;f.method=fi(f.method);var w=function(t){e=t.headers;var i=be(t.data,we(e),t.transformRequest);return l(i)&&r(e,function(n,t){v(t)==="content-type"&&delete e[t]}),l(t.withCredentials)&&!l(n.withCredentials)&&(t.withCredentials=n.withCredentials),it(t,i,e).then(s,s)},o=[w,i],u=b.when(f);for(r(g,function(n){(n.request||n.requestError)&&o.unshift(n.request,n.requestError);(n.response||n.responseError)&&o.push(n.response,n.responseError)});o.length;)a=o.shift(),y=o.shift(),u=u.then(a,y);return u.success=function(n){return u.then(function(t){n(t.data,t.status,t.headers,f)}),u},u.error=function(n){return u.then(null,function(t){n(t.data,t.status,t.headers,f)}),u},u}function nt(){r(arguments,function(n){d[n]=function(t,i){return d(h(i||{},{method:n,url:t}))}})}function tt(){r(arguments,function(n){d[n]=function(t,i,r){return d(h(r||{},{method:n,url:t,data:i}))}})}function it(r,e,s){function tt(n,t,i,r){c&&(ff(n)?c.put(v,[n,t,pe(i),r]):c.remove(v));w(t,n,i,r);y.$$phase||y.$apply()}function w(n,t,i,u){t=Math.max(t,0);(ff(t)?k.resolve:k.reject)({data:n,status:t,headers:we(i),config:r,statusText:u})}function p(){var n=ki(d.pendingRequests,r);n!==-1&&d.pendingRequests.splice(n,1)}var k=b.defer(),g=k.promise,c,h,v=rt(r.url,r.params),nt;if(d.pendingRequests.push(r),g.then(p,p),(r.cache||n.cache)&&r.cache!==!1&&(r.method==="GET"||r.method==="JSONP")&&(c=a(r.cache)?r.cache:a(n.cache)?n.cache:ut),c)if(h=c.get(v),f(h)){if(wr(h))return h.then(p,p),h;o(h)?w(h[1],h[0],et(h[2]),h[3]):w(h,200,{},"OK")}else c.put(v,g);return l(h)&&(nt=fo(r.url)?u.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i,nt&&(s[r.xsrfHeaderName||n.xsrfHeaderName]=nt),t(r.method,v,e,tt,s,r.timeout,r.withCredentials,r.responseType)),g}function rt(n,t){if(!t)return n;var i=[];return ls(t,function(n,t){n===null||l(n)||(o(n)||(n=[n]),r(n,function(n){a(n)&&(n=wt(n)?n.toISOString():ot(n));i.push(ii(t)+"="+ii(n))}))}),i.length>0&&(n+=(n.indexOf("?")==-1?"?":"&")+i.join("&")),n}var ut=s("$http"),g=[];return r(p,function(n){g.unshift(e(n)?k.get(n):k.invoke(n))}),r(w,function(n,t){var i=e(n)?k.get(n):k.invoke(n);g.splice(t,0,{response:function(n){return i(b.when(n))},responseError:function(n){return i(b.reject(n))}})}),d.pendingRequests=[],nt("get","delete","head","jsonp"),tt("post","put","patch"),d.defaults=n,d}]}function ph(t){if(p<=8&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!n.XMLHttpRequest))return new n.ActiveXObject("Microsoft.XMLHTTP");if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw y("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.");}function wh(){this.$get=["$browser","$window","$document",function(n,t,i){return bh(n,ph,n.defer,t.angular.callbacks,i[0])}]}function bh(n,t,i,u,o){function c(n,t,i){var r=o.createElement("script"),f=null;return r.type="text/javascript",r.src=n,r.async=!0,f=function(n){hr(r,"load",f);hr(r,"error",f);o.body.removeChild(r);r=null;var e=-1,s="unknown";n&&(n.type!=="load"||u[t].called||(n={type:"error"}),s=n.type,e=n.type==="error"?404:200);i&&i(e,s)},su(r,"load",f),su(r,"error",f),p<=8&&(r.onreadystatechange=function(){e(r.readyState)&&/loaded|complete/.test(r.readyState)&&(r.onreadystatechange=null,f({type:"load"}))}),o.body.appendChild(r),f}var h=-1;return function(e,o,l,a,y,w,b,k){function rt(){nt=h;tt&&tt();d&&d.abort()}function ut(t,r,u,f,e){it&&i.cancel(it);tt=d=null;r===0&&(r=u?200:bt(o).protocol=="file"?404:0);r=r===1223?204:r;e=e||"";t(r,u,f,e);n.$$completeOutstandingRequest(s)}var nt,g,tt,d,it;if(n.$$incOutstandingRequestCount(),o=o||n.url(),v(e)=="jsonp")g="_"+(u.counter++).toString(36),u[g]=function(n){u[g].data=n;u[g].called=!0},tt=c(o.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(n,t){ut(a,n,u[g].data,"",t);u[g]=s});else{if(d=t(e),d.open(e,o,!0),r(y,function(n,t){f(n)&&d.setRequestHeader(t,n)}),d.onreadystatechange=function(){if(d&&d.readyState==4){var n=null,t=null,i="";nt!==h&&(n=d.getAllResponseHeaders(),t="response"in d?d.response:d.responseText);nt===h&&p<10||(i=d.statusText);ut(a,nt||d.status,t,n,i)}},b&&(d.withCredentials=!0),k)try{d.responseType=k}catch(ft){if(k!=="json")throw ft;}d.send(l||null)}w>0?it=i(rt,w):wr(w)&&w.then(rt)}}function kh(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function f(f,s,h){for(var y,p,c=0,l=[],a=f.length,b=!1,v,k,w=[];c<a;)(y=f.indexOf(n,c))!=-1&&(p=f.indexOf(t,y+e))!=-1?(c!=y&&l.push(f.substring(c,y)),l.push(v=i(k=f.substring(y+e,p))),v.exp=k,c=p+o,b=!0):(c!=a&&l.push(f.substring(c)),c=a);if((a=l.length)||(l.push(""),a=1),h&&l.length>1)throw af("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",f);if(!s||b)return w.length=a,v=function(n){var i,e,t,o;try{for(i=0,e=a;i<e;i++){if(typeof(t=l[i])=="function")if(t=t(n),t=h?u.getTrusted(h,t):u.valueOf(t),t==null)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=ot(t)}w[i]=t}return w.join("")}catch(s){o=af("interr","Can't interpolate: {0}\n{1}",f,s.toString());r(o)}},v.exp=f,v.parts=l,v}var e=n.length,o=t.length;return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function dh(){this.$get=["$rootScope","$window","$q",function(n,t,i){function u(u,e,o,s){var a=t.setInterval,v=t.clearInterval,c=i.defer(),h=c.promise,l=0,y=f(s)&&!s;return o=f(o)?o:0,h.then(null,null,u),h.$$intervalId=a(function(){c.notify(l++);o>0&&l>=o&&(c.resolve(l),v(h.$$intervalId),delete r[h.$$intervalId]);y||n.$apply()},e),r[h.$$intervalId]=c,h}var r={};return u.cancel=function(n){return n&&n.$$intervalId in r?(r[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete r[n.$$intervalId],!0):!1},u}]}function gh(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return n===1?"one":"other"}}}}function ef(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=br(t[i]);return t.join("/")}function ke(n,t,i){var r=bt(n,i);t.$$protocol=r.protocol;t.$$host=r.hostname;t.$$port=k(r.port)||ua[r.protocol]||null}function de(n,t,i){var u=n.charAt(0)!=="/",r;u&&(n="/"+n);r=bt(n,i);t.$$path=decodeURIComponent(u&&r.pathname.charAt(0)==="/"?r.pathname.substring(1):r.pathname);t.$$search=ue(r.search);t.$$hash=decodeURIComponent(r.hash);t.$$path&&t.$$path.charAt(0)!="/"&&(t.$$path="/"+t.$$path)}function vt(n,t){if(t.indexOf(n)===0)return t.substr(n.length)}function ui(n){var t=n.indexOf("#");return t==-1?n:n.substr(0,t)}function of(n){return n.substr(0,ui(n).lastIndexOf("/")+1)}function nc(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function ge(n,t){this.$$html5=!0;t=t||"";var r=of(n);ke(n,this,n);this.$$parse=function(t){var i=vt(r,t);if(!e(i))throw bf("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);de(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=pu(this.$$search),t=this.$$hash?"#"+br(this.$$hash):"";this.$$url=ef(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$parseLinkUrl=function(u){var f,o,e;return(f=vt(n,u))!==i?(o=f,e=(f=vt(t,f))!==i?r+(vt("/",f)||f):n+o):(f=vt(r,u))!==i?e=r+f:r==u+"/"&&(e=r),e&&this.$$parse(e),!!e}}function sf(n,t){var i=of(n);ke(n,this,n);this.$$parse=function(r){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(t.indexOf(i)===0&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var u=vt(n,r)||vt(i,r),f=u.charAt(0)=="#"?vt(t,u):this.$$html5?u:"";if(!e(f))throw bf("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);de(f,this,n);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var i=pu(this.$$search),r=this.$$hash?"#"+br(this.$$hash):"";this.$$url=ef(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$parseLinkUrl=function(t){return ui(n)==ui(t)?(this.$$parse(t),!0):!1}}function no(n,t){this.$$html5=!0;sf.apply(this,arguments);var i=of(n);this.$$parseLinkUrl=function(r){var u,f;return n==ui(r)?u=r:(f=vt(i,r))?u=n+t+f:i===r+"/"&&(u=i),u&&this.$$parse(u),!!u};this.$$compose=function(){var i=pu(this.$$search),r=this.$$hash?"#"+br(this.$$hash):"";this.$$url=ef(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function tu(n){return function(){return this[n]}}function to(n,t){return function(i){return l(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function tc(){var t="",i=!1;this.hashPrefix=function(n){return f(n)?(t=n,this):t};this.html5Mode=function(n){return f(n)?(i=n,this):i};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,f,e,o){function p(n){r.$broadcast("$locationChangeSuccess",s.absUrl(),n)}var s,l,b=f.baseHref(),h=f.url(),y,w,c;i?(y=nc(h)+(b||"/"),l=e.history?ge:no):(y=ui(h),l=sf);s=new l(y,"#"+t);s.$$parseLinkUrl(h,h);w=/^\s*(javascript|mailto):/i;o.on("click",function(t){var i,e,h;if(!t.ctrlKey&&!t.metaKey&&t.which!=2){for(i=u(t.target);v(i[0].nodeName)!=="a";)if(i[0]===o[0]||!(i=i.parent())[0])return;(e=i.prop("href"),h=i.attr("href")||i.attr("xlink:href"),a(e)&&e.toString()==="[object SVGAnimatedString]"&&(e=bt(e.animVal).href),w.test(e))||!e||i.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(e,h)&&(t.preventDefault(),s.absUrl()!=f.url()&&(r.$apply(),n.angular["ff-684208-preventDefault"]=!0))}});s.absUrl()!=h&&f.url(s.absUrl(),!0);f.onUrlChange(function(n){s.absUrl()!=n&&(r.$evalAsync(function(){var t=s.absUrl();s.$$parse(n);r.$broadcast("$locationChangeStart",n,t).defaultPrevented?(s.$$parse(t),f.url(t)):p(t)}),r.$$phase||r.$digest())});return c=0,r.$watch(function(){var n=f.url(),t=s.$$replace;return c&&n==s.absUrl()||(c++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),t),p(n))})),s.$$replace=!1,c}),s}]}function ic(){var n=!0,t=this;this.debugEnabled=function(t){return f(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||s,e=!1;try{e=!!u.apply}catch(o){}return e?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,t==null?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ht(n,t){if(n==="__defineGetter__"||n==="__defineSetter__"||n==="__lookupGetter__"||n==="__lookupSetter__"||n==="__proto__")throw rt("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return n}function ct(n,t){if(n)if(n.constructor===n)throw rt("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n.document&&n.location&&n.alert&&n.setInterval)throw rt("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);else if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw rt("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);else if(n===Object)throw rt("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t);return n}function rc(n,t){if(n)if(n.constructor===n)throw rt("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n===fa||n===ea||fs&&n===fs)throw rt("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t);}function iu(n,t,r,u,f){var s,e,h,o;for(ct(n,u),f=f||{},s=t.split("."),h=0;s.length>1;h++)e=ht(s.shift(),u),o=ct(n[e],u),o||(o={},n[e]=o),n=o,n.then&&f.unwrapPromises&&(gt(u),"$$v"in n||function(n){n.then(function(t){n.$$v=t})}(n),n.$$v===i&&(n.$$v={}),n=n.$$v);return e=ht(s.shift(),u),ct(n[e],u),n[e]=r,r}function ai(n){return n=="constructor"}function io(n,t,r,u,f,e,o){ht(n,e);ht(t,e);ht(r,e);ht(u,e);ht(f,e);var s=function(n){return ct(n,e)},h=o.expensiveChecks,c=h||ai(n)?s:ft,l=h||ai(t)?s:ft,a=h||ai(r)?s:ft,v=h||ai(u)?s:ft,y=h||ai(f)?s:ft;return o.unwrapPromises?function(o,s){var h=s&&s.hasOwnProperty(n)?s:o,p;return h==null?h:(h=c(h[n]),h&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=c(n)})),h=c(h.$$v)),!t)?h:h==null?i:(h=l(h[t]),h&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=l(n)})),h=l(h.$$v)),!r)?h:h==null?i:(h=a(h[r]),h&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=a(n)})),h=a(h.$$v)),!u)?h:h==null?i:(h=v(h[u]),h&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=v(n)})),h=v(h.$$v)),!f)?h:h==null?i:(h=y(h[f]),h&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=y(n)})),h=y(h.$$v)),h)}:function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return s==null?s:(s=c(s[n]),!t)?s:s==null?i:(s=l(s[t]),!r)?s:s==null?i:(s=a(s[r]),!u)?s:s==null?i:(s=v(s[u]),!f)?s:s==null?i:y(s[f])}}function uc(n,t){return function(i,r){return n(i,r,gt,ct,t)}}function ro(n,t,u){var s=t.expensiveChecks,c=s?ns:go,f,l,h,e,a,o;return c.hasOwnProperty(n)?c[n]:(f=n.split("."),l=f.length,t.csp?h=l<6?io(f[0],f[1],f[2],f[3],f[4],u,t):function(n,r){var e=0,o;do o=io(f[e++],f[e++],f[e++],f[e++],f[e++],u,t)(n,r),r=i,n=o;while(e<l);return o}:(e="var p;\n",s&&(e+="s = eso(s, fe);\nl = eso(l, fe);\n"),a=s,r(f,function(n,i){ht(n,u);var r=(i?"s":'((l&&l.hasOwnProperty("'+n+'"))?l:s)')+'["'+n+'"]',f=s||ai(n);f&&(r="eso("+r+", fe)",a=!0);e+="if(s == null) return undefined;\ns="+r+";\n";t.unwrapPromises&&(e+='if (s && s.then) {\n pw("'+u.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v='+(f?"eso(v)":"v")+";});\n}\n s="+(f?"eso(s.$$v)":"s.$$v")+"\n}\n")}),e+="return s;",o=new Function("s","l","pw","eso","fe",e),o.toString=nt(e),(a||t.unwrapPromises)&&(o=uc(o,u)),h=o),n!=="hasOwnProperty"&&(c[n]=h),h)}function fc(){var t={},i={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0,expensiveChecks:!1};this.unwrapPromises=function(t){return f(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises};this.logPromiseWarnings=function(t){return f(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(r,u,f){n.csp=u.csp;var e={csp:n.csp,unwrapPromises:n.unwrapPromises,logPromiseWarnings:n.logPromiseWarnings,expensiveChecks:!0};return gt=function(t){n.logPromiseWarnings&&!vf.hasOwnProperty(t)&&(vf[t]=!0,f.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(u,f){var h,o;switch(typeof u){case"string":if(o=f?i:t,o.hasOwnProperty(u))return o[u];var c=f?e:n,l=new kf(c),a=new yi(l,r,c);return h=a.parse(u),u!=="hasOwnProperty"&&(o[u]=h),h;case"function":return u;default:return s}}}]}function ec(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return oc(function(t){n.$evalAsync(t)},t)}]}function oc(n,t){function f(n){return n}function h(n){return s(n)}function l(n){var i=u(),f=0,t=o(n)?[]:{};return r(n,function(n,r){f++;e(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),f===0&&i.resolve(t),i.promise}var u=function(){var r=[],o,s;return s={resolve:function(t){if(r){var u=r;r=i;o=e(t);u.length&&n(function(){for(var n,t=0,i=u.length;t<i;t++)n=u[t],o.then(n[0],n[1],n[2])})}},reject:function(n){s.resolve(a(n))},notify:function(t){if(r){var i=r;r.length&&n(function(){for(var r,n=0,u=i.length;n<u;n++)r=i[n],r[2](t)})}},promise:{then:function(n,i,e){var s=u(),l=function(i){try{s.resolve((c(n)?n:f)(i))}catch(r){s.reject(r);t(r)}},a=function(n){try{s.resolve((c(i)?i:h)(n))}catch(r){s.reject(r);t(r)}},v=function(n){try{s.notify((c(e)?e:f)(n))}catch(i){t(i)}};return r?r.push([l,a,v]):o.then(l,a,v),s.promise},"catch":function(n){return this.then(null,n)},"finally":function(n){function t(n,t){var i=u();return t?i.resolve(n):i.reject(n),i.promise}function i(i,r){var u=null;try{u=(n||f)()}catch(e){return t(e,!1)}return wr(u)?u.then(function(){return t(i,r)},function(n){return t(n,!1)}):t(i,r)}return this.then(function(n){return i(n,!0)},function(n){return i(n,!1)})}}}},e=function(t){return wr(t)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},s=function(n){var t=u();return t.reject(n),t.promise},a=function(i){return{then:function(r,f){var e=u();return n(function(){try{e.resolve((c(f)?f:h)(i))}catch(n){e.reject(n);t(n)}}),e.promise}}},v=function(i,r,o,l){var v=u(),a,w=function(n){try{return(c(r)?r:f)(n)}catch(i){return t(i),s(i)}},y=function(n){try{return(c(o)?o:h)(n)}catch(i){return t(i),s(i)}},p=function(n){try{return(c(l)?l:f)(n)}catch(i){t(i)}};return n(function(){e(i).then(function(n){a||(a=!0,v.resolve(e(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise};return{defer:u,reject:s,when:v,all:l}}function sc(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function hc(){var t=10,i=y("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,e,o){function v(){this.$id=ar();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function y(n){if(h.$$phase)throw i("inprog","{0} already in progress",h.$$phase);h.$$phase=n}function l(){h.$$phase=null}function p(n,t){var i=e(n);return nr(i,t),i}function w(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function b(){}v.prototype={constructor:v,$new:function(n){var t;return n?(t=new v,t.$root=this.$root,t.$$asyncQueue=this.$$asyncQueue,t.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=ar();this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),t=new this.$$childScopeClass),t["this"]=t,t.$parent=this,t.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=t,this.$$childTail=t):this.$$childHead=this.$$childTail=t,t},$watch:function(t,i,r){var e=this,o=p(t,"watch"),f=e.$$watchers,u={fn:i,last:b,get:o,exp:t,eq:!!r},h,l;return n=null,c(i)||(h=p(i||s,"listener"),u.fn=function(n,t,i){h(i)}),typeof t=="string"&&o.constant&&(l=u.fn,u.fn=function(n,t,i){l.call(this,n,t,i);di(f,u)}),f||(f=e.$$watchers=[]),f.unshift(u),function(){di(f,u);n=null}},$watchCollection:function(n,t){function v(){var e,n,o,t;if(i=w(s),a(i))if(bi(i))for(r!==h&&(r=h,f=r.length=0,u++),e=i.length,f!==e&&(u++,r.length=f=e),t=0;t<e;t++)o=r[t]!==r[t]&&i[t]!==i[t],o||r[t]===i[t]||(u++,r[t]=i[t]);else{r!==c&&(r=c={},f=0,u++);e=0;for(n in i)i.hasOwnProperty(n)&&(e++,r.hasOwnProperty(n)?(o=r[n]!==r[n]&&i[n]!==i[n],o||r[n]===i[n]||(u++,r[n]=i[n])):(f++,r[n]=i[n],u++));if(f>e){u++;for(n in r)r.hasOwnProperty(n)&&!i.hasOwnProperty(n)&&(f--,delete r[n])}}else r!==i&&(r=i,u++);return u}function y(){var n,r;if(l?(l=!1,t(i,i,s)):t(i,o,s),p)if(a(i))if(bi(i))for(o=new Array(i.length),n=0;n<i.length;n++)o[n]=i[n];else{o={};for(r in i)fu.call(i,r)&&(o[r]=i[r])}else o=i}var s=this,i,r,o,p=t.length>1,u=0,w=e(n),h=[],c={},l=!0,f=0;return this.$watch(v,y)},$digest:function(){var r,e,s,w,a=this.$$asyncQueue,ut=this.$$postDigestQueue,k,h,d=t,g,u,nt=this,v=[],p,tt,it;y("$digest");o.$$checkUrlChange();n=null;do{for(h=!1,u=nt;a.length;){try{it=a.shift();it.scope.$eval(it.expression)}catch(rt){l();f(rt)}n=null}n:do{if(w=u.$$watchers)for(k=w.length;k--;)try{if(r=w[k],r)if((e=r.get(u))===(s=r.last)||(r.eq?ti(e,s):typeof e=="number"&&typeof s=="number"&&isNaN(e)&&isNaN(s))){if(r===n){h=!1;break n}}else h=!0,n=r,r.last=r.eq?hi(e,null):e,r.fn(e,s===b?e:s,u),d<5&&(p=4-d,v[p]||(v[p]=[]),tt=c(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,tt+="; newVal: "+ot(e)+"; oldVal: "+ot(s),v[p].push(tt))}catch(rt){l();f(rt)}if(!(g=u.$$childHead||u!==nt&&u.$$nextSibling))while(u!==nt&&!(g=u.$$nextSibling))u=u.$parent}while(u=g);if((h||a.length)&&!d--){l();throw i("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,ot(v));}}while(h||a.length);for(l();ut.length;)try{ut.shift()()}catch(rt){f(rt)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==h)&&(r(this.$$listenerCount,yu(null,w,this)),n.$$childHead==this&&(n.$$childHead=this.$$nextSibling),n.$$childTail==this&&(n.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=s,this.$on=this.$watch=function(){return s})}},$eval:function(n,t){return e(n)(this,t)},$evalAsync:function(n){h.$$phase||h.$$asyncQueue.length||o.defer(function(){h.$$asyncQueue.length&&h.$digest()});this.$$asyncQueue.push({scope:this,expression:n})},$$postDigest:function(n){this.$$postDigestQueue.push(n)},$apply:function(n){try{return y("$apply"),this.$eval(n)}catch(t){f(t)}finally{l();try{h.$digest()}catch(t){f(t);throw t;}}},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=ki(r,t);i!==-1&&(r[i]=null,w(u,1,n))}},$emit:function(n){var s=[],r,i=this,o=!1,u={name:n,targetScope:i,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},h=au([u],arguments,1),t,e;do{for(r=i.$$listeners[n]||s,u.currentScope=i,t=0,e=r.length;t<e;t++){if(!r[t]){r.splice(t,1);t--;e--;continue}try{r[t].apply(null,h)}catch(c){f(c)}}if(o)return u;i=i.$parent}while(i);return u},$broadcast:function(n){for(var r=this,t=r,o=r,e={name:n,targetScope:r,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1},h=au([e],arguments,1),u,i,s;t=o;){for(e.currentScope=t,u=t.$$listeners[n]||[],i=0,s=u.length;i<s;i++){if(!u[i]){u.splice(i,1);i--;s--;continue}try{u[i].apply(null,h)}catch(c){f(c)}}if(!(o=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(o=t.$$nextSibling))t=t.$parent}return e}};var h=new v;return h}]}function cc(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return f(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(!p||p>=8)&&(u=bt(i).href,u!==""&&!u.match(f))?"unsafe:"+u:i}}}function lc(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function ac(n){if(n==="self")return n;if(e(n)){if(n.indexOf("***")>-1)throw yt("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=lc(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(yr(n))return new RegExp("^"+n.source+"$");throw yt("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function uo(n){var t=[];return f(n)&&r(n,function(n){t.push(ac(n))}),t}function vc(){this.SCE_CONTEXTS=tt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=uo(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=uo(n)),t};this.$get=["$injector",function(r){function o(n,t){return n==="self"?fo(t):!!n.exec(t.href)}function h(i){for(var e=bt(i.toString()),u=!1,r=0,f=n.length;r<f;r++)if(o(n[r],e)){u=!0;break}if(u)for(r=0,f=t.length;r<f;r++)if(o(t[r],e)){u=!1;break}return u}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function c(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw yt("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||t===i||t==="")return t;if(typeof t!="string")throw yt("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new r(t)}function l(n){return n instanceof e?n.$$unwrapTrustedValue():n}function a(n,t){if(t===null||t===i||t==="")return t;var r=u.hasOwnProperty(n)?u[n]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(n===tt.RESOURCE_URL){if(h(t))return t;throw yt("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===tt.HTML)return s(t);throw yt("unsafe","Attempting to use an unsafe value in a safe context.");}var s=function(){throw yt("unsafe","Attempting to use an unsafe value in a safe context.");},e,u;return r.has("$sanitize")&&(s=r.get("$sanitize")),e=f(),u={},u[tt.HTML]=f(e),u[tt.CSS]=f(e),u[tt.URL]=f(e),u[tt.JS]=f(e),u[tt.RESOURCE_URL]=f(u[tt.URL]),{trustAs:c,getTrusted:a,valueOf:l}}]}function yc(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sniffer","$sceDelegate",function(t,i,u){var f;if(n&&i.msie&&i.msieDocumentMode<8)throw yt("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");f=et(tt);f.isEnabled=function(){return n};f.trustAs=u.trustAs;f.getTrusted=u.getTrusted;f.valueOf=u.valueOf;n||(f.trustAs=f.getTrusted=function(n,t){return t},f.valueOf=ft);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:function(t,i){return f.getTrusted(n,r(t,i))}};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(tt,function(n,t){var i=v(t);f[tr("parse_as_"+i)]=function(t){return e(n,t)};f[tr("get_trusted_"+i)]=function(t){return o(n,t)};f[tr("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function pc(){this.$get=["$window","$document",function(n,t){var s={},h=k((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),w=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},c=u.documentMode,i,r=u.body&&u.body.style,f=!1,o=!1,a,y;if(r){for(y in r)if(a=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(y)){i=a[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");f=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!h||f&&o||(f=e(u.body.style.webkitTransition),o=e(u.body.style.webkitAnimation))}return{history:!!(n.history&&n.history.pushState&&!(h<4)&&!w),hashchange:"onhashchange"in n&&(!c||c>7),hasEvent:function(n){if(n=="input"&&p==9)return!1;if(l(s[n])){var t=u.createElement("div");s[n]="on"+n in t}return s[n]},csp:vi(),vendorPrefix:i,transitions:f,animations:o,android:h,msie:p,msieDocumentMode:c}}]}function wc(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(n,t,i,r){function e(e,o,s){var h=i.defer(),c=h.promise,a=f(s)&&!s,l;return l=t.defer(function(){try{h.resolve(e())}catch(t){h.reject(t);r(t)}finally{delete u[c.$$timeoutId]}a||n.$apply()},o),c.$$timeoutId=l,u[l]=h,c}var u={};return e.cancel=function(n){return n&&n.$$timeoutId in u?(u[n.$$timeoutId].reject("canceled"),delete u[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},e}]}function bt(n){var t=n;return p&&(b.setAttribute("href",t),t=b.href),b.setAttribute("href",t),{href:b.href,protocol:b.protocol?b.protocol.replace(/:$/,""):"",host:b.host,search:b.search?b.search.replace(/^\?/,""):"",hash:b.hash?b.hash.replace(/^#/,""):"",hostname:b.hostname,port:b.port,pathname:b.pathname.charAt(0)==="/"?b.pathname:"/"+b.pathname}}function fo(n){var t=e(n)?bt(n):n;return t.protocol===yf.protocol&&t.host===yf.host}function bc(){this.$get=nt(n)}function eo(n){function t(u,f){if(a(u)){var e={};return r(u,function(n,i){e[i]=t(i,n)}),e}return n.factory(u+i,f)}var i="Filter";this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+i)}}];t("currency",oo);t("date",co);t("filter",kc);t("json",nl);t("limitTo",tl);t("lowercase",ts);t("number",so);t("orderBy",lo);t("uppercase",is)}function kc(){return function(n,t,i){var e,r,u,c,s,f,h;if(!o(n))return n;e=typeof i;r=[];r.check=function(n){for(var t=0;t<r.length;t++)if(!r[t](n))return!1;return!0};e!=="function"&&(i=e==="boolean"&&i?function(n,t){return er.equals(n,t)}:function(n,t){if(n&&t&&typeof n=="object"&&typeof t=="object"){for(var r in n)if(r.charAt(0)!=="$"&&fu.call(n,r)&&i(n[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),(""+n).toLowerCase().indexOf(t)>-1});u=function(n,t){var f,r;if(typeof t=="string"&&t.charAt(0)==="!")return!u(n,t.substr(1));switch(typeof n){case"boolean":case"number":case"string":return i(n,t);case"object":switch(typeof t){case"object":return i(n,t);default:for(f in n)if(f.charAt(0)!=="$"&&u(n[f],t))return!0}return!1;case"array":for(r=0;r<n.length;r++)if(u(n[r],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(c in t)(function(n){typeof t[n]!="undefined"&&r.push(function(i){return u(n=="$"?i:i&&i[n],t[n])})})(c);break;case"function":r.push(t);break;default:return n}for(s=[],f=0;f<n.length;f++)h=n[f],r.check(h)&&s.push(h);return s}}function oo(n){var t=n.NUMBER_FORMATS;return function(n,i){return l(i)&&(i=t.CURRENCY_SYM),ho(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function so(n){var t=n.NUMBER_FORMATS;return function(n,i){return ho(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function ho(n,t,i,r,u){var c,v,b,o,s;if(n==null||!isFinite(n)||a(n))return"";c=n<0;n=Math.abs(n);var h=n+"",e="",y=[],k=!1;if(h.indexOf("e")!==-1&&(v=h.match(/([\d\.]+)e(-?)(\d+)/),v&&v[2]=="-"&&v[3]>u+1?(h="0",n=0):(e=h,k=!0)),k)u>0&&n>-1&&n<1&&(e=n.toFixed(u));else{b=(h.split(pf)[1]||"").length;l(u)&&(u=Math.min(Math.max(t.minFrac,b),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);n===0&&(c=!1);o=(""+n).split(pf);s=o[0];o=o[1]||"";var f,p=0,w=t.lgSize,d=t.gSize;if(s.length>=w+d)for(p=s.length-w,f=0;f<p;f++)(p-f)%d==0&&f!==0&&(e+=i),e+=s.charAt(f);for(f=p;f<s.length;f++)(s.length-f)%w==0&&f!==0&&(e+=i),e+=s.charAt(f);while(o.length<u)o+="0";u&&u!=="0"&&(e+=r+o.substr(0,u))}return y.push(c?t.negPre:t.posPre),y.push(e),y.push(c?t.negSuf:t.posSuf),y.join("")}function hf(n,t,i){var r="";for(n<0&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function d(n,t,i,r){return i=i||0,function(u){var f=u["get"+n]();return(i>0||f>-i)&&(f+=i),f===0&&i==-12&&(f=12),hf(f,t,r)}}function ru(n,t){return function(i,r){var u=i["get"+n](),f=fi(t?"SHORT"+n:n);return r[f][u]}}function dc(n){var t=-1*n.getTimezoneOffset(),i=t>=0?"+":"";return i+(hf(Math[t>0?"floor":"ceil"](t/60),2)+hf(Math.abs(t%60),2))}function gc(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function co(n){function t(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=k(t[9]+t[10]),f=k(t[9]+t[11]));e.call(r,k(t[1]),k(t[2])-1,k(t[3]));var s=k(t[4]||0)-u,h=k(t[5]||0)-f,c=k(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u){var h="",f=[],o,s;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,e(i)&&(i=ca.test(i)?k(i):t(i)),vr(i)&&(i=new Date(i)),!wt(i))return i;while(u)s=ha.exec(u),s?(f=au(f,s,1),u=f.pop()):(f.push(u),u=null);return r(f,function(t){o=sa[t];h+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}}function nl(){return function(n){return ot(n,!0)}}function tl(){return function(n,t){if(!o(n)&&!e(n))return n;if(t=Math.abs(Number(t))===Infinity?Number(t):k(t),e(n))return t?t>=0?n.slice(0,t):n.slice(t,n.length):"";var u=[],i,r;for(t>n.length?t=n.length:t<-n.length&&(t=-n.length),t>0?(i=0,r=t):(i=n.length+t,r=n.length);i<r;i++)u.push(n[i]);return u}}function lo(n){return function(t,i,r){function s(n,t){for(var r,u=0;u<i.length;u++)if(r=i[u](n,t),r!==0)return r;return 0}function u(n,t){return gi(t)?function(t,i){return n(i,t)}:n}function f(n,t){var i=typeof n,r=typeof t;return i==r?(wt(n)&&wt(t)&&(n=n.valueOf(),t=t.valueOf()),i=="string"&&(n=n.toLowerCase(),t=t.toLowerCase()),n===t)?0:n<t?-1:1:i<r?-1:1}return bi(t)?(i=o(i)?i:[i],i.length===0&&(i=["+"]),i=ps(i,function(t){var r=!1,i=t||ft,o;if(e(t)){if((t.charAt(0)=="+"||t.charAt(0)=="-")&&(r=t.charAt(0)=="-",t=t.substring(1)),t==="")return u(function(n,t){return f(n,t)},r);if(i=n(t),i.constant)return o=i(),u(function(n,t){return f(n[o],t[o])},r)}return u(function(n,t){return f(i(n),i(t))},r)}),ou.call(t).sort(u(s,r))):t}}function kt(n){return c(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function ao(n,t,i,u){function e(t,i){i=i?"-"+kr(i,"-"):"";u.setClass(n,(t?hu:cu)+i,(t?cu:hu)+i)}var f=this,o=n.parent().controller("form")||ur,s=0,h=f.$error={},c=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;o.$addControl(f);n.addClass(wi);e(!0);f.$addControl=function(n){ri(n.$name,"input");c.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(h,function(t,i){f.$setValidity(i,!0,n)});di(c,n)};f.$setValidity=function(n,t,i){var r=h[n];if(t)r&&(di(r,i),r.length||(s--,s||(e(t),f.$valid=!0,f.$invalid=!1),h[n]=!1,e(!0,n),o.$setValidity(n,!0,f)));else{if(s||e(t),r){if(ws(r,i))return}else h[n]=r=[],s++,e(!1,n),o.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,wi);u.addClass(n,lu);f.$dirty=!0;f.$pristine=!1;o.$setDirty()};f.$setPristine=function(){u.removeClass(n,lu);u.addClass(n,wi);f.$dirty=!1;f.$pristine=!0;r(c,function(n){n.$setPristine()})}}function dt(n,t,r,u){return n.$setValidity(t,r),r?u:i}function vo(n,t){var i,r;if(t)for(i=0;i<t.length;++i)if(r=t[i],n[r])return!0;return!1}function il(n,t,i,r,u){if(a(u)){n.$$hasNativeValidators=!0;var f=function(f){if(!n.$error[t]&&!vo(u,r)&&vo(u,i)){n.$setValidity(t,!1);return}return f};n.$parsers.push(f)}}function uu(n,t,i,r,u,f){var nt=t.prop(sl),tt=t[0].placeholder,ut={},ft=v(t[0].type),s,o,l,a,e,h,c,w,it,b,rt,d;if(r.$$validityState=nt,!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(u){var f,e;if(!s){if(f=t.val(),p&&(u||ut).type==="input"&&t[0].placeholder!==tt){tt=t[0].placeholder;return}ft!=="password"&&gi(i.ngTrim||"T")&&(f=g(f));e=nt&&r.$$hasNativeValidators;(r.$viewValue!==f||f===""&&e)&&(n.$root.$$phase?r.$setViewValue(f):n.$apply(function(){r.$setViewValue(f)}))}},u.hasEvent("input"))t.on("input",o);else{a=function(){l||(l=f.defer(function(){o();l=null}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||a()});if(u.hasEvent("paste"))t.on("paste cut",a)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};e=i.ngPattern;e&&(w=function(n,t){return dt(r,"pattern",r.$isEmpty(t)||n.test(t),t)},c=e.match(/^\/(.*)\/([gim]*)$/),c?(e=new RegExp(c[1],c[2]),h=function(n){return w(e,n)}):h=function(i){var r=n.$eval(e);if(!r||!r.test)throw y("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,r,st(t));return w(r,i)},r.$formatters.push(h),r.$parsers.push(h));i.ngMinlength&&(it=k(i.ngMinlength),b=function(n){return dt(r,"minlength",r.$isEmpty(n)||n.length>=it,n)},r.$parsers.push(b),r.$formatters.push(b));i.ngMaxlength&&(rt=k(i.ngMaxlength),d=function(n){return dt(r,"maxlength",r.$isEmpty(n)||n.length<=rt,n)},r.$parsers.push(d),r.$formatters.push(d))}function rl(n,t,r,u,f,e){var o,s;uu(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||pa.test(n)?(u.$setValidity("number",!0),n===""?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});il(u,"number",us,null,u.$$validityState);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(o=function(n){var t=parseFloat(r.min);return dt(u,"min",u.$isEmpty(n)||n>=t,n)},u.$parsers.push(o),u.$formatters.push(o));r.max&&(s=function(n){var t=parseFloat(r.max);return dt(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(s),u.$formatters.push(s));u.$formatters.push(function(n){return dt(u,"number",u.$isEmpty(n)||vr(n),n)})}function ul(n,t,i,r,u,f){uu(n,t,i,r,u,f);var e=function(n){return dt(r,"url",r.$isEmpty(n)||va.test(n),n)};r.$formatters.push(e);r.$parsers.push(e)}function fl(n,t,i,r,u,f){uu(n,t,i,r,u,f);var e=function(n){return dt(r,"email",r.$isEmpty(n)||ya.test(n),n)};r.$formatters.push(e);r.$parsers.push(e)}function el(n,t,i,r){l(i.name)&&t.attr("name",ar());t.on("click",function(){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value)})});r.$render=function(){var n=i.value;t[0].checked=n==r.$viewValue};i.$observe("value",r.$render)}function ol(n,t,i,r){var u=i.ngTrueValue,f=i.ngFalseValue;e(u)||(u=!0);e(f)||(f=!1);t.on("click",function(){n.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==u};r.$formatters.push(function(n){return n===u});r.$parsers.push(function(n){return n?u:f})}function cf(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],i,u,r;n:for(i=0;i<n.length;i++){for(u=n[i],r=0;r<t.length;r++)if(u==t[r])continue n;f.push(u)}return f}function u(n){if(o(n))return n;if(e(n))return n.split(" ");if(a(n)){var t=[];return r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t}return n}return{restrict:"AC",link:function(e,o,s){function l(n){var t=h(n,1);s.$addClass(t)}function v(n){var t=h(n,-1);s.$removeClass(t)}function h(n,t){var i=o.data("$classCounts")||{},u=[];return r(n,function(n){(t>0||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(t>0)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function y(n,t){var r=f(t,n),u=f(n,t);u=h(u,-1);r=h(r,1);r.length===0?i.removeClass(o,u):u.length===0?i.addClass(o,r):i.setClass(o,r,u)}function a(n){var i,r;(t===!0||e.$index%2===t)&&(i=u(n||[]),c?ti(n,c)||(r=u(c),y(r,i)):l(i));c=et(n)}var c;e.$watch(s[n],a,!0);s.$observe("class",function(){a(e.$eval(s[n]))});n!=="ngClass"&&e.$watch("$index",function(i,r){var o=i&1,f;o!==(r&1)&&(f=u(e.$eval(s[n])),o===t?l(f):v(f))})}}}]}var sl="validity",v=function(n){return e(n)?n.toLowerCase():n},fu=Object.prototype.hasOwnProperty,fi=function(n){return e(n)?n.toUpperCase():n},hl=function(n){return e(n)?n.replace(/[A-Z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)|32)}):n},cl=function(n){return e(n)?n.replace(/[a-z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)&-33)}):n},o,g,vi,yo,po,ei,rr,lf,wo,bo,it,ko,af,rt,vf,gt,yi,go,ns,yt,tt,b,yf,pf,ts,is,rs,eu,ur,us;"i"!=="I".toLowerCase()&&(v=hl,fi=cl);var p,u,ni,ou=[].slice,ll=[].push,oi=Object.prototype.toString,fr=y("ng"),er=n.angular||(n.angular={}),or,pi,pt=["0","0","0"];p=k((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]);isNaN(p)&&(p=k((/trident\/.*; rv:(\d+)/.exec(v(navigator.userAgent))||[])[1]));s.$inject=[];ft.$inject=[];o=function(){return c(Array.isArray)?Array.isArray:function(n){return oi.call(n)==="[object Array]"}}();g=function(){return String.prototype.trim?function(n){return e(n)?n.trim():n}:function(n){return e(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();pi=p<9?function(n){return n=n.nodeName?n:n[0],n.scopeName&&n.scopeName!="HTML"?fi(n.scopeName+":"+n.nodeName):n.nodeName}:function(n){return n.nodeName?n.nodeName:n[0].nodeName};vi=function(){if(f(vi.isActive_))return vi.isActive_;var n=!!(t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return vi.isActive_=n};yo=/[A-Z]/g;po={full:"1.2.28",major:1,minor:2,dot:28,codeName:"finnish-disembarkation"};w.expando="ng339";var sr=w.cache={},al=1,su=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},hr=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)},hy=w._data=function(n){return this.cache[n[this.expando]]||{}},vl=/([\:\-\_]+(.))/g,yl=/^moz([A-Z])/,wf=y("jqLite"),pl=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,wl=/<|&#?\w+;/,bl=/<([\w:]+)/,kl=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ut={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};ut.optgroup=ut.option;ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead;ut.th=ut.td;ei=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;if(t.readyState==="complete")setTimeout(r);else{this.on("DOMContentLoaded",r);w(n).on("load",r)}},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?u(this[n]):u(this[this.length+n])},length:0,push:ll,sort:[].sort,splice:[].splice};rr={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){rr[v(n)]=n});lf={};r("input,select,option,textarea,button,form,details".split(","),function(n){lf[fi(n)]=!0});r({data:tf,removeData:nf},function(n,t){w[t]=n});r({data:tf,inheritedData:nu,scope:function(n){return u.data(n,"$scope")||nu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u.data(n,"$isolateScope")||u.data(n,"$isolateScopeNoTemplate")},controller:se,injector:function(n){return nu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:rf,css:function(n,t,r){if(t=tr(t),f(r))n.style[t]=r;else{var u;return p<=8&&(u=n.currentStyle&&n.currentStyle[t],u===""&&(u="auto")),u=u||n.style[t],p<=8&&(u=u===""?i:u),u}},attr:function(n,t,r){var u=v(t),e;if(rr[u])if(f(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||s).specified?u:i;else if(f(r))n.setAttribute(t,r);else if(n.getAttribute)return e=n.getAttribute(t,2),e===null?i:e},prop:function(n,t,i){if(f(i))n[t]=i;else return n[t]},text:function(){function t(t,i){var r=n[t.nodeType];if(l(i))return r?t[r]:"";t[r]=i}var n=[];return p<9?(n[1]="innerText",n[3]="nodeValue"):n[1]=n[3]="textContent",t.$dv="",t}(),val:function(n,t){if(l(t)){if(pi(n)==="SELECT"&&n.multiple){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),i.length===0?null:i}return n.value}n.value=t},html:function(n,t){if(l(t))return n.innerHTML;for(var i=0,r=n.childNodes;i<r.length;i++)ci(r[i]);n.innerHTML=t},empty:he},function(n,t){w.prototype[t]=function(t,r){var u,s,e=this.length,f,c,o,h;if(n!==he&&(n.length==2&&n!==rf&&n!==se?t:r)===i){if(a(t)){for(u=0;u<e;u++)if(n===tf)n(this[u],t);else for(s in t)n(this[u],s,t[s]);return this}for(f=n.$dv,c=f===i?Math.min(e,1):e,o=0;o<c;o++)h=n(this[o],t,r),f=f?f+h:h;return f}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:nf,dealoc:ci,on:function dl(n,i,u,e){if(f(e))throw wf("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var o=lt(n,"events"),s=lt(n,"handle");o||lt(n,"events",o={});s||lt(n,"handle",s=uh(n,o));r(i.split(" "),function(i){var r=o[i],f,e;r||(i=="mouseenter"||i=="mouseleave"?(f=t.body.contains||t.body.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},o[i]=[],e={mouseleave:"mouseout",mouseenter:"mouseover"},dl(n,e[i],function(n){var r=this,t=n.relatedTarget;t&&(t===r||f(r,t))||s(n,i)})):(su(n,i,s),o[i]=[]),r=o[i]);r.push(u)})},off:oe,one:function(n,t,i){n=u(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;ci(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){n.nodeType===1&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){r(new w(t),function(t){(n.nodeType===1||n.nodeType===11)&&n.appendChild(t)})},prepend:function(n,t){if(n.nodeType===1){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=u(t)[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:function(n){ci(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new w(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:gr,removeClass:dr,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;l(r)&&(r=!rf(n,t));(r?gr:dr)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},next:function(n){if(n.nextElementSibling)return n.nextElementSibling;for(var t=n.nextSibling;t!=null&&t.nodeType!==1;)t=t.nextSibling;return t},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:gu,triggerHandler:function(n,t,i){var u,f,e,o=t.type||t,c=(lt(n,"events")||{})[o];c&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopPropagation:s,type:o,target:n},t.type&&(u=h(u,t)),f=et(c),e=i?[u].concat(i):[u],r(f,function(t){t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)l(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):uf(e,n(this[o],t,i,r));return f(e)?e:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});ir.prototype={put:function(n,t){this[li(n,this.nextUid)]=t},get:function(n){return this[li(n,this.nextUid)]},remove:function(n){var t=this[n=li(n,this.nextUid)];return delete this[n],t}};var gl=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,na=/,/,ta=/^\s*(_?)(\S+?)\1\s*$/,ia=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,cr=y("$injector");wo=y("$animate");bo=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&t.charAt(0)!=".")throw wo("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return arguments.length===1&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(n,t){function i(n){n&&t(n)}return{enter:function(n,t,r,u){r?r.after(n):(t&&t[0]||(t=r.parent()),t.append(n));i(u)},leave:function(n,t){n.remove();i(t)},move:function(n,t,i,r){this.enter(n,t,i,r)},addClass:function(n,t,u){t=e(t)?t:o(t)?t.join(" "):"";r(n,function(n){gr(n,t)});i(u)},removeClass:function(n,t,u){t=e(t)?t:o(t)?t.join(" "):"";r(n,function(n){dr(n,t)});i(u)},setClass:function(n,t,u,f){r(n,function(n){gr(n,t);dr(n,u)});i(f)},enabled:s}}]}];it=y("$compile");ve.$inject=["$provide","$$sanitizeUriProvider"];ko=/^(x[\:\-_]|data[\:\-_])/i;af=y("$interpolate");var ra=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ua={http:80,https:443,ftp:21},bf=y("$location");no.prototype=sf.prototype=ge.prototype={$$html5:!1,$$replace:!1,absUrl:tu("$$absUrl"),url:function(n){if(l(n))return this.$$url;var t=ra.exec(n);return t[1]&&this.path(decodeURIComponent(t[1])),(t[2]||t[1])&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:tu("$$protocol"),host:tu("$$host"),port:tu("$$port"),path:to("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)=="/"?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(e(n)||vr(n))n=n.toString(),this.$$search=ue(n);else if(a(n))r(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw bf("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:l(t)||t===null?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:to("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};rt=y("$parse");vf={};var fa=Function.prototype.call,ea=Function.prototype.apply,fs=Function.prototype.bind,lr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:s,"+":function(n,t,r,u){return(r=r(n,t),u=u(n,t),f(r))?f(u)?r+u:r:f(u)?u:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(f(i)?i:0)-(f(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"^":function(n,t,i,r){return i(n,t)^r(n,t)},"=":s,"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"&":function(n,t,i,r){return i(n,t)&r(n,t)},"|":function(n,t,i,r){return r(n,t)(n,t,i(n,t))},"!":function(n,t,i){return!i(n,t)}},oa={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},kf=function(n){this.options=n};kf.prototype={constructor:kf,lex:function(n){for(this.text=n,this.index=0,this.ch=i,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{var t=this.ch+this.peek(),r=t+this.peek(2),u=lr[this.ch],f=lr[t],e=lr[r];e?(this.tokens.push({index:this.index,text:r,fn:e}),this.index+=3):f?(this.tokens.push({index:this.index,text:t,fn:f}),this.index+=2):u?(this.tokens.push({index:this.index,text:this.ch,fn:u}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(n){return n.indexOf(this.ch)!==-1},was:function(n){return n.indexOf(this.lastCh)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||n===" "},isIdent:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||n==="$"},isExpOperator:function(n){return n==="-"||n==="+"||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var r=f(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw rt("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,r,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=v(this.text.charAt(this.index)),t=="."||this.isNumber(t))n+=t;else if(i=this.peek(),t=="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)=="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!="e")break;else this.throwError("Invalid exponent");this.index++}n=1*n;this.tokens.push({index:r,text:n,literal:!0,constant:!0,fn:function(){return n}})},readIdent:function(){for(var o=this,n="",f=this.index,i,u,e,t,r,s;this.index<this.text.length;){if(t=this.text.charAt(this.index),t==="."||this.isIdent(t)||this.isNumber(t))t==="."&&(i=this.index),n+=t;else break;this.index++}if(i)for(u=this.index;u<this.text.length;){if(t=this.text.charAt(u),t==="("){e=n.substr(i-f+1);n=n.substr(0,i-f);this.index=u;break}if(this.isWhitespace(t))u++;else break}r={index:f,text:n};lr.hasOwnProperty(n)?(r.fn=lr[n],r.literal=!0,r.constant=!0):(s=ro(n,this.options,this.text),r.fn=h(function(n,t){return s(n,t)},{assign:function(t,i){return iu(t,n,i,o.text,o.options)}}));this.tokens.push(r);e&&(this.tokens.push({index:i,text:"."}),this.tokens.push({index:i+1,text:e}))},readString:function(n){var f=this.index,t,r,e;this.index++;for(var i="",o=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),o+=t,u)t==="u"?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):(e=oa[t],i=i+(e||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:o,string:i,literal:!0,constant:!0,fn:function(){return i}});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};yi=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};yi.ZERO=h(function(){return 0},{constant:!0});yi.prototype={constructor:yi,parse:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.statements();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var n,t,i,r;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():(t=this.expect(),n=t.fn,n||this.throwError("not a primary expression",t),n.literal=!!t.literal,n.constant=!!t.constant);i=this.expect("(","[",".");)i.text==="("?(n=this.functionCall(n,r),r=null):i.text==="["?(r=n,n=this.objectIndex(n)):i.text==="."?(r=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw rt("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(this.tokens.length===0)throw rt("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){if(this.tokens.length>0){var f=this.tokens[0],u=f.text;if(u===n||u===t||u===i||u===r||!n&&!t&&!i&&!r)return f}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return u?(this.tokens.shift(),u):!1},consume:function(n){this.expect(n)||this.throwError("is unexpected, expecting ["+n+"]",this.peek())},unaryFn:function(n,t){return h(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return h(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})},binaryFn:function(n,t,i){return h(function(r,u){return t(r,u,n,i)},{constant:n.constant&&i.constant})},statements:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return n.length===1?n[0]:function(t,i){for(var f,r,u=0;u<n.length;u++)r=n[u],r&&(f=r(t,i));return f}},filterChain:function(){for(var n=this.expression(),t;;)if(t=this.expect("|"))n=this.binaryFn(n,t.fn,this.filter());else return n},filter:function(){for(var t=this.expect(),r=this.$filter(t.text),n=[],i;;)if(t=this.expect(":"))n.push(this.expression());else return i=function(t,i,u){for(var e=[u],f=0;f<n.length;f++)e.push(n[f](t,i));return r.apply(t,e)},function(){return i}},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),i,t;return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),i=this.ternary(),function(t,r){return n.assign(t,i(t,r),r)}):n},ternary:function(){var t=this.logicalOR(),i,n;if(n=this.expect("?")){if(i=this.assignment(),n=this.expect(":"))return this.ternaryFn(t,i,this.assignment());this.throwError("expected :",n)}else return t},logicalOR:function(){for(var n=this.logicalAND(),t;;)if(t=this.expect("||"))n=this.binaryFn(n,t.fn,this.logicalAND());else return n},logicalAND:function(){var n=this.equality(),t;return(t=this.expect("&&"))&&(n=this.binaryFn(n,t.fn,this.logicalAND())),n},equality:function(){var n=this.relational(),t;return(t=this.expect("==","!=","===","!=="))&&(n=this.binaryFn(n,t.fn,this.equality())),n},relational:function(){var n=this.additive(),t;return(t=this.expect("<",">","<=",">="))&&(n=this.binaryFn(n,t.fn,this.relational())),n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.fn,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.fn,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(yi.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var t=this,i=this.expect().text,r=ro(i,this.options,this.text);return h(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){var e=n(r,f);return e||n.assign(r,e={}),iu(e,i,u,t.text,t.options)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),h(function(u,f){var s=n(u,f),h=r(u,f),e,o;return(ht(h,t.text),!s)?i:(e=ct(s[h],t.text),e&&e.then&&t.options.unwrapPromises&&(o=e,"$$v"in e||(o.$$v=i,o.then(function(n){o.$$v=n})),e=e.$$v),e)},{assign:function(i,u,f){var o=ht(r(i,f),t.text),e=ct(n(i,f),t.text);return e||n.assign(i,e={}),e[o]=u}})},functionCall:function(n,t){var r=[],i;if(this.peekToken().text!==")")do r.push(this.expression());while(this.expect(","));return this.consume(")"),i=this,function(u,f){for(var e=[],h=t?t(u,f):u,o,l,c=0;c<r.length;c++)e.push(ct(r[c](u,f),i.text));return o=n(u,f,h)||s,ct(h,i.text),rc(o,i.text),l=o.apply?o.apply(h,e):o(e[0],e[1],e[2],e[3],e[4]),ct(l,i.text)}},arrayDeclaration:function(){var n=[],i=!0,t;if(this.peekToken().text!=="]")do{if(this.peek("]"))break;t=this.expression();n.push(t);t.constant||(i=!1)}while(this.expect(","));return this.consume("]"),h(function(t,i){for(var u=[],r=0;r<n.length;r++)u.push(n[r](t,i));return u},{literal:!0,constant:i})},object:function(){var n=[],r=!0,t,u,i;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t=this.expect();u=t.string||t.text;this.consume(":");i=this.expression();n.push({key:u,value:i});i.constant||(r=!1)}while(this.expect(","));return this.consume("}"),h(function(t,i){for(var f={},r,u=0;u<n.length;u++)r=n[u],f[r.key]=r.value(t,i);return f},{literal:!0,constant:r})}};go={};ns={};yt=y("$sce");tt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};b=t.createElement("a");yf=bt(n.location.href,!0);eo.$inject=["$provide"];oo.$inject=["$locale"];so.$inject=["$locale"];pf=".";var sa={yyyy:d("FullYear",4),yy:d("FullYear",2,0,!0),y:d("FullYear",1),MMMM:ru("Month"),MMM:ru("Month",!0),MM:d("Month",2,1),M:d("Month",1,1),dd:d("Date",2),d:d("Date",1),HH:d("Hours",2),H:d("Hours",1),hh:d("Hours",2,-12),h:d("Hours",1,-12),mm:d("Minutes",2),m:d("Minutes",1),ss:d("Seconds",2),s:d("Seconds",1),sss:d("Milliseconds",3),EEEE:ru("Day"),EEE:ru("Day",!0),a:gc,Z:dc},ha=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,ca=/^\-?\d+$/;co.$inject=["$locale"];ts=nt(v);is=nt(fi);lo.$inject=["$parse"];rs=nt({restrict:"E",compile:function(n,i){return p<=8&&(i.href||i.name||i.$set("href",""),n.append(t.createComment("IE fix"))),!i.href&&!i.xlinkHref&&!i.name?function(n,t){var i=oi.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});eu={};r(rr,function(n,t){if(n!="multiple"){var i=at("ng-"+t);eu[i]=function(){return{priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(["src","srcset","href"],function(n){var t=at("ng-"+n);eu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;n==="href"&&oi.call(r.prop("href"))==="[object SVGAnimatedString]"&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){if(!t){n==="href"&&u.$set(f,null);return}u.$set(f,t);p&&e&&r.prop(e,u[f])})}}}});ur={$addControl:s,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s};ao.$inject=["$element","$attrs","$scope","$animate"];var es=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:ao,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};su(r[0],"submit",o);r.on("$destroy",function(){t(function(){hr(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&iu(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&iu(n,e,i,e);h(f,ur)})}}}}}]},la=es(),aa=es(!0),va=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ya=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,pa=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,os={text:uu,number:rl,url:ul,email:fl,radio:el,checkbox:ol,hidden:s,button:s,submit:s,reset:s,file:s};us=["badInput"];var ss=["$browser","$sniffer",function(n,t){return{restrict:"E",require:"?ngModel",link:function(i,r,u,f){f&&(os[v(u.type)]||os.text)(i,r,u,f,t,n)}}}],hu="ng-valid",cu="ng-invalid",wi="ng-pristine",lu="ng-dirty",wa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(n,t,i,u,f,e){function h(n,t){t=t?"-"+kr(t,"-"):"";e.removeClass(u,(n?cu:hu)+t);e.addClass(u,(n?hu:cu)+t)}var c,a,o;if(this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=i.name,c=f(i.ngModel),a=c.assign,!a)throw y("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",i.ngModel,st(u));this.$render=s;this.$isEmpty=function(n){return l(n)||n===""||n===null||n!==n};var w=u.inheritedData("$formController")||ur,v=0,p=this.$error={};u.addClass(wi);h(!0);this.$setValidity=function(n,t){p[n]!==!t&&(t?(p[n]&&v--,v||(h(!0),this.$valid=!0,this.$invalid=!1)):(h(!1),this.$invalid=!0,this.$valid=!1,v++),p[n]=!t,h(t,n),w.$setValidity(n,t,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(u,lu);e.addClass(u,wi)};this.$setViewValue=function(i){this.$viewValue=i;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(u,wi),e.addClass(u,lu),w.$setDirty());r(this.$parsers,function(n){i=n(i)});this.$modelValue!==i&&(this.$modelValue=i,a(n,i),r(this.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}}))};o=this;n.$watch(function(){var t=c(n),i,r;if(o.$modelValue!==t){for(i=o.$formatters,r=i.length,o.$modelValue=t;r--;)t=i[r](t);o.$viewValue!==t&&(o.$viewValue=t,o.$render())}return t})}],ba=function(){return{require:["ngModel","^?form"],controller:wa,link:function(n,t,i,r){var u=r[0],f=r[1]||ur;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})}}},ka=nt({require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),hs=function(){return{require:"?ngModel",link:function(n,t,i,r){if(r){i.required=!0;var u=function(n){if(i.required&&r.$isEmpty(n)){r.$setValidity("required",!1);return}return r.$setValidity("required",!0),n};r.$formatters.push(u);r.$parsers.unshift(u);i.$observe("required",function(){u(r.$viewValue)})}}}},da=function(){return{require:"ngModel",link:function(n,t,u,f){var e=/\/(.*)\//.exec(u.ngList),s=e&&new RegExp(e[1])||u.ngList||",",h=function(n){if(!l(n)){var t=[];return n&&r(n.split(s),function(n){n&&t.push(g(n))}),t}};f.$parsers.push(h);f.$formatters.push(function(n){return o(n)?n.join(", "):i});f.$isEmpty=function(n){return!n||!n.length}}}},ga=/^(true|false|\d+)$/,nv=function(){return{priority:100,compile:function(n,t){return ga.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},tv=kt({compile:function(n){return n.addClass("ng-binding"),function(n,t,r){t.data("$binding",r.ngBind);n.$watch(r.ngBind,function(n){t.text(n==i?"":n)})}}}),iv=["$interpolate",function(n){return function(t,i,r){var u=n(i.attr(r.$attr.ngBindTemplate));i.addClass("ng-binding").data("$binding",u);r.$observe("ngBindTemplate",function(n){i.text(n)})}}],rv=["$sce","$parse",function(n,t){return{compile:function(i){return i.addClass("ng-binding"),function(i,r,u){function e(){return(f(i)||"").toString()}r.data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);i.$watch(e,function(){r.html(n.getTrustedHtml(f(i))||"")})}}}}],uv=cf("",!0),fv=cf("Odd",0),ev=cf("Even",1),ov=kt({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),sv=[function(){return{scope:!0,controller:"@",priority:500}}],cs={},hv={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=at("ng-"+n);cs[t]=["$parse","$rootScope",function(i,r){return{compile:function(u,f){var e=i(f[t],!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};hv[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var cv=["$animate",function(n){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,o,s;i.$watch(u.ngIf,function(f){gi(f)?o||(o=i.$new(),e(o,function(i){i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)})):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),h&&(s=bu(h.clone),n.leave(s,function(){s=null}),h=null))})}}}],lv=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:er.noop,compile:function(e,o){var h=o.ngInclude||o.src,c=o.onload||"",s=o.autoscroll;return function(e,o,l,a,v){var b=0,y,p,w,k=function(){p&&(p.remove(),p=null);y&&(y.$destroy(),y=null);w&&(r.leave(w,function(){p=null}),p=w,w=null)};e.$watch(u.parseAsResourceUrl(h),function(u){var l=function(){f(s)&&(!s||e.$eval(s))&&i()},h=++b;u?(n.get(u,{cache:t}).success(function(n){var t,i;h===b&&(t=e.$new(),a.template=n,i=v(t,function(n){k();r.enter(n,null,o,l)}),y=t,w=i,y.$emit("$includeContentLoaded"),e.$eval(c))}).error(function(){h===b&&k()}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],av=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],vv=kt({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),yv=kt({terminal:!0,priority:1e3}),pv=["$locale","$interpolate",function(n,t){var i=/{}/g;return{restrict:"EA",link:function(u,f,e){var s=e.count,l=e.$attr.when&&f.attr(e.$attr.when),h=e.offset||0,o=u.$eval(l)||{},c={},a=t.startSymbol(),y=t.endSymbol(),p=/^when(Minus)?(.+)$/;r(e,function(n,t){p.test(t)&&(o[v(t.replace("when","").replace("Minus","-"))]=f.attr(e.$attr[t]))});r(o,function(n,r){c[r]=t(n.replace(i,a+s+"-"+h+y))});u.$watch(function(){var t=parseFloat(u.$eval(s));return isNaN(t)?"":(t in o||(t=n.pluralCat(t-h)),c[t](u,f,!0))},function(n){f.text(n)})}}}],wv=["$parse","$animate",function(n,i){function s(n){return n.clone[0]}function e(n){return n.clone[n.clone.length-1]}var o="$$NG_REMOVED",f=y("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(h,c,l,a,v){var b=l.ngRepeat,y=b.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),d,it,g,rt,ut,nt,ft,tt,w,k={$id:li},p;if(!y)throw f("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",b);if(nt=y[1],ft=y[2],d=y[3],d?(it=n(d),g=function(n,t,i){return w&&(k[w]=n),k[tt]=t,k.$index=i,it(h,k)}):(rt=function(n,t){return li(t)},ut=function(n){return n}),y=nt.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!y)throw f("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",nt);tt=y[3]||y[1];w=y[2];p={};h.$watchCollection(ft,function(n){var l,ct,ft=c[0],et,st={},vt,y,k,ht,nt,lt,d,a,it=[],at;if(bi(n))d=n,lt=g||rt;else{lt=g||ut;d=[];for(k in n)n.hasOwnProperty(k)&&k.charAt(0)!="$"&&d.push(k);d.sort()}for(vt=d.length,ct=it.length=d.length,l=0;l<ct;l++)if(k=n===d?l:d[l],ht=n[k],nt=lt(k,ht,l),ri(nt,"`track by` id"),p.hasOwnProperty(nt))a=p[nt],delete p[nt],st[nt]=a,it[l]=a;else if(st.hasOwnProperty(nt)){r(it,function(n){n&&n.scope&&(p[n.id]=n)});throw f("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",b,nt,ot(ht));}else it[l]={id:nt},st[nt]=!1;for(k in p)p.hasOwnProperty(k)&&(a=p[k],at=bu(a.clone),i.leave(at),r(at,function(n){n[o]=!0}),a.scope.$destroy());for(l=0,ct=d.length;l<ct;l++){if(k=n===d?l:d[l],ht=n[k],a=it[l],it[l-1]&&(ft=e(it[l-1])),a.scope){y=a.scope;et=ft;do et=et.nextSibling;while(et&&et[o]);s(a)!=et&&i.move(bu(a.clone),null,u(ft));ft=e(a)}else y=h.$new();y[tt]=ht;w&&(y[w]=k);y.$index=l;y.$first=l===0;y.$last=l===vt-1;y.$middle=!(y.$first||y.$last);y.$odd=!(y.$even=(l&1)==0);a.scope||v(y,function(n){n[n.length++]=t.createComment(" end ngRepeat: "+b+" ");i.enter(n,null,u(ft));ft=n;a.scope=y;a.clone=n;st[a.id]=a})}p=st})}}}],bv=["$animate",function(n){return function(t,i,r){t.$watch(r.ngShow,function(t){n[gi(t)?"removeClass":"addClass"](i,"ng-hide")})}}],kv=["$animate",function(n){return function(t,i,r){t.$watch(r.ngHide,function(t){n[gi(t)?"addClass":"removeClass"](i,"ng-hide")})}}],dv=kt(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),gv=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,i,u,f){var c=u.ngSwitch||u.on,h=[],s=[],e=[],o=[];t.$watch(c,function(i){for(var l,c=0,a=e.length;c<a;++c)e[c].remove();for(e.length=0,c=0,a=o.length;c<a;++c)l=s[c],o[c].$destroy(),e[c]=l,n.leave(l,function(){e.splice(c,1)});s.length=0;o.length=0;(h=f.cases["!"+i]||f.cases["?"])&&(t.$eval(u.change),r(h,function(i){var r=t.$new();o.push(r);i.transclude(r,function(t){var r=i.element;s.push(t);n.enter(t,r.parent(),r)})}))})}}}],ny=kt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),ty=kt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),iy=kt({link:function(n,t,i,r,u){if(!u)throw y("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",st(t));u(function(n){t.empty();t.append(n)})}}),ry=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type=="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],uy=y("ngOptions"),fy=nt({terminal:!0}),ey=["$compile","$parse",function(n,e){var h=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,c={$setViewValue:s};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=c,o,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;o=t;u=i};r.addOption=function(t){ri(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove())};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){var i="? "+li(t)+" ?";u.val(i);n.prepend(u);n.val(i);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=s})}],link:function(s,c,a,v){function ut(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(k.parent()&&k.remove(),t.val(n),n===""&&tt.prop("selected",!0)):l(n)&&tt?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){k.parent()&&k.remove();i.$setViewValue(t.val())})})}function ft(n,t,i){var u;i.$render=function(){var n=new ir(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){ti(u,i.$viewValue)||(u=et(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function ot(t,r,u){function it(){var r=!1,n,f,i;if(w)if(n=u.$modelValue,s&&o(n))for(r=new ir([]),f={},i=0;i<n.length;i++)f[l]=n[i],r.put(s(t,f),n[i]);else r=new ir(n);return r}function b(){for(var st={"":[]},pt=[""],h,ft,n,b,nt,o,wt=u.$modelValue,bt=g(t)||[],kt=a?df(bt):bt,ct,gt,yt,et,c={},lt,at=it(),e,ot,vt,dt,i=0;yt=kt.length,i<yt;i++){if(ct=i,a){if(ct=kt[i],ct.charAt(0)==="$")continue;c[a]=ct}c[l]=bt[ct];h=ut(t,c)||"";(ft=st[h])||(ft=st[h]=[],pt.push(h));w?lt=f(at.remove(s?s(t,c):k(t,c))):(s?(dt={},dt[l]=wt,lt=s(t,dt)===s(t,c)):lt=wt===k(t,c),at=at||lt);vt=tt(t,c);vt=f(vt)?vt:"";ft.push({id:s?s(t,c):a?kt[i]:i,label:vt,selected:lt})}for(w||(y||wt===null?st[""].unshift({id:"",label:"",selected:!at}):at||st[""].unshift({id:"?",label:"",selected:!0})),et=0,gt=pt.length;et<gt;et++){for(h=pt[et],ft=st[h],v.length<=et?(b={element:ht.clone().attr("label",h),label:ft.label},nt=[b],v.push(nt),r.append(b.element)):(nt=v[et],b=nt[0],b.label!=h&&b.element.attr("label",b.label=h)),e=null,i=0,yt=ft.length;i<yt;i++)n=ft[i],(o=nt[i+1])?(e=o.element,o.label!==n.label&&(e.text(o.label=n.label),e.prop("label",o.label)),o.id!==n.id&&e.val(o.id=n.id),e[0].selected!==n.selected&&(e.prop("selected",o.selected=n.selected),p&&e.prop("selected",o.selected))):(n.id===""&&y?ot=y:(ot=rt.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).prop("label",n.label).text(n.label),nt.push(o={element:ot,label:n.label,id:n.id,selected:n.selected}),d.addOption(n.label,ot),e?e.after(ot):b.element.append(ot),e=ot);for(i++;nt.length>i;)n=nt.pop(),d.removeOption(n.label),n.element.remove()}while(v.length>et)v.pop()[0].element.remove()}var c;if(!(c=nt.match(h)))throw uy("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",nt,st(r));var tt=e(c[2]||c[1]),l=c[4]||c[6],a=c[5],ut=e(c[3]||""),k=e(c[2]?c[1]:l),g=e(c[7]),ft=c[8],s=ft?e(c[8]):null,v=[[{element:r,label:""}]];y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());r.empty();r.on("change",function(){t.$apply(function(){var p,h=g(t)||[],n={},f,o,d,c,y,nt,tt,e;if(w){for(o=[],y=0,tt=v.length;y<tt;y++)for(p=v[y],c=1,nt=p.length;c<nt;c++)if((d=p[c].element)[0].selected){if(f=d.val(),a&&(n[a]=f),s){for(e=0;e<h.length;e++)if(n[l]=h[e],s(t,n)==f)break}else n[l]=h[f];o.push(k(t,n))}}else if(f=r.val(),f=="?")o=i;else if(f==="")o=null;else if(s){for(e=0;e<h.length;e++)if(n[l]=h[e],s(t,n)==f){o=k(t,n);break}}else n[l]=h[f],a&&(n[a]=f),o=k(t,n);u.$setViewValue(o);b()})});u.$render=b;t.$watchCollection(g,b);t.$watchCollection(function(){var u={},i=g(t),r,n,f;if(i){for(r=new Array(i.length),n=0,f=i.length;n<f;n++)u[l]=i[n],r[n]=tt(t,u);return r}},b);w&&t.$watchCollection(function(){return u.$modelValue},b)}if(v[1]){for(var d=v[0],b=v[1],w=a.multiple,nt=a.ngOptions,y=!1,tt,rt=u(t.createElement("option")),ht=u(t.createElement("optgroup")),k=rt.clone(),g=0,it=c.children(),ct=it.length;g<ct;g++)if(it[g].value===""){tt=y=it.eq(g);break}d.init(b,y,k);w&&(b.$isEmpty=function(n){return!n||n.length===0});nt?ot(s,c,b):w?ft(s,c,b):ut(s,c,b,d)}}}}],oy=["$interpolate",function(n){var t={addOption:s,removeOption:s};return{restrict:"E",priority:100,compile:function(i,r){if(l(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e="$selectController",o=i.parent(),f=o.data(e)||o.parent().data(e);f&&f.databound?i.prop("selected",!1):f=t;u?n.$watch(u,function(n,t){r.$set("value",n);n!==t&&f.removeOption(t);f.addOption(n)}):f.addOption(r.value);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],sy=nt({restrict:"E",terminal:!0});if(n.angular.bootstrap){console.log("WARNING: Tried to load angular more than once.");return}ds();nh(er);u(t).ready(function(){ks(t,fe)})}(window,document);window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}<\/style>'),function(n,t){"use strict";function d(){this.$get=["$$sanitizeUri",function(n){return function(t){var i=[];return nt(t,e(i,function(t,i){return!/^unsafe/.test(n(t,i))})),i.join("")}}]}function g(n){var i=[],r=e(i,t.noop);return r.chars(n),i.join("")}function i(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function nt(n,i){function d(n,f,e,o){if(f=t.lowercase(f),y[f])while(r.last()&&p[r.last()])a("",r.last());v[f]&&r.last()==f&&a("",f);o=c[f]||!!o;o||r.push(f);var s={};e.replace(it,function(n,t,i,r,f){var e=i||r||f||"";s[t]=u(e)});i.start&&i.start(f,s,o)}function a(n,u){var f=0,e;if(u=t.lowercase(u),u)for(f=r.length-1;f>=0;f--)if(r[f]==u)break;if(f>=0){for(e=r.length-1;e>=f;e--)i.end&&i.end(r[e]);r.length=f}}typeof n!="string"&&(n=n===null||typeof n=="undefined"?"":""+n);var e,l,f,r=[],k=n,b;for(r.last=function(){return r[r.length-1]};n;){if(b="",l=!0,r.last()&&w[r.last()]?(n=n.replace(new RegExp("(.*)<\\s*\\/\\s*"+r.last()+"[^>]*>","i"),function(n,t){return t=t.replace(ft,"$1").replace(et,"$1"),i.chars&&i.chars(u(t)),""}),a("",r.last())):(n.indexOf("<!--")===0?(e=n.indexOf("--",4),e>=0&&n.lastIndexOf("-->",e)===e&&(i.comment&&i.comment(n.substring(4,e)),n=n.substring(e+3),l=!1)):h.test(n)?(f=n.match(h),f&&(n=n.replace(f[0],""),l=!1)):ut.test(n)?(f=n.match(s),f&&(n=n.substring(f[0].length),f[0].replace(s,a),l=!1)):rt.test(n)&&(f=n.match(o),f?(f[4]&&(n=n.substring(f[0].length),f[0].replace(o,d)),l=!1):(b+="<",n=n.substring(1))),l&&(e=n.indexOf("<"),b+=e<0?n:n.substring(0,e),n=e<0?"":n.substring(e),i.chars&&i.chars(u(b)))),n==k)throw tt("badparse","The sanitizer was unable to parse the following block of html: {0}",n);k=n}a()}function u(n){if(!n)return"";var i=ct.exec(n),u=i[1],f=i[3],t=i[2];return t&&(r.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in r?r.textContent:r.innerText),u+t+f}function f(n){return n.replace(/&/g,"&amp;").replace(ot,function(n){var t=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(st,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function e(n,i){var u=!1,r=t.bind(n,n.push);return{start:function(n,e,o){n=t.lowercase(n);!u&&w[n]&&(u=n);u||b[n]!==!0||(r("<"),r(n),t.forEach(e,function(u,e){var o=t.lowercase(e),s=n==="img"&&o==="src"||o==="background";ht[o]===!0&&(k[o]!==!0||i(u,s))&&(r(" "),r(e),r('="'),r(f(u)),r('"'))}),r(o?"/>":">"))},end:function(n){n=t.lowercase(n);u||b[n]!==!0||(r("<\/"),r(n),r(">"));n==u&&(u=!1)},chars:function(n){u||r(f(n))}}}var tt=t.$$minErr("$sanitize"),o=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,s=/^<\/\s*([\w:-]+)[^>]*>/,it=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,rt=/^</,ut=/^<\//,ft=/<!--(.*?)-->/g,h=/<!DOCTYPE([^>]*?)>/i,et=/<!\[CDATA\[(.*?)]]>/g,ot=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,st=/([^\#-~| |!])/g,c=i("area,br,col,hr,img,wbr"),l=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),a=i("rp,rt"),v=t.extend({},a,l),y=t.extend({},l,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),p=t.extend({},a,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),w=i("script,style"),b=t.extend({},c,y,p,v),k=i("background,cite,href,longdesc,src,usemap"),ht=t.extend({},k,i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width")),r=document.createElement("pre"),ct=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",d);t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,r=/^mailto:/;return function(u,f){function c(n){n&&e.push(g(n))}function a(n,i){e.push("<a ");t.isDefined(f)&&(e.push('target="'),e.push(f),e.push('" '));e.push('href="',n.replace('"',"&quot;"),'">');c(i);e.push("<\/a>")}if(!u)return u;for(var o,s=u,e=[],h,l;o=s.match(i);)h=o[0],o[2]==o[3]&&(h="mailto:"+h),l=o.index,c(s.substr(0,l)),a(h,o[0].replace(r,"")),s=s.substring(l+o[0].length);return c(s),n(e.join(""))}}])}(window,window.angular),function(n,t,i){"use strict";function f(n){return n!=null&&n!==""&&n!=="hasOwnProperty"&&o.test("."+n)}function e(n,t){var e,u,o,s;if(!f(t))throw r("badmember",'Dotted member path "@{0}" is invalid.',t);for(e=t.split("."),u=0,o=e.length;u<o&&n!==i;u++)s=e[u],n=n!==null?n[s]:i;return n}function u(n,i){i=i||{};t.forEach(i,function(n,t){delete i[t]});for(var r in n)n.hasOwnProperty(r)&&(r.charAt(0)!=="$"||r.charAt(1)!=="$")&&(i[r]=n[r]);return i}var r=t.$$minErr("$resource"),o=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;t.module("ngResource",["ng"]).factory("$resource",["$http","$q",function(n,f){function v(n){return y(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function y(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function c(n,t){this.template=n;this.defaults=t||{};this.urlParams={}}function l(v,y,b){function d(n,t){var i={};return t=h({},y,t),o(t,function(t,r){s(t)&&(t=t());i[r]=t&&t.charAt&&t.charAt(0)=="@"?e(n,t.substr(1)):t}),i}function g(n){return n.resource}function k(n){u(n||{},this)}var nt=new c(v);return b=h({},p,b),o(b,function(e,c){var l=/^(POST|PUT|PATCH)$/i.test(e.method);k[c]=function(c,v,y,p){var et={},tt,it,ut,rt;switch(arguments.length){case 4:ut=p;it=y;case 3:case 2:if(s(v)){if(s(c)){it=c;ut=v;break}it=v;ut=y}else{et=c;tt=v;it=y;break}case 1:s(c)?it=c:l?tt=c:et=c;break;case 0:break;default:throw r("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length);}var ot=this instanceof k,b=ot?tt:e.isArray?[]:new k(tt),ft={},st=e.interceptor&&e.interceptor.response||g,ht=e.interceptor&&e.interceptor.responseError||i;return(o(e,function(n,t){t!="params"&&t!="isArray"&&t!="interceptor"&&(ft[t]=w(n))}),l&&(ft.data=tt),nt.setUrlParams(ft,h({},d(tt,e.params||{}),et),e.url),rt=n(ft).then(function(n){var i=n.data,f=b.$promise;if(i){if(t.isArray(i)!==!!e.isArray)throw r("badcfg","Error in resource configuration. Expected response to contain an {0} but got an {1}",e.isArray?"array":"object",t.isArray(i)?"array":"object");e.isArray?(b.length=0,o(i,function(n){typeof n=="object"?b.push(new k(n)):b.push(n)})):(u(i,b),b.$promise=f)}return b.$resolved=!0,n.resource=b,n},function(n){return b.$resolved=!0,(ut||a)(n),f.reject(n)}),rt=rt.then(function(n){var t=st(n);return(it||a)(t,n.headers),t},ht),!ot)?(b.$promise=rt,b.$resolved=!1,b):rt};k.prototype["$"+c]=function(n,t,i){s(n)&&(i=t,t=n,n={});var r=k[c].call(this,n,this,t,i);return r.$promise||r}}),k.bind=function(n){return l(v,h({},y,n),b)},k}var p={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},a=t.noop,o=t.forEach,h=t.extend,w=t.copy,s=t.isFunction;return c.prototype={setUrlParams:function(n,i,u){var e=this,f=u||e.template,s,h,c=e.urlParams={};o(f.split(/\W/),function(n){if(n==="hasOwnProperty")throw r("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(n)&&n&&new RegExp("(^|[^\\\\]):"+n+"(\\W|$)").test(f)&&(c[n]=!0)});f=f.replace(/\\:/g,":");i=i||{};o(e.urlParams,function(n,r){s=i.hasOwnProperty(r)?i[r]:e.defaults[r];t.isDefined(s)&&s!==null?(h=v(s),f=f.replace(new RegExp(":"+r+"(\\W|$)","g"),function(n,t){return h+t})):f=f.replace(new RegExp("(/?):"+r+"(\\W|$)","g"),function(n,t,i){return i.charAt(0)=="/"?i:t+i})});f=f.replace(/\/+$/,"")||"/";f=f.replace(/\/\.(?=\w+($|\?))/,".");n.url=f.replace(/\/\\\./,"/.");o(i,function(t,i){e.urlParams[i]||(n.params=n.params||{},n.params[i]=t)})}},l}])}(window,window.angular);angular.module("ui.bootstrap",["ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(f.style[t]!==undefined)return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=undefined)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){if(f)f=!1,s(),i.css({height:0});else{i.css({height:i[0].scrollHeight+"px"});var n=i[0].offsetWidth;i.removeClass("collapse in").addClass("collapsing");e({height:0}).then(s)}}function s(){i.removeClass("collapsing");i.addClass("collapse")}var f=!0,u;t.$watch(r.collapse,function(n){n?c():h()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);t!==-1&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.$watch("isOpen",function(t){t&&r.closeOthers(n)});n.toggleOpen=function(){n.isDisabled||(n.isOpen=!n.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(n,t){n.closeable="close"in t;this.close=n.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(n){return{require:"alert",link:function(t,i,r,u){n(function(){u.close()},parseInt(r.dismissOnTimeout,10))}}}]);angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,n.$eval(i.btnRadio)))};t.bind(f.toggleEvent,function(){var r=t.hasClass(f.activeClass);(!r||angular.isDefined(i.uncheckable))&&n.$apply(function(){u.$setViewValue(r?null:n.$eval(i.btnRadio));u.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){var r=n.$eval(t);return angular.isDefined(r)?r:i}var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.bind(f.toggleEvent,function(){n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(n,t,i,r){function h(){c();var t=+n.interval;!isNaN(t)&&t>0&&(o=i(a,t))}function c(){o&&(i.cancel(o),o=null)}function a(){var t=+n.interval;s&&!isNaN(t)&&t>0?n.next():n.pause()}var u=this,f=u.slides=n.slides=[],e=-1,o,s,l;u.currentSlide=null;l=!1;u.select=n.select=function(i,o){function c(){if(!l){if(u.currentSlide&&angular.isString(o)&&!n.noTransition&&i.$element){i.$element.addClass(o);var t=i.$element[0].offsetWidth;angular.forEach(f,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})});angular.extend(i,{direction:o,active:!0,entering:!0});angular.extend(u.currentSlide||{},{direction:o,leaving:!0});n.$currentTransition=r(i.$element,{}),function(t,i){n.$currentTransition.then(function(){s(t,i)},function(){s(t,i)})}(i,u.currentSlide)}else s(i,u.currentSlide);u.currentSlide=i;e=a;h()}}function s(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var a=f.indexOf(i);o===undefined&&(o=a>e?"next":"prev");i&&i!==u.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(c)):c())};n.$on("$destroy",function(){l=!0});u.indexOfSlide=function(n){return f.indexOf(n)};n.next=function(){var t=(e+1)%f.length;if(!n.$currentTransition)return u.select(f[t],"next")};n.prev=function(){var t=e-1<0?f.length-1:e-1;if(!n.$currentTransition)return u.select(f[t],"prev")};n.isActive=function(n){return u.currentSlide===n};n.$watch("interval",h);n.$on("$destroy",c);n.play=function(){s||(s=!0,h())};n.pause=function(){n.noPause||(s=!1,c())};u.addSlide=function(t,i){t.$element=i;f.push(t);f.length===1||t.active?(u.select(f[f.length-1]),f.length==1&&n.play()):t.active=!1};u.removeSlide=function(n){var t=f.indexOf(n);f.splice(t,1);f.length>0&&n.active?t>=f.length?u.select(f[t-1]):u.select(f[t]):e>t&&e--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)});n.$watch("active",function(t){t&&r.select(n)})}}});angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(n,t){function i(n){var r=[],i=n.split("");return angular.forEach(u,function(t,u){var f=n.indexOf(u),e,o;if(f>-1){for(n=n.split(""),i[f]="("+t.regex+")",n[f]="$",e=f+1,o=f+u.length;e<o;e++)i[e]="",n[e]="$";n=n.join("");r.push({index:f,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(r,"index")}}function r(n,t,i){return t===1&&i>28?i===29&&(n%4==0&&n%100!=0||n%400==0):t===3||t===5||t===8||t===10?i<31:!0}this.parsers={};var u={yyyy:{regex:"\\d{4}",apply:function(n){this.year=+n}},yy:{regex:"\\d{2}",apply:function(n){this.year=+n+2e3}},y:{regex:"\\d{1,4}",apply:function(n){this.year=+n}},MMMM:{regex:n.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:n.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1}},M:{regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},EEEE:{regex:n.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:n.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(t,u){var f,h,e,c,s;if(!angular.isString(t)||!u)return t;u=n.DATETIME_FORMATS[u]||u;this.parsers[u]||(this.parsers[u]=i(u));var l=this.parsers[u],a=l.regex,v=l.map,o=t.match(a);if(o&&o.length){for(f={year:1900,month:0,date:1,hours:0},e=1,c=o.length;e<c;e++)s=v[e-1],s.apply&&s.apply.call(f,o[e]);return r(f.year,f.month,f.date)&&(h=new Date(f.year,f.month,f.date,f.hours)),h}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return(i(n,"position")||"static")==="static"}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var a=i.split("-"),h=a[0],e=a[1]||"center",u,c,l,f,o,s;u=r?this.offset(n):this.position(n);c=t.prop("offsetWidth");l=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-c/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-l/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(h){case"right":f={top:s[e](),left:o[h]()};break;case"left":f={top:s[e](),left:u.left-c};break;case"bottom":f={top:s[h](),left:o[e]()};break;default:f={top:u.top-l,left:o[e]()}}return f}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(n,t,i,r,u,f,e,o){var s=this,h={$setViewValue:angular.noop},c;this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(i,u){s[i]=angular.isDefined(t[i])?u<8?r(t[i])(n.$parent):n.$parent.$eval(t[i]):o[i]});angular.forEach(["minDate","maxDate"],function(r){t[r]?n.$parent.$watch(i(t[r]),function(n){s[r]=n?new Date(n):null;s.refreshView()}):s[r]=o[r]?new Date(o[r]):null});n.datepickerMode=n.datepickerMode||o.datepickerMode;n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(Math.random()*1e4);this.activeDate=angular.isDefined(t.initDate)?n.$parent.$eval(t.initDate):new Date;n.isActive=function(t){return s.compare(t.date,s.activeDate)===0?(n.activeDateId=t.uid,!0):!1};this.init=function(n){h=n;h.$render=function(){s.render()}};this.render=function(){if(h.$modelValue){var n=new Date(h.$modelValue),t=!isNaN(n);t?this.activeDate=n:f.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');h.$setValidity("date",t)}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var n=h.$modelValue?new Date(h.$modelValue):null;h.$setValidity("date-disabled",!n||this.element&&!this.isDisabled(n))}};this.createDateObject=function(n,t){var i=h.$modelValue?new Date(h.$modelValue):null;return{date:n,label:e(n,t),selected:i&&this.compare(n,i)===0,disabled:this.isDisabled(n),current:this.compare(n,new Date)===0}};this.isDisabled=function(i){return this.minDate&&this.compare(i,this.minDate)<0||this.maxDate&&this.compare(i,this.maxDate)>0||t.dateDisabled&&n.dateDisabled({date:i,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===s.minMode){var i=h.$modelValue?new Date(h.$modelValue):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());h.$setViewValue(i);h.$render()}else s.activeDate=t,n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)-1]};n.move=function(n){var t=s.activeDate.getFullYear()+n*(s.step.years||0),i=s.activeDate.getMonth()+n*(s.step.months||0);s.activeDate.setFullYear(t,i,1);s.refreshView()};n.toggleMode=function(t){(t=t||1,(n.datepickerMode!==s.maxMode||t!==1)&&(n.datepickerMode!==s.minMode||t!==-1))&&(n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)+t])};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};c=function(){u(function(){s.element[0].focus()},0,!1)};n.$on("datepicker.focus",c);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),i==="enter"||i==="space"){if(s.isDisabled(s.activeDate))return;n.select(s.activeDate);c()}else t.ctrlKey&&(i==="up"||i==="down")?(n.toggleMode(i==="up"?1:-1),c()):(s.handleKeyDown(i,t),s.refreshView())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}}).directive("daypicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,i,r,u){function f(n,t){return t===1&&n%4==0&&(n%100!=0||n%400==0)?29:s[t]}function e(n,t){var r=new Array(t),i=new Date(n),u=0;for(i.setHours(12);u<t;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}t.showWeeks=u.showWeeks;u.step={months:1};u.element=i;var s=[31,28,31,30,31,30,31,31,30,31,30,31];u._refreshView=function(){var p=u.activeDate.getFullYear(),h=u.activeDate.getMonth(),c=new Date(p,h,1),s=u.startingDay-c.getDay(),l=s>0?7-s:-s,a=new Date(c),i,r,f,v,y;for(l>0&&a.setDate(-l+1),i=e(a,42),r=0;r<42;r++)i[r]=angular.extend(u.createDateObject(i[r],u.formatDay),{secondary:i[r].getMonth()!==h,uid:t.uniqueId+"-"+r});for(t.labels=new Array(7),f=0;f<7;f++)t.labels[f]={abbr:n(i[f].date,u.formatDayHeader),full:n(i[f].date,"EEEE")};if(t.title=n(u.activeDate,u.formatDayTitle),t.rows=u.split(i,7),t.showWeeks)for(t.weekNumbers=[],v=o(t.rows[0][0].date),y=t.rows.length;t.weekNumbers.push(v++)<y;);};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};u.handleKeyDown=function(n){var t=u.activeDate.getDate(),i;n==="left"?t=t-1:n==="up"?t=t-7:n==="right"?t=t+1:n==="down"?t=t+7:n==="pageup"||n==="pagedown"?(i=u.activeDate.getMonth()+(n==="pageup"?-1:1),u.activeDate.setMonth(i,1),t=Math.min(f(u.activeDate.getFullYear(),u.activeDate.getMonth()),t)):n==="home"?t=1:n==="end"&&(t=f(u.activeDate.getFullYear(),u.activeDate.getMonth()));u.activeDate.setDate(t)};u.refreshView()}}}]).directive("monthpicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,i,r,u){u.step={years:1};u.element=i;u._refreshView=function(){for(var r=new Array(12),f=u.activeDate.getFullYear(),i=0;i<12;i++)r[i]=angular.extend(u.createDateObject(new Date(f,i,1),u.formatMonth),{uid:t.uniqueId+"-"+i});t.title=n(u.activeDate,u.formatMonthTitle);t.rows=u.split(r,3)};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())};u.handleKeyDown=function(n){var t=u.activeDate.getMonth(),i;n==="left"?t=t-1:n==="up"?t=t-3:n==="right"?t=t+1:n==="down"?t=t+3:n==="pageup"||n==="pagedown"?(i=u.activeDate.getFullYear()+(n==="pageup"?-1:1),u.activeDate.setFullYear(i)):n==="home"?t=0:n==="end"&&(t=11);u.activeDate.setMonth(t)};u.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(n,t,i,r){function f(n){return parseInt((n-1)/u,10)*u+1}var u=r.yearRange;r.step={years:u};r.element=t;r._refreshView=function(){for(var i=new Array(u),t=0,e=f(r.activeDate.getFullYear());t<u;t++)i[t]=angular.extend(r.createDateObject(new Date(e+t,0,1),r.formatYear),{uid:n.uniqueId+"-"+t});n.title=[i[0].label,i[u-1].label].join(" - ");n.rows=r.split(i,5)};r.compare=function(n,t){return n.getFullYear()-t.getFullYear()};r.handleKeyDown=function(n){var t=r.activeDate.getFullYear();n==="left"?t=t-1:n==="up"?t=t-5:n==="right"?t=t+1:n==="down"?t=t+5:n==="pageup"||n==="pagedown"?t+=(n==="pageup"?-1:1)*r.step.years:n==="home"?t=f(r.activeDate.getFullYear()):n==="end"&&(t=f(r.activeDate.getFullYear())+u-1);r.activeDate.setFullYear(t)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(n,t,i,r,u,f,e){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(o,s,h,c){function b(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function k(n){if(n){if(angular.isDate(n)&&!isNaN(n))return c.$setValidity("date",!0),n;if(angular.isString(n)){var t=f.parse(n,p)||new Date(n);return isNaN(t)?(c.$setValidity("date",!1),undefined):(c.$setValidity("date",!0),t)}return c.$setValidity("date",!1),undefined}return c.$setValidity("date",!0),null}var p,g=angular.isDefined(h.closeOnDateSelection)?o.$parent.$eval(h.closeOnDateSelection):e.closeOnDateSelection,d=angular.isDefined(h.datepickerAppendToBody)?o.$parent.$eval(h.datepickerAppendToBody):e.appendToBody,l,a,v,w,y;o.showButtonBar=angular.isDefined(h.showButtonBar)?o.$parent.$eval(h.showButtonBar):e.showButtonBar;o.getText=function(n){return o[n+"Text"]||e[n+"Text"]};h.$observe("datepickerPopup",function(n){p=n||e.datepickerPopup;c.$render()});l=angular.element("<div datepicker-popup-wrap><div datepicker><\/div><\/div>");l.attr({"ng-model":"date","ng-change":"dateSelection()"});a=angular.element(l.children()[0]);h.datepickerOptions&&angular.forEach(o.$parent.$eval(h.datepickerOptions),function(n,t){a.attr(b(t),n)});o.watchData={};angular.forEach(["minDate","maxDate","datepickerMode"],function(n){var i,r;h[n]&&(i=t(h[n]),o.$parent.$watch(i,function(t){o.watchData[n]=t}),a.attr(b(n),"watchData."+n),n==="datepickerMode"&&(r=i.assign,o.$watch("watchData."+n,function(n,t){n!==t&&r(o.$parent,n)})))});h.dateDisabled&&a.attr("date-disabled","dateDisabled({ date: date, mode: mode })");c.$parsers.unshift(k);o.dateSelection=function(n){angular.isDefined(n)&&(o.date=n);c.$setViewValue(o.date);c.$render();g&&(o.isOpen=!1,s[0].focus())};s.bind("input change keyup",function(){o.$apply(function(){o.date=c.$modelValue})});c.$render=function(){var n=c.$viewValue?u(c.$viewValue,p):"";s.val(n);o.date=k(c.$modelValue)};v=function(n){o.isOpen&&n.target!==s[0]&&o.$apply(function(){o.isOpen=!1})};w=function(n){o.keydown(n)};s.bind("keydown",w);o.keydown=function(n){n.which===27?(n.preventDefault(),n.stopPropagation(),o.close()):n.which!==40||o.isOpen||(o.isOpen=!0)};o.$watch("isOpen",function(n){n?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(s):r.position(s),o.position.top=o.position.top+s.prop("offsetHeight"),i.bind("click",v)):i.unbind("click",v)});o.select=function(n){if(n==="today"){var t=new Date;angular.isDate(c.$modelValue)?(n=new Date(c.$modelValue),n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):n=new Date(t.setHours(0,0,0,0))}o.dateSelection(n)};o.close=function(){o.isOpen=!1;s[0].focus()};y=n(l)(o);l.remove();d?i.find("body").append(y):s.after(y);o.$on("$destroy",function(){y.remove();s.unbind("keydown",w);i.unbind("click",v)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}});angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(n){var t=null,i,r;this.open=function(u){t||(n.bind("click",i),n.bind("keydown",r));t&&t!==u&&(t.isOpen=!1);t=u};this.close=function(u){t===u&&(t=null,n.unbind("click",i),n.unbind("keydown",r))};i=function(n){if(t){var i=t.getToggleElement();n&&i&&i[0].contains(n.target)||t.$apply(function(){t.isOpen=!1})}};r=function(n){n.which===27&&(t.focusToggleElement(),i())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(n,t,i,r,u,f){var o=this,e=n.$new(),c=r.openClass,s,h=angular.noop,l=t.onToggle?i(t.onToggle):angular.noop;this.init=function(r){o.$element=r;t.isOpen&&(s=i(t.isOpen),h=s.assign,n.$watch(s,function(n){e.isOpen=!!n}))};this.toggle=function(n){return e.isOpen=arguments.length?!!n:!e.isOpen};this.isOpen=function(){return e.isOpen};e.getToggleElement=function(){return o.toggleElement};e.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()};e.$watch("isOpen",function(t,i){f[t?"addClass":"removeClass"](o.$element,c);t?(e.focusToggleElement(),u.open(e)):u.close(e);h(n,t);angular.isDefined(t)&&t!==i&&l(n,{open:!!t})});n.$on("$locationChangeSuccess",function(){e.isOpen=!1});n.$on("$destroy",function(){e.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(n,t,i,r){r.init(t)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(n,t,i,r){if(r){r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t,i,r){t.backdropClass=r.backdropClass||"";t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].querySelectorAll("[autofocus]").length||r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&i.value.backdrop!="static"&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);a(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(v,e.length()>0);y()})}function y(){if(h&&c()==-1){var n=o;a(h,o,150,function(){n.$destroy();n=null});h=undefined;o=undefined}}function a(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e)}var v="modal-open",h,o,e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;n.which===27&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,l,a,y;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,l=angular.element("<div modal-backdrop><\/div>"),l.attr("backdrop-class",t.backdropClass),h=r(l)(o),f.append(h));a=angular.element("<div modal-window><\/div>");a.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);y=r(a)(t.scope);e.top().value.modalDomEl=y;f.append(y);f.addClass(v)},s.close=function(n,t){var i=e.get(n);i&&(i.value.deferred.resolve(t),l(n))},s.dismiss=function(n,t){var i=e.get(n);i&&(i.value.deferred.reject(t),l(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var r=(t.scope||i).$new(),h,s,c;r.$close=u.close;r.$dismiss=u.dismiss;s={};c=1;t.controller&&(s.$scope=r,s.$modalInstance=u,angular.forEach(t.resolve,function(t,i){s[i]=n[c++]}),h=e(t.controller,s),t.controllerAs&&(r[t.controllerAs]=h));o.open(u,{scope:r,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(n,t,i){var u=this,r={$setViewValue:angular.noop},f=t.numPages?i(t.numPages).assign:angular.noop;this.init=function(f,e){r=f;this.config=e;r.$render=function(){u.render()};t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){n.page=parseInt(r.$viewValue,10)||1};n.selectPage=function(t){n.page!==t&&t>0&&t<=n.totalPages&&(r.$setViewValue(t),r.$render())};n.getText=function(t){return n[t+"Text"]||u.config[t+"Text"]};n.noPrevious=function(){return n.page===1};n.noNext=function(){return n.page===n.totalPages};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(t){f(n.$parent,t);n.page>t?n.selectPage(t):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function s(n,t,i){return{number:n,text:t,active:i}}function a(n,t){var f=[],i=1,r=t,o=angular.isDefined(e)&&e<t,u,c,l,a;for(o&&(h?(i=Math.max(n-Math.floor(e/2),1),r=i+e-1,r>t&&(r=t,i=r-e+1)):(i=(Math.ceil(n/e)-1)*e+1,r=Math.min(i+e-1,t))),u=i;u<=r;u++)c=s(u,u,u===n),f.push(c);return o&&!h&&(i>1&&(l=s(i-1,"...",!1),f.unshift(l)),r<t&&(a=s(r+1,"...",!1),f.push(a))),f}var o=f[0],c=f[1],e,h,l;c&&(e=angular.isDefined(u.maxSize)?i.$parent.$eval(u.maxSize):t.maxSize,h=angular.isDefined(u.rotate)?i.$parent.$eval(u.rotate):t.rotate,i.boundaryLinks=angular.isDefined(u.boundaryLinks)?i.$parent.$eval(u.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(u.directionLinks)?i.$parent.$eval(u.directionLinks):t.directionLinks,o.init(c,t),u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);o.render()}),l=o.render,o.render=function(){l();i.page>0&&i.page<=i.totalPages&&(i.pages=a(i.page,i.totalPages))})}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):n.align,e.init(f,n))}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(u,f,e,o,s,h){return function(u,c,l){function p(t){var i=t||a.trigger||l,r=n[i]||i;return{show:i,hide:r}}var a=angular.extend({},r,t),w=i(u),v=h.startSymbol(),y=h.endSymbol(),b="<div "+w+'-popup title="'+v+"title"+y+'" content="'+v+"content"+y+'" placement="'+v+"placement"+y+'" animation="animation" is-open="isOpen"><\/div>';return{restrict:"EA",compile:function(){var n=f(b);return function(t,i,r){function et(){f.isOpen?g():d()}function d(){(!at||t.$eval(r[c+"Enable"]))&&(st(),f.popupDelay?y||(y=e(ut,f.popupDelay,!1),y.then(function(n){n()})):ut()())}function g(){t.$apply(function(){nt()})}function ut(){return(y=null,v&&(e.cancel(v),v=null),!f.content)?angular.noop:(ot(),h.css({top:0,left:0,display:"block"}),b?o.find("body").append(h):i.after(h),ft(),f.isOpen=!0,f.$digest(),ft)}function nt(){f.isOpen=!1;e.cancel(y);y=null;f.animation?v||(v=e(k,500)):k()}function ot(){h&&k();w=f.$new();h=n(w,angular.noop)}function k(){v=null;h&&(h.remove(),h=null);w&&(w.$destroy(),w=null)}function st(){ht();ct()}function ht(){var n=r[c+"Placement"];f.placement=angular.isDefined(n)?n:a.placement}function ct(){var t=r[c+"PopupDelay"],n=parseInt(t,10);f.popupDelay=isNaN(n)?a.popupDelay:n}function lt(){var n=r[c+"Trigger"];tt();l=p(n);l.show===l.hide?i.bind(l.show,et):(i.bind(l.show,d),i.bind(l.hide,g))}var h,w,v,y,b=angular.isDefined(a.appendToBody)?a.appendToBody:!1,l=p(undefined),at=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),ft=function(){var n=s.positionElements(i,h,f.placement,b);n.top+="px";n.left+="px";h.css(n)},tt,it,rt;f.isOpen=!1;r.$observe(u,function(n){f.content=n;!n&&f.isOpen&&nt()});r.$observe(c+"Title",function(n){f.title=n});tt=function(){i.unbind(l.show,d);i.unbind(l.hide,g)};lt();it=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(it)?!!it:a.animation;rt=t.$eval(r[c+"AppendToBody"]);b=angular.isDefined(rt)?rt:b;b&&t.$on("$locationChangeSuccess",function(){f.isOpen&&nt()});t.$on("$destroy",function(){e.cancel(v);e.cancel(y);tt();k();f=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(n,t,i){var r=this,u=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max;this.addBar=function(t,i){u||i.css({transition:"none"});this.bars.push(t);t.$watch("value",function(i){t.percent=+(100*i/n.max).toFixed(2)});t.$on("$destroy",function(){i=null;r.removeBar(t)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(n,t,i){var r={$setViewValue:angular.noop};this.init=function(u){r=u;r.$render=this.render;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;var f=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(f)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;t<i;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},n[t]);return n};n.rate=function(t){!n.readonly&&t>=0&&t<=n.range.length&&(r.$setViewValue(t),r.$render())};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(t.which===38||t.which===39?1:-1)))};this.render=function(){n.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[],r;i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);t.length===1?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var u=t.indexOf(n),f;n.active&&t.length>1&&!r&&(f=u==t.length-1?u-1:u+1,i.select(t[f]));t.splice(u,1)};n.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||n.tagName.toLowerCase()==="tab-heading"||n.tagName.toLowerCase()==="data-tab-heading")}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(n,t,i,r,u,f){function p(){var t=parseInt(n.hours,10),i=n.showMeridian?t>0&&t<13:t>=0&&t<24;return i?(n.showMeridian&&(t===12&&(t=0),n.meridian===y[1]&&(t=t+12)),t):undefined}function w(){var t=parseInt(n.minutes,10);return t>=0&&t<60?t:undefined}function h(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function c(n){b();o.$setViewValue(new Date(e));v(n)}function b(){o.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1}function v(t){var i=e.getHours(),r=e.getMinutes();n.showMeridian&&(i=i===0||i===12?12:i%12);n.hours=t==="h"?i:h(i);n.minutes=t==="m"?r:h(r);n.meridian=e.getHours()<12?y[0]:y[1]}function s(n){var t=new Date(e.getTime()+n*6e4);e.setHours(t.getHours(),t.getMinutes());c()}var e=new Date,o={$setViewValue:angular.noop},y=angular.isDefined(t.meridians)?n.$parent.$eval(t.meridians):f.meridians||u.DATETIME_FORMATS.AMPMS,l,a;this.init=function(i,r){o=i;o.$render=this.render;var u=r.eq(0),e=r.eq(1),s=angular.isDefined(t.mousewheel)?n.$parent.$eval(t.mousewheel):f.mousewheel;s&&this.setupMousewheelEvents(u,e);n.readonlyInput=angular.isDefined(t.readonlyInput)?n.$parent.$eval(t.readonlyInput):f.readonlyInput;this.setupInputEvents(u,e)};l=f.hourStep;t.hourStep&&n.$parent.$watch(i(t.hourStep),function(n){l=parseInt(n,10)});a=f.minuteStep;t.minuteStep&&n.$parent.$watch(i(t.minuteStep),function(n){a=parseInt(n,10)});n.showMeridian=f.showMeridian;t.showMeridian&&n.$parent.$watch(i(t.showMeridian),function(t){if(n.showMeridian=!!t,o.$error.time){var i=p(),r=w();angular.isDefined(i)&&angular.isDefined(r)&&(e.setHours(i),c())}else v()});this.setupMousewheelEvents=function(t,i){var r=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()})};this.setupInputEvents=function(t,i){if(n.readonlyInput){n.updateHours=angular.noop;n.updateMinutes=angular.noop;return}var r=function(t,i){o.$setViewValue(null);o.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i)};n.updateHours=function(){var n=p();angular.isDefined(n)?(e.setHours(n),c("h")):r(!0)};t.bind("blur",function(){!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=h(n.hours)})});n.updateMinutes=function(){var n=w();angular.isDefined(n)?(e.setMinutes(n),c("m")):r(undefined,!0)};i.bind("blur",function(){!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=h(n.minutes)})})};this.render=function(){var n=o.$modelValue?new Date(o.$modelValue):null;isNaN(n)?(o.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(n&&(e=n),b(),v())};n.incrementHours=function(){s(l*60)};n.decrementHours=function(){s(-l*60)};n.incrementMinutes=function(){s(a)};n.decrementMinutes=function(){s(-a)};n.toggleMeridian=function(){s(720*(e.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}});angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var st=s.$eval(c.typeaheadMinLength)||1,ft=s.$eval(c.typeaheadWaitMs)||0,ht=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,ct=t(c.typeaheadOnSelect),et=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):undefined,d=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,lt=s.$eval(c.typeaheadFocusFirst)!==!1,at=t(c.ngModel).assign,v=e.parse(c.typeahead),g,a=s.$new(),w,b,y,nt,tt,it,ot,rt,ut,k;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(Math.random()*1e4);h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};nt=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){n<0?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",nt(n))});tt=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&g)if(i.length>0){for(a.activeIdx=lt?0:-1,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:nt(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=d?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=undefined;ot=function(n){it=r(function(){tt(n)},ft)};rt=function(){it&&r.cancel(it)};l.$parsers.unshift(function(n){return g=!0,n&&n.length>=st?ft>0?(rt(),ot(n)):tt(n):(p(s,!1),rt(),y()),ht?n:n?(l.$setValidity("editable",!1),undefined):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return et?(t.$model=n,et(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=undefined,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t={},i,u;t[v.itemName]=u=a.matches[n].model;i=v.modelMapper(s,t);at(s,i);l.$setValidity("editable",!0);ct(s,{$item:u,$model:i,$label:v.viewMapper(s,t)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){if(a.matches.length!==0&&o.indexOf(n.which)!==-1){if(a.activeIdx==-1&&(n.which===13||n.which===9)){y();a.$digest();return}n.preventDefault();n.which===40?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):n.which===38?(a.activeIdx=(a.activeIdx>0?a.activeIdx:a.matches.length)-1,a.$digest()):n.which===13||n.which===9?a.$apply(function(){a.select(a.activeIdx)}):n.which===27&&(n.stopPropagation(),y(),a.$digest())}});h.bind("blur",function(){g=!1});ut=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",ut);s.$on("$destroy",function(){u.unbind("click",ut);d&&k.remove()});k=n(b)(a);d?u.find("body").append(k):h.after(k)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});ngMap=angular.module("ngMap",[]);ngMap.service("Attr2Options",["$parse","NavigatorGeolocation","GeoCoder",function(n,t,i){var h=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,l=function(n){var i,t,r;for(n.length>0&&(n=n[0]),i={},t=0;t<n.attributes.length;t++)r=n.attributes[t],i[r.name]=r.value;return i},r=function(n){return n.replace(h,function(n,t,i,r){return r?i.toUpperCase():i}).replace(c,"Moz$1")},a=function(n){try{return JSON.parse(n),n}catch(t){return n.replace(/([\$\w]+)\s*:/g,function(n,t){return'"'+t+'":'}).replace(/'([^']+)'/g,function(n,t){return'"'+t+'"'})}},u=function(n,t){var i,f=t.key,h=t.scope,e,r,s,o,u;try{if(e=Number(n),isNaN(e))throw"Not a number";else i=e}catch(c){try{if(n.match(/^[\+\-]?[0-9\.]+,[ ]*\ ?[\+\-]?[0-9\.]+$/)&&(n="["+n+"]"),i=JSON.parse(a(n)),i instanceof Array&&(r=i[0],r.constructor!=Object))if(r.constructor==Array)i=i.map(function(n){return new google.maps.LatLng(n[0],n[1])});else if(!isNaN(parseFloat(r))&&isFinite(r))return new google.maps.LatLng(i[0],i[1])}catch(l){if(n.match(/^[A-Z][a-zA-Z0-9]+\(.*\)$/))try{s="new google.maps."+n;i=eval(s)}catch(v){i=n}else if(n.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/))try{o=n.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/);i=google.maps[o[1]][o[2]]}catch(v){i=n}else if(n.match(/^[A-Z]+$/))try{u=f.charAt(0).toUpperCase()+f.slice(1);f.match(/temperatureUnit|windSpeedUnit|labelColor/)?(u=u.replace(/s$/,""),i=google.maps.weather[u][n]):i=google.maps[u][n]}catch(v){i=n}else i=n}}return i},e=function(n,r,u,f){f=f||{};var e=n.centered||f.centered,o=function(){void 0;var t=f.fallbackLocation||new google.maps.LatLng(0,0);n[r](t)};!u||u.match(/^current/i)?t.getCurrentPosition().then(function(t){var u=t.coords.latitude,o=t.coords.longitude,i=new google.maps.LatLng(u,o);n[r](i);e&&n.map.setCenter(i);f.callback&&f.callback.apply(n)},o):i.geocode({address:u}).then(function(t){n[r](t[0].geometry.location);e&&n.map.setCenter(t[0].geometry.location)},o)},o=function(n){var u=[],t,i;if(!n["ng-repeat"]&&!n.ngRepeat)for(t in n)i=n[t],i&&i.match(/\{\{.*\}\}/)&&(void 0,u.push(r(t)));return u},v=function(n,t,i){var u=o(n),r;for(Object.keys(u).length&&void 0,r=0;r<u.length;r++)s(t,u[r],i)},s=function(n,t,i){n.$observe(t,function(n){if(n){void 0;var f=r("set-"+t),o=u(n,{key:t});void 0;i[f]&&(t.match(/center|position/)&&typeof o=="string"?e(i,f,o):i[f](o))}})};return{filter:function(n){var i={},t;for(t in n)t.match(/^\$/)||t.match(/^ng[A-Z]/)||(i[t]=n[t]);return i},getOptions:function(n,t){var r={},i;for(i in n)if(n[i])if(i.match(/^on[A-Z]/))continue;else if(i.match(/ControlOptions$/))continue;else r[i]=u(n[i],{scope:t,key:i});return r},getEvents:function(n,t){var u={},o=function(n){return"_"+n.toLowerCase()},s=function(t){var i=t.match(/([^\(]+)\(([^\)]*)\)/),r=i[1],u=i[2].replace(/event[ ,]*/,""),e=n.$eval("["+u+"]");return function(t){function i(n,t){return n[t]}f=r.split(".").reduce(i,n);f.apply(this,[t].concat(e));n.$apply()}},r,i,e;for(r in t)if(t[r]){if(!r.match(/^on[A-Z]/))continue;i=r.replace(/^on/,"");i=i.charAt(0).toLowerCase()+i.slice(1);i=i.replace(/([A-Z])/g,o);e=t[r];u[i]=new s(e)}return u},getControlOptions:function(n){var e={},r,o,f,u,i,t,s,h;if(typeof n!="object")return!1;for(r in n)if(n[r]){if(!r.match(/(.*)ControlOptions$/))continue;o=n[r];f=o.replace(/'/g,'"');f=f.replace(/([^"]+)|("[^"]+")/g,function(n,t,i){return t?t.replace(/([a-zA-Z0-9]+?):/g,'"$1":'):i});try{u=JSON.parse(f);for(i in u)u[i]&&(t=u[i],typeof t=="string"?t=t.toUpperCase():i==="mapTypeIds"&&(t=t.map(function(n){return n.match(/^[A-Z]+$/)?google.maps.MapTypeId[n.toUpperCase()]:n})),i==="style"?(s=r.charAt(0).toUpperCase()+r.slice(1),h=s.replace(/Options$/,"")+"Style",u[i]=google.maps[h][t]):u[i]=i==="position"?google.maps.ControlPosition[t]:t);e[r]=u}catch(c){void 0}}return e},toOptionValue:u,camelCase:r,setDelayedGeoLocation:e,getAttrsToObserve:o,observeAndSet:s,observeAttrSetObj:v,orgAttributes:l}}]);ngMap.service("GeoCoder",["$q",function(n){return{geocode:function(t){var i=n.defer(),r=new google.maps.Geocoder;return r.geocode(t,function(n,t){t==google.maps.GeocoderStatus.OK?i.resolve(n):i.reject("Geocoder failed due to: "+t)}),i.promise}}}]);ngMap.service("NavigatorGeolocation",["$q",function(n){return{getCurrentPosition:function(){var t=n.defer();return navigator.geolocation?navigator.geolocation.getCurrentPosition(function(n){t.resolve(n)},function(n){void 0;t.reject(n)}):t.reject("Browser Geolocation service failed."),t.promise},watchPosition:function(){return"TODO"},clearWatch:function(){return"TODO"}}}]);ngMap.service("StreetView",["$q",function(n){return{getPanorama:function(t,i){i=i||t.getCenter();var r=n.defer(),u=new google.maps.StreetViewService;return u.getPanoramaByLocation(i||t.getCenter,100,function(n,t){t===google.maps.StreetViewStatus.OK?r.resolve(n.location.pano):r.resolve(!1)}),r.promise},setPanorama:function(n,t){var i=new google.maps.StreetViewPanorama(n.getDiv(),{enableCloseButton:!0});i.setPano(t)}}}]);ngMap.directive("bicyclingLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.BicyclingLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("bicyclingLayers",e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("cloudLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.weather.CloudLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("cloudLayers",e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("customControl",["Attr2Options","$compile",function(n,t){var i=n;return{restrict:"E",require:"^map",link:function(n,r,u,f){var s,e,o;r.css("display","none");var a=i.orgAttributes(r),h=i.filter(u),l=i.getOptions(h,n),c=i.getEvents(n,h);void 0;s=t(r.html().trim())(n);e=s[0];for(o in c)google.maps.event.addDomListener(e,o,c[o]);f.addObject("customControls",e);n.$on("mapInitialized",function(n,t){var i=l.position;t.controls[google.maps.ControlPosition[i]].push(e)})}}}]);ngMap.directive("dynamicMapsEngineLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.visualization.DynamicMapsEngineLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var e=t.filter(u),h=t.getOptions(e),o=t.getEvents(n,e,o),s;void 0;s=i(h,o);f.addObject("mapsEngineLayers",s)}}}]);ngMap.directive("fusionTablesLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.FusionTablesLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var e=t.filter(u),h=t.getOptions(e),o=t.getEvents(n,e,o),s;void 0;s=i(h,o);f.addObject("fusionTablesLayers",s)}}}]);ngMap.directive("heatmapLayer",["Attr2Options","$window",function(n,t){var i=n;return{restrict:"E",require:"^map",link:function(n,r,u,f){var o=i.filter(u),e=i.getOptions(o),s,h;if(e.data=t[u.data]||n[u.data],e.data instanceof Array)e.data=new google.maps.MVCArray(e.data);else throw"invalid heatmap data";s=new google.maps.visualization.HeatmapLayer(e);h=i.getEvents(n,o);void 0;f.addObject("heatmapLayers",s)}}}]);ngMap.directive("infoWindow",["Attr2Options","$compile","$timeout",function(n,t,i){var r=n,u=function(n,i,u){var f,s,h,e,o;!n.position||n.position instanceof google.maps.LatLng?f=new google.maps.InfoWindow(n):(s=n.position,delete n.position,f=new google.maps.InfoWindow(n),h=function(){f.open(f.map)},r.setDelayedGeoLocation(f,"setPosition",s,{callback:h}));Object.keys(i).length>0&&void 0;for(e in i)e&&google.maps.event.addListener(f,e,i[e]);if(o=u.html().trim(),angular.element(o).length!=1)throw"info-window working as a template must have a container";return f.__template=o.replace(/\s?ng-non-bindable[='"]+/,""),f.__compile=function(n){var i=t(f.__template)(n);n.$apply();f.setContent(i[0])},f.__eval=function(){var n=f.__template,t=this;return n.replace(/{{(event|this)[^;\}]+}}/g,function(match){var expression=match.replace(/[{}]/g,"").replace("this.","_this.");return eval(expression)})},f};return{restrict:"E",require:"^map",link:function(n,t,f,e){var o;t.css("display","none");var h=r.orgAttributes(t),s=r.filter(f),c=r.getOptions(s,n),l=r.getEvents(n,s);void 0;o=u(c,l,t);e.addObject("infoWindows",o);r.observeAttrSetObj(h,f,o);o.visible&&n.$on("mapInitialized",function(t,r){i(function(){o.__template=o.__eval.apply(this,[t]);o.__compile(n);o.map=r;o.position&&o.open(r)})});o.visibleOnMarker&&n.$on("mapInitialized",function(t,r){i(function(){var u=o.visibleOnMarker,i=r.markers[u];if(!i)throw"Invalid marker id";o.__template=o.__eval.apply(this,[t]);o.__compile(n);o.open(r,i)})});n.showInfoWindow=n.showInfoWindow||function(t,i,r){var u=e.map.infoWindows[i];u.__template=u.__eval.apply(this,[t]);u.__compile(n);r?u.open(e.map,r):this.getPosition?u.open(e.map,this):u.open(e.map)};n.hideInfoWindow=n.hideInfoWindow||function(t,i){var r=e.map.infoWindows[i];r.__template=r.__eval.apply(this,[t]);r.__compile(n);r.close()}}}}]);ngMap.directive("kmlLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.KmlLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("kmlLayers",e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("mapData",["Attr2Options",function(n){var t=n;return{restrict:"E",require:"^map",link:function(n,i,r){var f=t.filter(r),e=t.getOptions(f),u=t.getEvents(n,f,u);void 0;n.$on("mapInitialized",function(t,i){var r,f,o;for(r in e)r&&(f=e[r],typeof n[f]=="function"?i.data[r](n[f]):i.data[r](f));for(o in u)u[o]&&i.data.addListener(o,u[o])})}}}]);ngMap.directive("mapType",["Attr2Options","$window",function(n,t){var i=n;return{restrict:"E",require:"^map",link:function(n,i,r,u){var e=r.name,f,o;if(!e)throw"invalid map-type name";if(r.object&&(o=n[r.object]?n:t,f=o[r.object],typeof f=="function"&&(f=new f)),!f)throw"invalid map-type object";n.$on("mapInitialized",function(n,t){t.mapTypes.set(e,f)});u.addObject("mapTypes",f)}}}]);ngMap.directive("map",["Attr2Options","$timeout",function(n,t){function r(n,t){var i;return n.currentStyle?i=n.currentStyle[t]:window.getComputedStyle&&(i=document.defaultView.getComputedStyle(n,null).getPropertyValue(t)),i}var i=n;return{restrict:"AE",controller:ngMap.MapController,link:function(u,f,e,o){var y=i.orgAttributes(f),s;u.google=google;s=document.createElement("div");s.style.width="100%";s.style.height="100%";f.prepend(s);r(f[0],"display")!="block"&&f.css("display","block");r(f[0],"height").match(/^(0|auto)/)&&f.css("height","300px");var l=function(r,f){var h=new google.maps.Map(s,{}),l,a;h.markers={};h.shapes={};t(function(){google.maps.event.trigger(h,"resize")});r.zoom=r.zoom||15;l=r.center;l?l instanceof google.maps.LatLng||(delete r.center,n.setDelayedGeoLocation(h,"setCenter",l,{fallbackLocation:c.geoFallbackCenter})):r.center=new google.maps.LatLng(0,0);h.setOptions(r);for(a in f)a&&google.maps.event.addListener(h,a,f[a]);i.observeAttrSetObj(y,e,h);o.map=h;o.addObjects(o._objects);u.map=h;u.map.scope=u;u.$emit("mapInitialized",h);u.maps=u.maps||{};u.maps[c.id||Object.keys(u.maps).length]=h;u.$emit("mapsInitialized",u.maps)},h=i.filter(e),c=i.getOptions(h,u),p=i.getControlOptions(h),a=angular.extend(c,p),v=i.getEvents(u,h);void 0;e.initEvent?u.$on(e.initEvent,function(){o.map||l(a,v)}):l(a,v)}}}]);ngMap.MapController=function(){this.map=null;this._objects=[];this.addMarker=function(n){if(this.map){this.map.markers=this.map.markers||{};n.setMap(this.map);n.centered&&this.map.setCenter(n.position);var t=Object.keys(this.map.markers).length;this.map.markers[n.id||t]=n}else this._objects.push(n)};this.addShape=function(n){if(this.map){this.map.shapes=this.map.shapes||{};n.setMap(this.map);var t=Object.keys(this.map.shapes).length;this.map.shapes[n.id||t]=n}else this._objects.push(n)};this.addObject=function(n,t){if(this.map){this.map[n]=this.map[n]||{};var i=Object.keys(this.map[n]).length;this.map[n][t.id||i]=t;n!="infoWindows"&&t.setMap&&t.setMap(this.map)}else t.groupName=n,this._objects.push(t)};this.addObjects=function(n){for(var t,i=0;i<n.length;i++)t=n[i],t instanceof google.maps.Marker?this.addMarker(t):t instanceof google.maps.Circle||t instanceof google.maps.Polygon||t instanceof google.maps.Polyline||t instanceof google.maps.Rectangle||t instanceof google.maps.GroundOverlay?this.addShape(t):this.addObject(t.groupName,t)}};ngMap.directive("mapsEngineLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.visualization.MapsEngineLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var e=t.filter(u),h=t.getOptions(e),o=t.getEvents(n,e,o),s;void 0;s=i(h,o);f.addObject("mapsEngineLayers",s)}}}]);ngMap.directive("marker",["Attr2Options",function(n){var t=n,i=function(n,i){var u,r,f,o,e;if(n.icon instanceof Object){(""+n.icon.path).match(/^[A-Z_]+$/)&&(n.icon.path=google.maps.SymbolPath[n.icon.path]);for(r in n.icon)f=n.icon[r],r=="anchor"||r=="origin"?n.icon[r]=new google.maps.Point(f[0],f[1]):(r=="size"||r=="scaledSize")&&(n.icon[r]=new google.maps.Size(f[0],f[1]))}n.position instanceof google.maps.LatLng?u=new google.maps.Marker(n):(o=n.position,n.position=new google.maps.LatLng(0,0),u=new google.maps.Marker(n),t.setDelayedGeoLocation(u,"setPosition",o));Object.keys(i).length>0&&void 0;for(e in i)e&&google.maps.event.addListener(u,e,i[e]);return u};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o,n),c=t.getEvents(n,o),e;void 0;r.bind("$destroy",function(){var n=e.map.markers,t;for(t in n)n[t]==e&&delete n[t];e.setMap(null)});e=i(h,c);f.addMarker(e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("overlayMapType",["Attr2Options","$window",function(n,t){var i=n;return{restrict:"E",require:"^map",link:function(n,i,r,u){var f,e=r.initMethod||"insertAt",o;if(r.object&&(o=n[r.object]?n:t,f=o[r.object],typeof f=="function"&&(f=new f)),!f)throw"invalid map-type object";n.$on("mapInitialized",function(n,t){if(e=="insertAt"){var i=parseInt(r.index,10);t.overlayMapTypes.insertAt(i,f)}else e=="push"&&t.overlayMapTypes.push(f)});u.addObject("overlayMapTypes",f)}}}]);ngMap.directive("shape",["Attr2Options",function(n){var t=n,i=function(n){return new google.maps.LatLngBounds(n[0],n[1])},r=function(n,r){var u,h=n.name,f,e,s,o;if(delete n.name,void 0,n.icons)for(f=0;f<n.icons.length;f++)e=n.icons[f],e.icon.path.match(/^[A-Z_]+$/)&&(e.icon.path=google.maps.SymbolPath[e.icon.path]);switch(h){case"circle":n.center instanceof google.maps.LatLng?u=new google.maps.Circle(n):(s=n.center,n.center=new google.maps.LatLng(0,0),u=new google.maps.Circle(n),t.setDelayedGeoLocation(u,"setCenter",s));break;case"polygon":u=new google.maps.Polygon(n);break;case"polyline":u=new google.maps.Polyline(n);break;case"rectangle":n.bounds&&(n.bounds=i(n.bounds));u=new google.maps.Rectangle(n);break;case"groundOverlay":case"image":var c=n.url,l=i(n.bounds),a={opacity:n.opacity,clickable:n.clickable,id:n.id};u=new google.maps.GroundOverlay(c,l,a)}for(o in r)r[o]&&google.maps.event.addListener(u,o,r[o]);return u};return{restrict:"E",require:"^map",link:function(n,i,u,f){var s=t.orgAttributes(i),e=t.filter(u),h=t.getOptions(e),c=t.getEvents(n,e),o=r(h,c);f.addShape(o);t.observeAttrSetObj(s,u,o)}}}]);ngMap.directive("trafficLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.TrafficLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("trafficLayers",e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("transitLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.TransitLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("transitLayers",e);t.observeAttrSetObj(s,u,e)}}}]);ngMap.directive("weatherLayer",["Attr2Options",function(n){var t=n,i=function(n,t){var r=new google.maps.weather.WeatherLayer(n),i;for(i in t)google.maps.event.addListener(r,i,t[i]);return r};return{restrict:"E",require:"^map",link:function(n,r,u,f){var s=t.orgAttributes(r),o=t.filter(u),h=t.getOptions(o),c=t.getEvents(n,o),e;void 0;e=i(h,c);f.addObject("weatherLayers",e);t.observeAttrSetObj(s,u,e)}}}]);iarApp=angular.module("iarApp",["ngSanitize","ngResource","ngMap","ui.bootstrap","iarServices"]);iarApp.run(["$rootScope","$document",function(n,t){n.language=t[0].documentElement.lang}]);iarApp.filter("exact",function(){return function(n,t){var u=[],i,r=!0;return(angular.forEach(t,function(n){r=r&&!n}),r)?n:(angular.forEach(n,function(n){i=!0;angular.forEach(t,function(t,r){t&&(i=i&&n[r]===t)});i&&u.push(n)}),u)}});iarApp.filter("groupBy",["$parse",function(n){return function(t,i){var f=[],u=null,r=!1,e="group_by_CHANGED";return angular.forEach(t,function(t){if(r=!1,u!==null){i=angular.isArray(i)?i:[i];for(var o=0,s=i.length;o<s;o++)n(i[o])(u)!==n(i[o])(t)&&(r=!0)}else r=!0;t[e]=r?!0:!1;f.push(t);u=t}),f}}]);iarServices=angular.module("iarServices",["ngResource"]);iarServices.factory("pages",["$resource",function(n){return n("/api/search/pages",{},{query:{method:"GET",isArray:!1}})}]);iarServices.factory("devices",["$resource",function(n){return n("/api/search/devices",{},{query:{method:"GET",isArray:!1}})}]);iarServices.factory("support",["$resource",function(n){return n("/api/search/support",{},{query:{method:"GET",isArray:!1}})}]);iarServices.factory("academy",["$resource",function(n){return{Courses:n("/api/academy/courses",{},{query:{method:"GET",isArray:!1}}),Book:n("/api/academy/book",{},{query:{method:"GET",isArray:!1}}),Reservation:n("/api/academy/reservation",{},{query:{method:"GET",isArray:!1}})}}]);iarApp.controller("AcademyCtrl",["$scope","$log","academy",function(n,t,i){function r(i){n.showError=!0;n.loadingCourses=!1;n.showCourses=!1;n.showReservationForm=!1;n.showSuccess=!1;n.makingReservation=!1;n.makingBooking=!1;n.formData.terms=!1;t.log(i)}function u(i){n.showBookingError=!0;n.showCourses=!1;n.showReservationForm=!1;n.showSuccess=!1;n.makingBooking=!1;n.formData.terms=!1;t.log(i)}n.loadingCourses=!0;n.showCourses=!1;n.showReservationForm=!1;n.showSuccess=!1;n.displayReadMore=!0;n.showError=!1;n.showBookingError=!1;n.formData={terms:!1};t.log("academy init");n.courses=function(u){t.log("academy get courses. filter by: "+u);i.Courses.query({courseId:u},function(t){n.coursesData=t;n.loadingCourses=!1;n.showCourses=!0},function(n){r(n)})};n.reserve=function(u){t.log("reserve for id: "+u.Id);n.makingReservation=!0;i.Reservation.query({courseId:u.Id},function(t){n.reservationTicket=t.ReservationTicket;n.selectedCourse=u;n.showReservationForm=!0;n.showCourses=!1;n.makingReservation=!1},function(n){r(n)})};n.book=function(){t.log("booking with ticket: "+n.reservationTicket+" name: "+n.formData.name);n.makingBooking=!0;i.Book.query({ticket:n.reservationTicket,firstName:n.formData.firstName,lastName:n.formData.lastName,phone:n.formData.phone,email:n.formData.email,company:n.formData.company,adress:n.formData.adress,postalCode:n.formData.postalCode,city:n.formData.city,country:n.formData.country,billingCompany:n.formData.billingcompany,billingAdress:n.formData.billingadress,billingPostalCode:n.formData.billingpostalCode,billingCity:n.formData.billingcity,billingCountry:n.formData.billingcountry,otherRequirements:n.formData.otherRequirements},function(t){n.showSuccess=t.Success;n.showSuccess==!0&&(n.showReservationForm=!1,n.makingBooking=!1)},function(n){u(n)})};n.toggleTerms=function(){n.formData.terms=!n.formData.terms};n.cancel=function(){t.log("canceling form");n.selectedCourse={};n.showCourses=!0;n.showReservationForm=!1;n.makingBooking=!1;n.formData.terms=!1};n.back=function(){n.selectedCourse={};n.showCourses=!0;n.showSuccess=!1;n.showError=!1;n.showBookingError=!1;n.formData.terms=!1};n.readMore=function(){n.displayReadMore=!1};n.readLess=function(){n.displayReadMore=!0}}]);iarApp.controller("ConnectTopmenuController",["$scope","$log",function(n){n.displayMenu=!1;n.toggleMenu=function(){n.displayMenu=!n.displayMenu}}]);iarApp.controller("ContactMapCtrl",["$scope","$log","$timeout","mapSettings","mapService",function(n,t,i,r,u){n.style=u.blueStyle;n.settings=r;_.each(n.settings.locations,function(n){n.icon=u.markerIcon});n.center=r.userCoordinates?r.userCoordinates:"current-location";n.zoom=4;n.changeSelected=function(i,r){var e,f;t.log("Marker selected");e=u.findMarker(n.map.markers,n.selected);e&&e.setIcon(u.markerIcon);n.selected=r;f=u.findMarker(n.map.markers,r);f&&f.setIcon(u.selectedMarkerIcon);n.map.panTo(f.position)};n.$on("mapInitialized",function(){r.nearestLocation&&(n.selected=r.nearestLocation,i(function(){n.changeSelected(null,r.nearestLocation)},700))})}]);iarApp.controller("LanguageCookieCtrl",["$scope","$log","$window",function(n,t,i){n.setLanguageCookie=function(n,r){var u=new Date,f=new Date(u.getFullYear(),u.getMonth()+3,u.getDate());t.log("preferred language: "+n);document.cookie="PreferredLanguage="+n+"; expires="+f+" ;domain=."+i.location.hostname+"; path=/";i.location.href=r}}]);iarApp.controller("LicenseBlockController",["$scope","$log",function(n){n.displayReadMore=!1;n.readMoreText="Read More";n.readMore=function(){n.displayReadMore==!1?(n.displayReadMore=!0,n.readMoreText="Read Less"):(n.displayReadMore=!1,n.readMoreText="Read More")}}]);iarApp.controller("QuickSearchCtrl",["$scope","$window","$http",function(n,t,i){n.goToSearchPage=function(n,i){t.location.href=n+"#?query="+(i?i:"");t.location.pathname.indexOf(n)>-1&&t.location.reload()};n.getSuggestions=function(t){return i.get("/api/search/autocomplete/getsuggestions",{params:{q:t,language:n.language}}).then(function(t){_.each(t.data,function(n){if(n.Type=="devices"){var t=n.Suggestion.split(" ");n.Architecture=t[0];n.Suggestion=t[1]}});var i=_.filter(t.data,function(n){return _.contains(["pages","devices"],n.Type)});return n.suggestions=i,i})}}]);iarApp.controller("SearchCtrl",["$scope","$log","$location","$http","$window","pages","devices","support","searchSettings","filterService",function(n,t,i,r,u,f,e,o,s,h){var c,l;n.settings=s;c=i.search();n.filter={query:c.query};n.staticFilter={language:n.language};n.tabs=n.settings.tabs;_.each(n.tabs,function(n){n.loading=!0;n.showError=!1;n.filter=h.queryParamsToTabFilter(n,c);n.staticFilter=h.convertSettingsToFilter(n.staticFilter)});n.currentTab=n.tabs[0];c.tab&&(l=_.find(n.tabs,function(n){return n.name==c.tab}),l&&(n.currentTab=l));n.persistSearchState=function(){var t=_.clone(n.filter);_.each(n.tabs,function(n){_.extend(t,h.tabFilterToQueryParams(n))});t.tab=n.currentTab.name;i.search(t).replace()};n.onSearchSuccess=function(t,i){t.data=i;t.loading=!1;n.checkTabs()};n.onSearchError=function(i,r){t.log(r);i.data={Count:0};i.showError=!0;i.loading=!1;n.checkTabs()};n.search=function(r){var s,c;t.log("Doing a new search");n.persistSearchState();s=i.absUrl().split("#");ga("send","pageview",{location:s[0],page:u.location.pathname+i.url().replace("#","")});c=r===undefined?n.tabs:[r];_.each(c,function(t){t.loading=!0;t.showError=!1;var i=h.getParams(n.filter,n.staticFilter,t);t.name=="pages"?f.query(i,function(i){n.onSearchSuccess(t,i)},function(i){n.onSearchError(t,i)}):t.name=="devices"?e.query(i,function(i){n.onSearchSuccess(t,i)},function(i){n.onSearchError(t,i)}):o.query(i,function(i){n.onSearchSuccess(t,i)},function(i){n.onSearchError(t,i)})})};n.selectSuggestion=function(){n.filter.query=n.filter.query.Suggestion;n.search()};n.toggleAggregation=function(t,i,r){r.filter[t]==i?delete r.filter[t]:r.filter[t]=i;n.search(r)};n.showMore=function(n){r.get(n.data.GetMoreUrl).success(function(t){n.data.Items=t.Items;n.data.GetMoreUrl=t.GetMoreUrl})};n.changeTab=function(t){n.currentTab=t;i.search("tab",t.name).replace()};n.checkTabs=function(){var i=_.every(n.tabs,function(n){return!n.loading}),t;i&&n.currentTab.data.Count==0&&(t=_.find(n.tabs,function(n){return n.data.Count>0}),t&&n.changeTab(t))};n.getSuggestions=function(t){return r.get("/api/search/autocomplete/getsuggestions",{params:{q:t,language:n.language}}).then(function(t){return _.each(t.data,function(n){if(n.Type=="devices"){var t=n.Suggestion.split(" ");n.Architecture=t[0];n.Suggestion=t[1]}}),_.filter(t.data,function(t){return _.contains(_.pluck(n.tabs,"name"),t.Type)})})};n.search()}]);iarApp.controller("SupportedDevicesCtrl",["$scope","$window","$log","$location","$filter","$http","devices",function(n,t,i,r,u,f,e){var o=r.search();n.device=o.device;n.loadingDevices=!1;n.isSupported=null;n.goToSearchPage=function(n,i){t.location.href=n+"#?query="+(i?i:"")+"&tab=devices";t.location.pathname.indexOf(n)>-1&&t.location.reload()};n.goToProductPage=function(i){var u=_.findWhere(n.suggestions,{Suggestion:i}),f;u&&u.PayLoad&&(f=r.absUrl().split("#"),ga("send","pageview",{location:f[0],page:t.location.pathname+"?query="+i}),t.location.href=u.PayLoad)};n.search=function(t,f){if(typeof n.device=="object"&&(n.device=n.device.Suggestion),r.search({device:n.device}).replace(),!n.device){n.loadingDevices=!1;n.isSupported=null;return}i.log("Doing a new device search for supported devices");n.loadingDevices=!0;e.query({query:n.device,language:n.language,architecture:t,vendor:f},function(t){var i=u("exact")(t.Items,{Name:n.device});n.isSupported=i.length>0;n.loadingDevices=!1},function(t){i.log(t);n.loadingDevices=!1})};n.getSuggestions=function(t,i){var r=i?i+" "+t:t;return f.get("/api/search/autocomplete/getsuggestions",{params:{q:r,language:n.language}}).then(function(t){_.each(t.data,function(n){var t=n.Suggestion.split(" ");n.Architecture=t[0];n.Suggestion=t[1]});var i=u("filter")(t.data,{Type:"device"});return n.suggestions=i,i})}}]);iarApp.controller("TabsCtrl",["$scope","$log","$window","$timeout",function(n,t,i,r){n.changeTab=function(t){n.currentTab=t;r(function(){var n=document.createEvent("UIEvents");n.initUIEvent("resize",!0,!1,window,0);window.dispatchEvent(n)},0);var u=i.slimmage.readyCallback||function(){};i.slimmage.readyCallback=function(){u();$(".snap-height .panel:not(.ignore-height-adjust)").snapHeights()}};n.changeTab(0)}]);iarApp.controller("YoutubeCtrl",["$scope","$log","$sce",function(n,t,i){n.showVideo=!1;n.videoSource="";n.toggleVideo=function(t){n.showVideo=!0;n.videoSource=i.trustAsResourceUrl(t)}}]);iarServices.service("filterService",function(){this.getParams=function(n,t,i){var r=_.clone(n);return _.extend(r,t),_.extend(r,i.filter),_.extend(r,i.staticFilter),r};this.convertSettingsToFilter=function(n){var t={};return _.each(n,function(n){t[n.name]=n.value}),t};this.tabFilterToQueryParams=function(n){return _.object(_.map(n.filter,function(t,i){return[n.name+"_"+i,t]}))};this.queryParamsToTabFilter=function(n,t){var i=_.pick(t,function(t,i){return i.startsWith(n.name+"_")});return _.object(_.map(i,function(t,i){return[i.replace(n.name+"_",""),t]}))}});iarServices.service("mapService",function(){this.findMarker=function(n,t){return _.find(n,function(n){return n.position.lat()==t.latitude&&n.position.lng()==t.longitude})};this.markerIcon="/Content/images/marker.png";this.selectedMarkerIcon="/Content/images/marker-selected.png";this.blueStyle=[{featureType:"water",elementType:"geometry",stylers:[{color:"#193341"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#2c5a71"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#29768a"},{lightness:-37}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#406d80"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#406d80"}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#3e606f"},{weight:2},{gamma:.84}]},{elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"administrative",elementType:"geometry",stylers:[{weight:.6},{color:"#1a3541"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#2c5a71"}]}]})