(function(n){function t(){function r(){toolkit.cookie.write("argusMediaCookie","argusMediaCookie",t.data("expiry"));t.stop().slideUp(500)}var t=n("#cookie-banner"),i=t.find("#accept-cookies");toolkit.cookie.check("argusMediaCookie")||t.stop().slideDown(500);i.on("click",r)}n(document).ready(function(){n("#cookie-banner").length&&t()})})(jQuery),function(n){function t(){function n(){var n=argus.cache.$body.find("#main");argus.cache.$window.width()>argus.config.breakpoints.MOBILE?n.css({paddingBottom:argus.cache.$body.find("footer#site-footer").innerHeight()}):n.removeAttr("style")}n();window.toolkit.resizeTimer.push(n)}function i(){n("footer#site-footer").find(".back-to-top").on("click",function(n){n.preventDefault();argus.cache.$body.add(argus.cache.$html).animate({scrollTop:0},200)})}n(document).ready(function(){n("footer#site-footer").length&&(t(),i())})}(jQuery),function(n){function o(){var t=n(this).children("a, button");t.on("click",function(n){var i=t.parent(),r=i.children("ul");n.preventDefault();argus.helpers.resetActiveHeaderStates();argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&argus.cache.$body.removeClass("nav-open form-slider-open");r.stop().slideToggle(250).parent("li").toggleClass("active")})}function s(){function f(){argus.cache.$body.hasClass("search-open")&&i()}function i(){var t=n.find("input#query"),i=n.find('input[type="submit"]'),f=n.find(".form").data("search-url");argus.helpers.resetActiveHeaderStates();n.toggleClass("open");argus.cache.$body.toggleClass("search-open");argus.cache.$body.removeClass("nav-open");!argus.cache.$siteOverlay.hasClass("active")&&argus.cache.$body.hasClass("search-open")?(argus.cache.$siteOverlay.stop().addClass("active"),n.find(".search-icon").attr("tabindex","0")):argus.cache.$body.hasClass("search-open")||(argus.cache.$siteOverlay.stop().removeClass("active"),n.find(".search-icon").attr("tabindex","-1"));argus.cache.$window.width()<=argus.config.breakpoints.TABLET_LANDSCAPE&&(r.removeClass("open"),u.add(u.find(".form")).stop().slideUp(250,function(){argus.cache.$body.removeClass("nav-open form-slider-open");argus.cache.$siteOverlay.stop().addClass("active");argus.cache.$html.removeClass("overflow-hidden");argus.cache.$body.hasClass("search-open")||argus.cache.$siteOverlay.stop().removeClass("active")}));n.find("input").focus();i.on("click",function(){window.location.href=f+encodeURIComponent(t.val())});t.on("keyup",function(n){n.keyCode===argus.config.keys.ENTER&&i.trigger("click")})}var n=t.find("#site-search");n.find(".search-icon").off("click",i).on("click",i);argus.cache.$siteOverlay.off("click",f).on("click",f);n.each(argus.helpers.preventCrossScripting)}function h(){var s=argus.cache.$window.scrollTop(),o=t.find("#site-search-navicon"),e=t.find("#navicon-wrapper"),h=e.next("#site-search"),c=u.find(".secondary-navigation-toggle");argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&t.hasClass("slim")&&(o.removeAttr("tabindex"),e.add(h).attr("tabindex",0));r.on("click",function(){if(argus.helpers.resetActiveHeaderStates(),argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&t.hasClass("slim")){t.removeClass("slim").addClass("full");e.add(h).removeAttr("tabindex");o.attr("tabindex",0);t.find("#logo").children().focus();return}r.toggleClass("open");argus.cache.$window.width()<=argus.config.breakpoints.TABLET_LANDSCAPE&&r.hasClass("open")?n(".sticky").each(function(){s=argus.cache.$window.scrollTop();n(this).hasClass("sticky-disabled")||argus.cache.$body.addClass("is-sticky-active");argus.cache.$html.addClass("overflow-hidden")}):(argus.cache.$html.removeClass("overflow-hidden"),argus.cache.$window.scrollTop(s));u.stop().slideToggle(250,function(){var t=n(this),u="display: -webkit-flex; display: flex";argus.cache.$window.width()<=argus.config.breakpoints.TABLET_LANDSCAPE&&r.hasClass("open")?(t.attr("style",u),n(".sticky").each(function(){var t=n(this),r=argus.cache.$body.find("#cookie-banner"),u=t.find("#navigation-links"),e=t.hasClass("sticky-disabled"),f;f=r.is(":visible")&&r.outerHeight()!==0&&argus.cache.$window.scrollTop()===0&&e?argus.cache.$window.height()-(r.outerHeight()+t.height()):argus.cache.$window.height()-t.height();u.height(f);u.scrollTop(0);t.addClass("sticky-active").css({top:0});i.css({paddingTop:0})})):(t.find(".secondary-navigation-list").attr("style",""),c.removeClass("active"),n(".sticky").each(function(){var t=n(this);t.find("#navigation-links").height("");f(t,!1)}))});argus.cache.$body.toggleClass("nav-open");argus.cache.$html.toggleClass("overflow-hidden");c.on("click",function(){var t=n(this);t.toggleClass("active");t.closest(".secondary-navigation-section").find(".secondary-navigation-list").stop().slideToggle(250)});argus.cache.$body.hasClass("nav-open")?argus.cache.$siteOverlay.addClass("active"):(argus.cache.$siteOverlay.removeClass("active"),argus.cache.$body.removeClass("form-slider-open"))});argus.cache.$window.on("scroll",function(){t.hasClass("full")&&(argus.helpers.resetActiveHeaderStates(),t.removeClass("full").addClass("slim"),e.attr("tabindex",0),o.removeAttr("tabindex"))})}function c(){var i=argus.cache.$header.find(".step-form"),t=argus.cache.$header.find("#navigation-links"),n=argus.cache.$header.find("#navicon");(argus.cache.$body.hasClass("nav-open")||argus.cache.$body.hasClass("step-form-open"))&&argus.cache.$window.width()<=argus.config.breakpoints.TABLET_LANDSCAPE?(argus.cache.$siteOverlay.trigger("click"),n.hasClass("open")&&(n.trigger("click"),argus.cache.$siteOverlay.removeClass("active"),t.css({display:""})),argus.cache.$body.removeClass("step-form-open"),argus.cache.$siteOverlay.removeClass("active")):argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&(i.hasClass("active")&&argus.cache.$body.hasClass("nav-open")||argus.cache.$siteOverlay.removeClass("active"),argus.cache.$header.find("header").find("h2").addClass("line-active"),t.css({display:""}),u.show().attr("style",""),n.removeClass("open"))}function l(){function f(f){var o=argus.cache.$body.find("#cookie-banner"),p=argus.cache.$body.find(".event-menu-links"),w=n(f.target).closest(".has-children"),b=p.find(".active"),s=argus.cache.$body.find("#site-search"),h=argus.cache.$body.find("#site-search-navicon"),c=argus.cache.$body.find(".slim").find("#navicon-wrapper"),k=u.find(".active"),l=argus.cache.$body.find(".mod-carousel").filter(".slide-gallery"),a=argus.cache.$body.find(".listing-filters").find(".form-fields"),v=l.find(".next"),y=l.find(".prev");if(f.which===argus.config.keys.ESCAPE&&((argus.cache.$body.find(".megamenu").is(":visible")||k.length||argus.cache.$body.find(".megamenu").is(":visible"))&&argus.helpers.resetActiveHeaderStates(),i.hasClass("active")&&i.trigger("click"),argus.cache.$body.hasClass("search-open")&&s.find("button").trigger("click"),o.is(":visible")&&o.find("button").trigger("click"),a.hasClass("active")&&a.siblings(".more-filters").find(".toggle-filter-dropdowns").trigger("click"),b.length&&w.removeClass("active").next().find(".subnav-item").first().focus()),n(f.target).closest(".slide-gallery").length&&((f.which===argus.config.keys.RIGHT||f.which===argus.config.keys.TAB)&&v.is(":visible")&&v.trigger("click"),f.which===argus.config.keys.LEFT&&y.is(":visible")&&y.trigger("click")),f.which===argus.config.keys.ENTER){if(s.is(f.target)||c.is(f.target)||h.is(f.target)){if(h.is(f.target)){n(f.target).find(".search-icon").trigger("click");return}n(f.target).find("button").trigger("click");c.is(f.target)&&(r.length?e.focus():t.length&&t.find(".nav-item").eq(0).focus())}(n(f.target).hasClass("read-more")||n(f.target).hasClass("input-label"))&&n(f.target).trigger("click")}}var t=argus.cache.$body.find("#primary-navigation"),i=argus.cache.$body.find("#site-overlay"),r=argus.cache.$body.find("#header-links"),u=r.find("ul"),e=u.find("a").eq(0);argus.cache.$document.off("keyup",f).on("keyup",f)}function a(){var t=n(this),r=t.find("header").find("h2"),u=t.find(".tile-grid"),i=t.closest("li");t.prev(".nav-item").on("click",function(){var f;argus.helpers.resetActiveHeaderStates();f=i.siblings().hasClass("active")?300:0;i.toggleClass("active").siblings().removeClass("active").children(".megamenu").stop().slideUp(300);i.siblings().find(".line-active").removeClass("line-active");setTimeout(function(){t.stop().slideToggle(300,function(){var i=n(this);argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&(t.closest("li").hasClass("active")?(argus.cache.$body.addClass("nav-open"),argus.cache.$html.addClass("overflow-hidden"),argus.cache.$siteOverlay.addClass("active"),r.addClass("line-active")):(argus.cache.$body.removeClass("nav-open"),argus.cache.$html.removeClass("overflow-hidden"),argus.cache.$siteOverlay.removeClass("active"),r.removeClass("line-active")));u.length&&u.each(toolkit.equalHeight);i.css("display")==="none"&&i.removeAttr("style")})},f)});argus.cache.$siteOverlay.off("click",argus.helpers.resetActiveHeaderStates).on("click",argus.helpers.resetActiveHeaderStates);l()}function f(n,t){function f(){r=e.is(":visible")?e.outerHeight():0;r!==0?(n.addClass("sticky-disabled"),i.css({paddingTop:0})):(n.addClass("sticky-active"),i.css({paddingTop:n.height()+"px"}))}var r,u=argus.cache.$window.scrollTop();if(argus.cache.$body.removeClass("is-sticky-active"),n.removeClass("sticky-disabled sticky-active"),t?setTimeout(f,550):(argus.cache.$html.removeClass("overflow-hidden"),f()),t)argus.cache.$window.on("scroll",function(){var e=n.height(),f=argus.cache.$window.scrollTop(),t;if(!argus.cache.$body.hasClass("nav-open")){if(argus.cache.$window.width()<argus.config.breakpoints.TABLET_LANDSCAPE&&argus.cache.$body.hasClass("nav-open")){n.addClass("sticky-active").css({top:0});i.css({paddingTop:0});return}r!==0?(i.css({paddingTop:0}),f<r?n.removeClass("sticky-active").addClass("sticky-disabled"):(t=-e,n.addClass("sticky-active").removeClass("sticky-disabled").css({top:t+"px"}),argus.helpers.resetActiveHeaderStates())):argus.helpers.resetActiveHeaderStates();f>u?f>0&&(t=-e,n.css({top:t+"px"}),i.css({paddingTop:0})):(t=0,n.css({top:t}),r!==0?i.css({paddingTop:0}):i.css({paddingTop:n.height()+"px"}));n.hasClass("sticky-disabled")&&(t=0,n.css({top:t}));argus.cache.$siteOverlay.hasClass("active")&&t!==0&&argus.cache.$window.width()>argus.config.breakpoints.TABLET_LANDSCAPE&&(argus.cache.megaMenuInstantHide=!0,argus.cache.$siteOverlay.trigger("click"));u=f}})}var i=n("#main"),t=n("#site-header"),e=n("#cookie-banner"),r=t.find("#navicon"),u=t.find("#navigation-links");n(document).ready(function(){n("#header-links").find("li.has-children").each(o);n("#site-search").length&&s();n("#primary-navigation").length&&h();n(".megamenu").each(a);n(".sticky").each(function(){f(n(this),!0)});toolkit.resizeTimer.push(function(){c();n(".sticky").each(function(){f(n(this),argus.cache.$window.width()<=argus.config.breakpoints.TABLET_LANDSCAPE)})})})}(jQuery);void function(n){function t(n,t){var i,r;for(i in n)if(i in t){if("object"==typeof n[i])for(r in n[i])t[i][r]=void 0!=t[i][r]&&t[i][r]!=n[i][r]?t[i][r]:n[i][r]}else t[i]=n[i];return t}var i=0;Object.build=function(n){function t(){"function"==typeof n.init&&i.length&&n.init.apply(this,i)}if(void 0!==n){var i=Array.prototype.slice.call(arguments,1);return t.prototype=n,new t}};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeInOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),(t/=u/2)<1?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInOutExpo:function(n,t,i,r,u){return 0==t?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i}});n.ModCarousel=function(i,r,u){var f,o=this,s={modes:{slide:!0,infinite:!0,responsive:!0,nudge:!1},controls:{step:!0,pager:!0,playback:!0},rotate:{auto:!1,direction:"right",interval:500,duration:300,type:"linear",step:1},dimensions:{heightControl:!0,fixedHeight:!0,maxHeight:400,baseWidth:600,slidesInFrame:1},options:{preload:!1,stickySlides:!0,visibleClassAfter:!0,maskedOverflow:!0,setSlide:0,touchControl:!0},onReady:function(){},onRotateStart:function(){},onRotateEnd:function(){}},e=t(s,r);e.rotate.step>e.dimensions.slidesInFrame&&(e.rotate.step=e.dimensions.slidesInFrame);o.actionData={};f={m:{$carousel:n(i),isAnimating:!1,heroMode:!1,autoDisabled:!1,modes:[],firstPosition:0,lastPosition:0,cycleTimer:0,activeIndex:0,currentPosition:0,overflow:0,slideCount:0,slideHeight:void 0,slideWidth:void 0,dynamicSlideWidth:null,divisor:1,imgSrcArr:[],trans:{},resEv:"resize",algFct:{linear:["cubic-bezier(0.250, 0.250, 0.750, 0.750)","linear"],quad:["cubic-bezier(0.455, 0.030, 0.515, 0.955)","easeInOutQuad"],back:["cubic-bezier(0.680, -0.550, 0.265, 1.550)","easeInOutBack"],expo:["cubic-bezier(1.000, 0.000, 0.000, 1.000)","easeInOutExpo"]},ui:{masks:'<span class="mask left" data-direction="left"><\/span><span class="mask right" data-direction="right"><\/span>'},stateData:{activeSlide:0},browser:{oldIe:!1},_constr:function(){var t=navigator.userAgent.toLowerCase();f.m.browser.oldIe=t.indexOf("msie 7.0")>-1||t.indexOf("msie 8.0")>-1;f.m.ccId="mod-carousel-id-"+f.m.$carousel.data("mod-carousel-id");o.actionData={$banner:n(i),slideDirection:e.rotate.direction,active:void 0}},_configImg:function(){for(var i,t=[],n=0;n<f.m.$slide.length;n+=1)i=f.m.$slide.eq(n).find("img").attr("src"),void 0!==i&&(f.m.imgSrcArr[n]=i);if(f.m.imgSrcArr.length)for(n=0;n<f.m.imgSrcArr.length;n+=1)t[n]=new Image,t[n].onload=f.c.async._updateCheck(),t[n].onerror=f.c.async._updateCheck(),t[n].src=f.m.imgSrcArr[n];else f.c._ready()},_props:function(n){f.m.heroMode=f.m.$slide.length<=1;f.m.divisor=1;f.m.heroMode?f.m.divisor=0:e.modes.slide&&e.modes.infinite&&(f.m.divisor=5);f.m.slideCount=n?f.m.$slide.length/f.m.divisor:f.m.divisor>0?f.m.$slide.length:0;f.m.slideHeight=f.m.$carousel.parent().height();f.m.dynamicSlideWidth=f.m.$carousel.parent().width()/e.dimensions.slidesInFrame;f.m.slideWidth=f.m.dynamicSlideWidth;f.m.trans=f.m.fact._transitionType();f.m.modes=[]},_staticCache:function(){f.m.$viewport=f.m.$carousel.find(".viewport").first();f.m.$parentContainer=f.m.$viewport.parent();f.m.$slides=f.m.$viewport.children(".slide-container");f.m.$slide=f.m.$slides.children("div.slide");f.m.$pagerContainer=f.m.$parentContainer.find(".pagination-controls");f.m.$playbackControls=f.m.$parentContainer.find(".playback");f.m.$stepControls=f.m.$parentContainer.find(".step");f.m.$masks=f.m.$carousel.children(".mask");f.m.$loader=f.m.$carousel.children("span.loader")},_dynamicCache:function(){f.m.$slide=f.m.$slides.children("div.slide")},_stitch:function(){f.m.$carousel.prepend(f.m.ui.masks)},defaults:{_get:function(){var n=[];e.options.stickySlides&&(n=("; "+document.cookie).split("; "+f.m.ccId+"="),2===n.length&&(f.m.stateData=JSON.parse(n.pop().split(";").shift())))},_set:function(){e.options.stickySlides&&(document.cookie=f.m.ccId+"="+JSON.stringify(f.m.stateData)+";path=/")},_apply:function(){e.options.setSlide>0&&e.options.setSlide<=f.m.slideCount?f.c._actionController(e.options.setSlide-1,!1):f.m.stateData.activeSlide>0?f.c._actionController(f.m.stateData.activeSlide,!1):o.actionData.active=1}},carousel:{_slideVals:function(n){var i,r=e.rotate.step,t=0;return"number"==typeof n?n<f.m.activeIndex?(r=-(n-f.m.activeIndex),t="left"):n>f.m.activeIndex?(r=-(f.m.activeIndex-n),t="right"):n===f.m.activeIndex&&(t="reset"):t=n,o.actionData.slideDirection=t,i=f.m.fact.calc[t](r),"number"==typeof n?f.m.activeIndex=n:i[1]?f.m.activeIndex>=Math.ceil(f.m.slideCount)-e.rotate.step?f.m.activeIndex-=Math.ceil(f.m.slideCount)-e.rotate.step:f.m.activeIndex+=e.rotate.step:f.m.activeIndex<e.rotate.step?f.m.activeIndex+=Math.ceil(f.m.slideCount)-e.rotate.step:f.m.activeIndex-=e.rotate.step,o.actionData.active=f.m.activeIndex+1,{newPosition:i[0],dir:i[1]}},_nudgeVals:function(n){return f.m.currentPosition+{left:20,right:-20,"null":0}[n]},_sizingVals:function(n){f.m.dynamicSlideWidth=n;f.m.overflow=e.modes.infinite?f.m.dynamicSlideWidth*Math.ceil(f.m.slideCount)*-2:0;f.m.firstPosition=f.m.overflow;f.m.lastPosition=f.m.overflow-f.m.dynamicSlideWidth*f.m.slideCount+f.m.dynamicSlideWidth;f.m.currentPosition=f.m.firstPosition-f.m.dynamicSlideWidth*f.m.activeIndex}},fact:{_transitionType:function(){for(var i=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=0;n<t.length;n+=1){if("undefined"!=typeof i.style[t[n]])return{prefix:t[n].replace("Perspective","").toLowerCase(),anim:"-"+t[n].replace("Perspective","").toLowerCase()+"-transform"};if(n===t.length-1)return{prefix:void 0,anim:"margin-left"}}},_heightRatio:function(n){var t=e.dimensions.maxHeight/e.dimensions.baseWidth*n,i=parseInt(e.dimensions.maxHeight);return e.dimensions.fixedHeight||t>i?i:t},_getSlideWidth:function(){return f.m.$viewport.width()/e.dimensions.slidesInFrame},calc:{left:function(n){var t=0;return e.modes.slide&&(t=!e.modes.infinite&&f.m.activeIndex<=0?f.m.lastPosition:f.m.currentPosition+f.m.dynamicSlideWidth*n),[t,!1]},right:function(n){var t=0;return e.modes.slide&&(t=!e.modes.infinite&&f.m.activeIndex>=f.m.slideCount-e.rotate.step?f.m.firstPosition:f.m.currentPosition-f.m.dynamicSlideWidth*n),[t,!0]},reset:function(){return[e.modes.slide?f.m.currentPosition:0,!0]}}},_errors:function(){f.m.isError=!0}},c:{async:{_loadIncrementor:0,_preload:function(){e.options.preload&&!f.m.browser.oldIe?f.m._configImg():f.c._ready()},_updateCheck:function(){this._loadIncrementor+=1;this._loadIncrementor===f.m.imgSrcArr.length&&f.c._ready()}},_configure:function(n){f.m._props(n);f.m.$slides.attr("data-totalslides",f.m.$slide.length);e.modes.slide&&e.modes.infinite&&!f.m.heroMode&&(f.m.modes.push("infinite"),n||(f.m.$slides.prepend(f.m.$slide.clone()),f.m.$slides.prepend(f.m.$slide.clone()),f.m.$slides.prepend(f.m.$slide.clone()),f.m.$slides.prepend(f.m.$slide.clone())));f.m.modes.push(e.modes.slide?"slide":"fade");f.m._dynamicCache();f.v._applyModes();f.c._fit();!e.controls.pager||f.m.heroMode||n||f.v.carousel._buildPager();f.v.carousel._toggleStepControls();f.v.carousel._togglePager();f.v.carousel._toggleMasks();f.v.carousel._togglePlayback();e.controls.pager&&f.v.carousel._setActivePager();f.c.autoScroll._intervalTimer()},_ready:function(){f.m.isError||(f.c._dynEvents(),f.m.defaults._apply(),f.v._setActive(),f.v._present(),f.v.carousel._setSlideVisibilty(),f.c.external._ready())},_staticEvents:function(){function i(){f.m.isAnimating=!1;f.c._responsive();f.m.autoDisabled=!1}var t;f.v.action._hover.enable();n(window).on(f.m.resEv,function(){f.m.$slides.stop();f.m.autoDisabled=!0;clearTimeout(t);f.c._responsive();t=setTimeout(i,100)})},_dynEvents:function(){f.m.$stepControls.off("click mouseenter mouseleave");e.controls.step&&(f.m.$stepControls.on({click:function(t){t.preventDefault();f.c._actionController(n(this).data("direction").toLowerCase(),!0)}}),e.modes.nudge&&f.m.$stepControls.on({mouseenter:function(){!f.m.isAnimating&&e.modes.slide&&f.c._nudge(n(this).data("direction").toLowerCase())},mouseleave:function(){!f.m.isAnimating&&e.modes.slide&&f.c._nudge(null)}}));f.m.$playbackControls.off("click");e.controls.playback&&f.m.$playbackControls.on({click:function(t){t.preventDefault();"stop"===n(this).data("playback")?(f.v.action._hover.disable(),f.m.autoDisabled=!0):(f.v.action._hover.enable(),f.m.autoDisabled=!1)}});e.controls.pager&&!f.m.heroMode&&f.m.$pagerContainer.children().on({click:function(t){var i=n(this).index();t.preventDefault();i!==f.m.activeIndex&&f.c._actionController(i,!0)}});e.options.touchControl&&"touch"in window&&f.m.trans.prefix&&!f.m.heroMode&&f.m.$slides.touch({threshold:100,swipeDirection:"horizontal",start:function(){f.m.$slides.css("-"+f.m.trans.prefix+"-transition-duration","0s")},right:function(){f.c._actionController("left",!0)},left:function(){f.c._actionController("right",!0)},moving:function(n){!f.m.isAnimating&&e.modes.slide&&f.v.action._move(n.x)},notReached:function(){e.modes.slide&&f.c._actionController(f.m.activeIndex,!0)}})},_actionController:function(n,t){function i(){f.m.isAnimating=!1;f.c.autoScroll._intervalTimer();f.c.external._end();e.options.visibleClassAfter&&f.v.carousel._setSlideVisibilty()}var r;f.m.isAnimating||(f.c.autoScroll._clearIntervalTimer(),f.m.isAnimating=!0,r=f.m.carousel._slideVals(n),f.c.external._start(),f.v.carousel._setActivePager(),e.options.visibleClassAfter||f.v.carousel._setSlideVisibilty(),f.m.currentPosition=r.newPosition,e.modes.slide?t?f.v.action._slide(f.m.currentPosition,function(){e.modes.infinite&&f.m.activeIndex+e.rotate.step>=f.m.slideCount&&(r.dir?f.m.currentPosition+=f.m.currentPosition+f.m.dynamicSlideWidth*f.m.slideCount>0?-1*f.m.dynamicSlideWidth*2*f.m.slideCount:f.m.dynamicSlideWidth*f.m.slideCount:f.m.currentPosition-=f.m.currentPosition-f.m.dynamicSlideWidth*f.m.slideCount<=-1*(f.m.dynamicSlideWidth*f.m.slideCount*f.m.divisor-f.m.dynamicSlideWidth)?-1*f.m.dynamicSlideWidth*f.m.slideCount:f.m.dynamicSlideWidth*f.m.slideCount,f.v.action._snap(f.m.currentPosition));i()}):(f.v.action._snap(f.m.currentPosition),i()):t?f.v.action._fade(i):(f.v.action._snap(f.m.currentPosition),f.v.action._show(i)));f.m.stateData.activeSlide=f.m.activeIndex;f.m.defaults._set()},_nudge:function(n){f.v.action._nudge(f.m.carousel._nudgeVals(n))},_fit:function(n){n=n||f.m.fact._getSlideWidth();e.options.heightControl&&f.v.dimensions._setHeight(n);f.v.dimensions._setWidth(n);e.modes.slide&&(f.m.carousel._sizingVals(n),f.v.action._snap(f.m.currentPosition));f.m.heroMode||f.v.dimensions._masks()},_responsive:function(){e.modes.responsive&&f.c._fit(f.m.fact._getSlideWidth())},autoScroll:{_intervalTimer:function(){e.rotate.auto&&!f.m.heroMode&&(f.c.autoScroll._clearIntervalTimer(),f.m.cycleTimer=setInterval(function(){f.m.autoDisabled||f.c._actionController(e.rotate.direction.toLowerCase(),!0)},e.rotate.interval))},_clearIntervalTimer:function(){clearInterval(f.m.cycleTimer)}},external:{_start:function(){e.onRotateStart(o.actionData)},_end:function(){e.onRotateEnd(o.actionData)},_ready:function(){e.onReady(o.actionData)}}},v:{carousel:{_toggleStepControls:function(){!f.m.heroMode&&e.controls.step?f.m.$stepControls.fadeIn(800):f.m.$stepControls.hide()},_setActivePager:function(){f.m.$pagerContainer.children().removeClass("active").removeAttr("aria-selected").eq(f.m.activeIndex).addClass("active").attr("aria-selected",!0)},_setSlideVisibilty:function(){var t=e.modes.slide?Math.abs(Math.round(f.m.currentPosition/f.m.dynamicSlideWidth)):f.m.activeIndex,n;for(f.m.$slide.removeClass("visible").find("a, button, input, select, textarea").attr("tabindex","-1"),n=0;n<e.dimensions.slidesInFrame;n+=1)f.m.$slide.eq(t+n).addClass("visible").find("a, button, input, select, textarea").attr("tabindex","0")},_buildPager:function(){for(var n=0;n<f.m.slideCount;n+=1)f.m.$pagerContainer.append('<button tabindex="0" role="tab" aria-label="Slide number '+(n+1)+'"/>');f.m.$pagerContainer.css({marginLeft:-(f.m.$pagerContainer.outerWidth()/2)})},_togglePager:function(){f.m.$pagerContainer.toggle(!f.m.heroMode&&e.controls.pager)},_replaceContent:function(n){f.m.$slides.html(n);f.m.$pagerContainer.empty()},_toggleMasks:function(){e.options.maskedOverflow?f.m.$masks.fadeIn(800):f.m.$masks.hide()},_togglePlayback:function(){e.controls.playback?f.m.$playbackControls.fadeIn(800):f.m.$playbackControls.hide()}},action:{_fade:function(t){f.m.$slides.children(".active").css("z-index",1);f.m.$slides.children().eq(f.m.activeIndex).css("z-index",2).fadeIn(e.rotate.duration,function(){var i=n(this);f.m.$slides.children(".active").css("z-index",0).fadeOut(e.rotate.duration,function(){n(this).removeClass("active");i.addClass("active")});t()})},_show:function(n){f.m.$slides.children().eq(0).hide();f.m.$slides.children().eq(f.m.activeIndex).css("z-index",2).show().addClass("active");n()},_slide:function(t,i){"undefined"==typeof f.m.trans.prefix?f.m.$slides.stop().animate({marginLeft:t},e.rotate.duration,f.m.algFct[e.rotate.type][1],i):f.m.$slides.css("-"+f.m.trans.prefix+"-transition-duration",e.rotate.duration/1e3+"s").css(f.m.trans.anim,"translate3d("+t+"px, 0, 0)").css("-"+f.m.trans.prefix+"-transition-timing-function",f.m.algFct[e.rotate.type][0]).on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){n(this).unbind("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend");i()})},_snap:function(n){"undefined"==typeof f.m.trans.prefix?f.m.$slides.css("margin-left",n):(f.m.$slides.css("-"+f.m.trans.prefix+"-transition-duration","0s"),f.m.$slides.css(f.m.trans.anim,"translate3d("+n+"px, 0, 0)"))},_move:function(n){f.m.$slides.css(f.m.trans.anim,"translate3d("+(f.m.currentPosition+n)+"px, 0, 0)")},_nudge:function(n){"undefined"==typeof f.m.trans.prefix?f.m.$slides.stop().animate({marginLeft:n},150,"linear"):f.m.$slides.css("-"+f.m.trans.prefix+"-transition-duration","0.15s").css(f.m.trans.anim,"translate3d("+n+"px, 0, 0)").css("-"+f.m.trans.prefix+"-transition-timing-function","cubic-bezier(0.250, 0.250, 0.750, 0.750)")},_hover:{enable:function(){f.m.$carousel.on({mouseenter:function(){f.m.autoDisabled=!0},mouseleave:function(){f.m.autoDisabled=!1}})},disable:function(){f.m.$carousel.off("mouseenter mouseleave")}}},_loading:function(){f.m.$loader.fadeIn(300)},_present:function(){f.m.$loader.fadeOut(600)},_applyModes:function(){f.m.$carousel.attr("data-modes","");f.m.$carousel.attr("data-modes",f.m.modes.join(" "))},_setActive:function(){f.m.$slide.eq(f.m.activeIndex).addClass("active")},dimensions:{_setHeight:function(n){f.m.$carousel.add(f.m.$slides).add(f.m.$slide).css("height",f.m.fact._heightRatio(n))},_setWidth:function(n){f.m.$slide.css("width",n)},_masks:function(){f.m.$masks.filter(".left").css({width:-1*f.m.overflow,marginLeft:f.m.overflow});f.m.$masks.filter(".right").css({width:-1*f.m.overflow,marginLeft:f.m.dynamicSlideWidth})}}}};this.fit=function(n){f.c._fit(n)};this.init=function(){f.m.$carousel.attr("data-mod-carousel-id",u);f.m._constr();f.m._stitch();f.m._staticCache();f.m.defaults._get();f.c._configure(!1);f.c._staticEvents();f.c.async._preload()}();this.update=function(n,i,r){var u=0,o=!0;r&&(e=t(e,r),r.options.setSlide>0&&(u=r.options.setSlide));n&&(f.v._loading(),f.v.carousel._replaceContent(n),f.m._dynamicCache(),o=!1);f.c._configure(o);f.c._dynEvents();(i||!e.modes.slide)&&f.c._actionController(u,!1);f.v._present()};this.rotate=function(n){f.c._actionController(n,!0)}};n.fn.modCarousel=function(t){return this.each(function(){void 0==n(this).data("modCarousel-"+i)&&n(this).data("modCarousel",new n.ModCarousel(this,t,i+=1))})}}(jQuery),function(n){function t(){function u(){var t=n(this),i=t.find(".slide").filter(".visible");t.find(".slide").children().attr("tabindex",-1);i.children().attr("tabindex",0)}function f(){function r(){i||t.data("carousel-animating",!0)}var t=n(this),i=t.hasClass("profile-selection"),f=i?t.data("slide-number"):1,o=i?216:"none";argus.helpers.initCarousels(t,!i,i,f,1,o,function(){i&&t.find(".slide").children().first().addClass("active");e(t)},r,r);i&&t.each(u)}function e(f){var o=f.filter(".profile-details"),e=f.filter(".profile-selection"),s=e.find(".slide");argus.helpers.toggleCarouselControls(f,!0);e.on("click",".inner",function(){var i=n(this);t===f.find(".inner").index(this)||f.data("carousel-animating")||(t=f.find(".inner").index(this),f.find(".slide").find(".active").removeClass("active"),i.addClass("active").siblings().removeClass("active"),i.closest(".mod-carousel").next().data("mod-carousel").rotate(t),argus.helpers.toggleCarouselControls(i.closest(".profiles").find(".profile-details"),!1))});e.find(".step").on("click",function(){var t=n(this),i=t.siblings(".pagination-controls").find("button.active");t.closest(".mod-carousel").find(".slide").children(".active").removeClass("active");t.data("direction")==="right"?i.next().trigger("click"):i.prev().trigger("click")});e.find(".pagination-controls").children().on("click",function(){s.eq(n(this).index()).children().first().trigger("click");argus.helpers.toggleCarouselControls(f,!1)});o.find(".step").on("click",function(){var s=n(this),c=s.closest(".mod-carousel").prev(),l=s.closest(".teams-carousel-container"),a=l.siblings(".profile-selection").find(".inner"),f=i.find(".profile-selection").filter(".mod-carousel"),e=f.find(".visible"),v=e.index(),h=s.data("direction");h==="right"&&(t+=1,e.length&&e.find(".active").length===0&&(f.data("mod-carousel").rotate(v+1),argus.helpers.toggleCarouselControls(f,!1)));h==="left"&&(t-=1,e.length&&e.find(".inner").eq(0).hasClass("active")&&(f.data("mod-carousel").rotate(v-1),argus.helpers.toggleCarouselControls(f,!1)));t===o.find(".slide").length&&(t=0);t===s.closest(".mod-carousel").prev().find(".visible").children().length&&c.find('[data-direction="'+h+'"]').trigger("click");a.length&&l.length&&a.removeClass("active").eq(t).addClass("active");c.find(".inner").removeClass("active").eq(t).addClass("active");argus.helpers.toggleCarouselControls(o,!1);clearTimeout(r);r=setTimeout(function(){f.each(u)},500)})}function o(){function s(r){var o=n(this),h,c,s,e;r.length&&(o=r);h=o.closest(".team-tabs").find(".selected-value");e=n("#"+o.data("tab-id"));c=e.find(".profile-selection").find(".inner");s=e.find(".mod-carousel");argus.cache.$window.width()<=argus.config.breakpoints.MOBILE&&i.removeClass("active").siblings(".teams-list").stop().slideUp(350);u.removeClass("current");o.addClass("current");a.stop().hide().css({visibility:"hidden"});h.html(o.find("span").html());e.stop().fadeIn(250,function(){t=0;s.find(".mask").remove();s.find(".step").off("click");s.each(f);e.find(".profile-selection").find(".viewport").each(toolkit.equalHeight);c.removeClass("active").eq(0).addClass("active");e.css({visibility:"visible"})})}function h(){var i=n(this),r=i.closest(".team-group"),u=r.find(".mod-carousel"),f=r.find(".profile-selection").find(".inner");t=i.index();i.hasClass("active")||(f.removeClass("active"),argus.helpers.toggleCarouselControls(u,!1),u.data("mod-carousel").rotate(i.index()),i.addClass("active"))}function c(){var t=n(this);if(t.hasClass("active")){t.removeClass("active").siblings(".teams-list").stop().slideUp(350);return}t.addClass("active").siblings(".teams-list").stop().slideDown(350)}function v(){argus.cache.$window.width()>argus.config.breakpoints.MOBILE?i.removeClass("active").siblings(".teams-list").css({display:"table"}):!i.hasClass("active")||argus.cache.$window.width()>argus.config.breakpoints.MOBILE?i.removeClass("active").siblings(".teams-list").css({display:""}):i.hasClass("active")&&argus.cache.$window.width()<=argus.config.breakpoints.MOBILE&&i.siblings(".teams-list").css({display:"block"})}function l(){argus.cache.$window.width()>argus.config.breakpoints.MOBILE?(e.each(toolkit.equalHeight),u.each(function(){var t=n(this);t.css({minHeight:t.closest("li").height()})})):(e.find("li").css({height:""}),u.css({minHeight:""}))}var r=n(this),e=r.find(".teams-list"),u=e.find(".team-type"),i=r.find(".tabs-select-button"),o=r.find(".profile-selection"),a=r.find(".team-group");s(u.eq(0));o.each(function(){n(this).find(".inner").eq(0).addClass("active")});o.find(".viewport").each(toolkit.equalHeight);l();toolkit.resizeTimer.push(function(){v();o.find(".viewport").each(toolkit.equalHeight);l()});u.off("click",s).on("click",s);r.find(".team-member").off("click",h).on("click",h);i.off("click",c).on("click",c)}var i=n(this),t=0,r;argus.cache.$window.width()>argus.config.breakpoints.MOBILE&&i.find(".mod-carousel").not(".teams-carousel").each(f);i.find(".read-more").each(argus.helpers.revealTruncatedText);n(".tabbed-profiles").each(o);argus.cache.$document.on("keyup",function(t){var r=i.find(".profile-details").filter(".profile-carousel"),h=argus.cache.$body.find(".team-group").filter(":visible").find(".profile-details").find(".active"),u=i.find(".profile-selection").find(".inner"),f=r.find(".next"),e=r.find(".prev"),o=h.find(".next"),s=h.find(".prev");n(t.target).closest(".profiles").length&&(u.is(t.target)&&t.which===argus.config.keys.ENTER&&n(t.target).trigger("click"),(o.is(":visible")||f.is(":visible")&&!argus.cache.$siteOverlay.hasClass("active")&&argus.helpers.elementWithinViewport(r))&&t.which===argus.config.keys.RIGHT&&(u.length&&u.filter(".active").focus(),o.is(":visible")&&o.trigger("click"),f.is(":visible")&&f.trigger("click")),(e.is(":visible")||s.is(":visible")&&!argus.cache.$siteOverlay.hasClass("active")&&argus.helpers.elementWithinViewport(r))&&t.which===argus.config.keys.LEFT&&(e.is(":visible")&&e.trigger("click"),s.is(":visible")&&s.trigger("click")))})}n(document).ready(function(){n(".profiles").each(t)})}(jQuery),function(n){function t(){var t=n(this),i=t.siblings(".content-holder").find(".inner"),r=t.closest(".listing-article")[0].clientHeight-(parseInt(i.css("padding-bottom"))+parseInt(i.find(".article-summary").css("margin-bottom")));t.css({height:""});t.addClass("transition-off").css({height:r})}function i(){var r=n(this),t=r.find(".listing-container"),i=r.find(".listing-article");i.length&&(t.css({width:""}),i.width(t.width()/3-parseInt(i.first().css("padding-left").replace(/[^-\d\.]/g,""))*2),argus.cache.$window.width()<argus.config.breakpoints.DESKTOP?t.css({width:t.width()}):t.css({width:""}))}function u(r,u,f){var o=r.closest(".listing"),s=r.closest(".news-listing"),l=Handlebars.compile(o.find(".listing-template").html()),h=parseInt(f.val()),e,c;argus.helpers.responseIsDefined(u)&&(r.append(l(u)),e=r.children(".accordion").length?r.children(".accordion"):r.children(".listing-article"),c=e.length,e.each(function(t){var i=n(this);t-=h;t%h==0&&i.addClass("first-article")}),s.length&&(e.find(".background").each(t),c%3==0&&r.append('<div class="row-break"><\/div>'),s.each(i)),o.find(".accordion").length&&r.find(".listing-article").last().each(argus.helpers.toggleAccordions))}function r(){function ei(t){var u=toolkit.serialise.url(f),e,o,i,r;f=window.location.search?window.location.search:window.location.hash;for(i in u)if(u.hasOwnProperty(i)&&i!=="page"){for(e=u[i].split(","),r=0;r<e.length;r+=1)o=n(".filter-dropdowns").find('[filter-type="'+i+'"]').find('[data-id="'+e[r]+'"]'),typeof o!="undefined"&&o.eq(0).prop("selected","selected").trigger("change");if(t)return u[i]}}function oi(n){var t={},i=l.data("back-to-results");return r.filter(".events-listing").not(".industry-events-listing").length&&(t.Upcoming=!0),r.hasClass("webinar-listing")&&(t.Upcoming=!1),r.find("#past-filter").is(":checked")?(t.Upcoming=!1,t.Past=!0):r.find("#upcoming-filter").is(":checked")&&(t.Upcoming=!0,t.Past=!1),(r.is(".report-listing.pa-search-listing")||a)&&(t.QueryStringSearch=ut.length&&ut.val()!==""?ut.val():f?ei(!0):""),ni.length&&(t.ApiLanguage=ni.val()),t.Page=e,t.ResultsPerPage=parseInt(rt.val()),argus.helpers.responseIsDefined(i)&&(t.EnableBackToResults=i),argus.helpers.responseIsDefined(n)&&(t.Tags=n),argus.helpers.responseIsDefined(g)&&(t.SearchItemTypes=g),t}function dt(n){if(n===0){w.hide();ht.stop().fadeIn(250);return}ct.text(n);w.hide();it.stop().fadeIn(250)}function si(){p.children("div").is(":visible")?p.removeClass("messages-hidden"):p.addClass("messages-hidden")}function nt(n){(c=!1,w.hide(),b.hide(),n.readyState!==0)&&(n.status===404?ht.stop().fadeIn(250):gt.stop().fadeIn(250),si(),l.removeClass("hidden"))}function et(){e=1;w.hide();r.find(".listing-article").add(r.find(".accordion")).remove()}function ai(){var t=n(this),i=t.find(".info-cell"),r=t.find(".toggle-listing-filters");i.length>lt&&(r.show(),i.addClass("hidden").slice(0,lt).removeClass("hidden"))}function vi(){var i=n(this),e=i.find(".button-label"),r=i.closest(".listing-item-filters"),o=r.find(".info-cell"),u,f;typeof i.data("toggle")!="undefined"&&(r=i.closest('[data-toggle="parent"]'));u=i.data("default-text");f=i.data("alt-text");r.hasClass("active")?(r.removeClass("active"),o.addClass("hidden").slice(0,lt).removeClass("hidden"),e.html(u),i.attr("title",u)):(r.addClass("active"),e.html(f),i.attr("title",f),o.removeClass("hidden"));st.find(".background").each(t)}function h(){function h(n,f,e){yt.push(setTimeout(function(){if(ht.is(":visible")||gt.is(":visible")){r.find(".listing-article").remove();return}u(t,f[n],rt);t.find(".content-loading").eq(-1).removeClass("content-loading").addClass("showing");t.find(".listing-item-filters").each(ai);r.hasClass("webinar-listing")&&t.find(".description").each(argus.helpers.multilineTruncate);i=l.find(".listing-article").length;i===e&&(s=!0)},n*200))}var t=a?r.find(".filter-content").eq(vt).children(".listing-container"):l,i=0;typeof ft!="undefined"&&ft.abort();c=!0;s?b.hide():b.show();!s&&c&&(ft=n.ajax({url:a?r.find(".filter-tab").eq(vt).data("api"):r.data("api"),method:"POST",data:o.length?oi(o):oi(),dataType:"json"}).done(function(n){function o(){e>1&&window.history.replaceState(null,document.title,"?page="+e)}var u=r.find(".listing-article"),i;if(!a&&n.TotalResults>0&&(toolkit.client.IE9&&typeof History!="undefined"?e>1&&History.pushState(null,document.title,"?page="+e):d?k.length||(v||f)&&(!f||v)||o():o()),!argus.helpers.responseIsDefined(n.Items)||!n.Items.length){c=!1;s=!0;b.hide();e===1&&dt(n.TotalResults);n.TotalResults===0&&e===1&&(dt(n.TotalResults),u.remove());return}if(e===1)for(i=0;i<yt.length;i+=1)u.remove(),clearTimeout(yt[i]);if(y.length&&ot(),argus.helpers.responseIsDefined(n.Items)||n.Items.length)for(it.is(":visible")||w.hide(),argus.helpers.responseIsDefined(n.TotalResults)&&dt(n.TotalResults),!s&&c&&(e+=1),setTimeout(function(){c=!1;b.hide();si()},n.Items.length*200),i=0;i<n.Items.length;i+=1)h(i,n.Items,n.TotalResults);else nt(n);t.find(".accordion.active").removeClass("active").children(".accordion-content").stop().slideUp(250);t.removeClass("hidden");wt=!1}).fail(nt))}function yi(){function lt(i){function u(i,r){var e=Handlebars.compile(t.find(".option-template").html()),f=[],u;for(r.find("option").slice(1).remove(),u=0;u<i.length;u+=1)f.push(e(i[u]));n(f.join("")).insertAfter(r.find("option").first());r.prop("disabled",!1);stylishForms.refresh(r)}var r=t.find('[filter-parent-id="'+i.attr("filter-id")+'"]');ci.stop().fadeIn(250);n.ajax({url:ct+i.find(":selected").val(),dataType:"json"}).done(function(t){if(argus.helpers.responseIsDefined(t)){if(w.hide(),t.length===0)r.prop("disabled",!0),stylishForms.refresh(r);else if(r.each(function(){u(t,n(this))}),wt&&typeof y!="undefined")for(var i=0;i<y.length;i+=1)a.find('option[data-id="'+y[i]+'"]').prop("selected","selected").trigger("change")}else nt(t)}).fail(nt)}function ft(){var n=i.data("default-text"),t=i.data("alt-text");p.toggleClass("active");p.hasClass("active")?(b.html(t),i.attr("title",t)):(b.html(n),i.attr("title",n))}function ot(){(argus.cache.$window.width()<=argus.config.breakpoints.MOBILE?c.length>1:c.length>3)?(i.closest(".more-filters").addClass("visible"),u.removeClass("single-col"),i.show()):(u.addClass("single-col"),i.hide().closest(".more-filters").removeClass("visible"),p.removeClass("active"),b.html(i.data("default-text")))}function vt(){var r=n(this),a=t.find(".selected-filters"),c=r.find(":selected"),y=r.attr("filter-id"),p=r.attr("filter-type"),w=a.find(".clear-selection--listing").filter('[data-filter-type="'+p+'"]'),u=c.val(),l=c.data("id"),b=r.data("enforce-single-select"),i={};s=!1;f=window.location.search?window.location.search:window.location.hash;typeof l!="undefined"&&(pt[l]=u);argus.helpers.responseIsDefined(y)&&y===ht&&lt(r);c.index()>0&&t.find('[data-active-filter="'+u+'"]').length===0&&(o.push(u),rt.stop().fadeIn(250),typeof b!="undefined"&&b&&w.length&&(bt=!0,w.click(),r.find("option").filter('[value="'+u+'"]').prop("selected",!0),stylishForms.refresh(r)),a.append('<button class="clear-selection filter clear-selection--listing" data-active-filter="'+u+'" data-id="'+l+'" data-filter-type="'+p+'"><span class="clear-ico"><\/span><span class="button-label">'+c.text()+"<\/span><\/button>"),et(),h(o),v=!0);d&&(k=!1,n(".selected-filters").find(".clear-selection--listing").each(function(){var r=n(this).data("id"),t=n(this).data("filter-type");typeof i[t]!="undefined"&&i.hasOwnProperty(t)?i[t]+=","+r:i[t]=r}),f&&typeof toolkit.serialise.url(f).page!="undefined"&&e>1&&(i.page=e),toolkit.client.IE9&&typeof History!="undefined"?History.pushState(null,document.title,"?"+toolkit.serialise.obj(i)):jQuery.isEmptyObject(i)?window.history.pushState(null,document.title,window.location.href.split("?")[0]):wt?window.history.replaceState(null,document.title,"?"+toolkit.serialise.obj(i)):window.history.pushState(null,document.title,"?"+toolkit.serialise.obj(i)))}function yt(){function u(){o.length===0&&rt.stop().fadeOut(250)}var i=n(this),r=i.data("active-filter"),e=t.find("option").filter('[value="'+r+'"]').closest(".selection");if(s=!1,i.hasClass("clear-all")){o=[];v=!1;c.each(function(){var t=n(this);t.find(".dropdown-option").first().trigger("click")});t.find(".clear-selection--listing").filter(".filter").remove();u();et();toolkit.client.IE9?window.location=window.location.href.split("#")[0]:d?f&&(typeof toolkit.serialise.url(f).page!="undefined"&&typeof toolkit.serialise.url(f).market!="undefined"||typeof toolkit.serialise.url(f).commodity!="undefined"||typeof toolkit.serialise.url(f).language!="undefined")&&window.history.replaceState(null,document.title,window.location.pathname):window.history.pushState(null,document.title,window.location.href.split("?")[0]);f="";h();return}o.splice(o.indexOf(r),1);i.remove();e.find(".dropdown-option").first().trigger("click");u();et();o.length||(v=!1);bt?bt=!1:(f="",h(o))}function dt(){var t=n(this);r.find(".radio-filter").prop("checked",!1);r.find(".radio-filter").prev().removeClass("checked");e=1;o=[];s=!1;g=null;h();t.hide()}function st(){var s=n(".listing-filters").find(".active-filters"),u=n(".filters-container").find(".selected-filters"),r={},i=[],f,t;if(toolkit.client.IE9&&!k){k=!0;return}(window.location.search||window.location.hash)&&(r=toolkit.client.IE9?toolkit.serialise.url(window.location.hash):toolkit.serialise.url(window.location.search));e=1;o=[];l.find(".accordion").remove();u.find("button").remove();s.show();for(f in r)if(r.hasOwnProperty(f))for(i=r[f].split(","),t=0;t<i.length;t+=1)o.push(pt[i[t]]),u.append('<button class="clear-selection filter clear-filter-listing" data-active-filter="'+pt[i[t]]+'" data-id="'+i[t]+'"><span class="clear-ico"><\/span><span class="button-label">'+i[t]+"<\/span><\/button>");u.find("button").length||s.hide();h()}var t=n(this),u=t.find(".filter-dropdowns"),p=u.find(".form-fields"),i=t.find(".toggle-filter-dropdowns"),b=i.find(".button-label"),c=t.find(".selection"),a=t.find(".get-options-select"),rt=t.find(".active-filters"),ht=a.attr("filter-parent-id"),ct=a.attr("api-url"),ut=u.find(".get-options-select").closest(".form-field").find('input[type="hidden"]').val(),y,k=!0,it;f&&typeof toolkit.serialise.url(f)[ut]!="undefined"&&(y=toolkit.serialise.url(f)[ut].split(","));ot();toolkit.resizeTimer.push(function(){ot()});i.off("click",ft).on("click",ft);a.each(function(){var t=n(this);t.prop("disabled",t.find("option").length<2)});c.find("select").on("change",vt);t.on("click",".clear-selection--listing",yt);t.on("click",".clear-selection--search",dt);f.indexOf("language")===-1&&argus.helpers.isDefined(ii)&&ii!==""&&argus.helpers.isDefined(at)&&at!==""&&li.length&&(kt=argus.helpers.languageMapping(at,r),argus.helpers.isDefined(kt)&&(it=tt.find('[filter-type="language"]').children().filter('[value="'+kt+'"]').data("id"),fi=!0,f=f!==""&&f.length>=1?window.location.search+"&language="+it:"?language="+it,window.history.replaceState(null,document.title,f),e=1));(window.location.search||window.location.hash)&&d&&ei();window.onpopstate=st;toolkit.client.IE9&&d&&(window.onhashchange=st)}function ot(){y.removeClass("visible clicked").removeAttr("style");setTimeout(function(){y.removeClass("fixed-position")},100)}function hi(t){var u,o,p,s,w,g=l.offset().top+l.outerHeight()-argus.cache.$window[0].innerHeight,d=argus.cache.$window.width()<=argus.config.breakpoints.MOBILE?argus.config.offsetDimensions.MAX_OFFSET_TOP_MOBILE:argus.config.offsetDimensions.MAX_OFFSET_TOP_DESKTOP,b,i=0,e;clearTimeout(ri);ri=setTimeout(function(){function nt(n){var i=n.offset().top,r=n.outerHeight(),f=i+r;return f-r*(u.length>2?.25:0)>t&&i<t+.5*argus.cache.$window.height()}function l(){var t;f=window.location.search;p.each(function(u){nt(n(this))&&(i=u+1,a||(toolkit.client.IE9&&typeof History!="undefined"?History.pushState(null,document.title,i>1?"?page="+i:window.location.pathname):v&&f!==""&&typeof f!="undefined"?(t=toolkit.serialise.url(f),i>1?t.page=i:typeof t.page!="undefined"&&delete t.page,window.history.replaceState(null,document.title,"?"+n.param(t))):r.hasClass("report-listing")?k.length||(v||f)&&(!f||v)||window.history.replaceState(null,document.title,i>1?"?page="+i:window.location.pathname):window.history.replaceState(null,document.title,i>1?"?page="+i:window.location.pathname)))})}if(u=r.find(".showing"),o=u.parent(".accordion"),s=o.length?o.last():u.last(),w=s.prev(),p=o.length?o.filter(".first-article"):u.filter(".first-article"),b=u.length>parseInt(rt.val()),t===0&&ot(),t<ui?(t<=g&&t>r.offset().top?y.addClass("visible fixed-position").css({right:(argus.cache.$window.width()-r.find(".wrapper").first().width())/2}):t<=r.offset().top&&ot(),e=(window.location.search||window.location.hash)&&window.location.search.indexOf("page")>-1||window.location.hash.indexOf("page")>-1?window.location.search?toolkit.serialise.url(window.location.search).page:toolkit.serialise.url(window.location.hash).page:1,(b&&t<p.prevAll(".first-article").first().offset().top||parseInt(e)<parseInt(i))&&l()):(u.length>=rt.val()/2&&s.length&&w.length&&w.offset().top-t<d-ti&&y.addClass("visible").removeClass("fixed-position clicked").removeAttr("style"),e=(window.location.search||window.location.hash)&&window.location.search.indexOf("page")>-1||window.location.hash.indexOf("page")>-1?window.location.search?toolkit.serialise.url(window.location.search).page:toolkit.serialise.url(window.location.hash).page:1,(!c&&u.length===parseInt(ct.text())&&b||e>parseInt(i))&&l()),s.length&&u.length<parseInt(ct.text())){if(c)return;s.offset().top-t<d&&h()}ui=t},25)}function pi(t){var r=n(t.currentTarget),i=new XMLHttpRequest;t.preventDefault();i.open("GET",r.attr("href"),!0);i.responseType="blob";i.onload=function(){if(i.status===200){var r=i.response,u=i.getResponseHeader("content-disposition").split("filename=")[1].replace(/"/g,""),n,t;navigator.msSaveBlob?navigator.msSaveBlob(r,u):toolkit.client.Firefox&&(t=window.URL.createObjectURL(r),n=document.createElement("a"),n.href=t,n.target="_blank",n.download=u,document.body.appendChild(n),n.click(),setTimeout(function(){URL.revokeObjectURL(t);n.remove()},100))}};i.send()}var r=n(this),tt=r.find(".listing-filters").length?r.find(".listing-filters"):r.closest("#main").find(".listing-filters"),l=r.find(".listing-container"),st=r.filter(".news-listing"),y=r.find(".back-to-top-fixed"),p=r.find(".status-messages"),w=p.children("div"),gt=p.find(".general-error"),ht=p.find(".no-results-found"),it=r.find(".total-results"),ct=it.find(".results-count"),b=r.find(".listing-loader"),ci=r.find(".filters-loader"),rt=r.find(".results-per-page"),ni=r.find(".culture-language"),lt=r.find(".max-tags-to-display").val(),k=r.siblings(".report-search-panel"),ut=k.find(".search").find("input"),li=n(".filter-dropdowns").find('[filter-type="language"]'),a=r.hasClass("global-search-listing"),ti=y.innerHeight(),f=window.location.search?window.location.search:window.location.hash,e=f&&!a?parseInt(toolkit.serialise.url(f).page):1,d=r.hasClass("update-listing-from-url"),ii=argus.cache.$body.find('[name="TaxonomyLanguageCodeMappings"]').val(),at=argus.cache.$body.find("#language-selector").find(".selected").data("site-language-id"),ri=0,ui=0,vt=0,o=[],yt=[],g,pt={},c=!1,s=!1,v=!1,wt=!1,bt=!1,fi=!1,kt,ft;tt.each(yi);r.find(".tabs").each(argus.helpers.tabbedContent);a&&argus.cache.$window.width()<=argus.config.breakpoints.MOBILE&&r.find(".filter-buttons").each(argus.helpers.toggleAccordions);a||f===""||typeof f=="undefined"||(e=toolkit.client.IE9?parseInt(toolkit.serialise.url(f.split("/")[1]).page):parseInt(toolkit.serialise.url(f).page),isNaN(e)&&(e=1));fi||h();toolkit.resizeTimer.push(function(){st.each(i);st.find(".background").each(t);hi()});r.on("click",".toggle-listing-filters",vi);if(toolkit.client.IE||toolkit.client.Firefox)r.on("click","[download]",pi);y.on("click",function(){ot();n(this).addClass("clicked");argus.cache.$body.add(argus.cache.$html).animate({scrollTop:tt.length?tt.offset().top:r.offset().top-ti*2},250)});r.find(".past-upcoming-filters").find('input[type="radio"]').on("change",function(){s=!1;et();h()});r.find(".radio-filter").on("change",function(){var t=n(this),i=t.val();e=1;r.find(".listing-article").remove();s=!1;g=i;ft=n.ajax({url:t.closest(".form-fields").data("api")+g,dataType:"json"}).done(function(n){argus.helpers.responseIsDefined(n)&&h()}).fail(nt);r.find(".clear-selection--search").show()});r.find(".filter-tab").on("click",function(){vt=n(this).data("tab-id");e=1;s=!1;it.hide();h()});ut.on({blur:argus.helpers.searchValidation,keypress:argus.helpers.searchValidation});k.find(".pa-code-search").on("click",function(t){var i={},r=n(this).closest(".search").find("input");if(t.preventDefault(),r.val()===""||!r.val().replace(/\s/g,"").length){k.find(".err-msgs").fadeIn("slow");return}s=!1;i.q=r.val();toolkit.client.IE9&&typeof History!="undefined"?History.pushState(null,document.title,"?"+toolkit.serialise.obj(i)):jQuery.isEmptyObject(i)?window.history.pushState(null,document.title,window.location.href.split("?")[0]):window.history.pushState(null,document.title,"?"+toolkit.serialise.obj(i));l.find(".accordion").remove();e=1;h()});argus.cache.$window.on({scroll:function(){var t=n(this).scrollTop();r.find(".listing-article").length&&hi(t)}});(function(){function r(){c||h()}var i=n(".listing").nextAll(":visible").length?n(".listing").nextAll(":visible"):n("main").nextAll(":visible"),t;t=new IntersectionObserver(r,{threshold:.1});t.observe(i[0])})()}n(document).ready(function(){toolkit.client.IE9?argus.boot.loadScript("jquery-history.js","global",function(){n(".listing").each(r)}):n(".listing").each(r)})}(jQuery)