PageSourceSearch

https://www.servalresources.com/wp-content/plugins/counting-number…/build/frontend.js?ver=265eefd7d118174415ca

js servalresources.com collected 2026-10-05 22:32:48 UTC 7,628 bytes, 1 lines download raw bytes

vendor: 5,341 bytes, line 1
1(()=>{"use strict";var t=function(){return t=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var s in n=arguments[e])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t},t.apply(this,arguments)},n=function(){function n(n,e,i){var s=this;this.endVal=e,this.options=i,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){s.startTime||(s.startTime=t);var n=t-s.startTime;s.remaining=s.duration-n,s.useEasing?s.countDown?s.frameVal=s.startVal-s.easingFn(n,0,s.startVal-s.endVal,s.duration):s.frameVal=s.easingFn(n,s.startVal,s.endVal-s.startVal,s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(n/s.duration);var e=s.countDown?s.frameVal<s.endVal:s.frameVal>s.endVal;s.frameVal=e?s.endVal:s.frameVal,s.frameVal=Number(s.frameVal.toFixed(s.options.decimalPlaces)),s.printValue(s.frameVal),n<s.duration?s.rAF=requestAnimationFrame(s.count):null!==s.finalEndVal?s.update(s.finalEndVal):s.options.onCompleteCallback&&s.options.onCompleteCallback()},this.formatNumber=function(t){var n,e,i,a,o=t<0?"-":"";n=Math.abs(t).toFixed(s.options.decimalPlaces);var r=(n+="").split(".");if(e=r[0],i=r.length>1?s.options.decimal+r[1]:"",s.options.useGrouping){a="";for(var l=3,u=0,h=0,p=e.length;h<p;++h)s.options.useIndianSeparators&&4===h&&(l=2,u=1),0!==h&&u%l==0&&(a=s.options.separator+a),u++,a=e[p-h-1]+a;e=a}return s.options.numerals&&s.options.numerals.length&&(e=e.replace(/[0-9]/g,(function(t){return s.options.numerals[+t]})),i=i.replace(/[0-9]/g,(function(t){return s.options.numerals[+t]}))),o+s.options.prefix+e+i+s.options.suffix},this.easeOutExpo=function(t,n,e,i){return e*(1-Math.pow(2,-10*t/i))*1024/1023+n},this.options=t(t({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof n?document.getElementById(n):n,e=null==e?this.parse(this.el.innerHTML):e,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,n):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return s.handleScroll(s)})),window.onscroll=function(){window.onScrollFns.forEach((function(t){return t()}))},this.handleScroll(this)))}return n.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,e=t.el.getBoundingClientRect(),i=e.top+window.pageYOffset,s=e.top+e.height+window.pageYOffset;s<n&&s>window.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>s||i>n)&&!t.paused&&t.reset()}},n.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var e=this.countDown?1:-1;this.endVal=t+e*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},n.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},n.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},n.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},n.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},n.prototype.printValue=function(t){var n;if(this.el){var e=this.formattingFn(t);(null===(n=this.options.plugin)||void 0===n?void 0:n.render)?this.options.plugin.render(this.el,e):"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.
1innerHTML=e}},n.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},n.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},n.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},n.prototype.parse=function(t){var n=function(t){return t.replace(/([.,'  ])/g,"\\$1")},e=n(this.options.separator),i=n(this.options.decimal),s=t.replace(new RegExp(e,"g"),"").replace(new RegExp(i,"g"),".");return parseFloat(s)},n}();const e=(t,n)=>{t.forEach((t=>{const{observer:e,counter:i,data:s,element:a}=null!=t?t:{};e&&i&&(n?(i.printValue(s?.value),e.unobserve(a)):e.observe(a))}))};var i;i=()=>{const t=document.querySelectorAll(".wp-block-boldblocks-counting-number .value");if(t.length){const i=[];t.forEach((t=>{const e=(t=>{var e;const i=(t=>{const n={},{value:e,startVal:i,duration:s,scrollSpyDelay:a,enableScrollSpy:o,scrollSpyOnce:r,disableGrouping:l,separator:u,decimal:h}=t;if(!e)return null;const p=parseFloat(e);if(isNaN(p))return null;const c=(e.split(".")[1]||"").length;n.value=p,n.decimalPlaces=c;const d=parseFloat(i);isNaN(d)||(n.startVal=d);const m=parseFloat(s);isNaN(m)||(n.duration=m);const f=parseFloat(a);return isNaN(f)||(n.scrollSpyDelay=1e3*f),void 0!==o&&(n.enableScrollSpy="true"===o),void 0!==r&&(n.scrollSpyOnce="true"===r),void 0!==l&&(n.useGrouping="true"!==l),u&&(n.separator=u),h&&(n.decimal=h),n})(t.dataset);if(!i)return;const s=null!==(e=i.scrollSpyDelay)&&void 0!==e?e:0,a=new n(t,i.value,{...i,scrollSpyDelay:0,enableScrollSpy:!1,scrollSpyOnce:!0,useEasing:!0}),o="is-number-animating",r=new IntersectionObserver((([t])=>{if(!t.isIntersecting)return;const n=t.target.closest(".wp-block-boldblocks-counting-number");a.reset(),setTimeout((()=>{n?.classList.add(o),a.start((()=>{n?.classList.remove(o)}))}),s),i.scrollSpyOnce&&r.unobserve(t.target)}),{threshold:0});return r.observe(t),{observer:r,element:t,data:i,counter:a}})(t);e&&i.push(e)}));const s=window.matchMedia("(prefers-reduced-motion: reduce)");e(i,s.matches),s.addEventListener("change",(()=>{e(i,s.matches)}))}},"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.