/*!
	* Version: 1.3
	* Web: https://fe-jw.github.io/STA/Ver1.3
	* Github: https://github.com/FE-jw/STA
	* Released: 2022-05-20
*/
NodeList.prototype.STA=function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var t=this,s=function(){t.forEach(function(t,s){if(!t.classList.contains("sta-trigger")&&!t.classList.contains("sta-complete")){var a=window.scrollY+t.getBoundingClientRect().top,i=a+t.offsetHeight,e=a+t.offsetHeight*(t.dataset.staOffset||.8);t.dataset.staDuration&&""==t.style.transitionDuration&&(t.style.transitionDuration=t.dataset.staDuration/1e3+"s"),window.scrollY+window.innerHeight>=e&&window.scrollY<i&&(t.classList.contains("sta-trigger")||(t.dataset.staDelay?setTimeout(function(){t.classList.add("sta-trigger")},t.dataset.staDelay):t.classList.add("sta-trigger"))),t.addEventListener("transitionend",function(){t.classList.contains("sta-trigger")&&!t.classList.contains("sta-complete")&&t.classList.add("sta-complete")})}})};s(),window.addEventListener("resize",s),window.addEventListener("orientationchange",s),window.addEventListener("scroll",s)};