(function(){function e(){c(d.section).target.forEach(function(a){b.instances.has(a)?b.instances.get(a).reInit():new b(a)})}var c=window.sg.common.$q,d={section:".support-accordion"},b=function(a){this.selector={section:d.section,btn:".support-accordion__list-title"};this.ele={section:c(a),btn:null};this.scrollTimer=null;this.setProperty();b.instances.set(a,this);this.init()};b.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.isAllOpen=0<this.ele.section.find(".support-accordion--open").target.length;
var a=this.ele.section.find(".text-editor");0<a.target.length&&(a=a.find("ul:not([role]), ol:not([role])"),0<a.target.length&&(a.attr("role","list"),a.find("li").attr("role","listitem")))};b.prototype.init=function(){this.setExpanded();this.bindEvents()};b.prototype.reInit=function(){this.setProperty();this.bindEvents()};b.prototype.setExpanded=function(){this.isAllOpen&&this.ele.section.find(this.selector.btn).attr("aria-expanded",!0)};b.prototype.closeItem=function(a){a.finish().css({height:a.height()+
"px",overflow:"hidden"});a.find(this.selector.btn).attr("aria-expanded",!1);var b=a.find(".co16-discover-column-new");a.animate({height:a.find(this.selector.btn).offset().height+"px"},500,function(){a.removeClass("list-active");a.css({height:"",overflow:""});0<b.target.length&&void 0!==window.sg.components.discovercolumn&&setTimeout(function(){window.sg.components.discovercolumn.innerResize()},100)})};b.prototype.openItem=function(a){a.finish().addClass("list-active");var b=a.height();a.css({height:a.find(this.selector.btn).offset().height+
"px",overflow:"hidden"});a.find(this.selector.btn).attr("aria-expanded",!0);var f=a.find(".co16-discover-column-new");a.animate({height:b+"px"},500,function(){a.css({height:"",overflow:""});0<f.target.length&&void 0!==window.sg.components.discovercolumn&&setTimeout(function(){window.sg.components.discovercolumn.innerResize()},100)});b=a.find(".half-text-carousel");0<b.target.length&&void 0!==window.sg.components.halfTextCarousel&&b.target.forEach(function(a){window.sg.components.halfTextCarousel.reInit(a)});
var d=c(".explore-lnb-navigation"),e=c(".nv07-explore-floating-navigation.use-sticky-nav");clearTimeout(this.scrollTimer);this.scrollTimer=null;this.scrollTimer=setTimeout(function(){0<d.target.length&&0<d.find(".explore-lnb.sticky-nav").target.length?c("html").moveScroll(a.offset().top-d.offset().height+(document.body.scrollTop||document.documentElement.scrollTop),300):0<e.target.length?c("html").moveScroll(a.offset().top-e.offset().height+(document.body.scrollTop||document.documentElement.scrollTop),
300):c("html").moveScroll(a.offset().top+(document.body.scrollTop||document.documentElement.scrollTop),300)},530)};b.prototype.bindEvents=function(){var a=this;this.ele.btn.off("click").on("click",function(b){var d=a.ele.section.find(".support-accordion__list.list-active");b=c(b.currentTarget).closest(".support-accordion__list");!1===a.isAllOpen&&0<d.target.length&&a.closeItem(d);b.hasClass("list-active")?a.isAllOpen&&a.closeItem(b):a.openItem(b)})};b.instances=new WeakMap;window.sg.components.su01Accordion=
{init:e,reInit:function(){c(d.section).target.forEach(function(a){b.instances.has(a)?b.instances.get(a).reInit():new b(a)})}};c.ready(e)})();