@nocobase/app 1.6.0-alpha.8 → 1.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/.umirc.ts +7 -4
- package/client/public/browser-checker.js +10 -0
- package/dist/client/browser-checker.js +10 -0
- package/dist/client/index.html +2 -2
- package/dist/client/index.html.tpl +2 -2
- package/dist/client/npm._at_formulajs.0bdd8ac2.async.js +1 -0
- package/dist/client/p__index.36844961.async.js +1584 -0
- package/dist/client/{umi.73a8f829.js → umi.67cb79e0.js} +1 -1
- package/lib/config/cache.d.ts +0 -1
- package/lib/config/index.d.ts +0 -1
- package/package.json +6 -6
- package/src/index.ts +0 -1
- package/dist/client/npm._at_formulajs.ff63776b.async.js +0 -1
- package/dist/client/p__index.aa0ec40a.async.js +0 -1590
package/client/.umirc.ts
CHANGED
|
@@ -20,12 +20,12 @@ export default defineConfig({
|
|
|
20
20
|
metas: [{ name: 'viewport', content: 'initial-scale=0.1' }],
|
|
21
21
|
links: [{ rel: 'stylesheet', href: `${appPublicPath}global.css` }],
|
|
22
22
|
headScripts: [
|
|
23
|
-
{
|
|
24
|
-
src: `${appPublicPath}browser-checker.js`,
|
|
25
|
-
},
|
|
26
23
|
{
|
|
27
24
|
content: isDevCmd
|
|
28
|
-
?
|
|
25
|
+
? `
|
|
26
|
+
window['__nocobase_public_path__'] = "${process.env.APP_PUBLIC_PATH || '/'}";
|
|
27
|
+
window['__nocobase_dev_public_path__'] = "/";
|
|
28
|
+
`
|
|
29
29
|
: `
|
|
30
30
|
window['__webpack_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
31
31
|
window['__nocobase_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
@@ -36,6 +36,9 @@ export default defineConfig({
|
|
|
36
36
|
window['__nocobase_ws_path__'] = '{{env.WS_PATH}}';
|
|
37
37
|
`,
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
src: `${appPublicPath}browser-checker.js?v=1`,
|
|
41
|
+
},
|
|
39
42
|
],
|
|
40
43
|
cacheDirectoryPath: process.env.APP_CLIENT_CACHE_DIR || `node_modules/.cache`,
|
|
41
44
|
outputPath: path.resolve(__dirname, '../dist/client'),
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
const basename = window['__nocobase_public_path__'] || '/';
|
|
2
|
+
let currentPath = window.location.pathname;
|
|
3
|
+
if (currentPath === basename.slice(0, -1)) {
|
|
4
|
+
const newUrl = `${window.location.origin}${basename}${window.location.search}${window.location.hash}`;
|
|
5
|
+
window.location.replace(newUrl);
|
|
6
|
+
} else if (!currentPath.startsWith(basename)) {
|
|
7
|
+
let newPath = basename + (currentPath.startsWith('/') ? currentPath.slice(1) : currentPath);
|
|
8
|
+
let newUrl = window.location.origin + newPath + window.location.search + window.location.hash;
|
|
9
|
+
window.location.replace(newUrl);
|
|
10
|
+
}
|
|
1
11
|
showLog = true;
|
|
2
12
|
function log(m) {
|
|
3
13
|
if (window.console && showLog) {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
const basename = window['__nocobase_public_path__'] || '/';
|
|
2
|
+
let currentPath = window.location.pathname;
|
|
3
|
+
if (currentPath === basename.slice(0, -1)) {
|
|
4
|
+
const newUrl = `${window.location.origin}${basename}${window.location.search}${window.location.hash}`;
|
|
5
|
+
window.location.replace(newUrl);
|
|
6
|
+
} else if (!currentPath.startsWith(basename)) {
|
|
7
|
+
let newPath = basename + (currentPath.startsWith('/') ? currentPath.slice(1) : currentPath);
|
|
8
|
+
let newUrl = window.location.origin + newPath + window.location.search + window.location.hash;
|
|
9
|
+
window.location.replace(newUrl);
|
|
10
|
+
}
|
|
1
11
|
showLog = true;
|
|
2
12
|
function log(m) {
|
|
3
13
|
if (window.console && showLog) {
|
package/dist/client/index.html
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
<link rel="shortcut icon" href="/favicon/favicon.ico">
|
|
6
6
|
<title>Loading...</title>
|
|
7
7
|
<link rel="stylesheet" href="/global.css">
|
|
8
|
-
<script src="/browser-checker.js"></script>
|
|
9
8
|
<script>
|
|
10
9
|
window['__webpack_public_path__'] = '/';
|
|
11
10
|
window['__nocobase_public_path__'] = '/';
|
|
@@ -15,9 +14,10 @@
|
|
|
15
14
|
window['__nocobase_ws_url__'] = '';
|
|
16
15
|
window['__nocobase_ws_path__'] = '/ws';
|
|
17
16
|
</script>
|
|
17
|
+
<script src="/browser-checker.js?v=1"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
|
-
<script src="/umi.
|
|
21
|
+
<script src="/umi.67cb79e0.js"></script>
|
|
22
22
|
|
|
23
23
|
</body></html>
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
<link rel="shortcut icon" href="{{env.APP_PUBLIC_PATH}}favicon/favicon.ico">
|
|
6
6
|
<title>Loading...</title>
|
|
7
7
|
<link rel="stylesheet" href="{{env.APP_PUBLIC_PATH}}global.css">
|
|
8
|
-
<script src="{{env.APP_PUBLIC_PATH}}browser-checker.js"></script>
|
|
9
8
|
<script>
|
|
10
9
|
window['__webpack_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
11
10
|
window['__nocobase_public_path__'] = '{{env.APP_PUBLIC_PATH}}';
|
|
@@ -15,9 +14,10 @@
|
|
|
15
14
|
window['__nocobase_ws_url__'] = '{{env.WS_URL}}';
|
|
16
15
|
window['__nocobase_ws_path__'] = '{{env.WS_PATH}}';
|
|
17
16
|
</script>
|
|
17
|
+
<script src="{{env.APP_PUBLIC_PATH}}browser-checker.js?v=1"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
|
-
<script src="/umi.
|
|
21
|
+
<script src="/umi.67cb79e0.js"></script>
|
|
22
22
|
|
|
23
23
|
</body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[3607],{11590:function(kc,At,Ln){Ln.r(At),Ln.d(At,{ABS:function(){return Ze},ACCRINT:function(){return Wi},ACCRINTM:function(){return ji},ACOS:function(){return ze},ACOSH:function(){return Je},ACOT:function(){return ke},ACOTH:function(){return de},AGGREGATE:function(){return ye},AMORDEGRC:function(){return Ki},AMORLINC:function(){return Qi},AND:function(){return Gc},ARABIC:function(){return xe},ASC:function(){return pr},ASIN:function(){return ve},ASINH:function(){return me},ATAN:function(){return be},ATAN2:function(){return _e},ATANH:function(){return nu},AVEDEV:function(){return se},AVERAGE:function(){return tn},AVERAGEA:function(){return mn},AVERAGEIF:function(){return le},AVERAGEIFS:function(){return Ee},BAHTTEXT:function(){return Wr},BASE:function(){return tu},BESSELI:function(){return Hf},BESSELJ:function(){return Yf},BESSELK:function(){return Bf},BESSELY:function(){return Gf},BETA:function(){return Tn},BETADIST:function(){return To},BETAINV:function(){return So},BIN2DEC:function(){return Xf},BIN2HEX:function(){return pf},BIN2OCT:function(){return Wf},BINOM:function(){return gn},BINOMDIST:function(){return Ao},BITAND:function(){return jf},BITLSHIFT:function(){return Kf},BITOR:function(){return Qf},BITRSHIFT:function(){return qf},BITXOR:function(){return $f},CEILING:function(){return m},CEILINGMATH:function(){return Do},CEILINGPRECISE:function(){return Ro},CELL:function(){return hr},CHAR:function(){return Ht},CHIDIST:function(){return Co},CHIDISTRT:function(){return Oo},CHIINV:function(){return Lo},CHIINVRT:function(){return Po},CHISQ:function(){return Z},CHITEST:function(){return Uo},CHOOSE:function(){return Ur},CLEAN:function(){return jr},CODE:function(){return Yt},COLUMN:function(){return ar},COLUMNS:function(){return Fr},COMBIN:function(){return Nn},COMBINA:function(){return ru},COMPLEX:function(){return B},CONCAT:function(){return Kr},CONCATENATE:function(){return Bt},CONFIDENCE:function(){return bn},CONVERT:function(){return Zf},CORREL:function(){return he},COS:function(){return eu},COSH:function(){return uu},COT:function(){return fu},COTH:function(){return ou},COUNT:function(){return Sn},COUNTA:function(){return An},COUNTBLANK:function(){return Xt},COUNTIF:function(){return ge},COUNTIFS:function(){return Ie},COUPDAYBS:function(){return qi},COUPDAYS:function(){return $i},COUPDAYSNC:function(){return Zi},COUPNCD:function(){return zi},COUPNUM:function(){return Ji},COUPPCD:function(){return ki},COVAR:function(){return ao},COVARIANCE:function(){return In},COVARIANCEP:function(){return Fo},COVARIANCES:function(){return Vo},CRITBINOM:function(){return wo},CSC:function(){return iu},CSCH:function(){return cu},CUMIPMT:function(){return di},CUMPRINC:function(){return yi},DATE:function(){return Mf},DATEDIF:function(){return b},DATEVALUE:function(){return Nf},DAVERAGE:function(){return Li},DAY:function(){return Tf},DAYS:function(){return fn},DAYS360:function(){return _},DB:function(){return xi},DBCS:function(){return Qr},DCOUNT:function(){return Pi},DCOUNTA:function(){return Ui},DDB:function(){return vi},DEC2BIN:function(){return zf},DEC2HEX:function(){return Jf},DEC2OCT:function(){return kf},DECIMAL:function(){return su},DEGREES:function(){return lu},DELTA:function(){return df},DEVSQ:function(){return Me},DGET:function(){return ai},DISC:function(){return mi},DMAX:function(){return Fi},DMIN:function(){return Vi},DOLLAR:function(){return qr},DOLLARDE:function(){return bi},DOLLARFR:function(){return _i},DPRODUCT:function(){return wi},DSTDEV:function(){return Hi},DSTDEVP:function(){return Yi},DSUM:function(){return Bi},DURATION:function(){return nc},DVAR:function(){return Gi},DVARP:function(){return Xi},EDATE:function(){return Sf},EFFECT:function(){return tc},EOMONTH:function(){return Af},ERF:function(){return Et},ERFC:function(){return ht},ERFCPRECISE:function(){return Ho},ERFPRECISE:function(){return Yo},ERROR:function(){return Ut},EVEN:function(){return Eu},EXACT:function(){return $r},EXP:function(){return hu},EXPON:function(){return _n},EXPONDIST:function(){return Bo},F:function(){return z},FACT:function(){return y},FACTDOUBLE:function(){return Zt},FALSE:function(){return Xc},FDIST:function(){return Go},FDISTRT:function(){return Xo},FIND:function(){return Zr},FINV:function(){return po},FINVRT:function(){return Wo},FISHER:function(){return Ne},FISHERINV:function(){return Te},FIXED:function(){return Gt},FLOOR:function(){return un},FLOORMATH:function(){return jo},FLOORPRECISE:function(){return Ko},FORECAST:function(){return pt},FREQUENCY:function(){return Se},FTEST:function(){return Qo},FV:function(){return cn},FVSCHEDULE:function(){return rc},GAMMA:function(){return Dn},GAMMADIST:function(){return qo},GAMMAINV:function(){return $o},GAMMALN:function(){return nt},GAMMALNPRECISE:function(){return Zo},GAUSS:function(){return Ae},GCD:function(){return gu},GEOMEAN:function(){return De},GESTEP:function(){return yf},GROWTH:function(){return Re},HARMEAN:function(){return Ce},HEX2BIN:function(){return xf},HEX2DEC:function(){return vf},HEX2OCT:function(){return mf},HLOOKUP:function(){return Vr},HOUR:function(){return Df},HYPGEOM:function(){return tt},HYPGEOMDIST:function(){return zo},IF:function(){return pc},IFERROR:function(){return jc},IFNA:function(){return Kc},IFS:function(){return Wc},IMABS:function(){return gt},IMAGINARY:function(){return U},IMARGUMENT:function(){return It},IMCONJUGATE:function(){return bf},IMCOS:function(){return Zn},IMCOSH:function(){return yt},IMCOT:function(){return _f},IMCSC:function(){return so},IMCSCH:function(){return lo},IMDIV:function(){return on},IMEXP:function(){return no},IMLN:function(){return to},IMLOG10:function(){return ro},IMLOG2:function(){return eo},IMPOWER:function(){return uo},IMPRODUCT:function(){return fo},IMREAL:function(){return a},IMSEC:function(){return oo},IMSECH:function(){return io},IMSIN:function(){return zn},IMSINH:function(){return xt},IMSQRT:function(){return co},IMSUB:function(){return Eo},IMSUM:function(){return ho},IMTAN:function(){return go},INDEX:function(){return wr},INFO:function(){return gr},INT:function(){return Iu},INTERCEPT:function(){return Oe},INTRATE:function(){return ec},IPMT:function(){return bt},IRR:function(){return uc},ISBLANK:function(){return Ir},ISERR:function(){return at},ISERROR:function(){return Yn},ISEVEN:function(){return Mr},ISFORMULA:function(){return Nr},ISLOGICAL:function(){return Ft},ISNA:function(){return Tr},ISNONTEXT:function(){return Sr},ISNUMBER:function(){return Bn},ISO:function(){return Mu},ISODD:function(){return Ar},ISOWEEKNUM:function(){return kt},ISPMT:function(){return fc},ISREF:function(){return Dr},ISTEXT:function(){return Vt},KURT:function(){return Le},LARGE:function(){return Wt},LCM:function(){return Nu},LEFT:function(){return zr},LEN:function(){return Jr},LINEST:function(){return rt},LN:function(){return Tu},LOG:function(){return Su},LOG10:function(){return Au},LOGEST:function(){return Pe},LOGINV:function(){return Jo},LOGNORM:function(){return Mn},LOGNORMDIST:function(){return ko},LOGNORMINV:function(){return yo},LOOKUP:function(){return Hr},LOWER:function(){return kr},MATCH:function(){return Yr},MAX:function(){return Gn},MAXA:function(){return Ue},MAXIFS:function(){return ae},MDURATION:function(){return oc},MEDIAN:function(){return jt},MID:function(){return dr},MIN:function(){return Xn},MINA:function(){return Fe},MINIFS:function(){return Ve},MINUTE:function(){return Rf},MIRR:function(){return ic},MMULT:function(){return Du},MOD:function(){return Ru},MODE:function(){return rn},MODEMULT:function(){return xo},MODESNGL:function(){return vo},MONTH:function(){return Cf},MROUND:function(){return Cu},MULTINOMIAL:function(){return Ou},MUNIT:function(){return Lu},N:function(){return Rr},NA:function(){return Cr},NEGBINOM:function(){return et},NEGBINOMDIST:function(){return mo},NETWORKDAYS:function(){return Qn},NETWORKDAYSINTL:function(){return bo},NOMINAL:function(){return cc},NORM:function(){return J},NORMDIST:function(){return _o},NORMINV:function(){return ni},NORMSDIST:function(){return ti},NORMSINV:function(){return ri},NOT:function(){return Qc},NOW:function(){return Of},NPER:function(){return sc},NPV:function(){return St},NUMBERVALUE:function(){return yr},OCT2BIN:function(){return Io},OCT2DEC:function(){return Mo},OCT2HEX:function(){return No},ODD:function(){return Pu},ODDFPRICE:function(){return lc},ODDFYIELD:function(){return Ec},ODDLPRICE:function(){return hc},ODDLYIELD:function(){return gc},OR:function(){return qc},PDURATION:function(){return Ic},PEARSON:function(){return Kt},PERCENTILE:function(){return Q},PERCENTILEEXC:function(){return ei},PERCENTILEINC:function(){return ui},PERCENTRANK:function(){return Rn},PERCENTRANKEXC:function(){return fi},PERCENTRANKINC:function(){return oi},PERMUT:function(){return we},PERMUTATIONA:function(){return He},PHI:function(){return Ye},PI:function(){return Uu},PMT:function(){return On},POISSON:function(){return ut},POISSONDIST:function(){return ii},POWER:function(){return zt},PPMT:function(){return Mc},PRICE:function(){return Nc},PRICEDISC:function(){return Tc},PRICEMAT:function(){return Sc},PROB:function(){return Be},PRODUCT:function(){return Wn},PRONETIC:function(){return xr},PROPER:function(){return vr},PV:function(){return Ac},QUARTILE:function(){return en},QUARTILEEXC:function(){return ci},QUARTILEINC:function(){return si},QUOTIENT:function(){return au},RADIANS:function(){return Fu},RAND:function(){return Vu},RANDBETWEEN:function(){return wu},RANK:function(){return Cn},RANKAVG:function(){return li},RANKEQ:function(){return Ei},RATE:function(){return Dc},RECEIVED:function(){return Rc},REPLACE:function(){return mr},REPT:function(){return K},RIGHT:function(){return br},ROMAN:function(){return Hu},ROUND:function(){return Jt},ROUNDDOWN:function(){return Yu},ROUNDUP:function(){return Bu},ROW:function(){return Ge},ROWS:function(){return Br},RRI:function(){return Cc},RSQ:function(){return Xe},SEARCH:function(){return _r},SEC:function(){return Gu},SECH:function(){return Xu},SECOND:function(){return Lf},SERIESSUM:function(){return pu},SHEET:function(){return Or},SHEETS:function(){return Lr},SIGN:function(){return Wu},SIN:function(){return ju},SINH:function(){return Ku},SKEW:function(){return ft},SKEWP:function(){return hi},SLN:function(){return Oc},SLOPE:function(){return pe},SMALL:function(){return Qt},SORT:function(){return Gr},SQRT:function(){return Qu},SQRTPI:function(){return qu},STANDARDIZE:function(){return We},STDEV:function(){return p},STDEVA:function(){return je},STDEVP:function(){return gi},STDEVPA:function(){return Ke},STDEVS:function(){return Ii},STEYX:function(){return Qe},SUBSTITUTE:function(){return ne},SUBTOTAL:function(){return $u},SUM:function(){return x},SUMIF:function(){return Zu},SUMIFS:function(){return zu},SUMPRODUCT:function(){return Ju},SUMSQ:function(){return ku},SUMX2MY2:function(){return du},SUMX2PY2:function(){return yu},SUMXMY2:function(){return xu},SWITCH:function(){return zc},SYD:function(){return Lc},T:function(){return X},TAN:function(){return vu},TANH:function(){return mu},TBILLEQ:function(){return Pc},TBILLPRICE:function(){return Uc},TBILLYIELD:function(){return ac},TDIST:function(){return Mi},TDISTRT:function(){return Ni},TEXT:function(){return te},TEXTJOIN:function(){return re},TIME:function(){return Pf},TIMEVALUE:function(){return Uf},TINV:function(){return Ti},TODAY:function(){return af},TRANSPOSE:function(){return Xr},TREND:function(){return qe},TRIM:function(){return ee},TRIMMEAN:function(){return $e},TRUE:function(){return $c},TRUNC:function(){return bu},TTEST:function(){return Si},TYPE:function(){return Pr},UNICHAR:function(){return ue},UNICODE:function(){return fe},UNIQUE:function(){return vn},UPPER:function(){return oe},VALUE:function(){return ie},VAR:function(){return G},VARA:function(){return qt},VARP:function(){return Ai},VARPA:function(){return $t},VARS:function(){return Di},VDB:function(){return Fc},VLOOKUP:function(){return wt},WEEKDAY:function(){return Ff},WEEKNUM:function(){return Vf},WEIBULL:function(){return ot},WEIBULLDIST:function(){return Ri},WORKDAY:function(){return qn},WORKDAYINTL:function(){return Ci},XIRR:function(){return Vc},XNPV:function(){return wc},XOR:function(){return Zc},YEAR:function(){return wf},YEARFRAC:function(){return st},YIELD:function(){return Hc},YIELDDISC:function(){return Yc},YIELDMAT:function(){return Bc},Z:function(){return it},ZTEST:function(){return Oi},utils:function(){return Jc}});var M=Ln(2162),Pn=Ln(15765);const Jn=new Error("#NULL!"),H=new Error("#DIV/0!"),c=new Error("#VALUE!"),sn=new Error("#REF!"),Un=new Error("#NAME?"),E=new Error("#NUM!"),A=new Error("#N/A"),kn=new Error("#ERROR!"),Dt=new Error("#GETTING_DATA");var _t=Object.freeze({__proto__:null,data:Dt,div0:H,error:kn,na:A,name:Un,nil:Jn,num:E,ref:sn,value:c});const nr="=",tr=[">",">=","<","<=","=","<>"],Rt="operator",Ct="literal",rr=[Rt,Ct],an=Rt,v=Ct;function k(n,t){if(rr.indexOf(t)===-1)throw new Error("Unsupported token type: "+t);return{value:n,type:t}}function er(n){return typeof n!="string"||/^\d+(\.\d+)?$/.test(n)&&(n=n.indexOf(".")===-1?parseInt(n,10):parseFloat(n)),n}function ur(n){const t=n.length,r=[];let e=0,u="",f="";for(;e<t;){const i=n.charAt(e);switch(i){case">":case"<":case"=":f=f+i,u.length>0&&(r.push(u),u="");break;default:f.length>0&&(r.push(f),f=""),u=u+i;break}e++}return u.length>0&&r.push(u),f.length>0&&r.push(f),r}function fr(n){let t="";const r=[];for(let e=0;e<n.length;e++){const u=n[e];e===0&&tr.indexOf(u)>=0?r.push(k(u,an)):t+=u}return t.length>0&&r.push(k(er(t),v)),r.length>0&&r[0].type!==an&&r.unshift(k(nr,an)),r}function or(n){const t=[];let r;for(let e=0;e<n.length;e++){const u=n[e];switch(u.type){case an:r=u.value;break;case v:t.push(u.value);break}}return ir(t,r)}function ir(n,t){let r=!1;switch(t){case">":r=n[0]>n[1];break;case">=":r=n[0]>=n[1];break;case"<":r=n[0]<n[1];break;case"<=":r=n[0]<=n[1];break;case"=":r=n[0]==n[1];break;case"<>":r=n[0]!=n[1];break}return r}function ln(n){return fr(ur(n))}const En=or;function Fn(n){const t=[];return Y(n,r=>{t.push(r)}),t}function Y(n,t){let r=-1;const e=n.length;for(;++r<e&&t(n[r],r,n)!==!1;);return n}function dn(n){let t=n.length,r;for(;t--;)if(r=n[t],typeof r!="number"){if(r===!0){n[t]=1;continue}if(r===!1){n[t]=0;continue}if(typeof r=="string"){const e=o(r);n[t]=e instanceof Error?0:e}}return n}function Ot(n,t){if(!n)return c;(!n.every(u=>Array.isArray(u))||n.length===0)&&(n=[[...n]]),n.map((u,f)=>{u.map((i,s)=>{i||(n[f][s]=0)})});const r=n.reduce((u,f,i)=>f.length>n[u].length?i:u,0),e=n[r].length;return n.map(u=>[...u,...Array(e-u.length).fill(0)])}function I(){let n;if(arguments.length===1){const t=arguments[0];n=sr(t)?Fn.apply(null,arguments):[t]}else n=Array.from(arguments);for(;!lr(n);)n=yn(n);return n}function yn(n){return!n||!n.reduce?[n]:n.reduce((t,r)=>{const e=Array.isArray(t),u=Array.isArray(r);return e&&u?t.concat(r):e?(t.push(r),t):u?[t].concat(r):[t,r]})}function cr(n,t){return t=t||1,!n||typeof n.slice!="function"?n:n.slice(0,n.length-t)}function sr(n){return n!=null&&typeof n.length=="number"&&typeof n!="string"}function lr(n){if(!n)return!1;for(let t=0;t<n.length;++t)if(Array.isArray(n[t]))return!1;return!0}function F(n,t){return t=t||1,!n||typeof n.slice!="function"?n:n.slice(t)}function Vn(n){return n?n[0].map((t,r)=>n.map(e=>e[r])):c}function q(n,t){let r=null;return Y(n,(e,u)=>{if(e[0]===t)return r=u,!1}),r??c}function R(){for(let n=0;n<arguments.length;n++)if(arguments[n]instanceof Error)return arguments[n]}function h(){let n=arguments.length;for(;n--;)if(arguments[n]instanceof Error)return!0;return!1}function Lt(n){return Math.round(n*1e14)/1e14}function d(){return I.apply(null,arguments).filter(t=>typeof t=="number")}function Er(n){n<60&&(n+=1);const r=Math.floor(n-25569)*86400,e=new Date(r*1e3),u=n-Math.floor(n)+1e-7;let f=Math.floor(86400*u);const i=f%60;f-=i;const s=Math.floor(f/(60*60)),l=Math.floor(f/60)%60;let g=e.getUTCDate(),T=e.getUTCMonth();return n>=60&&n<61&&(g=29,T=1),new Date(e.getUTCFullYear(),T,g,s,l,i)}function xn(n){if(typeof n=="boolean"||n instanceof Error)return n;if(typeof n=="number")return n!==0;if(typeof n=="string"){const t=n.toUpperCase();if(t==="TRUE")return!0;if(t==="FALSE")return!1}return n instanceof Date&&!isNaN(n)?!0:c}function O(n){if(!isNaN(n)){if(n instanceof Date)return new Date(n);const t=parseFloat(n);return t<0||t>=2958466?E:Er(t)}return typeof n=="string"&&(n=/(\d{4})-(\d\d?)-(\d\d?)$/.test(n)?new Date(n+"T00:00:00.000"):new Date(n),!isNaN(n))?n:c}function Pt(n){let t=n.length,r;for(;t--;){if(r=O(n[t]),r===c)return r;n[t]=r}return n}function o(n){return n instanceof Error?n:n==null?0:(typeof n=="boolean"&&(n=+n),!isNaN(n)&&n!==""?parseFloat(n):c)}function N(n){let t;if(!n||(t=n.length)===0)return c;let r;for(;t--;){if(n[t]instanceof Error)return n[t];if(r=o(n[t]),r instanceof Error)return r;n[t]=r}return n}function V(n){return n instanceof Error?n:n==null?"":n.toString()}function wn(){let n=arguments.length;for(;n--;)if(typeof arguments[n]=="string")return!0;return!1}function Hn(){const n=Fn(arguments),t=N(I(n.shift()));if(t instanceof Error)return t;const r=n,e=r.length/2;for(let f=0;f<e;f++)r[f*2]=I(r[f*2]);let u=[];for(let f=0;f<t.length;f++){let i=!1;for(let s=0;s<e;s++){const l=r[s*2][f],g=r[s*2+1],T=g===void 0||g==="*";let D=!1;if(T)D=!0;else{const C=ln(g+""),S=[k(l,v)].concat(C);D=En(S)}if(!D){i=!1;break}i=!0}i&&u.push(t[f])}return u}function hn(n){return n!=null}function hr(){throw new Error("CELL is not implemented")}const Ut={};Ut.TYPE=n=>{switch(n){case Jn:return 1;case H:return 2;case c:return 3;case sn:return 4;case Un:return 5;case E:return 6;case A:return 7;case Dt:return 8}return A};function gr(){throw new Error("INFO is not implemented")}function Ir(n){return n===null}function at(n){return[c,sn,H,E,Un,Jn].indexOf(n)>=0||typeof n=="number"&&(isNaN(n)||!isFinite(n))}function Yn(n){return at(n)||n===A}function Mr(n){return!(Math.floor(Math.abs(n))&1)}function Nr(){throw new Error("ISFORMULA is not implemented")}function Ft(n){return n===!0||n===!1}function Tr(n){return n===A}function Sr(n){return typeof n!="string"}function Bn(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function Ar(n){return!!(Math.floor(Math.abs(n))&1)}function Dr(){throw new Error("ISREF is not implemented")}function Vt(n){return typeof n=="string"}function Rr(n){return Bn(n)?n:n instanceof Date?n.getTime():n===!0?1:n===!1?0:Yn(n)?n:0}function Cr(){return A}function Or(){throw new Error("SHEET is not implemented")}function Lr(){throw new Error("SHEETS is not implemented")}function Pr(n){if(Bn(n))return 1;if(Vt(n))return 2;if(Ft(n))return 4;if(Yn(n))return 16;if(Array.isArray(n))return 64}function Ur(){if(arguments.length<2)return A;const n=arguments[0];return n<1||n>254||arguments.length<n+1?c:arguments[n]}function ar(n,t){if(arguments.length!==2)return A;if(t<0)return E;if(!(n instanceof Array)||typeof t!="number")return c;if(n.length!==0)return M.col(n,t)}function Fr(n){return arguments.length!==1?A:n instanceof Array?n.length===0?0:M.cols(n):c}function Vr(n,t,r,e){return wt(n,Vn(t),r,e)}function wr(n,t,r){const e=R(n,t,r);if(e)return e;if(!Array.isArray(n))return c;const u=n.length>0&&!Array.isArray(n[0]);return u&&!r?(r=t,t=1):(r=r||1,t=t||1),r<0||t<0?c:u&&t===1&&r<=n.length?n[r-1]:t<=n.length&&r<=n[t-1].length?n[t-1][r-1]:sn}function Hr(n,t,r){t=I(t),r=r?I(r):t;const e=typeof n=="number";let u=A;for(let f=0;f<t.length;f++){if(t[f]===n)return r[f];if(e&&t[f]<=n||typeof t[f]=="string"&&t[f].localeCompare(n)<0)u=r[f];else if(e&&t[f]>n)return u}return u}function Yr(n,t,r){if(!n&&n!==0||!t||(arguments.length===2&&(r=1),t=I(t),!(t instanceof Array))||r!==-1&&r!==0&&r!==1)return A;let e,u;for(let f=0;f<t.length;f++)if(r===1){if(t[f]===n)return f+1;t[f]<n&&(u?t[f]>u&&(e=f+1,u=t[f]):(e=f+1,u=t[f]))}else if(r===0){if(typeof n=="string"&&typeof t[f]=="string"){const i=n.toLowerCase().replace(/\?/g,".").replace(/\*/g,".*").replace(/~/g,"\\").replace(/\+/g,"\\+").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\[/g,"\\[").replace(/\]/g,"\\]");if(new RegExp("^"+i+"$").test(t[f].toLowerCase()))return f+1}else if(t[f]===n)return f+1}else if(r===-1){if(t[f]===n)return f+1;t[f]>n&&(u?t[f]<u&&(e=f+1,u=t[f]):(e=f+1,u=t[f]))}return e||A}function Br(n){return arguments.length!==1?A:n instanceof Array?n.length===0?0:M.rows(n):c}function Gr(n,t=1,r=1,e=!1){if(!n||!Array.isArray(n))return A;if(n.length===0)return 0;if(t=o(t),!t||t<1||(r=o(r),r!==1&&r!==-1))return c;if(e=xn(e),typeof e!="boolean")return Un;const u=s=>s.sort((l,g)=>(l=V(l[t-1]),g=V(g[t-1]),r===1?l<g?r*-1:r:l>g?r:r*-1)),f=Ot(n),i=e?Vn(f):f;return t>=1&&t<=i[0].length?e?Vn(u(i)):u(i):c}function Xr(n){if(!n)return A;const t=Ot(n);return Vn(t)}function vn(){const n=[];for(let t=0;t<arguments.length;++t){let r=!1;const e=arguments[t];for(let u=0;u<n.length&&(r=n[u]===e,!r);++u);r||n.push(e)}return n}function wt(n,t,r,e){if(!t||!r)return A;e=!(e===0||e===!1);let u=A,f=!1;const i=typeof n=="number",s=typeof n=="string"?n.toLowerCase():n;for(let l=0;l<t.length;l++){const g=t[l],T=typeof g[0]=="string"?g[0].toLowerCase():g[0];if(T===s){u=r<g.length+1?g[r-1]:sn;break}else!f&&(i&&e&&T<=n||e&&typeof T=="string"&&T.localeCompare(n)<0)&&(u=r<g.length+1?g[r-1]:sn);i&&T>n&&(f=!0)}return u}function pr(){throw new Error("ASC is not implemented")}function Wr(){throw new Error("BAHTTEXT is not implemented")}function Ht(n){return n=o(n),n===0?c:n instanceof Error?n:String.fromCharCode(n)}function jr(n){if(h(n))return n;n=n||"";const t=/[\0-\x1F]/g;return n.replace(t,"")}function Yt(n){if(h(n))return n;n=n||"";let t=n.charCodeAt(0);return isNaN(t)&&(t=c),t}function Bt(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;let r=0;for(;(r=n.indexOf(!0))>-1;)n[r]="TRUE";let e=0;for(;(e=n.indexOf(!1))>-1;)n[e]="FALSE";return n.join("")}const Kr=Bt;function Qr(){throw new Error("DBCS is not implemented")}function qr(n,t=2){if(n=o(n),isNaN(n))return c;n=Jt(n,t);const r={style:"currency",currency:"USD",minimumFractionDigits:t>=0?t:0,maximumFractionDigits:t>=0?t:0},e=n.toLocaleString("en-US",r);return n<0?"$("+e.slice(2)+")":e}function $r(n,t){if(arguments.length!==2)return A;const r=R(n,t);return r||(n=V(n),t=V(t),n===t)}function Zr(n,t,r){if(arguments.length<2)return A;n=V(n),t=V(t),r=r===void 0?0:r;const e=t.indexOf(n,r-1);return e===-1?c:e+1}function Gt(n,t=2,r=!1){if(n=o(n),isNaN(n)||(t=o(t),isNaN(t)))return c;if(t<0){const e=Math.pow(10,-t);n=Math.round(n/e)*e}else n=n.toFixed(t);if(r)n=n.toString().replace(/,/g,"");else{const e=n.toString().split(".");e[0]=e[0].replace(/\B(?=(\d{3})+$)/g,","),n=e.join(".")}return n}function zr(n,t){const r=R(n,t);return r||(n=V(n),t=t===void 0?1:t,t=o(t),t instanceof Error||typeof n!="string"?c:n.substring(0,t))}function Jr(n){return arguments.length===0?kn:n instanceof Error?n:Array.isArray(n)?c:V(n).length}function kr(n){return arguments.length!==1?c:(n=V(n),h(n)?n:n.toLowerCase())}function dr(n,t,r){if(t==null)return c;if(t=o(t),r=o(r),h(t,r)||typeof n!="string")return r;const e=t-1,u=e+r;return n.substring(e,u)}function yr(n,t,r){return n=hn(n)?n:"",typeof n=="number"?n:typeof n!="string"?A:(t=typeof t>"u"?".":t,r=typeof r>"u"?",":r,Number(n.replace(t,".").replace(r,"")))}function xr(){throw new Error("PRONETIC is not implemented")}function vr(n){return h(n)?n:isNaN(n)&&typeof n=="number"?c:(n=V(n),n.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))}function mr(n,t,r,e){return t=o(t),r=o(r),h(t,r)||typeof n!="string"||typeof e!="string"?c:n.substr(0,t-1)+e+n.substr(t-1+r)}function K(n,t){const r=R(n,t);return r||(n=V(n),t=o(t),t instanceof Error?t:new Array(t+1).join(n))}function br(n,t){const r=R(n,t);return r||(n=V(n),t=t===void 0?1:t,t=o(t),t instanceof Error?t:n.substring(n.length-t))}function _r(n,t,r){let e;return typeof n!="string"||typeof t!="string"?c:(r=r===void 0?0:r,e=t.toLowerCase().indexOf(n.toLowerCase(),r-1)+1,e===0?c:e)}function ne(n,t,r,e){if(arguments.length<3)return A;if(!n||!t)return n;if(e===void 0)return n.split(t).join(r);{if(e=Math.floor(Number(e)),Number.isNaN(e)||e<=0)return c;let u=0,f=0;for(;u>-1&&n.indexOf(t,u)>-1;)if(u=n.indexOf(t,u+1),f++,u>-1&&f===e)return n.substring(0,u)+r+n.substring(u+t.length);return n}}function X(n){return n instanceof Error||typeof n=="string"?n:""}function te(n,t){if(n===void 0||n instanceof Error||t instanceof Error)return A;if(n instanceof Date)return n.toISOString().slice(0,10);if(t==null)return"";if(typeof t=="number")return String(t);if(typeof t!="string")return c;const r=t.startsWith("$")?"$":"",e=t.endsWith("%");t=t.replace(/%/g,"").replace(/\$/g,"");const u=t.includes(".")?t.split(".")[1].match(/0/g).length:0,f=!t.includes(",");return e&&(n=n*100),n=Gt(n,u,f),n.startsWith("-")?(n=n.replace("-",""),n="-"+r+n):n=r+n,e&&(n=n+"%"),n}function re(n,t,...r){if(typeof t!="boolean"&&(t=xn(t)),arguments.length<3)return A;n=n??"";let e=I(r),u=t?e.filter(f=>f):e;if(Array.isArray(n)){n=I(n);let f=u.map(s=>[s]),i=0;for(let s=0;s<f.length-1;s++)f[s].push(n[i]),i++,i===n.length&&(i=0);return u=I(f),u.join("")}return u.join(n)}function ee(n){return n=V(n),n instanceof Error?n:n.replace(/\s+/g," ").trim()}const ue=Ht,fe=Yt;function oe(n){return n=V(n),n instanceof Error?n:n.toUpperCase()}function ie(n){const t=R(n);if(t)return t;if(typeof n=="number")return n;if(hn(n)||(n=""),typeof n!="string")return c;const r=/(%)$/.test(n)||/^(%)/.test(n);if(n=n.replace(/^[^0-9-]{0,3}/,""),n=n.replace(/[^0-9]{0,3}$/,""),n=n.replace(/[ ,]/g,""),n==="")return 0;let e=Number(n);return isNaN(e)?c:(e=e||0,r&&(e=e*.01),e)}const ce=2.5066282746310002;function se(){const t=I(arguments).filter(hn);if(t.length===0)return E;const r=N(t);return r instanceof Error?r:M.sum(M(r).subtract(M.mean(r)).abs()[0])/r.length}function tn(){const t=I(arguments).filter(hn);if(t.length===0)return H;const r=R.apply(void 0,t);if(r)return r;const e=d(t),u=e.length;let f=0,i=0,s;for(let l=0;l<u;l++)f+=e[l],i+=1;return s=f/i,isNaN(s)&&(s=E),s}function mn(){const t=I(arguments).filter(hn);if(t.length===0)return H;const r=R.apply(void 0,t);if(r)return r;const e=t,u=e.length;let f=0,i=0,s;for(let l=0;l<u;l++){const g=e[l];typeof g=="number"&&(f+=g),g===!0&&f++,g!==null&&i++}return s=f/i,isNaN(s)&&(s=E),s}function le(n,t,r){if(arguments.length<=1)return A;r=r||n;const u=I(r).filter(hn);if(r=N(u),n=I(n),r instanceof Error)return r;let f=0,i=0;const s=t===void 0||t==="*",l=s?null:ln(t+"");for(let g=0;g<n.length;g++){const T=n[g];if(s)i+=r[g],f++;else{const D=[k(T,v)].concat(l);En(D)&&(i+=r[g],f++)}}return i/f}function Ee(){const n=Hn(...arguments),r=n.reduce((e,u)=>e+u,0)/n.length;return isNaN(r)?0:r}const Tn={};Tn.DIST=function(n,t,r,e,u,f){return arguments.length<4||(u=u===void 0?0:u,f=f===void 0?1:f,n=o(n),t=o(t),r=o(r),u=o(u),f=o(f),h(n,t,r,u,f))?c:(n=(n-u)/(f-u),e?M.beta.cdf(n,t,r):M.beta.pdf(n,t,r))},Tn.INV=(n,t,r,e,u)=>(e=e===void 0?0:e,u=u===void 0?1:u,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u)?c:M.beta.inv(n,t,r)*(u-e)+e);const gn={};gn.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),e=o(e),h(n,t,r,e)?c:e?M.binomial.cdf(n,t,r):M.binomial.pdf(n,t,r)),gn.DIST.RANGE=(n,t,r,e)=>{if(e=e===void 0?r:e,n=o(n),t=o(t),r=o(r),e=o(e),h(n,t,r,e))return c;let u=0;for(let f=r;f<=e;f++)u+=Nn(n,f)*Math.pow(t,f)*Math.pow(1-t,n-f);return u},gn.INV=(n,t,r)=>{if(n=o(n),t=o(t),r=o(r),h(n,t,r))return c;let e=0;for(;e<=n;){if(M.binomial.cdf(e,n,t)>=r)return e;e++}};const Z={};Z.DIST=(n,t,r)=>(n=o(n),t=o(t),h(n,t)?c:r?M.chisquare.cdf(n,t):M.chisquare.pdf(n,t)),Z.DIST.RT=(n,t)=>!n|!t?A:n<1||t>Math.pow(10,10)?E:typeof n!="number"||typeof t!="number"?c:1-M.chisquare.cdf(n,t),Z.INV=(n,t)=>(n=o(n),t=o(t),h(n,t)?c:M.chisquare.inv(n,t)),Z.INV.RT=(n,t)=>!n|!t?A:n<0||n>1||t<1||t>Math.pow(10,10)?E:typeof n!="number"||typeof t!="number"?c:M.chisquare.inv(1-n,t),Z.TEST=function(n,t){if(arguments.length!==2)return A;if(!(n instanceof Array)||!(t instanceof Array)||n.length!==t.length||n[0]&&t[0]&&n[0].length!==t[0].length)return c;const r=n.length;let e,u,f;for(u=0;u<r;u++)n[u]instanceof Array||(e=n[u],n[u]=[],n[u].push(e)),t[u]instanceof Array||(e=t[u],t[u]=[],t[u].push(e));const i=n[0].length,s=i===1?r-1:(r-1)*(i-1);let l=0;const g=Math.PI;for(u=0;u<r;u++)for(f=0;f<i;f++)l+=Math.pow(n[u][f]-t[u][f],2)/t[u][f];function T(D,C){let S=Math.exp(-.5*D);C%2===1&&(S=S*Math.sqrt(2*D/g));let L=C;for(;L>=2;)S=S*D/L,L=L-2;let P=S,W=C;for(;P>1e-10*S;)W=W+2,P=P*D/W,S=S+P;return 1-S}return Math.round(T(l,s)*1e6)/1e6};const bn={};bn.NORM=(n,t,r)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:M.normalci(1,n,t,r)[1]-1),bn.T=(n,t,r)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:M.tci(1,n,t,r)[1]-1);function he(n,t){return n=N(I(n)),t=N(I(t)),h(n,t)?c:M.corrcoeff(n,t)}function Sn(){const n=I(arguments);return d(n).length}function An(){const n=I(arguments);return n.length-Xt(n)}function Xt(){const n=I(arguments);let t=0,r;for(let e=0;e<n.length;e++)r=n[e],(r==null||r==="")&&t++;return t}function ge(n,t){if(n=I(n),t===void 0||t==="*")return n.length;let e=0;const u=ln(t+"");for(let f=0;f<n.length;f++){const i=n[f],s=[k(i,v)].concat(u);En(s)&&e++}return e}function Ie(){const n=Fn(arguments),t=new Array(I(n[0]).length);for(let e=0;e<t.length;e++)t[e]=!0;for(let e=0;e<n.length;e+=2){const u=I(n[e]),f=n[e+1];if(!(f===void 0||f==="*")){const s=ln(f+"");for(let l=0;l<u.length;l++){const g=u[l],T=[k(g,v)].concat(s);t[l]=t[l]&&En(T)}}}let r=0;for(let e=0;e<t.length;e++)t[e]&&r++;return r}const In={};In.P=(n,t)=>{if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=M.mean(n),e=M.mean(t);let u=0;const f=n.length;for(let i=0;i<f;i++)u+=(n[i]-r)*(t[i]-e);return u/f},In.S=(n,t)=>(n=N(I(n)),t=N(I(t)),h(n,t)?c:M.covariance(n,t));function Me(){const n=N(I(arguments));if(n instanceof Error)return n;const t=M.mean(n);let r=0;for(let e=0;e<n.length;e++)r+=Math.pow(n[e]-t,2);return r}const _n={};_n.DIST=(n,t,r)=>(n=o(n),t=o(t),h(n,t)?c:r?M.exponential.cdf(n,t):M.exponential.pdf(n,t));const z={};z.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:e?M.centralF.cdf(n,t,r):M.centralF.pdf(n,t,r)),z.DIST.RT=function(n,t,r){return arguments.length!==3?A:n<0||t<1||r<1?E:typeof n!="number"||typeof t!="number"||typeof r!="number"?c:1-M.centralF.cdf(n,t,r)},z.INV=(n,t,r)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:n<=0||n>1?E:M.centralF.inv(n,t,r)),z.INV.RT=function(n,t,r){return arguments.length!==3?A:n<0||n>1||t<1||t>Math.pow(10,10)||r<1||r>Math.pow(10,10)?E:typeof n!="number"||typeof t!="number"||typeof r!="number"?c:M.centralF.inv(1-n,t,r)},z.TEST=(n,t)=>{if(!n||!t||!(n instanceof Array)||!(t instanceof Array))return A;if(n.length<2||t.length<2)return H;const r=(s,l)=>{let g=0;for(let T=0;T<s.length;T++)g+=Math.pow(s[T]-l,2);return g},e=x(n)/n.length,u=x(t)/t.length,f=r(n,e)/(n.length-1),i=r(t,u)/(t.length-1);return f/i};function Ne(n){return n=o(n),n instanceof Error?n:Math.log((1+n)/(1-n))/2}function Te(n){if(n=o(n),n instanceof Error)return n;const t=Math.exp(2*n);return(t-1)/(t+1)}function pt(n,t,r){if(n=o(n),t=N(I(t)),r=N(I(r)),h(n,t,r))return c;const e=M.mean(r),u=M.mean(t),f=r.length;let i=0,s=0;for(let T=0;T<f;T++)i+=(r[T]-e)*(t[T]-u),s+=Math.pow(r[T]-e,2);const l=i/s;return u-l*e+l*n}function Se(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=n.length,e=t.length,u=[];for(let f=0;f<=e;f++){u[f]=0;for(let i=0;i<r;i++)f===0?n[i]<=t[0]&&(u[0]+=1):f<e?n[i]>t[f-1]&&n[i]<=t[f]&&(u[f]+=1):f===e&&n[i]>t[e-1]&&(u[e]+=1)}return u}function Dn(n){return n=o(n),n instanceof Error?n:n===0||parseInt(n,10)===n&&n<0?E:M.gammafn(n)}Dn.DIST=function(n,t,r,e){return arguments.length!==4?A:n<0||t<=0||r<=0||typeof n!="number"||typeof t!="number"||typeof r!="number"?c:e?M.gamma.cdf(n,t,r,!0):M.gamma.pdf(n,t,r,!1)},Dn.INV=function(n,t,r){return arguments.length!==3?A:n<0||n>1||t<=0||r<=0?E:typeof n!="number"||typeof t!="number"||typeof r!="number"?c:M.gamma.inv(n,t,r)};function nt(n){return n=o(n),n instanceof Error?n:M.gammaln(n)}nt.PRECISE=function(n){return arguments.length!==1?A:n<=0?E:typeof n!="number"?c:M.gammaln(n)};function Ae(n){return n=o(n),n instanceof Error?n:M.normal.cdf(n,0,1)-.5}function De(){const n=N(I(arguments));return n instanceof Error?n:M.geomean(n)}function Re(n,t,r,e){if(n=N(I(n)),n instanceof Error)return n;let u;if(t===void 0)for(t=[],u=1;u<=n.length;u++)t.push(u);if(r===void 0&&(r=t),t=N(I(t)),r=N(I(r)),h(t,r))return c;e===void 0&&(e=!0);const f=n.length;let i=0,s=0,l=0,g=0;for(u=0;u<f;u++){const S=t[u],L=Math.log(n[u]);i+=S,s+=L,l+=S*L,g+=S*S}i/=f,s/=f,l/=f,g/=f;let T,D;e?(T=(l-i*s)/(g-i*i),D=s-T*i):(T=l/g,D=0);const C=[];for(u=0;u<r.length;u++)C.push(Math.exp(D+T*r[u]));return C}function Ce(){const n=N(I(arguments));if(n instanceof Error)return n;const t=n.length;let r=0;for(let e=0;e<t;e++)r+=1/n[e];return t/r}const tt={};tt.DIST=(n,t,r,e,u)=>{if(n=o(n),t=o(t),r=o(r),e=o(e),h(n,t,r,e))return c;function f(s,l,g,T){return Nn(g,s)*Nn(T-g,l-s)/Nn(T,l)}function i(s,l,g,T){let D=0;for(let C=0;C<=s;C++)D+=f(C,l,g,T);return D}return u?i(n,t,r,e):f(n,t,r,e)};function Oe(n,t){return n=N(n),t=N(t),h(n,t)?c:n.length!==t.length?A:pt(0,n,t)}function Le(){const n=N(I(arguments));if(n instanceof Error)return n;const t=M.mean(n),r=n.length;let e=0;for(let u=0;u<r;u++)e+=Math.pow(n[u]-t,4);return e=e/Math.pow(M.stdev(n,!0),4),r*(r+1)/((r-1)*(r-2)*(r-3))*e-3*(r-1)*(r-1)/((r-2)*(r-3))}function Wt(n,t){const r=R.apply(void 0,n);return r||(h(t)?t:(n=d(I(n)),t=o(t),t<0||n.length<t?c:n.sort((e,u)=>u-e)[t-1]))}function rt(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=M.mean(n),e=M.mean(t),u=t.length;let f=0,i=0;for(let g=0;g<u;g++)f+=(t[g]-e)*(n[g]-r),i+=Math.pow(t[g]-e,2);const s=f/i,l=r-s*e;return[s,l]}function Pe(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t)||n.length!==t.length)return c;for(let e=0;e<n.length;e++)n[e]=Math.log(n[e]);const r=rt(n,t);return r[0]=Math.round(Math.exp(r[0])*1e6)/1e6,r[1]=Math.round(Math.exp(r[1])*1e6)/1e6,r}const Mn={};Mn.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:e?M.lognormal.cdf(n,t,r):M.lognormal.pdf(n,t,r)),Mn.INV=(n,t,r)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:M.lognormal.inv(n,t,r));function Gn(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;const r=d(n);return r.length===0?0:Math.max.apply(Math,r)}function Ue(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;let r=dn(n);return r=r.map(e=>e??0),r.length===0?0:Math.max.apply(Math,r)}function ae(){const n=Hn(...arguments);return n.length===0?0:Math.max.apply(Math,n)}function jt(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;const r=dn(n);let e=M.median(r);return isNaN(e)&&(e=E),e}function Xn(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;const r=d(n);return r.length===0?0:Math.min.apply(Math,r)}function Fe(){const n=I(arguments),t=R.apply(void 0,n);if(t)return t;let r=dn(n);return r=r.map(e=>e??0),r.length===0?0:Math.min.apply(Math,r)}function Ve(){const n=Hn(...arguments);return n.length===0?0:Math.min.apply(Math,n)}const rn={};rn.MULT=function(){const n=N(I(arguments));if(n instanceof Error)return n;const t=n.length,r={};let e=[],u=0,f;for(let i=0;i<t;i++)f=n[i],r[f]=r[f]?r[f]+1:1,r[f]>u&&(u=r[f],e=[]),r[f]===u&&(e[e.length]=f);return e},rn.SNGL=function(){const n=N(I(arguments));return n instanceof Error?n:rn.MULT(n).sort((t,r)=>t-r)[0]};const et={};et.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:e?M.negbin.cdf(n,t,r):M.negbin.pdf(n,t,r));const J={};J.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:r<=0?E:e?M.normal.cdf(n,t,r):M.normal.pdf(n,t,r)),J.INV=(n,t,r)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:M.normal.inv(n,t,r)),J.S={},J.S.DIST=(n,t)=>(n=o(n),n instanceof Error?c:t?M.normal.cdf(n,0,1):M.normal.pdf(n,0,1)),J.S.INV=n=>(n=o(n),n instanceof Error?c:M.normal.inv(n,0,1));function Kt(n,t){if(t=N(I(t)),n=N(I(n)),h(t,n))return c;const r=M.mean(n),e=M.mean(t),u=n.length;let f=0,i=0,s=0;for(let l=0;l<u;l++)f+=(n[l]-r)*(t[l]-e),i+=Math.pow(n[l]-r,2),s+=Math.pow(t[l]-e,2);return f/Math.sqrt(i*s)}const Q={};Q.EXC=(n,t)=>{if(n=N(I(n)),t=o(t),h(n,t))return c;n=n.sort((f,i)=>f-i);const r=n.length;if(t<1/(r+1)||t>1-1/(r+1))return E;const e=t*(r+1)-1,u=Math.floor(e);return Lt(e===u?n[e]:n[u]+(e-u)*(n[u+1]-n[u]))},Q.INC=(n,t)=>{if(n=N(I(n)),t=o(t),h(n,t))return c;n=n.sort((f,i)=>f-i);const r=n.length,e=t*(r-1),u=Math.floor(e);return Lt(e===u?n[e]:n[u]+(e-u)*(n[u+1]-n[u]))};const Rn={};Rn.EXC=(n,t,r)=>{if(r=r===void 0?3:r,n=N(I(n)),t=o(t),r=o(r),h(n,t,r))return c;n=n.sort((T,D)=>T-D);const e=vn.apply(null,n),u=n.length,f=e.length,i=Math.pow(10,r);let s=0,l=!1,g=0;for(;!l&&g<f;)t===e[g]?(s=(n.indexOf(e[g])+1)/(u+1),l=!0):t>=e[g]&&(t<e[g+1]||g===f-1)&&(s=(n.indexOf(e[g])+1+(t-e[g])/(e[g+1]-e[g]))/(u+1),l=!0),g++;return Math.floor(s*i)/i},Rn.INC=(n,t,r)=>{if(r=r===void 0?3:r,n=N(I(n)),t=o(t),r=o(r),h(n,t,r))return c;n=n.sort((T,D)=>T-D);const e=vn.apply(null,n),u=n.length,f=e.length,i=Math.pow(10,r);let s=0,l=!1,g=0;for(;!l&&g<f;)t===e[g]?(s=n.indexOf(e[g])/(u-1),l=!0):t>=e[g]&&(t<e[g+1]||g===f-1)&&(s=(n.indexOf(e[g])+(t-e[g])/(e[g+1]-e[g]))/(u-1),l=!0),g++;return Math.floor(s*i)/i};function we(n,t){return n=o(n),t=o(t),h(n,t)?c:y(n)/y(n-t)}function He(n,t){return n=o(n),t=o(t),h(n,t)?c:Math.pow(n,t)}function Ye(n){return n=o(n),n instanceof Error?c:Math.exp(-.5*n*n)/ce}const ut={};ut.DIST=(n,t,r)=>(n=o(n),t=o(t),h(n,t)?c:r?M.poisson.cdf(n,t):M.poisson.pdf(n,t));function Be(n,t,r,e){if(r===void 0)return 0;if(e=e===void 0?r:e,n=N(I(n)),t=N(I(t)),r=o(r),e=o(e),h(n,t,r,e))return c;if(r===e)return n.indexOf(r)>=0?t[n.indexOf(r)]:0;const u=n.sort((s,l)=>s-l),f=u.length;let i=0;for(let s=0;s<f;s++)u[s]>=r&&u[s]<=e&&(i+=t[n.indexOf(u[s])]);return i}const en={};en.EXC=(n,t)=>{if(n=N(d(I(n))),t=o(t),h(n,t))return c;switch(t){case 1:return Q.EXC(n,.25);case 2:return Q.EXC(n,.5);case 3:return Q.EXC(n,.75);default:return E}},en.INC=(n,t)=>{if(n=N(d(I(n))),t=o(t),h(n,t))return c;switch(t){case 1:return Q.INC(n,.25);case 2:return Q.INC(n,.5);case 3:return Q.INC(n,.75);default:return E}};const Cn={};Cn.AVG=(n,t,r)=>{if(n=o(n),t=N(I(t)),h(n,t))return c;t=I(t),r=r||!1;const e=r?(i,s)=>i-s:(i,s)=>s-i;t=t.sort(e);const u=t.length;let f=0;for(let i=0;i<u;i++)t[i]===n&&f++;return f>1?(2*t.indexOf(n)+f+1)/2:t.indexOf(n)+1},Cn.EQ=(n,t,r)=>{if(n=o(n),t=N(I(t)),h(n,t))return c;r=r||!1;const e=r?(u,f)=>u-f:(u,f)=>f-u;return t=t.sort(e),t.indexOf(n)+1};function Ge(n,t){if(arguments.length!==2)return A;if(t<0)return E;if(!(n instanceof Array)||typeof t!="number")return c;if(n.length!==0)return M.row(n,t)}function Xe(n,t){return n=N(I(n)),t=N(I(t)),h(n,t)?c:Math.pow(Kt(n,t),2)}function ft(){const n=N(I(arguments));if(n instanceof Error)return n;const t=M.mean(n),r=n.length;let e=0;for(let u=0;u<r;u++)e+=Math.pow(n[u]-t,3);return r*e/((r-1)*(r-2)*Math.pow(M.stdev(n,!0),3))}ft.P=function(){const n=N(I(arguments));if(n instanceof Error)return n;const t=M.mean(n),r=n.length;let e=0,u=0;for(let f=0;f<r;f++)u+=Math.pow(n[f]-t,3),e+=Math.pow(n[f]-t,2);return u=u/r,e=e/r,u/Math.pow(e,3/2)};function pe(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=M.mean(t),e=M.mean(n),u=t.length;let f=0,i=0;for(let s=0;s<u;s++)f+=(t[s]-r)*(n[s]-e),i+=Math.pow(t[s]-r,2);return f/i}function Qt(n,t){return n=N(I(n)),t=o(t),h(n,t)?n:n.sort((r,e)=>r-e)[t-1]}function We(n,t,r){return n=o(n),t=o(t),r=o(r),h(n,t,r)?c:(n-t)/r}const p={};p.P=function(){const n=G.P.apply(this,arguments);let t=Math.sqrt(n);return isNaN(t)&&(t=E),t},p.S=function(){const n=G.S.apply(this,arguments);return Math.sqrt(n)};function je(){const n=qt.apply(this,arguments);return Math.sqrt(n)}function Ke(){const n=$t.apply(this,arguments);let t=Math.sqrt(n);return isNaN(t)&&(t=E),t}function Qe(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=M.mean(t),e=M.mean(n),u=t.length;let f=0,i=0,s=0;for(let l=0;l<u;l++)f+=Math.pow(n[l]-e,2),i+=(t[l]-r)*(n[l]-e),s+=Math.pow(t[l]-r,2);return Math.sqrt((f-i*i/s)/(u-2))}X.DIST=(n,t,r)=>r!==1&&r!==2?E:r===1?X.DIST.RT(n,t):X.DIST["2T"](n,t),X.DIST["2T"]=function(n,t){return arguments.length!==2?A:n<0||t<1?E:typeof n!="number"||typeof t!="number"?c:(1-M.studentt.cdf(n,t))*2},X.DIST.RT=function(n,t){return arguments.length!==2?A:n<0||t<1?E:typeof n!="number"||typeof t!="number"?c:1-M.studentt.cdf(n,t)},X.INV=(n,t)=>(n=o(n),t=o(t),h(n,t)?c:M.studentt.inv(n,t)),X.INV["2T"]=(n,t)=>(n=o(n),t=o(t),n<=0||n>1||t<1?E:h(n,t)?c:Math.abs(M.studentt.inv(n/2,t))),X.TEST=(n,t)=>{if(n=N(I(n)),t=N(I(t)),h(n,t))return c;const r=M.mean(n),e=M.mean(t);let u=0,f=0,i;for(i=0;i<n.length;i++)u+=Math.pow(n[i]-r,2);for(i=0;i<t.length;i++)f+=Math.pow(t[i]-e,2);u=u/(n.length-1),f=f/(t.length-1);const s=Math.abs(r-e)/Math.sqrt(u/n.length+f/t.length);return X.DIST["2T"](s,n.length+t.length-2)};function qe(n,t,r){if(n=N(I(n)),t=N(I(t)),r=N(I(r)),h(n,t,r))return c;const e=rt(n,t),u=e[0],f=e[1],i=[];return r.forEach(s=>{i.push(u*s+f)}),i}function $e(n,t){if(n=N(I(n)),t=o(t),h(n,t))return c;const r=un(n.length*t,2)/2;return M.mean(cr(F(n.sort((e,u)=>e-u),r),r))}const G={};G.P=function(){const n=d(I(arguments)),t=n.length;let r=0;const e=tn(n);let u;for(let f=0;f<t;f++)r+=Math.pow(n[f]-e,2);return u=r/t,isNaN(u)&&(u=E),u},G.S=function(){const n=d(I(arguments)),t=n.length;let r=0;const e=tn(n);for(let u=0;u<t;u++)r+=Math.pow(n[u]-e,2);return r/(t-1)};function qt(){const n=I(arguments),t=n.length;let r=0,e=0;const u=mn(n);for(let f=0;f<t;f++){const i=n[f];typeof i=="number"?r+=Math.pow(i-u,2):i===!0?r+=Math.pow(1-u,2):r+=Math.pow(0-u,2),i!==null&&e++}return r/(e-1)}function $t(){const n=I(arguments),t=n.length;let r=0,e=0;const u=mn(n);let f;for(let i=0;i<t;i++){const s=n[i];typeof s=="number"?r+=Math.pow(s-u,2):s===!0?r+=Math.pow(1-u,2):r+=Math.pow(0-u,2),s!==null&&e++}return f=r/e,isNaN(f)&&(f=E),f}const ot={};ot.DIST=(n,t,r,e)=>(n=o(n),t=o(t),r=o(r),h(n,t,r)?c:e?1-Math.exp(-Math.pow(n/r,t)):Math.pow(n,t-1)*Math.exp(-Math.pow(n/r,t))*t/Math.pow(r,t));const it={};it.TEST=(n,t,r)=>{if(n=N(I(n)),t=o(t),h(n,t))return c;r=r||p.S(n);const e=n.length;return 1-J.S.DIST((tn(n)-t)/(r/Math.sqrt(e)),!0)};function Ze(n){return n=o(n),n instanceof Error?n:Math.abs(n)}function ze(n){if(n=o(n),n instanceof Error)return n;let t=Math.acos(n);return isNaN(t)&&(t=E),t}function Je(n){if(n=o(n),n instanceof Error)return n;let t=Math.log(n+Math.sqrt(n*n-1));return isNaN(t)&&(t=E),t}function ke(n){return n=o(n),n instanceof Error?n:Math.atan(1/n)}function de(n){if(n=o(n),n instanceof Error)return n;let t=.5*Math.log((n+1)/(n-1));return isNaN(t)&&(t=E),t}function ye(n,t,r,e){if(n=o(n),t=o(n),h(n,t))return c;switch(n){case 1:return tn(r);case 2:return Sn(r);case 3:return An(r);case 4:return Gn(r);case 5:return Xn(r);case 6:return Wn(r);case 7:return p.S(r);case 8:return p.P(r);case 9:return x(r);case 10:return G.S(r);case 11:return G.P(r);case 12:return jt(r);case 13:return rn.SNGL(r);case 14:return Wt(r,e);case 15:return Qt(r,e);case 16:return Q.INC(r,e);case 17:return en.INC(r,e);case 18:return Q.EXC(r,e);case 19:return en.EXC(r,e)}}function xe(n){if(n==null)return 0;if(n instanceof Error)return n;if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(n))return c;let t=0;return n.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,r=>{t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[r]}),t}function ve(n){if(n=o(n),n instanceof Error)return n;let t=Math.asin(n);return isNaN(t)&&(t=E),t}function me(n){return n=o(n),n instanceof Error?n:Math.log(n+Math.sqrt(n*n+1))}function be(n){return n=o(n),n instanceof Error?n:Math.atan(n)}function _e(n,t){n=o(n),t=o(t);const r=R(n,t);return r||Math.atan2(n,t)}function nu(n){if(n=o(n),n instanceof Error)return n;let t=Math.log((1+n)/(1-n))/2;return isNaN(t)&&(t=E),t}function tu(n,t,r){n=o(n),t=o(t),r=o(r);const e=R(n,t,r);if(e)return e;if(t===0)return E;const u=n.toString(t);return new Array(Math.max(r+1-u.length,0)).join("0")+u}function m(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(t===0?0:n>0&&t<0?E:Math.ceil(n/t)*t)}m.MATH=(n,t,r=0)=>{t===void 0&&(t=n>0?1:-1),n=o(n),t=o(t),r=o(r);const e=R(n,t,r);return e||(t===0?0:(t=Math.abs(t),r===0||n>0?Math.ceil(n/t)*t:Math.floor(n/t)*t))},m.PRECISE=m.MATH;function Nn(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n<t?E:y(n)/(y(t)*y(n-t)))}function ru(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n<t?E:n===0&&t===0?1:Nn(n+t-1,n-1))}function eu(n){return n=o(n),n instanceof Error?n:Math.cos(n)}function uu(n){return n=o(n),n instanceof Error?n:(Math.exp(n)+Math.exp(-n))/2}function fu(n){return n=o(n),n instanceof Error?n:n===0?H:1/Math.tan(n)}function ou(n){if(n=o(n),n instanceof Error)return n;if(n===0)return H;const t=Math.exp(2*n);return(t+1)/(t-1)}function iu(n){return n=o(n),n instanceof Error?n:n===0?H:1/Math.sin(n)}function cu(n){return n=o(n),n instanceof Error?n:n===0?H:2/(Math.exp(n)-Math.exp(-n))}function su(n,t){if(arguments.length<2)return A;n=n||"0",t=o(t);const r=R(n,t);if(r)return r;if(t===0)return E;const e=parseInt(n,t);return isNaN(e)?E:e}function lu(n){return n=o(n),n instanceof Error?n:n*180/Math.PI}function Eu(n){return n=o(n),n instanceof Error?n:m.MATH(n,-2,-1)}function hu(n){return arguments.length<1?A:arguments.length>1?kn:(n=o(n),n instanceof Error||(n=Math.exp(n)),n)}const pn=[];function y(n){if(n=o(n),n instanceof Error)return n;const t=Math.floor(n);return t===0||t===1?1:(pn[t]>0||(pn[t]=y(t-1)*t),pn[t])}function Zt(n){if(n=o(n),n instanceof Error)return n;const t=Math.floor(n);return t<=0?1:t*Zt(t-2)}function un(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(t?n>0&&t<0?E:Math.floor(n/t)*t:H)}un.MATH=(n,t=1,r=0)=>{n=o(n),t=o(t),r=o(r);const e=R(n,t,r);return e||(t===0?0:(t=Math.abs(t),r===0||n>0?Math.floor(n/t)*t:Math.ceil(n/t)*t))},un.PRECISE=un.MATH;function gu(){const n=N(I(arguments));if(n instanceof Error)return n;const t=n.length,r=n[0];let e=r<0?-r:r;for(let u=1;u<t;u++){const f=n[u];let i=f<0?-f:f;for(;e&&i;)e>i?e%=i:i%=e;e+=i}return e}function Iu(n){return n=o(n),n instanceof Error?n:Math.floor(n)}const Mu={CEILING:m};function Nu(){const n=N(I(arguments));if(n instanceof Error)return n;for(var t,r,e,u,f=1;(e=n.pop())!==void 0;){if(e===0)return 0;for(;e>1;){if(e%2){for(t=3,r=Math.floor(Math.sqrt(e));t<=r&&e%t;t+=2);u=t<=r?t:e}else u=2;for(e/=u,f*=u,t=n.length;t;n[--t]%u===0&&(n[t]/=u)===1&&n.splice(t,1));}}return f}function Tu(n){return n=o(n),n instanceof Error?n:n===0?E:Math.log(n)}function Su(n,t){n=o(n),t=t?o(t):10;const r=R(n,t);return r||(n===0||t===0?E:Math.log(n)/Math.log(t))}function Au(n){return n=o(n),n instanceof Error?n:n===0?E:Math.log(n)/Math.log(10)}function Du(n,t){return!Array.isArray(n)||!Array.isArray(t)||n.some(e=>!e.length)||t.some(e=>!e.length)||yn(n).some(e=>typeof e!="number")||yn(t).some(e=>typeof e!="number")||n[0].length!==t.length?c:Array(n.length).fill(0).map(()=>Array(t[0].length).fill(0)).map((e,u)=>e.map((f,i)=>n[u].reduce((s,l,g)=>s+l*t[g][i],0)))}function Ru(n,t){n=o(n),t=o(t);const r=R(n,t);if(r)return r;if(t===0)return H;let e=Math.abs(n%t);return e=n<0?t-e:e,t>0?e:-e}function Cu(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n*t===0?0:n*t<0?E:Math.round(n/t)*t)}function Ou(){const n=N(I(arguments));if(n instanceof Error)return n;let t=0,r=1;for(let e=0;e<n.length;e++)t+=n[e],r*=y(n[e]);return y(t)/r}function Lu(n){return arguments.length>1?A:(n=parseInt(n),!n||n<=0?c:Array(n).fill(0).map(()=>Array(n).fill(0)).map((t,r)=>(t[r]=1,t)))}function Pu(n){if(n=o(n),n instanceof Error)return n;let t=Math.ceil(Math.abs(n));return t=t&1?t:t+1,n>=0?t:-t}function Uu(){return Math.PI}function zt(n,t){n=o(n),t=o(t);const r=R(n,t);if(r)return r;if(n===0&&t===0)return E;const e=Math.pow(n,t);return isNaN(e)?E:e}function Wn(){const t=I(arguments).filter(u=>u!=null);if(t.length===0)return 0;const r=N(t);if(r instanceof Error)return r;let e=1;for(let u=0;u<r.length;u++)e*=r[u];return e}function au(n,t){n=o(n),t=o(t);const r=R(n,t);return r||parseInt(n/t,10)}function Fu(n){return n=o(n),n instanceof Error?n:n*Math.PI/180}function Vu(){return Math.random()}function wu(n,t){n=o(n),t=o(t);const r=R(n,t);return r||n+Math.ceil((t-n+1)*Math.random())-1}function Hu(n){if(n=o(n),n instanceof Error)return n;const t=String(n).split(""),r=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];let e="",u=3;for(;u--;)e=(r[+t.pop()+u*10]||"")+e;return new Array(+t.join("")+1).join("M")+e}function Jt(n,t){n=o(n),t=o(t);const r=R(n,t);return r||+(Math.round(+(n+"e"+t))+"e"+t*-1)}function Yu(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n>0?1:-1)*Math.floor(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)}function Bu(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n>0?1:-1)*Math.ceil(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)}function Gu(n){return n=o(n),n instanceof Error?n:1/Math.cos(n)}function Xu(n){return n=o(n),n instanceof Error?n:2/(Math.exp(n)+Math.exp(-n))}function pu(n,t,r,e){if(n=o(n),t=o(t),r=o(r),e=N(e),h(n,t,r,e))return c;let u=e[0]*Math.pow(n,t);for(let f=1;f<e.length;f++)u+=e[f]*Math.pow(n,t+f*r);return u}function Wu(n){return n=o(n),n instanceof Error?n:n<0?-1:n===0?0:1}function ju(n){return n=o(n),n instanceof Error?n:Math.sin(n)}function Ku(n){return n=o(n),n instanceof Error?n:(Math.exp(n)-Math.exp(-n))/2}function Qu(n){return n=o(n),n instanceof Error?n:n<0?E:Math.sqrt(n)}function qu(n){return n=o(n),n instanceof Error?n:Math.sqrt(n*Math.PI)}function $u(n,t){if(n=o(n),n instanceof Error)return n;switch(n){case 1:return tn(t);case 2:return Sn(t);case 3:return An(t);case 4:return Gn(t);case 5:return Xn(t);case 6:return Wn(t);case 7:return p.S(t);case 8:return p.P(t);case 9:return x(t);case 10:return G.S(t);case 11:return G.P(t);case 101:return tn(t);case 102:return Sn(t);case 103:return An(t);case 104:return Gn(t);case 105:return Xn(t);case 106:return Wn(t);case 107:return p.S(t);case 108:return p.P(t);case 109:return x(t);case 110:return G.S(t);case 111:return G.P(t)}}function x(){let n=0;return Y(Fn(arguments),t=>{if(n instanceof Error)return!1;if(t instanceof Error)n=t;else if(typeof t=="number")n+=t;else if(typeof t=="string"){const r=parseFloat(t);!isNaN(r)&&(n+=r)}else if(Array.isArray(t)){const r=x.apply(null,t);r instanceof Error?n=r:n+=r}}),n}function Zu(n,t,r){if(n=I(n),r=r?I(r):n,n instanceof Error)return n;if(t==null||t instanceof Error)return 0;let e=0;const u=t==="*",f=u?null:ln(t+"");for(let i=0;i<n.length;i++){const s=n[i],l=r[i];if(u)e+=s;else{const g=[k(s,v)].concat(f);e+=En(g)?l:0}}return e}function zu(){const n=Hn(...arguments);return x(n)}function Ju(){if(!arguments||arguments.length===0)return c;const n=arguments.length+1;let t=0,r,e,u,f;for(let i=0;i<arguments[0].length;i++)if(arguments[0][i]instanceof Array)for(let s=0;s<arguments[0][i].length;s++){for(r=1,e=1;e<n;e++){const l=arguments[e-1][i][s];if(l instanceof Error)return l;if(f=o(l),f instanceof Error)return f;r*=f}t+=r}else{for(r=1,e=1;e<n;e++){const s=arguments[e-1][i];if(s instanceof Error)return s;if(u=o(s),u instanceof Error)return u;r*=u}t+=r}return t}function ku(){const n=N(I(arguments));if(n instanceof Error)return n;let t=0;const r=n.length;for(let e=0;e<r;e++)t+=Bn(n[e])?n[e]*n[e]:0;return t}function du(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;let r=0;for(let e=0;e<n.length;e++)r+=n[e]*n[e]-t[e]*t[e];return r}function yu(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;let r=0;n=N(I(n)),t=N(I(t));for(let e=0;e<n.length;e++)r+=n[e]*n[e]+t[e]*t[e];return r}function xu(n,t){if(n=N(I(n)),t=N(I(t)),h(n,t))return c;let r=0;n=I(n),t=I(t);for(let e=0;e<n.length;e++)r+=Math.pow(n[e]-t[e],2);return r}function vu(n){return n=o(n),n instanceof Error?n:Math.tan(n)}function mu(n){if(n=o(n),n instanceof Error)return n;const t=Math.exp(2*n);return(t-1)/(t+1)}function bu(n,t){n=o(n),t=o(t);const r=R(n,t);return r||(n>0?1:-1)*Math.floor(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)}function _u(n,t){if(arguments.length!==2)return A;n=o(n),t=o(t);const r=R(n,t);return r||n+t}function nf(n,t){if(arguments.length!==2)return A;n=o(n),t=o(t);const r=R(n,t);return r||(t===0?H:n/t)}function tf(n,t){return arguments.length!==2?A:n instanceof Error?n:t instanceof Error?t:(n===null&&(n=void 0),t===null&&(t=void 0),n===t)}function rf(n,t){if(arguments.length!==2)return A;if(n instanceof Error)return n;if(t instanceof Error)return t;wn(n,t)?(n=V(n),t=V(t)):(n=o(n),t=o(t));const r=R(n,t);return r||n>t}function ef(n,t){if(arguments.length!==2)return A;wn(n,t)?(n=V(n),t=V(t)):(n=o(n),t=o(t));const r=R(n,t);return r||n>=t}function uf(n,t){if(arguments.length!==2)return A;wn(n,t)?(n=V(n),t=V(t)):(n=o(n),t=o(t));const r=R(n,t);return r||n<t}function ff(n,t){if(arguments.length!==2)return A;wn(n,t)?(n=V(n),t=V(t)):(n=o(n),t=o(t));const r=R(n,t);return r||n<=t}function of(n,t){if(arguments.length!==2)return A;n=o(n),t=o(t);const r=R(n,t);return r||n-t}function cf(n,t){if(arguments.length!==2)return A;n=o(n),t=o(t);const r=R(n,t);return r||n*t}function sf(n,t){return arguments.length!==2?A:n instanceof Error?n:t instanceof Error?t:(n===null&&(n=void 0),t===null&&(t=void 0),n!==t)}function lf(n,t){return arguments.length!==2?A:zt(n,t)}var Ef=Object.freeze({__proto__:null,ADD:_u,DIVIDE:nf,EQ:tf,GT:rf,GTE:ef,LT:uf,LTE:ff,MINUS:of,MULTIPLY:cf,NE:sf,POW:lf});const hf=new Date(Date.UTC(1900,0,1)),gf=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],If=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],jn=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function Mf(n,t,r){let e;return n=o(n),t=o(t),r=o(r),h(n,t,r)?e=c:(e=new Date(n,t-1,r),e.getFullYear()<0&&(e=E)),e}function b(n,t,r){r=r.toUpperCase(),n=O(n),t=O(t);const e=n.getFullYear(),u=n.getMonth(),f=n.getDate(),i=t.getFullYear(),s=t.getMonth(),l=t.getDate();let g;switch(r){case"Y":g=Math.floor(st(n,t));break;case"D":g=fn(t,n);break;case"M":g=s-u+12*(i-e),l<f&&g--;break;case"MD":f<=l?g=l-f:(s===0?(n.setFullYear(i-1),n.setMonth(12)):(n.setFullYear(i),n.setMonth(s-1)),g=fn(t,n));break;case"YM":g=s-u+12*(i-e),l<f&&g--,g=g%12;break;case"YD":s>u||s===u&&l<f?n.setFullYear(i):n.setFullYear(i-1),g=fn(t,n);break}return g}function Nf(n){if(typeof n!="string")return c;const t=Date.parse(n);return isNaN(t)?c:new Date(n)}function Tf(n){const t=O(n);return t instanceof Error?t:t.getDate()}function Kn(n){const t=new Date(n);return t.setHours(0,0,0,0),t}function fn(n,t){return n=O(n),t=O(t),n instanceof Error?n:t instanceof Error?t:dt(Kn(n))-dt(Kn(t))}function _(n,t,r){if(r=xn(r||"false"),n=O(n),t=O(t),n instanceof Error)return n;if(t instanceof Error)return t;if(r instanceof Error)return r;const e=n.getMonth();let u=t.getMonth(),f,i;if(r)f=n.getDate()===31?30:n.getDate(),i=t.getDate()===31?30:t.getDate();else{const s=new Date(n.getFullYear(),e+1,0).getDate(),l=new Date(t.getFullYear(),u+1,0).getDate();f=n.getDate()===s?30:n.getDate(),t.getDate()===l?f<30?(u++,i=1):i=30:i=t.getDate()}return 360*(t.getFullYear()-n.getFullYear())+30*(u-e)+(i-f)}function Sf(n,t){if(n=O(n),n instanceof Error)return n;if(isNaN(t))return c;let r=n.getDate();n.setDate(1),t=parseInt(t,10),n.setMonth(n.getMonth()+t);let e=n.getMonth();if(r>28){let u=[31,28,31,30,31,30,31,31,30,31,30,31][e],f=n.getFullYear();e===1&&(f%4===0&&f%100!==0||f%400===0)&&(u=29),r=Math.min(r,u)}return n.setDate(r),n}function Af(n,t){return n=O(n),n instanceof Error?n:isNaN(t)?c:(t=parseInt(t,10),new Date(n.getFullYear(),n.getMonth()+t+1,0))}function Df(n){return n=O(n),n instanceof Error?n:n.getHours()}function kt(n){if(n=O(n),n instanceof Error)return n;n=Kn(n),n.setDate(n.getDate()+4-(n.getDay()||7));const t=new Date(n.getFullYear(),0,1);return Math.ceil(((n-t)/864e5+1)/7)}function Rf(n){return n=O(n),n instanceof Error?n:n.getMinutes()}function Cf(n){return n=O(n),n instanceof Error?n:n.getMonth()+1}function Qn(n,t,r){return Qn.INTL(n,t,1,r)}Qn.INTL=(n,t,r,e)=>{if(n=O(n),n instanceof Error)return n;if(t=O(t),t instanceof Error)return t;let u=!1;const f=[],i=[1,2,3,4,5,6,0],s=new RegExp("^[0|1]{7}$");if(r===void 0)r=jn[1];else if(typeof r=="string"&&s.test(r)){u=!0,r=r.split("");for(let D=0;D<r.length;D++)r[D]==="1"&&f.push(i[D])}else r=jn[r];if(!(r instanceof Array))return c;e===void 0?e=[]:e instanceof Array||(e=[e]);for(let D=0;D<e.length;D++){const C=O(e[D]);if(C instanceof Error)return C;e[D]=C}const l=Math.round((t-n)/(1e3*60*60*24))+1;let g=l;const T=n;for(let D=0;D<l;D++){const C=new Date().getTimezoneOffset()>0?T.getUTCDay():T.getDay();let S=u?f.includes(C):C===r[0]||C===r[1];for(let L=0;L<e.length;L++){const P=e[L];if(P.getDate()===T.getDate()&&P.getMonth()===T.getMonth()&&P.getFullYear()===T.getFullYear()){S=!0;break}}S&&g--,T.setDate(T.getDate()+1)}return g};function Of(){return new Date}function Lf(n){return n=O(n),n instanceof Error?n:n.getSeconds()}function Pf(n,t,r){return n=o(n),t=o(t),r=o(r),h(n,t,r)?c:n<0||t<0||r<0?E:(3600*n+60*t+r)/86400}function Uf(n){return n=O(n),n instanceof Error?n:(3600*n.getHours()+60*n.getMinutes()+n.getSeconds())/86400}function af(){return Kn(new Date)}function Ff(n,t){if(n=O(n),n instanceof Error)return n;t===void 0&&(t=1);const r=n.getDay();return If[t][r]}function Vf(n,t){if(n=O(n),n instanceof Error)return n;if(t===void 0&&(t=1),t===21)return kt(n);const r=gf[t];let e=new Date(n.getFullYear(),0,1);const u=e.getDay()<r?1:0;return e-=Math.abs(e.getDay()-r)*24*60*60*1e3,Math.floor((n-e)/(1e3*60*60*24)/7+1)+u}function qn(n,t,r){return qn.INTL(n,t,1,r)}qn.INTL=(n,t,r,e)=>{if(n=O(n),n instanceof Error)return n;if(t=o(t),t instanceof Error)return t;if(r===void 0?r=jn[1]:r=jn[r],!(r instanceof Array))return c;e===void 0?e=[]:e instanceof Array||(e=[e]);for(let i=0;i<e.length;i++){const s=O(e[i]);if(s instanceof Error)return s;e[i]=s}let u=0;const f=Math.sign(t);for(;u<t*f;){n.setDate(n.getDate()+f);const i=n.getDay();if(!(i===r[0]||i===r[1])){for(let s=0;s<e.length;s++){const l=e[s];if(l.getDate()===n.getDate()&&l.getMonth()===n.getMonth()&&l.getFullYear()===n.getFullYear()){u--;break}}u++}}return n.getFullYear()<1900?c:n};function wf(n){return n=O(n),n instanceof Error?n:n.getFullYear()}function ct(n){return new Date(n,1,29).getMonth()===1}function $n(n,t){return Math.ceil((t-n)/1e3/60/60/24)}function st(n,t,r){if(n=O(n),n instanceof Error)return n;if(t=O(t),t instanceof Error)return t;r=r||0;let e=n.getDate();const u=n.getMonth()+1,f=n.getFullYear();let i=t.getDate();const s=t.getMonth()+1,l=t.getFullYear();switch(r){case 0:return e===31&&i===31?(e=30,i=30):e===31?e=30:e===30&&i===31&&(i=30),(i+s*30+l*360-(e+u*30+f*360))/360;case 1:{const g=(L,P)=>{const W=L.getFullYear(),j=new Date(W,2,1);if(ct(W)&&L<j&&P>=j)return!0;const w=P.getFullYear(),nn=new Date(w,2,1);return ct(w)&&P>=nn&&L<nn};let T=365;if(f===l||f+1===l&&(u>s||u===s&&e>=i))return(f===l&&ct(f)||g(n,t)||s===1&&i===29)&&(T=366),$n(n,t)/T;const D=l-f+1,S=(new Date(l+1,0,1)-new Date(f,0,1))/1e3/60/60/24/D;return $n(n,t)/S}case 2:return $n(n,t)/360;case 3:return $n(n,t)/365;case 4:return(i+s*30+l*360-(e+u*30+f*360))/360}}function dt(n){const t=n>-22038912e5?2:1;return Math.ceil((n-hf)/864e5)+t}function lt(n){return/^[01]{1,10}$/.test(n)}function Hf(n,t){return n=o(n),t=o(t),h(n,t)?c:Pn.besseli(n,t)}function Yf(n,t){return n=o(n),t=o(t),h(n,t)?c:Pn.besselj(n,t)}function Bf(n,t){return n=o(n),t=o(t),h(n,t)?c:Pn.besselk(n,t)}function Gf(n,t){return n=o(n),t=o(t),h(n,t)?c:Pn.bessely(n,t)}function Xf(n){if(!lt(n))return E;const t=parseInt(n,2),r=n.toString();return r.length===10&&r.substring(0,1)==="1"?parseInt(r.substring(1),2)-512:t}function pf(n,t){if(!lt(n))return E;const r=n.toString();if(r.length===10&&r.substring(0,1)==="1")return(0xfffffffe00+parseInt(r.substring(1),2)).toString(16);const e=parseInt(n,2).toString(16);return t===void 0?e:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=e.length?K("0",t-e.length)+e:E)}function Wf(n,t){if(!lt(n))return E;const r=n.toString();if(r.length===10&&r.substring(0,1)==="1")return(1073741312+parseInt(r.substring(1),2)).toString(8);const e=parseInt(n,2).toString(8);return t===void 0?e:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=e.length?K("0",t-e.length)+e:E)}function jf(n,t){return n=o(n),t=o(t),h(n,t)?c:n<0||t<0||Math.floor(n)!==n||Math.floor(t)!==t||n>0xffffffffffff||t>0xffffffffffff?E:n&t}function Kf(n,t){return n=o(n),t=o(t),h(n,t)?c:n<0||Math.floor(n)!==n||n>0xffffffffffff||Math.abs(t)>53?E:t>=0?n<<t:n>>-t}function Qf(n,t){return n=o(n),t=o(t),h(n,t)?c:n<0||t<0||Math.floor(n)!==n||Math.floor(t)!==t||n>0xffffffffffff||t>0xffffffffffff?E:n|t}function qf(n,t){return n=o(n),t=o(t),h(n,t)?c:n<0||Math.floor(n)!==n||n>0xffffffffffff||Math.abs(t)>53?E:t>=0?n>>t:n<<-t}function $f(n,t){return n=o(n),t=o(t),h(n,t)?c:n<0||t<0||Math.floor(n)!==n||Math.floor(t)!==t||n>0xffffffffffff||t>0xffffffffffff?E:n^t}function B(n,t,r){if(n=o(n),t=o(t),h(n,t))return n;if(r=r===void 0?"i":r,r!=="i"&&r!=="j")return c;if(n===0&&t===0)return 0;if(n===0)return t===1?r:t.toString()+r;if(t===0)return n.toString();{const e=t>0?"+":"";return n.toString()+e+(t===1?r:t.toString()+r)}}function Zf(n,t,r){if(n=o(n),n instanceof Error)return n;const e=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["\xE5ngstr\xF6m","\xC5",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic \xE5ngstr\xF6m","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m3",["m^3"],"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,416818182544058e-5],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,758660370370369e-22],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","\xB0",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519538e-3],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["\u0153rsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","\u03A9",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdest\xE4rke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square \xE5ngstr\xF6m","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988110336e-6],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],u={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,1152921504606847e3,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},f={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]};let i=null,s=null,l=t,g=r,T=1,D=1,C;for(let S=0;S<e.length;S++)C=e[S][2]===null?[]:e[S][2],(e[S][1]===l||C.indexOf(l)>=0)&&(i=e[S]),(e[S][1]===g||C.indexOf(g)>=0)&&(s=e[S]);if(i===null){const S=u[t.substring(0,2)];let L=f[t.substring(0,1)];t.substring(0,2)==="da"&&(L=["dekao",10,"da"]),S?(T=S[2],l=t.substring(2)):L&&(T=L[1],l=t.substring(L[2].length));for(let P=0;P<e.length;P++)C=e[P][2]===null?[]:e[P][2],(e[P][1]===l||C.indexOf(l)>=0)&&(i=e[P])}if(s===null){const S=u[r.substring(0,2)];let L=f[r.substring(0,1)];r.substring(0,2)==="da"&&(L=["dekao",10,"da"]),S?(D=S[2],g=r.substring(2)):L&&(D=L[1],g=r.substring(L[2].length));for(let P=0;P<e.length;P++)C=e[P][2]===null?[]:e[P][2],(e[P][1]===g||C.indexOf(g)>=0)&&(s=e[P])}return i===null||s===null||i[3]!==s[3]?A:n*i[6]*T/(s[6]*D)}function zf(n,t){if(n=o(n),n instanceof Error)return n;if(!/^-?[0-9]{1,3}$/.test(n)||n<-512||n>511)return E;if(n<0)return"1"+K("0",9-(512+n).toString(2).length)+(512+n).toString(2);const r=parseInt(n,10).toString(2);return typeof t>"u"?r:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=r.length?K("0",t-r.length)+r:E)}function Jf(n,t){if(n=o(n),n instanceof Error)return n;if(!/^-?[0-9]{1,12}$/.test(n)||n<-549755813888||n>549755813887)return E;if(n<0)return(1099511627776+n).toString(16);const r=parseInt(n,10).toString(16);return typeof t>"u"?r:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=r.length?K("0",t-r.length)+r:E)}function kf(n,t){if(n=o(n),n instanceof Error)return n;if(!/^-?[0-9]{1,9}$/.test(n)||n<-536870912||n>536870911)return E;if(n<0)return(1073741824+n).toString(8);const r=parseInt(n,10).toString(8);return typeof t>"u"?r:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=r.length?K("0",t-r.length)+r:E)}function df(n,t){return t=t===void 0?0:t,n=o(n),t=o(t),h(n,t)?c:n===t?1:0}function Et(n,t){return t=t===void 0?0:t,n=o(n),t=o(t),h(n,t)?c:M.erf(n)}Et.PRECISE=()=>{throw new Error("ERF.PRECISE is not implemented")};function ht(n){return isNaN(n)?c:M.erfc(n)}ht.PRECISE=()=>{throw new Error("ERFC.PRECISE is not implemented")};function yf(n,t){return t=t||0,n=o(n),h(t,n)?n:n>=t?1:0}function xf(n,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(n))return E;const r=n.length===10&&n.substring(0,1).toLowerCase()==="f",e=r?parseInt(n,16)-1099511627776:parseInt(n,16);if(e<-512||e>511)return E;if(r)return"1"+K("0",9-(512+e).toString(2).length)+(512+e).toString(2);const u=e.toString(2);return t===void 0?u:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=u.length?K("0",t-u.length)+u:E)}function vf(n){if(!/^[0-9A-Fa-f]{1,10}$/.test(n))return E;const t=parseInt(n,16);return t>=549755813888?t-1099511627776:t}function mf(n,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(n))return E;const r=parseInt(n,16);if(r>536870911&&r<0xffe0000000)return E;if(r>=0xffe0000000)return(r-0xffc0000000).toString(8);const e=r.toString(8);return t===void 0?e:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=e.length?K("0",t-e.length)+e:E)}function gt(n){const t=a(n),r=U(n);return h(t,r)?c:Math.sqrt(Math.pow(t,2)+Math.pow(r,2))}function U(n){if(n===void 0||n===!0||n===!1)return c;if(n===0||n==="0")return 0;if(["i","j"].indexOf(n)>=0)return 1;n=n+"",n=n.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j");let t=n.indexOf("+"),r=n.indexOf("-");t===0&&(t=n.indexOf("+",1)),r===0&&(r=n.indexOf("-",1));const e=n.substring(n.length-1,n.length),u=e==="i"||e==="j";return t>=0||r>=0?u?t>=0?isNaN(n.substring(0,t))||isNaN(n.substring(t+1,n.length-1))?E:Number(n.substring(t+1,n.length-1)):isNaN(n.substring(0,r))||isNaN(n.substring(r+1,n.length-1))?E:-Number(n.substring(r+1,n.length-1)):E:u?isNaN(n.substring(0,n.length-1))?E:n.substring(0,n.length-1):isNaN(n)?E:0}function It(n){const t=a(n),r=U(n);return h(t,r)?c:t===0&&r===0?H:t===0&&r>0?Math.PI/2:t===0&&r<0?-Math.PI/2:r===0&&t>0?0:r===0&&t<0?-Math.PI:t>0?Math.atan(r/t):t<0&&r>=0?Math.atan(r/t)+Math.PI:Math.atan(r/t)-Math.PI}function bf(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",r!==0?B(t,-r,e):n}function Zn(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(t)*(Math.exp(r)+Math.exp(-r))/2,-Math.sin(t)*(Math.exp(r)-Math.exp(-r))/2,e)}function yt(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(r)*(Math.exp(t)+Math.exp(-t))/2,Math.sin(r)*(Math.exp(t)-Math.exp(-t))/2,e)}function _f(n){const t=a(n),r=U(n);return h(t,r)?c:on(Zn(n),zn(n))}function on(n,t){const r=a(n),e=U(n),u=a(t),f=U(t);if(h(r,e,u,f))return c;const i=n.substring(n.length-1),s=t.substring(t.length-1);let l="i";if((i==="j"||s==="j")&&(l="j"),u===0&&f===0)return E;const g=u*u+f*f;return B((r*u+e*f)/g,(e*u-r*f)/g,l)}function no(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);e=e==="i"||e==="j"?e:"i";const u=Math.exp(t);return B(u*Math.cos(r),u*Math.sin(r),e)}function to(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(t*t+r*r)),Math.atan(r/t),e)}function ro(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(t*t+r*r))/Math.log(10),Math.atan(r/t)/Math.log(10),e)}function eo(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(t*t+r*r))/Math.log(2),Math.atan(r/t)/Math.log(2),e)}function uo(n,t){t=o(t);const r=a(n),e=U(n);if(h(t,r,e))return c;let u=n.substring(n.length-1);u=u==="i"||u==="j"?u:"i";const f=Math.pow(gt(n),t),i=It(n);return B(f*Math.cos(t*i),f*Math.sin(t*i),u)}function fo(){let n=arguments[0];if(!arguments.length)return c;for(let t=1;t<arguments.length;t++){const r=a(n),e=U(n),u=a(arguments[t]),f=U(arguments[t]);if(h(r,e,u,f))return c;n=B(r*u-e*f,r*f+e*u)}return n}function a(n){if(n===void 0||n===!0||n===!1)return c;if(n===0||n==="0"||["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(n)>=0)return 0;n=n+"";let t=n.indexOf("+"),r=n.indexOf("-");t===0&&(t=n.indexOf("+",1)),r===0&&(r=n.indexOf("-",1));const e=n.substring(n.length-1,n.length),u=e==="i"||e==="j";return t>=0||r>=0?u?t>=0?isNaN(n.substring(0,t))||isNaN(n.substring(t+1,n.length-1))?E:Number(n.substring(0,t)):isNaN(n.substring(0,r))||isNaN(n.substring(r+1,n.length-1))?E:Number(n.substring(0,r)):E:u?isNaN(n.substring(0,n.length-1))?E:0:isNaN(n)?E:n}function oo(n){if(n===!0||n===!1)return c;const t=a(n),r=U(n);return h(t,r)?c:on("1",Zn(n))}function io(n){const t=a(n),r=U(n);return h(t,r)?c:on("1",yt(n))}function zn(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.sin(t)*(Math.exp(r)+Math.exp(-r))/2,Math.cos(t)*(Math.exp(r)-Math.exp(-r))/2,e)}function xt(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(r)*(Math.exp(t)-Math.exp(-t))/2,Math.sin(r)*(Math.exp(t)+Math.exp(-t))/2,e)}function co(n){const t=a(n),r=U(n);if(h(t,r))return c;let e=n.substring(n.length-1);e=e==="i"||e==="j"?e:"i";const u=Math.sqrt(gt(n)),f=It(n);return B(u*Math.cos(f/2),u*Math.sin(f/2),e)}function so(n){if(n===!0||n===!1)return c;const t=a(n),r=U(n);return h(t,r)?E:on("1",zn(n))}function lo(n){if(n===!0||n===!1)return c;const t=a(n),r=U(n);return h(t,r)?E:on("1",xt(n))}function Eo(n,t){const r=a(n),e=U(n),u=a(t),f=U(t);if(h(r,e,u,f))return c;const i=n.substring(n.length-1),s=t.substring(t.length-1);let l="i";return(i==="j"||s==="j")&&(l="j"),B(r-u,e-f,l)}function ho(){if(!arguments.length)return c;const n=I(arguments);let t=n[0];for(let r=1;r<n.length;r++){const e=a(t),u=U(t),f=a(n[r]),i=U(n[r]);if(h(e,u,f,i))return c;t=B(e+f,u+i)}return t}function go(n){if(n===!0||n===!1)return c;const t=a(n),r=U(n);return h(t,r)?c:on(zn(n),Zn(n))}function Io(n,t){if(!/^[0-7]{1,10}$/.test(n))return E;const r=n.length===10&&n.substring(0,1)==="7",e=r?parseInt(n,8)-1073741824:parseInt(n,8);if(e<-512||e>511)return E;if(r)return"1"+K("0",9-(512+e).toString(2).length)+(512+e).toString(2);const u=e.toString(2);return typeof t>"u"?u:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=u.length?K("0",t-u.length)+u:E)}function Mo(n){if(!/^[0-7]{1,10}$/.test(n))return E;const t=parseInt(n,8);return t>=536870912?t-1073741824:t}function No(n,t){if(!/^[0-7]{1,10}$/.test(n))return E;const r=parseInt(n,8);if(r>=536870912)return"ff"+(r+3221225472).toString(16);const e=r.toString(16);return t===void 0?e:isNaN(t)?c:t<0?E:(t=Math.floor(t),t>=e.length?K("0",t-e.length)+e:E)}const To=Tn.DIST,So=Tn.INV,Ao=gn.DIST,Do=m.MATH,Ro=m.PRECISE,Co=Z.DIST,Oo=Z.DIST.RT,Lo=Z.INV,Po=Z.INV.RT,Uo=Z.TEST,ao=In.P,Fo=In.P,Vo=In.S,wo=gn.INV,Ho=ht.PRECISE,Yo=Et.PRECISE,Bo=_n.DIST,Go=z.DIST,Xo=z.DIST.RT,po=z.INV,Wo=z.INV.RT,jo=un.MATH,Ko=un.PRECISE,Qo=z.TEST,qo=Dn.DIST,$o=Dn.INV,Zo=nt.PRECISE,zo=tt.DIST,Jo=Mn.INV,ko=Mn.DIST,yo=Mn.INV,xo=rn.MULT,vo=rn.SNGL,mo=et.DIST,bo=Qn.INTL,_o=J.DIST,ni=J.INV,ti=J.S.DIST,ri=J.S.INV,ei=Q.EXC,ui=Q.INC,fi=Rn.EXC,oi=Rn.INC,ii=ut.DIST,ci=en.EXC,si=en.INC,li=Cn.AVG,Ei=Cn.EQ,hi=ft.P,gi=p.P,Ii=p.S,Mi=X.DIST,Ni=X.DIST.RT,Ti=X.INV,Si=X.TEST,Ai=G.P,Di=G.S,Ri=ot.DIST,Ci=qn.INTL,Oi=it.TEST;function Mt(n){const t=[];return Y(n,r=>{r&&t.push(r)}),t}function $(n,t){const r={};for(let f=1;f<n[0].length;++f)r[f]=!0;let e=t[0].length;for(let f=1;f<t.length;++f)t[f].length>e&&(e=t[f].length);for(let f=1;f<n.length;++f)for(let i=1;i<n[f].length;++i){let s=!1,l=!1;for(let g=0;g<t.length;++g){const T=t[g];if(T.length<e)continue;const D=T[0];if(n[f][0]===D){l=!0;for(let C=1;C<T.length;++C)if(!s)if(T[C]===void 0||T[C]==="*")s=!0;else{const L=ln(T[C]+""),P=[k(n[f][i],v)].concat(L);s=En(P)}}}l&&(r[i]=r[i]&&s)}const u=[];for(let f=0;f<n[0].length;++f)r[f]&&u.push(f-1);return u}function Li(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);let f=0;return Y(e,i=>{f+=u[i]}),e.length===0?H:f/e.length}function Pi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);const f=[];return Y(e,i=>{f.push(u[i])}),Sn(f)}function Ui(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);const f=[];return Y(e,i=>{f.push(u[i])}),An(f)}function ai(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const f=q(n,t);u=F(n[f])}else u=F(n[t]);return e.length===0?c:e.length>1?E:u[e[0]]}function Fi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);let f=u[e[0]];return Y(e,i=>{f<u[i]&&(f=u[i])}),f}function Vi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);let f=u[e[0]];return Y(e,i=>{f>u[i]&&(f=u[i])}),f}function wi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const s=q(n,t);u=F(n[s])}else u=F(n[t]);let f=[];Y(e,s=>{f.push(u[s])}),f=Mt(f);let i=1;return Y(f,s=>{i*=s}),i}function Hi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);let f=[];return Y(e,i=>{f.push(u[i])}),f=Mt(f),p.S(f)}function Yi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);let f=[];return Y(e,i=>{f.push(u[i])}),f=Mt(f),p.P(f)}function Bi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);const f=[];return Y(e,i=>{f.push(u[i])}),x(f)}function Gi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);const f=[];return Y(e,i=>{f.push(u[i])}),G.S(f)}function Xi(n,t,r){if(isNaN(t)&&typeof t!="string")return c;const e=$(n,r);let u=[];if(typeof t=="string"){const i=q(n,t);u=F(n[i])}else u=F(n[t]);const f=[];return Y(e,i=>{f.push(u[i])}),G.P(f)}function Nt(n){return n&&n.getTime&&!isNaN(n.getTime())}function Tt(n){return n instanceof Date?n:new Date(n)}function pi(n,t,r){let e=O(t);for(e.setFullYear(n.getFullYear()),e<n&&e.setFullYear(e.getFullYear()+1);e>n;)e.setMonth(e.getMonth()+-12/r);return e}function vt(n){return n=o(n),[1,2,4].indexOf(n)===-1?E:n}function mt(n){return n=o(n),[0,1,2,3,4].indexOf(n)===-1?E:n}function Wi(n,t,r,e,u,f,i){return n=Tt(n),t=Tt(t),r=Tt(r),f=vt(f),i=mt(i),R(f,i)?E:!Nt(n)||!Nt(t)||!Nt(r)?c:e<=0||u<=0||r<=n?E:(u=u||0,i=i||0,u*e*st(n,r,i))}function ji(){throw new Error("ACCRINTM is not implemented")}function Ki(){throw new Error("AMORDEGRC is not implemented")}function Qi(){throw new Error("AMORLINC is not implemented")}function qi(){throw new Error("COUPDAYBS is not implemented")}function $i(n,t,r,e){if(e=mt(e),r=vt(r),n=O(n),t=O(t),R(n,t))return c;if(R(r,e)||n>=t)return E;if(e===1){let f=pi(n,t,r),i=O(f);return i.setMonth(i.getMonth()+12/r),b(f,i,"D")}let u;switch(e){case 0:case 2:case 4:u=360;break;case 3:u=365;break;default:return E}return u/r}function Zi(){throw new Error("COUPDAYSNC is not implemented")}function zi(){throw new Error("COUPNCD is not implemented")}function Ji(){throw new Error("COUPNUM is not implemented")}function ki(){throw new Error("COUPPCD is not implemented")}function di(n,t,r,e,u,f){if(n=o(n),t=o(t),r=o(r),h(n,t,r))return c;if(n<=0||t<=0||r<=0||e<1||u<1||e>u||f!==0&&f!==1)return E;const i=On(n,t,r,0,f);let s=0;e===1&&(f===0&&(s=-r),e++);for(let l=e;l<=u;l++)s+=f===1?cn(n,l-2,i,r,1)-i:cn(n,l-1,i,r,0);return s*=n,s}function yi(n,t,r,e,u,f){if(n=o(n),t=o(t),r=o(r),h(n,t,r))return c;if(n<=0||t<=0||r<=0||e<1||u<1||e>u||f!==0&&f!==1)return E;const i=On(n,t,r,0,f);let s=0;e===1&&(s=f===0?i+r*n:i,e++);for(let l=e;l<=u;l++)s+=f>0?i-(cn(n,l-2,i,r,1)-i)*n:i-cn(n,l-1,i,r,0)*n;return s}function xi(n,t,r,e,u){if(u=u===void 0?12:u,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u))return c;if(n<0||t<0||r<0||e<0||[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(u)===-1||e>r)return E;if(t>=n)return 0;const f=(1-Math.pow(t/n,1/r)).toFixed(3),i=n*f*u/12;let s=i,l=0;const g=e===r?r-1:e;for(let T=2;T<=g;T++)l=(n-s)*f,s+=l;return e===1?i:e===r?(n-s)*f:l}function vi(n,t,r,e,u){if(u=u===void 0?2:u,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u))return c;if(n<0||t<0||r<0||e<0||u<=0||e>r)return E;if(t>=n)return 0;let f=0,i=0;for(let s=1;s<=e;s++)i=Math.min((n-f)*(u/r),n-t-f),f+=i;return i}function mi(n,t,r,e,u){if(n=O(n),t=O(t),r=o(r),e=o(e),u=o(u),u=u||0,h(n,t,r,e,u))return c;if(r<=0||e<=0)return E;if(n>=t)return c;let f,i;switch(u){case 0:f=360,i=_(n,t,!1);break;case 1:f=365,i=b(n,t,"D");break;case 2:f=360,i=b(n,t,"D");break;case 3:f=365,i=b(n,t,"D");break;case 4:f=360,i=_(n,t,!0);break;default:return E}return(e-r)/e*f/i}function bi(n,t){if(n=o(n),t=o(t),h(n,t))return c;if(t<0)return E;if(t>=0&&t<1)return H;t=parseInt(t,10);let r=parseInt(n,10);r+=n%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;const e=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return r=Math.round(r*e)/e,r}function _i(n,t){if(n=o(n),t=o(t),h(n,t))return c;if(t<0)return E;if(t>=0&&t<1)return H;t=parseInt(t,10);let r=parseInt(n,10);return r+=n%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t,r}function nc(){throw new Error("DURATION is not implemented")}function tc(n,t){return n=o(n),t=o(t),h(n,t)?c:n<=0||t<1?E:(t=parseInt(t,10),Math.pow(1+n/t,t)-1)}function cn(n,t,r,e,u){if(e=e||0,u=u||0,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u))return c;let f;if(n===0)f=e+r*t;else{const i=Math.pow(1+n,t);f=u===1?e*i+r*(1+n)*(i-1)/n:e*i+r*(i-1)/n}return-f}function rc(n,t){if(n=o(n),t=N(I(t)),h(n,t))return c;const r=t.length;let e=n;for(let u=0;u<r;u++)e*=1+t[u];return e}function ec(){throw new Error("INTRATE is not implemented")}function bt(n,t,r,e,u,f){if(u=u||0,f=f||0,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),f=o(f),h(n,t,r,e,u,f))return c;const i=On(n,r,e,u,f);return(t===1?f===1?0:-e:f===1?cn(n,t-2,i,e,1)-i:cn(n,t-1,i,e,0))*n}function uc(n,t){if(t=t||0,n=N(I(n)),t=o(t),h(n,t))return c;const r=(S,L,P)=>{const W=P+1;let j=S[0];for(let w=1;w<S.length;w++)j+=S[w]/Math.pow(W,(L[w]-L[0])/365);return j},e=(S,L,P)=>{const W=P+1;let j=0;for(let w=1;w<S.length;w++){const nn=(L[w]-L[0])/365;j-=nn*S[w]/Math.pow(W,nn+1)}return j},u=[];let f=!1,i=!1;for(let S=0;S<n.length;S++)u[S]=S===0?0:u[S-1]+365,n[S]>0&&(f=!0),n[S]<0&&(i=!0);if(!f||!i)return E;t=t===void 0?.1:t;let s=t;const l=1e-10;let g,T,D,C=!0;do D=r(n,u,s),g=s-D/e(n,u,s),T=Math.abs(g-s),s=g,C=T>l&&Math.abs(D)>l;while(C);return s}function fc(n,t,r,e){return n=o(n),t=o(t),r=o(r),e=o(e),h(n,t,r,e)?c:e*n*(t/r-1)}function oc(){throw new Error("MDURATION is not implemented")}function ic(n,t,r){if(n=N(I(n)),t=o(t),r=o(r),h(n,t,r))return c;const e=n.length,u=[],f=[];for(let l=0;l<e;l++)n[l]<0?u.push(n[l]):f.push(n[l]);const i=-St(r,f)*Math.pow(1+r,e-1),s=St(t,u)*(1+t);return Math.pow(i/s,1/(e-1))-1}function cc(n,t){return n=o(n),t=o(t),h(n,t)?c:n<=0||t<1?E:(t=parseInt(t,10),(Math.pow(n+1,1/t)-1)*t)}function sc(n,t,r,e,u){if(u=u===void 0?0:u,e=e===void 0?0:e,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u))return c;if(n===0)return-(r+e)/t;{const f=t*(1+n*u)-e*n,i=r*n+t*(1+n*u);return Math.log(f/i)/Math.log(1+n)}}function St(){const n=N(I(arguments));if(n instanceof Error)return n;const t=n[0];let r=0;for(let e=1;e<n.length;e++)r+=n[e]/Math.pow(1+t,e);return r}function lc(){throw new Error("ODDFPRICE is not implemented")}function Ec(){throw new Error("ODDFYIELD is not implemented")}function hc(){throw new Error("ODDLPRICE is not implemented")}function gc(){throw new Error("ODDLYIELD is not implemented")}function Ic(n,t,r){return n=o(n),t=o(t),r=o(r),h(n,t,r)?c:n<=0?E:(Math.log(r)-Math.log(t))/Math.log(1+n)}function On(n,t,r,e,u){if(e=e||0,u=u||0,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u))return c;let f;if(n===0)f=(r+e)/t;else{const i=Math.pow(1+n,t);f=u===1?(e*n/(i-1)+r*n/(1-1/i))/(1+n):e*n/(i-1)+r*n/(1-1/i)}return-f}function Mc(n,t,r,e,u,f){return u=u||0,f=f||0,n=o(n),r=o(r),e=o(e),u=o(u),f=o(f),h(n,r,e,u,f)?c:On(n,r,e,u,f)-bt(n,t,r,e,u,f)}function Nc(){throw new Error("PRICE is not implemented")}function Tc(n,t,r,e,u){if(n=O(n),t=O(t),r=o(r),e=o(e),u=o(u),u=u||0,h(n,t,r,e,u))return c;if(r<=0||e<=0)return E;if(n>=t)return c;let f,i;switch(u){case 0:f=360,i=_(n,t,!1);break;case 1:f=365,i=b(n,t,"D");break;case 2:f=360,i=b(n,t,"D");break;case 3:f=365,i=b(n,t,"D");break;case 4:f=360,i=_(n,t,!0);break;default:return E}return e-r*e*i/f}function Sc(){throw new Error("PRICEMAT is not implemented")}function Ac(n,t,r,e,u){return e=e||0,u=u||0,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),h(n,t,r,e,u)?c:n===0?-r*t-e:((1-Math.pow(1+n,t))/n*r*(1+n*u)-e)/Math.pow(1+n,t)}function Dc(n,t,r,e,u,f){if(f=f===void 0?.1:f,e=e===void 0?0:e,u=u===void 0?0:u,n=o(n),t=o(t),r=o(r),e=o(e),u=o(u),f=o(f),h(n,t,r,e,u,f))return c;const i=1e-10,s=100;let l=f;u=u?1:0;for(let g=0;g<s;g++){if(l<=-1)return E;let T,D;if(Math.abs(l)<i?T=r*(1+n*l)+t*(1+l*u)*n+e:(D=Math.pow(1+l,n),T=r*D+t*(1/l+u)*(D-1)+e),Math.abs(T)<i)return l;let C;if(Math.abs(l)<i)C=r*n+t*u*n;else{D=Math.pow(1+l,n);const S=n*Math.pow(1+l,n-1);C=r*S+t*(1/l+u)*S+t*(-1/(l*l))*(D-1)}l-=T/C}return l}function Rc(){throw new Error("RECEIVED is not implemented")}function Cc(n,t,r){return n=o(n),t=o(t),r=o(r),h(n,t,r)?c:n===0||t===0?E:Math.pow(r/t,1/n)-1}function Oc(n,t,r){return n=o(n),t=o(t),r=o(r),h(n,t,r)?c:r===0?E:(n-t)/r}function Lc(n,t,r,e){return n=o(n),t=o(t),r=o(r),e=o(e),h(n,t,r,e)?c:r===0||e<1||e>r?E:(e=parseInt(e,10),(n-t)*(r-e+1)*2/(r*(r+1)))}function Pc(n,t,r){return n=O(n),t=O(t),r=o(r),h(n,t,r)?c:r<=0||n>t||t-n>365*24*60*60*1e3?E:365*r/(360-r*_(n,t,!1))}function Uc(n,t,r){return n=O(n),t=O(t),r=o(r),h(n,t,r)?c:r<=0||n>t||t-n>365*24*60*60*1e3?E:100*(1-r*_(n,t,!1)/360)}function ac(n,t,r){return n=O(n),t=O(t),r=o(r),h(n,t,r)?c:r<=0||n>t||t-n>365*24*60*60*1e3?E:(100-r)*360/(r*_(n,t,!1))}function Fc(){throw new Error("VDB is not implemented")}function Vc(n,t,r){if(n=N(I(n)),t=Pt(I(t)),r=o(r),h(n,t,r))return c;const e=(S,L,P)=>{const W=P+1;let j=S[0];for(let w=1;w<S.length;w++)j+=S[w]/Math.pow(W,fn(L[w],L[0])/365);return j},u=(S,L,P)=>{const W=P+1;let j=0;for(let w=1;w<S.length;w++){const nn=fn(L[w],L[0])/365;j-=nn*S[w]/Math.pow(W,nn+1)}return j};let f=!1,i=!1;for(let S=0;S<n.length;S++)n[S]>0&&(f=!0),n[S]<0&&(i=!0);if(!f||!i)return E;r=r||.1;let s=r;const l=1e-10;let g,T,D,C=!0;do D=e(n,t,s),g=s-D/u(n,t,s),T=Math.abs(g-s),s=g,C=T>l&&Math.abs(D)>l;while(C);return s}function wc(n,t,r){if(n=o(n),t=N(I(t)),r=Pt(I(r)),h(n,t,r))return c;let e=0;for(let u=0;u<t.length;u++)e+=t[u]/Math.pow(1+n,fn(r[u],r[0])/365);return e}function Hc(){throw new Error("YIELD is not implemented")}function Yc(){throw new Error("YIELDDISC is not implemented")}function Bc(){throw new Error("YIELDMAT is not implemented")}function Gc(){const n=I(arguments);let t=c;for(let r=0;r<n.length;r++){if(n[r]instanceof Error)return n[r];n[r]===void 0||n[r]===null||typeof n[r]=="string"||(t===c&&(t=!0),n[r]||(t=!1))}return t}function Xc(){return!1}function pc(n,t,r){return n instanceof Error?n:(t=arguments.length>=2?t:!0,t==null&&(t=0),r=arguments.length===3?r:!1,r==null&&(r=0),n?t:r)}function Wc(){for(let n=0;n<arguments.length/2;n++)if(arguments[n*2])return arguments[n*2+1];return A}function jc(n,t){return Yn(n)?t:n}function Kc(n,t){return n===A?t:n}function Qc(n){return typeof n=="string"?c:n instanceof Error?n:!n}function qc(){const n=I(arguments);let t=c;for(let r=0;r<n.length;r++){if(n[r]instanceof Error)return n[r];n[r]===void 0||n[r]===null||typeof n[r]=="string"||(t===c&&(t=!1),n[r]&&(t=!0))}return t}function $c(){return!0}function Zc(){const n=I(arguments);let t=c;for(let r=0;r<n.length;r++){if(n[r]instanceof Error)return n[r];n[r]===void 0||n[r]===null||typeof n[r]=="string"||(t===c&&(t=0),n[r]&&t++)}return t===c?t:!!(Math.floor(Math.abs(t))&1)}function zc(){let n;if(arguments.length>0){const t=arguments[0],r=arguments.length-1,e=Math.floor(r/2);let u=!1;const f=r%2!==0,i=r%2===0?null:arguments[arguments.length-1];if(e){for(let s=0;s<e;s++)if(t===arguments[s*2+1]){n=arguments[s*2+2],u=!0;break}}u||(n=f?i:A)}else n=c;return n}const Jc={errors:_t,symbols:Ef}}}]);
|