l.write(r);l.close();returnr}catch(o){if(!o.message||o.message.indexOf("onstruct")==-1)throwo}thrownewError("cannot save file "+e)}functionnr(e){if(typeofer!=="undefined")returner.readFileSync(e);if(typeofDeno!=="undefined")returnDeno.readFileSync(e);if(typeof$!=="undefined"&&typeofFile!=="undefined"&&typeofFolder!=="undefined")try{varr=File(e);r.open("r");r.encoding="binary";vart=r.read();r.close();returnt}catch(a){if(!a.message||a.message.indexOf("onstruct")==-1)throwa}thrownewError("Cannot access file "+e)}functionir(e){varr=Object.keys(e),t=[];for(vara=0;a<r.length;++a)if(Object.prototype.hasOwnProperty.call(e,r[a]))t.push(r[a]);returnt}functionsr(e,r){vart=[],a=ir(e);for(varn=0;n!==a.length;++n)if(t[e[a[n]][r]]==null)t[e[a[n]][r]]=a[n];returnt}functionfr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=t[a];returnr}functionlr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);returnr}functionor(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}returnr}varcr=Date.UTC(1899,11,30,0,0,0);varur=Date.UTC(1899,11,31,0,0,0);varhr=Date.UTC(1904,0,1,0,0,0);functiondr(e,r){vart=e.getTime();vara=(t-cr)/(24*60*60*1e3);if(r){a-=1462;returna<-1402?a-1:a}returna<60?a-1:a}functionvr(e){if(e>=60&&e<61)returne;varr=newDate;r.setTime((e>60?e:e+1)*24*60*60*1e3+cr);returnr}functionpr(e){varr=0,t=0,a=false;varn=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)thrownewError("|"+e+"| is not an ISO8601 Duration");for(vari=1;i!=n.length;++i){if(!n[i])continue;t=1;if(i>3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":thrownewError("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)thrownewError("Unsupported ISO Duration Field: M");elset*=60;case"S":break;}r+=t*parseInt(n[i],10)}returnr}varmr=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/;varbr=/^(\d+)-(\d+)-(\d+)$/;vargr=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;functionwr(e,r){if(einstanceofDate)returne;vart=e.match(mr);if(t)returnnewDate((r?hr:ur)+((parseInt(t[1],10)*60+parseInt(t[2],10))*60+(t[3]?parseInt(t[3].slice(1),10):0))*1e3+(t[4]?parseInt((t[4]+"000").slice(1,4),10):0));t=e.match(br);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],0,0,0,0));t=e.match(gr);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4],+t[5],t[6]&&parseInt(t[6].slice(1),10)||0,t[7]&&parseInt((t[7]+"0000").slice(1,4),10)||0));vara=newDate(e);returna}functionkr(e,r){if(S&&Buffer.isBuffer(e)){if(r&&A){if(e[0]==255&&e[1]==254)returnRt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)returnRt(d(e.slice(2).toString("binary")))}returne.toString("binary")}if(typeofTextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)returnRt(newTextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)returnRt(newTextDecoder("utf-16be").decode(e.slice(2)))}vart={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};if(Array.isArray(e))e=newUint8Array(e);returnnewTextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){returnt[e]||e})}catch(a){}varn=[],i=0;try{for(i=0;i<e.length-65536;i+=65536)n.push(String.fromCharCode.apply(0,e.slice(i,i+65536)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){try{for(;i<e.length-16384;i+=16384)n.push(String.fromCharCode.apply(0,e.slice(i,i+16384)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){for(;i!=e.length;++i)n.push(String.fromCharCode(e[i]))}}returnn.join("")}functionTr(e){if(typeofJSON!="undefined"&&!Array.isArray(e))returnJSON.parse(JSON.stringify(e));if(typeofe!="object"||e==null)returne;if(einstanceofDate)returnnewDate(e.getTime());varr={};for(vartine)if(Object.pr
returnr}functionrn(e,r){vart=e.t=="d"&&rinstanceofDate;if(e.z!=null)try{returne.w=ze(e.z,t?dr(r):r)}catch(a){}try{returne.w=ze((e.XF||{}).numFmtId||(t?14:0),t?dr(r):r)}catch(a){return""+r}}functiontn(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)returne.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")returnci[e.v]||e.v;if(r==undefined)returnrn(e,e.v);returnrn(e,r)}functionan(e,r){vart=r&&r.sheet?r.sheet:"Sheet1";vara={};a[t]=e;return{SheetNames:[t],Sheets:a}}functionnn(e){varr={};vart=e||{};if(t.dense)r["!data"]=[];returnr}functionsn(e,r,t){vara=t||{};varn=e?e["!data"]!=null:a.dense;if(g!=null&&n==null)n=g;vari=e||(n?{"!data":[]}:{});if(n&&!i["!data"])i["!data"]=[];vars=0,f=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varl=typeofa.origin=="string"?Ka(a.origin):a.origin;s=l.r;f=l.c}}varo={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){varc=en(i["!ref"]);o.s.c=c.s.c;o.s.r=c.s.r;o.e.c=Math.max(o.e.c,c.e.c);o.e.r=Math.max(o.e.r,c.e.r);if(s==-1)o.e.r=s=i["!ref"]?c.e.r+1:0}else{o.s.c=o.e.c=o.s.r=o.e.r=0}varu=[],h=false;for(vard=0;d!=r.length;++d){if(!r[d])continue;if(!Array.isArray(r[d]))thrownewError("aoa_to_sheet expects an array of arrays");varv=s+d;if(n){if(!i["!data"][v])i["!data"][v]=[];u=i["!data"][v]}varp=r[d];for(varm=0;m!=p.length;++m){if(typeofp[m]==="undefined")continue;varb={v:p[m],t:""};varw=f+m;if(o.s.r>v)o.s.r=v;if(o.s.c>w)o.s.c=w;if(o.e.r<v)o.e.r=v;if(o.e.c<w)o.e.c=w;h=true;if(p[m]&&typeofp[m]==="object"&&!Array.isArray(p[m])&&!(p[m]instanceofDate))b=p[m];else{if(Array.isArray(b.v)){b.f=p[m][1];b.v=b.v[0]}if(b.v===null){if(b.f)b.t="n";elseif(a.nullError){b.t="e";b.v=0}elseif(!a.sheetStubs)continue;elseb.t="z"}elseif(typeofb.v==="number"){if(isFinite(b.v))b.t="n";elseif(isNaN(b.v)){b.t="e";b.v=15}else{b.t="e";b.v=7}}elseif(typeofb.v==="boolean")b.t="b";elseif(b.vinstanceofDate){b.z=a.dateNF||q[14];if(!a.UTC)b.v=Dr(b.v);if(a.cellDates){b.t="d";b.w=ze(b.z,dr(b.v,a.date1904))}else{b.t="n";b.v=dr(b.v,a.date1904);b.w=ze(b.z,b.v)}}elseb.t="s"}if(n){if(u[w]&&u[w].z)b.z=u[w].z;u[w]=b}else{vark=$a(w)+(v+1);if(i[k]&&i[k].z)b.z=i[k].z;i[k]=b}}}if(h&&o.s.c<104e5)i["!ref"]=Ja(o);returni}functionfn(e,r){returnsn(null,e,r)}functionln(e){returne._R(4,"i")}functionon(e,r){if(!r)r=Ra(4);r._W(4,e);returnr}functioncn(e){varr=e._R(4);returnr===0?"":e._R(r,"dbcs")}functionun(e,r){vart=false;if(r==null){t=true;r=Ra(4+2*e.length)}r._W(4,e.length);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}functionhn(e){return{ich:e._R(2),ifnt:e._R(2)}}functiondn(e,r){if(!r)r=Ra(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);returnr}functionvn(e,r){vart=e.l;vara=e._R(1);varn=cn(e);vari=[];vars={t:n,h:n};if((a&1)!==0){varf=e._R(4);for(varl=0;l!=f;++l)i.push(hn(e));s.r=i}elses.r=[{ich:0,ifnt:0}];e.l=t+r;returns}functionpn(e,r){vart=false;if(r==null){t=true;r=Ra(15+4*e.t.length)}r._W(1,0);un(e.t,r);returnt?r.slice(0,r.l):r}varmn=vn;functionbn(e,r){vart=false;if(r==null){t=true;r=Ra(23+4*e.t.length)}r._W(1,1);un(e.t,r);r._W(4,1);dn({ich:0,ifnt:0},r);returnt?r.slice(0,r.l):r}functiongn(e){varr=e._R(4);vart=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}functionwn(e,r){if(r==null)r=Ra(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}functionkn(e){varr=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}functionTn(e,r){if(r==null)r=Ra(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}varyn=cn;varEn=un;function_n(e){varr=e._R(4);returnr===0||r===4294967295?"":e._R(r,"dbcs")}functionSn(e,r){vart=false;if(r==null){t=true;r=Ra(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}varxn=cn;varAn=_n;varCn=Sn;functionIn(e){varr=e.slice(e.l,e.l+4);vart=r[0]&1,a=r[0]&2;e.l+=4;varn=a===0?va([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Ta(r,0)>>2;returnt?n/100:n}functionOn(e,r){if(r==null)r=Ra(4);vart=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}elseif(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));elsethrownewError
i="boolean";a=a?"1":"0"}elseif(ainstanceofDate){i="dateTime.tz";a=a.toISOString()}elsea=String(a);n.push(Bt(wt(t),a,{"dt:dt":i}))});return"<"+a+' xmlns="'+Gt.o+'">'+n.join("")+"</"+a+">"}functionji(e){varr=e._R(4),t=e._R(4);returnnewDate((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}functionKi(e){varr=typeofe=="string"?newDate(Date.parse(e)):e;vart=r.getTime()/1e3+11644473600;vara=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7;n*=1e7;vari=a/Math.pow(2,32)|0;if(i>0){a=a%Math.pow(2,32);n+=i}vars=Ra(8);s._W(4,a);s._W(4,n);returns}functionYi(e,r,t){vara=e.l;varn=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;returnn}functionZi(e,r,t){vara=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;returna}functionJi(e,r,t){if(r===31)returnZi(e);returnYi(e,r,t)}functionqi(e,r,t){returnJi(e,r,t===false?0:4)}functionQi(e,r){if(!r)thrownewError("VtUnalignedString must have positive length");returnJi(e,r,0)}functiones(e){varr=e._R(4);vart=[];for(vara=0;a!=r;++a){varn=e.l;t[a]=e._R(0,"lpwstr").replace(M,"");if(e.l-n&2)e.l+=2}returnt}functionrs(e){varr=e._R(4);vart=[];for(vara=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(M,"");returnt}functionts(e){varr=e.l;vart=fs(e,ri);if(e[e.l]==0&&e[e.l+1]==0&&e.l-r&2)e.l+=2;vara=fs(e,Xn);return[t,a]}functionas(e){varr=e._R(4);vart=[];for(vara=0;a<r/2;++a)t.push(ts(e));returnt}functionns(e,r){vart=e._R(4);vara={};for(varn=0;n!=t;++n){vari=e._R(4);vars=e._R(4);a[i]=e._R(s,r===1200?"utf16le":"utf8").replace(M,"").replace(U,"!");if(r===1200&&s%2)e.l+=2}if(e.l&3)e.l=e.l>>2+1<<2;returna}functionis(e){varr=e._R(4);vart=e.slice(e.l,e.l+r);e.l+=r;if((r&3)>0)e.l+=4-(r&3)&3;returnt}functionss(e){varr={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;returnr}functionfs(e,r,t){vara=e._R(2),n,i=t||{};e.l+=2;if(r!==jn)if(a!==r&&ti.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))thrownewError("Expected type "+r+" saw "+a);switch(r===jn?a:r){case2:n=e._R(2,"i");if(!i.raw)e.l+=2;returnn;case3:n=e._R(4,"i");returnn;case11:returne._R(4)!==0;case19:n=e._R(4);returnn;case30:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case31:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case64:returnji(e);case65:returnis(e);case71:returnss(e);case80:returnqi(e,a,!i.raw).replace(M,"");case81:returnQi(e,a).replace(M,"");case4108:returnas(e);case4126:;case4127:returna==4127?es(e):rs(e);default:thrownewError("TypedPropertyValue unrecognized type "+r+" "+a);}}functionls(e,r){vart=Ra(4),a=Ra(4);t._W(4,e==80?31:e);switch(e){case3:a._W(-4,r);break;case5:a=Ra(8);a._W(8,r,"f");break;case11:a._W(4,r?1:0);break;case64:a=Ki(r);break;case31:;case80:a=Ra(4+2*(r.length+1)+(r.length%2?0:2));a._W(4,r.length+1);a._W(0,r,"dbcs");while(a.l!=a.length)a._W(1,0);break;default:thrownewError("TypedPropertyValue unrecognized type "+e+" "+r);}returnP([t,a])}functionos(e,r){vart=e.l;vara=e._R(4);varn=e._R(4);vari=[],s=0;varf=0;varo=-1,c={};for(s=0;s!=n;++s){varu=e._R(4);varh=e._R(4);i[s]=[u,h+t]}i.sort(function(e,r){returne[1]-r[1]});vard={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){varv=true;if(s>0&&r)switch(r[i[s-1][0]].t){case2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)thrownewError("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){if(i[s][0]==0&&i.length>s+1&&i[s][1]==i[s+1][1])continue;varp=r[i[s][0]];d[p.n]=fs(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(d[p.n]&65535)).slice(-4);if(p.n=="CodePage")switch(d[p.n]){case0:d[p.n]=1252;case874:;case932:;case936:;case949:;case950:;case1250:;case1251:;case1253:;case1254:;case1255:;case1256:;case1257:;case1258:;case1e4:;case1200:;case1201:;case1252:;case65e3:;case-536:;case65001:;case-535:l(f=d[p.n]>>>0&65535);break;default:thrownewError("Unsupported CodePage: "+d[p.n]);}}else{if(i[s][0]===1){f=d.CodePage
while(c-->0){if(i[i.l]===42){i.l+=h;continue}++i.l;n[++g]=[];w=0;for(w=0;w!=v.length;++w){vark=i.slice(i.l,i.l+v[w].len);i.l+=v[w].len;Ia(k,0);varT=typeofa!=="undefined"?a.utils.decode(d,k):N(k);switch(v[w].type){case"C":if(T.trim().length)n[g][w]=T.replace(/([^\s])\s+$/,"$1");break;case"D":if(T.length===8){n[g][w]=newDate(Date.UTC(+T.slice(0,4),+T.slice(4,6)-1,+T.slice(6,8),0,0,0,0));if(!(t&&t.UTC)){n[g][w]=Fr(n[g][w])}}elsen[g][w]=T;break;case"F":n[g][w]=parseFloat(T.trim());break;case"+":;case"I":n[g][w]=o?k._R(-4,"i")^2147483648:k._R(4,"i");break;case"L":switch(T.trim().toUpperCase()){case"Y":;case"T":n[g][w]=true;break;case"N":;case"F":n[g][w]=false;break;case"":;case"\0":;case"?":break;default:thrownewError("DBF Unrecognized L:|"+T+"|");}break;case"M":if(!f)thrownewError("DBF Unexpected MEMO for type "+s.toString(16));n[g][w]="##MEMO##"+(o?parseInt(T.trim(),10):k._R(4));break;case"N":T=T.replace(/\u0000/g,"").trim();if(T&&T!=".")n[g][w]=+T||0;break;case"@":n[g][w]=newDate(k._R(-8,"f")-621356832e5);break;case"T":{vary=k._R(4),E=k._R(4);if(y==0&&E==0)break;n[g][w]=newDate((y-2440588)*864e5+E);if(!(t&&t.UTC))n[g][w]=Fr(n[g][w])}break;case"Y":n[g][w]=k._R(4,"i")/1e4+k._R(4,"i")/1e4*Math.pow(2,32);break;case"O":n[g][w]=-k._R(-8,"f");break;case"B":if(l&&v[w].len==8){n[g][w]=k._R(8,"f");break};case"G":;case"P":k.l+=v[w].len;break;case"0":if(v[w].name==="_NullFlags")break;default:thrownewError("DBF Unsupported data type "+v[w].type);}}}if(s!=2)if(i.l<i.length&&i[i.l++]!=26)thrownewError("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));if(t&&t.sheetRows)n=n.slice(0,t.sheetRows);t.DBF=v;returnn}functions(e,r){vart=r||{};if(!t.dateNF)t.dateNF="yyyymmdd";vara=fn(i(e,t),t);a["!cols"]=t.DBF.map(function(e){return{wch:e.len,DBF:e}});deletet.DBF;returna}functionf(e,r){try{vart=an(s(e,r),r);t.bookType="dbf";returnt}catch(a){if(r&&r.WTF)throwa}return{SheetNames:[],Sheets:{}}}varo={B:8,C:250,L:1,D:8,"?":0,"":0};functionc(i,s){if(!i["!ref"])thrownewError("Cannot export empty sheet to DBF");varf=s||{};varc=r;if(+f.codepage>=0)l(+f.codepage);if(f.type=="string")thrownewError("Cannot write DBF to JS string");varu=Fa();varh=Dk(i,{header:1,raw:true,cellDates:true});vard=h[0],v=h.slice(1),p=i["!cols"]||[];varm=0,b=0,g=0,w=1;for(m=0;m<d.length;++m){if(((p[m]||{}).DBF||{}).name){d[m]=p[m].DBF.name;++g;continue}if(d[m]==null)continue;++g;if(typeofd[m]==="number")d[m]=d[m].toString(10);if(typeofd[m]!=="string")thrownewError("DBF Invalid column name "+d[m]+" |"+typeofd[m]+"|");if(d.indexOf(d[m])!==m)for(b=0;b<1024;++b)if(d.indexOf(d[m]+"_"+b)==-1){d[m]+="_"+b;break}}vark=en(i["!ref"]);varT=[];vary=[];varE=[];for(m=0;m<=k.e.c-k.s.c;++m){var_="",S="",x=0;varA=[];for(b=0;b<v.length;++b){if(v[b][m]!=null)A.push(v[b][m])}if(A.length==0||d[m]==null){T[m]="?";continue}for(b=0;b<A.length;++b){switch(typeofA[b]){case"number":S="B";break;case"string":S="C";break;case"boolean":S="L";break;case"object":S=A[b]instanceofDate?"D":"C";break;default:S="C";}x=Math.max(x,(typeofa!=="undefined"&&typeofA[b]=="string"?a.utils.encode(t,A[b]):String(A[b])).length);_=_&&_!=S?"C":S}if(x>250)x=250;S=((p[m]||{}).DBF||{}).type;if(S=="C"){if(p[m].DBF.len>x)x=p[m].DBF.len}if(_=="B"&&S=="N"){_="N";E[m]=p[m].DBF.dec;x=p[m].DBF.len}y[m]=_=="C"||S=="N"?x:o[_]||0;w+=y[m];T[m]=_}varC=u.next(32);C._W(4,318902576);C._W(4,v.length);C._W(2,296+32*g);C._W(2,w);for(m=0;m<4;++m)C._W(4,0);varI=+n[r]||3;C._W(4,0|I<<8);if(e[I]!=+f.codepage){if(f.codepage)console.error("DBF Unsupported codepage "+r+", using 1252");r=1252}for(m=0,b=0;m<d.length;++m){if(d[m]==null)continue;varO=u.next(32);varR=(d[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);O._W(1,R,"sbcs");O._W(1,T[m]=="?"?"C":T[m],"sbcs");O._W(4,b);O._W(1,y[m]||o[T[m]]||0);O._W(1,E[m]||0);O._W(1,2);O._W(4,0);O._W(1,0);O._W(4,0);O._W(4,0);b+=y[m]||o[T[m]]||0}varN=u.next(264);N._W(4,13);for(m=0;m<65;++m)N._W(4,0);for(m=0;m<v.length;++m){varF=u.next(w);F._W(1,0);for(b=0;b<d.length;++b){if(d[b]==null)continue;switch(T[b]){case"L":F._W(1,v[m][b]==null?6
r._W(1,e.charset||0);r._W(1,0);Un(e.color,r);vara=0;if(e.scheme=="major")a=1;if(e.scheme=="minor")a=2;r._W(1,a);un(e.name,r);returnr.length>r.l?r.slice(0,r.l):r}varOc=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];varRc;varNc=Oa;functionFc(e,r){if(!r)r=Ra(4*3+8*7+16*1);if(!Rc)Rc=fr(Oc);vart=Rc[e.patternType];if(t==null)t=40;r._W(4,t);vara=0;if(t!=40){Un({auto:1},r);Un({auto:1},r);for(;a<12;++a)r._W(4,0)}else{for(;a<4;++a)r._W(4,0);for(;a<12;++a)r._W(4,0)}returnr.length>r.l?r.slice(0,r.l):r}functionDc(e,r){vart=e.l+r;vara=e._R(2);varn=e._R(2);e.l=t;return{ixfe:a,numFmtId:n}}functionPc(e,r,t){if(!t)t=Ra(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);vara=0;t._W(1,a);t._W(1,0);t._W(1,0);t._W(1,0);returnt}functionLc(e,r){if(!r)r=Ra(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);returnr}varMc=Oa;functionUc(e,r){if(!r)r=Ra(51);r._W(1,0);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);returnr.length>r.l?r.slice(0,r.l):r}functionBc(e,r){if(!r)r=Ra(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);Sn(e.name||"",r);returnr.length>r.l?r.slice(0,r.l):r}functionWc(e,r,t){vara=Ra(4+256*2*4);a._W(4,e);Sn(r,a);Sn(t,a);returna.length>a.l?a.slice(0,a.l):a}functionzc(e,r,t){vara={};a.NumberFmt=[];for(varninq)a.NumberFmt[n]=q[n];a.CellXf=[];a.Fonts=[];vari=[];vars=false;Na(e,functionf(e,n,l){switch(l){case44:a.NumberFmt[e[0]]=e[1];Je(e[1],e[0]);break;case43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Qo(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case1025:break;case45:break;case46:break;case47:if(i[i.length-1]==617){a.CellXf.push(e)}break;case48:;case507:;case572:;case475:break;case1171:;case2102:;case1130:;case512:;case2095:;case3072:break;case35:s=true;break;case36:s=false;break;case37:i.push(l);s=true;break;case38:i.pop();s=false;break;default:if(n.T>0)i.push(l);elseif(n.T<0)i.pop();elseif(!s||t.WTF&&i[i.length-1]!=37)thrownewError("Unexpected record 0x"+l.toString(16));}});returna}functionHc(e,r){if(!r)return;vart=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(vara=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Da(e,615,on(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(r[a]!=null)Da(e,44,Ac(a,r[a]))});Da(e,616)}functionVc(e){varr=1;if(r==0)return;Da(e,611,on(r));Da(e,43,Ic({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Da(e,612)}function$c(e){varr=2;if(r==0)return;Da(e,603,on(r));Da(e,45,Fc({patternType:"none"}));Da(e,45,Fc({patternType:"gray125"}));Da(e,604)}functionXc(e){varr=1;if(r==0)return;Da(e,613,on(r));Da(e,46,Uc({}));Da(e,614)}functionGc(e){varr=1;Da(e,626,on(r));Da(e,47,Pc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Da(e,627)}functionjc(e,r){Da(e,617,on(r.length));r.forEach(function(r){Da(e,47,Pc(r,0))});Da(e,618)}functionKc(e){varr=1;Da(e,619,on(r));Da(e,48,Bc({xfId:0,builtinId:0,name:"Normal"}));Da(e,620)}functionYc(e){varr=0;Da(e,505,on(r));Da(e,506)}functionZc(e){varr=0;Da(e,508,Wc(r,"TableStyleMedium9","PivotStyleMedium4"));Da(e,509)}functionJc(){return}functionqc(e,r){vart=Fa();Da(t,278);Hc(t,e.SSF);Vc(t,e);$c(t,e);Xc(t,e);Gc(t,e);jc(t,r.cellXfs);Kc(t,e);Yc(t,e);Zc(t,e);Jc(t,e);Da(t,279);returnt.end()}varQc=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];functioneu(e,r,t){r.themeElements.clrScheme=[];vara={};(e[0].match(ft)||[]).forEach(function(e){varn=ct(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"</a:srgbClr>":break;case"<a:sysClr":a.rgb=n.lastClr;break;case"</a:sysClr>":break;case"</a:dk1>":;case"</a:lt1>":;case"<a:dk1>":;case"<a:lt1>":;case"<a:dk2>":;case"</a
;case476:l["!margins"]=e;break;case147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;if(e.above||e.left)l["!outline"]={above:e.above,left:e.left};break;case137:if(!n.Views)n.Views=[{}];if(!n.Views[0])n.Views[0]={};if(e.RTL)n.Views[0].RTL=true;break;case485:break;case64:;case1053:break;case151:break;case152:;case175:;case644:;case625:;case562:;case396:;case1112:;case1146:;case471:;case1050:;case649:;case1105:;case589:;case607:;case564:;case1055:;case168:;case174:;case1180:;case499:;case507:;case550:;case171:;case167:;case1177:;case169:;case1181:;case552:;case661:;case639:;case478:;case537:;case477:;case536:;case1103:;case680:;case1104:;case1024:;case663:;case535:;case678:;case504:;case1043:;case428:;case170:;case3072:;case50:;case2070:;case1045:break;case35:h=true;break;case36:h=false;break;case37:u.push(g);h=true;break;case38:u.pop();h=false;break;default:if(r.T){}elseif(!h||f.WTF)thrownewError("Unexpected record 0x"+g.toString(16));}},f);deletef.supbooks;deletef["!row"];if(!l["!ref"]&&(c.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0)))l["!ref"]=Ja(o||c);if(f.sheetRows&&l["!ref"]){varM=en(l["!ref"]);if(f.sheetRows<=+M.e.r){M.e.r=f.sheetRows-1;if(M.e.r>c.e.r)M.e.r=c.e.r;if(M.e.r<M.s.r)M.s.r=M.e.r;if(M.e.c>c.e.c)M.e.c=c.e.c;if(M.e.c<M.s.c)M.s.c=M.e.c;l["!fullref"]=l["!ref"];l["!ref"]=Ja(M)}}if(_.length>0)l["!merges"]=_;if(R.length>0)l["!cols"]=R;if(N.length>0)l["!rows"]=N;if(a["!id"][l["!legrel"]])l["!legdrawel"]=a["!id"][l["!legrel"]];returnl}functionfm(e,r,t,a,n,i,s,f){varl={r:t,c:a};if(r.c)i["!comments"].push([Ya(l),r.c]);if(r.v===undefined)returnfalse;varo="";switch(r.t){case"b":o=r.v?"1":"0";break;case"d":r=Tr(r);r.z=r.z||q[14];r.v=dr(wr(r.v,f),f);r.t="n";break;case"n":;case"e":o=""+r.v;break;default:o=r.v;break;}l.s=yv(n.cellXfs,r,n);if(r.l)i["!links"].push([Ya(l),r.l]);switch(r.t){case"s":;case"str":if(n.bookSST){o=wv(n.Strings,r.v==null?"":String(r.v),n.revStrings);l.t="s";l.v=o;if(s)Da(e,18,_p(r,l));elseDa(e,7,yp(r,l))}else{l.t="str";if(s)Da(e,17,Mp(r,l));elseDa(e,6,Pp(r,l))}returntrue;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3){if(s)Da(e,13,Np(r,l));elseDa(e,2,Op(r,l))}elseif(!isFinite(r.v)){l.t="e";if(isNaN(r.v)){if(s)Da(e,14,kp({t:"e",v:36},l));elseDa(e,3,gp({t:"e",v:36},l))}else{if(s)Da(e,14,kp({t:"e",v:7},l));elseDa(e,3,gp({t:"e",v:7},l))}}else{if(s)Da(e,16,Cp(r,l));elseDa(e,5,xp(r,l))}returntrue;case"b":l.t="b";if(s)Da(e,15,mp(r,l));elseDa(e,4,vp(r,l));returntrue;case"e":l.t="e";if(s)Da(e,14,kp(r,l));elseDa(e,3,gp(r,l));returntrue;}if(s)Da(e,12,hp(r,l));elseDa(e,1,cp(r,l));returntrue}functionlm(e,r,t,a,n){vari=en(r["!ref"]||"A1"),s="",f=[];varl=(((n||{}).Workbook||{}).WBProps||{}).date1904;Da(e,145);varo=r["!data"]!=null,c=o?r["!data"][i.s.r]:[];varu=i.e.r;if(r["!rows"])u=Math.max(i.e.r,r["!rows"].length-1);for(varh=i.s.r;h<=u;++h){s=Wa(h);if(o)c=r["!data"][h];ap(e,r,i,h);if(o&&!c)continue;vard=false;if(h<=i.e.r)for(varv=i.s.c;v<=i.e.c;++v){if(h===i.s.r)f[v]=$a(v);varp=o?c[v]:r[f[v]+s];if(!p){d=false;continue}d=fm(e,p,h,v,a,r,d,l)}}Da(e,146)}functionom(e,r){if(!r||!r["!merges"])return;Da(e,177,$p(r["!merges"].length));r["!merges"].forEach(function(r){Da(e,176,Vp(r))});Da(e,178)}functioncm(e,r){if(!r||!r["!cols"])return;Da(e,390);r["!cols"].forEach(function(r,t){if(r)Da(e,60,Zp(t,r))});Da(e,391)}functionum(e,r){if(!r||!r["!ref"])return;Da(e,648);Da(e,649,tm(en(r["!ref"])));Da(e,650)}functionhm(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;vara=yi(t,-1,r[1].Target.replace(/#[\s\S]*$/,""),gi.HLINK);Da(e,494,Gp(r,a))});deleter["!links"]}functiondm(e,r,t,a){if(r["!comments"].length>0){varn=yi(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",gi.VML);Da(e,551,Cn("rId"+n));r["!legacy"]=n}}functionvm(e,r,t,a){if(!r["!autofilter"])return;varn=r["!autofilter"];vari=typeofn.ref==="string"?n.ref:Ja(n.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];vars=t.Workbook.Names;varf=Za(i);if(f.s.r==f.e.r){f.e.r=Za(r["!ref"]).e.r;i=Ja(f)}for(varl=0;l<s
}elseif(i[0].charAt(i[0].length-2)!=="/"){u=Vt.lastIndex;c=-+ct(i[0],false)["position"]||0}break;}}returna}functionPg(e,r,t){vara=r||{};if(g!=null&&a.dense==null)a.dense=g;varn=Ht(e);vari=[],s;varf;varl,o="",c=0;varu;varh;vard={},v=[];varp={};if(a.dense)p["!data"]=[];varm,b;varw={value:""},k={};varT="",y=0,E,_="",S=0;varx=[],A=[];varC=-1,I=-1,O={s:{r:1e6,c:1e7},e:{r:0,c:0}};varR=0;varN=t||{},F={};varD=[],P={},L=0,M=0;varU=[],B=1,W=1;varz=[];varH={Names:[],WBProps:{}};varV={};var$=["",""];varX=[],G={};varj="",K=0;varY=false,Z=false;varJ=0;Vt.lastIndex=0;n=Pr(Mr(n,"<!--","-->"));while(m=Vt.exec(n))switch(m[3]=m[3].replace(/_[\s\S]*$/,"")){case"table":;case"工作表":if(m[1]==="/"){if(O.e.c>=O.s.c&&O.e.r>=O.s.r)p["!ref"]=Ja(O);elsep["!ref"]="A1:A1";if(a.sheetRows>0&&a.sheetRows<=O.e.r){p["!fullref"]=p["!ref"];O.e.r=a.sheetRows-1;p["!ref"]=Ja(O)}if(D.length)p["!merges"]=D;if(U.length)p["!rows"]=U;u.name=u["名称"]||u.name;if(typeofJSON!=="undefined")JSON.stringify(u);v.push(u.name);d[u.name]=p;Z=false}elseif(m[0].charAt(m[0].length-2)!=="/"){u=ct(m[0],false);C=I=-1;O.s.r=O.s.c=1e7;O.e.r=O.e.c=0;p={};if(a.dense)p["!data"]=[];D=[];U=[];Z=true}break;case"table-row-group":if(m[1]==="/")--R;else++R;break;case"table-row":;case"行":if(m[1]==="/"){C+=B;B=1;break}h=ct(m[0],false);if(h["行号"])C=h["行号"]-1;elseif(C==-1)C=0;B=+h["number-rows-repeated"]||1;if(B<10)for(J=0;J<B;++J)if(R>0)U[C+J]={level:R};I=-1;break;case"covered-table-cell":if(m[1]!=="/")++I;if(a.sheetStubs){if(a.dense){if(!p["!data"][C])p["!data"][C]=[];p["!data"][C][I]={t:"z"}}elsep[Ya({r:C,c:I})]={t:"z"}}T="";x=[];break;case"table-cell":;case"数据":if(m[0].charAt(m[0].length-2)==="/"){++I;w=ct(m[0],false);W=parseInt(w["number-columns-repeated"]||"1",10);b={t:"z",v:null};if(w.formula&&a.cellFormula!=false)b.f=hv(pt(w.formula));if(w["style-name"]&&F[w["style-name"]])b.z=F[w["style-name"]];if((w["数据类型"]||w["value-type"])=="string"){b.t="s";b.v=pt(w["string-value"]||"");if(a.dense){if(!p["!data"][C])p["!data"][C]=[];p["!data"][C][I]=b}else{p[$a(I)+Wa(C)]=b}}I+=W-1}elseif(m[1]!=="/"){++I;T=_="";y=S=0;x=[];A=[];W=1;varq=B?C+B-1:C;if(I>O.e.c)O.e.c=I;if(I<O.s.c)O.s.c=I;if(C<O.s.r)O.s.r=C;if(q>O.e.r)O.e.r=q;w=ct(m[0],false);k=ut(m[0],true);X=[];G={};b={t:w["数据类型"]||w["value-type"],v:null};if(w["style-name"]&&F[w["style-name"]])b.z=F[w["style-name"]];if(a.cellFormula){if(w.formula)w.formula=pt(w.formula);if(w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]){L=parseInt(w["number-matrix-rows-spanned"],10)||0;M=parseInt(w["number-matrix-columns-spanned"],10)||0;P={s:{r:C,c:I},e:{r:C+L-1,c:I+M-1}};b.F=Ja(P);z.push([P,b.F])}if(w.formula)b.f=hv(w.formula);elsefor(J=0;J<z.length;++J)if(C>=z[J][0].s.r&&C<=z[J][0].e.r)if(I>=z[J][0].s.c&&I<=z[J][0].e.c)b.F=z[J][1]}if(w["number-columns-spanned"]||w["number-rows-spanned"]){L=parseInt(w["number-rows-spanned"],10)||0;M=parseInt(w["number-columns-spanned"],10)||0;P={s:{r:C,c:I},e:{r:C+L-1,c:I+M-1}};D.push(P)}if(w["number-columns-repeated"])W=parseInt(w["number-columns-repeated"],10);switch(b.t){case"boolean":b.t="b";b.v=St(w["boolean-value"])||+w["boolean-value"]>=1;break;case"float":b.t="n";b.v=parseFloat(w.value);if(a.cellDates&&b.z&&Le(b.z)){b.v=vr(b.v+(H.WBProps.date1904?1462:0));b.t=typeofb.v=="number"?"n":"d"}break;case"percentage":b.t="n";b.v=parseFloat(w.value);break;case"currency":b.t="n";b.v=parseFloat(w.value);break;case"date":b.t="d";b.v=wr(w["date-value"],H.WBProps.date1904);if(!a.cellDates){b.t="n";b.v=dr(b.v,H.WBProps.date1904)}if(!b.z)b.z="m/d/yy";break;case"time":b.t="n";b.v=pr(w["time-value"])/86400;if(a.cellDates){b.v=vr(b.v);b.t=typeofb.v=="number"?"n":"d"}if(!b.z)b.z="HH:MM:SS";break;case"number":b.t="n";b.v=parseFloat(w["数据数值"]);break;default:if(b.t==="string"||b.t==="text"||!b.t){b.t="s";if(w["string-value"]!=null){T=pt(w["string-value"]);x=[]}}elsethrownewError("Unsupported value type "+b.t);}}else{Y=false;if(k["calcext:value-type"]=="error"&&ui[T]!=null){b.t="e";b.w=T;b.v=ui[T]}if(b.t==="s"){b.v=T||"";if(x.length)b.R=x;Y=y==0
if(h>0){n.push(n[u][Vg](n[u].length-h));c-=h}++u;while(c>=n[u].length){n.push(n[u]);c-=n[u].length;++u}if(c)n.push(n[u][Vg](0,c))}if(n.length>25)n=[jg(n)]}}vard=0;for(varv=0;v<n.length;++v)d+=n[v].length;if(d!=a)thrownewError("Unexpected length: ".concat(d," != ").concat(a));returnn}functionow(e){if(Array.isArray(e))e=newUint8Array(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.apply(r,lw(a,e[Vg](t,t+n)));t+=n}if(t!==e.length)thrownewError("data is not a valid framed stream!");returnr.length==1?r[0]:jg(r)}functioncw(e){varr=[];vart=0;while(t<e.length){vara=Math.min(e.length-t,268435455);varn=newUint8Array(4);r.push(n);vari=qg(a);vars=i.length;r.push(i);if(a<=60){s++;r.push(newUint8Array([a-1<<2]))}elseif(a<=256){s+=2;r.push(newUint8Array([240,a-1&255]))}elseif(a<=65536){s+=3;r.push(newUint8Array([244,a-1&255,a-1>>8&255]))}elseif(a<=16777216){s+=4;r.push(newUint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))}elseif(a<=4294967296){s+=5;r.push(newUint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))}r.push(e[Vg](t,t+a));s+=a;n[0]=0;n[1]=s&255;n[2]=s>>8&255;n[3]=s>>16&255;t+=a}returnjg(r)}varuw=function(){return{sst:[],rsst:[],ofmt:[],nfmt:[],fmla:[],ferr:[],cmnt:[]}};functionhw(e,r,t,a,n){vari,s,f,l;varo=r&255,c=r>>8;varu=c>=5?n:a;e:if(t&(c>4?8:4)&&e.t=="n"&&o==7){varh=((i=u[7])==null?void0:i[0])?rw(u[7][0].data):-1;if(h==-1)breake;vard=((s=u[15])==null?void0:s[0])?rw(u[15][0].data):-1;varv=((f=u[16])==null?void0:f[0])?rw(u[16][0].data):-1;varp=((l=u[40])==null?void0:l[0])?rw(u[40][0].data):-1;varm=e.v,b=m;r:if(p){if(m==0){d=v=2;breakr}if(m>=604800)d=1;elseif(m>=86400)d=2;elseif(m>=3600)d=4;elseif(m>=60)d=8;elseif(m>=1)d=16;elsed=32;if(Math.floor(m)!=m)v=32;elseif(m%60)v=16;elseif(m%3600)v=8;elseif(m%86400)v=4;elseif(m%604800)v=2;if(v<d)v=d}if(d==-1||v==-1)breake;varg=[],w=[];if(d==1){b=m/604800;if(v==1){w.push('d"d"')}else{b|=0;m-=604800*b}g.push(b+(h==2?" week"+(b==1?"":"s"):h==1?"w":""))}if(d<=2&&v>=2){b=m/86400;if(v>2){b|=0;m-=86400*b}w.push('d"d"');g.push(b+(h==2?" day"+(b==1?"":"s"):h==1?"d":""))}if(d<=4&&v>=4){b=m/3600;if(v>4){b|=0;m-=3600*b}w.push((d>=4?"[h]":"h")+'"h"');g.push(b+(h==2?" hour"+(b==1?"":"s"):h==1?"h":""))}if(d<=8&&v>=8){b=m/60;if(v>8){b|=0;m-=60*b}w.push((d>=8?"[m]":"m")+'"m"');if(h==0)g.push((d==8&&v==8||b>=10?"":"0")+b);elseg.push(b+(h==2?" minute"+(b==1?"":"s"):h==1?"m":""))}if(d<=16&&v>=16){b=m;if(v>16){b|=0;m-=b}w.push((d>=16?"[s]":"s")+'"s"');if(h==0)g.push((v==16&&d==16||b>=10?"":"0")+b);elseg.push(b+(h==2?" second"+(b==1?"":"s"):h==1?"s":""))}if(v>=32){b=Math.round(1e3*m);if(d<32)w.push('.000"ms"');if(h==0)g.push((b>=100?"":b>=10?"0":"00")+b);elseg.push(b+(h==2?" millisecond"+(b==1?"":"s"):h==1?"ms":""))}e.w=g.join(h==0?":":" ");e.z=w.join(h==0?'":"':" ");if(h==0)e.w=e.w.replace(/:(\d\d\d)$/,".$1")}}functiondw(e,r,t,a){varn=$g(e);vari=n.getUint32(4,true);vars=-1,f=-1,l=-1,o=NaN,c=0,u=newDate(Date.UTC(2001,0,1));varh=t>1?12:8;if(i&2){l=n.getUint32(h,true);h+=4}h+=Kg(i&(t>1?3468:396))*4;if(i&512){s=n.getUint32(h,true);h+=4}h+=Kg(i&(t>1?12288:4096))*4;if(i&16){f=n.getUint32(h,true);h+=4}if(i&32){o=n.getFloat64(h,true);h+=8}if(i&64){u.setTime(u.getTime()+(c=n.getFloat64(h,true))*1e3);h+=8}if(t>1){i=n.getUint32(8,true)>>>16;if(i&255){if(l==-1)l=n.getUint32(h,true);h+=4}}vard;varv=e[t>=4?1:2];switch(v){case0:returnvoid0;case2:d={t:"n",v:o};break;case3:d={t:"s",v:r.sst[f]};break;case5:{if(a==null?void0:a.cellDates)d={t:"d",v:u};elsed={t:"n",v:c/86400+35430,z:q[14]}}break;case6:d={t:"b",v:o>0};break;case7:d={t:"n",v:o};break;case8:d={t:"e",v:0};break;case9:{if(s>-1){varp=r.rsst[s];d={t:"s",v:p.v};if(p.l)d.l={Target:p.l}}elsethrownewError("Unsupported cell type ".concat(e[Vg](0,4)))}break;default:thrownewError("Unsupported cell type ".concat(e[Vg](0,4)));}if(l>-1)hw(d,v|t<<8,i,r.ofmt[l],r.nfmt[l]);if(v==7)d.v/=86400;returnd}functionvw(e,r,t){vara=$g(e);varn=a.getUint32(4,true);vari=a.getUint32(8,true);vars=12;varf=-1,l=-1,o=-1,c=NaN,u=NaN,h=0,d=newDate(Dat
})});a[3].push({type:2,data:nw([[],[{type:0,data:qg(i)}],[{type:0,data:qg(1)}],[],[],[],[],[],[],[],[{type:2,data:ww(l)}]])});kw(t,l);Ww(e,r,2,function(e){vart=aw(e.messages[0].data);$w(t,r,P,l);$w(t,r,l,f);if(s.length)$w(t,r,l,s);e.messages[0].data=nw(t)})})}a[2][0].data=qg(v.cmnt.length+1);t.messages[0].data=nw(a)})}}p[4][0].data=nw(m)}a.messages[0].data=nw(p)}functionZw(e){returnfunctionr(t){for(vara=0;a!=e.length;++a){varn=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}functionJw(e){Zw([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)}functionqw(e){Zw([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]])(e)}functionQw(e){if(gi.WS.indexOf(e)>-1)return"sheet";if(gi.CS&&e==gi.CS)return"chart";if(gi.DS&&e==gi.DS)return"dialog";if(gi.MS&&e==gi.MS)return"macro";returne&&e.length?e:"sheet"}functionek(e,r){if(!e)return0;try{e=r.map(functiona(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Qw(e["!id"][r.id].Type)]})}catch(t){returnnull}return!e||e.length===0?null:e}functionrk(e,r,t,a,n,i,s,f){if(!e||!e["!legdrawel"])return;varl=tt(e["!legdrawel"].Target,a);varo=Zr(t,l,true);if(o)Ru(Ot(o),e,f||[])}functiontk(e,r,t,a,n,i,s,f,l,o,c,u){try{i[a]=ki(Zr(e,t,true),r);varh=Yr(e,r);vard;switch(f){case"sheet":d=tb(h,r,n,l,i[a],o,c,u);break;case"chart":d=ab(h,r,n,l,i[a],o,c,u);if(!d||!d["!drawel"])break;varv=tt(d["!drawel"].Target,r);varp=wi(v);varm=Ou(Zr(e,v,true),ki(Zr(e,p,true),v));varb=tt(m,v);varg=wi(b);d=km(Zr(e,b,true),b,l,ki(Zr(e,g,true),b),o,d);break;case"macro":d=nb(h,r,n,l,i[a],o,c,u);break;case"dialog":d=ib(h,r,n,l,i[a],o,c,u);break;default:thrownewError("Unrecognized sheet type "+f);}s[a]=d;varw=[],k=[];if(i&&i[a])ir(i[a]).forEach(function(t){varn="";if(i[a][t].Type==gi.CMNT){n=tt(i[a][t].Target,r);w=lb(Yr(e,n,true),n,l);if(!w||!w.length)return;Du(d,w,false)}if(i[a][t].Type==gi.TCMNT){n=tt(i[a][t].Target,r);k=k.concat(Mu(Yr(e,n,true),l))}});if(k&&k.length)Du(d,k,true,l.people||[]);rk(d,f,e,r,n,l,o,w)}catch(T){if(l.WTF)throwT}}functionak(e){returne.charAt(0)=="/"?e.slice(1):e}functionnk(e,r){$e();r=r||{};Jw(r);if(jr(e,"META-INF/manifest.xml"))returnLg(e,r);if(jr(e,"objectdata.xml"))returnLg(e,r);if(jr(e,"Index/Document.iwa")){if(typeofUint8Array=="undefined")thrownewError("NUMBERS file parsing requires Uint8Array support");if(typeofNw!="undefined"){if(e.FileIndex)returnNw(e,r);vart=Qe.utils.cfb_new();qr(e).forEach(function(r){Qr(t,r,Jr(e,r))});returnNw(t,r)}thrownewError("Unsupported NUMBERS file")}if(!jr(e,"[Content_Types].xml")){if(jr(e,"index.xml.gz"))thrownewError("Unsupported NUMBERS 08 file");if(jr(e,"index.xml"))thrownewError("Unsupported NUMBERS 09 file");vara=Qe.find(e,"Index.zip");if(a){r=Tr(r);deleter.type;if(typeofa.content=="string")r.type="binary";if(typeofBun!=="undefined"&&Buffer.isBuffer(a.content))returnmk(newUint8Array(a.content),r);returnmk(a.content,r)}thrownewError("Unsupported ZIP file")}varn=qr(e);vari=mi(Zr(e,"[Content_Types].xml"));vars=false;varf,l;if(i.workbooks.length===0){l="xl/workbook.xml";if(Yr(e,l,true))i.workbooks.push(l)}if(i.workbooks.length===0){l="xl/workbook.bin";if(!Yr(e,l,true))thrownewError("Could not find workbook");i.workbooks.push(l);s=true}if(i.workbooks[0].slice(-3)=="bin")s=true;varo={};varc={};if(!r.bookSheets&&!r.bookProps){mv=[];if(i.sst)try{mv=fb(Yr(e,ak(i.sst)),i.sst,r)}catch(u){if(r.WTF)throwu}if(r.cellStyles&&i.themes.length)o=nu(Zr(e,i.themes[0].replace(/^\//,""),true)||"",r);if(i.style)c=sb(Yr(e,ak(i.style)),i.style,o,r)}i.links.map(function(t){try{vara=ki(Zr(e,wi(ak(t))),t);returncb(Yr(e,ak(t)),a,t,r)}catch(n){}});varh=rb(Yr(e,ak(i.workbooks[0])),i.workbooks[0],r);vard={},v="";if(i.coreprops.length){v=Yr(e,ak(i.coreprops[0]),true);if(v)d=Ri(v);if(i.extprops.length!==0){v=