}var_l=96,xl=_l;functionAl(e){returne*96/xl}functionRl(e){returne*xl/96}varFl={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};functionIl(e,r,t,a){r.Borders=[];varn={};vari=false;(e[0].match(De)||[]).forEach(function(e){vart=Ne(e);switch(Le(t[0])){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp)n.diagonalUp=Je(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Je(t.diagonalDown);r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":;case"<vertical>":;case"<vertical/>":break;case"</vertical>":break;case"<start":;case"<start>":;case"<start/>":break;case"</start>":break;case"<end":;case"<end>":;case"<end/>":break;case"</end>":break;case"<color":;case"<color>":break;case"<color/>":;case"</color>":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":i=true;break;case"</ext>":i=false;break;default:if(a&&a.WTF){if(!i)thrownewError("unrecognized "+t[0]+" in borders")};}})}functionDl(e,r,t,a){r.Fills=[];varn={};vari=false;(e[0].match(De)||[]).forEach(function(e){vart=Ne(e);switch(Le(t[0])){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":;case"<fill/>":n={};r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":;case"</gradientFill>":r.Fills.push(n);n={};break;case"<patternFill":;case"<patternFill>":if(t.patternType)n.patternType=t.patternType;break;case"<patternFill/>":;case"</patternFill>":break;case"<bgColor":if(!n.bgColor)n.bgColor={};if(t.indexed)n.bgColor.indexed=parseInt(t.indexed,10);if(t.theme)n.bgColor.theme=parseInt(t.theme,10);if(t.tint)n.bgColor.tint=parseFloat(t.tint);if(t.rgb)n.bgColor.rgb=t.rgb.slice(-6);break;case"<bgColor/>":;case"</bgColor>":break;case"<fgColor":if(!n.fgColor)n.fgColor={};if(t.theme)n.fgColor.theme=parseInt(t.theme,10);if(t.tint)n.fgColor.tint=parseFloat(t.tint);if(t.rgb!=null)n.fgColor.rgb=t.rgb.slice(-6);break;case"<fgColor/>":;case"</fgColor>":break;case"<stop":;case"<stop/>":break;case"</stop>":break;case"<color":;case"<color/>":break;case"</color>":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":i=true;break;case"</ext>":i=false;break;default:if(a&&a.WTF){if(!i)thrownewError("unrecognized "+t[0]+" in fills")};}})}functionPl(e,r,t,a){r.Fonts=[];varn={};vars=false;(e[0].match(De)||[]).forEach(function(e){varf=Ne(e);switch(Le(f[0])){case"<fonts":;case"<fonts>":;case"</fonts>":break;case"<font":;case"<font>":break;case"</font>":;case"<font/>":r.Fonts.push(n);n={};break;case"<name":if(f.val)n.name=qe(f.val);break;case"<name/>":;case"</name>":break;case"<b":n.bold=f.val?Je(f.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=f.val?Je(f.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(f.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break;}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=f.val?Je(f.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=f.val?Je(f.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=f.val?Je(f.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=f.val?Je(f.val):1;break;case"<condense/>
author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};varf=wt(i.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;varl=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);varo=!!l&&!!l[1]&&Rf(l[1])||{r:"",t:"",h:""};s.r=o.r;if(o.r=="<t></t>")o.t=o.h="";s.t=(o.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=o.h;a.push(s)});returna}var$o=ur("comments",null,{xmlns:vr.main[0]});functionKo(e){varr=[Fe,$o];vart=[];r.push("<authors>");e.forEach(function(e){e[1].forEach(function(e){vara=Xe(e.a);if(t.indexOf(a)>-1)return;t.push(a);r.push("<author>"+a+"</author>")})});r.push("</authors>");r.push("<commentList>");e.forEach(function(e){e[1].forEach(function(a){r.push('<comment ref="'+e[0]+'" authorId="'+t.indexOf(Xe(a.a))+'"><text>');r.push(or("t",a.t==null?"":Xe(a.t)));r.push("</text></comment>")})});r.push("</commentList>");if(r.length>2){r[r.length]="</comments>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionYo(e){varr={};r.iauthor=e._R(4);vart=Zt(e,16);r.rfx=t.s;r.ref=kt(t.s);e.l+=16;returnr}functionJo(e,r){if(r==null)r=et(36);r._W(4,e[1].iauthor);ea(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varqo=Rt;functionQo(e){returnFt(e.slice(0,54))}functionZo(e,r){vart=[];vara=[];varn={};vari=false;rt(e,functions(e,f,l){switch(l){case632:a.push(e);break;case635:n=e;break;case637:n.t=e.t;n.h=e.h;n.r=e.r;break;case636:n.author=a[n.iauthor];deleten.iauthor;if(r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";deleten.rfx;t.push(n);break;case3072:break;case35:i=true;break;case36:i=false;break;case37:break;case38:break;default:if((f||"").indexOf("Begin")>0){}elseif((f||"").indexOf("End")>0){}elseif(!i||r.WTF)thrownewError("Unexpected record "+l+" "+f);}});returnt}functionec(e){varr=tt();vart=[];at(r,"BrtBeginComments");at(r,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));at(r,"BrtCommentAuthor",Qo(e.a))})});at(r,"BrtEndCommentAuthors");at(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);varn={s:wt(e[0]),e:wt(e[0])};at(r,"BrtBeginComment",Jo([n,a]));if(a.t&&a.t.length>0)at(r,"BrtCommentText",Lt(a));at(r,"BrtEndComment");deletea.iauthor})});at(r,"BrtEndCommentList");at(r,"BrtEndComments");returnr.end()}varrc="application/vnd.ms-office.vbaProject";functiontc(e){varr=X.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;varn=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");X.utils.cfb_add(r,n,e.FileIndex[a].content)});returnX.write(r)}functionac(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;varn=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")X.utils.cfb_add(e,n,r.FileIndex[a].content)})}varnc=["xlsb","xlsm","xlam","biff8","xla"];Va.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";Va.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";functionic(){return{"!type":"dialog"}}functionsc(){return{"!type":"dialog"}}functionfc(){return{"!type":"macro"}}functionlc(){return{"!type":"macro"}}varoc=function(){vare=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;varr={r:0,c:0};functiont(e,t,a,n){vari=false,s=false;if(a.length==0)s=true;elseif(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;elseif(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}varf=a.length>0?parseInt(a,10)|0:0,l=n.length>0?parseInt(n,10)|0:0;if(i)l+=r.c;else--l;if(s)f+=r.r;else--f;returnt+(i?"":"$")+pt(l)+(s?"":"$")+ut(f)}returnfunctiona(n,i){r=i;returnn.replace(e,t)}}();varcc=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g;varuc=function(){returnfunctione(r,t){returnr.replace(cc,function(e,r,a,n,i,s){varf=vt(n)-(a?0:t.c);varl=ct(s)-(i?0:t.r);varo=l==0?"":!i?"["+l+"]":l+1;varc=f==0?"":!a?"["+f+"]":f
}functionhm(e,r,t,a){varn=Array.isArray(r);vari=Bt(r["!ref"]||"A1"),s,f="",l=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)thrownewError("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255);i.e.r=Math.min(i.e.c,16383);s=St(i)}for(varo=i.s.r;o<=i.e.r;++o){f=ut(o);for(varc=i.s.c;c<=i.e.c;++c){if(o===i.s.r)l[c]=pt(c);s=l[c]+f;varu=n?(r[o]||[])[c]:r[s];if(!u)continue;um(e,u,o,c,a)}}}functiondm(e,r){vart=r||{};if(m!=null&&t.dense==null)t.dense=m;vara=tt();varn=0;for(vari=0;i<e.SheetNames.length;++i)if(e.SheetNames[i]==t.sheet)n=i;if(n==0&&!!t.sheet&&e.SheetNames[0]!=t.sheet)thrownewError("Sheet not found: "+t.sheet);sm(a,t.biff==4?1033:t.biff==3?521:9,Li(e,16,t));hm(a,e.Sheets[e.SheetNames[n]],n,t,e);sm(a,10);returna.end()}functionvm(e,r,t){sm(e,"Font",as({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functionpm(e,r,t){if(!r)return;[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(varn=a[0];n<=a[1];++n)if(r[n]!=null)sm(e,"Format",os(n,r[n],t))})}functionmm(e,r){vart=et(19);t._W(4,2151);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,1);t._W(4,0);sm(e,"FeatHdr",t);t=et(39);t._W(4,2152);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,0);t._W(4,0);t._W(2,1);t._W(4,4);t._W(2,0);_i(Bt(r["!ref"]||"A1"),t);t._W(4,4);sm(e,"Feat",t)}functionbm(e,r){for(vart=0;t<16;++t)sm(e,"XF",gs({numFmtId:0,style:true},0,r));r.cellXfs.forEach(function(t){sm(e,"XF",gs(t,0,r))})}functiongm(e,r){for(vart=0;t<r["!links"].length;++t){vara=r["!links"][t];sm(e,"HLink",zs(a));if(a[1].Tooltip)sm(e,"HLinkTooltip",$s(a))}deleter["!links"]}functionwm(e,r,t){if(!r)return;vara=0;r.forEach(function(r,t){if(++a<=256&&r){sm(e,"ColInfo",ef(mh(t,r),t))}})}functionkm(e,r,t,a,n){vari=16+gh(n.cellXfs,r,n);if(r.v==null&&!r.bf){sm(e,"Blank",ki(t,a,i));return}if(r.bf)sm(e,"Formula",Zu(r,t,a,n,i));elseswitch(r.t){case"d":;case"n":vars=r.t=="d"?re(oe(r.v)):r.v;sm(e,"Number",Cs(t,a,s,i,n));break;case"b":;case"e":sm(e,517,Ss(t,a,r.v,i,n,r.t));break;case"s":;case"str":if(n.bookSST){varf=ph(n.Strings,r.v,n.revStrings);sm(e,"LabelSst",is(t,a,f,i,n))}elsesm(e,"Label",fs(t,a,(r.v||"").slice(0,255),i,n));break;default:sm(e,"Blank",ki(t,a,i));}}functionEm(e,r,t){vara=tt();varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=(t||{}).Workbook||{};varf=(s.Sheets||[])[e]||{};varl=Array.isArray(i);varo=r.biff==8;varc,u="",h=[];vard=Bt(i["!ref"]||"A1");varv=o?65536:16384;if(d.e.c>255||d.e.r>=v){if(r.WTF)thrownewError("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.c,v-1)}sm(a,2057,Li(t,16,r));sm(a,"CalcMode",Qn(1));sm(a,"CalcCount",Qn(100));sm(a,"CalcRefMode",Jn(true));sm(a,"CalcIter",Jn(false));sm(a,"CalcDelta",ta(.001));sm(a,"CalcSaveRecalc",Jn(true));sm(a,"PrintRowCol",Jn(false));sm(a,"PrintGrid",Jn(false));sm(a,"GridSet",Qn(1));sm(a,"Guts",ks([0,0]));sm(a,"HCenter",Jn(false));sm(a,"VCenter",Jn(false));if(o)wm(a,i["!cols"],i);sm(a,512,hs(d,r));if(o)i["!links"]=[];for(varp=d.s.r;p<=d.e.r;++p){u=ut(p);for(varm=d.s.c;m<=d.e.c;++m){if(p===d.s.r)h[m]=pt(m);c=h[m]+u;varb=l?(i[p]||[])[m]:i[c];if(!b)continue;km(a,b,p,m,r);if(o&&b.l)i["!links"].push([c,b.l])}}varg=f.CodeName||f.name||n;if(o)sm(a,"Window2",es((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)sm(a,"MergeCells",Us(i["!merges"]));if(o)gm(a,i);sm(a,"CodeName",li(g,r));if(o)mm(a,i);sm(a,"EOF");returna.end()}functionSm(e,r,t){vara=tt();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varf=t.biff==8,l=t.biff==5;sm(a,2057,Li(e,5,t));if(t.bookType=="xla")sm(a,"Addin");sm(a,"InterfaceHdr",f?Qn(1200):null);sm(a,"Mms",$n(2));if(l)sm(a,"ToolbarHdr");if(l)sm(a,"ToolbarEnd");sm(a,"InterfaceEnd");sm(a,"WriteAccess",Wi("SheetJS",t));sm(a,"CodePage",Qn(f?1200:1252));if(f)sm(a,"DSF",Qn(0));if(f)sm(a,"Excel9File");sm(a,"RRTabId",af(e.SheetNames.length));if(f&&e.vbaraw)sm(a,"ObProj");if(f&&e.vbaraw){varo=s.CodeName||"ThisWorkbook";sm(a,"CodeName",li(o,t))}sm(a,"BuiltInFnGroupCount",Qn(17));sm(a,"WinProtect",Jn(false));sm(a,"Protect",Jn(false));sm(a,"Password",Qn(0));if(f)sm(a,"Prot4Rev",Jn(false)
};varu=function(e){varr=e.reduce(function(e,r){returne+r.length},0);vart=newUint8Array(r);vara=0;e.forEach(function(e){t.set(e,a);a+=e.length});returnt};varh=function(e){e-=e>>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24};vard=function(e,r){vart=(e[r+15]&127)<<7|e[r+14]>>1;vara=e[r+14]&1;for(varn=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)};functionv(e,r){vart=r?r[0]:0;vara=e[t]&127;e:if(e[t++]>=128){a|=(e[t]&127)<<7;if(e[t++]<128)breake;a|=(e[t]&127)<<14;if(e[t++]<128)breake;a|=(e[t]&127)<<21;if(e[t++]<128)breake;a+=(e[t]&127)*Math.pow(2,28);++t;if(e[t++]<128)breake;a+=(e[t]&127)*Math.pow(2,35);++t;if(e[t++]<128)breake;a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)breake}if(r)r[0]=t;returna}functionp(e){varr=0,t=e[r]&127;e:if(e[r++]>=128){t|=(e[r]&127)<<7;if(e[r++]<128)breake;t|=(e[r]&127)<<14;if(e[r++]<128)breake;t|=(e[r]&127)<<21;if(e[r++]<128)breake;t|=(e[r]&127)<<28}returnt}functionm(e){varr=[],t=[0];while(t[0]<e.length){vara=t[0];varn=v(e,t);vari=n&7;n=Math.floor(n/8);vars=0;varf;if(n==0)break;switch(i){case0:{varl=t[0];while(e[t[0]++]>=128);f=e.slice(l,t[0])}break;case5:s=4;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case1:s=8;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case2:s=v(e,t);f=e.slice(t[0],t[0]+s);t[0]+=s;break;case3:;case4:;default:thrownewError("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}varo={offset:a,data:f,type:i};if(r[n]==null)r[n]=[o];elser[n].push(o)}returnr}functionb(e,r){if(!e)return[];returne.map(function(e){vart;try{returnr(e.data)}catch(a){varn=(t=a.message)==null?void0:t.match(/at offset (\d+)/);if(n)a.message=a.message.replace(/at offset (\d+)/,"at offset "+(+n[1]+e.offset));throwa}})}functiong(e){varr=[];vart=0;while(t<e.length){vara=e[t++];varn=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3;r.push(w(a,e.slice(t,t+n)));t+=n}if(t!==e.length)thrownewError("data is not a valid framed stream!");returnu(r)}functionw(e,r){if(e!=0)thrownewError("Unexpected Snappy chunk type ".concat(e));vart=[0];vara=v(r,t);varn=[];while(t[0]<r.length){vari=r[t[0]]&3;if(i==0){vars=r[t[0]++]>>2;if(s<60)++s;else{varf=s-59;s=r[t[0]];if(f>1)s|=r[t[0]+1]<<8;if(f>2)s|=r[t[0]+2]<<16;if(f>3)s|=r[t[0]+3]<<24;s>>>=0;s++;t[0]+=f}n.push(r.slice(t[0],t[0]+s));t[0]+=s;continue}else{varl=0,o=0;if(i==1){o=(r[t[0]]>>2&7)+4;l=(r[t[0]++]&224)<<3;l|=r[t[0]++]}else{o=(r[t[0]++]>>2)+1;if(i==2){l=r[t[0]]|r[t[0]+1]<<8;t[0]+=2}else{l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0;t[0]+=4}}n=[u(n)];if(l==0)thrownewError("Invalid offset 0");if(l>n[0].length)thrownewError("Invalid offset beyond length");if(o>=l){n.push(n[0].slice(-l));o-=l;while(o>=n[n.length-1].length){n.push(n[n.length-1]);o-=n[n.length-1].length}}n.push(n[0].slice(-l,-l+o))}}varc=u(n);if(c.length!=a)thrownewError("Unexpected length: ".concat(c.length," != ").concat(a));returnc}functionk(e){varr=[],t=[0];while(t[0]<e.length){vara=v(e,t);varn=m(e.slice(t[0],t[0]+a));t[0]+=a;vari={id:p(n[1][0].data),messages:[]};n[2].forEach(function(r){vara=m(r.data);varn=p(a[3][0].data);i.messages.push({meta:a,data:e.slice(t[0],t[0]+n)});t[0]+=n});r.push(i)}returnr}functionE(e,r,t){vara=o(e);varn=e[e[0]==4?1:2];vari=a.getUint32(4,true);vars=12+h(i&3470)*4;varf=-1,l=-1,c=NaN,u=newDate(2001,0,1);if(i&512){f=a.getUint32(s,true);s+=4}s+=h(i&12288)*4;if(i&16){l=a.getUint32(s,true);s+=4}if(i&32){c=a.getFloat64(s,true);s+=8}if(i&64){u.setTime(u.getTime()+a.getFloat64(s,true)*1e3);s+=8}vard;switch(n){case0:break;case2:d={t:"n",v:c};break;case3:d={t:"s",v:r[l]};break;case5:d={t:"d",v:u};break;case6:d={t:"b",v:c>0};break;case7:d={t:"n",v:c};break;case8:d={t:"e",v:0};break;case9:{if(f>-1)d={t:"s",v:t[f]};elseif(l>-1)d={t:"s",v:r[l]};elseif(!isNaN(c))d={t:"n",v:c};elsethrownewError("Unsupported cell type ".concat(e.slice(0,4)))}break;default:thrownewError("Unsupported cell type ".concat(e.slice(0,4)));}returnd}functionS(e,r,t){vara=o(e);varn=e[1];vari=a.getUint32(8,true);vars=12;varf=-1,l=-1,c=NaN,u=NaN,h=ne
c=Pb(e,n,p,u,s,l,i,a);if(c==null){continue}if(a.strip)c=c.replace(o,"");t.push(c+f)}deletea.dense;returnt.join("")}functionNb(e,r){if(!r)r={};r.FS="\t";r.RS="\n";vart=Ob(e,r);if(typeofcptable=="undefined"||r.type=="string")returnt;vara=cptable.utils.encode(1200,t,"str");returnString.fromCharCode(255)+String.fromCharCode(254)+a}functionLb(e){varr="",t,a="";if(e==null||e["!ref"]==null)return[];varn=Bt(e["!ref"]),i="",s=[],f;varl=[];varo=Array.isArray(e);for(f=n.s.c;f<=n.e.c;++f)s[f]=pt(f);for(varc=n.s.r;c<=n.e.r;++c){i=ut(c);for(f=n.s.c;f<=n.e.c;++f){r=s[f]+i;t=o?(e[c]||[])[f]:e[r];a="";if(t===undefined)continue;elseif(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;elseif(t.t=="z")continue;elseif(t.t=="n"&&t.v!=null)a=""+t.v;elseif(t.t=="b")a=t.v?"TRUE":"FALSE";elseif(t.w!==undefined)a="'"+t.w;elseif(t.v===undefined)continue;elseif(t.t=="s")a="'"+t.v;elsea=""+t.v;l[l.length]=r+"="+a}}returnl}functionMb(e,r,t){vara=t||{};varn=+!a.skipHeader;vari=e||{};vars=0,f=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varl=typeofa.origin=="string"?wt(a.origin):a.origin;s=l.r;f=l.c}}varo;varc={s:{c:0,r:0},e:{c:f,r:s+r.length-1+n}};if(i["!ref"]){varu=Bt(i["!ref"]);c.e.c=Math.max(c.e.c,u.e.c);c.e.r=Math.max(c.e.r,u.e.r);if(s==-1){s=u.e.r+1;c.e.r=s+r.length-1+n}}else{if(s==-1){s=0;c.e.r=r.length-1+n}}varh=a.header||[],d=0;r.forEach(function(e,r){Y(e).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;varl=e[t];varc="z";varu="";varv=kt({c:f+d,r:s+r+n});o=Wb.sheet_get_cell(i,v);if(l&&typeofl==="object"&&!(linstanceofDate)){i[v]=l}else{if(typeofl=="number")c="n";elseif(typeofl=="boolean")c="b";elseif(typeofl=="string")c="s";elseif(linstanceofDate){c="d";if(!a.cellDates){c="n";l=re(l)}u=a.dateNF||P._table[14]}elseif(l===null&&a.nullError){c="e";l=0}if(!o)i[v]=o={t:c,v:l};else{o.t=c;o.v=l;deleteo.w;deleteo.R;if(u)o.z=u}if(u)o.z=u}})});c.e.c=Math.max(c.e.c,f+h.length-1);varv=ut(s);if(n)for(d=0;d<h.length;++d)i[pt(d+f)+v]={t:"s",v:h[d]};i["!ref"]=St(c);returni}functionUb(e,r){returnMb(null,e,r)}varWb={encode_col:pt,encode_row:ut,encode_cell:kt,encode_range:St,decode_col:vt,decode_row:ct,split_cell:gt,decode_cell:wt,decode_range:Et,format_cell:yt,sheet_add_aoa:_t,sheet_add_json:Mb,sheet_add_dom:Tm,aoa_to_sheet:xt,json_to_sheet:Ub,table_to_sheet:_m,table_to_book:xm,sheet_to_csv:Ob,sheet_to_txt:Nb,sheet_to_json:Ib,sheet_to_html:ym.from_sheet,sheet_to_formulae:Lb,sheet_to_row_object_array:Ib};(function(e){e.consts=e.consts||{};functionr(r){r.forEach(function(r){e.consts[r[0]]=r[1]})}functiont(e,r,t){returne[r]!=null?e[r]:e[r]=t}functiona(e,r,t){if(typeofr=="string"){if(Array.isArray(e)){varn=wt(r);if(!e[n.r])e[n.r]=[];returne[n.r][n.c]||(e[n.r][n.c]={t:"z"})}returne[r]||(e[r]={t:"z"})}if(typeofr!="number")returna(e,kt(r));returna(e,kt({r:r,c:t||0}))}e.sheet_get_cell=a;functionn(e,r){if(typeofr=="number"){if(r>=0&&e.SheetNames.length>r)returnr;thrownewError("Cannot find sheet # "+r)}elseif(typeofr=="string"){vart=e.SheetNames.indexOf(r);if(t>-1)returnt;thrownewError("Cannot find sheet name |"+r+"|")}elsethrownewError("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(vara=1;a<=65535;++a,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t||e.SheetNames.length>=65535)thrownewError("Too many worksheets");Nv(t);if(e.SheetNames.indexOf(t)>=0)thrownewError("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);vari=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case0:;case1:;case2:break;default:thrownewError("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;returne};e.cell_set_hyperlink=function(e,r,t){if(!r){deletee.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}ret