File: /home/deshuvsd/www/wp-content/plugins/surerank/build/vendor-0ad54d4b/index.js
(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[6152],{38351:function(r,t,e){var n;!function(){"use strict";var i,o=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,f="[DecimalError] ",c=f+"Invalid argument: ",h=f+"Exponent out of range: ",l=Math.floor,a=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,p=l(1286742750677284.5),v={};function w(r,t){var e,n,i,o,s,f,c,h,l=r.constructor,a=l.precision;if(!r.s||!t.s)return t.s||(t=new l(r)),u?M(t,a):t;if(h=t.d,s=r.e,i=t.e,c=(c=r.d).slice(),o=s-i){for(o<0?(n=c,o=-o,f=h.length):(n=h,i=s,f=c.length),o>(f=(s=Math.ceil(a/7))>f?s+1:f+1)&&(o=f,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((f=c.length)-(o=h.length)<0&&(o=f,n=h,h=c,c=n),e=0;o;)e=(c[--o]=c[o]+h[o]+e)/g|0,c[o]%=g;for(e&&(c.unshift(e),++i),f=c.length;0==c[--f];)c.pop();return t.d=c,t.e=i,u?M(t,a):t}function m(r,t,e){if(r!==~~r||r<t||r>e)throw Error(c+r)}function E(r){var t,e,n,i=r.length-1,o="",s=r[0];if(i>0){for(o+=s,t=1;t<i;t++)(e=7-(n=r[t]+"").length)&&(o+=L(e)),o+=n;(e=7-(n=(s=r[t])+"").length)&&(o+=L(e))}else if(0===s)return"0";for(;s%10===0;)s/=10;return o+s}v.absoluteValue=v.abs=function(){var r=new this.constructor(this);return r.s&&(r.s=1),r},v.comparedTo=v.cmp=function(r){var t,e,n,i,o=this;if(r=new o.constructor(r),o.s!==r.s)return o.s||-r.s;if(o.e!==r.e)return o.e>r.e^o.s<0?1:-1;for(t=0,e=(n=o.d.length)<(i=r.d.length)?n:i;t<e;++t)if(o.d[t]!==r.d[t])return o.d[t]>r.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var r=this,t=r.d.length-1,e=7*(t-r.e);if(t=r.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},v.dividedBy=v.div=function(r){return N(this,new this.constructor(r))},v.dividedToIntegerBy=v.idiv=function(r){var t=this.constructor;return M(N(this,new t(r),0,1),t.precision)},v.equals=v.eq=function(r){return!this.cmp(r)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(r){return this.cmp(r)>0},v.greaterThanOrEqualTo=v.gte=function(r){return this.cmp(r)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(r){return this.cmp(r)<0},v.lessThanOrEqualTo=v.lte=function(r){return this.cmp(r)<1},v.logarithm=v.log=function(r){var t,e=this,n=e.constructor,o=n.precision,s=o+5;if(void 0===r)r=new n(10);else if((r=new n(r)).s<1||r.eq(i))throw Error(f+"NaN");if(e.s<1)throw Error(f+(e.s?"NaN":"-Infinity"));return e.eq(i)?new n(0):(u=!1,t=N(D(e,s),D(r,s),s),u=!0,M(t,o))},v.minus=v.sub=function(r){var t=this;return r=new t.constructor(r),t.s==r.s?_(t,r):w(t,(r.s=-r.s,r))},v.modulo=v.mod=function(r){var t,e=this,n=e.constructor,i=n.precision;if(!(r=new n(r)).s)throw Error(f+"NaN");return e.s?(u=!1,t=N(e,r,0,1).times(r),u=!0,e.minus(t)):M(new n(e),i)},v.naturalExponential=v.exp=function(){return x(this)},v.naturalLogarithm=v.ln=function(){return D(this)},v.negated=v.neg=function(){var r=new this.constructor(this);return r.s=-r.s||0,r},v.plus=v.add=function(r){var t=this;return r=new t.constructor(r),t.s==r.s?w(t,r):_(t,(r.s=-r.s,r))},v.precision=v.sd=function(r){var t,e,n,i=this;if(void 0!==r&&r!==!!r&&1!==r&&0!==r)throw Error(c+r);if(t=O(i)+1,e=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)e--;for(n=i.d[0];n>=10;n/=10)e++}return r&&t>e?t:e},v.squareRoot=v.sqrt=function(){var r,t,e,n,i,o,s,c=this,h=c.constructor;if(c.s<1){if(!c.s)return new h(0);throw Error(f+"NaN")}for(r=O(c),u=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=E(c.d)).length+r)%2==0&&(t+="0"),i=Math.sqrt(t),r=l((r+1)/2)-(r<0||r%2),n=new h(t=i==1/0?"5e"+r:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+r)):n=new h(i.toString()),i=s=(e=h.precision)+3;;)if(n=(o=n).plus(N(c,o,s+2)).times(.5),E(o.d).slice(0,s)===(t=E(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&"4999"==t){if(M(o,e+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=t)break;s+=4}return u=!0,M(n,e)},v.times=v.mul=function(r){var t,e,n,i,o,s,f,c,h,l=this,a=l.constructor,d=l.d,p=(r=new a(r)).d;if(!l.s||!r.s)return new a(0);for(r.s*=l.s,e=l.e+r.e,(c=d.length)<(h=p.length)&&(o=d,d=p,p=o,s=c,c=h,h=s),o=[],n=s=c+h;n--;)o.push(0);for(n=h;--n>=0;){for(t=0,i=c+n;i>n;)f=o[i]+p[n]*d[i-n-1]+t,o[i--]=f%g|0,t=f/g|0;o[i]=(o[i]+t)%g|0}for(;!o[--s];)o.pop();return t?++e:o.shift(),r.d=o,r.e=e,u?M(r,a.precision):r},v.toDecimalPlaces=v.todp=function(r,t){var e=this,n=e.constructor;return e=new n(e),void 0===r?e:(m(r,0,o),void 0===t?t=n.rounding:m(t,0,8),M(e,r+O(e)+1,t))},v.toExponential=function(r,t){var e,n=this,i=n.constructor;return void 0===r?e=A(n,!0):(m(r,0,o),void 0===t?t=i.rounding:m(t,0,8),e=A(n=M(new i(n),r+1,t),!0,r+1)),e},v.toFixed=function(r,t){var e,n,i=this,s=i.constructor;return void 0===r?A(i):(m(r,0,o),void 0===t?t=s.rounding:m(t,0,8),e=A((n=M(new s(i),r+O(i)+1,t)).abs(),!1,r+O(n)+1),i.isneg()&&!i.isZero()?"-"+e:e)},v.toInteger=v.toint=function(){var r=this,t=r.constructor;return M(new t(r),O(r)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(r){var t,e,n,o,s,c=this,h=c.constructor,a=+(r=new h(r));if(!r.s)return new h(i);if(!(c=new h(c)).s){if(r.s<1)throw Error(f+"Infinity");return c}if(c.eq(i))return c;if(n=h.precision,r.eq(i))return M(c,n);if(s=c.s,(t=r.e)>=(e=r.d.length-1)){if((e=a<0?-a:a)<=9007199254740991){for(o=new h(i),t=Math.ceil(n/7+4),u=!1;e%2&&P((o=o.times(c)).d,t),0!==(e=l(e/2));)P((c=c.times(c)).d,t);return u=!0,r.s<0?new h(i).div(o):M(o,n)}}else if(s<0)throw Error(f+"NaN");return s=s<0&&1&r.d[Math.max(t,e)]?-1:1,c.s=1,u=!1,o=r.times(D(c,n+12)),u=!0,(o=x(o)).s=s,o},v.toPrecision=function(r,t){var e,n,i=this,s=i.constructor;return void 0===r?n=A(i,(e=O(i))<=s.toExpNeg||e>=s.toExpPos):(m(r,1,o),void 0===t?t=s.rounding:m(t,0,8),n=A(i=M(new s(i),r,t),r<=(e=O(i))||e<=s.toExpNeg,r)),n},v.toSignificantDigits=v.tosd=function(r,t){var e=this.constructor;return void 0===r?(r=e.precision,t=e.rounding):(m(r,1,o),void 0===t?t=e.rounding:m(t,0,8)),M(new e(this),r,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var r=this,t=O(r),e=r.constructor;return A(r,t<=e.toExpNeg||t>=e.toExpPos)};var N=function(){function r(r,t){var e,n=0,i=r.length;for(r=r.slice();i--;)r[i]=(e=r[i]*t+n)%g|0,n=e/g|0;return n&&r.unshift(n),r}function t(r,t,e,n){var i,o;if(e!=n)o=e>n?1:-1;else for(i=o=0;i<e;i++)if(r[i]!=t[i]){o=r[i]>t[i]?1:-1;break}return o}function e(r,t,e){for(var n=0;e--;)r[e]-=n,r[e]=(n=r[e]<t[e]?1:0)*g+r[e]-t[e];for(;!r[0]&&r.length>1;)r.shift()}return function(n,i,o,s){var u,c,h,l,a,d,p,v,w,m,E,N,x,b,L,D,q,_,A=n.constructor,P=n.s==i.s?1:-1,k=n.d,R=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(f+"Division by zero");for(c=n.e-i.e,q=R.length,L=k.length,v=(p=new A(P)).d=[],h=0;R[h]==(k[h]||0);)++h;if(R[h]>(k[h]||0)&&--c,(N=null==o?o=A.precision:s?o+(O(n)-O(i))+1:o)<0)return new A(0);if(N=N/7+2|0,h=0,1==q)for(l=0,R=R[0],N++;(h<L||l)&&N--;h++)v[h]=(x=l*g+(k[h]||0))/R|0,l=x%R|0;else{for((l=g/(R[0]+1)|0)>1&&(R=r(R,l),k=r(k,l),q=R.length,L=k.length),b=q,m=(w=k.slice(0,q)).length;m<q;)w[m++]=0;(_=R.slice()).unshift(0),D=R[0],R[1]>=g/2&&++D;do{l=0,(u=t(R,w,q,m))<0?(E=w[0],q!=m&&(E=E*g+(w[1]||0)),(l=E/D|0)>1?(l>=g&&(l=g-1),1==(u=t(a=r(R,l),w,d=a.length,m=w.length))&&(l--,e(a,q<d?_:R,d))):(0==l&&(u=l=1),a=R.slice()),(d=a.length)<m&&a.unshift(0),e(w,a,m),-1==u&&(u=t(R,w,q,m=w.length))<1&&(l++,e(w,q<m?_:R,m)),m=w.length):0===u&&(l++,w=[0]),v[h++]=l,u&&w[0]?w[m++]=k[b]||0:(w=[k[b]],m=1)}while((b++<L||void 0!==w[0])&&N--)}return v[0]||v.shift(),p.e=c,M(p,s?o+O(p)+1:o)}}();function x(r,t){var e,n,o,s,f,c=0,l=0,d=r.constructor,g=d.precision;if(O(r)>16)throw Error(h+O(r));if(!r.s)return new d(i);for(null==t?(u=!1,f=g):f=t,s=new d(.03125);r.abs().gte(.1);)r=r.times(s),l+=5;for(f+=Math.log(a(2,l))/Math.LN10*2+5|0,e=n=o=new d(i),d.precision=f;;){if(n=M(n.times(r),f),e=e.times(++c),E((s=o.plus(N(n,e,f))).d).slice(0,f)===E(o.d).slice(0,f)){for(;l--;)o=M(o.times(o),f);return d.precision=g,null==t?(u=!0,M(o,g)):o}o=s}}function O(r){for(var t=7*r.e,e=r.d[0];e>=10;e/=10)t++;return t}function b(r,t,e){if(t>r.LN10.sd())throw u=!0,e&&(r.precision=e),Error(f+"LN10 precision limit exceeded");return M(new r(r.LN10),t)}function L(r){for(var t="";r--;)t+="0";return t}function D(r,t){var e,n,o,s,c,h,l,a,d,g=1,p=r,v=p.d,w=p.constructor,m=w.precision;if(p.s<1)throw Error(f+(p.s?"NaN":"-Infinity"));if(p.eq(i))return new w(0);if(null==t?(u=!1,a=m):a=t,p.eq(10))return null==t&&(u=!0),b(w,a);if(w.precision=a+=10,n=(e=E(v)).charAt(0),s=O(p),!(Math.abs(s)<15e14))return l=b(w,a+2,m).times(s+""),p=D(new w(n+"."+e.slice(1)),a-10).plus(l),w.precision=m,null==t?(u=!0,M(p,m)):p;for(;n<7&&1!=n||1==n&&e.charAt(1)>3;)n=(e=E((p=p.times(r)).d)).charAt(0),g++;for(s=O(p),n>1?(p=new w("0."+e),s++):p=new w(n+"."+e.slice(1)),h=c=p=N(p.minus(i),p.plus(i),a),d=M(p.times(p),a),o=3;;){if(c=M(c.times(d),a),E((l=h.plus(N(c,new w(o),a))).d).slice(0,a)===E(h.d).slice(0,a))return h=h.times(2),0!==s&&(h=h.plus(b(w,a+2,m).times(s+""))),h=N(h,new w(g),a),w.precision=m,null==t?(u=!0,M(h,m)):h;h=l,o+=2}}function q(r,t){var e,n,i;for((e=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(e<0&&(e=n),e+=+t.slice(n+1),t=t.substring(0,n)):e<0&&(e=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r.e=l((e=e-n-1)/7),r.d=[],n=(e+1)%7,e<0&&(n+=7),n<i){for(n&&r.d.push(+t.slice(0,n)),i-=7;n<i;)r.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(r.d.push(+t),u&&(r.e>p||r.e<-p))throw Error(h+e)}else r.s=0,r.e=0,r.d=[0];return r}function M(r,t,e){var n,i,o,s,f,c,d,v,w=r.d;for(s=1,o=w[0];o>=10;o/=10)s++;if((n=t-s)<0)n+=7,i=t,d=w[v=0];else{if((v=Math.ceil((n+1)/7))>=(o=w.length))return r;for(d=o=w[v],s=1;o>=10;o/=10)s++;i=(n%=7)-7+s}if(void 0!==e&&(f=d/(o=a(10,s-i-1))%10|0,c=t<0||void 0!==w[v+1]||d%o,c=e<4?(f||c)&&(0==e||e==(r.s<0?3:2)):f>5||5==f&&(4==e||c||6==e&&(n>0?i>0?d/a(10,s-i):0:w[v-1])%10&1||e==(r.s<0?8:7))),t<1||!w[0])return c?(o=O(r),w.length=1,w[0]=a(10,(7-(t=t-o-1)%7)%7),r.e=l(-t/7)||0):(w.length=1,w[0]=r.e=r.s=0),r;if(0==n?(w.length=v,o=1,v--):(w.length=v+1,o=a(10,7-n),w[v]=i>0?(d/a(10,s-i)%a(10,i)|0)*o:0),c)for(;;){if(0==v){(w[0]+=o)==g&&(w[0]=1,++r.e);break}if(w[v]+=o,w[v]!=g)break;w[v--]=0,o=1}for(n=w.length;0===w[--n];)w.pop();if(u&&(r.e>p||r.e<-p))throw Error(h+O(r));return r}function _(r,t){var e,n,i,o,s,f,c,h,l,a,d=r.constructor,p=d.precision;if(!r.s||!t.s)return t.s?t.s=-t.s:t=new d(r),u?M(t,p):t;if(a=t.d,n=t.e,h=r.e,c=(c=r.d).slice(),s=h-n){for((l=s<0)?(e=c,s=-s,f=a.length):(e=a,n=h,f=c.length),s>(i=Math.max(Math.ceil(p/7),f)+2)&&(s=i,e.length=1),e.reverse(),i=s;i--;)e.push(0);e.reverse()}else{for((l=(i=c.length)<(f=a.length))&&(f=i),i=0;i<f;i++)if(c[i]!=a[i]){l=c[i]<a[i];break}s=0}for(l&&(e=c,c=a,a=e,t.s=-t.s),i=a.length-(f=c.length);i>0;--i)c[f++]=0;for(i=a.length;i>s;){if(c[--i]<a[i]){for(o=i;o&&0===c[--o];)c[o]=g-1;--c[o],c[i]+=g}c[i]-=a[i]}for(;0===c[--f];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=n,u?M(t,p):t):new d(0)}function A(r,t,e){var n,i=O(r),o=E(r.d),s=o.length;return t?(e&&(n=e-s)>0?o=o.charAt(0)+"."+o.slice(1)+L(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+L(-i-1)+o,e&&(n=e-s)>0&&(o+=L(n))):i>=s?(o+=L(i+1-s),e&&(n=e-i-1)>0&&(o=o+"."+L(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),e&&(n=e-s)>0&&(i+1===s&&(o+="."),o+=L(n))),r.s<0?"-"+o:o}function P(r,t){if(r.length>t)return r.length=t,!0}function k(r){if(!r||"object"!==typeof r)throw Error(f+"Object expected");var t,e,n,i=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=r[e=i[t]])){if(!(l(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(c+e+": "+n);this[e]=n}if(void 0!==(n=r[e="LN10"])){if(n!=Math.LN10)throw Error(c+e+": "+n);this[e]=new this(n)}return this}(s=function r(t){var e,n,i;function o(r){var t=this;if(!(t instanceof o))return new o(r);if(t.constructor=o,r instanceof o)return t.s=r.s,t.e=r.e,void(t.d=(r=r.d)?r.slice():r);if("number"===typeof r){if(0*r!==0)throw Error(c+r);if(r>0)t.s=1;else{if(!(r<0))return t.s=0,t.e=0,void(t.d=[0]);r=-r,t.s=-1}return r===~~r&&r<1e7?(t.e=0,void(t.d=[r])):q(t,r.toString())}if("string"!==typeof r)throw Error(c+r);if(45===r.charCodeAt(0)?(r=r.slice(1),t.s=-1):t.s=1,!d.test(r))throw Error(c+r);q(t,r)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=r,o.config=o.set=k,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<i.length;)t.hasOwnProperty(n=i[e++])||(t[n]=this[n]);return o.config(t),o}(s)).default=s.Decimal=s,i=new s(1),void 0===(n=function(){return s}.call(t,e,t,r))||(r.exports=n)}()}}]);