function applyFocusVisiblePolyfill(n){function u(n){return n&&n!==document&&n.nodeName!=="HTML"&&n.nodeName!=="BODY"&&"classList"in n&&"contains"in n.classList?!0:!1}function c(n){var i=n.type,t=n.tagName;return t==="INPUT"&&h[i]&&!n.readOnly?!0:t==="TEXTAREA"&&!n.readOnly?!0:n.isContentEditable?!0:!1}function o(n){n.classList.contains("focus-visible")||(n.classList.add("focus-visible"),n.setAttribute("data-focus-visible-added",""))}function l(n){n.hasAttribute("data-focus-visible-added")&&(n.classList.remove("focus-visible"),n.removeAttribute("data-focus-visible-added"))}function a(t){t.metaKey||t.altKey||t.ctrlKey||(u(n.activeElement)&&o(n.activeElement),i=!0)}function f(){i=!1}function v(n){u(n.target)&&(i||c(n.target))&&o(n.target)}function y(n){u(n.target)&&(n.target.classList.contains("focus-visible")||n.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(e),e=window.setTimeout(function(){r=!1},100),l(n.target))}function p(){document.visibilityState==="hidden"&&(r&&(i=!0),s())}function s(){document.addEventListener("mousemove",t);document.addEventListener("mousedown",t);document.addEventListener("mouseup",t);document.addEventListener("pointermove",t);document.addEventListener("pointerdown",t);document.addEventListener("pointerup",t);document.addEventListener("touchmove",t);document.addEventListener("touchstart",t);document.addEventListener("touchend",t)}function w(){document.removeEventListener("mousemove",t);document.removeEventListener("mousedown",t);document.removeEventListener("mouseup",t);document.removeEventListener("pointermove",t);document.removeEventListener("pointerdown",t);document.removeEventListener("pointerup",t);document.removeEventListener("touchmove",t);document.removeEventListener("touchstart",t);document.removeEventListener("touchend",t)}function t(n){n.target.nodeName&&n.target.nodeName.toLowerCase()==="html"||(i=!1,w())}var i=!0,r=!1,e=null,h={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};document.addEventListener("keydown",a,!0);document.addEventListener("mousedown",f,!0);document.addEventListener("pointerdown",f,!0);document.addEventListener("touchstart",f,!0);document.addEventListener("visibilitychange",p,!0);s();n.addEventListener("focus",v,!0);n.addEventListener("blur",y,!0);n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}function disableElement(n){n.number!==0&&n.prop("disabled","true")}function enableElement(n){n.number!==0&&n.removeAttr("disabled")}function enableOrDisablePaymentButton(){const i=$(".e-cart-count"),n=$(".e-payment-button-group button.e-btn-primary"),t=$(".e-button-group button#InvoicePaymentSubmit"),r=$("ul#paymentTabs"),u=r.attr("data-sanctioned-country");u==="False"&&(i[0].innerHTML==="0"?(disableElement(n),disableElement(t)):(enableElement(n),enableElement(t)))}function UpdateMiniCart(){try{$.get($("#mini_cart").attr("data-request-url")).done(function(n){$("#cartPopup").html(n);enableOrDisablePaymentButton()})}catch(n){notification.Error(n)}}function setSearchTerm(){var n=document.getElementById("searchField").value;localStorage.setItem(localStorageSearchTermField,n)}function validateOfflinePageRequest(){var t=$("#offlinePurchaseButton").attr("data-items-count"),n=$("#offlinePurchaseButton").attr("data-offline-page-url");if(t==="0")return $(".e-input-error-message").css("display","inline-block");if(n)return window.location.href=n;throw"Incorrect or empty url";}function TogglShowHideBlockContent(n){var t=$(".e-product-industry-help-content-blocks "+n);t.length&&(t.siblings().addClass("d-none"),t.removeClass("d-none"))}function CheckTaxExemptionButtonListener(){$("#payTaxRadio, #exemptTaxRadio").on("click",function(){CheckTaxExemptionButton()})}function CheckTaxExemptionButton(){var n=document.getElementById("payTaxRadio");n!==null&&(n.checked==!0?document.getElementById("salesTaxId").setAttribute("readonly","true"):document.getElementById("salesTaxId").removeAttribute("readonly"))}function getTabHashesExcludingSelectedTab(n){var t=$("ul.tabbed-block-tabs li:first-child a").map(function(){var t=$(this).closest("ul.tabbed-block-tabs").attr("id");if(n===t||t!==n&&$(this).hasClass("active"))return $(this).closest("ul.tabbed-block-tabs").attr("id")});return $.grep($("ul.tabbed-block-tabs"),function(n){var i=$(n).attr("id");return!$.makeArray(t).includes(i)}).map(function(n){return $(n).find("a.active").attr("href")}).join("")}function getSelectedTabHashIfNeeded(n){var t=$("ul.tabbed-block-tabs li:not(:first-child) a[id='"+n+"']").attr("href");return t!==undefined?t:""}function setStateDropdown(n){$.ajax({type:"GET",url:"/api/SiteSettings/GetStates",dataType:"json",data:{countryId:$("#AddressVm_CountryId").val()},success:function(t){$("#AddressVm_State").empty();$("#AddressVm_State").append('<option value="">Select state<\/option>');t.length>0?($.each(t,function(t,i){i.Name===n?$("#AddressVm_State").append('<option value="'+i.Name+'" selected = "true">'+i.Name+"<\/option>"):$("#AddressVm_State").append('<option value="'+i.Name+'">'+i.Name+"<\/option>")}),$("#state_select").css("display","block")):($("#state_select").val(""),$("#state_select").css("display","none"))},error:function(){$("#state_select").css("display","none")}})}function setOrganisationSubTypeDropdown(n){$.ajax({type:"GET",url:"/api/SiteSettings/GetOrganisationSubTypes",dataType:"json",data:{orgTypeId:$("#BusinessInfoVm_OrganisationType").val()},success:function(t){$("#BusinessInfoVm_OrganisationSubType").empty();$("#BusinessInfoVm_OrganisationSubType").append('<option value="">Select organisation sub-type<\/option>');t.length>0?$.each(t,function(t,i){i.Id===n?$("#BusinessInfoVm_OrganisationSubType").append('<option value="'+i.Id+'" selected = "true">'+i.Name+"<\/option>"):$("#BusinessInfoVm_OrganisationSubType").append('<option value="'+i.Id+'">'+i.Name+"<\/option>")}):$("#BusinessInfoVm_OrganisationSubType").append('<option value="">Select organisation sub-type<\/option>')},error:function(){$("#BusinessInfoVm_OrganisationSubType").append('<option value="">Select organisation sub-type<\/option>')}})}function setJobFunctionDropdown(n){$.ajax({type:"GET",url:"/api/SiteSettings/GetJobFunctions",dataType:"json",data:{orgTypeId:$("#BusinessInfoVm_OrganisationType").val()},success:function(t){$("#BusinessInfoVm_JobFunction").empty();$("#BusinessInfoVm_JobFunction").append('<option value="">Select job function<\/option>');t.length>0?$.each(t,function(t,i){i.Id===n?$("#BusinessInfoVm_JobFunction").append('<option value="'+i.Id+'" selected = "true">'+i.Name+"<\/option>"):$("#BusinessInfoVm_JobFunction").append('<option value="'+i.Id+'">'+i.Name+"<\/option>")}):$("#BusinessInfoVm_JobFunction").append('<option value="">Select job function<\/option>')},error:function(){$("#BusinessInfoVm_JobFunction").append('<option value="">Select job function<\/option>')}})}function showOrHideNoJobs(n){var t=0;$(".e-vacancies-list a",n).each(function(){$(this).css("display")!=="none"&&(t+=1)});t===0?$(".e-no-jobs").show():$(".e-no-jobs").hide()}function applyFilters(n){var u=$("#vacanciesOffice",n).attr("data-selectedOption"),f=$("#vacanciesDepartment",n).attr("data-selectedOption"),t=u||f,i="",e,r;u.length>0&&(i="data-office");f.length>0&&(i="data-department");e=JSON.parse(window.localStorage.getItem("workableBlockMapping"));r=e[t];$(".e-vacancies-list a",n).each(function(){var n=$(this);t==="contract positions"?n.attr("data-department")==="ica staffing"?n.show():n.hide():t==="all offices"||t==="all departments"?n.show():r!==undefined&&$.inArray(n.attr(i),r)>-1?n.show():n.hide()});showOrHideNoJobs(n)}function checkVideoElement(){const n=$(".e-video-block"),t=$(".wistia_embed");n.length>0&&n.length!==t.length&&n.each(function(t){checkVideoVisibility(n[t])})}function checkVideoVisibility(n){const t=n.getBoundingClientRect();t.x!==0&&t.y!==0&&(t.left!==0||t.right!==0||t.top!==0||t.bottom!==0)&&addWistiaVideoTrigger(n)}function addWistiaVideoTrigger(n){const t=n.getElementsByClassName("wistia_async_"+n.id),i=t[0].className.match("wistia_embed");i===null&&t[0].classList.add("wistia_embed")}function reveal(){for(var t=document.querySelectorAll(".reveal"),n=0;n<t.length;n++){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-100?t[n].classList.add("active"):t[n].classList.remove("active")}}if(function(){function n(){const n="Yes",t="No";this.removeUrlParameter=function(n,t){const i=n.split("?");if(i.length>=2){const r=encodeURIComponent(t)+"=",n=i[1].split(/[&;]/g);for(let t=n.length;t-->0;)n[t].lastIndexOf(r,0)!==-1&&n.splice(t,1);return i[0]+(n.length>0?"?"+n.join("&"):"")}return n};this.addOrUpdateQueryParamToUrl=function(n,t,i){n=this.removeUrlParameter(n,t);let r="?";return n.indexOf("?")>-1&&(r="&"),n+r+t+"="+i};this.navigateTo=function(n){window.location.href=n};this.bootstrapShow=function(n){n.classList.remove("d-none")};this.bootstrapHide=function(n){n.classList.add("d-none")};this.bootstrapVisible=function(n){n.classList.remove("invisible")};this.bootstrapInvisible=function(n){n.classList.add("invisible")};this.disableElement=function(n){n.setAttribute("disabled","disabled")};this.enableElement=function(n){n.removeAttribute("disabled")};this.getSelectText=function(n){return n.options[n.selectedIndex].text};this.scrollTopAnimated=function(){$("html, body").animate({scrollTop:"0"})};this.onBackButtonClick=function(n){n.preventDefault();history.back()};this.buildUrl=function(n,t){return n+"?"+$.param(t)};this.updateCurrentUrlWithoutReload=function(n,t){const i=this.addOrUpdateQueryParamToUrl(window.location.href,n,t);history.replaceState(null,null,i)};this.replaceNumber=function(n,t){return n.replace(/\d+/,t)};this.getCheckboxValueAsYesNo=function(i){return i.checked===!0?n:t};this.pushToDataLayer=function(n){window.dataLayer=window.dataLayer||[];window.dataLayer.push(n)}}window.emiGlobalHelper=new n}(),$(document).ready(function(){function n(n){var t=n.text();n.parents(".e-dropdown").find(".dropdown-toggle").html(t)}$(".e-dropdown .dropdown-menu input").on("keyup",function(){var n=$(this).val().toLowerCase();$(this).parent().siblings("li.dropdown-item").filter(function(){$(this).toggle($(this).text().toLowerCase().indexOf(n)>-1)});$(this).parent().parent().siblings(".dropdown-toggle").dropdown("update")});let t=$(".e-dropdown .dropdown-item[selected]");t.each(function(t,i){n($(i))});$(".e-dropdown .dropdown-menu a").click(function(){$(this).parent().siblings().removeAttr("selected");$(this).parent().attr("selected","");n($(this))})}),typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=applyFocusVisiblePolyfill;var event;try{event=new CustomEvent("focus-visible-polyfill-ready")}catch(error){event=document.createEvent("CustomEvent");event.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(event)}typeof document!="undefined"&&applyFocusVisiblePolyfill(document);$(document).ready(function(){$(".js-insights-filter").each(function(){let n=$(this);n.on("click",".js-radio",function(n){n.stopPropagation();let t=$(this);$(location).attr("href",t.val())})})});$(document).ready(function(){$(".e-card-blocks").each(function(){let n=$(this),i=n.next(".e-load-more-button"),u=i.next(".e-no-more-results"),f=n.data("load-more-url"),r=n.data("take"),t=n.data("skip-first");i.on("click",function(i){i.stopPropagation();let o=this,e=$(o);o.hasAttribute("loading")||(e.attr("loading",!0),$.get(f,{take:r,skip:t}).done(function(t){n.append(t);e.removeAttr("loading");n.find(".js-last-chunk").length&&(e.hide(),u.show())}),t=t+r)})})});$(document).ready(function(){function o(){$(".e-report-executive-summary").length&&($(".e-report-executive-summary").children().show(),f())}function f(){var h=$(".e-report-executive-summary"),o=h.children(),f,n,i;if(!(o.length<=0)){for(f=o.length;h.height()>u;){if(f--,f<0)break;$(o[f]).hide()}if(n=$(o[f]),n.show(),i=n.text(),n.attr("data-full-text-content",i),n.is("p")){while(h.height()>u){if(i=i.substr(0,i.length-2),i.length<=0){f!==0&&(n.text(n.attr("data-full-text-content")),n.removeAttr("data-full-text-content"),n.hide(),f--);n=$(o[f]);i=n.text();n.attr("data-full-text-content",i);n.show();break}n.text(i)}n.is("p")&&i.length!==n.attr("data-full-text-content")&&(i=i.substr(0,i.length-e)+r,n.text(i))}n.is("p")?n.append('&nbsp; <a href="#" class="e-morelink">'+t+"<\/a>"):n.after('<p class="e-morelink-container"><a href="#" class="e-morelink">'+t+"<\/a><\/p>");$(".e-morelink").click(function(){$(".e-morelink-container").remove();s()})}}function s(){var r=$(".e-report-executive-summary").children(),u,n,t,e;if(!(r.length<=0)){for(u=0;u<r.length;u++)n=$(r[u]),n.show(),n.attr("data-full-text-content")&&(n.text(n.attr("data-full-text-content")),n.removeAttr("data-full-text-content"));t=$(r[r.length-1]);e=t.text();t.is("p")?t.append('&nbsp; <a href="#" class="e-lesslink">'+i+"<\/a>"):t.after('<p class="e-lesslink-container">&nbsp; <a href="#" class="e-lesslink">'+i+"<\/a><\/p>");$(".e-lesslink").click(function(){$(".e-lesslink-container").remove();t.text(e);f()})}}var n=250,r="...",t=translatedLabels.features.shared.reportPages.showMore,i=translatedLabels.features.shared.reportPages.showLess;const u=100,e=50;$(".more").each(function(){var i=$(this).html();if(i.length>n){var u=i.substr(0,n),f=i.substr(n,i.length-n),e=u+'<span class="moreellipses">'+r+'&nbsp;<\/span><span class="morecontent"><span>'+f+'<\/span>&nbsp; <a href="" class="morelink">'+t+"<\/a><\/span>";$(this).html(e)}});$(".morelink").click(function(){return $(this).hasClass("less")?($(this).removeClass("less"),$(this).html(t)):($(this).addClass("less"),$(this).html(i)),$(this).parent().prev().toggle(),$(this).prev().toggle(),!1});o()});$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>400?$(".e-btn-btt").fadeIn():$(".e-btn-btt").fadeOut()});$("#button-btt").click(function(){return $("body,html").animate({scrollTop:0},350),!1});$(".product-page-scroll").click(function(){$("html, body").animate({scrollTop:$(".e-product-industry-help-content-blocks").offset().top-125},50)})});$(document).ready(function(){function c(){e=n.width();s=n.children().length;u=r.width();t.hide();r.css("marginLeft",0);u*s>e&&i.show()}function o(){return parseInt(r.css("marginLeft"))}function l(){return o()===0}function a(){return b.position().left+u===n.position().left+e}function v(){t.attr("disabled","disabled");i.attr("disabled","disabled");n.css("pointerEvents","none")}function y(){t.removeAttr("disabled");i.removeAttr("disabled");n.css("pointerEvents","all")}function p(){t.show();v();r.animate({marginLeft:o()-u+"px"},h,function(){y();a()&&i.hide()})}function w(){i.show();v();r.animate({marginLeft:o()+u+"px"},h,function(){y();l()&&t.hide()})}const f=$("#eventsSlider"),n=f.find(".e-events-slider-contents"),r=n.children(":first-child"),b=n.children(":last-child"),t=f.find(".e-events-slider-button-left"),i=f.find(".e-events-slider-button-right");let e,s,u;const h=300;if(f){i.on("click",function(){p()});t.on("click",function(){w()});navigator.userAgent.match(/Trident.*rv\:11\./)||jquerySwipeHandler.handleSwipe(n,[jquerySwipeHandler.SWIPE_LEFT,jquerySwipeHandler.SWIPE_RIGHT],function(n){n!=="SWIPE_LEFT"||a()||p();n!=="SWIPE_RIGHT"||l()||w()});c();$(window).on("resize",function(){c()})}});$(document).ready(function(){function t(){n.on("keyup",function(n){try{i()}catch(n){console.error(n)}})}function i(){try{let i=!0,t;for(t of n.children())if(t.className==="dropdown-item"&&$(t).css("display")!=="none"){i=!1;break}i?$("#ErrorMessage").css("display","block"):$("#ErrorMessage").css("display","none")}catch(t){console.error(t)}}const n=$("#country-report-menu-selection");t()});$(document).ready(function(){function e(){t.attr("aria-expanded","true");f.show();i=!0}function r(){t.attr("aria-expanded","false");f.hide();i=!1}function o(){try{$.get(a).done(function(n){$(".e-shopping-cart").html(n);c()})}catch(n){notification.Error(n)}}function s(n){$(".e-cart-count").html(n)}function h(n){const t=n.data("view-cart-url");window.location.href=t}function v(n){$(".jsAddToCart").each(function(t,i){if(i.getAttribute("data")===n){$(i).html(i.getAttribute("data-view-cart-label"));$(i).removeClass("jsAddToCart");$(i).addClass("jsViewCart");$(document.body).on("click",".jsViewCart",function(){h($(this))})}})}function y(t){$(".jsViewCart").each(function(i,r){if(r.getAttribute("data")===t){$(r).html(r.getAttribute("data-add-cart-label"));$(r).removeClass("jsViewCart");$(r).addClass("jsAddToCart");$(document.body).on("click",".jsAddToCart",function(){n($(this))})}})}function n(n){try{var t=n.attr("data");$.ajax({url:n.data("request-url"),type:"POST",data:JSON.stringify({code:t}),contentType:"application/json; charset=utf-8",success:function(i){s(i.length);UpdateMiniCart();window.location.pathname===l&&o();$(n).hasClass("jsRemoveFromCart")?y(t):v(t);p(n)}})}catch(i){notification.Error(i)}}function p(n){const i=$("#orderSummary");if(i.length!==0){const r=n.data("order-summary-url"),t=n.data("remove-item-enabled"),u=t?n.data("show-taxes"):$("#ShouldCalculateTax").val(),f=t?n.data("show-promo"):$("#PromoCodeSectionEnabled").val(),e={shouldCalculateTax:u,promoCodeSectionEnabled:f,isRemoveItemEnabled:t};$.post(r,e,function(n){i.html(n)})}}function c(){$(".js-remove-from-cart, .js-undo-remove-from-cart").on("click",function(n){try{$.post($(this).attr("data-request-url"),{code:$(this).attr("data")},function(n){s(n.length);o();UpdateMiniCart()})}catch(n){notification.Error(n)}})}let u=$("#cartPopupContainer"),t=$("#cartButton"),f=$("#cartPopup"),l=$("#CartPageUrl").val(),a=$("#GetCartDetailsUrl").val(),i=!1;t.on("click",function(n){n.preventDefault();i?r():e()});u.on("mouseenter",function(){e()}).on("mouseleave",function(){r()});u.on("keydown",function(n){n.which===27&&r()});c();$(".jsAddToCart").each(function(t,i){$(i).click(function(){n($(this))})});$(document.body).on("click",".jsViewCart",function(){h($(this))});$(document.body).on("click",".jsRemoveFromCart",function(){n($(this))});$(document.body).on("click",".jsUndoRemove",function(){n($(this))})});localStorageSearchTermField="searchTerm";$(document).ready(function(){function c(n){return n.replace(/<(|\/|[^>\/bi]|\/[^>bi]|[^\/>][^>]+|\/[^>][^>]+)>/g,"")}function i(){b.empty();k.empty();d.hide();p.hide();w.hide()}function a(n,t){const i=v(n.keywords),r=v(n.reports),u=v(n.errorMessage);i&&pt(t,n.keywords);r&&it(t,n.reports);i||r||u||p.show();u&&w.show()}function v(n){return n&&n.length>0}function o(){t.show();n.attr("aria-expanded","true")}function ft(){t.hide();n.attr("aria-expanded","false")}function dt(){if(window.location.origin+window.location.pathname===nt){var t=localStorage.getItem(localStorageSearchTermField);n.val(t);n.val()?(n.addClass(u),r.addClass(f)):(n.removeClass(u),r.removeClass(f))}else localStorage.removeItem(localStorageSearchTermField),n.removeClass(u),r.removeClass(f)}let y;const n=$("#searchField"),t=$("#searchPopup"),s=$("#searchLoadingIndicator"),p=$("#searchNoResults"),w=$("#mainSearchDown"),h=$("#searchResults"),b=$("#searchKeywordMatches"),k=$("#searchContentMatches"),d=$("#resultsLink"),et=$("#resultsLink a"),r=$("#searchKeywordButton"),g=t.attr("data-current-language"),nt=t.attr("data-all-results-base-url"),ot=t.attr("data-api-main-search-url"),st=t.attr("data-api-top-reports-search-url"),ht=3,ct=0,u="e-focused-word",f="e-button-expanded";let e;const l=function(n,t){return n+"?"+$.param(t)},lt=function(){var n={language:g};return l(st,n)},at=function(n){var t={term:n,language:g};return l(ot,t)},vt=function(n){var t={term:n,tab:"reports"};return l(nt,t)},tt=function(n,t){const i=n.toLowerCase().indexOf(t.toLowerCase()),r=i+t.length;return i>-1?n.substring(0,i)+"<strong>"+n.substring(i,r)+"<\/strong>"+n.substring(r):n},yt=function(){let t=c(n.val());$.ajax({url:lt(),success:function(n){n.reports&&n.reports.length>0?(e=n.reports,rt()):n.errorMessage&&n.errorMessage.length>0&&(i(),a(n,t),h.show(),o())}})},pt=function(n,t){$.each(t,function(t,i){let r=tt(i.title,n);b.append('<li><a href="'+i.url+'">'+r+"<\/a><\/li>")})},it=function(n,t){$.each(t,function(t,i){let r=tt(i.title,n);k.append('<li><a href="'+i.url+'"><span>'+r+"<\/span><small>"+i.info+"<\/small><\/a><\/li>")});et.attr("href",vt(n));d.show()},rt=function(){n.val()?(n.addClass(u),r.addClass(f)):(n.removeClass(u),r.removeClass(f),e&&e.length>0&&(i(),it("",e),o()))},wt=function(){let t=c(n.val());t.length===ct?yt():ut()},ut=function(){i();rt();clearTimeout(y);y=setTimeout(function(){let t=c(n.val());t.length>=ht&&(s.show(),$.ajax({url:at(t),success:function(n){i();s.hide();a(n,t);h.show();o()},error:function(n){i();s.hide();a(n,t);h.show();o()}}))},500)};const bt=function(t){t.which===27&&(ft(),n.val(""))},kt=function(n){var t=$(n.target);!t.closest("#searchPopupContainer").length&&$("#searchPopupContainer").is(":visible")&&ft()};dt();n.on("input",ut);n.on("click",wt);n.on("keydown",bt);$(document).on("click",kt);i()});$(document).ready(function(){function o(){n.show();t.attr("aria-expanded","true")}function r(){n.hide();t.attr("aria-expanded","false")}const u=3;let i;var f;const t=$("#storeSearchField"),n=$("#storeSearchPopup"),e=$("#storeSearchLoadingIndicator"),s=$("#reportsLoadingIndicator");t.on("keyup input",function(){i=this.value;i.length>=u?(clearTimeout(f),f=setTimeout(function(){var u=$("#reportsSearchLink").val(),f=$("#searchCategories li[selected] a").attr("id");r();n.empty();e.show();$.get(u,{query:i,categoryCode:f}).done(function(i){e.hide();n.show();t.attr("aria-expanded","true");n.html(i)})},250)):n.is(":visible")&&r()});t.on("focus",function(){i=this.value;$.trim(n.html())!=""&&i.length>=u&&o()});$("#storeSearchField, #storeSearchPopup").on("keydown",function(n){n.which===27&&(r(),t.val(""))});$(document).click(function(i){var u=$(i.target);!u.closest(n).length&&n.is(":visible")&&u.attr("id")!==t.attr("id")&&r()});$("#browseReportTabsContent .dropdown-menu a").click(function(n){var r=$("#getReportsByCategoryLink").val(),u=this.id,t=$(this).closest(".dropdown-menu").data("category"),f="#"+t,i=$("#reportsLoadingIndicator_"+t);n.preventDefault();i.show();$.get(r,{categoryId:u}).done(function(n){i.hide();$(f+" .e-reports-results").html(n)})})}),function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.ScrollMagic=t()}(this,function(){"use strict";var t=function(){n.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")},r,u,i,n;return t.version="2.0.7",window.addEventListener("mousewheel",function(){}),r="data-scrollmagic-pin-spacer",t.Controller=function(i){var l="ScrollMagic.Controller",st="FORWARD",g="REVERSE",nt="PAUSED",k=u.defaults,e=this,f=n.extend({},k,i),o=[],h=!1,v=0,y=nt,c=!0,p=0,w=!0,tt,it,ht=function(){var i,r;for(i in f)k.hasOwnProperty(i)||(s(2,'WARNING: Unknown option "'+i+'"'),delete f[i]);if(f.container=n.get.elements(f.container)[0],!f.container){s(1,"ERROR creating object "+l+": No valid scroll container supplied");throw l+" init failed.";}c=f.container===window||f.container===document.body||!document.body.contains(f.container);c&&(f.container=window);p=d();f.container.addEventListener("resize",a);f.container.addEventListener("scroll",a);r=parseInt(f.refreshInterval,10);f.refreshInterval=n.type.Number(r)?r:k.refreshInterval;rt();s(3,"added new "+l+" controller (v"+t.version+")")},rt=function(){f.refreshInterval>0&&(it=window.setTimeout(ct,f.refreshInterval))},ut=function(){return f.vertical?n.get.scrollTop(f.container):n.get.scrollLeft(f.container)},d=function(){return f.vertical?n.get.height(f.container):n.get.width(f.container)},ft=this._setScrollPos=function(t){f.vertical?c?window.scrollTo(n.get.scrollLeft(),t):f.container.scrollTop=t:c?window.scrollTo(t,n.get.scrollTop()):f.container.scrollLeft=t},et=function(){var t,r,i;w&&h&&(t=n.type.Array(h)?h:o.slice(0),h=!1,r=v,v=e.scrollPos(),i=v-r,i!==0&&(y=i>0?st:g),y===g&&t.reverse(),t.forEach(function(n,i){s(3,"updating Scene "+(i+1)+"/"+t.length+" ("+o.length+" total)");n.update(!0)}),t.length===0&&f.loglevel>=3&&s(3,"updating 0 Scenes (nothing added to controller)"))},ot=function(){tt=n.rAF(et)},a=function(n){s(3,"event fired causing an update:",n.type);n.type=="resize"&&(p=d(),y=nt);h!==!0&&(h=!0,ot())},ct=function(){if(!c&&p!=d()){var n;try{n=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){n=document.createEvent("Event");n.initEvent("resize",!1,!1)}f.container.dispatchEvent(n)}o.forEach(function(n){n.refresh()});rt()},s=this._log=function(t){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+l+") ->"),n.log.apply(window,arguments))},b;return this._options=f,b=function(n){if(n.length<=1)return n;var t=n.slice(0);return t.sort(function(n,t){return n.scrollOffset()>t.scrollOffset()?1:-1}),t},this.addScene=function(i){if(n.type.Array(i))i.forEach(function(n){e.addScene(n)});else if(i instanceof t.Scene){if(i.controller()!==e)i.addTo(e);else if(o.indexOf(i)<0){o.push(i);o=b(o);i.on("shift.controller_sort",function(){o=b(o)});for(var r in f.globalSceneOptions)i[r]&&i[r].call(i,f.globalSceneOptions[r]);s(3,"adding Scene (now "+o.length+" total)")}}else s(1,"ERROR: invalid argument supplied for '.addScene()'");return e},this.removeScene=function(t){if(n.type.Array(t))t.forEach(function(n){e.removeScene(n)});else{var i=o.indexOf(t);i>-1&&(t.off("shift.controller_sort"),o.splice(i,1),s(3,"removing Scene (now "+o.length+" left)"),t.remove())}return e},this.updateScene=function(i,r){return n.type.Array(i)?i.forEach(function(n){e.updateScene(n,r)}):r?i.update(!0):h!==!0&&i instanceof t.Scene&&(h=h||[],h.indexOf(i)==-1&&h.push(i),h=b(h),ot()),e},this.update=function(n){return a({type:"resize"}),n&&et(),e},this.scrollTo=function(i,u){var o;if(n.type.Number(i))ft.call(f.container,i,u);else if(i instanceof t.Scene)i.controller()===e?e.scrollTo(i.scrollOffset(),u):s(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))ft=i;else if(o=n.get.elements(i)[0],o){while(o.parentNode.hasAttribute(r))o=o.parentNode;var h=f.vertical?"top":"left",l=n.get.offset(f.container),a=n.get.offset(o);c||(l[h]-=e.scrollPos());e.scrollTo(a[h]-l[h],u)}else s(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i);return e},this.scrollPos=function(t){if(arguments.length)n.type.Function(t)?ut=t:s(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'.");else return ut.call(e);return e},this.info=function(n){var t={size:p,vertical:f.vertical,scrollPos:v,scrollDirection:y,container:f.container,isDocument:c};if(arguments.length){if(t[n]!==undefined)return t[n];s(1,'ERROR: option "'+n+'" is not available');return}return t},this.loglevel=function(n){if(arguments.length)f.loglevel!=n&&(f.loglevel=n);else return f.loglevel;return e},this.enabled=function(n){if(arguments.length)w!=n&&(w=!!n,e.updateScene(o,!0));else return w;return e},this.destroy=function(t){window.clearTimeout(it);for(var i=o.length;i--;)o[i].destroy(t);return f.container.removeEventListener("resize",a),f.container.removeEventListener("scroll",a),n.cAF(tt),s(3,"destroyed "+l+" (reset: "+(t?"true":"false")+")"),null},ht(),e},u={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}},t.Controller.addOption=function(n,t){u.defaults[n]=t},t.Controller.extend=function(i){var r=this;t.Controller=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this};n.extend(t.Controller,r);t.Controller.prototype=r.prototype;t.Controller.prototype.constructor=t.Controller},t.Scene=function(u){var it="ScrollMagic.Scene",p="BEFORE",a="DURING",g="AFTER",rt=i.defaults,f=this,h=n.extend({},rt,u),c=p,v=0,y={start:0,end:0},nt=0,ut=!0,w,o,wt=function(){var n,t;for(n in h)rt.hasOwnProperty(n)||(l(2,'WARNING: Unknown option "'+n+'"'),delete h[n]);for(t in rt)bt(t);ct()},b={},l,e,s,ot,d;this.on=function(t,i){return n.type.Function(i)?(t=t.trim().split(" "),t.forEach(function(n){var r=n.split("."),t=r[0],u=r[1];t!="*"&&(b[t]||(b[t]=[]),b[t].push({namespace:u||"",callback:i}))})):l(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),f};this.off=function(n,t){return n?(n=n.trim().split(" "),n.forEach(function(n){var i=n.split("."),r=i[0],u=i[1]||"",f=r==="*"?Object.keys(b):[r];f.forEach(function(n){for(var i=b[n]||[],f=i.length,r;f--;)r=i[f],r&&(u===r.namespace||u==="*")&&(!t||t==r.callback)&&i.splice(f,1);i.length||delete b[n]})}),f):(l(1,"ERROR: Invalid event name supplied."),f)};this.trigger=function(n,i){if(n){var u=n.trim().split("."),r=u[0],e=u[1],o=b[r];l(3,"event fired:",r,i?"->":"",i||"");o&&o.forEach(function(n){e&&e!==n.namespace||n.callback.call(f,new t.Event(r,n.namespace,f,i))})}else l(1,"ERROR: Invalid event name supplied.");return f};f.on("change.internal",function(n){n.what!=="loglevel"&&n.what!=="tweenChanges"&&(n.what==="triggerElement"?st():n.what==="reverse"&&f.update())}).on("shift.internal",function(){lt();f.update()});l=this._log=function(t){h.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+it+") ->"),n.log.apply(window,arguments))};this.addTo=function(n){return n instanceof t.Controller?o!=n&&(o&&o.removeScene(f),o=n,ct(),at(!0),st(!0),lt(),o.info("container").addEventListener("resize",vt),n.addScene(f),f.trigger("add",{controller:o}),l(3,"added "+it+" to controller"),f.update()):l(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),f};this.enabled=function(n){if(arguments.length)ut!=n&&(ut=!!n,f.update(!0));else return ut;return f};this.remove=function(){if(o){o.info("container").removeEventListener("resize",vt);var n=o;o=undefined;n.removeScene(f);f.trigger("remove");l(3,"removed "+it+" from controller")}return f};this.destroy=function(n){return f.trigger("destroy",{reset:n}),f.remove(),f.off("*.*"),l(3,"destroyed "+it+" (reset: "+(n?"true":"false")+")"),null};this.update=function(n){if(o)if(n)if(o.enabled()&&ut){var t=o.info("scrollPos"),i;i=h.duration>0?(t-y.start)/(y.end-y.start):t>=y.start?1:0;f.trigger("update",{startPos:y.start,endPos:y.end,scrollPos:t});f.progress(i)}else e&&c===a&&k(!0);else o.updateScene(f,!1);return f};this.refresh=function(){return at(),st(),f};this.progress=function(n){if(arguments.length){var t=!1,u=c,s=o?o.info("scrollDirection"):"PAUSED",r=h.reverse||n>=v;if(h.duration===0?(t=v!=n,v=n<1&&r?0:1,c=v===0?p:a):n<0&&c!==p&&r?(v=0,c=p,t=!0):n>=0&&n<1&&r?(v=n,c=a,t=!0):n>=1&&c!==g?(v=1,c=g,t=!0):c!==a||r||k(),t){var l={progress:v,state:c,scrollDirection:s},e=c!=u,i=function(n){f.trigger(n,l)};e&&u!==a&&(i("enter"),i(u===p?"start":"end"));i("progress");e&&c!==a&&(i(c===p?"start":"end"),i("leave"))}return f}return v};var lt=function(){y={start:nt+h.offset};o&&h.triggerElement&&(y.start-=o.info("size")*h.triggerHook);y.end=y.start+h.duration},at=function(n){if(w){var t="duration";yt(t,w.call(f))&&!n&&(f.trigger("change",{what:t,newval:h[t]}),f.trigger("shift",{reason:t}))}},st=function(t){var u=0,i=h.triggerElement,a,v;if(o&&(i||nt>0)){if(i)if(i.parentNode){for(var e=o.info(),c=n.get.offset(e.container),s=e.vertical?"top":"left";i.parentNode.hasAttribute(r);)i=i.parentNode;a=n.get.offset(i);e.isDocument||(c[s]-=o.scrollPos());u=a[s]-c[s]}else l(2,"WARNING: triggerElement was removed from DOM and will be reset to",undefined),f.triggerElement(undefined);v=u!=nt;nt=u;v&&!t&&f.trigger("shift",{reason:"triggerElementPosition"})}},vt=function(){h.triggerHook>0&&f.trigger("shift",{reason:"containerResize"})},ht=n.extend(i.validate,{duration:function(t){if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var i=parseFloat(t)/100;t=function(){return o?o.info("size")*i:0}}if(n.type.Function(t)){w=t;try{t=parseFloat(w.call(f))}catch(r){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||t<0)if(w){w=undefined;throw['Invalid return value of supplied function for option "duration":',t];}else throw['Invalid value for option "duration":',t];return t}}),ct=function(t){t=arguments.length?[t]:Object.keys(ht);t.forEach(function(t){var u,i;if(ht[t])try{u=ht[t](h[t])}catch(r){u=rt[t];i=n.type.String(r)?[r]:r;n.type.Array(i)?(i[0]="ERROR: "+i[0],i.unshift(1),l.apply(this,i)):l(1,"ERROR: Problem executing validation callback for option '"+t+"':",r.message)}finally{h[t]=u}})},yt=function(n,t){var i=!1,r=h[n];return h[n]!=t&&(h[n]=t,ct(n),i=r!=h[n]),i},bt=function(n){f[n]||(f[n]=function(t){if(arguments.length)n==="duration"&&(w=undefined),yt(n,t)&&(f.trigger("change",{what:n,newval:h[n]}),i.shifts.indexOf(n)>-1&&f.trigger("shift",{reason:n}));else return h[n];return f})};this.controller=function(){return o};this.state=function(){return c};this.scrollOffset=function(){return y.start};this.triggerPosition=function(){var n=h.offset;return o&&(n+=h.triggerElement?nt:o.info("size")*f.triggerHook()),n};f.on("shift.internal",function(n){var t=n.reason==="duration";(c===g&&t||c===a&&h.duration===0)&&k();t&&tt()}).on("progress.internal",function(){k()}).on("add.internal",function(){tt()}).on("destroy.internal",function(n){f.removePin(n.reset)});var k=function(t){var r,i,u,w,f,l;e&&o&&(r=o.info(),i=s.spacer.firstChild,t||c!==a?(f={position:s.inFlow?"relative":"absolute",top:0,left:0},l=n.css(i,"position")!=f.position,s.pushFollowers?h.duration>0&&(c===g&&parseFloat(n.css(s.spacer,"padding-top"))===0?l=!0:c===p&&parseFloat(n.css(s.spacer,"padding-bottom"))===0&&(l=!0)):f[r.vertical?"top":"left"]=h.duration*v,n.css(i,f),l&&tt()):(n.css(i,"position")!="fixed"&&(n.css(i,{position:"fixed"}),tt()),u=n.get.offset(s.spacer,!0),w=h.reverse||h.duration===0?r.scrollPos-y.start:Math.round(v*h.duration*10)/10,u[r.vertical?"top":"left"]+=w,n.css(s.spacer.firstChild,{top:u.top,left:u.left})))},tt=function(){if(e&&o&&s.inFlow){var l=c===g,y=c===p,i=c===a,r=o.info("vertical"),u=s.spacer.firstChild,f=n.isMarginCollapseType(n.css(s.spacer,"display")),t={};s.relSize.width||s.relSize.autoFullWidth?i?n.css(e,{width:n.get.width(s.spacer)}):n.css(e,{width:"100%"}):(t["min-width"]=n.get.width(r?e:u,!0,!0),t.width=i?t["min-width"]:"auto");s.relSize.height?i?n.css(e,{height:n.get.height(s.spacer)-(s.pushFollowers?h.duration:0)}):n.css(e,{height:"100%"}):(t["min-height"]=n.get.height(r?u:e,!0,!f),t.height=i?t["min-height"]:"auto");s.pushFollowers&&(t["padding"+(r?"Top":"Left")]=h.duration*v,t["padding"+(r?"Bottom":"Right")]=h.duration*(1-v));n.css(s.spacer,t)}},ft=function(){o&&e&&c===a&&!o.info("isDocument")&&k()},pt=function(){o&&e&&c===a&&((s.relSize.width||s.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(s.spacer.parentNode)||s.relSize.height&&n.get.height(window)!=n.get.height(s.spacer.parentNode))&&tt()},et=function(n){o&&e&&c===a&&!o.info("isDocument")&&(n.preventDefault(),o._setScrollPos(o.info("scrollPos")-((n.wheelDelta||n[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||-n.detail*30)))};this.setPin=function(t,i){var d=i&&i.hasOwnProperty("pushFollowers"),y,a,u,v,w,b;if(i=n.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),t=n.get.elements(t)[0],t){if(n.css(t,"position")==="fixed")return l(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),f}else return l(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),f;if(e){if(e===t)return f;f.removePin()}e=t;y=e.parentNode.style.display;a=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];e.parentNode.style.display="none";var o=n.css(e,"position")!="absolute",p=n.css(e,a.concat(["display"])),c=n.css(e,["width","height"]);return e.parentNode.style.display=y,!o&&i.pushFollowers&&(l(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout(function(){e&&h.duration===0&&d&&i.pushFollowers&&l(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0),u=e.parentNode.insertBefore(document.createElement("div"),e),v=n.extend(p,{position:o?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),o||n.extend(v,n.css(e,["width","height"])),n.css(u,v),u.setAttribute(r,""),n.addClass(u,i.spacerClass),s={spacer:u,relSize:{width:c.width.slice(-1)==="%",height:c.height.slice(-1)==="%",autoFullWidth:c.width==="auto"&&o&&n.isMarginCollapseType(p.display)},pushFollowers:i.pushFollowers,inFlow:o},e.___origStyle||(e.___origStyle={},w=e.style,b=a.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]),b.forEach(function(n){e.___origStyle[n]=w[n]||""})),s.relSize.width&&n.css(u,{width:c.width}),s.relSize.height&&n.css(u,{height:c.height}),u.appendChild(e),n.css(e,{position:o?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(s.relSize.width||s.relSize.autoFullWidth)&&n.css(e,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",ft),window.addEventListener("resize",ft),window.addEventListener("resize",pt),e.addEventListener("mousewheel",et),e.addEventListener("DOMMouseScroll",et),l(3,"added pin"),k(),f};this.removePin=function(t){var i;if(e){if(c===a&&k(!0),t||!o){if(i=s.spacer.firstChild,i.hasAttribute(r)){var h=s.spacer.style,u={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(n){u[n]=h[n]||""});n.css(i,u)}s.spacer.parentNode.insertBefore(i,s.spacer);s.spacer.parentNode.removeChild(s.spacer);e.parentNode.hasAttribute(r)||(n.css(e,e.___origStyle),delete e.___origStyle)}window.removeEventListener("scroll",ft);window.removeEventListener("resize",ft);window.removeEventListener("resize",pt);e.removeEventListener("mousewheel",et);e.removeEventListener("DOMMouseScroll",et);e=undefined;l(3,"removed pin (reset: "+(t?"true":"false")+")")}return f};d=[];f.on("destroy.internal",function(n){f.removeClassToggle(n.reset)});return this.setClassToggle=function(t,i){var r=n.get.elements(t);if(r.length===0||!n.type.String(i))return l(1,"ERROR calling method 'setClassToggle()': Invalid "+(r.length===0?"element":"classes")+" supplied."),f;d.length>0&&f.removeClassToggle();ot=i;d=r;f.on("enter.internal_class leave.internal_class",function(t){var i=t.type==="enter"?n.addClass:n.removeClass;d.forEach(function(n){i(n,ot)})});return f},this.removeClassToggle=function(t){return t&&d.forEach(function(t){n.removeClass(t,ot)}),f.off("start.internal_class end.internal_class"),ot=undefined,d=[],f},wt(),f},i={defaults:{duration:0,offset:0,triggerElement:undefined,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!n.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||undefined,t){var i=n.get.elements(t)[0];if(i&&i.parentNode)t=i;else throw['Element defined in option "triggerElement" was not found:',t];}return t},triggerHook:function(t){var i={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else if(t in i)t=i[t];else throw['Invalid value for option "triggerHook": ',t];return t},reverse:function(n){return!!n},loglevel:function(t){if(t=parseInt(t),!n.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]},t.Scene.addOption=function(n,r,u,f){n in i.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+n+"', because it already exists."):(i.defaults[n]=r,i.validate[n]=u,f&&i.shifts.push(n))},t.Scene.extend=function(i){var r=this;t.Scene=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this};n.extend(t.Scene,r);t.Scene.prototype=r.prototype;t.Scene.prototype.constructor=t.Scene},t.Event=function(n,t,i,r){r=r||{};for(var u in r)this[u]=r[u];return this.type=n,this.target=this.currentTarget=i,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this},n=t._util=function(n){var r={},t,s=function(n){return parseFloat(n)||0},l=function(t){return t.currentStyle?t.currentStyle:n.getComputedStyle(t)},y=function(t,r,u,f){var o,e;if(r=r===document?n:r,r===n)f=!1;else if(!i.DomElement(r))return 0;return t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase(),o=(u?r["offset"+t]||r["outer"+t]:r["client"+t]||r["inner"+t])||0,u&&f&&(e=l(r),o+=t==="Height"?s(e.marginTop)+s(e.marginBottom):s(e.marginLeft)+s(e.marginRight)),o},a=function(n){return n.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})},e,f,v,i,u;r.extend=function(n){for(n=n||{},t=1;t<arguments.length;t++)if(arguments[t])for(var i in arguments[t])arguments[t].hasOwnProperty(i)&&(n[i]=arguments[t][i]);return n};r.isMarginCollapseType=function(n){return["block","flex","list-item","table","-webkit-box"].indexOf(n)>-1};var p=0,h=["ms","moz","webkit","o"],o=n.requestAnimationFrame,c=n.cancelAnimationFrame;for(t=0;!o&&t<h.length;++t)o=n[h[t]+"RequestAnimationFrame"],c=n[h[t]+"CancelAnimationFrame"]||n[h[t]+"CancelRequestAnimationFrame"];for(o||(o=function(t){var i=(new Date).getTime(),r=Math.max(0,16-(i-p)),u=n.setTimeout(function(){t(i+r)},r);return p=i+r,u}),c||(c=function(t){n.clearTimeout(t)}),r.rAF=o.bind(n),r.cAF=c.bind(n),e=["error","warn","log"],f=n.console||{},f.log=f.log||function(){},t=0;t<e.length;t++)v=e[t],f[v]||(f[v]=f.log);return r.log=function(n){(n>e.length||n<=0)&&(n=e.length);var t=new Date,r=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),u=e[n-1],i=Array.prototype.splice.call(arguments,1),o=Function.prototype.bind.call(f[u],f);i.unshift(r);o.apply(f,i)},i=r.type=function(n){return Object.prototype.toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},i.String=function(n){return i(n)==="string"},i.Function=function(n){return i(n)==="function"},i.Array=function(n){return Array.isArray(n)},i.Number=function(n){return!i.Array(n)&&n-parseFloat(n)+1>=0},i.DomElement=function(n){return typeof HTMLElement=="object"||typeof HTMLElement=="function"?n instanceof HTMLElement||n instanceof SVGElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"},u=r.get={},u.elements=function(t){var r=[],f,o,e;if(i.String(t))try{t=document.querySelectorAll(t)}catch(s){return r}if(i(t)==="nodelist"||i.Array(t)||t instanceof NodeList)for(f=0,o=r.length=t.length;f<o;f++)e=t[f],r[f]=i.DomElement(e)?e:u.elements(e);else(i.DomElement(t)||t===document||t===n)&&(r=[t]);return r},u.scrollTop=function(t){return t&&typeof t.scrollTop=="number"?t.scrollTop:n.pageYOffset||0},u.scrollLeft=function(t){return t&&typeof t.scrollLeft=="number"?t.scrollLeft:n.pageXOffset||0},u.width=function(n,t,i){return y("width",n,t,i)},u.height=function(n,t,i){return y("height",n,t,i)},u.offset=function(n,t){var i={top:0,left:0},r;return n&&n.getBoundingClientRect&&(r=n.getBoundingClientRect(),i.top=r.top,i.left=r.left,t||(i.top+=u.scrollTop(),i.left+=u.scrollLeft())),i},r.addClass=function(n,t){t&&(n.classList?n.classList.add(t):n.className+=" "+t)},r.removeClass=function(n,t){t&&(n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},r.css=function(n,t){var u,e,f,r;if(i.String(t))return l(n)[a(t)];if(i.Array(t))return u={},e=l(n),t.forEach(function(n){u[n]=e[a(n)]}),u;for(f in t)r=t[f],r==parseFloat(r)&&(r+="px"),n.style[a(f)]=r},r}(window||{}),t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t});$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>280?$(".e-mini-filter-nav").addClass("e-fixed-to-top"):$(".e-mini-filter-nav").removeClass("e-fixed-to-top")})});$(document).ready(function(){function h(n){try{$("#couponCodeButton").hasClass("jsClearPromoCode")?$.post($(n).attr("data-remove-coupon-url"),{couponCode:$(n).attr("data-coupon-code-to-remove"),shouldCalculateTax:$(n).attr("data-calculate-tax"),promoCodeSectionEnabled:$(n).attr("data-promo-section-enabled"),isRemoveItemEnabled:$(n).attr("data-remove-item-enabled")},function(n){$("#orderSummary").html(n);UpdateMiniCart()}):$.post($(n).attr("data-add-coupon-url"),{couponCode:$("#promoCode").val(),shouldCalculateTax:$(n).attr("data-calculate-tax"),promoCodeSectionEnabled:$(n).attr("data-promo-section-enabled"),isRemoveItemEnabled:$(n).attr("data-remove-item-enabled")},function(n){$("#orderSummary").html(n);UpdateMiniCart()})}catch(n){notification.Error(n)}}var r,u,e,o,t,i,f;$("#"+$(".emailTypeRadio:checked").attr("id")+"Text").show();$(".emailTypeRadio").on("change",function(){$(".e-disclaimer-text").hide();$("#"+$(this).attr("id")+"Text").show()});$("#"+$("#formEmailType").val()).show();$("#formEmailType").on("change",function(){$(".e-disclaimer-text").hide();$("#"+$(this).val()).show()});window.onload=function(){var n=document.querySelector("#g-recaptcha-response");n&&(n.setAttribute("required","required"),$(n).addClass("form-control"),$('<div class="invalid-feedback">Please tick the reCAPTCHA box above.<\/div>').insertAfter(n))};$("button.e-hide-show-button").on("click",function(n){n.preventDefault();$(this).toggleClass("e-show-icon");const t=$("#"+$(this).data("id"));t.attr("type")==="password"?t.attr("type","text"):t.attr("type","password")});const s=$("#officeGallery a"),n=$("#officeGalleryPopup");s.click(function(t){t.preventDefault();const i=$(this).data("image-url");n.find("img").attr("src",i);n.show();n.focus()});n.find("button").click(function(){n.hide()});n.on("keydown",function(t){t.which===27&&n.hide()});$(document.body).on("submit",".jsPromoCode",function(n){n.preventDefault();h($(this))});if(r=$(".e-timeline-info *"),u=$(".e-timeline-image img"),r.length>0&&(e=new ScrollMagic.Controller,r.each(function(){new ScrollMagic.Scene({triggerElement:this,offset:80,triggerHook:.9}).setClassToggle(this,"visible").addTo(e)})),u.length>0&&(o=new ScrollMagic.Controller,u.each(function(){new ScrollMagic.Scene({triggerElement:this,offset:200,triggerHook:.9}).setClassToggle(this,"visible").addTo(o)})),t=location.href.replace(/\/$/,""),location.hash){const n=t.split("#");for(i=1;i<n.length;i++)$('ul.tabbed-block-tabs a[href="#'+n[i]+'"]').tab("show");t=location.href.replace(/\/#/,"#");history.replaceState(null,null,t)}$('ul.tabbed-block-tabs a[data-toggle="tab"]').on("click",function(){var n=$(this).closest("ul.tabbed-block-tabs").attr("id"),i=getTabHashesExcludingSelectedTab(n),r=$(this).attr("id"),u=getSelectedTabHashIfNeeded(r),f=t.split("#")[0]+i+u;history.replaceState(null,null,f)});f=$(location).prop("hash").substr(1);f&&TogglShowHideBlockContent("#"+f);$(".e-product-industry-help a.product-page-scroll").on("click",function(n){n.preventDefault();var t=$(n.target).attr("href");history.replaceState(null,null,t);TogglShowHideBlockContent(t)});CheckTaxExemptionButtonListener()});$(document).ready(function(){$(".workable-block .dropdown-menu.vacancies a").click(function(n){var t,i,r;n.preventDefault();t=$(this).closest(".workable-block");i=$("#vacanciesOffice",t);i.text($(this).text());i.attr("data-selectedOption",$(this).attr("data-office"));r=$("#vacanciesDepartment",t);r.attr("data-selectedOption","");r.text($("#DepartmentFilterLabel").val());applyFilters(t)});$(".workable-block .dropdown-menu.departments a").click(function(n){var t,i,r;n.preventDefault();t=$(this).closest(".workable-block");i=$("#vacanciesDepartment",t);i.text($(this).text());i.attr("data-selectedOption",$(this).attr("data-department"));r=$("#vacanciesOffice",t);r.attr("data-selectedOption","");r.text($("#OfficeFilterLabel").val());applyFilters(t)})});$(document).ready(function(){$(".e-carousel").on("slid.bs.carousel",function(){const n=$(".carousel-item.active .e-video-block");n.length>0&&n.each(function(t){checkVideoVisibility(n[t])})});checkVideoElement();$(window).click(function(){setTimeout(function(){checkVideoElement()},250)})});$("document").ready(function(){function f(){n.hide();emiCookiesPreferencesHelper.AcceptAll()}function e(){n.hide();emiCookiesPreferencesHelper.RejectAll()}function o(){window.location.href=u}const n=$(".js-cookie-banner"),t=n.find(".js-cookie-banner-accept-all"),i=n.find(".js-cookie-banner-reject-all"),r=n.find(".js-cookie-banner-manage"),u=n.attr("data-manage-preferences-page-url");t.click(f);i.click(e);r.click(o);emiCookiesPreferencesHelper.IsCurrentUserConfigurationUpToDate()||n.show()});$("document").ready(function(){function u(n){n.preventDefault();emiCookiesPreferencesHelper.AcceptAll("/")}function f(n){n.preventDefault();emiCookiesPreferencesHelper.RejectAll("/")}function e(n){n.preventDefault();const t=[0],i=$(this).closest(".js-cookie-preferences"),r=i.find(".js-cookie-preferences-tier1-checkbox")[0];r.checked&&t.push(1);const u=i.find(".js-cookie-preferences-tier2-checkbox")[0];u.checked&&t.push(2);emiCookiesPreferencesHelper.SavePreferences(t,"/")}const n=$(".js-cookie-preferences");if(n.length!==0){const t=n.find(".js-cookie-preferences-accept-all-button"),i=n.find(".js-cookie-preferences-reject-all-button"),r=n.find(".js-cookie-preferences-save-selections-button");t.click(u);i.click(f);r.click(e)}});$("document").ready(function(){emiCookiesPreferencesHelper.IsFeatureEnabled("fullstory")&&emiGlobalHelper.pushToDataLayer({event:"emi-enable-fullstory"});emiCookiesPreferencesHelper.IsFeatureEnabled("googleDoubleClick")&&emiGlobalHelper.pushToDataLayer({event:"emi-enable-google-double-click"});emiCookiesPreferencesHelper.IsFeatureEnabled("googleAdsense")&&emiGlobalHelper.pushToDataLayer({event:"emi-enable-google-adsense"});emiCookiesPreferencesHelper.IsFeatureEnabled("twitter")&&emiGlobalHelper.pushToDataLayer({event:"emi-enable-twitter"})});["load","scroll"].forEach(function(n){window.addEventListener(n,reveal)})