sheetjs-clone/dist/xlsx.min.js

13 lines
341 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.1";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 s(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function i(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 f(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 l=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return i(e.substr(2));if(r==254&&t==255)return f(e.substr(2));if(r==65279)return e.substr(1);return e};var c=function yS(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};l=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,s(e.substr(2)))}return e};c=function _S(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 NS(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a,n,s,i,f,l,c;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);s=r.charCodeAt(o++);i=a>>2;f=(a&3)<<4|n>>4;l=(n&15)<<2|s>>6;c=s&63;if(isNaN(n)){l=c=64}else if(isNaN(s)){c=64}t+=e.charAt(i)+e.charAt(f)+e.charAt(l)+e.charAt(c)}return t},decode:function r(t){var a="";var n,s,i;var f,l,c,o;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){f=e.indexOf(t.charAt(u++));l=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=f<<2|l>>4;s=(l&15)<<4|c>>2;i=(c&3)<<6|o;a+=String.fromCharCode(n);if(c!=64){a+=String.fromCharCode(s)}if(o!=64){a+=String.fromCharCode(i)}}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 MS(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 s(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function i(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function f(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var l=Math.pow(2,32);function c(e,r){if(e>l||e<-l)return i(e,r);var t=Math.round(e);return f(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"
};e.read=E;e.parse=r;e.utils={ReadShift:dr,CheckField:gr,prep_blob:Er,bconcat:p,consts:T};return e}();if(typeof require!=="undefined"&&typeof module!=="undefined"&&typeof w==="undefined"){module.exports=I}function x(e){return e!==undefined&&e!==null}function A(e){return Object.keys(e)}function R(e,r){var t=[],a=A(e);for(var n=0;n!==a.length;++n)t[e[a[n]][r]]=a[n];return t}function D(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}function O(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);return r}function F(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}return r}var P=new Date(1899,11,30,0,0,0);var y=P.getTime()+((new Date).getTimezoneOffset()-P.getTimezoneOffset())*6e4;function _(e,r){var t=e.getTime();if(r)t-=1462*24*60*60*1e3;return(t-y)/(24*60*60*1e3)}function N(e){var r=new Date;r.setTime(e*24*60*60*1e3+y);return r}function M(e){var r=0,t=0,a=false;var n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=n.length;++s){if(!n[s])continue;t=1;if(s>3)a=true;switch(n[s].substr(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].substr(n[s].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[s],10)}return r}var L=new Date("2017-02-19T19:06:09.000Z");if(isNaN(L.getFullYear()))L=new Date("2/19/17");var U=L.getFullYear()==2017;function W(e,r){var t=new Date(e);if(U){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(L.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];return new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0)}function H(e){var r="";for(var t=0;t!=e.length;++t)r+=String.fromCharCode(e[t]);return r}function V(e){var r=[];for(var t=0;t!=e.length;++t)r.push(e.charCodeAt(t));return r}function X(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;var r={};for(var t in e)if(e.hasOwnProperty(t))r[t]=X(e[t]);return r}function G(e,r){var t="";while(t.length<r)t+=e;return t}function z(e){var r=new Date(e),t=new Date(NaN);var a=r.getYear(),n=r.getMonth(),s=r.getDate();if(isNaN(s))return t;if(a<0||a>8099)return t;if((n>0||s>1)&&a!=101)return r;if(e.toLowerCase().match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/))return r;if(!e.match(/[a-zA-Z]/))return r;return t}function j(e){if(!e)return null;if(e.data)return l(e.data);if(e.asNodeBuffer&&d)return l(e.asNodeBuffer().toString("binary"));if(e.asBinary)return l(e.asBinary());if(e._data&&e._data.getContent)return l(H(Array.prototype.slice.call(e._data.getContent(),0)));return null}function K(e){if(!e)return null;if(e.data)return s(e.data);if(e.asNodeBuffer&&d)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();if(typeof r=="string")return V(r);return Array.prototype.slice.call(r)}return null}function Y(e){return e&&e.name.slice(-4)===".bin"?K(e):j(e)}function $(e,r){var t=A(e.files);var a=r.toLowerCase(),n=a.replace(/\//g,"\\");for(var s=0;s<t.length;++s){var i=t[s].toLowerCase();if(a==i||n==i)return e.files[t[s]]}return null}function Q(e,r){var t=$(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function Z(e,r,t){if(!t)return Y(Q(e,r));if(!r)return null;try{return Z(e,r)}catch(a){return null}}function J(e,r,t){if(!t)return j(Q(e,r));if(!r)return null;try{return J(e,r)}catch(a){return null}}var q,ee;if(typeof JSZip!=="undefined")ee=JSZip;if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){if(typeof ee==="undefined")ee=undefined;try{q=require("fs")}catch(re){}}}function te(e,r){var t=r.split("/");if(r.slice(-1)!=
"image/png":"TODO",sheet:"js"};var qt=function(){var e={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};A(e).forEach(function(r){if(!e[r].xlsm)e[r].xlsm=e[r].xlsx});A(e).forEach(function(r){A(e[r]).forEach(function(t){Jt[e[r][t]]=r})});return e}();var ea=F(Jt);Me.CT="http://schemas.openxmlformats.org/package/2006/content-types";function ra(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function ta(e,r){var t=ra();if(!e||!e.match)return t;var a={};(e.match(ne)||[]).forEach(function(e){var r=fe(e);switch(r[0].replace(se,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":a[r.Extension]=r.ContentType;break;case"<Override":if(t[Jt[r.ContentType]]!==undefined)t[Jt[r.ContentType]].push(r.PartName);break;}});if(t.xmlns!==Me.CT)throw new Error("Unknown Namespace: "+t.xmlns);t.calcchain=t.calcchains.length>0?t.calcchains[0]:"";t.sst=t.strs.length>0?t.strs[0]:"";t.style=t.styles.length>0?t.styles[0]:"";t.defaults=a;delete t.calcchains;return t}var aa=Pe("Types",null,{xmlns:Me.CT,"xmlns:xsd":Me.xsd,"xmlns:xsi":Me.xsi});var na=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels",ea.rels[0]]].map(function(e){return Pe("Default",null,{Extension:e[0],ContentType:e[1]})});function sa(e,r){var t=[],a;t[t.length]=Ne;t[t.length]=aa;t=t.concat(na);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=Pe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:qt[n][r.bookType||"xlsx"]})}};var s=function(a){(e[a]||[]).forEach(function(e){t[t.length]=Pe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:qt[a][r.bookType||"xlsx"]})})};var i=function(r){(e[r]||[]).forEach(function(e){t[t.length]=Pe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:ea[r][0]})})};n("workbooks");s("sheets");s("charts");i("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(i);i("vba");i("comments");i("drawings");if(t.length>2){t[t.length]="</Types>";t[1]=t[1].replace("/>",">")}return t.join("")}var ia={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function fa(e
}function Ws(e,r,t){var a={};e.l+=16;a.header=Tt(e,8);a.footer=Tt(e,8);e.l+=2;return a}function Hs(e,r,t){var a={area:false};if(t.biff!=5){e.l+=r;return a}var n=e.read_shift(1);e.l+=3;if(n&16)a.area=true;return a}var Vs=Sr;var Xs=Sr;var Gs=Sr;var zs=nn;var js=Cn;var Ks=Tt;var Ys=sn;var $s=sn;var Qs=Tt;var Zs=nn;var Js=sn;var qs=nn;var ei=tn;var ri=nn;var ti=sn;var ai=nn;var ni=nn;var si=sn;var ii=tn;var fi=tn;var li=tn;var ci=tn;var oi=tn;var ui=sn;var hi=vs;var di=sn;var vi=nn;var bi=vs;var pi=In;var mi=tn;var gi=Tt;var Ei=tn;var Si=nn;var ki=sn;var Bi=nn;var Ci=nn;var Ti=sn;var wi=nn;var Ii=sn;var xi=nn;var Ai=nn;var Ri=Tt;var Di=fn;var Oi=nn;var Fi=fn;var Pi=dn;var yi=nn;var _i=Tt;var Ni=nn;var Mi=nn;var Li=nn;var Ui=Sr;var Wi=Sr;var Hi=Sr;var Vi=Sr;var Xi=Sr;var Gi=Sr;var zi=Sr;var ji=Sr;var Ki=Sr;var Yi=Sr;var $i=Sr;var Qi=Sr;var Zi=Sr;var Ji=Sr;var qi=Sr;var ef=Sr;var rf=Sr;var tf=Sr;var af=Sr;var nf=Sr;var sf=Sr;var ff=Sr;var lf=Sr;var cf=Sr;var of=Sr;var uf=Sr;var hf=Sr;var df=Sr;var vf=Sr;var bf=Sr;var pf=Sr;var mf=Sr;var gf=Sr;var Ef=Sr;var Sf=Sr;var kf=Sr;var Bf=Sr;var Cf=Sr;var Tf=Sr;var wf=Sr;var If=Sr;var xf=Sr;var Af=Sr;var Rf=Sr;var Df=Sr;var Of=Sr;var Ff=Sr;var Pf=Sr;var yf=Sr;var _f=Sr;var Nf=Sr;var Mf=Sr;var Lf=Sr;var Uf=Sr;var Wf=Sr;var Hf=Sr;var Vf=Sr;var Xf=Sr;var Gf=Sr;var zf=Sr;var jf=Sr;var Kf=Sr;var Yf=Sr;var $f=Sr;var Qf=Sr;var Zf=Sr;var Jf=Sr;var qf=Sr;var el=Sr;var rl=Sr;var tl=Sr;var al=Sr;var nl=Sr;var sl=Sr;var il=Sr;var fl=Sr;var ll=Sr;var cl=Sr;var ol=Sr;var ul=Sr;var hl=Sr;var dl=Sr;var vl=Sr;var bl=Sr;var pl=Sr;var ml=Sr;var gl=Sr;var El=Sr;var Sl=Sr;var kl=Sr;var Bl=Sr;var Cl=Sr;var Tl=Sr;var wl=Sr;var Il=Sr;var xl=Sr;var Al=Sr;var Rl=Sr;var Dl=Sr;var Ol=Sr;var Fl=Sr;var Pl=Sr;var yl=Sr;var _l=Sr;var Nl=Sr;var Ml=Sr;var Ll=Sr;var Ul=Sr;var Wl=Sr;var Hl=Sr;var Vl=dn;var Xl=Sr;var Gl=Sr;var zl=Sr;var jl=Sr;var Kl=Sr;var Yl=Sr;var $l=Sr;var Ql=Sr;var Zl=Sr;var Jl=Sr;var ql=Sr;var ec=Sr;var rc=Sr;var tc=Sr;var ac=Sr;var nc=Sr;var sc=Sr;var ic=Sr;var fc=Sr;var lc=Sr;var cc=Sr;var oc=Sr;var uc=Sr;var hc=Sr;var dc=Sr;var vc=Sr;var bc=Sr;var pc=Sr;var mc=Sr;var gc=Sr;var Ec=Sr;var Sc=Sr;var kc=Sr;var Bc=Sr;var Cc=Sr;var Tc=Sr;var wc=Sr;var Ic=Sr;var xc=Sr;var Ac=Sr;var Rc=Sr;var Dc=Sr;var Oc=Sr;var Fc=Sr;var Pc=Sr;var yc=Sr;var _c=Sr;var Nc=Sr;var Mc=Sr;var Lc=Sr;var Uc=Sr;var Wc=Sr;var Hc=Sr;var Vc=Sr;var Xc=Sr;var Gc=Sr;var zc=Sr;var jc=Sr;var Kc=Sr;var Yc=Sr;var $c=Sr;var Qc=Sr;var Zc=Sr;var Jc=Sr;var qc=Sr;var eo=Sr;var ro=Sr;var to=Sr;var ao=Sr;var no=Sr;var so=Sr;var io=Sr;var fo=Sr;var lo=Sr;var co=Sr;var oo=Sr;var uo=Sr;var ho=Sr;var vo=Sr;var bo=Sr;var po=Sr;var mo=Sr;var go=Sr;var Eo=Sr;var So=Sr;var ko=Sr;var Bo=Sr;var Co=Sr;var To=Sr;var wo=Sr;var Io=Sr;var xo=Sr;var Ao=Sr;var Ro=Sr;var Do=Sr;var Oo=Sr;var Fo=Sr;var Po=Sr;var yo=Sr;var _o=Sr;var No=Sr;var Mo=Sr;var Lo=Sr;var Uo=Sr;var Wo=Sr;var Ho=Sr;var Vo=Sr;var Xo=Sr;var Go=Sr;var zo=Sr;var jo=Sr;var Ko=Sr;var Yo=Sr;var $o=Sr;var Qo=Sr;var Zo=Sr;var Jo=Sr;var qo=Sr;var eu=Sr;var ru=Sr;var tu=Sr;var au=Sr;var nu=Sr;var su=Sr;var iu=Sr;var fu=Sr;var lu=Sr;var cu=Sr;var ou=Sr;var uu=Sr;var hu=Sr;var du=Sr;var vu=Sr;var bu=Sr;var pu=Sr;var mu=Sr;var gu=Sr;var Eu=Sr;var Su=Sr;var ku=Sr;var Bu=Sr;var Cu=Sr;function Tu(e,r,t){var a=e.l+r;var n=e.read_shift(2);var s=e.read_shift(2);var i=e.read_shift(4);var f={fmt:n,env:s,len:i,data:e.slice(e.l,e.l+i)};e.l+=i;return f}function wu(e){var r=e.read_shift(1);return e.read_shift(r,"sbcs-cont")}function Iu(e,r,t){var a=Cn(e,6);++e.l;var n=vn(e,r-7,t);a.t="str";a.val=n;return a}function xu(e,r,t){var a=Cn(e,6);++e.l;var n=Tt(e,8);a.t="n";a.val=n;return a}function Au(e,r){var t=Cn(e,6);++e.l;var a=e.read_shift(2);t.t="n";t.val=a;return t}function Ru(e,r){var t=e.read_shift(1);if(t===0){e.l++;return""}return e.read_shift(t,"sbcs-cont")}function Du(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}function Ou(e,r,t){var a=e.l+r;var n=Cn(e,6);var s=e.read_shift(2);var i=hn(e,s,t);e.l=a;n.t="str";n.val=i;return n}var Fu=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,10
}function _h(e){return Math.floor((e-5)/Ph*100+.5)/100}function Nh(e){return Math.round((e*Ph+5)/Ph*256)/256}function Mh(e){return((e-5)/Ph*100+.5)/100}function Lh(e){return(e*Ph+5)/Ph*256/256}function Uh(e){return Nh(_h(yh(e)))}function Wh(e){var r=Math.abs(e-Uh(e)),t=Ph;if(r>.005)for(Ph=Fh;Ph<Oh;++Ph)if(Math.abs(e-Uh(e))<=r){r=Math.abs(e-Uh(e));t=Ph}Ph=t}function Hh(e){var r=Infinity,t=0,a=Fh;for(Ph=Fh;Ph<Oh;++Ph){t=Lh(Mh(e))*256;t=t%1;if(t>.5)t--;if(Math.abs(t)<r){r=Math.abs(t);a=Ph}}Ph=a}function Vh(e){if(e.width){e.wpx=yh(e.width);e.wch=_h(e.wpx);e.MDW=Ph}else if(e.wpx){e.wch=_h(e.wpx);e.width=Nh(e.wch);e.MDW=Ph}else if(typeof e.wch=="number"){e.width=Nh(e.wch);e.wpx=yh(e.width);e.MDW=Ph}if(e.customWidth)delete e.customWidth}var Xh=96,Gh=Xh;function zh(e){return e*96/Gh}function jh(e){return e*Gh/96}var Kh={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Yh(e,r,t,a){r.Borders=[];var n={},s={};e[0].match(ne).forEach(function(e){var t=fe(e);switch(t[0]){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp){n.diagonalUp=t.diagonalUp}if(t.diagonalDown){n.diagonalDown=t.diagonalDown}r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":;case"<vertical>":;case"<vertical/>":break;case"</vertical>":break;case"<start":;case"<start>":;case"<start/>":break;case"</start>":break;case"<end":;case"<end>":;case"<end/>":break;case"</end>":break;case"<color":;case"<color>":break;case"<color/>":;case"</color>":break;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in borders");}})}function $h(e,r,t,a){r.Fills=[];var n={};e[0].match(ne).forEach(function(e){var t=fe(e);switch(t[0]){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":;case"<fill/>":n={};r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":;case"</gradientFill>":r.Fills.push(n);n={};break;case"<patternFill":;case"<patternFill>":if(t.patternType)n.patternType=t.patternType;break;case"<patternFill/>":;case"</patternFill>":break;case"<bgColor":if(!n.bgColor)n.bgColor={};if(t.indexed)n.bgColor.indexed=parseInt(t.indexed,10);if(t.theme)n.bgColor.theme=parseInt(t.theme,10);if(t.tint)n.bgColor.tint=parseFloat(t.tint);if(t.rgb)n.bgColor.rgb=t.rgb.slice(-6);break;case"<bgColor/>":;case"</bgColor>":break;case"<fgColor":if(!n.fgColor)n.fgColor={};if(t.theme)n.fgColor.theme=parseInt(t.theme,10);if(t.tint)n.fgColor.tint=parseFloat(t.tint);if(t.rgb)n.fgColor.rgb=t.rgb.slice(-6);break;case"<fgColor/>":;case"</fgColor>":break;case"<stop":;case"<stop/>":break;case"</stop>":break;case"<color":;case"<color/>":break;case"</color>":break;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in fills");}})}function Qh(e,r,t,a){r.Fonts=[];var n={};e[0].match(ne).forEach(function(e){var s=fe(e);switch(s[0]){case"<fonts":;case"<fonts>":;case"</fonts>":break;case"<font":;case"<font>":break;case"</font>":;case"<font/>":r.Fonts.push(n);n={};break;case"<name":if(s.val)n.name=s.val;break;case"<name/>":;case"</name>":break;case"<b":n.bold=s.val?Se(s.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=s.val?Se(s.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(s.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break
t.push("</text></comment>")})});t.push("</commentList>");if(t.length>2){t[t.length]="</comments>";t[1]=t[1].replace("/>",">")}return t.join("")}function ov(e,r){var t={};t.iauthor=e.read_shift(4);var a=Bt(e,16);t.rfx=a.s;t.ref=Xr(a.s);e.l+=16;return t}function uv(e,r){if(r==null)r=Cr(36);r.write_shift(4,e[1].iauthor);Ct(e[0],r);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(4,0);return r}var hv=et;function dv(e){return rt(e.substr(0,54))}function vv(e,r){var t=[];var a=[];var n={};var s=false;Tr(e,function i(e,f,l){switch(l){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 35:s=true;break;case 36:s=false;break;case 37:break;case 38:break;default:if((f||"").indexOf("Begin")>0){}else if((f||"").indexOf("End")>0){}else if(!s||r.WTF)throw new Error("Unexpected record "+l+" "+f);}});return t}function bv(e,r){var t=wr();var a=[];Ir(t,"BrtBeginComments");{Ir(t,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(a.indexOf(e.a)>-1)return;a.push(e.a.substr(0,54));Ir(t,"BrtCommentAuthor",dv(e.a))})});Ir(t,"BrtEndCommentAuthors")}{Ir(t,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(r){r.iauthor=a.indexOf(r.a);var n={s:Vr(e[0]),e:Vr(e[0])};Ir(t,"BrtBeginComment",uv([n,r]));if(r.t&&r.t.length>0)Ir(t,"BrtCommentText",ft(r));Ir(t,"BrtEndComment");delete r.iauthor})});Ir(t,"BrtEndCommentList")}Ir(t,"BrtEndComments");return t.end()}ia.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ia.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function pv(e,r,t,a,n,s){return{"!type":"dialog"}}function mv(e,r,t,a,n,s){return{"!type":"dialog"}}function gv(e,r,t,a,n,s){return{"!type":"macro"}}function Ev(e,r,t,a,n,s){return{"!type":"macro"}}var Sv=function(){var e=/(^|[^A-Za-z])R(\[?)(-?\d+|)\]?C(\[?)(-?\d+|)\]?/g;var r={r:0,c:0};function t(e,t,a,n,s,i){var f=n.length>0?parseInt(n,10)|0:0,l=i.length>0?parseInt(i,10)|0:0;if(l<0&&s.length===0)l=0;var c=false,o=false;if(s.length>0||i.length==0)c=true;if(c)l+=r.c;else--l;if(a.length>0||n.length==0)o=true;if(o)f+=r.r;else--f;return t+(c?"":"$")+Lr(l)+(o?"":"$")+yr(f)}return function a(n,s){r=s;return n.replace(e,t)}}();var kv=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)([1-9]\d{0,5}|10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6])(?![_.\(A-Za-z0-9])/g;var Bv=function(){return function e(r,t){return r.replace(kv,function(e,r,a,n,s,i,f,l){var c=Mr(n)-t.c;var o=Pr(i)-t.r;return r+"R"+(o==0?"":"["+o+"]")+"C"+(c==0?"":"["+c+"]")})}}();function Cv(e,r){return e.replace(kv,function(e,t,a,n,s,i,f,l){return t+(a=="$"?a+n:Lr(Mr(n)+r.c))+(s=="$"?s+i:yr(Pr(i)+r.r))})}function Tv(e,r,t){var a=jr(r),n=a.s,s=Vr(t);var i={r:s.r-n.r,c:s.c-n.c};return Cv(e,i)}function wv(e){return function(r,t){r.l+=e;return}}function Iv(e){e.l+=1;return}function xv(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Av(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return Rv(e,r,t);else if(t.biff==12)a=4}var n=e.read_shift(a),s=e.read_shift(a);var i=xv(e,2);var f=xv(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:f[0],cRel:f[1],rRel:f[2]}}}function Rv(e){var r=xv(e,2),t=xv(e,2);var a=e.read_shift(1);var n=e.read_shift(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function Dv(e,r){var t=e.read_shift(r==12?4:2),a=e.read_shift(r==12?4:2);var n=xv(e,2);var s=xv(e,2);return{s:{r:t,c:n[0],cRel:n[1],rRel:n[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function Ov(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Fv(e,r,t);var a=e.read_shift(t&&t.biff==12?4:2);var n=xv(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Fv(e,r,t){var a=xv(e,2);var n=e.read_shift(1);return{r:a[0],c:n,cRel:a[1],rRel:a[2]}}function Pv(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return yv(e,r,t);var n=e.read_shift(a>=12?4:2);var s=e.read_shift(2);var i=(s&32768)>>15,f=(s&
"_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFNA":"IFNA","_xlfn.IFERROR":"IFERROR","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"};function pp(e){if(e.substr(0,3)=="of:")e=e.substr(3);if(e.charCodeAt(0)==61){e=e.substr(1);if(e.charCodeAt(0)==61)e=e.substr(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function mp(e){var r="of:="+e.replace(kv,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function gp(e){var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+":"+r[1].split(".")[1]]}var Ep={};var Sp={};ia.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];function kp(e,r){for(var t=0,a=e
var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""};var a=false,n="xmlns";var s={},i=0;e.replace(ne,function f(l,c){var o=fe(l);switch(le(o[0])){case"<?xml":break;case"<workbook":if(l.match(ug))n="xmlns"+l.match(/<(\w+):/)[1];t.xmlns=o[n];break;case"</workbook>":break;case"<fileVersion":delete o[0];t.AppVersion=o;break;case"<fileVersion/>":;case"</fileVersion>":break;case"<fileSharing":;case"<fileSharing/>":break;case"<workbookPr":;case"<workbookPr/>":Jm.forEach(function(e){if(o[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Se(o[e[0]],e[0]);break;case"int":t.WBProps[e[0]]=parseInt(o[e[0]],10);break;default:t.WBProps[e[0]]=o[e[0]];}});break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":;case"<bookViews>":;case"</bookViews>":break;case"<workbookView":delete o[0];t.WBView.push(o);break;case"</workbookView>":break;case"<sheets":;case"<sheets>":;case"</sheets>":break;case"<sheet":switch(o.state){case"hidden":o.Hidden=1;break;case"veryHidden":o.Hidden=2;break;default:o.Hidden=0;}delete o.state;o.name=ue(ke(o.name));delete o[0];t.Sheets.push(o);break;case"</sheet>":break;case"<functionGroups":;case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":;case"</externalReferences>":;case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":;case"<definedNames":a=true;break;case"</definedNames>":a=false;break;case"<definedName":{s={};s.Name=o.name;if(o.comment)s.Comment=o.comment;if(o.localSheetId)s.Sheet=+o.localSheetId;i=c+l.length}break;case"</definedName>":{s.Ref=e.slice(i,c);t.Names.push(s)}break;case"<definedName/>":break;case"<calcPr":delete o[0];t.CalcPr=o;break;case"<calcPr/>":delete o[0];t.CalcPr=o;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":;case"</customWorkbookViews>":;case"<customWorkbookViews":break;case"<customWorkbookView":;case"</customWorkbookView>":break;case"<pivotCaches>":;case"</pivotCaches>":;case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":;case"<smartTagPr/>":break;case"<smartTagTypes":;case"<smartTagTypes>":;case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":;case"<webPublishing/>":break;case"<fileRecoveryPr":;case"<fileRecoveryPr/>":break;case"<webPublishObjects>":;case"<webPublishObjects":;case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":;case"<extLst>":;case"</extLst>":;case"<extLst/>":break;case"<ext":a=true;break;case"</ext>":a=false;break;case"<ArchID":break;case"<AlternateContent":a=true;break;case"</AlternateContent>":a=false;break;case"<revisionPtr":break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in workbook");}return l});if(Me.main.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);sg(t);return t}var dg=Pe("workbook",null,{xmlns:Me.main[0],"xmlns:r":Me.r});function vg(e,r){var t=[Ne];t[t.length]=dg;var a=e.Workbook&&(e.Workbook.Names||[]).length>0;var n={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){if(e.Workbook.WBProps.codeName)n.codeName=e.Workbook.WBProps.codeName;Jm.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;n[r[0]]=e.Workbook.WBProps[r[0]]})}t[t.length]=Pe("workbookPr",null,n);t[t.length]="<sheets>";var s=e.Workbook&&e.Workbook.Sheets||[];for(var i=0;i!=e.SheetNames.length;++i){var f={name:ve(e.SheetNames[i].substr(0,31))};f.sheetId=""+(i+1);f["r:id"]="rId"+(i+1);if(s[i])switch(s[i].Hidden){case 1:f.state="hidden";break;case 2:f.state="veryHidden";break;}t[t.length]=Pe("sheet",null,f)}t[t.length]="</sheets>";if(a){t[t.length]="<definedNames>";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var r={name:e.Name};if(e.Comment)r.comment=e.Comment;if(e.Sheet!=null)r.localSheetId=""+e.Sheet;if(!e.Ref)return;t[t.length]=Pe("definedName",String(e.Ref),r)});t[t.length]="</definedNames>"}if(t.length>2){t[t.length]="</workbook>";t[1]=t[1].replace("/>",">")}return t.join("")}function bg(e,r
}function EE(e,r,t){if(e.t==="z")return;if(!e.XF)return;var a=0;try{a=e.z||e.XF.numFmtId||0;if(r.cellNF)e.z=E._table[a]}catch(n){if(r.WTF)throw n}if(!r||r.cellText!==false)try{if(e.t==="e"){e.w=e.w||It[e.v]}else if(a===0||a=="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=E._general_int(e.v);else e.w=E._general_num(e.v)}else e.w=E._general(e.v)}else e.w=E.format(a,e.v,{date1904:!!t});if(r.cellDates&&a&&e.t=="n"&&E.is_date(E._table[a]||String(a))){var s=E.parse_date_code(e.v);if(s){e.t="d";e.v=new Date(s.y,s.m-1,s.d,s.H,s.M,s.S,s.u)}}}catch(n){if(r.WTF)throw n}}function SE(e,r,t){return{v:e,ixfe:r,t:t}}function kE(e,r){var t={opts:{}};var a={};if(o!=null&&r.dense==null)r.dense=o;var s=r.dense?[]:{};var i={};var f=false;var l={};var c=null;var u=[];var h="";var d={};var v,b="",p,m,g,S,k;var B={};var C=[];var T;var w;var I=true;var x=[];var A=[];var R={Sheets:[],WBProps:{date1904:false}},D={};var O=function ge(e){if(e<8)return Zt[e];if(e<64)return A[e-8]||Zt[e];return Zt[e]};var F=function Ee(e,r,t){var a=r.XF.data;if(!a||!a.patternType||!t||!t.cellStyles)return;r.s={};r.s.patternType=a.patternType;var n;if(n=Ih(O(a.icvFore))){r.s.fgColor={rgb:n}}if(n=Ih(O(a.icvBack))){r.s.bgColor={rgb:n}}};var P=function Se(e,r,t){if(G>1)return;if(!I)return;if(t.cellStyles&&r.XF&&r.XF.data)F(e,r,t);v=e;b=Xr(e);if(l.s){if(e.r<l.s.r)l.s.r=e.r;if(e.c<l.s.c)l.s.c=e.c}if(l.e){if(e.r+1>l.e.r)l.e.r=e.r+1;if(e.c+1>l.e.c)l.e.c=e.c+1}if(t.cellFormula&&r.f){for(var a=0;a<C.length;++a){if(C[a][0].s.c>e.c)continue;if(C[a][0].s.r>e.r)continue;if(C[a][0].e.c<e.c)continue;if(C[a][0].e.r<e.r)continue;r.F=Kr(C[a][0]);if(C[a][0].s.c!=e.c)delete r.f;if(C[a][0].s.r!=e.r)delete r.f;if(r.f)r.f=""+sp(C[a][1],l,e,V,y);break}}if(t.sheetRows&&v.r>=t.sheetRows)I=false;else{if(t.dense){if(!s[e.r])s[e.r]=[];s[e.r][e.c]=r}else s[b]=r}};var y={enc:false,sbcch:0,snames:[],sharedf:B,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)y.password=r.password;var _=[];var N=[];var M=[],L=[];var U=0,W=0;var H=false;var V=[];V.SheetNames=y.snames;V.sharedf=y.sharedf;V.arrayf=y.arrayf;V.names=[];V.XTI=[];var X="";var G=0;var z=0;var j=[];var K=[];var Y;y.codepage=1200;n(1200);while(e.l<e.length-1){var $=e.l;var Q=e.read_shift(2);if(Q===0&&X==="EOF")break;var Z=e.l===e.length?0:e.read_shift(2),J;var q=IE[Q];if(q&&q.f){if(r.bookSheets){if(X==="BoundSheet8"&&q.n!=="BoundSheet8")break}X=q.n;if(q.r===2||q.r==12){var ee=e.read_shift(2);Z-=2;if(!y.enc&&ee!==Q)throw new Error("rt mismatch: "+ee+"!="+Q);if(q.r==12){e.l+=10;Z-=10}}var re;if(q.n==="EOF")re=q.f(e,Z,y);else re=gE(q,e,Z,y);var te=q.n;switch(te){case"Date1904":t.opts.Date1904=R.WBProps.date1904=re;break;case"WriteProtect":t.opts.WriteProtect=true;break;case"FilePass":if(!y.enc)e.l=0;y.enc=re;if(y.WTF)console.error(re);if(!r.password)throw new Error("File is password-protected");if(re.valid==null)throw new Error("Encryption scheme unsupported");if(!re.valid)throw new Error("Password is incorrect");break;case"WriteAccess":y.lastuser=re;break;case"FileSharing":break;case"CodePage":if(re===21010)re=1200;else if(re===32769)re=1252;y.codepage=re;n(re);break;case"RRTabId":y.rrtabid=re;break;case"WinProtect":y.winlocked=re;break;case"Template":break;case"RefreshAll":t.opts.RefreshAll=re;break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"CalcCount":t.opts.CalcCount=re;break;case"CalcDelta":t.opts.CalcDelta=re;break;case"CalcIter":t.opts.CalcIter=re;break;case"CalcMode":t.opts.CalcMode=re;break;case"CalcPrecision":t.opts.CalcPrecision=re;break;case"CalcSaveRecalc":t.opts.CalcSaveRecalc=re;break;case"CalcRefMode":y.CalcRefMode=re;break;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=re;break;case"WsBool":break;case"XF":x.push(re);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":V.push([re]);V[V.length-1].XTI=[];break;case"ExternName":V[V.length-1].push(re);break;case"Index":break;case"Lbl":Y={Name:re.Name,Ref:sp(re.rgce,l,null,V,y)};if(re.itab>0)Y.Sheet=re.itab-1;V.names.p
f:Sr},625:{n:"BrtBigName",f:Sr},626:{n:"BrtBeginCellStyleXFs",f:Sr},627:{n:"BrtEndCellStyleXFs",f:Sr},628:{n:"BrtBeginComments",f:Sr},629:{n:"BrtEndComments",f:Sr},630:{n:"BrtBeginCommentAuthors",f:Sr},631:{n:"BrtEndCommentAuthors",f:Sr},632:{n:"BrtCommentAuthor",f:hv},633:{n:"BrtBeginCommentList",f:Sr},634:{n:"BrtEndCommentList",f:Sr},635:{n:"BrtBeginComment",f:ov},636:{n:"BrtEndComment",f:Sr},637:{n:"BrtCommentText",f:it},638:{n:"BrtBeginOleObjects",f:Sr},639:{n:"BrtOleObject",f:Sr},640:{n:"BrtEndOleObjects",f:Sr},641:{n:"BrtBeginSxrules",f:Sr},642:{n:"BrtEndSxRules",f:Sr},643:{n:"BrtBeginActiveXControls",f:Sr},644:{n:"BrtActiveX",f:Sr},645:{n:"BrtEndActiveXControls",f:Sr},646:{n:"BrtBeginPCDSDTCEMembersSortBy",f:Sr},648:{n:"BrtBeginCellIgnoreECs",f:Sr},649:{n:"BrtCellIgnoreEC",f:Sr},650:{n:"BrtEndCellIgnoreECs",f:Sr},651:{n:"BrtCsProp",f:Sr},652:{n:"BrtCsPageSetup",f:Sr},653:{n:"BrtBeginUserCsViews",f:Sr},654:{n:"BrtEndUserCsViews",f:Sr},655:{n:"BrtBeginUserCsView",f:Sr},656:{n:"BrtEndUserCsView",f:Sr},657:{n:"BrtBeginPcdSFCIEntries",f:Sr},658:{n:"BrtEndPCDSFCIEntries",f:Sr},659:{n:"BrtPCDSFCIEntry",f:Sr},660:{n:"BrtBeginListParts",f:Sr},661:{n:"BrtListPart",f:Sr},662:{n:"BrtEndListParts",f:Sr},663:{n:"BrtSheetCalcProp",f:Sr},664:{n:"BrtBeginFnGroup",f:Sr},665:{n:"BrtFnGroup",f:Sr},666:{n:"BrtEndFnGroup",f:Sr},667:{n:"BrtSupAddin",f:Sr},668:{n:"BrtSXTDMPOrder",f:Sr},669:{n:"BrtCsProtection",f:Sr},671:{n:"BrtBeginWsSortMap",f:Sr},672:{n:"BrtEndWsSortMap",f:Sr},673:{n:"BrtBeginRRSort",f:Sr},674:{n:"BrtEndRRSort",f:Sr},675:{n:"BrtRRSortItem",f:Sr},676:{n:"BrtFileSharingIso",f:Sr},677:{n:"BrtBookProtectionIso",f:Sr},678:{n:"BrtSheetProtectionIso",f:Sr},679:{n:"BrtCsProtectionIso",f:Sr},680:{n:"BrtRangeProtectionIso",f:Sr},1024:{n:"BrtRwDescent",f:Sr},1025:{n:"BrtKnownFonts",f:Sr},1026:{n:"BrtBeginSXTupleSet",f:Sr},1027:{n:"BrtEndSXTupleSet",f:Sr},1028:{n:"BrtBeginSXTupleSetHeader",f:Sr},1029:{n:"BrtEndSXTupleSetHeader",f:Sr},1030:{n:"BrtSXTupleSetHeaderItem",f:Sr},1031:{n:"BrtBeginSXTupleSetData",f:Sr},1032:{n:"BrtEndSXTupleSetData",f:Sr},1033:{n:"BrtBeginSXTupleSetRow",f:Sr},1034:{n:"BrtEndSXTupleSetRow",f:Sr},1035:{n:"BrtSXTupleSetRowItem",f:Sr},1036:{n:"BrtNameExt",f:Sr},1037:{n:"BrtPCDH14",f:Sr},1038:{n:"BrtBeginPCDCalcMem14",f:Sr},1039:{n:"BrtEndPCDCalcMem14",f:Sr},1040:{n:"BrtSXTH14",f:Sr},1041:{n:"BrtBeginSparklineGroup",f:Sr},1042:{n:"BrtEndSparklineGroup",f:Sr},1043:{n:"BrtSparkline",f:Sr},1044:{n:"BrtSXDI14",f:Sr},1045:{n:"BrtWsFmtInfoEx14",f:Sr},1046:{n:"BrtBeginConditionalFormatting14",f:Sr},1047:{n:"BrtEndConditionalFormatting14",f:Sr},1048:{n:"BrtBeginCFRule14",f:Sr},1049:{n:"BrtEndCFRule14",f:Sr},1050:{n:"BrtCFVO14",f:Sr},1051:{n:"BrtBeginDatabar14",f:Sr},1052:{n:"BrtBeginIconSet14",f:Sr},1053:{n:"BrtDVal14",f:Sr},1054:{n:"BrtBeginDVals14",f:Sr},1055:{n:"BrtColor14",f:Sr},1056:{n:"BrtBeginSparklines",f:Sr},1057:{n:"BrtEndSparklines",f:Sr},1058:{n:"BrtBeginSparklineGroups",f:Sr},1059:{n:"BrtEndSparklineGroups",f:Sr},1061:{n:"BrtSXVD14",f:Sr},1062:{n:"BrtBeginSxview14",f:Sr},1063:{n:"BrtEndSxview14",f:Sr},1066:{n:"BrtBeginPCD14",f:Sr},1067:{n:"BrtEndPCD14",f:Sr},1068:{n:"BrtBeginExtConn14",f:Sr},1069:{n:"BrtEndExtConn14",f:Sr},1070:{n:"BrtBeginSlicerCacheIDs",f:Sr},1071:{n:"BrtEndSlicerCacheIDs",f:Sr},1072:{n:"BrtBeginSlicerCacheID",f:Sr},1073:{n:"BrtEndSlicerCacheID",f:Sr},1075:{n:"BrtBeginSlicerCache",f:Sr},1076:{n:"BrtEndSlicerCache",f:Sr},1077:{n:"BrtBeginSlicerCacheDef",f:Sr},1078:{n:"BrtEndSlicerCacheDef",f:Sr},1079:{n:"BrtBeginSlicersEx",f:Sr},1080:{n:"BrtEndSlicersEx",f:Sr},1081:{n:"BrtBeginSlicerEx",f:Sr},1082:{n:"BrtEndSlicerEx",f:Sr},1083:{n:"BrtBeginSlicer",f:Sr},1084:{n:"BrtEndSlicer",f:Sr},1085:{n:"BrtSlicerCachePivotTables",f:Sr},1086:{n:"BrtBeginSlicerCacheOlapImpl",f:Sr},1087:{n:"BrtEndSlicerCacheOlapImpl",f:Sr},1088:{n:"BrtBeginSlicerCacheLevelsData",f:Sr},1089:{n:"BrtEndSlicerCacheLevelsData",f:Sr},1090:{n:"BrtBeginSlicerCacheLevelData",f:Sr},1091:{n:"BrtEndSlicerCacheLevelData",f:Sr},1092:{n:"BrtBeginSlicerCacheSiRanges",f:Sr},1093:{n:"BrtEndSlicerCacheSiRanges",f:Sr},1094:{n:"BrtBeginSli
break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"generator":;case"document-statistic":;case"user-defined":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:if(E[2]==="dc:")break;if(E[2]==="draw:")break;if(E[2]==="style:")break;if(E[2]==="form:")break;if(E[2]==="calcext:")break;if(E[2]==="loext:")break;if(E[2]==="uof:")break;if(E[2]==="表:")break;if(E[2]==="字:")break;if(s.WTF)throw new Error(E);}var K={Sheets:p,SheetNames:m};return K}}();function HE(e,r){r=r||{};var t=!!$(e,"objectdata");if(t)var a=da(Z(e,"META-INF/manifest.xml"),r);var n=J(e,"content.xml");if(!n)throw new Error("Missing content.xml in "+(t?"ODS":"UOF")+" file");return WE(t?n:ke(n),r)}function VE(e,r){return WE(e,r)}var XE=function(){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><office:document-styles xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" office:version="1.2"></office:document-styles>';return function r(t,a){return e}}();var GE=function(){var e=" <table:table-cell />\n";var r=" <table:covered-table-cell/>\n";var t=function(t,a,n,s){var i=[];i.push(' <table:table table:name="'+ve(a.SheetNames[n])+'">\n');var f=0,l=0,c=jr(t["!ref"]);var o=t["!merges"]||[],u=0;var h=Array.isArray(t);for(f=0;f<c.s.r;++f)i.push(" <table:table-row></table:table-row>\n");for(;f<=c.e.r;++f){i.push(" <table:table-row>\n");for(l=0;l<c.s.c;++l)i.push(e);for(;l<=c.e.c;++l){var d=false,v={},b="";for(u=0;u!=o.length;++u){if(o[u].s.c>l)continue;if(o[u].s.r>f)continue;if(o[u].e.c<l)continue;if(o[u].e.r<f)continue;if(o[u].s.c!=l||o[u].s.r!=f)d=true;v["table:number-columns-spanned"]=o[u].e.c-o[u].s.c+1;v["table:number-rows-spanned"]=o[u].e.r-o[u].s.r+1;break}if(d){i.push(r);continue}var p=Xr({r:f,c:l}),m=h?(t[f]||[])[l]:t[p];if(m&&m.f){v["table:formula"]=ve(mp(m.f));if(m.F){if(m.F.substr(0,p.length)==p){var g=jr(m.F);v["table:number-matrix-columns-spanned"]=g.e.c-g.s.c+1;v["table:number-matrix-rows-spanned"]=g.e.r-g.s.r+1}}}if(!m){i.push(e);continue}switch(m.t){case"b":b=m.v?"TRUE":"FALSE";v["office:value-type"]="boolean";v["office:boolean-value"]=m.v?"true":"false";break;case"n":b=m.w||String(m.v||0);v["office:value-type"]="float";v["office:value"]=m.v||0;break;case"s":;case"str":b=ve(m.v);v["office:value-type"]="string";break;case"d":b=m.w||W(m.v).toISOString();v["office:value-type"]="date";v["office:date-value"]=W(m.v).toISOString();v["table:style-name"]="ce1";break;default:i.push(e);continue;}i.push(" "+Pe("table:table-cell",Pe("text:p",b,{}),v)+"\n")}i.push(" </table:table-row>\n")}i.push(" </table:table>\n");return i