/* npm.im/object-fit-images 3.2.4 */ 'use strict';var aniGlobal=aniGlobal||{};"use strict"; (function(){(function(c){var h=void 0===c.firstLoad;c.firstLoad=!1;return h})(aniGlobal)&&(aniGlobal.objectFitImages=function(){function c(a){if(a.srcset&&!y&&window.picturefill){var b=window.picturefill._;a[b.ns]&&a[b.ns].evaled||b.fillImg(a,{reselect:!0});a[b.ns].curSrc||(a[b.ns].supported=!1,b.fillImg(a,{reselect:!0}));a.currentSrc=a[b.ns].curSrc||a.src}}function h(a){for(var b=getComputedStyle(a).fontFamily,d={};null!==(a=x.exec(b));)d[a[1]]=a[2];return d}function m(a,b,d){b="data:image/svg+xml,%3Csvg xmlns\x3d'http://www.w3.org/2000/svg' width\x3d'"+ (b||1)+"' height\x3d'"+(d||0)+"'%3E%3C/svg%3E";v.call(a,"src")!==b&&f.call(a,"src",b)}function k(a,b){a.naturalWidth?b(a):setTimeout(k,100,a,b)}function g(a){var b=h(a),d=a[p];if(b["object-fit"]=b["object-fit"]||"fill",!d.img)if("fill"===b["object-fit"]||!d.skipTest&&w&&!b["object-position"])return;if(!d.img){d.img=new Image(a.width,a.height);d.img.srcset=v.call(a,"data-ofi-srcset")||a.srcset;d.img.src=v.call(a,"data-ofi-src")||a.src;f.call(a,"data-ofi-src",a.src);a.srcset&&f.call(a,"data-ofi-srcset", a.srcset);m(a,a.naturalWidth||a.width,a.naturalHeight||a.height);a.srcset&&(a.srcset="");try{t(a)}catch(q){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}c(d.img);a.style.backgroundImage='url("'+(d.img.currentSrc||d.img.src||"").toString().replace(/"/g,'\\"')+'")';a.style.backgroundPosition=b["object-position"]||"center";a.style.backgroundRepeat="no-repeat";a.style.backgroundOrigin="content-box";/scale-down/.test(b["object-fit"])?k(d.img,function(){d.img.naturalWidth>a.width||d.img.naturalHeight> a.height?a.style.backgroundSize="contain":a.style.backgroundSize="auto"}):a.style.backgroundSize=b["object-fit"].replace("none","auto").replace("fill","100% 100%");k(d.img,function(q){m(a,q.naturalWidth,q.naturalHeight)})}function t(a){var b={get:function(d){return a[p].img[d?d:"src"]},set:function(d,q){return a[p].img[q?q:"src"]=d,f.call(a,"data-ofi-"+q,d),g(a),d}};Object.defineProperty(a,"src",b);Object.defineProperty(a,"currentSrc",{get:function(){return b.get("currentSrc")}});Object.defineProperty(a, "srcset",{get:function(){return b.get("srcset")},set:function(d){return b.set(d,"srcset")}})}function r(a,b){var d=!n&&!a;if(b=b||{},a=a||"img",l&&!b.skipTest||!A)return!1;"img"===a?a=document.getElementsByTagName("img"):"string"==typeof a?a=document.querySelectorAll(a):"length"in a||(a=[a]);for(var q=0;qc.top&&c.bottom>window.innerHeight)return!0},checkElementInView:function(c){c=c.getBoundingClientRect(); return 0<=c.top&&0<=c.left&&c.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&c.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(c,h){c=document.querySelector(".".concat(c)).getBoundingClientRect();void 0===h&&(h=1);return 0>c.top?!0:0<=c.top&&0<=c.left&&c.bottom-c.height*h<=(window.innerHeight||document.documentElement.clientHeight)&&c.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility=function(){return{debounce:function(c, h,m){var k;return function(){var g=this,t=arguments,r=m&&!k;clearTimeout(k);k=setTimeout(function(){k=null;m||c.apply(g,t)},h);r&&c.apply(g,t)}}}}())})();var aniCommon=aniCommon||{};"use strict"; (function(){(function(c){var h=void 0===c.firstLoad;c.firstLoad=!1;return h})(aniCommon)&&(aniCommon.utility=function(){return{delayCall:function(c,h){var m;return function(){clearTimeout(m);m=setTimeout(c,h)}},reducedAnimation:function(){aniCommon.isReducedAnimation=window.matchMedia("(prefers-reduced-motion)").matches;!0===aniCommon.isReducedAnimation?$("body").addClass("animation-off"):$("body").addClass("animation-on");return aniCommon.isReducedAnimation}}}(),aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation(), window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",()=>{aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation()}))})();var aniScroll=aniScroll||{};"use strict"; (function(){var c;function h(){setTimeout(function(){function f(b){a={threshold:.01,rootMargin:"0px 0px 0px 0px",root:null};""!==$(b).attr("data-threshold")&&null!==$(b).attr("data-threshold")&&void 0!==$(b).attr("data-threshold")&&(a.threshold=+$(b).attr("data-threshold"));(new window.IntersectionObserver(function(d,q){d.forEach(function(e){if(e.isIntersecting){if(!$(e.target).attr("data-s-wdg-toreset")&&$(e.target).hasClass("animate-position")){$(e.target).attr("data-s-wdg-toreset",n);l[n]={};var C= $(e.target).offset().top,D=C+$(e.target).height(),z=getComputedStyle($(e.target)[0]).transform;"none"===z?u=z=0:(z=parseFloat(getComputedStyle($(e.target)[0]).transform.split(",")[5]),u=parseFloat(getComputedStyle($(e.target)[0]).transform.split(",")[4]));var B=parseInt($(e.target).attr("data-s-wdg"));B=$(window).height()*(-1*B/100)+z;l[n].top=C;l[n].bottom=D;l[n].originaltransform=z;l[n].originalleft=u;l[n].belowadjust=B;n++}-1w&&-100l[f].bottom&&$(this).css("transform","translate3d("+l[f].originalleft+"px,"+l[f].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset");$(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown"); $(this).removeClass("Aniscroll")}})}if(function(f){var n=void 0===f.firstLoad;f.firstLoad=!1;return n}(aniScroll)){var g,t,r,p,x,u,w,l,A;var y=c=void 0;y=c=0;var v=void 0;v=0;$(window).on("load scroll",function(){setTimeout(function(){m()},0)});$(document).on("keyup",function(f){m()});window.addEventListener("resize",aniCommon.utility.delayCall(function(){$(".s-wdgItem").removeAttr("style");$(".s-wdgItem").removeClass("s-wdgItem");$(".fadehiddenOffscreen").removeClass("fadehiddenOffscreen");$(".s-wdgActive").removeClass("s-wdgActive"); $(".s-wdgToReset").removeClass("s-wdgToReset");$("[data-s-wdg-toreset]").removeAttr("data-s-wdg-toreset");l={};h()},500));h()}})();var VSdesktopSrc=$("video.video-showcase-video").attr("desktop-src"),VSdesktopPoster=$("video.video-showcase-video").attr("desktop-poster"),VSmobileSrc=$("video.video-showcase-video").attr("mobile-src"),VSmobilePoster=$("video.video-showcase-video").attr("mobile-poster"),VSmobileWidth=800,VSmodVideo=$(".video-showcase .m-ambient-video video");VSCheckForWindowWidth(); 0VSmobileWidth&&($(this).attr("src")!==VSdesktopSrc||$(this).attr("poster")!==VSdesktopPoster)&& VSChangeAmbientVideoSrc(VSdesktopSrc,VSdesktopPoster,c)})}function VSChangeAmbientVideoSrc(c,h,m){var k=$("video.video-showcase-video");k.attr("src",c);k.attr("poster",h);m?(k.attr("autoplay",!0),k.attr("playsinline",!0)):(k.removeAttr("autoplay"),k.removeAttr("playsinline"))} document.addEventListener("DOMContentLoaded",function(){setTimeout(function(){var c=[].slice.call(document.querySelectorAll(".video-showcase-lazyload"));if("IntersectionObserver"in window){var h=new window.IntersectionObserver(function(m,k){m.forEach(function(g){if(g.isIntersecting){var t=g.target.getAttribute("mobile-src"),r=g.target.getAttribute("mobile-poster"),p=g.target.getAttribute("desktop-src"),x=g.target.getAttribute("desktop-poster");$(window).width()<=VSmobileWidth&&g.target.src!=t?(g.target.src= t,g.target.poster=r):$(window).width()>VSmobileWidth&&g.target.src!=p&&(g.target.src=p,g.target.poster=x);aniCommon.isReducedAnimation||$("body").hasClass("animation-off")?g.target.classList.remove("auto-video-play"):g.target.autoplay=!0;g.target.load();g.target.classList.remove("video-showcase-lazyload");h.unobserve(g.target)}})});c.forEach(function(m){h.observe(m)})}},0)});