Files
machartaa_admin_dist/dist/assets/xlsx-6ed613d4.js
T

106 lines
420 KiB
JavaScript
Raw Normal View History

2026-10-05 18:40:49 +03:30
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Ia={};Ia.version="0.18.5";var Nr=1200,Bt=1252,Xc=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],un={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},S0=function(e){Xc.indexOf(e)!=-1&&(Bt=un[0]=e)};function Gc(){S0(1252)}var Gr=function(e){Nr=e,S0(e)};function F0(){Gr(1200),Gc()}function u0(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e.charCodeAt(r);return t}function zc(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function xs(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var ra=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?zc(e.slice(2)):t==254&&r==255?xs(e.slice(2)):t==65279?e.slice(1):e},wa=function(t){return String.fromCharCode(t)},Z0=function(t){return String.fromCharCode(t)},De;function Ug(e){De=e,Gr=function(t){Nr=t,S0(t)},ra=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?De.utils.decode(1200,u0(t.slice(2))):t},wa=function(r){return Nr===1200?String.fromCharCode(r):De.utils.decode(Nr,[r&255,r>>8])[0]},Z0=function(r){return De.utils.decode(Bt,[r])[0]},Vs()}var _t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ra(e){for(var t="",r=0,a=0,n=0,i=0,s=0,f=0,c=0,o=0;o<e.length;)r=e.charCodeAt(o++),i=r>>2,a=e.charCodeAt(o++),s=(r&3)<<4|a>>4,n=e.charCodeAt(o++),f=(a&15)<<2|n>>6,c=n&63,isNaN(a)?f=c=64:isNaN(n)&&(c=64),t+=_t.charAt(i)+_t.charAt(s)+_t.charAt(f)+_t.charAt(c);return t}function br(e){var t="",r=0,a=0,n=0,i=0,s=0,f=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)i=_t.indexOf(e.charAt(o++)),s=_t.indexOf(e.charAt(o++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=_t.indexOf(e.charAt(o++)),a=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(a)),c=_t.indexOf(e.charAt(o++)),n=(f&3)<<6|c,c!==64&&(t+=String.fromCharCode(n));return t}var Te=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),xt=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Tt(e){return Te?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function si(e){return Te?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ir=function(t){return Te?xt(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function za(e){if(typeof ArrayBuffer>"u")return Ir(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a!=e.length;++a)r[a]=e.charCodeAt(a)&255;return t}function At(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function $c(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function hn(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return hn(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var cr=Te?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:xt(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var a=new Uint8Array(r),n=0;for(t=0,r=0;t<e.length;r+=n,++t)if(n=e[t].length,e[t]instanceof Uint8Array)a.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";a.set(new Uint8Array(e[t]),r)}return a}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function Kc(e){for(var t=[],r=0,a=e.length+250,n=Tt(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)n[r++]=s;else if(s<2048)n[r++]=192|s>>6&31,n[r++]=128|s&63;else if(s>
`)+`\r
`}function bc(m){var E=m.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(W){var H=W.charCodeAt(0).toString(16).toUpperCase();return"="+(H.length==1?"0"+H:H)});E=E.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),E.charAt(0)==`
`&&(E="=0D"+E.slice(1)),E=E.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var _=[],k=E.split(`\r
`),T=0;T<k.length;++T){var S=k[T];if(S.length==0){_.push("");continue}for(var U=0;U<S.length;){var K=76,M=S.slice(U,U+K);M.charAt(K-1)=="="?K--:M.charAt(K-2)=="="?K-=2:M.charAt(K-3)=="="&&(K-=3),M=S.slice(U,U+K),U+=K,U<S.length&&(M+="="),_.push(M)}}return _.join(`\r
`)}function Pc(m){for(var E=[],_=0;_<m.length;++_){for(var k=m[_];_<=m.length&&k.charAt(k.length-1)=="=";)k=k.slice(0,k.length-1)+m[++_];E.push(k)}for(var T=0;T<E.length;++T)E[T]=E[T].replace(/[=][0-9A-Fa-f]{2}/g,function(S){return String.fromCharCode(parseInt(S.slice(1),16))});return Ir(E.join(`\r
`))}function Lc(m,E,_){for(var k="",T="",S="",U,K=0;K<10;++K){var M=E[K];if(!M||M.match(/^\s*$/))break;var W=M.match(/^(.*?):\s*([^\s].*)$/);if(W)switch(W[1].toLowerCase()){case"content-location":k=W[2].trim();break;case"content-type":S=W[2].trim();break;case"content-transfer-encoding":T=W[2].trim();break}}switch(++K,T.toLowerCase()){case"base64":U=Ir(br(E.slice(K).join("")));break;case"quoted-printable":U=Pc(E.slice(K));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var H=P0(m,k.slice(_.length),U,{unsafe:!0});S&&(H.ctype=S)}function Bc(m,E){if(V(m.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var _=E&&E.root||"",k=(Te&&Buffer.isBuffer(m)?m.toString("binary"):V(m)).split(`\r
`),T=0,S="";for(T=0;T<k.length;++T)if(S=k[T],!!/^Content-Location:/i.test(S)&&(S=S.slice(S.indexOf("file")),_||(_=S.slice(0,S.lastIndexOf("/")+1)),S.slice(0,_.length)!=_))for(;_.length>0&&(_=_.slice(0,_.length-1),_=_.slice(0,_.lastIndexOf("/")+1),S.slice(0,_.length)!=_););var U=(k[1]||"").match(/boundary="(.*?)"/);if(!U)throw new Error("MAD cannot find boundary");var K="--"+(U[1]||""),M=[],W=[],H={FileIndex:M,FullPaths:W};F(H);var q,se=0;for(T=0;T<k.length;++T){var ue=k[T];ue!==K&&ue!==K+"--"||(se++&&Lc(H,k.slice(q,T),_),q=T)}return H}function Mc(m,E){var _=E||{},k=_.boundary||"SheetJS";k="------="+k;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+k.slice(2)+'"',"","",""],S=m.FullPaths[0],U=S,K=m.FileIndex[0],M=1;M<m.FullPaths.length;++M)if(U=m.FullPaths[M].slice(S.length),K=m.FileIndex[M],!(!K.size||!K.content||U=="Sh33tJ5")){U=U.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(_e){return"_x"+_e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(_e){return"_u"+_e.charCodeAt(0).toString(16)+"_"});for(var W=K.content,H=Te&&Buffer.isBuffer(W)?W.toString("binary"):V(W),q=0,se=Math.min(1024,H.length),ue=0,ee=0;ee<=se;++ee)(ue=H.charCodeAt(ee))>=32&&ue<128&&++q;var oe=q>=se*4/5;T.push(k),T.push("Content-Location: "+(_.root||"file:///C:/SheetJS/")+U),T.push("Content-Transfer-Encoding: "+(oe?"quoted-printable":"base64")),T.push("Content-Type: "+Rc(K,U)),T.push(""),T.push(oe?bc(H):Nc(H))}return T.push(k+`--\r
`),T.join(`\r
`)}function Uc(m){var E={};return F(E,m),E}function P0(m,E,_,k){var T=k&&k.unsafe;T||F(m);var S=!T&&xe.find(m,E);if(!S){var U=m.FullPaths[0];E.slice(0,U.length)==U?U=E:(U.slice(-1)!="/"&&(U+="/"),U=(U+E).replace("//","/")),S={name:n(E),type:2},m.FileIndex.push(S),m.FullPaths.push(U),T||xe.utils.cfb_gc(m)}return S.content=_,S.size=_?_.length:0,k&&(k.CLSID&&(S.clsid=k.CLSID),k.mt&&(S.mt=k.mt),k.ct&&(S.ct=k.ct)),S}function Wc(m,E){F(m);var _=xe.find(m,E);if(_){for(var k=0;k<m.FileIndex.length;++k)if(m.FileIndex[k]==_)return m.FileIndex.splice(k,1),m.FullPaths.splice(k,1),!0}return!1}function Hc(m,E,_){F(m);var k=xe.find(m,E);if(k){for(var T=0;T<m.FileIndex.length;++T)if(m.FileIndex[T]==k)return m.FileIndex[T].name=n(_),m.FullPaths[T]=_,!0}return!1}function Vc(m){I(m,!0)}return t.find=X,t.read=N,t.parse=l,t.write=ve,t.writeFile=Pe,t.utils={cfb_new:Uc,cfb_add:P0,cfb_del:Wc,cfb_mov:Hc,cfb_gc:Vc,ReadShift:Ta,CheckField:Xs,prep_blob:ur,bconcat:cr,use_zlib:C,_deflateRaw:Se,_inflateRaw:ai,consts:ce},t}();let Et;function Wg(e){Et=e}function Eo(e){return typeof e=="string"?za(e):Array.isArray(e)?$c(e):e}function Ka(e,t,r){if(typeof Et<"u"&&Et.writeFileSync)return r?Et.writeFileSync(e,t,r):Et.writeFileSync(e,t);if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=za(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var a=r=="utf8"?tt(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(a,e);if(typeof Blob<"u"){var n=new Blob([Eo(a)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(n,e);if(typeof saveAs<"u")return saveAs(n,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(n);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(t)&&(t=At(t)),f.write(t),f.close(),t}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+e)}function To(e){if(typeof Et<"u")return Et.readFileSync(e);if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(a){if(!a.message||!a.message.match(/onstruct/))throw a}throw new Error("Cannot access file "+e)}function Ye(e){for(var t=Object.keys(e),r=[],a=0;a<t.length;++a)Object.prototype.hasOwnProperty.call(e,t[a])&&r.push(t[a]);return r}function di(e,t){for(var r=[],a=Ye(e),n=0;n!==a.length;++n)r[e[a[n]][t]]==null&&(r[e[a[n]][t]]=a[n]);return r}function y0(e){for(var t=[],r=Ye(e),a=0;a!==r.length;++a)t[e[r[a]]]=r[a];return t}function A0(e){for(var t=[],r=Ye(e),a=0;a!==r.length;++a)t[e[r[a]]]=parseInt(r[a],10);return t}function So(e){for(var t=[],r=Ye(e),a=0;a!==r.length;++a)t[e[r[a]]]==null&&(t[e[r[a]]]=[]),t[e[r[a]]].push(r[a]);return t}var v0=new Date(1899,11,30,0,0,0);function ir(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var a=v0.getTime()+(e.getTimezoneOffset()-v0.getTimezoneOffset())*6e4;return(r-a)/(24*60*60*1e3)}var Fs=new Date,Fo=v0.getTime()+(Fs.getTimezoneOffset()-v0.getTimezoneOffset())*6e4,vi=Fs.getTimezoneOffset();function C0(e){var t=new Date;return t.setTime(e*24*60*60*1e3+Fo),t.getTimezoneOffset()!==vi&&t.setTime(t.getTime()+(t.getTimezoneOffset()-vi)*6e4),t}function yo(e){var t=0,r=0,a=!1,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 i=1;i!=n.le
`,Io=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,gi=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,Ro=/<[^>]*>/g,Er=Qe.match(gi)?gi:Ro,No=/<\w*:/,bo=/<(\/?)\w+:/;function me(e,t,r){for(var a={},n=0,i=0;n!==e.length&&!((i=e.charCodeAt(n))===32||i===10||i===13);++n);if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var s=e.match(Io),f=0,c="",o=0,l="",u="",x=1;if(s)for(o=0;o!=s.length;++o){for(u=s[o],i=0;i!=u.length&&u.charCodeAt(i)!==61;++i);for(l=u.slice(0,i).trim();u.charCodeAt(i+1)==32;)++i;for(x=(n=u.charCodeAt(i+1))==34||n==39?1:0,c=u.slice(i+1+x,u.length-x),f=0;f!=l.length&&l.charCodeAt(f)!==58;++f);if(f===l.length)l.indexOf("_")>0&&(l=l.slice(0,l.indexOf("_"))),a[l]=c,r||(a[l.toLowerCase()]=c);else{var d=(f===5&&l.slice(0,5)==="xmlns"?"xmlns":"")+l.slice(f+1);if(a[d]&&l.slice(f-3,f)=="ext")continue;a[d]=c,r||(a[d.toLowerCase()]=c)}}return a}function it(e){return e.replace(bo,"<$1")}var Is={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},mn=y0(Is),Oe=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(a){var n=a+"",i=n.indexOf("<![CDATA[");if(i==-1)return n.replace(e,function(f,c){return Is[f]||String.fromCharCode(parseInt(c,f.indexOf("x")>-1?16:10))||f}).replace(t,function(f,c){return String.fromCharCode(parseInt(c,16))});var s=n.indexOf("]]>");return r(n.slice(0,i))+n.slice(i+9,s)+r(n.slice(s+3))}}(),gn=/[&<>'"]/g,Po=/[\u0000-\u0008\u000b-\u001f]/g;function be(e){var t=e+"";return t.replace(gn,function(r){return mn[r]}).replace(Po,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function _i(e){return be(e).replace(/ /g,"_x0020_")}var Rs=/[\u0000-\u001f]/g;function _n(e){var t=e+"";return t.replace(gn,function(r){return mn[r]}).replace(/\n/g,"<br/>").replace(Rs,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Lo(e){var t=e+"";return t.replace(gn,function(r){return mn[r]}).replace(Rs,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var wi=function(){var e=/&#(\d+);/g;function t(r,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,t)}}();function Bo(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function We(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function M0(e){for(var t="",r=0,a=0,n=0,i=0,s=0,f=0;r<e.length;){if(a=e.charCodeAt(r++),a<128){t+=String.fromCharCode(a);continue}if(n=e.charCodeAt(r++),a>191&&a<224){s=(a&31)<<6,s|=n&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),a<240){t+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function ki(e){var t=Tt(2*e.length),r,a,n=1,i=0,s=0,f;for(a=0;a<e.length;a+=n)n=1,(f=e.charCodeAt(a))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(a+1)&63),n=2):f<240?(r=(f&15)*4096+(e.charCodeAt(a+1)&63)*64+(e.charCodeAt(a+2)&63),n=3):(n=4,r=(f&7)*262144+(e.charCodeAt(a+1)&63)*4096+(e.charCodeAt(a+2)&63)*64+(e.charCodeAt(a+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function Ei(e){return xt(e,"binary").toString("utf8")}var r0="foo bar baz☃🍣",Le=Te&&(Ei(r0)==M0(r0)&&Ei||ki(r0)==M0(r0)&&ki)||M0,tt=Te?function(e){return xt(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r<e.length;)switch(a=e.charCodeAt(r++),!0){case a<128:t.push(String.fromCharCode(a));break;case a<2048:t.push(String.fromCharCode(192+(a>>6))),t.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6
`).replace(/<[^>]*>/g,""),n=0;n<e.length;++n)a=a.replace(e[n][0],e[n][1]);return a}}(),Mo=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),Uo=/<\/?(?:vt:)?variant>/g,Wo=/<(?:vt:)([^>]*)>([\s\S]*)</;function Ti(e,t){var r=me(e),a=e.match(Mo(r.baseType))||[],n=[];if(a.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+a.length+" != "+r.size);return n}return a.forEach(function(i){var s=i.replace(Uo,"").match(Wo);s&&n.push({v:Le(s[2]),t:s[1]})}),n}var bs=/(^\s|\s$|\n)/;function hr(e,t){return"<"+e+(t.match(bs)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Pa(e){return Ye(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function ae(e,t,r){return"<"+e+(r!=null?Pa(r):"")+(t!=null?(t.match(bs)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function q0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Ho(e,t){switch(typeof e){case"string":var r=ae("vt:lpwstr",be(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return ae((e|0)==e?"vt:i4":"vt:r8",be(String(e)));case"boolean":return ae("vt:bool",e?"true":"false")}if(e instanceof Date)return ae("vt:filetime",q0(e));throw new Error("Unable to serialize "+e)}function wn(e){if(Te&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Le(At(hn(e)));throw new Error("Bad input format: expected Buffer or string")}var La=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,nr={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"},zt=["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"],Or={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Vo(e,t){for(var r=1-2*(e[t+7]>>>7),a=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),n=e[t+6]&15,i=5;i>=0;--i)n=n*256+e[t+i];return a==2047?n==0?r*(1/0):NaN:(a==0?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}function Xo(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,i=0,s=a?-t:t;isFinite(s)?s==0?n=i=0:(n=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-n),n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?n=-1022:(i-=Math.pow(2,52),n+=1023)):(n=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(n&15)<<4|i&15,e[r+7]=n>>4|a}var Si=function(e){for(var t=[],r=10240,a=0;a<e[0].length;++a)if(e[0][a])for(var n=0,i=e[0][a].length;n<i;n+=r)t.push.apply(t,e[0][a].slice(n,n+r));return t},Fi=Te?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:xt(t)})):Si(e)}:Si,yi=function(e,t,r){for(var a=[],n=t;n<r;n+=2)a.push(String.fromCharCode(lt(e,n)));return a.join("").replace(_r,"")},D0=Te?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le"
`),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
`);return t.push("</manifest:manifest>"),t.join("")}function Ni(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
`,` </rdf:Description>
`].join("")}function Al(e,t){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
`,` </rdf:Description>
`].join("")}function Cl(e){var t=[Qe];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var r=0;r!=e.length;++r)t.push(Ni(e[r][0],e[r][1])),t.push(Al("",e[r][0]));return t.push(Ni("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function qs(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ia.version+"</meta:generator></office:meta></office:document-meta>"}var zr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Dl=function(){for(var e=new Array(zr.length),t=0;t<zr.length;++t){var r=zr[t],a="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function Qs(e){var t={};e=Le(e);for(var r=0;r<zr.length;++r){var a=zr[r],n=e.match(Dl[r]);n!=null&&n.length>0&&(t[a[1]]=Oe(n[1])),a[2]==="date"&&t[a[1]]&&(t[a[1]]=Ve(t[a[1]]))}return t}function W0(e,t,r,a,n){n[e]!=null||t==null||t===""||(n[e]=t,t=be(t),a[a.length]=r?ae(e,t,r):hr(e,t))}function ef(e,t){var r=t||{},a=[Qe,ae("cp:coreProperties",null,{"xmlns:cp":nr.CORE_PROPS,"xmlns:dc":nr.dc,"xmlns:dcterms":nr.dcterms,"xmlns:dcmitype":nr.dcmitype,"xmlns:xsi":nr.xsi})],n={};if(!e&&!r.Props)return a.join("");e&&(e.CreatedDate!=null&&W0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:q0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),e.ModifiedDate!=null&&W0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:q0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var i=0;i!=zr.length;++i){var s=zr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&W0(s[0],f,null,a,n)}return a.length>2&&(a[a.length]="</cp:coreProperties>",a[1]=a[1].replace("/>",">")),a.join("")}var bt=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],rf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function tf(e,t,r,a){var n=[];if(typeof e=="string")n=Ti(e,a);else for(var i=0;i<e.length;++i)n=n.concat(e[i].map(function(l){return{v:l}}));var s=typeof t=="string"?Ti(t,a).map(function(l){return l.v}):t,f=0,c=0;if(s.length>0)for(var o=0;o!==n.length;o+=2){switch(c=+n[o+1].v,n[o].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=s.slice(f,f+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=s.slice(f,f+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=s.slice(f,f+c);break}f+=c}}function Ol(e,t,r){var a={};return t||(t={}),e=Le(e),bt.forEach(function(n){var i=(e.match(ba(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Oe(i));break;case"bool":t[n[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));s&&s.length>0&&(a[n[1]]=s[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&tf(a.Headin
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),x["!cols"]&&o(v,x["!cols"]),x["!rows"]&&l(v,x["!rows"]),v.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" "));for(var D=p.s.r;D<=p.e.r;++D)for(var b=p.s.c;b<=p.e.c;++b){var N=pe({r:D,c:b});w=y?(x[D]||[])[b]:x[N],!(!w||w.v==null&&(!w.f||w.F))&&h.push(c(w,x,D,b))}return v.join(g)+g+h.join(g)+g+"E"+g}return{to_workbook:f,to_sheet:s,from_sheet:u}}(),Tf=function(){function e(i,s){switch(s.type){case"base64":return t(br(i),s);case"binary":return t(i,s);case"buffer":return t(Te&&Buffer.isBuffer(i)?i.toString("binary"):At(i),s);case"array":return t(Ut(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
`),c=-1,o=-1,l=0,u=[];l!==f.length;++l){if(f[l].trim()==="BOT"){u[++c]=[],o=0;continue}if(!(c<0)){var x=f[l].trim().split(","),d=x[0],v=x[1];++l;for(var h=f[l]||"";(h.match(/["]/g)||[]).length&1&&l<f.length-1;)h+=`
`+f[++l];switch(h=h.trim(),+d){case-1:if(h==="BOT"){u[++c]=[],o=0;continue}else if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?u[c][o]=!0:h==="FALSE"?u[c][o]=!1:isNaN(Yr(v))?isNaN(fa(v).getDate())?u[c][o]=v:u[c][o]=Ve(v):u[c][o]=Yr(v),++o;break;case 1:h=h.slice(1,h.length-1),h=h.replace(/""/g,'"'),h&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),u[c][o++]=h!==""?h:null;break}if(h==="EOD")break}}return s&&s.sheetRows&&(u=u.slice(0,s.sheetRows)),u}function r(i,s){return ha(e(i,s),s)}function a(i,s){return Ct(r(i,s),s)}var n=function(){var i=function(c,o,l,u,x){c.push(o),c.push(l+","+u),c.push('"'+x.replace(/"/g,'""')+'"')},s=function(c,o,l,u){c.push(o+","+l),c.push(o==1?'"'+u.replace(/"/g,'""')+'"':u)};return function(c){var o=[],l=Ae(c["!ref"]),u,x=Array.isArray(c);i(o,"TABLE",0,1,"sheetjs"),i(o,"VECTORS",0,l.e.r-l.s.r+1,""),i(o,"TUPLES",0,l.e.c-l.s.c+1,""),i(o,"DATA",0,0,"");for(var d=l.s.r;d<=l.e.r;++d){s(o,-1,0,"BOT");for(var v=l.s.c;v<=l.e.c;++v){var h=pe({r:d,c:v});if(u=x?(c[d]||[])[v]:c[h],!u){s(o,1,0,"");continue}switch(u.t){case"n":var p=u.w;!p&&u.v!=null&&(p=u.v),p==null?u.f&&!u.F?s(o,1,0,"="+u.f):s(o,1,0,""):s(o,0,p,"V");break;case"b":s(o,0,u.v?1:0,u.v?"TRUE":"FALSE");break;case"s":s(o,1,0,isNaN(u.v)?u.v:'="'+u.v+'"');break;case"d":u.w||(u.w=Pr(u.z||de[14],ir(Ve(u.v)))),s(o,0,u.w,"V");break;default:s(o,1,0,"")}}}s(o,-1,0,"EOD");var w=`\r
`,y=o.join(w);return y}}();return{to_workbook:a,to_sheet:r,from_sheet:n}}(),Sf=function(){function e(u){return u.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(u){return u.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(u,x){for(var d=u.split(`
`),v=-1,h=-1,p=0,w=[];p!==d.length;++p){var y=d[p].trim().split(":");if(y[0]==="cell"){var g=ze(y[1]);if(w.length<=g.r)for(v=w.length;v<=g.r;++v)w[v]||(w[v]=[]);switch(v=g.r,h=g.c,y[2]){case"t":w[v][h]=e(y[3]);break;case"v":w[v][h]=+y[3];break;case"vtf":var D=y[y.length-1];case"vtc":switch(y[3]){case"nl":w[v][h]=!!+y[4];break;default:w[v][h]=+y[4];break}y[2]=="vtf"&&(w[v][h]=[w[v][h],D])}}}return x&&x.sheetRows&&(w=w.slice(0,x.sheetRows)),w}function a(u,x){return ha(r(u,x),x)}function n(u,x){return Ct(a(u,x),x)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),c="--SocialCalcSpreadsheetControlSave--";function o(u){if(!u||!u["!ref"])return"";for(var x=[],d=[],v,h="",p=yr(u["!ref"]),w=Array.isArray(u),y=p.s.r;y<=p.e.r;++y)for(var g=p.s.c;g<=p.e.c;++g)if(h=pe({r:y,c:g}),v=w?(u[y]||[])[g]:u[h],!(!v||v.v==null||v.t==="z")){switch(d=["cell",h,"t"],v.t){case"s":case"str":d.push(t(v.v));break;case"n":v.f?(d[2]="vtf",d[3]="n",d[4]=v.v,d[5]=t(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]=t(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var D=ir(Ve(v.v));d[2]="vtc",d[3]="nd",d[4]=""+D,d[5]=v.w||Pr(v.z||de[14],D);break;case"e":continue}x.push(d.join(":"))}return x.push("sheet:c:"+(p.e.c-p.s.c+1)+":r:"+(p.e.r-p.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
`)}function l(u){return[i,s,f,s,o(u),c].join(`
`)}return{to_workbook:n,to_sheet:a,from_sheet:l}}(),ca=function(){function e(l,u,x,d,v){v.raw?u[x][d]=l:l===""||(l==="TRUE"?u[x][d]=!0:l==="FALSE"?u[x][d]=!1:isNaN(Yr(l))?isNaN(fa(l).getDate())?u[x][d]=l:u[x][d]=Ve(l):u[x][d]=Yr(l))}function t(l,u){var x=u||{},d=[];if(!l||l.length===0)return d;for(var v=l.split(/[\r\n]/),h=v.length-1;h>=0&&v[h].length===0;)--h;for(var p=10,w=0,y=0;y<=h;++y)w=v[y].indexOf(" "),w==-1?w=v[y].length:w++,p=Math.max(p,w);for(y=0;y<=h;++y){d[y]=[];var g=0;for(e(v[y].slice(0,p).trim(),d,y,g,x),g=1;g<=(v[y].length-p)/10+1;++g)e(v[y].slice(p+(g-1)*10,p+g*10).trim(),d,y,g,x)}return x.sheetRows&&(d=d.slice(0,x.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(l){for(var u={},x=!1,d=0,v=0;d<l.length;++d)(v=l.charCodeAt(d))==34?x=!x:!x&&v in r&&(u[v]=(u[v]||0)+1);v=[];for(d in u)Object.prototype.hasOwnProperty.call(u,d)&&v.push([u[d],d]);if(!v.length){u=a;for(d in u)Object.prototype.hasOwnProperty.call(u,d)&&v.push([u[d],d])}return v.sort(function(h,p){return h[0]-p[0]||a[h[1]]-a[p[1]]}),r[v.pop()[1]]||44}function i(l,u){var x=u||{},d="",v=x.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};l.slice(0,4)=="sep="?l.charCodeAt(5)==13&&l.charCodeAt(6)==10?(d=l.charAt(4),l=l.slice(7)):l.charCodeAt(5)==13||l.charCodeAt(5)==10?(d=l.charAt(4),l=l.slice(6)):d=n(l.slice(0,1024)):x&&x.FS?d=x.FS:d=n(l.slice(0,1024));var p=0,w=0,y=0,g=0,D=0,b=d.charCodeAt(0),N=!1,F=0,B=l.charCodeAt(0);l=l.replace(/\r\n/mg,`
`);var I=x.dateNF!=null?_o(x.dateNF):null;function z(){var X=l.slice(g,D),L={};if(X.charAt(0)=='"'&&X.charAt(X.length-1)=='"'&&(X=X.slice(1,-1).replace(/""/g,'"')),X.length===0)L.t="z";else if(x.raw)L.t="s",L.v=X;else if(X.trim().length===0)L.t="s",L.v=X;else if(X.charCodeAt(0)==61)X.charCodeAt(1)==34&&X.charCodeAt(X.length-1)==34?(L.t="s",L.v=X.slice(2,-1).replace(/""/g,'"')):Kx(X)?(L.t="n",L.f=X.slice(1)):(L.t="s",L.v=X);else if(X=="TRUE")L.t="b",L.v=!0;else if(X=="FALSE")L.t="b",L.v=!1;else if(!isNaN(y=Yr(X)))L.t="n",x.cellText!==!1&&(L.w=X),L.v=y;else if(!isNaN(fa(X).getDate())||I&&X.match(I)){L.z=x.dateNF||de[14];var J=0;I&&X.match(I)&&(X=wo(X,x.dateNF,X.match(I)||[]),J=1),x.cellDates?(L.t="d",L.v=Ve(X,J)):(L.t="n",L.v=ir(Ve(X,J))),x.cellText!==!1&&(L.w=Pr(L.z,L.v instanceof Date?ir(L.v):L.v)),x.cellNF||delete L.z}else L.t="s",L.v=X;if(L.t=="z"||(x.dense?(v[p]||(v[p]=[]),v[p][w]=L):v[pe({c:w,r:p})]=L),g=D+1,B=l.charCodeAt(g),h.e.c<w&&(h.e.c=w),h.e.r<p&&(h.e.r=p),F==b)++w;else if(w=0,++p,x.sheetRows&&x.sheetRows<=p)return!0}e:for(;D<l.length;++D)switch(F=l.charCodeAt(D)){case 34:B===34&&(N=!N);break;case b:case 10:case 13:if(!N&&z())break e;break}return D-g>0&&z(),v["!ref"]=we(h),v}function s(l,u){return!(u&&u.PRN)||u.FS||l.slice(0,4)=="sep="||l.indexOf(" ")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?i(l,u):ha(t(l,u),u)}function f(l,u){var x="",d=u.type=="string"?[0,0,0,0]:Jn(l,u);switch(u.type){case"base64":x=br(l);break;case"binary":x=l;break;case"buffer":u.codepage==65001?x=l.toString("utf8"):u.codepage&&typeof De<"u"?x=De.utils.decode(u.codepage,l):x=Te&&Buffer.isBuffer(l)?l.toString("binary"):At(l);break;case"array":x=Ut(l);break;case"string":x=l;break;default:throw new Error("Unrecognized type "+u.type)}return d[0]==239&&d[1]==187&&d[2]==191?x=Le(x.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?x=Le(x):u.type=="binary"&&typeof De<"u"&&u.codepage&&(x=De.utils.decode(u.codepage,De.utils.encode(28591,x))),x.slice(0,19)=="socialcalc:version:"?Sf.to_sheet(u.type=="string"?x:Le(x),u):s(x,u)}function c(l,u){return Ct(f(l,u),u)}function o(l){for(var u=[],x=Ae(l["!ref"]),d,v=Array.isArray(l),h=x.s.r;h<=x.e.r;++h){for(var p=[],w=x.s.c;w<=x.e.c;++w){var y=pe({r:h,c:w});if(d=v?(l[h]||[])[w]:l[y],!d||d.v==null){p.push(" ");continue}for(var g=(d.w||(nt(d),d.w)||"").slice(0,10);g.length<10;)g+=" ";p.push(g+(w===0?" ":""))}u.push(p.join(""))}return u.join(`
`)}return{to_workbook:c,to_sheet:f,from_sheet:o}}();function Nh(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=Ef.to_workbook(e,r);return r.WTF=a,n}catch(i){if(r.WTF=a,!i.message.match(/SYLK bad record ID/)&&a)throw i;return ca.to_workbook(e,t)}}var Pt=function(){function e(C,P,O){if(C){ur(C,C.l||0);for(var R=O.Enum||ve;C.l<C.length;){var j=C.read_shift(2),re=R[j]||R[65535],te=C.read_shift(2),Q=C.l+te,Z=re.f&&re.f(C,te,O);if(C.l=Q,P(Z,re,j))return}}}function t(C,P){switch(P.type){case"base64":return r(Ir(br(C)),P);case"binary":return r(Ir(C),P);case"buffer":case"array":return r(C,P)}throw"Unsupported type "+P.type}function r(C,P){if(!C)return C;var O=P||{},R=O.dense?[]:{},j="Sheet1",re="",te=0,Q={},Z=[],Ee=[],A={s:{r:0,c:0},e:{r:0,c:0}},Ue=O.sheetRows||0;if(C[2]==0&&(C[3]==8||C[3]==9)&&C.length>=16&&C[14]==5&&C[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(C[2]==2)O.Enum=ve,e(C,function(fe,Je,Lr){switch(Lr){case 0:O.vers=fe,fe>=4096&&(O.qpro=!0);break;case 6:A=fe;break;case 204:fe&&(re=fe);break;case 222:re=fe;break;case 15:case 51:O.qpro||(fe[1].v=fe[1].v.slice(1));case 13:case 14:case 16:Lr==14&&(fe[2]&112)==112&&(fe[2]&15)>1&&(fe[2]&15)<15&&(fe[1].z=O.dateNF||de[14],O.cellDates&&(fe[1].t="d",fe[1].v=C0(fe[1].v))),O.qpro&&fe[3]>te&&(R["!ref"]=we(A),Q[j]=R,Z.push(j),R=O.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},te=fe[3],j=re||"Sheet"+(te+1),re="");var Zr=O.dense?(R[fe[0].r]||[])[fe[0].c]:R[pe(fe[0])];if(Zr){Zr.t=fe[1].t,Zr.v=fe[1].v,fe[1].z!=null&&(Zr.z=fe[1].z),fe[1].f!=null&&(Zr.f=fe[1].f);break}O.dense?(R[fe[0].r]||(R[fe[0].r]=[]),R[fe[0].r][fe[0].c]=fe[1]):R[pe(fe[0])]=fe[1];break}},O);else if(C[2]==26||C[2]==14)O.Enum=ge,C[2]==14&&(O.qpro=!0,C.l=0),e(C,function(fe,Je,Lr){switch(Lr){case 204:j=fe;break;case 22:fe[1].v=fe[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(fe[3]>te&&(R["!ref"]=we(A),Q[j]=R,Z.push(j),R=O.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},te=fe[3],j="Sheet"+(te+1)),Ue>0&&fe[0].r>=Ue)break;O.dense?(R[fe[0].r]||(R[fe[0].r]=[]),R[fe[0].r][fe[0].c]=fe[1]):R[pe(fe[0])]=fe[1],A.e.c<fe[0].c&&(A.e.c=fe[0].c),A.e.r<fe[0].r&&(A.e.r=fe[0].r);break;case 27:fe[14e3]&&(Ee[fe[14e3][0]]=fe[14e3][1]);break;case 1537:Ee[fe[0]]=fe[1],fe[0]==te&&(j=fe[1]);break}},O);else throw new Error("Unrecognized LOTUS BOF "+C[2]);if(R["!ref"]=we(A),Q[re||j]=R,Z.push(re||j),!Ee.length)return{SheetNames:Z,Sheets:Q};for(var Ce={},Be=[],ye=0;ye<Ee.length;++ye)Q[Z[ye]]?(Be.push(Ee[ye]||Z[ye]),Ce[Ee[ye]]=Q[Ee[ye]]||Q[Z[ye]]):(Be.push(Ee[ye]),Ce[Ee[ye]]={"!ref":"A1"});return{SheetNames:Be,Sheets:Ce}}function a(C,P){var O=P||{};if(+O.codepage>=0&&Gr(+O.codepage),O.type=="string")throw new Error("Cannot write WK1 to JS string");var R=Cr(),j=Ae(C["!ref"]),re=Array.isArray(C),te=[];ne(R,0,i(1030)),ne(R,6,c(j));for(var Q=Math.min(j.e.r,8191),Z=j.s.r;Z<=Q;++Z)for(var Ee=Ke(Z),A=j.s.c;A<=j.e.c;++A){Z===j.s.r&&(te[A]=He(A));var Ue=te[A]+Ee,Ce=re?(C[Z]||[])[A]:C[Ue];if(!(!Ce||Ce.t=="z"))if(Ce.t=="n")(Ce.v|0)==Ce.v&&Ce.v>=-32768&&Ce.v<=32767?ne(R,13,d(Z,A,Ce.v)):ne(R,14,h(Z,A,Ce.v));else{var Be=nt(Ce);ne(R,15,u(Z,A,Be.slice(0,239)))}}return ne(R,1),R.end()}function n(C,P){var O=P||{};if(+O.codepage>=0&&Gr(+O.codepage),O.type=="string")throw new Error("Cannot write WK3 to JS string");var R=Cr();ne(R,0,s(C));for(var j=0,re=0;j<C.SheetNames.length;++j)(C.Sheets[C.SheetNames[j]]||{})["!ref"]&&ne(R,27,V(C.SheetNames[j],re++));var te=0;for(j=0;j<C.SheetNames.length;++j){var Q=C.Sheets[C.SheetNames[j]];if(!(!Q||!Q["!ref"])){for(var Z=Ae(Q["!ref"]),Ee=Array.isArray(Q),A=[],Ue=Math.min(Z.e.r,8191),Ce=Z.s.r;Ce<=Ue;++Ce)for(var Be=Ke(Ce),ye=Z.s.c;ye<=Z.e.c;++ye){Ce===Z.s.r&&(A[ye]=He(ye));var fe=A[ye]+Be,Je=Ee?(Q[Ce]||[])[ye]:Q[fe];if(!(!Je||Je.t=="z"))if(Je.t=="n")ne(R,23,z(Ce,ye,te,Je.v));else{var Lr=nt(Je);ne(R,22,F(Ce,ye,te,Lr.slice(0,239)))}}++te}}return ne(R,1),R.end()}function i(C){var P=G(2);return P.write_shift(2,C),P}function s(C){var P=G(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var O=0,R=0,j=0,re=0;re<C.SheetNames.length;++re){var te=C.SheetNames[re],Q=C.Sheets[te];if(!(!Q||!Q["!ref"])){+
<metadataTypes count="1">
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
</metadataTypes>
<futureMetadata name="XLDAPR" count="1">
<bk>
<extLst>
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
</ext>
</extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk>
<rc t="1" v="0"/>
</bk>
</cellMetadata>
</metadata>`),e.join("")}function Tx(e){var t=[];if(!e)return t;var r=1;return(e.match(Er)||[]).forEach(function(a){var n=me(a);switch(n[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,t.push(n);break}}),t}function Sx(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=pe(r);var a=e.read_shift(1);return a&2&&(t.l="1"),a&8&&(t.a="1"),t}function Fx(e,t,r){var a=[];return dt(e,function(i,s,f){switch(f){case 63:a.push(i);break;default:if(!s.T)throw new Error("Unexpected record 0x"+f.toString(16))}}),a}function yx(e,t,r,a){if(!e)return e;var n=a||{},i=!1;dt(e,function(f,c,o){switch(o){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!c.T){if(!i||n.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}},n)}function Ax(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var ta=1024;function Bf(e,t){for(var r=[21600,21600],a=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[ae("xml",null,{"xmlns:v":Or.v,"xmlns:o":Or.o,"xmlns:x":Or.x,"xmlns:mv":Or.mv}).replace(/\/>/,">"),ae("o:shapelayout",ae("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ae("v:shapetype",[ae("v:stroke",null,{joinstyle:"miter"}),ae("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:a})];ta<e*1e3;)ta+=1e3;return t.forEach(function(i){var s=ze(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var c=f.type=="gradient"?ae("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=ae("v:fill",c,f),l={on:"t",obscured:"t"};++ta,n=n.concat(["<v:shape"+Pa({id:"_x0000_s"+ta,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,ae("v:shadow",null,l),ae("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",hr("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),hr("x:AutoFill","False"),hr("x:Row",String(s.r)),hr("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),n.push("</xml>"),n.join("")}function Ji(e,t,r,a){var n=Array.isArray(e),i;t.forEach(function(s){var f=ze(s.ref);if(n?(e[f.r]||(e[f.r]=[]),i=e[f.r][f.c]):i=e[s.ref],!i){i={t:"z"},n?e[f.r][f.c]=i:e[s.ref]=i;var c=Ae(e["!ref"]||"BDWGO1000001:A1");c.s.r>f.r&&(c.s.r=f.r),c.e.r<f.r&&(c.e.r=f.r),c.s.c>f.c&&(c.s.c=f.c),c.e.c<f.c&&(c.e.c=f.c);var o=we(c);o!==e["!ref"]&&(e["!ref"]=o)}i.c||(i.c=[]);var l={a:s.author,t:s.t,r:s.r,T:r};s.h&&(l.h=s.h);for(var u=i.c.length-1;u>=0;--u){if(!r&&i.c[u].T)return;r&&!i.c[u].T&&i.c.splice(u,1)}if(r&&a){for(u=0;u<a.length;++u)if(l.a==a[u].id){l.a=a[u].name||l.a;break}}i.c.push(l)})}function Cx(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var f=s.match(/<(?:\w+:)?author[^>]*>(.*)/);f&&r.push(f[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var f=s.match(/<(?:\w+:)?comment[^>]*>/);if(f){var c=me(f[0]),o={author:c.authorId&&r[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},l=ze(c.ref);if(!(t.sheetRows&&t.sheetRows<=l.r)){var u=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),x=!!u&&!!u[1]&&Bn(u[1])||{r:"",t:"",h:""};o.r=x.r,x.r=="<t></t>"&&(x.t=x.h=""),o.t=(x.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),t.cellHTML&&(o.h=x.h),a.push(o)}}}}),a}function Mf(e){var t=[Qe,ae("comments",null,{xmlns:zt[0]})],r=[];return t.push("<authors>"),e.forEach(function(a){a[1].forEach(function(n){var i=be(n.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),n.T&&n.ID&&r.indexOf("tc="+n.ID)==-1&&(r.push("tc="+n.ID),t.push("<author>tc="+n.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(a){var n=0,i=[];if(a[1][0]&&a[1][0].T&&a[1][0].ID?n=r.indexOf("tc="+a[1][0].ID):a[1].forEach(function(c){c.a&&(n=r.indexOf(be(c.a))),i.push(c.t||"")}),t.push('<comment ref="'+a[0]+'" authorId="'+n+'"><text>'),i.length<=1)t.push(hr("t",be(i[0]||"")));else{for(var s=`Comment:
`+i[0]+`
`,f=1;f<i.length;++f)s+=`Reply:
`+i[f]+`
`;t.push(hr("t",be(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Dx(e,t){var r=[],a=!1,n={},i=0;return e.replace(Er,function(f,c){var o=me(f);switch(it(o[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":n={author:o.personId,guid:o.id,ref:o.ref,T:1};break;case"</threadedComment>":n.t!=null&&r.push(n);break;case"<text>":case"<text":i=c+f.length;break;case"</text>":n.t=e.slice(i,c).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":a=!0;break;case"</mentions>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return f}),r}function Ox(e,t,r){var a=[Qe,ae("ThreadedComments",null,{xmlns:nr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(n){var i="";(n[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var c={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=c.id:c.parentId=i,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),a.push(ae("threadedComment",hr("text",s.t||""),c))})}),a.push("</ThreadedComments>"),a.join("")}function Ix(e,t){var r=[],a=!1;return e.replace(Er,function(i){var s=me(i);switch(it(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function Rx(e){var t=[Qe,ae("personList",null,{xmlns:nr.TCMNT,"xmlns:x":zt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,a){t.push(ae("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+a).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function Nx(e){var t={};t.iauthor=e.read_shift(4);var r=Yt(e);return t.rfx=r.s,t.ref=pe(r.s),e.l+=16,t}function bx(e,t){return t==null&&(t=G(36)),t.write_shift(4,e[1].iauthor),xa(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Px=wr;function Lx(e){return or(e.slice(0,54))}function Bx(e,t){var r=[],a=[],n={},i=!1;return dt(e,function(f,c,o){switch(o){case 632:a.push(f);break;case 635:n=f;break;case 637:n.t=f.t,n.h=f.h,n.r=f.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!c.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}),r}function Mx(e){var t=Cr(),r=[];return Y(t,628),Y(t,630),e.forEach(function(a){a[1].forEach(function(n){r.indexOf(n.a)>-1||(r.push(n.a.slice(0,54)),Y(t,632,Lx(n.a)))})}),Y(t,631),Y(t,633),e.forEach(function(a){a[1].forEach(function(n){n.iauthor=r.indexOf(n.a);var i={s:ze(a[0]),e:ze(a[0])};Y(t,635,bx([i,n])),n.t&&n.t.length>0&&Y(t,637,sl(n)),Y(t,636),delete n.iauthor})}),Y(t,634),Y(t,629),t.end()}var Ux="application/vnd.ms-office.vbaProject";function Wx(e){var t=xe.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,a){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");xe.utils.cfb_add(t,n,e.FileIndex[a].content)}}),xe.write(t)}function Hx(e,t){t.FullPaths.forEach(function(r,a){if(a!=0){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&xe.utils.cfb_add(e,n,t.FileIndex[a].content)}})}var Uf=["xlsb","xlsm","xlam","biff8","xla"];function Vx(){return{"!type":"dialog"}}function Xx(){return{"!type":"dialog"}}function Gx(){return{"!type":"macro"}}function zx(){return{"!type":"macro"}}var ia=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(a,n,i,s){var f=!1,c=!1;i.length==0?c=!0:i.charAt(0)=="["&&(c=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var o=i.length>0?parseInt(i,10)|0:0,l=s.length>0?parseInt(s,10)|0:0;return f?l+=t.c:--l,c?o+=t.r:--o,n+(f?"":"$")+He(l)+(c?"":"$")+Ke(o)}return function(n,i){return t=i,n.replace(e,r)}}(),Hn=/(^|[^._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})(?![_.\
`),l.xlfn||(N.f=Zi(N.f)),w[0].indexOf('t="array"')>-1)N.F=(b.match(n)||[])[1],N.F.indexOf(":")>-1&&he.push([Ae(N.F),N.F]);else if(w[0].indexOf('t="shared"')>-1){X=me(w[0]);var Q=Oe(Le(w[1]));l.xlfn||(Q=Zi(Q)),ce[parseInt(X.si,10)]=[X,Q,F.r]}}else(w=b.match(/<f[^>]*\/>/))&&(X=me(w[0]),ce[X.si]&&(N.f=$x(ce[X.si][1],ce[X.si][2],F.r)));var Z=ze(F.r);for(g=0;g<he.length;++g)Z.r>=he[g][0].s.r&&Z.r<=he[g][0].e.r&&Z.c>=he[g][0].s.c&&Z.c<=he[g][0].e.c&&(N.F=he[g][1])}if(F.t==null&&N.v===void 0)if(N.f||N.F)N.v=0,N.t="n";else if(C)N.t="z";else continue;else N.t=F.t||"n";switch(u.s.c>I&&(u.s.c=I),u.e.c<I&&(u.e.c=I),N.t){case"n":if(N.v==""||N.v==null){if(!C)continue;N.t="z"}else N.v=parseFloat(N.v);break;case"s":if(typeof N.v>"u"){if(!C)continue;N.t="z"}else z=Aa[parseInt(N.v,10)],N.v=z.t,N.r=z.r,l.cellHTML&&(N.h=z.h);break;case"str":N.t="s",N.v=N.v!=null?Le(N.v):"",l.cellHTML&&(N.h=_n(N.v));break;case"inlineStr":w=b.match(a),N.t="s",w!=null&&(z=Bn(w[1]))?(N.v=z.t,l.cellHTML&&(N.h=z.h)):N.v="";break;case"b":N.v=We(N.v);break;case"d":l.cellDates?N.v=Ve(N.v,1):(N.v=ir(Ve(N.v,1)),N.t="n");break;case"e":(!l||l.cellText!==!1)&&(N.w=N.v),N.v=Js[N.v];break}if(L=J=0,ie=null,le&&F.s!==void 0&&(ie=d.CellXf[F.s],ie!=null&&(ie.numFmtId!=null&&(L=ie.numFmtId),l.cellStyles&&ie.fillId!=null&&(J=ie.fillId))),jf(N,L,J,l,x,d),l.cellDates&&le&&N.t=="n"&&Gt(de[L])&&(N.t="d",N.v=C0(N.v)),F.cm&&l.xlmeta){var Ee=(l.xlmeta.Cell||[])[+F.cm-1];Ee&&Ee.type=="XLDAPR"&&(N.D=!0)}if(Pe){var A=ze(F.r);o[A.r]||(o[A.r]=[]),o[A.r][A.c]=N}else o[F.r]=N}}}}V.length>0&&(o["!rows"]=V)}}();function Zv(e,t,r,a){var n=[],i=[],s=Ae(e["!ref"]),f="",c,o="",l=[],u=0,x=0,d=e["!rows"],v=Array.isArray(e),h={r:o},p,w=-1;for(x=s.s.c;x<=s.e.c;++x)l[x]=He(x);for(u=s.s.r;u<=s.e.r;++u){for(i=[],o=Ke(u),x=s.s.c;x<=s.e.c;++x){c=l[x]+o;var y=v?(e[u]||[])[x]:e[c];y!==void 0&&(f=Yv(y,c,e,t))!=null&&i.push(f)}(i.length>0||d&&d[u])&&(h={r:o},d&&d[u]&&(p=d[u],p.hidden&&(h.hidden=1),w=-1,p.hpx?w=Ha(p.hpx):p.hpt&&(w=p.hpt),w>-1&&(h.ht=w,h.customHeight=1),p.level&&(h.outlineLevel=p.level)),n[n.length]=ae("row",i.join(""),h))}if(d)for(;u<d.length;++u)d&&d[u]&&(h={r:u+1},p=d[u],p.hidden&&(h.hidden=1),w=-1,p.hpx?w=Ha(p.hpx):p.hpt&&(w=p.hpt),w>-1&&(h.ht=w,h.customHeight=1),p.level&&(h.outlineLevel=p.level),n[n.length]=ae("row","",h));return n.join("")}function Jf(e,t,r,a){var n=[Qe,ae("worksheet",null,{xmlns:zt[0],"xmlns:r":nr.r})],i=r.SheetNames[e],s=0,f="",c=r.Sheets[i];c==null&&(c={});var o=c["!ref"]||"A1",l=Ae(o);if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575),o=we(l)}a||(a={}),c["!comments"]=[];var u=[];Pv(c,r,e,t,n),n[n.length]=ae("dimension",null,{ref:o}),n[n.length]=jv(c,t,e,r),t.sheetFormat&&(n[n.length]=ae("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(n[n.length]=Xv(c,c["!cols"])),n[s=n.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(f=Zv(c,t),f.length>0&&(n[n.length]=f)),n.length>s+1&&(n[n.length]="</sheetData>",n[s]=n[s].replace("/>",">")),c["!protect"]&&(n[n.length]=Mv(c["!protect"])),c["!autofilter"]!=null&&(n[n.length]=zv(c["!autofilter"],c,r,e)),c["!merges"]!=null&&c["!merges"].length>0&&(n[n.length]=Nv(c["!merges"]));var x=-1,d,v=-1;return c["!links"].length>0&&(n[n.length]="<hyperlinks>",c["!links"].forEach(function(h){h[1].Target&&(d={ref:h[0]},h[1].Target.charAt(0)!="#"&&(v=Ne(a,-1,be(h[1].Target).replace(/#.*$/,""),Fe.HLINK),d["r:id"]="rId"+v),(x=h[1].Target.indexOf("#"))>-1&&(d.location=be(h[1].Target.slice(x+1))),h[1].Tooltip&&(d.tooltip=be(h[1].Tooltip)),n[n.length]=ae("hyperlink",null,d))}),n[n.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(n[n.length]=Hv(c["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(n[n.length]=hr("ignoredErrors",ae("ignoredError",null,{numberStoredAsText:1,sqref:o}))),u.length>0&&(v=Ne(a,-1,"../drawings/drawing"+(e+1)+".xml",Fe.DRAW),n[n.length
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function $0(e,t){var r=t||{};la();var a=ra(wn(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof De<"u"?a=De.utils.decode(65001,u0(a)):a=Le(a));var n=a.slice(0,1024).toLowerCase(),i=!1;if(n=n.replace(/".*?"/g,""),(n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var s=Me(r);return s.type="string",ca.to_workbook(a,s)}if(n.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Je){n.indexOf("<"+Je)>=0&&(i=!0)}),i)return Gm(a,r);Da={"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 f,c=[],o,l={},u=[],x=r.dense?[]:{},d="",v={},h={},p=Kr('<Data ss:Type="String">'),w=0,y=0,g=0,D={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},N={},F="",B=0,I=[],z={},X={},L=0,J=[],le=[],ie={},he=[],ce,Pe=!1,V=[],ve=[],ge={},C=0,P=0,O={Sheets:[],WBProps:{date1904:!1}},R={};La.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"");for(var j="";f=La.exec(a);)switch(f[3]=(j=f[3]).toLowerCase()){case"data":if(j=="data"){if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else f[0].charAt(f[0].length-2)!=="/"&&c.push([f[3],!0]);break}if(c[c.length-1][1])break;f[1]==="/"?fm(a.slice(w,f.index),F,p,c[c.length-1][0]=="comment"?ie:v,{c:y,r:g},b,he[y],h,V,r):(F="",p=Kr(f[0]),w=f.index+f[0].length);break;case"cell":if(f[1]==="/")if(le.length>0&&(v.c=le),(!r.sheetRows||r.sheetRows>g)&&v.v!==void 0&&(r.dense?(x[g]||(x[g]=[]),x[g][y]=v):x[He(y)+Ke(g)]=v),v.HRef&&(v.l={Target:Oe(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(C=y+(parseInt(v.MergeAcross,10)|0),P=g+(parseInt(v.MergeDown,10)|0),I.push({s:{c:y,r:g},e:{c:C,r:P}})),!r.sheetStubs)v.MergeAcross?y=C+1:++y;else if(v.MergeAcross||v.MergeDown){for(var re=y;re<=C;++re)for(var te=g;te<=P;++te)(re>y||te>g)&&(r.dense?(x[te]||(x[te]=[]),x[te][re]={t:"z"}):x[He(re)+Ke(te)]={t:"z"});y=C+1}else++y;else v=tm(f[0]),v.Index&&(y=+v.Index-1),y<D.s.c&&(D.s.c=y),y>D.e.c&&(D.e.c=y),f[0].slice(-2)==="/>"&&++y,le=[];break;case"row":f[1]==="/"||f[0].slice(-2)==="/>"?(g<D.s.r&&(D.s.r=g),g>D.e.r&&(D.e.r=g),f[0].slice(-2)==="/>"&&(h=Kr(f[0]),h.Index&&(g=+h.Index-1)),y=0,++g):(h=Kr(f[0]),h.Index&&(g=+h.Index-1),ge={},(h.AutoFitHeight=="0"||h.Height)&&(ge.hpx=parseInt(h.Height,10),ge.hpt=Ha(ge.hpx),ve[g]=ge),h.Hidden=="1"&&(ge.hidden=!0,ve[g]=ge));break;case"worksheet":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"));u.push(d),D.s.r<=D.e.r&&D.s.c<=D.e.c&&(x["!ref"]=we(D),r.sheetRows&&r.sheetRows<=D.e.r&&(x["!fullref"]=x["!ref"],D.e.r=r.sheetRows-1,x["!ref"]=we(D))),I.length&&(x["!merges"]=I),he.length>0&&(x["!cols"]=he),ve.length>0&&(x["!rows"]=ve),l[d]=x}else D={s:{r:2e6,c:2e6},e:{r:0,c:0}},g=y=0,c.push([f[3],!1]),o=Kr(f[0]),d=Oe(o.Name),x=r.dense?[]:{},I=[],V=[],ve=[],R={name:d,Hidden:0},O.Sheets.push(R);break;case"table":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else{if(f[0].slice(-2)=="/>")break;c.push([f[3],!1]),he=[],Pe=!1}break;case"style":f[1]==="/"?sm(b,N,r):N=Kr(f[0]);break;case"numberformat":N.nf=Oe(Kr(f[0]).Format||"General"),Da[N.nf]&&(N.nf=Da[N.nf]);for(var Q=0;Q!=392&&de[Q]!=N.nf;++Q);if(Q==392){for(Q=57;Q!=392;++Q)if(de[Q]==null){at(N.nf,Q);break}}break;case"column":if(c[c.length-1][0]!=="table")break;if(ce=Kr(f[0]),ce.Hidden&&(ce.hidden=!0,delete ce.Hidden),ce.Width&&(ce.wpx=parseInt(ce.Width,10)),!Pe&&ce.wpx>10){Pe=!0,mr=If;for(var Z=0;Z<he.length;++Z)he[Z]&&St(he[Z])}Pe&&St(ce),he[ce.Index-1||he.length]=ce;for(var Ee=0;Ee<+ce.Span;++Ee)he[he.length]=Me(ce);break;case"namedrange":if(f[1]==="/")break;O.Names||(O.Names=[]);var A=me(f[0]),Ue={Name:A.Name,Ref:ia(A.RefersTo.slice(1),{r:0,c:0})};O.Sheets.length>0&&
`),r=Oe(t.replace(/<[^>]*>/g,""));return[r]}var ss={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 vc(e,t){var r=t||{},a=wn(e),n=[],i,s,f={name:""},c="",o=0,l,u,x={},d=[],v=r.dense?[]:{},h,p,w={value:""},y="",g=0,D=[],b=-1,N=-1,F={s:{r:1e6,c:1e7},e:{r:0,c:0}},B=0,I={},z=[],X={},L=0,J=0,le=[],ie=1,he=1,ce=[],Pe={Names:[]},V={},ve=["",""],ge=[],C={},P="",O=0,R=!1,j=!1,re=0;for(La.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=La.exec(a);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"工作表":h[1]==="/"?(F.e.c>=F.s.c&&F.e.r>=F.s.r?v["!ref"]=we(F):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=F.e.r&&(v["!fullref"]=v["!ref"],F.e.r=r.sheetRows-1,v["!ref"]=we(F)),z.length&&(v["!merges"]=z),le.length&&(v["!rows"]=le),l.name=l.名称||l.name,typeof JSON<"u"&&JSON.stringify(l),d.push(l.name),x[l.name]=v,j=!1):h[0].charAt(h[0].length-2)!=="/"&&(l=me(h[0],!1),b=N=-1,F.s.r=F.s.c=1e7,F.e.r=F.e.c=0,v=r.dense?[]:{},z=[],le=[],j=!0);break;case"table-row-group":h[1]==="/"?--B:++B;break;case"table-row":case"行":if(h[1]==="/"){b+=ie,ie=1;break}if(u=me(h[0],!1),u.行号?b=u.行号-1:b==-1&&(b=0),ie=+u["number-rows-repeated"]||1,ie<10)for(re=0;re<ie;++re)B>0&&(le[b+re]={level:B});N=-1;break;case"covered-table-cell":h[1]!=="/"&&++N,r.sheetStubs&&(r.dense?(v[b]||(v[b]=[]),v[b][N]={t:"z"}):v[pe({r:b,c:N})]={t:"z"}),y="",D=[];break;case"table-cell":case"数据":if(h[0].charAt(h[0].length-2)==="/")++N,w=me(h[0],!1),he=parseInt(w["number-columns-repeated"]||"1",10),p={t:"z",v:null},w.formula&&r.cellFormula!=!1&&(p.f=rs(Oe(w.formula))),(w.数据类型||w["value-type"])=="string"&&(p.t="s",p.v=Oe(w["string-value"]||""),r.dense?(v[b]||(v[b]=[]),v[b][N]=p):v[pe({r:b,c:N})]=p),N+=he-1;else if(h[1]!=="/"){++N,y="",g=0,D=[],he=1;var te=ie?b+ie-1:b;if(N>F.e.c&&(F.e.c=N),N<F.s.c&&(F.s.c=N),b<F.s.r&&(F.s.r=b),te>F.e.r&&(F.e.r=te),w=me(h[0],!1),ge=[],C={},p={t:w.数据类型||w["value-type"],v:null},r.cellFormula)if(w.formula&&(w.formula=Oe(w.formula)),w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]&&(L=parseInt(w["number-matrix-rows-spanned"],10)||0,J=parseInt(w["number-matrix-columns-spanned"],10)||0,X={s:{r:b,c:N},e:{r:b+L-1,c:N+J-1}},p.F=we(X),ce.push([X,p.F])),w.formula)p.f=rs(w.formula);else for(re=0;re<ce.length;++re)b>=ce[re][0].s.r&&b<=ce[re][0].e.r&&N>=ce[re][0].s.c&&N<=ce[re][0].e.c&&(p.F=ce[re][1]);switch((w["number-columns-spanned"]||w["number-rows-spanned"])&&(L=parseInt(w["number-rows-spanned"],10)||0,J=parseInt(w["number-columns-spanned"],10)||0,X={s:{r:b,c:N},e:{r:b+L-1,c:N+J-1}},z.push(X)),w["number-columns-repeated"]&&(he=parseInt(w["number-columns-repeated"],10)),p.t){case"boolean":p.t="b",p.v=We(w["boolean-value"]);break;case"float":p.t="n",p.v=parseFloat(w.value);break;case"percentage":p.t="n",p.v=parseFloat(w.value);break;case"currency":p.t="n",p.v=parseFloat(w.value);break;case"date":p.t="d",p.v=Ve(w["date-value"]),r.cellDates||(p.t="n",p.v=ir(p.v)),p.z="m/d/yy";break;case"time":p.t="n",p.v=yo(w["time-value"])/86400,r.cellDates&&(p.t="d",p.v=C0(p.v)),p.z="HH:MM:SS";break;case"number":p.t="n",p.v=parseFloat(w.数据数值);break;default:if(p.t==="string"||p.t==="text"||!p.t)p.t="s",w["string-value"]!=null&&(y=Oe(w["string-value"]),D=[]);else throw new Error("Unsupported value type "+p.t)}}else{if(R=!1,p.t==="s"&&(p.v=y||"",D.length&&(p.R=D),R=g==0),V.Target&&(p.l=V),ge.length>0&&(p.c=ge,ge=[]),y&&r.cellText!==!1&&(p.w=y),R&&(p.t="z",delete p.v),(!R||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=b))for(var Q=0;Q<ie;++Q){if(he=parseInt(w["number-columns-repeated"]||"1",10),r.dense)for(v[b+Q]||(v[b+Q]=[]),v[b+Q][N]=Q==0?p:Me(p);--he>0;)v[b+Q][N+he]=Me(p);else for(v[pe({r:b+Q,c:N})]=p;--he>0;)v[pe({r:b+Q,c:N+he})]=Me(p);F.e.c<=N&&(F.e.c=N)}he=parseInt(w["number-columns-repeated"]||"1",10),N+=he-1,he=0,p={},y="",D=[]}V={};break;case"document":case"document-content":case"电子表格文档":case"sprea
`:"")+Ee[0]}else me(h[0],!1),g=h.index+h[0].length;break;case"s":break;case"database-range":if(h[1]==="/")break;try{ve=z0(me(h[0])["target-range-address"]),x[ve[0]]["!autofilter"]={ref:ve[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(h[1]!=="/"){if(V=me(h[0],!1),!V.href)break;V.Target=Oe(V.href),delete V.href,V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1?(ve=z0(V.Target.slice(1)),V.Target="#"+ve[0]+"!"+ve[1]):V.Target.match(/^\.\.[\\\/]/)&&(V.Target=V.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(h[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(h)}}var A={Sheets:x,SheetNames:d,Workbook:Pe};return r.bookSheets&&delete A.Sheets,A}function fs(e,t){t=t||{},Vr(e,"META-INF/manifest.xml")&&Fl(rr(e,"META-INF/manifest.xml"),t);var r=Rr(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=vc(Le(r),t);return Vr(e,"meta.xml")&&(a.Props=Qs(rr(e,"meta.xml"))),a}function cs(e,t){return vc(e,t)}var jm=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Pa({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text: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","offi
`,r=` <table:covered-table-cell/>
`,a=function(i,s,f){var c=[];c.push(' <table:table table:name="'+be(s.SheetNames[f])+`" table:style-name="ta1">
`);var o=0,l=0,u=yr(i["!ref"]||"A1"),x=i["!merges"]||[],d=0,v=Array.isArray(i);if(i["!cols"])for(l=0;l<=u.e.c;++l)c.push(" <table:table-column"+(i["!cols"][l]?' table:style-name="co'+i["!cols"][l].ods+'"':"")+`></table:table-column>
`);var h="",p=i["!rows"]||[];for(o=0;o<u.s.r;++o)h=p[o]?' table:style-name="ro'+p[o].ods+'"':"",c.push(" <table:table-row"+h+`></table:table-row>
`);for(;o<=u.e.r;++o){for(h=p[o]?' table:style-name="ro'+p[o].ods+'"':"",c.push(" <table:table-row"+h+`>
`),l=0;l<u.s.c;++l)c.push(t);for(;l<=u.e.c;++l){var w=!1,y={},g="";for(d=0;d!=x.length;++d)if(!(x[d].s.c>l)&&!(x[d].s.r>o)&&!(x[d].e.c<l)&&!(x[d].e.r<o)){(x[d].s.c!=l||x[d].s.r!=o)&&(w=!0),y["table:number-columns-spanned"]=x[d].e.c-x[d].s.c+1,y["table:number-rows-spanned"]=x[d].e.r-x[d].s.r+1;break}if(w){c.push(r);continue}var D=pe({r:o,c:l}),b=v?(i[o]||[])[l]:i[D];if(b&&b.f&&(y["table:formula"]=be(_v(b.f)),b.F&&b.F.slice(0,D.length)==D)){var N=yr(b.F);y["table:number-matrix-columns-spanned"]=N.e.c-N.s.c+1,y["table:number-matrix-rows-spanned"]=N.e.r-N.s.r+1}if(!b){c.push(t);continue}switch(b.t){case"b":g=b.v?"TRUE":"FALSE",y["office:value-type"]="boolean",y["office:boolean-value"]=b.v?"true":"false";break;case"n":g=b.w||String(b.v||0),y["office:value-type"]="float",y["office:value"]=b.v||0;break;case"s":case"str":g=b.v==null?"":b.v,y["office:value-type"]="string";break;case"d":g=b.w||Ve(b.v).toISOString(),y["office:value-type"]="date",y["office:date-value"]=Ve(b.v).toISOString(),y["table:style-name"]="ce1";break;default:c.push(t);continue}var F=e(g);if(b.l&&b.l.Target){var B=b.l.Target;B=B.charAt(0)=="#"?"#"+wv(B.slice(1)):B,B.charAt(0)!="#"&&!B.match(/^\w+:/)&&(B="../"+B),F=ae("text:a",F,{"xlink:href":B.replace(/&/g,"&amp;")})}c.push(" "+ae("table:table-cell",ae("text:p",F,{}),y)+`
`)}c.push(` </table:table-row>
`)}return c.push(` </table:table>
`),c.join("")},n=function(i,s){i.push(` <office:automatic-styles>
`),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),i.push(` <number:month number:style="long"/>
`),i.push(` <number:text>/</number:text>
`),i.push(` <number:day number:style="long"/>
`),i.push(` <number:text>/</number:text>
`),i.push(` <number:year/>
`),i.push(` </number:date-style>
`);var f=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var l=0;l<o["!cols"].length;++l)if(o["!cols"][l]){var u=o["!cols"][l];if(u.width==null&&u.wpx==null&&u.wch==null)continue;St(u),u.ods=f;var x=o["!cols"][l].wpx+"px";i.push(' <style:style style:name="co'+f+`" style:family="table-column">
`),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+x+`"/>
`),i.push(` </style:style>
`),++f}}});var c=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var l=0;l<o["!rows"].length;++l)if(o["!rows"][l]){o["!rows"][l].ods=c;var u=o["!rows"][l].hpx+"px";i.push(' <style:style style:name="ro'+c+`" style:family="table-row">
`),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+u+`"/>
`),i.push(` </style:style>
`),++c}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),i.push(` </style:style>
`),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),i.push(` </office:automatic-styles>
`)};return function(s,f){var c=[Qe],o=Pa({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text: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:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),l=Pa({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(c.push("<office:document"+o+l+`>
`),c.push(qs().replace(/office:document-meta/g,"office:meta"))):c.push("<office:document-content"+o+`>
`),n(c,s),c.push(` <office:body>
`),c.push(` <office:spreadsheet>
`);for(var u=0;u!=s.SheetNames.length;++u)c.push(a(s.Sheets[s.SheetNames[u]],s,u));return c.push(` </office:spreadsheet>
`),c.push(` </office:body>
`),f.bookType=="fods"?c.push("</office:document>"):c.push("</office:document-content>"),c.join("")}}();function pc(e,t){if(t.bookType=="fods")return os(e,t);var r=pn(),a="",n=[],i=[];return a="mimetype",ke(r,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",ke(r,a,os(e,t)),n.push([a,"text/xml"]),i.push([a,"ContentFile"]),a="styles.xml",ke(r,a,jm(e,t)),n.push([a,"text/xml"]),i.push([a,"StylesFile"]),a="meta.xml",ke(r,a,Qe+qs()),n.push([a,"text/xml"]),i.push([a,"MetadataFile"]),a="manifest.rdf",ke(r,a,Cl(i)),n.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",ke(r,a,yl(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Xt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function on(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Le(At(e))}function Ym(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ir(tt(e))}function Jm(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var a=0;a<t.length;++a)if(e[r+a]!=t[a])continue e;return!0}return!1}function yt(e){var t=e.reduce(function(n,i){return n+i.length},0),r=new Uint8Array(t),a=0;return e.forEach(function(n){r.set(n,a),a+=n.length}),r}function ls(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Zm(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,a=e[t+14]&1,n=t+13;n>=t;--n)a=a*256+e[n];return(e[t+15]&128?-a:a)*Math.pow(10,r-6176)}function qm(e,t,r){var a=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(a&127)<<1;for(var i=0;n>=1;++i,n/=256)e[t+i]=n&255;e[t+15]|=r>=0?0:128}function Xa(e,t){var r=t?t[0]:0,a=e[r]&127;e:if(e[r++]>=128&&(a|=(e[r]&127)<<7,e[r++]<128||(a|=(e[r]&127)<<14,e[r++]<128)||(a|=(e[r]&127)<<21,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),a}function Re(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function je(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ie(e){for(var t=[],r=[0];r[0]<e.length;){var a=r[0],n=Xa(e,r),i=n&7;n=Math.floor(n/8);var s=0,f;if(n==0)break;switch(i){case 0:{for(var c=r[0];e[r[0]++]>=128;);f=e.slice(c,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Xa(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a))}var o={data:f,type:i};t[n]==null?t[n]=[o]:t[n].push(o)}return t}function lr(e){var t=[];return e.forEach(function(r,a){r.forEach(function(n){n.data&&(t.push(Re(a*8+n.type)),n.type==2&&t.push(Re(n.data.length)),t.push(n.data))})}),yt(t)}function Kn(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function Wr(e){for(var t,r=[],a=[0];a[0]<e.length;){var n=Xa(e,a),i=Ie(e.slice(a[0],a[0]+n));a[0]+=n;var s={id:je(i[1][0].data),messages:[]};i[2].forEach(function(f){var c=Ie(f.data),o=je(c[3][0].data);s.messages.push({meta:c,data:e.slice(a[0],a[0]+o)}),a[0]+=o}),(t=i[3])!=null&&t[0]&&(s.merge=je(i[3][0].data)>>>0>0),r.push(s)}return r}function qt(e){var t=[];return e.forEach(function(r){var a=[];a[1]=[{data:Re(r.id),type:0}],a[2]=[],r.merge!=null&&(a[3]=[{data:Re(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(s){n.push(s.data),s.meta[3]=[{type:0,data:Re(s.data.length)}],a[2].push({data:lr(s.meta),type:2})});var i=lr(a);t.push(Re(i.length)),t.push(i),n.forEach(function(s){return t.push(s)})}),yt(t)}function Qm(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e
`,c=f.charCodeAt(0),o=new RegExp((i=="|"?"\\|":i)+"+$"),l="",u=[];a.dense=Array.isArray(e);for(var x=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],v=n.s.c;v<=n.e.c;++v)(x[v]||{}).hidden||(u[v]=He(v));for(var h=0,p=n.s.r;p<=n.e.r;++p)(d[p]||{}).hidden||(l=Sc(e,n,p,u,s,c,i,a),l!=null&&(a.strip&&(l=l.replace(o,"")),(l||a.blankrows!==!1)&&r.push((h++?f:"")+l)));return delete a.dense,r.join("")}function Fc(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=Qn(e,t);if(typeof De>"u"||t.type=="string")return r;var a=De.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Ag(e){var t="",r,a="";if(e==null||e["!ref"]==null)return[];var n=Ae(e["!ref"]),i="",s=[],f,c=[],o=Array.isArray(e);for(f=n.s.c;f<=n.e.c;++f)s[f]=He(f);for(var l=n.s.r;l<=n.e.r;++l)for(i=Ke(l),f=n.s.c;f<=n.e.c;++f)if(t=s[f]+i,r=o?(e[l]||[])[f]:e[t],a="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;a=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)a=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)a=""+r.v;else if(r.t=="b")a=r.v?"TRUE":"FALSE";else if(r.w!==void 0)a="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?a="'"+r.v:a=""+r.v}}c[c.length]=t+"="+a}return c}function yc(e,t,r){var a=r||{},n=+!a.skipHeader,i=e||{},s=0,f=0;if(i&&a.origin!=null)if(typeof a.origin=="number")s=a.origin;else{var c=typeof a.origin=="string"?ze(a.origin):a.origin;s=c.r,f=c.c}var o,l={s:{c:0,r:0},e:{c:f,r:s+t.length-1+n}};if(i["!ref"]){var u=Ae(i["!ref"]);l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),s==-1&&(s=u.e.r+1,l.e.r=s+t.length-1+n)}else s==-1&&(s=0,l.e.r=t.length-1+n);var x=a.header||[],d=0;t.forEach(function(h,p){Ye(h).forEach(function(w){(d=x.indexOf(w))==-1&&(x[d=x.length]=w);var y=h[w],g="z",D="",b=pe({c:f+d,r:s+p+n});o=Ga(i,b),y&&typeof y=="object"&&!(y instanceof Date)?i[b]=y:(typeof y=="number"?g="n":typeof y=="boolean"?g="b":typeof y=="string"?g="s":y instanceof Date?(g="d",a.cellDates||(g="n",y=ir(y)),D=a.dateNF||de[14]):y===null&&a.nullError&&(g="e",y=0),o?(o.t=g,o.v=y,delete o.w,delete o.R,D&&(o.z=D)):i[b]=o={t:g,v:y},D&&(o.z=D))})}),l.e.c=Math.max(l.e.c,f+x.length-1);var v=Ke(s);if(n)for(d=0;d<x.length;++d)i[He(d+f)+v]={t:"s",v:x[d]};return i["!ref"]=we(l),i}function Cg(e,t){return yc(null,e,t)}function Ga(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var a=ze(t);return e[a.r]||(e[a.r]=[]),e[a.r][a.c]||(e[a.r][a.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ga(e,pe(t)):Ga(e,pe({r:t,c:r||0}))}function Dg(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function ei(){return{SheetNames:[],Sheets:{}}}function ri(e,t,r,a){var n=1;if(!r)for(;n<=65535&&e.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var s=i&&i[1]||r;for(++n;n<=65535&&e.SheetNames.indexOf(r=s+n)!=-1;++n);}if(ec(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Og(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=Dg(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r}function Ig(e,t){return e.z=t,e}function Ac(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Rg(e,t,r){return Ac(e,"#"+t,r)}function Ng(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function bg(e,t,r,a){for(var n=typeof t!="string"?t:Ae(t),i=typeof t=="string"?t:we(t),s=n.s.r;s<=n.e.r;++s)for(var f=n.s.c;f<=n.e.c;++f){var c=Ga(e,s,f);c.t="n",c.F=i,delete c.v,s==n.s.r&&f==n.s.c&&(c.f=r,a&&(c.D=!0))}return e}var zg={encode_col:He,encode_row:Ke,encode_cell:pe,encode_range:we,decode_col:Cn,decode_row:An,split_cell:el,decode_cell:ze,decode_range:yr,format_cell:nt,sheet_add_aoa:Gs,sheet_add_json:yc,sheet_add_dom:xc,aoa_to_sheet:ha,json_to_sheet:Cg,table_to_sheet:dc,table_to_book:zm,sheet_to_csv:Qn,sheet_to_txt:Fc,sheet_to_json:T0,sheet_to_html:hc,sheet_to_formulae:Ag,sheet_to_row_object_array:T0,sheet_get_cell:Ga,book_new:ei,book_append_sheet:ri,book_set_sheet_visibility:Og,cell_set_number_format:Ig,cell_set_hyperlink:Ac,cell_set_internal_link:
`,c=f.charCodeAt(0),o=new RegExp((i=="|"?"\\|":i)+"+$"),l="",u=[];a.dense=Array.isArray(e);for(var x=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],v=n.s.c;v<=n.e.c;++v)(x[v]||{}).hidden||(u[v]=He(v));var h=n.s.r,p=!1,w=0;return r._read=function(){if(!p)return p=!0,r.push("\uFEFF");for(;h<=n.e.r;)if(++h,!(d[h-1]||{}).hidden&&(l=Sc(e,n,h-1,u,s,c,i,a),l!=null&&(a.strip&&(l=l.replace(o,"")),l||a.blankrows!==!1)))return r.push((w++?f:"")+l);return r.push(null)},r}function Bg(e,t){var r=b0(),a=t||{},n=a.header!=null?a.header:oc,i=a.footer!=null?a.footer:lc;r.push(n);var s=yr(e["!ref"]);a.dense=Array.isArray(e),r.push(uc(e,s,a));var f=s.s.r,c=!1;return r._read=function(){if(f>s.e.r)return c||(c=!0,r.push("</table>"+i)),r.push(null);for(;f<=s.e.r;){r.push(cc(e,s,f,a)),++f;break}},r}function Mg(e,t){var r=b0({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var a={t:"n",v:0},n=0,i=1,s=[],f=0,c="",o={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},u=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)&&(n=3),typeof u){case"string":o=Ae(u);break;case"number":o=Ae(e["!ref"]),o.s.r=u;break;default:o=u}n>0&&(i=0);var x=Ke(o.s.r),d=[],v=0,h=Array.isArray(e),p=o.s.r,w=0,y={};h&&!e[p]&&(e[p]=[]);var g=l.skipHidden&&e["!cols"]||[],D=l.skipHidden&&e["!rows"]||[];for(w=o.s.c;w<=o.e.c;++w)if(!(g[w]||{}).hidden)switch(d[w]=He(w),a=h?e[p][w]:e[d[w]+x],n){case 1:s[w]=w-o.s.c;break;case 2:s[w]=d[w];break;case 3:s[w]=l.header[w-o.s.c];break;default:if(a==null&&(a={w:"__EMPTY",t:"s"}),c=f=nt(a,null,l),v=y[f]||0,!v)y[f]=1;else{do c=f+"_"+v++;while(y[c]);y[f]=v,y[c]=1}s[w]=c}return p=o.s.r+i,r._read=function(){for(;p<=o.e.r;)if(!(D[p-1]||{}).hidden){var b=Tc(e,o,p,d,n,s,h,l);if(++p,b.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows)){r.push(b.row);return}}return r.push(null)},r}var $g={to_json:Mg,to_html:Bg,to_csv:Lg,set_readable:Pg};const Kg=Ia.version;export{xe as CFB,mo as SSF,sc as parse_xlscfb,dg as parse_zip,ln as read,Hg as readFile,Hg as readFileSync,Ug as set_cptable,Wg as set_fs,$g as stream,zg as utils,Kg as version,Zn as write,Vg as writeFile,Gg as writeFileAsync,Vg as writeFileSync,Xg as writeFileXLSX,Ec as writeXLSX};