old.martials.no/assets/main-7gPkv783.js
2024-02-24 23:18:41 +00:00

130 lines
347 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();const El={context:void 0,registry:void 0},Tl=(e,r)=>e===r,Bn=Symbol("solid-proxy"),wl=Symbol("solid-track"),Un={equals:Tl};let M0=V0;const sr=1,$n=2,B0={owned:null,cleanups:null,context:null,owner:null};var ge=null;let yi=null,Sl=null,Oe=null,et=null,Vt=null,ii=0;function Pr(e,r){const t=Oe,n=ge,i=e.length===0,a=r===void 0?n:r,s=i?B0:{owned:null,cleanups:null,context:a?a.context:null,owner:a},f=i?e:()=>e(()=>ft(()=>ai(s)));ge=s,Oe=null;try{return lr(f,!0)}finally{Oe=t,ge=n}}function Se(e,r){r=r?Object.assign({},Un,r):Un;const t={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},n=i=>(typeof i=="function"&&(i=i(t.value)),H0(t,i));return[W0.bind(t),n]}function Dt(e,r,t){const n=Ji(e,r,!1,sr);mn(n)}function fr(e,r,t){M0=Ol;const n=Ji(e,r,!1,sr);(!t||!t.render)&&(n.user=!0),Vt?Vt.push(n):mn(n)}function De(e,r,t){t=t?Object.assign({},Un,t):Un;const n=Ji(e,r,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,mn(n),W0.bind(n)}function Al(e){return lr(e,!1)}function ft(e){if(Oe===null)return e();const r=Oe;Oe=null;try{return e()}finally{Oe=r}}function U0(e,r,t){const n=Array.isArray(e);let i,a=t&&t.defer;return s=>{let f;if(n){f=Array(e.length);for(let o=0;o<e.length;o++)f[o]=e[o]()}else f=e();if(a){a=!1;return}const l=ft(()=>r(f,i,s));return i=f,l}}function $0(e){fr(()=>ft(e))}function jt(e){return ge===null||(ge.cleanups===null?ge.cleanups=[e]:ge.cleanups.push(e)),e}function ji(){return ge}function Ki(e,r){const t=ge,n=Oe;ge=e,Oe=null;try{return lr(r,!0)}catch(i){qi(i)}finally{ge=t,Oe=n}}function yl(e){const r=Oe,t=ge;return Promise.resolve().then(()=>{Oe=r,ge=t;let n;return lr(e,!1),Oe=ge=null,n?n.done:void 0})}function Vr(e,r){const t=Symbol("context");return{id:t,Provider:Il(t),defaultValue:e}}function Gr(e){return ge&&ge.context&&ge.context[e.id]!==void 0?ge.context[e.id]:e.defaultValue}function Yi(e){const r=De(e),t=De(()=>Mi(r()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}function W0(){if(this.sources&&this.state)if(this.state===sr)mn(this);else{const e=et;et=null,lr(()=>Hn(this),!1),et=e}if(Oe){const e=this.observers?this.observers.length:0;Oe.sources?(Oe.sources.push(this),Oe.sourceSlots.push(e)):(Oe.sources=[this],Oe.sourceSlots=[e]),this.observers?(this.observers.push(Oe),this.observerSlots.push(Oe.sources.length-1)):(this.observers=[Oe],this.observerSlots=[Oe.sources.length-1])}return this.value}function H0(e,r,t){let n=e.value;return(!e.comparator||!e.comparator(n,r))&&(e.value=r,e.observers&&e.observers.length&&lr(()=>{for(let i=0;i<e.observers.length;i+=1){const a=e.observers[i],s=yi&&yi.running;s&&yi.disposed.has(a),(s?!a.tState:!a.state)&&(a.pure?et.push(a):Vt.push(a),a.observers&&G0(a)),s||(a.state=sr)}if(et.length>1e6)throw et=[],new Error},!1)),r}function mn(e){if(!e.fn)return;ai(e);const r=ii;Fl(e,e.value,r)}function Fl(e,r,t){let n;const i=ge,a=Oe;Oe=ge=e;try{n=e.fn(r)}catch(s){return e.pure&&(e.state=sr,e.owned&&e.owned.forEach(ai),e.owned=null),e.updatedAt=t+1,qi(s)}finally{Oe=a,ge=i}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?H0(e,n):e.value=n,e.updatedAt=t)}function Ji(e,r,t,n=sr,i){const a={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:ge,context:ge?ge.context:null,pure:t};return ge===null||ge!==B0&&(ge.owned?ge.owned.push(a):ge.owned=[a]),a}function Wn(e){if(e.state===0)return;if(e.state===$n)return Hn(e);if(e.suspense&&ft(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ii);)e.state&&r.push(e);for(let t=r.length-1;t>=0;t--)if(e=r[t],e.state===sr)mn(e);else if(e.state===$n){const n=et;et=null,lr(()=>Hn(e,r[0]),!1),et=n}}function lr(e,r){if(et)return e();let t=!1;r||(et=[]),Vt?t=!0:Vt=[],ii++;try{const n=e();return Cl(t),n}catch(n){t||(Vt=null),et=null,qi(n)}}function Cl(e){if(et&&(V0(et),et=null),e)return;const r=Vt;Vt=null,r.length&&lr(()=>M0(r),!1)}function V0(e){for(let r=0;r<e.length;r++)Wn(e[r])}function Ol(e){let r,t=0;for(r=0;r<e.length;r++){const n=e[r];n.user?e[t++]=n:Wn(n)}for(r=0;r<t;r++)Wn(e[r])}function Hn(e,r){e.state=0;for(let t=0;t<e.sources.length;t+=1){const n=e.sources[t];if(n.sources){const i=n.state;i===sr?n!==r&&(!n.updatedAt||n.updatedAt<ii)&&Wn(n):i===$n&&Hn(n,r)}}}function G0(e){for(let r=0;r<e.observers.length;r+=1){const t=e.observers[r];t.state||(t.state=$n,t.pure?et.push(t):Vt.push(t),t.observers&&G0(t))}}function ai(e){let r;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),i=t.observers;if(i&&i.length){const a=i.pop(),s=t.observerSlots.pop();n<i.length&&(a.sourceSlots[s]=n,i[n]=a,t.observerSlots[n]=s)}}if(e.owned){for(r=e.owned.length-1;r>=0;r--)ai(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0}function Dl(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function qi(e,r=ge){throw Dl(e)}function Mi(e){if(typeof e=="function"&&!e.length)return Mi(e());if(Array.isArray(e)){const r=[];for(let t=0;t<e.length;t++){const n=Mi(e[t]);Array.isArray(n)?r.push.apply(r,n):r.push(n)}return r}return e}function Il(e,r){return function(n){let i;return Dt(()=>i=ft(()=>(ge.context={...ge.context,[e]:n.value},Yi(()=>n.children))),void 0),i}}const kl=Symbol("fallback");function Ua(e){for(let r=0;r<e.length;r++)e[r]()}function Rl(e,r,t={}){let n=[],i=[],a=[],s=0,f=r.length>1?[]:null;return jt(()=>Ua(a)),()=>{let l=e()||[],o,c;return l[wl],ft(()=>{let h=l.length,x,v,d,m,S,F,y,D,G;if(h===0)s!==0&&(Ua(a),a=[],n=[],i=[],s=0,f&&(f=[])),t.fallback&&(n=[kl],i[0]=Pr(Q=>(a[0]=Q,t.fallback())),s=1);else if(s===0){for(i=new Array(h),c=0;c<h;c++)n[c]=l[c],i[c]=Pr(u);s=h}else{for(d=new Array(h),m=new Array(h),f&&(S=new Array(h)),F=0,y=Math.min(s,h);F<y&&n[F]===l[F];F++);for(y=s-1,D=h-1;y>=F&&D>=F&&n[y]===l[D];y--,D--)d[D]=i[y],m[D]=a[y],f&&(S[D]=f[y]);for(x=new Map,v=new Array(D+1),c=D;c>=F;c--)G=l[c],o=x.get(G),v[c]=o===void 0?-1:o,x.set(G,c);for(o=F;o<=y;o++)G=n[o],c=x.get(G),c!==void 0&&c!==-1?(d[c]=i[o],m[c]=a[o],f&&(S[c]=f[o]),c=v[c],x.set(G,c)):a[o]();for(c=F;c<h;c++)c in d?(i[c]=d[c],a[c]=m[c],f&&(f[c]=S[c],f[c](c))):i[c]=Pr(u);i=i.slice(0,s=h),n=l.slice(0)}return i});function u(h){if(a[c]=h,f){const[x,v]=Se(c);return f[c]=v,r(l[c],x)}return r(l[c])}}}function H(e,r){return ft(()=>e(r||{}))}function Fn(){return!0}const Bi={get(e,r,t){return r===Bn?t:e.get(r)},has(e,r){return r===Bn?!0:e.has(r)},set:Fn,deleteProperty:Fn,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Fn,deleteProperty:Fn}},ownKeys(e){return e.keys()}};function Fi(e){return(e=typeof e=="function"?e():e)?e:{}}function Nl(){for(let e=0,r=this.length;e<r;++e){const t=this[e]();if(t!==void 0)return t}}function dt(...e){let r=!1;for(let s=0;s<e.length;s++){const f=e[s];r=r||!!f&&Bn in f,e[s]=typeof f=="function"?(r=!0,De(f)):f}if(r)return new Proxy({get(s){for(let f=e.length-1;f>=0;f--){const l=Fi(e[f])[s];if(l!==void 0)return l}},has(s){for(let f=e.length-1;f>=0;f--)if(s in Fi(e[f]))return!0;return!1},keys(){const s=[];for(let f=0;f<e.length;f++)s.push(...Object.keys(Fi(e[f])));return[...new Set(s)]}},Bi);const t={},n=Object.create(null);for(let s=e.length-1;s>=0;s--){const f=e[s];if(!f)continue;const l=Object.getOwnPropertyNames(f);for(let o=l.length-1;o>=0;o--){const c=l[o];if(c==="__proto__"||c==="constructor")continue;const u=Object.getOwnPropertyDescriptor(f,c);if(!n[c])n[c]=u.get?{enumerable:!0,configurable:!0,get:Nl.bind(t[c]=[u.get.bind(f)])}:u.value!==void 0?u:void 0;else{const h=t[c];h&&(u.get?h.push(u.get.bind(f)):u.value!==void 0&&h.push(()=>u.value))}}}const i={},a=Object.keys(n);for(let s=a.length-1;s>=0;s--){const f=a[s],l=n[f];l&&l.get?Object.defineProperty(i,f,l):i[f]=l?l.value:void 0}return i}function Zi(e,...r){if(Bn in e){const i=new Set(r.length>1?r.flat():r[0]),a=r.map(s=>new Proxy({get(f){return s.includes(f)?e[f]:void 0},has(f){return s.includes(f)&&f in e},keys(){return s.filter(f=>f in e)}},Bi));return a.push(new Proxy({get(s){return i.has(s)?void 0:e[s]},has(s){return i.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!i.has(s))}},Bi)),a}const t={},n=r.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const a=Object.getOwnPropertyDescriptor(e,i),s=!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable;let f=!1,l=0;for(const o of r)o.includes(i)&&(f=!0,s?n[l][i]=a.value:Object.defineProperty(n[l],i,a)),++l;f||(s?t[i]=a.value:Object.defineProperty(t,i,a))}return[...n,t]}let Ll=0;function ot(){return`cl-${Ll++}`}const Pl=e=>`Stale read from <${e}>.`;function bt(e){const r="fallback"in e&&{fallback:()=>e.fallback};return De(Rl(()=>e.each,e.children,r||void 0))}function Ke(e){const r=e.keyed,t=De(()=>e.when,void 0,{equals:(n,i)=>r?n===i:!n==!i});return De(()=>{const n=t();if(n){const i=e.children;return typeof i=="function"&&i.length>0?ft(()=>i(r?n:()=>{if(!ft(t))throw Pl("Show");return e.when})):i}return e.fallback},void 0,void 0)}const bl=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ml=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...bl]),Bl=new Set(["innerHTML","textContent","innerText","children"]),Ul=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),$l=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Wl(e,r){const t=$l[e];return typeof t=="object"?t[r]?t.$:void 0:t}const Hl=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Vl=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Gl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Xl(e,r,t){let n=t.length,i=r.length,a=n,s=0,f=0,l=r[i-1].nextSibling,o=null;for(;s<i||f<a;){if(r[s]===t[f]){s++,f++;continue}for(;r[i-1]===t[a-1];)i--,a--;if(i===s){const c=a<n?f?t[f-1].nextSibling:t[a-f]:l;for(;f<a;)e.insertBefore(t[f++],c)}else if(a===f)for(;s<i;)(!o||!o.has(r[s]))&&r[s].remove(),s++;else if(r[s]===t[a-1]&&t[f]===r[i-1]){const c=r[--i].nextSibling;e.insertBefore(t[f++],r[s++].nextSibling),e.insertBefore(t[--a],c),r[i]=t[a]}else{if(!o){o=new Map;let u=f;for(;u<a;)o.set(t[u],u++)}const c=o.get(r[s]);if(c!=null)if(f<c&&c<a){let u=s,h=1,x;for(;++u<i&&u<a&&!((x=o.get(r[u]))==null||x!==c+h);)h++;if(h>c-f){const v=r[s];for(;f<c;)e.insertBefore(t[f++],v)}else e.replaceChild(t[f++],r[s++])}else s++;else r[s++].remove()}}}const $a="_$DX_DELEGATE";function zl(e,r,t,n={}){let i;return Pr(a=>{i=a,r===document?e():ne(r,e(),r.firstChild?null:void 0,t)},n.owner),()=>{i(),r.textContent=""}}function ae(e,r,t){let n;const i=()=>{const s=document.createElement("template");return s.innerHTML=e,t?s.content.firstChild.firstChild:s.content.firstChild},a=r?()=>ft(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return a.cloneNode=a,a}function Xr(e,r=window.document){const t=r[$a]||(r[$a]=new Set);for(let n=0,i=e.length;n<i;n++){const a=e[n];t.has(a)||(t.add(a),r.addEventListener(a,Zl))}}function Ne(e,r,t){t==null?e.removeAttribute(r):e.setAttribute(r,t)}function jl(e,r,t,n){n==null?e.removeAttributeNS(r,t):e.setAttributeNS(r,t,n)}function Me(e,r){r==null?e.removeAttribute("class"):e.className=r}function Qi(e,r,t,n){if(n)Array.isArray(t)?(e[`$$${r}`]=t[0],e[`$$${r}Data`]=t[1]):e[`$$${r}`]=t;else if(Array.isArray(t)){const i=t[0];e.addEventListener(r,t[0]=a=>i.call(e,t[1],a))}else e.addEventListener(r,t)}function Kl(e,r,t={}){const n=Object.keys(r||{}),i=Object.keys(t);let a,s;for(a=0,s=i.length;a<s;a++){const f=i[a];!f||f==="undefined"||r[f]||(Wa(e,f,!1),delete t[f])}for(a=0,s=n.length;a<s;a++){const f=n[a],l=!!r[f];!f||f==="undefined"||t[f]===l||!l||(Wa(e,f,!0),t[f]=l)}return t}function X0(e,r,t){if(!r)return t?Ne(e,"style"):r;const n=e.style;if(typeof r=="string")return n.cssText=r;typeof t=="string"&&(n.cssText=t=void 0),t||(t={}),r||(r={});let i,a;for(a in t)r[a]==null&&n.removeProperty(a),delete t[a];for(a in r)i=r[a],i!==t[a]&&(n.setProperty(a,i),t[a]=i);return t}function z0(e,r={},t,n){const i={};return n||Dt(()=>i.children=$r(e,r.children,i.children)),Dt(()=>r.ref&&r.ref(e)),Dt(()=>Jl(e,r,t,!0,i,!0)),i}function Yl(e,r,t){return ft(()=>e(r,t))}function ne(e,r,t,n){if(t!==void 0&&!n&&(n=[]),typeof r!="function")return $r(e,r,n,t);Dt(i=>$r(e,r(),i,t),n)}function Jl(e,r,t,n,i={},a=!1){r||(r={});for(const s in i)if(!(s in r)){if(s==="children")continue;i[s]=Ha(e,s,null,i[s],t,a)}for(const s in r){if(s==="children"){n||$r(e,r.children);continue}const f=r[s];i[s]=Ha(e,s,f,i[s],t,a)}}function ql(e){return e.toLowerCase().replace(/-([a-z])/g,(r,t)=>t.toUpperCase())}function Wa(e,r,t){const n=r.trim().split(/\s+/);for(let i=0,a=n.length;i<a;i++)e.classList.toggle(n[i],t)}function Ha(e,r,t,n,i,a){let s,f,l,o,c;if(r==="style")return X0(e,t,n);if(r==="classList")return Kl(e,t,n);if(t===n)return n;if(r==="ref")a||t(e);else if(r.slice(0,3)==="on:"){const u=r.slice(3);n&&e.removeEventListener(u,n),t&&e.addEventListener(u,t)}else if(r.slice(0,10)==="oncapture:"){const u=r.slice(10);n&&e.removeEventListener(u,n,!0),t&&e.addEventListener(u,t,!0)}else if(r.slice(0,2)==="on"){const u=r.slice(2).toLowerCase(),h=Hl.has(u);if(!h&&n){const x=Array.isArray(n)?n[0]:n;e.removeEventListener(u,x)}(h||t)&&(Qi(e,u,t,h),h&&Xr([u]))}else if(r.slice(0,5)==="attr:")Ne(e,r.slice(5),t);else if((c=r.slice(0,5)==="prop:")||(l=Bl.has(r))||!i&&((o=Wl(r,e.tagName))||(f=Ml.has(r)))||(s=e.nodeName.includes("-")))c&&(r=r.slice(5),f=!0),r==="class"||r==="className"?Me(e,t):s&&!f&&!l?e[ql(r)]=t:e[o||r]=t;else{const u=i&&r.indexOf(":")>-1&&Gl[r.split(":")[0]];u?jl(e,u,r,t):Ne(e,Ul[r]||r,t)}return t}function Zl(e){const r=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});t;){const n=t[r];if(n&&!t.disabled){const i=t[`${r}Data`];if(i!==void 0?n.call(t,i,e):n.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function $r(e,r,t,n,i){for(;typeof t=="function";)t=t();if(r===t)return t;const a=typeof r,s=n!==void 0;if(e=s&&t[0]&&t[0].parentNode||e,a==="string"||a==="number")if(a==="number"&&(r=r.toString()),s){let f=t[0];f&&f.nodeType===3?f.data!==r&&(f.data=r):f=document.createTextNode(r),t=Dr(e,t,n,f)}else t!==""&&typeof t=="string"?t=e.firstChild.data=r:t=e.textContent=r;else if(r==null||a==="boolean")t=Dr(e,t,n);else{if(a==="function")return Dt(()=>{let f=r();for(;typeof f=="function";)f=f();t=$r(e,f,t,n)}),()=>t;if(Array.isArray(r)){const f=[],l=t&&Array.isArray(t);if(Ui(f,r,t,i))return Dt(()=>t=$r(e,f,t,n,!0)),()=>t;if(f.length===0){if(t=Dr(e,t,n),s)return t}else l?t.length===0?Va(e,f,n):Xl(e,t,f):(t&&Dr(e),Va(e,f));t=f}else if(r.nodeType){if(Array.isArray(t)){if(s)return t=Dr(e,t,n,r);Dr(e,t,null,r)}else t==null||t===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);t=r}}return t}function Ui(e,r,t,n){let i=!1;for(let a=0,s=r.length;a<s;a++){let f=r[a],l=t&&t[e.length],o;if(!(f==null||f===!0||f===!1))if((o=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))i=Ui(e,f,l)||i;else if(o==="function")if(n){for(;typeof f=="function";)f=f();i=Ui(e,Array.isArray(f)?f:[f],Array.isArray(l)?l:[l])||i}else e.push(f),i=!0;else{const c=String(f);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return i}function Va(e,r,t=null){for(let n=0,i=r.length;n<i;n++)e.insertBefore(r[n],t)}function Dr(e,r,t,n){if(t===void 0)return e.textContent="";const i=n||document.createTextNode("");if(r.length){let a=!1;for(let s=r.length-1;s>=0;s--){const f=r[s];if(i!==f){const l=f.parentNode===e;!a&&!s?l?e.replaceChild(i,f):e.insertBefore(i,t):l&&f.remove()}else a=!0}}else e.insertBefore(i,t);return[i]}const Ql=!1,eo="http://www.w3.org/2000/svg";function j0(e,r=!1){return r?document.createElementNS(eo,e):document.createElement(e)}function to(e){const{useShadow:r}=e,t=document.createTextNode(""),n=()=>e.mount||document.body,i=ji();let a,s=!!El.context;return fr(()=>{a||(a=Ki(i,()=>De(()=>e.children)));const f=n();if(f instanceof HTMLHeadElement){const[l,o]=Se(!1),c=()=>o(!0);Pr(u=>ne(f,()=>l()?u():a(),null)),jt(c)}else{const l=j0(e.isSVG?"g":"div",e.isSVG),o=r&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return t.parentNode},configurable:!0}),ne(o,a),f.appendChild(l),e.ref&&e.ref(l),jt(()=>f.removeChild(l))}},void 0,{render:!s}),t}function ro(e){const[r,t]=Zi(e,["component"]),n=De(()=>r.component);return De(()=>{const i=n();switch(typeof i){case"function":return ft(()=>i(t));case"string":const a=Vl.has(i),s=j0(i,a);return z0(s,t,a),s}})}function K0(){let e=new Set;function r(i){return e.add(i),()=>e.delete(i)}let t=!1;function n(i,a){if(t)return!(t=!1);const s={to:i,options:a,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const f of e)f.listener({...s,from:f.location,retry:l=>{l&&(t=!0),f.navigate(i,{...a,resolve:!1})}});return!s.defaultPrevented}return{subscribe:r,confirm:n}}let $i;function ea(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),$i=window.history.state._depth}ea();function no(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function io(e,r){let t=!1;return()=>{const n=$i;ea();const i=n==null?null:$i-n;if(t){t=!1;return}i&&r(i)?(t=!0,window.history.go(-i)):e()}}const ao=/^(?:[a-z0-9]+:)?\/\//i,so=/^\/+|(\/)\/+$/g,Y0="http://sr";function rn(e,r=!1){const t=e.replace(so,"$1");return t?r||/^[?#]/.test(t)?t:"/"+t:""}function bn(e,r,t){if(ao.test(r))return;const n=rn(e),i=t&&rn(t);let a="";return!i||r.startsWith("/")?a=n:i.toLowerCase().indexOf(n.toLowerCase())!==0?a=n+i:a=i,(a||"/")+rn(r,!a)}function fo(e,r){if(e==null)throw new Error(r);return e}function lo(e,r){return rn(e).replace(/\/*(\*.*)?$/g,"")+rn(r)}function J0(e){const r={};return e.searchParams.forEach((t,n)=>{r[n]=t}),r}function oo(e,r,t){const[n,i]=e.split("/*",2),a=n.split("/").filter(Boolean),s=a.length;return f=>{const l=f.split("/").filter(Boolean),o=l.length-s;if(o<0||o>0&&i===void 0&&!r)return null;const c={path:s?"":"/",params:{}},u=h=>t===void 0?void 0:t[h];for(let h=0;h<s;h++){const x=a[h],v=l[h],d=x[0]===":",m=d?x.slice(1):x;if(d&&Ci(v,u(m)))c.params[m]=v;else if(d||!Ci(v,x))return null;c.path+=`/${v}`}if(i){const h=o?l.slice(-o).join("/"):"";if(Ci(h,u(i)))c.params[i]=h;else return null}return c}}function Ci(e,r){const t=n=>n.localeCompare(e,void 0,{sensitivity:"base"})===0;return r===void 0?!0:typeof r=="string"?t(r):typeof r=="function"?r(e):Array.isArray(r)?r.some(t):r instanceof RegExp?r.test(e):!1}function co(e){const[r,t]=e.pattern.split("/*",2),n=r.split("/").filter(Boolean);return n.reduce((i,a)=>i+(a.startsWith(":")?2:3),n.length-(t===void 0?0:1))}function q0(e){const r=new Map,t=ji();return new Proxy({},{get(n,i){return r.has(i)||Ki(t,()=>r.set(i,De(()=>e()[i]))),r.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function uo(e,r){const t=new URLSearchParams(e);Object.entries(r).forEach(([i,a])=>{a==null||a===""?t.delete(i):t.set(i,String(a))});const n=t.toString();return n?`?${n}`:""}function Z0(e){let r=/(\/?\:[^\/]+)\?/.exec(e);if(!r)return[e];let t=e.slice(0,r.index),n=e.slice(r.index+r[0].length);const i=[t,t+=r[1]];for(;r=/^(\/\:[^\/]+)\?/.exec(n);)i.push(t+=r[1]),n=n.slice(r[0].length);return Z0(n).reduce((a,s)=>[...a,...i.map(f=>f+s)],[])}const ho=100,Q0=Vr(),ta=Vr(),es=()=>fo(Gr(Q0),"Make sure your app is wrapped in a <Router />"),xo=()=>es().navigatorFactory(),ts=()=>es().location,po=()=>{const e=ts(),r=xo(),t=(n,i)=>{const a=ft(()=>e.pathname+uo(e.search,n)+e.hash);r(a,{scroll:!1,resolve:!1,...i})};return[e.query,t]};function vo(e,r=""){const{component:t,load:n,children:i,info:a}=e,s=!i||Array.isArray(i)&&!i.length,f={key:e,component:t,load:n,info:a};return rs(e.path).reduce((l,o)=>{for(const c of Z0(o)){const u=lo(r,c);let h=s?u:u.split("/*",1)[0];h=h.split("/").map(x=>x.startsWith(":")||x.startsWith("*")?x:encodeURIComponent(x)).join("/"),l.push({...f,originalPath:c,pattern:h,matcher:oo(h,!s,e.matchFilters)})}return l},[])}function mo(e,r=0){return{routes:e,score:co(e[e.length-1])*1e4-r,matcher(t){const n=[];for(let i=e.length-1;i>=0;i--){const a=e[i],s=a.matcher(t);if(!s)return null;n.unshift({...s,route:a})}return n}}}function rs(e){return Array.isArray(e)?e:[e]}function ns(e,r="",t=[],n=[]){const i=rs(e);for(let a=0,s=i.length;a<s;a++){const f=i[a];if(f&&typeof f=="object"){f.hasOwnProperty("path")||(f.path="");const l=vo(f,r);for(const o of l){t.push(o);const c=Array.isArray(f.children)&&f.children.length===0;if(f.children&&!c)ns(f.children,o.pattern,t,n);else{const u=mo([...t],n.length);n.push(u)}t.pop()}}}return t.length?n:n.sort((a,s)=>s.score-a.score)}function is(e,r){for(let t=0,n=e.length;t<n;t++){const i=e[t].matcher(r);if(i)return i}return[]}function go(e,r){const t=new URL(Y0),n=De(l=>{const o=e();try{return new URL(o,t)}catch{return console.error(`Invalid path ${o}`),l}},t,{equals:(l,o)=>l.href===o.href}),i=De(()=>n().pathname),a=De(()=>n().search,!0),s=De(()=>n().hash),f=()=>"";return{get pathname(){return i()},get search(){return a()},get hash(){return s()},get state(){return r()},get key(){return f()},query:q0(U0(a,()=>J0(n())))}}let er;function _o(e,r,t,n={}){const{signal:[i,a],utils:s={}}=e,f=s.parsePath||(M=>M),l=s.renderPath||(M=>M),o=s.beforeLeave||K0(),c=bn("",n.base||"");if(c===void 0)throw new Error(`${c} is not a valid base path`);c&&!i().value&&a({value:c,replace:!0,scroll:!1});const[u,h]=Se(!1),x=async M=>{h(!0);try{await yl(M)}finally{h(!1)}},[v,d]=Se(i().value),[m,S]=Se(i().state),F=go(v,m),y=[],D=Se([]),G={pattern:c,params:{},path:()=>c,outlet:()=>null,resolvePath(M){return bn(c,M)}};return Dt(()=>{const{value:M,state:W}=i();ft(()=>{M!==v()&&x(()=>{er="native",d(M),S(W),D[1]([])}).then(()=>{er=void 0})})}),{base:G,location:F,isRouting:u,renderPath:l,parsePath:f,navigatorFactory:I,beforeLeave:o,preloadRoute:L,singleFlight:n.singleFlight===void 0?!0:n.singleFlight,submissions:D};function Q(M,W,j){ft(()=>{if(typeof W=="number"){W&&(s.go?s.go(W):console.warn("Router integration does not support relative routing"));return}const{replace:Y,resolve:ue,scroll:oe,state:de}={replace:!1,resolve:!0,scroll:!0,...j},xe=ue?M.resolvePath(W):bn("",W);if(xe===void 0)throw new Error(`Path '${W}' is not a routable path`);if(y.length>=ho)throw new Error("Too many redirects");const lt=v();if((xe!==lt||de!==m())&&!Ql){if(o.confirm(xe,j)){const Be=y.push({value:lt,replace:Y,scroll:oe,state:m()});x(()=>{er="navigate",d(xe),S(de),D[1]([])}).then(()=>{y.length===Be&&(er=void 0,V({value:xe,state:de}))})}}})}function I(M){return M=M||Gr(ta)||G,(W,j)=>Q(M,W,j)}function V(M){const W=y[0];W&&((M.value!==W.value||M.state!==W.state)&&a({...M,replace:W.replace,scroll:W.scroll}),y.length=0)}function L(M,W){const j=is(t(),M.pathname),Y=er;er="preload";for(let ue in j){const{route:oe,params:de}=j[ue];oe.component&&oe.component.preload&&oe.component.preload();const{load:xe}=oe;W&&xe&&Ki(r(),()=>xe({params:de,location:{pathname:M.pathname,search:M.search,hash:M.hash,query:J0(M),state:null,key:""},intent:"preload"}))}er=Y}}function Eo(e,r,t,n,i){const{base:a,location:s}=e,{pattern:f,component:l,load:o}=n().route,c=De(()=>n().path);l&&l.preload&&l.preload();const u=o?o({params:i,location:s,intent:er||"initial"}):void 0;return{parent:r,pattern:f,path:c,params:i,outlet:()=>l?H(l,{params:i,location:s,data:u,get children(){return t()}}):t(),resolvePath(x){return bn(a.path(),x,c())}}}const To=e=>r=>{const{base:t}=r,n=Yi(()=>r.children),i=De(()=>ns(r.root?{component:r.root,load:r.rootLoad,children:n()}:n(),r.base||""));let a;const s=_o(e,()=>a,i,{base:t,singleFlight:r.singleFlight});return e.create&&e.create(s),H(Q0.Provider,{value:s,get children(){return[De(()=>(a=ji())&&null),H(wo,{routerState:s,get branches(){return i()}})]}})};function wo(e){const r=De(()=>is(e.branches,e.routerState.location.pathname)),t=q0(()=>{const s=r(),f={};for(let l=0;l<s.length;l++)Object.assign(f,s[l].params);return f}),n=[];let i;const a=De(U0(r,(s,f,l)=>{let o=f&&s.length===f.length;const c=[];for(let u=0,h=s.length;u<h;u++){const x=f&&f[u],v=s[u];l&&x&&v.route.key===x.route.key?c[u]=l[u]:(o=!1,n[u]&&n[u](),Pr(d=>{n[u]=d,c[u]=Eo(e.routerState,c[u-1]||e.routerState.base,So(()=>a()[u+1]),()=>r()[u],t)}))}return n.splice(s.length).forEach(u=>u()),l&&o?l:(i=c[0],c)}));return H(Ke,{get when(){return a()&&i},keyed:!0,children:s=>H(ta.Provider,{value:s,get children(){return s.outlet()}})})}const So=e=>()=>H(Ke,{get when(){return e()},keyed:!0,children:r=>H(ta.Provider,{value:r,get children(){return r.outlet()}})}),Cn=e=>{const r=Yi(()=>e.children);return dt(e,{get children(){return r()}})};function Ao([e,r],t,n){return[t?()=>t(e()):e,n?i=>r(n(i)):r]}function yo(e){if(e==="#")return null;try{return document.querySelector(e)}catch{return null}}function Fo(e){let r=!1;const t=i=>typeof i=="string"?{value:i}:i,n=Ao(Se(t(e.get()),{equals:(i,a)=>i.value===a.value}),void 0,i=>(!r&&e.set(i),i));return e.init&&jt(e.init((i=e.get())=>{r=!0,n[1](t(i)),r=!1})),To({signal:n,create:e.create,utils:e.utils})}function Co(e,r,t){return e.addEventListener(r,t),()=>e.removeEventListener(r,t)}function Oo(e,r){const t=yo(`#${e}`);t?t.scrollIntoView():r&&window.scrollTo(0,0)}const Do=new Map;function Io(e=!0,r=!1,t="/_server"){return n=>{const i=n.base.path(),a=n.navigatorFactory(n.base);let s={};function f(v){return v.namespaceURI==="http://www.w3.org/2000/svg"}function l(v){if(v.defaultPrevented||v.button!==0||v.metaKey||v.altKey||v.ctrlKey||v.shiftKey)return;const d=v.composedPath().find(G=>G instanceof Node&&G.nodeName.toUpperCase()==="A");if(!d||r&&!d.hasAttribute("link"))return;const m=f(d),S=m?d.href.baseVal:d.href;if((m?d.target.baseVal:d.target)||!S&&!d.hasAttribute("state"))return;const y=(d.getAttribute("rel")||"").split(/\s+/);if(d.hasAttribute("download")||y&&y.includes("external"))return;const D=m?new URL(S,document.baseURI):new URL(S);if(!(D.origin!==window.location.origin||i&&D.pathname&&!D.pathname.toLowerCase().startsWith(i.toLowerCase())))return[d,D]}function o(v){const d=l(v);if(!d)return;const[m,S]=d,F=n.parsePath(S.pathname+S.search+S.hash),y=m.getAttribute("state");v.preventDefault(),a(F,{resolve:!1,replace:m.hasAttribute("replace"),scroll:!m.hasAttribute("noscroll"),state:y&&JSON.parse(y)})}function c(v){const d=l(v);if(!d)return;const[m,S]=d;s[S.pathname]||n.preloadRoute(S,m.getAttribute("preload")!=="false")}function u(v){const d=l(v);if(!d)return;const[m,S]=d;s[S.pathname]||(s[S.pathname]=setTimeout(()=>{n.preloadRoute(S,m.getAttribute("preload")!=="false"),delete s[S.pathname]},200))}function h(v){const d=l(v);if(!d)return;const[,m]=d;s[m.pathname]&&(clearTimeout(s[m.pathname]),delete s[m.pathname])}function x(v){let d=v.submitter&&v.submitter.hasAttribute("formaction")?v.submitter.getAttribute("formaction"):v.target.getAttribute("action");if(!d)return;if(!d.startsWith("https://action/")){const S=new URL(d,Y0);if(d=n.parsePath(S.pathname+S.search),!d.startsWith(t))return}if(v.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const m=Do.get(d);if(m){v.preventDefault();const S=new FormData(v.target);v.submitter&&v.submitter.name&&S.append(v.submitter.name,v.submitter.value),m.call(n,S)}}Xr(["click","submit"]),document.addEventListener("click",o),e&&(document.addEventListener("mouseover",u),document.addEventListener("mouseout",h),document.addEventListener("focusin",c),document.addEventListener("touchstart",c)),document.addEventListener("submit",x),jt(()=>{document.removeEventListener("click",o),e&&(document.removeEventListener("mouseover",u),document.removeEventListener("mouseout",h),document.removeEventListener("focusin",c),document.removeEventListener("touchstart",c)),document.removeEventListener("submit",x)})}}function ko(e){const r=()=>({value:window.location.pathname+window.location.search+window.location.hash,state:window.history.state}),t=K0();return Fo({get:r,set({value:n,replace:i,scroll:a,state:s}){i?window.history.replaceState(no(s),"",n):window.history.pushState(s,"",n),Oo(window.location.hash.slice(1),a),ea()},init:n=>Co(window,"popstate",io(n,i=>{if(i&&i<0)return!t.confirm(i);{const a=r();return!t.confirm(a.value,{state:a.state})}})),create:Io(e.preload,e.explicitLinks,e.actionBase),utils:{go:n=>window.history.go(n),beforeLeave:t}})(e)}var Ro=ae("<svg>");const Pt=e=>{const[r,t]=Zi(e,["path"]);return(()=>{var n=Ro();return z0(n,dt({get viewBox(){return r.path.mini?"0 0 20 20":"0 0 24 24"},get fill(){return r.path.outline?"none":"currentColor"},get stroke(){return r.path.outline?"currentColor":"none"},get"stroke-width"(){return r.path.outline?1.5:void 0}},t),!0,!0),ne(n,()=>r.path.path),n})()};var No=ae('<svg><path fill-rule=evenodd d="M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z"clip-rule=evenodd></svg>',!1,!0),Lo=ae('<svg><path fill-rule=evenodd d="M4.755 10.059a7.5 7.5 0 0112.548-3.364l1.903 1.903h-3.183a.75.75 0 100 1.5h4.992a.75.75 0 00.75-.75V4.356a.75.75 0 00-1.5 0v3.18l-1.9-1.9A9 9 0 003.306 9.67a.75.75 0 101.45.388zm15.408 3.352a.75.75 0 00-.919.53 7.5 7.5 0 01-12.548 3.364l-1.902-1.903h3.183a.75.75 0 000-1.5H2.984a.75.75 0 00-.75.75v4.992a.75.75 0 001.5 0v-3.18l1.9 1.9a9 9 0 0015.059-4.035.75.75 0 00-.53-.918z"clip-rule=evenodd></svg>',!1,!0),Po=ae('<svg><path fill-rule=evenodd d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z"clip-rule=evenodd></svg>',!1,!0),bo=ae('<svg><path fill-rule=evenodd d="M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z"clip-rule=evenodd></svg>',!1,!0),Mo=ae('<svg><path fill-rule=evenodd d="M11.47 7.72a.75.75 0 011.06 0l7.5 7.5a.75.75 0 11-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 01-1.06-1.06l7.5-7.5z"clip-rule=evenodd></svg>',!1,!0),Bo=ae('<svg><path d="M3.53 2.47a.75.75 0 00-1.06 1.06l18 18a.75.75 0 101.06-1.06l-18-18zM22.676 12.553a11.249 11.249 0 01-2.631 4.31l-3.099-3.099a5.25 5.25 0 00-6.71-6.71L7.759 4.577a11.217 11.217 0 014.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113z"></svg>',!1,!0),Uo=ae('<svg><path d="M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0115.75 12zM12.53 15.713l-4.243-4.244a3.75 3.75 0 004.243 4.243z"></svg>',!1,!0),$o=ae('<svg><path d="M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 00-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 016.75 12z"></svg>',!1,!0),Wo=ae('<svg><path d="M12 15a3 3 0 100-6 3 3 0 000 6z"></svg>',!1,!0),Ho=ae('<svg><path fill-rule=evenodd d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z"clip-rule=evenodd></svg>',!1,!0),Vo=ae('<svg><path fill-rule=evenodd d="M3.792 2.938A49.069 49.069 0 0112 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 011.541 1.836v1.044a3 3 0 01-.879 2.121l-6.182 6.182a1.5 1.5 0 00-.439 1.061v2.927a3 3 0 01-1.658 2.684l-1.757.878A.75.75 0 019.75 21v-5.818a1.5 1.5 0 00-.44-1.06L3.13 7.938a3 3 0 01-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836z"clip-rule=evenodd></svg>',!1,!0),Go=ae('<svg><path fill-rule=evenodd d="M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z"clip-rule=evenodd></svg>',!1,!0),Xo=ae('<svg><path fill-rule=evenodd d="M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z"clip-rule=evenodd></svg>',!1,!0);const zo={path:()=>No(),outline:!1,mini:!1},jo={path:()=>Lo(),outline:!1,mini:!1},Ko={path:()=>Po(),outline:!1,mini:!1},Yo={path:()=>bo(),outline:!1,mini:!1},Jo={path:()=>Mo(),outline:!1,mini:!1},qo={path:()=>[Bo(),Uo(),$o()],outline:!1,mini:!1},Zo={path:()=>[Wo(),Ho()],outline:!1,mini:!1},Qo={path:()=>Vo(),outline:!1,mini:!1},ec={path:()=>Go(),outline:!1,mini:!1},tc={path:()=>Xo(),outline:!1,mini:!1};var rc=ae("<a>");const zr=({to:e,rel:r,children:t,className:n,id:i,newTab:a=!0,title:s})=>(()=>{var f=rc();return Ne(f,"href",e),Ne(f,"id",i),Ne(f,"title",s),Ne(f,"rel",`${r} ${a?"noreferrer":void 0}`),Ne(f,"target",a?"_blank":void 0),Me(f,`link ${n}`),ne(f,t),f})();var nc=ae('<header><div class="flex-row-center mx-auto w-fit"><h1 class="text-center text-cyan-500"></h1></div><div class="mx-auto w-fit"><p>Av Martin Berg Alstad');const ic=({className:e,title:r="Title goes here"})=>{const t=ts();return(()=>{var n=nc(),i=n.firstChild,a=i.firstChild;return Me(n,e),ne(i,H(Ke,{get when(){return t.pathname!=="/"},keyed:!0,get children(){return H(zr,{to:"/",newTab:!1,title:"Back to homepage",get children(){return H(Pt,{path:Yo,class:"text-cyan-500"})}})}}),a),ne(a,r),n})()};var ac=ae("<footer><p>Kildekode på ");const sc=({className:e})=>(()=>{var r=ac(),t=r.firstChild;return t.firstChild,Me(r,`container absolute bottom-0 py-5 text-center ${e}`),ne(t,H(zr,{to:"https://github.com/h600878/martials.no",children:"GitHub"}),null),r})();var fc=ae('<div><div class="container mx-auto"><main><div class=pb-28>');const si=({children:e,title:r,className:t})=>(()=>{var n=fc(),i=n.firstChild,a=i.firstChild,s=a.firstChild;return Me(n,`relative min-h-screen bg-default-bg font-mono text-white ${t}`),ne(i,H(ic,{className:"py-3",title:r}),a),ne(s,e),ne(a,H(sc,{}),null),n})();var lc=ae(`<h3 class="mx-auto w-fit text-center before:content-['↗']">`),oc=ae('<div><div class="relative p-5">');const cc=({children:e,className:r,title:t,to:n,newTab:i=!1})=>(()=>{var a=oc(),s=a.firstChild;return Me(a,`relative h-32 w-72 rounded-2xl bg-gradient-to-r from-cyan-600 to-cyan-500 ${r}`),ne(s,H(zr,{className:"text-white",to:n,newTab:i,get children(){var f=lc();return ne(f,t),f}}),null),ne(s,e,null),a})();var uc=ae("<p>Sjekk ut mine API-er"),hc=ae("<ul><li>"),dc=ae("<p>Sjekk ut mine andre prosjekter"),xc=ae("<p>Implementering av API"),pc=ae('<div class="mt-10 flex flex-wrap justify-center">');const Ga="https://api.martials.no",vc=[{title:"API-er",children:[uc(),(()=>{var e=hc(),r=e.firstChild;return ne(r,H(zr,{className:"text-white",to:`${Ga}/simplify-truths`,children:"Forenkle sannhetsverdier"})),e})()],to:Ga,newTab:!0},{title:"Hjemmeside",children:dc(),to:"https://emberal.github.io/",newTab:!0},{title:"Forenkle sannhetsverdier",children:xc(),to:"/simplify-truths"}],mc=()=>H(si,{title:"Velkommen!",get children(){var e=pc();return ne(e,H(bt,{each:vc,children:r=>H(cc,{get title(){return r.title},className:"m-4",get to(){return r.to},get newTab(){return r.newTab},get children(){return r.children}})})),e}});var gc=ae("<div>");const as=({children:e,className:r})=>(()=>{var t=gc();return Me(t,`flex-row-center ${r}`),ne(t,e),t})();function Wr(e){return document.getElementById(e)}var _c=ae("<input>"),Ec=ae('<label><div class="relative z-50"></div><div class="default-bg absolute bottom-1/3 z-10 h-2 w-full">'),Tc=ae('<button class="absolute right-2"title=Clear type=reset>');function wc(e,r){let t=!0;function n(a){t&&r(a)}const i=Wr(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),t=!1}}function Sc(e,r,t){if(e){const n=Wr(e);n&&n.value!==""!==r&&t(n.value!=="")}}const ra=({className:e,id:r,name:t,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:l,trailing:o,inputClass:c,ref:u})=>{const[h,x]=Se(!1),[v,d]=Se(!1),[m,S]=Se(!1);return $0(()=>{r&&i&&wc(r,d)}),H(as,{className:`relative ${e}`,get children(){return[l,H(Ac,{title:i,get isActive(){return h()||v()||m()},htmlFor:r}),(()=>{var F=_c();F.$$input=()=>{Sc(r,m(),S),f&&f()},F.addEventListener("blur",()=>x(!1)),F.addEventListener("focus",()=>x(!0));var y=u;return typeof y=="function"?Yl(y,F):u=F,Me(F,`border-2 border-gray-500 bg-default-bg outline-none hover:border-t-cyan-400
focus:border-cyan-500 ${c}`),Ne(F,"id",r),Ne(F,"name",t??void 0),Ne(F,"type",n),Ne(F,"placeholder",a??void 0),F.required=s,F})(),o]}})},Ac=({title:e,isActive:r=!1,htmlFor:t})=>(()=>{var n=Ec(),i=n.firstChild;return Me(n,`pointer-events-none absolute
${r?"default-bg -top-2 left-3 text-sm":"left-2 top-1"}
text-gray-600 transition-all duration-150 dark:text-gray-400`),Ne(n,"for",t),ne(i,e),n})(),yc=({typingDefault:e=!1,id:r="search",className:t,ref:n})=>{const[i,a]=Se(e);function s(){return Wr(r)}function f(){const o=s();o&&(o.value="",a(!1),history.replaceState(null,"",location.pathname),o.focus())}function l(){const o=s();o&&o.value!==""!==i()&&a(o.value!=="")}return H(ra,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:`w-full ${t}`,id:r,ref(o){var c=n;typeof c=="function"?c(o):n=o},placeholder:"¬A & B -> C",type:"text",onChange:l,get leading(){return H(Pt,{path:ec,"aria-label":"Magnifying glass",class:"absolute pl-2"})},get trailing(){return H(Ke,{get when(){return i()},keyed:!0,get children(){var o=Tc();return o.$$click=f,ne(o,H(Pt,{path:tc,"aria-label":"The letter X"})),o}})}})};Xr(["input","click"]);var Fc=ae("<table><thead><tr></tr></thead><tbody>"),Cc=ae('<th scope=col class="sticky top-0 bg-default-bg text-center outline outline-2 outline-offset-[-1px] outline-gray-500 [position:-webkit-sticky;]"><p class="w-max px-2">'),Oc=ae("<tr class=hover:text-black>"),Dc=ae("<td><p>");const Ic=({table:e,header:r,className:t,style:n,id:i})=>(()=>{var a=Fc(),s=a.firstChild,f=s.firstChild,l=s.nextSibling;return Me(a,`z-10 table border-collapse border-2 border-gray-500 ${t}`),Ne(a,"id",i),ne(f,H(bt,{each:r,children:o=>(()=>{var c=Cc(),u=c.firstChild;return ne(u,o),c})()})),ne(l,H(bt,{each:e,children:o=>(()=>{var c=Oc();return ne(c,H(bt,{each:o,children:u=>(()=>{var h=Dc(),x=h.firstChild;return Me(h,`border border-gray-500 text-center last:underline
${u?"bg-green-700":"bg-red-700"}`),ne(x,u?"T":"F"),h})()})),c})()})),Dt(o=>X0(a,n,o)),a})();function kt(e,r){let t={},n=Object.keys(e);for(let i=0,a=n.length;i<a;i+=1){let s=n[i];r.includes(s)||Object.defineProperty(t,s,{get(){return e[s]},configurable:!0,enumerable:!0})}return t}var ss=Vr();function fi(){let e=Gr(ss);if(e)return e;throw new Error("`useHeadlessDisclosureProperties` must be used within `<HeadlessDisclosureRoot>`.")}function kc(e){return typeof e=="function"&&e.length>0}function Rc(e){let r=fi();return De(()=>{let t=e.children;return kc(t)?t(r):t})}function wr(e){return{get children(){return H(Rc,{get children(){return e.children}})}}}function Nc(e){let r,t;if("defaultOpen"in e){let[n,i]=Se(e.defaultOpen);r=n,t=a=>{Al(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else r=()=>e.isOpen,t=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return r()},setState(n){e.disabled||t(n)},disabled(){return!!e.disabled}}}function Lc(e){return typeof e=="function"&&e.length>0}function li(e){let r=Nc(e);return H(ss.Provider,{value:r,get children(){return De(()=>{let t=e.children;return Lc(t)?t(r):t})}})}function Bt(e,r){return H(ro,dt({get component(){return e()}},r))}function Pc(e){return typeof e=="function"}function oi(e,r){return t=>{"ref"in e&&Pc(e.ref)&&e.ref(t),r(t)}}function ci(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function bc(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Mc='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 fs(e,r){let t=e.querySelectorAll(Mc),n=[];for(let i=0,a=t.length;i<a;i+=1)(!r||!r.contains(t[i]))&&n.push(t[i]);return n}function ls(e){return!e.matches('[data-sh-disabled="true"]')}function os(e,r,t){let n=r+t;for(;n>=0&&n<e.length;){if(ls(e[n]))return e[n];n+=t}}function cs(e,r,t){let n=r+t;for(t===1&&n===e.length&&(n=0),t===-1&&n===-1&&(n=e.length-1);r!==n;){if(ls(e[n]))return e[n];n+=t,t===1&&n>=e.length&&(n=0),t===-1&&n<0&&(n=e.length-1)}}function Bc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=cs(e,n,1))==null||t.focus();break}}function Uc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=cs(e,n,-1))==null||t.focus();break}}function us(e){var r;return e.length?((r=os(e,-1,1))==null||r.focus(),!0):!1}function $c(e){var r;return e.length?((r=os(e,e.length,-1))==null||r.focus(),!0):!1}function Wc(e,r){let t=fs(e);r?!document.activeElement||!e.contains(document.activeElement)?$c(t):Uc(t,document.activeElement):!document.activeElement||!e.contains(document.activeElement)?us(t):Bc(t,document.activeElement)}var Hc="data-sh";function or(e){return{[Hc]:e}}var Vc=or("button");function Gc(e){let[r,t]=Se();return fr(()=>{let n=r();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),jt(()=>{n.removeEventListener("keydown",i)})}}),Bt(()=>{var n;return(n=e.as)!=null?n:"button"},dt({get tabindex(){return e.disabled?-1:0},role:"button"},ci(()=>e.disabled),kt(e,["as","ref"]),Vc,{ref:oi(e,n=>{t(()=>n)})}))}function ui(e,r,t){return H(Ke,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return t()},get children(){return H(Ke,{get when(){return r()},get children(){return t()}})}})}function Xa(){var e,r;return(r=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:r.parentElement}function Xc(e){if(e){let r=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),r?e.setAttribute("tabindex",r):e.removeAttribute("tabindex")}}var zc=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=Xa()),jt(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():Xc(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=Xa()}};function hs(){return new zc}function ds(e){return De(()=>e.children)}var na=Vr();function ia(e){let r=Gr(na);if(r)return r;throw new Error(`<${e}> must be used inside a <Dialog>`)}var xs=or("dialog"),jc=or("dialog-description"),Kc=or("dialog-panel"),Yc=or("dialog-title");function Jc(e){let r=ot(),t=ot(),n=ot(),i=ot(),a=hs();return H(na.Provider,{value:{ownerID:r,panelID:t,titleID:n,descriptionID:i},get children(){return H(li,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>ui(e,s,()=>Bt(()=>{var f;return(f=e.as)!=null?f:"div"},dt(kt(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),xs,{id:r,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},wr(e))))})}})}function qc(e){let r=ot(),t=ot(),n=ot(),i=ot(),a=hs();return H(na.Provider,{value:{ownerID:r,panelID:t,titleID:n,descriptionID:i},get children(){return H(li,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>ui(e,s,()=>Bt(()=>{var f;return(f=e.as)!=null?f:"div"},dt(kt(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),xs,{id:r,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},wr(e))))})}})}function Zc(e){return"defaultOpen"in e}function Qc(e){return Zc(e)?H(qc,e):H(Jc,e)}function eu(e){let r=ia("DialogDescription");return Bt(()=>{var t;return(t=e.as)!=null?t:"p"},dt(kt(e,["as","children"]),jc,{id:r.descriptionID},wr(e)))}function tu(e){let r=ia("DialogPanel"),t=fi(),[n,i]=Se();return fr(()=>{let a=n();if(a instanceof HTMLElement&&t.isOpen()){us(fs(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Wc(a,f.shiftKey)):f.key==="Escape"&&t.setState(!1))};a.addEventListener("keydown",s),jt(()=>{a.removeEventListener("keydown",s)})}}),Bt(()=>{var a;return(a=e.as)!=null?a:"div"},dt(kt(e,["as","children","ref"]),Kc,{id:r.panelID,ref:oi(e,a=>{i(()=>a)})},wr(e)))}function ru(e){let r=ia("DialogTitle");return Bt(()=>{var t;return(t=e.as)!=null?t:"h2"},dt(kt(e,["as","children"]),Yc,{id:r.titleID},wr(e)))}var aa=Vr();function ps(e){let r=Gr(aa);if(r)return r;throw new Error(`<${e}> must be used inside a <Disclosure>`)}var vs=or("disclosure"),nu=or("disclosure-button"),iu=or("disclosure-panel");function au(e){let r=ot(),t=ot(),n=ot();return H(aa.Provider,{value:{ownerID:r,buttonID:t,panelID:n},get children(){return Bt(()=>{var i;return(i=e.as)!=null?i:ds},dt(kt(e,["isOpen","as","children","disabled","onChange"]),vs,ci(()=>e.disabled),{get children(){return H(li,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function su(e){let r=ot(),t=ot(),n=ot();return H(aa.Provider,{value:{ownerID:r,buttonID:t,panelID:n},get children(){return Bt(()=>{var i;return(i=e.as)!=null?i:ds},dt(kt(e,["defaultOpen","as","children","disabled","onChange"]),vs,ci(()=>e.disabled),{get children(){return H(li,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function fu(e){return"defaultOpen"in e}function lu(e){return fu(e)?H(su,e):H(au,e)}function ou(e){let r=ps("DisclosureButton"),t=fi(),[n,i]=Se();return fr(()=>{let a=n();if(a instanceof HTMLElement){let s=()=>{t.disabled()||e.disabled||t.setState(!t.isOpen())};a.addEventListener("click",s),jt(()=>{a.removeEventListener("click",s)})}}),H(Gc,dt(kt(e,["children","ref"]),nu,{id:r.buttonID,ref:oi(e,a=>{i(()=>a)}),get"aria-controls"(){return t.isOpen()&&r.panelID}},ci(()=>{let a=t.disabled(),s=e.disabled;return a||s}),bc(()=>t.isOpen()),wr(e)))}function cu(e){let r=ps("DisclosurePanel"),t=fi();return ui(e,()=>t.isOpen(),()=>Bt(()=>{var n;return(n=e.as)!=null?n:"div"},dt(kt(e,["as","unmount","children"]),iu,{id:r.panelID},wr(e))))}var ms=Vr();function uu(e){let r=Gr(ms);if(r)return r;throw new Error(`<${e}> must be used inside a <Transition>`)}function Zt(e){return e?e.split(" "):[]}function xr(e,r){let t=r.filter(n=>n);t.length&&e.classList.add(...t)}function pr(e,r){let t=r.filter(n=>n);t.length&&e.classList.remove(...t)}function hu(e){let r=uu("TransitionChild"),[t,n]=Se(r.show),[i,a]=Se(),s=!0;function f(l,o){var c,u;if(o){if(s){let h=Zt(e.enter),x=Zt(e.enterFrom),v=Zt(e.enterTo),d=Zt(e.entered),m=()=>{var S;pr(l,h),pr(l,v),xr(l,d),(S=e.afterEnter)==null||S.call(e)};(c=e.beforeEnter)==null||c.call(e),xr(l,h),xr(l,x),requestAnimationFrame(()=>{pr(l,x),xr(l,v),l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})})}}else{let h=Zt(e.leave),x=Zt(e.leaveFrom),v=Zt(e.leaveTo),d=Zt(e.entered);(u=e.beforeLeave)==null||u.call(e),pr(l,d),xr(l,h),xr(l,x),requestAnimationFrame(()=>{pr(l,x),xr(l,v)});let m=()=>{var S;pr(l,h),pr(l,v),n(!1),(S=e.afterLeave)==null||S.call(e)};l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})}}return fr(()=>{let l=r.show;l&&n(!0);let o=i();o instanceof HTMLElement?f(o,l):s=!0}),ui(e,t,()=>Bt(()=>{var l;return(l=e.as)!=null?l:"div"},dt(kt(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:oi(e,l=>{a(()=>l)})})))}function du(e){let[r,t]=Zi(e,["show"]);return H(ms.Provider,{value:r,get children(){return H(hu,t)}})}var xu=ae("<div><p></p><div class=mx-2>"),gs=ae("<div>"),pu=ae("<p class=py-1>"),vu=ae('<div class="px-2 pb-2 text-gray-300">');const _s=({title:e,children:r,error:t=!1,className:n})=>(()=>{var i=xu(),a=i.firstChild,s=a.nextSibling;return Me(i,`border-rounded ${t?"border-red-500":"border-gray-500"} ${n}`),Me(a,`border-b px-2 ${t?"border-red-500":"border-gray-500"}`),ne(a,e),ne(s,r),i})(),sa=({title:e,children:r,defaultOpen:t=!1,className:n,id:i,onClick:a})=>(()=>{var s=gs();return Ne(s,"id",i),Me(s,`border-rounded bg-default-bg ${n}`),ne(s,H(lu,{defaultOpen:t,children:({isOpen:f})=>[H(ou,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{var l=pu();return ne(l,e),l})(),H(Pt,{path:Jo,get class(){return`w-5 ${f()&&"rotate-180 transform"} transition`}})]}}),H(du,{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 H(cu,{get children(){var l=vu();return ne(l,r),l}})}})]})),s})(),Es=({children:e,className:r})=>(()=>{var t=gs();return Me(t,`border-rounded mb-2 flex flex-col gap-1
bg-cyan-900 p-2 dark:border-gray-800 ${r}`),ne(t,e),t})();function Jt(){}Jt.prototype={diff:function(r,t){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.callback;typeof i=="function"&&(a=i,i={}),this.options=i;var s=this;function f(D){return a?(setTimeout(function(){a(void 0,D)},0),!0):D}r=this.castInput(r),t=this.castInput(t),r=this.removeEmpty(this.tokenize(r)),t=this.removeEmpty(this.tokenize(t));var l=t.length,o=r.length,c=1,u=l+o;i.maxEditLength&&(u=Math.min(u,i.maxEditLength));var h=(n=i.timeout)!==null&&n!==void 0?n:1/0,x=Date.now()+h,v=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(v[0],t,r,0);if(v[0].oldPos+1>=o&&d+1>=l)return f([{value:this.join(t),count:t.length}]);var m=-1/0,S=1/0;function F(){for(var D=Math.max(m,-c);D<=Math.min(S,c);D+=2){var G=void 0,Q=v[D-1],I=v[D+1];Q&&(v[D-1]=void 0);var V=!1;if(I){var L=I.oldPos-D;V=I&&0<=L&&L<l}var M=Q&&Q.oldPos+1<o;if(!V&&!M){v[D]=void 0;continue}if(!M||V&&Q.oldPos+1<I.oldPos?G=s.addToPath(I,!0,void 0,0):G=s.addToPath(Q,void 0,!0,1),d=s.extractCommon(G,t,r,D),G.oldPos+1>=o&&d+1>=l)return f(mu(s,G.lastComponent,t,r,s.useLongestToken));v[D]=G,G.oldPos+1>=o&&(S=Math.min(S,D-1)),d+1>=l&&(m=Math.max(m,D+1))}c++}if(a)(function D(){setTimeout(function(){if(c>u||Date.now()>x)return a();F()||D()},0)})();else for(;c<=u&&Date.now()<=x;){var y=F();if(y)return y}},addToPath:function(r,t,n,i){var a=r.lastComponent;return a&&a.added===t&&a.removed===n?{oldPos:r.oldPos+i,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:r.oldPos+i,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}},extractCommon:function(r,t,n,i){for(var a=t.length,s=n.length,f=r.oldPos,l=f-i,o=0;l+1<a&&f+1<s&&this.equals(t[l+1],n[f+1]);)l++,f++,o++;return o&&(r.lastComponent={count:o,previousComponent:r.lastComponent}),r.oldPos=f,l},equals:function(r,t){return this.options.comparator?this.options.comparator(r,t):r===t||this.options.ignoreCase&&r.toLowerCase()===t.toLowerCase()},removeEmpty:function(r){for(var t=[],n=0;n<r.length;n++)r[n]&&t.push(r[n]);return t},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}};function mu(e,r,t,n,i){for(var a=[],s;r;)a.push(r),s=r.previousComponent,delete r.previousComponent,r=s;a.reverse();for(var f=0,l=a.length,o=0,c=0;f<l;f++){var u=a[f];if(u.removed){if(u.value=e.join(n.slice(c,c+u.count)),c+=u.count,f&&a[f-1].added){var x=a[f-1];a[f-1]=a[f],a[f]=x}}else{if(!u.added&&i){var h=t.slice(o,o+u.count);h=h.map(function(d,m){var S=n[c+m];return S.length>d.length?S:d}),u.value=e.join(h)}else u.value=e.join(t.slice(o,o+u.count));o+=u.count,u.added||(c+=u.count)}}var v=a[l-1];return l>1&&typeof v.value=="string"&&(v.added||v.removed)&&e.equals("",v.value)&&(a[l-2].value+=v.value,a.pop()),a}var gu=new Jt;function _u(e,r,t){return gu.diff(e,r,t)}var za=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ja=/\S/,Ts=new Jt;Ts.equals=function(e,r){return this.options.ignoreCase&&(e=e.toLowerCase(),r=r.toLowerCase()),e===r||this.options.ignoreWhitespace&&!ja.test(e)&&!ja.test(r)};Ts.tokenize=function(e){for(var r=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<r.length-1;t++)!r[t+1]&&r[t+2]&&za.test(r[t])&&za.test(r[t+2])&&(r[t]+=r[t+2],r.splice(t+1,2),t--);return r};var ws=new Jt;ws.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
`));var r=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var n=0;n<t.length;n++){var i=t[n];n%2&&!this.options.newlineIsToken?r[r.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),r.push(i))}return r};var Eu=new Jt;Eu.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Tu=new Jt;Tu.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Mn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(r){return typeof r}:Mn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mn(e)}var wu=Object.prototype.toString,cn=new Jt;cn.useLongestToken=!0;cn.tokenize=ws.tokenize;cn.castInput=function(e){var r=this.options,t=r.undefinedReplacement,n=r.stringifyReplacer,i=n===void 0?function(a,s){return typeof s>"u"?t:s}:n;return typeof e=="string"?e:JSON.stringify(Wi(e,null,null,i),i," ")};cn.equals=function(e,r){return Jt.prototype.equals.call(cn,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function Wi(e,r,t,n,i){r=r||[],t=t||[],n&&(e=n(i,e));var a;for(a=0;a<r.length;a+=1)if(r[a]===e)return t[a];var s;if(wu.call(e)==="[object Array]"){for(r.push(e),s=new Array(e.length),t.push(s),a=0;a<e.length;a+=1)s[a]=Wi(e[a],r,t,n,i);return r.pop(),t.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),Mn(e)==="object"&&e!==null){r.push(e),s={},t.push(s);var f=[],l;for(l in e)e.hasOwnProperty(l)&&f.push(l);for(f.sort(),a=0;a<f.length;a+=1)l=f[a],s[l]=Wi(e[l],r,t,n,l);r.pop(),t.pop()}else s=e;return s}var Hi=new Jt;Hi.tokenize=function(e){return e.slice()};Hi.join=Hi.removeEmpty=function(e){return e};var Su=ae("<button><span class=sr-only></span><span>"),Au=ae("<button>");const Oi=({defaultValue:e=!1,title:r,onChange:t,className:n,name:i,id:a})=>{const[s,f]=Se(e);function l(){const o=!s();f(o),t&&t(o)}return(()=>{var o=Su(),c=o.firstChild,u=c.nextSibling;return o.$$click=l,Ne(o,"id",a),Ne(o,"title",r),ne(c,i),Dt(h=>{var x=`${s()?"bg-cyan-900":"bg-gray-500"} relative my-2 inline-flex h-6 w-11 items-center rounded-full ${n}`,v=`${s()?"translate-x-6":"translate-x-1"} inline-block h-4 w-4 transform rounded-full bg-white transition-all`;return x!==h.e&&Me(o,h.e=x),v!==h.t&&Me(u,h.t=v),h},{e:void 0,t:void 0}),o})()},Vn=({className:e,title:r,children:t,id:n,onClick:i,type:a="button"})=>(()=>{var s=Au();return Qi(s,"click",i,!0),Ne(s,"title",r),Ne(s,"id",n),Ne(s,"type",a),Me(s,`border-rounded cursor-pointer bg-cyan-900 px-2 ${e}`),ne(s,t),s})();Xr(["click"]);var yu=ae("<div><div class=mx-1>"),Fu=ae("<div>");const Ka=({title:e,button:r,children:t,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,l]=Se(!1);function o(){l(!1)}function c(){l(!f())}return fr(()=>{function u(x){x.target instanceof HTMLElement&&x.target.closest(`#${n}`)===null&&o()}function h(x){x.key==="Escape"&&o()}f()?(document.addEventListener("click",u),document.addEventListener("keyup",h)):(document.removeEventListener("click",u),document.removeEventListener("keyup",h))}),(()=>{var u=Fu();return Me(u,`${i}`),Ne(u,"id",n),ne(u,H(Vn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:r}),null),ne(u,H(Ke,{get when(){return f()},keyed:!0,get children(){var h=yu(),x=h.firstChild;return Me(h,`absolute z-50 mt-1 w-max rounded-b-xl border border-gray-500 bg-default-bg ${s}`),ne(x,t),h}}),null),u})()};var Cu=ae('<div class="fixed inset-0 bg-black/40">'),Ou=ae("<div class=my-3>"),Du=ae('<div class="h-fit w-fit"><button>');const Iu=({title:e,description:r,button:t,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClass:l,buttonTitle:o,acceptButtonId:c})=>{const[u,h]=Se(!1);function x(){s?.(),h(!1)}function v(){let d=!0;function m(S){d&&S.key==="Enter"&&c&&Wr(c)?.click()}if(u()){const F=Wr("cl-6");return F?.addEventListener("keypress",m),()=>{F?.removeEventListener("keypress",m),d=!1}}else return()=>{}}return fr(v,u()),(()=>{var d=Du(),m=d.firstChild;return m.$$click=()=>h(!0),Me(m,l),Ne(m,"title",o??void 0),ne(m,t),ne(d,H(to,{get children(){return H(Qc,{get isOpen(){return u()},onClose:()=>h(!1),class:`flex-row-center fixed inset-0 z-50 justify-center overflow-auto text-white ${f}`,get children(){return[(()=>{var S=Cu();return Ne(S,"aria-hidden",!0),S})(),H(tu,{class:"border-rounded relative w-fit border-gray-500 bg-default-bg p-2",get children(){return[H(ru,{class:"border-b",children:e}),H(eu,{class:"mb-4 mt-1",children:r}),a,(()=>{var S=Ou();return ne(S,H(Vn,{onClick:x,className:"mr-2 h-10",id:c,children:n}),null),ne(S,H(Vn,{onClick:()=>h(!1),className:"h-10",children:i}),null),S})()]}})]}})}}),null),d})()};Xr(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Gn={};Gn.version="0.18.5";var Ss=1252,ku=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],As=function(e){ku.indexOf(e)!=-1&&(Ss=e)};function Ru(){As(1252)}var un=function(e){As(e)};function Nu(){un(1200),Ru()}function Lu(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var On=function(r){return String.fromCharCode(r)},Ya=function(r){return String.fromCharCode(r)},vr,tr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function hn(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0,o=0;o<e.length;)t=e.charCodeAt(o++),a=t>>2,n=e.charCodeAt(o++),s=(t&3)<<4|n>>4,i=e.charCodeAt(o++),f=(n&15)<<2|i>>6,l=i&63,isNaN(n)?f=l=64:isNaN(i)&&(l=64),r+=tr.charAt(a)+tr.charAt(s)+tr.charAt(f)+tr.charAt(l);return r}function Kt(e){var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)a=tr.indexOf(e.charAt(o++)),s=tr.indexOf(e.charAt(o++)),t=a<<2|s>>4,r+=String.fromCharCode(t),f=tr.indexOf(e.charAt(o++)),n=(s&15)<<4|f>>2,f!==64&&(r+=String.fromCharCode(n)),l=tr.indexOf(e.charAt(o++)),i=(f&3)<<6|l,l!==64&&(r+=String.fromCharCode(i));return r}var _e=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),qt=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function _r(e){return _e?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Ja(e){return _e?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ct=function(r){return _e?qt(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function hi(e){if(typeof ArrayBuffer>"u")return Ct(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function gn(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function Pu(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Ye=_e?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:qt(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)if(i=e[r].length,e[r]instanceof Uint8Array)n.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";n.set(new Uint8Array(e[r]),t)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function bu(e){for(var r=[],t=0,n=e.length+250,i=_r(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|f>>6&15|(s&3)<<4,i[t++]=128|f&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(r.push(i.slice(0,t)),t=0,i=_r(65535),n=65530)}return r.push(i.slice(0,t)),Ye(r)}var nn=/\u0000/g,Dn=/[\u0001-\u0006]/g;function br(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function Ot(e,r){var t=""+e;return t.length>=r?t:Pe("0",r-t.length)+t}function fa(e,r){var t=""+e;return t.length>=r?t:Pe(" ",r-t.length)+t}function Xn(e,r){var t=""+e;return t.length>=r?t:t+Pe(" ",r-t.length)}function Mu(e,r){var t=""+Math.round(e);return t.length>=r?t:Pe("0",r-t.length)+t}function Bu(e,r){var t=""+e;return t.length>=r?t:Pe("0",r-t.length)+t}var qa=Math.pow(2,32);function Ir(e,r){if(e>qa||e<-qa)return Mu(e,r);var t=Math.round(e);return Bu(t,r)}function zn(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var Za=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Di=[["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 Uu(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var be={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Qa={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},$u={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 jn(e,r,t){for(var n=e<0?-1:1,i=e*n,a=0,s=1,f=0,l=1,o=0,c=0,u=Math.floor(i);o<r&&(u=Math.floor(i),f=u*s+a,c=u*o+l,!(i-u<5e-8));)i=1/(i-u),a=s,s=f,l=o,o=c;if(c>r&&(o>r?(c=l,f=a):(c=o,f=s)),!t)return[0,n*f,c];var h=Math.floor(n*f/c);return[h,n*f-h*c,c]}function In(e,r,t){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),r&&r.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++i==86400&&(f.T=i=0,++n,++f.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),t&&(a=ju(l,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 ys=new Date(1899,11,31,0,0,0),Wu=ys.getTime(),Hu=new Date(1900,2,1,0,0,0);function Fs(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=Hu&&(t+=24*60*60*1e3),(t-(Wu+(e.getTimezoneOffset()-ys.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function la(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Vu(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Gu(e){var r=e<0?12:11,t=la(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Xu(e){var r=la(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function zu(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Gu(e):r===10?t=e.toFixed(10).substr(0,12):t=Xu(e),la(Vu(t.toUpperCase()))}function Vi(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):zu(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return nr(14,Fs(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function ju(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function Ku(e,r,t,n){var i="",a=0,s=0,f=t.y,l,o=0;switch(e){case 98:f=t.y+543;case 121:switch(r.length){case 1:case 2:l=f%100,o=2;break;default:l=f%1e4,o=4;break}break;case 109:switch(r.length){case 1:case 2:l=t.m,o=r.length;break;case 3:return Di[t.m-1][1];case 5:return Di[t.m-1][0];default:return Di[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:l=t.d,o=r.length;break;case 3:return Za[t.q][0];default:return Za[t.q][1]}break;case 104:switch(r.length){case 1:case 2:l=1+(t.H+11)%12,o=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:l=t.H,o=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:l=t.M,o=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?Ot(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),r==="s"?a===0?"0":""+a/s:(i=Ot(a,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}o=r.length===3?1:2;break;case 101:l=f,o=1;break}var c=o>0?Ot(l,o):"";return c}function rr(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var Cs=/%/g;function Yu(e,r,t){var n=r.replace(Cs,""),i=r.length-n.length;return Gt(e,n,t*Math.pow(10,2*i))+Pe("%",i)}function Ju(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Gt(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function Os(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Os(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var Ds=/# (\?+)( ?)\/( ?)(\d+)/;function qu(e,r,t){var n=parseInt(e[4],10),i=Math.round(r*n),a=Math.floor(i/n),s=i-a*n,f=n;return t+(a===0?"":""+a)+" "+(s===0?Pe(" ",e[1].length+1+e[4].length):fa(s,e[1].length)+e[2]+"/"+e[3]+Ot(f,e[4].length))}function Zu(e,r,t){return t+(r===0?"":""+r)+Pe(" ",e[1].length+2+e[4].length)}var Is=/^#*0*\.([0#]+)/,ks=/\).*[0#]/,Rs=/\(###\) ###\\?-####/;function it(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function e0(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function t0(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function Qu(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function eh(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function wt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(ks)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?wt("n",n,t):"("+wt("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Ju(e,r,t);if(r.indexOf("%")!==-1)return Yu(e,r,t);if(r.indexOf("E")!==-1)return Os(r,t);if(r.charCodeAt(0)===36)return"$"+wt(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+Ir(l,r.length);if(r.match(/^[#?]+$/))return i=Ir(t,0),i==="0"&&(i=""),i.length>r.length?i:it(r.substr(0,r.length-i.length))+i;if(a=r.match(Ds))return qu(a,l,o);if(r.match(/^#+0+$/))return o+Ir(l,r.length-r.indexOf("0"));if(a=r.match(Is))return i=e0(t,a[1].length).replace(/^([^\.]+)$/,"$1."+it(a[1])).replace(/\.$/,"."+it(a[1])).replace(/\.(\d*)$/,function(v,d){return"."+d+Pe("0",it(a[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return o+e0(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return o+rr(Ir(l,0));if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+wt(e,r,-t):rr(""+(Math.floor(t)+Qu(t,a[1].length)))+"."+Ot(t0(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return wt(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=br(wt(e,r.replace(/[\\-]/g,""),t)),s=0,br(br(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Rs))return i=wt(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=jn(l,Math.pow(10,s)-1,!1),i=""+o,c=Gt("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Xn(f[2],s),c.length<a[4].length&&(c=it(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=jn(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?fa(f[1],s)+a[2]+"/"+a[3]+Xn(f[2],s):Pe(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=Ir(t,0),r.length<=i.length?i:it(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var u=r.indexOf(".")-s,h=r.length-i.length-u;return it(r.substr(0,u)+i+r.substr(r.length-h))}if(a=r.match(/^00,000\.([#0]*0)$/))return s=t0(t,a[1].length),t<0?"-"+wt(e,r,-t):rr(eh(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ot(0,3-v.length):"")+v})+"."+Ot(s,a[1].length);switch(r){case"###,##0.00":return wt(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var x=rr(Ir(l,0));return x!=="0"?o+x:"";case"###,###.00":return wt(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return wt(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function th(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Gt(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function rh(e,r,t){var n=r.replace(Cs,""),i=r.length-n.length;return Gt(e,n,t*Math.pow(10,2*i))+Pe("%",i)}function Ns(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Ns(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function Nt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(ks)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Nt("n",n,t):"("+Nt("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return th(e,r,t);if(r.indexOf("%")!==-1)return rh(e,r,t);if(r.indexOf("E")!==-1)return Ns(r,t);if(r.charCodeAt(0)===36)return"$"+Nt(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+Ot(l,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:it(r.substr(0,r.length-i.length))+i;if(a=r.match(Ds))return Zu(a,l,o);if(r.match(/^#+0+$/))return o+Ot(l,r.length-r.indexOf("0"));if(a=r.match(Is))return i=(""+t).replace(/^([^\.]+)$/,"$1."+it(a[1])).replace(/\.$/,"."+it(a[1])),i=i.replace(/\.(\d*)$/,function(v,d){return"."+d+Pe("0",it(a[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return o+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return o+rr(""+l);if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Nt(e,r,-t):rr(""+t)+"."+Pe("0",a[1].length);if(a=r.match(/^#,#*,#0/))return Nt(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=br(Nt(e,r.replace(/[\\-]/g,""),t)),s=0,br(br(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Rs))return i=Nt(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=jn(l,Math.pow(10,s)-1,!1),i=""+o,c=Gt("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Xn(f[2],s),c.length<a[4].length&&(c=it(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=jn(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?fa(f[1],s)+a[2]+"/"+a[3]+Xn(f[2],s):Pe(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:it(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var u=r.indexOf(".")-s,h=r.length-i.length-u;return it(r.substr(0,u)+i+r.substr(r.length-h))}if(a=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+Nt(e,r,-t):rr(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ot(0,3-v.length):"")+v})+"."+Ot(0,a[1].length);switch(r){case"###,###":case"##,###":case"#,###":var x=rr(""+l);return x!=="0"?o+x:"";default:if(r.match(/\.[0#?]*$/))return Nt(e,r.slice(0,r.lastIndexOf(".")),t)+it(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Gt(e,r,t){return(t|0)===t?Nt(e,r,t):wt(e,r,t)}function nh(e){for(var r=[],t=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=e.substr(i,n-i),i=n+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var Ls=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ps(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":zn(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=t;e.charAt(r++)!=="]"&&r<e.length;)n+=e.charAt(r);if(n.match(Ls))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function ih(e,r,t,n){for(var i=[],a="",s=0,f="",l="t",o,c,u,h="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!zn(e,s))throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(u=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(u);i[i.length]={t:"t",v:a},++s;break;case"\\":var x=e.charAt(++s),v=x==="("||x===")"?x:"t";i[i.length]={t:v,v:x},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:r},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(o==null&&(o=In(r,t,e.charAt(s+1)==="2"),o==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},l=f,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||o==null&&(o=In(r,t),o==null))return"";for(a=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)a+=f;f==="m"&&l.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=h),i[i.length]={t:f,v:a},l=f;break;case"A":case"a":case"上":var d={t:f,v:f};if(o==null&&(o=In(r,t)),e.substr(s,3).toUpperCase()==="A/P"?(o!=null&&(d.v=o.H>=12?"P":"A"),d.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(o!=null&&(d.v=o.H>=12?"PM":"AM"),d.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(o!=null&&(d.v=o.H>=12?"下午":"上午"),d.t="T",s+=5,h="h"):(d.t="t",++s),o==null&&d.t==="T")return"";i[i.length]=d,l=f;break;case"[":for(a=f;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(Ls)){if(o==null&&(o=In(r,t),o==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ps(e)||(i[i.length]={t:"t",v:a}));break;case".":if(o!=null){for(a=f;++s<e.length&&(f=e.charAt(s))==="0";)a+=f;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(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},l=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<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:f,v:f},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var m=0,S=0,F;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=h,l="h",m<1&&(m=1);break;case"s":(F=i[s].v.match(/\.0+$/))&&(S=Math.max(S,F[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[s].v.match(/[Hh]/)&&(m=1),m<2&&i[s].v.match(/[Mm]/)&&(m=2),m<3&&i[s].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var y="",D;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=Ku(i[s].t.charCodeAt(0),i[s].v,o,S),i[s].t="t";break;case"n":case"?":for(D=s+1;i[D]!=null&&((f=i[D].t)==="?"||f==="D"||(f===" "||f==="t")&&i[D+1]!=null&&(i[D+1].t==="?"||i[D+1].t==="t"&&i[D+1].v==="/")||i[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(i[D].v==="/"||i[D].v===" "&&i[D+1]!=null&&i[D+1].t=="?"));)i[s].v+=i[D].v,i[D]={v:"",t:";"},++D;y+=i[s].v,s=D-1;break;case"G":i[s].t="t",i[s].v=Vi(r,t);break}var G="",Q,I;if(y.length>0){y.charCodeAt(0)==40?(Q=r<0&&y.charCodeAt(0)===45?-r:r,I=Gt("n",y,Q)):(Q=r<0&&n>1?-r:r,I=Gt("n",y,Q),Q<0&&i[0]&&i[0].t=="t"&&(I=I.substr(1),i[0].v="-"+i[0].v)),D=I.length-1;var V=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){V=s;break}var L=i.length;if(V===i.length&&I.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(D>=i[s].v.length-1?(D-=i[s].v.length,i[s].v=I.substr(D+1,i[s].v.length)):D<0?i[s].v="":(i[s].v=I.substr(0,D+1),D=-1),i[s].t="t",L=s);D>=0&&L<i.length&&(i[L].v=I.substr(0,D+1)+i[L].v)}else if(V!==i.length&&I.indexOf("E")===-1){for(D=I.indexOf(".")-1,s=V;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(c=i[s].v.indexOf(".")>-1&&s===V?i[s].v.indexOf(".")-1:i[s].v.length-1,G=i[s].v.substr(c+1);c>=0;--c)D>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(G=I.charAt(D--)+G);i[s].v=G,i[s].t="t",L=s}for(D>=0&&L<i.length&&(i[L].v=I.substr(0,D+1)+i[L].v),D=I.indexOf(".")+1,s=V;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==V)){for(c=i[s].v.indexOf(".")>-1&&s===V?i[s].v.indexOf(".")+1:0,G=i[s].v.substr(0,c);c<i[s].v.length;++c)D<I.length&&(G+=I.charAt(D++));i[s].v=G,i[s].t="t",L=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(Q=n>1&&r<0&&s>0&&i[s-1].v==="-"?-r:r,i[s].v=Gt(i[s].t,i[s].v,Q),i[s].t="t");var M="";for(s=0;s!==i.length;++s)i[s]!=null&&(M+=i[s].v);return M}var r0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function n0(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function ah(e,r){var t=nh(e),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(r0),f=t[1].match(r0);return n0(r,s)?[n,t[0]]:n0(r,f)?[n,t[1]]:[n,t[s!=null&&f!=null?2:1]]}return[n,a]}function nr(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:be)[e],n==null&&(n=t.table&&t.table[Qa[e]]||be[Qa[e]]),n==null&&(n=$u[e]||"General");break}if(zn(n,0))return Vi(r,t);r instanceof Date&&(r=Fs(r,t.date1904));var i=ah(n,r);if(zn(i[1]))return Vi(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return ih(i[1],r,t,i[0])}function bs(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(be[t]==null){r<0&&(r=t);continue}if(be[t]==e){r=t;break}}r<0&&(r=391)}return be[r]=e,r}function di(e){for(var r=0;r!=392;++r)e[r]!==void 0&&bs(e[r],r)}function xi(){be=Uu()}var Ms=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function sh(e){var r=typeof e=="number"?be[e]:e;return r=r.replace(Ms,"(\\d+)"),new RegExp("^"+r+"$")}function fh(e,r,t){var n=-1,i=-1,a=-1,s=-1,f=-1,l=-1;(r.match(Ms)||[]).forEach(function(u,h){var x=parseInt(t[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":n=x;break;case"d":a=x;break;case"h":s=x;break;case"s":l=x;break;case"m":s>=0?f=x:i=x;break}}),l>=0&&f==-1&&i>=0&&(f=i,i=-1);var o=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&f==-1&&l==-1?o:n==-1&&i==-1&&a==-1?c:o+"T"+c}var lh=function(){var e={};e.version="1.2.0";function r(){for(var I=0,V=new Array(256),L=0;L!=256;++L)I=L,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,I=I&1?-306674912^I>>>1:I>>>1,V[L]=I;return typeof Int32Array<"u"?new Int32Array(V):V}var t=r();function n(I){var V=0,L=0,M=0,W=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)W[M]=I[M];for(M=0;M!=256;++M)for(L=I[M],V=256+M;V<4096;V+=256)L=W[V]=L>>>8^I[L&255];var j=[];for(M=1;M!=16;++M)j[M-1]=typeof Int32Array<"u"?W.subarray(M*256,M*256+256):W.slice(M*256,M*256+256);return j}var i=n(t),a=i[0],s=i[1],f=i[2],l=i[3],o=i[4],c=i[5],u=i[6],h=i[7],x=i[8],v=i[9],d=i[10],m=i[11],S=i[12],F=i[13],y=i[14];function D(I,V){for(var L=V^-1,M=0,W=I.length;M<W;)L=L>>>8^t[(L^I.charCodeAt(M++))&255];return~L}function G(I,V){for(var L=V^-1,M=I.length-15,W=0;W<M;)L=y[I[W++]^L&255]^F[I[W++]^L>>8&255]^S[I[W++]^L>>16&255]^m[I[W++]^L>>>24]^d[I[W++]]^v[I[W++]]^x[I[W++]]^h[I[W++]]^u[I[W++]]^c[I[W++]]^o[I[W++]]^l[I[W++]]^f[I[W++]]^s[I[W++]]^a[I[W++]]^t[I[W++]];for(M+=15;W<M;)L=L>>>8^t[(L^I[W++])&255];return~L}function Q(I,V){for(var L=V^-1,M=0,W=I.length,j=0,Y=0;M<W;)j=I.charCodeAt(M++),j<128?L=L>>>8^t[(L^j)&255]:j<2048?(L=L>>>8^t[(L^(192|j>>6&31))&255],L=L>>>8^t[(L^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,Y=I.charCodeAt(M++)&1023,L=L>>>8^t[(L^(240|j>>8&7))&255],L=L>>>8^t[(L^(128|j>>2&63))&255],L=L>>>8^t[(L^(128|Y>>6&15|(j&3)<<4))&255],L=L>>>8^t[(L^(128|Y&63))&255]):(L=L>>>8^t[(L^(224|j>>12&15))&255],L=L>>>8^t[(L^(128|j>>6&63))&255],L=L>>>8^t[(L^(128|j&63))&255]);return~L}return e.table=t,e.bstr=D,e.buf=G,e.str=Q,e}(),Fe=function(){var r={};r.version="1.2.1";function t(p,E){for(var g=p.split("/"),_=E.split("/"),T=0,w=0,R=Math.min(g.length,_.length);T<R;++T){if(w=g[T].length-_[T].length)return w;if(g[T]!=_[T])return g[T]<_[T]?-1:1}return g.length-_.length}function n(p){if(p.charAt(p.length-1)=="/")return p.slice(0,-1).indexOf("/")===-1?p:n(p.slice(0,-1));var E=p.lastIndexOf("/");return E===-1?p:p.slice(0,E+1)}function i(p){if(p.charAt(p.length-1)=="/")return i(p.slice(0,-1));var E=p.lastIndexOf("/");return E===-1?p:p.slice(E+1)}function a(p,E){typeof E=="string"&&(E=new Date(E));var g=E.getHours();g=g<<6|E.getMinutes(),g=g<<5|E.getSeconds()>>>1,p.write_shift(2,g);var _=E.getFullYear()-1980;_=_<<4|E.getMonth()+1,_=_<<5|E.getDate(),p.write_shift(2,_)}function s(p){var E=p.read_shift(2)&65535,g=p.read_shift(2)&65535,_=new Date,T=g&31;g>>>=5;var w=g&15;g>>>=4,_.setMilliseconds(0),_.setFullYear(g+1980),_.setMonth(w-1),_.setDate(T);var R=E&31;E>>>=5;var U=E&63;return E>>>=6,_.setHours(E),_.setMinutes(U),_.setSeconds(R<<1),_}function f(p){vt(p,0);for(var E={},g=0;p.l<=p.length-4;){var _=p.read_shift(2),T=p.read_shift(2),w=p.l+T,R={};switch(_){case 21589:g=p.read_shift(1),g&1&&(R.mtime=p.read_shift(4)),T>5&&(g&2&&(R.atime=p.read_shift(4)),g&4&&(R.ctime=p.read_shift(4))),R.mtime&&(R.mt=new Date(R.mtime*1e3));break}p.l=w,E[_]=R}return E}var l;function o(){return l||(l={})}function c(p,E){if(p[0]==80&&p[1]==75)return Ba(p,E);if((p[0]|32)==109&&(p[1]|32)==105)return xl(p,E);if(p.length<512)throw new Error("CFB file size "+p.length+" < 512");var g=3,_=512,T=0,w=0,R=0,U=0,k=0,N=[],P=p.slice(0,512);vt(P,0);var K=u(P);switch(g=K[0],g){case 3:_=512;break;case 4:_=4096;break;case 0:if(K[1]==0)return Ba(p,E);default:throw new Error("Major Version: Expected 3 or 4 saw "+g)}_!==512&&(P=p.slice(0,_),vt(P,28));var ee=p.slice(0,_);h(P,g);var ie=P.read_shift(4,"i");if(g===3&&ie!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ie);P.l+=4,R=P.read_shift(4,"i"),P.l+=4,P.chk("00100000","Mini Stream Cutoff Size: "),U=P.read_shift(4,"i"),T=P.read_shift(4,"i"),k=P.read_shift(4,"i"),w=P.read_shift(4,"i");for(var J=-1,re=0;re<109&&(J=P.read_shift(4,"i"),!(J<0));++re)N[re]=J;var he=x(p,_);m(k,w,he,_,N);var ke=F(he,R,N,_);ke[R].name="!Directory",T>0&&U!==Y&&(ke[U].name="!MiniFAT"),ke[N[0]].name="!FAT",ke.fat_addrs=N,ke.ssz=_;var Re={},Qe=[],qr=[],Zr=[];y(R,ke,he,Qe,T,Re,qr,U),v(qr,Zr,Qe),Qe.shift();var Qr={FileIndex:qr,FullPaths:Zr};return E&&E.raw&&(Qr.raw={header:ee,sectors:he}),Qr}function u(p){if(p[p.l]==80&&p[p.l+1]==75)return[0,0];p.chk(ue,"Header Signature: "),p.l+=16;var E=p.read_shift(2,"u");return[p.read_shift(2,"u"),E]}function h(p,E){var g=9;switch(p.l+=2,g=p.read_shift(2)){case 9:if(E!=3)throw new Error("Sector Shift: Expected 9 saw "+g);break;case 12:if(E!=4)throw new Error("Sector Shift: Expected 12 saw "+g);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+g)}p.chk("0600","Mini Sector Shift: "),p.chk("000000000000","Reserved: ")}function x(p,E){for(var g=Math.ceil(p.length/E)-1,_=[],T=1;T<g;++T)_[T-1]=p.slice(T*E,(T+1)*E);return _[g-1]=p.slice(g*E),_}function v(p,E,g){for(var _=0,T=0,w=0,R=0,U=0,k=g.length,N=[],P=[];_<k;++_)N[_]=P[_]=_,E[_]=g[_];for(;U<P.length;++U)_=P[U],T=p[_].L,w=p[_].R,R=p[_].C,N[_]===_&&(T!==-1&&N[T]!==T&&(N[_]=N[T]),w!==-1&&N[w]!==w&&(N[_]=N[w])),R!==-1&&(N[R]=_),T!==-1&&_!=N[_]&&(N[T]=N[_],P.lastIndexOf(T)<U&&P.push(T)),w!==-1&&_!=N[_]&&(N[w]=N[_],P.lastIndexOf(w)<U&&P.push(w));for(_=1;_<k;++_)N[_]===_&&(w!==-1&&N[w]!==w?N[_]=N[w]:T!==-1&&N[T]!==T&&(N[_]=N[T]));for(_=1;_<k;++_)if(p[_].type!==0){if(U=_,U!=N[U])do U=N[U],E[_]=E[U]+"/"+E[_];while(U!==0&&N[U]!==-1&&U!=N[U]);N[_]=-1}for(E[0]+="/",_=1;_<k;++_)p[_].type!==2&&(E[_]+="/")}function d(p,E,g){for(var _=p.start,T=p.size,w=[],R=_;g&&T>0&&R>=0;)w.push(E.slice(R*j,R*j+j)),T-=j,R=mr(g,R*4);return w.length===0?B(0):Ye(w).slice(0,p.size)}function m(p,E,g,_,T){var w=Y;if(p===Y){if(E!==0)throw new Error("DIFAT chain shorter than expected")}else if(p!==-1){var R=g[p],U=(_>>>2)-1;if(!R)return;for(var k=0;k<U&&(w=mr(R,k*4))!==Y;++k)T.push(w);m(mr(R,_-4),E-1,g,_,T)}}function S(p,E,g,_,T){var w=[],R=[];T||(T=[]);var U=_-1,k=0,N=0;for(k=E;k>=0;){T[k]=!0,w[w.length]=k,R.push(p[k]);var P=g[Math.floor(k*4/_)];if(N=k*4&U,_<4+N)throw new Error("FAT boundary crossed: "+k+" 4 "+_);if(!p[P])break;k=mr(p[P],N)}return{nodes:w,data:u0([R])}}function F(p,E,g,_){var T=p.length,w=[],R=[],U=[],k=[],N=_-1,P=0,K=0,ee=0,ie=0;for(P=0;P<T;++P)if(U=[],ee=P+E,ee>=T&&(ee-=T),!R[ee]){k=[];var J=[];for(K=ee;K>=0;){J[K]=!0,R[K]=!0,U[U.length]=K,k.push(p[K]);var re=g[Math.floor(K*4/_)];if(ie=K*4&N,_<4+ie)throw new Error("FAT boundary crossed: "+K+" 4 "+_);if(!p[re]||(K=mr(p[re],ie),J[K]))break}w[ee]={nodes:U,data:u0([k])}}return w}function y(p,E,g,_,T,w,R,U){for(var k=0,N=_.length?2:0,P=E[p].data,K=0,ee=0,ie;K<P.length;K+=128){var J=P.slice(K,K+128);vt(J,64),ee=J.read_shift(2),ie=da(J,0,ee-N),_.push(ie);var re={name:ie,type:J.read_shift(1),color:J.read_shift(1),L:J.read_shift(4,"i"),R:J.read_shift(4,"i"),C:J.read_shift(4,"i"),clsid:J.read_shift(16),state:J.read_shift(4,"i"),start:0,size:0},he=J.read_shift(2)+J.read_shift(2)+J.read_shift(2)+J.read_shift(2);he!==0&&(re.ct=D(J,J.l-8));var ke=J.read_shift(2)+J.read_shift(2)+J.read_shift(2)+J.read_shift(2);ke!==0&&(re.mt=D(J,J.l-8)),re.start=J.read_shift(4,"i"),re.size=J.read_shift(4,"i"),re.size<0&&re.start<0&&(re.size=re.type=0,re.start=Y,re.name=""),re.type===5?(k=re.start,T>0&&k!==Y&&(E[k].name="!StreamData")):re.size>=4096?(re.storage="fat",E[re.start]===void 0&&(E[re.start]=S(g,re.start,E.fat_addrs,E.ssz)),E[re.start].name=re.name,re.content=E[re.start].data.slice(0,re.size)):(re.storage="minifat",re.size<0?re.size=0:k!==Y&&re.start!==Y&&E[k]&&(re.content=d(re,E[k].data,(E[U]||{}).data))),re.content&&vt(re.content,0),w[ie]=re,R.push(re)}}function D(p,E){return new Date((gt(p,E+4)/1e7*Math.pow(2,32)+gt(p,E)/1e7-11644473600)*1e3)}function G(p,E){return o(),c(l.readFileSync(p),E)}function Q(p,E){var g=E&&E.type;switch(g||_e&&Buffer.isBuffer(p)&&(g="buffer"),g||"base64"){case"file":return G(p,E);case"base64":return c(Ct(Kt(p)),E);case"binary":return c(Ct(p),E)}return c(p,E)}function I(p,E){var g=E||{},_=g.root||"Root Entry";if(p.FullPaths||(p.FullPaths=[]),p.FileIndex||(p.FileIndex=[]),p.FullPaths.length!==p.FileIndex.length)throw new Error("inconsistent CFB structure");p.FullPaths.length===0&&(p.FullPaths[0]=_+"/",p.FileIndex[0]={name:_,type:5}),g.CLSID&&(p.FileIndex[0].clsid=g.CLSID),V(p)}function V(p){var E="Sh33tJ5";if(!Fe.find(p,"/"+E)){var g=B(4);g[0]=55,g[1]=g[3]=50,g[2]=54,p.FileIndex.push({name:E,type:2,content:g,size:4,L:69,R:69,C:69}),p.FullPaths.push(p.FullPaths[0]+E),L(p)}}function L(p,E){I(p);for(var g=!1,_=!1,T=p.FullPaths.length-1;T>=0;--T){var w=p.FileIndex[T];switch(w.type){case 0:_?g=!0:(p.FileIndex.pop(),p.FullPaths.pop());break;case 1:case 2:case 5:_=!0,isNaN(w.R*w.L*w.C)&&(g=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(g=!0);break;default:g=!0;break}}if(!(!g&&!E)){var R=new Date(1987,1,19),U=0,k=Object.create?Object.create(null):{},N=[];for(T=0;T<p.FullPaths.length;++T)k[p.FullPaths[T]]=!0,p.FileIndex[T].type!==0&&N.push([p.FullPaths[T],p.FileIndex[T]]);for(T=0;T<N.length;++T){var P=n(N[T][0]);_=k[P],_||(N.push([P,{name:i(P).replace("/",""),type:1,clsid:de,ct:R,mt:R,content:null}]),k[P]=!0)}for(N.sort(function(ie,J){return t(ie[0],J[0])}),p.FullPaths=[],p.FileIndex=[],T=0;T<N.length;++T)p.FullPaths[T]=N[T][0],p.FileIndex[T]=N[T][1];for(T=0;T<N.length;++T){var K=p.FileIndex[T],ee=p.FullPaths[T];if(K.name=i(ee).replace("/",""),K.L=K.R=K.C=-(K.color=1),K.size=K.content?K.content.length:0,K.start=0,K.clsid=K.clsid||de,T===0)K.C=N.length>1?1:-1,K.size=0,K.type=5;else if(ee.slice(-1)=="/"){for(U=T+1;U<N.length&&n(p.FullPaths[U])!=ee;++U);for(K.C=U>=N.length?-1:U,U=T+1;U<N.length&&n(p.FullPaths[U])!=n(ee);++U);K.R=U>=N.length?-1:U,K.type=1}else n(p.FullPaths[T+1]||"")==n(ee)&&(K.R=T+1),K.type=2}}}function M(p,E){var g=E||{};if(g.fileType=="mad")return pl(p,g);switch(L(p),g.fileType){case"zip":return ll(p,g)}var _=function(ie){for(var J=0,re=0,he=0;he<ie.FileIndex.length;++he){var ke=ie.FileIndex[he];if(ke.content){var Re=ke.content.length;Re>0&&(Re<4096?J+=Re+63>>6:re+=Re+511>>9)}}for(var Qe=ie.FullPaths.length+3>>2,qr=J+7>>3,Zr=J+127>>7,Qr=qr+re+Qe+Zr,dr=Qr+127>>7,Ai=dr<=109?0:Math.ceil((dr-109)/127);Qr+dr+Ai+127>>7>dr;)Ai=++dr<=109?0:Math.ceil((dr-109)/127);var Wt=[1,Ai,dr,Zr,Qe,re,J,0];return ie.FileIndex[0].size=J<<6,Wt[7]=(ie.FileIndex[0].start=Wt[0]+Wt[1]+Wt[2]+Wt[3]+Wt[4]+Wt[5])+(Wt[6]+7>>3),Wt}(p),T=B(_[7]<<9),w=0,R=0;{for(w=0;w<8;++w)T.write_shift(1,oe[w]);for(w=0;w<8;++w)T.write_shift(2,0);for(T.write_shift(2,62),T.write_shift(2,3),T.write_shift(2,65534),T.write_shift(2,9),T.write_shift(2,6),w=0;w<3;++w)T.write_shift(2,0);for(T.write_shift(4,0),T.write_shift(4,_[2]),T.write_shift(4,_[0]+_[1]+_[2]+_[3]-1),T.write_shift(4,0),T.write_shift(4,4096),T.write_shift(4,_[3]?_[0]+_[1]+_[2]-1:Y),T.write_shift(4,_[3]),T.write_shift(-4,_[1]?_[0]-1:Y),T.write_shift(4,_[1]),w=0;w<109;++w)T.write_shift(-4,w<_[2]?_[1]+w:-1)}if(_[1])for(R=0;R<_[1];++R){for(;w<236+R*127;++w)T.write_shift(-4,w<_[2]?_[1]+w:-1);T.write_shift(-4,R===_[1]-1?Y:R+1)}var U=function(ie){for(R+=ie;w<R-1;++w)T.write_shift(-4,w+1);ie&&(++w,T.write_shift(-4,Y))};for(R=w=0,R+=_[1];w<R;++w)T.write_shift(-4,xe.DIFSECT);for(R+=_[2];w<R;++w)T.write_shift(-4,xe.FATSECT);U(_[3]),U(_[4]);for(var k=0,N=0,P=p.FileIndex[0];k<p.FileIndex.length;++k)P=p.FileIndex[k],P.content&&(N=P.content.length,!(N<4096)&&(P.start=R,U(N+511>>9)));for(U(_[6]+7>>3);T.l&511;)T.write_shift(-4,xe.ENDOFCHAIN);for(R=w=0,k=0;k<p.FileIndex.length;++k)P=p.FileIndex[k],P.content&&(N=P.content.length,!(!N||N>=4096)&&(P.start=R,U(N+63>>6)));for(;T.l&511;)T.write_shift(-4,xe.ENDOFCHAIN);for(w=0;w<_[4]<<2;++w){var K=p.FullPaths[w];if(!K||K.length===0){for(k=0;k<17;++k)T.write_shift(4,0);for(k=0;k<3;++k)T.write_shift(4,-1);for(k=0;k<12;++k)T.write_shift(4,0);continue}P=p.FileIndex[w],w===0&&(P.start=P.size?P.start-1:Y);var ee=w===0&&g.root||P.name;if(N=2*(ee.length+1),T.write_shift(64,ee,"utf16le"),T.write_shift(2,N),T.write_shift(1,P.type),T.write_shift(1,P.color),T.write_shift(-4,P.L),T.write_shift(-4,P.R),T.write_shift(-4,P.C),P.clsid)T.write_shift(16,P.clsid,"hex");else for(k=0;k<4;++k)T.write_shift(4,0);T.write_shift(4,P.state||0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,P.start),T.write_shift(4,P.size),T.write_shift(4,0)}for(w=1;w<p.FileIndex.length;++w)if(P=p.FileIndex[w],P.size>=4096)if(T.l=P.start+1<<9,_e&&Buffer.isBuffer(P.content))P.content.copy(T,T.l,0,P.size),T.l+=P.size+511&-512;else{for(k=0;k<P.size;++k)T.write_shift(1,P.content[k]);for(;k&511;++k)T.write_shift(1,0)}for(w=1;w<p.FileIndex.length;++w)if(P=p.FileIndex[w],P.size>0&&P.size<4096)if(_e&&Buffer.isBuffer(P.content))P.content.copy(T,T.l,0,P.size),T.l+=P.size+63&-64;else{for(k=0;k<P.size;++k)T.write_shift(1,P.content[k]);for(;k&63;++k)T.write_shift(1,0)}if(_e)T.l=T.length;else for(;T.l<T.length;)T.write_shift(1,0);return T}function W(p,E){var g=p.FullPaths.map(function(k){return k.toUpperCase()}),_=g.map(function(k){var N=k.split("/");return N[N.length-(k.slice(-1)=="/"?2:1)]}),T=!1;E.charCodeAt(0)===47?(T=!0,E=g[0].slice(0,-1)+E):T=E.indexOf("/")!==-1;var w=E.toUpperCase(),R=T===!0?g.indexOf(w):_.indexOf(w);if(R!==-1)return p.FileIndex[R];var U=!w.match(Dn);for(w=w.replace(nn,""),U&&(w=w.replace(Dn,"!")),R=0;R<g.length;++R)if((U?g[R].replace(Dn,"!"):g[R]).replace(nn,"")==w||(U?_[R].replace(Dn,"!"):_[R]).replace(nn,"")==w)return p.FileIndex[R];return null}var j=64,Y=-2,ue="d0cf11e0a1b11ae1",oe=[208,207,17,224,161,177,26,225],de="00000000000000000000000000000000",xe={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Y,FREESECT:-1,HEADER_SIGNATURE:ue,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:de,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function lt(p,E,g){o();var _=M(p,g);l.writeFileSync(E,_)}function Be(p){for(var E=new Array(p.length),g=0;g<p.length;++g)E[g]=String.fromCharCode(p[g]);return E.join("")}function Et(p,E){var g=M(p,E);switch(E&&E.type||"buffer"){case"file":return o(),l.writeFileSync(E.filename,g),g;case"binary":return typeof g=="string"?g:Be(g);case"base64":return hn(typeof g=="string"?g:Be(g));case"buffer":if(_e)return Buffer.isBuffer(g)?g:qt(g);case"array":return typeof g=="string"?Ct(g):g}return g}var xt;function A(p){try{var E=p.InflateRaw,g=new E;if(g._processChunk(new Uint8Array([3,0]),g._finishFlushFlag),g.bytesRead)xt=p;else throw new Error("zlib does not expose bytesRead")}catch(_){console.error("cannot use native zlib: "+(_.message||_))}}function b(p,E){if(!xt)return ba(p,E);var g=xt.InflateRaw,_=new g,T=_._processChunk(p.slice(p.l),_._finishFlushFlag);return p.l+=_.bytesRead,T}function O(p){return xt?xt.deflateRawSync(p):Ia(p)}var C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],le=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ce(p){var E=(p<<1|p<<11)&139536|(p<<5|p<<15)&558144;return(E>>16|E>>8|E)&255}for(var fe=typeof Uint8Array<"u",te=fe?new Uint8Array(256):[],Ce=0;Ce<256;++Ce)te[Ce]=ce(Ce);function ve(p,E){var g=te[p&255];return E<=8?g>>>8-E:(g=g<<8|te[p>>8&255],E<=16?g>>>16-E:(g=g<<8|te[p>>16&255],g>>>24-E))}function nt(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=6?0:p[_+1]<<8))>>>g&3}function Ee(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=5?0:p[_+1]<<8))>>>g&7}function Ut(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=4?0:p[_+1]<<8))>>>g&15}function Le(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=3?0:p[_+1]<<8))>>>g&31}function se(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=1?0:p[_+1]<<8))>>>g&127}function Tt(p,E,g){var _=E&7,T=E>>>3,w=(1<<g)-1,R=p[T]>>>_;return g<8-_||(R|=p[T+1]<<8-_,g<16-_)||(R|=p[T+2]<<16-_,g<24-_)||(R|=p[T+3]<<24-_),R&w}function $t(p,E,g){var _=E&7,T=E>>>3;return _<=5?p[T]|=(g&7)<<_:(p[T]|=g<<_&255,p[T+1]=(g&7)>>8-_),E+3}function ur(p,E,g){var _=E&7,T=E>>>3;return g=(g&1)<<_,p[T]|=g,E+1}function Or(p,E,g){var _=E&7,T=E>>>3;return g<<=_,p[T]|=g&255,g>>>=8,p[T+1]=g,E+8}function Da(p,E,g){var _=E&7,T=E>>>3;return g<<=_,p[T]|=g&255,g>>>=8,p[T+1]=g&255,p[T+2]=g>>>8,E+16}function Ei(p,E){var g=p.length,_=2*g>E?2*g:E+5,T=0;if(g>=E)return p;if(_e){var w=Ja(_);if(p.copy)p.copy(w);else for(;T<p.length;++T)w[T]=p[T];return w}else if(fe){var R=new Uint8Array(_);if(R.set)R.set(p);else for(;T<g;++T)R[T]=p[T];return R}return p.length=_,p}function Rt(p){for(var E=new Array(p),g=0;g<p;++g)E[g]=0;return E}function An(p,E,g){var _=1,T=0,w=0,R=0,U=0,k=p.length,N=fe?new Uint16Array(32):Rt(32);for(w=0;w<32;++w)N[w]=0;for(w=k;w<g;++w)p[w]=0;k=p.length;var P=fe?new Uint16Array(k):Rt(k);for(w=0;w<k;++w)N[T=p[w]]++,_<T&&(_=T),P[w]=0;for(N[0]=0,w=1;w<=_;++w)N[w+16]=U=U+N[w-1]<<1;for(w=0;w<k;++w)U=p[w],U!=0&&(P[w]=N[U+16]++);var K=0;for(w=0;w<k;++w)if(K=p[w],K!=0)for(U=ve(P[w],_)>>_-K,R=(1<<_+4-K)-1;R>=0;--R)E[U|R<<K]=K&15|w<<4;return _}var Ti=fe?new Uint16Array(512):Rt(512),wi=fe?new Uint16Array(32):Rt(32);if(!fe){for(var hr=0;hr<512;++hr)Ti[hr]=0;for(hr=0;hr<32;++hr)wi[hr]=0}(function(){for(var p=[],E=0;E<32;E++)p.push(5);An(p,wi,32);var g=[];for(E=0;E<=143;E++)g.push(8);for(;E<=255;E++)g.push(9);for(;E<=279;E++)g.push(7);for(;E<=287;E++)g.push(8);An(g,Ti,288)})();var il=function(){for(var E=fe?new Uint8Array(32768):[],g=0,_=0;g<le.length-1;++g)for(;_<le[g+1];++_)E[_]=g;for(;_<32768;++_)E[_]=29;var T=fe?new Uint8Array(259):[];for(g=0,_=0;g<z.length-1;++g)for(;_<z[g+1];++_)T[_]=g;function w(U,k){for(var N=0;N<U.length;){var P=Math.min(65535,U.length-N),K=N+P==U.length;for(k.write_shift(1,+K),k.write_shift(2,P),k.write_shift(2,~P&65535);P-- >0;)k[k.l++]=U[N++]}return k.l}function R(U,k){for(var N=0,P=0,K=fe?new Uint16Array(32768):[];P<U.length;){var ee=Math.min(65535,U.length-P);if(ee<10){for(N=$t(k,N,+(P+ee==U.length)),N&7&&(N+=8-(N&7)),k.l=N/8|0,k.write_shift(2,ee),k.write_shift(2,~ee&65535);ee-- >0;)k[k.l++]=U[P++];N=k.l*8;continue}N=$t(k,N,+(P+ee==U.length)+2);for(var ie=0;ee-- >0;){var J=U[P];ie=(ie<<5^J)&32767;var re=-1,he=0;if((re=K[ie])&&(re|=P&-32768,re>P&&(re-=32768),re<P))for(;U[re+he]==U[P+he]&&he<250;)++he;if(he>2){J=T[he],J<=22?N=Or(k,N,te[J+1]>>1)-1:(Or(k,N,3),N+=5,Or(k,N,te[J-23]>>5),N+=3);var ke=J<8?0:J-4>>2;ke>0&&(Da(k,N,he-z[J]),N+=ke),J=E[P-re],N=Or(k,N,te[J]>>3),N-=3;var Re=J<4?0:J-2>>1;Re>0&&(Da(k,N,P-re-le[J]),N+=Re);for(var Qe=0;Qe<he;++Qe)K[ie]=P&32767,ie=(ie<<5^U[P])&32767,++P;ee-=he-1}else J<=143?J=J+48:N=ur(k,N,1),N=Or(k,N,te[J]),K[ie]=P&32767,++P}N=Or(k,N,0)-1}return k.l=(N+7)/8|0,k.l}return function(k,N){return k.length<8?w(k,N):R(k,N)}}();function Ia(p){var E=B(50+Math.floor(p.length*1.1)),g=il(p,E);return E.slice(0,g)}var ka=fe?new Uint16Array(32768):Rt(32768),Ra=fe?new Uint16Array(32768):Rt(32768),Na=fe?new Uint16Array(128):Rt(128),La=1,Pa=1;function al(p,E){var g=Le(p,E)+257;E+=5;var _=Le(p,E)+1;E+=5;var T=Ut(p,E)+4;E+=4;for(var w=0,R=fe?new Uint8Array(19):Rt(19),U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k=1,N=fe?new Uint8Array(8):Rt(8),P=fe?new Uint8Array(8):Rt(8),K=R.length,ee=0;ee<T;++ee)R[C[ee]]=w=Ee(p,E),k<w&&(k=w),N[w]++,E+=3;var ie=0;for(N[0]=0,ee=1;ee<=k;++ee)P[ee]=ie=ie+N[ee-1]<<1;for(ee=0;ee<K;++ee)(ie=R[ee])!=0&&(U[ee]=P[ie]++);var J=0;for(ee=0;ee<K;++ee)if(J=R[ee],J!=0){ie=te[U[ee]]>>8-J;for(var re=(1<<7-J)-1;re>=0;--re)Na[ie|re<<J]=J&7|ee<<3}var he=[];for(k=1;he.length<g+_;)switch(ie=Na[se(p,E)],E+=ie&7,ie>>>=3){case 16:for(w=3+nt(p,E),E+=2,ie=he[he.length-1];w-- >0;)he.push(ie);break;case 17:for(w=3+Ee(p,E),E+=3;w-- >0;)he.push(0);break;case 18:for(w=11+se(p,E),E+=7;w-- >0;)he.push(0);break;default:he.push(ie),k<ie&&(k=ie);break}var ke=he.slice(0,g),Re=he.slice(g);for(ee=g;ee<286;++ee)ke[ee]=0;for(ee=_;ee<30;++ee)Re[ee]=0;return La=An(ke,ka,286),Pa=An(Re,Ra,30),E}function sl(p,E){if(p[0]==3&&!(p[1]&3))return[_r(E),2];for(var g=0,_=0,T=Ja(E||1<<18),w=0,R=T.length>>>0,U=0,k=0;!(_&1);){if(_=Ee(p,g),g+=3,_>>>1)_>>1==1?(U=9,k=5):(g=al(p,g),U=La,k=Pa);else{g&7&&(g+=8-(g&7));var N=p[g>>>3]|p[(g>>>3)+1]<<8;if(g+=32,N>0)for(!E&&R<w+N&&(T=Ei(T,w+N),R=T.length);N-- >0;)T[w++]=p[g>>>3],g+=8;continue}for(;;){!E&&R<w+32767&&(T=Ei(T,w+32767),R=T.length);var P=Tt(p,g,U),K=_>>>1==1?Ti[P]:ka[P];if(g+=K&15,K>>>=4,!(K>>>8&255))T[w++]=K;else{if(K==256)break;K-=257;var ee=K<8?0:K-4>>2;ee>5&&(ee=0);var ie=w+z[K];ee>0&&(ie+=Tt(p,g,ee),g+=ee),P=Tt(p,g,k),K=_>>>1==1?wi[P]:Ra[P],g+=K&15,K>>>=4;var J=K<4?0:K-2>>1,re=le[K];for(J>0&&(re+=Tt(p,g,J),g+=J),!E&&R<ie&&(T=Ei(T,ie+100),R=T.length);w<ie;)T[w]=T[w-re],++w}}}return E?[T,g+7>>>3]:[T.slice(0,w),g+7>>>3]}function ba(p,E){var g=p.slice(p.l||0),_=sl(g,E);return p.l+=_[1],_[0]}function Ma(p,E){if(p)typeof console<"u"&&console.error(E);else throw new Error(E)}function Ba(p,E){var g=p;vt(g,0);var _=[],T=[],w={FileIndex:_,FullPaths:T};I(w,{root:E.root});for(var R=g.length-4;(g[R]!=80||g[R+1]!=75||g[R+2]!=5||g[R+3]!=6)&&R>=0;)--R;g.l=R+4,g.l+=4;var U=g.read_shift(2);g.l+=6;var k=g.read_shift(4);for(g.l=k,R=0;R<U;++R){g.l+=20;var N=g.read_shift(4),P=g.read_shift(4),K=g.read_shift(2),ee=g.read_shift(2),ie=g.read_shift(2);g.l+=8;var J=g.read_shift(4),re=f(g.slice(g.l+K,g.l+K+ee));g.l+=K+ee+ie;var he=g.l;g.l=J+4,fl(g,N,P,w,re),g.l=he}return w}function fl(p,E,g,_,T){p.l+=2;var w=p.read_shift(2),R=p.read_shift(2),U=s(p);if(w&8257)throw new Error("Unsupported ZIP encryption");for(var k=p.read_shift(4),N=p.read_shift(4),P=p.read_shift(4),K=p.read_shift(2),ee=p.read_shift(2),ie="",J=0;J<K;++J)ie+=String.fromCharCode(p[p.l++]);if(ee){var re=f(p.slice(p.l,p.l+ee));(re[21589]||{}).mt&&(U=re[21589].mt),((T||{})[21589]||{}).mt&&(U=T[21589].mt)}p.l+=ee;var he=p.slice(p.l,p.l+N);switch(R){case 8:he=b(p,P);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+R)}var ke=!1;w&8&&(k=p.read_shift(4),k==134695760&&(k=p.read_shift(4),ke=!0),N=p.read_shift(4),P=p.read_shift(4)),N!=E&&Ma(ke,"Bad compressed size: "+E+" != "+N),P!=g&&Ma(ke,"Bad uncompressed size: "+g+" != "+P),Si(_,ie,he,{unsafe:!0,mt:U})}function ll(p,E){var g=E||{},_=[],T=[],w=B(1),R=g.compression?8:0,U=0,k=0,N=0,P=0,K=0,ee=p.FullPaths[0],ie=ee,J=p.FileIndex[0],re=[],he=0;for(k=1;k<p.FullPaths.length;++k)if(ie=p.FullPaths[k].slice(ee.length),J=p.FileIndex[k],!(!J.size||!J.content||ie=="Sh33tJ5")){var ke=P,Re=B(ie.length);for(N=0;N<ie.length;++N)Re.write_shift(1,ie.charCodeAt(N)&127);Re=Re.slice(0,Re.l),re[K]=lh.buf(J.content,0);var Qe=J.content;R==8&&(Qe=O(Qe)),w=B(30),w.write_shift(4,67324752),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,R),J.mt?a(w,J.mt):w.write_shift(4,0),w.write_shift(-4,re[K]),w.write_shift(4,Qe.length),w.write_shift(4,J.content.length),w.write_shift(2,Re.length),w.write_shift(2,0),P+=w.length,_.push(w),P+=Re.length,_.push(Re),P+=Qe.length,_.push(Qe),w=B(46),w.write_shift(4,33639248),w.write_shift(2,0),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,R),w.write_shift(4,0),w.write_shift(-4,re[K]),w.write_shift(4,Qe.length),w.write_shift(4,J.content.length),w.write_shift(2,Re.length),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(4,0),w.write_shift(4,ke),he+=w.l,T.push(w),he+=Re.length,T.push(Re),++K}return w=B(22),w.write_shift(4,101010256),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,K),w.write_shift(2,K),w.write_shift(4,he),w.write_shift(4,P),w.write_shift(2,0),Ye([Ye(_),Ye(T),w])}var yn={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ol(p,E){if(p.ctype)return p.ctype;var g=p.name||"",_=g.match(/\.([^\.]+)$/);return _&&yn[_[1]]||E&&(_=(g=E).match(/[\.\\]([^\.\\])+$/),_&&yn[_[1]])?yn[_[1]]:"application/octet-stream"}function cl(p){for(var E=hn(p),g=[],_=0;_<E.length;_+=76)g.push(E.slice(_,_+76));return g.join(`\r
`)+`\r
`}function ul(p){var E=p.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var P=N.charCodeAt(0).toString(16).toUpperCase();return"="+(P.length==1?"0"+P:P)});E=E.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),E.charAt(0)==`
`&&(E="=0D"+E.slice(1)),E=E.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var g=[],_=E.split(`\r
`),T=0;T<_.length;++T){var w=_[T];if(w.length==0){g.push("");continue}for(var R=0;R<w.length;){var U=76,k=w.slice(R,R+U);k.charAt(U-1)=="="?U--:k.charAt(U-2)=="="?U-=2:k.charAt(U-3)=="="&&(U-=3),k=w.slice(R,R+U),R+=U,R<w.length&&(k+="="),g.push(k)}}return g.join(`\r
`)}function hl(p){for(var E=[],g=0;g<p.length;++g){for(var _=p[g];g<=p.length&&_.charAt(_.length-1)=="=";)_=_.slice(0,_.length-1)+p[++g];E.push(_)}for(var T=0;T<E.length;++T)E[T]=E[T].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return Ct(E.join(`\r
`))}function dl(p,E,g){for(var _="",T="",w="",R,U=0;U<10;++U){var k=E[U];if(!k||k.match(/^\s*$/))break;var N=k.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":_=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":T=N[2].trim();break}}switch(++U,T.toLowerCase()){case"base64":R=Ct(Kt(E.slice(U).join("")));break;case"quoted-printable":R=hl(E.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var P=Si(p,_.slice(g.length),R,{unsafe:!0});w&&(P.ctype=w)}function xl(p,E){if(Be(p.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var g=E&&E.root||"",_=(_e&&Buffer.isBuffer(p)?p.toString("binary"):Be(p)).split(`\r
`),T=0,w="";for(T=0;T<_.length;++T)if(w=_[T],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),g||(g=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,g.length)!=g))for(;g.length>0&&(g=g.slice(0,g.length-1),g=g.slice(0,g.lastIndexOf("/")+1),w.slice(0,g.length)!=g););var R=(_[1]||"").match(/boundary="(.*?)"/);if(!R)throw new Error("MAD cannot find boundary");var U="--"+(R[1]||""),k=[],N=[],P={FileIndex:k,FullPaths:N};I(P);var K,ee=0;for(T=0;T<_.length;++T){var ie=_[T];ie!==U&&ie!==U+"--"||(ee++&&dl(P,_.slice(K,T),g),K=T)}return P}function pl(p,E){var g=E||{},_=g.boundary||"SheetJS";_="------="+_;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+_.slice(2)+'"',"","",""],w=p.FullPaths[0],R=w,U=p.FileIndex[0],k=1;k<p.FullPaths.length;++k)if(R=p.FullPaths[k].slice(w.length),U=p.FileIndex[k],!(!U.size||!U.content||R=="Sh33tJ5")){R=R.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(he){return"_x"+he.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(he){return"_u"+he.charCodeAt(0).toString(16)+"_"});for(var N=U.content,P=_e&&Buffer.isBuffer(N)?N.toString("binary"):Be(N),K=0,ee=Math.min(1024,P.length),ie=0,J=0;J<=ee;++J)(ie=P.charCodeAt(J))>=32&&ie<128&&++K;var re=K>=ee*4/5;T.push(_),T.push("Content-Location: "+(g.root||"file:///C:/SheetJS/")+R),T.push("Content-Transfer-Encoding: "+(re?"quoted-printable":"base64")),T.push("Content-Type: "+ol(U,R)),T.push(""),T.push(re?ul(P):cl(P))}return T.push(_+`--\r
`),T.join(`\r
`)}function vl(p){var E={};return I(E,p),E}function Si(p,E,g,_){var T=_&&_.unsafe;T||I(p);var w=!T&&Fe.find(p,E);if(!w){var R=p.FullPaths[0];E.slice(0,R.length)==R?R=E:(R.slice(-1)!="/"&&(R+="/"),R=(R+E).replace("//","/")),w={name:i(E),type:2},p.FileIndex.push(w),p.FullPaths.push(R),T||Fe.utils.cfb_gc(p)}return w.content=g,w.size=g?g.length:0,_&&(_.CLSID&&(w.clsid=_.CLSID),_.mt&&(w.mt=_.mt),_.ct&&(w.ct=_.ct)),w}function ml(p,E){I(p);var g=Fe.find(p,E);if(g){for(var _=0;_<p.FileIndex.length;++_)if(p.FileIndex[_]==g)return p.FileIndex.splice(_,1),p.FullPaths.splice(_,1),!0}return!1}function gl(p,E,g){I(p);var _=Fe.find(p,E);if(_){for(var T=0;T<p.FileIndex.length;++T)if(p.FileIndex[T]==_)return p.FileIndex[T].name=i(g),p.FullPaths[T]=g,!0}return!1}function _l(p){L(p,!0)}return r.find=W,r.read=Q,r.parse=c,r.write=Et,r.writeFile=lt,r.utils={cfb_new:vl,cfb_add:Si,cfb_del:ml,cfb_mov:gl,cfb_gc:_l,ReadShift:sn,CheckField:tf,prep_blob:vt,bconcat:Ye,use_zlib:A,_deflateRaw:Ia,_inflateRaw:ba,consts:xe},r}();function oh(e){return typeof e=="string"?hi(e):Array.isArray(e)?Pu(e):e}function _n(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=hi(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Ht(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([oh(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(r)&&(r=gn(r)),f.write(r),f.close(),r}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Ze(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function i0(e,r){for(var t=[],n=Ze(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function oa(e){for(var r=[],t=Ze(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function pi(e){for(var r=[],t=Ze(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function ch(e){for(var r=[],t=Ze(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var Kn=new Date(1899,11,30,0,0,0);function ut(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var n=Kn.getTime()+(e.getTimezoneOffset()-Kn.getTimezoneOffset())*6e4;return(t-n)/(24*60*60*1e3)}var Bs=new Date,uh=Kn.getTime()+(Bs.getTimezoneOffset()-Kn.getTimezoneOffset())*6e4,a0=Bs.getTimezoneOffset();function Us(e){var r=new Date;return r.setTime(e*24*60*60*1e3+uh),r.getTimezoneOffset()!==a0&&r.setTime(r.getTime()+(r.getTimezoneOffset()-a0)*6e4),r}var s0=new Date("2017-02-19T19:06:09.000Z"),$s=isNaN(s0.getFullYear())?new Date("2/19/17"):s0,hh=$s.getFullYear()==2017;function st(e,r){var t=new Date(e);if(hh)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if($s.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}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 vi(e,r){if(_e&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return Ht(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ht(Lu(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return Ht(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ht(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"€","":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","":"‹",Œ:"Œ",Ž:"Ž","":"‘","":"’","“":"“","”":"”","•":"•","":"–","—":"—","˜":"˜","™":"™",š:"š","":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function ht(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 r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ht(e[t]));return r}function Pe(e,r){for(var t="";t.length<r;)t+=e;return t}function Xt(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(r=Number(n)))?r/t:r}var dh=["january","february","march","april","may","june","july","august","september","october","november","december"];function dn(e){var r=new Date(e),t=new Date(NaN),n=r.getYear(),i=r.getMonth(),a=r.getDate();if(isNaN(a))return t;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&dh.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(i>0||a>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function pe(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return _e?n=qt(t):n=bu(t),Fe.utils.cfb_add(e,r,n)}Fe.utils.cfb_add(e,r,t)}else e.file(r,t)}function ca(){return Fe.utils.cfb_new()}var We=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,xh={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},ua=oa(xh),ha=/[&<>'"]/g,ph=/[\u0000-\u0008\u000b-\u001f]/g;function Ae(e){var r=e+"";return r.replace(ha,function(t){return ua[t]}).replace(ph,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function f0(e){return Ae(e).replace(/ /g,"_x0020_")}var Ws=/[\u0000-\u001f]/g;function vh(e){var r=e+"";return r.replace(ha,function(t){return ua[t]}).replace(/\n/g,"<br/>").replace(Ws,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function mh(e){var r=e+"";return r.replace(ha,function(t){return ua[t]}).replace(Ws,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function gh(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function _h(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ii(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(f>>>10&1023)),r+=String.fromCharCode(56320+(f&1023))}return r}function l0(e){var r=_r(2*e.length),t,n,i=1,a=0,s=0,f;for(n=0;n<e.length;n+=i)i=1,(f=e.charCodeAt(n))<128?t=f:f<224?(t=(f&31)*64+(e.charCodeAt(n+1)&63),i=2):f<240?(t=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function o0(e){return qt(e,"binary").toString("utf8")}var kn="foo bar baz☃🍣",an=_e&&(o0(kn)==Ii(kn)&&o0||l0(kn)==Ii(kn)&&l0)||Ii,Ht=_e?function(e){return qt(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},Eh=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Hs=/(^\s|\s$|\n)/;function Je(e,r){return"<"+e+(r.match(Hs)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function xn(e){return Ze(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function q(e,r,t){return"<"+e+(t!=null?xn(t):"")+(r!=null?(r.match(Hs)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Gi(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function Th(e,r){switch(typeof e){case"string":var t=q("vt:lpwstr",Ae(e));return r&&(t=t.replace(/&quot;/g,"_x0022_")),t;case"number":return q((e|0)==e?"vt:i4":"vt:r8",Ae(String(e)));case"boolean":return q("vt:bool",e?"true":"false")}if(e instanceof Date)return q("vt:filetime",Gi(e));throw new Error("Unable to serialize "+e)}var Ve={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"},jr=["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"],mt={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 wh(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function Sh(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;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<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(r)?26985:0);for(var f=0;f<=5;++f,a/=256)e[t+f]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var c0=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},u0=_e?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:qt(r)})):c0(e)}:c0,h0=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(tn(e,i)));return n.join("").replace(nn,"")},da=_e?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(nn,""):h0(e,r,t)}:h0,d0=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Vs=_e?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):d0(e,r,t)}:d0,x0=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Nr(e,i)));return n.join("")},En=_e?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):x0(r,t,n)}:x0,Gs=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Xs=Gs,zs=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},js=zs,Ks=function(e,r){var t=2*gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Ys=Ks,Js=function(r,t){var n=gt(r,t);return n>0?da(r,t+4,t+4+n):""},qs=Js,Zs=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t):""},Qs=Zs,ef=function(e,r){return wh(e,r)},Yn=ef,xa=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};_e&&(Xs=function(r,t){if(!Buffer.isBuffer(r))return Gs(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},js=function(r,t){if(!Buffer.isBuffer(r))return zs(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Ys=function(r,t){if(!Buffer.isBuffer(r))return Ks(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},qs=function(r,t){if(!Buffer.isBuffer(r))return Js(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},Qs=function(r,t){if(!Buffer.isBuffer(r))return Zs(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},Yn=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):ef(r,t)},xa=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Nr=function(e,r){return e[r]},tn=function(e,r){return e[r+1]*256+e[r]},Ah=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},gt=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},mr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},yh=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function sn(e,r){var t="",n,i,a=[],s,f,l,o;switch(r){case"dbcs":if(o=this.l,_e&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)t+=String.fromCharCode(tn(this,o)),o+=2;e*=2;break;case"utf8":t=En(this,this.l,this.l+e);break;case"utf16le":e*=2,t=da(this,this.l,this.l+e);break;case"wstr":return sn.call(this,e,"dbcs");case"lpstr-ansi":t=Xs(this,this.l),e=4+gt(this,this.l);break;case"lpstr-cp":t=js(this,this.l),e=4+gt(this,this.l);break;case"lpwstr":t=Ys(this,this.l),e=4+2*gt(this,this.l);break;case"lpp4":e=4+gt(this,this.l),t=qs(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+gt(this,this.l),t=Qs(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(s=Nr(this,this.l+e++))!==0;)a.push(On(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=tn(this,this.l+e))!==0;)a.push(On(s)),e+=2;e+=2,t=a.join("");break;case"dbcs-cont":for(t="",o=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(o)!==-1)return s=Nr(this,o),this.l=o+1,f=sn.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+f;a.push(On(tn(this,o))),o+=2}t=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",o=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(o)!==-1)return s=Nr(this,o),this.l=o+1,f=sn.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+f;a.push(On(Nr(this,o))),o+=1}t=a.join("");break;default:switch(e){case 1:return n=Nr(this,this.l),this.l++,n;case 2:return n=(r==="i"?Ah:tn)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(n=(e>0?mr:yh)(this,this.l),this.l+=4,n):(i=gt(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=Yn(this,this.l):i=Yn([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:t=Vs(this,this.l,e);break}}return this.l+=e,t}var Fh=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},Ch=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},Oh=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function Dh(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)Oh(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;n=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var s=r.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,Fh(this,r,this.l);break;case 8:if(n=8,t==="f"){Sh(this,r,this.l);break}case 16:break;case-4:n=4,Ch(this,r,this.l);break}return this.l+=n,this}function tf(e,r){var t=Vs(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function vt(e,r){e.l=r,e.read_shift=sn,e.chk=tf,e.write_shift=Dh}function Mt(e,r){e.l+=r}function B(e){var r=_r(e);return vt(r,0),r}function ct(){var e=[],r=_e?256:2048,t=function(o){var c=B(o);return vt(c,0),c},n=t(r),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(o){return n&&o<n.length-n.l?n:(i(),n=t(Math.max(o+1,r)))},s=function(){return i(),Ye(e)},f=function(o){i(),n=o,n.l==null&&(n.l=n.length),a(r)};return{next:a,push:f,end:s,_bufs:e}}function X(e,r,t,n){var i=+r,a;if(!isNaN(i)){n||(n=wv[i].p||(t||[]).length||0),a=1+(i>=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&&xa(t)&&e.push(t)}}function fn(e,r,t){var n=ht(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function p0(e,r,t){var n=ht(e);return n.s=fn(n.s,r.s,t),n.e=fn(n.e,r.s,t),n}function ln(e,r){if(e.cRel&&e.c<0)for(e=ht(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=ht(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=ye(e);return!e.cRel&&e.cRel!=null&&(t=Rh(t)),!e.rRel&&e.rRel!=null&&(t=Ih(t)),t}function ki(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+tt(e.s.c)+":"+(e.e.cRel?"":"$")+tt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+qe(e.s.r)+":"+(e.e.rRel?"":"$")+qe(e.e.r):ln(e.s,r.biff)+":"+ln(e.e,r.biff)}function pa(e){return parseInt(kh(e),10)-1}function qe(e){return""+(e+1)}function Ih(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function kh(e){return e.replace(/\$(\d+)$/,"$1")}function va(e){for(var r=Nh(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function tt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Rh(e){return e.replace(/^([A-Z])/,"$$$1")}function Nh(e){return e.replace(/^\$([A-Z])/,"$1")}function Lh(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ge(e){for(var r=0,t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function ye(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function _t(e){var r=e.indexOf(":");return r==-1?{s:Ge(e),e:Ge(e)}:{s:Ge(e.slice(0,r)),e:Ge(e.slice(r+1))}}function $e(e,r){return typeof r>"u"||typeof r=="number"?$e(e.s,e.e):(typeof e!="string"&&(e=ye(e)),typeof r!="string"&&(r=ye(r)),e==r?e:e+":"+r)}function Ie(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=e.length;for(t=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.s.c=--t,t=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(r.s.r=--t,n===a||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.e.c=--t,t=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return r.e.r=--t,r}function v0(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=nr(e.z,t?ut(r):r)}catch{}try{return e.w=nr((e.XF||{}).numFmtId||(t?14:0),t?ut(r):r)}catch{return""+r}}function Yt(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?Tn[e.v]||e.v:r==null?v0(e,e.v):v0(e,r))}function Sr(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function rf(e,r,t){var n=t||{},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 l=typeof n.origin=="string"?Ge(n.origin):n.origin;s=l.r,f=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Ie(a["!ref"]);o.s.c=c.s.c,o.s.r=c.s.r,o.e.c=Math.max(o.e.c,c.e.c),o.e.r=Math.max(o.e.r,c.e.r),s==-1&&(o.e.r=s=c.e.r+1)}for(var u=0;u!=r.length;++u)if(r[u]){if(!Array.isArray(r[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=r[u].length;++h)if(!(typeof r[u][h]>"u")){var x={v:r[u][h]},v=s+u,d=f+h;if(o.s.r>v&&(o.s.r=v),o.s.c>d&&(o.s.c=d),o.e.r<v&&(o.e.r=v),o.e.c<d&&(o.e.c=d),r[u][h]&&typeof r[u][h]=="object"&&!Array.isArray(r[u][h])&&!(r[u][h]instanceof Date))x=r[u][h];else if(Array.isArray(x.v)&&(x.f=r[u][h][1],x.v=x.v[0]),x.v===null)if(x.f)x.t="n";else if(n.nullError)x.t="e",x.v=0;else if(n.sheetStubs)x.t="z";else continue;else typeof x.v=="number"?x.t="n":typeof x.v=="boolean"?x.t="b":x.v instanceof Date?(x.z=n.dateNF||be[14],n.cellDates?(x.t="d",x.w=nr(x.z,ut(x.v))):(x.t="n",x.v=ut(x.v),x.w=nr(x.z,x.v))):x.t="s";if(i)a[v]||(a[v]=[]),a[v][d]&&a[v][d].z&&(x.z=a[v][d].z),a[v][d]=x;else{var m=ye({c:d,r:v});a[m]&&a[m].z&&(x.z=a[m].z),a[m]=x}}}return o.s.c<1e7&&(a["!ref"]=$e(o)),a}function Kr(e,r){return rf(null,e,r)}function Ph(e){return e.read_shift(4,"i")}function It(e,r){return r||(r=B(4)),r.write_shift(4,e),r}function rt(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function Xe(e,r){var t=!1;return r==null&&(t=!0,r=B(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function bh(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Mh(e,r){return r||(r=B(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function ma(e,r){var t=e.l,n=e.read_shift(1),i=rt(e),a=[],s={t:i,h:i};if(n&1){for(var f=e.read_shift(4),l=0;l!=f;++l)a.push(bh(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function Bh(e,r){var t=!1;return r==null&&(t=!0,r=B(15+4*e.t.length)),r.write_shift(1,0),Xe(e.t,r),t?r.slice(0,r.l):r}var Uh=ma;function $h(e,r){var t=!1;return r==null&&(t=!0,r=B(23+4*e.t.length)),r.write_shift(1,1),Xe(e.t,r),r.write_shift(4,1),Mh({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function At(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function Ar(e,r){return r==null&&(r=B(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function yr(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function Fr(e,r){return r==null&&(r=B(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var Wh=rt,nf=Xe;function ga(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function Jn(e,r){var t=!1;return r==null&&(t=!0,r=B(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var Hh=rt,Xi=ga,_a=Jn;function af(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var i=n===0?Yn([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):mr(r,0)>>2;return t?i/100:i}function sf(e,r){r==null&&(r=B(4));var t=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,t=1),n)r.write_shift(-4,((t?i:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function ff(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function Vh(e,r){return r||(r=B(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var Cr=ff,Yr=Vh;function Jr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Er(e,r){return(r||B(8)).write_shift(8,e,"f")}function Gh(e){var r={},t=e.read_shift(1),n=t>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var o=Qh[i];o&&(r.rgb=C0(o));break;case 2:r.rgb=C0([s,f,l]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function qn(e,r){if(r||(r=B(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function Xh(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function zh(e,r){r||(r=B(2));var t=(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 r.write_shift(1,t),r.write_shift(1,0),r}var lf=2,pt=3,Rn=11,Zn=19,Nn=64,jh=65,Kh=71,Yh=4108,Jh=4126,je=80,m0={1:{n:"CodePage",t:lf},2:{n:"Category",t:je},3:{n:"PresentationFormat",t:je},4:{n:"ByteCount",t:pt},5:{n:"LineCount",t:pt},6:{n:"ParagraphCount",t:pt},7:{n:"SlideCount",t:pt},8:{n:"NoteCount",t:pt},9:{n:"HiddenCount",t:pt},10:{n:"MultimediaClipCount",t:pt},11:{n:"ScaleCrop",t:Rn},12:{n:"HeadingPairs",t:Yh},13:{n:"TitlesOfParts",t:Jh},14:{n:"Manager",t:je},15:{n:"Company",t:je},16:{n:"LinksUpToDate",t:Rn},17:{n:"CharacterCount",t:pt},19:{n:"SharedDoc",t:Rn},22:{n:"HyperlinksChanged",t:Rn},23:{n:"AppVersion",t:pt,p:"version"},24:{n:"DigSig",t:jh},26:{n:"ContentType",t:je},27:{n:"ContentStatus",t:je},28:{n:"Language",t:je},29:{n:"Version",t:je},255:{},2147483648:{n:"Locale",t:Zn},2147483651:{n:"Behavior",t:Zn},1919054434:{}},g0={1:{n:"CodePage",t:lf},2:{n:"Title",t:je},3:{n:"Subject",t:je},4:{n:"Author",t:je},5:{n:"Keywords",t:je},6:{n:"Comments",t:je},7:{n:"Template",t:je},8:{n:"LastAuthor",t:je},9:{n:"RevNumber",t:je},10:{n:"EditTime",t:Nn},11:{n:"LastPrinted",t:Nn},12:{n:"CreatedDate",t:Nn},13:{n:"ModifiedDate",t:Nn},14:{n:"PageCount",t:pt},15:{n:"WordCount",t:pt},16:{n:"CharCount",t:pt},17:{n:"Thumbnail",t:Kh},18:{n:"Application",t:je},19:{n:"DocSecurity",t:pt},255:{},2147483648:{n:"Locale",t:Zn},2147483651:{n:"Behavior",t:Zn},1919054434:{}};function qh(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var Zh=qh([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]),Qh=ht(Zh),Tn={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},e1={"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"},Ln={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 of(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function cf(e,r){var t=ch(e1),n=[],i;n[n.length]=We,n[n.length]=q("Types",null,{xmlns:Ve.CT,"xmlns:xsd":Ve.xsd,"xmlns:xsi":Ve.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(l){return q("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=q("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Ln[l][r.bookType]||Ln[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(o){n[n.length]=q("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:Ln[l][r.bookType]||Ln[l].xlsx})})},f=function(l){(e[l]||[]).forEach(function(o){n[n.length]=q("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:t[l][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]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var me={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 uf(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Mr(e){var r=[We,q("Relationships",null,{xmlns:Ve.RELS})];return Ze(e["!id"]).forEach(function(t){r[r.length]=q("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function we(e,r,t,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=t,a?i.TargetMode=a:[me.HLINK,me.XPATH,me.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,r}function t1(e){var r=[We];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/>
`);return r.push("</manifest:manifest>"),r.join("")}function _0(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
`,` </rdf:Description>
`].join("")}function r1(e,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
`,` </rdf:Description>
`].join("")}function n1(e){var r=[We];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var t=0;t!=e.length;++t)r.push(_0(e[t][0],e[t][1])),r.push(r1("",e[t][0]));return r.push(_0("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function hf(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Gn.version+"</meta:generator></office:meta></office:document-meta>"}var gr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ri(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=Ae(r),n[n.length]=t?q(e,r,t):Je(e,r))}function df(e,r){var t=r||{},n=[We,q("cp:coreProperties",null,{"xmlns:cp":Ve.CORE_PROPS,"xmlns:dc":Ve.dc,"xmlns:dcterms":Ve.dcterms,"xmlns:dcmitype":Ve.dcmitype,"xmlns:xsi":Ve.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&Ri("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Gi(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ri("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Gi(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=gr.length;++a){var s=gr[a],f=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&Ri(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Br=[["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"]],xf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function pf(e){var r=[],t=q;return e||(e={}),e.Application="SheetJS",r[r.length]=We,r[r.length]=q("Properties",null,{xmlns:Ve.EXT_PROPS,"xmlns:vt":Ve.vt}),Br.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Ae(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Ae(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function vf(e){var r=[We,q("Properties",null,{xmlns:Ve.CUST_PROPS,"xmlns:vt":Ve.vt})];if(!e)return r.join("");var t=1;return Ze(e).forEach(function(i){++t,r[r.length]=q("property",Th(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Ae(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var E0={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 i1(e,r){var t=[];return Ze(E0).map(function(n){for(var i=0;i<gr.length;++i)if(gr[i][1]==n)return gr[i];for(i=0;i<Br.length;++i)if(Br[i][1]==n)return Br[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),t.push(Je(E0[n[1]]||n[1],i))}}),q("DocumentProperties",t.join(""),{xmlns:mt.o})}function a1(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Ze(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<gr.length;++s)if(a==gr[s][1])return;for(s=0;s<Br.length;++s)if(a==Br[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var f=e[a],l="string";typeof f=="number"?(l="float",f=String(f)):f===!0||f===!1?(l="boolean",f=f?"1":"0"):f=String(f),i.push(q(f0(a),f,{"dt:dt":l}))}}),r&&Ze(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=r[a],f="string";typeof s=="number"?(f="float",s=String(s)):s===!0||s===!1?(f="boolean",s=s?"1":"0"):s instanceof Date?(f="dateTime.tz",s=s.toISOString()):s=String(s),i.push(q(f0(a),s,{"dt:dt":f}))}}),"<"+n+' xmlns="'+mt.o+'">'+i.join("")+"</"+n+">"}function s1(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-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 T0(e,r){var t=B(4),n=B(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=B(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=s1(r);break;case 31:case 80:for(n=B(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Ye([t,n])}var mf=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function f1(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 w0(e,r,t){var n=B(8),i=[],a=[],s=8,f=0,l=B(8),o=B(8);if(l.write_shift(4,2),l.write_shift(4,1200),o.write_shift(4,1),a.push(l),i.push(o),s+=8+l.length,!r){o=B(8),o.write_shift(4,0),i.unshift(o);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f<e.length;++f){var u=e[f][0];for(l=B(8+2*(u.length+1)+(u.length%2?0:2)),l.write_shift(4,f+2),l.write_shift(4,u.length+1),l.write_shift(0,u,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=Ye(c),a.unshift(l),s+=8+l.length}for(f=0;f<e.length;++f)if(!(r&&!r[e[f][0]])&&!(mf.indexOf(e[f][0])>-1||xf.indexOf(e[f][0])>-1)&&e[f][1]!=null){var h=e[f][1],x=0;if(r){x=+r[e[f][0]];var v=t[x];if(v.p=="version"&&typeof h=="string"){var d=h.split(".");h=(+d[0]<<16)+(+d[1]||0)}l=T0(v.t,h)}else{var m=f1(h);m==-1&&(m=31,h=String(h)),l=T0(m,h)}a.push(l),o=B(8),o.write_shift(4,r?x:2+f),i.push(o),s+=8+l.length}var S=8*(a.length+1);for(f=0;f<a.length;++f)i[f].write_shift(4,S),S+=a[f].length;return n.write_shift(4,s),n.write_shift(4,a.length),Ye([n].concat(i).concat(a))}function S0(e,r,t,n,i,a){var s=B(i?68:48),f=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Fe.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,i?68:48);var l=w0(e,t,n);if(f.push(l),i){var o=w0(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),f.push(o)}return Ye(f)}function l1(e,r){r||(r=B(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function o1(e,r){return e.read_shift(r)===1}function at(e,r){return r||(r=B(2)),r.write_shift(2,+!!e),r}function gf(e){return e.read_shift(2,"u")}function St(e,r){return r||(r=B(2)),r.write_shift(2,e),r}function _f(e,r,t){return t||(t=B(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function Ef(e,r,t){var n=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function c1(e){var r=e.t||"",t=B(3);t.write_shift(2,r.length),t.write_shift(1,1);var n=B(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[t,n];return Ye(i)}function u1(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function h1(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):u1(e,n,t)}function d1(e,r,t){if(t.biff>5)return h1(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Tf(e,r,t){return t||(t=B(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function A0(e,r){r||(r=B(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function x1(e){var r=B(512),t=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}r.write_shift(4,2),r.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r.write_shift(4,s[t]);if(a==28)n=n.slice(1),A0(n,r);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));var f=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(f.length+1)),t=0;t<f.length;++t)r.write_shift(2,f.charCodeAt(t));r.write_shift(2,0),a&8&&A0(i>-1?n.slice(i+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(r.write_shift(2,l),r.write_shift(4,n.length-3*l+1),t=0;t<n.length-3*l;++t)r.write_shift(1,n.charCodeAt(t+3*l)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function Tr(e,r,t,n){return n||(n=B(6)),n.write_shift(2,e),n.write_shift(2,r),n.write_shift(2,t||0),n}function p1(e,r,t){var n=t.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function v1(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r},e:{c:i,r:t}}}function wf(e,r){return r||(r=B(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function Ea(e,r,t){var n=1536,i=16;switch(t.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,r),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 m1(e,r){var t=!r||r.biff==8,n=B(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function g1(e,r){var t=!r||r.biff>=8?2:1,n=B(8+t*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),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function _1(e,r){var t=B(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=c1(e[i]);var a=Ye([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function E1(){var e=B(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function T1(e){var r=B(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function w1(e,r){var t=e.name||"Arial",n=r&&r.biff==5,i=n?15+t.length:16+2*t.length,a=B(i);return a.write_shift(2,(e.sz||12)*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function S1(e,r,t,n){var i=B(10);return Tr(e,r,n,i),i.write_shift(4,t),i}function A1(e,r,t,n,i){var a=!i||i.biff==8,s=B(8+ +a+(1+a)*t.length);return Tr(e,r,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function y1(e,r,t,n){var i=t&&t.biff==5;n||(n=B(i?3+r.length:5+2*r.length)),n.write_shift(2,e),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function F1(e,r){var t=r.biff==8||!r.biff?4:2,n=B(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,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 y0(e,r,t,n){var i=t&&t.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,r<<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 C1(e){var r=B(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function O1(e,r,t,n,i,a){var s=B(8);return Tr(e,r,n,s),_f(t,a,s),s}function D1(e,r,t,n){var i=B(14);return Tr(e,r,n,i),Er(t,i),i}function I1(e,r,t){if(t.biff<8)return k1(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(p1(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function k1(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=Ef(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function R1(e){var r=B(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)wf(e[t],r);return r}function N1(e){var r=B(24),t=Ge(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)r.write_shift(1,parseInt(n[i],16));return Ye([r,x1(e[1])])}function L1(e){var r=e[1].Tooltip,t=B(10+2*(r.length+1));t.write_shift(2,2048);var n=Ge(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<r.length;++i)t.write_shift(2,r.charCodeAt(i));return t.write_shift(2,0),t}function P1(e){return e||(e=B(4)),e.write_shift(2,1),e.write_shift(2,1),e}function b1(e,r,t){if(!t.cellStyles)return Mt(e,r);var n=t&&t.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var o={s:i,e:a,w:s,ixfe:f,flags:l};return(t.biff>=5||!t.biff)&&(o.level=l>>8&7),o}function M1(e,r){var t=B(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function B1(e){for(var r=B(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function U1(e,r,t){var n=B(15);return Sn(n,e,r),n.write_shift(8,t,"f"),n}function $1(e,r,t){var n=B(9);return Sn(n,e,r),n.write_shift(2,t),n}var W1=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=oa({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(f,l){var o=[],c=_r(1);switch(l.type){case"base64":c=Ct(Kt(f));break;case"binary":c=Ct(f);break;case"buffer":case"array":c=f;break}vt(c,0);var u=c.read_shift(1),h=!!(u&136),x=!1,v=!1;switch(u){case 2:break;case 3:break;case 48:x=!0,h=!0;break;case 49:x=!0,h=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+u.toString(16))}var d=0,m=521;u==2&&(d=c.read_shift(2)),c.l+=3,u!=2&&(d=c.read_shift(4)),d>1048576&&(d=1e6),u!=2&&(m=c.read_shift(2));var S=c.read_shift(2),F=l.codepage||1252;u!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(F=e[c[c.l]]),c.l+=1,c.l+=2),v&&(c.l+=36);for(var y=[],D={},G=Math.min(c.length,u==2?521:m-10-(x?264:0)),Q=v?32:11;c.l<G&&c[c.l]!=13;)switch(D={},D.name=vr.utils.decode(F,c.slice(c.l,c.l+Q)).replace(/[\u0000\r\n].*$/g,""),c.l+=Q,D.type=String.fromCharCode(c.read_shift(1)),u!=2&&!v&&(D.offset=c.read_shift(4)),D.len=c.read_shift(1),u==2&&(D.offset=c.read_shift(2)),D.dec=c.read_shift(1),D.name.length&&y.push(D),u!=2&&(c.l+=v?13:14),D.type){case"B":(!x||D.len!=8)&&l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+D.type)}if(c[c.l]!==13&&(c.l=m-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=m;var I=0,V=0;for(o[0]=[],V=0;V!=y.length;++V)o[0][V]=y[V].name;for(;d-- >0;){if(c[c.l]===42){c.l+=S;continue}for(++c.l,o[++I]=[],V=0,V=0;V!=y.length;++V){var L=c.slice(c.l,c.l+y[V].len);c.l+=y[V].len,vt(L,0);var M=vr.utils.decode(F,L);switch(y[V].type){case"C":M.trim().length&&(o[I][V]=M.replace(/\s+$/,""));break;case"D":M.length===8?o[I][V]=new Date(+M.slice(0,4),+M.slice(4,6)-1,+M.slice(6,8)):o[I][V]=M;break;case"F":o[I][V]=parseFloat(M.trim());break;case"+":case"I":o[I][V]=v?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(M.trim().toUpperCase()){case"Y":case"T":o[I][V]=!0;break;case"N":case"F":o[I][V]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+M+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));o[I][V]="##MEMO##"+(v?parseInt(M.trim(),10):L.read_shift(4));break;case"N":M=M.replace(/\u0000/g,"").trim(),M&&M!="."&&(o[I][V]=+M||0);break;case"@":o[I][V]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":o[I][V]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":o[I][V]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":o[I][V]=-L.read_shift(-8,"f");break;case"B":if(x&&y[V].len==8){o[I][V]=L.read_shift(8,"f");break}case"G":case"P":L.l+=y[V].len;break;case"0":if(y[V].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[V].type)}}}if(u!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(o=o.slice(0,l.sheetRows)),l.DBF=y,o}function n(f,l){var o=l||{};o.dateNF||(o.dateNF="yyyymmdd");var c=Kr(t(f,o),o);return c["!cols"]=o.DBF.map(function(u){return{wch:u.len,DBF:u}}),delete o.DBF,c}function i(f,l){try{return Sr(n(f,l),l)}catch(o){if(l&&l.WTF)throw o}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(f,l){var o=l||{};if(+o.codepage>=0&&un(+o.codepage),o.type=="string")throw new Error("Cannot write DBF to JS string");var c=ct(),u=ni(f,{header:1,raw:!0,cellDates:!0}),h=u[0],x=u.slice(1),v=f["!cols"]||[],d=0,m=0,S=0,F=1;for(d=0;d<h.length;++d){if(((v[d]||{}).DBF||{}).name){h[d]=v[d].DBF.name,++S;continue}if(h[d]!=null){if(++S,typeof h[d]=="number"&&(h[d]=h[d].toString(10)),typeof h[d]!="string")throw new Error("DBF Invalid column name "+h[d]+" |"+typeof h[d]+"|");if(h.indexOf(h[d])!==d){for(m=0;m<1024;++m)if(h.indexOf(h[d]+"_"+m)==-1){h[d]+="_"+m;break}}}}var y=Ie(f["!ref"]),D=[],G=[],Q=[];for(d=0;d<=y.e.c-y.s.c;++d){var I="",V="",L=0,M=[];for(m=0;m<x.length;++m)x[m][d]!=null&&M.push(x[m][d]);if(M.length==0||h[d]==null){D[d]="?";continue}for(m=0;m<M.length;++m){switch(typeof M[m]){case"number":V="B";break;case"string":V="C";break;case"boolean":V="L";break;case"object":V=M[m]instanceof Date?"D":"C";break;default:V="C"}L=Math.max(L,String(M[m]).length),I=I&&I!=V?"C":V}L>250&&(L=250),V=((v[d]||{}).DBF||{}).type,V=="C"&&v[d].DBF.len>L&&(L=v[d].DBF.len),I=="B"&&V=="N"&&(I="N",Q[d]=v[d].DBF.dec,L=v[d].DBF.len),G[d]=I=="C"||V=="N"?L:a[I]||0,F+=G[d],D[d]=I}var W=c.next(32);for(W.write_shift(4,318902576),W.write_shift(4,x.length),W.write_shift(2,296+32*S),W.write_shift(2,F),d=0;d<4;++d)W.write_shift(4,0);for(W.write_shift(4,0|(+r[Ss]||3)<<8),d=0,m=0;d<h.length;++d)if(h[d]!=null){var j=c.next(32),Y=(h[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,Y,"sbcs"),j.write_shift(1,D[d]=="?"?"C":D[d],"sbcs"),j.write_shift(4,m),j.write_shift(1,G[d]||a[D[d]]||0),j.write_shift(1,Q[d]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),m+=G[d]||a[D[d]]||0}var ue=c.next(264);for(ue.write_shift(4,13),d=0;d<65;++d)ue.write_shift(4,0);for(d=0;d<x.length;++d){var oe=c.next(F);for(oe.write_shift(1,0),m=0;m<h.length;++m)if(h[m]!=null)switch(D[m]){case"L":oe.write_shift(1,x[d][m]==null?63:x[d][m]?84:70);break;case"B":oe.write_shift(8,x[d][m]||0,"f");break;case"N":var de="0";for(typeof x[d][m]=="number"&&(de=x[d][m].toFixed(Q[m]||0)),S=0;S<G[m]-de.length;++S)oe.write_shift(1,32);oe.write_shift(1,de,"sbcs");break;case"D":x[d][m]?(oe.write_shift(4,("0000"+x[d][m].getFullYear()).slice(-4),"sbcs"),oe.write_shift(2,("00"+(x[d][m].getMonth()+1)).slice(-2),"sbcs"),oe.write_shift(2,("00"+x[d][m].getDate()).slice(-2),"sbcs")):oe.write_shift(8,"00000000","sbcs");break;case"C":var xe=String(x[d][m]!=null?x[d][m]:"").slice(0,G[m]);for(oe.write_shift(1,xe,"sbcs"),S=0;S<G[m]-xe.length;++S)oe.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}}(),H1=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+Ze(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(h,x){var v=e[x];return typeof v=="number"?Ya(v):v},n=function(h,x,v){var d=x.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return d==59?h:Ya(d)};e["|"]=254;function i(h,x){switch(x.type){case"base64":return a(Kt(h),x);case"binary":return a(h,x);case"buffer":return a(_e&&Buffer.isBuffer(h)?h.toString("binary"):gn(h),x);case"array":return a(vi(h),x)}throw new Error("Unrecognized type "+x.type)}function a(h,x){var v=h.split(/[\n\r]+/),d=-1,m=-1,S=0,F=0,y=[],D=[],G=null,Q={},I=[],V=[],L=[],M=0,W;for(+x.codepage>=0&&un(+x.codepage);S!==v.length;++S){M=0;var j=v[S].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),Y=j.replace(/;;/g,"\0").split(";").map(function(C){return C.replace(/\u0000/g,";")}),ue=Y[0],oe;if(j.length>0)switch(ue){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Y[1].charAt(0)=="P"&&D.push(j.slice(3).replace(/;;/g,";"));break;case"C":var de=!1,xe=!1,lt=!1,Be=!1,Et=-1,xt=-1;for(F=1;F<Y.length;++F)switch(Y[F].charAt(0)){case"A":break;case"X":m=parseInt(Y[F].slice(1))-1,xe=!0;break;case"Y":for(d=parseInt(Y[F].slice(1))-1,xe||(m=0),W=y.length;W<=d;++W)y[W]=[];break;case"K":oe=Y[F].slice(1),oe.charAt(0)==='"'?oe=oe.slice(1,oe.length-1):oe==="TRUE"?oe=!0:oe==="FALSE"?oe=!1:isNaN(Xt(oe))?isNaN(dn(oe).getDate())||(oe=st(oe)):(oe=Xt(oe),G!==null&&Ps(G)&&(oe=Us(oe))),de=!0;break;case"E":Be=!0;var A=$d(Y[F].slice(1),{r:d,c:m});y[d][m]=[y[d][m],A];break;case"S":lt=!0,y[d][m]=[y[d][m],"S5S"];break;case"G":break;case"R":Et=parseInt(Y[F].slice(1))-1;break;case"C":xt=parseInt(Y[F].slice(1))-1;break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+j)}if(de&&(y[d][m]&&y[d][m].length==2?y[d][m][0]=oe:y[d][m]=oe,G=null),lt){if(Be)throw new Error("SYLK shared formula cannot have own formula");var b=Et>-1&&y[Et][xt];if(!b||!b[1])throw new Error("SYLK shared formula cannot find base");y[d][m][1]=Wd(b[1],{r:d-Et,c:m-xt})}break;case"F":var O=0;for(F=1;F<Y.length;++F)switch(Y[F].charAt(0)){case"X":m=parseInt(Y[F].slice(1))-1,++O;break;case"Y":for(d=parseInt(Y[F].slice(1))-1,W=y.length;W<=d;++W)y[W]=[];break;case"M":M=parseInt(Y[F].slice(1))/20;break;case"F":break;case"G":break;case"P":G=D[parseInt(Y[F].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=Y[F].slice(1).split(" "),W=parseInt(L[0],10);W<=parseInt(L[1],10);++W)M=parseInt(L[2],10),V[W-1]=M===0?{hidden:!0}:{wch:M},Ta(V[W-1]);break;case"C":m=parseInt(Y[F].slice(1))-1,V[m]||(V[m]={});break;case"R":d=parseInt(Y[F].slice(1))-1,I[d]||(I[d]={}),M>0?(I[d].hpt=M,I[d].hpx=Cf(M)):M===0&&(I[d].hidden=!0);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+j)}O<1&&(G=null);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+j)}}return I.length>0&&(Q["!rows"]=I),V.length>0&&(Q["!cols"]=V),x&&x.sheetRows&&(y=y.slice(0,x.sheetRows)),[y,Q]}function s(h,x){var v=i(h,x),d=v[0],m=v[1],S=Kr(d,x);return Ze(m).forEach(function(F){S[F]=m[F]}),S}function f(h,x){return Sr(s(h,x),x)}function l(h,x,v,d){var m="C;Y"+(v+1)+";X"+(d+1)+";K";switch(h.t){case"n":m+=h.v||0,h.f&&!h.F&&(m+=";E"+Sa(h.f,{r:v,c:d}));break;case"b":m+=h.v?"TRUE":"FALSE";break;case"e":m+=h.w||h.v;break;case"d":m+='"'+(h.w||h.v)+'"';break;case"s":m+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function o(h,x){x.forEach(function(v,d){var m="F;W"+(d+1)+" "+(d+1)+" ";v.hidden?m+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=Qn(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=ei(v.wpx)),typeof v.wch=="number"&&(m+=Math.round(v.wch))),m.charAt(m.length-1)!=" "&&h.push(m)})}function c(h,x){x.forEach(function(v,d){var m="F;";v.hidden?m+="M0;":v.hpt?m+="M"+20*v.hpt+";":v.hpx&&(m+="M"+20*ti(v.hpx)+";"),m.length>2&&h.push(m+"R"+(d+1))})}function u(h,x){var v=["ID;PWXL;N;E"],d=[],m=Ie(h["!ref"]),S,F=Array.isArray(h),y=`\r
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),h["!cols"]&&o(v,h["!cols"]),h["!rows"]&&c(v,h["!rows"]),v.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var D=m.s.r;D<=m.e.r;++D)for(var G=m.s.c;G<=m.e.c;++G){var Q=ye({r:D,c:G});S=F?(h[D]||[])[G]:h[Q],!(!S||S.v==null&&(!S.f||S.F))&&d.push(l(S,h,D,G))}return v.join(y)+y+d.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:u}}(),V1=function(){function e(a,s){switch(s.type){case"base64":return r(Kt(a),s);case"binary":return r(a,s);case"buffer":return r(_e&&Buffer.isBuffer(a)?a.toString("binary"):gn(a),s);case"array":return r(vi(a),s)}throw new Error("Unrecognized type "+s.type)}function r(a,s){for(var f=a.split(`
`),l=-1,o=-1,c=0,u=[];c!==f.length;++c){if(f[c].trim()==="BOT"){u[++l]=[],o=0;continue}if(!(l<0)){var h=f[c].trim().split(","),x=h[0],v=h[1];++c;for(var d=f[c]||"";(d.match(/["]/g)||[]).length&1&&c<f.length-1;)d+=`
`+f[++c];switch(d=d.trim(),+x){case-1:if(d==="BOT"){u[++l]=[],o=0;continue}else if(d!=="EOD")throw new Error("Unrecognized DIF special command "+d);break;case 0:d==="TRUE"?u[l][o]=!0:d==="FALSE"?u[l][o]=!1:isNaN(Xt(v))?isNaN(dn(v).getDate())?u[l][o]=v:u[l][o]=st(v):u[l][o]=Xt(v),++o;break;case 1:d=d.slice(1,d.length-1),d=d.replace(/""/g,'"'),d&&d.match(/^=".*"$/)&&(d=d.slice(2,-1)),u[l][o++]=d!==""?d:null;break}if(d==="EOD")break}}return s&&s.sheetRows&&(u=u.slice(0,s.sheetRows)),u}function t(a,s){return Kr(e(a,s),s)}function n(a,s){return Sr(t(a,s),s)}var i=function(){var a=function(l,o,c,u,h){l.push(o),l.push(c+","+u),l.push('"'+h.replace(/"/g,'""')+'"')},s=function(l,o,c,u){l.push(o+","+c),l.push(o==1?'"'+u.replace(/"/g,'""')+'"':u)};return function(l){var o=[],c=Ie(l["!ref"]),u,h=Array.isArray(l);a(o,"TABLE",0,1,"sheetjs"),a(o,"VECTORS",0,c.e.r-c.s.r+1,""),a(o,"TUPLES",0,c.e.c-c.s.c+1,""),a(o,"DATA",0,0,"");for(var x=c.s.r;x<=c.e.r;++x){s(o,-1,0,"BOT");for(var v=c.s.c;v<=c.e.c;++v){var d=ye({r:x,c:v});if(u=h?(l[x]||[])[v]:l[d],!u){s(o,1,0,"");continue}switch(u.t){case"n":var m=u.w;!m&&u.v!=null&&(m=u.v),m==null?u.f&&!u.F?s(o,1,0,"="+u.f):s(o,1,0,""):s(o,0,m,"V");break;case"b":s(o,0,u.v?1:0,u.v?"TRUE":"FALSE");break;case"s":s(o,1,0,isNaN(u.v)?u.v:'="'+u.v+'"');break;case"d":u.w||(u.w=nr(u.z||be[14],ut(st(u.v)))),s(o,0,u.w,"V");break;default:s(o,1,0,"")}}}s(o,-1,0,"EOD");var S=`\r
`,F=o.join(S);return F}}();return{to_workbook:n,to_sheet:t,from_sheet:i}}(),Sf=function(){function e(u){return u.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function r(u){return u.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(u,h){for(var x=u.split(`
`),v=-1,d=-1,m=0,S=[];m!==x.length;++m){var F=x[m].trim().split(":");if(F[0]==="cell"){var y=Ge(F[1]);if(S.length<=y.r)for(v=S.length;v<=y.r;++v)S[v]||(S[v]=[]);switch(v=y.r,d=y.c,F[2]){case"t":S[v][d]=e(F[3]);break;case"v":S[v][d]=+F[3];break;case"vtf":var D=F[F.length-1];case"vtc":switch(F[3]){case"nl":S[v][d]=!!+F[4];break;default:S[v][d]=+F[4];break}F[2]=="vtf"&&(S[v][d]=[S[v][d],D])}}}return h&&h.sheetRows&&(S=S.slice(0,h.sheetRows)),S}function n(u,h){return Kr(t(u,h),h)}function i(u,h){return Sr(n(u,h),h)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),l="--SocialCalcSpreadsheetControlSave--";function o(u){if(!u||!u["!ref"])return"";for(var h=[],x=[],v,d="",m=_t(u["!ref"]),S=Array.isArray(u),F=m.s.r;F<=m.e.r;++F)for(var y=m.s.c;y<=m.e.c;++y)if(d=ye({r:F,c:y}),v=S?(u[F]||[])[y]:u[d],!(!v||v.v==null||v.t==="z")){switch(x=["cell",d,"t"],v.t){case"s":case"str":x.push(r(v.v));break;case"n":v.f?(x[2]="vtf",x[3]="n",x[4]=v.v,x[5]=r(v.f)):(x[2]="v",x[3]=v.v);break;case"b":x[2]="vt"+(v.f?"f":"c"),x[3]="nl",x[4]=v.v?"1":"0",x[5]=r(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var D=ut(st(v.v));x[2]="vtc",x[3]="nd",x[4]=""+D,x[5]=v.w||nr(v.z||be[14],D);break;case"e":continue}h.push(x.join(":"))}return h.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
`)}function c(u){return[a,s,f,s,o(u),l].join(`
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),G1=function(){function e(c,u,h,x,v){v.raw?u[h][x]=c:c===""||(c==="TRUE"?u[h][x]=!0:c==="FALSE"?u[h][x]=!1:isNaN(Xt(c))?isNaN(dn(c).getDate())?u[h][x]=c:u[h][x]=st(c):u[h][x]=Xt(c))}function r(c,u){var h=u||{},x=[];if(!c||c.length===0)return x;for(var v=c.split(/[\r\n]/),d=v.length-1;d>=0&&v[d].length===0;)--d;for(var m=10,S=0,F=0;F<=d;++F)S=v[F].indexOf(" "),S==-1?S=v[F].length:S++,m=Math.max(m,S);for(F=0;F<=d;++F){x[F]=[];var y=0;for(e(v[F].slice(0,m).trim(),x,F,y,h),y=1;y<=(v[F].length-m)/10+1;++y)e(v[F].slice(m+(y-1)*10,m+y*10).trim(),x,F,y,h)}return h.sheetRows&&(x=x.slice(0,h.sheetRows)),x}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var u={},h=!1,x=0,v=0;x<c.length;++x)(v=c.charCodeAt(x))==34?h=!h:!h&&v in t&&(u[v]=(u[v]||0)+1);v=[];for(x in u)Object.prototype.hasOwnProperty.call(u,x)&&v.push([u[x],x]);if(!v.length){u=n;for(x in u)Object.prototype.hasOwnProperty.call(u,x)&&v.push([u[x],x])}return v.sort(function(d,m){return d[0]-m[0]||n[d[1]]-n[m[1]]}),t[v.pop()[1]]||44}function a(c,u){var h=u||{},x="",v=h.dense?[]:{},d={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(x=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(x=c.charAt(4),c=c.slice(6)):x=i(c.slice(0,1024)):h&&h.FS?x=h.FS:x=i(c.slice(0,1024));var m=0,S=0,F=0,y=0,D=0,G=x.charCodeAt(0),Q=!1,I=0,V=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var L=h.dateNF!=null?sh(h.dateNF):null;function M(){var W=c.slice(y,D),j={};if(W.charAt(0)=='"'&&W.charAt(W.length-1)=='"'&&(W=W.slice(1,-1).replace(/""/g,'"')),W.length===0)j.t="z";else if(h.raw)j.t="s",j.v=W;else if(W.trim().length===0)j.t="s",j.v=W;else if(W.charCodeAt(0)==61)W.charCodeAt(1)==34&&W.charCodeAt(W.length-1)==34?(j.t="s",j.v=W.slice(2,-1).replace(/""/g,'"')):Hd(W)?(j.t="n",j.f=W.slice(1)):(j.t="s",j.v=W);else if(W=="TRUE")j.t="b",j.v=!0;else if(W=="FALSE")j.t="b",j.v=!1;else if(!isNaN(F=Xt(W)))j.t="n",h.cellText!==!1&&(j.w=W),j.v=F;else if(!isNaN(dn(W).getDate())||L&&W.match(L)){j.z=h.dateNF||be[14];var Y=0;L&&W.match(L)&&(W=fh(W,h.dateNF,W.match(L)||[]),Y=1),h.cellDates?(j.t="d",j.v=st(W,Y)):(j.t="n",j.v=ut(st(W,Y))),h.cellText!==!1&&(j.w=nr(j.z,j.v instanceof Date?ut(j.v):j.v)),h.cellNF||delete j.z}else j.t="s",j.v=W;if(j.t=="z"||(h.dense?(v[m]||(v[m]=[]),v[m][S]=j):v[ye({c:S,r:m})]=j),y=D+1,V=c.charCodeAt(y),d.e.c<S&&(d.e.c=S),d.e.r<m&&(d.e.r=m),I==G)++S;else if(S=0,++m,h.sheetRows&&h.sheetRows<=m)return!0}e:for(;D<c.length;++D)switch(I=c.charCodeAt(D)){case 34:V===34&&(Q=!Q);break;case G:case 10:case 13:if(!Q&&M())break e;break}return D-y>0&&M(),v["!ref"]=$e(d),v}function s(c,u){return!(u&&u.PRN)||u.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,u):Kr(r(c,u),u)}function f(c,u){var h="",x=u.type=="string"?[0,0,0,0]:rm(c,u);switch(u.type){case"base64":h=Kt(c);break;case"binary":h=c;break;case"buffer":u.codepage==65001?h=c.toString("utf8"):u.codepage&&typeof vr<"u"?h=vr.utils.decode(u.codepage,c):h=_e&&Buffer.isBuffer(c)?c.toString("binary"):gn(c);break;case"array":h=vi(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+u.type)}return x[0]==239&&x[1]==187&&x[2]==191?h=an(h.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?h=an(h):u.type=="binary"&&typeof vr<"u"&&u.codepage&&(h=vr.utils.decode(u.codepage,vr.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?Sf.to_sheet(u.type=="string"?h:an(h),u):s(h,u)}function l(c,u){return Sr(f(c,u),u)}function o(c){for(var u=[],h=Ie(c["!ref"]),x,v=Array.isArray(c),d=h.s.r;d<=h.e.r;++d){for(var m=[],S=h.s.c;S<=h.e.c;++S){var F=ye({r:d,c:S});if(x=v?(c[d]||[])[S]:c[F],!x||x.v==null){m.push(" ");continue}for(var y=(x.w||(Yt(x),x.w)||"").slice(0,10);y.length<10;)y+=" ";m.push(y+(S===0?" ":""))}u.push(m.join(""))}return u.join(`
`)}return{to_workbook:l,to_sheet:f,from_sheet:o}}(),F0=function(){function e(A,b,O){if(A){vt(A,A.l||0);for(var C=O.Enum||Et;A.l<A.length;){var z=A.read_shift(2),le=C[z]||C[65535],ce=A.read_shift(2),fe=A.l+ce,te=le.f&&le.f(A,ce,O);if(A.l=fe,b(te,le,z))return}}}function r(A,b){switch(b.type){case"base64":return t(Ct(Kt(A)),b);case"binary":return t(Ct(A),b);case"buffer":case"array":return t(A,b)}throw"Unsupported type "+b.type}function t(A,b){if(!A)return A;var O=b||{},C=O.dense?[]:{},z="Sheet1",le="",ce=0,fe={},te=[],Ce=[],ve={s:{r:0,c:0},e:{r:0,c:0}},nt=O.sheetRows||0;if(A[2]==0&&(A[3]==8||A[3]==9)&&A.length>=16&&A[14]==5&&A[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(A[2]==2)O.Enum=Et,e(A,function(se,Tt,$t){switch($t){case 0:O.vers=se,se>=4096&&(O.qpro=!0);break;case 6:ve=se;break;case 204:se&&(le=se);break;case 222:le=se;break;case 15:case 51:O.qpro||(se[1].v=se[1].v.slice(1));case 13:case 14:case 16:$t==14&&(se[2]&112)==112&&(se[2]&15)>1&&(se[2]&15)<15&&(se[1].z=O.dateNF||be[14],O.cellDates&&(se[1].t="d",se[1].v=Us(se[1].v))),O.qpro&&se[3]>ce&&(C["!ref"]=$e(ve),fe[z]=C,te.push(z),C=O.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},ce=se[3],z=le||"Sheet"+(ce+1),le="");var ur=O.dense?(C[se[0].r]||[])[se[0].c]:C[ye(se[0])];if(ur){ur.t=se[1].t,ur.v=se[1].v,se[1].z!=null&&(ur.z=se[1].z),se[1].f!=null&&(ur.f=se[1].f);break}O.dense?(C[se[0].r]||(C[se[0].r]=[]),C[se[0].r][se[0].c]=se[1]):C[ye(se[0])]=se[1];break}},O);else if(A[2]==26||A[2]==14)O.Enum=xt,A[2]==14&&(O.qpro=!0,A.l=0),e(A,function(se,Tt,$t){switch($t){case 204:z=se;break;case 22:se[1].v=se[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(se[3]>ce&&(C["!ref"]=$e(ve),fe[z]=C,te.push(z),C=O.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},ce=se[3],z="Sheet"+(ce+1)),nt>0&&se[0].r>=nt)break;O.dense?(C[se[0].r]||(C[se[0].r]=[]),C[se[0].r][se[0].c]=se[1]):C[ye(se[0])]=se[1],ve.e.c<se[0].c&&(ve.e.c=se[0].c),ve.e.r<se[0].r&&(ve.e.r=se[0].r);break;case 27:se[14e3]&&(Ce[se[14e3][0]]=se[14e3][1]);break;case 1537:Ce[se[0]]=se[1],se[0]==ce&&(z=se[1]);break}},O);else throw new Error("Unrecognized LOTUS BOF "+A[2]);if(C["!ref"]=$e(ve),fe[le||z]=C,te.push(le||z),!Ce.length)return{SheetNames:te,Sheets:fe};for(var Ee={},Ut=[],Le=0;Le<Ce.length;++Le)fe[te[Le]]?(Ut.push(Ce[Le]||te[Le]),Ee[Ce[Le]]=fe[Ce[Le]]||fe[te[Le]]):(Ut.push(Ce[Le]),Ee[Ce[Le]]={"!ref":"A1"});return{SheetNames:Ut,Sheets:Ee}}function n(A,b){var O=b||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK1 to JS string");var C=ct(),z=Ie(A["!ref"]),le=Array.isArray(A),ce=[];Z(C,0,a(1030)),Z(C,6,l(z));for(var fe=Math.min(z.e.r,8191),te=z.s.r;te<=fe;++te)for(var Ce=qe(te),ve=z.s.c;ve<=z.e.c;++ve){te===z.s.r&&(ce[ve]=tt(ve));var nt=ce[ve]+Ce,Ee=le?(A[te]||[])[ve]:A[nt];if(!(!Ee||Ee.t=="z"))if(Ee.t=="n")(Ee.v|0)==Ee.v&&Ee.v>=-32768&&Ee.v<=32767?Z(C,13,x(te,ve,Ee.v)):Z(C,14,d(te,ve,Ee.v));else{var Ut=Yt(Ee);Z(C,15,u(te,ve,Ut.slice(0,239)))}}return Z(C,1),C.end()}function i(A,b){var O=b||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK3 to JS string");var C=ct();Z(C,0,s(A));for(var z=0,le=0;z<A.SheetNames.length;++z)(A.Sheets[A.SheetNames[z]]||{})["!ref"]&&Z(C,27,Be(A.SheetNames[z],le++));var ce=0;for(z=0;z<A.SheetNames.length;++z){var fe=A.Sheets[A.SheetNames[z]];if(!(!fe||!fe["!ref"])){for(var te=Ie(fe["!ref"]),Ce=Array.isArray(fe),ve=[],nt=Math.min(te.e.r,8191),Ee=te.s.r;Ee<=nt;++Ee)for(var Ut=qe(Ee),Le=te.s.c;Le<=te.e.c;++Le){Ee===te.s.r&&(ve[Le]=tt(Le));var se=ve[Le]+Ut,Tt=Ce?(fe[Ee]||[])[Le]:fe[se];if(!(!Tt||Tt.t=="z"))if(Tt.t=="n")Z(C,23,M(Ee,Le,ce,Tt.v));else{var $t=Yt(Tt);Z(C,22,I(Ee,Le,ce,$t.slice(0,239)))}}++ce}}return Z(C,1),C.end()}function a(A){var b=B(2);return b.write_shift(2,A),b}function s(A){var b=B(26);b.write_shift(2,4096),b.write_shift(2,4),b.write_shift(4,0);for(var O=0,C=0,z=0,le=0;le<A.SheetNames.length;++le){var ce=A.SheetNames[le],fe=A.Sheets[ce];if(!(!fe||!fe["!ref"])){++z;var te=_t(fe["!ref"]);O<te.e.r&&(O=te.e.r),C<te.e.c&&(C=te.e.c)}}return O>8191&&(O=8191),b.write_shift(2,O),b.write_shift(1,z),b.write_shift(1,C),b.write_shift(2,0),b.write_shift(2,0),b.write_shift(1,1),b.write_shift(1,2),b.write_shift(4,0),b.write_shift(4,0),b}function f(A,b,O){var C={s:{c:0,r:0},e:{c:0,r:0}};return b==8&&O.qpro?(C.s.c=A.read_shift(1),A.l++,C.s.r=A.read_shift(2),C.e.c=A.read_shift(1),A.l++,C.e.r=A.read_shift(2),C):(C.s.c=A.read_shift(2),C.s.r=A.read_shift(2),b==12&&O.qpro&&(A.l+=2),C.e.c=A.read_shift(2),C.e.r=A.read_shift(2),b==12&&O.qpro&&(A.l+=2),C.s.c==65535&&(C.s.c=C.e.c=C.s.r=C.e.r=0),C)}function l(A){var b=B(8);return b.write_shift(2,A.s.c),b.write_shift(2,A.s.r),b.write_shift(2,A.e.c),b.write_shift(2,A.e.r),b}function o(A,b,O){var C=[{c:0,r:0},{t:"n",v:0},0,0];return O.qpro&&O.vers!=20768?(C[0].c=A.read_shift(1),C[3]=A.read_shift(1),C[0].r=A.read_shift(2),A.l+=2):(C[2]=A.read_shift(1),C[0].c=A.read_shift(2),C[0].r=A.read_shift(2)),C}function c(A,b,O){var C=A.l+b,z=o(A,b,O);if(z[1].t="s",O.vers==20768){A.l++;var le=A.read_shift(1);return z[1].v=A.read_shift(le,"utf8"),z}return O.qpro&&A.l++,z[1].v=A.read_shift(C-A.l,"cstr"),z}function u(A,b,O){var C=B(7+O.length);C.write_shift(1,255),C.write_shift(2,b),C.write_shift(2,A),C.write_shift(1,39);for(var z=0;z<C.length;++z){var le=O.charCodeAt(z);C.write_shift(1,le>=128?95:le)}return C.write_shift(1,0),C}function h(A,b,O){var C=o(A,b,O);return C[1].v=A.read_shift(2,"i"),C}function x(A,b,O){var C=B(7);return C.write_shift(1,255),C.write_shift(2,b),C.write_shift(2,A),C.write_shift(2,O,"i"),C}function v(A,b,O){var C=o(A,b,O);return C[1].v=A.read_shift(8,"f"),C}function d(A,b,O){var C=B(13);return C.write_shift(1,255),C.write_shift(2,b),C.write_shift(2,A),C.write_shift(8,O,"f"),C}function m(A,b,O){var C=A.l+b,z=o(A,b,O);if(z[1].v=A.read_shift(8,"f"),O.qpro)A.l=C;else{var le=A.read_shift(2);D(A.slice(A.l,A.l+le),z),A.l+=le}return z}function S(A,b,O){var C=b&32768;return b&=-32769,b=(C?A:0)+(b>=8192?b-16384:b),(C?"":"$")+(O?tt(b):qe(b))}var F={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]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function D(A,b){vt(A,0);for(var O=[],C=0,z="",le="",ce="",fe="";A.l<A.length;){var te=A[A.l++];switch(te){case 0:O.push(A.read_shift(8,"f"));break;case 1:le=S(b[0].c,A.read_shift(2),!0),z=S(b[0].r,A.read_shift(2),!1),O.push(le+z);break;case 2:{var Ce=S(b[0].c,A.read_shift(2),!0),ve=S(b[0].r,A.read_shift(2),!1);le=S(b[0].c,A.read_shift(2),!0),z=S(b[0].r,A.read_shift(2),!1),O.push(Ce+ve+":"+le+z)}break;case 3:if(A.l<A.length){console.error("WK1 premature formula end");return}break;case 4:O.push("("+O.pop()+")");break;case 5:O.push(A.read_shift(2));break;case 6:{for(var nt="";te=A[A.l++];)nt+=String.fromCharCode(te);O.push('"'+nt.replace(/"/g,'""')+'"')}break;case 8:O.push("-"+O.pop());break;case 23:O.push("+"+O.pop());break;case 22:O.push("NOT("+O.pop()+")");break;case 20:case 21:fe=O.pop(),ce=O.pop(),O.push(["AND","OR"][te-20]+"("+ce+","+fe+")");break;default:if(te<32&&y[te])fe=O.pop(),ce=O.pop(),O.push(ce+y[te]+fe);else if(F[te]){if(C=F[te][1],C==69&&(C=A[A.l++]),C>O.length){console.error("WK1 bad formula parse 0x"+te.toString(16)+":|"+O.join("|")+"|");return}var Ee=O.slice(-C);O.length-=C,O.push(F[te][0]+"("+Ee.join(",")+")")}else return te<=7?console.error("WK1 invalid opcode "+te.toString(16)):te<=24?console.error("WK1 unsupported op "+te.toString(16)):te<=30?console.error("WK1 invalid opcode "+te.toString(16)):te<=115?console.error("WK1 unsupported function opcode "+te.toString(16)):console.error("WK1 unrecognized opcode "+te.toString(16))}}O.length==1?b[1].f=""+O[0]:console.error("WK1 bad formula parse |"+O.join("|")+"|")}function G(A){var b=[{c:0,r:0},{t:"n",v:0},0];return b[0].r=A.read_shift(2),b[3]=A[A.l++],b[0].c=A[A.l++],b}function Q(A,b){var O=G(A);return O[1].t="s",O[1].v=A.read_shift(b-4,"cstr"),O}function I(A,b,O,C){var z=B(6+C.length);z.write_shift(2,A),z.write_shift(1,O),z.write_shift(1,b),z.write_shift(1,39);for(var le=0;le<C.length;++le){var ce=C.charCodeAt(le);z.write_shift(1,ce>=128?95:ce)}return z.write_shift(1,0),z}function V(A,b){var O=G(A);O[1].v=A.read_shift(2);var C=O[1].v>>1;if(O[1].v&1)switch(C&7){case 0:C=(C>>3)*5e3;break;case 1:C=(C>>3)*500;break;case 2:C=(C>>3)/20;break;case 3:C=(C>>3)/200;break;case 4:C=(C>>3)/2e3;break;case 5:C=(C>>3)/2e4;break;case 6:C=(C>>3)/16;break;case 7:C=(C>>3)/64;break}return O[1].v=C,O}function L(A,b){var O=G(A),C=A.read_shift(4),z=A.read_shift(4),le=A.read_shift(2);if(le==65535)return C===0&&z===3221225472?(O[1].t="e",O[1].v=15):C===0&&z===3489660928?(O[1].t="e",O[1].v=42):O[1].v=0,O;var ce=le&32768;return le=(le&32767)-16446,O[1].v=(1-ce*2)*(z*Math.pow(2,le+32)+C*Math.pow(2,le)),O}function M(A,b,O,C){var z=B(14);if(z.write_shift(2,A),z.write_shift(1,O),z.write_shift(1,b),C==0)return z.write_shift(4,0),z.write_shift(4,0),z.write_shift(2,65535),z;var le=0,ce=0,fe=0,te=0;return C<0&&(le=1,C=-C),ce=Math.log2(C)|0,C/=Math.pow(2,ce-31),te=C>>>0,te&2147483648||(C/=2,++ce,te=C>>>0),C-=te,te|=2147483648,te>>>=0,C*=Math.pow(2,32),fe=C>>>0,z.write_shift(4,fe),z.write_shift(4,te),ce+=16383+(le?32768:0),z.write_shift(2,ce),z}function W(A,b){var O=L(A);return A.l+=b-14,O}function j(A,b){var O=G(A),C=A.read_shift(4);return O[1].v=C>>6,O}function Y(A,b){var O=G(A),C=A.read_shift(8,"f");return O[1].v=C,O}function ue(A,b){var O=Y(A);return A.l+=b-10,O}function oe(A,b){return A[A.l+b-1]==0?A.read_shift(b,"cstr"):""}function de(A,b){var O=A[A.l++];O>b-1&&(O=b-1);for(var C="";C.length<O;)C+=String.fromCharCode(A[A.l++]);return C}function xe(A,b,O){if(!(!O.qpro||b<21)){var C=A.read_shift(1);A.l+=17,A.l+=1,A.l+=2;var z=A.read_shift(b-21,"cstr");return[C,z]}}function lt(A,b){for(var O={},C=A.l+b;A.l<C;){var z=A.read_shift(2);if(z==14e3){for(O[z]=[0,""],O[z][0]=A.read_shift(2);A[A.l];)O[z][1]+=String.fromCharCode(A[A.l]),A.l++;A.l++}}return O}function Be(A,b){var O=B(5+A.length);O.write_shift(2,14e3),O.write_shift(2,b);for(var C=0;C<A.length;++C){var z=A.charCodeAt(C);O[O.l++]=z>127?95:z}return O[O.l++]=0,O}var Et={0:{n:"BOF",f:gf},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:v},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:oe},222:{n:"SHEETNAMELP",f:de},65535:{n:""}},xt={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:Q},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:V},25:{n:"FORMULA19",f:W},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:lt},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:j},38:{n:"??"},39:{n:"NUMBER27",f:Y},40:{n:"FORMULA28",f:ue},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:xe},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:r}}(),X1=/^\s|\s$|[\t\n\r]/;function Af(e,r){if(!r.bookSST)return"";var t=[We];t[t.length]=q("sst",null,{xmlns:jr[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(X1)&&(a+=' xml:space="preserve"'),a+=">"+Ae(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function z1(e){return[e.read_shift(4),e.read_shift(4)]}function j1(e,r){return r||(r=B(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var K1=Bh;function Y1(e){var r=ct();X(r,159,j1(e));for(var t=0;t<e.length;++t)X(r,19,K1(e[t]));return X(r,160),r.end()}function J1(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function yf(e){var r=0,t,n=J1(e),i=n.length+1,a,s,f,l,o;for(t=_r(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],f=r&16384?1:0,l=r<<1&32767,o=f|l,r=o^s;return r^52811}var q1=function(){function e(i,a){switch(a.type){case"base64":return r(Kt(i),a);case"binary":return r(i,a);case"buffer":return r(_e&&Buffer.isBuffer(i)?i.toString("binary"):gn(i),a);case"array":return r(vi(i),a)}throw new Error("Unrecognized type "+a.type)}function r(i,a){var s=a||{},f=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,u){Array.isArray(f)&&(f[u]=[]);for(var h=/\\\w+\b/g,x=0,v,d=-1;v=h.exec(c);){switch(v[0]){case"\\cell":var m=c.slice(x,h.lastIndex-v[0].length);if(m[0]==" "&&(m=m.slice(1)),++d,m.length){var S={v:m,t:"s"};Array.isArray(f)?f[u][d]=S:f[ye({r:u,c:d})]=S}break}x=h.lastIndex}d>o.e.c&&(o.e.c=d)}),f["!ref"]=$e(o),f}function t(i,a){return Sr(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Ie(i["!ref"]),f,l=Array.isArray(i),o=s.s.r;o<=s.e.r;++o){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 u=ye({r:o,c});f=l?(i[o]||[])[c]:i[u],!(!f||f.v==null&&(!f.f||f.F))&&(a.push(" "+(f.w||(Yt(f),f.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}}();function C0(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var Z1=6,zt=Z1;function Qn(e){return Math.floor((e+Math.round(128/zt)/256)*zt)}function ei(e){return Math.floor((e-5)/zt*100+.5)/100}function zi(e){return Math.round((e*zt+5)/zt*256)/256}function Ta(e){e.width?(e.wpx=Qn(e.width),e.wch=ei(e.wpx),e.MDW=zt):e.wpx?(e.wch=ei(e.wpx),e.width=zi(e.wch),e.MDW=zt):typeof e.wch=="number"&&(e.width=zi(e.wch),e.wpx=Qn(e.width),e.MDW=zt),e.customWidth&&delete e.customWidth}var Q1=96,Ff=Q1;function ti(e){return e*96/Ff}function Cf(e){return e*Ff/96}function ed(e){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=q("numFmt",null,{numFmtId:n,formatCode:Ae(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=q("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function td(e){var r=[];return r[r.length]=q("cellXfs",null),e.forEach(function(t){r[r.length]=q("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=q("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function Of(e,r){var t=[We,q("styleSheet",null,{xmlns:jr[0],"xmlns:vt":Ve.vt})],n;return e.SSF&&(n=ed(e.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=td(r.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function rd(e,r){var t=e.read_shift(2),n=rt(e);return[t,n]}function nd(e,r,t){t||(t=B(6+4*r.length)),t.write_shift(2,e),Xe(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function id(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=Xh(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 l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=Gh(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=rt(e),n}function ad(e,r){r||(r=B(25+4*32)),r.write_shift(2,e.sz*20),zh(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),qn(e.color,r);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),r.write_shift(1,n),Xe(e.name,r),r.length>r.l?r.slice(0,r.l):r}var sd=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Ni,fd=Mt;function O0(e,r){r||(r=B(4*3+8*7+16*1)),Ni||(Ni=oa(sd));var t=Ni[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(qn({auto:1},r),qn({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function ld(e,r){var t=e.l+r,n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}function Df(e,r,t){t||(t=B(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function en(e,r){return r||(r=B(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var od=Mt;function cd(e,r){return r||(r=B(51)),r.write_shift(1,0),en(null,r),en(null,r),en(null,r),en(null,r),en(null,r),r.length>r.l?r.slice(0,r.l):r}function ud(e,r){return r||(r=B(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),Jn(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function hd(e,r,t){var n=B(2052);return n.write_shift(4,e),Jn(r,n),Jn(t,n),n.length>n.l?n.slice(0,n.l):n}function dd(e,r){if(r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++t}),t!=0&&(X(e,615,It(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&X(e,44,nd(i,r[i]))}),X(e,616))}}function xd(e){var r=1;X(e,611,It(r)),X(e,43,ad({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),X(e,612)}function pd(e){var r=2;X(e,603,It(r)),X(e,45,O0({patternType:"none"})),X(e,45,O0({patternType:"gray125"})),X(e,604)}function vd(e){var r=1;X(e,613,It(r)),X(e,46,cd()),X(e,614)}function md(e){var r=1;X(e,626,It(r)),X(e,47,Df({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),X(e,627)}function gd(e,r){X(e,617,It(r.length)),r.forEach(function(t){X(e,47,Df(t,0))}),X(e,618)}function _d(e){var r=1;X(e,619,It(r)),X(e,48,ud({xfId:0,builtinId:0,name:"Normal"})),X(e,620)}function Ed(e){var r=0;X(e,505,It(r)),X(e,506)}function Td(e){var r=0;X(e,508,hd(r,"TableStyleMedium9","PivotStyleMedium4")),X(e,509)}function wd(e,r){var t=ct();return X(t,278),dd(t,e.SSF),xd(t),pd(t),vd(t),md(t),gd(t,r.cellXfs),_d(t),Ed(t),Td(t),X(t,279),t.end()}function If(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[We];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function Sd(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:rt(e)}}function Ad(e){var r=B(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),Xe(e.name,r),r.slice(0,r.l)}function yd(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Fd(e){var r=B(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function Cd(e,r){var t=B(8+2*r.length);return t.write_shift(4,e),Xe(r,t),t.slice(0,t.l)}function Od(e){return e.l+=4,e.read_shift(4)!=0}function Dd(e,r){var t=B(8);return t.write_shift(4,e),t.write_shift(4,r?1:0),t}function Id(){var e=ct();return X(e,332),X(e,334,It(1)),X(e,335,Ad({name:"XLDAPR",version:12e4,flags:3496657072})),X(e,336),X(e,339,Cd(1,"XLDAPR")),X(e,52),X(e,35,It(514)),X(e,4096,It(0)),X(e,4097,St(1)),X(e,36),X(e,53),X(e,340),X(e,337,Dd(1,!0)),X(e,51,Fd([[1,0]])),X(e,338),X(e,333),e.end()}function kf(){var e=[We];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
<metadataTypes count="1">
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
</metadataTypes>
<futureMetadata name="XLDAPR" count="1">
<bk>
<extLst>
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
</ext>
</extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk>
<rc t="1" v="0"/>
</bk>
</cellMetadata>
</metadata>`),e.join("")}function kd(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=ye(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Lr=1024;function Rf(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[q("xml",null,{"xmlns:v":mt.v,"xmlns:o":mt.o,"xmlns:x":mt.x,"xmlns:mv":mt.mv}).replace(/\/>/,">"),q("o:shapelayout",q("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),q("v:shapetype",[q("v:stroke",null,{joinstyle:"miter"}),q("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Lr<e*1e3;)Lr+=1e3;return r.forEach(function(a){var s=Ge(a[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var l=f.type=="gradient"?q("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=q("v:fill",l,f),c={on:"t",obscured:"t"};++Lr,i=i.concat(["<v:shape"+xn({id:"_x0000_s"+Lr,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,q("v:shadow",null,c),q("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Je("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Je("x:AutoFill","False"),Je("x:Row",String(s.r)),Je("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Nf(e){var r=[We,q("comments",null,{xmlns:jr[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=Ae(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=t.indexOf(Ae(l.a))),a.push(l.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)r.push(Je("t",Ae(a[0]||"")));else{for(var s=`Comment:
`+a[0]+`
`,f=1;f<a.length;++f)s+=`Reply:
`+a[f]+`
`;r.push(Je("t",Ae(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Rd(e,r,t){var n=[We,q("ThreadedComments",null,{xmlns:Ve.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};f==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(q("threadedComment",Je("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function Nd(e){var r=[We,q("personList",null,{xmlns:Ve.TCMNT,"xmlns:x":jr[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(q("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Ld(e){var r={};r.iauthor=e.read_shift(4);var t=Cr(e);return r.rfx=t.s,r.ref=ye(t.s),e.l+=16,r}function Pd(e,r){return r==null&&(r=B(36)),r.write_shift(4,e[1].iauthor),Yr(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var bd=rt;function Md(e){return Xe(e.slice(0,54))}function Bd(e){var r=ct(),t=[];return X(r,628),X(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),X(r,632,Md(i.a)))})}),X(r,631),X(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:Ge(n[0]),e:Ge(n[0])};X(r,635,Pd([a,i])),i.t&&i.t.length>0&&X(r,637,$h(i)),X(r,636),delete i.iauthor})}),X(r,634),X(r,629),r.end()}function Ud(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Fe.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var Lf=["xlsb","xlsm","xlam","biff8","xla"],$d=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var f=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var o=a.length>0?parseInt(a,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=r.c:--c,l?o+=r.r:--o,i+(f?"":"$")+tt(c)+(l?"":"$")+qe(o)}return function(i,a){return r=a,i.replace(e,t)}}(),wa=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Sa=function(){return function(r,t){return r.replace(wa,function(n,i,a,s,f,l){var o=va(s)-(a?0:t.c),c=pa(l)-(f?0:t.r),u=c==0?"":f?c+1:"["+c+"]",h=o==0?"":a?o+1:"["+o+"]";return i+"R"+u+"C"+h})}}();function Wd(e,r){return e.replace(wa,function(t,n,i,a,s,f){return n+(i=="$"?i+a:tt(va(a)+r.c))+(s=="$"?s+f:qe(pa(f)+r.r))})}function Hd(e){return e.length!=1}function Ue(e){e.l+=1}function ir(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Pf(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return bf(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=ir(e,2),f=ir(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:f[0],cRel:f[1],rRel:f[2]}}}function bf(e){var r=ir(e,2),t=ir(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function Vd(e,r,t){if(t.biff<8)return bf(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=ir(e,2),s=ir(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Mf(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Gd(e);var n=e.read_shift(t&&t.biff==12?4:2),i=ir(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Gd(e){var r=ir(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Xd(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function zd(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return jd(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=(a&32768)>>15;if(a&=16383,f==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:f}}function jd(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:n}}function Kd(e,r,t){var n=(e[e.l++]&96)>>5,i=Pf(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function Yd(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=Pf(e,a,t);return[n,i,s]}function Jd(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function qd(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function Zd(e,r,t){var n=(e[e.l++]&96)>>5,i=Vd(e,r-1,t);return[n,i]}function Qd(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function D0(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function ex(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function tx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function rx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function nx(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function ix(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function Bf(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function ax(e){return e.read_shift(2),Bf(e)}function sx(e){return e.read_shift(2),Bf(e)}function fx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Mf(e,0,t);return[n,i]}function lx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=zd(e,0,t);return[n,i]}function ox(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var a=Mf(e,0,t);return[n,i,a]}function cx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[cp[i],Wf[i],n]}function ux(e,r,t){var n=e[e.l++],i=e.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:hx(e);return[i,(a[0]===0?Wf:op)[a[1]]]}function hx(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function dx(e,r,t){e.l+=t&&t.biff==2?3:4}function xx(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function px(e){return e.l++,Tn[e.read_shift(1)]}function vx(e){return e.l++,e.read_shift(2)}function mx(e){return e.l++,e.read_shift(1)!==0}function gx(e){return e.l++,Jr(e)}function _x(e,r,t){return e.l++,Ef(e,r-1,t)}function Ex(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=o1(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Tn[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Jr(e);break;case 2:t[1]=d1(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Tx(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?Cr:v1)(e));return i}function wx(e,r,t){var n=0,i=0;t.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var f=0;f!=i;++f)s[a][f]=Ex(e,t.biff);return s}function Sx(e,r,t){var n=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=e.read_shift(i);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function Ax(e,r,t){if(t.biff==5)return yx(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function yx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function Fx(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Cx(e,r,t){var n=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Ox(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function Dx(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var Ix=Mt,kx=Mt,Rx=Mt;function wn(e,r,t){return e.l+=2,[Xd(e)]}function Aa(e){return e.l+=6,[]}var Nx=wn,Lx=Aa,Px=Aa,bx=wn;function Uf(e){return e.l+=2,[gf(e),e.read_shift(2)&1]}var Mx=wn,Bx=Uf,Ux=Aa,$x=wn,Wx=wn,Hx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Vx(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=Hx[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function Gx(e){return e.l+=2,[e.read_shift(4)]}function Xx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function zx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function jx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Kx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Yx(e){return e.l+=4,[0,0]}var I0={1:{n:"PtgExp",f:xx},2:{n:"PtgTbl",f:Rx},3:{n:"PtgAdd",f:Ue},4:{n:"PtgSub",f:Ue},5:{n:"PtgMul",f:Ue},6:{n:"PtgDiv",f:Ue},7:{n:"PtgPower",f:Ue},8:{n:"PtgConcat",f:Ue},9:{n:"PtgLt",f:Ue},10:{n:"PtgLe",f:Ue},11:{n:"PtgEq",f:Ue},12:{n:"PtgGe",f:Ue},13:{n:"PtgGt",f:Ue},14:{n:"PtgNe",f:Ue},15:{n:"PtgIsect",f:Ue},16:{n:"PtgUnion",f:Ue},17:{n:"PtgRange",f:Ue},18:{n:"PtgUplus",f:Ue},19:{n:"PtgUminus",f:Ue},20:{n:"PtgPercent",f:Ue},21:{n:"PtgParen",f:Ue},22:{n:"PtgMissArg",f:Ue},23:{n:"PtgStr",f:_x},26:{n:"PtgSheet",f:Xx},27:{n:"PtgEndSheet",f:zx},28:{n:"PtgErr",f:px},29:{n:"PtgBool",f:mx},30:{n:"PtgInt",f:vx},31:{n:"PtgNum",f:gx},32:{n:"PtgArray",f:Qd},33:{n:"PtgFunc",f:cx},34:{n:"PtgFuncVar",f:ux},35:{n:"PtgName",f:Sx},36:{n:"PtgRef",f:fx},37:{n:"PtgArea",f:Kd},38:{n:"PtgMemArea",f:Fx},39:{n:"PtgMemErr",f:Ix},40:{n:"PtgMemNoMem",f:kx},41:{n:"PtgMemFunc",f:Cx},42:{n:"PtgRefErr",f:Ox},43:{n:"PtgAreaErr",f:Jd},44:{n:"PtgRefN",f:lx},45:{n:"PtgAreaN",f:Zd},46:{n:"PtgMemAreaN",f:jx},47:{n:"PtgMemNoMemN",f:Kx},57:{n:"PtgNameX",f:Ax},58:{n:"PtgRef3d",f:ox},59:{n:"PtgArea3d",f:Yd},60:{n:"PtgRefErr3d",f:Dx},61:{n:"PtgAreaErr3d",f:qd},255:{}},Jx={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},qx={1:{n:"PtgElfLel",f:Uf},2:{n:"PtgElfRw",f:$x},3:{n:"PtgElfCol",f:Nx},6:{n:"PtgElfRwV",f:Wx},7:{n:"PtgElfColV",f:bx},10:{n:"PtgElfRadical",f:Mx},11:{n:"PtgElfRadicalS",f:Ux},13:{n:"PtgElfColS",f:Lx},15:{n:"PtgElfColSV",f:Px},16:{n:"PtgElfRadicalLel",f:Bx},25:{n:"PtgList",f:Vx},29:{n:"PtgSxName",f:Gx},255:{}},Zx={0:{n:"PtgAttrNoop",f:Yx},1:{n:"PtgAttrSemi",f:ix},2:{n:"PtgAttrIf",f:rx},4:{n:"PtgAttrChoose",f:ex},8:{n:"PtgAttrGoto",f:tx},16:{n:"PtgAttrSum",f:dx},32:{n:"PtgAttrBaxcel",f:D0},33:{n:"PtgAttrBaxcel",f:D0},64:{n:"PtgAttrSpace",f:ax},65:{n:"PtgAttrSpaceSemi",f:sx},128:{n:"PtgAttrIfError",f:nx},255:{}};function Qx(e,r,t,n){if(n.biff<8)return Mt(e,r);for(var i=e.l+r,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=wx(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=Tx(e,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=i-e.l,r!==0&&a.push(Mt(e,r)),a}function ep(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=I0[a]||I0[Jx[a]],(a===24||a===25)&&(i=(a===24?qx:Zx)[e[e.l+1]]),!i||!i.f?Mt(e,r):s.push([i.n,i.f(e,r,t)]);return s}function tp(e){for(var r=[],t=0;t<e.length;++t){for(var n=e[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var rp={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function np(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function $f(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(t.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function k0(e,r,t){var n=$f(e,r,t);return n=="#REF"?n:np(n,t)}function Hr(e,r,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],l,o,c,u=0,h=0,x,v="";if(!e[0]||!e[0][0])return"";for(var d=-1,m="",S=0,F=e[0].length;S<F;++S){var y=e[0][S];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=f.pop(),o=f.pop(),d>=0){switch(e[0][d][1][0]){case 0:m=Pe(" ",e[0][d][1][1]);break;case 1:m=Pe("\r",e[0][d][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}o=o+m,d=-1}f.push(o+rp[y[0]]+l);break;case"PtgIsect":l=f.pop(),o=f.pop(),f.push(o+" "+l);break;case"PtgUnion":l=f.pop(),o=f.pop(),f.push(o+","+l);break;case"PtgRange":l=f.pop(),o=f.pop(),f.push(o+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=fn(y[1][1],s,i),f.push(ln(c,a));break;case"PtgRefN":c=t?fn(y[1][1],t,i):y[1][1],f.push(ln(c,a));break;case"PtgRef3d":u=y[1][1],c=fn(y[1][2],s,i),v=k0(n,u,i),f.push(v+"!"+ln(c,a));break;case"PtgFunc":case"PtgFuncVar":var D=y[1][0],G=y[1][1];D||(D=0),D&=127;var Q=D==0?[]:f.slice(-D);f.length-=D,G==="User"&&(G=Q.shift()),f.push(G+"("+Q.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(y[1]);break;case"PtgAreaN":x=p0(y[1][1],t?{s:t}:s,i),f.push(ki(x,i));break;case"PtgArea":x=p0(y[1][1],s,i),f.push(ki(x,i));break;case"PtgArea3d":u=y[1][1],x=y[1][2],v=k0(n,u,i),f.push(v+"!"+ki(x,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=y[1][2];var I=(n.names||[])[h-1]||(n[0]||[])[h],V=I?I.Name:"SH33TJSNAME"+String(h);V&&V.slice(0,6)=="_xlfn."&&!i.xlfn&&(V=V.slice(6)),f.push(V);break;case"PtgNameX":var L=y[1][1];h=y[1][2];var M;if(i.biff<=5)L<0&&(L=-L),n[L]&&(M=n[L][h]);else{var W="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][h]&&n[L][h].itab>0&&(W=n.SheetNames[n[L][h].itab-1]+"!"):W=n.SheetNames[h-1]+"!"),n[L]&&n[L][h])W+=n[L][h].Name;else if(n[0]&&n[0][h])W+=n[0][h].Name;else{var j=($f(n,L,i)||"").split(";;");j[h-1]?W=j[h-1]:W+="SH33TJSERRX"}f.push(W);break}M||(M={Name:"SH33TJSERRY"}),f.push(M.Name);break;case"PtgParen":var Y="(",ue=")";if(d>=0){switch(m="",e[0][d][1][0]){case 2:Y=Pe(" ",e[0][d][1][1])+Y;break;case 3:Y=Pe("\r",e[0][d][1][1])+Y;break;case 4:ue=Pe(" ",e[0][d][1][1])+ue;break;case 5:ue=Pe("\r",e[0][d][1][1])+ue;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}d=-1}f.push(Y+f.pop()+ue);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var oe={c:t.c,r:t.r};if(n.sharedf[ye(c)]){var de=n.sharedf[ye(c)];f.push(Hr(de,s,oe,n,i))}else{var xe=!1;for(l=0;l!=n.arrayf.length;++l)if(o=n.arrayf[l],!(c.c<o[0].s.c||c.c>o[0].e.c)&&!(c.r<o[0].s.r||c.r>o[0].e.r)){f.push(Hr(o[1],s,oe,n,i)),xe=!0;break}xe||f.push(y[1])}break;case"PtgArray":f.push("{"+tp(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":d=S;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var lt=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&d>=0&&lt.indexOf(e[0][S][0])==-1){y=e[0][d];var Be=!0;switch(y[1][0]){case 4:Be=!1;case 0:m=Pe(" ",y[1][1]);break;case 5:Be=!1;case 1:m=Pe("\r",y[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((Be?m:"")+f.pop()+(Be?"":m)),d=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return f[0]}function ip(e){if(e==null){var r=B(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Er(e);return Er(0)}function ap(e,r,t,n,i){var a=Tr(r,t,i),s=ip(e.v),f=B(6),l=33;f.write_shift(2,l),f.write_shift(4,0);for(var o=B(e.bf.length),c=0;c<e.bf.length;++c)o[c]=e.bf[c];var u=Ye([a,s,f,o]);return u}function mi(e,r,t){var n=e.read_shift(4),i=ep(e,n,t),a=e.read_shift(4),s=a>0?Qx(e,a,i,t):null;return[i,s]}var sp=mi,gi=mi,fp=mi,lp=mi,op={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Wf={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},cp={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function up(e){var r="of:="+e.replace(wa,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function hp(e){return e.replace(/\./,"!")}var on=typeof Map<"u";function ya(e,r,t){var n=0,i=e.length;if(t){if(on?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=on?t.get(r):t[r];n<a.length;++n)if(e[a[n]].t===r)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===r)return e.Count++,n;return e[i]={t:r},e.Count++,e.Unique++,t&&(on?(t.has(r)||t.set(r,[]),t.get(r).push(i)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(i))),i}function _i(e,r){var t={min:e+1,max:e+1},n=-1;return r.MDW&&(zt=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?n=ei(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=zi(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function Hf(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function cr(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],i=60,a=e.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){bs(r.z,i),t.ssf[i]=r.z,t.revssf[r.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function dp(e,r,t){if(e&&e["!ref"]){var n=Ie(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function xp(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+$e(e[t])+'"/>';return r+"</mergeCells>"}function pp(e,r,t,n,i){var a=!1,s={},f=null;if(n.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{r.Workbook&&(l=r.Workbook.Sheets[t].CodeName||l)}catch{}a=!0,s.codeName=Ht(Ae(l))}if(e&&e["!outline"]){var o={summaryBelow:1,summaryRight:1};e["!outline"].above&&(o.summaryBelow=0),e["!outline"].left&&(o.summaryRight=0),f=(f||"")+q("outlinePr",null,o)}!a&&!f||(i[i.length]=q("sheetPr",f,s))}var vp=["objects","scenarios","selectLockedCells","selectUnlockedCells"],mp=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function gp(e){var r={sheet:1};return vp.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),mp.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=yf(e.password).toString(16).toUpperCase()),q("sheetProtection",null,r)}function _p(e){return Hf(e),q("pageMargins",null,e)}function Ep(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=q("col",null,_i(i,n)));return t[t.length]="</cols>",t.join("")}function Tp(e,r,t,n){var i=typeof e.ref=="string"?e.ref:$e(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=_t(i);s.s.r==s.e.r&&(s.e.r=_t(r["!ref"]).e.r,i=$e(s));for(var f=0;f<a.length;++f){var l=a[f];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+t.SheetNames[n]+"'!"+i;break}}return f==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),q("autoFilter",null,{ref:i})}function wp(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),q("sheetViews",q("sheetView",null,i),{})}function Sp(e,r,t,n){if(e.c&&t["!comments"].push([r,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Tn[e.v];break;case"d":n&&n.cellDates?i=st(e.v,-1).toISOString():(e=ht(e),e.t="n",i=""+(e.v=ut(st(e.v)))),typeof e.z>"u"&&(e.z=be[14]);break;default:i=e.v;break}var f=Je("v",Ae(i)),l={r},o=cr(n.cellXfs,e,n);switch(o!==0&&(l.s=o),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=Je("v",""+ya(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=q("f",Ae(e.f),c)+(e.v!=null?f:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(l.cm=1),q("c",f,l)}function Ap(e,r,t,n){var i=[],a=[],s=Ie(e["!ref"]),f="",l,o="",c=[],u=0,h=0,x=e["!rows"],v=Array.isArray(e),d={r:o},m,S=-1;for(h=s.s.c;h<=s.e.c;++h)c[h]=tt(h);for(u=s.s.r;u<=s.e.r;++u){for(a=[],o=qe(u),h=s.s.c;h<=s.e.c;++h){l=c[h]+o;var F=v?(e[u]||[])[h]:e[l];F!==void 0&&(f=Sp(F,l,e,r))!=null&&a.push(f)}(a.length>0||x&&x[u])&&(d={r:o},x&&x[u]&&(m=x[u],m.hidden&&(d.hidden=1),S=-1,m.hpx?S=ti(m.hpx):m.hpt&&(S=m.hpt),S>-1&&(d.ht=S,d.customHeight=1),m.level&&(d.outlineLevel=m.level)),i[i.length]=q("row",a.join(""),d))}if(x)for(;u<x.length;++u)x&&x[u]&&(d={r:u+1},m=x[u],m.hidden&&(d.hidden=1),S=-1,m.hpx?S=ti(m.hpx):m.hpt&&(S=m.hpt),S>-1&&(d.ht=S,d.customHeight=1),m.level&&(d.outlineLevel=m.level),i[i.length]=q("row","",d));return i.join("")}function Vf(e,r,t,n){var i=[We,q("worksheet",null,{xmlns:jr[0],"xmlns:r":Ve.r})],a=t.SheetNames[e],s=0,f="",l=t.Sheets[a];l==null&&(l={});var o=l["!ref"]||"A1",c=Ie(o);if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),o=$e(c)}n||(n={}),l["!comments"]=[];var u=[];pp(l,t,e,r,i),i[i.length]=q("dimension",null,{ref:o}),i[i.length]=wp(l,r,e,t),r.sheetFormat&&(i[i.length]=q("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=Ep(l,l["!cols"])),i[s=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(f=Ap(l,r),f.length>0&&(i[i.length]=f)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),l["!protect"]&&(i[i.length]=gp(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=Tp(l["!autofilter"],l,t,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=xp(l["!merges"]));var h=-1,x,v=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(d){d[1].Target&&(x={ref:d[0]},d[1].Target.charAt(0)!="#"&&(v=we(n,-1,Ae(d[1].Target).replace(/#.*$/,""),me.HLINK),x["r:id"]="rId"+v),(h=d[1].Target.indexOf("#"))>-1&&(x.location=Ae(d[1].Target.slice(h+1))),d[1].Tooltip&&(x.tooltip=Ae(d[1].Tooltip)),i[i.length]=q("hyperlink",null,x))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=_p(l["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=Je("ignoredErrors",q("ignoredError",null,{numberStoredAsText:1,sqref:o}))),u.length>0&&(v=we(n,-1,"../drawings/drawing"+(e+1)+".xml",me.DRAW),i[i.length]=q("drawing",null,{"r:id":"rId"+v}),l["!drawing"]=u),l["!comments"].length>0&&(v=we(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",me.VML),i[i.length]=q("legacyDrawing",null,{"r:id":"rId"+v}),l["!legacy"]=v),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function yp(e,r){var t={},n=e.l+r;t.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function Fp(e,r,t){var n=B(145),i=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=ti(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,l=n.l;n.l+=4;for(var o={r:e,c:0},c=0;c<16;++c)if(!(r.s.c>c+1<<10||r.e.c<c<<10)){for(var u=-1,h=-1,x=c<<10;x<c+1<<10;++x){o.c=x;var v=Array.isArray(t)?(t[o.r]||[])[o.c]:t[ye(o)];v&&(u<0&&(u=x),h=x)}u<0||(++f,n.write_shift(4,u),n.write_shift(4,h))}var d=n.l;return n.l=l,n.write_shift(4,f),n.l=d,n.length>n.l?n.slice(0,n.l):n}function Cp(e,r,t,n){var i=Fp(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&X(e,0,i)}var Op=Cr,Dp=Yr;function Ip(){}function kp(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=Wh(e),t}function Rp(e,r,t){t==null&&(t=B(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return qn({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),nf(e,t),t.slice(0,t.l)}function Np(e){var r=At(e);return[r]}function Lp(e,r,t){return t==null&&(t=B(8)),Ar(r,t)}function Pp(e){var r=yr(e);return[r]}function bp(e,r,t){return t==null&&(t=B(4)),Fr(r,t)}function Mp(e){var r=At(e),t=e.read_shift(1);return[r,t,"b"]}function Bp(e,r,t){return t==null&&(t=B(9)),Ar(r,t),t.write_shift(1,e.v?1:0),t}function Up(e){var r=yr(e),t=e.read_shift(1);return[r,t,"b"]}function $p(e,r,t){return t==null&&(t=B(5)),Fr(r,t),t.write_shift(1,e.v?1:0),t}function Wp(e){var r=At(e),t=e.read_shift(1);return[r,t,"e"]}function Hp(e,r,t){return t==null&&(t=B(9)),Ar(r,t),t.write_shift(1,e.v),t}function Vp(e){var r=yr(e),t=e.read_shift(1);return[r,t,"e"]}function Gp(e,r,t){return t==null&&(t=B(8)),Fr(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function Xp(e){var r=At(e),t=e.read_shift(4);return[r,t,"s"]}function zp(e,r,t){return t==null&&(t=B(12)),Ar(r,t),t.write_shift(4,r.v),t}function jp(e){var r=yr(e),t=e.read_shift(4);return[r,t,"s"]}function Kp(e,r,t){return t==null&&(t=B(8)),Fr(r,t),t.write_shift(4,r.v),t}function Yp(e){var r=At(e),t=Jr(e);return[r,t,"n"]}function Jp(e,r,t){return t==null&&(t=B(16)),Ar(r,t),Er(e.v,t),t}function qp(e){var r=yr(e),t=Jr(e);return[r,t,"n"]}function Zp(e,r,t){return t==null&&(t=B(12)),Fr(r,t),Er(e.v,t),t}function Qp(e){var r=At(e),t=af(e);return[r,t,"n"]}function e2(e,r,t){return t==null&&(t=B(12)),Ar(r,t),sf(e.v,t),t}function t2(e){var r=yr(e),t=af(e);return[r,t,"n"]}function r2(e,r,t){return t==null&&(t=B(8)),Fr(r,t),sf(e.v,t),t}function n2(e){var r=At(e),t=ma(e);return[r,t,"is"]}function i2(e){var r=At(e),t=rt(e);return[r,t,"str"]}function a2(e,r,t){return t==null&&(t=B(12+4*e.v.length)),Ar(r,t),Xe(e.v,t),t.length>t.l?t.slice(0,t.l):t}function s2(e){var r=yr(e),t=rt(e);return[r,t,"str"]}function f2(e,r,t){return t==null&&(t=B(8+4*e.v.length)),Fr(r,t),Xe(e.v,t),t.length>t.l?t.slice(0,t.l):t}function l2(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function o2(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function c2(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=Jr(e),s=[i,a,"n"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function u2(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=rt(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}var h2=Cr,d2=Yr;function x2(e,r){return r==null&&(r=B(4)),r.write_shift(4,e),r}function p2(e,r){var t=e.l+r,n=Cr(e),i=ga(e),a=rt(e),s=rt(e),f=rt(e);e.l=t;var l={rfx:n,relId:i,loc:a,display:f};return s&&(l.Tooltip=s),l}function v2(e,r){var t=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Yr({s:Ge(e[0]),e:Ge(e[0])},t),_a("rId"+r,t);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return Xe(i||"",t),Xe(e[1].Tooltip||"",t),Xe("",t),t.slice(0,t.l)}function m2(){}function g2(e,r,t){var n=e.l+r,i=ff(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var f=sp(e,n-e.l,t);s[1]=f}else e.l=n;return s}function _2(e,r,t){var n=e.l+r,i=Cr(e),a=[i];if(t.cellFormula){var s=lp(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function E2(e,r,t){t==null&&(t=B(18));var n=_i(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),t.write_shift(2,i),t}var Gf=["left","right","top","bottom","header","footer"];function T2(e){var r={};return Gf.forEach(function(t){r[t]=Jr(e)}),r}function w2(e,r){return r==null&&(r=B(6*8)),Hf(e),Gf.forEach(function(t){Er(e[t],r)}),r}function S2(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function A2(e,r,t){t==null&&(t=B(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function y2(e){var r=B(24);return r.write_shift(4,4),r.write_shift(4,1),Yr(e,r),r}function F2(e,r){return r==null&&(r=B(16*4+2)),r.write_shift(2,e.password?yf(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function C2(){}function O2(){}function D2(e,r,t,n,i,a,s){if(r.v===void 0)return!1;var f="";switch(r.t){case"b":f=r.v?"1":"0";break;case"d":r=ht(r),r.z=r.z||be[14],r.v=ut(st(r.v)),r.t="n";break;case"n":case"e":f=""+r.v;break;default:f=r.v;break}var l={r:t,c:n};switch(l.s=cr(i.cellXfs,r,i),r.l&&a["!links"].push([ye(l),r.l]),r.c&&a["!comments"].push([ye(l),r.c]),r.t){case"s":case"str":return i.bookSST?(f=ya(i.Strings,r.v,i.revStrings),l.t="s",l.v=f,s?X(e,18,Kp(r,l)):X(e,7,zp(r,l))):(l.t="str",s?X(e,17,f2(r,l)):X(e,6,a2(r,l))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?X(e,13,r2(r,l)):X(e,2,e2(r,l)):s?X(e,16,Zp(r,l)):X(e,5,Jp(r,l)),!0;case"b":return l.t="b",s?X(e,15,$p(r,l)):X(e,4,Bp(r,l)),!0;case"e":return l.t="e",s?X(e,14,Gp(r,l)):X(e,3,Hp(r,l)),!0}return s?X(e,12,bp(r,l)):X(e,1,Lp(r,l)),!0}function I2(e,r,t,n){var i=Ie(r["!ref"]||"A1"),a,s="",f=[];X(e,145);var l=Array.isArray(r),o=i.e.r;r["!rows"]&&(o=Math.max(i.e.r,r["!rows"].length-1));for(var c=i.s.r;c<=o;++c){s=qe(c),Cp(e,r,i,c);var u=!1;if(c<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){c===i.s.r&&(f[h]=tt(h)),a=f[h]+s;var x=l?(r[c]||[])[h]:r[a];if(!x){u=!1;continue}u=D2(e,x,c,h,n,r,u)}}X(e,146)}function k2(e,r){!r||!r["!merges"]||(X(e,177,x2(r["!merges"].length)),r["!merges"].forEach(function(t){X(e,176,d2(t))}),X(e,178))}function R2(e,r){!r||!r["!cols"]||(X(e,390),r["!cols"].forEach(function(t,n){t&&X(e,60,E2(n,t))}),X(e,391))}function N2(e,r){!r||!r["!ref"]||(X(e,648),X(e,649,y2(Ie(r["!ref"]))),X(e,650))}function L2(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=we(t,-1,n[1].Target.replace(/#.*$/,""),me.HLINK);X(e,494,v2(n,i))}}),delete r["!links"]}function P2(e,r,t,n){if(r["!comments"].length>0){var i=we(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",me.VML);X(e,551,_a("rId"+i)),r["!legacy"]=i}}function b2(e,r,t,n){if(r["!autofilter"]){var i=r["!autofilter"],a=typeof i.ref=="string"?i.ref:$e(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,f=_t(a);f.s.r==f.e.r&&(f.e.r=_t(r["!ref"]).e.r,a=$e(f));for(var l=0;l<s.length;++l){var o=s[l];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==n){o.Ref="'"+t.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+a}),X(e,161,Yr(Ie(a))),X(e,162)}}function M2(e,r,t){X(e,133),X(e,137,A2(r,t)),X(e,138),X(e,134)}function B2(e,r){r["!protect"]&&X(e,535,F2(r["!protect"]))}function U2(e,r,t,n){var i=ct(),a=t.SheetNames[e],s=t.Sheets[a]||{},f=a;try{t&&t.Workbook&&(f=t.Workbook.Sheets[e].CodeName||f)}catch{}var l=Ie(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],X(i,129),(t.vbaraw||s["!outline"])&&X(i,147,Rp(f,s["!outline"])),X(i,148,Dp(l)),M2(i,s,t.Workbook),R2(i,s),I2(i,s,e,r),B2(i,s),b2(i,s,t,e),k2(i,s),L2(i,s,n),s["!margins"]&&X(i,476,w2(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&N2(i,s),P2(i,s,e,n),X(i,130),i.end()}function $2(e,r){e.l+=10;var t=rt(e);return{name:t}}var W2=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function H2(e){return!e.Workbook||!e.Workbook.WBProps?"false":_h(e.Workbook.WBProps.date1904)?"true":"false"}var V2="][*?/\\".split("");function Xf(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return V2.forEach(function(n){if(e.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function G2(e,r,t){e.forEach(function(n,i){Xf(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=r&&r[i]&&r[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function X2(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];G2(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)dp(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}function zf(e){var r=[We];r[r.length]=q("workbook",null,{xmlns:jr[0],"xmlns:r":Ve.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(W2.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=q("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),r[r.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:Ae(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=q("sheet",null,s)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var l={name:f.Name};f.Comment&&(l.comment=f.Comment),f.Sheet!=null&&(l.localSheetId=""+f.Sheet),f.Hidden&&(l.hidden="1"),f.Ref&&(r[r.length]=q("definedName",Ae(f.Ref),l))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function z2(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Xi(e),t.name=rt(e),t}function j2(e,r){return r||(r=B(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),_a(e.strRelID,r),Xe(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function K2(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?rt(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function Y2(e,r){r||(r=B(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),nf(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function J2(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Hh(e),s=fp(e,0,t),f=ga(e);e.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),f&&(l.Comment=f),l}function q2(e,r){X(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};X(e,156,j2(i))}X(e,144)}function Z2(e,r){r||(r=B(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return Xe("SheetJS",r),Xe(Gn.version,r),Xe(Gn.version,r),Xe("7262",r),r.length>r.l?r.slice(0,r.l):r}function Q2(e,r){r||(r=B(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function ev(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(X(e,135),X(e,158,Q2(i)),X(e,136))}}function tv(e,r){var t=ct();return X(t,131),X(t,128,Z2()),X(t,153,Y2(e.Workbook&&e.Workbook.WBProps||null)),ev(t,e),q2(t,e),X(t,132),t.end()}function rv(e,r,t){return(r.slice(-4)===".bin"?tv:zf)(e)}function nv(e,r,t,n,i){return(r.slice(-4)===".bin"?U2:Vf)(e,t,n,i)}function iv(e,r,t){return(r.slice(-4)===".bin"?wd:Of)(e,t)}function av(e,r,t){return(r.slice(-4)===".bin"?Y1:Af)(e,t)}function sv(e,r,t){return(r.slice(-4)===".bin"?Bd:Nf)(e)}function fv(e){return(e.slice(-4)===".bin"?Id:kf)()}function lv(e,r){var t=[];return e.Props&&t.push(i1(e.Props,r)),e.Custprops&&t.push(a1(e.Props,e.Custprops)),t.join("")}function ov(){return""}function cv(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var a=[];a.push(q("NumberFormat",null,{"ss:Format":Ae(be[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(q("Style",a.join(""),s))}),q("Styles",t.join(""))}function jf(e){return q("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Sa(e.Ref,{r:0,c:0})})}function uv(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(jf(i)))}return q("Names",t.join(""))}function hv(e,r,t,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var f=i[s];f.Sheet==t&&(f.Name.match(/^_xlfn\./)||a.push(jf(f)))}return a.join("")}function dv(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(q("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(q("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(q("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)i.push(q("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Je("ProtectContents","True")),e["!protect"].objects&&i.push(Je("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Je("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Je("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Je("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":q("WorksheetOptions",i.join(""),{xmlns:mt.x})}function xv(e){return e.map(function(r){var t=gh(r.t||""),n=q("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return q("Comment",n,{"ss:Author":r.a})}).join("")}function pv(e,r,t,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+Ae(Sa(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var l=Ge(e.F.slice(r.length+1));f["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=Ae(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=Ae(e.l.Tooltip))),t["!merges"])for(var o=t["!merges"],c=0;c!=o.length;++c)o[c].s.c!=s.c||o[c].s.r!=s.r||(o[c].e.c>o[c].s.c&&(f["ss:MergeAcross"]=o[c].e.c-o[c].s.c),o[c].e.r>o[c].s.r&&(f["ss:MergeDown"]=o[c].e.r-o[c].s.r));var u="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":u="Number",h=String(e.v);break;case"b":u="Boolean",h=e.v?"1":"0";break;case"e":u="Error",h=Tn[e.v];break;case"d":u="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||be[14]);break;case"s":u="String",h=mh(e.v||"");break}var x=cr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+x),f["ss:Index"]=s.c+1;var v=e.v!=null?h:"",d=e.t=="z"?"":'<Data ss:Type="'+u+'">'+v+"</Data>";return(e.c||[]).length>0&&(d+=xv(e.c)),q("Cell",d,f)}function vv(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=Cf(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function mv(e,r,t,n){if(!e["!ref"])return"";var i=Ie(e["!ref"]),a=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(m,S){Ta(m);var F=!!m.width,y=_i(S,m),D={"ss:Index":S+1};F&&(D["ss:Width"]=Qn(y.width)),m.hidden&&(D["ss:Hidden"]="1"),f.push(q("Column",null,D))});for(var l=Array.isArray(e),o=i.s.r;o<=i.e.r;++o){for(var c=[vv(o,(e["!rows"]||[])[o])],u=i.s.c;u<=i.e.c;++u){var h=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>u)&&!(a[s].s.r>o)&&!(a[s].e.c<u)&&!(a[s].e.r<o)){(a[s].s.c!=u||a[s].s.r!=o)&&(h=!0);break}if(!h){var x={r:o,c:u},v=ye(x),d=l?(e[o]||[])[u]:e[v];c.push(pv(d,v,e,r,t,n,x))}}c.push("</Row>"),c.length>2&&f.push(c.join(""))}return f.join("")}function gv(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?hv(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?mv(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(dv(a,r,e,t)),n.join("")}function _v(e,r){r||(r={}),e.SSF||(e.SSF=ht(be)),e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],cr(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(lv(e,r)),t.push(ov()),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(q("Worksheet",gv(n,r,e),{"ss:Name":Ae(e.SheetNames[n])}));return t[2]=cv(e,r),t[3]=uv(e),We+q("Workbook",t.join(""),{xmlns:mt.ss,"xmlns:o":mt.o,"xmlns:x":mt.x,"xmlns:ss":mt.ss,"xmlns:dt":mt.dt,"xmlns:html":mt.html})}var Li={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Ev(e,r){var t=[],n=[],i=[],a=0,s,f=i0(m0,"n"),l=i0(g0,"n");if(e.Props)for(s=Ze(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(f,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=Ze(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(f,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var o=[];for(a=0;a<i.length;++a)mf.indexOf(i[a][0])>-1||xf.indexOf(i[a][0])>-1||i[a][1]!=null&&o.push(i[a]);n.length&&Fe.utils.cfb_add(r,"/SummaryInformation",S0(n,Li.SI,l,g0)),(t.length||o.length)&&Fe.utils.cfb_add(r,"/DocumentSummaryInformation",S0(t,Li.DSI,f,m0,o.length?o:null,Li.UDI))}function Tv(e,r){var t=r||{},n=Fe.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Fe.utils.cfb_add(n,i,Kf(e,t)),t.biff==8&&(e.Props||e.Custprops)&&Ev(e,n),t.biff==8&&e.vbaraw&&Ud(n,Fe.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var wv={0:{f:yp},1:{f:Np},2:{f:Qp},3:{f:Wp},4:{f:Mp},5:{f:Yp},6:{f:i2},7:{f:Xp},8:{f:u2},9:{f:c2},10:{f:l2},11:{f:o2},12:{f:Pp},13:{f:t2},14:{f:Vp},15:{f:Up},16:{f:qp},17:{f:s2},18:{f:jp},19:{f:ma},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:J2},40:{},42:{},43:{f:id},44:{f:rd},45:{f:fd},46:{f:od},47:{f:ld},48:{},49:{f:Ph},50:{},51:{f:yd},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:b1},62:{f:n2},63:{f:kd},64:{f:C2},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Mt,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:S2},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:kp},148:{f:Op,p:16},151:{f:m2},152:{},153:{f:K2},154:{},155:{},156:{f:z2},157:{},158:{},159:{T:1,f:z1},160:{T:-1},161:{T:1,f:Cr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:h2},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Sd},336:{T:-1},337:{f:Od,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Xi},357:{},358:{},359:{},360:{T:1},361:{},362:{f:I1},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:g2},427:{f:_2},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:T2},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Ip},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:p2},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Xi},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bd},633:{T:1},634:{T:-1},635:{T:1,f:Ld},636:{T:-1},637:{f:Uh},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:$2},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:O2},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Z(e,r,t,n){var i=r;if(!isNaN(i)){var a=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&xa(t)&&e.push(t)}}function Sv(e,r,t,n){var i=n||(t||[]).length||0;if(i<=8224)return Z(e,r,t,i);var a=r;if(!isNaN(a)){for(var s=t.parts||[],f=0,l=0,o=0;o+(s[f]||8224)<=8224;)o+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,o),e.push(t.slice(l,l+o)),l+=o;l<i;){for(c=e.next(4),c.write_shift(2,60),o=0;o+(s[f]||8224)<=8224;)o+=s[f]||8224,f++;c.write_shift(2,o),e.push(t.slice(l,l+o)),l+=o}}}function Sn(e,r,t){return e||(e=B(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function Av(e,r,t,n){var i=B(9);return Sn(i,e,r),_f(t,n||"b",i),i}function yv(e,r,t){var n=B(8+2*t.length);return Sn(n,e,r),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Fv(e,r,t,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?ut(st(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?Z(e,2,$1(t,n,i)):Z(e,3,U1(t,n,i));return;case"b":case"e":Z(e,5,Av(t,n,r.v,r.t));return;case"s":case"str":Z(e,4,yv(t,n,(r.v||"").slice(0,255)));return}Z(e,1,Sn(null,t,n))}function Cv(e,r,t,n){var i=Array.isArray(r),a=Ie(r["!ref"]||"A1"),s,f="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=$e(a)}for(var o=a.s.r;o<=a.e.r;++o){f=qe(o);for(var c=a.s.c;c<=a.e.c;++c){o===a.s.r&&(l[c]=tt(c)),s=l[c]+f;var u=i?(r[o]||[])[c]:r[s];u&&Fv(e,u,o,c)}}}function Ov(e,r){for(var t=r||{},n=ct(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Z(n,t.biff==4?1033:t.biff==3?521:9,Ea(e,16,t)),Cv(n,e.Sheets[e.SheetNames[i]],i,t),Z(n,10),n.end()}function Dv(e,r,t){Z(e,49,w1({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function Iv(e,r,t){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Z(e,1054,y1(i,r[i],t))})}function kv(e,r){var t=B(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Z(e,2151,t),t=B(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),wf(Ie(r["!ref"]||"A1"),t),t.write_shift(4,4),Z(e,2152,t)}function Rv(e,r){for(var t=0;t<16;++t)Z(e,224,y0({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){Z(e,224,y0(n,0,r))})}function Nv(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];Z(e,440,N1(n)),n[1].Tooltip&&Z(e,2048,L1(n))}delete r["!links"]}function Lv(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&Z(e,125,M1(_i(i,n),i))})}}function Pv(e,r,t,n,i){var a=16+cr(i.cellXfs,r,i);if(r.v==null&&!r.bf){Z(e,513,Tr(t,n,a));return}if(r.bf)Z(e,6,ap(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?ut(st(r.v)):r.v;Z(e,515,D1(t,n,s,a));break;case"b":case"e":Z(e,517,O1(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var f=ya(i.Strings,r.v,i.revStrings);Z(e,253,S1(t,n,f,a))}else Z(e,516,A1(t,n,(r.v||"").slice(0,255),a,i));break;default:Z(e,513,Tr(t,n,a))}}function bv(e,r,t){var n=ct(),i=t.SheetNames[e],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},f=(s.Sheets||[])[e]||{},l=Array.isArray(a),o=r.biff==8,c,u="",h=[],x=Ie(a["!ref"]||"A1"),v=o?65536:16384;if(x.e.c>255||x.e.r>=v){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,v-1)}Z(n,2057,Ea(t,16,r)),Z(n,13,St(1)),Z(n,12,St(100)),Z(n,15,at(!0)),Z(n,17,at(!1)),Z(n,16,Er(.001)),Z(n,95,at(!0)),Z(n,42,at(!1)),Z(n,43,at(!1)),Z(n,130,St(1)),Z(n,128,C1([0,0])),Z(n,131,at(!1)),Z(n,132,at(!1)),o&&Lv(n,a["!cols"]),Z(n,512,F1(x,r)),o&&(a["!links"]=[]);for(var d=x.s.r;d<=x.e.r;++d){u=qe(d);for(var m=x.s.c;m<=x.e.c;++m){d===x.s.r&&(h[m]=tt(m)),c=h[m]+u;var S=l?(a[d]||[])[m]:a[c];S&&(Pv(n,S,d,m,r),o&&S.l&&a["!links"].push([c,S.l]))}}var F=f.CodeName||f.name||i;return o&&Z(n,574,T1((s.Views||[])[0])),o&&(a["!merges"]||[]).length&&Z(n,229,R1(a["!merges"])),o&&Nv(n,a),Z(n,442,Tf(F)),o&&kv(n,a),Z(n,10),n.end()}function Mv(e,r,t){var n=ct(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},f=t.biff==8,l=t.biff==5;if(Z(n,2057,Ea(e,5,t)),t.bookType=="xla"&&Z(n,135),Z(n,225,f?St(1200):null),Z(n,193,l1(2)),l&&Z(n,191),l&&Z(n,192),Z(n,226),Z(n,92,m1("SheetJS",t)),Z(n,66,St(f?1200:1252)),f&&Z(n,353,St(0)),f&&Z(n,448),Z(n,317,B1(e.SheetNames.length)),f&&e.vbaraw&&Z(n,211),f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";Z(n,442,Tf(o))}Z(n,156,St(17)),Z(n,25,at(!1)),Z(n,18,at(!1)),Z(n,19,St(0)),f&&Z(n,431,at(!1)),f&&Z(n,444,St(0)),Z(n,61,E1()),Z(n,64,at(!1)),Z(n,141,St(0)),Z(n,34,at(H2(e)=="true")),Z(n,14,at(!0)),f&&Z(n,439,at(!1)),Z(n,218,St(0)),Dv(n,e,t),Iv(n,e.SSF,t),Rv(n,t),f&&Z(n,352,at(!1));var c=n.end(),u=ct();f&&Z(u,140,P1()),f&&t.Strings&&Sv(u,252,_1(t.Strings)),Z(u,10);var h=u.end(),x=ct(),v=0,d=0;for(d=0;d<e.SheetNames.length;++d)v+=(f?12:11)+(f?2:1)*e.SheetNames[d].length;var m=c.length+v+h.length;for(d=0;d<e.SheetNames.length;++d){var S=a[d]||{};Z(x,133,g1({pos:m,hs:S.Hidden||0,dt:0,name:e.SheetNames[d]},t)),m+=r[d].length}var F=x.end();if(v!=F.length)throw new Error("BS8 "+v+" != "+F.length);var y=[];return c.length&&y.push(c),F.length&&y.push(F),h.length&&y.push(h),Ye(y)}function Bv(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=ht(be)),e&&e.SSF&&(xi(),di(e.SSF),t.revssf=pi(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Fa(t),t.cellXfs=[],cr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=bv(i,t,e);return n.unshift(Mv(e,n,t)),Ye(n)}function Kf(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=_t(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=r||{};switch(a.biff||2){case 8:case 5:return Bv(e,r);case 4:case 3:case 2:return Ov(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Uv(e,r,t,n){for(var i=e["!merges"]||[],a=[],s=r.s.c;s<=r.e.c;++s){for(var f=0,l=0,o=0;o<i.length;++o)if(!(i[o].s.r>t||i[o].s.c>s)&&!(i[o].e.r<t||i[o].e.c<s)){if(i[o].s.r<t||i[o].s.c<s){f=-1;break}f=i[o].e.r-i[o].s.r+1,l=i[o].e.c-i[o].s.c+1;break}if(!(f<0)){var c=ye({r:t,c:s}),u=n.dense?(e[t]||[])[s]:e[c],h=u&&u.v!=null&&(u.h||vh(u.w||(Yt(u),u.w)||""))||"",x={};f>1&&(x.rowspan=f),l>1&&(x.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":u&&(x["data-t"]=u&&u.t||"z",u.v!=null&&(x["data-v"]=u.v),u.z!=null&&(x["data-z"]=u.z),u.l&&(u.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+u.l.Target+'">'+h+"</a>")),x.id=(n.id||"sjs")+"-"+c,a.push(q("td",h,x))}}var v="<tr>";return v+a.join("")+"</tr>"}var $v='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Wv="</body></html>";function Hv(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function Yf(e,r){var t=r||{},n=t.header!=null?t.header:$v,i=t.footer!=null?t.footer:Wv,a=[n],s=_t(e["!ref"]);t.dense=Array.isArray(e),a.push(Hv(e,s,t));for(var f=s.s.r;f<=s.e.r;++f)a.push(Uv(e,s,f,t));return a.push("</table>"+i),a.join("")}function Jf(e,r,t){var n=t||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Ge(n.origin):n.origin;i=s.r,a=s.c}var f=r.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,f.length),o={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=_t(e["!ref"]);o.s.r=Math.min(o.s.r,c.s.r),o.s.c=Math.min(o.s.c,c.s.c),o.e.r=Math.max(o.e.r,c.e.r),o.e.c=Math.max(o.e.c,c.e.c),i==-1&&(o.e.r=i=c.e.r+1)}var u=[],h=0,x=e["!rows"]||(e["!rows"]=[]),v=0,d=0,m=0,S=0,F=0,y=0;for(e["!cols"]||(e["!cols"]=[]);v<f.length&&d<l;++v){var D=f[v];if(R0(D)){if(n.display)continue;x[d]={hidden:!0}}var G=D.children;for(m=S=0;m<G.length;++m){var Q=G[m];if(!(n.display&&R0(Q))){var I=Q.hasAttribute("data-v")?Q.getAttribute("data-v"):Q.hasAttribute("v")?Q.getAttribute("v"):Eh(Q.innerHTML),V=Q.getAttribute("data-z")||Q.getAttribute("z");for(h=0;h<u.length;++h){var L=u[h];L.s.c==S+a&&L.s.r<d+i&&d+i<=L.e.r&&(S=L.e.c+1-a,h=-1)}y=+Q.getAttribute("colspan")||1,((F=+Q.getAttribute("rowspan")||1)>1||y>1)&&u.push({s:{r:d+i,c:S+a},e:{r:d+i+(F||1)-1,c:S+a+(y||1)-1}});var M={t:"s",v:I},W=Q.getAttribute("data-t")||Q.getAttribute("t")||"";I!=null&&(I.length==0?M.t=W||"z":n.raw||I.trim().length==0||W=="s"||(I==="TRUE"?M={t:"b",v:!0}:I==="FALSE"?M={t:"b",v:!1}:isNaN(Xt(I))?isNaN(dn(I).getDate())||(M={t:"d",v:st(I)},n.cellDates||(M={t:"n",v:ut(M.v)}),M.z=n.dateNF||be[14]):M={t:"n",v:Xt(I)})),M.z===void 0&&V!=null&&(M.z=V);var j="",Y=Q.getElementsByTagName("A");if(Y&&Y.length)for(var ue=0;ue<Y.length&&!(Y[ue].hasAttribute("href")&&(j=Y[ue].getAttribute("href"),j.charAt(0)!="#"));++ue);j&&j.charAt(0)!="#"&&(M.l={Target:j}),n.dense?(e[d+i]||(e[d+i]=[]),e[d+i][S+a]=M):e[ye({c:S+a,r:d+i})]=M,o.e.c<S+a&&(o.e.c=S+a),S+=y}}++d}return u.length&&(e["!merges"]=(e["!merges"]||[]).concat(u)),o.e.r=Math.max(o.e.r,d-1+i),e["!ref"]=$e(o),d>=l&&(e["!fullref"]=$e((o.e.r=f.length-v+d-1+i,o))),e}function qf(e,r){var t=r||{},n=t.dense?[]:{};return Jf(n,e,r)}function Vv(e,r){return Sr(qf(e,r),r)}function R0(e){var r="",t=Gv(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function Gv(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Xv=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+xn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return We+r}}(),N0=function(){var e=function(a){return Ae(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
`,t=` <table:covered-table-cell/>
`,n=function(a,s,f){var l=[];l.push(' <table:table table:name="'+Ae(s.SheetNames[f])+`" table:style-name="ta1">
`);var o=0,c=0,u=_t(a["!ref"]||"A1"),h=a["!merges"]||[],x=0,v=Array.isArray(a);if(a["!cols"])for(c=0;c<=u.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+`></table:table-column>
`);var d="",m=a["!rows"]||[];for(o=0;o<u.s.r;++o)d=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+d+`></table:table-row>
`);for(;o<=u.e.r;++o){for(d=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+d+`>
`),c=0;c<u.s.c;++c)l.push(r);for(;c<=u.e.c;++c){var S=!1,F={},y="";for(x=0;x!=h.length;++x)if(!(h[x].s.c>c)&&!(h[x].s.r>o)&&!(h[x].e.c<c)&&!(h[x].e.r<o)){(h[x].s.c!=c||h[x].s.r!=o)&&(S=!0),F["table:number-columns-spanned"]=h[x].e.c-h[x].s.c+1,F["table:number-rows-spanned"]=h[x].e.r-h[x].s.r+1;break}if(S){l.push(t);continue}var D=ye({r:o,c}),G=v?(a[o]||[])[c]:a[D];if(G&&G.f&&(F["table:formula"]=Ae(up(G.f)),G.F&&G.F.slice(0,D.length)==D)){var Q=_t(G.F);F["table:number-matrix-columns-spanned"]=Q.e.c-Q.s.c+1,F["table:number-matrix-rows-spanned"]=Q.e.r-Q.s.r+1}if(!G){l.push(r);continue}switch(G.t){case"b":y=G.v?"TRUE":"FALSE",F["office:value-type"]="boolean",F["office:boolean-value"]=G.v?"true":"false";break;case"n":y=G.w||String(G.v||0),F["office:value-type"]="float",F["office:value"]=G.v||0;break;case"s":case"str":y=G.v==null?"":G.v,F["office:value-type"]="string";break;case"d":y=G.w||st(G.v).toISOString(),F["office:value-type"]="date",F["office:date-value"]=st(G.v).toISOString(),F["table:style-name"]="ce1";break;default:l.push(r);continue}var I=e(y);if(G.l&&G.l.Target){var V=G.l.Target;V=V.charAt(0)=="#"?"#"+hp(V.slice(1)):V,V.charAt(0)!="#"&&!V.match(/^\w+:/)&&(V="../"+V),I=q("text:a",I,{"xlink:href":V.replace(/&/g,"&amp;")})}l.push(" "+q("table:table-cell",q("text:p",I,{}),F)+`
`)}l.push(` </table:table-row>
`)}return l.push(` </table:table>
`),l.join("")},i=function(a,s){a.push(` <office:automatic-styles>
`),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),a.push(` <number:month number:style="long"/>
`),a.push(` <number:text>/</number:text>
`),a.push(` <number:day number:style="long"/>
`),a.push(` <number:text>/</number:text>
`),a.push(` <number:year/>
`),a.push(` </number:date-style>
`);var f=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var c=0;c<o["!cols"].length;++c)if(o["!cols"][c]){var u=o["!cols"][c];if(u.width==null&&u.wpx==null&&u.wch==null)continue;Ta(u),u.ods=f;var h=o["!cols"][c].wpx+"px";a.push(' <style:style style:name="co'+f+`" style:family="table-column">
`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+h+`"/>
`),a.push(` </style:style>
`),++f}}});var l=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var c=0;c<o["!rows"].length;++c)if(o["!rows"][c]){o["!rows"][c].ods=l;var u=o["!rows"][c].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+u+`"/>
`),a.push(` </style:style>
`),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),a.push(` </style:style>
`),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),a.push(` </office:automatic-styles>
`)};return function(s,f){var l=[We],o=xn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=xn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(l.push("<office:document"+o+c+`>
`),l.push(hf().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+o+`>
`),i(l,s),l.push(` <office:body>
`),l.push(` <office:spreadsheet>
`);for(var u=0;u!=s.SheetNames.length;++u)l.push(n(s.Sheets[s.SheetNames[u]],s,u));return l.push(` </office:spreadsheet>
`),l.push(` </office:body>
`),f.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function Zf(e,r){if(r.bookType=="fods")return N0(e,r);var t=ca(),n="",i=[],a=[];return n="mimetype",pe(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",pe(t,n,N0(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",pe(t,n,Xv(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",pe(t,n,We+hf()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",pe(t,n,n1(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",pe(t,n,t1(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ri(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function zv(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ct(Ht(e))}function jv(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n<r.length;++n)if(e[t+n]!=r[n])continue e;return!0}return!1}function ar(e){var r=e.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(r),n=0;return e.forEach(function(i){t.set(i,n),n+=i.length}),t}function Kv(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function pn(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Te(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ur(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function He(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=pn(e,t),a=i&7;i=Math.floor(i/8);var s=0,f;if(i==0)break;switch(a){case 0:{for(var l=t[0];e[t[0]++]>=128;);f=e.slice(l,t[0])}break;case 5:s=4,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=pn(e,t),f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var o={data:f,type:a};r[i]==null?r[i]=[o]:r[i].push(o)}return r}function ze(e){var r=[];return e.forEach(function(t,n){t.forEach(function(i){i.data&&(r.push(Te(n*8+i.type)),i.type==2&&r.push(Te(i.data.length)),r.push(i.data))})}),ar(r)}function yt(e){for(var r,t=[],n=[0];n[0]<e.length;){var i=pn(e,n),a=He(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ur(a[1][0].data),messages:[]};a[2].forEach(function(f){var l=He(f.data),o=Ur(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+o)}),n[0]+=o}),(r=a[3])!=null&&r[0]&&(s.merge=Ur(a[3][0].data)>>>0>0),t.push(s)}return t}function kr(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Te(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Te(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Te(s.data.length)}],n[2].push({data:ze(s.meta),type:2})});var a=ze(n);r.push(Te(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),ar(r)}function Yv(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=pn(r,t),i=[];t[0]<r.length;){var a=r[t[0]]&3;if(a==0){var s=r[t[0]++]>>2;if(s<60)++s;else{var f=s-59;s=r[t[0]],f>1&&(s|=r[t[0]+1]<<8),f>2&&(s|=r[t[0]+2]<<16),f>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=f}i.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var l=0,o=0;if(a==1?(o=(r[t[0]]>>2&7)+4,l=(r[t[0]++]&224)<<3,l|=r[t[0]++]):(o=(r[t[0]++]>>2)+1,a==2?(l=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),i=[ar(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(o>=l)for(i.push(i[0].slice(-l)),o-=l;o>=i[i.length-1].length;)i.push(i[i.length-1]),o-=i[i.length-1].length;i.push(i[0].slice(-l,-l+o))}}var c=ar(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function Ft(e){for(var r=[],t=0;t<e.length;){var n=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(Yv(n,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return ar(r)}function Rr(e){for(var r=[],t=0;t<e.length;){var n=Math.min(e.length-t,268435455),i=new Uint8Array(4);r.push(i);var a=Te(n),s=a.length;r.push(a),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return ar(r)}function Pi(e,r){var t=new Uint8Array(32),n=ri(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,Kv(t,i,e.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t.slice(0,i)}function bi(e,r){var t=new Uint8Array(32),n=ri(t),i=12,a=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),t.slice(0,i)}function Qt(e){var r=He(e);return pn(r[1][0].data)}function Jv(e,r,t){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Ur(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var l=0,o=ri(e[7][0].data),c=0,u=[],h=ri(e[4][0].data),x=0,v=[],d=0;d<r.length;++d){if(r[d]==null){o.setUint16(d*2,65535,!0),h.setUint16(d*2,65535);continue}o.setUint16(d*2,c,!0),h.setUint16(d*2,x,!0);var m,S;switch(typeof r[d]){case"string":m=Pi({t:"s",v:r[d]},t),S=bi({t:"s",v:r[d]},t);break;case"number":m=Pi({t:"n",v:r[d]},t),S=bi({t:"n",v:r[d]},t);break;case"boolean":m=Pi({t:"b",v:r[d]},t),S=bi({t:"b",v:r[d]},t);break;default:throw new Error("Unsupported value "+r[d])}u.push(m),c+=m.length,v.push(S),x+=S.length,++l}for(e[2][0].data=Te(l);d<e[7][0].data.length/2;++d)o.setUint16(d*2,65535,!0),h.setUint16(d*2,65535,!0);return e[6][0].data=ar(u),e[3][0].data=ar(v),l}function qv(e,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=_t(t["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat($e(n)));var a=ni(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(b){return b.forEach(function(O){typeof O=="string"&&s.push(O)})});var f={},l=[],o=Fe.read(r.numbers,{type:"base64"});o.FileIndex.map(function(b,O){return[b,o.FullPaths[O]]}).forEach(function(b){var O=b[0],C=b[1];if(O.type==2&&O.name.match(/\.iwa/)){var z=O.content,le=Ft(z),ce=yt(le);ce.forEach(function(fe){l.push(fe.id),f[fe.id]={deps:[],location:C,type:Ur(fe.messages[0].meta[1][0].data)}})}}),l.sort(function(b,O){return b-O});var c=l.filter(function(b){return b>1}).map(function(b){return[b,Te(b)]});o.FileIndex.map(function(b,O){return[b,o.FullPaths[O]]}).forEach(function(b){var O=b[0];if(b[1],!!O.name.match(/\.iwa/)){var C=yt(Ft(O.content));C.forEach(function(z){z.messages.forEach(function(le){c.forEach(function(ce){z.messages.some(function(fe){return Ur(fe.meta[1][0].data)!=11006&&jv(fe.data,ce[1])})&&f[ce[0]].deps.push(z.id)})})})}});for(var u=Fe.find(o,f[1].location),h=yt(Ft(u.content)),x,v=0;v<h.length;++v){var d=h[v];d.id==1&&(x=d)}var m=Qt(He(x.messages[0].data)[1][0].data);for(u=Fe.find(o,f[m].location),h=yt(Ft(u.content)),v=0;v<h.length;++v)d=h[v],d.id==m&&(x=d);for(m=Qt(He(x.messages[0].data)[2][0].data),u=Fe.find(o,f[m].location),h=yt(Ft(u.content)),v=0;v<h.length;++v)d=h[v],d.id==m&&(x=d);for(m=Qt(He(x.messages[0].data)[2][0].data),u=Fe.find(o,f[m].location),h=yt(Ft(u.content)),v=0;v<h.length;++v)d=h[v],d.id==m&&(x=d);var S=He(x.messages[0].data);{S[6][0].data=Te(n.e.r+1),S[7][0].data=Te(n.e.c+1);var F=Qt(S[46][0].data),y=Fe.find(o,f[F].location),D=yt(Ft(y.content));{for(var G=0;G<D.length&&D[G].id!=F;++G);if(D[G].id!=F)throw"Bad ColumnRowUIDMapArchive";var Q=He(D[G].messages[0].data);Q[1]=[],Q[2]=[],Q[3]=[];for(var I=0;I<=n.e.c;++I){var V=[];V[1]=V[2]=[{type:0,data:Te(I+420690)}],Q[1].push({type:2,data:ze(V)}),Q[2].push({type:0,data:Te(I)}),Q[3].push({type:0,data:Te(I)})}Q[4]=[],Q[5]=[],Q[6]=[];for(var L=0;L<=n.e.r;++L)V=[],V[1]=V[2]=[{type:0,data:Te(L+726270)}],Q[4].push({type:2,data:ze(V)}),Q[5].push({type:0,data:Te(L)}),Q[6].push({type:0,data:Te(L)});D[G].messages[0].data=ze(Q)}y.content=Rr(kr(D)),y.size=y.content.length,delete S[46];var M=He(S[4][0].data);{M[7][0].data=Te(n.e.r+1);var W=He(M[1][0].data),j=Qt(W[2][0].data);y=Fe.find(o,f[j].location),D=yt(Ft(y.content));{if(D[0].id!=j)throw"Bad HeaderStorageBucket";var Y=He(D[0].messages[0].data);for(L=0;L<a.length;++L){var ue=He(Y[2][0].data);ue[1][0].data=Te(L),ue[4][0].data=Te(a[L].length),Y[2][L]={type:Y[2][0].type,data:ze(ue)}}D[0].messages[0].data=ze(Y)}y.content=Rr(kr(D)),y.size=y.content.length;var oe=Qt(M[2][0].data);y=Fe.find(o,f[oe].location),D=yt(Ft(y.content));{if(D[0].id!=oe)throw"Bad HeaderStorageBucket";for(Y=He(D[0].messages[0].data),I=0;I<=n.e.c;++I)ue=He(Y[2][0].data),ue[1][0].data=Te(I),ue[4][0].data=Te(n.e.r+1),Y[2][I]={type:Y[2][0].type,data:ze(ue)};D[0].messages[0].data=ze(Y)}y.content=Rr(kr(D)),y.size=y.content.length;var de=Qt(M[4][0].data);(function(){for(var b=Fe.find(o,f[de].location),O=yt(Ft(b.content)),C,z=0;z<O.length;++z){var le=O[z];le.id==de&&(C=le)}var ce=He(C.messages[0].data);{ce[3]=[];var fe=[];s.forEach(function(ve,nt){fe[1]=[{type:0,data:Te(nt)}],fe[2]=[{type:0,data:Te(1)}],fe[3]=[{type:2,data:zv(ve)}],ce[3].push({type:2,data:ze(fe)})})}C.messages[0].data=ze(ce);var te=kr(O),Ce=Rr(te);b.content=Ce,b.size=b.content.length})();var xe=He(M[3][0].data);{var lt=xe[1][0];delete xe[2];var Be=He(lt.data);{var Et=Qt(Be[2][0].data);(function(){for(var b=Fe.find(o,f[Et].location),O=yt(Ft(b.content)),C,z=0;z<O.length;++z){var le=O[z];le.id==Et&&(C=le)}var ce=He(C.messages[0].data);{delete ce[6],delete xe[7];var fe=new Uint8Array(ce[5][0].data);ce[5]=[];for(var te=0,Ce=0;Ce<=n.e.r;++Ce){var ve=He(fe);te+=Jv(ve,a[Ce],s),ve[1][0].data=Te(Ce),ce[5].push({data:ze(ve),type:2})}ce[1]=[{type:0,data:Te(n.e.c+1)}],ce[2]=[{type:0,data:Te(n.e.r+1)}],ce[3]=[{type:0,data:Te(te)}],ce[4]=[{type:0,data:Te(n.e.r+1)}]}C.messages[0].data=ze(ce);var nt=kr(O),Ee=Rr(nt);b.content=Ee,b.size=b.content.length})()}lt.data=ze(Be)}M[3][0].data=ze(xe)}S[4][0].data=ze(M)}x.messages[0].data=ze(S);var xt=kr(h),A=Rr(xt);return u.content=A,u.size=u.content.length,o}function Zv(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function Fa(e){Zv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Qv(e,r){return r.bookType=="ods"?Zf(e,r):r.bookType=="numbers"?qv(e,r):r.bookType=="xlsb"?em(e,r):tm(e,r)}function em(e,r){Lr=1024,e&&!e.SSF&&(e.SSF=ht(be)),e&&e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,on?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",n=Lf.indexOf(r.bookType)>-1,i=of();Fa(r=r||{});var a=ca(),s="",f=0;if(r.cellXfs=[],cr(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",pe(a,s,df(e.Props,r)),i.coreprops.push(s),we(r.rels,2,s,me.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],o=0;o<e.SheetNames.length;++o)(e.Workbook.Sheets[o]||{}).Hidden!=2&&l.push(e.SheetNames[o]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,pe(a,s,pf(e.Props)),i.extprops.push(s),we(r.rels,3,s,me.EXT_PROPS),e.Custprops!==e.Props&&Ze(e.Custprops||{}).length>0&&(s="docProps/custom.xml",pe(a,s,vf(e.Custprops)),i.custprops.push(s),we(r.rels,4,s,me.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},u=e.Sheets[e.SheetNames[f-1]],h=(u||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+f+"."+t,pe(a,s,nv(f-1,s,r,e,c)),i.sheets.push(s),we(r.wbrels,-1,"worksheets/sheet"+f+"."+t,me.WS[0])}if(u){var x=u["!comments"],v=!1,d="";x&&x.length>0&&(d="xl/comments"+f+"."+t,pe(a,d,sv(x,d)),i.comments.push(d),we(c,-1,"../comments"+f+"."+t,me.CMNT),v=!0),u["!legacy"]&&v&&pe(a,"xl/drawings/vmlDrawing"+f+".vml",Rf(f,u["!comments"])),delete u["!comments"],delete u["!legacy"]}c["!id"].rId1&&pe(a,uf(s),Mr(c))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,pe(a,s,av(r.Strings,s,r)),i.strs.push(s),we(r.wbrels,-1,"sharedStrings."+t,me.SST)),s="xl/workbook."+t,pe(a,s,rv(e,s)),i.workbooks.push(s),we(r.rels,1,s,me.WB),s="xl/theme/theme1.xml",pe(a,s,If(e.Themes,r)),i.themes.push(s),we(r.wbrels,-1,"theme/theme1.xml",me.THEME),s="xl/styles."+t,pe(a,s,iv(e,s,r)),i.styles.push(s),we(r.wbrels,-1,"styles."+t,me.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",pe(a,s,e.vbaraw),i.vba.push(s),we(r.wbrels,-1,"vbaProject.bin",me.VBA)),s="xl/metadata."+t,pe(a,s,fv(s)),i.metadata.push(s),we(r.wbrels,-1,"metadata."+t,me.XLMETA),pe(a,"[Content_Types].xml",cf(i,r)),pe(a,"_rels/.rels",Mr(r.rels)),pe(a,"xl/_rels/workbook."+t+".rels",Mr(r.wbrels)),delete r.revssf,delete r.ssf,a}function tm(e,r){Lr=1024,e&&!e.SSF&&(e.SSF=ht(be)),e&&e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,on?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=Lf.indexOf(r.bookType)>-1,i=of();Fa(r=r||{});var a=ca(),s="",f=0;if(r.cellXfs=[],cr(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",pe(a,s,df(e.Props,r)),i.coreprops.push(s),we(r.rels,2,s,me.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],o=0;o<e.SheetNames.length;++o)(e.Workbook.Sheets[o]||{}).Hidden!=2&&l.push(e.SheetNames[o]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,pe(a,s,pf(e.Props)),i.extprops.push(s),we(r.rels,3,s,me.EXT_PROPS),e.Custprops!==e.Props&&Ze(e.Custprops||{}).length>0&&(s="docProps/custom.xml",pe(a,s,vf(e.Custprops)),i.custprops.push(s),we(r.rels,4,s,me.CUST_PROPS));var c=["SheetJ5"];for(r.tcid=0,f=1;f<=e.SheetNames.length;++f){var u={"!id":{}},h=e.Sheets[e.SheetNames[f-1]],x=(h||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+t,pe(a,s,Vf(f-1,r,e,u)),i.sheets.push(s),we(r.wbrels,-1,"worksheets/sheet"+f+"."+t,me.WS[0])}if(h){var v=h["!comments"],d=!1,m="";if(v&&v.length>0){var S=!1;v.forEach(function(F){F[1].forEach(function(y){y.T==!0&&(S=!0)})}),S&&(m="xl/threadedComments/threadedComment"+f+"."+t,pe(a,m,Rd(v,c,r)),i.threadedcomments.push(m),we(u,-1,"../threadedComments/threadedComment"+f+"."+t,me.TCMNT)),m="xl/comments"+f+"."+t,pe(a,m,Nf(v)),i.comments.push(m),we(u,-1,"../comments"+f+"."+t,me.CMNT),d=!0}h["!legacy"]&&d&&pe(a,"xl/drawings/vmlDrawing"+f+".vml",Rf(f,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&pe(a,uf(s),Mr(u))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,pe(a,s,Af(r.Strings,r)),i.strs.push(s),we(r.wbrels,-1,"sharedStrings."+t,me.SST)),s="xl/workbook."+t,pe(a,s,zf(e)),i.workbooks.push(s),we(r.rels,1,s,me.WB),s="xl/theme/theme1.xml",pe(a,s,If(e.Themes,r)),i.themes.push(s),we(r.wbrels,-1,"theme/theme1.xml",me.THEME),s="xl/styles."+t,pe(a,s,Of(e,r)),i.styles.push(s),we(r.wbrels,-1,"styles."+t,me.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",pe(a,s,e.vbaraw),i.vba.push(s),we(r.wbrels,-1,"vbaProject.bin",me.VBA)),s="xl/metadata."+t,pe(a,s,kf()),i.metadata.push(s),we(r.wbrels,-1,"metadata."+t,me.XLMETA),c.length>1&&(s="xl/persons/person.xml",pe(a,s,Nd(c)),i.people.push(s),we(r.wbrels,-1,"persons/person.xml",me.PEOPLE)),pe(a,"[Content_Types].xml",cf(i,r)),pe(a,"_rels/.rels",Mr(r.rels)),pe(a,"xl/_rels/workbook."+t+".rels",Mr(r.wbrels)),delete r.revssf,delete r.ssf,a}function rm(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=Kt(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Qf(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return _n(r.file,Fe.write(e,{type:_e?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Fe.write(e,r)}function nm(e,r){var t=ht(r||{}),n=Qv(e,t);return im(n,t)}function im(e,r){var t={},n=_e?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=e.FullPaths?Fe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(hi(i))}return r.password&&typeof encrypt_agile<"u"?Qf(encrypt_agile(i,r.password),r):r.type==="file"?_n(r.file,i):r.type=="string"?an(i):i}function am(e,r){var t=r||{},n=Tv(e,t);return Qf(n,t)}function Lt(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return hn(Ht(n));case"binary":return Ht(n);case"string":return e;case"file":return _n(r.file,n,"utf8");case"buffer":return _e?qt(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Lt(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function sm(e,r){switch(r.type){case"base64":return hn(e);case"binary":return e;case"string":return e;case"file":return _n(r.file,e,"binary");case"buffer":return _e?qt(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Pn(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return r.type=="base64"?hn(t):r.type=="string"?an(t):t;case"file":return _n(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function Ca(e,r){Nu(),X2(e);var t=ht(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=Ca(e,t);return t.type="array",hi(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=e.SheetNames.indexOf(t.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return Lt(_v(e,t),t);case"slk":case"sylk":return Lt(H1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"htm":case"html":return Lt(Yf(e.Sheets[e.SheetNames[i]],t),t);case"txt":return sm(el(e.Sheets[e.SheetNames[i]],t),t);case"csv":return Lt(Oa(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return Lt(V1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"dbf":return Pn(W1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return Lt(G1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return Lt(q1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"eth":return Lt(Sf.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return Lt(Zf(e,t),t);case"wk1":return Pn(F0.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return Pn(F0.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),Pn(Kf(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),am(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return nm(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function fm(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function lm(e,r,t){var n=t||{};return n.type="file",n.file=r,fm(n),Ca(e,n)}function om(e,r,t,n,i,a,s,f){var l=qe(t),o=f.defval,c=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),u=!0,h=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:t,enumerable:!1})}catch{h.__rowNum__=t}else h.__rowNum__=t;if(!s||e[t])for(var x=r.s.c;x<=r.e.c;++x){var v=s?e[t][x]:e[n[x]+l];if(v===void 0||v.t===void 0){if(o===void 0)continue;a[x]!=null&&(h[a[x]]=o);continue}var d=v.v;switch(v.t){case"z":if(d==null)break;continue;case"e":d=d==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(a[x]!=null){if(d==null)if(v.t=="e"&&d===null)h[a[x]]=null;else if(o!==void 0)h[a[x]]=o;else if(c&&d===null)h[a[x]]=null;else continue;else h[a[x]]=c&&(v.t!=="n"||v.t==="n"&&f.rawNumbers!==!1)?d:Yt(v,d,f);d!=null&&(u=!1)}}return{row:h,isempty:u}}function ni(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,f="",l={s:{r:0,c:0},e:{r:0,c:0}},o=r||{},c=o.range!=null?o.range:e["!ref"];switch(o.header===1?n=1:o.header==="A"?n=2:Array.isArray(o.header)?n=3:o.header==null&&(n=0),typeof c){case"string":l=Ie(c);break;case"number":l=Ie(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var u=qe(l.s.r),h=[],x=[],v=0,d=0,m=Array.isArray(e),S=l.s.r,F=0,y={};m&&!e[S]&&(e[S]=[]);var D=o.skipHidden&&e["!cols"]||[],G=o.skipHidden&&e["!rows"]||[];for(F=l.s.c;F<=l.e.c;++F)if(!(D[F]||{}).hidden)switch(h[F]=tt(F),t=m?e[S][F]:e[h[F]+u],n){case 1:a[F]=F-l.s.c;break;case 2:a[F]=h[F];break;case 3:a[F]=o.header[F-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),f=s=Yt(t,null,o),d=y[s]||0,!d)y[s]=1;else{do f=s+"_"+d++;while(y[f]);y[s]=d,y[f]=1}a[F]=f}for(S=l.s.r+i;S<=l.e.r;++S)if(!(G[S]||{}).hidden){var Q=om(e,l,S,h,n,a,m,o);(Q.isempty===!1||(n===1?o.blankrows!==!1:o.blankrows))&&(x[v++]=Q.row)}return x.length=v,x}var L0=/"/g;function cm(e,r,t,n,i,a,s,f){for(var l=!0,o=[],c="",u=qe(t),h=r.s.c;h<=r.e.c;++h)if(n[h]){var x=f.dense?(e[t]||[])[h]:e[n[h]+u];if(x==null)c="";else if(x.v!=null){l=!1,c=""+(f.rawNumbers&&x.t=="n"?x.v:Yt(x,null,f));for(var v=0,d=0;v!==c.length;++v)if((d=c.charCodeAt(v))===i||d===a||d===34||f.forceQuotes){c='"'+c.replace(L0,'""')+'"';break}c=="ID"&&(c='"ID"')}else x.f!=null&&!x.F?(l=!1,c="="+x.f,c.indexOf(",")>=0&&(c='"'+c.replace(L0,'""')+'"')):c="";o.push(c)}return f.blankrows===!1&&l?null:o.join(s)}function Oa(e,r){var t=[],n=r??{};if(e==null||e["!ref"]==null)return"";var i=Ie(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),f=n.RS!==void 0?n.RS:`
`,l=f.charCodeAt(0),o=new RegExp((a=="|"?"\\|":a)+"+$"),c="",u=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],x=n.skipHidden&&e["!rows"]||[],v=i.s.c;v<=i.e.c;++v)(h[v]||{}).hidden||(u[v]=tt(v));for(var d=0,m=i.s.r;m<=i.e.r;++m)(x[m]||{}).hidden||(c=cm(e,i,m,u,s,l,a,n),c!=null&&(n.strip&&(c=c.replace(o,"")),(c||n.blankrows!==!1)&&t.push((d++?f:"")+c)));return delete n.dense,t.join("")}function el(e,r){r||(r={}),r.FS=" ",r.RS=`
`;var t=Oa(e,r);return t}function um(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=Ie(e["!ref"]),a="",s=[],f,l=[],o=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=tt(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=qe(c),f=i.s.c;f<=i.e.c;++f)if(r=s[f]+a,t=o?(e[c]||[])[f]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=r+"="+n}return l}function tl(e,r,t){var n=t||{},i=+!n.skipHeader,a=e||{},s=0,f=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ge(n.origin):n.origin;s=l.r,f=l.c}var o,c={s:{c:0,r:0},e:{c:f,r:s+r.length-1+i}};if(a["!ref"]){var u=Ie(a["!ref"]);c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),s==-1&&(s=u.e.r+1,c.e.r=s+r.length-1+i)}else s==-1&&(s=0,c.e.r=r.length-1+i);var h=n.header||[],x=0;r.forEach(function(d,m){Ze(d).forEach(function(S){(x=h.indexOf(S))==-1&&(h[x=h.length]=S);var F=d[S],y="z",D="",G=ye({c:f+x,r:s+m+i});o=vn(a,G),F&&typeof F=="object"&&!(F instanceof Date)?a[G]=F:(typeof F=="number"?y="n":typeof F=="boolean"?y="b":typeof F=="string"?y="s":F instanceof Date?(y="d",n.cellDates||(y="n",F=ut(F)),D=n.dateNF||be[14]):F===null&&n.nullError&&(y="e",F=0),o?(o.t=y,o.v=F,delete o.w,delete o.R,D&&(o.z=D)):a[G]=o={t:y,v:F},D&&(o.z=D))})}),c.e.c=Math.max(c.e.c,f+h.length-1);var v=qe(s);if(i)for(x=0;x<h.length;++x)a[tt(x+f)+v]={t:"s",v:h[x]};return a["!ref"]=$e(c),a}function hm(e,r){return tl(null,e,r)}function vn(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var n=Ge(r);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?vn(e,ye(r)):vn(e,ye({r,c:t||0}))}function dm(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function xm(){return{SheetNames:[],Sheets:{}}}function pm(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(Xf(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function vm(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=dm(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function mm(e,r){return e.z=r,e}function rl(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function gm(e,r,t){return rl(e,"#"+r,t)}function _m(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function Em(e,r,t,n){for(var i=typeof r!="string"?r:Ie(r),a=typeof r=="string"?r:$e(r),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var l=vn(e,s,f);l.t="n",l.F=a,delete l.v,s==i.s.r&&f==i.s.c&&(l.f=t,n&&(l.D=!0))}return e}var Tm={encode_col:tt,encode_row:qe,encode_cell:ye,encode_range:$e,decode_col:va,decode_row:pa,split_cell:Lh,decode_cell:Ge,decode_range:_t,format_cell:Yt,sheet_add_aoa:rf,sheet_add_json:tl,sheet_add_dom:Jf,aoa_to_sheet:Kr,json_to_sheet:hm,table_to_sheet:qf,table_to_book:Vv,sheet_to_csv:Oa,sheet_to_txt:el,sheet_to_json:ni,sheet_to_html:Yf,sheet_to_formulae:um,sheet_to_row_object_array:ni,sheet_get_cell:vn,book_new:xm,book_append_sheet:pm,book_set_sheet_visibility:vm,cell_set_number_format:mm,cell_set_hyperlink:rl,cell_set_internal_link:gm,cell_add_comment:_m,sheet_set_array_formula:Em,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 wm({type:e="xlsx",name:r="Truth Table",dl:t=!1,tableId:n}){const i=document.getElementById(n),a=Tm.table_to_book(i,{sheet:"sheet1"});return t?Ca(a,{bookType:e,bookSST:!0,type:"base64"}):lm(a,r+"."+e)}function Sm(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function Am(e){return e.replaceAll(/\//g,"|").replaceAll(/¬/g,"!").replaceAll(/\sOR\s/gi," | ").replaceAll(/\sAND\s/gi," & ").replaceAll(/\s(IMPLICATION|IMP)\s/gi," -> ").replaceAll(/\sNOT\s/gi," !")}var ym=ae("<span class=h-min>Simplify: "),P0=ae('<div class="relative h-min">'),Fm=ae("<p>Filename:"),nl=ae("<p>"),Cm=ae('<div class="m-2 flex justify-center"><div id=table class="h-[45rem] overflow-auto">'),Om=ae('<div id=truth-content><div class="mx-auto max-w-2xl"><form class=flex-row-center autocomplete=off>'),Dm=ae("<p class=sr-only>Download"),Im=ae('<button class="flex-row-center cursor-pointer last:mb-1 hover:underline">'),km=ae("<table class=table><tbody>"),Rm=ae("<p>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."),Nm=ae("<p>API docs can be found <!>."),Lm=ae("<p>using: "),Pm=ae("<td>using: "),bm=ae('<tr class="border-b border-dotted border-gray-500"><td>:</td><td class=px-2>'),Mm=ae("<span>"),Bm=ae("<table><thead><tr class=text-left><th>Name</th><th class=pr-2>API</th><th>Other</th></tr></thead><tbody><tr><td>Not:</td><td>!</td><td>NOT</td></tr><tr><td>And:</td><td>&</td><td>AND</td></tr><tr><td>Or:</td><td>|</td><td>/</td><td>OR</td></tr><tr><td class=pr-2>Implication:</td><td>-></td><td class=px-2>IMPLICATION</td><td>IMP");const Um=["http://localhost:8080/simplify/table/","https://api.martials.no/simplify-truths/simplify/table/"],$m=()=>{const[e,r]=po();let t,n=e.simplify===void 0||e.simplify==="true",i=!!e.exp,a=e.hideIntermediate==="true";const[s,f]=Se(n),[l,o]=Se(null),c=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[u,h]=Se(c[0]),x=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[v,d]=Se(x[0]),[m,S]=Se(a),[F,y]=Se(null),[D,G]=Se(null),[Q,I]=Se(!1);function V(Y){Y.preventDefault();const ue=t?.value;ue&&(r({exp:ue,simplify:s(),hide:u().value,sort:v().value,hideIntermediate:m()}),L(ue))}function L(Y){o(null),Y&&Y!==""&&(Y=Am(Y),G(null),y(!1),fetch(`${Um[Q()?0:1]}${encodeURIComponent(Y)}?
simplify=${s()}&hide=${u().value}&sort=${v().value}&caseSensitive=false&
hideIntermediate=${m()}`).then(ue=>ue.json()).then(ue=>ue.status!=="OK"&&!ue.ok?G({title:"Input error",message:ue.message}):o(ue)).catch(ue=>G({title:"Fetch error",message:ue.toString()})).finally(()=>y(!0)))}$0(()=>{if(e.exp){const Y=e.exp;Y&&t&&(t.value=Y);const ue=e.hide;ue&&h(c.find(de=>de.value===ue)??c[0]);const oe=e.sort;oe&&d(x.find(de=>de.value===oe)??x[0]),L(Y)}Sm()||t?.focus()});const M="truth-table",W="excel-filename";function j(){const Y=Wr(W)?.value;wm({name:Y!==""?Y:void 0,tableId:M})}return H(si,{title:"Truth tables",get children(){return[H(Ke,{get when(){return!1},keyed:!0,get children(){return["(DEV) Use localhost:",H(Oi,{title:"Use localhost",defaultValue:!1,onChange:I})]}}),(()=>{var Y=Om(),ue=Y.firstChild,oe=ue.firstChild;return ne(ue,H(Vm,{}),oe),oe.addEventListener("submit",V),ne(oe,H(yc,{ref(de){var xe=t;typeof xe=="function"?xe(de):t=de},typingDefault:i}),null),ne(oe,H(Vn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px ml-2 h-10",children:"Generate"}),null),ne(ue,H(as,{className:"my-1 gap-2",get children(){return[ym(),H(Oi,{onChange:f,get defaultValue(){return s()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{var de=P0();return ne(de,H(Ka,{title:"Filter results",id:"filter-results",get button(){return H(Ke,{get when(){return u().value!=="NONE"},get children(){return H(Pt,{path:qo,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${u().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return H(Pt,{path:Zo,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return H(bt,{each:c,children:xe=>H(b0,{onClick:()=>h(xe),option:xe,currentValue:u})})},itemsClassName:"right-0"})),de})(),(()=>{var de=P0();return ne(de,H(Ka,{title:"Sort results",id:"sort-results",get button(){return H(Pt,{path:Qo,"aria-label":"Filter",get class(){return`h-6 w-6 ${v().value==="TRUE_FIRST"?"text-green-500":v().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return H(bt,{each:x,children:xe=>H(b0,{option:xe,currentValue:v,onClick:()=>d(xe)})})},itemsClassName:"right-0"})),de})(),H(Oi,{title:"Hide intermediate values",onChange:S,get defaultValue(){return m()}}),H(Ke,{get when(){return De(()=>!!F())()&&D()===null},keyed:!0,get children(){return H(Iu,{title:"Download",description:"Export current table (.xlsx)",get button(){return[Dm(),H(Pt,{"aria-label":"Download",path:zo})]},callback:j,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClass:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[Fm(),H(ra,{className:"border-rounded h-10 px-2",id:W,placeholder:"Truth Table"})]}})}})]}}),null),ne(ue,H(Ke,{get when(){return D()},keyed:!0,get children(){return H(Wm,{get title(){return D()?.title??"Error"},get error(){return D()?.message??"Something went wrong"}})}}),null),ne(ue,H(Ke,{get when(){return F()===!1},keyed:!0,get children(){return H(Pt,{path:jo,"aria-label":"Loading indicator",class:"mx-auto animate-spin"})}}),null),ne(ue,H(Ke,{get when(){return De(()=>!!s())()&&(l()?.orderOperations?.length??0)>0},keyed:!0,get children(){return H(Hm,{fetchResult:l})}}),null),ne(Y,H(Ke,{get when(){return De(()=>!!F())()&&D()===null},keyed:!0,get children(){return[H(Ke,{get when(){return s()},keyed:!0,get children(){return H(_s,{className:"mx-auto w-fit pb-1 text-center text-lg",title:"Output:",id:"expression-output",get children(){var de=nl();return ne(de,()=>l()?.after),de}})}}),(()=>{var de=Cm(),xe=de.firstChild;return ne(xe,H(Ic,{get header(){return l()?.header??void 0},get table(){return l()?.table?.truthMatrix},id:M})),de})()]}}),null),Y})()]}})},b0=({option:e,currentValue:r,onClick:t})=>{const n=()=>r?.().value===e.value;return(()=>{var i=Im();return Qi(i,"click",t,!0),ne(i,H(Pt,{path:Ko,get"aria-label"(){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),ne(i,()=>e.name,null),i})()},Wm=({title:e,error:r})=>H(_s,{className:"mx-auto w-fit text-center",title:e,error:!0,get children(){var t=nl();return ne(t,r),t}}),Hm=({fetchResult:e})=>H(Es,{get children(){return H(sa,{title:"Show me how it's done",get children(){var r=km(),t=r.firstChild;return ne(t,H(bt,{get each(){return e()?.orderOperations},get children(){return Gm()}})),r}})}}),Vm=()=>H(Es,{get children(){return[H(sa,{title:"How to",get children(){return[Rm(),(()=>{var e=Nm(),r=e.firstChild,t=r.nextSibling;return t.nextSibling,ne(e,H(zr,{to:"https://api.martials.no/simplify-truths",children:"here"}),t),e})()]}}),H(Xm,{})]}}),Gm=()=>(e,r)=>(()=>{var t=bm(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return ne(n,()=>r()+1,i),ne(a,()=>H(bt,{get each(){return _u(e.before,e.after)},children:s=>(()=>{var f=Mm();return ne(f,()=>s.value),Dt(()=>Me(f,`${s.added&&"bg-green-700"} ${s.removed&&"bg-red-700"}`)),f})()}),null),ne(a,H(Ke,{get when(){return typeof window<"u"&&window.outerWidth<=640},keyed:!0,get children(){var s=Lm();return s.firstChild,ne(s,()=>e.law,null),s}}),null),ne(t,H(Ke,{get when(){return typeof window<"u"&&window.outerWidth>640},keyed:!0,get children(){var s=Pm();return s.firstChild,ne(s,()=>e.law,null),s}}),null),t})(),Xm=()=>H(sa,{title:"Keywords",get children(){return Bm()}});Xr(["click"]);var zm=ae("<div class=text-center><h4>Error 404 - Siden ble ikke funnet</h4><p>");const jm=()=>H(si,{title:"Siden ble ikke funnet",get children(){var e=zm(),r=e.firstChild,t=r.nextSibling;return ne(t,H(zr,{to:"/",newTab:!1,className:"relative mx-auto w-max",children:"Gå tilbake til forsiden"})),e}});function Km(e,r=e.length){const t=[0];let n=0,i=1;for(;i<r;)e[n]==e[i]?(n++,t.push(n),i++):n==0?(t.push(0),i++):n=t[n-1];return t}var Ym=ae('<div class="container mx-auto max-w-2xl overflow-auto"><p>Failure Function</p><form></form><table class=mb-3><thead><tr></tr></thead><tbody><tr>'),Jm=ae('<th class="border border-black">'),qm=ae('<td class="border border-black">');const Zm=()=>{let e;const[r,t]=Se();function n(i){if(i.preventDefault(),e){const a=e.value,s=a.split(""),f=Km(a);f.length!==s.length?console.error("Something went wrong"):t(f.map((l,o)=>({char:s[o],index:l})))}}return H(si,{title:"Failure function",get children(){var i=Ym(),a=i.firstChild,s=a.nextSibling,f=s.nextSibling,l=f.firstChild,o=l.firstChild,c=l.nextSibling,u=c.firstChild;return s.addEventListener("submit",n),ne(s,H(ra,{ref(h){var x=e;typeof x=="function"?x(h):e=h},inputClass:"rounded-2xl w-full h-10 px-3"})),ne(o,H(bt,{get each(){return r()},children:({char:h})=>(()=>{var x=Jm();return ne(x,h),x})()})),ne(u,H(bt,{get each(){return r()},children:({index:h})=>(()=>{var x=qm();return ne(x,h),x})()})),i}})};zl(()=>H(ko,{get children(){return[H(Cn,{path:"/",component:mc}),H(Cn,{path:"/simplify-truths",component:$m}),H(Cn,{path:"/failure-function",component:Zm}),H(Cn,{path:"*",component:jm})]}}),document.getElementById("root"));