"function"!=typeof window.vcexMilestone&&(window.vcexMilestone=function(e){if("function"==typeof CountUp){e&&e.childNodes||(e=document);var t=function(e){var t=e.getBoundingClientRect();if(t.top<window.innerHeight&&t.bottom>=0)return!0};e.querySelectorAll(".vcex-milestone-time.vcex-countup").forEach((function(e){var n=null,i=JSON.parse(e.dataset.options),o=e.dataset.vcexCountupInit,r=i.animateOnScroll,a=!1;if((r||"true"!==o)&&(n||(n=new CountUp(e,i.startVal,i.endVal,i.decimals,i.duration,{useEasing:!0,useGrouping:!0,separator:i.separator,decimal:i.decimal,prefix:"",suffix:""})),"true"===o||!t(e)||(a=!0,n.start(),o="true",e.setAttribute("data-vcex-countup-init",o),r))){var u=function(i){t(e)?a||(a=!0,"true"===o&&r?(n.reset(),n.start()):(n.start(),o="true",e.setAttribute("data-vcex-countup-init",o)),r||(window.removeEventListener("scroll",u),window.removeEventListener("scroll",u))):a=!1};window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u)}}))}}),"interactive"===document.readyState||"complete"===document.readyState?setTimeout(vcexMilestone,0):document.addEventListener("DOMContentLoaded",vcexMilestone,!1);