window.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>a||s>i)&&!t.paused&&t.reset()}},i.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var i=t-this.startVal;if(Math.abs(i)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},i.prototype.start=function(t){this.error||(t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},i.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},i.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},i.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},i.prototype.printValue=function(t){var i;if(this.el){var n=this.formattingFn(t);if(null===(i=this.options.plugin)||void 0===i?void 0:i.render)this.options.plugin.render(this.el,n);else if(\"INPUT\"===this.el.tagName)this.el.value=n;else\"text\"===this.el.tagName||\"tspan\"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},i.prototype.ensureNumber=function(t){return\"number\"==typeof t&&!isNaN(t)},i.prototype.validateValue=function(t){var i=Number(t);return this.ensureNumber(i)?i:(this.error=\"[CountUp] invalid start or end value: \".concat(t),null)},i.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},i}();export{i as CountUp};\n","var $globalHeader = $(\".global-header\");\n\nconst hotlineMapping = new MappingListener({\n\tselector: \".hotline-wrapper\",\n\tmobileWrapper: \".menu-wrapper\",\n\tmobileMethod: \"appendTo\",\n\tdesktopWrapper: \".menu-toggle\",\n\tdesktopMethod: \"insertBefore\",\n\tbreakpoint: 1025,\n}).watch();\n\n// $(\".search-toggle\").on(\"click\", function(e){\n// \te.preventDefault()\n// \t$(\".search-popup\").fadeIn()\n// \t$(\".search-backdrop\").fadeIn()\n// \t$(\".searchinput\").focus()\n// \t$(\"body\").addClass(\"overflow-hidden\");\n// })\n\n$(\".search-backdrop\").on(\"click\", function(e){\n\te.preventDefault()\n\t$(\".search-popup\").fadeOut()\n\t$(\".search-backdrop\").fadeOut()\n\t$(\".searchinput\").trigger(\"change\")\n\t$(\".searchinput\").val(\"\")\n\t$(\"body\").removeClass(\"overflow-hidden\");\n})\n\n$(\".menu-toggle\").on(\"click\", function () {\n\t$(\".menu-wrapper\").slideToggle();\n});\n\n$globalHeader.sticky({\n\tzIndex: 50,\n\ttopSpacing: 0,\n\tclassName: 'sticky-header',\n});\n","function checkHasOnlyASlide(node) {\n\tconst slide = node;\n\tif (!slide.$el) return;\n\tconst countSlide = $(slide.$el).attr(\"data-count-slide\");\n\tif (countSlide > 1) return;\n\tslide.destroy();\n}\n// Slide\nconst sharedBannerOptions = {\n\tspeed: 1700,\n\tloop: true,\n\tautoplay: {\n\t\tdelay: 4000,\n\t},\n};\n\nconst bannerHomeSlider = new Swiper(\".home-banner-slider .swiper-container\", {\n\tnavigation: {\n\t\tprevEl: \".home-banner-slider .swiper-prev\",\n\t\tnextEl: \".home-banner-slider .swiper-next\",\n\t},\n\tspeed: 1000,\n\tloop: true,\n\tautoplay: {\n\t\tdelay: 4000,\n\t},\n\tcssMode: true,\n});\n\nconst pageBannerSlide = new Swiper(\".section-page-banner .swiper-container\", {\n\tnavigation: {\n\t\tprevEl: \".section-page-banner .swiper-prev\",\n\t\tnextEl: \".section-page-banner .swiper-next\",\n\t},\n\tspeed: 1000,\n\tloop: true,\n\tautoplay: {\n\t\tdelay: 4000,\n\t},\n});\ncheckHasOnlyASlide(bannerHomeSlider);\ncheckHasOnlyASlide(pageBannerSlide);\nconst otherNewsSlide = new Swiper(\".news-detail-other-news .swiper-container\", {\n\tnavigation: {\n\t\tprevEl: \".section-page-banner .swiper-prev\",\n\t\tnextEl: \".section-page-banner .swiper-next\",\n\t},\n\tspeed: 1000,\n\tslidesPerView: 3,\n\tspaceBetween: 32,\n});\n","$(\".key-item\").each(function (index) {\n\tlet _this = $(this);\n\t_this.mouseenter(function () {\n\t\t$(\".key-background-item\").eq(index).addClass(\"show\");\n\t});\n\t_this.mouseleave(function () {\n\t\t$(\".key-background-item\").eq(index).removeClass(\"show\");\n\t});\n\t\n});\n"]}