diff --git a/assets/simplifyTruths-78e8b855.js b/assets/simplifyTruths-d3cd6ff7.js similarity index 77% rename from assets/simplifyTruths-78e8b855.js rename to assets/simplifyTruths-d3cd6ff7.js index 27c6e77..492918f 100644 --- a/assets/simplifyTruths-78e8b855.js +++ b/assets/simplifyTruths-d3cd6ff7.js @@ -1,24 +1,24 @@ -import{b as qe,i as ce,t as de,d as In,e as Pe,c as Y,s as rr,F as at,f as h0,g as sf,m as gr,h as Ot,o as Nn,u as kn,D as ff,j as ir,k as lf,l as wt,S as nr,n as Rn,p as of,I as Lr,q as cf,v as Vi,P as uf,r as hf,w as xf,L as df,x as pf,y as vf,z as mf,A as gf,B as _f,C as Tf,E as Ef,a as wf,G as Sf}from"./layout-c627ce3b.js";const Af=de("
"),Xi=({children:e,className:t})=>(()=>{const r=Af.cloneNode(!0);return qe(r,`flex-row-center ${t}`),ce(r,e),r})(),Ff=de(""),yf=de('');function Cf(e,t){let r=!0;function n(a){r&&t(a)}const i=document.getElementById(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),r=!1}}function Of(e,t,r){if(e){const n=document.getElementById(e);n&&n.value!==""!==t&&r(n.value!=="")}}const j0=({className:e,id:t,name:r,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:o,trailing:l,inputClass:c})=>{const[x,h]=Pe(!1),[d,_]=Pe(!1),[u,m]=Pe(!1);return document.addEventListener("DOMContentLoaded",()=>{t&&i&&Cf(t,_)}),Y(Xi,{className:`relative ${e}`,get children(){return[o,Y(Df,{title:i,get isActive(){return x()||d()||u()},htmlFor:t}),(()=>{const A=Ff.cloneNode(!0);return A.$$input=()=>{Of(t,u(),m),f&&f()},A.addEventListener("blur",()=>h(!1)),A.addEventListener("focus",()=>h(!0)),qe(A,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500 - hover:border-t-cyan-400 ${c}`),rr(A,"id",t),rr(A,"name",r??void 0),rr(A,"type",n),rr(A,"placeholder",a??void 0),A.required=s,A})(),l]}})};function Df({title:e,isActive:t=!1,htmlFor:r}){return(()=>{const n=yf.cloneNode(!0),i=n.firstChild;return qe(n,`absolute pointer-events-none +import{b as qe,i as oe,t as de,d as In,e as Pe,c as Y,s as tr,F as at,f as h0,g as sf,m as gr,h as Ot,o as Nn,u as kn,D as ff,j as ar,k as lf,l as wt,S as ir,n as Rn,p as of,I as Lr,q as cf,v as Vi,P as uf,r as hf,w as xf,L as df,x as pf,y as vf,z as mf,A as gf,B as _f,C as Tf,E as Ef,a as wf,G as Sf}from"./layout-c627ce3b.js";const Af=de("
"),Xi=({children:e,className:t})=>(()=>{const r=Af.cloneNode(!0);return qe(r,`flex-row-center ${t}`),oe(r,e),r})(),Ff=de(""),yf=de('');function Cf(e,t){let r=!0;function n(a){r&&t(a)}const i=document.getElementById(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),r=!1}}function Of(e,t,r){if(e){const n=document.getElementById(e);n&&n.value!==""!==t&&r(n.value!=="")}}const j0=({className:e,id:t,name:r,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:o,trailing:l,inputClass:c})=>{const[x,h]=Pe(!1),[p,_]=Pe(!1),[u,m]=Pe(!1);return document.addEventListener("DOMContentLoaded",()=>{t&&i&&Cf(t,_)}),Y(Xi,{className:`relative ${e}`,get children(){return[o,Y(Df,{title:i,get isActive(){return x()||p()||u()},htmlFor:t}),(()=>{const A=Ff.cloneNode(!0);return A.$$input=()=>{Of(t,u(),m),f&&f()},A.addEventListener("blur",()=>h(!1)),A.addEventListener("focus",()=>h(!0)),qe(A,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500 + hover:border-t-cyan-400 ${c}`),tr(A,"id",t),tr(A,"name",r??void 0),tr(A,"type",n),tr(A,"placeholder",a??void 0),A.required=s,A})(),l]}})};function Df({title:e,isActive:t=!1,htmlFor:r}){return(()=>{const n=yf.cloneNode(!0),i=n.firstChild;return qe(n,`absolute pointer-events-none ${t?"-top-2 left-3 default-bg text-sm":"left-2 top-1"} - transition-all duration-150 text-gray-600 dark:text-gray-400`),rr(n,"for",r),ce(i,e),n})()}In(["input"]);const If=de("
"),Nf=de(`

`),kf=de(''),Rf=de("

"),Lf=({table:e,header:t,className:r,style:n,id:i})=>(()=>{const a=If.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return qe(a,`border-2 border-gray-500 border-collapse table z-10 ${r}`),rr(a,"id",i),ce(f,Y(at,{each:t,children:l=>(()=>{const c=Nf.cloneNode(!0),x=c.firstChild;return ce(x,l),c})()})),ce(o,Y(at,{each:e,children:l=>(()=>{const c=kf.cloneNode(!0);return ce(c,Y(at,{each:l,children:x=>(()=>{const h=Rf.cloneNode(!0),d=h.firstChild;return qe(h,`text-center border border-gray-500 last:underline - ${x?"bg-green-700":"bg-red-700"}`),ce(d,x?"T":"F"),h})()})),c})()})),h0(l=>sf(a,n,l)),a})();function Fr(e,t){let r={},n=Object.keys(e);for(let i=0,a=n.length;i`.")}function Pf(e){return typeof e=="function"&&e.length>0}function Mf(e){let t=Ln();return wt(()=>{let r=e.children;return Pf(r)?r(t):r})}function ct(e){return{get children(){return Y(Mf,{get children(){return e.children}})}}}function Bf(e){let t,r;if("defaultOpen"in e){let[n,i]=Pe(e.defaultOpen);t=n,r=a=>{of(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else t=()=>e.isOpen,r=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return t()},setState(n){e.disabled||r(n)},disabled(){return!!e.disabled}}}function bf(e){return typeof e=="function"&&e.length>0}function Pn(e){let t=Bf(e);return Y(zi.Provider,{value:t,get children(){return wt(()=>{let r=e.children;return bf(r)?r(t):r})}})}function Ir(e,t){return Y(ff,gr({get component(){return e()}},t))}function Uf(e){return typeof e=="function"}function Mn(e,t){return r=>{"ref"in e&&Uf(e.ref)&&e.ref(r),t(r)}}function Bn(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function Wf(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Hf='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]';function Ki(e,t){let r=e.querySelectorAll(Hf),n=[];for(let i=0,a=r.length;i=0&&n=e.length&&(n=0),r===-1&&n<0&&(n=e.length-1)}}function $f(e,t){var r;for(let n=0,i=e.length;n{let n=t();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),Nn(()=>{n.removeEventListener("keydown",i)})}}),Ir(()=>{var n;return(n=e.as)!=null?n:"button"},gr({get tabindex(){return e.disabled?-1:0},role:"button"},Bn(()=>e.disabled),Fr(e,["as","ref"]),Kf,{ref:Mn(e,n=>{r(()=>n)})}))}function bn(e,t,r){return Y(nr,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return r()},get children(){return Y(nr,{get when(){return t()},get children(){return r()}})}})}function J0(){var e,t;return(t=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:t.parentElement}function jf(e){if(e){let t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}}var Jf=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=J0()),Nn(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():jf(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=J0()}};function Zi(){return new Jf}function Qi(e){return wt(()=>e.children)}var x0=Rn();function d0(e){let t=kn(x0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ea=Jr("dialog"),qf=Jr("dialog-description"),Zf=Jr("dialog-panel"),Qf=Jr("dialog-title");function el(e){let t=ir(),r=ir(),n=ir(),i=ir(),a=Zi();return Y(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return Y(Pn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},onChange(s){var f,o,l;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(o=e.onChange)==null||o.call(e,s),s||((l=e.onClose)==null||l.call(e),a.load())},children:({isOpen:s})=>bn(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},gr(Fr(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),ea,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function rl(e){let t=ir(),r=ir(),n=ir(),i=ir(),a=Zi();return Y(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return Y(Pn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},onChange(s){var f,o,l;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(o=e.onChange)==null||o.call(e,s),s||((l=e.onClose)==null||l.call(e),a.load())},children:({isOpen:s})=>bn(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},gr(Fr(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),ea,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function tl(e){return"defaultOpen"in e}function nl(e){return tl(e)?Y(rl,e):Y(el,e)}function il(e){let t=d0("DialogDescription");return Ir(()=>{var r;return(r=e.as)!=null?r:"p"},gr(Fr(e,["as","children"]),qf,{id:t.descriptionID},ct(e)))}function al(e){let t=d0("DialogPanel"),r=Ln(),[n,i]=Pe();return Ot(()=>{let a=n();if(a instanceof HTMLElement&&r.isOpen()){qi(Ki(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Xf(a,f.shiftKey)):f.key==="Escape"&&r.setState(!1))};a.addEventListener("keydown",s),Nn(()=>{a.removeEventListener("keydown",s)})}}),Ir(()=>{var a;return(a=e.as)!=null?a:"div"},gr(Fr(e,["as","children","ref"]),Zf,{id:t.panelID,ref:Mn(e,a=>{i(()=>a)})},ct(e)))}function sl(e){let t=d0("DialogTitle");return Ir(()=>{var r;return(r=e.as)!=null?r:"h2"},gr(Fr(e,["as","children"]),Qf,{id:t.titleID},ct(e)))}var p0=Rn();function ra(e){let t=kn(p0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ta=Jr("disclosure"),fl=Jr("disclosure-button"),ll=Jr("disclosure-panel");function ol(e){let t=ir(),r=ir(),n=ir();return Y(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Qi},gr(Fr(e,["isOpen","as","children","disabled","onChange"]),ta,Bn(()=>e.disabled),{get children(){return Y(Pn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function cl(e){let t=ir(),r=ir(),n=ir();return Y(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Qi},gr(Fr(e,["defaultOpen","as","children","disabled","onChange"]),ta,Bn(()=>e.disabled),{get children(){return Y(Pn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function ul(e){return"defaultOpen"in e}function hl(e){return ul(e)?Y(cl,e):Y(ol,e)}function xl(e){let t=ra("DisclosureButton"),r=Ln(),[n,i]=Pe();return Ot(()=>{let a=n();if(a instanceof HTMLElement){let s=()=>{r.disabled()||e.disabled||r.setState(!r.isOpen())};a.addEventListener("click",s),Nn(()=>{a.removeEventListener("click",s)})}}),Y(Yf,gr(Fr(e,["children","ref"]),fl,{id:t.buttonID,ref:Mn(e,a=>{i(()=>a)}),get"aria-controls"(){return r.isOpen()&&t.panelID}},Bn(()=>{let a=r.disabled(),s=e.disabled;return a||s}),Wf(()=>r.isOpen()),ct(e)))}function dl(e){let t=ra("DisclosurePanel"),r=Ln();return bn(e,()=>r.isOpen(),()=>Ir(()=>{var n;return(n=e.as)!=null?n:"div"},gr(Fr(e,["as","unmount","children"]),ll,{id:t.panelID},ct(e))))}var na=Rn();function pl(e){let t=kn(na);if(t)return t;throw new Error(`<${e}> must be used inside a `)}function Gr(e){return e?e.split(" "):[]}function rt(e,t){let r=t.filter(n=>n);r.length&&e.classList.add(...r)}function tt(e,t){let r=t.filter(n=>n);r.length&&e.classList.remove(...r)}function vl(e){let t=pl("TransitionChild"),[r,n]=Pe(t.show),[i,a]=Pe(),s=!0;function f(o,l){var c,x;if(l){if(s){let h=Gr(e.enter),d=Gr(e.enterFrom),_=Gr(e.enterTo),u=Gr(e.entered),m=()=>{var A;tt(o,h),tt(o,_),rt(o,u),(A=e.afterEnter)==null||A.call(e)};(c=e.beforeEnter)==null||c.call(e),rt(o,h),rt(o,d),requestAnimationFrame(()=>{tt(o,d),rt(o,_),o.addEventListener("transitionend",m,{once:!0}),o.addEventListener("animationend",m,{once:!0})})}}else{let h=Gr(e.leave),d=Gr(e.leaveFrom),_=Gr(e.leaveTo),u=Gr(e.entered);(x=e.beforeLeave)==null||x.call(e),tt(o,u),rt(o,h),rt(o,d),requestAnimationFrame(()=>{tt(o,d),rt(o,_)});let m=()=>{var A;tt(o,h),tt(o,_),n(!1),(A=e.afterLeave)==null||A.call(e)};o.addEventListener("transitionend",m,{once:!0}),o.addEventListener("animationend",m,{once:!0})}}return Ot(()=>{let o=t.show;o&&n(!0);let l=i();l instanceof HTMLElement?f(l,o):s=!0}),bn(e,r,()=>Ir(()=>{var o;return(o=e.as)!=null?o:"div"},gr(Fr(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:Mn(e,o=>{a(()=>o)})})))}function ml(e){let[t,r]=lf(e,["show"]);return Y(na.Provider,{value:t,get children(){return Y(vl,r)}})}const gl=de('

'),ia=de("
"),_l=de('

'),Tl=de('
'),aa=({title:e="",children:t,error:r=!1,className:n})=>(()=>{const i=gl.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return qe(i,`border-rounded ${r?"border-red-500":"border-gray-500"} ${n}`),qe(a,`border-b px-2 ${r?"border-red-500":"border-gray-500"}`),ce(a,e),ce(s,t),i})(),v0=({title:e,children:t,defaultOpen:r=!1,className:n,id:i,onClick:a})=>(()=>{const s=ia.cloneNode(!0);return rr(s,"id",i),qe(s,`border-rounded bg-default-bg ${n}`),ce(s,Y(hl,{defaultOpen:r,children:({isOpen:f})=>[Y(xl,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{const o=_l.cloneNode(!0);return ce(o,e),o})(),Y(Lr,{path:cf,get class(){return`w-5 ${f()&&"transform rotate-180"} transition`}})]}}),Y(ml,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",show:!0,get children(){return Y(dl,{get children(){const o=Tl.cloneNode(!0);return ce(o,t),o}})}})]})),s})(),sa=({children:e,className:t})=>(()=>{const r=ia.cloneNode(!0);return qe(r,`bg-cyan-900 border-rounded dark:border-gray-800 p-2 mb-2 - flex flex-col gap-1 ${t}`),ce(r,e),r})();function Hr(){}Hr.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var a=this;function s(u){return i?(setTimeout(function(){i(void 0,u)},0),!0):u}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,o=t.length,l=1,c=f+o;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var x=[{newPos:-1,components:[]}],h=this.extractCommon(x[0],r,t,0);if(x[0].newPos+1>=f&&h+1>=o)return s([{value:this.join(r),count:r.length}]);function d(){for(var u=-1*l;u<=l;u+=2){var m=void 0,A=x[u-1],O=x[u+1],F=(O?O.newPos:0)-u;A&&(x[u-1]=void 0);var M=A&&A.newPos+1=f&&F+1>=o)return s(El(a,m.components,r,t,a.useLongestToken));x[u]=m}l++}if(i)(function u(){setTimeout(function(){if(l>c)return i();d()||u()},0)})();else for(;l<=c;){var _=d();if(_)return _}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var a=r.length,s=n.length,f=t.newPos,o=f-i,l=0;f+1d.length?u:d}),l.value=e.join(c)}else l.value=e.join(r.slice(f,f+l.count));f+=l.count,l.added||(o+=l.count)}}var h=t[s-1];return s>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function wl(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Sl=new Hr;function Al(e,t,r){return Sl.diff(e,t,r)}var q0=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Z0=/\S/,fa=new Hr;fa.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Z0.test(e)&&!Z0.test(t)};fa.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r"u"?r:s}:n;return typeof e=="string"?e:JSON.stringify(s0(e,null,null,i),i," ")};Vt.equals=function(e,t){return Hr.prototype.equals.call(Vt,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function s0(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var a;for(a=0;a'),Dl=de(""),Q0=({defaultValue:e=!1,title:t,onChange:r,className:n,name:i,id:a})=>{const[s,f]=Pe(e);function o(){const l=!s();f(l),r&&r(l)}return(()=>{const l=Ol.cloneNode(!0),c=l.firstChild,x=c.nextSibling;return l.$$click=o,rr(l,"id",a),rr(l,"title",t),ce(c,i),h0(h=>{const d=`${s()?"bg-cyan-900":"bg-gray-500"} + transition-all duration-150 text-gray-600 dark:text-gray-400`),tr(n,"for",r),oe(i,e),n})()}In(["input"]);const If=de("
"),Nf=de(`

`),kf=de(''),Rf=de("

"),Lf=({table:e,header:t,className:r,style:n,id:i})=>(()=>{const a=If.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return qe(a,`border-2 border-gray-500 border-collapse table z-10 ${r}`),tr(a,"id",i),oe(f,Y(at,{each:t,children:l=>(()=>{const c=Nf.cloneNode(!0),x=c.firstChild;return oe(x,l),c})()})),oe(o,Y(at,{each:e,children:l=>(()=>{const c=kf.cloneNode(!0);return oe(c,Y(at,{each:l,children:x=>(()=>{const h=Rf.cloneNode(!0),p=h.firstChild;return qe(h,`text-center border border-gray-500 last:underline + ${x?"bg-green-700":"bg-red-700"}`),oe(p,x?"T":"F"),h})()})),c})()})),h0(l=>sf(a,n,l)),a})();function Fr(e,t){let r={},n=Object.keys(e);for(let i=0,a=n.length;i`.")}function Pf(e){return typeof e=="function"&&e.length>0}function Mf(e){let t=Ln();return wt(()=>{let r=e.children;return Pf(r)?r(t):r})}function ct(e){return{get children(){return Y(Mf,{get children(){return e.children}})}}}function Bf(e){let t,r;if("defaultOpen"in e){let[n,i]=Pe(e.defaultOpen);t=n,r=a=>{of(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else t=()=>e.isOpen,r=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return t()},setState(n){e.disabled||r(n)},disabled(){return!!e.disabled}}}function bf(e){return typeof e=="function"&&e.length>0}function Pn(e){let t=Bf(e);return Y(zi.Provider,{value:t,get children(){return wt(()=>{let r=e.children;return bf(r)?r(t):r})}})}function Ir(e,t){return Y(ff,gr({get component(){return e()}},t))}function Uf(e){return typeof e=="function"}function Mn(e,t){return r=>{"ref"in e&&Uf(e.ref)&&e.ref(r),t(r)}}function Bn(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function Wf(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Hf='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]';function Ki(e,t){let r=e.querySelectorAll(Hf),n=[];for(let i=0,a=r.length;i=0&&n=e.length&&(n=0),r===-1&&n<0&&(n=e.length-1)}}function $f(e,t){var r;for(let n=0,i=e.length;n{let n=t();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),Nn(()=>{n.removeEventListener("keydown",i)})}}),Ir(()=>{var n;return(n=e.as)!=null?n:"button"},gr({get tabindex(){return e.disabled?-1:0},role:"button"},Bn(()=>e.disabled),Fr(e,["as","ref"]),Kf,{ref:Mn(e,n=>{r(()=>n)})}))}function bn(e,t,r){return Y(ir,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return r()},get children(){return Y(ir,{get when(){return t()},get children(){return r()}})}})}function J0(){var e,t;return(t=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:t.parentElement}function jf(e){if(e){let t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}}var Jf=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=J0()),Nn(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():jf(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=J0()}};function Zi(){return new Jf}function Qi(e){return wt(()=>e.children)}var x0=Rn();function d0(e){let t=kn(x0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ea=Jr("dialog"),qf=Jr("dialog-description"),Zf=Jr("dialog-panel"),Qf=Jr("dialog-title");function el(e){let t=ar(),r=ar(),n=ar(),i=ar(),a=Zi();return Y(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return Y(Pn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},onChange(s){var f,o,l;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(o=e.onChange)==null||o.call(e,s),s||((l=e.onClose)==null||l.call(e),a.load())},children:({isOpen:s})=>bn(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},gr(Fr(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),ea,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function rl(e){let t=ar(),r=ar(),n=ar(),i=ar(),a=Zi();return Y(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return Y(Pn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},onChange(s){var f,o,l;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(o=e.onChange)==null||o.call(e,s),s||((l=e.onClose)==null||l.call(e),a.load())},children:({isOpen:s})=>bn(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},gr(Fr(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),ea,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function tl(e){return"defaultOpen"in e}function nl(e){return tl(e)?Y(rl,e):Y(el,e)}function il(e){let t=d0("DialogDescription");return Ir(()=>{var r;return(r=e.as)!=null?r:"p"},gr(Fr(e,["as","children"]),qf,{id:t.descriptionID},ct(e)))}function al(e){let t=d0("DialogPanel"),r=Ln(),[n,i]=Pe();return Ot(()=>{let a=n();if(a instanceof HTMLElement&&r.isOpen()){qi(Ki(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Xf(a,f.shiftKey)):f.key==="Escape"&&r.setState(!1))};a.addEventListener("keydown",s),Nn(()=>{a.removeEventListener("keydown",s)})}}),Ir(()=>{var a;return(a=e.as)!=null?a:"div"},gr(Fr(e,["as","children","ref"]),Zf,{id:t.panelID,ref:Mn(e,a=>{i(()=>a)})},ct(e)))}function sl(e){let t=d0("DialogTitle");return Ir(()=>{var r;return(r=e.as)!=null?r:"h2"},gr(Fr(e,["as","children"]),Qf,{id:t.titleID},ct(e)))}var p0=Rn();function ra(e){let t=kn(p0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ta=Jr("disclosure"),fl=Jr("disclosure-button"),ll=Jr("disclosure-panel");function ol(e){let t=ar(),r=ar(),n=ar();return Y(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Qi},gr(Fr(e,["isOpen","as","children","disabled","onChange"]),ta,Bn(()=>e.disabled),{get children(){return Y(Pn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function cl(e){let t=ar(),r=ar(),n=ar();return Y(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Qi},gr(Fr(e,["defaultOpen","as","children","disabled","onChange"]),ta,Bn(()=>e.disabled),{get children(){return Y(Pn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function ul(e){return"defaultOpen"in e}function hl(e){return ul(e)?Y(cl,e):Y(ol,e)}function xl(e){let t=ra("DisclosureButton"),r=Ln(),[n,i]=Pe();return Ot(()=>{let a=n();if(a instanceof HTMLElement){let s=()=>{r.disabled()||e.disabled||r.setState(!r.isOpen())};a.addEventListener("click",s),Nn(()=>{a.removeEventListener("click",s)})}}),Y(Yf,gr(Fr(e,["children","ref"]),fl,{id:t.buttonID,ref:Mn(e,a=>{i(()=>a)}),get"aria-controls"(){return r.isOpen()&&t.panelID}},Bn(()=>{let a=r.disabled(),s=e.disabled;return a||s}),Wf(()=>r.isOpen()),ct(e)))}function dl(e){let t=ra("DisclosurePanel"),r=Ln();return bn(e,()=>r.isOpen(),()=>Ir(()=>{var n;return(n=e.as)!=null?n:"div"},gr(Fr(e,["as","unmount","children"]),ll,{id:t.panelID},ct(e))))}var na=Rn();function pl(e){let t=kn(na);if(t)return t;throw new Error(`<${e}> must be used inside a `)}function Gr(e){return e?e.split(" "):[]}function rt(e,t){let r=t.filter(n=>n);r.length&&e.classList.add(...r)}function tt(e,t){let r=t.filter(n=>n);r.length&&e.classList.remove(...r)}function vl(e){let t=pl("TransitionChild"),[r,n]=Pe(t.show),[i,a]=Pe(),s=!0;function f(o,l){var c,x;if(l){if(s){let h=Gr(e.enter),p=Gr(e.enterFrom),_=Gr(e.enterTo),u=Gr(e.entered),m=()=>{var A;tt(o,h),tt(o,_),rt(o,u),(A=e.afterEnter)==null||A.call(e)};(c=e.beforeEnter)==null||c.call(e),rt(o,h),rt(o,p),requestAnimationFrame(()=>{tt(o,p),rt(o,_),o.addEventListener("transitionend",m,{once:!0}),o.addEventListener("animationend",m,{once:!0})})}}else{let h=Gr(e.leave),p=Gr(e.leaveFrom),_=Gr(e.leaveTo),u=Gr(e.entered);(x=e.beforeLeave)==null||x.call(e),tt(o,u),rt(o,h),rt(o,p),requestAnimationFrame(()=>{tt(o,p),rt(o,_)});let m=()=>{var A;tt(o,h),tt(o,_),n(!1),(A=e.afterLeave)==null||A.call(e)};o.addEventListener("transitionend",m,{once:!0}),o.addEventListener("animationend",m,{once:!0})}}return Ot(()=>{let o=t.show;o&&n(!0);let l=i();l instanceof HTMLElement?f(l,o):s=!0}),bn(e,r,()=>Ir(()=>{var o;return(o=e.as)!=null?o:"div"},gr(Fr(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:Mn(e,o=>{a(()=>o)})})))}function ml(e){let[t,r]=lf(e,["show"]);return Y(na.Provider,{value:t,get children(){return Y(vl,r)}})}const gl=de('

'),ia=de("
"),_l=de('

'),Tl=de('
'),aa=({title:e="",children:t,error:r=!1,className:n})=>(()=>{const i=gl.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return qe(i,`border-rounded ${r?"border-red-500":"border-gray-500"} ${n}`),qe(a,`border-b px-2 ${r?"border-red-500":"border-gray-500"}`),oe(a,e),oe(s,t),i})(),v0=({title:e,children:t,defaultOpen:r=!1,className:n,id:i,onClick:a})=>(()=>{const s=ia.cloneNode(!0);return tr(s,"id",i),qe(s,`border-rounded bg-default-bg ${n}`),oe(s,Y(hl,{defaultOpen:r,children:({isOpen:f})=>[Y(xl,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{const o=_l.cloneNode(!0);return oe(o,e),o})(),Y(Lr,{path:cf,get class(){return`w-5 ${f()&&"transform rotate-180"} transition`}})]}}),Y(ml,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",show:!0,get children(){return Y(dl,{get children(){const o=Tl.cloneNode(!0);return oe(o,t),o}})}})]})),s})(),sa=({children:e,className:t})=>(()=>{const r=ia.cloneNode(!0);return qe(r,`bg-cyan-900 border-rounded dark:border-gray-800 p-2 mb-2 + flex flex-col gap-1 ${t}`),oe(r,e),r})();function Hr(){}Hr.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var a=this;function s(u){return i?(setTimeout(function(){i(void 0,u)},0),!0):u}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,o=t.length,l=1,c=f+o;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var x=[{newPos:-1,components:[]}],h=this.extractCommon(x[0],r,t,0);if(x[0].newPos+1>=f&&h+1>=o)return s([{value:this.join(r),count:r.length}]);function p(){for(var u=-1*l;u<=l;u+=2){var m=void 0,A=x[u-1],O=x[u+1],F=(O?O.newPos:0)-u;A&&(x[u-1]=void 0);var M=A&&A.newPos+1=f&&F+1>=o)return s(El(a,m.components,r,t,a.useLongestToken));x[u]=m}l++}if(i)(function u(){setTimeout(function(){if(l>c)return i();p()||u()},0)})();else for(;l<=c;){var _=p();if(_)return _}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var a=r.length,s=n.length,f=t.newPos,o=f-i,l=0;f+1p.length?u:p}),l.value=e.join(c)}else l.value=e.join(r.slice(f,f+l.count));f+=l.count,l.added||(o+=l.count)}}var h=t[s-1];return s>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function wl(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Sl=new Hr;function Al(e,t,r){return Sl.diff(e,t,r)}var q0=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Z0=/\S/,fa=new Hr;fa.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Z0.test(e)&&!Z0.test(t)};fa.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r"u"?r:s}:n;return typeof e=="string"?e:JSON.stringify(s0(e,null,null,i),i," ")};Vt.equals=function(e,t){return Hr.prototype.equals.call(Vt,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function s0(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var a;for(a=0;a'),Dl=de(""),Q0=({defaultValue:e=!1,title:t,onChange:r,className:n,name:i,id:a})=>{const[s,f]=Pe(e);function o(){const l=!s();f(l),r&&r(l)}return(()=>{const l=Ol.cloneNode(!0),c=l.firstChild,x=c.nextSibling;return l.$$click=o,tr(l,"id",a),tr(l,"title",t),oe(c,i),h0(h=>{const p=`${s()?"bg-cyan-900":"bg-gray-500"} relative inline-flex h-6 w-11 items-center rounded-full my-2 ${n}`,_=`${s()?"translate-x-6":"translate-x-1"} - inline-block h-4 w-4 transform rounded-full bg-white transition-all`;return d!==h._v$&&qe(l,h._v$=d),_!==h._v$2&&qe(x,h._v$2=_),h},{_v$:void 0,_v$2:void 0}),l})()},pn=({className:e,title:t,children:r,id:n,onClick:i,type:a="button"})=>(()=>{const s=Dl.cloneNode(!0);return Vi(s,"click",i,!0),rr(s,"title",t),rr(s,"id",n),rr(s,"type",a),qe(s,`border-rounded bg-cyan-900 px-2 cursor-pointer ${e}`),ce(s,r),s})();In(["click"]);const Il=de('
'),Nl=de("
"),ei=({title:e,button:t,children:r,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,o]=Pe(!1);function l(){o(!1)}function c(){o(!f())}return Ot(()=>{function x(d){d.target instanceof HTMLElement&&d.target.closest(`#${n}`)===null&&l()}function h(d){d.key==="Escape"&&l()}f()?(document.addEventListener("click",x),document.addEventListener("keyup",h)):(document.removeEventListener("click",x),document.removeEventListener("keyup",h))}),(()=>{const x=Nl.cloneNode(!0);return qe(x,`${i}`),rr(x,"id",n),ce(x,Y(pn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:t}),null),ce(x,Y(nr,{get when(){return f()},keyed:!0,get children(){const h=Il.cloneNode(!0),d=h.firstChild;return qe(h,`absolute bg-default-bg border border-gray-500 rounded-b-xl mt-1 w-max z-50 ${s}`),ce(d,r),h}}),null),x})()},kl=de('
'),Rl=de('
'),Ll=de('
');function Pl({title:e,description:t,button:r,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClasses:o,buttonTitle:l,acceptButtonId:c}){const[x,h]=Pe(!1);function d(){s&&s(),h(!1)}function _(){let u=!0;function m(A){u&&A.key==="Enter"&&document.getElementById(c??"")?.click()}if(x()){const A="cl-6",O=document.getElementById(A);return O?.addEventListener("keypress",F=>m(F)),()=>{O?.removeEventListener("keypress",F=>m(F)),u=!1}}}return Ot(_,x()),(()=>{const u=Ll.cloneNode(!0),m=u.firstChild;return m.$$click=()=>h(!0),qe(m,o),rr(m,"title",l??void 0),ce(m,r),ce(u,Y(uf,{get children(){return Y(nl,{get isOpen(){return x()},onClose:()=>h(!1),class:`fixed inset-0 flex-row-center justify-center z-50 overflow-auto text-white ${f}`,get children(){return[(()=>{const A=kl.cloneNode(!0);return rr(A,"aria-hidden",!0),A})(),Y(al,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[Y(sl,{class:"border-b",children:e}),Y(il,{class:"mb-4 mt-1",children:t}),a,(()=>{const A=Rl.cloneNode(!0);return ce(A,Y(pn,{onClick:d,className:"h-10 mr-2",id:c,children:n}),null),ce(A,Y(pn,{onClick:()=>h(!1),className:"h-10",children:i}),null),A})()]}})]}})}}),null),u})()}In(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var vn={};vn.version="0.18.5";var oa=1252,Ml=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ca=function(e){Ml.indexOf(e)!=-1&&(oa=e)};function Bl(){ca(1252)}var Xt=function(e){ca(e)};function bl(){Xt(1200),Bl()}function Ul(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var sn=function(t){return String.fromCharCode(t)},ri=function(t){return String.fromCharCode(t)},nt,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function zt(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0,o=0,l=0;l>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,i=e.charCodeAt(l++),f=(n&15)<<2|i>>6,o=i&63,isNaN(n)?f=o=64:isNaN(i)&&(o=64),t+=Xr.charAt(a)+Xr.charAt(s)+Xr.charAt(f)+Xr.charAt(o);return t}function Ur(e){var t="",r=0,n=0,i=0,a=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4,t+=String.fromCharCode(r),f=Xr.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Xr.indexOf(e.charAt(l++)),i=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(i));return t}var me=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),$r=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 ft(e){return me?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function ti(e){return me?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return me?$r(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Un(e){if(typeof ArrayBuffer>"u")return wr(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 qt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}var Ve=me?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:$r(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|f>>6&15|(s&3)<<4,i[r++]=128|f&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(t.push(i.slice(0,r)),r=0,i=ft(65535),n=65530)}return t.push(i.slice(0,r)),Ve(t)}var bt=/\u0000/g,fn=/[\u0001-\u0006]/g;function St(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Sr(e,t){var r=""+e;return r.length>=t?r:Ne("0",t-r.length)+r}function m0(e,t){var r=""+e;return r.length>=t?r:Ne(" ",t-r.length)+r}function mn(e,t){var r=""+e;return r.length>=t?r:r+Ne(" ",t-r.length)}function $l(e,t){var r=""+Math.round(e);return r.length>=t?r:Ne("0",t-r.length)+r}function Gl(e,t){var r=""+e;return r.length>=t?r:Ne("0",t-r.length)+r}var ni=Math.pow(2,32);function mt(e,t){if(e>ni||e<-ni)return $l(e,t);var r=Math.round(e);return Gl(r,t)}function gn(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&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var ii=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Zn=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Vl(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var ke={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},ai={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Xl={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function _n(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,f=0,o=1,l=0,c=0,x=Math.floor(i);lt&&(l>t?(c=o,f=a):(c=l,f=s)),!r)return[0,n*f,c];var h=Math.floor(n*f/c);return[h,n*f-h*c,c]}function ln(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],f={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++i==86400&&(f.T=i=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var o=new Date(1900,0,1);o.setDate(o.getDate()+n-1),s=[o.getFullYear(),o.getMonth()+1,o.getDate()],a=o.getDay(),n<60&&(a=(a+6)%7),r&&(a=Zl(o,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=i%60,i=Math.floor(i/60),f.M=i%60,i=Math.floor(i/60),f.H=i,f.q=a,f}var ua=new Date(1899,11,31,0,0,0),zl=ua.getTime(),Kl=new Date(1900,2,1,0,0,0);function ha(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Kl&&(r+=24*60*60*1e3),(r-(zl+(e.getTimezoneOffset()-ua.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function g0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Yl(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function jl(e){var t=e<0?12:11,r=g0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Jl(e){var t=g0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ql(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=jl(e):t===10?r=e.toFixed(10).substr(0,12):r=Jl(e),g0(Yl(r.toUpperCase()))}function l0(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ql(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Kr(14,ha(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Zl(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Ql(e,t,r,n){var i="",a=0,s=0,f=r.y,o,l=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,l=2;break;default:o=f%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return Zn[r.m-1][1];case 5:return Zn[r.m-1][0];default:return Zn[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return ii[r.q][0];default:return ii[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Sr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(i=Sr(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":o=r.D*24+r.H;break;case"[m]":case"[mm]":o=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":o=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:o=f,l=1;break}var c=l>0?Sr(o,l):"";return c}function zr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var xa=/%/g;function eo(e,t,r){var n=t.replace(xa,""),i=t.length-n.length;return Mr(e,n,r*Math.pow(10,2*i))+Ne("%",i)}function ro(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Mr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function da(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+da(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var pa=/# (\?+)( ?)\/( ?)(\d+)/;function to(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,f=n;return r+(a===0?"":""+a)+" "+(s===0?Ne(" ",e[1].length+1+e[4].length):m0(s,e[1].length)+e[2]+"/"+e[3]+Sr(f,e[4].length))}function no(e,t,r){return r+(t===0?"":""+t)+Ne(" ",e[1].length+2+e[4].length)}var va=/^#*0*\.([0#]+)/,ma=/\).*[0#]/,ga=/\(###\) ###\\?-####/;function Qe(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function si(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function fi(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function io(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function ao(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function vr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ma)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?vr("n",n,r):"("+vr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return ro(e,t,r);if(t.indexOf("%")!==-1)return eo(e,t,r);if(t.indexOf("E")!==-1)return da(t,r);if(t.charCodeAt(0)===36)return"$"+vr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+mt(o,t.length);if(t.match(/^[#?]+$/))return i=mt(r,0),i==="0"&&(i=""),i.length>t.length?i:Qe(t.substr(0,t.length-i.length))+i;if(a=t.match(pa))return to(a,o,l);if(t.match(/^#+0+$/))return l+mt(o,t.length-t.indexOf("0"));if(a=t.match(va))return i=si(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Qe(a[1])).replace(/\.$/,"."+Qe(a[1])).replace(/\.(\d*)$/,function(_,u){return"."+u+Ne("0",Qe(a[1]).length-u.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+si(o,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+zr(mt(o,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+vr(e,t,-r):zr(""+(Math.floor(r)+io(r,a[1].length)))+"."+Sr(fi(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return vr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=St(vr(e,t.replace(/[\\-]/g,""),r)),s=0,St(St(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s=0?Cr("n",n,r):"("+Cr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return so(e,t,r);if(t.indexOf("%")!==-1)return fo(e,t,r);if(t.indexOf("E")!==-1)return _a(t,r);if(t.charCodeAt(0)===36)return"$"+Cr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Sr(o,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Qe(t.substr(0,t.length-i.length))+i;if(a=t.match(pa))return no(a,o,l);if(t.match(/^#+0+$/))return l+Sr(o,t.length-t.indexOf("0"));if(a=t.match(va))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Qe(a[1])).replace(/\.$/,"."+Qe(a[1])),i=i.replace(/\.(\d*)$/,function(_,u){return"."+u+Ne("0",Qe(a[1]).length-u.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+zr(""+o);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Cr(e,t,-r):zr(""+r)+"."+Ne("0",a[1].length);if(a=t.match(/^#,#*,#0/))return Cr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=St(Cr(e,t.replace(/[\\-]/g,""),r)),s=0,St(St(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function oo(e,t,r,n){for(var i=[],a="",s=0,f="",o="t",l,c,x,h="H";s=12?"P":"A"),u.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",s+=5,h="h"):(u.t="t",++s),l==null&&u.t==="T")return"";i[i.length]=u,o=f;break;case"[":for(a=f;e.charAt(s++)!=="]"&&s-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ea(e)||(i[i.length]={t:"t",v:a}));break;case".":if(l!=null){for(a=f;++s-1;)a+=f;i[i.length]={t:"n",v:a};break;case"?":for(a=f;e.charAt(++s)===f;)a+=f;i[i.length]={t:f,v:a},o=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=f;s-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:f,v:f},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var m=0,A=0,O;for(s=i.length-1,o="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=h,o="h",m<1&&(m=1);break;case"s":(O=i[s].v.match(/\.0+$/))&&(A=Math.max(A,O[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":o=i[s].t;break;case"m":o==="s"&&(i[s].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[s].v.match(/[Hh]/)&&(m=1),m<2&&i[s].v.match(/[Mm]/)&&(m=2),m<3&&i[s].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var F="",M;for(s=0;s0){F.charCodeAt(0)==40?(ee=t<0&&F.charCodeAt(0)===45?-t:t,D=Mr("n",F,ee)):(ee=t<0&&n>1?-t:t,D=Mr("n",F,ee),ee<0&&i[0]&&i[0].t=="t"&&(D=D.substr(1),i[0].v="-"+i[0].v)),M=D.length-1;var U=i.length;for(s=0;s-1){U=s;break}var L=i.length;if(U===i.length&&D.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(M>=i[s].v.length-1?(M-=i[s].v.length,i[s].v=D.substr(M+1,i[s].v.length)):M<0?i[s].v="":(i[s].v=D.substr(0,M+1),M=-1),i[s].t="t",L=s);M>=0&&L=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(c=i[s].v.indexOf(".")>-1&&s===U?i[s].v.indexOf(".")-1:i[s].v.length-1,K=i[s].v.substr(c+1);c>=0;--c)M>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(K=D.charAt(M--)+K);i[s].v=K,i[s].t="t",L=s}for(M>=0&&L-1&&s===U?i[s].v.indexOf(".")+1:0,K=i[s].v.substr(0,c);c-1&&(ee=n>1&&t<0&&s>0&&i[s-1].v==="-"?-t:t,i[s].v=Mr(i[s].t,i[s].v,ee),i[s].t="t");var G="";for(s=0;s!==i.length;++s)i[s]!=null&&(G+=i[s].v);return G}var li=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function oi(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function co(e,t){var r=lo(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(li),f=r[1].match(li);return oi(t,s)?[n,r[0]]:oi(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,a]}function Kr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ke)[e],n==null&&(n=r.table&&r.table[ai[e]]||ke[ai[e]]),n==null&&(n=Xl[e]||"General");break}if(gn(n,0))return l0(t,r);t instanceof Date&&(t=ha(t,r.date1904));var i=co(n,t);if(gn(i[1]))return l0(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return oo(i[1],t,r,i[0])}function wa(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ke[r]==null){t<0&&(t=r);continue}if(ke[r]==e){t=r;break}}t<0&&(t=391)}return ke[t]=e,t}function Wn(e){for(var t=0;t!=392;++t)e[t]!==void 0&&wa(e[t],t)}function Hn(){ke=Vl()}var Sa=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function uo(e){var t=typeof e=="number"?ke[e]:e;return t=t.replace(Sa,"(\\d+)"),new RegExp("^"+t+"$")}function ho(e,t,r){var n=-1,i=-1,a=-1,s=-1,f=-1,o=-1;(t.match(Sa)||[]).forEach(function(x,h){var d=parseInt(r[h+1],10);switch(x.toLowerCase().charAt(0)){case"y":n=d;break;case"d":a=d;break;case"h":s=d;break;case"s":o=d;break;case"m":s>=0?f=d:i=d;break}}),o>=0&&f==-1&&i>=0&&(f=i,i=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return s==-1&&f==-1&&o==-1?l:n==-1&&i==-1&&a==-1?c:l+"T"+c}var xo=function(){var e={};e.version="1.2.0";function t(){for(var D=0,U=new Array(256),L=0;L!=256;++L)D=L,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,U[L]=D;return typeof Int32Array<"u"?new Int32Array(U):U}var r=t();function n(D){var U=0,L=0,G=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)V[G]=D[G];for(G=0;G!=256;++G)for(L=D[G],U=256+G;U<4096;U+=256)L=V[U]=L>>>8^D[L&255];var X=[];for(G=1;G!=16;++G)X[G-1]=typeof Int32Array<"u"?V.subarray(G*256,G*256+256):V.slice(G*256,G*256+256);return X}var i=n(r),a=i[0],s=i[1],f=i[2],o=i[3],l=i[4],c=i[5],x=i[6],h=i[7],d=i[8],_=i[9],u=i[10],m=i[11],A=i[12],O=i[13],F=i[14];function M(D,U){for(var L=U^-1,G=0,V=D.length;G>>8^r[(L^D.charCodeAt(G++))&255];return~L}function K(D,U){for(var L=U^-1,G=D.length-15,V=0;V>8&255]^A[D[V++]^L>>16&255]^m[D[V++]^L>>>24]^u[D[V++]]^_[D[V++]]^d[D[V++]]^h[D[V++]]^x[D[V++]]^c[D[V++]]^l[D[V++]]^o[D[V++]]^f[D[V++]]^s[D[V++]]^a[D[V++]]^r[D[V++]];for(G+=15;V>>8^r[(L^D[V++])&255];return~L}function ee(D,U){for(var L=U^-1,G=0,V=D.length,X=0,re=0;G>>8^r[(L^X)&255]:X<2048?(L=L>>>8^r[(L^(192|X>>6&31))&255],L=L>>>8^r[(L^(128|X&63))&255]):X>=55296&&X<57344?(X=(X&1023)+64,re=D.charCodeAt(G++)&1023,L=L>>>8^r[(L^(240|X>>8&7))&255],L=L>>>8^r[(L^(128|X>>2&63))&255],L=L>>>8^r[(L^(128|re>>6&15|(X&3)<<4))&255],L=L>>>8^r[(L^(128|re&63))&255]):(L=L>>>8^r[(L^(224|X>>12&15))&255],L=L>>>8^r[(L^(128|X>>6&63))&255],L=L>>>8^r[(L^(128|X&63))&255]);return~L}return e.table=r,e.bstr=M,e.buf=K,e.str=ee,e}(),Se=function(){var t={};t.version="1.2.1";function r(p,T){for(var v=p.split("/"),g=T.split("/"),E=0,w=0,N=Math.min(v.length,g.length);E>>1,p.write_shift(2,v);var g=T.getFullYear()-1980;g=g<<4|T.getMonth()+1,g=g<<5|T.getDate(),p.write_shift(2,g)}function s(p){var T=p.read_shift(2)&65535,v=p.read_shift(2)&65535,g=new Date,E=v&31;v>>>=5;var w=v&15;v>>>=4,g.setMilliseconds(0),g.setFullYear(v+1980),g.setMonth(w-1),g.setDate(E);var N=T&31;T>>>=5;var b=T&63;return T>>>=6,g.setHours(T),g.setMinutes(b),g.setSeconds(N<<1),g}function f(p){cr(p,0);for(var T={},v=0;p.l<=p.length-4;){var g=p.read_shift(2),E=p.read_shift(2),w=p.l+E,N={};switch(g){case 21589:v=p.read_shift(1),v&1&&(N.mtime=p.read_shift(4)),E>5&&(v&2&&(N.atime=p.read_shift(4)),v&4&&(N.ctime=p.read_shift(4))),N.mtime&&(N.mt=new Date(N.mtime*1e3));break}p.l=w,T[g]=N}return T}var o;function l(){return o||(o={})}function c(p,T){if(p[0]==80&&p[1]==75)return Y0(p,T);if((p[0]|32)==109&&(p[1]|32)==105)return Qs(p,T);if(p.length<512)throw new Error("CFB file size "+p.length+" < 512");var v=3,g=512,E=0,w=0,N=0,b=0,I=0,k=[],R=p.slice(0,512);cr(R,0);var z=x(R);switch(v=z[0],v){case 3:g=512;break;case 4:g=4096;break;case 0:if(z[1]==0)return Y0(p,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+v)}g!==512&&(R=p.slice(0,g),cr(R,28));var Z=p.slice(0,g);h(R,v);var ne=R.read_shift(4,"i");if(v===3&&ne!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ne);R.l+=4,N=R.read_shift(4,"i"),R.l+=4,R.chk("00100000","Mini Stream Cutoff Size: "),b=R.read_shift(4,"i"),E=R.read_shift(4,"i"),I=R.read_shift(4,"i"),w=R.read_shift(4,"i");for(var j=-1,te=0;te<109&&(j=R.read_shift(4,"i"),!(j<0));++te)k[te]=j;var he=d(p,g);m(I,w,he,g,k);var Oe=O(he,N,k,g);Oe[N].name="!Directory",E>0&&b!==re&&(Oe[b].name="!MiniFAT"),Oe[k[0]].name="!FAT",Oe.fat_addrs=k,Oe.ssz=g;var De={},Ye=[],Rt=[],Lt=[];F(N,Oe,he,Ye,E,De,Rt,b),_(Rt,Lt,Ye),Ye.shift();var Pt={FileIndex:Rt,FullPaths:Lt};return T&&T.raw&&(Pt.raw={header:Z,sectors:he}),Pt}function x(p){if(p[p.l]==80&&p[p.l+1]==75)return[0,0];p.chk(oe,"Header Signature: "),p.l+=16;var T=p.read_shift(2,"u");return[p.read_shift(2,"u"),T]}function h(p,T){var v=9;switch(p.l+=2,v=p.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+v);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+v);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+v)}p.chk("0600","Mini Sector Shift: "),p.chk("000000000000","Reserved: ")}function d(p,T){for(var v=Math.ceil(p.length/T)-1,g=[],E=1;E0&&N>=0;)w.push(T.slice(N*X,N*X+X)),E-=X,N=it(v,N*4);return w.length===0?B(0):Ve(w).slice(0,p.size)}function m(p,T,v,g,E){var w=re;if(p===re){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(p!==-1){var N=v[p],b=(g>>>2)-1;if(!N)return;for(var I=0;I=0;){E[I]=!0,w[w.length]=I,N.push(p[I]);var R=v[Math.floor(I*4/g)];if(k=I*4&b,g<4+k)throw new Error("FAT boundary crossed: "+I+" 4 "+g);if(!p[R])break;I=it(p[R],k)}return{nodes:w,data:mi([N])}}function O(p,T,v,g){var E=p.length,w=[],N=[],b=[],I=[],k=g-1,R=0,z=0,Z=0,ne=0;for(R=0;R=E&&(Z-=E),!N[Z]){I=[];var j=[];for(z=Z;z>=0;){j[z]=!0,N[z]=!0,b[b.length]=z,I.push(p[z]);var te=v[Math.floor(z*4/g)];if(ne=z*4&k,g<4+ne)throw new Error("FAT boundary crossed: "+z+" 4 "+g);if(!p[te]||(z=it(p[te],ne),j[z]))break}w[Z]={nodes:b,data:mi([I])}}return w}function F(p,T,v,g,E,w,N,b){for(var I=0,k=g.length?2:0,R=T[p].data,z=0,Z=0,ne;z0&&I!==re&&(T[I].name="!StreamData")):te.size>=4096?(te.storage="fat",T[te.start]===void 0&&(T[te.start]=A(v,te.start,T.fat_addrs,T.ssz)),T[te.start].name=te.name,te.content=T[te.start].data.slice(0,te.size)):(te.storage="minifat",te.size<0?te.size=0:I!==re&&te.start!==re&&T[I]&&(te.content=u(te,T[I].data,(T[b]||{}).data))),te.content&&cr(te.content,0),w[ne]=te,N.push(te)}}function M(p,T){return new Date((hr(p,T+4)/1e7*Math.pow(2,32)+hr(p,T)/1e7-11644473600)*1e3)}function K(p,T){return l(),c(o.readFileSync(p),T)}function ee(p,T){var v=T&&T.type;switch(v||me&&Buffer.isBuffer(p)&&(v="buffer"),v||"base64"){case"file":return K(p,T);case"base64":return c(wr(Ur(p)),T);case"binary":return c(wr(p),T)}return c(p,T)}function D(p,T){var v=T||{},g=v.root||"Root Entry";if(p.FullPaths||(p.FullPaths=[]),p.FileIndex||(p.FileIndex=[]),p.FullPaths.length!==p.FileIndex.length)throw new Error("inconsistent CFB structure");p.FullPaths.length===0&&(p.FullPaths[0]=g+"/",p.FileIndex[0]={name:g,type:5}),v.CLSID&&(p.FileIndex[0].clsid=v.CLSID),U(p)}function U(p){var T="Sh33tJ5";if(!Se.find(p,"/"+T)){var v=B(4);v[0]=55,v[1]=v[3]=50,v[2]=54,p.FileIndex.push({name:T,type:2,content:v,size:4,L:69,R:69,C:69}),p.FullPaths.push(p.FullPaths[0]+T),L(p)}}function L(p,T){D(p);for(var v=!1,g=!1,E=p.FullPaths.length-1;E>=0;--E){var w=p.FileIndex[E];switch(w.type){case 0:g?v=!0:(p.FileIndex.pop(),p.FullPaths.pop());break;case 1:case 2:case 5:g=!0,isNaN(w.R*w.L*w.C)&&(v=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(v=!0);break;default:v=!0;break}}if(!(!v&&!T)){var N=new Date(1987,1,19),b=0,I=Object.create?Object.create(null):{},k=[];for(E=0;E1?1:-1,z.size=0,z.type=5;else if(Z.slice(-1)=="/"){for(b=E+1;b=k.length?-1:b,b=E+1;b=k.length?-1:b,z.type=1}else n(p.FullPaths[E+1]||"")==n(Z)&&(z.R=E+1),z.type=2}}}function G(p,T){var v=T||{};if(v.fileType=="mad")return ef(p,v);switch(L(p),v.fileType){case"zip":return Ks(p,v)}var g=function(ne){for(var j=0,te=0,he=0;he0&&(De<4096?j+=De+63>>6:te+=De+511>>9)}}for(var Ye=ne.FullPaths.length+3>>2,Rt=j+7>>3,Lt=j+127>>7,Pt=Rt+te+Ye+Lt,et=Pt+127>>7,qn=et<=109?0:Math.ceil((et-109)/127);Pt+et+qn+127>>7>et;)qn=++et<=109?0:Math.ceil((et-109)/127);var Rr=[1,qn,et,Lt,Ye,te,j,0];return ne.FileIndex[0].size=j<<6,Rr[7]=(ne.FileIndex[0].start=Rr[0]+Rr[1]+Rr[2]+Rr[3]+Rr[4]+Rr[5])+(Rr[6]+7>>3),Rr}(p),E=B(g[7]<<9),w=0,N=0;{for(w=0;w<8;++w)E.write_shift(1,ie[w]);for(w=0;w<8;++w)E.write_shift(2,0);for(E.write_shift(2,62),E.write_shift(2,3),E.write_shift(2,65534),E.write_shift(2,9),E.write_shift(2,6),w=0;w<3;++w)E.write_shift(2,0);for(E.write_shift(4,0),E.write_shift(4,g[2]),E.write_shift(4,g[0]+g[1]+g[2]+g[3]-1),E.write_shift(4,0),E.write_shift(4,1<<12),E.write_shift(4,g[3]?g[0]+g[1]+g[2]-1:re),E.write_shift(4,g[3]),E.write_shift(-4,g[1]?g[0]-1:re),E.write_shift(4,g[1]),w=0;w<109;++w)E.write_shift(-4,w>9)));for(b(g[6]+7>>3);E.l&511;)E.write_shift(-4,ue.ENDOFCHAIN);for(N=w=0,I=0;I=4096)&&(R.start=N,b(k+63>>6)));for(;E.l&511;)E.write_shift(-4,ue.ENDOFCHAIN);for(w=0;w=4096)if(E.l=R.start+1<<9,me&&Buffer.isBuffer(R.content))R.content.copy(E,E.l,0,R.size),E.l+=R.size+511&-512;else{for(I=0;I0&&R.size<4096)if(me&&Buffer.isBuffer(R.content))R.content.copy(E,E.l,0,R.size),E.l+=R.size+63&-64;else{for(I=0;I>16|T>>8|T)&255}for(var se=typeof Uint8Array<"u",Q=se?new Uint8Array(1<<8):[],Ae=0;Ae<1<<8;++Ae)Q[Ae]=le(Ae);function pe(p,T){var v=Q[p&255];return T<=8?v>>>8-T:(v=v<<8|Q[p>>8&255],T<=16?v>>>16-T:(v=v<<8|Q[p>>16&255],v>>>24-T))}function Ze(p,T){var v=T&7,g=T>>>3;return(p[g]|(v<=6?0:p[g+1]<<8))>>>v&3}function ge(p,T){var v=T&7,g=T>>>3;return(p[g]|(v<=5?0:p[g+1]<<8))>>>v&7}function Nr(p,T){var v=T&7,g=T>>>3;return(p[g]|(v<=4?0:p[g+1]<<8))>>>v&15}function Ie(p,T){var v=T&7,g=T>>>3;return(p[g]|(v<=3?0:p[g+1]<<8))>>>v&31}function ae(p,T){var v=T&7,g=T>>>3;return(p[g]|(v<=1?0:p[g+1]<<8))>>>v&127}function pr(p,T,v){var g=T&7,E=T>>>3,w=(1<>>g;return v<8-g||(N|=p[E+1]<<8-g,v<16-g)||(N|=p[E+2]<<16-g,v<24-g)||(N|=p[E+3]<<24-g),N&w}function kr(p,T,v){var g=T&7,E=T>>>3;return g<=5?p[E]|=(v&7)<>8-g),T+3}function Zr(p,T,v){var g=T&7,E=T>>>3;return v=(v&1)<>>3;return v<<=g,p[E]|=v&255,v>>>=8,p[E+1]=v,T+8}function U0(p,T,v){var g=T&7,E=T>>>3;return v<<=g,p[E]|=v&255,v>>>=8,p[E+1]=v&255,p[E+2]=v>>>8,T+16}function Kn(p,T){var v=p.length,g=2*v>T?2*v:T+5,E=0;if(v>=T)return p;if(me){var w=ti(g);if(p.copy)p.copy(w);else for(;E>g-z,N=(1<=0;--N)T[b|N<0;)I[I.l++]=b[k++]}return I.l}function N(b,I){for(var k=0,R=0,z=se?new Uint16Array(32768):[];R0;)I[I.l++]=b[R++];k=I.l*8;continue}k=kr(I,k,+(R+Z==b.length)+2);for(var ne=0;Z-- >0;){var j=b[R];ne=(ne<<5^j)&32767;var te=-1,he=0;if((te=z[ne])&&(te|=R&-32768,te>R&&(te-=32768),te2){j=E[he],j<=22?k=vt(I,k,Q[j+1]>>1)-1:(vt(I,k,3),k+=5,vt(I,k,Q[j-23]>>5),k+=3);var Oe=j<8?0:j-4>>2;Oe>0&&(U0(I,k,he-H[j]),k+=Oe),j=T[R-te],k=vt(I,k,Q[j]>>3),k-=3;var De=j<4?0:j-2>>1;De>0&&(U0(I,k,R-te-fe[j]),k+=De);for(var Ye=0;Ye>8-j;for(var te=(1<<7-j)-1;te>=0;--te)G0[ne|te<>>=3){case 16:for(w=3+Ze(p,T),T+=2,ne=he[he.length-1];w-- >0;)he.push(ne);break;case 17:for(w=3+ge(p,T),T+=3;w-- >0;)he.push(0);break;case 18:for(w=11+ae(p,T),T+=7;w-- >0;)he.push(0);break;default:he.push(ne),I>>0,b=0,I=0;!(g&1);){if(g=ge(p,v),v+=3,g>>>1)g>>1==1?(b=9,I=5):(v=Vs(p,v),b=V0,I=X0);else{v&7&&(v+=8-(v&7));var k=p[v>>>3]|p[(v>>>3)+1]<<8;if(v+=32,k>0)for(!T&&N0;)E[w++]=p[v>>>3],v+=8;continue}for(;;){!T&&N>>1==1?Yn[R]:H0[R];if(v+=z&15,z>>>=4,!(z>>>8&255))E[w++]=z;else{if(z==256)break;z-=257;var Z=z<8?0:z-4>>2;Z>5&&(Z=0);var ne=w+H[z];Z>0&&(ne+=pr(p,v,Z),v+=Z),R=pr(p,v,I),z=g>>>1==1?jn[R]:$0[R],v+=z&15,z>>>=4;var j=z<4?0:z-2>>1,te=fe[z];for(j>0&&(te+=pr(p,v,j),v+=j),!T&&N>>3]:[E.slice(0,w),v+7>>>3]}function z0(p,T){var v=p.slice(p.l||0),g=Xs(v,T);return p.l+=g[1],g[0]}function K0(p,T){if(p)typeof console<"u"&&console.error(T);else throw new Error(T)}function Y0(p,T){var v=p;cr(v,0);var g=[],E=[],w={FileIndex:g,FullPaths:E};D(w,{root:T.root});for(var N=v.length-4;(v[N]!=80||v[N+1]!=75||v[N+2]!=5||v[N+3]!=6)&&N>=0;)--N;v.l=N+4,v.l+=4;var b=v.read_shift(2);v.l+=6;var I=v.read_shift(4);for(v.l=I,N=0;N(()=>{const s=Dl.cloneNode(!0);return Vi(s,"click",i,!0),tr(s,"title",t),tr(s,"id",n),tr(s,"type",a),qe(s,`border-rounded bg-cyan-900 px-2 cursor-pointer ${e}`),oe(s,r),s})();In(["click"]);const Il=de('
'),Nl=de("
"),ei=({title:e,button:t,children:r,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,o]=Pe(!1);function l(){o(!1)}function c(){o(!f())}return Ot(()=>{function x(p){p.target instanceof HTMLElement&&p.target.closest(`#${n}`)===null&&l()}function h(p){p.key==="Escape"&&l()}f()?(document.addEventListener("click",x),document.addEventListener("keyup",h)):(document.removeEventListener("click",x),document.removeEventListener("keyup",h))}),(()=>{const x=Nl.cloneNode(!0);return qe(x,`${i}`),tr(x,"id",n),oe(x,Y(pn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:t}),null),oe(x,Y(ir,{get when(){return f()},keyed:!0,get children(){const h=Il.cloneNode(!0),p=h.firstChild;return qe(h,`absolute bg-default-bg border border-gray-500 rounded-b-xl mt-1 w-max z-50 ${s}`),oe(p,r),h}}),null),x})()},kl=de('
'),Rl=de('
'),Ll=de('
');function Pl({title:e,description:t,button:r,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClasses:o,buttonTitle:l,acceptButtonId:c}){const[x,h]=Pe(!1);function p(){s&&s(),h(!1)}function _(){let u=!0;function m(A){u&&A.key==="Enter"&&document.getElementById(c??"")?.click()}if(x()){const A="cl-6",O=document.getElementById(A);return O?.addEventListener("keypress",F=>m(F)),()=>{O?.removeEventListener("keypress",F=>m(F)),u=!1}}}return Ot(_,x()),(()=>{const u=Ll.cloneNode(!0),m=u.firstChild;return m.$$click=()=>h(!0),qe(m,o),tr(m,"title",l??void 0),oe(m,r),oe(u,Y(uf,{get children(){return Y(nl,{get isOpen(){return x()},onClose:()=>h(!1),class:`fixed inset-0 flex-row-center justify-center z-50 overflow-auto text-white ${f}`,get children(){return[(()=>{const A=kl.cloneNode(!0);return tr(A,"aria-hidden",!0),A})(),Y(al,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[Y(sl,{class:"border-b",children:e}),Y(il,{class:"mb-4 mt-1",children:t}),a,(()=>{const A=Rl.cloneNode(!0);return oe(A,Y(pn,{onClick:p,className:"h-10 mr-2",id:c,children:n}),null),oe(A,Y(pn,{onClick:()=>h(!1),className:"h-10",children:i}),null),A})()]}})]}})}}),null),u})()}In(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var vn={};vn.version="0.18.5";var oa=1252,Ml=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ca=function(e){Ml.indexOf(e)!=-1&&(oa=e)};function Bl(){ca(1252)}var Xt=function(e){ca(e)};function bl(){Xt(1200),Bl()}function Ul(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var sn=function(t){return String.fromCharCode(t)},ri=function(t){return String.fromCharCode(t)},nt,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function zt(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0,o=0,l=0;l>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,i=e.charCodeAt(l++),f=(n&15)<<2|i>>6,o=i&63,isNaN(n)?f=o=64:isNaN(i)&&(o=64),t+=Xr.charAt(a)+Xr.charAt(s)+Xr.charAt(f)+Xr.charAt(o);return t}function Ur(e){var t="",r=0,n=0,i=0,a=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4,t+=String.fromCharCode(r),f=Xr.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Xr.indexOf(e.charAt(l++)),i=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(i));return t}var me=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),$r=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 ft(e){return me?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function ti(e){return me?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return me?$r(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Un(e){if(typeof ArrayBuffer>"u")return wr(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 qt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}var Ve=me?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:$r(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|f>>6&15|(s&3)<<4,i[r++]=128|f&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(t.push(i.slice(0,r)),r=0,i=ft(65535),n=65530)}return t.push(i.slice(0,r)),Ve(t)}var bt=/\u0000/g,fn=/[\u0001-\u0006]/g;function St(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Sr(e,t){var r=""+e;return r.length>=t?r:ke("0",t-r.length)+r}function m0(e,t){var r=""+e;return r.length>=t?r:ke(" ",t-r.length)+r}function mn(e,t){var r=""+e;return r.length>=t?r:r+ke(" ",t-r.length)}function $l(e,t){var r=""+Math.round(e);return r.length>=t?r:ke("0",t-r.length)+r}function Gl(e,t){var r=""+e;return r.length>=t?r:ke("0",t-r.length)+r}var ni=Math.pow(2,32);function mt(e,t){if(e>ni||e<-ni)return $l(e,t);var r=Math.round(e);return Gl(r,t)}function gn(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&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var ii=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Zn=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Vl(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Re={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},ai={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Xl={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function _n(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,f=0,o=1,l=0,c=0,x=Math.floor(i);lt&&(l>t?(c=o,f=a):(c=l,f=s)),!r)return[0,n*f,c];var h=Math.floor(n*f/c);return[h,n*f-h*c,c]}function ln(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],f={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++i==86400&&(f.T=i=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var o=new Date(1900,0,1);o.setDate(o.getDate()+n-1),s=[o.getFullYear(),o.getMonth()+1,o.getDate()],a=o.getDay(),n<60&&(a=(a+6)%7),r&&(a=Zl(o,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=i%60,i=Math.floor(i/60),f.M=i%60,i=Math.floor(i/60),f.H=i,f.q=a,f}var ua=new Date(1899,11,31,0,0,0),zl=ua.getTime(),Kl=new Date(1900,2,1,0,0,0);function ha(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Kl&&(r+=24*60*60*1e3),(r-(zl+(e.getTimezoneOffset()-ua.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function g0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Yl(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function jl(e){var t=e<0?12:11,r=g0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Jl(e){var t=g0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function ql(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=jl(e):t===10?r=e.toFixed(10).substr(0,12):r=Jl(e),g0(Yl(r.toUpperCase()))}function l0(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):ql(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Kr(14,ha(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Zl(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Ql(e,t,r,n){var i="",a=0,s=0,f=r.y,o,l=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,l=2;break;default:o=f%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return Zn[r.m-1][1];case 5:return Zn[r.m-1][0];default:return Zn[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return ii[r.q][0];default:return ii[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Sr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(i=Sr(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":o=r.D*24+r.H;break;case"[m]":case"[mm]":o=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":o=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:o=f,l=1;break}var c=l>0?Sr(o,l):"";return c}function zr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var xa=/%/g;function eo(e,t,r){var n=t.replace(xa,""),i=t.length-n.length;return Mr(e,n,r*Math.pow(10,2*i))+ke("%",i)}function ro(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Mr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function da(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+da(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var pa=/# (\?+)( ?)\/( ?)(\d+)/;function to(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,f=n;return r+(a===0?"":""+a)+" "+(s===0?ke(" ",e[1].length+1+e[4].length):m0(s,e[1].length)+e[2]+"/"+e[3]+Sr(f,e[4].length))}function no(e,t,r){return r+(t===0?"":""+t)+ke(" ",e[1].length+2+e[4].length)}var va=/^#*0*\.([0#]+)/,ma=/\).*[0#]/,ga=/\(###\) ###\\?-####/;function er(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function si(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function fi(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function io(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function ao(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function vr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ma)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?vr("n",n,r):"("+vr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return ro(e,t,r);if(t.indexOf("%")!==-1)return eo(e,t,r);if(t.indexOf("E")!==-1)return da(t,r);if(t.charCodeAt(0)===36)return"$"+vr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+mt(o,t.length);if(t.match(/^[#?]+$/))return i=mt(r,0),i==="0"&&(i=""),i.length>t.length?i:er(t.substr(0,t.length-i.length))+i;if(a=t.match(pa))return to(a,o,l);if(t.match(/^#+0+$/))return l+mt(o,t.length-t.indexOf("0"));if(a=t.match(va))return i=si(r,a[1].length).replace(/^([^\.]+)$/,"$1."+er(a[1])).replace(/\.$/,"."+er(a[1])).replace(/\.(\d*)$/,function(_,u){return"."+u+ke("0",er(a[1]).length-u.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+si(o,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+zr(mt(o,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+vr(e,t,-r):zr(""+(Math.floor(r)+io(r,a[1].length)))+"."+Sr(fi(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return vr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=St(vr(e,t.replace(/[\\-]/g,""),r)),s=0,St(St(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s=0?Cr("n",n,r):"("+Cr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return so(e,t,r);if(t.indexOf("%")!==-1)return fo(e,t,r);if(t.indexOf("E")!==-1)return _a(t,r);if(t.charCodeAt(0)===36)return"$"+Cr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Sr(o,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:er(t.substr(0,t.length-i.length))+i;if(a=t.match(pa))return no(a,o,l);if(t.match(/^#+0+$/))return l+Sr(o,t.length-t.indexOf("0"));if(a=t.match(va))return i=(""+r).replace(/^([^\.]+)$/,"$1."+er(a[1])).replace(/\.$/,"."+er(a[1])),i=i.replace(/\.(\d*)$/,function(_,u){return"."+u+ke("0",er(a[1]).length-u.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+zr(""+o);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Cr(e,t,-r):zr(""+r)+"."+ke("0",a[1].length);if(a=t.match(/^#,#*,#0/))return Cr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=St(Cr(e,t.replace(/[\\-]/g,""),r)),s=0,St(St(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function oo(e,t,r,n){for(var i=[],a="",s=0,f="",o="t",l,c,x,h="H";s=12?"P":"A"),u.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",s+=5,h="h"):(u.t="t",++s),l==null&&u.t==="T")return"";i[i.length]=u,o=f;break;case"[":for(a=f;e.charAt(s++)!=="]"&&s-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ea(e)||(i[i.length]={t:"t",v:a}));break;case".":if(l!=null){for(a=f;++s-1;)a+=f;i[i.length]={t:"n",v:a};break;case"?":for(a=f;e.charAt(++s)===f;)a+=f;i[i.length]={t:f,v:a},o=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=f;s-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:f,v:f},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var m=0,A=0,O;for(s=i.length-1,o="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=h,o="h",m<1&&(m=1);break;case"s":(O=i[s].v.match(/\.0+$/))&&(A=Math.max(A,O[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":o=i[s].t;break;case"m":o==="s"&&(i[s].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[s].v.match(/[Hh]/)&&(m=1),m<2&&i[s].v.match(/[Mm]/)&&(m=2),m<3&&i[s].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var F="",M;for(s=0;s0){F.charCodeAt(0)==40?(re=t<0&&F.charCodeAt(0)===45?-t:t,D=Mr("n",F,re)):(re=t<0&&n>1?-t:t,D=Mr("n",F,re),re<0&&i[0]&&i[0].t=="t"&&(D=D.substr(1),i[0].v="-"+i[0].v)),M=D.length-1;var U=i.length;for(s=0;s-1){U=s;break}var R=i.length;if(U===i.length&&D.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(M>=i[s].v.length-1?(M-=i[s].v.length,i[s].v=D.substr(M+1,i[s].v.length)):M<0?i[s].v="":(i[s].v=D.substr(0,M+1),M=-1),i[s].t="t",R=s);M>=0&&R=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(c=i[s].v.indexOf(".")>-1&&s===U?i[s].v.indexOf(".")-1:i[s].v.length-1,K=i[s].v.substr(c+1);c>=0;--c)M>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(K=D.charAt(M--)+K);i[s].v=K,i[s].t="t",R=s}for(M>=0&&R-1&&s===U?i[s].v.indexOf(".")+1:0,K=i[s].v.substr(0,c);c-1&&(re=n>1&&t<0&&s>0&&i[s-1].v==="-"?-t:t,i[s].v=Mr(i[s].t,i[s].v,re),i[s].t="t");var G="";for(s=0;s!==i.length;++s)i[s]!=null&&(G+=i[s].v);return G}var li=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function oi(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function co(e,t){var r=lo(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(li),f=r[1].match(li);return oi(t,s)?[n,r[0]]:oi(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,a]}function Kr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Re)[e],n==null&&(n=r.table&&r.table[ai[e]]||Re[ai[e]]),n==null&&(n=Xl[e]||"General");break}if(gn(n,0))return l0(t,r);t instanceof Date&&(t=ha(t,r.date1904));var i=co(n,t);if(gn(i[1]))return l0(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return oo(i[1],t,r,i[0])}function wa(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Re[r]==null){t<0&&(t=r);continue}if(Re[r]==e){t=r;break}}t<0&&(t=391)}return Re[t]=e,t}function Wn(e){for(var t=0;t!=392;++t)e[t]!==void 0&&wa(e[t],t)}function Hn(){Re=Vl()}var Sa=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function uo(e){var t=typeof e=="number"?Re[e]:e;return t=t.replace(Sa,"(\\d+)"),new RegExp("^"+t+"$")}function ho(e,t,r){var n=-1,i=-1,a=-1,s=-1,f=-1,o=-1;(t.match(Sa)||[]).forEach(function(x,h){var p=parseInt(r[h+1],10);switch(x.toLowerCase().charAt(0)){case"y":n=p;break;case"d":a=p;break;case"h":s=p;break;case"s":o=p;break;case"m":s>=0?f=p:i=p;break}}),o>=0&&f==-1&&i>=0&&(f=i,i=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return s==-1&&f==-1&&o==-1?l:n==-1&&i==-1&&a==-1?c:l+"T"+c}var xo=function(){var e={};e.version="1.2.0";function t(){for(var D=0,U=new Array(256),R=0;R!=256;++R)D=R,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,U[R]=D;return typeof Int32Array<"u"?new Int32Array(U):U}var r=t();function n(D){var U=0,R=0,G=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)V[G]=D[G];for(G=0;G!=256;++G)for(R=D[G],U=256+G;U<4096;U+=256)R=V[U]=R>>>8^D[R&255];var X=[];for(G=1;G!=16;++G)X[G-1]=typeof Int32Array<"u"?V.subarray(G*256,G*256+256):V.slice(G*256,G*256+256);return X}var i=n(r),a=i[0],s=i[1],f=i[2],o=i[3],l=i[4],c=i[5],x=i[6],h=i[7],p=i[8],_=i[9],u=i[10],m=i[11],A=i[12],O=i[13],F=i[14];function M(D,U){for(var R=U^-1,G=0,V=D.length;G>>8^r[(R^D.charCodeAt(G++))&255];return~R}function K(D,U){for(var R=U^-1,G=D.length-15,V=0;V>8&255]^A[D[V++]^R>>16&255]^m[D[V++]^R>>>24]^u[D[V++]]^_[D[V++]]^p[D[V++]]^h[D[V++]]^x[D[V++]]^c[D[V++]]^l[D[V++]]^o[D[V++]]^f[D[V++]]^s[D[V++]]^a[D[V++]]^r[D[V++]];for(G+=15;V>>8^r[(R^D[V++])&255];return~R}function re(D,U){for(var R=U^-1,G=0,V=D.length,X=0,ee=0;G>>8^r[(R^X)&255]:X<2048?(R=R>>>8^r[(R^(192|X>>6&31))&255],R=R>>>8^r[(R^(128|X&63))&255]):X>=55296&&X<57344?(X=(X&1023)+64,ee=D.charCodeAt(G++)&1023,R=R>>>8^r[(R^(240|X>>8&7))&255],R=R>>>8^r[(R^(128|X>>2&63))&255],R=R>>>8^r[(R^(128|ee>>6&15|(X&3)<<4))&255],R=R>>>8^r[(R^(128|ee&63))&255]):(R=R>>>8^r[(R^(224|X>>12&15))&255],R=R>>>8^r[(R^(128|X>>6&63))&255],R=R>>>8^r[(R^(128|X&63))&255]);return~R}return e.table=r,e.bstr=M,e.buf=K,e.str=re,e}(),ye=function(){var t={};t.version="1.2.1";function r(d,T){for(var v=d.split("/"),g=T.split("/"),E=0,w=0,N=Math.min(v.length,g.length);E>>1,d.write_shift(2,v);var g=T.getFullYear()-1980;g=g<<4|T.getMonth()+1,g=g<<5|T.getDate(),d.write_shift(2,g)}function s(d){var T=d.read_shift(2)&65535,v=d.read_shift(2)&65535,g=new Date,E=v&31;v>>>=5;var w=v&15;v>>>=4,g.setMilliseconds(0),g.setFullYear(v+1980),g.setMonth(w-1),g.setDate(E);var N=T&31;T>>>=5;var b=T&63;return T>>>=6,g.setHours(T),g.setMinutes(b),g.setSeconds(N<<1),g}function f(d){ur(d,0);for(var T={},v=0;d.l<=d.length-4;){var g=d.read_shift(2),E=d.read_shift(2),w=d.l+E,N={};switch(g){case 21589:v=d.read_shift(1),v&1&&(N.mtime=d.read_shift(4)),E>5&&(v&2&&(N.atime=d.read_shift(4)),v&4&&(N.ctime=d.read_shift(4))),N.mtime&&(N.mt=new Date(N.mtime*1e3));break}d.l=w,T[g]=N}return T}var o;function l(){return o||(o={})}function c(d,T){if(d[0]==80&&d[1]==75)return Y0(d,T);if((d[0]|32)==109&&(d[1]|32)==105)return Qs(d,T);if(d.length<512)throw new Error("CFB file size "+d.length+" < 512");var v=3,g=512,E=0,w=0,N=0,b=0,I=0,k=[],L=d.slice(0,512);ur(L,0);var z=x(L);switch(v=z[0],v){case 3:g=512;break;case 4:g=4096;break;case 0:if(z[1]==0)return Y0(d,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+v)}g!==512&&(L=d.slice(0,g),ur(L,28));var Z=d.slice(0,g);h(L,v);var ne=L.read_shift(4,"i");if(v===3&&ne!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ne);L.l+=4,N=L.read_shift(4,"i"),L.l+=4,L.chk("00100000","Mini Stream Cutoff Size: "),b=L.read_shift(4,"i"),E=L.read_shift(4,"i"),I=L.read_shift(4,"i"),w=L.read_shift(4,"i");for(var j=-1,te=0;te<109&&(j=L.read_shift(4,"i"),!(j<0));++te)k[te]=j;var ce=p(d,g);m(I,w,ce,g,k);var De=O(ce,N,k,g);De[N].name="!Directory",E>0&&b!==ee&&(De[b].name="!MiniFAT"),De[k[0]].name="!FAT",De.fat_addrs=k,De.ssz=g;var Ie={},Ye=[],Rt=[],Lt=[];F(N,De,ce,Ye,E,Ie,Rt,b),_(Rt,Lt,Ye),Ye.shift();var Pt={FileIndex:Rt,FullPaths:Lt};return T&&T.raw&&(Pt.raw={header:Z,sectors:ce}),Pt}function x(d){if(d[d.l]==80&&d[d.l+1]==75)return[0,0];d.chk(ge,"Header Signature: "),d.l+=16;var T=d.read_shift(2,"u");return[d.read_shift(2,"u"),T]}function h(d,T){var v=9;switch(d.l+=2,v=d.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+v);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+v);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+v)}d.chk("0600","Mini Sector Shift: "),d.chk("000000000000","Reserved: ")}function p(d,T){for(var v=Math.ceil(d.length/T)-1,g=[],E=1;E0&&N>=0;)w.push(T.slice(N*X,N*X+X)),E-=X,N=it(v,N*4);return w.length===0?B(0):Ve(w).slice(0,d.size)}function m(d,T,v,g,E){var w=ee;if(d===ee){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(d!==-1){var N=v[d],b=(g>>>2)-1;if(!N)return;for(var I=0;I=0;){E[I]=!0,w[w.length]=I,N.push(d[I]);var L=v[Math.floor(I*4/g)];if(k=I*4&b,g<4+k)throw new Error("FAT boundary crossed: "+I+" 4 "+g);if(!d[L])break;I=it(d[L],k)}return{nodes:w,data:mi([N])}}function O(d,T,v,g){var E=d.length,w=[],N=[],b=[],I=[],k=g-1,L=0,z=0,Z=0,ne=0;for(L=0;L=E&&(Z-=E),!N[Z]){I=[];var j=[];for(z=Z;z>=0;){j[z]=!0,N[z]=!0,b[b.length]=z,I.push(d[z]);var te=v[Math.floor(z*4/g)];if(ne=z*4&k,g<4+ne)throw new Error("FAT boundary crossed: "+z+" 4 "+g);if(!d[te]||(z=it(d[te],ne),j[z]))break}w[Z]={nodes:b,data:mi([I])}}return w}function F(d,T,v,g,E,w,N,b){for(var I=0,k=g.length?2:0,L=T[d].data,z=0,Z=0,ne;z0&&I!==ee&&(T[I].name="!StreamData")):te.size>=4096?(te.storage="fat",T[te.start]===void 0&&(T[te.start]=A(v,te.start,T.fat_addrs,T.ssz)),T[te.start].name=te.name,te.content=T[te.start].data.slice(0,te.size)):(te.storage="minifat",te.size<0?te.size=0:I!==ee&&te.start!==ee&&T[I]&&(te.content=u(te,T[I].data,(T[b]||{}).data))),te.content&&ur(te.content,0),w[ne]=te,N.push(te)}}function M(d,T){return new Date((xr(d,T+4)/1e7*Math.pow(2,32)+xr(d,T)/1e7-11644473600)*1e3)}function K(d,T){return l(),c(o.readFileSync(d),T)}function re(d,T){var v=T&&T.type;switch(v||me&&Buffer.isBuffer(d)&&(v="buffer"),v||"base64"){case"file":return K(d,T);case"base64":return c(wr(Ur(d)),T);case"binary":return c(wr(d),T)}return c(d,T)}function D(d,T){var v=T||{},g=v.root||"Root Entry";if(d.FullPaths||(d.FullPaths=[]),d.FileIndex||(d.FileIndex=[]),d.FullPaths.length!==d.FileIndex.length)throw new Error("inconsistent CFB structure");d.FullPaths.length===0&&(d.FullPaths[0]=g+"/",d.FileIndex[0]={name:g,type:5}),v.CLSID&&(d.FileIndex[0].clsid=v.CLSID),U(d)}function U(d){var T="Sh33tJ5";if(!ye.find(d,"/"+T)){var v=B(4);v[0]=55,v[1]=v[3]=50,v[2]=54,d.FileIndex.push({name:T,type:2,content:v,size:4,L:69,R:69,C:69}),d.FullPaths.push(d.FullPaths[0]+T),R(d)}}function R(d,T){D(d);for(var v=!1,g=!1,E=d.FullPaths.length-1;E>=0;--E){var w=d.FileIndex[E];switch(w.type){case 0:g?v=!0:(d.FileIndex.pop(),d.FullPaths.pop());break;case 1:case 2:case 5:g=!0,isNaN(w.R*w.L*w.C)&&(v=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(v=!0);break;default:v=!0;break}}if(!(!v&&!T)){var N=new Date(1987,1,19),b=0,I=Object.create?Object.create(null):{},k=[];for(E=0;E1?1:-1,z.size=0,z.type=5;else if(Z.slice(-1)=="/"){for(b=E+1;b=k.length?-1:b,b=E+1;b=k.length?-1:b,z.type=1}else n(d.FullPaths[E+1]||"")==n(Z)&&(z.R=E+1),z.type=2}}}function G(d,T){var v=T||{};if(v.fileType=="mad")return ef(d,v);switch(R(d),v.fileType){case"zip":return Ks(d,v)}var g=function(ne){for(var j=0,te=0,ce=0;ce0&&(Ie<4096?j+=Ie+63>>6:te+=Ie+511>>9)}}for(var Ye=ne.FullPaths.length+3>>2,Rt=j+7>>3,Lt=j+127>>7,Pt=Rt+te+Ye+Lt,et=Pt+127>>7,qn=et<=109?0:Math.ceil((et-109)/127);Pt+et+qn+127>>7>et;)qn=++et<=109?0:Math.ceil((et-109)/127);var Rr=[1,qn,et,Lt,Ye,te,j,0];return ne.FileIndex[0].size=j<<6,Rr[7]=(ne.FileIndex[0].start=Rr[0]+Rr[1]+Rr[2]+Rr[3]+Rr[4]+Rr[5])+(Rr[6]+7>>3),Rr}(d),E=B(g[7]<<9),w=0,N=0;{for(w=0;w<8;++w)E.write_shift(1,ie[w]);for(w=0;w<8;++w)E.write_shift(2,0);for(E.write_shift(2,62),E.write_shift(2,3),E.write_shift(2,65534),E.write_shift(2,9),E.write_shift(2,6),w=0;w<3;++w)E.write_shift(2,0);for(E.write_shift(4,0),E.write_shift(4,g[2]),E.write_shift(4,g[0]+g[1]+g[2]+g[3]-1),E.write_shift(4,0),E.write_shift(4,1<<12),E.write_shift(4,g[3]?g[0]+g[1]+g[2]-1:ee),E.write_shift(4,g[3]),E.write_shift(-4,g[1]?g[0]-1:ee),E.write_shift(4,g[1]),w=0;w<109;++w)E.write_shift(-4,w>9)));for(b(g[6]+7>>3);E.l&511;)E.write_shift(-4,Te.ENDOFCHAIN);for(N=w=0,I=0;I=4096)&&(L.start=N,b(k+63>>6)));for(;E.l&511;)E.write_shift(-4,Te.ENDOFCHAIN);for(w=0;w=4096)if(E.l=L.start+1<<9,me&&Buffer.isBuffer(L.content))L.content.copy(E,E.l,0,L.size),E.l+=L.size+511&-512;else{for(I=0;I0&&L.size<4096)if(me&&Buffer.isBuffer(L.content))L.content.copy(E,E.l,0,L.size),E.l+=L.size+63&-64;else{for(I=0;I>16|T>>8|T)&255}for(var se=typeof Uint8Array<"u",Q=se?new Uint8Array(1<<8):[],Ce=0;Ce<1<<8;++Ce)Q[Ce]=le(Ce);function pe(d,T){var v=Q[d&255];return T<=8?v>>>8-T:(v=v<<8|Q[d>>8&255],T<=16?v>>>16-T:(v=v<<8|Q[d>>16&255],v>>>24-T))}function Qe(d,T){var v=T&7,g=T>>>3;return(d[g]|(v<=6?0:d[g+1]<<8))>>>v&3}function _e(d,T){var v=T&7,g=T>>>3;return(d[g]|(v<=5?0:d[g+1]<<8))>>>v&7}function Nr(d,T){var v=T&7,g=T>>>3;return(d[g]|(v<=4?0:d[g+1]<<8))>>>v&15}function Ne(d,T){var v=T&7,g=T>>>3;return(d[g]|(v<=3?0:d[g+1]<<8))>>>v&31}function ae(d,T){var v=T&7,g=T>>>3;return(d[g]|(v<=1?0:d[g+1]<<8))>>>v&127}function pr(d,T,v){var g=T&7,E=T>>>3,w=(1<>>g;return v<8-g||(N|=d[E+1]<<8-g,v<16-g)||(N|=d[E+2]<<16-g,v<24-g)||(N|=d[E+3]<<24-g),N&w}function kr(d,T,v){var g=T&7,E=T>>>3;return g<=5?d[E]|=(v&7)<>8-g),T+3}function Zr(d,T,v){var g=T&7,E=T>>>3;return v=(v&1)<>>3;return v<<=g,d[E]|=v&255,v>>>=8,d[E+1]=v,T+8}function U0(d,T,v){var g=T&7,E=T>>>3;return v<<=g,d[E]|=v&255,v>>>=8,d[E+1]=v&255,d[E+2]=v>>>8,T+16}function Kn(d,T){var v=d.length,g=2*v>T?2*v:T+5,E=0;if(v>=T)return d;if(me){var w=ti(g);if(d.copy)d.copy(w);else for(;E>g-z,N=(1<=0;--N)T[b|N<0;)I[I.l++]=b[k++]}return I.l}function N(b,I){for(var k=0,L=0,z=se?new Uint16Array(32768):[];L0;)I[I.l++]=b[L++];k=I.l*8;continue}k=kr(I,k,+(L+Z==b.length)+2);for(var ne=0;Z-- >0;){var j=b[L];ne=(ne<<5^j)&32767;var te=-1,ce=0;if((te=z[ne])&&(te|=L&-32768,te>L&&(te-=32768),te2){j=E[ce],j<=22?k=vt(I,k,Q[j+1]>>1)-1:(vt(I,k,3),k+=5,vt(I,k,Q[j-23]>>5),k+=3);var De=j<8?0:j-4>>2;De>0&&(U0(I,k,ce-H[j]),k+=De),j=T[L-te],k=vt(I,k,Q[j]>>3),k-=3;var Ie=j<4?0:j-2>>1;Ie>0&&(U0(I,k,L-te-fe[j]),k+=Ie);for(var Ye=0;Ye>8-j;for(var te=(1<<7-j)-1;te>=0;--te)G0[ne|te<>>=3){case 16:for(w=3+Qe(d,T),T+=2,ne=ce[ce.length-1];w-- >0;)ce.push(ne);break;case 17:for(w=3+_e(d,T),T+=3;w-- >0;)ce.push(0);break;case 18:for(w=11+ae(d,T),T+=7;w-- >0;)ce.push(0);break;default:ce.push(ne),I>>0,b=0,I=0;!(g&1);){if(g=_e(d,v),v+=3,g>>>1)g>>1==1?(b=9,I=5):(v=Vs(d,v),b=V0,I=X0);else{v&7&&(v+=8-(v&7));var k=d[v>>>3]|d[(v>>>3)+1]<<8;if(v+=32,k>0)for(!T&&N0;)E[w++]=d[v>>>3],v+=8;continue}for(;;){!T&&N>>1==1?Yn[L]:H0[L];if(v+=z&15,z>>>=4,!(z>>>8&255))E[w++]=z;else{if(z==256)break;z-=257;var Z=z<8?0:z-4>>2;Z>5&&(Z=0);var ne=w+H[z];Z>0&&(ne+=pr(d,v,Z),v+=Z),L=pr(d,v,I),z=g>>>1==1?jn[L]:$0[L],v+=z&15,z>>>=4;var j=z<4?0:z-2>>1,te=fe[z];for(j>0&&(te+=pr(d,v,j),v+=j),!T&&N>>3]:[E.slice(0,w),v+7>>>3]}function z0(d,T){var v=d.slice(d.l||0),g=Xs(v,T);return d.l+=g[1],g[0]}function K0(d,T){if(d)typeof console<"u"&&console.error(T);else throw new Error(T)}function Y0(d,T){var v=d;ur(v,0);var g=[],E=[],w={FileIndex:g,FullPaths:E};D(w,{root:T.root});for(var N=v.length-4;(v[N]!=80||v[N+1]!=75||v[N+2]!=5||v[N+3]!=6)&&N>=0;)--N;v.l=N+4,v.l+=4;var b=v.read_shift(2);v.l+=6;var I=v.read_shift(4);for(v.l=I,N=0;N0&&(v=v.slice(0,v.length-1),v=v.slice(0,v.lastIndexOf("/")+1),w.slice(0,v.length)!=v););var N=(g[1]||"").match(/boundary="(.*?)"/);if(!N)throw new Error("MAD cannot find boundary");var b="--"+(N[1]||""),I=[],k=[],R={FileIndex:I,FullPaths:k};D(R);var z,Z=0;for(E=0;E=32&&ne<128&&++z;var te=z>=Z*4/5;E.push(g),E.push("Content-Location: "+(v.root||"file:///C:/SheetJS/")+N),E.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),E.push("Content-Type: "+Ys(b,N)),E.push(""),E.push(te?Js(R):js(R))}return E.push(g+`--\r +`)}function qs(d){for(var T=[],v=0;v0&&(v=v.slice(0,v.length-1),v=v.slice(0,v.lastIndexOf("/")+1),w.slice(0,v.length)!=v););var N=(g[1]||"").match(/boundary="(.*?)"/);if(!N)throw new Error("MAD cannot find boundary");var b="--"+(N[1]||""),I=[],k=[],L={FileIndex:I,FullPaths:k};D(L);var z,Z=0;for(E=0;E=32&&ne<128&&++z;var te=z>=Z*4/5;E.push(g),E.push("Content-Location: "+(v.root||"file:///C:/SheetJS/")+N),E.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),E.push("Content-Type: "+Ys(b,N)),E.push(""),E.push(te?Js(L):js(L))}return E.push(g+`--\r `),E.join(`\r -`)}function rf(p){var T={};return D(T,p),T}function Jn(p,T,v,g){var E=g&&g.unsafe;E||D(p);var w=!E&&Se.find(p,T);if(!w){var N=p.FullPaths[0];T.slice(0,N.length)==N?N=T:(N.slice(-1)!="/"&&(N+="/"),N=(N+T).replace("//","/")),w={name:i(T),type:2},p.FileIndex.push(w),p.FullPaths.push(N),E||Se.utils.cfb_gc(p)}return w.content=v,w.size=v?v.length:0,g&&(g.CLSID&&(w.clsid=g.CLSID),g.mt&&(w.mt=g.mt),g.ct&&(w.ct=g.ct)),w}function tf(p,T){D(p);var v=Se.find(p,T);if(v){for(var g=0;g0?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(ya.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Gn(e,t){if(me&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Pr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Pr(Ul(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Pr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Pr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function fr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=fr(e[r]));return t}function Ne(e,t){for(var r="";r.length3&&_o.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function xe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return me?n=$r(r):n=Hl(r),Se.utils.cfb_add(e,t,n)}Se.utils.cfb_add(e,t,r)}else e.file(t,r)}function T0(){return Se.utils.cfb_new()}var Be=`\r -`,To={""":'"',"'":"'",">":">","<":"<","&":"&"},E0=_0(To),w0=/[&<>'"]/g,Eo=/[\u0000-\u0008\u000b-\u001f]/g;function Ee(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(Eo,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function xi(e){return Ee(e).replace(/ /g,"_x0020_")}var Ca=/[\u0000-\u001f]/g;function wo(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(/\n/g,"
").replace(Ca,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function So(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(Ca,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Ao(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Fo(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Qn(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0;r191&&n<224){s=(n&31)<<6,s|=i&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function di(e){var t=ft(2*e.length),r,n,i=1,a=0,s=0,f;for(n=0;n>>10&1023),r=56320+(r&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function pi(e){return $r(e,"binary").toString("utf8")}var on="foo bar baz☃🍣",Ut=me&&(pi(on)==Qn(on)&&pi||di(on)==Qn(on)&&di)||Qn,Pr=me?function(e){return $r(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&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("")},yo=function(){var e=[["nbsp"," "],["middot","·"],["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(/<[^>]*>/g,""),i=0;i"+t+""}function Yt(e){return Ke(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function J(e,t,r){return"<"+e+(r!=null?Yt(r):"")+(t!=null?(t.match(Oa)?' xml:space="preserve"':"")+">"+t+""}function o0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Co(e,t){switch(typeof e){case"string":var r=J("vt:lpwstr",Ee(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return J((e|0)==e?"vt:i4":"vt:r8",Ee(String(e)));case"boolean":return J("vt:bool",e?"true":"false")}if(e instanceof Date)return J("vt:filetime",o0(e));throw new Error("Unable to serialize "+e)}var Ue={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"},Dt=["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"],ur={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 Oo(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function Do(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a>4|n}var vi=function(e){for(var t=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:$r(t)})):vi(e)}:vi,gi=function(e,t,r){for(var n=[],i=t;i0?Qt(e,t+4,t+4+r-1):""},Na=Ia,ka=function(e,t){var r=hr(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},Ra=ka,La=function(e,t){var r=2*hr(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},Pa=La,Ma=function(t,r){var n=hr(t,r);return n>0?S0(t,r+4,r+4+n):""},Ba=Ma,ba=function(e,t){var r=hr(e,t);return r>0?Qt(e,t+4,t+4+r):""},Ua=ba,Wa=function(e,t){return Oo(e,t)},En=Wa,A0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};me&&(Na=function(t,r){if(!Buffer.isBuffer(t))return Ia(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ra=function(t,r){if(!Buffer.isBuffer(t))return ka(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Pa=function(t,r){if(!Buffer.isBuffer(t))return La(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Ba=function(t,r){if(!Buffer.isBuffer(t))return Ma(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Ua=function(t,r){if(!Buffer.isBuffer(t))return ba(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},En=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Wa(t,r)},A0=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Tt=function(e,t){return e[t]},Bt=function(e,t){return e[t+1]*(1<<8)+e[t]},Io=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},hr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},it=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},No=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Wt(e,t){var r="",n,i,a=[],s,f,o,l;switch(t){case"dbcs":if(l=this.l,me&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?it:No)(this,this.l),this.l+=4,n):(i=hr(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=En(this,this.l):i=En([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=Da(this,this.l,e);break}}return this.l+=e,r}var ko=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Ro=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Lo=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Po(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)Lo(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,ko(this,t,this.l);break;case 8:if(n=8,r==="f"){Do(this,t,this.l);break}case 16:break;case-4:n=4,Ro(this,t,this.l);break}return this.l+=n,this}function Ha(e,t){var r=Da(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function cr(e,t){e.l=t,e.read_shift=Wt,e.chk=Ha,e.write_shift=Po}function Dr(e,t){e.l+=t}function B(e){var t=ft(e);return cr(t,0),t}function ar(){var e=[],t=me?256:2048,r=function(l){var c=B(l);return cr(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(l){return n&&l=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&A0(r)&&e.push(r)}}function Ht(e,t,r){var n=fr(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ei(e,t,r){var n=fr(e);return n.s=Ht(n.s,t.s,r),n.e=Ht(n.e,t.s,r),n}function $t(e,t){if(e.cRel&&e.c<0)for(e=fr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=fr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=we(e);return!e.cRel&&e.cRel!=null&&(r=bo(r)),!e.rRel&&e.rRel!=null&&(r=Mo(r)),r}function e0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+je(e.s.c)+":"+(e.e.cRel?"":"$")+je(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+ze(e.s.r)+":"+(e.e.rRel?"":"$")+ze(e.e.r):$t(e.s,t.biff)+":"+$t(e.e,t.biff)}function F0(e){return parseInt(Bo(e),10)-1}function ze(e){return""+(e+1)}function Mo(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Bo(e){return e.replace(/\$(\d+)$/,"$1")}function y0(e){for(var t=Uo(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function je(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function bo(e){return e.replace(/^([A-Z])/,"$$$1")}function Uo(e){return e.replace(/^\$([A-Z])/,"$1")}function Wo(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function We(e){for(var t=0,r=0,n=0;n=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function we(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function xr(e){var t=e.indexOf(":");return t==-1?{s:We(e),e:We(e)}:{s:We(e.slice(0,t)),e:We(e.slice(t+1))}}function Me(e,t){return typeof t>"u"||typeof t=="number"?Me(e.s,e.e):(typeof e!="string"&&(e=we(e)),typeof t!="string"&&(t=we(t)),e==t?e:e+":"+t)}function Ce(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n26);++n)r=26*r+i;for(t.s.c=--r,r=0;n9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function wi(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Kr(e.z,r?sr(t):t)}catch{}try{return e.w=Kr((e.XF||{}).numFmtId||(r?14:0),r?sr(t):t)}catch{return""+t}}function Wr(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?en[e.v]||e.v:t==null?wi(e,e.v):wi(e,t))}function ut(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function $a(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,f=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?We(n.origin):n.origin;s=o.r,f=o.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Ce(a["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),s==-1&&(l.e.r=s=c.e.r+1)}for(var x=0;x!=t.length;++x)if(t[x]){if(!Array.isArray(t[x]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[x].length;++h)if(!(typeof t[x][h]>"u")){var d={v:t[x][h]},_=s+x,u=f+h;if(l.s.r>_&&(l.s.r=_),l.s.c>u&&(l.s.c=u),l.e.r<_&&(l.e.r=_),l.e.c0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function $o(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Go(e,t){return t||(t=B(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function C0(e,t){var r=e.l,n=e.read_shift(1),i=Je(e),a=[],s={t:i,h:i};if(n&1){for(var f=e.read_shift(4),o=0;o!=f;++o)a.push($o(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function Vo(e,t){var r=!1;return t==null&&(r=!0,t=B(15+4*e.t.length)),t.write_shift(1,0),He(e.t,t),r?t.slice(0,t.l):t}var Xo=C0;function zo(e,t){var r=!1;return t==null&&(r=!0,t=B(23+4*e.t.length)),t.write_shift(1,1),He(e.t,t),t.write_shift(4,1),Go({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function _r(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ht(e,t){return t==null&&(t=B(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function xt(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function dt(e,t){return t==null&&(t=B(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Ko=Je,Ga=He;function O0(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function wn(e,t){var r=!1;return t==null&&(r=!0,t=B(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Yo=Je,c0=O0,D0=wn;function Va(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?En([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):it(t,0)>>2;return r?i/100:i}function Xa(e,t){t==null&&(t=B(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function za(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function jo(e,t){return t||(t=B(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var pt=za,Nt=jo;function kt(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function lt(e,t){return(t||B(8)).write_shift(8,e,"f")}function Jo(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var l=ac[i];l&&(t.rgb=Ri(l));break;case 2:t.rgb=Ri([s,f,o]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function Sn(e,t){if(t||(t=B(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function qo(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function Zo(e,t){t||(t=B(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Ka=2,or=3,cn=11,An=19,un=64,Qo=65,ec=71,rc=4108,tc=4126,Ge=80,Si={1:{n:"CodePage",t:Ka},2:{n:"Category",t:Ge},3:{n:"PresentationFormat",t:Ge},4:{n:"ByteCount",t:or},5:{n:"LineCount",t:or},6:{n:"ParagraphCount",t:or},7:{n:"SlideCount",t:or},8:{n:"NoteCount",t:or},9:{n:"HiddenCount",t:or},10:{n:"MultimediaClipCount",t:or},11:{n:"ScaleCrop",t:cn},12:{n:"HeadingPairs",t:rc},13:{n:"TitlesOfParts",t:tc},14:{n:"Manager",t:Ge},15:{n:"Company",t:Ge},16:{n:"LinksUpToDate",t:cn},17:{n:"CharacterCount",t:or},19:{n:"SharedDoc",t:cn},22:{n:"HyperlinksChanged",t:cn},23:{n:"AppVersion",t:or,p:"version"},24:{n:"DigSig",t:Qo},26:{n:"ContentType",t:Ge},27:{n:"ContentStatus",t:Ge},28:{n:"Language",t:Ge},29:{n:"Version",t:Ge},255:{},2147483648:{n:"Locale",t:An},2147483651:{n:"Behavior",t:An},1919054434:{}},Ai={1:{n:"CodePage",t:Ka},2:{n:"Title",t:Ge},3:{n:"Subject",t:Ge},4:{n:"Author",t:Ge},5:{n:"Keywords",t:Ge},6:{n:"Comments",t:Ge},7:{n:"Template",t:Ge},8:{n:"LastAuthor",t:Ge},9:{n:"RevNumber",t:Ge},10:{n:"EditTime",t:un},11:{n:"LastPrinted",t:un},12:{n:"CreatedDate",t:un},13:{n:"ModifiedDate",t:un},14:{n:"PageCount",t:or},15:{n:"WordCount",t:or},16:{n:"CharCount",t:or},17:{n:"Thumbnail",t:ec},18:{n:"Application",t:Ge},19:{n:"DocSecurity",t:or},255:{},2147483648:{n:"Locale",t:An},2147483651:{n:"Behavior",t:An},1919054434:{}};function nc(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var ic=nc([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ac=fr(ic),en={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},sc={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},hn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Ya(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function ja(e,t){var r=vo(sc),n=[],i;n[n.length]=Be,n[n.length]=J("Types",null,{xmlns:Ue.CT,"xmlns:xsd":Ue.xsd,"xmlns:xsi":Ue.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return J("Default",null,{Extension:o[0],ContentType:o[1]})}));var a=function(o){e[o]&&e[o].length>0&&(i=e[o][0],n[n.length]=J("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:hn[o][t.bookType]||hn[o].xlsx}))},s=function(o){(e[o]||[]).forEach(function(l){n[n.length]=J("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:hn[o][t.bookType]||hn[o].xlsx})})},f=function(o){(e[o]||[]).forEach(function(l){n[n.length]=J("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[o][0]})})};return a("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var ve={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ja(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function At(e){var t=[Be,J("Relationships",null,{xmlns:Ue.RELS})];return Ke(e["!id"]).forEach(function(r){t[t.length]=J("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Te(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,a?i.TargetMode=a:[ve.HLINK,ve.XPATH,ve.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function fc(e){var t=[Be];t.push(` +`)}function rf(d){var T={};return D(T,d),T}function Jn(d,T,v,g){var E=g&&g.unsafe;E||D(d);var w=!E&&ye.find(d,T);if(!w){var N=d.FullPaths[0];T.slice(0,N.length)==N?N=T:(N.slice(-1)!="/"&&(N+="/"),N=(N+T).replace("//","/")),w={name:i(T),type:2},d.FileIndex.push(w),d.FullPaths.push(N),E||ye.utils.cfb_gc(d)}return w.content=v,w.size=v?v.length:0,g&&(g.CLSID&&(w.clsid=g.CLSID),g.mt&&(w.mt=g.mt),g.ct&&(w.ct=g.ct)),w}function tf(d,T){D(d);var v=ye.find(d,T);if(v){for(var g=0;g0?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(ya.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Gn(e,t){if(me&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Pr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Pr(Ul(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Pr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Pr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function lr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=lr(e[r]));return t}function ke(e,t){for(var r="";r.length3&&_o.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function he(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return me?n=$r(r):n=Hl(r),ye.utils.cfb_add(e,t,n)}ye.utils.cfb_add(e,t,r)}else e.file(t,r)}function T0(){return ye.utils.cfb_new()}var Be=`\r +`,To={""":'"',"'":"'",">":">","<":"<","&":"&"},E0=_0(To),w0=/[&<>'"]/g,Eo=/[\u0000-\u0008\u000b-\u001f]/g;function Se(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(Eo,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function xi(e){return Se(e).replace(/ /g,"_x0020_")}var Ca=/[\u0000-\u001f]/g;function wo(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(/\n/g,"
").replace(Ca,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function So(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(Ca,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Ao(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Fo(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Qn(e){for(var t="",r=0,n=0,i=0,a=0,s=0,f=0;r191&&n<224){s=(n&31)<<6,s|=i&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function di(e){var t=ft(2*e.length),r,n,i=1,a=0,s=0,f;for(n=0;n>>10&1023),r=56320+(r&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function pi(e){return $r(e,"binary").toString("utf8")}var on="foo bar baz☃🍣",Ut=me&&(pi(on)==Qn(on)&&pi||di(on)==Qn(on)&&di)||Qn,Pr=me?function(e){return $r(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&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("")},yo=function(){var e=[["nbsp"," "],["middot","·"],["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(/<[^>]*>/g,""),i=0;i"+t+""}function Yt(e){return Ke(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function J(e,t,r){return"<"+e+(r!=null?Yt(r):"")+(t!=null?(t.match(Oa)?' xml:space="preserve"':"")+">"+t+""}function o0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Co(e,t){switch(typeof e){case"string":var r=J("vt:lpwstr",Se(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return J((e|0)==e?"vt:i4":"vt:r8",Se(String(e)));case"boolean":return J("vt:bool",e?"true":"false")}if(e instanceof Date)return J("vt:filetime",o0(e));throw new Error("Unable to serialize "+e)}var Ue={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"},Dt=["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"],hr={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 Oo(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function Do(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a>4|n}var vi=function(e){for(var t=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:$r(t)})):vi(e)}:vi,gi=function(e,t,r){for(var n=[],i=t;i0?Qt(e,t+4,t+4+r-1):""},Na=Ia,ka=function(e,t){var r=xr(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},Ra=ka,La=function(e,t){var r=2*xr(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},Pa=La,Ma=function(t,r){var n=xr(t,r);return n>0?S0(t,r+4,r+4+n):""},Ba=Ma,ba=function(e,t){var r=xr(e,t);return r>0?Qt(e,t+4,t+4+r):""},Ua=ba,Wa=function(e,t){return Oo(e,t)},En=Wa,A0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};me&&(Na=function(t,r){if(!Buffer.isBuffer(t))return Ia(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ra=function(t,r){if(!Buffer.isBuffer(t))return ka(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Pa=function(t,r){if(!Buffer.isBuffer(t))return La(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Ba=function(t,r){if(!Buffer.isBuffer(t))return Ma(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Ua=function(t,r){if(!Buffer.isBuffer(t))return ba(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},En=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Wa(t,r)},A0=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Tt=function(e,t){return e[t]},Bt=function(e,t){return e[t+1]*(1<<8)+e[t]},Io=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},xr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},it=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},No=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Wt(e,t){var r="",n,i,a=[],s,f,o,l;switch(t){case"dbcs":if(l=this.l,me&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?it:No)(this,this.l),this.l+=4,n):(i=xr(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=En(this,this.l):i=En([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=Da(this,this.l,e);break}}return this.l+=e,r}var ko=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Ro=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Lo=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Po(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)Lo(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,ko(this,t,this.l);break;case 8:if(n=8,r==="f"){Do(this,t,this.l);break}case 16:break;case-4:n=4,Ro(this,t,this.l);break}return this.l+=n,this}function Ha(e,t){var r=Da(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function ur(e,t){e.l=t,e.read_shift=Wt,e.chk=Ha,e.write_shift=Po}function Dr(e,t){e.l+=t}function B(e){var t=ft(e);return ur(t,0),t}function sr(){var e=[],t=me?256:2048,r=function(l){var c=B(l);return ur(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(l){return n&&l=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&A0(r)&&e.push(r)}}function Ht(e,t,r){var n=lr(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ei(e,t,r){var n=lr(e);return n.s=Ht(n.s,t.s,r),n.e=Ht(n.e,t.s,r),n}function $t(e,t){if(e.cRel&&e.c<0)for(e=lr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=lr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ae(e);return!e.cRel&&e.cRel!=null&&(r=bo(r)),!e.rRel&&e.rRel!=null&&(r=Mo(r)),r}function e0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+je(e.s.c)+":"+(e.e.cRel?"":"$")+je(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+ze(e.s.r)+":"+(e.e.rRel?"":"$")+ze(e.e.r):$t(e.s,t.biff)+":"+$t(e.e,t.biff)}function F0(e){return parseInt(Bo(e),10)-1}function ze(e){return""+(e+1)}function Mo(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Bo(e){return e.replace(/\$(\d+)$/,"$1")}function y0(e){for(var t=Uo(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function je(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function bo(e){return e.replace(/^([A-Z])/,"$$$1")}function Uo(e){return e.replace(/^\$([A-Z])/,"$1")}function Wo(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function We(e){for(var t=0,r=0,n=0;n=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function Ae(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function dr(e){var t=e.indexOf(":");return t==-1?{s:We(e),e:We(e)}:{s:We(e.slice(0,t)),e:We(e.slice(t+1))}}function Me(e,t){return typeof t>"u"||typeof t=="number"?Me(e.s,e.e):(typeof e!="string"&&(e=Ae(e)),typeof t!="string"&&(t=Ae(t)),e==t?e:e+":"+t)}function Oe(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n26);++n)r=26*r+i;for(t.s.c=--r,r=0;n9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function wi(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Kr(e.z,r?fr(t):t)}catch{}try{return e.w=Kr((e.XF||{}).numFmtId||(r?14:0),r?fr(t):t)}catch{return""+t}}function Wr(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?en[e.v]||e.v:t==null?wi(e,e.v):wi(e,t))}function ut(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function $a(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,f=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?We(n.origin):n.origin;s=o.r,f=o.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Oe(a["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),s==-1&&(l.e.r=s=c.e.r+1)}for(var x=0;x!=t.length;++x)if(t[x]){if(!Array.isArray(t[x]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[x].length;++h)if(!(typeof t[x][h]>"u")){var p={v:t[x][h]},_=s+x,u=f+h;if(l.s.r>_&&(l.s.r=_),l.s.c>u&&(l.s.c=u),l.e.r<_&&(l.e.r=_),l.e.c0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function $o(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Go(e,t){return t||(t=B(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function C0(e,t){var r=e.l,n=e.read_shift(1),i=Je(e),a=[],s={t:i,h:i};if(n&1){for(var f=e.read_shift(4),o=0;o!=f;++o)a.push($o(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function Vo(e,t){var r=!1;return t==null&&(r=!0,t=B(15+4*e.t.length)),t.write_shift(1,0),He(e.t,t),r?t.slice(0,t.l):t}var Xo=C0;function zo(e,t){var r=!1;return t==null&&(r=!0,t=B(23+4*e.t.length)),t.write_shift(1,1),He(e.t,t),t.write_shift(4,1),Go({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function _r(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ht(e,t){return t==null&&(t=B(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function xt(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function dt(e,t){return t==null&&(t=B(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Ko=Je,Ga=He;function O0(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function wn(e,t){var r=!1;return t==null&&(r=!0,t=B(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Yo=Je,c0=O0,D0=wn;function Va(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?En([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):it(t,0)>>2;return r?i/100:i}function Xa(e,t){t==null&&(t=B(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function za(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function jo(e,t){return t||(t=B(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var pt=za,Nt=jo;function kt(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function lt(e,t){return(t||B(8)).write_shift(8,e,"f")}function Jo(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var l=ac[i];l&&(t.rgb=Ri(l));break;case 2:t.rgb=Ri([s,f,o]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function Sn(e,t){if(t||(t=B(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function qo(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function Zo(e,t){t||(t=B(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Ka=2,cr=3,cn=11,An=19,un=64,Qo=65,ec=71,rc=4108,tc=4126,Ge=80,Si={1:{n:"CodePage",t:Ka},2:{n:"Category",t:Ge},3:{n:"PresentationFormat",t:Ge},4:{n:"ByteCount",t:cr},5:{n:"LineCount",t:cr},6:{n:"ParagraphCount",t:cr},7:{n:"SlideCount",t:cr},8:{n:"NoteCount",t:cr},9:{n:"HiddenCount",t:cr},10:{n:"MultimediaClipCount",t:cr},11:{n:"ScaleCrop",t:cn},12:{n:"HeadingPairs",t:rc},13:{n:"TitlesOfParts",t:tc},14:{n:"Manager",t:Ge},15:{n:"Company",t:Ge},16:{n:"LinksUpToDate",t:cn},17:{n:"CharacterCount",t:cr},19:{n:"SharedDoc",t:cn},22:{n:"HyperlinksChanged",t:cn},23:{n:"AppVersion",t:cr,p:"version"},24:{n:"DigSig",t:Qo},26:{n:"ContentType",t:Ge},27:{n:"ContentStatus",t:Ge},28:{n:"Language",t:Ge},29:{n:"Version",t:Ge},255:{},2147483648:{n:"Locale",t:An},2147483651:{n:"Behavior",t:An},1919054434:{}},Ai={1:{n:"CodePage",t:Ka},2:{n:"Title",t:Ge},3:{n:"Subject",t:Ge},4:{n:"Author",t:Ge},5:{n:"Keywords",t:Ge},6:{n:"Comments",t:Ge},7:{n:"Template",t:Ge},8:{n:"LastAuthor",t:Ge},9:{n:"RevNumber",t:Ge},10:{n:"EditTime",t:un},11:{n:"LastPrinted",t:un},12:{n:"CreatedDate",t:un},13:{n:"ModifiedDate",t:un},14:{n:"PageCount",t:cr},15:{n:"WordCount",t:cr},16:{n:"CharCount",t:cr},17:{n:"Thumbnail",t:ec},18:{n:"Application",t:Ge},19:{n:"DocSecurity",t:cr},255:{},2147483648:{n:"Locale",t:An},2147483651:{n:"Behavior",t:An},1919054434:{}};function nc(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var ic=nc([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ac=lr(ic),en={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},sc={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},hn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Ya(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function ja(e,t){var r=vo(sc),n=[],i;n[n.length]=Be,n[n.length]=J("Types",null,{xmlns:Ue.CT,"xmlns:xsd":Ue.xsd,"xmlns:xsi":Ue.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return J("Default",null,{Extension:o[0],ContentType:o[1]})}));var a=function(o){e[o]&&e[o].length>0&&(i=e[o][0],n[n.length]=J("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:hn[o][t.bookType]||hn[o].xlsx}))},s=function(o){(e[o]||[]).forEach(function(l){n[n.length]=J("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:hn[o][t.bookType]||hn[o].xlsx})})},f=function(o){(e[o]||[]).forEach(function(l){n[n.length]=J("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[o][0]})})};return a("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var ve={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ja(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function At(e){var t=[Be,J("Relationships",null,{xmlns:Ue.RELS})];return Ke(e["!id"]).forEach(function(r){t[t.length]=J("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function we(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,a?i.TargetMode=a:[ve.HLINK,ve.XPATH,ve.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function fc(e){var t=[Be];t.push(` `),t.push(` `);for(var r=0;r `);return t.push(""),t.join("")}function Fi(e,t,r){return[' @@ -28,21 +28,21 @@ import{b as qe,i as ce,t as de,d as In,e as Pe,c as Y,s as rr,F as at,f as h0,g `,' `,` `].join("")}function oc(e){var t=[Be];t.push(` -`);for(var r=0;r!=e.length;++r)t.push(Fi(e[r][0],e[r][1])),t.push(lc("",e[r][0]));return t.push(Fi("","Document","pkg")),t.push(""),t.join("")}function qa(){return'SheetJS '+vn.version+""}var st=[["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 r0(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Ee(t),n[n.length]=r?J(e,t,r):Xe(e,t))}function Za(e,t){var r=t||{},n=[Be,J("cp:coreProperties",null,{"xmlns:cp":Ue.CORE_PROPS,"xmlns:dc":Ue.dc,"xmlns:dcterms":Ue.dcterms,"xmlns:dcmitype":Ue.dcmitype,"xmlns:xsi":Ue.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&r0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:o0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&r0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:o0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=st.length;++a){var s=st[a],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&&r0(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Ft=[["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"]],Qa=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function es(e){var t=[],r=J;return e||(e={}),e.Application="SheetJS",t[t.length]=Be,t[t.length]=J("Properties",null,{xmlns:Ue.EXT_PROPS,"xmlns:vt":Ue.vt}),Ft.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Ee(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+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""+Ee(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function rs(e){var t=[Be,J("Properties",null,{xmlns:Ue.CUST_PROPS,"xmlns:vt":Ue.vt})];if(!e)return t.join("");var r=1;return Ke(e).forEach(function(i){++r,t[t.length]=J("property",Co(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Ee(i)})}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var yi={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 cc(e,t){var r=[];return Ke(yi).map(function(n){for(var i=0;i'+i.join("")+""}function hc(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=B(8);return s.write_shift(4,n),s.write_shift(4,i),s}function Ci(e,t){var r=B(4),n=B(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=B(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=hc(t);break;case 31:case 80:for(n=B(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Ve([r,n])}var ts=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xc(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Oi(e,t,r){var n=B(8),i=[],a=[],s=8,f=0,o=B(8),l=B(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),a.push(o),i.push(l),s+=8+o.length,!t){l=B(8),l.write_shift(4,0),i.unshift(l);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f-1||Qa.indexOf(e[f][0])>-1)&&e[f][1]!=null){var h=e[f][1],d=0;if(t){d=+t[e[f][0]];var _=r[d];if(_.p=="version"&&typeof h=="string"){var u=h.split(".");h=(+u[0]<<16)+(+u[1]||0)}o=Ci(_.t,h)}else{var m=xc(h);m==-1&&(m=31,h=String(h)),o=Ci(m,h)}a.push(o),l=B(8),l.write_shift(4,t?d:2+f),i.push(l),s+=8+o.length}var A=8*(a.length+1);for(f=0;f=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function vc(e){var t=e.t||"",r=B(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=B(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return Ve(i)}function mc(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function gc(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):mc(e,n,r)}function _c(e,t,r){if(r.biff>5)return gc(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ss(e,t,r){return r||(r=B(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Ii(e,t){t||(t=B(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,i):n;for(t.write_shift(4,2*(f.length+1)),r=0;r-1?n.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function wc(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function fs(e,t){return t||(t=B(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function I0(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=B(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function Sc(e,t){var r=!t||t.biff==8,n=B(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l=8?2:1,n=B(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function Fc(e,t){var r=B(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;in.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function kc(e,t){var r=t.biff==8||!t.biff?4:2,n=B(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Ni(e,t,r,n){var i=r&&r.biff==5;n||(n=B(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function Rc(e){var t=B(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function Lc(e,t,r,n,i,a){var s=B(8);return ot(e,t,n,s),is(r,a,s),s}function Pc(e,t,r,n){var i=B(14);return ot(e,t,n,i),lt(r,i),i}function Mc(e,t,r){if(r.biff<8)return Bc(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(Ec(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function Bc(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=as(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function bc(e){var t=B(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),o=e.read_shift(2);n==2&&(e.l+=2);var l={s:i,e:a,w:s,ixfe:f,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function Gc(e,t){var r=B(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function Vc(e){for(var t=B(2*e),r=0;r1048576&&(u=1e6),x!=2&&(m=c.read_shift(2));var A=c.read_shift(2),O=o.codepage||1252;x!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(O=e[c[c.l]]),c.l+=1,c.l+=2),_&&(c.l+=36);for(var F=[],M={},K=Math.min(c.length,x==2?521:m-10-(d?264:0)),ee=_?32:11;c.l0;){if(c[c.l]===42){c.l+=A;continue}for(++c.l,l[++D]=[],U=0,U=0;U!=F.length;++U){var L=c.slice(c.l,c.l+F[U].len);c.l+=F[U].len,cr(L,0);var G=nt.utils.decode(O,L);switch(F[U].type){case"C":G.trim().length&&(l[D][U]=G.replace(/\s+$/,""));break;case"D":G.length===8?l[D][U]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):l[D][U]=G;break;case"F":l[D][U]=parseFloat(G.trim());break;case"+":case"I":l[D][U]=_?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[D][U]=!0;break;case"N":case"F":l[D][U]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+x.toString(16));l[D][U]="##MEMO##"+(_?parseInt(G.trim(),10):L.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(l[D][U]=+G||0);break;case"@":l[D][U]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[D][U]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":l[D][U]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][U]=-L.read_shift(-8,"f");break;case"B":if(d&&F[U].len==8){l[D][U]=L.read_shift(8,"f");break}case"G":case"P":L.l+=F[U].len;break;case"0":if(F[U].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[U].type)}}}if(x!=2&&c.l=0&&Xt(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=ar(),x=Dn(f,{header:1,raw:!0,cellDates:!0}),h=x[0],d=x.slice(1),_=f["!cols"]||[],u=0,m=0,A=0,O=1;for(u=0;u250&&(L=250),U=((_[u]||{}).DBF||{}).type,U=="C"&&_[u].DBF.len>L&&(L=_[u].DBF.len),D=="B"&&U=="N"&&(D="N",ee[u]=_[u].DBF.dec,L=_[u].DBF.len),K[u]=D=="C"||U=="N"?L:a[D]||0,O+=K[u],M[u]=D}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,d.length),V.write_shift(2,296+32*A),V.write_shift(2,O),u=0;u<4;++u)V.write_shift(4,0);for(V.write_shift(4,0|(+t[oa]||3)<<8),u=0,m=0;u":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ke(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,d){var _=e[d];return typeof _=="number"?ri(_):_},n=function(h,d,_){var u=d.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return u==59?h:ri(u)};e["|"]=254;function i(h,d){switch(d.type){case"base64":return a(Ur(h),d);case"binary":return a(h,d);case"buffer":return a(me&&Buffer.isBuffer(h)?h.toString("binary"):qt(h),d);case"array":return a(Gn(h),d)}throw new Error("Unrecognized type "+d.type)}function a(h,d){var _=h.split(/[\n\r]+/),u=-1,m=-1,A=0,O=0,F=[],M=[],K=null,ee={},D=[],U=[],L=[],G=0,V;for(+d.codepage>=0&&Xt(+d.codepage);A!==_.length;++A){G=0;var X=_[A].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),re=X.replace(/;;/g,"\0").split(";").map(function(y){return y.replace(/\u0000/g,";")}),oe=re[0],ie;if(X.length>0)switch(oe){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":re[1].charAt(0)=="P"&&M.push(X.slice(3).replace(/;;/g,";"));break;case"C":var Fe=!1,ue=!1,ye=!1,Re=!1,dr=-1,lr=-1;for(O=1;O-1&&F[dr][lr];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");F[u][m][1]=Ku(P[1],{r:u-dr,c:m-lr})}break;case"F":var C=0;for(O=1;O0?(D[u].hpt=G,D[u].hpx=hs(G)):G===0&&(D[u].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+X)}C<1&&(K=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+X)}}return D.length>0&&(ee["!rows"]=D),U.length>0&&(ee["!cols"]=U),d&&d.sheetRows&&(F=F.slice(0,d.sheetRows)),[F,ee]}function s(h,d){var _=i(h,d),u=_[0],m=_[1],A=It(u,d);return Ke(m).forEach(function(O){A[O]=m[O]}),A}function f(h,d){return ut(s(h,d),d)}function o(h,d,_,u){var m="C;Y"+(_+1)+";X"+(u+1)+";K";switch(h.t){case"n":m+=h.v||0,h.f&&!h.F&&(m+=";E"+R0(h.f,{r:_,c:u}));break;case"b":m+=h.v?"TRUE":"FALSE";break;case"e":m+=h.w||h.v;break;case"d":m+='"'+(h.w||h.v)+'"';break;case"s":m+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function l(h,d){d.forEach(function(_,u){var m="F;W"+(u+1)+" "+(u+1)+" ";_.hidden?m+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=Fn(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=yn(_.wpx)),typeof _.wch=="number"&&(m+=Math.round(_.wch))),m.charAt(m.length-1)!=" "&&h.push(m)})}function c(h,d){d.forEach(function(_,u){var m="F;";_.hidden?m+="M0;":_.hpt?m+="M"+20*_.hpt+";":_.hpx&&(m+="M"+20*Cn(_.hpx)+";"),m.length>2&&h.push(m+"R"+(u+1))})}function x(h,d){var _=["ID;PWXL;N;E"],u=[],m=Ce(h["!ref"]),A,O=Array.isArray(h),F=`\r -`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),h["!cols"]&&l(_,h["!cols"]),h["!rows"]&&c(_,h["!rows"]),_.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var M=m.s.r;M<=m.e.r;++M)for(var K=m.s.c;K<=m.e.c;++K){var ee=we({r:M,c:K});A=O?(h[M]||[])[K]:h[ee],!(!A||A.v==null&&(!A.f||A.F))&&u.push(o(A,h,M,K))}return _.join(F)+F+u.join(F)+F+"E"+F}return{to_workbook:f,to_sheet:s,from_sheet:x}}(),jc=function(){function e(a,s){switch(s.type){case"base64":return t(Ur(a),s);case"binary":return t(a,s);case"buffer":return t(me&&Buffer.isBuffer(a)?a.toString("binary"):qt(a),s);case"array":return t(Gn(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var f=a.split(` -`),o=-1,l=-1,c=0,x=[];c!==f.length;++c){if(f[c].trim()==="BOT"){x[++o]=[],l=0;continue}if(!(o<0)){var h=f[c].trim().split(","),d=h[0],_=h[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c"),t.join("")}function qa(){return'SheetJS '+vn.version+""}var st=[["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 r0(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Se(t),n[n.length]=r?J(e,t,r):Xe(e,t))}function Za(e,t){var r=t||{},n=[Be,J("cp:coreProperties",null,{"xmlns:cp":Ue.CORE_PROPS,"xmlns:dc":Ue.dc,"xmlns:dcterms":Ue.dcterms,"xmlns:dcmitype":Ue.dcmitype,"xmlns:xsi":Ue.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&r0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:o0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&r0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:o0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=st.length;++a){var s=st[a],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&&r0(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Ft=[["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"]],Qa=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function es(e){var t=[],r=J;return e||(e={}),e.Application="SheetJS",t[t.length]=Be,t[t.length]=J("Properties",null,{xmlns:Ue.EXT_PROPS,"xmlns:vt":Ue.vt}),Ft.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Se(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+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""+Se(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function rs(e){var t=[Be,J("Properties",null,{xmlns:Ue.CUST_PROPS,"xmlns:vt":Ue.vt})];if(!e)return t.join("");var r=1;return Ke(e).forEach(function(i){++r,t[t.length]=J("property",Co(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Se(i)})}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var yi={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 cc(e,t){var r=[];return Ke(yi).map(function(n){for(var i=0;i'+i.join("")+""}function hc(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=B(8);return s.write_shift(4,n),s.write_shift(4,i),s}function Ci(e,t){var r=B(4),n=B(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=B(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=hc(t);break;case 31:case 80:for(n=B(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Ve([r,n])}var ts=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xc(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Oi(e,t,r){var n=B(8),i=[],a=[],s=8,f=0,o=B(8),l=B(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),a.push(o),i.push(l),s+=8+o.length,!t){l=B(8),l.write_shift(4,0),i.unshift(l);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f-1||Qa.indexOf(e[f][0])>-1)&&e[f][1]!=null){var h=e[f][1],p=0;if(t){p=+t[e[f][0]];var _=r[p];if(_.p=="version"&&typeof h=="string"){var u=h.split(".");h=(+u[0]<<16)+(+u[1]||0)}o=Ci(_.t,h)}else{var m=xc(h);m==-1&&(m=31,h=String(h)),o=Ci(m,h)}a.push(o),l=B(8),l.write_shift(4,t?p:2+f),i.push(l),s+=8+o.length}var A=8*(a.length+1);for(f=0;f=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function vc(e){var t=e.t||"",r=B(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=B(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return Ve(i)}function mc(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function gc(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):mc(e,n,r)}function _c(e,t,r){if(r.biff>5)return gc(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ss(e,t,r){return r||(r=B(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Ii(e,t){t||(t=B(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,i):n;for(t.write_shift(4,2*(f.length+1)),r=0;r-1?n.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function wc(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function fs(e,t){return t||(t=B(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function I0(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=B(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function Sc(e,t){var r=!t||t.biff==8,n=B(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l=8?2:1,n=B(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function Fc(e,t){var r=B(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;in.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function kc(e,t){var r=t.biff==8||!t.biff?4:2,n=B(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Ni(e,t,r,n){var i=r&&r.biff==5;n||(n=B(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function Rc(e){var t=B(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function Lc(e,t,r,n,i,a){var s=B(8);return ot(e,t,n,s),is(r,a,s),s}function Pc(e,t,r,n){var i=B(14);return ot(e,t,n,i),lt(r,i),i}function Mc(e,t,r){if(r.biff<8)return Bc(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(Ec(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function Bc(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=as(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function bc(e){var t=B(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),o=e.read_shift(2);n==2&&(e.l+=2);var l={s:i,e:a,w:s,ixfe:f,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function Gc(e,t){var r=B(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function Vc(e){for(var t=B(2*e),r=0;r1048576&&(u=1e6),x!=2&&(m=c.read_shift(2));var A=c.read_shift(2),O=o.codepage||1252;x!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(O=e[c[c.l]]),c.l+=1,c.l+=2),_&&(c.l+=36);for(var F=[],M={},K=Math.min(c.length,x==2?521:m-10-(p?264:0)),re=_?32:11;c.l0;){if(c[c.l]===42){c.l+=A;continue}for(++c.l,l[++D]=[],U=0,U=0;U!=F.length;++U){var R=c.slice(c.l,c.l+F[U].len);c.l+=F[U].len,ur(R,0);var G=nt.utils.decode(O,R);switch(F[U].type){case"C":G.trim().length&&(l[D][U]=G.replace(/\s+$/,""));break;case"D":G.length===8?l[D][U]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):l[D][U]=G;break;case"F":l[D][U]=parseFloat(G.trim());break;case"+":case"I":l[D][U]=_?R.read_shift(-4,"i")^2147483648:R.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[D][U]=!0;break;case"N":case"F":l[D][U]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+x.toString(16));l[D][U]="##MEMO##"+(_?parseInt(G.trim(),10):R.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(l[D][U]=+G||0);break;case"@":l[D][U]=new Date(R.read_shift(-8,"f")-621356832e5);break;case"T":l[D][U]=new Date((R.read_shift(4)-2440588)*864e5+R.read_shift(4));break;case"Y":l[D][U]=R.read_shift(4,"i")/1e4+R.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][U]=-R.read_shift(-8,"f");break;case"B":if(p&&F[U].len==8){l[D][U]=R.read_shift(8,"f");break}case"G":case"P":R.l+=F[U].len;break;case"0":if(F[U].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[U].type)}}}if(x!=2&&c.l=0&&Xt(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=sr(),x=Dn(f,{header:1,raw:!0,cellDates:!0}),h=x[0],p=x.slice(1),_=f["!cols"]||[],u=0,m=0,A=0,O=1;for(u=0;u250&&(R=250),U=((_[u]||{}).DBF||{}).type,U=="C"&&_[u].DBF.len>R&&(R=_[u].DBF.len),D=="B"&&U=="N"&&(D="N",re[u]=_[u].DBF.dec,R=_[u].DBF.len),K[u]=D=="C"||U=="N"?R:a[D]||0,O+=K[u],M[u]=D}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,p.length),V.write_shift(2,296+32*A),V.write_shift(2,O),u=0;u<4;++u)V.write_shift(4,0);for(V.write_shift(4,0|(+t[oa]||3)<<8),u=0,m=0;u":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ke(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,p){var _=e[p];return typeof _=="number"?ri(_):_},n=function(h,p,_){var u=p.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return u==59?h:ri(u)};e["|"]=254;function i(h,p){switch(p.type){case"base64":return a(Ur(h),p);case"binary":return a(h,p);case"buffer":return a(me&&Buffer.isBuffer(h)?h.toString("binary"):qt(h),p);case"array":return a(Gn(h),p)}throw new Error("Unrecognized type "+p.type)}function a(h,p){var _=h.split(/[\n\r]+/),u=-1,m=-1,A=0,O=0,F=[],M=[],K=null,re={},D=[],U=[],R=[],G=0,V;for(+p.codepage>=0&&Xt(+p.codepage);A!==_.length;++A){G=0;var X=_[A].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),ee=X.replace(/;;/g,"\0").split(";").map(function(y){return y.replace(/\u0000/g,";")}),ge=ee[0],ie;if(X.length>0)switch(ge){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":ee[1].charAt(0)=="P"&&M.push(X.slice(3).replace(/;;/g,";"));break;case"C":var ue=!1,Te=!1,xe=!1,Fe=!1,Ze=-1,or=-1;for(O=1;O-1&&F[Ze][or];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");F[u][m][1]=Ku(P[1],{r:u-Ze,c:m-or})}break;case"F":var C=0;for(O=1;O0?(D[u].hpt=G,D[u].hpx=hs(G)):G===0&&(D[u].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+X)}C<1&&(K=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+X)}}return D.length>0&&(re["!rows"]=D),U.length>0&&(re["!cols"]=U),p&&p.sheetRows&&(F=F.slice(0,p.sheetRows)),[F,re]}function s(h,p){var _=i(h,p),u=_[0],m=_[1],A=It(u,p);return Ke(m).forEach(function(O){A[O]=m[O]}),A}function f(h,p){return ut(s(h,p),p)}function o(h,p,_,u){var m="C;Y"+(_+1)+";X"+(u+1)+";K";switch(h.t){case"n":m+=h.v||0,h.f&&!h.F&&(m+=";E"+R0(h.f,{r:_,c:u}));break;case"b":m+=h.v?"TRUE":"FALSE";break;case"e":m+=h.w||h.v;break;case"d":m+='"'+(h.w||h.v)+'"';break;case"s":m+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function l(h,p){p.forEach(function(_,u){var m="F;W"+(u+1)+" "+(u+1)+" ";_.hidden?m+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=Fn(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=yn(_.wpx)),typeof _.wch=="number"&&(m+=Math.round(_.wch))),m.charAt(m.length-1)!=" "&&h.push(m)})}function c(h,p){p.forEach(function(_,u){var m="F;";_.hidden?m+="M0;":_.hpt?m+="M"+20*_.hpt+";":_.hpx&&(m+="M"+20*Cn(_.hpx)+";"),m.length>2&&h.push(m+"R"+(u+1))})}function x(h,p){var _=["ID;PWXL;N;E"],u=[],m=Oe(h["!ref"]),A,O=Array.isArray(h),F=`\r +`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),h["!cols"]&&l(_,h["!cols"]),h["!rows"]&&c(_,h["!rows"]),_.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var M=m.s.r;M<=m.e.r;++M)for(var K=m.s.c;K<=m.e.c;++K){var re=Ae({r:M,c:K});A=O?(h[M]||[])[K]:h[re],!(!A||A.v==null&&(!A.f||A.F))&&u.push(o(A,h,M,K))}return _.join(F)+F+u.join(F)+F+"E"+F}return{to_workbook:f,to_sheet:s,from_sheet:x}}(),jc=function(){function e(a,s){switch(s.type){case"base64":return t(Ur(a),s);case"binary":return t(a,s);case"buffer":return t(me&&Buffer.isBuffer(a)?a.toString("binary"):qt(a),s);case"array":return t(Gn(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var f=a.split(` +`),o=-1,l=-1,c=0,x=[];c!==f.length;++c){if(f[c].trim()==="BOT"){x[++o]=[],l=0;continue}if(!(o<0)){var h=f[c].trim().split(","),p=h[0],_=h[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c=0&&_[u].length===0;)--u;for(var m=10,A=0,O=0;O<=u;++O)A=_[O].indexOf(" "),A==-1?A=_[O].length:A++,m=Math.max(m,A);for(O=0;O<=u;++O){d[O]=[];var F=0;for(e(_[O].slice(0,m).trim(),d,O,F,h),F=1;F<=(_[O].length-m)/10+1;++F)e(_[O].slice(m+(F-1)*10,m+F*10).trim(),d,O,F,h)}return h.sheetRows&&(d=d.slice(0,h.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var x={},h=!1,d=0,_=0;d0&&G(),_["!ref"]=Me(u),_}function s(c,x){return!(x&&x.PRN)||x.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,x):It(t(c,x),x)}function f(c,x){var h="",d=x.type=="string"?[0,0,0,0]:l2(c,x);switch(x.type){case"base64":h=Ur(c);break;case"binary":h=c;break;case"buffer":x.codepage==65001?h=c.toString("utf8"):x.codepage&&typeof nt<"u"?h=nt.utils.decode(x.codepage,c):h=me&&Buffer.isBuffer(c)?c.toString("binary"):qt(c);break;case"array":h=Gn(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+x.type)}return d[0]==239&&d[1]==187&&d[2]==191?h=Ut(h.slice(3)):x.type!="string"&&x.type!="buffer"&&x.codepage==65001?h=Ut(h):x.type=="binary"&&typeof nt<"u"&&x.codepage&&(h=nt.utils.decode(x.codepage,nt.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?ls.to_sheet(x.type=="string"?h:Ut(h),x):s(h,x)}function o(c,x){return ut(f(c,x),x)}function l(c){for(var x=[],h=Ce(c["!ref"]),d,_=Array.isArray(c),u=h.s.r;u<=h.e.r;++u){for(var m=[],A=h.s.c;A<=h.e.c;++A){var O=we({r:u,c:A});if(d=_?(c[u]||[])[A]:c[O],!d||d.v==null){m.push(" ");continue}for(var F=(d.w||(Wr(d),d.w)||"").slice(0,10);F.length<10;)F+=" ";m.push(F+(A===0?" ":""))}x.push(m.join(""))}return x.join(` -`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),ki=function(){function e(S,P,C){if(S){cr(S,S.l||0);for(var y=C.Enum||dr;S.l=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)C.Enum=dr,e(S,function(ae,pr,kr){switch(kr){case 0:C.vers=ae,ae>=4096&&(C.qpro=!0);break;case 6:pe=ae;break;case 204:ae&&(fe=ae);break;case 222:fe=ae;break;case 15:case 51:C.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:kr==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=C.dateNF||ke[14],C.cellDates&&(ae[1].t="d",ae[1].v=Fa(ae[1].v))),C.qpro&&ae[3]>le&&(y["!ref"]=Me(pe),se[H]=y,Q.push(H),y=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},le=ae[3],H=fe||"Sheet"+(le+1),fe="");var Zr=C.dense?(y[ae[0].r]||[])[ae[0].c]:y[we(ae[0])];if(Zr){Zr.t=ae[1].t,Zr.v=ae[1].v,ae[1].z!=null&&(Zr.z=ae[1].z),ae[1].f!=null&&(Zr.f=ae[1].f);break}C.dense?(y[ae[0].r]||(y[ae[0].r]=[]),y[ae[0].r][ae[0].c]=ae[1]):y[we(ae[0])]=ae[1];break}},C);else if(S[2]==26||S[2]==14)C.Enum=lr,S[2]==14&&(C.qpro=!0,S.l=0),e(S,function(ae,pr,kr){switch(kr){case 204:H=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>le&&(y["!ref"]=Me(pe),se[H]=y,Q.push(H),y=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},le=ae[3],H="Sheet"+(le+1)),Ze>0&&ae[0].r>=Ze)break;C.dense?(y[ae[0].r]||(y[ae[0].r]=[]),y[ae[0].r][ae[0].c]=ae[1]):y[we(ae[0])]=ae[1],pe.e.c=0&&Xt(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var y=ar(),H=Ce(S["!ref"]),fe=Array.isArray(S),le=[];q(y,0,a(1030)),q(y,6,o(H));for(var se=Math.min(H.e.r,8191),Q=H.s.r;Q<=se;++Q)for(var Ae=ze(Q),pe=H.s.c;pe<=H.e.c;++pe){Q===H.s.r&&(le[pe]=je(pe));var Ze=le[pe]+Ae,ge=fe?(S[Q]||[])[pe]:S[Ze];if(!(!ge||ge.t=="z"))if(ge.t=="n")(ge.v|0)==ge.v&&ge.v>=-32768&&ge.v<=32767?q(y,13,d(Q,pe,ge.v)):q(y,14,u(Q,pe,ge.v));else{var Nr=Wr(ge);q(y,15,x(Q,pe,Nr.slice(0,239)))}}return q(y,1),y.end()}function i(S,P){var C=P||{};if(+C.codepage>=0&&Xt(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var y=ar();q(y,0,s(S));for(var H=0,fe=0;H8191&&(C=8191),P.write_shift(2,C),P.write_shift(1,H),P.write_shift(1,y),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}function f(S,P,C){var y={s:{c:0,r:0},e:{c:0,r:0}};return P==8&&C.qpro?(y.s.c=S.read_shift(1),S.l++,y.s.r=S.read_shift(2),y.e.c=S.read_shift(1),S.l++,y.e.r=S.read_shift(2),y):(y.s.c=S.read_shift(2),y.s.r=S.read_shift(2),P==12&&C.qpro&&(S.l+=2),y.e.c=S.read_shift(2),y.e.r=S.read_shift(2),P==12&&C.qpro&&(S.l+=2),y.s.c==65535&&(y.s.c=y.e.c=y.s.r=y.e.r=0),y)}function o(S){var P=B(8);return P.write_shift(2,S.s.c),P.write_shift(2,S.s.r),P.write_shift(2,S.e.c),P.write_shift(2,S.e.r),P}function l(S,P,C){var y=[{c:0,r:0},{t:"n",v:0},0,0];return C.qpro&&C.vers!=20768?(y[0].c=S.read_shift(1),y[3]=S.read_shift(1),y[0].r=S.read_shift(2),S.l+=2):(y[2]=S.read_shift(1),y[0].c=S.read_shift(2),y[0].r=S.read_shift(2)),y}function c(S,P,C){var y=S.l+P,H=l(S,P,C);if(H[1].t="s",C.vers==20768){S.l++;var fe=S.read_shift(1);return H[1].v=S.read_shift(fe,"utf8"),H}return C.qpro&&S.l++,H[1].v=S.read_shift(y-S.l,"cstr"),H}function x(S,P,C){var y=B(7+C.length);y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(1,39);for(var H=0;H=128?95:fe)}return y.write_shift(1,0),y}function h(S,P,C){var y=l(S,P,C);return y[1].v=S.read_shift(2,"i"),y}function d(S,P,C){var y=B(7);return y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(2,C,"i"),y}function _(S,P,C){var y=l(S,P,C);return y[1].v=S.read_shift(8,"f"),y}function u(S,P,C){var y=B(13);return y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(8,C,"f"),y}function m(S,P,C){var y=S.l+P,H=l(S,P,C);if(H[1].v=S.read_shift(8,"f"),C.qpro)S.l=y;else{var fe=S.read_shift(2);M(S.slice(S.l,S.l+fe),H),S.l+=fe}return H}function A(S,P,C){var y=P&32768;return P&=-32769,P=(y?S:0)+(P>=8192?P-16384:P),(y?"":"$")+(C?je(P):ze(P))}var O={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},F=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(S,P){cr(S,0);for(var C=[],y=0,H="",fe="",le="",se="";S.lC.length){console.error("WK1 bad formula parse 0x"+Q.toString(16)+":|"+C.join("|")+"|");return}var ge=C.slice(-y);C.length-=y,C.push(O[Q][0]+"("+ge.join(",")+")")}else return Q<=7?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=24?console.error("WK1 unsupported op "+Q.toString(16)):Q<=30?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=115?console.error("WK1 unsupported function opcode "+Q.toString(16)):console.error("WK1 unrecognized opcode "+Q.toString(16))}}C.length==1?P[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function K(S){var P=[{c:0,r:0},{t:"n",v:0},0];return P[0].r=S.read_shift(2),P[3]=S[S.l++],P[0].c=S[S.l++],P}function ee(S,P){var C=K(S);return C[1].t="s",C[1].v=S.read_shift(P-4,"cstr"),C}function D(S,P,C,y){var H=B(6+y.length);H.write_shift(2,S),H.write_shift(1,C),H.write_shift(1,P),H.write_shift(1,39);for(var fe=0;fe=128?95:le)}return H.write_shift(1,0),H}function U(S,P){var C=K(S);C[1].v=S.read_shift(2);var y=C[1].v>>1;if(C[1].v&1)switch(y&7){case 0:y=(y>>3)*5e3;break;case 1:y=(y>>3)*500;break;case 2:y=(y>>3)/20;break;case 3:y=(y>>3)/200;break;case 4:y=(y>>3)/2e3;break;case 5:y=(y>>3)/2e4;break;case 6:y=(y>>3)/16;break;case 7:y=(y>>3)/64;break}return C[1].v=y,C}function L(S,P){var C=K(S),y=S.read_shift(4),H=S.read_shift(4),fe=S.read_shift(2);if(fe==65535)return y===0&&H===3221225472?(C[1].t="e",C[1].v=15):y===0&&H===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var le=fe&32768;return fe=(fe&32767)-16446,C[1].v=(1-le*2)*(H*Math.pow(2,fe+32)+y*Math.pow(2,fe)),C}function G(S,P,C,y){var H=B(14);if(H.write_shift(2,S),H.write_shift(1,C),H.write_shift(1,P),y==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var fe=0,le=0,se=0,Q=0;return y<0&&(fe=1,y=-y),le=Math.log2(y)|0,y/=Math.pow(2,le-31),Q=y>>>0,Q&2147483648||(y/=2,++le,Q=y>>>0),y-=Q,Q|=2147483648,Q>>>=0,y*=Math.pow(2,32),se=y>>>0,H.write_shift(4,se),H.write_shift(4,Q),le+=16383+(fe?32768:0),H.write_shift(2,le),H}function V(S,P){var C=L(S);return S.l+=P-14,C}function X(S,P){var C=K(S),y=S.read_shift(4);return C[1].v=y>>6,C}function re(S,P){var C=K(S),y=S.read_shift(8,"f");return C[1].v=y,C}function oe(S,P){var C=re(S);return S.l+=P-10,C}function ie(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function Fe(S,P){var C=S[S.l++];C>P-1&&(C=P-1);for(var y="";y.length127?95:H}return C[C.l++]=0,C}var dr={0:{n:"BOF",f:ns},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:_},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ie},222:{n:"SHEETNAMELP",f:Fe},65535:{n:""}},lr={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ee},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:U},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ye},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:X},38:{n:"??"},39:{n:"NUMBER27",f:re},40:{n:"FORMULA28",f:oe},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ie},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ue},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}}(),qc=/^\s|\s$|[\t\n\r]/;function os(e,t){if(!t.bookSST)return"";var r=[Be];r[r.length]=J("sst",null,{xmlns:Dt[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="";i.r?a+=i.r:(a+=""),a+="",r[r.length]=a}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Zc(e){return[e.read_shift(4),e.read_shift(4)]}function Qc(e,t){return t||(t=B(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var eu=Vo;function ru(e){var t=ar();W(t,159,Qc(e));for(var r=0;r=0;--a)s=r[a],f=t&16384?1:0,o=t<<1&32767,l=f|o,t=l^s;return t^52811}var nu=function(){function e(i,a){switch(a.type){case"base64":return t(Ur(i),a);case"binary":return t(i,a);case"buffer":return t(me&&Buffer.isBuffer(i)?i.toString("binary"):qt(i),a);case"array":return t(Gn(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var s=a||{},f=s.dense?[]:{},o=i.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,x){Array.isArray(f)&&(f[x]=[]);for(var h=/\\\w+\b/g,d=0,_,u=-1;_=h.exec(c);){switch(_[0]){case"\\cell":var m=c.slice(d,h.lastIndex-_[0].length);if(m[0]==" "&&(m=m.slice(1)),++u,m.length){var A={v:m,t:"s"};Array.isArray(f)?f[x][u]=A:f[we({r:x,c:u})]=A}break}d=h.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=Me(l),f}function r(i,a){return ut(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Ce(i["!ref"]),f,o=Array.isArray(i),l=s.s.r;l<=s.e.r;++l){a.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var x=we({r:l,c});f=o?(i[l]||[])[c]:i[x],!(!f||f.v==null&&(!f.f||f.F))&&(a.push(" "+(f.w||(Wr(f),f.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Ri(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var iu=6,br=iu;function Fn(e){return Math.floor((e+Math.round(128/br)/256)*br)}function yn(e){return Math.floor((e-5)/br*100+.5)/100}function u0(e){return Math.round((e*br+5)/br*256)/256}function N0(e){e.width?(e.wpx=Fn(e.width),e.wch=yn(e.wpx),e.MDW=br):e.wpx?(e.wch=yn(e.wpx),e.width=u0(e.wch),e.MDW=br):typeof e.wch=="number"&&(e.width=u0(e.wch),e.wpx=Fn(e.width),e.MDW=br),e.customWidth&&delete e.customWidth}var au=96,us=au;function Cn(e){return e*96/us}function hs(e){return e*us/96}function su(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=J("numFmt",null,{numFmtId:n,formatCode:Ee(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=J("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function fu(e){var t=[];return t[t.length]=J("cellXfs",null),e.forEach(function(r){t[t.length]=J("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=J("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function xs(e,t){var r=[Be,J("styleSheet",null,{xmlns:Dt[0],"xmlns:vt":Ue.vt})],n;return e.SSF&&(n=su(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=fu(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function lu(e,t){var r=e.read_shift(2),n=Je(e);return[r,n]}function ou(e,t,r){r||(r=B(6+4*t.length)),r.write_shift(2,e),He(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function cu(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=qo(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=Jo(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Je(e),n}function uu(e,t){t||(t=B(25+4*32)),t.write_shift(2,e.sz*20),Zo(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Sn(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),He(e.name,t),t.length>t.l?t.slice(0,t.l):t}var hu=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],t0,xu=Dr;function Li(e,t){t||(t=B(4*3+8*7+16*1)),t0||(t0=_0(hu));var r=t0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Sn({auto:1},t),Sn({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function du(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function ds(e,t,r){r||(r=B(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Mt(e,t){return t||(t=B(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var pu=Dr;function vu(e,t){return t||(t=B(51)),t.write_shift(1,0),Mt(null,t),Mt(null,t),Mt(null,t),Mt(null,t),Mt(null,t),t.length>t.l?t.slice(0,t.l):t}function mu(e,t){return t||(t=B(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),wn(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function gu(e,t,r){var n=B(2052);return n.write_shift(4,e),wn(t,n),wn(r,n),n.length>n.l?n.slice(0,n.l):n}function _u(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(W(e,615,Ar(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&W(e,44,ou(i,t[i]))}),W(e,616))}}function Tu(e){var t=1;W(e,611,Ar(t)),W(e,43,uu({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),W(e,612)}function Eu(e){var t=2;W(e,603,Ar(t)),W(e,45,Li({patternType:"none"})),W(e,45,Li({patternType:"gray125"})),W(e,604)}function wu(e){var t=1;W(e,613,Ar(t)),W(e,46,vu()),W(e,614)}function Su(e){var t=1;W(e,626,Ar(t)),W(e,47,ds({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),W(e,627)}function Au(e,t){W(e,617,Ar(t.length)),t.forEach(function(r){W(e,47,ds(r,0))}),W(e,618)}function Fu(e){var t=1;W(e,619,Ar(t)),W(e,48,mu({xfId:0,builtinId:0,name:"Normal"})),W(e,620)}function yu(e){var t=0;W(e,505,Ar(t)),W(e,506)}function Cu(e){var t=0;W(e,508,gu(t,"TableStyleMedium9","PivotStyleMedium4")),W(e,509)}function Ou(e,t){var r=ar();return W(r,278),_u(r,e.SSF),Tu(r),Eu(r),wu(r),Su(r),Au(r,t.cellXfs),Fu(r),yu(r),Cu(r),W(r,279),r.end()}function ps(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Be];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Du(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Je(e)}}function Iu(e){var t=B(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),He(e.name,t),t.slice(0,t.l)}function Nu(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function ku(e){var t=B(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r +`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),Jc=function(){function e(c,x,h,p,_){_.raw?x[h][p]=c:c===""||(c==="TRUE"?x[h][p]=!0:c==="FALSE"?x[h][p]=!1:isNaN(Br(c))?isNaN(Kt(c).getDate())?x[h][p]=c:x[h][p]=nr(c):x[h][p]=Br(c))}function t(c,x){var h=x||{},p=[];if(!c||c.length===0)return p;for(var _=c.split(/[\r\n]/),u=_.length-1;u>=0&&_[u].length===0;)--u;for(var m=10,A=0,O=0;O<=u;++O)A=_[O].indexOf(" "),A==-1?A=_[O].length:A++,m=Math.max(m,A);for(O=0;O<=u;++O){p[O]=[];var F=0;for(e(_[O].slice(0,m).trim(),p,O,F,h),F=1;F<=(_[O].length-m)/10+1;++F)e(_[O].slice(m+(F-1)*10,m+F*10).trim(),p,O,F,h)}return h.sheetRows&&(p=p.slice(0,h.sheetRows)),p}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var x={},h=!1,p=0,_=0;p0&&G(),_["!ref"]=Me(u),_}function s(c,x){return!(x&&x.PRN)||x.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,x):It(t(c,x),x)}function f(c,x){var h="",p=x.type=="string"?[0,0,0,0]:l2(c,x);switch(x.type){case"base64":h=Ur(c);break;case"binary":h=c;break;case"buffer":x.codepage==65001?h=c.toString("utf8"):x.codepage&&typeof nt<"u"?h=nt.utils.decode(x.codepage,c):h=me&&Buffer.isBuffer(c)?c.toString("binary"):qt(c);break;case"array":h=Gn(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+x.type)}return p[0]==239&&p[1]==187&&p[2]==191?h=Ut(h.slice(3)):x.type!="string"&&x.type!="buffer"&&x.codepage==65001?h=Ut(h):x.type=="binary"&&typeof nt<"u"&&x.codepage&&(h=nt.utils.decode(x.codepage,nt.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?ls.to_sheet(x.type=="string"?h:Ut(h),x):s(h,x)}function o(c,x){return ut(f(c,x),x)}function l(c){for(var x=[],h=Oe(c["!ref"]),p,_=Array.isArray(c),u=h.s.r;u<=h.e.r;++u){for(var m=[],A=h.s.c;A<=h.e.c;++A){var O=Ae({r:u,c:A});if(p=_?(c[u]||[])[A]:c[O],!p||p.v==null){m.push(" ");continue}for(var F=(p.w||(Wr(p),p.w)||"").slice(0,10);F.length<10;)F+=" ";m.push(F+(A===0?" ":""))}x.push(m.join(""))}return x.join(` +`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),ki=function(){function e(S,P,C){if(S){ur(S,S.l||0);for(var y=C.Enum||Ze;S.l=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)C.Enum=Ze,e(S,function(ae,pr,kr){switch(kr){case 0:C.vers=ae,ae>=4096&&(C.qpro=!0);break;case 6:pe=ae;break;case 204:ae&&(fe=ae);break;case 222:fe=ae;break;case 15:case 51:C.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:kr==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=C.dateNF||Re[14],C.cellDates&&(ae[1].t="d",ae[1].v=Fa(ae[1].v))),C.qpro&&ae[3]>le&&(y["!ref"]=Me(pe),se[H]=y,Q.push(H),y=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},le=ae[3],H=fe||"Sheet"+(le+1),fe="");var Zr=C.dense?(y[ae[0].r]||[])[ae[0].c]:y[Ae(ae[0])];if(Zr){Zr.t=ae[1].t,Zr.v=ae[1].v,ae[1].z!=null&&(Zr.z=ae[1].z),ae[1].f!=null&&(Zr.f=ae[1].f);break}C.dense?(y[ae[0].r]||(y[ae[0].r]=[]),y[ae[0].r][ae[0].c]=ae[1]):y[Ae(ae[0])]=ae[1];break}},C);else if(S[2]==26||S[2]==14)C.Enum=or,S[2]==14&&(C.qpro=!0,S.l=0),e(S,function(ae,pr,kr){switch(kr){case 204:H=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>le&&(y["!ref"]=Me(pe),se[H]=y,Q.push(H),y=C.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},le=ae[3],H="Sheet"+(le+1)),Qe>0&&ae[0].r>=Qe)break;C.dense?(y[ae[0].r]||(y[ae[0].r]=[]),y[ae[0].r][ae[0].c]=ae[1]):y[Ae(ae[0])]=ae[1],pe.e.c=0&&Xt(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var y=sr(),H=Oe(S["!ref"]),fe=Array.isArray(S),le=[];q(y,0,a(1030)),q(y,6,o(H));for(var se=Math.min(H.e.r,8191),Q=H.s.r;Q<=se;++Q)for(var Ce=ze(Q),pe=H.s.c;pe<=H.e.c;++pe){Q===H.s.r&&(le[pe]=je(pe));var Qe=le[pe]+Ce,_e=fe?(S[Q]||[])[pe]:S[Qe];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?q(y,13,p(Q,pe,_e.v)):q(y,14,u(Q,pe,_e.v));else{var Nr=Wr(_e);q(y,15,x(Q,pe,Nr.slice(0,239)))}}return q(y,1),y.end()}function i(S,P){var C=P||{};if(+C.codepage>=0&&Xt(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var y=sr();q(y,0,s(S));for(var H=0,fe=0;H8191&&(C=8191),P.write_shift(2,C),P.write_shift(1,H),P.write_shift(1,y),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}function f(S,P,C){var y={s:{c:0,r:0},e:{c:0,r:0}};return P==8&&C.qpro?(y.s.c=S.read_shift(1),S.l++,y.s.r=S.read_shift(2),y.e.c=S.read_shift(1),S.l++,y.e.r=S.read_shift(2),y):(y.s.c=S.read_shift(2),y.s.r=S.read_shift(2),P==12&&C.qpro&&(S.l+=2),y.e.c=S.read_shift(2),y.e.r=S.read_shift(2),P==12&&C.qpro&&(S.l+=2),y.s.c==65535&&(y.s.c=y.e.c=y.s.r=y.e.r=0),y)}function o(S){var P=B(8);return P.write_shift(2,S.s.c),P.write_shift(2,S.s.r),P.write_shift(2,S.e.c),P.write_shift(2,S.e.r),P}function l(S,P,C){var y=[{c:0,r:0},{t:"n",v:0},0,0];return C.qpro&&C.vers!=20768?(y[0].c=S.read_shift(1),y[3]=S.read_shift(1),y[0].r=S.read_shift(2),S.l+=2):(y[2]=S.read_shift(1),y[0].c=S.read_shift(2),y[0].r=S.read_shift(2)),y}function c(S,P,C){var y=S.l+P,H=l(S,P,C);if(H[1].t="s",C.vers==20768){S.l++;var fe=S.read_shift(1);return H[1].v=S.read_shift(fe,"utf8"),H}return C.qpro&&S.l++,H[1].v=S.read_shift(y-S.l,"cstr"),H}function x(S,P,C){var y=B(7+C.length);y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(1,39);for(var H=0;H=128?95:fe)}return y.write_shift(1,0),y}function h(S,P,C){var y=l(S,P,C);return y[1].v=S.read_shift(2,"i"),y}function p(S,P,C){var y=B(7);return y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(2,C,"i"),y}function _(S,P,C){var y=l(S,P,C);return y[1].v=S.read_shift(8,"f"),y}function u(S,P,C){var y=B(13);return y.write_shift(1,255),y.write_shift(2,P),y.write_shift(2,S),y.write_shift(8,C,"f"),y}function m(S,P,C){var y=S.l+P,H=l(S,P,C);if(H[1].v=S.read_shift(8,"f"),C.qpro)S.l=y;else{var fe=S.read_shift(2);M(S.slice(S.l,S.l+fe),H),S.l+=fe}return H}function A(S,P,C){var y=P&32768;return P&=-32769,P=(y?S:0)+(P>=8192?P-16384:P),(y?"":"$")+(C?je(P):ze(P))}var O={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},F=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(S,P){ur(S,0);for(var C=[],y=0,H="",fe="",le="",se="";S.lC.length){console.error("WK1 bad formula parse 0x"+Q.toString(16)+":|"+C.join("|")+"|");return}var _e=C.slice(-y);C.length-=y,C.push(O[Q][0]+"("+_e.join(",")+")")}else return Q<=7?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=24?console.error("WK1 unsupported op "+Q.toString(16)):Q<=30?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=115?console.error("WK1 unsupported function opcode "+Q.toString(16)):console.error("WK1 unrecognized opcode "+Q.toString(16))}}C.length==1?P[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function K(S){var P=[{c:0,r:0},{t:"n",v:0},0];return P[0].r=S.read_shift(2),P[3]=S[S.l++],P[0].c=S[S.l++],P}function re(S,P){var C=K(S);return C[1].t="s",C[1].v=S.read_shift(P-4,"cstr"),C}function D(S,P,C,y){var H=B(6+y.length);H.write_shift(2,S),H.write_shift(1,C),H.write_shift(1,P),H.write_shift(1,39);for(var fe=0;fe=128?95:le)}return H.write_shift(1,0),H}function U(S,P){var C=K(S);C[1].v=S.read_shift(2);var y=C[1].v>>1;if(C[1].v&1)switch(y&7){case 0:y=(y>>3)*5e3;break;case 1:y=(y>>3)*500;break;case 2:y=(y>>3)/20;break;case 3:y=(y>>3)/200;break;case 4:y=(y>>3)/2e3;break;case 5:y=(y>>3)/2e4;break;case 6:y=(y>>3)/16;break;case 7:y=(y>>3)/64;break}return C[1].v=y,C}function R(S,P){var C=K(S),y=S.read_shift(4),H=S.read_shift(4),fe=S.read_shift(2);if(fe==65535)return y===0&&H===3221225472?(C[1].t="e",C[1].v=15):y===0&&H===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var le=fe&32768;return fe=(fe&32767)-16446,C[1].v=(1-le*2)*(H*Math.pow(2,fe+32)+y*Math.pow(2,fe)),C}function G(S,P,C,y){var H=B(14);if(H.write_shift(2,S),H.write_shift(1,C),H.write_shift(1,P),y==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var fe=0,le=0,se=0,Q=0;return y<0&&(fe=1,y=-y),le=Math.log2(y)|0,y/=Math.pow(2,le-31),Q=y>>>0,Q&2147483648||(y/=2,++le,Q=y>>>0),y-=Q,Q|=2147483648,Q>>>=0,y*=Math.pow(2,32),se=y>>>0,H.write_shift(4,se),H.write_shift(4,Q),le+=16383+(fe?32768:0),H.write_shift(2,le),H}function V(S,P){var C=R(S);return S.l+=P-14,C}function X(S,P){var C=K(S),y=S.read_shift(4);return C[1].v=y>>6,C}function ee(S,P){var C=K(S),y=S.read_shift(8,"f");return C[1].v=y,C}function ge(S,P){var C=ee(S);return S.l+=P-10,C}function ie(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function ue(S,P){var C=S[S.l++];C>P-1&&(C=P-1);for(var y="";y.length127?95:H}return C[C.l++]=0,C}var Ze={0:{n:"BOF",f:ns},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:_},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ie},222:{n:"SHEETNAMELP",f:ue},65535:{n:""}},or={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:re},23:{n:"NUMBER17",f:R},24:{n:"NUMBER18",f:U},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:xe},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:X},38:{n:"??"},39:{n:"NUMBER27",f:ee},40:{n:"FORMULA28",f:ge},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ie},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Te},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}}(),qc=/^\s|\s$|[\t\n\r]/;function os(e,t){if(!t.bookSST)return"";var r=[Be];r[r.length]=J("sst",null,{xmlns:Dt[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="";i.r?a+=i.r:(a+=""),a+="",r[r.length]=a}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Zc(e){return[e.read_shift(4),e.read_shift(4)]}function Qc(e,t){return t||(t=B(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var eu=Vo;function ru(e){var t=sr();W(t,159,Qc(e));for(var r=0;r=0;--a)s=r[a],f=t&16384?1:0,o=t<<1&32767,l=f|o,t=l^s;return t^52811}var nu=function(){function e(i,a){switch(a.type){case"base64":return t(Ur(i),a);case"binary":return t(i,a);case"buffer":return t(me&&Buffer.isBuffer(i)?i.toString("binary"):qt(i),a);case"array":return t(Gn(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var s=a||{},f=s.dense?[]:{},o=i.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,x){Array.isArray(f)&&(f[x]=[]);for(var h=/\\\w+\b/g,p=0,_,u=-1;_=h.exec(c);){switch(_[0]){case"\\cell":var m=c.slice(p,h.lastIndex-_[0].length);if(m[0]==" "&&(m=m.slice(1)),++u,m.length){var A={v:m,t:"s"};Array.isArray(f)?f[x][u]=A:f[Ae({r:x,c:u})]=A}break}p=h.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=Me(l),f}function r(i,a){return ut(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Oe(i["!ref"]),f,o=Array.isArray(i),l=s.s.r;l<=s.e.r;++l){a.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var x=Ae({r:l,c});f=o?(i[l]||[])[c]:i[x],!(!f||f.v==null&&(!f.f||f.F))&&(a.push(" "+(f.w||(Wr(f),f.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Ri(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var iu=6,br=iu;function Fn(e){return Math.floor((e+Math.round(128/br)/256)*br)}function yn(e){return Math.floor((e-5)/br*100+.5)/100}function u0(e){return Math.round((e*br+5)/br*256)/256}function N0(e){e.width?(e.wpx=Fn(e.width),e.wch=yn(e.wpx),e.MDW=br):e.wpx?(e.wch=yn(e.wpx),e.width=u0(e.wch),e.MDW=br):typeof e.wch=="number"&&(e.width=u0(e.wch),e.wpx=Fn(e.width),e.MDW=br),e.customWidth&&delete e.customWidth}var au=96,us=au;function Cn(e){return e*96/us}function hs(e){return e*us/96}function su(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=J("numFmt",null,{numFmtId:n,formatCode:Se(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=J("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function fu(e){var t=[];return t[t.length]=J("cellXfs",null),e.forEach(function(r){t[t.length]=J("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=J("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function xs(e,t){var r=[Be,J("styleSheet",null,{xmlns:Dt[0],"xmlns:vt":Ue.vt})],n;return e.SSF&&(n=su(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=fu(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function lu(e,t){var r=e.read_shift(2),n=Je(e);return[r,n]}function ou(e,t,r){r||(r=B(6+4*t.length)),r.write_shift(2,e),He(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function cu(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=qo(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=Jo(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Je(e),n}function uu(e,t){t||(t=B(25+4*32)),t.write_shift(2,e.sz*20),Zo(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Sn(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),He(e.name,t),t.length>t.l?t.slice(0,t.l):t}var hu=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],t0,xu=Dr;function Li(e,t){t||(t=B(4*3+8*7+16*1)),t0||(t0=_0(hu));var r=t0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Sn({auto:1},t),Sn({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function du(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function ds(e,t,r){r||(r=B(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Mt(e,t){return t||(t=B(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var pu=Dr;function vu(e,t){return t||(t=B(51)),t.write_shift(1,0),Mt(null,t),Mt(null,t),Mt(null,t),Mt(null,t),Mt(null,t),t.length>t.l?t.slice(0,t.l):t}function mu(e,t){return t||(t=B(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),wn(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function gu(e,t,r){var n=B(2052);return n.write_shift(4,e),wn(t,n),wn(r,n),n.length>n.l?n.slice(0,n.l):n}function _u(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(W(e,615,Ar(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&W(e,44,ou(i,t[i]))}),W(e,616))}}function Tu(e){var t=1;W(e,611,Ar(t)),W(e,43,uu({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),W(e,612)}function Eu(e){var t=2;W(e,603,Ar(t)),W(e,45,Li({patternType:"none"})),W(e,45,Li({patternType:"gray125"})),W(e,604)}function wu(e){var t=1;W(e,613,Ar(t)),W(e,46,vu()),W(e,614)}function Su(e){var t=1;W(e,626,Ar(t)),W(e,47,ds({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),W(e,627)}function Au(e,t){W(e,617,Ar(t.length)),t.forEach(function(r){W(e,47,ds(r,0))}),W(e,618)}function Fu(e){var t=1;W(e,619,Ar(t)),W(e,48,mu({xfId:0,builtinId:0,name:"Normal"})),W(e,620)}function yu(e){var t=0;W(e,505,Ar(t)),W(e,506)}function Cu(e){var t=0;W(e,508,gu(t,"TableStyleMedium9","PivotStyleMedium4")),W(e,509)}function Ou(e,t){var r=sr();return W(r,278),_u(r,e.SSF),Tu(r),Eu(r),wu(r),Su(r),Au(r,t.cellXfs),Fu(r),yu(r),Cu(r),W(r,279),r.end()}function ps(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Be];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Du(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Je(e)}}function Iu(e){var t=B(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),He(e.name,t),t.slice(0,t.l)}function Nu(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function ku(e){var t=B(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r @@ -60,17 +60,17 @@ import{b as qe,i as ce,t as de,d as In,e as Pe,c as Y,s as rr,F as at,f as h0,g -`),e.join("")}function Bu(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=we(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Et=1024;function ms(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[J("xml",null,{"xmlns:v":ur.v,"xmlns:o":ur.o,"xmlns:x":ur.x,"xmlns:mv":ur.mv}).replace(/\/>/,">"),J("o:shapelayout",J("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),J("v:shapetype",[J("v:stroke",null,{joinstyle:"miter"}),J("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Et",l,J("v:shadow",null,c),J("v:path",null,{"o:connecttype":"none"}),'
','',"","",Xe("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Xe("x:AutoFill","False"),Xe("x:Row",String(s.r)),Xe("x:Column",String(s.c)),a[1].hidden?"":"","",""])}),i.push(""),i.join("")}function gs(e){var t=[Be,J("comments",null,{xmlns:Dt[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(i){var a=Ee(i.a);r.indexOf(a)==-1&&(r.push(a),t.push(""+a+"")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("tc="+i.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(i=r.indexOf(Ee(o.a))),a.push(o.t||"")}),t.push(''),a.length<=1)t.push(Xe("t",Ee(a[0]||"")));else{for(var s=`Comment: +`),e.join("")}function Bu(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=Ae(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Et=1024;function ms(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[J("xml",null,{"xmlns:v":hr.v,"xmlns:o":hr.o,"xmlns:x":hr.x,"xmlns:mv":hr.mv}).replace(/\/>/,">"),J("o:shapelayout",J("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),J("v:shapetype",[J("v:stroke",null,{joinstyle:"miter"}),J("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Et",l,J("v:shadow",null,c),J("v:path",null,{"o:connecttype":"none"}),'
','',"","",Xe("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Xe("x:AutoFill","False"),Xe("x:Row",String(s.r)),Xe("x:Column",String(s.c)),a[1].hidden?"":"","",""])}),i.push(""),i.join("")}function gs(e){var t=[Be,J("comments",null,{xmlns:Dt[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(i){var a=Se(i.a);r.indexOf(a)==-1&&(r.push(a),t.push(""+a+"")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("tc="+i.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(i=r.indexOf(Se(o.a))),a.push(o.t||"")}),t.push(''),a.length<=1)t.push(Xe("t",Se(a[0]||"")));else{for(var s=`Comment: `+a[0]+` `,f=1;f")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function bu(e,t,r){var n=[Be,J("ThreadedComments",null,{xmlns:Ue.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[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:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?a=o.id:o.parentId=a,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(J("threadedComment",Xe("text",s.t||""),o))})}),n.push(""),n.join("")}function Uu(e){var t=[Be,J("personList",null,{xmlns:Ue.TCMNT,"xmlns:x":Dt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(J("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function Wu(e){var t={};t.iauthor=e.read_shift(4);var r=pt(e);return t.rfx=r.s,t.ref=we(r.s),e.l+=16,t}function Hu(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),Nt(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 $u=Je;function Gu(e){return He(e.slice(0,54))}function Vu(e){var t=ar(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),W(t,632,Gu(i.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:We(n[0]),e:We(n[0])};W(t,635,Hu([a,i])),i.t&&i.t.length>0&&W(t,637,zo(i)),W(t,636),delete i.iauthor})}),W(t,634),W(t,629),t.end()}function Xu(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Se.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var _s=["xlsb","xlsm","xlam","biff8","xla"],zu=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,i,a,s){var f=!1,o=!1;a.length==0?o=!0:a.charAt(0)=="["&&(o=!0,a=a.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=a.length>0?parseInt(a,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,i+(f?"":"$")+je(c)+(o?"":"$")+ze(l)}return function(i,a){return t=a,i.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,R0=function(){return function(t,r){return t.replace(k0,function(n,i,a,s,f,o){var l=y0(s)-(a?0:r.c),c=F0(o)-(f?0:r.r),x=c==0?"":f?c+1:"["+c+"]",h=l==0?"":a?l+1:"["+l+"]";return i+"R"+x+"C"+h})}}();function Ku(e,t){return e.replace(k0,function(r,n,i,a,s,f){return n+(i=="$"?i+a:je(y0(a)+t.c))+(s=="$"?s+f:ze(F0(f)+t.r))})}function Yu(e){return e.length!=1}function Le(e){e.l+=1}function Yr(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Ts(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Es(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=Yr(e,2),f=Yr(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:f[0],cRel:f[1],rRel:f[2]}}}function Es(e){var t=Yr(e,2),r=Yr(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function ju(e,t,r){if(r.biff<8)return Es(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=Yr(e,2),s=Yr(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function ws(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Ju(e);var n=e.read_shift(r&&r.biff==12?4:2),i=Yr(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Ju(e){var t=Yr(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function qu(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 Zu(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return Qu(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=(a&32768)>>15;if(a&=16383,f==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:f}}function Qu(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function eh(e,t,r){var n=(e[e.l++]&96)>>5,i=Ts(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function rh(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=Ts(e,a,r);return[n,i,s]}function th(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function nh(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function ih(e,t,r){var n=(e[e.l++]&96)>>5,i=ju(e,t-1,r);return[n,i]}function ah(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Pi(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function sh(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function fh(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function lh(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function oh(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function ch(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Ss(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function uh(e){return e.read_shift(2),Ss(e)}function hh(e){return e.read_shift(2),Ss(e)}function xh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=ws(e,0,r);return[n,i]}function dh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=Zu(e,0,r);return[n,i]}function ph(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=ws(e,0,r);return[n,i,a]}function vh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[v1[i],ys[i],n]}function mh(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:gh(e);return[i,(a[0]===0?ys:p1)[a[1]]]}function gh(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function _h(e,t,r){e.l+=r&&r.biff==2?3:4}function Th(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Eh(e){return e.l++,en[e.read_shift(1)]}function wh(e){return e.l++,e.read_shift(2)}function Sh(e){return e.l++,e.read_shift(1)!==0}function Ah(e){return e.l++,kt(e)}function Fh(e,t,r){return e.l++,as(e,t-1,r)}function yh(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=pc(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=en[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=kt(e);break;case 2:r[1]=_c(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ch(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?pt:wc)(e));return i}function Oh(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var f=0;f!=i;++f)s[a][f]=yh(e,r.biff);return s}function Dh(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function Ih(e,t,r){if(r.biff==5)return Nh(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Nh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function kh(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Rh(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Lh(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function Ph(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var Mh=Dr,Bh=Dr,bh=Dr;function rn(e,t,r){return e.l+=2,[qu(e)]}function L0(e){return e.l+=6,[]}var Uh=rn,Wh=L0,Hh=L0,$h=rn;function As(e){return e.l+=2,[ns(e),e.read_shift(2)&1]}var Gh=rn,Vh=As,Xh=L0,zh=rn,Kh=rn,Yh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function jh(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=Yh[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:i,C:a}}function Jh(e){return e.l+=2,[e.read_shift(4)]}function qh(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Zh(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Qh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function e1(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function r1(e){return e.l+=4,[0,0]}var Mi={1:{n:"PtgExp",f:Th},2:{n:"PtgTbl",f:bh},3:{n:"PtgAdd",f:Le},4:{n:"PtgSub",f:Le},5:{n:"PtgMul",f:Le},6:{n:"PtgDiv",f:Le},7:{n:"PtgPower",f:Le},8:{n:"PtgConcat",f:Le},9:{n:"PtgLt",f:Le},10:{n:"PtgLe",f:Le},11:{n:"PtgEq",f:Le},12:{n:"PtgGe",f:Le},13:{n:"PtgGt",f:Le},14:{n:"PtgNe",f:Le},15:{n:"PtgIsect",f:Le},16:{n:"PtgUnion",f:Le},17:{n:"PtgRange",f:Le},18:{n:"PtgUplus",f:Le},19:{n:"PtgUminus",f:Le},20:{n:"PtgPercent",f:Le},21:{n:"PtgParen",f:Le},22:{n:"PtgMissArg",f:Le},23:{n:"PtgStr",f:Fh},26:{n:"PtgSheet",f:qh},27:{n:"PtgEndSheet",f:Zh},28:{n:"PtgErr",f:Eh},29:{n:"PtgBool",f:Sh},30:{n:"PtgInt",f:wh},31:{n:"PtgNum",f:Ah},32:{n:"PtgArray",f:ah},33:{n:"PtgFunc",f:vh},34:{n:"PtgFuncVar",f:mh},35:{n:"PtgName",f:Dh},36:{n:"PtgRef",f:xh},37:{n:"PtgArea",f:eh},38:{n:"PtgMemArea",f:kh},39:{n:"PtgMemErr",f:Mh},40:{n:"PtgMemNoMem",f:Bh},41:{n:"PtgMemFunc",f:Rh},42:{n:"PtgRefErr",f:Lh},43:{n:"PtgAreaErr",f:th},44:{n:"PtgRefN",f:dh},45:{n:"PtgAreaN",f:ih},46:{n:"PtgMemAreaN",f:Qh},47:{n:"PtgMemNoMemN",f:e1},57:{n:"PtgNameX",f:Ih},58:{n:"PtgRef3d",f:ph},59:{n:"PtgArea3d",f:rh},60:{n:"PtgRefErr3d",f:Ph},61:{n:"PtgAreaErr3d",f:nh},255:{}},t1={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},n1={1:{n:"PtgElfLel",f:As},2:{n:"PtgElfRw",f:zh},3:{n:"PtgElfCol",f:Uh},6:{n:"PtgElfRwV",f:Kh},7:{n:"PtgElfColV",f:$h},10:{n:"PtgElfRadical",f:Gh},11:{n:"PtgElfRadicalS",f:Xh},13:{n:"PtgElfColS",f:Wh},15:{n:"PtgElfColSV",f:Hh},16:{n:"PtgElfRadicalLel",f:Vh},25:{n:"PtgList",f:jh},29:{n:"PtgSxName",f:Jh},255:{}},i1={0:{n:"PtgAttrNoop",f:r1},1:{n:"PtgAttrSemi",f:ch},2:{n:"PtgAttrIf",f:lh},4:{n:"PtgAttrChoose",f:sh},8:{n:"PtgAttrGoto",f:fh},16:{n:"PtgAttrSum",f:_h},32:{n:"PtgAttrBaxcel",f:Pi},33:{n:"PtgAttrBaxcel",f:Pi},64:{n:"PtgAttrSpace",f:uh},65:{n:"PtgAttrSpaceSemi",f:hh},128:{n:"PtgAttrIfError",f:oh},255:{}};function a1(e,t,r,n){if(n.biff<8)return Dr(e,t);for(var i=e.l+t,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Oh(e,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=Ch(e,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=i-e.l,t!==0&&a.push(Dr(e,t)),a}function s1(e,t,r){for(var n=e.l+t,i,a,s=[];n!=e.l;)t=n-e.l,a=e[e.l],i=Mi[a]||Mi[t1[a]],(a===24||a===25)&&(i=(a===24?n1:i1)[e[e.l+1]]),!i||!i.f?Dr(e,t):s.push([i.n,i.f(e,t,r)]);return s}function f1(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function o1(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Fs(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Bi(e,t,r){var n=Fs(e,t,r);return n=="#REF"?n:o1(n,r)}function Ct(e,t,r,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],o,l,c,x=0,h=0,d,_="";if(!e[0]||!e[0][0])return"";for(var u=-1,m="",A=0,O=e[0].length;A=0){switch(e[0][u][1][0]){case 0:m=Ne(" ",e[0][u][1][1]);break;case 1:m=Ne("\r",e[0][u][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}l=l+m,u=-1}f.push(l+l1[F[0]]+o);break;case"PtgIsect":o=f.pop(),l=f.pop(),f.push(l+" "+o);break;case"PtgUnion":o=f.pop(),l=f.pop(),f.push(l+","+o);break;case"PtgRange":o=f.pop(),l=f.pop(),f.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Ht(F[1][1],s,i),f.push($t(c,a));break;case"PtgRefN":c=r?Ht(F[1][1],r,i):F[1][1],f.push($t(c,a));break;case"PtgRef3d":x=F[1][1],c=Ht(F[1][2],s,i),_=Bi(n,x,i),f.push(_+"!"+$t(c,a));break;case"PtgFunc":case"PtgFuncVar":var M=F[1][0],K=F[1][1];M||(M=0),M&=127;var ee=M==0?[]:f.slice(-M);f.length-=M,K==="User"&&(K=ee.shift()),f.push(K+"("+ee.join(",")+")");break;case"PtgBool":f.push(F[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(F[1]);break;case"PtgNum":f.push(String(F[1]));break;case"PtgStr":f.push('"'+F[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(F[1]);break;case"PtgAreaN":d=Ei(F[1][1],r?{s:r}:s,i),f.push(e0(d,i));break;case"PtgArea":d=Ei(F[1][1],s,i),f.push(e0(d,i));break;case"PtgArea3d":x=F[1][1],d=F[1][2],_=Bi(n,x,i),f.push(_+"!"+e0(d,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=F[1][2];var D=(n.names||[])[h-1]||(n[0]||[])[h],U=D?D.Name:"SH33TJSNAME"+String(h);U&&U.slice(0,6)=="_xlfn."&&!i.xlfn&&(U=U.slice(6)),f.push(U);break;case"PtgNameX":var L=F[1][1];h=F[1][2];var G;if(i.biff<=5)L<0&&(L=-L),n[L]&&(G=n[L][h]);else{var V="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][h]&&n[L][h].itab>0&&(V=n.SheetNames[n[L][h].itab-1]+"!"):V=n.SheetNames[h-1]+"!"),n[L]&&n[L][h])V+=n[L][h].Name;else if(n[0]&&n[0][h])V+=n[0][h].Name;else{var X=(Fs(n,L,i)||"").split(";;");X[h-1]?V=X[h-1]:V+="SH33TJSERRX"}f.push(V);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var re="(",oe=")";if(u>=0){switch(m="",e[0][u][1][0]){case 2:re=Ne(" ",e[0][u][1][1])+re;break;case 3:re=Ne("\r",e[0][u][1][1])+re;break;case 4:oe=Ne(" ",e[0][u][1][1])+oe;break;case 5:oe=Ne("\r",e[0][u][1][1])+oe;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}f.push(re+f.pop()+oe);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:F[1][1],r:F[1][0]};var ie={c:r.c,r:r.r};if(n.sharedf[we(c)]){var Fe=n.sharedf[we(c)];f.push(Ct(Fe,s,ie,n,i))}else{var ue=!1;for(o=0;o!=n.arrayf.length;++o)if(l=n.arrayf[o],!(c.cl[0].e.c)&&!(c.rl[0].e.r)){f.push(Ct(l[1],s,ie,n,i)),ue=!0;break}ue||f.push(F[1])}break;case"PtgArray":f.push("{"+f1(F[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=A;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+F[1].idx+"[#"+F[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(F));default:throw new Error("Unrecognized Formula Token: "+String(F))}var ye=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&u>=0&&ye.indexOf(e[0][A][0])==-1){F=e[0][u];var Re=!0;switch(F[1][0]){case 4:Re=!1;case 0:m=Ne(" ",F[1][1]);break;case 5:Re=!1;case 1:m=Ne("\r",F[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+F[1][0])}f.push((Re?m:"")+f.pop()+(Re?"":m)),u=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return f[0]}function c1(e){if(e==null){var t=B(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return lt(e);return lt(0)}function u1(e,t,r,n,i){var a=ot(t,r,i),s=c1(e.v),f=B(6),o=33;f.write_shift(2,o),f.write_shift(4,0);for(var l=B(e.bf.length),c=0;c0?a1(e,a,i,r):null;return[i,s]}var h1=Vn,Xn=Vn,x1=Vn,d1=Vn,p1={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},ys={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},v1={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function m1(e){var t="of:="+e.replace(k0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function g1(e){return e.replace(/\./,"!")}var Gt=typeof Map<"u";function P0(e,t,r){var n=0,i=e.length;if(r){if(Gt?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=Gt?r.get(t):r[t];n-1?(r.width=u0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Cs(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function qr(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){wa(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function _1(e,t,r){if(e&&e["!ref"]){var n=Ce(e["!ref"]);if(n.e.c',r=0;r!=e.length;++r)t+='';return t+""}function E1(e,t,r,n,i){var a=!1,s={},f=null;if(n.bookType!=="xlsx"&&t.vbaraw){var o=t.SheetNames[r];try{t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}a=!0,s.codeName=Pr(Ee(o))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),f=(f||"")+J("outlinePr",null,l)}!a&&!f||(i[i.length]=J("sheetPr",f,s))}var w1=["objects","scenarios","selectLockedCells","selectUnlockedCells"],S1=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function A1(e){var t={sheet:1};return w1.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),S1.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=cs(e.password).toString(16).toUpperCase()),J("sheetProtection",null,t)}function F1(e){return Cs(e),J("pageMargins",null,e)}function y1(e,t){for(var r=[""],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=J("col",null,zn(i,n)));return r[r.length]="",r.join("")}function C1(e,t,r,n){var i=typeof e.ref=="string"?e.ref:Me(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=xr(i);s.s.r==s.e.r&&(s.e.r=xr(t["!ref"]).e.r,i=Me(s));for(var f=0;f"u"&&(e.z=ke[14]);break;default:i=e.v;break}var f=Xe("v",Ee(i)),o={r:t},l=qr(n.cellXfs,e,n);switch(l!==0&&(o.s=l),e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=Xe("v",""+P0(n.Strings,e.v,n.revStrings)),o.t="s";break}o.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=J("f",Ee(e.f),c)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(o.cm=1),J("c",f,o)}function I1(e,t,r,n){var i=[],a=[],s=Ce(e["!ref"]),f="",o,l="",c=[],x=0,h=0,d=e["!rows"],_=Array.isArray(e),u={r:l},m,A=-1;for(h=s.s.c;h<=s.e.c;++h)c[h]=je(h);for(x=s.s.r;x<=s.e.r;++x){for(a=[],l=ze(x),h=s.s.c;h<=s.e.c;++h){o=c[h]+l;var O=_?(e[x]||[])[h]:e[o];O!==void 0&&(f=D1(O,o,e,t))!=null&&a.push(f)}(a.length>0||d&&d[x])&&(u={r:l},d&&d[x]&&(m=d[x],m.hidden&&(u.hidden=1),A=-1,m.hpx?A=Cn(m.hpx):m.hpt&&(A=m.hpt),A>-1&&(u.ht=A,u.customHeight=1),m.level&&(u.outlineLevel=m.level)),i[i.length]=J("row",a.join(""),u))}if(d)for(;x-1&&(u.ht=A,u.customHeight=1),m.level&&(u.outlineLevel=m.level),i[i.length]=J("row","",u));return i.join("")}function Os(e,t,r,n){var i=[Be,J("worksheet",null,{xmlns:Dt[0],"xmlns:r":Ue.r})],a=r.SheetNames[e],s=0,f="",o=r.Sheets[a];o==null&&(o={});var l=o["!ref"]||"A1",c=Ce(l);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=Me(c)}n||(n={}),o["!comments"]=[];var x=[];E1(o,r,e,t,i),i[i.length]=J("dimension",null,{ref:l}),i[i.length]=O1(o,t,e,r),t.sheetFormat&&(i[i.length]=J("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(i[i.length]=y1(o,o["!cols"])),i[s=i.length]="",o["!links"]=[],o["!ref"]!=null&&(f=I1(o,t),f.length>0&&(i[i.length]=f)),i.length>s+1&&(i[i.length]="",i[s]=i[s].replace("/>",">")),o["!protect"]&&(i[i.length]=A1(o["!protect"])),o["!autofilter"]!=null&&(i[i.length]=C1(o["!autofilter"],o,r,e)),o["!merges"]!=null&&o["!merges"].length>0&&(i[i.length]=T1(o["!merges"]));var h=-1,d,_=-1;return o["!links"].length>0&&(i[i.length]="",o["!links"].forEach(function(u){u[1].Target&&(d={ref:u[0]},u[1].Target.charAt(0)!="#"&&(_=Te(n,-1,Ee(u[1].Target).replace(/#.*$/,""),ve.HLINK),d["r:id"]="rId"+_),(h=u[1].Target.indexOf("#"))>-1&&(d.location=Ee(u[1].Target.slice(h+1))),u[1].Tooltip&&(d.tooltip=Ee(u[1].Tooltip)),i[i.length]=J("hyperlink",null,d))}),i[i.length]=""),delete o["!links"],o["!margins"]!=null&&(i[i.length]=F1(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=Xe("ignoredErrors",J("ignoredError",null,{numberStoredAsText:1,sqref:l}))),x.length>0&&(_=Te(n,-1,"../drawings/drawing"+(e+1)+".xml",ve.DRAW),i[i.length]=J("drawing",null,{"r:id":"rId"+_}),o["!drawing"]=x),o["!comments"].length>0&&(_=Te(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ve.VML),i[i.length]=J("legacyDrawing",null,{"r:id":"rId"+_}),o["!legacy"]=_),i.length>1&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function N1(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function k1(e,t,r){var n=B(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=Cn(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,o=n.l;n.l+=4;for(var l={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.cn.l?n.slice(0,n.l):n}function R1(e,t,r,n){var i=k1(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&W(e,0,i)}var L1=pt,P1=Nt;function M1(){}function B1(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Ko(e),r}function b1(e,t,r){r==null&&(r=B(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Sn({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ga(e,r),r.slice(0,r.l)}function U1(e){var t=_r(e);return[t]}function W1(e,t,r){return r==null&&(r=B(8)),ht(t,r)}function H1(e){var t=xt(e);return[t]}function $1(e,t,r){return r==null&&(r=B(4)),dt(t,r)}function G1(e){var t=_r(e),r=e.read_shift(1);return[t,r,"b"]}function V1(e,t,r){return r==null&&(r=B(9)),ht(t,r),r.write_shift(1,e.v?1:0),r}function X1(e){var t=xt(e),r=e.read_shift(1);return[t,r,"b"]}function z1(e,t,r){return r==null&&(r=B(5)),dt(t,r),r.write_shift(1,e.v?1:0),r}function K1(e){var t=_r(e),r=e.read_shift(1);return[t,r,"e"]}function Y1(e,t,r){return r==null&&(r=B(9)),ht(t,r),r.write_shift(1,e.v),r}function j1(e){var t=xt(e),r=e.read_shift(1);return[t,r,"e"]}function J1(e,t,r){return r==null&&(r=B(8)),dt(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function q1(e){var t=_r(e),r=e.read_shift(4);return[t,r,"s"]}function Z1(e,t,r){return r==null&&(r=B(12)),ht(t,r),r.write_shift(4,t.v),r}function Q1(e){var t=xt(e),r=e.read_shift(4);return[t,r,"s"]}function ex(e,t,r){return r==null&&(r=B(8)),dt(t,r),r.write_shift(4,t.v),r}function rx(e){var t=_r(e),r=kt(e);return[t,r,"n"]}function tx(e,t,r){return r==null&&(r=B(16)),ht(t,r),lt(e.v,r),r}function nx(e){var t=xt(e),r=kt(e);return[t,r,"n"]}function ix(e,t,r){return r==null&&(r=B(12)),dt(t,r),lt(e.v,r),r}function ax(e){var t=_r(e),r=Va(e);return[t,r,"n"]}function sx(e,t,r){return r==null&&(r=B(12)),ht(t,r),Xa(e.v,r),r}function fx(e){var t=xt(e),r=Va(e);return[t,r,"n"]}function lx(e,t,r){return r==null&&(r=B(8)),dt(t,r),Xa(e.v,r),r}function ox(e){var t=_r(e),r=C0(e);return[t,r,"is"]}function cx(e){var t=_r(e),r=Je(e);return[t,r,"str"]}function ux(e,t,r){return r==null&&(r=B(12+4*e.v.length)),ht(t,r),He(e.v,r),r.length>r.l?r.slice(0,r.l):r}function hx(e){var t=xt(e),r=Je(e);return[t,r,"str"]}function xx(e,t,r){return r==null&&(r=B(8+4*e.v.length)),dt(t,r),He(e.v,r),r.length>r.l?r.slice(0,r.l):r}function dx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function px(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function vx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=kt(e),s=[i,a,"n"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function mx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=Je(e),s=[i,a,"str"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}var gx=pt,_x=Nt;function Tx(e,t){return t==null&&(t=B(4)),t.write_shift(4,e),t}function Ex(e,t){var r=e.l+t,n=pt(e),i=O0(e),a=Je(e),s=Je(e),f=Je(e);e.l=r;var o={rfx:n,relId:i,loc:a,display:f};return s&&(o.Tooltip=s),o}function wx(e,t){var r=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Nt({s:We(e[0]),e:We(e[0])},r),D0("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return He(i||"",r),He(e[1].Tooltip||"",r),He("",r),r.slice(0,r.l)}function Sx(){}function Ax(e,t,r){var n=e.l+t,i=za(e),a=e.read_shift(1),s=[i];if(s[2]=a,r.cellFormula){var f=h1(e,n-e.l,r);s[1]=f}else e.l=n;return s}function Fx(e,t,r){var n=e.l+t,i=pt(e),a=[i];if(r.cellFormula){var s=d1(e,n-e.l,r);a[1]=s,e.l=n}else e.l=n;return a}function yx(e,t,r){r==null&&(r=B(18));var n=zn(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var Ds=["left","right","top","bottom","header","footer"];function Cx(e){var t={};return Ds.forEach(function(r){t[r]=kt(e)}),t}function Ox(e,t){return t==null&&(t=B(6*8)),Cs(e),Ds.forEach(function(r){lt(e[r],t)}),t}function Dx(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function Ix(e,t,r){r==null&&(r=B(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function Nx(e){var t=B(24);return t.write_shift(4,4),t.write_shift(4,1),Nt(e,t),t}function kx(e,t){return t==null&&(t=B(16*4+2)),t.write_shift(2,e.password?cs(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function Rx(){}function Lx(){}function Px(e,t,r,n,i,a,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=fr(t),t.z=t.z||ke[14],t.v=sr(tr(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var o={r,c:n};switch(o.s=qr(i.cellXfs,t,i),t.l&&a["!links"].push([we(o),t.l]),t.c&&a["!comments"].push([we(o),t.c]),t.t){case"s":case"str":return i.bookSST?(f=P0(i.Strings,t.v,i.revStrings),o.t="s",o.v=f,s?W(e,18,ex(t,o)):W(e,7,Z1(t,o))):(o.t="str",s?W(e,17,xx(t,o)):W(e,6,ux(t,o))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?W(e,13,lx(t,o)):W(e,2,sx(t,o)):s?W(e,16,ix(t,o)):W(e,5,tx(t,o)),!0;case"b":return o.t="b",s?W(e,15,z1(t,o)):W(e,4,V1(t,o)),!0;case"e":return o.t="e",s?W(e,14,J1(t,o)):W(e,3,Y1(t,o)),!0}return s?W(e,12,$1(t,o)):W(e,1,W1(t,o)),!0}function Mx(e,t,r,n){var i=Ce(t["!ref"]||"A1"),a,s="",f=[];W(e,145);var o=Array.isArray(t),l=i.e.r;t["!rows"]&&(l=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=l;++c){s=ze(c),R1(e,t,i,c);var x=!1;if(c<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){c===i.s.r&&(f[h]=je(h)),a=f[h]+s;var d=o?(t[c]||[])[h]:t[a];if(!d){x=!1;continue}x=Px(e,d,c,h,n,t,x)}}W(e,146)}function Bx(e,t){!t||!t["!merges"]||(W(e,177,Tx(t["!merges"].length)),t["!merges"].forEach(function(r){W(e,176,_x(r))}),W(e,178))}function bx(e,t){!t||!t["!cols"]||(W(e,390),t["!cols"].forEach(function(r,n){r&&W(e,60,yx(n,r))}),W(e,391))}function Ux(e,t){!t||!t["!ref"]||(W(e,648),W(e,649,Nx(Ce(t["!ref"]))),W(e,650))}function Wx(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=Te(r,-1,n[1].Target.replace(/#.*$/,""),ve.HLINK);W(e,494,wx(n,i))}}),delete t["!links"]}function Hx(e,t,r,n){if(t["!comments"].length>0){var i=Te(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ve.VML);W(e,551,D0("rId"+i)),t["!legacy"]=i}}function $x(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:Me(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=xr(a);f.s.r==f.e.r&&(f.e.r=xr(t["!ref"]).e.r,a=Me(f));for(var o=0;o16383||o.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],W(i,129),(r.vbaraw||s["!outline"])&&W(i,147,b1(f,s["!outline"])),W(i,148,P1(o)),Gx(i,s,r.Workbook),bx(i,s),Mx(i,s,e,t),Vx(i,s),$x(i,s,r,e),Bx(i,s),Wx(i,s,n),s["!margins"]&&W(i,476,Ox(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Ux(i,s),Hx(i,s,e,n),W(i,130),i.end()}function zx(e,t){e.l+=10;var r=Je(e);return{name:r}}var Kx=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function Yx(e){return!e.Workbook||!e.Workbook.WBProps?"false":Fo(e.Workbook.WBProps.date1904)?"true":"false"}var jx="][*?/\\".split("");function Is(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return jx.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function Jx(e,t,r){e.forEach(function(n,i){Is(n);for(var a=0;a22)throw new Error("Bad Code Name: Worksheet"+s)}})}function qx(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];Jx(e.SheetNames,t,!!e.vbaraw);for(var r=0;r0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Kx.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=J("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",a=0;a!=e.SheetNames.length;++a){var s={name:Ee(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=J("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var o={name:f.Name};f.Comment&&(o.comment=f.Comment),f.Sheet!=null&&(o.localSheetId=""+f.Sheet),f.Hidden&&(o.hidden="1"),f.Ref&&(t[t.length]=J("definedName",Ee(f.Ref),o))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Zx(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=c0(e),r.name=Je(e),r}function Qx(e,t){return t||(t=B(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),D0(e.strRelID,t),He(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function ed(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Je(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function rd(e,t){t||(t=B(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ga(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function td(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Yo(e),s=x1(e,0,r),f=O0(e);e.l=n;var o={Name:a,Ptg:s};return i<268435455&&(o.Sheet=i),f&&(o.Comment=f),o}function nd(e,t){W(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};W(e,156,Qx(i))}W(e,144)}function id(e,t){t||(t=B(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return He("SheetJS",t),He(vn.version,t),He(vn.version,t),He("7262",t),t.length>t.l?t.slice(0,t.l):t}function ad(e,t){t||(t=B(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function sd(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;ni||(W(e,135),W(e,158,ad(i)),W(e,136))}}function fd(e,t){var r=ar();return W(r,131),W(r,128,id()),W(r,153,rd(e.Workbook&&e.Workbook.WBProps||null)),sd(r,e),nd(r,e),W(r,132),r.end()}function ld(e,t,r){return(t.slice(-4)===".bin"?fd:Ns)(e)}function od(e,t,r,n,i){return(t.slice(-4)===".bin"?Xx:Os)(e,r,n,i)}function cd(e,t,r){return(t.slice(-4)===".bin"?Ou:xs)(e,r)}function ud(e,t,r){return(t.slice(-4)===".bin"?ru:os)(e,r)}function hd(e,t,r){return(t.slice(-4)===".bin"?Vu:gs)(e)}function xd(e){return(e.slice(-4)===".bin"?Mu:vs)()}function dd(e,t){var r=[];return e.Props&&r.push(cc(e.Props,t)),e.Custprops&&r.push(uc(e.Props,e.Custprops)),r.join("")}function pd(){return""}function vd(e,t){var r=[''];return t.cellXfs.forEach(function(n,i){var a=[];a.push(J("NumberFormat",null,{"ss:Format":Ee(ke[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};r.push(J("Style",a.join(""),s))}),J("Styles",r.join(""))}function ks(e){return J("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+R0(e.Ref,{r:0,c:0})})}function md(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n"),e["!margins"].header&&i.push(J("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(J("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(J("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(J("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push(""),e["!protect"]&&(i.push(Xe("ProtectContents","True")),e["!protect"].objects&&i.push(Xe("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Xe("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Xe("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Xe("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":J("WorksheetOptions",i.join(""),{xmlns:ur.x})}function Td(e){return e.map(function(t){var r=Ao(t.t||""),n=J("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return J("Comment",n,{"ss:Author":t.a})}).join("")}function Ed(e,t,r,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+Ee(R0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var o=We(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(o.r==s.r?"":"["+(o.r-s.r)+"]")+"C"+(o.c==s.c?"":"["+(o.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=Ee(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=Ee(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=s.c||l[c].s.r!=s.r||(l[c].e.c>l[c].s.c&&(f["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(f["ss:MergeDown"]=l[c].e.r-l[c].s.r));var x="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":x="Number",h=String(e.v);break;case"b":x="Boolean",h=e.v?"1":"0";break;case"e":x="Error",h=en[e.v];break;case"d":x="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ke[14]);break;case"s":x="String",h=So(e.v||"");break}var d=qr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+d),f["ss:Index"]=s.c+1;var _=e.v!=null?h:"",u=e.t=="z"?"":''+_+"";return(e.c||[]).length>0&&(u+=Td(e.c)),J("Cell",u,f)}function wd(e,t){var r='"}function Sd(e,t,r,n){if(!e["!ref"])return"";var i=Ce(e["!ref"]),a=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(m,A){N0(m);var O=!!m.width,F=zn(A,m),M={"ss:Index":A+1};O&&(M["ss:Width"]=Fn(F.width)),m.hidden&&(M["ss:Hidden"]="1"),f.push(J("Column",null,M))});for(var o=Array.isArray(e),l=i.s.r;l<=i.e.r;++l){for(var c=[wd(l,(e["!rows"]||[])[l])],x=i.s.c;x<=i.e.c;++x){var h=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>x)&&!(a[s].s.r>l)&&!(a[s].e.c"),c.length>2&&f.push(c.join(""))}return f.join("")}function Ad(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],s=a?gd(a,t,e,r):"";return s.length>0&&n.push(""+s+""),s=a?Sd(a,t,e,r):"",s.length>0&&n.push(""+s+"
"),n.push(_d(a,t,e,r)),n.join("")}function Fd(e,t){t||(t={}),e.SSF||(e.SSF=fr(ke)),e.SSF&&(Hn(),Wn(e.SSF),t.revssf=$n(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(dd(e,t)),r.push(pd()),r.push(""),r.push("");for(var n=0;n-1||Qa.indexOf(i[a][0])>-1||i[a][1]!=null&&l.push(i[a]);n.length&&Se.utils.cfb_add(t,"/SummaryInformation",Di(n,n0.SI,o,Ai)),(r.length||l.length)&&Se.utils.cfb_add(t,"/DocumentSummaryInformation",Di(r,n0.DSI,f,Si,l.length?l:null,n0.UDI))}function Cd(e,t){var r=t||{},n=Se.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Se.utils.cfb_add(n,i,Rs(e,r)),r.biff==8&&(e.Props||e.Custprops)&&yd(e,n),r.biff==8&&e.vbaraw&&Xu(n,Se.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Od={0:{f:N1},1:{f:U1},2:{f:ax},3:{f:K1},4:{f:G1},5:{f:rx},6:{f:cx},7:{f:q1},8:{f:mx},9:{f:vx},10:{f:dx},11:{f:px},12:{f:H1},13:{f:fx},14:{f:j1},15:{f:X1},16:{f:nx},17:{f:hx},18:{f:Q1},19:{f:C0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:td},40:{},42:{},43:{f:cu},44:{f:lu},45:{f:xu},46:{f:pu},47:{f:du},48:{},49:{f:Ho},50:{},51:{f:Nu},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:$c},62:{f:ox},63:{f:Bu},64:{f:Rx},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Dr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Dx},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:B1},148:{f:L1,p:16},151:{f:Sx},152:{},153:{f:ed},154:{},155:{},156:{f:Zx},157:{},158:{},159:{T:1,f:Zc},160:{T:-1},161:{T:1,f:pt},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:gx},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Du},336:{T:-1},337:{f:Lu,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:c0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Mc},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Ax},427:{f:Fx},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Cx},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:M1},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Ex},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:c0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:$u},633:{T:1},634:{T:-1},635:{T:1,f:Wu},636:{T:-1},637:{f:Xo},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:zx},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Lx},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function q(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&A0(r)&&e.push(r)}}function Dd(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return q(e,t,r,i);var a=t;if(!isNaN(a)){for(var s=r.parts||[],f=0,o=0,l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l;o=0&&i<65536?q(e,2,zc(r,n,i)):q(e,3,Xc(r,n,i));return;case"b":case"e":q(e,5,Id(r,n,t.v,t.t));return;case"s":case"str":q(e,4,Nd(r,n,(t.v||"").slice(0,255)));return}q(e,1,tn(null,r,n))}function Rd(e,t,r,n){var i=Array.isArray(t),a=Ce(t["!ref"]||"A1"),s,f="",o=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=Me(a)}for(var l=a.s.r;l<=a.e.r;++l){f=ze(l);for(var c=a.s.c;c<=a.e.c;++c){l===a.s.r&&(o[c]=je(c)),s=o[c]+f;var x=i?(t[l]||[])[c]:t[s];x&&kd(e,x,l,c)}}}function Ld(e,t){for(var r=t||{},n=ar(),i=0,a=0;a255||d.e.r>=_){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,_-1)}q(n,2057,I0(r,16,t)),q(n,13,mr(1)),q(n,12,mr(100)),q(n,15,er(!0)),q(n,17,er(!1)),q(n,16,lt(.001)),q(n,95,er(!0)),q(n,42,er(!1)),q(n,43,er(!1)),q(n,130,mr(1)),q(n,128,Rc([0,0])),q(n,131,er(!1)),q(n,132,er(!1)),l&&Wd(n,a["!cols"]),q(n,512,kc(d,t)),l&&(a["!links"]=[]);for(var u=d.s.r;u<=d.e.r;++u){x=ze(u);for(var m=d.s.c;m<=d.e.c;++m){u===d.s.r&&(h[m]=je(m)),c=h[m]+x;var A=o?(a[u]||[])[m]:a[c];A&&(Hd(n,A,u,m,t),l&&A.l&&a["!links"].push([c,A.l]))}}var O=f.CodeName||f.name||i;return l&&q(n,574,Cc((s.Views||[])[0])),l&&(a["!merges"]||[]).length&&q(n,229,bc(a["!merges"])),l&&Ud(n,a),q(n,442,ss(O)),l&&Bd(n,a),q(n,10),n.end()}function Gd(e,t,r){var n=ar(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},f=r.biff==8,o=r.biff==5;if(q(n,2057,I0(e,5,r)),r.bookType=="xla"&&q(n,135),q(n,225,f?mr(1200):null),q(n,193,dc(2)),o&&q(n,191),o&&q(n,192),q(n,226),q(n,92,Sc("SheetJS",r)),q(n,66,mr(f?1200:1252)),f&&q(n,353,mr(0)),f&&q(n,448),q(n,317,Vc(e.SheetNames.length)),f&&e.vbaraw&&q(n,211),f&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";q(n,442,ss(l))}q(n,156,mr(17)),q(n,25,er(!1)),q(n,18,er(!1)),q(n,19,mr(0)),f&&q(n,431,er(!1)),f&&q(n,444,mr(0)),q(n,61,yc()),q(n,64,er(!1)),q(n,141,mr(0)),q(n,34,er(Yx(e)=="true")),q(n,14,er(!0)),f&&q(n,439,er(!1)),q(n,218,mr(0)),Pd(n,e,r),Md(n,e.SSF,r),bd(n,r),f&&q(n,352,er(!1));var c=n.end(),x=ar();f&&q(x,140,Hc()),f&&r.Strings&&Dd(x,252,Fc(r.Strings)),q(x,10);var h=x.end(),d=ar(),_=0,u=0;for(u=0;u255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return Vd(e,t);case 4:case 3:case 2:return Ld(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Xd(e,t,r,n){for(var i=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var f=0,o=0,l=0;lr||i[l].s.c>s)&&!(i[l].e.r1&&(d.rowspan=f),o>1&&(d.colspan=o),n.editable?h=''+h+"":x&&(d["data-t"]=x&&x.t||"z",x.v!=null&&(d["data-v"]=x.v),x.z!=null&&(d["data-z"]=x.z),x.l&&(x.l.Target||"#").charAt(0)!="#"&&(h=''+h+"")),d.id=(n.id||"sjs")+"-"+c,a.push(J("td",h,d))}}var _="";return _+a.join("")+""}var zd='SheetJS Table Export',Kd="";function Yd(e,t,r){var n=[];return n.join("")+""}function Ls(e,t){var r=t||{},n=r.header!=null?r.header:zd,i=r.footer!=null?r.footer:Kd,a=[n],s=xr(e["!ref"]);r.dense=Array.isArray(e),a.push(Yd(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)a.push(Xd(e,s,f,r));return a.push(""+i),a.join("")}function Ps(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?We(n.origin):n.origin;i=s.r,a=s.c}var f=t.getElementsByTagName("tr"),o=Math.min(n.sheetRows||1e7,f.length),l={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=xr(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),i==-1&&(l.e.r=i=c.e.r+1)}var x=[],h=0,d=e["!rows"]||(e["!rows"]=[]),_=0,u=0,m=0,A=0,O=0,F=0;for(e["!cols"]||(e["!cols"]=[]);_1||F>1)&&x.push({s:{r:u+i,c:A+a},e:{r:u+i+(O||1)-1,c:A+a+(F||1)-1}});var G={t:"s",v:D},V=ee.getAttribute("data-t")||ee.getAttribute("t")||"";D!=null&&(D.length==0?G.t=V||"z":n.raw||D.trim().length==0||V=="s"||(D==="TRUE"?G={t:"b",v:!0}:D==="FALSE"?G={t:"b",v:!1}:isNaN(Br(D))?isNaN(Kt(D).getDate())||(G={t:"d",v:tr(D)},n.cellDates||(G={t:"n",v:sr(G.v)}),G.z=n.dateNF||ke[14]):G={t:"n",v:Br(D)})),G.z===void 0&&U!=null&&(G.z=U);var X="",re=ee.getElementsByTagName("A");if(re&&re.length)for(var oe=0;oe=o&&(e["!fullref"]=Me((l.e.r=f.length-_+u-1+i,l))),e}function Ms(e,t){var r=t||{},n=r.dense?[]:{};return Ps(n,e,t)}function jd(e,t){return ut(Ms(e,t),t)}function bi(e){var t="",r=Jd(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Jd(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var qd=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Be+t}}(),Ui=function(){var e=function(a){return Ee(a).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` +`;t.push(Xe("t",Se(s)))}t.push("
")}),t.push("
"),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function bu(e,t,r){var n=[Be,J("ThreadedComments",null,{xmlns:Ue.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[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:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?a=o.id:o.parentId=a,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(J("threadedComment",Xe("text",s.t||""),o))})}),n.push(""),n.join("")}function Uu(e){var t=[Be,J("personList",null,{xmlns:Ue.TCMNT,"xmlns:x":Dt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(J("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function Wu(e){var t={};t.iauthor=e.read_shift(4);var r=pt(e);return t.rfx=r.s,t.ref=Ae(r.s),e.l+=16,t}function Hu(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),Nt(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 $u=Je;function Gu(e){return He(e.slice(0,54))}function Vu(e){var t=sr(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),W(t,632,Gu(i.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:We(n[0]),e:We(n[0])};W(t,635,Hu([a,i])),i.t&&i.t.length>0&&W(t,637,zo(i)),W(t,636),delete i.iauthor})}),W(t,634),W(t,629),t.end()}function Xu(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&ye.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var _s=["xlsb","xlsm","xlam","biff8","xla"],zu=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,i,a,s){var f=!1,o=!1;a.length==0?o=!0:a.charAt(0)=="["&&(o=!0,a=a.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=a.length>0?parseInt(a,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,i+(f?"":"$")+je(c)+(o?"":"$")+ze(l)}return function(i,a){return t=a,i.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,R0=function(){return function(t,r){return t.replace(k0,function(n,i,a,s,f,o){var l=y0(s)-(a?0:r.c),c=F0(o)-(f?0:r.r),x=c==0?"":f?c+1:"["+c+"]",h=l==0?"":a?l+1:"["+l+"]";return i+"R"+x+"C"+h})}}();function Ku(e,t){return e.replace(k0,function(r,n,i,a,s,f){return n+(i=="$"?i+a:je(y0(a)+t.c))+(s=="$"?s+f:ze(F0(f)+t.r))})}function Yu(e){return e.length!=1}function Le(e){e.l+=1}function Yr(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Ts(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Es(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=Yr(e,2),f=Yr(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:f[0],cRel:f[1],rRel:f[2]}}}function Es(e){var t=Yr(e,2),r=Yr(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function ju(e,t,r){if(r.biff<8)return Es(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=Yr(e,2),s=Yr(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function ws(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Ju(e);var n=e.read_shift(r&&r.biff==12?4:2),i=Yr(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Ju(e){var t=Yr(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function qu(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 Zu(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return Qu(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=(a&32768)>>15;if(a&=16383,f==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:f}}function Qu(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function eh(e,t,r){var n=(e[e.l++]&96)>>5,i=Ts(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function rh(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=Ts(e,a,r);return[n,i,s]}function th(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function nh(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function ih(e,t,r){var n=(e[e.l++]&96)>>5,i=ju(e,t-1,r);return[n,i]}function ah(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Pi(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function sh(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function fh(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function lh(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function oh(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function ch(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Ss(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function uh(e){return e.read_shift(2),Ss(e)}function hh(e){return e.read_shift(2),Ss(e)}function xh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=ws(e,0,r);return[n,i]}function dh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=Zu(e,0,r);return[n,i]}function ph(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=ws(e,0,r);return[n,i,a]}function vh(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[v1[i],ys[i],n]}function mh(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:gh(e);return[i,(a[0]===0?ys:p1)[a[1]]]}function gh(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function _h(e,t,r){e.l+=r&&r.biff==2?3:4}function Th(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Eh(e){return e.l++,en[e.read_shift(1)]}function wh(e){return e.l++,e.read_shift(2)}function Sh(e){return e.l++,e.read_shift(1)!==0}function Ah(e){return e.l++,kt(e)}function Fh(e,t,r){return e.l++,as(e,t-1,r)}function yh(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=pc(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=en[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=kt(e);break;case 2:r[1]=_c(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ch(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?pt:wc)(e));return i}function Oh(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var f=0;f!=i;++f)s[a][f]=yh(e,r.biff);return s}function Dh(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function Ih(e,t,r){if(r.biff==5)return Nh(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Nh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function kh(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Rh(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function Lh(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function Ph(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var Mh=Dr,Bh=Dr,bh=Dr;function rn(e,t,r){return e.l+=2,[qu(e)]}function L0(e){return e.l+=6,[]}var Uh=rn,Wh=L0,Hh=L0,$h=rn;function As(e){return e.l+=2,[ns(e),e.read_shift(2)&1]}var Gh=rn,Vh=As,Xh=L0,zh=rn,Kh=rn,Yh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function jh(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=Yh[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:i,C:a}}function Jh(e){return e.l+=2,[e.read_shift(4)]}function qh(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Zh(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Qh(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function e1(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function r1(e){return e.l+=4,[0,0]}var Mi={1:{n:"PtgExp",f:Th},2:{n:"PtgTbl",f:bh},3:{n:"PtgAdd",f:Le},4:{n:"PtgSub",f:Le},5:{n:"PtgMul",f:Le},6:{n:"PtgDiv",f:Le},7:{n:"PtgPower",f:Le},8:{n:"PtgConcat",f:Le},9:{n:"PtgLt",f:Le},10:{n:"PtgLe",f:Le},11:{n:"PtgEq",f:Le},12:{n:"PtgGe",f:Le},13:{n:"PtgGt",f:Le},14:{n:"PtgNe",f:Le},15:{n:"PtgIsect",f:Le},16:{n:"PtgUnion",f:Le},17:{n:"PtgRange",f:Le},18:{n:"PtgUplus",f:Le},19:{n:"PtgUminus",f:Le},20:{n:"PtgPercent",f:Le},21:{n:"PtgParen",f:Le},22:{n:"PtgMissArg",f:Le},23:{n:"PtgStr",f:Fh},26:{n:"PtgSheet",f:qh},27:{n:"PtgEndSheet",f:Zh},28:{n:"PtgErr",f:Eh},29:{n:"PtgBool",f:Sh},30:{n:"PtgInt",f:wh},31:{n:"PtgNum",f:Ah},32:{n:"PtgArray",f:ah},33:{n:"PtgFunc",f:vh},34:{n:"PtgFuncVar",f:mh},35:{n:"PtgName",f:Dh},36:{n:"PtgRef",f:xh},37:{n:"PtgArea",f:eh},38:{n:"PtgMemArea",f:kh},39:{n:"PtgMemErr",f:Mh},40:{n:"PtgMemNoMem",f:Bh},41:{n:"PtgMemFunc",f:Rh},42:{n:"PtgRefErr",f:Lh},43:{n:"PtgAreaErr",f:th},44:{n:"PtgRefN",f:dh},45:{n:"PtgAreaN",f:ih},46:{n:"PtgMemAreaN",f:Qh},47:{n:"PtgMemNoMemN",f:e1},57:{n:"PtgNameX",f:Ih},58:{n:"PtgRef3d",f:ph},59:{n:"PtgArea3d",f:rh},60:{n:"PtgRefErr3d",f:Ph},61:{n:"PtgAreaErr3d",f:nh},255:{}},t1={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},n1={1:{n:"PtgElfLel",f:As},2:{n:"PtgElfRw",f:zh},3:{n:"PtgElfCol",f:Uh},6:{n:"PtgElfRwV",f:Kh},7:{n:"PtgElfColV",f:$h},10:{n:"PtgElfRadical",f:Gh},11:{n:"PtgElfRadicalS",f:Xh},13:{n:"PtgElfColS",f:Wh},15:{n:"PtgElfColSV",f:Hh},16:{n:"PtgElfRadicalLel",f:Vh},25:{n:"PtgList",f:jh},29:{n:"PtgSxName",f:Jh},255:{}},i1={0:{n:"PtgAttrNoop",f:r1},1:{n:"PtgAttrSemi",f:ch},2:{n:"PtgAttrIf",f:lh},4:{n:"PtgAttrChoose",f:sh},8:{n:"PtgAttrGoto",f:fh},16:{n:"PtgAttrSum",f:_h},32:{n:"PtgAttrBaxcel",f:Pi},33:{n:"PtgAttrBaxcel",f:Pi},64:{n:"PtgAttrSpace",f:uh},65:{n:"PtgAttrSpaceSemi",f:hh},128:{n:"PtgAttrIfError",f:oh},255:{}};function a1(e,t,r,n){if(n.biff<8)return Dr(e,t);for(var i=e.l+t,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Oh(e,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=Ch(e,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=i-e.l,t!==0&&a.push(Dr(e,t)),a}function s1(e,t,r){for(var n=e.l+t,i,a,s=[];n!=e.l;)t=n-e.l,a=e[e.l],i=Mi[a]||Mi[t1[a]],(a===24||a===25)&&(i=(a===24?n1:i1)[e[e.l+1]]),!i||!i.f?Dr(e,t):s.push([i.n,i.f(e,t,r)]);return s}function f1(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function o1(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Fs(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Bi(e,t,r){var n=Fs(e,t,r);return n=="#REF"?n:o1(n,r)}function Ct(e,t,r,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],o,l,c,x=0,h=0,p,_="";if(!e[0]||!e[0][0])return"";for(var u=-1,m="",A=0,O=e[0].length;A=0){switch(e[0][u][1][0]){case 0:m=ke(" ",e[0][u][1][1]);break;case 1:m=ke("\r",e[0][u][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}l=l+m,u=-1}f.push(l+l1[F[0]]+o);break;case"PtgIsect":o=f.pop(),l=f.pop(),f.push(l+" "+o);break;case"PtgUnion":o=f.pop(),l=f.pop(),f.push(l+","+o);break;case"PtgRange":o=f.pop(),l=f.pop(),f.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Ht(F[1][1],s,i),f.push($t(c,a));break;case"PtgRefN":c=r?Ht(F[1][1],r,i):F[1][1],f.push($t(c,a));break;case"PtgRef3d":x=F[1][1],c=Ht(F[1][2],s,i),_=Bi(n,x,i),f.push(_+"!"+$t(c,a));break;case"PtgFunc":case"PtgFuncVar":var M=F[1][0],K=F[1][1];M||(M=0),M&=127;var re=M==0?[]:f.slice(-M);f.length-=M,K==="User"&&(K=re.shift()),f.push(K+"("+re.join(",")+")");break;case"PtgBool":f.push(F[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(F[1]);break;case"PtgNum":f.push(String(F[1]));break;case"PtgStr":f.push('"'+F[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(F[1]);break;case"PtgAreaN":p=Ei(F[1][1],r?{s:r}:s,i),f.push(e0(p,i));break;case"PtgArea":p=Ei(F[1][1],s,i),f.push(e0(p,i));break;case"PtgArea3d":x=F[1][1],p=F[1][2],_=Bi(n,x,i),f.push(_+"!"+e0(p,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=F[1][2];var D=(n.names||[])[h-1]||(n[0]||[])[h],U=D?D.Name:"SH33TJSNAME"+String(h);U&&U.slice(0,6)=="_xlfn."&&!i.xlfn&&(U=U.slice(6)),f.push(U);break;case"PtgNameX":var R=F[1][1];h=F[1][2];var G;if(i.biff<=5)R<0&&(R=-R),n[R]&&(G=n[R][h]);else{var V="";if(((n[R]||[])[0]||[])[0]==14849||(((n[R]||[])[0]||[])[0]==1025?n[R][h]&&n[R][h].itab>0&&(V=n.SheetNames[n[R][h].itab-1]+"!"):V=n.SheetNames[h-1]+"!"),n[R]&&n[R][h])V+=n[R][h].Name;else if(n[0]&&n[0][h])V+=n[0][h].Name;else{var X=(Fs(n,R,i)||"").split(";;");X[h-1]?V=X[h-1]:V+="SH33TJSERRX"}f.push(V);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var ee="(",ge=")";if(u>=0){switch(m="",e[0][u][1][0]){case 2:ee=ke(" ",e[0][u][1][1])+ee;break;case 3:ee=ke("\r",e[0][u][1][1])+ee;break;case 4:ge=ke(" ",e[0][u][1][1])+ge;break;case 5:ge=ke("\r",e[0][u][1][1])+ge;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}f.push(ee+f.pop()+ge);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:F[1][1],r:F[1][0]};var ie={c:r.c,r:r.r};if(n.sharedf[Ae(c)]){var ue=n.sharedf[Ae(c)];f.push(Ct(ue,s,ie,n,i))}else{var Te=!1;for(o=0;o!=n.arrayf.length;++o)if(l=n.arrayf[o],!(c.cl[0].e.c)&&!(c.rl[0].e.r)){f.push(Ct(l[1],s,ie,n,i)),Te=!0;break}Te||f.push(F[1])}break;case"PtgArray":f.push("{"+f1(F[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=A;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+F[1].idx+"[#"+F[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(F));default:throw new Error("Unrecognized Formula Token: "+String(F))}var xe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&u>=0&&xe.indexOf(e[0][A][0])==-1){F=e[0][u];var Fe=!0;switch(F[1][0]){case 4:Fe=!1;case 0:m=ke(" ",F[1][1]);break;case 5:Fe=!1;case 1:m=ke("\r",F[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+F[1][0])}f.push((Fe?m:"")+f.pop()+(Fe?"":m)),u=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return f[0]}function c1(e){if(e==null){var t=B(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return lt(e);return lt(0)}function u1(e,t,r,n,i){var a=ot(t,r,i),s=c1(e.v),f=B(6),o=33;f.write_shift(2,o),f.write_shift(4,0);for(var l=B(e.bf.length),c=0;c0?a1(e,a,i,r):null;return[i,s]}var h1=Vn,Xn=Vn,x1=Vn,d1=Vn,p1={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},ys={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},v1={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function m1(e){var t="of:="+e.replace(k0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function g1(e){return e.replace(/\./,"!")}var Gt=typeof Map<"u";function P0(e,t,r){var n=0,i=e.length;if(r){if(Gt?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=Gt?r.get(t):r[t];n-1?(r.width=u0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Cs(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function qr(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){wa(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function _1(e,t,r){if(e&&e["!ref"]){var n=Oe(e["!ref"]);if(n.e.c',r=0;r!=e.length;++r)t+='';return t+""}function E1(e,t,r,n,i){var a=!1,s={},f=null;if(n.bookType!=="xlsx"&&t.vbaraw){var o=t.SheetNames[r];try{t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}a=!0,s.codeName=Pr(Se(o))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),f=(f||"")+J("outlinePr",null,l)}!a&&!f||(i[i.length]=J("sheetPr",f,s))}var w1=["objects","scenarios","selectLockedCells","selectUnlockedCells"],S1=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function A1(e){var t={sheet:1};return w1.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),S1.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=cs(e.password).toString(16).toUpperCase()),J("sheetProtection",null,t)}function F1(e){return Cs(e),J("pageMargins",null,e)}function y1(e,t){for(var r=[""],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=J("col",null,zn(i,n)));return r[r.length]="",r.join("")}function C1(e,t,r,n){var i=typeof e.ref=="string"?e.ref:Me(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=dr(i);s.s.r==s.e.r&&(s.e.r=dr(t["!ref"]).e.r,i=Me(s));for(var f=0;f"u"&&(e.z=Re[14]);break;default:i=e.v;break}var f=Xe("v",Se(i)),o={r:t},l=qr(n.cellXfs,e,n);switch(l!==0&&(o.s=l),e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=Xe("v",""+P0(n.Strings,e.v,n.revStrings)),o.t="s";break}o.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=J("f",Se(e.f),c)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(o.cm=1),J("c",f,o)}function I1(e,t,r,n){var i=[],a=[],s=Oe(e["!ref"]),f="",o,l="",c=[],x=0,h=0,p=e["!rows"],_=Array.isArray(e),u={r:l},m,A=-1;for(h=s.s.c;h<=s.e.c;++h)c[h]=je(h);for(x=s.s.r;x<=s.e.r;++x){for(a=[],l=ze(x),h=s.s.c;h<=s.e.c;++h){o=c[h]+l;var O=_?(e[x]||[])[h]:e[o];O!==void 0&&(f=D1(O,o,e,t))!=null&&a.push(f)}(a.length>0||p&&p[x])&&(u={r:l},p&&p[x]&&(m=p[x],m.hidden&&(u.hidden=1),A=-1,m.hpx?A=Cn(m.hpx):m.hpt&&(A=m.hpt),A>-1&&(u.ht=A,u.customHeight=1),m.level&&(u.outlineLevel=m.level)),i[i.length]=J("row",a.join(""),u))}if(p)for(;x-1&&(u.ht=A,u.customHeight=1),m.level&&(u.outlineLevel=m.level),i[i.length]=J("row","",u));return i.join("")}function Os(e,t,r,n){var i=[Be,J("worksheet",null,{xmlns:Dt[0],"xmlns:r":Ue.r})],a=r.SheetNames[e],s=0,f="",o=r.Sheets[a];o==null&&(o={});var l=o["!ref"]||"A1",c=Oe(l);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=Me(c)}n||(n={}),o["!comments"]=[];var x=[];E1(o,r,e,t,i),i[i.length]=J("dimension",null,{ref:l}),i[i.length]=O1(o,t,e,r),t.sheetFormat&&(i[i.length]=J("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(i[i.length]=y1(o,o["!cols"])),i[s=i.length]="",o["!links"]=[],o["!ref"]!=null&&(f=I1(o,t),f.length>0&&(i[i.length]=f)),i.length>s+1&&(i[i.length]="",i[s]=i[s].replace("/>",">")),o["!protect"]&&(i[i.length]=A1(o["!protect"])),o["!autofilter"]!=null&&(i[i.length]=C1(o["!autofilter"],o,r,e)),o["!merges"]!=null&&o["!merges"].length>0&&(i[i.length]=T1(o["!merges"]));var h=-1,p,_=-1;return o["!links"].length>0&&(i[i.length]="",o["!links"].forEach(function(u){u[1].Target&&(p={ref:u[0]},u[1].Target.charAt(0)!="#"&&(_=we(n,-1,Se(u[1].Target).replace(/#.*$/,""),ve.HLINK),p["r:id"]="rId"+_),(h=u[1].Target.indexOf("#"))>-1&&(p.location=Se(u[1].Target.slice(h+1))),u[1].Tooltip&&(p.tooltip=Se(u[1].Tooltip)),i[i.length]=J("hyperlink",null,p))}),i[i.length]=""),delete o["!links"],o["!margins"]!=null&&(i[i.length]=F1(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=Xe("ignoredErrors",J("ignoredError",null,{numberStoredAsText:1,sqref:l}))),x.length>0&&(_=we(n,-1,"../drawings/drawing"+(e+1)+".xml",ve.DRAW),i[i.length]=J("drawing",null,{"r:id":"rId"+_}),o["!drawing"]=x),o["!comments"].length>0&&(_=we(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ve.VML),i[i.length]=J("legacyDrawing",null,{"r:id":"rId"+_}),o["!legacy"]=_),i.length>1&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function N1(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function k1(e,t,r){var n=B(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=Cn(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,o=n.l;n.l+=4;for(var l={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.cn.l?n.slice(0,n.l):n}function R1(e,t,r,n){var i=k1(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&W(e,0,i)}var L1=pt,P1=Nt;function M1(){}function B1(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Ko(e),r}function b1(e,t,r){r==null&&(r=B(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Sn({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ga(e,r),r.slice(0,r.l)}function U1(e){var t=_r(e);return[t]}function W1(e,t,r){return r==null&&(r=B(8)),ht(t,r)}function H1(e){var t=xt(e);return[t]}function $1(e,t,r){return r==null&&(r=B(4)),dt(t,r)}function G1(e){var t=_r(e),r=e.read_shift(1);return[t,r,"b"]}function V1(e,t,r){return r==null&&(r=B(9)),ht(t,r),r.write_shift(1,e.v?1:0),r}function X1(e){var t=xt(e),r=e.read_shift(1);return[t,r,"b"]}function z1(e,t,r){return r==null&&(r=B(5)),dt(t,r),r.write_shift(1,e.v?1:0),r}function K1(e){var t=_r(e),r=e.read_shift(1);return[t,r,"e"]}function Y1(e,t,r){return r==null&&(r=B(9)),ht(t,r),r.write_shift(1,e.v),r}function j1(e){var t=xt(e),r=e.read_shift(1);return[t,r,"e"]}function J1(e,t,r){return r==null&&(r=B(8)),dt(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function q1(e){var t=_r(e),r=e.read_shift(4);return[t,r,"s"]}function Z1(e,t,r){return r==null&&(r=B(12)),ht(t,r),r.write_shift(4,t.v),r}function Q1(e){var t=xt(e),r=e.read_shift(4);return[t,r,"s"]}function ex(e,t,r){return r==null&&(r=B(8)),dt(t,r),r.write_shift(4,t.v),r}function rx(e){var t=_r(e),r=kt(e);return[t,r,"n"]}function tx(e,t,r){return r==null&&(r=B(16)),ht(t,r),lt(e.v,r),r}function nx(e){var t=xt(e),r=kt(e);return[t,r,"n"]}function ix(e,t,r){return r==null&&(r=B(12)),dt(t,r),lt(e.v,r),r}function ax(e){var t=_r(e),r=Va(e);return[t,r,"n"]}function sx(e,t,r){return r==null&&(r=B(12)),ht(t,r),Xa(e.v,r),r}function fx(e){var t=xt(e),r=Va(e);return[t,r,"n"]}function lx(e,t,r){return r==null&&(r=B(8)),dt(t,r),Xa(e.v,r),r}function ox(e){var t=_r(e),r=C0(e);return[t,r,"is"]}function cx(e){var t=_r(e),r=Je(e);return[t,r,"str"]}function ux(e,t,r){return r==null&&(r=B(12+4*e.v.length)),ht(t,r),He(e.v,r),r.length>r.l?r.slice(0,r.l):r}function hx(e){var t=xt(e),r=Je(e);return[t,r,"str"]}function xx(e,t,r){return r==null&&(r=B(8+4*e.v.length)),dt(t,r),He(e.v,r),r.length>r.l?r.slice(0,r.l):r}function dx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function px(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function vx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=kt(e),s=[i,a,"n"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}function mx(e,t,r){var n=e.l+t,i=_r(e);i.r=r["!row"];var a=Je(e),s=[i,a,"str"];if(r.cellFormula){e.l+=2;var f=Xn(e,n-e.l,r);s[3]=Ct(f,null,i,r.supbooks,r)}else e.l=n;return s}var gx=pt,_x=Nt;function Tx(e,t){return t==null&&(t=B(4)),t.write_shift(4,e),t}function Ex(e,t){var r=e.l+t,n=pt(e),i=O0(e),a=Je(e),s=Je(e),f=Je(e);e.l=r;var o={rfx:n,relId:i,loc:a,display:f};return s&&(o.Tooltip=s),o}function wx(e,t){var r=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Nt({s:We(e[0]),e:We(e[0])},r),D0("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return He(i||"",r),He(e[1].Tooltip||"",r),He("",r),r.slice(0,r.l)}function Sx(){}function Ax(e,t,r){var n=e.l+t,i=za(e),a=e.read_shift(1),s=[i];if(s[2]=a,r.cellFormula){var f=h1(e,n-e.l,r);s[1]=f}else e.l=n;return s}function Fx(e,t,r){var n=e.l+t,i=pt(e),a=[i];if(r.cellFormula){var s=d1(e,n-e.l,r);a[1]=s,e.l=n}else e.l=n;return a}function yx(e,t,r){r==null&&(r=B(18));var n=zn(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var Ds=["left","right","top","bottom","header","footer"];function Cx(e){var t={};return Ds.forEach(function(r){t[r]=kt(e)}),t}function Ox(e,t){return t==null&&(t=B(6*8)),Cs(e),Ds.forEach(function(r){lt(e[r],t)}),t}function Dx(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function Ix(e,t,r){r==null&&(r=B(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function Nx(e){var t=B(24);return t.write_shift(4,4),t.write_shift(4,1),Nt(e,t),t}function kx(e,t){return t==null&&(t=B(16*4+2)),t.write_shift(2,e.password?cs(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function Rx(){}function Lx(){}function Px(e,t,r,n,i,a,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=lr(t),t.z=t.z||Re[14],t.v=fr(nr(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var o={r,c:n};switch(o.s=qr(i.cellXfs,t,i),t.l&&a["!links"].push([Ae(o),t.l]),t.c&&a["!comments"].push([Ae(o),t.c]),t.t){case"s":case"str":return i.bookSST?(f=P0(i.Strings,t.v,i.revStrings),o.t="s",o.v=f,s?W(e,18,ex(t,o)):W(e,7,Z1(t,o))):(o.t="str",s?W(e,17,xx(t,o)):W(e,6,ux(t,o))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?W(e,13,lx(t,o)):W(e,2,sx(t,o)):s?W(e,16,ix(t,o)):W(e,5,tx(t,o)),!0;case"b":return o.t="b",s?W(e,15,z1(t,o)):W(e,4,V1(t,o)),!0;case"e":return o.t="e",s?W(e,14,J1(t,o)):W(e,3,Y1(t,o)),!0}return s?W(e,12,$1(t,o)):W(e,1,W1(t,o)),!0}function Mx(e,t,r,n){var i=Oe(t["!ref"]||"A1"),a,s="",f=[];W(e,145);var o=Array.isArray(t),l=i.e.r;t["!rows"]&&(l=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=l;++c){s=ze(c),R1(e,t,i,c);var x=!1;if(c<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){c===i.s.r&&(f[h]=je(h)),a=f[h]+s;var p=o?(t[c]||[])[h]:t[a];if(!p){x=!1;continue}x=Px(e,p,c,h,n,t,x)}}W(e,146)}function Bx(e,t){!t||!t["!merges"]||(W(e,177,Tx(t["!merges"].length)),t["!merges"].forEach(function(r){W(e,176,_x(r))}),W(e,178))}function bx(e,t){!t||!t["!cols"]||(W(e,390),t["!cols"].forEach(function(r,n){r&&W(e,60,yx(n,r))}),W(e,391))}function Ux(e,t){!t||!t["!ref"]||(W(e,648),W(e,649,Nx(Oe(t["!ref"]))),W(e,650))}function Wx(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=we(r,-1,n[1].Target.replace(/#.*$/,""),ve.HLINK);W(e,494,wx(n,i))}}),delete t["!links"]}function Hx(e,t,r,n){if(t["!comments"].length>0){var i=we(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ve.VML);W(e,551,D0("rId"+i)),t["!legacy"]=i}}function $x(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:Me(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=dr(a);f.s.r==f.e.r&&(f.e.r=dr(t["!ref"]).e.r,a=Me(f));for(var o=0;o16383||o.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],W(i,129),(r.vbaraw||s["!outline"])&&W(i,147,b1(f,s["!outline"])),W(i,148,P1(o)),Gx(i,s,r.Workbook),bx(i,s),Mx(i,s,e,t),Vx(i,s),$x(i,s,r,e),Bx(i,s),Wx(i,s,n),s["!margins"]&&W(i,476,Ox(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Ux(i,s),Hx(i,s,e,n),W(i,130),i.end()}function zx(e,t){e.l+=10;var r=Je(e);return{name:r}}var Kx=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function Yx(e){return!e.Workbook||!e.Workbook.WBProps?"false":Fo(e.Workbook.WBProps.date1904)?"true":"false"}var jx="][*?/\\".split("");function Is(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return jx.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function Jx(e,t,r){e.forEach(function(n,i){Is(n);for(var a=0;a22)throw new Error("Bad Code Name: Worksheet"+s)}})}function qx(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];Jx(e.SheetNames,t,!!e.vbaraw);for(var r=0;r0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Kx.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=J("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",a=0;a!=e.SheetNames.length;++a){var s={name:Se(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=J("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var o={name:f.Name};f.Comment&&(o.comment=f.Comment),f.Sheet!=null&&(o.localSheetId=""+f.Sheet),f.Hidden&&(o.hidden="1"),f.Ref&&(t[t.length]=J("definedName",Se(f.Ref),o))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Zx(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=c0(e),r.name=Je(e),r}function Qx(e,t){return t||(t=B(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),D0(e.strRelID,t),He(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function ed(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Je(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function rd(e,t){t||(t=B(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ga(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function td(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Yo(e),s=x1(e,0,r),f=O0(e);e.l=n;var o={Name:a,Ptg:s};return i<268435455&&(o.Sheet=i),f&&(o.Comment=f),o}function nd(e,t){W(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};W(e,156,Qx(i))}W(e,144)}function id(e,t){t||(t=B(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return He("SheetJS",t),He(vn.version,t),He(vn.version,t),He("7262",t),t.length>t.l?t.slice(0,t.l):t}function ad(e,t){t||(t=B(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function sd(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;ni||(W(e,135),W(e,158,ad(i)),W(e,136))}}function fd(e,t){var r=sr();return W(r,131),W(r,128,id()),W(r,153,rd(e.Workbook&&e.Workbook.WBProps||null)),sd(r,e),nd(r,e),W(r,132),r.end()}function ld(e,t,r){return(t.slice(-4)===".bin"?fd:Ns)(e)}function od(e,t,r,n,i){return(t.slice(-4)===".bin"?Xx:Os)(e,r,n,i)}function cd(e,t,r){return(t.slice(-4)===".bin"?Ou:xs)(e,r)}function ud(e,t,r){return(t.slice(-4)===".bin"?ru:os)(e,r)}function hd(e,t,r){return(t.slice(-4)===".bin"?Vu:gs)(e)}function xd(e){return(e.slice(-4)===".bin"?Mu:vs)()}function dd(e,t){var r=[];return e.Props&&r.push(cc(e.Props,t)),e.Custprops&&r.push(uc(e.Props,e.Custprops)),r.join("")}function pd(){return""}function vd(e,t){var r=[''];return t.cellXfs.forEach(function(n,i){var a=[];a.push(J("NumberFormat",null,{"ss:Format":Se(Re[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};r.push(J("Style",a.join(""),s))}),J("Styles",r.join(""))}function ks(e){return J("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+R0(e.Ref,{r:0,c:0})})}function md(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n"),e["!margins"].header&&i.push(J("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(J("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(J("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(J("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push(""),e["!protect"]&&(i.push(Xe("ProtectContents","True")),e["!protect"].objects&&i.push(Xe("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Xe("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Xe("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Xe("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":J("WorksheetOptions",i.join(""),{xmlns:hr.x})}function Td(e){return e.map(function(t){var r=Ao(t.t||""),n=J("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return J("Comment",n,{"ss:Author":t.a})}).join("")}function Ed(e,t,r,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+Se(R0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var o=We(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(o.r==s.r?"":"["+(o.r-s.r)+"]")+"C"+(o.c==s.c?"":"["+(o.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=Se(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=Se(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=s.c||l[c].s.r!=s.r||(l[c].e.c>l[c].s.c&&(f["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(f["ss:MergeDown"]=l[c].e.r-l[c].s.r));var x="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":x="Number",h=String(e.v);break;case"b":x="Boolean",h=e.v?"1":"0";break;case"e":x="Error",h=en[e.v];break;case"d":x="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Re[14]);break;case"s":x="String",h=So(e.v||"");break}var p=qr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+p),f["ss:Index"]=s.c+1;var _=e.v!=null?h:"",u=e.t=="z"?"":''+_+"";return(e.c||[]).length>0&&(u+=Td(e.c)),J("Cell",u,f)}function wd(e,t){var r='"}function Sd(e,t,r,n){if(!e["!ref"])return"";var i=Oe(e["!ref"]),a=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(m,A){N0(m);var O=!!m.width,F=zn(A,m),M={"ss:Index":A+1};O&&(M["ss:Width"]=Fn(F.width)),m.hidden&&(M["ss:Hidden"]="1"),f.push(J("Column",null,M))});for(var o=Array.isArray(e),l=i.s.r;l<=i.e.r;++l){for(var c=[wd(l,(e["!rows"]||[])[l])],x=i.s.c;x<=i.e.c;++x){var h=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>x)&&!(a[s].s.r>l)&&!(a[s].e.c"),c.length>2&&f.push(c.join(""))}return f.join("")}function Ad(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],s=a?gd(a,t,e,r):"";return s.length>0&&n.push(""+s+""),s=a?Sd(a,t,e,r):"",s.length>0&&n.push(""+s+"
"),n.push(_d(a,t,e,r)),n.join("")}function Fd(e,t){t||(t={}),e.SSF||(e.SSF=lr(Re)),e.SSF&&(Hn(),Wn(e.SSF),t.revssf=$n(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(dd(e,t)),r.push(pd()),r.push(""),r.push("");for(var n=0;n-1||Qa.indexOf(i[a][0])>-1||i[a][1]!=null&&l.push(i[a]);n.length&&ye.utils.cfb_add(t,"/SummaryInformation",Di(n,n0.SI,o,Ai)),(r.length||l.length)&&ye.utils.cfb_add(t,"/DocumentSummaryInformation",Di(r,n0.DSI,f,Si,l.length?l:null,n0.UDI))}function Cd(e,t){var r=t||{},n=ye.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return ye.utils.cfb_add(n,i,Rs(e,r)),r.biff==8&&(e.Props||e.Custprops)&&yd(e,n),r.biff==8&&e.vbaraw&&Xu(n,ye.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Od={0:{f:N1},1:{f:U1},2:{f:ax},3:{f:K1},4:{f:G1},5:{f:rx},6:{f:cx},7:{f:q1},8:{f:mx},9:{f:vx},10:{f:dx},11:{f:px},12:{f:H1},13:{f:fx},14:{f:j1},15:{f:X1},16:{f:nx},17:{f:hx},18:{f:Q1},19:{f:C0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:td},40:{},42:{},43:{f:cu},44:{f:lu},45:{f:xu},46:{f:pu},47:{f:du},48:{},49:{f:Ho},50:{},51:{f:Nu},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:$c},62:{f:ox},63:{f:Bu},64:{f:Rx},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Dr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Dx},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:B1},148:{f:L1,p:16},151:{f:Sx},152:{},153:{f:ed},154:{},155:{},156:{f:Zx},157:{},158:{},159:{T:1,f:Zc},160:{T:-1},161:{T:1,f:pt},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:gx},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Du},336:{T:-1},337:{f:Lu,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:c0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Mc},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Ax},427:{f:Fx},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Cx},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:M1},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Ex},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:c0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:$u},633:{T:1},634:{T:-1},635:{T:1,f:Wu},636:{T:-1},637:{f:Xo},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:zx},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Lx},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function q(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&A0(r)&&e.push(r)}}function Dd(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return q(e,t,r,i);var a=t;if(!isNaN(a)){for(var s=r.parts||[],f=0,o=0,l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l;o=0&&i<65536?q(e,2,zc(r,n,i)):q(e,3,Xc(r,n,i));return;case"b":case"e":q(e,5,Id(r,n,t.v,t.t));return;case"s":case"str":q(e,4,Nd(r,n,(t.v||"").slice(0,255)));return}q(e,1,tn(null,r,n))}function Rd(e,t,r,n){var i=Array.isArray(t),a=Oe(t["!ref"]||"A1"),s,f="",o=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=Me(a)}for(var l=a.s.r;l<=a.e.r;++l){f=ze(l);for(var c=a.s.c;c<=a.e.c;++c){l===a.s.r&&(o[c]=je(c)),s=o[c]+f;var x=i?(t[l]||[])[c]:t[s];x&&kd(e,x,l,c)}}}function Ld(e,t){for(var r=t||{},n=sr(),i=0,a=0;a255||p.e.r>=_){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,_-1)}q(n,2057,I0(r,16,t)),q(n,13,mr(1)),q(n,12,mr(100)),q(n,15,rr(!0)),q(n,17,rr(!1)),q(n,16,lt(.001)),q(n,95,rr(!0)),q(n,42,rr(!1)),q(n,43,rr(!1)),q(n,130,mr(1)),q(n,128,Rc([0,0])),q(n,131,rr(!1)),q(n,132,rr(!1)),l&&Wd(n,a["!cols"]),q(n,512,kc(p,t)),l&&(a["!links"]=[]);for(var u=p.s.r;u<=p.e.r;++u){x=ze(u);for(var m=p.s.c;m<=p.e.c;++m){u===p.s.r&&(h[m]=je(m)),c=h[m]+x;var A=o?(a[u]||[])[m]:a[c];A&&(Hd(n,A,u,m,t),l&&A.l&&a["!links"].push([c,A.l]))}}var O=f.CodeName||f.name||i;return l&&q(n,574,Cc((s.Views||[])[0])),l&&(a["!merges"]||[]).length&&q(n,229,bc(a["!merges"])),l&&Ud(n,a),q(n,442,ss(O)),l&&Bd(n,a),q(n,10),n.end()}function Gd(e,t,r){var n=sr(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},f=r.biff==8,o=r.biff==5;if(q(n,2057,I0(e,5,r)),r.bookType=="xla"&&q(n,135),q(n,225,f?mr(1200):null),q(n,193,dc(2)),o&&q(n,191),o&&q(n,192),q(n,226),q(n,92,Sc("SheetJS",r)),q(n,66,mr(f?1200:1252)),f&&q(n,353,mr(0)),f&&q(n,448),q(n,317,Vc(e.SheetNames.length)),f&&e.vbaraw&&q(n,211),f&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";q(n,442,ss(l))}q(n,156,mr(17)),q(n,25,rr(!1)),q(n,18,rr(!1)),q(n,19,mr(0)),f&&q(n,431,rr(!1)),f&&q(n,444,mr(0)),q(n,61,yc()),q(n,64,rr(!1)),q(n,141,mr(0)),q(n,34,rr(Yx(e)=="true")),q(n,14,rr(!0)),f&&q(n,439,rr(!1)),q(n,218,mr(0)),Pd(n,e,r),Md(n,e.SSF,r),bd(n,r),f&&q(n,352,rr(!1));var c=n.end(),x=sr();f&&q(x,140,Hc()),f&&r.Strings&&Dd(x,252,Fc(r.Strings)),q(x,10);var h=x.end(),p=sr(),_=0,u=0;for(u=0;u255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return Vd(e,t);case 4:case 3:case 2:return Ld(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Xd(e,t,r,n){for(var i=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var f=0,o=0,l=0;lr||i[l].s.c>s)&&!(i[l].e.r1&&(p.rowspan=f),o>1&&(p.colspan=o),n.editable?h=''+h+"":x&&(p["data-t"]=x&&x.t||"z",x.v!=null&&(p["data-v"]=x.v),x.z!=null&&(p["data-z"]=x.z),x.l&&(x.l.Target||"#").charAt(0)!="#"&&(h=''+h+"")),p.id=(n.id||"sjs")+"-"+c,a.push(J("td",h,p))}}var _="";return _+a.join("")+""}var zd='SheetJS Table Export',Kd="";function Yd(e,t,r){var n=[];return n.join("")+""}function Ls(e,t){var r=t||{},n=r.header!=null?r.header:zd,i=r.footer!=null?r.footer:Kd,a=[n],s=dr(e["!ref"]);r.dense=Array.isArray(e),a.push(Yd(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)a.push(Xd(e,s,f,r));return a.push(""+i),a.join("")}function Ps(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?We(n.origin):n.origin;i=s.r,a=s.c}var f=t.getElementsByTagName("tr"),o=Math.min(n.sheetRows||1e7,f.length),l={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=dr(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),i==-1&&(l.e.r=i=c.e.r+1)}var x=[],h=0,p=e["!rows"]||(e["!rows"]=[]),_=0,u=0,m=0,A=0,O=0,F=0;for(e["!cols"]||(e["!cols"]=[]);_1||F>1)&&x.push({s:{r:u+i,c:A+a},e:{r:u+i+(O||1)-1,c:A+a+(F||1)-1}});var G={t:"s",v:D},V=re.getAttribute("data-t")||re.getAttribute("t")||"";D!=null&&(D.length==0?G.t=V||"z":n.raw||D.trim().length==0||V=="s"||(D==="TRUE"?G={t:"b",v:!0}:D==="FALSE"?G={t:"b",v:!1}:isNaN(Br(D))?isNaN(Kt(D).getDate())||(G={t:"d",v:nr(D)},n.cellDates||(G={t:"n",v:fr(G.v)}),G.z=n.dateNF||Re[14]):G={t:"n",v:Br(D)})),G.z===void 0&&U!=null&&(G.z=U);var X="",ee=re.getElementsByTagName("A");if(ee&&ee.length)for(var ge=0;ge=o&&(e["!fullref"]=Me((l.e.r=f.length-_+u-1+i,l))),e}function Ms(e,t){var r=t||{},n=r.dense?[]:{};return Ps(n,e,t)}function jd(e,t){return ut(Ms(e,t),t)}function bi(e){var t="",r=Jd(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Jd(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var qd=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Be+t}}(),Ui=function(){var e=function(a){return Se(a).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` `,r=` -`,n=function(a,s,f){var o=[];o.push(' -`);var l=0,c=0,x=xr(a["!ref"]||"A1"),h=a["!merges"]||[],d=0,_=Array.isArray(a);if(a["!cols"])for(c=0;c<=x.e.c;++c)o.push(" +`,n=function(a,s,f){var o=[];o.push(' +`);var l=0,c=0,x=dr(a["!ref"]||"A1"),h=a["!merges"]||[],p=0,_=Array.isArray(a);if(a["!cols"])for(c=0;c<=x.e.c;++c)o.push(" `);var u="",m=a["!rows"]||[];for(l=0;l `);for(;l<=x.e.r;++l){for(u=m[l]?' table:style-name="ro'+m[l].ods+'"':"",o.push(" -`),c=0;cc)&&!(h[d].s.r>l)&&!(h[d].e.cc)&&!(h[p].s.r>l)&&!(h[p].e.c `)}return o.push(` `),o.join("")},i=function(a,s){a.push(` @@ -98,9 +98,9 @@ import{b as qe,i as ce,t as de,d as In,e as Pe,c as Y,s as rr,F as at,f as h0,g `),o.push(` `);for(var x=0;x!=s.SheetNames.length;++x)o.push(n(s.Sheets[s.SheetNames[x]],s,x));return o.push(` `),o.push(` -`),f.bookType=="fods"?o.push(""):o.push(""),o.join("")}}();function Bs(e,t){if(t.bookType=="fods")return Ui(e,t);var r=T0(),n="",i=[],a=[];return n="mimetype",xe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",xe(r,n,Ui(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",xe(r,n,qd(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",xe(r,n,Be+qa()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",xe(r,n,oc(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",xe(r,n,fc(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function On(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Zd(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(Pr(e))}function Qd(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function jt(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 _e(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 yt(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 be(e){for(var t=[],r=[0];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=jt(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(a," for Field ").concat(i," at offset ").concat(n))}var l={data:f,type:a};t[i]==null?t[i]=[l]:t[i].push(l)}return t}function $e(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(_e(n*8+i.type)),i.type==2&&t.push(_e(i.data.length)),t.push(i.data))})}),jr(t)}function Tr(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(s)}return r}function gt(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:_e(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:_e(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:_e(s.data.length)}],n[2].push({data:$e(s.meta),type:2})});var a=$e(n);t.push(_e(a.length)),t.push(a),i.forEach(function(s){return t.push(s)})}),jr(t)}function r2(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=jt(t,r),i=[];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}i.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(a==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,a==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[jr(i)],o==0)throw new Error("Invalid offset 0");if(o>i[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(i.push(i[0].slice(-o)),l-=o;l>=i[i.length-1].length;)i.push(i[i.length-1]),l-=i[i.length-1].length;i.push(i[0].slice(-o,-o+l))}}var c=jr(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function Er(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return jr(t)}function i0(e,t){var r=new Uint8Array(32),n=On(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,e2(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function a0(e,t){var r=new Uint8Array(32),n=On(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Vr(e){var t=be(e);return jt(t[1][0].data)}function t2(e,t,r){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&yt(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var o=0,l=On(e[7][0].data),c=0,x=[],h=On(e[4][0].data),d=0,_=[],u=0;u1&&console.error("The Numbers writer currently writes only the first table");var n=xr(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Me(n)));var a=Dn(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(P){return P.forEach(function(C){typeof C=="string"&&s.push(C)})});var f={},o=[],l=Se.read(t.numbers,{type:"base64"});l.FileIndex.map(function(P,C){return[P,l.FullPaths[C]]}).forEach(function(P){var C=P[0],y=P[1];if(C.type==2&&C.name.match(/\.iwa/)){var H=C.content,fe=Er(H),le=Tr(fe);le.forEach(function(se){o.push(se.id),f[se.id]={deps:[],location:y,type:yt(se.messages[0].meta[1][0].data)}})}}),o.sort(function(P,C){return P-C});var c=o.filter(function(P){return P>1}).map(function(P){return[P,_e(P)]});l.FileIndex.map(function(P,C){return[P,l.FullPaths[C]]}).forEach(function(P){var C=P[0];if(P[1],!!C.name.match(/\.iwa/)){var y=Tr(Er(C.content));y.forEach(function(H){H.messages.forEach(function(fe){c.forEach(function(le){H.messages.some(function(se){return yt(se.meta[1][0].data)!=11006&&Qd(se.data,le[1])})&&f[le[0]].deps.push(H.id)})})})}});for(var x=Se.find(l,f[1].location),h=Tr(Er(x.content)),d,_=0;_-1,i=Ya();M0(t=t||{});var a=T0(),s="",f=0;if(t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",xe(a,s,Za(e.Props,t)),i.coreprops.push(s),Te(t.rels,2,s,ve.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l0&&(s="docProps/custom.xml",xe(a,s,rs(e.Custprops)),i.custprops.push(s),Te(t.rels,4,s,ve.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},x=e.Sheets[e.SheetNames[f-1]],h=(x||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,xe(a,s,od(f-1,s,t,e,c)),i.sheets.push(s),Te(t.wbrels,-1,"worksheets/sheet"+f+"."+r,ve.WS[0])}if(x){var d=x["!comments"],_=!1,u="";d&&d.length>0&&(u="xl/comments"+f+"."+r,xe(a,u,hd(d,u)),i.comments.push(u),Te(c,-1,"../comments"+f+"."+r,ve.CMNT),_=!0),x["!legacy"]&&_&&xe(a,"xl/drawings/vmlDrawing"+f+".vml",ms(f,x["!comments"])),delete x["!comments"],delete x["!legacy"]}c["!id"].rId1&&xe(a,Ja(s),At(c))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,xe(a,s,ud(t.Strings,s,t)),i.strs.push(s),Te(t.wbrels,-1,"sharedStrings."+r,ve.SST)),s="xl/workbook."+r,xe(a,s,ld(e,s)),i.workbooks.push(s),Te(t.rels,1,s,ve.WB),s="xl/theme/theme1.xml",xe(a,s,ps(e.Themes,t)),i.themes.push(s),Te(t.wbrels,-1,"theme/theme1.xml",ve.THEME),s="xl/styles."+r,xe(a,s,cd(e,s,t)),i.styles.push(s),Te(t.wbrels,-1,"styles."+r,ve.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",xe(a,s,e.vbaraw),i.vba.push(s),Te(t.wbrels,-1,"vbaProject.bin",ve.VBA)),s="xl/metadata."+r,xe(a,s,xd(s)),i.metadata.push(s),Te(t.wbrels,-1,"metadata."+r,ve.XLMETA),xe(a,"[Content_Types].xml",ja(i,t)),xe(a,"_rels/.rels",At(t.rels)),xe(a,"xl/_rels/workbook."+r+".rels",At(t.wbrels)),delete t.revssf,delete t.ssf,a}function f2(e,t){Et=1024,e&&!e.SSF&&(e.SSF=fr(ke)),e&&e.SSF&&(Hn(),Wn(e.SSF),t.revssf=$n(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Gt?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=_s.indexOf(t.bookType)>-1,i=Ya();M0(t=t||{});var a=T0(),s="",f=0;if(t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",xe(a,s,Za(e.Props,t)),i.coreprops.push(s),Te(t.rels,2,s,ve.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l0&&(s="docProps/custom.xml",xe(a,s,rs(e.Custprops)),i.custprops.push(s),Te(t.rels,4,s,ve.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var x={"!id":{}},h=e.Sheets[e.SheetNames[f-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,xe(a,s,Os(f-1,t,e,x)),i.sheets.push(s),Te(t.wbrels,-1,"worksheets/sheet"+f+"."+r,ve.WS[0])}if(h){var _=h["!comments"],u=!1,m="";if(_&&_.length>0){var A=!1;_.forEach(function(O){O[1].forEach(function(F){F.T==!0&&(A=!0)})}),A&&(m="xl/threadedComments/threadedComment"+f+"."+r,xe(a,m,bu(_,c,t)),i.threadedcomments.push(m),Te(x,-1,"../threadedComments/threadedComment"+f+"."+r,ve.TCMNT)),m="xl/comments"+f+"."+r,xe(a,m,gs(_)),i.comments.push(m),Te(x,-1,"../comments"+f+"."+r,ve.CMNT),u=!0}h["!legacy"]&&u&&xe(a,"xl/drawings/vmlDrawing"+f+".vml",ms(f,h["!comments"])),delete h["!comments"],delete h["!legacy"]}x["!id"].rId1&&xe(a,Ja(s),At(x))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,xe(a,s,os(t.Strings,t)),i.strs.push(s),Te(t.wbrels,-1,"sharedStrings."+r,ve.SST)),s="xl/workbook."+r,xe(a,s,Ns(e)),i.workbooks.push(s),Te(t.rels,1,s,ve.WB),s="xl/theme/theme1.xml",xe(a,s,ps(e.Themes,t)),i.themes.push(s),Te(t.wbrels,-1,"theme/theme1.xml",ve.THEME),s="xl/styles."+r,xe(a,s,xs(e,t)),i.styles.push(s),Te(t.wbrels,-1,"styles."+r,ve.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",xe(a,s,e.vbaraw),i.vba.push(s),Te(t.wbrels,-1,"vbaProject.bin",ve.VBA)),s="xl/metadata."+r,xe(a,s,vs()),i.metadata.push(s),Te(t.wbrels,-1,"metadata."+r,ve.XLMETA),c.length>1&&(s="xl/persons/person.xml",xe(a,s,Uu(c)),i.people.push(s),Te(t.wbrels,-1,"persons/person.xml",ve.PEOPLE)),xe(a,"[Content_Types].xml",ja(i,t)),xe(a,"_rels/.rels",At(t.rels)),xe(a,"xl/_rels/workbook."+r+".rels",At(t.wbrels)),delete t.revssf,delete t.ssf,a}function l2(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Ur(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function bs(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Zt(t.file,Se.write(e,{type:me?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Se.write(e,t)}function o2(e,t){var r=fr(t||{}),n=a2(e,r);return c2(n,r)}function c2(e,t){var r={},n=me?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Se.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(Un(i))}return t.password&&typeof encrypt_agile<"u"?bs(encrypt_agile(i,t.password),t):t.type==="file"?Zt(t.file,i):t.type=="string"?Ut(i):i}function u2(e,t){var r=t||{},n=Cd(e,r);return bs(n,r)}function Or(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return zt(Pr(n));case"binary":return Pr(n);case"string":return e;case"file":return Zt(t.file,n,"utf8");case"buffer":return me?$r(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Or(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function h2(e,t){switch(t.type){case"base64":return zt(e);case"binary":return e;case"string":return e;case"file":return Zt(t.file,e,"binary");case"buffer":return me?$r(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function xn(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(i=0);var x=ze(o.s.r),h=[],d=[],_=0,u=0,m=Array.isArray(e),A=o.s.r,O=0,F={};m&&!e[A]&&(e[A]=[]);var M=l.skipHidden&&e["!cols"]||[],K=l.skipHidden&&e["!rows"]||[];for(O=o.s.c;O<=o.e.c;++O)if(!(M[O]||{}).hidden)switch(h[O]=je(O),r=m?e[A][O]:e[h[O]+x],n){case 1:a[O]=O-o.s.c;break;case 2:a[O]=h[O];break;case 3:a[O]=l.header[O-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=Wr(r,null,l),u=F[s]||0,!u)F[s]=1;else{do f=s+"_"+u++;while(F[f]);F[s]=u,F[f]=1}a[O]=f}for(A=o.s.r+i;A<=o.e.r;++A)if(!(K[A]||{}).hidden){var ee=p2(e,o,A,h,n,a,m,l);(ee.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(d[_++]=ee.row)}return d.length=_,d}var Wi=/"/g;function v2(e,t,r,n,i,a,s,f){for(var o=!0,l=[],c="",x=ze(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var d=f.dense?(e[r]||[])[h]:e[n[h]+x];if(d==null)c="";else if(d.v!=null){o=!1,c=""+(f.rawNumbers&&d.t=="n"?d.v:Wr(d,null,f));for(var _=0,u=0;_!==c.length;++_)if((u=c.charCodeAt(_))===i||u===a||u===34||f.forceQuotes){c='"'+c.replace(Wi,'""')+'"';break}c=="ID"&&(c='"ID"')}else d.f!=null&&!d.F?(o=!1,c="="+d.f,c.indexOf(",")>=0&&(c='"'+c.replace(Wi,'""')+'"')):c="";l.push(c)}return f.blankrows===!1&&o?null:l.join(s)}function b0(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ce(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),f=n.RS!==void 0?n.RS:` -`,o=f.charCodeAt(0),l=new RegExp((a=="|"?"\\|":a)+"+$"),c="",x=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],_=i.s.c;_<=i.e.c;++_)(h[_]||{}).hidden||(x[_]=je(_));for(var u=0,m=i.s.r;m<=i.e.r;++m)(d[m]||{}).hidden||(c=v2(e,i,m,x,s,o,a,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 Us(e,t){t||(t={}),t.FS=" ",t.RS=` -`;var r=b0(e,t);return r}function m2(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ce(e["!ref"]),a="",s=[],f,o=[],l=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=je(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=ze(c),f=i.s.c;f<=i.e.c;++f)if(t=s[f]+a,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 Ws(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},s=0,f=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?We(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+i}};if(a["!ref"]){var x=Ce(a["!ref"]);c.e.c=Math.max(c.e.c,x.e.c),c.e.r=Math.max(c.e.r,x.e.r),s==-1&&(s=x.e.r+1,c.e.r=s+t.length-1+i)}else s==-1&&(s=0,c.e.r=t.length-1+i);var h=n.header||[],d=0;t.forEach(function(u,m){Ke(u).forEach(function(A){(d=h.indexOf(A))==-1&&(h[d=h.length]=A);var O=u[A],F="z",M="",K=we({c:f+d,r:s+m+i});l=Jt(a,K),O&&typeof O=="object"&&!(O instanceof Date)?a[K]=O:(typeof O=="number"?F="n":typeof O=="boolean"?F="b":typeof O=="string"?F="s":O instanceof Date?(F="d",n.cellDates||(F="n",O=sr(O)),M=n.dateNF||ke[14]):O===null&&n.nullError&&(F="e",O=0),l?(l.t=F,l.v=O,delete l.w,delete l.R,M&&(l.z=M)):a[K]=l={t:F,v:O},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+h.length-1);var _=ze(s);if(i)for(d=0;d=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 T2(){return{SheetNames:[],Sheets:{}}}function E2(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=s+i)!=-1;++i);}if(Is(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 w2(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=_2(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 S2(e,t){return e.z=t,e}function Hs(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function A2(e,t,r){return Hs(e,"#"+t,r)}function F2(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function y2(e,t,r,n){for(var i=typeof t!="string"?t:Ce(t),a=typeof t=="string"?t:Me(t),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var o=Jt(e,s,f);o.t="n",o.F=a,delete o.v,s==i.s.r&&f==i.s.c&&(o.f=r,n&&(o.D=!0))}return e}var C2={encode_col:je,encode_row:ze,encode_cell:we,encode_range:Me,decode_col:y0,decode_row:F0,split_cell:Wo,decode_cell:We,decode_range:xr,format_cell:Wr,sheet_add_aoa:$a,sheet_add_json:Ws,sheet_add_dom:Ps,aoa_to_sheet:It,json_to_sheet:g2,table_to_sheet:Ms,table_to_book:jd,sheet_to_csv:b0,sheet_to_txt:Us,sheet_to_json:Dn,sheet_to_html:Ls,sheet_to_formulae:m2,sheet_to_row_object_array:Dn,sheet_get_cell:Jt,book_new:T2,book_append_sheet:E2,book_set_sheet_visibility:w2,cell_set_number_format:S2,cell_set_hyperlink:Hs,cell_set_internal_link:A2,cell_add_comment:F2,sheet_set_array_formula:y2,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};/** +`),f.bookType=="fods"?o.push(""):o.push(""),o.join("")}}();function Bs(e,t){if(t.bookType=="fods")return Ui(e,t);var r=T0(),n="",i=[],a=[];return n="mimetype",he(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",he(r,n,Ui(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",he(r,n,qd(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",he(r,n,Be+qa()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",he(r,n,oc(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",he(r,n,fc(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function On(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Zd(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(Pr(e))}function Qd(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function jt(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 Ee(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 yt(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 be(e){for(var t=[],r=[0];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=jt(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(a," for Field ").concat(i," at offset ").concat(n))}var l={data:f,type:a};t[i]==null?t[i]=[l]:t[i].push(l)}return t}function $e(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Ee(n*8+i.type)),i.type==2&&t.push(Ee(i.data.length)),t.push(i.data))})}),jr(t)}function Tr(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(s)}return r}function gt(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Ee(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ee(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Ee(s.data.length)}],n[2].push({data:$e(s.meta),type:2})});var a=$e(n);t.push(Ee(a.length)),t.push(a),i.forEach(function(s){return t.push(s)})}),jr(t)}function r2(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=jt(t,r),i=[];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}i.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(a==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,a==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[jr(i)],o==0)throw new Error("Invalid offset 0");if(o>i[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(i.push(i[0].slice(-o)),l-=o;l>=i[i.length-1].length;)i.push(i[i.length-1]),l-=i[i.length-1].length;i.push(i[0].slice(-o,-o+l))}}var c=jr(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function Er(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return jr(t)}function i0(e,t){var r=new Uint8Array(32),n=On(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,e2(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function a0(e,t){var r=new Uint8Array(32),n=On(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Vr(e){var t=be(e);return jt(t[1][0].data)}function t2(e,t,r){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&yt(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var o=0,l=On(e[7][0].data),c=0,x=[],h=On(e[4][0].data),p=0,_=[],u=0;u1&&console.error("The Numbers writer currently writes only the first table");var n=dr(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Me(n)));var a=Dn(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(P){return P.forEach(function(C){typeof C=="string"&&s.push(C)})});var f={},o=[],l=ye.read(t.numbers,{type:"base64"});l.FileIndex.map(function(P,C){return[P,l.FullPaths[C]]}).forEach(function(P){var C=P[0],y=P[1];if(C.type==2&&C.name.match(/\.iwa/)){var H=C.content,fe=Er(H),le=Tr(fe);le.forEach(function(se){o.push(se.id),f[se.id]={deps:[],location:y,type:yt(se.messages[0].meta[1][0].data)}})}}),o.sort(function(P,C){return P-C});var c=o.filter(function(P){return P>1}).map(function(P){return[P,Ee(P)]});l.FileIndex.map(function(P,C){return[P,l.FullPaths[C]]}).forEach(function(P){var C=P[0];if(P[1],!!C.name.match(/\.iwa/)){var y=Tr(Er(C.content));y.forEach(function(H){H.messages.forEach(function(fe){c.forEach(function(le){H.messages.some(function(se){return yt(se.meta[1][0].data)!=11006&&Qd(se.data,le[1])})&&f[le[0]].deps.push(H.id)})})})}});for(var x=ye.find(l,f[1].location),h=Tr(Er(x.content)),p,_=0;_-1,i=Ya();M0(t=t||{});var a=T0(),s="",f=0;if(t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",he(a,s,Za(e.Props,t)),i.coreprops.push(s),we(t.rels,2,s,ve.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l0&&(s="docProps/custom.xml",he(a,s,rs(e.Custprops)),i.custprops.push(s),we(t.rels,4,s,ve.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},x=e.Sheets[e.SheetNames[f-1]],h=(x||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,he(a,s,od(f-1,s,t,e,c)),i.sheets.push(s),we(t.wbrels,-1,"worksheets/sheet"+f+"."+r,ve.WS[0])}if(x){var p=x["!comments"],_=!1,u="";p&&p.length>0&&(u="xl/comments"+f+"."+r,he(a,u,hd(p,u)),i.comments.push(u),we(c,-1,"../comments"+f+"."+r,ve.CMNT),_=!0),x["!legacy"]&&_&&he(a,"xl/drawings/vmlDrawing"+f+".vml",ms(f,x["!comments"])),delete x["!comments"],delete x["!legacy"]}c["!id"].rId1&&he(a,Ja(s),At(c))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,he(a,s,ud(t.Strings,s,t)),i.strs.push(s),we(t.wbrels,-1,"sharedStrings."+r,ve.SST)),s="xl/workbook."+r,he(a,s,ld(e,s)),i.workbooks.push(s),we(t.rels,1,s,ve.WB),s="xl/theme/theme1.xml",he(a,s,ps(e.Themes,t)),i.themes.push(s),we(t.wbrels,-1,"theme/theme1.xml",ve.THEME),s="xl/styles."+r,he(a,s,cd(e,s,t)),i.styles.push(s),we(t.wbrels,-1,"styles."+r,ve.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",he(a,s,e.vbaraw),i.vba.push(s),we(t.wbrels,-1,"vbaProject.bin",ve.VBA)),s="xl/metadata."+r,he(a,s,xd(s)),i.metadata.push(s),we(t.wbrels,-1,"metadata."+r,ve.XLMETA),he(a,"[Content_Types].xml",ja(i,t)),he(a,"_rels/.rels",At(t.rels)),he(a,"xl/_rels/workbook."+r+".rels",At(t.wbrels)),delete t.revssf,delete t.ssf,a}function f2(e,t){Et=1024,e&&!e.SSF&&(e.SSF=lr(Re)),e&&e.SSF&&(Hn(),Wn(e.SSF),t.revssf=$n(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Gt?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=_s.indexOf(t.bookType)>-1,i=Ya();M0(t=t||{});var a=T0(),s="",f=0;if(t.cellXfs=[],qr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",he(a,s,Za(e.Props,t)),i.coreprops.push(s),we(t.rels,2,s,ve.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l0&&(s="docProps/custom.xml",he(a,s,rs(e.Custprops)),i.custprops.push(s),we(t.rels,4,s,ve.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var x={"!id":{}},h=e.Sheets[e.SheetNames[f-1]],p=(h||{})["!type"]||"sheet";switch(p){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,he(a,s,Os(f-1,t,e,x)),i.sheets.push(s),we(t.wbrels,-1,"worksheets/sheet"+f+"."+r,ve.WS[0])}if(h){var _=h["!comments"],u=!1,m="";if(_&&_.length>0){var A=!1;_.forEach(function(O){O[1].forEach(function(F){F.T==!0&&(A=!0)})}),A&&(m="xl/threadedComments/threadedComment"+f+"."+r,he(a,m,bu(_,c,t)),i.threadedcomments.push(m),we(x,-1,"../threadedComments/threadedComment"+f+"."+r,ve.TCMNT)),m="xl/comments"+f+"."+r,he(a,m,gs(_)),i.comments.push(m),we(x,-1,"../comments"+f+"."+r,ve.CMNT),u=!0}h["!legacy"]&&u&&he(a,"xl/drawings/vmlDrawing"+f+".vml",ms(f,h["!comments"])),delete h["!comments"],delete h["!legacy"]}x["!id"].rId1&&he(a,Ja(s),At(x))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,he(a,s,os(t.Strings,t)),i.strs.push(s),we(t.wbrels,-1,"sharedStrings."+r,ve.SST)),s="xl/workbook."+r,he(a,s,Ns(e)),i.workbooks.push(s),we(t.rels,1,s,ve.WB),s="xl/theme/theme1.xml",he(a,s,ps(e.Themes,t)),i.themes.push(s),we(t.wbrels,-1,"theme/theme1.xml",ve.THEME),s="xl/styles."+r,he(a,s,xs(e,t)),i.styles.push(s),we(t.wbrels,-1,"styles."+r,ve.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",he(a,s,e.vbaraw),i.vba.push(s),we(t.wbrels,-1,"vbaProject.bin",ve.VBA)),s="xl/metadata."+r,he(a,s,vs()),i.metadata.push(s),we(t.wbrels,-1,"metadata."+r,ve.XLMETA),c.length>1&&(s="xl/persons/person.xml",he(a,s,Uu(c)),i.people.push(s),we(t.wbrels,-1,"persons/person.xml",ve.PEOPLE)),he(a,"[Content_Types].xml",ja(i,t)),he(a,"_rels/.rels",At(t.rels)),he(a,"xl/_rels/workbook."+r+".rels",At(t.wbrels)),delete t.revssf,delete t.ssf,a}function l2(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Ur(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function bs(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Zt(t.file,ye.write(e,{type:me?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return ye.write(e,t)}function o2(e,t){var r=lr(t||{}),n=a2(e,r);return c2(n,r)}function c2(e,t){var r={},n=me?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?ye.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(Un(i))}return t.password&&typeof encrypt_agile<"u"?bs(encrypt_agile(i,t.password),t):t.type==="file"?Zt(t.file,i):t.type=="string"?Ut(i):i}function u2(e,t){var r=t||{},n=Cd(e,r);return bs(n,r)}function Or(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return zt(Pr(n));case"binary":return Pr(n);case"string":return e;case"file":return Zt(t.file,n,"utf8");case"buffer":return me?$r(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Or(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function h2(e,t){switch(t.type){case"base64":return zt(e);case"binary":return e;case"string":return e;case"file":return Zt(t.file,e,"binary");case"buffer":return me?$r(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function xn(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(i=0);var x=ze(o.s.r),h=[],p=[],_=0,u=0,m=Array.isArray(e),A=o.s.r,O=0,F={};m&&!e[A]&&(e[A]=[]);var M=l.skipHidden&&e["!cols"]||[],K=l.skipHidden&&e["!rows"]||[];for(O=o.s.c;O<=o.e.c;++O)if(!(M[O]||{}).hidden)switch(h[O]=je(O),r=m?e[A][O]:e[h[O]+x],n){case 1:a[O]=O-o.s.c;break;case 2:a[O]=h[O];break;case 3:a[O]=l.header[O-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=Wr(r,null,l),u=F[s]||0,!u)F[s]=1;else{do f=s+"_"+u++;while(F[f]);F[s]=u,F[f]=1}a[O]=f}for(A=o.s.r+i;A<=o.e.r;++A)if(!(K[A]||{}).hidden){var re=p2(e,o,A,h,n,a,m,l);(re.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(p[_++]=re.row)}return p.length=_,p}var Wi=/"/g;function v2(e,t,r,n,i,a,s,f){for(var o=!0,l=[],c="",x=ze(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var p=f.dense?(e[r]||[])[h]:e[n[h]+x];if(p==null)c="";else if(p.v!=null){o=!1,c=""+(f.rawNumbers&&p.t=="n"?p.v:Wr(p,null,f));for(var _=0,u=0;_!==c.length;++_)if((u=c.charCodeAt(_))===i||u===a||u===34||f.forceQuotes){c='"'+c.replace(Wi,'""')+'"';break}c=="ID"&&(c='"ID"')}else p.f!=null&&!p.F?(o=!1,c="="+p.f,c.indexOf(",")>=0&&(c='"'+c.replace(Wi,'""')+'"')):c="";l.push(c)}return f.blankrows===!1&&o?null:l.join(s)}function b0(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Oe(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),f=n.RS!==void 0?n.RS:` +`,o=f.charCodeAt(0),l=new RegExp((a=="|"?"\\|":a)+"+$"),c="",x=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],p=n.skipHidden&&e["!rows"]||[],_=i.s.c;_<=i.e.c;++_)(h[_]||{}).hidden||(x[_]=je(_));for(var u=0,m=i.s.r;m<=i.e.r;++m)(p[m]||{}).hidden||(c=v2(e,i,m,x,s,o,a,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 Us(e,t){t||(t={}),t.FS=" ",t.RS=` +`;var r=b0(e,t);return r}function m2(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Oe(e["!ref"]),a="",s=[],f,o=[],l=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=je(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=ze(c),f=i.s.c;f<=i.e.c;++f)if(t=s[f]+a,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 Ws(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},s=0,f=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?We(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+i}};if(a["!ref"]){var x=Oe(a["!ref"]);c.e.c=Math.max(c.e.c,x.e.c),c.e.r=Math.max(c.e.r,x.e.r),s==-1&&(s=x.e.r+1,c.e.r=s+t.length-1+i)}else s==-1&&(s=0,c.e.r=t.length-1+i);var h=n.header||[],p=0;t.forEach(function(u,m){Ke(u).forEach(function(A){(p=h.indexOf(A))==-1&&(h[p=h.length]=A);var O=u[A],F="z",M="",K=Ae({c:f+p,r:s+m+i});l=Jt(a,K),O&&typeof O=="object"&&!(O instanceof Date)?a[K]=O:(typeof O=="number"?F="n":typeof O=="boolean"?F="b":typeof O=="string"?F="s":O instanceof Date?(F="d",n.cellDates||(F="n",O=fr(O)),M=n.dateNF||Re[14]):O===null&&n.nullError&&(F="e",O=0),l?(l.t=F,l.v=O,delete l.w,delete l.R,M&&(l.z=M)):a[K]=l={t:F,v:O},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+h.length-1);var _=ze(s);if(i)for(p=0;p=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 T2(){return{SheetNames:[],Sheets:{}}}function E2(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=s+i)!=-1;++i);}if(Is(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 w2(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=_2(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 S2(e,t){return e.z=t,e}function Hs(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function A2(e,t,r){return Hs(e,"#"+t,r)}function F2(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function y2(e,t,r,n){for(var i=typeof t!="string"?t:Oe(t),a=typeof t=="string"?t:Me(t),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var o=Jt(e,s,f);o.t="n",o.F=a,delete o.v,s==i.s.r&&f==i.s.c&&(o.f=r,n&&(o.D=!0))}return e}var C2={encode_col:je,encode_row:ze,encode_cell:Ae,encode_range:Me,decode_col:y0,decode_row:F0,split_cell:Wo,decode_cell:We,decode_range:dr,format_cell:Wr,sheet_add_aoa:$a,sheet_add_json:Ws,sheet_add_dom:Ps,aoa_to_sheet:It,json_to_sheet:g2,table_to_sheet:Ms,table_to_book:jd,sheet_to_csv:b0,sheet_to_txt:Us,sheet_to_json:Dn,sheet_to_html:Ls,sheet_to_formulae:m2,sheet_to_row_object_array:Dn,sheet_get_cell:Jt,book_new:T2,book_append_sheet:E2,book_set_sheet_visibility:w2,cell_set_number_format:S2,cell_set_hyperlink:Hs,cell_set_internal_link:A2,cell_add_comment:F2,sheet_set_array_formula:y2,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};/** * Exports the generated truth table to an excel (.xlsx) file * * @param type The downloaded files extension. Default is "xlsx" @@ -126,8 +126,8 @@ import{b as qe,i as ce,t as de,d as In,e as Pe,c as Y,s as rr,F as at,f as h0,g * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function O2({type:e="xlsx",name:t="Truth Table",dl:r=!1,tableId:n}){const i=document.getElementById(n),a=C2.table_to_book(i,{sheet:"sheet1"});return r?B0(a,{bookType:e,bookSST:!0,type:"base64"}):d2(a,t+"."+e)}const D2=de("

Fill in a truth expression and it will be simplified for you as much as possible. It will also genereate a truth table with all possible values. You can use a single letter, word or multiple words without spacing for each atomic value. If you do not want to simplify the expression, simply turn off the toggle. Keywords for operators are defined below. Parentheses is also allowed.

"),I2=de("

API docs can be found .

"),N2=de('Simplify: '),Hi=de('
'),k2=de("

Filename:

"),$s=de("

"),R2=de('
'),L2=de('
'),P2=de(''),M2=de('

Download

'),B2=de(''),b2=de('
'),U2=de("

using:

"),W2=de("using: "),H2=de(':'),$2=de(""),G2=de('
Not:!
And:&
Or:|/
Implication:->
'),V2=()=>{let e,t=!0,r=!1;typeof location<"u"&&(e=new URLSearchParams(location.search),e.has("simplify")&&(t=e.get("simplify")==="true"),e.has("exp")&&(r=!0));const[n,i]=Pe(t),[a,s]=Pe(null),[f,o]=Pe(r),l=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[c,x]=Pe(l[0]),h=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[d,_]=Pe(h[0]),[u,m]=Pe(!1),[A,O]=Pe(null),[F,M]=Pe(null);function K(oe){oe.preventDefault();let ie=U()?.value;ie&&(ie=ie.replaceAll("|","/").trimEnd(),history.pushState(null,"",`?exp=${encodeURIComponent(ie)}&simplify=${n()}& -hide=${c().value}&sort=${d().value}&hideIntermediate=${u()}`),ee(ie))}function ee(oe){s(null),oe!==""&&(M(null),O(!1),fetch(`https://api.martials.no/simplify-truths/do/simplify/table?exp=${encodeURIComponent(oe)}& -simplify=${n()}&hide=${c().value}&sort=${d().value}&caseSensitive=false& -hideIntermediate=${u()}`).then(ie=>ie.json()).then(ie=>s(ie)).catch(ie=>M(ie.toString())).finally(()=>O(!0)))}const D="truth-input";function U(){return document.getElementById(D)}function L(){const oe=U();oe&&oe.value!==""!==f()&&o(oe.value!=="")}function G(){const oe=U();oe&&(oe.value="",o(!1),history.replaceState(null,"",location.pathname),oe.focus())}const V="truth-table",X="excel-filename";xf(()=>{if(e.has("exp")){const oe=e.get("exp");oe!==""&&(U().value=oe);const ie=e.get("hide");ie&&x(l.find(ye=>ye.value===ie)??l[0]);const Fe=e.get("sort");Fe&&_(h.find(ye=>ye.value===Fe)??h[0]);const ue=e.get("hideIntermediate");ue&&m(ue==="true"),ee(oe)}U()?.focus()});function re(){const oe=document.getElementById(X)?.value;O2({name:oe!==""?oe:void 0,tableId:V})}return Y(wf,{title:"Truth tables",get children(){const oe=L2.cloneNode(!0),ie=oe.firstChild,Fe=ie.firstChild;return ce(ie,Y(sa,{get children(){return[Y(v0,{title:"How to",get children(){return[D2.cloneNode(!0),(()=>{const ue=I2.cloneNode(!0),ye=ue.firstChild,Re=ye.nextSibling;return Re.nextSibling,ce(ue,Y(df,{to:"https://api.martials.no/simplify-truths",children:"here"}),Re),ue})()]}}),Y(z2,{})]}}),Fe),Fe.addEventListener("submit",K),ce(Fe,Y(j0,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:"w-full",id:"truth-input",placeholder:"¬A & B -> C",type:"text",onChange:L,get leading(){return Y(Lr,{path:pf,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return Y(nr,{get when(){return f()},keyed:!0,get children(){const ue=P2.cloneNode(!0);return ue.$$click=G,ce(ue,Y(Lr,{path:vf,"aria-label":"The letter X"})),ue}})}}),null),ce(Fe,Y(pn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ce(ie,Y(Xi,{className:"my-1 gap-2",get children(){return[N2.cloneNode(!0),Y(Q0,{onChange:i,get defaultValue(){return n()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const ue=Hi.cloneNode(!0);return ce(ue,Y(ei,{title:"Filter results",id:"filter-results",get button(){return Y(nr,{get when(){return c().value!=="NONE"},get children(){return Y(Lr,{path:mf,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${c().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return Y(Lr,{path:gf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return Y(at,{each:l,children:ye=>Y($i,{onClick:()=>x(ye),option:ye,currentValue:c})})},itemsClassName:"right-0"})),ue})(),(()=>{const ue=Hi.cloneNode(!0);return ce(ue,Y(ei,{title:"Sort results",id:"sort-results",get button(){return Y(Lr,{path:_f,"aria-label":"Filter",get class(){return`h-6 w-6 ${d().value==="TRUE_FIRST"?"text-green-500":d().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return Y(at,{each:h,children:ye=>Y($i,{option:ye,currentValue:d,onClick:()=>_(ye)})})},itemsClassName:"right-0"})),ue})(),Y(Q0,{title:"Hide intermediate values",onChange:m,get defaultValue(){return u()}}),Y(nr,{get when(){return A()},keyed:!0,get children(){return Y(Pl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[M2.cloneNode(!0),Y(Lr,{"aria-label":"Download",path:Tf})]},callback:re,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClasses:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[k2.cloneNode(!0),Y(j0,{className:"border-rounded h-10 px-2",id:X,placeholder:"Truth Table"})]}})}})]}}),null),ce(ie,Y(nr,{get when(){return A()===!1},keyed:!0,get children(){return Y(Lr,{path:Ef,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ce(ie,Y(nr,{get when(){return F()},keyed:!0,get children(){return Y(Gi,{title:"Fetch error",get error(){return F()}})}}),null),ce(ie,Y(nr,{get when(){return wt(()=>!!(F()===null&&A()))()&&a()?.status.code!==200},keyed:!0,get children(){return Y(Gi,{title:"Input error",get error(){return a()?.status.message}})}}),null),ce(ie,Y(nr,{get when(){return wt(()=>!!n())()&&a()?.orderOperations?.length>0},keyed:!0,get children(){return Y(X2,{fetchResult:a})}}),null),ce(oe,Y(nr,{get when(){return wt(()=>!!A())()&&a()?.status?.code===200},keyed:!0,get children(){return[Y(nr,{get when(){return n()},keyed:!0,get children(){return Y(aa,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const ue=$s.cloneNode(!0);return ce(ue,()=>a()?.after),ue}})}}),(()=>{const ue=R2.cloneNode(!0),ye=ue.firstChild;return ce(ye,Y(Lf,{get header(){return a()?.header},get table(){return a()?.table?.truthMatrix},id:V})),ue})()]}}),null),oe}})},$i=({option:e,currentValue:t,onClick:r})=>{const n=()=>t()?.value===e.value;return(()=>{const i=B2.cloneNode(!0);return Vi(i,"click",r,!0),ce(i,Y(Lr,{path:Sf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),ce(i,()=>e.name,null),i})()},Gi=({title:e,error:t})=>Y(aa,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const r=$s.cloneNode(!0);return ce(r,t),r}}),X2=({fetchResult:e})=>Y(sa,{get children(){return Y(v0,{title:"Show me how it's done",get children(){const t=b2.cloneNode(!0),r=t.firstChild;return ce(r,Y(at,{get each(){return e()?.orderOperations},children:(n,i)=>(()=>{const a=H2.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return ce(s,()=>i()+1,f),ce(o,()=>Y(at,{get each(){return Al(n.before,n.after)},children:l=>(()=>{const c=$2.cloneNode(!0);return ce(c,()=>l.value),h0(()=>qe(c,`${l.added&&"bg-green-700"} - ${l.removed&&"bg-red-700"}`)),c})()}),null),ce(o,Y(nr,{get when(){return typeof window<"u"&&window.outerWidth<=640},keyed:!0,get children(){const l=U2.cloneNode(!0);return l.firstChild,ce(l,()=>n.law,null),l}}),null),ce(a,Y(nr,{get when(){return typeof window<"u"&&window.outerWidth>640},keyed:!0,get children(){const l=W2.cloneNode(!0);return l.firstChild,ce(l,()=>n.law,null),l}}),null),a})()})),t}})}}),z2=()=>Y(v0,{title:"Keywords",get children(){return G2.cloneNode(!0)}});hf(()=>Y(V2,{}),document.getElementById("root"));In(["click"]); + */function O2({type:e="xlsx",name:t="Truth Table",dl:r=!1,tableId:n}){const i=document.getElementById(n),a=C2.table_to_book(i,{sheet:"sheet1"});return r?B0(a,{bookType:e,bookSST:!0,type:"base64"}):d2(a,t+"."+e)}const D2=de("

Fill in a truth expression and it will be simplified for you as much as possible. It will also genereate a truth table with all possible values. You can use a single letter, word or multiple words without spacing for each atomic value. If you do not want to simplify the expression, simply turn off the toggle. Keywords for operators are defined below. Parentheses is also allowed.

"),I2=de("

API docs can be found .

"),N2=de('Simplify: '),Hi=de('
'),k2=de("

Filename:

"),$s=de("

"),R2=de('
'),L2=de('
'),P2=de(''),M2=de('

Download

'),B2=de(''),b2=de('
'),U2=de("

using:

"),W2=de("using: "),H2=de(':'),$2=de(""),G2=de('
Not:!
And:&
Or:|/
Implication:->
'),V2=()=>{let e,t=!0,r=!1,n=!1;typeof location<"u"&&(e=new URLSearchParams(location.search),e.has("simplify")&&(t=e.get("simplify")==="true"),e.has("exp")&&(r=!0),e.has("hideIntermediate")&&(n=e.get("hideIntermediate")==="true"));const[i,a]=Pe(t),[s,f]=Pe(null),[o,l]=Pe(r),c=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[x,h]=Pe(c[0]),p=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[_,u]=Pe(p[0]),[m,A]=Pe(n),[O,F]=Pe(null),[M,K]=Pe(null);function re(ie){ie.preventDefault();let ue=R()?.value;ue&&(ue=ue.replaceAll("|","/").trimEnd(),history.pushState(null,"",`?exp=${encodeURIComponent(ue)}&simplify=${i()}& +hide=${x().value}&sort=${_().value}&hideIntermediate=${m()}`),D(ue))}function D(ie){f(null),ie!==""&&(K(null),F(!1),fetch(`https://api.martials.no/simplify-truths/do/simplify/table?exp=${encodeURIComponent(ie)}& +simplify=${i()}&hide=${x().value}&sort=${_().value}&caseSensitive=false& +hideIntermediate=${m()}`).then(ue=>ue.json()).then(ue=>f(ue)).catch(ue=>K(ue.toString())).finally(()=>F(!0)))}const U="truth-input";function R(){return document.getElementById(U)}function G(){const ie=R();ie&&ie.value!==""!==o()&&l(ie.value!=="")}function V(){const ie=R();ie&&(ie.value="",l(!1),history.replaceState(null,"",location.pathname),ie.focus())}const X="truth-table",ee="excel-filename";xf(()=>{if(e.has("exp")){const ie=e.get("exp");ie!==""&&(R().value=ie);const ue=e.get("hide");ue&&h(c.find(xe=>xe.value===ue)??c[0]);const Te=e.get("sort");Te&&u(p.find(xe=>xe.value===Te)??p[0]),D(ie)}R()?.focus()});function ge(){const ie=document.getElementById(ee)?.value;O2({name:ie!==""?ie:void 0,tableId:X})}return Y(wf,{title:"Truth tables",get children(){const ie=L2.cloneNode(!0),ue=ie.firstChild,Te=ue.firstChild;return oe(ue,Y(sa,{get children(){return[Y(v0,{title:"How to",get children(){return[D2.cloneNode(!0),(()=>{const xe=I2.cloneNode(!0),Fe=xe.firstChild,Ze=Fe.nextSibling;return Ze.nextSibling,oe(xe,Y(df,{to:"https://api.martials.no/simplify-truths",children:"here"}),Ze),xe})()]}}),Y(z2,{})]}}),Te),Te.addEventListener("submit",re),oe(Te,Y(j0,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:"w-full",id:"truth-input",placeholder:"¬A & B -> C",type:"text",onChange:G,get leading(){return Y(Lr,{path:pf,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return Y(ir,{get when(){return o()},keyed:!0,get children(){const xe=P2.cloneNode(!0);return xe.$$click=V,oe(xe,Y(Lr,{path:vf,"aria-label":"The letter X"})),xe}})}}),null),oe(Te,Y(pn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),oe(ue,Y(Xi,{className:"my-1 gap-2",get children(){return[N2.cloneNode(!0),Y(Q0,{onChange:a,get defaultValue(){return i()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const xe=Hi.cloneNode(!0);return oe(xe,Y(ei,{title:"Filter results",id:"filter-results",get button(){return Y(ir,{get when(){return x().value!=="NONE"},get children(){return Y(Lr,{path:mf,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${x().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return Y(Lr,{path:gf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return Y(at,{each:c,children:Fe=>Y($i,{onClick:()=>h(Fe),option:Fe,currentValue:x})})},itemsClassName:"right-0"})),xe})(),(()=>{const xe=Hi.cloneNode(!0);return oe(xe,Y(ei,{title:"Sort results",id:"sort-results",get button(){return Y(Lr,{path:_f,"aria-label":"Filter",get class(){return`h-6 w-6 ${_().value==="TRUE_FIRST"?"text-green-500":_().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return Y(at,{each:p,children:Fe=>Y($i,{option:Fe,currentValue:_,onClick:()=>u(Fe)})})},itemsClassName:"right-0"})),xe})(),Y(Q0,{title:"Hide intermediate values",onChange:A,get defaultValue(){return m()}}),Y(ir,{get when(){return O()},keyed:!0,get children(){return Y(Pl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[M2.cloneNode(!0),Y(Lr,{"aria-label":"Download",path:Tf})]},callback:ge,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClasses:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[k2.cloneNode(!0),Y(j0,{className:"border-rounded h-10 px-2",id:ee,placeholder:"Truth Table"})]}})}})]}}),null),oe(ue,Y(ir,{get when(){return O()===!1},keyed:!0,get children(){return Y(Lr,{path:Ef,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),oe(ue,Y(ir,{get when(){return M()},keyed:!0,get children(){return Y(Gi,{title:"Fetch error",get error(){return M()}})}}),null),oe(ue,Y(ir,{get when(){return wt(()=>!!(M()===null&&O()))()&&s()?.status.code!==200},keyed:!0,get children(){return Y(Gi,{title:"Input error",get error(){return s()?.status.message}})}}),null),oe(ue,Y(ir,{get when(){return wt(()=>!!i())()&&s()?.orderOperations?.length>0},keyed:!0,get children(){return Y(X2,{fetchResult:s})}}),null),oe(ie,Y(ir,{get when(){return wt(()=>!!O())()&&s()?.status?.code===200},keyed:!0,get children(){return[Y(ir,{get when(){return i()},keyed:!0,get children(){return Y(aa,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const xe=$s.cloneNode(!0);return oe(xe,()=>s()?.after),xe}})}}),(()=>{const xe=R2.cloneNode(!0),Fe=xe.firstChild;return oe(Fe,Y(Lf,{get header(){return s()?.header},get table(){return s()?.table?.truthMatrix},id:X})),xe})()]}}),null),ie}})},$i=({option:e,currentValue:t,onClick:r})=>{const n=()=>t()?.value===e.value;return(()=>{const i=B2.cloneNode(!0);return Vi(i,"click",r,!0),oe(i,Y(Lr,{path:Sf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),oe(i,()=>e.name,null),i})()},Gi=({title:e,error:t})=>Y(aa,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const r=$s.cloneNode(!0);return oe(r,t),r}}),X2=({fetchResult:e})=>Y(sa,{get children(){return Y(v0,{title:"Show me how it's done",get children(){const t=b2.cloneNode(!0),r=t.firstChild;return oe(r,Y(at,{get each(){return e()?.orderOperations},children:(n,i)=>(()=>{const a=H2.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return oe(s,()=>i()+1,f),oe(o,()=>Y(at,{get each(){return Al(n.before,n.after)},children:l=>(()=>{const c=$2.cloneNode(!0);return oe(c,()=>l.value),h0(()=>qe(c,`${l.added&&"bg-green-700"} + ${l.removed&&"bg-red-700"}`)),c})()}),null),oe(o,Y(ir,{get when(){return typeof window<"u"&&window.outerWidth<=640},keyed:!0,get children(){const l=U2.cloneNode(!0);return l.firstChild,oe(l,()=>n.law,null),l}}),null),oe(a,Y(ir,{get when(){return typeof window<"u"&&window.outerWidth>640},keyed:!0,get children(){const l=W2.cloneNode(!0);return l.firstChild,oe(l,()=>n.law,null),l}}),null),a})()})),t}})}}),z2=()=>Y(v0,{title:"Keywords",get children(){return G2.cloneNode(!0)}});hf(()=>Y(V2,{}),document.getElementById("root"));In(["click"]); diff --git a/simplify-truths.html b/simplify-truths.html index 37433f9..618fe99 100644 --- a/simplify-truths.html +++ b/simplify-truths.html @@ -8,7 +8,7 @@ - +