0&&(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 Ui=/"/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(Ui,'""')+'"';break}c=="ID"&&(c='"ID"')}else d.f!=null&&!d.F?(o=!1,c="="+d.f,c.indexOf(",")>=0&&(c='"'+c.replace(Ui,'""')+'"')):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 bs(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 Us(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(Ds(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 Ws(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function A2(e,t,r){return Ws(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:Ha,sheet_add_json:Us,sheet_add_dom:Ls,aoa_to_sheet:It,json_to_sheet:g2,table_to_sheet:Ps,table_to_book:jd,sheet_to_csv:b0,sheet_to_txt:bs,sheet_to_json:Dn,sheet_to_html:Rs,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:Ws,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"
+ * @param name The name of the file, excluding the extension. Default is "Truth Table"
+ * @param dl
+ * @param tableId The id of the table to export
+ * @returns {any}
+ * @author SheetJS
+ * @link https://cdn.sheetjs.com/
+ * @license Apache 2.0 License
+ * SheetJS Community Edition -- https://sheetjs.com/
+ *
+ * Copyright (C) 2012-present SheetJS LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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: '),Wi=de('
'),k2=de("Filename:
"),Hs=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.replaceAll("|","/").trimEnd(),ie&&(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";hf(()=>{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 j(Ef,{title:"Truth tables",get children(){const oe=L2.cloneNode(!0),ie=oe.firstChild,Fe=ie.firstChild;return ce(ie,j(aa,{get children(){return[j(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,j(xf,{to:"https://api.martials.no/simplify-truths",children:"here"}),Re),ue})()]}}),j(z2,{})]}}),Fe),Fe.addEventListener("submit",K),ce(Fe,j(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 j(Lr,{path:df,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return j(nr,{get when(){return f()},keyed:!0,get children(){const ue=P2.cloneNode(!0);return ue.$$click=G,ce(ue,j(Lr,{path:pf,"aria-label":"The letter X"})),ue}})}}),null),ce(Fe,j(pn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ce(ie,j(Vi,{className:"my-1 gap-2",get children(){return[N2.cloneNode(!0),j(Dl,{onChange:i,get defaultValue(){return n()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Filter results",id:"filter-results",get button(){return j(nr,{get when(){return c().value!=="NONE"},get children(){return j(Lr,{path:vf,"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 j(Lr,{path:mf,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return j(at,{each:l,children:ye=>j(Hi,{onClick:()=>x(ye),option:ye,currentValue:c})})},itemsClassName:"right-0"})),ue})(),(()=>{const ue=Wi.cloneNode(!0);return ce(ue,j(Q0,{title:"Sort results",id:"sort-results",get button(){return j(Lr,{path:gf,"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 j(at,{each:h,children:ye=>j(Hi,{option:ye,currentValue:d,onClick:()=>_(ye)})})},itemsClassName:"right-0"})),ue})(),j(nr,{get when(){return A()},keyed:!0,get children(){return j(Pl,{title:"Download",description:"Export current table (.xlsx)",get button(){return[M2.cloneNode(!0),j(Lr,{"aria-label":"Download",path:_f})]},callback:re,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClasses:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[k2.cloneNode(!0),j(j0,{className:"border-rounded h-10 px-2",id:X,placeholder:"Truth Table"})]}})}})]}}),null),ce(ie,j(nr,{get when(){return A()===!1},keyed:!0,get children(){return j(Lr,{path:Tf,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ce(ie,j(nr,{get when(){return F()},keyed:!0,get children(){return j($i,{title:"Fetch error",get error(){return F()}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!(F()===null&&A()))()&&a()?.status.code!==200},keyed:!0,get children(){return j($i,{title:"Input error",get error(){return a()?.status.message}})}}),null),ce(ie,j(nr,{get when(){return wt(()=>!!n())()&&a()?.orderOperations?.length>0},keyed:!0,get children(){return j(X2,{fetchResult:a})}}),null),ce(oe,j(nr,{get when(){return wt(()=>!!A())()&&a()?.status?.code===200},keyed:!0,get children(){return[j(nr,{get when(){return n()},keyed:!0,get children(){return j(ia,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const ue=Hs.cloneNode(!0);return ce(ue,()=>a()?.after),ue}})}}),(()=>{const ue=R2.cloneNode(!0),ye=ue.firstChild;return ce(ye,j(Rf,{get header(){return a()?.header},get table(){return a()?.table?.truthMatrix},id:V})),ue})()]}}),null),oe}})},Hi=({option:e,currentValue:t,onClick:r})=>{const n=()=>t()?.value===e.value;return(()=>{const i=B2.cloneNode(!0);return Gi(i,"click",r,!0),ce(i,j(Lr,{path:wf,get["aria-label"](){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"text-transparent"}`}}),null),ce(i,()=>e.name,null),i})()},$i=({title:e,error:t})=>j(ia,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const r=Hs.cloneNode(!0);return ce(r,t),r}}),X2=({fetchResult:e})=>j(aa,{get children(){return j(v0,{title:"Show me how it's done",get children(){const t=b2.cloneNode(!0),r=t.firstChild;return ce(r,j(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,()=>j(at,{get each(){return Sl(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,j(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,j(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=()=>j(v0,{title:"Keywords",get children(){return G2.cloneNode(!0)}});uf(()=>j(V2,{}),document.getElementById("root"));In(["click"]);
diff --git a/assets/simplifyTruths.60860bcf.js b/assets/simplifyTruths.60860bcf.js
deleted file mode 100644
index b1fd880..0000000
--- a/assets/simplifyTruths.60860bcf.js
+++ /dev/null
@@ -1,132 +0,0 @@
-import{b as Je,i as ce,t as xe,d as In,e as Me,c as j,s as er,F as at,f as h0,g as af,m as mr,h as Ot,o as Nn,u as kn,D as sf,j as nr,k as ff,l as wt,S as tr,n as Rn,p as lf,I as Lr,q as of,v as Gi,P as cf,r as uf,w as hf,L as xf,x as df,y as pf,z as vf,A as mf,B as gf,C as _f,E as Tf,a as Ef,G as wf}from"./layout.bb853e75.js";const Sf=xe("
"),Vi=({children:e,className:t})=>(()=>{const r=Sf.cloneNode(!0);return Je(r,`flex-row-center ${t}`),ce(r,e),r})(),Af=xe(" "),Ff=xe('
');function yf(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 Cf(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})=>{const[c,x]=Me(!1),[h,p]=Me(!1),[_,u]=Me(!1);return document.addEventListener("DOMContentLoaded",()=>{t&&i&&yf(t,p)}),j(Vi,{className:"relative",get children(){return[o,j(Of,{title:i,get isActive(){return c()||h()||_()},htmlFor:t}),(()=>{const v=Af.cloneNode(!0);return v.$$input=()=>{Cf(t,_(),u),f&&f()},v.addEventListener("blur",()=>x(!1)),v.addEventListener("focus",()=>x(!0)),Je(v,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500
- hover:border-t-cyan-400 ${e}`),er(v,"id",t),er(v,"name",r??void 0),er(v,"type",n),er(v,"placeholder",a??void 0),v.required=s,v})(),l]}})};function Of({title:e,isActive:t=!1,htmlFor:r}){return(()=>{const n=Ff.cloneNode(!0),i=n.firstChild;return Je(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`),er(n,"for",r),ce(i,e),n})()}In(["input"]);const Df=xe(""),If=xe(`
`),Nf=xe(' '),kf=xe("
"),Rf=({table:e,header:t,className:r,style:n,id:i})=>(()=>{const a=Df.cloneNode(!0),s=a.firstChild,f=s.firstChild,o=s.nextSibling;return Je(a,`border-2 border-gray-500 border-collapse table z-10 ${r}`),er(a,"id",i),ce(f,j(at,{each:t,children:l=>(()=>{const c=If.cloneNode(!0),x=c.firstChild;return ce(x,l),c})()})),ce(o,j(at,{each:e,children:l=>(()=>{const c=Nf.cloneNode(!0);return ce(c,j(at,{each:l,children:x=>(()=>{const h=kf.cloneNode(!0),p=h.firstChild;return Je(h,`text-center border border-gray-500 last:underline
- ${x?"bg-green-700":"bg-red-700"}`),ce(p,x?"T":"F"),h})()})),c})()})),h0(l=>af(a,n,l)),a})();function Fr(e,t){let r={},n=Object.keys(e);for(let i=0,a=n.length;i`.")}function Lf(e){return typeof e=="function"&&e.length>0}function Pf(e){let t=Ln();return wt(()=>{let r=e.children;return Lf(r)?r(t):r})}function ct(e){return{get children(){return j(Pf,{get children(){return e.children}})}}}function Mf(e){let t,r;if("defaultOpen"in e){let[n,i]=Me(e.defaultOpen);t=n,r=a=>{lf(()=>{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=Mf(e);return j(Xi.Provider,{value:t,get children(){return wt(()=>{let r=e.children;return Bf(r)?r(t):r})}})}function Ir(e,t){return j(sf,mr({get component(){return e()}},t))}function bf(e){return typeof e=="function"}function Mn(e,t){return r=>{"ref"in e&&bf(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 Uf(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Wf='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 zi(e,t){let r=e.querySelectorAll(Wf),n=[];for(let i=0,a=r.length;i =0&&n=e.length&&(n=0),r===-1&&n<0&&(n=e.length-1)}}function Hf(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"},mr({get tabindex(){return e.disabled?-1:0},role:"button"},Bn(()=>e.disabled),Fr(e,["as","ref"]),zf,{ref:Mn(e,n=>{r(()=>n)})}))}function bn(e,t,r){return j(tr,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return r()},get children(){return j(tr,{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 Yf(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():Yf(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=J0()}};function qi(){return new jf}function Zi(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 Qi=Jr("dialog"),Jf=Jr("dialog-description"),qf=Jr("dialog-panel"),Zf=Jr("dialog-title");function Qf(e){let t=nr(),r=nr(),n=nr(),i=nr(),a=qi();return j(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return j(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"},mr(Fr(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),Qi,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function el(e){let t=nr(),r=nr(),n=nr(),i=nr(),a=qi();return j(x0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return j(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"},mr(Fr(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),Qi,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ct(e))))})}})}function rl(e){return"defaultOpen"in e}function tl(e){return rl(e)?j(el,e):j(Qf,e)}function nl(e){let t=d0("DialogDescription");return Ir(()=>{var r;return(r=e.as)!=null?r:"p"},mr(Fr(e,["as","children"]),Jf,{id:t.descriptionID},ct(e)))}function il(e){let t=d0("DialogPanel"),r=Ln(),[n,i]=Me();return Ot(()=>{let a=n();if(a instanceof HTMLElement&&r.isOpen()){Ji(zi(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Vf(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"},mr(Fr(e,["as","children","ref"]),qf,{id:t.panelID,ref:Mn(e,a=>{i(()=>a)})},ct(e)))}function al(e){let t=d0("DialogTitle");return Ir(()=>{var r;return(r=e.as)!=null?r:"h2"},mr(Fr(e,["as","children"]),Zf,{id:t.titleID},ct(e)))}var p0=Rn();function ea(e){let t=kn(p0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ra=Jr("disclosure"),sl=Jr("disclosure-button"),fl=Jr("disclosure-panel");function ll(e){let t=nr(),r=nr(),n=nr();return j(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Zi},mr(Fr(e,["isOpen","as","children","disabled","onChange"]),ra,Bn(()=>e.disabled),{get children(){return j(Pn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function ol(e){let t=nr(),r=nr(),n=nr();return j(p0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:Zi},mr(Fr(e,["defaultOpen","as","children","disabled","onChange"]),ra,Bn(()=>e.disabled),{get children(){return j(Pn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function cl(e){return"defaultOpen"in e}function ul(e){return cl(e)?j(ol,e):j(ll,e)}function hl(e){let t=ea("DisclosureButton"),r=Ln(),[n,i]=Me();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)})}}),j(Kf,mr(Fr(e,["children","ref"]),sl,{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}),Uf(()=>r.isOpen()),ct(e)))}function xl(e){let t=ea("DisclosurePanel"),r=Ln();return bn(e,()=>r.isOpen(),()=>Ir(()=>{var n;return(n=e.as)!=null?n:"div"},mr(Fr(e,["as","unmount","children"]),fl,{id:t.panelID},ct(e))))}var ta=Rn();function dl(e){let t=kn(ta);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 pl(e){let t=dl("TransitionChild"),[r,n]=Me(t.show),[i,a]=Me(),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),v=()=>{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",v,{once:!0}),o.addEventListener("animationend",v,{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 v=()=>{var A;tt(o,h),tt(o,_),n(!1),(A=e.afterLeave)==null||A.call(e)};o.addEventListener("transitionend",v,{once:!0}),o.addEventListener("animationend",v,{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"},mr(Fr(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:Mn(e,o=>{a(()=>o)})})))}function vl(e){let[t,r]=ff(e,["show"]);return j(ta.Provider,{value:t,get children(){return j(pl,r)}})}const ml=xe(''),na=xe("
"),gl=xe('
'),_l=xe('
'),ia=({title:e="",children:t,error:r=!1,className:n})=>(()=>{const i=ml.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Je(i,`border-rounded ${r?"border-red-500":"border-gray-500"} ${n}`),Je(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=na.cloneNode(!0);return er(s,"id",i),Je(s,`border-rounded bg-default-bg ${n}`),ce(s,j(ul,{defaultOpen:r,children:({isOpen:f})=>[j(hl,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{const o=gl.cloneNode(!0);return ce(o,e),o})(),j(Lr,{path:of,get class(){return`w-5 ${f()&&"transform rotate-180"} transition`}})]}}),j(vl,{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 j(xl,{get children(){const o=_l.cloneNode(!0);return ce(o,t),o}})}})]})),s})(),aa=({children:e,className:t})=>(()=>{const r=na.cloneNode(!0);return Je(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 p(){for(var u=-1*l;u<=l;u+=2){var v=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(Tl(a,v.components,r,t,a.useLongestToken));x[u]=v}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 El(e){return{newPos:e.newPos,components:e.components.slice(0)}}var wl=new Hr;function Sl(e,t,r){return wl.diff(e,t,r)}var q0=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Z0=/\S/,sa=new Hr;sa.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)};sa.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 '),Ol=xe(" "),Dl=({defaultValue:e=!1,title:t,onChange:r,className:n,name:i,id:a})=>{const[s,f]=Me(e);function o(){const l=!s();f(l),r&&r(l)}return(()=>{const l=Cl.cloneNode(!0),c=l.firstChild,x=c.nextSibling;return l.$$click=o,er(l,"id",a),er(l,"title",t),ce(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 p!==h._v$&&Je(l,h._v$=p),_!==h._v$2&&Je(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=Ol.cloneNode(!0);return Gi(s,"click",i,!0),er(s,"title",t),er(s,"id",n),er(s,"type",a),Je(s,`border-rounded bg-cyan-900 px-2 cursor-pointer ${e}`),ce(s,r),s})();In(["click"]);const Il=xe(''),Nl=xe("
"),Q0=({title:e,button:t,children:r,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,o]=Me(!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 Je(x,`${i}`),er(x,"id",n),ce(x,j(pn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:t}),null),ce(x,j(tr,{get when(){return f()},keyed:!0,get children(){const h=Il.cloneNode(!0),p=h.firstChild;return Je(h,`absolute bg-default-bg border border-gray-500 rounded-b-xl mt-1 w-max z-50 ${s}`),ce(p,r),h}}),null),x})()},kl=xe('
'),Rl=xe('
'),Ll=xe('
');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]=Me(!1);function p(){s&&s(),h(!1)}function _(){let u=!0;function v(A){u&&A.key==="Enter"&&document.getElementById(c??"")?.click()}if(x()){const A="cl-6",O=document.getElementById(A);return O?.addEventListener("keypress",F=>v(F)),()=>{O?.removeEventListener("keypress",F=>v(F)),u=!1}}}return Ot(_,x()),(()=>{const u=Ll.cloneNode(!0),v=u.firstChild;return v.$$click=()=>h(!0),Je(v,o),er(v,"title",l??void 0),ce(v,r),ce(u,j(cf,{get children(){return j(tl,{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 er(A,"aria-hidden",!0),A})(),j(il,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[j(al,{class:"border-b",children:e}),j(nl,{class:"mb-4 mt-1",children:t}),a,(()=>{const A=Rl.cloneNode(!0);return ce(A,j(pn,{onClick:p,className:"h-10 mr-2",id:c,children:n}),null),ce(A,j(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 la=1252,Ml=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],oa=function(e){Ml.indexOf(e)!=-1&&(la=e)};function Bl(){oa(1252)}var Xt=function(e){oa(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)},ei=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 ve=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 ve?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function ri(e){return ve?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return ve?$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 Ge=ve?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)),Ge(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:Oe("0",t-r.length)+r}function m0(e,t){var r=""+e;return r.length>=t?r:Oe(" ",t-r.length)+r}function mn(e,t){var r=""+e;return r.length>=t?r:r+Oe(" ",t-r.length)}function $l(e,t){var r=""+Math.round(e);return r.length>=t?r:Oe("0",t-r.length)+r}function Gl(e,t){var r=""+e;return r.length>=t?r:Oe("0",t-r.length)+r}var ti=Math.pow(2,32);function mt(e,t){if(e>ti||e<-ti)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 ni=[["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]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',e}var De={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:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},ii={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 ca=new Date(1899,11,31,0,0,0),zl=ca.getTime(),Kl=new Date(1900,2,1,0,0,0);function ua(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()-ca.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,ua(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 ni[r.q][0];default:return ni[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 ha=/%/g;function eo(e,t,r){var n=t.replace(ha,""),i=t.length-n.length;return Mr(e,n,r*Math.pow(10,2*i))+Oe("%",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 xa(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"-"+xa(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 da=/# (\?+)( ?)\/( ?)(\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?Oe(" ",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)+Oe(" ",e[1].length+2+e[4].length)}var pa=/^#*0*\.([0#]+)/,va=/\).*[0#]/,ma=/\(###\) ###\\?-####/;function Ze(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 ai(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function si(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 pr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(va)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?pr("n",n,r):"("+pr("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 xa(t,r);if(t.charCodeAt(0)===36)return"$"+pr(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:Ze(t.substr(0,t.length-i.length))+i;if(a=t.match(da))return to(a,o,l);if(t.match(/^#+0+$/))return l+mt(o,t.length-t.indexOf("0"));if(a=t.match(pa))return i=ai(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Ze(a[1])).replace(/\.$/,"."+Ze(a[1])).replace(/\.(\d*)$/,function(_,u){return"."+u+Oe("0",Ze(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+ai(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?"-"+pr(e,t,-r):zr(""+(Math.floor(r)+io(r,a[1].length)))+"."+Sr(si(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return pr(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=St(pr(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 ga(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:Ze(t.substr(0,t.length-i.length))+i;if(a=t.match(da))return no(a,o,l);if(t.match(/^#+0+$/))return l+Sr(o,t.length-t.indexOf("0"));if(a=t.match(pa))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Ze(a[1])).replace(/\.$/,"."+Ze(a[1])),i=i.replace(/\.(\d*)$/,function(_,u){return"."+u+Oe("0",Ze(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)+"."+Oe("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()==="\u4E0A\u5348/\u4E0B\u5348"?(l!=null&&(u.v=l.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),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]||"$",Ta(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(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var v=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",v<1&&(v=1);break;case"s":(O=i[s].v.match(/\.0+$/))&&(A=Math.max(A,O[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":o=i[s].t;break;case"m":o==="s"&&(i[s].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[s].v.match(/[Hh]/)&&(v=1),v<2&&i[s].v.match(/[Mm]/)&&(v=2),v<3&&i[s].v.match(/[Ss]/)&&(v=3)}switch(v){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 H=i.length;for(s=0;s-1){H=s;break}var L=i.length;if(H===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===H?i[s].v.indexOf(".")-1:i[s].v.length-1,z=i[s].v.substr(c+1);c>=0;--c)M>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(z=D.charAt(M--)+z);i[s].v=z,i[s].t="t",L=s}for(M>=0&&L-1&&s===H?i[s].v.indexOf(".")+1:0,z=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 X="";for(s=0;s!==i.length;++s)i[s]!=null&&(X+=i[s].v);return X}var fi=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function li(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(fi),f=r[1].match(fi);return li(t,s)?[n,r[0]]:li(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:De)[e],n==null&&(n=r.table&&r.table[ii[e]]||De[ii[e]]),n==null&&(n=Xl[e]||"General");break}if(gn(n,0))return l0(t,r);t instanceof Date&&(t=ua(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 Ea(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(De[r]==null){t<0&&(t=r);continue}if(De[r]==e){t=r;break}}t<0&&(t=391)}return De[t]=e,t}function Wn(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Ea(e[t],t)}function Hn(){De=Vl()}var wa=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function uo(e){var t=typeof e=="number"?De[e]:e;return t=t.replace(wa,"(\\d+)"),new RegExp("^"+t+"$")}function ho(e,t,r){var n=-1,i=-1,a=-1,s=-1,f=-1,o=-1;(t.match(wa)||[]).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,H=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,H[L]=D;return typeof Int32Array<"u"?new Int32Array(H):H}var r=t();function n(D){var H=0,L=0,X=0,U=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(X=0;X!=256;++X)U[X]=D[X];for(X=0;X!=256;++X)for(L=D[X],H=256+X;H<4096;H+=256)L=U[H]=L>>>8^D[L&255];var W=[];for(X=1;X!=16;++X)W[X-1]=typeof Int32Array<"u"?U.subarray(X*256,X*256+256):U.slice(X*256,X*256+256);return W}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],v=i[11],A=i[12],O=i[13],F=i[14];function M(D,H){for(var L=H^-1,X=0,U=D.length;X>>8^r[(L^D.charCodeAt(X++))&255];return~L}function z(D,H){for(var L=H^-1,X=D.length-15,U=0;U>8&255]^A[D[U++]^L>>16&255]^v[D[U++]^L>>>24]^u[D[U++]]^_[D[U++]]^p[D[U++]]^h[D[U++]]^x[D[U++]]^c[D[U++]]^l[D[U++]]^o[D[U++]]^f[D[U++]]^s[D[U++]]^a[D[U++]]^r[D[U++]];for(X+=15;U>>8^r[(L^D[U++])&255];return~L}function re(D,H){for(var L=H^-1,X=0,U=D.length,W=0,Q=0;X>>8^r[(L^W)&255]:W<2048?(L=L>>>8^r[(L^(192|W>>6&31))&255],L=L>>>8^r[(L^(128|W&63))&255]):W>=55296&&W<57344?(W=(W&1023)+64,Q=D.charCodeAt(X++)&1023,L=L>>>8^r[(L^(240|W>>8&7))&255],L=L>>>8^r[(L^(128|W>>2&63))&255],L=L>>>8^r[(L^(128|Q>>6&15|(W&3)<<4))&255],L=L>>>8^r[(L^(128|Q&63))&255]):(L=L>>>8^r[(L^(224|W>>12&15))&255],L=L>>>8^r[(L^(128|W>>6&63))&255],L=L>>>8^r[(L^(128|W&63))&255]);return~L}return e.table=r,e.bstr=M,e.buf=z,e.str=re,e}(),we=function(){var t={};t.version="1.2.1";function r(d,T){for(var m=d.split("/"),g=T.split("/"),E=0,w=0,N=Math.min(m.length,g.length);E>>1,d.write_shift(2,m);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,m=d.read_shift(2)&65535,g=new Date,E=m&31;m>>>=5;var w=m&15;m>>>=4,g.setMilliseconds(0),g.setFullYear(m+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){or(d,0);for(var T={},m=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:m=d.read_shift(1),m&1&&(N.mtime=d.read_shift(4)),E>5&&(m&2&&(N.atime=d.read_shift(4)),m&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 Zs(d,T);if(d.length<512)throw new Error("CFB file size "+d.length+" < 512");var m=3,g=512,E=0,w=0,N=0,b=0,I=0,k=[],R=d.slice(0,512);or(R,0);var K=x(R);switch(m=K[0],m){case 3:g=512;break;case 4:g=4096;break;case 0:if(K[1]==0)return Y0(d,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+m)}g!==512&&(R=d.slice(0,g),or(R,28));var Z=d.slice(0,g);h(R,m);var ne=R.read_shift(4,"i");if(m===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 Y=-1,te=0;te<109&&(Y=R.read_shift(4,"i"),!(Y<0));++te)k[te]=Y;var ue=p(d,g);v(I,w,ue,g,k);var Fe=O(ue,N,k,g);Fe[N].name="!Directory",E>0&&b!==Q&&(Fe[b].name="!MiniFAT"),Fe[k[0]].name="!FAT",Fe.fat_addrs=k,Fe.ssz=g;var ye={},Ke=[],Rt=[],Lt=[];F(N,Fe,ue,Ke,E,ye,Rt,b),_(Rt,Lt,Ke),Ke.shift();var Pt={FileIndex:Rt,FullPaths:Lt};return T&&T.raw&&(Pt.raw={header:Z,sectors:ue}),Pt}function x(d){if(d[d.l]==80&&d[d.l+1]==75)return[0,0];d.chk(le,"Header Signature: "),d.l+=16;var T=d.read_shift(2,"u");return[d.read_shift(2,"u"),T]}function h(d,T){var m=9;switch(d.l+=2,m=d.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+m);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+m);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+m)}d.chk("0600","Mini Sector Shift: "),d.chk("000000000000","Reserved: ")}function p(d,T){for(var m=Math.ceil(d.length/T)-1,g=[],E=1;E0&&N>=0;)w.push(T.slice(N*W,N*W+W)),E-=W,N=it(m,N*4);return w.length===0?B(0):Ge(w).slice(0,d.size)}function v(d,T,m,g,E){var w=Q;if(d===Q){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(d!==-1){var N=m[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 R=m[Math.floor(I*4/g)];if(k=I*4&b,g<4+k)throw new Error("FAT boundary crossed: "+I+" 4 "+g);if(!d[R])break;I=it(d[R],k)}return{nodes:w,data:vi([N])}}function O(d,T,m,g){var E=d.length,w=[],N=[],b=[],I=[],k=g-1,R=0,K=0,Z=0,ne=0;for(R=0;R=E&&(Z-=E),!N[Z]){I=[];var Y=[];for(K=Z;K>=0;){Y[K]=!0,N[K]=!0,b[b.length]=K,I.push(d[K]);var te=m[Math.floor(K*4/g)];if(ne=K*4&k,g<4+ne)throw new Error("FAT boundary crossed: "+K+" 4 "+g);if(!d[te]||(K=it(d[te],ne),Y[K]))break}w[Z]={nodes:b,data:vi([I])}}return w}function F(d,T,m,g,E,w,N,b){for(var I=0,k=g.length?2:0,R=T[d].data,K=0,Z=0,ne;K0&&I!==Q&&(T[I].name="!StreamData")):te.size>=4096?(te.storage="fat",T[te.start]===void 0&&(T[te.start]=A(m,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!==Q&&te.start!==Q&&T[I]&&(te.content=u(te,T[I].data,(T[b]||{}).data))),te.content&&or(te.content,0),w[ne]=te,N.push(te)}}function M(d,T){return new Date((ur(d,T+4)/1e7*Math.pow(2,32)+ur(d,T)/1e7-11644473600)*1e3)}function z(d,T){return l(),c(o.readFileSync(d),T)}function re(d,T){var m=T&&T.type;switch(m||ve&&Buffer.isBuffer(d)&&(m="buffer"),m||"base64"){case"file":return z(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 m=T||{},g=m.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}),m.CLSID&&(d.FileIndex[0].clsid=m.CLSID),H(d)}function H(d){var T="Sh33tJ5";if(!we.find(d,"/"+T)){var m=B(4);m[0]=55,m[1]=m[3]=50,m[2]=54,d.FileIndex.push({name:T,type:2,content:m,size:4,L:69,R:69,C:69}),d.FullPaths.push(d.FullPaths[0]+T),L(d)}}function L(d,T){D(d);for(var m=!1,g=!1,E=d.FullPaths.length-1;E>=0;--E){var w=d.FileIndex[E];switch(w.type){case 0:g?m=!0:(d.FileIndex.pop(),d.FullPaths.pop());break;case 1:case 2:case 5:g=!0,isNaN(w.R*w.L*w.C)&&(m=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(m=!0);break;default:m=!0;break}}if(!(!m&&!T)){var N=new Date(1987,1,19),b=0,I=Object.create?Object.create(null):{},k=[];for(E=0;E1?1:-1,K.size=0,K.type=5;else if(Z.slice(-1)=="/"){for(b=E+1;b=k.length?-1:b,b=E+1;b=k.length?-1:b,K.type=1}else n(d.FullPaths[E+1]||"")==n(Z)&&(K.R=E+1),K.type=2}}}function X(d,T){var m=T||{};if(m.fileType=="mad")return Qs(d,m);switch(L(d),m.fileType){case"zip":return zs(d,m)}var g=function(ne){for(var Y=0,te=0,ue=0;ue0&&(ye<4096?Y+=ye+63>>6:te+=ye+511>>9)}}for(var Ke=ne.FullPaths.length+3>>2,Rt=Y+7>>3,Lt=Y+127>>7,Pt=Rt+te+Ke+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,Ke,te,Y,0];return ne.FileIndex[0].size=Y<<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,oe[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:Q),E.write_shift(4,g[3]),E.write_shift(-4,g[1]?g[0]-1:Q),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,Ie.ENDOFCHAIN);for(N=w=0,I=0;I=4096)&&(R.start=N,b(k+63>>6)));for(;E.l&511;)E.write_shift(-4,Ie.ENDOFCHAIN);for(w=0;w=4096)if(E.l=R.start+1<<9,ve&&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(ve&&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 ae=typeof Uint8Array<"u",ee=ae?new Uint8Array(1<<8):[],Se=0;Se<1<<8;++Se)ee[Se]=fe(Se);function de(d,T){var m=ee[d&255];return T<=8?m>>>8-T:(m=m<<8|ee[d>>8&255],T<=16?m>>>16-T:(m=m<<8|ee[d>>16&255],m>>>24-T))}function qe(d,T){var m=T&7,g=T>>>3;return(d[g]|(m<=6?0:d[g+1]<<8))>>>m&3}function me(d,T){var m=T&7,g=T>>>3;return(d[g]|(m<=5?0:d[g+1]<<8))>>>m&7}function Nr(d,T){var m=T&7,g=T>>>3;return(d[g]|(m<=4?0:d[g+1]<<8))>>>m&15}function Ce(d,T){var m=T&7,g=T>>>3;return(d[g]|(m<=3?0:d[g+1]<<8))>>>m&31}function ie(d,T){var m=T&7,g=T>>>3;return(d[g]|(m<=1?0:d[g+1]<<8))>>>m&127}function dr(d,T,m){var g=T&7,E=T>>>3,w=(1<>>g;return m<8-g||(N|=d[E+1]<<8-g,m<16-g)||(N|=d[E+2]<<16-g,m<24-g)||(N|=d[E+3]<<24-g),N&w}function kr(d,T,m){var g=T&7,E=T>>>3;return g<=5?d[E]|=(m&7)<>8-g),T+3}function Zr(d,T,m){var g=T&7,E=T>>>3;return m=(m&1)<>>3;return m<<=g,d[E]|=m&255,m>>>=8,d[E+1]=m,T+8}function U0(d,T,m){var g=T&7,E=T>>>3;return m<<=g,d[E]|=m&255,m>>>=8,d[E+1]=m&255,d[E+2]=m>>>8,T+16}function Kn(d,T){var m=d.length,g=2*m>T?2*m:T+5,E=0;if(m>=T)return d;if(ve){var w=ri(g);if(d.copy)d.copy(w);else for(;E>g-K,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,K=ae?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 Y=b[R];ne=(ne<<5^Y)&32767;var te=-1,ue=0;if((te=K[ne])&&(te|=R&-32768,te>R&&(te-=32768),te2){Y=E[ue],Y<=22?k=vt(I,k,ee[Y+1]>>1)-1:(vt(I,k,3),k+=5,vt(I,k,ee[Y-23]>>5),k+=3);var Fe=Y<8?0:Y-4>>2;Fe>0&&(U0(I,k,ue-V[Y]),k+=Fe),Y=T[R-te],k=vt(I,k,ee[Y]>>3),k-=3;var ye=Y<4?0:Y-2>>1;ye>0&&(U0(I,k,R-te-se[Y]),k+=ye);for(var Ke=0;Ke>8-Y;for(var te=(1<<7-Y)-1;te>=0;--te)G0[ne|te<>>=3){case 16:for(w=3+qe(d,T),T+=2,ne=ue[ue.length-1];w-- >0;)ue.push(ne);break;case 17:for(w=3+me(d,T),T+=3;w-- >0;)ue.push(0);break;case 18:for(w=11+ie(d,T),T+=7;w-- >0;)ue.push(0);break;default:ue.push(ne),I>>0,b=0,I=0;(g&1)==0;){if(g=me(d,m),m+=3,g>>>1==0){m&7&&(m+=8-(m&7));var k=d[m>>>3]|d[(m>>>3)+1]<<8;if(m+=32,k>0)for(!T&&N0;)E[w++]=d[m>>>3],m+=8;continue}else g>>1==1?(b=9,I=5):(m=Gs(d,m),b=V0,I=X0);for(;;){!T&&N>>1==1?Yn[R]:H0[R];if(m+=K&15,K>>>=4,(K>>>8&255)===0)E[w++]=K;else{if(K==256)break;K-=257;var Z=K<8?0:K-4>>2;Z>5&&(Z=0);var ne=w+V[K];Z>0&&(ne+=dr(d,m,Z),m+=Z),R=dr(d,m,I),K=g>>>1==1?jn[R]:$0[R],m+=K&15,K>>>=4;var Y=K<4?0:K-2>>1,te=se[K];for(Y>0&&(te+=dr(d,m,Y),m+=Y),!T&&N>>3]:[E.slice(0,w),m+7>>>3]}function z0(d,T){var m=d.slice(d.l||0),g=Vs(m,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 m=d;or(m,0);var g=[],E=[],w={FileIndex:g,FullPaths:E};D(w,{root:T.root});for(var N=m.length-4;(m[N]!=80||m[N+1]!=75||m[N+2]!=5||m[N+3]!=6)&&N>=0;)--N;m.l=N+4,m.l+=4;var b=m.read_shift(2);m.l+=6;var I=m.read_shift(4);for(m.l=I,N=0;N0&&(m=m.slice(0,m.length-1),m=m.slice(0,m.lastIndexOf("/")+1),w.slice(0,m.length)!=m););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 K,Z=0;for(E=0;E=32&&ne<128&&++K;var te=K>=Z*4/5;E.push(g),E.push("Content-Location: "+(m.root||"file:///C:/SheetJS/")+N),E.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),E.push("Content-Type: "+Ks(b,N)),E.push(""),E.push(te?js(R):Ys(R))}return E.push(g+`--\r
-`),E.join(`\r
-`)}function ef(d){var T={};return D(T,d),T}function Jn(d,T,m,g){var E=g&&g.unsafe;E||D(d);var w=!E&&we.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||we.utils.cfb_gc(d)}return w.content=m,w.size=m?m.length:0,g&&(g.CLSID&&(w.clsid=g.CLSID),g.mt&&(w.mt=g.mt),g.ct&&(w.ct=g.ct)),w}function rf(d,T){D(d);var m=we.find(d,T);if(m){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(Fa.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(ve&&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={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};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 sr(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]=sr(e[r]));return t}function Oe(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 ve?n=$r(r):n=Hl(r),we.utils.cfb_add(e,t,n)}we.utils.cfb_add(e,t,r)}else e.file(t,r)}function T0(){return we.utils.cfb_new()}var Le=`\r
-`,To={""":'"',"'":"'",">":">","<":"<","&":"&"},E0=_0(To),w0=/[&<>'"]/g,Eo=/[\u0000-\u0008\u000b-\u001f]/g;function Te(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 hi(e){return Te(e).replace(/ /g,"_x0020_")}var ya=/[\u0000-\u001f]/g;function wo(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(/\n/g," ").replace(ya,function(r){return""+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function So(e){var t=e+"";return t.replace(w0,function(r){return E0[r]}).replace(ya,function(r){return""+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 xi(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 di(e){return $r(e,"binary").toString("utf8")}var on="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",Ut=ve&&(di(on)==Qn(on)&&di||xi(on)==Qn(on)&&xi)||Qn,Pr=ve?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","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+ /g,`
-`).replace(/<[^>]*>/g,""),i=0;i"+t+""+e+">"}function Yt(e){return ze(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function J(e,t,r){return"<"+e+(r!=null?Yt(r):"")+(t!=null?(t.match(Ca)?' xml:space="preserve"':"")+">"+t+""+e:"/")+">"}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",Te(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return J((e|0)==e?"vt:i4":"vt:r8",Te(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 be={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"],cr={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 pi=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)})):pi(e)}:pi,mi=function(e,t,r){for(var n=[],i=t;i0?Qt(e,t+4,t+4+r-1):""},Ia=Da,Na=function(e,t){var r=ur(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},ka=Na,Ra=function(e,t){var r=2*ur(e,t);return r>0?Qt(e,t+4,t+4+r-1):""},La=Ra,Pa=function(t,r){var n=ur(t,r);return n>0?S0(t,r+4,r+4+n):""},Ma=Pa,Ba=function(e,t){var r=ur(e,t);return r>0?Qt(e,t+4,t+4+r):""},ba=Ba,Ua=function(e,t){return Oo(e,t)},En=Ua,A0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};ve&&(Ia=function(t,r){if(!Buffer.isBuffer(t))return Da(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},ka=function(t,r){if(!Buffer.isBuffer(t))return Na(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},La=function(t,r){if(!Buffer.isBuffer(t))return Ra(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Ma=function(t,r){if(!Buffer.isBuffer(t))return Pa(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},ba=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):Ua(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},ur=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,ve&&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=ur(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=Oa(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 Wa(e,t){var r=Oa(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function or(e,t){e.l=t,e.read_shift=Wt,e.chk=Wa,e.write_shift=Po}function Dr(e,t){e.l+=t}function B(e){var t=ft(e);return or(t,0),t}function ir(){var e=[],t=ve?256:2048,r=function(l){var c=B(l);return or(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=sr(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 Ti(e,t,r){var n=sr(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=sr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=sr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ee(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?"":"$")+Ye(e.s.c)+":"+(e.e.cRel?"":"$")+Ye(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Xe(e.s.r)+":"+(e.e.rRel?"":"$")+Xe(e.e.r):$t(e.s,t.biff)+":"+$t(e.e,t.biff)}function F0(e){return parseInt(Bo(e),10)-1}function Xe(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 Ye(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 Ue(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 Ee(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 hr(e){var t=e.indexOf(":");return t==-1?{s:Ue(e),e:Ue(e)}:{s:Ue(e.slice(0,t)),e:Ue(e.slice(t+1))}}function Re(e,t){return typeof t>"u"||typeof t=="number"?Re(e.s,e.e):(typeof e!="string"&&(e=Ee(e)),typeof t!="string"&&(t=Ee(t)),e==t?e:e+":"+t)}function Ae(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;n 9);++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 Ei(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Kr(e.z,r?ar(t):t)}catch{}try{return e.w=Kr((e.XF||{}).numFmtId||(r?14:0),r?ar(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?Ei(e,e.v):Ei(e,t))}function ut(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Ha(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"?Ue(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=Ae(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)!==0){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),We(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),We(e.t,t),t.write_shift(4,1),Go({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function gr(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,$a=We;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 Ga(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 Va(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 Xa(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=Xa,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=ki(l));break;case 2:t.rgb=ki([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 za=2,lr=3,cn=11,An=19,un=64,Qo=65,ec=71,rc=4108,tc=4126,$e=80,wi={1:{n:"CodePage",t:za},2:{n:"Category",t:$e},3:{n:"PresentationFormat",t:$e},4:{n:"ByteCount",t:lr},5:{n:"LineCount",t:lr},6:{n:"ParagraphCount",t:lr},7:{n:"SlideCount",t:lr},8:{n:"NoteCount",t:lr},9:{n:"HiddenCount",t:lr},10:{n:"MultimediaClipCount",t:lr},11:{n:"ScaleCrop",t:cn},12:{n:"HeadingPairs",t:rc},13:{n:"TitlesOfParts",t:tc},14:{n:"Manager",t:$e},15:{n:"Company",t:$e},16:{n:"LinksUpToDate",t:cn},17:{n:"CharacterCount",t:lr},19:{n:"SharedDoc",t:cn},22:{n:"HyperlinksChanged",t:cn},23:{n:"AppVersion",t:lr,p:"version"},24:{n:"DigSig",t:Qo},26:{n:"ContentType",t:$e},27:{n:"ContentStatus",t:$e},28:{n:"Language",t:$e},29:{n:"Version",t:$e},255:{},2147483648:{n:"Locale",t:An},2147483651:{n:"Behavior",t:An},1919054434:{}},Si={1:{n:"CodePage",t:za},2:{n:"Title",t:$e},3:{n:"Subject",t:$e},4:{n:"Author",t:$e},5:{n:"Keywords",t:$e},6:{n:"Comments",t:$e},7:{n:"Template",t:$e},8:{n:"LastAuthor",t:$e},9:{n:"RevNumber",t:$e},10:{n:"EditTime",t:un},11:{n:"LastPrinted",t:un},12:{n:"CreatedDate",t:un},13:{n:"ModifiedDate",t:un},14:{n:"PageCount",t:lr},15:{n:"WordCount",t:lr},16:{n:"CharCount",t:lr},17:{n:"Thumbnail",t:ec},18:{n:"Application",t:$e},19:{n:"DocSecurity",t:lr},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=sr(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 Ka(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Ya(e,t){var r=vo(sc),n=[],i;n[n.length]=Le,n[n.length]=J("Types",null,{xmlns:be.CT,"xmlns:xsd":be.xsd,"xmlns:xsi":be.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 pe={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=[Le,J("Relationships",null,{xmlns:be.RELS})];return ze(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 _e(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:[pe.HLINK,pe.XPATH,pe.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=[Le];t.push(`
-`),t.push(`
-`);for(var r=0;r
-`);return t.push(" "),t.join("")}function Ai(e,t,r){return['
-`,'
-`,`
-`].join("")}function lc(e,t){return['
-`,'
-`,`
-`].join("")}function oc(e){var t=[Le];t.push(`
-`);for(var r=0;r!=e.length;++r)t.push(Ai(e[r][0],e[r][1])),t.push(lc("",e[r][0]));return t.push(Ai("","Document","pkg")),t.push(" "),t.join("")}function Ja(){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=Te(t),n[n.length]=r?J(e,t,r):Ve(e,t))}function qa(e,t){var r=t||{},n=[Le,J("cp:coreProperties",null,{"xmlns:cp":be.CORE_PROPS,"xmlns:dc":be.dc,"xmlns:dcterms":be.dcterms,"xmlns:dcmitype":be.dcmitype,"xmlns:xsi":be.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"]],Za=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Qa(e){var t=[],r=J;return e||(e={}),e.Application="SheetJS",t[t.length]=Le,t[t.length]=J("Properties",null,{xmlns:be.EXT_PROPS,"xmlns:vt":be.vt}),Ft.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Te(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""+Te(n)+" "}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function es(e){var t=[Le,J("Properties",null,{xmlns:be.CUST_PROPS,"xmlns:vt":be.vt})];if(!e)return t.join("");var r=1;return ze(e).forEach(function(i){++r,t[t.length]=J("property",Co(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Te(i)})}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Fi={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 ze(Fi).map(function(n){for(var i=0;i'+i.join("")+""+n+">"}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 yi(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 Ge([r,n])}var rs=["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 Ci(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||Za.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=yi(_.t,h)}else{var v=xc(h);v==-1&&(v=31,h=String(h)),o=yi(v,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 Ge(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 as(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 Di(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 ss(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 Ii(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),ns(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=is(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&&(v=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={},z=Math.min(c.length,x==2?521:v-10-(p?264:0)),re=_?32:11;c.l0;){if(c[c.l]===42){c.l+=A;continue}for(++c.l,l[++D]=[],H=0,H=0;H!=F.length;++H){var L=c.slice(c.l,c.l+F[H].len);c.l+=F[H].len,or(L,0);var X=nt.utils.decode(O,L);switch(F[H].type){case"C":X.trim().length&&(l[D][H]=X.replace(/\s+$/,""));break;case"D":X.length===8?l[D][H]=new Date(+X.slice(0,4),+X.slice(4,6)-1,+X.slice(6,8)):l[D][H]=X;break;case"F":l[D][H]=parseFloat(X.trim());break;case"+":case"I":l[D][H]=_?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(X.trim().toUpperCase()){case"Y":case"T":l[D][H]=!0;break;case"N":case"F":l[D][H]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+X+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+x.toString(16));l[D][H]="##MEMO##"+(_?parseInt(X.trim(),10):L.read_shift(4));break;case"N":X=X.replace(/\u0000/g,"").trim(),X&&X!="."&&(l[D][H]=+X||0);break;case"@":l[D][H]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[D][H]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":l[D][H]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][H]=-L.read_shift(-8,"f");break;case"B":if(p&&F[H].len==8){l[D][H]=L.read_shift(8,"f");break}case"G":case"P":L.l+=F[H].len;break;case"0":if(F[H].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[H].type)}}}if(x!=2&&c.l=0&&Xt(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=ir(),x=Dn(f,{header:1,raw:!0,cellDates:!0}),h=x[0],p=x.slice(1),_=f["!cols"]||[],u=0,v=0,A=0,O=1;for(u=0;u250&&(L=250),H=((_[u]||{}).DBF||{}).type,H=="C"&&_[u].DBF.len>L&&(L=_[u].DBF.len),D=="B"&&H=="N"&&(D="N",re[u]=_[u].DBF.dec,L=_[u].DBF.len),z[u]=D=="C"||H=="N"?L:a[D]||0,O+=z[u],M[u]=D}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,p.length),U.write_shift(2,296+32*A),U.write_shift(2,O),u=0;u<4;++u)U.write_shift(4,0);for(U.write_shift(4,0|(+t[la]||3)<<8),u=0,v=0;u":190,"?":191,"{":223},t=new RegExp("\x1BN("+ze(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,p){var _=e[p];return typeof _=="number"?ei(_):_},n=function(h,p,_){var u=p.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return u==59?h:ei(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(ve&&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,v=-1,A=0,O=0,F=[],M=[],z=null,re={},D=[],H=[],L=[],X=0,U;for(+p.codepage>=0&&Xt(+p.codepage);A!==_.length;++A){X=0;var W=_[A].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),Q=W.replace(/;;/g,"\0").split(";").map(function(y){return y.replace(/\u0000/g,";")}),le=Q[0],oe;if(W.length>0)switch(le){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Q[1].charAt(0)=="P"&&M.push(W.slice(3).replace(/;;/g,";"));break;case"C":var Ne=!1,Ie=!1,_r=!1,Be=!1,xr=-1,fr=-1;for(O=1;O-1&&F[xr][fr];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");F[u][v][1]=Ku(P[1],{r:u-xr,c:v-fr})}break;case"F":var C=0;for(O=1;O0?(D[u].hpt=X,D[u].hpx=us(X)):X===0&&(D[u].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+W)}C<1&&(z=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+W)}}return D.length>0&&(re["!rows"]=D),H.length>0&&(re["!cols"]=H),p&&p.sheetRows&&(F=F.slice(0,p.sheetRows)),[F,re]}function s(h,p){var _=i(h,p),u=_[0],v=_[1],A=It(u,p);return ze(v).forEach(function(O){A[O]=v[O]}),A}function f(h,p){return ut(s(h,p),p)}function o(h,p,_,u){var v="C;Y"+(_+1)+";X"+(u+1)+";K";switch(h.t){case"n":v+=h.v||0,h.f&&!h.F&&(v+=";E"+R0(h.f,{r:_,c:u}));break;case"b":v+=h.v?"TRUE":"FALSE";break;case"e":v+=h.w||h.v;break;case"d":v+='"'+(h.w||h.v)+'"';break;case"s":v+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function l(h,p){p.forEach(function(_,u){var v="F;W"+(u+1)+" "+(u+1)+" ";_.hidden?v+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=Fn(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=yn(_.wpx)),typeof _.wch=="number"&&(v+=Math.round(_.wch))),v.charAt(v.length-1)!=" "&&h.push(v)})}function c(h,p){p.forEach(function(_,u){var v="F;";_.hidden?v+="M0;":_.hpt?v+="M"+20*_.hpt+";":_.hpx&&(v+="M"+20*Cn(_.hpx)+";"),v.length>2&&h.push(v+"R"+(u+1))})}function x(h,p){var _=["ID;PWXL;N;E"],u=[],v=Ae(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"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var M=v.s.r;M<=v.e.r;++M)for(var z=v.s.c;z<=v.e.c;++z){var re=Ee({r:M,c:z});A=O?(h[M]||[])[z]:h[re],!(!A||A.v==null&&(!A.f||A.F))&&u.push(o(A,h,M,z))}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(ve&&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 v=10,A=0,O=0;O<=u;++O)A=_[O].indexOf(" "),A==-1?A=_[O].length:A++,v=Math.max(v,A);for(O=0;O<=u;++O){p[O]=[];var F=0;for(e(_[O].slice(0,v).trim(),p,O,F,h),F=1;F<=(_[O].length-v)/10+1;++F)e(_[O].slice(v+(F-1)*10,v+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&&X(),_["!ref"]=Re(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=ve&&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:"?fs.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=Ae(c["!ref"]),p,_=Array.isArray(c),u=h.s.r;u<=h.e.r;++u){for(var v=[],A=h.s.c;A<=h.e.c;++A){var O=Ee({r:u,c:A});if(p=_?(c[u]||[])[A]:c[O],!p||p.v==null){v.push(" ");continue}for(var F=(p.w||(Wr(p),p.w)||"").slice(0,10);F.length<10;)F+=" ";v.push(F+(A===0?" ":""))}x.push(v.join(""))}return x.join(`
-`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),Ni=function(){function e(S,P,C){if(!!S){or(S,S.l||0);for(var y=C.Enum||xr;S.l=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)C.Enum=xr,e(S,function(ie,dr,kr){switch(kr){case 0:C.vers=ie,ie>=4096&&(C.qpro=!0);break;case 6:de=ie;break;case 204:ie&&(se=ie);break;case 222:se=ie;break;case 15:case 51:C.qpro||(ie[1].v=ie[1].v.slice(1));case 13:case 14:case 16:kr==14&&(ie[2]&112)==112&&(ie[2]&15)>1&&(ie[2]&15)<15&&(ie[1].z=C.dateNF||De[14],C.cellDates&&(ie[1].t="d",ie[1].v=Aa(ie[1].v))),C.qpro&&ie[3]>fe&&(y["!ref"]=Re(de),ae[V]=y,ee.push(V),y=C.dense?[]:{},de={s:{r:0,c:0},e:{r:0,c:0}},fe=ie[3],V=se||"Sheet"+(fe+1),se="");var Zr=C.dense?(y[ie[0].r]||[])[ie[0].c]:y[Ee(ie[0])];if(Zr){Zr.t=ie[1].t,Zr.v=ie[1].v,ie[1].z!=null&&(Zr.z=ie[1].z),ie[1].f!=null&&(Zr.f=ie[1].f);break}C.dense?(y[ie[0].r]||(y[ie[0].r]=[]),y[ie[0].r][ie[0].c]=ie[1]):y[Ee(ie[0])]=ie[1];break}},C);else if(S[2]==26||S[2]==14)C.Enum=fr,S[2]==14&&(C.qpro=!0,S.l=0),e(S,function(ie,dr,kr){switch(kr){case 204:V=ie;break;case 22:ie[1].v=ie[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ie[3]>fe&&(y["!ref"]=Re(de),ae[V]=y,ee.push(V),y=C.dense?[]:{},de={s:{r:0,c:0},e:{r:0,c:0}},fe=ie[3],V="Sheet"+(fe+1)),qe>0&&ie[0].r>=qe)break;C.dense?(y[ie[0].r]||(y[ie[0].r]=[]),y[ie[0].r][ie[0].c]=ie[1]):y[Ee(ie[0])]=ie[1],de.e.c=0&&Xt(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var y=ir(),V=Ae(S["!ref"]),se=Array.isArray(S),fe=[];q(y,0,a(1030)),q(y,6,o(V));for(var ae=Math.min(V.e.r,8191),ee=V.s.r;ee<=ae;++ee)for(var Se=Xe(ee),de=V.s.c;de<=V.e.c;++de){ee===V.s.r&&(fe[de]=Ye(de));var qe=fe[de]+Se,me=se?(S[ee]||[])[de]:S[qe];if(!(!me||me.t=="z"))if(me.t=="n")(me.v|0)==me.v&&me.v>=-32768&&me.v<=32767?q(y,13,p(ee,de,me.v)):q(y,14,u(ee,de,me.v));else{var Nr=Wr(me);q(y,15,x(ee,de,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=ir();q(y,0,s(S));for(var V=0,se=0;V8191&&(C=8191),P.write_shift(2,C),P.write_shift(1,V),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,V=l(S,P,C);if(V[1].t="s",C.vers==20768){S.l++;var se=S.read_shift(1);return V[1].v=S.read_shift(se,"utf8"),V}return C.qpro&&S.l++,V[1].v=S.read_shift(y-S.l,"cstr"),V}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 V=0;V=128?95:se)}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 v(S,P,C){var y=S.l+P,V=l(S,P,C);if(V[1].v=S.read_shift(8,"f"),C.qpro)S.l=y;else{var se=S.read_shift(2);M(S.slice(S.l,S.l+se),V),S.l+=se}return V}function A(S,P,C){var y=P&32768;return P&=-32769,P=(y?S:0)+(P>=8192?P-16384:P),(y?"":"$")+(C?Ye(P):Xe(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){or(S,0);for(var C=[],y=0,V="",se="",fe="",ae="";S.lC.length){console.error("WK1 bad formula parse 0x"+ee.toString(16)+":|"+C.join("|")+"|");return}var me=C.slice(-y);C.length-=y,C.push(O[ee][0]+"("+me.join(",")+")")}else return ee<=7?console.error("WK1 invalid opcode "+ee.toString(16)):ee<=24?console.error("WK1 unsupported op "+ee.toString(16)):ee<=30?console.error("WK1 invalid opcode "+ee.toString(16)):ee<=115?console.error("WK1 unsupported function opcode "+ee.toString(16)):console.error("WK1 unrecognized opcode "+ee.toString(16))}}C.length==1?P[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function z(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=z(S);return C[1].t="s",C[1].v=S.read_shift(P-4,"cstr"),C}function D(S,P,C,y){var V=B(6+y.length);V.write_shift(2,S),V.write_shift(1,C),V.write_shift(1,P),V.write_shift(1,39);for(var se=0;se=128?95:fe)}return V.write_shift(1,0),V}function H(S,P){var C=z(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=z(S),y=S.read_shift(4),V=S.read_shift(4),se=S.read_shift(2);if(se==65535)return y===0&&V===3221225472?(C[1].t="e",C[1].v=15):y===0&&V===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var fe=se&32768;return se=(se&32767)-16446,C[1].v=(1-fe*2)*(V*Math.pow(2,se+32)+y*Math.pow(2,se)),C}function X(S,P,C,y){var V=B(14);if(V.write_shift(2,S),V.write_shift(1,C),V.write_shift(1,P),y==0)return V.write_shift(4,0),V.write_shift(4,0),V.write_shift(2,65535),V;var se=0,fe=0,ae=0,ee=0;return y<0&&(se=1,y=-y),fe=Math.log2(y)|0,y/=Math.pow(2,fe-31),ee=y>>>0,(ee&2147483648)==0&&(y/=2,++fe,ee=y>>>0),y-=ee,ee|=2147483648,ee>>>=0,y*=Math.pow(2,32),ae=y>>>0,V.write_shift(4,ae),V.write_shift(4,ee),fe+=16383+(se?32768:0),V.write_shift(2,fe),V}function U(S,P){var C=L(S);return S.l+=P-14,C}function W(S,P){var C=z(S),y=S.read_shift(4);return C[1].v=y>>6,C}function Q(S,P){var C=z(S),y=S.read_shift(8,"f");return C[1].v=y,C}function le(S,P){var C=Q(S);return S.l+=P-10,C}function oe(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function Ne(S,P){var C=S[S.l++];C>P-1&&(C=P-1);for(var y="";y.length127?95:V}return C[C.l++]=0,C}var xr={0:{n:"BOF",f:ts},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:v},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:oe},222:{n:"SHEETNAMELP",f:Ne},65535:{n:""}},fr={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:L},24:{n:"NUMBER18",f:H},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:_r},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:W},38:{n:"??"},39:{n:"NUMBER27",f:Q},40:{n:"FORMULA28",f:le},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:oe},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:Ie},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 ls(e,t){if(!t.bookSST)return"";var r=[Le];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+=""+Te(i.t)+" "),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=ir();G(t,159,Qc(e));for(var r=0;r=0;--a)s=r[a],f=(t&16384)===0?0:1,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(ve&&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 v=c.slice(p,h.lastIndex-_[0].length);if(v[0]==" "&&(v=v.slice(1)),++u,v.length){var A={v,t:"s"};Array.isArray(f)?f[x][u]=A:f[Ee({r:x,c:u})]=A}break}p=h.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=Re(l),f}function r(i,a){return ut(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Ae(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=Ee({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 ki(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,cs=au;function Cn(e){return e*96/cs}function us(e){return e*cs/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:Te(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 hs(e,t){var r=[Le,J("styleSheet",null,{xmlns:Dt[0],"xmlns:vt":be.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),We(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),We(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 Ri(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 xs(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&&(G(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&&G(e,44,ou(i,t[i]))}),G(e,616))}}function Tu(e){var t=1;G(e,611,Ar(t)),G(e,43,uu({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),G(e,612)}function Eu(e){var t=2;G(e,603,Ar(t)),G(e,45,Ri({patternType:"none"})),G(e,45,Ri({patternType:"gray125"})),G(e,604)}function wu(e){var t=1;G(e,613,Ar(t)),G(e,46,vu()),G(e,614)}function Su(e){var t=1;G(e,626,Ar(t)),G(e,47,xs({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),G(e,627)}function Au(e,t){G(e,617,Ar(t.length)),t.forEach(function(r){G(e,47,xs(r,0))}),G(e,618)}function Fu(e){var t=1;G(e,619,Ar(t)),G(e,48,mu({xfId:0,builtinId:0,name:"Normal"})),G(e,620)}function yu(e){var t=0;G(e,505,Ar(t)),G(e,506)}function Cu(e){var t=0;G(e,508,gu(t,"TableStyleMedium9","PivotStyleMedium4")),G(e,509)}function Ou(e,t){var r=ir();return G(r,278),_u(r,e.SSF),Tu(r),Eu(r),wu(r),Su(r),Au(r,t.cellXfs),Fu(r),yu(r),Cu(r),G(r,279),r.end()}function ds(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Le];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]='