$((function(){gsap.registerPlugin(ScrollTrigger,SplitText),gsap.config({nullTargetWarn:!1,trialWarn:!1}),ScrollTrigger.addEventListener("refresh",(function(){jQuery(".tg-heading-subheading").length&&!Theme.isRtl()&&document.querySelectorAll(".tg-heading-subheading .tg-element-title").forEach((function(e){e.animation&&(e.animation.progress(1).kill(),e.split.revert());var t=e.closest(".tg-heading-subheading").className.split("animation-");"style4"!=t[1]&&(e.split=new SplitText(e,{type:"lines,words,chars",linesClass:"split-line"}),gsap.set(e,{perspective:400}),"style1"==t[1]&&gsap.set(e.split.chars,{opacity:0,y:"90%",rotateX:"-40deg"}),"style2"==t[1]&&gsap.set(e.split.chars,{opacity:0,x:"50"}),"style3"==t[1]&&gsap.set(e.split.chars,{opacity:0}),e.animation=gsap.to(e.split.chars,{scrollTrigger:{trigger:e,start:"top 90%"},x:"0",y:"0",rotateX:"0",opacity:1,duration:1,ease:Back.easeOut,stagger:.02}),e.split.words.length&&Theme.isRtl()&&e.split.words.forEach((function(e){!function(e,t){for(var i=t.map((function(e){return e.innerHTML})).reverse(),s=0;s<i.length;s++)e.children[s].innerHTML=i[s]}(e,Array.from(e.children))})))}))}))}));