You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
326 KiB

1 month ago
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var On=1252,Fi=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Yt={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},jt=function(e){Fi.indexOf(e)!=-1&&(On=Yt[0]=e)};function Si(){jt(1252)}var kr=function(e){jt(e)};function Rn(){kr(1200),Si()}function F0(e){for(var a=[],r=0,n=e.length;r<n;++r)a[r]=e.charCodeAt(r);return a}function Ci(e){for(var a=[],r=0;r<e.length>>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return a.join("")}function In(e){for(var a=[],r=0;r<e.length>>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return a.join("")}var ya=function(e){var a=e.charCodeAt(0),r=e.charCodeAt(1);return a==255&&r==254?Ci(e.slice(2)):a==254&&r==255?In(e.slice(2)):a==65279?e.slice(1):e},at=function(a){return String.fromCharCode(a)},S0=function(a){return String.fromCharCode(a)},Gr,$r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C0(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0,l=0;l<e.length;)r=e.charCodeAt(l++),s=r>>2,n=e.charCodeAt(l++),i=(r&3)<<4|n>>4,t=e.charCodeAt(l++),c=(n&15)<<2|t>>6,f=t&63,isNaN(n)?c=f=64:isNaN(t)&&(f=64),a+=$r.charAt(s)+$r.charAt(i)+$r.charAt(c)+$r.charAt(f);return a}function hr(e){var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)s=$r.indexOf(e.charAt(l++)),i=$r.indexOf(e.charAt(l++)),r=s<<2|i>>4,a+=String.fromCharCode(r),c=$r.indexOf(e.charAt(l++)),n=(i&15)<<4|c>>2,c!==64&&(a+=String.fromCharCode(n)),f=$r.indexOf(e.charAt(l++)),t=(c&3)<<6|f,f!==64&&(a+=String.fromCharCode(t));return a}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ia=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(a,r){return r?new Buffer(a,r):new Buffer(a)}:Buffer.from.bind(Buffer)}return function(){}}();function Yr(e){return ge?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function y0(e){return ge?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Tr=function(a){return ge?ia(a,"binary"):a.split("").map(function(r){return r.charCodeAt(0)&255})};function ca(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var a=[],r=0;r<e.length;++r)a[r]=String.fromCharCode(e[r]);return a.join("")}function Jt(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return Jt(new Uint8Array(e));for(var a=new Array(e.length),r=0;r<e.length;++r)a[r]=e[r];return a}var Xr=ge?function(e){return Buffer.concat(e.map(function(a){return Buffer.isBuffer(a)?a:ia(a)}))}:function(e){if(typeof Uint8Array<"u"){var a=0,r=0;for(a=0;a<e.length;++a)r+=e[a].length;var n=new Uint8Array(r),t=0;for(a=0,r=0;a<e.length;r+=t,++a)if(t=e[a].length,e[a]instanceof Uint8Array)n.set(e[a],r);else{if(typeof e[a]=="string")throw"wtf";n.set(new Uint8Array(e[a]),r)}return n}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function yi(e){for(var a=[],r=0,n=e.length+250,t=Yr(e.length+255),s=0;s<e.length;++s){var i=e.charCodeAt(s);if(i<128)t[r++]=i;else if(i<2048)t[r++]=192|i>>6&31,t[r++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var c=e.charCodeAt(++s)&1023;t[r++]=240|i>>8&7,t[r++]=128|i>>2&63,t[r++]=128|c>>6&15|(i&3)<<4,t[r++]=128|c&63}else t[r++]=224|i>>12&15,t[r++]=128|i>>6&63,t[r++]=128|i&63;r>n&&(a.push(t.slice(0,r)),r=0,t=Yr(65535),n=65530)}return a.push(t.slice(0,r)),Xr(a)}var sr=/\u0000/g,Da=/[\u0001-\u0006]/g;function va(e){for(var a="",r=e.length-1;r>=0;)a+=e.charAt(r--);return a}function wr(e,a){var r=""+e;return r.length>=a?r:De("0",a-r.length)+r}function Zt(e,a){var r=""+e;return r.length>=a?r:De(" ",a-r.length)+r}function ht(e,a){var r=""+e;return r.length>=a?r:r+De(" ",a-r.length)
`)+`\r
`}function pi(p){var T=p.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(B){var H=B.charCodeAt(0).toString(16).toUpperCase();return"="+(H.length==1?"0"+H:H)});T=T.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),T.charAt(0)==`
`&&(T="=0D"+T.slice(1)),T=T.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var m=[],E=T.split(`\r
`),k=0;k<E.length;++k){var w=E[k];if(w.length==0){m.push("");continue}for(var M=0;M<w.length;){var X=76,L=w.slice(M,M+X);L.charAt(X-1)=="="?X--:L.charAt(X-2)=="="?X-=2:L.charAt(X-3)=="="&&(X-=3),L=w.slice(M,M+X),M+=X,M<w.length&&(L+="="),m.push(L)}}return m.join(`\r
`)}function gi(p){for(var T=[],m=0;m<p.length;++m){for(var E=p[m];m<=p.length&&E.charAt(E.length-1)=="=";)E=E.slice(0,E.length-1)+p[++m];T.push(E)}for(var k=0;k<T.length;++k)T[k]=T[k].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return Tr(T.join(`\r
`))}function mi(p,T,m){for(var E="",k="",w="",M,X=0;X<10;++X){var L=T[X];if(!L||L.match(/^\s*$/))break;var B=L.match(/^(.*?):\s*([^\s].*)$/);if(B)switch(B[1].toLowerCase()){case"content-location":E=B[2].trim();break;case"content-type":w=B[2].trim();break;case"content-transfer-encoding":k=B[2].trim();break}}switch(++X,k.toLowerCase()){case"base64":M=Tr(hr(T.slice(X).join("")));break;case"quoted-printable":M=gi(T.slice(X));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+k)}var H=St(p,E.slice(m.length),M,{unsafe:!0});w&&(H.ctype=w)}function _i(p,T){if(W(p.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var m=T&&T.root||"",E=(ge&&Buffer.isBuffer(p)?p.toString("binary"):W(p)).split(`\r
`),k=0,w="";for(k=0;k<E.length;++k)if(w=E[k],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),m||(m=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,m.length)!=m))for(;m.length>0&&(m=m.slice(0,m.length-1),m=m.slice(0,m.lastIndexOf("/")+1),w.slice(0,m.length)!=m););var M=(E[1]||"").match(/boundary="(.*?)"/);if(!M)throw new Error("MAD cannot find boundary");var X="--"+(M[1]||""),L=[],B=[],H={FileIndex:L,FullPaths:B};A(H);var Y,Q=0;for(k=0;k<E.length;++k){var se=E[k];se!==X&&se!==X+"--"||(Q++&&mi(H,E.slice(Y,k),m),Y=k)}return H}function Ei(p,T){var m=T||{},E=m.boundary||"SheetJS";E="------="+E;for(var k=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+E.slice(2)+'"',"","",""],w=p.FullPaths[0],M=w,X=p.FileIndex[0],L=1;L<p.FullPaths.length;++L)if(M=p.FullPaths[L].slice(w.length),X=p.FileIndex[L],!(!X.size||!X.content||M=="Sh33tJ5")){M=M.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(xe){return"_x"+xe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(xe){return"_u"+xe.charCodeAt(0).toString(16)+"_"});for(var B=X.content,H=ge&&Buffer.isBuffer(B)?B.toString("binary"):W(B),Y=0,Q=Math.min(1024,H.length),se=0,Z=0;Z<=Q;++Z)(se=H.charCodeAt(Z))>=32&&se<128&&++Y;var te=Y>=Q*4/5;k.push(E),k.push("Content-Location: "+(m.root||"file:///C:/SheetJS/")+M),k.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),k.push("Content-Type: "+di(X,M)),k.push(""),k.push(te?pi(H):vi(H))}return k.push(E+`--\r
`),k.join(`\r
`)}function Ti(p){var T={};return A(T,p),T}function St(p,T,m,E){var k=E&&E.unsafe;k||A(p);var w=!k&&me.find(p,T);if(!w){var M=p.FullPaths[0];T.slice(0,M.length)==M?M=T:(M.slice(-1)!="/"&&(M+="/"),M=(M+T).replace("//","/")),w={name:t(T),type:2},p.FileIndex.push(w),p.FullPaths.push(M),k||me.utils.cfb_gc(p)}return w.content=m,w.size=m?m.length:0,E&&(E.CLSID&&(w.clsid=E.CLSID),E.mt&&(w.mt=E.mt),E.ct&&(w.ct=E.ct)),w}function ki(p,T){A(p);var m=me.find(p,T);if(m){for(var E=0;E<p.FileIndex.length;++E)if(p.FileIndex[E]==m)return p.FileIndex.splice(E,1),p.FullPaths.splice(E,1),!0}return!1}function wi(p,T,m){A(p);var E=me.find(p,T);if(E){for(var k=0;k<p.FileIndex.length;++k)if(p.FileIndex[k]==E)return p.FileIndex[k].name=t(m),p.FullPaths[k]=m,!0}return!1}function Ai(p){D(p,!0)}return a.find=G,a.read=I,a.parse=o,a.write=le,a.writeFile=Fe,a.utils={cfb_new:Ti,cfb_add:St,cfb_del:ki,cfb_mov:wi,cfb_gc:Ai,ReadShift:Ia,CheckField:us,prep_blob:Xe,bconcat:Xr,use_zlib:F,_deflateRaw:ve,_inflateRaw:k0,consts:ie},a}();function rc(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(e);a.open("r"),a.encoding="binary";var r=a.read();return a.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Dr(e){for(var a=Object.keys(e),r=[],n=0;n<a.length;++n)Object.prototype.hasOwnProperty.call(e,a[n])&&r.push(a[n]);return r}function Qt(e){for(var a=[],r=Dr(e),n=0;n!==r.length;++n)a[e[r[n]]]=r[n];return a}var dt=new Date(1899,11,30,0,0,0);function ir(e,a){var r=e.getTime(),n=dt.getTime()+(e.getTimezoneOffset()-dt.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var $n=new Date,ac=dt.getTime()+($n.getTimezoneOffset()-dt.getTimezoneOffset())*6e4,M0=$n.getTimezoneOffset();function kt(e){var a=new Date;return a.setTime(e*24*60*60*1e3+ac),a.getTimezoneOffset()!==M0&&a.setTime(a.getTime()+(a.getTimezoneOffset()-M0)*6e4),a}function tc(e){var a=0,r=0,n=!1,t=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!t)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=t.length;++s)if(t[s]){switch(r=1,s>3&&(n=!0),t[s].slice(t[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+t[s].slice(t[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}a+=r*parseInt(t[s],10)}return a}var B0=new Date("2017-02-19T19:06:09.000Z"),zn=isNaN(B0.getFullYear())?new Date("2/19/17"):B0,nc=zn.getFullYear()==2017;function Ge(e,a){var r=new Date(e);if(nc)return a>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):a<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(zn.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var t=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+t[0],+t[1]-1,+t[2],+t[3]||0,+t[4]||0,+t[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function na(e,a){if(ge&&Buffer.isBuffer(e)){if(a){if(e[0]==255&&e[1]==254)return Ra(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ra(In(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(a){if(e[0]==255&&e[1]==254)return Ra(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ra(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return r[s]||s})}catch{}for(var n=[],t=0;t!=e.length;++t)n.push(String.fromCharCode(e[t]));return n.join("")}function $e(e){if(typeof JSON<"u
`,lc=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,U0=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,hc=/<[^>]*>/g,er=Jn.match(U0)?U0:hc,uc=/<\w*:/,xc=/<(\/?)\w+:/;function oe(e,a,r){for(var n={},t=0,s=0;t!==e.length&&!((s=e.charCodeAt(t))===32||s===10||s===13);++t);if(a||(n[0]=e.slice(0,t)),t===e.length)return n;var i=e.match(lc),c=0,f="",l=0,o="",h="",x=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length&&h.charCodeAt(s)!==61;++s);for(o=h.slice(0,s).trim();h.charCodeAt(s+1)==32;)++s;for(x=(t=h.charCodeAt(s+1))==34||t==39?1:0,f=h.slice(s+1+x,h.length-x),c=0;c!=o.length&&o.charCodeAt(c)!==58;++c);if(c===o.length)o.indexOf("_")>0&&(o=o.slice(0,o.indexOf("_"))),n[o]=f,n[o.toLowerCase()]=f;else{var d=(c===5&&o.slice(0,5)==="xmlns"?"xmlns":"")+o.slice(c+1);if(n[d]&&o.slice(c-3,c)=="ext")continue;n[d]=f,n[d.toLowerCase()]=f}}return n}function Or(e){return e.replace(xc,"<$1")}var Zn={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},dc=Qt(Zn),Te=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,a=/_x([\da-fA-F]{4})_/ig;return function r(n){var t=n+"",s=t.indexOf("<![CDATA[");if(s==-1)return t.replace(e,function(c,f){return Zn[c]||String.fromCharCode(parseInt(f,c.indexOf("x")>-1?16:10))||c}).replace(a,function(c,f){return String.fromCharCode(parseInt(f,16))});var i=t.indexOf("]]>");return r(t.slice(0,s))+t.slice(s+9,i)+r(t.slice(i+3))}}(),vc=/[&<>'"]/g,pc=/[\u0000-\u001f]/g;function r0(e){var a=e+"";return a.replace(vc,function(r){return dc[r]}).replace(/\n/g,"<br/>").replace(pc,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var H0=function(){var e=/&#(\d+);/g;function a(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,a)}}();function Se(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Dt(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){a+=String.fromCharCode(n);continue}if(t=e.charCodeAt(r++),n>191&&n<224){i=(n&31)<<6,i|=t&63,a+=String.fromCharCode(i);continue}if(s=e.charCodeAt(r++),n<240){a+=String.fromCharCode((n&15)<<12|(t&63)<<6|s&63);continue}i=e.charCodeAt(r++),c=((n&7)<<18|(t&63)<<12|(s&63)<<6|i&63)-65536,a+=String.fromCharCode(55296+(c>>>10&1023)),a+=String.fromCharCode(56320+(c&1023))}return a}function V0(e){var a=Yr(2*e.length),r,n,t=1,s=0,i=0,c;for(n=0;n<e.length;n+=t)t=1,(c=e.charCodeAt(n))<128?r=c:c<224?(r=(c&31)*64+(e.charCodeAt(n+1)&63),t=2):c<240?(r=(c&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),t=3):(t=4,r=(c&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,i=55296+(r>>>10&1023),r=56320+(r&1023)),i!==0&&(a[s++]=i&255,a[s++]=i>>>8,i=0),a[s++]=r%256,a[s++]=r>>>8;return a.slice(0,s).toString("ucs2")}function W0(e){return ia(e,"binary").toString("utf8")}var tt="foo bar baz☃🍣",Ae=ge&&(W0(tt)==Dt(tt)&&W0||V0(tt)==Dt(tt)&&V0)||Dt,Ra=ge?function(e){return ia(e,"utf8").toString("binary")}:function(e){for(var a=[],r=0,n=0,t=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:a.push(String.fromCharCode(n));break;case n<2048:a.push(String.fromCharCode(192+(n>>6))),a.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,t=e.charCodeAt(r++)-56320+(n<<10),a.push(String.fromCharCode(240+(t>>18&7))),a.push(String.fromCharCode(144+(t>>12&63))),a.push(String.fromCharCode(128+(t>>6&63))),a.push(String.fromCharCode(128+(t&63)));break;default:a.push(String.fromCharCode(224+(n>>12))),a.push(String.fromCharCode(128+(n>>6&63))),a.push(String.fromCharCode(128+(n&63)))}return a.join("")},Wa=function(){var e={};return function(r,n){var t=r+"|"+(n||"");return e[t]?e[t]:e[t]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),qn=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]});return function(r){for(var n=r.replace(/^[\t\
`).replace(/<[^>]*>/g,""),t=0;t<e.length;++t)n=n.replace(e[t][0],e[t][1]);return n}}(),gc=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),mc=/<\/?(?:vt:)?variant>/g,_c=/<(?:vt:)([^>]*)>([\s\S]*)</;function G0(e,a){var r=oe(e),n=e.match(gc(r.baseType))||[],t=[];if(n.length!=r.size){if(a.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return t}return n.forEach(function(s){var i=s.replace(mc,"").match(_c);i&&t.push({v:Ae(i[2]),t:i[1]})}),t}var Ec=/(^\s|\s$|\n)/;function Tc(e){return Dr(e).map(function(a){return" "+a+'="'+e[a]+'"'}).join("")}function kc(e,a,r){return"<"+e+(r!=null?Tc(r):"")+(a!=null?(a.match(Ec)?' xml:space="preserve"':"")+">"+a+"</"+e:"/")+">"}function a0(e){if(ge&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Ae(ca(Jt(e)));throw new Error("Bad input format: expected Buffer or string")}var Ga=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,wc={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ac=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function Fc(e,a){for(var r=1-2*(e[a+7]>>>7),n=((e[a+7]&127)<<4)+(e[a+6]>>>4&15),t=e[a+6]&15,s=5;s>=0;--s)t=t*256+e[a+s];return n==2047?t==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,t+=Math.pow(2,52)),r*Math.pow(2,n-52)*t)}function Sc(e,a,r){var n=(a<0||1/a==-1/0?1:0)<<7,t=0,s=0,i=n?-a:a;isFinite(i)?i==0?t=s=0:(t=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-t),t<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?t=-1022:(s-=Math.pow(2,52),t+=1023)):(t=2047,s=isNaN(a)?26985:0);for(var c=0;c<=5;++c,s/=256)e[r+c]=s&255;e[r+6]=(t&15)<<4|s&15,e[r+7]=t>>4|n}var X0=function(e){for(var a=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var t=0,s=e[0][n].length;t<s;t+=r)a.push.apply(a,e[0][n].slice(t,t+r));return a},$0=ge?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(a){return Buffer.isBuffer(a)?a:ia(a)})):X0(e)}:X0,z0=function(e,a,r){for(var n=[],t=a;t<r;t+=2)n.push(String.fromCharCode(Lr(e,t)));return n.join("").replace(sr,"")},t0=ge?function(e,a,r){return Buffer.isBuffer(e)?e.toString("utf16le",a,r).replace(sr,""):z0(e,a,r)}:z0,K0=function(e,a,r){for(var n=[],t=a;t<a+r;++t)n.push(("0"+e[t].toString(16)).slice(-2));return n.join("")},Qn=ge?function(e,a,r){return Buffer.isBuffer(e)?e.toString("hex",a,a+r):K0(e,a,r)}:K0,Y0=function(e,a,r){for(var n=[],t=a;t<r;t++)n.push(String.fromCharCode(xa(e,t)));return n.join("")},ja=ge?function(a,r,n){return Buffer.isBuffer(a)?a.toString("utf8",r,n):Y0(a,r,n)}:Y0,es=function(e,a){var r=or(e,a);return r>0?ja(e,a+4,a+4+r-1):""},rs=es,as=function(e,a){var r=or(e,a);return r>0?ja(e,a+4,a+4+r-1):""},ts=as,ns=function(e,a){var r=2*or(e,a);return r>0?ja(e,a+4,a+4+r-1):""},ss=ns,is=function(a,r){var n=or(a,r);return n>0?t0(a,r+4,r+4+n):""},cs=is,fs=function(e,a){var r=or(e,a);return r>0?ja(e,a+4,a+4+r):""},os=fs,ls=function(e,a){return Fc(e,a)},vt=ls,hs=
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),x["!cols"]&&l(v,x["!cols"]),x["!rows"]&&o(v,x["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var N=g.s.r;N<=g.e.r;++N)for(var b=g.s.c;b<=g.e.c;++b){var I=ue({r:N,c:b});S=y?(x[N]||[])[b]:x[I],!(!S||S.v==null&&(!S.f||S.F))&&u.push(f(S,x,N,b))}return v.join(_)+_+u.join(_)+_+"E"+_}return{to_workbook:c,to_sheet:i,from_sheet:h}}(),Wo=function(){function e(s,i){switch(i.type){case"base64":return a(hr(s),i);case"binary":return a(s,i);case"buffer":return a(ge&&Buffer.isBuffer(s)?s.toString("binary"):ca(s),i);case"array":return a(na(s),i)}throw new Error("Unrecognized type "+i.type)}function a(s,i){for(var c=s.split(`
`),f=-1,l=-1,o=0,h=[];o!==c.length;++o){if(c[o].trim()==="BOT"){h[++f]=[],l=0;continue}if(!(f<0)){var x=c[o].trim().split(","),d=x[0],v=x[1];++o;for(var u=c[o]||"";(u.match(/["]/g)||[]).length&1&&o<c.length-1;)u+=`
`+c[++o];switch(u=u.trim(),+d){case-1:if(u==="BOT"){h[++f]=[],l=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?h[f][l]=!0:u==="FALSE"?h[f][l]=!1:isNaN(Ar(v))?isNaN(ma(v).getDate())?h[f][l]=v:h[f][l]=Ge(v):h[f][l]=Ar(v),++l;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),h[f][l++]=u!==""?u:null;break}if(u==="EOD")break}}return i&&i.sheetRows&&(h=h.slice(0,i.sheetRows)),h}function r(s,i){return ka(e(s,i),i)}function n(s,i){return Jr(r(s,i),i)}var t=function(){var s=function(f,l,o,h,x){f.push(l),f.push(o+","+h),f.push('"'+x.replace(/"/g,'""')+'"')},i=function(f,l,o,h){f.push(l+","+o),f.push(l==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(f){var l=[],o=Oe(f["!ref"]),h,x=Array.isArray(f);s(l,"TABLE",0,1,"sheetjs"),s(l,"VECTORS",0,o.e.r-o.s.r+1,""),s(l,"TUPLES",0,o.e.c-o.s.c+1,""),s(l,"DATA",0,0,"");for(var d=o.s.r;d<=o.e.r;++d){i(l,-1,0,"BOT");for(var v=o.s.c;v<=o.e.c;++v){var u=ue({r:d,c:v});if(h=x?(f[d]||[])[v]:f[u],!h){i(l,1,0,"");continue}switch(h.t){case"n":var g=h.w;!g&&h.v!=null&&(g=h.v),g==null?h.f&&!h.F?i(l,1,0,"="+h.f):i(l,1,0,""):i(l,0,g,"V");break;case"b":i(l,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":i(l,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=gr(h.z||de[14],ir(Ge(h.v)))),i(l,0,h.w,"V");break;default:i(l,1,0,"")}}}i(l,-1,0,"EOD");var S=`\r
`,y=l.join(S);return y}}();return{to_workbook:n,to_sheet:r,from_sheet:t}}(),Go=function(){function e(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function a(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(h,x){for(var d=h.split(`
`),v=-1,u=-1,g=0,S=[];g!==d.length;++g){var y=d[g].trim().split(":");if(y[0]==="cell"){var _=nr(y[1]);if(S.length<=_.r)for(v=S.length;v<=_.r;++v)S[v]||(S[v]=[]);switch(v=_.r,u=_.c,y[2]){case"t":S[v][u]=e(y[3]);break;case"v":S[v][u]=+y[3];break;case"vtf":var N=y[y.length-1];case"vtc":switch(y[3]){case"nl":S[v][u]=!!+y[4];break;default:S[v][u]=+y[4];break}y[2]=="vtf"&&(S[v][u]=[S[v][u],N])}}}return x&&x.sheetRows&&(S=S.slice(0,x.sheetRows)),S}function n(h,x){return ka(r(h,x),x)}function t(h,x){return Jr(n(h,x),x)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,c=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),f="--SocialCalcSpreadsheetControlSave--";function l(h){if(!h||!h["!ref"])return"";for(var x=[],d=[],v,u="",g=Ta(h["!ref"]),S=Array.isArray(h),y=g.s.r;y<=g.e.r;++y)for(var _=g.s.c;_<=g.e.c;++_)if(u=ue({r:y,c:_}),v=S?(h[y]||[])[_]:h[u],!(!v||v.v==null||v.t==="z")){switch(d=["cell",u,"t"],v.t){case"s":case"str":d.push(a(v.v));break;case"n":v.f?(d[2]="vtf",d[3]="n",d[4]=v.v,d[5]=a(v.f)):(d[2]="v",d[3]=v.v);break;case"b":d[2]="vt"+(v.f?"f":"c"),d[3]="nl",d[4]=v.v?"1":"0",d[5]=a(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var N=ir(Ge(v.v));d[2]="vtc",d[3]="nd",d[4]=""+N,d[5]=v.w||gr(v.z||de[14],N);break;case"e":continue}x.push(d.join(":"))}return x.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
`)}function o(h){return[s,i,c,i,l(h),f].join(`
`)}return{to_workbook:t,to_sheet:n,from_sheet:o}}(),Xa=function(){function e(o,h,x,d,v){v.raw?h[x][d]=o:o===""||(o==="TRUE"?h[x][d]=!0:o==="FALSE"?h[x][d]=!1:isNaN(Ar(o))?isNaN(ma(o).getDate())?h[x][d]=o:h[x][d]=Ge(o):h[x][d]=Ar(o))}function a(o,h){var x=h||{},d=[];if(!o||o.length===0)return d;for(var v=o.split(/[\r\n]/),u=v.length-1;u>=0&&v[u].length===0;)--u;for(var g=10,S=0,y=0;y<=u;++y)S=v[y].indexOf(" "),S==-1?S=v[y].length:S++,g=Math.max(g,S);for(y=0;y<=u;++y){d[y]=[];var _=0;for(e(v[y].slice(0,g).trim(),d,y,_,x),_=1;_<=(v[y].length-g)/10+1;++_)e(v[y].slice(g+(_-1)*10,g+_*10).trim(),d,y,_,x)}return x.sheetRows&&(d=d.slice(0,x.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function t(o){for(var h={},x=!1,d=0,v=0;d<o.length;++d)(v=o.charCodeAt(d))==34?x=!x:!x&&v in r&&(h[v]=(h[v]||0)+1);v=[];for(d in h)Object.prototype.hasOwnProperty.call(h,d)&&v.push([h[d],d]);if(!v.length){h=n;for(d in h)Object.prototype.hasOwnProperty.call(h,d)&&v.push([h[d],d])}return v.sort(function(u,g){return u[0]-g[0]||n[u[1]]-n[g[1]]}),r[v.pop()[1]]||44}function s(o,h){var x=h||{},d="",v=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};o.slice(0,4)=="sep="?o.charCodeAt(5)==13&&o.charCodeAt(6)==10?(d=o.charAt(4),o=o.slice(7)):o.charCodeAt(5)==13||o.charCodeAt(5)==10?(d=o.charAt(4),o=o.slice(6)):d=t(o.slice(0,1024)):x&&x.FS?d=x.FS:d=t(o.slice(0,1024));var g=0,S=0,y=0,_=0,N=0,b=d.charCodeAt(0),I=!1,A=0,V=o.charCodeAt(0);o=o.replace(/\r\n/mg,`
`);var D=x.dateNF!=null?qi(x.dateNF):null;function z(){var G=o.slice(_,N),P={};if(G.charAt(0)=='"'&&G.charAt(G.length-1)=='"'&&(G=G.slice(1,-1).replace(/""/g,'"')),G.length===0)P.t="z";else if(x.raw)P.t="s",P.v=G;else if(G.trim().length===0)P.t="s",P.v=G;else if(G.charCodeAt(0)==61)G.charCodeAt(1)==34&&G.charCodeAt(G.length-1)==34?(P.t="s",P.v=G.slice(2,-1).replace(/""/g,'"')):D1(G)?(P.t="n",P.f=G.slice(1)):(P.t="s",P.v=G);else if(G=="TRUE")P.t="b",P.v=!0;else if(G=="FALSE")P.t="b",P.v=!1;else if(!isNaN(y=Ar(G)))P.t="n",x.cellText!==!1&&(P.w=G),P.v=y;else if(!isNaN(ma(G).getDate())||D&&G.match(D)){P.z=x.dateNF||de[14];var J=0;D&&G.match(D)&&(G=Qi(G,x.dateNF,G.match(D)||[]),J=1),x.cellDates?(P.t="d",P.v=Ge(G,J)):(P.t="n",P.v=ir(Ge(G,J))),x.cellText!==!1&&(P.w=gr(P.z,P.v instanceof Date?ir(P.v):P.v)),x.cellNF||delete P.z}else P.t="s",P.v=G;if(P.t=="z"||(x.dense?(v[g]||(v[g]=[]),v[g][S]=P):v[ue({c:S,r:g})]=P),_=N+1,V=o.charCodeAt(_),u.e.c<S&&(u.e.c=S),u.e.r<g&&(u.e.r=g),A==b)++S;else if(S=0,++g,x.sheetRows&&x.sheetRows<=g)return!0}e:for(;N<o.length;++N)switch(A=o.charCodeAt(N)){case 34:V===34&&(I=!I);break;case b:case 10:case 13:if(!I&&z())break e;break}return N-_>0&&z(),v["!ref"]=_e(u),v}function i(o,h){return!(h&&h.PRN)||h.FS||o.slice(0,4)=="sep="||o.indexOf(" ")>=0||o.indexOf(",")>=0||o.indexOf(";")>=0?s(o,h):ka(a(o,h),h)}function c(o,h){var x="",d=h.type=="string"?[0,0,0,0]:m0(o,h);switch(h.type){case"base64":x=hr(o);break;case"binary":x=o;break;case"buffer":h.codepage==65001?x=o.toString("utf8"):h.codepage&&typeof Gr<"u"?x=Gr.utils.decode(h.codepage,o):x=ge&&Buffer.isBuffer(o)?o.toString("binary"):ca(o);break;case"array":x=na(o);break;case"string":x=o;break;default:throw new Error("Unrecognized type "+h.type)}return d[0]==239&&d[1]==187&&d[2]==191?x=Ae(x.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?x=Ae(x):h.type=="binary"&&typeof Gr<"u"&&h.codepage&&(x=Gr.utils.decode(h.codepage,Gr.utils.encode(28591,x))),x.slice(0,19)=="socialcalc:version:"?Go.to_sheet(h.type=="string"?x:Ae(x),h):i(x,h)}function f(o,h){return Jr(c(o,h),h)}function l(o){for(var h=[],x=Oe(o["!ref"]),d,v=Array.isArray(o),u=x.s.r;u<=x.e.r;++u){for(var g=[],S=x.s.c;S<=x.e.c;++S){var y=ue({r:u,c:S});if(d=v?(o[u]||[])[S]:o[y],!d||d.v==null){g.push(" ");continue}for(var _=(d.w||(br(d),d.w)||"").slice(0,10);_.length<10;)_+=" ";g.push(_+(S===0?" ":""))}h.push(g.join(""))}return h.join(`
`)}return{to_workbook:f,to_sheet:c,from_sheet:l}}();function Xo(e,a){var r=a||{},n=!!r.WTF;r.WTF=!0;try{var t=Vo.to_workbook(e,r);return r.WTF=n,t}catch(s){if(r.WTF=n,!s.message.match(/SYLK bad record ID/)&&n)throw s;return Xa.to_workbook(e,a)}}var Ba=function(){function e(F,U,R){if(F){Xe(F,F.l||0);for(var O=R.Enum||le;F.l<F.length;){var K=F.read_shift(2),ee=O[K]||O[65535],ne=F.read_shift(2),q=F.l+ne,j=ee.f&&ee.f(F,ne,R);if(F.l=q,U(j,ee,K))return}}}function a(F,U){switch(U.type){case"base64":return r(Tr(hr(F)),U);case"binary":return r(Tr(F),U);case"buffer":case"array":return r(F,U)}throw"Unsupported type "+U.type}function r(F,U){if(!F)return F;var R=U||{},O=R.dense?[]:{},K="Sheet1",ee="",ne=0,q={},j=[],Ee=[],C={s:{r:0,c:0},e:{r:0,c:0}},Re=R.sheetRows||0;if(F[2]==0&&(F[3]==8||F[3]==9)&&F.length>=16&&F[14]==5&&F[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(F[2]==2)R.Enum=le,e(F,function(ae,Ie,ur){switch(ur){case 0:R.vers=ae,ae>=4096&&(R.qpro=!0);break;case 6:C=ae;break;case 204:ae&&(ee=ae);break;case 222:ee=ae;break;case 15:case 51:R.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:ur==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=R.dateNF||de[14],R.cellDates&&(ae[1].t="d",ae[1].v=kt(ae[1].v))),R.qpro&&ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K=ee||"Sheet"+(ne+1),ee="");var Fr=R.dense?(O[ae[0].r]||[])[ae[0].c]:O[ue(ae[0])];if(Fr){Fr.t=ae[1].t,Fr.v=ae[1].v,ae[1].z!=null&&(Fr.z=ae[1].z),ae[1].f!=null&&(Fr.f=ae[1].f);break}R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1];break}},R);else if(F[2]==26||F[2]==14)R.Enum=he,F[2]==14&&(R.qpro=!0,F.l=0),e(F,function(ae,Ie,ur){switch(ur){case 204:K=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K="Sheet"+(ne+1)),Re>0&&ae[0].r>=Re)break;R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1],C.e.c<ae[0].c&&(C.e.c=ae[0].c),C.e.r<ae[0].r&&(C.e.r=ae[0].r);break;case 27:ae[14e3]&&(Ee[ae[14e3][0]]=ae[14e3][1]);break;case 1537:Ee[ae[0]]=ae[1],ae[0]==ne&&(K=ae[1]);break}},R);else throw new Error("Unrecognized LOTUS BOF "+F[2]);if(O["!ref"]=_e(C),q[ee||K]=O,j.push(ee||K),!Ee.length)return{SheetNames:j,Sheets:q};for(var ke={},we=[],pe=0;pe<Ee.length;++pe)q[j[pe]]?(we.push(Ee[pe]||j[pe]),ke[Ee[pe]]=q[Ee[pe]]||q[j[pe]]):(we.push(Ee[pe]),ke[Ee[pe]]={"!ref":"A1"});return{SheetNames:we,Sheets:ke}}function n(F,U){var R=U||{};if(+R.codepage>=0&&kr(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var O=bt(),K=Oe(F["!ref"]),ee=Array.isArray(F),ne=[];Er(O,0,s(1030)),Er(O,6,f(K));for(var q=Math.min(K.e.r,8191),j=K.s.r;j<=q;++j)for(var Ee=ze(j),C=K.s.c;C<=K.e.c;++C){j===K.s.r&&(ne[C]=He(C));var Re=ne[C]+Ee,ke=ee?(F[j]||[])[C]:F[Re];if(!(!ke||ke.t=="z"))if(ke.t=="n")(ke.v|0)==ke.v&&ke.v>=-32768&&ke.v<=32767?Er(O,13,d(j,C,ke.v)):Er(O,14,u(j,C,ke.v));else{var we=br(ke);Er(O,15,h(j,C,we.slice(0,239)))}}return Er(O,1),O.end()}function t(F,U){var R=U||{};if(+R.codepage>=0&&kr(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var O=bt();Er(O,0,i(F));for(var K=0,ee=0;K<F.SheetNames.length;++K)(F.Sheets[F.SheetNames[K]]||{})["!ref"]&&Er(O,27,W(F.SheetNames[K],ee++));var ne=0;for(K=0;K<F.SheetNames.length;++K){var q=F.Sheets[F.SheetNames[K]];if(!(!q||!q["!ref"])){for(var j=Oe(q["!ref"]),Ee=Array.isArray(q),C=[],Re=Math.min(j.e.r,8191),ke=j.s.r;ke<=Re;++ke)for(var we=ze(ke),pe=j.s.c;pe<=j.e.c;++pe){ke===j.s.r&&(C[pe]=He(pe));var ae=C[pe]+we,Ie=Ee?(q[ke]||[])[pe]:q[ae];if(!(!Ie||Ie.t=="z"))if(Ie.t=="n")Er(O,23,z(ke,pe,ne,Ie.v));else{var ur=br(Ie);Er(O,22,A(ke,pe,ne,ur.slice(0,239)))}}++ne}}return Er(O,1),O.end()}function s(F){var U=Ue(2);return U.write_shift(2,F),U}function i(F){var U=Ue(26);U.write_shift(2,4096),U.write_shift(2,4),U.write_shift(4,0);for(var R=0,O=0,K=0,ee=0;ee<F.SheetNames.length;++ee){var ne=F.SheetNames[ee],q=F.Sheets[ne];if(!(!q||!q["!ref"]))
`).replace(/\r/g,`
`),a.cellHTML&&(l.h=x.h),n.push(l)}}}}),n}function p1(e,a){var r=[],n=!1,t={},s=0;return e.replace(er,function(c,f){var l=oe(c);switch(Or(l[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":t={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":t.t!=null&&r.push(t);break;case"<text>":case"<text":s=f+c.length;break;case"</text>":t.t=e.slice(s,f).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return c}),r}function g1(e,a){var r=[],n=!1;return e.replace(er,function(s){var i=oe(s);switch(Or(i[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:i.displayname,id:i.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return s}),r}function m1(e){var a={};a.iauthor=e.read_shift(4);var r=oa(e);return a.rfx=r.s,a.ref=ue(r.s),e.l+=16,a}var _1=qe;function E1(e,a){var r=[],n=[],t={},s=!1;return Ur(e,function(c,f,l){switch(l){case 632:n.push(c);break;case 635:t=c;break;case 637:t.t=c.t,t.h=c.h,t.r=c.r;break;case 636:if(t.author=n[t.iauthor],delete t.iauthor,a.sheetRows&&t.rfx&&a.sheetRows<=t.rfx.r)break;t.t||(t.t=""),delete t.rfx,r.push(t);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!s||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),r}var T1="application/vnd.ms-office.vbaProject";function k1(e){var a=me.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var t=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");me.utils.cfb_add(a,t,e.FileIndex[n].content)}}),me.write(a)}function w1(){return{"!type":"dialog"}}function A1(){return{"!type":"dialog"}}function F1(){return{"!type":"macro"}}function S1(){return{"!type":"macro"}}var pa=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,a={r:0,c:0};function r(n,t,s,i){var c=!1,f=!1;s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1)),i.length==0?c=!0:i.charAt(0)=="["&&(c=!0,i=i.slice(1,-1));var l=s.length>0?parseInt(s,10)|0:0,o=i.length>0?parseInt(i,10)|0:0;return c?o+=a.c:--o,f?l+=a.r:--l,t+(c?"":"$")+He(o)+(f?"":"$")+ze(l)}return function(t,s){return a=s,t.replace(e,r)}}(),Hs=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,C1=function(){return function(a,r){return a.replace(Hs,function(n,t,s,i,c,f){var l=s0(i)-(s?0:r.c),o=n0(f)-(c?0:r.r),h=o==0?"":c?o+1:"["+o+"]",x=l==0?"":s?l+1:"["+l+"]";return t+"R"+h+"C"+x})}}();function Vs(e,a){return e.replace(Hs,function(r,n,t,s,i,c){return n+(t=="$"?t+s:He(s0(s)+a.c))+(i=="$"?i+c:ze(n0(c)+a.r))})}function y1(e,a,r){var n=Ta(a),t=n.s,s=nr(r),i={r:s.r-t.r,c:s.c-t.c};return Vs(e,i)}function D1(e){return e.length!=1}function xn(e){return e.replace(/_xlfn\./g,"")}function Le(e){e.l+=1}function jr(e,a){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function Ws(e,a,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Gs(e);r.biff==12&&(n=4)}var t=e.read_shift(n),s=e.read_shift(n),i=jr(e),c=jr(e);return{s:{r:t,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Gs(e){var a=jr(e),r=jr(e),n=e.read_shift(1),t=e.read_shift(1);return{s:{r:a[0],c:n,cRel:a[1],rRel:a[2]},e:{r:r[0],c:t,cRel:r[1],rRel:r[2]}}}function O1(e,a,r){if(r.biff<8)return Gs(e);var n=e.read_shift(r.biff==12?4:2),t=e.read_shift(r.biff==12?4:2),s=jr(e),i=jr(e);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:t,c:i[0],cRel:i[1],rRel:i[2]}}}function Xs(e,a,r){if(r&&r.biff>=2&&r.biff<=5)return R1(e);var n=e.read_shift(r&&r.biff==12?4:2),t=jr(e);return{r:n,c:t[0],cRel:t[1],rRel:t[2]}}function R1(e){var a=jr(e),r=e.read_shift(1);return{r:a[0],c:r,cRel:a[1],rRel:a[2]}}function I1(e){var a=e.read_shift(2),r=e.read_shift(2);return{r:a,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function N1(e,a,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return P1(e);var t=e.read_shift(n>=12?4:2),s=e.read_shift(2),i=(s&16384)>>14,c=(s&32768)>>15;if(s&=1
`),o.xlfn||(I.f=xn(I.f)),S[0].indexOf('t="array"')>-1)I.F=(b.match(t)||[])[1],I.F.indexOf(":")>-1&&ce.push([Oe(I.F),I.F]);else if(S[0].indexOf('t="shared"')>-1){G=oe(S[0]);var q=Te(Ae(S[1]));o.xlfn||(q=xn(q)),ie[parseInt(G.si,10)]=[G,q,A.r]}}else(S=b.match(/<f[^>]*\/>/))&&(G=oe(S[0]),ie[G.si]&&(I.f=y1(ie[G.si][1],ie[G.si][2],A.r)));var j=nr(A.r);for(_=0;_<ce.length;++_)j.r>=ce[_][0].s.r&&j.r<=ce[_][0].e.r&&j.c>=ce[_][0].s.c&&j.c<=ce[_][0].e.c&&(I.F=ce[_][1])}if(A.t==null&&I.v===void 0)if(I.f||I.F)I.v=0,I.t="n";else if(F)I.t="z";else continue;else I.t=A.t||"n";switch(h.s.c>D&&(h.s.c=D),h.e.c<D&&(h.e.c=D),I.t){case"n":if(I.v==""||I.v==null){if(!F)continue;I.t="z"}else I.v=parseFloat(I.v);break;case"s":if(typeof I.v>"u"){if(!F)continue;I.t="z"}else z=ba[parseInt(I.v,10)],I.v=z.t,I.r=z.r,o.cellHTML&&(I.h=z.h);break;case"str":I.t="s",I.v=I.v!=null?Ae(I.v):"",o.cellHTML&&(I.h=r0(I.v));break;case"inlineStr":S=b.match(n),I.t="s",S!=null&&(z=h0(S[1]))?(I.v=z.t,o.cellHTML&&(I.h=z.h)):I.v="";break;case"b":I.v=Se(I.v);break;case"d":o.cellDates?I.v=Ge(I.v,1):(I.v=ir(Ge(I.v,1)),I.t="n");break;case"e":(!o||o.cellText!==!1)&&(I.w=I.v),I.v=gs[I.v];break}if(P=J=0,re=null,fe&&A.s!==void 0&&(re=d.CellXf[A.s],re!=null&&(re.numFmtId!=null&&(P=re.numFmtId),o.cellStyles&&re.fillId!=null&&(J=re.fillId))),js(I,P,J,o,x,d),o.cellDates&&fe&&I.t=="n"&&Ea(de[P])&&(I.t="d",I.v=kt(I.v)),A.cm&&o.xlmeta){var Ee=(o.xlmeta.Cell||[])[+A.cm-1];Ee&&Ee.type=="XLDAPR"&&(I.D=!0)}if(Fe){var C=nr(A.r);l[C.r]||(l[C.r]=[]),l[C.r][C.c]=I}else l[A.r]=I}}}}W.length>0&&(l["!rows"]=W)}}();function mu(e,a){var r={},n=e.l+a;r.r=e.read_shift(4),e.l+=4;var t=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=n,s&7&&(r.level=s&7),s&16&&(r.hidden=!0),s&32&&(r.hpt=t/20),r}var _u=oa;function Eu(){}function Tu(e,a){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Vc(e),r}function ku(e){var a=mr(e);return[a]}function wu(e){var a=fa(e);return[a]}function Au(e){var a=mr(e),r=e.read_shift(1);return[a,r,"b"]}function Fu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"b"]}function Su(e){var a=mr(e),r=e.read_shift(1);return[a,r,"e"]}function Cu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"e"]}function yu(e){var a=mr(e),r=e.read_shift(4);return[a,r,"s"]}function Du(e){var a=fa(e),r=e.read_shift(4);return[a,r,"s"]}function Ou(e){var a=mr(e),r=Je(e);return[a,r,"n"]}function Zs(e){var a=fa(e),r=Je(e);return[a,r,"n"]}function Ru(e){var a=mr(e),r=f0(e);return[a,r,"n"]}function Iu(e){var a=fa(e),r=f0(e);return[a,r,"n"]}function Nu(e){var a=mr(e),r=i0(e);return[a,r,"is"]}function Pu(e){var a=mr(e),r=qe(e);return[a,r,"str"]}function Lu(e){var a=fa(e),r=qe(e);return[a,r,"str"]}function Mu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"b"];if(r.cellFormula){e.l+=2;var c=Ft(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function Bu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"e"];if(r.cellFormula){e.l+=2;var c=Ft(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function bu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=Je(e),i=[t,s,"n"];if(r.cellFormula){e.l+=2;var c=Ft(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function Uu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=qe(e),i=[t,s,"str"];if(r.cellFormula){e.l+=2;var c=Ft(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}var Hu=oa;function Vu(e,a){var r=e.l+a,n=oa(e),t=c0(e),s=qe(e),i=qe(e),c=qe(e);e.l=r;var f={rfx:n,relId:t,loc:s,display:c};return i&&(f.Tooltip=i),f}function Wu(){}function Gu(e,a,r){var n=e.l+a,t=ds(e),s=e.read_shift(1),i=[t];if(i[2]=s,r.cellFormula){var c=Yh(e,n-e.l,r);i[1]=c}else e.l=n;return i}function Xu(e,a,r){var n=e.l+a,t=oa(e),s=[t];if(r.cellFormula){var i=Jh(e,n-e.l,r);s[1]=i,e.l=n}else e.l=n;return s}var $u=["left","right","top","bottom","header","footer"];function zu(e){var a={};return $u.forEach(function(r){a[r]=Je(e)}),a}function Ku(e){var a=e.read_shift(2);return e.l+=28,{RTL:a&32}}function Yu(){}function ju(){}function Ju(e,a,r,n,t,s,i){if(!e)return e;var c=a||{};n||(n={"!id":{}
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function Lt(e,a){var r=a||{};Gn();var n=ya(a0(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=Ae(n));var t=n.slice(0,1024).toLowerCase(),s=!1;if(t=t.replace(/".*?"/g,""),(t.indexOf(">")&1023)>Math.min(t.indexOf(",")&1023,t.indexOf(";")&1023)){var i=$e(r);return i.type="string",Xa.to_workbook(n,i)}if(t.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Ie){t.indexOf("<"+Ie)>=0&&(s=!0)}),s)return Vx(n,r);Ha={"General Number":"General","General Date":de[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":de[15],"Short Date":de[14],"Long Time":de[19],"Medium Time":de[18],"Short Time":de[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:de[2],Standard:de[4],Percent:de[10],Scientific:de[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,f=[],l,o={},h=[],x=r.dense?[]:{},d="",v={},u={},g=_r('<Data ss:Type="String">'),S=0,y=0,_=0,N={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},I={},A="",V=0,D=[],z={},G={},P=0,J=[],fe=[],re={},ce=[],ie,Fe=!1,W=[],le=[],he={},F=0,U=0,R={Sheets:[],WBProps:{date1904:!1}},O={};Ga.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var K="";c=Ga.exec(n);)switch(c[3]=(K=c[3]).toLowerCase()){case"data":if(K=="data"){if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break}if(f[f.length-1][1])break;c[1]==="/"?Rx(n.slice(S,c.index),A,g,f[f.length-1][0]=="comment"?re:v,{c:y,r:_},b,ce[y],u,W,r):(A="",g=_r(c[0]),S=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(fe.length>0&&(v.c=fe),(!r.sheetRows||r.sheetRows>_)&&v.v!==void 0&&(r.dense?(x[_]||(x[_]=[]),x[_][y]=v):x[He(y)+ze(_)]=v),v.HRef&&(v.l={Target:Te(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(F=y+(parseInt(v.MergeAcross,10)|0),U=_+(parseInt(v.MergeDown,10)|0),D.push({s:{c:y,r:_},e:{c:F,r:U}})),!r.sheetStubs)v.MergeAcross?y=F+1:++y;else if(v.MergeAcross||v.MergeDown){for(var ee=y;ee<=F;++ee)for(var ne=_;ne<=U;++ne)(ee>y||ne>_)&&(r.dense?(x[ne]||(x[ne]=[]),x[ne][ee]={t:"z"}):x[He(ee)+ze(ne)]={t:"z"});y=F+1}else++y;else v=Sx(c[0]),v.Index&&(y=+v.Index-1),y<N.s.c&&(N.s.c=y),y>N.e.c&&(N.e.c=y),c[0].slice(-2)==="/>"&&++y,fe=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(_<N.s.r&&(N.s.r=_),_>N.e.r&&(N.e.r=_),c[0].slice(-2)==="/>"&&(u=_r(c[0]),u.Index&&(_=+u.Index-1)),y=0,++_):(u=_r(c[0]),u.Index&&(_=+u.Index-1),he={},(u.AutoFitHeight=="0"||u.Height)&&(he.hpx=parseInt(u.Height,10),he.hpt=bs(he.hpx),le[_]=he),u.Hidden=="1"&&(he.hidden=!0,le[_]=he));break;case"worksheet":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"));h.push(d),N.s.r<=N.e.r&&N.s.c<=N.e.c&&(x["!ref"]=_e(N),r.sheetRows&&r.sheetRows<=N.e.r&&(x["!fullref"]=x["!ref"],N.e.r=r.sheetRows-1,x["!ref"]=_e(N))),D.length&&(x["!merges"]=D),ce.length>0&&(x["!cols"]=ce),le.length>0&&(x["!rows"]=le),o[d]=x}else N={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=y=0,f.push([c[3],!1]),l=_r(c[0]),d=Te(l.Name),x=r.dense?[]:{},D=[],W=[],le=[],O={name:d,Hidden:0},R.Sheets.push(O);break;case"table":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else{if(c[0].slice(-2)=="/>")break;f.push([c[3],!1]),ce=[],Fe=!1}break;case"style":c[1]==="/"?Ox(b,I,r):I=_r(c[0]);break;case"numberformat":I.nf=Te(_r(c[0]).Format||"General"),Ha[I.nf]&&(I.nf=Ha[I.nf]);for(var q=0;q!=392&&de[q]!=I.nf;++q);if(q==392){for(q=57;q!=392;++q)if(de[q]==null){ra(I.nf,q);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(ie=_r(c[0]),ie.Hidden&&(ie.hidden=!0,delete ie.Hidden),ie.Width&&(ie.wpx=parseInt(ie.Width,10)),!Fe&&ie.wpx>10){Fe=!0,tr=Ms;for(var j=0;j<ce.length;++j)ce[j]&&_a(ce[j])}Fe&&_a(ie),ce[ie.Index-1||ce.length]=ie;for(var Ee=0;Ee<+ie.Span;++Ee)ce[ce.length]=$e(ie);break;case"namedrange":if(c[1]==="/")break;R.Names||(R.Names=[]);var C=oe(c[0]),Re={Name:C.Name,Ref:pa(C.RefersTo.slice(1),{r:0,c:0})};R.Sheets.length>0&&(Re.Sheet=R.Sheets.length-1),R.Names.push(Re)
`),r=Te(a.replace(/<[^>]*>/g,""));return[r]}var wn={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function si(e,a){var r=a||{},n=a0(e),t=[],s,i,c={name:""},f="",l=0,o,h,x={},d=[],v=r.dense?[]:{},u,g,S={value:""},y="",_=0,N=[],b=-1,I=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},V=0,D={},z=[],G={},P=0,J=0,fe=[],re=1,ce=1,ie=[],Fe={Names:[]},W={},le=["",""],he=[],F={},U="",R=0,O=!1,K=!1,ee=0;for(Ga.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");u=Ga.exec(n);)switch(u[3]=u[3].replace(/_.*$/,"")){case"table":case"工作表":u[1]==="/"?(A.e.c>=A.s.c&&A.e.r>=A.s.r?v["!ref"]=_e(A):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=A.e.r&&(v["!fullref"]=v["!ref"],A.e.r=r.sheetRows-1,v["!ref"]=_e(A)),z.length&&(v["!merges"]=z),fe.length&&(v["!rows"]=fe),o.name=o.名称||o.name,typeof JSON<"u"&&JSON.stringify(o),d.push(o.name),x[o.name]=v,K=!1):u[0].charAt(u[0].length-2)!=="/"&&(o=oe(u[0],!1),b=I=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,v=r.dense?[]:{},z=[],fe=[],K=!0);break;case"table-row-group":u[1]==="/"?--V:++V;break;case"table-row":case"行":if(u[1]==="/"){b+=re,re=1;break}if(h=oe(u[0],!1),h.行号?b=h.行号-1:b==-1&&(b=0),re=+h["number-rows-repeated"]||1,re<10)for(ee=0;ee<re;++ee)V>0&&(fe[b+ee]={level:V});I=-1;break;case"covered-table-cell":u[1]!=="/"&&++I,r.sheetStubs&&(r.dense?(v[b]||(v[b]=[]),v[b][I]={t:"z"}):v[ue({r:b,c:I})]={t:"z"}),y="",N=[];break;case"table-cell":case"数据":if(u[0].charAt(u[0].length-2)==="/")++I,S=oe(u[0],!1),ce=parseInt(S["number-columns-repeated"]||"1",10),g={t:"z",v:null},S.formula&&r.cellFormula!=!1&&(g.f=gn(Te(S.formula))),(S.数据类型||S["value-type"])=="string"&&(g.t="s",g.v=Te(S["string-value"]||""),r.dense?(v[b]||(v[b]=[]),v[b][I]=g):v[ue({r:b,c:I})]=g),I+=ce-1;else if(u[1]!=="/"){++I,y="",_=0,N=[],ce=1;var ne=re?b+re-1:b;if(I>A.e.c&&(A.e.c=I),I<A.s.c&&(A.s.c=I),b<A.s.r&&(A.s.r=b),ne>A.e.r&&(A.e.r=ne),S=oe(u[0],!1),he=[],F={},g={t:S.数据类型||S["value-type"],v:null},r.cellFormula)if(S.formula&&(S.formula=Te(S.formula)),S["number-matrix-columns-spanned"]&&S["number-matrix-rows-spanned"]&&(P=parseInt(S["number-matrix-rows-spanned"],10)||0,J=parseInt(S["number-matrix-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},g.F=_e(G),ie.push([G,g.F])),S.formula)g.f=gn(S.formula);else for(ee=0;ee<ie.length;++ee)b>=ie[ee][0].s.r&&b<=ie[ee][0].e.r&&I>=ie[ee][0].s.c&&I<=ie[ee][0].e.c&&(g.F=ie[ee][1]);switch((S["number-columns-spanned"]||S["number-rows-spanned"])&&(P=parseInt(S["number-rows-spanned"],10)||0,J=parseInt(S["number-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},z.push(G)),S["number-columns-repeated"]&&(ce=parseInt(S["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Se(S["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(S.value);break;case"percentage":g.t="n",g.v=parseFloat(S.value);break;case"currency":g.t="n",g.v=parseFloat(S.value);break;case"date":g.t="d",g.v=Ge(S["date-value"]),r.cellDates||(g.t="n",g.v=ir(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=tc(S["time-value"])/86400,r.cellDates&&(g.t="d",g.v=kt(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(S.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",S["string-value"]!=null&&(y=Te(S["string-value"]),N=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(O=!1,g.t==="s"&&(g.v=y||"",N.length&&(g.R=N),O=_==0),W.Target&&(g.l=W),he.length>0&&(g.c=he,he=[]),y&&r.cellText!==!1&&(g.w=y),O&&(g.t="z",delete g.v),(!O||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=b))for(var q=0;q<re;++q){if(ce=parseInt(S["number-columns-repeated"]||"1",10),r.dense)for(v[b+q]||(v[b+q]=[]),v[b+q][I]=q==0?g:$e(g);--ce>0;)v[b+q][I+ce]=$e(g);else for(v[ue({r:b+q,c:I})]=g;--ce>0;)v[ue({r:b+q,c:I+ce})]=$e(g);A.e.c<=I&&(A.e.c=I)}ce=parseInt(S["number-columns-repeated"]||"1",10),I+=ce-1,ce=0,g={},y="",N=[]}W={};break;case"document":case"document-content":case"电子表格文档":case"sprea
`:"")+Ee[0]}else oe(u[0],!1),_=u.index+u[0].length;break;case"s":break;case"database-range":if(u[1]==="/")break;try{le=Pt(oe(u[0])["target-range-address"]),x[le[0]]["!autofilter"]={ref:le[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":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"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":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":if(u[1]!=="/"){if(W=oe(u[0],!1),!W.href)break;W.Target=Te(W.href),delete W.href,W.Target.charAt(0)=="#"&&W.Target.indexOf(".")>-1?(le=Pt(W.Target.slice(1)),W.Target="#"+le[0]+"!"+le[1]):W.Target.match(/^\.\.[\\\/]/)&&(W.Target=W.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(u[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(u)}}var C={Sheets:x,SheetNames:d,Workbook:Fe};return r.bookSheets&&delete C.Sheets,C}function An(e,a){a=a||{},pr(e,"META-INF/manifest.xml")&&cf(Me(e,"META-INF/manifest.xml"),a);var r=lr(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=si(Ae(r),a);return pr(e,"meta.xml")&&(n.Props=ms(Me(e,"meta.xml"))),n}function Fn(e,a){return si(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function v0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $t(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Ae(ca(e))}function zt(e){var a=e.reduce(function(t,s){return t+s.length},0),r=new Uint8Array(a),n=0;return e.forEach(function(t){r.set(t,n),n+=t.length}),r}function Sn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Kx(e,a){for(var r=(e[a+15]&127)<<7|e[a+14]>>1,n=e[a+14]&1,t=a+13;t>=a;--t)n=n*256+e[t];return(e[a+15]&128?-n:n)*Math.pow(10,r-6176)}function Ka(e,a){var r=a?a[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return a&&(a[0]=r),n}function Ve(e){var a=0,r=e[a]&127;e:if(e[a++]>=128){if(r|=(e[a]&127)<<7,e[a++]<128||(r|=
`,f=c.charCodeAt(0),l=new RegExp((s=="|"?"\\|":s)+"+$"),o="",h=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],v=t.s.c;v<=t.e.c;++v)(x[v]||{}).hidden||(h[v]=He(v));for(var u=0,g=t.s.r;g<=t.e.r;++g)(d[g]||{}).hidden||(o=md(e,t,g,h,i,f,s,n),o!=null&&(n.strip&&(o=o.replace(l,"")),(o||n.blankrows!==!1)&&r.push((u++?c:"")+o)));return delete n.dense,r.join("")}function _d(e,a){a||(a={}),a.FS=" ",a.RS=`
`;var r=ci(e,a);return r}function Ed(e){var a="",r,n="";if(e==null||e["!ref"]==null)return[];var t=Oe(e["!ref"]),s="",i=[],c,f=[],l=Array.isArray(e);for(c=t.s.c;c<=t.e.c;++c)i[c]=He(c);for(var o=t.s.r;o<=t.e.r;++o)for(s=ze(o),c=t.s.c;c<=t.e.c;++c)if(a=i[c]+s,r=l?(e[o]||[])[c]:e[a],n="",r!==void 0){if(r.F!=null){if(a=r.F,!r.f)continue;n=r.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}f[f.length]=a+"="+n}return f}function fi(e,a,r){var n=r||{},t=+!n.skipHeader,s=e||{},i=0,c=0;if(s&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?nr(n.origin):n.origin;i=f.r,c=f.c}var l,o={s:{c:0,r:0},e:{c,r:i+a.length-1+t}};if(s["!ref"]){var h=Oe(s["!ref"]);o.e.c=Math.max(o.e.c,h.e.c),o.e.r=Math.max(o.e.r,h.e.r),i==-1&&(i=h.e.r+1,o.e.r=i+a.length-1+t)}else i==-1&&(i=0,o.e.r=a.length-1+t);var x=n.header||[],d=0;a.forEach(function(u,g){Dr(u).forEach(function(S){(d=x.indexOf(S))==-1&&(x[d=x.length]=S);var y=u[S],_="z",N="",b=ue({c:c+d,r:i+g+t});l=Ya(s,b),y&&typeof y=="object"&&!(y instanceof Date)?s[b]=y:(typeof y=="number"?_="n":typeof y=="boolean"?_="b":typeof y=="string"?_="s":y instanceof Date?(_="d",n.cellDates||(_="n",y=ir(y)),N=n.dateNF||de[14]):y===null&&n.nullError&&(_="e",y=0),l?(l.t=_,l.v=y,delete l.w,delete l.R,N&&(l.z=N)):s[b]=l={t:_,v:y},N&&(l.z=N))})}),o.e.c=Math.max(o.e.c,c+x.length-1);var v=ze(i);if(t)for(d=0;d<x.length;++d)s[He(d+c)+v]={t:"s",v:x[d]};return s["!ref"]=_e(o),s}function Td(e,a){return fi(null,e,a)}function Ya(e,a,r){if(typeof a=="string"){if(Array.isArray(e)){var n=nr(a);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?Ya(e,ue(a)):Ya(e,ue({r:a,c:r||0}))}function kd(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var r=e.SheetNames.indexOf(a);if(r>-1)return r;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function _0(){return{SheetNames:[],Sheets:{}}}function E0(e,a,r,n){var t=1;if(!r)for(;t<=65535&&e.SheetNames.indexOf(r="Sheet"+t)!=-1;++t,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);t=s&&+s[2]||0;var i=s&&s[1]||r;for(++t;t<=65535&&e.SheetNames.indexOf(r=i+t)!=-1;++t);}if(ix(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=a,r}function wd(e,a,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=kd(e,a);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Ad(e,a){return e.z=a,e}function oi(e,a,r){return a?(e.l={Target:a},r&&(e.l.Tooltip=r)):delete e.l,e}function Fd(e,a,r){return oi(e,"#"+a,r)}function Sd(e,a,r){e.c||(e.c=[]),e.c.push({t:a,a:r||"SheetJS"})}function Cd(e,a,r,n){for(var t=typeof a!="string"?a:Oe(a),s=typeof a=="string"?a:_e(a),i=t.s.r;i<=t.e.r;++i)for(var c=t.s.c;c<=t.e.c;++c){var f=Ya(e,i,c);f.t="n",f.F=s,delete f.v,i==t.s.r&&c==t.s.c&&(f.f=r,n&&(f.D=!0))}return e}var yd={encode_col:He,encode_row:ze,encode_cell:ue,encode_range:_e,decode_col:s0,decode_row:n0,split_cell:Bc,decode_cell:nr,decode_range:Ta,format_cell:br,sheet_add_aoa:xs,sheet_add_json:fi,sheet_add_dom:ti,aoa_to_sheet:ka,json_to_sheet:Td,table_to_sheet:ni,table_to_book:Xx,sheet_to_csv:ci,sheet_to_txt:_d,sheet_to_json:Kt,sheet_to_html:Gx,sheet_to_formulae:Ed,sheet_to_row_object_array:Kt,sheet_get_cell:Ya,book_new:_0,book_append_sheet:E0,book_set_sheet_visibility:wd,cell_set_number_format:Ad,cell_set_hyperlink:oi,cell_set_internal_link:Fd,cell_add_comment:Sd,sheet_set_array_formula:Cd,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{yn as r,yd a