sheetjs/dist/xlsx.min.js

14 lines
350 KiB
JavaScript
Raw Normal View History

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};(function e(r){r.version="0.11.7";var t=1200;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}function a(){n(1200)}var n=function(e){t=e};function i(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function s(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function l(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var f=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return s(e.substr(2));if(r==254&&t==255)return l(e.substr(2));if(r==65279)return e.substr(1);return e};var c=function rp(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};f=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,i(e.substr(2)))}return e};c=function tp(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var o=null;var u=true;var h=function ap(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a,n,i,s,l,f,c;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);i=r.charCodeAt(o++);s=a>>2;l=(a&3)<<4|n>>4;f=(n&15)<<2|i>>6;c=i&63;if(isNaN(n)){f=c=64}else if(isNaN(i)){c=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(f)+e.charAt(c)}return t},decode:function r(t){var a="";var n,i,s;var l,f,c,o;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|f>>4;i=(f&15)<<4|c>>2;s=(c&3)<<6|o;a+=String.fromCharCode(n);if(c!=64){a+=String.fromCharCode(i)}if(o!=64){a+=String.fromCharCode(s)}}return a}}}();var d=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function v(e){return new(d?Buffer:Array)(e)}function b(e){if(d)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}var p=function(e){return[].concat.apply([],e)};var m=/\u0000/g,g=/[\u0001-\u0006]/;var E={};var S=function np(e){e.version="0.10.0";function r(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length<r)t+=e;return t}function a(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function l(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var f=Math.pow(2,32);function c(e,r){if(e>f||e<-f)return s(e,r);var t=Math.round(e);return l(t,r)}function o(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"
if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;C(e)}function C(e){var r="Sh33tJ5";if(I.find(e,"/"+r))return;var t=Rr(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);T(e)}function T(e,n){w(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var f=e.FileIndex[l];switch(f.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(f.R*f.L*f.C))i=true;if(f.R>-1&&f.L>-1&&f.R==f.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var c=new Date(1987,1,19),o=0;var u=[];for(l=0;l<e.FullPaths.length;++l){if(e.FileIndex[l].type===0)continue;u.push([e.FullPaths[l],e.FileIndex[l]])}for(l=0;l<u.length;++l){var h=t(u[l][0]);s=false;for(o=0;o<u.length;++o)if(u[o][0]===h)s=true;if(!s)u.push([h,{name:a(h).replace("/",""),type:1,clsid:_,ct:c,mt:c,content:null}])}u.sort(function(e,t){return r(e[0],t[0])});e.FullPaths=[];e.FileIndex=[];for(l=0;l<u.length;++l){e.FullPaths[l]=u[l][0];e.FileIndex[l]=u[l][1]}for(l=0;l<u.length;++l){var d=e.FileIndex[l];var v=e.FullPaths[l];d.name=a(v).replace("/","");d.L=d.R=d.C=-(d.color=1);d.size=d.content?d.content.length:0;d.start=0;d.clsid=d.clsid||_;if(l===0){d.C=u.length>1?1:-1;d.size=0;d.type=5}else if(v.slice(-1)=="/"){for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==v)break;d.C=o>=u.length?-1:o;for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==t(v))break;d.R=o>=u.length?-1:o;d.type=1}else{if(t(e.FullPaths[l+1]||"")==t(v))d.R=l+1;d.type=2}}}function x(e,r){T(e);var t=function(e){var r=0,t=0;for(var a=0;a<e.FileIndex.length;++a){var n=e.FileIndex[a];if(!n.content)continue;var i=n.content.length;if(i===0){}else if(i<4096)r+=i+63>>6;else t+=i+511>>9}var s=e.FullPaths.length+3>>2;var l=r+7>>3;var f=r+127>>7;var c=l+t+s+f;var o=c+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(c+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,f,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var a=Rr(t[7]<<9);var n=0,i=0;{for(n=0;n<8;++n)a._W(1,O[n]);for(n=0;n<8;++n)a._W(2,0);a._W(2,62);a._W(2,3);a._W(2,65534);a._W(2,9);a._W(2,6);for(n=0;n<3;++n)a._W(2,0);a._W(4,0);a._W(4,t[2]);a._W(4,t[0]+t[1]+t[2]+t[3]-1);a._W(4,0);a._W(4,1<<12);a._W(4,t[3]?t[0]+t[1]+t[2]-1:D);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:D);a._W(4,t[1]);for(n=0;n<109;++n)a._W(-4,n<t[2]?t[1]+n:-1)}if(t[1]){for(i=0;i<t[1];++i){for(;n<236+i*127;++n)a._W(-4,n<t[2]?t[1]+n:-1);a._W(-4,i===t[1]-1?D:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,D)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,P.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,P.FATSECT);s(t[3]);s(t[4]);var l=0,f=0;var c=e.FileIndex[0];for(;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(f<4096)continue;c.start=i;s(f+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,P.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(!f||f>=4096)continue;c.start=i;s(f+63>>6)}while(a.l&511)a._W(-4,P.ENDOFCHAIN);for(n=0;n<t[4]<<2;++n){var o=e.FullPaths[n];if(!o||o.length===0){for(l=0;l<17;++l)a._W(4,0);for(l=0;l<3;++l)a._W(4,-1);for(l=0;l<12;++l)a._W(4,0);continue}c=e.FileIndex[n];if(n===0)c.start=c.size?c.start-1:D;f=2*(c.name.length+1);a._W(64,c.name,"utf16le");a._W(2,f);a._W(1,c.type);a._W(1,c.color);a._W(-4,c.L);a._W(-4,c.R);a._W(-4,c.C);if(!c.clsid)for(l=0;l<4;++l)a._W(4,0);else a._W(16,c.clsid,"hex");a._W(4,c.state||0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,c.start);a._W(4,c.size);a._W(4,0)}for(n=1;n<e.FileIndex.length;++n){c=e.FileIndex[n];if(c.size>=4096){a.l=c.start+1<<9;for(l=0;l<c.size;++l)a._W(1,c.content[l]);for(;l&511;++l)a._W(1,0)}}for(n=1;n<e.FileIndex.length;++n){c=e.FileIndex[n];if(c.size>0&&c.size<4096){for(l=0;l<c.size;++l)a._W(1,c.content[l]);for(;l&63;++l)a._W(1,0)}}while(a.l<a.length)a._W(1,0);return a}function A(e,r){var t=e.FullPaths.map(function(e){return e.toUpperCase()});var a=t.map(function
r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function xt(e,r){if(!r)r=Rr(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var At=It;var Rt=xt;function Dt(e,r){return e._R(8,"f")}function Ft(e,r){return(r||Rr(8))._W(8,e,"f")}var Ot={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var _t=F(Ot);function Pt(e,r){var t={};var a=e._R(1);var n=a&1;var i=a>>>1;var s=e._R(1);var l=e._R(2,"i");var f=e._R(1);var c=e._R(1);var o=e._R(1);var u=e._R(1);switch(i){case 0:t.auto=1;break;case 1:t.index=s;var h=aa[s];if(h)t.rgb=dl(h);break;case 2:t.rgb=dl([f,c,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function yt(e,r){if(!r)r=Rr(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index){r._W(1,2);r._W(1,e.index)}else if(e.theme){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";r._W(1,parseInt(a.substr(0,2),16));r._W(1,parseInt(a.substr(2,2),16));r._W(1,parseInt(a.substr(4,2),16));r._W(1,255)}return r}function Nt(e,r,t){var a=e._R(1);e.l++;var n={fItalic:a&2,fStrikeout:a&8,fOutline:a&16,fShadow:a&32,fCondense:a&64,fExtend:a&128};return n}function Mt(e,r){if(!r)r=Rr(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}var Lt=2;var Ut=3;var Wt=11;var Ht=12;var Vt=19;var Gt=21;var Xt=30;var zt=64;var jt=71;var Kt=4096;var Yt=80;var $t=81;var Qt=[Yt,$t];var Zt={1:{n:"CodePage",t:Lt},2:{n:"Category",t:Yt},3:{n:"PresentationFormat",t:Yt},4:{n:"ByteCount",t:Ut},5:{n:"LineCount",t:Ut},6:{n:"ParagraphCount",t:Ut},7:{n:"SlideCount",t:Ut},8:{n:"NoteCount",t:Ut},9:{n:"HiddenCount",t:Ut},10:{n:"MultimediaClipCount",t:Ut},11:{n:"Scale",t:Wt},12:{n:"HeadingPair",t:Kt|Ht},13:{n:"DocParts",t:Kt|Xt},14:{n:"Manager",t:Yt},15:{n:"Company",t:Yt},16:{n:"LinksDirty",t:Wt},17:{n:"CharacterCount",t:Ut},19:{n:"SharedDoc",t:Wt},22:{n:"HLinksChanged",t:Wt},23:{n:"AppVersion",t:Ut,p:"version"},26:{n:"ContentType",t:Yt},27:{n:"ContentStatus",t:Yt},28:{n:"Language",t:Yt},29:{n:"Version",t:Yt},255:{}};var Jt={1:{n:"CodePage",t:Lt},2:{n:"Title",t:Yt},3:{n:"Subject",t:Yt},4:{n:"Author",t:Yt},5:{n:"Keywords",t:Yt},6:{n:"Comments",t:Yt},7:{n:"Template",t:Yt},8:{n:"LastAuthor",t:Yt},9:{n:"RevNumber",t:Yt},10:{n:"EditTime",t:zt},11:{n:"LastPrinted",t:zt},12:{n:"CreatedDate",t:zt},13:{n:"ModifiedDate",t:zt},14:{n:"PageCount",t:Ut},15:{n:"WordCount",t:Ut},16:{n:"CharCount",t:Ut},17:{n:"Thumbnail",t:jt},18:{n:"ApplicationName",t:Xt},19:{n:"DocumentSecurity",t:Ut},255:{}};var qt={2147483648:{n:"Locale",t:Vt},2147483651:{n:"Behavior",t:Vt},1919054434:{}};(function(){for(var e in qt)if(qt.hasOwnProperty(e))Zt[e]=Jt[e]=qt[e]})();var ea={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var ra=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ta(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var aa=ta([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,1677721
var a=e._R(2);var n=e._R(1);var i=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}var Vn=Hn;function Gn(e,r){e.l+=4;var t=e._R(2);var a=e._R(2);var n=e._R(2);e.l+=12;return[a,t,n]}function Xn(e,r){var t={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;return t}function zn(e,r){var t={};e.l+=4;e.cf=e._R(2);return t}function jn(e,r){e.l+=2;e.l+=e._R(2)}var Kn={0:jn,4:jn,5:jn,6:jn,7:zn,8:jn,9:jn,10:jn,11:jn,12:jn,13:Xn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Gn};function Yn(e,r,t){var a=e.l+r;var n=[];while(e.l<a){var i=e._R(2);e.l-=2;try{n.push(Kn[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function $n(e,r){var t={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function Qn(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;default:throw new Error("unsupported BIFF version");}var i=Rr(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function Zn(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function Jn(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=Bn(e,0,t);e._R(r+a-e.l);return n}function qn(e,r){var t=!r||r.biff==8;var a=Rr(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);return a}function ei(e,r,t){var a=e._R(4);var n=e._R(1)&3;var i=e._R(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break;}var s=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}function ri(e,r){var t=!r||r.biff>=8?2:1;var a=Rr(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");return a.slice(0,a.l)}function ti(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;return i}function ai(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function ni(e,r){var t={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;var a=e._R(2);e.l+=4;var n=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;return t}function ii(e,r){var t=yn(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var a=e._R(4);return a!==0}function si(e,r){e._R(2);return e._R(4)}function li(e,r,t){var a=0;if(!(t&&t.biff==2)){a=e._R(2)}var n=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function fi(e,r){var t=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);var s=e._R(2),l=e._R(2),f=e._R(2);var c=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:f,Selected:c,TabRatio:o}}function ci(e){var r=Rr(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);return r}function oi(e,r,t){var a={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case 2:break;case 3:;case 4:e.l+=2;break;default:e.l+=10;break;}a.name=En(e,0,t);return a}function ui(e,r){var t=_n(e);t.isst=e._R(4);return t}function hi(e,r,t){var a=e.l+r;var n=_n(e,6);if(t.biff==2)e.l++;var i=Bn(e,a-e.l,t);n.val=i;return n}function di(e,r,t,a){var n=!a||a.biff==8;var i=Rr(6+2+ +n+(1+n)*t.length);Pn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");return i}function vi(e,r,t){var a=e._R(2);var n=wn(e,0,t);return[a,n]}var bi=wn;function pi(e,r,t){var a=e.l+r;var n=t.biff==8||!t.biff?4:2;var i=e._R(n),s=e._R(n);var l=e._R(2),f=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:f}}}function mi(e,r){var t=r.biff==8||!r.biff?4:2;var a=Rr(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);return a}function gi(e,r){var t=e._R(2),a=e._R(2);var n=Ln(e);return{r:t,c:a,ixfe:n[0],rknum:n[1]}}function Ei(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);v
3:{n:"??",f:Ir},4:{n:"??",f:Ir},5:{n:"??",f:Ir},6:{n:"??",f:Ir},7:{n:"??",f:Ir},9:{n:"??",f:Ir},10:{n:"??",f:Ir},11:{n:"??",f:Ir},12:{n:"??",f:Ir},14:{n:"??",f:Ir},15:{n:"??",f:Ir},16:{n:"??",f:Ir},17:{n:"??",f:Ir},18:{n:"??",f:Ir},19:{n:"??",f:Ir},21:{n:"??",f:Ir},22:{n:"LABEL16",f:u},23:{n:"NUMBER17",f:v},24:{n:"NUMBER18",f:d},25:{n:"FORMULA19",f:p},26:{n:"??",f:Ir},27:{n:"??",f:Ir},28:{n:"??",f:Ir},29:{n:"??",f:Ir},30:{n:"??",f:Ir},31:{n:"??",f:Ir},33:{n:"??",f:Ir},37:{n:"NUMBER25",f:m},39:{n:"NUMBER27",f:g},40:{n:"FORMULA28",f:S},255:{n:"",f:Ir}};return{to_workbook:r}}();var Ts={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var Is=function gp(){var e=De("t"),r=De("rPr"),t=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/,n=/\r\n/g;var i=function l(e,r,t){var a={},n=65001,i="";var s=e.match(fe),l=0;if(s)for(;l!=s.length;++l){var f=ue(s[l]);switch(f[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!f.val)break;case"<shadow>":;case"<shadow/>":a.shadow=1;break;case"</shadow>":break;case"<charset":if(f.val=="1")break;n=Ts[parseInt(f.val,10)];break;case"<outline":if(!f.val)break;case"<outline>":;case"<outline/>":a.outline=1;break;case"</outline>":break;case"<rFont":a.name=f.val;break;case"<sz":a.sz=f.val;break;case"<strike":if(!f.val)break;case"<strike>":;case"<strike/>":a.strike=1;break;case"</strike>":break;case"<u":if(!f.val)break;switch(f.val){case"double":a.uval="double";break;case"singleAccounting":a.uval="single-accounting";break;case"doubleAccounting":a.uval="double-accounting";break;};case"<u>":;case"<u/>":a.u=1;break;case"</u>":break;case"<b":if(f.val=="0")break;case"<b>":;case"<b/>":a.b=1;break;case"</b>":break;case"<i":if(f.val=="0")break;case"<i>":;case"<i/>":a.i=1;break;case"</i>":break;case"<color":if(f.rgb)a.color=f.rgb.substr(2,6);break;case"<family":a.family=f.val;break;case"<vertAlign":i=f.val;break;case"<scheme":break;default:if(f[0].charCodeAt(1)!==47)throw"Unrecognized rich format "+f[0];}}var c=[];if(a.u)c.push("text-decoration: underline;");if(a.uval)c.push("text-underline-style:"+a.uval+";");if(a.sz)c.push("font-size:"+a.sz+";");if(a.outline)c.push("text-effect: outline;");if(a.shadow)c.push("text-shadow: auto;");r.push('<span style="'+c.join("")+'">');if(a.b){r.push("<b>");t.push("</b>")}if(a.i){r.push("<i>");t.push("</i>")}if(a.strike){r.push("<s>");t.push("</s>")}if(i=="superscript")i="sup";else if(i=="subscript")i="sub";if(i!=""){r.push("<"+i+">");t.push("</"+i+">")}t.push("</span>");return n};function s(t){var a=[[],"",[]];var s=t.match(e),l=65001;if(!x(s))return"";a[1]=s[1];var f=t.match(r);if(x(f))l=i(f[1],a[0],a[2]);return a[0].join("")+a[1].replace(n,"<br/>")+a[2].join("")}return function f(e){return e.replace(t,"").split(a).map(s).join("")}}();var xs=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,As=/<(?:\w+:)?r>/;var Rs=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ds(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return null;var n;if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=be(Te(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=Te(e);if(t)a.h=ke(a.t)}else if(n=e.match(As)){a.r=Te(e);a.t=be(Te((e.replace(Rs,"").match(xs)||[]).join("").replace(fe,"")));if(t)a.h=Is(a.r)}return a}var Fs=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var Os=/<(?:\w+:)?(?:si|sstItem)>/g;var _s=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ps(e,r){var t=[],a="";if(!e)return t;var n=e.match(Fs);if(x(n)){a=n[2].replace(Os,"").split(_s);for(var i=0;i!=a.length;++i){var s=Ds(a[i].trim(),r);if(s!=null)t[t.length]=s}n=ue(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}ha.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var ys=/^\s|\s$|[\t\n\r]/;function Ns(e,r){if(!r.bookSST)return"";var t=[se];t[t.length]=Ue("sst",null,{xmlns:Ve.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="<si>";if(n.r)i+=n.r;else{i+="<t";if(!n.t)n.t="";if(n.t.match(ys))i+=' xml:space="p
t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>';t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>';t[t.length]='<a:font script="Viet" typeface="Arial"/>';t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>';t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>';t[t.length]="</a:minorFont>";t[t.length]="</a:fontScheme>";t[t.length]='<a:fmtScheme name="Office">';t[t.length]="<a:fillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:lin ang="16200000" scaled="1"/>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:lin ang="16200000" scaled="0"/>';t[t.length]="</a:gradFill>";t[t.length]="</a:fillStyleLst>";t[t.length]="<a:lnStyleLst>";t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]="</a:lnStyleLst>";t[t.length]="<a:effectStyleLst>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]='<a:scene3d><a:camera prs
62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"
}function ph(e,r,t){if(t==null)t=Rr(9);bt(r,t);t._W(1,e.v?1:0);return t}function mh(e,r){var t=vt(e);var a=e._R(1);return[t,a,"e"]}function gh(e,r){var t=vt(e);var a=e._R(4);return[t,a,"s"]}function Eh(e,r,t){if(t==null)t=Rr(12);bt(r,t);t._W(4,r.v);return t}function Sh(e,r){var t=vt(e);var a=Dt(e);return[t,a,"n"]}function kh(e,r,t){if(t==null)t=Rr(16);bt(r,t);Ft(e.v,t);return t}function Bh(e,r){var t=vt(e);var a=Ct(e);return[t,a,"n"]}function wh(e,r,t){if(t==null)t=Rr(12);bt(r,t);Tt(e.v,t);return t}function Ch(e,r){var t=vt(e);var a=st(e);return[t,a,"str"]}function Th(e,r,t){if(t==null)t=Rr(12+4*e.v.length);bt(r,t);lt(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function Ih(e,r,t){var a=e.l+r;var n=vt(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var l=mu(e,a-e.l,t);s[3]=fu(l,null,n,t.supbooks,t)}else e.l=a;return s}function xh(e,r,t){var a=e.l+r;var n=vt(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var l=mu(e,a-e.l,t);s[3]=fu(l,null,n,t.supbooks,t)}else e.l=a;return s}function Ah(e,r,t){var a=e.l+r;var n=vt(e);n.r=t["!row"];var i=Dt(e);var s=[n,i,"n"];if(t.cellFormula){e.l+=2;var l=mu(e,a-e.l,t);s[3]=fu(l,null,n,t.supbooks,t)}else e.l=a;return s}function Rh(e,r,t){var a=e.l+r;var n=vt(e);n.r=t["!row"];var i=st(e);var s=[n,i,"str"];if(t.cellFormula){e.l+=2;var l=mu(e,a-e.l,t);s[3]=fu(l,null,n,t.supbooks,t)}else e.l=a;return s}var Dh=At;var Fh=Rt;function Oh(e,r){if(r==null)r=Rr(4);r._W(4,e);return r}function _h(e,r,t){var a=e.l+r;var n=At(e,16);var i=gt(e);var s=st(e);var l=st(e);var f=st(e);e.l=a;var c={rfx:n,relId:i,loc:s,display:f};if(l)c.Tooltip=l;return c}function Ph(e,r,t){if(t==null)t=Rr(50+4*e[1].Target.length);Rt({s:Yr(e[0]),e:Yr(e[0])},t);wt("rId"+r,t);var a=e[1].Target.indexOf("#");var n=a==-1?"":e[1].Target.substr(a+1);lt(n||"",t);lt(e[1].Tooltip||"",t);lt("",t);return t.slice(0,t.l)}function yh(e,r,t){var a=e.l+r;var n=It(e,16);var i=e._R(1);var s=[n];s[2]=i;if(t.cellFormula){var l=pu(e,a-e.l,t);s[1]=l}else e.l=a;return s}function Nh(e,r,t){var a=e.l+r;var n=At(e,16);var i=[n];if(t.cellFormula){var s=Eu(e,a-e.l,t);i[1]=s;e.l=a}else e.l=a;return i}function Mh(e,r,t){if(t==null)t=Rr(18);var a=Fu(e,r);t._W(-4,e);t._W(-4,e);t._W(4,(a.width||10)*256);t._W(4,0);var n=0;if(r.hidden)n|=1;if(typeof a.width=="number")n|=2;t._W(1,n);t._W(1,0);return t}var Lh=["left","right","top","bottom","header","footer"];function Uh(e,r,t){var a={};Lh.forEach(function(r){a[r]=Dt(e,8)});return a}function Wh(e,r){if(r==null)r=Rr(6*8);Ou(e);Lh.forEach(function(t){Ft(e[t],r)});return r}function Hh(e,r){if(r==null)r=Rr(30);r._W(2,924);r._W(4,0);r._W(4,0);r._W(4,0);r._W(1,0);r._W(1,0);r._W(2,0);r._W(2,100);r._W(2,0);r._W(2,0);r._W(2,0);r._W(4,0);return r}function Vh(e,r){if(r==null)r=Rr(16*4+2);r._W(2,e.password?nl(e.password):0);r._W(4,1);[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);else r._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});return r}function Gh(e,r,t,a,n,i){if(!e)return e;var s=r||{};if(!t)t={"!id":{}};if(o!=null&&s.dense==null)s.dense=o;var l=s.dense?[]:{};var f;var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};var u=false,h=false;var d,v,b,p,m,g,S,k,B;var w=[];s.biff=12;s["!row"]=0;var C=0,T=false;var I=[];var x={};var A=[[]];A.sharedf=x;A.arrayf=I;A.SheetNames=a.SheetNames||a.Sheets.map(function(e){return e.name});s.supbooks=A;for(var R=0;R<a.Names.length;++R)A[0][R+1]=a.Names[R];var D=[],F=[];var O=0,_=0;var P=false;Dr(e,function N(e,r,a){if(h)return;switch(a){case 148:f=e;break;case 0:d=e;if(s.sheetRows&&s.sheetRows<=d.r)h=true;k=Wr(p=d.r);s["!row"]=d.r;if(e.hidden||e.hpt||e.level!=null){if(e.hpt)e.hpx=_l(e.hpt);F[e.r]=e}break;case 2:;case 3:;case 4:;case 5:;case 6:;case 7:;case 8:;case 9:;case 10:;case 11:v={t:e[2]};switch(e[2]){case"n":v.v=e[1];break;
ref:hc(te.Range).replace(/\$/g,"")};c.push([l[3],true])}break;case"Name":break;case"ComponentOptions":;case"DocumentProperties":;case"CustomDocumentProperties":;case"OfficeDocumentSettings":;case"PivotTable":;case"PivotCache":;case"Names":;case"MapInfo":;case"PageBreaks":;case"QueryTable":;case"DataValidation":;case"Sorting":;case"Schema":;case"data":;case"ConditionalFormatting":;case"SmartTagType":;case"SmartTags":;case"ExcelWorkbook":;case"WorkbookOptions":;case"WorksheetOptions":if(l[1]==="/"){if((u=c.pop())[0]!==l[3])throw new Error("Bad state: "+u.join("|"))}else if(l[0].charAt(l[0].length-2)!=="/")c.push([l[3],true]);break;default:if(c.length==0&&l[3]=="document")return ab(a,t);if(c.length==0&&l[3]=="UOF")return ab(a,t);var ae=true;switch(c[c.length-1][0]){case"OfficeDocumentSettings":switch(l[3]){case"AllowPNG":break;case"RemovePersonalInformation":break;case"DownloadComponents":break;case"LocationOfComponents":break;case"Colors":break;case"Color":break;case"Index":break;case"RGB":break;case"PixelsPerInch":break;case"TargetScreenSize":break;case"ReadOnlyRecommended":break;default:ae=false;}break;case"ComponentOptions":switch(l[3]){case"Toolbar":break;case"HideOfficeLogo":break;case"SpreadsheetAutoFit":break;case"Label":break;case"Caption":break;case"MaxHeight":break;case"MaxWidth":break;case"NextSheetNumber":break;default:ae=false;}break;case"ExcelWorkbook":switch(l[3]){case"Date1904":K.WBProps.date1904=true;break;case"WindowHeight":break;case"WindowWidth":break;case"WindowTopX":break;case"WindowTopY":break;case"TabRatio":break;case"ProtectStructure":break;case"ProtectWindows":break;case"ActiveSheet":break;case"DisplayInkNotes":break;case"FirstVisibleSheet":break;case"SupBook":break;case"SheetName":break;case"SheetIndex":break;case"SheetIndexFirst":break;case"SheetIndexLast":break;case"Dll":break;case"AcceptLabelsInFormulas":break;case"DoNotSaveLinkValues":break;case"Iteration":break;case"MaxIterations":break;case"MaxChange":break;case"Path":break;case"Xct":break;case"Count":break;case"SelectedSheets":break;case"Calculation":break;case"Uncalced":break;case"StartupPrompt":break;case"Crn":break;case"ExternName":break;case"Formula":break;case"ColFirst":break;case"ColLast":break;case"WantAdvise":break;case"Boolean":break;case"Error":break;case"Text":break;case"OLE":break;case"NoAutoRecover":break;case"PublishObjects":break;case"DoNotCalculateBeforeSave":break;case"Number":break;case"RefModeR1C1":break;case"EmbedSaveSmartTags":break;default:ae=false;}break;case"WorkbookOptions":switch(l[3]){case"OWCVersion":break;case"Height":break;case"Width":break;default:ae=false;}break;case"WorksheetOptions":switch(l[3]){case"Visible":if(l[0].slice(-2)==="/>"){}else if(l[1]==="/")switch(a.slice(P,l.index)){case"SheetHidden":Y.Hidden=1;break;case"SheetVeryHidden":Y.Hidden=2;break;}else P=l.index+l[0].length;break;case"Header":if(!v["!margins"])Ou(v["!margins"]={},"xlml");v["!margins"].header=ue(l[0]).Margin;break;case"Footer":if(!v["!margins"])Ou(v["!margins"]={},"xlml");v["!margins"].footer=ue(l[0]).Margin;break;case"PageMargins":var ne=ue(l[0]);if(!v["!margins"])Ou(v["!margins"]={},"xlml");if(ne.Top)v["!margins"].top=ne.Top;if(ne.Left)v["!margins"].left=ne.Left;if(ne.Right)v["!margins"].right=ne.Right;if(ne.Bottom)v["!margins"].bottom=ne.Bottom;break;case"Unsynced":break;case"Print":break;case"Panes":break;case"Scale":break;case"Pane":break;case"Number":break;case"Layout":break;case"PageSetup":break;case"Selected":break;case"ProtectObjects":break;case"EnableSelection":break;case"ProtectScenarios":break;case"ValidPrinterInfo":break;case"HorizontalResolution":break;case"VerticalResolution":break;case"NumberofCopies":break;case"ActiveRow":break;case"ActiveCol":break;case"ActivePane":break;case"TopRowVisible":break;case"TopRowBottomPane":break;case"LeftColumnVisible":break;case"LeftColumnRightPane":break;case"FitToPage":break;case"RangeSelection":break;case"PaperSizeIndex":break;case"PageLayoutZoom":break;case"PageBreakZoom":break;case"FilterOn":break;case"DoNotDisplayGridlines":break;case"SplitHorizontal":break;case"SplitVertical":b
},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Dd},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:$l},44:{n:"BrtFmt",f:Kl},45:{n:"BrtFill",f:ql},46:{n:"BrtBorder",f:nf},47:{n:"BrtXF",f:rf},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:ts},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:Hf},64:{n:"BrtDVal"},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Ir,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView"},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:uh},148:{n:"BrtWsDim",f:fh,p:16},151:{n:"BrtPane"},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:xd},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Td},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:Ms},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:At},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:Dh},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},2
var n=t.SheetNames[e],i=t.Sheets[n]||{};var s=Array.isArray(i);var l,f="",c=[];var o=et(i["!ref"]||"A1");Wv(a,2057,Qn(t,16,r));Wv(a,"CalcMode",bn(1));Wv(a,"CalcCount",bn(100));Wv(a,"CalcRefMode",dn(true));Wv(a,"CalcIter",dn(false));Wv(a,"CalcDelta",Ft(.001));Wv(a,"CalcSaveRecalc",dn(true));Wv(a,"PrintRowCol",dn(false));Wv(a,"PrintGrid",dn(false));Wv(a,"GridSet",bn(1));Wv(a,"Guts",Ii([0,0]));Wv(a,"HCenter",dn(false));Wv(a,"VCenter",dn(false));Wv(a,"Dimensions",mi(o,r));for(var u=o.s.r;u<=o.e.r;++u){f=Wr(u);for(var h=o.s.c;h<=o.e.c;++h){if(u===o.s.r)c[h]=Xr(h);l=c[h]+f;var d=s?(i[u]||[])[h]:i[l];if(!d)continue;Kv(a,d,u,h,r)}}var v=((((t||{}).Workbook||{}).Sheets||[])[e]||{}).name||n;Wv(a,"CodeName",Cn(v,r));Wv(a,"EOF");return a.end()}function $v(e,r,t){var a=Fr();var n=t.biff==8,i=t.biff==5;Wv(a,2057,Qn(e,5,t));Wv(a,"InterfaceHdr",n?bn(1200):null);Wv(a,"Mms",on(2));if(i)Wv(a,"ToolbarHdr");if(i)Wv(a,"ToolbarEnd");Wv(a,"InterfaceEnd");Wv(a,"WriteAccess",qn("SheetJS",t));Wv(a,"CodePage",bn(n?1200:1252));if(n)Wv(a,"DSF",bn(0));Wv(a,"RRTabId",is(e.SheetNames.length));if(n&&e.vbaraw){Wv(a,"ObProj");var s=((e.Workbook||{}).WBProps||{}).codeName||"ThisWorkbook";Wv(a,"CodeName",Cn(s,t))}Wv(a,"BuiltInFnGroupCount",bn(17));Wv(a,"WinProtect",dn(false));Wv(a,"Protect",dn(false));Wv(a,"Password",bn(0));if(n)Wv(a,"Prot4Rev",dn(false));if(n)Wv(a,"Prot4RevPass",bn(0));Wv(a,"Window1",ci(t));Wv(a,"Backup",dn(false));Wv(a,"HideObj",bn(0));Wv(a,"Date1904",dn(pd(e)=="true"));Wv(a,"CalcPrecision",dn(true));if(n)Wv(a,"RefreshAll",dn(false));Wv(a,"BookBool",bn(0));if(n)Wv(a,"UsesELFs",dn(false));var l=a.end();var f=Fr();if(n)Wv(f,"Country",Ji());Wv(f,"EOF");var c=f.end();var o=Fr();var u=0,h=0;for(h=0;h<e.SheetNames.length;++h)u+=(n?12:11)+(n?2:1)*e.SheetNames[h].length;var d=l.length+u+c.length;for(h=0;h<e.SheetNames.length;++h){Wv(o,"BoundSheet8",ri({pos:d,hs:0,dt:0,name:e.SheetNames[h]},t));d+=r[h].length}var v=o.end();if(u!=v.length)throw new Error("BS8 "+u+" != "+v.length);var b=[];if(l.length)b.push(l);if(v.length)b.push(v);if(c.length)b.push(c);return je([b])}function Qv(e,r){var t=r||{};var a=[];for(var n=0;n<e.SheetNames.length;++n)a[a.length]=Yv(n,t,e);a.unshift($v(e,a,t));return je([a])}function Zv(e,r){var t=r||{};switch(t.biff||2){case 8:;case 5:return Qv(e,r);case 4:;case 3:;case 2:return jv(e,r);}throw new Error("invalid type "+t.bookType+" for BIFF")}var Jv=function(){function e(e,r){var t=r||{};if(o!=null&&t.dense==null)t.dense=o;var a=t.dense?[]:{};var n=e.match(/<table/i);if(!n)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i);var s=n.index,l=i&&i.index||e.length;var f=Y(e.slice(s,l),/(:?<tr[^>]*>)/i,"<tr>");var c=-1,u=0,h=0,d=0;var v={s:{r:1e7,c:1e7},e:{r:0,c:0}};var b=[],p=0;for(s=0;s<f.length;++s){var m=f[s].trim();var g=m.substr(0,3).toLowerCase();if(g=="<tr"){++c;u=0;continue}if(g!="<td")continue;var E=m.split(/<\/td>/i);for(l=0;l<E.length;++l){var S=E[l].trim();if(S.substr(0,3).toLowerCase()!="<td")continue;var k=S,B=0;while(k.charAt(0)=="<"&&(B=k.indexOf(">"))>-1)k=k.slice(B+1);while(k.indexOf(">")>-1)k=k.slice(0,k.lastIndexOf("<"));var w=ue(S.slice(0,S.indexOf(">")));d=w.colspan?+w.colspan:1;if((h=+w.rowspan)>0||d>1)b.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});if(!k.length){u+=d;continue}k=Fe(be(k));if(v.s.r>c)v.s.r=c;if(v.e.r<c)v.e.r=c;if(v.s.c>u)v.s.c=u;if(v.e.c<u)v.e.c=u;if(t.dense){if(!a[c])a[c]=[];if(!k.length){}else if(t.raw||!k.trim().length)a[c][u]={t:"s",v:k};else if(k==="TRUE")a[c][u]={t:"b",v:true};else if(k==="FALSE")a[c][u]={t:"b",v:false};else if(!isNaN(z(k)))a[c][u]={t:"n",v:z(k)};else a[c][u]={t:"s",v:k}}else{var C=$r({r:c,c:u});if(!k.length){}else if(t.raw)a[C]={t:"s",v:k};else if(t.raw||!k.trim().length)a[C]={t:"s",v:k};else if(k==="TRUE")a[C]={t:"b",v:true};else if(k==="FALSE")a[C]={t:"b",v:false};else if(!isNaN(z(k)))a[C]={t:"n",v:z(k)};else a[C]={t:"s",v:k}}u+=d}}a["!ref"]=qr(v);return a}function r(r,t){return at(e(r,t),t)}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];var s="<td"+(a.editable?' contenteditable="true"':"")+"></td>";for(var l=r.s.c;l<=r.e.c;++l)
}function Pb(e){return!e.match(/[^\x00-\x7F]/)?e:Ie(e)}function yb(e,r,t,a){if(a){t.type="string";return Bs.to_workbook(e,t)}return Bs.to_workbook(r,t)}function Nb(e,r){var t,a=e,n=[0,0,0,0],i=false;var s=r||{};Ru={};if(s.dateNF)Ru.dateNF=s.dateNF;if(!s.type)s.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(s.type=="file"){s.type="buffer";a=te.readFileSync(e)}if(s.type=="string"){i=true;s.type="binary";a=Pb(e)}switch((n=Ab(a,s))[0]){case 208:return Rb(I.read(a,s),s);case 9:return Pv(a,s);case 60:return mv(a,s);case 73:if(n[1]===68)return ws(a,s);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return ks.to_workbook(a,s);break;case 80:if(n[1]===75&&n[2]<32&&n[3]<32)return Db(a,s);break;case 239:return n[3]===60?mv(a,s):yb(e,a,s,i);case 255:if(n[1]===254){return _b(a,s)}break;case 0:if(n[1]===0&&n[2]>=2&&n[3]===0)return Cs.to_workbook(a,s);break;case 3:;case 131:;case 139:;case 140:return Es.to_workbook(a,s);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return ul.to_workbook(a,s);break;case 10:;case 13:;case 32:return Ob(a,s);}if(n[2]<=12&&n[3]<=31)return Es.to_workbook(a,s);if(32>n[0]||n[0]>127)throw new Error("Unsupported file "+n.join("|"));return yb(e,a,s,i)}function Mb(e,r){var t=r||{};t.type="file";return Nb(e,t)}function Lb(e,r){var t=r||{};var a=xb(e,t);var n={};if(t.compression)n.compression="DEFLATE";switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+" files");case"buffer":;case"file":n.type="nodebuffer";break;default:throw new Error("Unrecognized type "+t.type);}if(t.type==="file")return te.writeFileSync(t.file,a.generate(n));var i=a.generate(n);return t.type=="string"?Te(i):i}function Ub(e,r){var t=r||{};var a=yv(e,t);switch(t.type){case"base64":;case"binary":break;case"buffer":;case"array":t.type="";break;case"file":return te.writeFileSync(t.file,I.write(a,{type:"buffer"}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+" files");default:throw new Error("Unrecognized type "+t.type);}return I.write(a,t)}function Wb(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return h.encode(Ie(a));case"binary":return Ie(a);case"string":return e;case"file":return te.writeFileSync(r.file,a,"utf8");case"buffer":{if(d)return new Buffer(a,"utf8");else return Wb(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Hb(e,r){switch(r.type){case"base64":return h.encode(e);case"binary":return e;case"string":return e;case"file":return te.writeFileSync(r.file,e,"binary");case"buffer":{if(d)return new Buffer(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Vb(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a<e.length;++a)t+=String.fromCharCode(e[a]);return r.type=="base64"?h.encode(t):r.type=="string"?Te(t):t;case"file":return te.writeFileSync(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type);}}function Gb(e,r){Sd(e);var t=r||{};switch(t.bookType||"xlsb"){case"xml":;case"xlml":return Wb(xv(e,t),t);case"slk":;case"sylk":return Wb(ub(e,t),t);case"html":return Wb(cb(e,t),t);case"txt":return Hb(bb(e,t),t);case"csv":return Wb(ob(e,t),t,"\ufeff");case"dif":return Wb(hb(e,t),t);case"dbf":return Vb(pb(e,t),t);case"prn":return Wb(db(e,t),t);case"rtf":return Wb(vb(e,t),t);case"fods":return Wb(sb(e,t),t);case"biff2":if(!t.biff)t.biff=2;case"biff3":if(!t.biff)t.biff=3;case"biff4":if(!t.biff)t.biff=4;return Vb(Zv(e,t),t);case"biff5":if(!t.biff)t.biff=5;case"biff8":;case"xls":if(!t.biff)t.biff=8;return Ub(e,t);case"xlsx":;case"xlsm":;case"xlsb":;case"ods":return Lb(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|");}}function Xb(e){if(e.bookType)return;var r={xls:"biff8",htm:"html",slk:"sylk",Sh33tJS:"WTF"};var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();if(t.match(/^\.[a-z]+$/))e.bookType=t.slice(1);e.bookType=r[e.bookType]||e.bookType}function zb(e,r,