!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{numberCounterInit:function(){return d},numberCounterReInit:function(){return p},numberCounterUpdate:function(){return s}});var n=window.jQuery,i=e.n(n);const r=(e,t)=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t),o=e=>{if(e.includes(".")){const t=e.split("."),n=t.length,i=t.reduce(((e,t,i)=>i===n-1?`${e}.${t}`:`${e}${t}`),"");return{value:parseFloat(i.replace(/,/g,"")),separator:i.includes(",")?",":"",decimal:t[n-1].length}}return{value:parseFloat(e.replace(/,/g,"")),separator:e.includes(",")?",":"",decimal:0}},a=(e,t)=>{const n=i()("body").hasClass("gecko"),{separator:a,decimal:d,value:u}=o(t.numberValue);e.easyPieChart({numberValue:u,animate:{duration:1800,enabled:!0},size:n?1:0,trackAlpha:0,trackColor:!1,scaleColor:!1,lineWidth:0,onStart(t){e.addClass("active"),e.find(".percent-value").text(Number.isNaN(t)?t:r(t,a))},onStep(t,n,i){e.find(".percent-value").text(Number.isNaN(i)?i:r(i.toFixed(d),a))},onStop(){e.find(".percent-value").text(t.numberValue)}})},d=(e,t)=>{if(void 0!==e.data("easyPieChart"))return;const n=()=>{const t=e[0].getBoundingClientRect();return t.top<window.innerHeight&&t.bottom>0};if(n())a(e,t);else{const i=()=>{n()&&(window.removeEventListener("scroll",i),a(e,t))};window.addEventListener("scroll",i)}},u=(e,t,n,i,r)=>"sticky"===n?t?.[e]?.desktop?.sticky??t?.[e]?.desktop?.value??i:"desktop"===n?r?t?.[e]?.desktop?.hover??t?.[e]?.desktop?.value??i??"":t?.[e]?.desktop?.value??t?.[e]?.desktop?.hover??i:"phone"===n?r?t?.[e]?.desktop?.hover??t?.[e]?.phone?.value??i??"":t?.[e]?.phone?.value??t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??i:"tablet"===n?r?t?.[e]?.desktop?.hover??t?.[e]?.tablet?.value??i??"":t?.[e]?.tablet?.value??t?.[e]?.desktop?.value??i:t?.[e]?.desktop?.value??i,l=(e,t,n)=>({numberValue:u("numberValue",e,t,"50",n)}),s=(e,t,n)=>{if(e.width()<=0)return;if(void 0===e.data("easyPieChart"))return;if(n)return e.removeData("easyPieChart"),e.find("canvas").remove(),void d(e,t);const{value:i,separator:a,decimal:u}=o(t.numberValue);e.data("easyPieChart").options.onStep=t=>{Number.isNaN(t)?e.find(".percent-value").text(t):e.find(".percent-value").text(r(t.toFixed(u),a))},e.data("easyPieChart").options.onStep=(t,n,i)=>{Number.isNaN(i)?e.find(".percent-value").text(i):e.find(".percent-value").text(r(i.toFixed(u),a))},e.data("easyPieChart").options.onStop=()=>{e.find(".percent-value").text(t.numberValue)},e.data("easyPieChart").update(i)},c=()=>{const e=i()(window).width();return e<=980&&e>767?"tablet":e<=767?"phone":"desktop"},p=e=>{const t=e||window.diviModuleNumberCounterData,n={...window?.diviElementStickyData??{},...window?.et_pb_sticky_elements??{}};if(!Array.isArray(t))return;const r=c();t.forEach((({selector:e,data:t})=>{const o=i()(e);if(!o.length)return;"fitText"in i().fn&&"function"==typeof i().fn.fitText&&o.find(".percent p").fitText(.3),void 0!==o.data("easyPieChart")?s(o,l(t,r)):d(o,l(t,r)),o.on("containerWidthChanged",(()=>{s(o,l(t,c()))})),o.on("mouseleave",(()=>{o.closest(".et_pb_sticky").length>0&&s(o,l(t,"sticky"))}));const a=Object.values(n).find((t=>e===t?.selector)),u=a&&a?.id?a?.id:null;u&&(window.addEventListener("ETBuilderStickyStart",(e=>{u===e.detail.stickyId&&s(o,l(t,"sticky"))})),window.addEventListener("ETBuilderStickyEnd",(e=>{u===e.detail.stickyId&&s(o,l(t,r))})))}))};"diviModuleNumberCounterInit"in window||Object.defineProperty(window,"diviModuleNumberCounterInit",{value:d,writable:!1}),"diviModuleNumberCounterUpdate"in window||Object.defineProperty(window,"diviModuleNumberCounterUpdate",{value:s,writable:!1}),"diviModuleNumberCounterReinit"in window||Object.defineProperty(window,"diviModuleNumberCounterReinit",{value:p,writable:!1}),((window.divi=window.divi||{}).moduleLibrary=window.divi.moduleLibrary||{}).moduleLibraryScriptNumberCounter=t}();