(function(){function s(){const t=this.getAttribute("aria-controls"),n=t?document.querySelector("#"+t):!1,i=this.parentNode;if(n)if(this.classList.contains("is-active"))if(this.classList.remove("is-active"),n.classList.contains("c-menu-main__dropdown__products")){let t=n.querySelectorAll(".c-menu-main__subnav__list");for(let n=0;n<t.length;++n)t[n].classList.remove("is-active")}else n.classList.remove("is-active");else if(this.classList.add("is-active"),n.classList.contains("c-menu-main__dropdown__products")){let t=n.querySelectorAll(".c-menu-main__subnav__list");for(let n=0;n<t.length;++n)t[n].classList.add("is-active")}else n.classList.add("is-active");this.classList.contains("c-menu-main__list__item__toggle")&&this.parentNode.classList.add("is-active");$(i).siblings().removeClass("is-active").find(".is-active").removeClass("is-active")}function h(){const t=this.getAttribute("aria-controls"),n=t?document.querySelector("#"+t):!1,r=this.closest(".c-menu-main__dropdown__column");n&&(this.classList.contains("is-active")?(this.classList.remove("is-active"),n.classList.remove("is-enabled")):(this.classList.add("is-active"),n.classList.add("is-enabled")));const i=$(r).siblings();i.find(".is-active").removeClass("is-active");i.find(".is-enabled").removeClass("is-enabled")}function c(){const t=this.getAttribute("aria-controls"),n=t?document.querySelector("#"+t):!1,i=this;if(n)if(this.classList.contains("is-active"))if(this.classList.remove("is-active"),n.classList.contains("c-menu-main__dropdown__products")){let t=n.querySelectorAll(".c-menu-main__subnav__list");for(let n=0;n<t.length;++n)t[n].classList.remove("is-active")}else n.classList.remove("is-active");else if(this.classList.add("is-active"),n.classList.contains("c-menu-main__dropdown__products")){let t=n.querySelectorAll(".c-menu-main__subnav__list");for(let n=0;n<t.length;++n)t[n].classList.add("is-active")}else n.classList.add("is-active");$(i).siblings().removeClass("is-active").find(".is-active").removeClass("is-active")}function l(){$(this).removeClass("is-active").find(".is-active").removeClass("is-active")}function a(n){var t;return function(i){t&&clearTimeout(t);t=setTimeout(n,100,i)}}const f=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod/i.test(f)||window.matchMedia("(pointer:coarse)").matches||document.documentElement.offsetWidth<840,i=document.querySelector("#navigation_toggle"),r=document.querySelector("#"+i.getAttribute("aria-controls")),e=document.querySelectorAll(".c-menu-main__list__item__toggle, .c-menu-main__subnav__toggle"),o=document.querySelectorAll(".c-menu-main__subnav__toggle-products"),u=document.querySelectorAll(".c-menu-main__list__item, .c-menu-main__subnav__item");i.addEventListener("click",function(n){if(this.classList.toggle("is-active"),this.classList.contains("is-active"))r.classList.add("is-active");else{r.classList.remove("is-active");const n=document.querySelectorAll(".c-menu-main .is-active");for(var t=0;t<n.length;t++)n[t].classList.remove("is-active")}n.preventDefault()});$(e).on("click",s);$(o).on("click",h);if(!t){$(u).on("mouseenter",c);$(u).on("mouseleave",l)}$(".c-menu-main__list__item--dropdown > button").on("click",function(){const n=this.getAttribute("aria-controls");this.classList.toggle("is-open");document.querySelector("#"+n).classList.toggle("is-open",this.classList.contains("is-open"));$(this.parentNode).siblings().removeClass("is-open").find(".is-open").removeClass("is-open")});$.fn.makeSameHeight=function(i){n.length&&!t&&($(n).css({height:"auto"}),$(n).each(function(n,t){i=Math.max(i,$(t).outerHeight())}),$(n).css({height:i+"px"}))};$(window).on("resize",a(function(){$.fn.makeSameHeight(0)}));var n=document.querySelectorAll(".same-height-cousin");$.fn.makeSameHeight(0)})(),function(){function a(n,t){var i=document.createElement("iframe");return i.setAttribute("frameborder","0"),i.setAttribute("width","560"),i.setAttribute("height","315"),i.setAttribute("title",t),i.setAttribute("allowfullscreen",""),i.setAttribute("allowscriptaccess","always"),i.setAttribute("src","https://www.youtube.com/embed/"+n+"?enablejsapi=1&autoplay=1&modestbranding=1&controls=0"),i}function v(n,t){var i=document.createElement("iframe");return i.setAttribute("frameborder","0"),i.setAttribute("title",t),i.setAttribute("allowfullscreen",""),i.setAttribute("src","https://v.qq.com/txp/iframe/player.html?vid="+n),i}var t,s,n,r,u,f;const i=document.querySelectorAll("[data-modal]"),e=document.querySelectorAll(".c-modal__window");let o=[];for(t=0;t<e.length;t++){const n=document.createElement("button");n.setAttribute("class","c-modal__close");n.setAttribute("type","button");n.setAttribute("data-a11y-dialog-hide","");n.innerHTML='<span class="o-a11y__visuallyhidden">Close this dialog window<\/span>';e[t].insertBefore(n,e[t].firstChild)}for(n=0;n<i.length;n++){const t=i[n].dataset.modal;i[n].dataset.dialog=n;o[n]=new A11yDialog(document.querySelector(t));i[n].addEventListener("click",function(n){for(elem=n.target;elem&&elem!==document;elem=elem.parentNode)(elem.matches(".banner-assets-grid-container")||elem.matches(".grid-item"))&&elem.classList.add("child-open");n.preventDefault();const t=this.dataset.dialog;o[t].show()});o[n].on("hide",function(n){let i=document.querySelectorAll(".banner-assets-grid-container");i.forEach(function(n){n.classList.remove("child-open")});var t=n.querySelector("iframe");t&&t.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")})}const l=document.documentElement.getAttribute("lang");for(s=document.querySelectorAll(".c-card-video__link, .js-embed-youtube"),n=0;n<s.length;n++)s[n].addEventListener("click",function(n){var t=document.getElementById("modal-video-embed-"+this.dataset.id);t.innerHTML="";t.appendChild(l==="zh"?v(this.dataset.id,this.dataset.title):a(this.dataset.id,this.dataset.title));n.preventDefault()});window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i<this.length;i++)n.call(t,this[i],i,this)});const h=document.getElementById("c-hero-video"),c=document.getElementById("c-hero-video-content");if(h!==null&&!!window.IntersectionObserver){let n=new IntersectionObserver(function(n){n.forEach(function(n){n.isIntersecting?c.classList.remove("js-ended"):n.intersectionRatio<.9&&c.classList.add("js-ended")})},{root:null,rootMargin:"0px",threshold:[.5]});n.observe(h)}if(r=document.querySelectorAll(".l-container--bg-video video"),u=r.length,!!window.IntersectionObserver&&u){let n=new IntersectionObserver(function(t,i){t.forEach(function(t){t.intersectionRatio>=.5&&(t.target.parentNode.classList.add("is-container-init"),t.target.play(),i.unobserve(t.target),u==1?n.disconnect():u--)})},{root:null,rootMargin:"0px",threshold:[.5]});r.forEach(function(t){n.observe(t)})}else r.forEach(function(n){n.parentNode.classList.add("is-container-init");n.play();n.nextElementSibling.querySelector(".content-animate").classList.add("js-started")});let y=$(".content-animate-dynamic"),p=1;if(y.each(function(){let n=$(this).find(".ca-block");for(let t=0;t<n.length;t++)$(n[t]).attr("style","--animation-order:"+p++)}),f=document.querySelectorAll(".content-animate"),!!window.IntersectionObserver&&f){let n=new IntersectionObserver(function(n,t){n.forEach(function(n){n.intersectionRatio>=.5&&(n.target.classList.add("js-started"),t.unobserve(n.target))})},{root:null,rootMargin:"0px",threshold:[1]});f.forEach(function(t){n.observe(t)})}else f.forEach(function(n){n.classList.add("js-started")})}()