sheetjs_sheetjs/xlsx.core.min.js

17 lines
439 KiB
JavaScript
Raw Normal View History

2016-12-31 08:11:36 +00:00
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
2017-12-30 05:41:41 +00:00
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;(function(e){if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();else if("function"==typeof define&&define.amd){JSZip=e();define([],e)}else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof $&&$.global?r=$.global:"undefined"!=typeof self&&(r=self),r.JSZip=e()}})(function(){var e,r,t;return function a(e,r,t){function n(s,l){if(!r[s]){if(!e[s]){var o=typeof require=="function"&&require;if(!l&&o)return o(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var f=r[s]={exports:{}};e[s][0].call(f.exports,function(r){var t=e[s][1][r];return n(t?t:r)},f,f.exports,a,e,r,t)}return r[s].exports}var i=typeof require=="function"&&require;for(var s=0;s<t.length;s++)n(t[s]);return n}({1:[function(e,r,t){"use strict";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e,r){var t="";var n,i,s,l,o,f,c;var u=0;while(u<e.length){n=e.charCodeAt(u++);i=e.charCodeAt(u++);s=e.charCodeAt(u++);l=n>>2;o=(n&3)<<4|i>>4;f=(i&15)<<2|s>>6;c=s&63;if(isNaN(i)){f=c=64}else if(isNaN(s)){c=64}t=t+a.charAt(l)+a.charAt(o)+a.charAt(f)+a.charAt(c)}return t};t.decode=function(e,r){var t="";var n,i,s;var l,o,f,c;var u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<e.length){l=a.indexOf(e.charAt(u++));o=a.indexOf(e.charAt(u++));f=a.indexOf(e.charAt(u++));c=a.indexOf(e.charAt(u++));n=l<<2|o>>4;i=(o&15)<<4|f>>2;s=(f&3)<<6|c;t=t+String.fromCharCode(n);if(f!=64){t=t+String.fromCharCode(i)}if(c!=64){t=t+String.fromCharCode(s)}}return t}},{}],2:[function(e,r,t){"use strict";function a(){this.compressedSize=0;this.uncompressedSize=0;this.crc32=0;this.compressionMethod=null;this.compressedContent=null}a.prototype={getContent:function(){return null},getCompressedContent:function(){return null}};r.exports=a},{}],3:[function(e,r,t){"use strict";t.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null};t.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,r,t){"use strict";var a=e("./utils");var n=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628
}return null}};r.exports=l},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,r,t){"use strict";var a=e("./lib/utils/common").assign;var n=e("./lib/deflate");var i=e("./lib/inflate");var s=e("./lib/zlib/constants");var l={};a(l,n,i,s);r.exports=l},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,r,t){"use strict";var a=e("./zlib/deflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/messages");var l=e("./zlib/zstream");var o=0;var f=4;var c=0;var u=1;var h=-1;var d=0;var v=8;var p=function(e){this.options=n.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>0){r.windowBits=-r.windowBits}else if(r.gzip&&r.windowBits>0&&r.windowBits<16){r.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new l;this.strm.avail_out=0;var t=a.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==c){throw new Error(s[t])}if(r.header){a.deflateSetHeader(this.strm,r.header)}};p.prototype.push=function(e,r){var t=this.strm;var s=this.options.chunkSize;var l,h;if(this.ended){return false}h=r===~~r?r:r===true?f:o;if(typeof e==="string"){t.input=i.string2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(s);t.next_out=0;t.avail_out=s}l=a.deflate(t,h);if(l!==u&&l!==c){this.onEnd(l);this.ended=true;return false}if(t.avail_out===0||t.avail_in===0&&h===f){if(this.options.to==="string"){this.onData(i.buf2binstring(n.shrinkBuf(t.output,t.next_out)))}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}while((t.avail_in>0||t.avail_out===0)&&l!==u);if(h===f){l=a.deflateEnd(this.strm);this.onEnd(l);this.ended=true;return l===c}return true};p.prototype.onData=function(e){this.chunks.push(e)};p.prototype.onEnd=function(e){if(e===c){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=n.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function b(e,r){var t=new p(r);t.push(e,true);if(t.err){throw t.msg}return t.result}function m(e,r){r=r||{};r.raw=true;return b(e,r)}function g(e,r){r=r||{};r.gzip=true;return b(e,r)}t.Deflate=p;t.deflate=b;t.deflateRaw=m;t.gzip=g},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,r,t){"use strict";var a=e("./zlib/inflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/constants");var l=e("./zlib/messages");var o=e("./zlib/zstream");var f=e("./zlib/gzheader");var c=function(e){this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>=0&&r.windowBits<16){r.windowBits=-r.windowBits;if(r.windowBits===0){r.windowBits=-15}}if(r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)){r.windowBits+=32}if(r.windowBits>15&&r.windowBits<48){if((r.windowBits&15)===0){r.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new o;this.strm.avail_out=0;var t=a.inflateInit2(this.strm,r.windowBits);if(t!==s.Z_OK){throw new Error(l[t])}this.header=new f;a.inflateGetHeader(this.strm,this.header)};c.prototype.push=function(e,r){var t=this.strm;var l=this.options.chunkSize;var o,f;var c,u,h;if(this.ended){return false}f=r===~~r?r:r===true?s.Z_FINISH:s.Z_NO_FLUSH;if(typeof e==="string"){t.input=i.binstring2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(l);t.next_out=0;t.avail_out=l}o=a.inflate(t,s.Z_NO_FLUSH);if(o!==s.Z_STREAM_END&&o!==s.Z_OK){this.onEnd(o);this.ended=true;return false}if(t.next_out){if(t.avail_out===0||o===s.Z_STREAM_END||t.avail_in===0&&f===s.Z_FINISH){if(this.options.to==="string"){c=i.utf8border(t.output,t.next_out);u=t.next_out-c;h=i.buf2string(t.output,c);t.next_out=u;t.avail_out=l-u;if(u){n.arraySet(t.output,t.output,c,u,0)}this.onData(h)}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}}while(t.avail_in>0&&o!==s.Z_STREAM_END);if(o==
le>>>=oe&7;oe-=oe&7;while(oe<32){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}if((le&65535)!==(le>>>16^65535)){e.msg="invalid stored block lengths";t.mode=Q;break}t.length=le&65535;le=0;oe=0;t.mode=N;if(r===d){break e};case N:t.mode=L;case L:ue=t.length;if(ue){if(ue>ie){ue=ie}if(ue>se){ue=se}if(ue===0){break e}a.arraySet(re,ee,te,ue,ae);ie-=ue;te+=ue;se-=ue;ae+=ue;t.length-=ue;break}t.mode=O;break;case M:while(oe<14){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}t.nlen=(le&31)+257;le>>>=5;oe-=5;t.ndist=(le&31)+1;le>>>=5;oe-=5;t.ncode=(le&15)+4;le>>>=4;oe-=4;if(t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols";t.mode=Q;break}t.have=0;t.mode=U;case U:while(t.have<t.ncode){while(oe<3){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}t.lens[Ie[t.have++]]=le&7;le>>>=3;oe-=3}while(t.have<19){t.lens[Ie[t.have++]]=0}t.lencode=t.lendyn;t.lenbits=7;Te={bits:t.lenbits};_e=l(o,t.lens,0,19,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(_e){e.msg="invalid code lengths set";t.mode=Q;break}t.have=0;t.mode=H;case H:while(t.have<t.nlen+t.ndist){for(;;){be=t.lencode[le&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}if(Ee<16){le>>>=me;oe-=me;t.lens[t.have++]=Ee}else{if(Ee===16){xe=me+2;while(oe<xe){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}le>>>=me;oe-=me;if(t.have===0){e.msg="invalid bit length repeat";t.mode=Q;break}Ce=t.lens[t.have-1];ue=3+(le&3);le>>>=2;oe-=2}else if(Ee===17){xe=me+3;while(oe<xe){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}le>>>=me;oe-=me;Ce=0;ue=3+(le&7);le>>>=3;oe-=3}else{xe=me+7;while(oe<xe){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}le>>>=me;oe-=me;Ce=0;ue=11+(le&127);le>>>=7;oe-=7}if(t.have+ue>t.nlen+t.ndist){e.msg="invalid bit length repeat";t.mode=Q;break}while(ue--){t.lens[t.have++]=Ce}}}if(t.mode===Q){break}if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block";t.mode=Q;break}t.lenbits=9;Te={bits:t.lenbits};_e=l(f,t.lens,0,t.nlen,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(_e){e.msg="invalid literal/lengths set";t.mode=Q;break}t.distbits=6;t.distcode=t.distdyn;Te={bits:t.distbits};_e=l(c,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Te);t.distbits=Te.bits;if(_e){e.msg="invalid distances set";t.mode=Q;break}t.mode=V;if(r===d){break e};case V:t.mode=W;case W:if(ie>=6&&se>=258){e.next_out=ae;e.avail_out=se;e.next_in=te;e.avail_in=ie;t.hold=le;t.bits=oe;s(e,ce);ae=e.next_out;re=e.output;se=e.avail_out;te=e.next_in;ee=e.input;ie=e.avail_in;le=t.hold;oe=t.bits;if(t.mode===O){t.back=-1}break}t.back=0;for(;;){be=t.lencode[le&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}if(ge&&(ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.lencode[Se+((le&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}le>>>=ke;oe-=ke;t.back+=ke}le>>>=me;oe-=me;t.back+=me;t.length=Ee;if(ge===0){t.mode=K;break}if(ge&32){t.back=-1;t.mode=O;break}if(ge&64){e.msg="invalid literal/length code";t.mode=Q;break}t.extra=ge&15;t.mode=z;case z:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}t.length+=le&(1<<t.extra)-1;le>>>=t.extra;oe-=t.extra;t.back+=t.extra}t.was=t.length;t.mode=X;case X:for(;;){be=t.distcode[le&(1<<t.distbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}if((ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.distcode[Se+((le&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}le>>>=ke;oe-=ke;t.back+=ke}le>>>=me;oe-=me;t.back+=me;if(ge&64){e.msg="invalid distance code";t.mode=Q;break}t.offset=Ee;t.extra=ge&15;t.mode=G;case G:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;le+=ee[te++]<<oe;oe+=8}t.offset+=le&(1<<t.extra)-1;le>>>=t.extra;oe-=t.extra;t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back";t.mode=Q;break}t.mode=j;case j:if(se===0){break e}ue=ce-se;if(t.offset>ue){ue=t.offset-ue;if(ue>t.whave)
return"("+f.substr(0,3)+") "+f.substr(3,3)+"-"+f.substr(6)}var S="";if(u=s.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)){g=Math.min(u[4].length,7);E=p(k,Math.pow(10,g)-1,false);f=""+w;S=x("n",u[1],E[1]);if(S.charAt(S.length-1)==" ")S=S.substr(0,S.length-1)+"0";f+=S+u[2]+"/"+u[3];S=i(E[2],g);if(S.length<u[4].length)S=m(u[4].substr(u[4].length-S.length))+S;f+=S;return f}if(u=s.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)){g=Math.min(Math.max(u[1].length,u[4].length),7);E=p(k,Math.pow(10,g)-1,true);return w+(E[0]||(E[1]?"":"0"))+" "+(E[1]?n(E[1],g)+u[2]+"/"+u[3]+i(E[2],g):t(" ",2*g+1+u[2].length+u[3].length))}if(u=s.match(/^[#0?]+$/)){f=""+l;if(s.length<=f.length)return f;return m(s.substr(0,s.length-f.length))+f}if(u=s.match(/^([#0]+)\.([#0]+)$/)){f=""+l.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=f.indexOf(".");var A=s.indexOf(".")-g,y=s.length-f.length-A;return m(s.substr(0,A)+f+s.substr(s.length-y))}if(u=s.match(/^00,000\.([#0]*0)$/)){return l<0?"-"+I(e,s,-l):T(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":var R=T(""+k);return R!=="0"?w+R:"";default:if(s.match(/\.[0#?]*$/))return I(e,s.slice(0,s.lastIndexOf(".")),l)+m(s.slice(s.lastIndexOf(".")));}throw new Error("unsupported format |"+s+"|")}return function A(e,r,t){return(t|0)===t?I(e,r,t):S(e,r,t)}}();function I(e){var r=[];var t=false;for(var a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:;case 42:;case 92:++a;break;case 59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)throw new Error("Format |"+e+"| unterminated string ");return r}e._split=I;var A=/\[[HhMmSs]*\]/;function y(e){var r=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(c(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return true;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":return true;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")return true;if(e.substr(r,5).toUpperCase()==="AM/PM")return true;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(A))return true;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=y;function R(e,r,t,a){var n=[],i="",s=0,l="",o="t",f,u,h;var d="H";while(s<e.length){switch(l=e.charAt(s)){case"G":if(!c(e,s))throw new Error("unrecognized character "+l+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":var v=e.charAt(++s),p=v==="("||v===")"?v:"t";n[n.length]={t:p,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(f==null){f=b(r,t,e.charAt(s+1)==="2");if(f==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};o=l;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":l=l.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(f==null){f=b(r,t);if(f==null)return""}i=l;while(++s<e.length&&e.charAt(s).toLowerCase()===l)i+=l;if(l==="m"&&o.toLowerCase()==="h")l="M";if(l==="h")l=d;n[n.length]={t:l,v:i};o=l;break;case"A":;case"a":var m={t:l,v:l};if(f==null)f=b(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(f!=null)m.v=f.H>=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if
}}();var Le=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","g"),e[1]]});return function r(t){var a=t.trim().replace(/\s+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,"");for(var n=0;n<e.length;++n)a=a.replace(e[n][0],e[n][1]);return a}}();var Me=function(){var e={};return function r(t){if(e[t]!==undefined)return e[t];return e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}();var Ue=/<\/?(?:vt:)?variant>/g,He=/<(?:vt:)([^>]*)>([\s\S]*)</;function Ve(e,r){var t=me(e);var a=e.match(Me(t.baseType))||[];var n=[];if(a.length!=t.size){if(r.WTF)throw new Error("unexpected vector length "+a.length+" != "+t.size);return n}a.forEach(function(e){var r=e.replace(Ue,"").match(He);if(r)n.push({v:Re(r[2]),t:r[1]})});return n}var We=/(^\s|\s$|\n)/;function ze(e,r){return"<"+e+(r.match(We)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function Xe(e){return P(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Ge(e,r,t){return"<"+e+(t!=null?Xe(t):"")+(r!=null?(r.match(We)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function je(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function Ke(e){switch(typeof e){case"string":return Ge("vt:lpwstr",e);case"number":return Ge((e|0)==e?"vt:i4":"vt:r8",String(e));case"boolean":return Ge("vt:bool",e?"true":"false");}if(e instanceof Date)return Ge("vt:filetime",je(e));throw new Error("Unable to serialize "+e)}var Ye={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};Ye.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var $e={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Ze(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function Qe(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))){n=-1022}else{i-=Math.pow(2,52);n+=1023}}for(var l=0;l<=5;++l,i/=256)e[t+l]=i&255;e[t+6]=(n&15)<<4|i&15;e[t+7]=n>>4|a}var Je=function(e){var r=[];for(var t=0;t<e[0].length;++t){r.push.apply(r,e[0][t])}return r};var qe=Je;var er=function(e,r,t){var a=[];for(var n=r;n<t;n+=2)a.push(String.fromCharCode(kr(e,n)));return a.join("").replace(B,"")};var rr=er;var tr=function(e,r,t){var a=[];for(var n=r;n<r+t;++n)a.push(("0"+e[n].toString(16)).slice(-2));return a.join("")};var ar=tr;var nr=function(e,r,t){var a=[];for(var n=r;n<t;n++)a.push(String.fromCharCode(Er(e,n)));return a.join("")};var ir=nr;var sr=function(e,r){var t=Sr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var lr=sr;var or=function(e,r){var t=Sr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var fr=or;var cr=function(e,r){var t=2*Sr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var ur=cr;var hr,dr;hr=dr=function Lb(e,r){var t=Sr(e,r);return t>0?er(e,r+4,r+4+t):""};var vr=function(e,r){var t=Sr(e,r);return t>0?nr(e,r+4,r+4+t):""};var pr=vr;var br,mr;br=mr=function(e,r){return Ze(e,r)};var gr=function
for(var a=0;a<e.length;++a)t.push(' <manifest:file-entry manifest:full-path="'+e[a][0]+'" manifest:media-type="'+e[a][1]+'"/>\n');t.push("</manifest:manifest>");return t.join("")}function ya(e,r,t){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+'"/>\n'," </rdf:Description>\n"].join("")}function Ra(e,r){return[' <rdf:Description rdf:about="'+e+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+'"/>\n'," </rdf:Description>\n"].join("")}function Da(e,r){var t=[he];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var a=0;a!=e.length;++a){t.push(ya(e[a][0],e[a][1]));t.push(Ra("",e[a][0]))}t.push(ya("","Document","pkg"));t.push("</rdf:RDF>");return t.join("")}var Oa=function(){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>Sheet'+"JS "+r.version+"</meta:generator></office:meta></office:document-meta>";return function t(r,a){return e}}();var Fa=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];Ye.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";wa.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var Pa=function(){var e=new Array(Fa.length);for(var r=0;r<Fa.length;++r){var t=Fa[r];var a="(?:"+t[0].substr(0,t[0].indexOf(":"))+":)"+t[0].substr(t[0].indexOf(":")+1);e[r]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function Na(e){var r={};e=Re(e);for(var t=0;t<Fa.length;++t){var a=Fa[t],n=e.match(Pa[t]);if(n!=null&&n.length>0)r[a[1]]=n[1];if(a[2]==="date"&&r[a[1]])r[a[1]]=K(r[a[1]])}return r}var La=Ge("cp:coreProperties",null,{"xmlns:cp":Ye.CORE_PROPS,"xmlns:dc":Ye.dc,"xmlns:dcterms":Ye.dcterms,"xmlns:dcmitype":Ye.dcmitype,"xmlns:xsi":Ye.xsi});function Ma(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;a[a.length]=t?Ge(e,r,t):ze(e,r)}function Ua(e,r){var t=r||{};var a=[he,La],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)Ma("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:je(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Ma("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:je(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=Fa.length;++i){var s=Fa[i];var l=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(l===true)l="1";else if(l===false)l="0";else if(typeof l=="number")l=String(l);if(l!=null)Ma(s[0],l,null,a,n)}if(a.length>2){a[a.length]="</cp:coreProperties>";a[1]=a[1].replace("/>",">")}return a.join("")}var Ha=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];Ye.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";wa.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";function Va(e,r,t){var a={};if(!r)r={};e=Re(e);Ha.forEach(function(t){switch(t[2]){case"string":r[t[1]]=(e.match(Ne(t[0]))||[])[
var n=zn(e,6);var i=e._R(2);var s=yn(e,i,t);e.l=a;n.t="str";n.val=s;return n}var Ns=function(){var e={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};function r(r,t){var a=[];var n=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);var i=n._R(1);var s=false;var l=false,o=false;switch(i){case 2:;case 3:break;case 48:l=true;s=true;break;case 49:l=true;break;case 131:s=true;break;case 139:s=true;break;case 140:s=true;o=true;break;case 245:s=true;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16));}var f=new Date,c=0,u=0;if(i==2)c=n._R(2);f=new Date(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);var h=n._R(2);var d=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;var p=[],b={};var m=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:throw new Error("Unknown Field Type: "+b.type);}}if(n[n.l]!==13)n.l=u-1;else if(i==2)n.l=521;if(i!=2){if(n._R(1)!==13)throw new Error("DBF Terminator not found "+n.l+" "+n[n.l]);n.l=u}var S=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);var B=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]=new Date(+B.substr(0,4),+B.substr(4,2)-1,+B.substr(6,2));else a[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:throw new Error("DBF Unrecognized L:|"+B+"|");}break;case"M":if(!s)throw new Error("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]=new Date(_._R(-8,"f")-621356832e5);break;case"T":a[S][C]=new Date((_._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:throw new Error("DBF Unsupported data type "+p[C].type);}}}if(i!=2)if(n.l<n.length&&n[n.l++]!=26)throw new Error("DBF EOF Marker missing "+(n.l-1)+" of "+n.length+" "+n[n.l-1].toString(16));return a}function t(e,t){var a=t||{};if(!a.dateNF)a.dateNF="yyyymmdd";return ct(r(e,a),a)}function a(e,r){try{return ft(t(e,r),r)}catch(a){if(r&&r.WTF)throw a}return{SheetNames:[],Sheets:{}}}var n={B:8,C:250,L:1,D:8,"?":0,"":0};function i(e,r){var t=r||{};if(t.type=="string")throw new Error("Cannot write DBF to JS string");var a=Lr();var i=wb(e,{header:1,raw:true,cellDates:true});var s=i[0],l=i.slice(1);var o=0,f=0,c=0,u=1;for(o=0;o<s.length;++o){if(o==null)continue;++c;if(typeof s[o]!=="string")throw new Error("DBF Invali
a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=_l(t.password);return n}function Tl(e,r,t){var a=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=kl(e,r);else a.Data=El(e,r);return a}function xl(e,r,t){var a={Type:t.biff>=8?e._R(2):0};if(a.Type)Tl(e,r-2,a);else Bl(e,r-2,t,a);return a}var Il=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(e.toString("binary"),t);case"array":return r(Y(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=r||{};var a=t.dense?[]:{};var n={s:{c:0,r:0},e:{c:0,r:0}};if(!e.match(/\\trowd/))throw new Error("RTF missing table");a["!ref"]=it(n);return a}function t(r,t){return ft(e(r,t),t)}function a(e,r){var t=["{\\rtf1\\ansi"];var a=st(e["!ref"]),n;var i=Array.isArray(e);for(var s=a.s.r;s<=a.e.r;++s){t.push("\\trowd\\trautofit1");for(var l=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){var o=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")}return t.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function Al(e){var r=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)]}function yl(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().substr(1)}function Rl(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var l=0,o=0,f=n+i;o=s/(f>1?2-f:f);switch(n){case r:l=((t-a)/s+6)%6;break;case t:l=(a-r)/s+2;break;case a:l=(r-t)/s+4;break;}return[l/6,o,f/2]}function Dl(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],l=6*r;var o;if(t!==0)switch(l|0){case 0:;case 6:o=n*l;s[0]+=n;s[1]+=o;break;case 1:o=n*(2-l);s[0]+=o;s[1]+=n;break;case 2:o=n*(l-2);s[1]+=n;s[2]+=o;break;case 3:o=n*(4-l);s[1]+=o;s[2]+=n;break;case 4:o=n*(l-4);s[2]+=n;s[0]+=o;break;case 5:o=n*(6-l);s[2]+=o;s[0]+=n;break;}for(var f=0;f!=3;++f)s[f]=Math.round(s[f]*255);return s}function Ol(e,r){if(r===0)return e;var t=Rl(Al(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return yl(Dl(t))}var Fl=6,Pl=15,Nl=1,Ll=Fl;function Ml(e){return Math.floor((e+Math.round(128/Ll)/256)*Ll)}function Ul(e){return Math.floor((e-5)/Ll*100+.5)/100}function Hl(e){return Math.round((e*Ll+5)/Ll*256)/256}function Vl(e){return((e-5)/Ll*100+.5)/100}function Wl(e){return(e*Ll+5)/Ll*256/256}function zl(e){return Hl(Ul(Ml(e)))}function Xl(e){var r=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}function Gl(e){var r=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}function jl(e){if(e.width){e.wpx=Ml(e.width);e.wch=Ul(e.wpx);e.MDW=Ll}else if(e.wpx){e.wch=Ul(e.wpx);e.width=Hl(e.wch);e.MDW=Ll}else if(typeof e.wch=="number"){e.width=Hl(e.wch);e.wpx=Ml(e.width);e.MDW=Ll}if(e.customWidth)delete e.customWidth}var Kl=96,Yl=Kl;function $l(e){return e*96/Yl}function Zl(e){return e*Yl/96}var Ql={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"};function Jl(e,r,t,a){r.Borders=[];var n={},i={};e[0].match(ve).forEach(function(e){var t=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){return et(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>");return n.join("")}wa.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";function df(e,r,t,a,n){for(var i=0;i!=r.length;++i){var s=r[i];var l=kv(se(e,s.replace(/^\//,""),true),s,n);if(!l||!l.length)continue;var o=P(t);for(var f=0;f!=o.length;++f){var c=o[f];var u=a[c];if(u){var h=u[s];if(h)vf(c,t[c],l)}}}}function vf(e,r,t){var a=Array.isArray(r);var n,i;t.forEach(function(e){if(a){i=et(e.ref);if(!r[i.r])r[i.r]=[];n=r[i.r][i.c]}else n=r[e.ref];if(!n){n={};if(a)r[i.r][i.c]=n;else r[e.ref]=n;var t=st(r["!ref"]||"BDWGO1000001:A1");var s=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;var l=it(t);if(l!==r["!ref"])r["!ref"]=l}if(!n.c)n.c=[];var o={a:e.author,t:e.t,r:e.r};if(e.h)o.h=e.h;n.c.push(o)})}function pf(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[];var a=[];var n=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;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var i=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;var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(!i)return;var s=me(i[0]);var l={author:s.authorId&&t[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid};var o=et(s.ref);if(r.sheetRows&&r.sheetRows<=o.r)return;var f=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var c=!!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)});return a}var bf=Ge("comments",null,{xmlns:Ye.main[0]});function mf(e,r){var t=[he,bf];var a=[];t.push("<authors>");e.map(function(e){return e[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("/>",">")}return t.join("")}function gf(e,r){var t={};t.iauthor=e._R(4);var a=Ft(e,16);t.rfx=a.s;t.ref=rt(a.s);e.l+=16;return t}function Ef(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);return r}var kf=ht;function wf(e){return dt(e.slice(0,54))}function Sf(e,r){var t=[];var a=[];var n={};var i=false;Nr(e,function s(e,l,o){switch(o){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 35:i=true;break;case 36:i=false;break;case 37:break;case 38:break;default:if((l||"").indexOf("Begin")>0){}else if((l||"").indexOf("End")>0){}else if(!i||r.WTF)throw new Error("Unexpected record "+o+" "+l);}});return t}function Cf(e,r){var t=Lr();var a=[];
182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC
}}if(C.length>0)o["!merges"]=C;if(R.length>0)o["!cols"]=R;if(D.length>0)o["!rows"]=D;return o}function bd(e,r,t,a,n,i){if(r.v===undefined)return"";var s="";switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r=$(r);r.z=r.z||x._table[14];r.v=W(K(r.v));r.t="n";break;case"n":;case"e":s=""+r.v;break;default:s=r.v;break;}var l={r:t,c:a};l.s=qu(n.cellXfs,r,n);if(r.l)i["!links"].push([rt(l),r.l]);if(r.c)i["!comments"].push([rt(l),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){s=Zu(n.Strings,r.v);l.t="s";l.v=s;Mr(e,"BrtCellIsst",Xh(r,l))}else{l.t="str";Mr(e,"BrtCellSt",Zh(r,l))}return;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3)Mr(e,"BrtCellRk",Yh(r,l));else Mr(e,"BrtCellReal",jh(r,l));return;case"b":l.t="b";Mr(e,"BrtCellBool",Vh(r,l));return;case"e":l.t="e";break;}Mr(e,"BrtCellBlank",Uh(r,l))}function md(e,r,t,a,n){var i=st(r["!ref"]||"A1"),s,l="",o=[];Mr(e,"BrtBeginSheetData");var f=Array.isArray(r);var c=i.e.r;if(r["!rows"])c=Math.max(i.e.r,r["!rows"].length-1);for(var u=i.s.r;u<=c;++u){l=jr(u);Dh(e,r,i,u);if(u<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){if(u===i.s.r)o[h]=Zr(h);s=o[h]+l;var d=f?(r[u]||[])[h]:r[s];if(!d)continue;bd(e,d,u,h,a,r)}}Mr(e,"BrtEndSheetData")}function gd(e,r){if(!r||!r["!merges"])return;Mr(e,"BrtBeginMergeCells",ad(r["!merges"].length));r["!merges"].forEach(function(r){Mr(e,"BrtMergeCell",td(r))});Mr(e,"BrtEndMergeCells")}function Ed(e,r,t,a,n){if(!r||!r["!cols"])return;Mr(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)Mr(e,"BrtColInfo",od(t,r))});Mr(e,"BrtEndColInfos")}function kd(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;var a=Ta(t,-1,r[1].Target.replace(/#.*$/,""),wa.HLINK);Mr(e,"BrtHLink",id(r,a))});delete r["!links"]}function wd(e,r,t,a){if(r["!comments"].length>0){var n=Ta(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",wa.VML);Mr(e,"BrtLegacyDrawing",At("rId"+n));r["!legacy"]=n}}function Sd(e,r){if(!r["!autofilter"])return;Mr(e,"BrtBeginAFilter",Pt(nt(r["!autofilter"].ref)));Mr(e,"BrtEndAFilter")}function Cd(e,r,t){Mr(e,"BrtBeginWsViews");{Mr(e,"BrtBeginWsView",dd(r,t));Mr(e,"BrtEndWsView")}Mr(e,"BrtEndWsViews")}function _d(e,r){}function Bd(e,r){if(!r["!protect"])return;Mr(e,"BrtSheetProtection",vd(r["!protect"]))}function Td(e,r,t,a){var n=Lr();var i=t.SheetNames[e],s=t.Sheets[i]||{};var l=i;try{if(t&&t.Workbook)l=t.Workbook.Sheets[e].CodeName||l}catch(o){}var f=st(s["!ref"]||"A1");s["!links"]=[];s["!comments"]=[];Mr(n,"BrtBeginSheet");Mr(n,"BrtWsProp",Lh(l));Mr(n,"BrtWsDim",Fh(f));Cd(n,s,t.Workbook);_d(n,s);Ed(n,s,e,r,t);md(n,s,e,r,t);Bd(n,s);Sd(n,s);gd(n,s);kd(n,s,a);if(s["!margins"])Mr(n,"BrtMargins",ud(s["!margins"]));wd(n,s,e,a);Mr(n,"BrtEndSheet");return n.end()}function xd(e){var r=[];(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var t=e.match(/<c:pt idx="(.*?)"><c:v>(.*)<\/c:v><\/c:pt>/);if(!t)return;r[+t[1]]=+t[2]});var t=we((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return[r,t]}function Id(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var l=0,o=0,f="A";var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var r=xd(e);c.s.r=c.s.c=0;c.e.c=l;f=Zr(l);r[0].forEach(function(e,t){s[f+jr(t)]={t:"n",v:e,z:r[1]};o=t});if(c.e.r<o)c.e.r=o;++l});if(l>0)s["!ref"]=it(c);return s}wa.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";var Ad=Ge("chartsheet",null,{xmlns:Ye.main[0],"xmlns:r":Ye.r});function yd(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};var l={"!type":"chart","!chart":null,"!rel":""};var o;var f=e.match(fh);if(f)dh(f[0],l,n,t);if(o=e.match(/drawing r:id="(.*?)"/))l["!rel"]=o[1];if(a["!id"][l["!rel"]])l["!chart"]=a["!id"][l["!rel"]];return l}function Rd(e,r,t,a){var n=[he,Ad];n[n.length]=Ge("drawing",null,{"r:id":"rId1"});Ta(a,-1,"../drawings/drawing"+(e+1)+".xml",wa.DRAW);if(n.length>2){n[n.length]="</chartsheet>";n[1]=n[1].replace("/>",">")}return n.join("")}function Dd(e,r){e.l+=10;var t=ht(e,r-10);return{name:t}}function Od(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};var l={"!type":"chart","!chart":n
;case"RowEnd":break;default:ae=false;}break;case"AutoFilter":switch(s[3]){case"AutoFilterColumn":break;case"AutoFilterCondition":break;case"AutoFilterAnd":break;case"AutoFilterOr":break;default:ae=false;}break;case"QueryTable":switch(s[3]){case"Id":break;case"AutoFormatFont":break;case"AutoFormatPattern":break;case"QuerySource":break;case"QueryType":break;case"EnableRedirections":break;case"RefreshedInXl9":break;case"URLString":break;case"HTMLTables":break;case"Connection":break;case"CommandText":break;case"RefreshInfo":break;case"NoTitles":break;case"NextId":break;case"ColumnInfo":break;case"OverwriteCells":break;case"DoNotPromptForFile":break;case"TextWizardSettings":break;case"Source":break;case"Number":break;case"Decimal":break;case"ThousandSeparator":break;case"TrailingMinusNumbers":break;case"FormatSettings":break;case"FieldType":break;case"Delimiters":break;case"Tab":break;case"Comma":break;case"AutoFormatName":break;case"VersionLastEdit":break;case"VersionLastRefresh":break;default:ae=false;}break;case"Sorting":;case"ConditionalFormatting":;case"DataValidation":switch(s[3]){case"Range":break;case"Type":break;case"Min":break;case"Max":break;case"Sort":break;case"Descending":break;case"Order":break;case"CaseSensitive":break;case"Value":break;case"ErrorStyle":break;case"ErrorMessage":break;case"ErrorTitle":break;case"CellRangeList":break;case"InputMessage":break;case"InputTitle":break;case"ComboHide":break;case"InputHide":break;case"Condition":break;case"Qualifier":break;case"UseBlank":break;case"Value1":break;case"Value2":break;case"Format":break;default:ae=false;}break;case"MapInfo":;case"Schema":;case"data":switch(s[3]){case"Map":break;case"Entry":break;case"Range":break;case"XPath":break;case"Field":break;case"XSDType":break;case"FilterOn":break;case"Aggregate":break;case"ElementType":break;case"AttributeType":break;case"schema":;case"element":;case"complexType":;case"datatype":;case"all":;case"attribute":;case"extends":break;case"row":break;default:ae=false;}break;case"SmartTags":break;default:ae=false;break;}if(ae)break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="CustomDocumentProperties"){if(s[0].slice(-2)==="/>")break;else if(s[1]==="/")Pv(O,s[3],P,a.slice(F,s.index));else{P=s;F=s.index+s[0].length}break}if(t.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|");}var ie={};if(!t.bookSheets&&!t.bookProps)ie.Sheets=f;ie.SheetNames=c;ie.Workbook=j;ie.SSF=x.get_table();ie.Props=D;ie.Custprops=O;return ie}function zv(e,r){jp(r=r||{});switch(r.type||"base64"){case"base64":return Wv(g.decode(e),r);case"binary":;case"buffer":;case"file":return Wv(e,r);case"array":return Wv(C(e),r);}}function Xv(e,r){var t=[];if(e.Props)t.push(Qa(e.Props,r));if(e.Custprops)t.push(Ja(e.Props,e.Custprops,r));return t.join("")}function Gv(e,r){return""}function jv(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];r.cellXfs.forEach(function(e,r){var a=[];a.push(Ge("NumberFormat",null,{"ss:Format":_e(x._table[e.numFmtId])}));t.push(Ge("Style",a.join(""),{"ss:ID":"s"+(21+r)}))});return Ge("Styles",t.join(""))}function Kv(e,r,t,a){if(!e)return"";var n=[];if(e["!margins"]){n.push("<PageSetup>");if(e["!margins"].header)n.push(Ge("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(Ge("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(Ge("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"}));n.push("</PageSetup>")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(Ge("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<t;++i)if(a.Workbook.Sheets[i]&&!a.Workbook.Sheets[i].Hidden)break;if(i==t)n.push("<Selected/>")}}if(((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL)n.push("<DisplayRightToLeft/>");if(e["!protect"]){n.push(ze("ProtectContents","True"));if(e["!protect"].objects)n.push(ze("ProtectObjects","True"));if(e["!protect"].scenarios)n
311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:It},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:Zi},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:sd},427:{n:"BrtShrFmla",f:ld},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBegi
for(;o<n.length;++o){var d=n[o];var v=d.children;for(f=c=0;f<v.length;++f){var p=v[f],m=Le(v[f].innerHTML);for(l=0;l<s.length;++l){var g=s[l];if(g.s.c==c&&g.s.r<=o&&o<=g.e.r){c=g.e.c+1;l=-1}}h=+p.getAttribute("colspan")||1;if((u=+p.getAttribute("rowspan"))>0||h>1)s.push({s:{r:o,c:c},e:{r:o+(u||1)-1,c:c+h-1}});var E={t:"s",v:m};var k=p.getAttribute("t")||"";if(m!=null){if(m.length==0)E.t=k||"z";else if(t.raw||m.trim().length==0||k=="s"){}else if(m==="TRUE")E={t:"b",v:true};else if(m==="FALSE")E={t:"b",v:false};else if(!isNaN(Q(m)))E={t:"n",v:Q(m)};else if(!isNaN(J(m).getDate())){E={t:"d",v:K(m)};if(!t.cellDates)E={t:"n",v:W(E.v)};E.z=t.dateNF||x._table[14]}}if(t.dense){if(!a[o])a[o]=[];a[o][c]=E}else a[rt({c:c,r:o})]=E;if(i.e.c<c)i.e.c=c;c+=h}}a["!merges"]=s;a["!ref"]=it(i);return a}function xp(e,r){return ft(Tp(e,r),r)}var Ip=function(){var e=function(e,r){return we(e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n").replace(/<[^>]*>/g,""))};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],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"']};return function t(a,n){var i=n||{};if(b!=null&&i.dense==null)i.dense=b;var s=Hv(a);var l=[],o;var f;var c={name:""},u="",h=0;var d;var v;var p={},m=[];var g=i.dense?[]:{};var E,k;var w={value:""};var S="",C=0,_;var B=-1,T=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};var I=0;var A={};var y=[],R={},D=0,O=0;var F=[],P=1,N=1;var L=[];var M={Names:[]};var U={};var H=["",""];var V=[],z={};var G="",j=0;var Y=false,Z=false;var Q=0;Vv.lastIndex=0;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(E=Vv.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"]=it(x);if(y.length)g["!merges"]=y;if(F.length)g["!rows"]=F;d.name=Re(d["名称"]||d.name);m.push(d.name);p[d.name]=g;Z=false}else if(E[0].charAt(E[0].length-2)!=="/"){d=me(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=[];Z=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=me(E[0],false);if(v["行号"])B=v["行号"]-1;else if(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"}}else g[rt({r:B,c:T})]={t:"z"}}break;case"table-cell":;case"数据":if(E[0].charAt(E[0].length-2)==="/"){++T;w=me(E[0],false);N=parseInt(w["number-columns-repeated"]||"1",10);k={t:"z",v:null};if(w.formula&&i.cellFormula!=false)k.f=Xu(we(w.formula));if((w["数据类型"]||w["value-type"])=="string"){k.t="s";k.v=we(w["string-value"]||"");if(i.dense){if(!g[B])g[B]=[];g[B][T]=k}else{g[rt({r:B,c:T})]=k}}T+=N-1}else if(E[1]!=="/"){++T;N=1;if(T>x.e.c)x.e.c=T;if(B>x.e.r)x.e.r=B;if(T<x.s.c)x.s.c=T;if(B<x.s.r)x.s.r=B;w=me(E[0],false);V=[];z={};k={t:w["数据类型"]||w["value-type"],v:null};if(i.cellFormula){if(w.formula)w.formula=we(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=it(R);L.push([R,k.F])}if(w.formula)k.f=Xu(w.formula);else for(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=ye(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;c
gb(a);return mb(e,a)}function kb(e,r,t,a){var n=t||{};n.type="file";n.file=e;gb(n);n.type="buffer";var i=a;if(!(i instanceof Function))i=t;return oe.writeFile(e,mb(r,n),i)}function wb(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},a=0,n=1,i=[],s=true,l=0,o="";var f={s:{r:0,c:0},e:{r:0,c:0}};var c=r||{};var u=c.raw;var h=c.defval;var d=c.range!=null?c.range:e["!ref"];if(c.header===1)a=1;else if(c.header==="A")a=2;else if(Array.isArray(c.header))a=3;switch(typeof d){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;var v=jr(f.s.r);var p=[];var b=[];var m=0,g=0;var E=Array.isArray(e);var k=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){case 1:i[w]=w-f.s.c;break;case 2:i[w]=p[w];break;case 3: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;}}var C=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}else C.__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:throw new Error("unrecognized type "+t.t);}if(i[w]!=null){if(l==null){if(h!==undefined)C[i[w]]=h;else if(u&&l===null)C[i[w]]=null;else continue}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;return b}var Sb=/"/g;function Cb(e,r,t,a,n,i,s,l){var o=true;var f=[],c="",u=jr(t);for(var h=r.s.c;h<=r.e.c;++h){if(!a[h])continue;var d=l.dense?(e[t]||[])[h]:e[a[h]+u];if(d==null)c="";else if(d.v!=null){o=false;c=""+ot(d,null,l);for(var v=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"'}else if(d.f!=null&&!d.F){o=false;c="="+d.f;if(c.indexOf(",")>=0)c='"'+c.replace(Sb,'""')+'"'}else c="";f.push(c)}if(l.blankrows===false&&o)return null;return f.join(s)}function _b(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=st(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var l=a.RS!==undefined?a.RS:"\n",o=l.charCodeAt(0);var f=new RegExp((i=="|"?"\\|":i)+"+$");var c="",u=[];a.dense=Array.isArray(e);var h=a.skipHidden&&e["!cols"]||[];var d=a.skipHidden&&e["!rows"]||[];for(var v=n.s.c;v<=n.e.c;++v)if(!(h[v]||{}).hidden)u[v]=Zr(v);for(var p=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)}delete a.dense;return t.join("")}function Bb(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=_b(e,r);if(typeof cptable=="undefined"||r.type=="string")return t;var a=cptable.utils.encode(1200,t,"str");return"ÿþ"+a}function Tb(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var n=st(e["!ref"]),i="",s=[],l;var o=[];var f=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=Zr(l);for(var c=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;else if(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;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;o[o.length]=r+"="+a}}return o}function xb(e,r){var t=r||{};var a={};var n;var i={s:{c:0,r:0},e:{c:0,r:e.length}};var s=t.header||[],l=0;e.forEach(function(e,r){P(e).filter(function(r){return e.hasOwnProperty(r)}).forEach(function(i){if((l=s.indexOf(i))==-1)s[l=s.length]=i;var o=e[i];var f="z";var c="";if(typeof o=="number")f="n";else if(typeof o=="boolean")f="b";else if(typeof o=="string")f="s";else if(o instanceof Date){f="d";if(!t.cellDates){f="n";o=W(o)}c=t.dateNF||x._tab