Agriculture-front-end/dist/assets/xlsx.881b8a71.js

96 lines
279 KiB
JavaScript
Raw Normal View History

2023-06-06 10:46:36 +08:00
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Kt={};Kt.version="0.18.5";var $n=1252,Xi=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],jn=function(e){Xi.indexOf(e)!=-1&&($n=e)};function Ki(){jn(1252)}var St=function(e){jn(e)};function zi(){St(1200),Ki()}function Yi(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 Bt=function(t){return String.fromCharCode(t)},ln=function(t){return String.fromCharCode(t)},Wr,Ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function At(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),f=(n&15)<<2|a>>6,o=a&63,isNaN(n)?f=o=64:isNaN(a)&&(o=64),t+=Ir.charAt(i)+Ir.charAt(s)+Ir.charAt(f)+Ir.charAt(o);return t}function Cr(e){var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Ir.indexOf(e.charAt(l++)),s=Ir.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=Ir.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Ir.indexOf(e.charAt(l++)),a=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(a));return t}var ue=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Dr=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 Vr(e){return ue?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function on(e){return ue?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var xr=function(t){return ue?Dr(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function i0(e){if(typeof ArrayBuffer>"u")return xr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Dt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function $i(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var be=ue?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Dr(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function ji(e){for(var t=[],r=0,n=e.length+250,a=Vr(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|f>>6&15|(s&3)<<4,a[r++]=128|f&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Vr(65535),n=65530)}return t.push(a.slice(0,r)),be(t)}var mt=/\u0000/g,Ut=/[\u0001-\u0006]/g;function nt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function vr(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}function R0(e,t){var r=""+e;return r.length>=t?r:Fe(" ",t-r.length)+r}function zt(e,t){var r=""+e;return r.length>=t?r:r+Fe(" ",t-r.length)}function Ji(e,t){var r=""+Math.round(e);return r.length>=t?r:Fe("0",t-r.length)+r}function Zi(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}var cn=Math.pow(2,32);function qr(e,t){if(e>cn||e<-cn)return Ji(e,t);var r=Math.round(e);return Zi(r,t)}function Yt(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114
`)+`\r
`}function Li(h){var g=h.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var k=N.charCodeAt(0).toString(16).toUpperCase();return"="+(k.length==1?"0"+k:k)});g=g.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),g.charAt(0)==`
`&&(g="=0D"+g.slice(1)),g=g.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var d=[],m=g.split(`\r
`),T=0;T<m.length;++T){var w=m[T];if(w.length==0){d.push("");continue}for(var I=0;I<w.length;){var U=76,D=w.slice(I,I+U);D.charAt(U-1)=="="?U--:D.charAt(U-2)=="="?U-=2:D.charAt(U-3)=="="&&(U-=3),D=w.slice(I,I+U),I+=U,I<w.length&&(D+="="),d.push(D)}}return d.join(`\r
`)}function Mi(h){for(var g=[],d=0;d<h.length;++d){for(var m=h[d];d<=h.length&&m.charAt(m.length-1)=="=";)m=m.slice(0,m.length-1)+h[++d];g.push(m)}for(var T=0;T<g.length;++T)g[T]=g[T].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return xr(g.join(`\r
`))}function Bi(h,g,d){for(var m="",T="",w="",I,U=0;U<10;++U){var D=g[U];if(!D||D.match(/^\s*$/))break;var N=D.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":m=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":T=N[2].trim();break}}switch(++U,T.toLowerCase()){case"base64":I=xr(Cr(g.slice(U).join("")));break;case"quoted-printable":I=Mi(g.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var k=d0(h,m.slice(d.length),I,{unsafe:!0});w&&(k.ctype=w)}function Ui(h,g){if(Ne(h.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var d=g&&g.root||"",m=(ue&&Buffer.isBuffer(h)?h.toString("binary"):Ne(h)).split(`\r
`),T=0,w="";for(T=0;T<m.length;++T)if(w=m[T],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),d||(d=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,d.length)!=d))for(;d.length>0&&(d=d.slice(0,d.length-1),d=d.slice(0,d.lastIndexOf("/")+1),w.slice(0,d.length)!=d););var I=(m[1]||"").match(/boundary="(.*?)"/);if(!I)throw new Error("MAD cannot find boundary");var U="--"+(I[1]||""),D=[],N=[],k={FileIndex:D,FullPaths:N};C(k);var X,Z=0;for(T=0;T<m.length;++T){var te=m[T];te!==U&&te!==U+"--"||(Z++&&Bi(k,m.slice(X,T),d),X=T)}return k}function bi(h,g){var d=g||{},m=d.boundary||"SheetJS";m="------="+m;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+m.slice(2)+'"',"","",""],w=h.FullPaths[0],I=w,U=h.FileIndex[0],D=1;D<h.FullPaths.length;++D)if(I=h.FullPaths[D].slice(w.length),U=h.FileIndex[D],!(!U.size||!U.content||I=="Sh33tJ5")){I=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(fe){return"_x"+fe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(fe){return"_u"+fe.charCodeAt(0).toString(16)+"_"});for(var N=U.content,k=ue&&Buffer.isBuffer(N)?N.toString("binary"):Ne(N),X=0,Z=Math.min(1024,k.length),te=0,z=0;z<=Z;++z)(te=k.charCodeAt(z))>=32&&te<128&&++X;var Q=X>=Z*4/5;T.push(m),T.push("Content-Location: "+(d.root||"file:///C:/SheetJS/")+I),T.push("Content-Transfer-Encoding: "+(Q?"quoted-printable":"base64")),T.push("Content-Type: "+ki(U,I)),T.push(""),T.push(Q?Li(k):Pi(k))}return T.push(m+`--\r
`),T.join(`\r
`)}function Wi(h){var g={};return C(g,h),g}function d0(h,g,d,m){var T=m&&m.unsafe;T||C(h);var w=!T&&_e.find(h,g);if(!w){var I=h.FullPaths[0];g.slice(0,I.length)==I?I=g:(I.slice(-1)!="/"&&(I+="/"),I=(I+g).replace("//","/")),w={name:a(g),type:2},h.FileIndex.push(w),h.FullPaths.push(I),T||_e.utils.cfb_gc(h)}return w.content=d,w.size=d?d.length:0,m&&(m.CLSID&&(w.clsid=m.CLSID),m.mt&&(w.mt=m.mt),m.ct&&(w.ct=m.ct)),w}function Hi(h,g){C(h);var d=_e.find(h,g);if(d){for(var m=0;m<h.FileIndex.length;++m)if(h.FileIndex[m]==d)return h.FileIndex.splice(m,1),h.FullPaths.splice(m,1),!0}return!1}function Gi(h,g,d){C(h);var m=_e.find(h,g);if(m){for(var T=0;T<h.FileIndex.length;++T)if(h.FileIndex[T]==m)return h.FileIndex[T].name=a(d),h.FullPaths[T]=d,!0}return!1}function Vi(h){L(h,!0)}return t.find=V,t.read=ee,t.parse=c,t.write=ir,t.writeFile=cr,t.utils={cfb_new:Wi,cfb_add:d0,cfb_del:Hi,cfb_mov:Gi,cfb_gc:Vi,ReadShift:_t,CheckField:ya,prep_blob:rr,bconcat:be,use_zlib:S,_deflateRaw:q0,_inflateRaw:an,consts:Ce},t}();function ws(e){return typeof e=="string"?i0(e):Array.isArray(e)?$i(e):e}function Rt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=i0(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Sr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([ws(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);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=Dt(t)),f.write(t),f.close(),t}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+e)}function Ge(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function mn(e,t){for(var r=[],n=Ge(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function N0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function l0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Ss(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var jt=new Date(1899,11,30,0,0,0);function Ze(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=jt.getTime()+(e.getTimezoneOffset()-jt.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var oa=new Date,As=jt.getTime()+(oa.getTimezoneOffset()-jt.getTimezoneOffset())*6e4,gn=oa.getTimezoneOffset();function ca(e){var t=new Date;return t.setTime(e*24*60*60*1e3+As),t.getTimezoneOffset()!==gn&&t.setTime(t.getTime()+(t.getTimezoneOffset()-gn)*6e4),t}var _n=new Date("2017-02-19T19:06:09.000Z"),ha=isNaN(_n.getFullYear())?new Date("2/19/17"):_n,Fs=ha.getFullYear()==2017;function je(e,t){var r=new Date(e);if(Fs)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(ha.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function o0(
`,Cs={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},P0=N0(Cs),L0=/[&<>'"]/g,Os=/[\u0000-\u0008\u000b-\u001f]/g;function de(e){var t=e+"";return t.replace(L0,function(r){return P0[r]}).replace(Os,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Tn(e){return de(e).replace(/ /g,"_x0020_")}var ua=/[\u0000-\u001f]/g;function Ds(e){var t=e+"";return t.replace(L0,function(r){return P0[r]}).replace(/\n/g,"<br/>").replace(ua,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Rs(e){var t=e+"";return t.replace(L0,function(r){return P0[r]}).replace(ua,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Is(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function Ns(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function _0(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function En(e){var t=Vr(2*e.length),r,n,a=1,i=0,s=0,f;for(n=0;n<e.length;n+=a)a=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),a=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+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 wn(e){return Dr(e,"binary").toString("utf8")}var Wt="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",gt=ue&&(wn(Wt)==_0(Wt)&&wn||En(Wt)==_0(Wt)&&En)||_0,Sr=ue?function(e){return Dr(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},ks=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),xa=/(^\s|\s$|\n)/;function We(e,t){return"<"+e+(t.match(xa)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function yt(e){return Ge(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Y(e,t,r){return"<"+e+(r!=null?yt(r):"")+(t!=null?(t.match(xa)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function C0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Ps(e,t){switch(typeof e){case"string":var r=Y("vt:lpwstr",de(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return Y((e|0)==e?"vt:i4":"vt:r8",de(String(e)));case"boolean":return Y("vt:bool",e?"true":"false")}if(e instanceof Date)return Y("vt:filetime",C0(e));throw new Error("Unable to serialize "+e)}var ke={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"},lt=["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"],tr={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 Ls(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Ms(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var Sn=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},An=ue?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Dr(t)})):Sn(e)}:Sn,Fn=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(dt(e,a)));return n.join("").replace(mt,"")},M0=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(mt,""):Fn(e,t,r)}:Fn,yn=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},va=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):yn(e,t,r)}:yn,Cn=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(rt(e,a)));return n.join("")},It=ue?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Cn(t,r,n)}:Cn,pa=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},da=pa,ma=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},ga=ma,_a=function(e,t){var r=2*nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},Ta=_a,Ea=function(t,r){var n=nr(t,r);return n>0?M0(t,r+4,r+4+n):""},wa=Ea,Sa=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r):""},Aa=Sa,Fa=functio
`),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 Nn(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 df(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 mf(e){var t=[Re];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(Nn(e[r][0],e[r][1])),t.push(df("",e[r][0]));return t.push(Nn("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function Ma(){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 '+Kt.version+"</meta:generator></office:meta></office:document-meta>"}var Gr=[["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"]];function E0(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=de(t),n[n.length]=r?Y(e,t,r):We(e,t))}function Ba(e,t){var r=t||{},n=[Re,Y("cp:coreProperties",null,{"xmlns:cp":ke.CORE_PROPS,"xmlns:dc":ke.dc,"xmlns:dcterms":ke.dcterms,"xmlns:dcmitype":ke.dcmitype,"xmlns:xsi":ke.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&E0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:C0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&E0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:C0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Gr.length;++i){var s=Gr[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&&E0(s[0],f,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var it=[["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"]],Ua=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ba(e){var t=[],r=Y;return e||(e={}),e.Application="SheetJS",t[t.length]=Re,t[t.length]=Y("Properties",null,{xmlns:ke.EXT_PROPS,"xmlns:vt":ke.vt}),it.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=de(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+de(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Wa(e){var t=[Re,Y("Properties",null,{xmlns:ke.CUST_PROPS,"xmlns:vt":ke.vt})];if(!e)return t.join("");var r=1;return Ge(e).forEach(function(a){++r,t[t.length]=Y("property",Ps(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:de(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var kn={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function gf(e,t){var r=[];return Ge(kn).map(function(n){for(var a=0;a<Gr.length;++a)if(Gr[a][1]==n)return Gr[a];for(a=0;a<it.length;++a)if(it[a][1]==n)return it[a];throw n}).forEach(function(n)
`;E.push("P;PGeneral"),E.push("F;P0;DG0G8;M255"),x["!cols"]&&l(E,x["!cols"]),x["!rows"]&&c(E,x["!rows"]),E.push("B;Y"+(_.e.r-_.s.r+1)+";X"+(_.e.c-_.s.c+1)+";D"+[_.s.c,_.s.r,_.e.c,_.e.r].join(" "));for(var M=_.s.r;M<=_.e.r;++M)for(var j=_.s.c;j<=_.e.c;++j){var ee=me({r:M,c:j});O=R?(x[M]||[])[j]:x[ee],!(!O||O.v==null&&(!O.f||O.F))&&u.push(o(O,x,M,j))}return E.join(y)+y+u.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:p}}(),nl=function(){function e(i,s){switch(s.type){case"base64":return t(Cr(i),s);case"binary":return t(i,s);case"buffer":return t(ue&&Buffer.isBuffer(i)?i.toString("binary"):Dt(i),s);case"array":return t(o0(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
`),o=-1,l=-1,c=0,p=[];c!==f.length;++c){if(f[c].trim()==="BOT"){p[++o]=[],l=0;continue}if(!(o<0)){var x=f[c].trim().split(","),v=x[0],E=x[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c<f.length-1;)u+=`
`+f[++c];switch(u=u.trim(),+v){case-1:if(u==="BOT"){p[++o]=[],l=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?p[o][l]=!0:u==="FALSE"?p[o][l]=!1:isNaN(Fr(E))?isNaN(Ft(E).getDate())?p[o][l]=E:p[o][l]=je(E):p[o][l]=Fr(E),++l;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),p[o][l++]=u!==""?u:null;break}if(u==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(i,s){return ot(e(i,s),s)}function n(i,s){return zr(r(i,s),s)}var a=function(){var i=function(o,l,c,p,x){o.push(l),o.push(c+","+p),o.push('"'+x.replace(/"/g,'""')+'"')},s=function(o,l,c,p){o.push(l+","+c),o.push(l==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(o){var l=[],c=Ee(o["!ref"]),p,x=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var v=c.s.r;v<=c.e.r;++v){s(l,-1,0,"BOT");for(var E=c.s.c;E<=c.e.c;++E){var u=me({r:v,c:E});if(p=x?(o[v]||[])[E]:o[u],!p){s(l,1,0,"");continue}switch(p.t){case"n":var _=p.w;!_&&p.v!=null&&(_=p.v),_==null?p.f&&!p.F?s(l,1,0,"="+p.f):s(l,1,0,""):s(l,0,_,"V");break;case"b":s(l,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=kr(p.z||ye[14],Ze(je(p.v)))),s(l,0,p.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var O=`\r
`,R=l.join(O);return R}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Ya=function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,x){for(var v=p.split(`
`),E=-1,u=-1,_=0,O=[];_!==v.length;++_){var R=v[_].trim().split(":");if(R[0]==="cell"){var y=Pe(R[1]);if(O.length<=y.r)for(E=O.length;E<=y.r;++E)O[E]||(O[E]=[]);switch(E=y.r,u=y.c,R[2]){case"t":O[E][u]=e(R[3]);break;case"v":O[E][u]=+R[3];break;case"vtf":var M=R[R.length-1];case"vtc":switch(R[3]){case"nl":O[E][u]=!!+R[4];break;default:O[E][u]=+R[4];break}R[2]=="vtf"&&(O[E][u]=[O[E][u],M])}}}return x&&x.sheetRows&&(O=O.slice(0,x.sheetRows)),O}function n(p,x){return ot(r(p,x),x)}function a(p,x){return zr(n(p,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(`
`),o="--SocialCalcSpreadsheetControlSave--";function l(p){if(!p||!p["!ref"])return"";for(var x=[],v=[],E,u="",_=ar(p["!ref"]),O=Array.isArray(p),R=_.s.r;R<=_.e.r;++R)for(var y=_.s.c;y<=_.e.c;++y)if(u=me({r:R,c:y}),E=O?(p[R]||[])[y]:p[u],!(!E||E.v==null||E.t==="z")){switch(v=["cell",u,"t"],E.t){case"s":case"str":v.push(t(E.v));break;case"n":E.f?(v[2]="vtf",v[3]="n",v[4]=E.v,v[5]=t(E.f)):(v[2]="v",v[3]=E.v);break;case"b":v[2]="vt"+(E.f?"f":"c"),v[3]="nl",v[4]=E.v?"1":"0",v[5]=t(E.f||(E.v?"TRUE":"FALSE"));break;case"d":var M=Ze(je(E.v));v[2]="vtc",v[3]="nd",v[4]=""+M,v[5]=E.w||kr(E.z||ye[14],M);break;case"e":continue}x.push(v.join(":"))}return x.push("sheet:c:"+(_.e.c-_.s.c+1)+":r:"+(_.e.r-_.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
`)}function c(p){return[i,s,f,s,l(p),o].join(`
`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),al=function(){function e(c,p,x,v,E){E.raw?p[x][v]=c:c===""||(c==="TRUE"?p[x][v]=!0:c==="FALSE"?p[x][v]=!1:isNaN(Fr(c))?isNaN(Ft(c).getDate())?p[x][v]=c:p[x][v]=je(c):p[x][v]=Fr(c))}function t(c,p){var x=p||{},v=[];if(!c||c.length===0)return v;for(var E=c.split(/[\r\n]/),u=E.length-1;u>=0&&E[u].length===0;)--u;for(var _=10,O=0,R=0;R<=u;++R)O=E[R].indexOf(" "),O==-1?O=E[R].length:O++,_=Math.max(_,O);for(R=0;R<=u;++R){v[R]=[];var y=0;for(e(E[R].slice(0,_).trim(),v,R,y,x),y=1;y<=(E[R].length-_)/10+1;++y)e(E[R].slice(_+(y-1)*10,_+y*10).trim(),v,R,y,x)}return x.sheetRows&&(v=v.slice(0,x.sheetRows)),v}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var p={},x=!1,v=0,E=0;v<c.length;++v)(E=c.charCodeAt(v))==34?x=!x:!x&&E in r&&(p[E]=(p[E]||0)+1);E=[];for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&E.push([p[v],v]);if(!E.length){p=n;for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&E.push([p[v],v])}return E.sort(function(u,_){return u[0]-_[0]||n[u[1]]-n[_[1]]}),r[E.pop()[1]]||44}function i(c,p){var x=p||{},v="",E=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(v=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(v=c.charAt(4),c=c.slice(6)):v=a(c.slice(0,1024)):x&&x.FS?v=x.FS:v=a(c.slice(0,1024));var _=0,O=0,R=0,y=0,M=0,j=v.charCodeAt(0),ee=!1,C=0,b=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var L=x.dateNF!=null?_s(x.dateNF):null;function G(){var V=c.slice(y,M),K={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)K.t="z";else if(x.raw)K.t="s",K.v=V;else if(V.trim().length===0)K.t="s",K.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(K.t="s",K.v=V.slice(2,-1).replace(/""/g,'"')):to(V)?(K.t="n",K.f=V.slice(1)):(K.t="s",K.v=V);else if(V=="TRUE")K.t="b",K.v=!0;else if(V=="FALSE")K.t="b",K.v=!1;else if(!isNaN(R=Fr(V)))K.t="n",x.cellText!==!1&&(K.w=V),K.v=R;else if(!isNaN(Ft(V).getDate())||L&&V.match(L)){K.z=x.dateNF||ye[14];var re=0;L&&V.match(L)&&(V=Ts(V,x.dateNF,V.match(L)||[]),re=1),x.cellDates?(K.t="d",K.v=je(V,re)):(K.t="n",K.v=Ze(je(V,re))),x.cellText!==!1&&(K.w=kr(K.z,K.v instanceof Date?Ze(K.v):K.v)),x.cellNF||delete K.z}else K.t="s",K.v=V;if(K.t=="z"||(x.dense?(E[_]||(E[_]=[]),E[_][O]=K):E[me({c:O,r:_})]=K),y=M+1,b=c.charCodeAt(y),u.e.c<O&&(u.e.c=O),u.e.r<_&&(u.e.r=_),C==j)++O;else if(O=0,++_,x.sheetRows&&x.sheetRows<=_)return!0}e:for(;M<c.length;++M)switch(C=c.charCodeAt(M)){case 34:b===34&&(ee=!ee);break;case j:case 10:case 13:if(!ee&&G())break e;break}return M-y>0&&G(),E["!ref"]=De(u),E}function s(c,p){return!(p&&p.PRN)||p.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,p):ot(t(c,p),p)}function f(c,p){var x="",v=p.type=="string"?[0,0,0,0]:mu(c,p);switch(p.type){case"base64":x=Cr(c);break;case"binary":x=c;break;case"buffer":p.codepage==65001?x=c.toString("utf8"):p.codepage&&typeof Wr<"u"?x=Wr.utils.decode(p.codepage,c):x=ue&&Buffer.isBuffer(c)?c.toString("binary"):Dt(c);break;case"array":x=o0(c);break;case"string":x=c;break;default:throw new Error("Unrecognized type "+p.type)}return v[0]==239&&v[1]==187&&v[2]==191?x=gt(x.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?x=gt(x):p.type=="binary"&&typeof Wr<"u"&&p.codepage&&(x=Wr.utils.decode(p.codepage,Wr.utils.encode(28591,x))),x.slice(0,19)=="socialcalc:version:"?Ya.to_sheet(p.type=="string"?x:gt(x),p):s(x,p)}function o(c,p){return zr(f(c,p),p)}function l(c){for(var p=[],x=Ee(c["!ref"]),v,E=Array.isArray(c),u=x.s.r;u<=x.e.r;++u){for(var _=[],O=x.s.c;O<=x.e.c;++O){var R=me({r:u,c:O});if(v=E?(c[u]||[])[O]:c[R],!v||v.v==null){_.push(" ");continue}for(var y=(v.w||(Or(v),v.w)||"").slice(0,10);y.length<10;)y+=" ";_.push(y+(O===0?" ":""))}p.push(_.join(""))}return p.join(`
`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),bn=function(){function e(S,P,F){if(!!S){rr(S,S.l||0);for(var A=F.Enum||ir;S.l<S.length;){var H=S.read_shift(2),ie=A[H]||A[65535],se=S.read_shift(2),ae=S.l+se,q=ie.f&&ie.f(S,se,F);if(S.l=ae,P(q,ie,H))return}}}function t(S,P){switch(P.type){case"base64":return r(xr(Cr(S)),P);case"binary":return r(xr(S),P);case"buffer":case"array":return r(S,P)}throw"Unsupported type "+P.type}function r(S,P){if(!S)return S;var F=P||{},A=F.dense?[]:{},H="Sheet1",ie="",se=0,ae={},q=[],Te=[],ce={s:{r:0,c:0},e:{r:0,c:0}},ze=F.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)F.Enum=ir,e(S,function(ne,sr,Er){switch(Er){case 0:F.vers=ne,ne>=4096&&(F.qpro=!0);break;case 6:ce=ne;break;case 204:ne&&(ie=ne);break;case 222:ie=ne;break;case 15:case 51:F.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:Er==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=F.dateNF||ye[14],F.cellDates&&(ne[1].t="d",ne[1].v=ca(ne[1].v))),F.qpro&&ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H=ie||"Sheet"+(se+1),ie="");var Br=F.dense?(A[ne[0].r]||[])[ne[0].c]:A[me(ne[0])];if(Br){Br.t=ne[1].t,Br.v=ne[1].v,ne[1].z!=null&&(Br.z=ne[1].z),ne[1].f!=null&&(Br.f=ne[1].f);break}F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1];break}},F);else if(S[2]==26||S[2]==14)F.Enum=Qe,S[2]==14&&(F.qpro=!0,S.l=0),e(S,function(ne,sr,Er){switch(Er){case 204:H=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H="Sheet"+(se+1)),ze>0&&ne[0].r>=ze)break;F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1],ce.e.c<ne[0].c&&(ce.e.c=ne[0].c),ce.e.r<ne[0].r&&(ce.e.r=ne[0].r);break;case 27:ne[14e3]&&(Te[ne[14e3][0]]=ne[14e3][1]);break;case 1537:Te[ne[0]]=ne[1],ne[0]==se&&(H=ne[1]);break}},F);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(A["!ref"]=De(ce),ae[ie||H]=A,q.push(ie||H),!Te.length)return{SheetNames:q,Sheets:ae};for(var xe={},Tr=[],Ae=0;Ae<Te.length;++Ae)ae[q[Ae]]?(Tr.push(Te[Ae]||q[Ae]),xe[Te[Ae]]=ae[Te[Ae]]||ae[q[Ae]]):(Tr.push(Te[Ae]),xe[Te[Ae]]={"!ref":"A1"});return{SheetNames:Tr,Sheets:xe}}function n(S,P){var F=P||{};if(+F.codepage>=0&&St(+F.codepage),F.type=="string")throw new Error("Cannot write WK1 to JS string");var A=Je(),H=Ee(S["!ref"]),ie=Array.isArray(S),se=[];J(A,0,i(1030)),J(A,6,o(H));for(var ae=Math.min(H.e.r,8191),q=H.s.r;q<=ae;++q)for(var Te=He(q),ce=H.s.c;ce<=H.e.c;++ce){q===H.s.r&&(se[ce]=Xe(ce));var ze=se[ce]+Te,xe=ie?(S[q]||[])[ce]:S[ze];if(!(!xe||xe.t=="z"))if(xe.t=="n")(xe.v|0)==xe.v&&xe.v>=-32768&&xe.v<=32767?J(A,13,v(q,ce,xe.v)):J(A,14,u(q,ce,xe.v));else{var Tr=Or(xe);J(A,15,p(q,ce,Tr.slice(0,239)))}}return J(A,1),A.end()}function a(S,P){var F=P||{};if(+F.codepage>=0&&St(+F.codepage),F.type=="string")throw new Error("Cannot write WK3 to JS string");var A=Je();J(A,0,s(S));for(var H=0,ie=0;H<S.SheetNames.length;++H)(S.Sheets[S.SheetNames[H]]||{})["!ref"]&&J(A,27,Ne(S.SheetNames[H],ie++));var se=0;for(H=0;H<S.SheetNames.length;++H){var ae=S.Sheets[S.SheetNames[H]];if(!(!ae||!ae["!ref"])){for(var q=Ee(ae["!ref"]),Te=Array.isArray(ae),ce=[],ze=Math.min(q.e.r,8191),xe=q.s.r;xe<=ze;++xe)for(var Tr=He(xe),Ae=q.s.c;Ae<=q.e.c;++Ae){xe===q.s.r&&(ce[Ae]=Xe(Ae));var ne=ce[Ae]+Tr,sr=Te?(ae[xe]||[])[Ae]:ae[ne];if(!(!sr||sr.t=="z"))if(sr.t=="n")J(A,23,G(xe,Ae,se,sr.v));else{var Er=Or(sr);J(A,22,C(xe,Ae,se,Er.slice(0,239)))}}++se}}return J(A,1),A.end()}function i(S){var P=B(2);return P.write_shift(2,S),P}function s(S){var P=B(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var F=0,A=0,H=0,ie=0;ie<S.SheetNames.length;++ie){var se=S.SheetNames[ie],ae=S.Sheets[se];if(!(!ae||!ae["!ref"])){++H;var q=ar(ae["!ref"]);F<q.e.r&&(F=q.e.r),A<q.e.c&&(A=q.e.c)}}return F>8191&&(F=8191),P.write_shift(2,F),P.write_shift(1,H),P.write_shift(1,A),P.write_shift(2
<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 Kl(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=me(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var tt=1024;function ti(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Y("xml",null,{"xmlns:v":tr.v,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:mv":tr.mv}).replace(/\/>/,">"),Y("o:shapelayout",Y("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Y("v:shapetype",[Y("v:stroke",null,{joinstyle:"miter"}),Y("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];tt<e*1e3;)tt+=1e3;return t.forEach(function(i){var s=Pe(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var o=f.type=="gradient"?Y("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=Y("v:fill",o,f),c={on:"t",obscured:"t"};++tt,a=a.concat(["<v:shape"+yt({id:"_x0000_s"+tt,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"})+">",l,Y("v:shadow",null,c),Y("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",We("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),We("x:AutoFill","False"),We("x:Row",String(s.r)),We("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function ni(e){var t=[Re,Y("comments",null,{xmlns:lt[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=de(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(a=r.indexOf(de(o.a))),i.push(o.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(We("t",de(i[0]||"")));else{for(var s=`Comment:
`+i[0]+`
`,f=1;f<i.length;++f)s+=`Reply:
`+i[f]+`
`;t.push(We("t",de(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function zl(e,t,r){var n=[Re,Y("ThreadedComments",null,{xmlns:ke.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var o={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=o.id:o.parentId=i,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(Y("threadedComment",We("text",s.t||""),o))})}),n.push("</ThreadedComments>"),n.join("")}function Yl(e){var t=[Re,Y("personList",null,{xmlns:ke.TCMNT,"xmlns:x":lt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Y("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function $l(e){var t={};t.iauthor=e.read_shift(4);var r=Jr(e);return t.rfx=r.s,t.ref=me(r.s),e.l+=16,t}function jl(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),ct(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 Jl=Ke;function Zl(e){return Le(e.slice(0,54))}function ql(e){var t=Je(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),W(t,632,Zl(a.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Pe(n[0]),e:Pe(n[0])};W(t,635,jl([i,a])),a.t&&a.t.length>0&&W(t,637,Qs(a)),W(t,636),delete a.iauthor})}),W(t,634),W(t,629),t.end()}function Ql(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&_e.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var ai=["xlsb","xlsm","xlam","biff8","xla"],eo=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(n,a,i,s){var f=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,a+(f?"":"$")+Xe(c)+(o?"":"$")+He(l)}return function(a,i){return t=i,a.replace(e,r)}}(),K0=/(^|[^._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,z0=function(){return function(t,r){return t.replace(K0,function(n,a,i,s,f,o){var l=b0(s)-(i?0:r.c),c=U0(o)-(f?0:r.r),p=c==0?"":f?c+1:"["+c+"]",x=l==0?"":i?l+1:"["+l+"]";return a+"R"+p+"C"+x})}}();function ro(e,t){return e.replace(K0,function(r,n,a,i,s,f){return n+(a=="$"?a+i:Xe(b0(i)+t.c))+(s=="$"?s+f:He(U0(f)+t.r))})}function to(e){return e.length!=1}function Oe(e){e.l+=1}function Pr(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function ii(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return si(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=Pr(e,2),f=Pr(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function si(e){var t=Pr(e,2),r=Pr(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function no(e,t,r){if(r.biff<8)return si(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Pr(e,2),s=Pr(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function fi(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return ao(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Pr(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function ao(e){var t=Pr(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function io(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function so(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return fo(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=
`,r=` <table:covered-table-cell/>
`,n=function(i,s,f){var o=[];o.push(' <table:table table:name="'+de(s.SheetNames[f])+`" table:style-name="ta1">
`);var l=0,c=0,p=ar(i["!ref"]||"A1"),x=i["!merges"]||[],v=0,E=Array.isArray(i);if(i["!cols"])for(c=0;c<=p.e.c;++c)o.push(" <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
`);var u="",_=i["!rows"]||[];for(l=0;l<p.s.r;++l)u=_[l]?' table:style-name="ro'+_[l].ods+'"':"",o.push(" <table:table-row"+u+`></table:table-row>
`);for(;l<=p.e.r;++l){for(u=_[l]?' table:style-name="ro'+_[l].ods+'"':"",o.push(" <table:table-row"+u+`>
`),c=0;c<p.s.c;++c)o.push(t);for(;c<=p.e.c;++c){var O=!1,R={},y="";for(v=0;v!=x.length;++v)if(!(x[v].s.c>c)&&!(x[v].s.r>l)&&!(x[v].e.c<c)&&!(x[v].e.r<l)){(x[v].s.c!=c||x[v].s.r!=l)&&(O=!0),R["table:number-columns-spanned"]=x[v].e.c-x[v].s.c+1,R["table:number-rows-spanned"]=x[v].e.r-x[v].s.r+1;break}if(O){o.push(r);continue}var M=me({r:l,c}),j=E?(i[l]||[])[c]:i[M];if(j&&j.f&&(R["table:formula"]=de(yc(j.f)),j.F&&j.F.slice(0,M.length)==M)){var ee=ar(j.F);R["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,R["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!j){o.push(t);continue}switch(j.t){case"b":y=j.v?"TRUE":"FALSE",R["office:value-type"]="boolean",R["office:boolean-value"]=j.v?"true":"false";break;case"n":y=j.w||String(j.v||0),R["office:value-type"]="float",R["office:value"]=j.v||0;break;case"s":case"str":y=j.v==null?"":j.v,R["office:value-type"]="string";break;case"d":y=j.w||je(j.v).toISOString(),R["office:value-type"]="date",R["office:date-value"]=je(j.v).toISOString(),R["table:style-name"]="ce1";break;default:o.push(t);continue}var C=e(y);if(j.l&&j.l.Target){var b=j.l.Target;b=b.charAt(0)=="#"?"#"+Cc(b.slice(1)):b,b.charAt(0)!="#"&&!b.match(/^\w+:/)&&(b="../"+b),C=Y("text:a",C,{"xlink:href":b.replace(/&/g,"&amp;")})}o.push(" "+Y("table:table-cell",Y("text:p",C,{}),R)+`
`)}o.push(` </table:table-row>
`)}return o.push(` </table:table>
`),o.join("")},a=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(l){return s.Sheets[l]}).forEach(function(l){if(!!l&&l["!cols"]){for(var c=0;c<l["!cols"].length;++c)if(l["!cols"][c]){var p=l["!cols"][c];if(p.width==null&&p.wpx==null&&p.wch==null)continue;X0(p),p.ods=f;var x=l["!cols"][c].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 o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(!!l&&l["!rows"]){for(var c=0;c<l["!rows"].length;++c)if(l["!rows"][c]){l["!rows"][c].ods=o;var p=l["!rows"][c].hpx+"px";i.push(' <style:style style:name="ro'+o+`" style:family="table-row">
`),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
`),i.push(` </style:style>
`),++o}}}),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 o=[Re],l=yt({"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"}),c=yt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(o.push("<office:document"+l+c+`>
`),o.push(Ma().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+l+`>
`),a(o,s),o.push(` <office:body>
`),o.push(` <office:spreadsheet>
`);for(var p=0;p!=s.SheetNames.length;++p)o.push(n(s.Sheets[s.SheetNames[p]],s,p));return o.push(` </office:spreadsheet>
`),o.push(` </office:body>
`),f.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function wi(e,t){if(t.bookType=="fods")return zn(e,t);var r=k0(),n="",a=[],i=[];return n="mimetype",oe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",oe(r,n,zn(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",oe(r,n,su(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",oe(r,n,Re+Ma()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",oe(r,n,mf(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",oe(r,n,pf(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function n0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function fu(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):xr(Sr(e))}function lu(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Lr(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function ou(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function Ct(e,t){var r=t?t[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 t&&(t[0]=r),n}function ve(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 st(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 n=r[0],a=Ct(e,r),i=a&7;a=Math.floor(a/8);var s=0,f;if(a==0)break;switch(i){case 0:{for(var o=r[0];e[r[0]++]>=128;);f=e.slice(o,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=Ct(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(a," at offset ").concat(n))}var l={data:f,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function Be(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){!a.data||(t.push(ve(n*8+a.type)),a.type==2&&t.push(ve(a.data.length)),t.push(a.data))})}),Lr(t)}function hr(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Ct(e,n),i=Ie(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:st(i[1][0].data),messages:[]};i[2].forEach(function(f){var o=Ie(f.data),l=st(o[3][0].data);s.messages.push({meta:o,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=st(i[3][0].data)>>>0>0),r.push(s)}return r}function Qr(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:ve(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ve(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:ve(s.data.length)}],n[2].push({data:Be(s.meta),type:2})});var i=Be(n);t.push(ve(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Lr(t)}function cu(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Ct(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0
`,o=f.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",p=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],E=a.s.c;E<=a.e.c;++E)(x[E]||{}).hidden||(p[E]=Xe(E));for(var u=0,_=a.s.r;_<=a.e.r;++_)(v[_]||{}).hidden||(c=Au(e,a,_,p,s,o,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((u++?f:"")+c)));return delete n.dense,r.join("")}function Fi(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=J0(e,t);return r}function Fu(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ee(e["!ref"]),i="",s=[],f,o=[],l=Array.isArray(e);for(f=a.s.c;f<=a.e.c;++f)s[f]=Xe(f);for(var c=a.s.r;c<=a.e.r;++c)for(i=He(c),f=a.s.c;f<=a.e.c;++f)if(t=s[f]+i,r=l?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}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}}o[o.length]=t+"="+n}return o}function yi(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,f=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}var l,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+a}};if(i["!ref"]){var p=Ee(i["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),s==-1&&(s=p.e.r+1,c.e.r=s+t.length-1+a)}else s==-1&&(s=0,c.e.r=t.length-1+a);var x=n.header||[],v=0;t.forEach(function(u,_){Ge(u).forEach(function(O){(v=x.indexOf(O))==-1&&(x[v=x.length]=O);var R=u[O],y="z",M="",j=me({c:f+v,r:s+_+a});l=Ot(i,j),R&&typeof R=="object"&&!(R instanceof Date)?i[j]=R:(typeof R=="number"?y="n":typeof R=="boolean"?y="b":typeof R=="string"?y="s":R instanceof Date?(y="d",n.cellDates||(y="n",R=Ze(R)),M=n.dateNF||ye[14]):R===null&&n.nullError&&(y="e",R=0),l?(l.t=y,l.v=R,delete l.w,delete l.R,M&&(l.z=M)):i[j]=l={t:y,v:R},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+x.length-1);var E=He(s);if(a)for(v=0;v<x.length;++v)i[Xe(v+f)+E]={t:"s",v:x[v]};return i["!ref"]=De(c),i}function yu(e,t){return yi(null,e,t)}function Ot(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Pe(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ot(e,me(t)):Ot(e,me({r:t,c:r||0}))}function Cu(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 Ou(){return{SheetNames:[],Sheets:{}}}function Du(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(pi(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 Ru(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Cu(e,t);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 Iu(e,t){return e.z=t,e}function Ci(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Nu(e,t,r){return Ci(e,"#"+t,r)}function ku(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Pu(e,t,r,n){for(var a=typeof t!="string"?t:Ee(t),i=typeof t=="string"?t:De(t),s=a.s.r;s<=a.e.r;++s)for(var f=a.s.c;f<=a.e.c;++f){var o=Ot(e,s,f);o.t="n",o.F=i,delete o.v,s==a.s.r&&f==a.s.c&&(o.f=r,n&&(o.D=!0))}return e}var Mu={encode_col:Xe,encode_row:He,encode_cell:me,encode_range:De,decode_col:b0,decode_row:U0,split_cell:Ys,decode_cell:Pe,decode_range:ar,format_cell:Or,sheet_add_aoa:Ca,sheet_add_json:yi,sheet_add_dom:Ti,aoa_to_sheet:ot,json_to_sheet:yu,table_to_sheet:Ei,table_to_book:au,sheet_to_csv:J0,sheet_to_txt:Fi,sheet_to_json:a0,sheet_to_html:_i,sheet_to_formulae:Fu,sheet_to_row_object_array:a0,sheet_get_cell:Ot,book_new:Ou,book_append_sheet:Du,book_set_sheet_visibility:Ru,cell_set_number_format:Iu,cell_set_hyperlink:Ci,cell_set_internal_link:Nu,cell_add_comment:ku,sheet_set_array_formula:Pu,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{Mu as u,Lu a