!function(){function e(){document.querySelectorAll(".fb-animated-heading-container").forEach(e=>{const t=e.getAttribute("data-animation-type");if("typing"===t){const a=e.querySelector(".fb-animated-headings");if(!a)return;const i=e.querySelectorAll(".fb-animated-heading-item"),d=Array.from(i).map(e=>e.textContent).filter(Boolean);if(!d.length)return;i.forEach(e=>e.style.display="none");let o=0,r=0,l=!1;!function e(){const t=d[o],n=t.substring(0,r);a.textContent=n,l?r>0?(r--,setTimeout(e,50)):(l=!1,o=(o+1)%d.length,setTimeout(e,500)):r<t.length?(r++,setTimeout(e,100)):(l=!0,setTimeout(e,1e3))}()}if("swirl"===t){const c=Array.from(e.querySelectorAll(".fb-animated-heading-item")).map(e=>e.textContent).filter(Boolean);if(0===c.length)return;let s=0;const m=e.querySelector("#animated-heading-wrapper");if(!m)return;function n(e,t=!1){const n=document.createElement("span");return n.className="fb-animated-heading-dynamic-text",t&&n.classList.add("fb-animated-heading-text-active"),e.split("").forEach(e=>{const t=document.createElement("span");t.className="fb-animated-heading-dynamic-letter",t.textContent=" "===e?" ":e,n.appendChild(t)}),n}m.innerHTML="";const u=n(c[s],!0);m.appendChild(u),u.querySelectorAll(".fb-animated-heading-dynamic-letter").forEach((e,t)=>{setTimeout(()=>{e.classList.add("fb-animated-heading-animation-in")},30*t)}),s=(s+1)%c.length,setInterval(function(){const e=m.querySelector(".fb-animated-heading-text-active"),t=n(c[s],!0);m.appendChild(t);const a=t.querySelectorAll(".fb-animated-heading-dynamic-letter"),i=Array.from(a).reduce((e,t)=>e+t.getBoundingClientRect().width,0),d=document.querySelector(".fb-animated-heading-swirl-wrapper");if(d&&(d.style.width=`${i}px`),a.forEach((e,t)=>{setTimeout(()=>{e.classList.add("fb-animated-heading-animation-in")},30*t)}),e){e.classList.remove("fb-animated-heading-text-active");const t=e.querySelectorAll(".fb-animated-heading-dynamic-letter");t.forEach((e,t)=>{setTimeout(()=>{e.classList.add("fb-animated-heading-animation-out")},30*t)}),setTimeout(()=>{e.remove()},30*t.length+500)}s=(s+1)%c.length},3e3)}})}window.reinitAnimatedHeading=e,window.addEventListener("load",e),new MutationObserver(()=>{e()}).observe(document.body,{childList:!0,subtree:!0})}();