/* npm.im/object-fit-images 3.2.4 */ 'use strict';var aniGlobal=aniGlobal||{};"use strict"; (function(){(function(b){var f=void 0===b.firstLoad;b.firstLoad=!1;return f})(aniGlobal)&&(aniGlobal.objectFitImages=function(){function b(a){if(a.srcset&&!C&&window.picturefill){var c=window.picturefill._;a[c.ns]&&a[c.ns].evaled||c.fillImg(a,{reselect:!0});a[c.ns].curSrc||(a[c.ns].supported=!1,c.fillImg(a,{reselect:!0}));a.currentSrc=a[c.ns].curSrc||a.src}}function f(a){for(var c=getComputedStyle(a).fontFamily,g={};null!==(a=p.exec(c));)g[a[1]]=a[2];return g}function e(a,c,g){c="data:image/svg+xml,%3Csvg xmlns\x3d'http://www.w3.org/2000/svg' width\x3d'"+ (c||1)+"' height\x3d'"+(g||0)+"'%3E%3C/svg%3E";z.call(a,"src")!==c&&y.call(a,"src",c)}function m(a,c){a.naturalWidth?c(a):setTimeout(m,100,a,c)}function n(a){var c=f(a),g=a[l];if(c["object-fit"]=c["object-fit"]||"fill",!g.img)if("fill"===c["object-fit"]||!g.skipTest&&t&&!c["object-position"])return;if(!g.img){g.img=new Image(a.width,a.height);g.img.srcset=z.call(a,"data-ofi-srcset")||a.srcset;g.img.src=z.call(a,"data-ofi-src")||a.src;y.call(a,"data-ofi-src",a.src);a.srcset&&y.call(a,"data-ofi-srcset", a.srcset);e(a,a.naturalWidth||a.width,a.naturalHeight||a.height);a.srcset&&(a.srcset="");try{k(a)}catch(r){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}b(g.img);a.style.backgroundImage='url("'+(g.img.currentSrc||g.img.src||"").toString().replace(/"/g,'\\"')+'")';a.style.backgroundPosition=c["object-position"]||"center";a.style.backgroundRepeat="no-repeat";a.style.backgroundOrigin="content-box";/scale-down/.test(c["object-fit"])?m(g.img,function(){g.img.naturalWidth>a.width||g.img.naturalHeight> a.height?a.style.backgroundSize="contain":a.style.backgroundSize="auto"}):a.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%");m(g.img,function(r){e(a,r.naturalWidth,r.naturalHeight)})}function k(a){var c={get:function(g){return a[l].img[g?g:"src"]},set:function(g,r){return a[l].img[r?r:"src"]=g,y.call(a,"data-ofi-"+r,g),n(a),g}};Object.defineProperty(a,"src",c);Object.defineProperty(a,"currentSrc",{get:function(){return c.get("currentSrc")}});Object.defineProperty(a, "srcset",{get:function(){return c.get("srcset")},set:function(g){return c.set(g,"srcset")}})}function d(a,c){var g=!x&&!a;if(c=c||{},a=a||"img",A&&!c.skipTest||!u)return!1;"img"===a?a=document.getElementsByTagName("img"):"string"==typeof a?a=document.querySelectorAll(a):"length"in a||(a=[a]);for(var r=0;rb.top&&b.bottom>window.innerHeight)return!0},checkElementInView:function(b){b= b.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(b,f){b=document.querySelector(".".concat(b)).getBoundingClientRect();void 0===f&&(f=1);return 0>b.top?!0:0<=b.top&&0<=b.left&&b.bottom-b.height*f<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility= function(){return{debounce:function(b,f,e){var m;return function(){var n=this,k=arguments,d=e&&!m;clearTimeout(m);m=setTimeout(function(){m=null;e||b.apply(n,k)},f);d&&b.apply(n,k)}}}}(),aniGlobal.lineAnimation=function(){return{langSupported:function(){var b=document.querySelector("html").getAttribute("lang");return"ja-jp"==b||"zh-hk"==b||"zh-cn"==b||"zh-tw"==b?!1:!0},lineBreakText:function(b){for(var f=b.length,e=0;en&&(d.innerHTML=d.innerHTML.slice(0,d.innerHTML.length-p.length),d=document.createElement(b[e].tagName),d.style.margin="0",d.style.padding="0",d.classList.add("animate-text"),b[e].classList.contains("currently-focused")&&d.classList.add("currently-focused"),k.appendChild(d),d.innerHTML+=p)}b[e].parentElement.removeChild(b[e])}},revertLineBreakText:function(b){for(var f=0;fa.width||g.img.naturalHeight> a.height?a.style.backgroundSize="contain":a.style.backgroundSize="auto"}):a.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%");m(g.img,function(r){e(a,r.naturalWidth,r.naturalHeight)})}function k(a){var c={get:function(g){return a[l].img[g?g:"src"]},set:function(g,r){return a[l].img[r?r:"src"]=g,y.call(a,"data-ofi-"+r,g),n(a),g}};Object.defineProperty(a,"src",c);Object.defineProperty(a,"currentSrc",{get:function(){return c.get("currentSrc")}});Object.defineProperty(a, "srcset",{get:function(){return c.get("srcset")},set:function(g){return c.set(g,"srcset")}})}function d(a,c){var g=!x&&!a;if(c=c||{},a=a||"img",A&&!c.skipTest||!u)return!1;"img"===a?a=document.getElementsByTagName("img"):"string"==typeof a?a=document.querySelectorAll(a):"length"in a||(a=[a]);for(var r=0;rb.top&&b.bottom>window.innerHeight)return!0},checkElementInView:function(b){b= b.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(b,f){b=document.querySelector(".".concat(b)).getBoundingClientRect();void 0===f&&(f=1);return 0>b.top?!0:0<=b.top&&0<=b.left&&b.bottom-b.height*f<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility= function(){return{debounce:function(b,f,e){var m;return function(){var n=this,k=arguments,d=e&&!m;clearTimeout(m);m=setTimeout(function(){m=null;e||b.apply(n,k)},f);d&&b.apply(n,k)}}}}(),aniGlobal.lineAnimation=function(){return{langSupported:function(){var b=document.querySelector("html").getAttribute("lang");return"ja-jp"==b||"zh-hk"==b||"zh-cn"==b||"zh-tw"==b?!1:!0},lineBreakText:function(b){for(var f=b.length,e=0;en&&(d.innerHTML=d.innerHTML.slice(0,d.innerHTML.length-p.length),d=document.createElement(b[e].tagName),d.style.margin="0",d.style.padding="0",d.classList.add("animate-text"),b[e].classList.contains("currently-focused")&&d.classList.add("currently-focused"),k.appendChild(d),d.innerHTML+=p)}b[e].parentElement.removeChild(b[e])}},revertLineBreakText:function(b){for(var f=0;f>>0,m=Array(e),n=0,k=-1;if(void 0===f)for(;++k!==e;){if(k in this){var d=this[k];b(this[k],k,this)&&(m[n++]=d)}}else for(;++k!==e;)k in this&&(d=this[k],b.call(f,this[k],k,this)&&(m[n++]=d));m.length=n;return m}); Array.from||(Array.from=function(){var b=Object.prototype.toString,f=function(m){return"function"===typeof m||"[object Function]"===b.call(m)},e=Math.pow(2,53)-1;return function(m){var n=Object(m);if(null==m)throw new TypeError("Array.from requires an array-like object - not null or undefined");var k=1this.length?!1:-1!==this.indexOf(b,f)});var aniCommon=aniCommon||{};"use strict"; (function(){(function(b){var f=void 0===b.firstLoad;b.firstLoad=!1;return f})(aniCommon)&&(aniCommon.utility=function(){return{delayCall:function(b,f){var e;return function(){clearTimeout(e);e=setTimeout(b,f)}},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(){function b(){setTimeout(function(){p={};$("[data-s-wdg]").addClass("s-wdgItem");$("[data-s-wdg*\x3d'#']").addClass("fadehiddenOffscreen");$("body").append("\x3cstyle\x3e.fadehiddenOffscreen {opacity:0;}\x3c/style\x3e");v=document.querySelectorAll(".s-wdgItem");var u=1,C=new window.IntersectionObserver(function(z,y){z.forEach(function(x){if(x.isIntersecting){if(!$(x.target).attr("data-s-wdg-toreset")&&$(x.target).hasClass("animate-position")){$(x.target).attr("data-s-wdg-toreset",u);p[u]= {};var a=$(x.target).offset().top,c=a+$(x.target).height(),g=getComputedStyle($(x.target)[0]).transform;"none"===g?d=g=0:(g=parseFloat(getComputedStyle($(x.target)[0]).transform.split(",")[5]),d=parseFloat(getComputedStyle($(x.target)[0]).transform.split(",")[4]));var r=parseInt($(x.target).attr("data-s-wdg"));r=$(window).height()*(-1*r/100)+g;p[u].top=a;p[u].bottom=c;p[u].originaltransform=g;p[u].originalleft=d;p[u].belowadjust=r;u++}-1l&&-100p[u].bottom&&$(this).css("transform","translate3d("+p[u].originalleft+"px,"+p[u].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset");$(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown");$(this).removeClass("Aniscroll")}})}if(function(u){var C=void 0===u.firstLoad;u.firstLoad=!1;return C}(aniScroll)){var e,m,n,k,d,l,p,v,t={top:0, dead:0,bottom:0},A={top:0,dead:0,bottom:0};$(window).on("load scroll",function(){if(0<$(".s-wdgActive").length||0<$(".s-wdgToReset").length)e=void 0===m?$(window).scrollTop():m,m=$(window).scrollTop(),l=m-e,n=$(window).height(),k=n/3,t.top=$(window).scrollTop(),t.dead=$(window).scrollTop()+k,t.bottom=$(window).scrollTop()+180+k,A.top=$(window).scrollTop()+n-180-k,A.dead=$(window).scrollTop()+n-180,A.bottom=$(window).scrollTop()+n,f()});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");p={};b()},500));b()}})();"use strict"; $(document).ready(function(){function b(h,q){1===q&&(t=0,clearInterval(A));if(0==t){t=1;k(h);var w=1}A=setInterval(function(){C&&(99w?$("div.progress-bar")[w].style.width="100%":$("div.progress-bar")[w].style.width="0%"});0===h?$("div.progress-bar")[0].style.width="100%":h===r&&"prev"===q&&($("div.progress-bar")[r-1].style.width="100%")}function m(h,q){var w=$(h).find("section.f-active").index();if("prev"===q){var F=1w&&$(window).scrollTop()$(this).height()?u:$(this).height();q||($(this).addClass("f-hidden"),q=!0)});$(h).height(u)}var t=0,A,u=-1,C=!1,z=$(".auto-play-carousel").attr("auto-play-interval"), y=z?parseInt(z):50,x,a=$(".auto-play-prev-arrow"),c=$(".auto-play-next-arrow"),g=$(".auto-play-carousel div.auto-play-highlight-card"),r=$(g).find(".card").length,B=$(".auto-play-carousel .auto-play-copy-segment .auto-play-controls span");const E=document.querySelector(".auto-play-carousel .auto-play-controls \x3e button");$(E).on("click",function(){$(E).toggleClass("glyph-pause glyph-play");$(E).attr("aria-pressed","true"==$(E).attr("aria-pressed")?"false":"true")});(function(){var h=document.querySelector(".auto-play-carousel .auto-play-copy-segment .auto-play-controls .c-action-toggle"); $(h).on("focusin mouseenter",function(){null!==$(B)&&$(B).addClass("play__tooltip--show")});$(h).on("focusout mouseleave",function(){null!==$(B)&&$(B).removeClass("play__tooltip--show")})})();(function(){var h=document.querySelector(".auto-play-carousel .auto-play-copy-segment .auto-play-arrow .f-previous"),q=$(".auto-play-carousel .auto-play-copy-segment .auto-play-arrow span.previousFlipperToolTip");$(h).on("focusin mouseenter click",function(){null!==$(q)&&$(q).addClass("flipper__tooltip--show")}); $(h).on("focusout mouseleave click",function(){null!==$(q)&&$(q).removeClass("flipper__tooltip--show")});h=document.querySelector(".auto-play-carousel .auto-play-copy-segment .auto-play-arrow .f-next");var w=$(".auto-play-carousel .auto-play-copy-segment .auto-play-arrow span.nextFlipperToolTip");$(h).on("focusin mouseenter click",function(){null!==$(w)&&$(w).addClass("flipper__tooltip--show")});$(h).on("focusout mouseleave click",function(){null!==$(w)&&$(w).removeClass("flipper__tooltip--show")})})(); setTimeout(v(".auto-play-carousel .card"),500);$(a).on("click",function(){m(g,"prev");l();p()});$(c).on("click",function(){m(g,"next");l();p()});(()=>{const h=$(g).find("section.card"),q=h.length;h.each(function(w){var F=$(this).attr("aria-label");F?$(this).attr("aria-label",F):$(this).attr("aria-label",`slide ${w+1} of ${q}`)})})();const G=h=>{$(E).attr("data-bi-hn",h);$(E).attr("data-bi-ehn",h);a.attr("data-bi-hn",h);a.attr("data-bi-ehn",h);c.attr("data-bi-ehn",h);c.attr("data-bi-hn",h)};$("div.auto-play-controls button").on("click keydown", function(h){if("click"===h.type)if(C=!C,h=$(".autoplaycarousel button.c-action-toggle"),x=C,$(B).attr("data-pause-label"),$(B).attr("data-play-label"),x){var q=$(B).attr("data-pause-label");$(B).html(q);h.attr("data-bi-cn",q);h.attr("data-bi-ecn",q);h.attr("aria-label",q)}else q=$(B).attr("data-play-label"),$(B).html(q),h.attr("data-bi-cn",q),h.attr("data-bi-ecn",q),h.attr("aria-label",q)});window.onload=function(){$("div.auto-play-controls button.c-action-toggle.c-glyph.f-toggle.glyph-play").click(); $(g).find("section.f-active.card").attr("tabindex","0");const h=$(g).find("section.f-active .c-heading-3").html();G(h);setTimeout(v(".auto-play-carousel .card"),500);p()};aniGlobal.panelInView.checkPanelInView("auto-play-carousel")?(d(),b(0)):(window.addEventListener("scroll",d),window.addEventListener("scroll",b(0)));$(document).on("click",".c-pivot .pi-page-bar a[role\x3d'tab']",function(){f();if(0===$(".auto-play-carousel .card.f-active").height()||1===$(".auto-play-carousel .card.f-active").height())v(".auto-play-carousel .card"), $(".auto-play-carousel .card.f-active").removeClass("f-hidden");$("div.auto-play-controls button").removeClass("glyph-play");$("div.auto-play-controls button").addClass("glyph-pause");$("div.auto-play-controls button").attr("aria-pressed",!0);var h=$(".auto-play-carousel span.playToolTip").attr("data-play-label");$(".auto-play-carousel span.playToolTip").text(h);aniGlobal.panelInView.checkPanelInView("auto-play-carousel")?(d(),b(0,1)):(window.addEventListener("scroll",d),window.addEventListener("scroll", b(0,1)))});window.addEventListener("resize",aniGlobal.utility.debounce(function(){v(".auto-play-carousel .card")},500))}); $(window).on("DOMContentLoaded",function(){setTimeout(function(){var b=[].slice.call(document.querySelectorAll(".autoplay-lazyload"));if("IntersectionObserver"in window){var f=new window.IntersectionObserver(function(e,m){e.forEach(function(n,k){if(n.isIntersecting){for(var d in n.target.children){var l=n.target.children[d];"string"===typeof l.tagName&&"SOURCE"===l.tagName&&(l.src=l.dataset.src)}n.target.load();n.target.classList.remove("autoplay-lazyload");f.unobserve(n.target);0===k&&setTimeout(function(){n.target.play()}, 100)}})});b.forEach(function(e){f.observe(e)})}},0)});