"use strict";var loadedlottie=!1;const onGSLottieInteraction=()=>{if(!0===loadedlottie)return;loadedlottie=!0;const t=document.createElement("script");t.src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js",document.body.appendChild(t);const e=document.createElement("script");e.src="https://unpkg.com/@lottiefiles/lottie-interactivity@latest/dist/lottie-interactivity.min.js",document.body.appendChild(e);let i=document.getElementsByClassName("gs-lottieloader");for(let t=0;t<i.length;t++){let e=i[t],a=e.querySelector("lottie-player"),o=a.getAttribute("data-interactivity");if(a.addEventListener("ready",t=>{e.classList.add("lottie-loaded")}),a.id&&o){let t=a.getAttribute("data-visibility-start")&&""!=a.getAttribute("data-visibility-start")?a.getAttribute("data-visibility-start"):0,e=a.getAttribute("data-visibility-end")?a.getAttribute("data-visibility-end"):1,i=a.getAttribute("data-frames-start")&&""!=a.getAttribute("data-frames-start")?a.getAttribute("data-frames-start"):0,n=a.getAttribute("data-frames-end")?a.getAttribute("data-frames-end"):100,r=a.getAttribute("data-modetype")?a.getAttribute("data-modetype"):"play",d="click"!=r&&"hover"!=r&&null;a.addEventListener("ready",l=>{"undefined"!=typeof LottieInteractivity&&LottieInteractivity.create({mode:o,player:"#"+a.id,actions:[{visibility:[t,e],type:r,frames:[i,n],forceFlag:d}]})}),setTimeout(()=>{},100)}}};document.body.addEventListener("mouseover",onGSLottieInteraction,{once:!0}),document.body.addEventListener("touchmove",onGSLottieInteraction,{once:!0}),window.addEventListener("scroll",onGSLottieInteraction,{once:!0}),document.body.addEventListener("keydown",onGSLottieInteraction,{once:!0});var requestIdleCallback=window.requestIdleCallback||function(t){const e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)};let frlottie=document.getElementsByClassName("gs-lottieloader");for(let t=0;t<frlottie.length;t++){frlottie[t].classList.contains("gs-loadnow")&&requestIdleCallback(function(){onGSLottieInteraction()},{timeout:500})}