/*! * * Spread.Sheets Library 11.1.0 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@grapecity.com * http://www.grapecity.com/en/licensing/grapecity/ * * */ var GC=GC||{};GC.Spread=GC.Spread||{},GC.Spread.CalcEngine=function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}return c.m=a,c.c=b,c.p="/assets/",c(0)}([function(a,b,c){!function(){"use strict";var b=c(1);c(3),c(4),c(5),b.SR={},b.SR.en=c(6),a.exports=b}()},function(a,b,c){!function(){"use strict";var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia=c(2),ja={},ka=ja.Functions={},la="number",ma="string",na="boolean",oa="TRUE",pa="FALSE",qa="#NULL!",ra="#DIV/0!",sa="#VALUE!",ta="#REF!",ua="#NAME?",va="#N/A",wa="#NUM!",xa=[qa,ra,sa,ta,ua,va,wa],ya=[0,7,15,23,29,42,36];ja.ErrorList=xa,b=ia.j,d=b.Ca,e=b.Ia,f=ja.BAND_INDEX_CONST=-2147483648,g=ja.MAX_ROW_COUNT=1048576,h=ja.MAX_COLUMN_COUNT=16384,i=ia.j.G,j=ia.l,k=ia.u,l=b.Fa;function za(a){return a&&a.toUpperCase()}m=function(){return ia.C(ja.SR)()},n=["o","n","s","b","d"],o=ja.kf=function(a,b,c,d){return{row:a,col:b,rowCount:c,colCount:d}},p=null,q=void 0,r=Math.abs,s=Math.min,ja.BangSource={},ja.RefErrorSource={},ja.supportRowColumnFormula=!1,t=ia.A,u=ia.B,v=function(){function a(b){var c=a.nf(b);if(!c)throw m().Exp_NotSupported;this._error=c.error,this._code=c.code}return a.prototype.toString=function(){return this._error},a.prototype.clone=function(){return new a(this._error)},a.prototype.toJSON=function(){return{_calcError:this._error,_code:this._code}},a.parse=function(b){try{return new a(b)}catch(a){return q}},a.nf=function(a){var b,c;if(a)for(b=0;b<xa.length;b++)if(c=xa[b],c===a||c===za(a))return{error:c,code:ya[b]};return q},a}(),ja.CalcError=v,w=ja.Errors={},w.Null=new v(qa,0),w.DivideByZero=new v(ra,7),x=w.Value=new v(sa,15),y=w.Reference=new v(ta,23),z=w.Name=new v(ua,29),A=w.NotAvailable=new v(va,42),B=w.Number=new v(wa,36),C=ja.pf=function(a,b){return{row:a,col:b}},D=ja.qf=function(a,b,c,d){return{row:a,col:b,rowCount:c,colCount:d}},E=ja.rf=function(a,b,c,d,e,f){var g=new I(1);return g.row=c,g.column=d,g.rowRelative=e,g.columnRelative=f,a&&(g.source=a),b&&(g.endSource=b),g},F=ja.uf=function(a,b,c,d,e,g,h,i,j,k){var l=new I(1),m;return l.isFullRow=d===f,l.isFullRow&&0===c&&e===ja.MAX_ROW_COUNT-1&&(c=e=f),l.isFullColumn=c===f,c>e&&(m=c,c=e,e=m,m=h,h=j,j=m),d>g&&(m=d,d=g,g=m,m=i,i=k,k=m),l.row=c,l.column=d,l.endRow=e,l.endColumn=g,l.rowRelative=h,l.columnRelative=i,l.endRowRelative=j,l.endColumnRelative=k,a&&(l.source=a),b&&(l.endSource=b),l};function Aa(a,b,c,d){return a===-1&&d>127||b===-1&&c>127||c*d>127}G=ja.CalcArray=function(a){this.array=a},G.prototype={getRowCount:function(){return this.array.length},getColumnCount:function(){return this.array[0].length},getValue:function(a,b){var c=this.array;return a.row!==q&&(a=a.row,b=a.column),a<0||b<0||a>=c.length||b>=c[0].length?x:this.array[a][b]},getValueByIndex:function(a){var b=this.getColumnCount(),c=Math.floor(a/b),d=a%b;return this.getValue(c,d)},toArray:function(a,b,c,d,e){var f,g,h,i,j=this,k=1,l=1,m=[],n=Ha.CalcConvertedError;for(b=b===q||b,k=j.getRowCount(),l=j.getColumnCount(),h=0;h<k;h++)for(b||(g=[],m.push(g)),i=0;i<l;i++){if(f=j.getValue(h,i),c&&Ha.vf(f))return m=[f],m.isError=!0,m;if(f=Ha.wf(f,a,!1,e),d&&f===n)return m=[f],m.isError=!0,m;b?m.push(f):g.push(f)}return m.rowCount=k,m.colCount=l,m.rangeCount=1,m},slice:function(a,b,c,d){var e,f,g,h=this,i=h.array,j=[];for(a=a<0?0:a,b=b<0?0:b,c=a+c>h.getRowCount()?h.getRowCount()-a:c,d=b+d>h.getColumnCount()?h.getColumnCount()-b:d,f=0;f<c;f++)for(e=[],j.push(e),g=0;g<d;g++)e.push(i[f+a][g+b]);return new G(j)}},H=ja.CalcReference=function(a,b){var c=this;c.xf=a,b?(c.yf=b,c.zf=b.length):c.zf=1},H.prototype={getRangeCount:function(){return this.zf},getRow:function(a){return this.yf?this.yf[a||0].row:0},getColumn:function(a){return this.yf?this.yf[a||0].col:0},getRowCount:function(a){return this.yf?this.yf[a||0].rowCount:this.xf.getRowCount()},getColumnCount:function(a){return this.yf?this.yf[a||0].colCount:this.xf.getColumnCount()},getValue:function(a,b){var c,d,e;if(a.row!==q?(c=a.row,d=a.col):(c=arguments[1],d=arguments[2],b=arguments[0]),b=b||0,c>=0||d>=0){if(e=this.yf,!e)return this.xf.getValue(c,d);if(b<e.length)return this.xf.getValue(c+e[b].row,d+e[b].col)}return y},getValueByIndex:function(a){var b=this.getColumnCount(),c=Math.floor(a/b),d=a%b;return this.getValue(c,d)},isHiddenRow:function(a,b,c){return this.xf.isHiddenRow(b+this.getRow(a),c)},isSubtotal:function(a,b,c){var d,e=this.xf;return 0===a&&b<e.getRowCount()&&c<e.getColumnCount()&&(d=e.getCalcSourceModel().ATa(b,c),d&&7===d.type&&("SUBTOTAL"===d.functionName||"AGGREGATE"===d.functionName))},getSource:function(){return this.xf},create:function(a){return new H(this.xf,a)},toArray:function(a,b,c,d,e,f){return this.xf.referenceToArray(this,a,b,c,d,e,f)}},ja.ExpressionType={unknow:0,reference:1,number:2,string:3,boolean:4,error:5,array:6,function:7,name:8,operator:9,parentheses:10,missingArgument:11,expand:12,structReference:13},I=ja.Expression=function(){function a(a){var b=this;b.type=a,1===a&&(b.sf=function(){return void 0===b.endRow||void 0===b.endColumn},b.tf=function(){return b.isFullRow&&b.isFullColumn?3:b.isFullRow?1:b.isFullColumn?2:0},b.getRange=function(a,c){return J(b,a,c)},b.offset=function(a,c,d){if(b.sf())return E(b.source,b.endSource,b.row+(b.rowRelative||d?a:0),b.column+(b.columnRelative||d?c:0),b.rowRelative,b.columnRelative);var e=F(b.source,b.endSource,b.row+(b.rowRelative||d?a:0),b.column+(b.columnRelative||d?c:0),b.endRow+(b.isFullColumn||!b.endRowRelative&&!d?0:a),b.endColumn+(b.isFullRow||!b.endColumnRelative&&!d?0:c),b.rowRelative,b.columnRelative,b.endRowRelative,b.endColumnRelative);return e.isFullRow=b.isFullRow,e.isFullColumn=b.isFullColumn,e},b.offset2=function(a,c,d,e){var f=F(b.source,b.endSource,b.row+(b.isFullColumn?0:a),b.column+(b.isFullRow?0:c),b.endRow+(b.isFullColumn?0:d),b.endColumn+(b.isFullRow?0:e),b.rowRelative,b.columnRelative,b.endRowRelative,b.endColumnRelative);return f.isFullRow=b.isFullRow,f.isFullColumn=b.isFullColumn,f})}return a.prototype.offset=function(a,b,c){var d,e,f,g=this,h=g.type;if(10===h)return ba(g.value.offset(a,b,c));if(7===h){for(d=g.arguments,e=[],f=0;f<d.length;f++)e.push(d[f].offset(a,b,c));return _(g.function,e)}return 9===h?aa(g.operatorType,g.value.offset(a,b,c),g.value2&&g.value2.offset(a,b,c)):this},a}(),J=ja.getRangeForReference=function(a,b,c){var d={row:-1,col:-1,rowCount:-1,colCount:-1},e,f,i,j;return a.isFullRow?(d.col=-1,d.colCount=-1):(a.columnRelative?(i=a.column+c,i=i>=h?i%h:i):i=a.column,a.sf()?(d.col=i,d.colCount=1):(a.endColumnRelative?(j=a.endColumn+c,j=j>=h?j%h:j):j=a.endColumn,d.col=i<=j?i:j,d.colCount=r(j-i)+1)),a.isFullColumn?(d.row=-1,d.rowCount=-1):(a.rowRelative?(e=a.row+b,e=e>=g?e%g:e):e=a.row,a.sf()?(d.row=e,d.rowCount=1):(a.endRowRelative?(f=a.endRow+b,f=f>=g?f%g:f):f=a.endRow,d.row=e<=f?e:f,d.rowCount=r(f-e)+1)),d},K=ja.CalcSource=function(){function a(b){this.id=a.sourceId++,this.Af=b,this.Bf=null}return a.sourceId=1,a}(),K.prototype={getCalcService:function(){return this.Af},Cf:function(){return this.Af},setCalcService:function(a){this.Af=a},getCalcSourceModel:function(){return this.Bf},setCalcSourceModel:function(a){this.Bf=a},getValue:function(a,b){return p},getName:function(){return""},setValue:function(a,b){},getReference:function(a){return new H(this,a)},getSources:function(a){return[this]},referenceToArray:function(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,r,s,t,u=this,v=1,w=1,y=[],z=a.getRangeCount();if(0===z)return y.isError=!0,[];for(m=u.getRowCount(),n=u.getColumnCount(),c=c===q||c,o=0;o<z;o++){if(c||(l=[],y.push(l)),v=a.getRowCount(o),0===v)return y.isError=!0,[];if(w=a.getColumnCount(o),0===w)return y.isError=!0,[];if(i=a.getRow(o),j=a.getColumn(o),i>=m||j>=n)return y=[p],y.rowCount=1,y.colCount=1,y.rangeCount=1,y;for(i+v>m&&(v=m-i),j+w>n&&(w=n-j),s=0;s<v;s++)for(g=i+s,c||(r=[],l.push(r)),t=0;t<w;t++){if(h=j+t,k=u.getValue(g,h),d&&Ha.vf(k))return y=[k],y.isError=!0,y;if(k=Ha.wf(k,b,!0,f),e&&k===Ha.CalcConvertedError)return y=[x],y.isError=!0,y;k===p&&f||(c?y.push(k):r.push(k))}}return c||1!==z||(y=y[0]),y.rowCount=v,y.colCount=w,y.rangeCount=z,y},getSheetReference:function(){var a=this;return a.Df=a.Df||new H(a),a.Df},setFormula:function(a,b){},setArrayFormula:function(a,b){},getRowCount:function(){return 1e3},getColumnCount:function(){return 100},isHiddenRow:function(a,b){return!1},getParserContext:function(a,b,c){return new ja.ParserContext(this,a,b,c)},startCalculation:function(){},endCalculation:function(){},getEvaluatorContext:function(a,b,c){return new ja.EvaluateContext(this,a,b,c)},getCustomFunction:function(a){return p},getCustomName:function(a){return p},refresh:function(){},toJSON:function(a,b){}},L=ja.CalcSourceModel=function(){function a(a,b){var c=this;c.Ef=0,c.Ff=0,c.Gf=[],c.dataTable={},c.dataTableByName={},c.Hf=[],c.If=[],c.Jf=p,c.xf=b,c.Af=a,c.B5=0}return a}(),L.prototype={getNode:function(a,b,c){var d,e=this,f=p;return a>=0&&b>=0?(d=e.dataTable[a],c&&!d&&(d=e.dataTable[a]={},a>e.Ef&&(e.Ef=a)),d&&(f=d[b],c&&!f&&(f=d[b]={},b>e.Ff&&(e.Ff=b)))):a===-1&&b>=0?(f=e.If[b],c&&!f&&(f=e.If[b]={},b>e.Ff&&(e.Ff=b))):a>=0&&b===-1?(f=e.Hf[a],c&&!f&&(f=e.Hf[a]={},b>e.Ff&&(e.Ff=b))):a===-1&&b===-1&&(f=e.Jf,c&&!f&&(f=e.Jf={})),f},getNodeByName:function(a,b){var c=this,d=c.dataTableByName[a];return b&&!d&&(d=c.dataTableByName[a]={}),d},Kf:function(a,b){var c=this.getNode(a,b);return c&&c.Lf},Mf:function(a,b){var c=this.getNode(a,b);return c&&c.Nf},Qf:function(a,b){return this.getWorkingNodeInfo(a,b,2)},BTa:function(a,b){return this.getWorkingNodeInfo(a,b,1)},ATa:function(a,b){return this.getWorkingNodeInfo(a,b,0)},CTa:function(a){var b=this.getNodeByName(a);return b&&b.Nf},DTa:function(a){var b=this.getNodeByName(a);return b&&b.Lf},clearAll:function(){var a=this;a.clear(-1,-1,-1,-1),a.dataTable={},a.dataTableByName={},a.Hf=[],a.If=[],a.Jf=p},clear:function(a,b,c,d,e){this.$b(a,b,c,d,e)},addRows:function(a,b){var c,d=this,e=d.rC();if(!(a<0||a>e||b<0))for(t(d.dataTable,e,a,b),t(d.Hf,e,a,b),c=0;c<b;c++)d.dataTable[a+c]&&(d.dataTable[a+c]={rs:"n"})},deleteRows:function(a,b){var c=this,d=c.rC();a<0||a>=d||b<=0||(a+b>d&&(b=d-a),u(c.dataTable,d,a,b),u(c.Hf,d,a,b))},addColumns:function(a,b){var c,d,e=this,f=e.rC(),g=e.cC();if(!(a<0||a>g||b<0)){for(c=0;c<f;c++)d=e.dataTable[c],d&&a<g&&t(d,g,a,b);t(this.If,g,a,b)}},deleteColumns:function(a,b){var c,d,e=this,f=e.rC(),g=e.cC();if(!(a<0||a>=g||b<0)){for(c=0;c<f;c++)d=this.dataTable[c],d&&u(d,g,a,b);u(this.If,g,a,b)}},ETa:function(a,b){var c=[a,b],d=this.getNode(a,b);return d&&c.push(d.Lf,d.Nf,d.Pf),c},FTa:function(a,b,c){a&&a.push(this.ETa(b,c))},dUa:function(){return this.getSource().getSheet().ITa.dUa()},$Va:function(a,b,c,d,e){var f=this;a===-1?f.kg(b,c,d):b===-1?f.jg(a,c,d):f.ig(a,b,c,d,e)},Rf:function(a,b,c,d){var e=this.getNode(a,b,!!c);e&&(d&&d.push([a,b,e.Lf]),e.Lf=c)},GTa:function(a,b,c,d,e,f,g){var h=this.getNode(a,b,!!c);h&&(this.FTa(g,a,b),h.Lf=c,(h.Nf||d)&&(h.Nf=d),(h.Pf||e)&&(h.Pf=e),h.isVolatile&&!c?this.Tf(h):(f||h.isVolatile)&&(h.isVolatile=f))},Sf:function(a,b,c){this.GTa(a,b,q,q,q,!1,c)},Uf:function(a,b,c,d,e,f){var g=this.getNode(b,c);g&&g.Lf&&a.GTa(d,e,g.Lf,g.Nf,g.Pf,g.isVolatile,f)},ega:function(a,b){var c=this.dataTable[a];return c&&c[b]},Wf:function(a,b,c){var d=this.getNode(a,b,!!c);d&&(d.Nf=c)},Xf:function(a,b,c){var d=this.getNode(a,b,!!c);d&&(d.Pf=c)},Yf:function(a,b){var c=this.getNode(a,b);return c&&c.calc},Zf:function(a,b,c){var d=this.getNode(a,b,!0);d&&(d.calc&&d.calc.isVolatile&&this.Tf(d),d.calc=c,c&&(c.node=d))},Q3:function(a,b,c){var d=this.getNode(a,b,!0);d&&d.calc&&(d.calc.isVolatile&&this.Tf(d),this.Af.Bh(d.calc,c),d.calc=q)},$f:function(a,b,c,d,e){var f,g=this;c>=0&&d>=0?(f=g.dataTable[c],f||(f=g.dataTable[c]={}),f[d]=e,e&&e.calc&&delete e.calc):c>=0&&d===-1&&a>=0&&b===-1?g.Hf[c]=e:d>=0&&c===-1&&b>=0&&a===-1&&(g.If[d]=e)},_f:function(a,b,c,d){var e=this,f=e.getNode(a,b),g=e.getNode(c,d);f&&f.Lf?e.$f(a,b,c,d,f):g&&g.Lf&&e.$f(a,b,c,d,p),g&&g.Lf?e.$f(c,d,a,b,g):f&&f.Lf&&e.$f(c,d,a,b,p)},ag:function(){return this.Gf},bg:function(a){a.isVolatile||(a.isVolatile=!0,this.Gf.push(a))},Tf:function(a){var b,c,d,e,f;if(a.isVolatile=q,b=this,b.B5++,b.B5>100){for(b.B5=0,c=[],d=b.Gf,e=b.Gf.length,f=0;f<e;f++)d[f].isVolatile&&c.push(d[f]);b.Gf=c}},getCalcService:function(){return this.Af},setCalcService:function(a){this.Af=a},Cf:function(){return this.Af},getSource:function(){return this.xf},hasFormula:function(a,b){return a=a!==q?a:-1,b=b!==q?b:-1,!!this.ATa(a,b)},setFormula:function(a,b,c,d,e,f,g){var h,i,j,k,l,m=this;if(c&&0===c.length&&(c=p),!e&&m.dg(a,b,1,1)&&m.eg(),h=m.getFormula(a,b),f||h!==c&&(""!==h||c)&&(h||""!==c)){if(i=m.Cf(),j=p,i)try{k=a>=0?a:0,l=b>=0?b:0,j=d||(c?i.parse(m.xf,c,k,l,!1,e,e):p),m.fg(a,b,j,q,!1,g)}catch(a){if(!e)throw a}a>=0&&b>=0&&m.xf.setFormula(a,b,c)}},getFormula:function(a,b,c){var d,e,f=this.Cf();return f&&(d=this.ATa(a,b))?(e=this.Qf(a,b),a=e?e.row:a,b=e?e.col:b,f.unparse(this.xf,d,a,b,c)):p},setFormulaByName:function(a,b,c,d){var e,f,g,h;if(a&&(a=za(a),e=this,b&&0===b.length&&(b=p),f=e.getFormulaByName(a),f!==b&&(""!==f||b)&&(f||""!==b))){if(g=e.Cf(),h=p,g)try{h=b?g.parse(e.xf,b,0,0,!1,c):p,e.gg(a,h,q,!1,d)}catch(a){if(!c)throw a}e.xf.setFormula({name:a},b)}},getFormulaByName:function(a){var b,c=this.Cf();return c&&a&&(b=this.DTa(za(a)))?c.unparse(this.xf,b,0,0):p},eg:function(){throw m().Exp_ArrayFromulaPart},rC:function(){return s(this.xf.getRowCount())},cC:function(){return s(this.xf.getColumnCount())},setArrayFormula:function(a,b,c,d,e,f,g){var h,i,j,k,l=this;if(e&&0===e.length&&(e=p),l.dg(a,b,c,d)&&l.eg(),a=a<0?0:a,b=b<0?0:b,i=l.Cf(),i&&(l.$b(a,b,c,d,g),e)){try{h=e?i.parse(l.xf,e,a,b,!1,f,f):p}catch(a){if(!f)throw a;return}for(j=a;j<a+c;j++)for(k=b;k<b+d;k++)l.fg(j,k,h,o(a,b,c,d),!1,g);a>=0&&b>=0&&l.xf.setArrayFormula(a,b,c,d,i.unparse(l.xf,h,a,b))}},getWorkingNodeInfo:function(a,b,c){var d,e=this,f=e.xf;return a>=f.getRowCount()||b>=f.getColumnCount()?d:(a>=0&&b>=0?(d=e.getNode(a,b),(!d||0===c&&!d.Lf||1===c&&!d.Nf||2===c&&!d.Pf)&&(d=e.getNode(a,-1)),(!d||0===c&&!d.Lf||1===c&&!d.Nf||2===c&&!d.Pf)&&(d=e.getNode(-1,b))):d=a>=0&&b===-1?e.getNode(a,-1):a===-1&&b>=0?e.getNode(-1,b):e.getNode(-1,-1),d&&(0===c&&d.Lf||1===c&&d.Nf||2===c&&d.Pf))},fg:function(a,b,c,d,e,f){var g,h,i,j,k,l,m,n=this,o=n.Cf();o.nia&&o.lh.asyncManager.endCalcCell(),g=d!==q&&null!==d,h=new ja.EvaluateContext(n.xf,C(g?d.row:a,g?d.col:b),g),i=ca(h,c,g,g?a-d.row:0,g?b-d.col:0),i=i===c?q:i,d!==q&&(j=d),a>=0&&b>=0?((e===q||e)&&(k=a>=0?a:0,l=b>=0?b:0,m=c?o.unparse(n.xf,c,k,l):q,n.xf.setFormula(a,b,m)),n.ig(a,b,c,i,j,f)):a>=0&&b===-1?n.jg(a,c,i,f):a===-1&&b>=0&&n.kg(b,c,i,f),o.autoCalculation&&!o.IsSuspended()&&o.recalculateAll(!1)},gg:function(a,b,c,d,e){var f,g=this,h=g.Cf(),i=new ja.EvaluateContext(g.xf,C(0,0),(!1)),j=ca(i,b,!1,0,0);j=j===b?q:j,d!==q&&!d||e||(f=b?h.unparse(g.xf,b,0,0):q,g.xf.setFormulaByName(a,f)),g.lg(a,b,j),h.autoCalculation&&!h.IsSuspended()&&!e&&h.recalculateAll(!1)},getRowExpression:function(a){return this.Kf(a,-1)},getColumnExpression:function(a){return this.Kf(-1,a)},lg:function(a,b,c,d){var e,f=this,g=f.mg(a,!0);g&&(g.ng(),e=this.getNodeByName(a,!0),e.Lf=b,d&&(d[0].push("dataTable",a),d[1]=e.Lf),c=b&&c?c:void 0,e.Nf=c,g.og(),f.Af.pg(g,3))},ig:function(a,b,c,d,e,f){var g=this,h=g.qg(a,b,!0);h&&(g.FTa(f,a,b),g.Af.onClearExpr(g.xf,C(a,b)),h.ng(),g.Rf(a,b,c),c?((d||g.Mf(a,b))&&g.Wf(a,b,d),(e||g.Qf(a,b))&&g.Xf(a,b,e)):(g.Wf(a,b,q),g.Xf(a,b,q)),h.og(),g.Af.pg(h,0))},jg:function(a,b,c,d){var e=this,f=e.rg(a,!0);f&&(e.FTa(d,a,-1),f.ng(),e.Rf(a,-1,b),(c||e.Mf(a,-1))&&e.Wf(a,-1,c),f.og(),e.Af.pg(f,1))},kg:function(a,b,c,d){var e=this,f=e.sg(a,!0);f&&(e.FTa(d,-1,a),f.ng(),e.Rf(-1,a,b),(c||e.Mf(-1,a))&&e.Wf(-1,a,c),f.og(),e.Af.pg(f,2))},$b:function(a,b,c,d,e){var f,g,h,i,j,k=this,l=a<0?0:a,m=b<0?0:b,n=a<0?k.rC():c,r=b<0?k.cC():d,s=l+n-1,t=m+r-1,u=function(a,b){if(f=k.Mf(a,b),g=k.Kf(a,b),f||g){h=k.Qf(a,b);var c=h?o(h.row,h.col,h.rowCount,h.colCount):q;k.fg(a,b,p,c,!0,e)}};for(i=l;i<=s&&i>=0;i++)for(b<0&&u(i,-1),j=m;j<=t&&j>=0;j++)i===l&&a<0&&u(-1,j),u(i,j);a<0&&b<0&&u(a,b)},dg:function(a,b,c,d){return this.tg(a,b,c,d,!0,!0)},tg:function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this,n=a<0?0:a,p=b<0?0:b,q=a<0?m.rC():c,r=b<0?m.cC():d,s=n+(0===q?1:q)-1,t=p+(0===r?1:r)-1,u=!1,v=[],w=[],x=m.dataTable;for(i=n;i<=s&&i>=0&&!(i>m.Ef);i++)if(h=x[i])for(j=p;j<=t&&j>=0&&!(j>m.Ff);j++)if(g=h[j])if(k=g.Pf){if(k.row<n||k.row+k.rowCount-1>s||k.col<p||k.col+k.colCount-1>t){if(e)return!0;u=!0}if(i!==k.row&&i!==n)continue;v.push(o(k.row,k.col,k.rowCount,k.colCount)),l=g.Lf,w.push(l),j=k.col+k.colCount-1}else f||(l=g.Lf,l&&(v.push({row:i,col:j}),w.push(l)));return!e&&{hasPart:u,ranges:v,formulas:w}},mg:function(a,b){var c=this,d=p,e=c.getNodeByName(a,b);return e&&(d=e.calc,!d&&b&&(d=new X(c,a),e.calc=d,d.node=e)),d},qg:function(a,b,c){var d,e,f,g=this,h=p;if(a>=0&&b>=0){if(d=g.dataTable,e=d[a],!e){if(!c)return h;e=d[a]={},a>g.Ef&&(g.Ef=a)}if(f=e[b],!f)return c&&(f=e[b]={},h=new T(g,a,b),f.calc=h,h.node=f,b>g.Ff&&(g.Ff=b)),h;h=f.calc,!h&&c&&(h=new T(g,a,b),f.calc=h,h.node=f,a>g.Ef&&(g.Ef=a),b>g.Ff&&(g.Ff=b))}return h},rg:function(a,b){var c=this,d=p;return a>=0&&(d=c.Yf(a,-1),!d&&b&&(d=new U(c,a),c.Zf(a,-1,d),a>c.Ef&&(c.Ef=a))),d},sg:function(a,b){var c=this,d=p;return a>=0&&(d=c.Yf(-1,a),!d&&b&&(d=new V(c,a),c.Zf(-1,a,d),a>c.Ff&&(c.Ff=a))),d},ug:function(a){var b=this;return!b.vg&&a&&(b.vg=new Y(b)),b.vg},wg:function(a,b){var c,d=this;return d.xg||(d.xg={}),c=d.xg[a],!c&&b&&(c=d.xg[a]=new W(d,a)),c},updateNameCalc:function(a,b){var c=this.wg(za(a));c&&(c.updateListening(!0,b),c.fh())},yg:function(a,b){var c,d,e=this,f=s(e.Ff,a+b-1);for(c=a;c!==-1&&c<=f;c++)e.isDirty(-1,c)&&(d=e.sg(c,!0),e.Af.pg(d,2))},zg:function(a,b){var c,d,e=this,f=s(e.Ef,a+b-1);for(c=a;c!==-1&&c<=f;c++)e.isDirty(c,-1)&&(d=e.rg(c,!0),e.Af.pg(d,1))},Ag:function(a,b,c,d){var e,f,g,h,i=this,j=s(i.Ef,a+c-1),k=s(i.Ff,b+d-1);for(e=a;e<=j;e++)for(f=b;f<=k;f++)i.ega(e,f)&&(g=i.qg(e,f,!0),i.Af.pg(g,0));i.zg(a,c),i.yg(b,d),h=i.ug(!1),h&&h.Bg(a,b,c,d)},Cg:function(){var a,b,c,d,e,f=this,g=f.ag();for(c=0;c<g.length;c++)d=g[c],d&&d.isVolatile&&d instanceof T&&!f.Af.Dg(d)&&(e=f.qg(d.row,d.column,!0),f.Af.pg(e,0),a=f.rg(d.row,!1),a&&!f.Af.Eg(a)&&f.zg(d.row,1),b=f.sg(d.column,!1),b&&!f.Af.Eg(b)&&f.yg(d.column,1))},Fg:function(){var a,b,c,d,e,f,g,h,i=this,j=i.ag(),k=!0,l=5,m=i.Af,n=i.xf;for(n.r$a=!0;k&&l;){for(k=!1,l--,c=0,d=j.length;c<d;c++)e=j[c],e&&e.isVolatile&&e instanceof T&&!i.Af.Dg(e)&&(f=e.row,g=e.column,i.recalculateCell(f,g)&&(k=!0,h=i.qg(f,g,!0),m.pg(h,0),a=i.rg(f,!1),a&&!m.Eg(a)&&i.zg(f,1),b=i.sg(g,!1),b&&!i.Af.Eg(b)&&i.yg(g,1)));k&&m.Gg(!0)}delete n.r$a},isDirty:function(a,b){return!(!this.Yf(a,b)&&!this.Kf(a,b))},recalculateCell:function(a,b){var c,d,e,f,g,h,i,j,k,l=this,m=l.xf,n=l.BTa(a,b)||l.ATa(a,b);return!!n&&(c=C(a,b),d=m.getValue(a,b),e=!1,j=l.Qf(a,b),j&&(e=!0,f=j.row,g=j.col,h=j.rowCount,i=j.colCount),l.Af.nia&&l.Af.lh.asyncManager.startCalcCell(l.xf,c),k=l.Af.Hg(l.xf,n,c,e,!0,j&&D(f,g,h,i)),d!==k&&(!(d instanceof Date&&k instanceof Date&&d.valueOf()===k.valueOf())&&(m.setValue(a,b,k,d),l.Af.nia&&l.Af.lh.asyncManager.endCalcCell(l.xf,c),!0)))},recalculateNameID:function(a){var b,c,d=this,e=d.xf,f=d.CTa(a)||d.DTa(a);if(f){if(b=e.getValueByName?e.getValueByName(a):e.getValue({name:a}),c=d.Af.Hg(d.xf,f,{name:a},!1,!0),b===c)return;if(b instanceof Date&&c instanceof Date&&b.valueOf()===c.valueOf())return;e.setValueByName?e.setValueByName(a,c):e.setValue({name:a},c)}},Ig:function(a,b,c,d,e,f,g){for(var h,i,j,k,l,m,n,o,r,s,t,u,v,w,x,y,z,A,B,C,D,G,H,I,K,L,M,N,O,P,Q,R,S,T=this;12===d.type;)d=d.value;for(;10===d.type;)d=d.value;for(;12===d.type;)d=d.value;if(e){for(;12===e.type;)e=e.value;for(;10===e.type;)e=e.value;for(;12===e.type;)e=e.value}if(13===d.type){if(m=d.getRange(b,c,!0),m===p)return;d=1===m.rowCount&&1===m.colCount?E(p,p,m.row,m.col,!1,!1):F(p,p,m.row,m.col,m.row+m.rowCount-1,m.col+m.colCount-1,!1,!1,!1,!1)}if(e&&e!==d&&8===e.type){if(e.source instanceof ja.ErrorSource)return;i=za(e.value),C=e.source||g||T.xf,j=C.getCustomName(i),j?D=C.getCalcSourceModel():(D=T.Af.getGlobalSourceModel()||C.getCalcSourceModel(),j=D.getSource().getCustomName(i),j||(k=C.getCalcSourceModel().wg(i,!0),k.Jg(a,f))),l=D.wg(i,!0),l.Jg(a,f),e=null,j&&T.Ig(a,b,c,j,p,f,D.getSource())}if(1===d.type&&d.endSource)for(G=d,H=G.source.getSources(G.endSource),h=0;h<H.length;h++)I=F(H[h],p,G.row,G.column,G.endRow,G.endColumn,G.rowRelative,G.columnRelative,G.endRowRelative,G.endColumnRelative),I.isFullRow=G.isFullRow,I.isFullColumn=G.isFullColumn,T.Ig(a,b,c,I,p,f);else if(1===d.type){if(C=d.source!==ja.BangSource&&d.source||T.xf,D=C.getCalcSourceModel(),!D)return;if(K=d,L=a.row===q||a.column===q,M=K.tf(),N=J(d,b,c),r=N.row,t=N.col,v=N.rowCount,w=N.colCount,s=r+v-1,u=t+w-1,0===M){if(0<=b&&0<=c)if(Aa(n,o,v,w))O=D.ug(!0),L?O.Xoa(r,t,v,w,a,f):O.Jg(r,t,v,w,a,f);else for(A=r;A<=s;A++)for(B=t;B<=u;B++)x=D.qg(A,B,!0),L?x&&x.Xoa(a,f):x&&x.Jg(a,f);else if(0<=b&&c===-1)for(A=r;A<=s;A++)for(B=t;B<=u;B++)K.columnRelative||K.endColumnRelative?(y=D.rg(A,!0),y&&y.Kg(a,-B,f)):(x=D.qg(A,B,!0),x&&x.Lg(a,f));else if(0<=c&&b===-1)for(A=r;A<=s;A++)for(B=t;B<=u;B++)K.rowRelative||K.endRowRelative?(z=D.sg(B,!0),z&&z.Mg(a,-A,f)):(x=D.qg(A,B,!0),x&&x.Ng(a,f))}else if(1===M){if(0<=b&&0<=c)for(A=r;A<=s;A++)y=D.rg(A,!0),L?y.Xoa(a,f):y.Jg(a,f);else if(0<=b&&c===-1);else if(b===-1&&0<=c)if(K.rowRelative||K.endRowRelative);else for(r=K.row,s=K.endRow,A=r;A<=s;A++)y=D.rg(A,!0),y.Ng(a,f)}else if(2===M)if(0<=b&&0<=c)for(B=t;B<=u;B++)z=D.sg(B,!0),L?z&&z.Xoa(a,f):z&&z.Jg(a,f);else if(0<=b&&c===-1);else if(b===-1&&0<=c)for(B=t;B<=u;B++)z=D.sg(B,!0),z&&z.Ng(a,f)}else if(9===d.type)T.Ig(a,b,c,d.value,e&&9===e.type&&e.value,f),d.value2&&T.Ig(a,b,c,d.value2,e&&9===e.type&&e.value2,f);else if(8===d.type){if(C=d.source||g||T.xf,i=za(d.value),j=C.getCustomName(i),j?D=C.getCalcSourceModel():(D=T.Af.getGlobalSourceModel()||C.getCalcSourceModel(),j=D.getSource().getCustomName(i),j||(k=C.getCalcSourceModel().wg(i,!0),k.Jg(a,f))),l=D.wg(i,!0),!l)return;l.Jg(a,f),j&&T.Ig(a,b,c,j,p,f,D.getSource())}else if(7===d.type){if(P=d.function){if(P.isVolatile()&&(f?T.bg(a):T.Tf(a)),!P.precedentReference())return;P instanceof ka.AsyncFunction&&(T.Af.nia=!0)}for(Q=d.arguments.length,h=0;h<Q;h++)T.Ig(a,b,c,d.arguments[h],e&&7===e.type&&e.arguments[h],f)}else if(25===d.type||26===d.type){if(R=d,C=d.source||T.xf,D=C.getCalcSourceModel(),S=D.mg(R.value,!0),!S)return;S.Jg(a,f)}},Og:function(a,b){var c=this.getNodeByName(a);c&&(c.Nf||c.Lf)&&this.Ig(this.mg(a),0,0,c.Nf||c.Lf,c.Lf,b)},Pg:function(a,b,c,d,e){var f,g,h,i,j,k=this,l=a+c,m=b+d;for(i=a;i<l;i++)for(j=b;j<m;j++)f=k.Mf(i,j),g=k.Kf(i,j),(f||g)&&(h=k.Qf(i,j),h?k.Ig(k.qg(i,j),h.row,h.col,f||g,g,e):k.Ig(k.qg(i,j),i,j,f||g,g,e))},Qg:function(a,b,c){var d,e,f=a+b;for(d=a;d!==-1&&d<f;d++)e=this.getColumnExpression(d),e&&this.Ig(this.sg(d,!1),-1,d,e,e,c)},Rg:function(a,b,c,d){this.Pg(a,b,c,d,!0)},Sg:function(a,b,c,d){this.Pg(a,b,c,d,!1)},Tg:function(a,b){},Ug:function(a,b){},Vg:function(a,b){this.Qg(a,b,!0)},Wg:function(a,b){this.Qg(a,b,!1)},Xg:function(a,b,c,d,e,f,g){var h,i,j,k=a+c,l=b+d,m=this;for(h=a;h<k;h++)for(i=b;i<l;i++)j=this.qg(h,i,!1),j&&(m.FTa(g,h,i),e&&j.Yg(),f&&j.Bg())},Zg:function(a,b,c,d,e){var f,g,h,i,j=this,k=j.Hf;if(a!==-1&&k)for(f=s(a+b,k.length),g=a;g<f;g++)h=k[g],h&&h.calc&&(j.FTa(e,g,-1),i=h.calc,c&&i.Yg(),d&&i.Bg())},$g:function(a,b,c,d,e){var f,g,h,i,j=this,k=j.If;if(a!==-1&&k)for(f=s(a+b,k.length),g=a;g<f;g++)h=k[g],h&&h.calc&&(j.FTa(e,-1,g),i=h.calc,c&&i.Yg(),d&&i.Bg())},_g:function(a,b,c,d,e,f,g){var h,i,j,k;(e||f)&&(h=this,g&&(i=h.dUa()),0<=a&&0<=b?(h.Xg(a,b,c,d,e,f,i),h.Zg(a,c,e,f,i),h.$g(b,d,e,f,i),h.vg&&(e&&h.vg.Yg(a,b,c,d),f&&h.vg.Bg(a,b,c,d))):0<=a&&b===-1?(h.Xg(a,0,c,h.cC(),e,f,i),h.Zg(a,c,e,f,i),h.vg&&(e&&h.vg.Yg(a,b,c,d),f&&h.vg.Bg(a,b,c,d))):a===-1&&0<=b?(h.Xg(0,b,h.rC(),d,e,f,i),h.$g(b,d,e,f,i),h.vg&&(e&&h.vg.Yg(a,b,c,d),f&&h.vg.Bg(a,b,c,d))):a===-1&&b===-1&&(j=h.rC(),k=h.cC(),h.Xg(0,0,j,k,e,f,i),h.Zg(0,j,e,f,i),h.$g(0,k,e,f,i),h.vg&&(e&&h.vg.Yg(a,b,c,d),f&&h.vg.Bg(a,b,c,d))))},getAllNodes:function(){var a,b,c,d,e=[],f=this.dataTable,g=this.Hf,h=this.If,i=this.Jf;i&&e.push(i);for(b in g)a=g[b],a&&e.push(a);for(b in h)a=h[b],a&&e.push(a);for(c in f)if(d=f[c])for(b in d)a=d[b],a&&e.push(a);return e},toJSON:function(a){this.xf.toJSON(a,this.dataTable,this.Ef,this.Ff)}},M="cellListeners",N="rowListeners",O="columnListeners",P="rowSliceListeners",Q="columnSliceListeners",R="nameIDListeners",S=ja.BaseCalc=function(){function a(a){this.cellListeners={},this.rowListeners={},this.columnListeners={},this.nameIDListeners={},this.ah=a}return a}(),S.prototype={hasListeners:function(){var a,b,c,d=this,e=d.Ze;for(a=0;a<e.length;a++)if(b=d[e[a]])for(c in b)if(b[c])return!0;return!1},Jg:function(a,b){var c=this.cellListeners,d=a.ah,e=null===d?"":d.xf.id+",",f=e+a.row+","+a.column;b?c[f]=a:c[f]=q},Lg:function(a,b){var c=this.rowListeners,d=a.ah,e=null===d?"":d.xf.id+",",f=e+a.row+",-1";b?c[f]=a:c[f]=q},Ng:function(a,b){var c=this.columnListeners,d=a.ah,e=null===d?"":d.xf.id+",",f=e+"-1,"+a.column;b?c[f]=a:c[f]=q},Xoa:function(a,b){var c,d,e,f;a instanceof X&&(c=this.nameIDListeners,d=a.ah,e=null===d?"":d.xf.id+",",f=e+a.name,b?c[f]=a:c[f]=q)},Yg:function(){var a,b,c,d,e=this.Ze;for(b=0;b<e.length;b++)if(c=this[e[b]])for(d in c)a=c[d],a&&a.bh()},Bg:function(){var a,b,c,d,e=this.Ze;for(b=0;b<e.length;b++)if(c=this[e[b]])for(d in c)a=c[d],!a||a.dh||a.eh||a.fh()},gh:function(a){var b,c,d,e,f=this.Ze,g=a?1:-1;for(c=0;c<f.length;c++)if(d=this[f[c]])for(e in d)b=d[e],b&&(b.delay+=g,a&&b instanceof T&&b.s$a())},bh:function(){},fh:function(){},ng:function(){},og:function(){}},T=ja.CellCalc=function(a){i(b,a);function b(b,c,d){a.call(this,b);var e=this;e.row=c,e.column=d,e.delay=0,e.Ze=[M,N,O,R]}return b}(S),e(T.prototype,{og:function(){var a=this;a.ah.Rg(a.row,a.column,1,1)},ng:function(){var a=this;a.ah.Sg(a.row,a.column,1,1)},bh:function(){this.ah.Cf().ih().hh(this,0)},fh:function(){this.ah.Cf().pg(this,0)},s$a:function(){var a,b,c,d,e,f,g,h,i=this,j=i.ah,k=j.getCalcService();k&&k.nia&&(a=i.nia,b=a&&i.t$a,!b&&l(a)&&(c=j.getSource(),c&&(d=c.getName(),e=k.lh.asyncManager,f=e.y5[d],f&&(g=f[i.row],g&&(h=g[i.column],h&&(b=h[0],b?(i.nia=!0,i.t$a=b,b.$$a=i):i.nia=!1))))),b&&0===b.evaluateMode&&(b.v5=!1))}});function Ba(a,b,c){a[b]||(a[b]=[]),a[b].push(c)}function Ca(a,b,c){var d,e=a[b];if(e)for(d=0;d<e.length;d++)if(e[d]===c)return void e.splice(d,1)}U=ja.RowCalc=function(a){i(b,a);function b(b,c){a.call(this,b);var d=this;d.row=c,d.Ze=[M,N,P,O,R]}return b}(S),e(U.prototype,{incrementDelay2:function(a,b){},decrementDelay2:function(a,b){},og:function(){this.ah.Tg(this.row,1)},ng:function(){this.ah.Ug(this.row,1)},Kg:function(a,b,c){c?Ba(this,P,{row:a,columnOffset:b,columnCount:1}):Ca(this,P,{row:a,columnOffset:b,columnCount:1})},bh:function(){this.ah.Cf().ih().hh(this,1)},fh:function(){this.ah.Cf().pg(this,1)}}),V=ja.ColumnCalc=function(a){i(b,a);function b(b,c){a.call(this,b);var d=this;d.column=c,d.Ze=[M,N,O,Q,R]}return b}(S),e(V.prototype,{incrementDelay2:function(a,b){},decrementDelay2:function(a,b){},og:function(){this.ah.Vg(this.column,1)},ng:function(){this.ah.Wg(this.column,1)},Mg:function(a,b,c){this.Ng(a,c)},bh:function(){this.ah.Cf().ih().hh(this,2)},fh:function(){this.ah.Cf().pg(this,2)}}),W=ja.NameCalc=function(a){i(b,a);function b(b,c){a.call(this,b),this.name=c,this.Ze=[M,N,O]}return b}(S),e(W.prototype,{updateListening:function(a,b){var c,d,e,f,g,h,i,j,k=this,l=k.Ze;for(e=0;e<l.length;e++)if(f=k[l[e]]){g=[];for(h in f)c=f[h],c&&g.push(c);for(i=g.length,j=0;j<i;j++)c=g[j],d=c.node,c.ng(),d&&(!d.Pf||d.Pf.row===c.row&&d.Pf.col===c.column)&&c.ah.fg(c.row,c.column,d.Lf,d.Pf,!0)}},updateListeningOnRemoved:function(){var a,b,c,d,e,f,g,h,i,j,k=this,l=k.Ze,m=k.ah,n=m.Cf();for(f=0;f<l.length;f++)if(g=k[l[f]])for(h in g)a=g[h],a&&(b=a.ah,c=a.row,d=a.col,c=c===q?-1:c,d=d===q?-1:d,e=b.Kf(c,d),i=b.Qf(c,d),e&&(j=n.ih().adjustFormulaOnRemoveName(m,e,k.name),j!==e&&b.fg(c,d,j,i,!0)))},fh:function(){var a,b,c,d,e=this.Ze;for(b=0;b<e.length;b++)if(c=this[e[b]])for(d in c)a=c[d],a&&a.fh()}}),X=ja.NameIDCalc=function(a){i(b,a);function b(b,c){a.call(this,b);var d=this;d.name=c,d.delay=0,d.Ze=[M,N,O,R]}return b}(S),e(X.prototype,{og:function(){var a=this;a.ah.Og(a.name,!0)},ng:function(){var a=this;a.ah.Og(a.name,!1)},bh:function(){this.ah.Cf().ih().hh(this,3)},fh:function(){this.ah.Cf().pg(this,3)}}),Y=ja.RangeCalc=function(){function a(a){this.ah=a,this.Ze=[M,N,O,R]}return a}(),e(Y.prototype,{processListener:function(a,b,c,d,e,f,g){var h=this,i=h[a],j=b+","+c+","+d+","+e,k,l;if(a!==R||f instanceof X){if(i||(h[a]=i={}),k=i[j],!k){if(!g)return;k=i[j]=[],k.row=b,k.col=c,k.rowCount=d,k.colCount=e}if(g){for(l=0;l<k.length;l++)if(k[l]===f)return;k.push(f)}else for(l=0;l<k.length;l++)k[l]===f&&k.splice(l,1)}},Jg:function(a,b,c,d,e,f){this.processListener(M,a,b,c,d,e,f)},Lg:function(a,b,c,d,e,f,g,h,i){this.processListener(N,a,b,c,d,e,i)},Ng:function(a,b,c,d,e,f,g,h,i){this.processListener(O,a,b,c,d,e,i)},Xoa:function(a,b,c,d,e,f){this.processListener(R,a,b,c,d,e,f)},Yg:function(a,b,c,d){this.visit(0,a,b,c,d)},visit:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=this.Ze;for(h=0;h<q.length;h++)if(i=this[q[h]])for(g in i)if(j=i[g],j&&(k=j.row,l=j.col,m=j.rowCount,n=j.colCount,(k===-1||b===-1||k<b+d&&b<k+m)&&(l===-1||c===-1||l<c+e&&c<l+n)))for(o=j.length,p=0;p<o;p++)f=j[p],0===a?f.bh():f.fh()},Bg:function(a,b,c,d){this.visit(1,a,b,c,d)},gh:function(a,b,c){var d,e,f,g,h,i,j,k=this.Ze,l=c?1:-1;for(e=0;e<k.length;e++)if(f=this[k[e]])for(g in f)if(h=f[g],d=h,d&&(d.row===-1||d.row<=a&&a<d.row+d.rowCount)&&(d.col===-1||d.col<=b&&b<d.col+d.colCount))for(i=h.length,j=0;j<i;j++)h[j].delay+=l},og:function(){},ng:function(){}}),Z=ja.CalcService=function(){function a(){var a=this;a.jh={},a.autoCalculation=!0,a.maximumIterations=1e3,a.maximumChange=.01,a.kh=new ja.Parser,a.lh=new ja.Evaluator(a),a.useR1C1=!1,a.mh=0,a.Bka=0,a.nh=ja.CalcOperatorAdjustor&&new ja.CalcOperatorAdjustor}return a}(),Z.prototype={dispose:function(){var a=this;a.jh={},a.oh=p},cloneFrom:function(a){var b=this;b.useR1C1=a.useR1C1,b.mh=a.mh,b.qh=a.qh},ih:function(){return this.nh},getSourceModel:function(a){var b=this.jh[a.id];return b||(b=this.jh[a.id]=new L(this,a),a.setCalcSourceModel(b),a.setCalcService(this)),b},getGlobalSourceModel:function(a){return this.oh||(a=a||new K,this.oh=new L(this,a),a.setCalcSourceModel(this.oh)),this.oh},setSourceModel:function(a,b){this.jh[a.id]=b,b.setCalcService(this)},getAllSouceModels:function(){var a,b=[],c=this.jh;for(a in c)b.push(c[a]);return b},removeSource:function(a){var b=this.jh[a.id];b&&(this.nh.ph(a),delete this.jh[a.id])},clearSource:function(){this.jh={},this.clearDirties()},ignoreDirty:function(){return this.qh},suspend:function(a){this.mh++,this.qh=!!a||a},resume:function(a){var b=this;b.mh--,b.mh<0&&(b.mh=0),b.IsSuspended()||(b.rh=p,b.qh=!1,b.recalculateAll(a))},suspendAdjust:function(){this.Bka++},resumeAdjust:function(){var a=this;a.Bka--,a.Bka<0&&(a.Bka=0)},isAdjustSuspended:function(){return this.Bka>0},clearDirties:function(){var a,b,c,d=this,e=[d.sh,d.th,d.uh,d.vh];for(c=0;c<e.length;c++)for(a=e[c];a;)b=a.eh,b?(a.eh=b.dh=q,a=b):a=p;d.sh=d.wh=d.th=d.xh=d.uh=d.yh=d.vh=d.zh=p},resumeWithoutCalc:function(){this.mh=0,this.clearDirties()},IsSuspended:function(){return this.mh>0},recalculate:function(a,b,c,d){var e=this.getSourceModel(a);c===-1?e.Ag(b,0,1,e.cC()):b===-1?e.Ag(0,c,e.rC(),1):e.Ag(b,c,1,1),this.IsSuspended()||this.recalculateAll(!1,d)},recalculateByName:function(a,b){var c,d;b&&(c=this.getSourceModel(a),d=c.mg(za(b),!0),this.pg(d,3),this.IsSuspended()||this.recalculateAll(!1))},recalcRange:function(a,b,c,d,e){var f=this.getSourceModel(a);c===-1?f.Ag(b,0,d,f.cC()):b===-1?f.Ag(0,c,f.rC(),e):f.Ag(b,c,d,e),this.IsSuspended()||this.recalculateAll(!1)},recalculateAll:function(a,b){var c,d,e,f,g,h=this; if(!h.IsSuspended()){b||h.lh.startCache(),d=h.jh;for(e in d)c=d[e],c.getSource().startCalculation(),a!==!1?(f=c.cC(),g=c.rC(),c.yg(0,f),c.zg(0,g),c.Ag(0,0,g,f)):b||c.Cg();if(h.Gg(),!b)for(e in d)c=d[e],c.Fg();for(e in d)c=d[e],c.getSource().endCalculation();b||h.lh.endCache()}},Ah:function(a,b){for(var c=a.length,d=b;d;)a[c]=d,c++,d=d.eh},Gg:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,v,w,x,y,z,A,B,C;if(void 0===a&&(a=!0),b=this,d=!1,a){for(s=[],b.uh&&b.Ah(s,b.uh);b.th;){for(e=b.th.ah,k=e.cC(),g=0;g<k;g++)b.pg(e.qg(b.th.row,g,!0),0);b.Bh(b.th,1)}for(;b.uh;){if(e=b.uh.ah,j=e.rC(),j>0)for(f=0;f<j;f++)b.pg(e.qg(f,b.uh.column,!0),0);else b.uh.Bg();b.Bh(b.uh,2)}for(l=b.sh;l;l=l.eh){for(e=l.ah,h=l.row,i=l.column,m=e.rg(h,!1),n=e.sg(i,!1),o=e.ug(!1),l.Bg(),m&&m.Bg(),n&&n.Bg(),o&&o.Bg(h,i,1,1);b.th;){for(e=b.th.ah,k=e.cC(),g=0;g<k;g++)b.pg(e.qg(b.th.row,g,!0),0);b.Bh(b.th,1)}for(;b.uh;){for(t=!1,r=0;r<s.length;r++)if(s[r]===b.uh){t=!0;break}if(t)b.Bh(b.uh,2);else{for(s[s.length]=b.uh,e=b.uh.ah,j=e.rC(),f=0;f<j;f++)b.pg(e.qg(f,b.uh.column,!0),0);b.Bh(b.uh,2)}}}for(p=b.vh;p;p=p.eh)p.Bg()}for(l=b.sh;l;l=c)e=l.ah,u=e.rC(),v=e.cC(),c=l.eh,l.row<u&&l.column<v?(ja.supportRowColumnFormula&&(n=e.sg(l.column,!1),n&&(n.delay=0)),l.delay=0):b.Bh(l,0);for(p=b.vh;p;p=p.eh)p.delay=0;for(l=b.sh;l;l=l.eh)e=l.ah,f=l.row,g=l.column,m=e.rg(f,!1),n=e.sg(g,!1),o=e.ug(!1),l.gh(!0),m&&m.gh(!0),n&&n.gh(!0),o&&o.gh(f,g,!0);for(p=b.vh;p;p=p.eh)p.gh(!0);do{for(d=!1,l=b.sh;l;l=c)if(c=l.eh,0===l.delay){if(e=l.ah,f=l.row,g=l.column,m=e.rg(f,!1),n=e.sg(g,!1),n&&n.delay)continue;o=e.ug(!1),e.recalculateCell(f,g),b.Bh(l,0),l.gh(!1),m&&m.gh(!1),n&&n.gh(!1),o&&o.gh(f,g,!1),d=!0}for(p=b.vh;p;p=p.eh)0===p.delay&&(e=p.ah,e.recalculateNameID(p.name),b.Bh(p,3),p.gh(!1),d=!0)}while(d);if(b.sh){w=!0;for(x in b.jh)y=b.jh[x],z=y.getSource(),z.clearValueCache&&z.clearValueCache();for(r=0;w&&r<b.maximumIterations;r++)for(w=!1,l=b.sh;l;l=c)c=l.eh,A=l.ah,f=l.row,g=l.column,B=A.getSource().getValue(f,g),A.recalculateCell(f,g),C=A.getSource().getValue(f,g),b.Ch(B,C)>=b.maximumChange&&(w=!0);for(l=b.sh;l;l=c)c=l.eh,l.eh=q,c&&(c.dh=q);b.sh=b.wh=q}},Ch:function(a,b){var c,d;return a=a||0,b=b||0,c=parseFloat(a),d=parseFloat(b),r(d-c)},initParserContext:function(a){var b=this.Dh;b||(this.Dh=a.getParserContext(this.useR1C1))},getParserContext:function(a){var b=this,c=b.Dh;return c||(a?b.Dh=c=a.getParserContext(b.useR1C1):c=new ja.ParserContext(p,b.useR1C1,C(0,0),p)),c.setSource(a),c},parse:function(a,b,c,d,e,f,g){var h,i,j=this,k=j.rh,l=j.getParserContext(a);return l.useR1C1=!g&&j.useR1C1,l.ignoreError=f,l.row=c,l.column=d,l.culture=e,k?(l.useR1C1||(l.useR1C1=!0,b=j.kh.a1ToR1C1(l,b)),(h=k[b])?h:(i=j.kh.parse(l,b),k[b]=i,i)):j.kh.parse(l,b)},unparse:function(a,b,c,d,e,f){var g,h=this.getParserContext(a);return h.useR1C1=this.useR1C1,h.row=c,h.column=d,h.culture=e,f&&(h.Eh=!0,h.useR1C1=!1),g=this.kh.unparse(h,b),h.Eh=!1,g},Dg:function(a){return!!a.dh||a===this.sh},pg:function(a,b){var c=this,d,e;if(0===b)d=c.sh,e=c.wh;else if(1===b)d=c.th,e=c.xh;else if(2===b)d=c.uh,e=c.yh;else{if(3!==b)return;d=c.vh,e=c.zh}a&&!a.dh&&a!==d&&(d?e.eh=a:0===b?c.sh=a:1===b?c.th=a:2===b?c.uh=a:c.vh=a,a.dh=e,a.eh=p,0===b?c.wh=a:1===b?c.xh=a:2===b?c.yh=a:c.zh=a)},Bh:function(a,b){var c,d,e,f=this;if(0===b)c=f.sh;else if(1===b)c=f.th;else if(2===b)c=f.uh;else{if(3!==b)return;c=f.vh}a&&(a.dh||a===c)&&(d=a.dh,e=a.eh,d?d.eh=e:0===b?f.sh=e:1===b?f.th=e:2===b?f.uh=e:f.vh=e,e?e.dh=d:0===b?f.wh=d:1===b?f.xh=d:2===b?f.yh=d:f.zh=d,a.dh=p,a.eh=p)},Eg:function(a){return a.dh||a===this.th},isDirtyColumn:function(a){return a.dh||a===this.uh},Hg:function(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o=c.row||0,r=c.col||0,s=f?f.row:o,t=f?f.col:r,u=a.getEvaluatorContext(c,d,f),v=4===arguments.length&&d,w=this.lh.evaluateExpression(b,u,e,v,v);if(d&&arguments.length<=5)return w;if(Ha.Fh(w)){if(g=w.getRowCount(0),h=w.getColumnCount(0),1!==w.getRangeCount())return x;try{if(i=d?o-s:o-w.getRow(0),j=d?r-t:r-w.getColumn(0),k=C(0,0),1===g&&1===h);else if(1===g&&h>1&&j>=0&&j<h)k.col=j;else if(g>1&&1===h&&i>=0&&i<g)k.row=i;else{if(!(d&&i<g&&j<h))return d?A:x;k.row=i,k.col=j}w=w.getValue(k,0)}catch(a){return x}}else if(Ha.Ca(w))if(d){if(l=w,m=l.getRowCount(),n=l.getColumnCount(),1!==m&&o-s>=m||1!==n&&r-t>=n)return A;w=w.getValue(1===m?0:o-s,1===n?0:r-t)}else w=w.getValueByIndex(0);return w===q||w===p?e===!1?w:0:w},Gh:function(a,b,c){var d=this,e=d.Dh;return e||(d.Dh=e=a.getParserContext(d.useR1C1)),e.useR1C1=d.useR1C1,e.row=b,e.column=c,e},evaluate:function(a,b,c,d){var e=this,f=b instanceof I?b:e.parse(a,b,c,d);return e.lh.evaluateExpression(f,a.getEvaluatorContext(C(c,d),!1),!1)},onClearExpr:function(a,b){this.lh&&this.lh.asyncManager.clearCell(a,b)}},$=ja.Hh=function(a,b,c){var d=new I(5);return b&&(d.source=b),c&&(d.endSource=c),d.value=a,d},ja.Ih=$(y),_=ja.Jh=function(a,b){var c=new I(7);return c.arguments=b,a instanceof I?(c.function=a.function,c.functionName=a.functionName):(c.function=a.name&&a,c.functionName=a.name||a),c};function Da(a,b){var c=new I(12);return c.value=a,c.needExpendIndexs=b,c}aa=ja.Kh=function(a,b,c){var d=new I(9);return d.operatorType=a,d.value=b,d.value2=c,d},ba=ja.Lh=function(a){var b=new I(10);return b.value=a,b};function Ea(a){var b=new I(3);return b.value=a,b}function Fa(a){var b=new I(2);return b.value=a,b}function Ga(a,b,c,d,e){return{expr:a,acceptsArray:b,acceptsRef:c,index:d,context:e}}ca=ja.Mh=function(a,b,c,d,e,i,j){var k,l,m,n,o,q,r,s,t,u,v,w,y,B,D,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,ca,da,ea,fa,ga,ha=a.row,ia=a.column,ka=[],la=0,ma=a.arrayIdentity?a.arrayIdentity.row:ha,na=a.arrayIdentity?a.arrayIdentity.col:ia;for(ka[la]={expr:b,acceptsArray:i||!1,acceptsRef:j||!1,index:-1},k=0,l=0,m=!1,n=d,o=e,q=!1;la>=0;){if(r=ka[la--],s=r.acceptsArray,t=r.acceptsRef,b=r.expr,u=p,b){if(7===b.type){if(J=b,L=J.arguments.length,!J.function){if(!a){u=$(z);continue}J.function=a.getFunction(J.functionName)}if(K=J.function,M=r.index,I=r.neeedExpendindexs,M<0?(r.arrayArgumentEvaluateMode=q,r.arrayFormulaCatchValue=c,K&&K.arrayArgumentEvaluateMode&&(q=K.arrayArgumentEvaluateMode),r.args=[]):(K&&K.acceptsArray(M)?k--:m&&(I||(I=[],r.neeedExpendindexs=I),J.arguments[M]!==v,I.push(M)),r.args.push(v)),M===L-1){if(q=r.arrayArgumentEvaluateMode,c=r.arrayFormulaCatchValue,N=r.args,O=!1,N&&N.length>0)for(P=0;P<N.length;P++)if(N[P]!==J.arguments[P]){O=!0;break}u=O?_(J,N):b,I&&I.length>0&&(u=Da(u,I),m=!0),t&&s||!K||!K.returnReference||!K.returnReference()||(m=!0)}else 0===M&&K&&3===K.arrayArgumentEvaluateMode&&3===q&&(q=0),m=!1,M++,r.index=M,K&&K.acceptsArray(M)&&k++,ka[++la]=r,ka[++la]={expr:J.arguments[M],acceptsArray:!!K&&K.acceptsArray(M),acceptsRef:!!K&&K.acceptsReference(M),index:-1}}else if(1===b.type&&b.sf())l&&(y=b.source!==ja.BangSource&&b.source||a.source,B=y.getRowCount(),D=y.getColumnCount(),G=b.rowRelative?(b.row+ma)%g%B:b.row,H=b.columnRelative?(b.column+na)%h%D:b.column,G=G<0?G+B:G,H=H<0?H+D:H,b=E(b.source&&y,p,G,H,!1,!1));else if(1===b.type||13===b.type){if(13===b.type){if(Q=b,w=Q.getRange(ha,ia),!w){u=b,v=b;continue}b=F(Q.source()===a.source?p:Q.source(),p,w.row,w.col,w.row+w.rowCount-1,w.col+w.colCount-1)}R=b.source!==ja.BangSource&&b.source,S=b,l&&(y=R||a.source,B=g,D=h,T=S.rowRelative?(S.row+ma)%B:S.row,U=S.columnRelative?(S.column+na)%D:S.column,V=S.endRowRelative?(S.endRow+ma)%B:S.endRow,W=S.endColumnRelative?(S.endColumn+na)%D:S.endColumn,T=T<0?T+B:T,U=U<0?U+D:U,V=V<0?V+B:V,W=W<0?W+D:W,T>V&&(X=T,T=V,V=X),U>W&&(X=U,U=W,W=X),B=y.getRowCount(),D=y.getColumnCount(),T>=B?(T%=B,V%=B):V>=B&&(V=B-1),U>=D?(U%=D,W%=D):W>=D&&(W=D-1),b.row===f&&(T=V=f),b.column===f&&(U=W=f),b=F(R,b.endSource,T,U,V,W,!1,!1,!1,!1)),t&&(s||!c&&1!==q&&3!==q)||ha<0||ia<0||(k>0&&!c&&1!==q&&3!==q||0===k||2===q?(w=S.getRange(ha,ia),c||(t||s)&&1===q?!S.isFullColumn&&1!==w.rowCount&&n>=w.rowCount||!S.isFullRow&&1!==w.colCount&&o>=w.colCount?u=$(A):(G=(S.isFullColumn?0:w.row)+(1===w.rowCount?0:n),H=(S.isFullRow?0:w.col)+(1===w.colCount?0:o),u=E(R,b.endSource,G,H,!1,!1)):w.rowCount>1&&w.colCount>1||w.rowCount>1&&!S.isFullColumn&&(ha<w.row||ha>=w.row+w.rowCount)||w.colCount>1&&!S.isFullRow&&(ia<w.col||ia>=w.col+w.colCount)?u=$(x):(G=S.isFullColumn||w.rowCount>1?ha:w.row,H=S.isFullRow||w.colCount>1?ia:w.col,u=E(R,b.endSource,G,H,!1,!1))):m=!0)}else if(9===b.type)Y=b.operatorType>=15,r.index===-1?(r.index=b.value2?0:1,ka[++la]=r,ka[++la]=Ga(b.value,Y,Y,-1)):0===r.index?(v!==b.value&&(u=aa(b.operatorType,v,b.value2),r.expr=u),m&&(I=[],I.push(0),r.neeedExpendindexs=I,m=!1),r.index=1,ka[++la]=r,ka[++la]=Ga(b.value2,Y,Y,-1)):(u=b.value2&&v!==b.value2?aa(b.operatorType,b.value,v):b,I=r.neeedExpendindexs,m&&(I||(I=[]),I.push(1)),I&&(u=Da(u,I),m=!0));else if(10===b.type)r.index===-1?(r.index=0,ka[++la]=r,ka[++la]=Ga(b.value,s,t,-1)):b.value!==v&&(u=ba(v));else if(8===b.type)1===r.index?(l--,u=v,r.context&&(a=r.context)):(l++,ka[++la]=Ga(b,s,t,1,a),ca=a,b.source?(da=b.source===ja.BangSource?a.source:b.source,ca=new ja.EvaluateContext(da),ca.cloneFrom(a),Z=da.getCustomName(b.value)):(Z=a.getName(b.value),a.source.getCustomName(b.value)||(ca=new ja.GloableEvaluateContext(a.source),ca.cloneFrom(a))),Z||(Z=$(z)),a=ca||a,ka[++la]=Ga(Z,s,t,-1,a));else if(6===b.type)if(ea=b,!s&&(k>0||c||1===q||3===q))m=!0;else if(!s&&0===k)if(n>=ea.value.RowCount&&ea.value.RowCount>1||o>=ea.value.colCount&&ea.value.colCount>1)u=$(A);else try{1===ea.value.RowCount&&(n=0),1===ea.value.colCount&&(o=0),fa=ea.value.getValue(n,o),"string"==typeof fa?u=Ea(fa):"number"==typeof fa&&(u=Fa(fa)),ga=new ja.Parser,u=ga.parse(a.source.getParserContext(a.useR1C1,C(0,0)),""+ea.value.getValue(n,o))}catch(a){u=$(A)}}else;u===p&&(u=b),v=u}return u};function Ha(){}function Ia(a,b){return typeof a===la||a instanceof Date||!b&&(typeof a===na||!isNaN(a)&&!isNaN(parseFloat(a)))}Ha.Na=Ia;function Ja(a){return a instanceof v}Ha.vf=Ja;function Ka(a){return Ja(a)&&a._code===ya[5]}Ha.jja=Ka;function La(a){return a instanceof G}Ha.Ca=La;function Ma(a){return a instanceof H}Ha.Fh=Ma;function Na(a){return isNaN(a)||!isFinite(a)?B:a}Ha.Nh=Na;function Oa(a,b,c,e,f,g,h){var i,j,k;if(a&&a.length&&a.rowCount&&a.colCount)return a;if(La(a))i=a.toArray(b,c,e,f,g),i.isArray=!0;else if(Ma(a))i=a.toArray(b,c,e,f,g,h),i.isReference=!0;else if(d(a)&&a.length>0){if(i=[],d(a[0]))return Ha.Oh(a,b,!0);for(j=0;j<a.length;j++)k=Pa(a[j],b,!1),k===Ha.CalcConvertedError&&(i.isConvertError=!0),i.push(k);i.rowCount=1,i.colCount=a.length,i.rangeCount=1}else a=Pa(a,b,!0),e&&Ja(a)?(i=[x],i.isError=!0):a===Ha.CalcConvertedError?(i=[Ha.CalcConvertedError],i.isConvertError=!0):c?(i=[],i.push(a)):(i=[[]],i[0].push(a)),i.rowCount=1,i.colCount=1,i.rangeCount=1;return i}Ha.Ph=Oa;function Pa(a,b,c,d){var e,f,g;if(Ja(a))return a;if(e={value:p},f=Ha.CalcConvertedError,0!==b&&Qa(a,d))return f;switch(b){case 1:case 5:c&&5!==b?a=Wa(a,e)?e.value:f:typeof a===la||(a=a instanceof Date?j.Ra(a):f);break;case 4:typeof a===ma?(g=ia.l.Qa(a),a=g!==q&&g!==p?j.Ra(g):f):c?a=Wa(a,e)?e.value:f:typeof a===la||a instanceof Date||(a=f);break;case 3:c?a=Wa(a,e)?e.value:f:typeof a!==na&&(a=f);break;case 2:a=a===p||a===q?"":""+a}return a}Ha.wf=Pa;function Qa(a,b){return b&&(a===p||a===q||typeof a===ma&&""===a.trim())}Ha.u$a=Qa;function Ra(a,b,c){var d,e,f,g,h,i,j,k,l,m,o,r,s;if(!a||!a.length||!a[0].length)return d=[],d.isError=!0,[[x]];if(0===b)return a;if(e=n[b],f=a.length,g=a[0].length,k={value:p},l=!1,m=!1,o=Ha.CalcConvertedError,d=a[e],!d)for(d=[],a[e]=d,r=0;r<f;r++)for(h=a[r],i=d[r]=[],s=0;s<g;s++)if(j=h[s],Ja(j))l||(d.isError=!0,l=!0),i.push(j);else{switch(b){case 1:case 5:c&&5!==b?Wa(j,k)?j=k.value:(m||(m=!0,d.isConvertError=!0),j=0):typeof j===la||j instanceof Date||(m||(m=!0,d.isConvertError=!0),j=o);break;case 3:c?Xa(j,k)?j=k.value:(m||(m=!0,d.isConvertError=!0),j=!1):typeof j!==na&&(m||(m=!0,d.isConvertError=!0),j=o);break;case 2:j=j===p||j===q?"":""+j}i.push(j)}return d}Ha.Oh=Ra;function Sa(a){return isNaN(a)||!isFinite(a)}Ha.Qh=Sa;function Ta(a){var b=Va(a);if(r(b)<1e21)return parseInt(b,10);throw m().Exp_InvalidCast}Ha.Rh=Ta;function Ua(a,b){var c=Wa(a,b);return!!c&&(r(b.value)<1e21&&(b.value=parseInt(b.value,10),!0))}Ha.Sh=Ua;function Va(a){var b={value:0};if(Wa(a,b))return b.value;throw m().Exp_InvalidCast}Ha.Pa=Va,da={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};function Wa(a,b){var c,d,e,f,g,h,i=p;if(!a)return b.value=0,!0;c=typeof a;try{if(c===la)i=a;else if(c===ma){if(a=a.trim(),0===a.length)return b.value=0,!0;if(d=ja.Parser.numberDecimalSeparator,e=ja.Parser.numberGroupSeparator,"."!==d&&"."!==e&&a.indexOf(".")>=0||","!==d&&","!==e&&a.indexOf(",")>=0)return!1;if(f=!1,"%"===a.charAt(a.length-1)&&(f=!0,a=a.substr(0,a.length-1)),"$"===a[0])return!1;if(a.indexOf(d)!==a.lastIndexOf(d))return!1;if(a.length>=2&&"0"===a[0]&&"x"===a[1])return!1;if(i=(+a).valueOf(),Ha.Qh(i)){if(g=a.charCodeAt(0),g|=32,a.length>4&&g>=96&&g<=122&&(h=a[0]+a[1]+a[2],h=h.toUpperCase(),!da[h]))return!1;if("/"===a[0]||"/"===a[a.length-1])return!1;if(i=new Date(a),Ha.Qh(i.valueOf()))return!1;i=j.Ra(i)}f&&(i/=100)}else if(c===na)i=a?1:0;else{if(!(a instanceof Date))return!1;i=j.Ra(a)}}catch(a){return!1}return b.value=i,!0}Ha.Th=Wa;function Xa(a,b){try{if(a)if(typeof a===na);else if(a instanceof Date)a=0!==j.Ra(a);else{if(!Ia(a))return!1;a=0!==a}else a=!1}catch(a){return!1}return b.value=a,!0}Ha.Uh=Xa;function Ya(a){if(!a)return!1;if(typeof a===na)return a;if(a instanceof Date)return 0!==j.Ra(a);if(Ia(a))return 0!==a;if(Ja(a))return!1;throw m().Exp_InvalidCast}Ha.Vh=Ya;function Za(a){try{if(a===q||a===p)return"";if(typeof a===na)return a?oa:pa;if(typeof a===ma)return a;if(a instanceof Date)return""+j.Ra(a);if(La(a))throw m().Exp_InvalidCast;return""+a}catch(a){throw m().Exp_InvalidCast}}Ha.bc=Za;function $a(a){var b={value:p};if(_a(a,b))return b.value;throw m().Exp_InvalidCast}Ha.Wh=$a;function _a(a,b){var c,d,e,f;if(a)if(a instanceof Date)b.value=new Date(a);else if(typeof a===ma){if(c=ia.l.Qa(a),!c)if(isNaN(a)){if(c=new Date(a),isNaN(c.valueOf()))return!1;try{if(d=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/,e=k.ib(k.Db(a.replace(/ |\n/g,"")," ")," "),f=d.exec(e),f&&4===f.length&&(f.indexOf(""+c.getYear())===-1||f.indexOf(""+c.getMonth())===-1||f.indexOf(""+c.getDate())===-1))return!1}catch(a){return!1}}else if(c=ia.l.Xb(parseFloat(a)),!c)return!1;b.value=c}else{if(typeof a!==la)return!1;b.value=ia.l.Xb(a)}else b.value=ia.l.Xb(0);return!0}Ha.Xh=_a,Ha.CalcConvertedError={},ja.Convert=Ha,ea=function(){function a(){}return a.Yh=function(a,b){var c=16777216;return a===b||r(a-b)<r(a)/(c*c)},a.getArrayValue=function(a,b,c){return a?b<a.getRowCount()&&c<a.getColumnCount()?a.getValue(b,c):c>=a.getColumnCount()&&1===a.getColumnCount()&&b<a.getRowCount()?a.getValue(b,0):b>=a.getRowCount()&&1===a.getColumnCount()&&c<a.getColumnCount()?a.getValue(0,c):x:x},a.tryExtractToSingleValue=function(a){var b,c=!0;return(Ma(a)||La(a))&&(b=Oa(a,0,!1,!0),b.isError?a=b[0]:1===b.rowCount&&1===b.colCount?a=b[0][0]:(a=b,c=!1)),{value:a,success:c}},a}(),ja.Zh=ea,fa=function(){function a(){}return a.getLength=function(a,b){return La(a)?a.getRowCount()*a.getColumnCount():Ma(a)?(b=b?b:0,a.getRowCount(b)*a.getColumnCount(b)):void 0},a.getRowCount=function(a,b){return La(a)?a.getRowCount():Ma(a)?(b=b?b:0,a.getRowCount(b)):void 0},a.getColumnCount=function(a,b){return La(a)?a.getColumnCount():Ma(a)?(b=b?b:0,a.getColumnCount(b)):void 0},a.getValueByIndex=function(a,b,c){if(La(a))return a.getValueByIndex(b);if(Ma(a)){c=c?c:0;var d=a.getColumnCount(c);return a.getValue(c,parseInt(b/d,10),b%d)}},a.getValue=function(a,b,c,d){return La(a)?a.getValue(b,c):Ma(a)?(d=d?d:0,a.getValue(d,b,c)):void 0},a}(),ja.CalcArrayHelper=fa,function(a){a[a.normal=0]="normal",a[a.allwaysExpand=1]="allwaysExpand",a[a.neverExpand=2]="neverExpand"}(ka.ArrayArgumentEvaluateMode||(ka.ArrayArgumentEvaluateMode={})),ga=function(){function a(a,b,c,d){var e=this,f=arguments.length;e.name=a,e.minArgs=f<2?0:b,e.maxArgs=f<3?0:c,e.$h=d,e.typeName=""}return a.prototype={description:function(){var a=this,b=m()._h;return a.$h?a.$h:b&&b[a.name]},acceptsArray:function(a){return!1},acceptsReference:function(a){return!1},acceptsError:function(a){return!1},acceptsMissingArgument:function(a){return!1},isVolatile:function(){return!1},isContextSensitive:function(){return!1},isBranch:function(){return!1},findTestArgument:function(){return-1},findBranchArgument:function(a){return-1},expandRows:function(){return!0},expandColumns:function(){return!0},precedentReference:function(){return!0},returnReference:function(){return!1},evaluate:function(a){},evaluateWithContext:function(a,b){var c=this,d=b;return c.isContextSensitive()&&(d=b.slice(),d.unshift(a)),c.evaluate.apply(c,d)},toJSON:function(){var a,b={};for(a in this)this.hasOwnProperty(a)&&(b[a]=this[a]);return b},fromJSON:function(a){if(a)for(var b in a)a[b]!==q&&(this[b]=a[b])}},a.ai=function(a,b,c){var d,e=new ka.Function(a,0,255);if(b&&"function"==typeof b&&(e.evaluate=b),c)for(d in c)c.hasOwnProperty(d)&&"override"!==d&&(e[d]=c[d]);return e},a}(),ka.Function=ga,ha=function(a){i(b,a);function b(b,c,d,e){a.call(this,b,c,d,e)}return b}(ga),e(ha.prototype,{isContextSensitive:function(){return!0},evaluate:function(a,b){return this.evaluateAsync.apply(this,arguments)},evaluateAsync:function(a,b){this.evaluate.apply(this,arguments)},defaultValue:function(){return 0},evaluateMode:function(){return 0},evaluateWhenArgumentsIsSame:function(){return!0},interval:function(){return 1e4}}),ka.AsyncFunction=ha,ka.AsyncFunctionEvaluateMode={onRecalculation:0,calculateOnce:1,onInterval:2},ka.bi={},ka.ci={};function ab(a,b){return ka.ci[za(a)]=b,b}ka.defineGlobalCustomFunction=ab;function bb(a){if(!a)return db();a=za(a);var b=ka.bi,c=ka.ci;return b&&b[a]||c&&c[a]}ka.findGlobalFunction=bb;function cb(a){if(!a)return ka.bi={},void(ka.ci={});a=za(a);var b=ka.bi,c=ka.ci;b[a]?delete b[a]:c[a]&&delete c[a]}ka.removeGlobalFunction=cb;function db(){var a,b=ka.bi,c=ka.ci,d=[];for(a in b)d.push(b[a]);for(a in c)d.push(c[a]);return d}a.exports=ja}()},function(a,b){a.exports=GC.Spread.Common},function(a,b,c){!function(){"use strict";var a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q=c(2),r=c(1),s=q.j.G,t=q.j.Ia,u=void 0,v=null,w="string",x="boolean",y="TRUE",z="FALSE",A="ARRAY",B=r.ErrorList,C=r.Expression,D=q.u,E=function(){return q.C(r.SR)()},F="Exp_FormulaInvalidChar",G="Exp_FormulaInvalid",H="Exp_NoSyntax";function I(){throw E()[G]}function J(a,b,c){throw D.Kb(E()[c||F],[a,b])}r.OperatorType={Plus:0,Negate:1,Percent:2,Add:3,Sub:4,Mul:5,Div:6,Exp:7,Concat:8,EqualTo:9,NotEqualTo:10,LessThan:11,LessThanOrEqualTo:12,GreaterThan:13,GreaterThanOrEqualTo:14,Range:15,Union:16,Intersect:17},a=r.di=["+","-","%","+","-","*","/","^","&","=","<>","<","<=",">",">=",":",","," "],b={":":1,"^":2," ":3,"*":4,"/":4,",":5,"+":6,"-":6,"&":7,"<":8,"=":8,">":8,">=":8,"<=":8,"<>":8},r.FormulaTokenType={Operand:0,Function:1,Subexpression:2,Argument:3,OperatorPrefix:4,OperatorInfix:5,OperatorPostfix:6,Whitespace:7},r.FormulaTokenSubtype={Nothing:0,Start:1,Stop:2,Text:3,Number:4,Logical:5,Error:6,RangeOrName:7},d=".",e=",",f=";",g=",",h=[14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,24,24,26,24,24,24,20,21,24,25,24,19,24,24,8,8,8,8,8,8,8,8,8,8,24,24,25,25,25,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,24,21,27,18,27,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,25,21,25,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,26,26,26,26,28,28,27,28,1,22,25,19,28,27,28,25,10,10,27,1,28,24,27,10,1,23,10,10,10,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,25,1,1,1,1,1,1,1,1];function K(a){return a<=255}function L(a){return a<=127}i=r.isDigit=function(a){return a>=48&&a<=57},r.ei=function(a){var b=a.charCodeAt(0);return!K(b)||(L(b)?(b|=32,b>=96&&b<=122):0===h[b]||1===h[b])},j=r.fi=function(a){var b=a.charCodeAt(0);return!K(b)||(L(b)?b<=57?b>=48:(b|=32,b>=96&&b<=122):0===h[b]||1===h[b])},r.isNumber=function(a){var b=a.charCodeAt(0);return L(b)?b>=48&&b<=57:8===h[b]||10===h[b]};function M(a,b,c,d,e,f){var g,h,i=a.length,j=c===d?0:1,k=[],l=0;for(g=b+1;g<i;g++)if(h=a[g],h===e&&(k.push(h),g++,l++,h=a[g]),h===c&&j++,h===d)if(j--,c===d&&g+2<i&&a[g+1]===c)k.push(c),g++,l++;else{if(0===j)return{result:k,endIndex:g,skipCount:l};k.push(h)}else k.push(h);f&&J(d,c,H)}function N(a,b,c){var d,e,f,g,h=a.length,i=h-b;for(d=0;d<B.length;d++)if(e=B[d],f=e.length,b+f<=h&&(g=a.slice(b,b+f),f<=i&&e===g.join("").toUpperCase()))return{result:g,endIndex:b+f-1};c&&J([a[b],b])}function O(a,b,c){var d,e,f=a.length,g=0,h=[];for(d=b;d<f;d++)if(e=a[d],i(e.charCodeAt(0)))0===g?g=2:3===g?g=4:1===g?g=2:5!==g&&6!==g||(g=7),h.push(e);else if(e===c){if(2===g)g=4;else{if(0!==g&&1!==g)return{};g=3}h.push(".")}else if("+"===e||"-"===e){if(0===g)g=1;else{if(5!==g)return{num:h,endIndex:d-1};g=6}h.push(e)}else if("E"===e||"e"===e){if(2!==g&&4!==g)return{};g=5,h.push(e)}else if(2===g||4===g||7===g)return{num:h,endIndex:d-1};return 2===g||4===g||7===g?{num:h,endIndex:f-1}:{}}k=function(a,b){return a.push.apply(a,b),a},l=r.FormulaToken=function(){function a(a,b,c,d,e){var f,g,h;e=e||0,f=this,f.Qb=a,g=Array.isArray(a)?a.join(""):a,f.Nc=b,f.mi=c,f.li=d||c+a.length-1,0===b&&0===e&&a?(h=g.toUpperCase(),h!==y&&h!==z||(e=5,g=h)):1===b&&g!==A&&(g=g.toUpperCase()),f.ni=g,f.hi=e,f.oi=[]}return a}(),m=r.TokenResolver=function(){function a(a){this.priority=a||5e3}return a.prototype.resolveToken=function(a,b,c,d){},a.prototype.unparse=function(a,b,c,d){},a}(),n={"+":0,"-":1},o=r.operaterTypesMap={":":15,",":16,"+":3,"-":4,"*":5,"/":6,"^":7,"%":2,"&":8,"=":9,"<":11,"<>":10,"<=":12,">":13,">=":14},r.Parser=function(){function a(){}return a.prototype={setParserOption:function(b){var c,h;b!==u&&q.CultureManager.q4()?(h=b.NumberFormat?b.NumberFormat:q.CultureManager.q4().NumberFormat,c=b?h:{}):(c={},h=c),e=a.listSeparator=c.listSeparator||",",d=c.numberDecimalSeparator||".",!b&&a.numberDecimalSeparator||(a.numberGroupSeparator=h.numberGroupSeparator||",",a.numberDecimalSeparator=h.numberDecimalSeparator||"."),f=a.arrayGroupSeparator=c.arrayGroupSeparator||";",g=a.arrayListSeparator=c.arrayListSeparator||","},parse:function(a,b){var c,d;return this.setParserOption(a.culture),c=b.split(""),this.gi=c,d=this.parseToTokens(a,c,!a.ignoreError),this.buildExpressionTree(a,d,!a.ignoreError)},unparse:function(a,b,c){return c=c||[],this.Cma(a,b,c),c.join("")},Cma:function(a,b,c){var d,e;for(this.setParserOption(a.culture),d=a.getResolvers(),e=0;e<d.length&&!d[e].unparse(a,this,b,c);e++);},parseToTokens:function(a,b,c){var h,j,m,n,p,q,r,s,t,u,v,w,x,y,z,B,C,D,E,F,G,H,I;for(void 0===c&&(c=!0),h=this,j=function(a,b,c){return b.length>0?(a.push(new l(b,0,c)),[]):b},m=b.length,n=[],p=[],q=-1,r=[],u=0;u<m&&" "===b[u];)u++;for("="===b[u]&&u++,t=u,w=u;w<m;w++)if(x=b[w],y=x.charCodeAt(),y>=97&&y<=122||y>=65&&y<=90)r.push(x);else if(34===y)z=M(b,w,'"','"',"",c),z?(B=new l(z.result,0,w,w+z.result.length+2,3),z.skipCount&&(B.HTa=b.slice(w,z.endIndex+1).join(""),B.li+=z.skipCount),n.push(B),w=z.endIndex,t=w+1):(k(r,b.slice(w,m)),w=m-1);else if(39===y)z=M(b,w,"'","'","",c),z?(r.push("'"),k(r,z.result),r.push("'"),w=z.endIndex):(r.push("'"),w=m-1);else if(91===y)if(z=M(b,w,"[","]","'",c))r.push("["),k(r,z.result),r.push("]"),w=z.endIndex;else{if(h.lda&&0===r.length&&("R"===r[0]||"r"===r[0]||"C"===r[0]||"c"===r[0]))continue;k(r,b.slice(w,m)),w=m-1}else{if(13===y||10===x)continue;if(35===y)C=N(b,w),C?(n.push(new l(C.result,0,w,w+C.result.length-1,6)),t=w+1,w=C.endIndex):r.push(x);else if(33===y)0===r.length,D=n.length,D>0&&0===n[D-1].Nc?(E=n[D-1],E.Qb.push.apply(E.Qb,r),n[D-1]=new l(E.Qb,0,E.mi,w,12)):n.push(new l(r,0,t,w,12)),r=[],t=w+1;else if(43===y||45===y)F=0===n.length?null:n[n.length-1],0!==r.length?(n.push(new l(r,0,t)),n.push(new l(x,5,w)),r=[],t=w+1):(F&&7===F.Nc&&n.pop(),!F||2!==F.hi&&6!==F.Nc&&0!==F.Nc?(n.push(new l(x,4,w)),t=w+1):(n.push(new l(x,5,w)),t=w+1));else if(x===d||i(y))r.length>0?r.push(x):(G=O(b,w,d),G.num?(H=G.endIndex,I=G.num,H<=m-2&&"!"===b[H+1]?(k(r,I),t=H):(n.push(new l(I,0,w,H,4)),t=H+1),w=H):r.push(x));else if(123===y)r.length>0&&c&&J(x,w),s=new l(A,1,w,w,1),n.push(s),p[++q]=s,t=w+1;else if(x===f&&q>=0&&p[q].value===A)r=j(n,r,t),q<0&&c&&J(x,w),n.push(new l(f,3,w,w)),t=w+1;else if(125===y)r=j(n,r,t),H<0&&c&&J(x,w),v=p[q--],v=new l(x,v.Nc,w,w,2),n.push(v),t=w+1;else if(32===y)r=j(n,r,t),t=w+1;else if(x===e||x===g||x===f)r=j(n,r,t),q<0||1!==p[q].Nc?n.push(new l(e,5,w,w,10)):n.push(new l(x,3,w,w)),t=w+1;else if(37===y)r=j(n,r,t),n.push(new l(b[w],6,w,w)),t=w+1;else if(w+2<=m&&o[x+b[w+1]])r=j(n,r,t),n.push(new l(b.slice(w,w+2),5,w,w+1,5)),w++,t=w+1;else if(o[x])r=j(n,r,t),n.push(new l(x,5,w,w)),t=w+1;else if("("===x)r.length>0?(s=new l(r,1,t,w,1),r=[]):s=new l(x,2,w,w,1),n.push(s),p[++q]=s,t=w+1;else if(")"===x){if(r=j(n,r,t),q<0){c&&J(x,w);continue}v=p[q--],v=new l(x,v.Nc,w,w,2),n.push(v),t=w+1}else":"===x?(r=j(n,r,t),n.push(new l(x,5,w,w,11)),t=w+1):"\r"===x||"\n"===x||r.push(x)}return j(n,r,t),n},buildExpressionTree:function(a,b,c){var d=this.ii(a,b,c),e=this.ji(a,d,c);return c&&this.rSa(e),e},rSa:function(a){for(var b,c,d;10===a.type;)a=a.value;if(b=this,9===a.type)a.value||I(),b.rSa(a.value),a.value2&&b.rSa(a.value2);else if(7===a.type)for(c=0;c<a.arguments.length;c++)d=a.arguments[c],d||I(),b.rSa(d)},ji:function(a,c,d){var e,f,g,h,i,j,k=this.ki(a,c,d);for(h=3;h<k.length;)if(i=k[h],j=k[h-2],9!==j.type&&I(),i&&9===i.type){for(;h>=3&&b[i.value]>=b[j.value];)f=k[h-3],g=k[h-1],e=r.Kh(j.operatorType,f,g),k.splice(h-3,3,e),h-=2,h>=3&&(j=k[h-2]);h+=2}else h++;if(1===k.length)return k[0];for(h=k.length-2;h>0;h-=2)f=k[h-1],g=k[h+1],9!==k[h].type&&I(),e=r.Kh(k[h].operatorType,f,g),k.splice(h-1,3,e);return e},ki:function(a,b,c){var d,f,g,h,i,j,k,l,m,n,o,p,q,s;for(b=Array.isArray(b)?b:[b],d=[],f=b.length,g=0;g<f;g++){if(h=b[g],i=h,9===h.type){if(0===h.operatorType||1===h.operatorType)if(g===f-1)c&&I();else{for(j=g;9===b[j].type&&b[j].operatorType<=1;)j++;for(k=this.ji(a,b[j]),l=j-1;l>=g;l--)i=r.Kh(b[l].operatorType,k),k=i;i=k,g=j}else if(2===h.operatorType){if(0!==g){i=r.Kh(h.operatorType,this.ji(a,d[d.length-1])),d[d.length-1]=i;continue}c&&I()}}else if(10===h.type)h.value=this.ji(a,h.value),i=h;else if(7===h.type){if(m=0,n=h.arguments,o=[],p=[],n.length>0){for(q=0;q<=n.length;q++)s=n[q],q===n.length||0===s.type&&s.value===e?(m===q?o.push(new C(11)):o.push(this.ji(a,p)),m=q+1,p=[]):p.push(s);h.arguments=o}i=h}d.push(i)}return d},ii:function(a,b,c){var d,e,f=[];for(d=0,e=b.length;d<e;)d=this.resolveToken(a,b,f,d,c);return f},resolveToken:function(a,b,c,d,e){var f,g,h,i,j,k,l=b[d],m=a.getResolvers();for(f=0;f<m.length;f++)if(g=m[f].resolveToken(a,this,b,d)){h=g.expr,i=d-1,h&&g.index!==u?d=g.index-1:h=g,j=c.length>0?c[c.length-1]:v,j&&0!==h.type&&7!==h.type&&h.type<9&&0!==j.type&&7!==j.type&&j.type<9&&(k=b[i].li,k<l.mi-1&&c.push(r.Kh(17," "))),c.push(h);break}return d+1},resolveSubTokens:function(a,b,c,d){for(var e=[];c<b.length&&2!==b[c].hi;)c=this.resolveToken(a,b,e,c,d);return{exprs:e,index:c+1}}},a}(),r.ParserContext=function(){function a(a,b,c,d){var e=this;e.Eh=!1,e.ignoreError=!1,e.source=v,e.useR1C1=b,e.row=c&&c.row||0,e.column=c&&c.col||0,e.baseIdentity=c,e.option=d,e.source=a,e.pi=[],e.addResolver(new p)}return a.prototype={getExternalSource:function(a,b){var c,d=this.source.Cf(),e=d.getAllSouceModels();for(c=0;c<e.length;c++)if(D.Mb(e[c].getSource().getName(),b))return e[c].getSource();return v},getExternalSourceToken:function(a){return a.getName()},getTableByName:function(a){return v},getTableByIndex:function(a,b){return v},setSource:function(a){this.source=a},getResolvers:function(){return this.pi},addResolver:function(a){var b,c=this.pi;for(b=0;;b++)if(!c[b]||a.priority>c[b].priority){c.splice(b,0,a);break}},getFunction:function(a){return this.source&&this.source.getCustomFunction(a)||r.Functions.findGlobalFunction(a)}},a}(),p=r.DefaultTokenResolver=function(){m.call(this)},s(p,m),t(p.prototype,{resolveToken:function(a,b,c,d){var e,g,h,i,j,k,l,m=c[d],p=m.ni,q=m.Qb,s=m.Nc;if(0===s)0===m.hi?(h=p.toUpperCase(),h===y||h===z?(m.hi=5,m.ni=h,e=new C(4),e.value=h===y):(e=new C(8),e.value=p)):4===m.hi?(e=new C(2),e.value=parseFloat(p),e.originalValue=p):3===m.hi?(e=new C(3),e.value=p):5===m.hi?(e=new C(4),e.value=p===y):6===m.hi?(e=new C(5),e.value=r.CalcError.parse(p)):7===m.hi&&(e=new C(8),e.value=p);else if(1===s){if(p===A){for(e=new C(6),d++,h=[[]],g=0,i=0,j=0;d<c.length&&2!==c[d].hi;){if(m=c[d],d<c.length-1&&4===m.Nc&&"-"===m.ni&&4===c[d+1].hi&&(d++,m=c[d],q.unshift("-"),m.ni="-"+m.ni),3===m.Nc){if(m.ni===f){if(i!==j)throw D.Kb(E().Exp_InvalidArrayColumns,[m.mi]);h.push([]),g++,j=0}}else{if(0!==m.Nc||4!==m.hi&&3!==m.hi&&5!==m.hi&&6!==m.hi)throw E().Exp_InvalidArray;k=m.ni,4===m.hi?k=parseFloat(k):5===m.hi?k="TRUE"===k.toUpperCase():6===m.hi&&(k=r.CalcError.parse(k)),h[g].push(k),0===g&&i++,j++}d++}if(i!==j)throw D.Kb(E().Exp_InvalidArrayColumns,[m.mi]);return d++,e.value=new r.CalcArray(h),{expr:e,index:d}}if(q.length>0)return"@"===q[0]&&(m.ni=q.slice(1).join(""),p=m.ni),e=new C(7),e.functionName=p,e.function=a.getFunction(e.functionName)||r.Functions.findGlobalFunction(e.functionName),(l=b.resolveSubTokens(a,c,d+1))?(e.arguments=l.exprs,{expr:e,index:l.index}):(e.arguments=[],e)}else if(4===s||6===s||5===s)e=r.Kh(4===s?n[p]:o[p],p);else if(2===s){if(e=new C(10),l=b.resolveSubTokens(a,c,d+1))return e.value=l.exprs,{expr:e,index:l.index};I()}else 3===s&&(e=new C(0),e.value=p);return e},unparse:function(a,b,c,d){var f,g=this;if(6===c.type||4===c.type||2===c.type||5===c.type||3===c.type)g.qi(a,c,d);else if(9===c.type)g.ri(a,b,c,d);else if(10===c.type)d.push("("),b.Cma(a,c.value,d),d.push(")");else{if(7!==c.type)return!1;for(k(d,(c.function&&c.function.name||c.functionName).split("")),d.push("("),f=0;f<c.arguments.length;f++)0!==f&&d.push(e),b.Cma(a,c.arguments[f],d);d.push(")")}return!0},ri:function(b,c,d,e){var f=d.operatorType;2===f?(c.Cma(b,d.value,e),e.push("%")):0===f||1===f?(e.push(a[f]),c.Cma(b,d.value,e)):(c.Cma(b,d.value,e),e.push(a[f]),c.Cma(b,d.value2,e))},qi:function(a,b,c){var e,h,i,j,k,l,m,n,o=E().Exp_InvalidArray;if(3===b.type)c.push('"'),c.push(D.Gb(b.value,'"','""')),c.push('"');else if(2===b.type)e=b.originalValue||""+b.value,"."!==d&&(e=e.replace(".",d)),c.push(e);else if(4===b.type)c.push(b.value?y:z);else if(6===b.type){if(c.push("{"),h=b.value,h.getRowCount()<=0)throw o;for(i=0,j=h.getRowCount();i<j;i++)for(i>=1&&c.push(f),k=0,l=h.getColumnCount();k<l;k++){if(0!==k&&c.push(g),m=h.getValue(i,k),m===u||m===v)throw o;n=typeof m,n===w?(c.push('"'),c.push(m),c.push('"')):n===x?c.push(m?y:z):"number"===n&&"."!==d?c.push((""+m).replace(".",d)):c.push(""+m)}c.push("}")}else 5===b.type?c.push(""+b.value):11===b.type}})}()},function(a,b,c){!function(){"use strict";var a,b,d,e,f,g,h,i,j,k,l,m,n,o=c(1),p=o.Errors,q=c(2),r=q.j.G,s=null,t=void 0,u=Math.pow,v=Math.min,w=Math.max,x="string",y="boolean",z=function(){return q.C(o.SR)()},A=z().Exp_Format,B=o.Convert,C=B.Th,D=B.vf,E=B.Ph,F=p.Reference,G=p.Value,H=o.CalcArray,I=p.Name,J=p.NotAvailable,K=p.DivideByZero;function L(a,b,c,d){return{row:a,col:b,rowCount:c,colCount:d}}a=function(){function a(a,b,c,d){var e=this;e.si=0,e.ti=0,e.ui=0,e.source=a,e.arrayFormulaMode=!!c,e.identity=b||o.pf(0,0),e.arrayIdentity=d,e.row=d?d.row:e.identity.row||0,e.column=d?d.col:e.identity.col||0,e.rowOffset=d?e.identity.row-d.row:e.row,e.columnOffset=d?e.identity.col-d.col:e.column}return a}(),a.prototype={fga:function(a){return a===o.BangSource?this.source:a},getValue:function(a,b){return a?this.fga(a).getValue(b):F},getReference:function(a,b){return a?this.fga(a).getReference(b):F},getSheetRangeReference:function(a){return a&&a.source&&a.endSource?this.fga(a.source).getSheetRangeReference(a):F},getFunction:function(a){var b=this;return b.source?b.source.getCustomFunction(a):s},getName:function(a){var b,c=this,d=c.source?c.source.getCustomName(a):s;return!d&&c.source&&(b=c.source.Cf().getGlobalSourceModel(), d=b&&b.getSource().getCustomName(a)),d},vi:function(){return this.ui>0},wi:function(){this.ui++},xi:function(){this.ui--},SetAsyncResult:function(a,b){this.source.Cf().lh.SetAsyncResult(a,b)},cloneFrom:function(a){var b=this;b.acceptsReference=a.acceptsReference,b.arrayFormulaMode=a.arrayFormulaMode}},o.EvaluateContext=a,b=function(){function a(a,b){this.id=a.si++,this.ctx=a,this.row=a.row+(a.arrayFormulaMode&&a.rowOffset||0),this.col=a.column+(a.arrayFormulaMode&&a.columnOffset||0),this.node=b}return a.prototype.setAsyncResult=function(a){this.node.Fi=a,this.node.v5=!0,this.ctx.SetAsyncResult(this,a),this.ctx.source.refresh()},a.prototype.getFormula=function(){return this.ctx.source.getCalcService().unparse(this.ctx.source,this.expression,this.row,this.col)},a}(),o.AsyncEvaluateContext=b,d=function(a){r(b,a);function b(b,c,d,e,f,g,h,i){a.call(this,b,c,d,e,f,g,h,i),this.yi=b.Cf().getGlobalSourceModel().getSource()}return b.prototype.getName=function(a){var b=this;return b.yi?b.yi.getCustomName(a):s},b}(a),o.GloableEvaluateContext=d,o.Evaluator=function(){function a(a){this.zi={},this.Ai={},this.asyncManager=new f(this),this.service=a}return a}(),o.Evaluator.prototype={evaluateExpression:function(a,b,c,d,e){var f=this.evaluate(a,b,!!d,!!e);return f===t||f===s?c===!1?f:0:((o.Convert.Ca(f)&&!d||B.Fh(f)&&!e)&&(f=this.getOneValue(b,f)),q.o.Lma(f,15))},evaluate:function(a,b,c,d){var e,f,g;if(!a)throw z().Exp_ExprIsNull;for(;10===a.type;)a=a.value;if(e=this,g=s,12===a.type&&(g=a.needExpendIndexs,a=a.value),a.type>=2&&a.type<=6)f=e.evaluateConst(a,b,c);else if(1===a.type||13===a.type)f=e.evaluateReference(a,b,d,c);else if(8===a.type)f=e.evaluateName(a,b,c,d);else if(9!==a.type||a.value2){if(9===a.type)f=e.evaluateBinaryOperation(a,b,c,d,g);else if(7===a.type)f=e.evaluateFunction(a,b,c,d,g);else if(11===a.type)f=t;else if(b.evaluate)return b.evaluate(a,c,d)}else f=e.evaluateUnaryOperation(a,b,c,d,g);return f},evaluateConst:function(a,b,c){var d=a.value;return B.Ca(d)?c||b&&(b.arrayFormulaMode||b.vi())?d:d.getValue(0,0):d},evaluateReference:function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q;if(!b)return G;if(e=(13===a.type?a.source():a.source)||b.source,f=b.row,g=b.column,h=a.getRange&&a.getRange(f,g),!h)return 13===a.type?G:F;if(i=h.row<0?0:h.row,j=h.col<0?0:h.col,k=h.rowCount,l=h.colCount,c||b.arrayFormulaMode)return a.endSource?b.getSheetRangeReference({source:a.source,endSource:a.endSource,row:i,col:j,rowCount:k,colCount:l}):b.getReference(e,h);if(d&&(k>1||l>1)){for(m=[],n=0;n<k;n++)for(m[n]=[],o=0;o<l;o++)m[n][o]=e.getValue(n+i,o+j);return new H(m)}if(k>1||l>1)if(p=f>=h.row&&f<h.row+k,q=g>=h.col&&g<h.col+l,p&&q)i=f,j=g;else{if(!p&&!q)return G;if(p&&1===l)i=f;else{if(!q||1!==k)return G;j=g}}else if(h.row===-1&&k===-1){if(1!==l)return G;i=f}else if(h.col===-1&&l===-1){if(1!==k)return G;j=g}return e.getValue(i,j)},evaluateName:function(a,b,c,d){var e,f;return b?(a.source&&(e=a.source,b=e.getEvaluatorContext(b.identity,b.arrayFormulaMode,b.arrayIdentity)),f=b.getName(a.value),f?this.evaluate(f,b,c,d):I):I},evaluateUnaryOperation:function(a,b,c,d,e){var f,g=!1;return e&&e.length>0&&(c=!0,g=!0),f=this.evaluate(a.value,b,c,g),B.vf(f)?f:f===o.missingArgument?J:this.evaluateWithArgs(a,function(b){return h(a.operatorType,b[0])},b,e,[f],c,d)},evaluateBinaryOperation:function(a,b,c,d,e){var f,g,i,j,k=[c,c],l=a.operatorType>=15,m=[l,l];if(e&&e.length>0)for(f=0;f<e.length;f++)k[e[f]]=!0,m[e[f]]=!0;for(g=[a.value,a.value2],i=[],f=0;f<2;f++){if(j=this.evaluate(g[f],b,k[f],m[f]),B.vf(j))return j;if(j===o.missingArgument)return J;i[f]=j}return this.evaluateWithArgs(a,function(b){return h(a.operatorType,b[0],b[1])},b,e,i,c,d)},startCache:function(){this.Bi={},this.service.nia&&this.asyncManager.startCalc()},endCache:function(){this.Bi=s},evaluateFunction:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,p,q,r,t,u,v,w,x,y,z,A;if(!a||!a.function||"string"==typeof a.function)return I;if(f=a.arguments.length,g=this,h=b.ti,i=a.function,l=s,i instanceof n.AsyncFunction&&this.asyncManager.startCalcFunction(i,a.arguments,b),0===f)j=[];else{for(j=[],m=[],p=[],q=0;q<f;q++)m[q]=i.acceptsArray(q),p[q]=i.acceptsReference(q);if(e&&e.length>0){for(l=[],q=0;q<f;q++)l[q]=!0;for(q=0;q<e.length;q++)r=e[q],m[r]=!0,p[r]=!0,l[r]=!(i.acceptsReference(r)&&!i.acceptsArray(r))}for(i.isBranch()&&(b.arrayFormulaMode||b.vi())&&(m[i.findTestArgument()]=!0,p[i.findTestArgument()]=!0),u=-1,v=-1,i.isBranch()&&(u=i.findTestArgument(),i.acceptsArray(u)&&b.wi(),t=g.evaluate(a.arguments[u],b,m[u],p[u]),i.acceptsArray(u)&&b.xi(),B.Fh(t)||B.Ca(t)||(v=i.findBranchArgument(t))),q=0;q<f;q++){if(u===q)k=t;else{if(v>=0&&q!==v){j[q]=null;continue}i.acceptsArray(q)&&b.wi(),k=g.evaluate(a.arguments[q],b,m[q],p[q]),i.acceptsArray(q)&&b.xi()}if(!i.acceptsArray(q)&&B.Ca(k)||!i.acceptsReference(q)&&B.Fh(k))if(w=B.Ca(k)?k:s,x=B.Fh(k)?k:s,w&&1===w.getRowCount()&&1===w.getColumnCount())k=w.getValue(0,0);else if(x&&1===x.getRowCount(0)&&1===x.getColumnCount(0))k=x.getValue(0,0,0);else{if(y=[],z=!1,e)for(A=0;A<e.length;A++)y.push(e[A]),e[A]===q&&(z=!0);z||(y.push(q),e=y)}if(B.vf(k)&&!i.acceptsError(q))return k;k!==o.missingArgument||i.acceptsMissingArgument(q)||(k=s),j[q]=k}}return g.evaluateWithArgs(a,function(a,c){var e,f,j=Z(a,i.Ci);return a=j.Di,i.isContextSensitive()?(b.acceptsReference=d||b.vi(),i instanceof n.AsyncFunction?(g.T4=g.T4||{},i.evaluateWhenArgumentsIsSame()?g.evaluateAsyncFunction(b,c,i,h,a):g.evaluateWithCache(i,a,function(){return g.evaluateAsyncFunction(b,c,i,h,a)},g.T4)):i.evaluateWithContext(b,a)):(f=function(){return j.Ei?i.evaluate.apply(i,a):j.Fi},e=b.arrayFormulaMode?g.evaluateWithCache(i,a,f,g.Bi):f())},b,e,j,c,d,l)},evaluateAsyncFunction:function(a,c,d,e,f){var g,h,i=this.asyncManager.getNode();if(i.v5)g=i.Fi;else if(i.canEvaluate()){if(h=new b(a,i),g=d.evaluateWithContext(h,f),h.notAsync)return g;g===t?g=i.Fi!==t?i.Fi:d.defaultValue():1===i.evaluateMode&&(i.v5=!0)}else g=i.Fi!==t?i.Fi:d.defaultValue();return i.Fi=g,this.asyncManager.endCalcFunction(),g},evaluateWithCache:function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,p,q;if(d)if(e=!1,f=d[a.name+b.length])for(g=0;g<f.length;g++){if(h=f[g],e=!1,h.args.length===b.length)for(e=!0,i=0;i<b.length;i++)if(j=h.args[i],k=b[i],j!==k){if(!(j instanceof o.CalcReference&&k instanceof o.CalcReference)){e=!1;break}if(l=j.zf,j.xf!==k.xf||l!==k.zf){e=!1;break}for(m=0;m<l;m++)if(j.getRow(m)!==k.getRow(m)||j.getColumn(m)!==k.getColumn(m)||j.getRowCount(m)!==k.getRowCount(m)||j.getColumnCount(m)!==k.getColumnCount(m)){e=!1;break}}if(e)return h.flag++,h.value}else f=d[a.name+b.length]=[];if(n=c(),d&&n!==t){if(p=f.length,p>=100){for(q=[],g=0;g<p;g++)f[g].flag>0&&q.push(f[g]);q.sort(function(a,b){return b.flag-a.flag}),p=Math.min(50,q.length),f=q.slice(0,p),d[a.name+b.length]=f}f.push({args:b,value:n,flag:0})}return n},SetAsyncResult:function(a){var b=a.ctx;b.source.Cf().recalculate(b.source,a.row,a.col,!0)},evaluateWithArgs:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,p,q,r,s,t,u,v,w;if(d&&d.length>0){if(i=this.Gi(c,a,e,d,h),!i)return J;for(j=[],l=i[0].length,m=i[0][0].length,n=0;n<l;n++)for(j[n]=[],p=0;p<m;p++)try{for(q=[],r=0;r<e.length;r++)q[r]=i[r][n][p];if(k=b(q,a),B.Fh(k)){if(7===a.type&&(s=a.function,s.returnReference&&s.returnReference()))return k;k=this.getOneValue(c,k)}j[n][p]=k}catch(a){j[n][p]=G}return new o.CalcArray(j)}try{if(k=b(e,a),c.arrayFormulaMode&&c.vi())return k;if(B.Ca(k)&&!f)return this.getOneValue(c,k);if(B.Fh(k)&&!g){if(t=k,f&&1===t.getRangeCount()){for(u=[],v=0;v<t.getRowCount(0);v++)for(u[v]=[],w=0;w<t.getColumnCount(0);w++)u[v][w]=t.getValue(0,v,w);return new o.CalcArray(u,t.getColumnCount(0))}return this.getOneValue(c,k)}return k}catch(a){return G}},getOneValue:function(a,b){var c,d,e,f,g,h;return B.Fh(b)?(e=b,f=e.getRowCount(0),g=e.getColumnCount(0),e.getRangeCount()>1||!a.arrayFormulaMode&&f>1&&g>1?b=G:(a.rowOffset!==-1||a.columnOffset!==-1?(c=1===f?0:a.arrayFormulaMode?a.rowOffset:a.rowOffset-e.getRow(0),d=1===g?0:a.arrayFormulaMode?a.columnOffset:a.columnOffset-e.getColumn(0)):(c=1===f?0:a.row-e.getRow(0),d=1===g?0:a.column-e.getColumn(0)),b=c>=f||d>=g?J:e.getValue(0,c,d))):B.Ca(b)&&(h=b,!a.arrayFormulaMode||a.rowOffset===-1&&a.columnOffset===-1?b=h.getValue(0,0):(c=1===h.getRowCount()?0:a.rowOffset,d=1===h.getColumnCount()?0:a.columnOffset,b=c>=h.getRowCount()||d>=h.getColumnCount()?J:h.getValue(c,d))),B.Fh(b)||B.Ca(b)?this.getOneValue(a,b):b},Gi:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,r,u,v,w,x=1,y=1,z=-1,A=!0,C=!0,D=null,E=null,F=1,G=1,H=7===b.type?b:s;if(H&&!H.function.expandRows()&&(A=!1),H&&!H.function.expandColumns()&&(C=!1),H&&H.function.isBranch()&&(a.arrayFormulaMode||a.vi())){if(z=H.function.findTestArgument(),f=[],g=!1,d)for(h=0;h<d.length;h++)f.push(d[h]),d[h]===z&&(g=!0);if(g||B.Ca(c[z])||B.Fh(c[z])){for(i=0;i<H.arguments.length;i++)i!==z&&q.k.Cb(f,i)<0&&(B.Ca(c[i])||B.Fh(c[i]))&&f.push(i);d=f}}for(j=0;j<d.length;j++){if(k=c[d[j]],D=B.Ca(k)?k:null,E=B.Fh(k)?k:null,F=0,G=0,D)F=D.getRowCount(),G=D.getColumnCount();else if(E){if(E.getRangeCount()>1)return s;F=A?E.getRowCount(0):1,G=C?E.getColumnCount(0):1}x=F>x?F:x,y=G>y?G:y}for(l=[],m=0,n=d[m],o=0;o<c.length;o++){if(l[o]=[],p=c[o],D=s,E=s,F=G=1,o===n){if(D=B.Ca(p)?p:s,E=B.Fh(p)?p:s,(D||E)&&(F=D&&D.getRowCount()||(A?E.getRowCount(0):1),G=D&&D.getColumnCount()||(C?E.getColumnCount(0):1),(1!==F&&F!==x||1!==G&&G!==y)&&(z===-1||o===z)&&!a.arrayFormulaMode))return s;m++,n=m<d.length?d[m]:-1}else if(e===t&&(D=B.Ca(p)?p:s,E=B.Fh(p)?p:s,(D||E)&&(F=D&&D.getRowCount()||(A?E.getRowCount(0):1),G=D&&D.getColumnCount()||(C?E.getColumnCount(0):1),(1!==F&&F!==x||1!==G&&G!==y)&&(z===-1||o===z)&&!a.arrayFormulaMode)))return s;for(E&&(r=E.getRow(0),u=E.getColumn(0),x=r+x-r,y=u+y-u),v=0;v<x;v++)for(l[o][v]=[],w=0;w<y;w++)1!==F&&v>=F||1!==G&&w>=G?l[o][v][w]=J:D?l[o][v][w]=D.getValue(1===F?0:v,1===G?0:w):E?!e||e[o]?l[o][v][w]=E.getValue(0,1===F?0:v,1===G?0:w):l[o][v][w]=E.create([L(E.getRow(0)+(1===F?0:v),E.getColumn(0)+(1===G?0:w),1,1)]):l[o][v][w]=p}return l}},e=function(){function a(a,b){this.id=a,this.Fi=t,this.v5=!1,this.oi=[],b!==t&&(this.evaluateMode=b)}return a}(),e.prototype={canEvaluate:function(){var a,b=this.oi;for(a=0;a<b.length;a++)if(!b[a].v5)return!1;return!0}},f=function(){function a(a){var b=this;b.w5=[],b.x5=-1,b.y5={},b.z5=-1,b.lh=a,b.vQa=0}return a}(),f.prototype={startCalc:function(){var a,b,c,d,e,f,g,h,i;if(this.vQa)for(b in this.y5)if(c=this.y5[b])for(d in c)if(e=c[d])for(f in e)if(g=e[f],g&&(a=g.length,a>0))for(h=0;h<a;h++)i=g[h],0===i.evaluateMode&&(i.v5=!1)},startCalcCell:function(a,b){var c,d,f,g,h=this,i=a.getName(),j=b.row,k=b.col;return h.z5=-1,h.source=a,c=h.y5[i],c||(c=h.y5[i]={}),d=c[j],d||(d=c[j]={}),(f=d[k])?void(h.cellNodes=f):(g=new e((-1)),f=d[k]=[],h.vQa++,h.x5=-1,h.cellNodes=f,h.row=j,h.col=k,f.root=g,h.w5[++h.x5]=g,void(h.evaluateMode=-1))},startCalcFunction:function(a,b,c){var d,f,g,h,i,j,k,l,m,n,o=this;if(o.z5++,o.isNewNode=!1,d=o.cellNodes[o.z5])return o.currentNode=d,d;if(o.isNewNode=!0,f=o.evaluateMode,g=a.evaluateMode(),"REFRESH"===a.name?(g=b[1]?o.lh.evaluate(b[1],c,!1,!1):0,o.evaluateMode=g):f!==-1&&(g=f),d=new e(o.z5,g),o.cellNodes[o.z5]=d,o.w5[o.x5].oi.push(d),d.parent=o.w5[o.x5],o.w5.push(d),o.x5++,o.currentNode=d,2===g&&f===-1){for(h=6e4,i=o.intervals,j=a.interval()||h,"REFRESH"===a.name&&(d.isRefresh=!0,j=b[2]?o.lh.evaluate(b[2],c,!1,!1):h),i||(o.intervals=i={}),k=i[j],k||(k=i[j]=[],k.intervalObj=window.setInterval(function(){var a,b,c=o.intervals[j];for(l=0;l<c.length;l++)a=c[l],b=a.node,b.v5=!1,b.isRefresh&&M(b),o.lh.service.recalculate(a.source,a.row,a.col,!0),o.source.refresh()},j)),m=!1,l=0;l<k.length;l++)if(n=k[l],n.source===o.source&&n.node===d&&n.row===o.row&&n.col===o.col){m=!0;break}m||k.push({source:o.source,node:d,row:o.row,col:o.col})}return d},getNode:function(){return this.currentNode},endCalcFunction:function(){this.isNewNode&&(this.w5.pop(),this.x5--),this.currentNode=this.currentNode.parent},endCalcCell:function(){},clearCell:function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=this;if(q.vQa){c=a.getName(),d=b.row,e=b.col,q.z5=-1,q.source=a,f=q.y5[c],f&&(g=f[d],g&&(h=g[e],h&&(i=h[0],j=i&&i.$$a,j&&(delete j.nia,delete j.t$a),g[e]=t,q.vQa--))),k=q.intervals;for(l in k)if(m=k[l]){for(n=[],o=0;o<m.length;o++)p=m[o],p.source===a&&p.row===b.row&&p.col===b.col||n.push(p);n.length?n.length!==m.length&&(n.intervalObj=m.intervalObj,k[l]=n):(k[l]=t,window.clearInterval(m.intervalObj))}}},setAsyncResult:function(a,b){a.Fi=b},addRows:function(a,b,c){this.GQa(a,b,c,!0)},deleteRows:function(a,b,c){this.GQa(a,b,c,!1)},GQa:function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r=this;if(r.vQa){if(e=a.getName(),f=r.y5[e]){g={};for(h in f)i=f[h],i&&(j=parseInt(h),d?(k=j>=b?j+c:j,g[k]=i):j<b?g[j]=i:j>=b+c&&(g[j-c]=i));r.y5[e]=g}l=r.intervals;for(m in l)if(n=l[m]){for(o=[],p=0;p<n.length;p++)q=n[p],q.source===a&&d&&q.row>=b?q.row+=c:q.source===a&&!d&&(q.row<b||q.row>=b+c)&&(q.row=q.row<b?q.row:q.row-c,o.push(q));d||o.length===n.length||(o.intervalObj=n.intervalObj,l[m]=o)}}},addColumns:function(a,b,c){this.HQa(a,b,c,!0)},deleteColumns:function(a,b,c){this.HQa(a,b,c,!1)},HQa:function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t=this;if(t.vQa){if(e=a.getName(),f=t.y5[e])for(g in f)if(h=f[g]){i={};for(j in h)k=h[j],k&&k.length&&(l=parseInt(j),d?(m=l>=b?l+c:l,i[m]=k):l<b?i[l]=k:l>=b+c&&(i[l-c]=k));f[g]=i}n=t.intervals;for(o in n)if(p=n[o]){for(q=[],r=0;r<p.length;r++)s=p[r],s.source===a&&d&&s.col>=b?s.col+=c:s.source===a&&!d&&(s.col<b||s.col>=b+c)&&(s.col=s.col<b?s.col:s.col-c,q.push(s));d||q.length===p.length||(q.intervalObj=p.intervalObj,n[o]=q)}}},changeSourceName:function(a,b){var c,d=this;d.vQa&&(c=d.y5[a],c&&(d.y5[b]=c,delete d.y5[a]))}};function M(a){var b,c;for(c=0;c<a.oi.length;c++)b=a.oi[c],b.v5=!1,b.oi.length>0&&M(b)}g=function(a){var b,c=!0;return a&&a.getValue&&(b=E(a,0,!1,!0),b.isError?a=b[0]:1===b.rowCount&&1===b.colCount?a=b[0][0]:(a=b,c=!1)),{value:a,success:c}},h=o.evaluateOperator=function(a,b,c){return D(b)?b:D(c)?c:a<=2?N(a,b):a<=14?O(a,b,c):S(a,b,c)};function N(a,b){if(!b)return 0;var c=g(b);return c.success?P(a,c.value):void 0}function O(a,b,c){var d,e,f,h,i,j,k,l,m,n,p,q,r,s,t,u;if(d=a<=7?P:8===a?Q:R,e=g(b),f=g(c),e.success&&f.success)return d(a,e.value,f.value);if(b=e.value,c=f.value,h=e.success?-1:b.rowCount,i=e.success?-1:b.colCount,j=f.success?-1:c.rowCount,k=f.success?-1:c.colCount,l=-1,m=-1,e.success||f.success)e.success?(l=j,m=k):(l=h,m=i);else{if(1!==h&&1!==j&&h!==j||1!==i&&1!==k&&i!==k)return J;l=1===h?j:h,m=1===i?k:i}for(n=[],p=0;p<l;p++)for(n[p]=[],q=0;q<m;q++)!e.success&&(1!==h&&h<l||1!==i&&i<m)||!f.success&&(1!==j&&j<l||1!==k&&k<m)?n[p][q]=J:(r=1===h?0:p,s=1===i?0:q,t=1===j?0:p,u=1===k?0:q,n[p][q]=d(a,e.success?b:b[r][s],f.success?c:c[t][u]));return new o.CalcArray(n)}function P(a,b,c){var d,e,f;if(""===b||""===c)return G;if(d={value:0},!C(b,d))return 0===a&&"string"==typeof b?b:G;if(e=d.value,c!==t){if(!C(c,d))return G;f=d.value}else f=0;return 0===a?e:1===a?-e:2===a?e/100:3===a?e+f:4===a?e-f:5===a?e*f:6===a?f?e/f:K:7===a?!e&&f<0?K:u(e,f):void 0}function Q(a,b,c){if(8===a)return D(b)?b:D(c)?c:B.bc(b)+B.bc(c)}function R(a,b,c){var d,e,f,g,h,i,j,k,l,m;if(D(b))return b;if(D(c))return c;if(e=typeof b===y,f=typeof c===y,e||f)d=e&&f?b===c?0:b>c?1:-1:e?1:-1;else{if(g=typeof b===x,h=typeof c===x,i=g||h,j=i?"":0,b=b===s||b===t?j:b,c=c===s||c===t?j:c,k=function(){return b===c?0:g&&h?b.toUpperCase().localeCompare(c.toUpperCase()):g?1:h?-1:o.Zh.Yh(b,c)?0:b-c},!i){if(l={value:0},m={value:0},!C(b,l)||!C(c,m))return G;b=l.value,c=m.value}d=k()}return 9===a&&0===d||10===a&&0!==d||11===a&&d<0||12===a&&d<=0||13===a&&d>0||14===a&&d>=0}function S(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,q;if(!b||!c||(1!==b.getRangeCount()||1!==c.getRangeCount())&&16!==a||b.endSource||c.endSource)return G;if(d=b.getSource(),!d||d!==c.getSource())return G;if(16===a)e=b.yf.concat(c.yf);else{if(f=15===a?v:w,g=15===a?w:v,h=b.getRow(0),i=b.getColumn(0),j=c.getRow(0),k=c.getColumn(0),l=f(h,j),m=f(i,k),n=g(h+b.getRowCount(0),j+c.getRowCount(0))-l,q=g(i+b.getColumnCount(0),k+c.getColumnCount(0))-m,n<1||q<1)return p.Null;e=[L(l,m,n,q)]}return new o.CalcReference(d,e)}i=B.Pa,j=B.Rh,k=B.bc,l=B.Xh,m=B.Vh;function T(a,b){var c,d,e,f=!0;switch(b.Hi){case 0:c=i(a),d=!0;break;case 1:c=parseFloat(a),d=!0;break;case 2:c=j(a),d=!0;break;case 3:c=parseInt(a),d=!0;break;case 4:c=E(a,b.Ii,b.Ji||!1,b.Ki||!1,b.Li||!1,b.Mi,b.xTa),c.isError&&(c=c[0],f=!1),c.isConvertError&&(c=G,f=!1);break;case 5:c=k(a),b.Ni&&""===c&&(c=G,f=!1);break;case 6:e={value:s},l(a,e)?c=e.value:(c=G,f=!1);break;case 7:c=m(a);break;case 8:c=X(a),!c||b.Oi&&0===c.Pi()&&0===c.Qi()?(c=o.Errors.Number,f=!1):c={Ri:c.Pi(),Si:c.Qi()};break;default:c=a}return d&&isNaN(c)&&(c=G,f=!1),{Ti:c,Ei:f}}n=o.Functions;function U(a,b,c){this.Ri=a,this.Si=b,this.kja=c||"i"}U.prototype={Pi:function(){return this.Ri},Qi:function(){return this.Si},lja:function(){return this.kja},bc:function(a){a=a||"i";var b=this,c=b.Ri,d=b.Si,e="";return 0===c&&0!==d||(e+=""+c),d===-1?e+="-":0!==c&&d>0&&(e+="+"),d!==-1&&0!==d&&1!==d&&(e+=""+d),0!==d&&(e+=a),e}},n.Ui=U;function V(a,b){return a.charAt(b)}function W(a,b){for(var c=a.length,d=!1;b<c&&!isNaN(V(a,b));)b++,d=!0;for(b<c&&"."===V(a,b)&&b++;b<c&&!isNaN(V(a,b));)b++,d=!0;if(b<c&&("E"===V(a,b)||"e"===V(a,b)))for(b++,d=!1,b<c&&("+"===V(a,b)||"-"===V(a,b))&&b++;b<c&&!isNaN(V(a,b));)b++,d=!0;return{Vi:d,mi:b}}function X(a){function b(a){var b,c,d,e,f=0,g=0,h=!1,i=0,j=0,k=0,l=a.length;if(!a)throw z().Exp_ArgumentNull;if(0===l)throw A;if(k<l&&("+"===V(a,k)||"-"===V(a,k))&&k++,e=W(a,k),k=e.mi,b=e.Vi,k<l&&("+"===V(a,k)||"-"===V(a,k))?(i=k,k++,e=W(a,k),k=e.mi,c=e.Vi,k<l&&("i"===V(a,k)||"j"===V(a,k))&&(d=V(a,k),k++,h=!0),j=k-i):k<l&&("i"===V(a,k)||"j"===V(a,k))?(d=V(a,k),k++,j=k,c=b,h=!0,b=!1):i=k,k<l)throw A;if(i>0){if(!b)throw A;f=parseInt(a.substr(0,i),10)}if(j>0){if(!h)throw A;if(1===j||2===j&&"+"===V(a,i))g=1;else if(2===j&&"-"===V(a,i))g=-1;else{if(!c)throw A;g=parseInt(a.substr(i,j-1),10)}}return new U(f,g,d)}try{return a?"number"==typeof a?new U(parseFloat(a),0):"string"==typeof a?b(a):null:new U(0,0)}catch(a){return null}}n.Wi=X;function Y(a,b,c){var d,e,f,g,h;for(Array.isArray(b)||(b=[b]),d=a.Ti,e=0;e<b.length;e++)if(f=b[e].split(" "),g=f[0],h=parseInt(f[1]),"<"===g&&d<h||">"===g&&d>h||"<="===g&&d<=h||">="===g&&d>=h||"="===g&&d===h||"!="===g&&d!==h||"checkLength"===g&&d.length>h)return a.Ti=c===t?o.Errors.Number:c,void(a.Ei=!1)}function Z(a,b){var c,d,e,f,g,h=[];if(!b)return{Di:a,Ei:!0};if(b.Xi)for(e=0;e<a.length;e++)h.push(b);else h=Array.isArray(b)?b:[b];for(d=0;d<h.length;d++){if(f=h[d],f.Yi&&!a[d])throw z().Exp_ArgumentNull;if(g=a[d]!==t){if(c=T(a[d],f),f.aj&&Y(c,f.aj,f.bj),!c.Ei)break;a[d]=f.Zi?{$i:g,Qb:c.Ti}:c.Ti}else a[d]=f.Zi?{$i:g,Qb:f._i}:f._i}return c?{Di:a,Ei:c.Ei,Fi:c.Ti}:void 0}}()},function(a,b,c){!function(){"use strict";var b,d,e=c(2),f=c(1),g=e.l.Ra,h=e.k.ac,i=e.q,j=e.j,k=j.Ea,l=j.Fa,m=void 0,n=isNaN,o=Math.abs,p=Math.exp,q=Math.log,r=Math.pow,s=f.Errors,t=s.Value,u=s.Number,v=s.DivideByZero,w=s.NotAvailable,x=s.Null,y=f.Convert,z=y.CalcConvertedError,A=y.Th,B=y.Rh,C=y.Pa,D=y.Na,E=y.Ph,F=y.Nh,G=y.vf,H=f.Functions,I=f.Zh,J=I.Yh,K=parseInt,L=null,M=Math.floor,N=function(){return e.C(f.SR)()};function O(a){this.Di=a}O.prototype={$j:function(a){var b,c,d,e,f=this.Di;if(j.Ca(f)||(f=[f]),f[0]===-1)return!0;for(b=0;b<f.length;b++)if(c=f[b],R(c)){if(c=c.split(" "),d=c[0],e=parseInt(c[1]),"!="===d&&a!==e||">"===d&&a>e||">="===d&&a>=e||"%="===d&&a%2===e)return!0}else if(a===c)return!0;return!1},_j:function(){return this.Di}};function P(a,b,c){if(l(a))throw N().Exp_InvalidFunctionName;if(a=a.toUpperCase(),H.bi[a])throw N().Exp_InvalidOverrideFunction;var d=H.bi[a];if(d){if(!c||!c.override)throw N().Exp_OverrideNotAllowed}else H.bi[a]=d=new H.Function(a,0,255);return b&&"function"==typeof b&&(d.evaluate=b),j.H(c,function(a,b){var e;k(a,["acceptsReference","acceptsArray","acceptsError","acceptsMissingArgument","precedentReference","expandColumns","expandRows"])>=0?(e=new O(b),d[a]=function(a){return e.$j(a)}):k(a,["isVolatile","isBranch","findTestArgument","returnReference","isContextSensitive"])>=0?(e=new O(b),d[a]=function(){return e._j()}):c.hasOwnProperty(a)&&"override"!==a&&(d[a]=b)}),d}H.ak=function(a,b,c,d,e,f,g,h){return h||(h={}),c!==m&&(h.minArgs=c),d!==m&&(h.maxArgs=d),f!==m&&(h.acceptsReference=f),g!==m&&(h.acceptsArray=g),e!==m&&(h.Ci=e),h.bk!==m&&(h.acceptsMissingArgument=h.bk),h.ck!==m&&(h.isVolatile=h.ck),h.dk!==m&&(h.isContextSensitive=h.dk),h.ek!==m&&(h.precedentReference=h.ek),h.fk!==m&&(h.arrayArgumentEvaluateMode=h.fk),h.gk!==m&&(h.acceptsError=h.gk),P(a,b,h)},H.hk=1.79769e308;function Q(a){return"boolean"==typeof a}H.ik=Q;function R(a){return"string"==typeof a}H.jk=R;function S(a){return"number"==typeof a}H.Na=S;function T(a){return a%400===0||a%4===0&&a%100!==0||1900===a}H.kk=T;function U(a,b){switch(b){case 0:case 2:case 4:return 360;case 1:return T(a.getFullYear())?366:365;case 3:return 365;default:return-1}}H.lk=U;function V(a,b){return a-b}H.mk=V;function W(a,b){return k(b,[0,2,4,6,7,9,11])>=0?31:k(b,[3,5,8,10])>=0?30:1===b?T(a)?29:28:void 0}H.nk=W;function X(a,b,c,d){var e,f,g=c.getFullYear(),h=c.getMonth(),i=c.getDate(),j=d.getFullYear(),k=d.getMonth(),l=d.getDate();return a?(e=2===h&&W(g,h)===i,f=2===k&&W(j,k)===l,b?(e&&(i=30),f&&(l=30)):e&&f&&(i=30,l=30),31===l&&i>=30&&(l=30)):31===l&&(l=1,b&&k++),31===i&&(i=30),360*(j-g)+30*(k-h)+l-i}function Y(a,b,c){var d,e,f=1;return V(a,b)>0&&(e=a,a=b,b=e,f=-1),d=k(c,[1,2,3])>=0?f*B(g(b)-g(a)):k(c,[4,5])>=0?f*X(!1,5===c,a,b):f*X(!0,6===c,a,b)}H.pk=Y;function Z(a){var b,c,d;return 0===a?c=0:(d=.5*o(a),d>=3?c=1:d<1?(b=d*d,c=((((((((.000124818987*b-.001075204047)*b+.005198775019)*b-.019198292004)*b+.059054035642)*b-.151968751364)*b+.319152932694)*b-.5319230073)*b+.797884560593)*d*2):(d-=2,c=(((((((((((((-45255659e-12*d+.00015252929)*d-19538132e-12)*d-.000676904986)*d+.001390604284)*d-.00079462082)*d-.002034254874)*d+.006549791214)*d-.010557625006)*d+.011630447319)*d-.009279453341)*d+.005353579108)*d-.002141268741)*d+.000535310849)*d+.999936657524)),a>0?.5*(c+1):.5*(1-c)}H.qk=Z;function $(a,b,c,d,e){var f,g,i,j,k,m,n,o,p,q,r,s,u,w=c<100,x=2===c||102===c,y=x||3===c||103===c,A=5===c||105===c,B=4===c||104===c||A,C=9===c||109===c,G=1===c||101===c||C||d,H=6===c||106===c,I=H?1:0,J=!1,K=0;for(f=0;f<h(a);f++){if(q=a[f],y?r=E(q,0,!1,!1,!1,x):B?r=E(q,5,!1,!0,!1,!0):G?r=E(q,5,!1,C,!1,!0):H&&(r=E(q,5,!1,!1,!1,!0)),r.isError)return r[0];if(r.isConvertError)return t;for(s=r.rangeCount,u=r.isReference,g=0;g<s;g++)for(i=s>1?r[g]:r,u&&(j=q.getRow(g),k=q.getColumn(g)),m=0;m<h(i);m++)if(b||!u||!q.isHiddenRow(g,m,w))for(o=i[m],n=0;n<h(o);n++)!b&&u&&q.isSubtotal(g,m+j,n+k)||(p=o[n],p!==z&&(y&&!l(p)&&(!x||""!==p&&D(p,!0))?I++:B&&(!J||A&&p<I||!A&&p>I)?I=p:G?d?(e.sumx+=p,e.sumx2+=p*p,e.n++):(I+=p,K++):H&&(I*=p,K++),J=!0))}return G?C?I:d?void 0:0===K?v:F(I/K):H?F(K>0?I:0):I}H.rk=$;function _(a,b,c){var d,e=c%100,f=7===e||8===e,g=7===e||10===e?1:0,h={sumx:0,sumx2:0,n:0};return $(a,b,c,!0,h),h.n<=g?v:(d=Math.max(0,(h.n*h.sumx2-h.sumx*h.sumx)/(h.n*(h.n-g))),F(f?Math.sqrt(d):d))}H.sk=_;function aa(a,b,c){var d,e,f,g,i,j,k,l,m,n,o,p,q,r=1===b||3===b||5===b||7===b,s=1===b||2===b||3===b||4===b||0===b,u=2===b||3===b||6===b||7===b,v=2===c,w=v||3===c,x=12===c,y=13===c,z=14===c,A=15===c,B=16===c,C=17===c,D=18===c,F=19===c,H=z||A||B||C||D||F,I=[];if(H&&2!==h(a))return t;for(d=0;d<h(a);d++){if(n=a[d],o=w?E(n,0,!1,!1,!1,v):E(n,5,!1,!1,!1,!0),o.isConvertError)return t;for(p=o.rangeCount,q=o.isReference,e=0;e<p;e++)for(f=p>1?o[e]:o,q&&(g=n.getRow(e),i=n.getColumn(e)),j=0;j<h(f);j++)if(!q||!n.isHiddenRow(e,j,!r))for(l=f[j],k=0;k<h(l);k++)if(!(q&&s&&n.isSubtotal(e,j+g,k+i)||(m=l[k],u&&G(m)))){if(!u&&G(m))return m;"object"==typeof m&&0===Object.keys(m).length||I.push(m)}}return x||y||H?na(I,c):$(I,!0,c)}H.mja=aa;function ba(a){var b=[],c;for(c=0;c<h(a);c++)da(a[c],b);return b}function ca(a){a.sort(function(a,b){return a-b})}function da(a,b){var c,d;for(c=0;c<h(a);c++)d=a[c],d!==z&&b.push(d);ca(b)}function ea(){var a=ba(arguments[0]),b=h(a);return 0===b?u:b%2===0?(C(a[b/2-1])+C(a[b/2]))/2:a[K(""+b/2)]}function fa(){var a,b,c,d=L,e=0,f=ba(arguments[0]),g=h(f);for(a=0;a<g;a++){for(c=0,b=0;b<g;b++)b!==a&&f[b]===f[a]&&c++;c>e&&(e=c,d=f[a])}return 0===e?w:d}function ga(a,b){return ia(!0,a,b)}function ha(a,b){return ia(!1,a,b)}function ia(a,b,c){var d,e=[];return da(b,e),d=h(e),c<=0||d<c?u:a?e[d-c]:e[c-1]}function ja(a,b){var c,d,e;return a=E(a,1,!0,!0,!1,!0),b=C(b),a.isError?a[0]:a.isConvertError||n(b)?t:(c=[],da(a,c),!h(c)||b<0||b>1?u:(d=b*(h(c)-1),e=d%1,d=K(""+d),0===e?c[d]:C(c[d])+e*(C(c[d+1])-C(c[d]))))}function ka(a,b){var c=k(b,[0,1,2,3,4]);return c<0?u:ja(a,.25*c)}function la(a,b){var c,d,e,f,g=h(a);return ca(a),g?(c=b*(g+1)-1,d=c%1,c<0||g-1<c?u:(e=M(c),f=a[e],0===d?f:f+d*(a[e+1]-f))):u}function ma(a,b){var c=k(b,[1,2,3]);return c<0?u:la(a,.25*(c+1))}function na(a,b){var c=12===b,d=13===b,e=14===b,f=15===b,g=16===b,h=17===b,i=18===b,j=19===b;return c?ea(a):d?fa(a):e?ga(a[0],a[1]):f?ha(a[0],a[1]):g?ja(a[0],a[1]):h?ka(a[0],a[1]):i?la(a[0],a[1]):j?ma(a[0],a[1]):x}H.sja=na;function oa(a){var b=1,c;for(c=a;c>1;c--)b*=c;return b}H.tk=oa;function pa(a,b,c){var d=a.getDate(),e=b.getDate(),f=a.getMonth(),g=b.getMonth(),h=a.getFullYear(),i=b.getFullYear();return d=31===d?30:d,c?e=31===e?30:e:31===e&&(d<30?(e=1,g++,g>12&&(g=1,i++)):e=30),30*(12*(i-h)+g-f)+e-d}H.uk=pa;function qa(a,b,c){var d,e,f,h,i,j,k,l,m,n=Y(a,b,c);return n<0&&(n=-n,e=a,a=b,b=e),1===c?(f=a.getFullYear(),h=b.getFullYear(),i=new Date(a),i.setFullYear(i.getFullYear()+1),V(b,i)>0?(l=h+1-f,i=new Date(f,0,1),j=new Date(h+1,0,1),k=B(g(j)-g(i))-365*(h+1-f)):(l=1,k=T(f)&&a.getMonth()<3||T(h)&&256*b.getMonth()+b.getDate()>=541?1:0),m=C(k)/C(l),d=365+m):d=U(new Date,c),n/d}function ra(a,b,c){return c<0||c>4?u:qa(a,b,c)}H.vk=ra;function sa(a,b,c){var d;return 0===a?d=b<=c:1===a?d=b>=c:2===a?d=b!==c:3===a?d=b<c:4===a?d=b===c:5===a&&(d=b>c),d}function ta(a,b){var c,d=-1,e=!0,g={value:0},h=i.zb(b);return 4===a&&h&&(c=function(a){var b=i.sb(h);return b.lastIndex=0,b.test(a)}),l(b)?d=0:h?e=!1:A(""+b,g)?d=g.value:e=!1,function(g){var i,j;return!(g instanceof f.CalcError)&&(l(g)&&(g=""),i={value:0},e&&A(g,i)?""!==g&&sa(a,i.value,d):(!h||!D(g,!0))&&(j=l(b)?"":(""+b).toUpperCase(),h&&c?c(""+g):sa(a,(""+g).toUpperCase(),j)))}}b={},d={wk:function(a){var b=Math.floor(a);return J(a,b+1)?b+1:b},xk:function(a){var c,d,e,f,g,i,j=a,k=b;if(k||(b=k={}),c=k[j])return c;if(D(a))return c=k[j]=ta(4,a);for(d="=><",e=l(a)?"":(""+a).toUpperCase(),f="\0",g=0;g<2&&g<h(e);g++){if(i=e[g],d.indexOf(i)===-1){if("<"===f)return k[j]=c=ta(3,e.substring(1)),c;if(">"===f)return k[j]=c=ta(5,e.substring(1)),c;break}if("="===i)return c="<"===f?ta(0,e.substring(2)):">"===f?ta(1,e.substring(2)):ta(4,"\0"===f?e.substring(1):a),k[j]=c,c;if("\0"===f)f=i;else{if("<"===f)return c=">"===i?ta(2,e.substring(2)):ta(3,e.substring(1)),k[j]=c,c;if(">"===f)return k[j]=c=ta(5,e.substring(1)),c}}return k[j]=c=ta(4,a),c},yk:function(a){var b=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,1e15,1e16][a];return l(b)?r(10,parseFloat(a)):b},zk:function(a){var b=Math.ceil(a);return J(a,b-1)?b-1:b},Ak:function(a,b){var c=d.yk(o(b));return a=b<0?a/c:a*c,a=a<0?d.zk(a-.5):d.wk(a+.5),a=b<0?a*c:a/c,F(a)},Bk:function(a,b){if(a<0||b<0||a<b)return u;var c=1,d;for(b=Math.min(a-b,b),d=1;d<=b;d++)c*=a-d+1,c/=d;return F(c)},Ck:function(a,b){var c=o(a)>.5?r(1+a,b):p(b*q(1+a));return isFinite(c)?n(c)&&(c=5e-324):c===Number.POSITIVE_INFINITY?c=H.hk:c===Number.NEGATIVE_INFINITY&&(c=-H.hk),c},Dk:function(a,b){return(p(a)+(b?-1:1)*p(-a))/2},Ek:function(a,b){return n(a)?a:n(b)?b:1!==b&&1===a||0!==b&&b!==Number.POSITIVE_INFINITY?q(a)/q(b):NaN}},H.Fk=d,a.exports=H}()},function(a,b){!function(){"use strict";function b(a,b){return{description:a,parameters:b}}function c(a,b){return{name:a,repeatable:b}}a.exports={Exp_InvalidCast:"Invalid Cast Exception",Exp_FormulaInvalidChar:"The formula contains an invalid character: '{0}' at index on {1}",Exp_FormulaInvalid:"Invalid Formula",Exp_InvalidFunctionName:"Invalid function name",Exp_InvalidOverrideFunction:"Cannot override built-in function",Exp_InvalidArray:"Invalid array",Exp_OverrideNotAllowed:"Attempt to override function while override is not allowed",Exp_NoSyntax:"No syntax '{0}' to match the syntax '{1}'.",Exp_IsValid:"'{0}' is invalid.",Exp_InvalidParameters:"Invalid function parameter at {0}.",Exp_InvalidArrayColumns:"The length of array columns are not equal at {0}.",Exp_ExprIsNull:"The argument 'expr' is null",Exp_InvalidOperation:"Invalid Operation Exception",Exp_ArgumentNull:"Argument Null Exception",Exp_CriteriaIsNull:"Criteria is null",Exp_Format:"Format",Exp_ArrayFromulaPart:"Cannot change part of an array.",Exp_NotSupported:"Not Supported Exception",_h:{ABS:b("This function calculates the absolute value of the specified value.",[c("value")]),ACCRINT:b("This function calculates the accrued interest for a security that pays periodic interest.",[c("issue"),c("first"),c("settle"),c("rate"),c("par"),c("frequency"),c("basis")]),ACCRINTM:b("This function calculates the accrued interest at maturity for a security that pays periodic interest.",[c("issue"),c("maturity"),c("rate"),c("par"),c("basis")]),ACOS:b("This function calculates the arccosine, that is, the angle whose cosine is the specified value.",[c("value")]),ACOSH:b("This function calculates the inverse hyperbolic cosine of the specified value.",[c("value")]),ADDRESS:b("This function uses the row and column numbers to create a cell address in text.",[c("row"),c("column"),c("absnum"),c("a1style"),c("sheettext")]),AMORDEGRC:b("This function returns the depreciation for an accounting period, taking into consideration prorated depreciation, and applies a depreciation coefficient in the calculation based on the life of the assets.",[c("cost"),c("datepurchased"),c("firstperiod"),c("salvage"),c("period"),c("drate"),c("basis")]),AMORLINC:b("This function calculates the depreciation for an accounting period, taking into account prorated depreciation.",[c("cost"),c("datepurchased"),c("firstperiod"),c("salvage"),c("period"),c("drate"),c("basis")]),AND:b("Check whether all arguments are True, and returns True if all arguments are True.",[c("logical1"),c("logical2")]),ASIN:b("This function calculates the arcsine, that is, the angle whose sine is the specified value.",[c("value")]),ASINH:b("This function calculates the inverse hyperbolic sine of a number.",[c("value")]),ATAN:b("This function calculates the arctangent, that is, the angle whose tangent is the specified value.",[c("value")]),ATAN2:b("This function calculates the arctangent of the specified x- and y-coordinates.",[c("x"),c("y")]),ATANH:b("This function calculates the inverse hyperbolic tangent of a number.",[c("value")]),AVEDEV:b("This function calculates the average of the absolute deviations of the specified values from their mean.",[c("value1"),c("value2",!0)]),AVERAGE:b("This function calculates the average of the specified numeric values.",[c("value1"),c("value2",!0)]),AVERAGEA:b("This function calculates the average of the specified values, including text or logical values as well as numeric values.",[c("value1"),c("value2",!0)]),AVERAGEIF:b("This function calculates the average of the specified numeric values provided that they meet the specified criteria.",[c("value1"),c("value2",!0),c("condition")]),AVERAGEIFS:b("This function calculates the average of all cells that meet multiple specified criteria.",[c("value1"),c("condition1"),c("value2",!0),c("condition2...")]),BESSELI:b("This function calculates the modified Bessel function of the first kind evaluated for purely imaginary arguments.",[c("value"),c("order")]),BESSELJ:b("This function calculates the Bessel function of the first kind.",[c("value"),c("order")]),BESSELK:b("This function calculates the modified Bessel function of the second kind evaluated for purely imaginary arguments.",[c("value"),c("order")]),BESSELY:b("This function calculates the Bessel function of the second kind.",[c("value"),c("order")]), BETADIST:b("This function calculates the cumulative beta distribution function.",[c("x"),c("alpha"),c("beta"),c("lower"),c("upper")]),BETAINV:b("This function calculates the inverse of the cumulative beta distribution function.",[c("prob"),c("alpha"),c("beta"),c("lower"),c("upper")]),BIN2DEC:b("This function converts a binary number to a decimal number",[c("number")]),BIN2HEX:b("This function converts a binary number to a hexadecimal number.",[c("number"),c("places")]),BIN2OCT:b("This function converts a binary number to an octal number.",[c("number"),c("places")]),BINOMDIST:b("This function calculates the individual term binomial distribution probability.",[c("x"),c("n"),c("p"),c("cumulative")]),CEILING:b("This function rounds a number up to the nearest multiple of a specified value.",[c("value"),c("signif")]),CHAR:b("This function returns the character specified by a number.",[c("value")]),CHIDIST:b("This function calculates the one-tailed probability of the chi-squared distribution.",[c("value"),c("deg")]),CHIINV:b("This function calculates the inverse of the one-tailed probability of the chi-squared distribution",[c("prob"),c("deg")]),CHITEST:b("This function calculates the test for independence from the chi-squared distribution.",[c("obs_array"),c("exp_array")]),CHOOSE:b("This function returns a value from a list of values.",[c("index"),c("value1"),c("value2",!0)]),CLEAN:b("This function removes all non-printable characters from text.",[c("text")]),CODE:b("This function returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).",[c("text")]),COLUMN:b("This function returns the column number of a reference.",[c("reference")]),COLUMNS:b("This function returns the number of columns in an array.",[c("array")]),COMBIN:b("This function calculates the number of possible combinations for a specified number of items.",[c("k"),c("n")]),COMPLEX:b("This function converts real and imaginary coefficients into a complex number.",[c("realcoeff"),c("imagcoeff"),c("suffix")]),CONCATENATE:b("This function combines multiple text strings or numbers into one text string.",[c("text1"),c("text2"),c("....")]),CONFIDENCE:b("This function returns confidence interval for a population mean.",[c("alpha"),c("stdev"),c("size")]),CONVERT:b("This function converts a number from one measurement system to its equivalent in another measurement system.",[c("number"),c("from-unit"),c("to-unit")]),CORREL:b("This function returns the correlation coefficient of the two sets of data.",[c("array1"),c("array2")]),COS:b("This function returns the cosine of the specified angle.",[c("angle")]),COSH:b("This function returns the hyperbolic cosine of the specified value.",[c("value")]),COUNT:b("This function returns the number of cells that contain numbers.",[c("value1"),c("value2",!0)]),COUNTA:b("This function returns the number of number of cells that contain numbers, text, or logical values.",[c("value1"),c("value2",!0)]),COUNTBLANK:b("This function returns the number of empty (or blank) cells in a range of cells on a sheet.",[c("cellrange")]),COUNTIF:b("This function returns the number of cells that meet a certain condition",[c("cellrange"),c("condition")]),COUNTIFS:b("This function returns the number of cells that meet multiple conditions.",[c("cellrange"),c("condition")]),COUPDAYBS:b("This function calculates the number of days from the beginning of the coupon period to the settlement date.",[c("settlement"),c("maturity"),c("frequency"),c("basis")]),COUPDAYS:b("This function returns the number of days in the coupon period that contains the settlement date.",[c("settlement"),c("maturity"),c("frequency"),c("basis")]),COUPDAYSNC:b("This function calculates the number of days from the settlement date to the next coupon date.",[c("settlement"),c("maturity"),c("frequency"),c("basis")]),COUPNCD:b("This function returns a date number of the next coupon date after the settlement date.",[c("settlement"),c("maturity"),c("frequency"),c("basi")]),COUPNUM:b("This function returns the number of coupons due between the settlement date and maturity date.",[c("settlement"),c("maturity"),c("frequency"),c("basis")]),COUPPCD:b("This function returns a date number of the previous coupon date before the settlement date.",[c("settlement"),c("maturity"),c("frequency"),c("basis")]),COVAR:b("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[c("array1"),c("array2")]),CRITBINOM:b("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.",[c("n"),c("p"),c("alpha")]),CUMIPMT:b("This function returns the cumulative interest paid on a loan between the starting and ending periods.",[c("rate"),c("nper"),c("pval"),c("startperiod"),c("endperiod"),c("paytype")]),CUMPRINC:b("This function returns the cumulative principal paid on a loan between the start and end periods.",[c("rate"),c("nper"),c("pval"),c("startperiod"),c("endperiod"),c("paytype")]),DATE:b("This function returns the DateTime object for a particular date, specified by the year, month, and day.",[c("year"),c("month"),c("day")]),DATEDIF:b("This function returns the number of days, months, or years between two dates.",[c("date1"),c("date2"),c("outputcode")]),DATEVALUE:b("This function returns a DateTime object of the specified date.",[c("date_string")]),DAVERAGE:b("This function calculates the average of values in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DAY:b("This function returns the day number of the month (integer 1 to 31) that corresponds to the specified date.",[c("date")]),DAYS360:b("This function returns the number of days between two dates based on a 360-day year.",[c("startdate"),c("enddate"),c("method")]),DB:b("This function calculates the depreciation of an asset for a specified period using the fixed\u2011declining balance method",[c("cost"),c("salvage"),c("life"),c("period"),c("month")]),DCOUNT:b("This function counts the cells that contain numbers in a column of a list or database that match the specified conditions",[c("database"),c(" field"),c(" criteria")]),DCOUNTA:b("This function counts the non-blank cells in a column of a list or database that match the specified conditions",[c("database"),c(" field"),c(" criteria")]),DDB:b("This function calculates the depreciation of an asset for a specified period using the double-declining balance method or another method you specify.",[c("cost"),c("salvage"),c("life"),c("period"),c("factor")]),DEC2BIN:b("This function converts a decimal number to a binary number.",[c("number"),c("places")]),DEC2HEX:b("This function converts a decimal number to a hexadecimal number",[c("number"),c("places")]),DEC2OCT:b("This function converts a decimal number to an octal number",[c("number"),c("places")]),DEGREES:b("This function converts the specified value from radians to degrees",[c("angle")]),DELTA:b("This function identifies whether two values are equal. Returns 1 if they are equal; returns 0 otherwise.",[c("value1"),c("value2")]),DEVSQ:b("This function calculates the sum of the squares of deviations of data points (or of an array of data points) from their sample mean.",[c("value1"),c("value2",!0)]),DGET:b("This function extracts a single value from a column of a list or database that matches the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DISC:b("This function calculates the discount rate for a security.",[c("settle"),c("mature"),c("pricep"),c("redeem"),c("basis")]),DMAX:b("This function returns the largest number in a column of a list or database that matches the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DMIN:b("This function returns the smallest number in a column of a list or database that matches the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DOLLAR:b("This function converts a number to text using currency format, with the decimals rounded to the specified place.",[c("value"),c("digits")]),DOLLARDE:b("This function converts a fraction dollar price to a decimal dollar price.",[c("fractionaldollar"),c("fraction")]),DOLLARFR:b("This function converts a decimal number dollar price to a fraction dollar price.",[c("decimaldollar"),c("fraction")]),DPRODUCT:b("This function multiplies the values in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DSTDEV:b("This function estimates the standard deviation of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DSTDEVP:b("This function calculates the standard deviation of a population based on the entire population using the numbers in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DSUM:b("This function adds the numbers in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DURATION:b("This function returns the Macaulay duration for an assumed par value of $100.",[c("settlement"),c("maturity"),c("coupon"),c("yield"),c("frequency"),c("basis")]),DVAR:b("This function estimates the variance of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),DVARP:b("This function calculates the variance of a population based on the entire population by using the numbers in a column of a list or database that match the specified conditions.",[c("database"),c(" field"),c(" criteria")]),EDATE:b("This function calculates the date that is the indicated number of months before or after a specified date.",[c("startdate"),c("months")]),EFFECT:b("This function calculates the effective annual interest rate for a given nominal annual interest rate and the number of compounding periods per year.",[c("nomrate"),c("comper")]),EOMONTH:b("This function calculates the date for the last day of the month (end of month) that is the indicated number of months before or after the starting date.",[c("startdate"),c("months")]),ERF:b("This function calculates the error function integrated between a lower and an upper limit.",[c("limit"),c("upperlimit")]),ERFC:b("This function calculates the complementary error function integrated between a lower limit and infinity.",[c("lowerlimit")]),"ERROR.TYPE":b("This function returns a number corresponding to one of the error values.",[c("errorvalue")]),EURO:b("This function returns the equivalent of one Euro based on the ISO currency code.",[c("code")]),EUROCONVERT:b("This function converts currency from a Euro member currency (including Euros) to another Euro member currency (including Euros).",[c("currency"),c("source"),c("target"),c("fullprecision"),c("triangulation")]),EVEN:b("This function rounds the specified value up to the nearest even integer.",[c("value")]),EXACT:b("This function returns true if two strings are the same; otherwise, false.",[c("text1"),c("text2")]),EXP:b("This function returns e raised to the power of the specified value.",[c("value")]),EXPONDIST:b("This function returns the exponential distribution or the probability density.",[c("value"),c("lambda"),c("cumulative")]),FACT:b("This function calculates the factorial of the specified number.",[c("number")]),FACTDOUBLE:b("This function calculates the double factorial of the specified number.",[c("number")]),FALSE:b("This function returns the value for logical FALSE.",[]),FDIST:b("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.",[c("value"),c("degnum"),c("degden")]),FIND:b("This function finds one text value within another and returns the text value\u2019s position in the text you searched.",[c("findtext"),c("intext"),c("start")]),FINV:b("This function returns the inverse of the F probability distribution.",[c("p"),c("degnum"),c("degden")]),FISHER:b("This function returns the Fisher transformation for a specified value.",[c("value")]),FISHERINV:b("This function returns the inverse of the Fisher transformation for a specified value.",[c("value")]),FIXED:b("This function rounds a number to the specified number of decimal places, formats the number in decimal format using a period and commas (if so specified), and returns the result as text.",[c("num"),c("digits"),c("notcomma")]),FLOOR:b("This function rounds a number down to the nearest multiple of a specified value.",[c("value"),c("signif")]),FORECAST:b("This function calculates a future value using existing values.",[c("value"),c("Yarray"),c("Xarray")]),FREQUENCY:b("This function calculates how often values occur within a range of values. This function returns a vertical array of numbers.",[c("dataarray"),c("binarray")]),FTEST:b("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.",[c("array1"),c("array2")]),FV:b("This function returns the future value of an investment based on a present value, periodic payments, and a specified interest rate.",[c("rate"),c("numper"),c("paymt"),c("pval"),c("type")]),FVSCHEDULE:b("This function returns the future value of an initial principal after applying a series of compound interest rates. Calculate future value of an investment with a variable or adjustable rate.",[c("principal"),c("schedule")]),GAMMADIST:b("This function returns the gamma distribution.",[c("x"),c("alpha"),c("beta"),c("cumulative")]),GAMMAINV:b("This function returns the inverse of the gamma cumulative distribution.",[c("p"),c("alpha"),c("beta")]),GAMMALN:b("This function returns the natural logarithm of the Gamma function, G(x).",[c("value")]),GCD:b("This function returns the greatest common divisor of two numbers.",[c("number1"),c("number2")]),GEOMEAN:b("This function returns the geometric mean of a set of positive data.",[c("value1"),c("value2",!0)]),GESTEP:b("This function, greater than or equal to step, returns an indication of whether a number is equal to a threshold.",[c("number"),c("step")]),GROWTH:b("This function calculates predicted exponential growth. This function returns the y values for a series of new x values that are specified by using existing x and y values.",[c("y"),c("x"),c("newx"),c("constant")]),HARMEAN:b("This function returns the harmonic mean of a data set.",[c("value1"),c("value2",!0)]),HEX2BIN:b("This function converts a hexadecimal number to a binary number.",[c("number"),c(" places")]),HEX2DEC:b("This function converts a hexadecimal number to a decimal number.",[c("number")]),HEX2OCT:b("This function converts a hexadecimal number to an octal number.",[c("number"),c(" places")]),HLOOKUP:b("This function searches for a value in the top row and then returns a value in the same column from a specified row.",[c("value"),c("array"),c("row"),c("approx")]),HOUR:b("This function returns the hour that corresponds to a specified time.",[c("time")]),HYPGEOMDIST:b("This function returns the hypergeometric distribution.",[c("x"),c("n"),c("M"),c("N")]),IF:b("This function performs a comparison and returns one of two provided values based on that comparison.",[c("valueTest"),c("valueTrue"),c("valueFalse")]),IFERROR:b("This function evaluates a formula and returns a value you provide if there is an error or the formula result.",[c("value"),c("error")]),IMABS:b("This function returns the absolute value or modulus of a complex number.",[c("complexnum")]),IMAGINARY:b("This function returns the imaginary coefficient of a complex number.",[c("complexnum")]),IMARGUMENT:b("This function returns the argument theta, which is an angle expressed in radians.",[c("complexnum")]),IMCONJUGATE:b("This function returns the complex conjugate of a complex number.",[c("complexnum")]),IMCOS:b("This function returns the cosine of a complex number.",[c("complexnum")]),IMDIV:b("This function returns the quotient of two complex numbers.",[c("complexnum"),c("complexdenom")]),IMEXP:b("This function returns the exponential of a complex number.",[c("complexnum")]),IMLN:b("This function returns the natural logarithm of a complex number.",[c("complexnum")]),IMLOG2:b("This function returns the base-2 logarithm of a complex number.",[c("complexnum")]),IMLOG10:b("This function returns the common logarithm of a complex number.",[c("complexnum")]),IMPOWER:b("This function returns a complex number raised to a power.",[c("complexnum"),c("powernum")]),IMPRODUCT:b("This function returns the product of up to 29 complex numbers in the x+yi or x+yj text format.",[c("complexnum1"),c("complexnum2",!0)]),IMREAL:b("This function returns the real coefficient of a complex number in the x+yi or x+yj text format.",[c("complexnum")]),IMSIN:b("This function returns the sine of a complex number in the x+yi or x+yj text format.",[c("complexnum")]),IMSQRT:b("This function returns the square root of a complex number in the x+yi or x+yj text format.",[c("complexnum")]),IMSUB:b("This function returns the difference of two complex numbers in the x+yi or x+yj text format.",[c("complexnum1"),c("complexnum2")]),IMSUM:b("This function returns the sum of two or more complex numbers in the x+yi or x+yj text format.",[c("complexnum1"),c("complexnum2",!0)]),INDEX:b("This function returns a value or the reference to a value from within an array or range.",[c("return"),c("row"),c("col"),c("area")]),INDIRECT:b("This function returns the reference specified by a text string. References are immediately evaluated to display their contents.",[c("ref_text"),c("a1_style")]),INT:b("This function rounds a specified number down to the nearest integer.",[c("value")]),INTERCEPT:b("This function returns the coordinates of a point at which a line intersects the y-axis, by using existing x values and y values.",[c("dependent"),c("independent")]),INTRATE:b("This function calculates the interest rate for a fully invested security.",[c("settle"),c("mature"),c("invest"),c("redeem"),c("basis")]),IPMT:b("This function calculates the payment of interest on a loan.",[c("rate"),c("per"),c("nper"),c("pval"),c("fval"),c("type")]),IRR:b("This function returns the internal rate of return for a series of cash flows represented by the numbers in an array.",[c("arrayvals"),c("estimate")]),ISBLANK:b("This function tests whether a value, an expression, or contents of a referenced cell is empty.",[c("cellreference")]),ISERR:b("This function, Is Error Other Than Not Available, tests whether a value, an expression, or contents of a referenced cell has an error other than not available (#N/A).",[c("cellreference")]),ISERROR:b("This function, Is Error of Any Kind, tests whether a value, an expression, or contents of a referenced cell has an error of any kind.",[c("cellreference")]),ISEVEN:b("This function, Is Number Even, tests whether a value, an expression, or contents of a referenced cell is even.",[c("cellreference")]),ISLOGICAL:b("This function tests whether a value, an expression, or contents of a referenced cell is a logical (Boolean) value.",[c("cellreference")]),ISNA:b("This function, Is Not Available, tests whether a value, an expression, or contents of a referenced cell has the not available (#N/A) error value.",[c("cellreference")]),ISNONTEXT:b("This function tests whether a value, an expression, or contents of a referenced cell has any data type other than text.",[c("cellreference")]),ISNUMBER:b("This function tests whether a value, an expression, or contents of a referenced cell has numeric data.",[c("cellreference")]),ISODD:b("This function, Is Number Odd, tests whether a value, an expression, or contents of a referenced cell has numeric data.",[c("cellreference")]),ISPMT:b("This function calculates the interest paid during a specific period of an investment.",[c("rate"),c("per"),c("nper"),c("pv")]),ISREF:b("This function, Is Reference, tests whether a value, an expression, or contents of a referenced cell is a reference to another cell.",[c("cellreference")]),ISTEXT:b("This function tests whether a value, an expression, or contents of a referenced cell has text data.",[c("cellreference")]),KURT:b("This function returns the kurtosis of a data set.",[c("value1"),c("value2"),c("value3"),c("value4",!0)]),LARGE:b("This function returns the nth largest value in a data set, where n is specified.",[c("array"),c("n")]),LCM:b("This function returns the least common multiple of two numbers.",[c("number1"),c("number2")]),LEFT:b("This function returns the specified leftmost characters from a text value, and based on the number of characters you specify.",[c("mytext"),c("num_chars")]),LEN:b("This function returns the length of the number of characters in a text string.",[c("value")]),LINEST:b("This function calculates the statistics for a line.",[c("y"),c("x"),c("constant"),c("stats")]),LN:b("This function returns the natural logarithm of the specified number.",[c("value")]),LOG:b("This function returns the logarithm base Y of a number X.",[c("number"),c("base")]),LOG10:b("This function returns the logarithm base 10 of the number given.",[c("value")]),LOGEST:b("This function calculates an exponential curve that fits the data and returns an array of values that describes the curve.",[c("y"),c("x"),c("constant"),c("stats")]),LOGINV:b("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.",[c("prob"),c("mean"),c("stdev")]),LOGNORMDIST:b("This function returns the cumulative natural log normal distribution of x, where LN(x) is normally distributed with the specified mean and standard deviation. Analyze data that has been logarithmically transformed with this function.",[c("x"),c("mean"),c("stdev")]),LOOKUP:b("This function searches for a value and returns a value from the same location in a second area.",[c("lookupvalue"),c("lookupvector"),c("resultvector")]),LOWER:b("This function converts text to lower case letters.",[c("string")]),MATCH:b("This function returns the relative position of a specified item in a range.",[c("value1"),c("array"),c("type")]),MAX:b("This function returns the maximum value, the greatest value, of all the values in the arguments.",[c("value1"),c("value2",!0)]),MAXA:b("This function returns the largest value in a list of arguments, including text and logical values.",[c("value1"),c("value2",!0)]),MDETERM:b("This function returns the matrix determinant of an array.",[c("array")]),MDURATION:b("This function calculates the modified Macaulay duration of a security with an assumed par value of $100.",[c("settlement"),c("maturity"),c("coupon"),c("yield"),c("frequency"),c("basis")]),MEDIAN:b("This function returns the median, the number in the middle of the provided set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less than the median.",[c("value1"),c("value2",!0)]),MID:b("This function returns the requested number of characters from a text string starting at the position you specify, and based on the number of characters you specify.",[c("text"),c("start_num"),c("num_chars")]),MIN:b("This function returns the minimum value, the least value, of all the values in the arguments.",[c("value1"),c("value2",!0)]),MINA:b("This function returns the minimum value in a list of arguments, including text and logical values.",[c("value1"),c("value2",!0)]),MINUTE:b("This function returns the minute corresponding to a specified time.",[c("time")]),MINVERSE:b("This function returns the inverse matrix for the matrix stored in an array.",[c("array")]),MIRR:b("This function returns the modified internal rate of return for a series of periodic cash flows.",[c("arrayvals"),c("payment_int"),c("income_int")]),MMULT:b("This function returns the matrix product for two arrays.",[c("array1"),c("array2")]),MOD:b("This function returns the remainder of a division operation.",[c("dividend"),c("divisor")]),MODE:b("This function returns the most frequently occurring value in a set of data.",[c("value1"),c("value2",!0)]),MONTH:b("This function returns the month corresponding to the specified date value.",[c("date")]),MROUND:b("This function returns a number rounded to the desired multiple.",[c("number"),c("multiple")]),MULTINOMIAL:b("This function calculates the ratio of the factorial of a sum of values to the product of factorials.",[c("value1"),c("value2",!0)]),N:b("This function returns a value converted to a number.",[c("value")]),NA:b("This function returns the error value #N/A that means not available.",[]),NEGBINOMDIST:b("This function returns the negative binomial distribution.",[c("x"),c("r"),c("p")]),NETWORKDAYS:b("This function returns the total number of complete working days between the start and end dates.",[c("startdate"),c("enddate"),c("holidays")]),NOMINAL:b("This function returns the nominal annual interest rate for a given effective rate and number of compounding periods per year.",[c("effrate"),c("comper")]),NORMDIST:b("This function returns the normal cumulative distribution for the specified mean and standard deviation.",[c("x"),c("mean"),c("stdev"),c("cumulative")]),NORMINV:b("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.",[c("prob"),c("mean"),c("stdev")]),NORMSDIST:b("This function returns the standard normal cumulative distribution function.",[c("value")]),NORMSINV:b("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.",[c("prob")]),NOT:b("This function reverses the logical value of its argument.",[c("value")]),NOW:b("This function returns the current date and time.",[]),NPER:b("This function returns the number of periods for an investment based on a present value, future value, periodic payments, and a specified interest rate.",[c("rate"),c("paymt"),c("pval"),c("fval"),c("type")]),NPV:b("This function calculates the net present value of an investment by using a discount rate and a series of future payments and income.",[c("discount"),c("value1"),c("value2",!0)]),OCT2BIN:b("This function converts an octal number to a binary number.",[c("number"),c("places")]),OCT2DEC:b("This function converts an octal number to a decimal number.",[c("number")]),OCT2HEX:b("This function converts an octal number to a hexadecimal number.",[c("number"),c("places")]),ODD:b("This function rounds the specified value up to the nearest odd integer.",[c("value")]),ODDFPRICE:b("This function calculates the price per $100 face value of a security with an odd first period.",[c("settle"),c("maturity"),c("issue"),c("first"),c("rate"),c("yield"),c("redeem"),c("freq"),c("basis")]),ODDFYIELD:b("This function calculates the yield of a security with an odd first period.",[c("settle"),c("maturity"),c("issue"),c("first"),c("rate"),c("price"),c("redeem"),c("freq"),c("basis")]),ODDLPRICE:b("This function calculates the price per $100 face value of a security with an odd last coupon period.",[c("settle"),c("maturity"),c("last"),c("rate"),c("yield"),c("redeem"),c("freq"),c("basis")]),ODDLYIELD:b("This function calculates the yield of a security with an odd last period.",[c("settle"),c("maturity"),c("last"),c("rate"),c("price"),c("redeem"),c("freq"),c("basis")]),OFFSET:b("This function returns a reference to a range. The range is a specified number of rows and columns from a cell or range of cells. The function returns a single cell or a range of cells.",[c("reference"),c("rows"),c("cols"),c("height"),c("width")]),OR:b("This function calculates logical OR. It returns TRUE if any of its arguments are true; otherwise, returns FALSE if all arguments are false.",[c("argument1"),c("argument2...")]),PEARSON:b("This function returns the Pearson product moment correlation coefficient, a dimensionless index between -1.0 to 1.0 inclusive indicative of the linear relationship of two data sets.",[c("array_ind"),c("array_dep")]),PERCENTILE:b("This function returns the nth percentile of values in a range.",[c("array"),c("n")]),PERCENTRANK:b("This function returns the rank of a value in a data set as a percentage of the data set.",[c("array"),c("n"),c("sigdig")]),PERMUT:b("This function returns the number of possible permutations for a specified number of items.",[c("k"),c("n")]),PI:b("This function returns PI as 3.1415926536.",[]),PMT:b("This function returns the payment amount for a loan given the present value, specified interest rate, and number of terms.",[c("rate"),c("nper"),c("pval"),c("fval"),c("type")]),POISSON:b("This function returns the Poisson distribution.",[c("nevents"),c("mean"),c("cumulative")]),POWER:b("This function raises the specified number to the specified power.",[c("number"),c("power")]),PPMT:b("This function returns the amount of payment of principal for a loan given the present value, specified interest rate, and number of terms.",[c("rate"),c("per"),c("nper"),c("pval"),c("fval"),c("type")]),PRICE:b("This function calculates the price per $100 face value of a periodic interest security",[c("settlement"),c("maturity"),c("rate"),c("yield"),c("redeem"),c("frequency"),c("basis")]),PRICEDISC:b("This function returns the price per $100 face value of a discounted security.",[c("settle"),c("mature"),c("discount"),c("redeem"),c("basis")]),PRICEMAT:b("This function returns the price at maturity per $100 face value of a security that pays interest.",[c("settle"),c("mature"),c("issue"),c("rate"),c("yield"),c("basis")]),PROB:b("This function returns the probability that values in a range are between two limits.",[c("array"),c("probs"),c("lower"),c("upper")]),PRODUCT:b("This function multiplies all the arguments and returns the product.",[c("value1"),c("value2",!0)]),PROPER:b("This function capitalizes the first letter in each word of a text string.",[c("text")]),PV:b("This function returns the present value of an investment based on the interest rate, number and amount of periodic payments, and future value. The present value is the total amount that a series of future payments is worth now.",[c("rate"),c("numper"),c("paymt"),c("fval"),c("type")]),QUARTILE:b("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[c("array"),c("quart")]),QUOTIENT:b("This function returns the integer portion of a division. Use this to ignore the remainder of a division.",[c("numerator"),c("denominator")]),RADIANS:b("This function converts the specified number from degrees to radians.",[c("value")]),RAND:b("This function returns an evenly distributed random number between 0 and 1.",[]),RANDBETWEEN:b("This function returns a random number between the numbers you specify.",[c("lower"),c("upper")]),RANK:b("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.",[c("number"),c("array"),c("order")]),RATE:b("This function returns the interest rate per period of an annuity.",[c("nper"),c("pmt"),c("pval"),c("fval"),c("type"),c("guess")]),RECEIVED:b("This function returns the amount received at maturity for a fully invested security.",[c("settle"),c("mature"),c("invest"),c("discount"),c("basis")]),REPLACE:b("This function replaces part of a text string with a different text string, based on the number of characters you specify.",[c("old_text"),c("start_char"),c("num_chars"),c("new_text")]),REPT:b("This function repeats text a specified number of times.",[c("text"),c("number")]),RIGHT:b("This function returns the specified rightmost characters from a text value, and based on the number of characters you specify.",[c("text"),c("num_chars")]),ROMAN:b("This function converts an Arabic numeral to a Roman numeral text equivalent.",[c("number"),c("style")]), ROUND:b("This function rounds the specified value to the nearest number, using the specified number of decimal places.",[c("value"),c("places")]),ROUNDDOWN:b("This function rounds the specified number down to the nearest number, using the specified number of decimal places.",[c("value"),c("places")]),ROUNDUP:b("This function rounds the specified number up to the nearest number, using the specified number of decimal places.",[c("value"),c("places")]),ROW:b("This function returns the number of a row from a reference.",[c("reference")]),ROWS:b("This function returns the number of rows in an array.",[c("array")]),RSQ:b("This function returns the square of the Pearson product moment correlation coefficient (R-squared) through data points in known y\ufffds and known x\ufffds.",[c("array_dep"),c("array_ind")]),SEARCH:b("This function finds one text string in another text string and returns the index of the starting position of the found text.",[c("string1"),c("string2")]),SECOND:b("This function returns the seconds (0 to 59) value for a specified time.",[c("time")]),SERIESSUM:b("This function returns the sum of a power series.",[c("x"),c("n"),c("m"),c("coeff")]),SIGN:b("This function returns the sign of a number or expression.",[c("cellreference")]),SIN:b("This function returns the sine of the specified angle.",[c("angle")]),SINH:b("This function returns the hyperbolic sine of the specified number.",[c("value")]),SKEW:b("This function returns the skewness of a distribution.",[c("number1"),c("number2",!0)]),SLN:b("This function returns the straight-line depreciation of an asset for one period.",[c("cost"),c("salvage"),c("life")]),SLOPE:b("This function calculates the slope of a linear regression.",[c("array_dep"),c("array_ind")]),SMALL:b("This function returns the nth smallest value in a data set, where n is specified.",[c("array"),c("n")]),SQRT:b("This function returns the positive square root of the specified number.",[c("value")]),SQRTPI:b("This function returns the positive square root of a multiple of pi (p).",[c("multiple")]),STANDARDIZE:b("This function returns a normalized value from a distribution characterized by mean and standard deviation.",[c("x"),c("mean"),c("stdev")]),STDEVA:b("This function returns the standard deviation for a set of numbers, text, or logical values.",[c("value1"),c("value2",!0)]),STDEVP:b("This function returns the standard deviation for an entire specified population (of numeric values).",[c("value1"),c("value2",!0)]),STDEVPA:b("This function returns the standard deviation for an entire specified population, including text or logical values as well as numeric values.",[c("value1"),c("value2",!0)]),STEYX:b("This function returns the standard error of the predicted y value for each x. The standard error is a measure of the amount of error in the prediction of y for a value of x.",[c("array_dep"),c("array_ind")]),SUBSTITUTE:b("This function substitutes a new string for specified characters in an existing string.",[c("text"),c("old_piece"),c("new_piece"),c("instance")]),SUBTOTAL:b("This function calculates a subtotal of a list of numbers using a specified built-in function.",[c("functioncode"),c("value1"),c("value2",!0)]),SUM:b("This function returns the sum of cells or range of cells.",[c("value1"),c("value2",!0)]),SUMIF:b("This function adds the cells using a given criteria.",[c("array"),c("condition"),c("sumrange")]),SUMIFS:b("This function adds the cells in a range using multiple criteria.",[c("array"),c("conditionarray"),c("condition",!0)]),SUMPRODUCT:b("This function returns the sum of products of cells. Multiplies corresponding components in the given arrays, and returns the sum of those products.",[c("array1"),c("array2",!0)]),SUMSQ:b("This function returns the sum of the squares of the arguments.",[c("value1"),c("value2",!0)]),SUMX2MY2:b("This function returns the sum of the difference of the squares of corresponding values in two arrays.",[c("array_x"),c("array_y")]),SUMX2PY2:b("This function returns the sum of the sum of squares of corresponding values in two arrays.",[c("array_x"),c("array_y")]),SUMXMY2:b("This function returns the sum of the square of the differences of corresponding values in two arrays.",[c("array_x"),c("array_y")]),SYD:b("This function returns the sum-of-years\ufffd digits depreciation of an asset for a specified period.",[c("cost"),c("salvage"),c("life"),c("period")]),T:b("This function returns the text in a specified cell.",[c("value")]),TAN:b("This function returns the tangent of the specified angle.",[c("angle")]),TANH:b("This function returns the hyperbolic tangent of the specified number.",[c("value")]),TBILLEQ:b("This function returns the equivalent yield for a Treasury bill (or T-bill)",[c("settle"),c("mature"),c("discount")]),TBILLPRICE:b("This function returns the price per $100 face value for a Treasury bill (or T-bill).",[c("settle"),c("mature"),c("discount")]),TBILLYIELD:b("This function returns the yield for a Treasury bill (or T-bill).",[c("settle"),c("mature"),c("priceper")]),TDIST:b("This function returns the probability for the t-distribution.",[c("x"),c("deg"),c("tails")]),TEXT:b("This function formats a number and converts it to text.",[c("value"),c("text")]),TIME:b("This function returns the TimeSpan object for a specified time.",[c("hour"),c("minutes"),c("seconds")]),TIMEVALUE:b("This function returns the TimeSpan object of the time represented by a text string.",[c("time_string")]),TINV:b("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.",[c("prog"),c("deg")]),TODAY:b("This function returns the date and time of the current date.",[]),TRANSPOSE:b("This function returns a vertical range of cells as a horizontal range or a horizontal range of cells as a vertical range.",[c("array")]),TREND:b("This function returns values along a linear trend. This function fits a straight line to the arrays known x and y values. Trend returns the y values along that line for the array of specified new x values.",[c("y"),c("x"),c("newx"),c("constant")]),TRIM:b("This function removes extra spaces from a string and leaves single spaces between words.",[c("text")]),TRIMMEAN:b("This function returns the mean of a subset of data excluding the top and bottom data.",[c("array"),c("percent")]),TRUE:b("This function returns the value for logical TRUE.",[]),TRUNC:b("This function removes the specified fractional part of the specified number.",[c("value"),c("precision")]),TTEST:b("This function returns the probability associated with a t-test.",[c("array1"),c("array2"),c("tails"),c("type")]),TYPE:b("This function returns the type of value.",[c("value")]),UPPER:b("This function converts text to uppercase letters.",[c("string")]),VALUE:b("This function converts a text string that is a number to a numeric value.",[c("text")]),VAR:b("This function returns the variance based on a sample of a population, which uses only numeric values.",[c("value1"),c("value2",!0)]),VARA:b("This function returns the variance based on a sample of a population, which includes numeric, logical, or text values.",[c("value1"),c("value2",!0)]),VARP:b("This function returns variance based on the entire population, which uses only numeric values.",[c("value1"),c("value2",!0)]),VARPA:b("This function returns variance based on the entire population, which includes numeric, logical, or text values.",[c("value1"),c("value2",!0)]),VDB:b("This function returns the depreciation of an asset for any period you specify using the variable declining balance method.",[c("cost"),c("salvage"),c("life"),c("start"),c("end"),c("factor"),c("switchnot")]),VLOOKUP:b("This function searches for a value in the leftmost column and returns a value in the same row from a column you specify.",[c("value"),c("array"),c("colindex"),c("approx")]),WEEKDAY:b("This function returns the number corresponding to the day of the week for a specified date.",[c("date"),c("type")]),WEEKNUM:b("This function returns a number that indicates the week of the year numerically.",[c("date"),c("weektype")]),WEIBULL:b("This function returns the two-parameter Weibull distribution, often used in reliability analysis.",[c("x"),c("alpha"),c("beta"),c("cumulative")]),WORKDAY:b("This function returns the number of working days before or after the starting date.",[c("startdate"),c("numdays"),c("holidays")]),XIRR:b("This function calculates the internal rate of return for a schedule of cash flows that may not be periodic.",[c("values"),c("dates"),c("guess")]),XNPV:b("This function calculates the net present value for a schedule of cash flows that may not be periodic.",[c("rate"),c("values"),c("dates")]),YEAR:b("This function returns the year as an integer for a specified date.",[c("date")]),YEARFRAC:b("This function returns the fraction of the year represented by the number of whole days between the start and end dates.",[c("startdate"),c("enddate"),c("basis")]),YIELD:b("This function calculates the yield on a security that pays periodic interest.",[c("settle"),c("maturity"),c("rate"),c("price"),c("redeem"),c("frequency"),c("basis")]),YIELDDISC:b("This function calculates the annual yield for a discounted security.",[c("settle"),c("maturity"),c("price"),c("redeem"),c("basis")]),YIELDMAT:b("This function calculates the annual yield of a security that pays interest at maturity.",[c("settle"),c("maturity"),c("issue"),c("issrate"),c("price"),c("basis")]),ZTEST:b("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.",[c("array"),c("x"),c("sigma")]),HBARSPARKLINE:b("This function returns a data set used for representing a Hbar sparkline",[c("value"),c("colorScheme")]),VBARSPARKLINE:b("This function returns a data set used for representing a Vbar sparkline",[c("value"),c("colorScheme")]),VARISPARKLINE:b("This function returns a data set used for representing a variance sparkline",[c("variance"),c("reference"),c("mini"),c("maxi"),c("mark"),c("tickunit"),c("legend"),c("colorPositive"),c("colorNegative"),c("vertical")]),PIESPARKLINE:b("This function returns a data set used for representing a pie sparkline",[c("range|percentage"),c("color",!0)]),AREASPARKLINE:b("This function returns a data set used for representing a area sparkline",[c("points"),c("mini"),c("maxi"),c("line1"),c("line2"),c("colorPositive"),c("colorNegative")]),SCATTERSPARKLINE:b("This function returns a data set used for representing a scatter sparkline",[c("points1"),c("points2"),c("minX"),c("maxX"),c("minY"),c("maxY"),c("hLine"),c("vLine"),c("xMinZone"),c("xMaxZone"),c("yMinZone"),c("yMaxZone"),c("tags"),c("drawSymbol"),c("drawLines"),c("color1"),c("color2"),c("dash")]),LINESPARKLINE:b("This function returns a data set used for representing a line sparkline",[c("data"),c("dataOrientation"),c("dateAxisData"),c("dateAxisOrientation"),c("setting")]),COLUMNSPARKLINE:b("This function returns a data set used for representing a column sparkline",[c("data"),c("dataOrientation"),c("dateAxisData"),c("dateAxisOrientation"),c("setting")]),WINLOSSSPARKLINE:b("This function returns a data set used for representing a win/loss sparkline",[c("data"),c("dataOrientation"),c("dateAxisData"),c("dateAxisOrientation"),c("setting")]),BULLETSPARKLINE:b("This function returns a data set used for representing a bullet sparkline",[c("measure"),c("target"),c("maxi"),c("good"),c("bad"),c("forecast"),c("tickunit"),c("colorScheme"),c("vertical")]),SPREADSPARKLINE:b("This function returns a data set used for representing a spread sparkline",[c("points"),c("showAverage"),c("scaleStart"),c("scaleEnd"),c("style"),c("colorScheme"),c("vertical")]),STACKEDSPARKLINE:b("This function returns a data set used for representing a stacked sparkline",[c("points"),c("colorRange"),c("labelRange"),c("maximum"),c("targetRed"),c("targetGreen"),c("targetBlue"),c("tragetYellow"),c("color"),c("highlightPosition"),c("vertical"),c("textOrientation"),c("textSize")]),BOXPLOTSPARKLINE:b("This function returns a data set used for representing a boxplot sparkline",[c("points"),c("boxPlotClass"),c("showAverage"),c("scaleStart"),c("scaleEnd"),c("acceptableStart"),c("acceptableEnd"),c("colorScheme"),c("style"),c("vertical")]),CASCADESPARKLINE:b("This function returns a data set used for representing a cascade sparkline",[c("pointsRange"),c("pointIndex"),c("labelsRange"),c("minimum"),c("maximum"),c("colorPositive"),c("colorNegative"),c("vertical")]),PARETOSPARKLINE:b("This function returns a data set used for representing a pareto sparkline",[c("points"),c("pointIndex"),c("colorRange"),c("target"),c("target2"),c("highlightPosition"),c("label"),c("vertical")]),MONTHSPARKLINE:b("This function returns a data set used for representing a month sparkline",[c("year"),c("month"),c("dataRange"),c("emptyColor"),c("startColor"),c("middleColor"),c("endColor")]),YEARSPARKLINE:b("This function returns a data set used for representing a year sparkline",[c("year"),c("dataRange"),c("emptyColor"),c("startColor"),c("middleColor"),c("endColor")]),"CEILING.PRECISE":b("This function rounds a number up to the nearest integer or to the nearest multiple of a specified value.",[c("number"),c("signif")]),"COVARIANCE.S":b("This function returns the sample covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[c("array1"),c("array2")]),"FLOOR.PRECISE":b("This function rounds a number down to the nearest integer or to the nearest multiple of a specified value.",[c("number"),c("signif")]),"PERCENTILE.EXC":b("This function returns the nth percentile of values in a range.",[c("array"),c("n")]),"QUARTILE.EXC":b("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[c("array"),c("quart")]),"RANK.AVG":b("This function returns the rank of a number in a set of numbers. If some values have the same rank, it will return the average rank.",[c("number"),c("array"),c("order")]),"MODE.MULT":b("This function returns the most frequently occurring vertical array or the most frequently occurring value in a set of data.",[c("number1"),c("number2",!0)]),"STDEV.P":b("This function returns the standard deviation for an entire specified population (of numeric values).",[c("value1"),c("value2",!0)]),"VAR.P":b("This function returns variance based on the entire population, which uses only numeric values.",[c("value1"),c("value2",!0)]),"COVARIANCE.P":b("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[c("array1"),c("array2")]),"MODE.SNGL":b("This function returns the most frequently occurring value in a set of data.",[c("value1"),c("value2",!0)]),"PERCENTILE.INC":b("This function returns the nth percentile of values in a range.",[c("array"),c("n")]),"QUARTILE.INC":b("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[c("array"),c("quart")]),"RANK.EQ":b("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.",[c("number"),c("array"),c("order")]),STDEV:b("This function returns standard deviation is estimated based on a sample.",[c("number1"),c("number2",!0)]),"STDEV.S":b("This function returns standard deviation is estimated based on a sample.",[c("number1"),c("number2",!0)]),"VAR.S":b("This function returns the variance based on a sample of a population, which uses only numeric values.",[c("value1"),c("value2",!0)]),"BETA.INV":b("This function calculates the inverse of the cumulative beta distribution function.",[c("prob"),c("alpha"),c("beta"),c("lower"),c("upper")]),"BINOM.DIST":b("This function calculates the individual term binomial distribution probability.",[c("x"),c("n"),c("p"),c("cumulative")]),"BINOM.INV":b("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.",[c("n"),c("p"),c("alpha")]),"CHISQ.DIST.RT":b("This function calculates the one-tailed probability of the chi-squared distribution.",[c("value"),c("deg")]),"CHISQ.INV.RT":b("This function calculates the inverse of the one-tailed probability of the chi-squared distribution.",[c("prob"),c("deg")]),"CHISQ.TEST":b("This function calculates the test for independence from the chi-squared distribution.",[c("obs_array"),c("exp_array")]),"CONFIDENCE.NORM":b("This function returns confidence interval for a population mean.",[c("alpha"),c("stdev"),c("size")]),"EXPON.DIST":b("This function returns the exponential distribution or the probability density.",[c("value"),c("lambda"),c("cumulative")]),"F.DIST.RT":b("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.",[c("value"),c("degnum"),c("degden")]),"F.INV.RT":b("This function returns the inverse of the F probability distribution.",[c("p"),c("degnum"),c("degden")]),"F.TEST":b("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.",[c("array1"),c("array2")]),"GAMMA.DIST":b("This function returns the gamma distribution.",[c("x"),c("alpha"),c("beta"),c("cumulative")]),"GAMMA.INV":b("This function returns the inverse of the gamma cumulative distribution.",[c("p"),c("alpha"),c("beta")]),"LOGNORM.INV":b("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.",[c("prob"),c("mean"),c("stdev")]),"NORM.DIST":b("This function returns the normal cumulative distribution for the specified mean and standard deviation.",[c("x"),c("mean"),c("stdev"),c("cumulative")]),"NORM.INV":b("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.",[c("prob"),c("mean"),c("stdev")]),"NORM.S.INV":b("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.",[c("prob")]),"PERCENTRANK.INC":b("This function returns the rank of a value in a data set as a percentage of the data set.",[c("array"),c("n"),c("signif")]),"POISSON.DIST":b("This function returns the Poisson distribution.",[c("nevents"),c("mean"),c("cumulative")]),"T.INV.2T":b("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.",[c("prog"),c("deg")]),"T.TEST":b("This function returns the probability associated with a t-test.",[c("array1"),c("array2"),c("tails"),c("type")]),"WEIBULL.DIST":b("This function returns the two-parameter Weibull distribution, often used in reliability analysis.",[c("x"),c("alpha"),c("beta"),c("cumulative")]),"Z.TEST":b("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.",[c("array"),c("x"),c("sigma")]),"T.DIST.RT":b("This function returns the right-tailed t-distribution.",[c("x"),c("deg")]),"T.DIST.2T":b("This function returns the two-tailed t-distribution.",[c("x"),c("deg")]),"ISO.CEILING":b("This function returns a number up to the nearest integer or to the nearest multiple of significance, regardless of sign of significance.",[c("number"),c("signif")]),"BETA.DIST":b("This function returns the beta distribution.",[c("x"),c("alpha"),c("beta"),c("cumulative"),c("lower"),c("upper")]),"GAMMALN.PRECISE":b("This function returns the natural logarithm of the gamma function.",[c("value")]),"ERF.PRECISE":b("This function returns the error function.",[c("lowerlimit")]),"ERFC.PRECISE":b("This function returns the complementary ERF function.",[c("lowerlimit")]),"PERCENTRANK.EXC":b("This function returns the percentage rank(0..1, exclusive) of a value in a data set.",[c("array"),c("n"),c("signif")]),"HYPGEOM.DIST":b("This function returns the hypergeometric distribution.",[c("x"),c("n"),c("M"),c("N"),c("cumulative")]),"LOGNORM.DIST":b("This function returns the log normal distribution of x.",[c("x"),c("mean"),c("stdev"),c("cumulative")]),"NEGBINOM.DIST":b("This function returns the negative binomial distribution.",[c("x"),c("r"),c("p"),c("cumulative")]),"NORM.S.DIST":b("This function returns the standard normal distribution.",[c("z"),c("cumulative")]),"T.DIST":b("This function returns the t-distribution.",[c("x"),c("deg"),c("cumulative")]),"F.DIST":b("This function returns the F probability distribution.",[c("x"),c("degnum"),c("degden"),c("cumulative")]),"CHISQ.DIST":b("This function returns the chi-squared distribution.",[c("x"),c("deg"),c("cumulative")]),"F.INV":b("This function returns the inverse of the F probability distribution.",[c("probability"),c("degnum"),c("degden")]),"T.INV":b("This function returns the left-tailed inverse of the t-distribution.",[c("probability"),c("deg")]),"CHISQ.INV":b("This function returns the inverse of left-tailed probability of the chi-squared distribution.",[c("probability"),c("deg")]),"CONFIDENCE.T":b("This function returns the confidence interval for a Student's t distribution.",[c("alpha"),c("stdev"),c("size")]),"NETWORKDAYS.INTL":b("This function returns the number of workdays between two dates using arguments to indicate holidays and weekend days.",[c("startdate"),c("enddate"),c("weekend"),c("holidays")]),"WORKDAY.INTL":b("This function returns the serial number of the date before or after a number of workdays with custom weekend parameters. These parameters indicate weekend days and holidays.",[c("startdate"),c("numdays"),c("weekend"),c("holidays")]),REFRESH:b("This function decides how to re-calculate the formula. Can use the evaluateMode argument to specific the formula re-calculate on the reference value changed, evaluate once , re-calculate or interval.",[c("formula"),c("evaluateMode"),c("interval")]),DAYS:b("This function returns the number of days between two dates.",[c("startdate"),c("enddate")]),ISOWEEKNUM:b("This function returns the number of the ISO week number of the year for a given date.",[c("date")]),BITAND:b('This function returns a bitwise "AND" of two numbers.',[c("number1"),c("number2")]),BITLSHIFT:b('This function returns a bitwise "OR" of two numbers.',[c("number1"),c("number2")]),BITOR:b('This function returns a bitwise "OR" of two numbers.',[c("number1"),c("number2")]),BITRSHIFT:b('This function returns a bitwise "OR" of two numbers.',[c("number1"),c("number2")]),BITXOR:b('This function returns a bitwise "XOR" of two numbers.',[c("number1"),c("number2")]),IMCOSH:b("This function returns the hyperbolic cosine of a complex number in x+yi or x+yj text format.",[c("complexnum")]),IMCOT:b("This function returns the cotangent of a complex number in x+yi or x+yj text format.",[c("complexnum")]),IMCSC:b("This function returns the cosecant of a complex number in x+yi or x+yj text format.",[c("complexnum")]),IMCSCH:b("This function returns the hyperbolic cosecant of a complex number in x+yi or x+yj text format.",[c("complexnum")]),IMSEC:b("This function returns the secant of a complex number in x+yi of x+yj text format.",[c("complexnum")]),IMSECH:b("This function returns the hyperbolic secant of a complex number in x+yi or x+yj text format.",[c("complexnum")]),IMSINH:b("This function returns the hyperbolic sine of a complex number in x+yi of x+yj text format.",[c("complexnum")]),IMTAN:b("This function returns the tangent of a complex number in x+yi or x+yj text format.",[c("complexnum")]),PDURATION:b("This function returns the number of periods required by an investment to reach a specified value.",[c("rate"),c("pval"),c("fval")]),RRI:b("This function returns an equivalent interest rate for the growth of an investment.",[c("nper"),c("pval"),c("fval")]),ISFORMULA:b("This function tests whether contains a formula of a referenced cell.",[c("cellreference")]),IFNA:b("This function returns the value you specify if the formula returns the #N/A error value, otherwise returns the result of the formula.",[c("value"),c("value_if_na")]),IFS:b("This function checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition.",[c("valueTest"),c("valueTrue"),c("....")]),SWITCH:b("This function evaluates one value for a list of values, and returns the result corresponding to the first matching value, otherwise returns the default value",[c("convertvalue"),c("matchvalue"),c("matchtrue"),c("matchfalse")]),XOR:b("This function returns a logical exclusive or of all arguments.",[c("logical"),c("....")]),AREAS:b("This function returns the number of areas in a reference.",[c("reference")]),FORMULATEXT:b("This function returns a formula as a string.",[c("reference")]),HYPERLINK:b("This function creates a shortcut or jump that opens a document stored on a network server, an intranet, or the Internet.",[c("link_location"),c("friendly_name")]),ACOT:b("This function calculates the inverse arccotangent of a number.",[c("value")]),ACOTH:b("This function calculates the inverse hyperbolic arccotangent of a number.",[c("value")]),ARABIC:b("This function converts a Roman numeral text to an Arabic numeral equivalent.",[c("text")]),BASE:b("This function converts a number into a text representation with the given radix (base).",[c("number"),c("radix"),c("minLength")]),"CEILING.MATH":b("This function round a number up to the nearest integer or to the nearest multiple of significance.",[c("value"),c("signif"),c("mode")]),COMBINA:b("This function calculates the number of possible combinations with repetitions for a specified number of items.",[c("number"),c("number_choosen")]),COT:b("This function returns the cotangent of the specified angle.",[c("angle")]),COTH:b("This function returns the hyperbolic cotangent of the specified number.",[c("value")]),CSC:b("This function returns the cosecant of the specified angle.",[c("angle")]),CSCH:b("This function returns the hyperbolic cosecant of the specified number.",[c("value")]),DECIMAL:b("This function converts a text representation of a number in a given base into a decimal number.",[c("text"),c("radix")]),"FLOOR.MATH":b("This function round a number down to the nearest integer or to the nearest multiple of significance.",[c("value"),c("signif"),c("mode")]),SEC:b("This function returns the secant of the specified angle.",[c("angle")]),SECH:b("This function returns the hyperbolic secant of the specified value.",[c("value")]),"BINOM.DIST.RANGE":b("This function calculates the probability of a trial result using a binomial distribution.",[c("x"),c("n"),c("p"),c("cumulative")]),GAMMA:b("This function returns the gamma function value.",[c("number")]),MAXIFS:b("This function returns the maximum value among cells specified by a given set of conditions or criteria.",[c("array"),c("conditionarray"),c("condition",!0)]),GAUSS:b("This function calculates the probability that a member of a standard normal population will fall between the mean and z standard deviations from the mean.",[c("number")]),MINIFS:b("This function returns the minimum value among cells specified by a given set of conditions or criteria.",[c("array"),c("conditionarray"),c("condition",!0)]),PERMUTATIONA:b("This function returns the number of permutations for a given number of object that can be selected from the total objects.",[c("k"),c("n")]),PHI:b("This function returns the value of the density function for a standard normal distribution.",[c("value")]),"SKEW.P":b("This function returns the skewness of a distribution base on a poopulation: a characterization of the degree of asymmetry of a distribution around its mean.",[c("number1"),c("number2",!0)]),BAHTTEXT:b('This function converts a number to Thai text and adds a suffix of "Baht"',[c("number")]),CONCAT:b('This function combines multiple text strings or numbers into one text string, the function will stay available for compatibility with "CONCATENATE" function.',[c("text1"),c("text2"),c("....")]),FINDB:b("This function finds one text value within another and returns the text value\ufffds position in the text you searched, and counts each double-byte characte as 2 when set DBCS as the default language.",[c("findtext"),c("intext"),c("start")]),LEFTB:b("This function returns the specified leftmost characters from a text value, and based on the number of bytes you specify.",[c("mytext"),c("num_bytes")]),LENB:b("This function returns the length of the number of bytes in a text string.",[c("value")]),MIDB:b("This function returns the requested number of characters from a text string starting at the position you specify, and based on the number of bytes you specify.",[c("text"),c("start_num"),c("num_bytes")]),REPLACEB:b("This function replaces part of a text string with a different text string, based on the number of bytes you specify.",[c("old_text"),c("start_byte"),c("num_bytes"),c("new_text")]),RIGHTB:b("This function returns the specified rightmost characters from a text value, and based on the number of bytes you specify.",[c("text"),c("num_bytes")]),SEARCHB:b("This function finds one text string in another text string and returns the index of the starting position of the found text, and counts each double-byte characte as 2 when set DBCS as the default language.",[c("string1"),c("string2")]),TEXTJOIN:b("This function combines multiple ranges and/or strings into one text, and the text includes a delimiter you specify between each text value.",[c("delimiter"),c("ignore_empty"),c("text1"),c("text2"),c("....")]),UNICHAR:b("This function returns the Unicode character of a given numeric reference.",[c("number")]),UNICODE:b("This function returns the number corresponding to the first character of the text.",[c("text")]),ENCODEURL:b("This function returns a URL-encoded string.",[c("text")])}}}()}]);