vara=Fr(9);Dv(a,e,r);a._W(2,t);returna}functionBs(e){varr=e._R(1);if(r===0){e.l++;return""}returne._R(r,"sbcs-cont")}functionTs(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}functionxs(e,r,t){vara=e.l+r;varn=Mn(e,6);vari=e._R(2);vars=Bn(e,i,t);e.l=a;n.t="str";n.val=s;returnn}varIs=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;}Dr(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=0,c=0;if(i==2)f=n._R(2);n.l+=3;if(i!=2)f=n._R(4);if(i!=2)c=n._R(2);varu=n._R(2);varh=1252;if(i!=2){n.l+=16;n._R(1);if(n[n.l]!==0)h=e[n[n.l]];n.l+=1;n.l+=2}if(o)n.l+=36;vard=[],v={};varp=c-10-(l?264:0),m=o?32:11;while(i==2?n.l<n.length&&n[n.l]!=13:n.l<p){v={};v.name=cptable.utils.decode(h,n.slice(n.l,n.l+m)).replace(/[\u0000\r\n].*$/g,"");n.l+=m;v.type=String.fromCharCode(n._R(1));if(i!=2&&!o)v.offset=n._R(4);v.len=n._R(1);if(i==2)v.offset=n._R(2);v.dec=n._R(1);if(v.name.length)d.push(v);if(i!=2)n.l+=o?13:14;switch(v.type){case"B":if((!l||v.len!=8)&&t.WTF)console.log("Skipping "+v.name+":"+v.type);break;case"G":;case"P":if(t.WTF)console.log("Skipping "+v.name+":"+v.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: "+v.type);}}if(n[n.l]!==13)n.l=c-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=c}varb=0,E=0;a[0]=[];for(E=0;E!=d.length;++E)a[0][E]=d[E].name;while(f-->0){if(n[n.l]===42){n.l+=u;continue}++n.l;a[++b]=[];E=0;for(E=0;E!=d.length;++E){varS=n.slice(n.l,n.l+d[E].len);n.l+=d[E].len;Dr(S,0);varC=cptable.utils.decode(h,S);switch(d[E].type){case"C":a[b][E]=cptable.utils.decode(h,S);a[b][E]=a[b][E].trim();break;case"D":if(C.length===8)a[b][E]=newDate(+C.slice(0,4),+C.slice(4,6)-1,+C.slice(6,8));elsea[b][E]=C;break;case"F":a[b][E]=parseFloat(C.trim());break;case"+":;case"I":a[b][E]=o?S._R(-4,"i")^2147483648:S._R(4,"i");break;case"L":switch(C.toUpperCase()){case"Y":;case"T":a[b][E]=true;break;case"N":;case"F":a[b][E]=false;break;case" ":;case"?":a[b][E]=false;break;default:thrownewError("DBF Unrecognized L:|"+C+"|");}break;case"M":if(!s)thrownewError("DBF Unexpected MEMO for type "+i.toString(16));a[b][E]="##MEMO##"+(o?parseInt(C.trim(),10):S._R(4));break;case"N":a[b][E]=+C.replace(/\u0000/g,"").trim();break;case"@":a[b][E]=newDate(S._R(-8,"f")-621356832e5);break;case"T":a[b][E]=newDate((S._R(4)-2440588)*864e5+S._R(4));break;case"Y":a[b][E]=S._R(4,"i")/1e4;break;case"O":a[b][E]=-S._R(-8,"f");break;case"B":if(l&&d[E].len==8){a[b][E]=S._R(8,"f");break};case"G":;case"P":S.l+=d[E].len;break;case"0":if(d[E].name==="_NullFlags")break;default:thrownewError("DBF Unsupported data type "+d[E].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";returnot(r(e,a),a)}functiona(e,r){try{returnst(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=Nr();vari=Hp(e,{header:1,raw:true,cel
if(a.valid)a.insitu=ml(t.password);returnn}functiongl(e,r,t){vara=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=hl(e,r);elsea.Data=ul(e,r);returna}functionEl(e,r,t){vara={Type:t.biff>=8?e._R(2):0};if(a.Type)gl(e,r-2,a);elsebl(e,r-2,t,a);returna}varkl=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($(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"]=tt(n);returna}functiont(r,t){returnst(e(r,t),t)}functiona(e){varr=["{\\rtf1\\ansi"];vart=at(e["!ref"]),a;varn=Array.isArray(e);for(vari=t.s.r;i<=t.e.r;++i){r.push("\\trowd\\trautofit1");for(vars=t.s.c;s<=t.e.c;++s)r.push("\\cellx"+(s+1));r.push("\\pard\\intbl");for(s=t.s.c;s<=t.e.c;++s){varl=et({r:i,c:s});a=n?(e[i]||[])[s]:e[l];if(!a||a.v==null&&(!a.f||a.F))continue;r.push(" "+(a.w||(it(a),a.w)));r.push("\\cell")}r.push("\\pard\\intbl\\row")}returnr.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();functionwl(e){varr=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}functionSl(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().slice(1)}functionCl(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]}function_l(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}functionBl(e,r){if(r===0)returne;vart=Cl(wl(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returnSl(_l(t))}varTl=6,xl=15,Il=1,Al=Tl;functionyl(e){returnMath.floor((e+Math.round(128/Al)/256)*Al)}functionRl(e){returnMath.floor((e-5)/Al*100+.5)/100}functionDl(e){returnMath.round((e*Al+5)/Al*256)/256}functionOl(e){returnDl(Rl(yl(e)))}functionFl(e){varr=Math.abs(e-Ol(e)),t=Al;if(r>.005)for(Al=Il;Al<xl;++Al)if(Math.abs(e-Ol(e))<=r){r=Math.abs(e-Ol(e));t=Al}Al=t}functionPl(e){if(e.width){e.wpx=yl(e.width);e.wch=Rl(e.wpx);e.MDW=Al}elseif(e.wpx){e.wch=Rl(e.wpx);e.width=Dl(e.wch);e.MDW=Al}elseif(typeofe.wch=="number"){e.width=Dl(e.wch);e.wpx=yl(e.width);e.MDW=Al}if(e.customWidth)deletee.customWidth}varNl=96,Ll=Nl;functionMl(e){returne*96/Ll}functionUl(e){returne*Ll/96}varHl={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"};functionWl(e,r,t,a){r.Borders=[];varn={};e[0].match(pe).forEach(function(e){vart=ge(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"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":brea
})+">",Ke("v:fill",Ke("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}),{color2:"#BEFF82",angle:"-180",type:"gradient"}),Ke("v:shadow",null,{on:"t",obscured:"t"}),Ke("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ge("x:Anchor",[e.c,0,e.r,0,e.c+3,100,e.r+5,100].join(",")),Ge("x:AutoFill","False"),Ge("x:Row",String(e.r)),Ge("x:Column",String(e.c)),"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");returnn.join("")}ba.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";functionqo(e,r,t,a,n){for(vari=0;i!=r.length;++i){vars=r[i];varl=Nd(le(e,s.replace(/^\//,""),true),s,n);if(!l||!l.length)continue;varo=N(t);for(varf=0;f!=o.length;++f){varc=o[f];varu=a[c];if(u){varh=u[s];if(h)ef(c,t[c],l)}}}}functionef(e,r,t){vara=Array.isArray(r);varn,i;t.forEach(function(e){if(a){i=qr(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=at(r["!ref"]||"BDWGO1000001:A1");vars=qr(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=tt(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)})}functionrf(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){if(e===""||e.trim()==="")return;varn=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;vari=ge(n[0]);vars={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};varl=qr(i.ref);if(r.sheetRows&&r.sheetRows<=l.r)return;varo=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);varf=!!o&&!!o[1]&&Us(o[1])||{r:"",t:"",h:""};s.r=f.r;if(f.r=="<t></t>")f.t=f.h="";s.t=f.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=f.h;a.push(s)});returna}vartf=Ke("comments",null,{xmlns:Ze.main[0]});functionaf(e){varr=[de,tf];vart=[];r.push("<authors>");e.map(function(e){returne[1]}).forEach(function(e){e.map(function(e){returnBe(e.a)}).forEach(function(e){if(t.indexOf(e)>-1)return;t.push(e);r.push("<author>"+e+"</author>")})});r.push("</authors>");r.push("<commentList>");e.forEach(function(e){e[1].forEach(function(a){r.push('<comment ref="'+e[0]+'" authorId="'+t.indexOf(Be(a.a))+'"><text>');r.push(Ge("t",a.t==null?"":a.t));r.push("</text></comment>")})});r.push("</commentList>");if(r.length>2){r[r.length]="</comments>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionnf(e){varr={};r.iauthor=e._R(4);vart=Rt(e,16);r.rfx=t.s;r.ref=et(t.s);e.l+=16;returnr}functionsf(e,r){if(r==null)r=Fr(36);r._W(4,e[1].iauthor);Dt(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varlf=ct;functionof(e){returnut(e.slice(0,54))}functionff(e,r){vart=[];vara=[];varn={};vari=false;Pr(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){varr=Nr();vart=[];Lr(r,"BrtBeginComments");Lr(r,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));Lr(r,"BrtCommentAuthor",of(e.a))})});Lr(r,"BrtEndCommentAuthors");Lr(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);varn={s:qr(e[0]),e:qr(e[0])};Lr(r,"BrtBeginComment",sf([n,a]))
minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};returnfunctiont(a,n){vari=n||{};if(m!=null&&i.dense==null)i.dense=m;vars=tv(a);varl=[],o;varf;varc={name:""},u="",h=0;vard;varv;varp={},b=[];varg=i.dense?[]:{};varE,k;varw={value:""};varS="",C=0,_;varB=-1,T=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};varI=0;varA={};vary=[],R={},D=0,O=0;varF=[],P=1,N=1;varL=[];varM={Names:[]};varU={};varH=["",""];varW=[],V={};varX="",j=0;varK=false,$=false;varQ=0;av.lastIndex=0;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(E=av.exec(s))switch(E[3]=E[3].replace(/_.*$/,"")){case"table":;case"工作表":if(E[1]==="/"){if(x.e.c>=x.s.c&&x.e.r>=x.s.r)g["!ref"]=tt(x);if(y.length)g["!merges"]=y;if(F.length)g["!rows"]=F;d.name=Oe(d["名称"]||d.name);b.push(d.name);p[d.name]=g;$=false}elseif(E[0].charAt(E[0].length-2)!=="/"){d=ge(E[0],false);B=T=-1;x.s.r=x.s.c=1e7;x.e.r=x.e.c=0;g=i.dense?[]:{};y=[];F=[];$=true}break;case"table-row-group":if(E[1]==="/")--I;else++I;break;case"table-row":;case"行":if(E[1]==="/"){B+=P;P=1;break}v=ge(E[0],false);if(v["行号"])B=v["行号"]-1;elseif(B==-1)B=0;P=+v["number-rows-repeated"]||1;if(P<10)for(Q=0;Q<P;++Q)if(I>0)F[B+Q]={level:I};T=-1;break;case"covered-table-cell":++T;if(i.sheetStubs){if(i.dense){if(!g[B])g[B]=[];g[B][T]={t:"z"}}elseg[et({r:B,c:T})]={t:"z"}}break;case"table-cell":;case"数据":if(E[0].charAt(E[0].length-2)==="/"){++T;w=ge(E[0],false);N=parseInt(w["number-columns-repeated"]||"1",10);k={t:"z",v:null};if(w.formula&&i.cellFormula!=false)k.f=fu(Se(w.formula));if((w["数据类型"]||w["value-type"])=="string"){k.t="s";k.v=Se(w["string-value"]||"");if(i.dense){if(!g[B])g[B]=[];g[B][T]=k}else{g[et({r:B,c:T})]=k}}T+=N-1}elseif(E[1]!=="/"){++T;N=1;varJ=P?B+P-1:B;if(T>x.e.c)x.e.c=T;if(T<x.s.c)x.s.c=T;if(B<x.s.r)x.s.r=B;if(J>x.e.r)x.e.r=J;w=ge(E[0],false);W=[];V={};k={t:w["数据类型"]||w["value-type"],v:null};if(i.cellFormula){if(w.formula)w.formula=Se(w.formula);if(w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]){D=parseInt(w["number-matrix-rows-spanned"],10)||0;O=parseInt(w["number-matrix-columns-spanned"],10)||0;R={s:{r:B,c:T},e:{r:B+D-1,c:T+O-1}};k.F=tt(R);L.push([R,k.F])}if(w.formula)k.f=fu(w.formula);elsefor(Q=0;Q<L.length;++Q)if(B>=L[Q][0].s.r&&B<=L[Q][0].e.r)if(T>=L[Q][0].s.c&&T<=L[Q][0].e.c)k.F=L[Q][1]}if(w["number-columns-spanned"]||w["number-rows-spanned"]){D=parseInt(w["number-rows-spanned"],10)||0;O=parseInt(w["number-columns-spanned"],10)||0;R={s:{r:B,c:T},e:{r:B+D-1,c:T+O-1}};y.push(R)}if(w["number-columns-repeated"])N=parseInt(w["number-columns-repeated"],10);switch(k.t){case"boolean":k.t="b";k.v=De(w["boolean-value"]);break;case"float":k.t="n";k.v=parseFloat(w.value);break;case"percentage":k.t="n";k.v=parseFloat(w.value);break;case"currency":k.t="n";k.v=parseFloat(w.value);break;case"date":k.t="d";k.v=Y(w["date-value"]);if(!i.cellDates){k.t="n";k.v=z(k.v)}k.z="m/d/yy";break;case"time":k.t="n";k.v=G(w["time-value"])/86400;break;case"number":k.t="n";k.v=parseFloat(w["数据数值"]);break;default:if(k.t==="string"||k.t==="text"||!k.t){k.t="s";if(w["string-value"]!=null)S=Se(w["string-value"])}elsethrownewError("Unsupported value type "+k.t);}}else{K=false;if(k.t==="s"){k.v=S||"";K=C==0}if(U.Target)k.l=U;if(W.length>0){k.c=W;W=[]}if(S&&i.cellText!==false)k.w=S;if(!K||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<B)){for(varq=0;q<P;++q){N=parseInt(w["number-columns-repeated"]||"1",10);if(i.dense){if(!g[B+q])g[B+q]=[];g[B+q][T]=q==0?k:Z(k);while(--N>0)g[B+q][T+N]=Z(k)}else{g[et({r:B+q,c:T})]=k;while(--N>0)g[et({r:B+q,c:T+N})]=Z(k)}if(x.e.c<=T)x.e.c=T}}}N=parseInt(w["number-columns-repeated"]||"1",10);T+=N-1;N=0;k={};S=""}U={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":if(E[1]==="/"){if((o=l.pop())[0]!==E[3])throw"Bad state: "+o}elseif(E[0].charAt(E[0].length-2)!=="/")l.push([E[3],true]);break;case"anno
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:it(t,l,c)}s=false}}if(s===false||(a===1?c.blankrows!==false:!!c.blankrows))m[b++]=C}m.length=b;returnm}varWp=/"/g;functionVp(e,r,t,a,n,i,s,l){varo=true;varf=[],c="",u=Gr(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=""+it(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(Wp,'""')+'"';break}if(c=="ID")c='"ID"'}elseif(d.f!=null&&!d.F){o=false;c="="+d.f;if(c.indexOf(",")>=0)c='"'+c.replace(Wp,'""')+'"'}elsec="";f.push(c)}if(l.blankrows===false&&o)returnnull;returnf.join(s)}functionzp(e,r){vart=[];vara=r==null?{}:r;if(e==null||e["!ref"]==null)return"";varn=at(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]=$r(v);for(varp=n.s.r;p<=n.e.r;++p){if((d[p]||{}).hidden)continue;c=Vp(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("")}functionXp(e,r){if(!r)r={};r.FS="\t";r.RS="\n";vart=zp(e,r);if(typeofcptable=="undefined"||r.type=="string")returnt;vara=cptable.utils.encode(1200,t,"str");return"ÿþ"+a}functionGp(e){varr="",t,a="";if(e==null||e["!ref"]==null)return[];varn=at(e["!ref"]),i="",s=[],l;varo=[];varf=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=$r(l);for(varc=n.s.r;c<=n.e.r;++c){i=Gr(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}functionjp(e,r,t){vara=t||{};varn=+!a.skipHeader;vari=e||{};vars=0,l=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varo=typeofa.origin=="string"?qr(a.origin):a.origin;s=o.r;l=o.c}}varf;varc={s:{c:0,r:0},e:{c:l,r:s+r.length-1+n}};if(i["!ref"]){varu=at(i["!ref"]);c.e.c=Math.max(c.e.c,u.e.c);c.e.r=Math.max(c.e.r,u.e.r);if(s==-1){s=c.e.r+1;c.e.r=s+r.length-1+n}}varh=a.header||[],d=0;r.forEach(function(e,r){N(e).filter(function(r){returne.hasOwnProperty(r)}).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;varo=e[t];varc="z";varu="";if(typeofo=="number")c="n";elseif(typeofo=="boolean")c="b";elseif(typeofo=="string")c="s";elseif(oinstanceofDate){c="d";if(!a.cellDates){c="n";o=z(o)}u=a.dateNF||I._table[14]}i[et({c:l+d,r:s+r+n})]=f={t:c,v:o};if(u)f.z=u})});c.e.c=Math.max(c.e.c,l+h.length-1);varv=Gr(s);if(n)for(d=0;d<h.length;++d)i[$r(d+l)+v]={t:"s",v:h[d]};i["!ref"]=tt(c);returni}functionKp(e,r){returnjp(null,e,r)}varYp={encode_col:$r,encode_row:Gr,encode_cell:et,encode_range:tt,decode_col:Yr,decode_row:Xr,split_cell:Jr,decode_cell:qr,decode_range:rt,format_cell:it,get_formulae:Gp,make_csv:zp,make_json:Hp,make_formulae:Gp,sheet_add_aoa:lt,sheet_add_json:jp,aoa_to_sheet:ot,json_to_sheet:Kp,table_to_sheet:Gv,table_to_book:jv,sheet_to_csv:zp,sheet_to_txt:Xp,sheet_to_json:Hp,sheet_to_html:Xv.from_sheet,sheet_to_dif:ys.from_sheet,sheet_to_slk:As.from_sheet,sheet_to_eth:Rs.from_sheet,sheet_to_formulae:Gp,sheet_to_r