sheetjs/dist/xlsx.min.js

13 lines
342 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.2";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 MS(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 LS(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 US(){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 WS(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"
HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:T,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};e.find=S;e.read=E;e.parse=r;e.utils={ReadShift:pr,CheckField:kr,prep_blob:Br,bconcat:p,consts:w};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"];var s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3);return s}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=Number(e);if(!isNaN(r))return r;var t=1;var a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){t*=100;return""});if(!isNaN(r=Number(a)))return r/t;a=a.replace(/[(](.*)[)]/,function(e,r){t=-t;return r});if(!isNaN(r=Number(a)))return r/t;return r}function j(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(/[^-0-9:,\/\\]/))return r;return t}var K="abacaba".split(/(:?b)/i).length==5;function Y(e,r,t){if(K||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var s=1;s<a.length;++s){n.push(t);n.push(a[s])}return n}function $(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 Q(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 Z(e){return e&&e.name.slice(-4)===".bin"?Q(e):$(e)}function J
"application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var ta=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){ra[e[r][t]]=r})});return e}();var aa=F(ra);We.CT="http://schemas.openxmlformats.org/package/2006/content-types";function na(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function sa(e,r){var t=na();if(!e||!e.match)return t;var a={};(e.match(fe)||[]).forEach(function(e){var r=oe(e);switch(r[0].replace(le,"<")){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[ra[r.ContentType]]!==undefined)t[ra[r.ContentType]].push(r.PartName);break;}});if(t.xmlns!==We.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 ia=Ne("Types",null,{xmlns:We.CT,"xmlns:xsd":We.xsd,"xmlns:xsi":We.xsi});var fa=[["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",aa.rels[0]]].map(function(e){return Ne("Default",null,{Extension:e[0],ContentType:e[1]})});function la(e,r){var t=[],a;t[t.length]=Ue;t[t.length]=ia;t=t.concat(fa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=Ne("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:ta[n][r.bookType||"xlsx"]})}};var s=function(a){(e[a]||[]).forEach(function(e){t[t.length]=Ne(
throw new Error("cchText: "+f+" != "+n.length)}e.l=a+r;return{t:n}}catch(v){e.l=a+r;return{t:n}}}var Ns=function(e,r){var t=Pn(e,8);e.l+=16;var a=Cn(e,r-24);return[t,a]};var Ms=function(e,r){var t=e.l+r;e.read_shift(2);var a=Pn(e,8);var n=e.read_shift((r-10)/2,"dbcs-cont");n=n.replace(m,"");return[a,n]};function Ls(e,r){var t=[],a;a=e.read_shift(2);t[0]=Zt[a]||a;a=e.read_shift(2);t[1]=Zt[a]||a;return t}function Us(e,r){var t=e.read_shift(2);var a=[];while(t-- >0)a.push(wn(e,8));return a}function Ws(e,r){var t=e.read_shift(2);var a=[];while(t-- >0)a.push(wn(e,8));return a}function Hs(e,r){e.l+=2;var t={cxfs:0,crc:0};t.cxfs=e.read_shift(2);t.crc=e.read_shift(4);return t}function Vs(e,r,t){if(!t.cellStyles)return Cr(e,r);var a=t&&t.biff>=12?4:2;var n=e.read_shift(a);var s=e.read_shift(a);var i=e.read_shift(a);var f=e.read_shift(a);var l=e.read_shift(2);if(a==2)e.l+=2;return{s:n,e:s,w:i,ixfe:f,flags:l}}function Xs(e,r,t){var a={};e.l+=16;a.header=xt(e,8);a.footer=xt(e,8);e.l+=2;return a}function Gs(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 zs=Cr;var js=Cr;var Ks=Cr;var Ys=ln;var $s=In;var Qs=xt;var Zs=cn;var Js=cn;var qs=xt;var ei=ln;var ri=cn;var ti=ln;var ai=sn;var ni=ln;var si=cn;var ii=ln;var fi=ln;var li=cn;var ci=sn;var oi=sn;var ui=sn;var hi=sn;var di=sn;var vi=cn;var bi=ms;var pi=cn;var mi=ln;var gi=ms;var Ei=Rn;var Si=sn;var ki=xt;var Bi=sn;var Ci=ln;var Ti=cn;var wi=ln;var Ii=ln;var xi=cn;var Ai=ln;var Ri=cn;var Di=ln;var Oi=ln;var Fi=xt;var Pi=on;var yi=ln;var _i=on;var Ni=pn;var Mi=ln;var Li=xt;var Ui=ln;var Wi=ln;var Hi=ln;var Vi=Cr;var Xi=Cr;var Gi=Cr;var zi=Cr;var ji=Cr;var Ki=Cr;var Yi=Cr;var $i=Cr;var Qi=Cr;var Zi=Cr;var Ji=Cr;var qi=Cr;var ef=Cr;var rf=Cr;var tf=Cr;var af=Cr;var nf=Cr;var sf=Cr;var ff=Cr;var lf=Cr;var cf=Cr;var of=Cr;var uf=Cr;var hf=Cr;var df=Cr;var vf=Cr;var bf=Cr;var pf=Cr;var mf=Cr;var gf=Cr;var Ef=Cr;var Sf=Cr;var kf=Cr;var Bf=Cr;var Cf=Cr;var Tf=Cr;var wf=Cr;var If=Cr;var xf=Cr;var Af=Cr;var Rf=Cr;var Df=Cr;var Of=Cr;var Ff=Cr;var Pf=Cr;var yf=Cr;var _f=Cr;var Nf=Cr;var Mf=Cr;var Lf=Cr;var Uf=Cr;var Wf=Cr;var Hf=Cr;var Vf=Cr;var Xf=Cr;var Gf=Cr;var zf=Cr;var jf=Cr;var Kf=Cr;var Yf=Cr;var $f=Cr;var Qf=Cr;var Zf=Cr;var Jf=Cr;var qf=Cr;var el=Cr;var rl=Cr;var tl=Cr;var al=Cr;var nl=Cr;var sl=Cr;var il=Cr;var fl=Cr;var ll=Cr;var cl=Cr;var ol=Cr;var ul=Cr;var hl=Cr;var dl=Cr;var vl=Cr;var bl=Cr;var pl=Cr;var ml=Cr;var gl=Cr;var El=Cr;var Sl=Cr;var kl=Cr;var Bl=Cr;var Cl=Cr;var Tl=Cr;var wl=Cr;var Il=Cr;var xl=Cr;var Al=Cr;var Rl=Cr;var Dl=Cr;var Ol=Cr;var Fl=Cr;var Pl=Cr;var yl=Cr;var _l=Cr;var Nl=Cr;var Ml=Cr;var Ll=Cr;var Ul=Cr;var Wl=Cr;var Hl=Cr;var Vl=Cr;var Xl=Cr;var Gl=Cr;var zl=pn;var jl=Cr;var Kl=Cr;var Yl=Cr;var $l=Cr;var Ql=Cr;var Zl=Cr;var Jl=Cr;var ql=Cr;var ec=Cr;var rc=Cr;var tc=Cr;var ac=Cr;var nc=Cr;var sc=Cr;var ic=Cr;var fc=Cr;var lc=Cr;var cc=Cr;var oc=Cr;var uc=Cr;var hc=Cr;var dc=Cr;var vc=Cr;var bc=Cr;var pc=Cr;var mc=Cr;var gc=Cr;var Ec=Cr;var Sc=Cr;var kc=Cr;var Bc=Cr;var Cc=Cr;var Tc=Cr;var wc=Cr;var Ic=Cr;var xc=Cr;var Ac=Cr;var Rc=Cr;var Dc=Cr;var Oc=Cr;var Fc=Cr;var Pc=Cr;var yc=Cr;var _c=Cr;var Nc=Cr;var Mc=Cr;var Lc=Cr;var Uc=Cr;var Wc=Cr;var Hc=Cr;var Vc=Cr;var Xc=Cr;var Gc=Cr;var zc=Cr;var jc=Cr;var Kc=Cr;var Yc=Cr;var $c=Cr;var Qc=Cr;var Zc=Cr;var Jc=Cr;var qc=Cr;var eo=Cr;var ro=Cr;var to=Cr;var ao=Cr;var no=Cr;var so=Cr;var io=Cr;var fo=Cr;var lo=Cr;var co=Cr;var oo=Cr;var uo=Cr;var ho=Cr;var vo=Cr;var bo=Cr;var po=Cr;var mo=Cr;var go=Cr;var Eo=Cr;var So=Cr;var ko=Cr;var Bo=Cr;var Co=Cr;var To=Cr;var wo=Cr;var Io=Cr;var xo=Cr;var Ao=Cr;var Ro=Cr;var Do=Cr;var Oo=Cr;var Fo=Cr;var Po=Cr;var yo=Cr;var _o=Cr;var No=Cr;var Mo=Cr;var Lo=Cr;var Uo=Cr;var Wo=Cr;var Ho=Cr;var Vo=Cr;var Xo=Cr;var Go=Cr;var zo=Cr;var jo=Cr;var Ko=Cr;var Yo=Cr;var $o=Cr;var Qo=Cr;var Zo=Cr;var Jo=Cr;var qo=Cr;var eu=Cr;var ru=Cr;var tu=Cr;var au=Cr;var nu=Cr;var su=Cr;var iu=Cr;var fu=Cr;var lu=Cr;var cu=Cr;var ou=Cr;var uu=Cr;var hu=Cr;var du=Cr;var vu=Cr;var bu=Cr;var pu=Cr;var mu=Cr;var gu=Cr;var Eu=Cr;v
return t.toString(16).toUpperCase().substr(1)}function Dh(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),s=Math.min(r,t,a),i=n-s;if(i===0)return[0,0,r];var f=0,l=0,c=n+s;l=i/(c>1?2-c:c);switch(n){case r:f=((t-a)/i+6)%6;break;case t:f=(a-r)/i+2;break;case a:f=(r-t)/i+4;break;}return[f/6,l,c/2]}function Oh(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),s=a-n/2;var i=[s,s,s],f=6*r;var l;if(t!==0)switch(f|0){case 0:;case 6:l=n*f;i[0]+=n;i[1]+=l;break;case 1:l=n*(2-f);i[0]+=l;i[1]+=n;break;case 2:l=n*(f-2);i[1]+=n;i[2]+=l;break;case 3:l=n*(4-f);i[1]+=l;i[2]+=n;break;case 4:l=n*(f-4);i[2]+=n;i[0]+=l;break;case 5:l=n*(6-f);i[2]+=l;i[0]+=n;break;}for(var c=0;c!=3;++c)i[c]=Math.round(i[c]*255);return i}function Fh(e,r){if(r===0)return e;var t=Dh(Ah(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return Rh(Oh(t))}var Ph=6,yh=15,_h=1,Nh=Ph;function Mh(e){return Math.floor((e+Math.round(128/Nh)/256)*Nh)}function Lh(e){return Math.floor((e-5)/Nh*100+.5)/100}function Uh(e){return Math.round((e*Nh+5)/Nh*256)/256}function Wh(e){return((e-5)/Nh*100+.5)/100}function Hh(e){return(e*Nh+5)/Nh*256/256}function Vh(e){return Uh(Lh(Mh(e)))}function Xh(e){var r=Math.abs(e-Vh(e)),t=Nh;if(r>.005)for(Nh=_h;Nh<yh;++Nh)if(Math.abs(e-Vh(e))<=r){r=Math.abs(e-Vh(e));t=Nh}Nh=t}function Gh(e){var r=Infinity,t=0,a=_h;for(Nh=_h;Nh<yh;++Nh){t=Hh(Wh(e))*256;t=t%1;if(t>.5)t--;if(Math.abs(t)<r){r=Math.abs(t);a=Nh}}Nh=a}function zh(e){if(e.width){e.wpx=Mh(e.width);e.wch=Lh(e.wpx);e.MDW=Nh}else if(e.wpx){e.wch=Lh(e.wpx);e.width=Uh(e.wch);e.MDW=Nh}else if(typeof e.wch=="number"){e.width=Uh(e.wch);e.wpx=Mh(e.width);e.MDW=Nh}if(e.customWidth)delete e.customWidth}var jh=96,Kh=jh;function Yh(e){return e*96/Kh}function $h(e){return e*Kh/96}var Qh={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 Zh(e,r,t,a){r.Borders=[];var n={},s={};e[0].match(fe).forEach(function(e){var t=oe(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 Jh(e,r,t,a){r.Fills=[];var n={};e[0].match(fe).forEach(function(e){var t=oe(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={};i
var s=e.match(/<(?:\w+:)?comment[^>]*>/);if(!s)return;var i=oe(s[0]);var f={author:i.authorId&&t[i.authorId]?t[i.authorId]:"sheetjsghost",ref:i.ref,guid:i.guid};var l=zr(i.ref);if(r.sheetRows&&r.sheetRows<=l.r)return;var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var o=!!c&&!!c[1]&&ju(c[1])||{r:"",t:"",h:""};f.r=o.r;if(o.r=="<t></t>")o.t=o.h="";f.t=o.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)f.h=o.h;a.push(f)});return a}var uv=Ne("comments",null,{xmlns:We.main[0]});function hv(e,r){var t=[Ue,uv];var a=[];t.push("<authors>");e.map(function(e){return e[1]}).forEach(function(e){e.map(function(e){return me(e.a)}).forEach(function(e){if(a.indexOf(e)>-1)return;a.push(e);t.push("<author>"+e+"</author>")})});t.push("</authors>");t.push("<commentList>");e.forEach(function(e){e[1].forEach(function(r){t.push('<comment ref="'+e[0]+'" authorId="'+a.indexOf(me(r.a))+'"><text>');t.push(ye("t",r.t==null?"":r.t));t.push("</text></comment>")})});t.push("</commentList>");if(t.length>2){t[t.length]="</comments>";t[1]=t[1].replace("/>",">")}return t.join("")}function dv(e,r){var t={};t.iauthor=e.read_shift(4);var a=wt(e,16);t.rfx=a.s;t.ref=jr(a.s);e.l+=16;return t}function vv(e,r){if(r==null)r=Ir(36);r.write_shift(4,e[1].iauthor);It(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 bv=at;function pv(e){return nt(e.substr(0,54))}function mv(e,r){var t=[];var a=[];var n={};var s=false;xr(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 gv(e,r){var t=Ar();var a=[];Rr(t,"BrtBeginComments");{Rr(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));Rr(t,"BrtCommentAuthor",pv(e.a))})});Rr(t,"BrtEndCommentAuthors")}{Rr(t,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(r){r.iauthor=a.indexOf(r.a);var n={s:zr(e[0]),e:zr(e[0])};Rr(t,"BrtBeginComment",vv([n,r]));if(r.t&&r.t.length>0)Rr(t,"BrtCommentText",ot(r));Rr(t,"BrtEndComment");delete r.iauthor})});Rr(t,"BrtEndCommentList")}Rr(t,"BrtEndComments");return t.end()}ca.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ca.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function Ev(e,r,t,a,n,s){return{"!type":"dialog"}}function Sv(e,r,t,a,n,s){return{"!type":"dialog"}}function kv(e,r,t,a,n,s){return{"!type":"macro"}}function Bv(e,r,t,a,n,s){return{"!type":"macro"}}var Cv=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?"":"$")+Hr(l)+(o?"":"$")+Mr(f)}return function a(n,s){r=s;return n.replace(e,t)}}();var Tv=/(^|[^._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 wv=function(){return function e(r,t){return r.replace(Tv,function(e,r,a,n,s,i,f,l){var c=Wr(n)-t.c;var o=Nr(i)-t.r;return r+"R"+(o==0?"":"["+o+"]")+"C"+(c==0?"":"["+c+"]")})}}();function Iv(e,r){return e.replace(Tv,function(e,t,a,n,s,i,f,l){return t+(a=="$"?a+n:Hr(Wr(n)+r.c))+(s=="$"?s+i:Mr(Nr(i)+r.r))})}function xv(e,r,t){var a=$r(r),n=a.s,s=zr(t);var i={r:s.r-n.r,c:s.c-n.c};return Iv(e,i)}function Av(e){return function(r,t){r.l+=e;return}}function Rv(e){e.l+=1;return}function Dv(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Ov(e,r,t){var a=2;if(t){if(t.biff>=2
213:2,214:1,215:1,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var gp={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_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":"V
break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function lg(e){fg(e.WBProps,rg);fg(e.CalcPr,ng);ig(e.WBView,tg);ig(e.Sheets,ag);Cp.date1904=Ce(e.WBProps.date1904,"date1904")}function cg(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Ce(e.Workbook.WBProps.date1904)?"true":"false"}var og="][*?/\\".split("");function ug(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;og.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function hg(e){e.forEach(function(r,t){ug(r);for(var a=0;a<t;++a)if(r==e[a])throw new Error("Duplicate Sheet Name: "+r)})}function dg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");hg(e.SheetNames)}var vg=/<\w+:workbook/;function bg(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""};var a=false,n="xmlns";var s={},i=0;e.replace(fe,function f(l,c){var o=oe(l);switch(ue(o[0])){case"<?xml":break;case"<workbook":if(l.match(vg))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/>":rg.forEach(function(e){if(o[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Ce(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=ve(Te(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(We.main.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);lg(t);return t}var pg=Ne("workbook",null,{xmlns:We.main[0],"xmlns:r":We.r});function mg(e,r){var t=[Ue];t[t.length]=pg;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.
n=hr(t,a);a+=4;switch(n){case 0:break;case 4294967295:;case 4294967294:a+=4;break;default:if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));a+=n;}n=Je(t,a);a+=n.length===0?0:5+n.length;r.Reserved1=n;if((n=hr(t,a))!==1907550708)return r;throw new Error("Unsupported Unicode Extension")}function kE(e,r,t,a){var n=t;var s=[];var i=r.slice(r.l,r.l+n);if(a&&a.enc&&a.enc.insitu_decrypt)switch(e.n){case"BOF":;case"FilePass":;case"FileLock":;case"InterfaceHdr":;case"RRDInfo":;case"RRDHead":;case"UsrExcl":break;default:if(i.length===0)break;a.enc.insitu_decrypt(i);}s.push(i);r.l+=n;var f=RE[or(r,r.l)];var l=0;while(f!=null&&f.n.slice(0,8)==="Continue"){n=or(r,r.l+2);l=r.l+4;if(f.n=="ContinueFrt")l+=4;else if(f.n.slice(0,11)=="ContinueFrt")l+=12;s.push(r.slice(l,r.l+4+n));r.l+=4+n;f=RE[or(r,r.l)]}var c=p(s);Br(c,0);var o=0;c.lens=[];for(var u=0;u<s.length;++u){c.lens.push(o);o+=s[u].length}return e.f(c,c.length,a)}function BE(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||Rt[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 CE(e,r,t){return{v:e,ixfe:r,t:t}}function TE(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 ea[e];if(e<64)return A[e-8]||ea[e];return ea[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=Rh(O(a.icvFore))){r.s.fgColor={rgb:n}}if(n=Rh(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=jr(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=Qr(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=""+lp(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=RE[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=kE(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(
f:Cr},591:{n:"BrtEndCellSmartTag",f:Cr},592:{n:"BrtBeginCellSmartTags",f:Cr},593:{n:"BrtEndCellSmartTags",f:Cr},594:{n:"BrtBeginSmartTags",f:Cr},595:{n:"BrtEndSmartTags",f:Cr},596:{n:"BrtSmartTagType",f:Cr},597:{n:"BrtBeginSmartTagTypes",f:Cr},598:{n:"BrtEndSmartTagTypes",f:Cr},599:{n:"BrtBeginSXFilters",f:Cr},600:{n:"BrtEndSXFilters",f:Cr},601:{n:"BrtBeginSXFILTER",f:Cr},602:{n:"BrtEndSXFilter",f:Cr},603:{n:"BrtBeginFills",f:Cr},604:{n:"BrtEndFills",f:Cr},605:{n:"BrtBeginCellWatches",f:Cr},606:{n:"BrtEndCellWatches",f:Cr},607:{n:"BrtCellWatch",f:Cr},608:{n:"BrtBeginCRErrs",f:Cr},609:{n:"BrtEndCRErrs",f:Cr},610:{n:"BrtCrashRecErr",f:Cr},611:{n:"BrtBeginFonts",f:Cr},612:{n:"BrtEndFonts",f:Cr},613:{n:"BrtBeginBorders",f:Cr},614:{n:"BrtEndBorders",f:Cr},615:{n:"BrtBeginFmts",f:Cr},616:{n:"BrtEndFmts",f:Cr},617:{n:"BrtBeginCellXFs",f:Cr},618:{n:"BrtEndCellXFs",f:Cr},619:{n:"BrtBeginStyles",f:Cr},620:{n:"BrtEndStyles",f:Cr},625:{n:"BrtBigName",f:Cr},626:{n:"BrtBeginCellStyleXFs",f:Cr},627:{n:"BrtEndCellStyleXFs",f:Cr},628:{n:"BrtBeginComments",f:Cr},629:{n:"BrtEndComments",f:Cr},630:{n:"BrtBeginCommentAuthors",f:Cr},631:{n:"BrtEndCommentAuthors",f:Cr},632:{n:"BrtCommentAuthor",f:bv},633:{n:"BrtBeginCommentList",f:Cr},634:{n:"BrtEndCommentList",f:Cr},635:{n:"BrtBeginComment",f:dv},636:{n:"BrtEndComment",f:Cr},637:{n:"BrtCommentText",f:ct},638:{n:"BrtBeginOleObjects",f:Cr},639:{n:"BrtOleObject",f:Cr},640:{n:"BrtEndOleObjects",f:Cr},641:{n:"BrtBeginSxrules",f:Cr},642:{n:"BrtEndSxRules",f:Cr},643:{n:"BrtBeginActiveXControls",f:Cr},644:{n:"BrtActiveX",f:Cr},645:{n:"BrtEndActiveXControls",f:Cr},646:{n:"BrtBeginPCDSDTCEMembersSortBy",f:Cr},648:{n:"BrtBeginCellIgnoreECs",f:Cr},649:{n:"BrtCellIgnoreEC",f:Cr},650:{n:"BrtEndCellIgnoreECs",f:Cr},651:{n:"BrtCsProp",f:Cr},652:{n:"BrtCsPageSetup",f:Cr},653:{n:"BrtBeginUserCsViews",f:Cr},654:{n:"BrtEndUserCsViews",f:Cr},655:{n:"BrtBeginUserCsView",f:Cr},656:{n:"BrtEndUserCsView",f:Cr},657:{n:"BrtBeginPcdSFCIEntries",f:Cr},658:{n:"BrtEndPCDSFCIEntries",f:Cr},659:{n:"BrtPCDSFCIEntry",f:Cr},660:{n:"BrtBeginListParts",f:Cr},661:{n:"BrtListPart",f:Cr},662:{n:"BrtEndListParts",f:Cr},663:{n:"BrtSheetCalcProp",f:Cr},664:{n:"BrtBeginFnGroup",f:Cr},665:{n:"BrtFnGroup",f:Cr},666:{n:"BrtEndFnGroup",f:Cr},667:{n:"BrtSupAddin",f:Cr},668:{n:"BrtSXTDMPOrder",f:Cr},669:{n:"BrtCsProtection",f:Cr},671:{n:"BrtBeginWsSortMap",f:Cr},672:{n:"BrtEndWsSortMap",f:Cr},673:{n:"BrtBeginRRSort",f:Cr},674:{n:"BrtEndRRSort",f:Cr},675:{n:"BrtRRSortItem",f:Cr},676:{n:"BrtFileSharingIso",f:Cr},677:{n:"BrtBookProtectionIso",f:Cr},678:{n:"BrtSheetProtectionIso",f:Cr},679:{n:"BrtCsProtectionIso",f:Cr},680:{n:"BrtRangeProtectionIso",f:Cr},1024:{n:"BrtRwDescent",f:Cr},1025:{n:"BrtKnownFonts",f:Cr},1026:{n:"BrtBeginSXTupleSet",f:Cr},1027:{n:"BrtEndSXTupleSet",f:Cr},1028:{n:"BrtBeginSXTupleSetHeader",f:Cr},1029:{n:"BrtEndSXTupleSetHeader",f:Cr},1030:{n:"BrtSXTupleSetHeaderItem",f:Cr},1031:{n:"BrtBeginSXTupleSetData",f:Cr},1032:{n:"BrtEndSXTupleSetData",f:Cr},1033:{n:"BrtBeginSXTupleSetRow",f:Cr},1034:{n:"BrtEndSXTupleSetRow",f:Cr},1035:{n:"BrtSXTupleSetRowItem",f:Cr},1036:{n:"BrtNameExt",f:Cr},1037:{n:"BrtPCDH14",f:Cr},1038:{n:"BrtBeginPCDCalcMem14",f:Cr},1039:{n:"BrtEndPCDCalcMem14",f:Cr},1040:{n:"BrtSXTH14",f:Cr},1041:{n:"BrtBeginSparklineGroup",f:Cr},1042:{n:"BrtEndSparklineGroup",f:Cr},1043:{n:"BrtSparkline",f:Cr},1044:{n:"BrtSXDI14",f:Cr},1045:{n:"BrtWsFmtInfoEx14",f:Cr},1046:{n:"BrtBeginConditionalFormatting14",f:Cr},1047:{n:"BrtEndConditionalFormatting14",f:Cr},1048:{n:"BrtBeginCFRule14",f:Cr},1049:{n:"BrtEndCFRule14",f:Cr},1050:{n:"BrtCFVO14",f:Cr},1051:{n:"BrtBeginDatabar14",f:Cr},1052:{n:"BrtBeginIconSet14",f:Cr},1053:{n:"BrtDVal14",f:Cr},1054:{n:"BrtBeginDVals14",f:Cr},1055:{n:"BrtColor14",f:Cr},1056:{n:"BrtBeginSparklines",f:Cr},1057:{n:"BrtEndSparklines",f:Cr},1058:{n:"BrtBeginSparklineGroups",f:Cr},1059:{n:"BrtEndSparklineGroups",f:Cr},1061:{n:"BrtSXVD14",f:Cr},1062:{n:"BrtBeginSxview14",f:Cr},1063:{n:"BrtEndSxview14",f:Cr},1066:{n:"BrtBeginPCD14",f:Cr},1067:{n:"BrtEndPCD14",f:Cr},1068:{n:"BrtBeginExtConn14",f:Cr},106
break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(E[1]==="/")B=(B.length>0?B+"\n":"")+e(i.slice(C,E.index),T);else{T=oe(E[0],false);C=E.index+E[0].length}break;case"database-range":if(E[1]==="/")break;try{var z=kp(oe(E[0])["target-range-address"]);p[z[0]]["!autofilter"]={ref:z[1]}}catch(j){}break;case"s":break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":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 GE(e,r){r=r||{};var t=!!J(e,"objectdata");if(t)var a=pa(ee(e,"META-INF/manifest.xml"),r);var n=re(e,"content.xml");if(!n)throw new Error("Missing content.xml in "+(t?"ODS":"UOF")+" file");return XE(t?n:Te(n),r)}function zE(e,r){return XE(e,r)}var jE=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 KE=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="'+me(a.SheetNames[n])+'">\n');var f=0,l=0,c=$r(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:ta