returne}functiono(t){returnt.indexOf(".")>-1?t.replace(r,"").replace(e,".$1"):t}returnfunctionl(e){varr=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;if(r>=-4&&r<=-1)t=e.toPrecision(10+r);elseif(Math.abs(r)<=9)t=i(e);elseif(r===10)t=e.toFixed(10).substr(0,12);elset=s(e);returno(f(t))}}();e._general_num=k;functionS(e,r){switch(typeofe){case"string":returne;case"boolean":returne?"TRUE":"FALSE";case"number":return(e|0)===e?E(e):k(e);case"undefined":return"";case"object":if(e==null)return"";if(einstanceofDate)returnN(14,w(e,r&&r.date1904),r);}thrownewError("unsupported value in General format: "+e)}e._general=S;functionA(){return0}function_(e,r,t,n){vari="",s=0,f=0,o=t.y,l,c=0;switch(e){case98:o=t.y+543;case121:switch(r.length){case1:;case2:l=o%100;c=2;break;default:l=o%1e4;c=4;break;}break;case109:switch(r.length){case1:;case2:l=t.m;c=r.length;break;case3:returnu[t.m-1][1];case5:returnu[t.m-1][0];default:returnu[t.m-1][2];}break;case100:switch(r.length){case1:;case2:l=t.d;c=r.length;break;case3:returnh[t.q][0];default:returnh[t.q][1];}break;case104:switch(r.length){case1:;case2:l=1+(t.H+11)%12;c=r.length;break;default:throw"bad hour format: "+r;}break;case72:switch(r.length){case1:;case2:l=t.H;c=r.length;break;default:throw"bad hour format: "+r;}break;case77:switch(r.length){case1:;case2:l=t.M;c=r.length;break;default:throw"bad minute format: "+r;}break;case115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))returna(t.S,r.length);if(n>=2)f=n===3?1e3:100;elsef=n===1?10:1;s=Math.round(f*(t.S+t.u));if(s>=60*f)s=0;if(r==="s")returns===0?"0":""+s/f;i=a(s,2+n);if(r==="ss")returni.substr(0,2);return"."+i.substr(2,r.length-1);case90:switch(r){case"[h]":;case"[hh]":l=t.D*24+t.H;break;case"[m]":;case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}c=r.length===3?1:2;break;case101:l=o;c=1;}if(c>0)returna(l,c);elsereturn""}functionB(e){varr=3;if(e.length<=r)returne;vart=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);returna}varT=functionU(){vare=/%/g;functions(r,a,n){vari=a.replace(e,""),s=a.length-i.length;returnT(r,i,n*Math.pow(10,2*s))+t("%",s)}functionf(e,r,t){vara=r.length-1;while(r.charCodeAt(a-1)===44)--a;returnT(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}functiono(e,r){vart;vara=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";elseif(r<0)return"-"+o(e,-r);varn=e.indexOf(".");if(n===-1)n=e.indexOf("E");vari=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){vars=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);elset+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){returnr+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}elset=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");returnt.replace("e","E")}varc=/# (\?+)( ?)\/( ?)(\d+)/;functionh(e,r,i){vars=parseInt(e[4],10),f=Math.round(r*s),o=Math.floor(f/s);varl=f-o*s,c=s;returni+(o===0?"":""+o)+" "+(l===0?t(" ",e[1].length+1+e[4].length):n(l,e[1].length)+e[2]+"/"+e[3]+a(c,e[4].length))}functionu(e,r,a){returna+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}vard=/^#*0*\.([0#]+)/;varp=/\).*[0#]/;varg=/\(###\) ###\\?-####/;functionm(e){varr="",t;for(vara=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case35:break;case63:r+=" ";break;case48:r+="0";break;default:r+=String.fromCharCode(t);}returnr}functionb(e,r){vart=Math.pow(10,r);return""+Math.round(e*t)/t}functionC(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return0}retu
returne.toUpperCase()});vara=t.map(function(e){varr=e.split("/");returnr[r.length-(e.slice(-1)=="/"?2:1)]});varn=false;if(r.charCodeAt(0)===47){n=true;r=t[0].slice(0,-1)+r}elsen=r.indexOf("/")!==-1;vari=r.toUpperCase();vars=n===true?t.indexOf(i):a.indexOf(i);if(s!==-1)returne.FileIndex[s];varf=!i.match(x);i=i.replace(T,"");if(f)i=i.replace(x,"!");for(s=0;s<t.length;++s){if((f?t[s].replace(x,"!"):t[s]).replace(T,"")==i)returne.FileIndex[s];if((f?a[s].replace(x,"!"):a[s]).replace(T,"")==i)returne.FileIndex[s]}returnnull}vary=64;varI=-2;varR="d0cf11e0a1b11ae1";varD=[208,207,17,224,161,177,26,225];varO="00000000000000000000000000000000";varF={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:I,FREESECT:-1,HEADER_SIGNATURE:R,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};functionP(e,r,t){i();vara=A(e,t);n.writeFileSync(r,a)}functionN(e){varr=newArray(e.length);for(vart=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);returnr.join("")}functionM(e,r){vart=A(e,r);switch(r&&r.type){case"file":i();n.writeFileSync(r.filename,t);returnt;case"binary":returnN(t);case"base64":returnb.encode(N(t));}returnt}functionU(e){varr={};w(r,e);returnr}functionH(e,r,t,n){vari=n&&n.unsafe;if(!i)w(e);vars=!i&&L.find(e,r);if(!s){varf=e.FullPaths[0];if(r.slice(0,f.length)==f)f=r;else{if(f.slice(-1)!="/")f+="/";f=(f+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(f);if(!i)L.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID}returns}functionW(e,r){w(e);vart=L.find(e,r);if(t)for(vara=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==t){e.FileIndex.splice(a,1);e.FullPaths.splice(a,1);returntrue}returnfalse}functionV(e,r,t){w(e);varn=L.find(e,r);if(n)for(vari=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==n){e.FileIndex[i].name=a(t);e.FullPaths[i]=t;returntrue}returnfalse}functionz(e){S(e,true)}e.find=_;e.read=C;e.parse=s;e.write=M;e.writeFile=P;e.utils={cfb_new:U,cfb_add:H,cfb_del:W,cfb_mov:V,cfb_gc:z,ReadShift:Fr,CheckField:Ur,prep_blob:Hr,bconcat:B,consts:F};returne}();if(typeofrequire!=="undefined"&&typeofmodule!=="undefined"&&typeofN==="undefined"){module.exports=L}varM;if(typeofrequire!=="undefined")try{M=require("fs")}catch(U){}functionH(e){if(typeofe==="string")returnk(e);if(Array.isArray(e))returnA(e);returne}functionW(e,r,t){if(typeofM!=="undefined"&&M.writeFileSync)returnt?M.writeFileSync(e,r,t):M.writeFileSync(e,r);vara=t=="utf8"?We(r):r;if(typeofIE_SaveFile!=="undefined")returnIE_SaveFile(a,e);if(typeofBlob!=="undefined"){varn=newBlob([H(a)],{type:"application/octet-stream"});if(typeofnavigator!=="undefined"&&navigator.msSaveBlob)returnnavigator.msSaveBlob(n,e);if(typeofsaveAs!=="undefined")returnsaveAs(n,e);if(typeofURL!=="undefined"&&typeofdocument!=="undefined"&&document.createElement&&URL.createObjectURL){vari=URL.createObjectURL(n);if(typeofchrome==="object"&&typeof(chrome.downloads||{}).download=="function"){if(URL.revokeObjectURL&&typeofsetTimeout!=="undefined")setTimeout(function(){URL.revokeObjectURL(i)},6e4);returnchrome.downloads.download({url:i,filename:e,saveAs:true})}vars=document.createElement("a");if(s.download!=null){s.download=e;s.href=i;document.body.appendChild(s);s.click();document.body.removeChild(s);if(URL.revokeObjectURL&&typeofsetTimeout!=="undefined")setTimeout(function(){URL.revokeObjectURL(i)},6e4);returni}}}if(typeof$!=="undefined"&&typeofFile!=="undefined"&&typeofFolder!=="undefined")try{varf=File(e);f.open("w");f.encoding="binary";if(Array.isArray(r))r=S(r);f.write(r);f.close();returnr}catch(o){if(!o.message||!o.message.match(/onstruct/))throwo}thrownewError("cannot save file "+e)}functionV(e){if(typeofM!=="undefined")returnM.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.match(/onstruct/))throwa}thrownewE
if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}varn=e._R((a?r-24:r)>>1,"utf16le").replace(T,"");if(a)e.l+=24;returnn}functionZn(e){e.l+=2;varr=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)thrownewError("Bad FileMoniker");vart=e._R(4);if(t===0)returnr.replace(/\\/g,"/");vara=e._R(4);if(e._R(2)!=3)thrownewError("Bad FileMoniker");varn=e._R(a>>1,"utf16le").replace(T,"");returnn}functionQn(e,r){vart=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return$n(e,r);case"0303000000000000c000000000000046":returnZn(e,r);default:thrownewError("Unsupported Moniker "+t);}}functionJn(e){varr=e._R(4);vart=r>0?e._R(r,"utf16le").replace(T,""):"";returnt}functionqn(e,r){vart=e.l+r;vara=e._R(4);if(a!==2)thrownewError("Unrecognized streamVersion: "+a);varn=e._R(2);e.l+=2;vari,s,f,o,l="",c,h;if(n&16)i=Jn(e,t-e.l);if(n&128)s=Jn(e,t-e.l);if((n&257)===257)f=Jn(e,t-e.l);if((n&257)===1)o=Qn(e,t-e.l);if(n&8)l=Jn(e,t-e.l);if(n&32)c=e._R(16);if(n&64)h=ln(e);e.l=t;varu=s||f||o||"";if(u&&l)u+="#"+l;if(!u)u="#"+l;vard={Target:u};if(c)d.guid=c;if(h)d.time=h;if(i)d.Tooltip=i;returnd}functionei(e){varr=Vr(512),t=0;vara=e.Target;varn=a.indexOf("#")>-1?31:23;switch(a.charAt(0)){case"#":n=28;break;case".":n&=~2;break;}r._W(4,2);r._W(4,n);vari=[8,6815827,6619237,4849780,83];for(t=0;t<i.length;++t)r._W(4,i[t]);if(n==28){a=a.slice(1);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}elseif(n&2){i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));r._W(4,2*(a.length+1));for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else{i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));vars=0;while(a.slice(s*3,s*3+3)=="../"||a.slice(s*3,s*3+3)=="..\\")++s;r._W(2,s);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(1,a.charCodeAt(t)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}returnr.slice(0,r.l)}functionri(e){varr=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}functionti(e,r){vart=ri(e,r);t[3]=0;returnt}functionai(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);return{r:r,c:t,ixfe:a}}functionni(e,r,t,a){if(!a)a=Vr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);returna}functionii(e){varr=e._R(2);vart=e._R(2);e.l+=8;return{type:r,flags:t}}functionsi(e,r,t){returnr===0?"":jn(e,r,t)}functionfi(e,r,t){vara=t.biff>8?4:2;varn=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}functionoi(e){varr=e._R(2);vart=Pt(e);return[r,t]}functionli(e,r,t){e.l+=4;r-=4;vara=e.l+r;varn=Vn(e,r,t);vari=e._R(2);a-=e.l;if(i!==a)thrownewError("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;returnn}functionci(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);varn=e._R(2);return{s:{c:a,r:r},e:{c:n,r:t}}}functionhi(e,r){if(!r)r=Vr(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);returnr}functionui(e){varr=e._R(2);vart=e._R(2);vara=e._R(1);varn=e._R(1);return{s:{c:a,r:r},e:{c:n,r:t}}}vardi=ui;functionpi(e){e.l+=4;varr=e._R(2);vart=e._R(2);vara=e._R(2);e.l+=12;return[t,r,a]}functionvi(e){varr={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;returnr}functiongi(e){varr={};e.l+=4;e.cf=e._R(2);returnr}functionmi(e){e.l+=2;e.l+=e._R(2)}varbi={0:mi,4:mi,5:mi,6:mi,7:gi,8:mi,9:mi,10:mi,11:mi,12:mi,13:vi,14:mi,15:mi,16:mi,17:mi,18:mi,19:mi,20:mi,21:pi};functionCi(e,r){vart=e.l+r;vara=[];while(e.l<t){varn=e._R(2);e.l-=2;try{a.push(bi[n](e,t-e.l))}catch(i){e.l=t;returna}}if(e.l!=t)e.l=t;returna}functionwi(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:;case1024:;case768:;case512:;case2:;case7:break;default:if(r>6)thrownewError("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);returnt}functionEi(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;case"xla":break;default:thrownewError("unsupported BIFF version");}vari=Vr(n);i._W(2,a);i
s.push([r[i],i])}}s.sort(function(e,r){returne[0]-r[0]||a[e[1]]-a[r[1]]});returnt[s.pop()[1]]}functioni(e,r){vart=r||{};vara="";if(g!=null&&t.dense==null)t.dense=g;vari=t.dense?[]:{};vars={s:{c:0,r:0},e:{c:0,r:0}};if(e.slice(0,4)=="sep="&&e.charCodeAt(5)==10){a=e.charAt(4);e=e.slice(6)}elsea=n(e.slice(0,1024));varf=0,o=0,l=0;varc=0,h=0,u=a.charCodeAt(0),d=false,p=0;e=e.replace(/\r\n/gm,"\n");varv=t.dateNF!=null?F(t.dateNF):null;functionm(){varr=e.slice(c,h);vara={};if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"')r=r.slice(1,-1).replace(/""/g,'"');if(r.length===0)a.t="z";elseif(t.raw){a.t="s";a.v=r}elseif(r.trim().length===0){a.t="s";a.v=r}elseif(r.charCodeAt(0)==61){if(r.charCodeAt(1)==34&&r.charCodeAt(r.length-1)==34){a.t="s";a.v=r.slice(2,-1).replace(/""/g,'"')}elseif(jl(r)){a.t="n";a.f=r.slice(1)}else{a.t="s";a.v=r}}elseif(r=="TRUE"){a.t="b";a.v=true}elseif(r=="FALSE"){a.t="b";a.v=false}elseif(!isNaN(l=se(r))){a.t="n";if(t.cellText!==false)a.w=r;a.v=l}elseif(!isNaN(fe(r).getDate())||v&&r.match(v)){a.z=t.dateNF||y._table[14];varn=0;if(v&&r.match(v)){r=P(r,t.dateNF,r.match(v)||[]);n=1}if(t.cellDates){a.t="d";a.v=te(r,n)}else{a.t="n";a.v=Q(te(r,n))}if(t.cellText!==false)a.w=y.format(a.z,a.vinstanceofDate?Q(a.v):a.v);if(!t.cellNF)deletea.z}else{a.t="s";a.v=r}if(a.t=="z"){}elseif(t.dense){if(!i[f])i[f]=[];i[f][o]=a}elsei[ot({c:o,r:f})]=a;c=h+1;if(s.e.c<o)s.e.c=o;if(s.e.r<f)s.e.r=f;if(p==u)++o;else{o=0;++f;if(t.sheetRows&&t.sheetRows<=f)returntrue}}e:for(;h<e.length;++h)switch(p=e.charCodeAt(h)){case34:d=!d;break;caseu:;case10:;case13:if(!d&&m())breake;break;default:break;}if(h-c>0)m();i["!ref"]=ct(s);returni}functions(e,t){if(e.slice(0,4)=="sep=")returni(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)returni(e,t);returngt(r(e,t),t)}functionf(e,r){vart="",a=r.type=="string"?[0,0,0,0]:ng(e,r);switch(r.type){case"base64":t=b.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=ae(e);break;case"string":t=e;break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=He(t.slice(3));elseif((r.type=="binary"||r.type=="buffer")&&typeofcptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(1252,t));if(t.slice(0,19)=="socialcalc:version:")returnqs.to_sheet(r.type=="string"?t:He(t),r);returns(t,r)}functiono(e,r){returnpt(f(e,r),r)}functionl(e){varr=[];vart=ht(e["!ref"]),a;varn=Array.isArray(e);for(vari=t.s.r;i<=t.e.r;++i){vars=[];for(varf=t.s.c;f<=t.e.c;++f){varo=ot({r:i,c:f});a=n?(e[i]||[])[f]:e[o];if(!a||a.v==null){s.push(" ");continue}varl=(a.w||(dt(a),a.w)||"").slice(0,10);while(l.length<10)l+=" ";s.push(l+(f===0?" ":""))}r.push(s.join(""))}returnr.join("\n")}return{to_workbook:o,to_sheet:f,from_sheet:l}}();functionrf(e,r){vart=r||{},a=!!t.WTF;t.WTF=true;try{varn=Qs.to_workbook(e,t);t.WTF=a;returnn}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throwi;returnef.to_workbook(e,r)}}vartf=function(){functione(e,r,t){if(!e)return;Hr(e,e.l||0);vara=t.Enum||C;while(e.l<e.length){varn=e._R(2);vari=a[n]||a[255];vars=e._R(2);varf=e.l+s;varo=(i.f||Wr)(e,s,t);e.l=f;if(r(o,i.n,n))return}}functionr(e,r){switch(r.type){case"base64":returnt(E(b.decode(e)),r);case"binary":returnt(E(e),r);case"buffer":;case"array":returnt(e,r);}throw"Unsupported type "+r.type}functiont(r,t){if(!r)returnr;vara=t||{};if(g!=null&&a.dense==null)a.dense=g;varn=a.dense?[]:{},i="Sheet1",s=0;varf={},o=[i];varl={s:{r:0,c:0},e:{r:0,c:0}};varc=a.sheetRows||0;if(r[2]==2)a.Enum=C;elseif(r[2]==26)a.Enum=w;elseif(r[2]==14){a.Enum=w;a.qpro=true;r.l=0}elsethrownewError("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,h){if(r[2]==2)switch(h){case0:a.vers=e;if(e>=4096)a.qpro=true;break;case6:l=e;break;case15:if(!a.qpro)e[1].v=e[1].v.slice(1);case13:;case14:;case16:;case51:if(h==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||y._table[14];if(a.cellDates){e[1].t="d";e[1].v=J(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e
}varFo=Wr;functionPo(e,r){if(!r)r=Vr(51);r._W(1,0);Oo(null,r);Oo(null,r);Oo(null,r);Oo(null,r);Oo(null,r);returnr.length>r.l?r.slice(0,r.l):r}functionNo(e,r){if(!r)r=Vr(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);Rt(e.name||"",r);returnr.length>r.l?r.slice(0,r.l):r}functionLo(e,r,t){vara=Vr(4+256*2*4);a._W(4,e);Rt(r,a);Rt(t,a);returna.length>a.l?a.slice(0,a.l):a}functionMo(e,r,t){vara={};a.NumberFmt=[];for(varniny._table)a.NumberFmt[n]=y._table[n];a.CellXf=[];a.Fonts=[];vari=[];vars=false;zr(e,functionf(e,n,o){switch(o){case44:a.NumberFmt[e[0]]=e[1];y.load(e[1],e[0]);break;case43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Yf(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case1025:break;case45:break;case46:break;case47:if(i[i.length-1]=="BrtBeginCellXFs"){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(n);break;case38:i.pop();break;default:if((n||"").indexOf("Begin")>0)i.push(n);elseif((n||"").indexOf("End")>0)i.pop();elseif(!s||t.WTF)thrownewError("Unexpected record "+o+" "+n);}});returna}functionUo(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;Gr(e,"BrtBeginFmts",mt(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(r[a]!=null)Gr(e,"BrtFmt",Ao(a,r[a]))});Gr(e,"BrtEndFmts")}functionHo(e){varr=1;if(r==0)return;Gr(e,"BrtBeginFonts",mt(r));Gr(e,"BrtFont",Bo({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Gr(e,"BrtEndFonts")}functionWo(e){varr=2;if(r==0)return;Gr(e,"BrtBeginFills",mt(r));Gr(e,"BrtFill",Io({patternType:"none"}));Gr(e,"BrtFill",Io({patternType:"gray125"}));Gr(e,"BrtEndFills")}functionVo(e){varr=1;if(r==0)return;Gr(e,"BrtBeginBorders",mt(r));Gr(e,"BrtBorder",Po({}));Gr(e,"BrtEndBorders")}functionzo(e){varr=1;Gr(e,"BrtBeginCellStyleXFs",mt(r));Gr(e,"BrtXF",Do({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Gr(e,"BrtEndCellStyleXFs")}functionXo(e,r){Gr(e,"BrtBeginCellXFs",mt(r.length));r.forEach(function(r){Gr(e,"BrtXF",Do(r,0))});Gr(e,"BrtEndCellXFs")}functionGo(e){varr=1;Gr(e,"BrtBeginStyles",mt(r));Gr(e,"BrtStyle",No({xfId:0,builtinId:0,name:"Normal"}));Gr(e,"BrtEndStyles")}functionjo(e){varr=0;Gr(e,"BrtBeginDXFs",mt(r));Gr(e,"BrtEndDXFs")}functionKo(e){varr=0;Gr(e,"BrtBeginTableStyles",Lo(r,"TableStyleMedium9","PivotStyleMedium4"));Gr(e,"BrtEndTableStyles")}functionYo(){return}function$o(e,r){vart=Xr();Gr(t,"BrtBeginStyleSheet");Uo(t,e.SSF);Ho(t,e);Wo(t,e);Vo(t,e);zo(t,e);Xo(t,r.cellXfs);Go(t,e);jo(t,e);Ko(t,e);Yo(t,e);Gr(t,"BrtEndStyleSheet");returnt.end()}xa.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";functionZo(e,r,t){r.themeElements.clrScheme=[];vara={};(e[0].match(ke)||[]).forEach(function(e){varn=_e(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)thrownewError("Unrecognized "+n[0]+" in clrScheme");}})}functionQo(){}functionJo(){}varqo=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;varel=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;varrl=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;functiontl(e,r,t){r.themeElements={};vara;[["clrScheme",qo,Zo],["fontScheme",el,Qo],["fmtScheme",rl,J
vart={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;returnt}functionqd(e,r,t){vara=e.l+r;e.l+=4;e.l+=1;varn=e._R(4);vari=Dt(e);vars=Dh(e,0,t);varf=It(e);e.l=a;varo={Name:i,Ptg:s};if(n<268435455)o.Sheet=n;if(f)o.Comment=f;returno}functionep(e,r){vart={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};vara=false;if(!r)r={};r.biff=12;varn=[];vari=[[]];i.SheetNames=[];i.XTI=[];zr(e,functions(e,f,o){switch(o){case156:i.SheetNames.push(e.name);t.Sheets.push(e);break;case153:t.WBProps=e;break;case39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=kh(e.Ptg,null,null,i,r);deleter.SID;deletee.Ptg;n.push(e);break;case1036:break;case357:;case358:;case355:;case667:if(!i[0].length)i[0]=[o,e];elsei.push([o,e]);i[i.length-1].XTI=[];break;case362:if(i.length===0){i[0]=[];i[0].XTI=[]}i[i.length-1].XTI=i[i.length-1].XTI.concat(e);i.XTI=i.XTI.concat(e);break;case361:break;case3072:;case3073:;case2071:;case534:;case677:;case158:;case157:;case610:;case2050:;case155:;case548:;case676:;case128:;case665:;case2128:;case2125:;case549:;case2053:;case596:;case2076:;case2075:;case2082:;case397:;case154:;case1117:;case553:;case2091:break;case35:a=true;break;case36:a=false;break;case37:break;case38:break;case16:break;default:if((f||"").indexOf("Begin")>0){}elseif((f||"").indexOf("End")>0){}elseif(!a||r.WTF)thrownewError("Unexpected record "+o+" "+f);}},r);Md(t);t.Names=n;t.supbooks=i;returnt}functionrp(e,r){Gr(e,"BrtBeginBundleShs");for(vart=0;t!=r.SheetNames.length;++t){vara=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;varn={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Gr(e,"BrtBundleSh",$d(n))}Gr(e,"BrtEndBundleShs")}functiontp(e,t){if(!t)t=Vr(127);for(vara=0;a!=4;++a)t._W(4,0);Ct("SheetJS",t);Ct(r.version,t);Ct(r.version,t);Ct("7262",t);t.length=t.l;returnt.length>t.l?t.slice(0,t.l):t}functionap(e,r){if(!r)r=Vr(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);vart=120;r._W(1,t);returnr.length>r.l?r.slice(0,r.l):r}functionnp(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;vart=r.Workbook.Sheets;vara=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;elseif(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;Gr(e,"BrtBeginBookViews");Gr(e,"BrtBookView",ap(n));Gr(e,"BrtEndBookViews")}functionip(e,r){vart=Xr();Gr(t,"BrtBeginBook");Gr(t,"BrtFileVersion",tp());Gr(t,"BrtWbProp",Qd(e.Workbook&&e.Workbook.WBProps||null));np(t,e,r);rp(t,e,r);Gr(t,"BrtEndBook");returnt.end()}functionsp(e,r,t){if(r.slice(-4)===".bin")returnep(e,t);returnGd(e,t)}functionfp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnhd(e,a,t,n,i,s,f);returnsu(e,a,t,n,i,s,f)}functionop(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnId(e,a,t,n,i,s,f);returnTd(e,a,t,n,i,s,f)}functionlp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnUl(e,a,t,n,i,s,f);returnHl(e,a,t,n,i,s,f)}functioncp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnLl(e,a,t,n,i,s,f);returnMl(e,a,t,n,i,s,f)}functionhp(e,r,t,a){if(r.slice(-4)===".bin")returnMo(e,t,a);returnwo(e,t,a)}functionup(e,r,t){returnnl(e,t)}functiondp(e,r,t){if(r.slice(-4)===".bin")returngf(e,t);returnuf(e,t)}functionpp(e,r,t){if(r.slice(-4)===".bin")returnRl(e,t);returnAl(e,t)}functionvp(e,r,t){if(r.slice(-4)===".bin")returngl(e,r,t);returnpl(e,r,t)}functiongp(e,r,t){if(r.slice(-4)===".bin")returnbl(e,r,t);returnml(e,r,t)}functionmp(e,r,t){return(r.slice(-4)===".bin"?ip:Kd)(e,t)}functionbp(e,r,t,a,n){return(r.slice(-4)===".bin"?Sd:Au)(e,t,a,n)}functionCp(e,r,t,a,n){return(r.slice(-4)===".bin"?Rd:xd)(e,t,a,n)}functionwp(e,r,t){return(r.slice(-4)===".bin"?$o:ko)(e,t)}functionEp(e,r,t){return(r.slice(-4)===".bin"?Cf:pf)(e,t)}functionkp(e,r,t){return(r.slice(-4)===".bin"?Dl:Bl)(e,t)}varSp=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;varAp=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;var_p=function(e){returnString.fromCharCode(e)};functionBp(e,r){vart=e.split(/\s+/);vara=[];if(!r)a[0]=t[0];if(t.length===1)returna;varn=e.match(Sp),
;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=re;break;case"WsBool":if(re.fDialog)n["!type"]="dialog";break;case"XF":A.push(re);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":W.push([re]);W[W.length-1].XTI=[];break;case"ExternName":W[W.length-1].push(re);break;case"Index":break;case"Lbl":Y={Name:re.Name,Ref:kh(re.rgce,s,null,W,D)};if(re.itab>0)Y.Sheet=re.itab-1;W.names.push(Y);if(!W[0]){W[0]=[];W[0].XTI=[]}W[W.length-1].push(re);if(re.Name=="_xlnm._FilterDatabase"&&re.itab>0)if(re.rgce&&re.rgce[0]&&re.rgce[0][0]&&re.rgce[0][0][0]=="PtgArea3d")K[re.itab-1]={ref:ct(re.rgce[0][0][1][2])};break;case"ExternCount":D.ExternCount=re;break;case"ExternSheet":if(W.length==0){W[0]=[];W[0].XTI=[]}W[W.length-1].XTI=W[W.length-1].XTI.concat(re);W.XTI=W.XTI.concat(re);break;case"NameCmt":if(D.biff<8)break;if(Y!=null)Y.Comment=re[1];break;case"Protect":n["!protect"]=re;break;case"Password":if(re!==0&&D.WTF)console.error("Password verifier: "+re);break;case"Prot4Rev":;case"Prot4RevPass":break;case"BoundSheet8":{i[re.pos]=re;D.snames.push(re.name)}break;case"EOF":{if(--X)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=ct(s);if(r.sheetRows&&r.sheetRows<=s.e.r){varae=s.e.r;s.e.r=r.sheetRows-1;n["!fullref"]=n["!ref"];n["!ref"]=ct(s);s.e.r=ae}s.e.r++;s.e.c++}if(F.length>0)n["!merges"]=F;if(P.length>0)n["!objects"]=P;if(N.length>0)n["!cols"]=N;if(L.length>0)n["!rows"]=L;B.Sheets.push(T)}if(c==="")h=n;elsea[c]=n;n=r.dense?[]:{}}break;case"BOF":{if(D.biff===8)D.biff={9:2,521:3,1033:4}[Q]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[re.BIFFVer]||8;if(X++)break;S=true;n=r.dense?[]:{};if(D.biff<8&&!$){$=true;l(D.codepage=r.codepage||1252)}if(D.biff<5){if(c==="")c="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};varne={pos:e.l-J,name:c};i[ne.pos]=ne;D.snames.push(c)}elsec=(i[Z]||{name:""}).name;if(re.dt==32)n["!type"]="chart";if(re.dt==64)n["!type"]="macro";F=[];P=[];D.arrayf=w=[];N=[];L=[];M=U=0;H=false;T={Hidden:(i[Z]||{hs:0}).hs,name:c}}break;case"Number":;case"BIFF2NUM":;case"BIFF2INT":{if(n["!type"]=="chart")if(r.dense?(n[re.r]||[])[re.c]:n[ot({c:re.c,r:re.r})])++re.c;E={ixfe:re.ixfe,XF:A[re.ixfe]||{},v:re.val,t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"BoolErr":{E={ixfe:re.ixfe,XF:A[re.ixfe],v:re.val,t:re.t};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"RK":{E={ixfe:re.ixfe,XF:A[re.ixfe],v:re.rknum,t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"MulRk":{for(varie=re.c;ie<=re.C;++ie){varse=re.rkrec[ie-re.c][0];E={ixfe:se,XF:A[se],v:re.rkrec[ie-re.c][1],t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:ie,r:re.r},E,r)}}break;case"Formula":{if(re.val=="String"){f=re;break}E=ev(re.val,re.cell.ixfe,re.tt);E.XF=A[E.ixfe];if(r.cellFormula){varfe=re.formula;if(fe&&fe[0]&&fe[0][0]&&fe[0][0][0]=="PtgExp"){varoe=fe[0][0][1][0],le=fe[0][0][1][1];varce=ot({r:oe,c:le});if(C[ce])E.f=""+kh(re.formula,s,re.cell,W,D);elseE.F=((r.dense?(n[oe]||[])[le]:n[ce])||{}).F}elseE.f=""+kh(re.formula,s,re.cell,W,D)}if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R(re.cell,E,r);f=re}break;case"String":{if(f){f.val=re;E=ev(re,f.cell.ixfe,"s");E.XF=A[E.ixfe];if(r.cellFormula){E.f=""+kh(f.formula,s,f.cell,W,D)}if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R(f.cell,E,r);f=null}elsethrownewError("String record expects Formula")}break;case"Array":{w.push(re);varhe=ot(re[0].s);p=r.dense?(n[re[0].s.r]||[])[re[0].s.c]:n[he];if(r.cellFormula&&p){if(!f)break;if(!he||!p)break;p.f=""+kh(re[1],s,re[0],W,D);p.F=ct(re[0])}}break;case"ShrFmla":{if(!S)break;if(!r.cellFormula)break;if(d){if(!f)break;C[ot(f.cell)]=re[0];p=r.dense?(n[f.cell.r]||[])[f.cell.c]:n[ot(f.cell)];(p||{}).f=""+kh(re[0],s,u,W,D)}}break;case"LabelSst":E=ev(o[re.isst].t,re.ixfe,"s");E.XF=A[E.ixfe];if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r);break;case"Blank":if(r.sheetStubs){E={ixfe:re.ixfe,XF:A[re.ixfe],t:"z"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Dat