e.l+=i;returnn}functionWn(e,r){vart=e._R(2);vara=e._R(2);varn=e._R(2);vari=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}functionHn(e,r){vart=e._R(2);vara=e._R(2);varn=e._R(1);vari=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}varVn=Hn;functionXn(e,r){e.l+=4;vart=e._R(2);vara=e._R(2);varn=e._R(2);e.l+=12;return[a,t,n]}functionGn(e,r){vart={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;returnt}functionzn(e,r){vart={};e.l+=4;e.cf=e._R(2);returnt}functionjn(e,r){e.l+=2;e.l+=e._R(2)}varKn={0:jn,4:jn,5:jn,6:jn,7:zn,8:jn,9:jn,10:jn,11:jn,12:jn,13:Gn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Xn};functionYn(e,r,t){vara=e.l+r;varn=[];while(e.l<a){vari=e._R(2);e.l-=2;try{n.push(Kn[i](e,a-e.l))}catch(s){e.l=a;returnn}}if(e.l!=a)e.l=a;returnn}function$n(e,r){vart={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case1536:;case1280:;case2:;case7:break;default:if(r>6)thrownewError("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);returnt}functionQn(e,r,t){vara=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;default:thrownewError("unsupported BIFF version");}vari=Ar(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}returni}functionJn(e,r){if(r===0)return1200;vart;if((t=e._R(2))!==1200){}return1200}functionZn(e,r,t){if(t.enc){e.l+=r;return""}vara=e.l;varn=Bn(e,0,t);e._R(r+a-e.l);returnn}functionqn(e,r){vart=!r||r.biff==8;vara=Ar(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);returna}functionei(e,r,t){vara=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16}}functionri(e,r,t){vara=e._R(4);varn=e._R(1)&3;vari=e._R(1);switch(i){case0:i="Worksheet";break;case1:i="Macrosheet";break;case2:i="Chartsheet";break;case6:i="VBAModule";break;}vars=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}functionti(e,r){vart=!r||r.biff>=8?2:1;vara=Ar(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");returna.slice(0,a.l)}functionai(e,r){vart=e.l+r;vara=e._R(4);varn=e._R(4);vari=[];for(vars=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;returni}functionni(e,r){vart={};t.dsst=e._R(2);e.l+=r-2;returnt}functionii(e,r){vart={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;vara=e._R(2);e.l+=4;varn=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;returnt}functionsi(e,r){vart=yn(e);if(t.type!=2211)thrownewError("Invalid Future Record "+t.type);vara=e._R(4);returna!==0}functionli(e,r){e._R(2);returne._R(4)}functionci(e,r,t){vara=0;if(!(t&&t.biff==2)){a=e._R(2)}varn=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}vari={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}functionfi(e,r){vart=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);vars=e._R(2),l=e._R(2),c=e._R(2);varf=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:c,Selected:f,TabRatio:o}}functionoi(e){varr=Ar(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);returnr}functionui(e,r,t){vara={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case2:break;case3:;case4:e.l+=2;break;default:e.l+=10;break;}a.name=En(e,0,t);returna}functionhi(e,r){vart=_n(e);t.isst=e._R(4);returnt}functiondi(e,r,t){vara=e.l+r;varn=_n(e,6);if(t.biff==2)e.l++;vari=Bn(e,a-e.l,t);n.val=i;returnn}functionvi(e,r,t,a){varn=!a||a.biff==8;vari=Ar(6+2++n+(1+n)*t.length);Pn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");returni}functionbi(e,r,t){vara=e._R(2);varn=wn(e,0,t);return[a,n]}varpi=wn;functionmi(e,r,t){vara=e.l+r;varn=t.biff==8||!t.biff?4:2;vari=e._R(n),s=e._R(n);varl=e._R(2),c=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:c}}}functiongi(e,r){vart=r.biff==8||!r.biff?4:2;vara
},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},255:{n:"",f:Ir}};varB={0:{n:"BOF"},1:{n:"EOF"},3:{n:"??"},4:{n:"??"},5:{n:"??"},6:{n:"??"},7:{n:"??"},9:{n:"??"},10:{n:"??"},11:{n:"??"},12:{n:"??"},14:{n:"??"},15:{n:"??"},16:{n:"??"},17:{n:"??"},18:{n:"??"},19:{n:"??"},21:{n:"??"},22:{n:"LABEL16",f:u},23:{n:"NUMBER17",f:v},24:{n:"NUMBER18",f:d},25:{n:"FORMULA19",f:p},26:{n:"??"},27:{n:"??"},28:{n:"??"},29:{n:"??"},30:{n:"??"},31:{n:"??"},33:{n:"??"},37:{n:"NUMBER25",f:m},39:{n:"NUMBER27",f:g},40:{n:"FORMULA28",f:S},255:{n:"",f:Ir}};return{to_workbook:r}}();varIs={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};varxs=functionBp(){vare=De("t"),r=De("rPr"),t=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/,n=/\r\n/g;vari=functionl(e,r,t){vara={},n=65001,i="";vars=e.match(ce),l=0;if(s)for(;l!=s.length;++l){varc=ue(s[l]);switch(c[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!c.val)break;case"<shadow>":;case"<shadow/>":a.shadow=1;break;case"</shadow>":break;case"<charset":if(c.val=="1")break;n=Is[parseInt(c.val,10)];break;case"<outline":if(!c.val)break;case"<outline>":;case"<outline/>":a.outline=1;break;case"</outline>":break;case"<rFont":a.name=c.val;break;case"<sz":a.sz=c.val;break;case"<strike":if(!c.val)break;case"<strike>":;case"<strike/>":a.strike=1;break;case"</strike>":break;case"<u":if(!c.val)break;switch(c.val){case"double":a.uval="double";break;case"singleAccounting":a.uval="single-accounting";break;case"doubleAccounting":a.uval="double-accounting";break;};case"<u>":;case"<u/>":a.u=1;break;case"</u>":break;case"<b":if(c.val=="0")break;case"<b>":;case"<b/>":a.b=1;break;case"</b>":break;case"<i":if(c.val=="0")break;case"<i>":;case"<i/>":a.i=1;break;case"</i>":break;case"<color":if(c.rgb)a.color=c.rgb.substr(2,6);break;case"<family":a.family=c.val;break;case"<vertAlign":i=c.val;break;case"<scheme":break;default:if(c[0].charCodeAt(1)!==47)throw"Unrecognized rich format "+c[0];}}varf=[];if(a.u)f.push("text-decoration: underline;");if(a.uval)f.push("text-underline-style:"+a.uval+";");if(a.sz)f.push("font-size:"+a.sz+";");if(a.outline)f.push("text-effect: outline;");if(a.shadow)f.push("text-shadow: auto;");r.push('<span style="'+f.join("")+'">');if(a.b){r.push("<b>");t.push("</b>")}if(a.i){r.push("<i>");t.push("</i>")}if(a.strike){r.push("<s>");t.push("</s>")}if(i=="superscript")i="sup";elseif(i=="subscript")i="sub";if(i!=""){r.push("<"+i+">");t.push("</"+i+">")}t.push("</span>");returnn};functions(t){vara=[[],"",[]];vars=t.match(e),l=65001;if(!x(s))return"";a[1]=s[1];varc=t.match(r);if(x(c))l=i(c[1],a[0],a[2]);returna[0].join("")+a[1].replace(n,"<br/>")+a[2].join("")}returnfunctionc(e){returne.replace(t,"").split(a).map(s).join("")}}();varRs=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,As=/<(?:\w+:)?r>/;varDs=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;functionFs(e,r){vart=r?r.cellHTML:true;vara={};if(!e)returnnull;varn;if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=be(Te(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=Te(e);if(t)a.h=ke(a.t)}elseif(n=e.match(As)){a.r=Te(e);a.t=be(Te((e.replace(Ds,"").match(Rs)||[]).join("").replace(ce,"")));if(t)a.h=xs(a.r)}returna}varOs=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var_s=/<(?:\w+:)?(?:si|sstItem)>/g;varPs=/<\/(?:\w+:)?(?:si|sstItem)>/;functionys(e,r){vart=[],a="";if(!e)returnt;varn=e.match(Os);if(x(n)){a=n[2].replace(_s,"").split(Ps);for(vari=0;i!=a.length;++i){vars=Fs(a[i].trim(),r);if(s!=null)t[t.length]=s}n=ue(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}returnt}ha.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";varNs=/^\s|\s$|[\t\n\r]/;functionMs(e,r){if(!r.bookSST)return"";vart=[se];t[t.length]=Ue("sst",null,{xmlns:Ve.main[0],count:e.Count,uniqueCount:e.Unique});for(vara=0;a!=e.length;++a){if(e[a]==null)continue;varn=e[a];vari="<si>";if(n.r)i+=n.r;else{i+="<t";if(!n.t)n.t="";if(n.t.match(Ns))i+='xml:space="prese
switch(r.type){case"base64":e=b(h.decode(e));break;case"binary":e=b(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Tr(e,0);i={content:e}}vars,l,c;varf;if(t)s=Ov(t);if(r.bookProps&&!r.bookSheets)c={};else{varo=d?"buffer":"array";if(i&&i.content)c=Nv(i.content,r);elseif((f=I.find(e,"PerfectOffice_MAIN"))&&f.content)c=Ts.to_workbook(f.content,(r.type=o,r));elseif((f=I.find(e,"NativeContent_MAIN"))&&f.content)c=Ts.to_workbook(f.content,(r.type=o,r));elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&I.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))c.vbaraw=lf(e)}varu={};if(e.FullPaths)Mv(e,u,r);c.Props=c.Custprops=u;if(r.bookFiles)c.cfb=e;returnc}functionUv(e,r){vart=r||{};vara=I.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:thrownewError("invalid type "+t.bookType+" for XLS CFB");}I.utils.cfb_add(a,n,rb(e,t));if(t.biff==8&&e.vbaraw)cf(a,I.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varWv={0:{n:"BrtRowHdr",f:ch},1:{n:"BrtCellBlank",f:ph},2:{n:"BrtCellRk",f:Th},3:{n:"BrtCellError",f:Sh},4:{n:"BrtCellBool",f:gh},5:{n:"BrtCellReal",f:wh},6:{n:"BrtCellSt",f:xh},7:{n:"BrtCellIsst",f:kh},8:{n:"BrtFmlaString",f:Oh},9:{n:"BrtFmlaNum",f:Fh},10:{n:"BrtFmlaBool",f:Ah},11:{n:"BrtFmlaError",f:Dh},16:{n:"BrtFRTArchID$",f:_d},19:{n:"BrtSSTItem",f:ot},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Pd},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:Ql},44:{n:"BrtFmt",f:Yl},45:{n:"BrtFill",f:ec},46:{n:"BrtBorder",f:ic},47:{n:"BrtXF",f:tc},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:as},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:Hc},64:{n:"BrtDVal"},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Ir,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView"},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:vh},148:{n:"BrtWsDim",f:uh,p:16},151:{n:"BrtPane"},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:Fd},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Ad},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:Ls},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Rt},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:_h},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBegi
n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};varXv=A(Vv,"n");functionGv(e,r,t,a){varn=+r||+Xv[r];if(isNaN(n))return;vari=a||(t||[]).length||0;vars=e.next(4+i);s._W(2,n);s._W(2,i);if(i>0&&or(t))e.push(t)}functionzv(e,r,t){if(!e)e=Ar(7);e._W(2,r);e._W(2,t);e._W(1,0);e._W(1,0);e._W(1,0);returne}functionjv(e,r,t,a){varn=Ar(9);zv(n,e,r);if(a=="e"){n._W(1,t);n._W(1,1)}else{n._W(1,t?1:0);n._W(1,0)}returnn}functionKv(e,r,t){vara=Ar(8+2*t.length);zv(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");returna.l<a.length?a.slice(0,a.l):a}functionYv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;if(i==(i|0)&&i>=0&&i<65536)Gv(e,2,ps(t,a,i));elseGv(e,3,vs(t,a,i));return;case"b":;case"e":Gv(e,5,jv(t,a,r.v,r.t));return;case"s":;case"str":Gv(e,4,Kv(t,a,r.v));return;}Gv(e,1,zv(null,t,a))}function$v(e,r,t,a,n){vari=Array.isArray(r);vars=et(r["!ref"]||"A1"),l,c="",f=[];for(varo=s.s.r;o<=s.e.r;++o){c=Wr(o);for(varu=s.s.c;u<=s.e.c;++u){if(o===s.s.r)f[u]=Gr(u);l=f[u]+c;varh=i?(r[o]||[])[u]:r[l];if(!h)continue;Yv(e,h,o,u,a)}}}functionQv(e,r){vart=r||{};if(o!=null&&t.dense==null)t.dense=o;vara=Fr();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);Gv(a,9,Qn(e,16,t));$v(a,e.Sheets[e.SheetNames[n]],n,t,e);Gv(a,10);returna.end()}functionJv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;Gv(e,"Number",Fi(t,a,i,n));return;case"b":;case"e":Gv(e,"BoolErr",Ai(t,a,r.v,n,r.t));return;case"s":;case"str":Gv(e,"Label",vi(t,a,r.v,n));return;}Gv(e,"Blank",Pn(t,a))}functionZv(e,r,t){vara=Fr();varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=(((t||{}).Workbook||{}).Sheets||[])[e]||{};varl=Array.isArray(i);varc,f="",o=[];varu=et(i["!ref"]||"A1");Gv(a,2057,Qn(t,16,r));Gv(a,"CalcMode",bn(1));Gv(a,"CalcCount",bn(100));Gv(a,"CalcRefMode",dn(true));Gv(a,"CalcIter",dn(false));Gv(a,"CalcDelta",Ft(.001));Gv(a,"CalcSaveRecalc",dn(true));Gv(a,"PrintRowCol",dn(false));Gv(a,"PrintGrid",dn(false));Gv(a,"GridSet",bn(1));Gv(a,"Guts",xi([0,0]));Gv(a,"HCenter",dn(false));Gv(a,"VCenter",dn(false));Gv(a,"Dimensions",gi(u,r));for(varh=u.s.r;h<=u.e.r;++h){f=Wr(h);for(vard=u.s.c;d<=u.e.c;++d){if(h===u.s.r)o[d]=Gr(d);c=o[d]+f;varv=l?(i[h]||[])[d]:i[c];if(!v)continue;Jv(a,v,h,d,r)}}varb=s.CodeName||s.name||n;Gv(a,"CodeName",Cn(b,r));Gv(a,"EOF");returna.end()}functionqv(e,r,t){vara=Fr();varn=(e.Workbook||{}).WBProps||{};vari=t.biff==8,s=t.biff==5;Gv(a,2057,Qn(e,5,t));Gv(a,"InterfaceHdr",i?bn(1200):null);Gv(a,"Mms",on(2));if(s)Gv(a,"ToolbarHdr");if(s)Gv(a,"ToolbarEnd");Gv(a,"InterfaceEnd");Gv(a,"WriteAccess",qn("SheetJS",t));Gv(a,"CodePage",bn(i?1200:1252));if(i)Gv(a,"DSF",bn(0));Gv(a,"RRTabId",ss(e.SheetNames.length));if(i&&e.vbaraw){Gv(a,"ObProj");varl=n.CodeName||"ThisWorkbook";Gv(a,"CodeName",Cn(l,t))}Gv(a,"BuiltInFnGroupCount",bn(17));Gv(a,"WinProtect",dn(false));Gv(a,"Protect",dn(false));Gv(a,"Password",bn(0));if(i)Gv(a,"Prot4Rev",dn(false));if(i)Gv(a,"Prot4RevPass",bn(0));Gv(a,"Window1",oi(t));Gv(a,"Backup",dn(false));Gv(a,"HideObj",bn(0));Gv(a,"Date1904",dn(Sd(e)=="true"));Gv(a,"CalcPrecision",dn(true));if(i)Gv(a,"RefreshAll",dn(false));Gv(a,"BookBool",bn(0));if(i)Gv(a,"UsesELFs",dn(false));varc=a.end();varf=Fr();if(i)Gv(f,"Country",qi());Gv(f,"EOF");varo=f.end();varu=Fr();varh=0,d=0;for(d=0;d<e.SheetNames.length;++d)h+=(i?12:11)+(i?2:1)*e.SheetNames[d].length;varv=c.length+h+o.length;for(d=0;d<e.SheetNames.length;++d){Gv(u,"BoundSheet8",ti({pos:v,hs:0,dt:0,name:e.SheetNames[d]},t));v+=r[d].length}varb=u.end();if(h!=b.length)thrownewError("BS8 "+h+" != "+b.length);varp=[];if(c.length)p.push(c);if(b.length)p.push(b);if(o.length)p.push(o);returnje([p])}functioneb(e,r){vart=r||{};vara=[];for(varn=0;n<e.SheetNames.length;++n)a[a.length]=Zv(n,t,e);a.unshift(qv(e,a,t));returnje([a])}functionrb(e,r){vart=r||{};switch(t.biff||2){case8:;case5:returneb(e,r);case
}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,nv(r.Strings,s,r));n.strs.push(s);ma(r.wbrels,-1,"sharedStrings."+t,ha.SST)}s="xl/theme/theme1.xml";i.file(s,Dc(e.Themes,r));n.themes.push(s);ma(r.wbrels,-1,"theme/theme1.xml",ha.THEME);s="xl/styles."+t;i.file(s,av(e,s,r));n.styles.push(s);ma(r.wbrels,-1,"styles."+t,ha.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";i.file(s,e.vbaraw);n.vba.push(s);ma(r.wbrels,-1,"vbaProject.bin",ha.VBA)}i.file("[Content_Types].xml",ua(n,r));i.file("_rels/.rels",pa(r.rels));i.file("xl/_rels/workbook."+t+".rels",pa(r.wbrels));deleter.revssf;deleter.ssf;returni}functionOb(e,r){vart="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3]];case"base64":t=h.decode(e.substr(0,24));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3]];default:thrownewError("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}function_b(e,r){if(I.find(e,"EncryptedPackage"))returnDb(e,r);returnLv(e,r)}functionPb(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=d&&Buffer.isBuffer(e)?"buffer":"base64";switch(n.type){case"base64":t=newae(a,{base64:true});break;case"binary":;case"array":t=newae(a,{base64:false});break;case"buffer":t=newae(a);break;default:thrownewError("Unrecognized type "+n.type);}returnAb(t,n)}functionyb(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnkv(e.slice(t),r);default:breake;}returnws.to_workbook(e,r)}functionNb(e,r){vart="",a=Ob(e,r);switch(r.type){case"base64":t=h.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=H(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Te(t);returnyb(t,r)}functionMb(e,r){vart=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returnyb(t,r)}functionLb(e){return!e.match(/[^\x00-\x7F]/)?e:Ie(e)}functionUb(e,r,t,a){if(a){t.type="string";returnws.to_workbook(e,t)}returnws.to_workbook(r,t)}functionWb(e,r){vart,a=e,n=[0,0,0,0],i=false;vars=r||{};Du={};if(s.dateNF)Du.dateNF=s.dateNF;if(!s.type)s.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(s.type=="file"){s.type="buffer";a=te.readFileSync(e)}if(s.type=="string"){i=true;s.type="binary";a=Lb(e)}switch((n=Ob(a,s))[0]){case208:return_b(I.read(a,s),s);case9:returnLv(a,s);case60:returnkv(a,s);case73:if(n[1]===68)returnCs(a,s);break;case84:if(n[1]===65&&n[2]===66&&n[3]===76)returnBs.to_workbook(a,s);break;case80:if(n[1]===75&&n[2]<32&&n[3]<32)returnPb(a,s);break;case239:returnn[3]===60?kv(a,s):Ub(e,a,s,i);case255:if(n[1]===254){returnMb(a,s)}break;case0:if(n[1]===0&&n[2]>=2&&n[3]===0)returnTs.to_workbook(a,s);break;case3:;case131:;case139:;case140:returnSs.to_workbook(a,s);case123:if(n[1]===92&&n[2]===114&&n[3]===116)returnhl.to_workbook(a,s);break;case10:;case13:;case32:returnNb(a,s);}if(n[2]<=12&&n[3]<=31)returnSs.to_workbook(a,s);if(32>n[0]||n[0]>127)thrownewError("Unsupported file "+n.join("|"));returnUb(e,a,s,i)}functionHb(e,r){vart=r||{};t.type="file";returnWb(e,t)}functionVb(e,r){vart=r||{};vara=Fb(e,t);varn={};if(t.compression)n.compression="DEFLATE";switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":thrownewError("'string' output type invalid for '"+t.bookType+" files");case"buffer":;case"file":n.type="nodebuffer";break;default:thrownewError("Unrecognized type "+t.type);}if(t.type==="file")returnte.writeFileSync(t.file,a.generate(n));vari=a.generate(n);returnt.type=="string"?Te(i):i}functionXb(e,r){vart=r||{};vara=Uv(e,t);switch(t.type){case"base64":;case"binary":break;case"buffer":;case"array":t.type="";break;case"file":returnte.writeFileSync(t.file,I.write(a,{type:"buffer"}));case"string":thrownewError("'string' output type invalid for '"+t.bookType+" files");default:thrownewError("Unrecognized type "+t.type);}returnI.write(a,t)}functionGb(e,r,t){if(!t)t="";vara=t+e