Current section

Files

Jump to
ex_teal priv static teal js 10.9e9ac19d7b57659e71c3.chunk.js
Raw

priv/static/teal/js/10.9e9ac19d7b57659e71c3.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{hyLW:function(e,t,r){var n;e.exports=function e(t,r,i){function a(u,c){if(!r[u]){if(!t[u]){var s="function"==typeof n&&n;if(!c&&s)return n(u,!0);if(o)return o(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[u]={exports:{}};t[u][0].call(f.exports,function(e){return a(t[u][1][e]||e)},f,f.exports,e,t,r,i)}return r[u].exports}for(var o="function"==typeof n&&n,u=0;u<i.length;u++)a(i[u]);return a}({1:[function(e,t,r){!function(e){"use strict";var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,a=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",c=1e14,s=14,l=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e7,g=1e9;function h(e){var t=0|e;return 0<e||e===t?t:t-1}function v(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(t=e[n++]+"",r=s-t.length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function d(e,t){var r,n,i=e.c,a=t.c,o=e.s,u=t.s,c=e.e,s=t.e;if(!o||!u)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-u:o;if(o!=u)return o;if(r=o<0,n=c==s,!i||!a)return n?0:!i^r?1:-1;if(!n)return s<c^r?1:-1;for(u=(c=i.length)<(s=a.length)?c:s,o=0;o<u;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return c==s?0:s<c^r?1:-1}function m(e,t,r,n){if(e<t||r<e||e!==(e<0?i(e):a(e)))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||r<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return h(e.e/s)==t&&e.c[t]%2!=0}function b(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(r=function e(t){var r,O,x,S,N,M,B,D,A,E,k=V.prototype={constructor:V,toString:null,valueOf:null},F=new V(1),_=20,L=4,T=-7,P=21,U=-1e7,j=1e7,C=!1,R=1,I=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz";function V(e,t){var r,i,o,c,f,p,g,h,v=this;if(!(v instanceof V))return new V(e,t);if(null==t){if(e instanceof V)return v.s=e.s,v.e=e.e,void(v.c=(e=e.c)?e.slice():e);if((p="number"==typeof e)&&0*e==0){if(v.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,f=e;10<=f;f/=10,c++);return v.e=c,void(v.c=[e])}h=String(e)}else{if(h=String(e),!n.test(h))return x(v,h,p);v.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}-1<(c=h.indexOf("."))&&(h=h.replace(".","")),0<(f=h.search(/e/i))?(c<0&&(c=f),c+=+h.slice(f+1),h=h.substring(0,f)):c<0&&(c=h.length)}else{if(m(t,2,G.length,"Base"),h=String(e),10==t)return W(v=new V(e instanceof V?e:h),_+v.e+1,L);if(p="number"==typeof e){if(0*e!=0)return x(v,h,p,t);if(v.s=1/e<0?(h=h.slice(1),-1):1,V.DEBUG&&15<h.replace(/^0\.0*|\./,"").length)throw Error(u+e);p=!1}else v.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=G.slice(0,t),c=f=0,g=h.length;f<g;f++)if(r.indexOf(i=h.charAt(f))<0){if("."==i){if(c<f){c=g;continue}}else if(!o&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){o=!0,f=-1,c=0;continue}return x(v,String(e),p,t)}-1<(c=(h=O(h,t,10,v.s)).indexOf("."))?h=h.replace(".",""):c=h.length}for(f=0;48===h.charCodeAt(f);f++);for(g=h.length;48===h.charCodeAt(--g););if(h=h.slice(f,++g)){if(g-=f,p&&V.DEBUG&&15<g&&(l<e||e!==a(e)))throw Error(u+v.s*e);if(j<(c=c-f-1))v.c=v.e=null;else if(c<U)v.c=[v.e=0];else{if(v.e=c,v.c=[],f=(c+1)%s,c<0&&(f+=s),f<g){for(f&&v.c.push(+h.slice(0,f)),g-=s;f<g;)v.c.push(+h.slice(f,f+=s));h=h.slice(f),f=s-h.length}else f-=g;for(;f--;h+="0");v.c.push(+h)}}else v.c=[v.e=0]}function Z(e,t,r,n){var i,a,o,u,c;if(null==r?r=L:m(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)c=v(e.c),c=1==n||2==n&&(o<=T||P<=o)?b(c,o):w(c,o,"0");else if(a=(e=W(new V(e),t,r)).e,u=(c=v(e.c)).length,1==n||2==n&&(t<=a||a<=T)){for(;u<t;c+="0",u++);c=b(c,a)}else if(t-=o,c=w(c,a,"0"),u<a+1){if(0<--t)for(c+=".";t--;c+="0");}else if(0<(t+=a-u))for(a+1==u&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function z(e,t){for(var r,n=1,i=new V(e[0]);n<e.length;n++){if(!(r=new V(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];10<=i;i/=10,n++);return(r=n+r*s-1)>j?e.c=e.e=null:e.c=r<U?[e.e=0]:(e.e=r,t),e}function W(e,t,r,n){var o,u,l,p,g,h,v,d=e.c,m=f;if(d){e:{for(o=1,p=d[0];10<=p;p/=10,o++);if((u=t-o)<0)u+=s,l=t,v=(g=d[h=0])/m[o-l-1]%10|0;else if((h=i((u+1)/s))>=d.length){if(!n)break e;for(;d.length<=h;d.push(0));g=v=0,l=(u%=s)-s+(o=1)}else{for(g=p=d[h],o=1;10<=p;p/=10,o++);v=(l=(u%=s)-s+o)<0?0:g/m[o-l-1]%10|0}if(n=n||t<0||null!=d[h+1]||(l<0?g:g%m[o-l-1]),n=r<4?(v||n)&&(0==r||r==(e.s<0?3:2)):5<v||5==v&&(4==r||n||6==r&&(0<u?0<l?g/m[o-l]:0:d[h-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,n?(t-=e.e+1,d[0]=m[(s-t%s)%s],e.e=-t||0):d[0]=e.e=0,e;if(0==u?(d.length=h,p=1,h--):(d.length=h+1,p=m[s-u],d[h]=0<l?a(g/m[o-l]%m[l])*p:0),n)for(;;){if(0==h){for(u=1,l=d[0];10<=l;l/=10,u++);for(l=d[0]+=p,p=1;10<=l;l/=10,p++);u!=p&&(e.e++,d[0]==c&&(d[0]=1));break}if(d[h]+=p,d[h]!=c)break;d[h--]=0,p=1}for(u=d.length;0===d[--u];d.pop());}e.e>j?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=v(e.c),t=r<=T||P<=r?b(t,r):w(t,r,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(o+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,g,t),_=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),L=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-g,0,t),m(r[1],0,g,t),T=r[0],P=r[1]):(m(r,-g,g,t),T=-(P=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)m(r[0],-g,-1,t),m(r[1],1,g,t),U=r[0],j=r[1];else{if(m(r,-g,g,t),!r)throw Error(o+t+" cannot be zero: "+r);U=-(j=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(o+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw C=!r,Error(o+"crypto unavailable");C=r}else C=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),R=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,g,t),I=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(o+t+" not an object: "+r);$=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);G=r}}return{DECIMAL_PLACES:_,ROUNDING_MODE:L,EXPONENTIAL_AT:[T,P],RANGE:[U,j],CRYPTO:C,MODULO_MODE:R,POW_PRECISION:I,FORMAT:$,ALPHABET:G}},V.isBigNumber=function(e){return e instanceof V||e&&!0===e._isBigNumber||!1},V.maximum=V.max=function(){return z(arguments,k.lt)},V.minimum=V.min=function(){return z(arguments,k.gt)},V.random=(S=9007199254740992,N=Math.random()*S&2097151?function(){return a(Math.random()*S)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,u,c,l=0,p=[],h=new V(F);if(null==e?e=_:m(e,0,g),u=i(e/s),C)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(u*=2));l<u;)9e15<=(c=131072*t[l]+(t[l+1]>>>11))?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(p.push(c%1e14),l+=2);l=u/2}else{if(!crypto.randomBytes)throw C=!1,Error(o+"crypto unavailable");for(t=crypto.randomBytes(u*=7);l<u;)9e15<=(c=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])?crypto.randomBytes(7).copy(t,l):(p.push(c%1e14),l+=7);l=u/7}if(!C)for(;l<u;)(c=N())<9e15&&(p[l++]=c%1e14);for(u=p[--l],e%=s,u&&e&&(c=f[s-e],p[l]=a(u/c)*c);0===p[l];p.pop(),l--);if(l<0)p=[n=0];else{for(n=-1;0===p[0];p.splice(0,1),n-=s);for(l=1,c=p[0];10<=c;c/=10,l++);l<s&&(n-=s-l)}return h.e=n,h.c=p,h}),V.sum=function(){for(var e=1,t=arguments,r=new V(t[0]);e<t.length;)r=r.plus(t[e++]);return r},O=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],u=0,c=e.length;u<c;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(u++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,a,o,u){var c,s,l,f,p,g,h,d,m=n.indexOf("."),y=_,b=L;for(0<=m&&(f=I,I=0,n=n.replace(".",""),g=(d=new V(i)).pow(n.length-m),I=f,d.c=t(w(v(g.c),g.e,"0"),10,a,e),d.e=d.c.length),l=f=(h=t(n,i,a,u?(c=G,e):(c=e,G))).length;0==h[--f];h.pop());if(!h[0])return c.charAt(0);if(m<0?--l:(g.c=h,g.e=l,g.s=o,h=(g=r(g,d,y,b,a)).c,p=g.r,l=g.e),m=h[s=l+y+1],f=a/2,p=p||s<0||null!=h[s+1],p=b<4?(null!=m||p)&&(0==b||b==(g.s<0?3:2)):f<m||m==f&&(4==b||p||6==b&&1&h[s-1]||b==(g.s<0?8:7)),s<1||!h[0])n=p?w(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(h.length=s,p)for(--a;++h[--s]>a;)h[s]=0,s||(++l,h=[1].concat(h));for(f=h.length;!h[--f];);for(m=0,n="";m<=f;n+=c.charAt(h[m++]));n=w(n,l,c.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,a,o,u=0,c=e.length,s=t%p,l=t/p|0;for(e=e.slice();c--;)u=((i=s*(a=e[c]%p)+(n=l*a+(o=e[c]/p|0)*s)%p*p+u)/r|0)+(n/p|0)+l*o,e[c]=i%r;return u&&(e=[u].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=n<r?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(n,i,o,u,l){var f,p,g,v,d,m,y,b,w,O,x,S,N,M,B,D,A,E=n.s==i.s?1:-1,k=n.c,F=i.c;if(!(k&&k[0]&&F&&F[0]))return new V(n.s&&i.s&&(k?!F||k[0]!=F[0]:F)?k&&0==k[0]||!F?0*E:E/0:NaN);for(w=(b=new V(E)).c=[],E=o+(p=n.e-i.e)+1,l||(l=c,p=h(n.e/s)-h(i.e/s),E=E/s|0),g=0;F[g]==(k[g]||0);g++);if(F[g]>(k[g]||0)&&p--,E<0)w.push(1),v=!0;else{for(M=k.length,D=F.length,E+=2,1<(d=a(l/(F[g=0]+1)))&&(F=e(F,d,l),k=e(k,d,l),D=F.length,M=k.length),N=D,x=(O=k.slice(0,D)).length;x<D;O[x++]=0);A=F.slice(),A=[0].concat(A),B=F[0],F[1]>=l/2&&B++;do{if(d=0,(f=t(F,O,D,x))<0){if(S=O[0],D!=x&&(S=S*l+(O[1]||0)),1<(d=a(S/B)))for(l<=d&&(d=l-1),y=(m=e(F,d,l)).length,x=O.length;1==t(m,O,y,x);)d--,r(m,D<y?A:F,y,l),y=m.length,f=1;else 0==d&&(f=d=1),y=(m=F.slice()).length;if(y<x&&(m=[0].concat(m)),r(O,m,x,l),x=O.length,-1==f)for(;t(F,O,D,x)<1;)d++,r(O,D<x?A:F,x,l),x=O.length}else 0===f&&(d++,O=[0]);w[g++]=d,O[0]?O[x++]=k[N]||0:(O=[k[N]],x=1)}while((N++<M||null!=O[0])&&E--);v=null!=O[0],w[0]||w.splice(0,1)}if(l==c){for(g=1,E=w[0];10<=E;E/=10,g++);W(b,o+(b.e=g+p*s-1)+1,u,v)}else b.e=p,b.r=+v;return b}}(),M=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,D=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,E=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(e,t,r,n){var i,a=r?t:t.replace(E,"");if(A.test(a))e.s=isNaN(a)?null:a<0?-1:1,e.c=e.e=null;else{if(!r&&(a=a.replace(M,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(B,"$1").replace(D,"0.$1")),t!=a))return new V(a,i);if(V.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.c=e.e=e.s=null}},k.absoluteValue=k.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return d(this,new V(e,t))},k.decimalPlaces=k.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,g),null==t?t=L:m(t,0,8),W(new V(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-h(this.e/s))*s,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},k.dividedBy=k.div=function(e,t){return r(this,new V(e,t),_,L)},k.dividedToIntegerBy=k.idiv=function(e,t){return r(this,new V(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var r,n,u,c,l,f,p,g,h=this;if((e=new V(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(t)),l=14<e.e,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return g=new V(Math.pow(+H(h),l?2-y(e):+H(e))),t?g.mod(t):g;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new V(NaN);(n=!f&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(9<e.e&&(0<h.e||h.e<-1||(0==h.e?1<h.c[0]||l&&24e7<=h.c[1]:h.c[0]<8e13||l&&h.c[0]<=9999975e7)))return c=h.s<0&&y(e)?-0:0,-1<h.e&&(c=1/c),new V(f?1/c:c);I&&(c=i(I/s+2))}for(p=l?(r=new V(.5),f&&(e.s=1),y(e)):(u=Math.abs(+H(e)))%2,g=new V(F);;){if(p){if(!(g=g.times(h)).c)break;c?g.c.length>c&&(g.c.length=c):n&&(g=g.mod(t))}if(u){if(0===(u=a(u/2)))break;p=u%2}else if(W(e=e.times(r),e.e+1,1),14<e.e)p=y(e);else{if(0==(u=+H(e)))break;p=u%2}h=h.times(h),c?h.c&&h.c.length>c&&(h.c.length=c):n&&(h=h.mod(t))}return n?g:(f&&(g=F.div(g)),t?g.mod(t):c?W(g,I,L,void 0):g)},k.integerValue=function(e){var t=new V(this);return null==e?e=L:m(e,0,8),W(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===d(this,new V(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return 0<d(this,new V(e,t))},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=d(this,new V(e,t)))||0===t},k.isInteger=function(){return!!this.c&&h(this.e/s)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return d(this,new V(e,t))<0},k.isLessThanOrEqualTo=k.lte=function(e,t){return-1===(t=d(this,new V(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return 0<this.s},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var r,n,i,a,o=this,u=o.s;if(t=(e=new V(e,t)).s,!u||!t)return new V(NaN);if(u!=t)return e.s=-t,o.plus(e);var l=o.e/s,f=e.e/s,p=o.c,g=e.c;if(!l||!f){if(!p||!g)return p?(e.s=-t,e):new V(g?o:NaN);if(!p[0]||!g[0])return g[0]?(e.s=-t,e):new V(p[0]?o:3==L?-0:0)}if(l=h(l),f=h(f),p=p.slice(),u=l-f){for((i=(a=u<0)?(u=-u,p):(f=l,g)).reverse(),t=u;t--;i.push(0));i.reverse()}else for(n=(a=(u=p.length)<(t=g.length))?u:t,u=t=0;t<n;t++)if(p[t]!=g[t]){a=p[t]<g[t];break}if(a&&(i=p,p=g,g=i,e.s=-e.s),0<(t=(n=g.length)-(r=p.length)))for(;t--;p[r++]=0);for(t=c-1;u<n;){if(p[--n]<g[n]){for(r=n;r&&!p[--r];p[r]=t);--p[r],p[n]+=c}p[n]-=g[n]}for(;0==p[0];p.splice(0,1),--f);return p[0]?q(e,p,f):(e.s=3==L?-1:1,e.c=[e.e=0],e)},k.modulo=k.mod=function(e,t){var n,i,a=this;return e=new V(e,t),!a.c||!e.s||e.c&&!e.c[0]?new V(NaN):!e.c||a.c&&!a.c[0]?new V(a):(9==R?(i=e.s,e.s=1,n=r(a,e,0,3),e.s=i,n.s*=i):n=r(a,e,0,R),(e=a.minus(n.times(e))).c[0]||1!=R||(e.s=a.s),e)},k.multipliedBy=k.times=function(e,t){var r,n,i,a,o,u,l,f,g,v,d,m,y,b,w,O=this,x=O.c,S=(e=new V(e,t)).c;if(!(x&&S&&x[0]&&S[0]))return!O.s||!e.s||x&&!x[0]&&!S||S&&!S[0]&&!x?e.c=e.e=e.s=null:(e.s*=O.s,x&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=h(O.e/s)+h(e.e/s),e.s*=O.s,(l=x.length)<(v=S.length)&&(y=x,x=S,S=y,i=l,l=v,v=i),i=l+v,y=[];i--;y.push(0));for(b=c,w=p,i=v;0<=--i;){for(r=0,d=S[i]%w,m=S[i]/w|0,a=i+(o=l);i<a;)r=((f=d*(f=x[--o]%w)+(u=m*f+(g=x[o]/w|0)*d)%w*w+y[a]+r)/b|0)+(u/w|0)+m*g,y[a--]=f%b;y[a]=r}return r?++n:y.splice(0,1),q(e,y,n)},k.negated=function(){var e=new V(this);return e.s=-e.s||null,e},k.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new V(e,t)).s,!i||!t)return new V(NaN);if(i!=t)return e.s=-t,n.minus(e);var a=n.e/s,o=e.e/s,u=n.c,l=e.c;if(!a||!o){if(!u||!l)return new V(i/0);if(!u[0]||!l[0])return l[0]?e:new V(u[0]?n:0*i)}if(a=h(a),o=h(o),u=u.slice(),i=a-o){for((r=0<i?(o=a,l):(i=-i,u)).reverse();i--;r.push(0));r.reverse()}for((i=u.length)-(t=l.length)<0&&(r=l,l=u,u=r,t=i),i=0;t;)i=(u[--t]=u[t]+l[t]+i)/c|0,u[t]=c===u[t]?0:u[t]%c;return i&&(u=[i].concat(u),++o),q(e,u,o)},k.precision=k.sd=function(e,t){var r,n,i;if(null!=e&&e!==!!e)return m(e,1,g),null==t?t=L:m(t,0,8),W(new V(this),e,t);if(!(r=this.c))return null;if(n=(i=r.length-1)*s+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];10<=i;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},k.shiftedBy=function(e){return m(e,-l,l),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,i,a,o=this,u=o.c,c=o.s,s=o.e,l=_+4,f=new V("0.5");if(1!==c||!u||!u[0])return new V(!c||c<0&&(!u||u[0])?NaN:u?o:1/0);if((n=0==(c=Math.sqrt(+H(o)))||c==1/0?(((t=v(u)).length+s)%2==0&&(t+="0"),c=Math.sqrt(+t),s=h((s+1)/2)-(s<0||s%2),new V(t=c==1/0?"1e"+s:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+s)):new V(c+"")).c[0])for((c=(s=n.e)+l)<3&&(c=0);;)if(a=n,n=f.times(a.plus(r(o,a,l,1))),v(a.c).slice(0,c)===(t=v(n.c)).slice(0,c)){if(n.e<s&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(n,n.e+_+2,1),e=!n.times(n).eq(o));break}if(!i&&(W(a,a.e+_+2,0),a.times(a).eq(o))){n=a;break}l+=4,c+=4,i=1}return W(n,n.e+_+1,L,e)},k.toExponential=function(e,t){return null!=e&&(m(e,0,g),e++),Z(this,e,t,1)},k.toFixed=function(e,t){return null!=e&&(m(e,0,g),e=e+this.e+1),Z(this,e,t)},k.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=$;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),u=+r.groupSize,c=+r.secondaryGroupSize,s=r.groupSeparator||"",l=a[0],f=a[1],p=this.s<0,g=p?l.slice(1):l,h=g.length;if(c&&(i=u,u=c,h-=c=i),0<u&&0<h){for(i=h%u||u,l=g.substr(0,i);i<h;i+=u)l+=s+g.substr(i,u);0<c&&(l+=s+g.slice(i)),p&&(l="-"+l)}n=f?l+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+n+(r.suffix||"")},k.toFraction=function(e){var t,n,i,a,u,c,l,p,g,h,d,m,y=this,b=y.c;if(null!=e&&(!(l=new V(e)).isInteger()&&(l.c||1!==l.s)||l.lt(F)))throw Error(o+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!b)return new V(y);for(t=new V(F),g=n=new V(F),i=p=new V(F),m=v(b),u=t.e=m.length-y.e-1,t.c[0]=f[(c=u%s)<0?s+c:c],e=!e||0<l.comparedTo(t)?0<u?t:g:l,c=j,j=1/0,l=new V(m),p.c[0]=0;h=r(l,t,0,1),1!=(a=n.plus(h.times(i))).comparedTo(e);)n=i,i=a,g=p.plus(h.times(a=g)),p=a,t=l.minus(h.times(a=t)),l=a;return a=r(e.minus(n),i,0,1),p=p.plus(a.times(g)),n=n.plus(a.times(i)),p.s=g.s=y.s,d=r(g,i,u*=2,L).minus(y).abs().comparedTo(r(p,n,u,L).minus(y).abs())<1?[g,i]:[p,n],j=c,d},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,g),Z(this,e,t,2)},k.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=null==e?i<=T||P<=i?b(v(r.c),i):w(v(r.c),i,"0"):10===e?w(v((r=W(new V(r),_+i+1,L)).c),r.e,"0"):(m(e,2,G.length,"Base"),O(w(v(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(k[Symbol.toStringTag]="BigNumber",k[Symbol.for("nodejs.util.inspect.custom")]=k.valueOf),null!=t&&V.set(t),V}()).default=r.BigNumber=r,void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)},{}],2:[function(e,t,r){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=e("./globalState"),a=e("./validating"),o=e("./parsing"),u=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],c={general:{scale:1024,suffixes:u,marker:"bd"},binary:{scale:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],marker:"b"},decimal:{scale:1e3,suffixes:u,marker:"d"}},s={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};function l(e,t,r){var n=t[0],i=Math.abs(e);if(r<=i){for(var a=1;a<t.length;++a){var o=Math.pow(r,a),u=Math.pow(r,a+1);if(o<=i&&i<u){n=t[a],e/=o;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function f(e){for(var t="",r=0;r<e;r++)t+="0";return t}function p(e,t){return-1!==e.toString().indexOf("e")?function(e,t){var r=e.toString(),i=n(r.split("e"),2),a=i[0],o=i[1],u=n(a.split("."),2),c=u[0],s=u[1],l=void 0===s?"":s;if(0<+o)r=c+l+f(o-l.length);else{var p=".";p=+c<0?"-0".concat(p):"0".concat(p);var g=(f(-o-1)+Math.abs(c)+l).substr(0,t);g.length<t&&(g+=f(t-g.length)),r=p+g}return 0<+o&&0<t&&(r+=".".concat(f(t))),r}(e,t):(Math.round(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function g(e){var t=e.instance,r=e.providedFormat,a=e.state,o=void 0===a?i:a,u=e.decimalSeparator,c=e.defaults,l=void 0===c?o.currentDefaults():c,f=t._value;if(0===f&&o.hasZeroFormat())return o.getZeroFormat();if(!isFinite(f))return f.toString();var g,h,v,d,m,y,b,w,O=Object.assign({},s,l,r),x=O.totalLength,S=x?0:O.characteristic,N=O.optionalCharacteristic,M=O.forceAverage,B=!!x||!!M||O.average,D=x?-1:B&&void 0===r.mantissa?0:O.mantissa,A=!x&&(void 0===r.optionalMantissa?-1===D:O.optionalMantissa),E=O.trimMantissa,k=O.thousandSeparated,F=O.spaceSeparated,_=O.negative,L=O.forceSign,T=O.exponential,P="";if(B){var U=function(e){var t=e.value,r=e.forceAverage,n=e.abbreviations,i=e.spaceSeparated,a=void 0!==i&&i,o=e.totalLength,u=void 0===o?0:o,c="",s=Math.abs(t),l=-1;if(s>=Math.pow(10,12)&&!r||"trillion"===r?(c=n.trillion,t/=Math.pow(10,12)):s<Math.pow(10,12)&&s>=Math.pow(10,9)&&!r||"billion"===r?(c=n.billion,t/=Math.pow(10,9)):s<Math.pow(10,9)&&s>=Math.pow(10,6)&&!r||"million"===r?(c=n.million,t/=Math.pow(10,6)):(s<Math.pow(10,6)&&s>=Math.pow(10,3)&&!r||"thousand"===r)&&(c=n.thousand,t/=Math.pow(10,3)),c&&(c=(a?" ":"")+c),u){var f=t.toString().split(".")[0];l=Math.max(u-f.length,0)}return{value:t,abbreviation:c,mantissaPrecision:l}}({value:f,forceAverage:M,abbreviations:o.currentAbbreviations(),spaceSeparated:F,totalLength:x});f=U.value,P+=U.abbreviation,x&&(D=U.mantissaPrecision)}if(T){var j=(h=(g={value:f,characteristicPrecision:S}).value,v=g.characteristicPrecision,d=void 0===v?0:v,m=n(h.toExponential().split("e"),2),y=m[0],b=m[1],w=+y,d&&1<d&&(w*=Math.pow(10,d-1),b=0<=(b=+b-(d-1))?"+".concat(b):b),{value:w,abbreviation:"e".concat(b)});f=j.value,P=j.abbreviation+P}var C,R,I,$=function(e,t,r,i,a){if(-1===i)return e;var o=p(t,i),u=n(o.toString().split("."),2),c=u[0],s=u[1],l=void 0===s?"":s;if(l.match(/^0+$/)&&(r||a))return c;var f=l.match(/0+$/);return a&&f?"".concat(c,".").concat(l.toString().slice(0,f.index)):o.toString()}(f.toString(),f,A,D,E);return $=function(e,t,r,n,i){var a=n.currentDelimiters(),o=a.thousands;i=i||a.decimal;var u=a.thousandsSize||3,c=e.toString(),s=c.split(".")[0],l=c.split(".")[1];return r&&(t<0&&(s=s.slice(1)),function(e,t){for(var r=[],n=0,i=e;0<i;i--)n===t&&(r.unshift(i),n=0),n++;return r}(s.length,u).forEach(function(e,t){s=s.slice(0,e+t)+o+s.slice(e+t)}),t<0&&(s="-".concat(s))),c=l?s+i+l:s}($=function(e,t,r,i){var a=e,o=n(a.toString().split("."),2),u=o[0],c=o[1];if(u.match(/^-?0$/)&&r)return c?"".concat(u.replace("0",""),".").concat(c):u.replace("0","");if(u.length<i)for(var s=i-u.length,l=0;l<s;l++)a="0".concat(a);return a.toString()}($,0,N,S),f,k,o,u),(B||T)&&($+=P),(L||f<0)&&(C=$,I=_,$=0===(R=f)?C:0==+C?C.replace("-",""):0<R?"+".concat(C):"sign"===I?C:"(".concat(C.replace("-",""),")")),$}function h(e,t){if(!e)return t;var r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}t.exports=function(e){return{format:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0;if("string"==typeof t&&(t=o.parseFormat(t)),!a.validateFormat(t))return"ERROR: invalid format";var n=t.prefix||"",u=t.postfix||"",f=function(e,t,r){switch(t.output){case"currency":return t=h(t,i.currentCurrencyDefaultFormat()),function(e,t,r){var n=r.currentCurrency(),i=Object.assign({},s,t),a=void 0,o="",u=!!i.totalLength||!!i.forceAverage||i.average,c=t.currencyPosition||n.position,l=t.currencySymbol||n.symbol;i.spaceSeparated&&(o=" "),"infix"===c&&(a=o+l+o);var f=g({instance:e,providedFormat:t,state:r,decimalSeparator:a});return"prefix"===c&&(f=e._value<0&&"sign"===i.negative?"-".concat(o).concat(l).concat(f.slice(1)):l+o+f),c&&"postfix"!==c||(f=f+(o=u?"":o)+l),f}(e,t,i);case"percent":return t=h(t,i.currentPercentageDefaultFormat()),function(e,t,r,n){var i=t.prefixSymbol,a=g({instance:n(100*e._value),providedFormat:t,state:r}),o=Object.assign({},s,t);return i?"%".concat(o.spaceSeparated?" ":"").concat(a):"".concat(a).concat(o.spaceSeparated?" ":"","%")}(e,t,i,r);case"byte":return t=h(t,i.currentByteDefaultFormat()),w=e,x=i,S=r,N=(O=t).base||"binary",M=c[N],B=l(w._value,M.suffixes,M.scale),D=B.value,A=B.suffix,E=g({instance:S(D),providedFormat:O,state:x,defaults:x.currentByteDefaultFormat()}),k=x.currentAbbreviations(),"".concat(E).concat(k.spaced?" ":"").concat(A);case"time":return t=h(t,i.currentTimeDefaultFormat()),d=e,m=Math.floor(d._value/60/60),y=Math.floor((d._value-60*m*60)/60),b=Math.round(d._value-60*m*60-60*y),"".concat(m,":").concat(y<10?"0":"").concat(y,":").concat(b<10?"0":"").concat(b);case"ordinal":return t=h(t,i.currentOrdinalDefaultFormat()),n=e,a=t,u=(o=i).currentOrdinal(),f=Object.assign({},s,a),p=g({instance:n,providedFormat:a,state:o}),v=u(n._value),"".concat(p).concat(f.spaceSeparated?" ":"").concat(v);case"number":default:return g({instance:e,providedFormat:t,numbro:r})}var n,a,o,u,f,p,v,d,m,y,b,w,O,x,S,N,M,B,D,A,E,k}(e,t,r);return f=(f=n+f)+u}.apply(void 0,r.concat([e]))},getByteUnit:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=c.general;return l(e._value,t.suffixes,t.scale).suffix}.apply(void 0,r.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=c.binary;return l(e._value,t.suffixes,t.scale).suffix}.apply(void 0,r.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=c.decimal;return l(e._value,t.suffixes,t.scale).suffix}.apply(void 0,r.concat([e]))},formatOrDefault:h}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(e,t,r){"use strict";var n=e("./en-US"),i=e("./validating"),a=e("./parsing"),o={},u=void 0,c={},s=null,l={};function f(e){u=e}function p(){return c[u]}o.languages=function(){return Object.assign({},c)},o.currentLanguage=function(){return u},o.currentCurrency=function(){return p().currency},o.currentAbbreviations=function(){return p().abbreviations},o.currentDelimiters=function(){return p().delimiters},o.currentOrdinal=function(){return p().ordinal},o.currentDefaults=function(){return Object.assign({},p().defaults,l)},o.currentOrdinalDefaultFormat=function(){return Object.assign({},o.currentDefaults(),p().ordinalFormat)},o.currentByteDefaultFormat=function(){return Object.assign({},o.currentDefaults(),p().byteFormat)},o.currentPercentageDefaultFormat=function(){return Object.assign({},o.currentDefaults(),p().percentageFormat)},o.currentCurrencyDefaultFormat=function(){return Object.assign({},o.currentDefaults(),p().currencyFormat)},o.currentTimeDefaultFormat=function(){return Object.assign({},o.currentDefaults(),p().timeFormat)},o.setDefaults=function(e){e=a.parseFormat(e),i.validateFormat(e)&&(l=e)},o.getZeroFormat=function(){return s},o.setZeroFormat=function(e){return s="string"==typeof e?e:null},o.hasZeroFormat=function(){return null!==s},o.languageData=function(e){if(e){if(c[e])return c[e];throw new Error('Unknown tag "'.concat(e,'"'))}return p()},o.registerLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!i.validateLanguage(e))throw new Error("Invalid language data");c[e.languageTag]=e,t&&f(e.languageTag)},o.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.languageTag;if(!c[e]){var r=e.split("-")[0],i=Object.keys(c).find(function(e){return e.split("-")[0]===r});return c[i]?void f(i):void f(t)}f(e)},o.registerLanguage(n),u=n.languageTag,t.exports=o},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,r){"use strict";t.exports=function(t){return{loadLanguagesInNode:function(r){return n=t,void r.forEach(function(t){var r=void 0;try{r=e("../languages/".concat(t))}catch(r){console.error('Unable to load "'.concat(t,'". No matching language file found.'))}r&&n.registerLanguage(r)});var n}}}},{}],6:[function(e,t,r){"use strict";var n=e("bignumber.js");function i(e,t,r){var i=new n(e._value),a=t;return r.isNumbro(t)&&(a=t._value),a=new n(a),e._value=i.minus(a).toNumber(),e}t.exports=function(e){return{add:function(t,r){return a=r,o=e,u=new n((i=t)._value),c=a,o.isNumbro(a)&&(c=a._value),c=new n(c),i._value=u.plus(c).toNumber(),i;var i,a,o,u,c},subtract:function(t,r){return i(t,r,e)},multiply:function(t,r){return a=r,o=e,u=new n((i=t)._value),c=a,o.isNumbro(a)&&(c=a._value),c=new n(c),i._value=u.times(c).toNumber(),i;var i,a,o,u,c},divide:function(t,r){return a=r,o=e,u=new n((i=t)._value),c=a,o.isNumbro(a)&&(c=a._value),c=new n(c),i._value=u.dividedBy(c).toNumber(),i;var i,a,o,u,c},set:function(t,r){return n=t,a=i=r,e.isNumbro(i)&&(a=i._value),n._value=a,n;var n,i,a},difference:function(t,r){return n=r,i(o=(a=e)(t._value),n,a),Math.abs(o._value);var n,a,o}}}},{"bignumber.js":1}],7:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=e("./globalState"),a=e("./validating"),o=e("./loading")(g),u=e("./unformatting"),c=e("./formatting")(g),s=e("./manipulating")(g),l=e("./parsing"),f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t}var t,r;return t=e,(r=[{key:"clone",value:function(){return g(this._value)}},{key:"format",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return c.format(this,e)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=l.parseFormat(e)),(e=c.formatOrDefault(e,i.currentCurrencyDefaultFormat())).output="currency",c.format(this,e)}},{key:"formatTime",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.output="time",c.format(this,e)}},{key:"binaryByteUnits",value:function(){return c.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return c.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return c.getByteUnit(this)}},{key:"difference",value:function(e){return s.difference(this,e)}},{key:"add",value:function(e){return s.add(this,e)}},{key:"subtract",value:function(e){return s.subtract(this,e)}},{key:"multiply",value:function(e){return s.multiply(this,e)}},{key:"divide",value:function(e){return s.divide(this,e)}},{key:"set",value:function(e){return s.set(this,p(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&n(t.prototype,r),e}();function p(e){var t=e;return g.isNumbro(e)?t=e._value:"string"==typeof e?t=g.unformat(e):isNaN(e)&&(t=NaN),t}function g(e){return new f(p(e))}g.version="2.1.2",g.isNumbro=function(e){return e instanceof f},g.language=i.currentLanguage,g.registerLanguage=i.registerLanguage,g.setLanguage=i.setLanguage,g.languages=i.languages,g.languageData=i.languageData,g.zeroFormat=i.setZeroFormat,g.defaultFormat=i.currentDefaults,g.setDefaults=i.setDefaults,g.defaultCurrencyFormat=i.currentCurrencyDefaultFormat,g.validate=a.validate,g.loadLanguagesInNode=o.loadLanguagesInNode,g.unformat=u.unformat,t.exports=g},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,r){"use strict";t.exports={parseFormat:function(e){var t,r,n,i,a,o,u,c,s,l,f,p,g,h,v,d,m,y,b,w,O=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(r=O,e=(n=(t=e).match(/^{([^}]*)}/))?(r.prefix=n[1],t.slice(n[0].length)):t,a=O,function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",t.base="general"):-1!==e.indexOf("b")?(t.output="byte",t.base="binary"):-1!==e.indexOf("d")?(t.output="byte",t.base="decimal"):-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time";t.output="percent"}else t.output="currency"}(e=(o=(i=e).match(/{([^}]*)}$/))?(a.postfix=o[1],i.slice(0,-o[0].length)):i,O),u=O,(c=e.match(/[1-9]+[0-9]*/))&&(u.totalLength=+c[0]),s=O,(l=e.split(".")[0].match(/0+/))&&(s.characteristic=l[0].length),function(e,t){if(-1!==e.indexOf(".")){var r=e.split(".")[0];t.optionalCharacteristic=-1===r.indexOf("0")}}(e,O),f=O,-1!==e.indexOf("a")&&(f.average=!0),g=O,-1!==(p=e).indexOf("K")?g.forceAverage="thousand":-1!==p.indexOf("M")?g.forceAverage="million":-1!==p.indexOf("B")?g.forceAverage="billion":-1!==p.indexOf("T")&&(g.forceAverage="trillion"),function(e,t){var r=e.split(".")[1];if(r){var n=r.match(/0+/);n&&(t.mantissa=n[0].length)}}(e,O),v=O,(h=e).match(/\[\.]/)?v.optionalMantissa=!0:h.match(/\./)&&(v.optionalMantissa=!1),d=O,-1!==e.indexOf(",")&&(d.thousandSeparated=!0),m=O,-1!==e.indexOf(" ")&&(m.spaceSeparated=!0),b=O,(y=e).match(/^\+?\([^)]*\)$/)&&(b.negative="parenthesis"),y.match(/^\+?-/)&&(b.negative="sign"),w=O,e.match(/^\+/)&&(w.forceSign=!0),O)}}},{}],9:[function(e,t,r){"use strict";var n=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function i(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}t.exports={unformat:function(t,r){var a,o,u,c=e("./globalState"),s=c.currentDelimiters(),l=c.currentCurrency().symbol,f=c.currentOrdinal(),p=c.getZeroFormat(),g=c.currentAbbreviations(),h=void 0;if("string"==typeof t)h=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;var r=e.split(":");if(3!==r.length)return!1;var n=+r[0],i=+r[1],a=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(a)}(t,s)?(a=t.split(":"),o=+a[0],u=+a[1],+a[2]+60*u+3600*o):function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,u=5<arguments.length?arguments[5]:void 0,c=6<arguments.length?arguments[6]:void 0;if(""!==e)return e===o?0:function e(t,r){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",o=3<arguments.length?arguments[3]:void 0,u=4<arguments.length?arguments[4]:void 0,c=5<arguments.length?arguments[5]:void 0,s=6<arguments.length?arguments[6]:void 0;if(!isNaN(+t))return+t;var l="",f=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==t)return-1*e(f,r,a,o,u,c,s);for(var p=0;p<n.length;p++){var g=n[p];if((l=t.replace(g.key,""))!==t)return e(l,r,a,o,u,c,s)*g.factor}if((l=t.replace("%",""))!==t)return e(l,r,a,o,u,c,s)/100;var h=parseFloat(t);if(!isNaN(h)){var v=o(h);if(v&&"."!==v&&(l=t.replace(new RegExp("".concat(i(v),"$")),""))!==t)return e(l,r,a,o,u,c,s);var d={};Object.keys(c).forEach(function(e){d[c[e]]=e});for(var m=Object.keys(d).sort().reverse(),y=m.length,b=0;b<y;b++){var w=m[b],O=d[w];if((l=t.replace(w,""))!==t){var x=void 0;switch(O){case"thousand":x=Math.pow(10,3);break;case"million":x=Math.pow(10,6);break;case"billion":x=Math.pow(10,9);break;case"trillion":x=Math.pow(10,12)}return e(l,r,a,o,u,c,s)*x}}}}(function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",n=e.replace(r,"");return n=(n=n.replace(new RegExp("([0-9])".concat(i(t.thousands),"([0-9])"),"g"),"$1$2")).replace(t.decimal,".")}(e,t,r),t,r,a,o,u,c)}(t,s,l,f,p,g,r);else{if("number"!=typeof t)return;h=t}if(void 0!==h)return h}}},{"./globalState":4}],10:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("./unformatting"),a=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,o={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return 0<=e},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},u={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(a)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function c(e){return!!i.unformat(e)}function s(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],a=Object.keys(e).map(function(i){if(!t[i])return console.error("".concat(r," Invalid key: ").concat(i)),!1;var a=e[i],u=t[i];if("string"==typeof u&&(u={type:u}),"format"===u.type){if(!s(a,o,"[Validate ".concat(i,"]"),!0))return!1}else if(n(a)!==u.type)return console.error("".concat(r," ").concat(i,' type mismatched: "').concat(u.type,'" expected, "').concat(n(a),'" provided')),!1;if(u.restrictions&&u.restrictions.length)for(var c=u.restrictions.length,l=0;l<c;l++){var f=u.restrictions[l],p=f.restriction,g=f.message;if(!p(a,e))return console.error("".concat(r," ").concat(i," invalid value: ").concat(g)),!1}return u.restriction&&!u.restriction(a,e)?(console.error("".concat(r," ").concat(i," invalid value: ").concat(u.message)),!1):u.validValues&&-1===u.validValues.indexOf(a)?(console.error("".concat(r," ").concat(i," invalid value: must be among ").concat(JSON.stringify(u.validValues),', "').concat(a,'" provided')),!1):!(u.children&&!s(a,u.children,"[Validate ".concat(i,"]")))});return i||a.push.apply(a,function(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(Object.keys(t).map(function(n){var i=t[n];if("string"==typeof i&&(i={type:i}),i.mandatory){var a=i.mandatory;if("function"==typeof a&&(a=a(e)),a&&void 0===e[n])return console.error("".concat(r,' Missing mandatory key "').concat(n,'"')),!1}return!0}))),a.reduce(function(e,t){return e&&t},!0)}function l(e){return s(e,o,"[Validate format]")}t.exports={validate:function(e,t){var r=c(e),n=l(t);return r&&n},validateFormat:l,validateInput:c,validateLanguage:function(e){return s(e,u,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)}}]);