sheetjs/dist/xlsx.min.js

14 lines
355 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.13";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 c=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 f=function lp(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};c=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,i(e.substr(2)))}return e};f=function cp(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 fp(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,c=0,f=0;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;c=(n&15)<<2|i>>6;f=i&63;if(isNaN(n)){c=f=64}else if(isNaN(i)){f=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(c)+e.charAt(f)}return t},decode:function r(t){var a="";var n=0,i=0,s=0;var l=0,c=0,f=0,o=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|c>>4;i=(c&15)<<4|f>>2;s=(f&3)<<6|o;a+=String.fromCharCode(n);if(f!==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]/g;var E={};var S=function op(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 c=Math.pow(2,32);function f(e,r){if(e>c||e<-c)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
}function C(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");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;T(e)}function T(e){var r="Sh33tJ5";if(I.find(e,"/"+r))return;var t=Ar(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);x(e)}function x(e,n){C(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var c=e.FileIndex[l];switch(c.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(c.R*c.L*c.C))i=true;if(c.R>-1&&c.L>-1&&c.R==c.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var f=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:P,ct:f,mt:f,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||P;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 R(e,r){x(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 c=r+127>>7;var f=l+t+s+c;var o=f+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(f+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,c,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=Ar(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:F);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:F);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?F:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,F)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,y.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,y.FATSECT);s(t[3]);s(t[4]);var l=0,c=0;var f=e.FileIndex[0];for(;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(c<4096)continue;f.start=i;s(c+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,y.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(!c||c>=4096)continue;f.start=i;s(c+63>>6)}while(a.l&511)a._W(-4,y.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}f=e.FileIndex[n];if(n===0)f.start=f.size?f.start-1:F;c=2*(f.name.length+1);a._W(64,f.name,"utf16le");a._W(2,c);a._W(1,f.type);a._W(1,f.color);a._W(-4,f.L);a._W(-4,f.R);a._W(-4,f.C);if(!f.clsid)for(l=0;l<4;++l)a._W(4,0);else a._W(16,f.clsid,"hex");a._W(4,f.state||0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,f.start);a._W(4,f.size);a._W(4,0)}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>=4096){a.l=f.start+1<<9;for(l=0;l<f.size;++l)a._W(1,f.content[l]);for(;l&511;++l)a._W(1,0)}}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>0&&f.size<409
if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var St=st;var kt=lt;var Bt=gt;var wt=Et;function Ct(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;r[0]&=252;var n=a===0?cr([0,0,0,0,r[0],r[1],r[2],r[3]],0):br(r,0)>>2;return t?n/100:n}function Tt(e,r){if(r==null)r=Ar(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function It(e){var r={s:{},e:{}};r.s.r=e._R(4);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=Ar(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 Rt=It;var At=xt;function Dt(e,r){return e._R(8,"f")}function Ft(e,r){return(r||Ar(8))._W(8,e,"f")}var _t={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Ot=F(_t);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 c=e._R(1);var f=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=bl(h);break;case 2:t.rgb=bl([c,f,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=Ar(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=Ar(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 Xt=21;var Gt=30;var zt=64;var jt=71;var Kt=4096;var Yt=80;var $t=81;var Qt=[Yt,$t];var Jt={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|Gt},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 Zt={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:Gt},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))Jt[e]=Zt[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
flags:t}}function Nn(e,r,t){return r===0?"":wn(e,r,t)}function Mn(e,r,t){var a=t.biff>8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function Ln(e,r){var t=e._R(2);var a=Ct(e);return[t,a]}function Un(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=En(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function Wn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);var i=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}function Hn(e,r){var t=e._R(2);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 Xn(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 Gn(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:Gn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Xn};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=Ar(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 Jn(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function Zn(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=Ar(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=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16}}function ri(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 ti(e,r){var t=!r||r.biff>=8?2:1;var a=Ar(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 ai(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 ni(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function ii(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 si(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 li(e,r){e._R(2);return e._R(4)}function ci(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),c=e._R(2);var f=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:c,Selected:f,TabRatio:o}}function oi(e){var r=Ar(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 ui(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 hi(e,r){var t=On(e);t.isst=e._R(4);return t}function di(e,r,t){var a=e.l+r;var n=On(e,6);if(t.biff==2)e.l++;var i=Bn(e,a-e.l,t);n.val=i;return n}function vi(e,r,t,a){var n=!a||a.biff==8;var i=Ar(6+2+ +n+(1+n)*t.length);Pn(e,r,0,i
return t}function n(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e._R(1);e.l++;a[0].r=e._R(2);e.l+=2}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(2)}return a}function i(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].t="s";if(t.vers==20768){e.l++;var s=e._R(1);i[1].v=e._R(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e._R(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e._R(2,"i");return a}function l(e,r,t){var a=n(e,r,t);a[1].v=e._R(8,"f");return a}function c(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e._R(8,"f");if(t.qpro)e.l=a;else{var s=e._R(2);e.l+=s}return i}function f(e,r){var t=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e._R(2);t[3]=e[e.l++];t[0].c=e[e.l++];return t}function u(e,r){var t=f(e,r);t[1].t="s";t[1].v=e._R(r-4,"cstr");return t}function d(e,r){var t=f(e,r);t[1].v=e._R(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 4:a=(a>>3)/2e3;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;return t}function v(e,r){var t=f(e,r);var a=e._R(4);var n=e._R(4);var i=e._R(2);if(i==65535){t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));return t}function p(e,r){var t=v(e,14);e.l+=r-14;return t}function m(e,r){var t=f(e,r);var a=e._R(4);t[1].v=a>>6;return t}function g(e,r){var t=f(e,r);var a=e._R(8,"f");t[1].v=a;return t}function S(e,r){var t=g(e,14);e.l+=r-10;return t}var k={0:{n:"BOF",f:vn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:a},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:s},14:{n:"NUMBER",f:l},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:c},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:i},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},255:{n:"",f:Ir}};var B={0:{n:"BOF"},1:{n:"EOF"},3:{n:"??"},4:{n:"??"},5:{n:"??"},6:{n:"??"},7:{n:"??"},9:{n:"??"},10:{n:"??"},11:{n:"??"},12:{n:"??"},14:{n:"??"},15:{n:"??"},16:{n:"??"},17:{n:"??"},18:{n:"??"},19:{n:"??"},21:{n:"??"},22:{n:"LABEL16",f:u},23:{n:"NUMBER17",f:v},24:{n:"NUMBER18",f:d},25:{n:"FORMULA19",f:p},26:{n:"??"},27:{n:"??"},28:{n:"??"},29:{n:"??"},30:{n:"??"},31:{n:"??"},33:{n:"??"},37:{n:"NUMBER25",f:m},39:{n:"NUMBER27",f:g},40:{n:"FORMULA28",f:S},255:{n:"",f:Ir}};return{to_workbook:r}}();var xs={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 Rs=function Cp(){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(ce),l=0;if(s)for(;l!=s.length;++l){var c=ue(s[l]);switch(c[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!c.val)break;case"<shadow>":;case"<shadow/>":a.shadow=1;break;case"</shadow>":break;case"<charset":if(c.val=="1")break;n=xs[parseInt(c.val,10)];break;case"<outline":if(!c.val)break;case"<outline>":;case"<outline/>":a.outline=1;break;case"</outline>":break;case"<rFont":a.name=c.val;break;case"<sz":a.sz=c.val;break;case"<strike":if(!c.val)break;case"<strike>":;case"<strike/>":a.strike=1;break;case"</strike>":break;case"<u":if(!c.val)break;switch(c.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(c.val=="0")bre
t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';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="MoolBoran"/>';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="Times New Roman"/>';t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>';t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>';t[t.length]="</a:majorFont>";t[t.length]="<a:minorFont>";t[t.length]='<a:latin typeface="Calibri"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Arial"/>';t[t.length]='<a:font script="Hebr" typeface="Arial"/>';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
if(b>=0){p="";switch(e[0][b][1][0]){case 2:A=G(" ",e[0][b][1][1])+A;break;case 3:A=G("\r",e[0][b][1][1])+A;break;case 4:D=G(" ",e[0][b][1][1])+D;break;case 5:D=G("\r",e[0][b][1][1])+D;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}b=-1}s.push(A+s.pop()+D);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":o={c:E[1][1],r:E[1][0]};var F={c:t.c,r:t.r};if(a.sharedf[$r(o)]){var _=a.sharedf[$r(o)];s.push(ou(_,i,F,a,n))}else{var O=false;for(l=0;l!=a.arrayf.length;++l){c=a.arrayf[l];if(o.c<c[0].s.c||o.c>c[0].e.c)continue;if(o.r<c[0].s.r||o.r>c[0].e.r)continue;s.push(ou(c[1],i,F,a,n));O=true;break}if(!O)s.push(E[1])}break;case"PtgArray":s.push("{"+iu(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":b=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgMemFunc":break;case"PtgMemNoMem":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgAttrBaxcel":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgList":throw new Error("Unrecognized Formula Token: "+String(E));default:throw new Error("Unrecognized Formula Token: "+String(E));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(b>=0&&P.indexOf(e[0][m][0])==-1){E=e[0][b];var y=true;switch(E[1][0]){case 4:y=false;case 0:p=G(" ",E[1][1]);break;case 5:y=false;case 1:p=G("\r",E[1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+E[1][0]);}s.push((y?p:"")+s.pop()+(y?"":p));b=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function uu(e,r,t,a){var n=e.l+r,i=t.biff==2?1:2;var s,l=e._R(i);if(l==65535)return[[],Ir(e,r-2)];var c=nu(e,l,t);if(r!==l+i)s=au(e,r-l-i,c,t);return[c,s]}function hu(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Ir(e,r-2)];var l=nu(e,s,t);if(r!==s+n)i=au(e,r-s-n,l,t);return[l,i]}function du(e,r,t,a){var n=e.l+r;var i=nu(e,a,t);var s;if(n!==e.l)s=au(e,n-e.l,i,t);return[i,s]}function vu(e,r,t){var a=e.l+r;var n,i=e._R(2);var s=nu(e,i,t);if(i==65535)return[[],Ir(e,r-2)];if(r!==i+2)n=au(e,a-i-2,s,t);return[s,n]}function bu(e){var r;if(hr(e,e.l+6)!==65535)return[Dt(e),"n"];switch(e[e.l]){case 0:e.l+=8;return["String","s"];case 1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case 2:r=e[e.l+2];e.l+=8;return[r,"e"];case 3:e.l+=8;return["","s"];}return[]}function pu(e,r,t){var a=e.l+r;var n=On(e,6);if(t.biff==2)++e.l;var i=bu(e,8);var s=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){var l=e._R(4)}}var c=hu(e,a-e.l,t);return{cell:n,val:i[0],formula:c,shared:s>>3&1,tt:i[1]}}function mu(e,r,t){var a=e.l+r;var n=e._R(4);var i=nu(e,n,t);var s=e._R(4);var l=s>0?au(e,s,i,t):null;return[i,l]}var gu=mu;var Eu=mu;var Su=mu;var ku=mu;var Bu={1:"REFERENCE",2:"VALUE",3:"ARRAY"};var wu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:
if(o.cellStyles){if(_.fillId!=null)D=_.fillId}}}Nu(w,A,D,o,h,d);if(o.cellDates&&F&&w.t=="n"&&E.is_date(E._table[A])){w.t="d";w.v=N(w.v)}if(M){var K=Yr(C.r);if(!f[K.r])f[K.r]=[];f[K.r][K.c]=w}else f[C.r]=w}}if(L.length>0)f["!rows"]=L}}();function sh(e,r,t,a,n){var i=[],s=[],l=et(e["!ref"]),c,f,o="",u=[],h=0,d=0,v=e["!rows"];var b=Array.isArray(e);var p={r:o},m,g=-1;for(d=l.s.c;d<=l.e.c;++d)u[d]=Gr(d);for(h=l.s.r;h<=l.e.r;++h){s=[];o=Wr(h);for(d=l.s.c;d<=l.e.c;++d){f=u[d]+o;var E=b?(e[h]||[])[d]:e[f];if(E===undefined)continue;if((c=nh(E,f,e,r,t,a))!=null)s.push(c)}if(s.length>0||v&&v[h]){p={r:o};if(v&&v[h]){m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=Pl(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}}i[i.length]=Ue("row",s.join(""),p)}}if(v)for(;h<v.length;++h){if(v&&v[h]){p={r:h+1};m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=Pl(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}i[i.length]=Ue("row","",p)}}return i.join("")}var lh=Ue("worksheet",null,{xmlns:Ve.main[0],"xmlns:r":Ve.r});function ch(e,r,t,a){var n=[se,lh];var i=t.SheetNames[e],s=0,l="";var c=t.Sheets[i];if(c==null)c={};var f=c["!ref"];if(f==null)f="A1";if(!a)a={};c["!comments"]=[];c["!drawing"]=[];var o=t.SheetNames[e];try{if(t.Workbook)o=t.Workbook.Sheets[e].CodeName||o}catch(u){}n[n.length]=Ue("sheetPr",null,{codeName:ge(o)});n[n.length]=Ue("dimension",null,{ref:f});n[n.length]=ah(c,r,e,t);if(r.sheetFormat)n[n.length]=Ue("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(c["!cols"]!=null&&c["!cols"].length>0)n[n.length]=eh(c,c["!cols"]);n[s=n.length]="<sheetData/>";c["!links"]=[];if(c["!ref"]!=null){l=sh(c,r,e,t,a);if(l.length>0)n[n.length]=l}if(n.length>s+1){n[n.length]="</sheetData>";n[s]=n[s].replace("/>",">")}if(c["!protect"]!=null)n[n.length]=$u(c["!protect"]);if(c["!autofilter"]!=null)n[n.length]=th(c["!autofilter"]);if(c["!merges"]!=null&&c["!merges"].length>0)n[n.length]=Ku(c["!merges"]);var h=-1,d,v=-1;if(c["!links"].length>0){n[n.length]="<hyperlinks>";c["!links"].forEach(function(e){if(!e[1].Target)return;v=ma(a,-1,ge(e[1].Target).replace(/#.*$/,""),ha.HLINK);d={ref:e[0],"r:id":"rId"+v};if((h=e[1].Target.indexOf("#"))>-1)d.location=ge(e[1].Target.substr(h+1));if(e[1].Tooltip)d.tooltip=ge(e[1].Tooltip);n[n.length]=Ue("hyperlink",null,d)});n[n.length]="</hyperlinks>"}delete c["!links"];if(c["!margins"]!=null)n[n.length]=Zu(c["!margins"]);var b=n.length;n[n.length]="";if(c["!drawing"].length>0){v=ma(a,-1,"../drawings/drawing"+(e+1)+".xml",ha.DRAW);n[n.length]=Ue("drawing",null,{"r:id":"rId"+v})}else delete c["!drawing"];if(c["!comments"].length>0){v=ma(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ha.VML);n[n.length]=Ue("legacyDrawing",null,{"r:id":"rId"+v});c["!legacy"]=v}if(n.length>2){n[n.length]="</worksheet>";n[1]=n[1].replace("/>",">")}return n.join("")}function fh(e,r){var t={};var a=e.l+r;t.r=e._R(4);e.l+=4;var n=e._R(2);e.l+=1;var i=e._R(1);e.l=a;if(i&7)t.level=i&7;if(i&16)t.hidden=true;if(i&32)t.hpt=n/20;return t}function oh(e,r,t){var a=Ar(17+8*16);var n=(t["!rows"]||[])[e]||{};a._W(4,e);a._W(4,0);var i=320;if(n.hpx)i=Pl(n.hpx)*20;else if(n.hpt)i=n.hpt*20;a._W(2,i);a._W(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a._W(1,s);a._W(1,0);var l=0,c=a.l;a.l+=4;var f={r:e,c:0};for(var o=0;o<16;++o){if(r.s.c>o+1<<10||r.e.c<o<<10)continue;var u=-1,h=-1;for(var d=o<<10;d<o+1<<10;++d){f.c=d;var v=Array.isArray(t)?(t[f.r]||[])[f.c]:t[$r(f)];if(v){if(u<0)u=d;h=d}}if(u<0)continue;++l;a._W(4,u);a._W(4,h)}var b=a.l;a.l=c;a._W(4,l);a.l=b;return a.length>a.l?a.slice(0,a.l):a}function uh(e,r,t,a){var n=oh(a,t,r);if(n.length>17||(r["!rows"]||[])[a])_r(e,"BrtRowHdr",n)}var hh=Rt;var dh=At;function vh(e,r){}function bh(e,r){var t={};e.l+=19;t.name=pt(e,r-19);return t}function ph(e,r){if(r==null)r=Ar(84+4*e.length);for(var t=0;t<3;++t)r._W(1,0);yt({auto:1},r);r._W(-4,-1);r._W(-4,-1);mt(e,r);return r.slice(0,r.l
}function mv(e){e.t=e.v||"";e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");e.v=e.w=e.ixfe=undefined}function gv(e){if(d&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;throw new Error("Bad input format: expected Buffer or string")}var Ev=/<(\/?)([^\s?>!\/:]*:|)([^\s?>]*[^\s?>\/])[^>]*>/gm;function Sv(e,r){var t=r||{};S(E);var a=c(gv(e));if(t.type=="binary"||t.type=="base64"){if(typeof cptable!=="undefined")a=cptable.utils.decode(65001,i(a));else a=Te(a)}var n=a.slice(0,1024).toLowerCase(),s=false;if(n.indexOf("<?xml")==-1)["html","table","head","meta","script","style","div"].forEach(function(e){if(n.indexOf("<"+e)>=0)s=true});if(s)return ab.to_workbook(a,t);var l;var f=[],u;if(o!=null&&t.dense==null)t.dense=o;var h={},d=[],v=t.dense?[]:{},b="";var p={},m={},g={};var B=ov('<Data ss:Type="String">'),w=0;var C=0,T=0;var I={s:{r:2e6,c:2e6},e:{r:0,c:0}};var x={},R={};var A="",D=0;var F=[];var _={},O={},P=0,y={};var N=[],M={};var L=[],U,W=false;var H=[];var V=[],G={},z=0,j=0;var K={Sheets:[],WBProps:{date1904:false}},Y={};Ev.lastIndex=0;a=a.replace(/<!--([\s\S]*?)-->/gm,"");while(l=Ev.exec(a))switch(l[3]){case"Data":if(f[f.length-1][1])break;if(l[1]==="/")pv(a.slice(w,l.index),A,B,f[f.length-1][0]=="Comment"?M:m,{c:C,r:T},x,L[C],g,H,t);else{A="";B=ov(l[0]);w=l.index+l[0].length}break;case"Cell":if(l[1]==="/"){if(N.length>0)m.c=N;if((!t.sheetRows||t.sheetRows>T)&&m.v!==undefined){if(t.dense){if(!v[T])v[T]=[];v[T][C]=m}else v[Gr(C)+Wr(T)]=m}if(m.HRef){m.l={Target:m.HRef,Tooltip:m.HRefScreenTip};delete m.HRef;delete m.HRefScreenTip}if(m.MergeAcross||m.MergeDown){z=C+(parseInt(m.MergeAcross,10)|0);j=T+(parseInt(m.MergeDown,10)|0);F.push({s:{c:C,r:T},e:{c:z,r:j}})}if(!t.sheetStubs){if(m.MergeAcross)C=z+1;else++C}else if(m.MergeAcross||m.MergeDown){for(var $=C;$<=z;++$){for(var Q=T;Q<=j;++Q){if($>C||Q>T){if(t.dense){if(!v[Q])v[Q]=[];v[Q][$]={t:"z"}}else v[Gr($)+Wr(Q)]={t:"z"}}}}C=z+1}else++C}else{m=uv(l[0]);if(m.Index)C=+m.Index-1;if(C<I.s.c)I.s.c=C;if(C>I.e.c)I.e.c=C;if(l[0].slice(-2)==="/>")++C;N=[]}break;case"Row":if(l[1]==="/"||l[0].slice(-2)==="/>"){if(T<I.s.r)I.s.r=T;if(T>I.e.r)I.e.r=T;if(l[0].slice(-2)==="/>"){g=ov(l[0]);if(g.Index)T=+g.Index-1}C=0;++T}else{g=ov(l[0]);if(g.Index)T=+g.Index-1;G={};if(g.AutoFitHeight=="0"||g.Height){G.hpx=parseInt(g.Height,10);G.hpt=Pl(G.hpx);V[T]=G}if(g.Hidden=="1"){G.hidden=true;V[T]=G}}break;case"Worksheet":if(l[1]==="/"){if((u=f.pop())[0]!==l[3])throw new Error("Bad state: "+u.join("|"));d.push(b);if(I.s.r<=I.e.r&&I.s.c<=I.e.c)v["!ref"]=qr(I);if(F.length)v["!merges"]=F;if(L.length>0)v["!cols"]=L;if(V.length>0)v["!rows"]=V;h[b]=v}else{I={s:{r:2e6,c:2e6},e:{r:0,c:0}};T=C=0;f.push([l[3],false]);u=ov(l[0]);b=be(u.Name);v=t.dense?[]:{};F=[];H=[];V=[];Y={name:b,Hidden:0};K.Sheets.push(Y)}break;case"Table":if(l[1]==="/"){if((u=f.pop())[0]!==l[3])throw new Error("Bad state: "+u.join("|"))}else if(l[0].slice(-2)=="/>")break;else{p=ov(l[0]);f.push([l[3],false]);L=[];W=false}break;case"Style":if(l[1]==="/")bv(x,R,t);else R=ov(l[0]);break;case"NumberFormat":R.nf=be(ov(l[0]).Format||"General");if(k[R.nf])R.nf=k[R.nf];for(var J=0;J!=392;++J)if(E._table[J]==R.nf)break;if(J==392)for(J=57;J!=392;++J)if(E._table[J]==null){E.load(R.nf,J);break}break;case"Column":if(f[f.length-1][0]!=="Table")break;U=ov(l[0]);if(U.Hidden){U.hidden=true;delete U.Hidden}if(U.Width)U.wpx=parseInt(U.Width,10);if(!W&&U.wpx>10){W=true;Bl=El;for(var Z=0;Z<L.length;++Z)if(L[Z])Fl(L[Z])}if(W)Fl(U);L[U.Index-1||L.length]=U;for(var q=0;q<+U.Span;++q)L[L.length]=X(U);break;case"NamedRange":if(!K.Names)K.Names=[];var ee=ue(l[0]);var re={Name:ee.Name,Ref:vf(ee.RefersTo.substr(1))};if(K.Sheets.length>0)re.Sheet=K.Sheets.length-1;K.Names.push(re);break;case"NamedCell":break;case"B":break;case"I":break;case"U":break;case"S":break;case"Sub":break;case"Sup":break;case"Span":break;case"Border":break;case"Alignment":break;case"Borders":break;case"Font":if(l[0].slice(-2)==="/>")break;else if(l[1]==="/")A+=a.slice(D,l.index);else D=l.index+l[0].length;break;case"Interior":if(!t.cellStyles)break;R.Interior=ov(l[0]);b
case"Dat":;case"Begin":;case"End":;case"StartBlock":;case"EndBlock":;case"Frame":;case"Area":;case"Axis":;case"AxisLine":;case"Tick":break;case"AxesUsed":;case"CrtLayout12":;case"CrtLayout12A":;case"CrtLink":;case"CrtLine":;case"CrtMlFrt":;case"CrtMlFrtContinue":break;case"LineFormat":;case"AreaFormat":;case"Chart":;case"Chart3d":;case"Chart3DBarShape":;case"ChartFormat":;case"ChartFrtInfo":break;case"PlotArea":;case"PlotGrowth":break;case"SeriesList":;case"SerParent":;case"SerAuxTrend":break;case"DataFormat":;case"SerToCrt":;case"FontX":break;case"CatSerRange":;case"AxcExt":;case"SerFmt":break;case"ShtProps":break;case"DefaultText":;case"Text":;case"CatLab":break;case"DataLabExtContents":break;case"Legend":;case"LegendException":break;case"Pie":;case"Scatter":break;case"PieFormat":;case"MarkerFormat":break;case"StartObject":;case"EndObject":break;case"AlRuns":;case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":;case"YMult":break;case"Line":;case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":;case"Qsif":;case"Qsir":;case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":;case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":;case"MsoDrawingGroup":;case"MsoDrawingSelection":break;case"WebPub":;case"AutoWebPub":break;case"HeaderFooter":;case"HFPicture":;case"PLV":;case"HorizontalPageBreaks":;case"VerticalPageBreaks":break;case"Backup":;case"CompressPictures":;case"Compat12":break;case"Continue":;case"ContinueFrt12":break;case"FrtFontList":;case"FrtWrapper":break;default:switch(ee.n){case"TabIdConf":;case"Radar":;case"RadarArea":;case"DropBar":;case"Intl":;case"CoordList":;case"SerAuxErrBar":break;case"BIFF2FONTCLR":;case"BIFF2FMTCNT":;case"BIFF2FONTXTRA":break;case"BIFF2XF":;case"BIFF3XF":;case"BIFF4XF":break;case"BIFF4FMTCNT":;case"BIFF2ROW":;case"BIFF2WINDOW2":break;case"SCENARIO":;case"DConBin":;case"PicF":;case"DataLabExt":;case"Lel":;case"BopPop":;case"BopPopCustom":;case"RealTimeData":;case"Name":break;case"LHNGraph":;case"FnGroupName":;case"AddMenu":;case"LPr":break;case"ListObj":;case"ListField":break;case"RRSort":break;case"BigName":break;case"ToolbarHdr":;case"ToolbarEnd":break;case"DDEObjName":break;case"FRTArchId$":break;default:if(r.WTF)throw"Unrecognized Record "+ee.n;};};};}}else e.l+=Z}var ge=Object.keys(s).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return s[e].name});var Ee=ge.slice();t.Directory=ge;t.SheetNames=ge;if(!r.bookSheets)t.Sheets=a;if(t.Sheets)K.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Preamble=d;t.Strings=u;t.SSF=E.get_table();if(P.enc)t.Encryption=P.enc;t.Metadata={};if(T!==undefined)t.Metadata.Country=T;if(V.names.length>0)A.Names=V.names;t.Workbook=A;return t}function Lv(e,r,t){var a=I.find(e,"!DocumentSummaryInformation");if(a)try{var n=cn(a,Jt);for(var i in n)r[i]=n[i]}catch(s){if(t.WTF==2)throw s}var l=I.find(e,"!SummaryInformation");if(l)try{var c=cn(l,Zt);for(var f in c)if(r[f]==null)r[f]=c[f]}catch(s){if(t.WTF==2)throw s}}function Uv(e,r){if(!r)r={};Cb(r);a();var t,n,i;if(e.FullPaths){t=I.find(e,"!CompObj");n=I.find(e,"!SummaryInformation");i=I.find(e,"/Workbook")||I.find(e,"/Book")}else{switch(r.type){case"base64":e=b(h.decode(e));break;case"binary":e=b(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Tr(e,0);i={content:e}}var s,l,c;var f;if(t)s=Ov(t);if(r.bookProps&&!r.bookSheets)c={};else{var o=d?"buffer":"array";if(i&&i.content)c=Mv(i.content,r);else if((f=I.find(e,"PerfectOffice_MAIN"))&&f.content)c=Is.to_workbook(f.content,(r.type=o,r));else if((f=I.find(e,"NativeContent_MAIN"))&&f.content)c=Is.to_workbook(f.content,(r.type=o,r));else throw new Error("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&I
},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:ts,r:12},2173:{n:"XFExt",f:Lc,r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:hn,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:Ui,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:_c,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:Vi,r:12},2203:{n:"CompressPictures",f:fn},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:si},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:vn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:is},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:es},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:mi},2:{n:"BIFF2INT",f:bs},5:{n:"BoolErr",f:Ri},7:{n:"String",f:ms},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:vn},30:{n:"BIFF2FORMAT",f:pi},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:Hi},37:{n:"DefaultRowHeight",f:ci},50:{n:"BIFF2FONTXTRA",f:gs},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:os},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:Es},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:$n},536:{n:"Lbl",f:Ni},547:{n:"ExternName",f:Pi},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:$n},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};var Gv=A(Xv,"n");function zv(e,r,t,a){var n=+r||+Gv[r];if(isNaN(n))return;var i=a||(t||[]).length||0;var s=e.next(4+i);s._W(2,n);s._W(2,i);if(i>0&&or(t))e.push(t)}function jv(e,r,t){if(!e)e=Ar(7);e._W(2,r);e._W(2,t);e._W(1,0);e._W(1,0);e._W(1,0);return e}function Kv(e,r,t,a){var n=Ar(9);jv(n,e,r);if(a=="e"){n._W(1,t);n._W(1,1)}else{n._W(1,t?1:0);n._W(1,0)}return n}function Yv(e,r,t){var a=Ar(8+2*t.length);jv(a,e,r);a._W(1,t.length);a._W(t.length
for(g=0;g!=d.Worksheets;++g){var F="sheet";if(A&&A[g]){B="xl/"+A[g][1].replace(/[\/]?xl\//,"");F=A[g][2]}else{B="xl/worksheets/sheet"+(g+1-D)+"."+I;B=B.replace(/sheet0\./,"sheet.")}w=B.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");Rb(e,B,w,d.SheetNames[g],g,k,l,F,r,h,f,o)}if(i.comments)Qc(e,i.comments,l,k,r);p={Directory:i,Workbook:h,Props:d,Custprops:b,Deps:m,Sheets:l,SheetNames:d.SheetNames,Strings:Du,Styles:o,Themes:f,SSF:E.get_table()};if(r.bookFiles){p.keys=t;p.files=e.files}if(r.bookVBA){if(i.vba.length>0)p.vbaraw=ee(e,Db(i.vba[0]),true);else if(i.defaults&&i.defaults.bin==="application/vnd.ms-office.vbaProject")p.vbaraw=ee(e,"xl/vbaProject.bin",true)}return p}function _b(e,r){var t=r||{};var a="/!DataSpaces/Version";var n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=js(n.content);a="/!DataSpaces/DataSpaceMap";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Ys(n.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=$s(n.content);if(l.length!=1||l[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=Js(n.content);a="/EncryptionInfo";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var f=el(n.content);a="/EncryptedPackage";n=I.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(f[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(f[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function Ob(e,r){Yc=1024;if(r.bookType=="ods")return ub(e,r);if(e&&!e.SSF){e.SSF=E.get_table()}if(e&&e.SSF){S(E);E.load_table(e.SSF);r.revssf=F(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;var t=r.bookType=="xlsb"?"bin":"xml";var a=r.bookType=="xlsb"||r.bookType=="xlsm";var n=la();Tb(r=r||{});var i=new ae;var s="",l=0;r.cellXfs=[];yu(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";i.file(s,Da(e.Props,r));n.coreprops.push(s);ma(r.rels,2,s,ha.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else e.Props.SheetNames=e.SheetNames.map(function(r,t){return[(e.Workbook.Sheets[t]||{}).Hidden!=2,r]}).filter(function(e){return e[0]}).map(function(e){return e[1]});e.Props.Worksheets=e.Props.SheetNames.length;i.file(s,Pa(e.Props,r));n.extprops.push(s);ma(r.rels,3,s,ha.EXT_PROPS);if(e.Custprops!==e.Props&&R(e.Custprops||{}).length>0){s="docProps/custom.xml";i.file(s,La(e.Custprops,r));n.custprops.push(s);ma(r.rels,4,s,ha.CUST_PROPS)}s="xl/workbook."+t;i.file(s,rv(e,s,r));n.workbooks.push(s);ma(r.rels,1,s,ha.WB);for(l=1;l<=e.SheetNames.length;++l){var c={"!id":{}};var f=e.Sheets[e.SheetNames[l-1]];var o=(f||{})["!type"]||"sheet";switch(o){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;i.file(s,tv(l-1,s,r,e,c));n.sheets.push(s);ma(r.wbrels,-1,"worksheets/sheet"+l+"."+t,ha.WS[0]);}if(f){var u=f["!comments"];if(u&&u.length>0){var h="xl/comments"+l+"."+t;i.file(h,sv(u,h,r));n.comments.push(h);ma(c,-1,"../comments"+l+"."+t,ha.CMNT)}if(f["!legacy"]){i.file("xl/drawings/vmlDrawing"+l+".vml",$c(l,f["!comments"]))}delete f["!comments"];delete f["!legacy"]}if(c["!id"].rId1)i.file(da(s),pa(c))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,iv(r.Strings,s,r));n.strs.push(s);ma(r.wbrels,-1,"sharedStrings."+t,ha.SST)}s="xl/theme/theme1.xml";i.file(s,Fc(e.Themes,r));n.themes.push(s);ma(r.wbrels,-1,"theme/theme1.xml",ha.THEME);s="xl/styles."+t;i.file(s,nv(e,s,r));n.styles.push(s);ma