function sanitizeNumericInput(n,t){var i=[46,8,9,27,13];(t&&(i.push(190),i.push(110)),$.inArray(n.keyCode,i)!==-1||n.ctrlKey===!0||n.keyCode>=35&&n.keyCode<=39)||(n.shiftKey||n.keyCode<48||n.keyCode>57)&&(n.keyCode<96||n.keyCode>105)&&n.preventDefault()}function initApp(){initGlobal();loadData();updateInsurance();updateAssurance()}function initGlobal(){typeof ula.global=="undefined"&&(ula.global={});var n=ula.global;if(typeof ula.valuePricing=="undefined"){window.setTimeout(initGlobal,1);return}ula.global.initialized||(ula.global.initialized=!0,n.insurance={raw:ula.valuePricing.InsuranceSVValue,calc:0},n.revenue={months:ula.valuePricing.OnTimeLaunchAverageSlippage,tpe:ula.valuePricing.OnTimeLaunchTPE,monthly:ula.valuePricing.OnTimeLaunchValuePerTPE,calc:0},n.lifetime={raw:1.9,calc:0},n.totalSavings=0,n.totalBase=109e6,n.totalPrice=0)}function updateInsurance(){var t=$("#insTxt, #insTxt2, #insTxt3"),n;ula.global.insurance.raw=allspacecraftValue.val()*1e6;n=Math.round((ula.valuePricing.InsuranceAverageLVValue+ula.global.insurance.raw)*ula.valuePricing.InsuranceAverage-(ula.valuePricing.InsuranceULALVValue+ula.global.insurance.raw)*ula.valuePricing.InsuranceULA);ula.global.insurance.calc=Math.round(n/1e6);t.text("$"+ula.global.insurance.calc+"M");updatePricing()}function updateAssurance(){var f=$("#deferred, #deferred2, #deferred3"),e=$("#lost, #lost2, #lost3"),i,r;ula.global.revenue.months=parseFloat("0"+allmonthsDelayedValue.val());ula.global.revenue.monthly=allmonthlyRevenueValue.val()*1e6;i=parseFloat("0"+allotherCostsMonthly.val());r=Math.round(ula.global.revenue.months*ula.global.revenue.monthly);f.text("$"+Math.round(r/1e6)+"M");var n=ula.global.revenue.monthly*12/1e6,u=ula.global.revenue.months,t=.1+1,o=n/Math.pow(t,1)-((12-u)/12*n/Math.pow(t,1)+u/12*n/Math.pow(t,16));ula.global.revenue.calc=Math.round(o+i*ula.global.revenue.months+~~allotherCosts.val());e.text("$"+Math.round(ula.global.revenue.calc)+"M");updatePrecision()}function updatePrecision(){var u=$("#optTxt, #optTxt2, #optTxt3"),n,r;ula.global.lifetime.raw=parseFloat(allextendedLifeValue.val());var f=ula.global.revenue.monthly/1e6*12,t=ula.global.lifetime.raw,i=0;for(n=0;n<t&&n<5;n++)r=t-n<1?t-n:1,i=i+r*f/Math.pow(.1+1,n+1+15);ula.global.lifetime.calc=Math.round(i);u.text("$"+ula.global.lifetime.calc+"M");updatePricing()}function updatePricing(){var i=ula.global.totalBase,f=Math.round(i/1e6),e=f.toString()+"M",t,r,u,n;$("#pillarBase").html("$"+e);t=(ula.global.insurance.calc+ula.global.revenue.calc+ula.global.lifetime.calc)*1e6;ula.global.totalSavings=t;r=Math.round(t/1e6);u="$"+r.toString()+"M";$("#pillarValue").text(u);n=i-t;n<1e6?(n=1e6,ula.global.totalPrice=n,$("#pillarTotal").html("<$"+Math.round(n/1e6)+"M")):(ula.global.totalPrice=n,$("#pillarTotal").html("$"+Math.round(n/1e6)+"M"))}function saveValuePillarData(){Cookies.set("home_insurance",allspacecraftValue.val(),{expires:31});Cookies.set("home_revenueMonths",allmonthsDelayedValue.val(),{expires:31});Cookies.set("home_revenueMonthly",allmonthlyRevenueValue.val(),{expires:31});Cookies.set("home_other",allotherCosts.val(),{expires:31});Cookies.set("home_otherMonthly",allotherCostsMonthly.val(),{expires:31});Cookies.set("home_life",allextendedLifeValue.val(),{expires:31})}function loadData(){var r=Cookies.get("insurance"),n,t,i,u,f,e;r&&isNormalInteger(r)?(allspacecraftValue.val(r),ula.global.insurance.raw=r*1e6,updateInsurance()):(allspacecraftValue.val(ula.valuePricing.InsuranceSVValue/1e6),ula.global.insurance.raw=ula.valuePricing.InsuranceSVValue,updateInsurance());n=Cookies.get("revenueMonths");n&&isNormalInteger(n)?(allmonthsDelayedValue.val(n),ula.global.revenue.months=n,updateAssurance()):(allmonthsDelayedValue.val(ula.valuePricing.OnTimeLaunchAverageSlippage),ula.global.revenue.months=ula.valuePricing.OnTimeLaunchAverageSlippage,updateAssurance());t=Cookies.get("revenueMonthly");t&&isNormalInteger(t)?(allmonthlyRevenueValue.val(t),ula.global.revenue.monthly=t*1e6,updateAssurance()):(allmonthlyRevenueValue.val(parseFloat(ula.valuePricing.OnTimeLaunchTPE*ula.valuePricing.OnTimeLaunchValuePerTPE/1e6)),ula.global.revenue.monthly=ula.valuePricing.OnTimeLaunchTPE*ula.valuePricing.OnTimeLaunchValuePerTPE,updateAssurance());i=Cookies.get("life");i&&isNormalInteger(i)?(allextendedLifeValue.val(i),ula.global.lifetime.raw=i,updatePrecision()):(allextendedLifeValue.val(ula.valuePricing.AccuracyYears),ula.global.lifetime.raw=ula.valuePricing.AccuracyYears,updatePrecision());u=Cookies.get("other");u&&isNormalInteger(u)?(allotherCosts.val(u),updateAssurance()):(allotherCosts.val(ula.valuePricing.OneTimeDelayCosts),updateAssurance());f=Cookies.get("otherMonthly");f&&isNormalInteger(f)?(allotherCostsMonthly.val(f),updateAssurance()):(allotherCostsMonthly.val(ula.valuePricing.MonthlyDelayCosts/1e6),updateAssurance());e=Cookies.get("baseTotal");e&&isNormalInteger(e)&&(ula.global.totalBase=e)}function delayedAction(n,t){ula.timer=ula.timer||{};clearTimeout(ula.timer[n]);ula.timer[n]=setTimeout(t,500)}function isNormalInteger(n){return/^[0-9.]+/.test(n)}function trimZeroes(n){return n!=0&&(n=n.replace(/^0+/,"")),n}function handleTouch(){var i,f=750,n=!1,e=function(){i=+new Date;n=!0},o=function(){n=!1},t=function(){$("body").addClass("touch").removeClass("can-hover");var r=function(){n||+new Date-i<f||($("body").addClass("can-hover"),$(document).off("mousemove","body",r))};$(document).on("mousemove","body",r);$(document).off("touchstart","body",t)},r,u;if(window.ontouchstart||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0)t();else{$(document).on("touchstart","body",e);$(document).on("touchstart","body",t);$(document).on("touchend","body",o)}r=navigator.userAgent.toLowerCase();u=r.match(/(iphone|ipod|ipad)/);u?($("#mainBodyCopyValuePillar").click(function(){$("#popupValuePillar, .lightboxBackground").fadeIn();ga("set","page","/value-pillar-homepage.html");ga("send","pageview")}),$(".popupCloseBtn, .lightboxBackground, #cancleValuePillar, #applyValuePillarValues").click(function(){$("#popupValuePillar, .lightboxBackground").fadeOut()})):($("#mainBodyCopyValuePillar").click(function(){$("#popupValuePillar, .lightboxBackground").fadeIn();ga("set","page","/value-pillar-homepage.html");ga("send","pageview")}),$(".popupCloseBtn, .lightboxBackground, #cancleValuePillar, #applyValuePillarValues").click(function(){$("#popupValuePillar, .lightboxBackground").fadeOut()}))}!function(n){window.fp_dragAndMoveExtension=function(){function wt(){t.isAnimating&&(si(),oi(),wi());it=window.requestAnimFrame(wt)}function ei(){"fingersonly"!==i.dragAndMove&&n(window).on("mousedown MouseDownHandler",vi)}function oi(){return r?(a||(a=b),tt=a<b?"up":a>b?"down":"none",a=b):(v||(v=w),tt=v<w?"left":v>w?"right":"none",v=w),tt}function si(){ci();li();var i=r?c:l;!t.isGrabbing&&i<0&&u.scrollHandler();r?(rt*=ri,c+=rt,n(f).trigger("onScroll")):(ut*=ri,l+=ut);t.isGrabbing||d||hi(i)}function hi(n){var i=r?c:l;Math.round(100*i)==Math.round(100*n)&&k++;k>2&&(t.isAnimating=!1)}function ci(){var n,t,i,f;r?(n=u.getDestinationPosition(o),t=c):o.length&&(n=o.position().left,t=l);i=o.length?n*-1-t:0;f=i*ki;bt(f)}function bt(n){r?rt+=n:ut+=n}function li(){if(t.isGrabbing){var n,i;r?(n=ui-c,i=n-rt):(n=fi-l,i=n-ut);bt(i)}}function ot(){var l,y,i,c;n(window).off("mousemove MouseMoveHandler",nt);n(window).off("mouseup",ot);l=r?n(window).height():n(window).width();y=tt===s;((vt<30||vt<l/2&&!y)&&(o=r?n(e):n(e).find(p)),!r&&o&&t.isGrabbing&&t.isAnimating)&&(i=h.find(st),i.length&&u.landscapeScroll(i,o,s));(n(f).trigger("onGrab",[!1]),t.isGrabbing=!1,d=!1,a=0,v=0,ii)||(r?(c={up:n(e).prev().length?o.next():n(e),down:n(e).next().length?o.prev():n(e)},"none"!==s&&c[s].find(ni).length&&u.silentLandscapeScroll(c[s].find(p),"internal")):u.silentScroll(u.getDestinationPosition(n(e))))}function ai(i){var r=i.originalEvent,f,e;(k=0,d=!0,ti=(new Date).getTime(),u.isReallyTouch(r))&&(f=u.getEventsPage(r),ft=f.y,et=f.x,lt=t.getCurrentScroll(),at=t.getCurrentScrollSlides(r),e=u.getMSPointer(),n(window).on("touchmove "+e.move,nt),n(window).on("touchend",ot))}function vi(i){ii=k;k=0;d=!0;ti=(new Date).getTime();ft=g(i,"y");et=g(i,"x");lt=t.getCurrentScroll();at=t.getCurrentScrollSlides(i);nt(i);n(window).on("mousemove MouseMoveHandler",nt);n(window).on("mouseup",ot)}function g(n,t){var f="x"===t,r;return u.isTouch&&u.isReallyTouch(n)?(r=u.getEventsPage(n),f?r.x:r.y):f?n.pageX:i.scrollBar||!i.autoScrolling?n.screenY:n.pageY}function nt(a){var tt,it,nt=a.originalEvent,v,k,rt;it=g(nt,"x");tt=g(nt,"y");v=tt-ft;k=it-et;Math.abs(v)<5&&Math.abs(k)<5||Math.abs(v)<5&&Math.abs(v)>Math.abs(k)||Math.abs(k)<5&&Math.abs(k)>Math.abs(v)||(d&&(t.isGrabbing||(r=Math.abs(v)>Math.abs(k),u.removeAnimation(n(f)),u.removeAnimation(h.find(ht))),n(f).trigger("onGrab",[!0]),t.isGrabbing=!0),rt={up:n(e).prev(),down:n(e).next(),left:n(nt.target).closest(y).find(p).prev(),right:n(nt.target).closest(y).find(p).next(),none:n(e)},t.isGrabbing&&(c=t.getCurrentScroll(),l=t.getCurrentScrollSlides(nt),w=it,b=tt,s=yi(it,tt),o=rt[s],o=pi(o,s),t.isAnimating="vertical"!==i.dragAndMove&&"horizontal"!==i.dragAndMove||"vertical"===i.dragAndMove&&r||"horizontal"===i.dragAndMove&&!r,t.isAnimating=t.isAnimating&&u.isScrollAllowed.m[s]),ui=lt+v,fi=at+k,t.isAnimating&&nt.preventDefault())}function yi(n,t){var i=r?ft:et,u=r?t:n;return vt=Math.abs(i-u),i>u?r?"down":"right":i<u?r?"up":"left":"none"}function pi(t){return t.length?t:r?n(e):h.find(p)}function wi(){var t=r?n(f):h.find(ht),e;i.css3&&(!r||r&&i.autoScrolling&&!i.scrollBar)?(e=r?"translate3d(0px, "+Math.round(c)+"px, 0px)":"translate3d("+Math.round(l)+"px, 0px, 0px)",t.css(u.getTransforms(e))):i.autoScrolling&&!i.scrollBar&&r?t.css("top",Math.round(c)):r?n(window).scrollTop(Math.round(-c)):t.closest(st).scrollLeft(-1*Math.round(l))}function bi(){n.each(["continuousHorizontal","continuousVertical"],function(n,t){i[t]&&(i[t]=!1,kt("error","The option `"+t+"` is not compatible with `dragAndDrop`; `"+t+"` desactivated."))});i.scrollOverflow&&kt("warn","The option `scrollOverflow` is not fully compatible with `dragAndDrop`; Scrolling sections/slides will not work when dragging")}function kt(n,t){console&&console[n]&&console[n]("fullPage: "+t)}var t=this,dt=n.fn.fullpage.getFullpageData(),i=dt.options,u=dt.internals,f=".fullpage-wrapper",gt=".active",y=".fp-section",e=y+gt,ni=".fp-slide",p=ni+gt,st=".fp-slides",ht=".fp-slidesContainer",ft,et,a,v,yt,pt;t.isGrabbing=!1;t.isAnimating=!1;var tt,h,ti,w,b,ii,it,ct,k=0,s=null,o=null,rt=0,ut=0,ki=.05,ri=.7,c=0,l=0,ui=0,fi=0,lt=0,at=0,d=!1,r=!1,vt=0;return window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){it=window.setTimeout(n,1e3/60)}}(),window.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(n){window.clearTimeout(n)}}(),t.init=function(){return ct=ct||n.extend(!0,{},i).dragAndMove,i.dragAndMove=ct,i.fitToSection=!1,bi(),ei(),wt(),t.turnOffTouch(),t},t.turnOffTouch=function(){if("mouseonly"!==i.dragAndMove){var t=u.getMSPointer();n(f).off("touchstart "+t.down).off("touchmove "+t.move);"mouseonly"!==i.dragAndMove&&n(f).on("touchstart "+t.down,ai)}},a=0,v=0,t.getCurrentScroll=function(){if(!i.css3||!i.autoScrolling||i.scrollBar)return i.autoScrolling&&!i.scrollBar?parseInt(n(f).css("top")):-n(window).scrollTop();var t=n(f).css("transform");return t="undefined"==typeof t?n(f).css("-webkit-transform"):t,"undefined"!=typeof t?parseInt(t.split(",")[5]):void 0},t.getCurrentScrollSlides=function(t){var o=n(t.target).closest(y),u,s,r;if(h=o.length?o:h,"undefined"==typeof h&&(h=n(e)),u=h.find(st),u.length){if(s=u.find(ht),!i.css3)return-u.scrollLeft();if(r=s.css("transform"),r="undefined"==typeof r?n(f).css("-webkit-transform"):r,"undefined"!=typeof r)return"none"===r?0:parseInt(r.split(",")[4])}return 0},t.getDocumentHeight=function(){var t=0,i=n(y).length;return n(y).each(function(r){r!==i&&(t+=n(this).height())}),t},t.destroy=function(){var t=u.getMSPointer();n(f).off("touchstart "+t.down).off("touchmove "+t.move).off("touchend");n(window).off("mousedown MouseDownHandler").off("mousemove MouseMoveHandler").off("mouseup");cancelAnimFrame(it);it=void 0;i.dragAndMove=!1},t.isScrollingDown=function(){return!r&&yt?yt:yt="down"===s},t.c=u.c,pt=t["common".charAt(0)],"complete"===document.readyState&&pt("dragAndMove"),n(window).on("load",function(){pt("dragAndMove")}),t}}(jQuery);!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,n,n.document,n.Math)}):"object"==typeof exports&&exports?module.exports=t(require("jquery"),n,n.document,n.Math):t(jQuery,n,n.document,n.Math)}("undefined"!=typeof window?window:this,function(n,t,i,r,u){"use strict";var lt="fullpage-wrapper",y="."+lt,b="fp-responsive",tt="fp-notransition",it="fp-destroyed",k="fp-enabled",rt="fp-viewing",e="active",p="."+e,d="fp-completely",ni="."+d,ti=".section",g="fp-section",f="."+g,o=f+p,ii=f+":first",ri=f+":last",at="fp-tableCell",vt="."+at,ui="fp-auto-height",fi="fp-normal-scroll",yt="fp-nav",h="#"+yt,pt="fp-tooltip",ei="."+pt,oi="fp-show-active",si=".slide",ut="fp-slide",l="."+ut,c=l+p,wt="fp-slides",a="."+wt,ft="fp-slidesContainer",et="."+ft,ot="fp-table",bt="fp-slidesNav",nt="."+bt,kt=nt+" a",st="fp-controlArrow",w="."+st,ht="fp-prev",hi="."+ht,ci=st+" "+ht,ct=w+hi,dt="fp-next",li="."+dt,ai=st+" "+dt,gt=w+li,s=n(t),v=n(i);n.fn.fullpage=function(st){function lr(t,i){t||er(0);ou("autoScrolling",t,i);var r=n(o);st.autoScrolling&&!st.scrollBar?(nr.css({overflow:"hidden",height:"100%"}),pu(cr.recordHistory,"internal"),hi.css({"-ms-touch-action":"none","touch-action":"none"}),r.length&&er(r.position().top)):(nr.css({overflow:"visible",height:"initial"}),pu(!1,"internal"),hi.css({"-ms-touch-action":"","touch-action":""}),ao(hi),r.length&&nr.scrollTop(r.position().top));hi.trigger("setAutoScrolling",[t])}function pu(n,t){ou("recordHistory",n,t)}function ar(n,t){"internal"!==t&&st.fadingEffect&&dt.fadingEffect&&dt.fadingEffect.update(n);ou("scrollingSpeed",n,t)}function wu(n,t){ou("fitToSection",n,t)}function us(n){st.lockAnchors=n}function bu(n){n?(oc(),sc()):(ec(),hc())}function vr(t,i){"undefined"!=typeof i?(i=i.replace(/ /g,"").split(","),n.each(i,function(n,i){eu(t,i,"m")})):(eu(t,"all","m"),t?(bu(!0),cc()):(bu(!1),lc()))}function he(t,i){"undefined"!=typeof i?(i=i.replace(/ /g,"").split(","),n.each(i,function(n,i){eu(t,i,"k")})):(eu(t,"all","k"),st.keyboardScrolling=t)}function yr(){var t=n(o).prev(f);!t.length&&(st.loopTop||st.continuousVertical)&&(t=n(f).last());t.length&&fr(t,null,!0)}function gr(){var t=n(o).next(f);!t.length&&(st.loopBottom||st.continuousVertical)&&(t=n(f).first());t.length&&fr(t,null,!1)}function ku(n,t){ar(0,"internal");nu(n,t);ar(cr.scrollingSpeed,"internal")}function nu(n,t){var i=af(n);"undefined"!=typeof t?vf(n,t):i.length>0&&fr(i)}function tu(n){ye("right",n)}function iu(n){ye("left",n)}function du(t){if(!hi.hasClass(it)){pi=!0;rr=s.height();n(f).each(function(){var t=n(this).find(a),i=n(this).find(l);st.verticalCentered&&n(this).find(vt).css("height",oo(n(this))+"px");n(this).css("height",gu(n(this))+"px");i.length>1&&tr(t,t.find(c))});st.scrollOverflow&&ko.createScrollBarForAll();var r=n(o),i=r.index(f);i&&!vi("fadingEffect")&&ku(i+1);pi=!1;n.isFunction(st.afterResize)&&t&&st.afterResize.call(hi);n.isFunction(st.afterReBuild)&&!t&&st.afterReBuild.call(hi);hi.trigger("afterRebuild")}}function ru(t){var i=yi.hasClass(b);t?i||(lr(!1,"internal"),wu(!1,"internal"),n(h).hide(),yi.addClass(b),n.isFunction(st.afterResponsive)&&st.afterResponsive.call(hi,t),st.responsiveSlides&&dt.responsiveSlides&&dt.responsiveSlides.toSections(),hi.trigger("afterResponsive",[t])):i&&(lr(cr.autoScrolling,"internal"),wu(cr.autoScrolling,"internal"),n(h).show(),yi.removeClass(b),n.isFunction(st.afterResponsive)&&st.afterResponsive.call(hi,t),st.responsiveSlides&&dt.responsiveSlides&&dt.responsiveSlides.toSlides(),hi.trigger("afterResponsive",[t]))}function fs(){return{options:st,internals:{canScroll:wi,isScrollAllowed:li,getDestinationPosition:pe,isTouch:br,c:ch,getXmovement:fo,removeAnimation:uo,getTransforms:df,lazyLoad:wr,addAnimation:hf,performHorizontalMove:to,landscapeScroll:tr,silentLandscapeScroll:kf,keepSlidesPosition:rf,silentScroll:er,styleSlides:ce,scrollHandler:nf,getEventsPage:bf,getMSPointer:lo,isReallyTouch:pr,usingExtension:vi,toggleControlArrows:no}}}function es(){st.css3&&(st.css3=fc());st.scrollBar=st.scrollBar||st.hybrid;ss();hs();vr(!0);lr(st.autoScrolling,"internal");ro();co();"complete"===i.readyState&&be();s.on("load",be)}function os(){s.on("scroll",nf).on("hashchange",ke).blur(wh).resize(io);v.keydown(lh).keyup(vh).on("click touchstart",h+" a",bh).on("click touchstart",kt,kh).on("click",ei,ah);n(f).on("click touchstart",w,ph);st.normalScrollElements&&(v.on("mouseenter touchstart",st.normalScrollElements,function(){vr(!1)}),v.on("mouseleave touchend",st.normalScrollElements,function(){vr(!0)}))}function bi(n){var i="fp_"+n+"Extension";lu[n]=st[n+"Key"];dt[n]="undefined"!=typeof t[i]?new t[i]:null;dt[n]&&dt[n].c(n)}function ss(){var t=hi.find(st.sectionSelector);st.anchors.length||(st.anchors=t.filter("[data-anchor]").map(function(){return n(this).data("anchor").toString()}).get());st.navigationTooltips.length||(st.navigationTooltips=t.filter("[data-tooltip]").map(function(){return n(this).data("tooltip").toString()}).get())}function hs(){hi.css({height:"100%",position:"relative"});hi.addClass(lt);n("html").addClass(k);rr=s.height();hi.removeClass(it);as();or("parallax","init");n(f).each(function(t){var i=n(this),r=i.find(l),u=r.length;i.data("fp-styles",i.attr("style"));cs(i,t);ls(i,t);u>0?ce(i,r,u):st.verticalCentered&&eo(i)});st.fixedElements&&st.css3&&n(st.fixedElements).appendTo(yi);st.navigation&&ys();ps();st.fadingEffect&&dt.fadingEffect&&dt.fadingEffect.apply();st.scrollOverflow?ko=st.scrollOverflowHandler.init(st):le()}function ce(t,i,r){var s=100*r,h=100/r,u;i.wrapAll('<div class="'+ft+'" />');i.parent().wrap('<div class="'+wt+'" />');t.find(et).css("width",s+"%");r>1&&(st.controlArrows&&vs(t),st.slidesNavigation&&uc(t,r));i.each(function(){n(this).css("width",h+"%");st.verticalCentered&&eo(n(this))});u=t.find(c);u.length&&(0!==n(o).index(f)||0===n(o).index(f)&&0!==u.index())?kf(u,"internal"):i.eq(0).addClass(e)}function gu(n){return st.offsetSections&&dt.offsetSections?r.round(dt.offsetSections.getWindowHeight(n)):rr}function cs(t,i){i||0!==n(o).length||t.addClass(e);wo=n(o);t.css("height",gu(t)+"px");st.paddingTop&&t.css("padding-top",st.paddingTop);st.paddingBottom&&t.css("padding-bottom",st.paddingBottom);"undefined"!=typeof st.sectionsColor[i]&&t.css("background-color",st.sectionsColor[i]);"undefined"!=typeof st.anchors[i]&&t.attr("data-anchor",st.anchors[i])}function ls(t,i){"undefined"!=typeof st.anchors[i]&&t.hasClass(e)&&cf(st.anchors[i],i);st.menu&&st.css3&&n(st.menu).closest(y).length&&n(st.menu).appendTo(yi)}function as(){hi.find(st.sectionSelector).addClass(g);hi.find(st.slideSelector).addClass(ut)}function vs(n){n.find(a).after('<div class="'+ci+'"><\/div><div class="'+ai+'"><\/div>');"#fff"!=st.controlArrowColor&&(n.find(gt).css("border-color","transparent transparent transparent "+st.controlArrowColor),n.find(ct).css("border-color","transparent "+st.controlArrowColor+" transparent transparent"));st.loopHorizontal||n.find(ct).hide()}function ys(){var u,t,s,i,r;for(yi.append('<div id="'+yt+'"><ul><\/ul><\/div>'),u=n(h),u.addClass(function(){return st.showActiveTooltip?oi+" "+st.navigationPosition:st.navigationPosition}),t=0;t<n(f).length;t++)s="",st.anchors.length&&(s=st.anchors[t]),i='<li><a href="#'+s+'"><span><\/span><\/a>',r=st.navigationTooltips[t],"undefined"!=typeof r&&""!==r&&(i+='<div class="'+pt+" "+st.navigationPosition+'">'+r+"<\/div>"),i+="<\/li>",u.find("ul").append(i);n(h).css("margin-top","-"+n(h).height()/2+"px");n(h).find("li").eq(n(o).index(f)).find("a").addClass(e)}function ps(){hi.find('iframe[src*="youtube.com/embed/"]').each(function(){ws(n(this),"enablejsapi=1")})}function ws(n,t){var i=n.attr("src");n.attr("src",i+bs(i)+t)}function bs(n){return/\?/.test(n)?"&":"?"}function le(){var t=n(o);t.addClass(d);wr(t);fu(t);st.scrollOverflow&&st.scrollOverflowHandler.afterLoad();ks()&&n.isFunction(st.afterLoad)&&st.afterLoad.call(t,t.data("anchor"),t.index(f)+1);n.isFunction(st.afterRender)&&st.afterRender.call(hi);hi.trigger("afterRender")}function ks(){var n=af(of().section);return!n||n.length&&n.index()===wo.index()}function nf(){ee||(requestAnimationFrame(ds),ee=!0)}function ds(){var t,u,b;if(hi.trigger("onScroll"),(!st.autoScrolling||st.scrollBar||vi("dragAndMove"))&&!yo()){var h=vi("dragAndMove")?r.abs(dt.dragAndMove.getCurrentScroll()):s.scrollTop(),l=(gs(h),0),nt=h+s.height()/2,tt=vi("dragAndMove")?dt.dragAndMove.getDocumentHeight():yi.height()-s.height(),it=tt===h,a=i.querySelectorAll(f);if(it)l=a.length-1;else if(h)for(u=0;u<a.length;++u)b=a[u],b.offsetTop<=nt&&(l=u);else l=0;if(t=n(a).eq(l),!t.hasClass(e)){fe=!0;var k,d,p=n(o),g=p.index(f)+1,rt=lf(t),v=t.data("anchor"),y=t.index(f)+1,w=t.find(c);w.length&&(d=w.data("anchor"),k=w.index());wi&&(t.addClass(e).siblings().removeClass(e),or("parallax","afterLoad"),n.isFunction(st.onLeave)&&st.onLeave.call(p,g,y,rt),n.isFunction(st.afterLoad)&&st.afterLoad.call(t,v,y),st.resetSliders&&dt.resetSliders&&dt.resetSliders.apply({localIsResizing:pi,leavingSection:g}),ff(p),wr(t),fu(t),cf(v,y-1),st.anchors.length&&(sr=v),yf(k,d,v,y));clearTimeout(ie);ie=setTimeout(function(){fe=!1},100)}st.fitToSection&&(clearTimeout(re),re=setTimeout(function(){st.fitToSection&&n(o).outerHeight()<=rr&&ae()},st.fitToSectionDelay))}ee=!1}function ae(){wi&&(pi=!0,fr(n(o)),pi=!1)}function gs(n){var t=n>is?"down":"up";return is=n,oe=n,t}function tf(t){var i,r,u;if(li.m[t])if(i="down"===t?gr:yr,dt.scrollHorizontally&&(i=dt.scrollHorizontally.getScrollSection(t,i)),st.scrollOverflow)if(r=st.scrollOverflowHandler.scrollable(n(o)),u="down"===t?"bottom":"top",r.length>0){if(!st.scrollOverflowHandler.isScrolled(u,r))return!0;i()}else i();else i()}function nh(n){var t=n.originalEvent;st.autoScrolling&&pr(t)&&n.preventDefault()}function th(t){var i=t.originalEvent,u=n(i.target).closest(f),e;pr(i)&&(st.autoScrolling&&t.preventDefault(),e=bf(i),dr=e.y,vu=e.x,u.find(a).length&&r.abs(au-vu)>r.abs(kr-dr)?!ir&&r.abs(au-vu)>s.outerWidth()/100*st.touchSensitivity&&(au>vu?li.m.right&&tu(u):li.m.left&&iu(u)):st.autoScrolling&&wi&&r.abs(kr-dr)>s.height()/100*st.touchSensitivity&&(kr>dr?tf("down"):dr>kr&&tf("up")))}function pr(n){return"undefined"==typeof n.pointerType||"mouse"!=n.pointerType}function ih(n){var i=n.originalEvent,t;(st.fitToSection&&nr.stop(),pr(i))&&(t=bf(i),kr=t.y,au=t.x)}function ve(n,t){for(var u=0,f=n.slice(r.max(n.length-t,1)),i=0;i<f.length;i++)u+=f[i];return r.ceil(u/t)}function ur(i){var u=(new Date).getTime(),o=n(ni).hasClass(fi),e;if(st.autoScrolling&&!su&&!o){i=i||t.event;var f=i.wheelDelta||-i.deltaY||-i.detail,s=r.max(-1,r.min(1,f)),h="undefined"!=typeof i.wheelDeltaX||"undefined"!=typeof i.deltaX,c=r.abs(i.wheelDeltaX)<r.abs(i.wheelDelta)||r.abs(i.deltaX)<r.abs(i.deltaY)||!h;if(hr.length>149&&hr.shift(),hr.push(r.abs(f)),st.scrollBar&&(i.preventDefault?i.preventDefault():i.returnValue=!1),e=u-rs,rs=u,e>200&&(hr=[]),wi&&!vo()){var l=ve(hr,10),a=ve(hr,70),v=l>=a;v&&c&&tf(s<0?"down":"up")}return!1}st.fitToSection&&nr.stop()}function ye(t,i){var e="undefined"==typeof i?n(o):i,f=e.find(a),r,u;if(!(!f.length||vo()||ir||f.find(l).length<2)){if(r=f.find(c),u=null,u="left"===t?r.prev(l):r.next(l),!u.length){if(!st.loopHorizontal)return;u="left"===t?r.siblings(":last"):r.siblings(":first")}ir=!0;tr(f,u,t)}}function rf(){n(c).each(function(){kf(n(this),"internal")})}function pe(n){var r=n.position(),t=r.top,i=vi("dragAndMove")&&dt.dragAndMove.isGrabbing?dt.dragAndMove.isScrollingDown():r.top>oe,u=t-rr+n.outerHeight(),f=st.bigSectionsDestination;return n.outerHeight()>rr?(i||f)&&"bottom"!==f||(t=u):(i||pi&&n.is(":last-child"))&&(t=u),st.offsetSections&&dt.offsetSections&&(t=dt.offsetSections.getSectionPosition(i,t,n)),oe=t,t}function fr(t,i,r){if("undefined"!=typeof t&&t.length){var h,l,a=pe(t),u={element:t,callback:i,isMovementUp:r,dtop:a,yMovement:lf(t),anchorLink:t.data("anchor"),sectionIndex:t.index(f),activeSlide:t.find(c),activeSection:n(o),leavingSection:n(o).index(f)+1,localIsResizing:pi};u.activeSection.is(t)&&!pi||st.scrollBar&&s.scrollTop()===u.dtop&&!t.hasClass(ui)||(u.activeSlide.length&&(h=u.activeSlide.data("anchor"),l=u.activeSlide.index()),n.isFunction(st.onLeave)&&!u.localIsResizing&&st.onLeave.call(u.activeSection,u.leavingSection,u.sectionIndex+1,u.yMovement)===!1||(or("parallax","apply",u),st.autoScrolling&&st.continuousVertical&&"undefined"!=typeof u.isMovementUp&&(!u.isMovementUp&&"up"==u.yMovement||u.isMovementUp&&"down"==u.yMovement)&&(u=eh(u)),vi("scrollOverflowReset")&&dt.scrollOverflowReset.setPrevious(u.activeSection),u.localIsResizing||ff(u.activeSection),st.scrollOverflow&&st.scrollOverflowHandler.beforeLeave(),t.addClass(e).siblings().removeClass(e),wr(t),st.scrollOverflow&&st.scrollOverflowHandler.onLeave(),wi=!1,yf(l,h,u.anchorLink,u.sectionIndex),uh(u),sr=u.anchorLink,cf(u.anchorLink,rh(u))))}}function rh(t){return t.wrapAroundElements&&t.wrapAroundElements.length?t.isMovementUp?n(f).length-1:0:t.sectionIndex}function uh(t){var u,i;st.css3&&st.autoScrolling&&!st.scrollBar?(u="translate3d(0px, -"+r.round(t.dtop)+"px, 0px)",so(u,!0),st.scrollingSpeed?(clearTimeout(cu),cu=setTimeout(function(){uu(t)},st.scrollingSpeed)):uu(t)):(i=fh(t),n(i.element).animate(i.options,st.scrollingSpeed,st.easing).promise().done(function(){st.scrollBar?setTimeout(function(){uu(t)},30):uu(t)}))}function fh(n){var t={};return st.autoScrolling&&!st.scrollBar?(t.options={top:-n.dtop},t.element=y):(t.options={scrollTop:n.dtop},t.element="html, body"),t}function eh(t){return t.isMovementUp?t.activeSection.before(t.activeSection.nextAll(f)):t.activeSection.after(t.activeSection.prevAll(f).get().reverse()),er(n(o).position().top),rf(),t.wrapAroundElements=t.activeSection,t.dtop=t.element.position().top,t.yMovement=lf(t.element),t.leavingSection=t.activeSection.index(f)+1,t.sectionIndex=t.element.index(f),n(y).trigger("onContinuousVertical",[t]),t}function oh(t){t.wrapAroundElements&&t.wrapAroundElements.length&&(t.isMovementUp?n(ii).before(t.wrapAroundElements):n(ri).after(t.wrapAroundElements),er(n(o).position().top),rf(),t.sectionIndex=t.element.index(f),t.leavingSection=t.activeSection.index(f)+1)}function uu(t){oh(t);n.isFunction(st.afterLoad)&&!t.localIsResizing&&st.afterLoad.call(t.element,t.anchorLink,t.sectionIndex+1);st.scrollOverflow&&st.scrollOverflowHandler.afterLoad();or("parallax","afterLoad");vi("scrollOverflowReset")&&dt.scrollOverflowReset.reset();st.resetSliders&&dt.resetSliders&&dt.resetSliders.apply(t);t.localIsResizing||fu(t.element);t.element.addClass(d).siblings().removeClass(d);wi=!0;n.isFunction(t.callback)&&t.callback.call(this)}function uf(n,t){n.attr(t,n.data(t)).removeAttr("data-"+t)}function wr(t){if(st.lazyLoading){var i,r=ef(t);r.find("img[data-src], img[data-srcset], source[data-src], source[data-srcset], video[data-src], audio[data-src], iframe[data-src]").each(function(){if(i=n(this),n.each(["src","srcset"],function(n,t){var r=i.attr("data-"+t);"undefined"!=typeof r&&r&&uf(i,t)}),i.is("source")){var t=i.closest("video").length?"video":"audio";i.closest(t).get(0).load()}})}}function fu(t){var i=ef(t);i.find("video, audio").each(function(){var t=n(this).get(0);t.hasAttribute("data-autoplay")&&"function"==typeof t.play&&t.play()});i.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=n(this).get(0);t.hasAttribute("data-autoplay")&&we(t);t.onload=function(){t.hasAttribute("data-autoplay")&&we(t)}})}function we(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function ff(t){var i=ef(t);i.find("video, audio").each(function(){var t=n(this).get(0);t.hasAttribute("data-keepplaying")||"function"!=typeof t.pause||t.pause()});i.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=n(this).get(0);/youtube\.com\/embed\//.test(n(this).attr("src"))&&!t.hasAttribute("data-keepplaying")&&n(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function ef(t){var i=t.find(c);return i.length&&(t=n(i)),t}function di(n){function i(n){var s,h,c,l,e,r,o,f="",i=0;for(n=n.replace(/[^A-Za-z0-9+\/=]/g,"");i<n.length;)l=t.indexOf(n.charAt(i++)),e=t.indexOf(n.charAt(i++)),r=t.indexOf(n.charAt(i++)),o=t.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(15&e)<<4|r>>2,c=(3&r)<<6|o,f+=String.fromCharCode(s),64!=r&&(f+=String.fromCharCode(h)),64!=o&&(f+=String.fromCharCode(c));return u(f)}function u(n){for(var f,r="",t=0,i=0,u=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(u=n.charCodeAt(t+1),r+=String.fromCharCode((31&i)<<6|63&u),t+=2):(u=n.charCodeAt(t+1),f=n.charCodeAt(t+2),r+=String.fromCharCode((15&i)<<12|(63&u)<<6|63&f),t+=3);return r}function f(n){return n}function r(n){return n.slice(3).slice(0,-3)}function e(n){var t=n.split("_");if(t.length>1){var u=t[1],f=n.replace(r(t[1]),"").split("_")[0],e=f;return e+"_"+i(u.slice(3).slice(0,-3))}return r(n)}var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return f(e(i(n)))}function sh(){var n,t;if(i.domain.length){for(n=i.domain.replace(/^(www\.)/,"").split(".");n.length>2;)n.shift();return t=n.join("."),t.replace(/(^\.*)|(\.*$)/g,"")}return""}function hh(n){var i=sh(),r=["MTM0bG9jYWxob3N0MjM0","MTM0MC4xMjM0","MTM0anNoZWxsLm5ldDIzNA==","UDdDQU5ZNlNN"],s=di(r[0]),h=di(r[1]),c=di(r[2]),l=di(r[3]),u=[s,h,c].indexOf(i)<0&&0!==i.length,f="undefined"!=typeof lu[n]&&lu[n].length,t,e,o;return!f&&u?!1:(t=f?di(lu[n]):"",t=t.split("_"),e=t.length>1&&t[1].indexOf(n,t[1].length-n.length)>-1,o=t[0].indexOf(i,t[0].length-i.length)<0,!(o&&u&&l!=t[0])&&e||!u)}function ch(t){function u(){ue||(r.random()<.5?yi.prepend(i):yi.append(i),ue=!0,i.bind("destroyed",function(){clearTimeout(f);f=setTimeout(e,900)}));n(i).attr("style",di("MTIzei1pbmRleDo5OTk5OTk5O3Bvc2l0aW9uOmZpeGVkO3RvcDoyMHB4O2JvdHRvbTphdXRvO2xlZnQ6MjBweDtyaWdodDphdXRvO2JhY2tncm91bmQ6cmVkO3BhZGRpbmc6N3B4IDE1cHg7Zm9udC1zaXplOjE0cHg7Zm9udC1mYW1pbHk6YXJpYWw7Y29sb3I6I2ZmZjtkaXNwbGF5OmlubGluZS1ibG9jazt0cmFuc2Zvcm06dHJhbnNsYXRlM2QoMCwwLDApO29wYWNpdHk6MTtoZWlnaHQ6YXV0bzt3aWR0aDphdXRvO3pvb206MTttYXJnaW46YXV0bztib3JkZXI6bm9uZTt2aXNpYmlsaXR5OnZpc2libGU7Y2xpcC1wYXRoOm5vbmU7MTIz").replace(/;/g,di("MTIzICFpbXBvcnRhbnQ7MzQ1")))}function e(){ue=!1}if(vi(t)&&dt[t]){var f,o=di("MTIzPGRpdj48YSBocmVmPSJodHRwOi8vYWx2YXJvdHJpZ28uY29tL2Z1bGxQYWdlL2V4dGVuc2lvbnMvIiBzdHlsZT0iY29sb3I6ICNmZmYgIWltcG9ydGFudDsgdGV4dC1kZWNvcmF0aW9uOm5vbmUgIWltcG9ydGFudDsiPlVubGljZW5zZWQgZnVsbFBhZ2UuanMgRXh0ZW5zaW9uPC9hPjwvZGl2PjEyMw=="),i=n("<div/>").html(o).contents();hh(t)||(u(),setInterval(u,2e3))}}function be(){var t=of(),n=t.section,i=t.slide;n&&(st.animateAnchor?vf(n,i):ku(n,i))}function ke(){if(!fe&&!st.lockAnchors){var i=of(),n=i.section,t=i.slide,r="undefined"==typeof sr,u="undefined"==typeof sr&&"undefined"==typeof t&&!ir;n.length&&(n&&n!==sr&&!r||u||!ir&&gf!=t)&&vf(n,t)}}function of(){var f,e,r=t.location.hash,n,u,i;return r.length&&(n=r.replace("#","").split("/"),u=r.indexOf("#/")>-1,f=u?"/"+n[1]:decodeURIComponent(n[0]),i=u?n[2]:n[1],i&&i.length&&(e=decodeURIComponent(i))),{section:f,slide:e}}function lh(t){var i,r,u;clearTimeout(go);i=n(":focus");r=t.which;9===r?yh(t):i.is("textarea")||i.is("input")||i.is("select")||"true"===i.attr("contentEditable")||""===i.attr("contentEditable")||!st.keyboardScrolling||!st.autoScrolling||(u=[40,38,32,33,34],n.inArray(r,u)>-1&&t.preventDefault(),su=t.ctrlKey,go=setTimeout(function(){dh(t)},150))}function ah(){n(this).prev().trigger("click")}function vh(n){bo&&(su=n.ctrlKey)}function de(n){2==n.which&&(yu=n.pageY,hi.on("mousemove",gh))}function ge(n){2==n.which&&hi.off("mousemove")}function yh(t){function u(n){return n.preventDefault(),r.first().focus()}var f=t.shiftKey,i=n(":focus"),e=n(o),s=e.find(c),h=s.length?s:e,r=h.find(yc);i.length?i.closest(o,c).length||(i=u(t)):u(t);(!f&&i.is(r.last())||f&&i.is(r.first()))&&t.preventDefault()}function ph(){var t=n(this).closest(f);n(this).hasClass(ht)?li.m.left&&iu(t):li.m.right&&tu(t)}function wh(){bo=!1;su=!1}function bh(t){t.preventDefault();var i=n(this).parent().index();fr(n(f).eq(i))}function kh(t){t.preventDefault();var i=n(this).closest(f).find(a),r=i.find(l).eq(n(this).closest("li").index());tr(i,r)}function dh(t){var i=t.shiftKey;if(wi||!([37,39].indexOf(t.which)<0))switch(t.which){case 38:case 33:li.k.up&&yr();break;case 32:if(i&&li.k.up){yr();break}case 40:case 34:li.k.down&&gr();break;case 36:li.k.up&&nu(1);break;case 35:li.k.down&&nu(n(f).length);break;case 37:li.k.left&&iu();break;case 39:li.k.right&&tu();break;default:return}}function gh(n){wi&&(n.pageY<yu&&li.m.up?yr():n.pageY>yu&&li.m.down&&gr());yu=n.pageY}function tr(t,i,r){var o=t.closest(f),u={slides:t,destiny:i,direction:r,destinyPos:i.position(),slideIndex:i.index(),section:o,sectionIndex:o.index(f),anchorLink:o.data("anchor"),slidesNav:o.find(nt),slideAnchor:wf(i),prevSlide:o.find(c),prevSlideIndex:o.find(c).index(),localIsResizing:pi};return u.xMovement=fo(u.prevSlideIndex,u.slideIndex),u.localIsResizing||(wi=!1),or("parallax","applyHorizontal",u),st.onSlideLeave&&!u.localIsResizing&&"none"!==u.xMovement&&n.isFunction(st.onSlideLeave)&&st.onSlideLeave.call(u.prevSlide,u.anchorLink,u.sectionIndex+1,u.prevSlideIndex,u.direction,u.slideIndex)===!1?void(ir=!1):(i.addClass(e).siblings().removeClass(e),u.localIsResizing||(ff(u.prevSlide),wr(i)),no(u),o.hasClass(e)&&!u.localIsResizing&&yf(u.slideIndex,u.slideAnchor,u.anchorLink,u.sectionIndex),dt.continuousHorizontal&&dt.continuousHorizontal.apply(u),yo()?sf(u):to(t,u,!0),void(st.interlockedSlides&&dt.interlockedSlides&&(vi("continuousHorizontal")&&"undefined"!=typeof r&&r!==u.xMovement||dt.interlockedSlides.apply(u))))}function no(n){!st.loopHorizontal&&st.controlArrows&&(n.section.find(ct).toggle(0!==n.slideIndex),n.section.find(gt).toggle(!n.destiny.is(":last-child")))}function sf(t){dt.continuousHorizontal&&dt.continuousHorizontal.afterSlideLoads(t);nc(t.slidesNav,t.slideIndex);t.localIsResizing||(or("parallax","afterSlideLoads"),n.isFunction(st.afterSlideLoad)&&st.afterSlideLoad.call(t.destiny,t.anchorLink,t.sectionIndex+1,t.slideAnchor,t.slideIndex),wi=!0,fu(t.destiny));ir=!1;vi("interlockedSlides")&&dt.interlockedSlides.apply(t)}function to(n,t,i){var u=t.destinyPos,f;st.css3?(f="translate3d(-"+r.round(u.left)+"px, 0px, 0px)",hf(n.find(et)).css(df(f)),te=setTimeout(function(){i&&sf(t)},st.scrollingSpeed,st.easing)):n.animate({scrollLeft:r.round(u.left)},st.scrollingSpeed,st.easing,function(){i&&sf(t)})}function nc(n,t){n.find(p).removeClass(e);n.find("li").eq(t).find("a").addClass(e)}function io(){var t,u;(hi.trigger("onResize"),ro(),hu)?(t=n(i.activeElement),t.is("textarea")||t.is("input")||t.is("select")||(u=s.height(),r.abs(u-se)>r.max(se,u)/5&&(du(!0),se=u))):(clearTimeout(ne),ne=setTimeout(function(){du(!0)},350))}function ro(){var n=st.responsive||st.responsiveWidth,t=st.responsiveHeight,i=n&&s.outerWidth()<n,r=t&&s.height()<t;n&&t?ru(i||r):n?ru(i):t&&ru(r)}function hf(n){var t="all "+st.scrollingSpeed+"ms "+st.easingcss3;return n.removeClass(tt),n.css({"-webkit-transition":t,transition:t})}function uo(n){return n.addClass(tt)}function tc(t,i){st.navigation&&(n(h).find(p).removeClass(e),t?n(h).find('a[href="#'+t+'"]').addClass(e):n(h).find("li").eq(i).find("a").addClass(e))}function ic(t){st.menu&&(n(st.menu).find(p).removeClass(e),n(st.menu).find('[data-menuanchor="'+t+'"]').addClass(e))}function cf(n,t){ic(n);tc(n,t)}function lf(t){var i=n(o).index(f),r=t.index(f);return i==r?"none":i>r?"up":"down"}function fo(n,t){return n==t?"none":n>t?"left":"right"}function eo(n){n.hasClass(ot)||n.addClass(ot).wrapInner('<div class="'+at+'" style="height:'+oo(n)+'px;" />')}function oo(n){var i=gu(n),t,r;return(st.paddingTop||st.paddingBottom)&&(t=n,t.hasClass(g)||(t=n.closest(f)),r=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom")),i-=r),i}function so(n,t){t?hf(hi):uo(hi);clearTimeout(ns);hi.css(df(n));ns=setTimeout(function(){hi.removeClass(tt)},10)}function af(t){var i=hi.find(f+'[data-anchor="'+t+'"]'),r;return i.length||(r="undefined"!=typeof t?t-1:0,i=n(f).eq(r)),i}function rc(n,t){var i=t.find(l+'[data-anchor="'+n+'"]');return i.length||(n="undefined"!=typeof n?n:0,i=t.find(l).eq(n)),i}function vf(n,t){var i=af(n),r;i.length&&(r=rc(t,i),n===sr||i.hasClass(e)?ho(r):fr(i,function(){ho(r)}))}function ho(n){n.length&&tr(n.closest(a),n)}function uc(n,t){var i,r;for(n.append('<div class="'+bt+'"><ul><\/ul><\/div>'),i=n.find(nt),i.addClass(st.slidesNavPosition),r=0;r<t;r++)i.find("ul").append('<li><a href="#"><span><\/span><\/a><\/li>');i.css("margin-left","-"+i.width()/2+"px");i.find("li").first().find("a").addClass(e)}function yf(n,t,i){var r="";st.anchors.length&&!st.lockAnchors&&(n?("undefined"!=typeof i&&(r=i),"undefined"==typeof t&&(t=n),gf=t,pf(r+"/"+t)):"undefined"!=typeof n?(gf=t,pf(i)):pf(i));co()}function pf(n){if(st.recordHistory)location.hash=n;else if(hu||br)t.history.replaceState(u,u,"#"+n);else{var i=t.location.href.split("#")[0];t.location.replace(i+"#"+n)}}function wf(n){var t=n.data("anchor"),i=n.index();return"undefined"==typeof t&&(t=i),t}function co(){var i=n(o),r=i.find(c),f=wf(i),e=wf(r),t=String(f),u;r.length&&(t=t+"-"+e);t=t.replace("/","-").replace("#","");u=new RegExp("\\b\\s?"+rt+"-[^\\s]+\\b","g");yi[0].className=yi[0].className.replace(u,"");yi.addClass(rt+"-"+t)}function fc(){var r,n=i.createElement("p"),e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},f;i.body.insertBefore(n,null);for(f in e)n.style[f]!==u&&(n.style[f]="translate3d(1px,1px,1px)",r=t.getComputedStyle(n).getPropertyValue(e[f]));return i.body.removeChild(n),r!==u&&r.length>0&&"none"!==r}function ec(){i.addEventListener?(i.removeEventListener("mousewheel",ur,!1),i.removeEventListener("wheel",ur,!1),i.removeEventListener("MozMousePixelScroll",ur,!1)):i.detachEvent("onmousewheel",ur)}function oc(){var n,r="",f;t.addEventListener?n="addEventListener":(n="attachEvent",r="on");f="onwheel"in i.createElement("div")?"wheel":i.onmousewheel!==u?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==f?i[n](r+"MozMousePixelScroll",ur,!1):i[n](r+f,ur,!1)}function sc(){hi.on("mousedown",de).on("mouseup",ge)}function hc(){hi.off("mousedown",de).off("mouseup",ge)}function cc(){(hu||br)&&(st.autoScrolling&&yi.off(ki.touchmove).on(ki.touchmove,nh),n(y).off(ki.touchstart).on(ki.touchstart,ih).off(ki.touchmove).on(ki.touchmove,th))}function lc(){(hu||br)&&(st.autoScrolling&&yi.off(ki.touchmove),n(y).off(ki.touchstart).off(ki.touchmove))}function lo(){return t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function bf(n){var t=[];return t.y="undefined"!=typeof n.pageY&&(n.pageY||n.pageX)?n.pageY:n.touches[0].pageY,t.x="undefined"!=typeof n.pageX&&(n.pageY||n.pageX)?n.pageX:n.touches[0].pageX,br&&pr(n)&&st.scrollBar&&"undefined"!=typeof n.touches&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function kf(n,t){ar(0,"internal");"undefined"!=typeof t&&(pi=!0);tr(n.closest(a),n);"undefined"!=typeof t&&(pi=!1);ar(cr.scrollingSpeed,"internal")}function er(n){var t=r.round(n),i;st.css3&&st.autoScrolling&&!st.scrollBar?(i="translate3d(0px, -"+t+"px, 0px)",so(i,!1)):st.autoScrolling&&!st.scrollBar?hi.css("top",-t):nr.scrollTop(t)}function df(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function eu(t,i,r){"all"!==i?li[r][i]=t:n.each(Object.keys(li[r]),function(n,i){li[r][i]=t})}function ac(t){hi.trigger("destroy",[t]);lr(!1,"internal");vr(!1);he(!1);hi.addClass(it);clearTimeout(te);clearTimeout(cu);clearTimeout(ne);clearTimeout(ie);clearTimeout(re);s.off("scroll",nf).off("hashchange",ke).off("resize",io);v.off("click touchstart",h+" a").off("mouseenter",h+" li").off("mouseleave",h+" li").off("click touchstart",kt).off("mouseover",st.normalScrollElements).off("mouseout",st.normalScrollElements);n(f).off("click touchstart",w);vi("dragAndMove")&&dt.dragAndMove.destroy();clearTimeout(te);clearTimeout(cu);t&&vc()}function vc(){er(0);hi.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){uf(n(this),"src")});hi.find("img[data-srcset]").each(function(){uf(n(this),"srcset")});n(h+", "+nt+", "+w).remove();n(f).css({height:"","background-color":"",padding:""});n(l).css({width:""});hi.css({height:"",position:"","-ms-touch-action":"","touch-action":""});nr.css({overflow:"",height:""});n("html").removeClass(k);yi.removeClass(b);n.each(yi.get(0).className.split(/\s+/),function(n,t){0===t.indexOf(rt)&&yi.removeClass(t)});n(f+", "+l).each(function(){st.scrollOverflowHandler&&st.scrollOverflowHandler.remove(n(this));n(this).removeClass(ot+" "+e);n(this).attr("style",n(this).data("fp-styles"))});ao(hi);hi.find(vt+", "+et+", "+a).each(function(){n(this).replaceWith(this.childNodes)});nr.scrollTop(0);var t=[g,ut,ft];n.each(t,function(t,i){n("."+i).removeClass(i)})}function ao(n){return n.css({"-webkit-transition":"none",transition:"none"})}function vi(n){return null!==st[n]&&"object"==typeof st[n]?st[n].enabled&&dt[n]:st[n]&&dt[n]}function or(n,t,i){if(vi(n))return dt[n][t](i)}function vo(){return vi("dragAndMove")&&dt.dragAndMove.isAnimating}function yo(){return vi("dragAndMove")&&dt.dragAndMove.isGrabbing}function ou(n,t,i){st[n]=t;"internal"!==i&&(cr[n]=t)}function po(){return n("html").hasClass(k)?void gi("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(st.continuousVertical&&(st.loopTop||st.loopBottom)&&(st.continuousVertical=!1,gi("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),st.scrollBar&&st.scrollOverflow&&gi("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),!st.continuousVertical||!st.scrollBar&&st.autoScrolling||(st.continuousVertical=!1,gi("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),st.scrollOverflow&&!st.scrollOverflowHandler&&(st.scrollOverflow=!1,gi("error","The option `scrollOverflow:true` requires the file `scrolloverflow.min.js`. Please include it before fullPage.js.")),void n.each(st.anchors,function(t,i){var r=v.find("[name]").filter(function(){return n(this).attr("name")&&n(this).attr("name").toLowerCase()==i.toLowerCase()}),u=v.find("[id]").filter(function(){return n(this).attr("id")&&n(this).attr("id").toLowerCase()==i.toLowerCase()});(u.length||r.length)&&(gi("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),u.length&&gi("error",'"'+i+'" is is being used by another element `id` property'),r.length&&gi("error",'"'+i+'" is is being used by another element `name` property'))}))}function gi(n,t){console&&console[n]&&console[n]("fullPage: "+t)}if(n("html").hasClass(k))return void po();var nr=n("html, body"),yi=n("body"),dt=n.fn.fullpage;st=n.extend(!0,{menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:n.fn.fp_scrolloverflow?n.fn.fp_scrolloverflow.iscrollHandler:null,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:ti,slideSelector:si,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},st);var sr,gf,su,wo,ir=!1,hu=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),br="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,hi=n(this),rr=s.height(),pi=!1,bo=!0,wi=!0,hr=[],li={};li.m={up:!0,down:!0,left:!0,right:!0};li.k=n.extend(!0,{},li.m);var ko,ne,cu,te,ie,re,go,ns,ts=lo(),ki={touchmove:"ontouchmove"in t?"touchmove":ts.move,touchstart:"ontouchstart"in t?"touchstart":ts.down},ue=!1,yc='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',cr=n.extend(!0,{},st),lu={};po();n.extend(n.easing,{easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i}});n.event.special.destroyed={remove:function(n){n.handler&&n.handler()}};n(this).length&&(dt.version="2.9.5",dt.setAutoScrolling=lr,dt.setRecordHistory=pu,dt.setScrollingSpeed=ar,dt.setFitToSection=wu,dt.setLockAnchors=us,dt.setMouseWheelScrolling=bu,dt.setAllowScrolling=vr,dt.setKeyboardScrolling=he,dt.moveSectionUp=yr,dt.moveSectionDown=gr,dt.silentMoveTo=ku,dt.moveTo=nu,dt.moveSlideRight=tu,dt.moveSlideLeft=iu,dt.fitToSection=ae,dt.reBuild=du,dt.setResponsive=ru,dt.getFullpageData=fs,dt.destroy=ac,dt.landscapeScroll=tr,dt.shared={afterRenderActions:le},bi("continuousHorizontal"),bi("scrollHorizontally"),bi("resetSliders"),bi("interlockedSlides"),bi("responsiveSlides"),bi("fadingEffect"),bi("dragAndMove"),bi("offsetSections"),bi("scrollOverflowReset"),bi("parallax"),vi("dragAndMove")&&dt.dragAndMove.init(),es(),os(),vi("dragAndMove")&&dt.dragAndMove.turnOffTouch());var fe=!1,is=0,kr=0,au=0,dr=0,vu=0;!function(){var n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame;t.requestAnimationFrame=n}();var rs=(new Date).getTime(),ee=!1,oe=0,yu=0,se=rr}});!function(n,t,i){function u(i,u){this.wrapper="string"==typeof i?t.querySelector(i):i;this.scroller=this.wrapper.children[0];this.scrollerStyle=this.scroller.style;this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!r.hasPointer,disableTouch:r.hasPointer||!r.hasTouch,disableMouse:r.hasPointer||r.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:"undefined"==typeof n.onmousedown};for(var f in u)this.options[f]=u[f];this.translateZ=this.options.HWCompositing&&r.hasPerspective?" translateZ(0)":"";this.options.useTransition=r.hasTransition&&this.options.useTransition;this.options.useTransform=r.hasTransform&&this.options.useTransform;this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough;this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault;this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY;this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX;this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough;this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold;this.options.bounceEasing="string"==typeof this.options.bounceEasing?r.ease[this.options.bounceEasing]||r.ease.circular:this.options.bounceEasing;this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling;this.options.tap===!0&&(this.options.tap="tap");this.options.useTransition||this.options.useTransform||/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative");"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1);this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1;this.x=0;this.y=0;this.directionX=0;this.directionY=0;this._events={};this._init();this.refresh();this.scrollTo(this.options.startX,this.options.startY);this.enable()}function e(n,i,r){var u=t.createElement("div"),f=t.createElement("div");return r===!0&&(u.style.cssText="position:absolute;z-index:9999",f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),f.className="iScrollIndicator","h"==n?(r===!0&&(u.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",f.style.height="100%"),u.className="iScrollHorizontalScrollbar"):(r===!0&&(u.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",f.style.width="100%"),u.className="iScrollVerticalScrollbar"),u.style.cssText+=";overflow:hidden",i||(u.style.pointerEvents="none"),u.appendChild(f),u}function o(i,u){var o,e,s;this.wrapper="string"==typeof u.el?t.querySelector(u.el):u.el;this.wrapperStyle=this.wrapper.style;this.indicator=this.wrapper.children[0];this.indicatorStyle=this.indicator.style;this.scroller=i;this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(o in u)this.options[o]=u[o];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(r.addEvent(this.indicator,"touchstart",this),r.addEvent(n,"touchend",this)),this.options.disablePointer||(r.addEvent(this.indicator,r.prefixPointerEvent("pointerdown"),this),r.addEvent(n,r.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(r.addEvent(this.indicator,"mousedown",this),r.addEvent(n,"mouseup",this))),this.options.fade){if(this.wrapperStyle[r.style.transform]=this.scroller.translateZ,e=r.style.transitionDuration,!e)return;this.wrapperStyle[e]=r.isBadAndroid?"0.0001ms":"0ms";s=this;r.isBadAndroid&&f(function(){"0.0001ms"===s.wrapperStyle[e]&&(s.wrapperStyle[e]="0s")});this.wrapperStyle.opacity="0"}}var f=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){n.setTimeout(t,1e3/60)},r=function(){function u(n){return e!==!1&&(""===e?n:e+n.charAt(0).toUpperCase()+n.substr(1))}var r={},f=t.createElement("div").style,e=function(){for(var i,t=["t","webkitT","MozT","msT","OT"],n=0,r=t.length;n<r;n++)if(i=t[n]+"ransform",i in f)return t[n].substr(0,t[n].length-1);return!1}(),o;return r.getTime=Date.now||function(){return(new Date).getTime()},r.extend=function(n,t){for(var i in t)n[i]=t[i]},r.addEvent=function(n,t,i,r){n.addEventListener(t,i,!!r)},r.removeEvent=function(n,t,i,r){n.removeEventListener(t,i,!!r)},r.prefixPointerEvent=function(t){return n.MSPointerEvent?"MSPointer"+t.charAt(7).toUpperCase()+t.substr(8):t},r.momentum=function(n,t,r,u,f,e){var o,c,h=n-t,s=i.abs(h)/r;return e=void 0===e?.0006:e,o=n+s*s/(2*e)*(h<0?-1:1),c=s/e,o<u?(o=f?u-f/2.5*(s/8):u,h=i.abs(o-n),c=h/s):o>0&&(o=f?f/2.5*(s/8):0,h=i.abs(n)+o,c=h/s),{destination:i.round(o),duration:c}},o=u("transform"),r.extend(r,{hasTransform:o!==!1,hasPerspective:u("perspective")in f,hasTouch:"ontouchstart"in n,hasPointer:!(!n.PointerEvent&&!n.MSPointerEvent),hasTransition:u("transition")in f}),r.isBadAndroid=function(){var i=n.navigator.appVersion,t;return/Android/.test(i)&&!/Chrome\/\d/.test(i)?(t=i.match(/Safari\/(\d+.\d)/),!(t&&"object"==typeof t&&t.length>=2)||parseFloat(t[1])<535.19):!1}(),r.extend(r.style={},{transform:o,transitionTimingFunction:u("transitionTimingFunction"),transitionDuration:u("transitionDuration"),transitionDelay:u("transitionDelay"),transformOrigin:u("transformOrigin")}),r.hasClass=function(n,t){var i=new RegExp("(^|\\s)"+t+"(\\s|$)");return i.test(n.className)},r.addClass=function(n,t){if(!r.hasClass(n,t)){var i=n.className.split(" ");i.push(t);n.className=i.join(" ")}},r.removeClass=function(n,t){if(r.hasClass(n,t)){var i=new RegExp("(^|\\s)"+t+"(\\s|$)","g");n.className=n.className.replace(i," ")}},r.offset=function(n){for(var t=-n.offsetLeft,i=-n.offsetTop;n=n.offsetParent;)t-=n.offsetLeft,i-=n.offsetTop;return{left:t,top:i}},r.preventDefaultException=function(n,t){for(var i in t)if(t[i].test(n[i]))return!0;return!1},r.extend(r.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),r.extend(r.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(n){return n*(2-n)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(n){return i.sqrt(1- --n*n)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(n){var t=4;return(n-=1)*n*((t+1)*n+t)+1}},bounce:{style:"",fn:function(n){return(n/=1)<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}},elastic:{style:"",fn:function(n){var t=.22;return 0===n?0:1==n?1:.4*i.pow(2,-10*n)*i.sin((n-t/4)*2*i.PI/t)+1}}}),r.tap=function(n,i){var r=t.createEvent("Event");r.initEvent(i,!0,!0);r.pageX=n.pageX;r.pageY=n.pageY;n.target.dispatchEvent(r)},r.click=function(i){var r,u=i.target;/(SELECT|INPUT|TEXTAREA)/i.test(u.tagName)||(r=t.createEvent(n.MouseEvent?"MouseEvents":"Event"),r.initEvent("click",!0,!0),r.view=i.view||n,r.detail=1,r.screenX=u.screenX||0,r.screenY=u.screenY||0,r.clientX=u.clientX||0,r.clientY=u.clientY||0,r.ctrlKey=!!i.ctrlKey,r.altKey=!!i.altKey,r.shiftKey=!!i.shiftKey,r.metaKey=!!i.metaKey,r.button=0,r.relatedTarget=null,r._constructed=!0,u.dispatchEvent(r))},r}();u.prototype={version:"5.2.0",_init:function(){this._initEvents();(this.options.scrollbars||this.options.indicators)&&this._initIndicators();this.options.mouseWheel&&this._initWheel();this.options.snap&&this._initSnap();this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0);clearTimeout(this.resizeTimeout);this.resizeTimeout=null;this._execEvent("destroy")},_transitionEnd:function(n){n.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(n){var f,t,u;(1==r.eventType[n.type]||(f=n.which?n.button:n.button<2?0:4==n.button?1:2,0===f))&&this.enabled&&(!this.initiated||r.eventType[n.type]===this.initiated)&&(!this.options.preventDefault||r.isBadAndroid||r.preventDefaultException(n.target,this.options.preventDefaultException)||n.preventDefault(),u=n.touches?n.touches[0]:n,this.initiated=r.eventType[n.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=r.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,t=this.getComputedPosition(),this._translate(i.round(t.x),i.round(t.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=u.pageX,this.pointY=u.pageY,this._execEvent("beforeScrollStart"))},_move:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&n.preventDefault();var f,e,o,s,h=n.touches?n.touches[0]:n,t=h.pageX-this.pointX,u=h.pageY-this.pointY,c=r.getTime();if(this.pointX=h.pageX,this.pointY=h.pageY,this.distX+=t,this.distY+=u,o=i.abs(this.distX),s=i.abs(this.distY),!(c-this.endTime>300&&o<10&&s<10)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=o>s+this.options.directionLockThreshold?"h":s>=o+this.options.directionLockThreshold?"v":"n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)n.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);u=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)n.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);t=0}t=this.hasHorizontalScroll?t:0;u=this.hasVerticalScroll?u:0;f=this.x+t;e=this.y+u;(f>0||f<this.maxScrollX)&&(f=this.options.bounce?this.x+t/3:f>0?0:this.maxScrollX);(e>0||e<this.maxScrollY)&&(e=this.options.bounce?this.y+u/3:e>0?0:this.maxScrollY);this.directionX=t>0?-1:t<0?1:0;this.directionY=u>0?-1:u<0?1:0;this.moved||this._execEvent("scrollStart");this.moved=!0;this._translate(f,e);c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(n){var f;if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&!r.preventDefaultException(n.target,this.options.preventDefaultException)&&n.preventDefault();var o,s,e=(n.changedTouches?n.changedTouches[0]:n,r.getTime()-this.startTime),t=i.round(this.x),u=i.round(this.y),l=i.abs(t-this.startX),a=i.abs(u-this.startY),h=0,c="";if(this.isInTransition=0,this.initiated=0,this.endTime=r.getTime(),!this.resetPosition(this.options.bounceTime))return(this.scrollTo(t,u),!this.moved)?(this.options.tap&&r.tap(n,this.options.tap),this.options.click&&r.click(n),void this._execEvent("scrollCancel")):this._events.flick&&e<200&&l<100&&a<100?void this._execEvent("flick"):((this.options.momentum&&e<300&&(o=this.hasHorizontalScroll?r.momentum(this.x,this.startX,e,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:t,duration:0},s=this.hasVerticalScroll?r.momentum(this.y,this.startY,e,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:u,duration:0},t=o.destination,u=s.destination,h=i.max(o.duration,s.duration),this.isInTransition=1),this.options.snap)&&(f=this._nearestSnap(t,u),this.currentPage=f,h=this.options.snapSpeed||i.max(i.max(i.min(i.abs(t-f.x),1e3),i.min(i.abs(u-f.y),1e3)),300),t=f.x,u=f.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing),t!=this.x||u!=this.y?((t>0||t<this.maxScrollX||u>0||u<this.maxScrollY)&&(c=r.ease.quadratic),void this.scrollTo(t,u,h,c)):void this._execEvent("scrollEnd"))}},_resize:function(){var n=this;clearTimeout(this.resizeTimeout);this.resizeTimeout=setTimeout(function(){n.refresh()},this.options.resizePolling)},resetPosition:function(n){var t=this.x,i=this.y;return n=n||0,!this.hasHorizontalScroll||this.x>0?t=0:this.x<this.maxScrollX&&(t=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),(t!=this.x||i!=this.y)&&(this.scrollTo(t,i,n,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth;this.wrapperHeight=this.wrapper.clientHeight;this.scrollerWidth=this.scroller.offsetWidth;this.scrollerHeight=this.scroller.offsetHeight;this.maxScrollX=this.wrapperWidth-this.scrollerWidth;this.maxScrollY=this.wrapperHeight-this.scrollerHeight;this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0;this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0;this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth);this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight);this.endTime=0;this.directionX=0;this.directionY=0;this.wrapperOffset=r.offset(this.wrapper);this._execEvent("refresh");this.resetPosition()},on:function(n,t){this._events[n]||(this._events[n]=[]);this._events[n].push(t)},off:function(n,t){if(this._events[n]){var i=this._events[n].indexOf(t);i>-1&&this._events[n].splice(i,1)}},_execEvent:function(n){if(this._events[n]){var t=0,i=this._events[n].length;if(i)for(;t<i;t++)this._events[n][t].apply(this,[].slice.call(arguments,1))}},scrollBy:function(n,t,i,r){n=this.x+n;t=this.y+t;i=i||0;this.scrollTo(n,t,i,r)},scrollTo:function(n,t,i,u){u=u||r.ease.circular;this.isInTransition=this.options.useTransition&&i>0;var f=this.options.useTransition&&u.style;!i||f?(f&&(this._transitionTimingFunction(u.style),this._transitionTime(i)),this._translate(n,t)):this._animate(n,t,i,u.fn)},scrollToElement:function(n,t,u,f,e){if(n=n.nodeType?n:this.scroller.querySelector(n)){var o=r.offset(n);o.left-=this.wrapperOffset.left;o.top-=this.wrapperOffset.top;u===!0&&(u=i.round(n.offsetWidth/2-this.wrapper.offsetWidth/2));f===!0&&(f=i.round(n.offsetHeight/2-this.wrapper.offsetHeight/2));o.left-=u||0;o.top-=f||0;o.left=o.left>0?0:o.left<this.maxScrollX?this.maxScrollX:o.left;o.top=o.top>0?0:o.top<this.maxScrollY?this.maxScrollY:o.top;t=void 0===t||null===t||"auto"===t?i.max(i.abs(this.x-o.left),i.abs(this.y-o.top)):t;this.scrollTo(o.left,o.top,t,e)}},_transitionTime:function(n){var t,i,u;if(this.options.useTransition&&(n=n||0,t=r.style.transitionDuration,t&&((this.scrollerStyle[t]=n+"ms",!n&&r.isBadAndroid)&&(this.scrollerStyle[t]="0.0001ms",i=this,f(function(){"0.0001ms"===i.scrollerStyle[t]&&(i.scrollerStyle[t]="0s")})),this.indicators)))for(u=this.indicators.length;u--;)this.indicators[u].transitionTime(n)},_transitionTimingFunction:function(n){if(this.scrollerStyle[r.style.transitionTimingFunction]=n,this.indicators)for(var t=this.indicators.length;t--;)this.indicators[t].transitionTimingFunction(n)},_translate:function(n,t){if(this.options.useTransform?this.scrollerStyle[r.style.transform]="translate("+n+"px,"+t+"px)"+this.translateZ:(n=i.round(n),t=i.round(t),this.scrollerStyle.left=n+"px",this.scrollerStyle.top=t+"px"),this.x=n,this.y=t,this.indicators)for(var u=this.indicators.length;u--;)this.indicators[u].updatePosition()},_initEvents:function(t){var i=t?r.removeEvent:r.addEvent,u=this.options.bindToWrapper?this.wrapper:n;i(n,"orientationchange",this);i(n,"resize",this);this.options.click&&i(this.wrapper,"click",this,!0);this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(u,"mousemove",this),i(u,"mousecancel",this),i(u,"mouseup",this));r.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,r.prefixPointerEvent("pointerdown"),this),i(u,r.prefixPointerEvent("pointermove"),this),i(u,r.prefixPointerEvent("pointercancel"),this),i(u,r.prefixPointerEvent("pointerup"),this));r.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(u,"touchmove",this),i(u,"touchcancel",this),i(u,"touchend",this));i(this.scroller,"transitionend",this);i(this.scroller,"webkitTransitionEnd",this);i(this.scroller,"oTransitionEnd",this);i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var i,u,t=n.getComputedStyle(this.scroller,null);return this.options.useTransform?(t=t[r.style.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),u=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),u=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:u}},_initIndicators:function(){function n(n){if(u.indicators)for(var t=u.indicators.length;t--;)n.call(u.indicators[t])}var t,r=this.options.interactiveScrollbars,s="string"!=typeof this.options.scrollbars,i=[],u=this,f;for(this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:e("v",r,this.options.scrollbars),interactive:r,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),i.push(t)),this.options.scrollX&&(t={el:e("h",r,this.options.scrollbars),interactive:r,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),i.push(t))),this.options.indicators&&(i=i.concat(this.options.indicators)),f=i.length;f--;)this.indicators.push(new o(this,i[f]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){n(function(){this.fade()})}),this.on("scrollCancel",function(){n(function(){this.fade()})}),this.on("scrollStart",function(){n(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){n(function(){this.fade(1,!0)})}));this.on("refresh",function(){n(function(){this.refresh()})});this.on("destroy",function(){n(function(){this.destroy()});delete this.indicators})},_initWheel:function(){r.addEvent(this.wrapper,"wheel",this);r.addEvent(this.wrapper,"mousewheel",this);r.addEvent(this.wrapper,"DOMMouseScroll",this);this.on("destroy",function(){clearTimeout(this.wheelTimeout);this.wheelTimeout=null;r.removeEvent(this.wrapper,"wheel",this);r.removeEvent(this.wrapper,"mousewheel",this);r.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(n){if(this.enabled){var r,t,u,f,e=this;if(void 0===this.wheelTimeout&&e._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){e.options.snap||e._execEvent("scrollEnd");e.wheelTimeout=void 0},400),"deltaX"in n)1===n.deltaMode?(r=-n.deltaX*this.options.mouseWheelSpeed,t=-n.deltaY*this.options.mouseWheelSpeed):(r=-n.deltaX,t=-n.deltaY);else if("wheelDeltaX"in n)r=n.wheelDeltaX/120*this.options.mouseWheelSpeed,t=n.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in n)r=t=n.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in n))return;r=t=-n.detail/3*this.options.mouseWheelSpeed}if(r*=this.options.invertWheelDirection,t*=this.options.invertWheelDirection,this.hasVerticalScroll||(r=t,t=0),this.options.snap)return u=this.currentPage.pageX,f=this.currentPage.pageY,r>0?u--:r<0&&u++,t>0?f--:t<0&&f++,void this.goToPage(u,f);u=this.x+i.round(this.hasHorizontalScroll?r:0);f=this.y+i.round(this.hasVerticalScroll?t:0);this.directionX=r>0?-1:r<0?1:0;this.directionY=t>0?-1:t<0?1:0;u>0?u=0:u<this.maxScrollX&&(u=this.maxScrollX);f>0?f=0:f<this.maxScrollY&&(f=this.maxScrollY);this.scrollTo(u,f,0)}},_initSnap:function(){this.currentPage={};"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap));this.on("refresh",function(){var f,h,o,s,r,t,n=0,e=0,u=0,c=this.options.snapStepX||this.wrapperWidth,l=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(o=i.round(c/2),s=i.round(l/2);u>-this.scrollerWidth;){for(this.pages[n]=[],f=0,r=0;r>-this.scrollerHeight;)this.pages[n][f]={x:i.max(u,this.maxScrollX),y:i.max(r,this.maxScrollY),width:c,height:l,cx:u-o,cy:r-s},r-=l,f++;u-=c;n++}else for(t=this.options.snap,f=t.length,h=-1;n<f;n++)(0===n||t[n].offsetLeft<=t[n-1].offsetLeft)&&(e=0,h++),this.pages[e]||(this.pages[e]=[]),u=i.max(-t[n].offsetLeft,this.maxScrollX),r=i.max(-t[n].offsetTop,this.maxScrollY),o=u-i.round(t[n].offsetWidth/2),s=r-i.round(t[n].offsetHeight/2),this.pages[e][h]={x:u,y:r,width:t[n].offsetWidth,height:t[n].offsetHeight,cx:o,cy:s},u>this.maxScrollX&&e++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0);this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}});this.on("flick",function(){var n=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.x-this.startX),1e3),i.min(i.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,n)})},_nearestSnap:function(n,t){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var r=0,f=this.pages.length,u=0;if(i.abs(n-this.absStartX)<this.snapThresholdX&&i.abs(t-this.absStartY)<this.snapThresholdY)return this.currentPage;for(n>0?n=0:n<this.maxScrollX&&(n=this.maxScrollX),t>0?t=0:t<this.maxScrollY&&(t=this.maxScrollY);r<f;r++)if(n>=this.pages[r][0].cx){n=this.pages[r][0].x;break}for(f=this.pages[r].length;u<f;u++)if(t>=this.pages[0][u].cy){t=this.pages[0][u].y;break}return r==this.currentPage.pageX&&(r+=this.directionX,r<0?r=0:r>=this.pages.length&&(r=this.pages.length-1),n=this.pages[r][0].x),u==this.currentPage.pageY&&(u+=this.directionY,u<0?u=0:u>=this.pages[0].length&&(u=this.pages[0].length-1),t=this.pages[0][u].y),{x:n,y:t,pageX:r,pageY:u}},goToPage:function(n,t,r,u){u=u||this.options.bounceEasing;n>=this.pages.length?n=this.pages.length-1:n<0&&(n=0);t>=this.pages[n].length?t=this.pages[n].length-1:t<0&&(t=0);var f=this.pages[n][t].x,e=this.pages[n][t].y;r=void 0===r?this.options.snapSpeed||i.max(i.max(i.min(i.abs(f-this.x),1e3),i.min(i.abs(e-this.y),1e3)),300):r;this.currentPage={x:f,y:e,pageX:n,pageY:t};this.scrollTo(f,e,r,u)},next:function(n,t){var i=this.currentPage.pageX,r=this.currentPage.pageY;i++;i>=this.pages.length&&this.hasVerticalScroll&&(i=0,r++);this.goToPage(i,r,n,t)},prev:function(n,t){var i=this.currentPage.pageX,r=this.currentPage.pageY;i--;i<0&&this.hasVerticalScroll&&(i=0,r--);this.goToPage(i,r,n,t)},_initKeys:function(){var t,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(t in this.options.keyBindings)"string"==typeof this.options.keyBindings[t]&&(this.options.keyBindings[t]=this.options.keyBindings[t].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(t in i)this.options.keyBindings[t]=this.options.keyBindings[t]||i[t];r.addEvent(n,"keydown",this);this.on("destroy",function(){r.removeEvent(n,"keydown",this)})},_key:function(n){if(this.enabled){var e,t=this.options.snap,u=t?this.currentPage.pageX:this.x,f=t?this.currentPage.pageY:this.y,o=r.getTime(),s=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(i.round(e.x),i.round(e.y)),this.isInTransition=!1),this.keyAcceleration=o-s<200?i.min(this.keyAcceleration+.25,50):0,n.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?u+=t?1:this.wrapperWidth:f+=t?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?u-=t?1:this.wrapperWidth:f-=t?1:this.wrapperHeight;break;case this.options.keyBindings.end:u=t?this.pages.length-1:this.maxScrollX;f=t?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:u=0;f=0;break;case this.options.keyBindings.left:u+=t?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:f+=t?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:u-=t?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:f-=t?1:5+this.keyAcceleration>>0;break;default:return}if(t)return void this.goToPage(u,f);u>0?(u=0,this.keyAcceleration=0):u<this.maxScrollX&&(u=this.maxScrollX,this.keyAcceleration=0);f>0?(f=0,this.keyAcceleration=0):f<this.maxScrollY&&(f=this.maxScrollY,this.keyAcceleration=0);this.scrollTo(u,f,0);this.keyTime=o}},_animate:function(n,t,i,u){function o(){var y,p,v,a=r.getTime();return a>=l?(e.isAnimating=!1,e._translate(n,t),void(e.resetPosition(e.options.bounceTime)||e._execEvent("scrollEnd"))):(a=(a-c)/i,v=u(a),y=(n-s)*v+s,p=(t-h)*v+h,e._translate(y,p),void(e.isAnimating&&f(o)))}var e=this,s=this.x,h=this.y,c=r.getTime(),l=c+i;this.isAnimating=!0;o()},handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(n);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(n);break;case"keydown":this._key(n);break;case"click":this.enabled&&!n._constructed&&(n.preventDefault(),n.stopPropagation())}}};o.prototype={handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null);this.options.interactive&&(r.removeEvent(this.indicator,"touchstart",this),r.removeEvent(this.indicator,r.prefixPointerEvent("pointerdown"),this),r.removeEvent(this.indicator,"mousedown",this),r.removeEvent(n,"touchmove",this),r.removeEvent(n,r.prefixPointerEvent("pointermove"),this),r.removeEvent(n,"mousemove",this),r.removeEvent(n,"touchend",this),r.removeEvent(n,r.prefixPointerEvent("pointerup"),this),r.removeEvent(n,"mouseup",this));this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var i=t.touches?t.touches[0]:t;t.preventDefault();t.stopPropagation();this.transitionTime();this.initiated=!0;this.moved=!1;this.lastPointX=i.pageX;this.lastPointY=i.pageY;this.startTime=r.getTime();this.options.disableTouch||r.addEvent(n,"touchmove",this);this.options.disablePointer||r.addEvent(n,r.prefixPointerEvent("pointermove"),this);this.options.disableMouse||r.addEvent(n,"mousemove",this);this.scroller._execEvent("beforeScrollStart")},_move:function(n){var i,u,f,e,t=n.touches?n.touches[0]:n;r.getTime();this.moved||this.scroller._execEvent("scrollStart");this.moved=!0;i=t.pageX-this.lastPointX;this.lastPointX=t.pageX;u=t.pageY-this.lastPointY;this.lastPointY=t.pageY;f=this.x+i;e=this.y+u;this._pos(f,e);n.preventDefault();n.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),r.removeEvent(n,"touchmove",this),r.removeEvent(n,r.prefixPointerEvent("pointermove"),this),r.removeEvent(n,"mousemove",this),this.scroller.options.snap){var u=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),f=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.scroller.x-u.x),1e3),i.min(i.abs(this.scroller.y-u.y),1e3)),300);this.scroller.x==u.x&&this.scroller.y==u.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=u,this.scroller.scrollTo(u.x,u.y,f,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(n){var t,i;n=n||0;t=r.style.transitionDuration;t&&(this.indicatorStyle[t]=n+"ms",!n&&r.isBadAndroid)&&(this.indicatorStyle[t]="0.0001ms",i=this,f(function(){"0.0001ms"===i.indicatorStyle[t]&&(i.indicatorStyle[t]="0s")}))},transitionTimingFunction:function(n){this.indicatorStyle[r.style.transitionTimingFunction]=n},refresh:function(){this.transitionTime();this.indicatorStyle.display=this.options.listenX&&!this.options.listenY?this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.scroller.hasVerticalScroll?"block":"none":this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none";this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(r.addClass(this.wrapper,"iScrollBothScrollbars"),r.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(r.removeClass(this.wrapper,"iScrollBothScrollbars"),r.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=i.max(i.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX);this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=i.max(i.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY);this.updatePosition()},updatePosition:function(){var n=this.options.listenX&&i.round(this.sizeRatioX*this.scroller.x)||0,t=this.options.listenY&&i.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(n<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=i.max(this.indicatorWidth+n,8),this.indicatorStyle.width=this.width+"px"),n=this.minBoundaryX):n>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=i.max(this.indicatorWidth-(n-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",n=this.maxPosX+this.indicatorWidth-this.width):n=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),t<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=i.max(this.indicatorHeight+3*t,8),this.indicatorStyle.height=this.height+"px"),t=this.minBoundaryY):t>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=i.max(this.indicatorHeight-3*(t-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",t=this.maxPosY+this.indicatorHeight-this.height):t=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px"));this.x=n;this.y=t;this.scroller.options.useTransform?this.indicatorStyle[r.style.transform]="translate("+n+"px,"+t+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=n+"px",this.indicatorStyle.top=t+"px")},_pos:function(n,t){n<0?n=0:n>this.maxPosX&&(n=this.maxPosX);t<0?t=0:t>this.maxPosY&&(t=this.maxPosY);n=this.options.listenX?i.round(n/this.sizeRatioX):this.scroller.x;t=this.options.listenY?i.round(t/this.sizeRatioY):this.scroller.y;this.scroller.scrollTo(n,t)},fade:function(n,t){if(!t||this.visible){clearTimeout(this.fadeTimeout);this.fadeTimeout=null;var i=n?250:500,u=n?0:300;n=n?"1":"0";this.wrapperStyle[r.style.transitionDuration]=i+"ms";this.fadeTimeout=setTimeout(function(n){this.wrapperStyle.opacity=n;this.visible=+n}.bind(this,n),u)}}};u.utils=r;"undefined"!=typeof module&&module.exports?module.exports=u:"function"==typeof define&&define.amd?define(function(){return u}):n.IScroll=u}(window,document,Math),function(n,t){var r=".active",f=".fp-section"+r,e=".fp-slide"+r,o=".fp-slides",u="fp-scrollable",i="."+u;"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this);this.wrapper.addEventListener("mousewheel",this);this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this);this.wrapper.removeEventListener("mousewheel",this);this.wrapper.removeEventListener("DOMMouseScroll",this)});n.iscrollHandler={refreshId:null,iScrollInstances:[],toggleWheel:function(n){var r=t(f).find(i);r.each(function(){var i=t(this).data("iscrollInstance");"undefined"!=typeof i&&i&&(n?i.wheelOn():i.wheelOff())})},onLeave:function(){iscrollHandler.toggleWheel(!1)},beforeLeave:function(){iscrollHandler.onLeave()},afterLoad:function(){iscrollHandler.toggleWheel(!0)},create:function(n,r,u){var f=n.find(i);f.height(r);f.each(function(){var i=t(this),n=i.data("iscrollInstance");n&&t.each(iscrollHandler.iScrollInstances,function(){t(this).destroy()});n=new IScroll(i.get(0),u);n.on("scrollEnd",function(){this.fp_isAtTop=this.y>-30;this.fp_isAtEnd=this.y-this.maxScrollY<30});iscrollHandler.iScrollInstances.push(n);n.wheelOff();i.data("iscrollInstance",n)})},isScrolled:function(n,t){var i=t.data("iscrollInstance");return!i||("top"===n?i.y>=0&&!t.scrollTop():"bottom"===n?0-i.y+t.scrollTop()+1+t.innerHeight()>=t[0].scrollHeight:void 0)},scrollable:function(n){return n.find(o).length?n.find(e).find(i):n.find(i)},scrollHeight:function(n){return n.find(i).children().first().get(0).scrollHeight},remove:function(n){var t=n.find(i),r;t.length&&(r=t.data("iscrollInstance"),r&&r.destroy(),t.data("iscrollInstance",null));n.find(i).children().first().children().first().unwrap().unwrap()},update:function(n,r){clearTimeout(iscrollHandler.refreshId);iscrollHandler.refreshId=setTimeout(function(){t.each(iscrollHandler.iScrollInstances,function(){t(this).get(0).refresh()})},150);n.find(i).css("height",r+"px").parent().css("height",r+"px")},wrapContent:function(){return'<div class="'+u+'"><div class="fp-scroller"><\/div><\/div>'}}}(window,jQuery),function(n,t){$.fn.fp_scrolloverflow=function(){function h(){function r(){$("body").hasClass(v)?h():f(e);$.fn.fullpage.shared.afterRenderActions()}function e(t){var e;if(!t.hasClass("fp-noscroll")){t.css("overflow","hidden");var f,r=i.options.scrollOverflowHandler,o=r.wrapContent(),h=t.closest(u),c=r.scrollable(t);c.length?f=r.scrollHeight(t):(f=t.get(0).scrollHeight,i.options.verticalCentered&&(f=t.find(s).get(0).scrollHeight));e=$(n).height()-parseInt(h.css("padding-bottom"))-parseInt(h.css("padding-top"));f>e?c.length?r.update(t,e):(i.options.verticalCentered?t.find(s).wrapInner(o):t.wrapInner(o),r.create(t,e,i.iscrollOptions)):r.remove(t);t.css("overflow","")}}function f(n){$(u).each(function(){var t=$(this).find(o);t.length?t.each(function(){n($(this))}):n($(this))})}function h(){var n=i.options.scrollOverflowHandler;f(function(t){t.closest(u).hasClass(y)&&n.remove(t)})}var i=this;i.options=null;i.init=function(u,f){return i.options=u,i.iscrollOptions=f,"complete"===t.readyState&&r(),$(n).on("load",r),i};i.createScrollBarForAll=r}var f="fp-scrollable",r="."+f,e=".active",u=".fp-section",c=u+e,o=".fp-slide",l=o+e,a=".fp-slides",s=".fp-tableCell",v="fp-responsive",y="fp-auto-height-responsive",i;return IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this);this.wrapper.addEventListener("mousewheel",this);this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this);this.wrapper.removeEventListener("mousewheel",this);this.wrapper.removeEventListener("DOMMouseScroll",this)},i={refreshId:null,iScrollInstances:[],iscrollOptions:{scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},init:function(t){var r="ontouchstart"in n||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;return i.iscrollOptions.click=r,i.iscrollOptions=$.extend(i.iscrollOptions,t.scrollOverflowOptions),(new h).init(t,i.iscrollOptions)},toggleWheel:function(n){var t=$(c).find(r);t.each(function(){var t=$(this).data("iscrollInstance");"undefined"!=typeof t&&t&&(n?t.wheelOn():t.wheelOff())})},onLeave:function(){i.toggleWheel(!1)},beforeLeave:function(){i.onLeave()},afterLoad:function(){i.toggleWheel(!0)},create:function(n,t,u){var f=n.find(r);f.height(t);f.each(function(){var t=$(this),n=t.data("iscrollInstance");n&&$.each(i.iScrollInstances,function(){$(this).destroy()});n=new IScroll(t.get(0),u);i.iScrollInstances.push(n);n.wheelOff();t.data("iscrollInstance",n)})},isScrolled:function(n,t){var i=t.data("iscrollInstance");return!i||("top"===n?i.y>=0&&!t.scrollTop():"bottom"===n?0-i.y+t.scrollTop()+1+t.innerHeight()>=t[0].scrollHeight:void 0)},scrollable:function(n){return n.find(a).length?n.find(l).find(r):n.find(r)},scrollHeight:function(n){return n.find(r).children().first().get(0).scrollHeight},remove:function(n){var t=n.find(r),i;t.length&&(i=t.data("iscrollInstance"),i.destroy(),t.data("iscrollInstance",null));n.find(r).children().first().children().first().unwrap().unwrap()},update:function(n,t){clearTimeout(i.refreshId);i.refreshId=setTimeout(function(){$.each(i.iScrollInstances,function(){$(this).get(0).refresh()})},150);n.find(r).css("height",t+"px").parent().css("height",t+"px")},wrapContent:function(){return'<div class="'+f+'"><div class="fp-scroller"><\/div><\/div>'}},{iscrollHandler:i}}()}(window,jQuery);$(document).ready(function(){function f(){var t="cm9ja2V0YnVpbGRlci5jb21fcGpLWkhKaFowRnVaRTF2ZG1VPUlZYg==",r=window.location.hostname.split(".");r.length>2&&(r[0]=="net"?t="bmV0LmNhcmJvbjguY29fODNLWkhKaFowRnVaRTF2ZG1VPVM1Yg==":r[1]=="ulalaunch"&&(t="YnVpbGR0c3QudWxhbGF1bmNoLmNvbV9uUUlaSEpoWjBGdVpFMXZkbVU9RWhV"));$("#fullpage").fullpage({anchors:["firstPage","secondPage","thirdPage","fourthPage","fifthPage","sixthPage","seventhPage"],menu:"#sidebarNavigation",responsiveHeight:500,scrollBar:n,dragAndMove:i,dragAndMoveKey:t,afterResponsive:function(){},afterLoad:function(n,t){if(t>2&&t<7)$("#homepageSidebarInfo, #shareTheExperience, #mainBodyCopyButtons, #scrollIcon2").stop().fadeIn("fast")},onLeave:function(n,t,i){var u,r;(n==3&&i=="up"||n==6&&i=="down")&&($("#homepageSidebarInfo, #shareTheExperience, #mainBodyCopyButtons, #scrollIcon2").stop().fadeOut("fast"),u="no");(n==2&&i=="down"||n==4&&i=="up")&&(r=document.getElementById("section1BodyCopy").clientHeight,$("#mainBodyCopyButtons").stop().animate({marginTop:r}),$("#valuePillarVideos").css({"background-image":"url('/images/videoIcon-unmatchedReliability.jpg')"}),ga("set","page","/homepage-section-one.html"),ga("send","pageview"),$("#valuePillarVideos").click(function(){ga("set","page","/homepage-video-one.html");ga("send","pageview");$("#popupHomepageVideo iframe").attr("src","https://player.vimeo.com/video/181687445");$("#popupHomepageVideo, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}}),$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideo, .lightboxBackground").fadeOut();$("#popupHomepageVideo iframe").attr("src","");document.ontouchmove=function(){return!0}}));(n==3&&i=="down"||n==5&&i=="up")&&(r=document.getElementById("section2BodyCopy").clientHeight,$("#mainBodyCopyButtons").stop().animate({marginTop:r}),$("#valuePillarVideos").css({"background-image":"url('/images/videoIcon-scheduleCertainty.jpg')"}),ga("set","page","/homepage-section-two.html"),ga("send","pageview"),$("#valuePillarVideos").click(function(){ga("set","page","/homepage-video-two.html");ga("send","pageview");$("#popupHomepageVideo iframe").attr("src","https://player.vimeo.com/video/181687704");$("#popupHomepageVideo, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}}),$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideo, .lightboxBackground").fadeOut();$("#popupHomepageVideo iframe").attr("src","");document.ontouchmove=function(){return!0}}));(n==4&&i=="down"||n==6&&i=="up")&&(r=document.getElementById("section3BodyCopy").clientHeight,$("#mainBodyCopyButtons").stop().animate({marginTop:r}),$("#valuePillarVideos").css({"background-image":"url('/images/videoIcon-orbitOptimization.jpg')"}),ga("set","page","/homepage-section-three.html"),ga("send","pageview"),$("#valuePillarVideos").click(function(){ga("set","page","/homepage-video-three.html");ga("send","pageview");$("#popupHomepageVideo iframe").attr("src","https://player.vimeo.com/video/181687983");$("#popupHomepageVideo, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}}),$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideo, .lightboxBackground").fadeOut();$("#popupHomepageVideo iframe").attr("src","");document.ontouchmove=function(){return!0}}));n==5&&i=="down"&&(r=document.getElementById("section4BodyCopy").clientHeight,$("#mainBodyCopyButtons").stop().animate({marginTop:r}),$("#valuePillarVideos").css({"background-image":"url('/images/videoIcon-eto.jpg')"}),ga("set","page","/homepage-section-four.html"),ga("send","pageview"),$("#valuePillarVideos").click(function(){ga("set","page","/homepage-video-four.html");ga("send","pageview");$("#popupHomepageVideo iframe").attr("src","https://player.vimeo.com/video/254600294");$("#popupHomepageVideo, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}}),$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideo, .lightboxBackground").fadeOut();$("#popupHomepageVideo iframe").attr("src","");document.ontouchmove=function(){return!0}}));n==6&&i=="down"&&(ga("set","page","/homepage-footer.html"),ga("send","pageview"))}})}function o(){var n;$("#section1").hasClass("active")&&(n=document.getElementById("section1BodyCopy").clientHeight,$("#mainBodyCopyButtons").animate({marginTop:n}));$("#section2").hasClass("active")&&(n=document.getElementById("section2BodyCopy").clientHeight,$("#mainBodyCopyButtons").animate({marginTop:n}));$("#section3").hasClass("active")&&(n=document.getElementById("section3BodyCopy").clientHeight,$("#mainBodyCopyButtons").animate({marginTop:n}));$("#section4").hasClass("active")&&(n=document.getElementById("section4BodyCopy").clientHeight,$("#mainBodyCopyButtons").animate({marginTop:n}))}var u,n,t,i,r,e;handleTouch();u="no";n=!0;"ontouchstart"in document.documentElement&&$(window).width()<992&&(n=!1);t=navigator.userAgent.toLowerCase();i=!1;"ontouchstart"in document.documentElement&&(t.match(/(iphone|ipod|ipad)/)||t.match(/android/)||$(window).width()<992)&&(i=!0);r=navigator.userAgent.toLowerCase();(r.match(/(iphone|ipod|ipad)/)||r.match(/android/))&&($(window).width()>992?$("#section6").addClass("fp-auto-height"):$("#section6").removeClass("fp-auto-height"));$(window).width()<768||$(window).height()<500||$("html").hasClass("fp-enabled")||f();$(window).resize(function(){$(window).width()<768||$(window).height()<500?$.fn.fullpage.destroy("all"):$("html").hasClass("fp-enabled")||f()});$(window).height()<500&&$("#homepageSidebarInfo, #shareTheExperience, #mainBodyCopyButtons, #scrollIcon2").hide();$(window).resize(function(){$(window).height()<500?$("#homepageSidebarInfo, #shareTheExperience, #mainBodyCopyButtons, #scrollIcon2").hide():u=="yes"&&$("#homepageSidebarInfo, #shareTheExperience, #mainBodyCopyButtons, #scrollIcon2").show()});$("#footerCustomizeValueBtn, #footerCustomizeValueBtn .popupCloseBtnAccordion").click(function(){$("#valuePillarAccordianSection2").slideToggle()});e=$(window);$("#mainHeaderImageRocket").each(function(){var t=4,n=$(this);$(window).scroll(function(){var i=-((e.scrollTop()-n.offset().top)/t),r="right "+i+"px";n.css({backgroundPosition:r})})});$(window).resize(function(){o()});$("#sidebarNavigation li").click(function(){setTimeout(function(){o()},100)});$("#sectionOneContent .imageSlot").click(function(){ga("set","page","/homepage-video-one.html");ga("send","pageview");$("#popupHomepageVideoOne, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}});$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoOne, .lightboxBackground").fadeOut();document.ontouchmove=function(){return!0}});$("#sectionTwoContent .imageSlot").click(function(){ga("set","page","/homepage-video-two.html");ga("send","pageview");$("#popupHomepageVideoTwo, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}});$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoTwo, .lightboxBackground").fadeOut();document.ontouchmove=function(){return!0}});$("#sectionThreeContent .imageSlot").click(function(){ga("set","page","/homepage-video-three.html");ga("send","pageview");$("#popupHomepageVideoThree, .lightboxBackground").fadeIn();document.ontouchmove=function(n){n.preventDefault()}});$(".popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoThree, .lightboxBackground").fadeOut();document.ontouchmove=function(){return!0}});$(".imageSlot").mouseover(function(){$(this).children("img").attr("src","../../images/playButton-hover.png")}).mouseout(function(){$(this).children("img").attr("src","../../images/playButton.png")});$("#sectionOneContent .imageSlot").click(function(){$("#popupHomepageVideoOne iframe").attr("src","https://player.vimeo.com/video/181687445")});$("#popupHomepageVideoOne .popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoOne iframe").attr("src","")});$("#sectionTwoContent .imageSlot").click(function(){$("#popupHomepageVideoTwo iframe").attr("src","https://player.vimeo.com/video/181687704")});$("#popupHomepageVideoTwo .popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoTwo iframe").attr("src","")});$("#sectionThreeContent .imageSlot").click(function(){$("#popupHomepageVideoThree iframe").attr("src","https://player.vimeo.com/video/181687983")});$("#popupHomepageVideoThree .popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoThree iframe").attr("src","")});$("#sectionFourContent .imageSlot").click(function(){$("#popupHomepageVideoFour iframe").attr("src","https://player.vimeo.com/video/254600294")});$("#popupHomepageVideoFour .popupCloseBtn, .lightboxBackground").click(function(){$("#popupHomepageVideoFour iframe").attr("src","")});$("#valuePillarAccordianSection, #valuePillarAccordianSection2").accordion({header:".stepHeader2",heightStyle:"content",collapsible:!0});$("#mobileValuePillarDropdown").click(function(){ga("set","page","/value-pillar-homepage-mobile.html");ga("send","pageview");$("#mobileValuePillarDropdownContent").slideToggle();$("#mobileValuePillarDropdownArrow img").attr("src")=="/images/dropdownArrow.png"?$("#mobileValuePillarDropdownArrow img").attr("src","/images/dropdownArrowUp.png"):$("#mobileValuePillarDropdownArrow img").attr("src","/images/dropdownArrow.png")});$(".infoSectionTooltip").tooltip({position:{my:"center top+10"},show:{effect:"fadeIn",duration:100},hide:{effect:"fadeOut",duration:0}});$(".infoSectionTooltipTop").tooltip({position:{my:"center bottom-22"},show:{effect:"fadeIn",duration:100},hide:{effect:"fadeOut",duration:0}});$(".infoSectionTooltip, .infoSectionTooltipTop").on("tooltipopen",function(){$(this).data("tooltip",!0)});$(".infoSectionTooltip, .infoSectionTooltipTop").on("tooltipclose",function(){$(this).data("tooltip",!1)});$(".infoSectionTooltip").click(function(){$(this).closest(".infoSectionTooltip").data("tooltip")==!0?$(".infoSectionTooltip").tooltip("close"):$(this).closest(".infoSectionTooltip").tooltip("open")});$(".infoSectionTooltipTop").click(function(){$(this).closest(".infoSectionTooltipTop").data("tooltip")==!0?$(".infoSectionTooltipTop").tooltip("close"):$(this).closest(".infoSectionTooltipTop").tooltip("open")});$(".scrollSection").mCustomScrollbar({theme:"dark-3",live:!0,scrollButtons:{enable:!0}})});var ula=ula||{};$(window).load(function(){allspacecraftValue=$("#spacecraftValue, #spacecraftValue2, #spacecraftValue3");allmonthlyRevenueValue=$("#monthlyRevenueValue, #monthlyRevenueValue2, #monthlyRevenueValue3");allotherCosts=$("#otherCosts, #otherCosts2, #otherCosts3");allotherCostsMonthly=$("#otherCostsMonthly, #otherCostsMonthly2, #otherCostsMonthly3");allmonthsDelayedValue=$("#monthsDelayedValue, #monthsDelayedValue2, #monthsDelayedValue3");allextendedLifeValue=$("#extendedLifeValue, #extendedLifeValue2, #extendedLifeValue3");allspacecraftValue.keydown(function(n){sanitizeNumericInput(n)});allmonthlyRevenueValue.keydown(function(n){sanitizeNumericInput(n)});allotherCosts.keydown(function(n){sanitizeNumericInput(n)});allotherCostsMonthly.keydown(function(n){var t=$(this).val();t.indexOf(".")>-1?sanitizeNumericInput(n,!1):sanitizeNumericInput(n,!0)});allmonthsDelayedValue.keydown(function(n){var t=$(this).val();t.indexOf(".")>-1?sanitizeNumericInput(n,!1):sanitizeNumericInput(n,!0)});allextendedLifeValue.keydown(function(n){var t=$(this).val();t.indexOf(".")>-1?sanitizeNumericInput(n,!1):sanitizeNumericInput(n,!0)});var n=navigator.userAgent.toLowerCase(),t=n.match(/(iphone|ipod|ipad)/);t&&$("input[type=number]").keypress(function(){(event.keyCode<48||event.keyCode>57)&&event.keyCode!=46&&event.preventDefault()});allspacecraftValue.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allspacecraftValue.not(this).val(n);delayedAction("insurance",updateInsurance)});allotherCosts.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allotherCosts.not(this).val(n);delayedAction("assurance",updateAssurance)});allotherCostsMonthly.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n>1e3&&(n=1e3);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allotherCostsMonthly.not(this).val(n);delayedAction("assurance",updateAssurance)});allmonthsDelayedValue.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n>12&&(n=12);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allmonthsDelayedValue.not(this).val(n);delayedAction("assurance",updateAssurance)});allmonthlyRevenueValue.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allmonthlyRevenueValue.not(this).val(n);delayedAction("assurance",updateAssurance)});allextendedLifeValue.on("input",function(){var t=$(this).val(),n=trimZeroes(t);n>4&&(n=4);n.length>$(this).attr("maxlength")&&(n=n.slice(0,$(this).attr("maxlength")));n!=t&&$(this).val(n);allextendedLifeValue.not(this).val(n);delayedAction("precision",updatePrecision)});allspacecraftValue.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarInsuranceSavings").addClass("valuePillarSectionActive")});allmonthsDelayedValue.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarIncreasedRevenue").addClass("valuePillarSectionActive")});allmonthlyRevenueValue.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarIncreasedRevenue").addClass("valuePillarSectionActive")});allotherCosts.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarIncreasedRevenue").addClass("valuePillarSectionActive");$(this).val()==0&&$(this).select()});allotherCostsMonthly.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarIncreasedRevenue").addClass("valuePillarSectionActive");$(this).val()==0&&$(this).select()});allextendedLifeValue.focus(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$("#valuePillarExtendedSpacecraftLife").addClass("valuePillarSectionActive")});$("#valuePillarETO").click(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$(this).addClass("valuePillarSectionActive")});$("#valuePillarIncreasedRevenue, #valuePillarInsuranceSavings, #valuePillarExtendedSpacecraftLife").click(function(){$("#popupValuePillar").find("div.valuePillarSectionActive").removeClass("valuePillarSectionActive");$(this).addClass("valuePillarSectionActive")});oldInsurance=0;oldDelayed=0;oldRevenue=0;oldOther=0;oldExtended=0;$("#homepageValuePillarPopup").click(function(){oldInsurance=allspacecraftValue.val();oldDelayed=allmonthsDelayedValue.val();oldRevenue=allmonthlyRevenueValue.val();oldOther=allotherCosts.val();oldotherMonthly=allotherCostsMonthly.val();oldExtended=allextendedLifeValue.val()});$(".popupCloseBtn, .lightboxBackground, #cancleValuePillar").click(function(){$("#valuePillarInsuranceSavings").is(":visible")&&(allspacecraftValue.val(oldInsurance),ula.global.insurance.raw=allspacecraftValue.val()*1e6,allmonthsDelayedValue.val(oldDelayed),ula.global.revenue.months=parseFloat("0"+allmonthsDelayedValue.val()),allmonthlyRevenueValue.val(oldRevenue),ula.global.revenue.monthly=allmonthlyRevenueValue.val()*1e6,allotherCosts.val(oldOther),allotherCostsMonthly.val(oldotherMonthly),allextendedLifeValue.val(oldExtended),ula.global.lifetime.raw=parseFloat(allextendedLifeValue.val()),updateInsurance(),updateAssurance())});$("#applyValuePillarValues, #applyValuePillarValuesMobile").click(function(){saveValuePillarData();window.location.href="/start/configure/"});initApp()})