varn=zn(e,6);vari=e._R(2);vars=yn(e,i,t);e.l=a;n.t="str";n.val=s;returnn}varNs=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};functionr(r,t){vara=[];varn=k(1);switch(t.type){case"base64":n=w(g.decode(r));break;case"binary":n=w(r);break;case"buffer":;case"array":n=r;break;}Or(n,0);vari=n._R(1);vars=false;varl=false,o=false;switch(i){case2:;case3:break;case48:l=true;s=true;break;case49:l=true;break;case131:s=true;break;case139:s=true;break;case140:s=true;o=true;break;case245:s=true;break;default:thrownewError("DBF Unsupported Version: "+i.toString(16));}varf=newDate,c=0,u=0;if(i==2)c=n._R(2);f=newDate(n._R(1)+1900,n._R(1)-1,n._R(1));if(i!=2)c=n._R(4);if(i!=2)u=n._R(2);varh=n._R(2);vard=0,v=1252;if(i!=2){n.l+=16;d=n._R(1);if(n[n.l]!==0)v=e[n[n.l]];n.l+=1;n.l+=2}if(o)n.l+=36;varp=[],b={};varm=u-10-(l?264:0),E=o?32:11;while(i==2?n.l<n.length&&n[n.l]!=13:n.l<m){b={};b.name=cptable.utils.decode(v,n.slice(n.l,n.l+E)).replace(/[\u0000\r\n].*$/g,"");n.l+=E;b.type=String.fromCharCode(n._R(1));if(i!=2&&!o)b.offset=n._R(4);b.len=n._R(1);if(i==2)b.offset=n._R(2);b.dec=n._R(1);if(b.name.length)p.push(b);if(i!=2)n.l+=o?13:14;switch(b.type){case"B":if((!l||b.len!=8)&&t.WTF)console.log("Skipping "+b.name+":"+b.type);break;case"G":;case"P":if(t.WTF)console.log("Skipping "+b.name+":"+b.type);break;case"C":;case"D":;case"F":;case"I":;case"L":;case"M":;case"N":;case"O":;case"T":;case"Y":;case"0":;case"@":;case"+":break;default:thrownewError("Unknown Field Type: "+b.type);}}if(n[n.l]!==13)n.l=u-1;elseif(i==2)n.l=521;if(i!=2){if(n._R(1)!==13)thrownewError("DBF Terminator not found "+n.l+" "+n[n.l]);n.l=u}varS=0,C=0;a[0]=[];for(C=0;C!=p.length;++C)a[0][C]=p[C].name;while(c-->0){if(n[n.l]===42){n.l+=h;continue}++n.l;a[++S]=[];C=0;for(C=0;C!=p.length;++C){var_=n.slice(n.l,n.l+p[C].len);n.l+=p[C].len;Or(_,0);varB=cptable.utils.decode(v,_);switch(p[C].type){case"C":a[S][C]=cptable.utils.decode(v,_);a[S][C]=a[S][C].trim();break;case"D":if(B.length===8)a[S][C]=newDate(+B.substr(0,4),+B.substr(4,2)-1,+B.substr(6,2));elsea[S][C]=B;break;case"F":a[S][C]=parseFloat(B.trim());break;case"+":;case"I":a[S][C]=o?_._R(-4,"i")^2147483648:_._R(4,"i");break;case"L":switch(B.toUpperCase()){case"Y":;case"T":a[S][C]=true;break;case"N":;case"F":a[S][C]=false;break;case" ":;case"?":a[S][C]=false;break;default:thrownewError("DBF Unrecognized L:|"+B+"|");}break;case"M":if(!s)thrownewError("DBF Unexpected MEMO for type "+i.toString(16));a[S][C]="##MEMO##"+(o?parseInt(B.trim(),10):_._R(4));break;case"N":a[S][C]=+B.replace(/\u0000/g,"").trim();break;case"@":a[S][C]=newDate(_._R(-8,"f")-621356832e5);break;case"T":a[S][C]=newDate((_._R(4)-2440588)*864e5+_._R(4));break;case"Y":a[S][C]=_._R(4,"i")/1e4;break;case"O":a[S][C]=-_._R(-8,"f");break;case"B":if(l&&p[C].len==8){a[S][C]=_._R(8,"f");break};case"G":;case"P":_.l+=p[C].len;break;case"0":if(p[C].name==="_NullFlags")break;default:thrownewError("DBF Unsupported data type "+p[C].type);}}}if(i!=2)if(n.l<n.length&&n[n.l++]!=26)thrownewError("DBF EOF Marker missing "+(n.l-1)+" of "+n.length+" "+n[n.l-1].toString(16));returna}functiont(e,t){vara=t||{};if(!a.dateNF)a.dateNF="yyyymmdd";returnct(r(e,a),a)}functiona(e,r){try{returnft(t(e,r),r)}catch(a){if(r&&r.WTF)throwa}return{SheetNames:[],Sheets:{}}}varn={B:8,C:250,L:1,D:8,"?":0,"":0};functioni(e,r){vart=r||{};if(t.type=="string")thrownewError("Cannot write DBF to JS string");vara=Lr();vari=wb(e,{header:1,raw:true,cellDates:true});vars=i[0],l=i.slice(1);varo=0,f=0,c=0,u=1;for(o=0;o<s.length;++o){if(o==null)continue;++c;if(typeofs[o]!=="string")thrownewError("DBFInvali
a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=_l(t.password);returnn}functionTl(e,r,t){vara=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=kl(e,r);elsea.Data=El(e,r);returna}functionxl(e,r,t){vara={Type:t.biff>=8?e._R(2):0};if(a.Type)Tl(e,r-2,a);elseBl(e,r-2,t,a);returna}varIl=function(){functione(e,t){switch(t.type){case"base64":returnr(g.decode(e),t);case"binary":returnr(e,t);case"buffer":returnr(e.toString("binary"),t);case"array":returnr(Y(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=r||{};vara=t.dense?[]:{};varn={s:{c:0,r:0},e:{c:0,r:0}};if(!e.match(/\\trowd/))thrownewError("RTF missing table");a["!ref"]=it(n);returna}functiont(r,t){returnft(e(r,t),t)}functiona(e,r){vart=["{\\rtf1\\ansi"];vara=st(e["!ref"]),n;vari=Array.isArray(e);for(vars=a.s.r;s<=a.e.r;++s){t.push("\\trowd\\trautofit1");for(varl=a.s.c;l<=a.e.c;++l)t.push("\\cellx"+(l+1));t.push("\\pard\\intbl");for(l=a.s.c;l<=a.e.c;++l){varo=rt({r:s,c:l});n=i?(e[s]||[])[l]:e[o];if(!n||n.v==null&&(!n.f||n.F))continue;t.push(" "+(n.w||(ot(n),n.w)));t.push("\\cell")}t.push("\\pard\\intbl\\row")}returnt.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();functionAl(e){varr=e.substr(e[0]==="#"?1:0,6);return[parseInt(r.substr(0,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(4,2),16)]}functionyl(e){for(varr=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);returnt.toString(16).toUpperCase().substr(1)}functionRl(e){varr=e[0]/255,t=e[1]/255,a=e[2]/255;varn=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];varl=0,o=0,f=n+i;o=s/(f>1?2-f:f);switch(n){caser:l=((t-a)/s+6)%6;break;caset:l=(a-r)/s+2;break;casea:l=(r-t)/s+4;break;}return[l/6,o,f/2]}functionDl(e){varr=e[0],t=e[1],a=e[2];varn=t*2*(a<.5?a:1-a),i=a-n/2;vars=[i,i,i],l=6*r;varo;if(t!==0)switch(l|0){case0:;case6:o=n*l;s[0]+=n;s[1]+=o;break;case1:o=n*(2-l);s[0]+=o;s[1]+=n;break;case2:o=n*(l-2);s[1]+=n;s[2]+=o;break;case3:o=n*(4-l);s[1]+=o;s[2]+=n;break;case4:o=n*(l-4);s[2]+=n;s[0]+=o;break;case5:o=n*(6-l);s[2]+=o;s[0]+=n;break;}for(varf=0;f!=3;++f)s[f]=Math.round(s[f]*255);returns}functionOl(e,r){if(r===0)returne;vart=Rl(Al(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returnyl(Dl(t))}varFl=6,Pl=15,Nl=1,Ll=Fl;functionMl(e){returnMath.floor((e+Math.round(128/Ll)/256)*Ll)}functionUl(e){returnMath.floor((e-5)/Ll*100+.5)/100}functionHl(e){returnMath.round((e*Ll+5)/Ll*256)/256}functionVl(e){return((e-5)/Ll*100+.5)/100}functionWl(e){return(e*Ll+5)/Ll*256/256}functionzl(e){returnHl(Ul(Ml(e)))}functionXl(e){varr=Math.abs(e-zl(e)),t=Ll;if(r>.005)for(Ll=Nl;Ll<Pl;++Ll)if(Math.abs(e-zl(e))<=r){r=Math.abs(e-zl(e));t=Ll}Ll=t}functionGl(e){varr=Infinity,t=0,a=Nl;for(Ll=Nl;Ll<Pl;++Ll){t=Wl(Vl(e))*256;t=t%1;if(t>.5)t--;if(Math.abs(t)<r){r=Math.abs(t);a=Ll}}Ll=a}functionjl(e){if(e.width){e.wpx=Ml(e.width);e.wch=Ul(e.wpx);e.MDW=Ll}elseif(e.wpx){e.wch=Ul(e.wpx);e.width=Hl(e.wch);e.MDW=Ll}elseif(typeofe.wch=="number"){e.width=Hl(e.wch);e.wpx=Ml(e.width);e.MDW=Ll}if(e.customWidth)deletee.customWidth}varKl=96,Yl=Kl;function$l(e){returne*96/Yl}functionZl(e){returne*Yl/96}varQl={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};functionJl(e,r,t,a){r.Borders=[];varn={},i={};e[0].match(ve).forEach(function(e){vart=me(e);switch(t[0]){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp){n.diagonalUp=t.diagonalUp}if(t.diagonalDown){n.diagonalDown=t.diagonalDown}r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"
})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(uf<e*1e3)uf+=1e3;r.map(function(e){returnet(e[0])}).forEach(function(e,r){n=n.concat(["<v:shape"+Xe({id:"_x0000_s"+++uf,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10;visibility:hidden",fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",Ge("v:fill",Ge("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}),{color2:"#BEFF82",angle:"-180",type:"gradient"}),Ge("v:shadow",null,{on:"t",obscured:"t"}),Ge("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ze("x:Anchor",[e.c,0,e.r,0,e.c+3,100,e.r+5,100].join(",")),ze("x:AutoFill","False"),ze("x:Row",String(e.r)),ze("x:Column",String(e.c)),"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");returnn.join("")}wa.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";functiondf(e,r,t,a,n){for(vari=0;i!=r.length;++i){vars=r[i];varl=kv(se(e,s.replace(/^\//,""),true),s,n);if(!l||!l.length)continue;varo=P(t);for(varf=0;f!=o.length;++f){varc=o[f];varu=a[c];if(u){varh=u[s];if(h)vf(c,t[c],l)}}}}functionvf(e,r,t){vara=Array.isArray(r);varn,i;t.forEach(function(e){if(a){i=et(e.ref);if(!r[i.r])r[i.r]=[];n=r[i.r][i.c]}elsen=r[e.ref];if(!n){n={};if(a)r[i.r][i.c]=n;elser[e.ref]=n;vart=st(r["!ref"]||"BDWGO1000001:A1");vars=et(e.ref);if(t.s.r>s.r)t.s.r=s.r;if(t.e.r<s.r)t.e.r=s.r;if(t.s.c>s.c)t.s.c=s.c;if(t.e.c<s.c)t.e.c=s.c;varl=it(t);if(l!==r["!ref"])r["!ref"]=l}if(!n.c)n.c=[];varo={a:e.author,t:e.t,r:e.r};if(e.h)o.h=e.h;n.c.push(o)})}functionpf(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];vart=[];vara=[];varn=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;varr=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});vari=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e,n){if(e===""||e.trim()==="")return;vari=e.match(/<(?:\w+:)?comment[^>]*>/);if(!i)return;vars=me(i[0]);varl={author:s.authorId&&t[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid};varo=et(s.ref);if(r.sheetRows&&r.sheetRows<=o.r)return;varf=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);varc=!!f&&!!f[1]&&Ks(f[1])||{r:"",t:"",h:""};l.r=c.r;if(c.r=="<t></t>")c.t=c.h="";l.t=c.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)l.h=c.h;a.push(l)});returna}varbf=Ge("comments",null,{xmlns:Ye.main[0]});functionmf(e,r){vart=[he,bf];vara=[];t.push("<authors>");e.map(function(e){returne[1]}).forEach(function(e){e.map(function(e){return_e(e.a)}).forEach(function(e){if(a.indexOf(e)>-1)return;a.push(e);t.push("<author>"+e+"</author>")})});t.push("</authors>");t.push("<commentList>");e.forEach(function(e){e[1].forEach(function(r){t.push('<comment ref="'+e[0]+'" authorId="'+a.indexOf(_e(r.a))+'"><text>');t.push(ze("t",r.t==null?"":r.t));t.push("</text></comment>")})});t.push("</commentList>");if(t.length>2){t[t.length]="</comments>";t[1]=t[1].replace("/>",">")}returnt.join("")}functiongf(e,r){vart={};t.iauthor=e._R(4);vara=Ft(e,16);t.rfx=a.s;t.ref=rt(a.s);e.l+=16;returnt}functionEf(e,r){if(r==null)r=Pr(36);r._W(4,e[1].iauthor);Pt(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varkf=ht;functionwf(e){returndt(e.slice(0,54))}functionSf(e,r){vart=[];vara=[];varn={};vari=false;Nr(e,functions(e,l,o){switch(o){case632:a.push(e);break;case635:n=e;break;case637:n.t=e.t;n.h=e.h;n.r=e.r;break;case636:n.author=a[n.iauthor];deleten.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";deleten.rfx;t.push(n);break;case35:i=true;break;case36:i=false;break;case37:break;case38:break;default:if((l||"").indexOf("Begin")>0){}elseif((l||"").indexOf("End")>0){}elseif(!i||r.WTF)thrownewError("Unexpected record "+o+" "+l);}});returnt}functionCf(e,r){vart=Lr();vara=[];
gb(a);returnmb(e,a)}functionkb(e,r,t,a){varn=t||{};n.type="file";n.file=e;gb(n);n.type="buffer";vari=a;if(!(iinstanceofFunction))i=t;returnoe.writeFile(e,mb(r,n),i)}functionwb(e,r){if(e==null||e["!ref"]==null)return[];vart={t:"n",v:0},a=0,n=1,i=[],s=true,l=0,o="";varf={s:{r:0,c:0},e:{r:0,c:0}};varc=r||{};varu=c.raw;varh=c.defval;vard=c.range!=null?c.range:e["!ref"];if(c.header===1)a=1;elseif(c.header==="A")a=2;elseif(Array.isArray(c.header))a=3;switch(typeofd){case"string":f=st(d);break;case"number":f=st(e["!ref"]);f.s.r=d;break;default:f=d;}if(a>0)n=0;varv=jr(f.s.r);varp=[];varb=[];varm=0,g=0;varE=Array.isArray(e);vark=f.s.r,w=0,S=0;if(E&&!e[k])e[k]=[];for(w=f.s.c;w<=f.e.c;++w){p[w]=Zr(w);t=E?e[k][w]:e[p[w]+v];switch(a){case1:i[w]=w-f.s.c;break;case2:i[w]=p[w];break;case3:i[w]=c.header[w-f.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};o=l=ot(t,null,c);g=0;for(S=0;S<i.length;++S)if(i[S]==o)o=l+"_"+++g;i[w]=o;}}varC=a===1?[]:{};for(k=f.s.r+n;k<=f.e.r;++k){v=jr(k);s=true;if(a===1)C=[];else{C={};if(Object.defineProperty)try{Object.defineProperty(C,"__rowNum__",{value:k,enumerable:false})}catch(_){C.__rowNum__=k}elseC.__rowNum__=k}if(!E||e[k])for(w=f.s.c;w<=f.e.c;++w){t=E?e[k][w]:e[p[w]+v];if(t===undefined||t.t===undefined){if(h===undefined)continue;if(i[w]!=null){C[i[w]]=h;s=false}continue}l=t.v;switch(t.t){case"z":if(l==null)break;continue;case"e":continue;case"s":;case"d":;case"b":;case"n":break;default:thrownewError("unrecognized type "+t.t);}if(i[w]!=null){if(l==null){if(h!==undefined)C[i[w]]=h;elseif(u&&l===null)C[i[w]]=null;elsecontinue}else{C[i[w]]=u?l:ot(t,l,c)}s=false}}if(s===false||(a===1?c.blankrows!==false:!!c.blankrows))b[m++]=C}b.length=m;returnb}varSb=/"/g;functionCb(e,r,t,a,n,i,s,l){varo=true;varf=[],c="",u=jr(t);for(varh=r.s.c;h<=r.e.c;++h){if(!a[h])continue;vard=l.dense?(e[t]||[])[h]:e[a[h]+u];if(d==null)c="";elseif(d.v!=null){o=false;c=""+ot(d,null,l);for(varv=0,p=0;v!==c.length;++v)if((p=c.charCodeAt(v))===n||p===i||p===34){c='"'+c.replace(Sb,'""')+'"';break}if(c=="ID")c='"ID"'}elseif(d.f!=null&&!d.F){o=false;c="="+d.f;if(c.indexOf(",")>=0)c='"'+c.replace(Sb,'""')+'"'}elsec="";f.push(c)}if(l.blankrows===false&&o)returnnull;returnf.join(s)}function_b(e,r){vart=[];vara=r==null?{}:r;if(e==null||e["!ref"]==null)return"";varn=st(e["!ref"]);vari=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);varl=a.RS!==undefined?a.RS:"\n",o=l.charCodeAt(0);varf=newRegExp((i=="|"?"\\|":i)+"+$");varc="",u=[];a.dense=Array.isArray(e);varh=a.skipHidden&&e["!cols"]||[];vard=a.skipHidden&&e["!rows"]||[];for(varv=n.s.c;v<=n.e.c;++v)if(!(h[v]||{}).hidden)u[v]=Zr(v);for(varp=n.s.r;p<=n.e.r;++p){if((d[p]||{}).hidden)continue;c=Cb(e,n,p,u,s,o,i,a);if(c==null){continue}if(a.strip)c=c.replace(f,"");t.push(c+l)}deletea.dense;returnt.join("")}functionBb(e,r){if(!r)r={};r.FS="\t";r.RS="\n";vart=_b(e,r);if(typeofcptable=="undefined"||r.type=="string")returnt;vara=cptable.utils.encode(1200,t,"str");return"ÿþ"+a}functionTb(e){varr="",t,a="";if(e==null||e["!ref"]==null)return[];varn=st(e["!ref"]),i="",s=[],l;varo=[];varf=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=Zr(l);for(varc=n.s.r;c<=n.e.r;++c){i=jr(c);for(l=n.s.c;l<=n.e.c;++l){r=s[l]+i;t=f?(e[c]||[])[l]:e[r];a="";if(t===undefined)continue;elseif(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;elseif(t.t=="z")continue;elseif(t.t=="n"&&t.v!=null)a=""+t.v;elseif(t.t=="b")a=t.v?"TRUE":"FALSE";elseif(t.w!==undefined)a="'"+t.w;elseif(t.v===undefined)continue;elseif(t.t=="s")a="'"+t.v;elsea=""+t.v;o[o.length]=r+"="+a}}returno}functionxb(e,r){vart=r||{};vara={};varn;vari={s:{c:0,r:0},e:{c:0,r:e.length}};vars=t.header||[],l=0;e.forEach(function(e,r){P(e).filter(function(r){returne.hasOwnProperty(r)}).forEach(function(i){if((l=s.indexOf(i))==-1)s[l=s.length]=i;varo=e[i];varf="z";varc="";if(typeofo=="number")f="n";elseif(typeofo=="boolean")f="b";elseif(typeofo=="string")f="s";elseif(oinstanceofDate){f="d";if(!t.cellDates){f="n";o=W(o)}c=t.dateNF||x._tab