|
|
import{G as te,$ as re,a0 as se,a3 as oe,u as ie,a2 as ne,C as le,r as D,a9 as ae,H as ce,e as j,o as T,c as J,f as B,R as Y,m as R,D as L,h as v,A as ue,g as w,w as _,z as fe,i as Z,L as he,t as me}from"./index-9b4667b6.js";import{g as pe}from"./analysis_results-1bd8be45.js";var ge=20,de=1,C=1e6,K=1e6,ve=-7,we=21,be=!1,F="[big.js] ",P=F+"Invalid ",z=P+"decimal places",_e=P+"rounding mode",Q=F+"Division by zero",u={},E=void 0,Ee=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function y(){function e(r){var t=this;if(!(t instanceof e))return r===E?y():new e(r);if(r instanceof e)t.s=r.s,t.e=r.e,t.c=r.c.slice();else{if(typeof r!="string"){if(e.strict===!0&&typeof r!="bigint")throw TypeError(P+"value");r=r===0&&1/r<0?"-0":String(r)}xe(t,r)}t.constructor=e}return e.prototype=u,e.DP=ge,e.RM=de,e.NE=ve,e.PE=we,e.strict=be,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function xe(e,r){var t,o,s;if(!Ee.test(r))throw Error(P+"number");for(e.s=r.charAt(0)=="-"?(r=r.slice(1),-1):1,(t=r.indexOf("."))>-1&&(r=r.replace(".","")),(o=r.search(/e/i))>0?(t<0&&(t=o),t+=+r.slice(o+1),r=r.substring(0,o)):t<0&&(t=r.length),s=r.length,o=0;o<s&&r.charAt(o)=="0";)++o;if(o==s)e.c=[e.e=0];else{for(;s>0&&r.charAt(--s)=="0";);for(e.e=t-o-1,e.c=[],t=0;o<=s;)e.c[t++]=+r.charAt(o++)}return e}function S(e,r,t,o){var s=e.c;if(t===E&&(t=e.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(_e);if(r<1)o=t===3&&(o||!!s[0])||r===0&&(t===1&&s[0]>=5||t===2&&(s[0]>5||s[0]===5&&(o||s[1]!==E))),s.length=1,o?(e.e=e.e-r+1,s[0]=1):s[0]=e.e=0;else if(r<s.length){if(o=t===1&&s[r]>=5||t===2&&(s[r]>5||s[r]===5&&(o||s[r+1]!==E||s[r-1]&1))||t===3&&(o||!!s[0]),s.length=r,o){for(;++s[--r]>9;)if(s[r]=0,r===0){++e.e,s.unshift(1);break}}for(r=s.length;!s[--r];)s.pop()}return e}function O(e,r,t){var o=e.e,s=e.c.join(""),i=s.length;if(r)s=s.charAt(0)+(i>1?"."+s.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(o>0)if(++o>i)for(o-=i;o--;)s+="0";else o<i&&(s=s.slice(0,o)+"."+s.slice(o));else i>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&t?"-"+s:s}u.abs=function(){var e=new this.constructor(this);return e.s=1,e};u.cmp=function(e){var r,t=this,o=t.c,s=(e=new t.constructor(e)).c,i=t.s,c=e.s,n=t.e,a=e.e;if(!o[0]||!s[0])return o[0]?i:s[0]?-c:0;if(i!=c)return i;if(r=i<0,n!=a)return n>a^r?1:-1;for(c=(n=o.length)<(a=s.length)?n:a,i=-1;++i<c;)if(o[i]!=s[i])return o[i]>s[i]^r?1:-1;return n==a?0:n>a^r?1:-1};u.div=function(e){var r=this,t=r.constructor,o=r.c,s=(e=new t(e)).c,i=r.s==e.s?1:-1,c=t.DP;if(c!==~~c||c<0||c>C)throw Error(z);if(!s[0])throw Error(Q);if(!o[0])return e.s=i,e.c=[e.e=0],e;var n,a,l,g,f,d=s.slice(),x=n=s.length,V=o.length,h=o.slice(0,n),p=h.length,N=e,I=N.c=[],M=0,A=c+(N.e=r.e-e.e)+1;for(N.s=i,i=A<0?0:A,d.unshift(0);p++<n;)h.push(0);do{for(l=0;l<10;l++){if(n!=(p=h.length))g=n>p?1:-1;else for(f=-1,g=0;++f<n;)if(s[f]!=h[f]){g=s[f]>h[f]?1:-1;break}if(g<0){for(a=p==n?s:d;p;){if(h[--p]<a[p]){for(f=p;f&&!h[--f];)h[f]=9;--h[f],h[p]+=10}h[p]-=a[p]}for(;!h[0];)h.shift()}else break}I[M++]=g?l:++l,h[0]&&g?h[p]=o[x]||0:h=[o[x]]}while((x++<V||h[0]!==E)&&i--);return!I[0]&&M!=1&&(I.shift(),N.e--,A--),M>A&&S(N,A,t.RM,h[0]!==E),N};u.eq=function(e){return this.cmp(e)===0};u.gt=function(e){return this.cmp(e)>0};u.gte=function(e){return this.cmp(e)>-1};u.lt=function(e){return this.cmp(e)<0};u.lte=function(e){return this.cmp(e)<1};u.minus=u.sub=function(e){var r,t,o,s,i=this,c=i.constructor,n=i.s,a=(e=new c(e)).s;if(n!=a)return e.s=-a,i.plus(e);var l=i.c.slice(),g=i.e,f=e.c,d=e.e;if(!l[0]||!f[0])return f[0]?e.s=-a:l[0]?e=new c(i):e.s=1,e;if(n=g-d){for((s=n<0)?(n=-n,o=l):(d=g,o=f),o.reverse(),a=n;a--;)o.push(0);o.reverse()}else for(t=((s=l.length<f.length)?l:f).length,n=a=0;a<t;a++)if(l[a]!=f[a]){s=l[a]<f[a];break}if(s&&(o=l,l=f,f=o,e.s=-e.s),(a=(t=f.length)-(r=l.length))>0)for(;a--;)l[r++]=0;for(a=r;t>n;){if(l[--t]<f[t]){for(r=t;r&&!l[--r];)l[r]=9;--l[r],l[t]+=10}l[t]-=f[t]}for(;l[--a]===0;)l.pop();for(;l[0]===0;)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e};u.mod=function(e){var r,t=this,o=t.constructor,s=t.s,i=(e=new o(e)).s;if(!e.c[0])thro
|