!function(e){"use strict";e.fn.awbAnimateCounterBoxes=function(){e.each(fusion.getObserverSegmentation(e(this)),function(n){var o=fusion.getAnimationIntersectionData(n),t=new IntersectionObserver(function(n,o){e.each(n,function(n,r){var i=e(r.target),u=i.data("value"),s=i.data("direction"),a=i.data("delimiter"),c=0,d=u,f=fusionCountersBox.counter_box_speed,b=Math.round(fusionCountersBox.counter_box_speed/100);fusion.shouldObserverEntryAnimate(r,o)&&(a||(a=""),"down"===s&&(c=u,d=0),i.countTo({from:c,to:d,refreshInterval:b,speed:f,formatter:function(e,n){return"-0"===(e=(e=e.toFixed(n.decimals)).replace(/\B(?=(\d{3})+(?!\d))/g,a))&&(e=0),e}}),t.unobserve(r.target))})},o);e(this).find(".display-counter").each(function(){t.observe(this)})})}}(jQuery),jQuery(window).on("load fusion-element-render-fusion-counters_box fusion-element-render-fusion_counter_box",function(e,n){(void 0!==n?jQuery('div[data-cid="'+n+'"]'):jQuery(".fusion-counter-box")).awbAnimateCounterBoxes()});