;/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("bignumber-js-9.0.1",[],(function(a,b,c,d,e,f){"use strict";b={};var g={exports:b},h;function i(){(function(a){var b,c=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,d=Math.ceil,e=Math.floor,f="[BigNumber Error] ",i=f+"Number primitive has more than 15 significant digits: ",j=1e14,k=14,l=9007199254740991,m=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],n=1e7,o=1e9;function p(b){var g,h,x,y=a.prototype={constructor:a,toString:null,valueOf:null},z=new a(1),A=20,B=4,C=-7,D=21,E=-1e7,F=1e7,G=!1,H=1,I=0,J={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},K="0123456789abcdefghijklmnopqrstuvwxyz";function a(b,d){var f,g,j,m,n,o,p,q,r=this;if(!(r instanceof a))return new a(b,d);if(d==null){if(b&&b._isBigNumber===!0){r.s=b.s;!b.c||b.e>F?r.c=r.e=null:b.e=10;n/=10,m++);m>F?r.c=r.e=null:(r.e=m,r.c=[b]);return}q=String(b)}else{if(!c.test(q=String(b)))return x(r,q,o);r.s=q.charCodeAt(0)==45?(q=q.slice(1),-1):1}(m=q.indexOf("."))>-1&&(q=q.replace(".",""));(n=q.search(/e/i))>0?(m<0&&(m=n),m+=+q.slice(n+1),q=q.substring(0,n)):m<0&&(m=q.length)}else{t(d,2,K.length,"Base");if(d==10){r=new a(b);return O(r,A+r.e+1,B)}q=String(b);if(o=typeof b=="number"){if(b*0!=0)return x(r,q,o,d);r.s=1/b<0?(q=q.slice(1),-1):1;if(a.DEBUG&&q.replace(/^0\.0*|\./,"").length>15)throw Error(i+b)}else r.s=q.charCodeAt(0)===45?(q=q.slice(1),-1):1;f=K.slice(0,d);m=n=0;for(p=q.length;nm){m=p;continue}}else if(!j&&(q==q.toUpperCase()&&(q=q.toLowerCase())||q==q.toLowerCase()&&(q=q.toUpperCase()))){j=!0;n=-1;m=0;continue}return x(r,String(b),o,d)}o=!1;q=h(q,d,10,r.s);(m=q.indexOf("."))>-1?q=q.replace(".",""):m=q.length}for(n=0;q.charCodeAt(n)===48;n++);for(p=q.length;q.charCodeAt(--p)===48;);if(q=q.slice(n,++p)){p-=n;if(o&&a.DEBUG&&p>15&&(b>l||b!==e(b)))throw Error(i+r.s*b);if((m=m-n-1)>F)r.c=r.e=null;else if(m=-o&&h<=o&&h===e(h)){if(g[0]===0){if(h===0&&g.length===1)return!0;break out}c=(h+1)%k;c<1&&(c+=k);if(String(g[0]).length==c){for(c=0;c=j||d!==e(d))break out}if(d!==0)return!0}}}else if(g===null&&h===null&&(i===null||i===1||i===-1))return!0;throw Error(f+"Invalid BigNumber: "+b)};a.maximum=a.max=function(){return M(arguments,y.lt)};a.minimum=a.min=function(){return M(arguments,y.gt)};a.random=function(){var b=9007199254740992,c=Math.random()*b&2097151?function(){return e(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(b){var g,h,i,j,l=0,n=[],p=new a(z);b==null?b=A:t(b,0,o);i=d(b/k);if(G)if(crypto.getRandomValues){g=crypto.getRandomValues(new Uint32Array(i*=2));for(;l>>11),j>=9e15?(h=crypto.getRandomValues(new Uint32Array(2)),g[l]=h[0],g[l+1]=h[1]):(n.push(j%1e14),l+=2);l=i/2}else if(crypto.randomBytes){g=crypto.randomBytes(i*=7);for(;l=9e15?crypto.randomBytes(7).copy(g,l):(n.push(j%1e14),l+=7);l=i/7}else{G=!1;throw Error(f+"crypto unavailable")}if(!G)for(;l=10;j/=10,l++);lc-1&&(e[f+1]==null&&(e[f+1]=0),e[f+1]+=e[f]/c|0,e[f]%=c)}return e.reverse()}return function(d,e,f,h,i){var j,k,l,m,n,o=d.indexOf("."),p=A,q=B;o>=0&&(k=I,I=0,d=d.replace(".",""),n=new a(e),m=n.pow(d.length-o),I=k,n.c=c(w(r(m.c),m.e,"0"),10,f,b),n.e=n.c.length);i=c(d,e,f,i?(e=K,b):(e=b,K));j=k=i.length;for(;i[--k]==0;i.pop());if(!i[0])return e.charAt(0);o<0?--j:(m.c=i,m.e=j,m.s=h,m=g(m,n,p,q,f),i=m.c,l=m.r,j=m.e);h=j+p+1;o=i[h];k=f/2;l=l||h<0||i[h+1]!=null;l=q<4?(o!=null||l)&&(q==0||q==(m.s<0?3:2)):o>k||o==k&&(q==4||l||q==6&&i[h-1]&1||q==(m.s<0?8:7));if(h<1||!i[0])d=l?w(e.charAt(1),-p,e.charAt(0)):e.charAt(0);else{i.length=h;if(l)for(--f;++i[--h]>f;)i[h]=0,h||(++j,i=[1].concat(i));for(k=i.length;!i[--k];);for(o=0,d="";o<=k;d+=e.charAt(i[o++]));d=w(d,j,e.charAt(0))}return d}}();g=function(){function c(a,b,c){var d,e,f,g=0,h=a.length,i=b%n;b=b/n|0;for(a=a.slice();h--;)e=a[h]%n,f=a[h]/n|0,d=b*e+f*i,e=i*e+d%n*n+g,g=(e/c|0)+(d/n|0)+b*f,a[h]=e%c;g&&(a=[g].concat(a));return a}function b(a,b,c,d){var e;if(c!=d)d=c>d?1:-1;else for(e=d=0;eb[e]?1:-1;break}return d}function d(a,b,c,d){var e=0;for(;c--;)a[c]-=e,e=a[c]1;a.splice(0,1));}return function(f,g,h,i,l){var m,n,o,p,r,s,t,u,v,w,x,y,z,A,B=f.s==g.s?1:-1,C=f.c,D=g.c;if(!C||!C[0]||!D||!D[0])return new a(!f.s||!g.s||(C?D&&C[0]==D[0]:!D)?NaN:C&&C[0]==0||!D?B*0:B/0);r=new a(B);s=r.c=[];n=f.e-g.e;B=h+n+1;l||(l=j,n=q(f.e/k)-q(g.e/k),B=B/k|0);for(f=0;D[f]==(C[f]||0);f++);D[f]>(C[f]||0)&&n--;if(B<0)s.push(1),g=!0;else{x=C.length;z=D.length;f=0;B+=2;o=e(l/(D[0]+1));o>1&&(D=c(D,o,l),C=c(C,o,l),z=D.length,x=C.length);w=z;t=C.slice(0,z);u=t.length;for(;u=l/2&&y++;do{o=0;m=b(D,t,z,u);if(m<0){v=t[0];z!=u&&(v=v*l+(t[1]||0));o=e(v/y);if(o>1){o>=l&&(o=l-1);v=c(D,o,l);p=v.length;u=t.length;while(b(v,t,p,u)==1)o--,d(v,z=10;B/=10,f++);O(r,h+(r.e=f+n*k-1)+1,i,g)}else r.e=n,r.r=+g;return r}}();function L(b,c,d,e){var f,g,h,i;d==null?d=B:t(d,0,8);if(!b.c)return b.toString();f=b.c[0];g=b.e;if(c==null)i=r(b.c),i=e==1||e==2&&(g<=C||g>=D)?v(i,g):w(i,g,"0");else{b=O(new a(b),c,d);d=b.e;i=r(b.c);h=i.length;if(e==1||e==2&&(c<=d||d<=C)){for(;hh){if(--c>0)for(i+=".";c--;i+="0");}else{c+=d-h;if(c>0){d+1==h&&(i+=".");for(;c--;i+="0");}}}}return b.s<0&&f?"-"+i:i}function M(b,c){var d,e=1,f=new a(b[0]);for(;e=10;e/=10,d++);(c=d+c*k-1)>F?a.c=a.e=null:c=10;l/=10,g++);h=b-g;if(h<0)h+=k,i=b,n=q[o=0],p=n/r[g-i-1]%10|0;else{o=d((h+1)/k);if(o>=q.length)if(f){for(;q.length<=o;q.push(0));n=p=0;g=1;h%=k;i=h-k+1}else break out;else{n=l=q[o];for(g=1;l>=10;l/=10,g++);h%=k;i=h-k+g;p=i<0?0:n/r[g-i-1]%10|0}}f=f||b<0||q[o+1]!=null||(i<0?n:n%r[g-i-1]);f=c<4?(p||f)&&(c==0||c==(a.s<0?3:2)):p>5||p==5&&(c==4||f||c==6&&(h>0?i>0?n/r[g-i]:0:q[o-1])%10&1||c==(a.s<0?8:7));if(b<1||!q[0]){q.length=0;f?(b-=a.e+1,q[0]=r[(k-b%k)%k],a.e=-b||0):q[0]=a.e=0;return a}h==0?(q.length=o,l=1,o--):(q.length=o+1,l=r[k-h],q[o]=i>0?e(n/r[g-i]%r[i])*l:0);if(f)for(;;)if(o==0){for(h=1,i=q[0];i>=10;i/=10,h++);i=q[0]+=l;for(l=1;i>=10;i/=10,l++);h!=l&&(a.e++,q[0]==j&&(q[0]=1));break}else{q[o]+=l;if(q[o]!=j)break;q[o--]=0;l=1}for(h=q.length;q[--h]===0;q.pop());}a.e>F?a.c=a.e=null:a.e=D?v(b,c):w(b,c,"0");return a.s<0?"-"+b:b}y.absoluteValue=y.abs=function(){var b=new a(this);b.s<0&&(b.s=1);return b};y.comparedTo=function(b,c){return s(this,new a(b,c))};y.decimalPlaces=y.dp=function(b,c){var d=this;if(b!=null){t(b,0,o);c==null?c=B:t(c,0,8);return O(new a(d),b+d.e+1,c)}if(!(b=d.c))return null;d=((c=b.length-1)-q(this.e/k))*k;if(c=b[c])for(;c%10==0;c/=10,d--);d<0&&(d=0);return d};y.dividedBy=y.div=function(b,c){return g(this,new a(b,c),A,B)};y.dividedToIntegerBy=y.idiv=function(b,c){return g(this,new a(b,c),0,1)};y.exponentiatedBy=y.pow=function(b,c){var g,h,i,j,l,m,n,o,p=this;b=new a(b);if(b.c&&!b.isInteger())throw Error(f+"Exponent not an integer: "+P(b));c!=null&&(c=new a(c));m=b.e>14;if(!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!b.c||!b.c[0]){o=new a(Math.pow(+P(p),m?2-u(b):+P(b)));return c?o.mod(c):o}n=b.s<0;if(c){if(c.c?!c.c[0]:!c.s)return new a(NaN);h=!n&&p.isInteger()&&c.isInteger();h&&(p=p.mod(c))}else if(b.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||m&&p.c[1]>=24e7:p.c[0]<8e13||m&&p.c[0]<=9999975e7))){j=p.s<0&&u(b)?-0:0;p.e>-1&&(j=1/j);return new a(n?1/j:j)}else I&&(j=d(I/k+2));m?(g=new a(.5),n&&(b.s=1),m=u(b)):(i=Math.abs(+P(b)),m=i%2);o=new a(z);for(;;){if(m){o=o.times(p);if(!o.c)break;j?o.c.length>j&&(o.c.length=j):h&&(o=o.mod(c))}if(i){i=e(i/2);if(i===0)break;m=i%2}else{b=b.times(g);O(b,b.e+1,1);if(b.e>14)m=u(b);else{i=+P(b);if(i===0)break;m=i%2}}p=p.times(p);j?p.c&&p.c.length>j&&(p.c.length=j):h&&(p=p.mod(c))}if(h)return o;n&&(o=z.div(o));return c?o.mod(c):j?O(o,I,B,l):o};y.integerValue=function(b){var c=new a(this);b==null?b=B:t(b,0,8);return O(c,c.e+1,b)};y.isEqualTo=y.eq=function(b,c){return s(this,new a(b,c))===0};y.isFinite=function(){return!!this.c};y.isGreaterThan=y.gt=function(b,c){return s(this,new a(b,c))>0};y.isGreaterThanOrEqualTo=y.gte=function(b,c){return(c=s(this,new a(b,c)))===1||c===0};y.isInteger=function(){return!!this.c&&q(this.e/k)>this.c.length-2};y.isLessThan=y.lt=function(b,c){return s(this,new a(b,c))<0};y.isLessThanOrEqualTo=y.lte=function(b,c){return(c=s(this,new a(b,c)))===-1||c===0};y.isNaN=function(){return!this.s};y.isNegative=function(){return this.s<0};y.isPositive=function(){return this.s>0};y.isZero=function(){return!!this.c&&this.c[0]==0};y.minus=function(b,c){var d,e=this,f=e.s;b=new a(b,c);c=b.s;if(!f||!c)return new a(NaN);if(f!=c){b.s=-c;return e.plus(b)}var g=e.e/k,h=b.e/k,i=e.c,l=b.c;if(!g||!h){if(!i||!l)return i?(b.s=-c,b):new a(l?e:NaN);if(!i[0]||!l[0])return l[0]?(b.s=-c,b):new a(i[0]?e:B==3?-0:0)}g=q(g);h=q(h);i=i.slice();if(f=g-h){(e=f<0)?(f=-f,d=i):(h=g,d=l);d.reverse();for(c=f;c--;d.push(0));d.reverse()}else{g=(e=(f=i.length)<(c=l.length))?f:c;for(f=c=0;c0)for(;c--;i[e++]=0);c=j-1;for(;g>f;){if(i[--g]=0;){d=0;o=c[f]%t;p=c[f]/t|0;for(h=u,g=f+h;g>f;)l=v[--h]%t,m=v[h]/t|0,i=p*l+m*o,l=o*l+i%t*t+r[g]+d,d=(l/s|0)+(i/t|0)+p*m,r[g--]=l%s;r[g]=d}d?++e:r.splice(0,1);return N(b,r,e)};y.negated=function(){var b=new a(this);b.s=-b.s||null;return b};y.plus=function(b,c){var d=this,e=d.s;b=new a(b,c);c=b.s;if(!e||!c)return new a(NaN);if(e!=c){b.s=-c;return d.minus(b)}var f=d.e/k,g=b.e/k,h=d.c,i=b.c;if(!f||!g){if(!h||!i)return new a(e/0);if(!h[0]||!i[0])return i[0]?b:new a(h[0]?d:e*0)}f=q(f);g=q(g);h=h.slice();if(e=f-g){e>0?(g=f,d=i):(e=-e,d=h);d.reverse();for(;e--;d.push(0));d.reverse()}e=h.length;c=i.length;e-c<0&&(d=i,i=h,h=d,c=e);for(e=0;c;)e=(h[--c]=h[c]+i[c]+e)/j|0,h[c]=j===h[c]?0:h[c]%j;e&&(h=[e].concat(h),++g);return N(b,h,g)};y.precision=y.sd=function(b,c){var d,e,f=this;if(b!=null&&b!==!!b){t(b,1,o);c==null?c=B:t(c,0,8);return O(new a(f),b,c)}if(!(c=f.c))return null;e=c.length-1;d=e*k+1;if(e=c[e]){for(;e%10==0;e/=10,d--);for(e=c[0];e>=10;e/=10,d++);}b&&f.e+1>d&&(d=f.e+1);return d};y.shiftedBy=function(a){t(a,-l,l);return this.times("1e"+a)};y.squareRoot=y.sqrt=function(){var b,c,d,e,f=this,h=f.c,i=f.s,j=f.e,k=A+4,l=new a("0.5");if(i!==1||!h||!h[0])return new a(!i||i<0&&(!h||h[0])?NaN:h?f:1/0);i=Math.sqrt(+P(f));i==0||i==1/0?(h=r(h),(h.length+j)%2==0&&(h+="0"),i=Math.sqrt(+h),j=q((j+1)/2)-(j<0||j%2),i==1/0?h="5e"+j:(h=i.toExponential(),h=h.slice(0,h.indexOf("e")+1)+j),c=new a(h)):c=new a(i+"");if(c.c[0]){j=c.e;i=j+k;i<3&&(i=0);for(;;){e=c;c=l.times(e.plus(g(f,e,k,1)));if(r(e.c).slice(0,i)===(h=r(c.c)).slice(0,i)){c.e0&&l>0){e=l%g||g;j=k.substr(0,e);for(;e0&&(j+=i+k.slice(e));d&&(j="-"+j)}b=c?j+(a.decimalSeparator||"")+((h=+a.fractionGroupSize)?c.replace(new RegExp("\\d{"+h+"}\\B","g"),"$&"+(a.fractionGroupSeparator||"")):c):j}return(a.prefix||"")+b+(a.suffix||"")};y.toFraction=function(b){var c,d,e,h,i,j,l,n,o,p=this,q=p.c;if(b!=null){l=new a(b);if(!l.isInteger()&&(l.c||l.s!==1)||l.lt(z))throw Error(f+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+P(l))}if(!q)return new a(p);c=new a(z);o=d=new a(z);e=n=new a(z);q=r(q);i=c.e=q.length-p.e-1;c.c[0]=m[(j=i%k)<0?k+j:j];b=!b||l.comparedTo(c)>0?i>0?c:o:l;j=F;F=1/0;l=new a(q);n.c[0]=0;for(;;){q=g(l,c,0,1);h=d.plus(q.times(e));if(h.comparedTo(b)==1)break;d=e;e=h;o=n.plus(q.times(h=o));n=h;c=l.minus(q.times(h=c));l=h}h=g(b.minus(d),e,0,1);n=n.plus(h.times(o));d=d.plus(h.times(e));n.s=o.s=p.s;i=i*2;q=g(o,e,i,B).minus(p).abs().comparedTo(g(n,d,i,B).minus(p).abs())<1?[o,e]:[n,d];F=j;return q};y.toNumber=function(){return+P(this)};y.toPrecision=function(a,b){a!=null&&t(a,1,o);return L(this,a,b,2)};y.toString=function(b){var c,d=this,e=d.s,f=d.e;f===null?e?(c="Infinity",e<0&&(c="-"+c)):c="NaN":(b==null?c=f<=C||f>=D?v(r(d.c),f):w(r(d.c),f,"0"):b===10?(d=O(new a(d),A+f+1,B),c=w(r(d.c),d.e,"0")):(t(b,2,K.length,"Base"),c=h(w(r(d.c),f,"0"),10,b,e,!0)),e<0&&d.c[0]&&(c="-"+c));return c};y.valueOf=y.toJSON=function(){return P(this)};y._isBigNumber=!0;b!=null&&a.set(b);return a}function q(a){var b=a|0;return a>0||a===b?b:b-1}function r(a){var b,c,d=1,e=a.length,f=a[0]+"";for(;db^c?1:-1;h=(a=e.length)<(b=f.length)?a:b;for(g=0;gf[g]^c?1:-1;return a==b?0:a>b^c?1:-1}function t(a,b,c,d){if(ac||a!==e(a))throw Error(f+(d||"Argument")+(typeof a=="number"?ac?" out of range: ":" not an integer: ":" not a primitive number: ")+String(a))}function u(a){var b=a.c.length-1;return q(a.e/k)==b&&a.c[b]%2!=0}function v(a,b){return(a.length>1?a.charAt(0)+"."+a.slice(1):a)+(b<0?"e":"e+")+b}function w(a,b,c){var d,e;if(b<0){for(e=c+".";++b;e+=c);a=e+a}else{d=a.length;if(++b>d){for(e=c,b-=d;--b;e+=c);a+=e}else b="0"&&h<="9")c+=h,l();if(h==="."){c+=".";while(l()&&h>="0"&&h<="9")c+=h}if(h==="e"||h==="E"){c+=h;l();(h==="-"||h==="+")&&(c+=h,l());while(h>="0"&&h<="9")c+=h,l()}b=+c;if(!isFinite(b))k("Bad number");else{a==null&&(a=g());if(Number.isSafeInteger(b))return e.alwaysParseAsBig?e.useNativeBigInt?BigInt(b):new a(b):b;else return e.storeAsString?c:/[\.eE]/.test(c)?b:e.useNativeBigInt?BigInt(c):new a(c)}},n=function(){var b,c,a="",d;if(h==='"'){var e=f;while(l()){if(h==='"'){f-1>e&&(a+=j.substring(e,f-1));l();return a}if(h==="\\"){f-1>e&&(a+=j.substring(e,f-1));l();if(h==="u"){d=0;for(c=0;c<4;c+=1){b=parseInt(l(),16);if(!isFinite(b))break;d=d*16+b}a+=String.fromCharCode(d)}else if(typeof i[h]==="string")a+=i[h];else break;e=f}}}k("Bad string")},o=function(){while(h&&h<=" ")l()},p=function(){switch(h){case"t":l("t");l("r");l("u");l("e");return!0;case"f":l("f");l("a");l("l");l("s");l("e");return!1;case"n":l("n");l("u");l("l");l("l");return null}k("Unexpected '"+h+"'")},q,r=function(){var a=[];if(h==="["){l("[");o();if(h==="]"){l("]");return a}while(h){a.push(q());o();if(h==="]"){l("]");return a}l(",");o()}}k("Bad array")},s=function(){var d,a=Object.create(null);if(h==="{"){l("{");o();if(h==="}"){l("}");return a}while(h){d=n();o();l(":");e.strict===!0&&Object.hasOwnProperty.call(a,d)&&k('Duplicate key "'+d+'"');b.test(d)===!0?e.protoAction==="error"?k("Object contains forbidden prototype property"):e.protoAction==="ignore"?q():a[d]=q():c.test(d)===!0?e.constructorAction==="error"?k("Object contains forbidden constructor property"):e.constructorAction==="ignore"?q():a[d]=q():a[d]=q();o();if(h==="}"){l("}");return a}l(",");o()}}k("Bad object")};q=function(){o();switch(h){case"{":return s();case"[":return r();case'"':return n();case"-":return m();default:return h>="0"&&h<="9"?m():p()}};return function(a,b){j=a+"";f=0;h=" ";a=q();o();h&&k("Syntax error");return typeof b==="function"?function a(d,e){var f,c=d[e];c&&typeof c==="object"&&Object.keys(c).forEach(function(b){f=a(c,b),f!==void 0?c[b]=f:delete c[b]});return b.call(d,e,c)}({"":a},""):a}};l.exports=d}var n=!1;function o(){n||(n=!0,m());return l.exports}a={};var p={exports:a};function q(){var a=k().stringify,b=o();p.exports=function(c){return{parse:b(c),stringify:a}};p.exports.parse=b();p.exports.stringify=a}var r=!1;function s(){r||(r=!0,q());return p.exports}function c(a){switch(a){case void 0:return s()}}e.exports=c}),null); __d("json-bigint",["json-bigint-1.0.0"],(function(a,b,c,d,e,f){e.exports=b("json-bigint-1.0.0")()}),null);