vara=e._R(2),n=e._R(2);vari=e._R(2),s=e._R(2);varf=Qn(e,0,t);if(t.biff<8)e._R(1);return[{r:a,c:n},f,s,i]}functionws(e,r,t){returnks(e,r,t)}functionCs(e,r){vart=[];vara=e._R(2);while(a--)t.push(vi(e,r));returnt}functionBs(e){varr=jr(2+e.length*8);r._W(2,e.length);for(vart=0;t<e.length;++t)pi(e[t],r);returnr}functionTs(e,r,t){if(t&&t.biff<8)returnIs(e,r,t);vara=gi(e,22);varn=Ci(e,r-22,a[1]);return{cmo:a,ft:n}}varxs=[];xs[8]=function(e,r){vart=e.l+r;e.l+=10;vara=e._R(2);e.l+=4;e.l+=2;e.l+=2;e.l+=2;e.l+=4;varn=e._R(1);e.l+=n;e.l=t;return{fmt:a}};functionIs(e,r,t){e.l+=4;vara=e._R(2);varn=e._R(2);vari=e._R(2);e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=6;r-=36;vars=[];s.push((xs[a]||zr)(e,r,t));return{cmo:[n,a,i],ft:s}}functionAs(e,r,t){vara=e.l;varn="";try{e.l+=4;vari=(t.lastobj||{cmo:[0,0]}).cmo[1];vars;if([0,5,7,11,12,14].indexOf(i)==-1)e.l+=6;elses=Zn(e,6,t);varf=e._R(2);e._R(2);Wn(e,2);varl=e._R(2);e.l+=l;for(varo=1;o<e.lens.length-1;++o){if(e.l-a!=e.lens[o])thrownewError("TxO: bad continue record");varc=e[e.l];varu=$n(e,e.lens[o+1]-e.lens[o]-1);n+=u;if(n.length>=(c?f:2*f))break}if(n.length!==f&&n.length!==f*2){thrownewError("cchText: "+f+" != "+n.length)}e.l=a+r;return{t:n}}catch(h){e.l=a+r;return{t:n}}}function_s(e,r){vart=vi(e,8);e.l+=16;vara=ai(e,r-24);return[t,a]}functionRs(e){varr=jr(24);vart=ut(e[0]);r._W(2,t.r);r._W(2,t.r);r._W(2,t.c);r._W(2,t.c);vara="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(varn=0;n<16;++n)r._W(1,parseInt(a[n],16));returnR([r,ni(e[1])])}functionys(e,r){e._R(2);vart=vi(e,8);vara=e._R((r-10)/2,"dbcs-cont");a=a.replace(y,"");return[t,a]}functionFs(e){varr=e[1].Tooltip;vart=jr(10+2*(r.length+1));t._W(2,2048);vara=ut(e[0]);t._W(2,a.r);t._W(2,a.r);t._W(2,a.c);t._W(2,a.c);for(varn=0;n<r.length;++n)t._W(2,r.charCodeAt(n));t._W(2,0);returnt}functionDs(e){varr=[0,0],t;t=e._R(2);r[0]=Sa[t]||t;t=e._R(2);r[1]=Sa[t]||t;returnr}functionOs(e){if(!e)e=jr(4);e._W(2,1);e._W(2,1);returne}functionPs(e){varr=e._R(2);vart=[];while(r-->0)t.push(si(e,8));returnt}functionNs(e){varr=e._R(2);vart=[];while(r-->0)t.push(si(e,8));returnt}functionMs(e){e.l+=2;varr={cxfs:0,crc:0};r.cxfs=e._R(2);r.crc=e._R(4);returnr}functionLs(e,r,t){if(!t.cellStyles)returnzr(e,r);vara=t&&t.biff>=12?4:2;varn=e._R(a);vari=e._R(a);vars=e._R(a);varf=e._R(a);varl=e._R(2);if(a==2)e.l+=2;return{s:n,e:i,w:s,ixfe:f,flags:l}}functionUs(e,r){vart={};if(r<32)returnt;e.l+=16;t.header=zt(e,8);t.footer=zt(e,8);e.l+=2;returnt}functionHs(e,r,t){vara={area:false};if(t.biff!=5){e.l+=r;returna}varn=e._R(1);e.l+=3;if(n&16)a.area=true;returna}functionWs(e){varr=jr(2*e);for(vart=0;t<e;++t)r._W(2,t+1);returnr}varVs=fi;varXs=Xn;varGs=Yn;functionzs(e){varr=e._R(2);vart=e._R(2);vara=e._R(4);varn={fmt:r,env:t,len:a,data:e.slice(e.l,e.l+a)};e.l+=a;returnn}functionjs(e,r,t){vara=fi(e,6);++e.l;varn=Qn(e,r-7,t);a.t="str";a.val=n;returna}functionKs(e){varr=fi(e,6);++e.l;vart=zt(e,8);r.t="n";r.val=t;returnr}function$s(e,r,t){vara=jr(15);bp(a,e,r);a._W(8,t,"f");returna}functionYs(e){varr=fi(e,6);++e.l;vart=e._R(2);r.t="n";r.val=t;returnr}functionQs(e,r,t){vara=jr(9);bp(a,e,r);a._W(2,t);returna}functionJs(e){varr=e._R(1);if(r===0){e.l++;return""}returne._R(r,"sbcs-cont")}functionZs(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}functionqs(e,r,t){vara=e.l+r;varn=fi(e,6);vari=e._R(2);vars=$n(e,i,t);e.l=a;n.t="str";n.val=s;returnn}varef=function(){vare={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,255:16969};varr=Q({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,10
returnr}varwf=It;functionCf(e){varr=$r();Yr(r,"BrtBeginSst",kf(e));for(vart=0;t<e.length;++t)Yr(r,"BrtSSTItem",wf(e[t]));Yr(r,"BrtEndSst");returnr.end()}functionBf(e){if(typeofcptable!=="undefined")returncptable.utils.encode(t,e);varr=[],a=e.split("");for(varn=0;n<a.length;++n)r[n]=a[n].charCodeAt(0);returnr}functionTf(e,r){vart={};t.Major=e._R(2);t.Minor=e._R(2);if(r>=4)e.l+=r-4;returnt}functionxf(e){varr={};r.id=e._R(0,"lpp4");r.R=Tf(e,4);r.U=Tf(e,4);r.W=Tf(e,4);returnr}functionIf(e){varr=e._R(4);vart=e.l+r-4;vara={};varn=e._R(4);vari=[];while(n-->0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)thrownewError("Bad DataSpaceMapEntry: "+e.l+" != "+t);returna}functionAf(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(If(e));returnr}function_f(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(e._R(0,"lpp4"));returnr}functionRf(e){varr={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=Tf(e,4);r.U=Tf(e,4);r.W=Tf(e,4);returnr}functionyf(e){varr=Rf(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)thrownewError("Bad !Primary record");returnr}functionFf(e,r){vart=e.l+r;vara={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);varn=false;switch(a.AlgID){case26126:;case26127:;case26128:n=a.Flags==36;break;case26625:n=a.Flags==4;break;case0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)thrownewError("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;returna}functionDf(e,r){vart={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;returnt}functionOf(e){varr=Tf(e);switch(r.Minor){case2:return[r.Minor,Pf(e,r)];case3:return[r.Minor,Nf(e,r)];case4:return[r.Minor,Mf(e,r)];}thrownewError("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}functionPf(e){varr=e._R(4);if((r&63)!=36)thrownewError("EncryptionInfo mismatch");vart=e._R(4);vara=Ff(e,t);varn=Df(e,e.length-e.l);return{t:"Std",h:a,v:n}}functionNf(){thrownewError("File is password-protected: ECMA-376 Extensible")}functionMf(e){varr=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;vart=e._R(e.length-e.l,"utf8");vara={};t.replace(xe,functionn(e){vart=_e(e);switch(Re(t[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":r.forEach(function(e){a[e]=t[e]});break;case"<dataIntegrity":a.encryptedHmacKey=t.encryptedHmacKey;a.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(t);break;default:throwt[0];}});returna}functionLf(e,r){vart={};vara=t.EncryptionVersionInfo=Tf(e,4);r-=4;if(a.Minor!=2)thrownewError("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)thrownewError("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;varn=e._R(4);r-=4;t.EncryptionHeader=Ff(e,n);r-=n;t.EncryptionVerifier=Df(e,r);returnt}functionUf(e){varr={};vart=r.EncryptionVersionInfo=Tf(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);returnr}functionHf(e){varr=0,t;vara=Bf(e);varn=a.length+1,i,s;varf,l,o;t=C(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;l=r<<1&32767;o=f|l;r=o^s}returnr^52811}varWf=function(){vare=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];varr=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];vart=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,4161
break;case"BIFF2XF":;case"BIFF3XF":;case"BIFF4XF":break;case"BIFF4FMTCNT":;case"BIFF2ROW":;case"BIFF2WINDOW2":break;case"SCENARIO":;case"DConBin":;case"PicF":;case"DataLabExt":;case"Lel":;case"BopPop":;case"BopPopCustom":;case"RealTimeData":;case"Name":break;case"LHNGraph":;case"FnGroupName":;case"AddMenu":;case"LPr":break;case"ListObj":;case"ListField":break;case"RRSort":break;case"BigName":break;case"ToolbarHdr":;case"ToolbarEnd":break;case"DDEObjName":break;case"FRTArchId$":break;default:if(r.WTF)throw"Unrecognized Record "+q.n;};};};}}elsee.l+=Z}t.SheetNames=K(i).sort(function(e,r){returnNumber(e)-Number(r)}).map(function(e){returni[e].name});if(!r.bookSheets)t.Sheets=a;if(t.Sheets)j.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Preamble=u;t.Strings=o;t.SSF=D.get_table();if(y.enc)t.Encryption=y.enc;if(F)t.Themes=F;t.Metadata={};if(w!==undefined)t.Metadata.Country=w;if(W.names.length>0)x.Names=W.names;t.Workbook=x;returnt}varfp={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};functionlp(e,r,t){vara=V.find(e,"!DocumentSummaryInformation");if(a&&a.size>0)try{varn=On(a,pa,fp.DSI);for(variinn)r[i]=n[i]}catch(s){if(t.WTF)throws}varf=V.find(e,"!SummaryInformation");if(f&&f.size>0)try{varl=On(f,ma,fp.SI);for(varoinl)if(r[o]==null)r[o]=l[o]}catch(s){if(t.WTF)throws}if(r.HeadingPairs&&r.TitlesOfParts){qa(r.HeadingPairs,r.TitlesOfParts,r,t);deleter.HeadingPairs;deleter.TitlesOfParts}}functionop(e,r){vart=[],a=[],n=[];vari=0,s;if(e.Props){s=K(e.Props);for(i=0;i<s.length;++i)(ga.hasOwnProperty(s[i])?t:Ea.hasOwnProperty(s[i])?a:n).push([s[i],e.Props[s[i]]])}if(e.Custprops){s=K(e.Custprops);for(i=0;i<s.length;++i)if(!(e.Props||{}).hasOwnProperty(s[i]))(ga.hasOwnProperty(s[i])?t:Ea.hasOwnProperty(s[i])?a:n).push([s[i],e.Custprops[s[i]]])}varf=[];for(i=0;i<n.length;++i){if(yn.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;f.push(n[i])}if(a.length)V.utils.cfb_add(r,"/SummaryInformation",Pn(a,fp.SI,Ea,ma));if(t.length||f.length)V.utils.cfb_add(r,"/DocumentSummaryInformation",Pn(t,fp.DSI,ga,pa,f.length?f:null,fp.UDI))}functioncp(e,r){if(!r)r={};tm(r);o();if(r.codepage)s(r.codepage);vart,a;if(e.FullPaths){if(V.find(e,"/encryption"))thrownewError("File is password-protected");t=V.find(e,"!CompObj");a=V.find(e,"/Workbook")||V.find(e,"/Book")}else{switch(r.type){case"base64":e=T(g.decode(e));break;case"binary":e=T(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Gr(e,0);a={content:e}}varn;vari;if(t)tp(t);if(r.bookProps&&!r.bookSheets)n={};else{varf=E?"buffer":"array";if(a&&a.content)n=sp(a.content,r);elseif((i=V.find(e,"PerfectOffice_MAIN"))&&i.content)n=ff.to_workbook(i.content,(r.type=f,r));elseif((i=V.find(e,"NativeContent_MAIN"))&&i.content)n=ff.to_workbook(i.content,(r.type=f,r));elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&V.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=Lo(e)}varl={};if(e.FullPaths)lp(e,l,r);n.Props=n.Custprops=l;if(r.bookFiles)n.cfb=e;returnn}functionup(e,r){vart=r||{};vara=V.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";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");}V.utils.cfb_add(a,n,Fp(e,t));if(t.biff==8&&(e.Props||e.Custprops))op(e,a);if(t.biff==8&&e.vbaraw)Uo(a,V.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varhp={0:{n:"BrtRowHdr",f:Rh},1:{n:"BrtCellBlank",f:Lh},2:{n:"BrtCellRk",f:Kh},3:{n:"BrtCellError",f:Vh},4:{n:"BrtCellBool",f:Hh},5:{n:"BrtCellReal",f:zh},6:{n:"BrtCellSt",f:Yh},7:{n:"BrtCellIsst",f:Xh},8:{n:"BrtFmlaString",f:ed},9:{n:"BrtFmlaNum",f:qh},10:{n:"BrtFmlaBool",f:Jh},11:{n:"BrtFmlaError",f:Zh},16:{n:"BrtFRTArchID$",f:av},19:{n:"BrtSSTItem",f:xt},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIStr
},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:bs,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:oo,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:Ss,r:12},2203:{n:"CompressPictures",f:Nn},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:Pi},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:Wn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:Hs},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:Ps},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:Qi},2:{n:"BIFF2INT",f:Ys},5:{n:"BoolErr",f:ss},7:{n:"String",f:Js},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:Wn},30:{n:"BIFF2FORMAT",f:Yi},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:Es},37:{n:"DefaultRowHeight",f:Mi},50:{n:"BIFF2FONTXTRA",f:Zs},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:zs},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:qs},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:Bi},536:{n:"Lbl",f:vs},547:{n:"ExternName",f:hs},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:Bi},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};varpp=Y(vp,"n");functionmp(e,r,t,a){varn=+r||+pp[r];if(isNaN(n))return;vari=a||(t||[]).length||0;vars=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&yr(t))e.push(t)}functionbp(e,r,t){if(!e)e=jr(7);e._W(2,r);e._W(2,t);e._W(2,0);e._W(1,0);returne}functiongp(e,r,t,a){varn=jr(9);bp(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}functionEp(e,r,t){vara=jr(8+2*t.length);bp(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");returna.l<a.length?a.slice(0,a.l):a}functionSp(e,r,t,a){if(r.v!=null)switch(r.t){case"d":;case"n":varn=r.t=="d"?re(se(r.v)):r.v;if(n==(n|0)&&n>=0&&n<65536)mp(e,2,Qs(t,a,n));elsemp(e,3,$s(t,a,n));return;case"b":;case"e":mp(e,5,gp(t,a,r.v,r.t));return;case"s":;case"str":mp(e,4,Ep(t,a,r.v));return;}mp(e,1,bp(null,t,a))}functionkp(e,r,t,a){varn=Array.isArray(r);vari=pt(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=vt(i)}for(varo=i.s.r;o<=i.e.r;++o){f=at(o);for(varc=i.s.c;c<=i.e.c;++c){if(o===i.s.r
try{i[a]=Oa(Se(e,t,true),r);varh=Ee(e,r);vard;switch(f){case"sheet":d=hv(h,r,n,l,i[a],o,c,u);break;case"chart":d=dv(h,r,n,l,i[a],o,c,u);if(!d||!d["!chart"])break;varv=Ce(d["!chart"].Target,r);varp=Da(v);varm=Co(Se(e,v,true),Oa(Se(e,p,true),v));varb=Ce(m,v);varg=Da(b);d=Rd(Se(e,b,true),b,l,Oa(Se(e,g,true),b),o,d);break;case"macro":d=vv(h,r,n,l,i[a],o,c,u);break;case"dialog":d=pv(h,r,n,l,i[a],o,c,u);break;}s[a]=d}catch(E){if(l.WTF)throwE}}functionfm(e){returne.charAt(0)=="/"?e.slice(1):e}functionlm(e,r){O(D);r=r||{};tm(r);if(be(e,"META-INF/manifest.xml"))returnUp(e,r);if(be(e,"objectdata.xml"))returnUp(e,r);if(be(e,"Index/Document.iwa"))thrownewError("Unsupported NUMBERS file");vart=ke(e);vara=Aa(Se(e,"[Content_Types].xml"));varn=false;vari,s;if(a.workbooks.length===0){s="xl/workbook.xml";if(Ee(e,s,true))a.workbooks.push(s)}if(a.workbooks.length===0){s="xl/workbook.bin";if(!Ee(e,s,true))thrownewError("Could not find workbook");a.workbooks.push(s);n=true}if(a.workbooks[0].slice(-3)=="bin")n=true;varf={};varl={};if(!r.bookSheets&&!r.bookProps){ju=[];if(a.sst)try{ju=gv(Ee(e,fm(a.sst)),a.sst,r)}catch(o){if(r.WTF)throwo}if(r.cellStyles&&a.themes.length)f=bv(Se(e,a.themes[0].replace(/^\//,""),true)||"",a.themes[0],r);if(a.style)l=mv(Ee(e,fm(a.style)),a.style,f,r)}a.links.map(function(t){returnkv(Ee(e,fm(t)),t,r)});varc=uv(Ee(e,fm(a.workbooks[0])),a.workbooks[0],r);varu={},h="";if(a.coreprops.length){h=Ee(e,fm(a.coreprops[0]),true);if(h)u=Ka(h);if(a.extprops.length!==0){h=Ee(e,fm(a.extprops[0]),true);if(h)en(h,u,r)}}vard={};if(!r.bookSheets||r.bookProps){if(a.custprops.length!==0){h=Se(e,fm(a.custprops[0]),true);if(h)d=nn(h,r)}}varv={};if(r.bookSheets||r.bookProps){if(c.Sheets)i=c.Sheets.map(functionA(e){returne.name});elseif(u.Worksheets&&u.SheetNames.length>0)i=u.SheetNames;if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeofi!=="undefined")v.SheetNames=i;if(r.bookSheets?v.SheetNames:r.bookProps)returnv}i={};varp={};if(r.bookDeps&&a.calcchain)p=Sv(Ee(e,fm(a.calcchain)),a.calcchain,r);varm=0;varb={};varg,E;{varS=c.Sheets;u.Worksheets=S.length;u.SheetNames=[];for(vark=0;k!=S.length;++k){u.SheetNames[k]=S[k].name}}varw=n?"bin":"xml";varC=a.workbooks[0].lastIndexOf("/");varB=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");if(!be(e,B))B="xl/_rels/workbook."+w+".rels";varT=Oa(Se(e,B,true),B);if(T)T=im(T,c.Sheets);varx=Ee(e,"xl/worksheets/sheet.xml",true)?1:0;for(m=0;m!=u.Worksheets;++m){varI="sheet";if(T&&T[m]){g="xl/"+T[m][1].replace(/[\/]?xl\//,"");if(!be(e,g))g=T[m][1];if(!be(e,g))g=B.replace(/_rels\/.*$/,"")+T[m][1];I=T[m][2]}else{g="xl/worksheets/sheet"+(m+1-x)+"."+w;g=g.replace(/sheet0\./,"sheet.")}E=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");sm(e,g,E,u.SheetNames[m],m,b,i,I,r,c,f,l)}if(a.comments)xo(e,a.comments,i,b,r);v={Directory:a,Workbook:c,Props:u,Custprops:d,Deps:p,Sheets:i,SheetNames:u.SheetNames,Strings:ju,Styles:l,Themes:f,SSF:D.get_table()};if(r.bookFiles){v.keys=t;v.files=e.files}if(r.bookVBA){if(a.vba.length>0)v.vbaraw=Ee(e,fm(a.vba[0]),true);elseif(a.defaults&&a.defaults.bin===Mo)v.vbaraw=Ee(e,"xl/vbaProject.bin",true)}returnv}functionom(e,r){vart=r||{};vara="Workbook",n=V.find(e,a);try{a="/!DataSpaces/Version";n=V.find(e,a);if(!n||!n.content)thrownewError("ECMA-376 Encrypted file missing "+a);xf(n.content);a="/!DataSpaces/DataSpaceMap";n=V.find(e,a);if(!n||!n.content)thrownewError("ECMA-376 Encrypted file missing "+a);vari=Af(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")thrownewError("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=V.find(e,a);if(!n||!n.content)thrownewError("ECMA-376 Encrypted file missing "+a);vars=_f(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")thrownewError("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=V.find(e,a);if(!n||!n.content)thrownewError("ECM