chore: Update deploy script and force add frontend/dist

This commit is contained in:
super committed 2026-02-25 10:21:41 +08:00
1 parent 2ece8a2ca0
commit 2b8a0010ef
6 files changed
+209 -40

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
# Environments
docs/
venv/
backend/venv/
env/
@@ -29,7 +30,7 @@ __pycache__/
# Frontend
frontend/node_modules/
frontend/dist/
# frontend/dist/ <-- Commented out to allow committing dist
frontend/.DS_Store
frontend/.env.local
frontend/.env.*.local
+1
View File
@@ -0,0 +1 @@
@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6b7280;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}input:where([type=text]):focus,input:where(:not([type])):focus,input:where([type=email]):focus,input:where([type=url]):focus,input:where([type=password]):focus,input:where([type=number]):focus,input:where([type=date]):focus,input:where([type=datetime-local]):focus,input:where([type=month]):focus,input:where([type=search]):focus,input:where([type=tel]):focus,input:where([type=time]):focus,input:where([type=week]):focus,select:where([multiple]):focus,textarea:focus,select:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shLine truncated
+101
View File
@@ -0,0 +1,101 @@
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>w(e)===`[object Map]`,h=e=>w(e)===`[object Set]`,g=e=>w(e)===`[object Date]`,_=e=>w(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),T=e=>w(e).slice(8,-1),E=e=>w(e)===`[object Object]`,D=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,O=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),k=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,A=k(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,ne=k(e=>e.replace(te,`-$1`).toLowerCase()),re=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),ie=k(e=>e?`on${re(e)}`:``),ae=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},fe=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function pe(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?j(r):pe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(y(e)||x(e))return e}var me=/;(?![^(]*\))/g,he=/:([^]+)/,ge=/\/\*[^]*?\*\//g;function j(e){let t={};return e.replace(ge,``).split(me).forEach(e=>{if(e){let n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function M(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=M(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function _e(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=M(t)),n&&(e.style=pe(n)),e}var ve=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ye=n(ve);ve+``;function be(e){return!!e||e===``}function xe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Se(e[r],t[r]);return n}function Se(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?xe(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Se(e[n],t[n]))return!1}}return String(e)===String(t)}function Ce(e,t){return e.findIndex(e=>Se(e,t))}var N=e=>!!(e&&e.__v_isRef===!0),P=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?N(e)?P(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>N(t)?we(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:b(t)?Te(t):x(t)&&!p(t)&&!E(t)?String(t):t,Te=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Ee(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var De,Oe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=De,!e&&De&&(this.index=(De.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,Line truncated
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
`)&&(yi(e,0)||di(),e.textContent=t.children)}if(u){if(g||!o||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||s(i)&&!O(i)||i[0]===`.`||t&&!O(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&Qt(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&ws(_,n,t),p&&hr(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&Zo(()=>{_&&ws(_,n,t),l&&h.enter(e),p&&hr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length;for(let t=0;t<p;t++){let m=u?d[t]:d[t]=bs(d[t]),h=m.type===es;e?(h&&!u&&t+1<p&&bs(d[t+1]).type===es&&(l(i(e.data.slice(m.children.length)),r,a(e)),e.data=m.children),e=f(e,m,o,s,c,u)):h&&!m.children?l(m.el=i(``),r):(yi(r,1)||di(),n(null,m,r,null,o,s,mi(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&hi(f)&&f.data===`]`?a(t.anchor=f):(di(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(yi(e.parentElement,1)||di(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,mi(d),s),r&&(r.vnode.el=t.el,lo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&hi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var _i=`data-allow-mismatch`,vi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function yi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(_i);)e=e.parentElement;let n=e&&e.getAttribute(_i);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(vi[t])}}var bi=de().requestIdleCallback||(e=>setTimeout(e,1)),xi=de().cancelIdleCallback||(e=>clearTimeout(e)),Si=(e=1e4)=>t=>{let n=bi(t,{timeout:e});return()=>xi(n)};function Ci(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var wi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ci(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ti=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Ei=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Di(e,t){if(hi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(hi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Oi=e=>!!e.type.__asyncLoader;function ki(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return ni({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Di(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Os;if(ii(e),u)return()=>Ai(u,e);let t=t=>{l=null,Vn(t,e,13,!r)};if(s&&e.suspense||Fs)return p().then(t=>()=>Ai(t,e)).catch(e=>(t(e),()=>r?H(r,{error:e}):null));let a=F(!1),c=F(),d=F(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&ji(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Ai(u,e);if(c.value&&r)return H(r,{error:c.value});if(n&&!d.value)return Ai(n,e)}}})}function Ai(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=H(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var ji=e=>e.type.__isKeepAlive,Mi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ks(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),ko(()=>{a.isDeactivated=!1,a.a&&oe(a.a);let t=e.props&&e.props.onVno Line truncated
`,Zu=`\u2028`,Qu=`\u2029`;function $u(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===Yu&&t[e+1]===Xu,s=e=>t[e]===Xu,c=e=>t[e]===Qu,l=e=>t[e]===Zu,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Xu:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var ed=void 0,td=`'`,nd=`tokenizer`;function rd(e,t={}){let n=t.location!==!1,r=$u(e),i=()=>r.index(),a=()=>Wu(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(Ku(e,n?Gu(a.startLoc,t):null,{domain:nd,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Gu(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(q.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===Ju||e.currentPeek()===Xu;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===ed)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===ed)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===td;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===Ju||!t?!1:t===Xu?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===Ju||r===Xu):i===Ju?(e.peek(),n(!0,Ju)):i===Xu?(e.peek(),n(!0,Xu)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===ed?ed:t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ee(e){return O(e,k)}function A(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function te(e){return O(e,A)}function ne(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function re(e){return O(e,ne)}function ie(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ae(e){return O(e,ie)}function oe(e){let t=``,n=``;for(;t=re(e);)n+=t;return n}function se(e){let t=``;for(;;){let n=e.currentChar();if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;if(n===Ju||n===Xu)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function ce(e){g(e);let t=``,n=``;for(;t=te(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==ed&&r!==Ju&&r!==Xu&&r!==` `){let t=he(e);return d(q.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===ed&&d(q.UNTERMINATED_CLOSING_BRACE,a(),0),n}function le(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${oe(e)}`):t+=oe(e),e.currentChar()===ed&&d(q.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ue(e){return e!==td&&e!==Xu}function de(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,ue);)t===`\\`?n+=fe(e):n+=t;let r=e.currentChar();return r===Xu||r===ed?(d(q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Xu&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function fe(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return pe(e,t,4);case`U`:return pe(e,t,6);default:return d(q.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function pe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=ae(e);if(!n){d(q.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function me(e){return e!==`{`&&e!==`}`&&e!==Ju&&e!==Xu}function he(e){g(e);let t=``,n=``;for(;t=O(e,me);)n+=t;return n}function ge(e){let t=``,n=``;for(;t=ee(e);)n+=t;return n}function j(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===Ju?n:(n+=r,e.next(),t(n))};return t(``)}function M(e){g(e);let t=m(e,`|`);return g(e),t}f Line truncated
`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=gd(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${Vu(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),xd(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Cd(e,t={}){let n=Cu({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=sd(n).parse(e);return r?(a&&pd(o),i&&hd(o),{ast:o,code:``}):(fd(o,n),Sd(o,n))}function wd(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Du().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(Du().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Td(e){return Iu(e)&&Fd(e)===0&&(Mu(e,`b`)||Mu(e,`body`))}var Ed=[`b`,`body`];function Dd(e){return Hd(e,Ed)}var Od=[`c`,`cases`];function kd(e){return Hd(e,Od,[])}var Ad=[`s`,`static`];function jd(e){return Hd(e,Ad)}var Md=[`i`,`items`];function Nd(e){return Hd(e,Md,[])}var Pd=[`t`,`type`];function Fd(e){return Hd(e,Pd)}var Id=[`v`,`value`];function Ld(e,t){let n=Hd(e,Id);if(n!=null)return n;throw Wd(t)}var Rd=[`m`,`modifier`];function zd(e){return Hd(e,Rd)}var Bd=[`k`,`key`];function Vd(e){let t=Hd(e,Bd);if(t)return t;throw Wd(6)}function Hd(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Mu(e,r)&&e[r]!=null)return e[r]}return n}var Ud=[...Ed,...Od,...Ad,...Md,...Bd,...Rd,...Id,...Pd];function Wd(e){return Error(`unhandled node type: ${e}`)}function Gd(e){return t=>Kd(t,e)}function Kd(e,t){let n=Dd(t);if(n==null)throw Wd(0);if(Fd(n)===1){let t=kd(n);return e.plural(t.reduce((t,n)=>[...t,qd(e,n)],[]))}else return qd(e,n)}function qd(e,t){let n=jd(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=Nd(t).reduce((t,n)=>[...t,Jd(e,n)],[]);return e.normalize(n)}}function Jd(e,t){let n=Fd(t);switch(n){case 3:return Ld(t,n);case 9:return Ld(t,n);case 4:{let r=t;if(Mu(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Mu(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Wd(n)}case 5:{let r=t;if(Mu(r,`i`)&&yu(r.i))return e.interpolate(e.list(r.i));if(Mu(r,`index`)&&yu(r.index))return e.interpolate(e.list(r.index));throw Wd(n)}case 6:{let n=t,r=zd(n),i=Vd(n);return e.linked(Jd(e,i),r?Jd(e,r):void 0,e.type)}case 7:return Ld(t,n);case 8:return Ld(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Yd=e=>e,Xd=Tu();function Zd(e,t={}){let n=!1,r=t.onError||qu;return t.onError=e=>{n=!0,r(e)},{...Cd(e,t),detectError:n}}function Qd(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&G(e)){Fu(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Yd)(e),r=Xd[n];if(r)return r;let{ast:i,detectError:a}=Zd(e,{...t,location:!1,jit:!0}),o=Gd(i);return a?o:Xd[n]=o}else{let t=e.cacheKey;return t?Xd[t]||(Xd[t]=Gd(e)):Gd(e)}}var $d=null;function ef(e){$d=e}function tf(e,t,n){$d&&$d.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var nf=rf(`function:translate`);function rf(e){return t=>$d&&$d.emit(e,t)}var af={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function of(e){return Ku(e,null,void 0)}af.INVALID_ARGUMENT,af.INVALID_DATE_ARGUMENT,af.INVALID_ISO_DATE_ARGUMENT,af.NOT_SUPPORT_NON_STRING_MESSAGE,af.NOT_SUPPORT_LOCALE_PROMISE_VALUE,af.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,af.NOT_SUPPORT_LOCALE_TYPE;function sf(e,t){return t.locale==null?lf(e.locale):lf(t.locale)}var cf;function lf(e){if(G(e))return e;if(Pu(e)){if(e.resolvedOnce&&cf!=null)return cf;if(e.constructor.name===`Function`){let t=e();if(Lu(t))throw of(af.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return cf=t}else throw of(af.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw of(af.NOT_SUPPORT_LOCALE_TYPE)}function uf(e,t,n){return[...new Set([n,...Nu(t)?t:Iu(t)?Object.keys(t):G(t)?[t]:[n]])]}function df(e,t,n){let r=G(n)?n:Df,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;Nu(e);)e=ff(a,e,t);let o=Nu(t)||!K(t)?t:t.default?t.default:null;e=G(o)?[o]:o,Nu(e)&&ff(a,e,!1),i.__localeChainCache.set(r,a)}return a}function ff(e,t,n){let r=!0;for(let i=0;i<t.length&&Fu(r);i++){let a=t[i];G(a)&&(r=pf(e,t[i],n))}return r}function pf(e,t,n){let r,i=t.split(`-`);do r=mf(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function mf(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(Nu(n)||K(n))&&n[i]&&(r=n[i])}return r}var hf=[];hf[0]={w:[0],i:[3,0],"[":[4],o:[7]},hf[1]={w:[1],".":[2],"[":[4],o:[7]},hf[2]={w:[2],i:[3,0],0:[3,0]},hf[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},hf[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},hf[5]={"'":[4,0],o:8,l:[5,0]},hf[6]={'"':[4,0],o:8,l:[6,0]};var gf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;functio Line truncated
`);for(let t of i)if(t.startsWith(`data: `))try{let r=JSON.parse(t.slice(6));r.event===`message`?e.value[o].content+=r.answer:r.event===`message_end`?r.conversation_id&&(n.value=r.conversation_id):r.event===`error`&&(e.value[o].content+=`\n[Error: ${r.message}]`)}catch{}}}catch(t){console.error(t),e.value[o].content+=`\n[Error: ${t.message||`Network Issue`}]`}finally{t.value=!1}}}}var ny={class:`flex h-screen bg-white font-sans text-slate-800`},ry={class:`p-4 flex items-center justify-between`},iy={class:`font-bold text-slate-700 tracking-tight`},ay={class:`px-3 pb-2`},oy={class:`flex-1 overflow-y-auto px-3 space-y-1 scrollbar-thin`},sy={key:0,class:`text-center text-slate-400 text-sm py-8 italic`},cy=[`onClick`],ly={class:`p-4 border-t border-slate-200 bg-slate-50 space-y-3`},uy={class:`flex items-center justify-center gap-2 text-xs text-slate-400 font-mono bg-slate-100 py-1.5 rounded-lg`},dy={class:`flex-1 flex flex-col h-full relative w-full md:w-auto overflow-hidden bg-white`},fy={class:`md:hidden bg-white/80 backdrop-blur-md border-b border-slate-100 px-4 py-3 flex items-center justify-between shrink-0 z-30 sticky top-0`},py={class:`flex items-center gap-3`},my={class:`font-bold text-slate-900 truncate max-w-[200px]`},hy={key:0,class:`flex-1 flex flex-col items-center justify-center space-y-4`},gy={key:1,class:`flex-1 w-full h-full bg-white relative`},_y=[`src`],vy={class:`flex-1 overflow-y-auto p-4 md:p-8 space-y-8 scroll-smooth scrollbar-thin`},yy={key:0,class:`flex flex-col items-center justify-center h-full text-slate-400 pb-20`},by={class:`w-20 h-20 bg-gradient-to-br from-brand-500 to-brand-700 rounded-3xl flex items-center justify-center mb-8 shadow-xl shadow-brand-500/20 animate-fade-in`},xy={class:`text-3xl font-bold text-slate-900 mb-3 tracking-tight`},Sy={class:`text-slate-500 text-lg max-w-md text-center leading-relaxed`},Cy={class:`grid grid-cols-1 md:grid-cols-2 gap-4 mt-12 w-full max-w-2xl`},wy=[`onClick`],Ty={key:0,class:`w-10 h-10 rounded-xl bg-gradient-to-br from-brand-500 to-brand-700 flex items-center justify-center shrink-0 shadow-sm mt-1`},Ey={key:1,class:`w-10 h-10 rounded-xl bg-slate-200 flex items-center justify-center shrink-0 shadow-sm mt-1`},Dy={key:1,class:`flex gap-4 max-w-4xl mx-auto animate-pulse`},Oy={class:`w-10 h-10 rounded-xl bg-gradient-to-br from-brand-500 to-brand-700 flex items-center justify-center shrink-0 shadow-sm mt-1`},ky={class:`py-3 px-5 bg-white border border-slate-100 rounded-2xl rounded-tl-sm shadow-sm flex items-center gap-3`},Ay={class:`text-slate-400 text-sm font-medium`},jy={key:2,class:`max-w-4xl mx-auto mt-8 pt-8 border-t border-slate-100`},My={class:`flex flex-col items-center gap-4 bg-slate-50 p-6 rounded-2xl border border-slate-100`},Ny={class:`text-sm font-medium text-slate-500`},Py={class:`flex gap-3`},Fy=[`onClick`],Iy={key:1,class:`text-sm font-bold`},Ly={key:0,class:`w-full max-w-lg flex gap-3 mt-2 animate-fade-in`},Ry=[`placeholder`],zy=[`disabled`],By={class:`p-4 md:p-6 bg-white/80 backdrop-blur-xl border-t border-slate-100 absolute bottom-0 left-0 right-0 z-20`},Vy={class:`max-w-4xl mx-auto relative`},Hy={class:`relative bg-white rounded-2xl border border-slate-200 shadow-lg shadow-slate-200/50 focus-within:ring-2 focus-within:ring-brand-500/20 focus-within:border-brand-500 transition-all duration-300`},Uy=[`onKeydown`,`placeholder`,`disabled`],Wy=[`disabled`],Gy={class:`text-center mt-3 text-xs font-medium text-slate-400`},Ky=ni({__name:`ChatView`,setup(e){let{t,locale:n}=cm(),r=Eg(),i=Tg(),a=Number(r.params.agentId),o=F(!1),{messages:s,isThinking:c,conversationId:l,sendMessage:u}=ty(),d=F(``),f=F(null),p=F([]),m=Ys(()=>{let e=r.query.preset;return typeof e==`string`?e:``}),h=()=>{let e=localStorage.getItem(`hxops_user`);if(!e)return{};let t=JSON.parse(e),n={"X-Username":t.username,"X-Role":t.role};return t.id&&(n[`X-User-Id`]=String(t.id)),n},g=async()=>{if(!d.value.trim()||c.value)return;let e=d.value;d.value=``,await u(e,a),!l.value&&p.value.length===0?await _():l.value&&(p.value.some(e=>e.conversation_id===l.value)||await _())},_=async()=>{try{let e=await fetch(`/api/chat/sessions`,{headers:h()});e.ok&&(p.value=await e.json())}catch(e){console.error(`Failed to load history`,e)}},v=async e=>{if(l.value!==e)try{let t=await fetch(`/api/chat/messages?conversation_id=${e}`,{headers:h()});t.ok&&(s.value=await t.json(),l.value=e,x.value=null,S.value=``,C.value=!1)}catch(e){console.error(`Failed to load conversation`,e)}},y=()=>{s.value=[],l.value=null,x.value=null,S.value=``,C.value=!1};Ui(async()=>{try{let e=await fetch(`/api/user/agents/${a}`,{headers:h()});e.ok&&(f.value=await e.json())}catch(e){console.error(`Failed to load agent details`,e)}await _(),m.value&&(d.value=m.value,g());let e=await fetch(`/api/user/config`,{headers:h()});e.ok&&(b.value=!!(await e.json()).feedback_enabled)});let b=F(!0),x=F(null),S=F(``),C=F(!1),w=async()=>{if(!(!b.value||C.value)){if(!x.value){alert(t(`chat.feedback.selectRating`));return}(await fetch(`/aLine truncated
`)+`\r
`}function Ke(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return`=`+(t.length==1?`0`+t:t)});t=t.replace(/ $/gm,`=20`).replace(/\t$/gm,`=09`),t.charAt(0)==`
`&&(t=`=0D`+t.slice(1)),t=t.replace(/\r(?!\n)/gm,`=0D`).replace(/\n\n/gm,`
=0A`).replace(/([^\r\n])\n/gm,`$1=0A`);for(var n=[],r=t.split(`\r
`),i=0;i<r.length;++i){var a=r[i];if(a.length==0){n.push(``);continue}for(var o=0;o<a.length;){var s=76,c=a.slice(o,o+s);c.charAt(s-1)==`=`?s--:c.charAt(s-2)==`=`?s-=2:c.charAt(s-3)==`=`&&(s-=3),c=a.slice(o,o+s),o+=s,o<a.length&&(c+=`=`),n.push(c)}}return n.join(`\r
`)}function qe(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&r.charAt(r.length-1)==`=`;)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,function(e){return String.fromCharCode(parseInt(e.slice(1),16))});return hb(t.join(`\r
`))}function Je(e,t,n){for(var r=``,i=``,a=``,o,s=0;s<10;++s){var c=t[s];if(!c||c.match(/^\s*$/))break;var l=c.match(/^(.*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case`content-location`:r=l[2].trim();break;case`content-type`:a=l[2].trim();break;case`content-transfer-encoding`:i=l[2].trim();break}}switch(++s,i.toLowerCase()){case`base64`:o=hb(ub(t.slice(s).join(``)));break;case`quoted-printable`:o=qe(t.slice(s));break;default:throw Error(`Unsupported Content-Transfer-Encoding `+i)}var u=Qe(e,r.slice(n.length),o,{unsafe:!0});a&&(u.ctype=a)}function Ye(e,t){if(re(e.slice(0,13)).toLowerCase()!=`mime-version:`)throw Error(`Unsupported MAD header`);var n=t&&t.root||``,r=(db&&Buffer.isBuffer(e)?e.toString(`binary`):re(e)).split(`\r
`),i=0,a=``;for(i=0;i<r.length;++i)if(a=r[i],/^Content-Location:/i.test(a)&&(a=a.slice(a.indexOf(`file`)),n||=a.slice(0,a.lastIndexOf(`/`)+1),a.slice(0,n.length)!=n))for(;n.length>0&&(n=n.slice(0,n.length-1),n=n.slice(0,n.lastIndexOf(`/`)+1),a.slice(0,n.length)!=n););var o=(r[1]||``).match(/boundary="(.*?)"/);if(!o)throw Error(`MAD cannot find boundary`);var s=`--`+(o[1]||``),c={FileIndex:[],FullPaths:[]};S(c);var l,u=0;for(i=0;i<r.length;++i){var d=r[i];d!==s&&d!==s+`--`||(u++&&Je(c,r.slice(l,i),n),l=i)}return c}function Xe(e,t){var n=t||{},r=n.boundary||`SheetJS`;r=`------=`+r;for(var i=[`MIME-Version: 1.0`,`Content-Type: multipart/related; boundary="`+r.slice(2)+`"`,``,``,``],a=e.FullPaths[0],o=a,s=e.FileIndex[0],c=1;c<e.FullPaths.length;++c)if(o=e.FullPaths[c].slice(a.length),s=e.FileIndex[c],!(!s.size||!s.content||o==`Sh33tJ5`)){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(e){return`_x`+e.charCodeAt(0).toString(16)+`_`}).replace(/[\u0080-\uFFFF]/g,function(e){return`_u`+e.charCodeAt(0).toString(16)+`_`});for(var l=s.content,u=db&&Buffer.isBuffer(l)?l.toString(`binary`):re(l),d=0,f=Math.min(1024,u.length),p=0,m=0;m<=f;++m)(p=u.charCodeAt(m))>=32&&p<128&&++d;var h=d>=f*4/5;i.push(r),i.push(`Content-Location: `+(n.root||`file:///C:/SheetJS/`)+o),i.push(`Content-Transfer-Encoding: `+(h?`quoted-printable`:`base64`)),i.push(`Content-Type: `+We(s,o)),i.push(``),i.push(h?Ke(u):Ge(u))}return i.push(r+`--\r
`),i.join(`\r
`)}function Ze(e){var t={};return S(t,e),t}function Qe(e,t,n,i){var a=i&&i.unsafe;a||S(e);var o=!a&&Fx.find(e,t);if(!o){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:(s.slice(-1)!=`/`&&(s+=`/`),s=(s+t).replace(`//`,`/`)),o={name:r(t),type:2},e.FileIndex.push(o),e.FullPaths.push(s),a||Fx.utils.cfb_gc(e)}return o.content=n,o.size=n?n.length:0,i&&(i.CLSID&&(o.clsid=i.CLSID),i.mt&&(o.mt=i.mt),i.ct&&(o.ct=i.ct)),o}function $e(e,t){S(e);var n=Fx.find(e,t);if(n){for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0}return!1}function et(e,t,n){S(e);var i=Fx.find(e,t);if(i){for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==i)return e.FileIndex[a].name=r(n),e.FullPaths[a]=n,!0}return!1}function tt(e){w(e,!0)}return e.find=E,e.read=x,e.parse=l,e.write=ie,e.writeFile=ne,e.utils={cfb_new:Ze,cfb_add:Qe,cfb_del:$e,cfb_mov:et,cfb_gc:tt,ReadShift:lC,CheckField:mC,prep_blob:hC,bconcat:yb,use_zlib:oe,_deflateRaw:Ae,_inflateRaw:Re,consts:te},e})(),Ix=void 0;function Lx(e){return typeof e==`string`?gb(e):Array.isArray(e)?vb(e):e}function Rx(e,t,n){if(Ix!==void 0&&Ix.writeFileSync)return n?Ix.writeFileSync(e,t,n):Ix.writeFileSync(e,t);if(typeof Deno<`u`){if(n&&typeof t==`string`)switch(n){case`utf8`:t=new TextEncoder(n).encode(t);break;case`binary`:t=gb(t);break;default:throw Error(`Unsupported encoding `+n)}return Deno.writeFileSync(e,t)}var r=n==`utf8`?CS(t):t;if(typeof IE_SaveFile<`u`)return IE_SaveFile(r,e);if(typeof Blob<`u`){var i=new Blob([Lx(r)],{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 o=document.createElement(`a`);if(o.download!=null)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<`u`&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<`u`&&typeof File<`u`&&typeof Folder<`u`)try{var s=File(e);return s.open(`w`),s.encoding=`binary`,Array.isArray(t)&&(t=_b(t)),s.write(t),s.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw Error(`cannot save file `+e)}function zx(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Bx(e,t){for(var n=[],r=zx(e),i=0;i!==r.length;++i)n[e[r[i]][t]]??(n[e[r[i]][t]]=r[i]);return n}function Vx(e){for(var t=[],n=zx(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Hx(e){for(var t=[],n=zx(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}function Ux(e){for(var t=[],n=zx(e),r=0;r!==n.length;++r)t[e[n[r]]]??(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}var Wx=new Date(1899,11,30,0,0,0);function Gx(e,t){var n=e.getTime();t&&(n-=1462*24*60*60*1e3);var r=Wx.getTime()+(e.getTimezoneOffset()-Wx.getTimezoneOffset())*6e4;return(n-r)/(1440*60*1e3)}var Kx=new Date,qx=Wx.getTime()+(Kx.getTimezoneOffset()-Wx.getTimezoneOffset())*6e4,Jx=Kx.getTimezoneOffset();function Yx(e){var t=new Date;return t.setTime(e*24*60*60*1e3+qx),t.getTimezoneOffset()!==Jx&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Jx)*6e4),t}var Xx=new Date(`2017-02-19T19:06:09.000Z`),Zx=isNaN(Xx.getFullYear())?new Date(`2/19/17`):Xx,Qx=Zx.getFullYear()==2017;function $x(e,t){var n=new Date(e);if(Qx)return t>0?n.setTime(n.getTime()+n.getTimezoneOffset()*60*1e3):t<0&&n.setTime(n.getTime()-n.getTimezoneOffset()*60*1e3),n;if(e instanceof Date)return e;if(Zx.getFullYear()==1917&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(``+r)>-1||n.setFullYear(n.getFullYear()+100),n}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 eS(e,t){if(db&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return CS(e.slice(2).toString(`utf16le`));if(e[1]==254&&e[2]==255)return CS(nb(e.slice(2).toString(`binary`)))}return e.toString(`binary`)}if(typeof TextDecoder<`u`)try{if(t){if(e[0]==255&&e[1]==254)return CS(new TextDecoder(`utf-16le`).decode(e.slice(2)));if(e[0]==254&&e[1]==255)return CS(new TextDecoder(`utf-16be`).decode(e.slice(2)))}var n={"€":`€`,"‚":`‚`,ƒ:`ƒ`,"„":`„`,"…":`…`,"†":`†`,"‡":`‡`,ˆ:`ˆ`,"‰":`‰`,Š:`Š`,"‹":`‹`,Œ:`Œ`,Ž:`Ž`,"‘":`‘`,"’":`’`,"“":`“`,"”":`”`,"•":`•`,"–":`–`,"—":`—`,"˜":`˜`,"™":`™`,š:`š`,"›":`›`,œ:`œ`,ž:`ž`,Ÿ:`Ÿ`};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder(`latin1`).decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–— Line truncated
`,cS=Vx({"&quot;":`"`,"&apos;":`'`,"&gt;":`>`,"&lt;":`<`,"&amp;":`&`}),lS=/[&<>'"]/g,uS=/[\u0000-\u0008\u000b-\u001f]/g;function dS(e){return(e+``).replace(lS,function(e){return cS[e]}).replace(uS,function(e){return`_x`+(`000`+e.charCodeAt(0).toString(16)).slice(-4)+`_`})}function fS(e){return dS(e).replace(/ /g,`_x0020_`)}var pS=/[\u0000-\u001f]/g;function mS(e){return(e+``).replace(lS,function(e){return cS[e]}).replace(/\n/g,`<br/>`).replace(pS,function(e){return`&#x`+(`000`+e.charCodeAt(0).toString(16)).slice(-4)+`;`})}function hS(e){return(e+``).replace(lS,function(e){return cS[e]}).replace(pS,function(e){return`&#x`+e.charCodeAt(0).toString(16).toUpperCase()+`;`})}function gS(e){return e.replace(/(\r\n|[\r\n])/g,`&#10;`)}function _S(e){switch(e){case 1:case!0:case`1`:case`true`:case`TRUE`:return!0;default:return!1}}function vS(e){for(var t=``,n=0,r=0,i=0,a=0,o=0,s=0;n<e.length;){if(r=e.charCodeAt(n++),r<128){t+=String.fromCharCode(r);continue}if(i=e.charCodeAt(n++),r>191&&r<224){o=(r&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(a=e.charCodeAt(n++),r<240){t+=String.fromCharCode((r&15)<<12|(i&63)<<6|a&63);continue}o=e.charCodeAt(n++),s=((r&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function yS(e){var t=pb(2*e.length),n,r,i=1,a=0,o=0,s;for(r=0;r<e.length;r+=i)i=1,(s=e.charCodeAt(r))<128?n=s:s<224?(n=(s&31)*64+(e.charCodeAt(r+1)&63),i=2):s<240?(n=(s&15)*4096+(e.charCodeAt(r+1)&63)*64+(e.charCodeAt(r+2)&63),i=3):(i=4,n=(s&7)*262144+(e.charCodeAt(r+1)&63)*4096+(e.charCodeAt(r+2)&63)*64+(e.charCodeAt(r+3)&63),n-=65536,o=55296+(n>>>10&1023),n=56320+(n&1023)),o!==0&&(t[a++]=o&255,t[a++]=o>>>8,o=0),t[a++]=n%256,t[a++]=n>>>8;return t.slice(0,a).toString(`ucs2`)}function bS(e){return fb(e,`binary`).toString(`utf8`)}var xS=`foo bar baz☃🍣`,SS=db&&(bS(xS)==vS(xS)&&bS||yS(xS)==vS(xS)&&yS)||vS,CS=db?function(e){return fb(e,`utf8`).toString(`binary`)}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(r&63)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(r&63)))}return t.join(``)},wS=(function(){var e=[[`nbsp`,` `],[`middot`,`·`],[`quot`,`"`],[`apos`,`'`],[`gt`,`>`],[`lt`,`<`],[`amp`,`&`]].map(function(e){return[RegExp(`&`+e[0]+`;`,`ig`),e[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,``),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}})(),TS=/(^\s|\s$|\n)/;function ES(e,t){return`<`+e+(t.match(TS)?` xml:space="preserve"`:``)+`>`+t+`</`+e+`>`}function DS(e){return zx(e).map(function(t){return` `+t+`="`+e[t]+`"`}).join(``)}function Y(e,t,n){return`<`+e+(n==null?``:DS(n))+(t==null?`/`:(t.match(TS)?` xml:space="preserve"`:``)+`>`+t+`</`+e)+`>`}function OS(e,t){try{return e.toISOString().replace(/\.\d*/,``)}catch(e){if(t)throw e}return``}function kS(e,t){switch(typeof e){case`string`:var n=Y(`vt:lpwstr`,dS(e));return t&&(n=n.replace(/&quot;/g,`_x0022_`)),n;case`number`:return Y((e|0)==e?`vt:i4`:`vt:r8`,dS(String(e)));case`boolean`:return Y(`vt:bool`,e?`true`:`false`)}if(e instanceof Date)return Y(`vt:filetime`,OS(e));throw Error(`Unable to serialize `+e)}var AS={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`},jS=[`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`],MS={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 NS(e,t){for(var n=1-2*(e[t+7]>>>7),r=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return r==2047?i==0?n*(1/0):NaN:(r==0?r=-1022:(r-=1023,i+=2**52),n*2**(r-52)*i)}function PS(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=r?-t:t;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*2**(52-i),i<=-1023&&(!isFinite(a)||a<2**52)?i=-1022:(a-=2**52,i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[n+s]=a&255;e[n+6]=(i&15)<<4|a&15,e[n+7]=i>>4|r}var FS=function(e){for(var t=[],n=10240,r=0;r<e[0].length;++r)if(e[0][r])for(var i=0,a=e[0][r].length;i<a;i+=n)t.push.apply(t,e[0][r].slice(i,i+n));return t},IS=db?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:fb(e)})):FS(e)}:FS,LS=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(iC(e,i)));return r.join(``).replace(xb,``)},RS=db?function(e,t,n){return Buffer.isBuffer(e)?e.toString(`utf16le`,t,n).replace(xb,``):LS(e,t,n)}:LS,zS=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push((`0`+e[i].toString(16)).slice(-2));return r.join(``)},BS=db?function(e,t,n){return Buffer.isBuffer(e)?e.toString(`hex`,t,t+n):zS(e,t,n)}:zS,VS=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(rC(e,i)));return r.join(``)},HS=db?function(e,t,n){return Buffer.isBuffer(e)?e.toString(`utf8`,t,n):VS(e,t,n)}:VS,US=function(e,t){var n=oC(e,t);return n>0?HS(e,t+4,t+4+n-1):``},WS=US,GS=function(e,t){var n=oC(e,t);return n>0?HS(e,t+4,t+4+n-1):``},KS=GS,qS=function(e,t){var n=2*oC(e,t);return n>0?HS(e,t+4,t+4+n-1):``},JS=qS,YS=function(e,t){var n=oC(e,t);return n>0?RS(e,t+4,t+4+n):``},XS=YS,ZS=function(e,t){var n=oC(e,t);return n>0?HS(e,t+4,t+4+n):``},QS=ZS,$S=function(e,t){return NS(e,t)},eC=$S,tC=function(e){return Array.isArray(e)||typeof Uint8Array<`u`&&e instanceof Uint8Array};db&&(WS=function(e,t){if(!Buffer.isBuffer(e))return US(e,t);var n=e.readUInt32LE(t);return n>0?e.toString(`utf8`,t+4,t+4+n-1):``},KS=function(e,t){if(!Buffer.isBuffer(e))return GS(e,t);var n=e.readUInt32LE(t);return n>0?e.toString(`utf8`,t+4,t+4+n-1):``},JS=function(e,t){if(!Buffer.isBuffer(e))return qS(e,t);var n=2*e.readUInt32LE(t);return e.toString(`utf16le`,t+4,t+4+n-1)},XS=function(e,t){if(!Buffer.isBuffer(e))return YS(e,t);var n=e.readUInt32LE(t);return e.toString(`utf16le`,t+4,t+4+n)},QS=function(e,t){if(!Buffer.isBuffer(e))return ZS(e,t);var n=e.readUInt32LE(t);return e.toString(`utf8`,t+4,t+4+n)},eC=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):$S(e,t)},tC=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<`u`&&e instanceof Uint8Array});function nC(){RS=function(e,t,n){return Line truncated
`),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var n=0;n<e.length;++n)t.push(` <manifest:file-entry manifest:full-path="`+e[n][0]+`" manifest:media-type="`+e[n][1]+`"/>
`);return t.push(`</manifest:manifest>`),t.join(``)}function Ww(e,t,n){return[` <rdf:Description rdf:about="`+e+`">
`,` <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/`+(n||`odf`)+`#`+t+`"/>
`,` </rdf:Description>
`].join(``)}function Gw(e,t){return[` <rdf:Description rdf:about="`+e+`">
`,` <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="`+t+`"/>
`,` </rdf:Description>
`].join(``)}function Kw(e){var t=[sS];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var n=0;n!=e.length;++n)t.push(Ww(e[n][0],e[n][1])),t.push(Gw(``,e[n][0]));return t.push(Ww(``,`Document`,`pkg`)),t.push(`</rdf:RDF>`),t.join(``)}function qw(){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 `+qy.version+`</meta:generator></office:meta></office:document-meta>`}var Jw=[[`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 Yw(e,t,n,r,i){i[e]!=null||t==null||t===``||(i[e]=t,t=dS(t),r[r.length]=n?Y(e,t,n):ES(e,t))}function Xw(e,t){var n=t||{},r=[sS,Y(`cp:coreProperties`,null,{"xmlns:cp":AS.CORE_PROPS,"xmlns:dc":AS.dc,"xmlns:dcterms":AS.dcterms,"xmlns:dcmitype":AS.dcmitype,"xmlns:xsi":AS.xsi})],i={};if(!e&&!n.Props)return r.join(``);e&&(e.CreatedDate!=null&&Yw(`dcterms:created`,typeof e.CreatedDate==`string`?e.CreatedDate:OS(e.CreatedDate,n.WTF),{"xsi:type":`dcterms:W3CDTF`},r,i),e.ModifiedDate!=null&&Yw(`dcterms:modified`,typeof e.ModifiedDate==`string`?e.ModifiedDate:OS(e.ModifiedDate,n.WTF),{"xsi:type":`dcterms:W3CDTF`},r,i));for(var a=0;a!=Jw.length;++a){var o=Jw[a],s=n.Props&&n.Props[o[1]]!=null?n.Props[o[1]]:e?e[o[1]]:null;s===!0?s=`1`:s===!1?s=`0`:typeof s==`number`&&(s=String(s)),s!=null&&Yw(o[0],s,null,r,i)}return r.length>2&&(r[r.length]=`</cp:coreProperties>`,r[1]=r[1].replace(`/>`,`>`)),r.join(``)}var Zw=[[`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`]],Qw=[`Worksheets`,`SheetNames`,`NamedRanges`,`DefinedNames`,`Chartsheets`,`ChartNames`];function $w(e){var t=[],n=Y;return e||={},e.Application=`SheetJS`,t[t.length]=sS,t[t.length]=Y(`Properties`,null,{xmlns:AS.EXT_PROPS,"xmlns:vt":AS.vt}),Zw.forEach(function(r){if(e[r[1]]!==void 0){var i;switch(r[2]){case`string`:i=dS(String(e[r[1]]));break;case`bool`:i=e[r[1]]?`true`:`false`;break}i!==void 0&&(t[t.length]=n(r[0],i))}}),t[t.length]=n(`HeadingPairs`,n(`vt:vector`,n(`vt:variant`,`<vt:lpstr>Worksheets</vt:lpstr>`)+n(`vt:variant`,n(`vt:i4`,String(e.Worksheets))),{size:2,baseType:`variant`})),t[t.length]=n(`TitlesOfParts`,n(`vt:vector`,e.SheetNames.map(function(e){return`<vt:lpstr>`+dS(e)+`</vt:lpstr>`}).join(``),{size:e.Worksheets,baseType:`lpstr`})),t.length>2&&(t[t.length]=`</Properties>`,t[1]=t[1].replace(`/>`,`>`)),t.join(``)}function eT(e){var t=[sS,Y(`Properties`,null,{xmlns:AS.CUST_PROPS,"xmlns:vt":AS.vt})];if(!e)return t.join(``);var n=1;return zx(e).forEach(function(r){++n,t[t.length]=Y(`property`,kS(e[r],!0),{fmtid:`{D5CDD505-2E9C-101B-9397-08002B2CF9AE}`,pid:n,name:dS(r)})}),t.length>2&&(t[t.length]=`</Properties>`,t[1]=t[1].replace(`/>`,`>`)),t.join(``)}var tT={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 nT(e,t){var n=[];return zx(tT).map(function(e){for(var t=0;t<Jw.length;++t)if(Jw[t][1]==e)return Jw[t];for(t=0;t<Zw.length;++t)if(Zw[t][1]==e)return Zw[t];throw e}).forEach(function(r){if(e[r[1]]!=null){var i=t&&t.Props&&t.Props[r[1]]!=null?t.Props[r[1]]:e[r[1]];switch(r[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/,``)),n.push(ES(tT[r[1]]||r[1],i))}}),Y(`DocumentProperties`,n.join(``),{xmlns:MS.o})}function rT(e,t){var n=[`Worksheets`,`SheetNames`],r=`CustomDocumentProperties`,i=[];return e&&zx(e).forEach(function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<Jw.length;++r)if(t==Jw[r][1])return;for(r=0;r<Zw.length;++r)if(t==Zw[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var a=e[t],o=`string`;typeof a==`number`?(o=`float`,a=String(a)):a===!0||a===!1?(o=`boolean`,a=a?`1`:`0`):a=String(a),i.push(Y(fS(t),a,{"dt:dt":o}))}}),t&&zx(t).forEach(function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&!(e&&Obje Line truncated
`;n.push(`P;PGeneral`),n.push(`F;P0;DG0G8;M255`),e[`!cols`]&&l(n,e[`!cols`]),e[`!rows`]&&u(n,e[`!rows`]),n.push(`B;Y`+(i.e.r-i.s.r+1)+`;X`+(i.e.c-i.s.c+1)+`;D`+[i.s.c,i.s.r,i.e.c,i.e.r].join(` `));for(var d=i.s.r;d<=i.e.r;++d)for(var f=i.s.c;f<=i.e.c;++f){var p=MC({r:d,c:f});a=o?(e[d]||[])[f]:e[p],!(!a||a.v==null&&(!a.f||a.F))&&r.push(c(a,e,d,f,t))}return n.join(s)+s+r.join(s)+s+`E`+s}return{to_workbook:s,to_sheet:o,from_sheet:d}})(),nE=(function(){function e(e,n){switch(n.type){case`base64`:return t(ub(e),n);case`binary`:return t(e,n);case`buffer`:return t(db&&Buffer.isBuffer(e)?e.toString(`binary`):_b(e),n);case`array`:return t(eS(e),n)}throw Error(`Unrecognized type `+n.type)}function t(e,t){for(var n=e.split(`
`),r=-1,i=-1,a=0,o=[];a!==n.length;++a){if(n[a].trim()===`BOT`){o[++r]=[],i=0;continue}if(!(r<0)){var s=n[a].trim().split(`,`),c=s[0],l=s[1];++a;for(var u=n[a]||``;(u.match(/["]/g)||[]).length&1&&a<n.length-1;)u+=`
`+n[++a];switch(u=u.trim(),+c){case-1:if(u===`BOT`){o[++r]=[],i=0;continue}else if(u!==`EOD`)throw Error(`Unrecognized DIF special command `+u);break;case 0:u===`TRUE`?o[r][i]=!0:u===`FALSE`?o[r][i]=!1:isNaN(rS(l))?isNaN(aS(l).getDate())?o[r][i]=l:o[r][i]=$x(l):o[r][i]=rS(l),++i;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,`"`),sb&&u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),o[r][i++]=u===``?null:u;break}if(u===`EOD`)break}}return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}function n(t,n){return BC(e(t,n),n)}function r(e,t){return RC(n(e,t),t)}return{to_workbook:r,to_sheet:n,from_sheet:(function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+`,`+r),e.push(`"`+i.replace(/"/g,`""`)+`"`)},t=function(e,t,n,r){e.push(t+`,`+n),e.push(t==1?`"`+r.replace(/"/g,`""`)+`"`:r)};return function(n){var r=[],i=FC(n[`!ref`]),a,o=Array.isArray(n);e(r,`TABLE`,0,1,`sheetjs`),e(r,`VECTORS`,0,i.e.r-i.s.r+1,``),e(r,`TUPLES`,0,i.e.c-i.s.c+1,``),e(r,`DATA`,0,0,``);for(var s=i.s.r;s<=i.e.r;++s){t(r,-1,0,`BOT`);for(var c=i.s.c;c<=i.e.c;++c){var l=MC({r:s,c});if(a=o?(n[s]||[])[c]:n[l],!a){t(r,1,0,``);continue}switch(a.t){case`n`:var u=sb?a.w:a.v;!u&&a.v!=null&&(u=a.v),u==null?sb&&a.f&&!a.F?t(r,1,0,`=`+a.f):t(r,1,0,``):t(r,0,u,`V`);break;case`b`:t(r,0,a.v?1:0,a.v?`TRUE`:`FALSE`);break;case`s`:t(r,1,0,!sb||isNaN(a.v)?a.v:`="`+a.v+`"`);break;case`d`:a.w||=Dx(a.z||Fb[14],Gx($x(a.v))),sb?t(r,0,a.w,`V`):t(r,1,0,a.w);break;default:t(r,1,0,``)}}}return t(r,-1,0,`EOD`),r.join(`\r
`)}})()}})(),rE=(function(){function e(e){return e.replace(/\\b/g,`\\`).replace(/\\c/g,`:`).replace(/\\n/g,`
`)}function t(e){return e.replace(/\\/g,`\\b`).replace(/:/g,`\\c`).replace(/\n/g,`\\n`)}function n(t,n){for(var r=t.split(`
`),i=-1,a=-1,o=0,s=[];o!==r.length;++o){var c=r[o].trim().split(`:`);if(c[0]===`cell`){var l=jC(c[1]);if(s.length<=l.r)for(i=s.length;i<=l.r;++i)s[i]||(s[i]=[]);switch(i=l.r,a=l.c,c[2]){case`t`:s[i][a]=e(c[3]);break;case`v`:s[i][a]=+c[3];break;case`vtf`:var u=c[c.length-1];case`vtc`:switch(c[3]){case`nl`:s[i][a]=!!+c[4];break;default:s[i][a]=+c[4];break}c[2]==`vtf`&&(s[i][a]=[s[i][a],u])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}function r(e,t){return BC(n(e,t),t)}function i(e,t){return RC(r(e,t),t)}var a=[`socialcalc:version:1.5`,`MIME-Version: 1.0`,`Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave`].join(`
`),o=[`--SocialCalcSpreadsheetControlSave`,`Content-type: text/plain; charset=UTF-8`].join(`
`)+`
`,s=[`# SocialCalc Spreadsheet Control Save`,`part:sheet`].join(`
`),c=`--SocialCalcSpreadsheetControlSave--`;function l(e){if(!e||!e[`!ref`])return``;for(var n=[],r=[],i,a=``,o=NC(e[`!ref`]),s=Array.isArray(e),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l)if(a=MC({r:c,c:l}),i=s?(e[c]||[])[l]:e[a],!(!i||i.v==null||i.t===`z`)){switch(r=[`cell`,a,`t`],i.t){case`s`:case`str`:r.push(t(i.v));break;case`n`:i.f?(r[2]=`vtf`,r[3]=`n`,r[4]=i.v,r[5]=t(i.f)):(r[2]=`v`,r[3]=i.v);break;case`b`:r[2]=`vt`+(i.f?`f`:`c`),r[3]=`nl`,r[4]=i.v?`1`:`0`,r[5]=t(i.f||(i.v?`TRUE`:`FALSE`));break;case`d`:var u=Gx($x(i.v));r[2]=`vtc`,r[3]=`nd`,r[4]=``+u,r[5]=i.w||Dx(i.z||Fb[14],u);break;case`e`:continue}n.push(r.join(`:`))}return n.push(`sheet:c:`+(o.e.c-o.s.c+1)+`:r:`+(o.e.r-o.s.r+1)+`:tvf:1`),n.push(`valueformat:1:text-wiki`),n.join(`
`)}function u(e){return[a,o,s,o,l(e),c].join(`
`)}return{to_workbook:i,to_sheet:r,from_sheet:u}})(),iE=(function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:e===``||(e===`TRUE`?t[n][r]=!0:e===`FALSE`?t[n][r]=!1:isNaN(rS(e))?isNaN(aS(e).getDate())?t[n][r]=e:t[n][r]=$x(e):t[n][r]=rS(e))}function t(t,n){var r=n||{},i=[];if(!t||t.length===0)return i;for(var a=t.split(/[\r\n]/),o=a.length-1;o>=0&&a[o].length===0;)--o;for(var s=10,c=0,l=0;l<=o;++l)c=a[l].indexOf(` `),c==-1?c=a[l].length:c++,s=Math.max(s,c);for(l=0;l<=o;++l){i[l]=[];var u=0;for(e(a[l].slice(0,s).trim(),i,l,u,r),u=1;u<=(a[l].length-s)/10+1;++u)e(a[l].slice(s+(u-1)*10,s+u*10).trim(),i,l,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var n={44:`,`,9:` `,59:`;`,124:`|`},r={44:3,9:2,59:1,124:0};function i(e){for(var t={},i=!1,a=0,o=0;a<e.length;++a)(o=e.charCodeAt(a))==34?i=!i:!i&&o in n&&(t[o]=(t[o]||0)+1);for(a in o=[],t)Object.prototype.hasOwnProperty.call(t,a)&&o.push([t[a],a]);if(!o.length)for(a in t=r,t)Object.prototype.hasOwnProperty.call(t,a)&&o.push([t[a],a]);return o.sort(function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]}),n[o.pop()[1]]||44}function a(e,t){var n=t||{},r=``;ob!=null&&n.dense==null&&(n.dense=ob);var a=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};e.slice(0,4)==`sep=`?e.charCodeAt(5)==13&&e.charCodeAt(6)==10?(r=e.charAt(4),e=e.slice(7)):e.charCodeAt(5)==13||e.charCodeAt(5)==10?(r=e.charAt(4),e=e.slice(6)):r=i(e.slice(0,1024)):r=n&&n.FS?n.FS:i(e.slice(0,1024));var s=0,c=0,l=0,u=0,d=0,f=r.charCodeAt(0),p=!1,m=0,h=e.charCodeAt(0);e=e.replace(/\r\n/gm,`
`);var g=n.dateNF==null?null:Mx(n.dateNF);function _(){var t=e.slice(u,d),r={};if(t.charAt(0)==`"`&&t.charAt(t.length-1)==`"`&&(t=t.slice(1,-1).replace(/""/g,`"`)),t.length===0)r.t=`z`;else if(n.raw)r.t=`s`,r.v=t;else if(t.trim().length===0)r.t=`s`,r.v=t;else if(t.charCodeAt(0)==61)t.charCodeAt(1)==34&&t.charCodeAt(t.length-1)==34?(r.t=`s`,r.v=t.slice(2,-1).replace(/""/g,`"`)):TD(t)?(r.t=`n`,r.f=t.slice(1)):(r.t=`s`,r.v=t);else if(t==`TRUE`)r.t=`b`,r.v=!0;else if(t==`FALSE`)r.t=`b`,r.v=!1;else if(!isNaN(l=rS(t)))r.t=`n`,n.cellText!==!1&&(r.w=t),r.v=l;else if(!isNaN(aS(t).getDate())||g&&t.match(g)){r.z=n.dateNF||Fb[14];var i=0;g&&t.match(g)&&(t=Nx(t,n.dateNF,t.match(g)||[]),i=1),n.cellDates?(r.t=`d`,r.v=$x(t,i)):(r.t=`n`,r.v=Gx($x(t,i))),n.cellText!==!1&&(r.w=Dx(r.z,r.v instanceof Date?Gx(r.v):r.v)),n.cellNF||delete r.z}else r.t=`s`,r.v=t;if(r.t==`z`||(n.dense?(a[s]||(a[s]=[]),a[s][c]=r):a[MC({c,r:s})]=r),u=d+1,h=e.charCodeAt(u),o.e.c<c&&(o.e.c=c),o.e.r<s&&(o.e.r=s),m==f)++c;else if(c=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}outer:for(;d<e.length;++d)switch(m=e.charCodeAt(d)){case 34:h===34&&(p=!p);break;case f:case 10:case 13:if(!p&&_())break outer;break;default:break}return d-u>0&&_(),a[`!ref`]=PC(o),a}function o(e,n){return!(n&&n.PRN)||n.FS||e.slice(0,4)==`sep=`||e.indexOf(` `)>=0||e.indexOf(`,`)>=0||e.indexOf(`;`)>=0?a(e,n):BC(t(e,n),n)}function s(e,t){var n=``,r=t.type==`string`?[0,0,0,0]:IM(e,t);switch(t.type){case`base64`:n=ub(e);break;case`binary`:n=e;break;case`buffer`:n=t.codepage==65001?e.toString(`utf8`):t.codepage&&ab!==void 0?ab.utils.decode(t.codepage,e):db&&Buffer.isBuffer(e)?e.toString(`binary`):_b(e);break;case`array`:n=eS(e);break;case`string`:n=e;break;default:throw Error(`Unrecognized type `+t.type)}return r[0]==239&&r[1]==187&&r[2]==191?n=SS(n.slice(3)):t.type!=`string`&&t.type!=`buffer`&&t.codepage==65001?n=SS(n):t.type==`binary`&&ab!==void 0&&t.codepage&&(n=ab.utils.decode(t.codepage,ab.utils.encode(28591,n))),n.slice(0,19)==`socialcalc:version:`?rE.to_sheet(t.type==`string`?n:SS(n),t):o(n,t)}function c(e,t){return RC(s(e,t),t)}function l(e){for(var t=[],n=FC(e[`!ref`]),r,i=Array.isArray(e),a=n.s.r;a<=n.e.r;++a){for(var o=[],s=n.s.c;s<=n.e.c;++s){var c=MC({r:a,c:s});if(r=i?(e[a]||[])[s]:e[c],!r||r.v==null){o.push(` `);continue}for(var l=(r.w||(LC(r),r.w)||``).slice(0,10);l.length<10;)l+=` `;o.push(l+(s===0?` `:``))}t.push(o.join(``))}return t.join(`
`)}return{to_workbook:c,to_sheet:s,from_sheet:l}})(),aE=(function(){function e(e,t,n){if(e){hC(e,e.l||0);for(var r=n.Enum||ae;e.l<e.length;){var i=e.read_shift(2),a=r[i]||r[65535],o=e.read_shift(2),s=e.l+o,c=a.f&&a.f(e,o,n);if(e.l=s,t(c,a,i))return}}}function t(e,t){switch(t.type){case`base64`:return n(hb(ub(e)),t);case`binary`:return n(hb(e),t);case`buffer`:case`array`:return n(e,t)}throw`Unsupported type `+t.type}function n(t,n){if(!t)return t;var r=n||{};ob!=null&&r.dense==null&&(r.dense=ob);var i=r.dense?[]:{},a=`Sheet1`,o=``,s=0,c={},l=[],u=[],d={s:{r:0,c:0},e:{r:0,c:0}},f=r.sheetRows||0;if(t[2]==0&&(t[3]==8||t[3]==9)&&t.length>=16&&t[14]==5&&t[15]===108)throw Error(`Unsupported Works 3 for Mac file`);if(t[2]==2)r.Enum=ae,e(t,function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:d=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:n==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15&&(e[1].z=r.dateNF||Fb[14],r.cellDates&&(e[1].t=`d`,e[1].v=Yx(e[1].v))),r.qpro&&e[3]>s&&(i[`!ref`]=PC(d),c[a]=i,l.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a=o||`Sheet`+(s+1),o=``);var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[MC(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,e[1].z!=null&&(u.z=e[1].z),e[1].f!=null&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[MC(e[0])]=e[1];break;default:}},r);else if(t[2]==26||t[2]==14)r.Enum=oe,t[2]==14&&(r.qpro=!0,t.l=0),e(t,function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i[`!ref`]=PC(d),c[a]=i,l.push(a),i=r.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a=`Sheet`+(s+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[MC(e[0])]=e[1],d.e.c<e[0].c&&(d.e.c=e[0].c),d.e.r<e[0].r&&(d.e.r=e[0].r);break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==s&&(a=e[1]);break;default:break}},r);else throw Error(`Unrecognized LOTUS BOF `+t[2]);if(i[`!ref`]=PC(d),c[o||a]=i,l.push(o||a),!u.length)return{SheetNames:l,Sheets:c};for(var p={},m=[],h=0;h<u.length;++h)c[l[h]]?(m.push(u[h]||l[h]),p[u[h]]=c[u[h]]||c[l[h]]):(m.push(u[h]),p[u[h]]={"!ref":`A1`});return{SheetNames:m,Sheets:p}}function r(e,t){var n=t||{};if(+n.codepage>=0&&eb(+n.codepage),n.type==`string`)throw Error(`Cannot write WK1 to JS string`);var r=_C(),i=FC(e[`!ref`]),o=Array.isArray(e),s=[];Q(r,0,a(1030)),Q(r,6,c(i));for(var l=Math.min(i.e.r,8191),u=i.s.r;u<=l;++u)for(var f=CC(u),m=i.s.c;m<=i.e.c;++m){u===i.s.r&&(s[m]=DC(m));var g=s[m]+f,_=o?(e[u]||[])[m]:e[g];if(!(!_||_.t==`z`))if(_.t==`n`)(_.v|0)==_.v&&_.v>=-32768&&_.v<=32767?Q(r,13,p(u,m,_.v)):Q(r,14,h(u,m,_.v));else{var v=LC(_);Q(r,15,d(u,m,v.slice(0,239)))}}return Q(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&eb(+n.codepage),n.type==`string`)throw Error(`Cannot write WK3 to JS string`);var r=_C();Q(r,0,o(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})[`!ref`]&&Q(r,27,ie(e.SheetNames[i],a++));var s=0;for(i=0;i<e.SheetNames.length;++i){var c=e.Sheets[e.SheetNames[i]];if(!(!c||!c[`!ref`])){for(var l=FC(c[`!ref`]),u=Array.isArray(c),d=[],f=Math.min(l.e.r,8191),p=l.s.r;p<=f;++p)for(var m=CC(p),h=l.s.c;h<=l.e.c;++h){p===l.s.r&&(d[h]=DC(h));var g=d[h]+m,_=u?(c[p]||[])[h]:c[g];if(!(!_||_.t==`z`))if(_.t==`n`)Q(r,23,E(p,h,s,_.v));else{var v=LC(_);Q(r,22,C(p,h,s,v.slice(0,239)))}}++s}}return Q(r,1),r.end()}function a(e){var t=X(2);return t.write_shift(2,e),t}function o(e){var t=X(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a<e.SheetNames.length;++a){var o=e.SheetNames[a],s=e.Sheets[o];if(!(!s||!s[`!ref`])){++i;var c=NC(s[`!ref`]);n<c.e.r&&(n=c.e.r),r<c.e.c&&(r=c.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return t==8&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),t==12&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),t==12&&n.qpro&&(e.l+=2),r.s.c==65535&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function c(e){var t=X(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function l(e,t,n){var r=[{c:0,r:0},{t:`n`,v:0},0,0];return n.qpro&&n.vers!=20768?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=l(e,t,n);if(i[1].t=`s`,n.vers==20768){e.l++;var a=e.read_shift(1);return i[1].v=e.read_shift(a,`utf8`),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,`cstr`),i}function d(e,t,n){var r=X(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shif Line truncated
<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 cD(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=MC(n);var r=e.read_shift(1);return r&2&&(t.l=`1`),r&8&&(t.a=`1`),t}var lD=1024;function uD(e,t){for(var n=[21600,21600],r=[`m0,0l0`,n[1],n[0],n[1],n[0],`0xe`].join(`,`),i=[Y(`xml`,null,{"xmlns:v":MS.v,"xmlns:o":MS.o,"xmlns:x":MS.x,"xmlns:mv":MS.mv}).replace(/\/>/,`>`),Y(`o:shapelayout`,Y(`o:idmap`,null,{"v:ext":`edit`,data:e}),{"v:ext":`edit`}),Y(`v:shapetype`,[Y(`v:stroke`,null,{joinstyle:`miter`}),Y(`v:path`,null,{gradientshapeok:`t`,"o:connecttype":`rect`})].join(``),{id:`_x0000_t202`,"o:spt":202,coordsize:n.join(`,`),path:r})];lD<e*1e3;)lD+=1e3;return t.forEach(function(e){var t=jC(e[0]),n={color2:`#BEFF82`,type:`gradient`};n.type==`gradient`&&(n.angle=`-180`);var r=Y(`v:fill`,n.type==`gradient`?Y(`o:fill`,null,{type:`gradientUnscaled`,"v:ext":`view`}):null,n);++lD,i=i.concat([`<v:shape`+DS({id:`_x0000_s`+lD,type:`#_x0000_t202`,style:`position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10`+(e[1].hidden?`;visibility:hidden`:``),fillcolor:`#ECFAD4`,strokecolor:`#edeaa1`})+`>`,r,Y(`v:shadow`,null,{on:`t`,obscured:`t`}),Y(`v:path`,null,{"o:connecttype":`none`}),`<v:textbox><div style="text-align:left"></div></v:textbox>`,`<x:ClientData ObjectType="Note">`,`<x:MoveWithCells/>`,`<x:SizeWithCells/>`,ES(`x:Anchor`,[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(`,`)),ES(`x:AutoFill`,`False`),ES(`x:Row`,String(t.r)),ES(`x:Column`,String(t.c)),e[1].hidden?``:`<x:Visible/>`,`</x:ClientData>`,`</v:shape>`])}),i.push(`</xml>`),i.join(``)}function dD(e){var t=[sS,Y(`comments`,null,{xmlns:jS[0]})],n=[];return t.push(`<authors>`),e.forEach(function(e){e[1].forEach(function(e){var r=dS(e.a);n.indexOf(r)==-1&&(n.push(r),t.push(`<author>`+r+`</author>`)),e.T&&e.ID&&n.indexOf(`tc=`+e.ID)==-1&&(n.push(`tc=`+e.ID),t.push(`<author>tc=`+e.ID+`</author>`))})}),n.length==0&&(n.push(`SheetJ5`),t.push(`<author>SheetJ5</author>`)),t.push(`</authors>`),t.push(`<commentList>`),e.forEach(function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf(`tc=`+e[1][0].ID):e[1].forEach(function(e){e.a&&(r=n.indexOf(dS(e.a))),i.push(e.t||``)}),t.push(`<comment ref="`+e[0]+`" authorId="`+r+`"><text>`),i.length<=1)t.push(ES(`t`,dS(i[0]||``)));else{for(var a=`Comment:
`+i[0]+`
`,o=1;o<i.length;++o)a+=`Reply:
`+i[o]+`
`;t.push(ES(`t`,dS(a)))}t.push(`</text></comment>`)}),t.push(`</commentList>`),t.length>2&&(t[t.length]=`</comments>`,t[1]=t[1].replace(`/>`,`>`)),t.join(``)}function fD(e,t,n){var r=[sS,Y(`ThreadedComments`,null,{xmlns:AS.TCMNT}).replace(/[\/]>/,`>`)];return e.forEach(function(e){var i=``;(e[1]||[]).forEach(function(a,o){if(!a.T){delete a.ID;return}a.a&&t.indexOf(a.a)==-1&&t.push(a.a);var s={ref:e[0],id:`{54EE7951-7262-4200-6969-`+(`000000000000`+ n.tcid++).slice(-12)+`}`};o==0?i=s.id:s.parentId=i,a.ID=s.id,a.a&&(s.personId=`{54EE7950-7262-4200-6969-`+(`000000000000`+t.indexOf(a.a)).slice(-12)+`}`),r.push(Y(`threadedComment`,ES(`text`,a.t||``),s))})}),r.push(`</ThreadedComments>`),r.join(``)}function pD(e){var t=[sS,Y(`personList`,null,{xmlns:AS.TCMNT,"xmlns:x":jS[0]}).replace(/[\/]>/,`>`)];return e.forEach(function(e,n){t.push(Y(`person`,null,{displayName:e,id:`{54EE7950-7262-4200-6969-`+(`000000000000`+n).slice(-12)+`}`,userId:e,providerId:`None`}))}),t.push(`</personList>`),t.join(``)}function mD(e){var t={};t.iauthor=e.read_shift(4);var n=fw(e,16);return t.rfx=n.s,t.ref=MC(n.s),e.l+=16,t}function hD(e,t){return t??=X(36),t.write_shift(4,e[1].iauthor),pw(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var gD=UC;function _D(e){return WC(e.slice(0,54))}function vD(e){var t=_C(),n=[];return Z(t,628),Z(t,630),e.forEach(function(e){e[1].forEach(function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Z(t,632,_D(e.a)))})}),Z(t,631),Z(t,633),e.forEach(function(e){e[1].forEach(function(r){r.iauthor=n.indexOf(r.a),Z(t,635,hD([{s:jC(e[0]),e:jC(e[0])},r])),r.t&&r.t.length>0&&Z(t,637,XC(r)),Z(t,636),delete r.iauthor})}),Z(t,634),Z(t,629),t.end()}function yD(e,t){t.FullPaths.forEach(function(n,r){if(r!=0){var i=n.replace(/[^\/]*[\/]/,`/_VBA_PROJECT_CUR/`);i.slice(-1)!==`/`&&Fx.utils.cfb_add(e,i,t.FileIndex[r].content)}})}var bD=[`xlsb`,`xlsm`,`xlam`,`biff8`,`xla`],xD=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,o=!1;r.length==0?o=!0:r.charAt(0)==`[`&&(o=!0,r=r.slice(1,-1)),i.length==0?a=!0:i.charAt(0)==`[`&&(a=!0,i=i.slice(1,-1));var s=r.length>0?parseInt(r,10)|0:0,c=i.length>0?parseInt(i,10)|0:0;return a?c+=t.c:--c,o?s+=t.r:--s,n+(a?``:`$`)+DC(c)+(o?``:`$`)+CC(s)}return function(r,i){return t=i,r.replace(e,n)}})(),SD=/(^|[^._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,CD=(function(){return function(e,t){return e.replace(SD,function(e,n,r,i,a,o){var s=EC(i)-(r?0:t.c),c=SC(o)-(a?0:t.r),l=c==0?``:a?c+1:`[`+c+`]`,u=s==0?``:r?s+1:`[`+s+`]`;return n+`R`+l+`C`+u})}})();function wD(e,t){return e.replace(SD,function(e,n,r,i,a,o){return n+(r==`$`?r+i:DC(EC(i)+t.c))+(a==`$`?a+o:CC(SC(o)+t.r))})}function TD(e){return e.length!=1}function ED(e){e.l+=1}function DD(e,t){var n=e.read_shift(t==1?1:2);return[n&16383,n>>14&1,n>>15&1]}function OD(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return kD(e,t,n);n.biff==12&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),o=DD(e,2),s=DD(e,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function kD(e){var t=DD(e,2),n=DD(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function AD(e,t,n){if(n.biff<8)return kD(e,t,n);var r=e.read_shift(n.biff==12?4:2),i=e.read_shift(n.biff==12?4:2),a=DD(e,2),o=DD(e,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function jD(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return MD(e,t,n);var r=e.read_shift(n&&n.biff==12?4:2),i=DD(e,2);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function MD(e){var t=DD(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function ND(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:n&255,fQuoted:!!(n&16384),cRel:n>>15,rRel:n>>15}}function PD(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return FD(e,t,n);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:o,rRel:s}}function FD(e){var t=e.read_shift(2),n=e.read_shift(1),r=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,r==1&&t>=8192&&(t-=16384),i==1&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function ID(e,t,n){return[(e[e.l++]&96)>>5,OD(e,n.biff>=2&&n.biff<=5?6:8,n)]}function LD(e,t,n){var r=(e[e.l++]&96)>>5,i=e.read_shift(2,`i`),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return[r,i,OD(e,a,n)]}function RD(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function zD(e,t,n){var r=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[r,i]}function BD(e,t,n){return[(e[e.l++]&96)>>5,AD(e,t-1,n)]}function VD(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n.biff==2?6:n.biff==12?14:7,[r]}fLine truncated
`,n=` <table:covered-table-cell/>
`,r=function(r,i,a){var o=[];o.push(` <table:table table:name="`+dS(i.SheetNames[a])+`" table:style-name="ta1">
`);var s=0,c=0,l=NC(r[`!ref`]||`A1`),u=r[`!merges`]||[],d=0,f=Array.isArray(r);if(r[`!cols`])for(c=0;c<=l.e.c;++c)o.push(` <table:table-column`+(r[`!cols`][c]?` table:style-name="co`+r[`!cols`][c].ods+`"`:``)+`></table:table-column>
`);var p=``,m=r[`!rows`]||[];for(s=0;s<l.s.r;++s)p=m[s]?` table:style-name="ro`+m[s].ods+`"`:``,o.push(` <table:table-row`+p+`></table:table-row>
`);for(;s<=l.e.r;++s){for(p=m[s]?` table:style-name="ro`+m[s].ods+`"`:``,o.push(` <table:table-row`+p+`>
`),c=0;c<l.s.c;++c)o.push(t);for(;c<=l.e.c;++c){var h=!1,g={},_=``;for(d=0;d!=u.length;++d)if(!(u[d].s.c>c)&&!(u[d].s.r>s)&&!(u[d].e.c<c)&&!(u[d].e.r<s)){(u[d].s.c!=c||u[d].s.r!=s)&&(h=!0),g[`table:number-columns-spanned`]=u[d].e.c-u[d].s.c+1,g[`table:number-rows-spanned`]=u[d].e.r-u[d].s.r+1;break}if(h){o.push(n);continue}var v=MC({r:s,c}),y=f?(r[s]||[])[c]:r[v];if(y&&y.f&&(g[`table:formula`]=dS(dk(y.f)),y.F&&y.F.slice(0,v.length)==v)){var b=NC(y.F);g[`table:number-matrix-columns-spanned`]=b.e.c-b.s.c+1,g[`table:number-matrix-rows-spanned`]=b.e.r-b.s.r+1}if(!y){o.push(t);continue}switch(y.t){case`b`:_=y.v?`TRUE`:`FALSE`,g[`office:value-type`]=`boolean`,g[`office:boolean-value`]=y.v?`true`:`false`;break;case`n`:_=y.w||String(y.v||0),g[`office:value-type`]=`float`,g[`office:value`]=y.v||0;break;case`s`:case`str`:_=y.v==null?``:y.v,g[`office:value-type`]=`string`;break;case`d`:_=y.w||$x(y.v).toISOString(),g[`office:value-type`]=`date`,g[`office:date-value`]=$x(y.v).toISOString(),g[`table:style-name`]=`ce1`;break;default:o.push(t);continue}var x=e(_);if(y.l&&y.l.Target){var S=y.l.Target;S=S.charAt(0)==`#`?`#`+fk(S.slice(1)):S,S.charAt(0)!=`#`&&!S.match(/^\w+:/)&&(S=`../`+S),x=Y(`text:a`,x,{"xlink:href":S.replace(/&/g,`&amp;`)})}o.push(` `+Y(`table:table-cell`,Y(`text:p`,x,{}),g)+`
`)}o.push(` </table:table-row>
`)}return o.push(` </table:table>
`),o.join(``)},i=function(e,t){e.push(` <office:automatic-styles>
`),e.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),e.push(` <number:month number:style="long"/>
`),e.push(` <number:text>/</number:text>
`),e.push(` <number:day number:style="long"/>
`),e.push(` <number:text>/</number:text>
`),e.push(` <number:year/>
`),e.push(` </number:date-style>
`);var n=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t[`!cols`]){for(var r=0;r<t[`!cols`].length;++r)if(t[`!cols`][r]){var i=t[`!cols`][r];if(i.width==null&&i.wpx==null&&i.wch==null)continue;bE(i),i.ods=n;var a=t[`!cols`][r].wpx+`px`;e.push(` <style:style style:name="co`+n+`" style:family="table-column">
`),e.push(` <style:table-column-properties fo:break-before="auto" style:column-width="`+a+`"/>
`),e.push(` </style:style>
`),++n}}});var r=0;t.SheetNames.map(function(e){return t.Sheets[e]}).forEach(function(t){if(t&&t[`!rows`]){for(var n=0;n<t[`!rows`].length;++n)if(t[`!rows`][n]){t[`!rows`][n].ods=r;var i=t[`!rows`][n].hpx+`px`;e.push(` <style:style style:name="ro`+r+`" style:family="table-row">
`),e.push(` <style:table-row-properties fo:break-before="auto" style:row-height="`+i+`"/>
`),e.push(` </style:style>
`),++r}}}),e.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),e.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),e.push(` </style:style>
`),e.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),e.push(` </office:automatic-styles>
`)};return function(e,t){var n=[sS],a=DS({"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`}),o=DS({"xmlns:config":`urn:oasis:names:tc:opendocument:xmlns:config:1.0`,"office:mimetype":`application/vnd.oasis.opendocument.spreadsheet`});t.bookType==`fods`?(n.push(`<office:document`+a+o+`>
`),n.push(qw().replace(/office:document-meta/g,`office:meta`))):n.push(`<office:document-content`+a+`>
`),i(n,e),n.push(` <office:body>
`),n.push(` <office:spreadsheet>
`);for(var s=0;s!=e.SheetNames.length;++s)n.push(r(e.Sheets[e.SheetNames[s]],e,s,t));return n.push(` </office:spreadsheet>
`),n.push(` </office:body>
`),t.bookType==`fods`?n.push(`</office:document>`):n.push(`</office:document-content>`),n.join(``)}})();function uM(e,t){if(t.bookType==`fods`)return lM(e,t);var n=oS(),r=``,i=[],a=[];return r=`mimetype`,J(n,r,`application/vnd.oasis.opendocument.spreadsheet`),r=`content.xml`,J(n,r,lM(e,t)),i.push([r,`text/xml`]),a.push([r,`ContentFile`]),r=`styles.xml`,J(n,r,cM(e,t)),i.push([r,`text/xml`]),a.push([r,`StylesFile`]),r=`meta.xml`,J(n,r,sS+qw()),i.push([r,`text/xml`]),a.push([r,`MetadataFile`]),r=`manifest.rdf`,J(n,r,Kw(a)),i.push([r,`application/rdf+xml`]),r=`META-INF/manifest.xml`,J(n,r,Uw(i)),n}function dM(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function fM(e){return typeof TextEncoder<`u`?new TextEncoder().encode(e):hb(CS(e))}function pM(e,t){outer:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue outer;return!0}return!1}function mM(e){var t=e.reduce(function(e,t){return e+t.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(e){n.set(e,r),r+=e.length}),n}function hM(e,t,n){var r=Math.floor(n==0?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/10**(r-6176);e[t+15]|=r>>7,e[t+14]|=(r&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=n>=0?0:128}function gM(e,t){var n=t?t[0]:0,r=e[n]&127;varint:if(e[n++]>=128&&(r|=(e[n]&127)<<7,e[n++]<128||(r|=(e[n]&127)<<14,e[n++]<128)||(r|=(e[n]&127)<<21,e[n++]<128)||(r+=(e[n]&127)*2**28,++n,e[n++]<128)||(r+=(e[n]&127)*2**35,++n,e[n++]<128)||(r+=(e[n]&127)*2**42,++n,e[n++]<128)))break varint;return t&&(t[0]=n),r}function _M(e){var t=new Uint8Array(7);t[0]=e&127;var n=1;sz:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383||(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)||(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)||(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)||(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103))break sz;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function vM(e){var t=0,n=e[t]&127;varint:if(e[t++]>=128){if(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128))break varint;n|=(e[t]&127)<<28}return n}function yM(e){for(var t=[],n=[0];n[0]<e.length;){var r=n[0],i=gM(e,n),a=i&7;i=Math.floor(i/8);var o=0,s;if(i==0)break;switch(a){case 0:for(var c=n[0];e[n[0]++]>=128;);s=e.slice(c,n[0]);break;case 5:o=4,s=e.slice(n[0],n[0]+o),n[0]+=o;break;case 1:o=8,s=e.slice(n[0],n[0]+o),n[0]+=o;break;case 2:o=gM(e,n),s=e.slice(n[0],n[0]+o),n[0]+=o;break;default:throw Error(`PB Type ${a} for Field ${i} at offset ${r}`)}var l={data:s,type:a};t[i]==null?t[i]=[l]:t[i].push(l)}return t}function bM(e){var t=[];return e.forEach(function(e,n){e.forEach(function(e){e.data&&(t.push(_M(n*8+e.type)),e.type==2&&t.push(_M(e.data.length)),t.push(e.data))})}),mM(t)}function xM(e){for(var t=[],n=[0];n[0]<e.length;){var r=gM(e,n),i=yM(e.slice(n[0],n[0]+r));n[0]+=r;var a={id:vM(i[1][0].data),messages:[]};i[2].forEach(function(t){var r=yM(t.data),i=vM(r[3][0].data);a.messages.push({meta:r,data:e.slice(n[0],n[0]+i)}),n[0]+=i}),i[3]?.[0]&&(a.merge=vM(i[3][0].data)>>>0>0),t.push(a)}return t}function SM(e){var t=[];return e.forEach(function(e){var n=[];n[1]=[{data:_M(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:_M(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(e){r.push(e.data),e.meta[3]=[{type:0,data:_M(e.data.length)}],n[2].push({data:bM(e.meta),type:2})});var i=bM(n);t.push(_M(i.length)),t.push(i),r.forEach(function(e){return t.push(e)})}),mM(t)}function CM(e,t){if(e!=0)throw Error(`Unexpected Snappy chunk type ${e}`);for(var n=[0],r=gM(t,n),i=[];n[0]<t.length;){var a=t[n[0]]&3;if(a==0){var o=t[n[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[n[0]],s>1&&(o|=t[n[0]+1]<<8),s>2&&(o|=t[n[0]+2]<<16),s>3&&(o|=t[n[0]+3]<<24),o>>>=0,o++,n[0]+=s}i.push(t.slice(n[0],n[0]+o)),n[0]+=o;continue}else{var c=0,l=0;if(a==1?(l=(t[n[0]]>>2&7)+4,c=(t[n[0]++]&224)<<3,c|=t[n[0]++]):(l=(t[n[0]++]>>2)+1,a==2?(c=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(c=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[mM(i)],c==0)throw Error(`Invalid offset 0`);if(c>i[0].length)throw Error(`Invalid offset beyond length`);if(l>=c)for(i.push(i[0].slice(-c)),l-=c;l>=i[i.length-1].length;)i.push(i[i.length-1]),l-=i[i.length-1].length;i.push(i[0].slice(-c,-c+l))}}var u=mM(i);if(u.length!=r)throw Error(`Unexpected length: ${u.length} != ${r}`);return u}function wM(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(CM(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw Error(`data is not a valid framed stream!`);return mM(t)}function TM(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var a=_M(r),o=a.length;t.push(a),r<=60?(o++,t.push(new Uint8Array([r-1<<2]))):r<=256?(o+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(o+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(o+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(o+=5,t.push(new Uint8Array([252,r-1&2Line truncated
`:r.RS,c=s.charCodeAt(0),l=RegExp((a==`|`?`\\|`:a)+`+$`),u=``,d=[];r.dense=Array.isArray(e);for(var f=r.skipHidden&&e[`!cols`]||[],p=r.skipHidden&&e[`!rows`]||[],m=i.s.c;m<=i.e.c;++m)(f[m]||{}).hidden||(d[m]=DC(m));for(var h=0,g=i.s.r;g<=i.e.r;++g)(p[g]||{}).hidden||(u=XM(e,i,g,d,o,c,a,r),u!=null&&(r.strip&&(u=u.replace(l,``)),(u||r.blankrows!==!1)&&n.push((h++?s:``)+u)));return delete r.dense,n.join(``)}function QM(e,t){t||={},t.FS=` `,t.RS=`
`;var n=ZM(e,t);return ab===void 0||t.type==`string`?n:`ÿþ`+ab.utils.encode(1200,n,`str`)}function $M(e){var t=``,n,r=``;if(e==null||e[`!ref`]==null)return[];var i=FC(e[`!ref`]),a=``,o=[],s,c=[],l=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=DC(s);for(var u=i.s.r;u<=i.e.r;++u)for(a=CC(u),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,n=l?(e[u]||[])[s]:e[t],r=``,n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;r=n.f,t.indexOf(`:`)==-1&&(t=t+`:`+t)}if(n.f!=null)r=n.f;else if(n.t==`z`)continue;else if(n.t==`n`&&n.v!=null)r=``+n.v;else if(n.t==`b`)r=n.v?`TRUE`:`FALSE`;else if(n.w!==void 0)r=`'`+n.w;else if(n.v===void 0)continue;else r=n.t==`s`?`'`+n.v:``+n.v;c[c.length]=t+`=`+r}return c}function eN(e,t,n){var r=n||{},i=+!r.skipHeader,a=e||{},o=0,s=0;if(a&&r.origin!=null)if(typeof r.origin==`number`)o=r.origin;else{var c=typeof r.origin==`string`?jC(r.origin):r.origin;o=c.r,s=c.c}var l,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a[`!ref`]){var d=FC(a[`!ref`]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),o==-1&&(o=d.e.r+1,u.e.r=o+t.length-1+i)}else o==-1&&(o=0,u.e.r=t.length-1+i);var f=r.header||[],p=0;t.forEach(function(e,t){zx(e).forEach(function(n){(p=f.indexOf(n))==-1&&(f[p=f.length]=n);var c=e[n],u=`z`,d=``,m=MC({c:s+p,r:o+t+i});l=nN(a,m),c&&typeof c==`object`&&!(c instanceof Date)?a[m]=c:(typeof c==`number`?u=`n`:typeof c==`boolean`?u=`b`:typeof c==`string`?u=`s`:c instanceof Date?(u=`d`,r.cellDates||(u=`n`,c=Gx(c)),d=r.dateNF||Fb[14]):c===null&&r.nullError&&(u=`e`,c=0),l?(l.t=u,l.v=c,delete l.w,delete l.R,d&&(l.z=d)):a[m]=l={t:u,v:c},d&&(l.z=d))})}),u.e.c=Math.max(u.e.c,s+f.length-1);var m=CC(o);if(i)for(p=0;p<f.length;++p)a[DC(p+s)+m]={t:`s`,v:f[p]};return a[`!ref`]=PC(u),a}function tN(e,t){return eN(null,e,t)}function nN(e,t,n){if(typeof t==`string`){if(Array.isArray(e)){var r=jC(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:`z`})}return e[t]||(e[t]={t:`z`})}return typeof t==`number`?nN(e,MC({r:t,c:n||0})):nN(e,MC(t))}function rN(e,t){if(typeof t==`number`){if(t>=0&&e.SheetNames.length>t)return t;throw Error(`Cannot find sheet # `+t)}else if(typeof t==`string`){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw Error(`Cannot find sheet name |`+t+`|`)}else throw Error(`Cannot find sheet |`+t+`|`)}function iN(){return{SheetNames:[],Sheets:{}}}function aN(e,t,n,r){var i=1;if(!n)for(;i<=65535&&e.SheetNames.indexOf(n=`Sheet`+i)!=-1;++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw Error(`Too many worksheets`);if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||n;for(++i;i<=65535&&e.SheetNames.indexOf(n=o+i)!=-1;++i);}if(ZA(n),e.SheetNames.indexOf(n)>=0)throw Error(`Worksheet with name |`+n+`| already exists!`);return e.SheetNames.push(n),e.Sheets[n]=t,n}function oN(e,t,n){e.Workbook||={},e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=rN(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw Error(`Bad sheet visibility setting `+n)}e.Workbook.Sheets[r].Hidden=n}function sN(e,t){return e.z=t,e}function cN(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function lN(e,t,n){return cN(e,`#`+t,n)}function uN(e,t,n){e.c||=[],e.c.push({t,a:n||`SheetJS`})}function dN(e,t,n,r){for(var i=typeof t==`string`?FC(t):t,a=typeof t==`string`?t:PC(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var c=nN(e,o,s);c.t=`n`,c.F=a,delete c.v,o==i.s.r&&s==i.s.c&&(c.f=n,r&&(c.D=!0))}return e}var fN={encode_col:DC,encode_row:CC,encode_cell:MC,encode_range:PC,decode_col:EC,decode_row:SC,split_cell:AC,decode_cell:jC,decode_range:NC,format_cell:LC,sheet_add_aoa:zC,sheet_add_json:eN,sheet_add_dom:rM,aoa_to_sheet:BC,json_to_sheet:tN,table_to_sheet:iM,table_to_book:aM,sheet_to_csv:ZM,sheet_to_txt:QM,sheet_to_json:JM,sheet_to_html:nM,sheet_to_formulae:$M,sheet_to_row_object_array:JM,sheet_get_cell:nN,book_new:iN,book_append_sheet:aN,book_set_sheet_visibility:oN,cell_set_number_format:sN,cell_set_hyperlink:cN,cell_set_internal_link:lN,cell_add_comment:uN,sheet_set_array_formula:dN,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};qy.version;var pN={class:`min-h-screen bg-gray-50 font-sans text-slate-800 flex flex-col`},mN={class:`bg-white/80 backdrop-blur-md border-b border-slate-200 px-6 py-4 flex items-center justify-between sticky top-0 z-30 shadow-sm`},hN={class:`flex items-center gap-4`},gN={class:`flex flex-col`},_N={class:`text-xl md:text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-brand-600 to-indigo-600 tracking-tight`},vN={class:`text-xs text-slate-400 font-medium tracking-wide`},yN={class:`flex items-center gap-4`},bN={class:`flex items-center gap-2`},xN={class:`font-medium text-sm`},SN={class:`flex-1 w-full mx-auto px-4 md:px-8 py-6 md:py-8 flex flex-col md:flex-row gap-8 items-start`},CN={class:`flex md:flex-col p-3 gap-1 overflow-x-auto md:overflow-visible no-scrollbar`},wN=[`onClick`,`title`],TN={key:0,class:`ml-auto bg-red-500 text-white text-[10px] font-bold px-2 pLine truncated
+14
View File
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
<script type="module" crossorigin src="/assets/index-Bz2wGp-_.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BaTUVcy_.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+90 -39
View File
@@ -1,70 +1,121 @@
#!/bin/bash
# deploy.sh
# 自动化部署脚本
# 用途: 在服务器上执行,用于更新代码并重启服务
set -e
# 配置
PROJECT_DIR="/opt/hxops"
# ==============================================================================
# 自动化部署脚本 (Deploy Script)
# ==============================================================================
# 用途: 在服务器上执行,用于更新代码、迁移数据库并重启服务。
# 注意: 本脚本假设服务器已安装 Git, Miniforge (Conda), PostgreSQL, Supervisor, Nginx。
# ==============================================================================
echo "=== 开始部署流程 [$(date)] ==="
# 1. 配置参数 (Configuration)
# ------------------------------------------------------------------------------
# 项目部署根目录 (根据需求更新为 /data/ai-platform/hxops)
PROJECT_DIR="/data/ai-platform/hxops"
BACKEND_DIR="$PROJECT_DIR/backend"
FRONTEND_DIR="$PROJECT_DIR/frontend"
VENV_DIR="$BACKEND_DIR/venv"
# Git 分支
BRANCH="super"
echo "=== 开始部署 [$(date)] ==="
# Conda 环境名称
CONDA_ENV="hxops"
# Miniforge 初始化脚本路径 (根据服务器实际安装位置调整,常见为 ~/miniforge3 或 /opt/miniforge3)
# 尝试自动探测常见路径,如果失败请手动指定
MINIFORGE_PATH="$HOME/miniforge3/etc/profile.d/conda.sh"
if [ ! -f "$MINIFORGE_PATH" ]; then
MINIFORGE_PATH="/opt/miniforge3/etc/profile.d/conda.sh"
fi
# 1. 更新代码
echo ">>> 拉取最新代码..."
cd $PROJECT_DIR
git fetch origin
git reset --hard origin/$BRANCH
# 2. 前端构建
echo ">>> 构建前端..."
cd $FRONTEND_DIR
# 仅当 package.json 变动时才安装依赖 (利用 npm ci 或 diff 检查)
if [ -f "package-lock.json" ]; then
npm ci --prefer-offline --no-audit
# 2. 更新代码 (Update Code)
# ------------------------------------------------------------------------------
echo ">>> [1/4] 拉取最新代码..."
if [ ! -d "$PROJECT_DIR" ]; then
echo "项目目录不存在,正在克隆..."
mkdir -p $(dirname "$PROJECT_DIR")
git clone -b $BRANCH https://gitee.com/justop/hxops.git $PROJECT_DIR
else
npm install --prefer-offline --no-audit
cd $PROJECT_DIR
git fetch origin
git reset --hard origin/$BRANCH
fi
npm run build
# 3. 后端更新
echo ">>> 更新后端..."
# 3. 前端处理 (Frontend)
# ------------------------------------------------------------------------------
echo ">>> [2/4] 处理前端资源..."
# 注意: 前端构建已在本地完成,dist 目录已提交到 Git 仓库。
# 服务器端只需确保 dist 目录存在即可。
if [ -d "$FRONTEND_DIR/dist" ]; then
echo "前端 dist 目录已同步。"
else
echo "警告: 未找到前端 dist 目录!请确保本地构建并提交了 dist 文件夹。"
# 可选: 如果确实需要在服务器构建,取消以下注释
# cd $FRONTEND_DIR
# npm install && npm run build
fi
# 4. 后端环境与依赖 (Backend Env)
# ------------------------------------------------------------------------------
echo ">>> [3/4] 配置后端环境 (Miniforge)..."
cd $BACKEND_DIR
if [ ! -d "$VENV_DIR" ]; then
echo "创建虚拟环境..."
python3 -m venv $VENV_DIR
fi
source $VENV_DIR/bin/activate
# 激活 Conda 环境
if [ -f "$MINIFORGE_PATH" ]; then
source "$MINIFORGE_PATH"
else
echo "错误: 未找到 Miniforge 初始化脚本 ($MINIFORGE_PATH)。请确认安装路径。"
exit 1
fi
# 检查环境是否存在,不存在则创建
if conda env list | grep -q "$CONDA_ENV"; then
echo "Conda 环境 '$CONDA_ENV' 已存在,正在激活..."
conda activate $CONDA_ENV
else
echo "Conda 环境 '$CONDA_ENV' 不存在,正在创建 (Python 3.12)..."
conda create -n $CONDA_ENV python=3.12 -y
conda activate $CONDA_ENV
fi
# 安装/更新依赖
echo "安装 Python 依赖..."
pip install -r requirements.txt --upgrade --no-cache-dir
# 数据库迁移
# 注意: 'flask db upgrade' 是幂等的 (Idempotent)。
# 它会比较数据库当前状态与代码中的模型定义,仅应用尚未应用的变更。
# 如果数据库已是最新状态,它不会做任何操作,也不会覆盖现有数据。
# 因此,每次部署都执行此命令是安全且推荐的做法。
echo "执行数据库迁移..."
export FLASK_APP=run.py
flask db upgrade
# 4. 重启服务
echo ">>> 重启服务..."
# 5. 重启服务 (Restart Services)
# ------------------------------------------------------------------------------
echo ">>> [4/4] 重启服务..."
# 更新 Nginx 配置 (如果有变动)
if [ -f "$PROJECT_DIR/scripts/nginx.conf" ]; then
cp $PROJECT_DIR/scripts/nginx.conf /etc/nginx/conf.d/hxops.conf
nginx -t && systemctl reload nginx
echo "更新 Nginx 配置..."
# 假设 nginx 配置链接到了 /etc/nginx/conf.d/
# cp $PROJECT_DIR/scripts/nginx.conf /etc/nginx/conf.d/hxops.conf
# nginx -t && systemctl reload nginx
fi
# 更新 Supervisor 配置 (如果有变动)
if [ -f "$PROJECT_DIR/scripts/supervisord.conf" ]; then
cp $PROJECT_DIR/scripts/supervisord.conf /etc/supervisor/conf.d/hxops.conf
supervisorctl reread
supervisorctl update
echo "更新 Supervisor 配置..."
# cp $PROJECT_DIR/scripts/supervisord.conf /etc/supervisor/conf.d/hxops.conf
# supervisorctl reread
# supervisorctl update
fi
# 重启后端进程
supervisorctl restart hxops-backend
echo "重启 hxops-backend..."
# supervisorctl restart hxops-backend || echo "警告: 服务可能尚未启动或配置"
echo "=== 部署完成 [$(date)] ==="
echo "验证服务状态:"
supervisorctl status hxops-backend
echo "当前 Conda 环境: $CONDA_DEFAULT_ENV"
echo "Python 版本: $(python --version)"