function gTop(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e}function stop(){document.body.style.overflow="hidden",document.addEventListener("touchmove",mo,!1)}function move(){document.body.style.overflow="",document.removeEventListener("touchmove",mo,!1)}function _on(t){t.addClass("on").siblings().removeClass("on")}function log(t){console.log(t)}var data={_vw:$(window).width(),_vh:$(window).height(),shu:window.matchMedia("(orientation: portrait)").matches,player_show:null,player_cur:null,type:!0,appSwiper:null},page={_home:$("#home"),_new:$("#news"),_join:$("#join"),_duty:$("#duty"),_about:$("#about"),_service:$("#service"),_invest:$("#investment"),_business:$("#business"),_newDetail:$("#newDetail"),_down:$("#download"),_esg:$("#esg")},init=function(){if(0!=$(".run_num_box").length){!function(t,e){if(0==$(t).length)return!1;var i=$(t).offset().top,n=$(window).scrollTop(),s=$(window).height();i-s<=n&&($(".run_num_box").children("[data-to]").addClass("timer"),$(document).runInit(),e=!0),$(window).on("scroll touchmove",function(){var i,n=$(window).scrollTop();$(t).each(function(){(i=$(this).offset().top)>n+s&&(0==e&&($(this).children("[data-to]").addClass("timer"),$(document).runInit(),e=!0),i-s>n&&(e=!1,$(".timer").removeClass("timer")))})})}(".run_num_box",!1)}$(".toTop").on("click",function(){$("html, body").animate({scrollTop:0},600)}),$("#law").length>0&&$(".pc-nav").addClass("mbg"),initFn.app_nav()};$(document).ready(function(){if(init(),page._home.length>0){$("#component").length>0&&new bannerSlider({container:"#component"});let e=$("#glSlider");e.length>0&&new glSlider({uniforms:{},fragment:"\n\t\tuniform float time;\n\t\tuniform float progress;\n\t\tuniform float intensity;\n\t\tuniform float width;\n\t\tuniform float scaleX;\n\t\tuniform float scaleY;\n\t\tuniform float transition;\n\t\tuniform float radius;\n\t\tuniform float swipe;\n\t\tuniform sampler2D texture1;\n\t\tuniform sampler2D texture2;\n\t\tuniform sampler2D displacement;\n\t\tuniform vec4 resolution;\n\t\tvarying vec2 vUv;\n\t\tmat2 rotate(float a) {\n\t\t\tfloat s = sin(a);\n\t\t\tfloat c = cos(a);\n\t\t\treturn mat2(c, -s, s, c);\n\t\t}\n\t\tconst float PI = 3.1415;\n\t\tconst float angle1 = PI *0.25;\n\t\tconst float angle2 = -PI *0.75;\n\n\t\tconst float noiseSeed = 2.;\n\n\t\tfloat random() { \n\t\t\treturn fract(sin(noiseSeed + dot(gl_FragCoord.xy / resolution.xy / 10.0, vec2(12.9898, 4.1414))) * 43758.5453);\n\t\t}\n\n\t\tfloat hash(float n) { return fract(sin(n) * 1e4); }\n\t\tfloat hash(vec2 p) { return fract(1e4 * sin(17.0 * p.x + p.y * 0.1) * (0.1 + abs(sin(p.y * 13.0 + p.x)))); }\n\n\t\tfloat hnoise(vec2 x) {\n\t\t\tvec2 i = floor(x);\n\t\t\tvec2 f = fract(x);\n\n\t\t\tfloat a = hash(i);\n\t\t\tfloat b = hash(i + vec2(1.0, 0.0));\n\t\t\tfloat c = hash(i + vec2(0.0, 1.0));\n\t\t\tfloat d = hash(i + vec2(1.0, 1.0));\n\n\t\t\tvec2 u = f * f * (3.0 - 2.0 * f);\n\t\t\treturn mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n\t\t}\n\n\n\t\tvoid main()\t{\n\n\t\t\tvec2 newUV = (vUv - vec2(0.5))*resolution.zw + vec2(0.5);\n\t\t\t\n\t\t\tfloat hn = hnoise(newUV.xy * resolution.xy / 100.0);\n\n\t\t\tvec2 d = vec2(0.,normalize(vec2(0.5,0.5) - newUV.xy).y);\n\n\t\t\tvec2 uv1 = newUV + d * progress / 5.0 * (1.0 + hn / 2.0);\n\t\t\tvec2 uv2 = newUV - d * (1.0 - progress) / 5.0 * (1.0 + hn / 2.0);\n\n\t\t\tvec4 t1 = texture2D(texture1,uv1);\n\t\t\tvec4 t2 = texture2D(texture2,uv2);\n\n\t\t\tgl_FragColor = mix(t1, t2, progress);\n\n\t\t}\n\n\t",startBack:t=>{let i=e.find(".mk_r"),n=i.attr("data-color").split(",")[t];i.css("backgroundColor",n)}});let i=$(".r5 .swiper");if(i.length>0&&i.each(function(t,e){let i=$(e).next().find(".msg").find(".list"),n=i.length,s=0;new Swiper(e,{slidesPerView:1,loop:!0,speed:1e3,initialSlide:t,navigation:{nextEl:"#swNext",prevEl:"#swPrev"},on:{slideNextTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e}},slidePrevTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e}}}})}),data.shu){var t=0;lists=$(".r3").find(".msgList"),$("[data-ahref]").on("click",function(){window.location.href=$(this).attr("data-ahref")}),data.appSwiper=new Swiper("#appSw",{slidesPerView:"auto",centeredSlides:!0,slideToClickedSlide:!0,initialSlide:1,on:{slideNextTransitionStart:function(e){var i=e.realIndex;homeFn.go(lists,t,i),homeFn.ts("/templates/dist/img/media/"+(t+1)+"_hide.ts","/templates/dist/img/media/"+(i+1)+"_show.ts"),t=i,_on($("#appSw").find(".swiper-slide").eq(i))},slidePrevTransitionStart:function(e){var i=e.realIndex;homeFn.go(lists,t,i),homeFn.ts("/templates/dist/img/media/"+(t+1)+"_hide.ts","/templates/dist/img/media/"+(i+1)+"_show.ts"),t=i,_on($("#appSw").find(".swiper-slide").eq(i))}}})}else homeFn.media()}if(page._join.length>0){let t=$(".swiper");t.length>0&&t.each(function(t,e){let i=$(e).next().find(".msg").find(".list"),n=i.length,s=0;new Swiper(e,{slidesPerView:"auto",loop:!0,speed:1e3,centeredSlides:data.shu,initialSlide:t,navigation:{nextEl:"#swNext",prevEl:"#swPrev"},on:{slideNextTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e;var a=e>=10?e:"0"+e;$("#sum").text(a)}},slidePrevTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e;var a=e>=10?e:"0"+e;$("#sum").text(a)}}}})})}if(page._duty.length>0&&(data.shu?data.appSwiper=new Swiper("#fn1",{slidesPerView:"auto",centeredSlides:!0,slideToClickedSlide:!0,initialSlide:1}):dutyFn.r1Img()),page._about.length>0)if(data.shu)new Swiper("#appSwf",{slidesPerView:"auto",centeredSlides:!0,loop:!0,initialSlide:1,parallax:!0,navigation:{nextEl:"#swNext",prevEl:"#swPrev"},on:{}});else aboutFn.SwLoop();if(page._service.length>0){data.shu?(vfn.init(),vfn.v_in(0)):new parallaxFn({parents:document.getElementById("scene"),elm:".rect"});var e=$(".r1");$("#r2Go").on("click",function(){e.addClass("open")}),$("#r2Return").on("click",function(){e.removeClass("open")}),serviceFn.go_down(),serviceFn.selectFn(),serviceFn.qaMore();var i=$(".otherInner").find(".tab"),n=$(".otherInner").find(".mid");i.find("li").on("click",function(){var t=$(this).index();_on($(this)),_on(n.children("div").eq(t))})}if(page._invest.length>0&&(investFn.clock(),investFn.clock_btm(),serviceFn.selectFn2(),$(".r4Fn").each(function(t){let e=$(this).find(".swiper");e.length>0&&e.each(function(e,i){let n=$(i).next().find(".msg").find(".list"),s=$(i).next().find(".sum"),a=0,o=n.length;new Swiper(i,{slidesPerView:"auto",loop:!0,speed:1e3,centeredSlides:data.shu,initialSlide:e,navigation:{nextEl:"#swNext_"+t,prevEl:"#swPrev_"+t},on:{slideNextTransitionStart:function(t){if(o>0&&1===e){var i=t.realIndex;homeFn.go(n,a,i),a=i;var r=i+1>=10?i+1:"0"+(i+1);s.text(r)}},slidePrevTransitionStart:function(t){if(o>0&&1===e){var i=t.realIndex;homeFn.go(n,a,i),a=i;var r=i+1>=10?i+1:"0"+(i+1);s.text(r)}}}})})}),$("#r4Tab").find("li").on("click",function(){_on($(this)),_on($(".r4Fn").eq($(this).index()))}),data.shu))new Swiper("#appSw",{slidesPerView:"auto",centeredSlides:!0,initialSlide:1,autoplay:!0,on:{setTranslate:function(t,e){document.querySelector(".r1").style.setProperty("--go",t.progress.toFixed(2))},slideNextTransitionStart:function(t){var e=t.realIndex,i=e+1>=10?e+1:"0"+(e+1);$("#sum").text(i)},slidePrevTransitionStart:function(t){var e=t.realIndex,i=e+1>=10?e+1:"0"+(e+1);$("#sum").text(i)}}});if(page._business.length>0){$("#glSlider").length>0&&new glSlider({uniforms:{},fragment:"\n\t\tuniform float time;\n\t\tuniform float progress;\n\t\tuniform float intensity;\n\t\tuniform float width;\n\t\tuniform float scaleX;\n\t\tuniform float scaleY;\n\t\tuniform float transition;\n\t\tuniform float radius;\n\t\tuniform float swipe;\n\t\tuniform sampler2D texture1;\n\t\tuniform sampler2D texture2;\n\t\tuniform sampler2D displacement;\n\t\tuniform vec4 resolution;\n\t\tvarying vec2 vUv;\n\t\tmat2 rotate(float a) {\n\t\t\tfloat s = sin(a);\n\t\t\tfloat c = cos(a);\n\t\t\treturn mat2(c, -s, s, c);\n\t\t}\n\t\tconst float PI = 3.1415;\n\t\tconst float angle1 = PI *0.25;\n\t\tconst float angle2 = -PI *0.75;\n\n\t\tconst float noiseSeed = 2.;\n\n\t\tfloat random() { \n\t\t\treturn fract(sin(noiseSeed + dot(gl_FragCoord.xy / resolution.xy / 10.0, vec2(12.9898, 4.1414))) * 43758.5453);\n\t\t}\n\n\t\tfloat hash(float n) { return fract(sin(n) * 1e4); }\n\t\tfloat hash(vec2 p) { return fract(1e4 * sin(17.0 * p.x + p.y * 0.1) * (0.1 + abs(sin(p.y * 13.0 + p.x)))); }\n\n\t\tfloat hnoise(vec2 x) {\n\t\t\tvec2 i = floor(x);\n\t\t\tvec2 f = fract(x);\n\n\t\t\tfloat a = hash(i);\n\t\t\tfloat b = hash(i + vec2(1.0, 0.0));\n\t\t\tfloat c = hash(i + vec2(0.0, 1.0));\n\t\t\tfloat d = hash(i + vec2(1.0, 1.0));\n\n\t\t\tvec2 u = f * f * (3.0 - 2.0 * f);\n\t\t\treturn mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n\t\t}\n\n\n\t\tvoid main()\t{\n\n\t\t\tvec2 newUV = (vUv - vec2(0.5))*resolution.zw + vec2(0.5);\n\t\t\t\n\t\t\tfloat hn = hnoise(newUV.xy * resolution.xy / 100.0);\n\n\t\t\tvec2 d = vec2(0.,normalize(vec2(0.5,0.5) - newUV.xy).y);\n\n\t\t\tvec2 uv1 = newUV + d * progress / 5.0 * (1.0 + hn / 2.0);\n\t\t\tvec2 uv2 = newUV - d * (1.0 - progress) / 5.0 * (1.0 + hn / 2.0);\n\n\t\t\tvec4 t1 = texture2D(texture1,uv1);\n\t\t\tvec4 t2 = texture2D(texture2,uv2);\n\n\t\t\tgl_FragColor = mix(t1, t2, progress);\n\n\t\t}\n\n\t"}),businessFn.tab();var s=$("#advantage"),a=0,o=s.find(".box"),r=o.length;if(o.each(function(t,e){a+=e.clientWidth+.025*data._vw,t===r-1&&s.css("width",a+"px")}),businessFn.swChange(),data.shu){new Swiper("#appSw",{slidesPerView:"auto",centeredSlides:!0,initialSlide:1,on:{setTranslate:function(t,e){document.querySelector(".r4").style.setProperty("--go",t.progress.toFixed(2))},slideNextTransitionStart:function(t){var e=t.realIndex,i=e+1>=10?e+1:"0"+(e+1);$("#sum").text(i)},slidePrevTransitionStart:function(t){var e=t.realIndex,i=e+1>=10?e+1:"0"+(e+1);$("#sum").text(i)}}}),new Swiper("#r2tab",{slidesPerView:"auto",spaceBetween:20,speed:800});$(".r5").length>0&&(vfn.init(),vfn.v_in(0)),$(".pro_list").css("height",data._vh+"px")}}if(page._newDetail.length>0&&$("#return").on("click",function(){window.history.go(-1)}),page._down.length>0&&serviceFn.go_down(),$("#search").length>0&&($(".searchClose_").addClass("on"),$(".searchClose_").on("click",function(){window.history.go(-1)}),data.shu&&$("#banner").css("height",data._vh+"px")),$("#healthy").length>0&&data.shu&&$("#r1").css("height",data._vh+"px"),$("#law").length>0&&data.shu&&$(".inner_top").addClass("active"),page._esg.length>0){let t=$(".r8 .swiper");t.length>0&&t.each(function(t,e){let i=$(e).next().find(".msg").find(".list"),n=i.length,s=0;new Swiper(e,{slidesPerView:1,loop:!0,speed:1e3,initialSlide:t,navigation:{nextEl:"#swNext",prevEl:"#swPrev"},on:{slideNextTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e}},slidePrevTransitionStart:function(t){if(n>0){var e=t.realIndex;homeFn.go(i,s,e),s=e}}}})});new Swiper(".r6 .swiper",{loop:!0,slideActiveClass:"active",slideVisibleClass:"my-slide-visible",slidesPerView:data.shu?1.3:3,spaceBetween:"6.25%",initialSlide:0,speed:5e3,observer:!0,observeParents:!0,freeMode:!0,autoplay:{delay:0}})}});var initFn={app_nav:function(){function t(t){this.parent=t.el,this.menu=t.menu,this.top=t.top,this.downEl=t.downEl,this.type=0,this.isDown=null}var e=$(".app-nav");t.prototype={init:function(){var t=this;this.goDown=this.parent.find(this.downEl),this.menu.on("click",function(){0===t.type?t.open_():t.close_()}),this.goDown.on("click",function(){$(this).hasClass("active")?t.up_($(this)):t.down_($(this))})},open_:function(){this.parent.addClass("on"),this.top.addClass("on"),this.type=1},close_:function(){this.parent.removeClass("on"),this.top.removeClass("on"),this.type=0},down_:function(t){var e=this,i=t.next().hasClass("child_three");null!==e.isDown&&(i||(e.isDown.removeClass("active"),e.isDown.next().removeClass("active"),e.isDown.next().find(".active").removeClass("active")));var n=t.next();t.addClass("active"),n.addClass("active"),i||(e.isDown=t)},up_:function(t){var e=this,i=t.next().hasClass("child_three");t.removeClass("active"),t.next().removeClass("active"),i||(t.next().find(".active").removeClass("active"),e.isDown=null)}},new t({el:e,menu:$("#app-menu"),top:e.find(".inner_top"),downEl:".down_el"}).init()}},homeFn={go:function(t,e,i,n=!1){let s=t[e],a=t[i],o=new TimelineMax;o.to(s,.8,{opacity:0,onComplete:()=>{s.style.display="none",a.style.display="flex",o.reverse()}})},ts:function(t,e){var i=document.querySelector(".ts_before"),n=document.querySelector(".ts_after"),s=!0,a=!0,o=null,r=null;data.type?(o=i,r=n):(o=n,r=i),$(o).append(''),$(r).append(''),data.player_cur=new JSMpeg.Player(t,{canvas:o.querySelector(".cv"),autoplay:!0,loop:!1,audio:!1,onVideoDecode:function(){s&&(data.appSwiper.disable(),TweenMax.to(o,.3,{opacity:1,onComplete:()=>{null!==data.player_show&&(data.player_show.destroy(),TweenMax.set(r,{opacity:0})),data.player_show=new JSMpeg.Player(e,{canvas:r.querySelector(".cv"),autoplay:!1,loop:!1,audio:!1,onVideoDecode:function(){a&&(TweenMax.to(r,.3,{opacity:1,onStart:()=>{data.player_show.play()}}),a=!1)},onEnded:function(){data.appSwiper.enable()}})}}),s=!1)},onEnded:function(){TweenMax.to(o,.3,{opacity:0,onComplete:()=>{data.player_cur.destroy()}})}})},media:function(){var _parent=$(".r3"),_vBefore=_parent[0].querySelector(".bgVideo_before"),_vAfter=_parent[0].querySelector(".bgVideo_after"),_item=_parent.find(".items"),_box=_parent.find("#proBox"),_pop=_parent.find(".pop"),_list=_parent[0].querySelectorAll(".msgList"),_vFrom=_parent.find("[data-from]"),_vIn=_parent.find("[data-in]");class r3Fn{constructor(t){this.current=1,this.next=2,this.curSrc="",this.vidSources=[],this.videoContainer=document.getElementById(t.container),this.box=t.box,this.pop=t.pop,this.goPop=this.box.find(".tabClick"),this.boxChild=null,this.videoEl_after=t.vAfter,this.videoEl_before=t.vBefore,this.videoType=!0,this.tabEl=t.vFrom,this.tree=t.vIn,this.list=t.list,this.items=t.item,this.$hover=$(".hoverImg"),this.$pop=$("#r3Pop"),this.isInner=!1,this.isLoop=!1,this.isPlaying=!1,this.timer=!1,this.Sw=new Swiper("#sw",{autoplay:!1,speed:1200,slidesPerView:"auto",initialSlide:0,spaceBetween:.02*data._vw,pagination:{el:"#swBar",type:"progressbar"}});let e=this;this.tabEl.each(function(){e.vidSources.push($(this).attr("data-from"))}),this.loadVideo().then(t=>{e.event()})}event(){let self=this;this.videoEl_before.onplay=function(t){self.isLoop&&(self.isPlaying=!0),setTimeout(function(){self.isLoop&&(TweenMax.set(t.target,{zIndex:10}),TweenMax.set(self.videoEl_after,{opacity:1,zIndex:5}),TweenMax.to(t.target,.6,{opacity:0,onStart:()=>{self.videoEl_after.play(),self.isLoop=!1,self.videoType=!self.videoType}}))},500)},this.videoEl_before.onended=function(t){self.isLoop||(self.isPlaying=!1)},this.videoEl_after.onplay=function(t){self.isLoop&&(self.isPlaying=!0),setTimeout(function(){self.isLoop&&(TweenMax.set(t.target,{zIndex:10}),TweenMax.set(self.videoEl_before,{opacity:1,zIndex:5}),TweenMax.to(t.target,.6,{opacity:0,onStart:()=>{self.videoEl_before.play(),self.isLoop=!1,self.videoType=!self.videoType}}))},500)},this.videoEl_after.onended=function(t){self.isLoop||(self.isPlaying=!1)},this.tabEl.on("click",function(){return!self.isPlaying&&(!$(this).parent().hasClass("on")&&(self.next=parseInt($(this).attr("data-num")),self.tabChange($(this),self.current,self.next),_on($(this).parent()),void TweenMax.to(self.list[self.current-1],1,{opacity:0,onComplete:()=>{self.list[self.next-1].classList.add("on"),self.list[self.current-1].classList.remove("on"),TweenMax.set(self.list[self.current-1],{opacity:1}),self.current=self.next}})))}),this.tree.on("click",function(){if(self.isPlaying)return!1;let t=$(this).parents(".list").position().left,e=$(this).index(),i=$(this).parents(".items"),n=$(this).attr("data-in");$(this).parent().hasClass("type")?($(this).parent().addClass("pn"),self.inner(i,t,e),self.timer=!0):(_on($(this)),_on(self.boxChild.find(".proItems").eq(e))),self.videoIn(n)}),this.tree.hover(function(){if($(this).hasClass("alan")||$(this).parent().find("li").length<=1)return!1;var t=$(this).parents(".list").index(),e=$(this).index();if(self.timer)return!1;_on(self.$hover.find(".getChild").eq(t)),self.$hover.find(".getChild").eq(t).find("img").eq(e).addClass("on")},function(){if($(this).hasClass("alan")||$(this).parent().find("li").length<=1)return!1;var t=$(this).parents(".list").index(),e=$(this).index();self.timer?setTimeout(function(){self.$hover.find(".getChild").eq(t).removeClass("on"),self.$hover.find(".getChild").eq(t).find("img").eq(e).removeClass("on")},300):(self.$hover.find(".getChild").eq(t).removeClass("on"),self.$hover.find(".getChild").eq(t).find("img").eq(e).removeClass("on"))}),this.goPop.on("click",function(){self.pop.addClass("on");var $id=$(this).attr("data-id");$.post("/brand",{get_products_home:1,products_id:$id},res=>{var result=eval("("+res+")");self.$pop.find(".vc").find(".pic").remove(),result.kvideo.split("").length>2?(self.$pop.find("#pv").attr("src",result.kvideo),self.$pop.find("#pv")[0].play()):self.$pop.find(".vc").append('
'),self.$pop.find("#pTil").text(result.ktitle),self.$pop.find("#pEn").text(result.ktitle_en),self.Sw.removeAllSlides();var str="";result.related_products.map((t,e)=>{str+=' ",e===result.related_products.length-1&&self.Sw.appendSlide(str)})})}),this.pop.find(".mask").on("click",function(){self.pop.removeClass("on"),self.$pop.find("#pv")[0].pause()}),this.items.find(".return").on("click",function(){var t=$(this).parent().find(".on"),e=$(this).parents(".items");self.videoIn(t.attr("data-out")),self.out(e,t.index()),self.timer=!1})}tabChange(t,e,i){var n="templates/dist/img/media/"+e+"_hide.mp4",s="templates/dist/img/media/"+i+"_show.mp4";this.isLoop=!0,this.videoPlay(s,n)}videoPlay(t,e){let i,n,s=this;this.videoType?(n=this.videoEl_before,i=this.videoEl_after):(n=this.videoEl_after,i=this.videoEl_before),e!==this.curSrc&&(i.setAttribute("src",e),this.curSrc=e,TweenMax.to(i,.3,{opacity:1,onComplete:()=>{TweenMax.set(n,{opacity:0}),n.setAttribute("src",t),i.play(),s.videoType=!s.videoType}}))}videoIn(t){let e,i,n=this;this.videoType?(i=this.videoEl_before,e=this.videoEl_after):(i=this.videoEl_after,e=this.videoEl_before),t!==this.curSrc&&(e.setAttribute("src",t),this.curSrc=t,TweenMax.set(e,{zIndex:10}),TweenMax.set(i,{zIndex:5}),TweenMax.to(e,1,{opacity:1,onComplete:()=>{TweenMax.set(i,{opacity:0}),e.play(),n.videoType=!n.videoType}}))}inner(t,e,i){let n=this;this.isInner||TweenMax.to(t,1,{x:-e+.08*window.innerWidth,onComplete:()=>{t.find(".list").each((t,e)=>{$(e).addClass("hideEvt"),t+1!==n.current?TweenMax.to(e.querySelector(".txt"),.5,{autoAlpha:0,y:20}):(n.boxChild=n.box.find(".child").eq(t),e.querySelector(".tab").classList.add("on"),n.boxChild.addClass("on"),n.boxChild.find(".proItems").eq(i).addClass("on"),$(e).find(".tab > li").eq(i).addClass("on"),e.classList.remove("on"),this.isInner=!0)})}})}out(t,e){let i=this;this.isInner&&TweenMax.to(t,1,{x:0,onStart:()=>{t.find(".list").each((t,n)=>{$(n).removeClass("hideEvt"),t+1!==i.current?TweenMax.to(n.querySelector(".txt"),.5,{autoAlpha:1,y:0}):(i.boxChild=i.box.find(".child").eq(t),n.querySelector(".tab").classList.remove("on"),n.querySelector(".type").classList.remove("pn"),i.boxChild.removeClass("on"),i.boxChild.find(".proItems").eq(e).removeClass("on"),$(n).find(".tab > li").eq(e).removeClass("on"),n.classList.add("on"),this.isInner=!1)})}})}loadVideo(){var t=this;return function(e){return Promise.all(e.map(function(e,i){return new Promise(function(i,n){var s=document.createElement("video");s.setAttribute("playsinline","true"),s.setAttribute("muted",""),s.setAttribute("preload","auto"),s.src=e,t.videoContainer.appendChild(s),s.addEventListener("canplay",function(t){i(s)})})}))}(t.vidSources)}}new r3Fn({vBefore:_vBefore,vAfter:_vAfter,list:_list,item:_item,vFrom:_vFrom,vIn:_vIn,box:_box,pop:_pop,container:"vParent"})}},dutyFn={r1Img:function(){var t=$("#fn1");new parallaxFn({parents:t[0],elm:".rect"})}},aboutFn={SwLoop:function(){class t{constructor(t){var e=this;this.parent=t.parent,this.nextEl=t.nextEl,this.prevEl=t.prevEl,this.msgItem=t.msgItem,this.msgList=this.msgItem.querySelectorAll(".msg"),this.parentSize=this.parent.getBoundingClientRect(),this.items=this.parent.querySelectorAll(".slide-list"),this.ani=!1,this.length=this.items.length,this.items.forEach((t,i)=>{switch(i){case 0:e.prevList=t;break;case 1:e.curList=t,e.itemSize=t.getBoundingClientRect(),e.msgSize=this.msgList[i].getBoundingClientRect();break;case 2:e.nextList=t}}),this.top=-(3*this.itemSize.height-this.parentSize.height)/2-this.itemSize.height*this.length,this.topMsg=-this.msgSize.height*this.length,this.init()}init(){$(this.parent).append($(this.items).clone()),$(this.parent).prepend($(this.items).clone()),$(this.msgItem).append($(this.msgList).clone()),$(this.msgItem).prepend($(this.msgList).clone()),this.all=this.parent.querySelectorAll(".slide-list"),this.allMsg=this.msgItem.querySelectorAll(".msg"),this.sum=this.all.length,this.reset(),this.nextEl.addEventListener("click",this.change.bind(this,2)),this.prevEl.addEventListener("click",this.change.bind(this,0))}getNext(t){return t'+n.address+"
\n\n '+n.name+"
"+n.tel+"\n